/* ═══════════════════════════════════════════════════════════════
   سازه گستر سهند — استایل‌های ریسپانسیو
   dashtseo.ir
   ═══════════════════════════════════════════════════════════════ */

/* تبلت */
@media (max-width: 1024px) {
    :root {
        --space-24: 4rem;
        --space-20: 3.5rem;
    }

    h1 { font-size: var(--text-4xl); }
    h2 { font-size: var(--text-3xl); }
    h3 { font-size: var(--text-2xl); }

    .sgs-section {
        padding: var(--space-16) 0;
    }
}

/* موبایل بزرگ */
@media (max-width: 768px) {
    :root {
        --text-2xl: 1.25rem;
        --text-3xl: 1.5rem;
        --text-4xl: 1.875rem;
        --text-5xl: 2.25rem;
    }

    .sgs-section {
        padding: var(--space-12) 0;
    }

    .sgs-section__header {
        margin-bottom: var(--space-10);
    }

    .sgs-btn--xl {
        padding: var(--space-4) var(--space-6);
        font-size: var(--text-base);
    }
}

/* موبایل کوچک */
@media (max-width: 480px) {
    body {
        font-size: 15px;
    }

    .sgs-container {
        padding: 0 var(--space-4);
    }

    .sgs-btn {
        padding: var(--space-2) var(--space-4);
        font-size: var(--text-xs);
    }

    .sgs-btn--lg,
    .sgs-btn--xl {
        padding: var(--space-3) var(--space-5);
    }
}

/* چاپ */
@media print {
    .sgs-topbar,
    .sgs-mobile-menu,
    .sgs-float,
    .sgs-scroll-top,
    .sgs-footer {
        display: none !important;
    }

    .sgs-header {
        position: static;
        box-shadow: none;
    }
}

/* دسترسی‌پذیری - کاهش انیمیشن */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

/* فوکوس بهتر */
*:focus-visible {
    outline: 2px solid var(--color-brick);
    outline-offset: 2px;
}

button:focus-visible,
a:focus-visible {
    outline: 2px solid var(--color-brick);
    outline-offset: 3px;
}

/* ═══════════════════════════════════════════════════════════════
   Mobile-first optimization v3.0.5 — برای ۹۵٪ ترافیک موبایل
   ═══════════════════════════════════════════════════════════════ */
