/* ===========================================
   AI для «Лекон» — лендинг коммерческого предложения
   Цвета бренда: медицинский синий #0099CC, белый, серый
   =========================================== */

:root {
  --primary: #0099CC;
  --primary-dark: #0077A3;
  --primary-light: #E6F7FB;
  --accent: #FF6B35;
  --accent-dark: #E55A2B;
  --text: #1A2B3C;
  --text-light: #5A6B7C;
  --text-muted: #8A9BAC;
  --bg: #FFFFFF;
  --bg-alt: #F7FAFC;
  --bg-dark: #0D1B2A;
  --border: #E1E8ED;
  --success: #28A745;
  --danger: #DC3545;
  --shadow: 0 4px 20px rgba(0, 153, 204, 0.08);
  --shadow-lg: 0 10px 40px rgba(0, 153, 204, 0.15);
  --radius: 16px;
  --radius-sm: 8px;
  --max-width: 1200px;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Inter', 'Roboto', sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  overflow-x: hidden;
}

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

/* ===== HEADER ===== */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
  z-index: 100;
  padding: 14px 0;
}

.header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 700;
  font-size: 18px;
  color: var(--text);
}

.brand-icon {
  width: 36px;
  height: 36px;
  background: var(--primary);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 18px;
}

.nav {
  display: flex;
  gap: 32px;
}

.nav a {
  color: var(--text-light);
  text-decoration: none;
  font-weight: 500;
  font-size: 15px;
  transition: color 0.2s;
}

.nav a:hover {
  color: var(--primary);
}

.btn-cta {
  background: var(--primary);
  color: white;
  padding: 10px 22px;
  border-radius: var(--radius-sm);
  text-decoration: none;
  font-weight: 600;
  font-size: 15px;
  transition: all 0.2s;
}

.btn-cta:hover {
  background: var(--primary-dark);
  transform: translateY(-1px);
}

/* ===== HERO ===== */
.hero {
  padding: 140px 0 80px;
  background: linear-gradient(135deg, var(--primary-light) 0%, #FFFFFF 50%);
  position: relative;
  overflow: hidden;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.hero-badge {
  display: inline-block;
  background: white;
  border: 1px solid var(--primary);
  color: var(--primary);
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 24px;
}

.hero h1 {
  font-size: 52px;
  line-height: 1.1;
  font-weight: 800;
  margin-bottom: 24px;
  color: var(--text);
  letter-spacing: -0.02em;
}

.hero h1 .accent {
  color: var(--primary);
}

.hero-subtitle {
  font-size: 19px;
  color: var(--text-light);
  margin-bottom: 32px;
  line-height: 1.6;
}

.hero-stats {
  display: flex;
  gap: 32px;
  margin-bottom: 36px;
}

.hero-stat {
  text-align: left;
}

.hero-stat-value {
  font-size: 32px;
  font-weight: 800;
  color: var(--primary);
  line-height: 1;
}

.hero-stat-label {
  font-size: 13px;
  color: var(--text-muted);
  margin-top: 4px;
}

.hero-actions {
  display: flex;
  gap: 16px;
  align-items: center;
}

.btn-primary {
  background: var(--primary);
  color: white;
  padding: 16px 32px;
  border-radius: var(--radius-sm);
  text-decoration: none;
  font-weight: 700;
  font-size: 16px;
  display: inline-block;
  transition: all 0.2s;
  box-shadow: var(--shadow);
}

.btn-primary:hover {
  background: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.btn-secondary {
  color: var(--primary);
  padding: 16px 24px;
  text-decoration: none;
  font-weight: 600;
  font-size: 16px;
}

.hero-visual {
  position: relative;
}

.hero-card {
  background: white;
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border);
}

.hero-card-title {
  font-weight: 700;
  margin-bottom: 20px;
  color: var(--text);
  font-size: 15px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.chat-bubble {
  padding: 12px 16px;
  border-radius: 14px;
  margin-bottom: 10px;
  font-size: 14px;
  line-height: 1.5;
  max-width: 85%;
}

.chat-bubble.bot {
  background: var(--primary-light);
  color: var(--text);
  border-bottom-left-radius: 4px;
}

.chat-bubble.user {
  background: var(--primary);
  color: white;
  margin-left: auto;
  border-bottom-right-radius: 4px;
}

.chat-time {
  font-size: 11px;
  color: var(--text-muted);
  text-align: right;
  margin-top: 8px;
}

/* ===== SECTIONS ===== */
.section {
  padding: 80px 0;
}

.section-alt {
  background: var(--bg-alt);
}

.section-title {
  font-size: 38px;
  font-weight: 800;
  text-align: center;
  margin-bottom: 16px;
  letter-spacing: -0.02em;
}

.section-subtitle {
  font-size: 18px;
  color: var(--text-light);
  text-align: center;
  max-width: 700px;
  margin: 0 auto 60px;
}

.section-eyebrow {
  display: block;
  text-align: center;
  color: var(--primary);
  font-weight: 700;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 12px;
}

/* ===== PROBLEM ===== */
.problem-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.problem-card {
  background: white;
  border-radius: var(--radius);
  padding: 32px;
  border: 1px solid var(--border);
  transition: all 0.3s;
}

.problem-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--primary);
}

.problem-icon {
  font-size: 36px;
  margin-bottom: 16px;
}

.problem-card h3 {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 12px;
}

.problem-card p {
  color: var(--text-light);
  font-size: 15px;
}

.problem-metric {
  display: inline-block;
  background: #FFF0ED;
  color: var(--danger);
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 600;
  margin-top: 12px;
}

/* ===== SCENARIOS ===== */
.scenarios-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}

