/* ==========================================================================
   FLIPFLAT — дизайн-система
   Шрифты: Golos Text (заголовки), Manrope (текст), JetBrains Mono (цифры/сметы)
   ========================================================================== */

:root {
  /* --- Палитра: монохром. Только белый, серый и чёрный. --- */
  --bg:            #FFFFFF;
  --surface:       #FFFFFF;
  --surface-2:     #F4F4F4;
  --ink:           #000000;
  --ink-2:         #2E2E2E;
  --muted:         #6B6B6B;
  --line:          #E2E2E2;
  --line-strong:   #9A9A9A;
  --accent:        #000000;
  --accent-2:      #3A3A3A;
  --accent-soft:   #F0F0F0;
  --on-accent:     #FFFFFF;
  --dark:          #111111;
  --dark-2:        #1C1C1C;
  --dark-line:     #3A3A3A;
  --dark-ink:      #FFFFFF;
  --dark-muted:    #A6A6A6;
  --ok:            #000000;
  --plate:         #FFFFFF;

  --shadow-sm: 0 1px 2px rgba(0,0,0,.06);
  --shadow-md: 0 2px 6px rgba(0,0,0,.06), 0 14px 40px rgba(0,0,0,.08);
  --shadow-lg: 0 4px 12px rgba(0,0,0,.10), 0 30px 80px rgba(0,0,0,.16);

  --r-sm: 6px;
  --r-md: 10px;
  --r-lg: 18px;

  --container: 1280px;
  --gutter: clamp(16px, 4vw, 40px);
  --header-h: 68px;

  --font-display: "Golos Text", "Manrope", "Segoe UI", system-ui, sans-serif;
  --font-body: "Manrope", "Segoe UI", system-ui, -apple-system, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, "SF Mono", Consolas, monospace;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg:          #0D0D0D;
    --surface:     #161616;
    --surface-2:   #1F1F1F;
    --ink:         #FFFFFF;
    --ink-2:       #D6D6D6;
    --muted:       #9A9A9A;
    --line:        #2A2A2A;
    --line-strong: #4A4A4A;
    --accent:      #FFFFFF;
    --accent-2:    #D0D0D0;
    --accent-soft: #1F1F1F;
    --on-accent:   #0D0D0D;
    --dark:        #000000;
    --dark-2:      #141414;
    --dark-line:   #2A2A2A;
    --dark-ink:    #FFFFFF;
    --dark-muted:  #9A9A9A;
    --ok:          #FFFFFF;
    --plate:       #F2F2F2;
    --shadow-sm: 0 1px 2px rgba(0,0,0,.5);
    --shadow-md: 0 2px 6px rgba(0,0,0,.45), 0 14px 40px rgba(0,0,0,.55);
    --shadow-lg: 0 4px 12px rgba(0,0,0,.6), 0 30px 80px rgba(0,0,0,.7);
  }
}

:root[data-theme="dark"] {
  --bg:      #0D0D0D;
  --surface:   #161616;
  --surface-2:   #1F1F1F;
  --ink:     #FFFFFF;
  --ink-2:     #D6D6D6;
  --muted:     #9A9A9A;
  --line:    #2A2A2A;
  --line-strong: #4A4A4A;
  --accent:    #FFFFFF;
  --accent-2:  #D0D0D0;
  --accent-soft: #1F1F1F;
  --on-accent:   #0D0D0D;
  --dark:    #000000;
  --dark-2:    #141414;
  --dark-line:   #2A2A2A;
  --dark-ink:  #FFFFFF;
  --dark-muted:  #9A9A9A;
  --ok:      #FFFFFF;
  --plate:     #F2F2F2;
  --shadow-sm: 0 1px 2px rgba(0,0,0,.5);
  --shadow-md: 0 2px 6px rgba(0,0,0,.45), 0 14px 40px rgba(0,0,0,.55);
  --shadow-lg: 0 4px 12px rgba(0,0,0,.6), 0 30px 80px rgba(0,0,0,.7);
}

/* --------------------------------------------------------------- Базовое -- */

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

/* Закрытая шторка меню уезжает за правый край — обрезаем, не создавая
   контейнер прокрутки, иначе перестанет работать sticky-шапка. */
html { overflow-x: clip; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-wrap: break-word;
}

