/* Styles for ZhivZdorov */
:root {
  --bg: oklch(98% 0.012 102);
  --surface: oklch(100% 0.003 100);
  --surface-warm: oklch(96% 0.03 92);
  --fg: oklch(22% 0.032 165);
  --muted: oklch(50% 0.025 155);
  --border: oklch(88% 0.025 112);
  --accent: oklch(59% 0.13 150);
  --accent-strong: oklch(48% 0.14 152);
  --warm: oklch(72% 0.15 70);
  --warm-strong: oklch(63% 0.16 58);
  --danger: oklch(60% 0.18 28);
  --shadow: 0 24px 70px oklch(35% 0.05 130 / 0.14);
  --radius: 22px;
  --font-display: "Iowan Old Style", "Charter", Georgia, serif;
  --font-body: "Avenir Next", "Segoe UI", -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background:
    radial-gradient(circle at 12% 8%, oklch(90% 0.08 80 / 0.72), transparent 34rem),
    linear-gradient(180deg, oklch(99% 0.014 105), var(--bg) 42%, oklch(97% 0.018 135));
  color: var(--fg);
  font: 17px/1.55 var(--font-body);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a { color: inherit; text-decoration: none; }
button, input { font: inherit; }
button { cursor: pointer; }
img { max-width: 100%; display: block; }

.page { width: min(1180px, calc(100% - 32px)); margin: 0 auto; }

/* --- ШАПКА И НАВИГАЦИЯ --- */
.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1) !important;
}
.topbar-clean {
  background: transparent !important;
  border-bottom: 1px solid transparent !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}
.topbar-scrolled-state {
  backdrop-filter: blur(20px) !important;
  -webkit-backdrop-filter: blur(20px) !important;
  background: color-mix(in oklch, var(--bg) 85%, transparent) !important;
  border-bottom: 1px solid color-mix(in oklch, var(--border), transparent 36%) !important;
  box-shadow: 0 10px 30px rgba(0,0,0,0.02) !important;
}

.nav {
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 760;
  letter-spacing: 0;
}
.brand-mark {
  width: 34px;
  height: 34px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  color: white;
  background: linear-gradient(135deg, var(--accent), var(--warm));
  box-shadow: 0 12px 28px oklch(58% 0.12 120 / 0.24);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 22px;
  color: var(--muted);
  font-size: 14px;
}
.nav-links a {
  transition: color 0.2s ease;
}
.nav-links a:hover {
  color: var(--fg);
}

/* --- МОБИЛЬНОЕ МЕНЮ --- */
.mobile-menu-overlay {
  position: fixed;
  inset: 0;
  background: color-mix(in oklch, var(--bg) 95%, transparent);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  z-index: 9999;
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 40px;
  animation: fadeIn 0.3s ease;
}
.mobile-nav-link {
  font-family: var(--font-display);
  font-size: 26px;
  font-weight: 760;
  color: var(--fg);
  transition: transform 0.2s, color 0.2s;
}
.mobile-nav-link:active {
  transform: scale(0.95);
  color: var(--accent-strong);
}

/* --- КНОПКИ --- */
.btn {
  min-height: 46px;
  border: 1px solid transparent;
  border-radius: 999px;
  padding: 0 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  font-weight: 720;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease, border-color .18s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary {
  background: var(--accent-strong);
  color: white;
  box-shadow: 0 14px 34px oklch(48% 0.14 152 / 0.26);
}
.hero-primary-red {
  background: oklch(55% 0.22 29);
  box-shadow: 0 14px 34px oklch(55% 0.22 29 / 0.28);
}
.hero-primary-blue {
  background: oklch(55% 0.18 245);
  color: white !important;
  box-shadow: 0 14px 34px oklch(55% 0.18 245 / 0.24);
}
.hero-primary-blue:hover {
  background: oklch(50% 0.18 245);
  transform: translateY(-1px);
}

.btn-warm {
  background: var(--warm);
  color: oklch(24% 0.05 72);
  box-shadow: 0 14px 34px oklch(68% 0.14 70 / 0.28);
}
.btn-ghost {
  background: color-mix(in oklch, var(--surface), transparent 18%);
  color: var(--fg);
  border-color: var(--border);
}

/* --- СЕКЦИИ И ОБЩИЕ ПАНЕЛИ --- */
section { padding: clamp(70px, 8vw, 116px) 0; }
.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 30px;
  margin-bottom: 34px;
}
.section-head p {
  margin: 0;
  max-width: 410px;
  color: var(--muted);
  font-size: 18px;
  text-wrap: pretty;
}

