/* ============================================================
   RCAB.KZ — дизайн-система v2
   Чирок + янтарь + бумага. Signature: кассовый чек.
   Manrope (variable 400–800) + JetBrains Mono 500, self-hosted.
   ============================================================ */

/* ---------- Шрифты ---------- */

@font-face {
  font-family: 'Manrope';
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url('../fonts/manrope-cyrillic.woff2') format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: 'Manrope';
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url('../fonts/manrope-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('../fonts/jetbrains-mono-cyrillic.woff2') format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('../fonts/jetbrains-mono-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ---------- Токены ---------- */

:root {
  --ink: #0B2A47;
  --ink-2: #103A61;
  --teal: #1273AE;
  --teal-deep: #0E5A8A;
  --teal-soft: #E7F2FB;
  --paper: #F7F5F0;
  --white: #FFFFFF;
  --amber: #F59E0B;
  --amber-bright: #FBBF24;
  --amber-ink: #451A03;
  --wa: #25D366;
  --wa-ink: #0C3B2C;
  --text: #1F2937;
  --muted: #5B6572;
  --line: #E5E7EB;

  --on-dark: #F8FAFC;
  --on-dark-muted: rgba(248, 250, 252, 0.74);
  --on-dark-line: rgba(248, 250, 252, 0.14);

  --font-sans: 'Manrope', 'Segoe UI', system-ui, -apple-system, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, 'SF Mono', Menlo, monospace;

  --shadow-card: 0 1px 2px rgb(11 42 71 / 0.06), 0 8px 24px rgb(11 42 71 / 0.08);
  --shadow-card-hover: 0 2px 4px rgb(11 42 71 / 0.08), 0 16px 40px rgb(11 42 71 / 0.14);
  --shadow-header: 0 1px 0 rgb(11 42 71 / 0.06), 0 8px 24px rgb(11 42 71 / 0.10);

  --radius-btn: 10px;
  --radius-card: 16px;
  --radius-block: 24px;

  --container: 1200px;
  --gutter: clamp(20px, 4vw, 32px);
  --section-pad: clamp(64px, 9vw, 104px);
  --header-h: 72px;
}

/* ---------- Сброс и база ---------- */

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 17px;
  line-height: 1.6;
  color: var(--text);
  background: var(--white);
}

img,
svg {
  display: block;
  max-width: 100%;
}

a {
  color: var(--teal);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

a:hover {
  color: var(--teal-deep);
}

h1, h2, h3, h4 {
  margin: 0 0 0.5em;
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--ink);
  text-wrap: balance;
}

h1 {
  font-size: clamp(30px, 5vw, 54px);
  line-height: 1.08;
}

h2 {
  font-size: clamp(25px, 3.5vw, 36px);
}

h3 {
  font-size: clamp(18px, 2vw, 20px);
  font-weight: 700;
  letter-spacing: -0.01em;
}

p {
  margin: 0 0 1em;
}

ul, ol {
  margin: 0;
  padding: 0;
}

address {
  font-style: normal;
}

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

.container {
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  top: -48px;
  left: 16px;
  z-index: 100;
  padding: 10px 18px;
  background: var(--ink);
  color: var(--on-dark);
  border-radius: 0 0 10px 10px;
  text-decoration: none;
  transition: top 0.15s ease;
}

.skip-link:focus {
  top: 0;
  color: var(--on-dark);
}

/* ---------- Ярлыки-подписи (eyebrow) ---------- */

.eyebrow {
  margin: 0 0 14px;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--teal);
}

.section--dark .eyebrow,
.hero .eyebrow,
.cta-band .eyebrow {
  color: var(--amber);
}

/* ---------- Кнопки ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 13px 22px;
  border: 1px solid transparent;
  border-radius: var(--radius-btn);
  font-family: var(--font-sans);
  font-size: 16px;
  font-weight: 600;
  line-height: 1.2;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background-color 0.15s ease, border-color 0.15s ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn:active {
  transform: translateY(0);
}

.btn svg {
  flex: none;
}

.btn--lg {
  padding: 15px 24px;
  font-size: 16px;
}

.btn--accent {
  background: var(--amber);
  color: var(--amber-ink);
  box-shadow: 0 1px 2px rgb(69 26 3 / 0.15), 0 8px 20px rgb(245 158 11 / 0.35);
}

.btn--accent:hover {
  background: var(--amber-bright);
  color: var(--amber-ink);
  box-shadow: 0 2px 4px rgb(69 26 3 / 0.15), 0 12px 28px rgb(245 158 11 / 0.45);
}

.btn--primary {
  background: var(--teal);
  color: var(--white);
  box-shadow: 0 1px 2px rgb(11 42 71 / 0.2), 0 8px 20px rgb(15 118 110 / 0.3);
}

.btn--primary:hover {
  background: var(--teal-deep);
  color: var(--white);
}

.btn--whatsapp {
  background: var(--wa);
  color: var(--wa-ink);
  box-shadow: 0 1px 2px rgb(12 59 44 / 0.15), 0 8px 20px rgb(37 211 102 / 0.3);
}

.btn--whatsapp:hover {
  background: #3BDF75;
  color: var(--wa-ink);
}

.btn--ghost {
  background: rgba(248, 250, 252, 0.04);
  border-color: rgba(248, 250, 252, 0.35);
  color: var(--on-dark);
}

.btn--ghost:hover {
  border-color: rgba(248, 250, 252, 0.7);
  background: rgba(248, 250, 252, 0.09);
  color: var(--on-dark);
}

.cta-group {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

/* ---------- Шапка ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--white);
  border-bottom: 1px solid transparent;
  transition: box-shadow 0.2s ease, border-color 0.2s ease;
}

.site-header.is-scrolled {
  border-color: var(--line);
  box-shadow: var(--shadow-header);
}

.site-header .container {
  max-width: 1380px;
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 24px;
  min-height: var(--header-h);
}

.logo {
  flex: none;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 19px;
  letter-spacing: -0.01em;
  color: var(--ink);
  text-decoration: none;
  white-space: nowrap;
}

.logo img {
  width: auto;
  height: 34px;
}

/* Переключатель языков РУ | ҚАЗ */
.lang-switch {
  display: inline-flex;
  align-items: center;
  flex: none;
  border: 1px solid var(--line);
  border-radius: 999px;
  overflow: hidden;
  background: var(--white);
}
.lang-switch__opt {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  padding: 7px 11px;
  font: 600 13px/1 var(--font-mono);
  letter-spacing: 0.03em;
  color: var(--muted);
  text-decoration: none;
  transition: color 0.15s ease, background 0.15s ease;
}
.lang-switch__opt + .lang-switch__opt {
  border-left: 1px solid var(--line);
}
.lang-switch__opt:hover {
  color: var(--ink);
  background: var(--teal-soft);
}
.lang-switch__opt.is-active {
  color: var(--white);
  background: var(--teal);
}
@media (max-width: 480px) {
  .lang-switch__opt {
    min-width: 34px;
    padding: 6px 8px;
    font-size: 12px;
  }
}

