/* ==========================================================================
   купить-итс.рф — основной стиль
   ========================================================================== */
:root {
  --bg: #f4f6fb;
  --surface: #ffffff;
  --surface-2: #eef1f8;
  --ink: #0d1330;
  --ink-2: #2a3152;
  --muted: #5d6585;
  --line: #e1e5f0;
  --brand: #2f55ff;
  --brand-ink: #1b38c9;
  --violet: #7b3cff;
  --accent: #ffc21a;
  --accent-ink: #1a1400;
  --hot: #ff4d2e;
  --ok: #16a34a;
  --night: #080c24;
  --night-2: #10173d;
  --radius: 20px;
  --radius-sm: 12px;
  --shadow: 0 1px 2px rgba(13,19,48,.04), 0 8px 24px rgba(13,19,48,.06);
  --shadow-lg: 0 2px 4px rgba(13,19,48,.05), 0 24px 60px rgba(13,19,48,.12);
  --wrap: 1200px;
  --font: "Segoe UI", -apple-system, BlinkMacSystemFont, Roboto, "Helvetica Neue", Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 90px; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font: 400 17px/1.6 var(--font);
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
img, svg { max-width: 100%; display: block; }
a { color: var(--brand); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--brand-ink); }
h1, h2, h3, h4 { line-height: 1.15; margin: 0 0 .5em; letter-spacing: -.02em; font-weight: 800; }
h1 { font-size: clamp(34px, 5.4vw, 62px); letter-spacing: -.035em; }
h2 { font-size: clamp(28px, 3.6vw, 44px); }
h3 { font-size: clamp(20px, 2vw, 24px); letter-spacing: -.01em; }
p { margin: 0 0 1em; }
ul, ol { margin: 0 0 1em; padding-left: 1.2em; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; border-radius: 6px; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }
.section { padding: clamp(56px, 8vw, 104px) 0; }
.section--tight { padding: clamp(40px, 5vw, 64px) 0; }
.section--white { background: var(--surface); }
.section-head { max-width: 760px; margin-bottom: clamp(28px, 4vw, 48px); }
.section-head--center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head p { color: var(--muted); font-size: 19px; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
  color: var(--brand); margin-bottom: 14px;
}
.eyebrow::before { content: ""; width: 18px; height: 2px; background: currentColor; border-radius: 2px; }
.muted { color: var(--muted); }
.nowrap { white-space: nowrap; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- Кнопки ---------- */
.btn {
  --b-bg: var(--brand); --b-ink: #fff;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 0 26px; border: 0; border-radius: 14px;
  background: var(--b-bg); color: var(--b-ink); font-weight: 700; font-size: 16px;
  text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: transform .15s ease, box-shadow .2s ease, background .2s ease;
}
.btn:hover { color: var(--b-ink); transform: translateY(-1px); box-shadow: 0 10px 24px rgba(47,85,255,.28); }
.btn:active { transform: translateY(0); }
.btn--accent { --b-bg: var(--accent); --b-ink: var(--accent-ink); }
.btn--accent:hover { box-shadow: 0 10px 28px rgba(255,194,26,.45); }
.btn--ghost { --b-bg: transparent; --b-ink: var(--ink); box-shadow: inset 0 0 0 2px var(--line); }
.btn--ghost:hover { box-shadow: inset 0 0 0 2px var(--ink); }
.btn--ghost-light { --b-bg: rgba(255,255,255,.08); --b-ink: #fff; box-shadow: inset 0 0 0 1px rgba(255,255,255,.25); }
.btn--ghost-light:hover { --b-bg: rgba(255,255,255,.14); box-shadow: inset 0 0 0 1px rgba(255,255,255,.5); }
.btn--block { width: 100%; }
.btn--sm { min-height: 42px; padding: 0 18px; font-size: 15px; border-radius: 11px; }
.btn svg { width: 20px; height: 20px; flex: none; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- Шапка ---------- */
.topbar { background: var(--night); color: #c9cff0; font-size: 14px; }
.topbar .wrap { display: flex; gap: 24px; align-items: center; justify-content: space-between; min-height: 38px; }
.topbar a { color: #fff; text-decoration: none; }
.topbar__info { display: flex; gap: 20px; flex-wrap: wrap; }
.topbar__dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: #22c55e; margin-right: 6px; box-shadow: 0 0 0 3px rgba(34,197,94,.2); }

.header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.86); backdrop-filter: saturate(1.6) blur(14px); -webkit-backdrop-filter: saturate(1.6) blur(14px);
  border-bottom: 1px solid rgba(225,229,240,.8);
}
.header .wrap { display: flex; align-items: center; gap: 28px; min-height: 72px; }
.logo { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--ink); flex: none; }
.logo__mark {
  width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center;
  background: linear-gradient(135deg, var(--brand), var(--violet)); color: #fff; font-weight: 900; font-size: 15px; letter-spacing: -.02em;
  box-shadow: 0 6px 16px rgba(47,85,255,.35);
}
.logo__text { line-height: 1.15; display: block; }
.logo__name, .logo__sub { display: block; white-space: nowrap; }
.logo__name { font-weight: 800; font-size: 18px; letter-spacing: -.02em; }
.logo__sub { font-size: 12px; color: var(--muted); }
.logo:hover { color: var(--ink); }

.nav { display: flex; align-items: center; gap: 4px; margin-left: auto; }
.nav__item { position: relative; }
.nav__link {
  display: flex; align-items: center; gap: 6px; padding: 10px 14px; border-radius: 10px;
  color: var(--ink-2); text-decoration: none; font-weight: 600; font-size: 15px; background: none; border: 0; cursor: pointer; white-space: nowrap;
}
.nav__link:hover, .nav__item:focus-within > .nav__link { background: var(--surface-2); color: var(--ink); }
.nav__link[aria-current="page"] { color: var(--brand); }
.nav__link svg { width: 14px; height: 14px; transition: transform .2s; }
.nav__drop {
  position: absolute; top: calc(100% + 8px); left: -12px; min-width: 300px; padding: 10px;
  background: #fff; border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--shadow-lg);
  opacity: 0; visibility: hidden; transform: translateY(6px); transition: .18s ease;
}
.nav__drop::before { content: ""; position: absolute; left: 0; right: 0; top: -12px; height: 12px; }
.nav__item:hover .nav__drop, .nav__item:focus-within .nav__drop { opacity: 1; visibility: visible; transform: none; }
.nav__item:hover .nav__link svg { transform: rotate(180deg); }
.nav__drop a { display: block; padding: 10px 12px; border-radius: 10px; color: var(--ink); text-decoration: none; }
.nav__drop a:hover { background: var(--surface-2); }
.nav__drop b { display: block; font-size: 15px; }
.nav__drop small { color: var(--muted); font-size: 13px; }

.header__cta { display: flex; align-items: center; gap: 14px; flex: none; }
.header__phone { text-decoration: none; color: var(--ink); font-weight: 800; font-size: 17px; white-space: nowrap; }
.header__phone small { display: block; font-weight: 500; font-size: 12px; color: var(--muted); }
.burger { display: none; width: 46px; height: 46px; border-radius: 12px; border: 1px solid var(--line); background: #fff; cursor: pointer; margin-left: auto; place-items: center; }
.burger span, .burger span::before, .burger span::after { display: block; width: 20px; height: 2px; background: var(--ink); border-radius: 2px; position: relative; transition: .2s; }
.burger span::before, .burger span::after { content: ""; position: absolute; left: 0; }
.burger span::before { top: -6px; } .burger span::after { top: 6px; }
.menu-open .burger span { background: transparent; }
.menu-open .burger span::before { top: 0; transform: rotate(45deg); }
.menu-open .burger span::after { top: 0; transform: rotate(-45deg); }

@media (max-width: 1080px) {
  .header__phone small { display: none; }
  .nav__link { padding: 10px 10px; }
}
@media (max-width: 960px) {
  .topbar__hide-m { display: none; }
  .burger { display: grid; }
  .header__cta .btn { display: none; }
  .header__cta { margin-left: 0; }
  .nav {
    position: absolute; top: 100%; left: 0; right: 0; height: calc(100vh - 72px); height: calc(100dvh - 72px); z-index: 49; display: block; margin: 0; padding: 16px 20px 90px;
    background: #fff; overflow-y: auto; transform: translateX(100%); transition: transform .25s ease; visibility: hidden;
  }
  .menu-open .nav { transform: none; visibility: visible; }
  .menu-open { overflow: hidden; }
  .nav__link { width: 100%; padding: 14px 4px; font-size: 18px; border-radius: 0; border-bottom: 1px solid var(--line); }
  .nav__link:hover { background: none; }
  .nav__link svg { display: none; }
  .nav__drop { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; border: 0; padding: 4px 0 8px 8px; min-width: 0; }
  .nav__drop small { display: none; }
  .nav__mobile-cta { display: grid !important; gap: 10px; margin-top: 20px; }
}
@media (max-width: 520px) {
  .header__phone { font-size: 15px; }
  .logo__sub { display: none; }
  .logo__mark { width: 38px; height: 38px; }
}
.nav__mobile-cta { display: none; }

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden; color: #fff;
  background:
    radial-gradient(900px 500px at 85% -10%, rgba(123,60,255,.55), transparent 60%),
    radial-gradient(700px 500px at 10% 110%, rgba(47,85,255,.55), transparent 60%),
    linear-gradient(180deg, var(--night), var(--night-2));
  padding: clamp(48px, 7vw, 96px) 0 clamp(56px, 8vw, 110px);
}
.hero::before {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .5;
  background-image: linear-gradient(rgba(255,255,255,.05) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.05) 1px, transparent 1px);
  background-size: 56px 56px;
  -webkit-mask-image: radial-gradient(ellipse at 60% 30%, #000 20%, transparent 75%); mask-image: radial-gradient(ellipse at 60% 30%, #000 20%, transparent 75%);
}
.hero .wrap { position: relative; }
.hero__grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: clamp(32px, 5vw, 64px); align-items: center; }
.hero h1 { color: #fff; margin-bottom: 20px; }
.hero h1 em { font-style: normal; background: linear-gradient(90deg, var(--accent), #ff8a3d); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero__lead { font-size: clamp(18px, 1.6vw, 21px); color: #c9d0f5; max-width: 620px; margin-bottom: 28px; }
.hero .eyebrow { color: var(--accent); }
.hero__badges { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 30px; }
.chip {
  display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 999px;
  background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.14); color: #e5e9ff; font-size: 14px; font-weight: 600;
}
.chip svg { width: 16px; height: 16px; color: var(--accent); }
.hero--page { padding: clamp(36px, 5vw, 64px) 0 clamp(44px, 6vw, 80px); }
.hero--page h1 { font-size: clamp(32px, 4.6vw, 54px); }

/* Hero price card */
.price-card {
  position: relative; border-radius: 26px; padding: 28px;
  background: linear-gradient(180deg, rgba(255,255,255,.12), rgba(255,255,255,.04));
  border: 1px solid rgba(255,255,255,.18); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 30px 80px rgba(0,0,0,.35);
}
.price-card__tag { position: absolute; top: -14px; right: 22px; background: var(--hot); color: #fff; font-size: 13px; font-weight: 800; padding: 6px 12px; border-radius: 999px; box-shadow: 0 8px 20px rgba(255,77,46,.4); }
.price-card__label { color: #aab3e6; font-size: 14px; font-weight: 600; text-transform: uppercase; letter-spacing: .06em; }
.price-card__name { font-size: 26px; font-weight: 800; margin: 4px 0 14px; }
.price-card__price { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.price-card__price strong { font-size: 52px; letter-spacing: -.03em; line-height: 1; }
.price-card__price s { color: #8d96c9; font-size: 20px; }
.price-card__note { color: #aab3e6; font-size: 14px; margin: 8px 0 18px; }
.price-card ul { list-style: none; padding: 0; margin: 0 0 22px; display: grid; gap: 9px; }
.price-card li { display: flex; gap: 10px; font-size: 15px; color: #dfe4ff; }
.price-card li svg { width: 18px; height: 18px; color: var(--accent); flex: none; margin-top: 3px; }

@media (max-width: 960px) {
  .hero__grid { grid-template-columns: 1fr; }
}

/* ---------- Полоса фактов ---------- */
.facts { margin-top: -40px; position: relative; z-index: 2; }
.facts__grid { display: grid; grid-template-columns: repeat(4, 1fr); background: #fff; border-radius: var(--radius); box-shadow: var(--shadow-lg); overflow: hidden; }
.fact { padding: 24px 26px; border-right: 1px solid var(--line); }
.fact:last-child { border-right: 0; }
.fact b { display: block; font-size: 28px; letter-spacing: -.03em; line-height: 1.1; color: var(--ink); }
.fact span { color: var(--muted); font-size: 15px; }
@media (max-width: 860px) { .facts__grid { grid-template-columns: 1fr 1fr; } .fact:nth-child(2) { border-right: 0; } .fact:nth-child(-n+2) { border-bottom: 1px solid var(--line); } }
@media (max-width: 420px) { .fact { padding: 18px; } .fact b { font-size: 22px; } }

/* ---------- Карточки ---------- */
.grid { display: grid; gap: 20px; }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 960px) { .grid--3, .grid--4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .grid--2, .grid--3, .grid--4 { grid-template-columns: 1fr; } }

.card {
  position: relative; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 28px; box-shadow: var(--shadow); transition: transform .2s ease, box-shadow .2s ease, border-color .2s;
}
a.card { display: block; color: inherit; text-decoration: none; }
a.card:hover, .card--hover:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); border-color: #cdd5ee; }
.card h3 { margin-bottom: 10px; }
.card p:last-child { margin-bottom: 0; }
.card .muted { font-size: 15.5px; }
.icon {
  width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center; margin-bottom: 18px;
  background: linear-gradient(135deg, rgba(47,85,255,.12), rgba(123,60,255,.12)); color: var(--brand);
}
.icon svg { width: 26px; height: 26px; }
.icon--accent { background: rgba(255,194,26,.18); color: #b07d00; }
.card__more { display: inline-flex; align-items: center; gap: 6px; margin-top: 14px; font-weight: 700; color: var(--brand); font-size: 15px; }
.card__more svg { width: 16px; height: 16px; transition: transform .2s; }
a.card:hover .card__more svg { transform: translateX(4px); }

/* ---------- Тарифы ---------- */
.tariffs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; align-items: stretch; }
@media (max-width: 1000px) { .tariffs { grid-template-columns: 1fr; max-width: 560px; margin: 0 auto; } }
.tariff { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); border-radius: 24px; padding: 30px; box-shadow: var(--shadow); position: relative; }
.tariff--hit {
  border: 2px solid transparent;
  background: linear-gradient(#fff, #fff) padding-box, linear-gradient(135deg, var(--brand), var(--violet), var(--accent)) border-box;
  box-shadow: 0 30px 70px rgba(47,85,255,.18);
}
.tariff__badge { align-self: flex-start; font-size: 13px; font-weight: 800; padding: 6px 12px; border-radius: 999px; background: var(--surface-2); color: var(--ink-2); margin-bottom: 16px; }
.tariff--hit .tariff__badge { background: var(--hot); color: #fff; }
.tariff h3 { font-size: 28px; margin-bottom: 8px; }
.tariff__desc { color: var(--muted); font-size: 15.5px; margin-bottom: 18px; }
.tariff__price { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.tariff__price strong { font-size: 44px; letter-spacing: -.03em; line-height: 1; }
.tariff__price s { color: var(--muted); font-size: 18px; }
.tariff__per { color: var(--muted); font-size: 14px; margin: 6px 0 20px; }
.tariff ul { list-style: none; padding: 0; margin: 0 0 24px; display: grid; gap: 10px; flex: 1; align-content: start; }
.tariff li { display: flex; gap: 10px; font-size: 15.5px; }
.tariff li svg { width: 20px; height: 20px; flex: none; color: var(--ok); margin-top: 2px; }
.tariff__actions { display: grid; gap: 10px; }
.tariff__link { text-align: center; font-weight: 600; font-size: 15px; }

/* ---------- Калькулятор ---------- */
.calc { display: grid; grid-template-columns: 1.1fr .9fr; background: #fff; border-radius: 28px; overflow: hidden; box-shadow: var(--shadow-lg); border: 1px solid var(--line); }
.calc__form { padding: clamp(24px, 4vw, 44px); }
.calc__result {
  padding: clamp(24px, 4vw, 44px); color: #fff; display: flex; flex-direction: column; justify-content: center;
  background: radial-gradient(500px 300px at 100% 0, rgba(123,60,255,.6), transparent 60%), linear-gradient(160deg, var(--night-2), var(--night));
}
.calc__group { margin-bottom: 24px; }
.calc__label { font-weight: 700; margin-bottom: 10px; display: block; font-size: 15px; }
.seg { display: flex; flex-wrap: wrap; gap: 8px; }
.seg input { position: absolute; opacity: 0; pointer-events: none; }
.seg label {
  padding: 11px 18px; border-radius: 12px; border: 1.5px solid var(--line); background: #fff; cursor: pointer;
  font-weight: 600; font-size: 15px; transition: .15s; user-select: none;
}
.seg label:hover { border-color: #b9c3e6; }
.seg input:checked + label { border-color: var(--brand); background: rgba(47,85,255,.08); color: var(--brand-ink); }
.seg input:focus-visible + label { outline: 3px solid var(--accent); outline-offset: 2px; }
.seg input:disabled + label { opacity: .35; cursor: not-allowed; }
.calc__sum { font-size: clamp(40px, 5vw, 58px); font-weight: 800; letter-spacing: -.03em; line-height: 1; margin: 6px 0 8px; }
.calc__sub { color: #b9c1ef; font-size: 15px; }
.calc__save { display: inline-flex; margin-top: 14px; padding: 7px 12px; border-radius: 10px; background: rgba(34,197,94,.16); color: #7cf0a6; font-weight: 700; font-size: 14px; }
.calc__save[hidden] { display: none; }
.calc__result .btn { margin-top: 26px; }
.calc__hint { color: #8f98c8; font-size: 13px; margin-top: 14px; }
@media (max-width: 860px) { .calc { grid-template-columns: 1fr; } }

/* ---------- Таблица сравнения ---------- */
.table-wrap { overflow-x: auto; background: #fff; border-radius: var(--radius); border: 1px solid var(--line); box-shadow: var(--shadow); }
.table { width: 100%; border-collapse: collapse; min-width: 560px; font-size: 15.5px; }
.table th, .table td { padding: 14px 18px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: top; }
.table thead th { background: var(--surface-2); font-size: 14px; text-transform: uppercase; letter-spacing: .05em; color: var(--ink-2); position: sticky; top: 0; }
.table tbody tr:hover td { background: #fafbff; }
.table .group td { background: #f7f8fd; font-weight: 800; color: var(--ink); }
.table td:not(:first-child), .table th:not(:first-child) { text-align: center; width: 22%; }
.yes { color: var(--ok); font-weight: 700; }
.no { color: #a3a9c2; }

/* ---------- Шаги ---------- */
.steps { counter-reset: s; display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.step { position: relative; padding: 28px 24px 24px; background: #fff; border-radius: var(--radius); border: 1px solid var(--line); box-shadow: var(--shadow); }
.step::before {
  counter-increment: s; content: counter(s, decimal-leading-zero);
  display: block; font-size: 15px; font-weight: 800; color: var(--brand); margin-bottom: 14px;
  width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: rgba(47,85,255,.1);
}
.step h3 { font-size: 19px; }
.step p { color: var(--muted); font-size: 15.5px; margin: 0; }
@media (max-width: 960px) { .steps { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .steps { grid-template-columns: 1fr; } }

/* ---------- FAQ ---------- */
.faq { display: grid; gap: 12px; max-width: 900px; }
.faq--center { margin: 0 auto; }
.faq details { background: #fff; border: 1px solid var(--line); border-radius: 16px; transition: box-shadow .2s, border-color .2s; }
.faq details[open] { box-shadow: var(--shadow); border-color: #cfd6ee; }
.faq summary { list-style: none; cursor: pointer; padding: 20px 60px 20px 24px; font-weight: 700; font-size: 17.5px; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; position: absolute; right: 22px; top: 50%; width: 24px; height: 24px; margin-top: -12px; border-radius: 50%;
  background: var(--surface-2) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%232f55ff' stroke-width='2.5' stroke-linecap='round'%3E%3Cpath d='M12 7v10M7 12h10'/%3E%3C/svg%3E") center/16px no-repeat;
  transition: transform .2s;
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq__body { padding: 0 24px 22px; color: var(--ink-2); }
.faq__body p:last-child { margin-bottom: 0; }

/* ---------- Текстовые страницы ---------- */
.prose { max-width: 820px; font-size: 18px; }
.prose h2 { font-size: clamp(24px, 3vw, 34px); margin-top: 1.6em; }
.prose h3 { margin-top: 1.4em; }
.prose li { margin-bottom: .4em; }
.prose table { width: 100%; border-collapse: collapse; margin: 0 0 1.4em; font-size: 16px; }
.prose th, .prose td { border: 1px solid var(--line); padding: 10px 12px; text-align: left; }
.prose th { background: var(--surface-2); }
.layout { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 48px; align-items: start; }
.aside { position: sticky; top: 96px; display: grid; gap: 16px; }
@media (max-width: 1000px) { .layout { grid-template-columns: 1fr; } .aside { position: static; } }

.note { padding: 18px 22px; border-radius: 14px; background: rgba(47,85,255,.07); border-left: 4px solid var(--brand); margin: 0 0 1.4em; font-size: 16.5px; }
.note--accent { background: rgba(255,194,26,.14); border-color: var(--accent); }

.checklist { list-style: none; padding: 0; display: grid; gap: 12px; }
.checklist li { display: flex; gap: 12px; }
.checklist li::before {
  content: ""; flex: none; width: 24px; height: 24px; margin-top: 2px; border-radius: 50%;
  background: rgba(22,163,74,.12) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2316a34a' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 12.5l4 4 8-9'/%3E%3C/svg%3E") center/14px no-repeat;
}

/* ---------- Хлебные крошки ---------- */
.crumbs { font-size: 14px; color: #9aa3d6; margin-bottom: 22px; }
.crumbs ol { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.crumbs li + li::before { content: "/"; margin-right: 6px; opacity: .5; }
.crumbs a { color: #c9d0f5; text-decoration: none; }
.crumbs a:hover { color: #fff; }

/* ---------- CTA-блок ---------- */
.cta {
  position: relative; overflow: hidden; border-radius: 28px; padding: clamp(28px, 5vw, 56px); color: #fff;
  background: radial-gradient(600px 300px at 100% 0, rgba(255,194,26,.35), transparent 60%), radial-gradient(600px 400px at 0 100%, rgba(123,60,255,.6), transparent 60%), linear-gradient(135deg, #1b2a8f, var(--night));
  display: grid; grid-template-columns: 1.1fr .9fr; gap: 40px; align-items: center;
}
.cta h2 { color: #fff; }
.cta p { color: #cfd5fb; font-size: 18px; }
@media (max-width: 900px) { .cta { grid-template-columns: 1fr; } }

/* ---------- Формы ---------- */
.form { display: grid; gap: 12px; }
.form--card { background: #fff; color: var(--ink); padding: 26px; border-radius: 20px; box-shadow: var(--shadow-lg); }
.form__title { font-size: 20px; font-weight: 800; margin: 0 0 4px; }
.field { display: grid; gap: 6px; }
.field label { font-size: 14px; font-weight: 600; color: var(--ink-2); }
.input {
  width: 100%; min-height: 52px; padding: 12px 16px; border-radius: 12px; border: 1.5px solid var(--line); background: #fff;
  font-size: 16px; transition: border-color .15s, box-shadow .15s;
}
textarea.input { min-height: 90px; resize: vertical; }
.input:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 4px rgba(47,85,255,.14); }
.input.is-error { border-color: var(--hot); }
.field__err { color: var(--hot); font-size: 13px; min-height: 0; }
.consent { display: flex; gap: 10px; font-size: 13px; color: var(--muted); line-height: 1.45; cursor: pointer; }
.consent input { width: 18px; height: 18px; flex: none; margin-top: 1px; accent-color: var(--brand); }
.consent.is-error { color: var(--hot); }
.hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; opacity: 0; }
.form__alt { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; font-size: 14px; color: var(--muted); margin-top: 4px; }
.msgr { display: inline-flex; align-items: center; gap: 6px; padding: 7px 12px; border-radius: 10px; background: var(--surface-2); color: var(--ink); text-decoration: none; font-weight: 600; font-size: 14px; }
.msgr:hover { background: #e3e8f6; color: var(--ink); }
.msgr svg { width: 18px; height: 18px; }
.form-status { padding: 14px; border-radius: 12px; font-weight: 600; font-size: 15px; }
.form-status--ok { background: rgba(22,163,74,.1); color: #15803d; }
.form-status--err { background: rgba(255,77,46,.1); color: #c2410c; }

/* ---------- Модалка ---------- */
.modal { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; padding: 16px; background: rgba(8,12,36,.62); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); opacity: 0; visibility: hidden; transition: .2s; }
.modal.is-open { opacity: 1; visibility: visible; }
.modal__box { position: relative; width: 100%; max-width: 460px; max-height: calc(100vh - 32px); overflow-y: auto; transform: translateY(14px) scale(.98); transition: .25s ease; }
.modal.is-open .modal__box { transform: none; }
.modal__close { position: absolute; top: 12px; right: 12px; width: 38px; height: 38px; border-radius: 50%; border: 0; background: var(--surface-2); cursor: pointer; display: grid; place-items: center; z-index: 2; }
.modal__close svg { width: 18px; height: 18px; }
.modal__summary { background: var(--surface-2); border-radius: 12px; padding: 12px 14px; font-size: 14.5px; }
.modal__summary:empty { display: none; }

/* ---------- Подвал ---------- */
.footer { background: var(--night); color: #aab2de; padding: 64px 0 28px; font-size: 15px; }
.footer a { color: #dfe3ff; text-decoration: none; }
.footer a:hover { color: #fff; text-decoration: underline; }
.footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 36px; }
.footer h4 { color: #fff; font-size: 15px; text-transform: uppercase; letter-spacing: .06em; margin-bottom: 16px; }
.footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 9px; }
.footer .logo { color: #fff; margin-bottom: 16px; }
.footer .logo__sub { color: #8f98c8; }
.footer__phone { font-size: 22px; font-weight: 800; color: #fff !important; }
.footer__legal { border-top: 1px solid rgba(255,255,255,.1); margin-top: 44px; padding-top: 22px; display: flex; flex-wrap: wrap; gap: 12px 28px; justify-content: space-between; font-size: 13px; color: #7f88b8; }
@media (max-width: 960px) { .footer__grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer__grid { grid-template-columns: 1fr; } }

/* ---------- Мобильная панель ---------- */
.mbar { display: none; }
@media (max-width: 760px) {
  .mbar {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 60; display: grid; grid-template-columns: 1fr 1fr; gap: 8px;
    padding: 10px 12px calc(10px + env(safe-area-inset-bottom)); background: rgba(255,255,255,.95); backdrop-filter: blur(10px);
    border-top: 1px solid var(--line); transform: translateY(110%); transition: transform .25s ease;
  }
  .mbar.is-visible { transform: none; }
  .mbar .btn { min-height: 48px; padding: 0 12px; }
  body { padding-bottom: 72px; }
}

/* ---------- Прочее ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 5vw, 64px); align-items: center; }
@media (max-width: 900px) { .split { grid-template-columns: 1fr; } }
.badge-row { display: flex; flex-wrap: wrap; gap: 8px; }
.badge { display: inline-block; padding: 6px 12px; border-radius: 999px; background: var(--surface-2); font-size: 14px; font-weight: 600; color: var(--ink-2); text-decoration: none; }
a.badge:hover { background: #e2e7f6; color: var(--brand-ink); }
.req { display: grid; grid-template-columns: 200px 1fr; gap: 0; border-top: 1px solid var(--line); }
.req > * { padding: 12px 0; border-bottom: 1px solid var(--line); margin: 0; }
.req dt { color: var(--muted); }
.req dd { font-weight: 600; }
@media (max-width: 560px) { .req { grid-template-columns: 1fr; } .req dt { border-bottom: 0; padding-bottom: 0; } }
.partner-badge {
  display: flex; gap: 16px; align-items: center; padding: 20px 22px; border-radius: 18px; background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow);
}
.partner-badge__seal { width: 64px; height: 64px; flex: none; border-radius: 50%; display: grid; place-items: center; background: conic-gradient(from 0deg, var(--accent), #ff8a3d, var(--accent)); color: var(--accent-ink); font-weight: 900; font-size: 14px; text-align: center; line-height: 1.05; box-shadow: inset 0 0 0 4px #fff, 0 6px 16px rgba(255,194,26,.4); }
.partner-badge b { display: block; font-size: 17px; }
.partner-badge span { color: var(--muted); font-size: 14.5px; }

.reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
  .reveal { opacity: 1; transform: none; }
}
.no-js .reveal { opacity: 1; transform: none; }

.err404 { text-align: center; padding: 120px 0; }
.err404 b { font-size: clamp(90px, 18vw, 180px); line-height: 1; letter-spacing: -.06em; background: linear-gradient(135deg, var(--brand), var(--violet)); -webkit-background-clip: text; background-clip: text; color: transparent; display: block; }
.form--card .form__title { color: var(--ink); }
.form--card p.muted { color: var(--muted); font-size: 15px; }
.topbar__phone-m { display: none; font-weight: 700; }
@media (max-width: 960px) { .header .wrap { gap: 12px; } }
@media (max-width: 600px) {
  .header__cta { display: none; }
  .topbar { font-size: 12.5px; }
  .topbar .wrap { gap: 10px; white-space: nowrap; }
  .topbar__phone-m { display: inline; }
}