.panel {
  background: color-mix(in oklch, var(--surface), transparent 6%);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: clamp(22px, 3vw, 34px);
  position: relative;
  overflow: hidden;
}

/* --- HERO-БЛОК --- */
.hero {
  min-height: calc(100svh - 72px);
  padding: clamp(46px, 6vw, 86px) 0 56px;
  display: grid;
  grid-template-columns: minmax(0, 1.04fr) minmax(360px, .96fr);
  align-items: center;
  gap: clamp(34px, 6vw, 74px);
}
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: var(--accent-strong);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.eyebrow::before {
  content: "";
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 6px oklch(62% 0.12 150 / 0.14);
}

h1, h2, h3 {
  font-family: var(--font-display);
  line-height: .98;
  letter-spacing: 0;
  margin: 0;
  text-wrap: balance;
}
h1 {
  margin-top: 20px;
  font-size: clamp(48px, 7.6vw, 96px);
  max-width: 860px;
}
h2 {
  font-size: clamp(38px, 5vw, 68px);
  max-width: 850px;
}
h3 { font-size: clamp(25px, 2.4vw, 34px); }

.lead {
  margin: 24px 0 0;
  max-width: 660px;
  color: var(--muted);
  font-size: clamp(19px, 2vw, 24px);
  line-height: 1.45;
  text-wrap: pretty;
}
.hero-actions {
  margin-top: 34px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
.proof-row {
  margin-top: 30px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  color: var(--muted);
}
.proof-chip {
  border: 1px solid var(--border);
  background: color-mix(in oklch, var(--surface), transparent 12%);
  border-radius: 999px;
  padding: 9px 13px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
}

/* Визуальная часть Hero (Макет телефона) */
.hero-visual {
  position: relative;
  min-height: 650px;
  display: flex;
  align-items: center;
  justify-content: flex-end;
}
.hero-comp-wrapper {
  position: relative;
  width: 100%;
  max-width: 580px;
  min-height: 520px;
}
.hero-comp-photo {
  position: absolute;
  left: 0; top: 0;
  width: 460px; height: 500px;
  border-radius: 36px; overflow: hidden;
  box-shadow: 0 20px 40px rgba(0,0,0,0.08);
  z-index: 1;
}
.hero-comp-phone {
  position: absolute;
  right: 0; bottom: -30px;
  width: 280px;
  min-height: 500px;
  background: linear-gradient(180deg, oklch(98% 0.01 105), white);
  border: 8px solid oklch(92% 0.02 110);
  border-radius: 40px;
  box-shadow: -15px 25px 50px rgba(0,0,0,0.15);
  z-index: 2;
  padding: 45px 16px 24px;
  display: flex;
  flex-direction: column;
}
.phone-notch-new {
  position: absolute;
  top: 0; left: 50%;
  transform: translateX(-50%);
  width: 110px; height: 26px;
  background: oklch(92% 0.02 110);
  border-radius: 0 0 16px 16px;
  z-index: 10;
}
.phone-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 22px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}
.messenger-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-bottom: 14px;
}
.tab {
  border: 1px solid var(--border);
  background: white;
  color: var(--muted);
  border-radius: 14px;
  min-height: 40px;
  font-weight: 760;
}
.tab.active { background: var(--fg); color: white; border-color: var(--fg); }

.bot-bubble {
  background: white;
  border: 1px solid var(--border);
  border-radius: 20px 20px 20px 6px;
  padding: 16px;
  box-shadow: 0 12px 28px oklch(50% 0.05 120 / .08);
}
.bot-bubble p { margin: 0; }
.bot-time { color: var(--muted); font-size: 12px; margin-top: 8px; }

.bot-btn {
  background: white; border: 1px solid var(--border); padding: 12px; border-radius: 14px;
  font-weight: 700; cursor: pointer; text-align: center; transition: all 0.2s; font-size: 13px;
}
.bot-btn:hover {
  background: color-mix(in oklch, var(--surface-warm), white 50%);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.04);
}
.bot-btn.primary { color: var(--accent-strong); }
.bot-btn.secondary { color: var(--fg); }
.bot-btn.danger { color: var(--danger); }

