/* ==========================================================================
   ПринятО — бухгалтерия для бизнеса
   Фирменные цвета взяты из логотипа: navy #293965, зелёный #107B41.
   ========================================================================== */

:root {
  --navy:        #293965;
  --navy-deep:   #1b2745;
  --navy-soft:   #3c4f80;
  --green:       #107B41;
  --green-light: #17974f;
  --green-pale:  #e8f4ed;

  --ink:         #16203a;
  --ink-muted:   #5a6480;
  --line:        #dfe3ec;
  --line-soft:   #eef1f6;
  --bg:          #ffffff;
  --bg-alt:      #f6f8fb;

  --radius:      14px;
  --radius-sm:   10px;
  --shadow:      0 1px 2px rgba(22, 32, 58, .04), 0 8px 24px rgba(22, 32, 58, .06);
  --shadow-lg:   0 2px 4px rgba(22, 32, 58, .05), 0 18px 48px rgba(22, 32, 58, .12);

  --container:   1180px;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", "Inter", "Roboto",
          "Helvetica Neue", Arial, sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -webkit-text-size-adjust: 100%;
}

img { max-width: 100%; height: auto; display: block; }

a { color: var(--navy); text-decoration: none; }
a:hover { color: var(--green); }

h1, h2, h3, h4 {
  margin: 0 0 .5em;
  line-height: 1.15;
  letter-spacing: -.02em;
  font-weight: 800;
  color: var(--navy);
}

h1 { font-size: clamp(2rem, 1.35rem + 2.6vw, 3.4rem); }
h2 { font-size: clamp(1.6rem, 1.2rem + 1.7vw, 2.5rem); }
h3 { font-size: clamp(1.15rem, 1.02rem + .5vw, 1.4rem); }

p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }

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

.section { padding: clamp(56px, 6vw, 100px) 0; }
.section--alt { background: var(--bg-alt); }

/* Липкая шапка высотой 88px не должна накрывать заголовок,
   к которому юзер перешёл по якорю. */
[id] { scroll-margin-top: 104px; }

.section__head { max-width: 760px; margin-bottom: clamp(32px, 4vw, 56px); }
.section__head--center { margin-left: auto; margin-right: auto; text-align: center; }
.section__lead {
  font-size: clamp(1.02rem, .97rem + .25vw, 1.18rem);
  color: var(--ink-muted);
  margin: 0;
}

.eyebrow {
  display: inline-block;
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--green);
  margin-bottom: 14px;
}

.visually-hidden {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* --------------------------------------------------------------- Buttons */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 15px 28px;
  border: 2px solid transparent;
  border-radius: var(--radius-sm);
  font: inherit;
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.2;
  text-align: center;
  cursor: pointer;
  transition: background-color .18s ease, border-color .18s ease,
              color .18s ease, transform .12s ease, box-shadow .18s ease;
}
.btn:active { transform: translateY(1px); }

/* Лёгкий градиент сверху вниз плюс внутренняя светлая грань — кнопка
   перестаёт быть плоской заливкой и читается как объект, который жмут. */
.btn--primary {
  background: linear-gradient(180deg, var(--green-light) 0%, var(--green) 100%);
  border-color: var(--green);
  color: #fff;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .18),
    0 4px 14px rgba(16, 123, 65, .28);
}
.btn--primary:hover {
  background: linear-gradient(180deg, #1cab5b 0%, var(--green-light) 100%);
  border-color: var(--green-light);
  color: #fff;
  transform: translateY(-1px);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .22),
    0 8px 22px rgba(16, 123, 65, .34);
}
.btn--primary:active {
  transform: translateY(0);
  box-shadow: inset 0 2px 5px rgba(0, 0, 0, .16);
}

.btn--ghost {
  background: transparent;
  border-color: rgba(255, 255, 255, .45);
  color: #fff;
}
.btn--ghost:hover {
  background: rgba(255, 255, 255, .12);
  border-color: #fff;
  color: #fff;
}

.btn--outline {
  background: #fff;
  border-color: var(--line);
  color: var(--navy);
}
.btn--outline:hover { border-color: var(--navy); color: var(--navy); }

.btn--block { width: 100%; }
.btn--sm { padding: 13px 30px; font-size: .95rem; }

/* ---------------------------------------------------------------- Header */