.site-nav {
  margin-inline: auto;
}

.nav-list {
  display: flex;
  gap: 4px;
  list-style: none;
}

.nav-list a {
  display: block;
  padding: 8px 11px;
  border-radius: 8px;
  font-size: 14.5px;
  font-weight: 600;
  color: var(--text);
  text-decoration: none;
  white-space: nowrap;
  transition: background-color 0.15s ease, color 0.15s ease;
}

.nav-list a:hover {
  background: var(--teal-soft);
  color: var(--teal-deep);
}

.nav-list a[aria-current="page"] {
  color: var(--teal);
  background: var(--teal-soft);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-left: auto;
}

.header-phone {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
  padding: 9px 12px;
  border-radius: var(--radius-btn);
  font-family: var(--font-mono);
  font-size: 14.5px;
  font-weight: 500;
  color: var(--ink);
  text-decoration: none;
  transition: background-color 0.15s ease;
}

.header-phone:hover {
  background: var(--teal-soft);
  color: var(--teal-deep);
}

.header-phone svg {
  color: var(--teal);
}

.header-wa {
  padding: 10px 16px;
  font-size: 15px;
}

/* Бургер */

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius-btn);
  background: var(--white);
  cursor: pointer;
}

.nav-toggle-bar {
  display: block;
  width: 22px;
  height: 2px;
  border-radius: 2px;
  background: var(--ink);
  transition: transform 0.2s ease, opacity 0.2s ease;
}

body.nav-open .nav-toggle-bar:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

body.nav-open .nav-toggle-bar:nth-child(2) {
  opacity: 0;
}

body.nav-open .nav-toggle-bar:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ---------- Hero ---------- */

.hero {
  position: relative;
  overflow: hidden;
  background: linear-gradient(150deg, var(--ink) 20%, var(--ink-2) 75%);
  color: var(--on-dark);
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(248, 250, 252, 0.055) 1px, transparent 1.4px);
  background-size: 26px 26px;
  pointer-events: none;
}

.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(720px 480px at 82% 8%, rgba(15, 118, 110, 0.4), transparent 70%),
    radial-gradient(520px 380px at 8% 96%, rgba(245, 158, 11, 0.1), transparent 70%);
  pointer-events: none;
}

.hero .container {
  position: relative;
  z-index: 1;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr);
  gap: clamp(32px, 5vw, 72px);
  align-items: center;
  padding: clamp(48px, 7vw, 88px) 0 clamp(40px, 5vw, 64px);
}

.hero h1 {
  color: var(--on-dark);
  margin-bottom: 20px;
}

.hero-lead {
  max-width: 54ch;
  margin-bottom: 32px;
  font-size: clamp(16px, 1.6vw, 19px);
  line-height: 1.65;
  color: var(--on-dark-muted);
}

.hero-note {
  margin: 22px 0 0;
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--on-dark-muted);
}

.hero-note strong {
  color: var(--on-dark);
  font-weight: 500;
}

/* Чек — signature */

.hero-visual {
  display: flex;
  justify-content: center;
}

.receipt {
  width: min(100%, 380px);
  height: auto;
  transform: rotate(2deg);
  filter: drop-shadow(0 2px 4px rgb(0 0 0 / 0.25)) drop-shadow(0 24px 48px rgb(0 0 0 / 0.4));
}

html.js .receipt {
  animation: receipt-in 0.9s cubic-bezier(0.22, 1, 0.36, 1) 0.15s both;
}

@keyframes receipt-in {
  from {
    opacity: 0;
    transform: translateY(28px) rotate(5deg);
  }
  to {
    opacity: 1;
    transform: translateY(0) rotate(2deg);
  }
}

/* Типографика внутри SVG-чека */

.receipt .r-brand {
  font-family: var(--font-sans);
  font-size: 26px;
  font-weight: 800;
  letter-spacing: -0.02em;
  fill: var(--ink);
}

.receipt .r-sub {
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 500;
  letter-spacing: 0.14em;
  fill: var(--muted);
}

.receipt .r-dash {
  stroke: #D9D6CC;
  stroke-width: 1.5;
  stroke-dasharray: 4 6;
  stroke-linecap: round;
}

.receipt .r-item {
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 500;
  fill: var(--text);
}

.receipt .r-val {
  font-family: var(--font-mono);
  font-size: 12.5px;
  font-weight: 500;
  fill: var(--teal);
}

.receipt .r-total {
  font-family: var(--font-sans);
  font-size: 44px;
  font-weight: 800;
  letter-spacing: -0.02em;
  fill: var(--ink);
}

.receipt .r-total-label {
  font-family: var(--font-sans);
  font-size: 15px;
  font-weight: 600;
  fill: var(--muted);
}

.receipt .r-code {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.28em;
  fill: var(--ink);
}

.receipt .r-thanks {
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 500;
  letter-spacing: 0.06em;
  fill: var(--muted);
}

/* Лента статистики в hero */

.hero-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  padding: 28px 0 44px;
  border-top: 1px solid var(--on-dark-line);
}

.stat-num {
  display: block;
  font-size: clamp(26px, 3.2vw, 40px);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.1;
  color: var(--amber);
  white-space: nowrap;
}

.stat-label {
  display: block;
  margin-top: 6px;
  font-size: 14px;
  line-height: 1.45;
  color: var(--on-dark-muted);
}

/* ---------- Секции ---------- */

