/* ============================================================
   PVZ Сканер — Лендинг
   ============================================================ */

/* ——— Tokens ——— */
:root {
  /* Цвета */
  --ink: #212121;
  --muted: #696969;
  --label: rgba(33, 33, 33, 0.5);
  --bg-hero: #e7eaf3;
  --bg-panel: #ebeef7;
  --bg-panel-2: #eef1f9;
  --white: #ffffff;
  --stroke-periwinkle: #b7c4fd;
  --how-violet: rgba(186, 147, 214, 0.13);
  --how-orange: rgba(228, 147, 65, 0.13);
  --how-blue: rgba(88, 164, 218, 0.13);
  --how-periwinkle: rgba(183, 196, 253, 0.2);
  --accent-violet: #ba93d6;
  --accent-orange: #e49341;
  --accent-blue: #58a4da;

  /* Радиусы */
  --radius-xl: 64px;
  --radius-lg: 52px;
  --radius-md: 32px;
  --radius-pill: 48px;

  /* Сетка */
  /* Сетка: полная ширина вьюпорта; боковые поля — --page-pad (--site-max / --content-max не ограничивают) */
  --page-pad: 64px;
  --site-gap: 80px;
  --site-max: none;
  --content-max: none;

  /* Эффекты */
  --shadow-card: 0 14px 36px rgba(33, 33, 33, 0.06);
  --shadow-lift: 0 24px 48px rgba(33, 33, 33, 0.14);
  /* Мягкое «кольцо» как у шага .how-step__num — без размытой тени */
  --btn-halo: 0 0 0 8px rgba(33, 33, 33, 0.06);
  --btn-halo-hover: 0 0 0 10px rgba(33, 33, 33, 0.09);
  /* Карточки в блоке «Как это работает»: одно скругление у обеих */
  --diagram-card-radius: 28px;
  --ease-soft: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  --dur: 0.32s;
  --reveal-duration: 0.88s;
  --reveal-stagger: 85ms;
}

@media (min-width: 1800px) {
  :root {
    --page-pad: clamp(64px, 4vw, 140px);
  }
}

/* ——— Reset / base ——— */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

body {
  margin: 0;
  font-family: "Roboto", system-ui, sans-serif;
  font-size: 18px;
  line-height: 1.5;
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

body.is-nav-open {
  overflow: hidden;
}

img,
svg,
video {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

/* ——— Reveal-анимация ——— */
.reveal {
  opacity: 0;
  transform: translate3d(0, 20px, 0);
}

@media (prefers-reduced-motion: no-preference) {
  .reveal {
    transition:
      opacity var(--reveal-duration) var(--ease-out),
      transform var(--reveal-duration) var(--ease-out);
    transition-delay: calc(var(--i, 0) * var(--reveal-stagger));
  }
}

.reveal.is-in {
  opacity: 1;
  transform: translate3d(0, 0, 0);
}

@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1;
    transform: none;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
}

/* ——— Layout ——— */
.site {
  width: 100%;
  max-width: none;
  margin: 0;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: var(--site-gap);
  background: var(--white);
  position: relative;
  isolation: isolate;
}

/* ——— Заголовки (Climate Crisis) ——— */
.display-title {
  margin: 0;
  font-family: "Climate Crisis", "Inter", system-ui, sans-serif;
  font-weight: 400;
  font-size: clamp(34px, 4.6vw, 56px);
  line-height: 1.18;
  letter-spacing: -0.01em;
  color: var(--ink);
  font-variation-settings: "YEAR" 1979;
  max-width: 100%;
  min-width: 0;
  overflow-wrap: break-word;
}

.display-title--center {
  text-align: center;
  align-self: center;
  width: 100%;
  max-width: 100%;
}

/* ——— Кнопки ——— */
.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 64px;
  padding: 18px 36px;
  gap: 12px;
  border-radius: var(--radius-pill);
  font-family: "Roboto", system-ui, sans-serif;
  font-weight: 500;
  font-size: clamp(18px, 1.6vw, 24px);
  line-height: 1.2;
  text-decoration: none;
  border: none;
  cursor: pointer;
  isolation: isolate;
  transition:
    transform 0.32s var(--ease-out),
    box-shadow 0.38s var(--ease-out),
    opacity 0.2s ease;
}

.btn--primary {
  background: var(--ink);
  color: var(--white);
  min-width: min(320px, 100%);
  box-shadow: var(--btn-halo);
}

.btn--primary:hover {
  transform: translateY(-3px);
  box-shadow: var(--btn-halo-hover);
}

