/* ==========================================================================
   NARCOLOGICAL CLINIC — LANDING PAGE STYLESHEET
   Modern, minimalist, premium medical design
   Mobile-first responsive approach
   ========================================================================== */

/* --------------------------------------------------------------------------
   Google Fonts Import
   -------------------------------------------------------------------------- */
@import url('https://fonts.googleapis.com/css2?family=Manrope:wght@400;500;600;700;800&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Material+Symbols+Outlined:opsz,wght,FILL,GRAD@24,400,1,0&display=block');

/* ==========================================================================
   1. RESET & BASE
   ========================================================================== */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 100px;
  -webkit-text-size-adjust: 100%;
  -moz-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  font-family: 'Manrope', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-size: 16px;
  font-weight: 400;
  line-height: 1.6;
  color: var(--text);
  background-color: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

a {
  text-decoration: none;
  color: inherit;
  transition: color 0.3s ease;
}

ul,
ol {
  list-style: none;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

button {
  font-family: inherit;
  font-size: inherit;
  cursor: pointer;
  border: none;
  background: none;
  outline: none;
  color: inherit;
}

input,
textarea,
select {
  font-family: inherit;
  font-size: inherit;
  outline: none;
  border: none;
  background: none;
  color: inherit;
}

/* ==========================================================================
   2. CSS VARIABLES
   ========================================================================== */
:root {
  /* Premium Slate-Pine Palette (Medical & trustworthy, clinical deep green) */
  --primary: #0b6653;        /* Deep clinical slate-pine green */
  --primary-dark: #074639;   /* Deep forest teal */
  --primary-light: #158f76;  /* Lighter clinical green */
  --primary-50: #f1f8f6;     /* Clean minty off-white */
  --primary-100: #d6eae4;    /* Light sage background tint */

  /* Secondary / Accent Palette (Polished dark steel / slate-blue) */
  --accent: #1e3a8a;         /* Royal medical navy blue for deep contrast */
  --accent-dark: #172554;
  --accent-50: #f0f4f9;
  --accent-100: #dbeafe;

  /* Dark & Typography (Soft organic dark slate, not harsh jet black) */
  --dark: #0d1412;           /* Charcoal with organic green tint */
  --dark-light: #16221e;     /* Form backgrounds, footers */
  --text: #1d2b27;           /* Main text (high contrast, warm slate) */
  --text-light: #4c5d59;     /* Secondary description text */
  --text-muted: #829691;     /* Footnotes, placeholders */

  /* Borders & Backgrounds */
  --border: rgba(11, 102, 83, 0.09); /* Subtle pine-tinted border lines */
  --light: #f5f8f7;          /* Soft light block backgrounds */
  --bg: #fafcfc;             /* Premium, clean cool-white body bg */
  --white: #ffffff;

  /* Status Colors */
  --red: #da3737;            /* Medical emergency red */
  --red-dark: #b91c1c;
  --amber: #d97706;          /* Deep gold stars and warm accent */
  --success: #0b6653;

  /* Overlay */
  --overlay: rgba(13, 20, 18, 0.65);

  /* Spacing */
  --header-height: 80px;

  /* Ultra-smooth multi-layered premium shadows */
  --shadow-sm: 0 2px 4px rgba(11, 102, 83, 0.02);
  --shadow: 0 4px 10px rgba(11, 102, 83, 0.03), 0 1px 4px rgba(0, 0, 0, 0.02);
  --shadow-md: 0 12px 24px -4px rgba(11, 102, 83, 0.05), 0 4px 12px -2px rgba(0, 0, 0, 0.02);
  --shadow-lg: 0 24px 48px -8px rgba(11, 102, 83, 0.08), 0 8px 24px -4px rgba(0, 0, 0, 0.02);
  --shadow-xl: 0 32px 64px -12px rgba(11, 102, 83, 0.12), 0 12px 32px -6px rgba(0, 0, 0, 0.03);
  --shadow-2xl: 0 40px 80px -16px rgba(11, 102, 83, 0.16), 0 16px 40px -8px rgba(0, 0, 0, 0.04);

  /* Transitions */
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* ==========================================================================
   3. UTILITY CLASSES
   ========================================================================== */
.container {
  width: 100%;
  max-width: 1280px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 16px;
  padding-right: 16px;
}

.section {
  padding-top: 80px;
  padding-bottom: 80px;
}

/* ==========================================================================
   4. TYPOGRAPHY — Section Headers
   ========================================================================== */
.section-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--primary);
  margin-bottom: 12px;
}

.section-label .material-symbols-outlined {
  font-size: 18px;
  color: var(--primary);
}

.section-title {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 800;
  line-height: 1.25;
  letter-spacing: -0.02em;
  color: var(--text);
  margin-bottom: 16px;
}

.section-subtitle {
  font-size: clamp(1rem, 2vw, 1.125rem);
  font-weight: 400;
  line-height: 1.6;
  color: var(--text-light);
  max-width: 640px;
}

/* ==========================================================================
   5. HEADER — Glass Morphism
   ========================================================================== */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 200;
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: blur(20px) saturate(1.8);
  -webkit-backdrop-filter: blur(20px) saturate(1.8);
  border-bottom: 1px solid rgba(226, 232, 240, 0.6);
  padding: 16px 0;
  transition: padding 0.3s ease, box-shadow 0.3s ease;
}

.header.scrolled {
  padding: 10px 0;
  box-shadow: var(--shadow-md);
}

.header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* Header Logo */
.header__logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  flex-shrink: 0;
}

.header__logo-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--primary);
  color: var(--white);
  font-size: 24px;
  flex-shrink: 0;
}

.header__logo-icon .material-symbols-outlined {
  font-size: 24px;
  color: var(--white);
}

.header__logo-text {
  font-size: 18px;
  font-weight: 800;
  color: var(--text);
  line-height: 1.2;
}

.header__logo-sub {
  font-size: 11px;
  font-weight: 500;
  color: var(--text-muted);
  line-height: 1.2;
}

/* Navigation */
.nav {
  display: none;
  align-items: center;
  gap: 32px;
}

.nav__link {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-light);
  transition: color 0.3s ease;
  white-space: nowrap;
}

.nav__link:hover {
  color: var(--primary);
}

/* Header Phone */
.header__phone {
  display: none;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.header__phone-number {
  font-size: 16px;
  font-weight: 700;
  color: var(--text);
  transition: color 0.3s ease;
}

.header__phone:hover .header__phone-number {
  color: var(--primary);
}

.header__phone-label {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 500;
  color: var(--text-muted);
}

.header__phone-label::before {
  content: '';
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--primary);
  animation: dotPulse 2s ease-in-out infinite;
}

