﻿/* ========== DESIGN TOKENS ========== */
:root {
  --bg: #ffffff;
  --bg-soft: #f7f2fb;
  --bg-dark: #130716;
  --bg-darker: #050205;
  --surface: #ffffff;
  --surface-soft: #fbf7fd;
  --text: #130716;
  --text-dim: #66536f;
  --text-mute: #9b8aa4;
  --border: #d8c5e3;
  --border-soft: #ece0f1;
  --card-shadow: 0 2px 8px rgba(78, 29, 102, 0.06), 0 1px 2px rgba(78, 29, 102, 0.04);
  --card-shadow-hover: 0 8px 24px rgba(111, 43, 141, 0.14);
  --accent: #6f2b8d;
  --accent-dark: #4e1d66;
  --accent-soft: #eadcf3;
  --warm: #9b3a9a;
  --warm-soft: #f4e3f4;
  --good: #6f2b8d;
  --good-soft: #eadcf3;
  --bad: #ef4444;
  --bad-soft: #fee2e2;
  --purple: #6f2b8d;
  --purple-soft: #eadcf3;
  --pink: #9b3a9a;
  --pink-soft: #f4e3f4;
  --cyan: #2b102e;
  --cyan-soft: #efe7f2;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; overflow-x: hidden; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Inter", Roboto, sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at 75% 0%, rgba(155, 58, 154, 0.10), transparent 34rem),
    radial-gradient(circle at 0% 18%, rgba(111, 43, 141, 0.08), transparent 28rem),
    var(--bg);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: 0; background: transparent; }
input, textarea, select {
  background: var(--surface-soft);
  color: var(--text);
}
input::placeholder,
textarea::placeholder { color: var(--text-mute); }
img, svg { display: block; max-width: 100%; }

.container { max-width: 1280px; margin: 0 auto; padding: 0 32px; }
section { padding: 80px 0; }

.section-tag {
  display: inline-block;
  color: var(--accent);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 12px;
}
h1, h2, h3 { letter-spacing: -0.02em; line-height: 1.15; }
h2 { font-size: 40px; font-weight: 700; margin-bottom: 16px; }
h2 + .lead { font-size: 18px; color: var(--text-dim); max-width: 720px; margin-bottom: 48px; }

/* ========== BUTTONS ========== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 24px;
  border-radius: 12px;
  font-weight: 600;
  font-size: 15px;
  transition: transform 0.15s, box-shadow 0.15s, background 0.15s;
}
.btn-primary {
  background: var(--accent);
  color: white;
  box-shadow: 0 4px 12px rgba(111, 43, 141, 0.28);
}
.btn-primary:hover { background: var(--accent-dark); transform: translateY(-1px); }
.btn-ghost { background: var(--surface-soft); color: var(--text); }
.btn-ghost:hover { background: var(--accent-soft); }
.btn-warm {
  background: var(--warm);
  color: white;
  box-shadow: 0 4px 12px rgba(155, 58, 154, 0.28);
}
.btn-warm:hover { background: var(--accent-dark); }
.btn-outline {
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.03);
  color: var(--text);
}
.btn-outline:hover { border-color: var(--accent); color: var(--accent); }

/* ========== PROTO BANNER ========== */
.proto-banner {
  background: linear-gradient(90deg, #050205, #6f2b8d, #9b3a9a);
  color: white;
  text-align: center;
  padding: 8px 16px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.03em;
}

/* ========== HEADER (двухэтажная) ========== */
.site-header-2row {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.header-row { border-bottom: 1px solid var(--border-soft); }
.header-row:last-child { border-bottom: 0; }
.header-row-inner {
  display: flex;
  align-items: center;
  gap: 18px;
  height: 64px;
}
.header-spacer { flex: 1; }
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 18px;
  flex: 0 0 auto;
  color: var(--text);
}
.logo-img {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  object-fit: cover;
  display: block;
  box-shadow: 0 0 0 2px white, 0 6px 16px rgba(19, 7, 22, 0.14);
}
.logo-text { font-size: 17px; }
.logo-mark {
  width: 36px; height: 36px;
  background: linear-gradient(135deg, var(--accent), var(--accent-dark));
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  color: white; font-size: 18px;
}

/* Кнопка «Для бизнеса» в верхней строке */
.header-biznes {
  padding: 8px 16px;
  border-radius: 10px;
  background: var(--accent-soft);
  color: var(--accent);
  font-weight: 700;
  font-size: 14px;
  transition: background 0.15s;
}
.header-biznes:hover { background: var(--accent); color: white; }
.header-biznes.active { background: var(--accent); color: white; }

/* Соцсети в шапке — текстовые ссылки */
.header-socials-text {
  display: flex;
  align-items: center;
  gap: 18px;
}
.header-socials-text a {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-dim);
  transition: color 0.15s;
  white-space: nowrap;
}
.header-socials-text a:hover { color: var(--accent); }