.btn--primary:active {
  transform: translateY(-1px);
  box-shadow: var(--btn-halo);
}

.btn:focus-visible {
  outline: 3px solid var(--stroke-periwinkle);
  outline-offset: 3px;
}

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative;
  background: var(--bg-hero);
  border-radius: 0 0 var(--radius-xl) var(--radius-xl);
  padding: 64px 0 64px;
  overflow: hidden;
}

.hero__shell {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  gap: clamp(52px, 6.5vw, 88px);
}

/* Шапка — как в Figma: иконка 56 + подпись, px 64 через --page-pad */
.hero__top {
  position: relative;
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
  padding: 0 var(--page-pad);
  gap: 24px;
  min-height: 72px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 16px;
  position: relative;
  z-index: 50;
  flex-shrink: 0;
}

.brand__mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 56px;
  width: auto;
  max-height: 56px;
  flex-shrink: 0;
}

.brand__logo {
  height: 56px;
  width: auto;
  max-height: 56px;
  max-width: none;
  display: block;
  object-fit: contain;
}

.brand__text {
  font-family: "Inter", system-ui, sans-serif;
  font-weight: 600;
  font-size: clamp(20px, 1.66vw, 24px);
  line-height: 1.2;
  color: var(--ink);
  flex-shrink: 0;
  white-space: nowrap;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 6px;
  width: 48px;
  height: 48px;
  padding: 0;
  border: none;
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  cursor: pointer;
  border-radius: 14px;
  z-index: 50;
  transition: background 0.2s ease;
}

.nav-toggle:hover {
  background: rgba(255, 255, 255, 0.9);
}

.nav-toggle:focus-visible {
  outline: 2px solid var(--stroke-periwinkle);
  outline-offset: 2px;
}

.nav-toggle__bar {
  display: block;
  height: 2.5px;
  width: 22px;
  background: var(--ink);
  border-radius: 2px;
  transition: transform 0.28s var(--ease-out), opacity 0.22s ease;
}

.nav-toggle.is-open .nav-toggle__bar:nth-child(1) {
  transform: translateY(8.5px) rotate(45deg);
}

.nav-toggle.is-open .nav-toggle__bar:nth-child(2) {
  opacity: 0;
}

.nav-toggle.is-open .nav-toggle__bar:nth-child(3) {
  transform: translateY(-8.5px) rotate(-45deg);
}

.nav {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 32px;
  padding: 22px 24px;
  border-radius: var(--radius-pill);
  background: transparent;
}

.nav__link {
  position: relative;
  font-family: "Roboto", system-ui, sans-serif;
  font-weight: 500;
  font-size: clamp(16px, 1.66vw, 24px);
  line-height: 1.2;
  color: var(--ink);
  white-space: nowrap;
  padding: 0;
  transition: color 0.28s var(--ease-out);
}

.nav__link::after {
  content: "";
  position: absolute;
  left: 4px;
  right: 4px;
  bottom: 0;
  height: 2px;
  background: var(--ink);
  border-radius: 2px;
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.38s var(--ease-out);
}

.nav__link:hover::after {
  transform: scaleX(1);
}

/* Тело hero — текст слева, видео-орб в правом верхнем углу (по Фигме) */
.hero__body {
  position: relative;
  padding: 0 var(--page-pad) 64px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 64px;
  min-height: clamp(480px, 47vw, 671px);
}

.hero__content {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 40px;
  width: 100%;
  max-width: none;
  padding-right: 0;
}

.hero__title,
.hero__lead {
  text-shadow:
    0 0 1px rgba(231, 234, 243, 0.85),
    0 1px 2px rgba(231, 234, 243, 0.6);
}

.hero__title {
  margin: 0;
  font-size: clamp(34px, 4.6vw, 64px);
  line-height: normal;
  letter-spacing: -0.01em;
  width: 100%;
  max-width: 100%;
}

.hero__lead {
  margin: 0;
  font-family: "Roboto", system-ui, sans-serif;
  font-weight: 400;
  font-size: clamp(18px, 2.35vw, 32px);
  line-height: normal;
  color: var(--ink);
  width: 100%;
  max-width: 100%;
}

/* Орб + видео — справа, с выходом за правый край */
.hero__visual {
  position: absolute;
  z-index: 0;
  top: clamp(16px, 5vw, 68px);
  right: clamp(-200px, -12vw, -8px);
  left: auto;
  bottom: auto;
  width: clamp(420px, 56vw, 804px);
  max-width: none;
  aspect-ratio: 804 / 509;
  pointer-events: none;
}

