/* ==========================================================================
   ШАБЛОН ЛЕНДИНГА ИТ-КОМПАНИИ — на основе дизайна xeniabaranova.ru
   Всё оформление вынесено в переменные ниже: меняете их — меняется весь сайт.
   ========================================================================== */

/* Палитра бренда. Меняете значения здесь — перекрашивается весь сайт.
   Цвета иллюстраций зашиты в assets/img/*.svg, их надо править там же. */
:root {
  /* Цвета — сняты с оригинала */
  --bg:            #0B1510;   /* фон секций */
  --bg-deep:       #071009;   /* фон интерактивных обоев */
  --accent:        #3DBB4A;   /* акцент: заголовки, заливка кнопок */
  --accent-net:    #4ECB5C;   /* цвет линий обоев VANTA.NET */
  --text:          #ffffff;   /* основной текст */
  --text-soft:     #D6E6DA;   /* подзаголовки, названия карточек */
  --muted:         #7E9C86;   /* вспомогательный текст */
  --line:          rgba(214, 230, 218, 0.14); /* рамки, разделители */
  --dark:          #0B1510;   /* цвет текста на светлой заливке */

  /* Шрифты */
  --font-display: 'Unbounded', 'Arial Black', Arial, sans-serif;
  --font-mono:    'Source Code Pro', 'Consolas', 'Courier New', monospace;

  /* Ширина контента */
  --container: 1045px;
  --gutter: 33px;

  /* Прочее */
  --radius: 0;                 /* в оригинале скругления нет */
  --btn-h: 59px;
}

/* ==========================================================================
   БАЗА
   ========================================================================== */

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

html {
  scroll-behavior: smooth;
  /* якорь не прилипает к фиксированной шапке */
  scroll-padding-top: 70px;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-mono);
  font-size: 14px;
  line-height: 1.25;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, h4, p, ul, ol, figure { margin: 0; }
ul { padding: 0; list-style: none; }
a { color: inherit; text-decoration: none; }
img, svg { display: block; max-width: 100%; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }

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

/* Типографика — ровно как на оригинале */
.h1 {
  font-family: var(--font-display);
  font-size: 50px;
  font-weight: 400;
  line-height: 1;
  letter-spacing: normal;
  color: var(--accent);
}
.h2 {
  font-family: var(--font-display);
  font-size: 40px;
  font-weight: 400;
  line-height: 1.05;
  color: var(--text);
}
.h3 {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 400;
  line-height: 1.2;
  color: var(--text-soft);
}
.eyebrow {
  font-family: var(--font-display);
  font-size: 15px;
  line-height: 19px;
  text-transform: uppercase;
  color: var(--text);
}
.lead-sm {
  font-family: var(--font-display);
  font-size: 20px;
  line-height: 1.35;
  color: var(--text-soft);
}

.text {
  font-family: var(--font-mono);
  font-size: 14px;
  line-height: 17px;
  letter-spacing: -0.1px;
  color: var(--muted);
}

/* ==========================================================================
   КНОПКИ
   Обводка зелёная, при наведении заливка въезжает слева, текст темнеет.
   ========================================================================== */

.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: var(--btn-h);
  padding: 0 22px;
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 400;
  letter-spacing: 0.4px;
  border-radius: var(--radius);
  border: 1px solid var(--accent);
  background: transparent;
  color: var(--accent);
  cursor: pointer;
  white-space: nowrap;          /* текст кнопки никогда не переносится */
  overflow: hidden;
  transition: color .25s ease, transform .2s ease;
}

/* заливка, которая выезжает при наведении */
.btn::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform .28s ease;
  z-index: 0;
}
.btn > * { position: relative; z-index: 1; }

.btn:hover {
  color: var(--dark);
  transform: translateY(-2px);
}
.btn:hover::before { transform: scaleX(1); }
.btn:active { transform: translateY(0); }
.btn:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

/* тёмная кнопка: заливка зелёная, на наведении инвертируется */
.btn--solid { background: var(--accent); color: var(--dark); }
.btn--solid::before { background: var(--dark); }
.btn--solid:hover { color: var(--accent); }

.btn--ghost { min-height: 61px; border-color: rgba(61, 187, 74, .6); }

.btn .arrow { transition: transform .2s ease; }
.btn:hover .arrow { transform: translateX(4px); }

/* ==========================================================================
   ШАПКА
   ========================================================================== */