.scenario-card {
  background: white;
  border-radius: var(--radius);
  padding: 24px;
  border: 1px solid var(--border);
  transition: all 0.2s;
}

.scenario-card:hover {
  border-color: var(--primary);
  transform: translateY(-2px);
}

.scenario-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  background: var(--primary-light);
  color: var(--primary);
  border-radius: 50%;
  font-weight: 700;
  font-size: 14px;
  margin-bottom: 12px;
}

.scenario-card h4 {
  font-size: 17px;
  font-weight: 700;
  margin-bottom: 8px;
}

.scenario-example {
  background: var(--bg-alt);
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  font-size: 13px;
  color: var(--text-light);
  margin-top: 12px;
  font-style: italic;
}

.scenario-1c {
  display: inline-block;
  background: var(--primary-light);
  color: var(--primary);
  padding: 3px 8px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 600;
  margin-top: 8px;
}

/* ===== HOW IT WORKS ===== */
.flow {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  position: relative;
}

.flow-step {
  text-align: center;
  position: relative;
}

.flow-icon {
  width: 80px;
  height: 80px;
  background: white;
  border: 2px solid var(--primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 32px;
  margin: 0 auto 16px;
  position: relative;
  z-index: 2;
}

.flow-step h4 {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 8px;
}

.flow-step p {
  font-size: 13px;
  color: var(--text-light);
  line-height: 1.5;
}

.flow-step:not(:last-child)::after {
  content: '→';
  position: absolute;
  top: 36px;
  right: -16px;
  font-size: 24px;
  color: var(--primary);
  z-index: 1;
}

/* ===== SAFETY (УСИЛЕННАЯ СЕКЦИЯ) ===== */

/* Сама секция — белая (var(--bg)), чтобы выделяться на серых соседях
   (how — section-alt сверху, pricing — section-alt снизу) */
.safety-section {
  background: var(--bg);
  position: relative;
}

/* Заголовки секции — внутри .safety-box, белые на синем */
.safety-section .section-eyebrow {
  color: rgba(255, 255, 255, 0.9);
}

.safety-title {
  color: white !important;
}

.safety-subtitle {
  color: rgba(255, 255, 255, 0.85) !important;
}

/* Синий gradient-box (как .roi-box) — обёртка всего содержимого, включая заголовки */
.safety-box {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  border-radius: var(--radius);
  padding: 48px;
  color: white;
  text-align: center;
  box-shadow: 0 30px 80px rgba(13, 27, 42, 0.35), 0 12px 32px rgba(0, 153, 204, 0.20);
}


/* Hero-щит безопасности — большой значок */
.safety-hero {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  padding: 24px;
  background: rgba(40, 167, 69, 0.18);
  border: 1.5px solid rgba(40, 167, 69, 0.7);
  border-radius: var(--radius);
  margin: 32px 0;
}

.safety-hero-icon {
  font-size: 48px;
  line-height: 1;
  flex-shrink: 0;
}

.safety-hero-text {
  text-align: left;
}

.safety-hero-title {
  font-size: 20px;
  font-weight: 700;
  color: white;
  margin-bottom: 4px;
}

.safety-hero-subtitle {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.7);
  margin: 0;
}

/* 3 уровня защиты — большие карточки */
.safety-levels {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-bottom: 60px;
}

.safety-level {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius);
  padding: 24px;
  text-align: center;
  transition: all 0.3s;
}

.safety-level:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: var(--primary);
  transform: translateY(-4px);
}