.hero__orb {
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: 999px;
  overflow: hidden;
  background: var(--bg-hero);
  transform: none;
  transform-origin: center;
}

.hero__poster-only {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: none;
  pointer-events: none;
}

.hero__video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

@media (prefers-reduced-motion: reduce) {
  .hero__video {
    display: none;
  }

  .hero__poster-only {
    display: block;
  }
}

/* ============================================================
   КАК ЭТО РАБОТАЕТ
   ============================================================ */
.section-how {
  width: 100%;
  /* Сжимаем зазор после hero: flex-gap .site остаётся в вёрстке, визуально подтягиваем секцию */
  margin-top: calc(16px - var(--site-gap));
}

.section-how__inner {
  width: 100%;
  max-width: none;
  margin: 0;
  padding: clamp(16px, 3vw, 40px) var(--page-pad) clamp(24px, 4vw, 56px);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: clamp(48px, 6vw, 80px);
}

/* Заголовок секции: запас под строкой (шрифт display), чтобы не «прилипал» визуально к низу */
.section-how .display-title {
  margin: 0;
  padding-bottom: 0.22em;
}

.how-showcase {
  position: relative;
  width: 100%;
  max-width: none;
}

.how-diagram-wrap {
  display: flex;
  justify-content: center;
  width: 100%;
  margin-bottom: clamp(24px, 3vw, 40px);
}

/* Сцена фиксированной ширины по центру — % у карточек от её середины, а не от всего экрана */
.how-diagram-stage {
  position: relative;
  width: min(920px, 100%);
  max-width: 100%;
  height: clamp(260px, 34vw, 400px);
  margin: 0 auto;
}

.how-diagram__card {
  position: absolute;
  box-sizing: border-box;
  background: var(--white);
  border: 12px solid var(--stroke-periwinkle);
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: stretch;
  padding: 10px 12px;
  box-shadow: 0 14px 36px rgba(33, 33, 33, 0.08);
  overflow: hidden;
}

.how-diagram__card--back {
  width: min(420px, 46%);
  min-height: 0;
  left: 40%;
  bottom: 22%;
  border-radius: var(--diagram-card-radius);
  transform: rotate(5deg);
  z-index: 2;
}

.how-diagram__card--front {
  width: min(520px, 58%);
  min-height: 0;
  left: 14%;
  top: 4%;
  border-radius: var(--diagram-card-radius);
  transform: rotate(-5.02deg);
  z-index: 0;
}

.how-diagram__body {
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 5px;
  min-width: 0;
  font-family: "Roboto", system-ui, sans-serif;
  color: var(--ink);
  line-height: 1.28;
}

.how-diagram__city {
  margin: 0;
  font-size: clamp(10px, 1.12vw, 13px);
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  line-height: 1.2;
}

.how-diagram__lead,
.how-diagram__meta {
  margin: 0;
  font-size: clamp(9px, 1.02vw, 12px);
  font-weight: 500;
}

.how-diagram__meta--link {
  color: #2563eb;
}

.how-diagram__subsidy {
  margin: 2px 0 0;
  font-size: clamp(9px, 0.98vw, 11px);
  font-weight: 500;
  color: var(--muted);
  line-height: 1.35;
}

.how-diagram__subsidy-label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 600;
  color: var(--ink);
}

.how-diagram__subsidy-badge {
  width: clamp(16px, 1.55vw, 20px);
  height: clamp(16px, 1.55vw, 20px);
  flex-shrink: 0;
  display: block;
  object-fit: contain;
  border-radius: 5px;
}

.how-diagram__subsidy-name {
  font-weight: 600;
}

.how-diagram__subsidy--ozon .how-diagram__subsidy-name {
  color: #005bff;
}

.how-diagram__subsidy--wb .how-diagram__subsidy-name {
  color: #5b3a8e;
}

/* Шаги: на десктопе 7 колонок — карточка | колонка со стрелкой | карточка | …
   Ширина колонок стрелок растёт с вьюпортом, чтобы ассеты не были «точкой». */
.how-steps {
  position: relative;
  z-index: 1;
  width: 100%;
}

.how-connector {
  display: none;
}

