/* ═══════════════════════════════════════════════════════
   چینی بهداشتی کسری — طراحی مدرن و مینیمال
   هویت: سفید چینی، سرمه‌ای، فیروزه‌ای لوگو، نشانگر کهربایی
   امضا: خط راهنمای نقطه‌چین (از فهرست کاتالوگ رسمی)
   ═══════════════════════════════════════════════════════ */

@font-face { font-family: "Vazirmatn"; src: url("../assets/fonts/Vazirmatn-Light.woff2") format("woff2"); font-weight: 300; font-display: swap; }
@font-face { font-family: "Vazirmatn"; src: url("../assets/fonts/Vazirmatn-Regular.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Vazirmatn"; src: url("../assets/fonts/Vazirmatn-Medium.woff2") format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Vazirmatn"; src: url("../assets/fonts/Vazirmatn-SemiBold.woff2") format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Vazirmatn"; src: url("../assets/fonts/Vazirmatn-Bold.woff2") format("woff2"); font-weight: 700; font-display: swap; }

:root {
  --porcelain: #F5F7FA;      /* سفید چینی */
  --white: #FFFFFF;
  --navy: #0A2E5C;           /* سرمه‌ای */
  --navy-deep: #071F3D;
  --cyan: #00ADEF;           /* آبی لوگو */
  --cyan-soft: #E5F6FE;
  --amber: #F5A623;          /* کهربایی کاتالوگ */
  --ink-2: #5B6B82;          /* متن ثانویه */
  --line: #E8EDF4;
  --mono: "SF Mono", ui-monospace, Menlo, Consolas, monospace;
  --r-sm: 12px;
  --r-md: 20px;
  --r-lg: 28px;
  --shadow-soft: 0 6px 30px -12px rgba(10, 46, 92, .10);
  --shadow-lift: 0 30px 60px -28px rgba(10, 46, 92, .28);
  --container: 1240px;
  --dur: .6s;
  --ease: cubic-bezier(.22, .8, .3, 1);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 100px; }
body {
  font-family: "Vazirmatn", "Segoe UI", Tahoma, sans-serif;
  background: var(--white);
  color: var(--navy);
  line-height: 2;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
.mono { font-family: var(--mono); font-size: .92em; letter-spacing: .02em; }
.container { max-width: var(--container); margin-inline: auto; padding-inline: 32px; }

:focus-visible { outline: 2px solid var(--cyan); outline-offset: 3px; border-radius: 4px; }

/* ─── دکمه‌ها: پیل مدرن ─── */
.btn {
  display: inline-block;
  padding: 14px 34px;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 600;
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: background-color .25s, color .25s, border-color .25s, box-shadow .25s, transform .25s;
}
.btn:hover { transform: translateY(-2px); }
.btn-solid { background: var(--navy); color: #fff; box-shadow: 0 14px 30px -14px rgba(10,46,92,.5); }
.btn-solid:hover { background: var(--cyan); box-shadow: 0 16px 34px -14px rgba(0,173,239,.55); }
.btn-outline { border-color: rgba(10,46,92,.22); color: var(--navy); }
.btn-outline:hover { border-color: var(--cyan); color: var(--cyan); }
.btn-ghost { border-color: var(--line); color: var(--navy); padding: 10px 24px; font-size: 14px; font-weight: 500; }
.btn-ghost:hover { border-color: var(--cyan); color: var(--cyan); }
.btn-light { background: #fff; color: var(--navy); }
.btn-light:hover { background: var(--amber); color: var(--navy-deep); }
.btn-block { display: block; text-align: center; }

/* ─── ابرو + نشانگر کهربایی ─── */
.eyebrow {
  display: flex; align-items: center; gap: 10px;
  font-size: 14px; font-weight: 600; letter-spacing: .01em;
  color: var(--ink-2); margin-bottom: 18px;
}
.eyebrow .dot { width: 9px; height: 9px; border-radius: 50%; background: var(--amber); flex: none; }
.eyebrow-light { color: #9FB4CE; }

/* امضای برند: خط راهنمای نقطه‌چین از فهرست کاتالوگ */
.leader { flex: 1 1 40px; min-width: 24px; border-bottom: 2px dotted rgba(10,46,92,.22); transform: translateY(-6px); }

/* ─── سربرگ شیشه‌ای ─── */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.82);
  backdrop-filter: blur(16px) saturate(1.4);
  -webkit-backdrop-filter: blur(16px) saturate(1.4);
}
.header-row { display: flex; align-items: center; justify-content: space-between; gap: 24px; height: 84px; }
.brand { display: flex; align-items: center; gap: 14px; }
.brand-logo { height: 48px; width: auto; }
.brand-text { display: flex; flex-direction: column; line-height: 1.6; }
.brand-text strong { font-size: 16.5px; font-weight: 700; }
.brand-text small { font-size: 10.5px; color: var(--ink-2); font-family: var(--mono); letter-spacing: .05em; }
.main-nav { display: flex; gap: 6px; }
.main-nav a {
  font-size: 14.5px; font-weight: 500; color: var(--ink-2);
  padding: 9px 18px; border-radius: 999px;
  transition: color .2s, background-color .2s;
}
.main-nav a:hover { color: var(--navy); background: var(--porcelain); }
.header-actions { display: flex; align-items: center; gap: 12px; }
.nav-toggle { display: none; background: none; border: none; cursor: pointer; padding: 8px; }
.nav-toggle span { display: block; width: 22px; height: 2px; background: var(--navy); margin: 5px 0; border-radius: 2px; }

/* ─── سوییچر زبان ─── */
.lang-switch {
  display: flex; gap: 2px;
  background: var(--porcelain);
  border-radius: 999px; padding: 3px;
}
.lang-switch button {
  font-family: inherit; font-size: 12.5px; font-weight: 600;
  border: none; background: transparent; color: var(--ink-2);
  border-radius: 999px; padding: 6px 14px; cursor: pointer;
  transition: background-color .2s, color .2s;
}
.lang-switch button.is-active { background: var(--navy); color: #fff; }
.lang-switch button:not(.is-active):hover { color: var(--navy); }

/* ─── هیرو ─── */
.hero {
  position: relative;
  padding: 100px 0 130px;
  overflow: clip;
  background:
    radial-gradient(680px 480px at 12% -10%, var(--cyan-soft) 0%, transparent 65%),
    radial-gradient(560px 420px at 95% 110%, rgba(0,173,239,.07) 0%, transparent 60%),
    var(--white);
}
.hero-grid { display: grid; grid-template-columns: 1.08fr .92fr; gap: 96px; align-items: center; }
.hero h1 {
  font-size: clamp(42px, 5.2vw, 66px);
  font-weight: 700;
  line-height: 1.5;
  margin-bottom: 26px;
}
.lede { color: var(--ink-2); font-size: 17.5px; max-width: 52ch; margin-bottom: 44px; }

.hero-index { list-style: none; margin-bottom: 48px; max-width: 460px; }
.hero-index li + li { margin-top: 6px; }
.hero-index a {
  display: flex; align-items: baseline; gap: 14px;
  padding: 13px 18px;
  border-radius: 14px;
  transition: background-color .22s, transform .22s;
}
.hero-index a:hover { background: var(--porcelain); transform: translateX(-4px); }
.hero-index a:hover .idx-name { color: var(--cyan); }
.idx-name { font-weight: 600; font-size: 17px; transition: color .2s; }
.idx-count { font-size: 13.5px; color: var(--ink-2); background: var(--white); border: 1px solid var(--line); border-radius: 999px; padding: 2px 14px; }
.hero-cta { display: flex; gap: 16px; flex-wrap: wrap; }

.hero-figure { position: relative; margin: 0; }
.hero-figure img {
  width: 100%; aspect-ratio: 4 / 5; object-fit: cover;
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-lift);
}
.hero-figure figcaption {
  position: absolute; bottom: 22px; inset-inline-start: 22px;
  background: rgba(255,255,255,.92);
  backdrop-filter: blur(8px);
  padding: 10px 20px; border-radius: 999px;
  font-size: 12.5px; color: var(--navy);
  box-shadow: var(--shadow-soft);
}

/* ─── نوار اعتماد ─── */
.trust-strip { background: transparent; }
.trust-row {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 14px;
  padding: 0 24px;
  transform: translateY(-31px);
}
.trust-row span {
  display: flex; align-items: center; gap: 9px;
  font-size: 13.5px; font-weight: 500; color: var(--ink-2);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 9px 22px;
  box-shadow: var(--shadow-soft);
}
.trust-row span::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--cyan); }

/* ─── آمار ─── */
.stats { padding: 70px 0 40px; background: var(--white); }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px; }
.stat { text-align: center; padding: 10px 0; }
.stat strong {
  display: block;
  font-size: clamp(34px, 3.6vw, 50px);
  font-weight: 700;
  line-height: 1.4;
}
.stat span { font-size: 14.5px; color: var(--ink-2); }

/* ─── بخش‌ها ─── */
.section { padding: 130px 0; }
.section-alt { background: var(--porcelain); }
.section-head { max-width: 680px; margin-bottom: 64px; }
.section-head h2 { font-size: clamp(30px, 3.6vw, 46px); font-weight: 700; line-height: 1.5; }
.section-sub { color: var(--ink-2); margin-top: 14px; font-size: 16.5px; }

/* ─── فیلتر محصولات ─── */
.filter-bar { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 56px; }
.filter-btn {
  font-family: inherit; font-size: 14.5px; font-weight: 500;
  padding: 11px 26px; border-radius: 999px;
  border: 1.5px solid var(--line); background: var(--white); color: var(--ink-2);
  cursor: pointer; transition: all .22s;
}
.filter-btn:hover { border-color: var(--cyan); color: var(--cyan); }
.filter-btn.is-active { background: var(--navy); border-color: var(--navy); color: #fff; box-shadow: 0 12px 26px -14px rgba(10,46,92,.55); }

/* ─── شبکه محصولات ─── */
.product-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; }
.product-card {
  background: var(--white);
  border: none;
  border-radius: var(--r-md);
  overflow: hidden;
  cursor: pointer;
  text-align: inherit;
  font-family: inherit;
  padding: 0;
  box-shadow: var(--shadow-soft);
  transition: box-shadow .3s var(--ease), transform .3s var(--ease);
}
.product-card:hover { box-shadow: var(--shadow-lift); transform: translateY(-6px); }
.card-media {
  background: var(--white);
  padding: 26px 22px;
  display: grid; place-items: center;
  aspect-ratio: 1 / 0.9;
}
.card-media img { max-height: 100%; object-fit: contain; transition: transform .4s var(--ease); }
.product-card:hover .card-media img { transform: scale(1.05); }
.card-body { display: block; padding: 4px 24px 24px; }
.card-title { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }
.card-title .mono { font-size: 15.5px; font-weight: 700; color: var(--navy); }
.card-title small { font-size: 13.5px; color: var(--ink-2); font-weight: 400; }
.card-spec { display: flex; align-items: baseline; gap: 8px; margin-top: 10px; font-size: 12.5px; color: var(--ink-2); }
.card-spec .leader { border-bottom-color: rgba(10,46,92,.14); transform: translateY(-5px); }
.card-spec .code { font-family: var(--mono); color: var(--cyan); font-weight: 600; }