.section {
  padding: var(--section-pad) 0;
  background: var(--white);
}

.section--soft {
  background: var(--paper);
}

.section--dark {
  position: relative;
  overflow: hidden;
  background: linear-gradient(160deg, var(--ink) 25%, var(--ink-2) 80%);
  color: var(--on-dark-muted);
}

.section--dark::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(248, 250, 252, 0.045) 1px, transparent 1.4px);
  background-size: 26px 26px;
  pointer-events: none;
}

.section--dark .container {
  position: relative;
  z-index: 1;
}

.section--dark h2,
.section--dark h3 {
  color: var(--on-dark);
}

.section--dark a {
  color: var(--on-dark);
}

.section--dark .btn--accent,
.section--dark .btn--accent:hover {
  color: var(--amber-ink);
}

.section-head {
  max-width: 720px;
  margin-bottom: clamp(32px, 5vw, 52px);
}

.section-lead {
  font-size: clamp(16px, 1.5vw, 18px);
  line-height: 1.65;
  color: var(--muted);
}

.section--dark .section-lead {
  color: var(--on-dark-muted);
}

.section-foot {
  margin-top: clamp(28px, 4vw, 40px);
}

.mt-4 {
  margin-top: 24px;
}

/* ---------- Сетки и карточки ---------- */

.grid {
  display: grid;
  gap: 24px;
}

.grid--2 {
  grid-template-columns: repeat(2, 1fr);
}

.grid--3 {
  grid-template-columns: repeat(3, 1fr);
}

.card {
  display: block;
  padding: 28px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
  color: var(--text);
  text-decoration: none;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-card-hover);
  border-color: rgba(15, 118, 110, 0.28);
  color: var(--text);
}

.card p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 15.5px;
}

.card p + p {
  margin-top: 0.7em;
}

.card--big {
  padding: 32px;
  border-radius: var(--radius-block);
}

.card--big h3 {
  font-size: clamp(20px, 2.2vw, 24px);
}

.card-icon {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  margin-bottom: 18px;
  border-radius: 12px;
  background: var(--teal-soft);
  color: var(--teal);
}

.card-more {
  display: inline-block;
  margin-top: 18px;
  font-weight: 700;
  font-size: 15px;
  color: var(--teal);
  transition: color 0.15s ease;
}

.card:hover .card-more {
  color: var(--teal-deep);
}

/* ---------- Шаги-маршрут ---------- */

.steps {
  position: relative;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 28px;
  list-style: none;
  counter-reset: step;
}

.steps::before {
  content: '';
  position: absolute;
  top: 21px;
  left: calc(10% - 22px);
  right: calc(10% - 22px);
  height: 2px;
  background-image: linear-gradient(90deg, rgba(15, 118, 110, 0.45) 55%, transparent 55%);
  background-size: 14px 2px;
}

.step {
  position: relative;
  text-align: center;
}

.step-dot {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  margin: 0 auto 16px;
  border: 2px solid var(--teal);
  border-radius: 50%;
  background: var(--white);
  font-family: var(--font-mono);
  font-size: 15px;
  font-weight: 500;
  color: var(--teal);
  box-shadow: 0 0 0 6px var(--paper);
}

.step h3 {
  margin-bottom: 8px;
  font-size: 17.5px;
}

.step p {
  margin: 0;
  font-size: 14.5px;
  line-height: 1.55;
  color: var(--muted);
}

/* ---------- Тёмная секция продукта (Paloma365) ---------- */

.split {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: clamp(32px, 5vw, 64px);
  align-items: center;
}

.checklist {
  list-style: none;
  margin: 0 0 28px;
}

.checklist li {
  position: relative;
  padding: 10px 0 10px 36px;
  font-size: 16px;
  line-height: 1.55;
}

.checklist li + li {
  border-top: 1px dashed var(--on-dark-line);
}

.checklist li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 14px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23451A03' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E") center / 13px no-repeat,
    var(--amber);
}

.mockup {
  width: 100%;
  height: auto;
  border-radius: var(--radius-card);
  box-shadow: 0 2px 4px rgb(0 0 0 / 0.3), 0 28px 64px rgb(0 0 0 / 0.45);
}

/* Типографика внутри SVG-мокапа */

.mockup .m-url {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 500;
  fill: #8A857A;
}

.mockup .m-nav {
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 500;
  letter-spacing: 0.08em;
  fill: var(--muted);
}

.mockup .m-nav--active {
  fill: #FFFFFF;
}

.mockup .m-h {
  font-family: var(--font-sans);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: -0.01em;
  fill: var(--ink);
}

.mockup .m-sub {
  font-family: var(--font-mono);
  font-size: 9.5px;
  font-weight: 500;
  letter-spacing: 0.08em;
  fill: #8A857A;
}

.mockup .m-check {
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 500;
  letter-spacing: 0.06em;
  fill: var(--teal);
}

.paloma-benefits {
  margin-top: clamp(36px, 5vw, 56px);
  padding-top: clamp(28px, 4vw, 40px);
  border-top: 1px solid var(--on-dark-line);
}

.paloma-benefits h3 {
  margin-bottom: 18px;
}

.paloma-benefits .checklist {
  margin-bottom: 0;
  columns: 2;
  column-gap: 48px;
}

.paloma-benefits .checklist li {
  break-inside: avoid;
}

/* ---------- FAQ ---------- */

.faq {
  max-width: 820px;
  display: grid;
  gap: 14px;
}

.faq-item {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
  overflow: hidden;
  transition: box-shadow 0.18s ease;
}

.faq-item[open] {
  box-shadow: var(--shadow-card-hover);
}

.faq-item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 24px;
  font-weight: 700;
  font-size: 17px;
  color: var(--ink);
  cursor: pointer;
  list-style: none;
  transition: color 0.15s ease;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary:hover {
  color: var(--teal);
}

.faq-chevron {
  flex: none;
  color: var(--teal);
  transition: transform 0.2s ease;
}

.faq-item[open] .faq-chevron {
  transform: rotate(180deg);
}

.faq-body {
  padding: 0 24px 22px;
  color: var(--muted);
  border-top: 1px dashed var(--line);
}