/* Соцсети в шапке (круглые иконки) */
.header-socials { display: flex; gap: 6px; }
.hs-icon {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-soft);
  color: var(--text);
  font-weight: 700;
  font-size: 13px;
  transition: transform 0.15s, background 0.15s;
}
.hs-icon svg { width: 18px; height: 18px; fill: currentColor; }
.hs-icon:hover { transform: translateY(-2px); }
.hs-tg { color: #229ed9; }
.hs-tg:hover { background: #e3f4fb; }
.hs-wa { color: #25d366; }
.hs-wa:hover { background: #e0f7ea; }
.hs-max { background: var(--accent-soft); color: var(--accent); }
.hs-max:hover { background: var(--accent); color: white; }
.hs-vk { color: #0077ff; }
.hs-vk:hover { background: #e0ecff; }
.hs-2gis { background: #e0f7ea; color: #1ba84e; }
.hs-2gis:hover { background: #1ba84e; color: white; }
.hs-ig { color: #e1306c; }
.hs-ig:hover { background: #fde0ea; }
.hs-yt { color: #ff0000; }
.hs-yt:hover { background: #ffe6e6; }

.header-phone {
  font-weight: 700;
  font-size: 16px;
  color: var(--text);
}
.header-phone:hover { color: var(--accent); }
.header-contact {
  padding: 10px 20px;
  font-size: 14px;
}

/* Нижняя строка — плоская навигация */
.header-row-bottom {
  background: rgba(247, 242, 251, 0.6);
  position: relative;
  z-index: 50;
}
.main-nav-flat {
  display: flex;
  gap: 2px;
  align-items: stretch;
  min-height: 52px;
  flex-wrap: wrap;
}
.nav-flat-link {
  padding: 0 14px;
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
  white-space: nowrap;
  transition: color 0.15s, background 0.15s;
  border-radius: 8px;
}
.nav-flat-link:hover { color: var(--accent); background: rgba(111, 43, 141, 0.06); }
.nav-flat-link.active { color: var(--accent); background: var(--accent-soft); }
.nav-chev {
  font-size: 14px;
  color: var(--text-dim);
  transition: transform 0.2s, color 0.2s;
  display: inline-block;
  line-height: 1;
}
.nav-group { position: relative; display: flex; align-items: stretch; }
.nav-group .nav-flat-link { height: 100%; }
.nav-flat-link:hover .nav-chev,
.nav-flat-link.active .nav-chev { color: var(--accent); }
.nav-group:hover .nav-chev { transform: rotate(180deg); }

/* ===== Старая 1-этажная шапка (на случай, если используется в admin/документах) ===== */
header.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}
nav.main-nav {
  display: flex;
  gap: 6px;
  align-items: stretch;
  font-size: 15px;
  color: var(--text-dim);
}
nav.main-nav a:hover { color: var(--accent); }
nav.main-nav a.active { color: var(--accent); font-weight: 600; }
.nav-group {
  position: relative;
  display: flex;
  align-items: center;
}
.nav-trigger,
.nav-simple {
  min-height: 52px;
  padding: 7px 12px;
  border-radius: 12px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 1px;
  transition: background 0.15s, color 0.15s;
}
.nav-simple {
  flex-direction: row;
  align-items: center;
  min-height: auto;
}
.nav-trigger-compact {
  min-height: 44px;
  padding: 6px 10px;
}
.nav-trigger span {
  color: var(--text-dim);
  font-size: 13px;
  font-weight: 500;
  line-height: 1;
}
.nav-trigger strong {
  color: var(--text);
  font-size: 16px;
  font-weight: 600;
  line-height: 1.15;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.nav-trigger strong::after {
  content: "⌄";
  color: var(--text-dim);
  font-size: 15px;
}
.nav-group:hover .nav-trigger,
.nav-trigger.active,
.nav-simple:hover,
.nav-simple.active {
  background: var(--bg-soft);
}
.nav-group:hover .nav-trigger strong,
.nav-trigger.active strong {
  color: var(--accent);
}
.nav-dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  z-index: 120;
  width: 246px;
  padding: 7px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 0 0 14px 14px;
  box-shadow: 0 18px 38px rgba(0, 0, 0, 0.18);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  transition: opacity 0.15s, transform 0.15s, visibility 0.15s;
}
.nav-dropdown-wide { width: 270px; }
.nav-group:hover .nav-dropdown,
.nav-group:focus-within .nav-dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.nav-dropdown a {
  min-height: 38px;
  padding: 0 12px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  color: var(--text);
  font-size: 14px;
  font-weight: 500;
}
.nav-dropdown a:hover {
  background: var(--bg-soft);
  color: var(--accent);
}
.header-actions { display: flex; align-items: center; gap: 12px; }
.phone { font-weight: 700; font-size: 17px; }
.messengers { display: flex; gap: 8px; }
.messenger {
  width: 36px; height: 36px;
  border-radius: 10px;
  background: var(--bg-soft);
  display: flex; align-items: center; justify-content: center;
  transition: background 0.15s, transform 0.15s;
}
.messenger svg {
  width: 20px;
  height: 20px;
  display: block;
  fill: currentColor;
}
.messenger-telegram { color: #229ed9; }
.messenger-whatsapp { color: #25d366; }
.messenger:hover {
  background: var(--accent-soft);
  transform: translateY(-1px);
}

/* ========== BREADCRUMBS ========== */
.breadcrumbs {
  padding: 16px 0;
  font-size: 13px;
  color: var(--text-dim);
}
.breadcrumbs ul { list-style: none; display: flex; gap: 8px; flex-wrap: wrap; }
.breadcrumbs li::after { content: "›"; margin-left: 8px; color: var(--text-mute); }
.breadcrumbs li:last-child::after { display: none; }
.breadcrumbs a:hover { color: var(--accent); }
.breadcrumbs li:last-child { color: var(--text); font-weight: 500; }

/* ========== HERO ========== */
.hero {
  background:
    radial-gradient(circle at 78% 18%, rgba(155, 58, 154, 0.32), transparent 34%),
    linear-gradient(180deg, #130716 0%, #08030a 100%);
  color: white;
  padding: 48px 0 64px;
}
.hero-inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
  max-width: 880px;
}
.hero h1 {
  font-size: 56px;
  font-weight: 800;
  margin-bottom: 20px;
}
.hero h1 .highlight {
  background: linear-gradient(120deg, rgba(155, 58, 154, 0.42) 0%, rgba(111, 43, 141, 0.34) 100%);
  background-repeat: no-repeat;
  background-size: 100% 38%;
  background-position: 0 88%;
  padding: 0 4px;
}
.hero-sub { font-size: 19px; color: #d6c3df; margin-bottom: 32px; max-width: 520px; }
.hero .section-tag { color: #c9a6d8; }
.hero .btn-ghost {
  background: rgba(255, 255, 255, 0.1);
  color: white;
}
.hero .btn-ghost:hover { background: rgba(255, 255, 255, 0.16); }
.hero .btn-outline {
  border-color: rgba(255, 255, 255, 0.35);
  color: white;
  background: rgba(255, 255, 255, 0.04);
}
.hero .btn-outline:hover {
  border-color: #c9a6d8;
  color: white;
}
.hero-bullets {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px 24px;
  margin-bottom: 36px;
  max-width: 520px;
}
.hero-bullet {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 15px;
  font-weight: 500;
  color: #f8f1fb;
}
.check {
  width: 22px; height: 22px;
  border-radius: 50%;
  background: var(--good-soft);
  color: var(--good);
  display: flex; align-items: center; justify-content: center;
  font-weight: bold;
  font-size: 12px;
  flex-shrink: 0;
}
.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; }

/* Page hero (для категорий и моделей) */
.page-hero {
  background:
    radial-gradient(circle at 85% 0%, rgba(155, 58, 154, 0.2), transparent 32%),
    var(--bg-soft);
  padding: 32px 0 56px;
}
.page-hero h1 {
  font-size: 44px;
  font-weight: 800;
  margin-bottom: 16px;
}
.page-hero .lead { font-size: 18px; color: var(--text-dim); max-width: 720px; }
.page-hero-bullets {
  display: flex;
  gap: 32px;
  margin-top: 24px;
  flex-wrap: wrap;
}
.page-hero-bullets .hero-bullet { font-size: 14px; color: var(--text); }

/* Model hero (двухколоночный с фото) */
.model-hero {
  display: grid;
  grid-template-columns: 1fr 400px;
  gap: 64px;
  align-items: center;
  padding-top: 16px;
}
.model-hero .device-card {
  background: var(--surface);
  border-radius: 28px;
  padding: 48px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.28);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 160px;
  aspect-ratio: 1;
}

/* ========== CALCULATOR ========== */
.calc {
  background: var(--surface);
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 32px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.28);
}
.calc-header { margin-bottom: 24px; }
.calc-title { font-size: 22px; font-weight: 700; margin-bottom: 4px; }
.calc-sub { font-size: 14px; color: var(--text-dim); }
.calc-steps { display: flex; gap: 8px; margin-bottom: 24px; }
.calc-step-pill {
  flex: 1; height: 4px;
  background: var(--border); border-radius: 4px;
  transition: background 0.2s;
}
.calc-step-pill.active { background: var(--accent); }
.calc-step { display: none; }
.calc-step.active { display: block; }
.calc-label {
  font-size: 13px; font-weight: 600;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 12px;
}
.calc-options { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; }
.calc-option {
  padding: 14px 12px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--surface);
  text-align: left;
  font-size: 14px;
  font-weight: 500;
  color: var(--text);
  transition: all 0.15s;
  display: flex; align-items: center; gap: 10px;
}
.calc-option:hover { border-color: var(--accent); background: var(--accent-soft); }
.calc-option .ico { font-size: 18px; }
.calc-result {
  padding: 24px;
  background: linear-gradient(135deg, var(--accent), var(--accent-dark));
  border-radius: 14px;
  color: white;
}
.calc-result-label { font-size: 13px; opacity: 0.85; margin-bottom: 6px; }
.calc-result-price { font-size: 32px; font-weight: 700; margin-bottom: 4px; }
.calc-result-hint { font-size: 13px; opacity: 0.9; margin-bottom: 16px; }
.calc-result button {
  width: 100%; padding: 12px;
  background: var(--surface); color: var(--accent);
  border-radius: 10px;
  font-weight: 600; font-size: 14px;
}
.calc-back {
  display: inline-flex; align-items: center; gap: 4px;
  margin-top: 16px;
  color: var(--text-dim); font-size: 13px; font-weight: 500;
  cursor: pointer;
}
.calc-back:hover { color: var(--accent); }

/* ========== CATEGORIES GRID ========== */
.cats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.cat-card {
  background: var(--surface);
  border-radius: 18px;
  padding: 28px;
  transition: all 0.2s;
  display: block;
  border: 1px solid var(--border);
  color: inherit;
  box-shadow: var(--card-shadow);
}
.cat-card:hover {
  border-color: var(--accent);
  transform: translateY(-4px);
  box-shadow: var(--card-shadow-hover);
}
.cat-icon {
  width: 56px; height: 56px;
  border-radius: 14px;
  background: var(--accent-soft);
  color: var(--accent);
  display: flex; align-items: center; justify-content: center;
  font-size: 28px;
  margin-bottom: 16px;
}
.cat-name { font-size: 18px; font-weight: 700; margin-bottom: 6px; }
.cat-meta { font-size: 13px; color: var(--text-dim); margin-bottom: 12px; }
.cat-price { font-size: 13px; color: var(--accent); font-weight: 600; }

/* ========== MODELS GRID (3 cols) ========== */
.models-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.model-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 24px;
  transition: all 0.2s;
  display: flex;
  flex-direction: column;
  gap: 8px;
  box-shadow: var(--card-shadow);
}
.model-card:hover {
  border-color: var(--accent);
  transform: translateY(-2px);
  box-shadow: var(--card-shadow-hover);
}
.model-icon {
  font-size: 48px;
  margin-bottom: 8px;
  width: 80px; height: 80px;
  border-radius: 14px;
  background: var(--bg-soft);
  display: flex; align-items: center; justify-content: center;
}
.model-name { font-size: 18px; font-weight: 700; }
.model-meta { font-size: 13px; color: var(--text-dim); flex-grow: 1; }
.model-price {
  margin-top: 8px;
  padding-top: 14px;
  border-top: 1px solid var(--border-soft);
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.model-price .price { font-weight: 700; color: var(--accent); }
.model-price .label { font-size: 12px; color: var(--text-dim); }

/* ========== QUICK PRICE / CONSULT ========== */
.quick-price {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 32px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.24);
}
.quick-price-head {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  align-items: flex-end;
  margin-bottom: 24px;
}
.quick-price-head h2 { margin-bottom: 8px; }
.quick-search {
  position: relative;
  max-width: 640px;
}
.quick-search input {
  width: 100%;
  height: 64px;
  border: 2px solid var(--accent);
  border-radius: 999px;
  padding: 0 64px 0 24px;
  font-size: 18px;
  font-weight: 500;
  color: var(--text);
}
.quick-search input:focus { outline: 0; box-shadow: 0 0 0 4px rgba(111, 43, 141, 0.14); }
.quick-search .search-icon {
  position: absolute;
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--bg-soft);
  display: flex;
  align-items: center;
  justify-content: center;
}
.quick-results {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-top: 18px;
}
.quick-result {
  display: grid;
  grid-template-columns: 44px 1fr auto;
  gap: 12px;
  align-items: center;
  padding: 14px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--surface);
}
.quick-result-icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: var(--surface);
  display: flex;
  align-items: center;
  justify-content: center;
}
.quick-result-title { font-size: 14px; font-weight: 700; }
.quick-result-meta { font-size: 12px; color: var(--text-dim); }
.quick-result-price { color: var(--accent); font-size: 14px; font-weight: 800; white-space: nowrap; }
.consult-panel {
  margin-top: 24px;
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 24px;
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 24px;
  align-items: center;
  background: linear-gradient(180deg, var(--surface-soft), var(--bg-soft));
}
.consult-title { font-size: 22px; font-weight: 800; line-height: 1.15; margin-bottom: 8px; }
.consult-status { display: flex; align-items: center; gap: 8px; color: var(--text-dim); font-size: 14px; }
.consult-status::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--good);
}
.consult-actions {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 10px;
}
.consult-actions .btn { justify-content: center; padding: 13px 18px; }
.btn-telegram { background: #229ed9; color: white; }
.btn-telegram:hover { background: #1c8bbf; }
.btn-whatsapp { background: #25d366; color: white; }
.btn-whatsapp:hover { background: #1faa50; }
.btn-max { background: var(--accent); color: white; }
.btn-max:hover { background: var(--accent-dark); }
.btn-vk { background: #0077ff; color: white; }
.btn-vk:hover { background: #0056cc; }

/* ========== ADVANTAGES ========== */
.adv-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.adv-icon {
  width: 56px; height: 56px;
  border-radius: 14px;
  background: var(--good-soft);
  color: var(--good);
  display: flex; align-items: center; justify-content: center;
  font-size: 26px;
  margin-bottom: 16px;
}
.adv-title { font-size: 18px; font-weight: 700; margin-bottom: 8px; }
.adv-desc { font-size: 14px; color: var(--text-dim); line-height: 1.55; }

/* ========== HOW IT WORKS ========== */
.how {
  background: var(--bg-dark);
  color: white;
  border-radius: 28px;
  padding: 64px 56px;
}
.how-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px; margin-top: 48px; }
.how-num { font-size: 14px; font-weight: 600; color: #c9a6d8; margin-bottom: 12px; }
.how-title { font-size: 20px; font-weight: 700; margin-bottom: 8px; }
.how-desc { font-size: 14px; color: #d6c3df; line-height: 1.55; }
.how h2 { color: white; }
.how + .lead { color: #d6c3df; }

/* ========== PRICES TABLE ========== */
.prices-tabs {
  display: flex; gap: 4px;
  background: var(--bg-soft);
  padding: 4px;
  border-radius: 14px;
  margin-bottom: 32px;
  overflow-x: auto;
}
.price-tab {
  padding: 10px 18px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-dim);
  white-space: nowrap;
  transition: all 0.15s;
}
.price-tab.active {
  background: var(--surface);
  color: var(--text);
  font-weight: 600;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}
.prices-table {
  width: 100%;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 18px;
  overflow: hidden;
}
.prices-table table { width: 100%; border-collapse: collapse; }
.prices-table th, .prices-table td {
  text-align: left;
  padding: 18px 24px;
  border-bottom: 1px solid var(--border-soft);
}
.prices-table th {
  background: var(--bg-soft);
  font-size: 12px;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 600;
}
.prices-table tr:last-child td { border-bottom: 0; }
.prices-table td.service { font-weight: 600; }
.prices-table td.price { font-weight: 700; color: var(--accent); white-space: nowrap; text-align: right; }
.prices-table .meta { font-size: 12px; color: var(--text-dim); margin-top: 2px; font-weight: 400; }
.badge {
  display: inline-block;
  padding: 3px 8px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.badge-orig { background: var(--accent-soft); color: var(--accent-dark); }
.badge-copy { background: var(--warm-soft); color: var(--accent-dark); }
.badge-premium { background: var(--purple-soft); color: var(--purple); }

/* ========== CASES ========== */
.cases-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.case {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 18px;
  overflow: hidden;
  transition: all 0.2s;
}
.case:hover { border-color: var(--accent); box-shadow: 0 12px 32px rgba(111, 43, 141, 0.12); }
.case-photo {
  aspect-ratio: 4/3;
  position: relative;
  overflow: hidden;
}
.case-photo .split {
  position: absolute; inset: 0;
  display: grid; grid-template-columns: 1fr 1fr;
}
.case-photo .before, .case-photo .after {
  display: flex; align-items: center; justify-content: center;
  flex-direction: column; gap: 4px;
  color: white; font-size: 12px;
}
.case-photo .before { background: linear-gradient(135deg, #94a3b8, #64748b); }
.case-photo .after { background: linear-gradient(135deg, #9b3a9a, #6f2b8d); }
.case-photo .label-top {
  position: absolute;
  top: 12px;
  font-size: 11px;
  font-weight: 700;
  background: rgba(255,255,255,0.9);
  color: var(--text);
  padding: 4px 8px;
  border-radius: 6px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.case-photo .before .label-top { left: 12px; }
.case-photo .after .label-top { right: 12px; background: rgba(111, 43, 141, 0.95); color: white; }
.case-photo .device { font-size: 36px; }
.case-body { padding: 20px 22px; }
.case-title { font-size: 17px; font-weight: 700; margin-bottom: 6px; }
.case-meta { font-size: 13px; color: var(--text-dim); margin-bottom: 12px; }
.case-tags { display: flex; gap: 6px; flex-wrap: wrap; }
.case-tag {
  font-size: 12px;
  padding: 4px 10px;
  background: var(--bg-soft);
  color: var(--text-dim);
  border-radius: 6px;
  font-weight: 500;
}

/* ========== STATS ========== */
.stats {
  background: linear-gradient(135deg, var(--accent), var(--accent-dark));
  color: white;
  border-radius: 28px;
  padding: 48px 56px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
}
.stat-num {
  font-size: 48px;
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1;
  margin-bottom: 8px;
}
.stat-label { font-size: 14px; opacity: 0.85; }

/* ========== REVIEWS ========== */
.reviews-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.review {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 28px;
}
.review-stars { color: var(--warm); margin-bottom: 12px; font-size: 16px; }
.review-text { font-size: 15px; margin-bottom: 20px; line-height: 1.55; }
.review-author { display: flex; align-items: center; gap: 12px; }
.review-avatar {
  width: 40px; height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, #9b3a9a, #6f2b8d);
  color: white;
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 15px;
}
.review-name { font-weight: 600; font-size: 14px; }
.review-meta { font-size: 12px; color: var(--text-dim); }
.review-source {
  margin-left: auto;
  font-size: 12px;
  color: var(--text-mute);
  background: var(--bg-soft);
  padding: 4px 8px;
  border-radius: 6px;
}
.review-device { display: inline-block; margin-bottom: 12px; font-size: 12px; padding: 4px 10px; background: var(--bg-soft); color: var(--text-dim); border-radius: 6px; font-weight: 500; }

/* ========== MAP / CONTACTS ========== */
.map-section {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 32px;
  align-items: stretch;
}
.map {
  border-radius: 24px;
  background:
    linear-gradient(180deg, rgba(111, 43, 141, 0.06), transparent),
    repeating-linear-gradient(0deg, var(--border-soft) 0 1px, transparent 1px 32px),
    repeating-linear-gradient(90deg, var(--border-soft) 0 1px, transparent 1px 32px),
    var(--bg-soft);
  min-height: 360px;
  position: relative;
  overflow: hidden;
}
.map::after {
  content: "📍";
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -100%);
  font-size: 48px;
  filter: drop-shadow(0 4px 12px rgba(111, 43, 141, 0.42));
}
.map-label {
  position: absolute;
  top: 20px; left: 20px;
  background: var(--surface);
  padding: 8px 14px;
  border-radius: 10px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.22);
  font-size: 13px;
  font-weight: 600;
}
.route-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-top: 20px;
}
.route-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 18px;
}
.route-title { font-weight: 700; margin-bottom: 6px; }
.route-text { color: var(--text-dim); font-size: 14px; line-height: 1.5; }
.open-zone-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 40px;
  min-height: 320px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.open-zone-mark {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-bottom: 24px;
}
.open-zone-eye {
  width: 72px;
  height: 48px;
  border-radius: 50%;
  background: var(--good-soft);
  color: var(--good);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 36px;
}
.open-zone-card h3 {
  font-size: 34px;
  line-height: 1.1;
  margin: 0;
}
.open-zone-card p { color: var(--text-dim); font-size: 20px; line-height: 1.5; }

/* ========== VIDEO CARDS ========== */
.video-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.video-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 18px;
  overflow: hidden;
  transition: all 0.2s;
  cursor: pointer;
}
.video-card:hover {
  border-color: var(--accent);
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(111, 43, 141, 0.14);
}
.video-thumb {
  position: relative;
  aspect-ratio: 16/9;
  background: linear-gradient(135deg, var(--accent), var(--accent-dark));
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.video-poster {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: rgba(255,255,255,0.95);
}
.video-device { font-size: 56px; }
.video-label {
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: 600;
}
.video-play {
  position: absolute;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: rgba(255,255,255,0.9);
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  padding-left: 4px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.2);
  transition: transform 0.2s;
}
.video-card:hover .video-play {
  transform: scale(1.1);
}
.video-duration {
  position: absolute;
  bottom: 12px;
  right: 12px;
  background: rgba(0,0,0,0.7);
  color: white;
  font-size: 12px;
  font-weight: 600;
  padding: 4px 8px;
  border-radius: 6px;
  font-variant-numeric: tabular-nums;
}
.video-info {
  padding: 18px 20px;
}
.video-title {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 6px;
  line-height: 1.3;
}
.video-meta {
  font-size: 13px;
  color: var(--text-dim);
  line-height: 1.5;
}
@media (max-width: 960px) {
  .video-grid { grid-template-columns: 1fr; }
}

.contacts {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 28px;
}
.contact-block {
  padding: 16px 0;
  border-bottom: 1px solid var(--border-soft);
}
.contact-block:last-child { border-bottom: 0; }
.contact-label {
  font-size: 12px;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 4px;
}
.contact-value { font-size: 15px; font-weight: 600; }
.contact-meta { font-size: 13px; color: var(--text-dim); margin-top: 2px; }

/* ========== FAQ ========== */
.faq-list { max-width: 880px; margin: 0 auto; }
details.faq {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  margin-bottom: 12px;
  overflow: hidden;
  transition: background 0.15s;
  box-shadow: var(--card-shadow);
}
details.faq[open] { border-color: var(--accent); }
details.faq summary {
  list-style: none;
  cursor: pointer;
  padding: 20px 24px;
  font-size: 17px;
  font-weight: 600;
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
}
details.faq summary::-webkit-details-marker { display: none; }
details.faq summary::after {
  content: "+";
  color: var(--accent);
  font-size: 22px;
  font-weight: 400;
  transition: transform 0.2s;
}
details.faq[open] summary::after { transform: rotate(45deg); }
details.faq > div {
  padding: 0 24px 24px;
  color: var(--text-dim);
  font-size: 15px;
  line-height: 1.6;
}

/* ========== CTA SECTION ========== */
.cta-section {
  background: var(--bg-dark);
  color: white;
  border-radius: 28px;
  padding: 64px 56px;
  display: grid;
  grid-template-columns: 1fr 420px;
  gap: 48px;
  align-items: center;
}
.cta-section h2 { color: white; }
.cta-section p { color: #d6c3df; font-size: 17px; margin-top: 12px; max-width: 520px; }
.cta-form { background: var(--surface); color: var(--text); border-radius: 18px; padding: 28px; }
.form-title { font-size: 18px; font-weight: 700; margin-bottom: 16px; }
.form-field { margin-bottom: 12px; }
.form-field label {
  display: block;
  font-size: 12px;
  color: var(--text-dim);
  margin-bottom: 6px;
  font-weight: 500;
}
.form-field input,
.form-field textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: 10px;
  font-size: 15px;
  font-family: inherit;
  transition: border-color 0.15s;
}
.form-field input:focus,
.form-field textarea:focus { outline: 0; border-color: var(--accent); }
.form-submit {
  width: 100%; padding: 14px;
  background: var(--accent);
  color: white;
  border-radius: 10px;
  font-weight: 600;
  font-size: 15px;
  margin-top: 8px;
}
.form-submit:hover { background: var(--accent-dark); }
.form-meta {
  font-size: 12px;
  color: var(--text-dim);
  margin-top: 12px;
  text-align: center;
  line-height: 1.4;
}

/* ========== FOOTER ========== */
footer.site-footer {
  background: var(--bg-dark);
  color: #d6c3df;
  padding: 64px 0 32px;
  margin-top: 80px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 48px;
}
.footer-brand p {
  color: #c9a6d8;
  font-size: 14px;
  margin-top: 12px;
  max-width: 320px;
}
.footer-col h4 {
  font-size: 13px;
  color: white;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 16px;
}
.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 10px; font-size: 14px; }
.footer-col ul a:hover { color: white; }
.footer-bottom {
  border-top: 1px solid rgba(234, 223, 240, 0.16);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  color: #aa93b5;
  flex-wrap: wrap;
  gap: 16px;
}

/* ========== TYPOGRAPHY HELPERS ========== */
.prose { max-width: 720px; }
.prose h2 { font-size: 32px; margin-top: 48px; margin-bottom: 16px; }
.prose h3 { font-size: 22px; margin-top: 32px; margin-bottom: 12px; font-weight: 700; }
.prose p { margin-bottom: 16px; font-size: 17px; color: var(--text); line-height: 1.65; }
.prose ul { margin: 16px 0 24px 24px; }
.prose li { margin-bottom: 8px; font-size: 17px; line-height: 1.6; }
.prose strong { font-weight: 700; }

/* ========== CARDS GENERIC ========== */
.info-card {
  background: var(--bg-soft);
  border-radius: 18px;
  padding: 24px;
}
.info-card.accent { background: var(--accent-soft); }
.info-card.warm { background: var(--warm-soft); }
.info-card.good { background: var(--good-soft); }

/* ========== ADMIN MOCKUP ========== */
.admin-shell {
  display: grid;
  grid-template-columns: 260px 1fr;
  min-height: 100vh;
  background: var(--bg-soft);
}
.admin-sidebar {
  background: var(--bg-dark);
  color: white;
  padding: 24px 16px;
}
.admin-sidebar .logo { color: white; margin-bottom: 32px; padding: 0 8px; }
.admin-nav { display: flex; flex-direction: column; gap: 4px; }
.admin-nav-section {
  font-size: 11px;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 16px 12px 8px;
  margin-top: 8px;
}
.admin-nav a {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 12px;
  border-radius: 8px;
  color: #cbd5e1;
  font-size: 14px;
  transition: background 0.15s;
}
.admin-nav a:hover { background: rgba(255,255,255,0.05); color: white; }
.admin-nav a.active { background: var(--accent); color: white; }
.admin-main { padding: 24px 32px; overflow-x: auto; }
.admin-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--border);
}
.admin-title { font-size: 24px; font-weight: 700; }
.admin-subtitle { font-size: 14px; color: var(--text-dim); margin-top: 2px; }
.admin-table {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  overflow: hidden;
}
.admin-table table { width: 100%; border-collapse: collapse; }
.admin-table th, .admin-table td {
  padding: 14px 16px;
  text-align: left;
  border-bottom: 1px solid var(--border-soft);
  font-size: 14px;
}
.admin-table th {
  background: var(--bg-soft);
  font-size: 12px;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 600;
}
.admin-table tr:last-child td { border-bottom: 0; }
.admin-table tr:hover { background: var(--bg-soft); }
.admin-table td.editable {
  position: relative;
}
.admin-table .price-input {
  width: 100px;
  padding: 6px 10px;
  border: 1px solid var(--border);
  border-radius: 6px;
  font-size: 14px;
  font-weight: 700;
  color: var(--accent);
}
.admin-table .price-input:focus { outline: 0; border-color: var(--accent); }
.admin-status {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 12px;
  padding: 4px 10px;
  border-radius: 6px;
  font-weight: 600;
}
.admin-status.published { background: var(--good-soft); color: var(--good); }
.admin-status.draft { background: var(--warm-soft); color: var(--accent-dark); }
.admin-bar {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 12px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}
.admin-bar .count { font-size: 13px; color: var(--text-dim); }
.admin-bar .actions { display: flex; gap: 8px; }
.admin-btn {
  padding: 8px 14px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
}
.admin-btn.primary { background: var(--accent); color: white; }
.admin-btn.primary:hover { background: var(--accent-dark); }
.admin-btn.ghost { background: var(--bg-soft); color: var(--text); }
.admin-btn.ghost:hover { background: var(--border); }

/* ========== TROUBLE GRID (для модельных страниц) ========== */
.troubles { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.trouble {
  padding: 24px 20px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  transition: all 0.15s;
  cursor: pointer;
  box-shadow: var(--card-shadow);
}

/* Подсветка найденной строки в таблице цен */
.prices-table tbody tr.is-highlight {
  background: linear-gradient(90deg, rgba(245, 158, 11, 0.18), rgba(245, 158, 11, 0.05));
  position: relative;
  animation: priceRowPulse 1.8s ease 2;
}
.prices-table tbody tr.is-highlight::before {
  content: "👉";
  position: absolute;
  left: -28px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 20px;
  animation: pricePointer 1s ease infinite;
}
@keyframes priceRowPulse {
  0%, 100% { background: linear-gradient(90deg, rgba(245, 158, 11, 0.18), rgba(245, 158, 11, 0.05)); }
  50% { background: linear-gradient(90deg, rgba(245, 158, 11, 0.35), rgba(245, 158, 11, 0.12)); }
}
@keyframes pricePointer {
  0%, 100% { transform: translateY(-50%) translateX(0); }
  50% { transform: translateY(-50%) translateX(6px); }
}

/* Подсказки в блоке поиска цены */
.price-search-hint {
  padding: 18px 20px;
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: 14px;
  font-size: 14px;
  color: var(--text-dim);
  line-height: 1.6;
}
.price-search-hint strong { color: var(--text); font-weight: 700; }
.price-search-empty {
  padding: 32px 24px;
  background: var(--accent-soft);
  border: 1px solid var(--border);
  border-radius: 16px;
  text-align: center;
}
.price-search-empty-title {
  font-size: 17px;
  font-weight: 700;
  margin-bottom: 6px;
}
.price-search-empty-text {
  font-size: 14px;
  color: var(--text-dim);
  margin-bottom: 16px;
}
.trouble:hover { background: var(--accent-soft); border-color: var(--accent); }
.trouble-icon { font-size: 32px; margin-bottom: 12px; }
.trouble-title { font-size: 15px; font-weight: 600; margin-bottom: 4px; }
.trouble-price { font-size: 13px; color: var(--accent); font-weight: 600; }

/* ========== MOBILE ========== */
/* ========== БУРГЕР + МОБИЛЬНОЕ МЕНЮ ========== */
.burger-btn {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: var(--accent-soft);
  flex-shrink: 0;
}
.burger-btn span {
  display: block;
  width: 22px;
  height: 2.5px;
  background: var(--accent);
  border-radius: 2px;
  margin: 0 auto;
}
.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 1500;
  background: var(--surface);
  transform: translateX(100%);
  transition: transform 0.3s cubic-bezier(0.32, 0.72, 0, 1);
  display: flex;
  flex-direction: column;
  overflow-y: auto;
}
.mobile-menu.is-open { transform: translateX(0); }
.mobile-menu-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  border-bottom: 1px solid var(--border);
}
.mobile-menu-close {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--bg-soft);
  font-size: 26px;
  color: var(--text);
  line-height: 1;
}
.mobile-nav {
  flex: 1;
  padding: 12px 16px;
  display: flex;
  flex-direction: column;
}
.mm-link {
  padding: 15px 12px;
  font-size: 17px;
  font-weight: 600;
  color: var(--text);
  border-radius: 12px;
  transition: background 0.15s;
}
.mm-link:active, .mm-link:hover { background: var(--bg-soft); }
.mm-biznes { background: var(--accent-soft); color: var(--accent); font-weight: 700; }
.mm-divider { height: 1px; background: var(--border); margin: 8px 12px; }
.mobile-menu-foot {
  padding: 18px 20px 24px;
  border-top: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.mobile-menu-foot .btn { padding: 14px; font-size: 16px; }
.mm-socials { display: flex; gap: 10px; justify-content: center; }
.mm-socials .hs-icon { width: 44px; height: 44px; }
.mm-socials .hs-icon svg { width: 22px; height: 22px; }

@media (max-width: 960px) {
  .hero-inner, .model-hero { grid-template-columns: 1fr; }
  .model-hero .device-card { max-width: 400px; margin: 0 auto; font-size: 120px; }
  .cats-grid, .adv-grid, .how-grid, .cases-grid, .reviews-grid, .troubles, .models-grid { grid-template-columns: repeat(2, 1fr); }
  .quick-price-head, .consult-panel { grid-template-columns: 1fr; align-items: start; }
  .quick-results, .route-grid, .consult-actions { grid-template-columns: 1fr; }
  .stats { grid-template-columns: repeat(2, 1fr); padding: 32px; }
  .map-section { grid-template-columns: 1fr; }
  .cta-section { grid-template-columns: 1fr; padding: 40px; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  nav.main-nav { display: none; }
  .hero h1, .page-hero h1 { font-size: 36px; }
  h2 { font-size: 28px; }
  .container { padding: 0 16px; }
  section { padding: 56px 0; }
  .how, .stats { padding: 40px 24px; }
  .admin-shell { grid-template-columns: 1fr; }
  .admin-sidebar { padding: 16px; }
  .admin-main { padding: 16px; }

  /* Мобильная шапка: прячем лишнее, показываем бургер */
  .header-row-bottom { display: none; }
  .header-biznes, .header-socials, .header-socials-text, .header-phone, .header-contact { display: none; }
  .burger-btn { display: flex; }
  .header-row-inner { height: 60px; gap: 12px; }
  .header-spacer { flex: 1; }
}

/* ============================================ */
/* ========== WOW-LAYER (анимации) ============= */
/* ============================================ */

/* --- Scroll progress bar --- */
.scroll-progress {
  position: fixed;
  top: 0; left: 0;
  height: 3px;
  width: 0%;
  background: linear-gradient(90deg, var(--accent), var(--accent-dark));
  z-index: 1000;
  transition: width 0.05s linear;
  pointer-events: none;
  box-shadow: 0 0 10px rgba(111, 43, 141, 0.42);
}

/* --- Scroll reveal animations --- */
[data-reveal] {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1), transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, transform;
}
[data-reveal].is-visible {
  opacity: 1;
  transform: translateY(0);
}
[data-reveal-delay="1"].is-visible { transition-delay: 0.08s; }
[data-reveal-delay="2"].is-visible { transition-delay: 0.16s; }
[data-reveal-delay="3"].is-visible { transition-delay: 0.24s; }
[data-reveal-delay="4"].is-visible { transition-delay: 0.32s; }
[data-reveal-delay="5"].is-visible { transition-delay: 0.40s; }
[data-reveal-delay="6"].is-visible { transition-delay: 0.48s; }
[data-reveal-delay="7"].is-visible { transition-delay: 0.56s; }

/* Auto-reveal for common containers */
section { /* секции тоже плавно появляются */ }

/* --- Improved card hover (lift + glow) --- */
.cat-card, .model-card, .case, .review {
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1),
              box-shadow 0.25s cubic-bezier(0.16, 1, 0.3, 1),
              border-color 0.25s;
}
.cat-card:hover, .model-card:hover, .case:hover, .review:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.34);
}

/* --- Floating CTA --- */
.floating-cta {
  position: fixed;
  bottom: 24px; right: 24px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 22px;
  background: linear-gradient(135deg, var(--accent), var(--accent-dark));
  color: white;
  font-weight: 700;
  font-size: 15px;
  border-radius: 999px;
  box-shadow: 0 12px 40px rgba(111, 43, 141, 0.42);
  z-index: 90;
  opacity: 0;
  transform: translateY(20px) scale(0.9);
  transition: opacity 0.3s, transform 0.3s, box-shadow 0.2s;
  cursor: pointer;
  text-decoration: none;
}
.floating-cta.is-visible {
  opacity: 1;
  transform: translateY(0) scale(1);
}
.floating-cta:hover {
  box-shadow: 0 16px 48px rgba(111, 43, 141, 0.5);
  transform: translateY(-2px) scale(1.02);
}
.floating-cta::before {
  content: "💬";
  font-size: 18px;
}
.floating-cta.is-hidden {
  opacity: 0;
  pointer-events: none;
}

/* --- Toaster notifications --- */
.toast-stack {
  position: fixed;
  bottom: 24px; left: 24px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  z-index: 1001;
  pointer-events: none;
  max-width: 380px;
}
.toast {
  background: var(--surface);
  border: 1px solid var(--border);
  border-left: 4px solid var(--good);
  border-radius: 12px;
  padding: 14px 18px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.32);
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 14px;
  line-height: 1.45;
  opacity: 0;
  transform: translateX(-100%);
  transition: opacity 0.3s, transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  pointer-events: auto;
}
.toast.is-visible {
  opacity: 1;
  transform: translateX(0);
}
.toast.is-hiding {
  opacity: 0;
  transform: translateX(-100%);
}
.toast-icon {
  width: 32px; height: 32px;
  border-radius: 50%;
  background: var(--good-soft);
  color: var(--good);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  flex-shrink: 0;
}
.toast-content { flex: 1; }
.toast-title { font-weight: 700; margin-bottom: 2px; color: var(--text); }
.toast-msg { color: var(--text-dim); font-size: 13px; }
.toast.info { border-left-color: var(--accent); }
.toast.info .toast-icon { background: var(--accent-soft); color: var(--accent); }

/* --- Calculator price counter (когда меняется) --- */
.calc-result {
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.3s;
}
.calc-result.is-fresh {
  animation: priceFlash 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}
@keyframes priceFlash {
  0% { transform: scale(0.96); opacity: 0.7; }
  50% { transform: scale(1.03); }
  100% { transform: scale(1); opacity: 1; }
}
.calc-result-price {
  transition: color 0.2s;
}
.calc-result-price.counting {
  color: rgba(255, 255, 255, 0.85);
}

/* --- Stats counter animation --- */
.stat-num {
  display: inline-block;
  transition: transform 0.3s;
}

/* --- Before/After slider --- */
.case-photo.ba-slider {
  cursor: ew-resize;
  user-select: none;
  position: relative;
}
.case-photo.ba-slider .split {
  position: relative;
  inset: 0;
  display: block;
}
.case-photo.ba-slider .before,
.case-photo.ba-slider .after {
  position: absolute;
  inset: 0;
  display: flex;
}
.case-photo.ba-slider .after {
  clip-path: inset(0 0 0 50%);
  transition: clip-path 0.08s linear;
}
.case-photo.ba-slider .ba-handle {
  position: absolute;
  top: 0; bottom: 0;
  left: 50%;
  width: 3px;
  background: var(--surface);
  transform: translateX(-50%);
  box-shadow: 0 0 0 1px rgba(234, 223, 240, 0.2), 0 4px 12px rgba(0,0,0,0.35);
  z-index: 3;
  pointer-events: none;
}
.case-photo.ba-slider .ba-handle::after {
  content: "⇆";
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 36px; height: 36px;
  background: var(--surface);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: bold;
  color: var(--accent);
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}
.case-photo.ba-slider .ba-hint {
  position: absolute;
  bottom: 12px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(5, 2, 5, 0.88);
  color: white;
  font-size: 11px;
  font-weight: 600;
  padding: 6px 12px;
  border-radius: 999px;
  z-index: 2;
  pointer-events: none;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  opacity: 0;
  transition: opacity 0.3s;
}
.case-photo.ba-slider:hover .ba-hint,
.case-photo.ba-slider.is-touched .ba-hint {
  opacity: 1;
}

/* --- Button improvements --- */
.btn {
  position: relative;
  overflow: hidden;
}
.btn::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle, rgba(255,255,255,0.4) 0%, transparent 70%);
  opacity: 0;
  transform: scale(0);
  transition: transform 0.5s, opacity 0.5s;
}
.btn:active::after {
  transform: scale(2);
  opacity: 1;
  transition: 0s;
}

/* --- Hero highlight underline animation --- */
@keyframes drawHighlight {
  from { background-size: 0% 38%; }
  to { background-size: 100% 38%; }
}
.hero h1 .highlight {
  animation: drawHighlight 1s cubic-bezier(0.16, 1, 0.3, 1) 0.4s both;
}

/* --- Calc option active state --- */
.calc-option {
  position: relative;
}
.calc-option.is-selected {
  border-color: var(--accent);
  background: var(--accent-soft);
  color: var(--accent-dark);
  font-weight: 600;
}

/* --- Mobile: floating CTA меньше --- */
@media (max-width: 720px) {
  .floating-cta { bottom: 16px; right: 16px; padding: 12px 18px; font-size: 14px; }
  .toast-stack { left: 16px; right: 16px; max-width: none; bottom: 80px; }
}

/* ========== КОМПЛЕКСНЫЙ МОБИЛЬНЫЙ АДАПТИВ (≤640px) ========== */
@media (max-width: 640px) {
  /* Таблицы цен — горизонтальный скролл */
  .prices-table {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
  .prices-table table { min-width: 480px; }
  .prices-table th, .prices-table td { padding: 12px 14px; font-size: 13px; }
  .prices-table td.price { font-size: 13px; }

  /* Сетки в одну колонку */
  .cats-grid, .adv-grid, .how-grid, .cases-grid, .reviews-grid, .troubles, .models-grid,
  .video-grid, .contacts-big, .biz-terms-grid, .biz-services, .biz-segments,
  .biz-process, .biz-clients-grid, .biz-offer-grid {
    grid-template-columns: 1fr !important;
  }
  .stats { grid-template-columns: 1fr 1fr; padding: 24px 16px; }
  .hero-strip-row { grid-template-columns: 1fr 1fr; }

  /* Заголовки меньше */
  .hero h1, .page-hero h1, .hero-slide-title { font-size: 24px; }
  .biz-hero h1 { font-size: 28px; }
  h2 { font-size: 22px; }
  h3 { font-size: 18px; }
  .lead { font-size: 15px; }

  /* Секции с меньшими отступами */
  section { padding: 40px 0; }

  /* Слайдер компактнее */
  .hero-slider { padding: 16px 0 56px; }
  .hero-slide { padding: 24px 18px; min-height: 340px; flex-basis: 94%; }
  .hero-slide-cta { flex-direction: column; }
  .hero-slide-cta .btn { width: 100%; justify-content: center; }

  /* Контакты на главной — карта сверху, контакты снизу */
  .map-section { gap: 16px; }
  .map { min-height: 240px; }

  /* Соцсети-плитки */
  .socials-grid { gap: 16px 18px; }
  .social-circle { width: 56px; height: 56px; }

  /* how-contact-bar */
  .how-contact-bar { padding: 22px 18px; }
  .how-contact-actions { display: grid; grid-template-columns: 1fr 1fr; }
  .how-contact-actions .btn { width: 100%; justify-content: center; }

  /* Хлебные крошки компактнее */
  .breadcrumbs { font-size: 12px; padding: 12px 0; }

  /* FAQ */
  .faq summary { font-size: 15px; padding: 16px 18px; }

  /* Кнопки в hero на всю ширину */
  .hero-cta { flex-direction: column; }
  .hero-cta .btn { width: 100%; justify-content: center; }

  /* Footer в одну колонку */
  .footer-grid { grid-template-columns: 1fr !important; gap: 24px; }

  /* Модели-чипы (на страницах брендов) */
  .models-list { grid-template-columns: 1fr 1fr !important; }

  /* CTA-блок */
  .cta-section { padding: 28px 20px; }
  .cta-form { padding: 22px; }

  /* Контакт-модалка плитки */
  .contact-modal-tiles { grid-template-columns: 1fr; }
}

/* Очень узкие экраны (≤380px) */
@media (max-width: 380px) {
  .stats, .hero-strip-row { grid-template-columns: 1fr; }
  .models-list { grid-template-columns: 1fr !important; }
  .how-contact-actions { grid-template-columns: 1fr; }
  .logo-text { font-size: 15px; }
}

/* --- Better calculator step pill animation --- */
.calc-step-pill {
  transition: background 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

/* ========== Контактная полоса в блоке "Как мы работаем" ========== */
.how-contact-bar {
  margin-top: 40px;
  padding: 28px 32px;
  background: linear-gradient(135deg, var(--accent), var(--accent-dark));
  color: white;
  border-radius: 20px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 24px;
  align-items: center;
}
.how-contact-title {
  font-size: 22px;
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 6px;
}
.how-contact-sub {
  color: rgba(255, 255, 255, 0.85);
  font-size: 14px;
}
.how-contact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.how-contact-actions .btn {
  padding: 12px 18px;
  font-size: 14px;
  font-weight: 700;
  white-space: nowrap;
}
.how-contact-actions .btn-primary {
  background: white;
  color: var(--accent);
}
.how-contact-actions .btn-primary:hover {
  background: rgba(255, 255, 255, 0.92);
  color: var(--accent-dark);
}
@media (max-width: 820px) {
  .how-contact-bar { grid-template-columns: 1fr; padding: 24px; }
  .how-contact-actions { display: grid; grid-template-columns: 1fr 1fr; }
}

/* ========== HERO SLIDER (карусель с peek-эффектом) ========== */
.hero-slider {
  position: relative;
  overflow: hidden;
  background: var(--bg-dark);
  padding: 28px 0 72px;
}
.hero-slider-track {
  position: relative;
  display: flex;
  gap: 16px;
  transition: transform 0.85s cubic-bezier(0.65, 0, 0.35, 1);
  will-change: transform;
}
.hero-slide {
  flex: 0 0 calc(min(92vw, 1280px));
  border-radius: 22px;
  overflow: hidden;
  display: flex;
  align-items: center;
  min-height: 360px;
  padding: 36px 44px;
  position: relative;
  opacity: 0.45;
  transition: opacity 0.7s ease;
  cursor: pointer;
}
.hero-slide.is-active {
  opacity: 1;
  cursor: default;
}
.hero-slide:not(.is-active):hover {
  opacity: 0.75;
}
.hero-slide[data-bg="purple"] {
  background:
    radial-gradient(circle at 80% 30%, rgba(155, 58, 154, 0.45), transparent 50%),
    linear-gradient(135deg, var(--accent-dark) 0%, var(--bg-dark) 100%);
}
.hero-slide[data-bg="dark"] {
  background:
    radial-gradient(circle at 70% 25%, rgba(111, 43, 141, 0.35), transparent 50%),
    linear-gradient(135deg, #0a0a0a 0%, #1a0a20 100%);
}
.hero-slide[data-bg="green"] {
  background:
    radial-gradient(circle at 75% 35%, rgba(34, 197, 94, 0.32), transparent 50%),
    linear-gradient(135deg, #0d2818 0%, var(--bg-dark) 100%);
}
.hero-slide[data-bg="warm"] {
  background:
    radial-gradient(circle at 80% 25%, rgba(245, 158, 11, 0.32), transparent 50%),
    linear-gradient(135deg, #2b1810 0%, var(--bg-dark) 100%);
}

.hero-slide-inner {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 56px;
  align-items: center;
  width: 100%;
  max-width: none;
  padding: 0;
}
.hero-slide-text { color: white; max-width: 620px; }
.hero-slide-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  background: rgba(255, 255, 255, 0.12);
  border-radius: 100px;
  color: rgba(255, 255, 255, 0.92);
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 18px;
}
.hero-slide-title {
  font-size: 42px;
  font-weight: 900;
  line-height: 1.08;
  letter-spacing: -0.015em;
  text-transform: uppercase;
  margin: 0 0 18px;
  color: white;
}
.hero-slide-sub {
  font-size: 16px;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.78);
  margin: 0 0 24px;
  max-width: 520px;
}
.hero-slide-cta { display: flex; gap: 12px; flex-wrap: wrap; }
.btn-lg { padding: 13px 24px; font-size: 15px; font-weight: 700; }
.btn-outline-light {
  background: transparent;
  border: 1.5px solid rgba(255, 255, 255, 0.4);
  color: white;
}
.btn-outline-light:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.7);
}

.hero-slide-art {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
}
.hero-art-circle {
  width: 200px;
  height: 200px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  border: 2px solid rgba(255, 255, 255, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 88px;
  box-shadow: 0 0 60px rgba(255, 255, 255, 0.08);
  animation: heroFloat 6s ease-in-out infinite;
}
.hero-art-text {
  margin-top: 18px;
  font-size: 16px;
  font-weight: 800;
  color: rgba(255, 255, 255, 0.94);
  text-align: center;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  line-height: 1.15;
}
@keyframes heroFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-14px); }
}

/* Стрелки */
.hero-slider-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.14);
  color: white;
  font-size: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s, transform 0.2s;
  z-index: 5;
  backdrop-filter: blur(8px);
}
.hero-slider-arrow:hover { background: rgba(255, 255, 255, 0.26); }
.hero-slider-prev { left: 24px; }
.hero-slider-next { right: 24px; }

