/* ============================================================================
   دکوپازل — سیستمِ طراحیِ قالبِ نو
   ----------------------------------------------------------------------------
   جایگزینِ بارِ قدیمی (bootstrap + animate + owl + revolution + ...) که روی هم
   حدودِ ۱٫۵ مگابایت CSS بود. اینجا فقط یک فایل است و هیچ وابستگیِ بیرونی ندارد.

   قواعدِ ثابت:
     • فونت لوکال است. گوگل‌فونت از ایران کند و ناپایدار است.
     • letter-spacing روی متنِ فارسی گذاشته نمی‌شود — حروف را از هم می‌پاشد.
     • فاصله‌ها با gap در flex/grid؛ margin تک‌عنصری کمینه.
     • قالب عمداً تک‌تم (روشن) است و همه‌ی رنگ‌ها صریح‌اند، پس در هیچ محیطی
       متنِ یک تم روی زمینه‌ی تمِ دیگر نمی‌افتد.
   ============================================================================ */

/* ---------- فونت ---------- */

/* ⚠️ بازه‌ی وزن باید صریح باشد. بدونِ «100 1000» مرورگر وزنِ پیش‌فرض را ۱۰۰
   می‌گیرد و کلِ سایت نازک و بی‌جان رندر می‌شود. */
@font-face {
    font-family: 'IRANYekanX';
    font-style: normal;
    font-weight: 100 1000;
    font-display: swap;
    src: url('/fonts/IRANYekanXVF.woff2') format('woff2');
}

/* فالبک با size-adjust: هم نویسه‌هایی که ایران‌یکان ندارد (· — →) وسطِ جمله
   درشت‌تر دیده نمی‌شوند، هم اگر فونتِ اصلی لود نشد صفحه یک‌باره بزرگ نمی‌شود. */
@font-face { font-family: 'IRANSans'; font-style: normal; font-weight: 300; font-display: swap; size-adjust: 83%; src: url('/fonts/IRANSansWeb_Light.woff2') format('woff2'); }
@font-face { font-family: 'IRANSans'; font-style: normal; font-weight: 400; font-display: swap; size-adjust: 83%; src: url('/fonts/IRANSansWeb.woff2') format('woff2'); }
@font-face { font-family: 'IRANSans'; font-style: normal; font-weight: 500; font-display: swap; size-adjust: 83%; src: url('/fonts/IRANSansWeb_Medium.woff2') format('woff2'); }
@font-face { font-family: 'IRANSans'; font-style: normal; font-weight: 700; font-display: swap; size-adjust: 83%; src: url('/fonts/IRANSansWeb_Bold.woff2') format('woff2'); }

/* ---------- توکن‌ها ---------- */