.faq-body p {
  margin: 16px 0 0;
  font-size: 15.5px;
  line-height: 1.65;
}

/* ---------- CTA-блок ---------- */

.cta-band {
  position: relative;
  overflow: hidden;
  padding: var(--section-pad) 0;
  background: linear-gradient(150deg, var(--ink) 25%, var(--ink-2) 80%);
  color: var(--on-dark-muted);
  text-align: center;
}

.cta-band::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(248, 250, 252, 0.05) 1px, transparent 1.4px);
  background-size: 26px 26px;
  pointer-events: none;
}

.cta-band::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(640px 420px at 50% 0%, rgba(15, 118, 110, 0.35), transparent 70%);
  pointer-events: none;
}

.cta-band .container {
  position: relative;
  z-index: 1;
  max-width: 860px;
}

.cta-band h2 {
  color: var(--on-dark);
  font-size: clamp(26px, 4vw, 42px);
  margin-bottom: 16px;
}

.cta-band > .container > p {
  max-width: 52ch;
  margin-inline: auto;
  font-size: clamp(16px, 1.5vw, 18px);
}

.cta-band .cta-group {
  justify-content: center;
  margin-top: 32px;
}

.cta-hours {
  margin: 28px 0 0;
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--on-dark-muted);
}

/* ---------- Подвал ---------- */

.site-footer {
  background: var(--ink);
  color: var(--on-dark-muted);
  padding: clamp(48px, 7vw, 72px) 0 32px;
  border-top: 1px solid rgba(248, 250, 252, 0.08);
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 36px;
}

.footer-title {
  margin-bottom: 16px;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--amber);
}

.footer-list,
.footer-phones {
  list-style: none;
  display: grid;
  gap: 8px;
}

.site-footer a {
  color: var(--on-dark-muted);
  text-decoration: none;
  transition: color 0.15s ease;
}

.site-footer a:hover {
  color: var(--on-dark);
}

.footer-phones a {
  font-family: var(--font-mono);
  font-size: 14.5px;
  color: var(--on-dark);
}

.footer-phones a:hover {
  color: var(--amber-bright);
}

.footer-col p {
  margin-bottom: 10px;
  font-size: 15px;
  line-height: 1.55;
}

.footer-bottom {
  margin: 48px 0 0;
  padding-top: 24px;
  border-top: 1px solid rgba(248, 250, 252, 0.1);
  font-size: 13.5px;
  color: rgba(248, 250, 252, 0.55);
}

/* ---------- Плавающий WhatsApp ---------- */

.wa-float {
  display: none;
  position: fixed;
  right: 16px;
  bottom: 16px;
  z-index: 60;
  width: 56px;
  height: 56px;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--wa);
  color: var(--wa-ink);
  box-shadow: 0 2px 4px rgb(12 59 44 / 0.25), 0 12px 28px rgb(37 211 102 / 0.45);
  transition: transform 0.15s ease;
}

.wa-float:hover {
  transform: translateY(-2px);
  color: var(--wa-ink);
}

/* ---------- Scroll-reveal ---------- */

html.js [data-reveal] {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}

html.js [data-reveal].is-revealed {
  opacity: 1;
  transform: none;
}

/* ---------- Reduced motion ---------- */

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  html.js .receipt {
    animation: none;
  }

  html.js [data-reveal] {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* ============================================================
   Брейкпоинты
   ============================================================ */

/* ---------- ≤1280: телефон в шапке — только иконка ---------- */

@media (max-width: 1280px) {
  .header-phone {
    padding: 10px;
    border: 1px solid var(--line);
  }

  .header-phone-text {
    display: none;
  }
}

/* ---------- ≤1024: бургер, hero в колонку ---------- */

@media (max-width: 1024px) {
  .nav-toggle {
    display: flex;
  }

  .site-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    margin: 0;
    background: var(--white);
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow-header);
    display: none;
  }

  body.nav-open .site-nav {
    display: block;
  }

  .nav-list {
    flex-direction: column;
    gap: 2px;
    padding: 12px var(--gutter) 18px;
  }

  .nav-list a {
    padding: 12px 14px;
    font-size: 16px;
  }

  .header-actions {
    gap: 10px;
  }

  .hero-grid {
    grid-template-columns: 1fr;
    gap: 44px;
  }

  .hero-lead {
    max-width: 60ch;
  }

  .hero-visual {
    order: 2;
  }

  .receipt {
    width: min(100%, 330px);
  }

  .split {
    grid-template-columns: 1fr;
    gap: 44px;
  }

  .steps {
    grid-template-columns: repeat(5, 1fr);
    gap: 18px;
  }
}

/* ---------- ≤768: сетки в колонку, телефон-иконка ---------- */

