/* ═══════════════════════════════════════════════════════════
   ТД Зима — tdzima.ru
   Дизайн-система по брендбуку: Полярная ночь / Ледяной синий /
   Сияние / Иней / Снег. Manrope — заголовки, Golos Text — текст.
   Без скруглений и теней: скошенные углы 60°, линии-инеи.
   ═══════════════════════════════════════════════════════════ */

:root {
  /* Палитра ТД Зима (брендбук v1.0) */
  --night: #0B1C2E;      /* Полярная ночь — фон, заголовки */
  --night-hover: #16324F;
  --night-deep: #071220;
  --ice: #20689C;        /* Глубокий лёд — плашки, акценты */
  --blue: #3788C8;       /* Ледяной синий — главный фирменный: кнопки, цифры */
  --glow: #8FCDE8;       /* Сияние — графика, выделения на тёмном */
  --frost: #EAF3FA;      /* Иней — светлые фоны */
  --snow: #FFFFFF;

  /* Рабочие переменные компонентов */
  --navy: var(--night);
  --navy-hover: var(--night-hover);
  --navy-deep: var(--night-deep);
  --bg: var(--snow);
  --bg-alt: var(--frost);
  --ink: var(--night);
  --muted: #5C6B7A;
  --line: #D9E5EF;
  --line-dark: rgba(255, 255, 255, 0.16);
  --white: var(--snow);
  --error: #B3261E;
  --accent: var(--blue);
  --accent-hover: var(--ice);
  --accent-on-dark: var(--glow);
  --header-h: 72px;
  --container: 1180px;
  --pad: 24px;
  --font: "Golos Text", "Segoe UI", system-ui, -apple-system, sans-serif;
  --font-head: "Manrope", "Golos Text", "Segoe UI", system-ui, sans-serif;
  /* Скос «угол снежинки» под 60° для кнопок и плашек */
  --bevel: polygon(0 0, calc(100% - 10px) 0, 100% 17px, 100% 100%, 10px 100%, 0 calc(100% - 17px));
}

/* ── База ─────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
  -webkit-text-size-adjust: 100%;
}

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

h1, h2, h3 {
  margin: 0 0 0.5em;
  font-family: var(--font-head);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.12;
}
h2 { font-size: clamp(1.65rem, 1.15rem + 1.8vw, 2.4rem); }
h3 { font-size: 1.25rem; letter-spacing: -0.01em; }
p { margin: 0 0 1em; }
ul, ol { margin: 0; padding: 0; list-style: none; }
a { color: var(--navy); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }
img, svg { max-width: 100%; height: auto; }
strong { font-weight: 700; }

::selection { background: var(--blue); color: var(--white); }

:focus-visible {
  outline: 2px solid var(--ice);
  outline-offset: 3px;
}
.section--dark :focus-visible,
.footer :focus-visible,
.hero :focus-visible { outline-color: var(--white); }

.container {
  width: min(var(--container), 100% - 2 * var(--pad));
  margin-inline: auto;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 8px;
  z-index: 200;
  padding: 10px 18px;
  background: var(--navy);
  color: var(--white);
}
.skip-link:focus-visible { left: 8px; }

/* ── Кнопки: «угол снежинки» — скосы под 60°, без скруглений ── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 13px 26px;
  border: 1.5px solid var(--accent);
  border-radius: 0;
  background: var(--accent);
  color: var(--white);
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 0.92rem;
  line-height: 1.2;
  letter-spacing: 0.03em;
  cursor: pointer;
  text-decoration: none;
  clip-path: var(--bevel);
  transition: background-color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
  white-space: nowrap;
}
.btn:hover { background: var(--accent-hover); border-color: var(--accent-hover); text-decoration: none; }
.btn:active { transform: scale(0.98); }
.btn svg { transition: transform 0.2s ease; flex: none; }
.btn:hover svg { transform: translateX(4px); }

.btn--lg { padding: 17px 32px; font-size: 0.98rem; min-height: 56px; }
.btn--sm { padding: 10px 20px; font-size: 0.82rem; }

.btn--outline {
  background: transparent;
  border-color: var(--ice);
  color: var(--ice);
}
.btn--outline:hover { background: var(--ice); border-color: var(--ice); color: var(--white); }

.btn--light {
  background: var(--white);
  border-color: var(--white);
  color: var(--night);
}
.btn--light:hover { background: var(--frost); border-color: var(--frost); color: var(--night); }

.btn--ghost {
  background: transparent;
  border-color: var(--line);
  color: var(--ink);
}
.btn--ghost:hover { background: var(--bg-alt); border-color: var(--line); color: var(--ink); }

/* ── Шапка ────────────────────────────────────────────── */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.header__inner {
  display: flex;
  align-items: center;
  gap: 28px;
  min-height: var(--header-h);
}
.logo {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  flex: none;
}
.logo:hover { text-decoration: none; }
.logo__mark {
  width: 40px;
  height: auto;
  flex: none;
}
.logo__text {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 1.02rem;
  letter-spacing: 0.08em;
  line-height: 1.1;
  color: var(--ink);
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.logo__text small {
  font-family: var(--font);
  font-weight: 600;
  font-size: 0.64rem;
  color: var(--muted);
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.nav {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-left: auto;
}
.nav__link {
  padding: 8px 12px;
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--ink);
  transition: color 0.15s ease, background-color 0.15s ease;
}
.nav__link:hover { color: var(--ice); background: var(--bg-alt); text-decoration: none; }
.nav__cta, .nav__phone { display: none; }

.header__contacts {
  display: flex;
  align-items: center;
  gap: 20px;
  flex: none;
}
.header__phone {
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--ink);
  white-space: nowrap;
}
.header__phone:hover { color: var(--navy); text-decoration: none; }