.header {
  position: absolute;
  top: 0; left: 0; right: 0;
  z-index: 20;
  background: transparent;
}
.header--fixed {
  position: fixed;
  background: rgba(11, 21, 16, .92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 50px;
}
.header__logo {
  font-family: var(--font-display);
  font-size: 15px;
  color: var(--text);
  text-transform: uppercase;
}
.header__nav { display: flex; gap: 30px; }
.header__link {
  font-family: var(--font-mono);
  font-size: 14px;
  color: var(--text-soft);
  transition: color .2s ease;
}
.header__link:hover { color: var(--accent); }

.burger {
  display: none;
  width: 44px; height: 44px;
  position: relative;
}
.burger span {
  position: absolute; left: 11px;
  width: 22px; height: 2px;
  background: var(--text);
  transition: transform .25s ease, opacity .2s ease, top .25s ease;
}
.burger span:nth-child(1) { top: 15px; }
.burger span:nth-child(2),
.burger span:nth-child(3) { top: 21px; width: 15.4px; right: 11px; left: auto; }
.burger span:nth-child(4) { top: 27px; width: 15.4px; right: 11px; left: auto; }
.burger.is-open span:nth-child(1) { top: 21px; transform: rotate(45deg); }
.burger.is-open span:nth-child(3) { opacity: 0; }
.burger.is-open span:nth-child(2) { top: 21px; width: 22px; left: 11px; transform: rotate(-45deg); }
.burger.is-open span:nth-child(4) { top: 21px; width: 22px; left: 11px; transform: rotate(45deg); }

/* ==========================================================================
   ИНТЕРАКТИВНЫЕ ОБОИ (первый экран)
   ========================================================================== */

/* Обёртка обязательна: создаёт контекст наложения, иначе канвас
   с z-index:-1 уедет за фон страницы и обои не будут видны. */
.vanta-holder { position: absolute; inset: 0; z-index: 0; overflow: hidden; }
#vanta-bg { width: 100%; height: 100%; position: absolute; top: 0; left: 0; z-index: -1; }

/* Если WebGL недоступен — просто тёмный фон */
.no-webgl .vanta-holder { background: var(--bg-deep); }

/* ==========================================================================
   1. ПЕРВЫЙ ЭКРАН
   ========================================================================== */

.hero {
  position: relative;
  min-height: 936px;
  display: flex;
  align-items: center;
  padding: 130px 0 90px;
  overflow: hidden;
}
.hero__inner { position: relative; z-index: 3; text-align: center; }
.hero__eyebrow { margin-bottom: 31px; }
.hero__title { max-width: 865px; margin: 0 auto; }
.hero__subtitle {
  max-width: 520px;
  margin: 27px auto 0;
  font-family: var(--font-mono);
  font-size: 16px;
  line-height: 19px;
  color: var(--text-soft);
}
.hero__actions {
  display: flex;
  justify-content: center;
  gap: 15px;
  margin-top: 40px;
}
.hero__actions .btn { width: 270px; }

.hero__welcome {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 40px;
  align-items: end;
  margin-top: 90px;
  text-align: left;
}
.hero__welcome-title {
  font-family: var(--font-display);
  font-size: 40px;
  font-weight: 400;
  line-height: 1.05;
  color: var(--accent);
}
.hero__welcome-title span { display: block; color: var(--text); font-size: 30px; font-weight: 400; line-height: 1.1; }
.hero__lead { max-width: 552px; margin-top: 46px; }

/* ==========================================================================
   2. СЕКЦИЯ С НУМЕРОВАННЫМИ КАРТОЧКАМИ
   ========================================================================== */

.section { padding: 110px 0; position: relative; }
.section--tight { padding: 80px 0; }
.section__title { text-align: center; max-width: 827px; margin: 0 auto; }
.section__sub { text-align: center; max-width: 639px; margin: 24px auto 0; }
.section__cta { text-align: center; margin-top: 48px; }

.features {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin-top: 60px;
}
.feature {
  min-height: 158px;
  padding: 24px 24px 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: border-color .2s ease, transform .2s ease;
}
.feature:hover { border-color: rgba(61, 187, 74, .5); transform: translateY(-3px); }
.feature__num {
  font-family: var(--font-display);
  font-size: 20px;
  line-height: 24px;
  color: var(--text-soft);
  margin-bottom: 31px;
}
.feature__text { max-width: 225px; }

/* ==========================================================================
   3. «ПОКА ВЫ ВРУЧНУЮ…»
   ========================================================================== */

.compare {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 60px;
  align-items: start;
  margin-top: 50px;
}
.compare__list { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.compare__item { text-align: center; }
.compare__icon {
  width: 45px; height: 45px;
  margin: 0 auto 28px;
  border: 1px solid var(--line);
  display: grid;
  place-items: center;
  color: var(--accent);
}
.compare__item p { max-width: 180px; margin: 0 auto; }
.compare__ask { border-left: 1px solid var(--line); padding-left: 40px; }
.compare__ask-title {
  font-family: var(--font-display);
  font-size: 40px;
  font-weight: 400;
  line-height: 1.05;
  color: var(--text);
  margin-bottom: 83px;
}
.compare__ask p { max-width: 190px; }

/* ==========================================================================
   4. КАРТОЧКИ ВЫГОД
   ========================================================================== */

.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 60px;
}
.card {
  min-width: 0;
  overflow-wrap: anywhere;
  position: relative;
  min-height: 199px;
  padding: 26px 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  text-align: center;
  transition: border-color .2s ease, transform .2s ease;
}
.card:hover { border-color: rgba(61, 187, 74, .5); transform: translateY(-3px); }
.card__title { margin-bottom: 24px; }
.card__text { max-width: 289px; margin: 0 auto; }
.card__accent { position: absolute; top: 0; left: 0; width: 10px; height: 74px; background: var(--accent); }

/* Маркированный список — используется в нескольких секциях */
.bullets { display: grid; gap: 10px; }
.bullets li {
  position: relative;
  padding-left: 22px;
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 14px;
  line-height: 17px;
}
.bullets li::before {
  content: '';
  position: absolute; left: 0; top: 7px;
  width: 8px; height: 1px;
  background: var(--accent);
}

/* ==========================================================================
   5. КАК МЫ РАБОТАЕМ
   ========================================================================== */

.how { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: start; }
.how__label { margin-bottom: 19px; }
.how__list { display: grid; gap: 19px; }
.how__item { display: grid; grid-template-columns: 20px 1fr; gap: 24px; align-items: start; }
.how__bullet { width: 20px; height: 20px; border: 1px solid var(--accent); margin-top: 2px; }
.how__media { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; }

/* Заглушка изображения: замените на <img src="ваш-файл.jpg" alt="..."> */
.ph {
  aspect-ratio: 4 / 3;
  background:
    linear-gradient(135deg, rgba(61, 187, 74,.10), rgba(61, 187, 74,.02)),
    repeating-linear-gradient(45deg, #0D1A14 0 12px, #102018 12px 24px);
  border: 1px solid var(--line);
  display: grid;
  place-items: center;
  color: rgba(214, 230, 218, .4);
  font-family: var(--font-mono);
  font-size: 12px;
}

/* Иллюстрация в блоке. Готовые — в assets/img/ */
.shot {
  display: block;
  width: 100%;
  height: auto;          /* иначе атрибут height="600" перебьёт aspect-ratio */
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border: 1px solid var(--line);
  background: var(--bg);
}
.shot--tall { aspect-ratio: 401 / 493; }
.shot--wide { aspect-ratio: 21 / 9; }

/* ==========================================================================
   6. УСЛУГИ
   ========================================================================== */

.section--services { padding-top: 0; }

.tabs {
  display: flex;
  justify-content: center;
  gap: 0;
  margin: 30px 0 50px;
  border-bottom: 1px solid var(--line);
}
.tab {
  padding: 14px 40px;
  font-family: var(--font-display);
  font-size: 15px;
  color: var(--muted);
  border-bottom: 2px solid transparent;
  transition: color .2s ease, border-color .2s ease;
}
.tab:hover { color: var(--text-soft); }
.tab.is-active { color: var(--accent); border-bottom-color: var(--accent); }

.tab-panel { display: none; }
.tab-panel.is-active { display: block; }

.service-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 27px 20px;
}
.service {
  min-width: 0;
  overflow-wrap: anywhere;
  padding: 30px 34px 34px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  display: flex;
  flex-direction: column;
  transition: border-color .2s ease, transform .2s ease;
}
.service:hover { border-color: rgba(61, 187, 74, .5); transform: translateY(-3px); }
.service__badge {
  align-self: flex-start;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--accent);
  border: 1px solid rgba(61, 187, 74, .4);
  padding: 3px 9px;
  margin-bottom: 18px;
}
.service__title { margin-bottom: 14px; }
.service__desc { margin-bottom: 26px; }
.service__specs { display: grid; gap: 8px; margin-bottom: 30px; }
.service__spec { display: grid; grid-template-columns: 108px 1fr; gap: 10px; }
.service__spec dt { color: var(--muted); }
.service__spec dd { margin: 0; color: var(--text-soft); }
.service__foot { margin-top: auto; display: flex; flex-wrap: wrap; align-items: center; gap: 12px 18px; }
.service__term { font-family: var(--font-display); font-size: 18px; color: var(--text); }

