/* ============================================================
   СВИКИ Партнёры — лендинг. Стили.
   База идентична клиентскому, добавлены: карусель скринов,
   цветные иконки-плашки (.tile__icon--*, .feature__icon--*),
   payouts-note, pill, чуть строже B2B-визуал.
============================================================ */

:root {
  /* Базовые */
  --color-bg:            #F4F6FA;
  --color-surface:       #FFFFFF;
  --color-surface-soft:  #F8FAFF;

  /* Текст */
  --color-text:          #0F172A;
  --color-text-muted:    #64748B;
  --color-text-soft:     #94A3B8;

  /* Первичный акцент — синий из лого СВИКИ */
  --color-primary:       #1E40F3;
  --color-primary-hover: #1833C7;
  --color-primary-soft:  #E0E9FF;

  /* Вторичный акцент — зелёный (из "+" на лого) */
  --color-accent:        #22C55E;
  --color-accent-hover:  #16A34A;
  --color-accent-soft:   #DCFCE7;

  /* Палитра пастельных подложек для иконок (из стиля скрина ЛК) */
  --tile-blue:    #DBEAFE;
  --tile-blue-2:  #2563EB;
  --tile-purple:  #EDE9FE;
  --tile-purple-2:#7C3AED;
  --tile-mint:    #D1FAE5;
  --tile-mint-2:  #059669;
  --tile-pink:    #FCE7F3;
  --tile-pink-2:  #DB2777;
  --tile-orange:  #FFEDD5;
  --tile-orange-2:#EA580C;

  /* Системные */
  --color-border:        #E5E9F2;
  --color-border-soft:   #EEF1F7;
  --color-danger:        #EF4444;

  /* Радиусы */
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-full: 999px;

  /* Тени */
  --shadow-card:  0 2px 12px rgba(15, 23, 42, 0.06);
  --shadow-soft:  0 1px 3px rgba(15, 23, 42, 0.04);
  --shadow-hover: 0 8px 28px rgba(30, 64, 243, 0.14);
  --shadow-lg:    0 20px 60px rgba(15, 23, 42, 0.12);

  /* Типографика */
  --font-sans: 'Inter', -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;

  /* Контейнер */
  --container-max: 1200px;
  --container-narrow: 820px;
  --gutter: 24px;
}

/* ============================================================
   RESET
============================================================ */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.55;
  color: var(--color-text);
  background: var(--color-bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4 { margin: 0; line-height: 1.2; letter-spacing: -0.01em; }
p { margin: 0; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }
img, svg { display: block; max-width: 100%; height: auto; }
ul, ol { margin: 0; padding: 0; list-style: none; }

:focus-visible {
  outline: 2px solid var(--color-primary);
  outline-offset: 2px;
  border-radius: 4px;
}

:target, [id] { scroll-margin-top: 84px; }

/* ============================================================
   CONTAINER
============================================================ */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--gutter);
}
.container--narrow { max-width: var(--container-narrow); }

/* ============================================================
   COMMON
============================================================ */
.eyebrow {
  display: inline-block;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--color-primary);
  padding: 6px 12px;
  background: var(--color-primary-soft);
  border-radius: var(--radius-full);
  margin-bottom: 16px;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 600;
  padding: 6px 14px;
  border-radius: var(--radius-full);
  margin-bottom: 28px;
  background: var(--color-accent-soft);
  color: var(--color-accent-hover);
}
.pill--accent svg { color: var(--color-accent-hover); }

.section {
  padding: 96px 0;
}
.section--soft {
  background: var(--color-surface-soft);
}

.section__head {
  max-width: 760px;
  margin: 0 0 48px;
}
.section__head--center {
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}
.section__title {
  font-size: 40px;
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--color-text);
  margin-bottom: 16px;
}
.section__subtitle {
  font-size: 18px;
  line-height: 1.55;
  color: var(--color-text-muted);
}
.section__footnote {
  margin-top: 32px;
  font-size: 14px;
  color: var(--color-text-soft);
  text-align: center;
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
}

/* Зелёная галочка-чек */
.check {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--color-accent-soft);
  margin-right: 12px;
  position: relative;
}
.check::after {
  content: "";
  width: 12px;
  height: 7px;
  border-left: 2px solid var(--color-accent-hover);
  border-bottom: 2px solid var(--color-accent-hover);
  transform: rotate(-45deg) translate(1px, -1px);
}