.burger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 10px;
  margin-left: auto;
  background: none;
  border: none;
  cursor: pointer;
}
.burger span {
  display: block;
  height: 2px;
  background: var(--ink);
  border-radius: 2px;
  transition: transform 0.25s ease, opacity 0.2s ease;
}
.burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ── Главный экран ────────────────────────────────────── */
.hero { background: var(--bg); }
.hero__grid {
  display: grid;
  grid-template-columns: 1fr;
}
.hero__main {
  position: relative;
  background: var(--night);
  color: var(--white);
  margin-inline: calc(-1 * var(--pad));
  padding: clamp(48px, 7vw, 96px) var(--pad);
  overflow: hidden;
}
/* Паттерн «Морозная решётка» — тёмная версия на «Полярной ночи» */
.hero__main::before {
  content: "";
  position: absolute;
  inset: 0;
  background: url("../img/pattern-dark.png") repeat;
  background-size: 560px;
  opacity: 0.45;
  pointer-events: none;
}
.hero__main > * { position: relative; z-index: 1; }
.hero__eyebrow {
  margin: 0 0 22px;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent-on-dark);
}
.hero__title {
  font-size: clamp(2rem, 1.25rem + 3.4vw, 3.55rem);
  color: var(--white);
  max-width: 15ch;
}
.hero__lead {
  font-size: clamp(1.02rem, 0.95rem + 0.4vw, 1.2rem);
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.84);
  max-width: 46ch;
  margin-bottom: 34px;
}
.hero__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 18px 28px;
}
.hero__actions .btn {
  background: var(--white);
  border-color: var(--white);
  color: var(--night);
}
.hero__actions .btn:hover { background: var(--frost); border-color: var(--frost); }
.hero__price {
  margin: 0;
  font-size: 0.98rem;
  color: rgba(255, 255, 255, 0.75);
}
.hero__price strong { color: var(--white); }

