/* ==========================================================================
   گنجینه — سایت عمومی
   ========================================================================== */


/* ---------------------------------------------------------------- نوار بالا و سربرگ */
.topbar { background: var(--grad-brand); color: rgba(244, 238, 224, .85); font-size: .8rem; }
.topbar .container { display: flex; justify-content: space-between; align-items: center; gap: 12px; min-height: 38px; }
.topbar a { color: rgba(244, 238, 224, .85); display: inline-flex; align-items: center; gap: 6px; }
.topbar a:hover { color: var(--gold-3); }
.site-header { position: sticky; top: 0; z-index: 50; transition: background .3s, box-shadow .3s, backdrop-filter .3s; background: transparent; }
.site-header.is-scrolled, .site-header.is-solid { background: var(--glass); backdrop-filter: blur(18px) saturate(1.4); -webkit-backdrop-filter: blur(18px) saturate(1.4); box-shadow: 0 1px 0 var(--line), 0 10px 30px -20px rgba(0, 0, 0, .3); }
.site-header .container { display: flex; align-items: center; gap: 20px; min-height: 78px; }
.nav { display: flex; align-items: center; gap: 4px; list-style: none; margin: 0 auto; padding: 0; }
.nav > li { position: relative; }
.nav > li > a { display: inline-flex; align-items: center; gap: 4px; padding: 10px 14px; border-radius: 999px; color: var(--text-2); font-weight: 600; font-size: .92rem; }
.nav > li > a:hover, .nav > li > a.is-active { color: var(--gold-ink); background: var(--gold-soft); }
.nav .dropdown { position: absolute; top: 100%; inset-inline-start: 0; min-width: 230px; list-style: none; margin: 0; padding: 8px; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--shadow-lg); opacity: 0; visibility: hidden; transform: translateY(8px); transition: .25s var(--ease); }
.nav > li:hover .dropdown, .nav > li:focus-within .dropdown { opacity: 1; visibility: visible; transform: none; }
.nav .dropdown a { display: block; padding: 9px 14px; border-radius: 10px; color: var(--text); font-size: .9rem; }
.nav .dropdown a:hover { background: var(--surface-2); color: var(--gold-ink); }
.header-actions { display: flex; align-items: center; gap: 8px; }
.lang-switch { display: inline-flex; align-items: center; gap: 6px; padding: 8px 12px; border-radius: 999px; border: 1px solid var(--line); font-weight: 700; font-size: .82rem; color: var(--text-2); }
.nav-toggle { display: none; }
@media (max-width: 1020px) {
  .nav-toggle { display: inline-flex; }
  .nav { position: fixed; top: 0; bottom: 0; inset-inline-start: 0; width: min(320px, 86vw); flex-direction: column; align-items: stretch; margin: 0; padding: 90px 16px 24px; background: var(--surface); box-shadow: var(--shadow-lg); z-index: 80; overflow-y: auto; transform: translateX(-105%); transition: transform .3s var(--ease); }
  [dir="rtl"] .nav { transform: translateX(105%); }
  .nav.is-open { transform: none !important; }
  .nav .dropdown { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; border: 0; padding: 0 12px; }
  .nav-overlay { position: fixed; inset: 0; z-index: 70; background: rgba(4, 8, 18, .5); }
}

/* ---------------------------------------------------------------- برند */
.brand { display: inline-flex; align-items: center; gap: 12px; color: var(--text); flex-shrink: 0; }
.brand:hover { color: var(--text); }
.brand-mark { width: 44px; height: 44px; flex-shrink: 0; }
.brand-name { display: block; font-family: var(--font-display); font-size: 1.35rem; font-weight: 700; line-height: 1.1; letter-spacing: .01em; }
.brand-sub { display: block; font-size: .68rem; color: var(--gold-ink); letter-spacing: .12em; text-transform: uppercase; margin-top: 3px; }
.brand img.brand-logo { max-height: 46px; width: auto; }

