/* =========================================================================
   Лендинг сервиса «1С:Кабинет сотрудника» (КЭДО) — КСА
   Стиль: чистый лендинг на бренде КСА (белый фон, #171717, акцент #FF7245,
   вспомогательный #45D2FF). Мягкие тени, акцентные фоновые пятна, живой hero.
   Без фреймворков, mobile-first.
   ========================================================================= */

/* ---------- Токены ---------- */
:root {
  /* Цвета бренда */
  --bg:           #ffffff;
  --bg-alt:       #f6f7f9;      /* фон чередующихся секций */
  --bg-tint:      #fff4ef;      /* тёплый акцентный фон (форма) */
  --text:         #171717;
  --text-muted:   #5b5f66;
  --accent:       #FF7245;      /* главный акцент / CTA */
  --accent-deep:  #f15a28;      /* акцент при наведении */
  --accent-2:     #45D2FF;      /* вспомогательный */
  --border:       #e7e8ec;
  --card:         #ffffff;
  --footer-bg:    #171717;

  /* Тени (мягкие, лендинговые) */
  --shadow-sm: 0 1px 2px rgba(23,23,23,.04), 0 2px 8px rgba(23,23,23,.04);
  --shadow-md: 0 6px 24px rgba(23,23,23,.08);
  --shadow-lg: 0 18px 50px rgba(23,23,23,.12);
  --shadow-accent: 0 10px 30px rgba(255,114,69,.32);

  /* Геометрия */
  --radius-sm: 10px;
  --radius:    16px;
  --radius-lg: 24px;
  --container: 1140px;
  --gutter:    clamp(16px, 4vw, 32px);

  /* Типографика */
  --font: 'Segoe UI', system-ui, -apple-system, 'Helvetica Neue', Arial, sans-serif;

  /* Вертикальный ритм секций */
  --section-y: clamp(56px, 9vw, 112px);
}

/* ---------- Сброс / база ---------- */
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  font-family: var(--font);
  font-size: clamp(16px, 1.1vw, 17px);
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