.hero__side {
  padding: clamp(44px, 6vw, 88px) 0;
}
.hero__art {
  display: block;
  width: min(320px, 90%);
  margin-bottom: 34px;
}
.hero__facts li {
  padding: 16px 0;
  border-top: 1px solid var(--line);
}
.hero__facts li:last-child { border-bottom: 1px solid var(--line); }
.hero__facts strong {
  display: block;
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 2px;
}
.hero__facts span {
  font-size: 0.92rem;
  color: var(--muted);
}

@media (min-width: 1024px) {
  .hero {
    background: linear-gradient(90deg, var(--navy) 0 50%, var(--bg) 50% 100%);
  }
  .hero__grid {
    grid-template-columns: 1.08fr 0.92fr;
  }
  .hero__main {
    margin-inline: 0;
    padding: clamp(72px, 8vw, 120px) clamp(40px, 5vw, 84px) clamp(72px, 8vw, 120px) 0;
    background: transparent;
  }
  .hero__side {
    padding: clamp(72px, 8vw, 120px) 0 clamp(72px, 8vw, 120px) clamp(40px, 5vw, 72px);
  }
}

/* ── Секции ───────────────────────────────────────────── */
.section { padding: clamp(64px, 8vw, 112px) 0; }
.section--alt { background: var(--bg-alt); }
.section--dark {
  position: relative;
  background: var(--night-deep);
  color: var(--white);
  overflow: hidden;
}
/* Паттерн «Морозная решётка» на больших тёмных блоках */
.section--dark::before {
  content: "";
  position: absolute;
  inset: 0;
  background: url("../img/pattern-dark.png") repeat;
  background-size: 560px;
  opacity: 0.4;
  pointer-events: none;
}
.section--dark > .container { position: relative; z-index: 1; }

.eyebrow {
  margin: 0 0 14px;
  font-family: var(--font-head);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ice);
}
.eyebrow--light { color: var(--accent-on-dark); }

.section__lead {
  max-width: 56ch;
  font-size: clamp(1rem, 0.95rem + 0.3vw, 1.13rem);
  color: var(--muted);
  margin-bottom: clamp(32px, 4vw, 52px);
}
.section__lead--light { color: rgba(255, 255, 255, 0.72); }

.split {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(28px, 4vw, 56px);
}
@media (min-width: 1024px) {
  .split { grid-template-columns: 0.85fr 1.15fr; gap: clamp(48px, 6vw, 96px); }
  .split__head {
    position: sticky;
    top: calc(var(--header-h) + 32px);
    align-self: start;
  }
}

/* ── Блок 2. Для кого ─────────────────────────────────── */
.audience__item {
  display: grid;
  grid-template-columns: 52px 1fr;
  gap: 16px;
  align-items: baseline;
  padding: 22px 0;
  border-top: 1px solid var(--line);
}
.audience__item:last-child { border-bottom: 1px solid var(--line); }
.audience__num {
  font-family: var(--font-head);
  font-size: 0.95rem;
  font-weight: 800;
  color: var(--ice);
  font-variant-numeric: tabular-nums;
}
.audience__item p {
  margin: 0;
  font-size: clamp(1.05rem, 1rem + 0.3vw, 1.2rem);
  line-height: 1.45;
}

/* ── Блок 3. Задачи ───────────────────────────────────── */
.tasks {
  display: grid;
  grid-template-columns: 1fr;
  column-gap: clamp(32px, 5vw, 72px);
}
.tasks li {
  position: relative;
  padding: 15px 0 15px 36px;
  border-top: 1px solid var(--line);
  font-size: 1.02rem;
}
.tasks li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 19px;
  width: 18px;
  height: 18px;
  background: var(--blue);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 18 18'%3E%3Cpath d='m3 9.5 4 4 8-8' fill='none' stroke='%23000' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%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 18 18'%3E%3Cpath d='m3 9.5 4 4 8-8' fill='none' stroke='%23000' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat;
}
@media (min-width: 768px) {
  .tasks { grid-template-columns: 1fr 1fr; }
}

