/* Цитадель — базовые стили. Без сборки, без зависимостей. */

:root {
  --ink: #0A1622;
  --ink-2: #12222F;
  --ink-3: #1B3040;
  --text: #111C26;
  --muted: #5B6B7A;
  --muted-light: #9FB0BE;
  --line: #D9E4EF;
  --bg: #EEF4FA;
  --bg-soft: #E6EEF6;
  --accent: #0B6FA8;
  --accent-hi: #63C4EE;
  --accent-deep: #084F79;
  --accent-rgb: 11,111,168;
  --glow-rgb: 99,196,238;
  --glow2-rgb: 43,110,190;
  --bg-rgb: 238,244,250;
  --card-hi: #FDFEFF;
  --card-lo: #F3F8FD;
  --bg-soft-1: #F3F8FC;
  --bg-soft-2: #E8F0F8;
  --radius: 16px;
  --radius-lg: 22px;
  --wrap: 1200px;
  --hdr-h: 88px;

  /* Глубина: три уровня, тени с синим оттенком, а не серые */
  --shadow-1: 0 1px 2px rgba(10,22,34,.05), 0 2px 8px -3px rgba(10,22,34,.08);
  --shadow-2: 0 1px 2px rgba(10,22,34,.05), 0 10px 24px -10px rgba(10,22,34,.16), 0 24px 48px -28px rgba(10,22,34,.22);
  --shadow-3: 0 2px 4px rgba(10,22,34,.06), 0 24px 48px -16px rgba(10,22,34,.2), 0 56px 96px -40px rgba(10,22,34,.3);
  --shadow-glow: 0 18px 40px -22px rgba(var(--accent-rgb),.55);

  /* Ритм отступов */
  --sp-1: 8px; --sp-2: 12px; --sp-3: 16px; --sp-4: 24px; --sp-5: 32px; --sp-6: 48px; --sp-7: 64px;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: calc(var(--hdr-h) + 16px); }

body {
  margin: 0;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Arial, sans-serif;
  font-size: 17px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }

h1, h2, h3 { margin: 0 0 .5em; line-height: 1.12; letter-spacing: -.02em; font-weight: 600; }
h1, h2 {
  font-family: 'Prata', Georgia, 'Times New Roman', serif;
  font-weight: 400; letter-spacing: -.005em; line-height: 1.16;
}
h1 { font-size: clamp(32px, 4.4vw, 56px); }
h2 { font-size: clamp(26px, 3.1vw, 38px); }
h3 { font-size: clamp(18px, 1.6vw, 21px); letter-spacing: -.015em; }

.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: 24px; }
.wrap--narrow { max-width: 840px; }

.skip {
  position: absolute; left: -9999px; top: 0; z-index: 100;
  background: var(--ink); color: #fff; padding: 12px 20px; border-radius: 0 0 10px 0;
}
.skip:focus { left: 0; }

:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }

/* ── Кнопки ─────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 8px; padding: 13px 24px; border: 1px solid transparent; border-radius: 999px;
  font: inherit; font-weight: 500; font-size: 16px; line-height: 1.2;
  color: #fff; cursor: pointer; position: relative;
  background: linear-gradient(180deg, var(--accent-hi) 0%, var(--accent) 52%, var(--accent-deep) 100%);
  box-shadow:
    0 1px 2px rgba(10,22,34,.14),
    0 10px 22px -10px rgba(var(--accent-rgb),.7);
  transition: transform .22s cubic-bezier(.2,.9,.3,1.25), box-shadow .22s ease, filter .22s ease;
}
.btn:hover {
  transform: translateY(-2px);
  filter: saturate(1.06);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.36),
    inset 0 -1px 0 rgba(0,0,0,.12),
    0 2px 4px rgba(10,22,34,.16),
    0 18px 32px -14px rgba(var(--accent-rgb),.75);
}
.btn:active {
  transform: translateY(0) scale(.99);
  box-shadow: inset 0 2px 8px rgba(4,26,26,.45), inset 0 1px 0 rgba(255,255,255,.1), 0 1px 2px rgba(10,22,34,.16);
}
.btn--sm { padding: 10px 18px; font-size: 14.5px; }
.hdr__cta .btn { padding: 14px 24px; font-size: 17px; white-space: nowrap; }
.btn--lg { padding: 16px 30px; font-size: 17px; }
.btn--block { width: 100%; }
.btn--ghost {
  background: linear-gradient(180deg, rgba(255,255,255,.9), rgba(255,255,255,.66));
  border-color: #CBD6DF; color: var(--text);
  box-shadow: inset 0 1px 0 #fff, 0 1px 2px rgba(10,22,34,.08);
  backdrop-filter: blur(6px);
}
.btn--ghost:hover {
  filter: none; border-color: #A9BAC8; color: var(--text);
  box-shadow: inset 0 1px 0 #fff, 0 10px 20px -14px rgba(10,22,34,.5);
}
.sec--ink .btn--ghost, .hero .btn--ghost {
  background: linear-gradient(180deg, rgba(255,255,255,.1), rgba(255,255,255,.04));
  border-color: rgba(255,255,255,.28); color: #fff;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.16), 0 8px 20px -16px rgba(0,0,0,.8);
}
.sec--ink .btn--ghost:hover, .hero .btn--ghost:hover {
  background: #fff; border-color: #fff; color: var(--ink); filter: none;
}

.link { color: var(--accent); font-weight: 500; border-bottom: 1px solid rgba(var(--accent-rgb),.35); }
.link:hover { border-bottom-color: var(--accent); }

/* ── Шапка ──────────────────────────────────────────── */
.hdr {
  position: sticky; top: 0; z-index: 50;
  background: rgba(var(--bg-rgb),.82);
  backdrop-filter: blur(16px) saturate(1.5);
  border-bottom: 1px solid transparent;
  transition: box-shadow .25s ease, border-color .25s ease, background .25s ease;
}
.hdr.is-stuck {
  background: rgba(var(--bg-rgb),.92);
  border-bottom-color: var(--line);
  box-shadow: 0 1px 0 rgba(255,255,255,.6), 0 10px 28px -22px rgba(10,22,34,.55);
}
.hdr__in { display: flex; align-items: center; gap: 28px; min-height: var(--hdr-h); }