img, svg, video { max-width: 100%; display: block; }
[hidden] { display: none !important; }

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

h1 { font-size: clamp(34px, 5.4vw, 62px); letter-spacing: -0.03em; }
h2 { font-size: clamp(27px, 3.6vw, 42px); }
h3 { font-size: clamp(20px, 2.2vw, 25px); letter-spacing: -0.015em; }
h4 { font-size: 18px; letter-spacing: -0.01em; }

p { margin: 0; }

a { color: inherit; text-decoration-color: color-mix(in srgb, currentColor 35%, transparent); text-underline-offset: 3px; }

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

::selection { background: var(--accent); color: var(--on-accent); }

/* ------------------------------------------------------------ Утилиты ----- */

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

.section { padding-block: clamp(56px, 8vw, 116px); }
.section--tight { padding-block: clamp(40px, 5vw, 72px); }

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

.lead {
  font-size: clamp(17px, 1.6vw, 20px);
  line-height: 1.55;
  color: var(--ink-2);
  max-width: 62ch;
}

.muted { color: var(--muted); }
.mono { font-family: var(--font-mono); font-variant-numeric: tabular-nums; }
.nowrap { white-space: nowrap; }

.stack { display: flex; flex-direction: column; }
.stack-8  { gap: 8px; }
.stack-12 { gap: 12px; }
.stack-16 { gap: 16px; }
.stack-24 { gap: 24px; }
.stack-32 { gap: 32px; }

.section-head {
  display: flex;
  flex-direction: column;
  gap: 14px;
  max-width: 70ch;
  margin-bottom: clamp(28px, 4vw, 52px);
}

/* Место, которое нужно заполнить реальными данными компании */
/* Метка «нужны данные от заказчика». В монохроме цветом не выделить,
   поэтому — серая подложка плюс пунктир. */
.todo {
  border-bottom: 1.5px dashed var(--muted);
  background: var(--surface-2);
  padding: 0 .25em;
  cursor: help;
}

.visually-hidden {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip-path: inset(50%); white-space: nowrap;
}

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

.btn {
  /* Все кнопки — без заливки, обводка 1px, текст цветом основного текста. */
  --btn-bg: transparent;
  --btn-fg: var(--ink);
  --btn-line: var(--ink);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 52px;
  padding: 0 26px;
  border: 1px solid var(--btn-line);
  border-radius: var(--r-sm);
  background: var(--btn-bg);
  color: var(--btn-fg);
  font: 600 16px/1 var(--font-body);
  letter-spacing: -0.005em;
  text-decoration: none;
  cursor: pointer;
  transition: background-color .18s ease, border-color .18s ease, color .18s ease, transform .18s ease;
}
.btn:hover { --btn-bg: var(--surface-2); }
.btn:active { transform: translateY(1px); }

/* Второстепенная кнопка: та же форма, обводка светлее. */
.btn--ghost { --btn-line: var(--line-strong); }
.btn--ghost:hover { --btn-bg: var(--surface-2); --btn-line: var(--ink); }

/* На тёмной подложке инвертируем: обводка и текст светлые. */
.btn--on-dark {
  --btn-fg: var(--dark-ink);
  --btn-line: color-mix(in srgb, var(--dark-ink) 45%, transparent);
}
.btn--on-dark:hover { --btn-bg: color-mix(in srgb, var(--dark-ink) 12%, transparent); --btn-line: var(--dark-ink); }

.btn--sm { min-height: 42px; padding: 0 18px; font-size: 15px; }
.btn--block { width: 100%; }

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  font-size: 16px;
  color: var(--accent);
  text-decoration: none;
  width: fit-content;
}
.link-arrow .arw { transition: transform .2s ease; }
.link-arrow:hover .arw { transform: translateX(4px); }

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

.header {
  position: sticky;
  top: env(safe-area-inset-top, 0px);
  z-index: 60;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s ease, background-color .2s ease;
}
.header.is-stuck { border-bottom-color: var(--line); }

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

.logo {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 21px;
  letter-spacing: 0.06em;
  text-decoration: none;
  color: var(--ink);
  flex: none;
}
.logo span { color: var(--accent); }

