/* ===== DENTAGRAFIA — LANDING ПРОТЕЗИРОВАНИЕ ===== */
/* Фирменная палитра + Commissioner из брендбука 2024 */

:root {
  --sage-dark: #758580;   /* Pantone 444 C — основной серо-зелёный */
  --sage-darker: #5B6562;
  --sage-deep: #404543;
  --sage: #B0C299;         /* Pantone 2404 — светло-зелёный */
  --sage-light: #CAD6BB;
  --sage-mist: #E5EADD;
  --orange: #ED804F;       /* Pantone 171 — оранжевый акцент */
  --orange-light: #F3AA89;
  --orange-pale: #F9D4C4;
  --ink: #262626;          /* Pantone Black 3 — текст */
  --ink-mid: #494949;
  --ink-soft: #6E6E6E;
  --white: #FFFFFF;
  --bg-mist: #F7F6F1;
}

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

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

body {
  font-family: 'Commissioner', system-ui, -apple-system, sans-serif;
  font-weight: 400;
  font-size: 18px;
  line-height: 1.55;
  color: var(--ink);
  background: var(--white);
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: none; background: none; }

.container { width: 100%; max-width: 1280px; margin: 0 auto; padding: 0 24px; }

/* ===== ТИПОГРАФИКА ===== */
h1, h2, h3, h4 { font-weight: 500; line-height: 1.15; color: var(--ink); letter-spacing: -0.01em; }
h1 { font-size: clamp(40px, 5.5vw, 72px); font-weight: 600; }
h2 { font-size: clamp(32px, 4vw, 54px); }
h3 { font-size: clamp(24px, 2.6vw, 34px); }
h4 { font-size: clamp(18px, 1.4vw, 22px); }
.h-allcaps { text-transform: uppercase; letter-spacing: 0.02em; }

.accent { color: var(--orange); }
.accent-sage { color: var(--sage-dark); }

/* Pill (фирменная плашка из брендбука) */
.pill {
  display: inline-flex;
  align-items: center;
  padding: 9px 22px;
  background: var(--sage);
  color: var(--ink);
  border-radius: 999px;
  font-size: 14px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.pill--orange { background: var(--orange); color: var(--white); }
.pill--outline { background: transparent; border: 1.5px solid var(--sage); color: var(--ink); }
.pill--dark { background: var(--sage-dark); color: var(--white); }

/* ===== BUTTON ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 18px 36px;
  border-radius: 999px;
  font-size: 16px;
  font-weight: 600;
  letter-spacing: 0.01em;
  transition: all 0.25s ease;
  cursor: pointer;
}
.btn--primary {
  background: var(--sage);
  color: var(--ink);
}
.btn--primary:hover { background: var(--orange); color: var(--white); transform: translateY(-2px); box-shadow: 0 12px 30px -10px rgba(237,128,79,0.5); }
.btn--dark {
  background: var(--sage-dark);
  color: var(--white);
}
.btn--dark:hover { background: var(--ink); }
.btn--outline {
  background: transparent;
  border: 2px solid var(--sage-dark);
  color: var(--sage-dark);
}
.btn--outline:hover { background: var(--sage-dark); color: var(--white); }

/* ===== HEADER ===== */
.header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(255,255,255,0.96);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(117,133,128,0.12);
  transition: all 0.3s ease;
}
.header__inner {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 0;
}
.header__logo { display: flex; align-items: center; gap: 12px; }
.header__logo img { height: 44px; width: auto; }
.header__subtitle { font-size: 12px; color: var(--sage-darker); text-transform: uppercase; letter-spacing: 0.06em; }
.header__nav { display: flex; gap: 30px; }
.header__nav a { font-size: 15px; color: var(--ink-mid); font-weight: 500; transition: color 0.2s; }
.header__nav a:hover { color: var(--sage-dark); }
.header__right { display: flex; align-items: center; gap: 20px; }
.header__phone { font-weight: 600; font-size: 16px; color: var(--ink); }
.header__hours { font-size: 12px; color: var(--ink-soft); }

@media (max-width: 900px) {
  .header__nav { display: none; }
  .header__hours { display: none; }
}
@media (max-width: 580px) {
  .header__subtitle { display: none; }
  .header__phone { display: none; }
  .header__inner { padding: 12px 0; gap: 12px; }
  .header__logo img { height: 36px; }
}
@media (max-width: 380px) {
  .header__logo img { height: 32px; }
  .header__right .btn { padding: 12px 20px; font-size: 14px; }
}