/* ============================================================
   BUTTONS
============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 22px;
  font-size: 15px;
  font-weight: 600;
  border-radius: var(--radius-md);
  border: 1.5px solid transparent;
  background: transparent;
  color: var(--color-text);
  cursor: pointer;
  transition: transform .15s ease, background-color .2s ease, color .2s ease, border-color .2s ease, box-shadow .2s ease;
  text-align: center;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn--primary {
  background: var(--color-primary);
  color: #fff;
  box-shadow: 0 4px 14px rgba(30, 64, 243, 0.25);
}
.btn--primary:hover { background: var(--color-primary-hover); box-shadow: 0 6px 20px rgba(30, 64, 243, 0.35); }

.btn--ghost {
  background: transparent;
  color: var(--color-text);
  border-color: var(--color-border);
}
.btn--ghost:hover { background: var(--color-surface); border-color: var(--color-primary); color: var(--color-primary); }

.btn--outline {
  background: transparent;
  color: var(--color-primary);
  border-color: var(--color-primary);
}
.btn--outline:hover { background: var(--color-primary-soft); }

.btn--lg { padding: 14px 28px; font-size: 16px; }
.btn--full { width: 100%; }

/* ============================================================
   HEADER
============================================================ */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: saturate(180%) blur(12px);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--color-border-soft);
}
.header__inner {
  display: flex;
  align-items: center;
  gap: 20px;
  height: 64px;
}
.header__logo { display: flex; align-items: center; flex-shrink: 0; }
.header__logo img { height: 34px; width: auto; display: block; }

.header__nav {
  display: flex;
  align-items: center;
  gap: 22px;
  margin-left: 12px;
  white-space: nowrap;
  flex-shrink: 1;
  min-width: 0;
}
.header__nav a {
  font-size: 14px;
  font-weight: 500;
  color: var(--color-text-muted);
  transition: color .2s ease;
  white-space: nowrap;
}
.header__nav a:hover { color: var(--color-primary); }

.header__actions {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-left: auto;
  flex-shrink: 0;
}
.header__actions .btn { padding: 9px 16px; font-size: 14px; }
.header__phone {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 600;
  color: var(--color-text);
  transition: color .2s ease;
  white-space: nowrap;
}
.header__phone:hover { color: var(--color-primary); }
.header__phone svg { color: var(--color-primary); }

.header__burger {
  display: none;
  width: 40px;
  height: 40px;
  padding: 0;
  margin-left: auto;
  background: transparent;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
}
.header__burger span {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--color-text);
  border-radius: 2px;
  transition: transform .2s ease, opacity .2s ease;
}
.header__burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.header__burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.header__burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

.mobile-menu {
  position: fixed;
  top: 64px; left: 0; right: 0; bottom: 0;
  background: var(--color-surface);
  padding: 24px;
  overflow-y: auto;
  z-index: 99;
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.mobile-menu__nav { display: flex; flex-direction: column; gap: 4px; }
.mobile-menu__nav a {
  padding: 14px 4px;
  font-size: 17px;
  font-weight: 600;
  color: var(--color-text);
  border-bottom: 1px solid var(--color-border-soft);
}
.mobile-menu__actions { display: flex; flex-direction: column; gap: 10px; margin-top: auto; }

/* ============================================================
   HERO
============================================================ */
.hero {
  position: relative;
  padding: 64px 0 96px;
  overflow: hidden;
}
.hero__glow {
  position: absolute;
  top: -120px;
  right: -10%;
  width: 720px;
  height: 720px;
  background: radial-gradient(closest-side, rgba(30,64,243,0.12), transparent);
  pointer-events: none;
  z-index: 0;
}
.hero__inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 64px;
  align-items: start;
}
.hero__content { max-width: 640px; }
.hero__title {
  font-size: 50px;
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin-bottom: 20px;
}
.hero__subtitle {
  font-size: 18px;
  line-height: 1.6;
  color: var(--color-text-muted);
  margin-bottom: 20px;
}
.hero__cta {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 40px;
}
.hero__bullets { display: flex; flex-direction: column; gap: 12px; }
.hero__bullets li {
  display: flex;
  align-items: center;
  font-size: 15px;
}

