/* ===== SUBTLE DOT-GRID PATTERN ===== */
/* Light SVG dot pattern — 4-6% opacity, adds depth without distraction */
/* Medical cross variant is defined separately for targeted sections */
:root {
  --dot-pattern: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20'%3E%3Ccircle cx='1' cy='1' r='1' fill='%23E1E5E8' opacity='0.06'/%3E%3C/svg%3E");
  --medical-cross-pattern: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='32' height='32'%3E%3Crect x='13' y='4' width='6' height='24' rx='1' fill='%23E1E5E8' opacity='0.05'/%3E%3Crect x='4' y='13' width='24' height='6' rx='1' fill='%23E1E5E8' opacity='0.05'/%3E%3C/svg%3E");
}

/* Respect reduced-motion preference */
@media (prefers-reduced-motion: reduce) {
  :root {
    --dot-pattern: none;
    --medical-cross-pattern: none;
  }
}

/* ===== VARIABLES ===== */
:root {
  --teal: #A9CAD6;
  --teal-bg: #A6A9AA;
  --teal-light: #F5F1EA;
  --dark: #343A40;
    --text-secondary: #8A847A;
  --white: #F5F1EA;
  --bg-light: #E8E5DF;
  --hero-start: #f0f3f7;
  --hero-end: #e5eaf2;
  --emergency-start: #f5f7fa;
  --emergency-end: #e1e5e8;
  --bg-light-dark: #c5c9cd;
  --teal-dark: #c5c9cd;
  --input-border: #e8edf2;
  --telegram: #0088cc;
  --whatsapp: #25D366;
  --shadow: 0 0.4rem 3rem 0 rgba(0, 0, 0, 0.08);
  --shadow-sm: 0 0.4rem 2rem 0 rgba(0, 0, 0, 0.04);
  --shadow-primary: 0 6px 20px rgba(0, 0, 0, 0.08);
  --shadow-card: 0 4px 12px rgba(0, 0, 0, 0.06);
  --shadow-card-hover: 0 12px 32px rgba(0, 0, 0, 0.08);
  --shadow-btn-hover: 0 8px 30px rgba(0, 0, 0, 0.1);
  --shadow-hero: 0 20px 60px rgba(0, 0, 0, 0.08);
  --shadow-avatar: 0 4px 20px rgba(0, 0, 0, 0.1);
  --shadow-teal: 0 6px 20px rgba(0, 0, 0, 0.08);
  --shadow-scenario: 0 8px 24px rgba(0, 0, 0, 0.06);
  --shadow-focus: 0 0 0 3px rgba(0, 0, 0, 0.08);
  --shadow-focus-teal: 0 0 0 3px rgba(0, 0, 0, 0.06);
  --shadow-glass: 0 4px 24px rgba(0,0,0,0.06);
  --radius: 12px;
  --radius-sm: 8px;
  --transition: all 0.3s ease;
  --transition-hover: transform 0.2s ease, box-shadow 0.2s ease, background 0.25s ease, border-color 0.25s ease;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: 'Open Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--dark);
  background: var(--white);
}

h1, h2, h3, h4 {
  font-family: 'Roboto', sans-serif;
  font-weight: 700;
  line-height: 1.2;
}

a { text-decoration: none; color: inherit; transition: var(--transition); }
img { max-width: 100%; display: block; }
ul { list-style: none; }

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ===== BUTTONS ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: var(--radius);
  font-family: 'Roboto', sans-serif;
  font-weight: 600;
  font-size: 15px;
  cursor: pointer;
  border: none;
  transition: var(--transition);
  text-align: center;
  white-space: nowrap;
}

.btn-primary {
  background: linear-gradient(135deg, var(--teal-bg) 0%, var(--teal-light) 100%);
  color: var(--dark);
  box-shadow: var(--shadow);
}
.btn-primary:hover {
  transition: var(--transition-hover);
  transform: translateY(-2px);
  box-shadow: var(--shadow-primary);
}

/* Glass effect for hero CTA buttons */
.btn-glass {
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  background: rgba(255, 255, 255, 0.7);
  border: 1.5px solid rgba(255, 255, 255, 0.4);
  color: var(--dark);
  box-shadow: var(--shadow-glass);
}
.btn-light {
  background: linear-gradient(135deg, var(--bg-light) 0%, var(--bg-light-dark) 100%);
  color: var(--dark);
  box-shadow: var(--shadow-card);
}
.btn-light:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-teal);
}

.btn-large {
  padding: 18px 36px;
  font-size: 17px;
  border-radius: 14px;
}

.btn-success-state {
  background: #FFFFFF;
  color: var(--dark);
}

/* ===== HEADER ===== */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--white);
  box-shadow: var(--shadow-sm);
  padding: 0;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  max-width: 1200px;
  margin: 0 auto;
}

.logo {
  font-family: 'Roboto', sans-serif;
  font-size: 24px;
  font-weight: 900;
  color: var(--teal);
  letter-spacing: -0.5px;
}

.logo span { color: var(--dark); }

.header-phone {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: 'Roboto', sans-serif;
  font-weight: 700;
  font-size: 18px;
  color: var(--dark);
}

.header-phone svg { color: var(--teal); flex-shrink: 0; }

.mt-12 { margin-top: 12px; }
.btn-sm { padding: 10px 20px; font-size: 14px; }
.btn-block { width: 100%; }
.text-center { text-align: center; }
.requisite-note { font-size: 12px; margin-top: 12px; line-height: 1.5; }
.sidebar-desc { font-size: 14px; margin-bottom: 16px; }
.cta-phone-btn { text-decoration: none; font-size: 18px; }
.form-textarea { border-radius: var(--radius); border: none; }
.no-border { border: none; }
.sidebar-text { font-size: 13px; margin-bottom: 16px; }
.cta-textarea { padding: 16px 20px; border-radius: var(--radius-sm); border: none; font-size: 16px; font-family: inherit; background: rgba(255,255,255,0.15); color: var(--dark); outline: none; resize: vertical; }
.map-iframe { border-radius: var(--radius); border: none; width: 100%; height: 400px; display: block; }
.header-actions { display: flex; align-items: center; gap: 12px; }

/* ===== THEME TOGGLE ===== */
.theme-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: none;
  background: var(--bg-light);
  cursor: pointer;
  transition: var(--transition);
  color: var(--dark);
  flex-shrink: 0;
}
.theme-toggle:hover {
  background: var(--teal-bg);
  color: var(--dark);
}
html[data-theme="dark"] .theme-toggle {
  background: #2d3a4f;
  color: #e8ecf0;
}
html[data-theme="dark"] .theme-toggle:hover {
  background: #4a7bc5;
}

/* ===== SERVICE PAGE ===== */
.back-link { color: var(--gray-metallic); font-size: 14px; margin-bottom: 12px; display: inline-block; }
.service-subtitle { font-size: 18px; color: var(--gray-metallic); margin-bottom: 32px; }
.btn-call { padding: 18px 48px; font-size: 18px; }
.mt-24 { margin-top: 24px; }
.symptoms-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 12px; max-width: 700px; margin: 0 auto 32px; }
.symptom-item { padding: 14px 20px; background: var(--bg-light); border-radius: var(--radius-sm); font-weight: 600; font-size: 15px; }
.symptoms-note { text-align: center; color: var(--gray-metallic); font-size: 15px; }
.bg-pink { background: #fff3f3; }
.contraindications-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 12px; max-width: 700px; margin: 0 auto; }
.contraindication-item { padding: 14px 20px; background: #fff; border-radius: var(--radius-sm); font-size: 14px; color: #c0392b; border-left: 3px solid #c0392b; }
.contraindications-note { text-align: center; color: var(--gray-metallic); font-size: 14px; margin-top: 16px; }
.prep-container { max-width: 700px; margin: 0 auto; }
.prep-step { display: flex; gap: 16px; align-items: flex-start; margin-bottom: 12px; }
.step-number { min-width: 32px; height: 32px; background: var(--teal-bg); color: var(--dark); border-radius: 50%; display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 14px; flex-shrink: 0; }
.prep-step-text { font-size: 15px; color: var(--dark); line-height: 1.6; padding-top: 4px; }
.included-container { max-width: 700px; margin: 0 auto; }
.included-item { display: flex; gap: 12px; align-items: center; margin-bottom: 10px; }
.included-icon { color: var(--dark); width: 24px; height: 24px; background: var(--teal-bg); border-radius: 50%; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.included-text { font-size: 15px; color: var(--dark); }
.step-card-title { font-size: 17px; margin-bottom: 8px; color: var(--teal); }
.step-card-desc { font-size: 14px; color: var(--gray-metallic); }
.prices-wrapper { display: flex; justify-content: center; }
.location-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; max-width: 700px; margin: 0 auto; }
.location-card { background: var(--white); border-radius: var(--radius); padding: 28px; }
.location-card-title { color: var(--teal); font-size: 18px; margin-bottom: 8px; }
.location-card-text { color: var(--gray-metallic); font-size: 14px; }
.location-note { margin-top: 24px; color: var(--gray-metallic); }
.treatment-text { font-size: 16px; color: var(--gray-metallic); max-width: 600px; margin: 0 auto 16px; }
.doctor-card-inline { display: inline-block; background: var(--white); border-radius: var(--radius); padding: 32px; text-align: center; }
.doctor-photo-wrapper { width: 100px; height: 100px; border-radius: 50%; margin: 0 auto 16px; overflow: hidden; box-shadow: var(--shadow-avatar); }
.doctor-photo { width: 100%; height: 100%; object-fit: cover; display: block; }
.doctor-name { font-size: 18px; margin-bottom: 4px; }
.doctor-position { color: var(--teal); font-size: 14px; font-weight: 600; margin-bottom: 16px; }
.cta-container { text-align: center; max-width: 600px; }
.cta-section-pad { padding: 80px 0; }

/* Nav */
.nav { display: flex; align-items: center; gap: 4px; }
.nav a {
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 600;
  color: var(--dark);
  transition: var(--transition);
}
.nav a:hover { color: var(--teal); }

/* Burger */
.burger { display: none; flex-direction: column; gap: 5px; cursor: pointer; padding: 8px; }
.burger span {
  width: 24px; height: 2px; background: var(--dark);
  border-radius: 2px; transition: var(--transition);
}

/* ===== HERO ===== */
.hero {
  background: linear-gradient(135deg, var(--hero-start) 0%, var(--hero-end) 100%), var(--dot-pattern);
  background-size: 100% 100%, 20px 20px;
  overflow: hidden;
  position: relative;
}

/* Animated gradient overlay */
.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    -45deg,
    rgba(225, 229, 232, 0.06) 0%,
    rgba(74, 123, 197, 0.08) 25%,
    rgba(225, 229, 232, 0.04) 50%,
    rgba(74, 123, 197, 0.07) 75%,
    rgba(225, 229, 232, 0.06) 100%
  );
  background-size: 200% 200%;
  animation: gradientMove 12s ease infinite;
  pointer-events: none;
  z-index: 0;
}