/* ---------------------------------------------------------------- هیرو */
.hero { position: relative; overflow: hidden; padding: 72px 0 96px; isolation: isolate; }
.hero::before { content: ''; position: absolute; inset: 0; background: var(--grad-hero); z-index: -2; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: 48px; align-items: center; }
.hero h1 { font-family: var(--font-display); font-size: clamp(2.3rem, 5.2vw, 4.1rem); line-height: 1.22; font-weight: 700; margin: 18px 0 20px; letter-spacing: -.01em; }
.hero h1 em { font-style: normal; background: var(--grad-gold); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero .lead { font-size: 1.12rem; color: var(--text-2); max-width: 580px; line-height: 2; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.hero-trust { display: flex; flex-wrap: wrap; gap: 22px; margin-top: 36px; color: var(--muted); font-size: .86rem; }
.hero-trust span { display: inline-flex; align-items: center; gap: 8px; }
.hero-trust .icon-sm { color: var(--gold); }
.hero-visual { position: relative; aspect-ratio: 1 / 1.05; }
.orbit { position: absolute; inset: 0; border-radius: 50%; border: 1px solid var(--line-strong); }
.orbit.o2 { inset: 9%; border-style: dashed; border-color: var(--gold-3); animation: spin 90s linear infinite; }
.orbit.o3 { inset: 19%; border-color: var(--line); }
.orbit .planet { position: absolute; width: 14px; height: 14px; border-radius: 50%; background: var(--grad-gold); box-shadow: var(--shadow-gold); top: -7px; left: calc(50% - 7px); }
.hero-core { position: absolute; inset: 24%; border-radius: 50%; background: var(--grad-brand); box-shadow: var(--shadow-lg), inset 0 0 60px rgba(216, 180, 106, .25); display: grid; place-items: center; overflow: hidden; }
.hero-core img { width: 100%; height: 100%; object-fit: cover; }
.hero-core svg.core-art { width: 64%; height: 64%; color: var(--gold-3); }
.float-card { position: absolute; display: flex; align-items: center; gap: 12px; padding: 12px 16px; border-radius: 18px; background: var(--glass); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); border: 1px solid var(--line); box-shadow: var(--shadow-lg); font-size: .84rem; animation: float 6s ease-in-out infinite; }
.float-card strong { display: block; font-size: 1.05rem; }
.float-card .fc-icon { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: var(--gold-soft); color: var(--gold); }
.float-card.fc-1 { top: 8%; inset-inline-start: -4%; }
.float-card.fc-2 { bottom: 14%; inset-inline-end: -6%; animation-delay: -2s; }
.float-card.fc-3 { bottom: -2%; inset-inline-start: 12%; animation-delay: -4s; }
@media (max-width: 960px) { .hero-grid { grid-template-columns: 1fr; } .hero-visual { max-width: 440px; margin: 20px auto 0; width: 100%; } .hero { padding: 40px 0 70px; } }

/* ---------------------------------------------------------------- بخش‌ها */
.section { padding: 96px 0; position: relative; }
.section-sm { padding: 64px 0; }
.section-alt { background: var(--surface-2); }
.section-dark { background: var(--grad-brand); color: #EFE9DC; }
.section-dark h2, .section-dark h3 { color: #FFF8E8; }
.section-dark .muted { color: rgba(239, 233, 220, .72); }
.section-dark .eyebrow { color: var(--gold-3); }
.section-head { max-width: 720px; margin: 0 auto 52px; text-align: center; }
.section-head h2 { font-family: var(--font-display); font-size: clamp(1.8rem, 3.4vw, 2.7rem); margin: 14px 0 12px; font-weight: 700; }
.section-head p { color: var(--muted); font-size: 1.05rem; margin: 0; }
.section-head.start { text-align: start; margin-inline: 0; }
.ornament { display: flex; align-items: center; justify-content: center; gap: 12px; color: var(--gold); }
.ornament::before, .ornament::after { content: ''; height: 1px; width: 60px; background: linear-gradient(90deg, transparent, var(--gold-2)); }
.ornament::after { transform: scaleX(-1); }

/* کارت ویژگی */
.feature { padding: 30px 26px; border-radius: var(--radius-lg); background: var(--surface); border: 1px solid var(--line); position: relative; overflow: hidden; transition: .35s var(--ease); height: 100%; }
.feature::before { content: ''; position: absolute; inset: 0; background: radial-gradient(400px 200px at 100% 0, var(--gold-soft), transparent 70%); opacity: 0; transition: .35s; }
.feature:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: var(--gold-3); }
.feature:hover::before { opacity: 1; }
.feature > * { position: relative; }
.feature .f-icon { width: 58px; height: 58px; border-radius: 18px; display: grid; place-items: center; background: var(--grad-brand); color: var(--gold-3); margin-bottom: 20px; box-shadow: var(--shadow); }
.feature .f-icon .icon { width: 26px; height: 26px; }
.feature h3 { font-size: 1.12rem; margin-bottom: 8px; }
.feature p { color: var(--muted); margin: 0; font-size: .93rem; }
.feature .f-num { position: absolute; top: 18px; inset-inline-end: 22px; font-family: var(--font-serif); font-size: 2.6rem; line-height: 1; color: var(--gold-3); opacity: .5; }

/* آمار */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line); border-radius: var(--radius-xl); overflow: hidden; border: 1px solid var(--line); }
.stat { background: var(--surface); padding: 34px 20px; text-align: center; }
.stat .s-val { font-family: var(--font-display); font-size: clamp(2rem, 4vw, 2.9rem); font-weight: 700; line-height: 1; }
.stat .s-val span { background: var(--grad-gold); -webkit-background-clip: text; background-clip: text; color: transparent; }
.stat .s-label { color: var(--muted); margin-top: 10px; font-size: .9rem; }
@media (max-width: 760px) { .stats { grid-template-columns: repeat(2, 1fr); } }

/* گام‌ها */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; counter-reset: step; }
.step { position: relative; padding: 28px 22px; text-align: center; }
.step .s-dot { width: 72px; height: 72px; margin: 0 auto 18px; border-radius: 50%; display: grid; place-items: center; background: var(--surface); border: 1px solid var(--gold-3); color: var(--gold); box-shadow: var(--shadow); position: relative; }
.step .s-dot::after { counter-increment: step; content: counter(step); position: absolute; top: -4px; inset-inline-end: -4px; width: 26px; height: 26px; border-radius: 50%; background: var(--grad-gold); color: var(--on-gold); font-size: .78rem; font-weight: 800; display: grid; place-items: center; }
.step:not(:last-child)::before { content: ''; position: absolute; top: 64px; inset-inline-start: calc(50% + 46px); width: calc(100% - 92px); border-top: 1px dashed var(--gold-2); }
.step h3 { font-size: 1.02rem; }
.step p { color: var(--muted); font-size: .9rem; margin: 0; }
@media (max-width: 900px) { .steps { grid-template-columns: repeat(2, 1fr); } .step::before { display: none; } }