.clickable-refresh { cursor: pointer; transition: transform 0.2s, filter 0.2s; }
.clickable-refresh:hover { transform: scale(0.98); filter: brightness(0.95); }


/* --- ИНТЕРАКТИВНЫЕ СЦЕНАРИИ (БЫЛО / СТАЛО) --- */
.scen-container { max-width: 760px; margin: 0 auto; display: flex; flex-direction: column; align-items: center; }
.scen-toggle-wrap {
  display: inline-flex; background: white; border: 1px solid var(--border);
  border-radius: 100px; padding: 6px; position: relative; margin-bottom: 30px;
  box-shadow: 0 10px 20px rgba(0,0,0,0.03);
}
.scen-pill {
  position: absolute; top: 6px; bottom: 6px; left: 6px; width: calc(50% - 6px);
  background: oklch(93% 0.06 35);
  border-radius: 100px; transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}
.scen-btn {
  position: relative; z-index: 2; padding: 12px 32px; border: none; background: transparent;
  font-weight: 700; font-size: 15px; color: var(--muted); cursor: pointer; transition: color 0.3s;
}
.scen-btn.active.bad { color: var(--danger); }
.scen-btn.active.good { color: var(--accent-strong); }

.scen-card {
  width: 100%; border-radius: 28px; border: 1px solid;
  transition: all 0.5s ease; position: relative; overflow: hidden;
  min-height: 300px;
}
.scen-card.state-bad {
  background: linear-gradient(135deg, oklch(100% 0 0), oklch(96% 0.025 28));
  border-color: oklch(85% 0.07 32); box-shadow: 0 20px 40px rgba(239, 68, 68, 0.05);
}
.scen-card.state-good {
  background: linear-gradient(135deg, oklch(100% 0 0), oklch(95% 0.04 145));
  border-color: oklch(83% 0.07 145); box-shadow: 0 20px 40px rgba(16, 185, 129, 0.05);
}

.scen-content {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 30px clamp(20px, 5vw, 60px);
  transition: opacity 0.4s ease, transform 0.4s ease;
}
.scen-content.hidden { opacity: 0; pointer-events: none; transform: translateY(15px); }
.scen-content.visible { opacity: 1; pointer-events: auto; transform: translateY(0); }

.story-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 14px;
}
.story-list li {
  display: grid;
  grid-template-columns: 30px 1fr;
  gap: 12px;
  align-items: start;
  color: color-mix(in oklch, var(--fg), var(--muted) 22%);
}
.mark {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 15px;
  font-weight: 900;
}
.mark.bad-mark { background: oklch(93% 0.06 35); color: var(--danger); }
.mark.good-mark { background: oklch(93% 0.06 150); color: var(--accent-strong); }

@keyframes pulseAnxiety {
  0% { transform: scale(1); box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.4); }
  50% { transform: scale(1.05); box-shadow: 0 0 0 8px rgba(239, 68, 68, 0); }
  100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(239, 68, 68, 0); }
}
.mark-anxiety { animation: pulseAnxiety 2s infinite cubic-bezier(0.66, 0, 0, 1); }

@keyframes breatheCalm {
  0% { box-shadow: 0 0 8px rgba(16, 185, 129, 0.2); }
  50% { box-shadow: 0 0 20px rgba(16, 185, 129, 0.6); }
  100% { box-shadow: 0 0 8px rgba(16, 185, 129, 0.2); }
}
.mark-calm { animation: breatheCalm 3s infinite ease-in-out; }


/* --- СЕКЦИЯ: КАК ЭТО РАБОТАЕТ --- */
.how-wrapper { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; position: relative; }
.how-steps-col { padding-bottom: 50vh; }
.how-step { min-height: 60vh; display: flex; flex-direction: column; justify-content: center; opacity: 0.3; transition: opacity 0.5s ease; padding-right: 40px; }
.how-step.active { opacity: 1; }
.how-step-num { width: 48px; height: 48px; background: white; border-radius: 16px; display: flex; align-items: center; justify-content: center; font-size: 20px; font-weight: 800; color: var(--accent-strong); margin-bottom: 24px; box-shadow: 0 10px 20px rgba(0,0,0,0.05); border: 1px solid var(--border); }
.how-step h3 { font-size: 28px; margin-bottom: 16px; }
.how-step p { font-size: 18px; color: var(--muted); line-height: 1.5; }