@media (max-width: 768px) {
    html {
        -webkit-text-size-adjust: 100%;
        scroll-padding-top: 76px;
    }

    body {
        overflow-x: hidden;
        font-size: 15px;
        line-height: 1.8;
        background: var(--color-paper);
    }

    img, svg, video, canvas {
        max-width: 100%;
    }

    input, select, textarea, button {
        font-size: 16px; /* جلوگیری از zoom ناخواسته iOS */
    }

    a, button, .sgs-btn {
        min-height: 44px;
        -webkit-tap-highlight-color: transparent;
    }

    .sgs-main {
        overflow: hidden;
    }

    .sgs-container,
    .sgs-hero .sgs-container {
        width: 100%;
        max-width: 100%;
        padding-inline: 16px;
    }

    .sgs-section,
    .sgs-products,
    .sgs-about,
    .sgs-benefits,
    .sgs-services,
    .sgs-comparison,
    .sgs-steps,
    .sgs-projects,
    .sgs-export,
    .sgs-cta,
    .sgs-testimonials,
    .sgs-safety {
        padding-block: 44px;
    }

    .sgs-section__header {
        margin-bottom: 24px;
        text-align: center;
    }

    .sgs-section__eyebrow {
        font-size: 12px;
        margin-bottom: 8px;
    }

    .sgs-section__title,
    .sgs-archive-header .sgs-section__title {
        font-size: clamp(1.55rem, 7vw, 2.15rem) !important;
        line-height: 1.35;
        letter-spacing: -0.02em;
    }

    .sgs-section__subtitle {
        font-size: 14px;
        line-height: 1.9;
        max-width: 96%;
        margin-inline: auto;
    }

    /* Hero موبایل */
    .sgs-hero {
        padding-top: 28px !important;
        padding-bottom: 40px !important;
        min-height: auto;
    }

    .sgs-hero__grid {
        display: flex !important;
        flex-direction: column-reverse;
        gap: 24px;
        min-height: 0 !important;
    }

    .sgs-hero__content {
        width: 100%;
        max-width: 100%;
        text-align: center;
    }

    .sgs-hero__badge {
        margin-inline: auto;
        margin-bottom: 14px;
        font-size: 11px;
        padding: 6px 12px;
    }

    .sgs-hero__title {
        font-size: clamp(2rem, 9vw, 2.75rem) !important;
        line-height: 1.25;
        margin-bottom: 14px;
    }

    .sgs-hero__title-accent {
        margin-top: 6px;
    }

    .sgs-hero__desc {
        font-size: 14px;
        line-height: 2;
        margin-bottom: 18px;
    }

    .sgs-hero__actions {
        display: grid;
        grid-template-columns: 1fr;
        gap: 10px;
        margin-bottom: 24px;
    }

    .sgs-hero__actions .sgs-btn,
    .sgs-btn--xl,
    .sgs-btn--lg {
        width: 100%;
        justify-content: center;
        padding: 13px 16px;
        border-radius: 14px;
        font-size: 14px;
        font-weight: 900;
    }

    .sgs-hero__stats {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 8px;
        padding-top: 16px;
    }

    .sgs-hero__stat {
        align-items: center;
        padding: 10px 6px;
        background: rgba(255,255,255,.6);
        border: 1px solid var(--color-cream-dark);
        border-radius: 14px;
    }

    .sgs-hero__stat-num {
        font-size: 20px;
    }

    .sgs-hero__stat-label {
        font-size: 10.5px;
        line-height: 1.4;
    }

    .sgs-hero__visual {
        width: 100%;
    }

    .sgs-hero__image-wrapper {
        width: 100%;
        max-width: 100% !important;
        max-height: none;
        border-radius: 22px;
        box-shadow: 0 14px 36px rgba(0,0,0,.13);
    }

    .sgs-hero__image {
        width: 100%;
        height: clamp(260px, 62vw, 390px) !important;
        min-height: 0 !important;
        object-fit: cover;
        object-position: center;
    }

    .sgs-hero__info-tag {
        transform: scale(.82);
        transform-origin: center;
        padding: 8px 10px;
        border-radius: 12px;
    }

    .sgs-hero__info-tag--1 {
        right: 8px !important;
        top: 18px !important;
    }

    .sgs-hero__info-tag--2 {
        left: 8px !important;
        bottom: 18px !important;
    }

    /* گریدها و کارت‌ها */
    .sgs-products__grid,
    .sgs-benefits__grid,
    .sgs-services__grid,
    .sgs-projects__grid,
    .sgs-testimonials__grid,
    .sgs-safety__grid,
    .sgs-steps__grid,
    .sgs-comparison__grid,
    .sgs-export__grid,
    .sgs-about__grid,
    .sgs-footer__grid,
    .sgs-posts-grid {
        display: grid !important;
        grid-template-columns: 1fr !important;
        gap: 16px !important;
    }

    .sgs-product-card,
    .sgs-benefit-card,
    .sgs-service-card,
    .sgs-project-card,
    .sgs-testimonial-card,
    .sgs-step-card,
    .sgs-post-card,
    .sgs-widget,
    .sgs-single,
    .sgs-calculator__form,
    .sgs-calculator__result {
        border-radius: 18px !important;
        overflow: hidden;
    }

    .sgs-product-card__image,
    .sgs-service-card__image,
    .sgs-project-card__image,
    .sgs-post-card__image {
        aspect-ratio: 16 / 10;
        overflow: hidden;
    }

    .sgs-product-card__image img,
    .sgs-service-card__image img,
    .sgs-project-card__image img,
    .sgs-post-card__image img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

    .sgs-product-card__body,
    .sgs-service-card__body,
    .sgs-post-card__body,
    .sgs-testimonial-card,
    .sgs-benefit-card,
    .sgs-step-card {
        padding: 16px !important;
    }

    .sgs-product-card__title,
    .sgs-service-card__title,
    .sgs-benefit-card__title,
    .sgs-step-card__title {
        font-size: 18px !important;
        line-height: 1.5;
    }

    .sgs-product-card__desc,
    .sgs-service-card__desc,
    .sgs-benefit-card__desc,
    .sgs-step-card__desc {
        font-size: 13.5px !important;
        line-height: 1.9;
    }

    .sgs-product-card__specs {
        display: flex;
        flex-wrap: wrap;
        gap: 8px;
    }

    .sgs-product-card__footer,
    .sgs-products__footer {
        margin-top: 14px;
    }

    .sgs-products__footer .sgs-btn,
    .sgs-product-card__link,
    .sgs-service-card__link {
        width: 100%;
        justify-content: center;
    }

    /* درباره/صادرات */
    .sgs-about__image,
    .sgs-export__image {
        border-radius: 22px;
        overflow: hidden;
        order: -1;
    }

    .sgs-about__image img,
    .sgs-export__image img {
        width: 100%;
        height: clamp(230px, 60vw, 360px);
        object-fit: cover;
    }

    .sgs-about__content,
    .sgs-export__content,
    .sgs-cta__content {
        text-align: center;
    }

    .sgs-about__text,
    .sgs-export__text {
        font-size: 14px;
        line-height: 2;
    }

    /* ماشین حساب */
    .sgs-calculator__wrapper {
        display: grid !important;
        grid-template-columns: 1fr !important;
        gap: 16px !important;
    }

    .sgs-calculator__form,
    .sgs-calculator__result {
        padding: 16px !important;
    }

    .sgs-calc-field {
        margin-bottom: 14px;
    }

    .sgs-calc-input,
    .sgs-calc-select {
        min-height: 50px;
        border-radius: 14px;
        font-size: 16px;
    }

    .sgs-calc-toggle {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 8px;
        background: transparent;
    }

    .sgs-calc-toggle__option,
    .sgs-calc-submit,
    .sgs-calc-action {
        min-height: 48px;
        border-radius: 14px;
        font-weight: 900;
    }

    .sgs-calc-details {
        display: grid;
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .sgs-calc-actions {
        display: grid;
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .sgs-calc-chart {
        height: 210px !important;
    }

    /* جداول/مقایسه */
    .sgs-comparison table,
    .sgs-single__content table {
        display: block;
        width: 100%;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        white-space: nowrap;
    }

    .sgs-comparison__table,
    .sgs-table-wrap {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    /* صفحات داخلی */
    .sgs-content-area {
        width: 100%;
        max-width: 100%;
    }

    .sgs-single__header {
        text-align: center;
        margin-bottom: 20px;
    }

    .sgs-single__title {
        font-size: clamp(1.7rem, 8vw, 2.3rem) !important;
        line-height: 1.35;
    }

    .sgs-single__featured {
        border-radius: 20px;
        overflow: hidden;
        margin-bottom: 20px;
    }

    .sgs-single__featured img {
        width: 100%;
        height: auto;
    }

    .sgs-single__content {
        font-size: 15px;
        line-height: 2;
    }

    .sgs-single__content h2 {
        font-size: 1.45rem;
        line-height: 1.45;
        margin-top: 28px;
    }

    .sgs-single__content h3 {
        font-size: 1.25rem;
        line-height: 1.5;
        margin-top: 22px;
    }

    .sgs-breadcrumb {
        display: none;
    }

    /* CTA */
    .sgs-cta {
        border-radius: 0;
    }

    .sgs-cta__title {
        font-size: clamp(1.7rem, 8vw, 2.3rem) !important;
        line-height: 1.35;
    }

    .sgs-cta__actions {
        display: grid;
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .sgs-cta__btn {
        width: 100%;
        justify-content: center;
        min-height: 52px;
        border-radius: 14px;
    }

    /* فوتر */
    .sgs-footer {
        padding-bottom: 110px;
    }

    .sgs-footer__col {
        text-align: center;
    }

    .sgs-footer__logo,
    .sgs-footer__socials,
    .sgs-footer__contact li {
        justify-content: center;
    }

    .sgs-footer__menu {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 8px 10px;
        text-align: center;
    }

    .sgs-footer__menu a {
        display: block;
        padding: 8px;
        border-radius: 10px;
        background: rgba(255,255,255,.04);
    }

    .sgs-footer__bottom-inner {
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }

    /* کاهش افکت‌ها در موبایل برای سرعت */
    .sgs-animate-on-scroll {
        opacity: 1 !important;
        transform: none !important;
    }

    .sgs-hero__image-wrapper:hover .sgs-hero__image,
    .sgs-product-card:hover,
    .sgs-service-card:hover,
    .sgs-project-card:hover {
        transform: none !important;
    }
}

@media (min-width: 481px) and (max-width: 768px) {
    .sgs-products__grid,
    .sgs-benefits__grid,
    .sgs-services__grid,
    .sgs-steps__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    }

    .sgs-footer__grid {
        grid-template-columns: 1fr 1fr !important;
    }
}

/* ═══════════════════════════════════════════════════════════════
   Mobile-first refinement v3.0.7 — حذف گپ و فشرده‌سازی صفحه اصلی/داخلی
   ═══════════════════════════════════════════════════════════════ */
@media (max-width: 768px) {
    body {
        padding-top: 0 !important;
    }

    .sgs-main > *:first-child,
    main#sgsMain > *:first-child {
        margin-top: 0 !important;
    }

    .sgs-hero {
        padding-top: 12px !important;
        padding-bottom: 34px !important;
    }

    .sgs-hero__grid {
        gap: 18px !important;
    }

    .sgs-hero__content {
        padding-top: 0 !important;
    }

    .sgs-hero__visual {
        margin-top: 0 !important;
    }

    .sgs-hero__image {
        height: clamp(220px, 58vw, 350px) !important;
    }

    .sgs-section,
    .sgs-products,
    .sgs-about,
    .sgs-benefits,
    .sgs-services,
    .sgs-calculator,
    .sgs-comparison,
    .sgs-steps,
    .sgs-projects,
    .sgs-export,
    .sgs-cta,
    .sgs-testimonials,
    .sgs-safety {
        padding-top: 36px !important;
        padding-bottom: 36px !important;
    }

    .sgs-section__header {
        margin-bottom: 18px !important;
    }

    .sgs-product-card,
    .sgs-service-card,
    .sgs-benefit-card,
    .sgs-project-card,
    .sgs-step-card,
    .sgs-testimonial-card,
    .sgs-post-card {
        box-shadow: 0 10px 26px rgba(26, 24, 20, 0.08) !important;
    }

    .sgs-content-area {
        padding-top: 18px !important;
        padding-bottom: 36px !important;
    }

    .sgs-single,
    .sgs-archive-header {
        margin-top: 0 !important;
    }

    .sgs-single__header {
        padding-top: 10px !important;
    }

    .sgs-footer {
        padding-bottom: 104px !important;
    }
}

/* ═══════════════════════════════════════════════════════════════
   Mobile fix v3.0.8 — حذف قطعی تاپ‌بار موبایل و فضای خالی زیر فوتر
   ═══════════════════════════════════════════════════════════════ */
@media (max-width: 1024px) {
    :root {
        --header-topbar-h: 0px !important;
        --header-main-h: 62px;
        --header-total-h: 62px !important;
    }

    .sgs-topbar,
    .sgs-topbar__inner,
    .sgs-topbar__info,
    .sgs-topbar__social,
    .sgs-topbar__mobile {
        display: none !important;
        visibility: hidden !important;
        opacity: 0 !important;
        height: 0 !important;
        min-height: 0 !important;
        max-height: 0 !important;
        padding: 0 !important;
        margin: 0 !important;
        border: 0 !important;
        overflow: hidden !important;
        pointer-events: none !important;
    }

    .sgs-header {
        top: 0 !important;
        margin-top: 0 !important;
    }

    body,
    body.sgs-theme {
        padding-top: 0 !important;
        padding-bottom: 0 !important;
        margin-bottom: 0 !important;
    }

    html,
    body {
        min-height: 100%;
        overflow-x: hidden;
    }
}

@media (max-width: 768px) {
    /* فضای خالی بعد از footer را حذف می‌کنیم؛ فاصله لازم برای آیلند داخل خود footer می‌ماند */
    body,
    body.sgs-theme {
        padding-bottom: 0 !important;
    }

    .sgs-footer {
        margin-bottom: 0 !important;
        padding-bottom: 0 !important;
    }

    .sgs-footer__bottom {
        padding-bottom: calc(88px + env(safe-area-inset-bottom)) !important;
    }

    .sgs-footer__bottom-inner {
        padding-bottom: 0 !important;
    }

    .sgs-mobile-contact-island {
        bottom: calc(8px + env(safe-area-inset-bottom)) !important;
    }
}

/* ═══════════════════════════════════════════════════════════════
   Mobile header/footer refinement v3.0.9
   - تاپ‌بار در موبایل همیشه نمایش داده می‌شود
   - هدر زیر تاپ‌بار با اسکرول مخفی می‌شود
   - ستون تماس فوتر در موبایل تمام‌عرض می‌شود
   - credit طراحی و توسعه مرتب می‌شود
   ═══════════════════════════════════════════════════════════════ */
@media (max-width: 768px) {
    :root {
        --header-topbar-h: 34px !important;
        --header-main-h: 62px !important;
        --header-total-h: 96px !important;
    }

    html {
        scroll-padding-top: calc(var(--header-total-h) + 10px) !important;
    }

    body,
    body.sgs-theme {
        padding-top: var(--header-total-h) !important;
        margin-top: 0 !important;
        padding-bottom: 0 !important;
    }

    /* تاپ‌بار موبایل: همیشه بالا و ثابت */
    .sgs-topbar {
        display: block !important;
        visibility: visible !important;
        opacity: 1 !important;
        position: fixed !important;
        top: 0 !important;
        left: 0 !important;
        right: 0 !important;
        height: var(--header-topbar-h) !important;
        min-height: var(--header-topbar-h) !important;
        max-height: var(--header-topbar-h) !important;
        padding: 0 !important;
        margin: 0 !important;
        overflow: hidden !important;
        background: var(--color-charcoal) !important;
        z-index: 1600 !important;
        pointer-events: auto !important;
        border-bottom: 1px solid rgba(255,255,255,.08) !important;
    }

    .sgs-topbar__inner {
        display: flex !important;
        visibility: visible !important;
        opacity: 1 !important;
        height: 100% !important;
        min-height: 0 !important;
        max-height: none !important;
        padding: 0 12px !important;
        margin: 0 auto !important;
        overflow: hidden !important;
        align-items: center !important;
        justify-content: center !important;
        pointer-events: auto !important;
    }

    /* در موبایل فقط نسخه فشرده تاپ‌بار نشان داده شود */
    .sgs-topbar__info,
    .sgs-topbar__social {
        display: none !important;
    }

    .sgs-topbar__mobile {
        display: flex !important;
        visibility: visible !important;
        opacity: 1 !important;
        height: 100% !important;
        max-height: none !important;
        min-height: 0 !important;
        width: 100% !important;
        padding: 0 !important;
        margin: 0 !important;
        align-items: center !important;
        justify-content: center !important;
        overflow: hidden !important;
        pointer-events: auto !important;
    }

    .sgs-topbar__mobile a {
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
        gap: 6px !important;
        color: var(--color-cream) !important;
        font-size: 13px !important;
        font-weight: 900 !important;
        line-height: 1 !important;
        text-decoration: none !important;
        direction: ltr;
        unicode-bidi: plaintext;
    }

    .sgs-topbar__mobile svg {
        width: 15px !important;
        height: 15px !important;
        color: var(--color-brick-light) !important;
        flex: 0 0 auto !important;
    }

    /* هدر زیر تاپ‌بار؛ با اسکرول پایین فقط خود هدر مخفی می‌شود */
    .sgs-header {
        display: block !important;
        position: fixed !important;
        top: var(--header-topbar-h) !important;
        left: 0 !important;
        right: 0 !important;
        height: var(--header-main-h) !important;
        z-index: 1550 !important;
        transform: translateY(0) !important;
        transition: transform .28s var(--ease-out), box-shadow .24s var(--ease-out) !important;
        box-shadow: 0 6px 20px rgba(26, 24, 20, 0.08);
    }

    .sgs-header.is-hidden {
        transform: translateY(-100%) !important;
    }

    .sgs-header.is-scrolled:not(.is-hidden) {
        box-shadow: 0 8px 24px rgba(26, 24, 20, 0.12) !important;
    }

    .sgs-header__inner {
        height: var(--header-main-h) !important;
    }

    .admin-bar .sgs-topbar {
        top: 0 !important;
    }

    .admin-bar .sgs-header {
        top: var(--header-topbar-h) !important;
    }

    .sgs-main,
    main#sgsMain {
        margin-top: 0 !important;
        padding-top: 0 !important;
    }

    /* فوتر موبایل: دو ستون اول حفظ شوند، تماس تمام‌عرض باشد */
    .sgs-footer__grid {
        display: grid !important;
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: 18px 14px !important;
        align-items: start !important;
    }

    .sgs-footer__col--about {
        grid-column: 1 / -1 !important;
        max-width: 100% !important;
    }

    .sgs-footer__col--contact {
        grid-column: 1 / -1 !important;
        width: 100% !important;
        margin-top: 4px !important;
        padding: 16px !important;
        border: 1px solid rgba(255,255,255,.08) !important;
        border-radius: 18px !important;
        background: rgba(255,255,255,.035) !important;
        text-align: right !important;
    }

    .sgs-footer__col--contact .sgs-footer__title {
        text-align: right !important;
        margin-bottom: 14px !important;
    }

    .sgs-footer__col--contact .sgs-footer__title::after {
        right: 0 !important;
        left: auto !important;
    }

    .sgs-footer__contact {
        gap: 12px !important;
    }

    .sgs-footer__contact li {
        justify-content: flex-start !important;
        text-align: right !important;
    }

    .sgs-footer__contact-value {
        overflow-wrap: anywhere;
    }

    /* زیر فوتر/طراحی و توسعه */
    .sgs-footer__bottom {
        padding-top: 16px !important;
        padding-bottom: calc(92px + env(safe-area-inset-bottom)) !important;
    }

    .sgs-footer__bottom-inner {
        display: grid !important;
        grid-template-columns: 1fr !important;
        justify-items: center !important;
        align-items: center !important;
        gap: 10px !important;
        text-align: center !important;
    }

    .sgs-footer__copyright {
        justify-content: center !important;
        text-align: center !important;
        gap: 6px 10px !important;
        line-height: 1.8 !important;
    }

    .sgs-footer__credit {
        width: 100% !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        gap: 6px !important;
        padding-top: 8px !important;
        margin-top: 2px !important;
        border-top: 1px solid rgba(255,255,255,.06) !important;
        text-align: center !important;
        line-height: 1.8 !important;
    }
}

@media (max-width: 420px) {
    .sgs-footer__grid {
        grid-template-columns: 1fr 1fr !important;
        gap: 16px 10px !important;
    }

    .sgs-footer__menu {
        grid-template-columns: 1fr !important;
    }

    .sgs-footer__title {
        font-size: 14px !important;
    }

    .sgs-footer__menu a {
        font-size: 12px !important;
        padding: 7px 5px !important;
    }
}

/* ═══════════════════════════════════════════════════════════════
   Final mobile/footer/offcanvas fix v3.1.0
   ═══════════════════════════════════════════════════════════════ */
@media (max-width: 768px) {
    /* Offcanvas باید بالاتر از هدر، تاپ‌بار و آیلند باشد */
    .sgs-overlay {
        z-index: 999998 !important;
    }

    .sgs-mobile-menu {
        z-index: 999999 !important;
        top: 0 !important;
        height: 100dvh !important;
        max-height: 100dvh !important;
    }

    .sgs-mobile-menu.is-open {
        visibility: visible !important;
    }

    body:has(.sgs-mobile-menu.is-open) .sgs-mobile-contact-island {
        opacity: 0 !important;
        pointer-events: none !important;
    }

    /* زیر فوتر نباید فضای اضافه بسازد */
    body,
    body.sgs-theme {
        padding-bottom: 0 !important;
        margin-bottom: 0 !important;
    }

    .sgs-footer {
        margin-bottom: 0 !important;
        padding-bottom: 0 !important;
    }

    .sgs-footer__bottom {
        margin-bottom: 0 !important;
        padding-bottom: 18px !important;
    }

    .sgs-mobile-contact-island {
        bottom: calc(8px + env(safe-area-inset-bottom)) !important;
        z-index: 1200 !important;
    }

    /* باکس تماس فوتر تمام عرض و مرتب */
    .sgs-footer__col--contact {
        grid-column: 1 / -1 !important;
        width: 100% !important;
    }

    .sgs-footer__bottom-inner {
        gap: 8px !important;
    }

    .sgs-footer__credit {
        justify-content: center !important;
        width: 100% !important;
        text-align: center !important;
    }

    .sgs-calc-notice {
        background: rgba(168, 65, 43, 0.08);
        border: 1px solid rgba(168, 65, 43, 0.18);
        border-radius: 16px;
        padding: 14px;
        margin: 16px 0;
        color: var(--color-graphite);
    }

    .sgs-calc-notice h4 {
        margin: 0 0 8px;
        color: var(--color-brick);
        font-size: 16px;
    }

    .sgs-calc-notice p,
    .sgs-calc-notice li {
        font-size: 13px;
        line-height: 1.9;
    }

    .sgs-calc-notice ul {
        margin: 8px 0 0;
        padding-right: 18px;
    }
}