/* Ссылки «подробнее» на отдельные страницы услуг (/crm/, /erp/) */
.service__more {
  margin: 16px 0 0;
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--muted);
}
.service__more a { transition: color .2s ease; }
.service__more a:hover { color: var(--accent); }

/* ==========================================================================
   7. ЭТО ПРИГОДИТСЯ ВАМ, ЕСЛИ…
   ========================================================================== */

.fit-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 22px;
  margin-top: 47px;
}
.fit {
  min-height: 478px;
  padding: 30px 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  display: flex;
  flex-direction: column;
  transition: border-color .2s ease, transform .2s ease;
}
.fit:hover { border-color: rgba(61, 187, 74, .5); transform: translateY(-3px); }
.fit__icon { width: 20px; height: 20px; border: 1px solid var(--accent); margin-bottom: 32px; }
.fit__title { margin-bottom: 22px; }
.fit__text { margin-bottom: 26px; }
.fit .bullets { margin-top: auto; }

/* ==========================================================================
   8. ОТЗЫВЫ
   ========================================================================== */

.reviews { position: relative; }
.reviews__track {
  display: flex;
  gap: 20px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;   /* плавная прокрутка стрелками (см. initReviews) */
  padding-bottom: 12px;
}
.reviews__track::-webkit-scrollbar { height: 2px; }
.reviews__track::-webkit-scrollbar-thumb { background: rgba(61, 187, 74, .4); }
.review {
  flex: 0 0 380px;
  scroll-snap-align: start;
  padding: 28px 26px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  display: flex;
  flex-direction: column;
}
.review__quote {
  font-family: var(--font-mono);
  font-size: 14px;
  line-height: 20px;
  color: var(--text-soft);
  margin-bottom: 26px;
}
.review__person { margin-top: auto; display: flex; align-items: center; gap: 14px; }
.review__avatar {
  width: 46px; height: 46px; flex: 0 0 46px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: #12211A;
  border: 1px solid rgba(61, 187, 74, .35);
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 400;
  color: var(--accent);
  user-select: none;
}
.review__name { font-family: var(--font-display); font-size: 13px; color: var(--text); }
.review__role { color: var(--muted); font-size: 13px; }

/* ==========================================================================
   11. FAQ
   ========================================================================== */

.faq {
  max-width: 820px;
  margin: 46px auto 0;
  display: grid;
  gap: 12px;
}
.faq__item {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: border-color .2s ease;
}
.faq__item[open] { border-color: rgba(61, 187, 74, .45); }
.faq__item:hover { border-color: rgba(61, 187, 74, .3); }

.faq__q {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 20px 24px;
  cursor: pointer;
  list-style: none;
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 400;
  line-height: 1.35;
  color: var(--text);
}
.faq__q::-webkit-details-marker { display: none; }
.faq__q:hover { color: var(--accent); }

/* плюс превращается в минус */
.faq__q::after {
  content: '';
  flex: 0 0 14px;
  width: 14px; height: 14px;
  background:
    linear-gradient(var(--accent), var(--accent)) center/14px 2px no-repeat,
    linear-gradient(var(--accent), var(--accent)) center/2px 14px no-repeat;
  transition: transform .25s ease;
}
.faq__item[open] .faq__q::after { transform: rotate(135deg); }

.faq__item p { padding: 0 24px 22px; }

/* ==========================================================================
   12. О КОМПАНИИ
   ========================================================================== */

.about { display: grid; grid-template-columns: 401px 1fr; gap: 60px; align-items: start; }
.about__title { margin-bottom: 22px; }
.about__name { margin-bottom: 20px; }
.about__photo { aspect-ratio: 401 / 493; }
.about__list { display: grid; gap: 17px; }
.about__item { display: grid; grid-template-columns: 17px 1fr; gap: 14px; align-items: start; }
.about__bullet { width: 17px; height: 1px; background: var(--accent); margin-top: 17px; }

/* ==========================================================================
   10. ТЕХНОЛОГИИ
   ========================================================================== */

