/* ==========================================================================
   DESIGN SYSTEM & CSS VARIABLES
   Сайт врача-гинеколога (Санкт-Петербург) — Премиум медицинский дизайн
   ========================================================================== */

:root {
  /* Brand Colors */
  --primary: #0d6e6e;
  /* Deep Medical Teal */
  --primary-hover: #095252;
  --primary-light: #e6f4f1;
  --primary-glow: rgba(13, 110, 110, 0.15);

  --secondary: #e28779;
  /* Warm Rose / Coral */
  --secondary-hover: #d06d5e;
  --secondary-light: #fdf2f0;

  --accent-gold: #c59b27;
  /* Premium Gold for badges / rating */
  --accent-gold-light: #fbf7ee;

  /* Neutral Colors */
  --bg-main: #fcfdfd;
  --bg-surface: #ffffff;
  --bg-alt: #f4f8f8;
  --bg-dark: #12232b;
  --bg-dark-surface: #1a323d;

  --text-main: #1e293b;
  --text-muted: #64748b;
  --text-light: #94a3b8;
  --text-inverse: #ffffff;

  /* Borders & Shadows */
  --border-color: #e2e8f0;
  --border-focus: #0d6e6e;
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 22px;
  --radius-full: 9999px;

  --shadow-sm: 0 2px 8px rgba(15, 23, 42, 0.04);
  --shadow-md: 0 8px 24px rgba(13, 110, 110, 0.08);
  --shadow-lg: 0 16px 40px rgba(13, 110, 110, 0.12);
  --shadow-hover: 0 20px 48px rgba(13, 110, 110, 0.16);

  /* Layout & Transitions */
  --container-max: 1240px;
  --transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  --font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
}

/* Reset & Base */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-family);
  background-color: var(--bg-main);
  color: var(--text-main);
  line-height: 1.65;
  overflow-x: clip;
  position: relative;
  -webkit-font-smoothing: antialiased;
}

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

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

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

ul,
ol {
  list-style: none;
}

button,
input,
select,
textarea {
  font: inherit;
  outline: none;
}

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

/* Typography Utilities */
h1,
h2,
h3,
h4,
h5,
h6 {
  color: var(--text-main);
  font-weight: 700;
  line-height: 1.25;
}

.section-title-wrap {
  text-align: center;
  max-width: 760px;
  margin: 0 auto 56px;
}

.section-subtitle {
  display: inline-block;
  color: var(--primary);
  background: var(--primary-light);
  padding: 6px 16px;
  border-radius: var(--radius-full);
  font-size: 0.875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 14px;
}

.section-title {
  font-size: 2.25rem;
  color: var(--text-main);
  margin-bottom: 16px;
}

.section-desc {
  font-size: 1.125rem;
  color: var(--text-muted);
}

/* Buttons & CTAs */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 28px;
  font-size: 1rem;
  font-weight: 600;
  border-radius: var(--radius-full);
  cursor: pointer;
  border: 1px solid transparent;
  transition: var(--transition);
  text-align: center;
  white-space: nowrap;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary) 0%, #0a5858 100%);
  color: var(--text-inverse);
  box-shadow: 0 8px 20px rgba(13, 110, 110, 0.25);
}

.btn-primary:hover {
  background: linear-gradient(135deg, #0f7c7c 0%, var(--primary) 100%);
  color: var(--text-inverse);
  transform: translateY(-2px);
  box-shadow: 0 12px 24px rgba(13, 110, 110, 0.35);
}

.btn-secondary {
  background: var(--secondary);
  color: var(--text-inverse);
}

.btn-secondary:hover {
  background: var(--secondary-hover);
  color: var(--text-inverse);
  transform: translateY(-2px);
}

.btn-outline {
  background: transparent;
  color: var(--primary);
  border-color: var(--primary);
}

.btn-outline:hover {
  background: var(--primary-light);
  color: var(--primary-hover);
  border-color: var(--primary-hover);
}

.btn-white {
  background: #ffffff;
  color: var(--primary);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
}

.btn-white:hover {
  background: #f8fafc;
  color: var(--primary-hover);
  transform: translateY(-2px);
}

.btn-sm {
  padding: 8px 18px;
  font-size: 0.875rem;
}

/* ==========================================================================
   HEADER & NAVIGATION
   ========================================================================== */

.top-bar {
  background: var(--bg-dark);
  color: #cbd5e1;
  font-size: 0.8125rem;
  padding: 7px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.top-bar-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

.top-bar-info {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}

.top-info-item {
  display: flex;
  align-items: center;
  gap: 6px;
}

.top-info-item svg {
  width: 14px;
  height: 14px;
  fill: var(--secondary);
  flex-shrink: 0;
}

.top-bar-links {
  display: flex;
  align-items: center;
  gap: 16px;
}

.top-bar-links a {
  color: #cbd5e1;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  text-decoration: none;
  transition: var(--transition);
}

.top-bar-links a:hover {
  color: var(--secondary);
}

.header-main {
  position: -webkit-sticky;
  position: sticky;
  top: 0;
  background: #ffffff;
  z-index: 2000;
  width: 100%;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
  transition: box-shadow 0.2s ease;
}

/* Tier 1: Main Header Bar (Logo, Widgets, Phone, CTA) */
.header-top-row {
  padding: 12px 0;
  background: #ffffff;
  border-bottom: 1px solid var(--border-color);
}

.header-top-inner,
.header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
}

.header-inner {
  padding: 12px 0;
}

.logo-wrap {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  flex-shrink: 0;
}

.logo-icon {
  width: 44px;
  height: 44px;
  background: linear-gradient(135deg, var(--primary) 0%, #178a8a 100%);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  box-shadow: 0 4px 12px var(--primary-glow);
  flex-shrink: 0;
  position: relative;
  overflow: hidden;
}

.logo-icon svg {
  width: 24px;
  height: 24px;
  fill: currentColor;
}

.logo-icon img,
.logo-icon .logo-img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 4px;
  border-radius: 12px;
  background: white;
  z-index: 2;
  display: block;
}

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

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

.logo-subtitle {
  font-size: 0.75rem;
  color: var(--text-muted);
  font-weight: 500;
}

/* Header Middle Info Widgets */
.header-widgets-group {
  display: flex;
  align-items: center;
  gap: 28px;
}

.header-widget {
  display: flex;
  align-items: center;
  gap: 10px;
}

.widget-icon {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--primary-light);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.widget-icon svg {
  width: 18px;
  height: 18px;
  fill: var(--primary);
}

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

.widget-title {
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--text-main);
  line-height: 1.2;
}

.widget-sub {
  font-size: 0.75rem;
  color: var(--text-muted);
  font-weight: 500;
}

/* Header Right Actions (Phone & CTA Button) */
.header-actions {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-shrink: 0;
}

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

.header-phone-number {
  font-size: 1.125rem;
  font-weight: 800;
  color: var(--text-main);
  line-height: 1.2;
  white-space: nowrap;
  letter-spacing: -0.01em;
  text-decoration: none;
  transition: color 0.2s;
}

.header-phone-number:hover {
  color: var(--primary);
}

.header-phone-status {
  font-size: 0.725rem;
  color: #16a34a;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 4px;
  font-weight: 600;
  white-space: nowrap;
}

.status-dot {
  width: 6px;
  height: 6px;
  background: #16a34a;
  border-radius: 50%;
  animation: pulseDot 2s infinite;
  display: inline-block;
}

