/* ЛаВита — стили главной страницы. Подключается после site.css */

/* ГЛАВНЫЙ ЭКРАН */
.hero {
  background: var(--mint);
  padding: 0 5%;
  display: grid; grid-template-columns: 1fr 440px; min-height: 592px;
  align-items: center; gap: 60px;
  position: relative; overflow: hidden;
}
.hero-photo {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; object-position: 50% 62%; z-index: 0;
}
/* Вуаль первого экрана. Была .96/.92/.82 — кадр фасада отдавал 4–18% пикселя и
   на узком экране экран читался ровной плитой. Плотность снижена, под колонкой
   текста добавлена локальная маска: белый текст держит контраст выше 9:1,
   фотография при этом видна. */
.hero-veil {
  position: absolute; inset: 0; z-index: 0;
  background: linear-gradient(100deg, rgba(11,61,44,.82) 0%, rgba(11,61,44,.66) 42%, rgba(11,61,44,.42) 100%);
}
.hero::before {
  content: ''; position: absolute; inset: 0; z-index: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.025'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}
.hero-content { position: relative; z-index: 1; padding: 72px 0; }
.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  border: 1px solid rgba(255,255,255,.35); border-radius: 3px;
  padding: 4px 16px; color: rgba(255,255,255,.9); font-size: .75rem; font-family: var(--sans);
  letter-spacing: .8px; text-transform: uppercase; margin-bottom: 24px;
}
.hero h1 { color: #fff; margin-bottom: 8px; }
.hero h1 span { color: var(--leaf); }
.hero-sub {
  font-size: 1.05rem; color: rgba(255,255,255,.86); line-height: 1.8;
  font-family: var(--sans); margin-bottom: 32px; max-width: 60ch;
}
.hero-facts { display: flex; gap: 32px; margin-bottom: 36px; flex-wrap: wrap; }
.hf strong { display: block; font-size: 1.7rem; color: #fff; line-height: 1; font-family: var(--sans); font-weight: 700; }
.hf span { font-size: .78rem; color: rgba(255,255,255,.72); font-family: var(--sans); text-transform: uppercase; letter-spacing: .5px; }
.hero-btns { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 20px; }
/* Телефон первого экрана — цель от 44px: на мобиле это единственная кликабельная
   ссылка на номер, .nav-tel там убран в панель меню */
.hero-tel {
  display: inline-flex; align-items: center; min-height: 44px; padding: 8px 0;
  color: #fff; font-family: var(--sans);
  font-size: 1.08rem; text-decoration: none; letter-spacing: .4px; font-weight: 700;
}
.hero-tel:hover { color: var(--leaf); }

.hero-panel {
  position: relative; z-index: 1;
  background: rgba(11,61,44,.74);
  border: 1px solid rgba(255,255,255,.2);
  border-radius: var(--radius-lg); padding: 32px; backdrop-filter: blur(4px);
}
.panel-title { color: var(--leaf); font-size: .82rem; font-family: var(--sans); text-transform: uppercase; letter-spacing: 1px; margin-bottom: 20px; }
.panel-row {
  display: flex; justify-content: space-between; align-items: center; gap: 12px;
  padding: 12px 0; min-height: 48px;
  border-bottom: 1px solid rgba(255,255,255,.12);
  color: #fff; font-family: var(--sans); font-size: .95rem; text-decoration: none;
}
.panel-row .prog-ico { flex: 0 0 auto; margin-right: 8px; }
.panel-row > span:first-child { display: inline-flex; align-items: center; min-width: 0; }
.panel-row:last-of-type { border-bottom: none; }
.panel-row span:last-child { color: var(--leaf); font-weight: 600; white-space: nowrap; }
a.panel-row:hover span:first-child { color: var(--leaf); }
.panel-cta { margin-top: 20px; }
.panel-cta input[type=tel] {
  width: 100%; background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.5);
  color: #fff; border-radius: 4px; padding: 12px; font-size: 1rem; font-family: var(--sans);
  min-height: 48px; outline: none; margin-bottom: 8px;
}
.panel-cta input[type=tel]::placeholder { color: rgba(255,255,255,.7); }
.panel-cta input[type=tel]:focus { border-color: var(--leaf); box-shadow: 0 0 0 3px rgba(78,203,150,.18); }
.panel-cta button {
  width: 100%; background: #fff; color: var(--forest); border: none; border-radius: 4px;
  padding: 16px; font-size: 1rem; font-family: var(--sans); font-weight: 700; cursor: pointer;
  min-height: 48px;
  transition: background .2s var(--ease), transform .12s var(--ease);
}
.panel-cta button:hover { background: var(--leaf-light); }
.panel-cta button:active { transform: translateY(1px); }
.panel-consent {
  font-size: .82rem; color: rgba(255,255,255,.88); font-family: var(--sans);
  line-height: 1.55; margin-top: 12px; display: flex; gap: 10px; align-items: flex-start;
}
.panel-consent input[type=checkbox] {
  margin-top: 4px; width: 18px; height: 18px; accent-color: var(--leaf); flex: 0 0 auto;
}
.panel-consent label {
  display: inline; font-size: inherit; color: inherit; margin: 0; line-height: inherit;
}
.panel-consent a { color: var(--leaf); }
.panel-note { font-size: .85rem; color: var(--leaf); font-family: var(--sans); line-height: 1.5; margin-top: 12px; display: none; }
.panel-note.on { display: block; }

/* О ЦЕНТРЕ */
.about { background: var(--ivory); padding: 64px 5%; }
.about-inner { max-width: 1000px; margin: 0 auto; }
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: start; margin-top: 20px; }
.about-text p { font-size: 1.02rem; color: var(--text-mid); line-height: 1.85; font-family: var(--sans); margin-bottom: 16px; }
.about-text .about-name { font-size: 1.5rem; color: var(--forest); font-family: var(--serif); font-weight: 700; line-height: 1.3; }
.about-photos { display: grid; grid-template-columns: 1fr; gap: 16px; }
.about-photos figure { margin: 0; }
.about-photos img { width: 100%; height: 160px; object-fit: cover; border-radius: var(--radius); display: block; box-shadow: 0 2px 12px rgba(11,61,44,.08); }
.about-photos figcaption { font-family: var(--sans); font-size: .82rem; color: var(--text-mid); margin-top: 8px; line-height: 1.45; }
.about-license {
  margin-top: 28px; padding: 16px 20px; background: var(--leaf-light);
  border-radius: var(--radius); font-family: var(--sans); font-size: 1rem;
  color: var(--forest); line-height: 1.7;
}

