:root {
  --container-max: 1416px;
  --container-pad: 15px;

  --c-bg-gray: #f4f7f9;
  --c-white: #ffffff;
  --c-main: #2472a4;
  --c-main-middle: #4a9fd1;
  --c-accent: #8ed1ef;
  --c-main-15: rgba(36, 114, 164, 0.15);
  --c-white-20: rgba(255, 255, 255, 0.2);
  --c-header-overlay: rgba(15, 55, 82, 0.72);
  --c-panel-dark: #2c4a5a;
  --c-main-text: #2b3440;
  --c-text-gray: #7a8493;

  --ff-base: "Ubuntu", "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;

  --fw-light: 300;
  --fw-regular: 400;
  --fw-medium: 500;
  --fw-semibold: 600;
  --fw-bold: 700;

  --fs-navigation: 14px;
  --fs-main-text: 17px;
  --fs-button: 16px;

  --lh-tight: 1.15em;
  --lh-normal: 1.25em;
  --lh-relaxed: 1.6em;

  --r-sm: 8px;
  --r-md: 12px;
  --r-lg: 20px;
  --r-xl: 24px;
  --r-xxl: 48px;
  --r-button: 48px;
  --r-card: 24px;
}

* { box-sizing: border-box; }

html, body { margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  min-height: 100vh;
  font-family: var(--ff-base);
  font-size: var(--fs-main-text);
  font-weight: var(--fw-regular);
  line-height: var(--lh-relaxed);
  color: var(--c-main);
  background-color: var(--c-bg-gray);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, p, ul { margin: 0; }
ul { padding: 0; list-style: none; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
a:hover { color: var(--c-main-middle); }
button { cursor: pointer; font: inherit; color: inherit; background: none; border: 0; }

#doctor, #specialization, #why, #services, #gallery, #insurance, #insurance-trust, #faq, #contacts {
  scroll-margin-top: 110px;
}

.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding-left: var(--container-pad);
  padding-right: var(--container-pad);
}

.section-title {
  font-size: 32px;
  font-weight: var(--fw-bold);
  line-height: var(--lh-normal);
  color: var(--c-main);
  text-align: center;
}
.section-lead {
  max-width: 700px;
  margin: 16px auto 0;
  text-align: center;
  color: var(--c-text-gray);
  font-size: 16px;
}

/* placeholder box for missing photos */
.placeholder-img {
  position: relative;
  background: repeating-linear-gradient(135deg, #e6ecf1, #e6ecf1 10px, #f2f6f9 10px, #f2f6f9 20px);
  overflow: hidden;
}
.placeholder-img::after {
  content: attr(data-placeholder);
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  text-align: center; padding: 10px;
  font-size: 12.5px; color: var(--c-text-gray);
  background: rgba(255,255,255,.5);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 46px;
  padding: 10px 26px;
  border: 1px solid transparent;
  border-radius: var(--r-button);
  font-size: var(--fs-button);
  font-weight: var(--fw-medium);
  transition: background-color .2s ease, color .2s ease, border-color .2s ease, transform .15s ease;
}
.btn--primary { background: var(--c-main); border-color: var(--c-main); color: var(--c-white); }
.btn--primary:hover { background: var(--c-main-middle); border-color: var(--c-main-middle); color: var(--c-white); transform: translateY(-1px); }
.btn--outline { background: transparent; border-color: var(--c-main); color: var(--c-main); }
.btn--outline:hover { background: var(--c-main-15); color: var(--c-main); }
.btn--outline-white { background: rgba(255,255,255,.1); border-width: 2px; border-color: rgba(255,255,255,.9); color: var(--c-white); }
.btn--outline-white:hover { background: rgba(255,255,255,.22); border-color: var(--c-white); }

/* ===================== TOPBAR ===================== */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
}
.topbar {
  height: 82px;
  padding: 14px 24px;
  background-color: var(--c-header-overlay);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.1);
}
.topbar__inner {
  max-width: var(--container-max);
  margin: 0 auto;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}
.topbar__left { display: flex; align-items: center; gap: 14px; min-width: 0; }
.topbar__menu-btn {
  display: none;
  align-items: center; justify-content: center;
  width: 34px; height: 34px;
  color: var(--c-white);
}
.topbar__menu-btn img { width: 24px; height: 24px; }

