/* ==========================================================================
   CSS VARIABLES & DESIGN SYSTEM (LIGHT & DARK THEMES) - COMPACT & HIGH DENSITY
   ========================================================================== */
:root {
  /* ==========================================================================
     НАСТРОЙКА ПОЛОЖЕНИЯ ПЛАВАЮЩЕЙ КНОПКИ МЕНЮ (MENU FAB):
     --menu-fab-bottom: положение по вертикали (отступ снизу от края экрана).
                        По умолчанию: 96px (находится прямо над кнопкой звонка).
                        Меняйте это число, чтобы двигать кнопку выше или ниже!
     --menu-fab-right:  положение по горизонтали (отступ справа).
                        По умолчанию: 20px (как у кнопки звонка).
     ========================================================================== */
  --menu-fab-bottom: 96px;
  --menu-fab-right: 20px;

  /* Brand Medical & Natural Palette (Requested by specification) */
  --primary: #172F60;
  /* Основной тёмно-синий: заголовки, логотип, иконки */
  --primary-hover: #0E1F42;
  --primary-light: #EEF3FA;
  --primary-text: #172F60;

  --accent: #E52529;
  /* Фирменный красный: кнопки звонка, акцентные слова */
  --accent-hover: #C91A1E;
  --accent-light: #FDE8E9;

  --bg-ivory: #FEF5F0;
  /* Слоновая кость: подложка первого экрана */
  --olive: #8B9670;
  /* Оливковый: второстепенные иконки, тонкие линии */
  --olive-dark: #626D4D;
  /* Тёмный оливковый: дополнительные акценты */
  --border-light: #DCE2E8;
  /* Светло-серый: границы, разделители, обводки */
  --border-subtle: #DCE2E8;
  --border-focus: #172F60;

  --bg-body: #F8FAFC;
  --bg-surface: #FFFFFF;
  /* Белый: карточки и основные поверхности */
  --bg-surface-subtle: #F4F7FA;
  --bg-surface-elevated: #FFFFFF;
  --bg-header-top: #FEF5F0;
  /* Слоновая кость: верхний уровень шапки */
  --bg-header-nav: #FFFFFF;

  --text-main: #26344A;
  /* Основной текст */
  --text-dark: #172F60;
  --text-muted: #56677E;
  --text-light: #8A99AC;
  --text-inverse: #FFFFFF;

  --badge-free-bg: #ECFDF5;
  --badge-free-text: #065F46;
  --badge-free-border: #A7F3D0;

  --badge-paid-bg: #FFFFFF;
  --badge-paid-text: #172F60;
  --badge-paid-border: #DCE2E8;

  --shadow-sm: 0 1px 2px rgba(23, 47, 96, 0.04);
  --shadow-md: 0 4px 10px -1px rgba(23, 47, 96, 0.07), 0 2px 4px -1px rgba(23, 47, 96, 0.03);
  --shadow-lg: 0 12px 32px rgba(23, 47, 96, 0.12);

  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 18px;
  --radius-full: 9999px;

  --transition-fast: 0.15s ease;
  --transition-normal: 0.25s ease;
}

[data-theme="dark"] {
  /* Dark Theme */
  --bg-body: #0b1120;
  --bg-surface: #131d31;
  --bg-surface-subtle: #1a2740;
  --bg-surface-elevated: #1e2d4a;
  --bg-header-top: #101a2c;
  --bg-header-nav: #131d31;

  --text-main: #f8fafc;
  --text-muted: #94a3b8;
  --text-light: #64748b;
  --text-inverse: #0b1120;

  --border-subtle: #202f4a;
  --border-focus: #38bdf8;

  --primary: #38bdf8;
  --primary-hover: #7dd3fc;
  --primary-light: rgba(56, 189, 248, 0.12);
  --primary-text: #7dd3fc;

  --accent: #f87171;
  --accent-hover: #ef4444;

  --badge-free-bg: rgba(16, 185, 129, 0.15);
  --badge-free-text: #34d399;
  --badge-free-border: rgba(16, 185, 129, 0.3);

  --badge-paid-bg: #1a2740;
  --badge-paid-text: #cbd5e1;
  --badge-paid-border: #2a3c5a;

  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 8px 14px rgba(0, 0, 0, 0.5);
}