@keyframes pulseDot {

  0%,
  100% {
    opacity: 1;
    transform: scale(1);
  }

  50% {
    opacity: 0.4;
    transform: scale(0.8);
  }
}

.mobile-nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  color: var(--text-main);
}

/* Tier 2: Navigation Bar Ribbon */
.header-nav-row {
  background: #f8fafc;
  border-bottom: 1px solid var(--border-color);
}

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

.nav-menu {
  display: flex;
  align-items: center;
  gap: 24px;
}

.nav-link {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-main);
  position: relative;
  padding: 10px 0;
  white-space: nowrap;
  text-decoration: none;
  transition: color 0.2s;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

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

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

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

/* Navigation Dropdown Menus */
.nav-item-dropdown {
  position: relative;
  display: flex;
  align-items: center;
}

.nav-item-dropdown .chevron-icon {
  width: 14px;
  height: 14px;
  fill: currentColor;
  transition: transform 0.2s ease;
}

.nav-item-dropdown:hover .chevron-icon {
  transform: rotate(180deg);
}

.nav-dropdown-menu {
  position: absolute;
  top: calc(100% + 2px);
  left: 50%;
  transform: translateX(-50%) translateY(8px);
  background: #ffffff;
  border-radius: 14px;
  box-shadow: 0 16px 40px rgba(15, 23, 42, 0.14), 0 0 0 1px rgba(0, 0, 0, 0.06);
  min-width: 560px;
  padding: 20px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  opacity: 0;
  visibility: hidden;
  transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1);
  z-index: 1200;
  pointer-events: none;
}

.nav-item-dropdown:hover .nav-dropdown-menu,
.nav-item-dropdown:focus-within .nav-dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
  pointer-events: auto;
}

.dropdown-col-title {
  font-size: 0.75rem;
  font-weight: 800;
  color: var(--primary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding-bottom: 8px;
  margin-bottom: 10px;
  border-bottom: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  gap: 6px;
}

.dropdown-link-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.dropdown-link-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 7px 10px;
  border-radius: 8px;
  text-decoration: none;
  color: var(--text-main);
  font-size: 0.875rem;
  font-weight: 600;
  transition: all 0.15s ease;
}

.dropdown-link-item:hover {
  background: var(--primary-light);
  color: var(--primary);
  transform: translateX(2px);
}

.dropdown-link-content {
  display: flex;
  align-items: center;
}

.metro-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  font-size: 0.65rem;
  font-weight: 900;
  color: white;
  margin-right: 8px;
  flex-shrink: 0;
}

.metro-m2 {
  background: #0078c9;
  /* Blue Line 2 */
}

.metro-m5 {
  background: #7e22ce;
  /* Purple Line 5 */
}

.dropdown-meta {
  font-size: 0.725rem;
  color: var(--text-muted);
  font-weight: 500;
}

.dropdown-all-link {
  grid-column: 1 / -1;
  padding-top: 10px;
  margin-top: 4px;
  border-top: 1px solid var(--border-color);
  text-align: center;
}

.dropdown-all-link a {
  color: var(--primary);
  font-size: 0.875rem;
  font-weight: 700;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.dropdown-all-link a:hover {
  text-decoration: underline;
}

.header-nav-badge {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--primary);
  background: var(--primary-light);
  padding: 4px 12px;
  border-radius: var(--radius-full);
}

.header-nav-badge svg {
  width: 14px;
  height: 14px;
  fill: currentColor;
}

/* ==========================================================================
   HERO SECTION
   ========================================================================== */

.hero-section {
  position: relative;
  background: linear-gradient(135deg, #f0f7f7 0%, #ffffff 50%, #fdf5f4 100%);
  padding: 70px 0 90px;
  overflow: hidden;
  border-bottom: 1px solid var(--border-color);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 48px;
  align-items: center;
}

.hero-content {
  z-index: 2;
}

.hero-badge-wrap {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: #ffffff;
  border: 1px solid rgba(13, 110, 110, 0.2);
  padding: 6px 16px;
  border-radius: var(--radius-full);
  margin-bottom: 24px;
  box-shadow: var(--shadow-sm);
}

.hero-badge-tag {
  background: var(--primary);
  color: white;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: var(--radius-full);
}

.hero-badge-text {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-main);
}

.hero-title {
  font-size: 3rem;
  font-weight: 800;
  color: var(--text-main);
  line-height: 1.15;
  margin-bottom: 20px;
}

.hero-title .highlight {
  color: var(--primary);
  position: relative;
  display: inline-block;
}

.hero-title .highlight::after {
  content: '';
  position: absolute;
  bottom: 4px;
  left: 0;
  width: 100%;
  height: 8px;
  background: rgba(226, 135, 121, 0.25);
  z-index: -1;
  border-radius: 4px;
}

.hero-description {
  font-size: 1.2rem;
  color: var(--text-muted);
  margin-bottom: 32px;
  max-width: 580px;
}

.hero-features-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
  margin-bottom: 36px;
}

.hero-feature-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-main);
}

.feature-check-icon {
  width: 22px;
  height: 22px;
  background: var(--primary-light);
  color: var(--primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.feature-check-icon svg {
  width: 13px;
  height: 13px;
  fill: currentColor;
}

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

.hero-stats-row {
  display: flex;
  align-items: center;
  gap: 32px;
  padding-top: 24px;
  border-top: 1px solid var(--border-color);
}

.stat-item {
  display: flex;
  flex-direction: column;
}

.stat-number {
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--primary);
  line-height: 1.1;
}

.stat-label {
  font-size: 0.8125rem;
  color: var(--text-muted);
  font-weight: 500;
}

/* Hero Media Card */
.hero-visual {
  position: relative;
  display: flex;
  justify-content: center;
}

.doctor-card-hero {
  position: relative;
  width: 100%;
  max-width: 440px;
  background: white;
  border-radius: var(--radius-lg);
  padding: 16px;
  box-shadow: var(--shadow-lg);
  border: 1px solid rgba(13, 110, 110, 0.1);
}

.doctor-photo-wrap {
  width: 100%;
  height: 420px;
  border-radius: 16px;
  overflow: hidden;
  background: linear-gradient(180deg, #d4ecec 0%, #a8d7d7 100%);
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.doctor-photo-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
}

.doctor-photo-wrap svg {
  width: 80%;
  height: 80%;
}

.doctor-hero-logo {
  position: absolute;
  top: 16px;
  right: 16px;
  z-index: 3;
  width: 78px;
  height: 78px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12), 0 2px 6px rgba(0, 0, 0, 0.06);
  border: 1.5px solid rgba(255, 255, 255, 0.9);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: 10px;
}

.floating-badge {
  position: absolute;
  background: white;
  padding: 12px 18px;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  display: flex;
  align-items: center;
  gap: 12px;
  z-index: 3;
}

.badge-rating {
  top: 30px;
  left: -24px;
  border-left: 4px solid var(--accent-gold);
}

.badge-rating-stars {
  color: var(--accent-gold);
  font-size: 1rem;
  line-height: 1;
}

.badge-rating-text {
  font-size: 0.8125rem;
  font-weight: 700;
  color: var(--text-main);
}

.badge-rating-sub {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.badge-location {
  bottom: 24px;
  right: -20px;
  border-left: 4px solid var(--primary);
}

.badge-location-title {
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--text-main);
}

.badge-location-sub {
  font-size: 0.75rem;
  color: var(--text-muted);
}

/* ==========================================================================
   SERVICES GRID SECTION
   ========================================================================== */

.section {
  padding: 90px 0;
}

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

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(360px, 1fr));
  gap: 30px;
}