@media (max-width: 768px) {
  .header-wa {
    display: none;
  }

  .grid--2,
  .grid--3 {
    grid-template-columns: 1fr;
  }

  .hero-stats {
    grid-template-columns: repeat(2, 1fr);
    gap: 24px 16px;
  }

  .steps {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .steps::before {
    top: 22px;
    bottom: 22px;
    left: 21px;
    right: auto;
    width: 2px;
    height: auto;
    background-image: linear-gradient(180deg, rgba(15, 118, 110, 0.45) 55%, transparent 55%);
    background-size: 2px 14px;
  }

  .step {
    display: grid;
    grid-template-columns: 44px 1fr;
    gap: 0 20px;
    padding: 14px 0;
    text-align: left;
  }

  .step-dot {
    grid-row: 1 / span 2;
    margin: 0;
  }

  .step h3 {
    margin: 10px 0 6px;
  }

  .paloma-benefits .checklist {
    columns: 1;
  }

  .wa-float {
    display: flex;
  }

  .site-footer {
    padding-bottom: 88px;
  }

  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .cta-group .btn {
    flex: 1 1 auto;
  }
}

/* ---------- ≤400: самые узкие экраны ---------- */

@media (max-width: 400px) {
  body {
    font-size: 16px;
  }

  .header-inner {
    gap: 12px;
    min-height: 64px;
  }

  .logo span {
    font-size: 17px;
  }

  .hero-grid {
    padding-top: 40px;
  }

  .cta-group {
    flex-direction: column;
    align-items: stretch;
  }

  .btn--lg {
    padding: 15px 20px;
    font-size: 16px;
  }

  .hero-stats {
    grid-template-columns: 1fr 1fr;
    gap: 20px 12px;
  }

  .stat-num {
    font-size: 24px;
  }

  .card,
  .card--big {
    padding: 22px;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .faq-item summary {
    padding: 16px 18px;
    font-size: 16px;
  }

  .faq-body {
    padding: 0 18px 18px;
  }
}

/* ============================================================
   Дополнение: страница «Контакты» (kontakty.html).
   Только новые классы, существующие правила не переопределяются.
   ============================================================ */

/* Компактный hero внутренних страниц: одна колонка, без визуала */
.hero--compact .hero-grid {
  grid-template-columns: 1fr;
  padding: clamp(44px, 6vw, 72px) 0 clamp(48px, 6vw, 76px);
}

/* Крупные карточки офисов */
.office-card h2 {
  font-size: clamp(20px, 2.2vw, 24px);
  margin-bottom: 10px;
}

.office-card .office-address {
  font-size: 16.5px;
  font-weight: 600;
  color: var(--ink);
}

.office-label {
  margin: 18px 0 8px;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}

.office-phones {
  list-style: none;
  display: grid;
  gap: 8px;
}

.office-phones a {
  font-family: var(--font-mono);
  font-size: 15.5px;
  font-weight: 500;
  color: var(--ink);
  text-decoration: none;
  transition: color 0.15s ease;
}

.office-phones a:hover {
  color: var(--teal);
}

/* Таблицы (часы работы, реквизиты) */
.table-wrap {
  max-width: 760px;
  overflow-x: auto;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
}

.table-wrap table {
  width: 100%;
  margin: 0;
  border-collapse: collapse;
  font-size: 15.5px;
  line-height: 1.5;
}

.table-wrap th,
.table-wrap td {
  padding: 14px 20px;
  text-align: left;
  vertical-align: top;
  border-top: 1px solid var(--line);
}

.table-wrap thead th {
  border-top: 0;
  background: var(--paper);
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}

.table-wrap tbody tr:first-child th,
.table-wrap tbody tr:first-child td {
  border-top: 0;
}

.table-wrap tbody th {
  width: 38%;
  font-weight: 600;
  color: var(--ink);
}

.table-wrap td {
  color: var(--text);
}

.table-wrap .num {
  font-family: var(--font-mono);
  font-size: 14.5px;
  font-weight: 500;
  color: var(--ink);
  white-space: nowrap;
}

/* Ссылки в тексте тёмного CTA-блока (почта, внутренние страницы) */
.cta-band p a:not(.btn) {
  color: var(--on-dark);
}

.cta-band p a:not(.btn):hover {
  color: var(--amber-bright);
}

/* ============================================================
   Дополнение: страница Paloma365 (paloma365.html).
   Таблица тарифов с выделением популярного тарифа и чек-лист
   на светлом фоне. Только новые селекторы, существующие
   правила не переопределяются.
   ============================================================ */

/* Чек-лист внутри белой карточки: видимые разделители, без хвоста снизу */

.card .checklist {
  margin-bottom: 0;
}

.card .checklist li + li {
  border-top-color: var(--line);
}

/* Таблица тарифов на белом */

.pricing-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
}

.pricing {
  width: 100%;
  min-width: 720px;
  border-collapse: collapse;
  font-size: 15.5px;
}

.pricing caption {
  padding: 18px 24px 2px;
  text-align: left;
  font-family: var(--font-mono);
  font-size: 11.5px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}

.pricing th,
.pricing td {
  padding: 16px 24px;
  text-align: left;
  vertical-align: top;
}

.pricing thead th {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  border-bottom: 1px solid var(--line);
  white-space: nowrap;
}

.pricing tbody th {
  font-size: 16.5px;
  font-weight: 700;
  color: var(--ink);
  white-space: nowrap;
}

.pricing tbody tr + tr th,
.pricing tbody tr + tr td {
  border-top: 1px dashed var(--line);
}

.pricing tbody td {
  color: var(--muted);
  line-height: 1.55;
}

.pricing td.price {
  font-family: var(--font-mono);
  font-weight: 500;
  color: var(--ink);
  white-space: nowrap;
}

.pricing td.price strong {
  font-weight: 500;
}

/* Выделение популярного тарифа */

.pricing-row--featured th,
.pricing-row--featured td {
  background: var(--teal-soft);
}

.pricing-row--featured th {
  box-shadow: inset 3px 0 0 var(--teal);
}

.pricing-row--featured td {
  color: var(--text);
}

.pricing-badge {
  display: inline-block;
  margin-left: 8px;
  padding: 3px 9px;
  border-radius: 999px;
  background: var(--amber);
  color: var(--amber-ink);
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  vertical-align: 2px;
}

/* Примечание под таблицей тарифов */

.pricing-note {
  max-width: 720px;
  margin: 18px 0 0;
  font-size: 15px;
  line-height: 1.6;
  color: var(--muted);
}

/* Чек-лист на светлом фоне (внутри карточек) */

.checklist--light li + li {
  border-top-color: var(--line);
}

.checklist--light li {
  font-size: 15px;
}

/* Крупный телефон в CTA-блоке */

.cta-phone {
  display: inline-block;
  margin: 6px 0 18px;
  font-family: var(--font-mono);
  font-size: clamp(24px, 3.4vw, 34px);
  font-weight: 500;
  letter-spacing: 0.01em;
  color: #fff;
  text-decoration: none;
}

.cta-phone:hover {
  color: var(--amber);
}

/* Чипы решений-партнёров */

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.chip {
  padding: 10px 18px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--white);
  box-shadow: 0 1px 2px rgb(11 42 71 / 0.06);
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
}

.mt-4 {
  margin-top: 24px;
}