.topbar__brand { display: inline-flex; align-items: center; gap: 10px; color: var(--c-white); }
.topbar__logo-icon { color: var(--c-accent); width: 32px; height: 17px; }
.topbar__brand-name { font-size: 19px; font-weight: var(--fw-semibold); white-space: nowrap; }
.nav-snake-icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 28px; height: 28px; margin-left: 8px;
  border-radius: 50%; background: var(--c-accent); color: var(--c-main);
  font-size: 15px; line-height: 1; vertical-align: middle;
}

.topbar__right { display: flex; align-items: center; gap: 26px; }
.topbar__item {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 15px; font-weight: var(--fw-medium);
  color: var(--c-white); white-space: nowrap;
}
.topbar__icon { width: 22px; height: 22px; flex: 0 0 auto; }
.topbar__appointment-btn { padding: 9px 20px; font-size: 14px; }

.topbar__lang-dropdown { position: relative; }
.topbar__lang {
  display: inline-flex; align-items: center; gap: 6px;
  height: 32px; padding: 0 8px;
  border-radius: 8px; color: var(--c-white); font-size: 15px;
}
.topbar__lang-chevron { width: 8px; height: 5px; transition: transform .25s ease; }
.topbar__lang-dropdown.is-open .topbar__lang-chevron { transform: rotate(180deg); }
.topbar__lang-menu {
  position: absolute; top: 38px; right: 0; width: 60px;
  background: var(--c-main); border-radius: 8px; overflow: hidden;
  box-shadow: 0 12px 32px rgba(0,0,0,.22);
  opacity: 0; transform: translateY(-6px); pointer-events: none;
  transition: opacity .2s ease, transform .2s ease;
}
.topbar__lang-menu.is-visible { opacity: 1; transform: translateY(0); pointer-events: auto; }
.topbar__lang-option { display: block; padding: 9px 12px; color: var(--c-white); font-size: 14px; }
.topbar__lang-option:hover { background: #142a45; color: var(--c-white); }
.topbar__lang-option.is-active { background: var(--c-main-middle); font-weight: var(--fw-semibold); }

/* ===================== MOBILE MENU ===================== */
body.menu-open { overflow: hidden; }
.mobile-menu { position: fixed; inset: 0; z-index: 1400; display: block; visibility: hidden; pointer-events: none; }
.mobile-menu__overlay { position: absolute; inset: 0; border: 0; background: rgba(17,63,54,.45); opacity: 0; transition: opacity .3s ease; }
.mobile-menu__panel {
  position: absolute; top: 0; left: 0; height: 100dvh; width: min(340px, 82vw);
  background: var(--c-panel-dark); color: var(--c-white);
  transform: translateX(-102%);
  transition: transform .38s cubic-bezier(.22,1,.36,1);
  box-shadow: 0 16px 40px rgba(0,0,0,.35);
  overflow-y: auto;
  display: flex; flex-direction: column;
  padding: 18px 18px 28px;
}
.mobile-menu.is-open { visibility: visible; pointer-events: auto; }
.mobile-menu.is-open .mobile-menu__overlay { opacity: 1; }
.mobile-menu.is-open .mobile-menu__panel { transform: translateX(0); }
.mobile-menu__header {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 34px; padding-bottom: 18px; border-bottom: 1px solid rgba(255,255,255,.12);
}
.mobile-menu__header .topbar__brand { color: var(--c-white); }
.mobile-menu__header .topbar__logo-icon { color: var(--c-accent); }
.mobile-menu__close { width: 40px; height: 40px; display: flex; align-items: center; justify-content: center; color: var(--c-white); opacity: .8; }
.mobile-menu__close:hover { color: var(--c-accent); opacity: 1; }
.mobile-menu__nav { margin-bottom: 32px; }
.mobile-menu__nav-list { display: flex; flex-direction: column; }
.mobile-menu__nav-list li:last-child .mobile-menu__nav-link { border-bottom: 0; }
.mobile-menu__nav-link {
  display: block; font-size: 16px; color: var(--c-white); opacity: .82;
  padding: 18px 8px 18px 17px; margin: 0 -8px;
  border-bottom: 1px solid rgba(255,255,255,.12);
  border-left: 3px solid transparent;
  transition: background-color .2s ease, border-left-color .2s ease, opacity .2s ease, padding-left .2s ease;
}
.mobile-menu__nav-link:hover,
.mobile-menu__nav-link:focus-visible {
  opacity: 1; background: rgba(255,255,255,.07); border-left-color: var(--c-main-middle); padding-left: 21px;
}
.mobile-menu__nav-link:focus-visible { outline: none; }
.mobile-menu__nav-link:active {
  opacity: 1; font-weight: var(--fw-semibold); color: var(--c-accent);
  background: rgba(255,255,255,.1); border-left-color: var(--c-main-middle);
}
.mobile-menu__contacts { padding-top: 20px; border-top: 1px solid rgba(255,255,255,.18); display: flex; flex-direction: column; gap: 14px; }
.mobile-menu__contact-row { display: flex; flex-direction: column; gap: 4px; padding-bottom: 14px; border-bottom: 1px solid rgba(255,255,255,.12); }
.mobile-menu__contact-row:last-child { border-bottom: 0; }
.mobile-menu__contact-label { font-size: 13px; font-weight: var(--fw-semibold); color: var(--c-accent); text-transform: uppercase; letter-spacing: .04em; }
.mobile-menu__contact-value { font-size: 15px; color: rgba(255,255,255,.88); }
.mobile-menu__map-wrap { width: 100%; height: 110px; border-radius: 14px; overflow: hidden; margin-top: 6px; border: 1px solid rgba(255,255,255,.15); }
.mobile-menu__map-wrap iframe { width: 100%; height: 110px; border: 0; display: block; }

/* ===================== HERO ===================== */
.hero-wrap { position: relative; }
.hero-wrap .hero-media { position: absolute; inset: 0; }
.hero-wrap .hero-media::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(17,63,54,.65), rgba(17,63,54,.82)); }
.hero {
  position: relative;
  min-height: 460px;
  padding: 150px 0 70px;
}
.hero__content {
  position: relative; z-index: 2;
  display: flex; flex-direction: column; align-items: center; gap: 44px;
}
.hero-nav__list { display: flex; flex-wrap: wrap; justify-content: center; gap: 26px; }
.hero-nav__link { font-size: var(--fs-navigation); font-weight: var(--fw-medium); color: var(--c-white); opacity: .85; }
.hero-nav__link:hover, .hero-nav__link--active { opacity: 1; color: var(--c-accent); }