/* РЕЙТИНГ */
.proof { background: var(--earth-light); padding: 40px 5%; }
.proof-inner {
  max-width: 1000px; margin: 0 auto;
  display: flex; gap: 40px; align-items: center; flex-wrap: wrap; justify-content: center;
}
.proof-score { display: flex; align-items: baseline; gap: 8px; }
.proof-score strong { font-size: 3rem; color: var(--forest); font-family: var(--sans); font-weight: 700; line-height: 1; }
.proof-score span { font-size: 1.1rem; color: var(--text-mid); font-family: var(--sans); }
.proof-body { max-width: 52ch; }
.proof-body p { font-family: var(--sans); font-size: 1rem; color: var(--text-mid); line-height: 1.7; }
.proof-body a { color: var(--forest-mid); }
/* Селектор с классом родителя: раньше `.proof-body p` перебивал объявленный
   здесь белый цвет и плашка шла #4B6058 по #0B3D2C — 1,81:1. */
.proof-body p.proof-award, .proof-award {
  display: inline-block; margin-top: 12px; background: var(--forest); color: #fff;
  font-family: var(--sans); font-size: .84rem; font-weight: 700; letter-spacing: .5px;
  padding: 8px 16px; border-radius: 3px; text-transform: uppercase; line-height: 1.4;
}

/* УСЛУГИ — лента. Десять однородных карточек при планке commercial идут лентой,
   а не сеткой: на 375px они давали десять экранов подряд одним столбцом. */
.services { padding: 64px 5%; background: var(--cream); border-top: 4px solid var(--forest); }
.services-inner { max-width: 1160px; margin: 0 auto; }
.services-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.services-head > div:first-child { max-width: 68ch; }
.services-rail {
  display: flex; gap: 16px; overflow-x: auto; margin-top: 28px; padding: 4px 4px 12px;
  scroll-snap-type: x mandatory; scroll-behavior: smooth;
}
.svc-card {
  flex: 0 0 300px; scroll-snap-align: start;
  display: flex; flex-direction: column;
  background: #fff; border-radius: var(--radius-lg); padding: 24px;
  box-shadow: 0 2px 12px rgba(11,61,44,.08);
  transition: box-shadow .2s var(--ease), transform .2s var(--ease);
}
.svc-card:hover { box-shadow: 0 10px 30px rgba(31,122,87,.16); transform: translateY(-2px); }
.svc-num { font-size: .78rem; color: var(--forest-mid); font-family: var(--sans); font-weight: 700; letter-spacing: 1px; margin-bottom: 12px; }
.svc-card h3 { font-size: 1.06rem; color: var(--forest); margin-bottom: 8px; line-height: 1.35; }
.svc-card p { font-size: 1rem; color: var(--text-mid); line-height: 1.65; font-family: var(--sans); }
.svc-price {
  display: inline-block; background: var(--forest); color: #fff;
  border-radius: 3px; padding: 8px 12px; font-size: .88rem; font-family: var(--sans); font-weight: 600;
}
.svc-footer { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 10px; margin-top: auto; padding-top: 12px; }
.svc-more { font-size: .88rem; font-family: var(--sans); font-weight: 600; color: var(--forest); white-space: nowrap; }
.svc-more:hover { color: var(--leaf); }