@keyframes gradientMove {
  0%   { background-position: 0% 50%; }
  50%  { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

.hero-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  padding: 80px 20px;
  max-width: 1200px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

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

.hero h1 {
  font-size: 42px;
  font-weight: 900;
  color: var(--dark);
  margin-bottom: 16px;
  letter-spacing: -1px;
  line-height: 1.15;
}

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

.hero-subtitle {
  font-size: 18px;
  color: var(--gray-metallic);
  margin-bottom: 36px;
  line-height: 1.5;
}

.hero-scenarios {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 32px;
}

.scenario-card {
  display: grid;
  grid-template-columns: 52px 1fr auto;
  gap: 16px;
  align-items: center;
  background: rgba(255, 255, 255, 0.85);
  border: 1.5px solid rgba(225, 229, 232, 0.12);
  border-radius: 16px;
  padding: 18px 20px;
  transition: box-shadow 0.2s ease, transform 0.2s ease, border-color 0.2s ease;
  backdrop-filter: blur(8px);
}

.scenario-card:hover {
  box-shadow: var(--shadow-scenario);
  transform: translateY(-2px);
  border-color: rgba(225, 229, 232, 0.3);
}

.scenario-icon-wrap {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--teal-bg) 0%, var(--teal-light) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.scenario-content {
  min-width: 0;
}

.scenario-title {
  font-size: 17px;
  font-weight: 700;
  color: var(--dark);
  margin: 0 0 4px;
  line-height: 1.2;
}

.scenario-desc {
  font-size: 13.5px;
  color: var(--gray-metallic);
  margin: 0;
  line-height: 1.4;
}

.scenario-btn {
  flex-shrink: 0;
  white-space: nowrap;
  padding: 10px 18px;
  font-size: 14px;
}

.trust-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 32px;
  align-items: flex-start;
}

.trust-badge {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: var(--gray-metallic);
  font-weight: 600;
  animation: badgeFloat 3s ease-in-out infinite;
}

.trust-badge:nth-child(1) { animation-delay: 0s; }
.trust-badge:nth-child(2) { animation-delay: 0.6s; }
.trust-badge:nth-child(3) { animation-delay: 1.2s; }
.trust-badge:nth-child(4) { animation-delay: 1.8s; }

@keyframes badgeFloat {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(-4px); }
}

/* Respect reduced motion */
@media (prefers-reduced-motion: reduce) {
  .trust-badge { animation: none; }
}

.trust-badge svg { color: var(--teal); flex-shrink: 0; }

.hero-image {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-image img {
  width: 100%;
  max-width: 460px;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  object-position: center top;
  border-radius: 24px;
  box-shadow: var(--shadow-hero);
}

.hero-image::before {
  content: '';
  position: absolute;
  width: 300px;
  height: 300px;
  background: linear-gradient(135deg, var(--teal-bg) 0%, var(--teal-light) 100%);
  border-radius: 50%;
  opacity: 0.15;
  z-index: -1;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

/* ===== SECTION COMMON ===== */
section { padding: 80px 0; position: relative; }

/* Gradient fade at top/bottom edges — fades into adjacent sections */
section::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 40px;
  background: linear-gradient(to bottom, rgba(255,255,255,0.5), transparent);
  pointer-events: none;
  z-index: 0;
}
section::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 40px;
  background: linear-gradient(to top, rgba(225,229,232,0.5), transparent);
  pointer-events: none;
  z-index: 0;
}

/* Only apply gradient backgrounds to sections that DON'T have explicit bg classes.
   These use ::before pseudo to blend smoothly into neighbors. */
section:not([class*="bg-"]):not(.hero):not(.emergency):not(.cta-teal):not(.cta-section) {
  background: linear-gradient(to bottom, var(--white) 0%, var(--bg-light) 50%, var(--white) 100%), var(--dot-pattern);
  background-size: 100% 100%, 20px 20px;
  position: relative;
  overflow: hidden;
}
/* Wave at bottom — smooth transition into bg-light section */
section:not([class*="bg-"]):not(.hero):not(.emergency):not(.cta-teal):not(.cta-section)::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 0;
  right: 0;
  height: 60px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 60' preserveAspectRatio='none'%3E%3Cpath fill='%23E1E5E8' d='M0,0 C240,40 480,60 720,40 C960,20 1200,40 1440,0 L1440,60 L0,60 Z'/%3E%3C/svg%3E") no-repeat center bottom;
  background-size: 100% 60px;
  pointer-events: none;
  z-index: 1;
}

.section-title {
  font-size: 36px;
  font-weight: 900;
  color: var(--dark);
  text-align: center;
  margin-bottom: 12px;
  letter-spacing: -0.5px;
}

.section-subtitle {
  font-size: 18px;
  color: var(--gray-metallic);
  text-align: center;
  margin-bottom: 48px;
}

/* ===== EMERGENCY ===== */
.emergency {
  background: linear-gradient(135deg, var(--emergency-start) 0%, var(--emergency-end) 100%), var(--medical-cross-pattern);
  background-size: 100% 100%, 32px 32px;
  color: var(--dark); padding: 60px 0;
  position: relative;
  overflow: hidden;
}
/* Wave SVG divider at top — smooth transition from hero (light gray) */
.emergency::before {
  content: '';
  position: absolute;
  top: -1px;
  left: 0;
  right: 0;
  height: 60px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 60' preserveAspectRatio='none'%3E%3Cpath fill='%23E1E5E8' d='M0,60 C240,20 480,0 720,20 C960,40 1200,20 1440,60 L1440,0 L0,0 Z'/%3E%3C/svg%3E") no-repeat center top;
  background-size: 100% 60px;
  pointer-events: none;
  z-index: 1;
}
.emergency .section-title { color: var(--dark); }
.emergency::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 0;
  right: 0;
  height: 60px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 60' preserveAspectRatio='none'%3E%3Cpath fill='%23ffffff' d='M0,0 C240,40 480,60 720,40 C960,20 1200,40 1440,0 L1440,60 L0,60 Z'/%3E%3C/svg%3E") no-repeat center bottom;
  background-size: 100% 60px;
  pointer-events: none;
  z-index: 1;
}

.symptoms-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 16px;
  max-width: 800px;
  margin: 0 auto 40px;
}

/* ===== Symptom Cards (red alert) ===== */
.symptom-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 12px;
  max-width: 800px;
  margin: 0 auto 36px;
}

.symptom-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 18px;
  background: #fff;
  border-radius: var(--radius-sm);
  border-left: 4px solid #c0392b;
  font-size: 15px;
  font-weight: 600;
  color: var(--dark);
  box-shadow: 0 2px 8px rgba(192, 57, 43, 0.06);
  transition: var(--transition);
}

.symptom-card:hover {
  box-shadow: 0 4px 16px rgba(192, 57, 43, 0.12);
  transform: translateX(3px);
}

.symptom-card svg {
  flex-shrink: 0;
  color: #c0392b;
  opacity: 0.85;
}

/* ===== Emergency Alert Section ===== */
.emergency-alert {
  background: #fff3f3;
  padding: 60px 0;
  text-align: center;
}

.emergency-alert .section-title {
  color: #c0392b;
}

.emergency-alert .section-subtitle {
  color: #8a3a3a;
  font-size: 16px;
}

.emergency-alert .symptom-cards {
  max-width: 800px;
  margin: 0 auto 32px;
}

.emergency-alert .symptom-card {
  background: #fff;
  border-left-color: #c0392b;
}

.emergency-alert .btn-emergency {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 16px 40px;
  background: linear-gradient(135deg, #c0392b 0%, #a93226 100%);
  color: #fff;
  font-weight: 700;
  font-size: 17px;
  border-radius: 14px;
  border: none;
  cursor: pointer;
  transition: var(--transition);
  box-shadow: 0 6px 20px rgba(192, 57, 43, 0.3);
}

.emergency-alert .btn-emergency:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(192, 57, 43, 0.4);
}

.symptom {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 20px;
  background: rgba(225, 229, 232, 0.12);
  border-radius: var(--radius-sm);
  font-size: 15px;
  font-weight: 600;
  color: var(--dark);
}

.symptom svg { flex-shrink: 0; color: var(--teal); opacity: 0.9; }

.emergency-cta { text-align: center; }

.emergency-cta .btn {
  background: var(--teal-bg);
  color: var(--dark);
  font-weight: 700;
  padding: 18px 48px;
  font-size: 18px;
  border-radius: 14px;
}
.emergency-cta .btn:hover { transform: translateY(-2px); box-shadow: var(--shadow-btn-hover); }

/* ===== BENEFITS ===== */
.benefits-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.benefit-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 32px 24px;
  text-align: center;
  box-shadow: var(--shadow-sm);
  border: 1px solid rgba(116, 140, 164, 0.1);
  transition: var(--transition);
}

.benefit-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-card-hover);
}

.benefit-icon {
  width: 64px; height: 64px;
  background: linear-gradient(135deg, var(--teal-bg) 0%, var(--teal-light) 100%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
}

.benefit-icon svg { color: var(--dark); }

.benefit-card h3 {
  font-size: 18px;
  color: var(--dark);
  margin-bottom: 8px;
}

.benefit-card p {
  font-size: 14px;
  color: var(--gray-metallic);
  line-height: 1.5;
}

/* ===== SERVICES ===== */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.service-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 32px 24px;
  border: 1px solid rgba(225, 229, 232, 0.12);
  box-shadow: 0 1px 3px rgba(43,76,155,0.08), 0 4px 12px rgba(43,76,155,0.06), 0 8px 24px rgba(43,76,155,0.04);
  transition: var(--transition);
  cursor: pointer;
  height: 100%;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
}