.service-card {
  background: var(--bg-surface);
  border-radius: var(--radius-md);
  padding: 32px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-color);
  transition: var(--transition);
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
}

.service-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-hover);
  border-color: rgba(13, 110, 110, 0.3);
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, var(--primary), var(--secondary));
  opacity: 0;
  transition: var(--transition);
}

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

.service-icon-wrap {
  width: 60px;
  height: 60px;
  background: var(--primary-light);
  color: var(--primary);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 22px;
}

.service-icon-wrap svg {
  width: 32px;
  height: 32px;
  fill: currentColor;
}

.service-card-title {
  font-size: 1.35rem;
  font-weight: 700;
  margin-bottom: 12px;
}

.service-card-desc {
  font-size: 0.95rem;
  color: var(--text-muted);
  margin-bottom: 20px;
  flex-grow: 1;
}

.service-features-mini {
  margin-bottom: 24px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--border-color);
}

.service-features-mini li {
  font-size: 0.875rem;
  color: var(--text-main);
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
}

.service-features-mini li svg {
  width: 14px;
  height: 14px;
  fill: var(--primary);
  flex-shrink: 0;
}

.service-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: auto;
}

.service-price-wrap {
  display: flex;
  flex-direction: column;
}

.price-label {
  font-size: 0.75rem;
  color: var(--text-muted);
  text-transform: uppercase;
}

.price-value {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--primary);
}

/* ==========================================================================
   CHECK-UP / COMPREHENSIVE PROGRAMS
   ========================================================================== */

.checkup-banner {
  background: linear-gradient(135deg, var(--bg-dark) 0%, var(--bg-dark-surface) 100%);
  border-radius: var(--radius-lg);
  padding: 56px;
  color: white;
  position: relative;
  overflow: hidden;
  margin-top: 40px;
  box-shadow: var(--shadow-lg);
}

.checkup-banner-content {
  position: relative;
  z-index: 2;
  max-width: 680px;
}

.checkup-tag {
  display: inline-block;
  background: var(--secondary);
  color: white;
  padding: 4px 14px;
  border-radius: var(--radius-full);
  font-size: 0.8125rem;
  font-weight: 700;
  margin-bottom: 16px;
}

.checkup-title {
  font-size: 2.25rem;
  color: white;
  margin-bottom: 16px;
}

.checkup-desc {
  font-size: 1.05rem;
  color: #cbd5e1;
  margin-bottom: 28px;
}

.checkup-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin-bottom: 32px;
}

.checkup-list li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.95rem;
  color: #e2e8f0;
}

.checkup-list li svg {
  width: 16px;
  height: 16px;
  fill: var(--secondary);
}

/* ==========================================================================
   DOCTOR BIO / E-E-A-T TRUST SECTION
   ========================================================================== */

.doctor-bio-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 56px;
  align-items: center;
}

.doctor-photo-card {
  background: white;
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border-color);
  text-align: center;
}

.doctor-avatar {
  width: 100%;
  height: 380px;
  border-radius: var(--radius-md);
  overflow: hidden;
  background: linear-gradient(180deg, #d4ecec 0%, #b8e2e2 100%);
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.doctor-name {
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 6px;
}

.doctor-title-label {
  font-size: 0.95rem;
  color: var(--primary);
  font-weight: 600;
  margin-bottom: 16px;
}

.doctor-credentials-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  text-align: left;
  background: var(--bg-alt);
  padding: 16px;
  border-radius: var(--radius-sm);
}

/* Individual Doctor Landing Page Grid */
.doctor-profile-grid {
  display: grid;
  grid-template-columns: 340px 1fr;
  gap: 36px;
  align-items: flex-start;
  margin-bottom: 40px;
}

.doctor-profile-sidebar {
  background: white;
  border-radius: 20px;
  border: 1px solid #e2e8f0;
  padding: 28px 24px;
  text-align: center;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
  position: sticky;
  top: 150px;
  z-index: 50;
}

.doctor-profile-details {
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.doctor-section-card {
  background: white;
  border-radius: 20px;
  border: 1px solid #e2e8f0;
  padding: 32px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03);
}

.doctor-section-title {
  font-size: 1.3rem;
  font-weight: 800;
  color: #0f172a;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.doctor-section-title svg {
  width: 26px;
  height: 26px;
  color: var(--primary);
  flex-shrink: 0;
}

/* Education Cards Grid (Приказ № 956н) */
.doctor-edu-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 16px;
  margin-bottom: 16px;
}

.doctor-edu-card {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  padding: 18px 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.doctor-edu-card:hover {
  transform: translateY(-2px);
  border-color: #cbd5e1;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.04);
}

.doctor-edu-label {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--primary);
}

.doctor-edu-value {
  font-size: 0.925rem;
  font-weight: 700;
  color: #0f172a;
  line-height: 1.4;
}

.doctor-edu-sub {
  font-size: 0.8125rem;
  color: #64748b;
  line-height: 1.5;
}

/* Diplomas & Certificates List (Documents) */
.doctor-docs-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 16px;
}

.doctor-doc-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  text-decoration: none;
  color: inherit;
  transition: all 0.2s ease;
  flex-wrap: wrap;
  gap: 12px;
}

.doctor-doc-item:hover {
  background: #f0fdf4;
  border-color: #86efac;
  transform: translateX(4px);
}

.doctor-doc-info {
  display: flex;
  align-items: center;
  gap: 14px;
}

.doctor-doc-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: #e0f2fe;
  color: #0284c7;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.doctor-doc-name {
  font-size: 0.95rem;
  font-weight: 700;
  color: #0f172a;
  margin-bottom: 2px;
}

.doctor-doc-meta {
  font-size: 0.775rem;
  color: #64748b;
}

.doctor-doc-action {
  font-size: 0.8125rem;
  font-weight: 700;
  color: var(--primary);
  display: flex;
  align-items: center;
  gap: 6px;
  background: #f0fdfa;
  padding: 6px 14px;
  border-radius: 20px;
  border: 1px solid #ccfbf1;
}

.doctor-doc-item.doctor-doc-pending {
  background: #f8fafc;
  border: 1px dashed #cbd5e1;
  cursor: default;
}

.doctor-doc-item.doctor-doc-pending:hover {
  background: #f8fafc;
  border-color: #cbd5e1;
  transform: none;
}

