/* zgtclinic.moscow — многостраничный сайт ЗГТ на дизайн-коде проектов ГЗТ.РФ (gzt.clinic, натестостероне.рф, андропауза.москва, климакс.москва):
   те же токены, шрифт Inter Display, скругления 14/22/28, красные «пиксели», кикеры и пилюли-кнопки. */

@font-face { font-family: 'Inter Display'; src: url('../fonts/InterDisplay-Light.woff2') format('woff2'); font-weight: 300; font-display: swap; }
@font-face { font-family: 'Inter Display'; src: url('../fonts/InterDisplay-Regular.woff2') format('woff2'); font-weight: 400; font-display: swap; }
@font-face { font-family: 'Inter Display'; src: url('../fonts/InterDisplay-Medium.woff2') format('woff2'); font-weight: 500; font-display: swap; }
@font-face { font-family: 'Inter Display'; src: url('../fonts/InterDisplay-SemiBold.woff2') format('woff2'); font-weight: 600; font-display: swap; }
@font-face { font-family: 'Inter Display'; src: url('../fonts/InterDisplay-Bold.woff2') format('woff2'); font-weight: 700; font-display: swap; }

: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, .47);
  --text-36: rgba(2, 13, 32, .36);
  --line: rgba(2, 13, 32, .1);
  --font: 'Inter Display', 'Inter Tight', 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --gutter: 20px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 90px; -webkit-text-size-adjust: 100%; }
html, body { overflow-x: clip; }
body { font: 400 16px/1.25 var(--font); letter-spacing: -.01em; color: var(--dark); background: #fff; -webkit-font-smoothing: antialiased; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button, input { font: inherit; color: inherit; letter-spacing: inherit; }
button { background: none; border: 0; cursor: pointer; }
ul, ol { list-style: none; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--red); outline-offset: 3px; }

.container { width: 100%; max-width: 1440px; margin: 0 auto; padding-inline: var(--gutter); }
.section { padding-block: clamp(48px, 6vw, 96px); }

/* Типографика ГЗТ: лёгкий крупный заголовок, акцентное слово красным */
.title { font-weight: 400; font-size: clamp(32px, 4.1vw, 59px); line-height: .95; letter-spacing: -.03em; }
.title b { font-weight: inherit; color: var(--red); }
.title--light { color: #fff; }
.lead { font-size: clamp(16px, 1.4vw, 20px); line-height: 1.35; letter-spacing: -.02em; color: var(--text-47); }
.lead--light { color: rgba(255, 255, 255, .6); }
.subtitle { font-weight: 500; font-size: 24px; line-height: 1.1; letter-spacing: -.02em; }
.muted { color: var(--text-47); line-height: 1.35; }
.head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 32px; }
.head__aside { max-width: 360px; font-size: 15px; line-height: 1.3; color: var(--text-36); }