.logo { display: flex; align-items: center; gap: 14px; flex-shrink: 0; }
.logo__mark { width: 52px; height: 52px; color: var(--ink); --logo-line: #fff; --logo-arch: var(--accent-hi); }
.logo__text { display: flex; flex-direction: column; line-height: 1.15; }
.logo__text strong { font-size: 22px; font-weight: 600; letter-spacing: -.01em; }
.logo__text span { font-size: 13.5px; color: var(--muted); letter-spacing: .02em; }

.nav { display: flex; gap: 22px; margin-inline: auto; font-size: 15px; }
.nav a { position: relative; color: var(--muted); padding-block: 6px; white-space: nowrap; }
.nav a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1.5px;
  background: linear-gradient(90deg, var(--accent), var(--accent-hi));
  transform: scaleX(0); transform-origin: left;
  transition: transform .28s cubic-bezier(.2,.9,.3,1.2);
}
.nav a:hover { color: var(--text); }
.nav a:hover::after { transform: scaleX(1); }

.hdr__cta { display: flex; align-items: center; gap: 14px; }
.hdr__phone { display: flex; flex-direction: column; align-items: center; text-align: center; line-height: 1.2; }
.hdr__phone span { font-weight: 600; font-size: 19px; white-space: nowrap; }
.hdr__phone small { font-size: 13px; color: var(--muted); white-space: nowrap; }

