/* ============================================================
   АС продаж — дизайн-система
   Фирменный стиль из КП и презентаций: глубокий изумрудно-
   бирюзовый фон + золотые акценты, тонкие золотые рамки.
   ============================================================ */

:root {
  --space-1: 8px;
  --space-2: 16px;
  --space-3: 24px;
  --space-4: 32px;
  --space-5: 48px;
  --space-6: 64px;
  --space-7: 96px;
  --space-8: 128px;

  --radius-s: 8px;
  --radius-m: 14px;
  --radius-l: 22px;

  --header-h-mobile: 72px;

  --font-main: 'Manrope', 'Segoe UI', system-ui, sans-serif;

  /* Фирменное золото (из логотипа «АС продаж») */
  --gold-1: #c08a3e;
  --gold-2: #e0b878;
  --gold-3: #ecd29a;
  --gold-grad: linear-gradient(115deg, var(--gold-1) 0%, var(--gold-2) 55%, var(--gold-3) 100%);
}

/* Тёмная тема — основной фирменный образ (как в презентациях) */
[data-theme="dark"] {
  --c-bg: #04262e;
  --c-surface: #073540;
  --c-surface-2: #0a3f4c;
  --c-text: #f4efe3;
  --c-muted: #b9c9cb;
  --c-accent: #e0b878;
  --c-accent-strong: #ecd29a;
  --c-accent-soft: rgba(224, 184, 120, 0.14);
  --c-border: rgba(224, 184, 120, 0.32);
  --c-hero-grad-1: #01202a;
  --c-hero-grad-2: #0b4a59;
  --c-on-accent: #072830;
  --shadow-card: 0 6px 24px rgba(0, 10, 14, 0.35);
  --shadow-card-hover: 0 12px 36px rgba(0, 10, 14, 0.55);
}

/* Светлая тема — слоновая кость + изумрудный текст + золото */
[data-theme="light"] {
  --c-bg: #f6f3ea;
  --c-surface: #fffdf6;
  --c-surface-2: #eee8d8;
  --c-text: #0d3038;
  --c-muted: #48626a;
  --c-accent: #7d571c;
  --c-accent-strong: #5f4212;
  --c-accent-soft: #f1e3c4;
  --c-border: #dcd0b4;
  --c-hero-grad-1: #01202a;
  --c-hero-grad-2: #0b4a59;
  --c-on-accent: #072830;
  --shadow-card: 0 6px 24px rgba(56, 44, 12, 0.08);
  --shadow-card-hover: 0 12px 36px rgba(56, 44, 12, 0.14);
}

/* ---------- База ---------- */

*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
  width: 100%;
  max-width: 100%;
}

body {
  margin: 0;
  font-family: var(--font-main);
  font-size: clamp(16px, 1vw + 14px, 18px);
  line-height: 1.6;
  color: var(--c-text);
  background-color: var(--c-bg);
  transition: background-color 0.3s, color 0.3s;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  width: 100%;
  max-width: 100%;
  position: relative;
}

main {
  overflow-x: hidden;
  max-width: 100%;
  width: 100%;
}

section {
  max-width: 100%;
}

img { max-width: 100%; height: auto; display: block; }

a { color: var(--c-accent); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--c-accent-strong); }

h1, h2, h3, h4 {
  line-height: 1.2;
  margin: 0 0 0.6em;
  font-weight: 800;
  overflow-wrap: anywhere;
  word-break: break-word;
}
h1 { font-size: clamp(26px, 5vw, 56px); letter-spacing: -0.02em; }
h2 { font-size: clamp(22px, 3.5vw, 40px); letter-spacing: -0.01em; }
h3 { font-size: clamp(18px, 2.5vw, 28px); }

p, ul, ol { margin: 0 0 1em; }
.text-block { max-width: 65ch; }
.muted { color: var(--c-muted); }

