/*
Theme Name: CoolerFix (کولرفیکس)
Description: قالب سبک و راست‌به‌چپ coolerfix.ir — ایده «نمایشگر کولر»: شب سرمه‌ای و آبی یخی، نارنجی گرم فقط برای تماس. بریف: reports/design-brief.md
Version: 2.0.0
Requires PHP: 8.1
Text Domain: coolerfix
*/

/* ---------- فونت‌ها (self-host) ---------- */
@font-face { font-family: "Vazirmatn"; src: url(assets/Vazirmatn-Regular.woff2) format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Vazirmatn"; src: url(assets/Vazirmatn-Bold.woff2) format("woff2"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Vazirmatn"; src: url(assets/Vazirmatn-ExtraBold.woff2) format("woff2"); font-weight: 800; font-display: swap; }

/* ---------- توکن‌ها ---------- */
:root {
  --night: #062A4A;      /* شب سرمه‌ای: هیرو و فوتر */
  --night-2: #0B3D66;
  --blue: #0A6FB8;       /* برند و لینک */
  --blue-ink: #08548C;
  --sky: #1A8FE3;
  --ice: #DDF1FD;        /* پس‌زمینه یخی */
  --ice-2: #F4FAFE;
  --frost: #9ED8F7;
  --ink: #0F1E2E;
  --muted: #4E5E70;
  --line: #DCE7F0;
  --white: #fff;
  --call-1: #F45A1F;     /* نارنجی گرم: فقط تماس، متن سفید */
  --call-2: #D93D0B;
  --mint: #12A594;
  --r: 18px; --r-sm: 12px; --r-pill: 999px;
  --shadow: 0 10px 30px rgba(6, 42, 74, .10);
  --shadow-lg: 0 20px 50px rgba(6, 42, 74, .18);
  --font: "Vazirmatn", Tahoma, sans-serif;
  --band: 56px; --wrap: 1180px; --prose: 740px;
}
@media (min-width: 900px) { :root { --band: 88px; } }

/* ---------- پایه ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 90px; scroll-behavior: smooth; }
body { margin: 0; font-family: var(--font); font-size: 17px; line-height: 1.95; color: var(--ink); background: var(--white); text-rendering: optimizeLegibility; }
img, svg, video, iframe { max-width: 100%; height: auto; }
a { color: var(--blue); text-underline-offset: 4px; text-decoration-thickness: 1.5px; }
a:hover { color: var(--blue-ink); }
:focus-visible { outline: 3px solid var(--sky); outline-offset: 3px; border-radius: 6px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; inset-inline-start: 12px; top: -60px; background: var(--ink); color: var(--white); padding: 8px 16px; z-index: 100; border-radius: 8px; }
.skip:focus { top: 12px; }
.wrap { width: min(100% - 32px, var(--wrap)); margin-inline: auto; }
.ic { flex: none; vertical-align: middle; }
h1, h2, h3 { line-height: 1.45; margin: 0 0 .5em; font-weight: 800; }
.muted { color: var(--muted); }
.eyebrow { display: inline-block; margin: 0 0 10px; padding: 2px 12px; border-radius: var(--r-pill); background: var(--ice); color: var(--blue-ink); font-size: 14px; font-weight: 800; }
.sec-title { font-size: clamp(26px, 3.8vw, 38px); line-height: 1.4; margin: 0 0 28px; letter-spacing: -.3px; }

/* ---------- دکمه تماس: نارنجی گرم، متن سفید ---------- */
.btn-call { display: inline-flex; align-items: center; gap: 12px; min-height: 56px; padding: 8px 10px 8px 22px; border-radius: var(--r-pill);
  background: linear-gradient(135deg, var(--call-1), var(--call-2)); color: var(--white); font-weight: 800; font-size: 18.7px; line-height: 1.3;
  text-decoration: none; box-shadow: 0 10px 24px rgba(217, 61, 11, .32); transition: transform .15s, box-shadow .15s; text-shadow: 0 1px 1px rgba(0,0,0,.12); }
.btn-call:hover { color: var(--white); transform: translateY(-2px); box-shadow: 0 14px 30px rgba(217, 61, 11, .40); }
.btn-call:active { transform: none; }
.btn-call__ic { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: rgba(255,255,255,.2); position: relative; }
.btn-call__ic::after { content: ""; position: absolute; inset: -4px; border-radius: 50%; border: 2px solid rgba(255,255,255,.55); animation: ring 2.2s ease-out infinite; }
@keyframes ring { 0% { transform: scale(.8); opacity: 1; } 80%, 100% { transform: scale(1.35); opacity: 0; } }
.btn-call__txt, .btn-call__num { white-space: nowrap; }
.btn-call__num { direction: ltr; unicode-bidi: isolate; font-weight: 700; font-size: 16px; opacity: .92; padding-inline-start: 12px; border-inline-start: 1.5px solid rgba(255,255,255,.4); }
.btn-call--sm { min-height: 46px; font-size: 16px; padding-inline-start: 16px; }
.btn-call--sm .btn-call__ic { width: 32px; height: 32px; }
.btn-call--sm .btn-call__num { display: none; }
.btn-call--block { width: 100%; justify-content: center; }
.btn-call--block .btn-call__num { display: none; }
@media (max-width: 560px) { .btn-call { width: 100%; justify-content: center; } .btn-call__num { display: none; } }