@keyframes dotPulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(0.7); }
}

/* Header CTA */
.header__cta {
  display: none;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  background: var(--primary);
  color: var(--white);
  font-size: 14px;
  font-weight: 600;
  border-radius: 12px;
  transition: background 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
  position: relative;
  overflow: hidden;
}

.header__cta:hover {
  background: var(--primary-dark);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(11, 102, 83, 0.35);
}

.header__cta .material-symbols-outlined {
  font-size: 18px;
}

/* ==========================================================================
   6. BURGER MENU & MOBILE MENU
   ========================================================================== */
.burger {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 32px;
  height: 32px;
  cursor: pointer;
  z-index: 200;
  position: relative;
}

.burger__line {
  display: block;
  width: 24px;
  height: 2.5px;
  border-radius: 2px;
  background: var(--text);
  transition: transform 0.35s ease, opacity 0.25s ease;
}

.burger.active .burger__line:nth-child(1) {
  transform: translateY(7.5px) rotate(45deg);
}

.burger.active .burger__line:nth-child(2) {
  opacity: 0;
}

.burger.active .burger__line:nth-child(3) {
  transform: translateY(-7.5px) rotate(-45deg);
}

/* Mobile Menu */
.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 150;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 24px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.35s ease, visibility 0.35s ease;
}

.mobile-menu.active {
  opacity: 1;
  visibility: visible;
}

.mobile-menu__link {
  font-size: 24px;
  font-weight: 700;
  color: var(--text);
  transition: color 0.3s ease, transform 0.3s ease;
}

.mobile-menu__link:hover {
  color: var(--primary);
  transform: scale(1.05);
}

.mobile-menu__phone {
  margin-top: 16px;
  font-size: 20px;
  font-weight: 700;
  color: var(--primary);
}

.mobile-menu__cta {
  margin-top: 8px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 32px;
  background: var(--primary);
  color: var(--white);
  font-size: 16px;
  font-weight: 600;
  border-radius: 14px;
  transition: background 0.3s ease;
}

.mobile-menu__cta:hover {
  background: var(--primary-dark);
}

/* ==========================================================================
   7. HERO SECTION
   ========================================================================== */
.hero {
  position: relative;
  overflow: hidden;
  padding-top: 64px;
  padding-bottom: 64px;
  margin-top: var(--header-height);
  background: linear-gradient(135deg, var(--primary-50) 0%, var(--white) 50%, var(--accent-50) 100%);
}

/* Decorative blobs */
.hero__blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.5;
  pointer-events: none;
}

.hero__blob--1 {
  width: 400px;
  height: 400px;
  background: var(--primary-100);
  top: -100px;
  right: -100px;
}

.hero__blob--2 {
  width: 300px;
  height: 300px;
  background: var(--accent-100);
  bottom: -80px;
  left: -80px;
}

.hero__blob--3 {
  width: 200px;
  height: 200px;
  background: var(--primary-100);
  top: 50%;
  left: 30%;
}

.hero .container {
  position: relative;
  z-index: 2;
}

.hero__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  align-items: center;
}

/* Hero Text Content */
.hero__content {
  text-align: center;
}

.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  background: var(--primary-100);
  border: 1px solid var(--primary-light);
  border-radius: 9999px;
  font-size: 12px;
  font-weight: 700;
  color: var(--primary-dark);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 20px;
}

.hero__badge .material-symbols-outlined {
  font-size: 16px;
}

.hero__title {
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.025em;
  color: var(--text);
  margin-bottom: 20px;
}

.hero__title-accent {
  background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero__subtitle {
  font-size: clamp(1rem, 2.5vw, 1.125rem);
  font-weight: 400;
  line-height: 1.7;
  color: var(--text-light);
  margin-bottom: 32px;
  max-width: 560px;
  margin-left: auto;
  margin-right: auto;
}

/* Hero features (3-col icons) */
.hero__features {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  margin-bottom: 32px;
}

.hero__feature {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  background: rgba(255, 255, 255, 0.7);
  border-radius: 14px;
  border: 1px solid var(--border);
}

.hero__feature-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: var(--primary-100);
  color: var(--primary);
  flex-shrink: 0;
}

.hero__feature-icon .material-symbols-outlined {
  font-size: 20px;
}

.hero__feature-text {
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
}

/* Hero buttons */
.hero__buttons {
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: center;
}

.hero__btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  max-width: 320px;
  padding: 16px 32px;
  background: var(--primary);
  color: var(--white);
  font-size: 16px;
  font-weight: 700;
  border-radius: 16px;
  transition: background 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
  position: relative;
  overflow: hidden;
}

.hero__btn-primary:hover {
  background: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(11, 102, 83, 0.35);
}

.hero__btn-primary .material-symbols-outlined {
  font-size: 20px;
}

.hero__btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  max-width: 320px;
  padding: 16px 32px;
  background: var(--white);
  color: var(--text);
  font-size: 16px;
  font-weight: 600;
  border-radius: 16px;
  border: 1px solid var(--border);
  transition: border-color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
}

.hero__btn-secondary:hover {
  border-color: var(--primary);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.hero__btn-secondary .material-symbols-outlined {
  font-size: 20px;
}

/* Hero Image */
.hero__image-wrapper {
  position: relative;
  border-radius: 24px;
  overflow: hidden;
  box-shadow: var(--shadow-2xl);
}

.hero__image-wrapper::before {
  content: '';
  position: absolute;
  inset: -20px;
  background: linear-gradient(135deg, rgba(11, 102, 83, 0.15) 0%, rgba(30, 58, 138, 0.15) 100%);
  border-radius: 32px;
  z-index: -1;
  filter: blur(30px);
}

.hero__image {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 24px;
}

/* Hero Hotline Overlay */
.hero__hotline {
  position: absolute;
  bottom: 16px;
  left: 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.5);
  box-shadow: var(--shadow-lg);
}

.hero__hotline-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: var(--primary);
  color: var(--white);
  flex-shrink: 0;
}

.hero__hotline-icon .material-symbols-outlined {
  font-size: 20px;
}

.hero__hotline-text {
  font-size: 12px;
  font-weight: 500;
  color: var(--text-light);
}

.hero__hotline-number {
  font-size: 16px;
  font-weight: 700;
  color: var(--text);
}

/* ==========================================================================
   8. SERVICES SECTION
   ========================================================================== */
.services__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  margin-top: 40px;
}

