/* ---------------------------------------------------------------- فونت
   وزیرمتن، میزبانی‌شده روی خود دامنه. پیش‌تر از cdn.jsdelivr.net می‌آمد که
   یک مبدأ سومِ اضافه بود (DNS + TLS جدا) و تنها عاملِ جابه‌جایی چیدمان
   (CLS) در موبایل. این فایل‌ها به کاراکترهای واقعی سایت محدود شده‌اند:
   ۲۰۴ کیلوبایت از CDN به ۱۲۸ کیلوبایت از همین دامنه رسید.
   font-display: swap تا متن بلافاصله با فونت سیستمی دیده شود.
   وزن ۵۰۰ عمداً ارسال نمی‌شود؛ تنها یک جا لازم بود و به ۶۰۰ نگاشت شد. */
@font-face {
    font-family: 'Vazirmatn';
    src: url('/assets/fonts/vazirmatn-400.woff2') format('woff2');
    font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
    font-family: 'Vazirmatn';
    src: url('/assets/fonts/vazirmatn-600.woff2') format('woff2');
    font-weight: 600; font-style: normal; font-display: swap;
}
@font-face {
    font-family: 'Vazirmatn';
    src: url('/assets/fonts/vazirmatn-700.woff2') format('woff2');
    font-weight: 700; font-style: normal; font-display: swap;
}
@font-face {
    font-family: 'Vazirmatn';
    src: url('/assets/fonts/vazirmatn-800.woff2') format('woff2');
    font-weight: 800; font-style: normal; font-display: swap;
}

/* ===== فروشگاه شهپری — سیستم طراحی ===== */
/*
  جهت‌گیری: «شیشه‌ی مایع» اپل + پس‌زمینه‌ی زغالیِ گرم + لهجه‌ی طلایی.
  چرا طلایی به‌جای آبی؟ آبیِ قبلی (#0a84ff) همان آبیِ هر داشبورد SaaS بود و
  هیچ تمایزی نمی‌ساخت. طلایی گرم روی مشکی، حسِ «اورجینال و باارزش» می‌دهد که
  دقیقاً پیام این فروشگاه است، و از رقبای محلی جدا می‌شود.
*/
:root {
    /* --- سطوح: زغالیِ گرم (مایل به قهوه‌ای)، نه آبی‌خاکستری --- */
    --bg:          #0a0908;
    --surface:     #0f0e0d;
    --surface-2:   #161412;
    --surface-3:   #1e1b18;
    --line:        rgba(255, 246, 232, .10);
    --line-strong: rgba(255, 246, 232, .18);

    /* --- متن --- */
    --text:        #f7f4ef;
    --text-soft:   #b3aca2;
    --text-dim:    #8a8278;

    /* --- لهجه: طلا --- */
    --gold:        #d4a24c;
    --gold-bright: #e9bd6e;
    --gold-deep:   #a1752f;
    --gold-glow:   rgba(212, 162, 76, .22);
    --on-gold:     #17120a;

    /* --- رنگ کمکی برای لینک‌های داخل متن --- */
    --link:        #e0b36a;

    /* --- مقیاس فاصله (۴/۸) --- */
    --s-1: 4px;  --s-2: 8px;  --s-3: 12px; --s-4: 16px;
    --s-5: 24px; --s-6: 32px; --s-7: 48px; --s-8: 64px;
    --s-9: 96px; --s-10: 128px;

    /* --- مقیاس تایپوگرافی (فارسی به ارتفاع خط بیشتری نیاز دارد) --- */
    --fs-xs: 13px; --fs-sm: 14.5px; --fs-base: 16.5px; --fs-lg: 18px;
    --fs-xl: 21px; --fs-2xl: 26px; --fs-3xl: 32px; --fs-4xl: clamp(30px, 5vw, 50px);
    --lh-tight: 1.35; --lh-snug: 1.6; --lh-body: 1.95;

    /* --- شعاع و سایه --- */
    --r-sm: 10px; --r-md: 16px; --r-lg: 22px; --r-full: 999px;
    --shadow:    0 8px 30px rgba(0,0,0,.45);
    --shadow-lg: 0 24px 60px rgba(0,0,0,.6);
    --shadow-gold: 0 10px 34px rgba(212,162,76,.18);

    --maxw: 1180px;
    --maxw-text: 760px;

    /* --- سازگاری با نام‌های قدیمی که هنوز در CSS استفاده می‌شوند --- */
    --bg-2: var(--surface-2);
    --brand: var(--gold);
    --brand-2: var(--gold-deep);
    --accent: var(--gold);
    --radius: var(--r-lg);
    --radius-sm: var(--r-sm);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }
/* جلوگیری از اسکرول افقی بدون به‌هم‌ریختن چیدمان RTL (clip به‌جای hidden) */
body { overflow-x: clip; }

body {
    font-family: 'Vazirmatn', system-ui, -apple-system, 'Segoe UI', Tahoma, sans-serif;
    color: var(--text);
    background: var(--surface);
    line-height: 1.8;
    -webkit-font-smoothing: antialiased;
}

/* height:auto اجباری است. صفحات روی تگ‌های width/height تصاویر حساب می‌کنند تا
   جای تصویر پیش از بارگذاری رزرو شود (جلوگیری از CLS)، ولی بدون این خط، وقتی
   max-width عرض را کم می‌کند ارتفاع روی همان عدد HTML می‌ماند و تصویر کشیده
   می‌شود — مثلاً ۱۰۰۰×۷۳۰ روی ۸۲۰×۷۳۰ رندر می‌شد. */
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 20px; }