/* ---------- نوار بالا و هدر ---------- */
.topline { background: var(--night); color: #CFE6F8; font-size: 13.5px; }
.topline__in { display: flex; gap: 22px; justify-content: center; min-height: 34px; align-items: center; }
.topline span { display: inline-flex; gap: 6px; align-items: center; }
.topline .ic { color: var(--frost); }
@media (max-width: 700px) { .topline__hide { display: none !important; } }
.site-head { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.92); backdrop-filter: saturate(1.4) blur(10px); border-bottom: 1px solid var(--line); }
.site-head__in { display: flex; align-items: center; gap: 18px; min-height: 70px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); margin-inline-end: auto; }
.brand__name { display: grid; font-weight: 800; font-size: 23px; line-height: 1.05; letter-spacing: -.3px; }
.brand__name b { display: inline; color: var(--blue); }
.brand__name small { font-size: 11.5px; font-weight: 700; color: var(--muted); letter-spacing: 0; margin-top: 4px; }
.nav { display: none; }
.nav__list { list-style: none; display: flex; gap: 2px; margin: 0; padding: 0; }
.nav__list a { display: block; padding: 8px 12px; border-radius: 10px; color: var(--ink); text-decoration: none; font-weight: 700; font-size: 15.5px; }
.nav__list a:hover, .nav__list .current-menu-item a { background: var(--ice); color: var(--blue-ink); }
.head-call { display: inline-flex; align-items: center; gap: 8px; height: 44px; padding: 0 16px; border-radius: var(--r-pill);
  background: linear-gradient(135deg, var(--call-1), var(--call-2)); color: var(--white); font-weight: 800; text-decoration: none; }
.head-call:hover { color: var(--white); }
.head-call__num { direction: ltr; unicode-bidi: isolate; }
@media (max-width: 420px) { .head-call__num { display: none; } .head-call { width: 44px; padding: 0; justify-content: center; } .brand__name small { display: none; } }
@media (min-width: 1040px) { .nav { display: block; } }

/* ---------- هیرو: شب سرمه‌ای با «نمایشگر کولر» ---------- */
.hero { position: relative; overflow: hidden; color: var(--white); padding-block: 40px 28px;
  background: radial-gradient(900px 500px at 85% -10%, rgba(26,143,227,.55), transparent 60%), linear-gradient(160deg, var(--night) 0%, var(--night-2) 100%); }
