/* ============================================================
   1. @font-face — Manrope + Playfair Display (local files)
   ============================================================ */

/* Manrope — Cyrillic subset */
@font-face { font-family: 'Manrope'; src: url('../fonts/manrope-300-cyrillic.woff2') format('woff2'); font-weight: 300; font-style: normal; font-display: swap; unicode-range: U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: 'Manrope'; src: url('../fonts/manrope-400-cyrillic.woff2') format('woff2'); font-weight: 400; font-style: normal; font-display: swap; unicode-range: U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: 'Manrope'; src: url('../fonts/manrope-500-cyrillic.woff2') format('woff2'); font-weight: 500; font-style: normal; font-display: swap; unicode-range: U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: 'Manrope'; src: url('../fonts/manrope-600-cyrillic.woff2') format('woff2'); font-weight: 600; font-style: normal; font-display: swap; unicode-range: U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: 'Manrope'; src: url('../fonts/manrope-700-cyrillic.woff2') format('woff2'); font-weight: 700; font-style: normal; font-display: swap; unicode-range: U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: 'Manrope'; src: url('../fonts/manrope-800-cyrillic.woff2') format('woff2'); font-weight: 800; font-style: normal; font-display: swap; unicode-range: U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }

/* Manrope — Latin subset */
@font-face { font-family: 'Manrope'; src: url('../fonts/manrope-300-latin.woff2') format('woff2'); font-weight: 300; font-style: normal; font-display: swap; unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Manrope'; src: url('../fonts/manrope-400-latin.woff2') format('woff2'); font-weight: 400; font-style: normal; font-display: swap; unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Manrope'; src: url('../fonts/manrope-500-latin.woff2') format('woff2'); font-weight: 500; font-style: normal; font-display: swap; unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Manrope'; src: url('../fonts/manrope-600-latin.woff2') format('woff2'); font-weight: 600; font-style: normal; font-display: swap; unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Manrope'; src: url('../fonts/manrope-700-latin.woff2') format('woff2'); font-weight: 700; font-style: normal; font-display: swap; unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Manrope'; src: url('../fonts/manrope-800-latin.woff2') format('woff2'); font-weight: 800; font-style: normal; font-display: swap; unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

/* Playfair Display */
@font-face { font-family: 'Playfair Display'; src: url('../fonts/playfair-500.woff2') format('woff2'); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: 'Playfair Display'; src: url('../fonts/playfair-600.woff2') format('woff2'); font-weight: 600; font-style: normal; font-display: swap; }
@font-face { font-family: 'Playfair Display'; src: url('../fonts/playfair-700.woff2') format('woff2'); font-weight: 700; font-style: normal; font-display: swap; }
@font-face { font-family: 'Playfair Display'; src: url('../fonts/playfair-500italic.woff2') format('woff2'); font-weight: 500; font-style: italic; font-display: swap; }

/* ============================================================
   2. CSS Variables
   ============================================================ */
:root {
  --white: #ffffff;
  --gray-50: #F8FAF9;
  --gray-100: #F0F4F2;
  --gray-200: #E0E8E4;
  --gray-300: #C8D5CE;
  --gray-400: #9BB0A6;
  --gray-500: #6B8A7E;
  --gray-600: #4A6659;
  --gray-700: #2E4438;
  --gray-800: #1E2D25;
  --gray-900: #1A211C;

  /* Primary brand (burgundy, from logo.png) — monochrome palette since S19 (ADR-0014) */
  --accent: #5A0E24;
  --accent-dark: #3E0818;
  --accent-light: #F5E6EA;

  --shadow-sm: 0 1px 3px rgba(0,0,0,.06), 0 1px 2px rgba(0,0,0,.04);
  --shadow-md: 0 4px 6px rgba(0,0,0,.07), 0 2px 4px rgba(0,0,0,.05);
  --shadow-lg: 0 10px 15px rgba(0,0,0,.08), 0 4px 6px rgba(0,0,0,.05);
  --shadow-xl: 0 20px 25px rgba(0,0,0,.10), 0 10px 10px rgba(0,0,0,.04);

  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-full: 9999px;

  --font-display: 'Playfair Display', Georgia, serif;
  --font-body: 'Manrope', system-ui, sans-serif;
}

/* ============================================================
   3. Bootstrap overrides + container
   ============================================================ */
.container-xl { max-width: 1240px; }

/* Prevent sections from scrolling behind the sticky navbar (~80px) */
#services, #doctors, #diagnostics, #reviews, #contacts {
  scroll-margin-top: 80px;
}

