/* =====================================================================
   درمانگاه دندانپزشکی ری‌را — سیستم طراحی
   پالت برند (از هویت بصری): سرمه‌ای #1F4667 · خاکی #AC702E · استخوانی #FAF8F2 · خاکستری #D7D3CC
   بدون هیچ وابستگی خارجی؛ فونت وزیرمتن self-hosted
   ===================================================================== */

@font-face { font-family: 'Vazirmatn'; src: url('/fonts/Vazirmatn-Regular.woff2') format('woff2'); font-weight: 400; font-display: swap; }
@font-face { font-family: 'Vazirmatn'; src: url('/fonts/Vazirmatn-Medium.woff2') format('woff2'); font-weight: 500; font-display: swap; }
@font-face { font-family: 'Vazirmatn'; src: url('/fonts/Vazirmatn-Bold.woff2') format('woff2'); font-weight: 700; font-display: swap; }
@font-face { font-family: 'Vazirmatn'; src: url('/fonts/Vazirmatn-ExtraBold.woff2') format('woff2'); font-weight: 800; font-display: swap; }

:root {
  --navy: #1F4667;
  --navy-950: #0b1c2c;
  --navy-900: #102a40;
  --navy-800: #163754;
  --navy-600: #2c5b82;
  --navy-100: #e4ecf3;
  --navy-50: #f1f5f9;
  --clay: #AC702E;
  --clay-700: #8a5822;
  --clay-400: #c88a47;
  --clay-300: #dcab72;
  --clay-50: #f7eee3;
  --ivory: #FAF8F2;
  --ivory-2: #f3efe6;
  --stone: #D7D3CC;
  --white: #ffffff;
  --ink: #142a3d;
  --ink-soft: #536576;
  --line: rgba(31, 70, 103, 0.12);
  --line-strong: rgba(31, 70, 103, 0.22);

  --radius-sm: 12px;
  --radius: 20px;
  --radius-lg: 32px;
  --shadow-sm: 0 1px 2px rgba(16, 42, 64, .06), 0 2px 8px rgba(16, 42, 64, .05);
  --shadow: 0 2px 6px rgba(16, 42, 64, .05), 0 16px 40px -12px rgba(16, 42, 64, .18);
  --shadow-lg: 0 30px 80px -24px rgba(11, 28, 44, .45);
  --shadow-clay: 0 12px 30px -10px rgba(172, 112, 46, .6);

  --ease: cubic-bezier(.22, 1, .36, 1);
  --header-h: 76px;
  --container: 1200px;
  --gutter: clamp(16px, 4vw, 32px);
}

@view-transition { navigation: auto; }
::view-transition-old(root), ::view-transition-new(root) { animation-duration: .35s; }

