

/* =========================================================
   ALCOMED LANDING
   Clean editable CSS
   Файл: assets/style.css

   Как редактировать быстро:
   1) Цвета, размеры, шрифт меняй в блоке :root
   2) Фото врача на первом экране меняется в HTML:
      <img class="hero-doctor-photo" src="assets/img/doctor-main.png" ...>
   3) Фото врачей меняются в HTML через .avatar-img
   4) Фото галереи меняются в HTML через style="--photo: url(...)"
   ========================================================= */


/* =========================================================
   01. Настройки проекта
   ========================================================= */

:root {
  /* Цвета */
  --bg: #f2f6f3;
  --bg-soft: #eaf2ec;
  --card: #ffffff;

  --text: #191d1a;
  --muted: #69756d;

  --green: #91cf7b;
  --green-hover: #72b95d;
  --green-dark: #2f6b3d;
  --green-soft: #dff4d8;

  --line: rgba(25, 29, 26, 0.09);
  --white-soft: rgba(255, 255, 255, 0.82);

  /* Размеры */
  --container: 1300px;
  --radius-xl: 42px;
  --radius-lg: 30px;
  --radius-md: 22px;
  --radius-sm: 16px;

  /* Тени */
  --shadow: 0 24px 70px rgba(38, 74, 47, 0.10);
  --shadow-card: 0 14px 36px rgba(36, 69, 42, 0.06);
  --shadow-soft: 0 18px 44px rgba(32, 50, 37, 0.07);

  /* Шрифт */
  --font: "Manrope", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}


/* =========================================================
   02. База
   ========================================================= */

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font);
  color: var(--text);
  background:
    radial-gradient(circle at 80% 0%, rgba(145, 207, 123, 0.28), transparent 28rem),
    var(--bg);
  line-height: 1.55;
}

body.menu-open,
body.modal-open {
  overflow: hidden;
}

img,
svg,
iframe {
  max-width: 100%;
}

img {
  height: auto;
}

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

button,
input,
select {
  font: inherit;
}

button {
  cursor: pointer;
  border: 0;
  background: none;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 720px;
  margin-bottom: 24px;
  font-size: clamp(36px, 6vw, 58px);
  line-height: 0.9;
  letter-spacing: -0.07em;
}

h2 {
  margin-bottom: 18px;
  font-size: clamp(30px, 4vw, 56px);
  line-height: 0.98;
  letter-spacing: -0.06em;
}

h3 {
  margin-bottom: 12px;
  font-size: 22px;
  line-height: 1.05;
  letter-spacing: -0.035em;
}

.container {
  width: min(var(--container), calc(100% - 16px));
  margin: 0 auto;
}

.skip-link {
  position: fixed;
  left: 18px;
  top: -80px;
  z-index: 999;
  padding: 12px 16px;
  border-radius: 999px;
  background: var(--text);
  color: #fff;
  transition: 0.2s;
}

.skip-link:focus {
  top: 18px;
}


/* =========================================================
   03. Кнопки
   ========================================================= */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 52px;
  padding: 14px 22px;
  border-radius: 999px;
  background: var(--green);
  color: #fff;
  font-weight: 900;
  box-shadow: 0 14px 24px rgba(110, 185, 93, 0.26);
  transition: 0.18s ease;
}

.btn::after {
  content: "→";
  width: 24px;
  height: 24px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.26);
}

.btn:hover {
  transform: translateY(-2px);
  background: var(--green-hover);
}

.btn--light {
  background: #fff;
  color: var(--text);
  box-shadow: inset 0 0 0 1px var(--line);
}

.btn--light::after {
  background: var(--green-soft);
  color: var(--green-dark);
}

.btn--dark {
  background: var(--text);
}


/* =========================================================
   04. Шапка
   ========================================================= */

.site-header {
  position: sticky;
  top: 12px;
  z-index: 60;
  padding: 8px 0;
}

.header-shell {
  min-height: 76px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 22px;
  padding: 12px 16px;
  border: 1px solid rgba(255, 255, 255, 0.8);
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: blur(18px);
  box-shadow: var(--shadow-soft);
  border-radius: 28px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 190px;
}

.brand-logo {
  width: 52px;
  height: 52px;
  flex: 0 0 52px;
  display: block;
  object-fit: contain;
  border-radius: 50%;
}

.brand-text strong {
  display: block;
  font-size: 15px;
  letter-spacing: .06em;
  line-height: 1;
}

