/* ==========================================================
   Склад Лизинг / стили
   Палитра по брендбуку (5): основной / акцентный / дополнительный / фоновый / белый
   ========================================================== */

:root {
  --bg: #F8F9FA;
  --ink: #0F2D4A;
  --accent: #D05A41;
  --gray: #9AA3AF;
  --white: #FFFFFF;
  /* вторичный текст: основной цвет с прозрачностью, #9AA3AF для мелкого текста слишком светлый */
  --muted: rgba(15, 45, 74, 0.68);

  --font-head: 'Roboto Mono', 'Courier New', monospace;
  --font-text: 'Golos Text', Arial, sans-serif;
  --font-num: var(--font-head);

  --container: 1520px;
  --gutter: 32px;
  --section: 120px;
  --gap: 16px;
  --gap-top: 30px;
  --radius: 12px;
  --radius-sm: 6px;

  --ease-ui: cubic-bezier(0.215, 0.61, 0.355, 1);
  --ease-reveal: cubic-bezier(0.16, 1, 0.3, 1);
  --t-fast: 0.3s;
  --t-mid: 0.5s;
  --t-slow: 0.6s;

  --line: rgba(15, 45, 74, 0.1);
  --glass-bg: rgba(255, 255, 255, 0.55);
  --glass-border: rgba(255, 255, 255, 0.7);
  --glass-shadow: 0 10px 40px rgba(15, 45, 74, 0.08);
}

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

html { scroll-behavior: smooth; scroll-padding-top: 96px; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-text);
  font-size: 15px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button, input, select { font: inherit; color: inherit; }

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

.section { padding-block: var(--section); }

/* ---------- Типографика ---------- */

h1, h2, h3 { margin: 0; font-family: var(--font-head); font-weight: 700; letter-spacing: -0.02em; }

.h1 { font-size: 60px; line-height: 1.06; }
.h2 { font-size: 44px; line-height: 1.1; max-width: 14em; }
.h3 { font-size: 19px; line-height: 1.3; font-weight: 600; letter-spacing: -0.01em; }

.caption {
  font-family: var(--font-head);
  font-size: 11px;
  line-height: 1.4;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--muted);
}

.lead { font-size: 18px; line-height: 1.55; color: var(--muted); max-width: 34em; }
.muted { color: var(--muted); }

/* Акцентный элемент из брендбука: квадрат перед надписью */
.mark::before {
  content: '';
  display: inline-block;
  width: 8px; height: 8px;
  margin-right: 12px;
  background: var(--accent);
  vertical-align: 1px;
}

/* Модульный паттерн из брендбука */
.pattern {
  position: absolute;
  pointer-events: none;
  background-image: url("../img/pattern.svg");
  background-size: 240px 240px;
}

.section-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: var(--gap-top);
  margin-bottom: 56px;
  flex-wrap: wrap;
}
.section-head .caption { margin-bottom: 20px; }
.section-head .lead { margin: 0; max-width: 28em; }

/* ---------- Стекло ---------- */

.glass {
  background: var(--glass-bg);
  -webkit-backdrop-filter: blur(20px) saturate(140%);
  backdrop-filter: blur(20px) saturate(140%);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  box-shadow: var(--glass-shadow);
}

.glass--dark {
  background: rgba(15, 45, 74, 0.35);
  border-color: rgba(255, 255, 255, 0.18);
  color: var(--white);
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  height: 56px;
  padding-inline: 28px;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  font-family: var(--font-head);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: background-color var(--t-fast) var(--ease-ui),
              color var(--t-fast) var(--ease-ui),
              border-color var(--t-fast) var(--ease-ui),
              transform var(--t-fast) var(--ease-ui);
}
.btn:active { transform: scale(0.98); }

.btn--accent { background: var(--accent); color: var(--white); }
.btn--accent:hover { background: var(--ink); color: var(--white); }