.service-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 100%;
  padding: 24px;
  background: var(--light);
  border-radius: 24px;
  border: 1px solid var(--border);
  transition: background 0.4s ease, border-color 0.4s ease, box-shadow 0.4s ease, transform 0.4s ease;
}

.service-card:hover,
.service-card:target {
  background: var(--white);
  border-color: var(--primary-100);
  box-shadow: var(--shadow-lg);
  transform: translateY(-6px);
}

.service-card:target {
  border-color: var(--primary);
  box-shadow: 0 0 0 4px var(--primary-100), var(--shadow-lg);
}

.service-card__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 16px;
  background: var(--primary-100);
  color: var(--primary);
  margin-bottom: 20px;
  transition: transform 0.4s var(--ease-spring);
}

.service-card__icon--accent {
  background: var(--accent-50);
  color: var(--accent);
}

.service-card:hover .service-card__icon,
.service-card:target .service-card__icon {
  transform: scale(1.1) rotate(-5deg);
}

.service-card__icon .material-symbols-outlined {
  font-size: 24px;
}

.service-card__title {
  font-size: 18px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 8px;
  line-height: 1.3;
}

.service-card__text {
  font-size: 14px;
  font-weight: 400;
  color: var(--text-light);
  line-height: 1.6;
  margin-bottom: 20px;
  flex-grow: 1;
}

.service-card__bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 16px;
  border-top: 1px solid var(--border);
}

.service-card__price {
  font-size: 18px;
  font-weight: 800;
  color: var(--text);
  line-height: 1.2;
}

.service-card__price-label {
  display: block;
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  margin-top: 2px;
}

.service-card__btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 18px;
  background: var(--primary);
  color: var(--white);
  font-size: 13px;
  font-weight: 600;
  border-radius: 10px;
  transition: background 0.3s ease, box-shadow 0.3s ease;
}

.service-card__btn:hover {
  background: var(--primary-dark);
  box-shadow: 0 4px 12px rgba(11, 102, 83, 0.3);
}

.service-card__btn .material-symbols-outlined {
  font-size: 16px;
}

/* ==========================================================================
   9. DETOX TABS
   ========================================================================== */
.detox-tabs {
  margin-top: 40px;
}

.tab-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  background: var(--light);
  border-radius: 16px;
  padding: 6px;
  border: 1px solid var(--border);
  margin-bottom: 24px;
}

.tab-btn {
  flex: 1;
  padding: 12px 16px;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-light);
  background: transparent;
  border-radius: 12px;
  transition: background 0.3s ease, color 0.3s ease, box-shadow 0.3s ease;
  text-align: center;
  white-space: nowrap;
}

.tab-btn:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.7);
}

.tab-btn.active {
  background: var(--primary);
  color: var(--white);
  box-shadow: 0 4px 12px rgba(11, 102, 83, 0.3);
}

/* Tab Panels */
.tab-panel {
  display: none;
  background: var(--light);
  border-radius: 24px;
  padding: 24px;
  border: 1px solid var(--border);
  animation: fadeIn 0.35s ease;
}

.tab-panel.active {
  display: block;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

.tab-panel__header {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 24px;
}

.tab-panel__title {
  font-size: 20px;
  font-weight: 700;
  color: var(--text);
}

.tab-panel__price {
  font-size: 24px;
  font-weight: 800;
  color: var(--primary);
}

.tab-panel__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  margin-bottom: 24px;
}

.tab-panel__list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.tab-panel__list-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 14px;
  color: var(--text);
  line-height: 1.5;
}

.tab-panel__list-item .material-symbols-outlined {
  font-size: 18px;
  color: var(--primary);
  flex-shrink: 0;
  margin-top: 2px;
}

.tab-panel__btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  background: var(--primary);
  color: var(--white);
  font-size: 15px;
  font-weight: 600;
  border-radius: 14px;
  transition: background 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
  width: 100%;
  justify-content: center;
}

.tab-panel__btn:hover {
  background: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(11, 102, 83, 0.3);
}

.tab-panel__btn .material-symbols-outlined {
  font-size: 18px;
}

/* ==========================================================================
   10. HOW WE WORK — TIMELINE
   ========================================================================== */
.timeline {
  position: relative;
  margin-top: 48px;
  padding-left: 40px;
}

/* Vertical line — mobile (left side) */
.timeline::before {
  content: '';
  position: absolute;
  left: 24px;
  top: 0;
  bottom: 0;
  width: 3px;
  background: linear-gradient(180deg, var(--primary) 0%, var(--primary-light) 100%);
  border-radius: 2px;
}

.timeline__step {
  position: relative;
  margin-bottom: 40px;
}

.timeline__step:last-child {
  margin-bottom: 0;
}

/* Dot on the line */
.timeline__dot {
  position: absolute;
  left: -24px;
  top: 4px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--primary);
  border: 3px solid var(--primary-100);
  z-index: 2;
}

.timeline__badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  background: var(--primary-100);
  border-radius: 8px;
  font-size: 12px;
  font-weight: 700;
  color: var(--primary-dark);
  margin-bottom: 8px;
}

.timeline__title {
  font-size: 18px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 6px;
}

.timeline__desc {
  font-size: 14px;
  color: var(--text-light);
  line-height: 1.6;
  max-width: 480px;
}

/* ==========================================================================
   11. PROMOTIONS
   ========================================================================== */
.promos__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  margin-top: 40px;
}

.promo-card {
  position: relative;
  padding: 32px;
  border-radius: 24px;
  color: var(--white);
  overflow: hidden;
}

.promo-card--primary {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
}

.promo-card--accent {
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-dark) 100%);
}

.promo-card__decor {
  position: absolute;
  width: 200px;
  height: 200px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  filter: blur(40px);
  top: -50px;
  right: -50px;
  pointer-events: none;
}

.promo-card__badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 16px;
}

.promo-card__title {
  font-size: 22px;
  font-weight: 800;
  margin-bottom: 8px;
  line-height: 1.3;
}

.promo-card__desc {
  font-size: 14px;
  font-weight: 400;
  opacity: 0.9;
  line-height: 1.6;
  margin-bottom: 24px;
}

.promo-card__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.promo-card__price {
  font-size: 28px;
  font-weight: 800;
}

.promo-card__price-old {
  font-size: 16px;
  font-weight: 500;
  opacity: 0.6;
  text-decoration: line-through;
  margin-left: 8px;
}

.promo-card__btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  background: var(--white);
  color: var(--text);
  font-size: 14px;
  font-weight: 700;
  border-radius: 12px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.promo-card__btn:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.promo-card__btn .material-symbols-outlined {
  font-size: 18px;
}