:root {
    /* ---------------------------------------------------------------------
       طیفِ رنگی از خودِ برند برداشته شده، نه از سلیقه: در لوگوی دکوپازل
       «DECO» مشکی است و «PUZZLE» کهربایی. همان دو رنگ روی سفید.
       رنگِ شاخصِ قالبِ قبلی (--primary-color-1: #FAB702) عیناً حفظ شده.

       ⚠️ کهربایی روی سفید کنتراستِ ~۱٫۹ دارد و برای *متن* قابلِ استفاده نیست.
       پس قاعده: کهربایی فقط زمینه و خطِ تأکید می‌شود و متنِ رویش مشکی است
       (همان کاری که لوگو می‌کند؛ کنتراستش ~۱۱). برای جایی که خودِ متن باید
       رنگی باشد، کهرباییِ سوخته (--brand-text) هست.
       --------------------------------------------------------------------- */

    /* زمینه‌ها — سفید و نقره‌ای، مثل تناوبِ سکشن‌های قالبِ قبلی */
    --paper: #ffffff;
    --paper-2: #f5f5f5;
    --card: #ffffff;
    --rule: #e4e4e2;
    --rule-2: #eeeeec;

    /* متن — مشکیِ لوگو */
    --ink: #17181a;
    --ink-2: #5f6166;
    --ink-3: #8d9095;

    /* رنگِ شاخص — کهربایی، همان #FAB702 قالبِ قبلی */
    --brand: #fab702;
    --brand-deep: #e0a300;
    --brand-soft: #fff6dc;
    --brand-ink: #17181a;
    --brand-text: #8a6400;

    /* تیره — بندهای تیره و پانویس، مثل سکشن‌های تیره‌ی قالبِ قبلی */
    --dark: #232628;
    --dark-2: #1a1d1f;
    --dark-ink: #f2f2f0;
    --dark-ink-2: #a9adb0;
    --dark-rule: #34383b;

    /* معنایی */
    --ok: #1f7a4d;
    --err: #b3261e;

    /* تایپوگرافی */
    --font: 'IRANYekanX', 'IRANSans', 'Segoe UI', Tahoma, system-ui, sans-serif;

    /* یک پله بزرگ‌تر از قبل. خطِ فارسی در اندازه‌ی کوچک زودتر خسته‌کننده
       می‌شود و ۸۹٪ بازدید این سایت موبایل است. */
    --t-xs: 13px;
    --t-sm: 14.5px;
    --t-base: 16.5px;
    --t-md: 18px;
    --t-lg: 21px;
    --t-xl: 26px;
    --t-2xl: clamp(27px, 3.7vw, 40px);
    --t-3xl: clamp(32px, 5.2vw, 54px);

    /* خطِ عربی/فارسی به ارتفاعِ سطرِ بیشتری از لاتین نیاز دارد */
    --lh-body: 2;
    --lh-tight: 1.45;

    /* شکل — گوشه‌های ملایم‌تر از قبل؛ قالبِ قبلی تقریباً بی‌گردی بود */
    --r-sm: 4px;
    --r: 6px;
    --r-lg: 10px;
    --r-pill: 999px;

    --sh-1: 0 1px 2px rgba(23, 24, 26, .05);
    --sh-2: 0 2px 6px rgba(23, 24, 26, .05), 0 12px 26px -18px rgba(23, 24, 26, .3);
    --sh-3: 0 4px 12px rgba(23, 24, 26, .07), 0 24px 48px -28px rgba(23, 24, 26, .38);

    /* چیدمان */
    --w: 1180px;
    --w-narrow: 720px;
    --gut: clamp(18px, 4vw, 34px);
    --sec: clamp(44px, 6vw, 78px);
}

/* ---------- پایه ---------- */

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
    margin: 0;
    background: var(--paper);
    color: var(--ink);
    font-family: var(--font);
    font-size: var(--t-base);
    font-weight: 400;
    line-height: var(--lh-body);
    direction: rtl;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5 {
    margin: 0;
    font-weight: 700;
    line-height: var(--lh-tight);
    text-wrap: balance;
}

h1 { font-size: var(--t-3xl); font-weight: 800; }
h2 { font-size: var(--t-2xl); }
h3 { font-size: var(--t-xl); }
h4 { font-size: var(--t-lg); }

p { margin: 0; }

a { color: var(--brand-text); text-decoration: none; }
a:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }

img, svg, video { max-width: 100%; height: auto; display: block; }

ul, ol { margin: 0; padding: 0; }

button { font: inherit; color: inherit; }

:focus-visible { outline: 2px solid var(--brand-text); outline-offset: 2px; border-radius: 2px; }

::selection { background: var(--brand-soft); color: var(--ink); }

/* ارقامِ هم‌عرض هرجا عدد در ستون می‌نشیند */
table, .num { font-variant-numeric: tabular-nums; }

/* ---------- ساختار ---------- */

.wrap {
    width: 100%;
    max-width: var(--w);
    margin-inline: auto;
    padding-inline: var(--gut);
}

.wrap-narrow { max-width: var(--w-narrow); }