.safety-level-icon {
  width: 56px;
  height: 56px;
  background: linear-gradient(135deg, var(--success) 0%, var(--primary) 100%);
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  margin: 0 auto 16px;
}

.safety-level h4 {
  font-size: 16px;
  font-weight: 700;
  color: white;
  margin-bottom: 8px;
}

.safety-level p {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.7);
  line-height: 1.5;
  margin: 0;
}

.safety-level-num {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  color: var(--primary);
  background: rgba(0, 153, 204, 0.15);
  padding: 2px 8px;
  border-radius: 4px;
  margin-bottom: 12px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

/* Да/Нет список */
.safety-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  align-items: start;
}

/* Подложки для колонок "Что делает / НЕ делает".
   Полупрозрачный белый фон + цветная левая граница как акцент.
   Изолирует зелёный/красный от синего gradient фона. */
.safety-column {
  background: rgba(255, 255, 255, 0.08);
  border-radius: var(--radius);
  padding: 24px;
  border-left: 4px solid rgba(255, 255, 255, 0.4);
  backdrop-filter: blur(4px);
}

.safety-column-yes {
  border-left-color: rgba(40, 167, 69, 0.8);
}

.safety-column-no {
  border-left-color: rgba(220, 53, 69, 0.8);
}

.safety-column-title {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 2px solid;
  display: flex;
  align-items: center;
  gap: 8px;
}

.safety-column-title.yes {
  color: white;
  border-color: rgba(255, 255, 255, 0.3);
}

.safety-column-title.no {
  color: white;
  border-color: rgba(255, 255, 255, 0.3);
}

.safety-list {
  list-style: none;
}

.safety-item {
  display: flex;
  align-items: start;
  gap: 12px;
  padding: 14px 16px;
  background: rgba(255, 255, 255, 0.04);
  border-radius: var(--radius-sm);
  margin-bottom: 10px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  transition: all 0.2s;
}

.safety-item:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.15);
}

.safety-icon {
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 700;
}

.safety-icon.yes {
  background: rgba(255, 255, 255, 0.95);
  color: var(--success);
}

.safety-icon.no {
  background: rgba(255, 255, 255, 0.95);
  color: var(--danger);
}

.safety-item-text {
  font-size: 14px;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.85);
}

.safety-item-text strong {
  display: block;
  margin-bottom: 2px;
  color: white;
}

/* Нормативно-правовая база — бейджи внизу секции */
.safety-legal {
  margin-top: 48px;
  padding: 32px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius);
}

.safety-legal-title {
  text-align: center;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: rgba(255, 255, 255, 0.5);
  font-weight: 700;
  margin-bottom: 20px;
}

.safety-legal-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
}

.safety-legal-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 100px;
  color: rgba(255, 255, 255, 0.9);
  font-size: 13px;
  font-weight: 500;
}

.safety-legal-pill-icon {
  font-size: 14px;
}


/* ===== PRICING ===== */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-bottom: 60px;
}

.pricing-card {
  background: white;
  border-radius: var(--radius);
  padding: 32px;
  border: 2px solid var(--border);
  position: relative;
  transition: all 0.3s;
}

.pricing-card.featured {
  border-color: var(--primary);
  transform: scale(1.03);
  box-shadow: var(--shadow-lg);
}

.pricing-badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--primary);
  color: white;
  padding: 4px 16px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 700;
}

.pricing-name {
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  font-weight: 700;
  margin-bottom: 8px;
}

.pricing-price {
  font-size: 32px;
  font-weight: 800;
  color: var(--text);
  margin-bottom: 4px;
}

.pricing-price.free {
  color: var(--success);
}

.pricing-term {
  font-size: 14px;
  color: var(--text-muted);
  margin-bottom: 24px;
}

.pricing-features {
  list-style: none;
  margin-bottom: 24px;
}

.pricing-features li {
  padding: 8px 0;
  font-size: 14px;
  color: var(--text-light);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: start;
  gap: 8px;
}

.pricing-features li::before {
  content: '✓';
  color: var(--success);
  font-weight: 700;
  flex-shrink: 0;
}

.pricing-cta {
  display: block;
  text-align: center;
  padding: 12px;
  background: var(--primary);
  color: white;
  text-decoration: none;
  border-radius: var(--radius-sm);
  font-weight: 600;
  transition: background 0.2s;
}

.pricing-cta:hover {
  background: var(--primary-dark);
}

.pricing-cta.outline {
  background: white;
  color: var(--primary);
  border: 1px solid var(--primary);
}

.pricing-cta.outline:hover {
  background: var(--primary-light);
}