/* ============================================================
   4. Base
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; }
body { font-family: var(--font-body); color: var(--gray-800); background: var(--white); line-height: 1.6; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; display: block; }
a { text-decoration: none; color: inherit; transition: color .2s; }
/* Scoped list reset — only for content lists, not Bootstrap components */
.footer-links,
.diagnostics-list,
.navbar-nav { list-style: none; padding: 0; margin: 0; }

/* ============================================================
   5. Typography
   ============================================================ */
.section-label {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 13px; font-weight: 600; letter-spacing: .08em;
  text-transform: uppercase; color: var(--accent);
  margin-bottom: 12px;
}
.section-label::before {
  content: ''; display: block; width: 24px; height: 2px;
  background: var(--accent); border-radius: 2px;
}
.section-title {
  font-family: var(--font-display); font-weight: 700;
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  color: var(--gray-900); line-height: 1.2; margin-bottom: 16px;
}
.section-subtitle {
  font-size: 1.0625rem; color: var(--gray-600);
  max-width: 560px; line-height: 1.7; margin-bottom: 40px;
}

/* ============================================================
   6. Buttons
   ============================================================ */
.btn {
  font-family: var(--font-body); font-weight: 600; font-size: .9375rem;
  padding: 12px 24px; border-radius: var(--radius-full);
  transition: all .2s; display: inline-flex; align-items: center; gap: 8px;
  border: 2px solid transparent; cursor: pointer;
}
.btn.btn-success, .btn-primary {
  background: var(--accent); color: var(--white) !important;
  border-color: var(--accent);
}
.btn.btn-success:hover, .btn-primary:hover {
  background: var(--accent-dark); border-color: var(--accent-dark);
  transform: translateY(-1px); box-shadow: var(--shadow-md);
  color: var(--white) !important;
}
.btn.btn-outline-success, .btn-outline {
  background: transparent; color: var(--accent) !important;
  border-color: var(--accent);
}
.btn.btn-outline-success:hover, .btn-outline:hover {
  background: var(--accent); color: var(--white) !important;
  transform: translateY(-1px);
}
.btn.btn-light, .btn-white {
  background: var(--white); color: var(--gray-800) !important;
  border-color: var(--white);
}
.btn.btn-light:hover, .btn-white:hover {
  background: var(--gray-50); transform: translateY(-1px);
}
.btn-whatsapp {
  background: #25D366; color: var(--white) !important;
  border-color: #25D366;
}
.btn-whatsapp:hover {
  background: #1da851; border-color: #1da851; color: var(--white) !important;
  transform: translateY(-1px);
}
.btn i, .btn .bi { font-size: 1.1em; }

/* Brand badge — категорийные пилюли (заменяет BS .bg-success-subtle .text-success) */
.badge-brand {
  background: var(--accent-light); color: var(--accent) !important;
  font-weight: 600; transition: background .2s, color .2s;
}
.badge-brand:hover { background: var(--accent); color: var(--white) !important; }

/* ============================================================
   7. Topbar
   ============================================================ */
.topbar {
  background: var(--gray-800); color: var(--gray-400);
  font-size: .8125rem; padding: 8px 0;
}
.topbar a { color: var(--gray-400); transition: color .2s; }
.topbar a:hover { color: var(--white); }
.topbar .bi { font-size: .9rem; color: var(--accent-light); margin-right: 4px; }

/* ============================================================
   8. Navbar
   ============================================================ */
.navbar {
  background: rgba(255,255,255,.92) !important;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(0,0,0,.06);
  padding: 12px 0;
  transition: box-shadow .3s;
}
.navbar.scrolled { box-shadow: var(--shadow-lg); }
.navbar-brand { display: flex; align-items: center; text-decoration: none; }
.navbar-logo { height: 56px; width: auto; }
.navbar-brand .brand-name {
  font-family: var(--font-display); font-size: 1.375rem;
  font-weight: 700; color: var(--gray-900); line-height: 1;
}
.navbar-brand .brand-sub {
  font-size: .6875rem; font-weight: 500; color: var(--gray-500);
  text-transform: uppercase; letter-spacing: .05em;
}
.navbar-nav .nav-link {
  font-size: .9375rem; font-weight: 500; color: var(--gray-700) !important;
  padding: 8px 14px; border-radius: var(--radius-sm);
  transition: color .2s, background .2s;
}
.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active { color: var(--accent) !important; background: var(--accent-light); }
.navbar-actions { display: flex; align-items: center; gap: 12px; }
.navbar-actions .nav-phone {
  font-weight: 600; color: var(--gray-800); font-size: .9375rem;
}
.navbar-actions .nav-phone:hover { color: var(--accent); }
.navbar-toggler { border: none; padding: 4px; }
.navbar-toggler:focus { box-shadow: none; }
.navbar .btn { padding: 8px 18px; font-size: .875rem; }

