/* ============================================================
   DESIGN TOKENS
   DESIGN_VARIANCE: 4 | MOTION_INTENSITY: 4 | VISUAL_DENSITY: 3
============================================================ */
:root {
  --white:       #FFFFFF;
  --ink:         #1A1A2E;
  --blue:        #2563EB;
  --blue-dark:   #1D4ED8;
  --blue-light:  #F8FAFF;
  --navy:        #1C3A5E;
  --green:       #10B981;
  --muted:       #64748B;
  --border:      #E2E8F0;

  --font-head: 'Manrope', sans-serif;
  --font-body: 'Inter', sans-serif;

  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;

  /* Two-layer shadows — premium feel */
  --shadow-sm:  0 1px 3px rgba(37,99,235,.06),  0 4px 12px rgba(0,0,0,.06);
  --shadow-md:  0 2px 8px  rgba(37,99,235,.06),  0 16px 32px rgba(0,0,0,.08);
  --shadow-lg:  0 4px 16px rgba(37,99,235,.08),  0 24px 48px rgba(0,0,0,.12);

  /* Spring-feel easing without JS */
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --t:    0.35s;
  --transition: all var(--t) var(--ease);

  /* VISUAL_DENSITY 3 — art-gallery spacing */
  --section-v:        96px;
  --section-v-mobile: 64px;
  --container-px:     48px;
  --container-px-mob: 24px;
}

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

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.7;
  color: var(--ink);
  background: var(--white);
  overflow-x: hidden;
}

img   { max-width: 100%; display: block; }
a     { color: inherit; text-decoration: none; }
ul    { list-style: none; }
button { cursor: pointer; border: none; background: none; font-family: var(--font-body); }

/* ============================================================
   TYPOGRAPHY
============================================================ */
h1, h2, h3, h4 {
  font-family: var(--font-head);
  font-weight: 800;
  line-height: 1.2;
  color: var(--ink);
}

h1 { font-size: clamp(38px, 5vw,  68px); }
h2 { font-size: clamp(28px, 3.5vw, 46px); }
h3 { font-size: clamp(18px, 2vw,   22px); }

/* ============================================================
   CONTAINER
============================================================ */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--container-px);
}

/* ============================================================
   SECTION BASE  (VISUAL_DENSITY 3 = big breath between sections)
============================================================ */
.section       { padding: var(--section-v) 0; }
.section--light { background: var(--blue-light); }

/* ============================================================
   SECTION HEADER
============================================================ */
.section-header { text-align: center; margin-bottom: 56px; }

.section-label {
  display: inline-block;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 10px;
}

.section-title   { margin-bottom: 14px; }

.section-subtitle {
  font-size: 17px;
  color: var(--muted);
  max-width: 520px;
  margin: 0 auto;
}

/* ============================================================
   BUTTONS
============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 500;
  padding: 14px 28px;
  border-radius: var(--radius-sm);
  transition: var(--transition);
  white-space: nowrap;
  cursor: pointer;
  border: 2px solid transparent;
}

.btn--primary {
  background: var(--blue);
  color: var(--white);
  border-color: var(--blue);
}
.btn--primary:hover {
  background: var(--blue-dark);
  border-color: var(--blue-dark);
  transform: scale(1.02);
  box-shadow: 0 4px 20px rgba(37,99,235,.35);
}

.btn--outline {
  background: transparent;
  color: var(--blue);
  border-color: var(--blue);
}
.btn--outline:hover {
  background: var(--blue);
  color: var(--white);
  transform: scale(1.02);
}

.btn--ghost {
  background: transparent;
  color: var(--blue);
  border: none;
  padding: 8px 0;
  font-size: 14px;
  font-weight: 500;
}
.btn--ghost:hover { color: var(--blue-dark); transform: translateX(3px); }

.btn--white {
  background: var(--white);
  color: var(--blue);
  border-color: rgba(255,255,255,.3);
}
.btn--white:hover {
  background: rgba(255,255,255,.9);
  transform: scale(1.02);
  box-shadow: 0 4px 20px rgba(0,0,0,.15);
}

.btn--lg { padding: 16px 36px; font-size: 16px; }

/* ============================================================
   LOGO
============================================================ */
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
}
.logo__text {
  font-family: var(--font-head);
  font-size: 20px;
  font-weight: 800;
  color: var(--ink);
  letter-spacing: -.02em;
}
.logo--white .logo__text { color: var(--white); }

