/* digigreens. Токены и правила: DESIGN.md */
:root {
  --ink: #0F2A1E;
  --text: #24352C;
  --muted: #56675E;
  --green: #127A4B;
  --green-d: #0C5A37;
  --forest: #0E3B28;
  --paper: #F4F8F2;
  --mint: #E7F2EA;
  --mint-2: #CFE5D7;
  --line: #D6E1D9;
  --gold: #CBA64E;
  --gold-d: #9C7A2C;
  --gold-l: #E8D08A;
  --serial: #A33A2A;
  --no: #B3261E;

  --font: 'IBM Plex Sans', 'Segoe UI', Arial, sans-serif;
  --g: clamp(16px, 3.2vw, 40px);
  --sec: clamp(56px, 7vw, 104px);
  --max: 1240px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 88px; -webkit-text-size-adjust: 100%; }
/* Фон не белый, а цвета купюрной бумаги: белыми остаются только карточки */
body { margin: 0; background: var(--paper); color: var(--text); font: 400 17px/1.55 var(--font); overflow-x: clip; }
h1, h2, h3, p, ul, ol, figure, dl, dd, fieldset { margin: 0; padding: 0; }
fieldset { border: 0; min-width: 0; }
ul, ol { list-style: none; }
a { color: var(--green); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--green-d); text-decoration-thickness: 2px; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
svg { display: block; }
[hidden] { display: none !important; }

h1, h2, h3 { color: var(--ink); text-wrap: balance; }
h1 { font-size: clamp(36px, 4.4vw, 60px); font-weight: 700; line-height: 1.08; letter-spacing: -.025em; }
h2 { font-size: clamp(29px, 3.1vw, 42px); font-weight: 700; line-height: 1.15; letter-spacing: -.02em; }
h3 { font-size: 19px; font-weight: 600; line-height: 1.3; letter-spacing: -.005em; }
p { text-wrap: pretty; }