.btn--ghost { border-color: rgba(255, 255, 255, 0.5); color: var(--white); }
.btn--ghost:hover { background: var(--white); color: var(--ink); }

.btn--dark { background: var(--ink); color: var(--white); }
.btn--dark:hover { background: var(--accent); color: var(--white); }

.btn--sm { height: 44px; padding-inline: 20px; font-size: 14px; }

.arrow { transition: transform var(--t-fast) var(--ease-ui); }
a:hover .arrow, button:hover .arrow { transform: translateX(4px); }

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

.header {
  position: fixed;
  top: 16px;
  left: 0;
  right: 0;
  z-index: 100;
}
.header__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  height: 68px;
  padding-inline: 12px 12px;
  padding-left: 24px;
  border-radius: var(--radius);
  transition: background-color var(--t-mid) var(--ease-ui), color var(--t-mid) var(--ease-ui);
}
/* над тёмными кадрами шапка светлеет текстом */
.header.is-dark .header__bar {
  background: rgba(15, 45, 74, 0.25);
  border-color: rgba(255, 255, 255, 0.22);
  color: var(--white);
}

/* Логотип: логознак + название в две строки. Тёмные модули берут цвет текста */
.logo { display: inline-flex; align-items: center; gap: 12px; font-family: var(--font-head); }
.logo__mark { width: 30px; height: 34px; flex: none; color: inherit; }
.logo__name { font-weight: 700; font-size: 15px; line-height: 0.98; letter-spacing: 0.01em; text-transform: uppercase; }
.logo__tag { display: block; margin-top: 10px; font-size: 9px; font-weight: 600; line-height: 1.5; letter-spacing: 0.18em; text-transform: uppercase; color: var(--muted); }
.logo--lg .logo__mark { width: 52px; height: 60px; }
.logo--lg { gap: 18px; }
.logo--lg .logo__name { font-size: 26px; }

.nav { display: flex; gap: 32px; font-size: 14px; font-weight: 500; }
.nav a { opacity: 0.8; transition: opacity var(--t-fast) var(--ease-ui); }
.nav a:hover { opacity: 1; }

.header__right { display: flex; align-items: center; gap: 20px; }
.header__phone { font-weight: 600; font-size: 14px; }

.burger { display: none; width: 44px; height: 44px; border-radius: var(--radius-sm); border: 0; background: var(--accent); cursor: pointer; position: relative; }
.burger span, .burger span::before, .burger span::after { position: absolute; left: 13px; right: 13px; height: 2px; background: var(--white); content: ''; transition: transform var(--t-fast) var(--ease-ui); }
.burger span { top: 21px; }
.burger span::before { left: 0; right: 0; top: -6px; }
.burger span::after { left: 0; right: 0; top: 6px; }

/* ---------- Hero: кадр на весь экран ---------- */

.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  color: var(--white);
  background: var(--ink);
  overflow: hidden;
}
.frame {
  position: absolute; inset: 0;
  background-color: var(--ink);
  background-size: cover;
  background-position: center;
}
.hero .frame { background-position: 65% center; }
.hero::before {
  content: ''; position: absolute; inset: 0; z-index: 1;
  background:
    linear-gradient(90deg, rgba(15, 45, 74, 0.88) 0%, rgba(15, 45, 74, 0.6) 38%, rgba(15, 45, 74, 0.05) 70%),
    linear-gradient(0deg, rgba(15, 45, 74, 0.7) 0%, rgba(15, 45, 74, 0) 40%);
}
.hero__inner { position: relative; z-index: 2; padding-top: 160px; padding-bottom: 48px; }
.hero__text { max-width: min(45vw, 700px); }
.hero__text .caption { color: rgba(255, 255, 255, 0.7); margin-bottom: 28px; }
.hero__text .lead { color: rgba(255, 255, 255, 0.78); margin: 28px 0 40px; }
.hero__actions { display: flex; gap: 12px; flex-wrap: wrap; }

