/* «БухОбслуживание» — дизайн-система по брендбуку 1С:БО / клиента (2026-07-05).
   Палитра клиента: красный #D81F27, жёлтый #FFF100, чёрный, белый + тинты (guide.pdf, стр. 10).
   Шрифты: Century Gothic (заголовки, файлы клиента), Geologica (текст, OFL) — self-hosted. */



/* ---------- Шрифты ---------- */
@font-face {
  font-family: 'Geologica';
  src: url('../fonts/geologica-200-cyr.woff2') format('woff2');
  font-weight: 200; font-style: normal; font-display: swap;
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: 'Geologica';
  src: url('../fonts/geologica-200-lat.woff2') format('woff2');
  font-weight: 200; font-style: normal; font-display: swap;
  unicode-range: U+0000-00FF, U+2000-206F, U+20AC, U+20AD-20C0, U+2122, U+2212;
}
@font-face {
  font-family: 'Geologica';
  src: url('../fonts/geologica-400-cyr.woff2') format('woff2');
  font-weight: 400; font-style: normal; font-display: swap;
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: 'Geologica';
  src: url('../fonts/geologica-400-lat.woff2') format('woff2');
  font-weight: 400; font-style: normal; font-display: swap;
  unicode-range: U+0000-00FF, U+2000-206F, U+20AC, U+20AD-20C0, U+2122, U+2212;
}
@font-face {
  font-family: 'Geologica';
  src: url('../fonts/geologica-500-cyr.woff2') format('woff2');
  font-weight: 500; font-style: normal; font-display: swap;
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: 'Geologica';
  src: url('../fonts/geologica-500-lat.woff2') format('woff2');
  font-weight: 500; font-style: normal; font-display: swap;
  unicode-range: U+0000-00FF, U+2000-206F, U+20AC, U+20AD-20C0, U+2122, U+2212;
}

@font-face {
  font-family: 'Century Gothic W';
  src: url('../fonts/centurygothic-400.woff2') format('woff2');
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Century Gothic W';
  src: url('../fonts/centurygothic-700.woff2') format('woff2');
  font-weight: 700; font-style: normal; font-display: swap;
}

/* ---------- Токены ---------- */
:root {
  --paper: #FFFFFF;
  --paper-2: #FFFCE0;
  --card: #FFFFFF;
  --ink: #000000;
  --ink-soft: #4D4D4D;
  --line: #E0E0E0;
  --terra: #D81F27;
  --terra-deep: #A81017;
  --terra-soft: #FBE8E9;
  --stamp: #D81F27;
  --stamp-soft: #FFF9C4;
  --ok: #D81F27;
  --ok-soft: #FBE8E9;
  --warn: #000000;
  --display: 'Century Gothic W', 'Segoe UI', sans-serif;
  --body: 'Geologica', 'Segoe UI', system-ui, sans-serif;
  --mono: 'Geologica', 'Segoe UI', sans-serif;
  --r: 14px;
  --r-sm: 8px;
  --shadow: 0 1px 2px rgba(0,0,0,.05), 0 6px 24px -8px rgba(0,0,0,.10);
  --shadow-lg: 0 2px 4px rgba(0,0,0,.06), 0 18px 48px -12px rgba(0,0,0,.16);
  --w: 1180px;
}

/* ---------- База ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--body);
  font-size: 17px; line-height: 1.6; font-weight: 200;
  color: var(--ink);
  background: var(--paper);
  overflow-x: clip;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--terra-deep); text-underline-offset: 3px; }
a:hover { color: var(--terra); }
::selection { background: var(--stamp); color: #fff; }
:focus-visible { outline: 3px solid var(--stamp); outline-offset: 2px; border-radius: 4px; }
h1, h2, h3, h4 {
  font-family: var(--display);
  font-weight: 700;
  overflow-wrap: anywhere;
  line-height: 1.15;
  margin: 0 0 .5em;
  text-wrap: balance;
}
h1 { font-size: clamp(2rem, 4.6vw, 3.4rem); letter-spacing: -.01em; }
h2 { font-size: clamp(1.6rem, 3vw, 2.3rem); }
h3 { font-size: 1.25rem; }
p { margin: 0 0 1em; }
.lead { font-size: 1.18rem; color: var(--ink-soft); max-width: 42em; }
.nowrap { white-space: nowrap; }
.num { font-family: var(--mono); font-variant-numeric: tabular-nums; }

.container { max-width: var(--w); margin: 0 auto; padding: 0 24px; }
/* Вертикальный ритм: у всех секций один отступ 72px.
   --first — первая секция после хлебных крошек (крошки уже дали воздух сверху).
   --joint — секция, продолжающая предыдущую без разрыва.

   Padding секции — только половина дела: последний элемент внутри тянет свой
   margin-bottom (у абзаца-сноски, у кнопки «Все новости», у группы карточек),
   и воздух снизу разъезжается — было 72/86/89/121px. Гасим хвостовой margin,
   чтобы у всех секций снизу оставался ровно padding. */