/* ─── درباره ─── */
.about-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 100px; align-items: start; }
.about-copy h2 { font-size: clamp(30px, 3.6vw, 46px); font-weight: 700; line-height: 1.5; margin-bottom: 22px; }
.about-copy > p { color: var(--ink-2); margin-bottom: 18px; max-width: 58ch; font-size: 16.5px; }
.about-figure { position: sticky; top: 120px; margin: 0; }
.about-figure img { border-radius: var(--r-lg); box-shadow: var(--shadow-lift); aspect-ratio: 4/5; object-fit: cover; }
.about-figure figcaption { margin-top: 16px; font-size: 12.5px; color: var(--ink-2); }

.timeline { list-style: none; margin-top: 48px; border-right: 2px dotted rgba(10,46,92,.2); padding-right: 34px; }
.timeline li { position: relative; padding-bottom: 34px; }
.timeline li:last-child { padding-bottom: 0; }
.timeline li::before {
  content: ""; position: absolute; right: -41px; top: 12px;
  width: 12px; height: 12px; border-radius: 50%;
  background: var(--amber); border: 3px solid var(--porcelain);
  box-shadow: 0 0 0 1.5px var(--amber);
}
.timeline time { font-weight: 700; font-size: 16px; color: var(--navy); display: block; }
.timeline p { font-size: 14.5px; color: var(--ink-2); }

/* ─── گواهینامه‌ها ─── */
.cert-list { list-style: none; max-width: 820px; display: grid; gap: 14px; }
.cert-list li {
  display: flex; align-items: baseline; gap: 16px;
  padding: 22px 30px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  transition: box-shadow .25s, transform .25s;
}
.cert-list li:hover { box-shadow: var(--shadow-soft); transform: translateX(-4px); }
.cert-list strong { font-weight: 700; font-size: 16px; white-space: nowrap; }
.cert-list li > span:last-child { color: var(--ink-2); font-size: 14px; text-align: left; }