/* ===== РАСКРЫВАЮЩИЕСЯ ПУНКТЫ PRICING (details/summary) ===== */

/* Список с кликабельными пунктами */
.pricing-features-expandable li {
  cursor: pointer;
}

/* Убираем стандартную галочку ::before из pricing-features —
   она теперь ВНУТРИ облачка summary, чтобы галочка и текст
   были выровнены по одной baseline. */
.pricing-features-expandable > li::before {
  content: none !important;
}

/* Облачко summary: вся строка пункта — единый кликабельный блок */
.pricing-detail summary {
  list-style: none;
  outline: none;
  cursor: pointer;
  user-select: none;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  background: var(--bg-alt);
  border: 1px solid var(--border);
  transition: background 0.15s, transform 0.15s, border-color 0.15s;
}

.pricing-detail summary::-webkit-details-marker {
  display: none;
}

/* Зелёная галочка слева — ВНУТРИ облачка, выровнена с текстом */
.pricing-detail summary::before {
  content: '✓';
  color: var(--success);
  font-weight: 700;
  font-size: 13px;
  flex-shrink: 0;
}

/* Кастомная иконка справа (плюс/минус в круге) */
.pricing-detail summary::after {
  content: '+';
  font-size: 16px;
  font-weight: 600;
  color: var(--primary);
  transition: transform 0.2s;
  flex-shrink: 0;
  margin-left: auto;
  width: 22px;
  height: 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--primary-light);
  border-radius: 50%;
}

.pricing-detail[open] summary::after {
  content: '−';
  background: var(--primary);
  color: white;
}

/* summary при наведении */
.pricing-detail summary:hover {
  color: var(--primary);
  background: var(--primary-light);
  transform: translateY(-1px);
  border-color: var(--primary);
}

.pricing-detail[open] > summary {
  color: var(--primary);
  background: var(--primary-light);
  border-color: var(--primary);
}

/* Раскрывающийся контент */
.pricing-detail-content {
  padding: 12px 0 4px 0;
  margin-top: 8px;
  border-top: 1px solid var(--border);
  font-size: 13px;
  line-height: 1.6;
  color: var(--text-light);
  animation: fadeIn 0.2s ease;
}

.pricing-detail-content ul {
  margin: 8px 0 0 0;
  padding-left: 18px;
  list-style: disc;
}

.pricing-detail-content li {
  padding: 3px 0;
  cursor: default;
}

.pricing-detail-content li::before {
  content: none; /* убираем галочку-псевдоэлемент из pricing-features */
}

.pricing-detail-content strong {
  color: var(--text);
  font-weight: 600;
}

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

/* ===== РАСКРЫВАЮЩИЕСЯ КАРТОЧКИ СЦЕНАРИЕВ ===== */
.scenario-detail {
  margin-top: 12px;
}

.scenario-detail summary {
  list-style: none;
  outline: none;
  cursor: pointer;
  font-size: 13px;
  font-weight: 600;
  color: var(--primary);
  user-select: none;
  padding: 10px 14px;
  background: var(--primary-light);
  border: 1px solid var(--primary);
  border-radius: var(--radius-sm);
  transition: all 0.2s;
  text-align: center;
  display: block;
}

.scenario-detail summary::-webkit-details-marker {
  display: none;
}

.scenario-detail summary:hover {
  background: var(--primary);
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 153, 204, 0.25);
}

.scenario-dialog {
  margin-top: 12px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  animation: fadeIn 0.2s ease;
}

.scenario-dialog .chat-bubble {
  font-size: 13px;
  padding: 8px 12px;
  max-width: 90%;
}

/* ===== РАСКРЫВАЮЩИЕСЯ ROI ЦИФРЫ ===== */
.roi-detail {
  width: 100%;
  position: relative;
}

.roi-detail summary {
  list-style: none;
  outline: none;
  cursor: pointer;
  user-select: none;
  text-align: center;
  padding: 10px 8px;
  border-radius: var(--radius-sm);
  border: 1.5px dashed rgba(255, 217, 61, 0.45);
  transition: all 0.2s;
  position: relative;
  display: block;
}

.roi-detail summary::-webkit-details-marker {
  display: none;
}

/* Лёгкая пульсация золотой рамки — призыв к клику */
@keyframes roiPulse {
  0%, 100% { border-color: rgba(255, 217, 61, 0.35); }
  50%      { border-color: rgba(255, 217, 61, 0.75); }
}

.roi-detail summary {
  animation: roiPulse 2.5s ease-in-out infinite;
}