.nav { display: flex; align-items: center; gap: 0; margin-inline: auto; min-width: 0; }
/* Разметка меню WordPress */
.nav ul { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: 0; }
.drawer__nav ul { list-style: none; margin: 0; padding: 0; display: block; }
.nav a {
  position: relative;
  padding: 9px 10px;
  border-radius: var(--r-sm);
  font-size: 14.5px;
  font-weight: 500;
  color: var(--ink-2);
  text-decoration: none;
  white-space: nowrap;
  transition: color .15s ease, background-color .15s ease;
}
.nav a:hover { color: var(--ink); background: color-mix(in srgb, var(--ink) 6%, transparent); }
.nav a[aria-current="page"] { color: var(--ink); font-weight: 600; }
.nav a[aria-current="page"]::after {
  content: "";
  position: absolute; left: 10px; right: 10px; bottom: 2px;
  height: 2px; background: var(--accent); border-radius: 2px;
}

.header__side { display: flex; align-items: center; gap: 12px; flex: none; }

.header__phone {
  font-family: var(--font-mono);
  font-size: 15px;
  font-weight: 500;
  color: var(--ink);
  text-decoration: none;
  white-space: nowrap;
}
.header__phone:hover { color: var(--accent); }

.burger {
  display: none;
  width: 46px; height: 46px;
  align-items: center; justify-content: center;
  border: 1px solid var(--line-strong);
  border-radius: var(--r-sm);
  background: transparent;
  color: var(--ink);
  cursor: pointer;
}

@media (max-width: 1240px) { .header__phone { display: none; } }

@media (max-width: 1180px) {
  .nav { display: none; }
  .burger { display: inline-flex; }
  .header__side { margin-left: auto; }
  .header__side .btn { display: none; }
}

/* ------------------------------------------------------ Мобильное меню ---- */

.drawer {
  position: fixed;
  inset: 0;
  z-index: 90;
  display: grid;
  grid-template-rows: auto 1fr auto;
  background: var(--bg);
  padding: env(safe-area-inset-top, 0px) 0 env(safe-area-inset-bottom, 0px);
  /* Закрытая шторка не уезжает за край экрана — иначе страница получает
     горизонтальную прокрутку. Скрываем масштабом и прозрачностью. */
  opacity: 0;
  transform: scale(.98);
  visibility: hidden;
  transition: opacity .24s ease, transform .28s cubic-bezier(.4,0,.2,1), visibility 0s linear .28s;
  overscroll-behavior: contain;
}
.drawer.is-open {
  opacity: 1;
  transform: none;
  visibility: visible;
  transition-delay: 0s, 0s, 0s;
}

.drawer__top {
  display: flex; align-items: center; justify-content: space-between;
  min-height: var(--header-h);
  border-bottom: 1px solid var(--line);
}
.drawer__nav { overflow-y: auto; padding-block: 12px; }
.drawer__nav a {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 600;
  letter-spacing: -0.02em;
  text-decoration: none;
  color: var(--ink);
}
.drawer__nav a .hint {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0.04em;
  color: var(--muted);
  text-align: right;
  flex: none;
}
.drawer__nav a[aria-current="page"] { color: var(--accent); }
.drawer__foot {
  border-top: 1px solid var(--line);
  padding-block: 18px 22px;
  display: flex; flex-direction: column; gap: 14px;
}
.drawer__contacts { display: flex; flex-wrap: wrap; gap: 10px; }

.scrim {
  position: fixed; inset: 0; z-index: 85;
  background: rgba(10,8,7,.5);
  opacity: 0; pointer-events: none;
  transition: opacity .3s ease;
}
.scrim.is-on { opacity: 1; pointer-events: auto; }

/* --------------------------------------------------------------- Герой ---- */

.hero { padding-block: clamp(36px, 5vw, 68px) clamp(40px, 6vw, 80px); }

.hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  gap: clamp(28px, 4vw, 64px);
  align-items: center;
}

.hero__copy { display: flex; flex-direction: column; gap: 22px; }
.hero h1 { max-width: 15ch; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; }

.hero__media {
  position: relative;
  display: grid;
  grid-template-columns: 1.35fr 1fr;
  grid-template-rows: repeat(2, auto);
  gap: 12px;
}
.hero__media img { border-radius: var(--r-md); object-fit: cover; width: 100%; height: 100%; }
.hero__media .m1 { grid-row: span 2; aspect-ratio: 3/4.1; }
.hero__media .m2 { aspect-ratio: 4/3; }
.hero__media .m3 { aspect-ratio: 4/3.2; }