/* ─── همکاری ─── */
.section-navy {
  background:
    radial-gradient(700px 420px at 88% -20%, rgba(0,173,239,.16) 0%, transparent 60%),
    var(--navy-deep);
  color: #fff;
  border-radius: var(--r-lg);
  margin-inline: clamp(12px, 2vw, 32px);
}
.section-navy .section-head h2 { color: #fff; }
.section-navy .section-sub { color: #9FB4CE; }
.coop-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
.coop-card {
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: var(--r-md);
  padding: 44px 40px;
  transition: background-color .25s;
}
.coop-card:hover { background: rgba(255,255,255,.08); }
.coop-card h3 { font-size: 21px; font-weight: 700; margin-bottom: 14px; }
.coop-card p { color: #9FB4CE; font-size: 15px; margin-bottom: 32px; }

/* ─── تماس ─── */
.contact-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 100px; align-items: start; }
.contact-grid h2 { font-size: clamp(28px, 3.2vw, 40px); font-weight: 700; margin-bottom: 30px; }
.contact-list { list-style: none; }
.contact-list li { padding: 20px 0; border-bottom: 1px solid var(--line); display: grid; grid-template-columns: 130px 1fr; gap: 16px; align-items: baseline; }
.contact-list li:last-child { border-bottom: none; }
.contact-list strong { font-weight: 700; font-size: 14.5px; }
.contact-list p { color: var(--ink-2); font-size: 15px; }
.contact-list a:hover { color: var(--cyan); }
.catalog-card {
  background: var(--porcelain);
  border-radius: var(--r-lg);
  padding: 44px 40px;
}
.catalog-tag { color: var(--cyan); font-size: 12px; font-weight: 600; margin-bottom: 12px; }
.catalog-card h3 { font-size: 21px; font-weight: 700; margin-bottom: 12px; }
.catalog-card p { color: var(--ink-2); font-size: 14.5px; margin-bottom: 30px; }

/* ─── پابرگ ─── */
.site-footer { background: var(--navy-deep); color: #9FB4CE; padding: 72px 0 44px; margin-top: 130px; }
.footer-row { display: grid; grid-template-columns: 1fr auto; gap: 40px 80px; align-items: start; }
.footer-logo { height: 78px; width: auto; margin-bottom: 18px; }
.footer-brand p { font-size: 14px; line-height: 2.1; }
.footer-brand .mono { font-size: 11.5px; opacity: .65; }
.footer-nav { display: flex; gap: 8px; flex-wrap: wrap; }
.footer-nav a { font-size: 14px; color: #9FB4CE; padding: 8px 16px; border-radius: 999px; transition: color .2s, background-color .2s; }
.footer-nav a:hover { color: #fff; background: rgba(255,255,255,.07); }
.footer-copy { grid-column: 1 / -1; border-top: 1px solid rgba(255,255,255,.1); padding-top: 28px; font-size: 13px; }

/* ─── مودال محصول ─── */
.product-dialog {
  border: none; border-radius: var(--r-lg); padding: 0;
  width: min(920px, calc(100vw - 32px));
  max-height: calc(100dvh - 48px);
  box-shadow: 0 50px 110px -30px rgba(7,31,61,.55);
}
.product-dialog::backdrop { background: rgba(7,31,61,.5); backdrop-filter: blur(6px); }
.dialog-inner { display: grid; grid-template-columns: 1fr 1fr; direction: rtl; font-family: "Vazirmatn", Tahoma, sans-serif; color: var(--navy); }
.dialog-media { background: var(--white); display: grid; place-items: center; padding: 40px; }
.dialog-media img { max-height: 400px; object-fit: contain; }
.dialog-body { padding: 40px 40px 34px; overflow-y: auto; max-height: calc(100dvh - 48px); background: var(--porcelain); }
.dialog-title { display: flex; align-items: baseline; gap: 12px; margin-bottom: 8px; }
.dialog-title .mono { font-size: 27px; font-weight: 700; }
.dialog-title span:last-child { color: var(--ink-2); font-size: 16px; }
.dialog-note { color: var(--ink-2); font-size: 14.5px; margin-bottom: 24px; }
.spec-sheet { list-style: none; margin-bottom: 28px; }
.spec-sheet li { display: flex; align-items: baseline; gap: 10px; padding: 12px 0; font-size: 14.5px; border-bottom: 1px solid var(--line); }
.spec-sheet li span:first-child { color: var(--ink-2); white-space: nowrap; }
.spec-sheet li span:last-child { font-weight: 600; }
.spec-sheet .mono { color: var(--cyan); font-weight: 700; }
.dialog-life { margin: 0 0 28px; }
.dialog-life img { border-radius: var(--r-md); }
.dialog-close {
  position: absolute; top: 18px; inset-inline-end: 18px; z-index: 2;
  width: 40px; height: 40px; border-radius: 50%;
  border: none; background: var(--white); color: var(--navy);
  font-size: 22px; line-height: 1; cursor: pointer;
  box-shadow: var(--shadow-soft);
  transition: color .2s, transform .2s;
}
.dialog-close:hover { color: var(--cyan); transform: rotate(90deg); }

/* ─── انیمیشن ورود ─── */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity var(--dur) var(--ease), transform var(--dur) var(--ease); }
.reveal.is-in { opacity: 1; transform: none; }
.product-card.reveal { transition-delay: calc(var(--i, 0) * 45ms); }

/* ─── واکنش‌گرا ─── */
@media (max-width: 1024px) {
  .product-grid { grid-template-columns: repeat(3, 1fr); gap: 20px; }
  .hero-grid { gap: 56px; }
  .about-grid, .contact-grid { grid-template-columns: 1fr; gap: 64px; }
  .about-figure { position: static; max-width: 540px; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 820px) {
  .main-nav {
    display: none;
    position: absolute; inset-inline: 0; top: 84px;
    background: #fff; border-bottom: 1px solid var(--line);
    flex-direction: column; gap: 4px; padding: 16px 24px 24px;
    box-shadow: 0 30px 40px -30px rgba(10,46,92,.2);
  }
  .main-nav.is-open { display: flex; }
  .main-nav a { padding: 13px 16px; border-radius: 12px; }
  .nav-toggle { display: block; }
  .hero { padding: 56px 0 100px; }
  .hero-grid { grid-template-columns: 1fr; }
  .hero-figure { max-width: 500px; }
  .section { padding: 84px 0; }
  .section-head { margin-bottom: 44px; }
  .product-grid { grid-template-columns: repeat(2, 1fr); gap: 16px; }
  .coop-grid { grid-template-columns: 1fr; }
  .dialog-inner { grid-template-columns: 1fr; }
  .dialog-media { padding: 28px; }
  .dialog-media img { max-height: 250px; }
  .footer-row { grid-template-columns: 1fr; }
  .cert-list li { flex-wrap: wrap; padding: 18px 22px; }
  .cert-list li .leader { display: none; }
  .cert-list li > span:last-child { text-align: right; width: 100%; }
  .trust-row { transform: translateY(-24px); }
  .site-footer { margin-top: 84px; }
}
@media (max-width: 480px) {
  .container { padding-inline: 20px; }
  .product-grid { grid-template-columns: 1fr 1fr; }
  .card-media { padding: 16px 14px; }
  .card-body { padding: 2px 16px 16px; }
  .card-title { flex-direction: column; gap: 2px; }
  .card-spec { display: none; }
  .btn-ghost { display: none; }
  .contact-list li { grid-template-columns: 1fr; gap: 2px; }
  .stats-grid { gap: 20px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .product-card, .card-media img, .btn, .dialog-close { transition: none; }
}

/* ═══════════════════════════════════════════════════════
   بخش‌های نسخه کامل: چرا کسری، فرم، FAQ + موشن‌ها
   ═══════════════════════════════════════════════════════ */

/* ─── چرا کسری ─── */
.why-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.why-card {
  position: relative;
  background: var(--porcelain);
  border-radius: var(--r-md);
  padding: 36px 30px 32px;
  overflow: hidden;
  transition: background-color .3s, transform .3s var(--ease), box-shadow .3s;
}
.why-card:hover { background: var(--white); box-shadow: var(--shadow-lift); transform: translateY(-6px); }
.why-num {
  display: block;
  font-size: 13px; font-weight: 700; color: var(--cyan);
  margin-bottom: 18px;
}
.why-card h3 { font-size: 17.5px; font-weight: 700; line-height: 1.7; margin-bottom: 12px; }
.why-card p { font-size: 14px; color: var(--ink-2); line-height: 2; }
.why-card.reveal { transition-delay: calc(var(--i, 0) * 80ms); }

/* ─── همکاری: سه ستون ─── */
.coop-grid { grid-template-columns: repeat(3, 1fr); }
.coop-card.reveal { transition-delay: calc(var(--i, 0) * 90ms); }
.cert-list li.reveal { transition-delay: calc(var(--i, 0) * 70ms); }
.timeline li.reveal { transition-delay: calc(var(--i, 0) * 90ms); }

/* ─── فرم همکاری ─── */
.form-grid { display: grid; grid-template-columns: .85fr 1.15fr; gap: 80px; align-items: start; }
.form-head h2 { font-size: clamp(28px, 3.2vw, 40px); font-weight: 700; line-height: 1.5; letter-spacing: -.015em; }
.form-note {
  margin-top: 22px; font-size: 13.5px; color: var(--ink-2);
  background: var(--porcelain); border-radius: var(--r-sm);
  padding: 14px 20px;
  border-inline-start: 3px solid var(--amber);
}
.coop-form {
  display: grid; grid-template-columns: 1fr 1fr; gap: 18px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 40px;
  box-shadow: var(--shadow-soft);
}
.field { display: flex; flex-direction: column; gap: 8px; }
.field-wide { grid-column: 1 / -1; }
.field label { font-size: 13.5px; font-weight: 600; color: var(--navy); }
.field input, .field select, .field textarea {
  font-family: inherit; font-size: 15px; color: var(--navy);
  background: var(--porcelain);
  border: 1.5px solid transparent;
  border-radius: var(--r-sm);
  padding: 13px 16px;
  transition: border-color .2s, background-color .2s;
}
.field textarea { resize: vertical; min-height: 110px; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--cyan); background: var(--white);
}
.coop-form .btn { justify-self: start; }

/* ─── FAQ آکاردئونی ─── */
.faq-list { max-width: 780px; display: grid; gap: 12px; }
.faq-item {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  overflow: hidden;
  transition: box-shadow .25s, border-color .25s;
}
.faq-item[open] { box-shadow: var(--shadow-soft); border-color: rgba(0,173,239,.35); }
.faq-item summary {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 20px 26px;
  font-size: 15.5px; font-weight: 600;
  cursor: pointer; list-style: none;
  transition: color .2s;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary:hover { color: var(--cyan); }
.faq-icon { position: relative; width: 22px; height: 22px; flex: none; }
.faq-icon::before, .faq-icon::after {
  content: ""; position: absolute; inset: 0; margin: auto;
  background: var(--cyan); border-radius: 2px;
  transition: transform .3s var(--ease);
}
.faq-icon::before { width: 14px; height: 2px; }
.faq-icon::after { width: 2px; height: 14px; }
.faq-item[open] .faq-icon::after { transform: rotate(90deg); }
.faq-a { padding: 0 26px 22px; }
.faq-a p { font-size: 14.5px; color: var(--ink-2); line-height: 2.1; max-width: 65ch; }

/* ─── چیپ ویژگی در مودال ─── */
.dialog-highlight {
  display: inline-block;
  font-size: 12.5px; font-weight: 600; color: var(--cyan);
  background: var(--cyan-soft);
  border-radius: 999px;
  padding: 5px 16px;
  margin-bottom: 14px;
}

/* ─── موشن: سکانس ورود هیرو ─── */
.hero-seq { opacity: 0; transform: translateY(26px); }
body.is-loaded .hero-seq {
  opacity: 1; transform: none;
  transition: opacity .8s var(--ease), transform .8s var(--ease);
  transition-delay: calc(var(--seq, 0) * 120ms);
}
.hero-figure.hero-seq { transform: translateY(26px) scale(.97); }
body.is-loaded .hero-figure.hero-seq { transform: none; }
.hero-figure img { will-change: transform; transition: transform .1s linear; }

/* ─── موشن: هدر هنگام اسکرول ─── */
.site-header { transition: box-shadow .3s; }
.site-header.is-scrolled { box-shadow: 0 10px 34px -18px rgba(10,46,92,.18); }

/* ─── موشن: باز شدن مودال ─── */
@keyframes dlg-in {
  from { opacity: 0; transform: translateY(28px) scale(.97); }
  to   { opacity: 1; transform: none; }
}
@keyframes backdrop-in { from { opacity: 0; } to { opacity: 1; } }
.product-dialog[open] { animation: dlg-in .45s var(--ease); }
.product-dialog[open]::backdrop { animation: backdrop-in .45s ease; }

/* ─── LTR (انگلیسی) ─── */
[dir="ltr"] body, [dir="ltr"] { letter-spacing: 0; }
[dir="ltr"] .timeline { border-right: none; border-left: 2px dotted rgba(10,46,92,.2); padding-right: 0; padding-left: 34px; }
[dir="ltr"] .timeline li::before { right: auto; left: -41px; }
[dir="ltr"] .hero-index a:hover { transform: translateX(4px); }
[dir="ltr"] .cert-list li:hover { transform: translateX(4px); }
[dir="ltr"] .dialog-inner { direction: ltr; }
[dir="ltr"] .brand-text small { letter-spacing: .05em; }

/* ─── واکنش‌گرا: بخش‌های جدید ─── */
@media (max-width: 1024px) {
  .why-grid { grid-template-columns: repeat(2, 1fr); }
  .coop-grid { grid-template-columns: 1fr; }
  .form-grid { grid-template-columns: 1fr; gap: 44px; }
}
@media (max-width: 820px) {
  .why-grid { grid-template-columns: 1fr 1fr; gap: 14px; }
  .why-card { padding: 26px 22px 24px; }
  .coop-form { padding: 26px 20px; grid-template-columns: 1fr; }
  .faq-item summary { padding: 16px 18px; font-size: 14.5px; }
  .faq-a { padding: 0 18px 18px; }
}
@media (max-width: 480px) {
  .why-grid { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  .hero-seq, body.is-loaded .hero-seq { opacity: 1; transform: none; transition: none; }
  .product-dialog[open], .product-dialog[open]::backdrop { animation: none; }
  .why-card, .faq-icon::before, .faq-icon::after { transition: none; }
  .hero-figure img { transition: none; }
}

/* ═══════════════════════════════════════════════════════
   بازنگری برای مخاطب ۵۰+ : خوانایی، توازن، کارت و جزئیات محصول
   ═══════════════════════════════════════════════════════ */

/* ─── خوانایی پایه: فونت درشت‌تر، کنتراست بالاتر ─── */
:root { --ink-2: #44546C; }
body { font-size: 17px; }
.lede { font-size: 18.5px; }
.section-sub { font-size: 17.5px; }
.eyebrow { font-size: 15px; }
.main-nav a { font-size: 15.5px; }
.idx-name { font-size: 18px; }
.idx-count { font-size: 14.5px; }
.btn { font-size: 16px; padding: 15px 36px; }
.btn-ghost { font-size: 15px; padding: 12px 26px; }
.filter-btn { font-size: 15.5px; padding: 12px 28px; }
.leader { border-bottom-color: rgba(10,46,92,.3); }
.why-card h3 { font-size: 18.5px; }
.why-card p { font-size: 15px; }
.faq-item summary { font-size: 16.5px; }
.faq-a p { font-size: 15.5px; }
.contact-list p { font-size: 16px; }
.field label { font-size: 15px; }
.field input, .field select, .field textarea { font-size: 16px; padding: 14px 16px; }
.timeline p { font-size: 15px; }
.cert-list li > span:last-child { font-size: 15px; }
.coop-card p { font-size: 15.5px; }

/* ─── توازن چپ و راست: سرصفحه‌ها و فهرست‌ها وسط‌چین ─── */
h1, h2, h3 { text-wrap: balance; }
.section-head { margin-inline: auto; text-align: center; }
.section-head .eyebrow { justify-content: center; }
.filter-bar { justify-content: center; }
.cert-list, .faq-list { margin-inline: auto; }
.stats-grid { max-width: 1000px; margin-inline: auto; }

/* ─── کارت محصول: نام فارسی در اولویت + دکمه دیدنی ─── */
.product-grid { grid-template-columns: repeat(3, 1fr); gap: 30px; }
.product-card { border: 1px solid var(--line); }
.product-card:hover { border-color: var(--cyan); }
.card-media { aspect-ratio: 1 / 0.82; padding: 30px 26px 18px; }
.card-body { padding: 0 26px 24px; display: block; text-align: center; }
.card-name { display: block; font-size: 19px; font-weight: 700; color: var(--navy); line-height: 1.8; }
.card-sub { display: block; font-size: 13px; color: var(--ink-2); margin-top: 2px; }
.card-foot {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  margin-top: 16px; padding-top: 14px;
  border-top: 1px solid var(--line);
}
.card-cat { font-size: 13.5px; color: var(--ink-2); }
.card-more {
  font-size: 14.5px; font-weight: 700; color: var(--cyan);
  display: inline-flex; align-items: center; gap: 6px;
}
.card-more::after { content: "←"; transition: transform .25s var(--ease); }
[dir="ltr"] .card-more::after { content: "→"; }
.product-card:hover .card-more::after { transform: translateX(-4px); }
[dir="ltr"] .product-card:hover .card-more::after { transform: translateX(4px); }

/* ─── مودال جزئیات: عنوان فارسی درشت، مشخصات خوانا، تماس تلفنی ─── */
.dialog-body { padding: 44px 44px 36px; }
.dialog-title { font-size: 30px; font-weight: 700; line-height: 1.6; margin-bottom: 2px; }
.dialog-sub { font-size: 14px; color: var(--ink-2); margin-bottom: 16px; display: block; }
.dialog-highlight { font-size: 13.5px; padding: 7px 18px; }
.dialog-note { font-size: 16px; line-height: 2.1; margin-bottom: 26px; }
.spec-sheet { margin-bottom: 30px; }
.spec-sheet li { font-size: 16px; padding: 14px 0; }
.spec-sheet li span:first-child { font-weight: 500; }
.dialog-cta { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.dialog-cta .btn { text-align: center; padding: 15px 20px; }
.dialog-phone { text-align: center; margin-top: 14px; font-size: 15px; color: var(--ink-2); }
.dialog-close { width: 48px; height: 48px; font-size: 26px; }
.dialog-media { padding: 44px; }
.dialog-media img { max-height: 420px; }

/* ─── توازن هیرو در حالت تک‌ستونه ─── */
@media (max-width: 820px) {
  .hero-copy { text-align: center; }
  .hero-copy .eyebrow { justify-content: center; }
  .lede { margin-inline: auto; }
  .hero-index { margin-inline: auto; }
  .hero-cta { justify-content: center; }
  .hero-figure { margin-inline: auto; }
  .form-head { text-align: center; }
  .form-head .eyebrow { justify-content: center; }
  .form-note { text-align: right; }
  [dir="ltr"] .form-note { text-align: left; }
}

/* ─── ریسپانسیو کارت‌ها ─── */
@media (max-width: 1024px) { .product-grid { grid-template-columns: repeat(2, 1fr); gap: 20px; } }
@media (max-width: 820px)  { .product-grid { grid-template-columns: repeat(2, 1fr); } .dialog-cta { grid-template-columns: 1fr; } }
@media (max-width: 560px)  {
  .product-grid { grid-template-columns: 1fr; gap: 18px; }
  .card-media { aspect-ratio: auto; max-height: 300px; }
  .card-body { padding: 0 20px 20px; }
}

/* ─── اصلاحات ممیزی طراحی ─── */
[dir="ltr"] h1, [dir="ltr"] h2 { letter-spacing: -.015em; }
[dir="ltr"] .stat strong { letter-spacing: -.02em; }
.section-sub { text-wrap: pretty; }
.lang-switch button { padding: 10px 16px; font-size: 13.5px; }
.nav-toggle { padding: 12px; }
.coop-form .btn { justify-self: stretch; }
.why-num { font-size: 13.5px; }
@media (max-width: 1024px) { .about-figure { margin-inline: auto; } }

/* ═══════════════════════════════════════════════════════
   بخش‌های تکمیلی: جستجو، گالری گواهینامه، راهنمای خرید، تماس شناور
   ═══════════════════════════════════════════════════════ */

/* ─── جستجوی محصول ─── */
.search-wrap { display: flex; justify-content: center; margin-bottom: 22px; }
#productSearch {
  font-family: inherit; font-size: 16px; color: var(--navy);
  width: min(440px, 100%);
  background: var(--white);
  border: 1.5px solid var(--line);
  border-radius: 999px;
  padding: 14px 24px;
  transition: border-color .2s, box-shadow .2s;
}
#productSearch:focus { outline: none; border-color: var(--cyan); box-shadow: 0 0 0 4px rgba(0,173,239,.12); }
#productSearch::placeholder { color: var(--ink-2); }
.grid-empty {
  grid-column: 1 / -1; text-align: center;
  color: var(--ink-2); font-size: 16.5px;
  background: var(--white); border: 1px dashed var(--line); border-radius: var(--r-md);
  padding: 48px 24px;
}

/* ─── گالری گواهینامه‌ها ─── */
.section-head-secondary { margin-top: 88px; margin-bottom: 40px; }
.section-head-secondary h3 { font-size: clamp(22px, 2.6vw, 30px); font-weight: 700; }
.cert-gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; max-width: 1000px; margin-inline: auto; }
.cert-card {
  font-family: inherit; cursor: zoom-in; border: 1px solid var(--line);
  background: var(--white); border-radius: var(--r-md);
  padding: 22px 18px 18px; text-align: center;
  transition: box-shadow .3s var(--ease), transform .3s var(--ease), border-color .3s;
}
.cert-card:hover { box-shadow: var(--shadow-lift); transform: translateY(-4px); border-color: var(--cyan); }
.cert-card img { max-height: 240px; margin-inline: auto; object-fit: contain; }
.cert-card span { display: block; margin-top: 14px; font-size: 14.5px; font-weight: 600; color: var(--navy); }
.cert-card.reveal { transition-delay: calc(var(--i, 0) * 70ms); }

/* ─── راهنمای خرید ─── */
.guide-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.guide-card {
  background: var(--porcelain); border-radius: var(--r-md);
  padding: 34px 30px 30px;
  display: flex; flex-direction: column;
  transition: background-color .3s, box-shadow .3s, transform .3s var(--ease);
}
.guide-card:hover { background: var(--white); box-shadow: var(--shadow-lift); transform: translateY(-4px); }
.guide-card h3 { font-size: 17.5px; font-weight: 700; line-height: 1.8; margin-bottom: 12px; }
.guide-card p { font-size: 15px; color: var(--ink-2); flex: 1; margin-bottom: 20px; }
.guide-more {
  font-family: inherit; font-size: 15px; font-weight: 700; color: var(--cyan);
  background: none; border: none; cursor: pointer; padding: 4px 0;
  align-self: flex-start;
  display: inline-flex; align-items: center; gap: 6px;
}
.guide-more::after { content: "←"; transition: transform .25s var(--ease); }
[dir="ltr"] .guide-more::after { content: "→"; }
.guide-more:hover::after { transform: translateX(-4px); }
[dir="ltr"] .guide-more:hover::after { transform: translateX(4px); }
.guide-card.reveal { transition-delay: calc(var(--i, 0) * 80ms); }

/* ─── لایت‌باکس ─── */
.lightbox {
  border: none; border-radius: var(--r-lg); padding: 0;
  width: min(760px, calc(100vw - 32px));
  max-height: calc(100dvh - 48px);
  box-shadow: 0 50px 110px -30px rgba(7,31,61,.55);
  background: var(--white);
}
.lightbox::backdrop { background: rgba(7,31,61,.55); backdrop-filter: blur(6px); }
.lightbox[open] { animation: dlg-in .4s var(--ease); }
.lightbox-body { padding: 48px 40px 36px; overflow-y: auto; max-height: calc(100dvh - 48px); direction: inherit; }
.lb-img { max-height: 68vh; margin-inline: auto; object-fit: contain; border-radius: var(--r-sm); box-shadow: var(--shadow-soft); }
.lb-caption { text-align: center; margin-top: 18px; font-size: 15.5px; font-weight: 600; color: var(--navy); }
.lb-article h3 { font-size: 21px; font-weight: 700; line-height: 1.8; margin-bottom: 18px; color: var(--navy); }
.lb-article p { font-size: 16px; line-height: 2.2; color: var(--ink-2); margin-bottom: 14px; }

/* ─── دکمه شناور تماس ─── */
.call-fab {
  position: fixed; bottom: 26px; inset-inline-end: 26px; z-index: 60;
  width: 62px; height: 62px; border-radius: 50%;
  background: var(--navy); color: #fff;
  display: grid; place-items: center;
  box-shadow: 0 18px 40px -12px rgba(10,46,92,.55);
  transition: background-color .25s, transform .25s var(--ease);
}
.call-fab:hover { background: var(--cyan); transform: translateY(-3px); }
@media (prefers-reduced-motion: reduce) { .call-fab { transition: none; } }

/* ─── واکنش‌گرا ─── */
@media (max-width: 1024px) {
  .cert-gallery, .guide-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 820px) {
  .cert-gallery { grid-template-columns: repeat(2, 1fr); gap: 14px; }
  .cert-card img { max-height: 170px; }
  .guide-grid { grid-template-columns: 1fr; gap: 16px; }
  .lightbox-body { padding: 32px 22px 26px; }
  .call-fab { width: 56px; height: 56px; bottom: 18px; inset-inline-end: 18px; }
  .section-head-secondary { margin-top: 56px; }
}
@media (max-width: 480px) {
  .cert-gallery { grid-template-columns: 1fr 1fr; }
  .cert-card span { font-size: 12.5px; }
}

/* ─── وسط‌چین کردن دیالوگ‌ها (ریست * {margin:0} مارجین خودکار را حذف کرده بود) ─── */
.product-dialog, .lightbox { margin: auto; }

/* ─── راهنمای اسکرول در دیالوگ‌ها ─── */
.scroll-hint {
  position: absolute; bottom: 16px; inset-inline: 0; margin-inline: auto;
  width: max-content; z-index: 6;
  display: flex; align-items: center; gap: 8px;
  font-family: inherit; font-size: 14.5px; font-weight: 700;
  background: var(--navy); color: #fff;
  border: none; border-radius: 999px;
  padding: 12px 24px;
  box-shadow: 0 14px 34px -10px rgba(10,46,92,.55);
  cursor: pointer;
  opacity: 0; pointer-events: none;
  transition: opacity .35s, background-color .25s;
}
.scroll-hint.is-visible { opacity: 1; pointer-events: auto; }
.scroll-hint:hover { background: var(--cyan); }
.scroll-hint svg { animation: hint-bounce 1.6s var(--ease) infinite; }
@keyframes hint-bounce {
  0%, 100% { transform: translateY(-1px); }
  50% { transform: translateY(4px); }
}
@media (prefers-reduced-motion: reduce) {
  .scroll-hint svg { animation: none; }
  .scroll-hint { transition: none; }
}

/* ─── حالت عمودی مودال محصول: کل صفحه (با تصویر) یکجا اسکرول شود ─── */
@media (max-width: 820px) {
  .product-dialog { overflow: hidden; }
  .dialog-inner { overflow-y: auto; max-height: calc(100dvh - 48px); overscroll-behavior: contain; }
  .dialog-body { overflow: visible; max-height: none; }
  .dialog-media { padding: 24px 24px 8px; }
  .dialog-media img { max-height: 300px; }
}

/* ═══════════════════════════════════════════════════════
   لایه چندصفحه‌ای: هدر صفحات داخلی، نمایندگان، امور مشتریان،
   تماس، ناوبری فعال، بنر دعوت
   ═══════════════════════════════════════════════════════ */

/* ناوبری: صفحه فعال */
.main-nav a[aria-current="page"] {
  color: var(--navy);
  background: var(--porcelain);
  font-weight: 700;
}

/* سربرگ صفحات داخلی */
.page-hero {
  background:
    radial-gradient(900px 420px at 85% -10%, var(--cyan-soft) 0%, transparent 60%),
    var(--porcelain);
  padding: 84px 0 64px;
  text-align: center;
}
.page-hero .eyebrow { justify-content: center; }
.page-hero h1 {
  font-size: clamp(30px, 4.2vw, 46px);
  font-weight: 800;
  line-height: 1.6;
  margin-bottom: 18px;
}
.page-hero .lede {
  max-width: 720px;
  margin-inline: auto;
  color: var(--ink-2);
  font-size: 17.5px;
}
.page-hero .hero-cta { justify-content: center; margin-top: 30px; }

/* مسیر نان (breadcrumb ساده) */
.crumbs {
  display: flex; justify-content: center; align-items: center; gap: 10px;
  font-size: 13.5px; color: var(--ink-2); margin-bottom: 22px;
}
.crumbs a:hover { color: var(--cyan); }
.crumbs .sep { opacity: .5; }

/* مراحل اخذ نمایندگی */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
  counter-reset: step;
}
.step-card {
  position: relative;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: 30px 26px 26px;
  transition: box-shadow .3s var(--ease), transform .3s var(--ease), border-color .3s;
}
.step-card:hover { box-shadow: var(--shadow-soft); transform: translateY(-4px); border-color: var(--cyan); }
.step-num {
  display: inline-flex; align-items: center; justify-content: center;
  width: 46px; height: 46px; border-radius: 50%;
  background: var(--navy); color: #fff;
  font-family: var(--mono); font-size: 17px; font-weight: 700;
  margin-bottom: 16px;
}
.step-card h3 { font-size: 17.5px; font-weight: 700; margin-bottom: 8px; }
.step-card p { color: var(--ink-2); font-size: 14.5px; }
.step-card::after {
  content: "";
  position: absolute; top: 52px; inset-inline-end: -22px;
  width: 22px; border-top: 2px dotted rgba(10,46,92,.25);
}
.step-card:last-child::after { display: none; }

/* کارت تماس امور نمایندگان */
.call-card {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px;
  background: var(--navy); color: #fff;
  border-radius: var(--r-lg);
  padding: 38px 44px;
  margin-top: 56px;
}
.call-card h3 { font-size: 21px; font-weight: 700; margin-bottom: 8px; }
.call-card p { color: #B9C9DE; font-size: 15px; max-width: 560px; }
.call-card .btn { flex: none; }

/* تب‌های امور مشتریان */
.care-tabs {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 10px;
  margin-bottom: 40px;
}
.care-tab {
  font-family: inherit;
  font-size: 15.5px; font-weight: 600;
  color: var(--ink-2);
  background: var(--white);
  border: 1.5px solid var(--line);
  border-radius: 999px;
  padding: 13px 30px;
  cursor: pointer;
  transition: background-color .25s, color .25s, border-color .25s;
}
.care-tab:hover { border-color: var(--cyan); color: var(--navy); }
.care-tab.is-active { background: var(--navy); border-color: var(--navy); color: #fff; }
.care-panel[hidden] { display: none; }
.care-intro { text-align: center; color: var(--ink-2); max-width: 640px; margin: 0 auto 30px; }
.care-note { text-align: center; color: var(--ink-2); font-size: 14px; margin-top: 26px; }

/* فرم‌ها در کارت سفید (مشترک نمایندگی/مشتریان) */
.form-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-soft);
  padding: 40px;
  max-width: 880px;
  margin-inline: auto;
}

/* گزینه‌های رادیویی (وضعیت ملک / نوع ضمانت) */
.radio-row { display: flex; flex-wrap: wrap; gap: 10px; }
.radio-pill { position: relative; }
.radio-pill input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.radio-pill span {
  display: inline-block;
  padding: 11px 24px;
  border: 1.5px solid var(--line);
  border-radius: 999px;
  font-size: 14.5px; font-weight: 500;
  color: var(--ink-2);
  transition: background-color .2s, color .2s, border-color .2s;
}
.radio-pill input:checked + span { background: var(--navy); border-color: var(--navy); color: #fff; }
.radio-pill input:focus-visible + span { outline: 2px solid var(--cyan); outline-offset: 3px; }
.field-note { font-size: 13px; color: var(--ink-2); }

/* صفحه تماس: کارت‌های اطلاعات و خبرنامه */
.contact-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
  margin-top: 10px;
}
.side-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: 32px 30px;
  display: flex; flex-direction: column;
  transition: box-shadow .3s var(--ease), transform .3s var(--ease);
}
.side-card:hover { box-shadow: var(--shadow-soft); transform: translateY(-4px); }
.side-card h3 { font-size: 18.5px; font-weight: 700; margin-bottom: 10px; }
.side-card p { color: var(--ink-2); font-size: 14.5px; margin-bottom: 22px; flex: 1; }
.side-card .btn { align-self: flex-start; }
.nl-form { display: flex; flex-direction: column; gap: 12px; }
.nl-form input {
  font-family: inherit; font-size: 15px;
  border: 1.5px solid var(--line); border-radius: var(--r-sm);
  padding: 12px 14px; background: var(--porcelain);
  transition: border-color .2s;
}
.nl-form input:focus { outline: none; border-color: var(--cyan); background: #fff; }

/* بنر دعوت به نمایندگی (صفحه اصلی) */
.banner-cta {
  background:
    radial-gradient(700px 320px at 15% 110%, rgba(0,173,239,.25) 0%, transparent 60%),
    linear-gradient(120deg, var(--navy-deep), var(--navy));
  border-radius: var(--r-lg);
  color: #fff;
  padding: 56px 56px;
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 28px;
}
.banner-cta h2 { font-size: clamp(24px, 3vw, 32px); font-weight: 800; margin-bottom: 10px; }
.banner-cta p { color: #B9C9DE; max-width: 620px; font-size: 15.5px; }
.banner-cta .btn { flex: none; }

/* دکمه «مشاهده همه» زیر بخش‌ها */
.section-cta { text-align: center; margin-top: 44px; }

/* واکنش‌گرا */
@media (max-width: 1024px) {
  .steps-grid { grid-template-columns: repeat(2, 1fr); }
  .step-card::after { display: none; }
  .contact-cards { grid-template-columns: 1fr; }
}
@media (max-width: 820px) {
  .page-hero { padding: 60px 0 46px; }
  .form-card { padding: 28px 22px; }
  .call-card { padding: 30px 26px; }
  .banner-cta { padding: 40px 28px; }
}
@media (max-width: 560px) {
  .steps-grid { grid-template-columns: 1fr; }
  .care-tab { flex: 1 1 100%; text-align: center; }
}
.field-label-text { font-size: 15px; font-weight: 600; color: var(--navy); }
.why-grid-3 { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 1024px) { .why-grid-3 { grid-template-columns: 1fr; } }

/* در زبان فارسی، عناصر mono (کدها، شماره‌ها) با وزیرمتن نمایش داده می‌شوند
   تا ارقام فارسی یکدست باشند (SF Mono رقم فارسی ندارد) */
html[lang="fa"] .mono { font-family: "Vazirmatn", "Segoe UI", Tahoma, sans-serif; letter-spacing: 0; }

/* ═══════════════════════════════════════════════════════
   نسخه ۲ — بازطراحی: بافت نقطه‌چین هیرو، کاشی گروه‌ها،
   مسیر تولید، معرفی گروه در کاتالوگ
   ═══════════════════════════════════════════════════════ */

/* بافت نقطه‌چین ظریف در هیرو — پژواک امضای برند */
.hero::before {
  content: "";
  position: absolute; inset: 0;
  background-image: radial-gradient(circle, rgba(10, 46, 92, .055) 1.5px, transparent 1.6px);
  background-size: 28px 28px;
  mask-image: linear-gradient(180deg, #000 0%, transparent 72%);
  -webkit-mask-image: linear-gradient(180deg, #000 0%, transparent 72%);
  pointer-events: none;
}
.hero-grid { position: relative; }

/* کاشی گروه‌های محصول */
.cat-tiles {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
  margin-bottom: 52px;
}
.cat-tile {
  display: flex; flex-direction: column; align-items: center; gap: 4px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: 28px 22px 24px;
  text-align: center;
  transition: box-shadow .3s var(--ease), transform .3s var(--ease), border-color .3s;
}
.cat-tile:hover { box-shadow: var(--shadow-lift); transform: translateY(-6px); border-color: var(--cyan); }
.cat-tile img {
  height: 150px; width: auto; max-width: 100%;
  object-fit: contain;
  margin-bottom: 14px;
  transition: transform .35s var(--ease);
}
.cat-tile:hover img { transform: scale(1.05); }
.cat-tile strong { font-size: 17.5px; font-weight: 700; }
.cat-tag { font-size: 13px; color: var(--ink-2); }
.cat-tile-count {
  margin-top: 10px;
  font-size: 12.5px;
  color: var(--navy);
  background: var(--porcelain);
  border-radius: 999px;
  padding: 5px 16px;
}
.cat-tile:hover .cat-tile-count { background: var(--cyan-soft); color: var(--cyan); }

/* مسیر تولید */
.process-grid {
  position: relative;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 24px;
  text-align: center;
}
.process-grid::before {
  content: "";
  position: absolute; top: 28px; left: 9%; right: 9%;
  border-top: 2px dotted rgba(10, 46, 92, .22);
}
.process-step { position: relative; }
.process-num {
  position: relative; z-index: 1;
  display: inline-flex; align-items: center; justify-content: center;
  width: 56px; height: 56px; border-radius: 50%;
  background: var(--white);
  border: 2px solid var(--cyan);
  color: var(--navy);
  font-size: 19px; font-weight: 700;
  margin-bottom: 16px;
  box-shadow: 0 0 0 8px var(--porcelain);
  transition: background-color .3s, color .3s;
}
.process-step:hover .process-num { background: var(--navy); border-color: var(--navy); color: #fff; }
.process-step h3 { font-size: 16.5px; font-weight: 700; margin-bottom: 6px; }
.process-step p { font-size: 13.5px; color: var(--ink-2); line-height: 1.9; }

/* معرفی گروه فعال در کاتالوگ */
.cat-intro {
  display: none;
  max-width: 760px;
  margin: 0 auto 42px;
  text-align: center;
  background: var(--cyan-soft);
  border-radius: var(--r-md);
  padding: 24px 34px;
}
.cat-intro.is-visible { display: block; animation: cat-intro-in .45s var(--ease); }
.cat-intro strong { display: block; font-size: 17px; font-weight: 700; margin-bottom: 6px; }
.cat-intro p { color: var(--ink-2); font-size: 14.5px; margin: 0; }
@keyframes cat-intro-in { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

/* واکنش‌گرا */
@media (max-width: 1024px) {
  .cat-tiles { grid-template-columns: repeat(2, 1fr); }
  .process-grid { grid-template-columns: repeat(3, 1fr); row-gap: 40px; }
  .process-grid::before { display: none; }
}
@media (max-width: 560px) {
  .cat-tiles { grid-template-columns: 1fr; }
  .process-grid { grid-template-columns: 1fr 1fr; }
  .cat-tile img { height: 120px; }
}
@media (prefers-reduced-motion: reduce) {
  .cat-intro.is-visible { animation: none; }
}

/* ═══════════════════════════════════════════════════════
   نسخه ۳ — لایه لوکس و امکانات:
   انتقال صفحات، بزرگ‌نمایی تصویر، فهرست استعلام، مقایسه،
   گالری، بازخورد فرم‌ها، واتساپ، نسخه چاپی
   ═══════════════════════════════════════════════════════ */

/* ─── انتقال نرم بین صفحات (View Transitions) ─── */
@view-transition { navigation: auto; }
::view-transition-old(root) { animation: vt-out .22s var(--ease) both; }
::view-transition-new(root) { animation: vt-in .32s var(--ease) both; }
@keyframes vt-out { to { opacity: 0; transform: translateY(-6px); } }
@keyframes vt-in { from { opacity: 0; transform: translateY(10px); } }
.site-header { view-transition-name: site-header; }
.site-footer { view-transition-name: site-footer; }
@media (prefers-reduced-motion: reduce) {
  ::view-transition-old(root), ::view-transition-new(root) { animation: none; }
}

/* ─── نمایش دوزبانه در صفحات محصول ─── */
[data-loc="en"] { display: none; }
html[lang="en"] [data-loc="en"] { display: revert; }
html[lang="en"] [data-loc="fa"] { display: none; }

/* ─── بزرگ‌نمایی تصویر محصول ─── */
.dialog-media { position: relative; }
.zoom-wrap {
  position: relative; overflow: hidden;
  border-radius: var(--r-md);
  cursor: zoom-in;
  touch-action: pan-y;
}
.zoom-wrap.is-zoomed { cursor: zoom-out; }
.zoom-wrap img { transition: transform .35s var(--ease); transform-origin: center; will-change: transform; }
.zoom-wrap.is-zoomed img { transition: transform .08s linear; }
.zoom-badge {
  position: absolute; bottom: 10px; inset-inline-start: 10px;
  display: inline-flex; align-items: center; gap: 6px;
  background: rgba(10,46,92,.86); color: #fff;
  font-size: 12px; border-radius: 999px; padding: 6px 13px;
  pointer-events: none; opacity: 0; transition: opacity .25s;
}
.zoom-wrap:hover .zoom-badge, .zoom-wrap:focus-visible .zoom-badge { opacity: 1; }
.zoom-wrap.is-zoomed .zoom-badge { opacity: 0; }
@media (prefers-reduced-motion: reduce) { .zoom-wrap img { transition: none; } }

/* ─── دکمه‌های شناور (پشته) ─── */
.fab-stack {
  position: fixed; bottom: 26px; inset-inline-end: 26px; z-index: 60;
  display: flex; flex-direction: column-reverse; gap: 12px; align-items: center;
}
.fab-stack .call-fab { position: static; inset: auto; }
.fab {
  width: 54px; height: 54px; border-radius: 50%;
  display: grid; place-items: center;
  border: none; cursor: pointer;
  background: var(--white); color: var(--navy);
  box-shadow: 0 14px 34px -12px rgba(10,46,92,.45);
  transition: background-color .25s, color .25s, transform .25s var(--ease), opacity .25s;
}
.fab:hover { transform: translateY(-3px); }
.fab-whatsapp { background: #25D366; color: #fff; }
.fab-whatsapp:hover { background: #1FB855; }
.fab-top { opacity: 0; pointer-events: none; }
.fab-top.is-visible { opacity: 1; pointer-events: auto; }
.fab-inquiry { background: var(--amber); color: var(--navy-deep); position: relative; display: none; }
.fab-inquiry.is-visible { display: grid; }
.fab-inquiry:hover { background: #E09612; }
.fab-count {
  position: absolute; top: -4px; inset-inline-start: -4px;
  min-width: 24px; height: 24px; padding: 0 6px;
  border-radius: 999px; background: var(--navy); color: #fff;
  font-size: 12.5px; font-weight: 700;
  display: grid; place-items: center;
  border: 2px solid var(--white);
}
@media (prefers-reduced-motion: reduce) { .fab, .call-fab { transition: none; } }

/* ─── کشوی فهرست استعلام ─── */
.drawer {
  border: none; padding: 0; margin: 0;
  width: min(560px, 100vw); max-width: 100vw;
  height: 100dvh; max-height: 100dvh;
  inset-inline-end: 0; inset-inline-start: auto;
  background: var(--white);
  box-shadow: -30px 0 80px -30px rgba(7,31,61,.4);
}
.drawer::backdrop { background: rgba(7,31,61,.5); backdrop-filter: blur(3px); }
.drawer[open] { animation: drawer-in .4s var(--ease); }
@keyframes drawer-in { from { transform: translateX(var(--drawer-from, 100%)); } }
[dir="rtl"] .drawer { --drawer-from: -100%; }
.drawer-inner { display: flex; flex-direction: column; height: 100dvh; }
.drawer-head {
  padding: 28px 30px 20px; border-bottom: 1px solid var(--line);
  position: relative; flex: none;
}
.drawer-head h2 { font-size: 21px; font-weight: 700; margin-bottom: 8px; }
.drawer-head p { font-size: 14px; color: var(--ink-2); }
.drawer-body { flex: 1; overflow-y: auto; padding: 24px 30px; overscroll-behavior: contain; }
.drawer-foot { flex: none; padding: 20px 30px 26px; border-top: 1px solid var(--line); background: var(--porcelain); }
.drawer-empty { text-align: center; color: var(--ink-2); padding: 50px 20px; font-size: 15px; }

.inq-item {
  display: grid; grid-template-columns: 74px 1fr auto; gap: 16px;
  align-items: center; padding: 14px 0; border-bottom: 1px solid var(--line);
}
.inq-item img { width: 74px; height: 74px; object-fit: contain; border-radius: var(--r-sm); background: var(--porcelain); }
.inq-name { font-weight: 700; font-size: 15.5px; }
.inq-code { font-size: 13px; color: var(--ink-2); }
.inq-qty { display: flex; align-items: center; gap: 8px; }
.inq-qty button {
  width: 36px; height: 36px; border-radius: 50%;
  border: 1.5px solid var(--line); background: var(--white);
  font-size: 18px; font-weight: 700; color: var(--navy); cursor: pointer;
  transition: border-color .2s, color .2s;
}
.inq-qty button:hover { border-color: var(--cyan); color: var(--cyan); }
.inq-qty output { min-width: 32px; text-align: center; font-weight: 700; font-size: 16px; }
.inq-remove {
  background: none; border: none; cursor: pointer; color: var(--ink-2);
  font-size: 13px; padding: 6px 4px; text-decoration: underline;
  transition: color .2s;
}
.inq-remove:hover { color: #C0392B; }
.inq-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 14px; }
.inq-actions .btn { flex: 1 1 auto; text-align: center; }
.inq-form { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 8px; }

/* ─── مقایسه محصولات ─── */
.compare-bar {
  position: fixed; inset-inline: 0; bottom: 0; z-index: 55;
  background: var(--navy); color: #fff;
  padding: 14px 0;
  transform: translateY(110%);
  transition: transform .35s var(--ease);
}
.compare-bar.is-visible { transform: none; }
.compare-row { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; justify-content: center; }
.compare-chips { display: flex; gap: 10px; flex-wrap: wrap; }
.compare-chip {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(255,255,255,.12); border-radius: 999px;
  padding: 7px 8px 7px 16px; font-size: 14px;
}
[dir="ltr"] .compare-chip { padding: 7px 16px 7px 8px; }
.compare-chip button {
  width: 24px; height: 24px; border-radius: 50%; border: none;
  background: rgba(255,255,255,.2); color: #fff; cursor: pointer;
  font-size: 15px; line-height: 1;
}
.compare-chip button:hover { background: var(--amber); color: var(--navy-deep); }
.compare-table-wrap { overflow-x: auto; }
.compare-table { width: 100%; border-collapse: collapse; min-width: 520px; }
.compare-table th, .compare-table td {
  padding: 14px 16px; text-align: start; border-bottom: 1px solid var(--line); font-size: 14.5px;
}
.compare-table thead th { background: var(--porcelain); font-weight: 700; }
.compare-table tbody th { color: var(--ink-2); font-weight: 600; white-space: nowrap; }
.compare-table img { width: 110px; height: 110px; object-fit: contain; }
.compare-table td { font-weight: 600; }

/* دکمه افزودن روی کارت محصول */
.card-add {
  display: inline-flex; align-items: center; gap: 6px;
  margin-top: 12px; padding: 9px 18px;
  border: 1.5px solid var(--line); border-radius: 999px;
  background: var(--white); color: var(--navy);
  font-family: inherit; font-size: 13.5px; font-weight: 600; cursor: pointer;
  transition: border-color .2s, background-color .2s, color .2s;
}
.card-add:hover { border-color: var(--cyan); color: var(--cyan); }
.card-add.is-added { background: var(--navy); border-color: var(--navy); color: #fff; }

/* ─── بازخورد ارسال فرم ─── */
.form-status {
  display: none;
  grid-column: 1 / -1;
  border-radius: var(--r-md);
  padding: 20px 24px;
  border: 1.5px solid;
  animation: cat-intro-in .4s var(--ease);
}
.form-status.is-visible { display: block; }
.form-status strong { display: block; font-size: 16.5px; font-weight: 700; margin-bottom: 6px; }
.form-status p { font-size: 14.5px; margin: 0; }
.form-status.is-ok { background: #EAF7EF; border-color: #9AD3B0; color: #1E5B37; }
.form-status.is-error { background: #FDEDEC; border-color: #E6A9A3; color: #8E2C22; }
.btn[aria-busy="true"] { opacity: .65; pointer-events: none; }
.required-note { grid-column: 1 / -1; font-size: 13px; color: var(--ink-2); }
.hp-field { position: absolute; inset-inline-start: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* ─── گالری ─── */
.gallery-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.gallery-item {
  position: relative; display: block; padding: 0; border: none;
  border-radius: var(--r-md); overflow: hidden; cursor: pointer;
  background: var(--porcelain);
  box-shadow: var(--shadow-soft);
  transition: box-shadow .35s var(--ease), transform .35s var(--ease);
}
.gallery-item:hover { box-shadow: var(--shadow-lift); transform: translateY(-5px); }
.gallery-item img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; transition: transform .5s var(--ease); }
.gallery-item:hover img { transform: scale(1.06); }
.gallery-cap {
  position: absolute; inset-inline: 0; bottom: 0;
  background: linear-gradient(to top, rgba(7,31,61,.86), transparent);
  color: #fff; padding: 26px 20px 16px; text-align: start;
  font-size: 14.5px; font-weight: 600;
}
.gallery-cap small { display: block; font-weight: 400; opacity: .8; font-size: 12.5px; }
@media (prefers-reduced-motion: reduce) { .gallery-item, .gallery-item img { transition: none; } }

/* ─── واکنش‌گرا نسخه ۳ ─── */
@media (max-width: 1024px) {
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 820px) {
  .drawer { width: 100vw; }
  .drawer-head, .drawer-body, .drawer-foot { padding-inline: 20px; }
  .inq-form { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .gallery-grid { grid-template-columns: 1fr; }
  .fab-stack { bottom: 16px; inset-inline-end: 16px; gap: 10px; }
  .inq-item { grid-template-columns: 58px 1fr; }
  .inq-item img { width: 58px; height: 58px; }
  .inq-item .inq-qty { grid-column: 1 / -1; }
}

/* ═══════════ نسخه چاپی ═══════════ */
@media print {
  @page { margin: 16mm 14mm; }
  html, body { background: #fff !important; color: #000; font-size: 11.5pt; line-height: 1.8; }
  .site-header, .site-footer, .fab-stack, .call-fab, .compare-bar, .scroll-hint,
  .nav-toggle, .lang-switch, .filter-bar, .search-wrap, .banner-cta, .call-card,
  .section-cta, .coop-form, .care-tabs, .care-panel, .nl-form, .hero-cta,
  .drawer-foot, .dialog-close, .card-add { display: none !important; }
  .section, .page-hero { padding: 0 0 12mm !important; background: #fff !important; }
  .container { max-width: 100%; padding-inline: 0; }
  a { color: #000; text-decoration: none; }
  a[href^="http"]::after { content: " (" attr(href) ")"; font-size: 9pt; color: #444; }
  a[href^="#"]::after, a[href^="tel"]::after, a[href^="mailto"]::after { content: ""; }
  img { max-width: 100%; page-break-inside: avoid; }
  .reveal, .hero-seq, .product-card, .cat-tile, .why-card, .step-card, .process-step {
    opacity: 1 !important; transform: none !important;
  }
  .product-dialog, .drawer, .lightbox { position: static; display: block; width: auto; max-height: none; box-shadow: none; }
  .product-dialog::backdrop, .drawer::backdrop, .lightbox::backdrop { display: none; }
  .dialog-inner { display: block; }
  .dialog-body { background: #fff; max-height: none; overflow: visible; }
  .spec-sheet li, .inq-item, .step-card, .why-card { page-break-inside: avoid; }
  h1, h2, h3 { page-break-after: avoid; }
  /* سربرگ و پابرگ چاپی برند */
  .print-head, .print-foot { display: block !important; }
  .print-head {
    display: flex; align-items: center; justify-content: space-between;
    gap: 16px; border-bottom: 2px solid #0A2E5C; padding-bottom: 8mm; margin-bottom: 8mm;
  }
  .print-head img { height: 16mm; width: auto; }
  .print-head strong { font-size: 14pt; }
  .print-head span { font-size: 9.5pt; color: #333; }
  .print-foot {
    border-top: 1px solid #999; margin-top: 10mm; padding-top: 4mm;
    font-size: 9.5pt; color: #333; text-align: center;
  }
}
.print-head, .print-foot { display: none; }

/* سلول کارت محصول: کارت + ردیف اقدام */
.product-cell { display: flex; flex-direction: column; }
.product-cell .product-card { flex: 1; }
.card-actions { display: flex; gap: 8px; margin-top: 10px; flex-wrap: wrap; }
.card-actions .card-add { flex: 1 1 auto; justify-content: center; margin-top: 0; }
@media (max-width: 560px) { .card-actions { flex-direction: column; } }

/* اصلاح چیدمان کشوی استعلام */
.drawer-body { min-height: 0; }
.drawer-foot { max-height: 45vh; overflow-y: auto; }
.inq-send-head { font-size: 16.5px; font-weight: 700; margin: 26px 0 14px; padding-top: 20px; border-top: 1px solid var(--line); }
/* ورودی‌های داخل کشو سفید باشند تا از پس‌زمینه جدا شوند */
.drawer .field input, .drawer .field select, .drawer .field textarea { background: var(--white); border-color: #D8E1EE; }
.drawer .field input:focus, .drawer .field textarea:focus { border-color: var(--cyan); }
/* بزرگ‌نمایی در صفحه محصول */
.pp-media .zoom-wrap { width: 100%; }
.pp-media .zoom-wrap img { width: 100%; height: auto; }

/* جلوگیری از تداخل نوار مقایسه با محتوا و دکمه‌های شناور */
body.has-compare-bar { padding-bottom: 96px; }
body.has-compare-bar .fab-stack { bottom: 110px; }
@media (max-width: 560px) {
  body.has-compare-bar { padding-bottom: 132px; }
  body.has-compare-bar .fab-stack { bottom: 146px; }
}

/* حالت «افزوده شد» برای دکمه‌های معمولی (صفحه محصول) */
.btn.is-added { background: var(--navy); border-color: var(--navy); color: #fff; }

/* ═══════════════════════════════════════════════════════
   بازبینی نسخه ۳ — «لوکس آرام»
   منطق: مخاطب اصلی سازندگان ۵۰ سال به بالا و نسل بعدی آنهاست.
   هر دو گروه کم‌حرفی و دقت را گران می‌بینند و شلوغی و رنگ اشباع
   را ارزان. پس: اشباع کمتر، عناصر شناور کمتر، تکیه بر سرمه‌ای و
   کهربایی خود برند.
   ═══════════════════════════════════════════════════════ */

/* ─── دکمه‌های شناور: از چهار دایرهٔ رنگی به یک خانوادهٔ آرام ─── */
.fab-stack { gap: 10px; }
.fab {
  width: 52px; height: 52px;
  background: var(--white);
  color: var(--navy);
  border: 1px solid var(--line);
  box-shadow: 0 10px 26px -10px rgba(10,46,92,.30);
}
.fab:hover { border-color: var(--cyan); color: var(--cyan); }

/* واتساپ: نشان سبز فقط روی خود آیکون، نه یک دایرهٔ نئون */
.fab-whatsapp { background: var(--white); color: #1E8E4E; border-color: var(--line); }
.fab-whatsapp:hover { background: var(--white); color: #17703E; border-color: #1E8E4E; }

/* فهرست استعلام: سرمه‌ای سازمانی با شمارندهٔ کهربایی */
.fab-inquiry { background: var(--navy); color: #fff; border-color: var(--navy); }
.fab-inquiry:hover { background: var(--navy-deep); border-color: var(--navy-deep); color: #fff; }
.fab-count {
  top: -5px; inset-inline-start: -5px;
  min-width: 22px; height: 22px;
  background: var(--amber); color: var(--navy-deep);
  font-size: 12px; font-weight: 700;
  border: 2px solid var(--white);
}

/* بازگشت به بالا: کم‌رنگ‌ترین عضو، فقط وقتی لازم است */
.fab-top { width: 44px; height: 44px; color: var(--ink-2); }
.fab-top.is-visible { opacity: .85; }
.fab-top:hover { opacity: 1; }

/* دکمهٔ تماس همچنان کنش اصلی است */
.fab-stack .call-fab { width: 58px; height: 58px; box-shadow: 0 14px 32px -12px rgba(10,46,92,.45); }

/* ─── اقدام کارت محصول: یک کنش آرام، نه دکمهٔ فروشگاهی ─── */
.card-actions { margin-top: 8px; }
.card-add {
  width: 100%;
  justify-content: center;
  background: transparent;
  border-color: transparent;
  color: var(--ink-2);
  font-weight: 500;
  padding: 8px 14px;
}
.card-add:hover { background: var(--porcelain); border-color: var(--line); color: var(--navy); }
.card-add.is-added {
  background: transparent;
  border-color: transparent;
  color: var(--navy);
  font-weight: 700;
}
.card-add.is-added::before { content: "✓"; margin-inline-end: 7px; color: var(--amber); font-weight: 700; }

/* ─── پیام نتیجهٔ فرم: زبان «اعلامیهٔ رسمی»، نه هشدار قالب آماده ─── */
.form-status {
  background: var(--porcelain);
  border: 1px solid var(--line);
  border-inline-start: 3px solid var(--amber);
  border-radius: var(--r-sm);
  padding: 22px 26px;
  color: var(--navy);
}
.form-status strong { color: var(--navy); }
.form-status p { color: var(--ink-2); }
.form-status.is-ok { background: var(--porcelain); border-color: var(--line); border-inline-start-color: #2E7D52; color: var(--navy); }
.form-status.is-error { background: var(--porcelain); border-color: var(--line); border-inline-start-color: #A93226; color: var(--navy); }

/* ─── دیالوگ پیام برند (جایگزین alert/confirm مرورگر) ─── */
.notice {
  border: none; padding: 0; margin: auto;
  width: min(430px, calc(100vw - 40px));
  border-radius: var(--r-lg);
  background: var(--white);
  box-shadow: 0 50px 110px -30px rgba(7,31,61,.5);
}
.notice::backdrop { background: rgba(7,31,61,.42); backdrop-filter: blur(3px); }
.notice[open] { animation: cat-intro-in .3s var(--ease); }
.notice-inner { padding: 34px 34px 28px; }
.notice-text {
  font-size: 16.5px; line-height: 2; color: var(--navy);
  margin-bottom: 26px;
  padding-inline-start: 16px;
  border-inline-start: 3px solid var(--amber);
}
.notice-actions { display: flex; gap: 10px; justify-content: flex-end; }
.notice-actions .btn { padding: 11px 26px; font-size: 14.5px; }
@media (prefers-reduced-motion: reduce) { .notice[open] { animation: none; } }

/* ─── نوار مقایسه: آرام‌تر و کم‌ارتفاع‌تر ─── */
.compare-bar { background: var(--navy-deep); padding: 12px 0; }
.compare-chip { background: rgba(255,255,255,.10); font-size: 13.5px; }
.compare-bar .btn { padding: 10px 24px; font-size: 14px; }

/* شماره تلفن صفحه محصول از مسیر دکمه‌های شناور کنار برود */
.pp-phone { padding-inline-start: 84px; }
@media (min-width: 1100px) { .pp-phone { padding-inline-start: 0; } }


/* ═══════════════════════════════════════════════════════════════
   صفحهٔ لیست قیمت
   ───────────────────────────────────────────────────────────────
   ستون توضیح در کنار فرم می‌نشیند: چرا فرم پر کنم، و اینکه فروش
   سازمانی است. سازندهٔ ۵۰+ پیش از دادن شماره‌اش می‌خواهد بداند
   چه اتفاقی می‌افتد؛ گفتنش نرخ تکمیل فرم را بالا می‌برد.
   ═══════════════════════════════════════════════════════════════ */

.price-grid {
  display: grid;
  grid-template-columns: 340px 1fr;
  gap: 40px;
  align-items: start;
}

.price-aside {
  position: sticky;
  top: 110px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: 30px 28px;
}

.price-aside h2 { margin-bottom: 12px; }
.price-aside p { color: var(--ink-2); font-size: 15.5px; line-height: 2.1; }

/* یادداشت «فروش سازمانی» — نشانهٔ کهربایی کاتالوگ، همان امضای برند */
.price-b2b {
  margin-top: 20px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  font-size: 14.5px !important;
}
.price-b2b::before {
  content: "";
  display: inline-block;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--amber);
  margin-inline-end: 9px;
  vertical-align: middle;
}

.price-main .form-card { max-width: none; margin-inline: 0; }

/* پس از پاسخ سرور جای فرم را می‌گیرد */
.price-ready {
  background: var(--white);
  border: 1px solid var(--cyan);
  border-radius: var(--r-md);
  padding: 34px 32px;
  margin-bottom: 24px;
  box-shadow: var(--shadow-soft);
}
.price-ready h2 { margin-bottom: 10px; }
.price-ready p { color: var(--ink-2); margin-bottom: 22px; line-height: 2.1; }
.price-ready:focus { outline: none; }

@media (max-width: 900px) {
  .price-grid { grid-template-columns: 1fr; gap: 26px; }
  .price-aside { position: static; }
}

@media (max-width: 560px) {
  .price-aside { padding: 24px 20px; }
  .price-ready { padding: 26px 20px; }
  .price-ready .btn { display: block; width: 100%; text-align: center; }
}


/* ═══════════════════════════════════════════════════════════════
   سربرگ در نمایشگر کوچک
   ───────────────────────────────────────────────────────────────
   در ۳۹۰ پیکسل، لوگوی ۴۸پیکسلی و دکمه‌های سمت چپ فقط ۸۱ پیکسل
   برای نام برند باقی می‌گذاشتند: «چینی بهداشتی کسری» سه‌خطی و
   نام لاتین هم سه‌خطی می‌شد و بلوک برند به ۱۳۰ پیکسل می‌رسید،
   یعنی ۴۶ پیکسل بیرون‌زده از سربرگ ۸۴پیکسلی.
   لوگو و قلم‌ها کوچک می‌شوند تا هر دو خط، تک‌خطی جا بگیرند —
   نام شرکت شکسته‌شده ارزان به نظر می‌رسد.
   ═══════════════════════════════════════════════════════════════ */

@media (max-width: 640px) {
  .header-row { height: 64px; gap: 10px; }

  .brand { gap: 9px; min-width: 0; }
  .brand-logo { height: 34px; }

  .brand-text { line-height: 1.45; min-width: 0; }
  .brand-text strong { font-size: 14px; white-space: nowrap; }
  .brand-text small { font-size: 9px; letter-spacing: .02em; white-space: nowrap; }

  /* دکمه‌ها جمع‌تر تا فضا به نام برند برسد */
  .header-actions { gap: 6px; }
  .lang-switch button { padding: 7px 11px; font-size: 12.5px; }
  .nav-toggle { padding: 9px; }

  /* منوی بازشونده باید زیر سربرگ کوتاه‌شده بنشیند */
  .main-nav { top: 64px; }
}

/* زیر ۳۶۰ پیکسل حتی این هم تنگ است؛ نام لاتین تزئینی است و
   کنار گذاشته می‌شود تا نام فارسی کامل و تک‌خط بماند. */
@media (max-width: 359px) {
  .brand-text small { display: none; }
  .brand-logo { height: 30px; }
}


/* برچسب‌های منو نباید بشکنند — «امور مشتریان» دوخطی می‌شد و
   سربرگ را بلند می‌کرد. */
.main-nav a { white-space: nowrap; }

/* در انگلیسی برچسب‌ها بلندترند و منو به ۷۶۵ پیکسل می‌رسید — ۴۷ پیکسل
   سرریز. کمی جمع‌تر می‌شود تا هر دو زبان در یک سطر جا بگیرند. */
@media (min-width: 901px) {
  .main-nav { gap: 2px; }
  .main-nav a { padding: 9px 13px; }
  .header-actions { gap: 10px; }
}

/* ═══════════════════════════════════════════════════════════════
   سربرگ دسکتاپ: لوگو | منو | زبان
   ───────────────────────────────────────────────────────────────
   ترتیب همان ترتیب طبیعی DOM است، پس flex خودش در انگلیسی آینه
   می‌کند و هیچ قاعدهٔ [dir] جداگانه‌ای لازم نیست.

   مسئله: مجموع طبیعی سه بخش در انگلیسی حدود ۱۲۳۶ پیکسل است و ظرف
   ۱۲۴۰ — آن‌قدر لب مرز که flex نام برند و دکمهٔ کاتالوگ را می‌فشرد
   و دوخطی‌شان می‌کند. در عرض‌های میانی (۹۰۱ تا ۱۲۰۰) اصلاً جا نیست.
   ═══════════════════════════════════════════════════════════════ */

@media (min-width: 901px) {
  /* نام شرکت و دکمه‌ها هرگز نباید بشکنند؛ منو تنها بخش انعطاف‌پذیر است */
  .header-row > .brand,
  .header-row > .header-actions { flex: none; }
  .brand-text strong,
  .brand-text small,
  .header-actions .btn { white-space: nowrap; }
  /* منو هرگز نباید زیر اندازهٔ محتوایش فشرده شود — با min-width:0
     برچسب آخر («تماس») بریده می‌شد و سوییچ زبان رویش می‌افتاد. */
  .header-row > .main-nav { flex: none; }

  /* در انگلیسی مجموع لازم ۱۲۵۰ پیکسل بود و ظرف ۱۲۴۰: ۱۰ پیکسل کم.
     فاصلهٔ ردیف و پدینگ لینک‌ها کمی جمع می‌شود تا جا باز شود. */
  .header-row { gap: 16px; }
  .main-nav a { padding: 9px 12px; }
}

/* عرض میانی: کاتالوگ از نوار بالا برداشته می‌شود (در پابرگ و منو هست)
   و منو جمع‌تر می‌شود تا هر سه بخش در یک سطر بمانند. */
@media (min-width: 901px) and (max-width: 1199px) {
  .header-actions .btn-ghost { display: none; }
  .main-nav { gap: 0; }
  .main-nav a { font-size: 13.5px; padding: 9px 9px; }
  .brand-text small { display: none; }
}

/* برچسب‌های انگلیسی بلندترند و در دو باند عرضی هنوز جا نمی‌شدند.
   به‌جای فشردن منو (که برچسب آخر را می‌برید) فضا آزاد می‌کنیم. */

/* ۱۲۰۰ تا ۱۴۳۹: دکمهٔ کاتالوگ جمع‌تر می‌شود — حذفش نمی‌کنیم چون
   تنها فراخوانِ کاتالوگ در سربرگ است. */
@media (min-width: 1200px) and (max-width: 1439px) {
  .header-actions .btn-ghost { font-size: 13.5px; padding-inline: 13px; }
}

/* ۹۰۱ تا ۱۰۹۹: دو مقصد کم‌مصرف‌تر از نوار بالا برداشته می‌شوند.
   هر دو در پابرگ می‌مانند و در منوی موبایل هم برمی‌گردند. */
@media (min-width: 901px) and (max-width: 1099px) {
  .main-nav a[href="/gallery"],
  .main-nav a[href="/guides"] { display: none; }
}

/* باند مرزی ۱۲۰۰–۱۳۱۹: هر ۷ لینک برمی‌گردند ولی هنوز ۱۴ پیکسل کم بود.
   پدینگ لینک‌ها کمی جمع می‌شود (۷ لینک × ۴ پیکسل = ۲۸ پیکسل آزاد). */
@media (min-width: 1200px) and (max-width: 1319px) {
  .main-nav a { padding-inline: 10px; }
}

/* ═══════════════════════════════════════════════════════════════
   پابرگ: ستون برند نباید له شود
   ───────────────────────────────────────────────────────────────
   ستون منو `auto` بود. با اضافه‌شدن پروژه‌ها، شبکه فروش، لیست قیمت،
   صادرات و اخبار، منو ۱۳ لینکی شد و ۱۰۳۹ پیکسل از ۱۲۴۰ را گرفت —
   ستون برند به ۵۷ پیکسل رسید و توضیح شرکت ۱۸ خطی شد، هر خط یک کلمه.
   حالا برند عرض تضمین‌شده دارد و منو در فضای باقی‌مانده می‌پیچد.
   ═══════════════════════════════════════════════════════════════ */
@media (min-width: 901px) {
  .footer-row {
    grid-template-columns: minmax(240px, 300px) minmax(0, 1fr);
    gap: 40px 60px;
  }
  .footer-nav { align-content: flex-start; }
}