.roi-detail summary:hover {
  background: rgba(255, 217, 61, 0.1);
  border-color: rgba(255, 217, 61, 0.9);
  border-style: solid;
  animation: none;
}

.roi-detail[open] summary {
  background: rgba(255, 217, 61, 0.15);
  border-color: rgba(255, 217, 61, 0.9);
  border-style: solid;
  animation: none;
}

/* Иконка ℹ рядом с цифрой — прямая подсказка */
.roi-detail summary .roi-bottom-value::after {
  content: ' ℹ';
  font-size: 0.55em;
  font-weight: 400;
  vertical-align: super;
  color: rgba(255, 217, 61, 0.9);
  margin-left: 4px;
}

/* Подпись под цифрой — не должна попасть под рамку */
.roi-detail + .roi-bottom-label,
.roi-bottom-item .roi-bottom-label {
  display: block;
  margin-top: 8px;
}

.roi-detail-content {
  margin-top: 12px;
  padding: 12px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-sm);
  font-size: 12px;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.85);
  text-align: left;
  animation: fadeIn 0.2s ease;
}

/* ===== РАСКРЫВАЮЩИЕСЯ ПРАВОВЫЕ БЕЙДЖИ ===== */
.safety-legal-pill-details {
  position: relative;
}

.safety-legal-pill-details summary {
  list-style: none;
  outline: none;
  cursor: pointer;
  user-select: none;
  position: relative;
  transition: transform 0.2s, background 0.2s, border-color 0.2s, box-shadow 0.2s;
}

.safety-legal-pill-details summary::-webkit-details-marker {
  display: none;
}

/* Hover — пилюля приподнимается и подсвечивается золотым.
   summary сам имеет класс .safety-legal-pill, поэтому стили
   применяются напрямую к summary, а не к дочернему элементу. */
.safety-legal-pill-details summary:hover,
.safety-legal-pill-details summary:focus-visible {
  background: rgba(255, 217, 61, 0.12);
  border-color: rgba(255, 217, 61, 0.5);
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(255, 217, 61, 0.15);
}

/* Иконка ℹ внутри пилюли — после текста */
.safety-legal-pill-details summary .safety-legal-pill::after {
  content: 'ℹ';
  font-size: 10px;
  font-weight: 600;
  color: rgba(255, 217, 61, 0.8);
  margin-left: 6px;
  vertical-align: super;
}

.safety-legal-pill-details[open] .safety-legal-pill {
  background: rgba(255, 217, 61, 0.15);
  border-color: rgba(255, 217, 61, 0.5);
  color: white;
}

.safety-legal-pill-details[open] .safety-legal-pill::after {
  content: '✕';
  color: rgba(255, 217, 61, 0.9);
}

.safety-legal-pill-content {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  right: 0;
  min-width: 280px;
  padding: 14px 16px;
  background: rgba(13, 27, 42, 0.95);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--radius-sm);
  font-size: 12px;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.9);
  text-align: left;
  z-index: 10;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
  animation: fadeIn 0.2s ease;
}

/* ===== WHY US ===== */
.why-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.why-card {
  text-align: center;
  padding: 32px 24px;
}

.why-icon {
  width: 64px;
  height: 64px;
  background: var(--primary-light);
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  margin: 0 auto 20px;
}

.why-card h3 {
  font-size: 19px;
  font-weight: 700;
  margin-bottom: 10px;
}

.why-card p {
  color: var(--text-light);
  font-size: 15px;
}

/* ===== FAQ ===== */
.faq-group {
  max-width: 840px;
  margin: 0 auto 40px;
}

.faq-group:last-child {
  margin-bottom: 0;
}

.faq-group-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--text);
  margin: 24px 0 12px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--primary-light);
}

.faq-item {
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  margin-bottom: 10px;
  overflow: hidden;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.faq-item:hover {
  border-color: var(--primary);
}

.faq-item[open] {
  border-color: var(--primary);
  box-shadow: 0 4px 12px rgba(0, 153, 204, 0.1);
}

.faq-item summary {
  list-style: none;
  outline: none;
  cursor: pointer;
  user-select: none;
  padding: 16px 20px;
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  transition: color 0.15s;
}

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

.faq-item summary:hover {
  color: var(--primary);
}

.faq-item summary::after {
  content: '+';
  font-size: 22px;
  font-weight: 300;
  color: var(--primary);
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--primary-light);
  border-radius: 50%;
  transition: transform 0.2s;
}

.faq-item[open] summary::after {
  content: '−';
  background: var(--primary);
  color: white;
}