.section { padding: 72px 0; }
.section > .container > *:last-child,
.section > .container > *:last-child > *:last-child { margin-bottom: 0; }

/* Две белые секции подряд: 72px снизу + 72px сверху = 144px пустоты, и разделить её
   нечем — читается как один провал. Там, где фон меняется (--tint), граница сама делит
   воздух, и 72+72 работают. Поэтому схлопываем отступ только между секциями одного фона. */
.section:not(.section--tint) + .section:not(.section--tint) { padding-top: 0; }
.section--first { padding-top: 48px; }
.section--joint { padding-top: 0; }
.section--tint { background: var(--paper-2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-head { max-width: 720px; margin-bottom: 40px; }

/* Заголовок группы на витрине калькуляторов */
.calc-group {
  font-family: var(--display);
  font-size: 1.45rem;
  margin: 0 0 20px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--line);
}
.calc-group + .grid { margin-bottom: 48px; }
.grid { display: grid; gap: 20px; }

/* Ярлык-штамп секции */
.tag {
  display: inline-block;
  font-family: var(--mono); font-size: .78rem; letter-spacing: .12em; text-transform: uppercase;
  color: var(--stamp);
  border: 1.5px dashed currentColor; border-radius: 4px;
  padding: 3px 10px 2px;
  margin-bottom: 14px;
  transform: rotate(-1.2deg);
  background: rgba(255,255,255,.5);
}

/* ---------- Кнопки ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-family: var(--body); font-size: 1rem; font-weight: 500; line-height: 1.2;
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
  padding: 14px 26px; border-radius: 10px;
  background: var(--terra); color: #fff;
  border: none; cursor: pointer; text-decoration: none;
  box-shadow: 0 2px 0 var(--terra-deep);
  transition: transform .12s ease, background .15s ease, box-shadow .12s ease;
}
.btn:hover { background: var(--terra-deep); color: #fff; transform: translateY(-1px); }
.btn:active { transform: translateY(1px); box-shadow: 0 0 0 var(--terra-deep); }
.btn--ghost {
  background: transparent; color: var(--ink);
  border: 1.5px solid var(--line); box-shadow: none;
}
.btn--ghost:hover { background: var(--card); color: var(--terra-deep); border-color: var(--terra); transform: none; }
.btn--sm { padding: 9px 16px; font-size: .92rem; border-radius: 8px; }
.btn--block { width: 100%; }

/* ---------- Шапка ---------- */
.header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.96);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.header__in { display: flex; align-items: center; gap: 16px; min-height: 92px; }
.logo { display: flex; align-items: center; gap: 14px; text-decoration: none; color: var(--ink); flex: 0 0 auto; }
.logo__text { display: flex; flex-direction: column; gap: 2px; }
.logo__name { font-family: var(--display); font-weight: 500; font-size: 1.3rem; white-space: nowrap; }
.logo__dot { width: 9px; height: 9px; border-radius: 50%; background: var(--terra); align-self: center; }
.logo__sub { font-family: var(--mono); font-size: .68rem; color: var(--ink-soft); letter-spacing: .08em; text-transform: uppercase; white-space: nowrap; }
/* Логотип сети 1С:БО: основная (стековая) версия, охранное поле — за счёт gap шапки */
.logo-net { height: 72px; width: auto; flex: 0 0 auto; }
.nav { display: flex; gap: 0; margin-left: auto; }
.nav a {
  position: relative;
  text-decoration: none; color: var(--ink); font-size: .93rem; font-weight: 500;
  padding: 8px 9px; border-radius: 8px; white-space: nowrap;
  transition: color .18s ease;
}
.nav a::after {
  content: ""; position: absolute; left: 9px; right: 9px; bottom: 3px; height: 2px;
  background: var(--terra); border-radius: 2px;
  transform: scaleX(0); transform-origin: left; transition: transform .22s ease;
}
.nav a:hover { color: var(--terra); }
.nav a:hover::after { transform: scaleX(1); }
.nav a.is-active { background: var(--stamp-soft); color: var(--stamp); }
.header__contacts { display: flex; align-items: center; gap: 12px; flex: 0 0 auto; }
.header__phone { font-family: var(--mono); font-size: .88rem; font-weight: 400; color: var(--ink); text-decoration: none; white-space: nowrap; }
.header__phone:hover { color: var(--terra-deep); }
.burger { display: none; background: none; border: 1.5px solid var(--line); border-radius: 8px; padding: 9px 10px; cursor: pointer; }
.burger span { display: block; width: 20px; height: 2px; background: var(--ink); margin: 4px 0; transition: transform .2s, opacity .2s; }
.burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero { position: relative; padding: 72px 0; overflow: hidden; }
.hero__grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 56px; align-items: center; }
.hero h1 { margin-bottom: .4em; }
.hero .lead { margin-bottom: 1.6em; }
.hero__cta { display: flex; gap: 14px; flex-wrap: wrap; align-items: center; }
/* margin-bottom: 0 — иначе абзац добавляет свои 14px к 72px секции, и воздух под сноской
   в hero (86px) не совпадает с такой же сноской в тарифах (72px) */