/* ── Блок 4. Тарифы ───────────────────────────────────── */
.plans {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  align-items: stretch;
}
@media (min-width: 900px) {
  .plans { grid-template-columns: 1fr 1fr; }
}
.plan {
  display: flex;
  flex-direction: column;
  padding: clamp(28px, 4vw, 44px);
  border: 1px solid var(--line);
  border-radius: 0;
  background: var(--white);
}
.plan--dark {
  background: var(--night);
  border-color: var(--night);
  color: var(--white);
}
.plan__badge {
  align-self: flex-start;
  margin: 0 0 18px;
  padding: 6px 14px;
  border: 1px solid var(--line-dark);
  font-family: var(--font-head);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent-on-dark);
}
.plan__name { margin-bottom: 14px; }
.plan--dark .plan__name { color: var(--white); }
.plan__price {
  margin: 0;
  font-family: var(--font-head);
  font-size: clamp(2rem, 1.6rem + 1.4vw, 2.6rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1;
  color: var(--blue);
}
.plan--dark .plan__price { color: var(--white); }
.plan__price span {
  font-size: 1rem;
  font-weight: 500;
  color: var(--muted);
  letter-spacing: 0;
}
.plan--dark .plan__price span { color: rgba(255, 255, 255, 0.65); }
.plan__fee {
  margin: 8px 0 26px;
  font-size: 0.95rem;
  color: var(--muted);
}
.plan--dark .plan__fee { color: rgba(255, 255, 255, 0.7); }
.plan__includes {
  margin: 0 0 14px;
  font-size: 0.92rem;
  color: rgba(255, 255, 255, 0.72);
}
.plan__list { margin-bottom: 30px; }
.plan__list li {
  position: relative;
  padding: 9px 0 9px 32px;
  font-size: 0.98rem;
}
.plan__list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 13px;
  width: 17px;
  height: 17px;
  background: var(--blue);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 18 18'%3E%3Cpath d='m3 9.5 4 4 8-8' fill='none' stroke='%23000' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%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 18 18'%3E%3Cpath d='m3 9.5 4 4 8-8' fill='none' stroke='%23000' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat;
}
.plan--dark .plan__list li::before { background: var(--accent-on-dark); }
.plan .btn { margin-top: auto; align-self: flex-start; }
.plans__note {
  margin: 28px 0 0;
  max-width: 72ch;
  font-size: 0.92rem;
  color: var(--muted);
}

/* ── Блок 5. Сравнение ────────────────────────────────── */
.compare {
  overflow-x: auto;
  border: 1px solid var(--line);
  background: var(--white);
  -webkit-overflow-scrolling: touch;
}
.compare__table {
  width: 100%;
  min-width: 660px;
  border-collapse: collapse;
  font-size: 0.97rem;
}
.compare__table th,
.compare__table td {
  padding: 16px 22px;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid var(--line);
  line-height: 1.45;
}
.compare__table tr:last-child th,
.compare__table tr:last-child td { border-bottom: none; }
.compare__table thead th {
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  background: var(--bg);
}
.compare__table thead .compare__hl {
  background: var(--navy);
  color: var(--white);
}
.compare__table tbody th {
  font-weight: 600;
  width: 22%;
  color: var(--ink);
}
.compare__table tbody td { width: 39%; color: var(--muted); }
.compare__table tbody .compare__hl {
  background: rgba(11, 28, 46, 0.05);
  color: var(--ink);
  font-weight: 500;
}