@media (min-width: 900px) {
  .how-steps {
    display: grid;
    grid-template-columns:
      minmax(0, 1fr)
      clamp(67px, 9.84vw, 144px)
      minmax(0, 1fr)
      clamp(77px, 11.4vw, 168px)
      minmax(0, 1fr)
      clamp(67px, 9.84vw, 144px)
      minmax(0, 1fr);
    gap: 0;
    align-items: stretch;
  }

  .how-connector {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    min-width: 0;
    padding-top: clamp(36px, 5.5vw, 56px);
    position: relative;
    z-index: 1;
    overflow: visible;
    pointer-events: none;
  }

  .how-connector img {
    display: block;
    width: 100%;
    height: auto;
    object-fit: contain;
    transform-origin: center center;
    flex-shrink: 0;
  }

  .how-connector--1 img {
    transform: translateY(clamp(-12px, -1vw, -5px)) rotate(-11deg) scale(1.68);
  }

  .how-connector--2 img {
    transform: translateY(clamp(14px, 1.8vw, 30px)) rotate(-4deg) scale(1.68);
  }

  .how-connector--3 img {
    transform: translateY(clamp(-12px, -1vw, -5px)) rotate(-2deg) scale(1.68);
  }
}

.how-step {
  position: relative;
  z-index: 0;
  display: flex;
  align-items: stretch;
  padding: 24px;
  border-radius: var(--radius-lg);
  min-height: 0;
  transition: transform 0.38s var(--ease-out), box-shadow 0.38s var(--ease-out);
}

.how-step:hover {
  z-index: 2;
  transform: translateY(-6px);
  box-shadow: var(--shadow-lift);
}

.how-step--violet {
  background: var(--how-violet);
}
.how-step--orange {
  background: var(--how-orange);
}
.how-step--blue {
  background: var(--how-blue);
}
.how-step--periwinkle {
  background: var(--how-periwinkle);
}

.how-step__inner {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 16px;
  width: 100%;
  min-width: 0;
}

.how-step__num {
  flex: none;
  width: 56px;
  height: 56px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--ink);
  color: var(--white);
  border-radius: 50%;
  font-family: "Roboto", system-ui, sans-serif;
  font-weight: 500;
  font-size: 24px;
  line-height: 1;
  transition: transform 0.38s var(--ease-spring), box-shadow 0.38s var(--ease-out);
}

.how-step:hover .how-step__num {
  transform: scale(1.08);
  box-shadow: var(--btn-halo);
}

.how-step__text {
  margin: 0;
  flex: none;
  min-width: 0;
  width: 100%;
  font-family: "Roboto", system-ui, sans-serif;
  font-weight: 500;
  font-size: clamp(18px, 1.8vw, 24px);
  line-height: 1.25;
  color: var(--ink);
}

/* ============================================================
   ПРЕИМУЩЕСТВА
   ============================================================ */
.section-benefits {
  width: 100%;
  background: var(--bg-panel);
  border-radius: var(--radius-xl);
  padding: 64px var(--page-pad);
}

.section-benefits__inner {
  width: 100%;
  max-width: none;
  margin: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 64px;
}

.section-benefits .display-title {
  font-size: clamp(28px, 4.2vw, 56px);
  line-height: normal;
  text-align: center;
  width: 100%;
}

.benefits-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 32px;
  width: 100%;
}

.benefit-card {
  position: relative;
  background: var(--white);
  border-radius: 32px;
  padding: 24px;
  min-height: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
  overflow: hidden;
  transition: transform 0.38s var(--ease-out), box-shadow 0.38s var(--ease-out);
}

.benefit-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(120% 60% at 50% 0%, rgba(183, 196, 253, 0.18), transparent 70%);
  opacity: 0;
  transition: opacity 0.38s var(--ease-out);
  pointer-events: none;
}

.benefit-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lift);
}

.benefit-card:hover::before {
  opacity: 1;
}

.benefit-card__icon {
  width: 120px;
  height: 120px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  z-index: 1;
  flex-shrink: 0;
  overflow: hidden;
}

.benefit-card__icon img {
  display: block;
  width: 115px;
  height: 101px;
  object-fit: contain;
  object-position: center bottom;
  transition: transform 0.42s var(--ease-out);
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  transform: translate3d(0, 0, 0);
}

.benefit-card:hover .benefit-card__icon img {
  transform: translate3d(0, 0, 0) scale(1.06);
}

/* Скорость — чистый 120×120 экспорт из Figma (старый PNG давал артефакт в углу) */
.benefit-card:nth-child(1) .benefit-card__icon img {
  width: 120px;
  height: 120px;
  object-fit: contain;
  object-position: center center;
}

/* Точность — иконка на фоне карточки (как в Figma), без отдельной подложки */
.benefit-card:nth-child(2) .benefit-card__icon img {
  width: 120px;
  height: 120px;
  object-fit: contain;
  object-position: center center;
}