.stack { display: flex; justify-content: space-between; align-items: center; gap: 30px; flex-wrap: wrap; }
.stack__slot {
  height: 56px;
  display: grid;
  place-items: center;
  padding: 0 28px;
  border: 1px solid var(--line);
  color: rgba(214, 230, 218, .35);
  font-family: var(--font-display);
  font-size: 13px;
  letter-spacing: .5px;
  transition: color .2s ease, border-color .2s ease;
}
.stack__slot:hover { color: var(--text-soft); border-color: rgba(61, 187, 74, .4); }

/* ==========================================================================
   11. ПОЧЕМУ СЕЙЧАС
   ========================================================================== */

.now { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 22px; margin-top: 45px; }
.now__card {
  padding: 30px 26px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: border-color .2s ease, transform .2s ease;
}
.now__card:hover { border-color: rgba(61, 187, 74, .5); transform: translateY(-3px); }
.now__item { display: grid; grid-template-columns: 20px 1fr; gap: 14px; align-items: start; margin-top: 18px; }
.now__bullet { width: 20px; height: 1px; background: var(--accent); margin-top: 9px; }

/* ==========================================================================
   13. СТРАНИЦЫ УСЛУГ (/crm/, /erp/ и др.)
   ========================================================================== */

/* Хлебные крошки */
/* Отступ сверху учитывает высоту шапки (50px) — иначе крошки её перекрывают */
.crumbs { padding: 78px 0 0; font-family: var(--font-mono); font-size: 13px; color: var(--muted); }
.crumbs a { transition: color .2s ease; }
.crumbs a:hover { color: var(--accent); }
.crumbs span { margin: 0 8px; opacity: .5; }
.crumbs__current { color: var(--text-soft); }

/* Первый экран услуги — без тяжёлых обоев, страница грузится быстро */
.phero { position: relative; padding: 100px 0 70px; overflow: hidden; border-bottom: 1px solid var(--line); }
.phero::before {
  content: '';
  position: absolute;
  top: -180px; right: -120px;
  width: 620px; height: 620px;
  background: radial-gradient(circle, rgba(61, 187, 74, .16), transparent 62%);
  pointer-events: none;
}
.phero__inner { position: relative; z-index: 1; max-width: 760px; }
.phero__title { font-size: 46px; line-height: 1.08; margin-bottom: 22px; }
.phero__sub { font-family: var(--font-mono); font-size: 17px; line-height: 24px; color: var(--text-soft); max-width: 660px; }
.phero__meta { display: flex; flex-wrap: wrap; gap: 34px; margin: 34px 0 0; padding: 24px 0 0; border-top: 1px solid var(--line); }
.phero__meta div span { display: block; font-family: var(--font-mono); font-size: 12px; color: var(--muted); margin-bottom: 6px; }
.phero__meta div strong { font-family: var(--font-display); font-size: 18px; font-weight: 400; color: var(--text); }
.phero__actions { display: flex; gap: 14px; margin-top: 34px; flex-wrap: wrap; }
.phero__actions .btn { min-width: 220px; }

/* Сетка «задачи, которые решает» */
.tasks { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 50px; }
.task { padding: 26px 24px; border: 1px solid var(--line); border-radius: var(--radius); transition: border-color .2s ease, transform .2s ease; }
.task:hover { border-color: rgba(61, 187, 74, .45); transform: translateY(-3px); }
.task__num { font-family: var(--font-mono); font-size: 12px; color: var(--accent); margin-bottom: 16px; }
.task__title { font-family: var(--font-display); font-size: 17px; font-weight: 400; line-height: 1.35; color: var(--text); margin-bottom: 12px; }
.task__text { color: var(--muted); }

/* Модули системы */
.modules { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; margin-top: 44px; }
.module { display: grid; grid-template-columns: 34px 1fr; gap: 16px; align-items: start; padding: 18px 20px; border: 1px solid var(--line); border-radius: var(--radius); }
.module__mark { width: 34px; height: 34px; border: 1px solid var(--accent); display: grid; place-items: center; }
.module__mark svg { width: 16px; height: 16px; }
.module__t { font-family: var(--font-display); font-size: 15px; font-weight: 400; color: var(--text); margin-bottom: 5px; }
.module__d { color: var(--muted); }