/* ==========================================================================
   RESET & BASE STYLES
   ========================================================================== */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 110px;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  background-color: var(--bg-body);
  color: var(--text-main);
  line-height: 1.5;
  font-size: 15px;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  transition: background-color var(--transition-normal), color var(--transition-normal);
  position: relative;
  overflow-x: hidden;
}

body.menu-open {
  overflow: hidden;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color var(--transition-fast);
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
  outline: none;
}

ul,
ol {
  list-style: none;
}

.container {
  width: 100%;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 16px;
  padding-right: 16px;
}

/* Typography & Titles - Dense */
.section-title {
  font-size: clamp(22px, 3.5vw, 30px);
  font-weight: 700;
  color: var(--text-main);
  line-height: 1.2;
  margin-bottom: 8px;
  letter-spacing: -0.02em;
}

.section-subtitle {
  font-size: clamp(14px, 1.8vw, 16px);
  color: var(--text-muted);
  max-width: 720px;
  margin-bottom: 24px;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 10px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border-radius: var(--radius-full);
}

.badge-free {
  background: var(--badge-free-bg);
  color: var(--badge-free-text);
  border: 1px solid var(--badge-free-border);
}

.badge-paid {
  background: var(--badge-paid-bg);
  color: var(--badge-paid-text);
  border: 1px solid var(--badge-paid-border);
}

.badge-hot {
  background: var(--accent-light);
  color: var(--accent);
  border: 1px solid rgba(229, 37, 41, 0.25);
}

[data-theme="dark"] .badge-hot {
  background: rgba(229, 37, 41, 0.15);
  color: #f87171;
  border-color: rgba(229, 37, 41, 0.3);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 20px;
  font-size: 14px;
  font-weight: 600;
  border-radius: var(--radius-md);
  transition: all var(--transition-fast);
  text-decoration: none;
  line-height: 1.2;
  cursor: pointer;
}

.btn-primary {
  background-color: var(--primary);
  color: #ffffff;
}

[data-theme="dark"] .btn-primary {
  background-color: #0284c7;
  color: #ffffff;
}

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

.btn-accent {
  background-color: #dc2626;
  color: #ffffff;
}

.btn-accent:hover {
  background-color: #b91c1c;
  transform: translateY(-1px);
}

.btn-outline {
  border: 1px solid var(--border-subtle);
  background-color: var(--bg-surface);
  color: var(--text-main);
}

.btn-outline:hover {
  border-color: var(--text-muted);
  background-color: var(--bg-surface-subtle);
}

.btn-sm {
  padding: 6px 14px;
  font-size: 15px;
}

/* ==========================================================================
   HEADER: TWO-TIER (TOP: LOGO & PHONE OVER NAV; BOTTOM: STICKY NAV)
   ========================================================================== */
.site-header {
  width: 100%;
  z-index: 100;
  position: relative;
}

/* Верхняя полоса: Логотип, справочный телефон, переключатель темы */
.header-top {
  background-color: var(--bg-header-top);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border-subtle);
  padding: 12px 0;
  position: relative;
  z-index: 2;
}

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

.logo-block {
  display: flex;
  align-items: center;
  gap: 12px;
}

.logo-icon-svg {
  width: 38px;
  height: 38px;
  color: var(--primary);
  flex-shrink: 0;
}

[data-theme="dark"] .logo-icon-svg {
  color: var(--primary);
}

.logo-text {
  display: flex;
  flex-direction: column;
}

.logo-title {
  font-size: 18px;
  font-weight: 800;
  color: var(--text-main);
  line-height: 1.15;
  letter-spacing: -0.01em;
}

.logo-sub {
  font-size: 11px;
  color: var(--text-muted);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.header-top-right {
  display: flex;
  align-items: center;
  gap: 16px;
}

.phone-help-box {
  display: flex;
  flex-direction: column;
  text-align: right;
}

.phone-help-label {
  font-size: 11px;
  font-weight: 700;
  color: #dc2626;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 5px;
}

[data-theme="dark"] .phone-help-label {
  color: #f87171;
}

.status-dot {
  width: 7px;
  height: 7px;
  background-color: #10b981;
  border-radius: 50%;
  display: inline-block;
  animation: pulse-dot 2s infinite;
}

@keyframes pulse-dot {
  0% {
    opacity: 1;
  }

  50% {
    opacity: 0.4;
  }

  100% {
    opacity: 1;
  }
}

.phone-help-number {
  font-size: 19px;
  font-weight: 800;
  color: var(--text-main);
  line-height: 1.2;
}

.phone-help-number:hover {
  color: #dc2626;
}

.phone-help-sub {
  font-size: 11px;
  color: var(--text-muted);
}

.theme-toggle-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-subtle);
  background-color: var(--bg-surface);
  color: var(--text-main);
  transition: all var(--transition-fast);
}