.benefit-card:nth-child(4) .benefit-card__icon img {
  width: 121px;
  height: 116px;
  object-fit: cover;
  object-position: center center;
  transform: translate3d(0, 2px, 0);
}

.benefit-card:nth-child(4):hover .benefit-card__icon img {
  transform: translate3d(0, 2px, 0) scale(1.06);
}

.benefit-card__body {
  display: flex;
  flex-direction: column;
  gap: 12px;
  text-align: center;
  width: 100%;
  position: relative;
  z-index: 1;
}

.benefit-card__title {
  margin: 0;
  font-family: "Inter", system-ui, sans-serif;
  font-weight: 600;
  font-size: clamp(22px, 2vw, 28px);
  line-height: normal;
  color: var(--ink);
}

.benefit-card__text {
  margin: 0;
  font-family: "Inter", system-ui, sans-serif;
  font-weight: 400;
  font-size: 16px;
  line-height: normal;
  color: var(--muted);
}

/* ============================================================
   ТАРИФЫ
   ============================================================ */
.section-pricing {
  width: 100%;
}

.section-pricing__inner {
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 32px var(--page-pad) 96px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 64px;
}

.section-pricing .display-title {
  align-self: center;
}

.pricing-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 32px;
  width: 100%;
  max-width: none;
}

.pricing-card {
  position: relative;
  background: var(--bg-panel);
  border-radius: 32px;
  padding: 24px;
  min-height: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  gap: 8px;
  overflow: hidden;
  transition: transform 0.38s var(--ease-out), box-shadow 0.38s var(--ease-out);
}

.pricing-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lift);
}

.pricing-card__city {
  margin: 0;
  font-family: "Inter", system-ui, sans-serif;
  font-weight: 500;
  font-size: clamp(18px, 1.6vw, 24px);
  line-height: normal;
  color: var(--ink);
}

.pricing-card__price {
  margin: 0;
  font-family: "Inter", system-ui, sans-serif;
  font-weight: 800;
  font-size: clamp(28px, 2.6vw, 32px);
  line-height: 1.2;
  color: var(--ink);
  font-feature-settings: "tnum";
}

.pricing-card__period {
  display: block;
  margin-top: 6px;
  font-size: clamp(14px, 1.35vw, 16px);
  font-weight: 500;
  line-height: 1.2;
  color: var(--muted);
}

/* ============================================================
   CTA — Figma 97:16945
   ============================================================ */
.cta-outer {
  width: 100%;
  padding: 0 var(--page-pad);
}

.cta-shell {
  position: relative;
  width: 100%;
  background: #ffffff;
  /* Внешний радиус > толщина рамки, иначе внутренний угол «ломается» (64−64=0) */
  --cta-frame: 64px;
  border: var(--cta-frame) solid var(--bg-panel);
  border-radius: calc(var(--cta-frame) + 40px);
  box-sizing: border-box;
  overflow: visible;
}

.cta-shell__inner {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, clamp(280px, 36vw, 796px));
  align-items: center;
  gap: clamp(32px, 5vw, 80px);
  padding: 64px;
  min-height: clamp(420px, 39vw, 561px);
}

.cta-copy {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 64px;
  width: 100%;
  max-width: min(708px, 100%);
  min-width: 0;
}