.facts {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-top: 1px solid var(--line);
  margin-top: clamp(28px, 4vw, 52px);
}
.facts div {
  padding: 22px 22px 0 0;
  border-right: 1px solid var(--line);
}
.facts div:last-child { border-right: 0; }
.facts dt {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 8px;
}
.facts dd {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(22px, 2.4vw, 30px);
  font-weight: 600;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
}
.facts dd small { font-size: 15px; font-weight: 500; color: var(--muted); letter-spacing: 0; }

@media (max-width: 900px) {
  .hero__grid { grid-template-columns: 1fr; }
  .hero__media { grid-template-columns: 1fr 1fr; }
  .hero__media .m1 { grid-row: span 2; aspect-ratio: 3/4.6; }
  .facts { grid-template-columns: 1fr 1fr; }
  .facts div:nth-child(2) { border-right: 0; }
  .facts div:nth-child(3), .facts div:nth-child(4) { border-top: 1px solid var(--line); margin-top: 18px; }
}
@media (max-width: 520px) {
  .facts { grid-template-columns: 1fr; }
  .facts div { border-right: 0; border-top: 1px solid var(--line); margin-top: 0; padding-block: 16px 0; }
  .facts div:first-child { border-top: 0; }
}

/* ------------------------------------------------------------ Карточки ---- */

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
  gap: clamp(16px, 2vw, 26px);
}

.card {
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  overflow: hidden;
  transition: border-color .2s ease, box-shadow .2s ease;
}
.card:hover { border-color: var(--line-strong); box-shadow: var(--shadow-md); }
.card__img { aspect-ratio: 16/10; width: 100%; object-fit: cover; }
.card__body { display: flex; flex-direction: column; gap: 12px; padding: 24px; flex: 1; }
.card__price {
  font-family: var(--font-mono);
  font-size: 13px;
  font-variant-numeric: tabular-nums;
  color: var(--accent);
  letter-spacing: 0.02em;
}
.card p { color: var(--muted); font-size: 15.5px; line-height: 1.55; }
.card .link-arrow { margin-top: auto; padding-top: 6px; }

/* --------------------------------------------------- Тёмная полоса ------- */

.band-dark {
  background: var(--dark);
  color: var(--dark-ink);
}
.band-dark h2, .band-dark h3 { color: var(--dark-ink); }
.band-dark .lead { color: var(--dark-muted); }
.band-dark .eyebrow { color: color-mix(in srgb, var(--dark-ink) 70%, transparent); }

.invest__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.85fr);
  gap: clamp(28px, 4vw, 64px);
  align-items: center;
}
.invest__steps { display: grid; gap: 2px; }
.invest__steps li {
  display: grid;
  grid-template-columns: 40px 1fr;
  gap: 14px;
  align-items: baseline;
  padding: 16px 0;
  border-bottom: 1px solid var(--dark-line);
  list-style: none;
}
.invest__steps li:first-child { border-top: 1px solid var(--dark-line); }
.invest__steps .n {
  font-family: var(--font-mono);
  font-size: 12px;
  color: color-mix(in srgb, var(--dark-ink) 70%, transparent);
  letter-spacing: .08em;
}
.invest__steps .t { font-weight: 600; font-size: 16.5px; }
.invest__steps .d { display: block; font-weight: 400; color: var(--dark-muted); font-size: 15px; margin-top: 3px; }
.invest__grid ul { margin: 0; padding: 0; }

.disclaimer {
  font-size: 13.5px;
  line-height: 1.5;
  color: var(--dark-muted);
  border-left: 2px solid var(--dark-line);
  padding-left: 14px;
  max-width: 68ch;
}

@media (max-width: 900px) { .invest__grid { grid-template-columns: 1fr; } }

/* ------------------------------------------------------- Калькулятор ------ */

