@import url("fonts.css");

/* =========================================================
   Зимний светлый стиль: чернильный тёмно-синий, морозные
   нейтральные тона, тонкие линии, сдержанные акценты.
   ========================================================= */
:root {
  --bg: #f3f6f9;
  --bg-2: #e9eef4;
  --paper: #ffffff;
  --ink: #0c1a2c;          /* основной тёмный */
  --ink-2: #1d2f47;
  --text: #24364e;
  --muted: #687890;
  --faint: #9aa8ba;
  --line: rgba(12, 26, 44, .09);
  --line-2: rgba(12, 26, 44, .16);
  --accent: #2b62d1;       /* ледяной синий — только акценты */
  --accent-2: #1f4fb4;
  --accent-soft: #e7eefb;
  --frost: #c9d8ea;
  --ok: #0f7d62;
  --r-lg: 20px;
  --r: 14px;
  --r-sm: 10px;
  --shadow: 0 1px 2px rgba(12,26,44,.04), 0 6px 24px -16px rgba(12,26,44,.18);
  --shadow-lg: 0 2px 4px rgba(12,26,44,.04), 0 28px 56px -28px rgba(12,26,44,.32);
  --head: 'Geologica', 'Onest', system-ui, sans-serif;
  --body: 'Onest', system-ui, sans-serif;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 90px; }