/* Две колонки «входит / не входит» */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; margin-top: 44px; }
.split__col { padding: 28px 26px; border: 1px solid var(--line); border-radius: var(--radius); }
.split__col h3 { margin-bottom: 22px; }
.split__list { display: grid; gap: 12px; }
.split__list li { display: grid; grid-template-columns: 20px 1fr; gap: 14px; align-items: start; color: var(--text-soft); }
.split__list li::before {
  content: '';
  width: 14px; height: 14px;
  margin-top: 2px;
  background-repeat: no-repeat;
  background-position: center;
  background-size: 14px 14px;
}
.split__list--yes li::before { background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%233DBB4A' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 12.5l5 5L20 6.5'/%3E%3C/svg%3E"); }
.split__list--no li::before { background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%237E9C86' stroke-width='2.4' stroke-linecap='round'%3E%3Cpath d='M6 6l12 12M18 6L6 18'/%3E%3C/svg%3E"); }
.split__list--no li { color: var(--muted); }

/* Связанные услуги */
.related { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 44px; }
.related__item { display: block; padding: 24px 22px; border: 1px solid var(--line); border-radius: var(--radius); transition: border-color .2s ease, transform .2s ease, background-color .2s ease; }
.related__item:hover { border-color: rgba(61, 187, 74, .5); transform: translateY(-3px); background: rgba(61, 187, 74, .05); }
.related__t { font-family: var(--font-display); font-size: 16px; font-weight: 400; color: var(--text); margin-bottom: 8px; }
.related__d { color: var(--muted); font-size: 13px; }

/* ==========================================================================
   КЕЙСЫ. Широкие карточки проектов: превью слева, описание справа.
   Карточка — ссылка целиком, поэтому внутри только span.
   ========================================================================== */
/* Кейсы идут в одну колонку во всю ширину: в двух колонках текст описания
   и заголовки сжимаются слишком сильно для контейнера 1045px */
.cases { display: grid; gap: 20px; margin-top: 50px; }

.case {
  display: grid;
  grid-template-columns: .95fr 1.05fr;
  align-items: stretch;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(61, 187, 74, .03);
  overflow: hidden;
  transition: border-color .2s ease, transform .2s ease, background-color .2s ease;
}
.case:hover {
  border-color: rgba(61, 187, 74, .5);
  transform: translateY(-3px);
  background: rgba(61, 187, 74, .06);
}

/* Превью держит родные пропорции 800x600 и центрируется, поэтому
   иллюстрация не обрезается по краям на высоких карточках. */
.case__shot {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  border-right: 1px solid var(--line);
  background: var(--bg-deep);
}
.case__shot img { display: block; width: 100%; height: auto; border: 1px solid var(--line); }

.case__body { display: block; padding: 34px 34px 32px; }

.case__tag {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .06em;
  color: var(--accent);
  margin-bottom: 14px;
}

.case__title { font-family: var(--font-display); font-size: 28px; font-weight: 400; color: var(--text); margin-bottom: 14px; }
.case__desc { max-width: 46ch; }

.case__specs { margin: 26px 0 0; display: flex; flex-direction: column; gap: 12px; }
.case__spec { display: grid; grid-template-columns: 92px 1fr; gap: 16px; align-items: start; }
.case__spec dt { font-family: var(--font-mono); font-size: 12px; color: var(--muted); }
.case__spec dd { margin: 0; font-family: var(--font-mono); font-size: 13px; line-height: 17px; color: var(--text-soft); }

.case__link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 30px;
  font-family: var(--font-display);
  font-size: 15px;
  color: var(--accent);
}
.case:hover .case__link .arrow { transform: translateX(4px); }
.case__link .arrow { transition: transform .2s ease; }

/* Полоса-призыв */
.pcta {
  margin-top: 90px;
  padding: 52px 40px;
  border: 1px solid rgba(61, 187, 74, .35);
  border-radius: var(--radius);
  text-align: center;
  background: rgba(61, 187, 74, .05);
}
.pcta__t { font-family: var(--font-display); font-size: 28px; font-weight: 400; line-height: 1.25; color: var(--text); margin-bottom: 12px; }
.pcta__d { color: var(--muted); max-width: 520px; margin: 0 auto 26px; }
.pcta .btn { min-width: 260px; }

/* ==========================================================================
   14. ФИНАЛЬНЫЙ ПРИЗЫВ + ФОРМА
   ========================================================================== */

.cta { text-align: center; padding: 130px 0; position: relative; overflow: hidden; }
.cta__title { max-width: 596px; margin: 0 auto; }
.cta__sub { max-width: 628px; margin: 24px auto 0; }

.form { display: grid; gap: 14px; max-width: 460px; margin: 30px auto 0; text-align: left; }
.form__input {
  width: 100%;
  padding: 14px 16px;
  background: rgba(255, 255, 255, .03);
  border: 1px solid var(--line);
  color: var(--text);
  font-family: var(--font-mono);
  font-size: 14px;
  transition: border-color .2s ease;
}
.form__input::placeholder { color: rgba(126, 156, 134, .8); }
.form__input:focus { outline: none; border-color: var(--accent); }
textarea.form__input { min-height: 110px; resize: vertical; }
.form__note { font-size: 12px; color: var(--muted); }

/* Согласие с политикой под формой. Чекбокс обязательный: без него
   заявка не отправится — это требование 152-ФЗ, а не украшение.
   Ряд — <div>, а не <label>: внутри label живёт ссылка на политику,
   и клик по ней срабатывает ненадёжно. Переключает сам <label>. */
.form__consent {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  text-align: left;
}
.form__check { flex: 0 0 20px; margin-top: 1px; }
.form__consent-text { font-size: 12px; line-height: 1.6; color: var(--muted); }
.form__consent-text a {
  color: var(--accent);
  border-bottom: 1px solid rgba(61, 187, 74, .4);
  transition: border-color .2s ease;
}
.form__consent-text a:hover { border-bottom-color: var(--accent); }
.form__ok { color: var(--accent); font-family: var(--font-mono); font-size: 14px; display: none; }
.form.is-sent .form__ok { display: block; }

/* ==========================================================================
   ПОЯВЛЕНИЕ ПРИ ПРОКРУТКЕ
   ========================================================================== */

/* Появление блоков при прокрутке.
   Скрытое состояние включается только классом .js на <html> — если
   скрипты не загрузились, контент останется видимым, а не исчезнет. */
.js .reveal { opacity: 0; transform: translateY(24px); transition: opacity .6s ease, transform .6s ease; }
.js .reveal.is-visible { opacity: 1; transform: none; }

/* ==========================================================================
   15. ПОДВАЛ
   ========================================================================== */

.footer {
  padding: 70px 0 32px;
  border-top: 1px solid var(--line);
  background: var(--bg-deep);
}

.footer__cols {
  display: grid;
  grid-template-columns: 1fr 1fr 1.25fr;
  gap: 40px;
  padding-bottom: 46px;
}

.footer__col {
  display: grid;
  gap: 9px;
  align-content: start;
}
.footer__col p { margin: 0; }
.footer__col > p:first-child {
  color: var(--text-soft);
  font-family: var(--font-display);
  font-size: 14px;
}
.footer__col > a { transition: color .2s ease; }
.footer__col > a:hover { color: var(--accent); }

.footer__legal {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px 30px;
  padding-top: 26px;
  border-top: 1px solid var(--line);
}
.footer__legal p { margin: 0; }

/* Ссылки внутри подвала: почта, телефоны, соцсети */
.footer a { transition: color .2s ease; }
.footer a:hover { color: var(--accent); }
.footer__legal a { color: var(--text-soft); }
.footer__legal a:hover { color: var(--accent); }

/* Навигация по услугам в подвале */
.snav a { transition: color .2s ease; }
.snav a:hover, .snav a[aria-current="page"] { color: var(--accent); }
.snav a[aria-current="page"] { font-weight: 600; }

/* ==========================================================================
   16. ПРАВОВЫЕ ДОКУМЕНТЫ (privacy.html, cookies.html, согласия)
   ========================================================================== */

.mono { font-family: var(--font-mono); }

.legal { padding: 100px 0 90px; }

.doc__kicker {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-display);
  font-size: 13px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--accent);
}
.doc__kicker::before { content: ""; flex: 0 0 28px; height: 1px; background: var(--accent); }