/* ============================================================
   9. Hero
   ============================================================ */
.hero {
  min-height: 100vh; display: flex; align-items: center;
  padding: 100px 0 60px;
  background: linear-gradient(135deg, var(--accent-light) 0%, var(--white) 60%);
  position: relative; overflow: hidden;
}
.hero::before {
  content: ''; position: absolute; top: -200px; right: -100px;
  width: 600px; height: 600px; border-radius: 50%;
  background: radial-gradient(circle, rgba(90,14,36,.08), transparent 70%);
  pointer-events: none;
}
.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--accent-light); border: 1px solid rgba(90,14,36,.18);
  padding: 6px 14px; border-radius: var(--radius-full);
  font-size: .8125rem; font-weight: 600; color: var(--accent);
  margin-bottom: 24px;
}
.hero-badge .dot {
  width: 8px; height: 8px; background: var(--accent);
  border-radius: 50%; animation: pulse 2s infinite;
}
.hero-title {
  font-family: var(--font-display); font-size: clamp(2.25rem, 5vw, 3.75rem);
  font-weight: 700; line-height: 1.15; color: var(--gray-900);
  margin-bottom: 20px;
}
.hero-title em { font-style: italic; color: var(--accent); }
.hero-desc { font-size: 1.125rem; color: var(--gray-600); line-height: 1.7; margin-bottom: 32px; max-width: 520px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 48px; }
.hero-stats { display: flex; gap: 32px; flex-wrap: wrap; }
.hero-stat-value {
  display: block; font-size: 1.75rem; font-weight: 800; color: var(--gray-900);
}
.hero-stat-label { font-size: .8125rem; color: var(--gray-500); font-weight: 500; }
.hero-image-wrap {
  position: relative;
  animation: heroImageIn .8s ease both .2s;
}
.hero-image-wrap img {
  width: 100%; height: 540px; object-fit: cover;
  border-radius: var(--radius-xl); box-shadow: var(--shadow-xl);
}
.hero-card {
  position: absolute; background: var(--white);
  border-radius: var(--radius-md); padding: 12px 16px;
  box-shadow: var(--shadow-lg); display: flex; align-items: center; gap: 10px;
  font-size: .875rem; font-weight: 600; color: var(--gray-800);
  animation: float 3s ease-in-out infinite;
}
.hero-card.card-1 { bottom: 32px; left: -20px; animation-delay: 0s; }
.hero-card.card-2 { top: 40px; right: -20px; animation-delay: 1.5s; }
.hero-card .card-icon {
  width: 36px; height: 36px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.1rem;
}
.hero-card .card-icon.green { background: var(--accent-light); color: var(--accent); }
.hero-card .card-icon.blue { background: #EFF6FF; color: #3B82F6; }
.hero-content-wrap { animation: heroFadeIn .8s ease both; }

/* ============================================================
   10. Services
   ============================================================ */
#services { padding: 100px 0; background: var(--white); }
.service-card {
  background: var(--white); border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg); padding: 32px;
  transition: all .3s; position: relative; overflow: hidden;
  height: 100%;
}
.service-card::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0;
  height: 3px; background: var(--accent);
  transform: scaleX(0); transform-origin: left; transition: transform .3s;
}
.service-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: var(--accent-light); }
.service-card:hover::before { transform: scaleX(1); }
.service-card-thumb {
  display: block; aspect-ratio: 4 / 3; overflow: hidden;
  border-radius: var(--radius-md); background: var(--gray-100);
}
.service-card-thumb img {
  width: 100%; height: 100%; object-fit: cover; display: block;
  transition: transform .4s;
}
.service-card:hover .service-card-thumb img { transform: scale(1.04); }
.service-hero-thumb {
  width: 100%; max-width: 360px; aspect-ratio: 4 / 3;
  overflow: hidden; border-radius: var(--radius-md); background: var(--gray-100);
}
.service-hero-thumb img {
  width: 100%; height: 100%; object-fit: cover; display: block;
}
.service-icon {
  width: 56px; height: 56px; border-radius: var(--radius-md);
  background: var(--accent-light); display: flex; align-items: center;
  justify-content: center; font-size: 1.5rem; color: var(--accent);
  margin-bottom: 20px; transition: all .3s;
}
.service-card:hover .service-icon { background: var(--accent); color: var(--white); }
.service-card h3 { font-size: 1.125rem; font-weight: 700; color: var(--gray-900); margin-bottom: 10px; }
.service-card p { font-size: .9375rem; color: var(--gray-600); line-height: 1.6; margin-bottom: 20px; }
.service-link {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: .875rem; font-weight: 600; color: var(--accent);
  transition: gap .2s;
}
.service-link:hover { gap: 10px; color: var(--accent-dark); }