.section { padding-block: var(--sec); }
.section-tight { padding-block: clamp(28px, 4vw, 48px); }
.section-soft { background: var(--paper-2); }
.section-line { border-top: 1px solid var(--rule); }

/*
   بندهای متناوب — قالبِ قبلی سکشن‌ها را یکی‌درمیان سفید و نقره‌ای (و جایی
   تیره) می‌کرد و همین ریتم، صفحه‌ی بلند را قابلِ اسکن می‌کرد.
   ⚠️ کلاسِ .band در ویوها استفاده می‌شد ولی هرگز در CSS تعریف نشده بود،
   یعنی این تناوب عملاً دیده نمی‌شد.
*/
.band { background: var(--paper-2); }
.band + .band { border-top: 1px solid var(--rule); }

/* بندِ تیره — برای یک یا دو نقطه‌ی تأکید در هر صفحه، نه بیشتر */
.band-dark { background: var(--dark); color: var(--dark-ink); }
.band-dark h1, .band-dark h2, .band-dark h3, .band-dark h4, .band-dark strong { color: #fff; }
.band-dark p, .band-dark .lead { color: var(--dark-ink-2); }
.band-dark a { color: #fff; }
.band-dark .btn-ghost { border-color: rgba(255,255,255,.32); color: #fff; }
.band-dark .btn-ghost:hover { background: rgba(255,255,255,.1); border-color: #fff; }
.band-dark .card { background: rgba(255,255,255,.045); border-color: var(--dark-rule); }
.band-dark .card p, .band-dark .card .muted { color: var(--dark-ink-2); }
.band-dark .sec-head p { color: var(--dark-ink-2); }

.stack { display: flex; flex-direction: column; }
.stack-sm { gap: 10px; }
.stack-md { gap: 18px; }
.stack-lg { gap: 30px; }

.skip {
    position: absolute;
    inset-inline-start: -9999px;
    top: 8px;
    z-index: 200;
    background: var(--brand);
    color: var(--brand-ink);
    padding: 10px 16px;
    border-radius: var(--r-sm);
}
.skip:focus { inset-inline-start: 8px; }

/* ---------- هدر ---------- */

.hdr {
    position: sticky;
    top: 0;
    z-index: 60;
    background: rgba(255, 255, 255, .94);
    backdrop-filter: saturate(1.4) blur(10px);
    border-bottom: 1px solid var(--rule);
}

.hdr-in {
    display: flex;
    align-items: center;
    gap: 12px;
    min-height: 66px;
}

.brand { display: flex; align-items: center; gap: 10px; flex: 0 0 auto; }
.brand img { height: 34px; width: auto; }
.brand b { font-size: var(--t-md); font-weight: 800; color: var(--ink); }
.brand span { font-size: var(--t-xs); color: var(--ink-3); display: block; line-height: 1.4; }
.brand:hover { text-decoration: none; }

/* منوی اصلی */
.nav { margin-inline-start: 18px; }
.nav > ul { display: flex; align-items: center; gap: 2px; list-style: none; }
.nav > ul > li { position: relative; }

.nav a {
    display: block;
    padding: 9px 13px;
    border-radius: var(--r-sm);
    color: var(--ink);
    font-size: var(--t-sm);
    font-weight: 500;
    white-space: nowrap;
}
.nav a:hover { background: var(--paper-2); text-decoration: none; }
.nav a[aria-current="page"] { color: var(--brand-text); background: var(--brand-soft); }

/* زیرمنو */
.nav li ul {
    position: absolute;
    top: calc(100% + 6px);
    inset-inline-end: 0;
    min-width: 216px;
    list-style: none;
    padding: 7px;
    background: var(--card);
    border: 1px solid var(--rule);
    border-radius: var(--r);
    box-shadow: var(--sh-3);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-5px);
    transition: opacity .16s ease, transform .16s ease, visibility .16s;
}
.nav li:hover > ul,
.nav li:focus-within > ul { opacity: 1; visibility: visible; transform: none; }
.nav li ul a { font-weight: 400; }

/* اکشن‌های سمتِ چپ */
.hdr-act { margin-inline-start: auto; display: flex; align-items: center; gap: 10px; }

.hdr-tel {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    line-height: 1.35;
    font-size: var(--t-sm);
}
.hdr-tel span { color: var(--ink-3); font-size: var(--t-xs); }
.hdr-tel b { color: var(--ink); font-weight: 700; }
.hdr-tel:hover { text-decoration: none; }

.burger {
    display: none;
    width: 42px;
    height: 38px;
    align-items: center;
    justify-content: center;
    gap: 4px;
    flex-direction: column;
    background: transparent;
    border: 1px solid var(--rule);
    border-radius: var(--r-sm);
    cursor: pointer;
}
.burger i { display: block; width: 17px; height: 1.5px; background: var(--ink); }

/* ---------- دکمه‌ها ---------- */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 11px 20px;
    border: 1px solid transparent;
    border-radius: var(--r-pill);
    background: var(--brand);
    color: var(--brand-ink);
    font-size: var(--t-sm);
    font-weight: 600;
    cursor: pointer;
    transition: background .18s ease, transform .18s ease, box-shadow .18s ease;
}
.btn:hover { background: var(--brand-deep); color: var(--brand-ink); text-decoration: none; box-shadow: var(--sh-2); }
.btn:active { transform: translateY(1px); }
.btn[disabled] { opacity: .55; cursor: default; box-shadow: none; }

.btn-ghost { background: transparent; color: var(--ink); border-color: var(--rule); }
.btn-ghost:hover { background: var(--paper-2); color: var(--ink); border-color: var(--ink-3); box-shadow: none; }

.btn-block { width: 100%; }
.btn-lg { padding: 14px 26px; font-size: var(--t-base); }
.btn-sm { padding: 8px 15px; font-size: var(--t-xs); }

/* ---------- ریزعنوان و جداکننده ---------- */

.eyebrow {
    display: inline-block;
    font-size: var(--t-xs);
    font-weight: 700;
    color: var(--brand-text);
}

/*
   خطِ کوتاهِ کهربایی زیرِ عنوانِ بخش — همان نشانه‌ی «small-border» قالبِ قبلی
   که همه‌جای سایت تکرار می‌شد. تنها چیزی است که از آن قالب حفظِ ظاهری دارد
   و ریتمِ بخش‌ها را می‌سازد.
*/
.sec-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: clamp(20px, 3vw, 34px); }
.sec-head .stack { gap: 7px; }
.sec-head p { color: var(--ink-2); font-size: var(--t-sm); max-width: 56ch; }
.sec-head h2, .sec-head h1 { position: relative; padding-bottom: 13px; }
.sec-head h2::after, .sec-head h1::after {
    content: '';
    position: absolute;
    inset-block-end: 0;
    inset-inline-start: 0;
    width: 44px;
    height: 3px;
    background: var(--brand);
    border-radius: 2px;
}

/* نسخه‌ی وسط‌چین — برای بخش‌هایی که تیتر تنهاست */
.sec-head.center { flex-direction: column; align-items: center; text-align: center; }
.sec-head.center h2::after { inset-inline-start: 50%; transform: translateX(50%); }
.sec-head.center p { text-align: center; }

/* ---------- خرده‌راه ---------- */

.crumb { display: flex; flex-wrap: wrap; align-items: center; gap: 7px; list-style: none; font-size: var(--t-xs); color: var(--ink-3); }
.crumb a { color: var(--ink-2); }
.crumb li:not(:last-child)::after { content: '/'; margin-inline-start: 7px; color: var(--rule); }

/* ---------- سرصفحه‌ی صفحه ---------- */

.phead { background: var(--paper-2); border-bottom: 1px solid var(--rule); padding-block: clamp(26px, 4vw, 46px); }
.phead h1 { margin-block: 12px 0; }
.phead .lede,
.phead .lead { margin-top: 14px; max-width: 62ch; color: var(--ink-2); font-size: var(--t-md); }
.phead-tags { display: flex; flex-wrap: wrap; gap: 8px 20px; margin-top: 20px; font-size: var(--t-sm); color: var(--ink-2); }
.phead-tags b { color: var(--ink); font-weight: 600; }

/*
   سرصفحه‌ی تصویردار — جایگزینِ #subheader قالبِ قبلی که عکسِ پس‌زمینه با
   پوششِ تیره داشت. عکس از پروژه‌های واقعیِ خودِ سایت می‌آید (متغیرِ --phead-img)
   و اگر نباشد، سرصفحه همان حالتِ سادهٔ روشن را دارد.
*/
.phead.on-image {
    position: relative;
    background: var(--dark);
    border-bottom: 0;
    padding-block: clamp(40px, 7vw, 92px);
    overflow: hidden;
}
.phead.on-image::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: var(--phead-img);
    background-size: cover;
    background-position: center;
    opacity: .5;
}
.phead.on-image::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to left, rgba(23,24,26,.9) 5%, rgba(23,24,26,.62) 55%, rgba(23,24,26,.3) 100%);
}
.phead.on-image > .wrap { position: relative; z-index: 1; }
.phead.on-image h1 { color: #fff; }
.phead.on-image .lead,
.phead.on-image .lede { color: rgba(255,255,255,.85); }
.phead.on-image .small,
.phead.on-image .muted { color: rgba(255,255,255,.7); }
.phead.on-image .crumb { color: rgba(255,255,255,.6); }
.phead.on-image .crumb a { color: rgba(255,255,255,.82); }
.phead.on-image .crumb li:not(:last-child)::after { color: rgba(255,255,255,.34); }

/* ---------- کارت ---------- */

.card {
    background: var(--card);
    border: 1px solid var(--rule);
    border-radius: var(--r);
    box-shadow: var(--sh-1);
    overflow: hidden;
    transition: box-shadow .2s ease, transform .2s ease, border-color .2s ease;
}
/*
   هاور: خطِ کهربایی در لبه‌ی بالای کارت روشن می‌شود. تنها جایی که رنگِ
   شاخص در سطحِ بزرگ ظاهر می‌شود، پس تأکید هدر نمی‌رود.
*/
.card { position: relative; }
.card::before {
    content: '';
    position: absolute;
    inset-block-start: 0;
    inset-inline: 0;
    height: 3px;
    background: var(--brand);
    transform: scaleX(0);
    transform-origin: right;
    transition: transform .28s ease;
    z-index: 2;
}
a.card:hover, .card-hover:hover { box-shadow: var(--sh-3); transform: translateY(-3px); border-color: var(--rule); text-decoration: none; }
a.card:hover::before, .card-hover:hover::before { transform: scaleX(1); }

.card-body { padding: 18px 20px 20px; }
.card-body h3, .card-body h4 { margin-bottom: 7px; color: var(--ink); }
.card-body p { color: var(--ink-2); font-size: var(--t-sm); }
a.card:hover .card-body h2,
a.card:hover .card-body h3,
a.card:hover .card-body h4 { color: var(--brand-text); }

.card-media { position: relative; aspect-ratio: 4 / 3; background: var(--paper-2); overflow: hidden; }
.card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .45s ease; }
a.card:hover .card-media img, .card-hover:hover .card-media img { transform: scale(1.04); }