.how-phone-col { position: sticky; top: 15vh; height: 70vh; display: flex; align-items: center; justify-content: center; }

/* Элементы, используемые на мобильных устройствах */
.how-mobile-tabs { display: none; gap: 10px; margin-bottom: 20px; width: 100%; overflow-x: auto; padding-bottom: 10px; }
.how-mobile-tab { flex: 1; min-width: 110px; background: white; border: 1px solid var(--border); padding: 16px; border-radius: 20px; text-align: left; cursor: pointer; transition: 0.3s; box-shadow: 0 4px 10px rgba(0,0,0,0.02); }
.how-mobile-tab.active { border-color: var(--accent-strong); background: oklch(95% 0.04 145); box-shadow: 0 10px 20px rgba(16, 185, 129, 0.1); }
.how-mobile-tab strong { display: block; font-size: 14px; color: var(--fg); margin-bottom: 4px; }
.how-mobile-tab span { display: block; font-size: 12px; color: var(--muted); }

.how-mobile-texts { display: none; margin-bottom: 40px; text-align: center; padding: 0 10px; }
.how-mobile-text { display: none; font-size: 16px; color: var(--muted); line-height: 1.5; }
.how-mobile-text.active { display: block; animation: fadeIn 0.4s ease; }

.how-screen { display: none; flex-direction: column; width: 100%; height: 100%; animation: fadeIn 0.4s ease; padding: 24px 16px; }
.how-screen.active { display: flex; }


/* --- СЕКЦИЯ: БЕЗОПАСНОСТЬ (ЕСЛИ НЕ ОТВЕТИЛ) --- */
.safety-desktop-view { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.95fr); gap: 24px; align-items: stretch; }
.safety-mobile-view { display: none; }

.desktop-timeline { display: grid; gap: 14px; }
.desktop-time-event {
  display: grid;
  grid-template-columns: 92px 1fr;
  gap: 16px;
  padding: 24px;
  border-radius: 20px;
  border: 1px solid var(--border);
  background: white;
  align-items: start;
  transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease;
}
.desktop-time-event:hover {
  transform: translateY(-2px);
  border-color: color-mix(in oklch, var(--accent), var(--border));
  box-shadow: 0 14px 34px oklch(40% 0.04 130 / .08);
}
.desktop-time-event .time {
  font-variant-numeric: tabular-nums;
  font-weight: 900;
  font-size: 20px;
  color: var(--accent-strong);
}
.desktop-time-event.alert .time { color: var(--danger); }
.desktop-time-event h3 { font-size: 18px; margin: 0 0 6px; color: var(--fg); }
.desktop-time-event p { margin: 0; color: var(--muted); font-size: 15px; line-height: 1.45; }

.sos-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 24px;
  background: linear-gradient(160deg, oklch(100% 0 0), oklch(95% 0.035 78));
}
.sos-button {
  min-height: 64px;
  width: 100%;
  border: 0;
  border-radius: 18px;
  background: var(--warm-strong);
  color: white;
  font-size: 18px;
  font-weight: 900;
  box-shadow: 0 20px 45px oklch(63% 0.16 58 / .24);
}

.timeline-slider-wrapper {
  background: white;
  border: 1px solid var(--border);
  border-radius: 28px;
  padding: 30px 24px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: 0 15px 40px rgba(0,0,0,0.02);
  margin-bottom: 24px;
}
.timeline-track {
  position: relative;
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 30px 0 40px;
  padding: 0 10px;
}
.timeline-line {
  position: absolute;
  left: 10px; right: 10px;
  height: 4px;
  background: var(--border);
  z-index: 1;
  border-radius: 2px;
}
.timeline-line-active {
  position: absolute;
  left: 10px;
  width: 0%;
  height: 4px;
  background: var(--accent);
  z-index: 2;
  transition: width 0.4s cubic-bezier(0.4, 0, 0.2, 1), background 0.4s ease;
  border-radius: 2px;
}
.timeline-node {
  position: relative;
  z-index: 3;
  width: 58px; height: 54px;
  border-radius: 50%;
  background: white;
  border: 2px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 13px;
  color: var(--muted);
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 4px 10px rgba(0,0,0,0.02);
}
.timeline-node.active {
  border-color: var(--accent-strong);
  color: var(--accent-strong);
  box-shadow: 0 0 15px color-mix(in oklch, var(--accent) 40%, transparent);
  transform: scale(1.1);
}
.timeline-node.active.alert {
  border-color: var(--danger);
  color: var(--danger);
  box-shadow: 0 0 15px color-mix(in oklch, var(--danger) 40%, transparent);
}
.timeline-detail { display: none; animation: fadeIn 0.4s ease; }
.timeline-detail.active { display: block; }
.timeline-detail h3 { font-size: 20px; margin-bottom: 8px; color: var(--fg); }
.timeline-detail p { font-size: 15px; color: var(--muted); line-height: 1.5; margin: 0; }