.hero__plates {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--gap-top);
  margin-top: 72px;
}
.plate { padding: 24px 28px; }
.plate__num { font-family: var(--font-num); font-weight: 600; font-size: 36px; line-height: 1.1; letter-spacing: -0.02em; }
.plate .caption { color: rgba(255, 255, 255, 0.7); margin-top: 10px; }

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

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

.card {
  background: var(--white);
  border-radius: var(--radius);
  border: 1px solid var(--line);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform var(--t-mid) var(--ease-ui), box-shadow var(--t-mid) var(--ease-ui);
}
.card:hover { transform: translateY(-4px); box-shadow: 0 20px 50px rgba(15, 45, 74, 0.1); }

.card__media { aspect-ratio: 4 / 3; position: relative; overflow: hidden; background: var(--ink); }
.card__media .frame { transition: transform var(--t-slow) var(--ease-ui); }
.card:hover .card__media .frame { transform: scale(1.04); }
.card__tag { position: absolute; left: 16px; top: 16px; z-index: 1; padding: 7px 10px; border-radius: 4px; color: var(--white); }
.card__tag.caption { color: var(--white); }

.card__body { padding: 28px; display: flex; flex-direction: column; gap: 12px; flex: 1; }
.card__body p { margin: 0; color: var(--muted); }
.card__foot {
  margin-top: auto; padding-top: 20px;
  display: flex; justify-content: space-between; align-items: center;
  border-top: 1px solid var(--line);
}
.card__link { font-family: var(--font-head); font-weight: 600; font-size: 14px; display: inline-flex; gap: 8px; align-items: center; background: none; border: 0; padding: 0; cursor: pointer; }
.card__link:hover { color: var(--ink); }
.card__link .dot { width: 28px; height: 28px; border-radius: 4px; background: var(--accent); color: var(--white); display: grid; place-items: center; transition: transform var(--t-fast) var(--ease-ui); }
.card__link:hover .dot { transform: translateX(4px); }

/* ---------- Цифры как герой ---------- */

.terms { border-top: 1px solid var(--line); }
.terms__row { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0 var(--gap-top); }
.term {
  padding: 48px 0 56px;
  border-bottom: 1px solid var(--line);
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}
.term__num {
  font-family: var(--font-num);
  font-weight: 300;
  font-size: 162px;
  line-height: 0.9;
  letter-spacing: -0.06em;
  white-space: nowrap;
}
.term__num small { line-height: 0; font-size: 0.32em; letter-spacing: -0.01em; font-weight: 600; margin-left: 0.2em; }
.term__num .acc { color: var(--accent); }
.term__meta { display: flex; justify-content: space-between; gap: 24px; align-items: baseline; flex-wrap: wrap; }
.term__meta p { margin: 0; color: var(--muted); max-width: 26em; }

/* ---------- Шаги ---------- */

.step { padding: 32px; min-height: 280px; display: flex; flex-direction: column; background: var(--white); border-radius: var(--radius); border: 1px solid var(--line); }
.step__num { font-family: var(--font-num); font-weight: 300; font-size: 40px; line-height: 1; letter-spacing: -0.03em; }
.step__num span { color: var(--accent); }
.step h3 { margin-top: auto; margin-bottom: 10px; }
.step p { margin: 0; color: var(--muted); min-height: 6.4em; }

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

.calc-wrap {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  padding: 72px;
  background: var(--ink);
}
.calc-wrap .frame { opacity: 0.45; }
.calc-wrap::before {
  content: ''; position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(120deg, rgba(15, 45, 74, 0.85) 0%, rgba(15, 45, 74, 0.3) 100%);
}
.calc {
  position: relative; z-index: 2;
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: var(--gap-top);
}
.calc__form.glass { background: rgba(255, 255, 255, 0.86); }
.calc__form { padding: 40px; display: flex; flex-direction: column; gap: 28px; }
.calc__pair { display: grid; grid-template-columns: 1fr 1fr; gap: var(--gap-top); }
.calc__result { padding: 40px; display: flex; flex-direction: column; }