/* شبکه‌ها */
.grid { display: grid; gap: clamp(14px, 2vw, 22px); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.grid-auto { grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); }

/* ---------- چیپ / برچسب ---------- */

.chips { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; }
.chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 14px;
    border: 1px solid var(--rule);
    border-radius: var(--r-pill);
    background: var(--card);
    color: var(--ink);
    font-size: var(--t-xs);
    font-weight: 500;
}
.chip:hover { border-color: var(--brand-text); color: var(--brand-text); text-decoration: none; }
.chip[aria-current="true"], .chip.is-on { background: var(--brand); border-color: var(--brand); color: var(--brand-ink); }
.chip small { color: var(--ink-3); }
.chip[aria-current="true"] small, .chip.is-on small { color: rgba(255, 255, 255, .7); }

/* ---------- متنِ مقاله و صفحه ---------- */

.prose { font-size: var(--t-md); line-height: 2.05; color: #26281f; }
.prose > * + * { margin-top: 1.05em; }
.prose h2 { margin-top: 1.9em; font-size: var(--t-xl); }
.prose h3 { margin-top: 1.6em; font-size: var(--t-lg); }
.prose h2 + *, .prose h3 + * { margin-top: .6em; }
.prose ul, .prose ol { padding-inline-start: 1.3em; }
.prose li + li { margin-top: .5em; }
.prose li::marker { color: var(--brand); }
.prose a { text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--rule); }
.prose a:hover { text-decoration-color: currentColor; }
.prose strong { font-weight: 700; color: var(--ink); }
.prose img { border-radius: var(--r); margin-block: 1.6em; }
.prose figure { margin: 1.6em 0; }
.prose figcaption { margin-top: 9px; font-size: var(--t-xs); color: var(--ink-3); text-align: center; }