.calc {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  gap: 0;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  overflow: hidden;
  background: var(--surface);
  box-shadow: var(--shadow-md);
}
.calc__controls { padding: clamp(22px, 3vw, 38px); display: flex; flex-direction: column; gap: 28px; }
.calc__result {
  padding: clamp(22px, 3vw, 38px);
  background: var(--dark);
  color: var(--dark-ink);
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.field { display: flex; flex-direction: column; gap: 10px; }
.field > .label {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}

.seg { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 6px; }
.seg--wrap { grid-auto-flow: row; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); }
.seg input { position: absolute; opacity: 0; pointer-events: none; }
.seg label {
  display: flex;
  flex-direction: column;
  gap: 3px;
  padding: 13px 14px;
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  background: var(--bg);
  transition: border-color .15s ease, background-color .15s ease, color .15s ease;
}
.seg label .sub {
  font-family: var(--font-mono);
  font-size: 11.5px;
  font-weight: 400;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}
.seg label:hover { border-color: var(--line-strong); }
.seg input:checked + label {
  border-color: var(--accent);
  background: var(--accent-soft);
  color: var(--accent);
}
.seg input:checked + label .sub { color: color-mix(in srgb, var(--accent) 80%, var(--ink)); }
.seg input:focus-visible + label { outline: 2px solid var(--accent); outline-offset: 2px; }

.area-row { display: flex; align-items: center; gap: 14px; }
.area-row input[type="number"] {
  width: 112px;
  padding: 11px 12px;
  border: 1px solid var(--line-strong);
  border-radius: var(--r-sm);
  background: var(--bg);
  color: var(--ink);
  font: 500 18px/1.2 var(--font-mono);
  font-variant-numeric: tabular-nums;
}
.area-row .unit { font-family: var(--font-mono); font-size: 14px; color: var(--muted); }

input[type="range"] {
  flex: 1;
  min-width: 80px;
  -webkit-appearance: none;
  appearance: none;
  height: 4px;
  border-radius: 4px;
  background: var(--line-strong);
  cursor: pointer;
}
input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 22px; height: 22px;
  border-radius: 50%;
  background: var(--accent);
  border: 3px solid var(--surface);
  box-shadow: var(--shadow-sm);
}
input[type="range"]::-moz-range-thumb {
  width: 22px; height: 22px; border: 3px solid var(--surface);
  border-radius: 50%; background: var(--accent);
}

.switch { display: flex; align-items: flex-start; gap: 12px; cursor: pointer; font-size: 15.5px; }
.switch input { margin: 3px 0 0; width: 18px; height: 18px; accent-color: var(--accent); flex: none; }
.switch .sub { display: block; font-size: 13.5px; color: var(--muted); margin-top: 2px; }

.calc__rows { display: flex; flex-direction: column; }
.calc__row {
  display: flex; justify-content: space-between; gap: 16px;
  padding: 12px 0;
  border-bottom: 1px solid var(--dark-line);
  font-size: 15px;
}
.calc__row span:first-child { color: var(--dark-muted); }
.calc__row span:last-child { font-family: var(--font-mono); font-variant-numeric: tabular-nums; }
/* Пояснение к строке меблировки. Специфичности класса хватает, чтобы
   перебить правило моноширинного шрифта выше. */
.calc__row .sub {
  display: block;
  margin-top: 3px;
  font-family: var(--font-body);
  font-size: 12.5px;
  font-variant-numeric: normal;
  color: var(--dark-muted);
}
.calc__row .sub:empty { display: none; }
.calc__total { display: flex; flex-direction: column; gap: 4px; padding-top: 4px; }
.calc__total .label {
  font-family: var(--font-mono); font-size: 11px; letter-spacing: .12em;
  text-transform: uppercase; color: var(--dark-muted);
}
.calc__total .value {
  font-family: var(--font-display);
  font-size: clamp(30px, 4.2vw, 46px);
  font-weight: 600;
  letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums;
}
.calc__note { font-size: 13px; line-height: 1.5; color: var(--dark-muted); }

@media (max-width: 860px) { .calc { grid-template-columns: 1fr; } }

/* ------------------------------------------------------------ Таблицы ----- */