/* ── Блок 6. Этапы ────────────────────────────────────── */
.steps {
  display: grid;
  grid-template-columns: 1fr;
  gap: 26px clamp(24px, 3vw, 40px);
  counter-reset: step;
}
@media (min-width: 768px) { .steps { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1100px) { .steps { grid-template-columns: repeat(3, 1fr); } }
.steps__item {
  border-top: 2px solid var(--navy);
  padding-top: 18px;
}
.steps__num {
  display: block;
  margin-bottom: 12px;
  font-family: var(--font-head);
  font-size: clamp(2.2rem, 1.8rem + 1.4vw, 3rem);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.03em;
  color: rgba(55, 136, 200, 0.25);
  font-variant-numeric: tabular-nums;
}
.steps__item p {
  margin: 0;
  font-size: 1.02rem;
  line-height: 1.5;
}

/* ── Блок 7. Безопасность ─────────────────────────────── */
.security {
  display: grid;
  grid-template-columns: 1fr;
  gap: 30px clamp(24px, 3vw, 40px);
}
@media (min-width: 768px) { .security { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1100px) { .security { grid-template-columns: repeat(3, 1fr); } }
.security__item {
  border-top: 1px solid var(--line-dark);
  padding-top: 18px;
}
.security__item svg {
  display: block;
  margin-bottom: 14px;
  color: var(--accent-on-dark);
}
.security__item p {
  margin: 0;
  font-size: 1rem;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.88);
}

/* ── Блок 8. FAQ ──────────────────────────────────────── */
.faq__item { border-top: 1px solid var(--line); }
.faq__item:last-child { border-bottom: 1px solid var(--line); }
.faq__item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 22px 0;
  font-size: clamp(1.02rem, 1rem + 0.25vw, 1.15rem);
  font-weight: 600;
  line-height: 1.4;
  cursor: pointer;
  list-style: none;
  transition: color 0.15s ease;
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary:hover { color: var(--ice); }
.faq__icon {
  position: relative;
  flex: none;
  width: 34px;
  height: 34px;
  border: 1.5px solid var(--line);
  transition: border-color 0.2s ease, background-color 0.2s ease;
}
.faq__icon::before,
.faq__icon::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 12px;
  height: 1.8px;
  background: var(--ink);
  transform: translate(-50%, -50%);
  transition: transform 0.25s ease, background-color 0.2s ease;
}
.faq__icon::after { transform: translate(-50%, -50%) rotate(90deg); }
.faq__item[open] .faq__icon { background: var(--navy); border-color: var(--navy); }
.faq__item[open] .faq__icon::before,
.faq__item[open] .faq__icon::after { background: var(--white); }
.faq__item[open] .faq__icon::after { transform: translate(-50%, -50%) rotate(0deg); }
.faq__body {
  padding: 0 54px 24px 0;
  color: var(--muted);
  max-width: 62ch;
}
.faq__body p { margin: 0; }

/* ── Блок 9. Форма ────────────────────────────────────── */
.contact {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(32px, 5vw, 72px);
}
@media (min-width: 1024px) {
  .contact { grid-template-columns: 1fr 1fr; align-items: start; }
}
.contact > * { min-width: 0; }
.contact__phone-block {
  margin-top: 28px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}
.contact__phone-block span {
  display: block;
  font-size: 0.88rem;
  color: var(--muted);
  margin-bottom: 4px;
}
.contact__phone {
  font-size: clamp(1.4rem, 1.2rem + 0.8vw, 1.8rem);
  font-weight: 800;
  letter-spacing: -0.01em;
  color: var(--ink);
  white-space: nowrap;
}
.contact__phone:hover { color: var(--navy); text-decoration: none; }