.field { display: flex; flex-direction: column; gap: 14px; }
.field__top { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; }
.field__top .caption { color: var(--muted); }
.field__value { white-space: nowrap; font-family: var(--font-num); font-size: 22px; font-weight: 600; letter-spacing: -0.02em; }

.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  height: 40px; padding-inline: 16px; border-radius: var(--radius-sm);
  border: 1px solid var(--line); background: rgba(255, 255, 255, 0.6);
  font-size: 14px; font-weight: 500; cursor: pointer;
  transition: background-color var(--t-fast) var(--ease-ui), border-color var(--t-fast) var(--ease-ui);
}
.chip:hover { border-color: var(--ink); }
.chip.is-active { background: var(--ink); border-color: var(--ink); color: var(--white); }

input[type=range] {
  -webkit-appearance: none; appearance: none;
  width: 100%; height: 4px; border-radius: 4px; outline: none; cursor: pointer;
  background: linear-gradient(90deg, var(--accent) 0 var(--p, 50%), rgba(15, 45, 74, 0.12) var(--p, 50%) 100%);
}
input[type=range]::-webkit-slider-thumb {
  -webkit-appearance: none; appearance: none;
  width: 22px; height: 22px; border-radius: 4px;
  background: var(--white); border: 6px solid var(--ink);
  transition: transform var(--t-fast) var(--ease-ui);
}
input[type=range]::-webkit-slider-thumb:hover { transform: scale(1.15); }
input[type=range]::-moz-range-thumb { width: 12px; height: 12px; border-radius: 4px; background: var(--white); border: 6px solid var(--ink); }
.range-scale { display: flex; justify-content: space-between; font-size: 12px; color: var(--muted); }
.chip { font-family: var(--font-head); font-size: 13px; }

.calc__result .caption { color: rgba(255, 255, 255, 0.7); }
.calc__pay { font-family: var(--font-num); font-weight: 600; font-size: 40px; line-height: 1.1; letter-spacing: -0.03em; margin: 12px 0 8px; }
.calc__rows { margin: 32px 0; display: flex; flex-direction: column; }
.calc__rows div { display: flex; justify-content: space-between; gap: 16px; padding: 14px 0; border-bottom: 1px solid rgba(255, 255, 255, 0.14); font-size: 14px; }
.calc__rows div[hidden] { display: none; }
.calc__rows dt { color: rgba(255, 255, 255, 0.7); }
.calc__rows dd { margin: 0; font-weight: 600; }
.calc__note { font-size: 12px; color: rgba(255, 255, 255, 0.6); margin: 16px 0 0; }
.calc__result .btn { margin-top: auto; }

/* ---------- Лизинг или кредит ---------- */

.benefit { position: relative; overflow: hidden; padding: 36px; background: var(--white); border-radius: var(--radius); border: 1px solid var(--line); display: flex; flex-direction: column; gap: 14px; }
.benefit__num { font-family: var(--font-num); font-weight: 300; font-size: 34px; letter-spacing: -0.03em; line-height: 1; }
.benefit p { margin: 0; color: var(--muted); }
/* логознак в углу карточки: серые модули и акцентный, как на бланке из брендбука */
.benefit__deco { position: absolute; right: -18px; bottom: -34px; width: 110px; height: 126px; color: rgba(154, 163, 175, 0.28); }
.benefit h3, .benefit p { position: relative; max-width: 80%; }

/* ---------- Апгрейд и сервис ---------- */