.doctor-doc-status-badge {
  font-size: 0.775rem;
  font-weight: 600;
  color: #475569;
  background: #f1f5f9;
  padding: 6px 14px;
  border-radius: 20px;
  border: 1px solid #e2e8f0;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

/* Schedule Banner Card */
.doctor-schedule-banner {
  background: linear-gradient(135deg, #f0fdfa 0%, #e6fffa 100%);
  border: 1px solid #99f6e4;
  border-radius: 16px;
  padding: 20px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}

.doctor-schedule-text {
  display: flex;
  align-items: center;
  gap: 14px;
}

.doctor-schedule-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--primary);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

/* ==========================================================================
   CHIEF DOCTOR & SAFETY STANDARDS SECTION
   ========================================================================== */
.chief-doctor-section {
  background: #ffffff;
  padding: 60px 0;
  border-bottom: 1px solid var(--border-color);
}

.chief-doctor-banner {
  background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
  border-radius: 20px;
  border: 1px solid #bae6fd;
  padding: 36px 40px;
  display: flex;
  align-items: flex-start;
  gap: 32px;
  box-shadow: 0 10px 30px rgba(2, 132, 199, 0.05);
}

.chief-doctor-avatar-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.chief-doctor-avatar {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  background: linear-gradient(135deg, #0284c7 0%, #0369a1 100%);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 24px rgba(2, 132, 199, 0.25);
  overflow: hidden;
  border: 3px solid #ffffff;
}

.chief-doctor-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 15%;
  display: block;
}

.chief-avatar-svg {
  width: 48px;
  height: 48px;
  fill: currentColor;
}

.chief-doctor-badge {
  font-size: 0.75rem;
  font-weight: 700;
  color: #0369a1;
  background: #ffffff;
  padding: 3px 10px;
  border-radius: 20px;
  border: 1px solid #bae6fd;
  white-space: nowrap;
}

.chief-doctor-content {
  flex: 1 1 auto;
}

.chief-doctor-tag {
  font-size: 0.8125rem;
  font-weight: 700;
  text-transform: uppercase;
  color: #0369a1;
  letter-spacing: 0.05em;
  margin-bottom: 6px;
}

.chief-doctor-title {
  font-size: 1.35rem;
  font-weight: 800;
  color: #0f172a;
  margin-bottom: 12px;
  line-height: 1.3;
}

.chief-doctor-quote {
  font-size: 0.95rem;
  color: #334155;
  line-height: 1.7;
  margin-bottom: 18px;
}

.chief-doctor-features {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.chief-feature-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.8125rem;
  font-weight: 600;
  color: #0369a1;
  background: rgba(255, 255, 255, 0.85);
  padding: 6px 14px;
  border-radius: 8px;
  border: 1px solid #bae6fd;
}

.chief-feature-item svg {
  width: 16px;
  height: 16px;
  fill: #0284c7;
  flex-shrink: 0;
}

.credential-item {
  display: flex;
  flex-direction: column;
}

.credential-item strong {
  font-size: 1.1rem;
  color: var(--text-main);
}

.credential-item span {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.bio-content h3 {
  font-size: 1.75rem;
  margin-bottom: 18px;
}

.bio-text {
  font-size: 1.05rem;
  color: #475569;
  margin-bottom: 24px;
}

.bio-principles-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 32px;
}

.principle-card {
  display: flex;
  gap: 16px;
  background: white;
  padding: 18px;
  border-radius: var(--radius-sm);
  border-left: 4px solid var(--primary);
  box-shadow: var(--shadow-sm);
}

.principle-icon {
  width: 36px;
  height: 36px;
  background: var(--primary-light);
  color: var(--primary);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.principle-info h4 {
  font-size: 1.05rem;
  margin-bottom: 4px;
}

.principle-info p {
  font-size: 0.875rem;
  color: var(--text-muted);
}

/* ==========================================================================
   PRICING TABLE
   ========================================================================== */

.pricing-table-wrap {
  background: white;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border-color);
  overflow: hidden;
}

.pricing-filter-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding: 18px 24px;
  background: var(--bg-alt);
  border-bottom: 1px solid var(--border-color);
  align-items: center;
}

.tab-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 20px;
  border-radius: var(--radius-full);
  background: white;
  border: 1px solid var(--border-color);
  color: var(--text-main);
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  user-select: none;
  -webkit-tap-highlight-color: transparent;
}

.tab-btn .tab-icon {
  font-size: 1rem;
  line-height: 1;
}

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

.tab-btn.active {
  background: var(--primary);
  color: white;
  border-color: var(--primary);
  box-shadow: 0 4px 14px rgba(13, 110, 110, 0.22);
}


.pricing-search-box {
  padding: 16px 24px;
  border-bottom: 1px solid var(--border-color);
}

.pricing-search-box input {
  width: 100%;
  padding: 12px 18px;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  font-size: 0.95rem;
  transition: var(--transition);
}

.pricing-search-box input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-glow);
}

.price-row-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 24px;
  border-bottom: 1px solid var(--border-color);
  transition: var(--transition);
}

.price-row-item:last-child {
  border-bottom: none;
}

.price-row-item:hover {
  background: #f8fafc;
}

.price-row-info {
  max-width: 70%;
}

.price-row-title {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--text-main);
  margin-bottom: 4px;
}

.price-row-desc {
  font-size: 0.8125rem;
  color: var(--text-muted);
}

.price-row-action {
  display: flex;
  align-items: center;
  gap: 20px;
}

.price-row-cost {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--primary);
  white-space: nowrap;
}

/* ==========================================================================
   REVIEWS & RATINGS (SERM)
   ========================================================================== */

.ratings-summary-card {
  background: white;
  border-radius: var(--radius-lg);
  padding: 36px;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 24px;
  margin-bottom: 48px;
}

.overall-score-wrap {
  display: flex;
  align-items: center;
  gap: 20px;
}

.score-big {
  font-size: 3.5rem;
  font-weight: 900;
  color: var(--text-main);
  line-height: 1;
}

.score-meta {
  display: flex;
  flex-direction: column;
}

.stars-row {
  color: var(--accent-gold);
  font-size: 1.25rem;
  margin-bottom: 4px;
}

.platforms-badges {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.platform-badge {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 16px;
  background: var(--bg-alt);
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-color);
  font-size: 0.875rem;
  font-weight: 600;
}

.platform-badge strong {
  color: var(--primary);
}

.reviews-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: 24px;
}

.review-card {
  background: white;
  border-radius: var(--radius-md);
  padding: 28px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-color);
  display: flex;
  flex-direction: column;
}

.review-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 14px;
}

.reviewer-name {
  font-size: 1.05rem;
  font-weight: 700;
}

.review-date {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.review-text {
  font-size: 0.95rem;
  color: #475569;
  line-height: 1.6;
  margin-bottom: 16px;
  flex-grow: 1;
}

.review-source-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.75rem;
  color: var(--text-muted);
}

/* ==========================================================================
   FAQ ACCORDION
   ========================================================================== */

.faq-container {
  max-width: 860px;
  margin: 0 auto;
}

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

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

.faq-question {
  width: 100%;
  padding: 20px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: none;
  border: none;
  text-align: left;
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text-main);
  cursor: pointer;
}

.faq-icon {
  width: 24px;
  height: 24px;
  color: var(--primary);
  transition: transform 0.3s ease;
  flex-shrink: 0;
}

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

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease, padding 0.35s ease;
  padding: 0 24px;
  color: #475569;
  font-size: 0.95rem;
  line-height: 1.65;
}

.faq-item.active .faq-answer {
  padding: 0 24px 20px;
}

/* ==========================================================================
   E-E-A-T MEDICAL BLOG & ARTICLES
   ========================================================================== */

.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: 30px;
}

.blog-card {
  background: white;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-color);
  display: flex;
  flex-direction: column;
  transition: var(--transition);
}

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

.blog-thumb-wrap {
  height: 200px;
  background: linear-gradient(135deg, #dcf0ef 0%, #fae8e5 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.blog-category-tag {
  position: absolute;
  top: 14px;
  left: 14px;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(4px);
  color: var(--primary);
  font-size: 0.75rem;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: var(--radius-full);
}

.blog-content {
  padding: 24px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.blog-meta-row {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-bottom: 12px;
}

.blog-card-title {
  font-size: 1.25rem;
  font-weight: 700;
  line-height: 1.35;
  margin-bottom: 12px;
}

.blog-card-title a {
  color: var(--text-main);
}

.blog-card-title a:hover {
  color: var(--primary);
}

.blog-excerpt {
  font-size: 0.9rem;
  color: #64748b;
  margin-bottom: 20px;
  flex-grow: 1;
}

.blog-author-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  padding-top: 14px;
  border-top: 1px solid var(--border-color);
}

.author-mini-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--primary-light);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.8rem;
}