.lead-form {
  padding: clamp(26px, 4vw, 40px);
  background: var(--white);
  border: 1px solid var(--line);
}
.lead-form__label {
  display: block;
  margin-bottom: 8px;
  font-size: 0.9rem;
  font-weight: 600;
}
.lead-form__input {
  width: 100%;
  height: 54px;
  padding: 0 18px;
  border: 1.5px solid var(--line);
  background: var(--frost);
  font: inherit;
  font-size: 1.05rem;
  color: var(--ink);
  transition: border-color 0.15s ease, background-color 0.15s ease;
}
.lead-form__input::placeholder { color: #9A9DA4; }
.lead-form__input:focus {
  outline: none;
  border-color: var(--ice);
  background: var(--white);
}
.lead-form__input.is-invalid { border-color: var(--error); }

/* Отступ между полями, когда они идут подряд */
.lead-form__label ~ .lead-form__label { margin-top: 16px; }

/* Контейнер Яндекс SmartCaptcha: скрыт, пока виджет не отрендерен */
.smart-captcha { margin: 0 0 18px; }
.smart-captcha:empty { display: none; }

.lead-form__hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.lead-form__error {
  margin: 8px 0 0;
  font-size: 0.86rem;
  color: var(--error);
}

.lead-form__consent {
  display: grid;
  grid-template-columns: 22px 1fr;
  gap: 12px;
  align-items: start;
  margin: 20px 0 24px;
  font-size: 0.85rem;
  line-height: 1.5;
  color: var(--muted);
  cursor: pointer;
}
.lead-form__consent input {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
}
.lead-form__checkbox {
  position: relative;
  width: 22px;
  height: 22px;
  margin-top: 1px;
  border: 1.5px solid var(--line);
  background: var(--frost);
  transition: background-color 0.15s ease, border-color 0.15s ease;
}
.lead-form__checkbox::after {
  content: "";
  position: absolute;
  inset: 0;
  margin: auto;
  width: 12px;
  height: 12px;
  background: var(--white);
  opacity: 0;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 18 18'%3E%3Cpath d='m3 9.5 4 4 8-8' fill='none' stroke='%23000' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'/%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 18 18'%3E%3Cpath d='m3 9.5 4 4 8-8' fill='none' stroke='%23000' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat;
}
.lead-form__consent input:checked + .lead-form__checkbox {
  background: var(--accent);
  border-color: var(--accent);
}
.lead-form__consent input:checked + .lead-form__checkbox::after { opacity: 1; }
.lead-form__consent input:focus-visible + .lead-form__checkbox {
  outline: 2px solid var(--ice);
  outline-offset: 3px;
}
.lead-form__consent a { text-decoration: underline; text-underline-offset: 2px; }

.lead-form__submit { width: 100%; }
.lead-form__submit[disabled] {
  opacity: 0.6;
  cursor: wait;
}

.lead-form__status {
  margin-top: 18px;
  padding: 14px 18px;
  font-size: 0.95rem;
  line-height: 1.5;
}
.lead-form__status--ok {
  background: #EAF3EC;
  color: #1E5B2E;
  border: 1px solid #CBE2D2;
}
.lead-form__status--err {
  background: #F9ECEB;
  color: var(--error);
  border: 1px solid #EFD0CE;
}

/* ── Подвал ───────────────────────────────────────────── */
.footer {
  background: var(--navy-deep);
  color: rgba(255, 255, 255, 0.75);
  overflow: hidden;
}
.footer__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 36px;
  padding: clamp(48px, 6vw, 80px) 0 clamp(36px, 4vw, 56px);
}
@media (min-width: 768px) {
  .footer__grid { grid-template-columns: repeat(3, 1fr); }
}
.footer__heading {
  margin: 0 0 14px;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent-on-dark);
}
.footer__phone {
  display: block;
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--white);
  margin-bottom: 6px;
}
.footer__phone:hover { color: var(--accent-on-dark); text-decoration: none; }
.footer__mail {
  display: inline-block;
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: 14px;
}
.footer__mail:hover { color: var(--white); }
.footer__geo { margin: 0; font-size: 0.9rem; }
.footer__requisites {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.7;
}
.footer__links li { margin-bottom: 10px; }
.footer__links a {
  color: rgba(255, 255, 255, 0.75);
  font-size: 0.95rem;
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-color: rgba(255, 255, 255, 0.3);
  transition: color 0.15s ease;
}
.footer__links a:hover { color: var(--white); }
.footer__cookies {
  margin: 20px 0 0;
  font-size: 0.82rem;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.5);
}
.footer__tagline {
  margin: 0;
  padding: 0 0 clamp(24px, 3vw, 40px);
  font-family: var(--font-head);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  text-align: center;
  color: rgba(255, 255, 255, 0.38);
}
.footer__wordmark {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: clamp(64px, 15vw, 216px);
  line-height: 0.78;
  letter-spacing: -0.04em;
  text-align: center;
  white-space: nowrap;
  color: rgba(255, 255, 255, 0.07);
  transform: translateY(22%);
  user-select: none;
  pointer-events: none;
}