.upgrade {
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--gap-top);
  align-items: end;
  padding: 64px;
  border-radius: var(--radius);
  background: var(--ink);
  color: var(--white);
}
.upgrade .pattern {
  top: 0; right: 0; width: 50%; height: 120px; background-position: right top;
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 80%);
  mask-image: linear-gradient(90deg, transparent 0%, #000 80%);
}
.upgrade__text { position: relative; }
.upgrade__text .caption { color: rgba(255, 255, 255, 0.6); margin: 0 0 20px; }
.upgrade__title { font-size: 36px; line-height: 1.15; max-width: 16em; }
.upgrade__text p:last-child { margin: 20px 0 0; color: rgba(255, 255, 255, 0.75); max-width: 34em; }

.upgrade__steps { position: relative; list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--gap); }
.upgrade__steps li {
  display: flex; flex-direction: column; gap: 6px;
  padding: 24px 20px; border-radius: var(--radius-sm);
  border: 1px solid rgba(255, 255, 255, 0.16); background: rgba(255, 255, 255, 0.05);
  font-size: 14px; line-height: 1.45; color: rgba(255, 255, 255, 0.7);
}
.upgrade__steps b { font-family: var(--font-head); font-size: 15px; font-weight: 600; color: var(--white); }
.upgrade__num { font-family: var(--font-num); font-weight: 300; font-size: 36px; line-height: 1; color: var(--accent); margin-bottom: 18px; }

.service-grid { margin-top: var(--gap); }
.benefit .caption { position: relative; }

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

.faq { display: grid; grid-template-columns: 1fr 1.6fr; gap: var(--gap-top); align-items: start; }
.faq__aside { position: sticky; top: 120px; }
.faq__aside .lead { margin: 24px 0 32px; }
.faq__list { border-top: 1px solid var(--line); }
.qa { border-bottom: 1px solid var(--line); }
.qa__q {
  width: 100%; background: none; border: 0; cursor: pointer; text-align: left;
  display: flex; justify-content: space-between; align-items: center; gap: 24px;
  padding: 28px 0; font-family: var(--font-head); font-size: 19px; font-weight: 600; letter-spacing: -0.01em;
}
.qa__icon {
  flex: none; width: 36px; height: 36px; border-radius: var(--radius-sm); border: 1px solid var(--line);
  position: relative; transition: background-color var(--t-fast) var(--ease-ui), transform var(--t-mid) var(--ease-ui);
}
.qa__icon::before, .qa__icon::after { content: ''; position: absolute; left: 50%; top: 50%; width: 12px; height: 2px; background: var(--ink); transform: translate(-50%, -50%); }
.qa__icon::after { transform: translate(-50%, -50%) rotate(90deg); transition: transform var(--t-mid) var(--ease-ui); }
.qa.is-open .qa__icon { background: var(--accent); border-color: var(--accent); }
.qa.is-open .qa__icon::before, .qa.is-open .qa__icon::after { background: var(--white); }
.qa.is-open .qa__icon::after { transform: translate(-50%, -50%) rotate(0deg); }
.qa__a { display: grid; grid-template-rows: 0fr; transition: grid-template-rows var(--t-mid) var(--ease-ui); }
.qa.is-open .qa__a { grid-template-rows: 1fr; }
.qa__a > div { overflow: hidden; }
.qa__a p { margin: 0 0 28px; color: var(--muted); max-width: 44em; }

/* ---------- Заявка ---------- */

.lead-block { position: relative; min-height: 100vh; display: flex; align-items: center; color: var(--white); background: var(--ink); overflow: hidden; }
.lead-block::before { content: ''; position: absolute; inset: 0; z-index: 1; background: linear-gradient(90deg, rgba(15, 45, 74, 0.2) 0%, rgba(15, 45, 74, 0.85) 60%); }
.lead-block .frame { background-position: 30% center; }
.lead-block__inner { position: relative; z-index: 2; display: flex; justify-content: flex-end; padding-block: var(--section); }
.form { width: min(560px, 100%); padding: 48px; display: flex; flex-direction: column; gap: 16px; }
.form .caption { color: rgba(255, 255, 255, 0.7); }
.form h2 { font-size: 40px; line-height: 1.1; margin: 8px 0 4px; }
.form > p { margin: 0 0 16px; color: rgba(255, 255, 255, 0.78); }