/* ==========================================================================
   12. TRUST INDICATORS
   ========================================================================== */
.trust-section__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  margin-top: 40px;
}

.trust-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
}

.trust-item__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 16px;
  background: var(--primary-100);
  color: var(--primary);
  flex-shrink: 0;
}

.trust-item__icon--accent {
  background: var(--accent-50);
  color: var(--accent);
}

.trust-item__icon .material-symbols-outlined {
  font-size: 24px;
}

.trust-item__title {
  font-size: 16px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 4px;
}

.trust-item__text {
  font-size: 14px;
  font-weight: 400;
  color: var(--text-light);
  line-height: 1.5;
}

/* ==========================================================================
   13. ABOUT & STATS
   ========================================================================== */
.about__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  margin-top: 40px;
}

.about__content {
  order: 2;
}

.about__text {
  font-size: 15px;
  color: var(--text-light);
  line-height: 1.7;
  margin-bottom: 24px;
}

.about__list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 24px;
}

.about__list-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 14px;
  color: var(--text);
  line-height: 1.5;
}

.about__list-item .material-symbols-outlined {
  font-size: 18px;
  color: var(--primary);
  flex-shrink: 0;
  margin-top: 2px;
}

/* License cards */
.about__licenses {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.about__license-card {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  background: var(--light);
  border: 1px solid var(--border);
  border-radius: 12px;
  cursor: pointer;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.about__license-card:hover {
  border-color: var(--primary);
  box-shadow: var(--shadow);
}

.about__license-icon {
  font-size: 20px;
  color: var(--primary);
}

.about__license-text {
  font-size: 12px;
  font-weight: 600;
  color: var(--text);
}

/* About Visual (Image + Stats) */
.about__visual {
  order: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.about__image {
  grid-column: span 2;
  border-radius: 20px;
  overflow: hidden;
  aspect-ratio: 16 / 10;
}

.about__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.about__stat-card {
  padding: 20px;
  border-radius: 16px;
  color: var(--white);
  text-align: center;
}

.about__stat-card--primary {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
}

.about__stat-card--accent {
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-dark) 100%);
}

.about__stat-value {
  font-size: 32px;
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 4px;
}

.about__stat-label {
  font-size: 12px;
  font-weight: 500;
  opacity: 0.9;
}

/* ==========================================================================
   14. DOCTORS
   ========================================================================== */
.doctors__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  margin-top: 40px;
}

.doctor-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 32px 24px;
  background: var(--light);
  border-radius: 24px;
  border: 1px solid var(--border);
  transition: background 0.4s ease, border-color 0.4s ease, box-shadow 0.4s ease, transform 0.4s ease;
}

.doctor-card:hover {
  background: var(--white);
  border-color: var(--primary-100);
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
}

.doctor-card__avatar {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: var(--white);
  font-size: 28px;
  font-weight: 800;
  margin-bottom: 16px;
  flex-shrink: 0;
}

.doctor-card__name {
  font-size: 18px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 6px;
}

.doctor-card__specialty {
  display: inline-flex;
  padding: 4px 12px;
  background: var(--primary-100);
  border-radius: 8px;
  font-size: 12px;
  font-weight: 600;
  color: var(--primary-dark);
  margin-bottom: 12px;
}

.doctor-card__desc {
  font-size: 14px;
  color: var(--text-light);
  line-height: 1.6;
  margin-bottom: 16px;
}

.doctor-card__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  justify-content: center;
  margin-bottom: 20px;
}

.doctor-card__tag {
  padding: 4px 10px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 11px;
  font-weight: 600;
  color: var(--text-light);
}

.doctor-card__btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 20px;
  background: var(--primary);
  color: var(--white);
  font-size: 13px;
  font-weight: 600;
  border-radius: 10px;
  transition: background 0.3s ease, box-shadow 0.3s ease;
  margin-top: auto;
}

.doctor-card__btn:hover {
  background: var(--primary-dark);
  box-shadow: 0 4px 12px rgba(11, 102, 83, 0.3);
}

.doctor-card__btn .material-symbols-outlined {
  font-size: 16px;
}

/* ==========================================================================
   15. REVIEWS
   ========================================================================== */
.reviews__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  margin-top: 40px;
}

.review-card {
  display: flex;
  flex-direction: column;
  padding: 32px;
  background: var(--light);
  border-radius: 24px;
  border: 1px solid var(--border);
  transition: background 0.4s ease, box-shadow 0.4s ease, transform 0.4s ease;
}

.review-card:hover {
  background: var(--white);
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
}

.review-card__quote {
  font-size: 48px;
  font-weight: 800;
  color: var(--primary-100);
  line-height: 1;
  margin-bottom: 8px;
  user-select: none;
}

.review-card__stars {
  display: flex;
  gap: 2px;
  margin-bottom: 16px;
}

.review-card__stars .material-symbols-outlined {
  font-size: 18px;
  color: var(--amber);
}

.review-card__text {
  font-size: 15px;
  font-weight: 400;
  color: var(--text);
  line-height: 1.7;
  font-style: italic;
  margin-bottom: 20px;
  flex-grow: 1;
}

.review-card__author {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
}

.review-card__avatar {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--primary-100);
  color: var(--primary-dark);
  font-size: 16px;
  font-weight: 700;
  flex-shrink: 0;
}

.review-card__name {
  font-size: 14px;
  font-weight: 700;
  color: var(--text);
}

.review-card__service {
  display: inline-flex;
  padding: 2px 8px;
  background: var(--primary-50);
  border-radius: 6px;
  font-size: 11px;
  font-weight: 600;
  color: var(--primary-dark);
  margin-top: 2px;
}

/* ==========================================================================
   16. QUIZ CALCULATOR
   ========================================================================== */
.quiz {
  background: linear-gradient(180deg, var(--white) 0%, var(--primary-50) 100%);
  border-radius: 24px;
  padding: 24px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-lg);
  margin-top: 40px;
}

/* Progress Bar */
.quiz__progress {
  height: 6px;
  background: var(--border);
  border-radius: 3px;
  margin-bottom: 32px;
  overflow: hidden;
}

.quiz__progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--primary) 0%, var(--primary-light) 100%);
  border-radius: 3px;
  transition: width 0.5s var(--ease-out);
}

.quiz__step-info {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 8px;
}

.quiz__title {
  font-size: 22px;
  font-weight: 800;
  color: var(--text);
  margin-bottom: 8px;
}