.brand-text small {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 11px;
  line-height: 1;
}

.brand strong {
  display: block;
  font-size: 15px;
  letter-spacing: 0.06em;
  line-height: 1;
}

.brand small {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 11px;
  line-height: 1;
}

.nav {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
}

.nav a {
  padding: 11px 14px;
  border-radius: 999px;
  color: #515a54;
  font-size: 14px;
  font-weight: 700;
  transition: 0.18s ease;
}

.nav a:hover {
  background: var(--bg-soft);
  color: var(--text);
}

.header-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
}

.header-phone {
  font-size: 14px;
  font-weight: 800;
  white-space: nowrap;
}

.icon-link img {
  width: 30px;
  height: 30px;
  display: block;
  object-fit: contain;
}

.menu-btn {
  display: none;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--bg-soft);
  position: relative;
}

.menu-btn span {
  position: absolute;
  left: 12px;
  right: 12px;
  height: 2px;
  border-radius: 99px;
  background: var(--text);
  transition: 0.2s ease;
}

.menu-btn span:first-child {
  top: 16px;
}

.menu-btn span:last-child {
  top: 25px;
}

.menu-open .menu-btn span:first-child {
  transform: rotate(45deg);
  top: 21px;
}

.menu-open .menu-btn span:last-child {
  transform: rotate(-45deg);
  top: 21px;
}


/* =========================================================
   05. Первый экран
   ========================================================= */

.hero {
  padding: 26px 0 48px;
}

.hero-card {
  min-height: 610px;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(420px, 0.95fr);
  gap: 30px;
  align-items: stretch;
  background: var(--card);
  border-radius: var(--radius-xl);
  padding: 34px;
  box-shadow: var(--shadow);
  overflow: hidden;
}

.hero-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 30px 10px 30px 20px;
}

.hero-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 28px;
}

.hero-badges span {
  display: inline-flex;
  padding: 9px 13px;
  border-radius: 999px;
  background: var(--bg-soft);
  color: var(--green-dark);
  font-size: 13px;
  font-weight: 800;
}

.hero-text {
  max-width: 640px;
  margin-bottom: 28px;
  color: var(--muted);
  font-size: 18px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 18px;
}

.hero-note {
  color: #7e887f;
  font-size: 13px;
}


/* =========================================================
   06. Зеленая карточка врача на первом экране
   ВАЖНО: этот блок полностью заменяет старый блок 06
   ========================================================= */

.hero-visual {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 540px;
  border-radius: 34px;
  background:
    radial-gradient(circle at 30% 25%, rgba(255, 255, 255, 0.33), transparent 16rem),
    linear-gradient(145deg, #9bd985, #73bd61);
  overflow: hidden;
}

.hero-visual::before {
  content: "";
  position: absolute;
  right: 34px;
  top: 46px;
  width: 150px;
  height: 150px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.18);
}

.hero-visual::after {
  content: "";
  position: absolute;
  left: 40px;
  bottom: 42px;
  width: 170px;
  height: 170px;
  border-radius: 50%;
  border: 34px solid rgba(255, 255, 255, 0.16);
}

/* Весь блок с врачом */
.doctor-card {
  position: absolute;
  left: 42%;
  bottom: -35px;
  width: 100%;
  max-width: 560px;
  height: 110%;
  transform: translateX(-50%);
  z-index: 3;
}

/* Светлая карточка за врачом */
.doctor-bg-panel {
  position: absolute;
  left: 50%;
  bottom: 52px;
  z-index: 1;
  width: 72%;
  height: 82%;
  transform: translateX(-50%);
  border-radius: 34px;
  background: rgba(255, 255, 255, 0.22);
  backdrop-filter: blur(3px);
}

/* Фото врача */
.hero-doctor-photo {
  position: absolute;
  left: 50%;
  bottom: 0;
  z-index: 3;
  width: auto;
  height: 100%;
  max-width: none;
  transform: translateX(-50%);
  object-fit: contain;
  object-position: center bottom;
  pointer-events: none;
}

/* Плашка Дежурный врач */
.doctor-label {
  position: absolute;
  right: -16px;
  top: 150px;
  z-index: 5;
  padding: 16px 18px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 14px 34px rgba(36, 77, 42, 0.16);
}

.doctor-label strong {
  display: block;
  font-size: 14px;
}