.author-mini-info {
  display: flex;
  flex-direction: column;
}

.author-mini-name {
  font-size: 0.8125rem;
  font-weight: 700;
  color: var(--text-main);
}

.author-verified-tag {
  font-size: 0.7rem;
  color: #16a34a;
}

/* Article Page Specifics */
.article-header {
  padding: 50px 0 30px;
  background: var(--bg-alt);
  border-bottom: 1px solid var(--border-color);
}

.article-content-layout {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 48px;
  padding: 50px 0;
}

.article-body {
  font-size: 1.05rem;
  line-height: 1.8;
  color: #334155;
}

.article-body h2 {
  font-size: 1.6rem;
  margin: 36px 0 16px;
}

.article-body h3 {
  font-size: 1.3rem;
  margin: 28px 0 12px;
}

.article-body p {
  margin-bottom: 18px;
}

.article-body ul,
.article-body ol {
  margin-bottom: 20px;
  padding-left: 24px;
}

.article-body ul {
  list-style: disc;
}

.article-body ol {
  list-style: decimal;
}

.article-body li {
  margin-bottom: 8px;
}

.eeat-expert-box {
  background: #f0fdf4;
  border-left: 4px solid #16a34a;
  padding: 20px 24px;
  border-radius: var(--radius-sm);
  margin: 30px 0;
}

.sources-box {
  background: var(--bg-alt);
  padding: 24px;
  border-radius: var(--radius-sm);
  margin-top: 40px;
  font-size: 0.875rem;
}

.sources-box h4 {
  margin-bottom: 12px;
  font-size: 1rem;
}

.sources-box ol {
  padding-left: 20px;
}

.medical-disclaimer {
  background: #fffbeb;
  border: 1px solid #fef3c7;
  border-left: 4px solid #f59e0b;
  padding: 18px 22px;
  border-radius: var(--radius-sm);
  font-size: 0.875rem;
  color: #92400e;
  margin: 30px 0;
  display: flex;
  gap: 14px;
  align-items: flex-start;
}

/* ==========================================================================
   CONTACTS & LOCATION (SPb)
   ========================================================================== */

.contacts-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
}

.contact-info-cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin-bottom: 30px;
}

.contact-info-card {
  background: white;
  padding: 24px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-sm);
}

.contact-info-card svg {
  width: 28px;
  height: 28px;
  fill: var(--primary);
  margin-bottom: 14px;
}

.contact-info-card h4 {
  font-size: 1rem;
  margin-bottom: 6px;
}

.contact-info-card p {
  font-size: 0.875rem;
  color: var(--text-muted);
}

.map-embed-wrap {
  width: 100%;
  height: 440px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border-color);
  background: #e2e8f0;
}

/* ==========================================================================
   FOOTER
   ========================================================================== */

.footer-main {
  background: var(--bg-dark);
  color: #94a3b8;
  padding: 70px 0 30px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

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

.footer-col-title {
  color: white;
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 20px;
}

.footer-links-list li {
  margin-bottom: 12px;
}

.footer-links-list a {
  color: #94a3b8;
  font-size: 0.9rem;
}

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

.footer-bottom-disclaimer {
  padding: 24px;
  background: rgba(0, 0, 0, 0.25);
  border-radius: var(--radius-sm);
  font-size: 0.8125rem;
  line-height: 1.6;
  color: #cbd5e1;
  margin-bottom: 30px;
  border-left: 3px solid var(--secondary);
}

.footer-copyright-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 0.8125rem;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

/* ==========================================================================
   MODAL & BOOKING FORM (152-ФЗ)
   ========================================================================== */

.modal-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(15, 23, 42, 0.65);
  backdrop-filter: blur(6px);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
}

.modal-backdrop.open {
  opacity: 1;
  visibility: visible;
}

.modal-dialog {
  background: white;
  border-radius: var(--radius-lg);
  max-width: 520px;
  width: 100%;
  padding: 36px;
  position: relative;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
  transform: scale(0.95);
  transition: var(--transition);
}

.modal-backdrop.open .modal-dialog {
  transform: scale(1);
}

.modal-close-btn {
  position: absolute;
  top: 18px;
  right: 18px;
  background: var(--bg-alt);
  border: none;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--text-muted);
  transition: var(--transition);
}

.modal-close-btn:hover {
  background: #fee2e2;
  color: #ef4444;
}

.modal-title {
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--text-main);
  margin-bottom: 8px;
}

.modal-subtitle {
  font-size: 0.95rem;
  color: var(--text-muted);
  margin-bottom: 24px;
}

.form-group {
  margin-bottom: 18px;
}

.form-label {
  display: block;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-main);
  margin-bottom: 6px;
}

.form-input,
.form-select,
.form-textarea {
  width: 100%;
  padding: 13px 16px;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  font-size: 0.95rem;
  transition: var(--transition);
  background: #f8fafc;
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  background: white;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-glow);
}

.form-checkbox-label {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.775rem;
  color: var(--text-muted);
  cursor: pointer;
  line-height: 1.4;
  margin-top: 14px;
  margin-bottom: 22px;
}

.form-checkbox-label input {
  margin-top: 2px;
  accent-color: var(--primary);
}

.toast-notification {
  position: fixed;
  bottom: 30px;
  right: 30px;
  background: #16a34a;
  color: white;
  padding: 16px 24px;
  border-radius: var(--radius-md);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
  display: flex;
  align-items: center;
  gap: 12px;
  z-index: 3000;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(20px);
  transition: opacity 0.3s ease, visibility 0.3s ease, transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.toast-notification.show {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0);
}

/* ==========================================================================
   PREGNANCY CALCULATOR & SCREENINGS CALENDAR
   ========================================================================== */

.pregnancy-calc-card {
  background: white;
  border-radius: var(--radius-lg);
  padding: 36px;
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-md);
  margin-bottom: 50px;
}

.calc-header {
  text-align: center;
  margin-bottom: 28px;
}

.calc-header h2 {
  font-size: 1.85rem;
  color: var(--text-main);
  margin-bottom: 8px;
}

.calc-header p {
  color: #64748b;
  font-size: 1rem;
}

.calc-controls-row {
  display: flex;
  gap: 20px;
  justify-content: center;
  align-items: flex-end;
  flex-wrap: wrap;
  background: var(--bg-alt);
  padding: 24px;
  border-radius: var(--radius-md);
  margin-bottom: 32px;
}

.calc-field-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.calc-field-group label {
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--text-main);
}

.calc-date-input {
  padding: 12px 18px;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-main);
  background: white;
  outline: none;
  transition: var(--transition);
}

.calc-date-input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-glow);
}

.calc-results-wrap {
  display: flex;
  flex-direction: column;
  gap: 28px;
  animation: fadeIn 0.4s ease;
}

.calc-metrics-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 18px;
}