.hero__note { font-size: .9rem; color: var(--ink-soft); margin-top: 14px; margin-bottom: 0; }
.hero__art { position: relative; }

/* Круглая печать — сигнатура: «шлёпается» на правый верхний угол карточки-заявки.
   Вынос вправо ограничен полями контейнера: больше -34px печать срезает край экрана. */
.stamp {
  width: clamp(120px, 11vw, 144px); height: auto;
  position: absolute; left: auto; right: -34px; top: -50px; z-index: 2;
  transform: rotate(-12deg);
  opacity: .85;
  pointer-events: none;
  filter: drop-shadow(0 1px 1px rgba(0,0,0,.10));
  transition: transform .35s cubic-bezier(.2,.7,.3,1.2);
}
/* 1021–1240px: контейнер почти во всю ширину — вынос вправо срезался бы о край экрана */
@media (max-width: 1240px) and (min-width: 1021px) {
  .stamp { right: -8px; }
}
.hero__art:hover .stamp { transform: rotate(-8deg) scale(1.04); }
.stamp--inline { position: static; transform: rotate(-8deg); margin: 0 auto; }
@keyframes stamp-in {
  0% { transform: rotate(-12deg) scale(2.1); opacity: 0; }
  55% { transform: rotate(-12deg) scale(.94); opacity: 1; }
  75% { transform: rotate(-12deg) scale(1.04); }
  100% { transform: rotate(-12deg) scale(1); opacity: .92; }
}
.stamp.is-stamped { animation: stamp-in .55s cubic-bezier(.2,.7,.3,1.2) both; animation-delay: .45s; }

/* Карточка-форма в hero */
.lead-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--r);
  box-shadow: var(--shadow-lg);
  padding: 28px;
  position: relative;
}
.lead-card__head { font-family: var(--display); font-weight: 700; font-size: 1.3rem; margin-bottom: 4px; }
.lead-card__sub { font-size: .92rem; color: var(--ink-soft); margin-bottom: 18px; }

/* Отклик на «Получить консультацию», когда форма уже на экране */
@keyframes lead-call {
  0%   { box-shadow: var(--shadow-lg), 0 0 0 0 rgba(216, 31, 39, .45); border-color: var(--terra); }
  70%  { box-shadow: var(--shadow-lg), 0 0 0 12px rgba(216, 31, 39, 0); border-color: var(--terra); }
  100% { box-shadow: var(--shadow-lg), 0 0 0 0 rgba(216, 31, 39, 0); }
}
.lead-card--call { animation: lead-call .9s ease-out; }
@media (prefers-reduced-motion: reduce) {
  .lead-card--call { animation: none; border-color: var(--terra); }
}

/* ---------- Полоса доверия ---------- */
.trust { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--paper-2); }
.trust__in { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; padding: 22px 0; }
.trust__item { display: flex; gap: 10px; align-items: flex-start; font-size: .93rem; color: var(--ink-soft); }
.trust__item strong { color: var(--ink); display: block; font-size: .97rem; }
.trust__tick { color: var(--ok); font-weight: 700; flex: 0 0 auto; }