.legal__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 280px;
  gap: 40px;
  align-items: start;
}
/* Статья и колонка не раздуваются под ширину таблиц — иначе на телефоне
   таблица растягивает всю сетку и появляется горизонтальный скролл. */
.legal__grid > * { min-width: 0; }

.legal__back {
  display: inline-block;
  margin-bottom: 26px;
  font-size: 13px;
  color: var(--muted);
  transition: color .2s ease;
}
.legal__back:hover { color: var(--accent); }

.doc__title {
  margin: 10px 0 0;
  font-family: var(--font-display);
  font-size: 34px;
  font-weight: 500;
  line-height: 1.15;
  letter-spacing: -0.01em;
  /* Длинные заголовки вроде «Согласие на получение рекламных и информационных
     материалов» не влезают в 254px — рвём по словам, а не по буквам. */
  overflow-wrap: break-word;
  hyphens: auto;
}

.doc__sub {
  max-width: 640px;
  margin-top: 14px;
  font-size: 15px;
  line-height: 1.55;
  color: var(--text-soft);
}

.doc__meta {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  margin: 30px 0 40px;
  background: var(--line);
  border: 1px solid var(--line);
}
.doc__meta > div { padding: 14px 16px; background: var(--bg-deep); }
.doc__meta dt {
  font-size: 11px;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--muted);
}
.doc__meta dd { margin: 6px 0 0; font-size: 14px; color: var(--text-soft); }

/* --- тело документа ---
   Длинные неразрывные куски (адреса вроде chrome://settings/content/cookies,
   прочерки «____» в формах согласия) рвутся по любому символу — иначе
   на телефоне они выталкивают страницу в горизонтальный скролл. */
.doc__body {
  overflow-wrap: anywhere;
  word-break: break-word;
}
.doc__body > * + * { margin-top: 18px; }

.doc__body h2 {
  margin-top: 46px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 500;
  line-height: 1.25;
  color: var(--text);
  scroll-margin-top: 80px;
}
.doc__body h3 {
  margin-top: 28px;
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 500;
  color: var(--accent);
  scroll-margin-top: 80px;
}
.doc__body p { font-size: 14px; line-height: 1.7; color: var(--text-soft); }
.doc__body p b { color: var(--text); font-weight: 600; }
.doc__body a { color: var(--accent); border-bottom: 1px solid rgba(61, 187, 74, .4); transition: border-color .2s ease; }
.doc__body a:hover { border-bottom-color: var(--accent); }

.doc__body ul,
.doc__body ol { display: grid; gap: 9px; padding-left: 22px; }
.doc__body ul li { list-style: none; position: relative; font-size: 14px; line-height: 1.7; color: var(--text-soft); }
.doc__body ul li::before {
  content: "";
  position: absolute;
  left: -22px; top: .68em;
  width: 10px; height: 1px;
  background: var(--accent);
}
.doc__body ol { list-style: decimal; }
.doc__body ol li { padding-left: 6px; font-size: 14px; line-height: 1.7; color: var(--text-soft); }
.doc__body ol li::marker { color: var(--accent); font-family: var(--font-mono); font-size: 13px; }

/* --- таблицы --- */
.doc__tablewrap {
  margin: 22px 0;
  overflow-x: auto;
  border: 1px solid var(--line);
}
.doc__tablewrap table {
  width: 100%;
  /* Узкие экраны: таблица не сжимается в кашу, а прокручивается внутри рамки */
  min-width: 520px;
  border-collapse: collapse;
  font-size: 13px;
  line-height: 1.55;
}
.doc__tablewrap th,
.doc__tablewrap td {
  padding: 13px 16px;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid var(--line);
  border-right: 1px solid var(--line);
  color: var(--text-soft);
}
.doc__tablewrap th:last-child,
.doc__tablewrap td:last-child { border-right: 0; }
.doc__tablewrap tbody tr:last-child td { border-bottom: 0; }
.doc__tablewrap thead th {
  background: var(--bg-deep);
  font-size: 11px;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 400;
  white-space: nowrap;
}

/* --- поля «заполняется от руки» --- */
.doc__fields { display: grid; gap: 1px; margin: 22px 0; background: var(--line); border: 1px solid var(--line); }
.doc__field {
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr);
  gap: 16px;
  padding: 12px 16px;
  background: var(--bg-deep);
}
.doc__field dt { font-size: 13px; color: var(--muted); }
.doc__field dd { margin: 0; font-size: 13px; color: var(--text-soft); }

/* --- врезки --- */
.doc__note {
  margin: 30px 0;
  padding: 18px 20px;
  border: 1px solid var(--line);
  border-left: 2px solid var(--accent);
  background: rgba(61, 187, 74, .05);
  font-size: 13px;
  line-height: 1.65;
  color: var(--text-soft);
}
.doc__note b { color: var(--accent); }

.doc__sign {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 26px 40px;
  margin: 32px 0;
  font-size: 12px;
  color: var(--muted);
}
.doc__sign i { display: block; margin-top: 20px; border-bottom: 1px solid var(--line); font-style: normal; }

/* --- смотрите также --- */
.doc__related { margin-top: 52px; padding-top: 30px; border-top: 1px solid var(--line); }
.doc__related .legal__box-title { margin-bottom: 14px; }
.doc__related-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.doc__related-grid a {
  padding: 14px 16px;
  background: var(--bg-deep);
  font-size: 13px;
  color: var(--text-soft);
  transition: color .2s ease, background .2s ease;
}
.doc__related-grid a:hover { color: var(--accent); background: rgba(61, 187, 74, .06); }

