/* ====== Здоровая семья — стиль в духе Спектр-Диагностика ====== */
:root {
  --blue: #861f32;
  --blue-dark: #5f1625;
  --blue-light: #f4e8eb;
  --accent: #8f263b;
  --green: #6b7280;
  --text: #303238;
  --muted: #6b7078;
  --bg: #f5f5f5;
  --white: #ffffff;
  --border: #dedfe2;
  --radius: 8px;
  --shadow: 0 8px 24px rgba(48, 50, 56, 0.08);
  --shadow-hover: 0 16px 34px rgba(95, 22, 37, 0.14);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { overflow-x: hidden; }

body {
  font-family: 'Segoe UI', 'Roboto', 'Arial', sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.55;
  overflow-x: hidden;
  -webkit-text-size-adjust: 100%;
}

img { max-width: 100%; }
a, button, input, select, textarea { -webkit-tap-highlight-color: transparent; }

a { color: var(--blue); text-decoration: none; }
a:hover { color: var(--blue-dark); }

.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }

/* ---------- Шапка ---------- */
.topbar {
  background: #34363b;
  color: #fff;
  font-size: 14px;
}
.topbar .container {
  display: flex; justify-content: space-between; align-items: center;
  padding-top: 8px; padding-bottom: 8px; flex-wrap: wrap; gap: 8px;
}
.topbar a { color: #fff; }
.topbar .address { opacity: 0.9; }

.header {
  background: var(--white);
  border-bottom: 1px solid var(--border);
  position: sticky; top: 0; z-index: 100;
  box-shadow: 0 3px 16px rgba(48, 50, 56, 0.06);
}
.header .container {
  display: flex; align-items: center; justify-content: space-between;
  padding-top: 16px; padding-bottom: 16px; gap: 24px; flex-wrap: wrap;
}
.logo { display: flex; align-items: center; gap: 12px; }
.logo-badge {
  width: 46px; height: 46px; border-radius: 8px;
  background: var(--blue) url('../img/clinic-logo.webp') center / 100% 100% no-repeat;
  color: transparent; display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 0; overflow: hidden;
}
.logo-text { font-size: 20px; font-weight: 700; color: var(--blue-dark); line-height: 1.15; }
.logo-text small { display: block; font-size: 12px; color: var(--muted); font-weight: 400; }

.header-phones { text-align: right; }
.header-phones a {
  display: block; font-size: 17px; font-weight: 600; color: var(--text);
}
.header-phones .worktime { font-size: 12px; color: var(--muted); }

.btn {
  display: inline-block;
  background: var(--accent); color: #fff;
  padding: 12px 22px; border-radius: 6px;
  font-weight: 600; font-size: 15px; border: 0; cursor: pointer;
  transition: background .2s, transform .2s, box-shadow .2s;
  box-shadow: 0 4px 12px rgba(95, 22, 37, 0.16);
}
.btn:hover { background: #6f1b2b; color: #fff; box-shadow: 0 8px 18px rgba(95, 22, 37, 0.22); transform: translateY(-1px); }
.btn:active { transform: scale(0.98); }
.btn-outline {
  background: transparent; color: var(--blue);
  border: 2px solid var(--blue);
  box-shadow: none;
}
.btn-outline:hover { background: var(--blue); color: #fff; }

/* ---------- Навигация ---------- */
.nav { background: var(--blue); border-top: 1px solid rgba(255,255,255,.12); }
.nav .container { padding: 0 20px; }
.nav ul { list-style: none; display: flex; flex-wrap: wrap; }
.nav a {
  display: block; padding: 14px 20px; color: #fff; font-size: 14px; font-weight: 600;
  transition: background .2s;
}
.nav a:hover, .nav a.active { background: var(--blue-dark); color: #fff; }
.nav-toggle { display: none; }

/* ---------- Hero ---------- */
.hero {
  background: var(--blue-dark);
  color: #fff;
  padding: 30px 0;
}
.hero .container { display: flex; align-items: center; gap: 40px; flex-wrap: wrap; }
.hero-text { flex: 1 1 480px; }
.hero-entrance {
  flex: 0 1 430px;
  min-width: 300px;
  margin: 0;
  text-align: center;
}
.hero-entrance-frame {
  position: relative;
  padding: 7px;
  border: 1px solid rgba(255,255,255,.82);
  border-radius: 10px;
  background: rgba(255,255,255,.14);
  box-shadow: 0 14px 30px rgba(38, 7, 14, .28), 0 0 0 4px rgba(255,255,255,.08);
}
.hero-entrance-frame::after {
  content: '';
  position: absolute;
  inset: 3px;
  border: 1px solid rgba(255,255,255,.28);
  border-radius: 6px;
  pointer-events: none;
}
.hero-entrance img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: contain;
  border-radius: 5px;
  background: #fff;
}
.hero-entrance figcaption {
  margin-top: 10px;
  color: rgba(255,255,255,.78);
  font-size: 12px;
  letter-spacing: .02em;
}
.hero-brand { display: flex; align-items: center; gap: 14px; margin-bottom: 18px; color: rgba(255,255,255,.9); font-size: 14px; font-weight: 600; }
.hero-brand img { width: 54px; height: 54px; border-radius: 50%; object-fit: cover; border: 3px solid rgba(255,255,255,.82); box-shadow: 0 8px 20px rgba(0,0,0,.2); }
.hero h1 { font-size: 36px; line-height: 1.15; letter-spacing: 0; margin-bottom: 12px; max-width: 700px; }
.hero p { font-size: 16px; opacity: 0.95; margin-bottom: 18px; max-width: 560px; }
.hero-form {
  flex: 0 1 380px;
  background: var(--white); color: var(--text);
  border-radius: 8px; padding: 32px;
  box-shadow: 0 18px 44px rgba(48, 50, 56, 0.18);
  position: relative; overflow: hidden;
}
.hero-form::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0;
  height: 5px;
  background: var(--accent);
}
@keyframes gradientShift {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}
.hero-form h3 {
  margin-bottom: 8px; font-size: 22px;
  background: linear-gradient(135deg, var(--blue-dark), var(--blue));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero-form > p { font-size: 14px; color: var(--muted); margin-bottom: 24px; }
.form-group { margin-bottom: 16px; }
.form-group label {
  display: block; font-size: 13px; font-weight: 600;
  color: var(--text); margin-bottom: 6px;
}
.form-group input, .form-group select, .form-group textarea {
  width: 100%; padding: 14px 16px;
  border: 2px solid var(--border); border-radius: 12px;
  font-size: 15px; font-family: inherit;
  transition: all .25s ease;
  background: var(--bg);
}
.form-group input::placeholder, .form-group textarea::placeholder {
  color: #9a9da3;
}
.form-group input:focus, .form-group select:focus, .form-group textarea:focus {
  outline: none;
  border-color: var(--blue);
  box-shadow: 0 0 0 4px rgba(134, 31, 50, 0.12);
  background: var(--white);
}
.form-group select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%236b7c8d' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  padding-right: 40px;
}
.hero-form .btn {
  width: 100%; padding: 16px 24px;
  font-size: 16px; font-weight: 600;
  border: none; border-radius: 12px;
  background: linear-gradient(135deg, var(--accent), #a64052);
  color: #fff; cursor: pointer;
  transition: all .3s ease;
  box-shadow: 0 4px 16px rgba(143, 38, 59, 0.35);
  position: relative; overflow: hidden;
}
.hero-form .btn::before {
  content: ''; position: absolute; top: 0; left: -100%;
  width: 100%; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
  transition: left .5s ease;
}
.hero-form .btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(143, 38, 59, 0.45);
}
.hero-form .btn:hover::before { left: 100%; }
.hero-form .btn:active { transform: translateY(0); }
.form-note {
  font-size: 12px; color: var(--muted); margin-top: 14px;
  text-align: center; line-height: 1.5;
}
.form-note a { color: var(--blue); text-decoration: underline; }

/* ====== Современная форма в контактах ====== */
.appt-form-modern {
  background: var(--white);
  border-radius: 20px;
  padding: 32px;
  box-shadow: 0 20px 60px rgba(95, 22, 37, 0.12), 0 4px 20px rgba(0,0,0,0.06);
  position: relative; overflow: hidden;
}
.appt-form-modern::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0;
  height: 6px;
  background: linear-gradient(90deg, var(--blue), var(--green), var(--blue));
  background-size: 200% 100%;
  animation: gradientShift 3s ease infinite;
}
.appt-form-modern h3 {
  font-size: 22px; margin-bottom: 8px;
  background: linear-gradient(135deg, var(--blue-dark), var(--blue));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
}
.appt-form-modern > p { font-size: 14px; color: var(--muted); margin-bottom: 24px; }
.appt-form-modern .form-group { margin-bottom: 16px; }
.appt-form-modern .form-group label {
  display: block; font-size: 13px; font-weight: 600;
  color: var(--text); margin-bottom: 6px;
}
.appt-form-modern .form-group input,
.appt-form-modern .form-group select,
.appt-form-modern .form-group textarea {
  width: 100%; padding: 14px 16px;
  border: 2px solid var(--border); border-radius: 12px;
  font-size: 15px; font-family: inherit;
  transition: all .25s ease; background: var(--bg);
}
.appt-form-modern .form-group input::placeholder,
.appt-form-modern .form-group textarea::placeholder { color: #9a9da3; }
.appt-form-modern .form-group input:focus,
.appt-form-modern .form-group select:focus,
.appt-form-modern .form-group textarea:focus {
  outline: none; border-color: var(--blue);
  box-shadow: 0 0 0 4px rgba(134, 31, 50, 0.12);
  background: var(--white);
}
.appt-form-modern .form-group select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%236b7c8d' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 16px center;
  padding-right: 40px;
}
.appt-form-modern .btn {
  width: 100%; padding: 16px 24px;
  font-size: 16px; font-weight: 600;
  border: none; border-radius: 12px;
  background: linear-gradient(135deg, var(--accent), #a64052);
  color: #fff; cursor: pointer;
  transition: all .3s ease;
  box-shadow: 0 4px 16px rgba(143, 38, 59, 0.35);
  position: relative; overflow: hidden;
}
.appt-form-modern .btn::before {
  content: ''; position: absolute; top: 0; left: -100%;
  width: 100%; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
  transition: left .5s ease;
}
.appt-form-modern .btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(143, 38, 59, 0.45);
}
.appt-form-modern .btn:hover::before { left: 100%; }
.appt-form-modern .form-note {
  font-size: 12px; color: var(--muted); margin-top: 14px;
  text-align: center; line-height: 1.5;
}
.appt-form-modern .form-note a { color: var(--blue); text-decoration: underline; }

/* ---------- Секции ---------- */
.section { padding: 72px 0; }
.section.white { background: var(--white); }
.section-title { text-align: center; margin-bottom: 12px; font-size: 32px; line-height: 1.2; color: var(--blue-dark); }
.section-subtitle { text-align: center; color: var(--muted); max-width: 640px; margin: 0 auto 40px; font-size: 16px; }

/* ---------- Галерея ---------- */
.section-heading-row {
  display: flex; align-items: end; justify-content: space-between; gap: 32px;
  margin-bottom: 32px;
}
.section-heading-row .section-kicker { margin-bottom: 8px; }
.gallery-title { text-align: left; margin-bottom: 0; }
.gallery-intro { max-width: 430px; color: var(--muted); font-size: 15px; margin-bottom: 2px; }
.gallery-grid {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
  grid-auto-rows: 250px; gap: 18px;
}
.gallery-item {
  position: relative; display: block; min-width: 0; width: 100%; height: 100%;
  padding: 0; border: 1px solid var(--border); border-radius: var(--radius);
  overflow: hidden; background: #ececee; cursor: zoom-in; box-shadow: var(--shadow);
}
.gallery-item-featured { grid-column: span 2; grid-row: span 2; }
.gallery-item img {
  display: block; width: 100%; height: 100%; object-fit: cover; object-position: center;
  transition: transform .35s ease, filter .35s ease;
}
.gallery-item::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 48%, rgba(48, 50, 56, .72) 100%);
  pointer-events: none;
}
.gallery-item:hover img { transform: scale(1.04); filter: saturate(1.05); }
.gallery-caption {
  position: absolute; z-index: 1; left: 18px; right: 18px; bottom: 16px;
  color: #fff; text-align: left; font-size: 15px; font-weight: 600;
}
.gallery-lightbox {
  display: none; position: fixed; z-index: 300; inset: 0; padding: 54px 40px 34px;
  align-items: center; justify-content: center; background: rgba(31, 32, 35, .94);
}
.gallery-lightbox.open { display: flex; }
.gallery-lightbox img { max-width: min(1100px, 94vw); max-height: 88vh; width: auto; height: auto; object-fit: contain; box-shadow: 0 18px 60px rgba(0,0,0,.35); }
.gallery-lightbox-close {
  position: absolute; top: 14px; right: 20px; width: 42px; height: 42px; border: 0;
  border-radius: 50%; background: rgba(255,255,255,.12); color: #fff; font-size: 30px;
  line-height: 1; cursor: pointer;
}
.gallery-lightbox-close:hover { background: var(--accent); }