.hero__eyebrow { text-align: center; color: rgba(255,255,255,.8); font-size: 16px; margin-bottom: 10px; }
.hero__title { max-width: 780px; margin: 0 auto; font-size: clamp(34px, 5vw, 52px); font-weight: var(--fw-bold); line-height: 1.15; text-align: center; color: var(--c-white); }
.hero__name { display: block; margin-top: 6px; color: var(--c-accent); }
.nobreak { white-space: nowrap; }
.hero__sub { max-width: 620px; margin: 0 auto; text-align: center; color: rgba(255,255,255,.85); font-size: 17px; }
.hero__actions { display: flex; gap: 16px; flex-wrap: wrap; justify-content: center; }

.address-strip { background: var(--c-main); color: #fff; }
.address-strip .container { display: flex; align-items: center; justify-content: center; gap: 10px; padding: 12px 0; font-size: 14px; }
.address-strip img { width: 18px; height: 18px; filter: brightness(0) invert(1); }

/* ===================== INSURANCE TRUST STRIP ===================== */
.insurance-trust { background: var(--c-white); border-bottom: 1px solid var(--c-main-15); padding: 22px 0; }
.insurance-trust__inner { display: flex; flex-direction: column; align-items: center; gap: 14px; }
.insurance-trust__label { font-size: 14.5px; font-weight: var(--fw-medium); color: var(--c-main); text-align: center; }
.insurance-trust__badges { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.trust-pill {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 7px 14px; border-radius: 999px;
  background: var(--c-bg-gray); color: var(--c-main-text);
  font-size: 13px; font-weight: var(--fw-medium);
}
.trust-pill svg { width: 15px; height: 15px; flex: 0 0 auto; color: var(--c-main-middle); }

/* ===================== DOCTOR CARD ===================== */
.doctor { padding: 88px 0 0; }
.doctor-card {
  display: flex; align-items: stretch; gap: 40px;
  max-width: 1194px; margin: 40px auto 0;
  border-radius: var(--r-xxl);
  background: var(--c-white);
  padding: 32px;
}
.doctor-card__media { flex: 0 0 340px; }
.doctor-card__media .placeholder-img,
.doctor-card__media img { width: 340px; height: 400px; border-radius: var(--r-md); object-fit: cover; display: block; }
.doctor-card__content { display: flex; flex-direction: column; gap: 20px; min-width: 0; padding: 8px 8px 8px 0; }
.doctor-card__exp-badge {
  display: inline-flex; align-items: center; width: fit-content;
  padding: 8px 18px; border-radius: 40px;
  background: var(--c-main); color: var(--c-white);
  font-size: 14px; font-weight: var(--fw-semibold);
}
.doctor-card__name { font-size: 27px; font-weight: var(--fw-bold); color: var(--c-main); }
.doctor-card__degree { font-size: 16px; color: var(--c-main-text); }
.doctor-card__bio { font-size: 16px; line-height: 1.65; color: var(--c-main-text); }
.doctor-card__facts { display: flex; flex-direction: column; gap: 9px; margin-top: 4px; }
.doctor-card__facts li { font-size: 14.5px; line-height: 1.55; color: var(--c-main-text); }
.doctor-card__row { display: inline-flex; align-items: center; gap: 10px; font-size: 15px; color: var(--c-text-gray); }
.doctor-card__row img { width: 17px; height: 17px; opacity: .8; }
.doctor-card__row a { color: var(--c-main-text); font-weight: var(--fw-medium); }
.doctor-card__actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 6px; }

/* ===================== CV ===================== */
.cv-section { padding: 64px 0 88px; }
.cv-layout { display: grid; grid-template-columns: 300px 1fr; gap: 44px; max-width: 1040px; margin: 40px auto 0; align-items: start; }
.cv-layout__media { position: sticky; top: 110px; border-radius: var(--r-md); overflow: hidden; }
.cv-layout__media img { width: 100%; height: auto; display: block; }
.cv { display: flex; flex-direction: column; gap: 26px; }
@media (max-width: 860px) {
  .cv-layout { grid-template-columns: 1fr; }
  .cv-layout__media { position: static; max-width: 360px; margin: 0 auto; }
}
.cv__section { display: flex; flex-direction: column; gap: 14px; padding-bottom: 22px; border-bottom: 3px solid var(--c-main-15); }
.cv__section:last-child { border-bottom: 0; }
.cv__title { display: flex; align-items: center; gap: 10px; font-size: 19px; font-weight: var(--fw-semibold); color: var(--c-main); }
.cv__title img { width: 22px; height: 22px; }
.cv__content { display: flex; flex-direction: column; gap: 12px; transition: height .3s ease; }
.cv__item { position: relative; padding-left: 20px; font-size: 15px; line-height: 1.6; color: var(--c-main-text); }
.cv__item::before { content: ''; position: absolute; left: 0; top: 9px; width: 6px; height: 6px; border-radius: 50%; background: var(--c-accent); }
.cv__photo { width: 100%; max-width: 600px; height: auto; border-radius: var(--r-md); display: block; margin: 4px auto; }
.cv__toggle {
  display: none; align-items: center; gap: 8px; width: fit-content;
  font-size: 14px; font-weight: var(--fw-medium); color: var(--c-main-middle);
}
.cv__toggle::after { content: ''; width: 18px; height: 18px; background: url("../assets/icons/icon-arrow-down-gray.svg") no-repeat center / 18px 18px; transition: transform .25s ease; }
.cv__section.is-expanded .cv__toggle::after { transform: rotate(180deg); }

/* ===================== SPECIALIZATION ===================== */
.specialization { padding: 88px 0; }
.card-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; margin-top: 44px; }
.problem-card { background: var(--c-white); border-radius: var(--r-lg); padding: 28px 24px; transition: transform .2s ease, box-shadow .2s ease; }
.problem-card:hover { transform: translateY(-4px); box-shadow: 0 16px 32px rgba(17,63,54,.1); }
.icon-circle {
  width: 54px; height: 54px; border-radius: 50%;
  background: var(--c-main-15); color: var(--c-main);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 16px;
}
.problem-card h3 { font-size: 18px; font-weight: var(--fw-semibold); margin-bottom: 8px; color: var(--c-main); }
.problem-card p { font-size: 14px; color: var(--c-text-gray); }