.faq-answer {
  padding: 0 20px 16px;
  font-size: 14px;
  line-height: 1.7;
  color: var(--text-light);
  animation: fadeIn 0.2s ease;
}

.faq-answer strong {
  color: var(--text);
  font-weight: 600;
}

/* ===== ROI ===== */
.roi-box {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  border-radius: var(--radius);
  padding: 48px;
  color: white;
  text-align: center;
  box-shadow: 0 30px 80px rgba(13, 27, 42, 0.35), 0 12px 32px rgba(0, 153, 204, 0.20);
}

.roi-title {
  font-size: 28px;
  font-weight: 800;
  margin-bottom: 32px;
}

.roi-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
}

.roi-stat-value {
  font-size: 48px;
  font-weight: 800;
  line-height: 1;
  margin-bottom: 8px;
}

.roi-stat-label {
  font-size: 14px;
  opacity: 0.9;
}

/* Боль: что теряет клиника */
.roi-pain {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  padding: 24px;
  background: rgba(255, 107, 53, 0.12);
  border: 1px solid rgba(255, 107, 53, 0.4);
  border-radius: var(--radius);
  margin: 32px 0;
  text-align: left;
}

.roi-pain-icon {
  font-size: 36px;
  line-height: 1;
  flex-shrink: 0;
}

.roi-pain-text {
  font-size: 15px;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.92);
}

.roi-pain-text strong {
  color: white;
  font-weight: 700;
}

/* Двухколоночный блок: метрики ↔ деньги */
.roi-columns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  margin: 32px 0;
  text-align: left;
}

.roi-column-title {
  font-size: 15px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding-bottom: 12px;
  margin-bottom: 16px;
  border-bottom: 2px solid rgba(255, 255, 255, 0.2);
  color: white;
}

.roi-column-money .roi-column-title {
  color: #FFD93D;
  border-color: rgba(255, 217, 61, 0.4);
}

.roi-list {
  list-style: none;
}

.roi-list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 10px 0;
  font-size: 14px;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.88);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.roi-list li:last-child {
  border-bottom: none;
}

.roi-list li strong {
  color: white;
  font-weight: 600;
}

.roi-arrow {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 700;
  color: white;
}

.roi-column-money .roi-arrow {
  background: rgba(255, 217, 61, 0.2);
  color: #FFD93D;
}

/* Bottom line: 4 метрики в ряд.
   Используем CSS Grid вместо flex — предсказуемо работает
   и в Chrome, и в Firefox (flex + flex-wrap в FF давал перенос на новую строку). */
.roi-bottom-line {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  align-items: center;
  gap: 16px;
  padding: 24px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: var(--radius);
  margin-top: 24px;
}

.roi-bottom-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  min-width: 0;  /* критично для Firefox: позволяет контенту сжиматься */
  text-align: center;
}

.roi-bottom-value {
  font-size: 24px;
  font-weight: 800;
  color: white;
  line-height: 1;
}

.roi-bottom-label {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.7);
  text-align: center;
}

.roi-bottom-divider {
  /* В Grid-раскладке не нужен — gap уже разделяет элементы.
     Оставляем скрытым; на мобильных (1 колонка) тоже не нужен. */
  display: none;
}

/* Ключевой вывод */
.roi-conclusion {
  margin-top: 28px;
  padding: 20px 24px;
  background: rgba(255, 217, 61, 0.08);
  border-left: 4px solid #FFD93D;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  font-size: 15px;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.95);
  font-style: italic;
  text-align: left;
}

/* Сноска с пояснениями */
.roi-disclaimer {
  margin-top: 20px;
  padding: 16px 20px;
  font-size: 12px;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.55);
  border-top: 1px dashed rgba(255, 255, 255, 0.15);
  text-align: left;
}

.roi-disclaimer strong {
  color: rgba(255, 255, 255, 0.8);
  font-weight: 600;
}

/* ===== CTA FINAL ===== */
.cta-final {
  background: var(--bg-dark);
  color: white;
  text-align: center;
  padding: 100px 0;
}

.cta-final h2 {
  font-size: 42px;
  font-weight: 800;
  margin-bottom: 16px;
}

.cta-final p {
  font-size: 18px;
  opacity: 0.8;
  margin-bottom: 40px;
}

.cta-final .btn-primary {
  background: white;
  color: var(--text);
}

.cta-final .btn-primary:hover {
  background: var(--bg-alt);
}

/* ===== FOOTER ===== */
.footer {
  background: var(--bg-dark);
  color: var(--text-muted);
  padding: 48px 0 32px;
  border-top: 1px solid rgba(255,255,255,0.1);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 32px;
}