/* ── Плавающая кнопка заявки ──────────────────────────── */
.fab {
  position: fixed;
  z-index: 140;
  right: 20px;
  bottom: 20px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 22px;
  border: none;
  background: var(--accent);
  color: var(--white);
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 0.9rem;
  letter-spacing: 0.03em;
  cursor: pointer;
  clip-path: var(--bevel);
  transition: transform 0.2s ease, opacity 0.3s ease, background-color 0.2s ease;
}
.fab:hover { background: var(--accent-hover); }
.fab:active { transform: scale(0.97); }
.fab--hidden {
  opacity: 0;
  pointer-events: none;
  transform: translateY(8px);
}

/* ── Popup-форма ──────────────────────────────────────── */
.modal {
  position: fixed;
  inset: 0;
  z-index: 160;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.modal[hidden] { display: none; }
.modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(7, 18, 32, 0.6);
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
}
.modal__dialog {
  position: relative;
  width: min(480px, 100%);
  max-height: calc(100dvh - 40px);
  overflow-y: auto;
  padding: clamp(26px, 4vw, 40px);
  background: var(--white);
  border: 1px solid var(--line);
  animation: modal-in 0.25s ease;
  -webkit-overflow-scrolling: touch;
}
@keyframes modal-in {
  from { opacity: 0; transform: translateY(14px) scale(0.98); }
  to { opacity: 1; transform: none; }
}
.modal__dialog h2 {
  font-size: 1.45rem;
  margin-bottom: 0.35em;
  padding-right: 44px;
}
.modal__lead {
  margin-bottom: 22px;
  font-size: 0.95rem;
  color: var(--muted);
}
/* Плашка выбранного тарифа в popup (открывается из блока тарифов) */
.modal__plan {
  display: inline-block;
  margin: 0 0 20px;
  padding: 7px 14px;
  background: var(--frost);
  border-left: 3px solid var(--blue);
  font-family: var(--font-head);
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--ice);
}
.modal__plan[hidden] { display: none; }
.modal__close {
  position: absolute;
  top: 14px;
  right: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border: none;
  background: transparent;
  color: var(--ink);
  cursor: pointer;
  transition: background-color 0.15s ease;
}
.modal__close:hover { background: var(--bg-alt); }
.lead-form--modal {
  padding: 0;
  border: none;
  background: transparent;
}

@media (max-width: 640px) {
  .fab { right: 16px; bottom: 16px; padding: 13px 18px; font-size: 0.9rem; }
}

/* ── Cookie-баннер ────────────────────────────────────── */
.cookie {
  position: fixed;
  z-index: 150;
  left: 50%;
  bottom: 16px;
  transform: translate(-50%, calc(100% + 32px));
  width: min(720px, calc(100% - 32px));
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px 22px;
  padding: 18px 22px;
  background: var(--white);
  border: 1px solid var(--line);
  transition: transform 0.4s ease;
}
.cookie.is-visible { transform: translate(-50%, 0); }
.cookie p {
  flex: 1 1 320px;
  margin: 0;
  font-size: 0.86rem;
  line-height: 1.5;
  color: var(--muted);
}
.cookie__actions { display: flex; gap: 10px; flex: none; }

/* ── Страницы документов ──────────────────────────────── */
.doc {
  max-width: 760px;
  padding: clamp(48px, 6vw, 88px) 0;
}
.doc h1 {
  font-size: clamp(1.7rem, 1.3rem + 1.6vw, 2.4rem);
  margin-bottom: 0.4em;
}
.doc h2 {
  font-size: 1.25rem;
  margin: 2em 0 0.6em;
}
.doc p, .doc li { color: var(--muted); }
.doc ul { padding-left: 22px; list-style: disc; }
.doc li { margin-bottom: 6px; }
.doc__updated {
  font-size: 0.85rem;
  color: var(--muted);
  margin-bottom: 2.5em;
}