.quiz__subtitle {
  font-size: 14px;
  color: var(--text-light);
  margin-bottom: 28px;
}

/* Steps container */
.quiz__steps {
  position: relative;
}

.quiz-step {
  display: none;
}

.quiz-step.active {
  display: block;
  animation: fadeIn 0.4s ease;
}

/* Radio option cards */
.quiz__options {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  margin-bottom: 32px;
}

.quiz__option {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 20px;
  background: var(--white);
  border: 2px solid var(--border);
  border-radius: 16px;
  cursor: pointer;
  transition: border-color 0.3s ease, background 0.3s ease, box-shadow 0.3s ease;
}

.quiz__option:hover {
  border-color: var(--primary-light);
  background: var(--primary-50);
}

.quiz__option.selected {
  border-color: var(--primary);
  background: var(--primary-50);
  box-shadow: 0 0 0 3px rgba(11, 102, 83, 0.15);
}

.quiz__option input[type="radio"] {
  display: none;
}

.quiz__option-radio {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 2px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: border-color 0.3s ease, background 0.3s ease;
}

.quiz__option.selected .quiz__option-radio {
  border-color: var(--primary);
  background: var(--primary);
}

.quiz__option.selected .quiz__option-radio::after {
  content: '';
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--white);
}

.quiz__option-icon {
  font-size: 24px;
  color: var(--primary);
}

.quiz__option-text {
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
}

/* Quiz form (final step) */
.quiz__form {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 32px;
}

.quiz__input {
  width: 100%;
  padding: 14px 18px;
  background: var(--white);
  border: 2px solid var(--border);
  border-radius: 14px;
  font-size: 15px;
  color: var(--text);
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.quiz__input::placeholder {
  color: var(--text-muted);
}

.quiz__input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(11, 102, 83, 0.12);
}

/* Quiz navigation buttons */
.quiz__nav {
  display: flex;
  gap: 12px;
  justify-content: space-between;
}

.quiz__btn-back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 12px 24px;
  background: var(--light);
  color: var(--text-light);
  font-size: 14px;
  font-weight: 600;
  border-radius: 12px;
  transition: background 0.3s ease, color 0.3s ease;
}

.quiz__btn-back:hover {
  background: var(--border);
  color: var(--text);
}

.quiz__btn-back .material-symbols-outlined {
  font-size: 18px;
}

.quiz__btn-next {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 12px 24px;
  background: var(--primary);
  color: var(--white);
  font-size: 14px;
  font-weight: 600;
  border-radius: 12px;
  transition: background 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
  margin-left: auto;
}

.quiz__btn-next:hover {
  background: var(--primary-dark);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(11, 102, 83, 0.3);
}

.quiz__btn-next .material-symbols-outlined {
  font-size: 18px;
}

/* ==========================================================================
   17. FAQ ACCORDION
   ========================================================================== */
.faq__list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 40px;
}

.faq-item {
  background: var(--white);
  border-radius: 16px;
  border: 1px solid var(--border);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.faq-item:hover {
  border-color: var(--primary-100);
}

.faq-item__question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 20px 24px;
  text-align: left;
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
  cursor: pointer;
  transition: color 0.3s ease;
  gap: 12px;
}

.faq-item__question:hover {
  color: var(--primary);
}

.faq-chevron {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: transform 0.4s var(--ease-out);
}

.faq-chevron .material-symbols-outlined {
  font-size: 22px;
  color: var(--text-muted);
}

.faq-chevron.open {
  transform: rotate(180deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s var(--ease-out);
}

.faq-answer.open {
  max-height: 300px;
}

.faq-answer__content {
  padding: 0 24px 20px 24px;
  font-size: 14px;
  color: var(--text-light);
  line-height: 1.7;
}

/* ==========================================================================
   18. CONTACTS SECTION
   ========================================================================== */
.contacts {
  background: var(--dark);
  color: var(--white);
}

.contacts .section-label {
  color: var(--primary-light);
}

.contacts .section-title {
  color: var(--white);
}

.contacts .section-subtitle {
  color: var(--text-muted);
}

.contacts__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  margin-top: 40px;
}

/* Contact info items */
.contacts__info {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}

.contact-item__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: rgba(11, 102, 83, 0.15);
  color: var(--primary-light);
  flex-shrink: 0;
}

.contact-item__icon .material-symbols-outlined {
  font-size: 22px;
}

.contact-item__label {
  font-size: 12px;
  font-weight: 500;
  color: var(--text-muted);
  margin-bottom: 2px;
}

.contact-item__value {
  font-size: 16px;
  font-weight: 600;
  color: var(--white);
}

.contact-item__value a {
  color: var(--white);
  transition: color 0.3s ease;
}

.contact-item__value a:hover {
  color: var(--primary-light);
}

/* Contact form card */
.contacts__form-card {
  background: var(--dark-light);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 24px;
  padding: 32px;
}

.contacts__form-title {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 6px;
}

.contacts__form-subtitle {
  font-size: 14px;
  color: var(--text-muted);
  margin-bottom: 24px;
}

.contacts__form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.contacts__input,
.contacts__select,
.contacts__textarea {
  width: 100%;
  padding: 14px 18px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 14px;
  font-size: 15px;
  color: var(--white);
  transition: border-color 0.3s ease, background 0.3s ease;
}

.contacts__input::placeholder,
.contacts__textarea::placeholder {
  color: var(--text-muted);
}

.contacts__input:focus,
.contacts__select:focus,
.contacts__textarea:focus {
  border-color: var(--primary);
  background: rgba(255, 255, 255, 0.1);
}

.contacts__select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24'%3E%3Cpath fill='%2394a3b8' d='M7 10l5 5 5-5z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 40px;
  cursor: pointer;
}

.contacts__select option {
  background: var(--dark-light);
  color: var(--white);
}

.contacts__textarea {
  min-height: 100px;
  resize: vertical;
}

/* Checkbox */
.contacts__checkbox {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  cursor: pointer;
}

.contacts__checkbox input[type="checkbox"] {
  display: none;
}

.contacts__checkbox-mark {
  width: 20px;
  height: 20px;
  border-radius: 6px;
  border: 2px solid rgba(255, 255, 255, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: background 0.3s ease, border-color 0.3s ease;
  margin-top: 2px;
}

.contacts__checkbox input[type="checkbox"]:checked + .contacts__checkbox-mark {
  background: var(--primary);
  border-color: var(--primary);
}

.contacts__checkbox input[type="checkbox"]:checked + .contacts__checkbox-mark::after {
  content: '✓';
  font-size: 12px;
  font-weight: 700;
  color: var(--white);
}

.contacts__checkbox-text {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.5;
}

.contacts__checkbox-text a {
  color: var(--primary-light);
  text-decoration: underline;
}

/* Submit button */
.contacts__submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 16px 32px;
  background: var(--primary);
  color: var(--white);
  font-size: 16px;
  font-weight: 700;
  border-radius: 14px;
  transition: background 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
}