/* --- СЕКЦИЯ: ПРИВАТНОСТЬ --- */
.privacy-top-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-bottom: 24px; }
.privacy-card { display: flex; flex-direction: column; justify-content: space-between; min-height: 200px; }

.sandbox-panel {
  background: color-mix(in oklch, var(--surface), transparent 6%);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 40px;
  display: grid;
  grid-template-columns: 1.12fr 0.88fr;
  gap: 50px;
  align-items: center;
  box-shadow: 0 15px 40px rgba(0,0,0,0.02);
}

.custom-select-oklch, .custom-input-oklch {
  width: 100%;
  padding: 14px 16px;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: color-mix(in oklch, var(--surface-warm), white 40%);
  color: var(--fg);
  font-size: 15px;
  outline: none;
  transition: all 0.25s ease;
  margin-bottom: 12px;
  font-family: inherit;
}
.custom-select-oklch:focus, .custom-input-oklch:focus {
  border-color: var(--accent-strong);
  background: white;
  box-shadow: 0 0 12px color-mix(in oklch, var(--accent) 30%, transparent);
}
.custom-select-oklch {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%234B5563' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
  background-repeat: no-repeat;
  background-position: right 16px center;
  background-size: 14px;
  padding-right: 40px !important;
  cursor: pointer;
}

@keyframes notifPulse {
  0% { transform: scale(1); filter: brightness(1); }
  50% { transform: scale(0.98); filter: brightness(1.05); }
  100% { transform: scale(1); filter: brightness(1); }
}
.notif-pulse { animation: notifPulse 0.4s ease-out; }


/* --- СЕКЦИЯ: ДЛЯ КОГО --- */
.audience-grid {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 20px;
}
.audience-tabs { display: grid; gap: 10px; align-content: start; }
.audience-tab {
  min-height: 68px;
  border: 1px solid var(--border);
  background: white;
  border-radius: 18px;
  text-align: left;
  padding: 14px 16px;
  color: var(--muted);
  cursor: pointer;
}
.audience-tab strong { display: block; color: var(--fg); }
.audience-tab.active {
  border-color: oklch(74% 0.1 150);
  background: oklch(96% 0.036 145);
  color: var(--fg);
}

.audience-card {
  min-height: 360px;
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(240px, .72fr);
  gap: 24px;
  align-items: center;
}
.audience-photo {
  min-height: 290px;
  border-radius: 24px;
  overflow: hidden;
  background: var(--surface-warm);
}
.audience-photo img {
  width: 100%;
  height: 100%;
  min-height: 290px;
  object-fit: cover;
}