.about-section { background: var(--white); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.about-grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(300px, .85fr); gap: 64px; align-items: center; }
.about-copy { max-width: 650px; }
.section-kicker { display: inline-block; margin-bottom: 12px; color: var(--accent); font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.about-title { text-align: left; margin-bottom: 20px; }
.about-copy p { margin-bottom: 16px; color: var(--muted); font-size: 16px; }
.about-copy .btn { margin-top: 10px; }
.about-list { border-left: 3px solid var(--accent); padding-left: 28px; }
.about-item { padding: 18px 0; border-bottom: 1px solid var(--border); }
.about-item:last-child { border-bottom: 0; }
.about-item strong { display: block; margin-bottom: 4px; color: var(--blue-dark); font-size: 17px; }
.about-item span { display: block; color: var(--muted); font-size: 14px; }

/* ---------- Карточки услуг ---------- */
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 24px; }
.card {
  background: var(--white); border-radius: var(--radius);
  padding: 26px 24px; box-shadow: var(--shadow);
  transition: transform .2s, box-shadow .2s;
  display: flex; flex-direction: column;
  text-align: center;
  border: 1px solid var(--border); border-top: 4px solid var(--blue);
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-hover); }
.card-icon {
  width: 52px; height: 52px; border-radius: 12px;
  background: var(--blue-light); color: var(--blue);
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 16px;
}
.card-icon svg {
  width: 28px; height: 28px; fill: none; stroke: var(--blue);
  stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round;
}
/* Современный набор графических иконок направлений */
.cards .card-icon { width: 72px; height: 72px; border-radius: 50%; background: #fbf2f4; border: 1px solid #ead4d9; position: relative; }
.cards .card-icon svg { display: none; }
.cards .card-icon::before { content: ''; display: block; width: 52px; height: 52px; background: center / contain no-repeat; }
.cards .card:nth-child(1) .card-icon::before { background-image: url('../img/services/gynecology.svg'); }
.cards .card:nth-child(2) .card-icon::before { background-image: url('../img/services/surgery.svg'); }
.cards .card:nth-child(3) .card-icon::before { background-image: url('../img/services/oncology.svg'); }
.cards .card:nth-child(4) .card-icon::before { background-image: url('../img/services/mammology.svg'); }
.cards .card:nth-child(5) .card-icon::before { background-image: url('../img/services/ultrasound.svg'); }
.cards .card:nth-child(6) .card-icon::before { background-image: url('../img/services/cardiology.svg'); }
.cards .card:nth-child(7) .card-icon::before { background-image: url('../img/services/neurology.svg'); }
.cards .card:nth-child(8) .card-icon::before { background-image: url('../img/services/gastroenterology.svg'); }
.cards .card:nth-child(9) .card-icon::before { background-image: url('../img/services/coloproctology.svg'); }
.cards .card:nth-child(10) .card-icon::before { background-image: url('../img/services/dermato.svg'); }
.cards .card:nth-child(11) .card-icon::before { background-image: url('../img/services/colposcopy.svg'); }
.cards .card:nth-child(12) .card-icon::before { background-image: url('../img/services/hysteroscopy.svg'); }
.card h3 { font-size: 18px; margin-bottom: 8px; color: var(--blue-dark); }
.card p { max-width: 340px; margin: 0 auto; font-size: 14px; color: var(--muted); flex-grow: 1; }
.card .more { align-self: center; margin-top: 18px; font-weight: 700; font-size: 14px; }

/* ---------- Врачи ---------- */
.doctors { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 24px; }
.doctors-carousel { position: relative; padding: 0 42px; }
.doctors-carousel-viewport { overflow: hidden; }
.doctors-track {
  display: flex; gap: 0;
  transition: transform .78s cubic-bezier(.22, .61, .36, 1);
  will-change: transform;
}
.doctors-slide { flex: 0 0 100%; min-width: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; }
.doctors-carousel-arrow {
  position: absolute; z-index: 2; top: 46%; width: 36px; height: 44px; border: 1px solid var(--border);
  border-radius: 6px; background: var(--white); color: var(--accent); font-size: 32px; line-height: 1;
  cursor: pointer; box-shadow: var(--shadow); transform: translateY(-50%); transition: background .2s, color .2s, opacity .2s;
}
.doctors-carousel-arrow:hover { background: var(--accent); color: #fff; }
.doctors-carousel-arrow:disabled { opacity: .35; cursor: default; }
.doctors-carousel-prev { left: 0; }
.doctors-carousel-next { right: 0; }
.doctors-carousel-dots { display: flex; justify-content: center; gap: 8px; margin-top: 22px; }
.doctors-carousel-dot { width: 8px; height: 8px; padding: 0; border: 0; border-radius: 50%; background: #c7c8cb; cursor: pointer; transition: background .2s, transform .2s; }
.doctors-carousel-dot.active { background: var(--accent); transform: scale(1.35); }
@media (prefers-reduced-motion: reduce) {
  .doctors-track { transition-duration: .01ms; }
}
.doctor-card {
  background: var(--white); border-radius: var(--radius);
  box-shadow: var(--shadow); overflow: hidden; text-align: center;
  padding-bottom: 24px;
  border: 1px solid var(--border);
  transition: transform .2s ease, box-shadow .2s ease;
}
.doctor-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 28px rgba(95, 22, 37, 0.16);
}
.doctor-photo {
  height: 270px;
  background: #f0f0f2;
  display: flex; align-items: center; justify-content: center;
  color: var(--blue);
  overflow: hidden;
  position: relative;
  padding: 12px 18px;
}
.doctor-photo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center center;
  transform: none;
  max-width: 100%;
  transition: transform .35s ease;
}
.doctor-card:hover .doctor-photo img {
  transform: scale(1.03);
}
.doctor-photo-placeholder {
  background: var(--blue-light);
  color: var(--blue-dark);
  font-size: 13px;
  font-weight: 600;
}
.doctor-photo svg {
  width: 80px; height: 80px; fill: none; stroke: var(--blue);
  stroke-width: 1.2; stroke-linecap: round; stroke-linejoin: round; opacity: 0.5;
}
.doctor-card h3 { font-size: 17px; line-height: 1.3; margin: 18px 16px 8px; color: var(--blue-dark); }
.doctor-spec { color: var(--muted); font-size: 14px; line-height: 1.45; margin: 0 16px 8px; }
.doctor-exp { font-size: 13px; color: var(--green); font-weight: 600; }
.doctor-card .btn {
  margin-top: 4px;
  padding: 10px 18px;
  font-size: 13px;
}

/* ---------- Портфолио специалиста ---------- */
.doctor-profile-section { background: var(--bg); }
.doctor-profile-intro {
  display: grid; grid-template-columns: minmax(280px, 390px) minmax(0, 1fr);
  gap: 48px; align-items: center; margin-bottom: 32px;
}
.doctor-profile-photo {
  height: 390px; display: flex; align-items: center; justify-content: center;
  background: var(--white); border: 1px solid var(--border); border-radius: var(--radius);
  overflow: hidden; box-shadow: var(--shadow); padding: 18px;
}
.doctor-profile-photo img { width: 100%; height: 100%; object-fit: contain; object-position: center; }
.doctor-profile-photo-placeholder::before { content: 'Фото специалиста будет добавлено'; color: var(--muted); font-size: 14px; text-align: center; }
.doctor-profile-summary { max-width: 680px; }
.doctor-profile-summary h2 { margin: 8px 0 12px; font-size: 34px; line-height: 1.15; color: var(--blue-dark); }
.doctor-profile-role { margin-bottom: 24px; color: var(--muted); font-size: 18px; }
.doctor-facts {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; margin-bottom: 42px;
  background: var(--border); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden;
}
.doctor-facts > div { min-height: 100px; padding: 18px; background: var(--white); }
.doctor-facts span { display: block; margin-bottom: 8px; color: var(--muted); font-size: 13px; }
.doctor-facts strong { display: block; color: var(--blue-dark); font-size: 15px; line-height: 1.35; }
.doctor-profile-layout { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 40px; align-items: start; }
.doctor-profile-content { background: var(--white); border: 1px solid var(--border); border-radius: var(--radius); padding: 30px; box-shadow: var(--shadow); }
.doctor-profile-content h2:first-child { margin-top: 0; }
.doctor-profile-sidebar { position: sticky; top: 120px; }
.doctor-profile-sidebar .sidebar-box { margin-bottom: 14px; }
.doctor-profile-sidebar .btn { width: 100%; text-align: center; }
.profile-back { width: 100%; text-align: center; }
.profile-placeholder-list { list-style: none; padding-left: 0 !important; }
.profile-placeholder-list li { padding: 14px 16px; margin-bottom: 8px; background: var(--blue-light); border-left: 3px solid var(--accent); color: var(--muted); }
.doctor-card h3 a { color: inherit; }
.doctor-card h3 a:hover { color: var(--accent); }

/* Единая современная подача контентных блоков */
.content, .sidebar-box, .contact-info-block {
  color: var(--text);
}
.sidebar-box, .contact-info-block {
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  border-radius: 8px;
}
.page-hero {
  background: var(--blue-dark);
  padding: 56px 0;
}
.page-hero h1 { font-size: 38px; line-height: 1.2; }
.price-table { border: 1px solid var(--border); }
.price-table th { background: var(--blue-dark); }
.price-table tr:hover td { background: var(--blue-light); }

/* ---------- Преимущества ---------- */
.features { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 24px; }
.feature {
  text-align: center; padding: 28px 20px;
  background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow);
}
.feature .icon {
  width: 56px; height: 56px; margin: 0 auto 12px;
  background: var(--blue-light); border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
}
.feature .icon svg {
  width: 28px; height: 28px; fill: none; stroke: var(--blue);
  stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round;
}
.feature h3 { font-size: 17px; margin-bottom: 6px; color: var(--blue-dark); }
.feature p { font-size: 14px; color: var(--muted); }