.theme-toggle-btn:hover {
  background-color: var(--bg-surface-subtle);
}

.theme-icon-sun,
.theme-icon-moon {
  width: 18px;
  height: 18px;
}

[data-theme="dark"] .theme-icon-sun {
  display: block;
}

[data-theme="dark"] .theme-icon-moon {
  display: none;
}

:root:not([data-theme="dark"]) .theme-icon-sun {
  display: none;
}

:root:not([data-theme="dark"]) .theme-icon-moon {
  display: block;
}

.burger-btn {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 38px;
  height: 38px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-subtle);
  background-color: var(--bg-surface);
  padding: 8px;
}

@media (min-width: 900px) {
  .burger-btn,
  .mobile-controls-row,
  .mobile-header-cta {
    display: none !important;
  }
}

.burger-line {
  width: 100%;
  height: 2px;
  background-color: var(--text-main);
  border-radius: 2px;
}

/* Обёртка для бургера на мобильных */
.mobile-controls-row {
  display: flex;
}

/* Подпись «Меню» внутри бургер-кнопки — скрыта на десктопе */
.burger-btn-label {
  display: none;
}

/* Нижняя полоса меню (Липкая) */
.header-nav-bar {

  position: sticky;
  top: 0;
  z-index: 999;
  background-color: var(--bg-header-nav);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border-subtle);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.04);
}

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

.main-nav {
  display: none;
}

@media (min-width: 900px) {
  .main-nav {
    display: block;
  }
}

.nav-list {
  display: flex;
  align-items: center;
  gap: 32px;
  /* Просторнее между пунктами */
}

/* ШРИФТЫ В МЕНЮ ЧУТЬ БОЛЬШЕ (16px, 600 weight) */
.nav-link {
  font-size: 16px;
  font-weight: 600;
  color: var(--text-muted);
  padding: 13px 0;
  display: inline-block;
  position: relative;
  letter-spacing: -0.01em;
}

.nav-link:hover {
  color: var(--text-main);
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--primary);
  transition: width var(--transition-fast);
}

[data-theme="dark"] .nav-link::after {
  background-color: var(--primary);
}

.nav-link:hover::after {
  width: 100%;
}

.nav-cta-btn {
  margin-left: auto;
}

/* Мобильное выкатное меню (Drawer) — компактное */
.mobile-drawer {
  position: fixed;
  top: 0;
  right: -100%;
  width: 100%;
  max-width: 320px;
  height: auto;           /* компактная высота — по содержимому */
  max-height: 92vh;
  background-color: var(--bg-surface);
  z-index: 2000;
  box-shadow: var(--shadow-lg);
  display: flex;
  flex-direction: column;
  padding: 20px;
  border-radius: 0 0 0 var(--radius-lg);
  transition: right 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  overflow-y: auto;
}

.mobile-drawer.active {
  right: 0;
}

.drawer-overlay {
  position: fixed;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.45);
  z-index: 1999;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.drawer-overlay.active {
  opacity: 1;
  visibility: visible;
}

.drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border-subtle);
}

/* Группа: тема + крест */
.drawer-header-controls {
  display: flex;
  align-items: center;
  gap: 8px;
}

.drawer-close-btn {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-main);
  border-radius: var(--radius-md);
  border: 1px solid var(--border-subtle);
  background-color: var(--bg-surface-subtle);
}

.drawer-nav-list {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-bottom: 16px;
}

.drawer-nav-link {
  font-size: 23px;    /* +30% от 18px */
  font-weight: 700;
  color: var(--text-main);
  display: block;
  padding: 6px 0;
  border-bottom: 1px solid var(--border-subtle);
}

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

/* Нижний блок drawer — телефон */
.drawer-footer {
  padding-top: 14px;
  border-top: 1px solid var(--border-subtle);
  margin-top: auto;
}