/* ============================================================
   11. Doctors
   ============================================================ */
#doctors { padding: 100px 0; background: var(--gray-50); }
.doctor-card {
  background: var(--white); border-radius: var(--radius-lg);
  overflow: hidden; box-shadow: var(--shadow-sm);
  transition: all .3s; height: 100%;
  display: flex; flex-direction: column;
}
.doctor-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.doctor-photo {
  position: relative; overflow: hidden; height: 260px;
  flex-shrink: 0;
}
.doctor-photo img {
  width: 100%; height: 100%; object-fit: cover; object-position: center top;
  transition: transform .4s;
}
.doctor-card:hover .doctor-photo img { transform: scale(1.04); }
.doctor-badge {
  position: absolute; bottom: 12px; left: 12px;
  background: var(--accent); color: var(--white);
  font-size: .75rem; font-weight: 600; padding: 4px 10px;
  border-radius: var(--radius-full);
}
.doctor-info {
  padding: 20px;
  display: flex; flex-direction: column;
  flex: 1 1 auto;
}
/* min-height на h3 — ровный старт блоков ниже при одно- и двухстрочных ФИО */
.doctor-info h3 { font-size: 1rem; font-weight: 700; color: var(--gray-900); margin-bottom: 4px; min-height: 2.6em; }
.doctor-meta {
  display: flex; justify-content: space-between; align-items: center;
  font-size: .8125rem; color: var(--gray-500); margin-bottom: 12px;
}
.doctor-rating { display: flex; align-items: center; gap: 4px; color: #F59E0B; font-weight: 600; }
.doctor-rating .bi { font-size: .875rem; }
/* margin-top: auto прижимает кнопку к низу карточки при любой высоте контента */
.doctor-info .btn { width: 100%; justify-content: center; font-size: .875rem; padding: 10px; margin-top: auto; }

/* ============================================================
   12. Diagnostics
   ============================================================ */
#diagnostics { padding: 100px 0; background: var(--white); }
.diagnostics-list { list-style: none; margin: 0 0 32px; padding: 0; }
.diagnostics-list li {
  display: flex; align-items: flex-start; gap: 14px;
  padding: 18px 0; border-bottom: 1px solid var(--gray-100);
}
.diagnostics-list li:last-child { border-bottom: none; }
.diag-icon {
  width: 44px; height: 44px; border-radius: var(--radius-sm);
  background: var(--accent-light); display: flex; align-items: center;
  justify-content: center; font-size: 1.2rem; color: var(--accent);
  flex-shrink: 0;
}
.diag-text strong { display: block; font-size: 1rem; font-weight: 600; color: var(--gray-900); margin-bottom: 2px; }
.diag-text span { font-size: .875rem; color: var(--gray-500); }
.diagnostics-image-wrap {
  position: relative; border-radius: var(--radius-xl); overflow: hidden;
  box-shadow: var(--shadow-xl);
}
.diagnostics-image-wrap img { width: 100%; height: 480px; object-fit: cover; }
.diagnostics-stat {
  position: absolute; bottom: 24px; right: 24px;
  background: var(--white); border-radius: var(--radius-md);
  padding: 14px 18px; box-shadow: var(--shadow-lg);
  text-align: center;
}
.diagnostics-stat .stat-num { font-size: 1.5rem; font-weight: 800; color: var(--accent); display: block; }
.diagnostics-stat .stat-label { font-size: .75rem; color: var(--gray-500); font-weight: 500; }

/* ============================================================
   13. Advantages
   ============================================================ */
.advantages { padding: 100px 0; background: var(--gray-800); }
.advantages .section-title { color: var(--white); }
.advantages .section-label { color: var(--accent-light); }
.advantages .section-label::before { background: var(--accent-light); }
.advantage-card {
  background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.1);
  border-radius: var(--radius-lg); padding: 32px;
  transition: all .3s; text-align: center; height: 100%;
}
.advantage-card:hover { background: rgba(255,255,255,.1); transform: translateY(-4px); }
.advantage-icon {
  width: 64px; height: 64px; border-radius: var(--radius-md);
  background: rgba(245,230,234,.14); display: flex; align-items: center;
  justify-content: center; font-size: 1.75rem; color: var(--accent-light);
  margin: 0 auto 20px;
}
.advantage-card h3 { font-size: 1.0625rem; font-weight: 700; color: var(--white); margin-bottom: 10px; }
.advantage-card p { font-size: .9375rem; color: var(--gray-400); line-height: 1.6; margin: 0; }