/* ===== HERO ===== */
.hero {
  position: relative;
  padding: 140px 0 90px;
  background: linear-gradient(135deg, var(--sage-mist) 0%, var(--white) 60%);
  overflow: hidden;
  min-height: 720px;
  display: flex;
  align-items: center;
}
.hero__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}
.hero__content { position: relative; z-index: 2; }

/* H1 — многострочный заголовок */
.hero__h1 {
  margin: 0 0 44px 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
  line-height: 1;
  font-weight: 600;
  letter-spacing: -0.02em;
}
.hero__h1-line { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 16px; }
.hero__h1-line--xl { font-size: clamp(44px, 5.4vw, 72px); color: var(--ink); font-weight: 600; }
.hero__h1-line--md { font-size: clamp(28px, 3.6vw, 46px); color: var(--ink-mid); font-weight: 500; }

/* Оранжевый pill с ценой — D-форма брендбука */
.hero__price-pill {
  display: inline-flex;
  align-items: center;
  padding: 14px 28px;
  background: var(--orange);
  color: var(--white);
  border-radius: 999px 999px 999px 30px;
  font-size: clamp(20px, 2.4vw, 30px);
  font-weight: 600;
  letter-spacing: -0.01em;
  box-shadow: 0 18px 40px -14px rgba(237,128,79,0.45);
  white-space: nowrap;
}

/* CTA row — кнопка + бейдж КТ-снимка */
.hero__cta-row {
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}
.btn--hero {
  padding: 24px 60px;
  font-size: 18px;
  border-radius: 999px 999px 18px 999px;
  background: var(--sage-dark);
  color: var(--white);
  font-weight: 600;
  letter-spacing: 0.02em;
  box-shadow: 0 24px 50px -18px rgba(117,133,128,0.55);
  transition: all 0.3s ease;
}
.btn--hero:hover {
  background: var(--orange);
  transform: translateY(-3px);
  box-shadow: 0 28px 60px -16px rgba(237,128,79,0.55);
}