.drawer-phone-label {
  font-size: 11px;
  font-weight: 700;
  color: #dc2626;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  display: block;
  margin-bottom: 8px;
}

.drawer-phone-btn {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-size: 18px !important;  /* крупная трубка */
  padding: 12px 16px !important;
}

/* ==========================================================================
   HERO SECTION - REFINED MEDICAL MINIMALISM
   ========================================================================== */
.hero-section {
  padding: clamp(36px, 5vw, 60px) 0 clamp(36px, 5vw, 56px);
  background-color: var(--bg-ivory);
  /* #FEF5F0 Слоновая кость */
  background: linear-gradient(180deg, var(--bg-ivory) 0%, rgba(254, 245, 240, 0.65) 85%, var(--bg-body) 100%);
  border-bottom: 1px solid var(--border-subtle);
  position: relative;
  overflow: hidden;
}

.hero-section .container {
  position: relative;
  z-index: 2;
}

[data-theme="dark"] .hero-section {
  background: linear-gradient(180deg, #10192a 0%, var(--bg-body) 100%);
}

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

@media (min-width: 992px) {
  .hero-grid {
    grid-template-columns: 1.15fr 0.85fr;
    gap: 48px;
  }
}

.hero-text-col {
  display: flex;
  flex-direction: column;
}

.hero-badge-row {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}

.hero-title {
  font-size: clamp(26px, 4.2vw, 38px);
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.025em;
  color: var(--primary);
  /* Основной тёмно-синий: #172F60 */
  margin-bottom: 14px;
}

.hero-title span {
  color: var(--accent);
  /* Фирменный красный: #E52529 */
}

[data-theme="dark"] .hero-title {
  color: var(--text-main);
}

[data-theme="dark"] .hero-title span {
  color: #f87171;
}

.hero-subtitle {
  font-size: clamp(14.5px, 1.8vw, 15.5px);
  line-height: 1.6;
  color: var(--text-main);
  /* Основной текст: #26344A */
  opacity: 0.95;
  margin-bottom: 22px;
  max-width: 580px;
}

.hero-usp-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 26px;
}

.usp-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  background-color: var(--bg-surface);
  /* Белый */
  border: 1px solid rgba(139, 150, 112, 0.45);
  /* Тонкая оливковая граница */
  border-radius: var(--radius-sm);
  font-size: 13.5px;
  font-weight: 600;
  color: var(--primary);
  /* #172F60 */
  box-shadow: 0 2px 6px rgba(23, 47, 96, 0.04);
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.usp-chip:hover {
  border-color: var(--olive);
  /* #8B9670 */
  box-shadow: 0 3px 8px rgba(23, 47, 96, 0.07);
}

.usp-chip svg {
  color: var(--olive);
  /* Оливковый: #8B9670 */
  width: 17px;
  height: 17px;
  flex-shrink: 0;
}

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

.hero-actions .btn-accent {
  background-color: var(--accent);
  /* #E52529 */
  color: #FFFFFF;
  border-radius: 10px;
  /* 9–11px */
  padding: 12px 24px;
  font-size: 15px;
  font-weight: 700;
  box-shadow: 0 4px 14px rgba(229, 37, 41, 0.22);
  border: 1px solid transparent;
  transition: all var(--transition-fast);
}

.hero-actions .btn-accent:hover {
  background-color: var(--accent-hover);
  box-shadow: 0 6px 18px rgba(229, 37, 41, 0.32);
  transform: translateY(-1px);
}

.hero-actions .btn-outline {
  background-color: var(--bg-surface);
  /* Белый */
  color: var(--primary);
  /* #172F60 */
  border: 1px solid var(--border-light);
  /* #DCE2E8 */
  border-radius: 10px;
  /* 9–11px */
  padding: 12px 22px;
  font-size: 15px;
  font-weight: 600;
  box-shadow: 0 2px 6px rgba(23, 47, 96, 0.04);
  transition: all var(--transition-fast);
}

.hero-actions .btn-outline:hover {
  border-color: var(--olive);
  /* #8B9670 */
  background-color: #FAFBFD;
  color: var(--primary);
  transform: translateY(-1px);
}