.doctor-label span {
  display: block;
  margin-top: 2px;
  color: var(--muted);
  font-size: 11px;
}

/* Маленькие карточки */
.mini-stat {
  position: absolute;
  z-index: 6;
  min-width: 158px;
  padding: 14px 16px;
  border-radius: 22px;
  background: #fff;
  box-shadow: 0 18px 38px rgba(35, 76, 41, 0.18);
}

.mini-stat strong {
  display: block;
  font-size: 24px;
  line-height: 1;
  letter-spacing: -0.05em;
}

.mini-stat span {
  display: block;
  margin-top: 7px;
  color: var(--muted);
  font-size: 12px;
}

.mini-stat--top {
  left: 30px;
  top: 34px;
}

.mini-stat--bottom {
  right: 28px;
  bottom: 32px;
}

/* Кружки сверху справа */
.circle-icons {
  position: absolute;
  right: 30px;
  top: 30px;
  z-index: 5;
  display: flex;
}

.circle-icons span {
  width: 28px;
  height: 28px;
  margin-left: -8px;
  border-radius: 50%;
  background: #fff;
  border: 2px solid rgba(145, 207, 123, 0.65);
}

@media (max-width: 1050px) {
  .hero-visual {
    min-height: 500px;
  }

  .doctor-card {
    width: 86%;
    max-width: 430px;
    height: 96%;
    bottom: -22px;
  }

  .hero-doctor-photo {
    height: 98%;
  }

  .doctor-label {
    right: -8px;
    top: 130px;
  }
}

@media (max-width: 640px) {
  .hero-visual {
    min-height: 390px;
    border-radius: 26px;
  }

  .hero-visual::before {
    width: 110px;
    height: 110px;
    right: 18px;
    top: 52px;
  }

  .hero-visual::after {
    left: 18px;
    bottom: 38px;
    width: 130px;
    height: 130px;
    border-width: 26px;
  }

  .doctor-card {
    width: 100%;
    max-width: 360px;
    height: 96%;
    bottom: -18px;
  }

  .doctor-bg-panel {
    bottom: 34px;
    width: 74%;
    height: 82%;
    border-radius: 28px;
  }

  .hero-doctor-photo {
    height: 96%;
  }

  .doctor-label {
    right: -16px;
    top: 104px;
    padding: 13px 14px;
    border-radius: 18px;
  }

  .mini-stat {
    min-width: 124px;
    padding: 12px;
    border-radius: 18px;
  }

  .mini-stat strong {
    font-size: 20px;
  }

  .mini-stat span {
    font-size: 11px;
  }

  .mini-stat--top {
    left: 12px;
    top: 16px;
  }

  .mini-stat--bottom {
    right: 12px;
    bottom: 16px;
  }

  .circle-icons {
    right: 20px;
    top: 24px;
  }

  .circle-icons span {
    width: 24px;
    height: 24px;
  }
}



/* =========================================================
   07. Общие секции
   ========================================================= */

.section {
  padding: 62px 0;
}

.section-kicker {
  display: block;
  margin-bottom: 14px;
  color: var(--green-hover);
  font-weight: 900;
  letter-spacing: -0.02em;
}

.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 28px;
  margin-bottom: 26px;
}

.section-head > div {
  max-width: 670px;
}

.section-head p {
  max-width: 440px;
  margin-bottom: 8px;
  color: var(--muted);
}

.section-head--center {
  display: block;
  max-width: 760px;
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}


/* =========================================================
   08. Цифры
   ========================================================= */

.numbers-grid {
  display: grid;
  grid-template-columns: 0.95fr 1fr 1fr;
  gap: 18px;
  align-items: stretch;
}

.numbers-grid .section-kicker {
  align-self: start;
  padding-top: 24px;

  font-size: clamp(34px, 4.5vw, 58px);
  line-height: 0.95;
  letter-spacing: -0.07em;
  color: var(--text);
}

.number-card {
  min-height: 170px;
  padding: 26px;
  border-radius: var(--radius-lg);
  background: #fff;
  box-shadow: var(--shadow-card);
}

.number-card strong {
  display: block;
  margin-bottom: 12px;
  color: var(--green-hover);
  font-size: clamp(30px, 5vw, 50px);
  line-height: 0.84;
  letter-spacing: -0.07em;
}

.number-card span {
  display: block;
  max-width: 230px;
  color: var(--muted);
  font-size: 14px;
}