/* ===== Каталог товаров v3 (страницы категорий оборудования) ===== */
.catalog-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(210px,1fr));gap:20px}
.product-card{display:flex;flex-direction:column;background:var(--white);border:1px solid var(--line);border-radius:16px;overflow:hidden;box-shadow:0 1px 2px rgb(11 42 71 / .06),0 8px 24px rgb(11 42 71 / .05);transition:transform .2s ease,box-shadow .2s ease}
.product-card:hover{transform:translateY(-2px);box-shadow:0 1px 2px rgb(11 42 71 / .06),0 14px 30px rgb(11 42 71 / .12)}
.product-card__media{aspect-ratio:1/1;background:#fff;display:flex;align-items:center;justify-content:center;padding:16px;border-bottom:1px solid var(--line)}
.product-card__media img{max-width:100%;max-height:100%;width:auto;height:auto;object-fit:contain}
.product-card__body{display:flex;flex-direction:column;gap:12px;padding:16px 18px;flex:1}
.product-card__title{font-size:15px;font-weight:600;line-height:1.35;color:var(--text)}
.product-card__price{font-family:var(--font-sans);font-size:19px;font-weight:800;letter-spacing:-.01em;color:var(--ink)}
.product-card__price--ask{font-size:14px;font-weight:600;color:var(--muted)}
.product-card__cta{margin-top:auto;display:inline-flex;align-items:center;gap:6px;font-weight:600;color:var(--teal);font-size:14px}
.product-card__cta svg{width:15px;height:15px}
/* карточки категорий в хабе оборудования */
.cat-card{display:flex;flex-direction:column;background:var(--white);border:1px solid var(--line);border-radius:16px;overflow:hidden;box-shadow:0 1px 2px rgb(11 42 71 / .06),0 8px 24px rgb(11 42 71 / .05);transition:transform .2s ease,box-shadow .2s ease;text-decoration:none;color:inherit}
.cat-card:hover{transform:translateY(-2px);box-shadow:0 1px 2px rgb(11 42 71 / .06),0 14px 30px rgb(11 42 71 / .12)}
.cat-card__media{aspect-ratio:16/10;overflow:hidden;background:var(--teal-soft)}
.cat-card__media img{width:100%;height:100%;object-fit:cover}
.cat-card__body{padding:16px 18px;display:flex;flex-direction:column;gap:6px}
.cat-card__body h3{font-size:17px;font-weight:700}
.cat-card__body p{color:var(--muted);font-size:14px;line-height:1.5}
.cat-card__more{margin-top:6px;font-weight:600;color:var(--teal);font-size:14px}
/* изображение-обложка в hero страницы категории */
.hero-cover{border-radius:20px;overflow:hidden;box-shadow:0 20px 50px rgb(0 0 0 / .3);border:1px solid rgba(255,255,255,.12);background:#fff}
.hero-cover img{display:block;width:100%;height:auto}

/* ===== Страницы ПО: app-tile визуал ===== */
.sol-tile{width:100%;max-width:420px;margin-inline:auto;border-radius:24px;overflow:hidden;box-shadow:0 24px 60px rgb(0 0 0 / .35);border:1px solid rgba(255,255,255,.12)}
.sol-tile svg{display:block;width:100%;height:auto}
.sol-logos{display:flex;flex-wrap:wrap;gap:12px;align-items:center;margin-top:8px}
.sol-logos .chip{background:var(--teal-soft);color:var(--teal);border-radius:999px;padding:6px 14px;font-weight:600;font-size:14px}

/* ===== Фикс мобильной сетки каталога (v3.1) ===== */
body{overflow-x:hidden}
.product-card,.cat-card{min-width:0}
.product-card__media img{width:100%;height:100%;object-fit:contain}
@media (max-width:600px){
  .catalog-grid{grid-template-columns:1fr}
}
@media (min-width:601px) and (max-width:900px){
  .catalog-grid{grid-template-columns:repeat(2,1fr)}
}

/* ===== Фикс переполнения hero на мобайле (v3.2) ===== */
.hero-visual,.hero-copy{min-width:0}
.hero-cover{max-width:100%}
.hero-cover img{max-width:100%;height:auto}
.hero--compact .hero-grid{grid-template-columns:minmax(0,1fr)}
.sol-tile{max-width:min(420px,100%)}

/* ===== Мобильная защита от переполнения (v3.3) ===== */
.grid > *, .hero-stats > *, .steps > *, .split > *, .catalog-grid > *, .cta-group > *{min-width:0}
h1,h2,h3,p,li,summary,.stat-num,.hero-lead,.section-lead{overflow-wrap:break-word}
.cta-group{flex-wrap:wrap}

/* ===== Каталог: фото любых пропорций в квадрате; карточки на тёмном фоне (v3.4) ===== */
.product-card__media{position:relative;overflow:hidden}
.product-card__media img{position:absolute;inset:16px;width:calc(100% - 32px);height:calc(100% - 32px);max-width:none;max-height:none;object-fit:contain}
.catalog-note{margin-top:24px}
.section--dark .card{background:rgba(248,250,252,.06);border-color:rgba(248,250,252,.14);box-shadow:none;color:var(--on-dark)}
.section--dark .card p{color:var(--on-dark-muted)}
.section--dark .card:hover{border-color:rgba(248,250,252,.28);box-shadow:none;color:var(--on-dark)}
.section--dark .card-more{color:var(--amber, #F59E0B)}

/* ===== Сетка 4 колонки и крупные цифры результата (v3.5) ===== */
.grid--4{grid-template-columns:repeat(4,1fr)}
@media (max-width:1024px){.grid--4{grid-template-columns:repeat(2,1fr)}}
@media (max-width:480px){.grid--4{grid-template-columns:1fr}}
.card .result-num{display:block;font-size:clamp(34px,4vw,44px);font-weight:800;letter-spacing:-.02em;line-height:1.05;color:var(--teal)}
.card p strong{color:var(--text)}

/* ===== Общий список телефонов (v3.6) ===== */
.phones-card{margin-top:24px}
.office-phones--grid{grid-template-columns:repeat(auto-fill,minmax(210px,1fr));column-gap:24px}
.checklist--cols{columns:2;column-gap:32px}
.checklist--cols li{break-inside:avoid}
@media (max-width:768px){.checklist--cols{columns:1}}

/* ===== Акцентная строка в заголовке первого экрана (v3.7) ===== */
.h1-accent{display:block;margin-top:.15em;font-size:.62em;line-height:1.15;color:var(--amber-bright)}
.hero-stats--3{grid-template-columns:repeat(3,1fr)}
@media (max-width:768px){.hero-stats--3{grid-template-columns:repeat(3,1fr)}}
@media (max-width:480px){.hero-stats--3{grid-template-columns:1fr}}
.stat-num.stat-num--long{white-space:normal;font-size:clamp(22px,2.2vw,30px);line-height:1.15;padding-top:.25em}
a[href^="tel:"]{white-space:nowrap}

/* ===== Купить через Kaspi: кнопка на карточке и окно заказа (v3.8) ===== */
.btn--kaspi{background:#F14635;color:#fff;border:0}
.btn--kaspi:hover{background:#d93a2b;color:#fff}
.btn--ghost-dark{background:transparent;color:var(--ink);border:1px solid var(--line)}
.product-card__buy{align-self:flex-start;display:inline-flex;align-items:center;gap:8px;padding:10px 14px;border:0;border-radius:10px;background:#F14635;color:#fff;font:inherit;font-weight:700;font-size:14px;cursor:pointer;transition:background .15s ease}
.product-card__buy:hover{background:#d93a2b}
.product-card__buy svg{width:16px;height:16px}
body.buy-open{overflow:hidden}
.buy-modal{position:fixed;inset:0;z-index:1000;display:flex;align-items:center;justify-content:center;padding:16px}
.buy-modal[hidden]{display:none!important}
.buy-modal__backdrop{position:absolute;inset:0;background:rgb(11 42 71 / .55)}
.buy-modal__panel{position:relative;width:100%;max-width:460px;max-height:calc(100dvh - 32px);overflow:auto;background:#fff;border-radius:18px;padding:24px 22px 20px;box-shadow:0 24px 60px rgb(11 42 71 / .3)}
.buy-modal__x{position:absolute;top:10px;right:12px;width:36px;height:36px;border:0;background:transparent;font-size:26px;line-height:1;color:var(--muted);cursor:pointer}
.buy-modal__eyebrow{margin:0 0 12px;font-family:var(--font-mono);font-size:12px;letter-spacing:.12em;text-transform:uppercase;color:#F14635}
.buy-modal__product{display:flex;gap:14px;align-items:center;padding:12px;border:1px solid var(--line);border-radius:12px;margin-bottom:16px}
.buy-modal__product img{width:72px;height:72px;object-fit:contain;flex:none;background:#fff}
.buy-modal__product h2{margin:0 0 4px;font-size:16px;line-height:1.3;color:var(--text)}
.buy-modal__price{margin:0;font-weight:800;color:var(--ink)}
.buy-form{display:grid;gap:12px}
.buy-form__row--qty{display:flex;flex-wrap:wrap;align-items:center;gap:10px 14px}
.buy-form__row--qty label{font-weight:600;font-size:14px}
.buy-qty{display:inline-flex;border:1px solid var(--line);border-radius:10px;overflow:hidden}
.buy-qty button{width:38px;border:0;background:#f3f6f9;font-size:18px;cursor:pointer}
.buy-qty input{width:52px;border:0;text-align:center;font:inherit;font-weight:700;-moz-appearance:textfield}
.buy-qty input::-webkit-inner-spin-button,.buy-qty input::-webkit-outer-spin-button{-webkit-appearance:none;margin:0}
.buy-form__total{margin:0 0 0 auto;font-size:15px}
.buy-form__total strong{font-size:18px;color:var(--ink)}
.buy-form__field{display:grid;gap:5px;font-size:14px;font-weight:600;color:var(--text)}
.buy-form__field input{width:100%;padding:11px 12px;border:1px solid var(--line);border-radius:10px;font:inherit;font-weight:400}
.buy-form__field input:focus{outline:2px solid var(--teal);outline-offset:1px;border-color:transparent}
.buy-form__field small{font-weight:400;color:var(--muted);font-size:12.5px}
.buy-form__error{margin:0;color:#c62828;font-size:14px;font-weight:600}
.buy-form__submit{width:100%;justify-content:center;margin-top:4px}
.buy-form__note{margin:0;font-size:12.5px;color:var(--muted);line-height:1.45}
.buy-done{text-align:center;display:grid;gap:12px;padding:8px 0}
.buy-done h2{margin:0;font-size:22px}
.buy-done p{margin:0;color:var(--muted)}
.buy-done .btn{justify-content:center}
.buy-form__wa{justify-content:center}
.buy-form[hidden],.buy-done[hidden],.buy-form__row--qty[hidden],.buy-form__wa[hidden]{display:none!important}
/* казахские заголовки: длинные слова не должны рваться на телефоне */
@media (max-width:480px){html[lang="kk"] .hero h1{font-size:30px;line-height:1.12}}

/* ===== Характеристики в карточке и фильтры каталога (v3.9) ===== */
.product-card__specs{font-size:13px;border-top:1px dashed var(--line);padding-top:8px}
.product-card__specs summary{cursor:pointer;font-weight:600;color:var(--teal);list-style:none;display:inline-flex;align-items:center;gap:6px}
.product-card__specs summary::-webkit-details-marker{display:none}
.product-card__specs summary::after{content:"▾";font-size:11px;transition:transform .15s}
.product-card__specs[open] summary::after{transform:rotate(180deg)}
.specs-list{margin:8px 0 0;display:grid;gap:6px}
.specs-list div{display:grid;gap:1px}
.specs-list dt{color:var(--muted);font-size:12px}
.specs-list dd{margin:0;color:var(--text);line-height:1.35;overflow-wrap:anywhere}
.catalog-filter{display:grid;gap:12px;margin-bottom:24px;padding:16px;border:1px solid var(--line);border-radius:14px;background:#fff}
.cf-top{display:flex;flex-wrap:wrap;gap:10px 16px;align-items:center}
.cf-search{flex:1 1 260px;min-width:0;padding:11px 14px;border:1px solid var(--line);border-radius:10px;font:inherit}
.cf-search:focus{outline:2px solid var(--teal);outline-offset:1px;border-color:transparent}
.cf-sort{display:inline-flex;align-items:center;gap:8px;font-size:14px;color:var(--muted)}
.cf-sort select{padding:9px 10px;border:1px solid var(--line);border-radius:10px;font:inherit;color:var(--text);background:#fff}
.cf-group{display:flex;flex-wrap:wrap;gap:8px;align-items:center}
.cf-label{font-size:13px;color:var(--muted);margin-right:2px}
.cf-chip{padding:7px 12px;border:1px solid var(--line);border-radius:999px;background:#fff;font:inherit;font-size:13.5px;color:var(--text);cursor:pointer;transition:background .15s,border-color .15s}
.cf-chip:hover{border-color:var(--teal)}
.cf-chip.is-on{background:var(--teal);border-color:var(--teal);color:#fff}
.cf-status{display:flex;align-items:center;gap:12px;font-size:13px;color:var(--muted)}
.cf-reset{border:0;background:none;color:var(--teal);font:inherit;font-weight:600;cursor:pointer;padding:0}
.cf-empty{margin:24px 0;padding:20px;border:1px dashed var(--line);border-radius:12px;text-align:center;color:var(--muted)}
.product-card[hidden]{display:none!important}
.catalog-grid:has(.product-card__specs[open]){align-items:start}

/* ===== Подобрать комплект (v4.0) ===== */
.podbor-section h1{font-size:clamp(30px,4vw,46px);margin-bottom:12px}
.podbor{display:grid;gap:22px}
.pb-step,.pb-result{padding:22px;border:1px solid var(--line);border-radius:16px;background:#fff}
.pb-result{border-color:var(--teal);box-shadow:0 8px 24px rgb(11 42 71 / .08)}
.pb-q{font-size:19px;margin:0 0 14px}
.pb-options{display:flex;flex-wrap:wrap;gap:10px}
.pb-opt{padding:11px 16px;border:1px solid var(--line);border-radius:12px;background:#fff;font:inherit;font-weight:600;color:var(--text);cursor:pointer;transition:border-color .15s,background .15s}
.pb-opt:hover{border-color:var(--teal)}
.pb-opt.is-on{background:var(--teal);border-color:var(--teal);color:#fff}
.pb-opt--n{min-width:56px;text-align:center}
.pb-checks{display:flex;flex-wrap:wrap;gap:10px 22px;align-items:center}
.pb-check{display:inline-flex;align-items:center;gap:8px;font-size:15px;cursor:pointer}
.pb-check input{width:18px;height:18px;accent-color:var(--teal)}
.pb-sub{width:100%;font-size:13px;color:var(--muted);margin-top:4px}
.pb-totals{display:flex;flex-wrap:wrap;gap:12px 40px;margin:18px 0 6px}
.pb-totals div{display:grid}
.pb-totals span{font-size:13px;color:var(--muted)}
.pb-totals strong{font-size:clamp(24px,3vw,32px);color:var(--ink)}
.pb-note{font-size:13px;color:var(--muted);margin:6px 0 16px}
.pb-more{margin:14px 0 0}
/* podbor: мобильная вёрстка (v4.1) */
.podbor{grid-template-columns:minmax(0,1fr)}
.pb-step,.pb-result{min-width:0}
.pb-opt{max-width:100%;text-align:left;white-space:normal}
@media (max-width:640px){
  .pb-step,.pb-result{padding:16px}
  .pb-q{font-size:17px}
  .pb-opt{padding:10px 13px;font-size:15px}
  .pb-opt--n{min-width:48px;text-align:center}
  .pb-checks{gap:12px}
  .pb-check{width:100%;align-items:flex-start}
  .pb-check input{flex:none;margin-top:2px}
  .pb-result .pricing-wrap{overflow:visible;border:0;box-shadow:none;background:none}
  .pb-result .pricing thead{display:none}
  .pb-result .pricing,.pb-result .pricing tbody,.pb-result .pricing tr{display:block;width:100%;min-width:0}
  .pb-result .pricing tbody th{white-space:normal}
  .pb-result .pricing tr{display:grid;grid-template-columns:1fr auto;gap:2px 12px;padding:12px 0;border-bottom:1px solid var(--line)}
  .pb-result .pricing th,.pb-result .pricing td{display:block;padding:0;border:0;text-align:left;background:none}
  .pb-result .pricing th{grid-column:1/-1;font-size:15px}
  .pb-result .pricing td:nth-child(2){grid-column:1/-1;font-size:14px}
  .pb-result .pricing td:nth-child(3){font-size:13px;color:var(--muted)}
  .pb-result .pricing td:nth-child(3)::before{content:"× "}
  .pb-result .pricing td.price{text-align:right}
  .pb-totals{gap:12px 28px}
  .pb-result .cta-group .btn{width:100%;white-space:normal;text-align:center}
}
/* ===== Каталог: удобная сетка и компактный мобайл (v4.2) ===== */
.catalog-grid{grid-template-columns:repeat(auto-fill,minmax(250px,1fr))}
.product-card__buy{width:100%;justify-content:center;white-space:nowrap}
.product-card__title{min-height:2.7em}
@media (max-width:600px){
  .hero-visual:has(.hero-cover){display:none}
  .catalog-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
  .product-card{border-radius:12px}
  .product-card__media{padding:8px}
  .product-card__body{padding:10px 10px 12px;gap:8px}
  .product-card__title{font-size:13px;line-height:1.3;min-height:3.9em}
  .product-card__price{font-size:16px}
  .product-card__price--ask{font-size:13px}
  .product-card__specs{font-size:12px}
  .specs-list dt{font-size:11px}
  .product-card__buy{padding:9px 6px;font-size:12.5px;gap:5px;white-space:normal;line-height:1.2}
  .product-card__buy svg{display:none}
  .product-card__cta{font-size:13px}
  .catalog-filter{padding:12px;gap:10px;margin-bottom:16px}
  .cf-top{gap:8px}
  .cf-sort{width:100%}
  .cf-sort select{flex:1}
  .cf-group{flex-wrap:nowrap;overflow-x:auto;scrollbar-width:none;margin-inline:-12px;padding-inline:12px}
  .cf-group::-webkit-scrollbar{display:none}
  .cf-chip,.cf-label{flex:none}
}
@media (min-width:901px){
  .hero-grid:has(.hero-cover){grid-template-columns:minmax(0,1fr) 300px;align-items:center;gap:48px}
  .hero-grid:has(.hero-cover) .hero-cover{max-width:300px;margin-left:auto}
}