/* کارت درمانگر */
.doctor-card { display: flex; flex-direction: column; border-radius: var(--radius-xl); background: var(--surface); border: 1px solid var(--line); overflow: hidden; transition: .35s var(--ease); height: 100%; }
.doctor-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: var(--gold-3); }
.doctor-card .dc-photo { position: relative; aspect-ratio: 4 / 3.6; background: var(--grad-brand); overflow: hidden; }
.doctor-card .dc-photo img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.doctor-card:hover .dc-photo img { transform: scale(1.05); }
.doctor-card .dc-photo::after { content: ''; position: absolute; inset: 0; background: linear-gradient(to top, rgba(6, 14, 30, .55), transparent 45%); }
.doctor-card .dc-badges { position: absolute; top: 14px; inset-inline-start: 14px; z-index: 1; display: flex; gap: 6px; flex-wrap: wrap; }
.doctor-card .dc-rating { position: absolute; bottom: 14px; inset-inline-end: 14px; z-index: 1; display: inline-flex; align-items: center; gap: 5px; padding: 4px 10px; border-radius: 999px; background: rgba(6, 14, 30, .6); color: #F6E3B4; font-size: .8rem; font-weight: 700; backdrop-filter: blur(6px); }
.doctor-card .dc-body { padding: 20px 22px 22px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.doctor-card h3 { margin: 0; font-size: 1.1rem; }
.doctor-card .dc-spec { color: var(--gold-ink); font-size: .88rem; font-weight: 600; }
.doctor-card .dc-foot { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-top: auto; padding-top: 14px; border-top: 1px solid var(--line); }
.doctor-card .price { font-weight: 800; }
.doctor-card .price small { font-weight: 500; color: var(--muted); }
.verified { display: inline-flex; align-items: center; gap: 4px; color: var(--ok); font-size: .78rem; font-weight: 700; }

/* خدمت، مقاله، آزمون */
.service-card { padding: 26px; border-radius: var(--radius-lg); background: var(--surface); border: 1px solid var(--line); display: flex; flex-direction: column; gap: 10px; transition: .3s var(--ease); height: 100%; }
.service-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: var(--gold-3); }
.service-card .sc-icon { width: 52px; height: 52px; border-radius: 16px; display: grid; place-items: center; background: var(--gold-soft); color: var(--gold); }
.service-card .sc-meta { display: flex; flex-wrap: wrap; gap: 8px; margin-top: auto; padding-top: 10px; }
.post-card { display: flex; flex-direction: column; border-radius: var(--radius-lg); background: var(--surface); border: 1px solid var(--line); overflow: hidden; height: 100%; transition: .3s var(--ease); }
.post-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.post-card .pc-img { aspect-ratio: 16 / 10; background: var(--grad-brand); overflow: hidden; display: grid; place-items: center; color: var(--gold-3); }
.post-card .pc-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.post-card:hover .pc-img img { transform: scale(1.05); }
.post-card .pc-body { padding: 18px 20px 22px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.post-card h3 { font-size: 1.04rem; margin: 0; line-height: 1.6; }
.post-card h3 a { color: var(--text); }
.post-card .pc-meta { display: flex; gap: 14px; font-size: .78rem; color: var(--muted); margin-top: auto; }
.test-card { display: flex; gap: 16px; padding: 22px; border-radius: var(--radius-lg); background: var(--surface); border: 1px solid var(--line); transition: .3s var(--ease); height: 100%; }
.test-card:hover { border-color: var(--gold-3); box-shadow: var(--shadow-lg); transform: translateY(-3px); }
.test-card .tc-icon { width: 54px; height: 54px; border-radius: 16px; background: var(--grad-brand); color: var(--gold-3); display: grid; place-items: center; flex-shrink: 0; }
.test-card h3 { font-size: 1.02rem; margin-bottom: 4px; }

/* پلن‌ها */
.plans { display: grid; grid-template-columns: repeat(auto-fit, minmax(270px, 1fr)); gap: 22px; align-items: stretch; }
.plan { padding: 34px 28px; border-radius: var(--radius-xl); background: var(--surface); border: 1px solid var(--line); display: flex; flex-direction: column; gap: 14px; position: relative; }
.plan.is-featured { background: var(--grad-brand); color: #EFE9DC; border: 0; box-shadow: var(--shadow-lg); transform: translateY(-10px); }
.plan.is-featured h3, .plan.is-featured .p-price { color: #FFF8E8; }
.plan.is-featured .muted { color: rgba(239, 233, 220, .7); }
.plan .p-ribbon { position: absolute; top: 18px; inset-inline-end: 18px; }
.plan .p-price { font-family: var(--font-display); font-size: 2.3rem; font-weight: 700; line-height: 1.1; }
.plan .p-price small { font-size: .9rem; font-family: var(--font); color: var(--muted); font-weight: 500; }
.plan ul { list-style: none; padding: 0; margin: 6px 0 12px; display: flex; flex-direction: column; gap: 10px; font-size: .92rem; }
.plan ul li { display: flex; gap: 10px; align-items: flex-start; }
.plan ul li .icon-sm { color: var(--gold); margin-top: 5px; }
.plan .btn { margin-top: auto; }

/* نظرات */
.testimonial { padding: 30px; border-radius: var(--radius-xl); background: var(--surface); border: 1px solid var(--line); position: relative; height: 100%; display: flex; flex-direction: column; gap: 16px; }
.testimonial::before { content: '“'; position: absolute; top: 4px; inset-inline-end: 22px; font-family: var(--font-serif); font-size: 6rem; line-height: 1; color: var(--gold-3); opacity: .6; }
.testimonial p { margin: 0; color: var(--text-2); font-size: .98rem; line-height: 2; flex: 1; }
.stars { display: inline-flex; gap: 2px; color: var(--gold); }
.stars .icon-sm { fill: currentColor; }
.stars .off { color: var(--line-strong); fill: none; }

/* سؤالات متداول */
.faq-item { border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); margin-bottom: 12px; overflow: hidden; }
.faq-item summary { list-style: none; cursor: pointer; padding: 18px 22px; font-weight: 700; display: flex; justify-content: space-between; gap: 16px; align-items: center; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary .icon-sm { color: var(--gold); transition: transform .3s; flex-shrink: 0; }
.faq-item[open] summary .icon-sm { transform: rotate(45deg); }
.faq-item[open] { border-color: var(--gold-3); box-shadow: var(--shadow-sm); }
.faq-item .faq-a { padding: 0 22px 20px; color: var(--muted); line-height: 2; }

/* فراخوان */
.cta { position: relative; overflow: hidden; border-radius: var(--radius-xl); padding: 64px 48px; background: var(--grad-brand); color: #EFE9DC; text-align: center; box-shadow: var(--shadow-lg); }
.cta::before { content: ''; position: absolute; inset: -40%; background: conic-gradient(from 0deg, transparent, rgba(216, 180, 106, .18), transparent 30%); animation: spin 18s linear infinite; }
.cta > * { position: relative; }
.cta h2 { font-family: var(--font-display); color: #FFF8E8; font-size: clamp(1.7rem, 3.4vw, 2.5rem); }
.cta p { color: rgba(239, 233, 220, .8); max-width: 620px; margin: 0 auto 26px; }
@media (max-width: 760px) { .cta { padding: 44px 22px; } }

/* هیروی صفحات داخلی */
.page-hero { position: relative; padding: 64px 0 56px; overflow: hidden; background: var(--grad-brand); color: #EFE9DC; }
.page-hero::after { content: ''; position: absolute; inset: 0; background: radial-gradient(700px 300px at 85% 0, rgba(216, 180, 106, .22), transparent 70%); }
.page-hero .container { position: relative; z-index: 1; }
.page-hero h1 { font-family: var(--font-display); color: #FFF8E8; margin: 10px 0 8px; font-size: clamp(1.9rem, 4vw, 2.9rem); }
.page-hero p { color: rgba(239, 233, 220, .78); max-width: 680px; margin: 0; }
.page-hero .crumbs { display: flex; gap: 8px; align-items: center; font-size: .82rem; color: rgba(239, 233, 220, .6); flex-wrap: wrap; }
.page-hero .crumbs a { color: var(--gold-3); }

/* ---------------------------------------------------------------- مینی‌سایت درمانگر */
.dr-hero { position: relative; padding: 64px 0 80px; overflow: hidden; }
.dr-hero::before { content: ''; position: absolute; inset: 0; background: var(--grad-hero); z-index: -1; }
.dr-hero-grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: 56px; align-items: center; }
.dr-hero[data-layout="centered"] .dr-hero-grid { grid-template-columns: 1fr; text-align: center; max-width: 820px; margin: 0 auto; }
.dr-hero[data-layout="centered"] .dr-portrait { max-width: 240px; margin: 0 auto; order: -1; }
.dr-hero[data-layout="centered"] .hero-actions, .dr-hero[data-layout="centered"] .chips { justify-content: center; }
.dr-hero[data-layout="portrait"] .dr-hero-grid { grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); }
.dr-hero[data-layout="portrait"] .dr-portrait { order: -1; }
.dr-hero h1 { font-family: var(--font-display); font-size: clamp(2.1rem, 4.6vw, 3.6rem); line-height: 1.25; margin: 14px 0; }
.dr-portrait { position: relative; }
.dr-portrait .arch { position: relative; aspect-ratio: 4 / 5; border-radius: 999px 999px 28px 28px; overflow: hidden; background: var(--grad-brand); box-shadow: var(--shadow-lg); border: 6px solid var(--surface); outline: 1px solid var(--gold-3); outline-offset: 10px; }
.dr-portrait .arch img { width: 100%; height: 100%; object-fit: cover; }
.dr-portrait .arch .initials { display: grid; place-items: center; height: 100%; font-family: var(--font-display); font-size: 5rem; color: var(--gold-3); }
.dr-portrait .seal { position: absolute; bottom: 8%; inset-inline-start: -8%; width: 116px; height: 116px; border-radius: 50%; background: var(--grad-gold); color: var(--on-gold); display: grid; place-items: center; text-align: center; font-size: .72rem; font-weight: 800; line-height: 1.3; box-shadow: var(--shadow-gold); padding: 14px; }
.dr-portrait .seal strong { font-size: 1.6rem; display: block; font-family: var(--font-display); }
@media (max-width: 960px) { .dr-hero-grid, .dr-hero[data-layout="portrait"] .dr-hero-grid { grid-template-columns: 1fr; } .dr-portrait { max-width: 340px; margin: 0 auto; width: 100%; } }
.dr-nav { position: sticky; top: 78px; z-index: 30; background: var(--glass); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-block: 1px solid var(--line); }
.dr-nav .container { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; padding-block: 8px; }
.dr-nav a { padding: 8px 16px; border-radius: 999px; font-weight: 600; font-size: .88rem; color: var(--text-2); white-space: nowrap; }
.dr-nav a:hover { background: var(--gold-soft); color: var(--gold-ink); }
.booking-widget { padding: 26px; border-radius: var(--radius-xl); background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-lg); }
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px; }
.gallery a { border-radius: var(--radius); overflow: hidden; aspect-ratio: 1; display: block; }
.gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease); }
.gallery a:hover img { transform: scale(1.06); }
.map { border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--line); height: 320px; }
.info-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 14px; }
.info-list li { display: flex; gap: 12px; align-items: flex-start; }
.info-list .il-icon { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; background: var(--gold-soft); color: var(--gold); flex-shrink: 0; }