/* ---------- Карточки услуг ---------- */
.cards--3 { grid-template-columns: repeat(3, 1fr); }
.cards--2 { grid-template-columns: repeat(2, 1fr); }
.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: 26px;
  display: flex; flex-direction: column;
  box-shadow: var(--shadow);
  transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease;
}
a.card { text-decoration: none; color: var(--ink); }
a.card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); border-color: var(--terra); color: var(--ink); }
.card h3 { margin-bottom: .35em; }
.card p { color: var(--ink-soft); font-size: .97rem; margin-bottom: 0; }
.card__price { margin-top: auto; padding-top: 18px; font-family: var(--mono); font-size: .95rem; color: var(--stamp); }
.card__more { margin-top: 6px; font-weight: 500; font-size: .95rem; color: var(--terra-deep); }
a.card:hover .card__more { text-decoration: underline; text-underline-offset: 3px; }

/* ---------- Этапы (настоящая последовательность) ---------- */
.steps { grid-template-columns: repeat(4, 1fr); counter-reset: step; }
.step { position: relative; padding: 22px 20px 20px; background: var(--card); border: 1px solid var(--line); border-radius: var(--r); }
.step::before {
  counter-increment: step;
  content: counter(step);
  display: inline-flex; align-items: center; justify-content: center;
  width: 34px; height: 34px; border-radius: 50%;
  font-family: var(--mono); font-size: 1rem;
  background: var(--stamp-soft); color: var(--stamp);
  margin-bottom: 12px;
}
.step h3 { font-size: 1.08rem; }
.step p { font-size: .92rem; color: var(--ink-soft); margin: 0; }

/* ---------- Тарифы-«чеки» ---------- */
.prices { grid-template-columns: repeat(3, 1fr); align-items: stretch; }
.price {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 6px 6px var(--r) var(--r);
  padding: 26px 26px 22px;
  display: flex; flex-direction: column;
  box-shadow: var(--shadow);
  position: relative;
}
.price::before { /* линия отрыва чека */
  content: ""; position: absolute; top: 0; left: 12px; right: 12px; height: 0;
  border-top: 2px dashed var(--line);
}
.price--hit { border-color: var(--terra); box-shadow: var(--shadow-lg); }
.price__badge {
  position: absolute; top: -13px; right: 18px;
  font-family: var(--mono); font-size: .72rem; letter-spacing: .1em; text-transform: uppercase;
  background: var(--terra); color: #fff; border-radius: 4px; padding: 4px 9px 3px;
  transform: rotate(2deg);
}
.price h3 { font-size: 1.3rem; margin-bottom: 2px; }
.price__for { font-size: .9rem; color: var(--ink-soft); margin-bottom: 16px; }
.price__sum { font-family: var(--mono); font-size: 1.7rem; color: var(--ink); margin-bottom: 2px; }
.price__sum small { font-size: .9rem; color: var(--ink-soft); }
.price__per { font-size: .85rem; color: var(--ink-soft); margin-bottom: 16px; }
.price ul { list-style: none; margin: 0 0 20px; padding: 0; font-size: .95rem; }
.price li { padding: 7px 0 7px 26px; position: relative; border-bottom: 1px dotted var(--line); }
.price li:last-child { border-bottom: none; }
.price li::before { content: "✓"; position: absolute; left: 2px; color: var(--ok); font-weight: 700; }
.price li.no::before { content: "—"; color: var(--line); }
.price .btn { margin-top: auto; }

/* ---------- Калькуляторы ---------- */
.calc-layout { display: grid; grid-template-columns: 1.05fr .95fr; gap: 32px; align-items: start; }
.calc-form { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 26px; box-shadow: var(--shadow); }
.calc-form h3 { font-size: 1.1rem; }
.field { margin-bottom: 16px; }
.field label { display: block; font-size: .92rem; font-weight: 500; margin-bottom: 6px; }
.field .hint { font-size: .82rem; color: var(--ink-soft); font-weight: 400; }
.input, .select, textarea.input {
  width: 100%;
  font-family: var(--body); font-size: 1rem; color: var(--ink);
  background: #fff; border: 1.5px solid var(--line); border-radius: var(--r-sm);
  padding: 11px 14px;
  transition: border-color .15s;
}
.input:focus, .select:focus, textarea.input:focus { border-color: var(--stamp); outline: none; }
.input.num { font-family: var(--mono); }
.seg { display: flex; flex-wrap: wrap; gap: 8px; }
.seg label {
  cursor: pointer; user-select: none;
  border: 1.5px solid var(--line); border-radius: 999px;
  padding: 8px 16px; font-size: .93rem; font-weight: 500; background: #fff;
  transition: border-color .12s, background .12s, color .12s;
  margin-bottom: 0;
}
.seg input { position: absolute; opacity: 0; pointer-events: none; }
.seg input:checked + span { color: var(--stamp); }
.seg label:has(input:checked) { border-color: var(--stamp); background: var(--stamp-soft); color: var(--stamp); }
.seg label:hover { border-color: var(--stamp); }