/* ===================== INSURANCE ===================== */
.insurance { padding: 0 0 88px; }
.insurance__note { max-width: 720px; margin: 16px auto 40px; text-align: center; color: var(--c-text-gray); font-size: 14.5px; }

.insurance-columns { display: flex; align-items: stretch; gap: 0; max-width: 1000px; margin: 0 auto; }
.insurance-column { flex: 1; min-width: 0; padding: 28px 32px; background: var(--c-white); border: 1px solid var(--c-main-15); border-radius: var(--r-lg); }
.insurance-column__title {
  font-size: 13.5px; font-weight: var(--fw-semibold); color: var(--c-main);
  text-transform: uppercase; letter-spacing: .05em; text-align: center; margin-bottom: 20px;
}
.insurance-divider { flex: 0 0 2px; background: var(--c-main-15); margin: 4px 24px; border-radius: 2px; }

.insurance-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.insurance-badge {
  background: var(--c-white); border: 1.5px solid var(--c-main-15); border-radius: var(--r-md);
  padding: 20px 12px; text-align: center; font-weight: var(--fw-semibold); color: var(--c-main); font-size: 14.5px;
  transition: border-color .2s ease, transform .2s ease;
}
.insurance-badge:hover { border-color: var(--c-main-middle); transform: translateY(-2px); }

