/* ═══════════════════════════════════════════════════════════
   components.css — کامپوننت‌های مشترک سایت و بلاگ.
   هر کامپوننت این‌جا باید تو هر دو طرف (Astro و وردپرس) یکسان
   رندر شه؛ هیچ کدوم نباید به فریم‌ورک وابسته باشه.
   ═══════════════════════════════════════════════════════════ */

/* ───────── دکمه ───────── */
.btn{
  display: inline-flex; align-items: center; justify-content: center; gap: var(--s2);
  padding: 13px var(--s5);
  border: 1px solid transparent;
  border-radius: var(--r-md);
  font-weight: 700;
  font-size: var(--t-base);
  text-decoration: none;
  cursor: pointer;
  transition: background-color var(--dur-tap) var(--ease-out), border-color var(--dur-tap) var(--ease-out),
    transform var(--dur-tap) var(--ease-out), box-shadow var(--dur-tap) var(--ease-out);
}
/* دکمه‌ی اصلی: سبز سیر گرادیانی با متن سفید — متن تیره رو زمرد روشن خوانا نبود (بازخورد کاربر)؛
   زمرد روشن فقط لهجه می‌مونه (حلقه‌ها، لینک رو تیره، نقطه‌ها) */
.btn-primary{
  background: linear-gradient(180deg, var(--brand), var(--brand-deep));
  color: #fff; border-color: rgba(255,255,255,.14);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.18), 0 10px 26px -12px rgba(18,115,90,.6);
}
.btn-primary:hover  { filter: brightness(1.08); color: #fff; }
@media (hover: hover) and (prefers-reduced-motion: no-preference){
  .btn-primary:hover, .btn-wa:hover, .btn-brass:hover, .btn-white:hover{
    transform: translateY(-1.5px);
    box-shadow: 0 8px 20px -6px rgba(12,29,24,.35);
  }
  .btn:active { transform: translateY(0); box-shadow: none; }
}
.btn-wa       { background: var(--wa); color: #fff; }
.btn-wa:hover { background: var(--brand-deep); color: #fff; }
.btn-ghost    { background: transparent; color: var(--ink); border-color: var(--line-input); }
.btn-ghost:hover { background: var(--surface); border-color: var(--ink-soft); color: var(--ink); }
/* دکمه‌ی کوچیک — کنش فرعی (مثل «برگرد») نباید هم‌وزن CTA اصلی دیده شه */
.btn-sm{ padding: 7px var(--s3); font-size: var(--t-sm); }
.btn-brass    { background: var(--brass); color: #2B2205; }
.btn-brass:hover { background: #B18E3F; color: #2B2205; }
.btn-white   { background: #fff; color: var(--brand); }
.btn-white:hover { background: var(--brand-tint); color: var(--brand-deep); }
.btn-outline { background: transparent; color: #fff; border-color: rgba(255,255,255,.45); }
.btn-outline:hover { background: rgba(255,255,255,.1); color: #fff; }
.btn-lg { padding: 16px var(--s6); font-size: var(--t-md); }
.btn-block { display: flex; width: 100%; }

/* آیکون تلفن رو دکمه‌های تماس — کاراکتر ☎ رو iOS ایموجی قرمز می‌شد؛ SVG ی خطی هم‌زبون بقیه‌ی آیکون‌ها */
.btn[href^="tel:"]::before{
  content: '';
  width: 17px; height: 17px; flex: none;
  background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M22 16.9v3a2 2 0 0 1-2.2 2 19.8 19.8 0 0 1-8.6-3.1 19.5 19.5 0 0 1-6-6A19.8 19.8 0 0 1 2.1 4.2 2 2 0 0 1 4.1 2h3a2 2 0 0 1 2 1.7c.13.96.36 1.9.7 2.8a2 2 0 0 1-.45 2.1L8.1 9.9a16 16 0 0 0 6 6l1.3-1.27a2 2 0 0 1 2.1-.45c.9.34 1.84.57 2.8.7A2 2 0 0 1 22 16.9Z'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M22 16.9v3a2 2 0 0 1-2.2 2 19.8 19.8 0 0 1-8.6-3.1 19.5 19.5 0 0 1-6-6A19.8 19.8 0 0 1 2.1 4.2 2 2 0 0 1 4.1 2h3a2 2 0 0 1 2 1.7c.13.96.36 1.9.7 2.8a2 2 0 0 1-.45 2.1L8.1 9.9a16 16 0 0 0 6 6l1.3-1.27a2 2 0 0 1 2.1-.45c.9.34 1.84.57 2.8.7A2 2 0 0 1 22 16.9Z'/%3E%3C/svg%3E") center / contain no-repeat;
}

/* ردیف CTA — رو موبایل دوتایی کنار هم (هم‌زبون نوار اکشن پایین)، نه پشته‌ی تمام‌عرض */
.hero-cta { display: flex; flex-wrap: wrap; gap: var(--s3); }
@media (max-width: 479px){
  .hero-cta { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s2); }
  .hero-cta .btn { padding-inline: var(--s2); font-size: var(--t-sm); white-space: nowrap; min-width: 0; }
}

/* ───────── هدر — شب‌سبز، یکپارچه با topbar و هیرو ───────── */
.site-header{
  background: var(--dark);
  border-block-end: 1px solid var(--line-dark);
  position: sticky; inset-block-start: 0; z-index: 40;
}
.header-inner{
  display: flex; align-items: center; gap: var(--s4);
  min-height: 66px;
}
.logo{
  display: inline-flex; align-items: center; gap: 10px;
  font-weight: 900; font-size: var(--t-lg);
  color: #fff; text-decoration: none; white-space: nowrap;
}
/* قانون عمومی a:hover تو base.css رنگ لینک رو سبز سیر می‌کنه؛ متن لوگو نباید موقع hover رنگ عوض کنه */
.logo:hover, .logo:focus-visible { color: #fff; }
.logo b { color: var(--em); font-weight: inherit; }
.logo small{
  display: block; font-size: 10.5px; font-weight: 500;
  color: var(--on-dark-faint); line-height: 1.2; margin-block-start: 1px;
}
/* ── لوگوی «آچارخور» — مهره‌ی گرادیانی با دهانه‌ی آچار + جرقه‌ی طلایی ── */
.logo-mark { flex: none; display: block; }
.logo-mark .lm-nut{
  fill: url(#pk-gB); stroke: url(#pk-gB);
  stroke-width: 2.6; stroke-linejoin: round;
}
.logo-mark .lm-spark { fill: var(--brass); }
/* دراور پنل روشنه — مهره‌ی زمرد سیر و جرقه‌ی برنجی سیرتر که رو سفید گم نشه */
.drawer .logo, .drawer .logo:hover, .drawer .logo:focus-visible { color: var(--ink); }
.drawer .logo b { color: var(--brand); }
.drawer .logo small { color: var(--ink-faint); }
.drawer .logo-mark .lm-nut { fill: url(#pk-gD); stroke: url(#pk-gD); }
.drawer .logo-mark .lm-spark { fill: #B8901E; }
@media (prefers-reduced-motion: no-preference){
  /* لود: مهره دو دندونه می‌چرخه و «سفت» می‌شه — دهانه با خودش می‌چرخه، جرقه بعدش روشن می‌شه */
  .logo-mark .lm-nut{
    transform-box: view-box; transform-origin: 50% 50%;
    transition: transform 550ms var(--ease-drawer);
    animation: lm-tighten 900ms var(--ease-drawer) backwards;
  }
  /* hover/focus: یه دندونه‌ی دیگه سفت می‌شه (شش‌ضلعی ۶۰ درجه تقارن داره) */
  .logo:hover .lm-nut, .logo:focus-visible .lm-nut { transform: rotate(60deg); }
  .logo-mark .lm-spark{
    transform-box: fill-box; transform-origin: center;
    animation: lm-spark-in 600ms var(--ease-drawer) 650ms backwards;
  }
  .logo:hover .lm-spark, .logo:focus-visible .lm-spark { animation: lm-spark-pulse 1.3s ease-in-out infinite; }
}
@keyframes lm-tighten{
  from { transform: rotate(-120deg); }
  78%  { transform: rotate(7deg); }
  to   { transform: rotate(0deg); }
}
@keyframes lm-spark-in{ from { opacity: 0; transform: scale(0); } }
@keyframes lm-spark-pulse{ 50% { transform: scale(1.45); opacity: .75; } }
.nav { display: none; }
@media (min-width: 900px){
  .nav { display: flex; align-items: center; gap: var(--s5); margin-inline-start: var(--s5); }
}
/* استایل لینک‌های سطح‌بالا تو بلاک «ناوبری با مگامنو» (nav-item) ــه؛
   قاعده‌ی عمومی .nav a ممنوع — مگامنو داخل .nav ــه و رنگ دکمه/لینک‌هاش رو خراب می‌کنه */

.header-actions { margin-inline-start: auto; display: flex; align-items: center; gap: var(--s3); }
.header-cta { display: none; }
@media (min-width: 900px){ .header-cta { display: inline-flex; } }

.burger{
  display: grid; place-items: center; width: 40px; height: 40px;
  background: rgba(255,255,255,.05); border: 1px solid var(--line-dark-strong); border-radius: var(--r-md);
}
.burger i{ display: block; width: 17px; height: 1.5px; background: #EAF2EE; box-shadow: 0 5px 0 #EAF2EE, 0 -5px 0 #EAF2EE; }
@media (min-width: 900px){ .burger { display: none; } }

/* ───────── نوار اکشن چسبان موبایل ───────── */
.action-bar{
  position: fixed; inset-inline: 0; inset-block-end: 0; z-index: 50;
  display: grid; grid-template-columns: 1fr 1fr; gap: var(--s2);
  padding: var(--s2) var(--s3);
  padding-block-end: calc(var(--s2) + env(safe-area-inset-bottom, 0px));
  background: var(--surface);
  border-block-start: 1px solid var(--line);
}
/* تک‌خط بمونه — دوخطی‌شدن دکمه نوار رو قدبلند می‌کنه و بیشتر از جبرانِ body کارت‌ها رو می‌پوشونه */
.action-bar .btn { padding-block: 12px; padding-inline: var(--s2); font-size: var(--t-sm); white-space: nowrap; min-width: 0; }
/* جا برای نوار چسبان — که آخر صفحه زیرش گم نشه؛ صفحات فرایندی (chrome-focus) نوار ندارن */
@media (max-width: 899px){
  body { padding-block-end: calc(68px + env(safe-area-inset-bottom, 0px)); }
  body.chrome-focus { padding-block-end: 0; }
}
/* شیشه‌ای — پشتش که اسکرول می‌شه محو دیده شه؛ بدون پشتیبانی، همون سطح مات می‌مونه */
@supports ((-webkit-backdrop-filter: blur(1px)) or (backdrop-filter: blur(1px))){
  .action-bar{
    background: color-mix(in srgb, var(--surface) 86%, transparent);
    -webkit-backdrop-filter: blur(14px);
    backdrop-filter: blur(14px);
  }
}
@media (min-width: 900px){ .action-bar { display: none; } }

/* ───────── جای عکس (placeholder صادقانه) ───────── */
.ph{
  position: relative; overflow: hidden;
  background:
    repeating-linear-gradient(135deg,
      rgba(18,115,90,.05) 0 8px, rgba(18,115,90,.09) 8px 16px),
    var(--brand-tint);
  display: grid; place-items: center; text-align: center;
}
.ph span{
  font-size: var(--t-xs); font-weight: 500; color: var(--brand);
  background: rgba(255,255,255,.82);
  padding: 5px 10px; border-radius: 100px;
  border: 1px solid rgba(18,115,90,.16);
  max-width: 88%;
}
.ph-4x3 { aspect-ratio: 4 / 3; }
.ph-16x9 { aspect-ratio: 16 / 9; }
.ph-1x1 { aspect-ratio: 1 / 1; }

/* ───────── باند آمار ───────── */
.metrics{
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  background: var(--line);
  gap: 1px;
  border-block: 1px solid var(--line);
}
@media (min-width: 720px){ .metrics { grid-template-columns: repeat(4, 1fr); } }
.metric{
  background: var(--surface);
  padding: var(--s5) var(--s3);
  text-align: center;
}
/* عدد درشتِ وزن‌نازک — پختگی به‌جای ضخامت (متریال شب‌سبز)؛ طلا فقط لهجه‌ی آخری */
.metric b{
  display: block;
  font-size: calc(var(--t-3xl) * 1.2); font-weight: 200; line-height: 1.25;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.02em;
}
/* روی کاغذ روشن می‌شینه، پس brass-deep نه brass — brass این‌جا 2.2 می‌داد و
   متن درشت هم ۳:۱ لازم داره. brass-deep دقیقاً برای همین ساخته شده بود. */
.metric:last-child b { color: var(--brass-deep); font-weight: 300; }
.metric b i { font-style: normal; font-size: 0.5em; font-weight: 700; margin-inline-start: 2px; }
.metric span{
  display: block; margin-block-start: var(--s2);
  font-size: var(--t-sm); color: var(--ink-soft);
}
/* ───────── شبکه‌ی خدمات — موبایل‌فرست: تک‌ستونه، بعد ۲ و ۳ ───────── */
.svc-grid{
  display: grid; gap: var(--s4);
  grid-template-columns: 1fr;
}
@media (min-width: 560px){ .svc-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 860px){ .svc-grid { grid-template-columns: repeat(3, 1fr); gap: var(--s5); } }

/* ── گونه‌ی «کارت‌لینک» — هر کارتی که کلش لینکه همین DNA رو داره:
      قاب r-lg، سایه‌ی نشسته، hover ی مرز سبز + لیفت. عضو جدید فقط کلاس card-link بگیره. ── */
.svc, .rel-card, .card-link{
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  text-decoration: none; color: inherit;
  box-shadow: var(--shadow-1);
  transition: border-color var(--dur-tap) var(--ease-out);
}
.svc:hover, .rel-card:hover, .card-link:hover { border-color: rgba(18,115,90,.35); color: inherit; }
.svc{
  overflow: hidden;
  display: flex; flex-direction: column;
  padding: var(--s5);
}
/* عکس تمام‌پهنای بالای کارت — لبه‌به‌لبه با margin منفی، گوشه‌ها هم‌راستای کارت */
.svc-card-photo{
  display: block;
  width: calc(100% + var(--s5) * 2); max-width: none;
  height: auto; /* بدون این، اتریبیوت height کارت رو قد می‌کشه و aspect-ratio بی‌اثر می‌شه */
  margin: calc(-1 * var(--s5)) calc(-1 * var(--s5)) var(--s4);
  aspect-ratio: 16 / 9; object-fit: cover;
  border-radius: calc(var(--r-lg) - 1px) calc(var(--r-lg) - 1px) 0 0;
  border-block-end: 1px solid var(--line);
}

/* chip آیکون خدمت — زمرد سیر روی tint (متریال شب‌سبز) */
.svc-chip{
  width: 50px; height: 50px; border-radius: var(--r-md); flex: none;
  background: var(--brand-tint); color: var(--em-deep);
  display: grid; place-items: center;
  margin-block-end: var(--s3);
}
.svc-chip svg { width: 26px; height: 26px; }
.svc-body { display: flex; flex-direction: column; gap: var(--s2); flex: 1; }
.svc h2, .svc h3{
  font-size: var(--t-md); font-weight: 700;
  display: flex; align-items: center; justify-content: space-between; gap: var(--s2);
}
/* فلش «برو» — فقط رو hover/focus پیدا می‌شه */
.svc h2::after, .svc h3::after{
  content: '←'; font-weight: 400; color: var(--brand);
  opacity: 0; translate: 5px 0;
  transition: opacity var(--dur-tap) var(--ease-out), translate var(--dur-tap) var(--ease-out);
}
.svc:hover :is(h2,h3)::after, .svc:focus-visible :is(h2,h3)::after { opacity: 1; translate: 0 0; }
@media (prefers-reduced-motion: no-preference){
  .svc, .rel-card, .card-link{
    transition: border-color var(--dur-tap) var(--ease-out),
      transform var(--dur-tap) var(--ease-out), box-shadow var(--dur-tap) var(--ease-out);
  }
  /* لیفت فقط جایی که hover واقعی هست — رو لمس، hover گیر می‌کنه و کارت «شناور» می‌مونه */
  @media (hover: hover){
    .svc:hover, .rel-card:hover, .card-link:hover { transform: translateY(-3px); box-shadow: var(--shadow-2); }
  }
  /* بازخورد لمس/کلیک برای همه */
  .svc:active, .rel-card:active, .card-link:active { transform: translateY(-1px) scale(.99); }
}
/* رو موبایل به جای گرید دو ستونه: کاروسل snap با کارت‌های بزرگ — حس اپ */
@media (max-width: 859px){
  .svc-snap{
    display: flex; gap: var(--s3);
    overflow-x: auto; overscroll-behavior-x: contain;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    margin-inline: calc(-1 * var(--s4));
    padding-inline: var(--s4);
    padding-block-end: var(--s2);
  }
  .svc-snap::-webkit-scrollbar { display: none; }
  .svc-snap > * { flex: 0 0 min(82%, 320px); scroll-snap-align: center; }
}
.svc .price{
  font-size: var(--t-sm); color: var(--ink-soft); margin-block-start: auto;
  padding-block-start: var(--s2); border-block-start: 1px dashed var(--line);
}
.svc .price b { color: var(--brass-deep); font-variant-numeric: tabular-nums; }

/* ───────── نوار برندها ───────── */
.brand-strip{
  display: grid; gap: 1px; background: var(--line);
  grid-template-columns: repeat(2, 1fr);
  border: 1px solid var(--line); border-radius: var(--r-md); overflow: hidden;
}
@media (min-width: 560px){ .brand-strip { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 720px){ .brand-strip { grid-template-columns: repeat(6, 1fr); } }
.brand-strip a{
  position: relative;
  background: var(--surface);
  display: grid; place-items: center;
  padding: var(--s4) var(--s2); min-height: 74px;
  text-decoration: none; color: var(--ink-soft);
  font-weight: 700; font-size: var(--t-sm);
  text-align: center;
  transition: background-color var(--dur-tap) var(--ease-out), color var(--dur-tap) var(--ease-out);
}
.brand-strip a:hover { background: var(--brand-tint); color: var(--brand); }
/* خط زیرین که از وسط رشد می‌کنه */
.brand-strip a::after{
  content: ''; position: absolute; inset-block-end: 0; inset-inline: 34%;
  height: 2px; border-radius: 2px; background: var(--brand);
  scale: 0 1;
  transition: scale var(--dur-tap) var(--ease-out);
}
.brand-strip a:hover::after, .brand-strip a:focus-visible::after { scale: 1 1; }
/* موبایل: سلول‌ها جمع‌تر که کل باند تو یه نگاه جا شه */
@media (max-width: 559px){
  .brand-strip a { min-height: 52px; padding: var(--s3) var(--s2); }
}

/* لوگوی برند — پیش‌فرض خاکستری آروم، رو hover رنگ اصلی برند */
.brand-logo{
  display: block; height: 24px; width: auto; max-width: 110px;
  filter: grayscale(1); opacity: .68;
  transition: filter var(--dur-tap) var(--ease-out), opacity var(--dur-tap) var(--ease-out);
}
a:hover .brand-logo, a:focus-visible .brand-logo { filter: none; opacity: 1; }
.brand-strip .brand-logo { margin-block-end: 6px; }
/* اسنوا عمودیه (نشان + متن) — با ارتفاع لوگوهای افقی ناخوانا می‌شه */
.brand-logo[src*='snowa'] { height: 36px; }
@media (max-width: 559px){
  .brand-strip .brand-logo { height: 18px; margin-block-end: 4px; }
  .brand-strip .brand-logo[src*='snowa'] { height: 28px; }
}
.brand-logo-card { height: 30px; margin-block-end: var(--s2); }
/* صفحه‌ی خود برند: لوگو رنگی و درشت کنار تیتر */
.brand-logo-hero { display: block; height: 40px; width: auto; max-width: 150px; }
@media (max-width: 759px){ .brand-logo-hero { height: 30px; } }

/* زوم آروم عکس کارت رو hover — فقط دیوایس ماوس‌دار و بدون کاهش حرکت */
@media (hover: hover) and (prefers-reduced-motion: no-preference){
  .svc-card-photo { transition: scale 450ms var(--ease-out); }
  .svc:hover .svc-card-photo { scale: 1.04; }
}

/* ───────── چیپ مناطق ───────── */
.chips { display: flex; flex-wrap: wrap; gap: var(--s2); }
.chip{
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--surface); border: 1px solid var(--line);
  border-radius: 100px; padding: 8px var(--s4);
  font-size: var(--t-sm); font-weight: 500; text-decoration: none; color: var(--ink);
}
.chip{
  transition: border-color var(--dur-tap) var(--ease-out), background-color var(--dur-tap) var(--ease-out),
    color var(--dur-tap) var(--ease-out);
}
.chip:hover { border-color: var(--brand); color: var(--brand); background: var(--brand-tint); }
.chip.is-home { background: var(--brand); color: #fff; border-color: var(--brand); }
/* چیپ کدی که خرابی نیست — برنجی، تا قاطی کدهای واقعی گم نشه.
   brass-deep رو brass-tint اندازه گرفته شد: ۵.۱۵ (بالای AA). */
.chip.is-calm{
  background: var(--brass-tint); border-color: var(--brass); color: var(--brass-deep);
}
.chip.is-calm:hover{ border-color: var(--brass-deep); background: var(--brass-tint); color: var(--brass-deep); }
.dx-codes.is-calm{ color: var(--ink-soft); }
.chip.is-home:hover { background: var(--brand-deep); color: #fff; }
.chip em{
  font-style: normal; color: var(--ink-soft); font-size: var(--t-xs);
  background: var(--surface-alt); border: 1px solid var(--line);
  padding: 1px 8px; border-radius: 100px;
}
.chip:hover em { background: var(--surface); }
.chip.is-home em { color: rgba(255,255,255,.85); background: rgba(255,255,255,.14); border-color: transparent; }
/* چیپ فعال (فیلتر دسته و…) — همون زبون is-home */
.chip[aria-current]{ background: var(--brand); color: #fff; border-color: var(--brand); }
.chip[aria-current] em{ color: rgba(255,255,255,.85); background: rgba(255,255,255,.14); border-color: transparent; }
.blog-cats{ margin-block-start: var(--s4); }

/* کارت پست تو لیست بلاگ — قبلاً این دو تا سایز تو index.php ی تم inline بود */
.post-grid .eyebrow { font-size: var(--t-xs); }
.post-grid .svc h2 { font-size: var(--t-md); }

/* ── لیست بلاگ رو موبایل: کارت افقی جمع — تراکم دوبرابر، اسکرول نصف ── */
@media (max-width: 599px){
  .post-grid .svc{
    display: grid; grid-template-columns: 112px minmax(0,1fr);
    gap: var(--s3); align-items: center;
    padding: var(--s3);
  }
  .post-grid .svc-card-photo{
    width: 112px; aspect-ratio: 16 / 11; height: auto;
    margin: 0; border-radius: var(--r-md);
    border: 1px solid var(--line);
  }
  .post-grid .svc-body{ gap: 3px; }
  .post-grid .svc h2{ font-size: var(--t-base); line-height: 1.55; }
  .post-grid .desc{
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
    overflow: hidden;
  }
  .post-grid .eyebrow{ margin-block-end: 2px; }
}

.seal{
  display: inline-flex; align-items: center; gap: 6px;
  border: 1px solid var(--brass); color: #6B5310; background: var(--brass-tint);
  border-radius: var(--r-sm); padding: 4px 10px;
  font-size: var(--t-xs); font-weight: 700;
}

/* ───────── نظر مشتری ───────── */
.reviews { display: grid; gap: var(--s4); grid-template-columns: 1fr; }
@media (min-width: 780px){ .reviews { grid-template-columns: repeat(3, 1fr); } }
.review{
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--r-lg); padding: var(--s5);
  box-shadow: var(--shadow-1);
  display: flex; flex-direction: column; gap: var(--s3);
}
.review p { font-size: var(--t-sm); line-height: 1.85; }
.review footer{
  display: flex; align-items: center; gap: var(--s3);
  padding-block-start: var(--s3); border-block-start: 1px solid var(--line);
  font-size: var(--t-xs); color: var(--ink-faint);
}
.review footer .ph { width: 34px; border-radius: 50%; flex: none; }
.review footer b { color: var(--ink); font-size: var(--t-sm); display: block; }

/* ───────── سایدبار چسبان (دسکتاپ) ───────── */
.with-aside { display: grid; gap: var(--s6); grid-template-columns: minmax(0, 1fr); }
@media (min-width: 980px){
  .with-aside { grid-template-columns: minmax(0,1fr) 310px; gap: var(--s7); align-items: start; }
  .aside { position: sticky; inset-block-start: 86px; }
}
/* موبایل: کارت aside ته صفحه می‌افتاد و بی‌خاصیت بود — action-bar چسبان همون CTA رو همیشه دم دسته */
@media (max-width: 979px){
  .aside { display: none; }
}
.card{
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--r-lg); padding: var(--s5);
  box-shadow: var(--shadow-1);
}
.card h2, .card h3 { font-size: var(--t-lg); margin-block-end: var(--s2); }
.card p { font-size: var(--t-sm); color: var(--ink-soft); margin-block-end: var(--s4); }
.card .btn + .btn { margin-block-start: var(--s2); }
/* تعهد برگشت تماس — فقط وقتی stats.callbackMinutes پره رندر می‌شه */
.callback-note{
  margin-block: var(--s3) 0; padding-block-start: var(--s3);
  border-block-start: 1px dashed var(--line);
  font-size: var(--t-xs); color: var(--ink-soft);
}

/* تو ستون کنار سایدبار، h2 ی بخش یه پله کوچیک‌تره — دیگه style ی inline لازم نیست */
.with-aside .section-head h2 { font-size: var(--t-xl); }

/* ───────── باکس CTA وسط مقاله ───────── */
.cta-inline{
  background: var(--brand-tint);
  border-inline-start: 3px solid var(--brand);
  border-radius: 0 var(--r-md) var(--r-md) 0;
  padding: var(--s4) var(--s5);
  display: flex; flex-wrap: wrap; gap: var(--s4); align-items: center;
  justify-content: space-between;
}
.cta-inline b { font-size: var(--t-md); }
/* موبایل: دکمه تمام‌عرض زیر متن */
@media (max-width: 599px){
  .cta-inline { display: block; }
  .cta-inline .btn { display: flex; width: 100%; margin-block-start: var(--s3); }
}
/* صفحه‌بندی وردپرس — لمس‌پذیر رو موبایل */
.pagination .nav-links{
  display: flex; flex-wrap: wrap; gap: var(--s2);
  margin-block-start: var(--s5);
}
.pagination .page-numbers{
  min-width: 42px; min-height: 42px;
  display: inline-grid; place-items: center;
  padding: 8px 14px;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md);
  color: var(--ink); text-decoration: none; font-weight: 600;
}
.pagination .page-numbers.current{ background: var(--brand); border-color: var(--brand); color: #fff; }
.pagination a.page-numbers:hover{ border-color: var(--brand); color: var(--brand); }
.cta-inline p { font-size: var(--t-sm); color: var(--ink-soft); }

/* ───────── جدول تعرفه ───────── */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--r-md); background: var(--surface); }
table.rates { border-collapse: collapse; width: 100%; min-width: 480px; }
table.rates th, table.rates td{
  text-align: start; padding: var(--s3) var(--s4);
  border-block-end: 1px solid var(--line); font-size: var(--t-sm);
}
table.rates th { background: var(--surface-alt); font-weight: 700; color: var(--ink-soft); font-size: var(--t-xs); }
table.rates td.n { font-variant-numeric: tabular-nums; font-weight: 700; white-space: nowrap; color: var(--brass-deep); }
table.rates tr:last-child td { border-block-end: 0; }
/* موبایل: جدول اسکرولی تجربه‌ی بدیه — هر ردیف یه کارت می‌شه:
   ستون اول (خدمت) تیتر، .n (هزینه) درشت و برند، ستون آخر توضیح کم‌رنگ */
@media (max-width: 599px){
  .table-wrap { border: 0; background: none; overflow: visible; }
  table.rates { min-width: 0; display: block; }
  table.rates thead { display: none; }
  table.rates tbody { display: grid; gap: var(--s3); }
  table.rates tr{
    display: block;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--r-md);
    padding: var(--s3) var(--s4);
  }
  table.rates td { display: block; border: 0; padding: 2px 0; }
  table.rates td:first-child { font-weight: 700; color: var(--ink); }
  table.rates td.n { font-size: var(--t-md); font-weight: 800; color: var(--brass-deep); white-space: normal; }
  table.rates td:last-child:not(.n) { color: var(--ink-soft); font-size: var(--t-xs); }
}

/* ───────── فوتر — شب‌سبز با هاله‌ی زمردی محو ───────── */
.site-footer{
  background:
    radial-gradient(640px 380px at 85% 0%, rgba(43,182,139,.10), transparent 70%),
    var(--dark);
  color: var(--on-dark-soft);
  padding-block: var(--s7) var(--s5);
  margin-block-start: var(--s7);
}
.site-footer .foot-h{
  margin: 0 0 var(--s3); font-size: var(--t-sm); color: #fff; font-weight: 700;
}
.site-footer ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: var(--s2); }
/* موبایل: لیست‌های لینک دوستونه شن که فوتر نصف کوتاه‌تر شه */
@media (max-width: 759px){
  .site-footer .footer-top > div:not(.footer-brand) ul{
    display: block;
    column-count: 2;
    column-gap: var(--s4);
  }
  .site-footer .footer-top > div:not(.footer-brand) li{
    break-inside: avoid;
    margin-block-end: var(--s2);
  }
}
.site-footer a { color: var(--on-dark-soft); text-decoration: none; font-size: var(--t-sm); }
.site-footer a:hover { color: #fff; }
.footer-bottom{
  margin-block-start: var(--s6); padding-block-start: var(--s4);
  border-block-start: 1px solid var(--line-dark);
  font-size: var(--t-xs); color: var(--on-dark-faint);
  display: flex; flex-wrap: wrap; gap: var(--s3); justify-content: space-between;
}

/* ═══════════════════════════════════════════════════════════
   هدر کامل — topbar + مگامنو + جستجوی کد ارور + دراور موبایل
   ═══════════════════════════════════════════════════════════ */

/* ── نوار بالایی ── */
.topbar{
  background: var(--dark); color: var(--on-dark-soft);
  font-size: var(--t-xs);
  border-block-end: 1px solid var(--line-dark);
}
.topbar-inner{
  display: flex; align-items: center; gap: var(--s4);
  min-height: 38px; flex-wrap: wrap;
}
.status{
  display: inline-flex; align-items: center; gap: 7px;
  font-weight: 700; color: #fff; white-space: nowrap;
}
.status-dot{
  width: 7px; height: 7px; border-radius: 50%; background: var(--em); flex: none;
  box-shadow: 0 0 0 3px rgba(43,182,139,.22);
}
.status.is-closed .status-dot { background: var(--brass); box-shadow: 0 0 0 3px rgba(200,162,75,.22); }
/* <small> ی توی topbar با ضریب پیش‌فرض مرورگر (~۰.۸۳) به فونت والدش ضرب می‌شد
   و به ۹.۲ پیکسل می‌رسید — عملاً ناخوانا. `inherit` نه یه عدد ثابت: خودِ topbar
   رو موبایل 11px و رو دسکتاپ t-xs ــه، پس عدد ثابت یکی از این دو رو خراب می‌کرد. */
.status small { font-size: inherit; font-weight: 400; color: var(--on-dark-soft); }
/* «پیام بذار» تنها راه تماس وقتیه که مغازه بسته‌ست، ولی ۳۰×۱۵ پیکسل بود.
   inline-block با padding عمودی هدف لمسی رو به حداقل قابل قبول می‌رسونه بدون
   این‌که ارتفاع خطِ topbar بشکنه (padding افقی صفر می‌مونه تا تو خط جا شه). */
.status small a{
  color: inherit; text-decoration: underline; text-underline-offset: 3px;
  display: inline-block; padding-block: 6px; min-height: 24px;
  /* z-index می‌مونه ولی تنها چیزی نیست که روش حساب می‌کنیم: اندازه‌گیری نشون
     داد سرریزِ پایین رو هدرِ چسبان می‌گیره و این عدد اون‌جا کاری نکرد. چیزی
     که واقعاً ۴۴ رو تضمین می‌کنه، قد کشیدنِ خودِ نوار تو حالت بسته‌ست. */
  position: relative; z-index: 41;
}
/* ناحیه‌ی لمسی ≥۴۴×۴۴ بدون اینکه یه پیکسل از چیدمان تکون بخوره — لینک خودش
   ۳۶×۳۲ بود، زیر کفِ لمس، و تو ساعت بسته مهم‌ترین اکشن صفحه‌ست.

   چرا لایه‌ی absolute و نه padding + margin منفی: این لینک تهِ یه خط متنه
   («… · پیام بذار»)، و margin ی منفیِ افقی خودش رو می‌کشه رو جداکننده — یعنی
   دقیقاً همون تغییر ظاهری که نباید بشه. لایه‌ی absolute هیچ فضایی اشغال
   نمی‌کنه، پس ارتفاع topbar و جای متن دست‌نخورده می‌مونه.

   top/left/translate عمداً فیزیکی‌ان نه منطقی: خودِ transform فیزیکیه، و
   این ترکیب تو RTL و LTR یه‌جور وسط‌چین می‌کنه. */
.status small a::after{
  content: ''; position: absolute;
  top: 50%; left: 50%; transform: translate(-50%, -50%);
  width: 100%; height: 100%; min-width: 44px; min-height: 44px;
}
.status small a:hover { color: #fff; }

.topbar-area{ display: none; }
@media (min-width: 760px){ .topbar-area { display: block; } }

.topbar-links{
  margin-inline-start: auto;
  display: flex; align-items: center; gap: var(--s4);
}
.topbar-links a{
  color: var(--on-dark-soft); text-decoration: none;
  display: inline-flex; align-items: center; gap: 5px;
}
.topbar-links a:hover { color: #fff; }
.topbar-links .sep { color: var(--line-dark-strong); }

/* موبایل: topbar تک‌خط و نازک — فقط وضعیت باز/بسته؛ لینک‌ها تو دراور و فوتر هستن.
   ⛔ این بلاک باید «بعد از» تعریف پایه‌ی .topbar-links بمونه — specificity برابره و ترتیب برنده‌ست */
@media (max-width: 759px){
  .topbar-links { display: none; }
  .topbar { font-size: 11px; }
  .topbar-inner { min-height: 32px; }
  /* تو حالت بسته یه لینکِ «پیام بذار» تو نوار میاد که مهم‌ترین اکشن اون ساعته
     و باید هدف لمسیِ ۴۴ داشته باشه. تو نوارِ ۳۲ پیکسلی ۴۴ جا نمی‌شه؛ سرریزش
     به پایین هم عملاً کار نکرد (اندازه‌گیری: گسترشِ پایین صفر — نقطه‌های زیر
     لبه‌ی نوار رو هدرِ چسبان می‌گیره). پس فقط تو همین حالت نوار قد می‌کشه تا
     ۴۴ کامل داخل خودش بشینه. حالت باز همون نوارِ نازکِ قبلیه. */
  .topbar-inner:has(.status.is-closed) { min-height: 44px; }
  .header-inner { min-height: 56px; }
  .logo { font-size: var(--t-md); gap: 8px; }
  .logo-mark { width: 32px; height: 32px; }
}

/* ── هدر اصلی: جمع‌شدن موقع اسکرول ── */
.site-header{ transition: box-shadow var(--dur-header) var(--ease-out); }
.site-header.is-stuck{ box-shadow: 0 10px 30px -12px rgba(0,0,0,.45); }
.site-header.is-stuck .header-inner { min-height: 58px; }
.header-inner { transition: min-height var(--dur-header) var(--ease-out); }

/* ── ناوبری با مگامنو ── */
.nav { position: static; }
.nav-item { position: static; }   /* تا .mega نسبت به .site-header تمام‌عرض شه */
/* رنگ‌ها روشن‌ان چون هدر شب‌سبزه — ink ی قدیمی رو زمینه‌ی تیره گم می‌شد */
.nav-item > a{
  display: inline-flex; align-items: center; gap: 5px;
  color: var(--on-brand); text-decoration: none;
  font-size: var(--t-sm); font-weight: 500;
  padding-block: var(--s3);
}
.nav-item > a:hover { color: #fff; }
.nav-item > a .caret{
  width: 0; height: 0; flex: none;
  border-inline: 3.5px solid transparent;
  border-block-start: 4px solid var(--on-dark-faint);
  transition: transform var(--dur-mega) var(--ease-out);
}
.nav-item:hover > a .caret, .nav-item:focus-within > a .caret { transform: rotate(180deg); }

.mega{
  position: absolute; inset-inline: 0; inset-block-start: 100%;
  background: var(--surface);
  border-block-end: 1px solid var(--line);
  box-shadow: var(--shadow-3);
  padding-block: var(--s6);
  opacity: 0; visibility: hidden; transform: translateY(-6px);
  transition: opacity var(--dur-mega) var(--ease-out), transform var(--dur-mega) var(--ease-out), visibility var(--dur-mega);
  z-index: 45;
}
.nav-item:hover .mega, .nav-item:focus-within .mega{
  opacity: 1; visibility: visible; transform: translateY(0);
}
.mega-inner{
  display: grid; gap: var(--s5);
  grid-template-columns: 1.1fr 1fr 1.1fr 0.95fr;
}
.mega .mega-h{
  margin: 0 0 var(--s3); font-size: var(--t-xs); font-weight: 700;
  color: var(--ink-faint);
}
.mega ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 2px; }
.mega ul a{
  display: block; padding: 7px var(--s2);
  margin-inline: calc(var(--s2) * -1);
  border-radius: var(--r-sm);
  font-size: var(--t-sm); color: var(--ink); text-decoration: none;
}
.mega ul a:hover { background: var(--brand-tint); color: var(--brand); }
.mega ul a em{
  font-style: normal; color: var(--ink-faint); font-size: var(--t-xs);
  margin-inline-start: 5px;
}
.mega-promo{
  background: var(--brand); color: var(--on-brand);
  border-radius: var(--r-md); padding: var(--s4);
  display: flex; flex-direction: column; gap: var(--s2);
}
.mega-promo b { color: #fff; font-size: var(--t-base); }
.mega-promo p { font-size: var(--t-xs); color: rgba(242,247,245,.78); line-height: 1.7; }
.mega-promo .btn { margin-block-start: auto; }

/* ── جستجوی کد ارور تو هدر ── */
.hsearch { display: none; position: relative; }
@media (min-width: 1080px){ .hsearch { display: block; } }
.hsearch input{
  font: inherit; font-size: var(--t-sm);
  width: 190px; padding-block: 9px;
  padding-inline-start: var(--s4); padding-inline-end: 34px;
  border: 1px solid var(--line-dark-strong); border-radius: 100px;
  background: rgba(255,255,255,.06); color: #EAF2EE;
  transition: width var(--dur-header) var(--ease-out), border-color var(--dur-tap) var(--ease-out), background-color var(--dur-tap) var(--ease-out);
}
.hsearch input::placeholder { color: rgba(234,242,238,.5); }
.hsearch input:focus{ width: 240px; background: rgba(255,255,255,.1); border-color: var(--em); outline: none; }

/* ── بلوک تلفن ── */
.header-phone{
  display: none; text-decoration: none; text-align: start; line-height: 1.2;
  padding-inline-end: var(--s4);
  border-inline-end: 1px solid var(--line-dark-strong);
}
@media (min-width: 760px){ .header-phone { display: block; } }
.header-phone b{
  display: block; font-size: var(--t-md); color: #fff;
  font-weight: 900;
}
.header-phone small{ display: block; color: var(--on-dark-faint); font-size: 11px; margin-block-start: 2px; }
.header-phone:hover b { color: var(--em); }

/* ── دراور موبایل ── */
.drawer{
  position: fixed; inset: 0; z-index: 60;
  visibility: hidden;
  /* بدون این، بلاک reduced-motion (transition-duration ی سراسری با property ی پیش‌فرض all)
     رو تغییر visibility هم transition می‌سازه و focus ی لحظه‌ی باز شدن به عنصر hidden می‌خوره */
  transition: none;
}
.drawer.is-open { visibility: visible; }
.drawer-backdrop{
  position: absolute; inset: 0;
  background: rgba(12,29,24,.55);
  opacity: 0; transition: opacity var(--dur-drawer) var(--ease-out);
}
.drawer.is-open .drawer-backdrop { opacity: 1; }
.drawer-panel{
  position: absolute; inset-block: 0; inset-inline-end: 0;
  width: min(340px, 88vw);
  background: var(--surface);
  display: flex; flex-direction: column;
  transform: translateX(-100%);
  transition: transform var(--dur-drawer) var(--ease-drawer);
  overflow-y: auto;
  overscroll-behavior: contain; /* اسکرول دراور به body سرایت نکنه */
}
.drawer.is-open .drawer-panel { transform: translateX(0); }
.drawer-head{
  display: flex; align-items: center; gap: var(--s3);
  padding: var(--s4); border-block-end: 1px solid var(--line);
  position: sticky; inset-block-start: 0; background: var(--surface); z-index: 2;
}
.drawer-close{
  margin-inline-start: auto;
  width: 38px; height: 38px; display: grid; place-items: center;
  background: none; border: 1px solid var(--line); border-radius: var(--r-md);
  font-size: 18px; color: var(--ink-soft); cursor: pointer; line-height: 1;
}
.drawer-cta{ display: grid; grid-template-columns: 1fr 1fr; gap: var(--s2); padding: var(--s4); }
/* سرچ دراور — تنها راه سرچ رو موبایل */
.drawer-search{
  display: flex; gap: var(--s2);
  padding: 0 var(--s4) var(--s4);
}
.drawer-search input{
  flex: 1; min-width: 0;
  font: inherit; font-size: var(--t-sm); color: var(--ink);
  background: var(--surface-alt);
  border: 1px solid var(--line-input); border-radius: var(--r-md);
  padding: 9px var(--s3);
}
.drawer-search input:focus{ outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-tint); }
.drawer-search .btn{ padding: 9px var(--s4); font-size: var(--t-sm); }
.drawer-body { padding: 0 var(--s4) var(--s6); }
.drawer-body details{ border-block-end: 1px solid var(--line); }
.drawer-body summary{
  list-style: none; cursor: pointer;
  padding: var(--s4) 0; font-weight: 700; font-size: var(--t-base);
  display: flex; align-items: center; justify-content: space-between;
}
.drawer-body summary::-webkit-details-marker { display: none; }
.drawer-body summary::after{
  content: "+"; color: var(--ink-faint); font-weight: 400; font-size: 18px;
}
.drawer-body details[open] summary::after { content: "−"; }
.drawer-body details ul{
  list-style: none; margin: 0; padding: 0 0 var(--s3);
  display: flex; flex-direction: column;
}
/* هدف لمسی: این لینک‌ها inline بودن و ۲۲ پیکسل ارتفاع می‌گرفتن — زیر حداقل
   ۲۴ پیکسلِ WCAG 2.5.8 و خیلی کمتر از ۶۱ پیکسلِ لینک‌های سطح بالای همین دراور.
   روی موبایل اندازه گرفته شد، چشمی معلوم نبود. block + padding درستش می‌کنه. */
.drawer-body details ul a{
  display: block; padding: 9px 0;
  font-size: var(--t-sm); color: var(--ink-soft); text-decoration: none;
}
.drawer-body details ul a:hover { color: var(--brand); }
.drawer-body > a.flat{
  display: block; padding: var(--s4) 0;
  border-block-end: 1px solid var(--line);
  font-weight: 700; font-size: var(--t-base);
  color: var(--ink); text-decoration: none;
}
.drawer-foot{
  margin-block-start: auto; padding: var(--s5) var(--s4);
  background: var(--surface-alt); border-block-start: 1px solid var(--line);
  font-size: var(--t-sm); color: var(--ink-soft); line-height: 1.9;
}
.drawer-foot b { color: var(--ink); display: block; }

/* ═══════════════════════════════════════════════════════════
   باند CTA + فوتر کامل
   ═══════════════════════════════════════════════════════════ */
.cta-band{
  background:
    radial-gradient(560px 360px at 12% 0%, rgba(43,182,139,.15), transparent 70%),
    var(--dark);
  color: var(--on-brand);
}
.cta-band-inner{
  padding-block: var(--s7);
  display: flex; flex-wrap: wrap; gap: var(--s5);
  align-items: center; justify-content: space-between;
}
.cta-band h2 { color: #fff; font-size: var(--t-xl); max-width: 20ch; }
.cta-band p{
  margin-block-start: var(--s2);
  color: rgba(242,247,245,.8); font-size: var(--t-base); max-width: 46ch;
}
.cta-band .acts { display: flex; flex-wrap: wrap; gap: var(--s3); }

.site-footer { margin-block-start: 0; padding-block: var(--s8) var(--s5); }
.footer-top{
  display: grid; gap: var(--s6);
  grid-template-columns: 1fr;
  padding-block-end: var(--s6);
  border-block-end: 1px solid var(--line-dark);
}
@media (min-width: 700px){ .footer-top { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px){ .footer-top { grid-template-columns: 1.5fr 1fr 1fr 1fr 1fr; gap: var(--s5); } }

.footer-brand .mark{
  font-size: var(--t-xl); font-weight: 900; color: #fff;
  line-height: 1;
}
.footer-brand .mark span { color: var(--em); }
.footer-brand .tag{
  font-size: var(--t-sm); color: var(--on-dark-faint); margin-block-start: 6px;
  padding-block-end: var(--s4);
}
.footer-nap{ font-size: var(--t-sm); line-height: 1.95; }
.footer-nap b { color: #fff; }
.footer-nap a { color: var(--on-dark-soft); text-decoration: none; }
.footer-nap a:hover { color: #fff; }
.footer-nap .row{ display: flex; gap: var(--s2); }
.footer-nap .row .k{ color: var(--on-dark-faint); flex: none; min-width: 3.4em; }

.hours { margin-block-start: var(--s4); font-size: var(--t-sm); }
.hours .h-row{
  display: flex; justify-content: space-between; gap: var(--s4);
  padding-block: 5px;
  border-block-end: 1px solid var(--line-dark);
}
.hours .h-row:last-child { border-block-end: 0; }
.hours .h-row.today { color: #fff; font-weight: 700; }
.hours .h-row.today .dot{
  display: inline-block; width: 5px; height: 5px; border-radius: 50%;
  background: var(--em); margin-inline-end: 6px; vertical-align: middle;
}
.hours .n { font-variant-numeric: tabular-nums; }

.footer-social{ display: flex; gap: var(--s2); margin-block-start: var(--s5); flex-wrap: wrap; }
.footer-social a{
  display: inline-flex; align-items: center; gap: 6px;
  border: 1px solid var(--line-dark-strong); border-radius: 100px;
  padding: 6px 13px; font-size: var(--t-xs); color: var(--on-dark-soft); text-decoration: none;
}
.footer-social a:hover { border-color: var(--em); color: #fff; }

.footer-badges{
  display: flex; flex-wrap: wrap; gap: var(--s3);
  padding-block: var(--s5);
  border-block-end: 1px solid var(--line-dark);
}
.fbadge{
  display: inline-flex; align-items: center; gap: var(--s2);
  background: var(--dark-3); border: 1px solid var(--line-dark-strong); border-radius: var(--r-md);
  padding: 9px var(--s4); font-size: var(--t-xs); color: var(--on-dark-soft);
}
.fbadge b { color: #fff; }
.fbadge.is-brass { border-color: rgba(200,162,75,.4); background: rgba(200,162,75,.1); }
.fbadge.is-brass b { color: var(--brass); }

/* نمادهای اعتماد (اینماد/ساماندهی) — کد embed پنل داخل .trust-seal می‌شینه */
.footer-trust{
  display: flex; flex-wrap: wrap; gap: var(--s3); align-items: center;
  padding-block: var(--s4);
  border-block-end: 1px solid var(--line-dark);
}
.footer-trust .trust-seal{
  background: #fff; border-radius: var(--r-md); padding: 6px;
  line-height: 0;
}
.footer-trust .trust-seal img { height: 68px; width: auto; display: block; }

.footer-bottom{
  margin-block-start: var(--s5); padding-block-start: 0; border-block-start: 0;
  display: flex; flex-wrap: wrap; gap: var(--s3) var(--s5);
  justify-content: space-between; align-items: center;
  font-size: var(--t-xs); color: var(--on-dark-faint);
}
.footer-bottom nav { display: flex; flex-wrap: wrap; gap: var(--s4); }


/* پرش به محتوا — برای کاربر کیبورد و screen reader.
   مخفی‌شدن با transform به بالا، نه inset-inline-start:-9999px — اون تو RTL یعنی right:-9999
   و المان از سمت راست بیرون می‌مونه؛ سرریز block-start هیچ‌وقت scrollable نیست و امنه */
.skip-link{
  position: absolute; inset-inline-start: 0; inset-block-start: 0; z-index: 100;
  transform: translateY(-150%);
  background: var(--brand); color: #fff; padding: 12px var(--s5);
  border-radius: 0 0 var(--r-md) 0; font-weight: 700; text-decoration: none;
}
.skip-link:focus{ transform: none; color: #fff; }

/* دکمه‌ی جستجو */
.hsearch .icon{
  position: absolute; inset-inline-end: 8px; inset-block-start: 50%;
  transform: translateY(-50%);
  background: none; border: 0; cursor: pointer;
  /* رو هدر تیره نشسته — ink-faint توکنِ سطح روشنه و این‌جا 3.62 می‌داد */
  color: var(--on-dark-soft); font-size: 15px; line-height: 1;
  padding: 4px 6px; border-radius: var(--r-sm);
  /* WCAG 2.2 §2.5.8: هدف لمسی حداقل ۲۴×۲۴. با فونت ۱۵px و padding ی ۴px
     ارتفاع واقعی ۲۳px می‌شد — یه پیکسل کم. min-size ناحیه‌ی لمس رو تضمین
     می‌کنه بدون اینکه اندازه‌ی خودِ آیکون عوض شه (دکمه absolute و وسط‌چینه،
     پس چیدمان هم تکون نمی‌خوره). */
  min-inline-size: 24px; min-block-size: 24px;
  display: inline-flex; align-items: center; justify-content: center;
}
.hsearch .icon:hover { color: var(--brand); }

/* صفحه‌ی جاری تو منو */
.nav-item > a[aria-current="page"]{ color: var(--em); font-weight: 700; }

/* ───────── باند آمار — روی کاغذ گرم با جداکننده‌ی خطی (شب‌سبز) ───────── */
.metric-band { background: var(--ground); }
.metric-band .metrics { background: transparent; border-block: 0; gap: 0; }
.metric-band .metric { background: transparent; position: relative; }
.metric-band .metric + .metric::before{
  content: ""; position: absolute; inset-inline-start: 0; inset-block: 18%;
  width: 1px; background: var(--line);
}
.metric-band .metric span { color: var(--ink-soft); }

/* ───────── باند تعهدات — جای باند آمار تا وقتی عدد تاییدشده نداریم ───────── */
.pledge-band{
  background: var(--surface-alt);
  border-block: 1px solid var(--line);
}
.pledge-row{
  display: grid; grid-template-columns: 1fr 1fr;
  gap: var(--s2) var(--s4);
  padding-block: var(--s4);
  font-size: var(--t-sm); font-weight: 600; color: var(--ink-soft);
}
@media (min-width: 760px){
  .pledge-row{ grid-template-columns: repeat(4, auto); justify-content: space-between; padding-block: var(--s4); }
}
.pledge-row span{ display: inline-flex; align-items: baseline; gap: 7px; }
.pledge-row i{ font-style: normal; color: var(--brand); font-weight: 900; }

/* ───────── کارت متخصص — مشترک بین هاب تیم و سکشن خونه ───────── */
.tech-grid{
  display: grid; gap: var(--s4);
  grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
  max-width: 680px;
}
.tech-grid-home{ max-width: none; grid-template-columns: repeat(2, 1fr); }
/* شش نفرن: دسکتاپ ۳×۲، نه ۴+۲ با دو جای خالی */
@media (min-width: 760px){ .tech-grid-home{ grid-template-columns: repeat(3, 1fr); } }
.tech-card{ display: block; padding: var(--s4); }
.tech-photo{
  width: 100%; aspect-ratio: 1 / 1; object-fit: cover;
  border-radius: var(--r-md);
  margin-block-end: var(--s3);
}
.tech-card b{ display: block; font-size: var(--t-base); }
.tech-role{
  display: block; margin-block-start: 3px;
  font-size: var(--t-xs); color: var(--ink-soft); line-height: 1.8;
}
.tech-areas{
  display: block; margin-block-start: var(--s2);
  font-size: var(--t-xs); color: var(--brass-deep); font-weight: 600;
}

/* ردیف معرفی آدم (صفحات خدمت/منطقه) — عکس گرد + اسم، لینکی به پروفایل */
.person-row{ display: flex; flex-wrap: wrap; gap: var(--s3); }
.person-chip{
  display: inline-flex; align-items: center; gap: var(--s3);
  background: var(--surface); border: 1px solid var(--line);
  border-radius: 100px; padding: 6px var(--s4) 6px 8px;
  text-decoration: none; color: inherit;
  box-shadow: var(--shadow-1);
  transition: border-color var(--dur-tap) var(--ease-out);
}
.person-chip:hover{ border-color: rgba(18,115,90,.35); color: inherit; }
.person-chip img{
  width: 40px; height: 40px; border-radius: 50%; object-fit: cover; flex: none;
}
.person-chip b{ display: block; font-size: var(--t-sm); line-height: 1.5; }
.person-chip small{ display: block; font-size: var(--t-xs); color: var(--ink-soft); line-height: 1.5; }

/* ناوبری پست قبلی/بعدی ته مقاله */
.post-nav{
  display: grid; gap: var(--s3);
  grid-template-columns: 1fr;
  margin-block-start: var(--s6);
  max-width: 68ch;
}
@media (min-width: 600px){ .post-nav{ grid-template-columns: 1fr 1fr; } }
.post-nav a{
  display: block; padding: var(--s4);
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--r-lg); box-shadow: var(--shadow-1);
  text-decoration: none; color: inherit;
  transition: border-color var(--dur-tap) var(--ease-out);
}
.post-nav a:hover{ border-color: rgba(18,115,90,.35); }
.post-nav .pn-lbl{ display: block; font-size: var(--t-xs); color: var(--ink-faint); margin-block-end: 4px; }
.post-nav .pn-t{ font-size: var(--t-sm); font-weight: 700; line-height: 1.7; }
.post-nav .is-next{ text-align: end; }

/* دکمه‌ی برگشت به بالا — بعد از دو صفحه اسکرول پیداش می‌شه (JS ی فوتر) */
.to-top{
  position: fixed; z-index: 45;
  inset-inline-start: 14px;
  inset-block-end: calc(var(--bar-h) + env(safe-area-inset-bottom, 0px) + 14px);
  width: 42px; height: 42px;
  display: grid; place-items: center;
  background: var(--surface); color: var(--ink-soft);
  border: 1px solid var(--line-strong); border-radius: 50%;
  box-shadow: var(--shadow-3);
  text-decoration: none; font-size: 18px;
  opacity: 0; visibility: hidden; translate: 0 8px;
  transition: opacity var(--dur-tap) var(--ease-out), visibility var(--dur-tap), translate var(--dur-tap) var(--ease-out);
}
.to-top.is-vis{ opacity: 1; visibility: visible; translate: 0 0; }
.to-top:hover{ color: var(--brand); border-color: var(--brand); }
@media (min-width: 900px){ .to-top{ inset-block-end: 22px; } }

/* لینک «بیشتر» زیر سکشن */
.more-row{ margin-block-start: var(--s4); font-size: var(--t-sm); }

/* ───────── شرح کوتاه تو کارت خدمت ───────── */
.svc .desc { font-size: var(--t-sm); color: var(--ink-soft); line-height: 1.7; }

/* ───────── fallback بدون JS برای دراور — با :target ───────── */
.drawer:target { visibility: visible; }
.drawer:target .drawer-backdrop { opacity: 1; }
.drawer:target .drawer-panel { transform: translateX(0); }
.drawer-backdrop { display: block; }
a.drawer-backdrop, a.burger { -webkit-tap-highlight-color: transparent; }

/* ───────── breadcrumb ───────── */
.crumbs{
  display: flex; flex-wrap: wrap; align-items: center; gap: var(--s2);
  list-style: none; margin: 0; padding: 0;
  font-size: var(--t-xs); color: var(--ink-faint);
}
.crumbs a { color: var(--ink-soft); text-decoration: none; }
.crumbs a:hover { color: var(--brand); }
.crumbs li:not(:last-child)::after { content: "‹"; margin-inline-start: var(--s2); color: var(--line-strong); }
.crumbs [aria-current] { color: var(--ink); font-weight: 500; }

/* ───────── سر صفحه‌ی داخلی ───────── */
.page-head, .post-head{
  position: relative; overflow: hidden;
  background:
    radial-gradient(720px 340px at 88% -30%, var(--brand-tint) 0%, transparent 72%),
    radial-gradient(420px 260px at 4% 110%, rgba(200,162,75,.12), transparent 70%),
    linear-gradient(180deg, var(--surface), var(--surface-alt));
  border-block-end: 1px solid var(--line);
  padding-block: var(--s6);
}
/* همون شبکه‌ی نقطه‌ای هیرو — زبون بصری یکدست تو کل لندینگ‌ها */
.page-head::before, .post-head::before{
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background-image: radial-gradient(rgba(18,115,90,.16) 1.1px, transparent 1.7px);
  background-size: 22px 22px;
  -webkit-mask-image: radial-gradient(560px 340px at 82% 0%, #000 0%, transparent 74%);
  mask-image: radial-gradient(560px 340px at 82% 0%, #000 0%, transparent 74%);
}
.page-head .wrap, .post-head .wrap { position: relative; }
.page-head .crumbs, .post-head .crumbs { margin-block-end: var(--s4); }
.page-head .lede, .post-head .lede{
  margin-block-start: var(--s3);
  color: var(--ink-soft); font-size: var(--t-md); max-width: 60ch;
}
/* ردیف تیتر با نشان آیکون خدمت */
.page-head-top { display: flex; align-items: center; gap: var(--s4); }
.page-ico{
  flex: none; width: 56px; height: 56px; border-radius: var(--r-lg);
  background: var(--brand); color: #fff;
  display: grid; place-items: center;
  box-shadow: 0 12px 26px -12px rgba(18,115,90,.55);
}
.page-ico svg { width: 30px; height: 30px; }
/* چیپ‌های تعهد — فقط ادعاهایی که همه‌جای سایت هستن */
.page-meta { display: flex; flex-wrap: wrap; gap: var(--s2); margin-block-start: var(--s4); }
.page-meta span{
  display: inline-flex; align-items: center; gap: 6px;
  font-size: var(--t-xs); font-weight: 600; color: var(--brand-deep);
  background: var(--brand-tint); border: 1px solid rgba(18,115,90,.16);
  padding: 5px 12px; border-radius: 100px;
}
.page-meta span::before { content: '✓'; font-weight: 900; color: var(--brand); }
/* موبایل: سر صفحه فشرده — که تیتر و تعهدها و CTA تو نگاه اول جا شن */
@media (max-width: 759px){
  .page-head, .post-head { padding-block: var(--s5); }
  .page-head .crumbs, .post-head .crumbs { margin-block-end: var(--s3); }
  .page-head-top { gap: var(--s3); }
  .page-ico { width: 44px; height: 44px; border-radius: var(--r-md); }
  .page-ico svg { width: 24px; height: 24px; }
  .page-head .lede { margin-block-start: var(--s2); font-size: var(--t-base); }
  .page-meta { margin-block-start: var(--s3); }
}

/* ───────── پست بلاگ ───────── */
.post-head .post-meta{
  display: flex; align-items: center; flex-wrap: wrap;
  gap: var(--s2) var(--s3);
  margin-block-end: var(--s3);
  font-size: var(--t-sm); color: var(--ink-faint);
}
.post-head .post-meta .chip { padding-block: 5px; font-size: var(--t-xs); }
.post-head .pm-sep { color: var(--line-strong); }
.post-head h1 { max-width: 24ch; }

/* فهرست مطلب — بسته شروع می‌شه، بدون JS */
.toc{
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--r-md);
  margin-block-end: var(--s5);
  max-width: 68ch;
}
.toc summary{
  list-style: none; cursor: pointer;
  padding: var(--s3) var(--s4);
  font-weight: 700; font-size: var(--t-sm);
  display: flex; align-items: center; justify-content: space-between; gap: var(--s3);
}
.toc summary::-webkit-details-marker { display: none; }
.toc summary::after{ content: "+"; color: var(--ink-faint); font-size: 16px; flex: none; }
.toc[open] summary::after{ content: "−"; }
.toc ol{
  list-style: none; margin: 0;
  padding: 0 var(--s4) var(--s4);
  display: grid; gap: var(--s2);
  counter-reset: toc;
}
.toc li{
  counter-increment: toc;
  display: flex; gap: var(--s2); align-items: baseline;
  font-size: var(--t-sm);
}
.toc li::before{
  content: counter(toc, persian);
  color: var(--em-deep); font-weight: 700; font-size: var(--t-xs);
  min-width: 1.2em;
}
.toc a { color: var(--ink-soft); text-decoration: none; }
.toc a:hover { color: var(--brand); }

/* بدنه: نشان زمردی بالای هر h2 + جا برای هدر چسبان موقع پرش لنگر */
.post-body h2{
  position: relative;
  padding-block-start: var(--s3);
  scroll-margin-block-start: 76px;
}
.post-body h2::before{
  content: ""; position: absolute;
  inset-block-start: 0; inset-inline-start: 0;
  width: 28px; height: 3px; border-radius: 2px;
  background: var(--em-deep);
}

/* نوار پیشرفت مطالعه — بالای همه‌چیز، از راست پر می‌شه */
.read-progress{
  position: fixed; inset-block-start: 0; inset-inline: 0;
  height: 3px; z-index: 70; pointer-events: none;
}
.read-progress i{
  display: block; height: 100%;
  background: var(--em);
  transform: scaleX(0); transform-origin: right center;
}

/* قدم‌های عیب‌یابی — «<p><strong>۱. …» تو رندر کارت می‌شه (inc/post-extras.php) */
.steps{ display: grid; gap: var(--s3); }
.post-body p.step{
  display: flex; gap: var(--s3); align-items: flex-start;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: var(--s4);
  margin: 0;
}
.step-n{
  flex: none; width: 34px; height: 34px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--brand-tint); color: var(--brand-deep);
  font-weight: 800; font-size: var(--t-md);
  margin-block-start: 2px;
}
.step-t{ line-height: 1.85; }
.step-t b{ color: var(--ink); }

/* فهرست سایدبار با scrollspy — بخش جاری روشن */
.toc-side{ margin-block-end: var(--s3); }
.toc-side b{ display: block; font-size: var(--t-sm); margin-block-end: var(--s3); }
.toc-side ol{
  list-style: none; margin: 0; padding: 0;
  display: grid; gap: 2px;
}
.toc-side a{
  display: block; position: relative;
  padding: 6px var(--s3);
  margin-inline-start: calc(-1 * var(--s2));
  border-radius: var(--r-sm);
  font-size: var(--t-sm); color: var(--ink-soft); text-decoration: none;
  border-inline-start: 2px solid transparent;
}
.toc-side a:hover{ color: var(--brand); background: var(--brand-tint); }
.toc-side a.is-cur{
  color: var(--brand-deep); font-weight: 700;
  border-inline-start-color: var(--em-deep);
  background: var(--brand-tint);
}

/* ردیف «بفرستش» */
.share-row{
  display: flex; flex-wrap: wrap; align-items: center; gap: var(--s2);
  margin-block-start: var(--s5);
  max-width: 68ch;
}
.share-lbl{ font-size: var(--t-sm); color: var(--ink-faint); margin-inline-end: var(--s2); }

/* صیقل بدنه: مارکر زمردی و جدول زبرا */
.post-body ul li::marker{ color: var(--em-deep); }
.post-body tbody tr:nth-child(even) td{ background: var(--surface-alt); }
.post-body td:first-child{ font-weight: 700; }

/* جعبه‌ی تیم فنی */
.post-author{
  display: flex; gap: var(--s4); align-items: flex-start;
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-1);
  padding: var(--s5);
  margin-block-start: var(--s6);
  max-width: 68ch;
}
.post-author .svc-chip { margin-block-end: 0; }
.post-author b { display: block; margin-block-end: 4px; }
.post-author p { font-size: var(--t-sm); color: var(--ink-soft); line-height: 1.8; }

/* کاور پست تکی — قبلاً سه‌تا style ی inline تو single.php بود */
.post-cover { padding-block-start: var(--s5); }
.post-cover figure { margin: 0; border-radius: var(--r-lg); overflow: hidden; }
.post-cover img { display: block; inline-size: 100%; block-size: auto; }

/* CTA وسط متن پست — هم‌عرض ستون خوانا (۶۸ کاراکتر) */
.post-main .cta-inline { margin-block-start: var(--s6); max-width: 68ch; }

/* بخش «راهنماهای مرتبط» ته پست */
.post-related { margin-block-start: var(--s7); }
.post-related .section-head { margin-block-end: var(--s4); }

/* راهنماهای مرتبط — کارت، نه چیپ لخت */
.rel-grid{
  display: grid; gap: var(--s3);
  grid-template-columns: 1fr;
}
@media (min-width: 560px){ .rel-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 980px){ .rel-grid { grid-template-columns: repeat(3, 1fr); } }
.rel-card{
  display: flex; flex-direction: column; gap: var(--s2);
  padding: var(--s4);
}
.rel-card .eyebrow { margin: 0; }
.rel-card h3 { font-size: var(--t-base); line-height: 1.6; }
.rel-card .rel-more{
  margin-block-start: auto; padding-block-start: var(--s2);
  font-size: var(--t-xs); font-weight: 700; color: var(--brand);
}

/* ───────── عکس موضوعی صفحات (خدمت/درباره) ───────── */
.svc-photo, .about-photo{
  display: block; width: 100%;
  aspect-ratio: 16 / 10; object-fit: cover;
  border-radius: var(--r-lg);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-1);
  margin-block-end: var(--s5);
}

/* ───────── لیست تیک‌دار (مشکلات شایع و…) ───────── */
.ticks{
  list-style: none; margin: 0; padding: 0;
  display: grid; gap: var(--s2) var(--s3);
  grid-template-columns: 1fr;
}
@media (min-width: 720px){ .ticks { grid-template-columns: 1fr 1fr; } }
.ticks.ticks-1col { grid-template-columns: 1fr; }
.ticks li{
  position: relative;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md);
  padding: 10px var(--s3); padding-inline-start: 42px;
  font-size: var(--t-base);
}
.ticks li::before{
  content: "✓"; position: absolute; inset-inline-start: 10px; inset-block-start: 9px;
  width: 22px; height: 22px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--brand-tint); color: var(--brand);
  font-size: 12px; font-weight: 900;
}

/* ───────── FAQ — محتوای دیدنی، بدون مارکاپ FAQPage (سند ۰۷) ───────── */
.faq{ border: 1px solid var(--line); border-radius: var(--r-md); background: var(--surface); }
.faq details + details{ border-block-start: 1px solid var(--line); }
.faq summary{
  list-style: none; cursor: pointer;
  padding: var(--s4) var(--s5);
  font-weight: 700; font-size: var(--t-base);
  display: flex; align-items: center; justify-content: space-between; gap: var(--s3);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after{ content: "+"; color: var(--ink-faint); font-size: 18px; flex: none; }
.faq details[open] summary::after{ content: "−"; }
.faq .faq-a{
  padding: 0 var(--s5) var(--s4);
  color: var(--ink-soft); font-size: var(--t-base); line-height: 1.9; max-width: 68ch;
}

/* جواب آکاردئون نرم باز شه — فقط opacity/translate، بدون jank */
@media (prefers-reduced-motion: no-preference){
  .faq details[open] .faq-a, .toc[open] ol,
  .drawer-body details[open] ul { animation: acc-in 240ms var(--ease-out); }
}
@keyframes acc-in { from { opacity: 0; translate: 0 -5px; } }

/* ───────── جدول کد ارور ───────── */
table.codes { border-collapse: collapse; width: 100%; min-width: 520px; }
table.codes th, table.codes td{
  text-align: start; padding: var(--s3) var(--s4);
  border-block-end: 1px solid var(--line); font-size: var(--t-sm);
  vertical-align: top;
}
table.codes th { background: var(--surface-alt); font-weight: 700; color: var(--ink-soft); font-size: var(--t-xs); }
table.codes tr:last-child td { border-block-end: 0; }
table.codes tbody tr:nth-child(even) td { background: var(--surface-alt); }
/* مسیر دوم تو باند کد ارور خانه — برای کسی که کد نداره */
.err-alt{
  margin-block-start: var(--s4);
  font-size: var(--t-sm); color: var(--on-dark-soft);
}
.err-alt a{ color: #fff; font-weight: 700; }

/* ───────── ابزار تشخیص ───────── */

/* میان‌بر کد — بالای مرحله‌ها، چون کسی که کد داره سریع‌ترین مسیر رو می‌خواد */
.dx-code{
  margin-block-end: var(--s6); padding: var(--s4);
  background: var(--surface-alt); border: 1px solid var(--line);
  border-radius: var(--r-lg);
}
.dx-code label{
  display: block; margin-block-end: var(--s3);
  font-size: var(--t-sm); font-weight: 600; color: var(--ink-soft);
}
.dx-code-row{ display: flex; gap: var(--s2); }
.dx-code-row input{
  flex: 1; min-width: 0; font: inherit;
  padding: 11px var(--s4);
  border: 1px solid var(--line-input); border-radius: var(--r-md);
  background: var(--surface);
}
.dx-code-row input:focus{
  outline: none; border-color: var(--brand);
  box-shadow: 0 0 0 3px var(--brand-tint);
}
.dx-code-hits{ margin-block-start: var(--s3); display: grid; gap: var(--s2); }
.dx-code-hit{
  display: flex; align-items: center; gap: var(--s3);
  padding: var(--s3); background: var(--surface);
  border: 1px solid var(--line); border-radius: var(--r-md);
  text-decoration: none; color: inherit;
}
.dx-code-hit:hover{ border-color: rgba(18,115,90,.35); }
.dx-code-none{ font-size: var(--t-sm); color: var(--ink-soft); line-height: 1.9; }
/* نتیجه‌ی توصیفی (علامت، نه کد): چیپ اسم دستگاهه، نه کد — فونت متن نه monospace */
.dx-code-hit.is-symptom .code-chip{ font-family: inherit; font-weight: 600; font-size: var(--t-xs); }

/* فهرست کدها: بخش «تلویزیون — از روی علامت» بالای همه */
.tv-sym{
  list-style: none; margin: 0; padding: 0;
  display: grid; gap: var(--s2);
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
}
.tv-sym a{
  display: block; height: 100%;
  padding: var(--s3) var(--s4);
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md);
  color: inherit; text-decoration: none; font-weight: 600; font-size: var(--t-sm); line-height: 1.8;
}
.tv-sym a:hover{ border-color: rgba(18,115,90,.35); color: var(--brand-deep); }

/* بدون JS همه‌ی مرحله‌ها باز و لیست کامل دیده می‌شه؛ با JS مرحله‌ای می‌شه.
   is-live رو خود اسکریپت می‌ذاره، پس اگه JS نخوره چیزی مخفی نمی‌مونه. */
.dx-step[hidden] { display: none; }
.dx .dx-h{ font-size: var(--t-lg); margin-block-end: var(--s4); }
.dx .dx-h:focus-visible{ outline: 2px solid var(--brand); outline-offset: 4px; border-radius: var(--r-sm); }

.dx-devices{
  display: grid; gap: var(--s3);
  grid-template-columns: repeat(2, 1fr);
}
@media (min-width: 600px){ .dx-devices { grid-template-columns: repeat(3, 1fr); } }
.dx-device{
  display: flex; flex-direction: column; align-items: center; gap: var(--s2);
  padding: var(--s4) var(--s3);
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--r-lg); cursor: pointer;
  font: inherit; font-weight: 600; color: var(--ink); text-align: center;
  transition: border-color var(--dur-2) var(--ease-out), transform var(--dur-2) var(--ease-out);
}
.dx-device:hover{ border-color: rgba(18,115,90,.35); }
.dx-device:active{ transform: scale(.98); }

.dx-symptoms{ margin-block-end: var(--s4); }
.dx-symptoms .chip{ cursor: pointer; font: inherit; font-size: var(--t-sm); }

.dx-sub{ font-size: var(--t-md); margin-block: var(--s5) var(--s3); }
.dx-codes{ margin-block-end: var(--s4); font-size: var(--t-sm); color: var(--ink-soft); }
.dx-unknown{
  padding: var(--s4); border-inline-start: 3px solid var(--brass);
  background: var(--brass-tint); border-radius: var(--r-md);
  font-size: var(--t-sm); line-height: 1.9;
}
.dx-cta{ margin-block-start: var(--s6); }
.dx-back{ margin-block-start: var(--s5); }
.dx-note{ color: var(--ink-soft); font-size: var(--t-sm); }

/* اجرت کنار علت — عدد باید دیده شه ولی جای خود علت رو نگیره */
.ticks.with-price li { line-height: 1.9; }
.cause-price{
  display: block; margin-block-start: 2px;
  font-size: var(--t-sm); color: var(--brand-deep); font-weight: 600;
}
.cause-price em{
  font-style: normal; font-weight: 400; color: var(--ink-faint);
  font-size: var(--t-xs); margin-inline-start: var(--s2);
}
/* یادداشت هزینه — هزینه‌ی کارشناسی باید جدا و پررنگ دیده شه، وگرنه
   کاربر فقط اجرت رو می‌بینه و بعداً حس می‌کنه عددی ازش پنهون شده */
.price-note{
  margin-block-start: var(--s4); padding: var(--s4);
  background: var(--brass-tint); border-inline-start: 3px solid var(--brass);
  border-radius: var(--r-md);
  font-size: var(--t-sm); color: var(--ink-soft); line-height: 1.9;
}
.price-note p + p { margin-block-start: var(--s2); }
.price-note b { color: var(--ink); }

/* منبع کد ارور — ادعای فنی باید قابل‌بررسی باشه، پس منبعش تو خود صفحه میاد */
.fault-source{
  margin-block-start: var(--s5);
  padding: var(--s3) var(--s4);
  border-inline-start: 3px solid var(--line-strong);
  background: var(--surface-alt);
  border-radius: var(--r-sm);
  font-size: var(--t-sm); color: var(--ink-soft); line-height: 1.9;
}

/* ───────── کد ارورها ───────── */

/* کد بزرگ بالای صفحه‌ی ارور — همون چیزیه که کاربر رو صفحه‌ی دستگاهش دیده،
   پس باید اول از همه و بدون شک پیدا شه */
.err-code-big{
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: var(--t-lg); font-weight: 700;
  color: var(--brand); letter-spacing: .04em;
}

/* ───────── صفحه‌ی خدمت×شهر ─────────
   این کلاس‌ها جای style ی inline ی صفحه‌ی شهر رو هم گرفتن (بدهی C1). */
.page-head-cta{
  margin-block-start: var(--s5);
  display: flex; flex-wrap: wrap; gap: var(--s3); align-items: center;
}
/* بند بلندِ متنی که نباید تا لبه‌ی ستون کش بیاد */
.measure-note{ max-width: 68ch; color: var(--ink-soft); line-height: 1.9; }
.guide-row{
  margin-block: var(--s4) var(--s3);
  color: var(--ink-soft); font-size: var(--t-sm);
}
/* «صفحه‌ی اختصاصی» کنار لینک خدمت — نشون می‌ده این لینک با بقیه فرق داره */
.tick-note{
  margin-inline-start: var(--s2);
  font-size: var(--t-xs); color: var(--ink-faint);
}
.tick-note::before{ content: "· "; }

/* «اول این کارو بکن» — جمله‌ی عملیِ خودِ کد، زیر lede.
   قبلاً فقط تو meta description بود و رو خود صفحه دیده نمی‌شد. */
.fault-action{
  margin-block-start: var(--s4);
  padding: var(--s3) var(--s4);
  background: var(--brand-tint); border-inline-start: 3px solid var(--brand);
  border-radius: var(--r-sm);
  color: var(--ink-soft); line-height: 1.9; max-width: 68ch;
}
.fault-action b{ color: var(--brand-deep); }

/* شکل‌های دیگه‌ی همون کد رو صفحه‌ی ارور — زیر lede، قبل از متای صفحه */
.code-alts{
  margin-block-start: var(--s3);
  font-size: var(--t-sm); color: var(--ink-soft); line-height: 1.9;
}
.code-alts b{
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  color: var(--ink); font-weight: 700; letter-spacing: .04em;
}

.code-list{ list-style: none; margin: 0; padding: 0; display: grid; gap: var(--s2); }
.code-list a{
  display: flex; align-items: center; gap: var(--s3);
  padding: var(--s3) var(--s4);
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--r-md); text-decoration: none; color: inherit;
  transition: border-color var(--dur-2) var(--ease-out);
}
.code-list a:hover{ border-color: rgba(18,115,90,.35); }
.code-chip{
  flex: none; min-width: 68px; text-align: center;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-weight: 700; font-size: var(--t-sm);
  color: var(--brand-deep); background: var(--brand-tint);
  border-radius: var(--r-sm); padding: 4px 8px;
}
/* فیلتر برند رو فهرست کدها — با JS نمایان می‌شه، بدون JS اصلاً رندر نمی‌شه */
.brand-filter{
  display: flex; flex-wrap: wrap; align-items: center; gap: var(--s2);
  margin-block: var(--s5) var(--s4);
}
.brand-filter-label{ font-size: var(--t-sm); color: var(--ink-soft); }
.brand-filter .chip{ padding: 7px var(--s3); font-size: var(--t-sm); }
.brand-filter .chip em{
  font-style: normal; color: var(--ink-faint); font-size: var(--t-xs);
  margin-inline-start: 4px;
}
.brand-filter .chip.is-on{
  background: var(--brand); border-color: var(--brand); color: #fff;
}
/* ۷۵٪ سفید رو brand می‌شد ۴.۰۱ که زیر AA بود؛ ۸۵٪ می‌شه ۴.۶۷ (اندازه‌گیری شد) */
.brand-filter .chip.is-on em{ color: rgba(255,255,255,.85); }

/* کدهایی که خرابی نیستن — چیپ برنجی به‌جای سبز، تا تو یه نگاه از بقیه جدا شن.
   brass-deep رو brass-tint اندازه گرفته شد: ۵.۱۵ (بالای AA). */
.code-chip.is-calm{ color: var(--brass-deep); background: var(--brass-tint); }
.calm-list a{ border-color: var(--brass); }
.calm-list a:hover{ border-color: var(--brass-deep); }

.code-body{ display: grid; gap: 2px; min-width: 0; }
.code-body b{ font-size: var(--t-sm); font-weight: 600; line-height: 1.6; }
.code-meta{ font-size: var(--t-xs); color: var(--ink-soft); }

/* قدم‌های «خودت چک کن» — شماره‌دار چون ترتیبش مهمه */
.steps-plain{ margin: 0; padding-inline-start: var(--s5); display: grid; gap: var(--s2); }
.steps-plain li{ line-height: 1.9; }
/* خطِ «چطور» زیر هر علت — باید خونده شه ولی خودِ علت تیتر بمونه،
   پس یه پله روشن‌تر و کوچیک‌تر، مثل اجرت کنار علت‌های تعمیرکاری */
.cause-how{
  display: block; margin-block-start: 2px;
  font-size: var(--t-sm); color: var(--ink-soft); line-height: 1.85;
}
/* هشدار قبل از شروع — این یکی نباید مثل بقیه‌ی متن رد شه؛ کاربری که
   نخونده باشدش ممکنه آب بریزه کف خونه یا با برقِ وصل دست ببره تو دستگاه */
.diy-warning{
  margin-block: var(--s3) var(--s4);
  padding: var(--s3) var(--s4);
  border-inline-start: 3px solid var(--brass);
  background: var(--surface-alt);
  border-radius: var(--r-md);
  font-size: var(--t-sm); line-height: 1.9;
}
.diy-warning b{ color: var(--brand-deep); }
/* لینک راهنما وقتی سرِ سکشنه، نه ته صفحه */
.more-row.is-lede{ margin-block: var(--s3) 0; }

/* برند — متادیتاست نه محتوا؛ رو موبایل که سلول‌ها روی هم می‌شینن،
   بدون این با متن «یعنی چی» قاطی می‌شه */
table.codes td.brand { color: var(--ink-soft); font-size: var(--t-sm); }
/* خود کد لینک صفحه‌ی خودشه — رنگ کد رو نگه می‌داریم، فقط زیرخط نقطه‌چین
   که معلوم باشه کلیک‌شدنیه بدون اینکه جدول آبی‌پر شه */
table.codes td.code a{
  color: inherit; text-decoration: underline;
  text-decoration-style: dotted; text-underline-offset: 3px;
}
table.codes td.code a:hover{ color: var(--brand); text-decoration-style: solid; }
table.codes td.code{
  font-weight: 900; white-space: nowrap;
  direction: ltr; unicode-bidi: isolate; text-align: end;
  font-variant-numeric: tabular-nums; color: var(--brand);
}
/* موبایل: مثل جدول تعرفه هر ردیف یه کارت می‌شه — min-width ی 520 نباید صفحه رو باز کنه
   (ریست .table-wrap تو بلوک موبایلِ تعرفه برای این جدول هم درسته) */
@media (max-width: 599px){
  table.codes { min-width: 0; display: block; }
  table.codes thead { display: none; }
  table.codes tbody { display: grid; gap: var(--s3); }
  table.codes tr{
    display: block;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--r-md);
    padding: var(--s3) var(--s4);
  }
  table.codes td, table.codes tbody tr:nth-child(even) td { display: block; border: 0; padding: 2px 0; background: none; }
  table.codes td.code { font-size: var(--t-md); }
  table.codes td.brand{
    display: inline-block; margin-block-end: 4px;
    padding: 1px 8px; border-radius: 100px;
    background: var(--surface-alt); border: 1px solid var(--line);
    font-size: var(--t-xs);
  }
  table.codes td:last-child:not(.code) { color: var(--ink-soft); font-size: var(--t-xs); }
}

/* ───────── فرم ───────── */
.form { display: grid; gap: var(--s4); max-width: 560px; }
.field { display: grid; gap: var(--s2); }
.field label { font-weight: 700; font-size: var(--t-sm); }
.field .hint { font-size: var(--t-xs); color: var(--ink-faint); }
.field input, .field select, .field textarea{
  font: inherit; color: var(--ink);
  background: var(--surface);
  border: 1px solid var(--line-input);
  border-radius: var(--r-md);
  padding: 11px var(--s4);
  width: 100%;
}
.field textarea { min-height: 110px; resize: vertical; }

/* فرم جستجوی صفحه‌ی ۴۰۴ — سایت و بلاگ عین هم؛ قبلاً استایلش تو هر دو قالب inline بود */
.nf-search{
  margin-block-start: var(--s5);
  display: flex; gap: var(--s2); max-width: 420px;
}
.nf-search input{
  flex: 1; min-width: 0; font: inherit;
  padding: 11px var(--s4);
  border: 1px solid var(--line-input);
  border-radius: var(--r-md);
  background: var(--surface);
}
/* iOS رو فیلد زیر 16px زوم می‌کنه — رو موبایل کنترل‌ها 16px شن */
@media (max-width: 899px){
  .field input, .field select, .field textarea,
  .drawer-search input, .dx-code-row input, .sr-form input, .nf-search input{
    font-size: 16px;
  }
}
.field input:focus, .field select:focus, .field textarea:focus{
  outline: none; border-color: var(--brand);
  box-shadow: 0 0 0 3px var(--brand-tint);
}
/* خطا — user-invalid فقط بعد از تعامل کاربر فعال می‌شه (نه موقع لود)؛
   .is-error هم برای وقتی سرور خطا برگردونه */
.field input:user-invalid, .field select:user-invalid, .field textarea:user-invalid{
  border-color: var(--alert);
}
.field .error { display: none; font-size: var(--t-xs); color: var(--alert); font-weight: 600; }
.field.is-error input, .field.is-error select, .field.is-error textarea{
  border-color: var(--alert);
  box-shadow: 0 0 0 3px rgba(168,68,42,.12);
}
.field.is-error .error { display: block; }
/* honeypot — از دید و tab خارج، ولی تو DOM هست */
.form .hp { position: absolute; inset-inline-start: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* ───────── مسیر تعمیر (StepsLine.astro) — چهار قدم با حلقه‌ی طلایی و خط‌چین اتصال ─────────
   استایل این‌جاست نه تو صفحه، چون کامپوننت مشترکه (هوم + صفحات خدمت) —
   کلاس کامپوننت تو <style> ی scoped ی صفحه گمه: cid ی صفحه رو المان‌های بچه نمی‌شینه */
.steps-line {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: var(--s5);
  grid-template-columns: 1fr;
}
.sl-n {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--brass-tint);
  border: 1.5px solid var(--brass);
  color: var(--brass-deep);
  font-weight: 800;
  font-size: var(--t-md);
  position: relative;
  z-index: 1;
}
.steps-line b {
  display: block;
  font-size: var(--t-md);
  margin-block-end: 6px;
}
.steps-line p {
  color: var(--ink-soft);
  font-size: var(--t-sm);
  line-height: 1.9;
  max-width: 32ch;
}
@media (min-width: 760px) {
  .steps-line { grid-template-columns: repeat(4, 1fr); }
  .steps-line li { position: relative; }
  .sl-n { margin-block-end: var(--s3); }
  .steps-line li:not(:last-child)::before {
    content: '';
    position: absolute;
    inset-block-start: 21px;
    inset-inline-start: 54px;
    inset-inline-end: 10px;
    border-block-start: 2px dashed var(--line-strong);
  }
}
@media (max-width: 759px) {
  .steps-line li { position: relative; padding-inline-start: 60px; min-height: 48px; }
  .sl-n { position: absolute; inset-inline-start: 0; inset-block-start: 0; }
  .steps-line li:not(:last-child)::before {
    content: '';
    position: absolute;
    inset-inline-start: 21px;
    inset-block-start: 48px;
    inset-block-end: calc(-1 * var(--s5) + 4px);
    border-inline-start: 2px dashed var(--line-strong);
  }
}

/* ───────── حالت متمرکز chrome — صفحات فرایندی مثل booking ─────────
   خود chrome تولیدی دست نمی‌خوره (قرارداد parity)؛ فقط با کلاس رو body
   بخش‌های حواس‌پرت‌کن مخفی می‌شن: منو/سرچ/CTAهای تکراری. topbar (وضعیت باز/بسته)
   و لوگو و تلفن و برگر می‌مونن. */
body.chrome-focus .nav,
body.chrome-focus .hsearch,
body.chrome-focus .header-cta,
body.chrome-focus .cta-band,
body.chrome-focus .action-bar { display: none; }
body.chrome-focus .footer-top { grid-template-columns: 1fr; }
body.chrome-focus .footer-top > div:not(.footer-brand) { display: none; }

/* ───────── reveal اسکرول — فقط با JS فعال می‌شه (html.js) که بدون JS چیزی مخفی نمونه ─────────
   فقط opacity/translate (نه width/height) · یه بار اجرا · رو هیرو نذار که LCP عقب نیفته */
@media (prefers-reduced-motion: no-preference){
  html.js [data-reveal]{
    opacity: 0;
    translate: 0 12px;
    transition: opacity var(--dur-reveal) var(--ease-out), translate var(--dur-reveal) var(--ease-out);
  }
  html.js [data-reveal].is-in{ opacity: 1; translate: 0 0; }

  /* stagger — بچه‌های کانتینر پلکانی میان تو؛ با animation نه transition
     که delay ــش بعد از ورود، رو hover کارت‌ها اثر نذاره */
  html.js [data-reveal] [data-stagger] > *{ opacity: 0; }
  html.js [data-reveal].is-in [data-stagger] > *{
    opacity: 1;
    animation: stagger-in var(--dur-reveal) var(--ease-out) backwards;
  }
  html.js [data-reveal].is-in [data-stagger] > *:nth-child(2){ animation-delay: 70ms; }
  html.js [data-reveal].is-in [data-stagger] > *:nth-child(3){ animation-delay: 140ms; }
  html.js [data-reveal].is-in [data-stagger] > *:nth-child(4){ animation-delay: 210ms; }
  html.js [data-reveal].is-in [data-stagger] > *:nth-child(5){ animation-delay: 280ms; }
  html.js [data-reveal].is-in [data-stagger] > *:nth-child(6){ animation-delay: 350ms; }
  html.js [data-reveal].is-in [data-stagger] > *:nth-child(n+7){ animation-delay: 400ms; }
}
@keyframes stagger-in{ from { opacity: 0; transform: translateY(14px); } }

/* ───────── واژه‌نامه‌ی داخل متن ─────────
   واژه‌ی سخت تو متن یه لینکه؛ مودالش با :target باز می‌شه — یعنی بدون JS هم
   کار می‌کنه. لینک «بستن» و پس‌زمینه هر دو به لنگر خود واژه برمی‌گردن، پس
   بعد از بستن، خواننده دقیقاً همون‌جایی می‌مونه که بود. */
.term{
  color: inherit;
  text-decoration: none;
  background: linear-gradient(var(--brass-tint), var(--brass-tint));
  box-shadow: inset 0 -2px 0 0 color-mix(in srgb, var(--brass) 45%, transparent);
  border-radius: 3px;
  padding: 0 3px;
  cursor: help;
  white-space: nowrap;
}
.term::after{
  content: '؟';
  font-size: .72em;
  font-weight: 700;
  color: var(--brass-deep);
  vertical-align: super;
  margin-inline-start: 1px;
}
.term:hover,
.term:focus-visible{
  background: linear-gradient(var(--brass), var(--brass));
  color: var(--on-brand, #fff);
}
.term:hover::after,
.term:focus-visible::after{ color: inherit; }

.term-modal{ display: none; }
.term-modal:target{
  display: grid;
  place-items: center;
  position: fixed;
  inset: 0;
  z-index: 90;
  padding: var(--s4);
}
.term-back{
  position: absolute;
  inset: 0;
  background: color-mix(in srgb, var(--dark) 62%, transparent);
  -webkit-backdrop-filter: blur(3px);
  backdrop-filter: blur(3px);
}
.term-card{
  position: relative;
  max-width: 34rem;
  width: 100%;
  background: var(--surface, #fff);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-2);
  padding: var(--s5);
  max-height: 80vh;
  overflow-y: auto;
}
.term-eyebrow{
  font-size: var(--t-xs);
  font-weight: 600;
  color: var(--brass-deep);
  margin: 0 0 var(--s1);
  letter-spacing: .02em;
}
.term-card h3{ margin: 0 0 var(--s2); }
.term-card p:not(.term-eyebrow){
  margin: 0 0 var(--s4);
  line-height: var(--lh-body);
  color: var(--ink-soft);
}
.term-close{
  display: inline-block;
  padding: 8px 18px;
  border-radius: 100px;
  background: var(--brand);
  color: var(--on-brand, #fff);
  text-decoration: none;
  font-weight: 600;
  font-size: var(--t-sm);
}
.term-close:hover{ background: var(--brand-deep); }

@media (prefers-reduced-motion: no-preference){
  .term-modal:target .term-card{ animation: term-in 180ms var(--ease-out) backwards; }
}
@keyframes term-in{ from { opacity: 0; transform: translateY(10px) scale(.98); } }

/* یادداشت نرخ رو صفحه‌های شهر — «برای ما گرون‌تره؟» سوالِ اولِ شهرهای اطرافه.
   جدول نیست چون یه ردیفه؛ فقط باید از متن لیست جدا دیده شه. */
.area-rate-note{
  margin-block-start: var(--s4);
  padding: var(--s3) var(--s4);
  background: var(--surface-alt);
  border-radius: var(--r-md);
  font-size: var(--t-sm); line-height: 1.9; color: var(--ink-soft);
}
.area-rate-note b{ color: var(--brand-deep); }

/* ورودی کد ارور تو hero — فقط جایی که hsearch ی هدر نیست (زیر ۱۰۸۰).
   این دو تا عمداً مکمل هم‌ان: هر عرضی یکی‌شون رو داره. */
.hero-errlink{ margin-block-start: var(--s4); }
.hero-phones{
  display: flex; flex-wrap: wrap; gap: var(--s2) var(--s5);
  margin-block-start: var(--s4);
}
.hero-phones a{ display: inline-flex; align-items: baseline; gap: var(--s2); color: inherit; text-decoration: none; }
.hero-phones span{ font-size: var(--t-xs); color: var(--ink-soft); }
.hero-phones b{ font-size: var(--t-md); font-weight: 800; letter-spacing: .02em; }
.hero-phones a:hover b{ color: var(--brand-deep); }
@media (min-width: 1080px){ .hero-errlink { display: none; } }

/* ───────── گالری خدمت نصب (تلویزیون) ───────── */
.install-gallery{
  list-style: none; margin: 0; padding: 0;
  display: grid; gap: var(--s4);
  grid-template-columns: 1fr;
}
@media (min-width: 600px){ .install-gallery{ grid-template-columns: repeat(3, 1fr); } }
.install-gallery figure{ margin: 0; }
.install-gallery img{
  display: block; width: 100%; height: auto;
  aspect-ratio: 4 / 3; object-fit: cover;
  border-radius: var(--r-md);
  background: var(--surface-alt);
}
.install-gallery figcaption{
  margin-block-start: var(--s2);
  font-size: var(--t-sm); font-weight: 600; color: var(--ink);
}