.header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(255, 255, 255, .94);
  backdrop-filter: saturate(180%) blur(10px);
  border-bottom: 1px solid var(--line-soft);
}
.header__inner {
  display: flex;
  align-items: center;
  gap: 28px;
  min-height: 88px;
}
.header__logo { flex: 0 0 auto; }
.header__logo img { height: 62px; width: auto; }

.nav { display: flex; align-items: center; gap: 26px; margin-left: auto; }
.nav .btn { margin-left: 6px; }

/* `:not(.btn)` обязателен: без него правило (специфичность 0-1-1) перебивает
   класс `.btn--sm` (0-1-0), и у кнопки обнуляются боковые отступы —
   текст оказывается впритык к краям. */
.nav a:not(.btn) {
  font-size: .96rem;
  font-weight: 600;
  color: var(--ink);
  padding: 6px 0;
  border-bottom: 2px solid transparent;
}
.nav a:not(.btn):hover { color: var(--green); border-bottom-color: var(--green); }

.header__contact {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  line-height: 1.25;
}
.header__phone { font-weight: 800; font-size: 1.02rem; color: var(--navy); white-space: nowrap; }
.header__phone:hover { color: var(--green); }
.header__hours { font-size: .8rem; color: var(--ink-muted); }

/* Кнопки мессенджеров. Рисуются скриптом только для заполненных ссылок,
   поэтому в разметке их нет — см. MESSENGERS в app.js. */
.messengers { display: flex; gap: 8px; margin-top: 8px; }
.messengers:empty { display: none; }

.messenger {
  display: grid;
  place-items: center;
  width: 32px; height: 32px;
  border-radius: 9px;
  background: var(--bg-alt);
  border: 1px solid var(--line);
  transition: background-color .16s ease, border-color .16s ease, transform .12s ease;
}
.messenger:hover { background: #fff; border-color: var(--navy); transform: translateY(-1px); }
.messenger svg { width: 17px; height: 17px; fill: var(--navy); }
.messenger--max { font: 800 11px/1 var(--font); color: var(--navy); letter-spacing: .02em; }

.messengers--footer { margin-top: 4px; }
.messengers--footer .messenger {
  background: rgba(255, 255, 255, .08);
  border-color: rgba(255, 255, 255, .16);
}
.messengers--footer .messenger:hover {
  background: rgba(255, 255, 255, .16);
  border-color: #6fe0a0;
}
.messengers--footer .messenger svg { fill: #fff; }
.messengers--footer .messenger--max { color: #fff; }

.header__burger {
  display: none;
  width: 44px; height: 44px;
  margin-left: auto;
  padding: 0;
  background: none;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  cursor: pointer;
}
.header__burger span,
.header__burger span::before,
.header__burger span::after {
  display: block;
  width: 20px; height: 2px;
  margin: 0 auto;
  background: var(--navy);
  border-radius: 2px;
  transition: transform .2s ease, opacity .2s ease;
}
.header__burger span { position: relative; }
.header__burger span::before { content: ""; position: absolute; top: -6px; }
.header__burger span::after  { content: ""; position: absolute; top: 6px; }

.header.is-open .header__burger span { background: transparent; }
.header.is-open .header__burger span::before { transform: translateY(6px) rotate(45deg); }
.header.is-open .header__burger span::after  { transform: translateY(-6px) rotate(-45deg); }

/* ------------------------------------------------------------------ Hero */

.hero {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(1100px 480px at 78% -12%, rgba(16, 123, 65, .34), transparent 62%),
    linear-gradient(160deg, var(--navy) 0%, var(--navy-deep) 100%);
  color: #fff;
  padding: clamp(56px, 7vw, 104px) 0 clamp(64px, 7vw, 108px);
}
.hero::after {
  /* Штрих пунктирной «печати» — отсылка к рамке в логотипе. */
  content: "";
  position: absolute;
  inset: 26px;
  border: 2px dashed rgba(255, 255, 255, .09);
  border-radius: 24px;
  pointer-events: none;
}
.hero .container { position: relative; z-index: 1; }

.hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr);
  gap: clamp(32px, 5vw, 72px);
  align-items: center;
}

.hero h1 { color: #fff; margin-bottom: 20px; }
.hero h1 em { font-style: normal; color: #6fe0a0; }

.hero__lead {
  font-size: clamp(1.05rem, 1rem + .4vw, 1.28rem);
  color: rgba(255, 255, 255, .82);
  max-width: 30em;
  margin-bottom: 32px;
}

.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 34px; }

.hero__points { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.hero__points li {
  position: relative;
  padding-left: 32px;
  font-size: 1rem;
  color: rgba(255, 255, 255, .9);
}
.hero__points li::before {
  content: "";
  position: absolute;
  left: 0; top: .3em;
  width: 20px; height: 20px;
  border-radius: 50%;
  background: var(--green) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center / 13px no-repeat;
}

/* Карточка «Принято» в герое */
.stamp-card {
  background: #fff;
  color: var(--ink);
  border-radius: 20px;
  padding: 32px;
  box-shadow: var(--shadow-lg);
}
.stamp-card__mark {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-bottom: 18px;
  margin-bottom: 18px;
  border-bottom: 2px dashed var(--line);
}
.stamp-card__badge {
  flex: 0 0 auto;
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--green-pale);
  display: grid; place-items: center;
}
.stamp-card__badge svg { width: 24px; height: 24px; stroke: var(--green); }
.stamp-card__title { display: block; font-weight: 800; color: var(--navy); font-size: 1.1rem; }
.stamp-card__sub { display: block; font-size: .88rem; color: var(--ink-muted); }

.stamp-card__rows { display: grid; gap: 14px; }
.stamp-card__row { display: flex; justify-content: space-between; gap: 16px; align-items: baseline; }
.stamp-card__row dt { color: var(--ink-muted); font-size: .95rem; }
.stamp-card__row dd { margin: 0; font-weight: 700; color: var(--navy); text-align: right; }
.stamp-card__row dd small { display: block; font-weight: 500; font-size: .78rem; color: var(--ink-muted); }

.stamp-card__foot {
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px solid var(--line-soft);
  font-size: .86rem;
  color: var(--ink-muted);
}

/* -------------------------------------------------------------- Benefits */

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}

.card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 32px;
  transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}