/* Hero Image Card (Photo container) with architectural arch shape and click-to-next slide */
.hero-image-card {
  border-radius: clamp(80px, 22vw, 140px) clamp(80px, 22vw, 140px) 20px 20px;
  overflow: hidden;
  border: 1px solid rgba(23, 47, 96, 0.08);
  /* Тонкая светлая граница */
  box-shadow: 0 16px 36px rgba(23, 47, 96, 0.12);
  /* Мягкая ненавязчивая тень */
  background-color: var(--bg-surface);
  position: relative;
  width: 100%;
  max-width: 440px;
  margin: 0 auto;
  aspect-ratio: 4 / 3.7;
  user-select: none;
  -webkit-user-select: none;
  cursor: pointer;
}

.hero-slider {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.hero-slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.6s cubic-bezier(0.4, 0, 0.2, 1), visibility 0.6s;
  pointer-events: none;
}

.hero-slide.active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  z-index: 1;
}

.hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  /* Исходные пропорции, без искажений */
  display: block;
  border-radius: clamp(80px, 22vw, 140px) clamp(80px, 22vw, 140px) 20px 20px;
}

/* Lead Gen Form Box in Hero / Contacts */
.lead-form-card {
  background-color: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 22px;
  box-shadow: var(--shadow-md);
}

.lead-form-header {
  margin-bottom: 14px;
}

.lead-form-title {
  font-size: 17px;
  font-weight: 800;
  color: var(--text-main);
  margin-bottom: 4px;
}

.lead-form-desc {
  font-size: 13px;
  color: var(--text-muted);
}

.form-row {
  margin-bottom: 10px;
}

.form-input {
  width: 100%;
  padding: 9px 12px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-subtle);
  background-color: var(--bg-surface-subtle);
  color: var(--text-main);
  font-size: 14px;
  font-family: inherit;
  transition: all var(--transition-fast);
}

.form-input:focus {
  outline: none;
  border-color: var(--border-focus);
  background-color: var(--bg-surface);
}

.form-note {
  font-size: 11px;
  color: var(--text-light);
  line-height: 1.4;
  margin-top: 8px;
  text-align: center;
}

/* ==========================================================================
   ABOUT SECTION ("О НАС") - COMPACT
   ========================================================================== */
.about-section {
  padding: clamp(28px, 4vw, 48px) 0;
  border-bottom: 1px solid var(--border-subtle);
}

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

@media (min-width: 900px) {
  .about-grid {
    grid-template-columns: 1.25fr 0.75fr;
    align-items: center;
  }
}

.about-content p {
  color: var(--text-muted);
  font-size: 14.5px;
  line-height: 1.5;
  margin-bottom: 12px;
}

.about-content p strong {
  color: var(--text-main);
}

.alert-law-box {
  background-color: var(--bg-surface-subtle);
  border-left: 3px solid var(--primary);
  padding: 10px 14px;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  margin: 14px 0;
}

.alert-law-title {
  font-size: 13px;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 2px;
}

.alert-law-text {
  font-size: 12.5px;
  color: var(--text-muted);
}

.about-sidebar-card {
  background-color: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 22px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  box-shadow: var(--shadow-sm);
  align-self: center;
  height: fit-content;
}

.sidebar-usp-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.sidebar-usp-icon {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-sm);
  background-color: var(--bg-surface-subtle);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  flex-shrink: 0;
  margin-top: 2px;
}

.sidebar-usp-item h4 {
  font-size: 15px;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 4px;
  line-height: 1.3;
}

.sidebar-usp-item p {
  font-size: 13.5px;
  color: var(--text-muted);
  line-height: 1.45;
  margin: 0;
}

/* ==========================================================================
   SERVICES & PACKAGES SECTION - COMPACT & CLEAR
   ========================================================================== */
.services-section {
  padding: clamp(28px, 4vw, 48px) 0;
  background-color: var(--bg-surface-subtle);
  border-bottom: 1px solid var(--border-subtle);
}

.tabs-control {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 18px;
}

.tab-btn {
  padding: 7px 14px;
  border-radius: var(--radius-sm);
  font-size: 13px;
  font-weight: 700;
  background-color: var(--bg-surface);
  color: var(--text-muted);
  border: 1px solid var(--border-subtle);
  transition: all var(--transition-fast);
}

.tab-btn:hover {
  color: var(--text-main);
  border-color: var(--text-muted);
}

.tab-btn.active {
  background-color: var(--primary);
  color: #ffffff;
  border-color: var(--primary);
}