.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: var(--surface);
  -webkit-overflow-scrolling: touch;
}
table { width: 100%; border-collapse: collapse; min-width: 560px; }
caption {
  text-align: left;
  padding: 18px 20px 0;
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 600;
  letter-spacing: -0.01em;
}
th, td { padding: 14px 20px; text-align: left; border-bottom: 1px solid var(--line); font-size: 15.5px; }
thead th {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 500;
  white-space: nowrap;
}
tbody th { font-weight: 600; }
tbody tr:last-child td, tbody tr:last-child th { border-bottom: 0; }
td.num { font-family: var(--font-mono); font-variant-numeric: tabular-nums; white-space: nowrap; }
tr.is-total th, tr.is-total td { background: var(--accent-soft); color: var(--accent); font-weight: 600; }
.yes { color: var(--ok); font-weight: 600; }
.no { color: var(--muted); }

.table-hint { font-size: 13px; color: var(--muted); margin-top: 10px; }

/* ------------------------------------------------------------ Галерея ----- */

.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 10px;
}
.gallery__item {
  position: relative;
  border: 0;
  padding: 0;
  margin: 0;
  background: var(--surface-2);
  border-radius: var(--r-sm);
  overflow: hidden;
  cursor: zoom-in;
  aspect-ratio: 4/3;
}
.gallery__item:nth-child(6n+1) { grid-column: span 2; aspect-ratio: 8/5; }
.gallery__item img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform .5s cubic-bezier(.2,.6,.2,1), filter .3s ease;
}
.gallery__item:hover img { transform: scale(1.04); }
.gallery__item::after {
  content: "＋";
  position: absolute; right: 10px; bottom: 8px;
  width: 30px; height: 30px;
  display: grid; place-items: center;
  border-radius: 50%;
  background: rgba(0,0,0,.55);
  color: #fff;
  font-size: 15px;
  opacity: 0;
  transition: opacity .2s ease;
}
.gallery__item:hover::after, .gallery__item:focus-visible::after { opacity: 1; }

@media (max-width: 620px) {
  .gallery { grid-template-columns: 1fr 1fr; }
  .gallery__item:nth-child(6n+1) { grid-column: span 2; }
}

/* ------------------------------------------------------------ Лайтбокс ---- */

.lb {
  position: fixed;
  inset: 0;
  z-index: 120;
  background: rgba(12,10,9,.94);
  display: grid;
  grid-template-rows: auto 1fr auto;
  padding: env(safe-area-inset-top, 0px) 0 env(safe-area-inset-bottom, 0px);
  opacity: 0;
  pointer-events: none;
  transition: opacity .22s ease;
}
.lb.is-open { opacity: 1; pointer-events: auto; }

.lb__bar {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 12px clamp(12px, 3vw, 24px);
  color: #F2F2F2;
}
.lb__counter { font-family: var(--font-mono); font-size: 13px; font-variant-numeric: tabular-nums; letter-spacing: .06em; }
.lb__tools { display: flex; gap: 6px; }
.lb__btn {
  width: 42px; height: 42px;
  display: grid; place-items: center;
  border: 1px solid rgba(242,242,242,.22);
  border-radius: var(--r-sm);
  background: transparent;
  color: #F2F2F2;
  font-size: 17px;
  line-height: 1;
  cursor: pointer;
  transition: background-color .15s ease, border-color .15s ease, opacity .15s ease;
}
.lb__btn:hover { background: rgba(237,231,223,.12); border-color: rgba(237,231,223,.5); }
.lb__btn[disabled] { opacity: .35; cursor: default; }

.lb__stage {
  position: relative;
  overflow: hidden;
  display: grid;
  place-items: center;
  touch-action: none;
  cursor: zoom-in;
}
.lb__stage.is-zoomed { cursor: grab; }
.lb__stage.is-grabbing { cursor: grabbing; }
.lb__img {
  max-width: calc(100% - 24px);
  max-height: 100%;
  object-fit: contain;
  transform-origin: center center;
  will-change: transform;
  user-select: none;
  -webkit-user-drag: none;
}

.lb__nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 52px; height: 52px;
  display: grid; place-items: center;
  border: 1px solid rgba(242,242,242,.22);
  border-radius: 50%;
  background: rgba(0,0,0,.5);
  color: #F2F2F2;
  font-size: 20px;
  cursor: pointer;
  transition: background-color .15s ease;
}
.lb__nav:hover { background: rgba(12,10,9,.85); }
.lb__nav--prev { left: clamp(8px, 2vw, 20px); }
.lb__nav--next { right: clamp(8px, 2vw, 20px); }