/* ============================================================
   14. Reviews
   ============================================================ */
#reviews { padding: 100px 0; background: var(--gray-50); }
.review-card {
  background: var(--white); border-radius: var(--radius-lg);
  padding: 28px; box-shadow: var(--shadow-sm); transition: all .3s;
  height: 100%;
}
.review-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.review-stars { display: flex; gap: 4px; color: #F59E0B; margin-bottom: 14px; }
.review-stars .bi { font-size: 1rem; }
.review-text { font-size: .9375rem; color: var(--gray-700); line-height: 1.7; margin-bottom: 20px; }
.review-author { display: flex; align-items: center; gap: 12px; }
.review-avatar {
  width: 44px; height: 44px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 1rem; font-weight: 700; color: var(--white); flex-shrink: 0;
}
.review-avatar.av-1 { background: var(--accent); }
.review-avatar.av-2 { background: #8B5CF6; }
.review-avatar.av-3 { background: #3B82F6; }
.review-author-name { font-size: .9375rem; font-weight: 600; color: var(--gray-900); }
.review-date { font-size: .8125rem; color: var(--gray-500); }

/* ============================================================
   15. CTA
   ============================================================ */
.cta-section { padding: 60px 0; background: var(--white); }
.cta-inner {
  background: linear-gradient(135deg, #5A0E24, #3E0818);
  border-radius: var(--radius-xl); padding: 64px 48px;
  text-align: center; position: relative; overflow: hidden;
}
.cta-inner::before {
  content: ''; position: absolute; top: -80px; right: -80px;
  width: 300px; height: 300px; border-radius: 50%;
  background: rgba(255,255,255,.08); pointer-events: none;
}
.cta-inner .section-label { color: rgba(255,255,255,.8); }
.cta-inner .section-label::before { background: rgba(255,255,255,.6); }
.cta-title {
  font-family: var(--font-display); font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 700; color: var(--white); margin-bottom: 12px;
}
.cta-subtitle { font-size: 1.0625rem; color: rgba(255,255,255,.85); margin-bottom: 32px; }
.cta-actions { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }

/* ============================================================
   16. Contacts
   ============================================================ */
#contacts { padding: 100px 0; background: var(--white); }
.contact-card {
  background: var(--gray-50); border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg); padding: 24px; margin-bottom: 16px;
  display: flex; align-items: flex-start; gap: 16px;
  transition: all .3s;
}
.contact-card:last-child { margin-bottom: 0; }
.contact-card:hover { border-color: var(--accent-light); box-shadow: var(--shadow-md); }
.contact-card-icon {
  width: 48px; height: 48px; border-radius: var(--radius-md);
  background: var(--accent-light); display: flex; align-items: center;
  justify-content: center; font-size: 1.2rem; color: var(--accent); flex-shrink: 0;
}
.contact-card-body strong {
  display: block; font-size: .8125rem; font-weight: 600; color: var(--gray-500);
  text-transform: uppercase; letter-spacing: .05em; margin-bottom: 4px;
}
.contact-card-body p, .contact-card-body a {
  font-size: 1rem; font-weight: 600; color: var(--gray-900);
  line-height: 1.5; margin: 0;
}
.contact-card-body a:hover { color: var(--accent); }
/* Яндекс.Карта контактов (ADR-0013).
 * Яндекс-скрипт инжектит <iframe width="100%" height="500"> — HTML-атрибут height
 * не даёт карте занять всю высоту соседней колонки с контактами. Перекрываем через
 * CSS: height: 100% на подложке + iframe. min-height — safety-net на случай, когда
 * карта выше соседей или вне stretch-контекста (mobile layout). */
.medlife-map {
  width: 100%;
  height: 100%;
  min-height: 500px;
  background: var(--gray-100);
  position: relative;
}
.medlife-map > ymaps,
.medlife-map iframe {
  width: 100% !important;
  height: 100% !important;
  min-height: 500px;
  border: 0;
  display: block;
}

/* ============================================================
   17. Footer
   ============================================================ */
.footer { background: var(--gray-900); padding: 80px 0 0; color: var(--gray-400); }
.footer-brand { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; }
.footer-logo { height: 44px; width: auto; filter: brightness(0) invert(1); opacity: .92; }
.footer .brand-sub { color: var(--gray-500); font-size: .75rem; text-transform: uppercase; letter-spacing: .05em; }
.footer-desc { font-size: .9375rem; color: var(--gray-500); line-height: 1.7; margin-bottom: 20px; }
.footer-social { display: flex; gap: 10px; }
.footer-social a {
  width: 38px; height: 38px; border-radius: 50%;
  background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.1);
  display: flex; align-items: center; justify-content: center;
  color: var(--gray-400); font-size: 1rem; transition: all .2s;
}
.footer-social a:hover { background: var(--accent); border-color: var(--accent); color: var(--white); }
.footer-heading { font-size: .8125rem; font-weight: 700; color: var(--white); text-transform: uppercase; letter-spacing: .08em; margin-bottom: 20px; }
.footer-links li { margin-bottom: 10px; }
.footer-links a { font-size: .9375rem; color: var(--gray-400); transition: color .2s; }
.footer-links a:hover { color: var(--white); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.08);
  padding: 20px 0; margin-top: 60px;
  display: flex; justify-content: space-between; align-items: center;
  flex-wrap: wrap; gap: 8px;
}
.footer-bottom p { font-size: .875rem; color: var(--gray-500); margin: 0; }

/* ============================================================
   18. WhatsApp floating button
   ============================================================ */
.whatsapp-float {
  position: fixed; bottom: 28px; right: 28px; z-index: 999;
  width: 56px; height: 56px; border-radius: 50%;
  background: #25D366; display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 20px rgba(37,211,102,.4);
  transition: transform .2s, box-shadow .2s;
  animation: whatsappPulse 2s infinite;
}
.whatsapp-float:hover { transform: scale(1.1); box-shadow: 0 6px 28px rgba(37,211,102,.5); }
.whatsapp-float .bi { font-size: 1.5rem; color: var(--white); }

/* ============================================================
   19. Scroll animations
   ============================================================ */
.fade-up { opacity: 0; transform: translateY(30px); transition: opacity .6s ease, transform .6s ease; }
.fade-up.visible { opacity: 1; transform: translateY(0); }

/* ============================================================
   20. @keyframes
   ============================================================ */
@keyframes heroFadeIn { from { opacity: 0; transform: translateY(30px); } to { opacity: 1; transform: translateY(0); } }
@keyframes heroImageIn { from { opacity: 0; transform: translateX(30px); } to { opacity: 1; transform: translateX(0); } }
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: .4; } }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }
@keyframes whatsappPulse {
  0%, 100% { box-shadow: 0 4px 20px rgba(37,211,102,.4); }
  50% { box-shadow: 0 4px 30px rgba(37,211,102,.6), 0 0 0 8px rgba(37,211,102,.1); }
}