/* --- боковая колонка --- */
.legal__aside { position: sticky; top: 80px; display: grid; gap: 20px; }
.legal__box { border: 1px solid var(--line); background: var(--bg-deep); }
.legal__box-title {
  padding: 13px 16px;
  border-bottom: 1px solid var(--line);
  font-family: var(--font-display);
  font-size: 12px;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--muted);
}
.legal__docs { padding: 8px 0; }
.legal__docs li { border-bottom: 1px solid rgba(214, 230, 218, .07); }
.legal__docs li:last-child { border-bottom: 0; }
.legal__docs a {
  display: block;
  padding: 10px 16px;
  font-size: 13px;
  line-height: 1.45;
  color: var(--text-soft);
  transition: color .2s ease, background .2s ease;
}
.legal__docs a:hover { color: var(--accent); background: rgba(61, 187, 74, .06); }
.legal__docs a.is-current { color: var(--accent); box-shadow: inset 2px 0 0 var(--accent); }

.legal__toc { padding: 12px 0; max-height: 62vh; overflow-y: auto; }
.legal__toc a {
  display: block;
  padding: 6px 16px;
  font-size: 12px;
  line-height: 1.45;
  color: var(--muted);
  transition: color .2s ease;
}
.legal__toc a:hover { color: var(--accent); }
.legal__toc a.is-active { color: var(--text); }
.legal__toc a.is-active::before { content: "▸ "; color: var(--accent); }

/* ==========================================================================
   17. БАННЕР СОГЛАСИЯ НА COOKIE
   Показывается, пока посетитель не выбрал категории. Выбор хранится
   6 месяцев в localStorage. Всё, кроме необходимых, по умолчанию выключено.
   ========================================================================== */

.cbar {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 60;
  background: var(--bg-deep);
  border-top: 1px solid var(--accent);
  padding: 20px 0 22px;
  transform: translateY(110%);
  transition: transform .35s ease;
}
.cbar[hidden] { display: none; }
.cbar.is-open { transform: none; }

/* Пока баннер не выбран, страница не должна прокручиваться под ним
   настолько, чтобы человек не заметил согласие. */
html.has-cbar,
html.has-cbar body { overflow: hidden; }
html.has-cbar .cbar { transform: none; }

.cbar__inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 14px 34px;
  align-items: center;
}

.cbar__title {
  font-family: var(--font-display);
  font-size: 17px;
  line-height: 1.25;
  color: var(--text);
  margin-bottom: 7px;
}
.cbar__text {
  font-size: 13px;
  line-height: 1.6;
  color: var(--muted);
  max-width: 640px;
}
.cbar__text a { color: var(--accent); border-bottom: 1px solid rgba(61, 187, 74, .4); }
.cbar__text a:hover { border-bottom-color: var(--accent); }

.cbar__actions { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }

/* В баннере кнопки ниже основных: три штуки в ряд не должны занимать
   полэкрана. */
.cbar__actions .btn {
  min-height: 46px;
  padding: 0 18px;
  font-size: 14px;
}
.cbar__actions .btn:hover { transform: none; }

/* --- панель настроек категорий --- */
.cbar__panel { display: none; grid-column: 1 / -1; }
.cbar.is-settings .cbar__panel { display: block; }
.cbar.is-settings .cbar__simple { display: none; }
/* В режиме настроек три коротких кнопки лишние — остаются «Сохранить» и «Отмена» */
.cbar.is-settings .cbar__actions { display: none; }

.cbar__panel-actions { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-top: 12px; }
.cbar__panel-actions .btn { min-height: 44px; padding: 0 18px; font-size: 14px; }
.cbar__panel-actions .btn:hover { transform: none; }

.cbar__cats { display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line); }
.cbar__cat {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 4px 14px;
  align-items: center;
  padding: 13px 16px;
  background: var(--bg);
}
.cbar__cat-name { font-size: 14px; color: var(--text-soft); }
.cbar__cat-desc { grid-column: 2 / 3; font-size: 12px; line-height: 1.5; color: var(--muted); }
.cbar__cat-check { grid-row: 1; grid-column: 3; }

/* Чекбокс квадратный, без скруглений, зелёная обводка.
   Один и тот же вид нужен в баннере cookie и в форме заявки,
   поэтому селекторы идут списком. */
.cbar__check,
.form__check { position: relative; display: block; width: 20px; height: 20px; }
.cbar__check input,
.form__check input {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  margin: 0;
  opacity: 0;
  cursor: pointer;
  z-index: 1;
}
/* Видимую рамку рисует сам внутренний span. Состояние input берётся
   соседним селектором «+» на элемент: он работает стабильнее, чем
   «~» на псевдоэлемент, и его результат проверяется обычным
   getComputedStyle. */
.cbar__check span,
.form__check span {
  position: absolute;
  inset: 0;
  pointer-events: none;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, .02);
  transition: border-color .2s ease, background .2s ease;
}
.cbar__check input:checked + span,
.form__check input:checked + span { border-color: var(--accent); background: rgba(61, 187, 74, .1); }
.cbar__check input:checked + span::after,
.form__check input:checked + span::after {
  content: "";
  position: absolute;
  left: 6px; top: 2px;
  width: 6px; height: 11px;
  border: solid var(--accent);
  border-width: 0 2px 2px 0;
  transform: rotate(43deg);
}
.cbar__check input:focus-visible ~ span,
.form__check input:focus-visible ~ span { outline: 2px solid var(--accent); outline-offset: 2px; }
/* Необходимые файлы нельзя выключить */
.cbar__check input:disabled { cursor: not-allowed; z-index: 0; }
.cbar__check input:disabled ~ span { opacity: .5; }

.cbar__status {
  grid-column: 1 / -1;
  margin: 0;
  font-size: 12px;
  color: var(--accent);
  display: none;
}
.cbar.is-saved .cbar__status { display: block; }

