/* ============================================================
   ГЗТ.РФ — общий каркас лендингов (landing-1/2/3)
   Пишет только исполнитель лендинга №1. Здесь — база и модули,
   которыми пользуются все три лендинга: шапка, кнопки, плашки
   города/лицензии, врачи, вопросы, форма заявки, подвал.
   Цвета и размеры сняты с боевого сайта (frontend/web/css/style.css).
   ============================================================ */

/* ---------- Шрифт: Inter Display, как на боевом сайте ---------- */
@font-face {
  font-family: 'Inter Display';
  src: url('../fonts/InterDisplay-Light.woff2') format('woff2');
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Inter Display';
  src: url('../fonts/InterDisplay-Regular.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Inter Display';
  src: url('../fonts/InterDisplay-Italic.woff2') format('woff2');
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}

@font-face {
  font-family: 'Inter Display';
  src: url('../fonts/InterDisplay-Medium.woff2') format('woff2');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Inter Display';
  src: url('../fonts/InterDisplay-SemiBold.woff2') format('woff2');
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Inter Display';
  src: url('../fonts/InterDisplay-Bold.woff2') format('woff2');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

/* ---------- Шрифт заголовков и цифр: Arimo ----------
   В макете весь крупный набор (h1 74px, заголовки секций 59px, цифры
   «5000+», «16+», «95%», «20–30 лет») сделан шрифтом Arimo, а не Inter
   Display — Inter Display остаётся только на основном тексте. Файл
   вариативный (wght 400–700), поэтому одного на подмножество достаточно;
   Arial держим в запасе — он метрически совместим с Arimo. */
@font-face {
  font-family: 'Arimo';
  src: url('../fonts/Arimo-cyrillic.woff2') format('woff2');
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}

@font-face {
  font-family: 'Arimo';
  src: url('../fonts/Arimo-latin.woff2') format('woff2');
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --dark: #020d20;
  --red: #ed3237;
  --pink: #ff777b;
  --pink-bg: #fff2f2;
  --blue: #5c83c3;
  --blue-card: #b2cffe;
  --blue-tag-bg: #bfd6fc;
  --green: #a4c100;
  --grey-bg: #ebf0f7;
  --grey-bg-2: #f2f5fa;
  --grey-bg-3: #f7f7f8;
  --text-47: rgba(2, 13, 32, 0.47);
  --text-36: rgba(2, 13, 32, 0.36);
  --text-34: rgba(2, 13, 32, 0.34);
  --grey-text: #a4a8af;
  --grey-light: #a8b3c5;
  --font-head: 'Arimo', Arial, Helvetica, sans-serif;
  --font-body: 'Inter Display', 'Inter Tight', 'Inter', system-ui, sans-serif;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.1;
  color: var(--dark);
  background: #fff;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img {
  display: block;
  max-width: 100%;
}

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

button {
  font-family: inherit;
  border: none;
  background: none;
  cursor: pointer;
}

input {
  font-family: inherit;
}

ul {
  list-style: none;
}

.container {
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ---------- Типографика секций ---------- */

.lnd-title {
  font-family: var(--font-head);
  font-weight: 400;
  font-size: clamp(32px, 4.1vw, 59px);
  line-height: 0.95;
  letter-spacing: -0.03em;
}

.lnd-title b,
.lnd-title strong,
.lnd-title em {
  font-weight: inherit;
  font-style: normal;
  color: var(--red);
}

.lnd-lead {
  font-size: clamp(16px, 1.4vw, 20px);
  line-height: 1.35;
  letter-spacing: -0.02em;
  color: var(--text-47);
}

.lnd-section {
  padding-top: clamp(48px, 6vw, 96px);
  padding-bottom: clamp(48px, 6vw, 96px);
}

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

.lnd-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border-radius: 32px;
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 20px;
  letter-spacing: -0.02em;
  color: #fff;
  padding: 16px 38px;
  transition: opacity 0.2s, transform 0.2s;
  white-space: nowrap;
}

.lnd-btn:hover {
  opacity: 0.88;
}

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

.lnd-btn--ghost {
  background: var(--grey-bg);
  color: var(--dark);
}

.lnd-btn--ghost:hover {
  background: #dde5f0;
  opacity: 1;
}

.lnd-btn--block {
  display: flex;
  width: 100%;
}

/* ============================================================
   Шапка
   ============================================================ */

.lnd-header {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding-top: 21px;
  padding-bottom: 22px;
}

.lnd-header__logo {
  display: flex;
  align-items: center;
  flex: none;
  gap: 6px;
}

.lnd-header__logo img {
  width: 98px;
  height: 34px;
}

.lnd-header__badge {
  display: inline-flex;
  align-items: center;
  padding: 9px 10px;
  border-radius: 10px;
  background: var(--red);
  font-size: 16px;
  line-height: 1.1;
  letter-spacing: -0.02em;
  white-space: nowrap;
  color: #fff;
}

.lnd-header__nav {
  display: flex;
  flex: 1;
  justify-content: center;
  gap: 42px;
}

.lnd-header__nav a {
  font-size: 16px;
  letter-spacing: -0.02em;
  color: var(--dark);
  white-space: nowrap;
  transition: color 0.2s;
}

.lnd-header__nav a:hover {
  color: var(--red);
}

.lnd-header__phone {
  flex: none;
  font-weight: 500;
  font-size: 17px;
  letter-spacing: -0.02em;
  color: var(--dark);
  white-space: nowrap;
  transition: color 0.2s;
}

.lnd-header__phone:hover {
  color: var(--red);
}

.lnd-header__btn {
  flex: none;
  padding: 12px 26px;
  font-size: 16px;
}

/* ---------- Бургер и мобильное меню ---------- */

.lnd-burger {
  display: none;
  flex: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 0 9px;
  margin-left: auto;
  z-index: 210;
}

.lnd-burger span {
  display: block;
  height: 2px;
  border-radius: 2px;
  background: var(--dark);
  transition: transform 0.25s, opacity 0.2s;
}

.lnd-burger.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.lnd-burger.is-open span:nth-child(2) { opacity: 0; }
.lnd-burger.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

body.menu-open {
  overflow: hidden;
}

/* ============================================================
   Плашки: город и лицензия
   ============================================================ */

.lnd-place {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border-radius: 30px;
  background: rgba(2, 13, 32, 0.28);
  backdrop-filter: blur(6px);
  color: #fff;
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 18px;
  letter-spacing: -0.02em;
  white-space: nowrap;
}

.lnd-place img {
  width: 16px;
  height: 19px;
}

.lnd-license {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 11px 16px;
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 6px 20px rgba(2, 13, 32, 0.12);
}

.lnd-license span {
  font-family: var(--font-body);
  font-size: 18px;
  letter-spacing: -0.02em;
  color: var(--blue);
  white-space: nowrap;
}

.lnd-license img {
  width: 18px;
  height: 18px;
}

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

.lnd-doctors {
  padding-top: clamp(48px, 6vw, 96px);
}

.lnd-doctors__head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}

.lnd-doctors__sub {
  margin-top: 12px;
  font-family: var(--font-head);
  font-size: 20px;
  letter-spacing: -0.02em;
  color: var(--dark);
}

.lnd-doctors__sub b {
  color: var(--red);
  font-weight: 700;
}

.lnd-doctors__all {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 11px;
  padding: 20px 26px;
  border-radius: 44px;
  background: var(--grey-bg);
  font-weight: 500;
  font-size: 18px;
  letter-spacing: -0.02em;
  transition: background 0.2s;
  flex: none;
}

.lnd-doctors__all:hover {
  background: #dde5f0;
}

.lnd-doctors__all img {
  /* стрелка уже нарисована вправо (8×13) — поворачивать и растягивать не нужно:
     прежняя иконка была «галочкой вниз» 13×8 с preserveAspectRatio="none" */
  width: 8px;
  height: 13px;
}

/* Было статичной сеткой на 4 карточки — врачей в каталоге больше, чем
   помещается в ряд, поэтому лента переведена на Swiper (по образцу
   .symptoms__slider на landing-3, js/landing-3.js). Ширину/отступ между
   слайдами и overflow:hidden даёт сам .swiper из swiper-bundle.min.css —
   тут только внешний отступ блока. Параметры слайдера — в js/common.js,
   инициализация общая для landing-1 и landing-3. */
.lnd-doctors__slider {
  margin-top: 48px;
}

/* Пока Swiper не инициализировался (сбой загрузки с CDN и т.п.) —
   у .swiper-wrapper по умолчанию flex-nowrap и слайды по 100% ширины,
   от этого лента схлопывается в одну колонку с горизонтальным обрезанием.
   Раскладываем карточки обычной сеткой — той же, что была до перехода
   на слайдер, — чтобы блок остался читаемым и без JS. */
.lnd-doctors__slider:not(.swiper-initialized) .swiper-wrapper {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.lnd-doc__photo {
  display: block;
  height: 455px;
  border-radius: 12px;
  overflow: hidden;
  background: linear-gradient(180deg, rgba(92, 131, 195, 0.2), rgba(29, 147, 210, 0.2));
}

.lnd-doc__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s;
}

.lnd-doc:hover .lnd-doc__photo img {
  transform: scale(1.03);
}

.lnd-doc__name {
  margin-top: 21px;
  font-weight: 500;
  font-size: 24px;
  letter-spacing: -0.02em;
}

.lnd-doc__desc {
  margin-top: 12px;
  font-size: 14px;
  line-height: 1.35;
  color: var(--text-47);
}

/* ============================================================
   Вопросы (FAQ)
   ============================================================ */

.lnd-faq {
  padding-top: clamp(48px, 8vw, 128px);
}

.lnd-faq .lnd-title {
  text-align: center;
}

.lnd-faq__list {
  max-width: 1355px;
  margin: 42px auto 0;
  display: flex;
  flex-direction: column;
  gap: 17px;
}

.lnd-faq__item {
  background: var(--grey-bg-3);
  border-radius: 28px;
  padding: 0 42px;
}

.lnd-faq__q {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  list-style: none;
  min-height: 100px;
  padding: 20px 0;
  font-size: clamp(18px, 2vw, 26px);
  letter-spacing: -0.02em;
  cursor: pointer;
}

.lnd-faq__q::-webkit-details-marker {
  display: none;
}

.lnd-faq__icon {
  position: relative;
  width: 25px;
  height: 25px;
  flex: none;
}

.lnd-faq__icon::before,
.lnd-faq__icon::after {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  width: 25px;
  height: 2.2px;
  background: var(--dark);
  transition: transform 0.25s;
}

.lnd-faq__icon::after {
  transform: rotate(90deg);
}

.lnd-faq__item[open] .lnd-faq__icon::after {
  transform: rotate(0deg);
}

.lnd-faq__a {
  padding-bottom: 36px;
  margin-top: -14px;
}

.lnd-faq__a p {
  max-width: 995px;
  font-size: 18px;
  line-height: 1.3;
  letter-spacing: -0.02em;
  color: rgba(2, 13, 32, 0.38);
}

/* ============================================================
   Форма заявки
   ============================================================ */

.lnd-form {
  padding-top: clamp(48px, 6vw, 92px);
}

.lnd-form__wrap {
  position: relative;
  border-radius: 28px;
  background: linear-gradient(12deg, #bfd6fc 54.42%, #f2f5fa 103.68%);
  overflow: hidden;
}

.lnd-form__card {
  display: flex;
  align-items: stretch;
  gap: 32px;
  margin: 14px;
  padding: 29px 36px 29px 36px;
  border-radius: 22px;
  background-color: #fff;
}

.lnd-form__content {
  flex: 1 1 400px;
  min-width: 0;
  padding: 15px 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.lnd-form__content .lnd-title {
  white-space: normal;
}

.lnd-form__content .lnd-lead {
  margin-top: 22px;
  max-width: 320px;
}

.lnd-form__form {
  margin-top: 32px;
  max-width: 410px;
}

.lnd-form__field {
  display: block;
  width: 100%;
  height: 47px;
  margin-bottom: 16px;
  padding: 0 26px;
  border: 1px solid rgba(2, 13, 32, 0.23);
  border-radius: 14px;
  background: #fff;
  outline: none;
  font-size: 16px;
  letter-spacing: -0.02em;
  color: var(--dark);
  transition: border-color 0.2s;
}

.lnd-form__field::placeholder {
  color: rgba(2, 13, 32, 0.2);
}

.lnd-form__field:focus {
  border-color: var(--blue);
}

.lnd-form__field.is-error {
  border-color: var(--red);
}

.lnd-form__submit {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 47px;
  border-radius: 14px;
  background: var(--red);
  font-weight: 500;
  font-size: 16px;
  letter-spacing: -0.02em;
  color: #fff;
  transition: opacity 0.2s;
}

.lnd-form__submit:hover {
  opacity: 0.88;
}

.lnd-form__consent {
  margin-top: 14px;
  font-size: 12px;
  letter-spacing: -0.02em;
  color: var(--text-36);
}

.lnd-form__consent a {
  color: var(--pink);
  text-decoration: underline;
}

/* сообщение об успешной отправке под кнопкой формы — показывает js/common.js */
.lnd-form__success {
  margin-top: 14px;
  padding: 12px 16px;
  border-radius: 12px;
  background: rgba(164, 193, 0, 0.14);
  font-size: 14px;
  line-height: 1.35;
  letter-spacing: -0.02em;
  color: #6f8300;
}

.lnd-form__success[hidden] { display: none; }

.lnd-form__error {
  margin-top: 12px;
  font-size: 13px;
  color: var(--red);
  min-height: 16px;
}

.lnd-form__photo {
  flex: 1 1 560px;
  min-width: 0;
  width: 100%;
  height: auto;
  max-height: 610px;
  object-fit: cover;
  border-radius: 22px;
}

/* ============================================================
   Подвал
   ============================================================ */

/* Сетка подвала одна на две строки — логотип должен стоять над колонкой
   «Симптомы», а иконки соцсетей — над колонкой контактов, как в макете.
   Держим её переменной, чтобы обе строки ломались синхронно. */
.lnd-footer {
  margin-top: 80px;
  --footer-grid: 290px 200px 420px minmax(0, 1fr);
}

.lnd-footer__bg {
  background: var(--dark);
  border-radius: 28px 28px 0 0;
  padding: 45px 0 0;
  color: #fff;
}

.lnd-footer__top {
  display: grid;
  grid-template-columns: var(--footer-grid);
  gap: 32px;
  align-items: center;
}

.lnd-footer__logo img {
  display: block;
  width: 115px;
  height: 39px;
}

.lnd-footer__socials {
  grid-column: 4;
  display: flex;
  align-items: center;
  gap: 20px;
}

.lnd-footer__socials a {
  display: block;
  transition: opacity 0.2s, transform 0.2s;
}

.lnd-footer__socials a:hover {
  opacity: 0.82;
  transform: translateY(-2px);
}

.lnd-footer__socials img {
  display: block;
  /* иконки из макета разного размера (30×30, 38×27, 29×30) — тянем по высоте,
     иначе широкий значок YouTube сплющивается в квадрат */
  width: auto;
  height: 30px;
  max-height: 30px;
}

.lnd-footer__cols {
  display: grid;
  grid-template-columns: var(--footer-grid);
  gap: 32px;
  margin-top: 54px;
}

.lnd-footer__legal {
  font-size: 10px;
  line-height: 1.35;
  letter-spacing: -0.02em;
  color: rgba(255, 255, 255, 0.47);
}

.lnd-footer__legal p:first-child {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.6);
}

.lnd-footer__legal p + p {
  margin-top: 12px;
}

.lnd-footer__dev {
  margin-top: 56px;
}

.lnd-footer__dev-label {
  display: block;
  font-size: 16px;
  letter-spacing: -0.32px;
  color: rgba(255, 255, 255, 0.47);
}

.lnd-footer__dev-name {
  display: inline-block;
  margin-top: 14px;
  transition: opacity 0.2s;
}

.lnd-footer__dev-name:hover {
  opacity: 0.75;
}

.lnd-footer__dev-name img {
  display: block;
  width: 96px;
  height: 15px;
}

.lnd-footer__col {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
}

.lnd-footer__col a {
  font-size: 17px;
  line-height: 24px;
  letter-spacing: -0.02em;
  color: #fff;
  transition: color 0.2s;
}

.lnd-footer__col a:hover {
  color: rgba(255, 255, 255, 0.6);
}

.lnd-footer__contacts {
  display: flex;
  flex-direction: column;
  gap: 28px;
  max-width: 240px;
}

.lnd-footer__contact {
  display: block;
  font-size: 19px;
  line-height: 24px;
  letter-spacing: -0.02em;
  color: #fff;
  transition: color 0.2s;
}

a.lnd-footer__contact:hover {
  color: rgba(255, 255, 255, 0.6);
}

.lnd-footer__contact-note {
  display: block;
  margin-top: 6px;
  font-size: 14px;
  line-height: 1.25;
  letter-spacing: -0.02em;
  color: rgba(255, 255, 255, 0.47);
}

.lnd-footer__disclaimer {
  margin-top: 40px;
  padding: 28px 20px 32px;
  background: rgba(255, 255, 255, 0.04);
  text-align: center;
}

.lnd-footer__disclaimer p {
  max-width: 1140px;
  margin: 0 auto;
  font-size: 13px;
  line-height: 1.5;
  letter-spacing: -0.01em;
  color: rgba(255, 255, 255, 0.47);
}

.lnd-footer__disclaimer p + p {
  margin-top: 8px;
  font-size: 15px;
  letter-spacing: 0.01em;
  color: rgba(255, 255, 255, 0.75);
}

/* ============================================================
   Адаптив общих модулей: 1279 / 1023 / 659
   ============================================================ */

@media (max-width: 1279px) {
  .lnd-header__nav { gap: 24px; }
  /* фолбэк-раскладка на случай не загрузившегося Swiper — брейкпоинты
     слайдера (js/common.js) дальше подхватывают эту же ширину экрана */
  .lnd-doctors__slider:not(.swiper-initialized) .swiper-wrapper { grid-template-columns: repeat(2, 1fr); }
  .lnd-form__card { padding: 24px; }
  .lnd-footer { --footer-grid: 250px 170px 280px minmax(0, 1fr); }
}

@media (max-width: 1023px) {
  .lnd-header__nav,
  .lnd-header__phone { display: none; }
  .lnd-burger { display: flex; }

  .lnd-header__nav {
    display: none;
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    background: #fff;
    padding: 12px 20px 20px;
    border-radius: 0 0 20px 20px;
    box-shadow: 0 16px 32px rgba(2, 13, 32, 0.12);
    z-index: 200;
  }

  .lnd-header__nav.is-open {
    display: flex;
  }

  .lnd-header__nav a {
    width: 100%;
    padding: 10px 0;
    border-bottom: 1px solid var(--grey-bg);
  }

  .lnd-form__card { flex-direction: column; }
  .lnd-form__photo { max-height: 320px; order: -1; }
  .lnd-form__content .lnd-lead,
  .lnd-form__form { max-width: none; }

  /* на планшете колонки складываются попарно, а соцсети уходят вправо от
     логотипа — иначе иконки повисают посреди пустой строки.
     Реквизиты уводим вниз: наверху должны остаться ссылки и контакты,
     ради которых в подвал и заходят. */
  .lnd-footer { --footer-grid: minmax(0, 1fr) minmax(0, 1fr); }
  .lnd-footer__top { grid-template-columns: auto auto; justify-content: space-between; }
  .lnd-footer__socials { grid-column: auto; }
  .lnd-footer__cols { row-gap: 40px; }
  .lnd-footer__contacts {
    order: 2;
    grid-column: 1 / -1;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 24px 48px;
    max-width: none;
  }
  .lnd-footer__legal { order: 3; grid-column: 1 / -1; }
  .lnd-footer__dev { margin-top: 32px; }

  /* На 2-3 карточках в ряд (брейкпоинты слайдера 660/1024) ширина слайда
     местами превышает фиксированную высоту фото (455px) — карточка
     становится квадратной вместо портретной. Даём высоте идти по ширине
     на всём диапазоне планшета, а не только на телефоне. */
  .lnd-doc__photo { height: auto; aspect-ratio: 3 / 4; }
}

@media (max-width: 659px) {
  /* в шапке на телефоне остаются только лого и бургер — кнопка заявки
     вместе с телефоном не помещается рядом с бургером */
  .lnd-header__btn { display: none; }

  /* блоки отбивались друг от друга на 48px сверху и снизу — на телефоне между
     секциями получалась почти сотня пустых пикселей */
  .lnd-section { padding-top: 32px; padding-bottom: 32px; }

  /* фолбэк-раскладка на случай не загрузившегося Swiper (высота фото —
     общее правило для планшета и телефона, см. блок 1023px выше) */
  .lnd-doctors__slider:not(.swiper-initialized) .swiper-wrapper { grid-template-columns: 1fr; }
  .lnd-faq__q { min-height: auto; padding: 18px 0; gap: 12px; }
  .lnd-faq__item { padding: 0 20px; }
  .lnd-footer { --footer-grid: minmax(0, 1fr); }
  .lnd-footer__top { grid-template-columns: 1fr; gap: 24px; }
  .lnd-footer__cols { margin-top: 36px; row-gap: 32px; }
  .lnd-footer__contacts { flex-direction: column; gap: 24px; }
  .lnd-footer__dev { margin-top: 24px; }
  .lnd-footer__socials { gap: 16px; }
  .lnd-footer__disclaimer { margin-top: 32px; padding: 22px 20px 26px; }
  .lnd-btn { padding: 14px 26px; font-size: 17px; }
}

/* ============================================================
   Появление блоков при прокрутке
   Классы навешивает js/common.js — без него разметка остаётся видимой,
   поэтому непрозрачность гасим только у элементов с классом .is-reveal.
   Сдвиг отдельным классом: у повёрнутых карточек свой transform, им
   достаём только прозрачность, иначе поворот затрётся.
   ============================================================ */

.is-reveal {
  opacity: 0;
  transition: opacity 0.7s ease, transform 0.7s cubic-bezier(0.22, 0.61, 0.36, 1);
  transition-delay: var(--reveal-delay, 0ms);
}

.is-reveal--move {
  transform: translateY(28px);
}

.is-reveal.is-in {
  opacity: 1;
}

.is-reveal--move.is-in {
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  .is-reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* Бейджи и точки схемы «Тестостерон влияет на:» стоят на своих местах в
   процентах — их нельзя двигать, поэтому появляются масштабом. */
.is-pop {
  opacity: 0;
  transform: scale(0.6);
  transform-origin: center;
  transition: opacity 0.35s ease, transform 0.45s cubic-bezier(0.34, 1.42, 0.64, 1);
  transition-delay: var(--reveal-delay, 0ms);
}

.is-pop.is-in {
  opacity: 1;
  transform: none;
}

/* Теги в блоке «Современные методы лечения» появляются масштабом от нуля:
   обычный .is-pop стартует с 0.6 — для крупных цветных плашек этого мало,
   выщелчок читается только с нуля. Правило идёт после .is-pop, поэтому
   перебивает его старт, а .is-pop.is-in (два класса) по-прежнему сильнее. */
.is-pop--zero { transform: scale(0); }

@media (prefers-reduced-motion: reduce) {
  .is-pop {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* ============================================================
   Модалка заявки лендинга (.modal__*)
   Все кнопки-призывы открывают её вместо прыжка к форме внизу страницы
   (href="#form" на кнопках оставлен как запасной путь без JS).
   Разметка, поведение и стили перенесены 1-в-1 с gzt.clinic:
   frontend/views/site/_checkup-modal.php, frontend/web/js/checkup-modal.js,
   блок .chkm__* в frontend/web/css/pages.css.
   ============================================================ */

body.modal-open {
  overflow: hidden;
}

.modal {
  position: fixed;
  inset: 0;
  z-index: 500;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  transition: opacity 0.25s;
}

.modal[hidden] { display: none; }
.modal.is-open { opacity: 1; }

.modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(2, 13, 32, 0.55);
  backdrop-filter: blur(3px);
}

.modal__window {
  position: relative;
  width: min(884px, 100%);
  max-height: min(760px, 100vh - 40px);
  overflow-y: auto;
  border-radius: 22px;
  background: var(--grey-bg);
  box-shadow: 0 30px 80px rgba(2, 13, 32, 0.35);
  transform: translateY(14px) scale(0.97);
  transition: transform 0.25s;
}

.modal.is-open .modal__window { transform: none; }

.modal__close {
  position: absolute;
  top: 20px;
  right: 20px;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: center;
  top: 26px;
  right: 26px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  transition: opacity 0.18s;
}

.modal__close:hover { opacity: 0.6; }

.modal__close span {
  position: absolute;
  width: 22px;
  height: 1.6px;
  border-radius: 2px;
  background: var(--text-47);
}

.modal__close span:first-child { transform: rotate(45deg); }
.modal__close span:last-child { transform: rotate(-45deg); }

.modal__body {
  display: flex;
  flex-direction: column;
  align-items: center;
  /* боковые 190px из макета: при ширине окна 884px поля выходят ровно 505px */
  padding: 63px clamp(20px, 21.5%, 190px) 56px;
  text-align: center;
}

.modal__badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  height: 45px;
  padding: 0 22px;
  border-radius: 30px;
  background: #fff;
  font-size: 16px;
  color: var(--red);
}

.modal__badge-dot { flex: none; width: 7px; height: 7px; background: var(--red); }

.modal__title {
  margin: 12px 0 0;
  max-width: 515px;
  font-family: var(--font-head);
  font-weight: 400;
  font-size: 49px;
  line-height: 0.95;
  letter-spacing: -0.03em;
  color: var(--dark);
}

.modal__subtitle {
  margin: 20px 0 0;
  max-width: 453px;
  font-size: 24px;
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--dark);
}

.modal__form {
  width: 100%;
  margin-top: 56px;
}

.modal__field { margin-bottom: 8px; }

.modal__input {
  display: block;
  width: 100%;
  height: 65px;
  padding: 0 26px;
  border: 1px solid rgba(2, 13, 32, 0.23);
  border-radius: 14px;
  background: #fff;
  outline: none;
  font-family: var(--font-body);
  font-size: 18px;
  letter-spacing: -0.02em;
  color: var(--dark);
  transition: border-color 0.2s;
}

.modal__input::placeholder { color: var(--text-34); }
.modal__input:focus { border-color: var(--blue); background: #fff; }
.modal__input.is-error { border-color: var(--red); }

.modal__submit {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 65px;
  margin-top: 12px;
  border-radius: 14px;
  background: var(--red);
  font-weight: 500;
  font-size: 18px;
  letter-spacing: -0.02em;
  color: #fff;
  transition: opacity 0.2s;
}

.modal__submit:hover { opacity: 0.9; }
.modal__submit:disabled { opacity: 0.7; cursor: not-allowed; }

.modal__consent {
  max-width: 445px;
  margin-top: 48px;
  font-size: 14px;
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--text-36);
}

.modal__consent a {
  color: var(--pink);
  text-decoration: underline;
}

.modal__error {
  margin-top: 12px;
  font-size: 13px;
  color: var(--red);
}
.modal__error[hidden] { display: none; }

/* ---------- Состояние «Заявка отправлена» ---------- */

.modal__success {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 40px 0 24px;
}
.modal__success[hidden] { display: none; }

.modal__success-icon {
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal__success-text {
  margin: 18px 0 0;
  font-family: var(--font-head);
  font-weight: 500;
  font-size: 20px;
  letter-spacing: -0.02em;
  color: var(--dark);
}

@media (prefers-reduced-motion: reduce) {
  .modal,
  .modal__window {
    transition: none;
  }
}

@media (max-width: 899px) {
  .modal__title { font-size: 38px; }
  .modal__subtitle { font-size: 20px; }
  .modal__form { margin-top: 36px; }
}

@media (max-width: 659px) {
  .modal { padding: 16px; }
  .modal__window { width: 100%; max-height: min(88vh, 720px); border-radius: 20px; }
  .modal__body { padding: 44px 20px 28px; }
  .modal__title { font-size: 28px; max-width: none; }
  .modal__subtitle { font-size: 17px; max-width: none; margin-top: 14px; }
  .modal__form { margin-top: 28px; }
  .modal__input,
  .modal__submit { height: 56px; font-size: 16px; }
  .modal__consent { margin-top: 20px; }
}


/* ============================================================
   Страницы документов рядом с лендингом (politika-obrabotki.html и др.)
   Тексты — копия страниц gzt.clinic/info/*, вёрстка своя, на токенах лендинга.
   ============================================================ */

.docs-top { background: var(--dark); }

.docs-top__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding-top: 18px;
  padding-bottom: 18px;
}

.docs-top__logo img { display: block; height: 34px; width: auto; }

.docs { padding: clamp(40px, 5vw, 72px) 0 clamp(48px, 6vw, 88px); }

.docs__crumbs {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  color: var(--text-47);
}

.docs__crumbs a { color: var(--text-47); }
.docs__crumbs a:hover { color: var(--red); }

.docs__title {
  margin-top: 18px;
  font-family: var(--font-head);
  font-weight: 400;
  font-size: clamp(30px, 4.1vw, 52px);
  line-height: 1.02;
  letter-spacing: -0.03em;
  color: var(--dark);
}

.docs__body {
  margin-top: clamp(24px, 3vw, 40px);
  max-width: 900px;
  font-size: 16px;
  line-height: 1.6;
  color: var(--dark);
}

.docs__body h2 {
  margin: 36px 0 14px;
  font-family: var(--font-head);
  font-weight: 400;
  font-size: clamp(22px, 2.4vw, 30px);
  line-height: 1.15;
  letter-spacing: -0.02em;
}

.docs__body h3 {
  margin: 26px 0 10px;
  font-size: 19px;
  font-weight: 500;
}

.docs__body p { margin: 0 0 12px; }
.docs__body ul, .docs__body ol { margin: 0 0 14px; padding-left: 22px; }
.docs__body li { margin-bottom: 8px; list-style: disc; }
.docs__body ol li { list-style: decimal; }
.docs__body a { color: var(--red); text-decoration: underline; }
.docs__body strong { font-weight: 500; }

@media (max-width: 659px) {
  .docs { padding-top: 32px; }
  .docs__body { font-size: 15px; }
}