[data-theme="dark"] .tab-btn.active {
  background-color: #0284c7;
  color: #ffffff;
  border-color: #0284c7;
}

.services-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
}

@media (min-width: 640px) {
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .services-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.service-card {
  background-color: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 16px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition-fast), border-color var(--transition-fast);
}

.service-card:hover {
  border-color: var(--border-focus);
}

.service-card.highlight {
  border-color: #f87171;
  background: linear-gradient(180deg, var(--bg-surface) 0%, rgba(220, 38, 38, 0.03) 100%);
}

.service-card-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 8px;
}

.service-title {
  font-size: 15px;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 4px;
  line-height: 1.25;
}

.service-desc {
  font-size: 12.5px;
  color: var(--text-muted);
  line-height: 1.4;
  margin-bottom: 12px;
}

.service-footer {
  margin-top: auto;
  padding-top: 10px;
  border-top: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.service-price {
  font-size: 15px;
  font-weight: 800;
  color: var(--text-main);
}

.service-price.free {
  color: var(--badge-free-text);
}

/* ==========================================================================
   STEPS SECTION (ИНСТРУКЦИЯ + ДОКУМЕНТЫ ВНУТРИ ШАГОВ)
   ========================================================================== */
.steps-section {
  padding: clamp(28px, 4vw, 48px) 0;
  background-color: #FFFFFF;
  border-bottom: 1px solid var(--border-subtle);
}

.steps-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
}

@media (min-width: 640px) {
  .steps-list {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .steps-list {
    grid-template-columns: repeat(4, 1fr);
  }
}

.step-card {
  background-color: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 16px;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-sm);
}

.step-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 6px;
}

.step-num {
  font-size: 22px;
  font-weight: 800;
  color: var(--primary);
  line-height: 1;
}

.step-title {
  font-size: 15px;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 6px;
}

.step-desc {
  font-size: 12.5px;
  color: var(--text-muted);
  line-height: 1.4;
  margin-bottom: 10px;
}

.step-docs-inline {
  background-color: var(--bg-surface-subtle);
  border-radius: var(--radius-sm);
  padding: 8px 10px;
  font-size: 11.5px;
  color: var(--text-muted);
  line-height: 1.35;
  margin-top: auto;
}

.step-docs-inline strong {
  color: var(--text-main);
  display: block;
  margin-bottom: 2px;
}

/* ==========================================================================
   FAQ SECTION (ACCORDION) - COMPACT
   ========================================================================== */
.faq-section {
  padding: clamp(28px, 4vw, 28px) 0;
  background-color: #DCE3ED;
  border-bottom: 1px solid var(--border-subtle);
}

.faq-wrapper {
  max-width: 820px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.faq-item {
  background-color: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.faq-item.active {
  border-color: var(--border-focus);
}

.faq-question {
  width: 100%;
  padding: 12px 16px;
  text-align: left;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-size: 14.5px;
  font-weight: 700;
  color: var(--text-main);
  background: none;
}

.faq-icon-arrow {
  width: 18px;
  height: 18px;
  color: var(--text-muted);
  flex-shrink: 0;
  transition: transform var(--transition-fast);
}

.faq-item.active .faq-icon-arrow {
  transform: rotate(180deg);
  color: var(--primary);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.25s ease-out;
}

.faq-answer-inner {
  padding: 0 16px 12px 16px;
  font-size: 13.5px;
  color: var(--text-muted);
  line-height: 1.45;
}

/* ==========================================================================
   CONTACTS SECTION (С КАРТОЙ СРАЗУ ПОД КОНТАКТАМИ)
   ========================================================================== */
.contacts-section {
  padding: clamp(28px, 4vw, 48px) 0;
  border-bottom: none;
  background: linear-gradient(180deg, var(--bg-body) 0%, rgba(254, 245, 240, 0.45) 40%, rgba(254, 245, 240, 0.85) 100%);
}

[data-theme="dark"] .contacts-section {
  background: linear-gradient(180deg, var(--bg-body) 0%, rgba(16, 26, 44, 0.75) 100%);
}

.contacts-top-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
  margin-bottom: 20px;
}

@media (min-width: 900px) {
  .contacts-top-grid {
    grid-template-columns: 1.25fr 0.75fr;
  }
}

.contact-info-panel {
  background-color: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 20px;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.contact-row-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.contact-icon-bubble {
  width: 34px;
  height: 34px;
  border-radius: var(--radius-sm);
  background-color: var(--bg-surface-subtle);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.contact-row-title {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--text-muted);
  letter-spacing: 0.04em;
  margin-bottom: 2px;
}

.contact-row-val {
  font-size: 15.5px;
  font-weight: 700;
  color: var(--text-main);
  line-height: 1.25;
}

.contact-row-sub {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 2px;
}

.metro-chips-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 6px;
}

.metro-chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 8px;
  background-color: var(--bg-surface-subtle);
  border-radius: var(--radius-sm);
  font-size: 11.5px;
  font-weight: 600;
  color: var(--text-main);
}