.number-card--big {
  grid-column: 2 / 4;
}

.number-card--green {
  background: var(--green);
  color: #fff;
}

.number-card--green strong,
.number-card--green span {
  color: #fff;
}


/* =========================================================
   09. Услуги
   ========================================================= */

.service-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.service-card {
  position: relative;
  min-height: 230px;
  padding: 26px;
  overflow: hidden;
  border-radius: var(--radius-md);
  background: #fff;
  box-shadow: var(--shadow-card);
}

.service-num {
  display: inline-flex;
  margin-bottom: 36px;
  padding: 7px 14px;
  border-radius: 999px;
  background: var(--green-soft);
  color: var(--green-dark);
  font-size: 12px;
  font-weight: 900;
}

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

.service-card a {
  display: inline-flex;
  margin-top: 12px;
  color: var(--green-dark);
  font-weight: 900;
}

.service-card--image {
  background: linear-gradient(145deg, #fff, #e7f5e3);
}

.soft-image {
  width: 100%;
  height: 130px;
  margin-bottom: 22px;
  border-radius: 24px;
  background:
    linear-gradient(135deg, rgba(145, 207, 123, 0.42), rgba(255, 255, 255, 0.6)),
    radial-gradient(circle at 70% 20%, #fff, transparent 7rem);
}


/* =========================================================
   10. Преимущества
   ========================================================= */

.benefit-layout {
  display: grid;
  grid-template-columns: 0.86fr 1.14fr;
  gap: 18px;
}

.benefit-card--title {
  padding: 34px;
  border-radius: var(--radius-lg);
  background: var(--text);
  color: #fff;
}

.benefit-card--title p {
  color: rgba(255, 255, 255, 0.72);
}

.benefit-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
}

.benefit-list article {
  padding: 24px;
  border-radius: var(--radius-md);
  background: #fff;
  box-shadow: var(--shadow-card);
}

.benefit-list span {
  display: block;
  margin-bottom: 10px;
  color: var(--green-dark);
  font-weight: 900;
}

.benefit-list p {
  margin-bottom: 0;
  color: var(--muted);
}


/* =========================================================
   11. Как проходит лечение
   ========================================================= */

.steps-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

.step-card {
  min-height: 250px;
  padding: 26px;
  border-radius: var(--radius-md);
  background: #fff;
  box-shadow: var(--shadow-card);
}

.step-card span {
  display: inline-flex;
  margin-bottom: 54px;
  padding: 7px 14px;
  border-radius: 999px;
  background: var(--green-soft);
  color: var(--green-dark);
  font-size: 12px;
  font-weight: 900;
}

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


/* =========================================================
   12. Врачи
   ========================================================= */

.doctors-layout {
  display: grid;
  grid-template-columns: 0.78fr 1.22fr;
  gap: 18px;
}

.doctors-text {
  padding: 36px;
  border-radius: var(--radius-lg);
  background: #fff;
  box-shadow: var(--shadow-card);
}

.doctors-text p {
  margin-bottom: 24px;
  color: var(--muted);
}

.doctor-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.doctor-item {
  padding: 18px;
  border-radius: var(--radius-md);
  background: #fff;
  box-shadow: var(--shadow-card);
}

.doctor-item p {
  color: var(--muted);
}

/* Если реальных фото врачей пока нет */
.avatar {
  height: 250px;
  margin-bottom: 18px;
  border-radius: 26px;
  background: linear-gradient(145deg, var(--green-soft), #fff);
  position: relative;
  overflow: hidden;
}

/* Если поставил реальные фото врачей через <img class="avatar-img"> */
.avatar-img {
  width: 100%;
  height: 250px;
  display: block;
  margin-bottom: 18px;
  border-radius: 26px;
  object-fit: cover;
  object-position: center;
}


/* =========================================================
   13. Галерея
   Фото меняются в HTML:
   <div class="gallery-tile" style="--photo: url('assets/img/foto.webp')">
   ========================================================= */

.gallery-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr;
  grid-auto-rows: 210px;
  gap: 18px;
}

.gallery-tile {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-lg);
  background-image:
    linear-gradient(180deg, rgba(15, 36, 20, 0.08), rgba(15, 36, 20, 0.28)),
    var(--photo);
  background-color: #e6efe9;
  background-size: cover;
  background-position: center;
  box-shadow: var(--shadow-card);
}