.prose blockquote {
    margin: 1.6em 0;
    padding: 4px 20px;
    border-inline-start: 3px solid var(--brand);
    color: var(--ink-2);
}

.prose table { width: 100%; border-collapse: collapse; font-size: var(--t-sm); margin-block: 1.7em; }
.prose th, .prose td { padding: 12px 14px; text-align: right; border-bottom: 1px solid var(--rule); vertical-align: top; }
.prose thead th { background: var(--paper-2); color: var(--ink); font-weight: 700; font-size: var(--t-xs); border-bottom: 1px solid var(--rule); }
.prose tbody tr:last-child td { border-bottom: 0; }

/* جدولِ عریض روی موبایل باید داخلِ خودش اسکرول شود، نه اینکه صفحه را بشکند */
.scroll-x { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.prose .scroll-x table { margin-block: 0; }
.prose .scroll-x { margin-block: 1.7em; border: 1px solid var(--rule); border-radius: var(--r); }

/* ---------- فرم ---------- */

.field { display: block; }
.field + .field { margin-top: 10px; }
.field span { display: block; font-size: var(--t-xs); color: var(--ink-2); margin-bottom: 5px; }

.input {
    width: 100%;
    padding: 11px 14px;
    background: var(--card);
    color: var(--ink);
    border: 1px solid var(--rule);
    border-radius: var(--r-sm);
    font: inherit;
    font-size: var(--t-sm);
    transition: border-color .16s ease, box-shadow .16s ease;
}
.input::placeholder { color: var(--ink-3); }
.input:focus { border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-soft); outline: none; }
.input[aria-invalid="true"] { border-color: var(--err); }