a { color: inherit; text-decoration: none; }
.review__quote a,
.check__text a,
.site-footer a {
  color: var(--accent-deep);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.site-footer a { color: #fff; text-decoration-color: rgba(255,255,255,.4); }

h1, h2, h3 { margin: 0; line-height: 1.12; letter-spacing: -.02em; font-weight: 700; }
p { margin: 0; }

:focus-visible {
  outline: 3px solid var(--accent-2);
  outline-offset: 2px;
  border-radius: 4px;
}

/* ---------- Утилиты ---------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.skip-link {
  position: absolute;
  left: 12px; top: -60px;
  z-index: 100;
  background: var(--text);
  color: #fff;
  padding: 10px 16px;
  border-radius: var(--radius-sm);
  transition: top .2s;
}
.skip-link:focus { top: 12px; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: .82rem;
  font-weight: 600;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--accent-deep);
  background: var(--bg-tint);
  border: 1px solid #ffd9c9;
  padding: 7px 14px;
  border-radius: 999px;
}

/* ---------- Кнопки ---------- */
.btn {
  --btn-bg: var(--text);
  --btn-fg: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font: inherit;
  font-weight: 600;
  line-height: 1;
  padding: 13px 22px;
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  background: var(--btn-bg);
  color: var(--btn-fg);
  cursor: pointer;
  transition: transform .15s ease, box-shadow .2s ease, background-color .2s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0) scale(.99); }

.btn--lg { padding: 16px 28px; font-size: 1.05rem; }

/* Главный CTA — акцентный оранжевый, тёмный текст (контраст AA) */
.btn--primary {
  --btn-bg: var(--accent);
  --btn-fg: #2a1206;
  box-shadow: var(--shadow-accent);
}
.btn--primary:hover { --btn-bg: var(--accent-deep); }

.btn--ghost {
  --btn-bg: transparent;
  --btn-fg: var(--text);
  border-color: var(--border);
  box-shadow: none;
}
.btn--ghost:hover { --btn-bg: var(--bg-alt); border-color: #d7d9df; }

/* ---------- Шапка ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255,255,255,.82);
  backdrop-filter: saturate(160%) blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s, box-shadow .2s;
}
.site-header.is-scrolled {
  border-bottom-color: var(--border);
  box-shadow: var(--shadow-sm);
}
.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 64px;
}
.site-header__brand { display: flex; align-items: center; gap: 14px; }
.site-header__logo img { height: 40px; width: auto; }
.site-header__franch {
  height: 46px;
  width: auto;
  padding-left: 14px;
  margin-left: 2px;
  border-left: 1px solid var(--border);
}
.site-header__actions { display: flex; align-items: center; gap: 18px; }
.site-header__phone {
  font-weight: 600;
  font-size: .98rem;
  white-space: nowrap;
}
.site-header__phone:hover { color: var(--accent-deep); }
.site-header__cta { padding: 10px 18px; }
@media (max-width: 700px) {
  .site-header__phone { font-size: .92rem; }
}
@media (max-width: 480px) {
  .site-header__logo img { height: 34px; }
  .site-header__franch { height: 38px; padding-left: 10px; }
  /* На узких экранах телефон — основное действие, CTA остаётся в hero */
  .site-header__cta { display: none; }
}

/* ---------- Секции ---------- */
.section { padding-block: var(--section-y); }
.section--alt { background: var(--bg-alt); }
/* hero и первая секция — на одном светлом фоне; убираем двойной отступ-«провал» */
.hero + .section { padding-top: clamp(32px, 5vw, 52px); }
.section__narrow { max-width: 760px; }
.section__title {
  font-size: clamp(1.7rem, 3.6vw, 2.6rem);
  margin-bottom: 14px;
}
.section__intro {
  color: var(--text-muted);
  font-size: clamp(1.02rem, 1.6vw, 1.18rem);
  max-width: 60ch;
  margin-bottom: clamp(28px, 4vw, 48px);
}

/* ---------- HERO ---------- */
.hero {
  position: relative;
  overflow: hidden;
  padding-block: clamp(48px, 8vw, 96px) clamp(32px, 5vw, 52px); /* верх / низ: низ меньше */
  background:
    radial-gradient(60% 60% at 85% 0%, rgba(69,210,255,.16), transparent 60%),
    radial-gradient(55% 55% at 0% 30%, rgba(255,114,69,.18), transparent 60%),
    var(--bg);
}
.hero__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(28px, 5vw, 56px);
  align-items: center;
}
@media (min-width: 920px) {
  .hero__grid { grid-template-columns: 1.02fr .98fr; }
}
.hero__content { max-width: 620px; }
.hero__title {
  font-size: clamp(2.1rem, 5vw, 3.4rem);
  margin: 22px 0 18px;
}
.hero__lead {
  font-size: clamp(1.1rem, 2.1vw, 1.35rem);
  color: var(--text-muted);
  max-width: 54ch;
}
.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 30px;
}

/* Скриншот сервиса в hero */
.hero__media { position: relative; }
.hero__media::before {
  content: "";
  position: absolute;
  inset: auto -18px -18px auto;
  width: 160px; height: 160px;
  background: radial-gradient(circle, rgba(255,114,69,.45), transparent 70%);
  filter: blur(8px);
  z-index: -1;
}
.hero__media img {
  width: 100%;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-lg);
}
.hero__facts {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
  margin: clamp(36px, 5vw, 56px) 0 0;
}
.hero__fact {
  background: rgba(255,255,255,.7);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px 18px;
  backdrop-filter: blur(4px);
}
.hero__fact dt {
  font-size: .78rem;
  text-transform: uppercase;
  letter-spacing: .05em;
  color: var(--accent-deep);
  font-weight: 700;
  margin-bottom: 4px;
}
.hero__fact dd { margin: 0; font-weight: 600; }
@media (min-width: 720px) {
  .hero__facts { grid-template-columns: repeat(3, 1fr); }
}

/* ---------- Карточки (общая сетка) ---------- */
.cards { list-style: none; margin: 0; padding: 0; display: grid; gap: 18px; }

.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow-sm);
  transition: transform .2s ease, box-shadow .2s ease;
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.card__title { font-size: 1.12rem; margin-bottom: 8px; }
.card__title::before {
  content: "";
  display: block;
  width: 34px; height: 3px;
  margin-bottom: 14px;
  border-radius: 3px;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
}
.card__text { color: var(--text-muted); font-size: .98rem; }