/* Точки */
.hero-slider-dots {
  position: absolute;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 6px;
  z-index: 5;
  max-width: calc(100% - 80px);
  flex-wrap: wrap;
  justify-content: center;
}
.hero-dot {
  width: 24px;
  height: 4px;
  border-radius: 2px;
  background: rgba(255, 255, 255, 0.28);
  transition: background 0.2s, width 0.2s;
  padding: 0;
}
.hero-dot.is-active {
  background: white;
  width: 44px;
}
.hero-dot:hover { background: rgba(255, 255, 255, 0.5); }
@media (max-width: 540px) {
  .hero-dot { width: 18px; }
  .hero-dot.is-active { width: 32px; }
}

/* Полоса бенефитов под слайдером */
.hero-strip {
  background: var(--bg-soft);
  padding: 28px 0;
  border-bottom: 1px solid var(--border);
}
.hero-strip-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.hs-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
  text-align: center;
}
.hs-num {
  font-size: 28px;
  font-weight: 800;
  color: var(--accent);
  letter-spacing: -0.02em;
  line-height: 1;
}
.hs-label {
  font-size: 13px;
  color: var(--text-dim);
  font-weight: 500;
}

@media (max-width: 1080px) {
  .hero-slide { padding: 32px 32px; min-height: 320px; }
  .hero-slide-title { font-size: 32px; }
  .hero-art-circle { width: 170px; height: 170px; font-size: 72px; }
}
@media (max-width: 820px) {
  .hero-slider { padding: 20px 0 64px; }
  .hero-slide {
    flex-basis: 94%;
    padding: 28px 22px;
    min-height: 360px;
  }
  .hero-slide-inner { grid-template-columns: 1fr; gap: 18px; }
  .hero-slide-title { font-size: 24px; }
  .hero-slide-sub { font-size: 14px; }
  .hero-slide-art { order: -1; }
  .hero-art-circle { width: 100px; height: 100px; font-size: 44px; }
  .hero-art-text { font-size: 13px; margin-top: 10px; }
  .hero-slider-arrow { display: none; }
  .hero-strip-row { grid-template-columns: 1fr 1fr; gap: 18px; }
  .hs-num { font-size: 22px; }
}