/* ============================================================
   LEAD FORM
============================================================ */
.hero__form-wrap {
  position: relative;
  background: var(--color-surface);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg);
  padding: 32px;
  border: 1px solid var(--color-border-soft);
}
.lead-form { display: flex; flex-direction: column; gap: 18px; }
.lead-form__header { margin-bottom: 4px; }
.lead-form__title {
  font-size: 22px;
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 8px;
}
.lead-form__subtitle { font-size: 14px; color: var(--color-text-muted); }
.lead-form__legal {
  font-size: 12px;
  color: var(--color-text-soft);
  line-height: 1.45;
  font-style: italic;
}

.field { display: flex; flex-direction: column; gap: 6px; }
.field__label { font-size: 13px; font-weight: 600; color: var(--color-text); }
.field input[type="text"],
.field input[type="tel"],
.field input[type="email"] {
  width: 100%;
  padding: 13px 14px;
  font-size: 15px;
  font-family: inherit;
  color: var(--color-text);
  background: var(--color-surface);
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius-md);
  transition: border-color .15s ease, box-shadow .15s ease;
}
.field input:hover { border-color: var(--color-text-soft); }
.field input:focus { outline: none; border-color: var(--color-primary); box-shadow: 0 0 0 4px rgba(30,64,243,0.12); }
.field input::placeholder { color: var(--color-text-soft); }
.field--error input { border-color: var(--color-danger) !important; }
.field__error {
  min-height: 16px;
  font-size: 12px;
  color: var(--color-danger);
  line-height: 1.3;
}
.field__error:empty { min-height: 0; }
.field--check {
  flex-direction: row;
  align-items: flex-start;
  gap: 10px;
  font-size: 13px;
  color: var(--color-text-muted);
  line-height: 1.45;
  cursor: pointer;
}
.field--check input[type="checkbox"] {
  flex-shrink: 0;
  margin-top: 2px;
  width: 16px;
  height: 16px;
  accent-color: var(--color-primary);
}
.field--check a { color: var(--color-primary); text-decoration: underline; }

.lead-success { text-align: center; padding: 24px 16px; }
.lead-success__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--color-accent-soft);
  color: var(--color-accent-hover);
  margin-bottom: 16px;
}
.lead-success h3 { font-size: 22px; font-weight: 700; margin-bottom: 8px; }
.lead-success p { color: var(--color-text-muted); }

/* ============================================================
   GRIDS
============================================================ */
.grid { display: grid; gap: 20px; }
.grid--3 { grid-template-columns: repeat(3, 1fr); }

/* ============================================================
   TILES (Кому подходит)
============================================================ */
.tile {
  background: var(--color-surface);
  border: 1px solid var(--color-border-soft);
  border-radius: var(--radius-lg);
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  box-shadow: var(--shadow-soft);
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.tile:hover { transform: translateY(-2px); box-shadow: var(--shadow-card); border-color: var(--color-primary-soft); }
.tile__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: var(--radius-md);
  background: var(--color-primary-soft);
  color: var(--color-primary);
}
.tile p { font-size: 15px; line-height: 1.5; color: var(--color-text); }
.tile p strong { font-weight: 700; }

/* Цветные подложки для tile-иконок (как в ЛК) */
.tile__icon--blue   { background: var(--tile-blue);   color: var(--tile-blue-2); }
.tile__icon--purple { background: var(--tile-purple); color: var(--tile-purple-2); }
.tile__icon--mint   { background: var(--tile-mint);   color: var(--tile-mint-2); }
.tile__icon--pink   { background: var(--tile-pink);   color: var(--tile-pink-2); }
.tile__icon--orange { background: var(--tile-orange); color: var(--tile-orange-2); }

/* ============================================================
   FEATURES (Что получает партнёр)
============================================================ */
.features { gap: 20px; }
.feature {
  background: var(--color-surface);
  border: 1px solid var(--color-border-soft);
  border-radius: var(--radius-lg);
  padding: 28px 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  box-shadow: var(--shadow-soft);
  transition: transform .2s ease, box-shadow .2s ease;
}
.feature:hover { transform: translateY(-2px); box-shadow: var(--shadow-card); }
.feature__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: var(--color-primary-soft);
  color: var(--color-primary);
  margin-bottom: 4px;
}
.feature h3 { font-size: 17px; font-weight: 700; }
.feature p { font-size: 14px; color: var(--color-text-muted); line-height: 1.5; }