/* Результат-«чек» */
.receipt {
  font-family: var(--mono); font-size: .95rem;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 26px 24px 20px;
  box-shadow: var(--shadow-lg);
  position: sticky; top: 92px;
  --tear: radial-gradient(circle at 8px -3px, transparent 7px, #fff 7.5px);
}
.receipt::before {
  content: "";
  display: block; height: 10px; margin: -26px -24px 16px;
  background: var(--tear); background-size: 16px 10px; background-repeat: repeat-x;
}
.receipt__title { text-align: center; letter-spacing: .12em; text-transform: uppercase; font-size: .82rem; color: var(--ink-soft); margin-bottom: 14px; }
.receipt__row { display: flex; justify-content: space-between; gap: 14px; padding: 6px 0; border-bottom: 1px dashed var(--line); }
.receipt__row span:last-child { white-space: nowrap; font-variant-numeric: tabular-nums; }
.receipt__row--sub { font-size: .85rem; color: var(--ink-soft); border-bottom: none; padding: 2px 0; }
.receipt__total { display: flex; justify-content: space-between; gap: 14px; padding: 14px 0 6px; font-size: 1.15rem; font-weight: 700; }
.receipt__total span:last-child { color: var(--terra-deep); white-space: nowrap; }
.receipt__note { font-size: .8rem; color: var(--ink-soft); border-top: 2px dashed var(--line); margin-top: 12px; padding-top: 12px; }
.receipt__note p { margin-bottom: .5em; }
.receipt .btn { width: 100%; margin-top: 12px; font-family: var(--body); }
.receipt__stamp { text-align: center; margin-top: 14px; }
.receipt__stamp span {
  display: inline-block;
  font-size: .78rem; letter-spacing: .14em; text-transform: uppercase;
  color: var(--stamp); border: 2px solid var(--stamp); border-radius: 6px;
  padding: 5px 12px 4px; transform: rotate(-3deg); opacity: .8;
}

/* ---------- Новости ---------- */
.news-grid { grid-template-columns: repeat(3, 1fr); }
.news-card { overflow: hidden; padding: 0; }
.news-card__body { padding: 20px 22px 22px; display: flex; flex-direction: column; flex: 1; }
.news-card__meta { display: flex; gap: 10px; align-items: center; font-family: var(--mono); font-size: .78rem; color: var(--ink-soft); margin-bottom: 10px; }
.news-card__cat { color: var(--stamp); border: 1px solid currentColor; border-radius: 4px; padding: 1px 7px; }
.news-card h3 { font-size: 1.12rem; line-height: 1.3; }
.news-card p { font-size: .92rem; }
.article { max-width: 760px; }
.article__meta { display: flex; gap: 12px; align-items: center; font-family: var(--mono); font-size: .85rem; color: var(--ink-soft); margin-bottom: 26px; }
.article__meta .news-card__cat { font-size: .8rem; }

/* Контент от редактора */
.prose { max-width: 760px; }
.prose h2 { font-size: 1.55rem; margin-top: 1.6em; }
.prose h3 { font-size: 1.2rem; margin-top: 1.4em; }
.prose ul, .prose ol { padding-left: 1.3em; margin: 0 0 1.2em; }
.prose li { margin-bottom: .45em; }
.prose li::marker { color: var(--terra); }
.prose table { border-collapse: collapse; width: 100%; margin: 0 0 1.4em; font-size: .95rem; }
.prose th, .prose td { border: 1px solid var(--line); padding: 10px 13px; text-align: left; }
.prose th { background: var(--paper-2); font-weight: 500; }
.prose blockquote {
  margin: 1.4em 0; padding: 14px 20px;
  border-left: 4px solid var(--terra); background: var(--terra-soft); border-radius: 0 var(--r-sm) var(--r-sm) 0;
}
.prose blockquote p:last-child { margin-bottom: 0; }
.prose img { border-radius: var(--r); }

/* ---------- Формы заявок ---------- */
.form .field { margin-bottom: 14px; }
.form__consent { display: flex; gap: 10px; align-items: flex-start; font-size: .82rem; color: var(--ink-soft); margin: 14px 0 16px; }
.form__consent input { margin-top: 3px; accent-color: var(--terra); width: 16px; height: 16px; flex: 0 0 auto; }
.form__consent a { color: inherit; }
.form .error { color: #D81F27; font-size: .82rem; display: block; margin-top: 4px; }
.form-ok {
  background: #FFF9C4; border: 1px solid #FFF100; border-radius: var(--r-sm);
  color: #000; padding: 14px 16px; font-size: .95rem; margin-bottom: 16px;
}
.hp-field { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* ---------- CTA-полоса ---------- */
.cta-band { background: var(--ink); color: #fff; border-radius: var(--r); padding: 44px 48px; position: relative; overflow: hidden; }
.cta-band::after {
  content: "₽"; position: absolute; right: 30px; bottom: -46px;
  font-family: var(--display); font-size: 200px; line-height: 1; color: rgba(255,241,0,.10);
}
.cta-band h2 { color: #fff; margin-bottom: .3em; }
.cta-band p { color: rgba(255,255,255,.82); max-width: 34em; }
.cta-band .btn { box-shadow: none; }

/* ---------- FAQ ---------- */
.faq { max-width: 800px; }
.faq details { border: 1px solid var(--line); border-radius: var(--r-sm); background: var(--card); margin-bottom: 10px; }
.faq summary {
  cursor: pointer; list-style: none;
  font-weight: 500; padding: 16px 46px 16px 18px; position: relative;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; position: absolute; right: 18px; top: 12px;
  font-family: var(--mono); font-size: 1.4rem; color: var(--terra);
  transition: transform .15s;
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq .faq__a { box-sizing: border-box; padding: 0 18px; overflow: hidden; transition: height .28s ease; color: var(--ink-soft); font-size: .97rem; }
.faq .faq__a::after { content: ""; display: block; height: 16px; }

/* ---------- Хлебные крошки ---------- */
.crumbs { font-size: .85rem; color: var(--ink-soft); margin: 22px 0 0; }
.crumbs a { color: var(--ink-soft); text-decoration: none; }
.crumbs a:hover { color: var(--terra-deep); text-decoration: underline; }
.crumbs .sep { margin: 0 6px; color: var(--line); }

/* ---------- Футер ---------- */
/* Без margin-top: последняя секция уже даёт свои 72px — иначе до футера копилось 160px */
.footer { background: var(--ink); color: rgba(255,255,255,.72); }
.footer a { color: rgba(255,255,255,.88); text-decoration: none; }
.footer a:hover { color: #fff; text-decoration: underline; }
.footer__in { display: grid; grid-template-columns: 1.2fr 1fr 1fr 1.2fr; gap: 32px; padding: 52px 0 40px; font-size: .92rem; }
.footer__logo { font-family: var(--display); font-weight: 500; font-size: 1.3rem; color: #fff; margin-bottom: 8px; }
.footer h4 { color: #fff; font-family: var(--body); font-size: .85rem; text-transform: uppercase; letter-spacing: .1em; margin-bottom: 14px; }
.footer ul { list-style: none; margin: 0; padding: 0; }
.footer li { margin-bottom: 8px; }
.footer__phone { font-family: var(--mono); font-size: 1.05rem; color: #fff !important; }
.footer__bottom {
  border-top: 1px solid rgba(255,255,255,.12);
  padding: 18px 0 22px; font-size: .8rem;
  display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap;
}
.footer__req { font-size: .8rem; line-height: 1.5; }
.footer__1c { margin-top: 10px; font-size: .8rem; color: rgba(255,255,255,.5); }
.footer__net { height: 72px; width: auto; margin-top: 16px; display: block; }

/* ---------- Cookie ---------- */
.site-note {
  position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 90;
  box-sizing: border-box;
  max-width: 560px; margin: 0 auto;
  background: var(--card); border: 1px solid var(--line); border-radius: var(--r);
  box-shadow: var(--shadow-lg);
  padding: 16px 18px;
  display: none; gap: 16px; align-items: center;
  font-size: .85rem; color: var(--ink-soft);
}
.site-note.is-visible { display: flex; }
.site-note p { margin: 0; }

/* ---------- Появление при скролле (только при работающем JS) ---------- */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .5s ease, transform .5s ease; }
.js .reveal.is-in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .stamp.is-stamped { animation: none; }
  .receipt--fresh { animation: none; }
  .stamp, .hero__art:hover .stamp { transition: none; }
  .faq .faq__a { transition: none; }
  * { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}

/* ---------- Адаптив ---------- */
@media (max-width: 1280px) {
  .nav a { padding: 8px 7px; font-size: .89rem; }
  .header__phone { display: none; }
}
@media (max-width: 1090px) {
  /* компактная шапка: Unbounded шире прежних шрифтов — в полосе 1021-1090px ужимаем всё */
  .nav a { padding: 8px 3px; font-size: .82rem; }
  .header__contacts .btn { padding: 9px 10px; font-size: .88rem; }
  .logo-net { height: 56px; }
  .logo__name { font-size: 1.05rem; }
  .logo__sub { font-size: .6rem; }
}
@media (max-width: 1020px) {
  .hero__grid { grid-template-columns: 1fr; gap: 36px; }
  .hero__art { margin-top: 26px; }
  .stamp { right: 2px; top: -54px; }   /* полей контейнера нет — печать не должна резаться о край */
  .cards--3, .news-grid, .prices { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .trust__in { grid-template-columns: repeat(2, 1fr); }
  .calc-layout { grid-template-columns: 1fr; }
  .receipt { position: static; }
  .footer__in { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 900px) {
  .nav {
    display: flex;
    position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; gap: 2px;
    background: var(--paper); border-bottom: 1px solid var(--line);
    padding: 0 16px;
    box-shadow: var(--shadow-lg);
    max-height: 0; opacity: 0; overflow: hidden; visibility: hidden;
    transition: max-height .3s ease, opacity .25s ease, padding .3s ease, visibility .3s;
  }
  .nav.is-open { max-height: 78vh; opacity: 1; visibility: visible; padding: 10px 16px 16px; }
  .nav a::after { display: none; }
  .burger { display: block; margin-left: auto; }
  .header__contacts { margin-left: 0; }
  .header__contacts .btn { display: none; }
}
@media (max-width: 900px) {
  .logo-net { height: 72px; }
  /* Карточка во всю ширину: печать нависает на её правый верхний угол,
     поэтому освобождаем под неё место в заголовке и подзаголовке формы */
  .hero__art .stamp { width: 104px; top: -56px; right: 2px; }
  .lead-card__head, .lead-card__sub { padding-right: 104px; }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .footer__in { grid-template-columns: 1fr; }
  .section { padding: 52px 0; }
  .logo-net { height: 72px; }
  .logo__text { display: none; }
  .cards--3, .cards--2, .news-grid, .prices, .steps, .trust__in { grid-template-columns: 1fr; }
  /* шорткат .section выше перебивает padding-top — возвращаем модификаторам их значения */
  .section--first { padding-top: 36px; }
  .section--joint { padding-top: 0; }
  .cta-band { padding: 32px 24px; }
  .hero { padding: 52px 0; }               /* было 44/56 — несимметрично */
  .header__phone { display: none; }
  .container { padding: 0 18px; }
  .lead-card { padding: 22px 18px; }

  /* Полоса доверия. В одну колонку четыре пункта слипаются в сплошную стену текста,
     а вертикальный padding у .trust__in съедало правило .container выше (шорткат).
     Возвращаем воздух и разделяем пункты линиями — каждый снова читается отдельно. */
  .trust__in { padding-top: 8px; padding-bottom: 8px; gap: 0; }
  .trust__item { padding: 14px 0; }
  .trust__item + .trust__item { border-top: 1px solid var(--line); }
}
@media (max-width: 380px) {
  .header__in { gap: 8px; }
}

/* ---------- Пагинация (pdoPage) ---------- */
.pagination {
  display: flex; flex-wrap: wrap; gap: 8px;
  list-style: none; margin: 0; padding: 0; justify-content: center;
}
.pagination .page-item { margin: 0; }
.page-link {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 42px; height: 42px; padding: 0 12px;
  border: 1px solid var(--line); border-radius: var(--r-sm);
  font-family: var(--body); font-size: .95rem; color: var(--ink);
  text-decoration: none; background: #fff; transition: all .15s ease;
}
a.page-link:hover { border-color: var(--terra); color: var(--terra); }
.page-item.active .page-link { background: var(--terra); border-color: var(--terra); color: #fff; }
.page-item.disabled .page-link { color: var(--ink-soft); opacity: .5; }

/* Анимация «свежая печать» чека калькулятора */
@keyframes receipt-fresh { from { opacity: .4; transform: translateY(-5px); } to { opacity: 1; transform: none; } }
.receipt--fresh { animation: receipt-fresh .26s ease-out; }

/* Якоря не должны нырять под липкую шапку (92px) */
[id] { scroll-margin-top: 112px; }
/* Форма в hero видна сразу на десктопе — клик по кнопке не должен дёргать страницу */
#zayavka-hero { scroll-margin-top: 120px; }   /* фолбэк без JS; с JS скролл считает site.js */
@media (max-width: 900px) { [id] { scroll-margin-top: 100px; } }

/* ---------- Блок «Ответственность застрахована» ---------- */
.insured {
  position: relative;                    /* печать «шлёпается» на угол — как в hero */
  background: var(--paper-2); border: 1.5px solid var(--terra);
  border-radius: var(--r); padding: 28px 32px; margin: 44px 0 36px;
}
.insured h3 { margin: 0 0 10px; font-size: 1.35rem; }
.insured p { margin: 0 0 12px; color: var(--ink); }
.insured ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 7px; }
.insured li { position: relative; padding-left: 24px; font-size: .95rem; }
.insured li::before { content: "✓"; position: absolute; left: 0; top: 0; color: var(--terra); font-weight: 500; }
.insured__note { margin-top: 14px !important; font-size: .85rem; color: var(--ink-soft); }
/* Место под печать нужно только там, где она реально нависает — заголовок и первый абзац */
.insured h3, .insured__text > p:first-of-type { padding-right: 122px; }

/* Наследует .stamp целиком (размер, угол −12°, тень, анимация «шлепка») —
   печати на главной и здесь одинаковые; меняем только якорь угла */
.stamp--insured { right: -34px; top: -44px; }
.insured:hover .stamp--insured { transform: rotate(-8deg) scale(1.04); }

@media (max-width: 760px) {
  .insured { padding: 24px 20px; margin-top: 52px; }
  .insured h3 { padding-right: 96px; }             /* заголовок не подлезает под печать */
  .insured__text > p:first-of-type { padding-right: 0; }
  .stamp--insured { right: -12px; top: -40px; }
}

/* ---------- Модалка выбора тарифа ---------- */
.modal { position: fixed; inset: 0; z-index: 200; display: flex; align-items: center; justify-content: center; padding: 20px; }
.modal[hidden] { display: none; }
.modal__backdrop { position: absolute; inset: 0; background: rgba(17, 17, 17, .55); }
.modal__card { position: relative; width: 100%; max-width: 440px; max-height: calc(100dvh - 40px); overflow: auto; margin: 0; box-shadow: 0 24px 64px rgba(0, 0, 0, .28); animation: modal-in .22s ease-out; }
.modal__x { position: absolute; top: 8px; right: 10px; border: 0; background: none; font-size: 28px; line-height: 1; padding: 6px 10px; cursor: pointer; color: var(--ink-soft); }
.modal__x:hover { color: #D81F27; }
body.modal-open { overflow: hidden; }
@keyframes modal-in { from { transform: translateY(14px); opacity: 0; } to { transform: none; opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .modal__card { animation: none; } }

/* Успех в модалке: вместо формы — зелёная галочка, текст и «Закрыть» */
.modal__done { display: none; text-align: center; padding: 10px 0 2px; }
.modal.is-done .modal__done { display: block; }
.modal.is-done .modal__card form,
.modal.is-done .lead-card__sub { display: none; }
.modal__done-icon { width: 58px; height: 58px; margin: 4px auto 14px; border-radius: 50%; background: #23A455; display: flex; align-items: center; justify-content: center; animation: done-pop .35s cubic-bezier(.34, 1.56, .64, 1); }
.modal__done-text { font-size: 1.02rem; line-height: 1.55; margin: 0 0 18px; }
@keyframes done-pop { from { transform: scale(.4); opacity: 0; } to { transform: none; opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .modal__done-icon { animation: none; } }

/* Кнопки cookie-баннера */
.site-note__btns { display: flex; gap: 8px; flex-shrink: 0; }
@media (max-width: 480px) { .site-note { flex-wrap: wrap; } .site-note__btns { width: 100%; } .site-note__btns .btn { flex: 1; } }

/* Кредит разработчика в подвале */
.footer__madeby { margin-top: 6px; font-size: .8rem; opacity: .75; }
.footer__madeby a { color: inherit; text-decoration: underline; }