.input {
  width: 100%; height: 58px; padding-inline: 20px;
  border-radius: 8px; border: 1px solid rgba(255, 255, 255, 0.22);
  background: rgba(255, 255, 255, 0.08); color: var(--white); outline: none;
  transition: border-color var(--t-fast) var(--ease-ui), background-color var(--t-fast) var(--ease-ui);
}
.input::placeholder { color: rgba(255, 255, 255, 0.55); }
.input:focus { border-color: var(--accent); background: rgba(255, 255, 255, 0.14); }
.input.is-error { border-color: var(--accent); }
select.input { -webkit-appearance: none; appearance: none; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='white' stroke-width='1.6' fill='none'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 20px center; }
select.input option { color: var(--ink); }

.select { position: relative; z-index: 5; }
.select__native { position: absolute; inset: 0; opacity: 0; pointer-events: none; }
.select__btn, .select__btn:focus { display: block; text-align: left; cursor: pointer; padding-right: 48px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='white' stroke-width='1.6' fill='none'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 20px center; }
.select__btn.is-placeholder { color: rgba(255, 255, 255, 0.55); }
.select.is-open .select__btn { border-color: var(--accent); background-color: rgba(255, 255, 255, 0.14);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 7l5-5 5 5' stroke='white' stroke-width='1.6' fill='none'/%3E%3C/svg%3E"); }
.select__list {
  position: absolute; z-index: 20; left: 0; right: 0; top: calc(100% + 6px);
  margin: 0; padding: 6px; list-style: none; max-height: 360px; overflow-y: auto;
  border-radius: 8px; border: 1px solid rgba(255, 255, 255, 0.22);
  background: rgba(15, 45, 74, 0.97); -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.3);
  opacity: 0; visibility: hidden; transform: translateY(-6px);
  transition: opacity var(--t-fast) var(--ease-ui), transform var(--t-fast) var(--ease-ui), visibility var(--t-fast);
}
.select.is-open .select__list { opacity: 1; visibility: visible; transform: none; }
.select__opt { padding: 12px 14px; border-radius: 6px; color: rgba(255, 255, 255, 0.85); cursor: pointer;
  transition: background-color var(--t-fast) var(--ease-ui), color var(--t-fast) var(--ease-ui); }
.select__opt.is-active, .select__opt:hover { background: rgba(255, 255, 255, 0.1); color: var(--white); }
.select__opt[aria-selected="true"] { color: var(--accent); }

.check { display: flex; gap: 12px; align-items: flex-start; font-size: 13px; color: rgba(255, 255, 255, 0.7); cursor: pointer; margin: 4px 0 8px; }
.check input { width: 18px; height: 18px; accent-color: var(--accent); margin: 1px 0 0; flex: none; }
.check a { text-decoration: underline; text-underline-offset: 3px; }
.form .btn { width: 100%; }
.form__error { font-size: 13px; color: var(--accent); min-height: 1em; margin: 0; }

.form__done { text-align: left; }
.form__done .plate__num { color: var(--accent); }

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