.gallery-tile span {
  position: absolute;
  left: 24px;
  bottom: 24px;
  z-index: 2;
  padding: 9px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.82);
  font-weight: 900;
}

.gallery-tile--wide {
  grid-row: span 2;
}

.gallery-tile--green {
  background:
    linear-gradient(135deg, rgba(145, 207, 123, 0.92), rgba(199, 235, 185, 0.86)),
    var(--photo);
  background-size: cover;
  background-position: center;
}


/* =========================================================
   14. Отзывы
   ========================================================= */

.reviews-layout {
  display: grid;
  grid-template-columns: 0.82fr 1.18fr;
  gap: 18px;
}

.review-intro {
  padding: 34px;
  border-radius: var(--radius-lg);
  background: #fff;
  box-shadow: var(--shadow-card);
}

.review-intro p {
  color: var(--muted);
}

.review-cards {
  display: grid;
  gap: 18px;
}

.review-cards article {
  padding: 28px;
  border-radius: var(--radius-md);
  background: #fff;
  box-shadow: var(--shadow-card);
}

.review-cards p {
  color: var(--muted);
}

.review-cards span {
  color: var(--muted);
  font-size: 14px;
  font-weight: 800;
}

.stars {
  margin-bottom: 18px;
  color: var(--green-hover);
  letter-spacing: 3px;
}


/* =========================================================
   15. FAQ
   ========================================================= */

.faq-layout {
  display: grid;
  grid-template-columns: 0.75fr 1.25fr;
  gap: 24px;
  align-items: start;
}

.faq-layout > div:first-child p {
  color: var(--muted);
}

.faq-list {
  display: grid;
  gap: 12px;
}

.faq-item {
  overflow: hidden;
  border-radius: var(--radius-md);
  background: #fff;
  box-shadow: var(--shadow-card);
}

.faq-item button {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 22px 24px;
  text-align: left;
  color: var(--text);
  font-weight: 900;
}

.faq-item button span {
  width: 25px;
  height: 25px;
  flex: 0 0 25px;
  border-radius: 50%;
  background: var(--green-soft);
  position: relative;
}

.faq-item button span::before,
.faq-item button span::after {
  content: "";
  position: absolute;
  left: 7px;
  right: 7px;
  top: 12px;
  height: 2px;
  background: var(--green-dark);
}

.faq-item button span::after {
  transform: rotate(90deg);
}

.faq-item.is-open button span::after {
  transform: rotate(0deg);
}

.faq-item div {
  display: none;
  padding: 0 24px 24px;
  color: var(--muted);
}

.faq-item.is-open div {
  display: block;
}

.faq-item p {
  margin-bottom: 0;
}


/* =========================================================
   16. Контакты и форма
   ========================================================= */

.contact-card {
  display: grid;
  grid-template-columns: 1fr 0.85fr;
  gap: 18px;
  padding: 22px;
  border-radius: var(--radius-xl);
  background: var(--green);
  box-shadow: var(--shadow);
}

.contact-info {
  padding: 32px;
  color: #fff;
}

.contact-info .section-kicker,
.contact-info p {
  color: rgba(255, 255, 255, 0.82);
}

.contact-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin-top: 28px;
}

.contact-list a,
.contact-list div {
  padding: 18px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.16);
  color: #fff;
}

.contact-list strong,
.contact-list span {
  display: block;
}

.contact-list span {
  margin-top: 5px;
  color: rgba(255, 255, 255, 0.82);
  font-size: 14px;
}

.lead-form {
  display: grid;
  align-content: start;
  gap: 14px;
  padding: 22px;
  border-radius: var(--radius-lg);
  background: #fff;
}

.lead-form label span {
  display: block;
  margin: 0 0 7px 4px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.lead-form input,
.lead-form select {
  width: 100%;
  height: 54px;
  padding: 0 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--bg);
  color: var(--text);
  outline: none;
}

.lead-form input:focus,
.lead-form select:focus {
  border-color: var(--green);
  box-shadow: 0 0 0 4px rgba(145, 207, 123, 0.18);
}

.lead-form p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 12px;
}

.lead-form p button {
  color: var(--green-dark);
  font-weight: 900;
}

.map-box {
  grid-column: 1 / -1;
  overflow: hidden;
  height: 350px;
  border-radius: var(--radius-lg);
  background: #d8e6dd;
}

.map-box iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
  filter: saturate(0.86);
}


/* =========================================================
   17. Футер
   ========================================================= */