body {
  margin: 0; font-family: var(--body); color: var(--text); background: var(--bg);
  font-size: 16px; line-height: 1.6; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
  font-feature-settings: 'tnum' 0;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button, input, select { font: inherit; color: inherit; }
h1, h2, h3 { font-family: var(--head); color: var(--ink); margin: 0; letter-spacing: -.03em; line-height: 1.08; font-weight: 500; }
h2 { font-size: clamp(30px, 3.6vw, 48px); }
h3 { font-size: 18px; letter-spacing: -.015em; font-weight: 500; }
p { margin: 0; }
b, strong { font-weight: 600; }
.container { width: min(1240px, 100% - 48px); margin-inline: auto; }
.link { color: var(--accent); text-decoration: underline; text-decoration-color: rgba(43,98,209,.35); text-underline-offset: 3px; transition: text-decoration-color .2s; }
.link:hover { text-decoration-color: currentColor; }
.legal-doc { max-width: 820px; margin: 0 auto; padding: 60px 20px 100px; }
.legal-doc h1 { font-size: clamp(26px, 4vw, 38px); margin: 18px 0 26px; }
.legal-doc h2 { font-size: 21px; margin: 28px 0 12px; }
.legal-doc p, .legal-doc li { margin-bottom: 12px; }
.legal-doc li::marker { color: var(--accent); }
.num, .price, .price-opt b, .calc__big, .calc__rows b, .drawer__sum b, .hero__facts b { font-variant-numeric: tabular-nums; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 10px; font-size: 12px; font-weight: 600;
  letter-spacing: .16em; text-transform: uppercase; color: var(--muted); margin-bottom: 18px;
}
.eyebrow::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); }
.eyebrow--light { color: #9fb3cd; }
.eyebrow--light::before { box-shadow: 0 0 0 4px rgba(43,98,209,.25); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px; border: 0; cursor: pointer;
  border-radius: var(--r-sm); padding: 13px 22px; font-weight: 600; font-size: 15px; letter-spacing: -.005em; white-space: nowrap;
  transition: background-color .25s, box-shadow .25s, color .25s, transform .15s;
}
.btn:active { transform: translateY(1px); }
.btn--primary { color: #fff; background-color: var(--ink); box-shadow: 0 1px 0 rgba(255,255,255,.08) inset, 0 10px 22px -14px rgba(12,26,44,.7); }
.btn--primary:hover { background-color: var(--accent); box-shadow: 0 1px 0 rgba(255,255,255,.12) inset, 0 14px 26px -14px rgba(43,98,209,.75); }
.btn--lg::after {
  content: ''; width: 18px; height: 18px; flex: none; transition: transform .3s var(--ease);
  background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12h14M13 6l6 6-6 6'/%3E%3C/svg%3E") center / contain no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12h14M13 6l6 6-6 6'/%3E%3C/svg%3E") center / contain no-repeat;
}
.btn--lg:hover::after { transform: translateX(4px); }
.btn--ghost { background: var(--paper); color: var(--ink); box-shadow: inset 0 0 0 1px var(--line-2); }
.btn--ghost:hover { box-shadow: inset 0 0 0 1px var(--ink); }
.btn--ghost.btn--lg::after { display: none; }
.btn--sm { padding: 10px 16px; font-size: 14px; }
.btn--lg { padding: 17px 28px; font-size: 16px; }
.btn--block { width: 100%; }

/* ---------- Topbar / header ---------- */
.topbar { background: var(--ink); color: #a9b8cc; font-size: 13px; letter-spacing: .01em; }
.topbar__in { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 9px 0; }
.topbar__msg { display: flex; align-items: center; gap: 10px; color: #e6edf6; font-weight: 500; }
.topbar__meta { display: flex; gap: 28px; }
.pulse { width: 6px; height: 6px; border-radius: 50%; background: #5fd3a8; box-shadow: 0 0 0 0 rgba(95,211,168,.6); animation: pulse 2.4s infinite; }
@keyframes pulse { to { box-shadow: 0 0 0 8px rgba(95,211,168,0); } }

.header {
  position: sticky; top: 0; z-index: 50; background: rgba(243,246,249,.8);
  backdrop-filter: saturate(1.4) blur(18px); -webkit-backdrop-filter: saturate(1.4) blur(18px);
  border-bottom: 1px solid transparent; transition: border-color .3s, background .3s;
}
.header.is-scrolled { border-color: var(--line); background: rgba(255,255,255,.86); }
.header__in { display: flex; align-items: center; gap: 32px; height: 78px; }
.logo { display: flex; align-items: center; gap: 12px; color: var(--ink); }
.logo__mark { width: 30px; height: 30px; color: var(--accent); }
.logo__text { font-family: var(--head); font-weight: 600; font-size: 17px; line-height: 1; letter-spacing: .08em; }
.logo__text small { display: block; font-family: var(--body); font-size: 11px; font-weight: 500; color: var(--muted); letter-spacing: .12em; text-transform: uppercase; margin-top: 5px; }
.nav { display: flex; gap: 30px; margin-left: 8px; font-weight: 500; font-size: 15px; }
.nav a { color: var(--ink-2); position: relative; padding: 6px 0; transition: color .2s; }
.nav a::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: currentColor; transform: scaleX(0); transform-origin: left; transition: transform .3s var(--ease); }
.nav a:hover { color: var(--accent); }
.nav a:hover::after { transform: scaleX(1); }
.header__cta { display: flex; align-items: center; gap: 22px; margin-left: auto; }
.header__phone { font-weight: 600; font-size: 17px; color: var(--ink); line-height: 1.15; text-align: right; font-variant-numeric: tabular-nums; letter-spacing: -.01em; }
.header__phone small { display: block; font-size: 12px; font-weight: 500; color: var(--ok); letter-spacing: 0; }
.burger { display: none; width: 44px; height: 44px; border: 0; background: var(--paper); border-radius: var(--r-sm); box-shadow: inset 0 0 0 1px var(--line); cursor: pointer; padding: 14px 12px; flex-direction: column; justify-content: space-between; }
.burger span { display: block; height: 1.5px; background: var(--ink); border-radius: 2px; }

/* ---------- Hero ---------- */
.hero { position: relative; min-height: min(860px, calc(100vh - 110px)); display: flex; align-items: flex-start; overflow: hidden; background: #e4ebf3; }
.hero__bg { position: absolute; inset: 0; }
.hero__bg img { width: 100%; height: 100%; object-fit: cover; object-position: 70% 100%; animation: heroZoom 20s ease-out both; }
@keyframes heroZoom { from { transform: scale(1.06); } to { transform: scale(1); } }
.hero::after { content: ''; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(90deg, rgba(236,241,247,.95) 0%, rgba(236,241,247,.72) 38%, rgba(236,241,247,0) 68%),
              linear-gradient(0deg, rgba(243,246,249,.9), rgba(243,246,249,0) 22%); }
.snow { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 1; pointer-events: none; opacity: .8; }
/* Компьютер: фото занимает ровно первый экран, кристаллы галита видны сразу, без «наезда» */
@media (min-width: 961px) {
  .hero__bg { bottom: auto; height: calc(100vh - 110px); min-height: 560px; max-height: 100%;
    -webkit-mask-image: linear-gradient(180deg, #000 82%, transparent); mask-image: linear-gradient(180deg, #000 82%, transparent); }
  .hero__bg img { object-position: 100% 88%; animation: none; transform: none; }
}
.hero__in { position: relative; z-index: 2; padding: clamp(56px, 9vh, 110px) 0 150px; }
.hero__content { max-width: 940px; animation: rise 1s var(--ease) both; }
@keyframes rise { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: none; } }
.hero h1 { font-size: clamp(32px, 4.1vw, 54px); font-weight: 500; letter-spacing: -.035em; line-height: 1.05; }
.hero h1 .ice-text { display: block; }
.ice-text { color: #5a7aa3; font-weight: 300; }
.hero__lead { margin-top: 26px; font-size: 18px; line-height: 1.6; color: var(--ink-2); max-width: 540px; }
.hero__form { margin-top: 36px; max-width: 580px; }

.field.field--inline { display: flex; align-items: center; padding: 6px; gap: 6px; background: var(--paper); border-radius: var(--r); box-shadow: var(--shadow-lg), inset 0 0 0 1px var(--line); transition: box-shadow .25s; }
.field--soft.field--inline { box-shadow: inset 0 0 0 1px var(--line-2); }
.field.field--inline:focus-within { box-shadow: var(--shadow-lg), inset 0 0 0 1.5px var(--accent); }
.field.field--inline .btn { border-radius: var(--r-sm); }
.field.field--inline input[type],
.field.field--inline input[type]:focus { flex: 1; min-width: 0; height: 52px; border: 0; outline: 0; background: transparent; box-shadow: none; border-radius: var(--r-sm); padding: 0 18px; font-size: 17px; font-weight: 500; letter-spacing: .01em; }
.field.field--inline input[type]::placeholder { color: var(--faint); font-weight: 400; }

.cswitch { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 12px; }
.cswitch__t { font-size: 13.5px; font-weight: 500; color: var(--muted); }
.cswitch__btns { display: inline-flex; padding: 3px; border-radius: var(--r-sm); background: rgba(12,26,44,.05); }
.cswitch__btns button { border: 0; cursor: pointer; background: transparent; padding: 6px 14px; border-radius: 8px; font-size: 13.5px; font-weight: 500; color: var(--muted); transition: .2s; }
.cswitch__btns button:hover { color: var(--ink); }
.cswitch__btns button.is-on { background: var(--paper); color: var(--ink); box-shadow: 0 1px 2px rgba(12,26,44,.08), 0 0 0 1px var(--line); }
.hero .cswitch { max-width: 580px; }
.hero .cswitch__btns { background: rgba(255,255,255,.55); backdrop-filter: blur(8px); }

.form-call { display: block; margin-top: 12px; text-align: center; font-size: 14px; color: var(--muted); }
.form-call b { color: var(--ink); font-weight: 600; white-space: nowrap; border-bottom: 1px solid var(--line-2); transition: border-color .2s, color .2s; font-variant-numeric: tabular-nums; }
.form-call:hover b { color: var(--accent); border-color: currentColor; }
.hero .form-call { text-align: left; font-size: 15px; }
.form-note { margin-top: 10px; font-size: 12.5px; line-height: 1.5; color: var(--faint); }
.form-note--light { color: #7f93ae; text-align: center; }
.lead-consent { display: flex; align-items: flex-start; gap: 9px; margin: 10px 0; color: var(--muted); font-size: 13px; line-height: 1.5; }
.lead-consent input { flex: none; width: 18px; height: 18px; margin: 1px 0 0; accent-color: var(--accent); }
.lead-status { margin: 8px 0; color: #a32721; font-size: 14px; line-height: 1.45; }
.lead-form .btn:disabled { opacity: .6; cursor: default; }
.lead-form .lead-trap { display: none; }

.hero__facts { list-style: none; padding: 0; margin: 44px 0 0; display: flex; gap: 0; max-width: 620px; border-top: 1px solid var(--line-2); }
.hero__facts li { flex: 1; display: flex; flex-direction: column; gap: 4px; padding: 18px 24px 0 0; }
.hero__facts li + li { padding-left: 24px; border-left: 1px solid var(--line); }
.hero__facts b { font-family: var(--head); font-size: 26px; color: var(--ink); font-weight: 400; letter-spacing: -.03em; white-space: nowrap; line-height: 1.1; }
.hero__facts span { font-size: 13px; line-height: 1.35; color: var(--muted); }
.hero__scroll { position: absolute; z-index: 2; left: 50%; bottom: 96px; width: 1px; height: 46px; background: linear-gradient(var(--line-2), transparent); transform: translateX(-50%); display: none; }

/* ---------- Strip ---------- */
.strip { position: relative; z-index: 3; margin-top: -72px; }
.strip__in { display: grid; grid-template-columns: repeat(4, 1fr); background: var(--paper); border-radius: var(--r-lg); box-shadow: var(--shadow-lg), 0 0 0 1px var(--line); }
.strip__item { display: flex; gap: 16px; align-items: flex-start; padding: 28px 26px; }
.strip__item + .strip__item { border-left: 1px solid var(--line); }
.strip__item svg { flex: none; width: 24px; height: 24px; margin-top: 2px; stroke: var(--accent); fill: none; stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; }
.strip__item b { display: block; color: var(--ink); font-size: 15px; font-weight: 600; line-height: 1.35; }
.strip__item span { font-size: 13.5px; color: var(--muted); }

/* ---------- Sections ---------- */
.section { padding: clamp(80px, 10vw, 140px) 0; }
.section--frost { background: var(--bg-2); position: relative; }
.section--frost::before { content: ''; position: absolute; inset: 0; pointer-events: none; background: radial-gradient(900px 340px at 85% 0%, rgba(255,255,255,.75), transparent 70%); }
.section--frost > .container { position: relative; }
.section__head { display: flex; justify-content: space-between; align-items: flex-end; gap: 48px; margin-bottom: 48px; }
.section__head > div { max-width: 660px; }
.section__sub { max-width: 420px; color: var(--muted); font-size: 15.5px; line-height: 1.65; }
.card { background: var(--paper); border-radius: var(--r-lg); box-shadow: var(--shadow), 0 0 0 1px var(--line); }
.card--dark { background: radial-gradient(520px 320px at 100% 0%, #1a3a66, transparent 62%), var(--ink); color: #c8d4e4; box-shadow: var(--shadow-lg); }
.card-glass { background: rgba(255,255,255,.78); backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px); border-radius: var(--r-lg); box-shadow: var(--shadow-lg), 0 0 0 1px rgba(255,255,255,.9); }

/* ---------- Tabs & catalog ---------- */
.tabs { display: flex; gap: 32px; flex-wrap: wrap; margin-bottom: 36px; border-bottom: 1px solid var(--line); }
.tab { position: relative; border: 0; cursor: pointer; padding: 0 0 16px; background: none; font-weight: 500; font-size: 15px; color: var(--muted); transition: color .2s; }
.tab::after { content: ''; position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; background: var(--ink); transform: scaleX(0); transition: transform .3s var(--ease); }
.tab:hover { color: var(--ink); }
.tab.is-active { color: var(--ink); }
.tab.is-active::after { transform: scaleX(1); }
.tab sup { font-size: 11px; color: var(--faint); margin-left: 4px; font-weight: 500; }

.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 24px; }
.p-card { display: flex; flex-direction: column; background: var(--paper); border-radius: var(--r-lg); box-shadow: var(--shadow), 0 0 0 1px var(--line); overflow: hidden; transition: box-shadow .35s var(--ease), transform .35s var(--ease); animation: rise .6s both; }
.p-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg), 0 0 0 1px var(--line); }
.p-card__img { position: relative; aspect-ratio: 4 / 3.3; margin: 8px 8px 0; border-radius: calc(var(--r-lg) - 6px); background: radial-gradient(120% 90% at 50% 10%, #ffffff 0%, #eef3f8 60%, #e3eaf2 100%); overflow: hidden; }
.p-card__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.p-card__img img.contain { object-fit: contain; padding: 26px; mix-blend-mode: multiply; }
.p-card:hover .p-card__img img { transform: scale(1.04); }
.p-card__tags { position: absolute; top: 12px; left: 12px; display: flex; gap: 6px; flex-wrap: wrap; }
.tag { font-size: 11px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; padding: 5px 9px; border-radius: 6px; background: rgba(255,255,255,.88); color: var(--ink-2); backdrop-filter: blur(6px); box-shadow: 0 0 0 1px var(--line); }
.tag--hit { background: var(--ink); color: #fff; box-shadow: none; }
.p-card__body { padding: 20px 22px 22px; display: flex; flex-direction: column; flex: 1; }
.p-card__pack { font-size: 12px; font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: .1em; }
.p-card__name { font-family: var(--head); font-size: 19px; font-weight: 500; letter-spacing: -.02em; line-height: 1.25; margin: 8px 0 10px; color: var(--ink); }
.p-card__desc { font-size: 14px; color: var(--muted); line-height: 1.55; flex: 1; }
.p-card__price { display: flex; align-items: flex-end; justify-content: space-between; gap: 8px; margin: 20px 0 16px; padding-top: 16px; border-top: 1px solid var(--line); }
.price { font-family: var(--head); font-size: 26px; font-weight: 500; letter-spacing: -.03em; color: var(--ink); line-height: 1; white-space: nowrap; }
.price small { display: block; font-family: var(--body); font-size: 12.5px; font-weight: 400; letter-spacing: 0; color: var(--muted); margin-top: 8px; }
.price-opt { text-align: right; font-size: 12px; color: var(--muted); line-height: 1.3; }
.price-opt b { display: block; color: var(--ok); font-size: 16px; font-weight: 600; margin-top: 2px; }
.price--req { font-size: 20px; }
.p-card__actions { display: flex; gap: 8px; }
.qty { display: flex; align-items: center; border-radius: var(--r-sm); box-shadow: inset 0 0 0 1px var(--line-2); padding: 2px; }
.qty button { width: 36px; height: 40px; border: 0; border-radius: 8px; background: transparent; cursor: pointer; font-size: 18px; font-weight: 400; color: var(--ink); transition: background .2s; }
.qty button:hover { background: var(--bg); }
.qty input { width: 32px; text-align: center; border: 0; background: transparent; font-weight: 600; outline: 0; font-variant-numeric: tabular-nums; }
.p-card__actions .btn { flex: 1; padding: 11px 14px; font-size: 14.5px; }
.p-card__quick { margin-top: 12px; border: 0; background: none; cursor: pointer; color: var(--muted); font-weight: 500; font-size: 13.5px; padding: 4px 0; text-align: center; transition: color .2s; }
.p-card__quick:hover { color: var(--accent); }

/* ---------- Quiz ---------- */
.picker { display: grid; grid-template-columns: 1fr 1.15fr; gap: 72px; align-items: center; }
.picker__intro p { margin-top: 20px; color: var(--muted); font-size: 17px; }
.checks { list-style: none; padding: 0; margin: 30px 0 0; display: grid; gap: 14px; font-weight: 500; color: var(--ink-2); }
.checks li { display: flex; gap: 14px; align-items: center; }
.checks li::before { content: ''; width: 22px; height: 22px; border-radius: 50%; flex: none; box-shadow: inset 0 0 0 1px var(--line-2); background: var(--paper) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%232b62d1' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 12l4 4 8-8'/%3E%3C/svg%3E") center / 13px no-repeat; }
.quiz { padding: 36px; min-height: 420px; display: flex; flex-direction: column; }
.quiz__progress { height: 2px; background: var(--line); overflow: hidden; margin-bottom: 28px; }
.quiz__progress span { display: block; height: 100%; width: 0; background: var(--ink); transition: width .5s var(--ease); }
.quiz__body { flex: 1; display: flex; flex-direction: column; animation: rise .45s both; }
.quiz__step { font-size: 12px; font-weight: 600; color: var(--muted); letter-spacing: .12em; text-transform: uppercase; }
.quiz__q { font-family: var(--head); font-size: 24px; font-weight: 500; letter-spacing: -.025em; color: var(--ink); margin: 10px 0 24px; line-height: 1.2; }
.quiz__opts { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.opt { text-align: left; border: 0; cursor: pointer; padding: 18px 20px; border-radius: var(--r); background: var(--paper); box-shadow: inset 0 0 0 1px var(--line-2); font-weight: 600; color: var(--ink); transition: box-shadow .2s, background .2s; }
.opt small { display: block; font-weight: 400; color: var(--muted); font-size: 13px; margin-top: 4px; }
.opt:hover { box-shadow: inset 0 0 0 1.5px var(--ink); }
.quiz__back { margin-top: auto; padding-top: 20px; align-self: flex-start; border: 0; background: none; cursor: pointer; color: var(--muted); font-weight: 500; font-size: 14px; }
.quiz__back:hover { color: var(--ink); }
.quiz__result { display: grid; grid-template-columns: 112px 1fr; gap: 18px; align-items: center; padding: 14px; border-radius: var(--r); background: var(--paper); box-shadow: inset 0 0 0 1px var(--line); margin-bottom: 20px; }
.quiz__result img { width: 112px; height: 112px; object-fit: contain; border-radius: var(--r-sm); background: var(--bg); padding: 8px; mix-blend-mode: multiply; }
.quiz__result b { display: block; font-family: var(--head); font-weight: 500; font-size: 18px; letter-spacing: -.02em; color: var(--ink); }
.quiz__result small { display: block; margin-top: 4px; font-size: 13px; color: var(--accent); font-weight: 600; }
.quiz__result p { font-size: 14px; color: var(--muted); margin-top: 6px; }

/* ---------- Fields ---------- */
.field { display: grid; gap: 8px; }
.field > span { display: flex; justify-content: space-between; font-weight: 500; font-size: 14px; color: var(--ink-2); }
.field output { font-family: var(--head); font-size: 15px; font-weight: 500; color: var(--ink); font-variant-numeric: tabular-nums; }
.field select, .field input[type=text], .field input[type=tel], .field input[type=email] {
  width: 100%; height: 52px; padding: 0 16px; border-radius: var(--r-sm); border: 0; background: var(--paper);
  box-shadow: inset 0 0 0 1px var(--line-2); font-weight: 500; outline: 0; transition: box-shadow .2s;
  appearance: none; -webkit-appearance: none;
}
.field input::placeholder { color: var(--faint); font-weight: 400; }
.field select { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23687890' stroke-width='1.8' stroke-linecap='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; background-size: 18px; padding-right: 42px; text-overflow: ellipsis; }
.field select:hover, .field input:hover { box-shadow: inset 0 0 0 1px rgba(12,26,44,.28); }
.field select:focus, .field input:focus { box-shadow: inset 0 0 0 1.5px var(--accent), 0 0 0 4px var(--accent-soft); }

/* Количество + единицы */
.amount { display: flex; gap: 8px; }
.amount input[type=text] { flex: 1; min-width: 0; }
.amount__units { display: flex; padding: 3px; border-radius: var(--r-sm); box-shadow: inset 0 0 0 1px var(--line-2); background: var(--paper); }
.amount__units label { position: relative; cursor: pointer; }
.amount__units input { position: absolute; opacity: 0; pointer-events: none; }
.amount__units span { display: grid; place-items: center; height: 46px; padding: 0 14px; border-radius: 8px; font-size: 14px; font-weight: 500; color: var(--muted); transition: .2s; }
.amount__units label:hover span { color: var(--ink); }
.amount__units input:checked + span { background: var(--ink); color: #fff; }
.amount__units input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 1px; }
.amount__hint { font-size: 12.5px; color: var(--faint); }

/* ---------- Calculator ---------- */
.calc { display: grid; grid-template-columns: 1.3fr 1fr; gap: 24px; }
.calc__form { padding: 36px; display: grid; gap: 30px; }
input[type=range] { -webkit-appearance: none; appearance: none; width: 100%; height: 2px; border-radius: 2px; background: linear-gradient(90deg, var(--ink) var(--p, 50%), var(--frost) var(--p, 50%)); outline: 0; margin: 10px 0; }
input[type=range]::-webkit-slider-thumb { -webkit-appearance: none; width: 22px; height: 22px; border-radius: 50%; background: var(--paper); border: 1.5px solid var(--ink); cursor: grab; box-shadow: 0 4px 12px -2px rgba(12,26,44,.3); transition: transform .2s; }
input[type=range]::-webkit-slider-thumb:hover { transform: scale(1.12); }
input[type=range]::-moz-range-thumb { width: 20px; height: 20px; border-radius: 50%; background: var(--paper); border: 1.5px solid var(--ink); cursor: grab; }
.calc__hint { font-size: 13.5px; color: var(--muted); padding: 14px 16px; border-radius: var(--r-sm); background: var(--bg); border-left: 2px solid var(--frost); }
.calc__result { padding: 36px; display: flex; flex-direction: column; }
.calc__label { font-size: 12px; color: #8ea1bb; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; }
.calc__big { font-family: var(--head); font-size: clamp(44px, 5.4vw, 68px); color: #fff; font-weight: 300; letter-spacing: -.04em; line-height: 1.05; margin: 12px 0 26px; }
.calc__rows { display: grid; margin-bottom: 30px; border-top: 1px solid rgba(255,255,255,.1); }
.calc__rows div { display: flex; justify-content: space-between; padding: 14px 0; border-bottom: 1px solid rgba(255,255,255,.1); font-size: 15px; }
.calc__rows b { color: #fff; font-size: 16px; font-weight: 500; }
.calc__rows .hl b { color: #7fdcbc; }
.calc__result .btn { margin-top: auto; }
.calc__result .btn--primary { background: #fff; color: var(--ink); box-shadow: none; }
.calc__result .btn--primary:hover { background: var(--accent); color: #fff; }

/* ---------- Compare ---------- */
.table-wrap { overflow-x: auto; }
.compare { width: 100%; border-collapse: collapse; min-width: 780px; }
.compare th, .compare td { padding: 20px 28px; text-align: left; font-size: 15px; vertical-align: middle; }
.compare th { font-size: 11.5px; font-weight: 600; text-transform: uppercase; letter-spacing: .12em; color: var(--muted); border-bottom: 1px solid var(--line); padding-top: 22px; padding-bottom: 18px; }
.compare td { color: var(--ink-2); }
.compare td b { color: var(--ink); font-weight: 600; }
.compare tbody tr + tr td { border-top: 1px solid var(--line); }
.compare tbody tr { transition: background .2s; }
.compare tbody tr:hover { background: #f8fafc; }
.compare .num { text-align: right; white-space: nowrap; font-family: var(--head); font-weight: 500; color: var(--ink); }
.compare td.num { font-size: 16px; }
.meter { display: inline-flex; gap: 3px; margin-right: 12px; vertical-align: middle; }
.meter i { width: 14px; height: 4px; border-radius: 2px; background: var(--frost); }
.meter[style*="--v:1"] i:nth-child(-n+1), .meter[style*="--v:2"] i:nth-child(-n+2), .meter[style*="--v:3"] i:nth-child(-n+3),
.meter[style*="--v:4"] i:nth-child(-n+4), .meter[style*="--v:5"] i:nth-child(-n+5) { background: var(--accent); }

/* ---------- Audience ---------- */
.aud { display: grid; grid-template-columns: repeat(5, 1fr); gap: 0; border-radius: var(--r-lg); background: var(--paper); box-shadow: var(--shadow), 0 0 0 1px var(--line); overflow: hidden; }
.aud__item { padding: 32px 26px 34px; transition: background .35s var(--ease); }
.aud__item + .aud__item { border-left: 1px solid var(--line); }
.aud__item:hover { background: var(--ink); }
.aud__item:hover h3, .aud__item:hover p { color: #fff; }
.aud__item:hover p { color: #a9b8cc; }
.aud__n { font-family: var(--head); color: var(--faint); font-size: 13px; font-weight: 400; letter-spacing: .04em; }
.aud__item h3 { margin: 44px 0 10px; font-size: 18px; transition: color .35s; }
.aud__item p { font-size: 14px; color: var(--muted); transition: color .35s; }

/* ---------- Steps ---------- */
.steps { list-style: none; padding: 0; margin: 0 0 24px; display: grid; grid-template-columns: repeat(4, 1fr); counter-reset: s; border-top: 1px solid var(--line-2); }
.steps li { position: relative; padding: 30px 28px 10px 0; counter-increment: s; }
.steps li + li { padding-left: 28px; border-left: 1px solid var(--line); }
.steps li::before { content: counter(s, decimal-leading-zero); display: block; font-family: var(--head); font-weight: 300; font-size: 44px; letter-spacing: -.04em; line-height: 1; color: var(--accent); margin-bottom: 22px; }
.steps b { font-size: 17px; font-weight: 600; color: var(--ink); }
.steps p { margin-top: 8px; font-size: 14.5px; color: var(--muted); }
.delivery { display: grid; grid-template-columns: 1fr 1fr auto; gap: 36px; align-items: center; padding: 30px 34px; margin-top: 30px; }
.delivery p { margin-top: 8px; color: var(--muted); font-size: 14.5px; }

/* ---------- FAQ ---------- */
.faq-wrap { display: grid; grid-template-columns: 1fr 1.4fr; gap: 72px; }
.faq-wrap .section__sub { margin-top: 20px; }
.faq { border-top: 1px solid var(--line-2); }
.faq details { border-bottom: 1px solid var(--line-2); }
.faq summary { list-style: none; cursor: pointer; padding: 26px 0; font-family: var(--head); font-weight: 500; font-size: 19px; letter-spacing: -.02em; color: var(--ink); display: flex; justify-content: space-between; align-items: center; gap: 24px; transition: color .2s; }
.faq summary:hover { color: var(--accent); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ''; flex: none; width: 14px; height: 14px; transition: transform .3s var(--ease);
  background: linear-gradient(currentColor, currentColor) center / 14px 1.5px no-repeat, linear-gradient(currentColor, currentColor) center / 1.5px 14px no-repeat; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding: 0 60px 28px 0; color: var(--muted); font-size: 15.5px; }

/* ---------- Final ---------- */
.final { position: relative; padding: clamp(80px, 10vw, 140px) 0; background: radial-gradient(900px 520px at 8% 0%, #19365f 0%, transparent 62%), var(--ink); overflow: hidden; }
.final::before { content: ''; position: absolute; inset: 0; background: url('../img/hero.webp') right bottom / cover no-repeat; opacity: .07; mix-blend-mode: screen; }
.final__in { position: relative; display: grid; grid-template-columns: 1.05fr 1fr; gap: 72px; align-items: center; }
.final h2 { color: #fff; }
.contacts { list-style: none; padding: 0; margin: 44px 0 0; display: grid; grid-template-columns: 1fr 1fr; gap: 0; border-top: 1px solid rgba(255,255,255,.12); }
.contacts li { padding: 22px 0; border-bottom: 1px solid rgba(255,255,255,.12); }
.contacts li:nth-child(odd) { padding-right: 20px; }
.contacts span { display: block; font-size: 12px; color: #7f93ae; margin-bottom: 6px; letter-spacing: .1em; text-transform: uppercase; }
.contacts a, .contacts b { color: #fff; font-weight: 500; font-size: 18px; letter-spacing: -.01em; font-variant-numeric: tabular-nums; transition: color .2s; }
.contacts a:hover { color: #a9c4f2; }
.final__form { padding: 36px; display: grid; gap: 18px; }
.final__form h3 { font-size: 26px; letter-spacing: -.03em; margin-bottom: 2px; }

.footer { background: #08121f; color: #6f839e; font-size: 13px; padding: 28px 0 32px; }
.footer__in { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.footer .link { color: #a9c4f2; }
.footer__legal { display: flex; flex-wrap: wrap; gap: 10px 18px; align-items: flex-start; }
.cookie-panel { position: fixed; left: 24px; bottom: 24px; z-index: 70; width: min(420px, calc(100vw - 32px)); padding: 22px 22px 16px; border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--paper); box-shadow: var(--shadow-lg); font-size: 13px; }
.cookie-panel__title { margin: 0 0 6px; font: 600 20px/1.25 var(--head); color: var(--ink); }
.cookie-panel__text { margin: 0 0 16px; font-size: 15px; line-height: 1.45; color: var(--text); }
.cookie-panel__actions { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.cookie-panel__actions .btn { flex: 1 1 0; white-space: nowrap; min-height: 48px; font-size: 16px; }
.cookie-panel__actions .btn--primary { flex-grow: 1.6; }
.cookie-panel .lead-status:empty { display: none; }
@media (max-width: 640px) {
  .cookie-panel { left: 8px; right: 8px; width: auto; max-width: none; bottom: calc(72px + env(safe-area-inset-bottom)); padding: 20px 18px 14px; }
}

/* ---------- Floating ---------- */
.cart-fab, .wa-fab { position: fixed; right: 24px; z-index: 60; width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; border: 0; cursor: pointer; transition: transform .25s var(--ease), opacity .3s, visibility .3s, box-shadow .25s; }
.cart-fab:hover, .wa-fab:hover { transform: translateY(-2px); }
.cart-fab { bottom: 96px; background: var(--ink); color: #fff; box-shadow: var(--shadow-lg); }
.cart-fab svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.cart-fab__count { position: absolute; top: -3px; right: -3px; min-width: 22px; height: 22px; padding: 0 6px; border-radius: 11px; background: var(--accent); font-size: 11.5px; font-weight: 600; display: grid; place-items: center; border: 2px solid var(--bg); font-variant-numeric: tabular-nums; }
.cart-fab.is-empty { opacity: 0; visibility: hidden; transform: scale(.7); }
.cart-fab.bump { animation: bump .5s; }
@keyframes bump { 30% { transform: scale(1.15); } 60% { transform: scale(.96); } }
.wa-fab { bottom: 28px; background: var(--paper); color: #1fae55; box-shadow: var(--shadow-lg), 0 0 0 1px var(--line); }
.wa-fab svg { width: 26px; height: 26px; }
.mobilebar { display: none; }

/* ---------- Drawer / modal ---------- */
.drawer, .modal { position: fixed; inset: 0; z-index: 100; visibility: hidden; }
.drawer::before, .modal::before { content: ''; position: absolute; inset: 0; background: rgba(8,18,31,.42); backdrop-filter: blur(6px); opacity: 0; transition: opacity .35s; }
.drawer.is-open, .modal.is-open { visibility: visible; }
.drawer.is-open::before, .modal.is-open::before { opacity: 1; }
.drawer__panel { position: absolute; top: 0; right: 0; bottom: 0; width: min(460px, 100%); background: var(--bg); display: flex; flex-direction: column; transform: translateX(100%); transition: transform .45s var(--ease); }
.drawer.is-open .drawer__panel { transform: none; }
.drawer__head { display: flex; justify-content: space-between; align-items: center; padding: 22px 26px; border-bottom: 1px solid var(--line); background: var(--paper); }
.drawer__head h3 { font-size: 22px; }
.drawer__list { flex: 1; overflow: auto; padding: 18px 26px; display: grid; gap: 10px; align-content: start; }
.drawer__empty { text-align: center; color: var(--muted); padding: 48px 0; }
.c-item { display: grid; grid-template-columns: 60px 1fr auto; gap: 14px; align-items: center; background: var(--paper); padding: 10px; border-radius: var(--r); box-shadow: 0 0 0 1px var(--line); }
.c-item img { width: 60px; height: 60px; object-fit: cover; border-radius: 8px; background: var(--bg); }
.c-item b { display: block; font-size: 14px; font-weight: 600; line-height: 1.3; color: var(--ink); }
.c-item small { color: var(--muted); font-size: 12.5px; }
.c-item .qty button { width: 28px; height: 32px; font-size: 15px; }
.c-item .qty input { width: 28px; font-size: 14px; }
.drawer__foot { padding: 20px 26px 26px; background: var(--paper); border-top: 1px solid var(--line); display: grid; gap: 10px; }
.drawer__sum { display: flex; justify-content: space-between; align-items: baseline; font-weight: 500; }
.drawer__sum b { font-family: var(--head); font-size: 24px; font-weight: 500; letter-spacing: -.03em; color: var(--ink); }
.drawer__sum--opt b { font-family: var(--body); color: var(--ok); font-size: 16px; font-weight: 600; letter-spacing: 0; }
.drawer__foot form { display: grid; gap: 12px; margin-top: 8px; }
.x { width: 40px; height: 40px; border-radius: 50%; border: 0; background: transparent; box-shadow: inset 0 0 0 1px var(--line-2); font-size: 22px; font-weight: 300; line-height: 1; cursor: pointer; color: var(--ink); transition: .2s; }
.x:hover { background: var(--ink); color: #fff; box-shadow: none; }
.modal { display: grid; place-items: center; padding: 20px; }
.modal__box { position: relative; width: min(480px, 100%); padding: 40px; transform: translateY(16px) scale(.98); opacity: 0; transition: .4s var(--ease); max-height: calc(100vh - 40px); overflow: auto; }
.modal.is-open .modal__box { transform: none; opacity: 1; }
.modal__box .x { position: absolute; top: 16px; right: 16px; }
.modal__box h3 { font-size: 26px; letter-spacing: -.03em; padding-right: 44px; }
.modal__box > div > p { margin: 12px 0 24px; color: var(--muted); }
.modal__box form { display: grid; gap: 14px; }
.modal__prod { display: flex; gap: 14px; align-items: center; padding: 12px; border-radius: var(--r); background: var(--bg); margin-bottom: 20px; }
.modal__prod img { width: 56px; height: 56px; border-radius: 8px; object-fit: cover; }
.modal__prod b { display: block; font-size: 14.5px; font-weight: 600; color: var(--ink); line-height: 1.3; }
.modal__prod small { color: var(--muted); }
.success { text-align: center; padding: 16px 0 4px; }
.success__ic { width: 64px; height: 64px; margin: 0 auto 22px; border-radius: 50%; box-shadow: inset 0 0 0 1px rgba(15,125,98,.3); background: #eef8f4; display: grid; place-items: center; }
.success__ic svg { width: 28px; height: 28px; stroke: var(--ok); fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

.toast { position: fixed; left: 50%; bottom: 32px; z-index: 120; transform: translate(-50%, 24px); opacity: 0; pointer-events: none; padding: 13px 20px; border-radius: var(--r-sm); background: var(--ink); color: #fff; font-weight: 500; font-size: 14px; box-shadow: var(--shadow-lg); transition: .35s var(--ease); }
.toast.is-show { opacity: 1; transform: translate(-50%, 0); }

.reveal { opacity: 0; transform: translateY(22px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.reveal.is-in { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 1140px) {
  .nav { display: none; }
  .burger { display: flex; }
  .nav.is-open { display: flex; position: absolute; top: 78px; left: 0; right: 0; flex-direction: column; gap: 0; background: var(--paper); padding: 8px 24px 20px; box-shadow: var(--shadow-lg); margin: 0; border-top: 1px solid var(--line); }
  .nav.is-open a { padding: 15px 0; border-bottom: 1px solid var(--line); }
  .nav.is-open a::after { display: none; }
  .aud { grid-template-columns: repeat(3, 1fr); }
  .aud__item:nth-child(4) { border-left: 0; }
  .aud__item:nth-child(n+4) { border-top: 1px solid var(--line); }
}
@media (max-width: 1100px) {
  .strip__in { grid-template-columns: 1fr 1fr; }
  .strip__item:nth-child(3) { border-left: 0; }
  .strip__item:nth-child(n+3) { border-top: 1px solid var(--line); }
}
@media (max-width: 960px) {
  .topbar__meta { display: none; }
  .picker, .calc, .faq-wrap, .final__in { grid-template-columns: 1fr; gap: 36px; }
  .section__head { flex-direction: column; align-items: flex-start; gap: 16px; }
  .steps { grid-template-columns: 1fr 1fr; }
  .steps li:nth-child(3) { padding-left: 0; border-left: 0; }
  .delivery { grid-template-columns: 1fr; gap: 20px; }
  .hero::after { background: linear-gradient(180deg, rgba(236,241,247,.96) 0%, rgba(236,241,247,.8) 55%, rgba(236,241,247,.15) 100%); }
}
@media (max-width: 640px) {
  body { padding-bottom: 72px; }
  .container { width: calc(100% - 32px); }
  .header__in { height: 64px; gap: 12px; }
  .nav.is-open { top: 64px; }
  .header__phone, .header__cta .btn { display: none; }
  .topbar__msg { font-size: 12px; }
  .hero__in { padding: 40px 0 120px; }
  .hero h1 { font-size: min(32px, calc((100vw - 32px) / 12.6)); hyphens: auto; }
  h2 { font-size: min(30px, calc((100vw - 32px) / 11.5)); hyphens: auto; }
  .hero__lead { font-size: 16px; margin-top: 18px; }
  .field.field--inline, .field.field--inline:focus-within { flex-direction: column; align-items: stretch; gap: 10px; padding: 0; background: none; box-shadow: none; }
  .field.field--inline input[type],
  .field.field--inline input[type]:focus { flex: none; height: 56px; padding: 0 18px; border-radius: var(--r-sm); background: var(--paper); box-shadow: inset 0 0 0 1px var(--line-2), 0 8px 20px -16px rgba(12,26,44,.35); }
  .field.field--inline input[type]:focus { background: var(--paper); box-shadow: inset 0 0 0 1.5px var(--accent), 0 0 0 4px var(--accent-soft); }
  .field.field--inline .btn { width: 100%; height: 56px; }
  .hero__facts { margin-top: 32px; }
  .hero__facts li { padding: 16px 10px 0 0; }
  .hero__facts li + li { padding-left: 12px; }
  .hero__facts b { font-size: 19px; }
  .hero__facts span { font-size: 11.5px; }
  .strip__in { grid-template-columns: 1fr; }
  .strip__item { padding: 20px 22px; }
  .strip__item + .strip__item { border-left: 0; border-top: 1px solid var(--line); }
  .tabs { flex-wrap: nowrap; overflow-x: auto; gap: 24px; margin-inline: -16px; padding-inline: 16px; scrollbar-width: none; }
  .tab { flex: none; }
  .quiz { padding: 24px; }
  .quiz__opts { grid-template-columns: 1fr; }
  .quiz__result { grid-template-columns: 1fr; }
  .calc__form, .calc__result, .final__form { padding: 24px; }
  .aud { grid-template-columns: 1fr 1fr; }
  .aud__item { padding: 24px 20px; }
  .aud__item h3 { margin-top: 26px; }
  .aud__item:nth-child(n) { border-left: 0; border-top: 1px solid var(--line); }
  .aud__item:nth-child(even) { border-left: 1px solid var(--line); }
  .aud__item:nth-child(-n+2) { border-top: 0; }
  .steps { grid-template-columns: 1fr; }
  .steps li, .steps li + li { padding: 24px 0 8px; border-left: 0; }
  .steps li + li { border-top: 1px solid var(--line); }
  .steps li::before { font-size: 34px; margin-bottom: 14px; }
  .faq summary { font-size: 17px; padding: 22px 0; }
  .faq details p { padding-right: 0; }
  .contacts { grid-template-columns: 1fr; }
  .contacts li:nth-child(odd) { padding-right: 0; }
  .amount { flex-direction: column; }
  .amount input[type=text] { flex: none; }
  .amount__units label { flex: 1; }
  .cart-fab { bottom: 88px; right: 14px; width: 52px; height: 52px; }
  .wa-fab { display: none; }
  .mobilebar { display: grid; grid-template-columns: 1fr 1.4fr; gap: 8px; position: fixed; left: 0; right: 0; bottom: 0; z-index: 60; padding: 10px 12px calc(10px + env(safe-area-inset-bottom)); background: rgba(255,255,255,.94); backdrop-filter: blur(14px); border-top: 1px solid var(--line); }
  .mobilebar__btn { display: grid; place-items: center; height: 50px; border-radius: var(--r-sm); border: 0; font-weight: 600; background: var(--paper); box-shadow: inset 0 0 0 1px var(--line-2); color: var(--ink); cursor: pointer; }
  .mobilebar__btn--primary { background: var(--ink); color: #fff; box-shadow: none; }
  .toast { bottom: 90px; }
  .modal__box { padding: 28px 22px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
}

/* Мобильные: не даём странице уезжать вбок (шторка корзины спрятана за правым краем) */
.drawer, .modal { overflow: hidden; }
html, body { overflow-x: clip; }