.footer h4 {
  color: white;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 16px;
}

.footer ul {
  list-style: none;
}

.footer ul li {
  padding: 4px 0;
  font-size: 14px;
}

.footer-bottom {
  padding-top: 24px;
  border-top: 1px solid rgba(255,255,255,0.1);
  text-align: center;
  font-size: 13px;
}

/* ===== КЛИКАБЕЛЬНЫЕ КОНТАКТЫ ===== */
.contact-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: inherit;
  text-decoration: none;
  padding: 4px 0;
  transition: opacity 0.2s;
  -webkit-tap-highlight-color: rgba(0, 153, 204, 0.2);
}

.contact-link:hover {
  opacity: 0.7;
}

.contact-link:active {
  opacity: 0.5;
}

/* Тёмная тема (footer, cta-final) */
.contact-link-dark {
  color: white;
  text-decoration: none;
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
  padding-bottom: 2px;
  transition: all 0.2s;
}

.contact-link-dark:hover {
  color: var(--primary);
  border-bottom-color: var(--primary);
  opacity: 1;
}

/* Контактные бейджи в CTA */
.contact-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  margin-top: 28px;
}

.contact-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 100px;
  color: white;
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  transition: all 0.2s;
  -webkit-tap-highlight-color: rgba(0, 153, 204, 0.3);
}

.contact-pill:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: var(--primary);
  transform: translateY(-1px);
  color: white;
}

.contact-pill-icon {
  font-size: 16px;
  line-height: 1;
}

/* Footer contacts — как ссылки */
.footer ul li a {
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.2s;
  display: inline-block;
  padding: 2px 0;
}

.footer ul li a:hover {
  color: var(--primary);
}

.footer ul li a::before {
  margin-right: 4px;
}

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

/* Планшеты (769-1024px) — десктоп ужимается, но сетки 2-колоночные где возможно */
@media (max-width: 1024px) {
  .hero h1 { font-size: 44px; }
  .hero-grid { gap: 40px; }
  .roi-stats { grid-template-columns: repeat(2, 1fr); gap: 28px; }
  .pricing-card.featured { transform: none; }
  .max-width { padding: 0 20px; }
}

/* Малые планшеты / большие телефоны (481-768px) */
@media (max-width: 768px) {
  .nav { display: none; }

  /* Header — компактнее */
  .header { padding: 10px 0; }
  .brand { font-size: 16px; }
  .brand-icon { width: 32px; height: 32px; font-size: 16px; }
  .btn-cta { padding: 8px 16px; font-size: 14px; }

  /* Hero — стекаем вертикально, уменьшаем hero */
  .hero { padding: 110px 0 60px; }
  .hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .hero h1 { font-size: 34px; }
  .hero-subtitle { font-size: 17px; }
  .hero-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    width: 100%;
  }
  .hero-stat-value { font-size: 26px; }
  .hero-actions { flex-direction: column; align-items: stretch; }
  .hero-actions .btn-primary,
  .hero-actions .btn-secondary { text-align: center; }

  /* Sections — меньше padding */
  .section { padding: 60px 0; }
  .section-title { font-size: 26px; }
  .section-subtitle { font-size: 16px; margin-bottom: 40px; }

  /* Сетки → 1 или 2 колонки */
  .problem-grid { grid-template-columns: 1fr; }
  .why-grid { grid-template-columns: 1fr; }
  .pricing-grid { grid-template-columns: 1fr; }
  .safety-grid { grid-template-columns: 1fr; gap: 24px; }

  /* Flow — вертикальная лента с downward arrow */
  .flow {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .flow-step:not(:last-child)::after {
    content: '↓';
    top: auto;
    right: auto;
    bottom: -24px;
    left: 50%;
    transform: translateX(-50%);
  }

  /* Scenarios — 1 колонка */
  .scenarios-grid { grid-template-columns: 1fr; }

  /* ROI новые элементы на планшетах */
  .roi-columns { grid-template-columns: 1fr; gap: 24px; }
  .roi-pain { flex-direction: column; gap: 12px; padding: 20px; }
  .roi-pain-icon { font-size: 30px; }
  .roi-pain-text { font-size: 14px; }
  .roi-bottom-line { grid-template-columns: repeat(2, 1fr); gap: 12px; padding: 20px; }
  .roi-bottom-value { font-size: 20px; }
  .roi-bottom-label { font-size: 11px; }


  /* Safety — уровни защиты в 1 колонку */
  .safety-levels { grid-template-columns: 1fr; gap: 16px; }
  .safety-level { padding: 20px; }
  .safety-hero { flex-direction: column; text-align: center; gap: 12px; padding: 20px; }
  .safety-hero-text { text-align: center; }
  .safety-legal { padding: 24px 20px; }
  .safety-legal-pills { gap: 8px; }
  .safety-box { padding: 32px 24px; }

  /* ROI */
  .roi-box { padding: 32px 24px; }
  .roi-title { font-size: 22px; }
  .roi-stats { grid-template-columns: repeat(2, 1fr); gap: 24px; }
  .roi-stat-value { font-size: 34px; }

  /* CTA final */
  .cta-final { padding: 70px 0; }
  .cta-final h2 { font-size: 30px; }
  .cta-final p { font-size: 16px; }

  /* Footer — стекаем */
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }

  /* Safety items — меньше padding */
  .safety-item { padding: 12px; }

  /* Cards в целом — меньше воздуха */
  .problem-card, .pricing-card, .scenario-card { padding: 20px; }

  /* Контакты в CTA — перенос-friendly */
  .cta-contact-line {
    font-size: 13px !important;
    line-height: 1.8;
  }
}