.hdr__socials { display: flex; gap: 6px; }
.soc {
  display: grid; place-items: center; width: 34px; height: 34px; border-radius: 10px;
  color: #fff; background: var(--soc, var(--accent));
  box-shadow: 0 6px 14px -8px var(--soc-shadow, rgba(var(--accent-rgb),.9));
  transition: transform .2s ease, filter .2s ease;
}
.soc svg { width: 18px; height: 18px; }
.soc--wa { --soc: #25D366; --soc-shadow: rgba(37,211,102,.85); }
.soc--tg { --soc: #229ED9; --soc-shadow: rgba(34,158,217,.85); }
.soc--mail { --soc: #0B6FA8; --soc-shadow: rgba(11,111,168,.85); }
.soc:hover { transform: translateY(-2px); filter: brightness(1.1); }
.soc:active { transform: none; }

.burger { display: none; width: 42px; height: 42px; border: 1px solid var(--line); border-radius: 12px; background: var(--card-hi); position: relative; cursor: pointer; }
.burger span { position: absolute; left: 11px; width: 20px; height: 1.8px; background: var(--text); transition: transform .2s ease, opacity .2s ease; }
.burger span:first-child { top: 16px; }
.burger span:last-child { top: 23px; }
.burger[aria-expanded="true"] span:first-child { transform: translateY(3.5px) rotate(45deg); }
.burger[aria-expanded="true"] span:last-child { transform: translateY(-3.5px) rotate(-45deg); }

/* ── Первый экран ───────────────────────────────────── */
.hero {
  position: relative; overflow: hidden; color: #fff; isolation: isolate;
  background:
    radial-gradient(1100px 540px at 82% -6%, rgba(var(--glow-rgb),.24), transparent 62%),
    radial-gradient(900px 620px at 4% 112%, rgba(var(--glow2-rgb),.2), transparent 60%),
    linear-gradient(180deg, #0A1622 0%, #0D1E2A 58%, #0A1622 100%);
}
.hero::after {
  content: ""; position: absolute; inset: 0; pointer-events: none; z-index: 0;
  opacity: .35; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)' opacity='0.55'/%3E%3C/svg%3E");
}
.hero__glow {
  position: absolute; inset: -40% -20% auto auto; width: 900px; height: 900px;
  background: radial-gradient(circle, rgba(var(--glow-rgb),.26), transparent 62%);
  pointer-events: none;
}
.hero__in {
  position: relative; z-index: 1;
  padding-block: clamp(56px, 7vw, 104px) clamp(56px, 7vw, 96px);
  display: grid; grid-template-columns: minmax(0, 1fr) 400px;
  gap: clamp(24px, 3.6vw, 52px); align-items: center;
}
.hero__text { max-width: 640px; }
.hero h1 { color: #fff; }
.hero__lead { font-size: clamp(16.5px, 1.5vw, 19px); color: #B9C7D3; max-width: 46ch; margin-bottom: 32px; }
.eyebrow { margin: 0 0 18px; font-size: 12.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--accent); font-weight: 500; }
.hero .eyebrow { color: var(--accent-hi); }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 30px; }

/* ── Бренды в первом экране ─────────────────────────── */
.hb {
  padding: 14px; border-radius: 20px;
  background: rgba(12,26,38,.52); border: 1px solid rgba(255,255,255,.14);
  box-shadow: 0 30px 60px -40px rgba(0,0,0,.9), inset 0 1px 0 rgba(255,255,255,.1);
  backdrop-filter: blur(14px) saturate(1.2);
  animation: hb-in .9s cubic-bezier(.2,.8,.25,1) both;
}
.hb__partner {
  position: relative; overflow: hidden;
  display: flex; align-items: center; gap: 12px; padding: 12px 14px; margin-bottom: 12px;
  border-radius: 13px; background: linear-gradient(180deg, #FFFFFF 0%, #F2F6FA 100%);
  border: 1px solid rgba(255,255,255,.6);
  transition: transform .25s ease, box-shadow .25s ease;
}
.hb__partner::after {
  content: ""; position: absolute; top: 0; bottom: 0; width: 45%;
  left: -60%; pointer-events: none;
  background: linear-gradient(100deg, transparent, rgba(255,255,255,.85), transparent);
  animation: hb-shine 6.5s ease-in-out infinite;
}
.hb__partner:hover { transform: translateY(-2px); box-shadow: 0 14px 26px -18px rgba(0,0,0,.7); }
.hb__partner img { height: 26px; width: auto; flex-shrink: 0; }
.hb__partner span { font-size: 12.5px; line-height: 1.25; color: #56707F; }
.hb__grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px;
  list-style: none; margin: 0; padding: 0;
}
.hb__grid li {
  display: flex; align-items: center; justify-content: center; height: 56px;
  padding: 8px; border-radius: 11px;
  background: linear-gradient(180deg, #FFFFFF 0%, #F4F8FB 100%);
  box-shadow: 0 6px 14px -12px rgba(0,0,0,.8);
}
.hb__grid img { max-height: 24px; max-width: 100%; width: auto; object-fit: contain; }
.hb__grid img.is-square { max-height: 32px; }
.hb__note {
  margin: 12px 2px 0; font-size: 12px; line-height: 1.35; color: #93A6B4;
}
@keyframes hb-in {
  from { opacity: 0; transform: translateY(18px) translateX(14px); }
  to { opacity: 1; transform: none; }
}
@keyframes hb-shine {
  0%, 62% { left: -60%; }
  92%, 100% { left: 130%; }
}

.chips { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; margin: 0; padding: 0; }
.chips li {
  font-size: 13.5px; color: #C7D4DE; padding: 7px 14px;
  border: 1px solid #273C4B; border-radius: 999px; background: rgba(255,255,255,.03);
}

.hero__media {
  position: absolute; top: 0; right: 0; bottom: 0; z-index: 0;
  width: min(54%, 820px); overflow: hidden;
  -webkit-mask-image: linear-gradient(to right, transparent 0%, #000 58%);
  mask-image: linear-gradient(to right, transparent 0%, #000 58%);
}
.hero__media img {
  width: 100%; height: 100%; object-fit: cover; object-position: 40% 38%;
}
.hero__media::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background:
    linear-gradient(90deg, rgba(10,22,34,.78) 0%, rgba(10,22,34,.15) 44%, rgba(10,22,34,0) 62%),
    linear-gradient(180deg, rgba(10,22,34,.6) 0%, rgba(10,22,34,0) 26%, rgba(10,22,34,0) 58%, rgba(10,22,34,.9) 100%);
}


/* ── Секции ─────────────────────────────────────────── */
.sec { padding-block: clamp(56px, 7vw, 96px); position: relative; }
.sec--soft {
  background:
    radial-gradient(circle at 1px 1px, rgba(27,72,94,.05) 1px, transparent 0) 0 0 / 22px 22px,
    linear-gradient(180deg, var(--bg-soft-1) 0%, var(--bg-soft-2) 100%);
}
.sec--ink {
  background:
    radial-gradient(900px 480px at 88% 0%, rgba(var(--glow-rgb),.17), transparent 62%),
    radial-gradient(760px 520px at 0% 100%, rgba(var(--glow2-rgb),.15), transparent 60%),
    linear-gradient(180deg, #0A1622 0%, #0C1B27 100%);
  color: #fff; isolation: isolate;
}
.sec--ink::before {
  content: ""; position: absolute; inset: 0; pointer-events: none; z-index: 0;
  opacity: .3; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)' opacity='0.55'/%3E%3C/svg%3E");
}
.sec--ink .wrap { position: relative; z-index: 1; }
.sec--ink .muted { color: var(--muted-light); }
.sec--ink h2 { color: #fff; }

.sec__head { max-width: 720px; margin-bottom: clamp(28px, 3vw, 44px); }
.sec__head p { color: var(--muted); font-size: 17.5px; margin: 0; }
.sec__head--light p { color: var(--muted-light); }

.muted { color: var(--muted); }
.muted-light { color: var(--muted-light); }
.fine { margin-top: 18px; font-size: 13.5px; color: var(--muted); max-width: 70ch; }
.note {
  margin-top: 26px; padding: 18px 20px; border-left: 3px solid var(--accent);
  background: var(--bg-soft); border-radius: 0 12px 12px 0; font-size: 15px; color: var(--text);
}
.note strong { display: block; margin-bottom: 4px; }
.shot { margin: 26px 0 0; border-radius: 14px; overflow: hidden; }
.shot img { display: block; width: 100%; height: 230px; object-fit: cover; object-position: 50% 55%; }

/* ── Два направления ────────────────────────────────── */
.duo { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.duo__card {
  background: linear-gradient(180deg, var(--card-hi) 0%, var(--card-lo) 100%);
  border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 0; overflow: hidden; box-shadow: var(--shadow-1);
  transition: border-color .25s ease, transform .25s cubic-bezier(.2,.9,.3,1.2), box-shadow .25s ease;
}
.duo__card:hover {
  border-color: #CFDBE6; transform: translateY(-5px);
  box-shadow: var(--shadow-2), var(--shadow-glow);
}
.duo__img {
  display: block; width: 100%; height: 280px; object-fit: cover; object-position: 50% 26%;
  transition: transform .7s cubic-bezier(.22,.61,.36,1);
}
.duo__card:hover .duo__img { transform: scale(1.05); }
.duo--biz .duo__img { object-position: 50% 20%; }
.duo__body { padding: clamp(22px, 2.6vw, 32px); }
.duo__tag { font-size: 12.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--accent); font-weight: 600; margin-bottom: 12px; }
.duo__card p { color: var(--muted); }

.ticks { list-style: none; padding: 0; margin: 20px 0 24px; display: grid; gap: 9px; font-size: 15.5px; }
.ticks li { position: relative; padding-left: 26px; }
.ticks li::before {
  content: ""; position: absolute; left: 0; top: .45em; width: 14px; height: 8px;
  border-left: 1.8px solid var(--accent); border-bottom: 1.8px solid var(--accent);
  transform: rotate(-45deg); border-radius: 1px;
}

/* ── Сетка услуг ────────────────────────────────────── */
.grid { display: grid; gap: 18px; }
.grid--3 { grid-template-columns: repeat(3, 1fr); }

.card {
  position: relative; padding: 28px 26px 30px; border: 1px solid var(--line);
  border-radius: var(--radius); overflow: hidden;
  background: linear-gradient(180deg, var(--card-hi) 0%, var(--card-lo) 100%);
  box-shadow: var(--shadow-1);
  transition: border-color .25s ease, box-shadow .25s ease, transform .25s cubic-bezier(.2,.9,.3,1.2);
}
.card::after {
  content: ""; position: absolute; inset: auto 0 0 0; height: 2px;
  background: linear-gradient(90deg, var(--accent), var(--accent-hi));
  transform: scaleX(0); transform-origin: left; transition: transform .3s cubic-bezier(.2,.9,.3,1.2);
}
.card:hover {
  transform: translateY(-5px);
  border-color: #CFDBE6;
  box-shadow: var(--shadow-2), var(--shadow-glow);
}
.card:hover::after { transform: scaleX(1); }
.card__num { display: block; font-size: 12px; color: var(--accent); font-weight: 600; letter-spacing: .1em; margin-bottom: 14px; }
.card p { margin: 0; color: var(--muted); font-size: 15.5px; }

/* ── Цифры ──────────────────────────────────────────── */
.facts { display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; }
.fact { border-top: 1px solid #24394A; padding-top: 22px; }
.fact strong { display: block; font-size: clamp(20px, 2vw, 26px); font-weight: 600; line-height: 1.2; margin-bottom: 10px; letter-spacing: -.02em; }
.fact span { color: var(--muted-light); font-size: 15px; }

/* ── Что входит ─────────────────────────────────────── */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 4vw, 64px); align-items: start; }
.split--rev > *:first-child { order: 2; }
.checklist { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.checklist li {
  display: flex; gap: 12px; align-items: flex-start; padding: 14px 18px;
  border: 1px solid var(--line); border-radius: 12px; font-size: 15.5px; background: var(--card-hi);
}
.checklist li::before {
  content: ""; flex-shrink: 0; width: 18px; height: 18px; margin-top: 2px; border-radius: 50%;
  background: var(--accent); mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M20 6L9 17l-5-5' fill='none' stroke='%23fff' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 12px no-repeat;
}

/* ── Таблица цен ────────────────────────────────────── */
.table-wrap {
  border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden;
  background: var(--card-hi); box-shadow: var(--shadow-2);
}
.price { width: 100%; border-collapse: collapse; font-size: 15.5px; }
.price th, .price td { padding: 15px 22px; text-align: left; }
.price th { font-weight: 500; font-size: 12.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); border-bottom: 1px solid var(--line); }
.price td { border-bottom: 1px solid var(--line); transition: background .18s ease; }
.price tbody tr:hover td { background: var(--bg-soft); }
.price tr:last-child td { border-bottom: 0; }
.price td:last-child, .price th:last-child { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
.price td:last-child { font-weight: 500; }
.price td:nth-child(2) { color: var(--muted); white-space: nowrap; }

/* ── Калькулятор ────────────────────────────────────── */
.calc {
  display: grid; grid-template-columns: 1.25fr .75fr; gap: 28px;
  background: linear-gradient(180deg, var(--card-hi) 0%, var(--card-lo) 100%);
  border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: clamp(22px, 3vw, 36px); box-shadow: var(--shadow-3);
}
.calc__form { display: grid; gap: 26px; align-content: start; }
.calc__field { border: 0; padding: 0; margin: 0; }
.calc__field legend, .calc__field label { display: block; font-size: 14px; font-weight: 500; color: var(--muted); margin-bottom: 12px; }
.calc__field label output, .calc__field .calc__val { color: var(--text); font-weight: 600; }

.seg { display: flex; flex-wrap: wrap; gap: 8px; }
.seg label { margin: 0; }
.seg input { position: absolute; opacity: 0; pointer-events: none; }
.seg span {
  display: inline-block; padding: 10px 18px; border: 1px solid var(--line); border-radius: 999px;
  font-size: 15px; color: var(--text); cursor: pointer; transition: all .16s ease; user-select: none;
}
.seg input:checked + span { background: var(--ink); border-color: var(--ink); color: #fff; }
.seg input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }

input[type="range"] {
  -webkit-appearance: none; appearance: none;
  width: 100%; height: 26px; cursor: pointer; accent-color: var(--accent);
  background: linear-gradient(to right, var(--accent) var(--fill, 0%), var(--line) var(--fill, 0%))
    center / 100% 4px no-repeat;
}
input[type="range"]::-webkit-slider-runnable-track { height: 4px; border-radius: 4px; background: transparent; }
input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none; width: 22px; height: 22px; margin-top: -9px; border-radius: 50%;
  background: var(--accent); border: 3px solid #fff; box-shadow: 0 2px 8px rgba(11,22,32,.25);
}
input[type="range"]::-moz-range-track { height: 4px; border-radius: 4px; background: transparent; }
input[type="range"]::-moz-range-progress { height: 4px; border-radius: 4px; background: var(--accent); }
input[type="range"]::-moz-range-thumb { width: 20px; height: 20px; border-radius: 50%; background: var(--accent); border: 3px solid #fff; }

.calc__out {
  background: linear-gradient(180deg, var(--bg-soft-1) 0%, var(--bg-soft-2) 100%);
  border: 1px solid var(--line);
  border-radius: var(--radius); padding: 26px; display: grid; align-content: start; gap: 4px;
}
.calc__sum-label { font-size: 13px; color: var(--muted); margin: 14px 0 2px; }
.calc__sum-label:first-child { margin-top: 0; }
.calc__sum { font-size: clamp(22px, 2.2vw, 28px); font-weight: 600; letter-spacing: -.02em; margin: 0; font-variant-numeric: tabular-nums; }
.calc__sum--alt { color: var(--accent); }
.calc__hint { font-size: 13px; color: var(--muted); margin: 16px 0 18px; }

/* ── Шаги ───────────────────────────────────────────── */
.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; counter-reset: s; }
.steps li {
  background: linear-gradient(180deg, var(--card-hi) 0%, var(--card-lo) 100%);
  border: 1px solid var(--line); border-radius: var(--radius); padding: 26px 24px;
  box-shadow: var(--shadow-1); transition: transform .25s ease, box-shadow .25s ease;
}
.steps li:hover { transform: translateY(-3px); box-shadow: var(--shadow-2); }
.steps span {
  display: inline-flex; align-items: center; justify-content: center; width: 34px; height: 34px;
  border-radius: 50%; color: #fff; font-size: 15px; font-weight: 500; margin-bottom: 16px;
  background: linear-gradient(180deg, #16293A, #0A1622);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.18), 0 6px 14px -8px rgba(10,22,34,.7);
}
.steps h3 { font-size: 18px; }
.steps p { margin: 0; font-size: 15px; color: var(--muted); }

/* ── Бренды ─────────────────────────────────────────── */
.brands { display: flex; flex-wrap: wrap; gap: 10px; }
.brands > span {
  display: flex; align-items: center; justify-content: center;
  flex: 1 1 140px; height: 72px; padding: 10px 16px;
  border: 1px solid var(--line); border-radius: 12px;
  background: linear-gradient(180deg, var(--card-hi) 0%, var(--card-lo) 100%);
  box-shadow: var(--shadow-1);
  transition: border-color .25s ease, box-shadow .25s ease, transform .25s ease;
}
.brands > span:hover { border-color: #CFDBE6; box-shadow: var(--shadow-2); transform: translateY(-2px); }
.brands > span img { height: 26px; width: auto; max-width: 150px; object-fit: contain; }
.brands > span img.is-square { height: 40px; max-width: 40px; }
.brands__note { flex: 1 0 100%; font-size: 14px; color: var(--muted); margin: 12px 0 0; }
.brands__partner {
  flex: 1 0 100%; display: flex; align-items: center; gap: 16px; flex-wrap: nowrap;
  padding: 18px 22px; margin-bottom: 4px;
  border: 1px solid var(--line); border-radius: 14px; background: var(--card-hi);
  transition: border-color .2s ease, box-shadow .2s ease;
}
.brands__partner:hover { border-color: #C9D6E1; box-shadow: 0 18px 34px -28px rgba(11,22,32,.5); }
.brands__partner img { height: 30px; width: auto; flex-shrink: 1; min-width: 0; }
.brands__partner span { font-size: 14px; color: var(--muted); }

/* ── FAQ ────────────────────────────────────────────── */
.faq { display: grid; gap: 10px; }
.faq details {
  background: linear-gradient(180deg, var(--card-hi) 0%, var(--card-lo) 100%);
  border: 1px solid var(--line); border-radius: 14px; padding: 0 22px;
  box-shadow: var(--shadow-1); transition: box-shadow .25s ease, border-color .25s ease;
}
.faq details[open], .faq details:hover { border-color: #D3DEE7; box-shadow: var(--shadow-2); }
.faq summary {
  cursor: pointer; list-style: none; padding: 20px 0; font-weight: 500; font-size: 17px;
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 22px; font-weight: 400; color: var(--accent); line-height: 1; transition: transform .2s ease; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { margin: -4px 0 20px; color: var(--muted); font-size: 15.5px; max-width: 62ch; }

/* ── Контакты и форма ───────────────────────────────── */
.contact { display: grid; grid-template-columns: 1fr .85fr; gap: clamp(32px, 5vw, 72px); align-items: start; }
.contact__list { display: grid; grid-template-columns: 1fr 1fr; gap: 26px 32px; margin: 34px 0 28px; }
.contact__list dt { font-size: 12.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted-light); margin-bottom: 6px; }
.contact__list dd { margin: 0; font-size: 16.5px; line-height: 1.5; }
.contact__list a { border-bottom: 1px solid rgba(255,255,255,.25); }
.contact__list a:hover { border-bottom-color: var(--accent-hi); }

.map {
  margin: clamp(28px, 3.4vw, 44px) 0 0;
  height: clamp(280px, 30vw, 400px); overflow: hidden;
  border-radius: 16px; border: 1px solid #2C4252; background: #0F1E28;
  box-shadow: 0 24px 48px -32px rgba(0,0,0,.8);
}
.map iframe { display: block; width: 100%; height: 100%; border: 0; }

.form {
  display: flex; flex-direction: column; background: var(--card-hi); color: var(--text);
  border-radius: var(--radius-lg); padding: clamp(24px, 3vw, 34px);
  box-shadow: var(--shadow-3), 0 0 0 1px rgba(255,255,255,.06);
}
.form__msg { order: 1; }
.form h3 { font-size: 22px; margin-bottom: 6px; }
.form__lead { font-size: 14.5px; color: var(--muted); margin-bottom: 22px; }
.field { display: block; margin-bottom: 14px; }
.field span { display: block; font-size: 13px; color: var(--muted); margin-bottom: 6px; }
.field input {
  width: 100%; padding: 14px 16px; font: inherit; font-size: 16px; color: var(--text);
  border: 1px solid var(--line); border-radius: 12px;
  background: linear-gradient(180deg, var(--card-lo) 0%, var(--card-hi) 100%);
  box-shadow: inset 0 1px 2px rgba(10,22,34,.06);
  transition: border-color .18s ease, box-shadow .18s ease, background .18s ease;
}
.field input::placeholder { color: #A9B6C2; }
.field input:focus {
  outline: none; border-color: var(--accent); background: var(--card-hi);
  box-shadow: inset 0 1px 2px rgba(10,22,34,.04), 0 0 0 3px rgba(var(--accent-rgb),.18);
}
.field input[aria-invalid="true"] { border-color: #E0603C; }

.check { display: flex; gap: 10px; align-items: flex-start; font-size: 13.5px; color: var(--muted); margin: 18px 0 20px; cursor: pointer; }
.check input { margin: 2px 0 0; width: 17px; height: 17px; accent-color: var(--accent); flex-shrink: 0; }
.form__msg { font-size: 14px; margin: 14px 0 0; min-height: 20px; }
.form__msg.is-ok { color: #0E8A5F; }
.form__msg.is-err { color: #C7482A; }

/* ── Подвал ─────────────────────────────────────────── */
.ftr {
  position: relative; overflow: hidden;
  background:
    radial-gradient(700px 300px at 88% 0%, rgba(var(--glow-rgb),.14), transparent 65%),
    linear-gradient(180deg, #08131D 0%, #060F17 100%);
  color: var(--muted-light); font-size: 14.5px; padding-block: 40px;
}
.ftr__in {
  display: grid; grid-template-columns: 1fr auto 1fr; gap: 24px 40px;
  align-items: center;
}
.ftr__in > div { justify-self: start; text-align: left; }
.ftr strong { color: #fff; font-size: 16px; font-weight: 600; }
.ftr p { margin: 6px 0 0; max-width: 46ch; }
.ftr nav { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 20px; text-align: center; }
.ftr nav a:hover { color: #fff; }
.ftr__copy { font-size: 13px; margin: 0; color: var(--muted-light); justify-self: end; text-align: right; }

/* ── Мобильная панель ───────────────────────────────── */
.mobile-bar {
  position: fixed; inset: auto 0 0 0; z-index: 40; display: none; gap: 10px;
  padding: 10px 14px calc(10px + env(safe-area-inset-bottom));
  background: rgba(var(--bg-rgb),.94); backdrop-filter: blur(14px) saturate(1.4);
  border-top: 1px solid var(--line);
  box-shadow: 0 -10px 30px -20px rgba(10,22,34,.6);
}
.mobile-bar .btn { flex: 1; padding: 13px 10px; font-size: 15px; white-space: nowrap; }

/* ── Появление блоков ───────────────────────────────── */
[data-reveal] { opacity: 0; transform: translateY(16px); transition: opacity .55s ease, transform .55s cubic-bezier(.22,.61,.36,1); }
[data-reveal].is-in { opacity: 1; transform: none; }

/* ── Адаптив ────────────────────────────────────────── */
@media (max-width: 1320px) {
  .nav { display: none; }
  .burger { display: block; }
  .hdr__in { justify-content: space-between; }

  .nav.is-open {
    display: flex; flex-direction: column; gap: 0; position: absolute; left: 0; right: 0; top: 100%;
    background: var(--card-hi); border-bottom: 1px solid var(--line); padding: 8px 24px 20px; margin: 0;
    box-shadow: 0 20px 40px -30px rgba(11,22,32,.6);
  }
  .nav.is-open a { padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 17px; }
}

@media (max-width: 1080px) {
  .nav { gap: 18px; font-size: 15px; }
  .hero__in { grid-template-columns: 1fr; }
  .hb { max-width: 520px; }
  .hdr__phone small { display: none; }
  .facts { grid-template-columns: 1fr 1fr; gap: 24px; }
  .grid--3 { grid-template-columns: 1fr 1fr; }
  .steps { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 900px) {
  .hdr__cta .hdr__phone, .hdr__cta .hdr__socials, .hdr__cta .btn { display: none; }
  .hdr__in { justify-content: space-between; }

  .hero__in { padding-block: 48px 56px; }
  .hb { max-width: none; }
  .hb__grid li { height: 52px; }

  .hero { display: flex; flex-direction: column; }
  .hero__media {
    position: relative; order: 2; width: 100%; height: 320px;
    -webkit-mask-image: linear-gradient(to bottom, transparent 0%, #000 34%);
    mask-image: linear-gradient(to bottom, transparent 0%, #000 34%);
  }
  .hero__media::after {
    background: linear-gradient(180deg, rgba(10,22,34,.7) 0%, rgba(10,22,34,0) 30%, rgba(10,22,34,0) 60%, rgba(10,22,34,.85) 100%);
  }
  .hero__media img { object-position: 50% 30%; }
  .hero__in { order: 1; }

  .duo, .split, .calc, .contact { grid-template-columns: 1fr; }
  .split--rev > *:first-child { order: 0; }
  .calc__out { order: -1; }
  .contact__list { grid-template-columns: 1fr 1fr; }
  .ftr__in { grid-template-columns: 1fr; }
  .mobile-bar { display: flex; }
  body { padding-bottom: 72px; }
}

@media (max-width: 640px) {
  body { font-size: 16px; }
  .wrap { padding-inline: 18px; }
  .grid--3, .steps, .facts, .contact__list { grid-template-columns: 1fr; }
  .price th, .price td { padding: 13px 14px; font-size: 14.5px; }
  .price td:nth-child(2) { display: none; }
  .price th:nth-child(2) { display: none; }
  .chips li { font-size: 12.5px; padding: 6px 12px; }
  .duo__img { height: 240px; }
  .brands span { padding: 11px 16px; font-size: 15px; }
  .ftr__copy { white-space: normal; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; transition-duration: .001ms !important; }
  [data-reveal] { opacity: 1; transform: none; }
}

/* ── Тёмная тема ────────────────────────────────────────
   Палитра «Арктика» — базовая. Переключается только светлое/тёмное:
   меняются токены, вся вёрстка берёт цвета отсюда. */
body[data-mode="dark"] {
  --text: #E6EDF3; --muted: #9BB0BF; --muted-light: #7A8E9C;
  --bg: #0D1822; --bg-rgb: 13,24,34;
  --bg-soft: #12202C; --bg-soft-1: #101E29; --bg-soft-2: #0C1721;
  --card-hi: #16242F; --card-lo: #111D28; --line: #263743;
  --accent: #35A0DA; --accent-rgb: 53,160,218; --accent-hi: #6CCDF2; --accent-deep: #1D6E9B;
  --shadow-1: 0 1px 2px rgba(0,0,0,.4), 0 2px 8px -3px rgba(0,0,0,.5);
  --shadow-2: 0 1px 2px rgba(0,0,0,.4), 0 10px 24px -10px rgba(0,0,0,.6);
  --shadow-3: 0 2px 4px rgba(0,0,0,.45), 0 24px 48px -16px rgba(0,0,0,.65);
}
body[data-mode="dark"] .card:hover,
body[data-mode="dark"] .duo__card:hover { border-color: #35505F; }
body[data-mode="dark"] .seg input:checked + span { background: var(--accent-deep); border-color: var(--accent-deep); }
body[data-mode="dark"] .logo__mark { color: #E8F1F8; --logo-line: #0A1622; --logo-arch: var(--accent); }
body[data-mode="dark"] .brands > span,
body[data-mode="dark"] .brands__partner {
  background: linear-gradient(180deg, #FFFFFF 0%, #EDF4FA 100%); border-color: #D7E3EE;
}
body[data-mode="dark"] .brands > span:hover,
body[data-mode="dark"] .brands__partner:hover { border-color: #AFCCE0; }
body[data-mode="dark"] .brands__partner span { color: #5B6B7A; }
body[data-mode="dark"] .btn--ghost {
  background: linear-gradient(180deg, rgba(255,255,255,.09), rgba(255,255,255,.03));
  border-color: var(--line); color: var(--text);
  box-shadow: none;
}
body[data-mode="dark"] .btn--ghost:hover { border-color: var(--accent); box-shadow: 0 10px 20px -16px rgba(0,0,0,.7); }
body[data-mode="dark"] .hero .btn--ghost, body[data-mode="dark"] .sec--ink .btn--ghost {
  border-color: rgba(255,255,255,.28); color: #fff;
}

/* Переключатель темы */
.theme {
  display: grid; place-items: center; width: 34px; height: 34px; border-radius: 10px;
  color: var(--muted); background: var(--card-hi); border: 1px solid var(--line);
  cursor: pointer; transition: color .2s ease, border-color .2s ease;
}
.theme svg { width: 17px; height: 17px; }
.theme:hover { color: var(--accent); border-color: var(--accent); }
.theme .i-moon, body[data-mode="dark"] .theme .i-sun { display: none; }
body[data-mode="dark"] .theme .i-moon { display: block; }