.card:hover { border-color: #c8d0e2; box-shadow: var(--shadow); transform: translateY(-2px); }
.card h3 { margin-bottom: 10px; }

/* Оттиск печати — то же двойное обрамление и галочка, что в логотипе.
   Внутри стоит конкретный факт, а не пересказ заголовка. */
.stamp {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 9px 15px;
  margin-bottom: 22px;
  border: 2px solid var(--navy);
  border-radius: 5px;
  font-size: .7rem;
  font-weight: 800;
  letter-spacing: .13em;
  text-transform: uppercase;
  color: var(--navy);
  opacity: .93;
}
.stamp::before {
  content: "";
  position: absolute;
  inset: 3px;
  border: 1px solid var(--navy);
  border-radius: 2px;
  opacity: .3;
}
.stamp svg { flex: 0 0 auto; width: 15px; height: 15px; stroke: var(--green); }

/* Настоящие печати не ложатся под один угол — слегка разводим.
   Угол живёт в переменной, чтобы анимация «удара» могла к нему вернуться. */
.stamp { transform: rotate(var(--stamp-angle, -3deg)); }
.cards > :nth-child(1) .stamp { --stamp-angle: -3.5deg; }
.cards > :nth-child(2) .stamp { --stamp-angle: -1.75deg; }
.cards > :nth-child(3) .stamp { --stamp-angle: -4.5deg; }
.card p { color: var(--ink-muted); font-size: .98rem; }

/* ----------------------------------------------------------------- Steps */

.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 28px;
  counter-reset: step;
}
.step { position: relative; padding-top: 22px; border-top: 3px solid var(--line); counter-increment: step; }
.step::before {
  content: counter(step);
  position: absolute;
  top: -19px; left: 0;
  width: 36px; height: 36px;
  border-radius: 50%;
  background: var(--navy);
  color: #fff;
  font-weight: 800;
  font-size: .95rem;
  display: grid; place-items: center;
  box-shadow: 0 0 0 6px var(--bg-alt);
}
.section:not(.section--alt) .step::before { box-shadow: 0 0 0 6px #fff; }
.step h3 { font-size: 1.1rem; margin-bottom: 8px; }
.step p { color: var(--ink-muted); font-size: .96rem; }

/* ------------------------------------------------------------ Подборщик */

.picker {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 420px);
  gap: 32px;
  align-items: start;
}

.picker__form {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(24px, 3vw, 34px);
  box-shadow: var(--shadow);
}