.audience-card-interactive {
  transition: background 0.8s cubic-bezier(0.4, 0, 0.2, 1),
              border-color 0.8s cubic-bezier(0.4, 0, 0.2, 1),
              box-shadow 0.8s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

/* Настройки стилей фона под каждую вкладку аудиторий */
.aud-bg-parents {
  background: linear-gradient(135deg, oklch(100% 0 0), oklch(96% 0.025 92)) !important;
  border-color: oklch(88% 0.025 112) !important;
  box-shadow: 0 20px 40px rgba(180, 130, 255, 0.01) !important;
}
.aud-bg-spouse {
  background: linear-gradient(135deg, oklch(100% 0 0), oklch(95% 0.02 220)) !important;
  border-color: oklch(86% 0.025 220) !important;
  box-shadow: 0 20px 40px rgba(0, 100, 255, 0.03) !important;
}
.aud-bg-teen {
  background: linear-gradient(135deg, oklch(100% 0 0), oklch(94% 0.015 280)) !important;
  border-color: oklch(86% 0.02 280) !important;
  box-shadow: 0 20px 40px rgba(150, 50, 255, 0.02) !important;
}


/* --- СЕКЦИЯ ОТЗЫВОВ (REVIEWS) --- */
.reviews-slider-wrap {
  position: relative;
  width: 100%;
}
.reviews-track {
  display: flex;
  gap: 24px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding: 10px 4px 30px;
  scroll-behavior: smooth;
  scrollbar-width: thin;
  scrollbar-color: var(--border) transparent;
}

/* Стилизация полосы прокрутки для браузеров Webkit */
.reviews-track::-webkit-scrollbar {
  height: 6px;
}
.reviews-track::-webkit-scrollbar-track {
  background: transparent;
}
.reviews-track::-webkit-scrollbar-thumb {
  background-color: var(--border);
  border-radius: 100px;
}

/* Карточка отзыва */
.review-card {
  flex: 0 0 380px; /* Оптимальная ширина карточки на десктопе */
  scroll-snap-align: start;
  background: white;
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 30px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: 0 10px 30px rgba(0,0,0,0.02);
  transition: transform 0.3s, border-color 0.3s, box-shadow 0.3s;
}
.review-card:hover {
  transform: translateY(-4px);
  border-color: color-mix(in oklch, var(--accent-strong), var(--border));
  box-shadow: 0 15px 35px rgba(0,0,0,0.04);
}

.review-text {
  font-size: 15px;
  line-height: 1.6;
  color: var(--fg);
  margin-bottom: 24px;
  font-style: italic;
  font-weight: 400;
}

.review-author {
  display: flex;
  flex-direction: column;
  gap: 4px;
  border-top: 1px solid color-mix(in oklch, var(--border), transparent 50%);
  padding-top: 16px;
}
.review-name {
  font-weight: 800;
  font-size: 16px;
  color: var(--fg);
}
.review-desc {
  font-size: 13px;
  color: var(--muted);
  font-weight: 600;
}

/* Навигация для десктопов */
.reviews-nav {
  display: flex;
  gap: 12px;
  margin-top: 24px;
  justify-content: flex-end;
}


/* --- СЕКЦИЯ: ЗАПУСК (FINAL SPLIT-BRIDGE) --- */
.split-bridge-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: 0 30px 80px oklch(35% 0.05 130 / 0.05);
  background: white;
}
.bridge-day {
  padding: clamp(30px, 5vw, 56px);
  background: linear-gradient(135deg, white, oklch(99% 0.005 110));
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.bridge-night {
  padding: clamp(30px, 5vw, 56px);
  background: linear-gradient(135deg, #001A4D, #1A3C8E);
  color: oklch(95% 0.01 100);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  overflow: hidden;
}
.bridge-night::after {
  content: "";
  position: absolute;
  right: -60px; top: -60px;
  width: 220px; height: 220px;
  border-radius: 50%;
  background: oklch(72% 0.15 70 / .14);
  filter: blur(25px);
  pointer-events: none;
}
.bridge-title-dark {
  font-family: var(--font-display);
  font-size: clamp(28px, 3.5vw, 38px);
  line-height: 1.15;
  color: white;
  margin-bottom: 16px;
}
.bridge-text-dark {
  font-size: 17px;
  line-height: 1.6;
  color: oklch(90% 0.02 110);
  margin: 0 0 28px;
  font-weight: 400;
  text-wrap: pretty;
}


/* --- ПОДВАЛ (FOOTER) --- */
.footer {
  background: color-mix(in oklch, var(--surface-warm), transparent 30%);
  border-top: 1px solid var(--border);
  padding: 60px 0 40px;
  color: var(--muted);
  font-size: 14px;
  position: relative;
  z-index: 2;
}


/* --- МОДАЛЬНОЕ ОКНО --- */
.modal {
  position: fixed;
  inset: 0;
  display: none;
  place-items: center;
  padding: 22px;
  background: oklch(16% 0.025 160 / .48);
  z-index: 50;
}
.modal.open { display: grid; }
.modal-card {
  width: min(460px, 100%);
  border-radius: 24px;
  background: white;
  padding: 26px;
  box-shadow: 0 30px 90px oklch(12% 0.03 160 / .28);
}
.modal-card p { color: var(--muted); }
.modal-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 20px; }


/* --- ЭФФЕКТЫ ПОЯВЛЕНИЯ (ANIMATIONS) --- */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  animation: rise .7s ease forwards;
}
.reveal:nth-child(2) { animation-delay: .08s; }
.reveal:nth-child(3) { animation-delay: .16s; }