.footer {
  padding: 34px 0 110px;
  color: var(--muted);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr auto;
  gap: 20px;
  align-items: start;
  border-top: 1px solid var(--line);
  padding-top: 24px;
}

.footer strong {
  display: block;
  margin-bottom: 8px;
  color: var(--text);
}

.footer p {
  margin-bottom: 0;
  font-size: 13px;
}

.footer-links {
  display: grid;
  gap: 8px;
  justify-items: end;
}

.footer-links button {
  color: var(--green-dark);
  font-weight: 900;
  text-align: right;
}


/* =========================================================
   18. Нижняя мобильная CTA-панель
   ========================================================= */

.fixed-cta {
  position: fixed;
  left: 50%;
  bottom: 16px;
  z-index: 55;
  display: none;
  gap: 8px;
  width: min(430px, calc(100% - 24px));
  padding: 8px;
  transform: translateX(-50%);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(16px);
  box-shadow: 0 18px 50px rgba(32, 50, 37, 0.18);
}

.fixed-cta a {
  flex: 1;
  min-height: 48px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: var(--text);
  color: #fff;
  font-weight: 900;
}

.fixed-cta a:last-child {
  background: var(--green);
}


/* =========================================================
   19. Модальные окна
   ========================================================= */

.modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: none;
}

.modal.is-open {
  display: block;
}

.modal__overlay {
  position: absolute;
  inset: 0;
  background: rgba(18, 23, 19, 0.54);
  backdrop-filter: blur(8px);
}

.modal__panel {
  position: relative;
  width: min(620px, calc(100% - 28px));
  max-height: calc(100vh - 48px);
  overflow: auto;
  margin: 24px auto;
  padding: 30px;
  border-radius: 28px;
  background: #fff;
  box-shadow: var(--shadow);
}

.modal__panel h2 {
  font-size: 36px;
}

.modal__panel p {
  color: var(--muted);
}

.modal__close {
  position: absolute;
  right: 16px;
  top: 16px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--bg);
  font-size: 24px;
  line-height: 1;
}


/* =========================================================
   20. Адаптив: планшеты
   ========================================================= */

@media (max-width: 1050px) {
  .header-shell {
    grid-template-columns: auto auto;
    justify-content: space-between;
  }

  .nav {
    position: fixed;
    left: 18px;
    right: 18px;
    top: 102px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 14px;
    border-radius: 24px;
    background: #fff;
    box-shadow: var(--shadow);
  }

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

  .nav a {
    text-align: center;
  }

  .header-phone {
    display: none;
  }

  .menu-btn {
    display: block;
  }

  .hero-card {
    grid-template-columns: 1fr;
  }

  .hero-content {
    padding: 16px 4px;
  }

  .hero-visual {
    min-height: 500px;
  }

  .numbers-grid,
  .service-grid,
  .benefit-layout,
  .doctors-layout,
  .reviews-layout,
  .faq-layout,
  .contact-card {
    grid-template-columns: 1fr;
  }

  .numbers-grid .section-kicker,
  .number-card--big {
    grid-row: auto;
    grid-column: auto;
  }

  .steps-grid,
  .benefit-list,
  .doctor-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .gallery-grid {
    grid-template-columns: 1fr 1fr;
  }

  .gallery-tile--wide {
    grid-row: auto;
    grid-column: span 2;
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }

  .footer-links {
    justify-items: start;
  }
}


/* =========================================================
   21. Адаптив: телефоны
   ========================================================= */