/* ========== Блок «Соцсети и мессенджеры» — круглые иконки ========== */
.socials-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 28px 36px;
  margin-top: 40px;
  max-width: 920px;
  margin-left: auto;
  margin-right: auto;
}
.social-pill {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  color: var(--text);
  font-weight: 600;
  font-size: 16px;
  transition: transform 0.2s;
}
.social-pill:hover { transform: translateY(-3px); }
.social-pill:hover .social-circle { box-shadow: 0 10px 24px rgba(78, 29, 102, 0.18); }
.social-circle {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--surface);
  border: 1.5px solid var(--border);
  font-size: 22px;
  font-weight: 700;
  transition: box-shadow 0.2s, border-color 0.2s;
}
.social-circle svg { width: 30px; height: 30px; fill: currentColor; }
.social-tg { color: #229ed9; border-color: #229ed9; }
.social-wa { color: #25d366; border-color: #25d366; }
.social-max { color: var(--accent); border-color: var(--accent); background: var(--accent-soft); }
.social-vk { color: #0077ff; border-color: #0077ff; }
.social-ig { color: #e1306c; border-color: #e1306c; }
.social-yt { color: #ff0000; border-color: #ff0000; }
.social-2gis { color: #1ba84e; border-color: #1ba84e; }
.social-call { color: var(--accent); border-color: var(--accent); font-size: 28px; }
.social-name {
  font-size: 15px;
  font-weight: 600;
}
@media (max-width: 720px) {
  .socials-grid { gap: 20px 24px; }
  .social-circle { width: 60px; height: 60px; }
  .social-circle svg { width: 24px; height: 24px; }
  .social-name { font-size: 13px; }
}

/* ========== Auto-popup bar (плавающая полоса внизу через 4 сек) ========== */
.consult-bar {
  position: fixed;
  left: 50%;
  bottom: 24px;
  transform: translateX(-50%) translateY(20px);
  z-index: 1900;
  width: calc(100vw - 40px);
  max-width: 920px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 18px;
  box-shadow: 0 18px 48px rgba(19, 7, 22, 0.22), 0 4px 12px rgba(78, 29, 102, 0.10);
  padding: 18px 56px 18px 26px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 24px;
  align-items: center;
  opacity: 0;
  transition: opacity 0.32s ease, transform 0.32s cubic-bezier(0.16, 1, 0.3, 1);
  pointer-events: none;
}
.consult-bar.is-visible {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
  pointer-events: auto;
}
.consult-bar-close {
  position: absolute;
  top: 10px;
  right: 12px;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--bg-soft);
  color: var(--text-dim);
  font-size: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s, color 0.15s;
}
.consult-bar-close:hover { background: var(--accent-soft); color: var(--accent); }
.consult-bar-title { font-size: 18px; font-weight: 800; margin-bottom: 4px; }
.consult-bar-status {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--text-dim);
}
.cb-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #22c55e;
  box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.5);
  animation: cbDot 1.6s infinite;
}
@keyframes cbDot {
  0% { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.5); }
  70% { box-shadow: 0 0 0 8px rgba(34, 197, 94, 0); }
  100% { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0); }
}
.consult-bar-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.consult-bar-actions .btn {
  padding: 11px 16px;
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;
}
@media (max-width: 820px) {
  .consult-bar {
    grid-template-columns: 1fr;
    gap: 14px;
    padding: 18px 52px 16px 18px;
    bottom: 12px;
    width: calc(100vw - 16px);
  }
  .consult-bar-actions { display: grid; grid-template-columns: 1fr 1fr; }
  .consult-bar-actions .btn { font-size: 12px; padding: 10px 12px; }
}