/* ===================== SERVICES / PRICING ===================== */
.services { padding-bottom: 88px; }
.services__note { max-width: 760px; margin: 16px auto 44px; padding: 14px 22px; border-radius: var(--r-md); background: rgba(17,63,54,.06); font-size: 14.5px; line-height: 1.6; color: var(--c-main-text); text-align: center; }
.price-groups { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; max-width: 1194px; margin: 0 auto; }
.price-group h3 { font-size: 17px; font-weight: var(--fw-semibold); color: var(--c-main-middle); margin-bottom: 6px; }
.services__list { display: flex; flex-direction: column; }
.services__item { border-bottom: 2px solid var(--c-main-15); }
.services__link { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; padding: 16px 0; }
.services__main-label { display: block; font-size: 14.5px; font-weight: var(--fw-medium); color: var(--c-main); line-height: 1.4; }
.services__price { flex: 0 0 auto; font-size: 14.5px; font-weight: var(--fw-bold); color: var(--c-main); white-space: nowrap; }
.services__photo { width: 100%; max-width: 700px; height: auto; border-radius: var(--r-md); display: block; margin: 44px auto; }

/* ===================== WHY ===================== */
.why { padding-bottom: 88px; }
.why__panel { max-width: var(--container-max); margin: 40px auto 0; padding: 46px; border-radius: var(--r-xl); background: var(--c-main); }
.why__list { display: grid; grid-template-columns: repeat(4, 1fr); }
.why__item { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 14px; padding: 0 18px; }
.why__item + .why__item { border-left: 2px solid var(--c-white-20); }
.why__icon { width: 52px; height: 52px; }
.why__text { font-size: 15px; color: var(--c-white); line-height: 1.55; }