/* ============================================================
   SCROLL REVEAL  (MOTION_INTENSITY 4 — pure CSS, no JS lib)
============================================================ */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition:
    opacity  0.65s var(--ease),
    transform 0.65s var(--ease);
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Cascade delays for sibling reveals */
.reveal:nth-child(2) { transition-delay: .08s; }
.reveal:nth-child(3) { transition-delay: .16s; }
.reveal:nth-child(4) { transition-delay: .24s; }
.reveal:nth-child(5) { transition-delay: .32s; }
.reveal:nth-child(6) { transition-delay: .40s; }

/* ============================================================
   HEADER
============================================================ */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: var(--white);
  transition: box-shadow var(--t) var(--ease);
}
.header.scrolled {
  box-shadow: 0 1px 0 var(--border), 0 4px 24px rgba(0,0,0,.07);
}

.header__inner {
  display: flex;
  align-items: center;
  gap: 40px;
  height: 72px;
}

/* NAV */
.nav { flex: 1; }
.nav__list {
  display: flex;
  align-items: center;
  gap: 36px;
  justify-content: center;
}
.nav__link {
  font-size: 15px;
  font-weight: 500;
  color: var(--muted);
  transition: color var(--t) var(--ease);
  position: relative;
}
.nav__link::after {
  content: '';
  position: absolute;
  bottom: -3px;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--blue);
  border-radius: 2px;
  transform: scaleX(0);
  transition: transform var(--t) var(--ease);
}
.nav__link:hover,
.nav__link.active { color: var(--ink); }
.nav__link:hover::after,
.nav__link.active::after { transform: scaleX(1); }

/* HEADER ACTIONS */
.header__actions {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-shrink: 0;
}
.header__phone {
  font-size: 14px;
  font-weight: 500;
  color: var(--ink);
  white-space: nowrap;
  transition: color var(--t) var(--ease);
}
.header__phone:hover { color: var(--blue); }

/* BURGER */
.burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 6px;
  margin-left: auto;
}
.burger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--ink);
  border-radius: 2px;
  transition: var(--transition);
  transform-origin: center;
}
.burger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.burger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ============================================================
   HERO
============================================================ */
.hero {
  display: grid;
  grid-template-columns: 55fr 45fr;
  min-height: 90vh;
  padding-top: 72px; /* header height */
}

.hero__text {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 80px var(--container-px) 80px calc((100vw - 1200px) / 2 + var(--container-px));
  max-width: calc(660px + (100vw - 1200px) / 2);
}

.hero__label {
  display: inline-block;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 20px;
  opacity: 0;
  animation: heroFadeUp .7s var(--ease) .1s forwards;
}

.hero__title {
  margin-bottom: 20px;
  opacity: 0;
  animation: heroFadeUp .7s var(--ease) .2s forwards;
}

.hero__subtitle {
  font-size: 17px;
  color: var(--muted);
  max-width: 480px;
  margin-bottom: 36px;
  opacity: 0;
  animation: heroFadeUp .7s var(--ease) .3s forwards;
}

.hero__actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 48px;
  opacity: 0;
  animation: heroFadeUp .7s var(--ease) .4s forwards;
}

.hero__stats {
  display: flex;
  gap: 36px;
  padding-top: 36px;
  border-top: 1px solid var(--border);
  opacity: 0;
  animation: heroFadeUp .7s var(--ease) .5s forwards;
}

.hero__stat-value {
  display: block;
  font-family: var(--font-head);
  font-size: 26px;
  font-weight: 800;
  color: var(--ink);
  line-height: 1.1;
}
.hero__stat-label {
  display: block;
  font-size: 13px;
  color: var(--muted);
  margin-top: 2px;
}

.hero__image {
  position: relative;
  overflow: hidden;
}
.hero__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

@keyframes heroFadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0);    }
}

/* ============================================================
   FEATURES
============================================================ */
.features__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.feature-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 36px 28px;
  transition: var(--transition);
}
.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: transparent;
}

.feature-card__icon {
  width: 56px;
  height: 56px;
  background: var(--blue-light);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}