/* ========== CONTACT MODAL (по клику «Связаться» — свой дизайн) ========== */
.contact-modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 2200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(19, 7, 22, 0.6);
  backdrop-filter: blur(6px);
  opacity: 0;
  transition: opacity 0.28s ease;
  pointer-events: none;
}
.contact-modal-overlay.is-visible {
  opacity: 1;
  pointer-events: auto;
}
.contact-modal {
  position: relative;
  width: 100%;
  max-width: 520px;
  background: var(--surface);
  border-radius: 28px;
  overflow: hidden;
  box-shadow: 0 32px 80px rgba(0, 0, 0, 0.4);
  transform: scale(0.94);
  transition: transform 0.28s cubic-bezier(0.16, 1, 0.3, 1);
}
.contact-modal-overlay.is-visible .contact-modal { transform: scale(1); }
.contact-modal-close {
  position: absolute;
  top: 18px;
  right: 20px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.16);
  color: white;
  font-size: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s;
  z-index: 2;
}
.contact-modal-close:hover { background: rgba(255, 255, 255, 0.28); }

/* HERO — тёмный фиолетовый блок сверху */
.contact-modal-hero {
  background:
    radial-gradient(circle at 80% 20%, rgba(155, 58, 154, 0.55), transparent 50%),
    linear-gradient(135deg, var(--accent-dark) 0%, var(--bg-dark) 100%);
  color: white;
  padding: 36px 36px 32px;
  text-align: center;
  position: relative;
}
.contact-modal-badge {
  display: inline-flex;
  width: 56px;
  height: 56px;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.16);
  border-radius: 50%;
  font-size: 30px;
  margin-bottom: 16px;
  box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.08);
}
.contact-modal-title {
  font-size: 22px;
  font-weight: 800;
  line-height: 1.25;
  margin: 0 0 8px;
  color: white;
  letter-spacing: -0.01em;
}
.contact-modal-sub {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.78);
  margin: 0;
}