/* Телефоны (до 480px) — всё крупно, минимум воздуха, максимум читаемости */
@media (max-width: 480px) {
  .container { padding: 0 16px; }

  /* Header */
  .brand span { display: none; }  /* оставляем только иконку */
  .brand-icon { width: 36px; height: 36px; }

  /* Hero — текст крупнее относительно ширины */
  .hero { padding: 100px 0 50px; }
  .hero h1 { font-size: 28px; line-height: 1.15; }
  .hero-subtitle { font-size: 16px; }
  .hero-badge { font-size: 12px; }
  .hero-stats { grid-template-columns: 1fr; gap: 12px; }
  .hero-stat { display: flex; align-items: baseline; gap: 12px; }
  .hero-stat-value { font-size: 24px; }
  .hero-stat-label { font-size: 13px; }

  /* Sections */
  .section { padding: 50px 0; }
  .section-title { font-size: 23px; }
  .section-subtitle { font-size: 15px; margin-bottom: 32px; }
  .section-eyebrow { font-size: 12px; }

  /* Buttons — побольше tap target */
  .btn-primary { padding: 14px 24px; font-size: 15px; }
  .btn-secondary { padding: 14px 20px; font-size: 15px; }
  .btn-cta { padding: 10px 18px; }

  /* Chat bubbles в hero — компактнее */
  .hero-card { padding: 18px; }
  .chat-bubble { font-size: 13px; padding: 10px 12px; }

  /* Problem/why cards */
  .problem-icon { font-size: 30px; }
  .problem-card h3, .why-card h3 { font-size: 18px; }

  /* Pricing */
  .pricing-price { font-size: 26px; }

  /* ROI — 1 колонка, крупно */
  .roi-stats { grid-template-columns: 1fr; gap: 20px; }
  .roi-stat-value { font-size: 30px; }
  .roi-title { font-size: 20px; }
  .roi-columns { gap: 20px; }
  .roi-list li { font-size: 13px; padding: 8px 0; }
  .roi-arrow { width: 24px; height: 24px; font-size: 12px; }
  .roi-bottom-line { grid-template-columns: 1fr; gap: 16px; }
  .roi-bottom-item { width: 100%; }
  .roi-conclusion { font-size: 14px; padding: 16px; }
  .roi-disclaimer { font-size: 11px; padding: 14px 16px; }

  /* CTA */
  .cta-final h2 { font-size: 24px; }
  .cta-contact-line { font-size: 12px !important; }

  /* Footer — очень компактно */
  .footer { padding: 36px 0 24px; }

  /* Safety legal pills — в одну колонку на узких экранах */
  .safety-legal-pills {
    flex-direction: column;
    align-items: stretch;
  }
  .safety-legal-pill {
    justify-content: center;
    font-size: 12px;
    padding: 10px 14px;
  }
  /* На мобильных всплывашка занимает всю ширину */
  .safety-legal-pill-content {
    position: static;
    min-width: 0;
    margin-top: 8px;
  }
  .safety-hero-icon { font-size: 40px; }
  .safety-hero-title { font-size: 17px; }
  .safety-box { padding: 24px 20px; }
}


/* ===== Уважение к prefers-reduced-motion =====
   Пользователи с настройкой "уменьшить анимацию" (аутизм, вестибулярные)
   не увидят пульсацию и покачивания */
@media (prefers-reduced-motion: reduce) {
  .roi-detail summary {
    animation: none !important;
    border-style: solid !important;
  }
  * {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}