/* ---------- Отзывы ---------- */
/* Колоночная (masonry) раскладка — карточки разной высоты ложатся плотно */
.cards--reviews {
  display: block;
  columns: 1;
  column-gap: 18px;
}
@media (min-width: 680px) { .cards--reviews { columns: 2; } }
@media (min-width: 1040px) { .cards--reviews { columns: 3; } }

.review {
  break-inside: avoid;
  margin-bottom: 18px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow-sm);
}
.review__quote {
  position: relative;
  margin: 0 0 16px;
  padding-top: 14px;
  font-size: .98rem;
  color: #2c2f35;
}
.review__quote::before {
  content: "“";
  position: absolute;
  top: -10px; left: -4px;
  font-size: 3rem;
  line-height: 1;
  color: var(--accent);
  opacity: .5;
  font-family: Georgia, 'Times New Roman', serif;
}
.review__person {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
}
.review__avatar {
  flex: none;
  width: 56px; height: 56px;
  border-radius: 50%;
  object-fit: cover;
  background: var(--bg-alt);
}
.review__avatar--mono {
  display: grid;
  place-content: center;
  font-weight: 700;
  font-size: 1.2rem;
  letter-spacing: .02em;
  color: #fff;
  background: linear-gradient(135deg, var(--accent), var(--accent-deep));
}
.review__hl {
  background: linear-gradient(transparent 58%, rgba(255,114,69,.28) 0);
  color: inherit;
  font-weight: 600;
  padding: 0 1px;
}
.review__meta { display: grid; gap: 2px; }
.review__author { font-weight: 700; }
.review__company { color: var(--text-muted); font-size: .9rem; }

/* ---------- Статистика (о компании) ---------- */
.stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin: 0;
}
@media (min-width: 760px) { .stats { grid-template-columns: repeat(4, 1fr); } }
.stat {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px 20px;
  text-align: center;
  box-shadow: var(--shadow-sm);
}
.stat__num {
  font-size: clamp(2rem, 4.5vw, 2.8rem);
  font-weight: 800;
  letter-spacing: -.03em;
  background: linear-gradient(120deg, var(--accent-deep), var(--accent));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.stat__label { color: var(--text-muted); font-size: .92rem; margin: 6px 0 0; }

/* Верхний блок «О компании»: текст + фото команды */
.company__top {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(24px, 4vw, 44px);
  align-items: center;
  margin-bottom: clamp(28px, 4vw, 44px);
}
@media (min-width: 820px) {
  .company__top { grid-template-columns: 1fr 1fr; }
}
.company__top .section__intro { margin-bottom: 0; }
.company__photo { margin: 0; }
.company__photo img {
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-md);
}

/* Статусы и сертификаты (ряд миниатюр, клик открывает полный размер) */
.certs {
  list-style: none;
  margin: clamp(28px, 4vw, 44px) 0 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 16px;
}
.cert {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  padding: 14px 18px;
  display: grid;
  place-content: center;
}
.cert img { height: 56px; width: auto; }
.cert--doc { padding: 0; overflow: hidden; }
.cert--doc a { display: block; transition: transform .2s ease, box-shadow .2s ease; }
.cert--doc a:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.cert--doc img { height: 150px; border-radius: var(--radius); }

/* ---------- Форма ---------- */
.section--register {
  background:
    radial-gradient(50% 80% at 100% 0%, rgba(69,210,255,.12), transparent 60%),
    var(--bg-tint);
}
.form {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: clamp(22px, 4vw, 40px);
  box-shadow: var(--shadow-lg);
  display: grid;
  gap: 18px;
}
.form__row { display: grid; gap: 7px; }
.form__label { font-weight: 600; font-size: .95rem; }
.req { color: var(--accent-deep); }