@keyframes rise { to { opacity: 1; transform: translateY(0); } }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }


/* ==========================================================================
   АДАПТИВНОСТЬ / МЕДИА-ЗАПРОСЫ
   ========================================================================== */

@media (max-width: 980px) {
  /* Меню и Топбар */
  .topbar .nav-links,
  .topbar .btn-primary { display: none !important; }
  #menu-toggle-btn { display: block !important; }

  /* Центрирование и воздух в Hero-блоке */
  .hero {
    grid-template-columns: 1fr;
    padding-top: 80px !important;
    padding-bottom: 40px !important;
    min-height: auto !important;
  }
  .hero > div:first-child {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    margin-bottom: 40px;
  }
  .hero h1 {
    text-align: center !important;
    margin-left: auto !important;
    margin-right: auto !important;
  }
  .hero .lead {
    margin-top: 16px !important;
    margin-bottom: 32px !important;
  }
  .hero .proof-row {
    justify-content: center !important;
    margin-top: 24px !important;
  }

  /* Визуальные контейнеры в Hero */
  .hero .eyebrow::before {
    display: none !important;
  }
  .hero-comp-wrapper {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    height: auto !important;
    min-height: auto !important;
    margin-top: 40px;
  }
  .hero-comp-photo {
    position: relative !important;
    width: 100% !important;
    max-width: 400px !important;
  }
  .hero-comp-phone {
    position: relative !important;
    right: auto !important;
    bottom: auto !important;
    margin-top: -60px !important;
  }

  /* Шапка и заголовки */
  .section-head { display: grid; align-items: start; }

  /* Тумблер выбора сценария */
  .scen-toggle-wrap {
    width: 100%;
    display: flex;
  }
  .scen-btn {
    flex: 1;
    padding: 16px 20px !important;
    font-size: 14px !important;
  }

  /* Блок "Как работает" на мобильных */
  .how-wrapper { grid-template-columns: 1fr; gap: 0; }
  .how-steps-col { display: none; }
  .how-mobile-tabs,
  .how-mobile-texts { display: flex; }
  .how-mobile-texts { display: block; }
  .how-phone-col { position: relative; top: 0; height: auto; margin: 0 auto; width: 100%; }

  /* Блок "Безопасность" на мобильных */
  .safety-desktop-view { display: none; }
  .safety-mobile-view { display: block; }

  /* Блок "Приватность" на мобильных */
  .privacy-top-grid { grid-template-columns: 1fr; }
  .privacy-card {
    text-align: center !important;
    align-items: center !important;
  }
  .privacy-card .proof-chip {
    margin-left: auto !important;
    margin-right: auto !important;
    margin-top: 20px !important;
  }
  .sandbox-panel { grid-template-columns: 1fr; gap: 40px; padding: 30px 24px; }

  /* Аудитории на мобильных */
  .audience-grid { grid-template-columns: 1fr; }
  .audience-card { grid-template-columns: 1fr; }

  /* Адаптив для отзывов */
  .review-card {
    flex: 0 0 295px; /* Сужаем карточки на мобильных устройствах */
    padding: 24px;
  }
  .reviews-track {
    gap: 16px;
  }
  .reviews-nav {
    display: none !important; /* Прячем стрелки навигации на сенсорных экранах */
  }

  /* Финал на мобильных */
  .split-bridge-container { grid-template-columns: 1fr; }
  .bridge-day { border-bottom: 1px solid var(--border); }
}

@media (max-width: 640px) {
  body { font-size: 16px; }
  .page { width: min(100% - 24px, 1180px); }
  .hero { padding-top: 34px; }
  h1 { font-size: clamp(44px, 13vw, 62px); }
  h2 { font-size: clamp(34px, 10vw, 48px); }
  .hero-actions { display: grid; }
  .btn { width: 100%; min-height: 50px; }
  .panel { border-radius: 18px; }
}