html {
  scroll-behavior: smooth;
}

:root {
  --primary: #1e88e5;
  --primary-light: #e3f2fd;
  --accent: #00bfa5;
  --bg: #f5f7fb;
  --text: #24324a;
  --muted: #6b7a90;
  --radius-lg: 18px;
  --shadow-soft: 0 18px 45px rgba(15, 35, 52, 0.12);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
}

a { color: inherit; text-decoration: none; }

img { max-width: 100%; display: block; }

.page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* container */
.container {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Header / Navbar */
header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(245,247,251,0.92);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(210,216,228,0.6);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}

/* Лого */
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 20px;
  letter-spacing: 0.04em;
}

.logo-image {
  width: 40px;
  height: 40px;
  object-fit: contain;
  border-radius: 8px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 22px;
  font-size: 14px;
  color: var(--muted);
}

.nav-links a {
  padding: 4px 0;
  border-bottom: 2px solid transparent;
  transition: color .2s ease, border-color .2s ease;
}

.nav-links a:hover {
  color: var(--primary);
  border-color: var(--primary);
}

.nav-cta {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 14px;
}

.phone {
  font-weight: 600;
  color: var(--primary);
  white-space: nowrap;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 20px;
  border-radius: 999px;
  border: none;
  cursor: pointer;
  font-weight: 600;
  font-size: 14px;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease, color .15s ease;
  text-decoration: none;
  white-space: nowrap;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary), #42a5f5);
  color: #fff;
  box-shadow: 0 12px 30px rgba(30,136,229,0.4);
}

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 16px 40px rgba(30,136,229,0.55);
}

.btn-outline {
  background: #ffffff;
  color: var(--primary);
  border: 1px solid rgba(30,136,229,0.25);
}

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

/* HERO */
.hero {
  padding: 48px 0 40px;
}

.hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  gap: 40px;
  align-items: center;
}

/* для варианта только с левым блоком */
.hero-inner-single {
  grid-template-columns: minmax(0, 1fr);
  justify-items: center; /* чтобы контент был по центру */
}

.hero-inner-single > div {
  max-width: 640px; /* чтобы строки не были слишком широкими */
}


.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(224,242,254,0.85);
  color: var(--primary);
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin-bottom: 14px;
}

.hero-title {
  font-size: clamp(28px, 4vw, 36px);
  font-weight: 800;
  letter-spacing: 0.02em;
  margin-bottom: 12px;
}

.hero-title span {
  color: var(--primary);
}

.hero-sub {
  font-size: 15px;
  color: var(--muted);
  max-width: 440px;
  margin: 0 auto 22px;
}

/* Центровка заголовков и текста */
.hero-title-center,
.hero-sub-center,
.hero-badges-center,
.hero-cta-center,
.hero-note-center,
.section-title-center,
.section-subtitle-center {
  text-align: center;
}

.hero-badges-center,
.hero-cta-center {
  justify-content: center;
}

/* Hero badges */
.hero-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 22px;
  font-size: 12px;
  color: var(--muted);
}

.badge-pill {
  padding: 6px 12px;
  border-radius: 999px;
  background: #ffffff;
  border: 1px solid rgba(210,216,228,0.8);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.badge-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 4px rgba(0,191,165,0.16);
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  margin-bottom: 18px;
}

.hero-note {
  font-size: 12px;
  color: var(--muted);
}

.hero-right {
  position: relative;
}

.hero-card {
  border-radius: var(--radius-lg);
  background: radial-gradient(circle at 0 0, #ffffff, #e3f2fd);
  padding: 24px;
  box-shadow: var(--shadow-soft);
  position: relative;
  overflow: hidden;
}

.hero-card::before {
  content: "";
  position: absolute;
  width: 220px;
  height: 220px;
  background: radial-gradient(circle, rgba(0,191,165,0.09), transparent 60%);
  right: -30px;
  top: -40px;
}

.hero-card-main {
  display: flex;
  flex-direction: column;
  gap: 14px;
  position: relative;
  z-index: 1;
}

.hero-card-title {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 2px;
}

.hero-card-sub {
  font-size: 13px;
  color: var(--muted);
}

.hero-card-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  font-size: 13px;
}

.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(0,191,165,0.08);
  color: var(--accent);
  font-weight: 600;
  font-size: 12px;
}

.hero-stats {
  display: flex;
  gap: 14px;
}

.hero-stat {
  padding: 8px 10px;
  border-radius: 12px;
  background: rgba(255,255,255,0.9);
  border: 1px solid rgba(210,216,228,0.8);
  min-width: 90px;
}

.hero-stat strong {
  display: block;
  font-size: 16px;
}

.hero-secondary {
  margin-top: 14px;
  display: flex;
  justify-content: space-between;
  gap: 14px;
  font-size: 11px;
  color: var(--muted);
}

.hero-secondary-item {
  padding: 8px 10px;
  border-radius: 12px;
  background: rgba(255,255,255,0.95);
  border: 1px dashed rgba(187,195,211,0.9);
  flex: 1;
}