/* ---------- Цены ---------- */
.price-table { width: 100%; border-collapse: collapse; background: var(--white); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.price-table th { background: var(--blue); color: #fff; padding: 14px 18px; text-align: left; font-size: 15px; }
.price-table th:last-child, .price-table td:last-child { text-align: right; }
.price-table td { padding: 13px 18px; border-bottom: 1px solid var(--border); font-size: 15px; }
.price-table tr:last-child td { border-bottom: 0; }
.price-table tr:hover td { background: var(--blue-light); }
.price-value { font-weight: 600; color: var(--blue-dark); white-space: nowrap; }
.price-category { margin: 40px 0 16px; font-size: 22px; color: var(--blue-dark); }

/* ---------- CTA ---------- */
.cta {
  background: linear-gradient(120deg, var(--blue-dark), var(--blue));
  color: #fff; padding: 56px 0; text-align: center;
}
.cta h2 { font-size: 30px; margin-bottom: 12px; }
.cta p { opacity: 0.95; margin-bottom: 26px; font-size: 17px; }
.cta .btn { background: #fff; color: var(--green); }
.cta .btn:hover { background: #f0f0f0; }

/* ---------- Футер ---------- */
.footer { background: #34363b; color: #d1d3d6; font-size: 14px; padding: 48px 0 0; }
.footer .container { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 32px; }
.footer h4 { color: #fff; font-size: 16px; margin-bottom: 14px; }
.footer ul { list-style: none; }
.footer ul li { margin-bottom: 8px; }
.footer a { color: #d1d3d6; }
.footer a:hover { color: #fff; }
.footer-phones a { display: block; font-size: 17px; color: #fff; font-weight: 600; margin-bottom: 4px; }
.footer-bottom {
  margin-top: 36px; padding: 16px 0; border-top: 1px solid #50535a;
  text-align: center; font-size: 13px; color: #aeb1b6;
}

/* ---------- Страница услуги (детальная) ---------- */
.page-hero {
  background: linear-gradient(120deg, var(--blue), var(--blue-dark));
  color: #fff; padding: 30px 0;
}
.page-hero h1 { font-size: 30px; margin-bottom: 6px; }
.breadcrumbs { font-size: 13px; opacity: 0.85; margin-bottom: 7px; }
.breadcrumbs a { color: #fff; }
.two-col { display: grid; grid-template-columns: 2fr 1fr; gap: 40px; align-items: start; }
.sidebar-box {
  background: var(--white); border-radius: var(--radius);
  padding: 24px; box-shadow: var(--shadow); margin-bottom: 24px;
}
.sidebar-box h3 { font-size: 18px; margin-bottom: 12px; color: var(--blue-dark); }
.content h2 { font-size: 24px; color: var(--blue-dark); margin: 32px 0 12px; }
.content h3 { font-size: 19px; color: var(--blue-dark); margin: 24px 0 8px; }
.content p, .content li { font-size: 16px; margin-bottom: 10px; }
.content ul, .content ol { padding-left: 22px; margin-bottom: 14px; }
.content ul li { margin-bottom: 6px; }
.check-list { list-style: none; padding-left: 0 !important; }
.check-list li { padding-left: 28px; position: relative; }
.check-list li::before { content: "✓"; position: absolute; left: 0; color: var(--green); font-weight: 700; }
.legal-content { max-width: 900px; margin: 0 auto; background: var(--white); border: 1px solid var(--border); border-radius: var(--radius); padding: 34px; box-shadow: var(--shadow); }
.legal-content h2 { margin-top: 30px; }
.legal-content h2:first-of-type { margin-top: 12px; }
.legal-content li { margin-bottom: 8px; }
.legal-note { margin-top: 28px; padding: 16px 18px; background: var(--blue-light); border-left: 4px solid var(--accent); font-size: 14px !important; }
.cookie-notice { position: fixed; z-index: 250; left: 20px; right: 20px; bottom: 20px; display: flex; align-items: center; justify-content: space-between; gap: 22px; max-width: 980px; margin: 0 auto; padding: 16px 20px; background: var(--white); border: 1px solid var(--border); border-left: 4px solid var(--accent); border-radius: var(--radius); box-shadow: 0 12px 34px rgba(48,50,56,.18); color: var(--text); font-size: 13px; }
.cookie-notice p { margin: 0; }
.cookie-notice a { text-decoration: underline; }
.cookie-notice button { flex: 0 0 auto; border: 0; border-radius: 6px; padding: 10px 18px; background: var(--accent); color: #fff; font: inherit; font-weight: 600; cursor: pointer; }
.cookie-notice button:hover { background: var(--blue-dark); }

/* Контакты */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; align-items: start; }
.contact-grid > div:first-child, .contact-grid > div:nth-child(2) { min-width: 0; }
.contact-grid > div:first-child { display: flex; flex-direction: column; gap: 24px; }
.contact-grid > div:nth-child(2) { display: flex; flex-direction: column; gap: 24px; }
.contact-info-block { background: var(--white); border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow); }
.contact-info-block h3 { color: var(--blue-dark); margin-bottom: 14px; }
.contact-row { margin-bottom: 14px; font-size: 15px; }
.contact-row strong { display: block; color: var(--muted); font-size: 13px; margin-bottom: 2px; }
.map-frame { width: 100%; height: 380px; border: 0; border-radius: var(--radius); box-shadow: var(--shadow); }

/* Модальное окно — современная форма записи */
.modal-overlay {
  display: none; position: fixed; inset: 0;
  background: rgba(0,0,0,0.6); z-index: 200;
  align-items: center; justify-content: center; padding: 20px;
  backdrop-filter: blur(4px);
}
.modal-overlay.open { display: flex; }
.modal {
  background: #fff; border-radius: 20px;
  max-width: 440px; width: 100%; padding: 32px; position: relative;
  box-shadow: 0 24px 64px rgba(0,0,0,0.2);
  animation: modalSlideIn .3s ease;
}
@keyframes modalSlideIn {
  from { opacity: 0; transform: translateY(30px) scale(0.95); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}
.modal::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0;
  height: 6px; border-radius: 20px 20px 0 0;
  background: linear-gradient(90deg, var(--blue-dark), var(--accent), var(--blue-dark));
  background-size: 200% 100%;
  animation: gradientShift 3s ease infinite;
}
.modal h3 {
  margin-bottom: 8px; font-size: 22px;
  background: linear-gradient(135deg, var(--blue-dark), var(--blue));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
}
.modal > p { font-size: 14px; color: var(--muted); margin-bottom: 24px; }
.modal-close {
  position: absolute; top: 16px; right: 18px;
  background: var(--bg); border: 0; width: 36px; height: 36px;
  border-radius: 50%; font-size: 20px; cursor: pointer; color: var(--muted);
  display: flex; align-items: center; justify-content: center;
  transition: all .2s ease;
}
.modal-close:hover {
  background: var(--blue-light); color: var(--blue);
  box-shadow: 0 2px 8px rgba(134,31,50,0.15);
}
.modal-form .form-group { margin-bottom: 16px; }
.modal-form .form-group label {
  display: block; font-size: 13px; font-weight: 600;
  color: var(--text); margin-bottom: 6px;
}
.modal-form .form-group input,
.modal-form .form-group select,
.modal-form .form-group textarea {
  width: 100%; padding: 14px 16px;
  border: 2px solid var(--border); border-radius: 12px;
  font-size: 15px; font-family: inherit;
  transition: all .25s ease; background: var(--bg);
}
.modal-form .form-group input::placeholder,
.modal-form .form-group textarea::placeholder { color: #9a9da3; }
.modal-form .form-group input:focus,
.modal-form .form-group select:focus,
.modal-form .form-group textarea:focus {
  outline: none; border-color: var(--blue);
  box-shadow: 0 0 0 4px rgba(134, 31, 50, 0.12);
  background: var(--white);
}
.modal-form .form-group select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%236b7c8d' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 16px center;
  padding-right: 40px;
}
.modal-form .btn {
  width: 100%; padding: 16px 24px;
  font-size: 16px; font-weight: 600;
  border: none; border-radius: 12px;
  background: linear-gradient(135deg, var(--accent), #a64052);
  color: #fff; cursor: pointer;
  transition: all .3s ease;
  box-shadow: 0 4px 16px rgba(143, 38, 59, 0.35);
  position: relative; overflow: hidden;
}
.modal-form .btn::before {
  content: ''; position: absolute; top: 0; left: -100%;
  width: 100%; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
  transition: left .5s ease;
}
.modal-form .btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(143, 38, 59, 0.45);
}
.modal-form .btn:hover::before { left: 100%; }
.modal-form .form-note {
  font-size: 12px; color: var(--muted); margin-top: 14px;
  text-align: center; line-height: 1.5;
}
.modal-form .form-note a { color: var(--blue); text-decoration: underline; }

/* Современный стиль phone-list для модального окна */
.phone-list { list-style: none; padding: 0; margin: 16px 0; }
.phone-list li {
  margin-bottom: 14px;
  padding: 20px;
  background: linear-gradient(135deg, var(--blue-light), #f0f0f0);
  border-radius: 16px;
  display: flex;
  align-items: center;
  gap: 16px;
  transition: all .3s ease;
  border: 2px solid transparent;
  position: relative;
  overflow: hidden;
}
.phone-list li::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 4px;
  height: 100%;
  background: linear-gradient(180deg, var(--blue), var(--green));
  border-radius: 4px 0 0 4px;
  opacity: 0;
  transition: opacity .3s ease;
}
.phone-list li:hover {
  background: linear-gradient(135deg, #e9dadd, #ededed);
  border-color: var(--blue);
  transform: translateX(4px);
  box-shadow: 0 4px 16px rgba(134, 31, 50, 0.15);
}
.phone-list li:hover::before { opacity: 1; }
.phone-list a.phone-link {
  font-size: 18px;
  font-weight: 700;
  color: var(--blue-dark);
  text-decoration: none;
  white-space: nowrap;
  padding: 8px 16px;
  background: var(--white);
  border-radius: 10px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  transition: all .25s ease;
  position: relative;
  z-index: 1;
}
.phone-list a.phone-link:hover {
  color: #fff;
  background: var(--blue);
  box-shadow: 0 4px 12px rgba(134, 31, 50, 0.3);
  transform: scale(1.05);
}
.phone-label { font-size: 13px; color: var(--muted); margin-top: 2px; }
.phone-icon {
  font-size: 32px;
  flex-shrink: 0;
  filter: drop-shadow(0 2px 4px rgba(134, 31, 50, 0.2));
  animation: phonePulse 2s ease-in-out infinite;
}
@keyframes phonePulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.1); }
}
.phone-desc { flex-grow: 1; min-width: 0; }
.phone-desc strong { display: block; font-size: 14px; color: var(--text); }
.phone-desc span { font-size: 12px; color: var(--muted); }

/* Утилиты */
.text-center { text-align: center; }
.mt-40 { margin-top: 40px; }
.notice {
  background: var(--blue-light); border-left: 4px solid var(--blue);
  padding: 16px 20px; border-radius: 8px; margin: 20px 0; font-size: 15px;
}

/* ---------- Адаптив ---------- */

/* Планшеты (≤1024px) */
@media (max-width: 1024px) {
  .container { padding: 0 16px; }
  .hero h1 { font-size: 34px; }
  .section { padding: 56px 0; }
  .section-title { font-size: 30px; }
  .cards { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 18px; }
  .doctors { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 18px; }
  .doctors-slide { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
  .features { grid-template-columns: repeat(2, 1fr); gap: 18px; }
  .footer .container { grid-template-columns: repeat(2, 1fr); gap: 24px; }
  .two-col { gap: 30px; }
}

/* Небольшие планшеты (≤900px) */
@media (max-width: 900px) {
  .two-col { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .contact-grid > div:first-child, .contact-grid > div:nth-child(2) { display: flex; gap: 18px; }
  .hero { padding: 28px 0; }
  .hero .container { gap: 28px; }
  .hero h1 { font-size: 28px; }
  .hero p { font-size: 15px; margin-bottom: 18px; }
  .hero-form { flex: 1 1 100%; max-width: 480px; margin: 0 auto; }
  .hero-entrance { flex: 1 1 100%; max-width: 480px; margin: 0 auto; }
  .section-title { font-size: 26px; }
  .section-subtitle { font-size: 15px; margin-bottom: 32px; }
  .cta h2 { font-size: 26px; }
  .cta p { font-size: 15px; }
  .page-hero { padding: 40px 0; }
  .page-hero h1 { font-size: 28px; }
  .content h2 { font-size: 22px; }
  .map-frame { height: 320px; }
  .price-category { font-size: 20px; }
  .doctor-profile-intro { grid-template-columns: 280px minmax(0, 1fr); gap: 28px; }
  .doctor-profile-photo { height: 320px; }
  .doctor-profile-summary h2 { font-size: 28px; }
  .doctor-facts { grid-template-columns: repeat(2, 1fr); }
  .doctor-profile-layout { grid-template-columns: minmax(0, 1fr) 250px; gap: 24px; }
}

/* Смартфоны (≤680px) */
@media (max-width: 680px) {
  /* Контейнер */
  .container { width: 100%; padding: 0 14px; }
  .logo-badge { width: 42px; height: 42px; }
  .hero-brand { justify-content: center; margin-bottom: 14px; }
  .hero-brand img { width: 48px; height: 48px; }

  /* Верхняя строка */
  .topbar { font-size: 13px; }
  .topbar .container {
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
    padding-top: 8px;
    padding-bottom: 8px;
  }
  .topbar .container > span:last-child {
    font-size: 12px;
    line-height: 1.5;
  }

  /* Шапка */
  .header { position: relative; }
  .header .container {
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding-top: 14px;
    padding-bottom: 14px;
    gap: 10px;
  }
  .logo { justify-content: center; }
  .logo-badge { width: 42px; height: 42px; font-size: 18px; }
  .logo-text { max-width: calc(100vw - 82px); font-size: 18px; text-align: left; }
  .logo-text small { white-space: normal; }
  .header-phones { text-align: center; }
  .header-phones a { font-size: 16px; }
  .header-phones .worktime { display: block; margin-top: 4px; }

  /* Кнопка записи на всю ширину */
  .header .container > .btn {
    width: 100%;
    text-align: center;
    min-height: 46px;
    padding: 11px 16px;
    font-size: 16px;
  }

  /* Навигация — мобильное меню */
  .nav .container { padding: 0; position: relative; }
  .nav ul {
    flex-direction: column;
    display: none;
    background: var(--blue);
    width: 100%;
  }
  .nav ul.open { display: flex; }
  .nav a {
    padding: 14px 20px;
    border-top: 1px solid rgba(255,255,255,0.15);
    font-size: 16px;
  }
  .nav-toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    background: var(--blue);
    color: #fff;
    border: 0;
    min-height: 48px;
    padding: 12px 20px;
    font-size: 16px;
    text-align: left;
    cursor: pointer;
    font-weight: 600;
    font-family: inherit;
  }
  .nav-toggle::after {
    content: '▾';
    font-size: 14px;
    transition: transform .25s ease;
  }
  .nav-toggle.active::after { transform: rotate(180deg); }

  /* Hero */
  .hero { padding: 24px 0; }
  .hero .container { gap: 22px; }
  .hero-text { text-align: center; }
  .hero-text h1 { font-size: 24px; line-height: 1.25; margin-bottom: 14px; }
  .hero-text p { font-size: 15px; margin-bottom: 22px; }
  .hero-text .btn,
  .hero-text .btn-outline {
    display: block;
    width: 100%;
    margin: 0 0 10px 0 !important;
    text-align: center;
    padding: 14px 20px;
  }
  .hero-entrance { min-width: 0; width: 100%; }
  .hero-entrance-frame { padding: 5px; }
  .hero-brand { gap: 10px; font-size: 13px; }
  .hero-form { padding: 24px 20px; border-radius: 16px; }
  .hero-form h3 { font-size: 20px; }
  .form-group input, .form-group select, .form-group textarea { font-size: 16px; padding: 12px 14px; }
  .hero-form .btn { font-size: 16px; padding: 14px 20px; }

  /* Секции */
  .section { padding: 44px 0; }
  .section-title { font-size: 22px; margin-bottom: 10px; }
  .about-grid { grid-template-columns: 1fr; gap: 28px; }
  .about-title { text-align: center; }
  .about-copy { max-width: none; text-align: center; }
  .about-copy p { font-size: 15px; }
  .about-list { border-left: 0; border-top: 3px solid var(--accent); padding: 4px 0 0; text-align: left; }
  .section-subtitle { font-size: 14px; margin-bottom: 28px; padding: 0 4px; }

  /* Карточки услуг */
  .cards { grid-template-columns: 1fr; gap: 16px; }
  .card { padding: 28px 22px 26px; text-align: center; }
  .card h3 { font-size: 17px; }
  .card p { max-width: 330px; font-size: 14px; }
  .card .more { margin-top: 20px; }

  /* Врачи */
  .doctors { grid-template-columns: 1fr; gap: 18px; }
  .doctors-carousel { padding: 0 30px; }
  .doctors-slide { grid-template-columns: 1fr; gap: 18px; }
  .doctors-carousel-arrow { width: 30px; height: 38px; font-size: 27px; }
  .doctor-photo { height: 270px; padding: 10px 16px; }
  .doctor-card h3 { font-size: 16px; }
  .doctor-spec { font-size: 13px; }
  .doctor-profile-intro { grid-template-columns: 1fr; gap: 24px; text-align: center; }
  .doctor-profile-photo { height: 300px; max-width: 340px; width: 100%; margin: 0 auto; }
  .doctor-profile-summary { max-width: none; }
  .doctor-profile-summary h2 { font-size: 24px; }
  .doctor-profile-role { font-size: 16px; }
  .doctor-facts { grid-template-columns: 1fr 1fr; margin-bottom: 28px; }
  .doctor-facts > div { min-height: 90px; padding: 14px 12px; }
  .doctor-profile-layout { grid-template-columns: 1fr; gap: 18px; }
  .doctor-profile-sidebar { position: static; }
  .doctor-profile-content { padding: 22px 18px; }
  .doctor-profile-content p, .doctor-profile-content li { overflow-wrap: anywhere; }

  /* Преимущества */
  .features { grid-template-columns: 1fr; gap: 16px; }
  .feature { padding: 24px 18px; }

  /* Цены (таблица — горизонтальный скролл) */
  .price-table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; margin: 0 -14px; padding: 0 14px; }
  .price-table { font-size: 13px; min-width: 480px; }
  .price-table th, .price-table td { padding: 10px 12px; white-space: nowrap; }
  .price-category { font-size: 18px; margin: 30px 0 12px; }

  /* Если таблица без обёртки — дать прокрутку самой таблице */
  .section > .container > .price-table {
    display: block;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    white-space: nowrap;
  }
  .price-table::-webkit-scrollbar { height: 6px; }
  .price-table::-webkit-scrollbar-thumb { background: var(--accent); border-radius: 6px; }

  /* CTA */
  .cta { padding: 44px 0; }
  .cta h2 { font-size: 22px; }
  .cta p { font-size: 14px; margin-bottom: 22px; }
  .cta .btn { width: 100%; max-width: 320px; padding: 14px 24px; }

  /* Футер */
  .footer { padding: 36px 0 0; font-size: 14px; }
  .footer .container { grid-template-columns: 1fr; gap: 26px; }
  .footer h4 { font-size: 15px; margin-bottom: 12px; }
  .footer-bottom { margin-top: 28px; padding: 14px 12px; font-size: 12px; line-height: 1.5; }

  /* Детальная страница услуги */
  .page-hero { padding: 32px 0; }
  .page-hero h1 { font-size: 22px; }

  .section-heading-row { display: block; margin-bottom: 24px; }
  .gallery-title { margin-bottom: 10px; }
  .gallery-intro { max-width: none; }
  .gallery-grid { grid-template-columns: 1fr; grid-auto-rows: 230px; gap: 14px; }
  .gallery-item-featured { grid-column: auto; grid-row: span 1; }
  .gallery-lightbox { padding: 50px 14px 20px; }
  .gallery-lightbox img { max-width: 100%; max-height: 82vh; }
  .gallery-lightbox-close { top: 10px; right: 12px; }
  .breadcrumbs { font-size: 13px; }
  .two-col { gap: 24px; }
  .sidebar-box { padding: 20px; }
  .content h2 { font-size: 20px; margin: 24px 0 10px; }
  .content h3 { font-size: 17px; }
  .content p, .content li { font-size: 15px; }
  .legal-content { padding: 22px 18px; }
  .legal-content h2 { font-size: 20px; }

  /* Контакты */
  .contact-info-block { padding: 22px 20px; }
  .contact-row { font-size: 14px; overflow-wrap: anywhere; }
  .contact-row a { overflow-wrap: anywhere; }
  .map-frame { height: 280px; }

  /* Модальное окно */
  .modal-overlay { padding: 14px; }
  .modal { padding: 24px 20px; border-radius: 16px; max-height: 90vh; overflow-y: auto; }
  .modal h3 { font-size: 20px; }
  .modal-close { top: 12px; right: 12px; width: 32px; height: 32px; }
  .phone-list li { padding: 16px; gap: 12px; flex-wrap: wrap; }
  .phone-list a.phone-link { font-size: 16px; padding: 8px 12px; width: 100%; text-align: center; }
  .phone-icon { font-size: 28px; }
  .phone-desc { flex-basis: calc(100% - 50px); }

  /* Уведомления */
  .notice { padding: 14px 16px; font-size: 14px; }
  .notice a { overflow-wrap: anywhere; }

  /* Текстовые блоки */
  .text-center { padding: 0 4px; }
  .cookie-notice { left: 10px; right: 10px; bottom: 10px; display: block; padding: 14px 16px; font-size: 12px; }
  .cookie-notice button { display: block; width: 100%; margin-top: 12px; }
}

/* Очень маленькие смартфоны (≤380px) */
@media (max-width: 380px) {
  .container { padding: 0 12px; }
  .hero-text h1 { font-size: 21px; }
  .section-title { font-size: 20px; }
  .cta h2 { font-size: 20px; }
  .header-phones a { font-size: 15px; }
  .logo-text { font-size: 16px; }
  .logo-text small { font-size: 11px; }
  .logo-badge { width: 38px; height: 38px; font-size: 16px; }
  .header .container { padding-top: 10px; padding-bottom: 10px; }
  .header-phones a { line-height: 1.35; }
  .topbar .address { font-size: 12px; }
  .hero-text p { font-size: 14px; }
  .doctor-facts { gap: 1px; }
  .doctor-facts > div { padding: 12px 9px; }
  .doctor-facts strong { font-size: 13px; overflow-wrap: anywhere; }
}

/* Горизонтальная ориентация на мобильных */
@media (max-width: 900px) and (orientation: landscape) {
  .hero { padding: 32px 0; }
}

/* Большие экраны (≥1400px) */
@media (min-width: 1400px) {
  .container { max-width: 1280px; }
  .hero h1 { font-size: 42px; }
  .section-title { font-size: 36px; }
}