.feature-card__title {
  font-size: 17px;
  font-weight: 700;
  margin-bottom: 10px;
}
.feature-card__text {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.65;
}

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

.service-card {
  background: var(--white);
  border-radius: var(--radius-md);
  padding: 32px 28px;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  transition: var(--transition);
}
.service-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.service-card__icon {
  width: 52px;
  height: 52px;
  background: var(--blue-light);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
}
.service-card__title {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 8px;
}
.service-card__desc {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.6;
  flex: 1;
}
.service-card__price {
  font-family: var(--font-head);
  font-size: 20px;
  font-weight: 800;
  color: var(--blue);
  margin-top: 16px;
}
.service-card__btn {
  align-self: flex-start;
  margin-top: 8px;
}

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

.doctor-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: var(--transition);
}
.doctor-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: transparent;
}

.doctor-card__photo {
  height: 280px;
  overflow: hidden;
}
.doctor-card__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  transition: transform 0.5s var(--ease);
}
.doctor-card:hover .doctor-card__photo img { transform: scale(1.04); }

.doctor-card__body  { padding: 24px 24px 28px; }

.doctor-card__name  { font-size: 18px; font-weight: 700; margin-bottom: 4px; }
.doctor-card__spec  { font-size: 13px; color: var(--blue); font-weight: 500; margin-bottom: 6px; }
.doctor-card__exp   {
  font-size: 13px;
  color: var(--muted);
  padding: 4px 10px;
  background: var(--blue-light);
  border-radius: 20px;
  display: inline-block;
  margin-bottom: 14px;
}

.doctor-card__facts { display: flex; flex-direction: column; gap: 6px; }
.doctor-card__facts li {
  font-size: 13px;
  color: var(--muted);
  padding-left: 16px;
  position: relative;
}
.doctor-card__facts li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 8px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--blue);
  opacity: .5;
}

/* ============================================================
   ABOUT
============================================================ */
.about__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 72px;
  align-items: center;
}

.about__content .section-label  { margin-bottom: 10px; }
.about__content .section-title  { margin-bottom: 24px; }

.about__text {
  font-size: 16px;
  color: var(--muted);
  line-height: 1.75;
  margin-bottom: 16px;
}

.about__numbers {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin-top: 40px;
  padding-top: 40px;
  border-top: 1px solid var(--border);
}

.about__number-value {
  display: block;
  font-family: var(--font-head);
  font-size: 26px;
  font-weight: 800;
  color: var(--blue);
  line-height: 1.1;
}
.about__number-label {
  display: block;
  font-size: 12px;
  color: var(--muted);
  margin-top: 4px;
  line-height: 1.4;
}

.about__photo {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  aspect-ratio: 4 / 5;
}
.about__photo img { width: 100%; height: 100%; object-fit: cover; }

/* ============================================================
   REVIEWS
============================================================ */
.reviews-swiper { padding-bottom: 56px !important; }

.review-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 36px;
  height: auto;
  display: flex;
  flex-direction: column;
  gap: 20px;
  transition: var(--transition);
}
.review-card:hover {
  box-shadow: var(--shadow-md);
  border-color: transparent;
}

.review-card__stars {
  font-size: 18px;
  color: #F59E0B;
  letter-spacing: 2px;
}
.review-card__text {
  font-size: 15px;
  color: var(--muted);
  line-height: 1.7;
  flex: 1;
}
.review-card__author {
  display: flex;
  align-items: center;
  gap: 12px;
}
.review-card__author img {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}
.review-card__name  { font-size: 14px; font-weight: 600; color: var(--ink); }
.review-card__date  { font-size: 12px; color: var(--muted); margin-top: 1px; }

/* Swiper overrides */
.swiper-button-prev,
.swiper-button-next {
  color: var(--blue);
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 50%;
  width: 44px !important;
  height: 44px !important;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}
.swiper-button-prev::after,
.swiper-button-next::after { font-size: 14px !important; font-weight: 700; }
.swiper-button-prev:hover,
.swiper-button-next:hover  { background: var(--blue); color: var(--white); border-color: var(--blue); }

.swiper-pagination-bullet         { background: var(--border); opacity: 1; }
.swiper-pagination-bullet-active  { background: var(--blue); }

/* ============================================================
   BOOKING
============================================================ */
.booking {
  background: var(--navy);
}