/* Sections */
section {
  padding: 28px 0;
}

.section-title {
  font-size: 22px;
  margin-bottom: 16px;
}

.section-subtitle {
  font-size: 14px;
  color: var(--muted);
  margin-bottom: 18px;
  max-width: 520px;
  margin-inline: auto;
}

/* Services – карточки */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px 32px;
  margin-bottom: 32px;
}

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

.card {
  background: #ffffff;
  border-radius: 16px;
  padding: 24px 24px 20px;
  box-shadow: 0 10px 30px rgba(15,35,52,0.06);
  border: 1px solid rgba(224,229,238,0.9);
  display: flex;
  flex-direction: column;
  gap: 12px;
  font-size: 14px;
  line-height: 1.6;
}

.card h3 {
  font-size: 17px;
  margin: 0;
}

.card p {
  margin: 0;
  color: var(--muted);
}

.card ul {
  list-style: none;
  margin: 4px 0 0;
  padding-left: 0;
  color: var(--muted);
}

.card ul li {
  position: relative;
  padding-left: 14px;
}

.card ul li::before {
  content: "•";
  position: absolute;
  left: 0;
  top: 0;
  color: var(--accent);
}

/* Advantages – чуть воздух и читаемость */
.advantages {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px 24px;
  margin-top: 12px;
}

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

.adv {
  background: rgba(255,255,255,0.9);
  border-radius: 12px;
  padding: 12px 14px;
  font-size: 13px;
  line-height: 1.6;
  border: 1px dashed rgba(210,216,228,0.9);
}

.adv strong {
  display: block;
  margin-bottom: 2px;
  font-size: 13px;
}


/* CTA */
.cta {
  margin-top: 16px;
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, #1e88e5 0%, #00bfa5 100%);
  color: #fff;
  padding: 18px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  box-shadow: 0 16px 40px rgba(0, 150, 136, 0.45);
  flex-wrap: wrap;
}

.cta h3 {
  font-size: 18px;
  margin-bottom: 2px;
}

.cta p {
  font-size: 13px;
  opacity: 0.9;
}

.cta-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

.cta-small {
  font-size: 12px;
  opacity: 0.9;
}

/* DOCTOR & NURSE */
.two-col {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: 26px;
  align-items: center;
}

.two-col-reverse {
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
}

.person-text {
  text-align: left;
}

.person-name {
  font-weight: 700;
  margin-top: 10px;
  font-size: 18px;
}

.person-role {
  font-size: 14px;
  color: var(--muted);
  margin-bottom: 6px;
}

.person-desc {
  font-size: 14px;
  color: var(--muted);
}

.person-photo-wrapper {
  display: flex;
  justify-content: center;
}

.person-photo-vertical {
  width: 280px;
  max-height: 420px;
  object-fit: cover;
  border-radius: 18px;
  box-shadow: var(--shadow-soft);
}

/* CONTACTS full-width */
.contacts-fullwidth {
  width: 100%;
  background: #ffffff;
  padding: 32px 0;
}

.contacts-inner {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 20px;
}

.contacts-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  gap: 20px;
  align-items: stretch;
}

.contacts-card {
  background: #ffffff;
  border-radius: 18px;
  padding: 18px 16px;
  border: 1px solid rgba(224,229,238,0.9);
  box-shadow: 0 10px 30px rgba(15,35,52,0.06);
  font-size: 13px;
}

.contacts-row {
  margin-bottom: 8px;
}

.contacts-label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--muted);
  margin-bottom: 2px;
}

.contacts-value {
  font-weight: 600;
}

.contacts-row a {
  color: var(--primary);
}

.schedule-list {
  font-size: 13px;
  color: var(--muted);
  margin-top: 4px;
}

.schedule-list div {
  display: flex;
  justify-content: space-between;
}

.map-embed {
  border-radius: 18px;
  overflow: hidden;
  min-height: 220px;
  border: 1px solid rgba(210,216,228,0.9);
}

/* Footer */
footer {
  padding: 14px 0 22px;
  font-size: 12px;
  color: var(--muted);
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 10px;
  border-top: 1px solid rgba(210,216,228,0.8);
  padding-top: 10px;
}

/* Responsive */
@media (max-width: 960px) {
  .hero-inner {
    grid-template-columns: minmax(0, 1fr);
  }

  .hero-right {
    order: -1;
  }

  .cards-grid {
    grid-template-columns: repeat(2, minmax(0,1fr));
  }

  .advantages {
    grid-template-columns: repeat(2, minmax(0,1fr));
  }

  .contacts-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 768px) {
  header {
    position: static;
  }

  .nav {
    height: auto;
    padding: 10px 0;
    gap: 10px;
    flex-wrap: wrap;
  }

  .nav-links {
    width: 100%;
    justify-content: center;
    flex-wrap: wrap;
  }

  .nav-cta {
    width: 100%;
    justify-content: center;
  }

  .hero {
    padding-top: 24px;
  }

  .cards-grid {
    grid-template-columns: minmax(0,1fr);
  }

  .advantages {
    grid-template-columns: minmax(0,1fr);
  }

  .two-col,
  .two-col-reverse,
  .two-col-reverse-mobile {
    grid-template-columns: minmax(0, 1fr);
  }

  .section-title-center-mobile {
    text-align: center;
  }

  .person-text {
    text-align: center;
  }

  .person-photo-wrapper {
    margin-top: 12px;
  }
}
.contacts-telegram {
  display: flex;
  align-items: center;
}

