/* =========================================================================
   Атлант — лендинг «Медицинский день». Вёрстка без Tilda.
   Сетка: flex/grid, mobile-first не используется — база = десктоп,
   ниже — медиазапросы 1100 / 900 / 640 / 420.
   ========================================================================= */

:root {
  --red: #e31e24;
  --red-dark: #c4161c;
  --text: #111111;
  --muted: #6b6b6b;
  --blue: #2a4b9b;
  --bg-soft: #f3f6f7;
  --radius: 30px;
  --shadow: 0 0 5px 3px rgba(0, 0, 0, .1);
  --container: 1200px;
  --font: 'TildaSans', Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: #fff;
  color: var(--text);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.45;
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; height: auto; }
h1, h2, h3, h4, p, ul, ol, dl, dd, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: inherit; }
b, strong { font-weight: 700; }

[id] { scroll-margin-top: 20px; }

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 20px;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 1000;
  padding: 10px 16px;
  background: var(--text);
  color: #fff;
}
.skip-link:focus { left: 10px; top: 10px; }

/* ---------- Кнопки ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 56px;
  padding: 0 28px;
  border: 0;
  border-radius: 10px;
  font: inherit;
  font-size: 18px;
  font-weight: 600;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: background-color .2s ease;
}
.btn_primary { background: var(--red); color: #fff; }
.btn_primary:hover { background: var(--red-dark); }
.btn:focus-visible { outline: 3px solid var(--text); outline-offset: 2px; }
.btn:disabled { opacity: .6; cursor: wait; }

/* ---------- Шапка ---------- */

.header__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 90px;
}
.header__logo img { width: 225px; }
.header__clinics {
  padding-bottom: 2px;
  border-bottom: 2px dotted var(--blue);
  font-size: 16px;
  text-decoration: none;
}
.header__clinics b, .header__hours b { color: var(--blue); }
.header__hours { font-size: 16px; }
.header__phone {
  color: var(--red);
  font-size: 30px;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
}
.header__burger { display: none; }

.nav { background: var(--red); }
.nav__list {
  display: flex;
  justify-content: space-around;
  min-height: 52px;
  align-items: center;
}
.nav__link {
  display: block;
  padding: 14px 10px;
  color: #fff;
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
}
.nav__link:hover { text-decoration: underline; }

/* ---------- Секции ---------- */

.section { padding: 70px 0; }
.section_tight { padding: 0 0 50px; }
@media (min-width: 981px) {
  .section_tight { padding-top: 50px; }
}

/* фото на фоне секции под белой вуалью (как в оригинале) */
.section_bg {
  position: relative;
  isolation: isolate;
}
.section_bg::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(rgba(255, 255, 255, .9), rgba(255, 255, 255, .8)), var(--bg) center / cover no-repeat;
}

.section__title {
  color: var(--red);
  font-size: 32px;
  font-weight: 700;
  line-height: 1.25;
  text-align: center;
}
.section__title_dark { color: var(--text); font-size: 40px; }
.section__title_dark span { color: var(--red); }
.section__lead {
  max-width: 830px;
  margin: 16px auto 0;
  font-size: 18px;
  line-height: 1.3;
  text-align: center;
}

/* ---------- Первый экран ---------- */

.hero {
  position: relative;
  isolation: isolate;
  padding: 24px 0 0;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(rgba(255, 255, 255, .75), rgba(255, 255, 255, .85)),
              url('/images/tild6361-3462-4533-b733-343939323337__2.png') center / cover no-repeat;
}

.features {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}
.feature {
  display: flex;
  align-items: center;
  gap: 16px;
  min-height: 85px;
  padding: 10px 20px;
  border-radius: 15px;
  background: #fff;
  box-shadow: var(--shadow);
}
.feature__icon { width: 50px; height: auto; flex-shrink: 0; }
.feature__text { max-width: 140px; font-size: 14px; font-weight: 700; line-height: 1.2; }

/* на ПК — все плашки в одну строку */
@media (min-width: 1101px) {
  .features { display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; }
  .feature { gap: 10px; padding: 10px 14px; }
  .feature__icon { width: 40px; }
  .feature__text { max-width: none; font-size: 13px; }
}