.field { margin-bottom: 22px; }
.field:last-child { margin-bottom: 0; }
.field > label,
.field__label {
  display: block;
  font-weight: 700;
  font-size: .95rem;
  color: var(--navy);
  margin-bottom: 10px;
}
.field__hint { font-size: .84rem; color: var(--ink-muted); margin-top: 8px; }

.select {
  width: 100%;
  padding: 13px 42px 13px 15px;
  font: inherit;
  font-size: 1rem;
  color: var(--ink);
  background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%235a6480' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") right 14px center / 18px no-repeat;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  appearance: none;
  cursor: pointer;
}
.select:focus,
.input:focus,
.textarea:focus {
  outline: none;
  border-color: var(--green);
  box-shadow: 0 0 0 3px rgba(16, 123, 65, .14);
}

/* Сегментированный переключатель ИП / ООО */
.segmented { display: flex; gap: 8px; }
.segmented input { position: absolute; opacity: 0; pointer-events: none; }
.segmented label {
  flex: 1;
  padding: 13px 10px;
  text-align: center;
  font-weight: 700;
  font-size: .98rem;
  color: var(--ink-muted);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all .16s ease;
}
.segmented label:hover { border-color: #c2cbe0; }
.segmented input:checked + label {
  color: #fff;
  background: var(--navy);
  border-color: var(--navy);
}
.segmented input:focus-visible + label {
  box-shadow: 0 0 0 3px rgba(16, 123, 65, .2);
}

/* Чекбокс «под ключ».
   Селектор с `.field >` нужен, чтобы перебить `.field > label { display:block }`. */
.check,
.field > label.check {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  cursor: pointer;
  font-weight: 400;
}
.check input {
  flex: 0 0 auto;
  width: 22px; height: 22px;
  margin: 1px 0 0;
  accent-color: var(--green);
  cursor: pointer;
}
.check__text { font-size: .96rem; }
.check__text b { display: block; font-weight: 700; color: var(--navy); }
.check__text span {
  display: block;
  margin-top: 2px;
  font-weight: 400;
  color: var(--ink-muted);
  font-size: .88rem;
}

/* Результат подбора */
.result {
  position: sticky;
  top: 96px;
  background: linear-gradient(165deg, var(--navy) 0%, var(--navy-deep) 100%);
  color: #fff;
  border-radius: var(--radius);
  padding: clamp(26px, 3vw, 34px);
  box-shadow: var(--shadow-lg);
}
.result__label {
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: #6fe0a0;
  margin-bottom: 8px;
}
.result__plan { font-size: 1.9rem; font-weight: 800; color: #fff; line-height: 1.1; margin-bottom: 4px; }
.result__caption { color: rgba(255, 255, 255, .72); font-size: .95rem; margin-bottom: 22px; }

.result__price {
  display: flex;
  align-items: baseline;
  gap: 8px;
  padding: 18px 0;
  border-top: 2px dashed rgba(255, 255, 255, .18);
  border-bottom: 2px dashed rgba(255, 255, 255, .18);
  margin-bottom: 20px;
}
.result__amount { font-size: clamp(2.1rem, 1.6rem + 1.6vw, 2.9rem); font-weight: 800; letter-spacing: -.03em; }
.result__per { color: rgba(255, 255, 255, .7); font-size: 1rem; }

.result__breakdown { list-style: none; margin: 0 0 20px; padding: 0; display: grid; gap: 9px; }
.result__breakdown li {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  font-size: .92rem;
  color: rgba(255, 255, 255, .82);
}
.result__breakdown b { font-weight: 700; color: #fff; white-space: nowrap; }

.result__includes { list-style: none; margin: 0 0 22px; padding: 0; display: grid; gap: 10px; }
.result__includes li {
  position: relative;
  padding-left: 28px;
  font-size: .93rem;
  color: rgba(255, 255, 255, .88);
}
.result__includes li::before {
  content: "";
  position: absolute;
  left: 0; top: .32em;
  width: 17px; height: 17px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%236fe0a0' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center / contain no-repeat;
}

.result__note {
  font-size: .85rem;
  line-height: 1.5;
  color: rgba(255, 255, 255, .7);
  background: rgba(255, 255, 255, .07);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  margin-bottom: 18px;
}
.result__note + .result__note { margin-top: -8px; }

.result .btn--primary { width: 100%; }
.result__disclaimer { margin-top: 14px; font-size: .8rem; color: rgba(255, 255, 255, .55); text-align: center; }

/* Витрина тарифов */
.plans {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 20px;
  margin-top: 40px;
}
.plan {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px;
  display: flex;
  flex-direction: column;
}
.plan__name { font-weight: 800; color: var(--navy); font-size: 1.15rem; margin-bottom: 4px; }
.plan__caption { font-size: .87rem; color: var(--ink-muted); margin-bottom: 16px; min-height: 2.6em; }
.plan__price { font-size: 1.7rem; font-weight: 800; color: var(--navy); letter-spacing: -.02em; }
.plan__price small { display: block; font-size: .78rem; font-weight: 600; color: var(--ink-muted); letter-spacing: 0; }
.plan__meta { list-style: none; margin: 18px 0 0; padding: 18px 0 0; border-top: 1px solid var(--line-soft); display: grid; gap: 7px; }
.plan__meta li { font-size: .89rem; color: var(--ink-muted); }
.plan__meta b { color: var(--ink); font-weight: 700; }

/* ----------------------------------------------------------- Что входит */

.includes-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 28px 40px;
}
.includes-col h3 { font-size: 1.05rem; margin-bottom: 14px; }
.check-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 11px; }
.check-list li {
  position: relative;
  padding-left: 30px;
  font-size: .96rem;
  color: var(--ink-muted);
}
.check-list li::before {
  content: "";
  position: absolute;
  left: 0; top: .28em;
  width: 18px; height: 18px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23107B41' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center / contain no-repeat;
}

/* ---------------------------------------------------------------- Отзывы */

.reviews { display: grid; grid-template-columns: repeat(auto-fit, minmax(290px, 1fr)); gap: 22px; }
.review {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
}
.review__text { font-size: .99rem; color: var(--ink); margin-bottom: 18px; }
.review__author { display: flex; align-items: center; gap: 12px; }
.review__avatar {
  width: 42px; height: 42px;
  border-radius: 50%;
  background: var(--navy);
  color: #fff;
  display: grid; place-items: center;
  font-weight: 800;
  font-size: .95rem;
}
.review__name { display: block; font-weight: 700; color: var(--navy); font-size: .95rem; line-height: 1.25; }
.review__role { display: block; font-size: .84rem; color: var(--ink-muted); }

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

.faq { max-width: 840px; margin: 0 auto; display: grid; gap: 12px; }
.faq details {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}
.faq details[open] { border-color: #c8d0e2; box-shadow: var(--shadow); }
.faq summary {
  padding: 20px 56px 20px 24px;
  font-weight: 700;
  font-size: 1.03rem;
  color: var(--navy);
  cursor: pointer;
  position: relative;
  list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "";
  position: absolute;
  right: 24px; top: 50%;
  width: 18px; height: 18px;
  margin-top: -9px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23293965' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") center / contain no-repeat;
  transition: transform .2s ease;
}
.faq details[open] summary::after { transform: rotate(180deg); }
.faq__body { padding: 0 24px 22px; color: var(--ink-muted); font-size: .97rem; }

/* -------------------------------------------------------------- CTA-блок */

.cta {
  background:
    radial-gradient(900px 400px at 20% 0%, rgba(16, 123, 65, .3), transparent 60%),
    linear-gradient(150deg, var(--navy) 0%, var(--navy-deep) 100%);
  color: #fff;
  border-radius: 24px;
  padding: clamp(36px, 5vw, 64px);
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 440px);
  gap: clamp(28px, 4vw, 56px);
  align-items: center;
}
.cta h2 { color: #fff; }
.cta p { color: rgba(255, 255, 255, .82); }
.cta__points { list-style: none; margin: 22px 0 0; padding: 0; display: grid; gap: 10px; }
.cta__points li { position: relative; padding-left: 30px; color: rgba(255, 255, 255, .88); font-size: .97rem; }
.cta__points li::before {
  content: "";
  position: absolute;
  left: 0; top: .3em;
  width: 18px; height: 18px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%236fe0a0' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center / contain no-repeat;
}

/* ----------------------------------------------------------------- Формы */

.form {
  background: #fff;
  border-radius: var(--radius);
  padding: clamp(24px, 3vw, 32px);
  box-shadow: var(--shadow-lg);
}
.form h3 { font-size: 1.25rem; margin-bottom: 6px; }
.form__sub { font-size: .93rem; color: var(--ink-muted); margin-bottom: 22px; }

.input, .textarea {
  width: 100%;
  padding: 13px 15px;
  font: inherit;
  font-size: 1rem;
  color: var(--ink);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
}
.textarea { min-height: 96px; resize: vertical; }
.input::placeholder, .textarea::placeholder { color: #9aa3ba; }

.form .field { margin-bottom: 16px; }

.consent { display: flex; gap: 11px; align-items: flex-start; margin: 18px 0 20px; }
.consent input { flex: 0 0 auto; width: 20px; height: 20px; margin: 2px 0 0; accent-color: var(--green); }
.consent label { font-size: .84rem; color: var(--ink-muted); line-height: 1.45; }
.consent a { text-decoration: underline; }

.form__status {
  margin-top: 16px;
  padding: 14px 16px;
  border-radius: var(--radius-sm);
  font-size: .93rem;
  display: none;
}
.form__status.is-ok  { display: block; background: var(--green-pale); color: #0c5c31; }
.form__status.is-err { display: block; background: #fdeceb; color: #a02320; }

/* Honeypot — прячем от людей, ловим ботов. */
.hp { position: absolute; left: -9999px; opacity: 0; height: 0; overflow: hidden; }

/* ---------------------------------------------------------------- Модалка */

.modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(22, 32, 58, .58);
  backdrop-filter: blur(3px);
  overflow-y: auto;
}
.modal.is-open { display: flex; }
.modal__box {
  position: relative;
  width: 100%;
  max-width: 480px;
  margin: auto;
  animation: modal-in .22s ease;
}
@keyframes modal-in {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: none; }
}
.modal__close {
  position: absolute;
  top: 14px; right: 14px;
  width: 36px; height: 36px;
  display: grid; place-items: center;
  background: var(--bg-alt);
  border: none;
  border-radius: 50%;
  cursor: pointer;
  z-index: 2;
}
.modal__close:hover { background: var(--line); }
.modal__close svg { width: 18px; height: 18px; stroke: var(--navy); }

/* ---------------------------------------------------------------- Футер */

.footer {
  background: var(--navy-deep);
  color: rgba(255, 255, 255, .72);
  padding: clamp(44px, 5vw, 68px) 0 32px;
  font-size: .94rem;
}
.footer__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) repeat(auto-fit, minmax(160px, 1fr));
  gap: 36px;
  padding-bottom: 34px;
  border-bottom: 1px solid rgba(255, 255, 255, .12);
}
.footer__logo img { height: 52px; width: auto; margin-bottom: 16px; }
.footer__about { max-width: 34em; font-size: .92rem; }
.footer h4 {
  color: #fff;
  font-size: .82rem;
  font-weight: 700;
  letter-spacing: .09em;
  text-transform: uppercase;
  margin: 0 0 14px;
}
.footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.footer a { color: rgba(255, 255, 255, .78); }
.footer a:hover { color: #6fe0a0; }
.footer__phone { display: block; font-size: 1.08rem; font-weight: 800; color: #fff; }
.footer__bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 14px;
  padding-top: 26px;
  font-size: .84rem;
  color: rgba(255, 255, 255, .5);
}
.footer__bottom a { color: rgba(255, 255, 255, .62); text-decoration: underline; }

/* ------------------------------------------------------------ Движение

   Класс `js-anim` вешает на <html> скрипт — и только если браузер умеет
   IntersectionObserver и юзер не просил убрать анимации. Без этого класса
   ничего не прячется: при выключенном JS страница просто статична.
   ----------------------------------------------------------------------- */

.js-anim [data-reveal] {
  opacity: 0;
  transform: translateY(20px);
  will-change: opacity, transform;
}
.js-anim [data-reveal].is-in {
  opacity: 1;
  transform: none;
  transition:
    opacity .55s ease-out,
    transform .65s cubic-bezier(.22, .8, .3, 1);
  transition-delay: var(--reveal-delay, 0ms);
}
.js-anim [data-reveal].is-in { will-change: auto; }

/* Печать «прилетает» и впечатывается: приходит крупнее и под другим углом,
   садится на свой угол с лёгким перелётом — как настоящий оттиск. */
.js-anim .stamp {
  opacity: 0;
  transform: rotate(calc(var(--stamp-angle, -3deg) - 10deg)) scale(1.55);
}
.js-anim .stamp.is-in {
  opacity: .93;
  transform: rotate(var(--stamp-angle, -3deg)) scale(1);
  transition:
    opacity .18s ease-out,
    transform .42s cubic-bezier(.2, 1.45, .45, 1);
  transition-delay: var(--reveal-delay, 0ms);
}

/* Герой не ждёт скролла — выезжает сразу после загрузки. */
.js-anim .hero__anim {
  opacity: 0;
  transform: translateY(22px);
}
.js-anim .hero__anim.is-in {
  opacity: 1;
  transform: none;
  transition:
    opacity .6s ease-out,
    transform .75s cubic-bezier(.22, .8, .3, 1);
  transition-delay: var(--reveal-delay, 0ms);
}

/* Шапка приподнимается тенью, как только страницу сдвинули. */
.header { transition: box-shadow .25s ease, border-color .25s ease; }
.header.is-scrolled {
  border-bottom-color: transparent;
  box-shadow: 0 1px 0 rgba(22, 32, 58, .05), 0 8px 24px rgba(22, 32, 58, .07);
}

/* Смена тарифа: цена «перещёлкивается», а не подменяется рывком. */
.result__amount { display: inline-block; transition: transform .18s ease-out; }
.result.is-updating .result__amount { transform: scale(1.045); }

.result__plan,
.result__caption { transition: opacity .2s ease-out; }
.result.is-updating .result__plan,
.result.is-updating .result__caption { opacity: .45; }

/* Пункты списка в карточке тарифа проявляются каскадом. */
.result__includes li {
  animation: item-in .4s cubic-bezier(.22, .8, .3, 1) both;
  animation-delay: calc(var(--i, 0) * 45ms);
}
@keyframes item-in {
  from { opacity: 0; transform: translateX(-8px); }
  to   { opacity: 1; transform: none; }
}

/* Раскрытие вопроса в FAQ. Закрытие оставляем мгновенным:
   у <details> нет надёжного способа анимировать его во всех браузерах. */
.faq details[open] .faq__body {
  animation: faq-in .28s cubic-bezier(.22, .8, .3, 1) both;
}
@keyframes faq-in {
  from { opacity: 0; transform: translateY(-6px); }
  to   { opacity: 1; transform: none; }
}
.faq summary { transition: color .18s ease; }
.faq summary:hover { color: var(--green); }

/* Подложка модалки затемняется плавно. */
.modal { transition: opacity .2s ease; }
.modal.is-open { animation: fade-in .2s ease both; }
@keyframes fade-in { from { opacity: 0; } to { opacity: 1; } }

/* Карточки чуть охотнее реагируют на курсор. */
.plan { transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease; }
.plan:hover { border-color: #c8d0e2; box-shadow: var(--shadow); transform: translateY(-2px); }

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

@media (max-width: 1020px) {
  .picker { grid-template-columns: 1fr; }
  .result { position: static; }
  .cta { grid-template-columns: 1fr; }
  .hero__grid { grid-template-columns: 1fr; }
  .hero .stamp-card { max-width: 460px; }
}

@media (max-width: 860px) {
  body { font-size: 16px; }

  .header__inner { min-height: 74px; gap: 14px; }
  .header__logo img { height: 46px; }
  .header__contact { display: none; }
  .header__burger { display: block; }

  .nav {
    position: absolute;
    top: 100%; left: 0; right: 0;
    flex-direction: column;
    gap: 0;
    margin: 0;
    padding: 8px 24px 20px;
    background: #fff;
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow);
    display: none;
  }
  .header.is-open .nav { display: flex; }
  .nav a:not(.btn) { padding: 13px 0; border-bottom: 1px solid var(--line-soft); }
  .nav a:not(.btn):hover { border-bottom-color: var(--line-soft); }
  .nav .btn { margin: 14px 0 0; }

  .hero::after { inset: 12px; border-radius: 16px; }
  .hero__actions .btn { flex: 1 1 100%; }
  .stamp-card { padding: 24px; }

  .section { padding: 48px 0; }
  .card { padding: 26px; }
  .cta { border-radius: 18px; }
  .footer__grid { grid-template-columns: 1fr; gap: 28px; }
}

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

/* ------------------------------------------------------------- Печать */

@media print {
  .header, .modal, .hero::after, .btn { display: none !important; }
  body { font-size: 12pt; color: #000; }
}