.service-card::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(255,255,255,0.4) 0%, transparent 60%);
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}

.service-card:hover {
  border-color: rgba(225, 229, 232, 0.3);
  transform: translateY(-6px);
  box-shadow: var(--shadow-card-hover-layered);
}

.service-card:hover::after {
  opacity: 1;
}

.service-icon {
  width: 56px; height: 56px;
  background: var(--bg-light);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  color: var(--teal);
}

.service-card h3 {
  font-size: 18px;
  color: var(--dark);
  margin-bottom: 10px;
}

.service-card p {
  font-size: 14px;
  color: var(--gray-metallic);
  line-height: 1.5;
  margin-bottom: 16px;
}

.service-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--teal);
  font-size: 14px;
  font-weight: 700;
}

.service-link:hover { gap: 10px; color: var(--teal-light); }

/* ===== DOCTORS ===== */
.doctors-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.doctor-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 28px 20px;
  text-align: center;
  box-shadow: 0 1px 3px rgba(43,76,155,0.08), 0 4px 12px rgba(43,76,155,0.06), 0 8px 24px rgba(43,76,155,0.04);
  border: 1px solid rgba(225, 229, 232, 0.12);
  transition: var(--transition);
  display: flex;
  flex-direction: column;
  align-items: center;
  flex: 1;
  min-height: 100%;
  box-sizing: border-box;
  position: relative;
  overflow: hidden;
}

.doctor-card::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(255,255,255,0.4) 0%, transparent 60%);
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}

.doctor-card:hover {
  border-color: rgba(225, 229, 232, 0.3);
  transform: translateY(-6px);
  box-shadow: var(--shadow-card-hover-layered);
}

.doctor-card:hover::after {
  opacity: 1;
}

/* Staff page grid — equal height cards */
.staff-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 24px;
  align-items: stretch;
}

.staff-grid > a {
  display: flex;
  flex-direction: column;
}

.staff-grid > a > .doctor-card {
  flex: 1;
}

.staff-grid > a > .doctor-card .doctor-card-content {
  width: 100%;
}

.doctor-photo {
  width: 120px; height: 120px;
  border-radius: 50%;
  object-fit: cover;
  margin: 0 auto 16px;
  border: 4px solid var(--bg-light);
}

.doctor-name {
  font-size: 18px;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 4px;
}

.doctor-position {
  font-size: 14px;
  color: var(--teal);
  font-weight: 600;
  margin-bottom: 8px;
}

.doctor-experience {
  font-size: 13px;
  color: var(--gray-metallic);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
}

/* ===== REVIEWS ===== */
.reviews-wrapper { position: relative; overflow: hidden; }

.reviews-track {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.review-card {
  background: #ffffff;
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: 0 2px 6px rgba(52, 58, 64, 0.08), 0 8px 20px rgba(52, 58, 64, 0.10);
  border: 1px solid rgba(52, 58, 64, 0.10);
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.review-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--teal) 0%, var(--teal-bg) 100%);
}

.review-card:hover {
  border-color: rgba(52, 58, 64, 0.20);
  transform: translateY(-6px);
  box-shadow: 0 12px 32px rgba(52, 58, 64, 0.16), 0 4px 12px rgba(52, 58, 64, 0.10);
}

.review-card:hover::after {
  opacity: 1;
}

.review-stars { color: #E8A652; font-size: 20px; margin-bottom: 16px; letter-spacing: 2px; }

.review-text {
  font-size: 15px;
  color: var(--dark);
  line-height: 1.65;
  margin-bottom: 20px;
  font-style: italic;
}

.review-author {
  font-size: 14px;
  font-weight: 700;
  color: var(--dark);
}

/* ===== CTA FORM ===== */
.cta-section {
  background: linear-gradient(135deg, var(--teal-bg) 0%, var(--teal-dark) 100%);
  color: var(--dark);
  padding: 80px 0;
  position: relative;
  overflow: hidden;
}
/* Wave SVG divider at top — smooth transition from previous section */
.cta-section::before {
  content: '';
  position: absolute;
  top: -1px;
  left: 0;
  right: 0;
  height: 60px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 60' preserveAspectRatio='none'%3E%3Cpath fill='%23E1E5E8' d='M0,60 C240,20 480,0 720,20 C960,40 1200,20 1440,60 L1440,0 L0,0 Z'/%3E%3C/svg%3E") no-repeat center top;
  background-size: 100% 60px;
  pointer-events: none;
  z-index: 1;
}

.cta-inner {
  max-width: 600px;
  margin: 0 auto;
  text-align: center;
}

.cta-section .section-title { color: var(--dark); font-size: 36px; }
.cta-section .section-subtitle { color: rgba(0,0,0,0.65); font-size: 18px; }

.cta-form {
  border-radius: var(--radius);
  padding: 40px 32px;
  box-shadow: var(--shadow-dark);
}

.form-group { margin-bottom: 16px; text-align: left; }

.form-group label {
  display: block;
  font-size: 13px;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 6px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 14px 16px;
  border: 2px solid var(--input-border);
  border-radius: var(--radius-sm);
  font-size: 15px;
  font-family: 'Open Sans', sans-serif;
  color: var(--dark);
  transition: var(--transition);
  background: var(--bg-light);
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--teal);
  background: var(--white);
}

.form-group textarea { resize: vertical; min-height: 100px; }

.cta-form .btn {
  width: 100%;
  background: linear-gradient(135deg, var(--white) 0%, #e6e6e6 100%);
  color: var(--dark);
  font-size: 17px;
  font-weight: 700;
  padding: 18px;
  margin-top: 8px;
}

.cta-form .btn:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-teal);
}

.form-disclaimer {
  font-size: 12px;
  color: var(--gray-metallic);
  text-align: center;
  margin-top: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

/* ===== FOOTER ===== */
.footer {
  background: var(--bg-light);
  color: var(--dark);
  padding: 60px 0 30px;
  border-top: 3px solid var(--teal);
}

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

.footer-brand .logo { color: var(--teal); font-size: 28px; margin-bottom: 12px; }
.footer-brand p { font-size: 14px; line-height: 1.6; margin-bottom: 16px; color: var(--dark); }

.footer h4 {
  color: var(--teal);
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 16px;
}

.footer-links a {
  display: block;
  font-size: 14px;
  padding: 4px 0;
  color: var(--dark);
  transition: var(--transition);
}

.footer-links a:hover { color: var(--teal); }

.footer-contact-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  padding: 6px 0;
  color: var(--dark);
}

.footer-contact-item svg { color: var(--teal); flex-shrink: 0; }

.footer-bottom {
  border-top: 1px solid rgba(225, 229, 232, 0.15);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}

.footer-bottom p { font-size: 13px; color: var(--dark); }

.social-links { display: flex; flex-wrap: wrap; gap: 12px; }

.social-links a {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px;
  border-radius: var(--radius-sm);
  background: var(--teal-bg);
  transition: var(--transition);
  color: var(--dark);
  text-decoration: none;
  font-weight: 600;
  font-size: 15px;
  white-space: nowrap;
}

.social-links a svg {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

.social-links a:hover { background: var(--teal-light); }

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
  .hero-inner { gap: 40px; padding: 60px 20px; }
  .hero h1 { font-size: 36px; }
  .benefits-grid, .services-grid, .doctors-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  .header-phone-text { display: none; }
  .nav { display: none; }
  .burger { display: flex; }
  
  .nav.active {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--white);
    box-shadow: var(--shadow-sm);
    padding: 16px;
    gap: 4px;
  }
  .nav.active a { padding: 12px 16px; }
  
  .hero-inner {
    grid-template-columns: 1fr;
    text-align: center;
    padding: 40px 20px;
    gap: 32px;
  }
  .hero-image { order: -1; }
  .hero-image img { max-width: 320px; aspect-ratio: 1 / 1; }
  .hero h1 { font-size: 30px; }
  .hero-buttons { align-items: center; }
  .hero-scenarios { align-items: center; }
  .scenario-card {
    grid-template-columns: 44px 1fr;
    grid-template-rows: auto auto;
    gap: 12px;
    padding: 14px 16px;
  }
  .scenario-icon-wrap {
    width: 44px;
    height: 44px;
    grid-row: 1;
  }
  .scenario-content { grid-column: 2; }
  .scenario-btn { grid-column: 1 / -1; justify-self: stretch; text-align: center; }
  .trust-badges { justify-content: center; }
  
  .benefits-grid, .services-grid, .doctors-grid { grid-template-columns: 1fr; }
  .reviews-track { grid-template-columns: 1fr; }
  .section-title { font-size: 28px; }
  
  .symptoms-grid { grid-template-columns: 1fr; }
  
  .footer-grid { grid-template-columns: 1fr; gap: 24px; }
  .footer-bottom { flex-direction: column; text-align: center; }
}

@media (max-width: 480px) {
  .hero h1 { font-size: 26px; }
  .hero-subtitle { font-size: 16px; }
  .btn-large { padding: 16px 24px; font-size: 15px; }
  section { padding: 60px 0; }
  .cta-form { padding: 24px 20px; }
  .scenario-card { padding: 12px 14px; }
  .scenario-title { font-size: 15px; }
  .scenario-desc { font-size: 12.5px; }
}

/* ===== DARK THEME ===== */
html[data-theme="dark"] {
  --teal: #4a7bc5;
  --teal-light: #6b9fd4;
  --teal-dark: #2a3d66;
  --dark: #e8ecf0;
  --gray-metallic: #9aa4b2;
  --white: #1a2030;
  --bg-light: #232d42;
  --hero-start: #1e293b;
  --hero-end: #172032;
  --emergency-start: #1e293b;
  --emergency-end: #172032;
  --bg-light-dark: #1a2536;
  --input-border: #2d3a4f;
  --shadow: 0 0.4rem 3rem 0 rgba(74, 123, 197, 0.1);
  --shadow-sm: 0 0.4rem 2rem 0 rgba(74, 123, 197, 0.06);
  --shadow-card: 0 4px 12px rgba(74, 123, 197, 0.1);
  --shadow-card-hover: 0 12px 32px rgba(74, 123, 197, 0.08);
}