.hero__grid {
  display: grid;
  grid-template-columns: 1fr 495px;
  gap: 40px;
  align-items: end;
  margin-top: 22px;
}
.hero__main { padding-bottom: 36px; }
.hero__title {
  font-size: 42px;
  font-weight: 800;
  line-height: 1.2;
  text-transform: uppercase;
}
.hero__title span { display: block; font-size: 32px; font-weight: 700; text-transform: none; }

.offer {
  max-width: 612px;
  margin-top: 30px;
  padding: 30px 40px 30px 0;
  border-radius: var(--radius);
  background: #fff;
  box-shadow: var(--shadow);
}
.offer__label {
  display: inline-block;
  padding: 4px 70px 4px 40px;
  background: var(--red);
  color: #fff;
  font-size: 32px;
  font-weight: 700;
  line-height: 1.35;
}
.offer__text { margin: 18px 0 0 38px; font-size: 24px; }
.offer__accent { margin-left: 38px; color: var(--red); font-size: 52px; font-weight: 800; line-height: 1.3; }
.checklist { margin: 8px 0 0 38px; }
.checklist li {
  position: relative;
  padding-left: 28px;
  font-size: 18px;
  line-height: 1.55;
}
.checklist li::before {
  content: "";
  position: absolute;
  left: 0;
  top: .4em;
  width: 16px;
  height: 15px;
  background: url('/images/tild3039-3565-4265-a161-316664316339__check-mark-icon-righ.png') center / contain no-repeat;
}

.hero__photo { position: relative; align-self: stretch; }
.hero__photo img { width: 100%; height: 100%; max-height: 660px; object-fit: cover; }
.hero__doctor {
  position: absolute;
  right: -20px;
  bottom: 22px;
  max-width: 346px;
  padding: 18px 30px;
  border-radius: var(--radius);
  background: #fff;
  box-shadow: var(--shadow);
  font-size: 14px;
  line-height: 1.25;
}
.hero__doctor > b:first-child { display: block; margin-bottom: 10px; font-size: 18px; }

/* ---------- Короткая форма (телефон) ---------- */