.contacts__submit:hover {
  background: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(11, 102, 83, 0.3);
}

.contacts__submit .material-symbols-outlined {
  font-size: 20px;
}

/* Success state */
.contacts__success {
  display: none;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 40px 20px;
}

.contacts__success.visible {
  display: flex;
}

.contacts__success-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: rgba(11, 102, 83, 0.15);
  color: var(--primary-light);
  margin-bottom: 16px;
}

.contacts__success-icon .material-symbols-outlined {
  font-size: 32px;
}

.contacts__success-title {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 8px;
}

.contacts__success-text {
  font-size: 14px;
  color: var(--text-muted);
}

/* ==========================================================================
   19. FOOTER
   ========================================================================== */
.footer {
  background: var(--dark);
  color: var(--white);
  padding-top: 60px;
  padding-bottom: 0;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.footer__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
  padding-bottom: 40px;
}

/* Footer brand */
.footer__brand {
  max-width: 320px;
}

.footer__logo {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}

.footer__logo-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: var(--primary);
  color: var(--white);
}

.footer__logo-icon .material-symbols-outlined {
  font-size: 22px;
}

.footer__logo-text {
  font-size: 16px;
  font-weight: 800;
}

.footer__desc {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.6;
}

/* Footer columns */
.footer__col-title {
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--white);
  margin-bottom: 16px;
}

.footer__links {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer__link {
  font-size: 14px;
  color: var(--text-muted);
  transition: color 0.3s ease;
}

.footer__link:hover {
  color: var(--primary-light);
}

/* Footer contact info */
.footer__contact-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: var(--text-muted);
  margin-bottom: 10px;
}

.footer__contact-item .material-symbols-outlined {
  font-size: 18px;
  color: var(--primary);
}

.footer__contact-item a {
  color: var(--text-muted);
  transition: color 0.3s ease;
}

.footer__contact-item a:hover {
  color: var(--primary-light);
}

/* Footer bottom bar */
.footer__bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: 20px 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: center;
  text-align: center;
}

.footer__copyright {
  font-size: 13px;
  color: var(--text-muted);
}

.footer__disclaimer {
  font-size: 12px;
  color: rgba(148, 163, 184, 0.6);
  line-height: 1.5;
  max-width: 640px;
}

/* ==========================================================================
   20. MODAL
   ========================================================================== */
.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 2000;
  background: var(--overlay);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.35s ease, visibility 0.35s ease;
}

.modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

.modal {
  background: var(--white);
  border-radius: 24px;
  padding: 32px;
  max-width: 480px;
  width: 100%;
  position: relative;
  transform: scale(0.92);
  opacity: 0;
  transition: transform 0.4s var(--ease-spring), opacity 0.35s ease;
  max-height: 90vh;
  overflow-y: auto;
}

.modal-overlay.active .modal {
  transform: scale(1);
  opacity: 1;
}

.modal__close {
  position: absolute;
  top: 16px;
  right: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--light);
  color: var(--text-muted);
  transition: background 0.3s ease, color 0.3s ease;
}

.modal__close:hover {
  background: var(--border);
  color: var(--text);
}

.modal__close .material-symbols-outlined {
  font-size: 20px;
}

.modal__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border-radius: 16px;
  background: var(--primary-100);
  color: var(--primary);
  margin-bottom: 20px;
}

.modal__icon .material-symbols-outlined {
  font-size: 28px;
}

.modal__title {
  font-size: 22px;
  font-weight: 800;
  color: var(--text);
  margin-bottom: 8px;
}

.modal__subtitle {
  font-size: 14px;
  color: var(--text-light);
  margin-bottom: 24px;
  line-height: 1.5;
}

.modal__form {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.modal__input {
  width: 100%;
  padding: 14px 18px;
  background: var(--light);
  border: 2px solid var(--border);
  border-radius: 14px;
  font-size: 15px;
  color: var(--text);
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.modal__input::placeholder {
  color: var(--text-muted);
}

.modal__input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(11, 102, 83, 0.12);
}

.modal__submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 16px 32px;
  background: var(--primary);
  color: var(--white);
  font-size: 16px;
  font-weight: 700;
  border-radius: 14px;
  transition: background 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
  margin-top: 4px;
}

.modal__submit:hover {
  background: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(11, 102, 83, 0.3);
}

.modal__submit .material-symbols-outlined {
  font-size: 20px;
}

.modal__privacy {
  font-size: 12px;
  color: var(--text-muted);
  text-align: center;
  line-height: 1.5;
}

.modal__privacy a {
  color: var(--primary);
  text-decoration: underline;
}

/* Modal dynamic content */
.modal__content {
  margin-top: 16px;
}

/* ==========================================================================
   21. SOS WIDGET
   ========================================================================== */
.sos-widget {
  position: fixed;
  left: 16px;
  bottom: 88px;
  z-index: 40;
  display: none;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  background: linear-gradient(135deg, var(--red) 0%, var(--red-dark) 100%);
  color: var(--white);
  border-radius: 16px;
  box-shadow: 0 8px 24px rgba(239, 68, 68, 0.35);
  cursor: pointer;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  text-decoration: none;
}

.sos-widget.visible {
  display: flex;
}

.sos-widget:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(239, 68, 68, 0.45);
}

.sos-widget__icon-wrap {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.sos-widget__icon .material-symbols-outlined {
  font-size: 24px;
  color: var(--white);
}

.sos-widget__text {
  font-size: 13px;
  font-weight: 700;
  line-height: 1.3;
}

.sos-widget__text-sub {
  font-size: 11px;
  font-weight: 500;
  opacity: 0.85;
}

/* ==========================================================================
   22. MOBILE BOTTOM BAR
   ========================================================================== */
.mobile-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 50;
  background: var(--white);
  border-top: 1px solid var(--border);
  padding: 8px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
}

.mobile-bar__btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 12px 8px;
  border-radius: 12px;
  font-size: 13px;
  font-weight: 700;
  color: var(--white);
  text-decoration: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.mobile-bar__btn:active {
  transform: scale(0.97);
}

.mobile-bar__btn--call {
  background: var(--primary);
}

.mobile-bar__btn--telegram {
  background: #0088cc;
}