/* Плашка КТ-снимок */
.hero__gift {
  display: flex;
  flex-direction: column;
  background: var(--white);
  padding: 16px 24px;
  border-radius: 16px;
  border: 1.5px dashed var(--sage);
  line-height: 1.3;
}
.hero__gift-title {
  font-size: 15px;
  font-weight: 600;
  color: var(--ink);
}
.hero__gift-sub {
  font-size: 14px;
  color: var(--sage-dark);
  font-weight: 500;
  margin-top: 2px;
}
.hero__visual {
  position: relative;
}
/* ===== Hero: блок «До / После» (правка №1) ===== */
.hero__ba {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  width: 100%;
  position: relative;
  z-index: 2;
  border-radius: 26px;
  overflow: hidden;
  border: 1.5px solid var(--sage-mist);
  background: var(--white);
  box-shadow: 0 22px 60px -28px rgba(38,38,38,0.25);
}
.hero__ba-photo {
  aspect-ratio: 9 / 13;
  background: var(--sage-mist);
  position: relative;
  overflow: hidden;
}
.hero__ba-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 30%;
}
.hero__ba-photo-label {
  position: absolute;
  top: 14px;
  left: 14px;
  background: rgba(38,38,38,0.85);
  color: var(--white);
  padding: 5px 13px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.hero__sticker {
  position: absolute;
  right: -10px;
  top: 60px;
  background: var(--orange);
  color: var(--white);
  border-radius: 24px;
  padding: 18px 28px;
  font-size: 15px;
  font-weight: 600;
  z-index: 3;
  box-shadow: 0 20px 50px -15px rgba(237,128,79,0.55);
  transform: rotate(-3deg);
}
.hero__sticker strong { font-size: 28px; display: block; }
@media (max-width: 980px) {
  .hero__inner { grid-template-columns: 1fr; gap: 40px; }
}
@media (max-width: 580px) {
  .hero { padding: 110px 0 60px; min-height: auto; }
  .hero__h1 { gap: 4px; margin-bottom: 28px; }
  .hero__h1-line--xl { font-size: clamp(38px, 10vw, 56px); }
  .hero__h1-line--md { font-size: clamp(24px, 6.5vw, 38px); }
  .hero__h1-line { gap: 10px; }
  .hero__price-pill { padding: 11px 22px; font-size: clamp(17px, 5vw, 22px); }
  .btn--hero { padding: 18px 36px; font-size: 16px; width: 100%; justify-content: center; }
  .hero__cta-row { gap: 14px; }
  .hero__gift { width: 100%; }
}

/* ===== SECTION 2 — Бесплатная консультация ===== */
.section { padding: 100px 0; position: relative; }
.section--light { background: var(--bg-mist); }
.section--mist { background: var(--sage-mist); }
.section--dark { background: var(--sage-dark); color: var(--white); }

.section2__inner {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 60px;
  align-items: center;
}
.section2__visual {
  position: relative;
  height: 520px;
}
.section2__photo-wrap {
  position: absolute;
  inset: 0;
  border-radius: 50% 50% 14px 50% / 50% 50% 14px 50%;
  border-bottom-right-radius: 60% 60%;
  overflow: hidden;
}
.section2__photo { width: 100%; height: 100%; object-fit: cover; }
.section2__badge {
  position: absolute;
  bottom: 30px;
  left: -20px;
  background: var(--sage);
  color: var(--ink);
  padding: 18px 26px;
  border-radius: 18px;
  font-size: 15px;
  font-weight: 500;
  line-height: 1.4;
  max-width: 320px;
  box-shadow: 0 20px 50px -15px rgba(117,133,128,0.3);
}
.section2 h2 { margin-bottom: 24px; }
.section2__lead { font-size: 18px; color: var(--ink-mid); margin-bottom: 32px; }
.checklist { list-style: none; padding: 0; margin: 0 0 36px 0; }
.checklist li {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 14px 0;
  font-size: 16px;
  border-bottom: 1px solid rgba(117,133,128,0.15);
}
.checklist li:last-child { border-bottom: 0; }
.checklist li::before {
  content: "";
  flex: 0 0 28px; height: 28px;
  background: var(--sage);
  border-radius: 50% 50% 50% 50% / 60% 60% 60% 60%;
  position: relative;
}
.checklist li::after {
  content: "✓";
  position: absolute;
  margin-left: 8px;
  margin-top: 4px;
  color: var(--ink);
  font-weight: 700;
  font-size: 16px;
}

@media (max-width: 980px) {
  .section2__inner { grid-template-columns: 1fr; }
  .section2__visual { height: 420px; }
}

/* ===== SECTION 3 — 20+ методов (две ситуации) ===== */
.section3__head { text-align: center; margin-bottom: 56px; }
.section3__head .pill { margin-bottom: 20px; }
.section3__head h2 { max-width: 820px; margin: 0 auto 16px; }
.section3__head h2 strong { color: var(--orange); }
.section3__head p { color: var(--ink-mid); font-size: 18px; max-width: 640px; margin: 0 auto; }
.section3__cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
}
.method-card {
  padding: 40px 36px;
  border-radius: 30px;
  display: flex;
  flex-direction: column;
}
.method-card--sage { background: var(--sage-light); color: var(--ink); }
.method-card--dark { background: var(--sage-dark); color: var(--white); }
.method-card__pill {
  align-self: flex-start;
  margin-bottom: 22px;
}
.method-card--dark .method-card__pill { background: var(--white); color: var(--ink); }
.method-card h3 { margin-bottom: 22px; }
.method-card--dark h3 { color: var(--white); }
.method-card ul { list-style: none; padding: 0; margin-bottom: 28px; }
/* Дарк-карточка имеет более длинные пункты — резервируем место под фото справа */
.method-card--dark ul { padding-right: 240px; }
@media (max-width: 720px) {
  .method-card--dark ul { padding-right: 170px; }
}
.method-card li {
  padding: 10px 0;
  font-size: 16px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.method-card li::before {
  content: "✓";
  flex: 0 0 22px;
  height: 22px;
  background: var(--orange);
  border-radius: 50%;
  color: var(--white);
  font-size: 14px;
  text-align: center;
  line-height: 22px;
  font-weight: 700;
}
.method-card--dark li::before { background: var(--sage); color: var(--ink); }
.method-card__icon { width: 80px; height: 80px; margin-top: auto; opacity: 0.8; }
.method-card { position: relative; }
.method-card__photo {
  position: absolute;
  right: 28px;
  bottom: 28px;
  width: 220px;
  height: auto;
  background: var(--white);
  padding: 16px 16px 20px;
  /* D-форма брендбука: 3 скруглённых угла + 1 «капельный» */
  border-radius: 28px 28px 110px 28px;
  border: 2.5px solid var(--sage-light);
  box-shadow:
    0 18px 40px -16px rgba(38,38,38,0.25),
    inset 0 0 0 4px var(--white);
  pointer-events: none;
  user-select: none;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.method-card:hover .method-card__photo {
  transform: translateY(-4px);
  box-shadow:
    0 26px 50px -18px rgba(38,38,38,0.32),
    inset 0 0 0 4px var(--white);
}
/* Декоративная sage-mist «подложка» под плашкой — добавляет глубины */
.method-card__photo::before {
  content: "";
  position: absolute;
  inset: -10px -10px -10px -10px;
  background: var(--sage-mist);
  border-radius: inherit;
  z-index: -1;
  opacity: 0.6;
  transform: rotate(-3deg);
  transform-origin: bottom right;
}
@media (max-width: 720px) {
  .method-card__photo { width: 160px; right: 20px; bottom: 20px; padding: 12px 12px 16px; border-radius: 22px 22px 80px 22px; }
}

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

/* ===== SECTION 4 — Каталог методов ===== */
.section4__head { text-align: center; margin-bottom: 50px; }
.section4__group { margin-bottom: 60px; }
.section4__group:last-child { margin-bottom: 0; }
.section4__group { text-align: center; }
.section4__cards { text-align: left; }
.stages__group { text-align: center; }
.stages__grid { text-align: left; }
/* Заголовки подгрупп — в стилистике брендовой pill (как «ЭТАПЫ ЛЕЧЕНИЯ») */
.section4__group-title {
  display: inline-block;
  margin: 0 auto 36px;
  padding: 9px 22px;
  background: var(--sage);
  border-radius: 999px;
  font-family: 'Commissioner', sans-serif;
  font-size: 14px;
  font-weight: 500;
  color: var(--ink);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  line-height: 1.4;
  text-align: center;
}
.section4__group-head {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 32px;
  align-items: center;
  margin-bottom: 32px;
  padding: 24px 32px;
  background: var(--sage-mist);
  border-radius: 24px;
}
.section4__group-head .pill {
  font-size: 18px;
  padding: 14px 28px;
}
.section4__group-photo {
  height: 80px;
  border-radius: 14px;
  overflow: hidden;
  background: var(--white);
  border: 1.5px solid var(--white);
  box-shadow: 0 6px 20px -8px rgba(117,133,128,0.2);
}
.section4__group-photo img { width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 720px) {
  .section4__group-head { grid-template-columns: 1fr; padding: 20px; }
  .section4__group-photo { height: 100px; }
}

/* ===== STAGES — Этапы лечения ===== */
.stages__head { text-align: center; margin-bottom: 50px; }
.stages__group { margin-bottom: 70px; }
.stages__group:last-child { margin-bottom: 0; }
.stages__group .section4__group-title { margin-bottom: 40px; }
.stages__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  position: relative;
}
.stages__grid::before {
  content: "";
  position: absolute;
  top: 110px; left: 8%; right: 8%;
  height: 2px;
  background: repeating-linear-gradient(to right, var(--sage) 0, var(--sage) 12px, transparent 12px, transparent 22px);
  z-index: 0;
}
.stage {
  background: var(--white);
  border: 1.5px solid var(--sage-mist);
  border-radius: 24px;
  padding: 24px;
  position: relative;
  z-index: 1;
  transition: all 0.3s;
}
.stage:hover {
  transform: translateY(-6px);
  border-color: var(--sage);
  box-shadow: 0 20px 50px -20px rgba(117,133,128,0.3);
}
.stage__num {
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--orange);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 16px;
}
.stage__photo {
  aspect-ratio: 1 / 1;
  border-radius: 14px;
  overflow: hidden;
  background: var(--sage-mist);
  margin-bottom: 18px;
}
.stage__photo img { width: 100%; height: 100%; object-fit: cover; }
.stage__title { font-size: 17px; font-weight: 600; margin-bottom: 8px; }
.stage__desc { font-size: 14px; color: var(--ink-mid); line-height: 1.5; }
@media (max-width: 980px) {
  .stages__grid { grid-template-columns: repeat(2, 1fr); }
  .stages__grid::before { display: none; }
}
@media (max-width: 520px) {
  .stages__grid { grid-template-columns: 1fr; }
}
.section4__cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.section4__cards--4 { grid-template-columns: repeat(4, 1fr); }
.product-card {
  background: var(--white);
  border: 1.5px solid var(--sage-mist);
  border-radius: 22px;
  padding: 32px 28px;
  transition: all 0.3s ease;
  position: relative;
}
.product-card:hover {
  transform: translateY(-6px);
  border-color: var(--sage);
  box-shadow: 0 20px 50px -20px rgba(117,133,128,0.3);
}
.product-card__icon {
  width: 56px; height: 56px;
  background: var(--sage-mist);
  border-radius: 50% 50% 50% 50% / 60% 60% 60% 60%;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.product-card__icon img { width: 32px; height: 32px; }
.product-card__photo {
  width: 100%;
  aspect-ratio: 4 / 3;
  margin: -8px -8px 20px;
  width: calc(100% + 16px);
  border-radius: 18px 18px 18px 6px;
  overflow: hidden;
  background: var(--sage-mist);
  box-shadow: 0 6px 18px -8px rgba(117,133,128,0.18);
}
.product-card__photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.product-card:hover .product-card__photo { transform: scale(1.01); transition: transform 0.4s ease; }
.product-card h4 { margin-bottom: 12px; font-size: 18px; font-weight: 600; }
.product-card p { font-size: 14px; color: var(--ink-mid); line-height: 1.5; }

@media (max-width: 980px) {
  .section4__cards, .section4__cards--4 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 580px) {
  .section4__cards, .section4__cards--4 { grid-template-columns: 1fr; }
}

/* ===== SECTION 5 — Квиз ===== */
.quiz {
  max-width: 760px;
  margin: 0 auto;
  background: var(--white);
  border-radius: 32px;
  padding: 50px 50px 40px;
  box-shadow: 0 30px 80px -30px rgba(117,133,128,0.3);
}
.quiz__progress {
  height: 6px;
  background: var(--sage-mist);
  border-radius: 999px;
  margin-bottom: 28px;
  overflow: hidden;
}
.quiz__progress-bar {
  height: 100%;
  background: var(--sage);
  transition: width 0.4s ease;
  width: 33%;
}
.quiz__step-num { font-size: 14px; color: var(--ink-soft); margin-bottom: 8px; }
.quiz h3 { margin-bottom: 28px; }
.quiz__options {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
  margin-bottom: 32px;
}
.quiz__option {
  padding: 22px 24px;
  border: 1.5px solid var(--sage-mist);
  border-radius: 18px;
  background: var(--bg-mist);
  font-size: 15px;
  font-weight: 500;
  color: var(--ink);
  text-align: left;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  gap: 14px;
}
.quiz__option:hover, .quiz__option.active {
  border-color: var(--sage);
  background: var(--sage-light);
}
.quiz__option-dot {
  width: 22px; height: 22px;
  border: 2px solid var(--sage-dark);
  border-radius: 50%;
  flex: 0 0 22px;
}
.quiz__option.active .quiz__option-dot { background: var(--sage-dark); }
.quiz__actions { display: flex; gap: 14px; justify-content: space-between; }
@media (max-width: 580px) {
  .quiz__options { grid-template-columns: 1fr; }
  .quiz { padding: 36px 24px; }
}

/* ===== SECTION 6 — Врачи ===== */
.section6__head { text-align: center; margin-bottom: 56px; }
.section6__head h2 { max-width: 800px; margin: 0 auto 16px; }
.section6__head p { color: var(--ink-mid); font-size: 18px; max-width: 720px; margin: 0 auto; }

.doctors {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 26px;
}
.doctors--2col {
  grid-template-columns: repeat(2, 1fr);
  gap: 36px;
  max-width: 920px;
  margin: 0 auto;
}
.doctors--2col .doctor__photo { aspect-ratio: 1 / 1; }
.doctors--2col .doctor__info { padding: 32px; }
.doctors--2col .doctor__name { font-size: 22px; }
.doctors--2col .doctor__spec { font-size: 15px; }
.doctor {
  background: var(--white);
  border-radius: 26px;
  overflow: hidden;
  border: 1.5px solid var(--sage-mist);
  transition: all 0.3s;
  display: flex;
  flex-direction: column;
}
.doctor:hover {
  transform: translateY(-8px);
  border-color: var(--sage);
  box-shadow: 0 30px 60px -25px rgba(117,133,128,0.35);
}
.doctor__photo {
  aspect-ratio: 1 / 1.1;
  background: var(--sage-mist);
  position: relative;
  overflow: hidden;
}
.doctor__photo img { width: 100%; height: 100%; object-fit: cover; object-position: center top; }
.doctor__badge {
  position: absolute;
  top: 16px; right: 16px;
  background: var(--orange);
  color: var(--white);
  padding: 8px 16px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
}
.doctor__info { padding: 24px 22px; flex: 1; display: flex; flex-direction: column; }
.doctor__name { font-size: 17px; font-weight: 600; margin-bottom: 6px; }
.doctor__spec { font-size: 14px; color: var(--ink-mid); line-height: 1.45; margin-bottom: 14px; flex: 1; }
.doctor__langs { font-size: 12px; color: var(--ink-soft); letter-spacing: 0.06em; }

@media (max-width: 980px) {
  .doctors { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 520px) {
  .doctors { grid-template-columns: 1fr; }
}

/* ===== SECTION 7 — Кейсы до/после ===== */
.section7__head { text-align: center; margin-bottom: 50px; }
.cases { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; }
.case {
  background: var(--white);
  border-radius: 26px;
  overflow: hidden;
  border: 1.5px solid var(--sage-mist);
}
.case__photos { display: grid; grid-template-columns: 1fr 1fr; }
.case__photo {
  aspect-ratio: 9 / 13;
  background: var(--sage-mist);
  position: relative;
  overflow: hidden;
}
.case__photo img { width: 100%; height: 100%; object-fit: cover; object-position: center 30%; }
.case__photo-label {
  position: absolute;
  top: 14px; left: 14px;
  background: rgba(38,38,38,0.85);
  color: var(--white);
  padding: 5px 13px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.case__info { padding: 28px; }
.case__name { font-size: 20px; font-weight: 600; margin-bottom: 8px; }
.case__detail { font-size: 14px; color: var(--ink-mid); margin-bottom: 14px; }
.case__title { font-size: 18px; font-weight: 600; color: var(--ink); margin-bottom: 14px; line-height: 1.3; }
.case__procedure { font-size: 14px; line-height: 1.55; color: var(--ink-mid); }
.case__procedure p { margin-bottom: 10px; }
.case__procedure p:last-child { margin-bottom: 0; }
.case__results-title { font-weight: 600; color: var(--ink); margin-top: 12px; margin-bottom: 6px !important; }
.case__results { list-style: none; padding: 0; margin: 0; }
.case__results li { padding-left: 18px; position: relative; margin-bottom: 4px; }
.case__results li::before { content: "—"; position: absolute; left: 0; color: var(--orange); }
.case__quote {
  margin-top: 18px;
  padding-left: 16px;
  border-left: 3px solid var(--orange);
  font-style: italic;
  font-size: 15px;
  color: var(--ink-mid);
}

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

/* ===== SECTION 8 — Доверие и награды ===== */
.section8__head { text-align: center; margin-bottom: 50px; }
.testimonials {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-bottom: 56px;
}
.testimonial {
  background: var(--white);
  border-radius: 22px;
  padding: 30px 28px;
  border: 1.5px solid var(--sage-mist);
  position: relative;
}
.testimonial__quote {
  font-size: 15px;
  line-height: 1.65;
  color: var(--ink);
  margin-bottom: 22px;
}
.testimonial__author { font-size: 15px; font-weight: 600; color: var(--ink); }
.testimonial__meta { font-size: 13px; color: var(--ink-soft); margin-top: 4px; }
.testimonial::before {
  content: "“";
  position: absolute;
  top: 12px; right: 24px;
  font-size: 80px;
  color: var(--sage);
  font-family: Georgia, serif;
  line-height: 1;
  opacity: 0.6;
}

.ratings {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 16px;
  padding: 32px;
  background: var(--white);
  border-radius: 22px;
  border: 1.5px solid var(--sage-mist);
  margin-bottom: 40px;
}
.rating-platform {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 10px;
}
.rating-platform__logo {
  height: 28px;
  max-width: 105px;
  object-fit: contain;
  opacity: 0.8;
}
.rating-platform__score {
  font-size: 22px;
  font-weight: 600;
  color: var(--sage-dark);
}
.rating-platform__count { font-size: 11px; color: var(--ink-soft); }

.awards {
  display: flex;
  gap: 24px;
  justify-content: center;
  flex-wrap: wrap;
}
.award {
  background: var(--white);
  border: 1.5px solid var(--sage);
  padding: 22px 28px;
  border-radius: 18px;
  display: flex;
  align-items: center;
  gap: 16px;
}
.award img { height: 56px; width: auto; }
.award__text { font-size: 14px; color: var(--ink-mid); max-width: 220px; line-height: 1.4; }
.award__text strong { color: var(--ink); display: block; font-size: 15px; margin-bottom: 4px; }

@media (max-width: 980px) {
  .testimonials { grid-template-columns: 1fr; }
  .ratings { grid-template-columns: repeat(3, 1fr); }
}

/* ===== SECTION 9 — Контакты + форма ===== */
.section9 { background: var(--sage-mist); }
.contact-block {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 50px;
  align-items: start;
}
.contact-info { padding: 50px; background: var(--sage-dark); color: var(--white); border-radius: 30px; }
.contact-info h3 { color: var(--white); margin-bottom: 16px; }
.contact-info__lead { font-size: 17px; opacity: 0.85; margin-bottom: 36px; }
.contact-info dl { margin: 0; }
.contact-info dt {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  opacity: 0.7;
  margin-top: 22px;
  margin-bottom: 6px;
}
.contact-info dt:first-of-type { margin-top: 0; }
.contact-info dd { font-size: 17px; font-weight: 500; }
.contact-info dd.big { font-size: 24px; font-weight: 600; }
.contact-info__messengers {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin-top: 12px;
  max-width: 540px;
}
.contact-info__msg {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  border-radius: 16px;
  background: var(--sage-mist);
  color: var(--ink);
  font-size: 13px;
  font-weight: 500;
  text-decoration: none;
  transition: all 0.25s ease;
  border: 1.5px solid transparent;
}
.contact-info__msg:hover {
  background: var(--white);
  border-color: var(--sage);
  transform: translateY(-2px);
  box-shadow: 0 12px 28px -12px rgba(117,133,128,0.30);
}
.contact-info__msg-icon {
  flex: 0 0 32px;
  width: 32px;
  height: 32px;
  object-fit: contain;
}
.contact-info__msg-body {
  display: flex;
  flex-direction: column;
  gap: 2px;
  line-height: 1.2;
  overflow: hidden;
}
.contact-info__msg-name {
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
}
.contact-info__msg-handle {
  font-size: 12px;
  color: var(--ink-mid);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
@media (max-width: 540px) {
  .contact-info__messengers { grid-template-columns: 1fr; }
}

.contact-form {
  background: var(--white);
  padding: 50px;
  border-radius: 30px;
  border: 1.5px solid var(--sage-mist);
}
.contact-form h3 { margin-bottom: 14px; }
.contact-form__lead { font-size: 15px; color: var(--ink-mid); margin-bottom: 28px; }
.field {
  width: 100%;
  padding: 18px 22px;
  margin-bottom: 14px;
  border: 1.5px solid var(--sage-mist);
  border-radius: 14px;
  font: inherit;
  font-size: 15px;
  background: var(--bg-mist);
  transition: border 0.2s;
}
.field:focus { outline: none; border-color: var(--sage); background: var(--white); }
.contact-form .btn { width: 100%; margin-top: 8px; }
.consent { font-size: 12px; color: var(--ink-soft); margin-top: 14px; line-height: 1.5; }

/* ===== Статус-сообщение под формой ===== */
.form-status { font-size: 14px; margin: 10px 0 0; line-height: 1.4; min-height: 0; }
.form-status:empty { margin: 0; }
.form-status--success { color: #2D7A4A; }
.form-status--error { color: #C0392B; }
button[data-submit-btn]:disabled { opacity: 0.6; cursor: wait; }
.consent a { color: var(--sage-dark); text-decoration: underline; }

.map-wrap {
  margin-top: 56px;
  border-radius: 30px;
  overflow: hidden;
  height: 380px;
  border: 1.5px solid var(--sage-mist);
}
.map-wrap iframe { width: 100%; height: 100%; border: 0; filter: grayscale(0.2); }

@media (max-width: 980px) {
  .contact-block { grid-template-columns: 1fr; }
}

/* ===== FOOTER ===== */
.footer {
  background: var(--ink);
  color: rgba(255,255,255,0.75);
  padding: 70px 0 30px;
}
.footer__top {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 50px;
}
.footer__brand img { height: 50px; margin-bottom: 18px; filter: brightness(0) invert(1); }
.footer__brand p { font-size: 14px; opacity: 0.7; margin-bottom: 18px; line-height: 1.6; max-width: 280px; }
.footer h5 {
  color: var(--white);
  font-size: 14px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 18px;
}
.footer ul { list-style: none; padding: 0; }
.footer ul li { margin-bottom: 10px; }
.footer ul a { font-size: 15px; opacity: 0.7; transition: opacity 0.2s; }
.footer ul a:hover { opacity: 1; color: var(--sage); }
.footer__bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 12px;
  opacity: 0.55;
}

@media (max-width: 880px) {
  .footer__top { grid-template-columns: 1fr 1fr; gap: 30px; }
}

/* ===== UTILITIES ===== */
.text-center { text-align: center; }
.mt-large { margin-top: 80px; }

/* ===== DOCTOR CTA (кнопка записи под врачом) ===== */
.doctor__cta {
  display: flex;
  align-items: center;
  gap: 14px;
  width: 100%;
  margin-top: 22px;
  padding: 14px 20px;
  background: var(--sage-mist);
  border: 1.5px solid transparent;
  border-radius: 999px 999px 14px 999px;
  cursor: pointer;
  text-align: left;
  font-family: inherit;
  transition: all 0.25s ease;
  color: var(--ink);
}
.doctor__cta:hover {
  background: var(--sage);
  border-color: var(--sage-dark);
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: 0 18px 40px -16px rgba(117,133,128,0.40);
}
.doctor__cta:hover .doctor__cta-time { color: rgba(255,255,255,0.85); }
.doctor__cta-icon {
  flex: 0 0 auto;
  color: var(--sage-dark);
  transition: color 0.25s ease;
}
.doctor__cta:hover .doctor__cta-icon { color: var(--white); }
.doctor__cta-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
  line-height: 1.25;
}
.doctor__cta-title {
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.005em;
}
.doctor__cta-time {
  font-size: 13px;
  color: var(--ink-mid);
  transition: color 0.25s ease;
}

/* ===== MODAL (booking popup) ===== */
.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 0.25s ease;
}
.modal--open { opacity: 1; pointer-events: all; }
.modal__overlay {
  position: absolute;
  inset: 0;
  background: rgba(38,38,38,0.55);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}
.modal__card {
  position: relative;
  background: var(--white);
  border-radius: 28px;
  padding: 40px 36px 32px;
  max-width: 520px;
  width: 100%;
  max-height: calc(100vh - 48px);
  overflow-y: auto;
  box-shadow: 0 40px 100px -30px rgba(38,38,38,0.40);
  transform: translateY(20px) scale(0.97);
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.modal--open .modal__card { transform: translateY(0) scale(1); }
.modal__close {
  position: absolute;
  top: 18px; right: 18px;
  width: 36px; height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--sage-mist);
  border: none;
  border-radius: 50%;
  cursor: pointer;
  color: var(--ink);
  transition: all 0.2s ease;
}
.modal__close:hover { background: var(--sage); color: var(--white); transform: rotate(90deg); }
.modal__header { margin-bottom: 22px; }
.modal__header .pill { margin-bottom: 14px; }
.modal__header h3 { font-size: 24px; font-weight: 600; line-height: 1.2; margin: 0 0 8px; color: var(--ink); }
.modal__schedule { font-size: 14px; color: var(--sage-dark); font-weight: 500; }
.modal__form { display: flex; flex-direction: column; gap: 14px; }
.modal__form .field {
  width: 100%;
  padding: 14px 18px;
  border: 1.5px solid var(--sage-mist);
  border-radius: 14px;
  background: var(--cream);
  font-family: inherit;
  font-size: 15px;
  color: var(--ink);
  transition: border-color 0.2s ease;
  resize: vertical;
}
.modal__form .field:focus { outline: none; border-color: var(--sage); }
.modal__form textarea.field { min-height: 80px; line-height: 1.4; }
.modal__form .btn { width: 100%; margin-top: 4px; }
.modal__form .consent { font-size: 12px; color: var(--ink-light); line-height: 1.5; margin: 8px 0 0; }
.modal__form .consent a { color: var(--sage-dark); text-decoration: underline; }

@media (max-width: 540px) {
  .modal__card { padding: 32px 22px 24px; }
  .modal__header h3 { font-size: 20px; }
}

/* ============================================
   MOBILE ADAPTIVE FIXES — финальный блок
   Применяется при ≤580px, перекрывает предыдущие правила
   ============================================ */

/* Защита от горизонтального скролла */
@media (max-width: 980px) {
  html, body { overflow-x: hidden; }
}

@media (max-width: 580px) {
  /* Единый отступ от краёв */
  .container { padding: 0 20px; }

  /* === HEADER === */
  .header__inner {
    padding: 12px 20px;
    gap: 12px;
  }
  .header__logo img { height: 34px; }
  .header__right { gap: 10px; }
  .header__right .btn {
    padding: 10px 16px;
    font-size: 13px;
  }

  /* === HERO === */
  .section2__badge {
    left: 12px;
    right: 12px;
    bottom: 12px;
    padding: 14px 18px;
    font-size: 14px;
  }/* === METHOD CARDS (section 3) === */
  .method-card { padding: 28px 22px; }
  .method-card--dark ul { padding-right: 0; }
  .method-card__photo {
    position: static;
    margin: 20px auto 0;
    width: 100%;
    max-width: 280px;
    transform: none !important;
  }
  .method-card:hover .method-card__photo {
    transform: none !important;
  }

  /* === SECTIONS общий padding === */
  .section { padding: 60px 0; }

  /* === SECTION 2 — Consultation === */
  .section2__inner { gap: 32px; }

  /* === MODAL === */
  .modal { padding: 16px; }
}

@media (max-width: 380px) {
  .container { padding: 0 16px; }
  .header__inner { padding: 12px 16px; }
  .header__right .btn { padding: 9px 14px; font-size: 12px; }
}