:focus-visible { outline: 3px solid var(--green); outline-offset: 2px; }
.cta :focus-visible, .foot :focus-visible { outline-color: #fff; }
.form :focus-visible { outline-color: var(--green); }

.skip { position: absolute; left: -9999px; top: 0; z-index: 99; background: var(--ink); color: #fff; padding: 10px 16px; }
.skip:focus { left: 8px; top: 8px; }
.wrap { max-width: var(--max); margin-inline: auto; padding-inline: var(--g); }
.tag { display: inline-block; padding: 1px 8px 2px; background: var(--mint); color: var(--green-d); border: 1px solid var(--mint-2); border-radius: 4px; font-size: 13px; font-weight: 600; line-height: 1.5; }

/* ---------- кнопки ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 50px; padding: 0 24px; background: var(--green); color: #fff; font: 600 16px/1.1 var(--font); text-decoration: none; text-align: center; border: 2px solid var(--green); border-radius: 6px; white-space: nowrap; transition: background-color .12s, border-color .12s, color .12s; }
.btn:hover { background: var(--green-d); border-color: var(--green-d); color: #fff; }
.btn--sm { min-height: 44px; padding: 0 18px; font-size: 15px; }
.btn--line { background: transparent; color: var(--green); }
.btn--line:hover { background: var(--green); border-color: var(--green); color: #fff; }

/* ---------- шапка ---------- */
.top { position: sticky; top: 0; z-index: 30; background: var(--paper); border-bottom: 1px solid var(--line); }
.top__in { display: flex; align-items: center; gap: clamp(16px, 2.4vw, 32px); min-height: 72px; }
.logo { display: inline-flex; align-items: center; gap: 9px; font-size: 23px; font-weight: 700; letter-spacing: -.03em; line-height: 1; color: var(--ink); text-decoration: none; white-space: nowrap; }
.logo:hover { color: var(--ink); }
.logo b { font-weight: 700; color: var(--green); margin-left: -9px; }
.logo__mark { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--green); color: #fff; font-size: 17px; font-weight: 600; letter-spacing: 0; box-shadow: inset 0 0 0 3px var(--green), inset 0 0 0 4px rgba(255, 255, 255, .55); }
.logo--light, .logo--light:hover { color: #fff; }
.logo--light b { color: #8FD9B0; }
.logo--light .logo__mark { background: #fff; color: var(--forest); box-shadow: inset 0 0 0 3px #fff, inset 0 0 0 4px rgba(14, 59, 40, .4); }
.nav { display: flex; gap: clamp(14px, 1.9vw, 28px); margin-left: auto; font-size: 15px; font-weight: 500; white-space: nowrap; }
.nav a { color: var(--text); text-decoration: none; padding-block: 6px; }
.nav a:hover { color: var(--green); }
.burger { display: none; width: 44px; height: 44px; position: relative; flex: none; margin-right: -8px; }
.burger span { position: absolute; left: 10px; right: 10px; height: 2px; background: var(--ink); transition: transform .15s; }
.burger span:first-child { top: 17px; }
.burger span:last-child { top: 25px; }
.burger[aria-expanded="true"] span:first-child { transform: translateY(4px) rotate(45deg); }
.burger[aria-expanded="true"] span:last-child { transform: translateY(-4px) rotate(-45deg); }
.mnav { display: grid; padding: 4px var(--g) 14px; border-top: 1px solid var(--line); font-size: 18px; font-weight: 500; }
.mnav a { padding: 11px 0; color: var(--ink); text-decoration: none; }

/* ---------- первый экран ---------- */
.hero { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); }
/* Водяной знак: та же розетка, едва заметная, под текстом первого экрана */
.hero__main { position: relative; isolation: isolate; overflow: hidden; }
.hero__main::before { content: ''; position: absolute; z-index: -1; width: 560px; height: 560px; left: -150px; bottom: -230px; background: url(../img/rosette.svg) center / contain no-repeat; opacity: .13; pointer-events: none; }
.hero__main { align-self: stretch; display: flex; flex-direction: column; justify-content: center; padding-block: clamp(40px, 6vw, 88px) clamp(36px, 5vw, 72px); padding-left: max(var(--g), calc((100vw - var(--max)) / 2 + var(--g))); padding-right: clamp(24px, 4.4vw, 72px); }
/* «Зарабатывать» подчёркнуто мятной плашкой: главное слово сайта читается первым */
.hero h1 em { font-style: normal; padding-inline: .05em; margin-inline: -.05em; background: linear-gradient(transparent 58%, #CDEBD8 58%, #CDEBD8 94%, transparent 94%); -webkit-box-decoration-break: clone; box-decoration-break: clone; }
.hero__lead { margin-top: 22px; font-size: clamp(17px, 1.35vw, 19px); max-width: 56ch; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.hero__facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: clamp(32px, 4vw, 52px); padding-top: 20px; border-top: 1px solid var(--line); font-size: 14px; line-height: 1.42; color: var(--muted); }
.hero__facts b { display: block; margin-bottom: 4px; font-size: 16px; font-weight: 600; color: var(--ink); }

/* Розетка как на банкнотах: единственная «денежная» графика, лежит под калькулятором */
.hero__side { position: relative; overflow: hidden; background: var(--mint); display: flex; align-items: center; padding: clamp(32px, 4vw, 56px) max(var(--g), calc((100vw - var(--max)) / 2 + var(--g))) clamp(32px, 4vw, 56px) clamp(24px, 4vw, 64px); }
.hero__side::before { content: ''; position: absolute; width: 760px; height: 760px; right: -230px; top: 50%; translate: 0 -50%; background: url(../img/rosette.svg) center / contain no-repeat; opacity: .5; pointer-events: none; }

/* Калькулятор как купюра: внутренняя рамка, лента сверху и серийный номер */
.calc { position: relative; width: 100%; max-width: 480px; margin-inline: auto; background: #fff; border: 1px solid var(--mint-2); border-radius: 12px; padding: calc(clamp(20px, 2.4vw, 30px) + 12px) clamp(22px, 2.6vw, 32px) clamp(22px, 2.6vw, 32px); box-shadow: 0 14px 34px rgba(15, 42, 30, .1); }
.calc::before { content: ''; position: absolute; inset: 7px; border: 1px solid var(--mint-2); border-radius: 8px; pointer-events: none; }
.calc::after { content: ''; position: absolute; left: 8px; right: 8px; top: 8px; height: 12px; border-radius: 7px 7px 0 0; background: url(../img/band.svg) repeat-x center / auto 12px; opacity: .8; pointer-events: none; }
.calc__serial { position: absolute; right: 22px; top: 26px; font-size: 11.5px; font-weight: 600; letter-spacing: .14em; color: var(--serial); font-variant-numeric: tabular-nums; }
.calc__title { font-size: 22px; font-weight: 700; letter-spacing: -.015em; padding-right: 96px; }
.calc__sub { margin-top: 4px; font-size: 14.5px; color: var(--muted); }
.calc__fields { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 14px 14px; margin-top: 18px; }
.calc__f label { display: block; min-height: 2.6em; font-size: 13.5px; font-weight: 500; line-height: 1.3; color: var(--text); }
.calc__f input { display: block; width: 100%; margin-top: 5px; padding: 10px 12px; border: 1px solid #A9BBAF; border-radius: 6px; background: #fff; font: 600 18px/1.2 var(--font); color: var(--ink); font-variant-numeric: tabular-nums; }
.calc__f input:focus { outline: 2px solid var(--green); outline-offset: 0; border-color: var(--green); }
.calc__f input[aria-invalid="true"] { border-color: var(--no); }
.calc__res { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin-top: 20px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.calc__res div { padding: 11px 0 10px; }
.calc__res div + div { padding-left: 14px; border-left: 1px solid var(--line); }
.calc__res dt { font-size: 13px; color: var(--muted); }
.calc__res dd { margin-top: 2px; font-size: 19px; font-weight: 600; color: var(--ink); font-variant-numeric: tabular-nums; white-space: nowrap; }
/* Две стопки купюр: высота каждой пропорциональна сумме, поэтому разницу видно без чтения цифр */
.calc__money { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: end; gap: 12px 22px; margin-top: 18px; }
.piles { display: flex; align-items: flex-end; gap: 12px; }
.pile { display: grid; justify-items: center; gap: 6px; width: 82px; }
.pile__bills { display: flex; flex-direction: column-reverse; justify-content: flex-start; align-items: center; height: 104px; }
.pile__bills i { display: block; flex: none; width: 70px; height: 9px; margin-top: -3px; border: 1px solid #7DB596; border-radius: 2px; background: #D8EEE0; }
.pile__bills i:nth-child(3n+1) { translate: -2px 0; }
.pile__bills i:nth-child(3n+2) { translate: 2px 0; }
.pile--out .pile__bills i { background: #A7D8BA; border-color: var(--green); }
.pile__bills .top { position: relative; height: 26px; margin-top: -4px; translate: 0 0; background: #F2F9F4 url(../img/band.svg) repeat-x center / auto 26px; }
.pile--out .pile__bills .top { background-color: #DDF1E4; }
.pile__bills .top::after { content: '₽'; position: absolute; left: 50%; top: 50%; translate: -50% -50%; display: grid; place-items: center; width: 18px; height: 18px; border-radius: 50%; background: var(--green); color: #fff; font-size: 11px; font-weight: 700; }
.pile__cap { font-size: 12.5px; line-height: 1.3; text-align: center; color: var(--muted); }
.pile__cap b { font-size: 13.5px; font-weight: 600; color: var(--ink); white-space: nowrap; font-variant-numeric: tabular-nums; }
.calc__big { font-size: 15px; font-weight: 500; line-height: 1.3; color: var(--ink); padding-bottom: 22px; }
.calc__big b { display: block; margin: 2px 0; font-size: clamp(36px, 3.4vw, 46px); font-weight: 700; line-height: 1; letter-spacing: -.025em; color: var(--green); font-variant-numeric: tabular-nums; white-space: nowrap; }
.calc__note { margin-top: 10px; font-size: 13px; line-height: 1.45; color: var(--muted); }
.calc__btn { margin-top: 16px; width: 100%; }

/* ---------- площадки ---------- */
.platforms { border-bottom: 1px solid var(--line); }
.platforms::before { content: ''; display: block; height: 14px; background: url(../img/band.svg) repeat-x center / auto 14px; opacity: .75; }

/* ---------- путь рубля ---------- */
/* Монеты растут от шага к шагу; их центры стоят на одной линии */
.path__list { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 28px; }
.path__list li { position: relative; }
.path__list li::before { content: ''; position: absolute; left: 0; top: 29px; width: calc(100% + 28px); height: 2px; background: #B9DCC6; }
.path__list li:last-child::before { width: 30px; }
.coin { position: relative; z-index: 1; display: grid; place-items: center; border-radius: 50%; background: var(--green); color: #fff; font-weight: 600; line-height: 1; box-shadow: inset 0 0 0 3px var(--green), inset 0 0 0 4px rgba(255, 255, 255, .5), 0 4px 10px rgba(18, 122, 75, .22); }
.coin--1 { width: 36px; height: 36px; margin: 12px 0 28px; font-size: 15px; }
.coin--2 { width: 44px; height: 44px; margin: 8px 0 24px; font-size: 18px; }
.coin--3 { width: 52px; height: 52px; margin: 4px 0 20px; font-size: 21px; }
.coin--4 { width: 60px; height: 60px; margin: 0 0 16px; font-size: 24px; }
.path__stage { font-size: 13.5px; font-weight: 600; color: var(--green-d); }
.path__list h3 { margin-top: 4px; font-size: 20px; }
.path__list p:last-child { margin-top: 6px; font-size: 15.5px; line-height: 1.5; color: var(--muted); }

/* Тёмный раздел с золотыми монетами: деньги в классической паре зелёного и золота */
.path--dark { position: relative; overflow: hidden; isolation: isolate; color: #DCEDE2; background: url(../img/band.svg) repeat-x top / auto 16px, url(../img/band.svg) repeat-x bottom / auto 16px, var(--forest); }
.path--dark::after { content: ''; position: absolute; z-index: -1; width: 720px; height: 720px; right: -260px; top: -200px; background: url(../img/rosette.svg) center / contain no-repeat; opacity: .14; filter: brightness(2.2); pointer-events: none; }
.path--dark h2, .path--dark h3 { color: #fff; }
.path--dark .head p { color: #BFD8C8; }
.path--dark .path__stage { color: var(--gold-l); }
.path--dark .path__list p:last-child { color: #C7DDCF; }
.path--dark .path__list li::before { background: rgba(232, 208, 138, .35); }
.path--dark .coin { background: var(--gold); color: #3A2B07; box-shadow: inset 0 0 0 3px var(--gold), inset 0 0 0 4px rgba(255, 246, 214, .7), 0 0 0 1px var(--gold-d), 0 8px 18px rgba(0, 0, 0, .3); }
.platforms__in { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px clamp(16px, 2.6vw, 36px); padding-block: 16px; font-size: 15.5px; font-weight: 500; color: var(--ink); }
.platforms__in b { font-weight: 500; color: var(--muted); }

/* ---------- разделы ---------- */
.sec { padding-block: var(--sec); }
.sec--mint { background: var(--mint); }
.head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 14px 40px; align-items: end; margin-bottom: clamp(28px, 3.6vw, 48px); }
.head p { max-width: 54ch; justify-self: end; color: var(--muted); }

/* ---------- услуги ---------- */
.svc { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
.svc li { display: flex; flex-direction: column; padding: 20px 20px 18px; background: #fff; border: 1px solid var(--line); border-top: 3px solid var(--green); border-radius: 8px; }
.svc p { margin-top: 8px; font-size: 15.5px; line-height: 1.5; color: var(--muted); flex: 1; }
.svc__when { margin-top: 14px; padding-top: 10px; border-top: 1px solid var(--line); font-size: 14px; font-weight: 500; color: var(--green-d); }

/* ---------- отчётность ---------- */
.money { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 32px clamp(32px, 5vw, 72px); align-items: start; }
.money__text > p { margin-top: 16px; max-width: 52ch; }
.terms { margin-top: 24px; display: grid; gap: 0; border-top: 1px solid var(--mint-2); }
.terms div { padding: 12px 0; border-bottom: 1px solid var(--mint-2); }
.terms dt { font-weight: 600; color: var(--ink); }
.terms dd { margin-top: 2px; font-size: 15.5px; color: var(--muted); }
.report { background: #fff; border: 1px solid var(--mint-2); border-radius: 10px; padding: clamp(18px, 2.4vw, 28px); }
.report figcaption { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: 14px; color: var(--muted); }
.report__scroll { overflow-x: auto; margin-top: 12px; }
.report table { width: 100%; min-width: 520px; border-collapse: collapse; font-size: 15px; font-variant-numeric: tabular-nums; }
.report th, .report td { padding: 10px 0 10px 14px; border-bottom: 1px solid var(--line); text-align: right; white-space: nowrap; }
.report th:first-child { padding-left: 0; text-align: left; }
.report thead th { font-size: 13px; font-weight: 500; color: var(--muted); border-bottom: 2px solid var(--ink); }
.report tbody th { font-weight: 400; }
.report tfoot th, .report tfoot td { font-weight: 700; color: var(--ink); border-bottom: 0; padding-top: 12px; }
.report__sum { margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--line); font-size: 17px; font-weight: 500; color: var(--ink); }
.report__sum b { font-size: 30px; font-weight: 700; letter-spacing: -.02em; color: var(--green); margin-inline: 4px; }

/* ---------- шаги ---------- */
.steps { counter-reset: s; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(28px, 3vw, 40px) clamp(24px, 3vw, 44px); }
.steps li { counter-increment: s; padding-top: 18px; border-top: 2px solid var(--ink); }
.steps li::before { content: counter(s); display: block; margin-bottom: 10px; font-size: 32px; font-weight: 700; line-height: 1; letter-spacing: -.03em; color: var(--green); }
.steps p { margin-top: 7px; font-size: 16px; line-height: 1.5; color: var(--muted); }

/* ---------- кейсы ---------- */
.cases { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; align-items: start; }
.case { background: #fff; border: 1px solid var(--mint-2); border-radius: 10px; padding: clamp(18px, 2vw, 26px); }
.case__top { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: 13.5px; line-height: 1.4; color: var(--muted); }
.case h3 { margin-top: 12px; font-size: 18px; }
.case__big b { display: block; margin-bottom: 2px; font-size: clamp(40px, 3.6vw, 50px); font-weight: 700; line-height: 1; letter-spacing: -.03em; color: var(--green); }
.case__did { margin-top: 8px; font-size: 15.5px; color: var(--muted); }
.bars { margin-top: 16px; }
.bars__name { margin-top: 12px; font-size: 14px; font-weight: 600; color: var(--ink); }
.bars__name:first-child { margin-top: 0; }
.bars__row { display: grid; grid-template-columns: 46px minmax(0, 1fr) auto; align-items: center; gap: 10px; margin-top: 5px; font-size: 14px; color: var(--muted); font-variant-numeric: tabular-nums; }
.bars__row > :last-child { min-width: 72px; text-align: right; }
.bars__row b { color: var(--green-d); font-weight: 700; }
.bars__track { height: 8px; background: var(--mint); border-radius: 4px; overflow: hidden; }
.bars__track i { display: block; height: 100%; background: #A9BBAF; border-radius: 4px; }
.bars__row--now .bars__track i { background: var(--green); }
.w-34 { width: 34%; } .w-39 { width: 39%; } .w-52 { width: 52%; } .w-54 { width: 54%; } .w-56 { width: 56%; } .w-100 { width: 100%; }

/* ---------- тарифы ---------- */
.plans { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
/* Тариф как банкнота: внутренняя рамка, лента сверху, розетка-водяной знак, цена как номинал */
.plan { position: relative; overflow: hidden; isolation: isolate; display: flex; flex-direction: column; background: #FBFDF9; border: 1px solid var(--mint-2); border-radius: 10px; box-shadow: inset 0 0 0 6px #FBFDF9, inset 0 0 0 7px var(--mint-2); padding: calc(clamp(20px, 2.4vw, 30px) + 16px) clamp(22px, 2.6vw, 32px) clamp(22px, 2.6vw, 32px); }
.plan::before { content: ''; position: absolute; left: 7px; right: 7px; top: 7px; height: 16px; border-radius: 4px 4px 0 0; background: var(--mint) url(../img/band.svg) repeat-x center / auto 16px; }
.plan::after { content: ''; position: absolute; z-index: -1; width: 260px; height: 260px; right: -90px; bottom: -90px; background: url(../img/rosette.svg) center / contain no-repeat; opacity: .28; pointer-events: none; }
.plan h3 { font-size: 23px; font-weight: 700; }
.plan__for { margin-top: 6px; font-size: 15.5px; color: var(--muted); }
.plan__price { margin-top: 18px; font-size: clamp(34px, 3.4vw, 44px); font-weight: 700; line-height: 1.1; letter-spacing: -.025em; color: var(--ink); font-variant-numeric: tabular-nums; }
.plan__price small { font-size: .55em; font-weight: 500; letter-spacing: 0; }
.plan__price span { font-size: 15px; font-weight: 400; letter-spacing: 0; color: var(--muted); }
.plan__list { margin-top: 16px; flex: 1; }
.plan__list li { position: relative; padding: 7px 0 7px 26px; border-top: 1px solid var(--line); font-size: 15.5px; line-height: 1.4; }
.plan__list li::before { content: ''; position: absolute; left: 3px; top: 13px; width: 12px; height: 6px; border-left: 2px solid var(--green); border-bottom: 2px solid var(--green); transform: rotate(-45deg); }
.plan__budget { margin-top: 14px; padding: 10px 12px; background: var(--mint); border-radius: 6px; font-size: 14px; color: var(--text); }
.plan__btn { margin-top: 16px; width: 100%; }
.plans__more { margin-top: 24px; color: var(--muted); }

/* ---------- вопросы ---------- */
.ask { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: 28px clamp(32px, 5vw, 72px); align-items: start; }
.ask__side { position: sticky; top: 104px; }
.ask__side p { margin-top: 14px; color: var(--muted); }
.faq { background: #fff; border: 1px solid var(--mint-2); border-radius: 10px; padding-inline: clamp(16px, 2.4vw, 28px); }
.faq details + details { border-top: 1px solid var(--line); }
.faq summary { display: flex; justify-content: space-between; gap: 18px; align-items: baseline; padding-block: 17px; cursor: pointer; font-size: 17.5px; font-weight: 600; line-height: 1.32; color: var(--ink); list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; flex: none; font-size: 24px; font-weight: 400; line-height: .9; color: var(--green); }
.faq details[open] summary::after { content: '−'; }
.faq summary:hover { color: var(--green); }
.faq details p { padding-bottom: 20px; max-width: 66ch; font-size: 16px; }

/* ---------- заявка ---------- */
.cta { position: relative; overflow: hidden; background: url(../img/band.svg) repeat-x top / auto 16px, var(--forest); color: #fff; padding-block: var(--sec); }
.cta::before { content: ''; position: absolute; width: 900px; height: 900px; left: -380px; bottom: -420px; background: url(../img/rosette.svg) center / contain no-repeat; opacity: .16; filter: brightness(2.4); pointer-events: none; }
.cta__grid { position: relative; display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 32px clamp(32px, 5vw, 72px); align-items: start; }
.cta h2 { color: #fff; font-size: clamp(30px, 3vw, 42px); }
.cta__side > p { margin-top: 16px; max-width: 44ch; color: #DCEDE2; }
.cta__side a, .cta__side a:hover { color: #fff; }
.cta__mail { font-weight: 500; }
.form { background: #fff; color: var(--text); border-radius: 10px; padding: clamp(20px, 3vw, 36px); display: grid; gap: 20px; }
.form__picked { padding: 9px 12px; background: var(--mint); border-radius: 6px; font-size: 15px; font-weight: 500; color: var(--ink); }
.form__two { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 20px 16px; align-items: start; }
.field label, .chips legend { display: block; font-size: 15px; font-weight: 600; color: var(--ink); line-height: 1.3; }
.opt { font-weight: 400; font-size: 14px; color: var(--muted); margin-left: 3px; }
.field input[type="text"], .field textarea { display: block; width: 100%; margin-top: 6px; padding: 12px 13px; background: #fff; border: 1px solid #A9BBAF; border-radius: 6px; font: 400 16px/1.35 var(--font); color: var(--ink); }
.field textarea { resize: vertical; }
.field input[type="text"]:focus, .field textarea:focus { outline: 2px solid var(--green); outline-offset: 0; border-color: var(--green); }
.field__err { margin-top: 6px; font-size: 14px; line-height: 1.35; font-weight: 500; color: var(--no); }
.field__err:empty { display: none; }
.is-bad input[type="text"] { border-color: var(--no); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips legend { width: 100%; margin-bottom: 8px; }
.chips label { position: relative; cursor: pointer; }
.chips input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.chips label > span { display: inline-flex; align-items: center; min-height: 40px; padding: 0 13px; border: 1px solid #A9BBAF; border-radius: 20px; font-size: 14.5px; font-weight: 500; color: var(--ink); transition: background-color .12s, border-color .12s, color .12s; }
.chips label:hover > span { border-color: var(--green); }
.chips input:checked + span { background: var(--green); border-color: var(--green); color: #fff; }
.chips input:focus-visible + span { outline: 3px solid var(--green); outline-offset: 2px; }
.field .check { display: flex; gap: 11px; align-items: flex-start; font-size: 14.5px; font-weight: 400; line-height: 1.42; color: var(--text); cursor: pointer; }
.check input { flex: none; width: 22px; height: 22px; margin: 0; accent-color: var(--green); }
.form__send { justify-self: start; }
.form__status:empty { display: none; }
.form__status { padding: 12px 14px; background: var(--mint); border-left: 3px solid var(--green); font-size: 15px; line-height: 1.45; color: var(--ink); }

/* ---------- подвал ---------- */
.foot { background: #0A2A1C; color: #C3D6CA; padding-block: clamp(36px, 5vw, 60px) 24px; font-size: 14.5px; line-height: 1.5; }
.foot__grid { display: grid; grid-template-columns: 1.25fr .8fr 1.1fr 1.5fr; gap: 28px clamp(24px, 3vw, 44px); }
.foot a { color: #E2F0E7; text-decoration: none; }
.foot a:hover { color: #fff; text-decoration: underline; }
.foot__brand p { margin-top: 12px; max-width: 30ch; }
.foot__h { margin-bottom: 8px; font-weight: 600; color: #fff; }
.foot__col > a { display: block; padding-block: 3px; }
.foot__legal p + p { margin-top: 8px; }
.foot__legal .foot__h + p { margin-top: 0; }
.foot__copy { margin-top: 28px; padding-top: 18px; font-size: 13.5px; color: #8FA899; }

/* ---------- документы ---------- */
.doc { padding-block: clamp(28px, 4vw, 56px) clamp(48px, 6vw, 80px); }
.doc__in { max-width: 820px; }
.doc__back { font-size: 15px; font-weight: 500; }
.doc h1 { font-size: clamp(30px, 3.6vw, 44px); margin-top: 16px; }
.doc__meta { margin-top: 10px; font-size: 14.5px; color: var(--muted); }
.doc h2 { font-size: clamp(20px, 1.9vw, 24px); font-weight: 600; margin-top: 32px; letter-spacing: -.01em; }
.doc p, .doc ul { margin-top: 10px; }
.doc ul { list-style: disc; padding-left: 22px; }
.doc li + li { margin-top: 4px; }
.doc__after { margin-top: 28px; }
.req { width: 100%; margin-top: 12px; border-collapse: collapse; border-top: 2px solid var(--ink); }
.req th, .req td { text-align: left; padding: 10px 12px 10px 0; border-bottom: 1px solid var(--line); vertical-align: top; }
.req th { font-weight: 600; color: var(--ink); width: 38%; }
.foot-doc { background: #0A2A1C; color: #C3D6CA; padding-block: 22px; font-size: 14.5px; }
.foot-doc nav { display: flex; flex-wrap: wrap; gap: 6px 22px; }
.foot-doc a { color: #E2F0E7; text-decoration: none; }
.foot-doc a:hover { color: #fff; text-decoration: underline; }

/* ---------- 404 ---------- */
.lost { min-height: calc(100svh - 73px); display: grid; align-content: center; justify-items: start; padding: var(--g); max-width: var(--max); margin-inline: auto; }
.lost p { margin-top: 14px; font-size: 18px; max-width: 46ch; }
.lost .btn { margin-top: 22px; }

/* ---------- адаптив ---------- */
@media (max-width: 1120px) {
  .nav { display: none; }
  .top__cta { margin-left: auto; }
  .burger { display: block; }
  .svc { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 980px) {
  .hero { grid-template-columns: minmax(0, 1fr); }
  .hero__main { padding-inline: var(--g); }
  .hero__side { padding-inline: var(--g); }
  .head { grid-template-columns: minmax(0, 1fr); }
  .head p { justify-self: start; }
  .money, .ask, .cta__grid { grid-template-columns: minmax(0, 1fr); }
  .ask__side { position: static; }
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  /* Путь рубля на узком экране идёт сверху вниз: монеты слева, линия вертикальная */
  .path__list { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .path__list li { display: grid; grid-template-columns: 76px minmax(0, 1fr); column-gap: 14px; padding-bottom: 26px; }
  .path__list li::before { left: 37px; top: 0; width: 2px; height: 100%; }
  .path__list li:last-child::before { width: 2px; height: 30px; }
  .coin { grid-row: 1 / 4; justify-self: center; margin: 0 !important; }
  .path__list li > :not(.coin) { grid-column: 2; }
  .path__stage { padding-top: 4px; }
  .cases { grid-template-columns: minmax(0, 1fr); max-width: 640px; }
  .plans { grid-template-columns: minmax(0, 1fr); max-width: 640px; }
  .foot__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 680px) {
  .svc { grid-template-columns: minmax(0, 1fr); }
  .form__two { grid-template-columns: minmax(0, 1fr); }
  .hero__facts { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .steps { grid-template-columns: minmax(0, 1fr); gap: 22px; }
  .form { margin-inline: calc(-1 * var(--g)); border-radius: 0; }
  .form__send { width: 100%; justify-self: stretch; }
  .foot__grid { grid-template-columns: minmax(0, 1fr); }
  .calc { padding: 18px 16px; }
  .calc__res dd { font-size: 17px; }
}

@media (max-width: 420px) {
  .top__in { min-height: 64px; gap: 10px; }
  .logo { font-size: 20px; gap: 7px; }
  .logo b { margin-left: -7px; }
  .logo__mark { width: 26px; height: 26px; font-size: 15px; }
  .top__cta { padding-inline: 12px; font-size: 14px; }
  .hero__cta .btn { flex: 1 1 100%; }
  .calc__fields { grid-template-columns: minmax(0, 1fr); }
  .calc__f label { min-height: 0; }
  .calc__money { grid-template-columns: minmax(0, 1fr); }
  .piles { justify-content: center; }
  .calc__big { padding-bottom: 0; text-align: center; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

@media print {
  .top, .burger, .form, .hero__cta, .calc { display: none; }
}