.metro-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
}

.metro-dot.green {
  background-color: #10b981;
}

.metro-dot.red {
  background-color: #ef4444;
}

/* Карта под блоком контактов */
.map-under-contacts {
  background-color: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.map-header-bar {
  padding: 10px 16px;
  background-color: var(--bg-surface-subtle);
  border-bottom: 1px solid var(--border-subtle);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.map-header-title {
  font-size: 13.5px;
  font-weight: 700;
  color: var(--text-main);
  display: flex;
  align-items: center;
  gap: 8px;
}

.map-frame-wrap {
  position: relative;
  width: 100%;
  height: 360px;
}

.map-frame {
  width: 100%;
  height: 100%;
  border: none;
}

[data-theme="dark"] .map-frame {
  filter: invert(90%) hue-rotate(180deg) contrast(0.85);
}

/* ==========================================================================
   FOOTER - COMPACT
   ========================================================================== */
.site-footer {
  background: linear-gradient(180deg, rgba(254, 245, 240, 0.85) 0%, #FEF5F0 100%);
  border-top: 1px solid rgba(23, 47, 96, 0.07);
  padding: 28px 0 16px;
  color: var(--text-muted);
  font-size: 12.5px;
}

[data-theme="dark"] .site-footer {
  background: linear-gradient(180deg, rgba(16, 26, 44, 0.75) 0%, #101a2c 100%);
  border-top-color: var(--border-subtle);
}

.footer-row {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 12px;
}

@media (min-width: 768px) {
  .footer-row {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
  }
}

.footer-nav-links {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

.footer-nav-links a:hover {
  color: var(--text-main);
}

.footer-disclaimer {
  font-size: 11px;
  color: var(--text-light);
  line-height: 1.4;
  border-top: 1px solid var(--border-subtle);
  padding-top: 12px;
}

/* ==========================================================================
   FAB (FLOATING ACTION BUTTONS) & TOAST
   ========================================================================== */
/* Кнопка звонка / связи (FAB) */
.contact-fab {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 1500;
}

/* Круглая плавающая кнопка Меню (MENU FAB) */
.menu-fab-btn {
  position: fixed;
  bottom: var(--menu-fab-bottom, 96px);
  right: var(--menu-fab-right, 20px);
  z-index: 1495;
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background-color: var(--primary);
  color: #ffffff;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  box-shadow: 0 4px 14px rgba(23, 47, 96, 0.35);
  border: 2px solid rgba(255, 255, 255, 0.2);
  cursor: pointer;
  transition: transform var(--transition-fast), background-color var(--transition-fast), box-shadow var(--transition-fast);
  -webkit-tap-highlight-color: transparent;
}

.menu-fab-btn:hover {
  background-color: var(--primary-hover);
  transform: scale(1.06);
  box-shadow: 0 6px 18px rgba(23, 47, 96, 0.45);
}

.menu-fab-btn:active {
  transform: scale(0.94);
}

.menu-fab-btn svg {
  width: 22px;
  height: 22px;
  stroke: #ffffff;
  display: block;
}

.menu-fab-label {
  font-size: 8.5px;
  font-weight: 800;
  letter-spacing: 0.6px;
  line-height: 1;
  color: #ffffff;
  text-transform: uppercase;
}

[data-theme="dark"] .menu-fab-btn {
  background-color: #1e293b;
  border-color: rgba(56, 189, 248, 0.35);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.5);
}

[data-theme="dark"] .menu-fab-btn svg {
  stroke: #38bdf8;
}

[data-theme="dark"] .menu-fab-label {
  color: #38bdf8;
}

/* На десктопе плавающая кнопка меню скрыта (есть верхняя панель навигации) */
@media (min-width: 900px) {
  .menu-fab-btn {
    display: none !important;
  }
}

.fab-toggle-btn {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background-color: #dc2626;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-lg);
  transition: transform var(--transition-fast);
}

.fab-toggle-btn:hover {
  transform: scale(1.06);
}

.fab-toggle-btn svg {
  width: 22px;
  height: 22px;
}

.contact-fab.open .fab-toggle-btn {
  transform: rotate(90deg);
}

.fab-menu {
  position: absolute;
  bottom: 60px;
  right: 0;
  display: none;
  flex-direction: column;
  gap: 8px;
}

.contact-fab.open .fab-menu {
  display: flex;
}

.fab-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  background-color: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-full);
  color: var(--text-main);
  font-size: 13px;
  font-weight: 600;
  box-shadow: var(--shadow-md);
  white-space: nowrap;
}

.toast-msg {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(100px);
  background-color: #0f172a;
  color: #ffffff;
  padding: 10px 20px;
  border-radius: var(--radius-md);
  font-size: 13px;
  box-shadow: var(--shadow-lg);
  z-index: 9999;
  opacity: 0;
  pointer-events: none;
  transition: all 0.25s ease;
}

.toast-msg.show {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
}

/* ==========================================================================
   МОБИЛЬНАЯ ШАПКА (до 899px) — 4-строчный layout
   ========================================================================== */
@media (max-width: 899px) {

  /* === Верхний блок: колонкой из 4 строк === */
  .header-top {
    padding: 8px 0 0;
  }

  .header-top-container {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 0;
  }

  /* Строка 1: Логотип + название — по центру, во всю ширину */
  .logo-block {
    width: 100%;
    justify-content: center;
    text-align: center;
    padding: 6px 16px 12px;
    border-bottom: 1px solid var(--border-subtle);
    box-sizing: border-box;
  }

  .logo-text {
    align-items: center;
    text-align: center;
  }

  .logo-title {
    font-size: 17px;
  }

  .logo-sub {
    font-size: 11px;
  }

  /* Строки 2 и 3: Контейнер */
  .header-top-right {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    width: 100%;
  }

  /* Строка 2: Телефон +7 (812) 275-72-90 — по центру */
  .phone-help-box {
    width: 100%;
    text-align: center;
    align-items: center;
    justify-content: center;
    padding: 10px 16px;
    border-bottom: 1px solid var(--border-subtle);
    box-sizing: border-box;
  }

  .phone-help-label {
    justify-content: center;
  }

  .phone-help-sub {
    display: none;
  }

  .phone-help-number {
    font-size: 22px;
  }

  /* Строка 3: Кнопка «Получить помощь дежурного» — по центру, на всю ширину, аккуратные отступы */
  .mobile-header-cta {
    display: flex !important;
    justify-content: center;
    align-items: center;
    padding: 12px 16px 14px;
    width: 100%;
    box-sizing: border-box;
  }

  .btn-mobile-cta,
  .mobile-header-cta .btn {
    width: 100%;
    max-width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 13px 20px;
    font-size: 15px;
    font-weight: 700;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
  }

  /* Переключатель темы на основном экране мобильной версии СКРЫТ (уходит внутрь Drawer) */
  .header-top-right .theme-toggle-btn,
  .header-theme-btn {
    display: none !important;
  }

  /* Десктопная навигация на мобильных скрыта */
  .header-nav-bar {
    display: none !important;
  }

  .nav-cta-btn {
    display: none !important;
  }

  /* ===================================================
     FLOATING ACTION BUTTONS (CALL FAB & MENU FAB) НА МОБИЛЬНЫХ
     =================================================== */
  /* Плавающая кнопка звонка */
  .fab-toggle-btn {
    width: 62px;
    height: 62px;
  }

  .fab-toggle-btn svg {
    width: 28px;
    height: 28px;
  }

  /* Плавающая круглая кнопка меню */
  .menu-fab-btn {
    width: 62px;
    height: 62px;
    bottom: var(--menu-fab-bottom, 96px);
    right: var(--menu-fab-right, 20px);
  }

  .menu-fab-btn svg {
    width: 24px;
    height: 24px;
  }

  .menu-fab-label {
    font-size: 9.5px;
  }
}