.lb__foot { padding: 10px clamp(12px, 3vw, 24px) 16px; }
.lb__caption {
  color: #A6A6A6;
  font-size: 13.5px;
  text-align: center;
  margin-bottom: 10px;
  min-height: 1.4em;
}
.lb__thumbs {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 4px;
  scrollbar-width: thin;
}
.lb__thumbs img {
  width: 72px; height: 52px;
  object-fit: cover;
  border-radius: 4px;
  opacity: .45;
  cursor: pointer;
  flex: none;
  transition: opacity .18s ease, outline-color .18s ease;
  outline: 2px solid transparent;
}
.lb__thumbs img:hover { opacity: .8; }
.lb__thumbs img.is-active { opacity: 1; outline-color: var(--accent); }

@media (max-width: 620px) {
  .lb__nav { width: 44px; height: 44px; }
  .lb__thumbs { display: none; }
}

/* -------------------------------------------------------------- Этапы ----- */

.steps { display: grid; gap: 0; counter-reset: st; }
.steps li {
  display: grid;
  grid-template-columns: 76px minmax(0, 1fr);
  gap: clamp(12px, 3vw, 32px);
  padding: 26px 0;
  border-top: 1px solid var(--line);
  list-style: none;
}
.steps li:last-child { border-bottom: 1px solid var(--line); }
.steps .n {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--accent);
  letter-spacing: .08em;
  padding-top: 5px;
}
.steps h3 { margin-bottom: 7px; }
.steps p { color: var(--muted); font-size: 15.5px; max-width: 70ch; }
@media (max-width: 620px) { .steps li { grid-template-columns: 1fr; gap: 6px; } }

/* --------------------------------------------------------- Преимущества --- */

.benefits { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--r-md); overflow: hidden; }
.benefits article { background: var(--bg); padding: clamp(20px, 2.6vw, 30px); display: flex; flex-direction: column; gap: 10px; }
.benefits h3 { font-size: 19px; }
.benefits p { color: var(--muted); font-size: 15.5px; }

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

.faq { border-top: 1px solid var(--line); max-width: 92ch; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: baseline;
  padding: 20px 0;
  cursor: pointer;
  font-family: var(--font-display);
  font-size: clamp(17px, 2vw, 20px);
  font-weight: 600;
  letter-spacing: -0.015em;
  list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  font-family: var(--font-mono);
  font-size: 20px;
  color: var(--accent);
  flex: none;
  transition: transform .2s ease;
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq .answer { padding-bottom: 22px; color: var(--ink-2); max-width: 74ch; font-size: 16px; }

/* -------------------------------------------------------------- Формы ----- */

.lead-form {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 12px;
  align-items: start;
}
.lead-form .full { grid-column: 1 / -1; }

.input {
  width: 100%;
  padding: 15px 16px;
  border: 1px solid var(--line-strong);
  border-radius: var(--r-sm);
  background: var(--surface);
  color: var(--ink);
  font: 500 16px/1.3 var(--font-body);
}
.input::placeholder { color: var(--muted); font-weight: 400; }
.input:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; border-color: var(--accent); }
.input[aria-invalid="true"] { border-color: var(--accent); background: var(--accent-soft); }

.consent { display: flex; gap: 10px; align-items: flex-start; font-size: 13px; line-height: 1.45; color: var(--muted); }
.consent input { margin: 2px 0 0; width: 16px; height: 16px; accent-color: var(--accent); flex: none; }
.consent a { color: var(--ink-2); }

.form-status { font-size: 15px; font-weight: 600; color: var(--ok); }

.cta-block {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.95fr);
  gap: clamp(28px, 4vw, 60px);
  align-items: start;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: clamp(24px, 3.4vw, 46px);
}
@media (max-width: 880px) { .cta-block { grid-template-columns: 1fr; } }