/* SHAGI — компактный список */
.contact-modal-steps {
  display: grid;
  gap: 12px;
  padding: 24px 32px 8px;
}
.cm-step {
  display: flex;
  align-items: center;
  gap: 14px;
}
.cm-step > div {
  display: flex;
  flex-direction: column;
}
.cm-step strong {
  font-size: 14px;
  font-weight: 700;
  color: var(--text);
}
.cm-step span:last-child {
  font-size: 13px;
  color: var(--text-dim);
}
.cm-step-num {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--accent-soft);
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 800;
  flex-shrink: 0;
}

/* TILES — сетка 2×2 мессенджеров */
.contact-modal-tiles {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  padding: 20px 32px 12px;
}
.cm-tile {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 18px;
  border-radius: 14px;
  background: var(--bg-soft);
  border: 1.5px solid transparent;
  transition: all 0.15s;
  color: var(--text);
}
.cm-tile:hover { transform: translateY(-2px); background: var(--surface); border-color: currentColor; }
.cm-tile-icon {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--surface);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.cm-tile-icon svg { width: 20px; height: 20px; fill: currentColor; }
.cm-tile-letter { font-size: 14px; font-weight: 800; }
.cm-tile-name { font-size: 15px; font-weight: 700; }
.cm-tile-tg { color: #229ed9; }
.cm-tile-wa { color: #25d366; }
.cm-tile-max { color: var(--accent); }
.cm-tile-vk { color: #0077ff; }

/* CALL — большая нижняя кнопка */
.contact-modal-call {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 18px;
  margin: 8px 32px 32px;
  border-radius: 14px;
  background: var(--text);
  color: white;
  font-size: 15px;
  font-weight: 600;
  transition: background 0.15s;
}
.contact-modal-call strong { font-size: 16px; font-weight: 800; }
.contact-modal-call:hover { background: var(--accent-dark); }

@media (max-width: 540px) {
  .contact-modal-hero { padding: 30px 24px 26px; }
  .contact-modal-title { font-size: 19px; }
  .contact-modal-steps { padding: 20px 22px 4px; }
  .contact-modal-tiles { padding: 16px 22px 8px; grid-template-columns: 1fr 1fr; }
  .contact-modal-call { margin: 6px 22px 22px; padding: 16px; }
}

/* ========== Универсальные тени для белых карточек на белом фоне ========== */
.review,
.video-card,
.route-card,
.open-zone-card,
.case,
.quick-result,
.biz-segment,
.biz-service-card,
.biz-offer-card:not(.primary),
.biz-client-logo:not(.featured),
.biz-form,
.biz-contact-strip a {
  box-shadow: var(--card-shadow);
}
.review:hover,
.video-card:hover,
.route-card:hover,
.biz-segment:hover,
.biz-service-card:hover,
.biz-offer-card:not(.primary):hover {
  box-shadow: var(--card-shadow-hover);
}

/* ========== АВТО-БЛОКИ «Связаться» + КОНТАКТЫ (на всех страницах) ========== */
.auto-hero-cta { margin-top: 28px; }
.auto-cta { padding: 36px 0; }
.auto-cta-card {
  max-width: 880px;
  margin: 0 auto;
  background: linear-gradient(135deg, var(--accent-soft), var(--purple-soft));
  border: 1px solid var(--border);
  border-radius: 22px;
  padding: 40px 28px;
  text-align: center;
}
.auto-cta-card h2 { margin: 0 0 8px; }
.auto-cta-card p { color: var(--text-dim); max-width: 560px; margin: 0 auto 24px; }

.auto-contacts {
  padding: 56px 0;
  background: var(--bg-soft);
  border-top: 1px solid var(--border);
  text-align: center;
}
.auto-contacts h2 { margin: 8px 0 28px; }
.auto-contacts-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 14px 36px;
  justify-content: center;
  margin-bottom: 28px;
}
.auto-contact-item { font-size: 15px; color: var(--text); }
.auto-contact-item a { color: var(--accent); font-weight: 600; text-decoration: none; }
.auto-contact-item a:hover { text-decoration: underline; }
.auto-contacts-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  margin-bottom: 22px;
}
.auto-contacts-actions .btn { justify-content: center; padding: 12px 20px; }

@media (max-width: 640px) {
  .auto-cta-card { padding: 28px 18px; border-radius: 18px; }
  .auto-contacts-grid { flex-direction: column; gap: 12px; }
  .auto-contacts-actions { flex-direction: column; }
  .auto-contacts-actions .btn { width: 100%; }
}