.tg-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--primary);
}

.tg-icon-img {
  width: 30px;
  height: 30px;
  object-fit: contain;
}

.btn-tg {
  margin-top: 6px;
  background: linear-gradient(135deg, #37aee2, #1e96c8);
  box-shadow: 0 10px 24px rgba(55, 174, 226, 0.45);
}

.btn-tg:hover {
  transform: translateY(-1px);
  box-shadow: 0 14px 32px rgba(55, 174, 226, 0.6);
}
.nav-toggle {
  display: none;
  position: relative;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 3px;
  width: 28px;          /* было больше – уменьшаем */
  height: 28px;
  border-radius: 999px;
  border: 1px solid rgba(210,216,228,0.9);
  background: #ffffff;
  cursor: pointer;
  padding: 0;
}

/* Кнопка-бургер: по умолчанию скрыта (ПК) */
.nav-toggle {
  position: relative;
  width: 32px;
  height: 24px;
  border: none;
  background: transparent;
  padding: 0;
  cursor: pointer;
  display: none;                  /* <-- здесь делаем none */
  justify-content: center;
  align-items: center;
  z-index: 25;
}

/* Полоски */
.nav-toggle span {
  position: absolute;
  left: 0;
  width: 100%;
  height: 2px;
  border-radius: 999px;
  background: #24324a;
  transition: transform 0.25s ease, opacity 0.2s ease, top 0.25s ease, bottom 0.25s ease;
}

.nav-toggle span:nth-child(1) { top: 3px; }
.nav-toggle span:nth-child(2) { top: 11px; }
.nav-toggle span:nth-child(3) { bottom: 3px; }

/* Состояние “крестик” */
.nav-toggle.nav-toggle--active span:nth-child(1) {
  top: 11px;
  transform: rotate(45deg);
}
.nav-toggle.nav-toggle--active span:nth-child(2) {
  opacity: 0;
}
.nav-toggle.nav-toggle--active span:nth-child(3) {
  bottom: auto;
  top: 11px;
  transform: rotate(-45deg);
}

/* Мобильная версия */
@media (max-width: 768px) {
  .nav {
    position: relative;
  }

  .nav-toggle {
    display: flex;                /* показываем только на мобиле */
  }

  .nav-links {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #ffffff;
    border-bottom: 1px solid rgba(210,216,228,0.8);
    flex-direction: column;
    align-items: center;
    gap: 10px;
    padding: 10px 0 14px;
    display: none;
  }

  .nav-links a {
    padding: 6px 0;
  }

  .nav-links.nav-open {
    display: flex;
  }
}


.map-embed {
  border-radius: 18px;
  overflow: hidden;
  min-height: 220px;
  border: 1px solid rgba(210,216,228,0.9);
}

/* карта ниже и повыше на телефоне */
@media (max-width: 768px) {
  .map-embed {
    min-height: 260px;
    margin-top: 14px;
  }
}

@media (max-width: 480px) {
  .map-embed {
    min-height: 220px;
  }
}

/* десктоп */
.doctors-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 40px;
}

/* ширина колонок на десктопе */
.doctors-row .person-text {
  flex: 0 1 55%;
}

.doctors-row .person-photo-wrapper {
  flex: 0 1 45%;
}

.person-photo-vertical {
  display: block;
  width: 100%;
  height: auto;
  object-fit: cover;
}

/* порядок колонок на десктопе */
#doctor .person-text { order: 0; }
#doctor .person-photo-wrapper { order: 1; }

#doctor2 .person-text { order: 1; }
#doctor2 .person-photo-wrapper { order: 0; }

/* мобильная версия: всё по центру */
@media (max-width: 768px) {
  .doctors-row {
    flex-direction: column;
    align-items: center;          /* центрируем содержимое ряда */
    text-align: center;           /* чтобы текст тоже смотрелся по центру */
  }

  .doctors-row .person-text,
  .doctors-row .person-photo-wrapper {
    flex: 0 0 auto;
    width: 100%;
  }

  .doctors-row .person-photo-wrapper {
    display: flex;
    justify-content: center;
  }

  .doctors-row .person-photo-wrapper .person-photo-vertical {
    max-width: 260px;
    width: 100%;
  }

  #doctor .person-text,
  #doctor .person-photo-wrapper,
  #doctor2 .person-text,
  #doctor2 .person-photo-wrapper {
    order: 0;
  }
}