:focus-visible {
  outline: 3px solid var(--c-accent);
  outline-offset: 2px;
  border-radius: 4px;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 200;
  background: var(--c-accent);
  color: var(--c-on-accent);
  padding: 10px 18px;
  border-radius: 0 0 var(--radius-s) 0;
}
.skip-link:focus { left: 0; color: var(--c-on-accent); }

.container {
  width: 100%;
  max-width: 1200px;
  margin-inline: auto;
  padding-inline: clamp(16px, 4vw, 32px);
  box-sizing: border-box;
}

section { padding-block: clamp(48px, 8vw, 96px); }
.section-alt { background: var(--c-surface-2); transition: background-color 0.3s; }

.section-head { max-width: 760px; margin-bottom: var(--space-5); }
.section-head .kicker {
  display: inline-block;
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--c-accent);
  margin-bottom: var(--space-1);
}
.section-head h2::after {
  content: "";
  display: block;
  width: 64px;
  height: 3px;
  margin-top: 14px;
  border-radius: 2px;
  background: var(--gold-grad);
}

/* ---------- Кнопки ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 52px;
  padding: 14px 22px;
  border: 2px solid transparent;
  border-radius: var(--radius-s);
  font-family: inherit;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.2s, color 0.2s, border-color 0.2s, transform 0.15s, box-shadow 0.2s;
  max-width: 100%;
  text-align: center;
  white-space: normal;
}
.btn:active { transform: translateY(1px); }

.btn--primary {
  background: var(--gold-grad);
  color: #072830;
  box-shadow: 0 6px 18px rgba(192, 138, 62, 0.35);
}
.btn--primary:hover { filter: brightness(1.07); color: #072830; }

.btn--ghost {
  background: transparent;
  color: var(--c-accent);
  border-color: var(--c-accent);
}
.btn--ghost:hover { background: var(--c-accent-soft); color: var(--c-accent-strong); }

.btn--light {
  background: var(--gold-grad);
  color: #072830;
}
.btn--light:hover { filter: brightness(1.07); color: #072830; }

.btn--outline-light {
  background: transparent;
  color: #f4efe3;
  border-color: rgba(224, 184, 120, 0.65);
}
.btn--outline-light:hover { border-color: var(--gold-3); background: rgba(224, 184, 120, 0.12); color: #fff; }

/* ---------- Шапка ---------- */

.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--c-surface);
  border-bottom: 1px solid var(--c-border);
  transition: background-color 0.3s;
  max-width: 100%;
}

.header__top {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: var(--header-h-mobile);
  padding-block: 8px;
  min-width: 0;
}

