/* =========================================================================
   СДЭК для бизнеса — лендинг филиала
   Дизайн-система на фирменных токенах cdek.ru
   ========================================================================= */

/* ---------- Токены ---------- */
:root {
  /* Бренд */
  --primary:        #1AB248;
  --primary-hover:  #30CC5F;
  --primary-active: #158E3A;
  --primary-10:     rgba(26, 178, 72, .10);
  --primary-05:     rgba(26, 178, 72, .05);

  /* Поверхности и текст */
  --surface:      rgba(51, 85, 104, .05);
  --surface-2:    rgba(51, 85, 104, .08);
  --white:        #FFFFFF;
  --ink:          #181A1F;               /* графит логотипа — сильные заголовки */
  --text:         rgba(0, 0, 0, .66);
  --text-strong:  #000000;
  --text-muted:   rgba(0, 0, 0, .5);
  --border:       rgba(0, 0, 0, .10);
  --border-soft:  rgba(0, 0, 0, .06);

  /* Семантика/акценты */
  --attention:    #F47500;
  --error:        #E40029;
  --footer-bg:    #1C1B22;

  /* Радиусы */
  --r-card: 16px;
  --r-btn:  10px;
  --r-badge: 4px;
  --r-pill: 100px;

  /* Раскладка */
  --container: 1200px;
  --gutter: 20px;

  /* Тип */
  --font: 'Roboto', -apple-system, 'Segoe UI', Arial, sans-serif;

  /* Тени — почти не используются; только шапка и всплывашки */
  --shadow-header: 0 4px 20px rgba(0, 0, 0, .06);
  --shadow-pop:    0 8px 30px rgba(0, 0, 0, .12);

  --header-h: 72px;
}

/* ---------- Сброс ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  font-weight: 400;
  color: var(--text);
  background: var(--white);
  overflow-x: clip;              /* защита от горизонтального вылета; clip не ломает sticky */
  -webkit-font-smoothing: antialiased;
  -moz-osx-osgrayscale: grayscale;
  text-rendering: optimizeLegibility;
}
h1, h2, h3, h4, h5 { margin: 0; color: var(--text-strong); font-weight: 500; line-height: 1.18; letter-spacing: -.01em; }
p { margin: 0; }
a { color: inherit; text-decoration: none; }
img, svg { display: block; max-width: 100%; }
button { font-family: inherit; cursor: pointer; }
ul { margin: 0; padding: 0; list-style: none; }
input, select { font-family: inherit; font-size: 16px; }
:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; border-radius: 4px; }

/* ---------- Раскладка ---------- */
.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 var(--gutter); }
.section { padding: clamp(56px, 8vw, 96px) 0; }
.section--surface { background: var(--surface); }
.section__head { max-width: 760px; margin: 0 0 clamp(32px, 4vw, 48px); }
.section__head--center { margin-left: auto; margin-right: auto; text-align: center; }
.eyebrow {
  display: inline-block; margin-bottom: 14px;
  font-size: 13px; font-weight: 500; letter-spacing: .08em; text-transform: uppercase;
  color: var(--primary-active);
}
.section__title { font-size: clamp(26px, 3.4vw, 38px); }
.section__subtitle { margin-top: 16px; font-size: clamp(16px, 1.6vw, 18px); color: var(--text); max-width: 680px; }
.section__head--center .section__subtitle { margin-left: auto; margin-right: auto; }