.quick-form { margin-top: 26px; max-width: 660px; }
.quick-form__label { display: block; margin-bottom: 8px; font-size: 18px; font-weight: 600; }
.quick-form__row { display: flex; gap: 20px; }
.quick-form__input {
  flex: 1 1 260px;
  min-width: 0;
  height: 70px;
  padding: 0 20px;
  border: 1px solid #000;
  border-radius: 10px;
  background: #fff;
  font: inherit;
  font-size: 18px;
}
.quick-form__input:focus { outline: none; border-color: var(--red); box-shadow: 0 0 0 3px rgba(227, 30, 36, .15); }
.quick-form__input[aria-invalid="true"] { border-color: var(--red); }
.quick-form__btn { flex: 0 0 320px; min-height: 70px; }
.quick-form__consent {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  margin-top: 14px;
  font-size: 13px;
  line-height: 1.4;
  color: #444;
  cursor: pointer;
}
.quick-form__consent input { flex-shrink: 0; width: 18px; height: 18px; margin: 0; accent-color: var(--red); }
.quick-form__hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.quick-form__msg { min-height: 1.4em; margin-top: 8px; font-size: 14px; }
.quick-form__msg_error { color: var(--red); }
.quick-form__msg_ok { color: #1f8e47; font-size: 16px; font-weight: 600; }

/* ---------- Рейтинги ---------- */

.ratings {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 40px;
  margin-top: 30px;
}
.rating {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 210px;
  padding: 20px 10px;
  border-radius: var(--radius);
  background: #fff;
  box-shadow: var(--shadow);
}
.rating__logo { height: 34px; width: auto; max-width: 120px; object-fit: contain; }
.rating__badge { position: absolute; top: 8px; right: 12px; width: 48px; transform: rotate(12deg); }
.rating__score { font-size: 42px; font-weight: 700; line-height: 1.3; }
.rating__stars { width: 135px; }
.rating__count { font-size: 18px; }

/* ---------- Шаги (визиты) ---------- */

.steps {
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: 30px 80px;
  margin-top: 50px;
}
.steps__list { display: grid; gap: 30px; }
.step {
  position: relative;
  display: flex;
  gap: 50px;
  align-items: stretch;
  min-height: 210px;
  border: 1px solid var(--red);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: 0 0 5px 3px rgba(36, 100, 212, .1);
}
.step__num {
  position: absolute;
  left: -16px;
  top: -30px;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: var(--red);
  color: #fff;
  font-size: 56px;
  line-height: 1;
  box-shadow: var(--shadow);
}
.step__img {
  flex: 0 0 199px;
  width: 199px;
  border-radius: var(--radius) 0 0 var(--radius);
  object-fit: cover;
  -webkit-mask-image: linear-gradient(90deg, #000 70%, transparent);
  mask-image: linear-gradient(90deg, #000 70%, transparent);
}
.step__img_contain { object-fit: contain; -webkit-mask-image: none; mask-image: none; }
.step__body { padding: 28px 30px 28px 0; font-size: 16px; line-height: 1.25; }
.step__title { margin-bottom: 18px; font-size: 20px; font-weight: 700; }

.step_tall { flex-direction: column; gap: 0; }
.step_tall .step__num { left: -34px; }
.step_tall .step__img {
  flex: 0 0 auto;
  width: 100%;
  height: 340px;
  border-radius: var(--radius) var(--radius) 0 0;
  -webkit-mask-image: linear-gradient(180deg, #000 75%, transparent);
  mask-image: linear-gradient(180deg, #000 75%, transparent);
}
.step_tall .step__body { padding: 0 20px 24px; }
.step_tall .step__title { margin-bottom: 8px; font-size: 18px; }

.step_wide { grid-column: 1 / -1; }

/* ---------- Оборудование ---------- */

.equipment {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}
.equip {
  min-height: 380px;
  padding: 60px 40px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  font-size: 18px;
  line-height: 1.25;
}
.equip_red {
  color: #fff;
  background: linear-gradient(114deg, var(--red) 0%, var(--red) 23%, rgba(227, 30, 36, 0) 100%), var(--photo) center / cover;
}
.equip_light {
  background: linear-gradient(114deg, #fff 0%, rgba(255, 255, 255, .7) 100%), var(--photo) center / cover;
}
.equip__title { max-width: 300px; margin-bottom: 30px; font-size: 28px; font-weight: 700; }
.equip p { max-width: 330px; }

/* ---------- Куратор ---------- */

.curator { padding: 120px 0; background: var(--bg-soft); }
.curator__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 33px;
  align-items: start;
}
.curator__photo { width: 100%; height: 560px; border-radius: 10px; object-fit: cover; object-position: top; }
.curator__title { font-size: 74px; font-weight: 400; line-height: 1; letter-spacing: -2px; }
.curator__subtitle { margin: 12px 0 21px; font-weight: 700; opacity: .4; }
.curator__list { padding-left: 22px; list-style: decimal; font-size: 16px; line-height: 1.4; }

/* ---------- Виды имплантации ---------- */

.types {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
  margin-top: 70px;
}
.type {
  display: flex;
  flex-direction: column;
  margin-top: 100px;
  padding: 120px 40px 36px 50px;
  border-radius: var(--radius);
  background: #fff;
  box-shadow: var(--shadow);
  position: relative;
}
.type__img {
  position: absolute;
  top: -100px;
  left: 50%;
  width: 181px;
  height: 181px;
  margin-left: -90px;
  border-radius: var(--radius);
  background: #fff;
  box-shadow: var(--shadow);
  object-fit: cover;
}
.type__title { margin-bottom: 30px; color: var(--red); font-size: 24px; font-weight: 700; line-height: 1.25; }
.type__methods { font-size: 12px; line-height: 1.55; }
.type__methods dt { font-size: 16px; font-weight: 700; }
.type__methods dd + dt { margin-top: 10px; }
.type__pros-title {
  margin-top: auto;
  padding-top: 30px;
  border-top: 1px solid rgba(0, 0, 0, .5);
  color: var(--red);
  font-size: 24px;
  font-weight: 700;
}
.type__methods { margin-bottom: 30px; }
.type__pros { margin: 20px 0 30px; display: grid; gap: 22px; }
.type__pros li {
  position: relative;
  padding-left: 38px;
  font-size: 16px;
  line-height: 1.25;
}
.type__pros li::before {
  content: "";
  position: absolute;
  left: 8px;
  top: 0;
  width: 18px;
  height: 18px;
  background: url('/images/tild3232-3936-4262-b538-643435303233__group_11.svg') center / contain no-repeat;
}
.type__btn { min-height: 55px; padding: 0 12px; border-radius: 5px; font-size: 17px; white-space: nowrap; }

/* ---------- Почему выгодно ---------- */

.benefits {
  display: grid;
  grid-template-columns: 1fr 320px 1fr;
  gap: 18px;
  align-items: center;
  margin-top: 50px;
}
.benefits__col { display: grid; gap: 14px; }
.benefit {
  padding: 18px 28px;
  border-radius: 32px;
  background: var(--red);
  color: #fff;
  font-size: 14px;
  line-height: 1.25;
  text-align: center;
}
.benefit__title { display: block; margin-bottom: 10px; font-size: 20px; }
.benefits__photo { width: 100%; height: 448px; border-radius: var(--radius); object-fit: cover; box-shadow: var(--shadow); }

/* ---------- Консультация ---------- */

.consult { padding: 45px 0 30px; overflow: hidden; }
.consult__grid { display: grid; grid-template-columns: 1fr 420px; gap: 40px; align-items: center; }
.consult__title { max-width: 560px; font-size: 54px; font-weight: 700; line-height: 1.2; }
.consult__subtitle { margin-top: 30px; font-size: 28px; line-height: 1.25; }
.consult__note { max-width: 370px; margin-top: 24px; font-size: 16px; line-height: 1.25; }
.consult__visual { position: relative; }
.consult__device { width: 373px; margin-left: auto; }
.consult__paper { position: absolute; left: -60px; bottom: 0; width: 209px; }

/* ---------- Врачи ---------- */

.doctors {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 40px;
  margin-top: 50px;
}
.doctor__photo {
  position: relative;
  aspect-ratio: 260 / 400;
  margin-bottom: 36px;
}
.doctor__photo::before { /* красная «подложка», повёрнутая на 2° */
  content: "";
  position: absolute;
  inset: 0;
  border-radius: var(--radius);
  background: #ff0000;
  transform: translate(10px, 11px) rotate(2deg);
}
.doctor__photo img {
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: var(--radius);
  background: #ebebeb;
  object-fit: cover;
  object-position: top;
  box-shadow: 0 0 15px 5px rgba(36, 100, 212, .1);
}
.doctor__name { display: block; font-size: 22px; line-height: 1.2; }
.doctor__role { display: block; margin-top: 12px; color: #7a7a7a; font-size: 14px; }

/* ---------- Наши работы ---------- */

.works {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  margin-top: 50px;
}
.work { position: relative; }
.work img { width: 100%; aspect-ratio: 560 / 300; border-radius: 10px; object-fit: cover; }
.work figcaption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 22px;
  color: #fff;
  font-size: 28px;
  font-weight: 700;
  text-align: center;
  text-shadow: 0 1px 6px rgba(0, 0, 0, .6);
}

/* ---------- Галерея ---------- */

.gallery {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-top: 50px;
}
.gallery__item { display: block; overflow: hidden; border-radius: 8px; }
.gallery__item img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; transition: transform .3s ease; }
.gallery__item:hover img { transform: scale(1.04); }
.gallery__item:focus-visible { outline: 3px solid var(--red); outline-offset: 3px; }

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 2147483001;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 50px 60px;
  background: rgba(0, 0, 0, .9);
}
.lightbox[hidden] { display: none; }
.lightbox__img { max-width: 100%; max-height: 100%; border-radius: 6px; }
.lightbox__btn {
  position: absolute;
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, .15);
  color: #fff;
  font-size: 28px;
  cursor: pointer;
}
.lightbox__btn:hover { background: rgba(255, 255, 255, .3); }
.lightbox__close { top: 12px; right: 12px; }
.lightbox__prev { left: 8px; top: 50%; margin-top: -24px; }
.lightbox__next { right: 8px; top: 50%; margin-top: -24px; }

/* ---------- Подвал: контакты + карта ---------- */

.contacts { position: relative; min-height: 470px; display: flex; align-items: center; }
.contacts__map { position: absolute; inset: 0; }
.contacts__map iframe { display: block; width: 100%; height: 100%; border: 0; }
.contacts__inner { position: relative; pointer-events: none; }
.contacts__card {
  max-width: 560px;
  padding: 50px 60px;
  border-radius: var(--radius);
  background: #fff;
  box-shadow: var(--shadow);
  pointer-events: auto;
}
.contacts__title { font-size: 32px; font-weight: 700; line-height: 1.25; }
.contacts__phone {
  display: inline-block;
  margin-top: 30px;
  color: var(--red);
  font-size: 40px;
  font-weight: 500;
  text-decoration: none;
  white-space: nowrap;
}
.contacts__hours { margin-top: 26px; font-size: 20px; font-weight: 600; line-height: 1.3; }

.legal {
  display: grid;
  grid-template-columns: 325px 1fr;
  gap: 20px 100px;
  padding-top: 50px;
  padding-bottom: 40px;
  font-size: 16px;
  line-height: 1.55;
}
.legal__warning {
  grid-column: 1 / -1;
  margin-top: 20px;
  color: #7a7a7a;
  font-size: 18px;
  font-weight: 600;
  text-align: center;
  text-transform: uppercase;
}

/* ---------- Cookie ---------- */

.cookie {
  position: fixed;
  right: 20px;
  bottom: 30px;
  z-index: 99995;
  display: flex;
  align-items: center;
  gap: 16px;
  max-width: 600px;
  padding: 15px 25px;
  border-radius: 5px;
  background: #ebebeb;
  box-shadow: 0 0 5px rgba(0, 0, 0, .1);
  font-size: 14px;
  line-height: 1.4;
}
.cookie[hidden] { display: none; }
.cookie__btn {
  flex-shrink: 0;
  height: 30px;
  padding: 0 20px;
  border: 1px solid #999;
  border-radius: 5px;
  background: #ebebeb;
  color: #555;
  font: inherit;
  font-weight: 500;
  cursor: pointer;
}
.cookie__btn:hover { border-color: #111; color: #111; }

/* =========================================================================
   Адаптив
   ========================================================================= */

@media (max-width: 1100px) {
  .ratings { grid-template-columns: repeat(3, 1fr); gap: 24px; }
  .steps { grid-template-columns: 1fr; gap: 40px; }
  .step_tall { flex-direction: row; gap: 50px; }
  .step_tall .step__num { left: -16px; }
  .step_tall .step__img {
    flex: 0 0 199px;
    width: 199px;
    height: auto;
    border-radius: var(--radius) 0 0 var(--radius);
    -webkit-mask-image: linear-gradient(90deg, #000 70%, transparent);
    mask-image: linear-gradient(90deg, #000 70%, transparent);
  }
  .step_tall .step__body { padding: 28px 30px 28px 0; }
  .types { gap: 24px; }
  .type { padding-left: 30px; padding-right: 30px; }
  .benefits { grid-template-columns: 1fr 1fr; }
  .benefits__photo { display: none; }
  .doctors { grid-template-columns: repeat(2, 1fr); max-width: 640px; margin-left: auto; margin-right: auto; }
  .curator__title { font-size: 56px; }
}

@media (max-width: 980px) {
  /* шапка: логотип + телефон + бургер, ниже — «5 клиник» и часы */
  .header__bar { flex-wrap: wrap; gap: 8px 16px; padding-top: 12px; padding-bottom: 12px; }
  .header__logo { order: 1; }
  .header__phone { order: 2; margin-left: auto; font-size: 22px; }
  .header__burger {
    order: 3;
    display: grid;
    gap: 5px;
    align-content: center;
    width: 44px;
    height: 44px;
    padding: 10px;
    border: 0;
    border-radius: 8px;
    background: var(--red);
    cursor: pointer;
  }
  .header__burger span { display: block; height: 2px; background: #fff; border-radius: 1px; transition: transform .2s, opacity .2s; }
  .header__burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .header__burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .header__burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
  .header__clinics { order: 4; font-size: 14px; }
  .header__hours { order: 5; margin-left: auto; font-size: 14px; }

  .nav { display: none; }
  .nav_open { display: block; }
  .nav__list { flex-direction: column; align-items: stretch; padding-top: 6px; padding-bottom: 6px; }
  .nav__link { padding: 12px 0; font-size: 17px; }

  .hero__grid { grid-template-columns: 1fr; }
  .hero__main { padding-bottom: 0; }
  .hero__photo { max-width: 495px; margin: 0 auto; }
  .hero__doctor { right: 10px; }

  .types { grid-template-columns: 1fr; max-width: 460px; margin-left: auto; margin-right: auto; }
  .equipment { grid-template-columns: 1fr; }
  .curator__grid { grid-template-columns: 1fr; }
  .curator__photo { height: auto; max-height: 580px; }
  .consult__grid { grid-template-columns: 1fr; }
  .consult__visual { display: none; }
  .legal { grid-template-columns: 1fr; gap: 16px; }
}

@media (max-width: 640px) {
  .section { padding: 50px 0; }
  .section__title { font-size: 24px; }
  .section__title_dark { font-size: 26px; }
  .section__lead { font-size: 15px; }

  .header__logo img { width: 160px; }
  .header__phone { font-size: 18px; }

  .features { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
  .feature { flex-direction: column; align-items: flex-start; gap: 6px; min-height: 0; padding: 10px 12px; }
  .feature__icon { width: 40px; }
  .feature__text { font-size: 12px; }

  .hero__title { font-size: 26px; text-align: center; }
  .hero__title span { font-size: 22px; }
  .offer { padding: 20px 20px 22px 0; }
  .offer__label { padding: 4px 24px 4px 20px; font-size: 22px; }
  .offer__text, .offer__accent, .checklist { margin-left: 20px; }
  .offer__text { font-size: 17px; }
  .offer__accent { font-size: 38px; }
  .checklist li { font-size: 15px; }

  .quick-form__row { flex-direction: column; gap: 12px; }
  .quick-form__input { flex: none; height: 60px; }
  .quick-form__btn { flex: none; min-height: 60px; width: 100%; font-size: 17px; }

  .ratings { grid-template-columns: 1fr 1fr; gap: 16px; }
  .rating { min-height: 180px; }
  .rating__score { font-size: 34px; }
  .rating__stars { width: 110px; }

  .step { flex-direction: column; gap: 0; min-height: 0; }
  .step__img,
  .step_tall .step__img {
    flex: none;
    width: 100%;
    height: 220px;
    border-radius: var(--radius) var(--radius) 0 0;
    -webkit-mask-image: linear-gradient(180deg, #000 75%, transparent);
    mask-image: linear-gradient(180deg, #000 75%, transparent);
  }
  .step__img_contain { height: 180px; padding-top: 16px; -webkit-mask-image: none; mask-image: none; }
  .step__body, .step_tall .step__body { padding: 8px 20px 24px; }
  .step__num, .step_tall .step__num { left: auto; right: 14px; top: -20px; width: 56px; height: 56px; font-size: 36px; }
  .step__title { margin-bottom: 10px; font-size: 18px; }

  .equip { min-height: 0; padding: 40px 28px; }
  .equip__title { font-size: 24px; margin-bottom: 16px; }

  .curator { padding: 60px 0; }
  .curator__title { font-size: 40px; }

  .benefits { grid-template-columns: 1fr; }

  .consult__title { font-size: 30px; text-align: center; }
  .consult__subtitle { margin-top: 12px; font-size: 18px; text-align: center; }
  .consult__note { max-width: none; font-size: 14px; text-align: center; }

  .doctors { grid-template-columns: 1fr 1fr; gap: 24px 20px; }
  .doctor__photo { margin-bottom: 22px; }
  .doctor__name { font-size: 17px; }
  .doctor__role { font-size: 12px; }

  .works { grid-template-columns: 1fr 1fr; gap: 12px; }
  .work figcaption { bottom: 10px; font-size: 18px; }
  .gallery { grid-template-columns: 1fr 1fr; gap: 10px; }

  .contacts { flex-direction: column; align-items: stretch; min-height: 0; }
  .contacts__map { position: relative; order: 2; height: 360px; }
  .contacts__inner { padding-top: 30px; padding-bottom: 30px; background: linear-gradient(135deg, var(--red), #8f0e12); }
  .contacts__card { padding: 30px 24px; }
  .contacts__title { font-size: 24px; }
  .contacts__phone { margin-top: 18px; font-size: 30px; }
  .contacts__hours { margin-top: 16px; font-size: 17px; }
  .legal__warning { font-size: 14px; }

  .cookie { left: 12px; right: 12px; bottom: 12px; padding: 12px 16px; font-size: 12px; }
}

@media (max-width: 640px) {
  .rating__badge { width: 32px; top: 6px; right: 8px; }
}

@media (max-width: 340px) {
  .doctors { grid-template-columns: 1fr; max-width: 280px; }
}
