/* ==========================================================================
   Калькулятор выбора рекламного канала — KLEVER LAB
   Токены, панели, кнопки, шапка, разбор, подвал и cookie повторяют kleverlab.ru.
   Порядок: токены → база → общие блоки → секции по порядку на странице →
   движение → адаптив (сначала планшет, затем телефон — основной сценарий).
   ========================================================================== */

/* ---------- токены ---------- */
:root {
  --page: #F1F0EE; --panel: #FBFBFB; --panel-2: #EDECEA;
  --dark: #0D0D0D; --dark-2: #151517;
  --ink: #16140F; --ink-2: #6E6B66;
  --line: rgba(22,20,15,.09); --line-d: rgba(255,255,255,.08);
  --green: #5DA73C; --green-d: #4F9233; --err: #D65642; --err-light: #FF8A78;
  --r-panel: 32px; --r-card: 20px;
  --pad-x: clamp(20px,3.6vw,72px);
  --ease: cubic-bezier(.23,1,.32,1);
  --icon-arrow: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M7 17 17 7M9 7h8v8'/%3E%3C/svg%3E");
  --icon-check: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7'/%3E%3C/svg%3E");
  --icon-down: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 5v14M6 13l6 6 6-6'/%3E%3C/svg%3E");
}

/* ---------- база ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0 }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100% }
body {
  background: var(--page); color: var(--ink);
  font-family: Manrope, "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: 16px; line-height: 1.5; -webkit-font-smoothing: antialiased;
  padding: 0 12px 12px; -webkit-tap-highlight-color: transparent;
}
img { max-width: 100%; height: auto; display: block }
a { color: inherit; text-decoration: none }
button, input, select { font-family: inherit }
[hidden] { display: none !important }
.accent { color: var(--green) }
.visually-hidden {
  position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden;
  clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; border: 0;
}

/* ---------- панели, типографика, кнопки ---------- */
.panel {
  background: var(--panel); border-radius: var(--r-panel);
  padding: clamp(34px,4vw,64px) var(--pad-x); margin-bottom: 12px; position: relative; overflow: hidden;
}
.panel--dark { background: var(--dark); color: #FBFBFB }
.wrap { max-width: clamp(1280px,84vw,1680px); margin: 0 auto }
h2 { font-size: clamp(30px,4.2vw,72px); font-weight: 700; letter-spacing: -.045em; line-height: .92 }
h3 { font-size: clamp(18px,1.5vw,24px); font-weight: 700; letter-spacing: -.02em; line-height: 1.18 }
.lead { font-size: clamp(15.5px,1.2vw,21px); line-height: 1.55; color: var(--ink-2) }
.panel--dark .lead { color: rgba(255,255,255,.62) }

.btn {
  display: inline-flex; align-items: center; gap: 11px; padding: 15px 26px; border-radius: 999px; border: 0;
  font-size: 13.5px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; cursor: pointer;
  transition: transform .35s var(--ease), background .25s;
}
.btn i {
  width: 15px; height: 15px; flex: none; background: currentColor;
  -webkit-mask: var(--icon-arrow) no-repeat center/contain; mask: var(--icon-arrow) no-repeat center/contain;
  transition: transform .35s var(--ease);
}
.btn:hover { transform: translateY(-2px) }
.btn:hover i { transform: translate(2px,-2px) }
.btn:active { transform: scale(.98) }
.btn:disabled { opacity: .6; cursor: progress }
.btn--green { background: var(--green); color: #fff }
.btn--green:hover { background: var(--green-d) }
.btn--dark { background: var(--ink); color: #FBFBFB }
.btn--sm { padding: 11px 20px; font-size: 12px }
.btn--sm i { width: 13px; height: 13px }
.btn--down i { -webkit-mask-image: var(--icon-down); mask-image: var(--icon-down) }
.btn--down:hover i { transform: translateY(2px) }

/* ---------- шапка ---------- */
.nav {
  position: sticky; top: 12px; z-index: 60; display: flex; align-items: center; gap: clamp(16px,2vw,34px);
  background: var(--panel); border-radius: 999px; padding: 10px 10px 10px 28px; margin: 12px 0;
  box-shadow: 0 1px 0 rgba(22,20,15,.04);
}
.nav__logo img { height: 30px; width: auto; filter: brightness(0) }
.nav__title { font-size: 12.5px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-2) }
.nav__title::before {
  content: ""; display: inline-block; width: 1px; height: 16px; background: var(--line);
  margin-right: clamp(16px,2vw,34px); vertical-align: -3px;
}
.nav__tel { margin-left: auto; font-size: 14px; font-weight: 700; letter-spacing: -.01em; white-space: nowrap }
.nav__tel:hover { color: var(--green) }

/* ---------- первый экран ---------- */
.hero { padding-block: clamp(28px,2.9vw,44px) clamp(30px,3.2vw,48px); min-height: calc(100svh - 113px); display: flex; align-items: center }
.hero > .wrap { width: 100% }
.hero__grid { display: grid; grid-template-columns: 1fr clamp(360px,38vw,600px); column-gap: clamp(24px,3vw,60px); align-items: center }
.hero__text { display: flex; flex-direction: column; min-width: 0 }
.hero__eyebrow {
  display: inline-flex; align-items: center; gap: 10px; align-self: flex-start; margin-bottom: 26px;
  font-size: 11.5px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: rgba(255,255,255,.55);
}
.hero__eyebrow::before { content: ""; width: 26px; height: 1px; background: var(--green) }
.hero h1 { font-size: clamp(40px,5.4vw,96px); font-weight: 700; letter-spacing: -.055em; line-height: .9 }
.hero h1 .line { display: block }
.underline { position: relative; white-space: nowrap }
.underline::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: .13em; height: .045em; border-radius: 99px;
  background: var(--green); transform: scaleX(0); transform-origin: left; animation: draw-line 1.1s .5s var(--ease) forwards;
}
.hero .lead { max-width: 500px; margin-top: clamp(30px,3.4vw,56px); padding-top: 26px; border-top: 1px solid var(--line-d) }
.hero__actions { display: flex; align-items: center; gap: 22px; margin-top: 30px; flex-wrap: wrap }
.hero__actions small { font-size: 12.5px; line-height: 1.45; color: rgba(255,255,255,.45); max-width: 200px }

/* Хромовый калькулятор: два кадра (обычный и с нажатой «=») и экран поверх.
   Положение экрана задаёт hero-screen.js (matrix3d), здесь — только вид. */
.hero-device { position: relative; aspect-ratio: 1 / 1; width: 100%; perspective: 1400px; animation: device-in 1.1s .15s var(--ease) both }
.hero-device__tilt { position: absolute; inset: 0; transform-style: preserve-3d; transition: transform .9s var(--ease); animation: float 7s ease-in-out infinite }
.hero-device__tilt > img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; mix-blend-mode: lighten;
  -webkit-mask: radial-gradient(closest-side,#000 88%,transparent 100%); mask: radial-gradient(closest-side,#000 88%,transparent 100%);
}
.hero-device__pressed { opacity: 0; transition: opacity .09s }
.hero-device.is-pressed .hero-device__pressed { opacity: 1 }
.hero-screen {
  position: absolute; left: 0; top: 0; width: 1000px; height: 330px; transform-origin: 0 0; pointer-events: none;
  display: flex; flex-direction: column; justify-content: center; align-items: flex-end; padding: 0 70px; overflow: hidden;
  background: linear-gradient(170deg,rgba(255,255,255,.06),rgba(255,255,255,0) 45%);
}
.hero-screen__label { height: 1.4em; font-size: 30px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: rgba(255,255,255,.42) }
.hero-screen__value { font-size: 118px; font-weight: 700; letter-spacing: -.045em; line-height: 1; color: #F3F3F0; white-space: nowrap; font-variant-numeric: tabular-nums }
.hero-screen__value.is-result { color: var(--green) }
.hero-screen__value.is-result span { display: inline-block; animation: rise-in .55s var(--ease) both }
.hero-screen__cursor {
  display: inline-block; width: .07em; height: .78em; margin-left: .06em; vertical-align: -.04em;
  background: currentColor; animation: blink 1s steps(1) infinite;
}

/* ---------- калькулятор ---------- */
.section-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 32px; margin-bottom: clamp(30px,3vw,48px); flex-wrap: wrap }
.section-head .lead { flex: 1 1 300px; min-width: 0; max-width: 470px }
.calc { display: grid; grid-template-columns: minmax(0,1.2fr) minmax(0,1fr); gap: clamp(20px,2.4vw,40px); align-items: start }

/* форма — один лист, шаги разделены линией: подпись шага слева, поля справа */
.calc-sheet { background: #fff; border-radius: 24px; padding: 0 clamp(22px,2.4vw,40px) }
.step { display: grid; grid-template-columns: clamp(150px,13vw,210px) minmax(0,1fr); gap: 24px; padding: clamp(26px,2.6vw,38px) 0; border: 0 }
.step + .step { border-top: 1px solid var(--line) }
.step__num { font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-2); font-variant-numeric: tabular-nums }
.step__num b { color: var(--green); font-weight: 800 }
.step__title { font-size: clamp(20px,1.7vw,26px); font-weight: 700; letter-spacing: -.03em; line-height: 1.1; margin-top: 10px }
.step__hint { font-size: 13px; line-height: 1.5; color: var(--ink-2); margin-top: 8px; max-width: 210px }
.step__fields { display: grid; gap: 26px; min-width: 0 }

.field-label { display: block; font-size: 13.5px; font-weight: 600; color: var(--ink); margin-bottom: 10px }
.two-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 12px }
.input {
  width: 100%; border: 0; border-radius: 999px; padding: 16px 22px; background: var(--panel-2);
  font-size: 16px; font-weight: 600; color: var(--ink); appearance: none; -webkit-appearance: none;
  transition: box-shadow .2s, background-color .2s;
}
.input:focus { outline: none; box-shadow: 0 0 0 2px var(--green) }
select.input {
  cursor: pointer; padding-right: 46px; text-overflow: ellipsis;
  background: var(--panel-2) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1.5l5 5 5-5' stroke='%2316140F' stroke-width='1.8' fill='none' stroke-linecap='round'/%3E%3C/svg%3E") no-repeat right 22px center;
}
select.input.is-low { box-shadow: 0 0 0 2px var(--err); background-color: #FBECE9 }
.money-input { position: relative }
.money-input .input { padding-right: 52px; font-size: 20px; font-weight: 700; letter-spacing: -.02em; font-variant-numeric: tabular-nums }
.money-input::after { content: "₽"; position: absolute; right: 24px; top: 50%; transform: translateY(-50%); font-size: 18px; font-weight: 700; color: var(--ink-2) }
input[type=number]::-webkit-inner-spin-button { -webkit-appearance: none }
input[type=number] { -moz-appearance: textfield }

/* ползунок: заливка до бегунка — переменная --fill из calc-ui.js */
.range-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; margin-bottom: 6px }
.range-head .field-label { margin: 0 }
.range-head output { font-size: 28px; font-weight: 800; letter-spacing: -.04em; line-height: 1; font-variant-numeric: tabular-nums }
input[type=range] {
  --fill: 50%; width: 100%; height: 32px; display: block; background: transparent; cursor: pointer;
  -webkit-appearance: none; appearance: none; touch-action: pan-y;
}
input[type=range]::-webkit-slider-runnable-track { height: 4px; border-radius: 99px; background: linear-gradient(90deg,var(--ink) var(--fill),var(--panel-2) var(--fill)) }
input[type=range]::-moz-range-track { height: 4px; border-radius: 99px; background: var(--panel-2) }
input[type=range]::-moz-range-progress { height: 4px; border-radius: 99px; background: var(--ink) }
input[type=range]::-webkit-slider-thumb {
  -webkit-appearance: none; width: 26px; height: 26px; margin-top: -11px; border-radius: 50%; background: #fff;
  box-shadow: 0 0 0 1px rgba(22,20,15,.14),0 6px 14px rgba(22,20,15,.18); transition: transform .25s var(--ease);
}
input[type=range]::-moz-range-thumb { width: 26px; height: 26px; border: 0; border-radius: 50%; background: #fff; box-shadow: 0 0 0 1px rgba(22,20,15,.14),0 6px 14px rgba(22,20,15,.18) }
input[type=range]:active::-webkit-slider-thumb { transform: scale(1.12) }
input[type=range]:focus-visible { outline: none }
input[type=range]:focus-visible::-webkit-slider-thumb { box-shadow: 0 0 0 3px rgba(93,167,60,.4),0 6px 14px rgba(22,20,15,.18) }
.field-hint { font-size: 12.5px; line-height: 1.5; color: var(--ink-2); margin-top: 8px }

/* выбор одного варианта — пилюли */
.options { display: flex; flex-wrap: wrap; gap: 6px; border: 0 }
.options legend { float: left; width: 100%; margin-bottom: 10px }
.options label { position: relative; cursor: pointer }
.options input { position: absolute; opacity: 0; pointer-events: none }
.options span { display: block; padding: 12px 18px; border-radius: 999px; background: var(--panel-2); font-size: 14px; font-weight: 600; transition: background .25s, color .25s }
.options label:hover span { background: #E3E1DE }
.options input:checked + span { background: var(--ink); color: #FBFBFB }
.options input:focus-visible + span { box-shadow: 0 0 0 2px var(--green) }

/* переключатель «да / нет» */
.switch { position: relative; width: 44px; height: 26px; flex: none; border-radius: 99px; background: #DDDAD6; transition: background .25s }
.switch::after {
  content: ""; position: absolute; left: 3px; top: 3px; width: 20px; height: 20px; border-radius: 50%;
  background: #fff; box-shadow: 0 2px 5px rgba(22,20,15,.22); transition: transform .3s var(--ease);
}
input:checked + .switch { background: var(--green) }
input:checked + .switch::after { transform: translateX(18px) }
input:focus-visible + .switch { box-shadow: 0 0 0 2px rgba(93,167,60,.45) }
.toggle { display: flex; align-items: center; justify-content: space-between; gap: 18px; cursor: pointer }
.toggle input { position: absolute; opacity: 0; pointer-events: none }
.toggle .switch { order: 2 }
.toggle b { display: block; font-size: 15px; font-weight: 600; line-height: 1.35; letter-spacing: -.005em }
.toggle em { display: block; font-style: normal; font-size: 12.5px; line-height: 1.45; color: var(--ink-2); margin-top: 3px }
.toggle-list { display: grid; border: 0 }
.toggle-list .toggle { padding: 15px 0; border-top: 1px solid var(--line) }
.toggle-list .toggle:first-of-type { border-top: 0; padding-top: 0 }
.purchases { margin-top: 18px }

.budget-warning { margin-top: 12px; padding: 13px 16px; border-radius: 14px; background: rgba(214,86,66,.09); color: #A63A29; font-size: 13.5px; line-height: 1.45 }
.budget-warning b { display: block; color: var(--err); font-weight: 800 }
.disclaimer { font-size: 12.5px; line-height: 1.5; color: var(--ink-2); margin-top: 18px; max-width: 720px }

/* ---------- результат ---------- */
.result {
  position: sticky; top: 96px; scroll-margin-top: 90px; overflow: hidden;
  background: var(--dark); color: #FBFBFB; border-radius: 24px; padding: clamp(24px,2.2vw,34px);
}
.result__label { font-size: 11.5px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: rgba(255,255,255,.45) }
.result__main { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-top: 14px }
.result__main-value { font-size: clamp(46px,4.4vw,72px); font-weight: 800; letter-spacing: -.05em; line-height: .92; color: var(--green); font-variant-numeric: tabular-nums; white-space: nowrap }
.result__main p { font-size: 13px; line-height: 1.45; color: rgba(255,255,255,.55); max-width: 190px; text-align: right }
.result__figures { display: grid; grid-template-columns: repeat(3,1fr); margin-top: 26px; border-top: 1px solid var(--line-d) }
.result__figures div { padding: 16px 14px 0 0 }
.result__figures div + div { padding-left: 16px; border-left: 1px solid var(--line-d) }
.result__figures b { display: block; font-size: clamp(19px,1.6vw,24px); font-weight: 800; letter-spacing: -.03em; font-variant-numeric: tabular-nums; white-space: nowrap }
.result__figures span { display: block; margin-top: 4px; font-size: 12px; line-height: 1.4; color: rgba(255,255,255,.5) }

.scale { margin-top: 28px }
.scale__head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; font-size: 13px; color: rgba(255,255,255,.62) }
.scale__head b { color: #FBFBFB; font-weight: 700; font-variant-numeric: tabular-nums }
.scale__axis { position: relative; height: 34px; margin-top: 12px }
.scale__axis::before { content: ""; position: absolute; left: 0; right: 0; top: 15px; height: 4px; border-radius: 99px; background: rgba(255,255,255,.08) }
.scale__band { position: absolute; top: 15px; height: 4px; border-radius: 99px; background: rgba(255,255,255,.34); transition: left .6s var(--ease), width .6s var(--ease) }
.scale__marker { position: absolute; top: 0; transform: translateX(-50%); display: flex; flex-direction: column; align-items: center; transition: left .6s var(--ease) }
.scale__marker::before { content: ""; width: 14px; height: 14px; margin-top: 10px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 4px var(--dark) }
.scale__marker span { margin-top: 4px; font-size: 10.5px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--green); white-space: nowrap }
.scale__ticks { display: flex; justify-content: space-between; margin-top: 8px; font-size: 11.5px; color: rgba(255,255,255,.4); font-variant-numeric: tabular-nums }

.notice { margin-top: 24px; padding: 18px 20px; border-radius: 16px; background: rgba(255,255,255,.05) }
.notice b { display: flex; align-items: center; gap: 10px; font-size: 15.5px; font-weight: 700; letter-spacing: -.01em }
.notice b::before { content: ""; width: 8px; height: 8px; border-radius: 50%; flex: none; background: rgba(255,255,255,.55) }
.notice.is-ok b::before { background: var(--green) }
.notice p { margin-top: 8px; font-size: 13.5px; line-height: 1.55; color: rgba(255,255,255,.66) }
.notice a { display: inline-block; margin-top: 10px; font-size: 13px; font-weight: 700; color: var(--green); border-bottom: 1px solid rgba(93,167,60,.4) }
.notice--alarm { background: rgba(214,86,66,.14); border: 1px solid rgba(214,86,66,.55) }
.notice--alarm b { font-weight: 800; color: var(--err-light) }
.notice--alarm b::before { content: "!"; display: grid; place-items: center; width: 20px; height: 20px; background: var(--err); color: #fff; font-size: 12px }
.notice--alarm p { color: rgba(255,255,255,.78) }
.notice--alarm a { color: var(--err-light); border-bottom-color: rgba(255,138,120,.45) }

.channel { display: grid; grid-template-columns: 96px 1fr; gap: 18px; align-items: center; margin-top: 24px; padding-top: 24px; border-top: 1px solid var(--line-d) }
.channel__img { width: 96px; height: 96px; display: grid; place-items: center }
.channel__img img { max-height: 96px; width: auto; object-fit: contain; transition: opacity .35s, transform .5s var(--ease) }
.channel__img img.is-swapping { opacity: 0; transform: scale(.9) rotate(-4deg) }
.channel__img img.is-dim { opacity: .25 }
.channel .result__label { display: block }
.channel h3 { font-size: clamp(24px,2vw,32px); letter-spacing: -.035em; margin-top: 6px }
.channel p { font-size: 13.5px; line-height: 1.55; color: rgba(255,255,255,.62); margin-top: 8px }
.channel__tip { grid-column: 1 / -1; padding: 14px 16px; border-radius: 14px; background: rgba(255,255,255,.04); font-size: 13.5px; line-height: 1.55; color: rgba(255,255,255,.78) }
.channel__tip:empty { display: none }
.channel-next { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--line-d) }
.channel-next b { font-size: 16px; font-weight: 700; white-space: nowrap }
.channel-next span { font-size: 12.5px; line-height: 1.45; color: rgba(255,255,255,.5); text-align: right; max-width: 280px }
.checklist { margin-top: 24px; padding-top: 22px; border-top: 1px solid var(--line-d) }
.checklist ul { list-style: none; display: grid; gap: 10px; margin-top: 12px }
.checklist li { position: relative; padding-left: 28px; font-size: 13.5px; line-height: 1.5; color: rgba(255,255,255,.78) }
.checklist li::before { content: ""; position: absolute; left: 0; top: 2px; width: 18px; height: 18px; border-radius: 50%; background: rgba(93,167,60,.16) }
.checklist li::after {
  content: ""; position: absolute; left: 4px; top: 6px; width: 10px; height: 10px; background: var(--green);
  -webkit-mask: var(--icon-check) no-repeat center/contain; mask: var(--icon-check) no-repeat center/contain;
}
.tick { animation: tick .5s var(--ease) }

.result-bar { display: none }

/* ---------- вопрос перед разбором ---------- */
.question { text-align: center; padding-block: clamp(40px,5vw,80px) }
.question h2 { max-width: 16ch; margin: 0 auto; font-size: clamp(34px,5vw,84px) }
.question .lead { max-width: 520px; margin: 24px auto 0 }

/* ---------- бесплатный разбор (как на главной) ---------- */
.review { display: grid; grid-template-columns: .72fr 1.28fr; gap: clamp(24px,3vw,52px); align-items: stretch }
.review__photo { position: relative; min-height: clamp(460px,44vw,700px); border-radius: var(--r-card); overflow: hidden; background: var(--dark-2) }
.review__photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center top }
.review__quote { position: absolute; left: 0; right: 0; bottom: 0; padding: 30px 26px 24px; background: linear-gradient(180deg,rgba(10,10,10,0),rgba(10,10,10,.86) 48%,rgba(10,10,10,.97)) }
.review__quote p { font-size: 18px; font-weight: 700; line-height: 1.3; letter-spacing: -.02em; color: #FBFBFB }
.review__quote b { display: block; margin-top: 16px; font-size: 14.5px; font-weight: 700; color: #FBFBFB }
.review__quote span { display: block; margin-top: 3px; font-size: 12.5px; color: rgba(255,255,255,.55) }
.review__body { display: flex; flex-direction: column; justify-content: flex-end; min-width: 0 }
.review__body h2 { letter-spacing: -.045em; line-height: .94 }
.review__body .lead { color: rgba(251,251,251,.62); margin: 22px 0 26px; max-width: 66ch }
.chips { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 32px; list-style: none }
.chips li { font-size: 13.5px; padding: 8px 16px; color: rgba(251,251,251,.72); border: 1px solid var(--line-d); border-radius: 999px; white-space: nowrap }
.lead-form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px }
.lead-form input[type=text], .lead-form input[type=tel] {
  width: 100%; border: 0; border-radius: 999px; padding: 18px 24px; background: #FBFBFB; font-size: 16px; color: var(--ink);
}
.lead-form input::placeholder { color: #9C9A95 }
.lead-form input:focus { outline: none; box-shadow: 0 0 0 2px var(--green) }
.lead-form .is-invalid { box-shadow: 0 0 0 2px #FF7A6A }
.lead-form .btn { margin-top: 4px }
.consent { display: flex; align-items: flex-start; gap: 10px; margin: 14px 0 16px; font-size: 11.5px; line-height: 1.4; color: rgba(251,251,251,.6); cursor: pointer }
.consent a { border-bottom: 1px solid rgba(251,251,251,.3) }
.consent input {
  position: relative; flex: none; width: 16px; height: 16px; margin-top: 1px; border-radius: 5px; cursor: pointer;
  border: 1px solid rgba(255,255,255,.35); background: transparent; appearance: none; -webkit-appearance: none;
}
.consent input:checked { background: var(--green); border-color: var(--green) }
.consent input:checked::after {
  content: ""; position: absolute; left: 5px; top: 1.5px; width: 4px; height: 8px;
  border: solid #fff; border-width: 0 2px 2px 0; transform: rotate(45deg);
}
.consent.is-invalid input { border-color: #FF7A6A }
.lead-success { padding: 18px 0 4px }
.lead-success b { display: block; font-size: 19px; margin-bottom: 6px }
.lead-success p { font-size: 14px; color: rgba(255,255,255,.6) }

/* ---------- подвал (как на главной) ---------- */
.footer { background: #F4F3F1; color: var(--ink); margin-bottom: 0 }
.footer__grid { display: grid; grid-template-columns: 1.35fr 1fr; gap: clamp(24px,3vw,48px); align-items: start }
.footer__logo { height: 44px; width: auto; margin-bottom: 22px; filter: brightness(0) }
.footer__about { font-size: 14px; line-height: 1.55; color: var(--ink-2); max-width: 330px }
.footer__vk { display: grid; place-items: center; width: 40px; height: 40px; margin-top: 22px; border-radius: 11px; background: rgba(22,20,15,.06); color: var(--ink); transition: .25s }
.footer__vk:hover { background: var(--green); color: #fff }
.footer__vk svg { width: 20px; height: 20px }
.footer__caption { margin-bottom: 18px; font-size: 11.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-2) }
.footer__contacts { list-style: none; display: flex; flex-direction: column; gap: 13px; font-size: 14px; color: var(--ink); font-style: normal }
.footer__contacts a { border-bottom: 1px solid rgba(22,20,15,.28); padding-bottom: 1px }
.footer__contacts a:hover { color: var(--green); border-color: var(--green) }

/* ---------- cookie (как на главной) ---------- */
.cookie {
  position: fixed; left: 24px; bottom: 24px; z-index: 150; display: flex; align-items: center; gap: 22px;
  width: min(790px,calc(100vw - 48px)); padding: 20px 24px; border-radius: 24px; background: var(--panel);
  box-shadow: 0 34px 60px -30px rgba(22,20,15,.42), inset 0 0 0 1px var(--line);
  transform: translateY(calc(100% + 48px)); transition: transform .8s var(--ease);
}
.cookie.is-shown { transform: none }
.cookie__icon { position: absolute; left: -18px; top: -18px; width: 54px; height: 54px; flex: none; filter: drop-shadow(0 12px 20px rgba(22,20,15,.2)) }
.cookie p { flex: 1; min-width: 0; font-size: 12.5px; line-height: 1.55; color: var(--ink-2) }
.cookie a { color: var(--ink); border-bottom: 1px solid rgba(22,20,15,.28) }
.cookie a:hover { color: var(--green); border-bottom-color: rgba(93,167,60,.5) }
.cookie__buttons { display: flex; align-items: center; gap: 16px; flex: none }
.cookie__decline { border: 0; background: none; padding: 0; font: inherit; font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-2); cursor: pointer; transition: color .25s }
.cookie__decline:hover { color: var(--ink) }

/* ---------- движение ---------- */
.reveal { opacity: 0; transform: translateY(18px) scale(.985); filter: blur(6px); transition: opacity .7s var(--ease), transform .8s var(--ease), filter .7s var(--ease) }
.reveal.is-in { opacity: 1; transform: none; filter: none }
@keyframes draw-line { to { transform: scaleX(1) } }
@keyframes device-in { from { opacity: 0; transform: translateY(24px) scale(.96) } }
@keyframes float { 50% { translate: 0 -10px } }
@keyframes rise-in { from { opacity: 0; transform: translateY(40%) } }
@keyframes blink { 50% { opacity: 0 } }
@keyframes tick { 0% { opacity: .35; transform: translateY(4px) } 100% { opacity: 1; transform: none } }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto }
  .reveal { opacity: 1; transform: none; filter: none; transition: none }
  .underline::after { animation: none; transform: none }
  .tick, .hero-device, .hero-device__tilt, .hero-screen__cursor { animation: none }
  .cookie { transition: none }
}

/* ---------- адаптив: планшет ---------- */
@media (max-width: 1100px) {
  .calc { grid-template-columns: 1fr }
  .result { position: relative; top: auto }
  .hero__grid { grid-template-columns: 1fr clamp(300px,40vw,460px) }
}
@media (max-width: 900px) {
  .review { grid-template-columns: 1fr }
  .review__photo { min-height: 340px }
  .lead-form__row { grid-template-columns: 1fr }
  .footer__grid { grid-template-columns: 1fr }
  .cookie { left: 10px; right: 10px; bottom: 10px; width: auto; flex-wrap: wrap; gap: 14px; padding: 20px 18px 18px; border-radius: 20px }
  .cookie__icon { left: -12px; top: -14px; width: 44px; height: 44px }
  .cookie p { flex: 1 1 100%; font-size: 12px }
  .cookie__buttons { width: 100%; justify-content: space-between }
}
@media (max-width: 860px) {
  .nav__title { display: none }
  .hero__grid { grid-template-columns: 1fr; row-gap: 8px }
  .hero-device { max-width: 440px; margin: 0 auto; order: -1 }
  .hero { min-height: 0 }
  .step { grid-template-columns: 1fr; gap: 18px }
  .step__hint { max-width: none }
}

/* ---------- адаптив: телефон — основной сценарий ---------- */
@media (max-width: 600px) {
  body { padding: 0 8px calc(8px + env(safe-area-inset-bottom)) }
  h2 { font-size: clamp(28px,8.4vw,36px); line-height: 1 }
  .nav { top: 8px; margin: 8px 0; padding: 8px 8px 8px 18px; gap: 10px }
  .nav__logo img { height: 24px }
  .nav__tel { display: none }
  .nav .btn { margin-left: auto; padding: 10px 16px; font-size: 11px }
  .panel { border-radius: 24px; padding: 26px 18px; margin-bottom: 8px }

  .hero { padding-block: 6px 24px }
  .hero-device { width: 86%; max-width: 340px; margin: -4px auto -10px }
  .hero__eyebrow { margin-bottom: 14px; font-size: 10.5px }
  .hero h1 { font-size: clamp(34px,10.6vw,46px); letter-spacing: -.05em; line-height: .95 }
  .hero .lead { margin-top: 20px; padding-top: 18px; font-size: 15px; line-height: 1.5 }
  .hero__actions { margin-top: 22px; gap: 10px }
  .hero__actions .btn { width: 100%; justify-content: center; padding: 17px 22px }
  .hero__actions small { max-width: none; width: 100%; text-align: center }

  #calc.panel { padding: 26px 8px 18px }
  .section-head { padding: 0 10px; margin-bottom: 22px; gap: 14px }
  .section-head .lead { font-size: 14.5px }
  .calc-sheet { border-radius: 20px; padding: 0 18px }
  .step { padding: 24px 0 26px }
  .step__title { font-size: 22px; margin-top: 6px }
  .two-cols { grid-template-columns: 1fr }
  .step__fields { gap: 22px }
  .range-head output { font-size: 24px }
  .options label { flex: 1 1 auto }
  .options span { text-align: center; padding: 12px 14px; font-size: 13.5px }
  .toggle-list .toggle { padding: 14px 0 }
  .disclaimer { padding: 0 10px }

  .result { border-radius: 20px; padding: 24px 18px; margin-top: 4px }
  .result__main { flex-direction: column; align-items: flex-start; gap: 6px }
  .result__main-value { font-size: clamp(46px,15vw,60px) }
  .result__main p { text-align: left; max-width: none }
  .result__figures { grid-template-columns: 1fr; margin-top: 20px }
  .result__figures div, .result__figures div + div { display: flex; justify-content: space-between; align-items: baseline; gap: 14px; padding: 13px 0; border-left: 0; border-bottom: 1px solid var(--line-d) }
  .result__figures span { margin: 0; text-align: right; max-width: 58% }
  .channel { grid-template-columns: 64px 1fr; gap: 14px }
  .channel__img { width: 64px; height: 64px }
  .channel__img img { max-height: 64px }
  .channel-next { flex-direction: column; gap: 4px }
  .channel-next span { text-align: left }

  .question h2 { font-size: clamp(30px,9vw,40px); line-height: 1 }
  .question .lead { font-size: 15px; margin-top: 16px }

  .review { gap: 12px }
  .review__photo { display: flex; align-items: center; gap: 14px; min-height: 0; padding: 16px }
  .review__photo img { position: static; flex: none; width: 84px; height: 84px; border-radius: 50%; object-fit: cover; object-position: center 15% }
  .review__quote { position: static; padding: 0; background: none }
  .review__quote p { font-size: 15px }
  .review__quote b { margin-top: 8px }
  .chips { display: none }
  .review__body .lead { margin: 16px 0 18px; font-size: 15px }
  .lead-form .btn { width: 100%; justify-content: center; padding: 17px 20px }

  /* плашка итога внизу экрана, пока человек заполняет форму */
  .result-bar {
    position: fixed; left: 8px; right: 8px; bottom: calc(8px + env(safe-area-inset-bottom)); z-index: 120;
    display: flex; align-items: center; gap: 12px; padding: 10px 10px 10px 18px; border-radius: 999px;
    background: var(--dark); color: #FBFBFB; box-shadow: 0 18px 40px -12px rgba(0,0,0,.55);
    transform: translateY(140%); transition: transform .5s var(--ease);
  }
  .result-bar.is-shown { transform: none }
  .result-bar__text { display: flex; flex-direction: column; min-width: 0; flex: 1 }
  .result-bar__label { font-size: 10px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: rgba(255,255,255,.45) }
  .result-bar__value { display: flex; align-items: baseline; gap: 8px; white-space: nowrap; overflow: hidden }
  .result-bar__value b { font-size: 20px; font-weight: 800; letter-spacing: -.03em; color: var(--green); font-variant-numeric: tabular-nums }
  .result-bar__value span { font-size: 13px; font-weight: 600; color: rgba(255,255,255,.75); overflow: hidden; text-overflow: ellipsis }
  .result-bar.is-warning .result-bar__value b { color: var(--err-light) }
  .result-bar__go { flex: none; display: grid; place-items: center; height: 44px; padding: 0 18px; border-radius: 999px; background: var(--green); color: #fff; font-size: 11.5px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase }
}
@media (max-width: 370px) {
  .hero h1 { font-size: 32px }
  .options span { font-size: 13px; padding: 11px 12px }
  .result-bar__value span { display: none }
}