.calc-metric-card {
  background: linear-gradient(135deg, #f0fdfa 0%, #e6fffa 100%);
  border: 1px solid #99f6e4;
  border-radius: var(--radius-md);
  padding: 20px;
  text-align: center;
}

.calc-metric-card.accent {
  background: linear-gradient(135deg, #fdf4ff 0%, #fae8ff 100%);
  border-color: #f5d0fe;
}

.calc-metric-label {
  font-size: 0.8125rem;
  font-weight: 700;
  color: #0f766e;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 6px;
}

.calc-metric-card.accent .calc-metric-label {
  color: #a21caf;
}

.calc-metric-value {
  font-size: 1.85rem;
  font-weight: 900;
  color: var(--text-main);
  line-height: 1.2;
}

.calc-metric-sub {
  font-size: 0.8125rem;
  color: #64748b;
  margin-top: 4px;
}

/* Progress Bar */
.calc-progress-container {
  background: white;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 24px;
  box-shadow: var(--shadow-sm);
}

.progress-header {
  display: flex;
  justify-content: space-between;
  font-size: 0.875rem;
  font-weight: 700;
  margin-bottom: 10px;
}

.progress-track {
  height: 14px;
  background: #e2e8f0;
  border-radius: var(--radius-full);
  overflow: hidden;
  position: relative;
  margin-bottom: 8px;
}

.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--primary) 0%, #14b8a6 50%, #0d9488 100%);
  border-radius: var(--radius-full);
  transition: width 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.progress-labels-row {
  display: flex;
  justify-content: space-between;
  font-size: 0.75rem;
  color: #94a3b8;
}

/* Screenings Timeline */
.screenings-timeline-wrap {
  background: white;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 24px;
}

.screenings-timeline-title {
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--primary);
  margin-bottom: 18px;
}

.screenings-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 16px;
}

.screening-card {
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  padding: 18px;
  background: #f8fafc;
  transition: var(--transition);
  position: relative;
  display: flex;
  flex-direction: column;
}

.screening-card.active-screening {
  border-color: var(--primary);
  background: #f0fdfa;
  box-shadow: 0 4px 12px rgba(13, 110, 110, 0.12);
}

.screening-badge {
  font-size: 0.75rem;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: var(--radius-full);
  background: #e2e8f0;
  color: #475569;
  display: inline-block;
  margin-bottom: 8px;
  width: fit-content;
}

.screening-card.active-screening .screening-badge {
  background: var(--primary);
  color: white;
}

.screening-name {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 6px;
}

.screening-dates {
  font-size: 0.95rem;
  font-weight: 800;
  color: #0f766e;
  margin-bottom: 6px;
}

.screening-desc {
  font-size: 0.8125rem;
  color: #64748b;
  line-height: 1.5;
  margin-bottom: 12px;
  flex-grow: 1;
}

.package-recommendation-box {
  background: linear-gradient(135deg, #0d6e6e 0%, #083344 100%);
  border-radius: var(--radius-md);
  padding: 28px;
  color: white;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
}

.package-rec-info h4 {
  color: white;
  font-size: 1.35rem;
  margin-bottom: 6px;
}

.package-rec-info p {
  color: #ccfbf1;
  font-size: 0.95rem;
  margin: 0;
}

/* ==========================================================================
   ROUTE SWITCHER & PHOTO STEPS (KONTAKTY)
   ========================================================================== */

.route-switcher-wrap {
  margin-bottom: 40px;
}

.route-tabs-nav {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 24px;
}

.route-nav-btn {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 20px;
  background: white;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-main);
  cursor: pointer;
  transition: var(--transition);
}

.route-nav-btn:hover,
.route-nav-btn.active {
  background: var(--primary);
  color: white;
  border-color: var(--primary);
  box-shadow: var(--shadow-sm);
}

.route-pane {
  display: none;
  animation: fadeIn 0.35s ease;
}

.route-pane.active {
  display: block;
}

.photo-steps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
}

.photo-step-card {
  background: white;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
}

.photo-step-visual {
  height: 160px;
  background: linear-gradient(135deg, #e2e8f0 0%, #cbd5e1 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.photo-step-number {
  position: absolute;
  top: 12px;
  left: 12px;
  background: var(--primary);
  color: white;
  font-size: 0.8125rem;
  font-weight: 800;
  padding: 4px 10px;
  border-radius: var(--radius-full);
}

.photo-step-body {
  padding: 18px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

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

.photo-step-text {
  font-size: 0.85rem;
  color: #64748b;
  line-height: 1.5;
  margin: 0;
}

/* ==========================================================================
   PATIENT PREPARATION LEAFLETS (PDF & PRINT)
   ========================================================================== */

.leaflets-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
  gap: 24px;
}

.leaflet-card {
  background: white;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
  padding: 28px;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  transition: var(--transition);
  border-top: 4px solid var(--primary);
}

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

.leaflet-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 14px;
}

.leaflet-badge {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--primary);
  background: var(--primary-light);
  padding: 4px 10px;
  border-radius: var(--radius-full);
}

.leaflet-icon {
  width: 36px;
  height: 36px;
  color: var(--primary);
}

.leaflet-title {
  font-size: 1.15rem;
  font-weight: 800;
  margin-bottom: 14px;
  color: var(--text-main);
}

.leaflet-rules-list {
  font-size: 0.875rem;
  color: #475569;
  line-height: 1.6;
  margin-bottom: 20px;
  padding-left: 18px;
  flex-grow: 1;
}

.leaflet-rules-list li {
  margin-bottom: 8px;
}

.leaflet-actions {
  display: flex;
  gap: 12px;
}

.leaflet-print-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 16px;
  border-radius: var(--radius-sm);
  font-size: 0.875rem;
  font-weight: 600;
  background: var(--bg-alt);
  border: 1px solid var(--border-color);
  color: var(--text-main);
  cursor: pointer;
  transition: var(--transition);
  width: 100%;
}

.leaflet-print-btn:hover {
  background: var(--primary);
  color: white;
  border-color: var(--primary);
}

/* ==========================================================================
   ENHANCED REVIEWS STYLES
   ========================================================================== */

.ratings-breakdown {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 260px;
}

.rating-bar-row {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.8125rem;
  font-weight: 600;
  color: #475569;
}

.bar-track {
  flex-grow: 1;
  height: 8px;
  background: #e2e8f0;
  border-radius: var(--radius-full);
  overflow: hidden;
}

.bar-fill {
  height: 100%;
  background: var(--accent-gold);
  border-radius: var(--radius-full);
}

.reviewer-avatar-circle {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary) 0%, #14b8a6 100%);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 0.95rem;
  flex-shrink: 0;
}

.review-service-pill {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--primary);
  background: var(--primary-light);
  padding: 3px 10px;
  border-radius: var(--radius-full);
  margin-top: 4px;
}

.verified-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 0.75rem;
  color: #16a34a;
  font-weight: 600;
}

.review-stars-val {
  color: var(--accent-gold);
  font-size: 1.1rem;
  letter-spacing: 2px;
}

/* ==========================================================================
   EXPANDABLE SERVICES SECTION
   ========================================================================== */

.services-expandable-wrap {
  display: none;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 24px;
  margin-top: 24px;
  animation: fadeIn 0.4s ease;
}

.services-expandable-wrap.open {
  display: grid;
}

.services-toggle-btn-wrap {
  text-align: center;
  margin-top: 36px;
}

.services-toggle-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 28px;
  border-radius: var(--radius-full);
  background: white;
  border: 2px solid var(--primary);
  color: var(--primary);
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  transition: var(--transition);
  box-shadow: var(--shadow-sm);
}

.services-toggle-btn:hover {
  background: var(--primary);
  color: white;
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

/* ==========================================================================
   CLINIC PHOTO GALLERY & VIRTUAL TOUR (16:10 Unified Aspect Ratio)
   ========================================================================== */

.clinic-gallery-section {
  padding: 60px 0;
}

.clinic-gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: 24px;
}

.gallery-card {
  background: white;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  display: flex;
  flex-direction: column;
}

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