.mobile-bar__btn--form {
  background: var(--accent);
}

.mobile-bar__btn .material-symbols-outlined {
  font-size: 18px;
}

/* ==========================================================================
   23. FLOATING ELEMENTS — Scroll to Top
   ========================================================================== */
.scroll-top {
  position: fixed;
  bottom: 88px;
  right: 16px;
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--white);
  color: var(--text);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-md);
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition: opacity 0.3s ease, visibility 0.3s ease, transform 0.3s ease, background 0.3s ease;
}

.scroll-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.scroll-top:hover {
  background: var(--primary);
  color: var(--white);
  border-color: var(--primary);
}

.scroll-top .material-symbols-outlined {
  font-size: 24px;
}

/* ==========================================================================
   24. SCROLL ANIMATIONS
   ========================================================================== */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-left {
  opacity: 0;
  transform: translateX(-40px);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal-left.visible {
  opacity: 1;
  transform: translateX(0);
}

.reveal-right {
  opacity: 0;
  transform: translateX(40px);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal-right.visible {
  opacity: 1;
  transform: translateX(0);
}

.reveal-scale {
  opacity: 0;
  transform: scale(0.92);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal-scale.visible {
  opacity: 1;
  transform: scale(1);
}

/* Stagger children */
.stagger > * {
  transition-delay: calc(var(--i, 0) * 120ms);
}

/* ==========================================================================
   25. CARD HOVER LIFT
   ========================================================================== */
.card-lift {
  transition: transform 0.4s var(--ease-out), box-shadow 0.4s var(--ease-out);
}

.card-lift:hover {
  transform: translateY(-6px);
}

/* ==========================================================================
   26. SHIMMER EFFECT
   ========================================================================== */
.shimmer {
  position: relative;
  overflow: hidden;
}

.shimmer::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(255, 255, 255, 0.25) 50%,
    transparent 100%
  );
  animation: shimmerSlide 2.5s ease-in-out infinite;
}

@keyframes shimmerSlide {
  0% { left: -100%; }
  100% { left: 100%; }
}

/* ==========================================================================
   27. PULSE RING
   ========================================================================== */
.pulse-ring {
  position: relative;
}

.pulse-ring::before {
  content: '';
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  animation: pulseRing 2s ease-out infinite;
}

@keyframes pulseRing {
  0% {
    box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.5);
  }
  70% {
    box-shadow: 0 0 0 12px rgba(239, 68, 68, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(239, 68, 68, 0);
  }
}

.pulse-ring--primary::before {
  animation-name: pulseRingPrimary;
}

@keyframes pulseRingPrimary {
  0% {
    box-shadow: 0 0 0 0 rgba(11, 102, 83, 0.5);
  }
  70% {
    box-shadow: 0 0 0 12px rgba(11, 102, 83, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(11, 102, 83, 0);
  }
}

/* ==========================================================================
   28. COUNTER ANIMATION
   ========================================================================== */
.counter-value {
  display: inline-block;
  font-variant-numeric: tabular-nums;
}

/* ==========================================================================
   29. RESPONSIVE BREAKPOINTS
   ========================================================================== */

/* --- SM: 576px --- */
@media (min-width: 576px) {
  .container {
    padding-left: 24px;
    padding-right: 24px;
  }

  .hero__features {
    grid-template-columns: repeat(3, 1fr);
  }

  .hero__buttons {
    flex-direction: row;
    justify-content: center;
  }

  .hero__btn-primary,
  .hero__btn-secondary {
    width: auto;
  }

  .services__grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .doctors__grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .quiz__options {
    grid-template-columns: repeat(2, 1fr);
  }

  .promos__grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .trust-section__grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer__grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* --- MD: 768px --- */
@media (min-width: 768px) {
  .container {
    padding-left: 32px;
    padding-right: 32px;
  }

  .section {
    padding-top: 100px;
    padding-bottom: 100px;
  }

  .hero {
    padding-top: 80px;
    padding-bottom: 80px;
  }

  .hero__content {
    text-align: left;
  }

  .hero__subtitle {
    margin-left: 0;
    margin-right: 0;
  }

  .hero__buttons {
    justify-content: flex-start;
  }

  .tab-panel {
    padding: 32px;
  }

  .tab-panel__grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .tab-panel__header {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }

  .quiz {
    padding: 32px;
  }

  .reviews__grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .contacts__grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .about__grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .about__content {
    order: 1;
  }

  .about__visual {
    order: 2;
  }

  .footer__bottom {
    flex-direction: row;
    justify-content: space-between;
    text-align: left;
  }
}

/* --- LG: 1024px --- */
@media (min-width: 1024px) {
  /* Header desktop */
  .nav {
    display: flex;
  }

  .header__phone {
    display: flex;
  }

  .header__cta {
    display: inline-flex;
  }

  .burger {
    display: none;
  }

  /* Hero desktop grid */
  .hero {
    padding-top: 112px;
    padding-bottom: 112px;
  }

  .hero__grid {
    grid-template-columns: 7fr 5fr;
    gap: 48px;
  }

  .hero__image {
    aspect-ratio: 1 / 1;
  }

  /* Services 3-col */
  .services__grid {
    grid-template-columns: repeat(3, 1fr);
  }

  /* Doctors 3-col */
  .doctors__grid {
    grid-template-columns: repeat(3, 1fr);
  }

  /* Reviews 3-col */
  .reviews__grid {
    grid-template-columns: repeat(3, 1fr);
  }

  /* Trust 4-col — 7 items: 4+3 looks balanced */
  .trust-section__grid {
    grid-template-columns: repeat(4, 1fr);
  }

  /* Timeline — center line */
  .timeline {
    padding-left: 0;
  }

  .timeline::before {
    left: 50%;
    transform: translateX(-50%);
  }

  .timeline__step {
    width: 50%;
    margin-bottom: 48px;
  }

  .timeline__step:nth-child(odd) {
    padding-right: 48px;
    text-align: right;
  }

  .timeline__step:nth-child(odd) .timeline__dot {
    left: auto;
    right: -6px;
  }

  .timeline__step:nth-child(odd) .timeline__desc {
    margin-left: auto;
  }

  .timeline__step:nth-child(even) {
    margin-left: auto;
    padding-left: 48px;
  }

  .timeline__step:nth-child(even) .timeline__dot {
    left: -6px;
  }

  /* Footer 4-col */
  .footer__grid {
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
  }

  /* Hide mobile bar on desktop */
  .mobile-bar {
    display: none;
  }

  /* Adjust scroll-top and sos-widget positions for desktop */
  .scroll-top {
    bottom: 32px;
    right: 32px;
  }

  .sos-widget {
    bottom: 32px;
    left: 32px;
  }
}

/* --- XL: 1280px --- */
@media (min-width: 1280px) {
  /* Services 4-col */
  .services__grid {
    grid-template-columns: repeat(4, 1fr);
  }

  .promos__grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .hero__grid {
    gap: 64px;
  }
}

/* ==========================================================================
   DYNAMIC MODAL CONTENT (generated by JS)
   ========================================================================== */
.modal-title {
  font-size: 22px;
  font-weight: 800;
  color: var(--text);
  margin-bottom: 8px;
}
.modal-title--red { color: var(--red); }
.modal-subtitle {
  font-size: 14px;
  color: var(--primary);
  font-weight: 600;
  margin-bottom: 16px;
}
.modal-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.modal-form input {
  width: 100%;
  padding: 14px 18px;
  background: var(--light);
  border: 2px solid var(--border);
  border-radius: 14px;
  font-size: 15px;
  color: var(--text);
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}
.modal-form input::placeholder { color: var(--text-muted); }
.modal-form input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(11, 102, 83, 0.12);
}
.input-error {
  border-color: var(--red) !important;
  box-shadow: 0 0 0 3px rgba(218, 55, 55, 0.15) !important;
}

/* Button variants for modal and general use */
.btn--green, .btn--red, .btn--blue {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 16px 32px;
  color: var(--white);
  font-size: 16px;
  font-weight: 700;
  border-radius: 14px;
  cursor: pointer;
  border: none;
  transition: background 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
  margin-top: 4px;
}
.btn--green { background: var(--primary); }
.btn--green:hover { background: var(--primary-dark); transform: translateY(-2px); box-shadow: 0 8px 24px rgba(11, 102, 83, 0.3); }
.btn--red { background: var(--red); }
.btn--red:hover { background: var(--red-dark); transform: translateY(-2px); box-shadow: 0 8px 24px rgba(239, 68, 68, 0.3); }
.btn--blue { background: var(--accent); }
.btn--blue:hover { background: var(--accent-dark); transform: translateY(-2px); box-shadow: 0 8px 24px rgba(30, 58, 138, 0.3); }

/* Form success (main form) */
.form-success {
  text-align: center;
  padding: 32px 16px;
}
.form-success__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--primary-100);
  color: var(--primary);
  font-size: 32px;
  font-weight: 700;
  margin: 0 auto 16px;
}
.form-success__title {
  font-size: 20px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 8px;
}
.form-success__text {
  font-size: 14px;
  color: var(--text-light);
}