*, *::before, *::after { box-sizing: border-box; }
html { overflow-x: clip; -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); interpolate-size: allow-keywords; }
body {
  margin: 0;
  font-family: 'Vazirmatn', Tahoma, sans-serif;
  font-size: 16.5px;
  line-height: 1.9;
  color: var(--ink);
  background: var(--ivory);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, svg { max-width: 100%; display: block; }
a { color: var(--navy); text-decoration: none; transition: color .2s; }
a:hover { color: var(--clay); }
h1, h2, h3, h4 { line-height: 1.35; margin: 0 0 .5em; color: var(--navy-900); font-weight: 800; letter-spacing: -0.01em; }
h1 { font-size: clamp(1.9rem, 4.6vw, 3.3rem); }
h2 { font-size: clamp(1.45rem, 3vw, 2.25rem); }
h3 { font-size: 1.12rem; font-weight: 700; }
p { margin: 0 0 1em; }
::selection { background: var(--clay); color: #fff; }
:focus-visible { outline: 3px solid var(--clay-400); outline-offset: 3px; border-radius: 6px; }

.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }
.center { text-align: center; }
.mt-2 { margin-top: 18px; }
.mt-3 { margin-top: 36px; }
.skip-link { position: fixed; inset-inline-start: 8px; top: 8px; background: var(--navy); color: #fff; padding: 8px 16px; border-radius: 8px; z-index: 200; transform: translateY(-200%); transition: transform .2s; }
.skip-link:focus { transform: none; color: #fff; }

/* ---------- نوار پیشرفت اسکرول ---------- */
.scroll-progress {
  position: fixed; inset-inline: 0; top: 0; height: 3px; z-index: 120;
  background: linear-gradient(90deg, var(--clay-300), var(--clay));
  transform-origin: right; transform: scaleX(var(--progress, 0));
}

/* ---------- دکمه‌ها ---------- */
.btn {
  --bg: var(--navy); --fg: #fff;
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 10px 22px; border-radius: 999px; border: 1.5px solid transparent;
  background: var(--bg); color: var(--fg); font: inherit; font-weight: 700; font-size: .98rem; line-height: 1.4;
  cursor: pointer; isolation: isolate; overflow: hidden; white-space: nowrap;
  transition: transform .35s var(--ease), box-shadow .35s var(--ease), background .25s, color .25s, border-color .25s;
}
.btn svg { width: 19px; height: 19px; flex-shrink: 0; }
.btn:hover { color: var(--fg); transform: translateY(-2px); }
.btn:active { transform: translateY(0) scale(.98); }
.btn-primary { --bg: linear-gradient(135deg, var(--clay-400), var(--clay) 55%, var(--clay-700)); box-shadow: var(--shadow-clay); }
.btn-primary::after {
  content: ''; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(110deg, transparent 30%, rgba(255, 255, 255, .35) 50%, transparent 70%);
  transform: translateX(120%); transition: transform .8s var(--ease);
}
.btn-primary:hover::after { transform: translateX(-120%); }
.btn-primary:hover { box-shadow: 0 18px 38px -12px rgba(172, 112, 46, .75); }
.btn-ghost { --bg: transparent; --fg: var(--navy); border-color: var(--line-strong); }
.btn-ghost:hover { --bg: var(--navy); --fg: #fff; border-color: var(--navy); }
.btn-light { --bg: var(--white); --fg: var(--navy); border-color: var(--line); box-shadow: var(--shadow-sm); }
.btn-light:hover { --fg: var(--clay); }
.btn-lg { min-height: 56px; padding: 14px 30px; font-size: 1.04rem; }
.btn-sm { min-height: 42px; padding: 8px 18px; font-size: .92rem; }
.on-dark .btn-ghost, .hero-x .btn-ghost, .cta-box .btn-ghost, .page-hero .btn-ghost { --fg: #fff; border-color: rgba(255, 255, 255, .35); }
.on-dark .btn-ghost:hover, .hero-x .btn-ghost:hover, .cta-box .btn-ghost:hover, .page-hero .btn-ghost:hover { --bg: #fff; --fg: var(--navy); border-color: #fff; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.sidebar .btn { width: 100%; }

/* ---------- هدر ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100; height: var(--header-h);
  background: rgba(250, 248, 242, .78);
  backdrop-filter: saturate(1.6) blur(16px); -webkit-backdrop-filter: saturate(1.6) blur(16px);
  border-bottom: 1px solid transparent;
  transition: background .4s, border-color .4s, box-shadow .4s, height .4s var(--ease);
}
.site-header.scrolled { border-color: var(--line); box-shadow: 0 8px 30px -18px rgba(16, 42, 64, .35); }
.header-inner { height: 100%; display: flex; align-items: center; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--navy); flex-shrink: 0; }
.brand:hover { color: var(--navy); }
.brand .mark { width: 54px; height: auto; color: var(--navy); transition: transform .6s var(--ease); }
.brand:hover .mark { transform: rotate(-4deg) scale(1.05); }
.mark-arc { fill: var(--clay); }
.brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.brand-text b { font-size: 1.6rem; font-weight: 800; letter-spacing: -.02em; }
.brand-text small { font-size: .52rem; letter-spacing: .32em; font-weight: 500; color: var(--ink-soft); direction: ltr; text-align: right; margin-top: 3px; }
.main-nav { margin-inline-start: auto; }
.main-nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 4px; }
.main-nav a {
  position: relative; display: block; padding: 8px 14px; border-radius: 999px; font-weight: 500; color: var(--ink); font-size: .96rem;
}
.main-nav a::after {
  content: ''; position: absolute; inset-inline: 14px; bottom: 3px; height: 2px; border-radius: 2px;
  background: var(--clay); transform: scaleX(0); transition: transform .4s var(--ease);
}
.main-nav a:hover::after, .main-nav a[aria-current="page"]::after { transform: scaleX(1); }
.main-nav a[aria-current="page"] { color: var(--navy); font-weight: 700; }
.main-nav .nav-book { display: none; }
.main-nav { display: flex; align-items: center; }
.header-cta { display: flex; align-items: center; gap: 14px; }
.header-phone { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; color: var(--navy); font-size: .95rem; }
.header-phone svg { width: 18px; height: 18px; color: var(--clay); }
.nav-toggle {
  display: none; width: 46px; height: 46px; border-radius: 14px; border: 1px solid var(--line-strong);
  background: transparent; cursor: pointer; flex-direction: column; justify-content: center; align-items: center; gap: 5px;
}
.nav-toggle span { display: block; width: 20px; height: 2px; border-radius: 2px; background: currentColor; color: var(--navy); transition: transform .4s var(--ease), opacity .3s; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* هدر شفاف روی هیروی تیره صفحه اصلی */
.home .site-header:not(.scrolled), .dark-top .site-header:not(.scrolled) { background: transparent; backdrop-filter: none; -webkit-backdrop-filter: none; }
.home .site-header:not(.scrolled) .brand, .home .site-header:not(.scrolled) .brand .mark,
.home .site-header:not(.scrolled) .main-nav a, .home .site-header:not(.scrolled) .header-phone,
.dark-top .site-header:not(.scrolled) .brand, .dark-top .site-header:not(.scrolled) .brand .mark,
.dark-top .site-header:not(.scrolled) .main-nav a, .dark-top .site-header:not(.scrolled) .header-phone { color: #fff; }
.home .site-header:not(.scrolled) .brand-text small, .dark-top .site-header:not(.scrolled) .brand-text small { color: rgba(255, 255, 255, .6); }
.home .site-header:not(.scrolled) .nav-toggle, .dark-top .site-header:not(.scrolled) .nav-toggle { border-color: rgba(255, 255, 255, .3); }
.home .site-header:not(.scrolled) .nav-toggle span, .dark-top .site-header:not(.scrolled) .nav-toggle span { color: #fff; }
.home .site-header, .dark-top .site-header { position: fixed; inset-inline: 0; }

@media (max-width: 1080px) {
  .header-phone span { display: none; }
  .main-nav a { padding: 8px 10px; }
}
@media (max-width: 920px) {
  :root { --header-h: 66px; }
  .nav-toggle { display: flex; }
  .header-cta { margin-inline-start: auto; }
  .header-cta .btn { display: none; }
  .header-phone { width: 46px; height: 46px; justify-content: center; border-radius: 14px; border: 1px solid var(--line-strong); }
  .home .site-header:not(.scrolled) .header-phone, .dark-top .site-header:not(.scrolled) .header-phone { border-color: rgba(255, 255, 255, .3); }
  .main-nav {
    position: fixed; inset: var(--header-h) 0 0 0; margin: 0; padding: 28px var(--gutter) 120px;
    background: var(--navy-900); display: flex; flex-direction: column; align-items: stretch; gap: 22px;
    clip-path: circle(0 at 92% 0); visibility: hidden; transition: clip-path .7s var(--ease), visibility 0s .7s;
    overflow-y: auto;
  }
  .main-nav.open { clip-path: circle(150% at 92% 0); visibility: visible; transition: clip-path .7s var(--ease), visibility 0s; }
  .main-nav ul { flex-direction: column; gap: 2px; }
  .main-nav a, .home .site-header:not(.scrolled) .main-nav a, .dark-top .site-header:not(.scrolled) .main-nav a { color: #fff; }
  .main-nav li a { font-size: 1.5rem; font-weight: 800; padding: 10px 4px; opacity: 0; transform: translateY(16px); transition: opacity .5s, transform .6s var(--ease); }
  .main-nav a::after { display: none; }
  .main-nav a[aria-current="page"], .home .site-header:not(.scrolled) .main-nav a[aria-current="page"] { color: var(--clay-300); }
  .main-nav.open li a { opacity: 1; transform: none; }
  .main-nav.open li:nth-child(2) a { transition-delay: .05s; } .main-nav.open li:nth-child(3) a { transition-delay: .1s; }
  .main-nav.open li:nth-child(4) a { transition-delay: .15s; } .main-nav.open li:nth-child(5) a { transition-delay: .2s; }
  .main-nav.open li:nth-child(6) a { transition-delay: .25s; }
  .main-nav .nav-book { display: inline-flex; align-self: flex-start; }
  body.nav-open { overflow: hidden; }
  body.nav-open .site-header { background: var(--navy-900) !important; backdrop-filter: none; -webkit-backdrop-filter: none; }
  body.nav-open .site-header .brand, body.nav-open .site-header .brand .mark, body.nav-open .header-phone { color: #fff; }
  body.nav-open .nav-toggle span { color: #fff; }
  body.nav-open .brand-text small { color: rgba(255, 255, 255, .6); }
}

/* ---------- هیروی صفحه اصلی ---------- */
.hero-x {
  position: relative; min-height: max(680px, 100svh); display: flex; align-items: center; overflow: hidden; isolation: isolate;
  color: #fff; padding: calc(var(--header-h) + 40px) 0 180px;
  background:
    radial-gradient(1200px 600px at 85% -10%, rgba(220, 171, 114, .28), transparent 60%),
    radial-gradient(900px 500px at 0% 30%, rgba(44, 91, 130, .65), transparent 60%),
    linear-gradient(180deg, var(--navy-950) 0%, var(--navy-900) 45%, var(--navy) 100%);
}
.hero-x::before { /* ستاره‌ها/دانه‌های برف */
  content: ''; position: absolute; inset: 0; z-index: -2; opacity: .55;
  background-image:
    radial-gradient(1.5px 1.5px at 12% 18%, #fff, transparent), radial-gradient(1px 1px at 28% 42%, #fff, transparent),
    radial-gradient(1.2px 1.2px at 46% 12%, #fff, transparent), radial-gradient(1px 1px at 62% 34%, #fff, transparent),
    radial-gradient(1.6px 1.6px at 78% 22%, #fff, transparent), radial-gradient(1px 1px at 90% 48%, #fff, transparent),
    radial-gradient(1.2px 1.2px at 8% 60%, #fff, transparent), radial-gradient(1px 1px at 54% 56%, #fff, transparent);
  animation: twinkle 6s ease-in-out infinite alternate;
}
@keyframes twinkle { from { opacity: .25; } to { opacity: .7; } }
.hero-aurora {
  position: absolute; z-index: -1; width: 70vmax; height: 70vmax; inset-inline-end: -20vmax; top: -30vmax; border-radius: 50%;
  background: conic-gradient(from 90deg, rgba(172, 112, 46, .0), rgba(220, 171, 114, .35), rgba(44, 91, 130, .4), rgba(172, 112, 46, 0));
  filter: blur(60px); animation: spin 26s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.hero-x .container { position: relative; display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: center; }
.hero-x h1 { color: #fff; font-size: clamp(2.1rem, 5.4vw, 4rem); line-height: 1.22; margin-bottom: 20px; }
.hero-x h1 .hl {
  background: linear-gradient(100deg, var(--clay-300), #f3d2a6 45%, var(--clay-400)); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero-x .lead { color: rgba(255, 255, 255, .78); font-size: clamp(1.02rem, 1.6vw, 1.18rem); max-width: 34em; margin-bottom: 30px; }
.kicker {
  display: inline-flex; align-items: center; gap: 10px; padding: 6px 16px 6px 6px; border-radius: 999px; margin-bottom: 22px;
  background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .16); font-size: .88rem; color: rgba(255, 255, 255, .9);
  backdrop-filter: blur(8px);
}
.kicker b { background: var(--clay); color: #fff; padding: 2px 12px; border-radius: 999px; font-size: .8rem; }
.hero-meta { list-style: none; padding: 0; margin: 34px 0 0; display: flex; flex-wrap: wrap; gap: 10px 22px; color: rgba(255, 255, 255, .75); font-size: .92rem; }
.hero-meta li { display: inline-flex; align-items: center; gap: 8px; }
.hero-meta svg { width: 18px; height: 18px; color: var(--clay-300); }

/* نشان متحرک */
.hero-emblem { position: relative; aspect-ratio: 1; max-width: 480px; width: 100%; justify-self: center; }
.hero-emblem .ring {
  position: absolute; inset: 0; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .14);
  animation: pulse-ring 6s var(--ease) infinite;
}
.hero-emblem .ring:nth-child(2) { inset: 9%; animation-delay: 1.5s; }
.hero-emblem .ring:nth-child(3) { inset: 18%; animation-delay: 3s; border-color: rgba(220, 171, 114, .25); }
@keyframes pulse-ring { 0%, 100% { transform: scale(1); opacity: .9; } 50% { transform: scale(1.04); opacity: .4; } }
.hero-emblem .glass {
  position: absolute; inset: 17%; border-radius: 50%;
  background: radial-gradient(circle at 30% 25%, rgba(255, 255, 255, .22), rgba(255, 255, 255, .04) 60%);
  border: 1px solid rgba(255, 255, 255, .2); backdrop-filter: blur(6px);
  box-shadow: inset 0 0 60px rgba(255, 255, 255, .06), 0 40px 80px -30px rgba(0, 0, 0, .6);
  display: grid; place-items: center;
  transform: translate3d(calc(var(--mx, 0) * 14px), calc(var(--my, 0) * 14px), 0); transition: transform .6s var(--ease);
}
.emblem-svg { width: 74%; overflow: visible; }
.emblem-svg .draw { fill: none; stroke: #fff; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 600; stroke-dashoffset: 600; animation: draw 2.4s var(--ease) .3s forwards; }
.emblem-svg .fill { fill: #fff; opacity: 0; animation: fade-in 1s ease 1.8s forwards; }
.emblem-svg .snow { fill: none; stroke: var(--navy-900); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; opacity: 0; animation: fade-in .8s ease 2.4s forwards; }
.emblem-svg .arc { fill: var(--clay-400); transform-origin: 70% 80%; transform: scaleX(0); animation: sweep 1.2s var(--ease) 2.1s forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes fade-in { to { opacity: 1; } }
@keyframes sweep { to { transform: scaleX(1); } }
.float-chip {
  position: absolute; display: flex; align-items: center; gap: 10px; padding: 10px 16px; border-radius: 18px;
  background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .2); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  color: #fff; font-size: .86rem; line-height: 1.4; box-shadow: 0 20px 40px -20px rgba(0, 0, 0, .5);
  animation: bob 6s ease-in-out infinite;
}
.float-chip strong { display: block; font-size: 1.15rem; }
.float-chip .dot { width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center; background: var(--clay); flex-shrink: 0; }
.float-chip .dot svg { width: 20px; height: 20px; }
.float-chip.c1 { top: 8%; inset-inline-start: -4%; }
.float-chip.c2 { bottom: 12%; inset-inline-end: -6%; animation-delay: -3s; }
@keyframes bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }

/* لایه‌های کوه (پارالاکس) */
.peaks { position: absolute; inset-inline: 0; bottom: -1px; height: clamp(160px, 26vw, 340px); z-index: -1; pointer-events: none; }
.peaks svg { position: absolute; inset-inline: 0; bottom: 0; width: 100%; height: 100%; will-change: transform; }
.peaks .l1 { fill: #24527a; opacity: .55; transform: translateY(calc(var(--scroll, 0) * 0.25px)); }
.peaks .l2 { fill: #193d5c; transform: translateY(calc(var(--scroll, 0) * 0.12px)); }
.peaks .l3 { fill: var(--ivory); }
.peaks .snowcap { fill: rgba(255, 255, 255, .85); transform: translateY(calc(var(--scroll, 0) * 0.12px)); }
.scroll-cue {
  position: absolute; bottom: 28px; inset-inline-start: 50%; transform: translateX(50%); z-index: 2; width: 28px; height: 46px;
  border: 2px solid var(--line-strong); border-radius: 20px;
}
.scroll-cue::after { content: ''; position: absolute; top: 8px; inset-inline-start: 50%; width: 4px; height: 8px; margin-inline-start: -2px; border-radius: 2px; background: var(--clay); animation: cue 1.8s ease-in-out infinite; }
@keyframes cue { 0% { transform: translateY(0); opacity: 1; } 100% { transform: translateY(16px); opacity: 0; } }

@media (max-width: 920px) {
  .hero-x { padding-bottom: 150px; min-height: auto; }
  .hero-x .container { grid-template-columns: 1fr; gap: 20px; }
  .hero-emblem { max-width: 340px; order: -1; }
  .float-chip.c1 { inset-inline-start: 0; }
  .float-chip.c2 { inset-inline-end: 0; }
  .scroll-cue { display: none; }
}
@media (max-width: 520px) {
  .hero-emblem { max-width: 280px; }
  .float-chip { padding: 8px 12px; font-size: .78rem; }
  .float-chip .dot { width: 30px; height: 30px; }
  .float-chip strong { font-size: 1rem; }
  .hero-x .btn-lg { flex: 1 1 100%; }
}

/* ---------- سربرگ صفحات داخلی ---------- */
.page-hero {
  position: relative; overflow: hidden; isolation: isolate; color: #fff;
  padding: calc(var(--header-h) + 36px) 0 120px;
  background:
    radial-gradient(800px 380px at 90% 0%, rgba(220, 171, 114, .25), transparent 60%),
    radial-gradient(700px 400px at 0% 100%, rgba(44, 91, 130, .6), transparent 60%),
    linear-gradient(160deg, var(--navy-950), var(--navy) 90%);
}
.page-hero::after { /* لبه کوهستانی */
  content: ''; position: absolute; inset-inline: 0; bottom: -1px; height: 90px; z-index: -1; background: var(--ivory);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 90' preserveAspectRatio='none'%3E%3Cpath d='M0 90V60l140-30 110 18 170-44 120 34 90-14 160 40 150-36 100 20 170-46 130 36 100-12 100 22v42z'/%3E%3C/svg%3E") bottom / 100% 100% no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 90' preserveAspectRatio='none'%3E%3Cpath d='M0 90V60l140-30 110 18 170-44 120 34 90-14 160 40 150-36 100 20 170-46 130 36 100-12 100 22v42z'/%3E%3C/svg%3E") bottom / 100% 100% no-repeat;
}
.page-hero::before { /* نشان بزرگ کم‌رنگ */
  content: ''; position: absolute; z-index: -1; width: 520px; height: 400px; inset-inline-end: -80px; top: 40px; opacity: .07;
  background: url('/images/logo-mark.svg') center / contain no-repeat; filter: brightness(0) invert(1);
}
.page-hero h1 { color: #fff; max-width: 22em; }
.page-hero .lead { color: rgba(255, 255, 255, .8); font-size: 1.1rem; max-width: 40em; margin-bottom: 24px; }
.breadcrumb ol { list-style: none; display: flex; flex-wrap: wrap; gap: 4px; padding: 0; margin: 0 0 18px; font-size: .86rem; color: rgba(255, 255, 255, .6); }
.breadcrumb li + li::before { content: '‹'; margin-inline: 6px; opacity: .6; }
.breadcrumb a { color: rgba(255, 255, 255, .85); }
.breadcrumb a:hover { color: var(--clay-300); }
.page-hero .container > * { animation: rise .9s var(--ease) both; }
.page-hero .container > :nth-child(2) { animation-delay: .08s; }
.page-hero .container > :nth-child(3) { animation-delay: .16s; }
.page-hero .container > :nth-child(4) { animation-delay: .24s; }
@keyframes rise { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }

/* ---------- بخش‌ها ---------- */
.section { padding: clamp(56px, 8vw, 104px) 0; position: relative; }
.section + .section { padding-top: 0; }
.section.alt { background: var(--ivory-2); padding-top: clamp(56px, 8vw, 104px); }
.section.alt + .section { padding-top: clamp(56px, 8vw, 104px); }
.section.dark { background: var(--navy-900); color: rgba(255, 255, 255, .82); padding-top: clamp(56px, 8vw, 104px); }
.section.dark + .section { padding-top: clamp(56px, 8vw, 104px); }
.section.dark h2, .section.dark h3 { color: #fff; }
.section-head { max-width: 680px; margin-bottom: 44px; }
.section-head.center { margin-inline: auto; }
.section-head p { color: var(--ink-soft); font-size: 1.05rem; }
.section.dark .section-head p { color: rgba(255, 255, 255, .7); }
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px; font-size: .84rem; font-weight: 700; color: var(--clay); margin-bottom: 12px; letter-spacing: .02em;
}
.eyebrow::before { content: ''; width: 28px; height: 2px; border-radius: 2px; background: currentColor; }
.eyebrow.green { color: var(--navy-600); }
.section.dark .eyebrow { color: var(--clay-300); }

/* ---------- کارت‌ها ---------- */
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 20px; }
.card {
  --mx: 50%; --my: 50%;
  position: relative; display: block; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 28px 24px; color: var(--ink); box-shadow: var(--shadow-sm); overflow: hidden; isolation: isolate;
  transition: transform .5s var(--ease), box-shadow .5s var(--ease), border-color .4s;
}
.card::before { /* نور دنبال‌کننده نشانگر */
  content: ''; position: absolute; inset: 0; z-index: -1; opacity: 0; transition: opacity .4s;
  background: radial-gradient(420px circle at var(--mx) var(--my), rgba(220, 171, 114, .16), transparent 45%);
}
a.card:hover, .card.hoverable:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: rgba(172, 112, 46, .35); color: var(--ink); }
.card:hover::before { opacity: 1; }
.card h3 { margin-bottom: 8px; }
.card p { color: var(--ink-soft); font-size: .96rem; margin-bottom: 0; }
.card .icon {
  width: 54px; height: 54px; border-radius: 16px; display: grid; place-items: center; margin-bottom: 18px;
  background: var(--navy-50); color: var(--navy); border: 1px solid var(--navy-100);
  transition: transform .6s var(--ease), background .4s, color .4s;
}
.card .icon.warm { background: var(--clay-50); color: var(--clay); border-color: #efdcc6; }
.card .icon svg { width: 26px; height: 26px; }
a.card:hover .icon { transform: rotate(-8deg) scale(1.08); background: var(--navy); color: #fff; }
a.card:hover .icon.warm { background: var(--clay); color: #fff; }
.card-link { display: inline-flex; align-items: center; gap: 6px; margin-top: 16px; font-weight: 700; font-size: .9rem; color: var(--clay); transition: gap .3s var(--ease); }
a.card:hover .card-link { gap: 12px; }
.sidebar .card { padding: 22px; }
.sidebar .card + .card { margin-top: 16px; }
.sidebar .card h3 { font-size: 1.02rem; }
.sidebar .card ul a { display: flex; justify-content: space-between; font-weight: 500; }

/* کارت خدمات صفحه اصلی (بزرگ‌تر با شماره) */
.svc-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.svc-grid .card { padding: 28px 24px 24px; min-height: 250px; display: flex; flex-direction: column; }
.svc-grid .card .num { position: absolute; top: 18px; inset-inline-end: 22px; font-size: 2.6rem; font-weight: 800; color: var(--navy-50); line-height: 1; transition: color .4s; z-index: -1; }
.svc-grid .card:hover .num { color: var(--clay-50); }
.svc-grid .card .card-link { margin-top: auto; padding-top: 14px; }
.svc-grid .card.feature { grid-column: span 2; background: linear-gradient(150deg, var(--navy-900), var(--navy)); color: #fff; border: 0; }
.svc-grid .card.feature h3 { color: #fff; font-size: 1.4rem; }
.svc-grid .card.feature p { color: rgba(255, 255, 255, .75); }
.svc-grid .card.feature .icon { background: rgba(255, 255, 255, .1); border-color: rgba(255, 255, 255, .15); color: #fff; }
.svc-grid .card.feature .num { color: rgba(255, 255, 255, .06); }
.svc-grid .card.feature .card-link { color: var(--clay-300); }
.svc-grid .card.feature::after {
  content: ''; position: absolute; inset-inline-start: -30px; bottom: -40px; width: 260px; height: 200px; opacity: .08; z-index: -1;
  background: url('/images/logo-mark.svg') center / contain no-repeat; filter: brightness(0) invert(1);
}
@media (max-width: 1000px) { .svc-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) {
  .svc-grid { gap: 12px; }
  .svc-grid .card { min-height: 0; padding: 18px 16px; }
  .svc-grid .card h3 { font-size: 1rem; }
  .svc-grid .card p { font-size: .84rem; line-height: 1.8; }
  .svc-grid .card .icon { width: 44px; height: 44px; margin-bottom: 12px; border-radius: 13px; }
  .svc-grid .card .num { font-size: 1.8rem; top: 14px; inset-inline-end: 14px; }
  .svc-grid .card.feature { grid-row: auto !important; }
}

/* ---------- نوار متحرک ارزش‌ها ---------- */
.marquee { overflow: hidden; padding: 22px 0; background: var(--navy); color: #fff; border-block: 1px solid rgba(255, 255, 255, .08); }
.marquee-track { display: flex; width: max-content; gap: 48px; animation: marquee 38s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee span { display: inline-flex; align-items: center; gap: 48px; font-size: clamp(1.1rem, 2vw, 1.5rem); font-weight: 800; white-space: nowrap; }
.marquee span::after { content: ''; width: 34px; height: 26px; background: url('/images/logo-mark.svg') center / contain no-repeat; filter: brightness(0) invert(1); opacity: .5; }
.marquee span:nth-child(even) { color: var(--clay-300); }
@keyframes marquee { to { transform: translateX(50%); } }

/* ---------- داستان برند / ارزش‌ها ---------- */
.story { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 6vw, 80px); align-items: center; }
.story-visual {
  position: relative; aspect-ratio: 4 / 3.4; border-radius: var(--radius-lg); overflow: hidden; isolation: isolate;
  background: linear-gradient(180deg, #e9e4da 0%, var(--ivory-2) 60%);
  box-shadow: var(--shadow);
}
.story-visual svg.scene { position: absolute; inset: 0; width: 100%; height: 100%; }
.story-visual .badge {
  position: absolute; bottom: 20px; inset-inline-start: 20px; background: rgba(255, 255, 255, .85); backdrop-filter: blur(10px);
  border-radius: 16px; padding: 12px 18px; box-shadow: var(--shadow-sm); font-size: .9rem; line-height: 1.6;
}
.story-visual .badge strong { display: block; color: var(--navy); font-size: 1.05rem; }
.story p { color: var(--ink-soft); font-size: 1.04rem; }
.values { display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; margin-top: 48px; }
.value { text-align: center; padding: 24px 12px; border-radius: var(--radius); background: var(--white); border: 1px solid var(--line); transition: transform .5s var(--ease), box-shadow .5s; }
.value:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.value .v-ico { width: 64px; height: 64px; margin: 0 auto 12px; border-radius: 50%; display: grid; place-items: center; background: var(--clay-50); color: var(--navy); }
.value .v-ico svg { width: 28px; height: 28px; }
.value h3 { font-size: 1rem; margin-bottom: 4px; }
.value p { font-size: .86rem; color: var(--ink-soft); margin: 0; line-height: 1.7; }
@media (max-width: 920px) { .story { grid-template-columns: 1fr; } .values { grid-template-columns: repeat(2, 1fr); } .values .value:last-child { grid-column: span 2; } }

/* ---------- آمار ---------- */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: rgba(255, 255, 255, .1); border-radius: var(--radius); overflow: hidden; }
.stat { background: var(--navy-900); padding: 30px 20px; text-align: center; }
.stat b { display: block; font-size: clamp(2rem, 4vw, 2.9rem); font-weight: 800; color: #fff; line-height: 1.2; }
.stat b em { font-style: normal; color: var(--clay-300); }
.stat > span { color: rgba(255, 255, 255, .65); font-size: .92rem; }
@media (max-width: 720px) { .stats { grid-template-columns: repeat(2, 1fr); } }

/* ---------- مراحل ---------- */
.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; counter-reset: step; position: relative; }
.steps::before { content: ''; position: absolute; top: 31px; inset-inline: 12%; height: 2px; background: repeating-linear-gradient(90deg, var(--stone) 0 8px, transparent 8px 16px); z-index: 0; }
.steps li { position: relative; counter-increment: step; text-align: center; padding: 0 8px; z-index: 1; }
.steps li::before {
  content: counter(step, persian); display: grid; place-items: center; width: 64px; height: 64px; margin: 0 auto 18px; border-radius: 50%;
  background: var(--white); border: 2px solid var(--clay); color: var(--clay); font-weight: 800; font-size: 1.4rem;
  box-shadow: 0 0 0 8px var(--ivory); transition: background .4s, color .4s, transform .5s var(--ease);
}
.section.alt .steps li::before { box-shadow: 0 0 0 8px var(--ivory-2); }
.steps li:hover::before { background: var(--clay); color: #fff; transform: scale(1.08); }
.steps h3 { font-size: 1.05rem; }
.steps p { color: var(--ink-soft); font-size: .93rem; }
@media (max-width: 820px) {
  .steps { grid-template-columns: 1fr; gap: 8px; }
  .steps::before { top: 0; bottom: 0; inset-inline: auto; inset-inline-start: 31px; width: 2px; height: auto; background: repeating-linear-gradient(180deg, var(--stone) 0 8px, transparent 8px 16px); }
  .steps li { text-align: start; padding-inline-start: 84px; min-height: 80px; }
  .steps li::before { position: absolute; inset-inline-start: 0; top: 0; margin: 0; }
}

/* ---------- تیم ---------- */
.doctor-card { text-align: center; }
.doctor-card .avatar {
  width: 128px; height: 128px; margin: 4px auto 18px; border-radius: 50%; display: grid; place-items: center;
  background: linear-gradient(150deg, var(--navy), var(--navy-900)); color: #fff; position: relative;
  box-shadow: 0 0 0 6px var(--white), 0 0 0 7px var(--line), var(--shadow);
}
.doctor-card .avatar svg { width: 70%; }
.doctor-card .avatar { overflow: hidden; }
.doctor-card .avatar img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 20%; border-radius: 50%; }
.doctor-card .role { color: var(--clay); font-weight: 700; font-size: .88rem; margin-bottom: 10px; line-height: 1.7; }

/* ---------- نظرات ---------- */
.quote-card { position: relative; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 30px 26px 24px; box-shadow: var(--shadow-sm); }
.quote-card::before { content: '”'; position: absolute; top: -6px; inset-inline-end: 22px; font-size: 6rem; line-height: 1; color: var(--clay-50); font-weight: 800; font-family: Georgia, serif; }
.quote-card blockquote { margin: 0 0 14px; font-size: 1.02rem; color: var(--ink); line-height: 2; position: relative; }
.quote-card footer { color: var(--ink-soft); font-size: .88rem; font-weight: 500; }
.stars { color: var(--clay); letter-spacing: 3px; margin-bottom: 8px; }
.slider { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(300px, 1fr); gap: 20px; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 12px; scrollbar-width: none; }
.slider::-webkit-scrollbar { display: none; }
.slider > * { scroll-snap-align: start; }
.slider-nav { display: flex; gap: 10px; }
.slider-nav button { width: 46px; height: 46px; border-radius: 50%; border: 1px solid var(--line-strong); background: var(--white); color: var(--navy); cursor: pointer; font-size: 1.3rem; transition: background .3s, color .3s; }
.slider-nav button:hover { background: var(--navy); color: #fff; }
.head-row { display: flex; justify-content: space-between; align-items: end; gap: 20px; flex-wrap: wrap; margin-bottom: 36px; }
.head-row .section-head { margin-bottom: 0; }

/* ---------- گالری (قاب‌های آماده) ---------- */
.case-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 20px; }
.case-card { margin: 0; border-radius: var(--radius); overflow: hidden; background: var(--white); border: 1px solid var(--line); box-shadow: var(--shadow-sm); transition: transform .5s var(--ease), box-shadow .5s; }
.case-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.case-card .frame { aspect-ratio: 4 / 5; position: relative; display: grid; place-items: center; overflow: hidden;
  background: linear-gradient(135deg, var(--navy-50), var(--ivory-2)); color: var(--navy); }
.case-card .frame svg { width: 46%; opacity: .25; }
.case-card .frame .tag { position: absolute; top: 14px; inset-inline-start: 14px; background: var(--white); border-radius: 999px; padding: 2px 12px; font-size: .78rem; font-weight: 700; color: var(--clay); }
.case-card img { width: 100%; height: auto; }
.case-card figcaption { padding: 16px 20px; font-size: .9rem; color: var(--ink-soft); }
.case-card figcaption strong { display: block; color: var(--navy-900); font-size: 1rem; }

/* ---------- محتوای متنی ---------- */
.content-grid { display: grid; grid-template-columns: minmax(0, 1fr) 330px; gap: clamp(28px, 4vw, 56px); align-items: start; }
.sidebar { position: sticky; top: calc(var(--header-h) + 20px); }
@media (max-width: 960px) { .content-grid { grid-template-columns: 1fr; } .sidebar { position: static; } }
.prose { font-size: 1.04rem; line-height: 2.05; max-width: 760px; }
.prose h2 { font-size: clamp(1.3rem, 2.4vw, 1.65rem); margin-top: 1.9em; position: relative; padding-inline-start: 18px; }
.prose h2::before { content: ''; position: absolute; inset-inline-start: 0; top: .32em; bottom: .32em; width: 5px; border-radius: 4px; background: linear-gradient(var(--clay-400), var(--clay)); }
.prose > h2:first-child { margin-top: 0; }
.prose h3 { margin-top: 1.4em; }
.prose a { color: var(--clay-700); text-decoration: underline; text-decoration-color: rgba(172, 112, 46, .35); text-underline-offset: 5px; text-decoration-thickness: 1.5px; }
.prose a:hover { text-decoration-color: var(--clay); }
.prose a.btn { text-decoration: none; }
.prose a.btn-primary, .prose a.btn-primary:hover { color: #fff; }
.prose ul, .prose ol { padding-inline-start: 0; list-style: none; margin: 0 0 1.2em; }
.prose ul li, .prose ol li { position: relative; padding-inline-start: 30px; margin-bottom: 8px; }
.prose ul li::before { content: ''; position: absolute; inset-inline-start: 4px; top: .78em; width: 10px; height: 10px; border-radius: 3px; background: var(--clay); transform: rotate(45deg); opacity: .85; }
.prose ol { counter-reset: li; }
.prose ol li { counter-increment: li; }
.prose ol li::before { content: counter(li, persian); position: absolute; inset-inline-start: 0; top: .28em; width: 22px; height: 22px; border-radius: 50%; background: var(--navy); color: #fff; font-size: .78rem; display: grid; place-items: center; line-height: 1; font-weight: 700; }
.prose strong { color: var(--navy-900); }
.note, .warn { padding: 18px 22px; border-radius: var(--radius-sm); margin: 1.4em 0; font-size: .98rem; line-height: 1.95; }
.note { background: var(--navy-50); border-inline-start: 4px solid var(--navy); }
.warn { background: var(--clay-50); border-inline-start: 4px solid var(--clay); }
.table-wrap { overflow-x: auto; margin: 1.2em 0 1.4em; border-radius: var(--radius-sm); border: 1px solid var(--line); background: var(--white); }
table.data { width: 100%; border-collapse: collapse; font-size: .95rem; min-width: 480px; }
table.data th { background: var(--navy); color: #fff; font-weight: 700; text-align: start; padding: 12px 16px; }
table.data td { padding: 12px 16px; border-top: 1px solid var(--line); }
table.data tr:nth-child(even) td { background: var(--ivory); }
.review-line { margin-top: 2.6em; padding-top: 18px; border-top: 1px dashed var(--line-strong); font-size: .86rem; color: var(--ink-soft); line-height: 1.9; }

/* ---------- FAQ ---------- */
.faq-list { display: grid; gap: 12px; }
.faq-list details { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-sm); transition: border-color .3s, box-shadow .3s; overflow: hidden; }
.faq-list details[open] { border-color: rgba(172, 112, 46, .4); box-shadow: var(--shadow-sm); }
.faq-list summary { cursor: pointer; list-style: none; padding: 18px 22px; padding-inline-end: 60px; font-weight: 700; color: var(--navy-900); position: relative; line-height: 1.7; }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after {
  content: ''; position: absolute; inset-inline-end: 20px; top: 50%; width: 26px; height: 26px; margin-top: -13px; border-radius: 50%;
  background: var(--navy-50) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231F4667' stroke-width='2.4' stroke-linecap='round'%3E%3Cpath d='M12 6v12M6 12h12'/%3E%3C/svg%3E") center / 14px no-repeat;
  transition: transform .4s var(--ease), background-color .3s;
}
.faq-list details[open] summary::after { transform: rotate(135deg); background-color: var(--clay-50); }
.faq-list details > div { padding: 0 22px 18px; color: var(--ink-soft); }
.faq-list details > div p { margin: 0; }
.faq-list details::details-content { height: 0; transition: height .45s var(--ease), content-visibility .45s allow-discrete; }
.faq-list details[open]::details-content { height: auto; }

/* ---------- CTA ---------- */
.cta-box {
  position: relative; overflow: hidden; isolation: isolate; border-radius: var(--radius-lg); text-align: center;
  padding: clamp(40px, 6vw, 72px) clamp(20px, 5vw, 64px) clamp(90px, 10vw, 120px); color: rgba(255, 255, 255, .82);
  background:
    radial-gradient(600px 300px at 80% 0%, rgba(220, 171, 114, .35), transparent 60%),
    linear-gradient(150deg, var(--navy-900), var(--navy));
  box-shadow: var(--shadow-lg);
}
.cta-box::after {
  content: ''; position: absolute; inset-inline: 0; bottom: 0; height: 80px; z-index: -1; opacity: .9;
  background: linear-gradient(transparent, rgba(255, 255, 255, .06));
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 80' preserveAspectRatio='none'%3E%3Cpath d='M0 80V50l120-22 90 14 150-40 110 30 80-12 170 42 140-36 90 18 160-44 90 30v60z'/%3E%3C/svg%3E") bottom / 100% 100% no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 80' preserveAspectRatio='none'%3E%3Cpath d='M0 80V50l120-22 90 14 150-40 110 30 80-12 170 42 140-36 90 18 160-44 90 30v60z'/%3E%3C/svg%3E") bottom / 100% 100% no-repeat;
  background-color: rgba(255, 255, 255, .07);
}
.cta-box::before {
  content: ''; position: absolute; width: 200px; height: 150px; top: 24px; inset-inline-start: 24px; opacity: .08; z-index: -1;
  background: url('/images/logo-mark.svg') center / contain no-repeat; filter: brightness(0) invert(1);
}
.cta-box h2 { color: #fff; }
.cta-box p { max-width: 36em; margin-inline: auto; margin-bottom: 26px; }
.cta-box .hero-actions { justify-content: center; }

/* ---------- فرم ---------- */
.form-card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: clamp(22px, 4vw, 40px); box-shadow: var(--shadow); }
.form-field { margin-bottom: 18px; }
.form-field label, .field-label { display: block; font-weight: 700; margin-bottom: 8px; font-size: .95rem; color: var(--navy-900); }
.hint { font-weight: 400; color: var(--ink-soft); font-size: .84rem; }
.form-field input, .form-field select, .form-field textarea {
  width: 100%; font: inherit; color: var(--ink); background: var(--ivory); border: 1.5px solid var(--line); border-radius: 14px;
  padding: 13px 16px; min-height: 52px; transition: border-color .25s, box-shadow .25s, background .25s;
}
.form-field textarea { min-height: 96px; resize: vertical; }
.form-field input:focus, .form-field select:focus, .form-field textarea:focus { outline: none; border-color: var(--clay); background: #fff; box-shadow: 0 0 0 4px rgba(172, 112, 46, .15); }
.form-field input[aria-invalid="true"] { border-color: #c0392b; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; border: 0; padding: 0; margin: 0 0 18px; }
.chips legend { padding: 0; }
.chips label { position: relative; cursor: pointer; }
.chips input { position: absolute; opacity: 0; pointer-events: none; }
.chips span { display: inline-block; padding: 8px 16px; border-radius: 999px; border: 1.5px solid var(--line-strong); font-size: .9rem; font-weight: 500; transition: all .25s var(--ease); background: var(--white); }
.chips label:hover span { border-color: var(--clay); }
.chips input:checked + span { background: var(--navy); border-color: var(--navy); color: #fff; box-shadow: 0 8px 18px -10px rgba(31, 70, 103, .8); }
.chips input:focus-visible + span { outline: 3px solid var(--clay-400); outline-offset: 2px; }
.form-check { display: flex; gap: 10px; align-items: flex-start; font-size: .9rem; color: var(--ink-soft); margin: 6px 0 20px; cursor: pointer; }
.form-check input { width: 20px; height: 20px; accent-color: var(--clay); margin-top: 5px; flex-shrink: 0; }
.hp { position: absolute !important; inset-inline-start: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-msg { display: none; margin-top: 16px; padding: 14px 18px; border-radius: 14px; font-size: .95rem; border: 1px solid; }
.form-msg.show { display: block; animation: rise .5s var(--ease); }
.form-msg.ok { background: #eef6f0; border-color: #9cc8a8; color: #24573a; }
.form-msg.err { background: var(--clay-50); border-color: var(--clay-300); color: var(--clay-700); }
.btn[disabled] { opacity: .7; pointer-events: none; }
.btn .spinner { width: 18px; height: 18px; border: 2px solid rgba(255, 255, 255, .4); border-top-color: #fff; border-radius: 50%; animation: spin .8s linear infinite; display: none; }
.btn.loading .spinner { display: block; }

/* ---------- نقشه ---------- */
.map-embed { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); box-shadow: var(--shadow-sm); background: var(--navy-50); }
.map-embed iframe { display: block; }

/* ---------- مجله ---------- */
.post-card { padding: 0; display: flex; flex-direction: column; }
.post-card .thumb {
  aspect-ratio: 16 / 9; display: grid; place-items: center; color: #fff; position: relative; overflow: hidden;
  background: linear-gradient(150deg, var(--navy-900), var(--navy-600));
}
.post-card .thumb::after { content: ''; position: absolute; inset-inline: 0; bottom: 0; height: 40%; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 400 80' preserveAspectRatio='none'%3E%3Cpath fill='%23ffffff' fill-opacity='.08' d='M0 80V50l60-20 40 12 70-34 50 26 40-10 70 32 70-26v50z'/%3E%3C/svg%3E") bottom / 100% 100% no-repeat; }
.post-card .thumb svg { width: 56px; height: 56px; transition: transform .6s var(--ease); }
.post-card:hover .thumb svg { transform: scale(1.15) rotate(-6deg); }
.post-card:nth-child(3n+2) .thumb { background: linear-gradient(150deg, var(--clay-700), var(--clay-400)); }
.post-card:nth-child(3n+3) .thumb { background: linear-gradient(150deg, #33617f, var(--navy-900)); }
.post-card .body { padding: 22px 24px 24px; display: flex; flex-direction: column; flex: 1; }
.post-card time { font-size: .82rem; color: var(--clay); font-weight: 700; }
.post-card .card-link { margin-top: auto; padding-top: 12px; }

/* ---------- فوتر ---------- */
.site-footer { position: relative; background: var(--navy-950); color: rgba(255, 255, 255, .7); padding: 70px 0 calc(24px + env(safe-area-inset-bottom)); margin-top: 90px; font-size: .94rem; }
.footer-ridge { position: absolute; inset-inline: 0; top: -89px; height: 90px; pointer-events: none; }
.footer-ridge svg { width: 100%; height: 100%; fill: var(--navy-950); }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.3fr; gap: 36px; padding-bottom: 36px; }
.site-footer .brand, .site-footer .brand .mark { color: #fff; }
.site-footer .brand-text small { color: rgba(255, 255, 255, .5); }
.footer-about p { margin-top: 18px; line-height: 2; }
.footer-tag { color: var(--clay-300); font-weight: 700; font-size: .9rem; }
.site-footer h3 { color: #fff; font-size: 1rem; margin-bottom: 16px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 9px; }
.site-footer a { color: rgba(255, 255, 255, .72); }
.site-footer a:hover { color: var(--clay-300); }
.footer-contact li { display: flex; gap: 10px; align-items: flex-start; }
.footer-contact svg { width: 18px; height: 18px; color: var(--clay-300); flex-shrink: 0; margin-top: 5px; }
.footer-areas { border-top: 1px solid rgba(255, 255, 255, .1); padding: 16px 0; font-size: .85rem; color: rgba(255, 255, 255, .5); }
.footer-bottom { border-top: 1px solid rgba(255, 255, 255, .1); padding-top: 18px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; font-size: .84rem; color: rgba(255, 255, 255, .5); }
@media (max-width: 920px) { .footer-grid { grid-template-columns: 1fr 1fr; } .footer-about { grid-column: span 2; } }
@media (max-width: 560px) { .footer-grid { grid-template-columns: 1fr; } .footer-about { grid-column: auto; } }

/* ---------- نوار موبایل ---------- */
.mobile-bar { display: none; }
@media (max-width: 920px) {
  .mobile-bar {
    position: fixed; z-index: 90; inset-inline: 12px; bottom: calc(12px + env(safe-area-inset-bottom));
    display: grid; grid-template-columns: 1fr 1fr 1.4fr; gap: 6px; padding: 6px; border-radius: 22px;
    background: rgba(16, 42, 64, .88); backdrop-filter: blur(16px) saturate(1.4); -webkit-backdrop-filter: blur(16px) saturate(1.4);
    box-shadow: 0 18px 40px -12px rgba(11, 28, 44, .6); transition: transform .5s var(--ease);
  }
  .mobile-bar.hide { transform: translateY(140%); }
  .mobile-bar a { display: flex; align-items: center; justify-content: center; gap: 6px; min-height: 48px; border-radius: 16px; color: #fff; font-weight: 700; font-size: .9rem; }
  .mobile-bar a svg { width: 19px; height: 19px; }
  .mobile-bar .mb-book { background: linear-gradient(135deg, var(--clay-400), var(--clay)); }
  .site-footer { padding-bottom: calc(100px + env(safe-area-inset-bottom)); }
}

/* ---------- انیمیشن ورود با اسکرول ---------- */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .9s var(--ease), transform .9s var(--ease); transition-delay: var(--d, 0s); }
.reveal.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
  .emblem-svg .draw { stroke-dashoffset: 0; }
  .emblem-svg .fill, .emblem-svg .snow { opacity: 1; }
  .emblem-svg .arc { transform: none; }
}
@media print {
  .site-header, .mobile-bar, .site-footer, .cta-box, .sidebar, .scroll-progress { display: none !important; }
  .page-hero { color: #000; background: none; padding: 0; margin: 0; }
  .page-hero h1 { color: #000; }
}