/* ============================================================
   21. Responsive
   ============================================================ */
@media (max-width: 991.98px) {
  .hero { padding: 90px 0 60px; }
  .hero-image-wrap { margin-top: 48px; }
  .hero-image-wrap img { height: 380px; }
  .section-subtitle { max-width: 100%; }
  .diagnostics-image-wrap img { height: 360px; }
  .hero-card.card-1 { left: 0; }
  .hero-card.card-2 { right: 0; }
}

@media (max-width: 767.98px) {
  #services,
  #doctors,
  #diagnostics,
  #reviews,
  #contacts,
  .advantages { padding: 64px 0; }
  .footer { padding: 56px 0 0; }
  .footer-bottom { margin-top: 32px; }
  .doctor-photo { height: 220px; }
  .cta-inner { padding: 48px 32px; }
}

@media (max-width: 575.98px) {
  .hero { padding: 80px 0 48px; }
  .hero-stats { gap: 20px; }
  .hero-stat-value { font-size: 1.375rem; }
  .hero-image-wrap img { height: 260px; }
  .topbar .topbar-address { display: none; }
  .cta-inner { padding: 48px 24px; }
  .footer-bottom { text-align: center; justify-content: center; }
  #services,
  #doctors,
  #diagnostics,
  #reviews,
  #contacts,
  .advantages { padding: 48px 0; }
  .cta-section { padding: 40px 0; }
  .doctor-photo { height: 200px; }
  .diagnostics-image-wrap img { height: 240px; }
  .diagnostics-stat {
    position: static;
    margin-top: 12px;
    display: inline-block;
  }
  .medlife-map,
  .medlife-map > ymaps,
  .medlife-map iframe { min-height: 360px; }
  .whatsapp-float {
    bottom: 16px; right: 16px;
    width: 52px; height: 52px;
  }
  .whatsapp-float .bi { font-size: 1.35rem; }
  .service-card { padding: 24px; }
  .advantage-card { padding: 24px; }
}