/* ---------- Кнопки ---------- */
.btn {
  --btn-h: 50px;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  height: var(--btn-h); padding: 0 26px;
  border: 1px solid transparent; border-radius: var(--r-btn);
  font-size: 14px; font-weight: 500; letter-spacing: .03em; text-transform: uppercase;
  white-space: nowrap; transition: background .2s ease, border-color .2s ease, color .2s ease, transform .1s ease;
}
.btn:active { transform: translateY(1px); }
.btn--primary { background: var(--primary); color: #fff; }
.btn--primary:hover { background: var(--primary-hover); }
.btn--primary:active { background: var(--primary-active); }
.btn--outline { background: transparent; border-color: var(--primary); color: var(--primary-active); }
.btn--outline:hover { background: var(--primary); border-color: var(--primary); color: #fff; }
.btn--ghost { background: var(--primary-10); color: var(--primary-active); }
.btn--ghost:hover { background: var(--primary); color: #fff; }
.btn--light { background: #fff; color: var(--ink); }
.btn--light:hover { background: var(--primary); color: #fff; }
.btn--lg { --btn-h: 56px; padding: 0 32px; font-size: 15px; }
.btn--block { display: flex; width: 100%; }

.link-arrow { display: inline-flex; align-items: center; gap: 6px; color: var(--primary-active); font-weight: 500; transition: gap .2s ease; }
.link-arrow:hover { gap: 10px; }
.link-arrow svg { width: 18px; height: 18px; }

/* =========================================================================
   Шапка
   ========================================================================= */
.header {
  position: sticky; top: 0; z-index: 100;
  height: var(--header-h);
  background: rgba(255, 255, 255, .88);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--border-soft);
}
.header__inner { display: flex; align-items: center; gap: 28px; height: 100%; }
.header__logo { display: flex; align-items: center; gap: 10px; }
.header__logo svg { width: 92px; height: 24px; }
.header__logo-sub {
  padding-left: 11px; margin-left: 1px; border-left: 1px solid var(--border);
  font-size: 12px; line-height: 1.15; color: var(--text-muted); font-weight: 500;
}
.nav { display: flex; align-items: center; gap: 4px; margin-left: 8px; }
.nav a {
  padding: 8px 12px; border-radius: 8px;
  font-size: 15px; font-weight: 500; color: var(--text-strong);
  transition: color .15s ease, background .15s ease;
}
.nav a:hover { color: var(--primary-active); background: var(--primary-05); }
.header__actions { display: flex; align-items: center; gap: 18px; margin-left: auto; }
.header__phone { display: flex; flex-direction: column; line-height: 1.1; text-align: right; }
.header__phone b { font-size: 16px; font-weight: 700; color: var(--text-strong); letter-spacing: .01em; }
.header__phone span { font-size: 12px; color: var(--text-muted); }
.burger { display: none; width: 44px; height: 44px; border: 1px solid var(--border); border-radius: 10px; background: #fff; align-items: center; justify-content: center; }
.burger svg { width: 22px; height: 22px; color: var(--ink); }

/* =========================================================================
   Hero
   ========================================================================= */
.hero { position: relative; overflow: hidden; padding: clamp(48px, 6vw, 84px) 0 clamp(56px, 6vw, 88px); }
.hero__grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 56px; align-items: center; }
.hero__eyebrow { color: var(--primary-active); }
.hero h1 { font-size: clamp(32px, 4.6vw, 52px); font-weight: 700; letter-spacing: -.02em; }
.hero h1 .accent { color: var(--primary); }
.hero__lead { margin-top: 22px; font-size: clamp(16px, 1.7vw, 19px); max-width: 560px; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 32px; }
.hero__bullets { display: flex; flex-wrap: wrap; gap: 10px 24px; margin-top: 30px; }
.hero__bullets li { display: flex; align-items: center; gap: 9px; font-size: 14.5px; color: var(--text); }
.hero__bullets svg { width: 20px; height: 20px; color: var(--primary); flex: none; }

/* Правая панель героя — брендовый визуал */
.hero__visual { position: relative; }
.hero-card {
  position: relative; border-radius: 24px; padding: 34px;
  background: linear-gradient(155deg, #E9FBEF 0%, #F4FBF6 60%, var(--surface) 100%);
  border: 1px solid var(--border-soft); overflow: hidden;
}
.hero-card::after {
  content: ""; position: absolute; right: -60px; bottom: -60px; width: 240px; height: 240px;
  background: radial-gradient(circle, rgba(26,178,72,.14), transparent 70%);
}
.hero-card__parcel { width: 132px; height: 132px; color: var(--primary); }
.hero-card__title { margin-top: 6px; font-size: 22px; font-weight: 700; color: var(--ink); }
.hero-card__title span { color: var(--primary-active); }
.hero-card__text { margin-top: 8px; font-size: 15px; color: var(--text); max-width: 320px; }
.hero-chips { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }
.hero-chip { flex: 1 1 96px; background: rgba(255,255,255,.75); border: 1px solid var(--border-soft); border-radius: 14px; padding: 14px 16px; }
.hero-chip b { display: block; font-size: 24px; font-weight: 700; color: var(--ink); letter-spacing: -.02em; }
.hero-chip span { font-size: 12.5px; color: var(--text-muted); }

/* =========================================================================
   Калькулятор
   ========================================================================= */
.calc { position: relative; }
.calc__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; align-items: start; }
.calc-card {
  background: #fff; border: 1px solid var(--border-soft); border-radius: var(--r-card);
  padding: clamp(22px, 3vw, 32px);
}
.calc-card--form { background: #fff; }
.field { margin-bottom: 18px; position: relative; }
.field:last-child { margin-bottom: 0; }
.field__label { display: block; margin-bottom: 8px; font-size: 12px; font-weight: 500; letter-spacing: .06em; text-transform: uppercase; color: var(--text-muted); }
.input {
  width: 100%; height: 52px; padding: 0 16px;
  background: var(--surface); border: 1px solid transparent; border-radius: 12px;
  color: var(--text-strong); transition: border-color .15s ease, background .15s ease;
}
.input:focus { outline: none; border-color: var(--primary); background: #fff; }
.input::placeholder { color: var(--text-muted); }
.field__row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.field__row--3 { grid-template-columns: repeat(3, 1fr); }

/* автоподсказки городов */
.suggest { position: absolute; z-index: 20; left: 0; right: 0; top: calc(100% + 6px);
  background: #fff; border: 1px solid var(--border); border-radius: 12px; box-shadow: var(--shadow-pop);
  overflow: hidden; display: none; }
.suggest.is-open { display: block; }
.suggest button { display: block; width: 100%; text-align: left; padding: 11px 16px; background: #fff; border: 0; font-size: 15px; color: var(--text-strong); }
.suggest button:hover, .suggest button.is-active { background: var(--primary-05); color: var(--primary-active); }

/* результат */
.calc-result { display: flex; flex-direction: column; height: 100%; }
.calc-result__placeholder { display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; height: 100%; min-height: 320px; color: var(--text-muted); padding: 20px; }
.calc-result__placeholder svg { width: 64px; height: 64px; color: var(--primary); opacity: .5; margin-bottom: 18px; }
.calc-compare { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.price-box { border-radius: 14px; padding: 20px; border: 1px solid var(--border-soft); }
.price-box--base { background: var(--surface); }
.price-box--deal { background: var(--primary); color: #fff; border-color: var(--primary); position: relative; }
.price-box__label { font-size: 13px; font-weight: 500; opacity: .8; }
.price-box--base .price-box__label { color: var(--text-muted); }
.price-box__price { margin-top: 8px; font-size: clamp(26px, 3.4vw, 34px); font-weight: 700; letter-spacing: -.02em; line-height: 1; }
.price-box--base .price-box__price { color: var(--text-muted); text-decoration: line-through; text-decoration-color: rgba(0,0,0,.25); }
.price-box--deal .price-box__price { color: #fff; }
.price-box__badge { display: inline-block; margin-top: 12px; padding: 4px 10px; border-radius: var(--r-badge); background: rgba(255,255,255,.22); font-size: 13px; font-weight: 700; }
.price-box__meta { margin-top: 10px; font-size: 12.5px; opacity: .85; }
.calc-savings { margin-top: 16px; padding: 16px 18px; border-radius: 14px; background: var(--primary-05); border: 1px dashed rgba(26,178,72,.4); font-size: 15px; color: var(--text-strong); }
.calc-savings b { color: var(--primary-active); }
.calc-tariffs { margin-top: 16px; }
.calc-tariffs__title { font-size: 13px; font-weight: 500; letter-spacing: .04em; text-transform: uppercase; color: var(--text-muted); margin-bottom: 10px; }
.tariff-row { display: flex; align-items: center; justify-content: space-between; padding: 11px 0; border-top: 1px solid var(--border-soft); font-size: 14.5px; }
.tariff-row span { color: var(--text-strong); }
.tariff-row em { font-style: normal; color: var(--text-muted); font-size: 13px; }
.tariff-row b { font-weight: 700; color: var(--ink); }
.calc-note { margin-top: 14px; font-size: 12px; color: var(--text-muted); }
.calc-error { margin-top: 14px; padding: 12px 16px; border-radius: 12px; background: rgba(228,0,41,.06); color: var(--error); font-size: 14px; display: none; }
.calc-error.is-visible { display: block; }
.is-loading .btn-calc { pointer-events: none; opacity: .7; }

/* =========================================================================
   Полоса цифр
   ========================================================================= */
.stats { border-top: 1px solid var(--border-soft); border-bottom: 1px solid var(--border-soft); }
.stats__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.stat { padding: 8px 0; }
.stat b { display: block; font-size: clamp(30px, 4vw, 44px); font-weight: 700; color: var(--ink); letter-spacing: -.02em; line-height: 1; }
.stat b .u { color: var(--primary); }
.stat span { display: block; margin-top: 10px; font-size: 14.5px; color: var(--text); }

/* =========================================================================
   Плашки услуг
   ========================================================================= */
.services__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.svc {
  position: relative; display: flex; flex-direction: column;
  background: var(--surface); border: 1px solid transparent; border-radius: var(--r-card);
  padding: 28px; transition: border-color .2s ease, background .2s ease, transform .2s ease;
  overflow: hidden;
}
.svc:hover { background: #fff; border-color: var(--border); transform: translateY(-3px); }
.svc__icon {
  width: 56px; height: 56px; border-radius: 14px; display: flex; align-items: center; justify-content: center;
  background: var(--primary-10); color: var(--primary-active); margin-bottom: 20px;
}
.svc__icon svg { width: 30px; height: 30px; }
.svc__title { font-size: 20px; font-weight: 500; color: var(--text-strong); }
.svc__text { margin-top: 10px; font-size: 15px; color: var(--text); flex: 1; }
.svc__link { margin-top: 20px; }
.svc__badge { position: absolute; top: 16px; right: 16px; padding: 4px 9px; border-radius: var(--r-badge); background: var(--attention); color: #fff; font-size: 11px; font-weight: 700; letter-spacing: .02em; text-transform: uppercase; }

/* =========================================================================
   Сравнение договора
   ========================================================================= */
.compare { max-width: 920px; margin: 0 auto; border: 1px solid var(--border); border-radius: var(--r-card); overflow: hidden; background: #fff; }
.compare__head { display: grid; grid-template-columns: 1fr 150px 150px; align-items: stretch; }
.compare__head > div { padding: 20px 24px; font-weight: 500; }
.compare__head-feature { color: var(--text-muted); font-size: 13px; letter-spacing: .04em; text-transform: uppercase; display: flex; align-items: center; }
.compare__head-deal { background: var(--primary); color: #fff; text-align: center; font-size: 15px; display: flex; align-items: center; justify-content: center; gap: 8px; }
.compare__head-base { background: var(--surface); color: var(--text-strong); text-align: center; font-size: 15px; display: flex; align-items: center; justify-content: center; }
.compare__row { display: grid; grid-template-columns: 1fr 150px 150px; align-items: center; border-top: 1px solid var(--border-soft); }
.compare__row:hover { background: var(--primary-05); }
.compare__feature { padding: 15px 24px; font-size: 15px; color: var(--text-strong); }
.compare__cell { padding: 15px 24px; display: flex; justify-content: center; }
.compare__cell--deal { background: rgba(26,178,72,.04); }
.mark { width: 24px; height: 24px; border-radius: 50%; display: flex; align-items: center; justify-content: center; }
.mark--yes { background: var(--primary); color: #fff; }
.mark--yes svg { width: 15px; height: 15px; }
.mark--no { color: rgba(0,0,0,.22); }
.mark--no svg { width: 18px; height: 18px; }
.compare__foot { padding: 24px; text-align: center; border-top: 1px solid var(--border-soft); background: var(--surface); }

/* =========================================================================
   10 опций
   ========================================================================= */
.options__grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.opt { display: flex; gap: 18px; padding: 24px; background: var(--surface); border-radius: var(--r-card); border: 1px solid transparent; transition: border-color .2s ease; }
.opt:hover { border-color: var(--border); }
.opt__num { flex: none; font-size: 15px; font-weight: 700; color: var(--primary); letter-spacing: .02em; }
.opt__cat { font-size: 11.5px; font-weight: 500; letter-spacing: .08em; text-transform: uppercase; color: var(--text-muted); }
.opt__title { margin-top: 3px; font-size: 17px; font-weight: 500; color: var(--text-strong); }
.opt__text { margin-top: 7px; font-size: 14.5px; color: var(--text); }

/* =========================================================================
   Как подключиться
   ========================================================================= */
.steps__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; counter-reset: step; }
.step { position: relative; padding: 28px 24px; background: #fff; border: 1px solid var(--border); border-radius: var(--r-card); }
.step__num { width: 44px; height: 44px; border-radius: 12px; background: var(--primary); color: #fff; font-size: 18px; font-weight: 700; display: flex; align-items: center; justify-content: center; margin-bottom: 18px; }
.step__title { font-size: 18px; font-weight: 500; color: var(--text-strong); }
.step__text { margin-top: 8px; font-size: 14.5px; color: var(--text); }
.step__conn { position: absolute; top: 50px; right: -12px; width: 24px; height: 2px; background: var(--border); z-index: 1; }

/* =========================================================================
   FAQ
   ========================================================================= */
.faq { max-width: 860px; margin: 0 auto; }
.faq__item { border-bottom: 1px solid var(--border); }
.faq__q { width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 24px 4px; background: none; border: 0; text-align: left; font-size: 17px; font-weight: 500; color: var(--text-strong); }
.faq__q:hover { color: var(--primary-active); }
.faq__icon { flex: none; width: 26px; height: 26px; position: relative; transition: transform .25s ease; color: var(--primary); }
.faq__icon::before, .faq__icon::after { content: ""; position: absolute; background: currentColor; border-radius: 2px; }
.faq__icon::before { top: 12px; left: 4px; right: 4px; height: 2px; }
.faq__icon::after { left: 12px; top: 4px; bottom: 4px; width: 2px; transition: transform .25s ease; }
.faq__item.is-open .faq__icon::after { transform: scaleY(0); }
.faq__a { max-height: 0; overflow: hidden; transition: max-height .3s ease; }
.faq__a-inner { padding: 0 4px 24px; font-size: 15.5px; color: var(--text); max-width: 720px; }

/* =========================================================================
   Финальный CTA + форма
   ========================================================================= */
.cta-final { background: var(--surface); }
.cta-final__grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 5vw, 64px); align-items: center; }
.cta-final h2 { font-size: clamp(26px, 3.2vw, 38px); }
.cta-final__lead { margin-top: 16px; font-size: 17px; }
.cta-final__bullets { margin-top: 24px; display: flex; flex-direction: column; gap: 12px; }
.cta-final__bullets li { display: flex; align-items: flex-start; gap: 10px; font-size: 15.5px; color: var(--text-strong); }
.cta-final__bullets svg { width: 22px; height: 22px; color: var(--primary); flex: none; margin-top: 1px; }

.lead-form { background: #fff; border: 1px solid var(--border-soft); border-radius: 20px; padding: clamp(24px, 3vw, 36px); }
.lead-form__title { font-size: 20px; font-weight: 700; color: var(--ink); }
.lead-form__sub { margin-top: 6px; margin-bottom: 22px; font-size: 14px; color: var(--text-muted); }
.lead-form .field { margin-bottom: 14px; }
.select { width: 100%; height: 52px; padding: 0 16px; background: var(--surface); border: 1px solid transparent; border-radius: 12px; color: var(--text-strong); appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%23627790' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 14px center; }
.select:focus { outline: none; border-color: var(--primary); background-color: #fff; }
.check { display: flex; align-items: flex-start; gap: 10px; margin: 6px 0 18px; font-size: 12.5px; color: var(--text-muted); line-height: 1.45; cursor: pointer; }
.check input { flex: none; width: 18px; height: 18px; margin: 1px 0 0; accent-color: var(--primary); }
.check a { color: var(--primary-active); text-decoration: underline; }
.lead-form__ok { display: none; text-align: center; padding: 30px 10px; }
.lead-form__ok svg { width: 60px; height: 60px; color: var(--primary); margin: 0 auto 16px; }
.lead-form__ok h3 { font-size: 21px; color: var(--ink); }
.lead-form__ok p { margin-top: 8px; font-size: 15px; color: var(--text); }
.lead-form.is-sent .lead-form__body { display: none; }
.lead-form.is-sent .lead-form__ok { display: block; }

/* =========================================================================
   Футер
   ========================================================================= */
.footer { background: var(--footer-bg); color: rgba(255,255,255,.7); padding: 56px 0 28px; }
.footer__top { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 40px; padding-bottom: 40px; border-bottom: 1px solid rgba(255,255,255,.1); }
.footer__logo svg { width: 104px; height: 27px; margin-bottom: 18px; }
.footer__about { font-size: 14px; line-height: 1.6; max-width: 300px; }
.footer__req { margin-top: 16px; font-size: 12.5px; line-height: 1.6; color: rgba(255,255,255,.45); max-width: 320px; }
.footer__mail { display: inline-block; margin-bottom: 16px; color: rgba(255,255,255,.7); text-decoration: underline; text-underline-offset: 2px; }
.footer__mail:hover { color: var(--primary-hover); }
.footer__col h4 { color: #fff; font-size: 15px; font-weight: 500; margin-bottom: 16px; }
.footer__col a { display: block; padding: 6px 0; font-size: 14px; color: rgba(255,255,255,.7); transition: color .15s ease; }
.footer__col a:hover { color: var(--primary-hover); }
.footer__contacts b { display: block; color: #fff; font-size: 20px; font-weight: 700; margin-bottom: 4px; }
.footer__contacts .muted { font-size: 13px; margin-bottom: 16px; }
.footer__bottom { display: flex; flex-wrap: wrap; gap: 12px 32px; justify-content: space-between; padding-top: 24px; font-size: 13px; color: rgba(255,255,255,.5); }
.footer__legal { display: flex; flex-wrap: wrap; gap: 8px 24px; }
.footer__legal a { color: rgba(255,255,255,.5); text-decoration: underline; text-underline-offset: 2px; }
.footer__legal a:hover { color: rgba(255,255,255,.8); }
.footer__warn { margin-top: 18px; font-size: 12px; color: rgba(255,255,255,.4); }

/* =========================================================================
   Юридические страницы (privacy, consent)
   ========================================================================= */
.legal-header { height: var(--header-h); border-bottom: 1px solid var(--border-soft); display: flex; align-items: center; }
.legal-header__inner { display: flex; align-items: center; justify-content: space-between; }
.legal-back { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 500; color: var(--primary-active); }
.legal-back:hover { gap: 12px; }
.legal-back svg { width: 18px; height: 18px; }
.legal { padding: clamp(36px, 5vw, 64px) 0 clamp(48px, 6vw, 80px); }
.legal__wrap { max-width: 820px; margin: 0 auto; }
.legal h1 { font-size: clamp(26px, 3.4vw, 36px); font-weight: 700; margin-bottom: 12px; }
.legal__meta { font-size: 14px; color: var(--text-muted); margin-bottom: 36px; padding-bottom: 24px; border-bottom: 1px solid var(--border); }
.legal h2 { font-size: 20px; font-weight: 500; margin: 34px 0 12px; color: var(--text-strong); }
.legal p { font-size: 15.5px; line-height: 1.7; margin-bottom: 12px; }
.legal ul { margin: 0 0 16px; padding-left: 4px; }
.legal ul li { position: relative; padding-left: 22px; margin-bottom: 9px; font-size: 15.5px; line-height: 1.65; }
.legal ul li::before { content: ""; position: absolute; left: 4px; top: 10px; width: 6px; height: 6px; border-radius: 50%; background: var(--primary); }
.legal ol { margin: 0 0 16px; padding-left: 22px; }
.legal ol li { margin-bottom: 9px; font-size: 15.5px; line-height: 1.65; }
.legal a { color: var(--primary-active); text-decoration: underline; text-underline-offset: 2px; }
.legal__box { background: var(--surface); border-radius: var(--r-card); padding: 22px 24px; margin: 18px 0; }
.legal__box p:last-child { margin-bottom: 0; }

/* =========================================================================
   Мобильное меню
   ========================================================================= */
.mobile-menu { position: fixed; inset: var(--header-h) 0 0; background: #fff; z-index: 99; padding: 24px var(--gutter); transform: translateX(100%); transition: transform .25s ease; overflow-y: auto; }
.mobile-menu.is-open { transform: translateX(0); }
.mobile-menu a { display: block; padding: 16px 0; font-size: 18px; font-weight: 500; color: var(--text-strong); border-bottom: 1px solid var(--border-soft); }
.mobile-menu .btn { margin-top: 24px; }
.mobile-menu__phone { margin-top: 24px; font-size: 22px; font-weight: 700; color: var(--ink); }
body.menu-open { overflow: hidden; }

/* =========================================================================
   Адаптив
   ========================================================================= */
@media (max-width: 1100px) {
  .nav { display: none; }
  .burger { display: flex; }
  .header__phone { display: none; }
  .options__grid { grid-template-columns: 1fr; }
}
@media (max-width: 960px) {
  .hero__grid { grid-template-columns: 1fr; gap: 40px; }
  .calc__grid { grid-template-columns: 1fr; }
  .services__grid { grid-template-columns: repeat(2, 1fr); }
  .steps__grid { grid-template-columns: repeat(2, 1fr); }
  .step__conn { display: none; }
  .cta-final__grid { grid-template-columns: 1fr; }
  .footer__top { grid-template-columns: 1fr 1fr; gap: 32px; }
}
@media (max-width: 680px) {
  :root { --gutter: 16px; }
  .header__actions .btn--primary { display: none; }  /* CTA уходит в бургер-меню */
  .header__inner { gap: 12px; }
  .stats__grid { grid-template-columns: 1fr 1fr; gap: 28px 20px; }
  .services__grid { grid-template-columns: 1fr; }
  .steps__grid { grid-template-columns: 1fr; }
  .compare { border: 0; border-radius: 0; }
  .compare__head { grid-template-columns: 1fr 74px 74px; }
  .compare__row { grid-template-columns: 1fr 74px 74px; }
  .compare__head > div { padding: 14px 10px; font-size: 12px; }
  .compare__head-deal, .compare__head-base { font-size: 12px; }
  .compare__feature { padding: 13px 12px; font-size: 14px; }
  .compare__cell { padding: 13px 10px; }
  .hero__cta { flex-direction: column; }
  .hero__cta .btn { width: 100%; }
  .field__row { grid-template-columns: 1fr 1fr; }
  .footer__top { grid-template-columns: 1fr; }
  .footer__bottom { flex-direction: column; }
}
@media (max-width: 400px) {
  .calc-compare { grid-template-columns: 1fr; }
}

/* уменьшение движения */
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; scroll-behavior: auto !important; }
}