.hero__frost { position: absolute; inset: 0; opacity: .14; pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='90' height='90' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='.6' stroke-linecap='round'%3E%3Cpath d='M12 4v16M5.1 8l13.8 8M5.1 16l13.8-8'/%3E%3C/svg%3E"); background-size: 90px 90px; }
.hero__in { position: relative; display: grid; gap: 30px; align-items: center; }
.hero__in > * { min-width: 0; }
.hero__kicker { display: inline-flex; gap: 8px; align-items: center; margin: 0 0 14px; padding: 4px 14px; border-radius: var(--r-pill); background: rgba(255,255,255,.1); font-size: 14px; font-weight: 700; color: #DDF1FD; }
.dot { width: 8px; height: 8px; border-radius: 50%; background: #3BE0A6; box-shadow: 0 0 0 4px rgba(59,224,166,.25); }
.hero__title { font-size: clamp(32px, 5.2vw, 54px); line-height: 1.3; margin: 0 0 16px; letter-spacing: -.6px; }
.hero__title span { background: linear-gradient(90deg, #9ED8F7, #FFFFFF); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero__lead { font-size: 18px; line-height: 1.9; color: #CFE6F8; max-width: 36em; margin: 0 0 24px; }
.hero__hint { font-size: 14px; color: #A9C9E3; margin: 12px 0 0; }
@media (min-width: 960px) { .hero { padding-block: 64px 36px; } .hero__in { grid-template-columns: 1.05fr 1fr; gap: 56px; } }

/* نمایشگر دیجیتال کولر (تزئینی) */
.display { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-bottom: 14px; padding: 14px 20px; border-radius: var(--r);
  background: linear-gradient(180deg, rgba(255,255,255,.12), rgba(255,255,255,.04)); border: 1px solid rgba(255,255,255,.18); direction: ltr; }
.display__mode { display: inline-flex; gap: 6px; align-items: center; font: 800 13px/1 var(--font); letter-spacing: 2px; color: var(--frost); }
.display__temp { font: 800 44px/1 var(--font); color: var(--white); text-shadow: 0 0 18px rgba(158,216,247,.7); }
.display__fan { display: flex; gap: 4px; align-items: flex-end; height: 22px; }
.display__fan i { width: 6px; border-radius: 3px; background: var(--frost); animation: bars 1.6s ease-in-out infinite; }
.display__fan i:nth-child(1) { height: 40%; } .display__fan i:nth-child(2) { height: 70%; animation-delay: .2s; } .display__fan i:nth-child(3) { height: 100%; animation-delay: .4s; }
@keyframes bars { 50% { opacity: .35; } }

/* انتخابگر مشکل */
.picker__t { font-weight: 800; font-size: 18px; margin: 0 0 12px; }
.picker__grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 230px), 1fr)); gap: 10px; }
@media (max-width: 520px) { .picker__grid { grid-template-columns: repeat(2, 1fr); } }
.hero .picker__grid { grid-template-columns: repeat(2, 1fr); }
@media (min-width: 560px) { .hero .picker__grid { grid-template-columns: repeat(4, 1fr); } }
@media (min-width: 960px) { .hero .picker__grid { grid-template-columns: repeat(2, 1fr); } }
.pick { display: grid; grid-template-columns: auto 1fr; grid-template-rows: auto auto; column-gap: 10px; height: 100%; padding: 12px 14px; border-radius: var(--r-sm);
  background: var(--white); border: 1px solid var(--line); color: var(--ink); text-decoration: none; transition: transform .15s, box-shadow .15s, border-color .15s; }
.pick:hover { transform: translateY(-2px); box-shadow: var(--shadow); border-color: var(--frost); color: var(--ink); }
.pick__ic { grid-row: span 2; display: grid; place-items: center; width: 42px; height: 42px; border-radius: 12px; background: var(--ice); color: var(--blue); }
.pick__t { font-weight: 800; font-size: 15.5px; line-height: 1.5; align-self: end; }
.pick__d { font-size: 13px; color: var(--muted); line-height: 1.6; }
.hero .pick { background: rgba(255,255,255,.96); border-color: transparent; }

/* آمار اعتماد زیر هیرو */
.stats { list-style: none; margin: 30px 0 0; padding: 18px 0 0; border-top: 1px solid rgba(255,255,255,.14); display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
@media (min-width: 760px) { .stats { grid-template-columns: repeat(4, 1fr); } }
.stats li { display: grid; }
.stats b { font-size: 26px; line-height: 1.2; color: var(--white); }
.stats span { font-size: 14px; color: #A9C9E3; }

/* پیام فصلی */
.season { display: grid; grid-template-columns: auto 1fr; gap: 12px 14px; align-items: center; margin: -22px 0 0; position: relative; z-index: 2;
  padding: 16px 18px; border-radius: var(--r); background: var(--white); box-shadow: var(--shadow-lg); }
.season > .ic { color: var(--call-2); }
.season p { margin: 0; line-height: 1.8; }
.season .btn-call { grid-column: 1 / -1; }
@media (min-width: 760px) { .season { grid-template-columns: auto 1fr auto; } .season .btn-call { grid-column: auto; width: auto; } }

/* ---------- بخش‌ها ---------- */
.band { padding-block: var(--band); }
.band--tight { padding-block: 40px; }
.band--ice { background: var(--ice-2); }
.band--night { background: linear-gradient(160deg, var(--night), var(--night-2)); color: var(--white); }
.band--night .eyebrow { background: rgba(255,255,255,.12); color: var(--frost); }
.split { display: grid; gap: 32px; align-items: start; }
.split > * { min-width: 0; }
@media (min-width: 960px) { .split { grid-template-columns: 1.2fr 1fr; gap: 56px; } }

/* خدمات: کارت‌ها */
.cards { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; }
@media (min-width: 640px) { .cards { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .cards { grid-template-columns: repeat(3, 1fr); } }
.card__a { display: flex; flex-direction: column; gap: 6px; height: 100%; padding: 22px; border-radius: var(--r); background: var(--white); border: 1px solid var(--line);
  color: var(--ink); text-decoration: none; position: relative; overflow: hidden; transition: transform .2s, box-shadow .2s; }
.card__a::before { content: ""; position: absolute; inset-inline: 0; top: 0; height: 4px; background: linear-gradient(90deg, var(--sky), var(--frost)); }
.card__a:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); color: var(--ink); }
.card__ic { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 14px; background: var(--ice); color: var(--blue); margin-bottom: 8px; }
.card__t { font-weight: 800; font-size: 19px; }
.card__d { color: var(--muted); font-size: 15.5px; line-height: 1.8; }
.card__more { margin-top: auto; padding-top: 10px; font-weight: 800; color: var(--blue); font-size: 15px; }

/* دیوار برندها */
.wall__t { font-weight: 800; margin: 0 0 12px; }
.wall__t:empty { display: none; }
.wall__list { list-style: none; margin: 18px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.wall__b { display: inline-flex; align-items: center; height: 44px; padding: 0 18px; border-radius: var(--r-pill); background: var(--white); border: 1.5px solid var(--line);
  color: var(--ink); font-weight: 700; text-decoration: none; transition: border-color .15s, color .15s; }
.wall__b:hover { border-color: var(--sky); color: var(--blue-ink); }
.wall__b--all { background: var(--ice); border-color: transparent; color: var(--blue-ink); }

/* جستجوی کد ارور */
.finder { padding: 24px; border-radius: var(--r); background: var(--white); box-shadow: var(--shadow-lg); border-top: 4px solid var(--call-1); }
.finder__t { display: flex; gap: 8px; align-items: center; font-weight: 800; font-size: 19px; margin: 0 0 14px; }
.finder__t .ic { color: var(--call-2); }
.finder__row { display: grid; gap: 10px; }
@media (min-width: 480px) { .finder__row { grid-template-columns: 1fr 1fr auto; } }
.finder select { appearance: none; -webkit-appearance: none; padding-inline: 14px 40px !important; cursor: pointer;
  background: var(--ice-2) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230A6FB8' stroke-width='2.5' stroke-linecap='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E") no-repeat left 14px center / 18px !important; }
.finder input { text-align: right; }
.finder input::placeholder { color: #8A99A8; font-weight: 400; letter-spacing: 0; }
.finder select, .finder input { width: 100%; height: 50px; padding: 0 14px; border-radius: var(--r-sm); border: 1.5px solid var(--line); background: var(--ice-2); font: 700 16px var(--font); color: var(--ink); }
.finder input { text-transform: uppercase; letter-spacing: 1px; }
.finder select:focus, .finder input:focus { border-color: var(--sky); outline: none; box-shadow: 0 0 0 3px rgba(26,143,227,.2); }
.finder__go { display: inline-flex; gap: 6px; align-items: center; justify-content: center; height: 50px; padding: 0 18px; border: 0; border-radius: var(--r-sm);
  background: var(--night); color: var(--white); font: 800 16px var(--font); cursor: pointer; }
.finder__go:hover { background: var(--blue); }
.finder__hint { margin: 12px 0 0; font-size: 14.5px; color: var(--muted); }
.finder__msg { margin: 10px 0 0; font-size: 14.5px; font-weight: 700; color: var(--call-2); }

/* مراحل: جریان افقی با کارت */
.flow { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; counter-reset: f; }
@media (min-width: 900px) { .flow { grid-template-columns: repeat(4, 1fr); } }
.flow__i { counter-increment: f; position: relative; display: flex; flex-direction: column; gap: 6px; padding: 22px; border-radius: var(--r); background: var(--white); border: 1px solid var(--line); box-shadow: var(--shadow); }
@media (max-width: 899px) {
  .flow__i { display: grid; grid-template-columns: 44px 1fr; column-gap: 14px; row-gap: 2px; align-items: start; padding: 18px; }
  .flow__i .flow__ic { grid-row: span 2; margin: 0; }
  .flow__i::after { top: auto; bottom: 10px; font-size: 32px; }
}
.flow__i::after { content: counter(f, persian); position: absolute; top: 12px; inset-inline-end: 18px; font-weight: 800; font-size: 40px; line-height: 1; color: rgba(10,111,184,.14); }
.flow__i .flow__ic { color: var(--white); }
.flow__ic { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: var(--blue); color: var(--white); margin-bottom: 6px; }
.flow__i strong { font-size: 18px; }
.flow__i span { color: var(--muted); font-size: 15.5px; line-height: 1.8; }

/* مناطق */
.regions { display: grid; gap: 14px; }
@media (min-width: 700px) { .regions { grid-template-columns: repeat(5, 1fr); } }
.regions__z { padding: 18px; border-radius: var(--r); background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.12); }
.regions__t { font-weight: 800; font-size: 18px; margin: 0 0 4px; }
.regions__t a { color: var(--white); }
.regions p { margin: 0; color: #CFE6F8; font-size: 15px; line-height: 1.8; }
.prose .regions__z { background: var(--ice-2); border-color: var(--line); }
.prose .regions p, .prose .regions__t a { color: var(--ink); }

/* ---------- صفحات داخلی ---------- */
.page-hero { padding-block: 22px 30px; background: linear-gradient(180deg, var(--ice) 0%, var(--ice-2) 100%); border-bottom: 1px solid var(--line); }
.page-title { font-size: clamp(28px, 4.6vw, 44px); line-height: 1.4; margin: 0; letter-spacing: -.4px; }
.page-lead { color: var(--muted); font-size: 18px; margin: 10px 0 0; max-width: 42em; }
.page-hero__row { display: flex; flex-wrap: wrap; gap: 14px 22px; align-items: center; margin-top: 20px; }
.chips-mini { list-style: none; display: flex; flex-wrap: wrap; gap: 8px 16px; margin: 0; padding: 0; font-size: 14.5px; font-weight: 700; color: var(--blue-ink); }
.chips-mini li { display: inline-flex; gap: 6px; align-items: center; }
.meta { display: flex; gap: 6px; align-items: center; color: var(--muted); font-size: 14.5px; margin: 10px 0 0; }
.crumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 4px; margin: 0 0 12px; padding: 0; font-size: 14px; color: var(--muted); }
.crumbs li + li::before { content: "‹"; margin-inline-end: 6px; color: var(--frost); }
.crumbs a { color: var(--muted); }

.page-grid { display: grid; gap: 32px; align-items: start; padding-block: 36px var(--band); }
@media (min-width: 1100px) { .page-grid { grid-template-columns: minmax(0, var(--prose)) 300px; justify-content: space-between; } }
.rail { display: grid; gap: 16px; }
@media (min-width: 1100px) { .rail { position: sticky; top: 96px; } }
@media (max-width: 1099px) { .rail { order: -1; } .rail__call { display: none; } }
.toc { padding: 16px 18px; border-radius: var(--r); background: var(--ice-2); border: 1px solid var(--line); font-size: 15px; }
.toc__t { display: flex; gap: 6px; align-items: center; font-weight: 800; margin: 0; color: var(--blue-ink); cursor: pointer; list-style: none; }
.toc__t::-webkit-details-marker { display: none; }
.toc__t::after { content: "+"; margin-inline-start: auto; font-size: 20px; line-height: 1; }
.toc[open] .toc__t { margin-bottom: 6px; }
.toc[open] .toc__t::after { content: "−"; }
@media (min-width: 1100px) { .toc__t::after { display: none; } }
.toc ol { margin: 0; padding-inline-start: 1.3em; line-height: 1.8; list-style-type: persian; }
.prose ol { list-style-type: persian; }
.toc a { color: var(--ink); text-decoration: none; }
.toc a:hover, .toc a.is-active { color: var(--blue); text-decoration: underline; }
@media (max-width: 1099px) { .toc { max-height: none; } .toc ol { columns: 1; } }
.rail__call { padding: 20px; border-radius: var(--r); background: linear-gradient(160deg, var(--night), var(--night-2)); color: var(--white); }
.rail__t { font-weight: 800; font-size: 19px; margin: 0 0 4px; }
.rail__call p { margin: 0 0 14px; color: #CFE6F8; font-size: 15px; line-height: 1.8; }

/* ---------- متن صفحه (prose) ---------- */
.prose { max-width: var(--prose); min-width: 0; }
.prose > * + * { margin-top: 1.1em; }
.prose p, .prose ul, .prose ol { margin-block: 0; }
.prose h2 { font-size: 25px; margin: 2em 0 .6em; scroll-margin-top: 96px; }
.prose h2::before { content: ""; display: block; width: 44px; height: 4px; border-radius: 2px; background: linear-gradient(90deg, var(--sky), var(--frost)); margin-bottom: 12px; }
.prose h3 { font-size: 19.5px; margin: 1.6em 0 .4em; scroll-margin-top: 96px; }
.prose ul, .prose ol { padding-inline-start: 1.4em; }
.prose li + li { margin-top: .35em; }
.prose li::marker { color: var(--blue); }
.prose img { border-radius: var(--r); display: block; }
.prose figure { margin: 1.6em 0; }
.prose figcaption { font-size: 14px; color: var(--muted); margin-top: 8px; }
.prose blockquote { margin: 1.4em 0; padding: 4px 18px; border-inline-start: 4px solid var(--frost); color: var(--muted); }
.prose strong { font-weight: 800; }

/* کامپوننت‌های محتوا (کلاس‌ها برای persian-seo-content) */
.cf-answer { padding: 18px 20px; border-radius: var(--r); background: var(--ice); border-inline-start: 5px solid var(--blue); font-size: 17.5px; }
.cf-call { display: grid; gap: 14px; align-items: center; margin: 2em 0; padding: 22px; border-radius: var(--r);
  background: linear-gradient(160deg, var(--night), var(--night-2)); color: var(--white); }
@media (min-width: 720px) { .cf-call { grid-template-columns: 1fr auto; } }
.cf-call p { margin: 0; color: #CFE6F8; }
.cf-call .cf-call__title { color: var(--white); font-weight: 800; font-size: 19.5px; }
.cf-note { padding: 16px 18px; border-radius: var(--r-sm); background: #FFF6EF; border-inline-start: 4px solid var(--call-1); }
.prose .cf-steps, .cf-steps { list-style: none; counter-reset: s; padding: 0 !important; }
.cf-steps li { counter-increment: s; position: relative; padding-inline-start: 54px; min-height: 40px; }
.cf-steps li::before { content: counter(s, persian); position: absolute; inset-inline-start: 0; top: 0; width: 38px; height: 38px; border-radius: 50%;
  background: var(--blue); color: var(--white); font-weight: 800; font-size: 18px; display: grid; place-items: center; }
.cf-factors { list-style: none; padding: 0 !important; display: grid; gap: 10px; }
@media (min-width: 640px) { .cf-factors { grid-template-columns: 1fr 1fr; } }
.cf-factors li { margin: 0 !important; padding: 14px 16px; border-radius: var(--r-sm); background: var(--ice-2); border: 1px solid var(--line); }
.cf-factors li strong { display: block; color: var(--blue-ink); }
.cf-table { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--r-sm); }
.cf-table.is-scrollable { box-shadow: inset 14px 0 12px -10px rgba(16,24,40,.25); }
.cf-table.is-scrollable.is-end { box-shadow: none; }
.cf-table-hint { margin: 6px 0 18px; font-size: 13.5px; color: var(--muted); }
@media (min-width: 700px) { .cf-table-hint { display: none; } }
.cf-table table { width: 100%; border-collapse: collapse; min-width: 520px; font-size: 15.5px; }
.cf-table th, .cf-table td { padding: 11px 14px; text-align: start; border-bottom: 1px solid var(--line); vertical-align: top; }
.cf-table th { background: var(--ice); font-weight: 800; color: var(--blue-ink); }
.cf-table tr:last-child td { border-bottom: 0; }
.cf-table tr:target td, .cf-table tr.is-hit td { background: #FFF1E6; }
.cf-errors td:first-child { font-weight: 800; direction: ltr; unicode-bidi: isolate; white-space: nowrap; color: var(--blue-ink); }
.cf-warranty { display: grid; gap: 12px; list-style: none; padding: 0 !important; }
@media (min-width: 640px) { .cf-warranty { grid-template-columns: repeat(3, 1fr); } }
.cf-warranty li { margin: 0 !important; padding: 18px; border-radius: var(--r); background: var(--ice); text-align: center; }
@media (max-width: 639px) { .cf-warranty { grid-template-columns: repeat(3, 1fr); gap: 8px; } .cf-warranty li { padding: 12px 6px; font-size: 13.5px; line-height: 1.6; } .cf-warranty b { font-size: 21px !important; } }
.cf-warranty b { display: block; font-size: 28px; color: var(--blue-ink); }
.cf-faq { border-radius: var(--r); border: 1px solid var(--line); padding: 4px 20px; }
.cf-faq details { border-bottom: 1px solid var(--line); }
.cf-faq details:last-child { border-bottom: 0; }
.cf-faq summary { cursor: pointer; list-style: none; padding: 16px 0; padding-inline-end: 34px; font-weight: 800; position: relative; }
.cf-faq summary::-webkit-details-marker { display: none; }
.cf-faq summary::after { content: "+"; position: absolute; inset-inline-end: 0; top: 12px; width: 26px; height: 26px; border-radius: 50%; background: var(--ice);
  color: var(--blue); display: grid; place-items: center; font-size: 20px; line-height: 1; transition: transform .2s; }
.cf-faq details[open] summary::after { transform: rotate(45deg); }
.cf-faq details > *:not(summary) { margin: 0 0 16px; }
.cf-toc { display: none; } /* فهرست مطالب را قالب خودکار می‌سازد */
.cf-video { position: relative; aspect-ratio: 16 / 9; border-radius: var(--r); overflow: hidden; background: var(--night) center / cover no-repeat; }
.cf-video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.cf-video__play { position: absolute; inset: 0; margin: auto; width: 84px; height: 84px; border-radius: 50%; border: 0; cursor: pointer;
  background: var(--call-1) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M8 5v14l11-7z' fill='%23ffffff'/%3E%3C/svg%3E") 54% 50% / 40px no-repeat; }
.cf-photo { margin: 28px 0; }
.cf-photo img { width: 100%; height: auto; border-radius: var(--r); display: block; }
.cf-photo figcaption { margin-top: 8px; font-size: 14px; color: var(--muted); }

.author { display: flex; gap: 14px; align-items: center; margin-top: 2.4em !important; padding: 18px; border-radius: var(--r); background: var(--ice-2); border: 1px solid var(--line); }
.author p { margin: 0; font-size: 15.5px; }
.author__mark { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 50%; background: var(--blue); color: var(--white); flex: none; }

.posts { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
@media (min-width: 800px) { .posts { grid-template-columns: 1fr 1fr; } }
.posts__item a { display: flex; flex-direction: column; gap: 6px; height: 100%; padding: 20px; border-radius: var(--r); border: 1px solid var(--line); color: var(--ink); text-decoration: none; transition: box-shadow .2s; }
.posts__item a:hover { box-shadow: var(--shadow); }
.posts__t { font-weight: 800; font-size: 19px; }
.posts__d { color: var(--muted); }
.posts__m { margin-top: auto; font-size: 13.5px; color: var(--blue); font-weight: 700; }

/* ---------- ۴۰۴: «این صفحه یخ زده» ---------- */
.lost { padding-block: 48px; background: linear-gradient(160deg, var(--night), var(--night-2)); color: var(--white); }
.lost__in { display: grid; gap: 30px; align-items: center; }
@media (min-width: 860px) { .lost__in { grid-template-columns: 360px 1fr; gap: 56px; } }
.lost .page-lead { color: #CFE6F8; margin-bottom: 22px; }
.lost__display { position: relative; display: grid; gap: 6px; padding: 26px; border-radius: 24px; direction: ltr; overflow: hidden;
  background: linear-gradient(180deg, rgba(255,255,255,.14), rgba(255,255,255,.04)); border: 1px solid rgba(255,255,255,.2); }
.lost__mode { display: inline-flex; gap: 6px; align-items: center; font-weight: 800; letter-spacing: 3px; color: #FFB08A; font-size: 14px; }
.lost__code { font-weight: 800; font-size: 96px; line-height: 1; text-shadow: 0 0 24px rgba(158,216,247,.8); animation: flicker 3s infinite; }
@keyframes flicker { 0%, 92%, 100% { opacity: 1; } 94% { opacity: .4; } 96% { opacity: .9; } }
.lost__frost { position: absolute; inset: auto 0 0 0; height: 40%; background: linear-gradient(0deg, rgba(221,241,253,.35), transparent); }

/* ---------- فوتر ---------- */
.site-foot { background: linear-gradient(160deg, var(--night), #041D33); color: #BFD7EA; padding-block: 0 96px; font-size: 15.5px; }
.site-foot a { color: var(--white); }
.foot-cta { display: grid; gap: 18px; align-items: center; padding: 26px; border-radius: 22px; transform: translateY(-40px);
  background: linear-gradient(135deg, var(--blue), var(--sky)); color: var(--white); box-shadow: var(--shadow-lg); }
.foot-cta p { margin: 0; color: #E7F4FD; }
.foot-cta__t { font-weight: 800; font-size: 22px; color: var(--white) !important; margin-bottom: 4px !important; }
@media (min-width: 860px) { .foot-cta { grid-template-columns: 1fr auto; padding: 30px 36px; } }
.site-main { padding-bottom: 64px; }
.home .site-main, .error404 .site-main { padding-bottom: 72px; }
.site-foot__grid { display: grid; gap: 30px; }
@media (min-width: 900px) { .site-foot__grid { grid-template-columns: 1.4fr 1fr 1fr 1.1fr; } .site-foot { padding-bottom: 28px; } }
.site-foot__name { font-weight: 800; font-size: 26px; color: var(--white); margin: 0 0 8px; }
.site-foot__name b { color: var(--frost); }
.site-foot__h { font-weight: 800; color: var(--white); margin: 0 0 10px; }
.site-foot p { margin: 0 0 8px; }
.site-foot .ic { color: var(--frost); }
.site-foot__note { font-size: 13.5px; opacity: .8; }
.foot-links { list-style: none; margin: 0; padding: 0; }
.foot-links li { margin-bottom: 6px; }
.foot-links a { text-decoration: none; }
.foot-links a:hover { text-decoration: underline; }
.foot-tel { font-weight: 800; font-size: 18px; text-decoration: none; }
.site-foot__legal { margin-top: 34px; padding-top: 18px; border-top: 1px solid rgba(255,255,255,.12); font-size: 13.5px; opacity: .7; }

/* ---------- نوار تماس چسبان موبایل ---------- */
.callbar { position: fixed; inset-inline: 10px; bottom: calc(10px + env(safe-area-inset-bottom)); z-index: 60; display: flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 58px; padding: 8px 16px; border-radius: var(--r-pill); background: linear-gradient(135deg, var(--call-1), var(--call-2)); color: var(--white);
  font-weight: 800; font-size: 17px; text-decoration: none; box-shadow: 0 12px 30px rgba(217,61,11,.45); transition: transform .25s ease; }
.callbar:hover { color: var(--white); }
.callbar__ring { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; background: rgba(255,255,255,.2); }
.callbar__num { direction: ltr; unicode-bidi: isolate; font-weight: 700; font-size: 15px; opacity: .9; }
@media (max-width: 440px) { .callbar__num { display: none; } }
.callbar > span:nth-child(2) { white-space: nowrap; }
@media (min-width: 1040px) { .callbar { display: none; } }
.callbar.is-hidden { transform: translateY(160%); }

/* جدول کلید/مقدار یا جدول کوتاه: در موبایل به کارت‌های عمودی تبدیل می‌شود (بدون اسکرول افقی) */
@media (max-width: 699px) {
  .cf-table--stack { overflow: visible; border: 0; }
  .cf-table--stack table { min-width: 0; }
  .cf-table--stack thead { display: none; }
  .cf-table--stack tr { display: block; margin-bottom: 12px; border: 1px solid var(--line); border-radius: var(--r-sm); overflow: hidden; }
  .cf-table--stack th, .cf-table--stack td { display: block; border-bottom: 0; padding: 8px 14px; }
  .cf-table--stack td[data-label]::before { content: attr(data-label) ": "; font-weight: 800; color: var(--blue-ink); }
  .cf-table--stack tbody th { background: var(--ice); }
  .cf-table--stack tbody td:first-child:not([data-label]) { background: var(--ice); font-weight: 800; color: var(--blue-ink); }
}
.cf-answer + .cf-warranty { margin-top: 18px; }
.prose a[dir="ltr"][href^="tel:"] { white-space: nowrap; unicode-bidi: isolate; }
.prose .cards { padding: 0 !important; margin-block: 1.4em; }
.prose .cards li { margin: 0 !important; }
.prose .cards li::marker { content: none; }

/* ---------- صفحه اصلی بخش‌بندی‌شده (محتوای P001 در <section>‌ها) ---------- */
.home-body .band > .wrap > p { max-width: var(--prose); }
.home-body .prose { max-width: none; }
.home-body .prose > p, .home-body .prose > ul:not([class]) { max-width: 860px; }
.home-body .prose > h2:first-child, .home-body .split .prose > h2:first-child { margin-top: 0; }
.sec-intro { max-width: 760px; color: var(--muted); margin: -12px 0 28px !important; }
.band--night .sec-intro { color: #CFE6F8; }

/* کارت‌های آیکن‌دار (H3 + متن): دو یا سه ستونه */
.cf-grid { display: grid; gap: 18px; margin: 28px 0 0; }
@media (min-width: 720px) { .cf-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1040px) { .cf-grid--3 { grid-template-columns: repeat(3, 1fr); } }
.cf-box { position: relative; padding: 24px 22px 20px; border-radius: var(--r); background: var(--white); border: 1px solid var(--line); box-shadow: var(--shadow); }
.band:not(.band--ice) .cf-box { background: var(--ice-2); box-shadow: none; }
.cf-box__ic { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 14px; background: var(--ice); color: var(--blue); margin-bottom: 12px; }
.cf-box h3 { margin: 0 0 8px !important; font-size: 19.5px; line-height: 1.5; }
.cf-box p { margin: 0; font-size: 16px; color: var(--muted); }
.cf-box p + p { margin-top: 10px; }
.cf-box--wide { grid-column: 1 / -1; }

/* دوستونه: متن + کادر کناری */
.cf-split { display: grid; gap: 28px; align-items: center; }
.cf-split--top { align-items: start; }
.home-body .split { align-items: center; }
.cf-split > * { min-width: 0; }
@media (min-width: 960px) { .cf-split { grid-template-columns: 1.15fr 1fr; gap: 56px; } .cf-split--even { grid-template-columns: 1fr 1fr; } }
.cf-panel { padding: 26px; border-radius: 22px; background: linear-gradient(160deg, var(--night), var(--night-2)); color: #DCEEFB; box-shadow: var(--shadow-lg); }
.cf-panel h3, .cf-panel strong { color: var(--white); }
.cf-panel h3, .cf-panel h2 { margin: 0 0 14px !important; font-size: 21px; }
.cf-panel h2 { color: var(--white); }
.cf-panel a:not(.btn-call) { color: var(--frost); }
@media (min-width: 960px) { .cf-split--top > .cf-panel { position: sticky; top: 100px; } }
.cf-symptoms a { font-size: 14.5px; }

/* چک‌لیست با تیک */
.cf-check { list-style: none; padding: 0 !important; margin: 0; display: grid; gap: 10px; }
.cf-check li { position: relative; margin: 0 !important; padding-inline-start: 36px; }
.cf-check li::before { content: ""; position: absolute; inset-inline-start: 0; top: 5px; width: 24px; height: 24px; border-radius: 50%;
  background: var(--mint) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7'/%3E%3C/svg%3E") center / 15px no-repeat; }
.cf-panel .cf-check li::before { background-color: var(--sky); }
.cf-panel .btn-call { margin-top: 20px; }

/* چیپ‌های علامت (مشکل → راهنما) */
.cf-symptoms { list-style: none; padding: 0 !important; display: grid; gap: 12px; margin: 18px 0 0; }
@media (min-width: 720px) { .cf-symptoms { grid-template-columns: repeat(2, 1fr); } }
.cf-symptoms li { margin: 0 !important; padding: 16px 18px; border-radius: var(--r-sm); background: var(--white); border: 1px solid var(--line); border-inline-start: 4px solid var(--sky); font-size: 16px; }
.cf-symptoms strong { display: block; color: var(--blue-ink); }

/* ---------- حرکت کمتر و چاپ ---------- */
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; } }
@media print { .site-head, .topline, .callbar, .site-foot, .btn-call, .rail { display: none !important; } }
.hero__hint a { color: var(--white); font-weight: 800; }

/* پیام نتیجه جستجوی کد ارور و بنر «کد پیدا نشد» در صفحه ارورها */
.finder__msg a { font-weight: 800; }
.code-miss { margin: 0 0 18px; padding: 14px 16px; border-radius: var(--r-sm); background: #FFF6EF; border-inline-start: 4px solid var(--call-1); font-size: 15.5px; }
.lost-more { display: grid; gap: 40px; }