.cta-copy__intro {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.cta-copy .display-title {
  font-size: clamp(32px, 4vw, 56px);
  line-height: normal;
  white-space: normal;
}

.cta-copy__lead {
  margin: 0;
  font-family: "Inter", system-ui, sans-serif;
  font-weight: 400;
  font-size: clamp(20px, 2.4vw, 32px);
  line-height: normal;
  color: var(--ink);
}

.cta-visual {
  position: relative;
  z-index: 1;
  justify-self: end;
  width: 100%;
  max-width: 796px;
  aspect-ratio: 796 / 433;
  border-radius: 22px;
  overflow: hidden;
}

.cta-map-img {
  width: 100%;
  height: auto;
  display: block;
  aspect-ratio: 796 / 433;
  object-fit: cover;
}

/* ============================================================
   FAQ
   ============================================================ */
.section-faq {
  width: 100%;
}

.section-faq__inner {
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 96px var(--page-pad) 64px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 64px;
}

.section-faq .display-title {
  align-self: center;
}

.faq-list {
  width: 100%;
  max-width: none;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.faq-item {
  background: var(--bg-panel);
  border-radius: 52px;
  padding: 24px 24px 24px 44px;
  border: none;
  transition:
    background 0.35s var(--ease-out),
    padding 0.42s var(--ease-out);
}

.faq-item[open] {
  background: var(--bg-panel);
  padding-bottom: 38px;
}

.faq-item__summary {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 24px;
  cursor: pointer;
  list-style: none;
}

.faq-item__summary::-webkit-details-marker {
  display: none;
}

.faq-item__summary:focus-visible {
  outline: 2px solid var(--stroke-periwinkle);
  outline-offset: 4px;
  border-radius: 12px;
}

.faq-item__question {
  flex: 1;
  font-family: "Roboto", system-ui, sans-serif;
  font-weight: 500;
  font-size: clamp(18px, 1.8vw, 24px);
  line-height: normal;
  color: var(--ink);
}

.faq-item__toggle {
  flex: none;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--ink);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.38s var(--ease-out), background 0.28s ease;
  position: relative;
}

.faq-item__chevron {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate3d(-50%, -50%, 0);
  width: 40px;
  height: 40px;
  display: block;
  transition: opacity 0.32s var(--ease-out);
}

.faq-item__chevron--open {
  opacity: 0;
}

.faq-item[open] .faq-item__chevron--closed {
  opacity: 0;
}

.faq-item[open] .faq-item__chevron--open {
  opacity: 1;
}

.faq-item[open] .faq-item__toggle {
  background: var(--ink);
}

.faq-item__answer {
  margin: 16px 80px 0 0;
  max-width: 1036px;
  font-family: "Roboto", system-ui, sans-serif;
  font-weight: 400;
  font-size: 16px;
  line-height: normal;
  color: var(--muted);
}

@media (prefers-reduced-motion: no-preference) {
  .faq-item[open] .faq-item__answer {
    animation: faq-answer-in 0.48s var(--ease-out) both;
  }
}

@keyframes faq-answer-in {
  from {
    opacity: 0;
    transform: translate3d(0, -8px, 0);
  }
  to {
    opacity: 1;
    transform: translate3d(0, 0, 0);
  }
}

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  width: 100%;
  background: var(--bg-hero);
  border-radius: var(--radius-xl) var(--radius-xl) 0 0;
  padding: 36px var(--page-pad) 40px;
}

.footer__inner {
  width: 100%;
  max-width: none;
  margin: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 12px clamp(20px, 3.5vw, 40px);
  align-items: start;
}

.footer__col {
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-width: 0;
}

.footer__col--aside {
  gap: 10px;
}