.gallery-photo-box {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 10;
  border-radius: var(--radius-md) var(--radius-md) 0 0;
  overflow: hidden;
  background: linear-gradient(135deg, #e6f4f2 0%, #d5ece8 50%, #bce2dc 100%);
  display: flex;
  align-items: center;
  justify-content: center;
}

.gallery-photo-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.gallery-card:hover .gallery-photo-img {
  transform: scale(1.05);
}

.gallery-tag-pill {
  position: absolute;
  top: 14px;
  left: 14px;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(6px);
  color: var(--primary);
  font-size: 0.75rem;
  font-weight: 800;
  padding: 4px 12px;
  border-radius: var(--radius-full);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.gallery-zoom-icon {
  position: absolute;
  bottom: 14px;
  right: 14px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(13, 110, 110, 0.9);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transform: scale(0.8);
  transition: var(--transition);
}

.gallery-card:hover .gallery-zoom-icon {
  opacity: 1;
  transform: scale(1);
}

.gallery-card-body {
  padding: 20px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.gallery-card-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 6px;
}

.gallery-card-desc {
  font-size: 0.85rem;
  color: #64748b;
  line-height: 1.5;
  margin: 0;
}

/* ==========================================================================
   HOMEPAGE PREGNANCY CALCULATOR TEASER BANNER
   ========================================================================== */

.calc-teaser-banner {
  background: linear-gradient(135deg, #0d6e6e 0%, #083344 60%, #0f172a 100%);
  border-radius: var(--radius-lg);
  padding: 40px;
  color: white;
  box-shadow: var(--shadow-lg);
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 36px;
  align-items: center;
  margin-top: 50px;
  position: relative;
  overflow: hidden;
}

.calc-teaser-banner::after {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 350px;
  height: 350px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(20, 184, 166, 0.25) 0%, transparent 70%);
  pointer-events: none;
}

.calc-teaser-title {
  font-size: 1.85rem;
  font-weight: 900;
  color: white;
  margin-bottom: 12px;
  line-height: 1.3;
}

.calc-teaser-desc {
  font-size: 1rem;
  color: #ccfbf1;
  line-height: 1.6;
  margin-bottom: 24px;
}

.calc-teaser-features {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin-bottom: 24px;
}

.calc-teaser-feat-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.875rem;
  color: #e2e8f0;
}

.calc-teaser-card-preview {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--radius-md);
  padding: 24px;
  text-align: center;
}

/* ==========================================================================
   UPGRADED LOCAL HUB MATRIX (HOMEPAGE)
   ========================================================================== */

.local-hub-container {
  background: white;
  border-radius: var(--radius-lg);
  padding: 36px;
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-sm);
}

.local-hub-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 36px;
}

.local-hub-col-title {
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--primary);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.local-metro-chips-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
  gap: 12px;
}

.metro-chip-card {
  background: var(--bg-alt);
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: space-between;
  text-decoration: none;
  color: var(--text-main);
  transition: var(--transition);
}

.metro-chip-card:hover {
  background: white;
  border-color: var(--primary);
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
}

.metro-chip-left {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  font-size: 0.9rem;
}

.metro-chip-time {
  font-size: 0.75rem;
  color: #64748b;
  font-weight: 600;
}

/* ==========================================================================
   SERVICE HERO & GEO LANDING WALKING ROUTE GUIDE (Unified CSS)
   ========================================================================== */

.service-hero-layout {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 40px;
  align-items: center;
  margin-bottom: 60px;
}

.service-feature-card,
.route-directions-card {
  background: white;
  border-radius: var(--radius-lg);
  padding: 32px;
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-md);
}

.service-feature-card h3,
.route-directions-title {
  font-size: 1.2rem;
  color: var(--primary);
  margin-bottom: 14px;
  font-weight: 700;
}

.service-feature-list,
.route-directions-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  font-size: 0.95rem;
  color: #334155;
  list-style: none;
  padding: 0;
  margin: 0;
}

.service-feature-list li,
.route-directions-list li {
  line-height: 1.55;
  word-break: break-word;
}

.form-grid-2col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.review-form-card {
  background: white;
  border-radius: var(--radius-lg);
  padding: 40px;
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-md);
  max-width: 760px;
  margin: 0 auto;
}

.geo-benefits-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
}

.geo-benefit-card {
  background: white;
  padding: 24px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}

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

.geo-benefit-title {
  color: var(--primary);
  margin-bottom: 8px;
  font-size: 1.1rem;
  font-weight: 700;
}

.geo-benefit-desc {
  font-size: 0.9rem;
  color: #64748b;
  line-height: 1.55;
  margin: 0;
}

.district-cluster-section {
  margin-bottom: 50px;
  background: #f8fafc;
  border-radius: var(--radius-lg);
  padding: 32px;
  border: 1px solid var(--border-color);
}

.cluster-nav-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
}

.cluster-nav-item {
  background: white;
  padding: 16px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-color);
  text-decoration: none;
  color: inherit;
  display: block;
  transition: var(--transition);
}

.cluster-nav-item:hover {
  border-color: var(--primary);
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
}

.cluster-nav-item strong {
  color: var(--text-main);
  font-size: 0.95rem;
}

.cluster-nav-item span {
  font-size: 0.8125rem;
  color: #64748b;
}

.geo-catalog-grid,
.licenses-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}

.license-card {
  background: white;
  border-radius: var(--radius-md);
  padding: 28px;
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-sm);
}

.license-card h3 {
  font-size: 1.2rem;
  color: var(--primary);
  margin-bottom: 12px;
}



.walking-route-section {
  background: var(--bg-alt);
  padding: 48px 32px;
  border-radius: var(--radius-lg);
  margin-bottom: 60px;
  border: 1px solid var(--border-color);
}

.walking-route-title {
  font-size: 1.8rem;
  margin-bottom: 24px;
  text-align: center;
  color: var(--text-main);
}

.walking-route-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
  margin-bottom: 30px;
}

.route-step-card {
  background: white;
  padding: 22px 18px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-color);
  border-top: 4px solid var(--primary);
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}

.route-step-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.route-step-title {
  color: var(--primary);
  font-size: 1.05rem;
  font-weight: 700;
  display: block;
  margin-bottom: 6px;
}

.route-step-desc {
  font-size: 0.875rem;
  color: #64748b;
  line-height: 1.55;
  margin: 0;
}

.walking-route-help {
  text-align: center;
  font-size: 0.95rem;
  color: #475569;
  background: white;
  padding: 16px 20px;
  border-radius: var(--radius-md);
  border: 1px dashed var(--border-color);
  max-width: 650px;
  margin: 0 auto;
}

@media print {
  body * {
    visibility: hidden;
  }

  .printable-area,
  .printable-area * {
    visibility: visible;
  }

  .printable-area {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
  }

  .header-main,
  .footer-main,
  .mobile-sticky-cta-bar,
  .modal-backdrop {
    display: none !important;
  }
}

/* ==========================================================================
   Template / Mock Data Markers for Client Review
   ========================================================================== */
.template-tag {
  display: none;
  align-items: center;
  gap: 4px;
  background: #fef2f2;
  color: #dc2626;
  border: 1px dashed #ef4444;
  padding: 2px 8px;
  border-radius: 6px;
  font-size: 0.75rem;
  font-weight: 700;
  margin-left: 6px;
  vertical-align: middle;
  line-height: 1.3;
}