.feature__icon--blue   { background: var(--tile-blue);   color: var(--tile-blue-2); }
.feature__icon--purple { background: var(--tile-purple); color: var(--tile-purple-2); }
.feature__icon--mint   { background: var(--tile-mint);   color: var(--tile-mint-2); }
.feature__icon--pink   { background: var(--tile-pink);   color: var(--tile-pink-2); }
.feature__icon--orange { background: var(--tile-orange); color: var(--tile-orange-2); }

/* ============================================================
   STEPS
============================================================ */
.steps {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 24px;
  position: relative;
}
.steps::before {
  content: "";
  position: absolute;
  top: 22px;
  left: 7%;
  right: 7%;
  height: 2px;
  background: var(--color-primary-soft);
  z-index: 0;
}
.step {
  position: relative;
  z-index: 1;
  background: var(--color-bg);
  padding: 8px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.step__num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--color-primary);
  color: #fff;
  font-weight: 700;
  font-size: 16px;
  box-shadow: 0 4px 14px rgba(30,64,243,0.3);
}
.step__title { font-size: 17px; font-weight: 700; line-height: 1.3; }
.step__text { font-size: 14px; color: var(--color-text-muted); line-height: 1.5; }

/* ============================================================
   ADVANTAGES
============================================================ */
.advantages { gap: 20px; }
.advantage {
  background: var(--color-surface);
  border: 1px solid var(--color-border-soft);
  border-radius: var(--radius-lg);
  padding: 28px 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  box-shadow: var(--shadow-soft);
}
.advantage__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: var(--radius-md);
  background: var(--color-primary-soft);
  color: var(--color-primary);
  margin-bottom: 4px;
}
.advantage h3 { font-size: 17px; font-weight: 700; }
.advantage p { font-size: 14px; color: var(--color-text-muted); line-height: 1.5; }

/* ============================================================
   CABINET BLOCK + CAROUSEL
============================================================ */
.cabinet {
  display: grid;
  grid-template-columns: 1fr 1.25fr;
  gap: 64px;
  align-items: center;
}
.cabinet__text .section__title { font-size: 36px; }
.cabinet__list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin: 32px 0;
}
.cabinet__list li { display: flex; align-items: center; font-size: 15px; }

.cabinet__visual { position: relative; }
.cabinet__glow {
  position: absolute;
  top: 10%;
  left: -5%;
  width: 60%;
  height: 80%;
  background: radial-gradient(closest-side, rgba(30,64,243,0.18), transparent);
  pointer-events: none;
  z-index: 0;
}