/* ===================== GALLERY ===================== */
.gallery { padding-bottom: 88px; }
.gallery-grid { display: grid; grid-template-columns: repeat(3, 1fr); grid-auto-rows: 220px; gap: 16px; margin-top: 44px; }
.gallery-item { padding: 0; width: 100%; height: 100%; border-radius: var(--r-md); overflow: hidden; border: 0; cursor: pointer; background: #e6ecf1; }
.gallery-item img { width: 100%; height: 100%; object-fit: contain; display: block; }
.gallery-grid .gallery-item:first-child { grid-column: span 2; grid-row: span 2; }
.lightbox { position: fixed; inset: 0; background: rgba(10,20,18,.92); display: none; align-items: center; justify-content: center; z-index: 1500; padding: 40px; }
.lightbox.open { display: flex; }
.lightbox-media { width: min(800px, 90vw); aspect-ratio: 4/3; border-radius: var(--r-md); overflow: hidden; }
.lightbox-media img { width: 100%; height: 100%; object-fit: contain; background: #000; }
.lightbox-close { position: absolute; top: 24px; right: 30px; color: #fff; font-size: 34px; line-height: 1; }

/* ===================== FAQ ===================== */
.faq { padding-bottom: 88px; }
.faq__list { max-width: 860px; margin: 40px auto 0; display: flex; flex-direction: column; }
.faq__item { border-bottom: 2px solid var(--c-main-15); overflow: hidden; }
.faq__question { display: flex; align-items: center; justify-content: space-between; gap: 16px; width: 100%; padding: 20px 0; text-align: left; font-size: 16.5px; font-weight: var(--fw-semibold); color: var(--c-main); }
.faq__question:hover { color: var(--c-main-middle); }
.faq__icon { width: 22px; height: 22px; flex: 0 0 auto; transition: transform .3s ease; }
.faq__item.is-open .faq__icon { transform: rotate(180deg); }
.faq__answer { max-height: 0; overflow: hidden; transition: max-height .38s ease; }
.faq__item.is-open .faq__answer { max-height: 600px; }
.faq__answer-inner { padding-bottom: 20px; font-size: 15px; line-height: 1.65; color: var(--c-main-text); }

/* ===================== CONTACT FORM ===================== */
.contact-section { padding-bottom: 88px; }
.contacts-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; max-width: var(--container-max); margin: 40px auto 0; }
.contacts-info__map { aspect-ratio: 16/9; border-radius: var(--r-md); margin-top: 24px; overflow: hidden; }
.contacts-info__map iframe { width: 100%; height: 100%; display: block; }
.contacts-form { background: var(--c-white); border-radius: var(--r-lg); padding: 30px; }
.contacts-form h3 { font-size: 19px; font-weight: var(--fw-semibold); margin-bottom: 18px; color: var(--c-main); }
.form-group { display: flex; flex-direction: column; gap: 6px; margin-bottom: 16px; }
.form-group label { font-size: 13.5px; font-weight: var(--fw-medium); color: var(--c-text-gray); }
.form-group input, .form-group textarea {
  padding: 12px 14px; border: 1px solid var(--c-main-15); border-radius: var(--r-sm);
  font-size: 15px; font-family: inherit; resize: vertical;
}
.form-group input:focus, .form-group textarea:focus { outline: none; border-color: var(--c-main-middle); }
.form-status { text-align: center; font-size: 14px; margin-top: 12px; min-height: 20px; color: var(--c-main-middle); }

/* ===================== FOOTER ===================== */
.site-footer { padding: 64px 0 40px; background: var(--c-bg-gray); border-top: 1px solid var(--c-main-15); }
.footer__top { display: grid; grid-template-columns: 1.2fr 1fr 1fr; gap: 48px; }
.footer__title { font-size: 21px; font-weight: var(--fw-semibold); color: var(--c-main); margin-bottom: 22px; }
.footer__group { margin-bottom: 16px; padding-bottom: 14px; border-bottom: 2px solid var(--c-main-15); }
.footer__group:last-child { border-bottom: 0; }
.footer__label { font-size: 14px; font-weight: var(--fw-medium); color: var(--c-main); margin-bottom: 6px; }
.footer__value { font-size: 15px; color: var(--c-text-gray); }
.footer__value a { color: var(--c-text-gray); }
.footer__value a:hover { color: var(--c-main-middle); }
.footer__map-wrap { width: 100%; max-width: 260px; height: 120px; border-radius: var(--r-md); margin-top: 14px; }

.footer__links { display: flex; flex-direction: column; gap: 12px; }
.footer__links a { font-size: 15px; color: var(--c-main-text); }
.footer__links .btn { margin-top: 8px; width: fit-content; }

.footer__cta p { font-size: 15px; line-height: 1.7; color: var(--c-text-gray); }
.footer__cta p + p { margin-top: 12px; }
.footer__cta a { color: var(--c-main); font-weight: var(--fw-semibold); }

.footer__bottom { display: flex; flex-direction: column; align-items: center; gap: 16px; margin-top: 48px; text-align: center; }
.footer__to-top { min-width: 150px; }
.footer__copyright { font-size: 13px; color: var(--c-text-gray); }

/* ===================== FLOATING BUTTONS ===================== */
.floating-cta {
  position: fixed; right: 22px; bottom: 96px; z-index: 900;
  display: inline-flex; align-items: center; justify-content: center;
  width: 64px; height: 64px; border-radius: 50%;
  background: var(--c-main); color: #fff;
  box-shadow: 0 10px 28px rgba(17,63,54,.35);
  transition: transform .2s ease, background .2s ease;
}
.floating-cta:hover { background: var(--c-main-middle); transform: scale(1.06); color: #fff; }
.floating-cta img { width: 26px; height: 26px; filter: brightness(0) invert(1); }

/* ===================== APPOINTMENT MODAL ===================== */
.appointment-modal { position: fixed; inset: 0; padding: 20px; border: none; background: transparent; z-index: 2000; }
.appointment-modal::backdrop { background: rgba(17,63,54,.55); }
.appointment-modal__content { position: relative; width: 100%; max-width: 480px; margin: auto; background: var(--c-white); border-radius: var(--r-lg); box-shadow: 0 20px 60px rgba(0,0,0,.25); }
.appointment-modal__header { display: flex; justify-content: space-between; align-items: center; padding: 22px 24px 14px; border-bottom: 1px solid #ebebeb; }
.appointment-modal__header h2 { font-size: 20px; font-weight: var(--fw-bold); color: var(--c-main); }
.appointment-modal__close { width: 32px; height: 32px; font-size: 30px; color: #999; display: flex; align-items: center; justify-content: center; }
.appointment-modal__close:hover { color: var(--c-main); }
.appointment-form { padding: 22px 24px; display: flex; flex-direction: column; gap: 14px; }
.appointment-form__submit { margin-top: 6px; }
.appointment-form__error, .appointment-form__success { padding: 12px; border-radius: var(--r-sm); font-size: 13.5px; }
.appointment-form__error { background: #fee; border-left: 4px solid #f44; color: #c33; }
.appointment-form__success { background: #e8f1fa; border-left: 4px solid var(--c-main-middle); color: var(--c-main); }

/* ===================== RESPONSIVE ===================== */
@media (max-width: 1150px) {
  .topbar__right { gap: 16px; }
  .topbar__item span { display: none; }
  .doctor-card__media { flex: 0 0 280px; }
  .doctor-card__media .placeholder-img,
  .doctor-card__media img { width: 280px; height: 340px; }
}

@media (max-width: 980px) {
  .topbar__menu-btn { display: flex; }
  .topbar__item--desktop { display: none; }
  .topbar__appointment-btn { display: none; }
  .card-grid { grid-template-columns: repeat(2, 1fr); }
  .price-groups { grid-template-columns: 1fr; gap: 28px; }
  .why__list { grid-template-columns: repeat(2, 1fr); gap: 28px; }
  .why__item + .why__item { border-left: 0; }
  .why__item:nth-child(2n+1) { border-left: 0; }
  .footer__top { grid-template-columns: 1fr; gap: 40px; }
  .contacts-grid { grid-template-columns: 1fr; }
  .doctor-card { flex-direction: column; }
  .doctor-card__media { flex: 0 0 auto; }
  .doctor-card__media .placeholder-img,
  .doctor-card__media img { width: 100%; max-width: 320px; height: 320px; margin: 0 auto; }
  .insurance-columns { flex-direction: column; }
  .insurance-column { flex: 0 0 auto; }
  .insurance-divider { flex: 0 0 2px; width: 100%; height: 2px; margin: 24px 0; }
}

@media (max-width: 640px) {
  .card-grid { grid-template-columns: 1fr; }
  .hero { padding: 130px 0 56px; }
  .section-title { font-size: 26px; }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 150px; }
  .gallery-grid .gallery-item:first-child { grid-column: span 2; grid-row: span 1; }
  .doctor-card { padding: 22px; }
  .why__panel { padding: 30px 20px; }
  .why__list { grid-template-columns: 1fr; }
  .why__item + .why__item { border-left: 0; border-top: 2px solid var(--c-white-20); padding-top: 20px; }
}