.template-banner {
  background: #fffbeb;
  border: 1px dashed #f59e0b;
  color: #b45309;
  padding: 12px 18px;
  border-radius: 10px;
  font-size: 0.875rem;
  font-weight: 600;
  margin-bottom: 24px;
  display: none;
  align-items: center;
  gap: 10px;
}

/* ==========================================================================
   ANALYSES ECOSYSTEM (ЛАБОРАТОРНЫЕ АНАЛИЗЫ И ЧЕКАПЫ)
   ========================================================================== */

.analyses-teaser-section {
  padding: 40px 0 20px 0;
  background: #ffffff;
}

.analyses-teaser-card {
  background: #ffffff;
  border-radius: 20px;
  border: 1px solid #e2e8f0;
  box-shadow: 0 10px 30px rgba(13, 110, 110, 0.06);
  padding: 32px 36px;
  position: relative;
  overflow: hidden;
}

.analyses-teaser-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--primary) 0%, #06b6d4 50%, #3b82f6 100%);
}

.analyses-teaser-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 24px;
  padding-bottom: 20px;
  border-bottom: 1px solid #f1f5f9;
}

.analyses-teaser-title-wrap {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.analyses-teaser-tag {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--primary);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.analyses-teaser-title {
  font-size: 1.5rem;
  font-weight: 800;
  color: #0f172a;
  margin: 0;
}

.analyses-teaser-sub {
  font-size: 0.9rem;
  color: #64748b;
  margin: 0;
}

.analyses-teaser-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px 20px;
  margin-bottom: 20px;
}

.analysis-teaser-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 18px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  transition: all 0.2s ease;
  gap: 12px;
}

.analysis-teaser-item:hover {
  background: #f0fdfa;
  border-color: #99f6e4;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(13, 110, 110, 0.06);
}

.analysis-teaser-left {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  flex: 1 1 auto;
}

.analysis-teaser-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: #e0f2fe;
  color: #0284c7;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  flex-shrink: 0;
}

.analysis-teaser-meta {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.analysis-teaser-name {
  font-size: 0.95rem;
  font-weight: 700;
  color: #0f172a;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.analysis-teaser-desc {
  font-size: 0.775rem;
  color: #64748b;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.analysis-teaser-right {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.analysis-teaser-price {
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--primary);
  white-space: nowrap;
}

.analysis-teaser-btn {
  padding: 6px 14px;
  font-size: 0.8125rem;
  font-weight: 700;
  border-radius: 8px;
}

/* Expandable hidden items container */
.analyses-expandable-box {
  display: none;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px 20px;
  margin-bottom: 20px;
  padding-top: 4px;
  animation: fadeIn 0.3s ease forwards;
}

.analyses-expandable-box.expanded {
  display: grid;
}

.analyses-teaser-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  padding-top: 18px;
  border-top: 1px solid #f1f5f9;
}

.btn-toggle-expand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #f1f5f9;
  color: #334155;
  border: 1px solid #cbd5e1;
  padding: 10px 20px;
  border-radius: 10px;
  font-size: 0.875rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-toggle-expand:hover {
  background: #e2e8f0;
  color: #0f172a;
}

.btn-toggle-expand .expand-chevron {
  transition: transform 0.3s ease;
  display: inline-block;
}

.btn-toggle-expand.is-expanded .expand-chevron {
  transform: rotate(180deg);
}

/* Category Quick Jump Grid */
.analyses-cat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
  margin-bottom: 40px;
}

.analyses-cat-card {
  background: white;
  border-radius: 16px;
  border: 1px solid #e2e8f0;
  padding: 24px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: all 0.25s ease;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.03);
  text-decoration: none;
  color: inherit;
  position: relative;
  overflow: hidden;
}

.analyses-cat-card:hover {
  transform: translateY(-4px);
  border-color: var(--primary);
  box-shadow: 0 12px 28px rgba(13, 110, 110, 0.12);
}

.analyses-cat-card-icon {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: var(--primary-light);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 14px;
}

.analyses-cat-card-title {
  font-size: 1.15rem;
  font-weight: 800;
  color: #0f172a;
  margin-bottom: 8px;
}

.analyses-cat-card-desc {
  font-size: 0.85rem;
  color: #64748b;
  line-height: 1.5;
  margin-bottom: 16px;
  flex-grow: 1;
}

.analyses-cat-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 12px;
  border-top: 1px solid #f1f5f9;
  font-size: 0.8125rem;
  font-weight: 700;
  color: var(--primary);
}

/* Category Section Groups in Master Catalog */
.analyses-category-section {
  background: white;
  border-radius: 18px;
  border: 1px solid #e2e8f0;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
  margin-bottom: 36px;
  overflow: hidden;
}

.analyses-category-header {
  background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
  padding: 20px 28px;
  border-bottom: 1px solid #e2e8f0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

.analyses-category-title {
  font-size: 1.25rem;
  font-weight: 800;
  color: #0f172a;
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0;
}

.analyses-category-badge {
  font-size: 0.75rem;
  font-weight: 700;
  padding: 4px 10px;
  background: #e0f2fe;
  color: #0284c7;
  border-radius: 20px;
}

.analyses-category-link {
  font-size: 0.8125rem;
  font-weight: 700;
  color: var(--primary);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.analyses-category-link:hover {
  text-decoration: underline;
}

/* Full Analysis Table Row */
.analysis-full-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 28px;
  border-bottom: 1px solid #f1f5f9;
  transition: background-color 0.15s ease;
  gap: 16px;
}

.analysis-full-row:last-child {
  border-bottom: none;
}

.analysis-full-row:hover {
  background: #f8fafc;
}

.analysis-col-num {
  font-size: 0.8125rem;
  font-weight: 700;
  color: #94a3b8;
  width: 32px;
  flex-shrink: 0;
}

.analysis-col-info {
  flex: 1 1 auto;
  min-width: 0;
}

.analysis-col-name {
  font-size: 1rem;
  font-weight: 700;
  color: #0f172a;
  margin-bottom: 3px;
}

.analysis-col-desc {
  font-size: 0.8125rem;
  color: #64748b;
  line-height: 1.45;
}

.analysis-col-price {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--primary);
  white-space: nowrap;
  width: 110px;
  text-align: right;
  flex-shrink: 0;
}

.analysis-col-btn {
  flex-shrink: 0;
}

/* ==========================================================================
   Breadcrumbs Navigation Component (SEO & UX)
   ========================================================================== */
.breadcrumbs {
  padding: 14px 0 10px 0;
  font-size: 0.875rem;
  color: #64748b;
  margin-bottom: 20px;
}

.breadcrumbs-list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  list-style: none;
  margin: 0;
  padding: 0;
  gap: 6px;
}

.breadcrumbs-item {
  display: inline-flex;
  align-items: center;
}

.breadcrumbs-item a {
  color: #64748b;
  text-decoration: none;
  transition: color 0.2s ease;
}

.breadcrumbs-item a:hover {
  color: var(--primary, #0d6e6e);
  text-decoration: underline;
}

.breadcrumbs-sep {
  color: #94a3b8;
  font-size: 0.8125rem;
  user-select: none;
  margin: 0 2px;
}

.breadcrumbs-current {
  color: #1e293b;
  font-weight: 600;
}

@media (max-width: 640px) {
  .breadcrumbs {
    font-size: 0.8125rem;
    padding: 10px 0 6px 0;
    margin-bottom: 14px;
    overflow-x: auto;
    white-space: nowrap;
    -webkit-overflow-scrolling: touch;
  }
  .breadcrumbs-list {
    flex-wrap: nowrap;
  }
  .breadcrumbs-current {
    white-space: nowrap;
  }
}