.browser-frame {
  position: relative;
  z-index: 1;
  background: var(--color-surface);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--color-border);
}
.browser-frame__bar {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 12px 16px;
  background: var(--color-surface-soft);
  border-bottom: 1px solid var(--color-border-soft);
  position: relative;
}
.browser-frame__bar > span {
  width: 10px; height: 10px; border-radius: 50%;
  background: #d4d9e3;
}
.browser-frame__bar > span:nth-child(1) { background: #ff5f57; }
.browser-frame__bar > span:nth-child(2) { background: #febc2e; }
.browser-frame__bar > span:nth-child(3) { background: #28c840; }
.browser-frame__url {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  font-size: 12px;
  color: var(--color-text-muted);
  background: var(--color-surface);
  border: 1px solid var(--color-border-soft);
  padding: 4px 12px;
  border-radius: var(--radius-full);
}
.browser-frame img { width: 100%; height: auto; display: block; }

/* Carousel */
.screens-carousel {
  position: relative;
  z-index: 1;
}
.screens-carousel__track {
  position: relative;
  /* aspect-ratio для удержания высоты при absolute-наложении слайдов */
  aspect-ratio: 16 / 10;
}
.screens-carousel__slide {
  position: absolute;
  inset: 0;
  margin: 0;
  opacity: 0;
  visibility: hidden;
  transform: translateX(8px);
  transition: opacity .25s ease, transform .35s ease, visibility 0s linear .35s;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.screens-carousel__slide.is-active {
  opacity: 1;
  visibility: visible;
  transform: translateX(0);
  transition: opacity .25s ease, transform .35s ease, visibility 0s linear 0s;
}
.screens-carousel__slide .browser-frame { flex-grow: 1; }
.screens-carousel__slide figcaption {
  text-align: center;
  font-size: 13px;
  color: var(--color-text-muted);
  padding-top: 6px;
}

.screens-carousel__arrow {
  position: absolute;
  top: 42%;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #fff;
  border: 1px solid var(--color-border);
  color: var(--color-primary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-card);
  z-index: 5;
  transition: background-color .2s ease, transform .2s ease;
}
.screens-carousel__arrow:hover { background: var(--color-primary); color: #fff; transform: scale(1.05); }
.screens-carousel__arrow--prev { left: -22px; }
.screens-carousel__arrow--next { right: -22px; }

.screens-carousel__dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 14px;
}
.screens-carousel__dots .dot {
  width: 8px;
  height: 8px;
  padding: 0;
  border: none;
  border-radius: 50%;
  background: var(--color-text-soft);
  opacity: 0.4;
  cursor: pointer;
  transition: background-color .2s ease, opacity .2s ease, transform .2s ease;
}
.screens-carousel__dots .dot:hover { opacity: 0.8; }
.screens-carousel__dots .dot.is-active {
  background: var(--color-primary);
  opacity: 1;
  transform: scale(1.4);
}

/* ============================================================
   PAYOUTS
============================================================ */
.payouts-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-bottom: 32px;
}
.payouts-list li {
  display: flex;
  align-items: flex-start;
  padding: 18px 24px;
  background: var(--color-surface);
  border: 1px solid var(--color-border-soft);
  border-radius: var(--radius-md);
  font-size: 16px;
  box-shadow: var(--shadow-soft);
}
.payouts-list li .check { margin-top: 2px; }

.payouts-note {
  display: flex;
  gap: 16px;
  padding: 20px 24px;
  background: var(--color-primary-soft);
  border: 1px solid rgba(30, 64, 243, 0.18);
  border-radius: var(--radius-lg);
  color: var(--color-text);
}
.payouts-note svg { color: var(--color-primary); flex-shrink: 0; margin-top: 2px; }
.payouts-note p { font-size: 14px; line-height: 1.6; color: var(--color-text-muted); }

/* ============================================================
   TRANSPARENCY
============================================================ */
.transparency-list {
  max-width: 720px;
  margin: 0 auto 32px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.transparency-list li {
  display: flex;
  align-items: flex-start;
  padding: 18px 24px;
  background: var(--color-surface);
  border: 1px solid var(--color-border-soft);
  border-radius: var(--radius-md);
  font-size: 16px;
  box-shadow: var(--shadow-soft);
}
.transparency-list li .check { margin-top: 2px; }

.transparency-outro {
  max-width: 720px;
  margin: 0 auto;
  text-align: center;
  font-size: 17px;
  font-style: italic;
  color: var(--color-text-muted);
  line-height: 1.6;
}

/* ============================================================
   FAQ
============================================================ */
.faq { display: flex; flex-direction: column; gap: 12px; }
.faq__item {
  background: var(--color-surface);
  border: 1px solid var(--color-border-soft);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-soft);
  overflow: hidden;
  transition: border-color .2s ease;
}
.faq__item[open] { border-color: var(--color-primary-soft); }
.faq__item summary {
  padding: 20px 24px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  color: var(--color-text);
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary::after {
  content: "";
  width: 10px;
  height: 10px;
  border-right: 2px solid var(--color-primary);
  border-bottom: 2px solid var(--color-primary);
  transform: rotate(45deg);
  transition: transform .25s ease;
  flex-shrink: 0;
}
.faq__item[open] summary::after { transform: rotate(-135deg); }
.faq__answer {
  padding: 0 24px 20px;
  font-size: 15px;
  line-height: 1.6;
  color: var(--color-text-muted);
}

/* ============================================================
   FINAL CTA
============================================================ */
.final-cta {
  padding: 96px 0;
  background: linear-gradient(135deg, var(--color-primary-soft) 0%, var(--color-bg) 100%);
  position: relative;
  overflow: hidden;
}
.final-cta::before {
  content: "";
  position: absolute;
  top: -200px; right: -200px;
  width: 600px; height: 600px;
  background: radial-gradient(closest-side, rgba(34, 197, 94, 0.08), transparent);
  pointer-events: none;
}
.final-cta__inner {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 64px;
  align-items: center;
  position: relative;
  z-index: 1;
}
.final-cta__text { max-width: 560px; }
.final-cta__badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--color-accent);
  color: #fff;
  margin-bottom: 20px;
  box-shadow: 0 6px 18px rgba(34, 197, 94, 0.35);
}
.final-cta__text .section__title { font-size: 36px; }
.lead-form--compact {
  background: var(--color-surface);
  padding: 28px;
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--color-border-soft);
}

/* ============================================================
   FOOTER
============================================================ */
.footer {
  background: #0F172A;
  color: #cbd5e1;
  padding: 64px 0 28px;
}
.footer__inner {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1.2fr 1.4fr;
  gap: 40px;
}
.footer__logo {
  display: inline-block;
  background: #FFFFFF;
  padding: 10px 16px;
  border-radius: 14px;
  margin-bottom: 14px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.18);
}
.footer__logo img {
  height: 36px;
  width: auto;
  display: block;
  border-radius: 4px;
}
.footer__tagline {
  font-size: 12px;
  color: #22C55E;
  font-weight: 600;
  letter-spacing: 0.04em;
  margin-bottom: 14px;
  text-transform: uppercase;
}
.footer__desc { font-size: 14px; color: #94a3b8; line-height: 1.6; }

.footer__title {
  font-size: 14px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 16px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.footer__list { display: flex; flex-direction: column; gap: 10px; }
.footer__list a { font-size: 14px; color: #94a3b8; transition: color .2s ease; }
.footer__list a:hover { color: #fff; }

.footer__info {
  font-style: normal;
  font-size: 13px;
  color: #94a3b8;
  line-height: 1.7;
}
.footer__info p { margin-bottom: 4px; }
.footer__info a { color: #cbd5e1; }
.footer__info a:hover { color: #fff; }
.footer__info strong { color: #fff; }

.footer__bottom {
  margin-top: 48px;
  padding-top: 24px;
  border-top: 1px solid rgba(255,255,255,0.08);
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 24px;
  flex-wrap: wrap;
}
.footer__copy { font-size: 13px; color: #64748b; }
.footer__disclaimer {
  font-size: 12px;
  color: #64748b;
  max-width: 600px;
  line-height: 1.5;
}

/* ============================================================
   COOKIE BANNER
============================================================ */
.cookie-banner {
  position: fixed;
  bottom: 20px;
  left: 20px;
  right: 20px;
  z-index: 200;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  max-width: 720px;
  margin: 0 auto;
  animation: cookieSlide .35s ease-out;
}
@keyframes cookieSlide {
  from { transform: translateY(20px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}
.cookie-banner__inner {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 24px;
  padding: 20px 24px;
  align-items: center;
}
.cookie-banner__text p:first-child { margin-bottom: 4px; font-weight: 600; color: var(--color-text); }
.cookie-banner__text p { font-size: 13px; color: var(--color-text-muted); line-height: 1.5; }
.cookie-banner__text a { color: var(--color-primary); text-decoration: underline; }
.cookie-banner__actions { display: flex; gap: 10px; flex-shrink: 0; }
.cookie-banner__actions .btn { padding: 10px 18px; font-size: 14px; }

/* ============================================================
   MODAL
============================================================ */
.modal {
  position: fixed;
  inset: 0;
  z-index: 300;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.modal[hidden] { display: none; }
.modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.5);
  backdrop-filter: blur(4px);
  animation: fadeIn .2s ease;
}
@keyframes fadeIn { from {opacity:0} to {opacity:1} }
.modal__dialog {
  position: relative;
  background: var(--color-surface);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  max-width: 800px;
  width: 100%;
  max-height: 88vh;
  display: flex;
  flex-direction: column;
  animation: modalSlide .25s ease-out;
}
@keyframes modalSlide {
  from { transform: translateY(20px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}
.modal__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
  border-bottom: 1px solid var(--color-border-soft);
  gap: 16px;
}
.modal__header h2 { font-size: 20px; font-weight: 700; }
.modal__close {
  background: transparent;
  border: none;
  padding: 6px;
  border-radius: var(--radius-sm);
  color: var(--color-text-muted);
  transition: background-color .2s ease, color .2s ease;
}
.modal__close:hover { background: var(--color-surface-soft); color: var(--color-text); }
.modal__body {
  overflow-y: auto;
  padding: 24px;
  font-size: 14px;
  line-height: 1.65;
  color: var(--color-text);
  flex-grow: 1;
}
.modal__body h3 { font-size: 16px; font-weight: 700; margin: 20px 0 10px; color: var(--color-text); }
.modal__body p { margin-bottom: 10px; color: var(--color-text-muted); }
.modal__body ul { padding-left: 18px; margin-bottom: 12px; list-style: disc; }
.modal__body ul li { color: var(--color-text-muted); margin-bottom: 4px; }
.modal__body a { color: var(--color-primary); text-decoration: underline; }
.modal__deflist dt { font-weight: 700; color: var(--color-text); margin: 12px 0 4px; }
.modal__deflist dd { margin: 0 0 8px; color: var(--color-text-muted); }
.modal__footer {
  padding: 16px 24px;
  border-top: 1px solid var(--color-border-soft);
  display: flex;
  justify-content: flex-end;
}
body.modal-open { overflow: hidden; }

/* ============================================================
   RESPONSIVE
============================================================ */
@media (max-width: 1200px) {
  .header__nav a { font-size: 13px; }
  .header__nav { gap: 18px; margin-left: 8px; }
  .header__actions .btn { padding: 8px 14px; font-size: 13px; }
}
@media (max-width: 1100px) {
  .header__nav { display: none; }
}

@media (max-width: 1024px) {
  .section { padding: 72px 0; }
  .section__title { font-size: 32px; }
  .hero { padding: 48px 0 72px; }
  .hero__title { font-size: 40px; }
  .hero__inner { grid-template-columns: 1fr; gap: 40px; }
  .hero__form-wrap { padding: 28px; }
  .cabinet { grid-template-columns: 1fr; gap: 40px; }
  .final-cta__inner { grid-template-columns: 1fr; gap: 40px; }
  .final-cta { padding: 72px 0; }
  .grid--3 { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(5, minmax(160px, 1fr)); overflow-x: auto; padding-bottom: 8px; }
  .footer__inner { grid-template-columns: 1fr 1fr; gap: 32px; }
  .screens-carousel__arrow--prev { left: 8px; }
  .screens-carousel__arrow--next { right: 8px; }
}

@media (max-width: 768px) {
  body { font-size: 15px; }
  .section { padding: 56px 0; }
  .section__title { font-size: 28px; }
  .section__subtitle { font-size: 16px; }

  :target, [id] { scroll-margin-top: 72px; }

  .header__inner { height: 56px; gap: 10px; }
  .header__logo img { height: 28px; }
  .header__phone { display: none; }
  .header__actions .btn--ghost { display: none; }
  .header__actions { gap: 8px; }
  .header__burger { display: flex; }
  .header__actions .btn { padding: 9px 14px; font-size: 13px; }
  .mobile-menu { top: 56px; }

  .hero { padding: 32px 0 56px; }
  .hero__title { font-size: 30px; }
  .hero__subtitle { font-size: 16px; }
  .hero__cta .btn { flex: 1; min-width: 0; }

  .grid--3 { grid-template-columns: 1fr; }

  .steps { grid-template-columns: 1fr; gap: 16px; }
  .steps::before { display: none; }
  .step {
    flex-direction: row;
    align-items: flex-start;
    gap: 16px;
    padding: 16px;
    background: var(--color-surface);
    border-radius: var(--radius-md);
    border: 1px solid var(--color-border-soft);
  }
  .step__num { flex-shrink: 0; width: 40px; height: 40px; font-size: 14px; }

  .cabinet__text .section__title { font-size: 28px; }
  .final-cta__text .section__title { font-size: 26px; }
  .final-cta { padding: 56px 0; }

  /* Карусель: стрелки внизу */
  .screens-carousel__arrow {
    top: auto;
    bottom: -56px;
    transform: none;
  }
  .screens-carousel__arrow--prev { left: 30%; }
  .screens-carousel__arrow--next { right: 30%; }
  .screens-carousel__dots { margin-top: 60px; }

  .footer__inner { grid-template-columns: 1fr; gap: 32px; }
  .footer__bottom { flex-direction: column; gap: 12px; }

  .cookie-banner { left: 12px; right: 12px; bottom: 12px; border-radius: var(--radius-md); }
  .cookie-banner__inner { grid-template-columns: 1fr; gap: 12px; padding: 16px 18px; }
  .cookie-banner__actions { flex-direction: column-reverse; }
  .cookie-banner__actions .btn { width: 100%; }

  .modal { padding: 0; }
  .modal__dialog { max-height: 100vh; height: 100vh; border-radius: 0; }

  .lead-form--compact { padding: 20px; }
  .hero__form-wrap { padding: 20px; }
}

@media (max-width: 480px) {
  .hero__title { font-size: 26px; }
  .section__title { font-size: 24px; }
  .lead-form__title { font-size: 18px; }
  .screens-carousel__arrow--prev { left: 20%; }
  .screens-carousel__arrow--next { right: 20%; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