.contact-list { display: grid; gap: 2px; }
.contact-list a {
  display: flex; align-items: baseline; justify-content: space-between; gap: 16px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
  text-decoration: none;
}
.contact-list .k { font-family: var(--font-mono); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.contact-list .v { font-size: 17px; font-weight: 600; }
.contact-list a:hover .v { color: var(--accent); }

/* ------------------------------------------------------------ Шоурум ------ */

.showroom {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
  gap: clamp(24px, 4vw, 56px);
  align-items: center;
}
.showroom__imgs { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.showroom__imgs .gallery__item:first-child { grid-column: span 2; aspect-ratio: 16/9; }
@media (max-width: 880px) { .showroom { grid-template-columns: 1fr; } }

/* ------------------------------------------------------------- Отзывы ----- */

.reviews { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 16px; }
.review {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: 26px;
  display: flex; flex-direction: column; gap: 14px;
}
.review blockquote { margin: 0; font-size: 16px; line-height: 1.6; color: var(--ink-2); }
.review figcaption { font-size: 14px; color: var(--muted); margin-top: auto; }
.review figcaption b { display: block; color: var(--ink); font-size: 15px; }

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

.footer { background: var(--dark); color: var(--dark-muted); padding-block: clamp(40px, 5vw, 64px) 28px; }
.footer a { color: var(--dark-ink); text-decoration: none; }
.footer a:hover { color: var(--accent-2); }
.footer__grid {
  display: grid;
  grid-template-columns: 1.4fr repeat(3, minmax(0, 1fr));
  gap: clamp(24px, 3vw, 40px);
  padding-bottom: 32px;
  border-bottom: 1px solid var(--dark-line);
}
.footer h4 {
  color: var(--dark-ink);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: .12em;
  text-transform: uppercase;
  margin-bottom: 14px;
}
.footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; font-size: 15px; }
.footer .logo { color: var(--dark-ink); }
.footer__legal {
  padding-top: 22px;
  display: flex; flex-wrap: wrap; gap: 14px 28px;
  justify-content: space-between;
  font-size: 12.5px;
  line-height: 1.55;
}
.footer__legal p { max-width: 74ch; }
@media (max-width: 880px) { .footer__grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .footer__grid { grid-template-columns: 1fr; } }

/* --------------------------------------------------- Мобильная CTA-панель - */

.mobile-bar {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 70;
  display: none;
  gap: 8px;
  padding: 10px 12px calc(10px + env(safe-area-inset-bottom, 0px));
  background: color-mix(in srgb, var(--bg) 92%, transparent);
  backdrop-filter: blur(14px);
  border-top: 1px solid var(--line);
}
.mobile-bar .btn { flex: 1; min-height: 48px; }
.mobile-bar .icon-btn {
  width: 48px; flex: none;
  display: grid; place-items: center;
  border: 1px solid var(--line-strong);
  border-radius: var(--r-sm);
  color: var(--ink);
  text-decoration: none;
}
@media (max-width: 760px) {
  .mobile-bar { display: flex; }
  body { padding-bottom: 72px; }
}

/* ------------------------------------------------------------- Cookie ----- */

.cookie {
  position: fixed;
  left: var(--gutter); right: var(--gutter);
  bottom: calc(16px + env(safe-area-inset-bottom, 0px));
  z-index: 80;
  max-width: 560px;
  margin-inline: auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
  padding: 16px 18px;
  background: var(--surface);
  border: 1px solid var(--line-strong);
  border-radius: var(--r-md);
  box-shadow: var(--shadow-lg);
  font-size: 13.5px;
  line-height: 1.45;
  color: var(--ink-2);
}
.cookie p { flex: 1 1 260px; }
@media (max-width: 760px) { .cookie { bottom: calc(78px + env(safe-area-inset-bottom, 0px)); } }

/* ------------------------------------------------------ Переключатель тем - */

.theme-toggle {
  width: 42px; height: 42px;
  display: grid; place-items: center;
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  background: transparent;
  color: var(--ink-2);
  cursor: pointer;
  flex: none;
}
.theme-toggle:hover { border-color: var(--line-strong); color: var(--ink); }

/* ----------------------------------------------------- Переключение стр. -- */

.page[hidden] { display: none !important; }

/* ------------------------------------------------------------ Движение ---- */

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    transition-duration: .01ms !important;
    scroll-behavior: auto !important;
  }
}

/* --------------------------------------------------- Логотипы партнёров -- */

.logo-plate {
  background: var(--plate);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: clamp(16px, 2.4vw, 28px);
  display: grid;
  place-items: center;
}
.logo-plate img { width: 100%; max-width: 560px; height: auto; }