.footer__aside-block {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.footer__col--contacts {
  gap: 10px;
}

/* В футере тот же знак, чуть меньше */
.footer .brand__mark {
  height: 48px;
  max-height: 48px;
  width: auto;
}

.footer .brand__logo {
  height: 48px;
  max-height: 48px;
  width: auto;
  max-width: none;
}

.footer__heading {
  margin: 0;
  font-family: "Roboto", system-ui, sans-serif;
  font-weight: 500;
  font-size: 20px;
  line-height: 1.2;
  color: var(--ink);
}

.footer-dl {
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.footer-dl__row {
  display: grid;
  grid-template-columns: minmax(0, 10.5rem) minmax(0, 1fr);
  gap: 6px 12px;
  align-items: start;
}

.footer-dl dt {
  font-family: "Inter", system-ui, sans-serif;
  font-weight: 400;
  font-size: 14px;
  line-height: 1.35;
  color: var(--label);
}

.footer-dl dd {
  margin: 0;
  font-family: "Inter", system-ui, sans-serif;
  font-weight: 400;
  font-size: 14px;
  line-height: 1.35;
  color: var(--ink);
}

.footer-links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.footer-links a {
  position: relative;
  font-family: "Inter", system-ui, sans-serif;
  font-size: 14px;
  line-height: 1.35;
  color: var(--ink);
  display: inline;
  background-image: linear-gradient(to right, var(--ink), var(--ink));
  background-size: 0% 1px;
  background-position: 0 100%;
  background-repeat: no-repeat;
  transition: background-size 0.36s var(--ease-out);
}

.footer__email {
  font-family: "Inter", system-ui, sans-serif;
  font-size: 14px;
  line-height: 1.35;
  color: var(--ink);
}

.footer__email--strong {
  font-weight: 800;
  text-decoration: none;
}

.footer-links a:hover,
.footer__email:hover {
  background-size: 100% 1px;
}

.footer__note {
  margin: 0;
  font-family: "Inter", system-ui, sans-serif;
  font-size: 14px;
  line-height: 1.45;
  color: var(--ink);
}

.footer__note--cta {
  margin-top: 4px;
  padding-top: 0;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */

/* ——— ≥1200 — desktop (default) ——— */

/* ——— 900–1199 — large tablet ——— */
@media (max-width: 1199px) {
  :root {
    --page-pad: 48px;
    --site-gap: 64px;
  }

  .nav {
    gap: 24px;
    padding: 12px 22px;
  }

  .nav__link {
    font-size: 16px;
  }

  .hero__body {
    min-height: clamp(460px, 52vw, 620px);
  }

  .hero__visual {
    top: clamp(16px, 5vw, 60px);
    right: clamp(-180px, -11vw, -8px);
    width: clamp(420px, 56vw, 700px);
  }

  .how-step {
    padding: clamp(16px, 2vw, 22px);
  }

  .benefits-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 32px;
  }

  .cta-shell__inner {
    padding: 48px;
    min-height: clamp(360px, 42vw, 460px);
    grid-template-columns: minmax(0, 1fr) minmax(220px, min(40vw, 520px));
    gap: 40px;
  }

  .cta-visual {
    max-width: 100%;
    justify-self: end;
  }
}

/* ——— 600–899 — tablet ——— */
@media (max-width: 899px) {
  :root {
    --page-pad: 32px;
    --site-gap: 56px;
  }

  .hero {
    padding: 24px 0 56px;
  }

  .nav {
    display: none;
    position: absolute;
    top: 84px;
    left: var(--page-pad);
    right: var(--page-pad);
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    padding: 16px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    border-radius: 24px;
    box-shadow: 0 20px 40px rgba(33, 33, 33, 0.12);
    z-index: 45;
  }

  .nav.is-open {
    display: flex;
  }

  .nav__link {
    padding: 14px 16px;
    border-radius: 14px;
    font-size: 18px;
  }

  .nav__link:hover {
    background: rgba(0, 0, 0, 0.04);
  }

  .nav__link::after {
    display: none;
  }

  .nav-toggle {
    display: inline-flex;
  }

  .hero__body {
    min-height: 0;
    gap: 40px;
  }

  .hero__content {
    max-width: 100%;
    padding-bottom: clamp(72px, 20vw, 160px);
  }

  .hero__title,
  .hero__lead {
    max-width: 100%;
  }

  /* Видео в кадре hero: якорь справа, без «уезда» влево от центра */
  .hero__visual {
    position: absolute;
    top: clamp(118px, 35vw, 198px);
    right: clamp(-100px, -10vw, -8px);
    left: auto;
    bottom: auto;
    transform: none;
    width: min(125vw, 540px);
  }

  .hero__orb {
    border-radius: 999px;
  }

  .how-diagram-stage {
    height: clamp(240px, 52vw, 320px);
  }

  .how-steps {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
  }

  .how-step {
    min-height: 0;
  }

  .how-step__inner {
    flex-direction: row;
    align-items: center;
    gap: 16px;
  }

  .how-step__text {
    flex: 1;
    min-width: 0;
    width: auto;
  }

  .benefits-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
  }

  .pricing-row {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .cta-outer {
    padding: 0 var(--page-pad);
  }

  .cta-shell {
    --cta-frame: 24px;
    border-width: 24px;
    border-radius: calc(var(--cta-frame) + 28px);
  }

  .cta-shell__inner {
    display: flex;
    flex-direction: column-reverse;
    padding: 32px;
    gap: 32px;
    min-height: 0;
  }

  .cta-copy {
    gap: 40px;
    width: 100%;
    max-width: 100%;
  }

  .cta-visual {
    position: relative;
    top: auto;
    right: auto;
    width: 100%;
    max-width: 480px;
    margin: 0 auto;
  }

  .footer__inner {
    gap: 14px 24px;
  }

  .footer-dl__row {
    grid-template-columns: minmax(0, 9rem) minmax(0, 1fr);
  }
}

/* ——— <600 — mobile ——— */
@media (max-width: 599px) {
  :root {
    --page-pad: 20px;
    --site-gap: 40px;
  }

  .hero {
    border-radius: 0 0 40px 40px;
    padding: 20px 0 40px;
  }

  .hero__top {
    min-height: 60px;
  }

  .brand__mark {
    height: 44px;
    max-height: 44px;
  }

  .brand__logo {
    height: 44px;
    max-height: 44px;
    max-width: none;
  }

  .brand__text {
    font-size: 20px;
  }

  .hero__title {
    font-size: clamp(34px, 8.5vw, 52px);
  }

  .hero__lead {
    font-size: clamp(18px, 4.8vw, 26px);
  }

  .hero__visual {
    top: clamp(98px, 41vw, 172px);
    right: clamp(-110px, -12vw, -6px);
    width: min(132vw, 500px);
  }

  .hero__orb {
    transform: none;
  }

  .btn--primary {
    width: 100%;
    min-width: 0;
    padding: 16px 24px;
    min-height: 56px;
  }

  .how-diagram-stage {
    height: clamp(260px, 58vw, 320px);
  }

  .how-diagram__card--back {
    width: 50%;
    left: 28%;
    bottom: 18%;
    z-index: 2;
  }

  .how-diagram__card--front {
    width: 64%;
    left: 18%;
    z-index: 0;
  }

  .section-benefits,
  .footer {
    border-radius: 40px;
  }

  .footer {
    border-radius: 40px 40px 0 0;
  }

  .section-benefits {
    padding: 48px var(--page-pad);
  }

  .section-benefits__inner {
    gap: 48px;
  }

  .benefits-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .benefit-card {
    padding: 28px 20px;
    min-height: 0;
  }

  .cta-shell {
    --cta-frame: 16px;
    border-width: 16px;
    border-radius: calc(var(--cta-frame) + 22px);
  }

  .cta-shell__inner {
    padding: 24px;
    gap: 24px;
  }

  .faq-item {
    padding: 18px 16px 18px 24px;
  }

  .faq-item__summary {
    gap: 12px;
  }

  .faq-item__toggle {
    width: 44px;
    height: 44px;
  }

  .faq-item__chevron {
    width: 32px;
    height: 32px;
    transform: translate(-50%, -50%);
  }

  .faq-item__answer {
    margin-right: 0;
    margin-top: 12px;
  }

  .footer__inner {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .footer .brand__mark {
    height: 44px;
    max-height: 44px;
  }

  .footer .brand__logo {
    height: 44px;
    max-height: 44px;
    max-width: none;
  }
}

/* ============================================================
   Юридические страницы (документы)
   ============================================================ */
.legal-page {
  margin: 0;
  min-height: 100vh;
  background: var(--white);
  color: var(--ink);
}

.legal-page__bar {
  position: sticky;
  top: 0;
  z-index: 10;
  padding: 16px var(--page-pad);
  background: rgba(231, 234, 243, 0.92);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(33, 33, 33, 0.06);
}

.legal-page__back {
  font-family: "Inter", system-ui, sans-serif;
  font-weight: 500;
  font-size: 16px;
  color: var(--ink);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.legal-page__back:hover {
  color: var(--muted);
}

.legal-page__back:focus-visible {
  outline: 3px solid var(--stroke-periwinkle);
  outline-offset: 3px;
}

.legal-doc {
  max-width: 800px;
  margin: 0 auto;
  padding: 40px var(--page-pad) 80px;
}

.legal-doc__title {
  margin: 0 0 24px;
  font-family: "Inter", system-ui, sans-serif;
  font-weight: 600;
  font-size: clamp(24px, 4vw, 32px);
  line-height: 1.25;
  color: var(--ink);
}

.legal-doc__h2 {
  margin: 32px 0 12px;
  font-family: "Inter", system-ui, sans-serif;
  font-weight: 600;
  font-size: 18px;
  line-height: 1.35;
  color: var(--ink);
}

.legal-doc__h2:first-of-type {
  margin-top: 24px;
}

.legal-doc p,
.legal-doc li {
  margin: 0 0 12px;
  font-family: "Roboto", system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.55;
  color: var(--ink);
}

.legal-doc ul {
  margin: 0 0 16px;
  padding-left: 1.25em;
}

.legal-doc li {
  margin-bottom: 8px;
}

.legal-doc a {
  color: var(--ink);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.legal-doc a:hover {
  color: var(--muted);
}

.legal-doc__meta {
  font-size: 15px;
  line-height: 1.55;
  color: var(--muted);
}

.legal-doc__meta strong {
  color: var(--ink);
  font-weight: 600;
}

.legal-doc__meta--footer {
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px solid rgba(33, 33, 33, 0.08);
  font-size: 14px;
}

.legal-doc__note {
  margin-top: 24px;
  padding: 16px 20px;
  border-radius: 16px;
  background: var(--bg-panel);
  font-size: 14px;
  line-height: 1.5;
  color: var(--muted);
}