/* ============================================================
   22. Pagination (Bootstrap override под акцентный бордовый)
   ============================================================ */
.pagination {
  --bs-pagination-color: var(--accent-dark);
  --bs-pagination-bg: var(--white);
  --bs-pagination-border-color: var(--accent-light);
  --bs-pagination-hover-color: var(--white);
  --bs-pagination-hover-bg: var(--accent);
  --bs-pagination-hover-border-color: var(--accent);
  --bs-pagination-focus-color: var(--accent-dark);
  --bs-pagination-focus-bg: var(--accent-light);
  --bs-pagination-focus-box-shadow: 0 0 0 .2rem rgba(90,14,36,.25);
  --bs-pagination-active-color: var(--white);
  --bs-pagination-active-bg: var(--accent);
  --bs-pagination-active-border-color: var(--accent);
  --bs-pagination-disabled-color: var(--gray-500);
  --bs-pagination-disabled-bg: var(--white);
  --bs-pagination-disabled-border-color: var(--accent-light);
  gap: 6px;
}
.pagination .page-link {
  border-radius: 8px;
  font-weight: 600;
  transition: background-color .2s, color .2s, border-color .2s;
}

/* ============================================================
   23. Single Doctor
   ============================================================ */
.single-doctor .doctor-hero {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  align-items: flex-start;
}
@media (min-width: 576px) {
  .single-doctor .doctor-hero { flex-direction: row; }
}

.single-doctor .doctor-hero-photo {
  flex: 0 0 240px;
  width: 240px;
  max-width: 100%;
}
.single-doctor .doctor-hero-photo img {
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  object-position: center top;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
}
@media (max-width: 575.98px) {
  .single-doctor .doctor-hero-photo { width: 180px; align-self: center; }
}

.single-doctor .doctor-hero-info { flex: 1 1 auto; min-width: 0; }
.single-doctor .doctor-hero-info h1 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.5rem, 3vw, 2rem);
  line-height: 1.25;
}

.single-doctor .doctor-section h2 {
  font-family: var(--font-display);
  font-weight: 700;
}

.single-doctor .doctor-aside {
  border: 1px solid rgba(0,0,0,.08);
  border-radius: var(--radius-lg);
}
@media (min-width: 992px) {
  .single-doctor .doctor-aside.sticky-lg-top { top: 1.5rem; }
}
.single-doctor .doctor-aside .card-body { padding: 1.5rem; }
.single-doctor .doctor-quote {
  padding: .85rem 1rem;
  border-left: 3px solid var(--accent);
  background: var(--accent-light);
  border-radius: var(--radius-sm);
  margin: 0 0 1rem;
}
.single-doctor .doctor-aside-contacts li { margin-bottom: .5rem; line-height: 1.45; }
.single-doctor .doctor-aside-contacts li:last-child { margin-bottom: 0; }
.single-doctor .doctor-aside-contacts .bi { color: var(--accent); margin-right: .35rem; }
.single-doctor .doctor-aside-contacts a { color: var(--gray-800); }
.single-doctor .doctor-aside-contacts a:hover { color: var(--accent); }