.booking__inner {
  max-width: 740px;
  margin: 0 auto;
  text-align: center;
}

.booking__title {
  font-size: clamp(28px, 3.5vw, 42px);
  color: var(--white);
  margin-bottom: 12px;
}
.booking__subtitle {
  font-size: 17px;
  color: rgba(255,255,255,.65);
  margin-bottom: 40px;
}

.booking__form { text-align: left; }

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 16px;
}
.form-group { display: flex; flex-direction: column; gap: 6px; }

.form-label {
  font-size: 13px;
  font-weight: 500;
  color: rgba(255,255,255,.75);
}

.form-input {
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.15);
  border-radius: var(--radius-sm);
  padding: 14px 16px;
  font-family: var(--font-body);
  font-size: 15px;
  color: var(--white);
  outline: none;
  transition: var(--transition);
  -webkit-appearance: none;
  appearance: none;
}
.form-input::placeholder { color: rgba(255,255,255,.3); }
.form-input:focus {
  border-color: rgba(255,255,255,.5);
  background: rgba(255,255,255,.12);
}

.form-select { cursor: pointer; }
.form-select option { background: var(--navy); color: var(--white); }

.booking__submit {
  width: 100%;
  margin-top: 8px;
  font-size: 16px;
  padding: 18px;
}

.booking__consent {
  font-size: 12px;
  color: rgba(255,255,255,.4);
  text-align: center;
  margin-top: 14px;
  line-height: 1.5;
}

/* ============================================================
   CONTACTS
============================================================ */
.contacts__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: start;
}

.contact-item {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  margin-bottom: 24px;
}

.contact-item__icon {
  width: 40px;
  height: 40px;
  background: var(--blue-light);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.contact-item__label {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 3px;
}
.contact-item__value {
  font-size: 15px;
  color: var(--ink);
  line-height: 1.5;
}
.contact-item__value a { transition: color var(--t) var(--ease); }
.contact-item__value a:hover { color: var(--blue); }

.contacts__btns {
  display: flex;
  gap: 12px;
  margin-top: 32px;
}

/* MAP */
.map-placeholder {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 4/3;
  box-shadow: var(--shadow-md);
}
.map-placeholder img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(.75) saturate(.5);
}
.map-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
}
.map-pin svg { filter: drop-shadow(0 4px 12px rgba(0,0,0,.25)); }
.map-label {
  background: var(--white);
  border-radius: var(--radius-sm);
  padding: 10px 16px;
  text-align: center;
  box-shadow: var(--shadow-md);
}
.map-label strong {
  display: block;
  font-family: var(--font-head);
  font-size: 14px;
  font-weight: 700;
  color: var(--ink);
}
.map-label span {
  font-size: 12px;
  color: var(--muted);
}

/* ============================================================
   FOOTER
============================================================ */
.footer {
  background: var(--navy);
  color: rgba(255,255,255,.7);
}

.footer__top {
  display: grid;
  grid-template-columns: 2fr 1.2fr 1.5fr;
  gap: 48px;
  padding: 64px 0 48px;
}

.footer__desc {
  font-size: 14px;
  line-height: 1.7;
  margin-top: 16px;
  max-width: 280px;
}

.footer__col-title {
  font-family: var(--font-head);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--white);
  margin-bottom: 20px;
}

.footer__links { display: flex; flex-direction: column; gap: 10px; }
.footer__links a,
.footer__contacts li {
  font-size: 14px;
  color: rgba(255,255,255,.6);
  transition: color var(--t) var(--ease);
  line-height: 1.5;
}
.footer__links a:hover { color: var(--white); }
.footer__contacts      { display: flex; flex-direction: column; gap: 10px; }
.footer__contacts a    { transition: color var(--t) var(--ease); }
.footer__contacts a:hover { color: var(--white); }

.footer__socials {
  display: flex;
  gap: 10px;
  margin-top: 20px;
}
.footer__social {
  width: 36px;
  height: 36px;
  background: rgba(255,255,255,.08);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,.6);
  transition: var(--transition);
}
.footer__social:hover {
  background: rgba(255,255,255,.15);
  color: var(--white);
  transform: translateY(-2px);
}

.footer__bottom {
  border-top: 1px solid rgba(255,255,255,.1);
  padding: 20px 0;
  font-size: 13px;
  color: rgba(255,255,255,.35);
  text-align: center;
}