/* فیلتر فهرست درمانگران */
.directory { display: grid; grid-template-columns: 290px minmax(0, 1fr); gap: 28px; align-items: start; }
.directory aside { position: sticky; top: 96px; }
@media (max-width: 1020px) { .directory { grid-template-columns: 1fr; } .directory aside { position: static; } }

/* ---------------------------------------------------------------- فوتر */
.site-footer { position: relative; overflow: hidden; margin-top: 40px; background: linear-gradient(180deg, #0C1F3D, #07122A); color: rgba(233, 226, 211, .78); padding: 76px 0 0; }
[data-theme="dark"] .site-footer { background: linear-gradient(180deg, #0A1222, #050A14); border-top: 1px solid var(--line); }
.site-footer::before { content: ''; position: absolute; top: 0; inset-inline: 0; height: 1px; background: linear-gradient(90deg, transparent, var(--gold-2), transparent); }
.site-footer .brand-name { color: #FFF8E8; }
.site-footer .brand-sub { color: var(--gold-3); }
.footer-top { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 40px; padding-bottom: 48px; }
.site-footer h4 { color: #FFF8E8; font-size: .98rem; margin-bottom: 18px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; font-size: .9rem; }
.site-footer a { color: rgba(233, 226, 211, .78); }
.site-footer a:hover { color: var(--gold-3); }
.socials { display: flex; gap: 8px; margin-top: 18px; }
.socials a { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; border: 1px solid rgba(216, 180, 106, .25); }
.socials a:hover { background: var(--grad-gold); color: var(--on-gold); border-color: transparent; }
.footer-bottom { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding: 22px 0; border-top: 1px solid rgba(216, 180, 106, .14); font-size: .82rem; }
.newsletter-form { display: flex; gap: 8px; }
.newsletter-form .input { background: rgba(255, 255, 255, .06); border-color: rgba(216, 180, 106, .25); color: #FFF8E8; }
.footer-disclaimer { font-size: .78rem; color: rgba(233, 226, 211, .55); padding: 14px 0; border-top: 1px solid rgba(216, 180, 106, .1); }
@media (max-width: 900px) { .footer-top { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer-top { grid-template-columns: 1fr; } }

.back-top { position: fixed; bottom: 22px; inset-inline-start: 22px; z-index: 40; width: 46px; height: 46px; border-radius: 50%; border: 0; background: var(--grad-gold); color: var(--on-gold); box-shadow: var(--shadow-gold); cursor: pointer; display: grid; place-items: center; }

/* ---------------------------------------------------------------- احراز هویت */
.auth-shell { min-height: 100vh; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); }
.auth-art { position: relative; overflow: hidden; background: var(--grad-brand); color: #EFE9DC; padding: 56px; display: flex; flex-direction: column; justify-content: space-between; }
.auth-art::before { content: ''; position: absolute; inset: 0; background: radial-gradient(600px 400px at 80% 10%, rgba(216, 180, 106, .28), transparent 70%); }
.auth-art > * { position: relative; }
.auth-art h2 { font-family: var(--font-display); color: #FFF8E8; font-size: clamp(1.8rem, 3vw, 2.6rem); line-height: 1.35; }
.auth-art .brand-name { color: #FFF8E8; }
.auth-art .brand-sub { color: var(--gold-3); }
.auth-panel { display: grid; place-items: center; padding: 40px 20px; background: var(--bg); }
.auth-card { width: 100%; max-width: 460px; }
.auth-card h1 { font-size: 1.7rem; }
@media (max-width: 900px) { .auth-shell { grid-template-columns: 1fr; } .auth-art { display: none; } }

/* ---------------------------------------------------------------- حالت نگهداری و خطا */
.error-page { min-height: 100vh; display: grid; place-items: center; text-align: center; padding: 40px 20px; background: var(--grad-hero), var(--bg); }
.error-page .code { font-family: var(--font-display); font-size: clamp(5rem, 16vw, 9rem); line-height: 1; background: var(--grad-gold); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* ==========================================================================
   v3 — سایت عمومی: سربرگ شیشه‌ای و مگامنو، هیروی داخلی تیره با تندیس، پانویس موزه‌ای،
   ورود دوستونه با تندیس، ریتم بخش‌ها. کلاس‌های قبلی حفظ شده‌اند.
   ========================================================================== */
:root { --header-h: 78px; }

/* ---------------------------------------------------------------- نوار بالا */
.topbar { background: var(--grad-ink); color: var(--ink-muted); border-bottom: 1px solid rgba(216, 180, 106, .14); letter-spacing: .01em; }
.topbar a { color: var(--ink-muted); }
.topbar a:hover { color: var(--gold-3); }

/* ---------------------------------------------------------------- سربرگ */
.site-header .container { min-height: var(--header-h); }
.site-header.is-scrolled, .site-header.is-solid { background: color-mix(in srgb, var(--surface) 78%, transparent); box-shadow: 0 1px 0 color-mix(in srgb, var(--c-accent) 22%, transparent), 0 18px 40px -28px rgba(11, 20, 36, .35); }
[data-theme="dark"] .site-header.is-scrolled, [data-theme="dark"] .site-header.is-solid { background: rgba(8, 14, 26, .78); }
.site-header::after { content: ''; position: absolute; inset-inline: 0; bottom: 0; height: 1px; background: var(--hairline); opacity: 0; transition: opacity .3s; }
.site-header.is-scrolled::after { opacity: .7; }
.nav > li > a { position: relative; letter-spacing: .005em; }
.nav > li > a::after { content: ''; position: absolute; inset-inline: 16px; bottom: 5px; height: 1px; background: var(--grad-gold); transform: scaleX(0); transition: transform .35s var(--ease-out); }
.nav > li > a:hover::after, .nav > li > a.is-active::after { transform: scaleX(1); }
.nav > li > a:hover, .nav > li > a.is-active { background: transparent; }
.nav .dropdown { border-color: color-mix(in srgb, var(--c-accent) 26%, transparent); box-shadow: var(--shadow-float); border-radius: 20px; padding: 10px; }
.nav .dropdown::before { content: ''; position: absolute; top: 0; inset-inline: 22%; height: 1px; background: var(--hairline); }
.nav .dropdown a { display: flex; align-items: center; gap: 10px; }
.nav .dropdown a .icon-sm { color: var(--gold); }
/* مگامنو */
.nav .dropdown.mega { display: grid; grid-template-columns: repeat(2, minmax(210px, 1fr)) 210px; gap: 4px 6px; min-width: 680px; padding: 14px; inset-inline-start: 50%; transform: translate(calc(var(--mx, -50%)), 8px); }
[dir="rtl"] .nav .dropdown.mega { --mx: 50%; }
.nav > li:hover .dropdown.mega, .nav > li:focus-within .dropdown.mega { transform: translate(var(--mx, -50%), 0); }
.mega a.mm-item { align-items: flex-start; gap: 12px; padding: 12px; border-radius: 14px; }
.mega .mm-ic { width: 38px; height: 38px; flex-shrink: 0; border-radius: 12px; display: grid; place-items: center; background: var(--gold-soft); color: var(--gold-ink); transition: .25s var(--ease); }
.mega a.mm-item:hover .mm-ic { background: var(--grad-brand); color: var(--gold-3); }
.mega .mm-t { display: block; font-weight: 700; font-size: .9rem; color: var(--text); line-height: 1.5; }
.mega .mm-d { display: block; font-size: .76rem; color: var(--muted); line-height: 1.6; margin-top: 2px; }
.mega .mm-feature { grid-row: span 3; grid-column: 3; position: relative; overflow: hidden; display: flex; flex-direction: column; justify-content: flex-end; gap: 6px; padding: 18px; border-radius: 16px; background: var(--grad-ink); color: var(--ink-text); min-height: 220px; isolation: isolate; }
.mega .mm-feature::before { content: ''; position: absolute; inset: 0; z-index: -1; background: var(--img-girih) 0 0 / 90px; opacity: .8; }
.mega .mm-feature .statue-mark { position: absolute; top: 10px; inset-inline-end: 8px; --h: 150px; color: rgba(233, 207, 148, .28); z-index: -1; }
.mega .mm-feature strong { font-family: var(--font-display); font-size: 1.15rem; color: #FFF8E8; line-height: 1.4; }
.mega .mm-feature span { font-size: .78rem; color: var(--ink-muted); }
.mega .mm-feature a { color: var(--gold-3); font-weight: 700; font-size: .82rem; padding: 0; display: inline-flex; }
.mega .mm-feature a:hover { background: none; color: #fff; }

/* سربرگ روی هیروی تیره (پیش از اسکرول) */
body.hero-dark .site-header:not(.is-scrolled) .nav > li > a,
body.hero-dark .site-header:not(.is-scrolled) .header-actions > .btn-ghost,
body.hero-dark .site-header:not(.is-scrolled) .lang-switch,
body.hero-dark .site-header:not(.is-scrolled) .nav-toggle { color: #F4EEE0; }
body.hero-dark .site-header:not(.is-scrolled) .lang-switch { border-color: rgba(233, 207, 148, .35); }
body.hero-dark .site-header:not(.is-scrolled) .brand-name { color: #FFF8E8; }
body.hero-dark .site-header:not(.is-scrolled) .brand-sub { color: var(--gold-3); }
body.hero-dark .site-header:not(.is-scrolled) .brand .brand-logo-dark { display: none; }
body.hero-dark .site-header:not(.is-scrolled) .brand .brand-logo-light { display: block; }
body.hero-dark .site-header:not(.is-scrolled) .header-actions > .btn-ghost:hover { background: rgba(255, 255, 255, .08); }
@media (min-width: 1021px) {
  body.hero-dark .site-header:not(.is-scrolled) .nav > li > a:hover, body.hero-dark .site-header:not(.is-scrolled) .nav > li > a.is-active { color: var(--gold-3); }
}
@media (max-width: 1020px) {
  .nav { background: var(--grad-ink); color: var(--ink-text); border-inline-end: 1px solid rgba(216, 180, 106, .2); }
  .nav > li > a, body.hero-dark .site-header .nav > li > a { color: #F4EEE0; font-size: 1rem; padding: 12px 14px; }
  .nav > li > a::after { display: none; }
  .nav > li > a:hover, .nav > li > a.is-active { color: var(--gold-3); background: rgba(255, 255, 255, .05); }
  .nav .dropdown, .nav .dropdown.mega { display: block; min-width: 0; background: transparent; padding: 0 10px 8px; transform: none !important; }
  .nav .dropdown::before { display: none; }
  .nav .dropdown a, .mega a.mm-item { color: rgba(244, 238, 224, .82); padding: 8px 12px; }
  .nav .dropdown a:hover { background: rgba(255, 255, 255, .06); color: var(--gold-3); }
  .mega .mm-ic { width: 30px; height: 30px; border-radius: 9px; background: rgba(233, 207, 148, .12); color: var(--gold-3); }
  .mega .mm-t { color: inherit; font-weight: 600; }
  .mega .mm-d, .mega .mm-feature { display: none; }
  .nav::before { content: ''; position: absolute; inset: 0; z-index: -1; background: var(--img-girih) 0 0 / 110px; opacity: .6; pointer-events: none; }
  .nav { isolation: isolate; }
}

/* ---------------------------------------------------------------- هیروی صفحات داخلی */
.page-hero { background: var(--img-girih) 0 0 / 130px, var(--grad-ink); padding: clamp(56px, 7vw, 92px) 0 clamp(52px, 6vw, 80px); isolation: isolate; }
.page-hero::after { background: radial-gradient(640px 300px at 85% 0, rgba(216, 180, 106, .26), transparent 70%), linear-gradient(to top, rgba(7, 13, 26, .55), transparent 50%); z-index: -1; }
.page-hero::before { content: ''; position: absolute; z-index: -1; inset-inline-end: max(2vw, calc((100vw - var(--container)) / 2 - 40px)); bottom: 0; height: calc(100% - 28px); max-height: 440px; aspect-ratio: 2 / 5; width: auto; background: linear-gradient(180deg, rgba(233, 207, 148, .34), rgba(233, 207, 148, .06)); opacity: 1; -webkit-mask: var(--statue, url('../images/brand/statue-mono.svg')) bottom center / contain no-repeat; mask: var(--statue, url('../images/brand/statue-mono.svg')) bottom center / contain no-repeat; pointer-events: none; }
.page-hero .container::after { content: ''; position: absolute; inset-inline: 0; bottom: calc(-1 * clamp(52px, 6vw, 80px)); height: 1px; background: var(--hairline); }
.page-hero h1 { font-size: var(--fs-h1); line-height: 1.3; letter-spacing: -.005em; max-width: 880px; text-wrap: balance; }
.page-hero p { font-size: 1.04rem; line-height: 2; }
html[lang="en"] .page-hero p { line-height: 1.75; }
.page-hero .crumbs { display: flex; width: fit-content; padding: 5px 14px; border-radius: 999px; background: rgba(255, 255, 255, .05); border: 1px solid rgba(233, 207, 148, .18); backdrop-filter: blur(6px); }
.page-hero .eyebrow::before { background: var(--gold-3); }
@media (max-width: 760px) { .page-hero::before { opacity: .45; } }

/* ---------------------------------------------------------------- بخش‌ها */
.section { padding: var(--space-section) 0; }
.section-alt { background: linear-gradient(180deg, transparent, color-mix(in srgb, var(--surface-2) 85%, transparent) 12%, color-mix(in srgb, var(--surface-2) 85%, transparent) 88%, transparent); }
.section-dark { background: var(--img-girih) 0 0 / 130px, var(--grad-ink); color: var(--ink-text); }
.section-head h2 { font-size: var(--fs-h2); line-height: 1.32; text-wrap: balance; }
.section-head .eyebrow { justify-content: center; }
.section-head .eyebrow::after { content: ''; width: 28px; height: 1px; background: var(--grad-gold); }
.section-head.start .eyebrow { justify-content: flex-start; }
.section-head.start .eyebrow::after { display: none; }
.cta { background: var(--img-girih) 0 0 / 120px, var(--grad-ink); border: 1px solid rgba(216, 180, 106, .22); }

/* کارت خبر و خدمت: عمق بیشتر */
.post-card { border-color: color-mix(in srgb, var(--c-accent) 18%, var(--line)); }
.post-card:hover { box-shadow: var(--shadow-float); border-color: var(--gold-3); }
.post-card .pc-img { background: var(--grad-ink); }
.post-card h3 a:hover { color: var(--gold-ink); }
.iwan-card { box-shadow: var(--shadow-sm); }
.iwan-card:hover { box-shadow: var(--shadow-float); }
.iwan-card .iw-icon { background: var(--grad-ink); box-shadow: 0 10px 26px -12px rgba(11, 20, 36, .6), inset 0 0 0 1px rgba(233, 207, 148, .35); }
.faq-item summary { font-size: .98rem; }

/* ---------------------------------------------------------------- پانویس */
.site-footer { background: var(--img-girih) 0 0 / 140px, var(--grad-ink); color: var(--ink-muted); padding-top: clamp(64px, 8vw, 96px); margin-top: 0; isolation: isolate; }
[data-theme="dark"] .site-footer { background: var(--img-girih) 0 0 / 140px, linear-gradient(180deg, #08101F, #04080F); }
.site-footer.girih-bg::before { display: none; }
.footer-statue { position: absolute; z-index: -1; top: 24px; inset-inline-end: max(1vw, calc((100vw - var(--container)) / 2 - 70px)); width: clamp(110px, 11vw, 160px); aspect-ratio: 2 / 5; background: linear-gradient(180deg, rgba(233, 207, 148, .2), rgba(233, 207, 148, 0) 80%); -webkit-mask: var(--statue, url('../images/brand/statue-mono.svg')) bottom center / contain no-repeat; mask: var(--statue, url('../images/brand/statue-mono.svg')) bottom center / contain no-repeat; pointer-events: none; }
.footer-crest { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; padding: 0 0 36px; margin-bottom: 44px; border-bottom: 1px solid rgba(216, 180, 106, .14); }
.footer-crest .fc-word { display: inline-block; padding: 1em .2em .35em; margin: -1em 0 -.35em; font-family: var(--font-nastaliq); font-size: clamp(1.9rem, 4vw, 2.8rem); line-height: 1.6; color: #F6E6BE; background: linear-gradient(180deg, #FBF0D2, #C9A96E); -webkit-background-clip: text; background-clip: text; color: transparent; }
html[lang="en"] .footer-crest .fc-word { font-family: var(--font-serif); letter-spacing: .02em; }
.footer-crest .fc-sub { display: block; font-size: .82rem; color: var(--ink-muted); margin-top: -4px; }
.footer-apps { display: flex; gap: 10px; flex-wrap: wrap; }
.store-btn { display: inline-flex; align-items: center; gap: 10px; min-height: 52px; padding: 6px 18px 6px 16px; border-radius: 14px; border: 1px solid rgba(233, 207, 148, .35); background: rgba(255, 255, 255, .04); color: #F4EEE0 !important; transition: .25s var(--ease); }
.store-btn:hover { background: rgba(255, 255, 255, .1); border-color: var(--gold-2); transform: translateY(-2px); }
.store-btn .icon { color: var(--gold-3); width: 24px; height: 24px; }
.store-btn small { display: block; font-size: .68rem; color: var(--ink-muted); line-height: 1.3; }
.store-btn b { display: block; font-size: .95rem; line-height: 1.4; }
.site-footer h4 { font-family: var(--font-display); font-weight: 700; letter-spacing: .01em; display: flex; align-items: center; gap: 10px; }
.site-footer h4::before { content: ''; width: 8px; height: 8px; transform: rotate(45deg); background: var(--grad-gold); flex-shrink: 0; }
.site-footer ul a { display: inline-flex; transition: color .2s, transform .25s var(--ease); }
.site-footer ul a:hover { transform: translateX(calc(var(--dir, 1) * 3px)); }
[dir="rtl"] .site-footer ul a:hover { --dir: -1; }
.footer-bottom { border-top-color: rgba(216, 180, 106, .14); color: rgba(244, 238, 224, .55); }
.back-top { box-shadow: var(--shadow-gold), inset 0 1px 0 rgba(255, 255, 255, .4); }

/* ---------------------------------------------------------------- ورود: دوستونه با تندیس */
.auth-shell { grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); }
.auth-art { background: var(--img-girih) 0 0 / 120px, var(--grad-ink); padding: clamp(32px, 4vw, 56px); isolation: isolate; }
.auth-art.girih-bg::before { display: none; }
.auth-art::before { content: none; }
.auth-art { height: 100vh; position: sticky; top: 0; gap: 18px; }
.auth-art .auth-stage { position: relative; flex: 1; min-height: 0; display: grid; grid-template-rows: minmax(0, 1fr); place-items: end center; pointer-events: none; order: 0; }
.auth-art .auth-stage .auth-arch, .auth-art .auth-stage .auth-arch-line { position: absolute; bottom: 0; left: 50%; height: 100%; max-width: 100%; aspect-ratio: 500 / 740; transform: translateX(-50%); }
.auth-art .auth-stage .auth-arch { background: radial-gradient(60% 46% at 50% 36%, rgba(233, 207, 148, .3), transparent 72%); -webkit-mask: var(--mask-arch) center / 100% 100% no-repeat; mask: var(--mask-arch) center / 100% 100% no-repeat; }
.auth-art .auth-stage img { position: relative; height: 90%; width: auto; max-width: 100%; object-fit: contain; filter: drop-shadow(0 30px 40px rgba(0, 0, 0, .55)) drop-shadow(0 0 24px rgba(233, 207, 148, .16)); }
.auth-art > .brand { order: -1; }
.auth-art .auth-copy { order: 1; max-width: 520px; padding: 18px 22px; border-radius: 20px; background: rgba(8, 14, 26, .5); border: 1px solid rgba(233, 207, 148, .18); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.auth-foot { text-align: center; margin: 22px 0 0; }
.auth-art h2 { font-size: clamp(1.5rem, 2.4vw, 2.1rem); margin: 6px 0 8px; }
.auth-panel { background: var(--img-grain), radial-gradient(800px 500px at 50% 0, var(--gold-soft), transparent 70%), var(--bg); background-size: 180px, auto, auto; position: relative; }
.auth-card { padding: clamp(24px, 3vw, 40px); border-radius: 28px; background: color-mix(in srgb, var(--surface) 82%, transparent); border: 1px solid color-mix(in srgb, var(--c-accent) 22%, transparent); box-shadow: var(--shadow-float); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); position: relative; }
.auth-card::before { content: ''; position: absolute; top: 0; inset-inline: 16%; height: 1px; background: var(--hairline); }
.auth-mobile-mark { display: none; }
@media (max-width: 900px) {
  .auth-panel { padding: 24px 14px 40px; place-items: start center; }
  .auth-mobile-mark { display: flex; justify-content: center; margin: 6px 0 10px; }
  .auth-mobile-mark img { height: 150px; width: auto; filter: drop-shadow(0 16px 20px rgba(11, 20, 36, .3)); }
}

/* ---------------------------------------------------------------- خطا */
.error-page { background: var(--img-grain), var(--grad-hero), var(--bg); background-size: 180px, auto, auto; }

/* ---------------------------------------------------------------- چاپ */
@media print {
  .page-hero { background: none !important; color: #000; padding: 0 0 12px; }
  .page-hero::before, .page-hero::after, .page-hero .container::after { display: none; }
  .page-hero h1, .page-hero p { color: #000; }
  .page-hero .crumbs { display: none; }
  .section { padding: 16px 0; }
  .reveal { opacity: 1 !important; transform: none !important; }
  .lx-hero, .lx-app, .lx-dust { display: none !important; }
}

/* ممیزی M-31: دکمه‌ی شناور دستیار روی متن پایانی نیفتد */
@media (max-width: 640px) { body:has(.assistant-fab) .footer-bottom { padding-bottom: 96px; } }
/* ممیزی M-43: زیرمنو با دکمه (لمسی و صفحه‌کلید) */
.nav-sub { display: none; }
.nav > li.is-open > .dropdown { opacity: 1; visibility: visible; transform: none; }
.nav > li.is-open > .dropdown.mega { transform: translate(var(--mx, -50%), 0); }
@media (hover: none), (max-width: 1020px) {
  .nav > li:has(> .dropdown) { display: flex; flex-wrap: wrap; align-items: center; }
  .nav > li:has(> .dropdown) > a { flex: 1; }
  .nav > li:has(> .dropdown) > a > .icon-sm { display: none; }
  .nav-sub { display: inline-grid; place-items: center; width: 40px; height: 40px; border: 0; border-radius: 50%; background: transparent; color: inherit; cursor: pointer; }
  .nav-sub .icon-sm { transition: transform .25s; }
  .nav > li.is-open > .nav-sub .icon-sm { transform: rotate(180deg); }
  .nav > li:hover:not(.is-open) > .dropdown, .nav > li:focus-within:not(.is-open) > .dropdown { opacity: 0; visibility: hidden; }
  .nav > li > .dropdown { flex-basis: 100%; }
}
@media (max-width: 1020px) {
  .nav-sub { color: #F4EEE0; }
  .nav > li > .dropdown { display: none; }
  .nav > li.is-open > .dropdown { display: block; }
}