.kicker { display: inline-flex; align-items: center; gap: 10px; padding: 12px 21px; border-radius: 35px; background: rgba(92, 131, 195, .12); font-size: 16px; color: rgba(2, 13, 32, .5); }
.kicker::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: var(--red); }
.kicker--dark { background: rgba(255, 255, 255, .12); color: rgba(255, 255, 255, .6); }
.kicker--dark::before { background: #fff; }

/* Кнопки */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; padding: 16px 38px; border-radius: 32px; font-weight: 500; font-size: 20px; letter-spacing: -.02em; color: #fff; white-space: nowrap; transition: opacity .2s, background .2s, transform .2s; }
.btn:hover { opacity: .88; }
.btn:active { transform: translateY(1px); }
.btn--red { background: var(--red); }
.btn--dark { background: var(--dark); }
.btn--ghost { background: var(--grey-bg); color: var(--dark); }
.btn--ghost:hover { background: #dde5f0; opacity: 1; }
.btn--sm { padding: 12px 24px; font-size: 16px; }
.btn--block { display: flex; width: 100%; }
.btn--arrow { padding: 7px 22px 7px 7px; background: #fff; color: var(--dark); font-size: 16px; border: 1px solid var(--line); }
.btn__circle { width: 30px; height: 30px; border-radius: 50%; background: var(--dark); position: relative; }
.btn__circle::after { content: ''; position: absolute; inset: 0; background: center / 14px no-repeat url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 14 14' fill='none' stroke='%23fff' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M1 7h12M8 2l5 5-5 5'/%3E%3C/svg%3E"); }
.btn:disabled { opacity: .55; cursor: default; }
.link-arrow { display: inline-flex; align-items: center; gap: 10px; font-size: 18px; letter-spacing: -.02em; }
.link-arrow::after { content: ''; width: 8px; height: 8px; border-top: 1.5px solid currentColor; border-right: 1.5px solid currentColor; transform: rotate(45deg); transition: transform .2s; }
.link-arrow:hover::after { transform: translateX(4px) rotate(45deg); }

/* Пиксели ГЗТ */
.pixels { position: relative; display: inline-block; flex-shrink: 0; width: calc(var(--n, 1) * 0px); }
.pixels i { position: absolute; left: calc(var(--x) * 13px); top: calc(var(--y) * 13px); width: 13px; height: 13px; background: var(--red); }

/* Заглушки под фото */
.ph { position: relative; width: 100%; height: 100%; display: flex; align-items: flex-end; padding: 20px; overflow: hidden; background: repeating-linear-gradient(135deg, var(--grey-bg-2) 0 14px, var(--grey-bg) 14px 28px); border-radius: inherit; }
.ph span { padding: 8px 12px; border-radius: 10px; background: rgba(255, 255, 255, .85); font-size: 14px; line-height: 1.3; color: var(--text-47); }
.ph--top { align-items: flex-start; justify-content: flex-end; }
.ph--dark { background: repeating-linear-gradient(135deg, #0b1a33 0 14px, #10213f 14px 28px); }
.ph--blue { background: repeating-linear-gradient(135deg, #a8c6f8 0 14px, var(--blue-card) 14px 28px); }

/* Шапка */
.header { position: fixed; top: 0; left: 0; right: 0; z-index: 50; background: #fff; transition: box-shadow .2s; }
body { padding-top: 82px; }
.header.is-scrolled { box-shadow: 0 1px 0 var(--line); }
.header__bar { display: flex; align-items: center; gap: 20px; height: 82px; }
.logo { font: 500 22px/1 var(--font); letter-spacing: -.04em; white-space: nowrap; }
.logo i { font-style: normal; color: var(--red); }
.logo--light { color: #fff; }
.header__nav { flex: 1; display: flex; justify-content: center; gap: 36px; }
.header__nav a { font-size: 16px; letter-spacing: -.02em; transition: color .2s; }
.header__nav a:hover { color: var(--red); }
.header__phone { font-weight: 500; font-size: 17px; white-space: nowrap; transition: color .2s; }
.header__phone:hover { color: var(--red); }
.header__phone--menu { display: none; }
.label-short { display: none; }
.burger { display: none; flex-shrink: 0; width: 44px; height: 44px; padding: 0 10px; flex-direction: column; justify-content: center; gap: 5px; }
.burger span { display: block; height: 2px; border-radius: 2px; background: var(--dark); transition: transform .25s, opacity .2s; }
.burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Поля */
.input { width: 100%; height: 60px; padding: 0 20px; border: 1.5px solid transparent; border-radius: 14px; background: var(--grey-bg-2); font-size: 17px; color: var(--dark); transition: border-color .15s, background .15s; }
.input::placeholder { color: var(--text-36); }
.input:hover { background: var(--grey-bg); }
.input:focus { outline: 0; border-color: var(--blue); background: #fff; }
.input--dark { background: rgba(255, 255, 255, .08); color: #fff; }
.input--dark::placeholder { color: rgba(255, 255, 255, .4); }
.input--dark:hover { background: rgba(255, 255, 255, .12); }
.input--dark:focus { background: rgba(255, 255, 255, .12); border-color: rgba(255, 255, 255, .5); }
.input:-webkit-autofill { -webkit-text-fill-color: var(--dark); -webkit-box-shadow: 0 0 0 100px #fff inset; }
.input--dark:-webkit-autofill { -webkit-text-fill-color: #fff; -webkit-box-shadow: 0 0 0 100px #16233a inset; }
.input.is-error { border-color: var(--red); }
.form-error { font-size: 14px; color: var(--red); }
.consent { font-size: 13px; line-height: 1.4; color: var(--text-36); }
.consent a { text-decoration: underline; }
.consent--dark { color: rgba(255, 255, 255, .4); }
.form-success { padding: 14px 16px; border-radius: 14px; background: var(--pink-bg); font-size: 15px; line-height: 1.35; color: var(--dark); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }

/* 3. Как это ощущается */
.signs__row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 32px; padding: 24px 0; border-top: 1px solid var(--line); }
.signs__row--head { padding: 0 0 14px; border: 0; font-size: 14px; color: var(--text-36); }
.signs__feel { display: flex; align-items: flex-start; gap: 24px; font-size: clamp(20px, 1.9vw, 26px); line-height: 1.1; letter-spacing: -.02em; }
.signs__feel .pixels { width: 78px; height: 26px; margin-top: 2px; }
.signs__why { font-size: 16px; line-height: 1.4; color: var(--text-47); }

/* 4. Масс-спектрометрия */
.analysis__box { padding: clamp(24px, 4vw, 56px); border-radius: 28px; background: var(--grey-bg); display: grid; gap: 40px; }
.analysis__head { max-width: 760px; }
.analysis__head .title { margin: 22px 0 18px; }
.compare { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.compare__col { padding: 28px; border-radius: 22px; background: var(--grey-bg-2); display: flex; flex-direction: column; }
.compare__col--accent { background: #fff; box-shadow: inset 0 0 0 1.5px var(--blue-card); }
.compare__name { margin-bottom: 18px; font-weight: 500; font-size: 20px; }
.compare__col li { position: relative; padding: 12px 0 12px 26px; border-top: 1px solid var(--line); font-size: 16px; line-height: 1.35; color: var(--text-47); }
.compare__col li::before { content: ''; position: absolute; left: 0; top: 17px; width: 10px; height: 10px; background: var(--text-36); }
.compare__col--accent li { color: var(--dark); }
.compare__col--accent li::before { background: var(--red); }
.compare__price { margin-top: auto; padding-top: 18px; font-size: 32px; letter-spacing: -.03em; }
.compare__price span { font-size: 15px; letter-spacing: 0; color: var(--text-47); }
.analysis__more { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: 32px; }
.analysis__more .muted { margin-top: 10px; }
.tests li { display: grid; grid-template-columns: 130px minmax(0, 1fr) auto; gap: 16px; align-items: baseline; padding: 14px 0; border-top: 1px solid var(--line); }
.tests b { font-weight: 500; font-size: 18px; }
.tests span { font-size: 15px; line-height: 1.35; color: var(--text-47); }
.tests em { font-style: normal; font-size: 16px; white-space: nowrap; }
.prep { padding: 28px; border-radius: 22px; background: var(--dark); color: #fff; }
.prep__title { margin-bottom: 20px; font-weight: 500; font-size: 20px; }
.prep ol { display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; counter-reset: prep; }
.prep li { padding: 16px; border-radius: 14px; background: rgba(255, 255, 255, .07); font-size: 14px; line-height: 1.3; color: rgba(255, 255, 255, .55); }
.prep b { display: block; margin-bottom: 6px; font-weight: 500; font-size: 18px; color: #fff; }

/* 5. Путь — вертикальные красные маркеры ГЗТ */
.path__list { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.path__item { position: relative; padding: 112px 24px 28px; border-radius: 22px; background: var(--grey-bg-2); }
.path__marker { position: absolute; left: 24px; top: 0; width: 1px; height: 72px; background: var(--red); }
.path__marker::after { content: ''; position: absolute; left: -6px; bottom: -6px; width: 13px; height: 13px; background: var(--red); }
.path__marker::before { content: ''; position: absolute; left: 6px; bottom: -6px; width: 13px; height: 13px; background: var(--pink-bg); }
.path__when { font-size: 15px; color: var(--red); }
.path__title { margin: 8px 0 14px; font-weight: 400; font-size: 28px; line-height: 1; letter-spacing: -.03em; }
.path__text { font-size: 15px; line-height: 1.4; color: var(--text-47); }

/* 6. Ошибки — стопка карточек */
.mistakes { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 48px; align-items: center; }
.mistakes__copy .lead { margin: 24px 0 32px; max-width: 460px; }
.stack { position: relative; min-height: 380px; padding-top: 40px; }
.stack__card { position: absolute; left: 0; right: 0; top: 40px; min-height: 290px; padding: 32px; border-radius: 22px; background: #fff; box-shadow: 0 18px 40px -20px rgba(2, 13, 32, .25); transform: translate(calc(var(--d, 0) * 22px), calc(var(--d, 0) * -20px)) scale(calc(1 - var(--d, 0) * .04)); transform-origin: top right; transition: transform .45s cubic-bezier(.2, .7, .2, 1), opacity .45s, background .3s; z-index: calc(10 - var(--d, 0)); }
.stack__card:not(.is-top) { background: var(--grey-bg); }
.stack__card.is-top { box-shadow: 0 24px 50px -22px rgba(2, 13, 32, .35), inset 0 0 0 1px var(--line); }
.stack__card.is-out { opacity: 0; transform: translate(-40px, 30px) rotate(-4deg); }
.stack__num { font-size: 28px; letter-spacing: -.03em; color: var(--red); }
.stack__title { margin: 18px 0 14px; font-weight: 500; font-size: 22px; line-height: 1.1; }
.stack__text { font-size: 16px; line-height: 1.45; color: var(--text-47); }
.stack__next { position: absolute; right: 0; bottom: -6px; font-size: 15px; color: var(--text-47); }
.stack__next:hover { color: var(--red); }

/* 8. Врачи */
.doctors__sub { margin-top: 12px; }
.doctors__controls { display: flex; align-items: center; gap: 20px; }
.filters { display: flex; flex-wrap: wrap; gap: 8px; }
.filter { padding: 11px 18px; border-radius: 30px; background: var(--grey-bg); font-size: 15px; transition: background .15s, color .15s; }
.filter:hover { background: #dde5f0; }
.filter.is-active { background: var(--dark); color: #fff; }
.arrows { display: flex; gap: 8px; }
.arrow { position: relative; width: 48px; height: 48px; border-radius: 50%; background: var(--grey-bg); transition: background .15s; }
.arrow:hover { background: var(--dark); }
.arrow::before { content: ''; position: absolute; left: 50%; top: 50%; width: 9px; height: 9px; border-top: 1.6px solid var(--dark); border-right: 1.6px solid var(--dark); transform: translate(-65%, -50%) rotate(45deg); }
.arrow--prev::before { transform: translate(-35%, -50%) rotate(-135deg); }
.arrow:hover::before { border-color: #fff; }
.arrow:disabled { opacity: .35; cursor: default; }
.arrow:disabled:hover { background: var(--grey-bg); }
.arrow:disabled:hover::before { border-color: var(--dark); }
.carousel { max-width: 1440px; margin: 0 auto; padding-inline: var(--gutter); overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: var(--gutter); scrollbar-width: none; cursor: grab; }
.carousel::-webkit-scrollbar { display: none; }
.carousel.is-dragging { cursor: grabbing; scroll-snap-type: none; }
.carousel.is-dragging .doctor { pointer-events: none; }
.carousel__track { display: flex; gap: 12px; width: max-content; }
.doctor { width: calc((min(100vw, 1440px) - 2 * var(--gutter) - 36px) / 4); min-width: 280px; flex-shrink: 0; scroll-snap-align: start; display: flex; flex-direction: column; }
.doctor__photo { position: relative; aspect-ratio: 4 / 5; border-radius: 22px; overflow: hidden; background: var(--grey-bg); }
.doctor__photo img { position: absolute; left: 50%; bottom: 0; width: 112%; max-width: none; transform: translateX(-50%); user-select: none; }
.doctor--doctorgrekov .doctor__photo img { width: 125%; bottom: -14%; }
.doctor__exp { position: absolute; left: 14px; top: 14px; padding: 7px 12px; border-radius: 20px; background: #fff; font-size: 14px; }
.doctor__body { flex: 1; display: flex; flex-direction: column; padding: 18px 4px 0; }
.doctor__name { font-weight: 500; font-size: 20px; line-height: 1.1; letter-spacing: -.02em; }
.doctor__about { margin: 8px 0 18px; font-size: 14px; line-height: 1.35; color: var(--text-47); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.doctor__foot { margin-top: auto; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.doctor__price { display: flex; flex-direction: column; font-size: 18px; }
.doctor__price span { font-size: 13px; color: var(--text-36); }

/* 9. Почему ГЗТ и отзывы */
.trust__grid { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); grid-template-rows: auto auto; gap: 12px; }
.trust__lead { position: relative; grid-row: span 2; min-height: 460px; border-radius: 28px; overflow: hidden; background: var(--dark); }
.trust__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 55% 30%; }
.trust__lead::after { content: ''; position: absolute; inset: 0; background: linear-gradient(20deg, rgba(2, 13, 32, .72) 0%, rgba(2, 13, 32, .25) 38%, rgba(2, 13, 32, 0) 60%); pointer-events: none; }
.trust__lead-text { z-index: 1; }
.trust__lead-text { position: absolute; left: 32px; bottom: 32px; max-width: 360px; color: #fff; text-shadow: 0 1px 12px rgba(2, 13, 32, .35); }
.trust__lead-text strong, .trust__stat strong { display: block; font-weight: 400; font-size: clamp(56px, 6vw, 88px); line-height: .9; letter-spacing: -.04em; }
.trust__lead-text span { display: block; margin-top: 12px; font-size: 18px; line-height: 1.25; }
.trust__stat { position: relative; padding: 28px; border-radius: 28px; background: var(--grey-bg); display: flex; flex-direction: column; justify-content: flex-end; min-height: 224px; }
.trust__stat > span:last-child, .trust__stat > span:not(.license) { margin-top: 8px; font-size: 18px; color: var(--text-47); }
.trust__stat--dark { background: var(--dark); color: #fff; transition: opacity .2s; }
.trust__stat--dark:hover { opacity: .92; }
.trust__stat--dark span { color: rgba(255, 255, 255, .6) !important; }
.trust__stat small { margin-top: 14px; font-size: 14px; color: rgba(255, 255, 255, .5); }
.license { position: absolute; top: 24px; right: 24px; padding: 8px 12px; border-radius: 10px; background: #fff; font-size: 13px; color: var(--text-47); }
.reviews { margin-top: clamp(48px, 6vw, 96px); display: flex; flex-direction: column; align-items: flex-start; }
.reviews__head { max-width: 980px; margin-bottom: 32px; }
.reviews__lead { margin-top: 22px; font-size: clamp(28px, 3.2vw, 46px); line-height: 1; }
.reviews__list { width: 100%; display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; margin-bottom: 28px; }
.review { padding: 22px; border-radius: 22px; background: var(--grey-bg-2); display: flex; flex-direction: column; }
.review__top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 14px; font-size: 13px; }
.review__stars { color: #ffb800; letter-spacing: 1px; }
.review__src { padding: 4px 8px; border-radius: 8px; background: #fff; color: var(--text-47); }
.review__text { flex: 1; font-size: 15px; line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 9; -webkit-box-orient: vertical; overflow: hidden; }
.review figcaption { margin-top: 18px; display: flex; flex-direction: column; gap: 2px; font-size: 14px; }
.review figcaption b { font-weight: 500; }
.review figcaption span { color: var(--text-36); }

/* 10. Вопросы */
.faq { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: 32px; align-items: start; }
.faq__list { display: flex; flex-direction: column; gap: 8px; }
.faq__item { border-radius: 22px; background: var(--grey-bg-2); }
.faq__item summary { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 22px 26px; list-style: none; cursor: pointer; font-size: 19px; line-height: 1.2; letter-spacing: -.02em; }
.faq__item summary::-webkit-details-marker { display: none; }
.faq__icon { position: relative; width: 16px; height: 16px; flex-shrink: 0; }
.faq__icon::before, .faq__icon::after { content: ''; position: absolute; left: 0; top: 7px; width: 16px; height: 2px; background: var(--dark); transition: transform .2s; }
.faq__icon::after { transform: rotate(90deg); }
.faq__item[open] .faq__icon::after { transform: rotate(0); }
.faq__item p { padding: 0 26px 24px; max-width: 760px; font-size: 16px; line-height: 1.45; color: var(--text-47); }

/* 11. Контакты */
.contact__grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 12px; }
.contact__form { padding: clamp(24px, 3vw, 44px); border-radius: 28px; background: var(--grey-bg); display: flex; flex-direction: column; gap: 10px; }
.contact__form .title { margin-bottom: 8px; }
.contact__form .lead { margin-bottom: 18px; }
.contact__form .input { background: #fff; }
.contact__info { display: grid; grid-template-rows: minmax(300px, 1fr) auto; gap: 12px; }
.contact__map { border-radius: 28px; overflow: hidden; background: var(--grey-bg); }
.contact__map iframe { width: 100%; height: 100%; min-height: 300px; border: 0; display: block; }
.contact__list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.contact__list div { padding: 20px; border-radius: 22px; background: var(--grey-bg-2); }
.contact__list dt { font-size: 14px; color: var(--text-36); }
.contact__list dd { margin-top: 8px; font-size: 16px; line-height: 1.35; }

/* Подвал — один в один с gzt.clinic (css/style.css, блок Footer) */
.footer { margin-top: 80px; }
.footer__bg { background: var(--dark); border-radius: 28px 28px 0 0; padding: 44px 0 0; color: #fff; }
.footer__inner { max-width: 1440px; margin: 0 auto; padding: 0 42px; }
.footer__top { position: relative; display: flex; align-items: flex-start; }
.footer__logo { font-size: 26px; line-height: 39px; }
.footer__dash { position: absolute; top: 0; height: 7px; border-radius: 8px; background: #fff; }
.footer__dash--long { left: 333px; width: 41px; }
.footer__dash--short { left: 378px; width: 13px; }
.footer__dash--right { right: 0; width: 41px; }
.footer__cols { display: grid; grid-template-columns: 300px repeat(4, minmax(0, 1fr)); gap: 40px; margin-top: 51px; }
.footer__legal { font-size: 10px; line-height: 1.25; letter-spacing: -.02em; color: rgba(255, 255, 255, .47); max-width: 240px; }
.footer__legal p + p { margin-top: 12px; }
.footer__license { position: relative; margin-top: 36px; width: 255px; height: 86px; border-radius: 18px; background: rgba(255, 255, 255, .04); }
.footer__license-emblem { position: absolute; left: 11.8px; top: 12.6px; width: 23.9px; height: 28.2px; }
.footer__license-authority { position: absolute; left: 46.2px; top: 13.3px; width: 132px; font-size: 8.42px; line-height: 1.15; text-transform: uppercase; color: #fff; white-space: pre-line; }
.footer__license-qr { position: absolute; left: 182.2px; top: 15px; width: 56.1px; height: 56.1px; display: block; }
.footer__license-qr img { display: block; width: 100%; height: 100%; }
.footer__license-number { position: absolute; left: 11.8px; top: 52.6px; font-size: 8.42px; font-weight: 600; color: #fff; }
.footer__license-link { position: absolute; left: 11.8px; top: 66.6px; font-size: 5.61px; color: #fff; text-decoration: underline; }
.footer__col { display: flex; flex-direction: column; }
.footer__col-title { margin-bottom: 16px; font-size: 17px; color: #fff; letter-spacing: -.02em; }
.footer__col a { margin-top: 6px; font-size: 15px; line-height: 24px; letter-spacing: -.02em; color: rgba(255, 255, 255, .47); transition: color .2s; }
.footer__col a:hover { color: #fff; }
.footer__bottom { display: grid; grid-template-columns: 300px repeat(4, minmax(0, 1fr)); gap: 40px; align-items: start; margin-top: 100px; }
.footer__dev-label { display: block; font-size: 16px; letter-spacing: -.32px; color: rgba(255, 255, 255, .47); }
.footer__dev-name { display: block; margin-top: 14px; }
.footer__dev-name img { width: 96px; height: 15px; }
.footer__contact { display: block; font-size: 19px; line-height: 1.1; letter-spacing: -.02em; color: #fff; }
.footer__bottom span { display: block; margin-top: 8px; font-size: 14px; letter-spacing: -.02em; color: rgba(255, 255, 255, .47); }
.footer__addr { font-weight: 400; }
.footer__socials { display: flex; align-items: center; gap: 25.87px; justify-self: end; margin-top: 4px; }
.footer__social { display: block; height: 30px; }
.footer__social img { display: block; width: auto; height: auto; max-height: 30px; }
.footer__disclaimer { margin-top: 44px; padding: 26px 0; background: rgba(255, 255, 255, .04); text-align: center; }
.footer__disclaimer-text { font-size: 13px; line-height: 1.5; letter-spacing: -.01em; color: rgba(255, 255, 255, .47); }
.footer__disclaimer-notice { margin-top: 10px; font-size: 14px; font-weight: 700; letter-spacing: .02em; color: rgba(255, 255, 255, .75); }
@media (max-width: 1439px) {
  .footer__cols, .footer__bottom { grid-template-columns: repeat(3, 1fr); gap: 20px; row-gap: 32px; }
  .footer__dash--long { left: 25%; }
  .footer__dash--short { left: calc(25% + 45px); }
  .footer__inner { padding: 0 32px; }
}
@media (max-width: 1099px) {
  .footer__cols, .footer__bottom { grid-template-columns: 1fr 1fr; gap: 24px; row-gap: 32px; }
  .footer__dash { display: none; }
  .footer__legal { max-width: none; }
  .footer__inner { padding: 0 24px; }
  .footer__disclaimer { padding: 20px 0; }
}
@media (max-width: 659px) {
  .footer__cols, .footer__bottom { grid-template-columns: 1fr; }
  .footer__col a { display: flex; align-items: center; min-height: 44px; margin-top: 0; }
  .footer__legal { font-size: 12px; line-height: 1.45; max-width: none; }
  .footer__bottom { margin-top: 48px; row-gap: 28px; }
  .footer__socials { justify-self: start; }
  .footer__license { margin-top: 24px; }
  .footer__inner { padding: 0 16px; }
  .footer__disclaimer { padding: 18px 0; }
  .footer__disclaimer-text { font-size: 12px; }
}

/* Модальное окно */
.modal { position: fixed; inset: 0; z-index: 100; display: flex; align-items: center; justify-content: center; padding: 16px; }
.modal__overlay { position: absolute; inset: 0; background: rgba(2, 13, 32, .55); animation: fade .2s ease; }
.modal__dialog { position: relative; width: 100%; max-width: 460px; max-height: calc(100vh - 32px); overflow: auto; padding: 40px 32px 28px; border-radius: 28px; background: #fff; animation: fade-up .25s ease; }
.modal__close { position: absolute; top: 16px; right: 16px; width: 40px; height: 40px; border-radius: 50%; background: var(--grey-bg); }
.modal__close::before, .modal__close::after { content: ''; position: absolute; left: 12px; top: 19px; width: 16px; height: 1.6px; background: var(--dark); transform: rotate(45deg); }
.modal__close::after { transform: rotate(-45deg); }
.modal__form { display: flex; flex-direction: column; gap: 10px; }
.modal__title { padding-right: 40px; font-size: 32px; line-height: 1; letter-spacing: -.03em; }
.modal__text { margin: 6px 0 12px; font-size: 16px; line-height: 1.4; color: var(--text-47); }
.modal__text a { color: var(--red); }
body.is-locked { overflow: hidden; }
@keyframes fade { from { opacity: 0; } }
@keyframes fade-up { from { opacity: 0; transform: translateY(10px); } }

.reveal { opacity: 0; transform: translateY(24px); transition: opacity .6s ease, transform .6s ease; }
.reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* Юридические страницы */
.legal-page .header { position: relative; }
.legal-page { padding-top: 0; }
.legal { max-width: 920px; padding-top: 48px; padding-bottom: 80px; }
.legal__crumbs { font-size: 14px; color: var(--text-47); margin-bottom: 16px; }
.legal__crumbs a { text-decoration: underline; }
.legal .h2 { margin-bottom: 32px; font-size: clamp(32px, 4vw, 52px); font-weight: 400; line-height: 1; letter-spacing: -.03em; }
.legal__body { font-size: 16px; line-height: 1.6; }
.legal__body h2 { margin: 32px 0 12px; font-weight: 500; font-size: 22px; }
.legal__body p, .legal__body ul { margin-bottom: 12px; }
.legal__body ul { padding-left: 22px; list-style: disc; }
.legal__body a { text-decoration: underline; }
.legal-page .footer { padding: 24px 0; }
.legal-page .footer__disclaimer { max-width: 1440px; margin: 0 auto; padding: 0 var(--gutter); font-size: 13px; color: rgba(255, 255, 255, .5); }

/* ---------- Адаптив ---------- */

@media (max-width: 1280px) {
  .header__nav { gap: 22px; }
  .header__phone { display: none; }
  .reviews__list { grid-template-columns: repeat(3, 1fr); }
  .reviews__list .review:nth-child(n+4) { display: none; }
  .prep ol { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 1024px) {
  body { padding-top: 68px; }
  .header__bar { height: 68px; gap: 12px; }
  .logo { font-size: 19px; }
  .header__bar > .btn--arrow { margin-left: auto; }
  .burger { display: flex; }
  .header__nav { position: fixed; top: 68px; left: 0; right: 0; height: calc(100vh - 68px); height: calc(100dvh - 68px); padding: 24px var(--gutter); flex-direction: column; justify-content: flex-start; gap: 0; background: #fff; overflow-y: auto; overscroll-behavior: contain; opacity: 0; visibility: hidden; transition: opacity .2s, visibility .2s; }
  .header.is-open .header__nav { opacity: 1; visibility: visible; }
  .header__nav a { padding: 18px 0; border-bottom: 1px solid var(--line); font-size: 28px; letter-spacing: -.03em; }
  .header__phone--menu { display: block; border: 0 !important; color: var(--red); }

  .hero__grid { grid-template-columns: 1fr 1fr; }
  .hero__copy { grid-column: 1 / -1; flex-direction: row; align-items: flex-end; padding: 0 0 20px; }
  .hero__facts { grid-template-columns: 1fr 1fr; }
  .quiz__inner, .mistakes, .faq, .contact__grid { grid-template-columns: 1fr; }
  .quiz__inner { gap: 32px; }
  .analysis__more { grid-template-columns: 1fr; gap: 16px; }
  .path__list { grid-template-columns: 1fr 1fr; }
  .prices__grid { grid-template-columns: 1fr 1fr; }
  .doctor { width: calc((100vw - 2 * var(--gutter) - 24px) / 3); min-width: 260px; }
  .trust__grid { grid-template-columns: 1fr 1fr; }
  .trust__lead { grid-column: 1 / -1; grid-row: auto; min-height: 380px; }
  .head { flex-direction: column; align-items: flex-start; }
  .doctors__controls { flex-wrap: wrap; }
}

@media (max-width: 640px) {
  :root { --gutter: 16px; }
  html { scroll-padding-top: 72px; }

  .btn { padding: 15px 26px; font-size: 17px; }
  .btn--arrow { padding: 5px 14px 5px 5px; font-size: 15px; gap: 8px; }
  .label-full { display: none; }
  .label-short { display: inline; }
  .logo { font-size: 18px; }
  .btn__circle { width: 26px; height: 26px; }
  .kicker { padding: 9px 16px; font-size: 14px; }
  .title { font-size: 32px; }

  .hero__top { flex-direction: column; align-items: flex-start; gap: 12px; }
  .hero__title { margin: 20px 0 20px; font-size: 40px; }
  .hero__grid { grid-template-columns: 1fr; }
  .hero__copy { flex-direction: column; align-items: stretch; gap: 24px; padding: 0 0 8px; }
  .hero__actions { flex-direction: column; align-items: stretch; gap: 18px; }
  .hero__actions .btn { width: 100%; }
  .hero__actions .link-arrow { justify-content: center; }
  .hero-quiz { min-height: 0; padding: 22px 18px; border-radius: 22px; }
  .hero-quiz__count { margin-top: 28px; }
  .hero__photo { min-height: 0; aspect-ratio: 4 / 5; border-radius: 22px; }
  .hero__facts { grid-template-columns: 1fr 1fr; gap: 8px 16px; }
  .hero__facts div { padding-top: 14px; }

  .quiz__inner { padding: 24px 16px; border-radius: 22px; }
  .quiz__card { padding: 22px 16px; min-height: 380px; }
  .quiz__progress { gap: 4px; margin-bottom: 28px; }
  .quiz__progress i { width: 12px; height: 12px; }

  .signs__row { grid-template-columns: 1fr; gap: 10px; padding: 20px 0; }
  .signs__row--head { display: none; }
  .signs__feel { gap: 16px; }
  .signs__feel .pixels { transform: scale(.75); transform-origin: left top; width: 59px; }
  .signs__why { padding-left: 75px; font-size: 15px; }

  .analysis__box { padding: 24px 16px; border-radius: 22px; gap: 28px; }
  .compare { grid-template-columns: 1fr; }
  .compare__col { padding: 20px; }
  .tests li { grid-template-columns: 1fr auto; gap: 4px 12px; }
  .tests span { grid-column: 1 / -1; grid-row: 2; }
  .prep { padding: 20px 16px; }
  .prep ol { grid-template-columns: 1fr 1fr; }
  .prep li:last-child { grid-column: 1 / -1; }

  .path__list { grid-template-columns: 1fr; }
  .path__item { padding: 24px 20px 24px 56px; }
  .path__marker { left: 26px; top: 0; height: 100%; }
  .path__marker::after { bottom: auto; top: 26px; }
  .path__marker::before { display: none; }
  .path__title { font-size: 24px; }

  .stack { min-height: 400px; }
  .stack__card { padding: 24px 20px; min-height: 320px; }
  .stack__card { transform: translate(calc(var(--d, 0) * 10px), calc(var(--d, 0) * -16px)) scale(calc(1 - var(--d, 0) * .04)); }

  .prices__grid { grid-template-columns: 1fr; }
  .prices__group { padding: 20px; }

  .doctors__controls .arrows { display: none; }
  .doctor { width: calc(100vw - 2 * var(--gutter) - 48px); min-width: 0; }

  .trust__grid { grid-template-columns: 1fr; }
  .trust__lead { min-height: 340px; border-radius: 22px; }
  .trust__lead-text { left: 20px; bottom: 20px; }
  .trust__stat { min-height: 180px; border-radius: 22px; }
  .reviews__list { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; margin-inline: calc(-1 * var(--gutter)); padding-inline: var(--gutter); width: calc(100% + 2 * var(--gutter)); }
  .reviews__list::-webkit-scrollbar { display: none; }
  .reviews__list .review { display: flex !important; flex: 0 0 82%; scroll-snap-align: center; }
  .reviews .btn { width: 100%; }

  .faq__item summary { padding: 18px 18px; font-size: 17px; }
  .faq__item p { padding: 0 18px 20px; font-size: 15px; }

  .contact__form { border-radius: 22px; }
  .contact__map { border-radius: 22px; }
  .contact__list { grid-template-columns: 1fr; }

  .modal { align-items: flex-end; padding: 0; }
  .modal__dialog { max-width: none; border-radius: 24px 24px 0 0; padding: 32px 16px 20px; }
}


/* ================= zgtclinic.moscow ================= */

/* Логотип ГЗТ.РФ с плашкой, как на gzt.clinic */
.brand { display: flex; align-items: center; gap: 6px; flex-shrink: 0; }
.brand img { width: 98px; height: 34px; }
.header__nav a[aria-current="page"] { color: var(--red); }

/* Мягкая тема для женской страницы: тот же код, акцент — приглушённая роза */
.theme-soft { --red: #d4687c; --pink-bg: #fbeef0; --grey-bg: #f5edef; --grey-bg-2: #faf5f6; --line: rgba(60, 20, 30, .1); }
.ph--rose { background: repeating-linear-gradient(135deg, #f3dde2 0 14px, #f8e8eb 14px 28px); }

.crumbs { font-size: 14px; color: var(--text-47); }
.crumbs a { text-decoration: underline; text-underline-offset: 3px; }
.crumbs a:hover { color: var(--red); }

/* Главная: заголовок + два входа */
.home-hero { padding-top: clamp(28px, 3vw, 48px); padding-bottom: clamp(32px, 4vw, 64px); }
.home-hero__head { display: grid; grid-template-columns: minmax(0, 8fr) minmax(0, 4fr); gap: 24px 48px; align-items: end; }
.home-hero__head .kicker { grid-column: 1 / -1; justify-self: start; }
.home-hero__title { font-size: clamp(42px, 6vw, 96px); line-height: .92; letter-spacing: -.045em; }
.home-hero__lead { padding-bottom: 8px; }
.entries { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 40px; }
.entry { position: relative; display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); min-height: 380px; border-radius: 28px; overflow: hidden; transition: transform .25s; }
.entry:hover { transform: translateY(-4px); }
.entry--men { background: var(--dark); color: #fff; }
.entry--women { background: #f5edef; color: var(--dark); }
.entry__photo { display: flex; }
.entry__photo > .ph { flex: 1; border-radius: 0; }
.entry__photo { position: relative; overflow: hidden; }
.entry__photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 20%; transition: transform .6s; }
.entry:hover .entry__photo img { transform: scale(1.03); }
.entry__body { padding: 32px; display: flex; flex-direction: column; }
.entry__label { font-size: 15px; opacity: .6; }
.entry__title { margin: 12px 0 14px; font-weight: 400; font-size: clamp(28px, 2.6vw, 40px); line-height: 1; letter-spacing: -.03em; }
.entry__text { font-size: 16px; line-height: 1.4; opacity: .7; }
.entry__more { margin-top: auto; padding-top: 24px; display: inline-flex; align-items: center; gap: 12px; font-size: 18px; }
.entry__more::after { content: ''; width: 34px; height: 34px; border-radius: 50%; background: center / 14px no-repeat url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 14 14' fill='none' stroke='%23fff' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M1 7h12M8 2l5 5-5 5'/%3E%3C/svg%3E") #ed3237; transition: transform .2s; }
.entry--women .entry__more::after { background-color: #d4687c; }
.entry:hover .entry__more::after { transform: translateX(4px); }

/* Три правила */
.principles__inner { padding: clamp(32px, 4vw, 64px); border-radius: 28px; background: var(--dark); color: #fff; }
.principles__inner .title { max-width: 820px; margin-bottom: 40px; }
.principles__list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.principles__list li { padding: 26px; border-radius: 22px; background: rgba(255, 255, 255, .06); }
.principles__list .pixels { display: block; width: 39px; height: 26px; margin-bottom: 28px; }
.principles__list h3 { font-weight: 500; font-size: 22px; letter-spacing: -.02em; }
.principles__list p { margin-top: 10px; font-size: 15px; line-height: 1.45; color: rgba(255, 255, 255, .6); }

/* Внутренние страницы: первый экран */
.page-hero { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 40px; padding-top: clamp(28px, 3vw, 48px); padding-bottom: clamp(32px, 4vw, 64px); }
.page-hero__copy { display: flex; flex-direction: column; align-items: flex-start; }
.page-hero__title { margin: 20px 0 24px; font-size: clamp(40px, 5vw, 76px); line-height: .94; letter-spacing: -.04em; }
.page-hero__copy .lead { max-width: 600px; }
.page-hero__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 28px; margin-top: 36px; }
.page-hero__facts { width: 100%; display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: auto; padding-top: 48px; }
.page-hero__facts div { padding-top: 18px; border-top: 1px solid var(--line); }
.page-hero__facts dt { font-size: clamp(22px, 2vw, 30px); letter-spacing: -.03em; white-space: nowrap; }
.page-hero__facts dd { margin-top: 6px; font-size: 14px; line-height: 1.3; color: var(--text-47); }
.page-hero__photo { min-height: 560px; border-radius: 28px; overflow: hidden; display: flex; }
.page-hero__photo > .ph { flex: 1; }
.page-hero__photo { position: relative; background: var(--grey-bg); }
.page-hero__photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 40% 30%; }
.page-hero__photo--center img { object-position: 55% 25%; }

.adam-link { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-top: 24px; padding: 22px 26px; border-radius: 22px; background: var(--grey-bg); font-size: 18px; transition: background .2s; }
.adam-link:hover { background: #dde5f0; }
.adam-link .link-arrow { font-size: 15px; color: var(--text-47); }

/* Противопоказания */
.contra { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.contra__col { padding: 26px; border-radius: 22px; background: var(--grey-bg-2); }
.contra__col--no { background: var(--dark); color: #fff; }
.contra__title { margin-bottom: 14px; font-weight: 500; font-size: 20px; }
.contra__col li { position: relative; padding: 11px 0 11px 24px; border-top: 1px solid var(--line); font-size: 15px; line-height: 1.35; color: var(--text-47); }
.contra__col--no li { border-color: rgba(255, 255, 255, .12); color: rgba(255, 255, 255, .7); }
.contra__col li::before { content: ''; position: absolute; left: 0; top: 16px; width: 10px; height: 10px; background: var(--text-36); }
.contra__col--no li::before { background: var(--red); }

.path__list--4 { grid-template-columns: repeat(4, 1fr); }

/* Планирование детей */
.kids__inner { display: grid; grid-template-columns: auto 1fr auto; gap: 32px; align-items: center; padding: 32px; border-radius: 28px; background: var(--pink-bg); }
.kids__inner .pixels { width: 39px; height: 26px; }
.kids__title { font-weight: 400; font-size: 32px; letter-spacing: -.03em; }
.kids__inner p { margin-top: 10px; max-width: 760px; font-size: 16px; line-height: 1.45; color: var(--text-47); }

/* Окно возможностей */
.window__inner { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 48px; align-items: center; padding: clamp(28px, 4vw, 56px); border-radius: 28px; background: var(--grey-bg); }
.window__copy .title { margin: 22px 0 18px; }
.window__bar { position: relative; height: 56px; border-radius: 14px; background: #fff; overflow: hidden; }
.window__fill { position: absolute; left: 0; top: 0; bottom: 0; width: 75%; background: repeating-linear-gradient(90deg, var(--red) 0 13px, transparent 13px 16px); opacity: .85; }
.window__fill::after { content: 'лучшее время для старта'; position: absolute; left: 16px; top: 50%; transform: translateY(-50%); padding: 6px 12px; border-radius: 10px; background: #fff; font-size: 14px; color: var(--dark); }
.window__labels { display: flex; justify-content: space-between; margin-top: 10px; font-size: 15px; color: var(--text-47); }
.window__caption { margin-top: 6px; font-size: 13px; color: var(--text-36); }

.reviews__list--3 { grid-template-columns: repeat(3, 1fr); }
.reviews__list--3 .review { display: flex !important; }

/* Контакты */
.contacts-page { padding-top: clamp(28px, 3vw, 48px); }
.contacts-page__head .title { margin-top: 16px; font-size: clamp(42px, 5.6vw, 88px); line-height: .92; letter-spacing: -.045em; }
.contacts-page__grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 12px; margin-top: 32px; }
.contacts-page__map { min-height: 560px; border-radius: 28px; overflow: hidden; background: var(--grey-bg); }
.contacts-page__map iframe { width: 100%; height: 100%; min-height: 560px; border: 0; display: block; }
.contacts-page__cards { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.info-card { padding: 24px; border-radius: 22px; background: var(--grey-bg-2); display: flex; flex-direction: column; }
.info-card--wide, .info-card--dark { grid-column: 1 / -1; }
.info-card--dark { background: var(--dark); color: #fff; }
.info-card__label { font-size: 14px; color: var(--text-36); }
.info-card--dark .info-card__label { color: rgba(255, 255, 255, .5); }
.info-card__value { margin-top: 10px; font-size: 22px; line-height: 1.2; letter-spacing: -.02em; }
.info-card__note { margin-top: 10px; font-size: 15px; line-height: 1.4; color: var(--text-47); }
.info-card--dark .info-card__note { color: rgba(255, 255, 255, .6); }
.info-card__links { margin-top: auto; padding-top: 20px; }
.info-card--dark .link-arrow { color: #fff; }
.contact__grid--single { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); }
.legal-card { padding: clamp(24px, 3vw, 44px); border-radius: 28px; background: var(--grey-bg-2); display: flex; flex-direction: column; gap: 14px; font-size: 15px; line-height: 1.5; color: var(--text-47); }
.legal-card .link-arrow { margin-top: auto; color: var(--dark); font-size: 16px; }

@media (max-width: 1024px) {
  .home-hero__head { grid-template-columns: minmax(0, 1fr); }
  .entries { grid-template-columns: minmax(0, 1fr); }
  .principles__list { grid-template-columns: minmax(0, 1fr); }
  .page-hero { grid-template-columns: minmax(0, 1fr); }
  .page-hero__photo { min-height: 420px; }
  .path__list--4 { grid-template-columns: 1fr 1fr; }
  .kids__inner { grid-template-columns: auto 1fr; }
  .kids__inner .btn { grid-column: 2; justify-self: start; }
  .window__inner { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .contacts-page__grid, .contact__grid--single { grid-template-columns: minmax(0, 1fr); }
  .contacts-page__map, .contacts-page__map iframe { min-height: 380px; }
  .reviews__list--3 { grid-template-columns: 1fr 1fr; }
  .reviews__list--3 .review:nth-child(n+3) { display: none !important; }
}

@media (max-width: 640px) {
  .brand img { width: 80px; height: auto; }
    .home-hero__title { font-size: 40px; }
  .entry { grid-template-columns: minmax(0, 1fr); min-height: 0; border-radius: 22px; }
  .entry__photo { height: 240px; }
  .entry__body { padding: 22px 20px; }
  .principles__inner { padding: 24px 16px; border-radius: 22px; }
  .principles__list li { padding: 20px; }
  .page-hero__title { font-size: 36px; }
  .page-hero__actions { flex-direction: column; align-items: stretch; gap: 18px; }
  .page-hero__actions .btn { width: 100%; white-space: normal; text-align: center; }
  .page-hero__actions .link-arrow { justify-content: center; }
  .page-hero__facts { grid-template-columns: 1fr; gap: 0; padding-top: 32px; }
  .page-hero__facts div { display: flex; align-items: baseline; gap: 12px; padding: 12px 0; }
  .page-hero__facts dd { margin: 0; }
  .page-hero__photo { min-height: 0; aspect-ratio: 4 / 5; border-radius: 22px; }
  .adam-link { flex-direction: column; align-items: flex-start; font-size: 16px; padding: 20px; }
  .contra { grid-template-columns: minmax(0, 1fr); }
  .contra__col { padding: 20px; }
  .path__list--4 { grid-template-columns: minmax(0, 1fr); }
  .kids__inner { grid-template-columns: minmax(0, 1fr); gap: 16px; padding: 24px 20px; border-radius: 22px; }
  .kids__inner .btn { grid-column: auto; width: 100%; }
  .kids__title { font-size: 26px; }
  .window__inner { padding: 24px 16px; border-radius: 22px; }
  .window__fill::after { font-size: 12px; left: 8px; }
  .reviews__list--3 .review:nth-child(n+3) { display: flex !important; }
  .contacts-page__cards { grid-template-columns: minmax(0, 1fr); }
  .contacts-page__map, .contacts-page__map iframe { min-height: 300px; border-radius: 22px; }
  .info-card__value { font-size: 20px; }
}

/* ===== Второй этап: обследование, врачи, цены, вопросы ===== */
.header__nav { gap: 26px; }
.page-hero--text { grid-template-columns: minmax(0, 1fr); padding-bottom: 8px; }
.page-hero--text .page-hero__copy { max-width: 980px; }
.page-hero--text .lead { max-width: 760px; }

/* План обследования */
.plan__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.plan__col { padding: clamp(24px, 3vw, 40px); border-radius: 28px; background: var(--grey-bg); display: flex; flex-direction: column; }
.plan__col--m { background: var(--dark); color: #fff; }
.plan__col--w { background: #f5edef; }
.plan__title { font-weight: 400; font-size: clamp(30px, 3vw, 44px); letter-spacing: -.03em; }
.plan__label { margin: 28px 0 10px; font-size: 14px; opacity: .55; }
.plan__before li { position: relative; padding: 11px 0 11px 24px; border-top: 1px solid rgba(127, 127, 127, .2); font-size: 16px; line-height: 1.35; }
.plan__before li::before { content: ''; position: absolute; left: 0; top: 16px; width: 10px; height: 10px; background: #ed3237; }
.plan__col--w .plan__before li::before { background: #d4687c; }
.plan__during { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.plan__during li { padding: 16px; border-radius: 16px; background: rgba(255, 255, 255, .08); display: flex; flex-direction: column; gap: 6px; }
.plan__col--w .plan__during li { background: #fff; }
.plan__during b { font-weight: 500; font-size: 17px; }
.plan__during span { font-size: 14px; line-height: 1.35; opacity: .65; }
.plan__col .link-arrow { margin-top: 28px; }
.plan__col--m .link-arrow { color: #fff; }

/* Фильтры */
.sex-filter, .team__filters { display: flex; flex-wrap: wrap; gap: 8px; }
.sex-filter .filter { background: #fff; }
.sex-filter .filter.is-active { background: var(--dark); }
.tests--full li[hidden] { display: none; }

/* Чекапы */
.checkups__grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; }
.checkup { padding: 24px; border-radius: 22px; background: var(--grey-bg-2); display: flex; flex-direction: column; }
.checkup--w { background: #faf3f4; }
.checkup__who { font-size: 13px; color: var(--text-36); }
.checkup__name { margin: 8px 0 10px; font-weight: 400; font-size: 26px; line-height: 1; letter-spacing: -.03em; }
.checkup__about { font-size: 14px; line-height: 1.4; color: var(--text-47); }
.checkup__price { margin: 18px 0; padding-top: 14px; border-top: 1px solid var(--line); display: flex; flex-direction: column; gap: 8px; }
.checkup__price div { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.checkup__price dt { font-size: 14px; color: var(--text-47); }
.checkup__price dd { font-size: 20px; letter-spacing: -.02em; white-space: nowrap; }
.checkup .btn { margin-top: auto; align-self: flex-start; }
.checkups__more { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-top: 12px; padding: 22px 26px; border-radius: 22px; background: var(--grey-bg); font-size: 18px; transition: background .2s; }
.checkups__more:hover { background: #dde5f0; }
.checkups__more .link-arrow { font-size: 15px; color: var(--text-47); }

/* Врачи сеткой */
.team__filters { margin-bottom: 24px; }
.team__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.doctor--grid { width: auto; min-width: 0; }
.doctor--grid[hidden] { display: none; }
.doctor__tags { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 10px; }
.doctor__tags span { padding: 5px 10px; border-radius: 10px; background: var(--grey-bg); font-size: 12px; }

/* Цены */
.pricelist__search { max-width: 560px; margin-bottom: 24px; }
.pricelist__groups { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; align-items: start; }
.pricelist__group { padding: 28px; border-radius: 22px; background: var(--grey-bg-2); }
.pricelist__group[hidden] { display: none; }
.pricelist__name { margin-bottom: 12px; font-weight: 500; font-size: 22px; }
.pricelist__group li { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding: 13px 0; border-top: 1px solid var(--line); }
.pricelist__group li[hidden] { display: none; }
.pricelist__group li div { display: flex; flex-direction: column; gap: 3px; }
.pricelist__group li span { font-size: 15px; line-height: 1.35; }
.pricelist__group li small { font-size: 13px; line-height: 1.35; color: var(--text-47); }
.pricelist__group li b { font-weight: 500; font-size: 17px; white-space: nowrap; }
.pricelist__empty { grid-column: 1 / -1; padding: 24px; border-radius: 22px; background: var(--grey-bg-2); font-size: 16px; }
.pricelist__empty a { color: var(--red); }
.pricelist__note { margin-top: 18px; font-size: 14px; color: var(--text-47); }
.pricelist__note a { text-decoration: underline; }

/* Мифы: карточка переворачивается по клику */
.myths__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.myth { position: relative; min-height: 280px; border-radius: 22px; overflow: hidden; }
.myth__face, .myth__truth { position: absolute; inset: 0; padding: 28px; display: flex; flex-direction: column; text-align: left; }
.myth__face { background: var(--dark); color: #fff; transition: opacity .25s; }
.myth__face:hover .myth__hint { color: #fff; }
.myth__truth { background: var(--grey-bg); animation: fade-up .3s ease; overflow-y: auto; }
.myth.is-open .myth__face { opacity: 0; pointer-events: none; }
.myth__label { font-size: 13px; color: var(--red); }
.myth__face .myth__label { color: #ff777b; }
.myth__text { margin-top: 14px; font-size: clamp(24px, 2.2vw, 32px); line-height: 1.05; letter-spacing: -.03em; }
.myth__hint { margin-top: auto; font-size: 15px; color: rgba(255, 255, 255, .55); transition: color .2s; }
.myth__hint::after { content: ' →'; }
.myth__truth p { margin-top: 12px; font-size: 16px; line-height: 1.45; }
.faq-groups { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: 32px; align-items: start; }
.faq-groups__list { display: flex; flex-direction: column; gap: 28px; }
.faq-groups__name { margin-bottom: 10px; font-weight: 500; font-size: 15px; color: var(--text-47); }

@media (max-width: 1360px) {
  .header__nav { gap: 18px; }
  .header__nav a { font-size: 15px; }
  .checkups__grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 1280px) {
  .team__grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 1024px) {
  .plan__grid, .pricelist__groups, .faq-groups { grid-template-columns: minmax(0, 1fr); }
  .checkups__grid, .team__grid, .myths__grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .plan__col { border-radius: 22px; }
  .plan__during { grid-template-columns: minmax(0, 1fr); }
  .checkups__grid, .team__grid, .myths__grid { grid-template-columns: minmax(0, 1fr); }
  .checkups__more { flex-direction: column; align-items: flex-start; font-size: 16px; padding: 20px; }
  .pricelist__group { padding: 20px 16px; }
  .myth { min-height: 240px; }
  .myth__face, .myth__truth { padding: 22px 20px; }
  .doctor--grid .doctor__photo { aspect-ratio: 1 / 1; }
}
.tests--full li { grid-template-columns: 300px minmax(0, 1fr) auto; }
.doctor__foot .btn { margin-left: auto; }
@media (max-width: 640px) { .tests--full li { grid-template-columns: 1fr auto; } }