/* ── Мобильная адаптация ──────────────────────────────── */
@media (max-width: 1280px) {
  .header__inner { gap: 16px; }
  .nav__link { padding: 8px 9px; font-size: 0.88rem; }
}

@media (max-width: 1150px) {
  .burger { display: flex; }
  .header__contacts { display: none; }
  .nav {
    position: fixed;
    top: var(--header-h);
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
    padding: 16px var(--pad) 24px;
    background: var(--bg);
    border-bottom: 1px solid var(--line);
    opacity: 0;
    transform: translateY(-8px);
    pointer-events: none;
    transition: opacity 0.2s ease, transform 0.2s ease;
    /* альбомная ориентация: меню прокручивается внутри */
    max-height: calc(100dvh - var(--header-h));
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }
  .nav.is-open {
    opacity: 1;
    transform: none;
    pointer-events: auto;
  }
  .nav__link {
    padding: 14px 12px;
    font-size: 1.05rem;
  }
  .nav__cta {
    display: inline-flex;
    margin-top: 12px;
    justify-content: center;
  }
  .nav__phone {
    display: block;
    font-weight: 700;
    padding-top: 16px;
  }
}

@media (max-width: 640px) {
  :root { --pad: 20px; }
  .hero__actions .btn { width: 100%; }
  .btn--lg { padding: 16px 22px; font-size: 0.95rem; white-space: normal; }
  .compare__table { font-size: 0.9rem; }
  .compare__table th, .compare__table td { padding: 13px 16px; }
}

/* ── Reduced motion ───────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* ── Иллюстрации ──────────────────────────────────────── */
.hero__img {
  display: block;
  width: min(420px, 88%);
  margin: 0 0 30px;
  animation: hero-float 7s ease-in-out infinite;
  will-change: transform;
}
@keyframes hero-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

.split__img {
  display: block;
  width: min(340px, 90%);
  margin-top: 28px;
}

/* ── Бегущая строка ───────────────────────────────────── */
.ticker {
  overflow: hidden;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--white);
  padding: 14px 0;
}
.ticker__track {
  display: flex;
  align-items: center;
  gap: 40px;
  width: max-content;
  animation: ticker-scroll 38s linear infinite;
}
.ticker:hover .ticker__track { animation-play-state: paused; }
.ticker__track span {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--navy);
  white-space: nowrap;
}
.ticker__track span::after {
  content: "";
  display: inline-block;
  width: 6px;
  height: 6px;
  margin-left: 40px;
  border-radius: 50%;
  background: var(--line);
  vertical-align: middle;
}
@keyframes ticker-scroll {
  to { transform: translateX(-50%); }
}

/* ── Микровзаимодействия (без теней — только линии и цвет) ── */
.plan { transition: transform 0.25s ease, border-color 0.25s ease; }
@media (hover: hover) {
  .plan:hover {
    transform: translateY(-6px);
    border-color: var(--ice);
  }
  .plan--dark:hover { border-color: var(--glow); }
}

.audience__item { transition: background-color 0.2s ease; }
.audience__num { transition: color 0.2s ease; }
.audience__item:hover .audience__num { color: var(--blue); }

.steps__item { transition: border-color 0.25s ease; }
.steps__num { transition: color 0.25s ease; }
.steps__item:hover { border-top-color: var(--ice); }
.steps__item:hover .steps__num { color: rgba(55, 136, 200, 0.6); }

.security__item { transition: border-color 0.25s ease; }
.security__item:hover { border-top-color: rgba(255, 255, 255, 0.4); }

/* ── Появление блоков (только при поддержке IO) ───────── */
html.io .reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}
html.io .reveal.is-in {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  .hero__img, .ticker__track { animation: none; }
  html.io .reveal { opacity: 1; transform: none; transition: none; }
}