/* ============================================================
   MODAL
============================================================ */
.modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--t) var(--ease);
}
.modal.open {
  opacity: 1;
  pointer-events: all;
}

.modal__overlay {
  position: absolute;
  inset: 0;
  background: rgba(28,58,94,.6);
  backdrop-filter: blur(4px);
}

.modal__content {
  position: relative;
  z-index: 1;
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 52px 48px;
  max-width: 440px;
  width: 100%;
  text-align: center;
  box-shadow: var(--shadow-lg);
  transform: scale(.92) translateY(16px);
  transition: transform var(--t) var(--ease);
}
.modal.open .modal__content {
  transform: scale(1) translateY(0);
}

.modal__icon {
  margin: 0 auto 24px;
  width: 72px;
  height: 72px;
}

.modal__title {
  font-size: 26px;
  margin-bottom: 12px;
}
.modal__text {
  font-size: 15px;
  color: var(--muted);
  line-height: 1.65;
  margin-bottom: 28px;
}

/* Checkmark SVG draw animation */
.checkmark-path {
  stroke-dasharray: 60;
  stroke-dashoffset: 60;
  transition: stroke-dashoffset 0.6s var(--ease) 0.2s;
}
.modal.open .checkmark-path { stroke-dashoffset: 0; }

/* ============================================================
   RESPONSIVE
============================================================ */
@media (max-width: 1023px) {
  .container { padding: 0 32px; }

  .hero { grid-template-columns: 1fr; min-height: auto; }
  .hero__image { height: 50vw; max-height: 420px; order: -1; }
  .hero__text  {
    padding: 56px 32px;
    max-width: 100%;
  }

  .features__grid { grid-template-columns: repeat(2, 1fr); }
  .services__grid { grid-template-columns: repeat(2, 1fr); }

  .about__inner   { grid-template-columns: 1fr; gap: 40px; }
  .about__photo   { order: -1; aspect-ratio: 16/7; }
  .about__numbers { grid-template-columns: repeat(2, 1fr); }

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

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

  .footer__top { grid-template-columns: 1fr 1fr; }
  .footer__col--brand { grid-column: 1 / -1; }
}

@media (max-width: 767px) {
  :root {
    --section-v: var(--section-v-mobile);
    --container-px: var(--container-px-mob);
  }

  .container { padding: 0 var(--container-px-mob); }

  /* Header mobile */
  .nav {
    position: fixed;
    top: 72px;
    left: 0;
    right: 0;
    background: var(--white);
    border-top: 1px solid var(--border);
    padding: 20px;
    box-shadow: 0 8px 24px rgba(0,0,0,.1);
    transform: translateY(-110%);
    opacity: 0;
    transition: transform var(--t) var(--ease), opacity var(--t) var(--ease);
    pointer-events: none;
  }
  .nav.open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: all;
  }
  .nav__list   { flex-direction: column; gap: 0; }
  .nav__link   {
    display: block;
    padding: 14px 0;
    font-size: 16px;
    border-bottom: 1px solid var(--border);
  }
  .nav__link:last-child { border-bottom: none; }

  .header__actions .btn { display: none; }
  .header__phone { font-size: 13px; }
  .burger { display: flex; }

  /* Hero mobile */
  .hero__image { height: 60vw; }
  .hero__text  { padding: 40px var(--container-px-mob); }
  .hero__actions { flex-direction: column; }
  .hero__actions .btn { width: 100%; justify-content: center; }
  .hero__stats { gap: 20px; flex-wrap: wrap; }

  /* Grids mobile */
  .features__grid { grid-template-columns: 1fr; }
  .services__grid { grid-template-columns: 1fr; }
  .doctors__grid  { grid-template-columns: 1fr; }
  .about__numbers { grid-template-columns: repeat(2, 1fr); }

  /* Form */
  .form-row { grid-template-columns: 1fr; }

  /* Contacts */
  .contacts__btns { flex-direction: column; }
  .contacts__btns .btn { width: 100%; justify-content: center; }

  /* Footer */
  .footer__top { grid-template-columns: 1fr; gap: 32px; padding-top: 40px; }
  .footer__col--brand { grid-column: auto; }

  /* Modal */
  .modal__content { padding: 36px 24px; }
}