/* Modal success */
.modal-success {
  text-align: center;
  padding: 32px 16px;
}
.modal-success__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--primary-100);
  color: var(--primary);
  font-size: 32px;
  font-weight: 700;
  margin: 0 auto 16px;
}
.modal-success__title {
  font-size: 20px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 8px;
}
.modal-success__text {
  font-size: 14px;
  color: var(--text-light);
}

/* License detail modal */
.license-detail { text-align: center; }
.license-org {
  font-size: 14px;
  color: var(--text-light);
  margin-bottom: 16px;
}
.license-desc {
  font-size: 14px;
  color: var(--text-light);
  line-height: 1.6;
  margin-bottom: 16px;
}
.license-meta {
  padding: 16px;
  background: var(--light);
  border-radius: 12px;
  font-size: 14px;
  color: var(--text);
}
.license-meta p { margin-bottom: 4px; }

/* Mobile menu phone styling */
.mobile-menu__phone {
  text-align: center;
}
.mobile-menu__phone a {
  display: block;
  font-size: 22px;
  font-weight: 800;
  color: var(--primary);
  margin-bottom: 4px;
}
.mobile-menu__phone span {
  display: block;
  font-size: 13px;
  color: var(--text-muted);
}

/* Header inner layout */
.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* Header logo info */
.header__logo-info {
  display: flex;
  flex-direction: column;
}

/* ==========================================================================
   30. PRINT STYLES
   ========================================================================== */
@media print {
  .header,
  .mobile-bar,
  .scroll-top,
  .sos-widget,
  .modal-overlay,
  .mobile-menu,
  .burger {
    display: none !important;
  }

  body {
    background: white;
    color: black;
    font-size: 12pt;
  }

  .hero {
    margin-top: 0;
    padding-top: 20px;
    padding-bottom: 20px;
  }

  .section {
    padding-top: 24px;
    padding-bottom: 24px;
  }

  .reveal,
  .reveal-left,
  .reveal-right,
  .reveal-scale {
    opacity: 1 !important;
    transform: none !important;
  }

  .contacts {
    background: white;
    color: black;
  }

  .contacts .section-title {
    color: black;
  }

  .footer {
    background: white;
    color: black;
  }

  a {
    text-decoration: underline;
    color: black;
  }

  .hero__blob,
  .promo-card__decor {
    display: none;
  }

  * {
    box-shadow: none !important;
  }
}

/* ==========================================================================
   MATERIAL SYMBOLS — Global Font Settings
   ========================================================================== */
.material-symbols-outlined {
  font-variation-settings: 'FILL' 1, 'wght' 400, 'GRAD' 0, 'opsz' 24;
}

/* ==========================================================================
   COOKIE CONSENT BANNER (152-ФЗ)
   ========================================================================== */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 9999;
  background: rgba(13, 20, 18, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  padding: 16px;
  transform: translateY(0);
  transition: transform 0.4s var(--ease-out);
}

.cookie-banner.hidden {
  transform: translateY(100%);
  pointer-events: none;
}

.cookie-banner__content {
  max-width: 1280px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}

.cookie-banner__text {
  flex: 1;
  min-width: 280px;
  font-size: 13px;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.75);
}

.cookie-banner__link {
  color: var(--primary-light);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.cookie-banner__link:hover {
  color: var(--primary);
}

.cookie-banner__btn {
  flex-shrink: 0;
  padding: 10px 28px;
  background: var(--primary);
  color: var(--white);
  font-size: 14px;
  font-weight: 600;
  border-radius: 12px;
  transition: background 0.3s ease, transform 0.2s ease;
}

.cookie-banner__btn:hover {
  background: var(--primary-dark);
  transform: translateY(-1px);
}

@media (max-width: 576px) {
  .cookie-banner {
    padding-bottom: 80px; /* above mobile bar */
  }
  .cookie-banner__content {
    flex-direction: column;
    text-align: center;
  }
}