html[data-theme="dark"] .header { background: #1a2536; }
html[data-theme="dark"] .site-footer { background: #141c2b; border-top-color: #2d3a4f; }
html[data-theme="dark"] .category-card,
html[data-theme="dark"] .accordion-item,
html[data-theme="dark"] .sidebar-block { background: #1a2536; border-color: #2d3a4f; }
html[data-theme="dark"] .bg-light { background: #141c2b; }
html[data-theme="dark"] .page-header { background: linear-gradient(135deg, #1e293b 0%, #172032 100%); }
html[data-theme="dark"] .page-header h1 { color: #e8ecf0; }
html[data-theme="dark"] .page-header p { color: #9aa4b2; }
html[data-theme="dark"] .accordion-header { border-bottom-color: #2d3a4f; }
html[data-theme="dark"] .price-row { border-bottom-color: #2d3a4f; }
html[data-theme="dark"] .price-row--alt { background: rgba(74, 123, 197, 0.05); }
html[data-theme="dark"] .price-name { color: #c8cdd6; }
html[data-theme="dark"] .advantage-card,
html[data-theme="dark"] .direction-card,
html[data-theme="dark"] .review-card { background: #1a2536; }
html[data-theme="dark"] .advantage-card:hover,
html[data-theme="dark"] .direction-card:hover,
html[data-theme="dark"] .review-card:hover,
html[data-theme="dark"] .service-card:hover,
html[data-theme="dark"] .doctor-card:hover {
  box-shadow: var(--shadow-card-hover-dark);
}
html[data-theme="dark"] .doctors-section { background: #141c2b; }
html[data-theme="dark"] .emergency { background: linear-gradient(135deg, #1e293b 0%, #172032 100%); }
html[data-theme="dark"] .cta-section { background: #141c2b; }
html[data-theme="dark"] .accordion-section h2,
html[data-theme="dark"] .categories-section h2 { color: #e8ecf0; }
html[data-theme="dark"] .section-title { color: #e8ecf0; }
html[data-theme="dark"] .accordion-title h3 { color: #e8ecf0; }
html[data-theme="dark"] .accordion-icon { background: linear-gradient(135deg, #4a7bc5 0%, #6b9fd4 100%); }
html[data-theme="dark"] .category-card { background: #1a2536; }
html[data-theme="dark"] .category-card h3 { color: #e8ecf0; }
html[data-theme="dark"] .category-card p { color: #9aa4b2; }
html[data-theme="dark"] .doctor-card-prices { background: #1a2536; border-color: #2d3a4f; }
html[data-theme="dark"] .doctor-card-prices h3 { color: #e8ecf0; }
html[data-theme="dark"] .doctor-card-prices .position { color: #6b9fd4; }
html[data-theme="dark"] .prices-footer { background: #0d1219; }
html[data-theme="dark"] .form-group input,
html[data-theme="dark"] .form-group textarea { background: #232d42; border-color: #2d3a4f; color: #e8ecf0; }
html[data-theme="dark"] .form-group input::placeholder,
html[data-theme="dark"] .form-group textarea::placeholder { color: #6e7a8a; }

/* ===== SCROLL REVEAL ANIMATION ===== */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.revealed {
  opacity: 1;
  transform: translateY(0);
}

/* ===== IMPROVED BUTTON HOVER ===== */
.btn {
  transition: var(--transition-hover);
}
.btn:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-primary);
}

/* ===== CARD HOVER LIFT ===== */
.card-hover {
  transition: var(--transition-hover);
}
.card-hover:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-card-hover);
}
.card-hover-scale:hover {
  transform: scale(1.02);
}

/* ===== Cookie Banner ===== */
.cookie-banner {
  animation: fadeSlideIn 0.3s ease !important;
}
@keyframes fadeSlideIn {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ===== ACCORDION SMOOTH ===== */
.accordion-body {
  transition: max-height 0.35s ease, opacity 0.2s ease;
}
.accordion-item.open .accordion-body {
  opacity: 1;
}

/* ===== CHAT WIDGET ===== */
/* ===== HOVER-LIFT CARD (generic) ===== */
.hover-lift {
  transition: var(--transition);
  cursor: pointer;
}
.hover-lift:hover {
  box-shadow: var(--shadow);
  transform: translateY(-4px);
}

/* ===== ADVANTAGE CARDS (index.ejs section 4) ===== */
.advantage-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 32px;
  box-shadow: 0 1px 3px rgba(43,76,155,0.08), 0 4px 12px rgba(43,76,155,0.06), 0 8px 24px rgba(43,76,155,0.04);
  border: 1px solid rgba(225, 229, 232, 0.12);
  transition: var(--transition);
  cursor: default;
  height: 100%;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
}

.advantage-card::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(255,255,255,0.4) 0%, transparent 60%);
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}

.advantage-card:hover {
  border-color: rgba(225, 229, 232, 0.3);
  transform: translateY(-6px) scale(1.01);
  box-shadow: var(--shadow-card-hover-layered);
}

.advantage-card:hover::after {
  opacity: 1;
}

/* ===== DIRECTION CARDS (index.ejs section 5) ===== */
.direction-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow-sm);
  border-left: 4px solid var(--teal);
  transition: var(--transition);
  height: 100%;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
}

.direction-card::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(255,255,255,0.4) 0%, transparent 60%);
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}

.direction-card:hover {
  border-color: rgba(225, 229, 232, 0.3);
  border-left-color: var(--teal);
  transform: translateY(-6px);
  box-shadow: var(--shadow-card-hover-layered);
}

.direction-card:hover::after {
  opacity: 1;
}

/* ===== REVIEW CARDS (index.ejs section 7) ===== */
/* (review-card fully defined above, see ~line 838) */

/* ===== REVIEW PLATFORM LINKS (index.ejs section 7b) ===== */
.review-platform-link {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 18px 22px;
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  border: 1px solid rgba(225, 229, 232, 0.1);
  text-decoration: none;
  transition: var(--transition);
}
.review-platform-link:hover {
  border-color: var(--teal);
  box-shadow: var(--shadow);
}

/* ===== SOCIAL ICON LINKS (footer) ===== */
.social-icon-link {
  width: 40px;
  height: 40px;
  background: var(--teal-bg);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
  text-decoration: none;
}
.social-icon-link:hover {
  transform: translateY(-2px);
}

.chat-btn {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-sm);
  text-decoration: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.chat-btn:hover {
  transform: scale(1.1);
  box-shadow: var(--shadow-chat);
}

/* ===== Floating Chat Widget Container ===== */
#chat-widget {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: flex-end;
}
.chat-btn--telegram { background: var(--telegram); }

/* ===== SHARED GRID LAYOUTS ===== */
.grid-auto-300 { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 24px; align-items: stretch; }
.grid-auto-280 { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 20px; align-items: stretch; }
.grid-auto-240 { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 24px; align-items: stretch; }
.grid-auto-220 { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 24px; align-items: stretch; }
.grid-auto-200 { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 16px; align-items: stretch; }
.grid-auto-320 { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 20px; align-items: stretch; }
.grid-2col { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.grid-2col-stretch { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: stretch; }

/* ===== SHARED FLEX LAYOUTS ===== */
.flex-gap-12 { display: flex; gap: 12px; flex-wrap: wrap; }
.flex-gap-2 { display: flex; gap: 2px; flex-wrap: wrap; }
.flex-gap-16 { display: flex; gap: 16px; flex-wrap: wrap; }
.flex-center { display: flex; align-items: center; justify-content: center; }
.flex-between { display: flex; align-items: center; justify-content: space-between; }
.flex-col { display: flex; flex-direction: column; }
.flex-col-center { display: flex; flex-direction: column; align-items: center; }

/* ===== SECTION BACKGROUNDS ===== */
.bg-light { background: var(--bg-light); }
.bg-white { background: var(--white); }
.bg-teal-gradient { background: linear-gradient(135deg, var(--teal-bg) 0%, var(--teal-dark) 100%); }
.bg-dark { background: var(--dark); }

/* ===== SHARED SECTION PADDING ===== */
.section-pad { padding: 60px 0; }
.section-pad-lg { padding: 64px 0; }
.section-pad-xl { padding: 80px 0; }

/* ===== CTA SECTION (teal gradient + form) ===== */
.cta-teal {
  background: linear-gradient(135deg, #1A2536 0%, #2B4C9B 100%);
  color: var(--white);
  padding: 80px 0;
  position: relative;
  overflow: hidden;
}
/* Wave SVG divider at top — smooth transition from previous section */
.cta-teal::before {
  content: '';
  position: absolute;
  top: -1px;
  left: 0;
  right: 0;
  height: 60px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 60' preserveAspectRatio='none'%3E%3Cpath fill='%23E1E5E8' d='M0,60 C240,20 480,0 720,20 C960,40 1200,20 1440,60 L1440,0 L0,0 Z'/%3E%3C/svg%3E") no-repeat center top;
  background-size: 100% 60px;
  pointer-events: none;
  z-index: 1;
}
.cta-teal-inner { text-align: center; max-width: 600px; margin: 0 auto; }
.cta-teal-form { display: flex; flex-direction: column; gap: 16px; }
.cta-input {
  padding: 16px 20px;
  border-radius: var(--radius-sm);
  border: none;
  font-size: 16px;
  font-family: inherit;
  background: rgba(255,255,255,0.15);
  color: var(--white);
  outline: none;
}
.cta-input::placeholder { color: rgba(255,255,255,0.85); }
.cta-teal-disclaimer { margin-top: 16px; font-size: 13px; color: rgba(255,255,255,0.85); }

/* ===== FOOTER ===== */
.site-footer { background: var(--bg-light); color: var(--dark); padding: 60px 0 30px; border-top: 3px solid var(--teal); }
.footer-grid-layout { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 40px; margin-bottom: 40px; }
.footer-logo { font-size: 22px; font-weight: 900; color: var(--teal); margin-bottom: 12px; }
.footer-logo span { color: var(--teal); }
.footer-tagline { font-size: 14px; color: var(--gray-metallic); line-height: 1.6; }
.footer-heading { font-size: 16px; font-weight: 700; margin-bottom: 16px; color: var(--teal); }
.footer-contact-line { font-size: 14px; color: var(--dark); margin-bottom: 8px; }
.footer-contact-line strong { color: var(--teal); }
.footer-contact-line a { color: var(--teal); }
.footer-socials { display: flex; gap: 12px; }
.footer-bottom { border-top: 1px solid rgba(225, 229, 232, 0.15); padding-top: 20px; text-align: center; font-size: 13px; color: var(--dark); }
.footer-bottom p + p { margin-top: 8px; }

/* ===== ICON CONTAINERS ===== */
.icon-box-teal {
  width: 48px; height: 48px;
  background: linear-gradient(135deg, var(--teal-bg), var(--teal-light));
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 16px;
  flex-shrink: 0;
}
.icon-box-44 {
  width: 44px; height: 44px;
  background: linear-gradient(135deg, var(--teal-bg) 0%, var(--teal-light) 100%);
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}

/* ===== SOCIAL ICON BUTTONS ===== */
.soc-icon-btn {
  width: 40px; height: 40px;
  background: var(--teal-bg);
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  transition: var(--transition);
  text-decoration: none;
}
.soc-icon-btn:hover { transform: translateY(-2px); }

/* ===== MISC TEXT UTILITIES ===== */
.text-white { color: var(--white); }
.text-teal { color: var(--teal); }
.text-muted { color: var(--gray-metallic); }
.text-dark { color: var(--dark); }
.text-center { text-align: center; }
.text-opacity-7 { font-size: 13px; opacity: 0.7; }
.text-lg { font-size: 18px; }
.mb-8 { margin-bottom: 8px; }
.mb-12 { margin-bottom: 12px; }
.mb-16 { margin-bottom: 16px; }
.mb-20 { margin-bottom: 20px; }
.mt-8 { margin-top: 8px; }
.mt-12 { margin-top: 12px; }
.mt-16 { margin-top: 16px; }

/* ===== STAFF PAGE ===== */
.staff-hero { padding: 60px 0; text-align: center; }
.staff-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 24px; align-items: stretch; }
.staff-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 28px;
  text-align: center;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  flex: 1;
  display: flex; flex-direction: column; align-items: center;
}
.staff-card:hover { box-shadow: var(--shadow); }

/* ===== STAFF SHOW PAGE ===== */
.doc-avatar-240 {
  width: 240px; height: 240px;
  border-radius: 50%; margin: 0 auto 20px;
  overflow: hidden;
  box-shadow: var(--shadow-avatar);
}
.doc-avatar-80 {
  width: 80px; height: 80px;
  border-radius: 50%; margin: 0 auto 12px;
  overflow: hidden;
}
.doc-avatar-80 img,
.doc-avatar-240 img { width: 100%; height: 100%; object-fit: cover; }
.doc-info-grid { display: grid; grid-template-columns: 300px 1fr; gap: 40px; align-items: start; }
@media (max-width: 768px) { .doc-info-grid { grid-template-columns: 1fr; } }
.spec-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 32px; }
.spec-tag { padding: 6px 16px; background: var(--bg-light); border-radius: 20px; font-size: 13px; font-weight: 600; color: var(--teal); }
.cert-list { margin-bottom: 24px; }
.cert-item { display: flex; gap: 10px; align-items: flex-start; margin-bottom: 8px; }
.cert-dot { width: 8px; height: 8px; background: var(--teal-bg); border-radius: 50%; flex-shrink: 0; margin-top: 6px; }
.cert-text { font-size: 13px; color: var(--gray-metallic); line-height: 1.5; }
.review-card-bordered {
  background: var(--bg-light);
  border-radius: var(--radius);
  padding: 20px;
  border-left: 3px solid var(--teal);
}
.review-card-bordered .review-author { display: flex; justify-content: space-between; align-items: center; }
.review-card-bordered .review-author-name { font-size: 13px; font-weight: 600; color: var(--teal); }
.review-stars-row { display: flex; gap: 2px; }
.review-platform-card {
  display: flex; align-items: center; gap: 14px;
  padding: 18px 22px;
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  border: 1px solid rgba(225, 229, 232, 0.1);
  text-decoration: none;
  transition: var(--transition);
}
.review-platform-card:hover { border-color: var(--teal); box-shadow: var(--shadow); }
.platform-name { font-size: 15px; font-weight: 700; color: var(--dark); margin-bottom: 2px; }
.platform-desc { font-size: 12px; color: var(--gray-metallic); }
.others-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 20px; }
.other-doctor-card { text-align: center; padding: 20px; background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow-sm); }
.back-link { color: var(--gray-metallic); font-size: 14px; margin-bottom: 24px; display: inline-block; }
.btn-book { padding: 14px 32px; }

/* ===== ABOUT PAGE ===== */
.about-hero { background: linear-gradient(135deg, #e8edf7 0%, #dce4f0 100%); padding: 80px 0 60px; text-align: center; }
.about-hero h1 { font-size: 42px; font-weight: 900; color: var(--dark); margin-bottom: 16px; }
.about-hero-sub { font-size: 18px; color: var(--gray-metallic); max-width: 600px; margin: 0 auto; }
.stats-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 20px; margin: 48px 0; text-align: center; }
.stat-item { padding: 32px 20px; background: linear-gradient(135deg, var(--teal-bg) 0%, var(--teal-dark) 100%); border-radius: var(--radius); color: var(--dark); }
.stat-num { font-size: 48px; font-weight: 900; }
.stat-label { font-size: 14px; opacity: 0.85; margin-top: 4px; }
.mission-section { background: var(--white); padding: 64px 0; }
.achievements-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 24px; margin-top: 40px; }
.achievement-card { background: var(--white); border-radius: var(--radius); padding: 28px 24px; box-shadow: var(--shadow-sm); text-align: center; border-top: 4px solid var(--teal); }
.achievement-icon { font-size: 36px; margin-bottom: 12px; }
.achievement-num { font-size: 40px; font-weight: 900; color: var(--teal); }
.achievement-label { font-size: 14px; color: var(--gray-metallic); margin-top: 6px; line-height: 1.4; }
.about-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 32px; margin: 48px 0; }
.about-card { background: var(--white); border-radius: var(--radius); padding: 32px; box-shadow: var(--shadow-sm); border-left: 4px solid var(--teal); }
.about-card h3 { color: var(--teal); margin-bottom: 12px; }
.about-card p, .about-card li { color: var(--gray-metallic); font-size: 15px; line-height: 1.7; }
.about-card ul { padding-left: 20px; }
.about-card li { margin-bottom: 8px; }
.timeline { max-width: 700px; margin: 48px auto; }
.timeline-item { display: flex; gap: 20px; margin-bottom: 24px; }
.timeline-year { min-width: 80px; font-size: 20px; font-weight: 900; color: var(--teal); }
.timeline-desc { font-size: 15px; color: var(--gray-metallic); line-height: 1.6; }
.license-badge { display: inline-flex; align-items: center; gap: 12px; padding: 16px 24px; background: var(--bg-light); border-radius: var(--radius); margin: 8px 0; }
.license-badge-icon { color: var(--teal); }
.license-badge-text strong { display: block; }
.license-badges-row { display: flex; flex-wrap: wrap; gap: 16px; justify-content: center; margin-top: 32px; }

/* ===== TRUST BADGE ===== */
.trust-badges { display: flex; gap: 16px; flex-wrap: wrap; align-items: center; }
.trust-badge { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; color: var(--dark); }

/* ===== HERO BUTTONS INNER ===== */
.hero-buttons-inner { display: flex; gap: 12px; flex-wrap: wrap; }

/* ===== DOCTOR CARD (index.ejs section 6) ===== */
.doctor-photo-circle {
  width: 120px; height: 120px;
  border-radius: 50%; margin: 0 auto 16px;
  overflow: hidden;
  box-shadow: var(--shadow-card);
}
.doctor-photo-circle img { width: 100%; height: 100%; object-fit: cover; }
.doctor-card-name { font-size: 16px; margin-bottom: 4px; }
.review-text { font-size: 14px; line-height: 1.7; color: var(--dark); font-style: italic; margin-bottom: 12px; }
.doctor-card .review-author { font-size: 13px; color: var(--dark); font-weight: 600; }
.review-card-name { font-size: 16px; margin-bottom: 4px; }
.doctor-card-position { color: var(--teal); font-size: 13px; font-weight: 600; margin-bottom: 4px; }
.doctor-card-link { text-decoration: none; color: inherit; display: flex; flex-direction: column; }
.doctor-bio { font-size: 12px; color: var(--gray-metallic); line-height: 1.5; margin-bottom: 12px; }
.doctor-card-hover { transition: var(--transition); }

/* ===== STAFF SHOW PAGE ===== */
.staff-hero { padding: 60px 0; }
.back-link { color: var(--gray-metallic); font-size: 14px; margin-bottom: 24px; display: inline-block; }
.staff-hero-inner { text-align: center; }
.staff-photo-large { width: 240px; height: 240px; border-radius: 50%; margin: 0 auto 20px; overflow: hidden; box-shadow: var(--shadow-avatar); }
.staff-photo-large img { width: 100%; height: 100%; object-fit: cover; display: block; }
.staff-name { font-size: 28px; font-weight: 900; margin-bottom: 4px; }
.staff-position { color: var(--teal); font-size: 16px; font-weight: 600; margin-bottom: 4px; }
.staff-exp { color: var(--gray-metallic); font-size: 14px; margin-bottom: 20px; }
.btn-book { padding: 14px 32px; }
.staff-sidebar { max-width: 560px; margin: 0 auto; }
.section-label { font-size: 22px; font-weight: 700; margin-bottom: 16px; }
.bio-text { font-size: 15px; color: var(--dark); line-height: 1.7; margin-bottom: 24px; }
.detail-label { font-size: 16px; font-weight: 700; margin-bottom: 10px; }
.detail-text { font-size: 14px; color: var(--gray-metallic); line-height: 1.6; margin-bottom: 20px; }
.cert-list { margin-bottom: 24px; }
.cert-item { display: flex; gap: 10px; align-items: flex-start; margin-bottom: 8px; }
.cert-dot { width: 8px; height: 8px; background: var(--teal-bg); border-radius: 50%; flex-shrink: 0; margin-top: 6px; }
.cert-text { font-size: 13px; color: var(--gray-metallic); line-height: 1.5; }
.specialization-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 32px; }
.spec-tag { padding: 6px 16px; background: var(--bg-light); border-radius: 20px; font-size: 13px; font-weight: 600; color: var(--teal); }
.reviews-list { display: flex; flex-direction: column; gap: 16px; margin-bottom: 24px; }
.review-item { background: var(--bg-light); border-radius: var(--radius); padding: 20px; border-left: 3px solid var(--teal); }
.review-item .review-text { font-size: 14px; color: var(--dark); line-height: 1.7; margin-bottom: 12px; font-style: italic; }
.review-footer { display: flex; justify-content: space-between; align-items: center; }
.review-item .review-author { font-size: 13px; font-weight: 600; color: var(--dark); }
.review-stars { display: flex; gap: 2px; }
.other-doctors { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 20px; }
.other-doctor-card { text-align: center; padding: 20px; background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow-sm); }
.other-doctor-card .doctor-photo-wrapper { width: 80px; height: 80px; margin: 0 auto 12px; }
.other-doctor-name { font-size: 15px; margin-bottom: 2px; }
.other-doctor-pos { font-size: 12px; color: var(--gray-metallic); }
.prices-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 16px; margin-top: 8px; }
.price-card { display: flex; align-items: center; gap: 14px; padding: 18px 22px; background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow-sm); border: 1px solid rgba(225, 229, 232, 0.1); text-decoration: none; transition: var(--transition), transform 0.2s ease, box-shadow 0.2s ease; }
.price-card:hover { transform: translateY(-2px) scale(1.01); box-shadow: var(--shadow); border-color: var(--teal); }
.price-card-icon { width: 44px; height: 44px; background: linear-gradient(135deg, var(--teal-bg) 0%, var(--teal-light) 100%); border-radius: 10px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.price-card-name { font-size: 15px; font-weight: 700; color: var(--dark); margin-bottom: 2px; }
.price-card-desc { font-size: 12px; color: var(--gray-metallic); }
.price-card-hover { transition: var(--transition); }
.doctor-card-link { text-decoration: none; color: inherit; display: flex; flex-direction: column; }

/* ===== SECTION SUBTITLE ===== */
.section-subtitle { color: var(--gray-metallic); font-size: 18px; }

/* ===== SYMPTOMS GRID ===== */
.symptoms-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 12px; }
.symptom { display: flex; align-items: center; gap: 8px; font-size: 15px; color: var(--dark); }

/* ===== EMERGENCY SECTION ===== */
.emergency { padding: 60px 0; }
.emergency-inner { text-align: center; }

/* ===== ADVANTAGE CARD ICON ===== */
.adv-icon-wrap {
  width: 48px; height: 48px;
  background: linear-gradient(135deg, var(--teal-bg), var(--teal-light));
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 16px;
}
.adv-title { font-size: 18px; margin-bottom: 8px; }
.adv-desc { color: var(--gray-metallic); font-size: 14px; line-height: 1.6; }

/* ===== DIRECTION CARD ===== */
.dir-title { font-size: 18px; margin-bottom: 8px; color: var(--teal); }
.dir-desc { color: var(--gray-metallic); font-size: 14px; line-height: 1.6; margin-bottom: 16px; }
.dir-btn { padding: 10px 20px; font-size: 13px; }

/* ===== CTA BUTTON WHITE ===== */
.btn-white { background: #FFFFFF; color: var(--dark); font-weight: 700; }
.btn-outline-teal { border: 2px solid var(--teal); color: var(--teal); background: transparent; }
.btn-outline-teal:hover { background: var(--teal-bg); color: var(--dark); }

/* ===== CONTACTS PAGE ===== */
.contacts-cta { padding: 80px 0; }
.contacts-cta-inner { text-align: center; max-width: 600px; margin: 0 auto; }

/* ===== FAQ CTA ===== */
.faq-cta { padding: 80px 0; }

/* ===== MISSION VALUES ===== */
.mission-values { display: flex; flex-direction: column; gap: 12px; }
.mission-value { display: flex; align-items: center; gap: 12px; font-size: 15px; color: var(--dark); }
.mission-value span { font-size: 20px; }

/* ===== SOCIAL ICON BUTTON (VK/Youtube generic) ===== */
.social-btn {
  width: 40px; height: 40px;
  background: var(--teal-bg);
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  transition: var(--transition);
  text-decoration: none;
}
.social-btn:hover { transform: translateY(-2px); }
.social-btn svg { color: var(--dark); }

/* ===== BREADCRUMBS ===== */
.breadcrumbs { margin-bottom: 12px; }
.breadcrumbs a { color: var(--gray-metallic); }
.breadcrumbs span { margin: 0 6px; color: var(--gray-metallic); }
.breadcrumbs-current { color: var(--dark); }

/* ===== PAGE HEADER ===== */
.page-header {
  background: var(--bg-light);
  padding: 48px 0 40px;
  border-bottom: 1px solid rgba(116, 140, 164, 0.1);
}
.page-header .container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.page-header .breadcrumbs {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: var(--gray-metallic);
  margin-bottom: 16px;
}
.page-header .breadcrumbs a { color: var(--gray-metallic); font-weight: 600; }
.page-header .breadcrumbs a:hover { color: var(--teal); }
.page-header .breadcrumbs span { color: var(--gray-metallic); }
.page-header h1 { font-size: 40px; font-weight: 900; letter-spacing: -0.5px; margin-bottom: 8px; color: var(--dark); word-break: keep-all; overflow-wrap: normal; }
.page-header h1 .accent { color: var(--teal); }
.page-header p { font-size: 18px; color: var(--gray-metallic); }

/* Page header modifiers */
.page-header--light {
  background: linear-gradient(135deg, #e8edf7 0%, #dce4f0 100%);
}
.page-header--dark {
  background: linear-gradient(135deg, var(--dark) 0%, #2a3544 100%);
  color: var(--white);
  border-bottom-color: transparent;
}
.page-header--dark .breadcrumbs,
.page-header--dark .breadcrumbs span { color: var(--gray-metallic); }
.page-header--dark .breadcrumbs a { color: var(--teal-light); }
.page-header--dark .breadcrumbs a:hover { text-decoration: underline; color: var(--white); }
.page-header--dark h1 { color: var(--white); }
.page-header--dark p { color: rgba(255, 255, 255, 0.8); }

@media (max-width: 768px) {
  .page-header h1 { font-size: 30px; }
  .page-header { padding: 36px 0 32px; }
}
@media (max-width: 480px) {
  .page-header h1 { font-size: 26px; }
}
.chat-btn--whatsapp { background: var(--whatsapp); }

/* ===== INLINE STYLE REPLACEMENTS ===== */
.btn-sm-nav { padding: 10px 20px; font-size: 14px; }
.text-white-85 { color: rgba(255,255,255,0.85); }
.gap-20 { gap: 20px; }
.mb-12 { margin-bottom: 12px; }
.mt-8 { margin-top: 8px; }
.cta-white-title { color: #FFFFFF; }
.cta-white-sub { margin-bottom: 36px; opacity: 0.9; color: rgba(255,255,255,0.85); }

/* ===== Cookie Banner ===== */
.cookie-banner {
  position: fixed;
  bottom: 20px;
  right: 20px;
  max-width: 400px;
  background: var(--dark);
  color: white;
  padding: 20px 24px;
  z-index: 10000;
  border-radius: 12px;
  font-size: 14px;
  line-height: 1.5;
  box-shadow: var(--shadow-toast);
  display: flex;
  flex-direction: column;
  gap: 14px;
  animation: slideUp 0.3s ease;
}
.cookie-banner .cookie-banner-text { margin: 0; }
.cookie-banner .cookie-banner-actions {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
}
.cookie-banner .btn-outline {
  background: transparent;
  color: white;
  border: 1px solid rgba(255, 255, 255, 0.4);
  padding: 8px 16px;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 500;
  font-size: 13px;
}
.cookie-banner .btn-primary {
  background: #F5F1EA;
  color: var(--dark);
  border: none;
  padding: 8px 24px;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 600;
  font-size: 13px;
}
@keyframes slideUp { from { transform: translateY(100%); } to { transform: translateY(0); } }
.cookie-banner a:hover { color: var(--teal-light) !important; }
.cookie-banner[aria-hidden="true"] { display: none; }

/* ===== FORM VALIDATION ===== */
.form-group { position: relative; margin-bottom: 12px; }

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 12px 14px;
  border: 2px solid var(--input-border);
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-family: 'Open Sans', sans-serif;
  color: var(--dark);
  background: var(--bg-light);
  transition: border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--teal);
  background: #F5F1EA;
  box-shadow: var(--shadow-focus);
}
.form-group--error input,
.form-group--error textarea {
  border-color: #d44040;
  background: #fff5f5;
}

.form-group--error input:focus,
.form-group--error textarea:focus {
  box-shadow: var(--shadow-error);
}

.form-group--success input,
.form-group--success textarea {
  border-color: #2ecc71;
}

.form-error-msg {
  display: none;
  font-size: 12px;
  color: #d44040;
  margin-top: 4px;
  padding-left: 2px;
  font-weight: 600;
}

.form-group--error .form-error-msg { display: block; }

/* Hide reCAPTCHA v3 badge — key registered on 7300333.ru, not dev IP */
.grecaptcha-badge { display: none !important; }

/* ===== TYPOGRAPHY IMPROVEMENTS ===== */
body { line-height: 1.6; }

h1, h2, h3, h4 {
  letter-spacing: -0.3px;
}

.section-title {
  letter-spacing: -0.5px;
  line-height: 1.15;
}

.section-subtitle {
  line-height: 1.5;
}

p, li, td, th, span, a {
  line-height: 1.6;
}

.hero h1 {
  letter-spacing: -1px;
  line-height: 1.12;
}

.hero-subtitle {
  line-height: 1.55;
}

.price-name {
  line-height: 1.5;
}

.accordion-title h3 {
  letter-spacing: -0.2px;
}

.category-card h3 {
  letter-spacing: -0.2px;
}

.nav a {
  letter-spacing: 0.1px;
}

.btn {
  letter-spacing: 0.2px;
}

.footer-tagline {
  line-height: 1.6;
}

.adv-desc, .dir-desc {
  line-height: 1.6;
}

.review-text {
  line-height: 1.6;
}

/* ===== SCROLL REVEAL ANIMATION ===== */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.revealed {
  opacity: 1;
  transform: translateY(0);
}
.reveal-delay-1 { transition-delay: 0.05s; }
.reveal-delay-2 { transition-delay: 0.10s; }
.reveal-delay-3 { transition-delay: 0.15s; }
.reveal-delay-4 { transition-delay: 0.20s; }
.reveal-delay-5 { transition-delay: 0.25s; }
.reveal-delay-6 { transition-delay: 0.30s; }

/* Respect reduced motion */
@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* ===== ENHANCED CARD HOVER EFFECTS ===== */
/* Lift + shadow */
.card-hover {
  transition: var(--transition-hover);
}
.card-hover:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-card-hover);
}

/* Scale on hover (for doctor cards) */
.card-hover-scale {
  transition: var(--transition-hover);
}
.card-hover-scale:hover {
  transform: scale(1.03);
  box-shadow: var(--shadow-card-hover);
}

/* ===== DARK THEME ===== */
html[data-theme="dark"] {
  --dark: #e8ecf0;
  --gray-metallic: #8a9ab0;
  --white: #1a2332;
  --bg-light: #0f1724;
  --bg-light-dark: #0a1020;
  --hero-start: #0f1724;
  --hero-end: #1a2332;
  --emergency-start: #0f1724;
  --emergency-end: #1a2332;
  --input-border: #2a3a50;
  --shadow: 0 0.4rem 3rem 0 rgba(0, 0, 0, 0.4);
  --shadow-sm: 0 0.4rem 2rem 0 rgba(0, 0, 0, 0.25);
  --shadow-primary: 0 6px 20px rgba(0, 0, 0, 0.5);
  --shadow-card: 0 4px 12px rgba(0, 0, 0, 0.3);
  --shadow-card-hover: 0 12px 32px rgba(0, 0, 0, 0.35);
  --shadow-card-hover-layered: 0 2px 8px rgba(0, 0, 0, 0.2), 0 8px 24px rgba(0, 0, 0, 0.25), 0 24px 48px rgba(0, 0, 0, 0.3);
  --shadow-btn-hover: 0 8px 30px rgba(0, 0, 0, 0.5);
  --shadow-hero: 0 20px 60px rgba(0, 0, 0, 0.4);
  --shadow-focus: 0 0 0 3px rgba(74, 123, 197, 0.2);
  --shadow-focus-teal: 0 0 0 3px rgba(74, 123, 197, 0.15);
  --shadow-error: 0 0 0 3px rgba(212, 64, 64, 0.2);
  --shadow-glass: 0 4px 16px rgba(0, 0, 0, 0.2);
  --shadow-toast: 0 8px 32px rgba(0, 0, 0, 0.4);
  --teal: #4a7bc5;
  --teal-light: #6b9bd5;
  --teal-dark: #2a4a7a;
}

/* Dark theme adjustments for specific elements */
html[data-theme="dark"] .header {
  background: #0f1724;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
html[data-theme="dark"] .nav a {
  color: #8a9ab0;
}
html[data-theme="dark"] .nav a:hover {
  color: #4a7bc5;
}
html[data-theme="dark"] .logo {
  color: #4a7bc5;
}
html[data-theme="dark"] .logo span {
  color: #e8ecf0;
}
html[data-theme="dark"] .header-phone {
  color: #e8ecf0;
}
html[data-theme="dark"] .burger span {
  background: #e8ecf0;
}
html[data-theme="dark"] .hero {
  background: linear-gradient(135deg, #0f1724 0%, #1a2332 100%);
}
html[data-theme="dark"] .section-title {
  color: #e8ecf0;
}
html[data-theme="dark"] .section-subtitle {
  color: #8a9ab0;
}
html[data-theme="dark"] .scenario-card {
  background: rgba(30, 50, 80, 0.7);
  border-color: rgba(74, 123, 197, 0.2);
}
html[data-theme="dark"] .scenario-title {
  color: #e8ecf0;
}
html[data-theme="dark"] .scenario-desc {
  color: #8a9ab0;
}
html[data-theme="dark"] .trust-badge {
  color: #8a9ab0;
}
html[data-theme="dark"] .symptom {
  background: rgba(74, 123, 197, 0.15);
  color: #e8ecf0;
}
html[data-theme="dark"] .adv-card,
html[data-theme="dark"] .direction-card,
html[data-theme="dark"] .doctor-card,
html[data-theme="dark"] .review-card {
  background: #1a2332;
  border-color: rgba(255,255,255,0.08);
}
html[data-theme="dark"] .adv-title,
html[data-theme="dark"] .dir-title,
html[data-theme="dark"] .doctor-card-name {
  color: #e8ecf0;
}
html[data-theme="dark"] .adv-desc,
html[data-theme="dark"] .dir-desc,
html[data-theme="dark"] .review-text,
html[data-theme="dark"] .review-author {
  color: #8a9ab0;
}
html[data-theme="dark"] .review-item .review-author,
html[data-theme="dark"] .doctor-card .review-author {
  color: #8a9ab0;
}
html[data-theme="dark"] .page-header--light {
  background: linear-gradient(135deg, #0f1724 0%, #1a2332 100%);
}
html[data-theme="dark"] .page-header--dark {
  background: linear-gradient(135deg, #0a1020 0%, #0f1724 100%);
}
html[data-theme="dark"] .cta-teal {
  background: linear-gradient(135deg, #1a3a6a 0%, #0f2744 100%);
}
html[data-theme="dark"] .category-card,
html[data-theme="dark"] .accordion-item {
  background: #1a2332;
  border-color: rgba(255,255,255,0.08);
}
html[data-theme="dark"] .accordion-title h3 {
  color: #e8ecf0;
}
html[data-theme="dark"] .price-name {
  color: #e8ecf0;
}
html[data-theme="dark"] .footer {
  background: #0a1020;
  border-top-color: rgba(74, 123, 197, 0.3);
}
html[data-theme="dark"] .footer-tagline,
html[data-theme="dark"] .footer-contact-item {
  color: #8a9ab0;
}
html[data-theme="dark"] .faq-item {
  background: #1a2332;
}
html[data-theme="dark"] .faq-q-text {
  color: #e8ecf0;
}
html[data-theme="dark"] .faq-answer {
  color: #8a9ab0;
}
html[data-theme="dark"] .sidebar-block {
  background: #1a2332;
  border-color: rgba(255,255,255,0.08);
}
html[data-theme="dark"] .sidebar-nav a {
  color: #8a9ab0;
}
html[data-theme="dark"] .sidebar-nav a:hover {
  color: #4a7bc5;
}
html[data-theme="dark"] .doctors-section {
  background: #0f1724;
}
html[data-theme="dark"] .emergency {
  background: linear-gradient(135deg, #0f1724 0%, #1a2332 100%);
}
html[data-theme="dark"] .bg-light {
  background: #0f1724;
}
html[data-theme="dark"] .cookie-banner {
  background: #0a1020;
  color: #e8ecf0;
}
html[data-theme="dark"] .form-group input,
html[data-theme="dark"] .form-group textarea {
  background: #0f1724;
  color: #e8ecf0;
  border-color: #2a3a50;
}
html[data-theme="dark"] .form-group input:focus,
html[data-theme="dark"] .form-group textarea:focus {
  background: #1a2332;
}
html[data-theme="dark"] .cta-input {
  background: rgba(255,255,255,0.1);
  color: #e8ecf0;
}
html[data-theme="dark"] .cta-input::placeholder { color: rgba(255,255,255,0.5); }
html[data-theme="dark"] .cta-teal-form .cta-input {
  background: rgba(255,255,255,0.1);
  color: #e8ecf0;
  border-color: rgba(255,255,255,0.15);
}
html[data-theme="dark"] .cta-teal-form .cta-input::placeholder { color: rgba(255,255,255,0.5); }
html[data-theme="dark"] .cta-teal-form .cta-input:focus {
  background: rgba(255,255,255,0.15);
  border-color: rgba(255,255,255,0.3);
}

/* ===== ACCORDION ROW HOVER EFFECTS (prices page) ===== */
.price-row {
  transition: background 0.2s ease, transform 0.15s ease;
  cursor: default;
}
.price-row:hover {
  background: rgba(225, 229, 232, 0.06);
  transform: translateX(3px);
}
html[data-theme="dark"] .price-row:hover {
  background: rgba(74, 123, 197, 0.1);
}

/* ===== CTA INPUT ANIMATION ===== */
.cta-input {
  transition: border-color 0.25s ease, background 0.25s ease, box-shadow 0.25s ease;
}
.cta-input:focus {
  border-color: var(--teal);
  box-shadow: var(--shadow-focus);
}

/* ===== ACCORDION HEADER ACTIVE STATE ===== */
.accordion-item.open .accordion-header {
  background: rgba(225, 229, 232, 0.06);
}
html[data-theme="dark"] .accordion-item.open .accordion-header {
  background: rgba(74, 123, 197, 0.08);
}

/* ===== CATEGORY CARD ENHANCED HOVER ===== */
.category-card {
  position: relative;
  overflow: hidden;
}
.category-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(225, 229, 232, 0.05) 0%, transparent 60%);
  opacity: 0;
  transition: opacity 0.3s ease;
}
.category-card:hover::before {
  opacity: 1;
}

/* ===== SCROLL PROGRESS BAR ===== */
#scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--teal-bg) 0%, var(--teal-light) 100%);
  z-index: 9999;
  width: 0%;
  transition: width 0.1s linear;
}

/* ===== BUTTON PRESS EFFECT ===== */
.btn:active {
  transform: scale(0.97) !important;
  transition: transform 0.1s ease;
}

/* ===== SERVICE CARD LIFT ON HOVER ===== */
.direction-card {
  transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1),
              box-shadow 0.25s ease,
              border-color 0.25s ease;
}
.direction-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-card-hover-layered);
  border-color: rgba(225, 229, 232, 0.25);
}

/* ===== ACCORDION ITEM — SLIDE DOWN ANIMATION ===== */
.accordion-body {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.3s ease;
  opacity: 0;
}
.accordion-item.open .accordion-body {
  max-height: 2000px;
  opacity: 1;
}

/* ===== DIRECTION CARD SCROLL REVEAL ===== */
.direction-card {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.5s ease, transform 0.5s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}
.direction-card.revealed {
  opacity: 1;
  transform: translateY(0);
}

/* ===== ADVANTAGE CARD SCROLL REVEAL ===== */
.advantage-card {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.5s ease, transform 0.5s ease, box-shadow 0.25s ease;
}
.advantage-card.revealed {
  opacity: 1;
  transform: translateY(0);
}

/* ===== DOCTOR CARD SCROLL REVEAL ===== */
.doctor-card {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.5s ease, transform 0.5s ease, box-shadow 0.25s ease;
}
.doctor-card.revealed {
  opacity: 1;
  transform: translateY(0);
}

/* ===== REVIEW CARD SCROLL REVEAL ===== */
.review-card {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.5s ease, transform 0.5s ease, box-shadow 0.25s ease;
}
.review-card.revealed {
  opacity: 1;
  transform: translateY(0);
}

/* ===== DIRECTION CARDS GRID ANIMATION ===== */
.grid-auto-280 {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 24px;
}
.grid-auto-280 > * {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.5s ease, transform 0.5s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}
.grid-auto-280.revealed > * {
  opacity: 1;
  transform: translateY(0);
}
.grid-auto-280.revealed > *:nth-child(1) { transition-delay: 0.05s; }
.grid-auto-280.revealed > *:nth-child(2) { transition-delay: 0.10s; }
.grid-auto-280.revealed > *:nth-child(3) { transition-delay: 0.15s; }
.grid-auto-280.revealed > *:nth-child(4) { transition-delay: 0.20s; }
.grid-auto-280.revealed > *:nth-child(5) { transition-delay: 0.25s; }
.grid-auto-280.revealed > *:nth-child(6) { transition-delay: 0.30s; }

/* ===== ADVANTAGE CARDS GRID ANIMATION ===== */
.grid-auto-300 {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 24px;
}
.grid-auto-300 > * {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.5s ease, transform 0.5s ease, box-shadow 0.25s ease;
}
.grid-auto-300.revealed > * {
  opacity: 1;
  transform: translateY(0);
}
.grid-auto-300.revealed > *:nth-child(1) { transition-delay: 0.05s; }
.grid-auto-300.revealed > *:nth-child(2) { transition-delay: 0.10s; }
.grid-auto-300.revealed > *:nth-child(3) { transition-delay: 0.15s; }
.grid-auto-300.revealed > *:nth-child(4) { transition-delay: 0.20s; }
.grid-auto-300.revealed > *:nth-child(5) { transition-delay: 0.25s; }
.grid-auto-300.revealed > *:nth-child(6) { transition-delay: 0.30s; }

/* ===== DOCTORS GRID ANIMATION ===== */
.grid-auto-220 {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 24px;
}
.grid-auto-220 > * {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.5s ease, transform 0.5s ease, box-shadow 0.25s ease;
}
.grid-auto-220.revealed > * {
  opacity: 1;
  transform: translateY(0);
}
.grid-auto-220.revealed > *:nth-child(1) { transition-delay: 0.05s; }
.grid-auto-220.revealed > *:nth-child(2) { transition-delay: 0.10s; }
.grid-auto-220.revealed > *:nth-child(3) { transition-delay: 0.15s; }
.grid-auto-220.revealed > *:nth-child(4) { transition-delay: 0.20s; }

/* ===== REVIEWS GRID ANIMATION ===== */
.grid-auto-320 {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 24px;
}
.grid-auto-320 > * {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.5s ease, transform 0.5s ease, box-shadow 0.25s ease;
}
.grid-auto-320.revealed > * {
  opacity: 1;
  transform: translateY(0);
}
.grid-auto-320.revealed > *:nth-child(1) { transition-delay: 0.05s; }
.grid-auto-320.revealed > *:nth-child(2) { transition-delay: 0.10s; }
.grid-auto-320.revealed > *:nth-child(3) { transition-delay: 0.15s; }
.grid-auto-320.revealed > *:nth-child(4) { transition-delay: 0.20s; }
.grid-auto-320.revealed > *:nth-child(5) { transition-delay: 0.25s; }
.grid-auto-320.revealed > *:nth-child(6) { transition-delay: 0.30s; }

@media (prefers-reduced-motion: reduce) {
  .grid-auto-280 > *,
  .grid-auto-300 > *,
  .grid-auto-220 > *,
  .grid-auto-320 > * {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

@media (max-width: 768px) {
  .grid-auto-280,
  .grid-auto-300,
  .grid-auto-220,
  .grid-auto-320 {
    gap: 16px;
  }
}

/* ===== ACCORDION ITEM PRESS STATE ===== */
.accordion-item:active .accordion-header {
  background: rgba(225, 229, 232, 0.06);
}

/* ===== FAQ ITEM SCROLL REVEAL ===== */
.faq-item {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.4s ease, transform 0.4s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}
.faq-item.revealed {
  opacity: 1;
  transform: translateY(0);
}
@media (prefers-reduced-motion: reduce) {
  .faq-item {
    opacity: 1;
    transform: none;
  }
}

/* ===== CTA SECTION INPUTS ===== */
.cta-input {
  width: 100%;
  padding: 14px 20px;
  border-radius: var(--radius-sm);
  border: 2px solid rgba(0,0,0,0.12);
  background: rgba(0,0,0,0.06);
  color: var(--dark);
  font-size: 16px;
  font-family: 'Open Sans', sans-serif;
  outline: none;
  transition: border-color 0.25s ease, background 0.25s ease;
}
.cta-input::placeholder { color: rgba(0,0,0,0.65); }
.cta-input:focus {
  border-color: rgba(0,0,0,0.3);
  background: rgba(0,0,0,0.1);
}

/* ===== CTA TEAL FORM ===== */
.cta-teal-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.cta-teal-form .cta-input {
  width: 100%;
  padding: 14px 20px;
  border-radius: var(--radius-sm);
  border: 2px solid rgba(0,0,0,0.15);
  background: rgba(0,0,0,0.06);
  color: var(--dark);
  font-size: 16px;
  font-family: 'Open Sans', sans-serif;
  outline: none;
  transition: border-color 0.25s ease, background 0.25s ease, box-shadow 0.25s ease;
}
.cta-teal-form .cta-input::placeholder { color: rgba(0,0,0,0.65); }
.cta-teal-form .cta-input:focus {
  border-color: rgba(0,0,0,0.35);
  background: rgba(0,0,0,0.1);
  box-shadow: 0 0 0 3px rgba(0,0,0,0.06);
}

/* ===== SCROLL TO TOP BUTTON ===== */
#scroll-top-btn {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--teal-bg);
  color: var(--dark);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.3s ease, transform 0.3s ease, background 0.2s ease;
  z-index: 900;
  box-shadow: var(--shadow);
  pointer-events: none;
}
#scroll-top-btn.visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}
#scroll-top-btn:hover {
  background: var(--teal-light);
}
#scroll-top-btn svg {
  color: var(--dark);
}

/* Subtle top gradient for sections with explicit bg — creates smooth entrance from previous section */
section[class*="bg-"]::before {
  content: '';
  display: block;
  height: 48px;
  background: linear-gradient(to bottom, rgba(255,255,255,0.6) 0%, transparent 100%);
  pointer-events: none;
}

/* Bottom gradient for bg-light sections — smooth exit into next section */
section.bg-light::after {
  content: '';
  display: block;
  height: 48px;
  background: linear-gradient(to bottom, transparent 0%, rgba(225,229,232,0.5) 100%);
  pointer-events: none;
}

/* Wave SVG divider at bottom — smooth wave transition from bg-light into next section (white) */
section.bg-light::before {
  content: '';
  display: block;
  height: 60px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 60' preserveAspectRatio='none'%3E%3Cpath fill='%23E1E5E8' d='M0,60 C240,20 480,0 720,20 C960,40 1200,20 1440,60 L1440,0 L0,0 Z'/%3E%3C/svg%3E") no-repeat center top;
  background-size: 100% 60px;
  pointer-events: none;
  position: absolute;
  top: -1px;
  left: 0;
  right: 0;
  z-index: 1;
}

section.bg-light {
  position: relative;
  overflow: hidden;
}

/* Emergency section — subtle top gradient from hero, bottom gradient into white section */
.emergency::before {
  content: '';
  display: block;
  height: 40px;
  background: linear-gradient(to bottom, rgba(240,243,247,0.8) 0%, transparent 100%);
  pointer-events: none;
}
.emergency::after {
  content: '';
  display: block;
  height: 40px;
  background: linear-gradient(to bottom, transparent 0%, rgba(240,243,247,0.7) 100%);
  pointer-events: none;
}

/* CTA section wave dividers — ensure they sit above gradient dividers */
.cta-section::before,
.cta-teal::before {
  z-index: 2;
}

/* ===== SKO (Supervisory Authorities) Grid ===== */
.sko-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 32px;
}

.sko-card {
  background: var(--white);
  border-radius: 16px;
  padding: 32px 24px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.sko-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(43,76,155,0.12);
}

.sko-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--teal-light), var(--teal-bg));
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--dark);
  flex-shrink: 0;
}

.sko-title {
  font-size: 16px;
  font-weight: 600;
  color: var(--dark);
  line-height: 1.4;
  margin: 0;
}

.sko-desc {
  font-size: 14px;
  line-height: 1.6;
  color: var(--text-secondary);
  margin: 0;
  flex: 1;
}

.sko-contact {
  font-size: 13px;
  color: var(--teal);
  padding-top: 8px;
  border-top: 1px solid var(--bg-light);
}

.sko-contact-label {
  font-weight: 600;
  color: var(--dark);
}

@media (max-width: 900px) {
  .sko-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .sko-grid {
    grid-template-columns: 1fr;
  }
}