@media (max-width: 640px) {
  .container {
    width: min(100% - 22px, var(--container));
  }

  .site-header {
    top: 6px;
  }

  .header-shell {
    min-height: 64px;
    padding: 10px;
    border-radius: 22px;
  }

  .brand {
    min-width: auto;
  }

  .brand small {
    display: none;
  }

  .icon-link {
    display: none;
  }

  .hero {
    padding-top: 10px;
  }

  .hero-card {
    gap: 16px;
    padding: 18px;
    border-radius: 30px;
  }

  h1 {
    font-size: clamp(42px, 16vw, 50px);
  }

  h2 {
    font-size: 36px;
  }

  .hero-badges span {
    padding: 8px 11px;
    font-size: 12px;
  }

  .hero-text {
    font-size: 16px;
  }

  .hero-actions {
    flex-direction: column;
  }

  .btn {
    width: 100%;
  }

  .hero-visual {
    min-height: 390px;
    border-radius: 26px;
  }

  .hero-visual::before {
    width: 110px;
    height: 110px;
    right: 18px;
    top: 52px;
  }

  .hero-visual::after {
    left: 18px;
    bottom: 38px;
    width: 130px;
    height: 130px;
    border-width: 26px;
  }

  .doctor-card {
    width: 86%;
    height: 88%;
    max-width: 330px;
  }

  .doctor-bg-panel {
    bottom: 28px;
    width: 86%;
    height: 78%;
    border-radius: 28px;
  }

  .hero-doctor-photo {
    height: 86%;
  }

  .doctor-label {
    right: -4px;
    top: 95px;
    padding: 13px 14px;
    border-radius: 18px;
  }

  .mini-stat {
    min-width: 124px;
    padding: 12px;
    border-radius: 18px;
  }

  .mini-stat strong {
    font-size: 20px;
  }

  .mini-stat span {
    font-size: 11px;
  }

  .mini-stat--top {
    left: 12px;
    top: 16px;
  }

  .mini-stat--bottom {
    right: 12px;
    bottom: 16px;
  }

  .circle-icons {
    right: 20px;
    top: 24px;
  }

  .circle-icons span {
    width: 24px;
    height: 24px;
  }

  .section {
    padding: 42px 0;
  }

  .section-head {
    display: block;
  }

  .service-grid,
  .steps-grid,
  .benefit-list,
  .doctor-grid,
  .gallery-grid,
  .contact-list {
    grid-template-columns: 1fr;
  }

  .gallery-tile--wide {
    grid-column: auto;
  }

  .gallery-grid {
    grid-auto-rows: 170px;
  }

  .contact-card {
    padding: 12px;
    border-radius: 28px;
  }

  .contact-info {
    padding: 22px 14px;
  }

  .map-box {
    height: 280px;
  }

  .fixed-cta {
    display: flex;
  }

  .footer {
    padding-bottom: 100px;
  }
}


/* =========================================================
   22. Быстрые правки под конкретный проект
   Здесь можно добавлять свои мелкие изменения, чтобы не искать по файлу
   ========================================================= */

/*
Пример:

.hero-doctor-photo {
  height: 95%;
}

.doctor-label {
  top: 120px;
  right: -10px;
}

*/


/* ===== DOCTORS SLIDER ===== */

.doctors-layout {
  display: grid;
  grid-template-columns: 0.82fr 1.18fr;
  gap: 18px;
  align-items: stretch;
}

.doctors-slider {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-lg);
}

.doctors-track {
  display: flex;
  gap: 18px;
  overflow-x: auto;
  scroll-behavior: smooth;
  scroll-snap-type: x mandatory;
  padding-bottom: 4px;
}

.doctors-track::-webkit-scrollbar {
  display: none;
}

.doctor-slide {
  flex: 0 0 calc((100% - 36px) / 3);
  min-height: 445px;
  scroll-snap-align: start;
  padding: 18px;
  border-radius: var(--radius-lg);
  background: #fff;
  box-shadow: var(--shadow-card);
}

.doctor-photo {
  width: 100%;
  height: 250px;
  display: block;
  object-fit: cover;
  object-position: center top;
  border-radius: 26px;
  margin-bottom: 18px;
  background: var(--bg-soft);
}

.doctor-info h3 {
  margin-bottom: 8px;
  font-size: 22px;
}

.doctor-info span {
  display: block;
  margin-bottom: 10px;
  color: var(--green-dark);
  font-weight: 900;
}

.doctor-info p {
  margin-bottom: 0;
  color: var(--muted);
}

.slider-btn {
  position: absolute;
  top: 50%;
  z-index: 5;
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  transform: translateY(-50%);
  border-radius: 50%;
  background: #fff;
  color: var(--text);
  font-size: 34px;
  line-height: 1;
  box-shadow: 0 14px 34px rgba(36, 77, 42, 0.16);
}

.slider-btn--prev {
  left: 10px;
}

.slider-btn--next {
  right: 10px;
}

@media (max-width: 1050px) {
  .doctors-layout {
    grid-template-columns: 1fr;
  }

  .doctor-slide {
    flex-basis: calc((100% - 18px) / 2);
  }
}

@media (max-width: 640px) {
  .doctor-slide {
    flex-basis: 86%;
  }

  .slider-btn {
    display: none;
  }
}