textarea.input { resize: vertical; min-height: 92px; line-height: 1.85; }

.hp { position: absolute; inset-inline-start: -9999px; opacity: 0; pointer-events: none; }

.form-note { font-size: var(--t-xs); color: var(--ink-2); line-height: 1.85; }
.form-msg { margin-top: 10px; font-size: var(--t-sm); display: none; }
.form-msg.show { display: block; }
.form-msg.ok { color: var(--ok); }
.form-msg.err { color: var(--err); }

/* جعبه‌ی استعلام */
.quote {
    background: var(--card);
    border: 1px solid var(--rule);
    border-radius: var(--r-lg);
    padding: clamp(20px, 3vw, 26px);
    box-shadow: var(--sh-2);
}
.quote h3 { font-size: var(--t-lg); margin-bottom: 8px; }
.quote > .form-note { margin-bottom: 16px; }

/* ---------- آکاردئون ---------- */

.acc { border: 1px solid var(--rule); border-radius: var(--r); overflow: hidden; background: var(--card); }
.acc details + details { border-top: 1px solid var(--rule); }
.acc summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 16px 20px;
    cursor: pointer;
    font-weight: 600;
    font-size: var(--t-base);
    list-style: none;
}
.acc summary::-webkit-details-marker { display: none; }
.acc summary::after {
    content: '';
    flex: 0 0 auto;
    width: 9px; height: 9px;
    border-inline-end: 1.8px solid var(--ink-3);
    border-block-end: 1.8px solid var(--ink-3);
    transform: rotate(45deg);
    transition: transform .2s ease;
}
.acc details[open] summary { color: var(--brand-text); }
.acc details[open] summary::after { transform: rotate(-135deg); }
.acc .acc-body { padding: 0 20px 18px; color: var(--ink-2); }