/* тёмный подвал, как визитка из брендбука */
.footer { position: relative; overflow: hidden; padding-block: 200px 40px; background: var(--ink); color: var(--white); }
/* полоса паттерна над контентом подвала, текст на неё не заходит */
.footer .pattern {
  top: 0; left: 0; right: 0; height: 120px; background-position: right top;
  -webkit-mask-image: linear-gradient(90deg, transparent 20%, #000 85%);
  mask-image: linear-gradient(90deg, transparent 20%, #000 85%);
}
.footer .container { position: relative; }
.footer .logo__tag { color: rgba(255, 255, 255, 0.6); }
.footer__top { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: var(--gap-top); padding-bottom: 56px; border-bottom: 1px solid rgba(255, 255, 255, 0.14); }
.footer__col { display: flex; flex-direction: column; gap: 10px; font-size: 14px; }
.footer__col .caption { margin-bottom: 8px; color: rgba(255, 255, 255, 0.6); }
.footer__col a { transition: color var(--t-fast) var(--ease-ui); }
.footer__col a:hover { color: var(--accent); }
.footer__col .muted { color: rgba(255, 255, 255, 0.6); }
.footer__phone { font-family: var(--font-num); font-weight: 600; font-size: 22px; letter-spacing: -0.01em; }
.footer__bottom { display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap; padding-top: 28px; font-size: 13px; color: rgba(255, 255, 255, 0.6); }

/* ==========================================================
   Появление через блюр
   0.9s cubic-bezier(0.16,1,0.3,1) / шаг 50 мс в группе / 100 мс между блоками
   ========================================================== */

.js [data-reveal] {
  opacity: 0;
  filter: blur(12px);
  transform: translateY(24px);
  transition:
    opacity 0.9s var(--ease-reveal),
    filter 0.9s var(--ease-reveal),
    transform 0.9s var(--ease-reveal);
  transition-delay: var(--d, 0ms);
  will-change: opacity, filter, transform;
}
.js [data-reveal].is-in { opacity: 1; filter: blur(0); transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js [data-reveal] { filter: none; transform: none; transition: opacity var(--t-fast) linear; }
  *, *::before, *::after { transition-duration: 0.01ms !important; }
}

/* ==========================================================
   Адаптив
   ========================================================== */

@media (max-width: 1360px) {
  .term__num { font-size: 128px; }
  .nav { gap: 22px; }
}

@media (max-width: 1199px) {
  :root { --section: 100px; }
  .grid--4 { grid-template-columns: repeat(2, 1fr); }
  .nav, .header__phone { display: none; }
  .burger { display: block; }
  .h1 { font-size: 52px; }
  .h2 { font-size: 40px; }
  .hero__text { max-width: 620px; }
  .terms__row { grid-template-columns: 1fr; }
  .term__num { font-size: 140px; }
  .calc { grid-template-columns: 1fr; }
  .calc-wrap { padding: 32px; }
  .upgrade { grid-template-columns: 1fr; padding: 40px; }
  .faq { grid-template-columns: 1fr; }
  .faq__aside { position: static; }
  .footer__top { grid-template-columns: 1fr 1fr; }

  .header.is-open .nav {
    display: flex; flex-direction: column; gap: 4px;
    position: absolute; top: 80px; left: var(--gutter); right: var(--gutter);
    padding: 16px; border-radius: var(--radius);
    background: rgba(255, 255, 255, 0.92);
    -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px);
    color: var(--ink); box-shadow: var(--glass-shadow);
  }
  .header.is-open .nav a { padding: 14px 12px; font-size: 17px; opacity: 1; }
}

@media (max-width: 767px) {
  :root { --gutter: 16px; --section: 80px; --gap-top: 16px; }
  body { font-size: 15px; }
  .h1 { font-size: 40px; }
  .h2 { font-size: 32px; }
  .lead { font-size: 16px; }
  .header { top: 8px; }
  .header__bar { height: 60px; padding-left: 18px; padding-right: 8px; }
  .header__right .btn { display: none; }
  .hero__inner { padding-top: 120px; padding-bottom: 24px; }
  .hero__text { max-width: none; }
  .hero::before { background: linear-gradient(0deg, rgba(15, 45, 74, 0.92) 20%, rgba(15, 45, 74, 0.45) 100%); }
  .hero__plates { grid-template-columns: 1fr; margin-top: 40px; gap: 10px; }
  .plate { padding: 18px 20px; display: flex; justify-content: space-between; align-items: center; gap: 12px; }
  .plate__num { font-size: 28px; }
  .plate .caption { margin: 0; text-align: right; }
  .hero__actions .btn { flex: 1 1 100%; }
  .section-head { margin-bottom: 36px; }
  .grid--4, .grid--3 { grid-template-columns: 1fr; }
  .term { padding: 32px 0 36px; }
  .term__num { font-size: 88px; }
  .step { min-height: 220px; padding: 24px; }
  .calc-wrap { padding: 16px; border-radius: var(--radius); margin-inline: calc(var(--gutter) * -1 + 8px); }
  .calc__form, .calc__result { padding: 24px; }
  .calc__pay { font-size: 32px; }
  .calc__pair { grid-template-columns: 1fr; }
  .upgrade { padding: 28px 20px; }
  .upgrade__title { font-size: 26px; }
  .upgrade__steps { grid-template-columns: 1fr; }
  .upgrade__num { margin-bottom: 8px; font-size: 28px; }
  .upgrade .pattern { display: none; }
  .qa__q { font-size: 17px; padding: 22px 0; }
  .lead-block::before { background: rgba(15, 45, 74, 0.7); }
  .form { padding: 28px 20px; }
  .form h2 { font-size: 30px; }
  .footer__top { grid-template-columns: 1fr; }
  .footer { padding-top: 160px; }
  .footer .pattern { height: 120px; -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 60%); mask-image: linear-gradient(90deg, transparent 0%, #000 60%); }
  .logo--lg .logo__name { font-size: 22px; }
}

/* ---------- Политика: поп-ап ---------- */
.policy {
  width: min(760px, calc(100% - 32px));
  max-height: min(86vh, 900px);
  padding: 0;
  border: 0;
  border-radius: var(--radius);
  background: var(--white);
  color: var(--ink);
  box-shadow: 0 30px 80px rgba(15, 45, 74, 0.3);
  overflow: hidden;
}
.policy[open] { display: flex; flex-direction: column; }
.policy::backdrop { background: rgba(15, 45, 74, 0.55); backdrop-filter: blur(4px); }
.policy__head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 32px; border-bottom: 1px solid var(--line);
}
.policy__head .caption { margin: 0; }
.policy__close {
  width: 40px; height: 40px; border: 1px solid var(--line); border-radius: 50%;
  background: none; color: var(--ink); font-size: 24px; line-height: 1; cursor: pointer;
  transition: background var(--t-fast) var(--ease-ui), color var(--t-fast) var(--ease-ui);
}
.policy__close:hover { background: var(--ink); color: var(--white); }
.policy__body { padding: 28px 32px 36px; overflow-y: auto; overscroll-behavior: contain; font-size: 15px; line-height: 1.6; }
.policy__body .h3 { margin: 0 0 8px; }
.policy__body h3 { margin: 28px 0 8px; font-size: 16px; }
.policy__body p { margin: 0 0 10px; }
.policy__body a { color: var(--accent); }
body.is-locked { overflow: hidden; }
@media (max-width: 600px) {
  .policy__head { padding: 12px 20px; }
  .policy__body { padding: 20px 20px 28px; }
}

/* ---------- Cookie ---------- */
.cookie {
  position: fixed;
  left: var(--gutter);
  bottom: var(--gutter);
  z-index: 100;
  max-width: 520px;
  padding: 20px 24px;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid var(--glass-border);
  box-shadow: var(--glass-shadow);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  color: var(--ink);
}
.cookie__text { margin: 0 0 16px; font-size: 14px; line-height: 1.5; }
.cookie__text a { color: var(--accent); }
.cookie__actions { display: flex; flex-wrap: wrap; gap: 8px; }
.cookie__decline { border-color: var(--line); color: var(--ink); }
.cookie__decline:hover { background: var(--ink); color: var(--white); }

@media (max-width: 600px) {
  .cookie { left: 16px; right: 16px; bottom: 16px; max-width: none; }
}