.form__input {
  font: inherit;
  width: 100%;
  padding: 13px 15px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  background: #fff;
  color: var(--text);
  transition: border-color .15s, box-shadow .15s;
}
.form__input::placeholder { color: #9aa0a8; }
.form__input:hover { border-color: #d2d5dc; }
.form__input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(255,114,69,.18);
}
.form__input[aria-invalid="true"] {
  border-color: #e04343;
  box-shadow: 0 0 0 3px rgba(224,67,67,.15);
}
.form__error { color: #c62f2f; font-size: .86rem; font-weight: 500; }

/* Чекбоксы — кастомные, доступные */
.form__row--check { gap: 4px; }
.check {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 12px;
  align-items: start;
  cursor: pointer;
  font-size: .94rem;
  color: #2c2f35;
}
.check__input {
  position: absolute;
  opacity: 0;
  width: 1px; height: 1px;
}
.check__box {
  margin-top: 1px;
  width: 22px; height: 22px;
  border: 1.5px solid #c7cad1;
  border-radius: 6px;
  background: #fff;
  display: grid;
  place-content: center;
  transition: background-color .15s, border-color .15s;
  flex: none;
}
.check__box::after {
  content: "";
  width: 11px; height: 6px;
  border-left: 2.5px solid #fff;
  border-bottom: 2.5px solid #fff;
  transform: rotate(-45deg) scale(0);
  transition: transform .15s ease;
}
.check__input:checked + .check__box {
  background: var(--accent);
  border-color: var(--accent);
}
.check__input:checked + .check__box::after { transform: rotate(-45deg) scale(1); }
.check__input:focus-visible + .check__box {
  outline: 3px solid var(--accent-2);
  outline-offset: 2px;
}

.form__submit {
  width: 100%;
  margin-top: 4px;
  transition: transform .15s ease, box-shadow .2s ease, background-color .2s ease, opacity .2s;
}
.form__submit:disabled {
  cursor: not-allowed;
  opacity: .55;
  box-shadow: none;
  transform: none;
}
.form__submit.is-loading { pointer-events: none; }

/* Honeypot — полностью скрыт от людей, доступен ботам */
.hp-field {
  position: absolute !important;
  left: -9999px;
  width: 1px; height: 1px;
  overflow: hidden;
}

/* Статус отправки */
.form__status {
  margin-top: 2px;
  padding: 14px 16px;
  border-radius: var(--radius-sm);
  font-weight: 500;
}
.form__status--ok { background: #eaf7ee; color: #1f7a3d; border: 1px solid #bfe6cb; }
.form__status--err { background: #fdecec; color: #c62f2f; border: 1px solid #f3c7c7; }

/* Спиннер */
.spinner {
  width: 18px; height: 18px;
  border: 2px solid rgba(42,18,6,.3);
  border-top-color: #2a1206;
  border-radius: 50%;
  animation: spin .7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- Юридическая страница (политика) ---------- */
.legal { max-width: 820px; }
.legal h1 { font-size: clamp(1.8rem, 4vw, 2.6rem); margin-bottom: 6px; }
.legal__meta { color: var(--text-muted); font-size: .92rem; margin-bottom: 30px; }
.legal h2 { font-size: clamp(1.2rem, 2.4vw, 1.55rem); margin: 38px 0 12px; }
.legal h3 { font-size: 1.08rem; margin: 22px 0 8px; }
.legal p { margin-bottom: 14px; color: #2c2f35; }
.legal ul, .legal ol { margin: 0 0 16px; padding-left: 22px; color: #2c2f35; }
.legal li { margin-bottom: 8px; }
.legal a { color: var(--accent-deep); text-decoration: underline; text-underline-offset: 2px; }

/* ---------- Футер ---------- */
.site-footer {
  background: var(--footer-bg);
  color: #d8d9dd;
  padding-block: clamp(40px, 6vw, 64px) 24px;
}
.site-footer__inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px;
}
@media (min-width: 760px) {
  .site-footer__inner { grid-template-columns: 1.3fr 1fr 1fr; gap: 40px; }
}
.site-footer__brand img { height: 30px; width: auto; margin-bottom: 14px; }
.site-footer__legal { font-size: .92rem; color: #aeb0b6; max-width: 34ch; }
.site-footer__contacts { font-style: normal; display: grid; gap: 8px; font-size: .95rem; }
.site-footer__nav { display: grid; gap: 8px; align-content: start; font-size: .95rem; }
.site-footer__bottom {
  margin-top: 32px;
  padding-top: 18px;
  border-top: 1px solid rgba(255,255,255,.12);
  font-size: .85rem;
  color: #8b8d93;
}

/* ---------- Cookie / Яндекс.Метрика ---------- */
.cookie {
  position: fixed;
  left: 16px; right: 16px; bottom: 16px;
  z-index: 80;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px 20px;
  max-width: 720px;
  margin-inline: auto;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  padding: 16px 18px;
}
.cookie__text { font-size: .9rem; color: var(--text-muted); flex: 1 1 280px; }
.cookie__accept { flex: none; }

/* ---------- Рамки устройств (скрины сервиса) ---------- */
.device { position: relative; background: #fff; }
.device--desktop {
  border: 1px solid var(--border);
  border-radius: 14px;
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}
.device--desktop .device__bar {
  display: flex;
  align-items: center;
  gap: 7px;
  height: 34px;
  padding: 0 14px;
  background: var(--bg-alt);
  border-bottom: 1px solid var(--border);
}
.device--desktop .device__bar i {
  width: 10px; height: 10px;
  border-radius: 50%;
  background: #d4d7dd;
}
.device--desktop img { width: 100%; display: block; }

.device--phone {
  width: 250px;
  max-width: 74vw;
  padding: 10px;
  border: 1px solid var(--border);
  border-radius: 30px;
  box-shadow: var(--shadow-lg);
}
.device--phone::before {
  content: "";
  position: absolute;
  top: 15px; left: 50%;
  transform: translateX(-50%);
  width: 46px; height: 5px;
  border-radius: 3px;
  background: #e2e4e9;
  z-index: 2;
}
.device--phone img {
  width: 100%;
  display: block;
  border-radius: 22px;
  border: 1px solid var(--border);
}

/* ---------- Выгоды ---------- */
.benefits { grid-template-columns: 1fr; }
@media (min-width: 600px) { .benefits { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 940px) { .benefits { grid-template-columns: repeat(3, 1fr); } }
.benefit__icon {
  display: inline-flex;
  width: 46px; height: 46px;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
  color: var(--accent-deep);
  background: var(--bg-tint);
  border: 1px solid #ffd9c9;
  border-radius: 12px;
}
.benefit__icon svg { width: 24px; height: 24px; }
/* у плиток выгод роль акцента играет иконка — убираем верхнюю черту заголовка */
.benefit .card__title::before { display: none; }
.benefit .card__title { font-size: 1.18rem; }

/* ---------- Видео ---------- */
.video-block { margin: 0; }
.video-block video {
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #0e0f11;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-lg);
  display: block;
}

/* ---------- Hero: десктоп-скрин + телефон поверх ---------- */
.hero__desktop { width: 100%; }
.hero__media .device { box-shadow: var(--shadow-lg); }
.hero__media .device img { box-shadow: none; }
.hero__phone {
  position: absolute;
  right: -6px; bottom: -30px;
  width: 168px;
  z-index: 3;
}
@media (max-width: 560px) {
  .hero__phone { width: 128px; right: 0; bottom: -16px; }
}

/* ---------- Возможности сервиса (чередующиеся строки) ---------- */
.feature-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(22px, 4vw, 48px);
  align-items: center;
  padding-block: clamp(28px, 4vw, 48px);
  border-top: 1px solid var(--border);
}
.feature-row:first-of-type { border-top: 0; padding-top: 0; }
@media (min-width: 820px) {
  .feature-row { grid-template-columns: 1fr 1fr; }
  .feature-row:nth-of-type(even) .feature-row__media { order: 2; }
}
.feature-row__media { margin: 0; display: flex; justify-content: center; }
.feature-row .device--desktop { width: 100%; }
.feature-row__title { font-size: clamp(1.25rem, 2.4vw, 1.6rem); margin-bottom: 10px; }
.feature-row__text p { color: var(--text-muted); font-size: clamp(1rem, 1.5vw, 1.1rem); }
.features__cta { margin-top: clamp(28px, 4vw, 44px); text-align: center; }
/* чуть больше воздуха между заголовком секции и первой строкой */
#features-title { margin-bottom: clamp(26px, 3.5vw, 40px); }

/* Композиция «десктоп-база + второй экран внахлёст» */
.compo { position: relative; width: 100%; max-width: 520px; }
.compo .device--desktop { width: 100%; }
.compo__float {
  position: absolute;
  right: -14px;
  bottom: -22px;
  z-index: 3;
}
/* телефон-портрет внахлёст: переопределяем фикс-ширину .device--phone */
.compo .compo__float.device--phone { width: clamp(118px, 32%, 168px); max-width: none; }
/* квадратный мобильный экран — карточная рамка без «чёлки» */
.compo .compo__float--card { width: clamp(150px, 42%, 200px); }
.device--card {
  padding: 0;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 16px;
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}
.device--card img { width: 100%; display: block; border-radius: 16px; }
@media (max-width: 560px) {
  .compo__float { right: -6px; bottom: -14px; }
}

/* ---------- Как начать ---------- */
.start__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(28px, 4vw, 48px);
  align-items: center;
}
@media (min-width: 820px) { .start__grid { grid-template-columns: 1.1fr .9fr; } }
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.step {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 18px;
  align-items: start;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px 22px;
  box-shadow: var(--shadow-sm);
}
.step__num {
  font-weight: 800;
  font-size: 1.1rem;
  line-height: 1;
  color: var(--accent-deep);
  background: var(--bg-tint);
  border-radius: 10px;
  padding: 11px 12px;
}
.step__text { align-self: center; font-weight: 500; }
.start__photos { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.start__photo { margin: 0; }
.start__photo img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-md);
}

/* ---------- Преимущества КСА (тезисы) ---------- */
.cards--advantages { grid-template-columns: 1fr; }
@media (min-width: 600px) { .cards--advantages { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 980px) { .cards--advantages { grid-template-columns: repeat(3, 1fr); } }

/* ---------- Финальный CTA (контрастная полоса) ---------- */
.cta-band {
  background:
    radial-gradient(60% 90% at 100% 0%, rgba(69,210,255,.16), transparent 60%),
    radial-gradient(55% 85% at 0% 100%, rgba(255,114,69,.22), transparent 60%),
    #171717;
  color: #fff;
  text-align: center;
}
.cta-band .section__title { color: #fff; }
.cta-band .section__intro { color: rgba(255,255,255,.78); margin-inline: auto; }
.cta-band__inner { display: grid; justify-items: center; }
.cta-band__actions { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; }
.btn--on-dark { --btn-bg: transparent; --btn-fg: #fff; border-color: rgba(255,255,255,.35); }
.btn--on-dark:hover { --btn-bg: rgba(255,255,255,.10); border-color: rgba(255,255,255,.6); }

/* ---------- Модальное окно заявки ---------- */
.modal {
  width: min(520px, 92vw);
  max-height: 92vh;
  overflow: auto;
  padding: 0;
  border: 0;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  background: transparent;
}
.modal::backdrop { background: rgba(17,17,17,.55); backdrop-filter: blur(2px); }
.modal[open] { animation: modal-in .25s cubic-bezier(.16, 1, .3, 1); }
@keyframes modal-in {
  from { opacity: 0; transform: translateY(12px) scale(.98); }
  to   { opacity: 1; transform: none; }
}
.modal__form { position: relative; margin: 0; box-shadow: none; }
.modal__title { font-size: clamp(1.4rem, 3vw, 1.8rem); padding-right: 44px; }
.modal__lead { color: var(--text-muted); font-size: .98rem; margin-top: -8px; }
.modal__close {
  position: absolute;
  top: 14px; right: 14px;
  width: 38px; height: 38px;
  display: grid;
  place-content: center;
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: 10px;
  color: var(--text);
  cursor: pointer;
  z-index: 2;
  transition: background-color .15s;
}
.modal__close:hover { background: #ececf0; }
.modal__close svg { width: 18px; height: 18px; }

/* Кастомная стрелка для select */
.form__select {
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%235b5f66' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 40px;
  cursor: pointer;
}
.form__select:invalid { color: #9aa0a8; }

/* ---------- Reveal-анимации (только при включённом JS) ---------- */
.js [data-reveal] {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .6s ease, transform .6s cubic-bezier(.16,1,.3,1);
}
.js [data-reveal].is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  .js [data-reveal] { opacity: 1; transform: none; transition: none; }
  .btn, .card, .review, .cert--doc a { transition: none; }
  .modal[open] { animation: none; }
}