/* ---------- مراحل ---------- */

.steps { display: grid; grid-template-columns: repeat(6, 1fr); gap: 12px; list-style: none; }
.steps li { background: var(--card); border: 1px solid var(--rule); border-radius: var(--r); padding: 16px 15px; }
.steps i {
    display: block;
    font-style: normal;
    font-size: var(--t-xs);
    font-weight: 800;
    color: var(--brand-text);
    margin-bottom: 8px;
}
.steps b { display: block; font-size: var(--t-sm); font-weight: 700; margin-bottom: 3px; }
.steps p { font-size: var(--t-xs); color: var(--ink-2); line-height: 1.75; }

/* ---------- CTA میانِ محتوا ---------- */

.cta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 18px 26px;
    padding: clamp(20px, 3vw, 28px);
    background: var(--brand-soft);
    border: 1px solid #d8e2d8;
    border-radius: var(--r-lg);
}
.cta .stack { gap: 6px; flex: 1 1 280px; }
.cta strong { font-size: var(--t-md); font-weight: 700; color: var(--ink); }
.cta p { font-size: var(--t-sm); color: #4b5548; }
.cta-act { display: flex; flex-wrap: wrap; gap: 9px; }

/* ---------- پانویس ---------- */

.ftr { margin-top: var(--sec); background: var(--dark-2); color: var(--dark-ink-2); padding-block: clamp(38px, 5vw, 60px) 0; }
.ftr a { color: var(--dark-ink-2); }
.ftr a:hover { color: #fff; }
.ftr h4 { color: #fff; font-size: var(--t-sm); margin-bottom: 14px; }
.ftr-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.2fr; gap: clamp(24px, 4vw, 44px); }
.ftr ul { list-style: none; display: flex; flex-direction: column; gap: 9px; font-size: var(--t-sm); }
.ftr p { font-size: var(--t-sm); line-height: 1.9; color: #93979a; }
.ftr .brand b { color: #fff; }
.ftr .brand span { color: #93979a; }
.ftr-bar {
    margin-top: clamp(30px, 4vw, 46px);
    border-top: 1px solid #2c302a;
    padding-block: 18px;
    display: flex;
    flex-wrap: wrap;
    gap: 10px 22px;
    align-items: center;
    font-size: var(--t-xs);
    color: #8b8d85;
}
.ftr-bar a { color: #8b8d85; }

/* ---------- نوارِ چسبانِ موبایل ---------- */

.mbar { display: none; }

/* ---------- کشوی موبایل ---------- */

.drawer {
    position: fixed;
    inset: 0;
    z-index: 90;
    display: none;
}
.drawer[open] { display: block; }
.drawer::backdrop { background: rgba(28, 30, 25, .5); }
.drawer-panel {
    position: absolute;
    inset-block: 0;
    inset-inline-end: 0;
    width: min(86vw, 330px);
    background: var(--paper);
    padding: 18px;
    overflow-y: auto;
    box-shadow: var(--sh-3);
}
.drawer-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 18px; }
.drawer-close { width: 38px; height: 38px; border: 1px solid var(--rule); border-radius: var(--r-sm); background: transparent; cursor: pointer; font-size: 19px; line-height: 1; }
.drawer nav ul { list-style: none; display: flex; flex-direction: column; gap: 2px; }
.drawer nav a { display: block; padding: 11px 12px; border-radius: var(--r-sm); color: var(--ink); font-weight: 500; }
.drawer nav a:hover { background: var(--paper-2); text-decoration: none; }
.drawer nav li ul { margin-inline-start: 12px; border-inline-start: 1px solid var(--rule); padding-inline-start: 6px; }
.drawer nav li ul a { font-weight: 400; font-size: var(--t-sm); color: var(--ink-2); }
.drawer-foot { margin-top: 20px; display: grid; gap: 9px; }

/* ---------- نوارِ پیشرفتِ مطالعه ---------- */

.progress {
    position: fixed;
    top: 0;
    inset-inline: 0;
    height: 2.5px;
    z-index: 70;
    background: transparent;
    pointer-events: none;
}
.progress i { display: block; height: 100%; width: 0; background: var(--brand); transition: width .1s linear; }

/* ---------- خالی / خطا ---------- */

.empty { text-align: center; padding-block: clamp(40px, 7vw, 80px); }
.empty h2 { margin-bottom: 10px; }
.empty p { color: var(--ink-2); max-width: 46ch; margin-inline: auto; }
.empty .btn { margin-top: 22px; }

/* ---------- کمکی ---------- */

.muted { color: var(--ink-2); }
.small { font-size: var(--t-sm); }
.xsmall { font-size: var(--t-xs); }
.center { text-align: center; }
.mt-lg { margin-top: clamp(24px, 3vw, 38px); }
.hide { display: none !important; }

/* ============================================================================
   واکنش‌گرایی — ۸۹٪ ترافیکِ این سایت موبایل است، پس شکستِ موبایل
   نقطه‌ی طراحی است نه اصلاحِ بعدی.
   ============================================================================ */

@media (max-width: 1024px) {
    .grid-4 { grid-template-columns: repeat(2, 1fr); }
    .steps { grid-template-columns: repeat(3, 1fr); }
    .ftr-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 880px) {
    .nav { display: none; }
    .burger { display: flex; }
    .hdr-tel { display: none; }
    .grid-3 { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 620px) {
    :root { --lh-body: 1.9; }

    .hdr-in { min-height: 58px; }
    .brand img { height: 29px; }

    .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
    .grid-auto { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
    .steps { grid-template-columns: repeat(2, 1fr); gap: 9px; }
    .ftr-grid { grid-template-columns: 1fr; }

    .sec-head { flex-direction: column; align-items: flex-start; gap: 10px; }

    /* جای نوارِ چسبان */
    body.has-mbar { padding-bottom: 62px; }

    .mbar {
        display: flex;
        position: fixed;
        inset-inline: 0;
        bottom: 0;
        z-index: 80;
        gap: 1px;
        background: var(--rule);
        border-top: 1px solid var(--rule);
        box-shadow: 0 -2px 14px rgba(28, 30, 25, .08);
    }
    .mbar a {
        flex: 1;
        padding: 13px 4px;
        background: var(--paper);
        color: var(--ink);
        font-size: var(--t-sm);
        font-weight: 500;
        text-align: center;
    }
    .mbar a:hover { text-decoration: none; }
    .mbar a.go { background: var(--brand); color: var(--brand-ink); font-weight: 700; }
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}

@media print {
    .hdr, .mbar, .ftr, .quote, .cta, .progress, .drawer { display: none !important; }
    body { background: #fff; }
}