/* Кнопка «Настройки cookie» в подвале */
.cbar-settings {
  min-height: 44px;
  font-size: 13px;
  color: var(--muted);
  border-bottom: 1px solid var(--line);
  padding-bottom: 1px;
  transition: color .2s ease, border-color .2s ease;
}
.cbar-settings:hover { color: var(--accent); border-bottom-color: var(--accent); }

/* ==========================================================================
   АДАПТИВ
   ========================================================================== */

@media (max-width: 1100px) {
  .features { grid-template-columns: repeat(2, 1fr); }
  .cards { grid-template-columns: repeat(2, 1fr); }
  .compare { grid-template-columns: 1fr; }
  .compare__ask { border-left: 0; border-top: 1px solid var(--line); padding-left: 0; padding-top: 34px; }
  .compare__ask-title { margin-bottom: 30px; }
  .about { grid-template-columns: 1fr; }
}

@media (max-width: 900px) {
  .header__nav {
    position: fixed;
    inset: 50px 0 auto 0;
    flex-direction: column;
    gap: 0;
    background: var(--bg);
    border-bottom: 1px solid var(--line);
    max-height: 0;
    overflow: hidden;
    transition: max-height .3s ease;
  }
  .header__nav.is-open { max-height: 320px; }
  .header__link { display: block; padding: 16px var(--gutter); border-top: 1px solid var(--line); }
  .burger { display: block; }

  .hero { min-height: 0; padding: 110px 0 70px; }
  .h1 { font-size: 34px; line-height: 1.15; }
  .h2 { font-size: 28px; }
  .hero__welcome { grid-template-columns: 1fr; margin-top: 60px; }
  .hero__welcome-title { font-size: 28px; }
  .hero__welcome-title span { font-size: 22px; }
  .hero__lead { margin-top: 24px; }

  .features, .cards, .fit-grid, .service-grid, .how, .now { grid-template-columns: 1fr; }
  .tasks, .modules, .split, .related { grid-template-columns: 1fr; }

  .case { grid-template-columns: 1fr; }
  .case__shot { border-right: 0; border-bottom: 1px solid var(--line); padding: 18px; }
  .case__body { padding: 26px 24px 24px; }
  .case__title { font-size: 23px; }
  .case__spec { grid-template-columns: 1fr; gap: 3px; }
  .phero { padding: 70px 0 50px; }
  .phero__title { font-size: 30px; line-height: 1.15; }
  .phero__meta { gap: 22px; }
  .phero__actions .btn { width: 100%; }
  .pcta { padding: 34px 20px; margin-top: 60px; }
  .pcta__t { font-size: 21px; }
  .compare__list { grid-template-columns: repeat(2, 1fr); }
  .section { padding: 70px 0; }
  .fit { min-height: 0; }
  .footer__cols { grid-template-columns: 1fr; }
  .service { padding: 24px 22px 28px; }
  .service__spec { grid-template-columns: 100px 1fr; }
  .cta { padding: 80px 0; }
  /* правовые документы */
  .legal { padding: 80px 0 70px; }
  .legal__grid { grid-template-columns: 1fr; }
  .legal__aside { position: static; order: -1; }
  .legal__toc { max-height: 260px; }
  .doc__title { font-size: 27px; }
  .doc__meta { grid-template-columns: 1fr; }
  .doc__related-grid { grid-template-columns: 1fr; }
  .doc__field { grid-template-columns: 1fr; gap: 4px; }
  .doc__sign { grid-template-columns: 1fr; gap: 20px; }
  /* баннер согласия */
  .cbar { padding: 18px 0 20px; }
  .cbar__inner { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  .cbar__actions { flex-direction: column; align-items: stretch; }
  .cbar__actions .btn { width: 100%; justify-content: center; }
  .cbar__panel-actions { flex-direction: column; align-items: stretch; }
  .cbar__panel-actions .btn { width: 100%; justify-content: center; }
  .cbar__cat { grid-template-columns: auto minmax(0, 1fr); }
  .cbar__cat-check { grid-row: 1; grid-column: 2; justify-self: end; }
  .cbar__cat-desc { grid-column: 1 / -1; }
}

@media (max-width: 560px) {
  .h1, .h2, .h3, .case__title { overflow-wrap: anywhere; }
  .fit { min-width: 0; overflow-wrap: anywhere; }
  .section .btn { white-space: normal; overflow-wrap: anywhere; max-width: 100%; padding-top: 10px; padding-bottom: 10px; }
  .reviews__heading { flex-wrap: wrap; }
  .reviews__heading > h2 { min-width: 0; }
  .reviews__controls { flex-shrink: 0; }
  .hero__actions { flex-direction: column; align-items: stretch; }
  .hero__actions .btn { width: 100%; }
  .compare__list { grid-template-columns: 1fr; }
  .tabs { flex-direction: column; }
  .tab { padding: 12px 0; }
  .h1 { font-size: 27px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
  * { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
.form__status { color: #ffb6b6; font-size: 14px; }
.form__status:empty { display: none; }
.lead-success {
  box-sizing: border-box;
  width: min(440px, calc(100% - 32px));
  max-height: calc(100dvh - 32px);
  overflow: auto;
  padding: 32px;
  border: 1px solid #4ecb5c;
  border-radius: 20px;
  background: #101b13;
  color: #fff;
  text-align: center;
  box-shadow: 0 24px 80px rgba(0, 0, 0, .5);
}
.lead-success::backdrop { background: rgba(0, 0, 0, .75); }
.lead-success__icon { color: #4ecb5c; font-size: 48px; line-height: 1; margin-bottom: 20px; }
.lead-success h2 { margin: 0 0 16px; font-size: 28px; }
.lead-success p { margin: 0 0 24px; line-height: 1.6; }
.lead-success button { margin: 0 auto; }
.lead-success button:focus-visible { outline: 2px solid #fff; outline-offset: 4px; }