.grad {
    background: linear-gradient(90deg, var(--brand), var(--brand-2));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

/* ===== Header ===== */
.site-header {
    position: sticky; top: 0; z-index: 50;
    background: rgba(12, 12, 17, .72);
    backdrop-filter: saturate(180%) blur(20px);
    -webkit-backdrop-filter: saturate(180%) blur(20px);
    border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 70px; }

.brand { display: flex; align-items: center; gap: 13px; }
.brand-mark {
    width: 42px; height: 42px; border-radius: 13px;
    background: linear-gradient(160deg, #ffffff, #eef0f4);
    position: relative; flex: none;
    display: grid; place-items: center;
    border: 1px solid rgba(0, 0, 0, .06);
    box-shadow: 0 4px 14px rgba(0, 0, 0, .08), inset 0 1px 0 #fff;
    transition: transform .2s, box-shadow .2s;
}
.brand:hover .brand-mark { transform: translateY(-1px); box-shadow: 0 8px 22px rgba(0, 0, 0, .12), inset 0 1px 0 #fff; }
.brand-mark img { color: #1d1d1f; margin-top: -2px; }
.brand-text { display: flex; flex-direction: column; line-height: 1.3; }
.brand-text strong { font-size: 17px; letter-spacing: -.2px; }
.brand-text small { color: var(--text-soft); font-size: 10px; letter-spacing: 1.5px; text-transform: uppercase; }

.main-nav { display: flex; align-items: center; gap: 26px; }
.main-nav ul { display: flex; align-items: center; gap: 26px; }
.main-nav a { font-size: 15px; color: var(--text-soft); transition: color .2s; }
.main-nav a:hover, .main-nav a.active { color: var(--text); }
.main-nav a.active { font-weight: 700; }

.nav-cta {
    background: linear-gradient(135deg, var(--brand), var(--brand-2)); color: #fff !important;
    padding: 9px 18px; border-radius: 999px; font-size: 14px; font-weight: 600;
    box-shadow: 0 8px 20px rgba(212,162,76,.3);
    transition: transform .15s, opacity .2s;
}
.nav-cta:hover { opacity: .9; transform: translateY(-1px); }

.nav-toggle { display: none; background: none; border: none; cursor: pointer; padding: 8px; }
.nav-toggle span { display: block; width: 24px; height: 2px; background: var(--text); margin: 5px 0; border-radius: 2px; transition: .3s; }
.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ===== Buttons ===== */
.btn {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 13px 26px; border-radius: 999px; font-weight: 600; font-size: 15px;
    cursor: pointer; border: none; transition: transform .15s, box-shadow .2s, opacity .2s;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: linear-gradient(135deg, var(--brand), var(--brand-2)); color: #fff; box-shadow: 0 12px 30px rgba(212,162,76,.3); }
.btn-ghost { background: var(--surface-2); color: var(--text); border: 1px solid var(--line); }
/* روی پس‌زمینه‌ی سفید باید متن تیره باشد؛ var(--text) تقریباً سفید است و
   دکمه‌ی تماس را نامرئی می‌کرد. */
.btn-light { background: #fff; color: #0b0b0f; }

/* ===== Hero ===== */
.hero {
    background:
        radial-gradient(1100px 520px at 85% -10%, rgba(233,189,110,.22), transparent 60%),
        radial-gradient(900px 520px at 8% 0%, rgba(212,162,76,.20), transparent 55%),
        linear-gradient(180deg, #0e0e15, #0b0b0f);
    overflow: hidden;
}
.hero-inner { display: grid; grid-template-columns: 1.1fr .9fr; gap: 40px; align-items: center; padding: 70px 20px 60px; }
.eyebrow {
    display: inline-block; font-size: 13px; font-weight: 700; color: var(--brand);
    background: rgba(212,162,76,.1); padding: 6px 14px; border-radius: 999px; margin-bottom: 18px;
}
.hero-text h1 { font-size: clamp(32px, 5vw, 54px); line-height: 1.25; font-weight: 800; margin-bottom: 18px; }
.hero-text p { font-size: 18px; color: var(--text-soft); max-width: 520px; margin-bottom: 28px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 34px; }
.hero-stats { display: flex; gap: 34px; flex-wrap: wrap; }
.hero-stats div { display: flex; flex-direction: column; }
.hero-stats strong { font-size: 26px; font-weight: 800; }
.hero-stats span { font-size: 13px; color: var(--text-soft); }
.hero-media { position: relative; display: flex; justify-content: center; }
.hero-media img { filter: drop-shadow(0 40px 60px rgba(0,0,0,.25)); max-height: 520px; width: auto; }

/* ===== Badges ===== */
.badges { border-bottom: 1px solid var(--line); }
.badges-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; padding: 26px 20px; }
.badge { display: flex; align-items: center; gap: 10px; font-weight: 600; font-size: 15px; justify-content: center; }
.badge span { font-size: 20px; color: var(--accent); }

/* ===== Sections ===== */
.section { padding: 72px 0; }
.section-alt { background: var(--surface-2); }
.section-head { text-align: center; max-width: 640px; margin: 0 auto 44px; }
.section-head h2 { font-size: clamp(26px, 4vw, 38px); font-weight: 800; margin-bottom: 12px; }
.section-head p { color: var(--text-soft); font-size: 17px; }
.muted { color: var(--text-soft); }

/* ===== Cards ===== */
.cards-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.cards-grid.four { grid-template-columns: repeat(4, 1fr); }
.card {
    background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
    padding: 30px 26px; transition: transform .2s, box-shadow .2s, border-color .2s;
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: transparent; }
.card-icon { font-size: 34px; margin-bottom: 16px; }
.card h3 { font-size: 19px; margin-bottom: 10px; }
.card p { color: var(--text-soft); font-size: 15px; }
.card-link { display: inline-block; margin-top: 14px; color: var(--brand); font-weight: 600; font-size: 14px; }

/* ===== Products ===== */
.products-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.product {
    background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
    padding: 24px; text-align: center; transition: transform .2s, box-shadow .2s;
}
.product:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
/* تصاویر محصول روی پس‌زمینه‌ی تیره رندر شده‌اند، پس پنل پشتشان هم باید تیره
   باشد؛ گرادیان سفید قبلی با تم سایت و با خودِ تصاویر تداخل داشت. */
.product-media {
    height: 180px; display: flex; align-items: center; justify-content: center;
    background: radial-gradient(120% 90% at 50% 15%, #17140f, #0a0a0e 70%);
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    margin-bottom: 16px; overflow: hidden;
}
.product-media img { max-height: 160px; width: auto; object-fit: contain; }
.product h3 { font-size: 17px; margin-bottom: 4px; }

/* ===== Why / split sections ===== */
.why-grid, .guarantee, .contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; align-items: center; }
.why-media img, .guarantee-media img { border-radius: var(--radius); box-shadow: var(--shadow-lg); }
.why-text h2, .guarantee-text h2 { font-size: clamp(24px, 3.5vw, 34px); font-weight: 800; margin-bottom: 18px; }
.why-text p, .guarantee-text p { color: var(--text-soft); margin-bottom: 20px; }

.check-list { display: grid; gap: 12px; margin-bottom: 24px; }
.check-list li { position: relative; padding-right: 30px; }
.check-list li::before {
    content: '✓'; position: absolute; right: 0; top: 2px;
    width: 22px; height: 22px; background: rgba(212,162,76,.16); color: var(--gold);
    border-radius: 50%; display: grid; place-items: center; font-size: 13px; font-weight: 800;
}
.check-list.compact li { padding-right: 26px; font-size: 15px; }
.check-list.compact { margin-bottom: 0; }

/* ===== Page hero (inner pages) ===== */
.page-hero {
    background:
        radial-gradient(900px 400px at 80% -20%, rgba(161,117,47,.2), transparent 60%),
        linear-gradient(180deg, var(--bg), #15120e);
    color: #fff; text-align: center; padding: 70px 0 64px;
}
.page-hero .eyebrow { background: rgba(255,255,255,.12); color: #fff; }
.page-hero h1 { font-size: clamp(28px, 4.5vw, 46px); font-weight: 800; margin-bottom: 14px; }
.page-hero p { color: rgba(255,255,255,.75); font-size: 18px; max-width: 620px; margin: 0 auto 26px; }
.page-hero .hero-actions { justify-content: center; }
.page-hero .btn-ghost { background: rgba(255,255,255,.1); color: #fff; border-color: rgba(255,255,255,.2); }

/* ===== Steps ===== */
.steps-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.step { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px 22px; text-align: center; }
.step-num {
    width: 50px; height: 50px; margin: 0 auto 16px; border-radius: 50%;
    background: linear-gradient(135deg, var(--brand), var(--brand-2)); color: #fff;
    display: grid; place-items: center; font-size: 20px; font-weight: 800;
}
.step h3 { font-size: 18px; margin-bottom: 8px; }
.step p { color: var(--text-soft); font-size: 15px; }

/* ===== Service cards ===== */
.service-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; }
.service-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 30px; }
.service-head { display: flex; align-items: center; gap: 14px; margin-bottom: 18px; }
.service-head h3 { font-size: 20px; }
.service-head .card-icon { margin: 0; font-size: 30px; }

/* ===== FAQ ===== */
.faq-wrap { max-width: 820px; }
.faq-list { display: grid; gap: 14px; }
.faq-item { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 4px 20px; }
.faq-item summary { cursor: pointer; font-weight: 700; padding: 16px 0; list-style: none; display: flex; justify-content: space-between; align-items: center; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: '+'; font-size: 22px; color: var(--brand); font-weight: 400; }
.faq-item[open] summary::after { content: '−'; }
.faq-item p { color: var(--text-soft); padding-bottom: 18px; }

/* ===== Guarantee section ===== */
.guarantee-text .check-list { margin-bottom: 0; }

/* ===== Forms ===== */
.form-wrap { max-width: 760px; }
.contact-form { display: grid; gap: 18px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 32px; box-shadow: var(--shadow); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.contact-form label { display: grid; gap: 8px; font-weight: 600; font-size: 14px; }
.contact-form input, .contact-form select, .contact-form textarea {
    font-family: inherit; font-size: 15px; padding: 12px 14px;
    border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--surface-2);
    color: var(--text); transition: border-color .2s, box-shadow .2s;
}
.contact-form input:focus, .contact-form select:focus, .contact-form textarea:focus {
    outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px rgba(212,162,76,.2); background: #1b1b22;
}
.contact-form ::placeholder { color: var(--text-soft); opacity: .65; }
.contact-form textarea { resize: vertical; }
.contact-form .btn { justify-self: start; }
.alert { padding: 14px 18px; border-radius: var(--radius-sm); margin-bottom: 18px; font-weight: 600; }
.alert.success { background: rgba(48,209,88,.12); color: #1d8a3d; border: 1px solid rgba(48,209,88,.3); }

/* ===== Contact / Map ===== */
.contact-list { display: grid; gap: 14px; }
.contact-list li { display: flex; gap: 10px; align-items: flex-start; color: var(--text-soft); }
.contact-list.big li { font-size: 16px; }
.contact-list .ic { flex: none; }
.contact-info h2 { font-size: clamp(24px, 3.5vw, 32px); font-weight: 800; margin-bottom: 12px; }
.contact-info .btn { margin-top: 22px; }
.contact-map iframe { width: 100%; height: 360px; border: 0; border-radius: var(--radius); box-shadow: var(--shadow); }

/* ===== CTA band ===== */
.cta-band { background: linear-gradient(135deg, var(--brand), var(--brand-2)); color: #fff; padding: 56px 0; }
.cta-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.cta-inner h2 { font-size: clamp(24px, 3.5vw, 34px); font-weight: 800; margin-bottom: 6px; }
.cta-inner p { color: rgba(255,255,255,.85); }

/* ===== Footer ===== */
.site-footer { background: var(--bg); color: #d2d2d7; padding-top: 56px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1.6fr; gap: 40px; padding-bottom: 40px; }
.footer-brand { display: flex; align-items: center; gap: 8px; }
.footer-brand img { filter: brightness(0) invert(1); }
.footer-col .muted { color: #8e8e93; }
.footer-links { display: grid; gap: 10px; }
.footer-links a, .contact-list a { transition: color .2s; }
.footer-links a:hover, .contact-list a:hover { color: #fff; }
.site-footer .contact-list li { color: #b0b0b8; }
.socials { display: flex; gap: 14px; margin-top: 18px; flex-wrap: wrap; }
.socials a {
    font-size: 13px; padding: 7px 14px; border: 1px solid rgba(255,255,255,.18);
    border-radius: 999px; transition: background .2s, border-color .2s;
}
.socials a:hover { background: rgba(255,255,255,.1); }
.footer-local { border-top: 1px solid rgba(255,255,255,.1); padding: 26px 0; }
.local-intro { color: #9a9aa2; font-size: 13.5px; line-height: 2; max-width: 900px; margin-bottom: 16px; }
.areas { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.areas-label { color: #8e8e93; font-size: 13px; margin-left: 4px; }
.area-chip {
    font-size: 12px; color: #c7c7cc; padding: 4px 11px;
    background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.1); border-radius: 999px;
}
.footer-bottom { border-top: 1px solid rgba(255,255,255,.1); padding: 20px 0; font-size: 13px; color: #8e8e93; text-align: center; }

/* ===== Floating call ===== */
.floating-call {
    position: fixed; bottom: 22px; left: 22px; z-index: 60;
    width: 56px; height: 56px; border-radius: 50%;
    background: linear-gradient(135deg, var(--accent), #28a745); color: #fff;
    display: grid; place-items: center; font-size: 24px;
    box-shadow: 0 12px 30px rgba(212,162,76,.4); transition: transform .2s;
}
.floating-call:hover { transform: scale(1.08); }

/* ===== Responsive ===== */
@media (max-width: 980px) {
    .hero-inner { grid-template-columns: 1fr; text-align: center; }
    .hero-text p { margin-inline: auto; }
    .hero-actions, .hero-stats { justify-content: center; }
    .hero-media { order: -1; }
    .hero-media img { max-height: 360px; }
    .why-grid, .guarantee, .contact-grid { grid-template-columns: 1fr; gap: 30px; }
    .why-media, .guarantee-media { order: -1; }
    .cards-grid, .cards-grid.four, .products-grid, .steps-grid, .service-grid { grid-template-columns: repeat(2, 1fr); }
    .badges-grid { grid-template-columns: repeat(2, 1fr); }
    .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 720px) {
    .nav-toggle { display: block; }
    .main-nav {
        position: fixed; inset: 70px 0 auto 0; flex-direction: column; gap: 0;
        background: rgba(12,12,17,.98); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
        border-bottom: 1px solid var(--line); padding: 10px 20px 24px;
        transform: translateY(-130%); transition: transform .3s; align-items: stretch;
    }
    .main-nav.open { transform: translateY(0); }
    .main-nav ul { flex-direction: column; gap: 0; width: 100%; }
    .main-nav li { border-bottom: 1px solid var(--line); }
    .main-nav a { display: block; padding: 14px 0; font-size: 16px; }
    .nav-cta { margin-top: 14px; text-align: center; }
    .cards-grid, .cards-grid.four, .products-grid, .steps-grid, .service-grid, .form-row, .footer-grid, .badges-grid { grid-template-columns: 1fr; }
    .cta-inner { flex-direction: column; text-align: center; }
    .section { padding: 54px 0; }
}

/* ============================================================
   مدرن: افکت‌های پس‌زمینه و انیمیشن
   ============================================================ */

/* --- بلاب‌های شناور (Aurora) در هیرو --- */
.hero { position: relative; }
.hero::before, .hero::after {
    content: ''; position: absolute; border-radius: 50%;
    filter: blur(90px); opacity: .55; z-index: 0; pointer-events: none;
    animation: blob 20s ease-in-out infinite;
}
.hero::before {
    width: 520px; height: 520px; top: -160px; inset-inline-end: -120px;
    background: radial-gradient(circle, rgba(212,162,76,.7), transparent 70%);
}
.hero::after {
    width: 460px; height: 460px; bottom: -180px; inset-inline-start: -100px;
    background: radial-gradient(circle, rgba(161,117,47,.7), transparent 70%);
    animation-delay: -10s;
}
.hero-inner { position: relative; z-index: 1; }

/* شبکه‌ی نقطه‌چین محو در هیرو */
.hero-inner::before {
    content: ''; position: absolute; inset: -40px 0; z-index: -1; pointer-events: none;
    background-image: radial-gradient(rgba(255,255,255,.06) 1px, transparent 1px);
    background-size: 26px 26px;
    -webkit-mask-image: radial-gradient(ellipse 80% 70% at 50% 40%, #000, transparent 75%);
            mask-image: radial-gradient(ellipse 80% 70% at 50% 40%, #000, transparent 75%);
}

@keyframes blob {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33%      { transform: translate(-40px, 30px) scale(1.12); }
    66%      { transform: translate(30px, -20px) scale(.94); }
}

/* --- دستگاه شناور + هاله‌ی نور پشت آن --- */
.hero-media { position: relative; }
.hero-media::after {
    content: ''; position: absolute; z-index: -1; inset: 8% 16%;
    background: radial-gradient(circle, rgba(161,117,47,.4), transparent 65%);
    filter: blur(45px);
}
/* لوگوی اپل به‌عنوان تصویر اصلی هیرو */
.hero-media { min-height: 360px; }
.apple-hero { position: relative; display: grid; place-items: center; width: 100%; }
.apple-hero img {
    width: clamp(170px, 26vw, 360px); height: auto; max-height: none;
    filter: brightness(0) invert(1) sepia(12%) saturate(130%) drop-shadow(0 26px 80px rgba(212,162,76,.45));
    animation: floaty 6s ease-in-out infinite;
}
@keyframes floaty { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-18px); } }

/* --- Aurora + شبکه روی هیروی تیره صفحات داخلی --- */
.page-hero { position: relative; overflow: hidden; }
.page-hero::before {
    content: ''; position: absolute; inset: 0; z-index: 0; pointer-events: none;
    background:
        radial-gradient(620px 320px at 18% 8%, rgba(212,162,76,.4), transparent 60%),
        radial-gradient(520px 320px at 85% 92%, rgba(161,117,47,.45), transparent 60%);
    animation: aurora 14s ease-in-out infinite alternate;
}
.page-hero::after {
    content: ''; position: absolute; inset: 0; z-index: 0; pointer-events: none; opacity: .5;
    background-image:
        linear-gradient(rgba(255,255,255,.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,.05) 1px, transparent 1px);
    background-size: 44px 44px;
    -webkit-mask-image: radial-gradient(ellipse at center, #000, transparent 78%);
            mask-image: radial-gradient(ellipse at center, #000, transparent 78%);
}
.page-hero .container { position: relative; z-index: 1; }
@keyframes aurora { 0% { transform: translateY(0) scale(1); } 100% { transform: translateY(-24px) scale(1.12); } }

/* --- ته‌رنگ ملایم روی بخش‌های روشن --- */
.section-alt { position: relative; }
.section-alt::before {
    content: ''; position: absolute; inset: 0; pointer-events: none; z-index: 0;
    background: radial-gradient(720px 360px at 90% 0%, rgba(161,117,47,.06), transparent 60%);
}
.section-alt .container { position: relative; z-index: 1; }

/* --- کارت‌های شیشه‌ای با حاشیه‌ی نئونی هنگام hover --- */
.card, .product, .step, .service-card {
    position: relative;
    background: rgba(255, 255, 255, .045);
    backdrop-filter: blur(12px) saturate(160%);
    -webkit-backdrop-filter: blur(12px) saturate(160%);
}
.card::after, .service-card::after {
    content: ''; position: absolute; inset: 0; border-radius: inherit; padding: 1px;
    background: linear-gradient(140deg, rgba(212,162,76,.55), rgba(161,117,47,.55));
    -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
            mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    -webkit-mask-composite: xor; mask-composite: exclude;
    opacity: 0; transition: opacity .3s; pointer-events: none;
}
.card:hover::after, .service-card:hover::after { opacity: 1; }
.card:hover, .product:hover, .service-card:hover {
    background: rgba(255, 255, 255, .06);
    box-shadow: 0 22px 50px rgba(0,0,0,.5), 0 0 0 1px rgba(212,162,76,.14);
}

/* --- درخشش روی دکمه‌ی اصلی --- */
.btn-primary { position: relative; overflow: hidden; }
.btn-primary::after {
    content: ''; position: absolute; top: 0; inset-inline-start: -130%; width: 60%; height: 100%;
    background: linear-gradient(110deg, transparent, rgba(255,255,255,.5), transparent);
    transform: skewX(-20deg); transition: inset-inline-start .6s ease;
}
.btn-primary:hover::after { inset-inline-start: 130%; }

/* --- نوار CTA با درخشش --- */
.cta-band { position: relative; overflow: hidden; }
.cta-band::before {
    content: ''; position: absolute; inset: 0; pointer-events: none;
    background: radial-gradient(500px 220px at 12% 120%, rgba(255,255,255,.25), transparent 60%);
}
.cta-inner { position: relative; z-index: 1; }

/* --- نمایش تدریجی هنگام اسکرول --- */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .7s cubic-bezier(.2,.7,.2,1), transform .7s cubic-bezier(.2,.7,.2,1); }
.reveal.in { opacity: 1; transform: none; }
.cards-grid > *:nth-child(2), .products-grid > *:nth-child(2), .service-grid > *:nth-child(2), .steps-grid > *:nth-child(2) { transition-delay: .07s; }
.cards-grid > *:nth-child(3), .products-grid > *:nth-child(3), .service-grid > *:nth-child(3), .steps-grid > *:nth-child(3) { transition-delay: .14s; }
.cards-grid > *:nth-child(4), .products-grid > *:nth-child(4), .steps-grid > *:nth-child(4) { transition-delay: .21s; }
/* حفظ افکت بالا‌آمدن کارت‌ها روی hover پس از reveal */
.card.reveal:hover, .product.reveal:hover, .service-card.reveal:hover { transform: translateY(-6px); }

@media (prefers-reduced-motion: reduce) {
    .hero::before, .hero::after, .hero-media img, .page-hero::before { animation: none; }
    .reveal { opacity: 1; transform: none; transition: none; }
}

/* ===== افزوده‌های سئو و دسترس‌پذیری ===== */

/* پرش به محتوا — برای کاربران کیبورد و صفحه‌خوان */
.skip-link {
    position: absolute; right: -9999px; top: 0; z-index: 200;
    background: var(--brand); color: #fff; padding: 10px 18px;
    border-radius: 0 0 var(--radius-sm) var(--radius-sm); font-size: 14px;
}
.skip-link:focus { right: 16px; }

/* مسیر راهنما (breadcrumb) */
.breadcrumb { border-bottom: 1px solid var(--line); background: var(--bg-2); }
/* ریست سراسری فقط ul را پوشش می‌دهد، پس ol باید صریح خالی شود
   وگرنه شماره‌ی «۱.» و «۲.» کنار آیتم‌ها ظاهر می‌شود. */
.breadcrumb ol { list-style: none; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding: 10px 0; font-size: 13px; }
.breadcrumb li { color: var(--text-soft); }
.breadcrumb li + li::before { content: '‹'; margin-left: 8px; color: var(--text-soft); opacity: .6; }
.breadcrumb a { color: var(--text-soft); transition: color .2s; }
.breadcrumb a:hover { color: var(--text); }
.breadcrumb li[aria-current] { color: var(--text); }

/* بلوک محتوای متنی بلند (صفحات درباره ما و تماس) */
.prose { max-width: 820px; }
.prose h2 { font-size: 26px; margin: 40px 0 14px; }
.prose h3 { font-size: 19px; margin: 26px 0 10px; }
.prose p { color: var(--text-soft); margin-bottom: 16px; font-size: 16px; }
.prose ul:not(.check-list):not(.contact-list) { margin: 0 0 18px; padding-inline-start: 4px; }
.prose ul:not(.check-list):not(.contact-list) li {
    color: var(--text-soft); position: relative; padding-inline-start: 20px; margin-bottom: 8px;
}
.prose ul:not(.check-list):not(.contact-list) li::before {
    content: '•'; position: absolute; inset-inline-start: 0; color: var(--brand);
}
/* فقط لینک‌های داخل متن زیرخط می‌خورند. قبلاً این قانون همه‌ی <a>های داخل
   .prose را می‌گرفت و چون ویژگی‌اش (specificity) از .related-links بیشتر بود،
   چیپ‌های «مطالب مرتبط» را هم آبی و زیرخط‌دار می‌کرد. */
.prose p a:not(.btn),
.prose li a:not(.btn) { color: var(--brand); text-decoration: underline; text-underline-offset: 3px; }
.prose p a:not(.btn):hover,
.prose li a:not(.btn):hover { color: var(--gold-bright); }

/* جدول‌ها (ساعات کاری، مسیر دسترسی) */
.data-table { width: 100%; border-collapse: collapse; margin: 8px 0 24px; font-size: 15px; }
.data-table caption { text-align: start; color: var(--text-soft); font-size: 13px; padding-bottom: 10px; }
.data-table th, .data-table td { text-align: start; padding: 12px 14px; border-bottom: 1px solid var(--line); }
.data-table th { color: var(--text); font-weight: 600; background: var(--surface-2); }
.data-table td { color: var(--text-soft); }
.data-table tr:last-child td { border-bottom: 0; }

/* شبکه‌ی دوستونه برای صفحه‌ی تماس */
.split-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: start; }
@media (max-width: 900px) { .split-grid { grid-template-columns: 1fr; } }

/* کارت اطلاعات تماس (NAP) */
.nap-card {
    background: var(--surface-2); border: 1px solid var(--line);
    border-radius: var(--radius); padding: 26px;
}
.nap-card h2 { font-size: 20px; margin-bottom: 16px; }

/* بلوک تاریخ بروزرسانی */
.updated-note { color: var(--text-soft); font-size: 13px; margin-top: 32px; opacity: .8; }

/* لینک‌های مرتبط انتهای صفحه */
/* چیپ‌های «مطالب مرتبط» — لینک داخلی که باید قابل‌کلیک به‌نظر برسد ولی با
   متن اصلی رقابت بصری نکند. ارتفاع هر چیپ ≈۴۴px تا روی موبایل هدف لمسی
   استانداردی داشته باشد. */
.related-links {
    display: flex; flex-wrap: wrap; gap: 12px; margin-top: 18px;
}
.related-links a {
    display: inline-flex; align-items: center; gap: 9px;
    font-size: 14.5px; font-weight: 600; line-height: 1.5;
    padding: 11px 18px; border-radius: 999px;
    background: var(--surface-2);
    border: 1px solid var(--line);
    color: var(--text-soft);
    text-decoration: none;
    transition: color .2s, border-color .2s, background .2s, transform .15s, box-shadow .2s;
}
/* پیکان به چپ = جهت «جلو» در چیدمان راست‌به‌چپ */
.related-links a::after {
    content: '←';
    font-size: 13px; opacity: .45;
    transition: transform .2s, opacity .2s;
}
.related-links a:hover {
    color: var(--text);
    background: rgba(212,162,76,.09);
    border-color: rgba(212,162,76,.55);
    transform: translateY(-2px);
    box-shadow: 0 8px 22px rgba(212,162,76,.12);
}
.related-links a:hover::after { opacity: 1; transform: translateX(-4px); }
.related-links a:focus-visible {
    outline: 2px solid var(--brand); outline-offset: 3px; color: var(--text);
}
@media (prefers-reduced-motion: reduce) {
    .related-links a, .related-links a::after { transition: none; }
    .related-links a:hover { transform: none; }
}

/* سلب مسئولیت فوتر — باید خوانا باشد ولی بصری غالب نشود */
.footer-bottom .disclaimer {
    color: #8a8a92; font-size: 12.5px; line-height: 2;
    max-width: 980px; margin: 0 auto 10px; text-align: center;
}

/* مقاله‌ی صفحه اصلی — عرض خوانا و وسط‌چین در بلوک، ولی متن راست‌چین */
.home-article { max-width: 900px; margin: 0 auto; }
.home-article h2 { margin-top: 0; font-size: clamp(24px, 3.4vw, 32px); }

/* عنوان‌های ستون فوتر از h4 به h3 تغییر کردند تا ترتیب تیترها در صفحه نشکند
   (h2 صفحه بلافاصله به h4 می‌رسید و یک رده جا می‌افتاد). اندازه‌ی بصری همان می‌ماند. */
.footer-col h3 { color: #fff; font-size: 16px; margin-bottom: 16px; }
.footer-brand { display: flex; align-items: center; gap: 8px; font-size: 16px; }

/* ═══════════════════════════════════════════════════════════════
   بازطراحی — لایه‌ی اجزا
   این بلوک عمداً آخر فایل است تا بر قوانین قدیمی‌تر غالب شود.
   ═══════════════════════════════════════════════════════════════ */

/* --- پایه --- */
body { background: var(--bg); font-size: var(--fs-base); line-height: var(--lh-body); }
.container { max-width: var(--maxw); padding-inline: var(--s-5); }

/* ریتم عمودی بخش‌ها: سه رده، نه یک عدد ثابت */
.section { padding-block: var(--s-9); }
.section-alt { background: var(--surface); border-block: 1px solid var(--line); }

/* --- تایپوگرافی --- */
h1, h2, h3 { line-height: var(--lh-tight); letter-spacing: -.01em; }
.hero-text h1 { font-size: var(--fs-4xl); font-weight: 800; }
.page-hero h1 { font-size: clamp(27px, 4.4vw, 42px); font-weight: 800; }
.section-head h2 { font-size: var(--fs-3xl); font-weight: 800; }
.prose { max-width: var(--maxw-text); }
.prose h2 { font-size: var(--fs-2xl); margin-block: var(--s-8) var(--s-4); }
.prose h3 { font-size: var(--fs-xl); margin-block: var(--s-6) var(--s-3); }
.prose p { font-size: var(--fs-base); line-height: var(--lh-body); margin-bottom: var(--s-4); }
.prose strong { color: var(--text); font-weight: 700; }

/* --- لهجه‌ی طلایی --- */
.grad {
    background: linear-gradient(100deg, var(--gold-bright), var(--gold), var(--gold-deep));
    -webkit-background-clip: text; background-clip: text; color: transparent;
}
.eyebrow {
    color: var(--gold); background: var(--gold-glow);
    border: 1px solid rgba(212,162,76,.28);
    font-size: var(--fs-xs); letter-spacing: .01em;
    padding: 7px 15px; border-radius: var(--r-full);
}
.prose p a:not(.btn), .prose li a:not(.btn) { color: var(--link); }
.prose p a:not(.btn):hover, .prose li a:not(.btn):hover { color: var(--gold-bright); }

/* --- آیکون‌های برداری (جایگزین ایموجی) --- */
.i { display: inline-block; vertical-align: -.18em; flex: none; }
.card-ic {
    width: 44px; height: 44px; border-radius: var(--r-sm);
    display: grid; place-items: center; margin-bottom: var(--s-4);
    background: linear-gradient(145deg, rgba(212,162,76,.17), rgba(212,162,76,.05));
    border: 1px solid rgba(212,162,76,.22); color: var(--gold);
}
.card-ic svg { width: 22px; height: 22px; }
.ic { color: var(--gold); display: inline-flex; flex: none; }

/* --- دکمه‌ها --- */
.btn { padding: 13px 26px; font-size: var(--fs-sm); font-weight: 700; border-radius: var(--r-full); }
.btn-primary {
    background: linear-gradient(140deg, var(--gold-bright), var(--gold));
    color: var(--on-gold); box-shadow: var(--shadow-gold);
}
.btn-primary:hover { box-shadow: 0 14px 40px rgba(212,162,76,.3); }
.btn-ghost {
    background: rgba(255,246,232,.04); color: var(--text);
    border: 1px solid var(--line-strong); backdrop-filter: blur(8px);
}
.btn-ghost:hover { border-color: rgba(212,162,76,.5); color: var(--gold-bright); }
.btn-light { background: var(--text); color: var(--bg); }
.nav-cta {
    background: linear-gradient(140deg, var(--gold-bright), var(--gold));
    color: var(--on-gold) !important; box-shadow: var(--shadow-gold); font-weight: 700;
}

/* --- هدر: شیشه‌ی مایع --- */
.site-header {
    background: rgba(10,9,8,.6);
    backdrop-filter: saturate(180%) blur(22px);
    -webkit-backdrop-filter: saturate(180%) blur(22px);
    border-bottom: 1px solid var(--line);
}
.brand-mark {
    background: linear-gradient(150deg, #2a241c, #15120e);
    border: 1px solid rgba(212,162,76,.3);
    box-shadow: inset 0 1px 0 rgba(255,220,160,.14);
}
.brand-mark img { filter: brightness(0) saturate(100%) invert(78%) sepia(28%) saturate(680%) hue-rotate(348deg) brightness(92%) contrast(89%); }
.brand-text small { color: var(--gold); letter-spacing: 1.6px; }
.main-nav a.active { color: var(--gold-bright); }
.main-nav a.active::after {
    content: ''; display: block; height: 2px; margin-top: 4px; border-radius: 2px;
    background: linear-gradient(90deg, var(--gold), transparent);
}

/* --- هیروها --- */
.hero {
    background:
        radial-gradient(900px 480px at 82% -12%, rgba(212,162,76,.16), transparent 62%),
        radial-gradient(760px 440px at 6% 4%, rgba(212,162,76,.07), transparent 58%),
        linear-gradient(180deg, #0d0b09, var(--bg));
}
.page-hero {
    background:
        radial-gradient(720px 340px at 70% -30%, rgba(212,162,76,.17), transparent 62%),
        linear-gradient(180deg, #100d0a, var(--bg));
    border-bottom: 1px solid var(--line);
}
.hero-stats strong { color: var(--gold-bright); font-size: 28px; }

/* --- کارت‌ها --- */
.card, .product, .service-card, .step, .nap-card {
    background: linear-gradient(170deg, var(--surface-2), var(--surface));
    border: 1px solid var(--line); border-radius: var(--r-md);
    transition: transform .22s cubic-bezier(.2,.7,.2,1), border-color .22s, box-shadow .22s;
}
.card:hover, .product:hover, .service-card:hover {
    transform: translateY(-5px);
    border-color: rgba(212,162,76,.34);
    box-shadow: var(--shadow-lg);
}
.card-link { color: var(--gold); font-weight: 700; }
.card-link:hover { color: var(--gold-bright); }
.product-media {
    background: radial-gradient(120% 90% at 50% 12%, #211d18, #0c0a09 72%);
    border: 1px solid var(--line);
}
.step-num {
    background: linear-gradient(140deg, var(--gold-bright), var(--gold-deep));
    color: var(--on-gold); font-weight: 800;
}

/* --- فهرست تیک‌دار --- */
.check-list li::before, .check-list li > span:first-child { color: var(--gold); }

/* --- جدول‌ها --- */
.data-table {
    border: 1px solid var(--line); border-radius: var(--r-md);
    overflow: hidden; border-collapse: separate; border-spacing: 0;
}
.data-table caption { color: var(--text-dim); font-size: var(--fs-xs); padding-bottom: var(--s-3); }
.data-table th, .data-table td { padding: 14px 16px; border-bottom: 1px solid var(--line); }
.data-table thead th { background: var(--surface-3); color: var(--text); font-size: var(--fs-sm); }
.data-table tbody th { color: var(--text); font-weight: 600; background: rgba(255,246,232,.02); }
.data-table tbody tr:last-child th, .data-table tbody tr:last-child td { border-bottom: 0; }
.data-table tbody tr:hover td, .data-table tbody tr:hover th { background: rgba(212,162,76,.045); }

/* --- پرسش و پاسخ --- */
.faq-item {
    background: var(--surface-2); border: 1px solid var(--line);
    border-radius: var(--r-md); transition: border-color .2s, background .2s;
}
.faq-item:hover { border-color: var(--line-strong); }
.faq-item[open] { border-color: rgba(212,162,76,.3); background: var(--surface-3); }
.faq-item summary { font-size: var(--fs-base); font-weight: 600; }
.faq-item[open] summary { color: var(--gold-bright); }

/* --- مسیر راهنما --- */
.breadcrumb { background: var(--surface); border-bottom: 1px solid var(--line); }
.breadcrumb a:hover { color: var(--gold); }

/* --- نوار فراخوان --- */
.cta-band {
    background:
        radial-gradient(620px 240px at 14% 118%, rgba(255,220,160,.22), transparent 62%),
        linear-gradient(118deg, var(--gold-deep), var(--gold));
    color: var(--on-gold);
}
.cta-inner h2 { color: var(--on-gold); }
.cta-inner p { color: rgba(23,18,10,.78); }
.cta-band::before { display: none; }

/* --- چیپ‌های مرتبط --- */
.related-links a { background: var(--surface-2); border-color: var(--line); }
.related-links a:hover {
    color: var(--gold-bright); border-color: rgba(212,162,76,.5);
    background: rgba(212,162,76,.08); box-shadow: 0 8px 22px rgba(212,162,76,.12);
}

/* --- فوتر --- */
.site-footer { background: #070605; border-top: 1px solid var(--line); }
.footer-col h3 { color: var(--text); }
.socials a, .area-chip {
    border: 1px solid var(--line); background: var(--surface-2);
    border-radius: var(--r-full); transition: border-color .2s, color .2s;
}
.socials a:hover { border-color: rgba(212,162,76,.5); color: var(--gold-bright); }
.contact-list a:hover { color: var(--gold-bright); }
.footer-brand img { filter: brightness(0) saturate(100%) invert(78%) sepia(28%) saturate(680%) hue-rotate(348deg) brightness(92%) contrast(89%); }

/* --- دکمه‌ی شناور تماس --- */
.floating-call {
    background: linear-gradient(140deg, var(--gold-bright), var(--gold));
    color: var(--on-gold); box-shadow: 0 10px 30px rgba(212,162,76,.35);
}

/* --- حالت فوکوس یکدست برای دسترس‌پذیری --- */
a:focus-visible, button:focus-visible, summary:focus-visible, details:focus-visible {
    outline: 2px solid var(--gold); outline-offset: 3px; border-radius: 6px;
}

/* --- موبایل --- */
@media (max-width: 980px) {
    .section { padding-block: var(--s-8); }
}
@media (max-width: 720px) {
    .section { padding-block: var(--s-7); }
    .prose h2 { margin-top: var(--s-7); }
    .data-table { display: block; overflow-x: auto; -webkit-overflow-scrolling: touch; }
    .data-table th, .data-table td { padding: 12px 13px; }
}

/* شماره‌ی تلفن و هر عدد لاتین داخل متن فارسی نباید وسطش بشکند */
a[href^="tel:"], [dir="ltr"] { white-space: nowrap; }
/* ارقام جدول‌ها هم‌عرض شوند تا ستون‌ها نلرزند */
.data-table td, .hero-stats strong { font-variant-numeric: tabular-nums; }

/* لینک انتهای کارت‌ها ۲۷ پیکسل ارتفاع داشت؛ کمتر از حداقل ۴۴ پیکسلیِ هدف لمسی.
   پدینگ عمودی اضافه می‌شود بدون اینکه ظاهرش عوض شود. */
.card-link {
    display: inline-flex; align-items: center; gap: 6px;
    min-height: 44px; padding-block: 8px;
}

/* ═══ نوار وضعیت باز/بسته ═══ */
.statusbar {
    background: linear-gradient(180deg, var(--surface-2), var(--surface));
    border-bottom: 1px solid var(--line);
    font-size: var(--fs-xs);
}
.statusbar-inner {
    display: flex; align-items: center; gap: var(--s-3);
    padding-block: 9px; color: var(--text-soft); flex-wrap: wrap;
}
.statusbar strong { color: var(--text-soft); font-weight: 600; }
.status-dot {
    width: 8px; height: 8px; border-radius: 50%; flex: none;
    background: #7b7267; box-shadow: 0 0 0 3px rgba(123,114,103,.16);
}
.status-dot.is-open {
    background: #35c06a; box-shadow: 0 0 0 3px rgba(53,192,106,.18);
    animation: pulse-dot 2.4s ease-in-out infinite;
}
.statusbar :is(strong, .status-next) { }
.statusbar .status-dot.is-open ~ strong { color: #6fdc96; }
.status-next { color: var(--text-dim); }
.status-link { margin-inline-start: auto; color: var(--gold); font-weight: 600; }
.status-link:hover { color: var(--gold-bright); }
@keyframes pulse-dot { 0%,100% { opacity: 1 } 50% { opacity: .45 } }
@media (prefers-reduced-motion: reduce) { .status-dot.is-open { animation: none } }

/* ═══ نوار اقدام چسبان (فقط موبایل) ═══ */
.actionbar { display: none; }
@media (max-width: 860px) {
    .actionbar {
        display: grid; grid-template-columns: 1.3fr 1fr 1fr;
        position: fixed; inset-inline: 0; bottom: 0; z-index: 90;
        background: rgba(12,10,9,.9);
        backdrop-filter: saturate(180%) blur(18px);
        -webkit-backdrop-filter: saturate(180%) blur(18px);
        border-top: 1px solid var(--line-strong);
        padding-bottom: env(safe-area-inset-bottom);
    }
    .ab-item {
        display: flex; flex-direction: column; align-items: center; justify-content: center;
        gap: 3px; min-height: 58px; font-size: 12px; font-weight: 600;
        color: var(--text-soft); border-inline-start: 1px solid var(--line);
    }
    .ab-item:first-child { border-inline-start: 0; }
    .ab-item:active { background: rgba(212,162,76,.1); }
    .ab-primary { color: var(--on-gold); background: linear-gradient(140deg, var(--gold-bright), var(--gold)); }
    /* دکمه‌ی گرد شناور با نوار پایین تداخل داشت */
    .floating-call { display: none; }
    /* فضا برای نوار، تا محتوا زیرش پنهان نشود */
    body { padding-bottom: 58px; }
}

/* ═══ فهرست مطالب داخل صفحه ═══ */
.toc {
    background: linear-gradient(170deg, var(--surface-2), var(--surface));
    border: 1px solid var(--line); border-radius: var(--r-md);
    padding: var(--s-5) var(--s-5) var(--s-4);
    margin-bottom: var(--s-7);
}
.toc-title {
    color: var(--gold); font-size: var(--fs-sm); font-weight: 700;
    margin-bottom: var(--s-3) !important;
}
.toc ol { list-style: none; display: grid; gap: 2px; margin: 0; padding: 0; counter-reset: toc; }
.toc li { counter-increment: toc; padding: 0; margin: 0; }
.toc li::before { content: none !important; }
.toc li a {
    display: flex; gap: var(--s-3); align-items: baseline;
    padding: 9px 2px; min-height: 44px; align-content: center;
    color: var(--text-soft); font-size: var(--fs-sm);
    text-decoration: none !important; border-bottom: 1px solid transparent;
    transition: color .18s;
}
.toc li a::before {
    content: counter(toc); color: var(--gold-deep); font-size: 12px;
    font-weight: 700; min-width: 16px; font-variant-numeric: tabular-nums;
}
.toc li a:hover { color: var(--gold-bright); }
.toc li.lvl-3 a { padding-inline-start: var(--s-3); }

/* لنگرها نباید زیر هدر چسبان پنهان شوند */
.prose :is(h2, h3)[id] { scroll-margin-top: 110px; }

/* فهرست به‌صورت کارت تمام‌عرض بالای متن می‌آید، نه شناور کنار آن.
   نسخه‌ی شناور (float + sticky) روی متن‌های کوتاهِ ابتدای صفحه یک فاصله‌ی
   خالیِ بزرگ ایجاد می‌کرد و ارتفاعش به تعداد آیتم‌ها وابسته بود. */
@media (min-width: 760px) {
    .toc ol { grid-template-columns: 1fr 1fr; column-gap: var(--s-6); }
}