/* ОРГАНИЗАЦИЯМ */
.medosmotr { padding: 64px 5%; background: var(--mint); }
.medosmotr-inner { max-width: 1000px; margin: 0 auto; }
.medosmotr h2 { color: #fff; }
.medosmotr p { font-family: var(--sans); font-size: 1.02rem; color: rgba(255,255,255,.86); line-height: 1.85; margin-bottom: 16px; max-width: 72ch; }
.medosmotr-list { list-style: none; display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 12px; margin: 28px 0; }
.medosmotr-list li {
  background: rgba(255,255,255,.07);
  border-radius: var(--radius); padding: 16px 20px;
  font-family: var(--sans); font-size: 1rem; color: rgba(255,255,255,.88); line-height: 1.55;
}
.medosmotr .btn-prim { margin-top: 8px; }

/* ПРОГРАММЫ */
.programs { padding: 64px 5%; background: var(--mint); }
.programs-inner { max-width: 1160px; margin: 0 auto; }
.programs h2 { color: #fff; }
.programs-note { font-size: 1rem; color: rgba(255,255,255,.8); font-family: var(--sans); line-height: 1.8; margin-bottom: 18px; max-width: 74ch; }
.programs-note:last-of-type { margin-bottom: 36px; }
.programs-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(268px, 1fr)); gap: 16px; }
.prog {
  background: rgba(255,255,255,.07);
  border-radius: var(--radius-lg); padding: 28px;
  display: flex; flex-direction: column;
  transition: background .2s var(--ease), transform .2s var(--ease);
}
.prog:hover { background: rgba(255,255,255,.13); transform: translateY(-2px); }
.prog-num {
  font-size: .8rem; color: var(--leaf); font-family: var(--sans); font-weight: 700;
  letter-spacing: 1px; margin-bottom: 12px; display: flex; align-items: flex-start; gap: 8px;
}
.prog-num-text { display: flex; flex-direction: column; gap: 2px; }
.prog h3 { font-size: 1.14rem; color: #fff; margin-bottom: 12px; line-height: 1.35; }
.prog p { font-size: 1rem; color: rgba(255,255,255,.8); line-height: 1.65; font-family: var(--sans); margin-bottom: 20px; flex: 1; }
.prog-footer { display: flex; align-items: flex-end; justify-content: space-between; flex-wrap: wrap; gap: 12px; margin-top: auto; }
.prog-price strong { display: block; color: var(--leaf); font-size: 1.16rem; font-family: var(--sans); }
.prog-price span { color: rgba(255,255,255,.7); font-size: .86rem; font-family: var(--sans); }

/* Иконка направления: линейный Phosphor в тон текста, один язык пиктограмм
   с остальным сайтом. Сердце у кардиологической программы оставлено эмодзи
   по прямой просьбе клиентки от 12.08. */
.prog-ico { width: 1.15em; height: 1.15em; flex: 0 0 auto; display: inline-block; vertical-align: -.18em; }
.prog-ico svg { width: 100%; height: 100%; display: block; }

.courses-section {
  margin-top: 24px; background: rgba(255,255,255,.07);
  border-radius: var(--radius-lg); padding: 28px;
}
.courses-section h3 { color: #fff; font-size: 1.1rem; font-family: var(--sans); font-weight: 600; margin-bottom: 8px; }
.courses-section > p { color: rgba(255,255,255,.78); font-family: var(--sans); font-size: 1rem; line-height: 1.7; margin-bottom: 20px; max-width: 72ch; }
/* Пять курсовок в ряду из четырёх колонок оставляли пятую висеть одну.
   На широком экране ряд ровно пятиколоночный. */
.course-list { list-style: none; display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 8px 16px; }
@media (min-width: 1000px) { .course-list { grid-template-columns: repeat(5, minmax(0, 1fr)); } }
/* Колонка, а не строка: цена с white-space: nowrap рядом с названием задавала
   колонке минимальную ширину 199px, и на 1000px страница уезжала вбок на 12px. */
.course-list li {
  font-family: var(--sans); font-size: .98rem; color: rgba(255,255,255,.84);
  display: flex; flex-direction: column; align-items: flex-start; gap: 4px;
  min-width: 0;
  padding: 12px 0; border-bottom: 1px solid rgba(255,255,255,.12);
}
.course-list li strong { color: var(--leaf); white-space: nowrap; }
/* Кнопка прижата к низу ячейки: заголовок в одну строку поднимал её на 8px
   выше соседних и разделители ряда разъезжались */
.course-list li .btn-gold-sm { margin-top: auto; }
.programs .disclaimer { color: rgba(255,255,255,.7); }

/* ВРАЧИ */
.doctors { padding: 64px 5%; background: var(--ivory); }
.doctors-inner { max-width: 1160px; margin: 0 auto; }
.doc-filter { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 24px; }
.doc-filter button {
  font-family: var(--sans); font-size: .9rem; cursor: pointer; min-height: 44px;
  background: #fff; color: var(--forest-mid); border: 1px solid rgba(31,122,87,.5);
  border-radius: 40px; padding: 12px 16px;
  transition: background .2s var(--ease), color .2s var(--ease), border-color .2s var(--ease);
}
.doc-filter button:hover { border-color: var(--forest-mid); }
.doc-filter button[aria-pressed="true"] { background: var(--forest); color: #fff; border-color: var(--forest); }

.doctors-grid {
  display: flex; gap: 14px; overflow-x: auto; margin-top: 28px; padding: 4px 4px 12px;
  scroll-snap-type: x mandatory; scroll-behavior: smooth;
}
.doctors-rail-nav { display: flex; justify-content: flex-end; margin-top: 20px; }
.doc {
  /* Фон карточки совпадает с фоном снимков: карточки в ленте выравниваются по
     самой высокой, и под кадром остаётся полоса. С мятным фоном она читалась
     как ступенька под фотографией. */
  position: relative; flex: 0 0 224px; scroll-snap-align: start;
  background: #F4F3EF; border-radius: var(--radius-lg); text-align: center;
  border: none; box-shadow: 0 2px 12px rgba(11,61,44,.08);
  cursor: pointer; font: inherit; color: inherit;
  transition: box-shadow .2s var(--ease), transform .2s var(--ease);
  overflow: hidden; padding: 0;
}
.doc:hover { box-shadow: 0 10px 28px rgba(31,122,87,.18); transform: translateY(-2px); }
.doc[hidden] { display: none; }
/* Снимки врачей пересобраны под 3:4 (600×800): исходники были квадратные, и
   при `cover` квадрат в портретной рамке терял по 17% слева и справа, унося
   руки и плечи. Теперь пропорция кадра совпадает с рамкой, а `contain`
   страхует от повторения истории, если приедет снимок другой формы: он
   впишется целиком и прижмётся к верху. Фон совпадает с фоном самих снимков
   (#F4F3EF), поэтому граница кадра не видна. */
.doc-av {
  width: 100%; aspect-ratio: 3 / 4; border-radius: 0;
  background: #F4F3EF;
  margin: 0; display: block; object-fit: contain; object-position: 50% 0;
}
/* Кадр студии не обрезан по бокам — снимок целиком, без кропа */
.doc-av-full { object-fit: contain; background: #F7F7F7; }
/* ФИО и специальность лежат прямо на фото: карточка компактная, ленту
   листают, второй белой зоны под фото больше нет. */
.doc-body {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 30px 10px 10px;
  background: linear-gradient(to top, rgba(11,61,44,.92) 0%, rgba(11,61,44,.6) 55%, rgba(11,61,44,0) 100%);
}
.doc h3 { font-size: .82rem; font-weight: 700; color: #fff; margin-bottom: 3px; line-height: 1.25; }
/* Специальность врача: --green по белому давал 2,82:1 кеглем 11,8px.
   --forest-mid — 4,63:1, кегль 14px. Это единственная строка, по которой
   пациент отличает кардиолога от офтальмолога. На тёмной подложке нужен
   светлый оттенок с тем же контрастом. */
.doc p { font-size: .72rem; color: #DFF5EA; font-family: var(--sans); font-weight: 700; line-height: 1.3; }
.doctors-consent {
  font-family: var(--sans); font-size: .88rem; color: var(--text-mid);
  line-height: 1.7; margin-top: 24px; max-width: 80ch;
}

/* Модальное окно врача */
.doc-modal-backdrop {
  display: none; position: fixed; inset: 0; background: rgba(11,61,44,.55);
  z-index: 150; align-items: center; justify-content: center; padding: 20px;
}
.doc-modal-backdrop.open { display: flex; }
.doc-modal {
  background: #fff; border-radius: var(--radius-lg); padding: 36px 32px; max-width: 520px;
  width: 100%; text-align: center; position: relative; max-height: 86vh; overflow-y: auto;
}
.doc-modal-close {
  position: absolute; top: 10px; right: 10px; background: none; border: none;
  font-size: 1.2rem; line-height: 1; color: var(--text-mid); cursor: pointer;
  width: 44px; height: 44px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
}
.doc-modal-close:hover { background: var(--leaf-light); color: var(--forest); }
.doc-modal-photo { display: block; width: 148px; height: 148px; object-fit: cover; object-position: 50% 22%; border-radius: 0; margin: 0 auto 20px; }
.doc-modal h3 { font-family: var(--serif); color: var(--forest); font-size: 1.32rem; margin-bottom: 4px; }
.doc-modal-spec { color: var(--forest-mid); font-family: var(--sans); font-weight: 600; font-size: .95rem; margin-bottom: 20px; }
.doc-modal-row { text-align: left; font-family: var(--sans); font-size: 1rem; color: var(--text-mid); margin-bottom: 12px; line-height: 1.6; }
.doc-modal-row strong { color: var(--forest); }
.doc-price-table { width: 100%; border-collapse: collapse; margin-top: 4px; }
.doc-price-table td { text-align: left; font-family: var(--sans); font-size: .95rem; color: var(--text-mid); padding: 8px 0; border-bottom: 1px dashed var(--border); line-height: 1.45; }
.doc-price-table td:last-child { text-align: right; white-space: nowrap; padding-left: 12px; color: var(--forest); font-weight: 600; }
.doc-modal .btn-dark { margin-top: 20px; }

/* НОМЕРА */
.rooms { padding: 64px 5%; background: var(--cream); }
.rooms-inner { max-width: 1160px; margin: 0 auto; }
.rooms-rail-nav { display: flex; justify-content: flex-end; margin-top: 20px; }
.rooms-grid {
  display: flex; gap: 16px; overflow-x: auto; margin-top: 12px; padding: 4px 4px 12px;
  scroll-snap-type: x mandatory; scroll-behavior: smooth;
}
.room {
  flex: 0 0 280px; scroll-snap-align: start;
  background: #fff; border-radius: var(--radius-lg); overflow: hidden;
  box-shadow: 0 2px 12px rgba(11,61,44,.08);
  display: flex; flex-direction: column;
  transition: box-shadow .2s var(--ease), transform .2s var(--ease);
}
.room:hover { box-shadow: 0 10px 30px rgba(11,61,44,.16); transform: translateY(-2px); }
/* Категории, снятые клиенткой, идут фотографией; двум оставшимся — та же
   брендовая заглушка «Фото готовится», что и у врачей без портрета. */
.room-ph { height: 176px; overflow: hidden; background: var(--leaf-light); }
.room-ph img { width: 100%; height: 100%; object-fit: cover; display: block; }
.room-body { padding: 20px; display: flex; flex-direction: column; flex: 1; }
.room-body h3 { font-size: 1.06rem; color: var(--forest); margin-bottom: 8px; line-height: 1.35; }
.room-body p { font-size: 1rem; color: var(--text-mid); font-family: var(--sans); margin-bottom: 12px; line-height: 1.55; }
/* Футер прижат к низу: у «Коттеджа» описание длиннее и цена уезжала на 37px ниже соседей */
.room-footer { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 10px; margin-top: auto; padding-top: 4px; }
.room-body .price { color: var(--forest-mid); font-family: var(--sans); font-weight: 700; font-size: 1rem; margin-bottom: 0; }
.room-more { font-size: .88rem; font-family: var(--sans); font-weight: 600; color: var(--forest); white-space: nowrap; }
.room-more:hover { color: var(--leaf); }
.rooms-note { text-align: center; margin-top: 20px; font-size: 1rem; color: var(--text-mid); font-family: var(--sans); line-height: 1.7; }
.rooms-registry {
  max-width: 760px; margin: 20px auto 0; text-align: center;
  font-family: var(--sans); font-size: .88rem; color: var(--text-mid); line-height: 1.7;
}

/* ЛЕНТА ФОТО */
.gallery { padding: 64px 5%; background: var(--earth-light); }
.gallery-inner { max-width: 1160px; margin: 0 auto; }
.gallery-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.rail-btns { display: flex; gap: 8px; }
.rail-btn {
  width: 44px; height: 44px; border-radius: 50%; border: 1px solid rgba(31,122,87,.45);
  background: var(--cream); color: var(--forest); font-size: 1rem; cursor: pointer;
  transition: background .2s var(--ease), border-color .2s var(--ease);
}
.rail-btn:hover { background: var(--leaf-light); border-color: var(--forest-mid); }
.gallery-lead {
  font-family: var(--sans); font-size: 1rem; line-height: 1.75; color: var(--text-mid);
  max-width: 68ch; margin-top: 16px;
}
/* Рубрики: кнопки прячут фигуры по data-rubric, лайтбокс листает видимое */
.gallery-filter { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 24px; }
.gallery-filter button {
  font-family: var(--sans); font-size: .88rem; font-weight: 600;
  padding: 8px 16px; border-radius: 100px; cursor: pointer;
  background: var(--cream); color: var(--text-mid); border: 1px solid var(--border);
  transition: background .2s var(--ease), color .2s var(--ease), border-color .2s var(--ease);
}
.gallery-filter button:hover { border-color: var(--forest-mid); color: var(--forest); }
.gallery-filter button[aria-pressed="true"] { background: var(--forest); border-color: var(--forest); color: #fff; }
.gallery-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(252px, 1fr));
  gap: 16px; margin-top: 24px;
}
.gallery-grid figure {
  display: flex; flex-direction: column; margin: 0; background: var(--cream);
  border-radius: var(--radius-lg); overflow: hidden;
  box-shadow: 0 2px 12px rgba(11,61,44,.08);
}
.gallery-grid figure[hidden] { display: none; }
.gallery-grid a {
  display: block; position: relative; aspect-ratio: 3 / 2;
  overflow: hidden; background: var(--leaf-light);
}
.gallery-grid img {
  width: 100%; height: 100%; object-fit: cover; display: block;
  transition: transform .5s var(--ease);
}
.gallery-grid a:hover img, .gallery-grid a:focus-visible img { transform: scale(1.05); }
.gallery-grid figcaption { padding: 12px 16px; font-family: var(--sans); font-size: .92rem; color: var(--text-mid); line-height: 1.5; }
.rail-dots { display: flex; gap: 8px; justify-content: center; margin-top: 16px; }
.rail-dots span { width: 8px; height: 8px; border-radius: 50%; background: rgba(31,122,87,.28); transition: background .2s var(--ease); }
.rail-dots span.on { background: var(--forest-mid); }

/* ФОРМА ЗАПИСИ */
.form-s { padding: 64px 5%; background: var(--ivory); }
.form-wrap { max-width: 760px; margin: 0 auto; }
.form-head { text-align: center; margin-bottom: 28px; }
.form-head p { font-family: var(--sans); font-size: 1rem; color: var(--text-mid); line-height: 1.7; max-width: 60ch; margin: 0 auto; }

.form-tabs { display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; margin-bottom: 20px; }
.form-tabs button {
  font-family: var(--sans); font-size: .95rem; font-weight: 600; cursor: pointer; min-height: 48px;
  background: #fff; color: var(--forest-mid); border: 1px solid rgba(31,122,87,.5);
  border-radius: 40px; padding: 12px 20px;
  transition: background .2s var(--ease), color .2s var(--ease), border-color .2s var(--ease);
}
.form-tabs button:hover { border-color: var(--forest-mid); }
.form-tabs button[aria-selected="true"] { background: var(--forest); color: #fff; border-color: var(--forest); }

.form-inner {
  background: #fff; border-radius: var(--radius-lg); padding: 40px;
  box-shadow: 0 4px 24px rgba(31,122,87,.1);
  display: grid; grid-template-columns: 1fr 1fr; gap: 16px;
}
.form-inner[hidden] { display: none; }
.full { grid-column: 1/-1; }
.consent-row {
  grid-column: 1/-1; display: flex; gap: 12px; align-items: flex-start;
  font-size: .92rem; color: var(--text-mid); font-family: var(--sans); line-height: 1.6;
}
.consent-row input[type=checkbox] { margin-top: 4px; width: 20px; height: 20px; accent-color: var(--forest-mid); flex: 0 0 auto; }
.consent-row a { color: var(--forest-mid); }
.form-legend {
  font-family: var(--sans); font-size: 1rem; color: var(--text-mid);
  line-height: 1.7; text-align: center; max-width: 62ch; margin: 0 auto 20px;
}
.form-status {
  grid-column: 1/-1; font-family: var(--sans); font-size: 1rem; line-height: 1.7;
  padding: 16px 20px; border-radius: var(--radius); display: none;
}
.form-status.on { display: block; }
.form-status.ok { background: var(--leaf-light); color: var(--forest); }
.form-status.err { background: var(--earth-light); color: var(--forest); border: 1px solid var(--earth); }

/* КОНТАКТЫ */
.contacts { padding: 64px 5%; background: var(--mint); }
.contacts-inner { max-width: 1160px; margin: 0 auto; }
.contacts h2 { color: #fff; margin-bottom: 32px; }
/* Оба блока одной высоты, высоту задаёт карточка: фото не тянет строку грида
   по своим 4:3 (было — карточка короче фото), а кропается под неё через
   object-fit. Фото абсолютно спозиционировано, чтобы не участвовать в
   intrinsic-высоте строки. */
.contacts-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; align-items: stretch; }
.cbox {
  background: rgba(255,255,255,.07);
  border-radius: var(--radius-lg); padding: 28px; color: #fff; font-family: var(--sans);
}
.cbox h3 { color: var(--leaf); font-size: .92rem; font-weight: 700; text-transform: uppercase; letter-spacing: .8px; margin-bottom: 20px; font-family: var(--sans); }
.cline { display: flex; gap: 12px; margin-bottom: 16px; font-size: 1rem; line-height: 1.6; }
.cline a { color: #fff; text-decoration: none; }
.cline a:hover { color: var(--leaf); }
.cbox-btns { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 24px; }
.map-box { position: relative; border-radius: var(--radius-lg); overflow: hidden; min-height: 300px; }
.map-box a { position: absolute; inset: 0; display: block; }
.map-box img { width: 100%; height: 100%; object-fit: cover; display: block; }
.map-route { margin-top: 20px; font-family: var(--sans); font-size: 1rem; color: rgba(255,255,255,.82); line-height: 1.8; max-width: 74ch; }

/* АДАПТИВ */
@media (max-width: 1000px) {
  .hero { grid-template-columns: 1fr 360px; gap: 32px; }
}
@media (max-width: 900px) {
  .about-grid { grid-template-columns: 1fr; }
  .contacts-grid { grid-template-columns: 1fr; }
  /* Фото контактов в одну колонку: кадр 4:3 вместо полоски 2:1 */
  .map-box { min-height: 0; aspect-ratio: 4 / 3; }
}
@media (max-width: 768px) {
  .hero { grid-template-columns: 1fr; min-height: 0; padding-bottom: 40px; gap: 0; }
  .hero-content { padding: 56px 0 24px; }
  /* Панель быстрой записи не выключается, а встаёт под кнопками: на телефоне это
     единственный конверсионный узел первого экрана */
  .hero-panel { padding: 24px; }
  /* На узком экране вуаль ровнее по горизонтали, кадр смещён на вывеску */
  .hero-veil {
    background: linear-gradient(180deg, rgba(11,61,44,.82) 0%, rgba(11,61,44,.72) 45%, rgba(11,61,44,.86) 100%);
  }
  .hero-photo { object-position: 70% center; }
  .form-inner { grid-template-columns: 1fr; padding: 24px; }
  .proof-inner { gap: 20px; }
  .svc-card { flex-basis: 268px; }
  .gallery-grid { grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 12px; }
  .gallery-grid figcaption { padding: 12px; font-size: .86rem; }
  .gallery-zoom { width: 30px; height: 30px; }
}
@media (max-width: 480px) {
  .gallery-grid { grid-template-columns: repeat(auto-fill, minmax(146px, 1fr)); }
  .gallery-grid figcaption { padding: 8px 12px; font-size: .8rem; line-height: 1.4; }
  .gallery-filter button { font-size: .82rem; padding: 8px 12px; }
}

/* АКЦИИ. Светлое полотно между тёмными «Программами» и белыми «Врачами»:
   три карточки одной формы, состав комплекса читается списком. */
.promos { padding: 64px 5%; background: var(--earth-light); }
.promos-inner { max-width: 1160px; margin: 0 auto; }
.promos-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 16px; margin-top: 32px; }
.promo {
  background: #fff; border-radius: var(--radius-lg); padding: 28px;
  display: flex; flex-direction: column;
  box-shadow: 0 2px 12px rgba(11,61,44,.08);
  transition: box-shadow .3s var(--ease), transform .3s var(--ease);
}
.promo:hover { box-shadow: 0 10px 30px rgba(31,122,87,.16); transform: translateY(-2px); }
.promo-badge {
  font-family: var(--sans); font-size: .78rem; font-weight: 700; letter-spacing: 1px;
  text-transform: uppercase; color: var(--forest-mid); margin-bottom: 12px;
}
.promo h3 { font-size: 1.14rem; color: var(--forest); line-height: 1.35; margin-bottom: 12px; }
.promo-price { font-family: var(--sans); font-weight: 700; font-size: 1.24rem; color: var(--forest-mid); margin-bottom: 16px; }
.promo-list { list-style: none; display: grid; gap: 8px; margin-bottom: 16px; }
.promo-list li {
  position: relative; padding-left: 24px;
  font-family: var(--sans); font-size: 1rem; color: var(--text-mid); line-height: 1.55;
}
.promo-list li::before {
  content: ""; position: absolute; left: 6px; top: .6em;
  width: 7px; height: 7px; border-radius: 50%; background: var(--forest-mid);
}
.promo-note { font-family: var(--sans); font-size: .92rem; color: var(--text-mid); line-height: 1.6; margin-bottom: 20px; }
.promo .btn-dark { margin-top: auto; align-self: flex-start; }

/* ДОСУГ */
.leisure { padding: 64px 5%; background: var(--ivory); }
.leisure-inner { max-width: 1160px; margin: 0 auto; }
.leisure-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; margin-top: 32px; }
.leisure-card {
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius-lg);
  display: flex; flex-direction: column; overflow: hidden;
}
/* aspect-ratio вместо фиксированной высоты: на узких карточках высота растёт вместе с шириной,
   и object-fit не обрезает лица так, как обрезал бы при фиксированных 210px на широкой карточке */
.leisure-card-img { width: 100%; aspect-ratio: 4 / 3; height: auto; object-fit: cover; display: block; }
/* В карточке видно только первую фотографию, как у бильярда; остальные скрыты,
   но остаются в группе лайтбокса — открываются по клику через "1 из N". */
.leisure-card-photos { display: block; cursor: zoom-in; position: relative; }
.leisure-card-photos > a { display: block; line-height: 0; position: relative; }
.leisure-card-photo--extra { position: absolute; width: 1px; height: 1px; overflow: hidden; visibility: hidden; }
.leisure-card > a { display: block; position: relative; line-height: 0; }
.leisure-card-body { padding: 24px; display: flex; flex-direction: column; flex: 1; }
.leisure-card h3 { font-size: 1.06rem; color: var(--forest); margin-bottom: 8px; line-height: 1.35; }
.leisure-card p { font-family: var(--sans); font-size: 1rem; color: var(--text-mid); line-height: 1.6; margin-bottom: 12px; }
/* Цена прижата к низу карточки: описания разной длины разводили строку цены по высоте */
.leisure-card .price { margin-top: auto; margin-bottom: 0; color: var(--forest-mid); font-family: var(--sans); font-weight: 700; }

.video-section { padding: 64px 5%; background: var(--ivory); }
.video-section-inner { max-width: 860px; margin: 0 auto; text-align: center; }
.video-lead { font-family: var(--sans); font-size: 1rem; color: var(--text-mid); line-height: 1.7; max-width: 64ch; margin: 0 auto 32px; }
.video-embed { position: relative; width: 100%; aspect-ratio: 16 / 9; border-radius: var(--radius-lg); overflow: hidden; box-shadow: 0 2px 12px rgba(11,61,44,.08); }
.video-embed iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* ОТЗЫВЫ. Один компонент карточки работает и на главной (шесть штук),
   и на странице /otzyvy/ (двенадцать). */
.reviews { padding: 64px 5%; background: var(--cream); border-top: 4px solid var(--forest); }
.reviews-inner { max-width: 1160px; margin: 0 auto; }
.rev-answer {
  display: flex; align-items: baseline; gap: 20px; flex-wrap: wrap;
  margin-top: 28px; padding: 24px 28px;
  background: var(--leaf-light); border-radius: var(--radius-lg);
}
.rev-answer strong { font-family: var(--sans); font-size: 2.6rem; font-weight: 700; color: var(--forest); line-height: 1; }
.rev-answer p { font-family: var(--sans); font-size: 1rem; color: var(--text-mid); line-height: 1.7; flex: 1 1 320px; }
.reviews-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 16px; margin-top: 24px; }
.rev {
  background: #fff; border-radius: var(--radius-lg); padding: 28px;
  box-shadow: 0 2px 12px rgba(11,61,44,.08);
  display: flex; flex-direction: column;
}
.rev-rating { font-size: 1.05rem; color: var(--forest-mid); letter-spacing: 2px; line-height: 1; margin-bottom: 12px; }
.rev-star-off { color: rgba(31,122,87,.32); }
.rev-text { margin-bottom: 16px; }
.rev-text p { font-family: var(--sans); font-size: 1rem; color: var(--text-mid); line-height: 1.7; }
.rev-text p::before { content: "«"; }
.rev-text p::after { content: "»"; }
.rev-meta { margin-top: auto; display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; font-family: var(--sans); }
.rev-name { font-style: normal; font-weight: 700; color: var(--forest); font-size: .98rem; }
.rev-date, .rev-src { font-size: .86rem; color: var(--text-mid); }
.rev-src a { color: var(--forest-mid); }
.reviews-legal { margin-top: 24px; font-family: var(--sans); font-size: .86rem; color: var(--text-mid); line-height: 1.65; max-width: 86ch; }
.reviews-legal a { color: var(--forest-mid); }

/* Шапка страницы /otzyvy/ */
.rev-page-head { background: var(--mint); padding: 72px 5%; }
.rev-page-head-inner { max-width: 920px; margin: 0 auto; }
.rev-page-head .eyebrow-block { color: var(--leaf); }
.rev-page-head h1 { font-size: clamp(1.8rem, 3vw, 2.6rem); color: #fff; line-height: 1.2; margin-bottom: 16px; }
.rev-page-lead { font-family: var(--sans); font-size: 1.05rem; color: rgba(255,255,255,.88); line-height: 1.8; margin-bottom: 12px; max-width: 74ch; }
.rev-page-lead a { color: var(--leaf); }

/* «Организациям»: второй список — лицензированные профили без постоянного приёма */
.medosmotr-lic-lead { margin-top: 28px; }
.medosmotr-lic li { background: rgba(255,255,255,.05); }