.header__logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--c-text);
  margin-right: auto;
  min-width: 0;
  flex: 1 1 auto;
}
.header__logo-text {
  display: flex;
  flex-direction: column;
  min-width: 0;
  max-width: 100%;
}
.header__logo-name {
  display: inline-flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 6px;
  line-height: 1.1;
  padding-bottom: 5px;
  position: relative;
  max-width: 100%;
}
.header__logo-name::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  border-radius: 2px;
  background: var(--gold-grad);
}
.logo-as {
  font-weight: 800;
  font-size: 27px;
  letter-spacing: 0.01em;
  background: var(--gold-grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.logo-word { font-weight: 700; font-size: 19px; color: var(--c-text); }
.logo-year {
  font-weight: 700;
  font-size: 15px;
  background: var(--gold-grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.header__logo-slogan { font-size: 12px; color: var(--c-muted); line-height: 1.25; margin-top: 4px; }
@media (max-width: 640px) {
  .header__logo-slogan { display: none; }
  .header__wa { display: none; }
  .logo-as { font-size: 22px; }
  .logo-word { font-size: 16px; }
  .logo-year { font-size: 13px; }
}
@media (max-width: 400px) {
  /* На узких экранах мессенджеры остаются в плавающих кнопках */
  .header__tg { display: none; }
  .logo-as { font-size: 20px; }
  .logo-word { font-size: 15px; }
  .logo-year { font-size: 12px; }
  .header__top { gap: 6px; }
}

.header__contacts { display: none; }
.header__cta { display: none; }

.icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  flex: 0 0 auto;
  border: 1px solid var(--c-border);
  border-radius: var(--radius-s);
  background: var(--c-surface);
  color: var(--c-text);
  cursor: pointer;
  text-decoration: none;
  transition: background-color 0.2s, border-color 0.2s;
}
.icon-btn:hover { background: var(--c-surface-2); color: var(--c-accent); }
.icon-btn svg { width: 22px; height: 22px; }

/* Навигация: мобильная панель по умолчанию */
.header__nav {
  position: fixed;
  inset: var(--header-h-mobile) 0 0 0;
  background: var(--c-surface);
  padding: var(--space-3) clamp(16px, 4vw, 32px) var(--space-5);
  overflow-y: auto;
  display: none;
  z-index: 99;
}
.header__nav.is-open { display: block; }

.header__nav ul {
  list-style: none;
  margin: 0 0 var(--space-4);
  padding: 0;
  display: flex;
  flex-direction: column;
}
.header__nav a {
  display: block;
  padding: 14px 4px;
  font-size: 18px;
  font-weight: 600;
  color: var(--c-text);
  text-decoration: none;
  border-bottom: 1px solid var(--c-border);
}
.header__nav a:hover, .header__nav a[aria-current="page"] { color: var(--c-accent); }

.header__nav-contacts { display: flex; flex-direction: column; gap: var(--space-2); }
.header__nav-contacts a { border: 0; padding: 0; font-size: 17px; }
.header__nav-cta { margin-top: var(--space-2); }

body.nav-open { overflow: hidden; }

/* Десктоп ≥1181px: два ряда */
@media (min-width: 1181px) {
  .burger { display: none; }
  .header__phone-icon { display: none; }

  .header__contacts {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    font-weight: 600;
  }
  .header__contacts a { color: var(--c-text); text-decoration: none; }
  .header__contacts a:hover { color: var(--c-accent); }
  .header__cta { display: inline-flex; min-height: 46px; padding: 10px 22px; font-size: 16px; }

  .header__nav {
    position: static;
    display: block;
    padding: 0;
    overflow: visible;
    border-top: 1px solid var(--c-border);
    background: transparent;
  }
  .header__nav ul {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 4px;
    margin: 0;
  }
  .header__nav a {
    padding: 12px 14px;
    font-size: 15.5px;
    border-bottom: 3px solid transparent;
  }
  .header__nav a:hover { border-bottom-color: var(--c-accent); }
  .header__nav a[aria-current="page"] { border-bottom-color: var(--c-accent); }
  .header__nav-contacts, .header__nav-cta { display: none; }
}

.burger {
  position: relative;
}
.burger span, .burger span::before, .burger span::after {
  display: block;
  width: 20px;
  height: 2px;
  background: currentColor;
  border-radius: 2px;
  transition: transform 0.25s, opacity 0.2s;
}
.burger span { position: relative; }
.burger span::before, .burger span::after { content: ""; position: absolute; left: 0; }
.burger span::before { top: -6px; }
.burger span::after { top: 6px; }
.burger[aria-expanded="true"] span { background: transparent; }
.burger[aria-expanded="true"] span::before { transform: translateY(6px) rotate(45deg); }
.burger[aria-expanded="true"] span::after { transform: translateY(-6px) rotate(-45deg); }

/* ---------- Hero ---------- */

.hero {
  background: linear-gradient(135deg, var(--c-hero-grad-1) 0%, var(--c-hero-grad-2) 100%);
  color: #ffffff;
  padding-block: clamp(56px, 9vw, 110px);
  overflow: hidden;
  max-width: 100%;
}
.hero__grid {
  display: grid;
  gap: var(--space-5);
  align-items: center;
}
@media (min-width: 900px) {
  .hero__grid { grid-template-columns: 1.15fr 0.85fr; }
}
.hero h1 { color: #ffffff; }
.hero .lead {
  font-size: clamp(17px, 1.4vw + 14px, 21px);
  color: rgba(255, 255, 255, 0.88);
  max-width: 60ch;
}
.hero__badge {
  display: inline-block;
  background: rgba(224, 184, 120, 0.12);
  border: 1px solid rgba(224, 184, 120, 0.5);
  border-radius: 100px;
  padding: 7px 18px;
  font-size: 14.5px;
  font-weight: 600;
  color: var(--gold-3);
  margin-bottom: var(--space-3);
}
.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  margin-top: var(--space-4);
}
.hero__actions .btn { flex: 1 1 auto; min-width: min(100%, 200px); }
.hero__note { margin-top: var(--space-2); font-size: 14.5px; color: rgba(255, 255, 255, 0.7); }

.hero__panel {
  background: rgba(224, 184, 120, 0.06);
  border: 1px solid rgba(224, 184, 120, 0.45);
  border-radius: var(--radius-l);
  padding: clamp(16px, 4vw, 32px);
  backdrop-filter: blur(4px);
  min-width: 0;
  max-width: 100%;
}
.hero__panel h2, .hero__panel h3 { color: var(--gold-3); font-size: 20px; }
.hero__panel ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
.hero__panel li { display: flex; gap: 12px; align-items: flex-start; color: rgba(244, 239, 227, 0.92); font-size: 16px; min-width: 0; }
.hero__panel li span { min-width: 0; overflow-wrap: anywhere; }
.hero__panel li svg { flex: 0 0 auto; width: 22px; height: 22px; margin-top: 2px; color: var(--gold-2); }

/* Широкая панель преимуществ под hero-сеткой */
.hero__panel--wide { margin-top: var(--space-5); }
.hero__panel--wide ul {
  grid-template-columns: 1fr;
  gap: 12px;
}
@media (min-width: 640px) {
  .hero__panel--wide ul {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px 24px;
  }
}
@media (min-width: 1024px) {
  .hero__panel--wide ul {
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  }
}

.hero__grid > * { min-width: 0; }

/* Фото основателя в hero */
.hero__photo {
  max-width: 460px;
  width: 100%;
  margin-inline: auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.hero__photo img {
  width: 100%;
  height: auto;
  max-height: 420px;
  object-fit: cover;
  object-position: top center;
  border-radius: var(--radius-l);
  border: 1px solid rgba(224, 184, 120, 0.45);
  box-shadow: 0 16px 44px rgba(0, 10, 14, 0.45);
}
@media (min-width: 900px) {
  .hero__photo { justify-self: end; margin-inline: 0; }
  .hero__photo img { max-height: 540px; }
}
.hero__photo-caption {
  border: 1px solid rgba(224, 184, 120, 0.5);
  border-radius: var(--radius-m);
  padding: 12px 14px;
  font-size: 14px;
  line-height: 1.4;
  color: rgba(244, 239, 227, 0.9);
  background: rgba(224, 184, 120, 0.08);
  text-align: center;
}
.hero__photo-caption strong {
  display: block;
  color: var(--gold-3);
  font-size: 16px;
  margin-bottom: 2px;
}
.hero__photo-caption span { display: block; }

/* ---------- Карточки ---------- */

.cards {
  display: grid;
  gap: var(--space-3);
  min-width: 0;
}
@media (min-width: 768px) { .cards--2 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 768px) { .cards--3 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .cards--3 { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 768px) { .cards--4 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .cards--4 { grid-template-columns: repeat(4, 1fr); } }

.card {
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: var(--radius-m);
  padding: var(--space-4);
  box-shadow: var(--shadow-card);
  transition: box-shadow 0.25s, transform 0.25s, background-color 0.3s;
  display: flex;
  flex-direction: column;
  min-width: 0;
  max-width: 100%;
  overflow-wrap: anywhere;
}
@media (hover: hover) {
  .card:hover { box-shadow: var(--shadow-card-hover); transform: translateY(-4px); }
}
.card__icon {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: var(--c-accent-soft);
  border: 1.5px solid var(--c-accent);
  color: var(--c-accent);
  display: grid;
  place-items: center;
  margin-bottom: var(--space-2);
}
.card__icon svg { width: 26px; height: 26px; }
.card h3 { font-size: 20px; }
.card h3 a { color: var(--c-text); text-decoration: none; }
.card h3 a:hover { color: var(--c-accent); }
.card p { color: var(--c-muted); font-size: 16px; flex-grow: 1; }
.card__link {
  font-weight: 700;
  font-size: 16px;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

/* ---------- Статистика ---------- */

.stats {
  display: grid;
  gap: var(--space-3);
  grid-template-columns: repeat(2, 1fr);
}
@media (min-width: 900px) { .stats { grid-template-columns: repeat(4, 1fr); } }
.stat { text-align: center; padding: var(--space-3) var(--space-2); }
.stat__value {
  font-size: clamp(30px, 4vw, 46px);
  font-weight: 800;
  color: var(--c-accent);
  line-height: 1.1;
}
.stat__label { color: var(--c-muted); font-size: 15px; margin-top: 6px; }

/* ---------- Шаги процесса ---------- */

.steps { display: grid; gap: var(--space-3); counter-reset: step; }
@media (min-width: 768px) { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .steps--3 { grid-template-columns: repeat(3, 1fr); } }
.step {
  counter-increment: step;
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: var(--radius-m);
  padding: var(--space-4);
  position: relative;
}
.step::before {
  content: "0" counter(step);
  display: block;
  font-size: 15px;
  font-weight: 800;
  color: var(--c-accent);
  letter-spacing: 0.06em;
  margin-bottom: var(--space-1);
}
.step h3 { font-size: 19px; }
.step p { color: var(--c-muted); font-size: 15.5px; margin: 0; }

/* ---------- Списки с галочками ---------- */

.checklist { list-style: none; padding: 0; display: grid; gap: 14px; }
.checklist li { display: flex; gap: 12px; align-items: flex-start; }
.checklist li svg { flex: 0 0 auto; width: 22px; height: 22px; color: var(--c-accent); margin-top: 3px; }
@media (min-width: 768px) { .checklist--2col { grid-template-columns: repeat(2, 1fr); } }

/* ---------- Таблица сравнения ---------- */

.compare-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  max-width: 100%;
  margin-inline: 0;
}
.compare {
  width: 100%;
  min-width: 520px;
  border-collapse: collapse;
  background: var(--c-surface);
  border-radius: var(--radius-m);
  box-shadow: var(--shadow-card);
}
.compare th, .compare td {
  padding: 14px 18px;
  text-align: left;
  border-bottom: 1px solid var(--c-border);
  font-size: 15.5px;
  vertical-align: top;
}
.compare thead th {
  background: var(--gold-grad);
  color: #072830;
  font-size: 15px;
}
.compare tbody tr:last-child td { border-bottom: 0; }
.compare td:first-child { font-weight: 600; }

/* ---------- FAQ ---------- */

.faq { max-width: 820px; }
.faq details {
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: var(--radius-m);
  margin-bottom: var(--space-2);
  overflow: hidden;
}
.faq summary {
  cursor: pointer;
  list-style: none;
  padding: 18px 52px 18px 22px;
  font-weight: 700;
  font-size: 17px;
  position: relative;
  min-height: 44px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "";
  position: absolute;
  right: 20px;
  top: 50%;
  width: 12px;
  height: 12px;
  border-right: 2px solid var(--c-accent);
  border-bottom: 2px solid var(--c-accent);
  transform: translateY(-70%) rotate(45deg);
  transition: transform 0.25s;
}
.faq details[open] summary::after { transform: translateY(-30%) rotate(-135deg); }
.faq details > div { padding: 0 22px 20px; color: var(--c-muted); }

/* ---------- CTA-секция ---------- */

.cta-section {
  background: linear-gradient(135deg, var(--c-hero-grad-1) 0%, var(--c-hero-grad-2) 100%);
  color: #fff;
}
.cta-section h2 { color: #fff; }
.cta-section .cta-sub { color: rgba(255, 255, 255, 0.85); max-width: 62ch; }
.cta-section__grid { display: grid; gap: var(--space-5); min-width: 0; }
@media (min-width: 900px) { .cta-section__grid { grid-template-columns: 1fr 1fr; align-items: start; } }
.cta-section__grid > * { min-width: 0; }
.cta-section .checklist { margin-top: var(--space-3); }
.cta-section .checklist li { color: rgba(244, 239, 227, 0.9); }
.cta-section .checklist li svg { color: var(--gold-2); }
.cta-section h2 { overflow-wrap: anywhere; }

/* ---------- Формы ---------- */

.form {
  background: var(--c-surface);
  border-radius: var(--radius-l);
  padding: clamp(16px, 4vw, 32px);
  box-shadow: var(--shadow-card);
  color: var(--c-text);
  min-width: 0;
  max-width: 100%;
}
.form__row { margin-bottom: var(--space-2); }
.form label {
  display: block;
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 6px;
}
.form input[type="text"],
.form input[type="tel"],
.form input[type="email"],
.form input[type="password"],
.form input[type="file"],
.form textarea {
  width: 100%;
  font-family: inherit;
  font-size: 16px;
  padding: 13px 16px;
  border: 1px solid var(--c-border);
  border-radius: var(--radius-s);
  background: var(--c-bg);
  color: var(--c-text);
  transition: border-color 0.2s;
}
.form input:focus, .form textarea:focus {
  outline: none;
  border-color: var(--c-accent);
  box-shadow: 0 0 0 3px var(--c-accent-soft);
}
.form textarea { resize: vertical; min-height: 96px; }

.form .consent {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-size: 13.5px;
  color: var(--c-muted);
  font-weight: 400;
}
.form .consent input {
  width: 20px;
  height: 20px;
  margin-top: 2px;
  flex: 0 0 auto;
  accent-color: var(--c-accent);
}
.form .form__status { font-size: 15px; font-weight: 600; min-height: 1.4em; margin-top: var(--space-1); }
.form .form__status.ok { color: #1d8a4e; }
[data-theme="dark"] .form .form__status.ok { color: #5fd695; }
.form .form__status.err { color: #c0392b; }
[data-theme="dark"] .form .form__status.err { color: #ff8a7a; }

/* ---------- Popup ---------- */

.popup-overlay {
  position: fixed;
  inset: 0;
  background: rgba(10, 20, 35, 0.6);
  z-index: 150;
  display: none;
  align-items: center;
  justify-content: center;
  padding: var(--space-2);
}
.popup-overlay.is-open { display: flex; }
.popup {
  width: 100%;
  max-width: 480px;
  max-height: 92vh;
  overflow-y: auto;
  position: relative;
}
.popup__close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 44px;
  height: 44px;
  border: 0;
  background: transparent;
  color: var(--c-muted);
  font-size: 26px;
  line-height: 1;
  cursor: pointer;
  border-radius: var(--radius-s);
}
.popup__close:hover { color: var(--c-text); background: var(--c-surface-2); }

/* ---------- Float-кнопки ---------- */

.float-actions {
  position: fixed;
  right: 12px;
  bottom: 12px;
  z-index: 120;
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: bottom 0.3s;
}
body.has-cookie-banner .float-actions { bottom: 150px; }
@media (min-width: 768px) {
  .float-actions { right: 16px; bottom: 16px; }
  body.has-cookie-banner .float-actions { bottom: 110px; }
}
.float-btn {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: #fff;
  border: 0;
  cursor: pointer;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.25);
  text-decoration: none;
  transition: transform 0.2s;
}
.float-btn:hover { transform: scale(1.08); color: #fff; }
.float-btn svg { width: 26px; height: 26px; }
.float-btn--wa { background: #25D366; }
.float-btn--tg { background: #229ED9; }
.float-btn--phone { background: var(--gold-grad); color: #072830; }
.float-btn--phone:hover { color: #072830; }
.float-btn--top {
  background: var(--c-surface);
  color: var(--c-accent);
  border: 1px solid var(--c-border);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s, visibility 0.3s, transform 0.2s;
}
.float-btn--top.is-visible { opacity: 1; visibility: visible; }
.float-btn--top:hover { color: var(--c-accent); }

/* ---------- Cookie-баннер ---------- */

.cookie-banner {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 140;
  background: var(--c-surface);
  border-top: 1px solid var(--c-border);
  box-shadow: 0 -8px 30px rgba(0, 0, 0, 0.12);
  padding: var(--space-2) 0;
  max-width: 100%;
}
.cookie-banner__inner {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}
@media (min-width: 768px) {
  .cookie-banner__inner { flex-direction: row; align-items: center; }
  .cookie-banner__inner p { flex: 1; }
}
.cookie-banner p { margin: 0; font-size: 14px; color: var(--c-muted); }
.cookie-banner__actions { display: flex; gap: var(--space-1); flex-wrap: wrap; }
.cookie-banner__actions .btn { min-height: 44px; padding: 10px 20px; font-size: 15px; }

/* ---------- Футер ---------- */

.footer {
  background: var(--c-hero-grad-1);
  color: rgba(255, 255, 255, 0.85);
  padding-block: var(--space-6) var(--space-3);
  font-size: 15px;
}
.footer a { color: rgba(255, 255, 255, 0.85); text-decoration: none; }
.footer a:hover { color: #fff; text-decoration: underline; }
.footer__grid {
  display: grid;
  gap: var(--space-4);
  margin-bottom: var(--space-5);
}
@media (min-width: 768px) { .footer__grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .footer__grid { grid-template-columns: 1.3fr 1fr 1fr 1fr; } }
.footer h3 { color: #fff; font-size: 16.5px; margin-bottom: var(--space-2); }
.footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.footer__brand p { color: rgba(255, 255, 255, 0.65); max-width: 40ch; }
.footer__bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  padding-top: var(--space-3);
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  justify-content: space-between;
  font-size: 13.5px;
  color: rgba(255, 255, 255, 0.55);
}

/* ---------- SEO-текст ---------- */

.seo-text { font-size: 16px; color: var(--c-muted); }
.seo-text h2, .seo-text h3 { color: var(--c-text); }
.seo-text .seo-more { display: none; }
.seo-text.is-expanded .seo-more { display: block; }
.seo-text__toggle { margin-top: var(--space-2); }
@media (min-width: 768px) {
  .seo-text .seo-more { display: block; }
  .seo-text__toggle { display: none; }
}

/* ---------- Хлебные крошки ---------- */

.breadcrumbs {
  padding-block: var(--space-2) 0;
  font-size: 14px;
  color: var(--c-muted);
}
.breadcrumbs ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.breadcrumbs li + li::before { content: "/"; margin-right: 6px; color: var(--c-border); }
.breadcrumbs a { color: var(--c-muted); }

/* ---------- Анимации появления ---------- */

.reveal {
  opacity: 0;
  transform: translate3d(0, 20px, 0);
  transition: opacity 0.6s ease, transform 0.6s ease;
  max-width: 100%;
}
.reveal.is-visible { opacity: 1; transform: translate3d(0, 0, 0); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .reveal { opacity: 1; transform: none; }
}

/* ---------- Вспомогательное ---------- */

.founder-quote {
  display: grid;
  gap: var(--space-4);
  align-items: center;
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: var(--radius-l);
  padding: clamp(16px, 4vw, 32px);
  box-shadow: var(--shadow-card);
  min-width: 0;
  max-width: 100%;
}
@media (min-width: 768px) { .founder-quote { grid-template-columns: 220px minmax(0, 1fr); } }
.founder-quote img { border-radius: var(--radius-m); width: 100%; max-width: 280px; margin-inline: auto; }
@media (min-width: 768px) { .founder-quote img { max-width: none; margin-inline: 0; } }
.founder-quote blockquote { margin: 0; font-size: 18px; font-style: normal; }
.founder-quote cite { display: block; margin-top: var(--space-2); font-style: normal; color: var(--c-muted); font-size: 15px; }
.founder-quote cite strong { color: var(--c-text); }

/* ---------- Кейсы (карусель) ---------- */

.cases-section {
  overflow: hidden;
}

.cases-carousel {
  position: relative;
  max-width: 920px;
  width: 100%;
  margin-inline: auto;
  overflow: hidden;
  /* без transform на родителе — иначе широкий трек ломает overflow на iOS */
}
.cases-carousel__viewport {
  overflow: hidden;
  width: 100%;
  max-width: 100%;
  touch-action: pan-y;
}
.cases-carousel__track {
  display: flex;
  width: 100%;
  transition: transform 0.45s ease;
}
.cases-carousel__slide {
  flex: 0 0 100%;
  width: 100%;
  min-width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  overflow: hidden;
}

.case-card {
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: var(--radius-l);
  padding: clamp(16px, 3vw, 28px);
  box-shadow: var(--shadow-card);
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  min-width: 0;
  max-width: 100%;
  overflow-wrap: anywhere;
  height: 100%;
}

.cases-carousel__controls {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-top: var(--space-3);
}
.cases-carousel__btn {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 1.5px solid var(--c-border);
  background: var(--c-surface);
  color: var(--c-accent);
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: background-color 0.2s, border-color 0.2s, transform 0.15s;
}
.cases-carousel__btn svg { width: 22px; height: 22px; }
.cases-carousel__btn[data-carousel-prev] svg { transform: rotate(180deg); }
.cases-carousel__btn:hover {
  border-color: var(--c-accent);
  background: var(--c-accent-soft);
}
.cases-carousel__btn:active { transform: scale(0.96); }

.cases-carousel__dots {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  align-items: center;
}
.cases-carousel__dot {
  width: 10px;
  height: 10px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: var(--c-border);
  cursor: pointer;
  transition: background-color 0.2s, transform 0.2s;
}
.cases-carousel__dot.is-active {
  background: var(--gold-2);
  transform: scale(1.25);
}
.cases-carousel__counter {
  margin: 0;
  width: 100%;
  text-align: center;
  font-size: 14px;
  font-weight: 700;
  color: var(--c-muted);
}

.case-card__head {
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: 12px 14px;
  align-items: start;
}
.case-card__icon {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 1.5px solid var(--c-accent);
  background: var(--c-accent-soft);
  color: var(--c-accent);
  display: grid;
  place-items: center;
}
.case-card__icon svg { width: 22px; height: 22px; }
.case-card__num {
  margin: 0;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--c-accent);
}
.case-card__title {
  margin: 2px 0 0;
  font-size: 18px;
  line-height: 1.25;
}
.case-card__city {
  margin: 4px 0 0;
  font-size: 14px;
  color: var(--c-muted);
}
.case-card__badge {
  grid-column: 1 / -1;
  justify-self: start;
  display: inline-block;
  padding: 6px 12px;
  border-radius: 100px;
  border: 1px solid rgba(224, 184, 120, 0.45);
  background: var(--c-accent-soft);
  color: var(--c-accent);
  font-size: 13.5px;
  font-weight: 700;
}

.case-card__cols {
  display: grid;
  gap: var(--space-2);
  min-width: 0;
}
@media (min-width: 700px) {
  .case-card__cols { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
}

.case-col h4 {
  margin: 0 0 10px;
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--c-text);
}
.case-col__mark {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  flex: 0 0 auto;
}
.case-col__mark--was { background: #b07070; }
.case-col__mark--did { background: var(--gold-2); }
.case-col__mark--result { background: #5cb88a; }
.case-col ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 8px;
}
.case-col li {
  position: relative;
  padding-left: 14px;
  font-size: 14px;
  line-height: 1.4;
  color: var(--c-muted);
}
.case-col li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--c-border);
}
.case-col--result li {
  color: var(--c-text);
  font-weight: 600;
}
.case-col--result li::before {
  background: var(--gold-2);
}

.cases-cta {
  margin-top: var(--space-4);
  text-align: center;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}
