/* Чекап.Мужчины (checkup-man.ru) — на дизайн-коде проектов ГЗТ.РФ (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; }

/* 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); }

/* 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: 60% 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); }


.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.head__side { display: flex; align-items: center; gap: 24px; }
.head__side .head__aside { text-align: right; }

/* Переключатель возраста */
.age-switch { display: inline-flex; padding: 4px; border-radius: 30px; background: var(--grey-bg); }
.age-switch button { padding: 9px 16px; border-radius: 26px; font-size: 15px; color: var(--text-47); transition: background .15s, color .15s; }
.age-switch button.is-active { background: var(--dark); color: #fff; }
.age-switch--dark { background: rgba(255, 255, 255, .08); }
.age-switch--dark button { color: rgba(255, 255, 255, .55); padding: 12px 20px; font-size: 16px; }
.age-switch--dark button.is-active { background: #fff; color: var(--dark); }

/* 1. Первый экран: текст слева, справа фото с «направлением на анализы» */
.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); }
.hero__copy { display: flex; flex-direction: column; align-items: flex-start; }
.hero__title { margin: 28px 0 24px; font-size: clamp(42px, 5.4vw, 84px); line-height: .93; letter-spacing: -.045em; }
.hero__lead { max-width: 560px; }
.hero__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 28px; margin-top: 36px; }
.hero__facts { width: 100%; display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-top: auto; padding-top: 48px; }
.hero__facts div { padding-top: 18px; border-top: 1px solid var(--line); }
.hero__facts dt { font-size: clamp(22px, 2vw, 30px); letter-spacing: -.03em; white-space: nowrap; }
.hero__facts dd { margin-top: 6px; font-size: 14px; line-height: 1.3; color: var(--text-47); }
.hero__visual { position: relative; min-height: 600px; border-radius: 28px; }
.hero__visual > .ph { border-radius: 28px; }
.hero__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 20%; border-radius: 28px; }
.ticket { position: absolute; left: -40px; bottom: 28px; width: min(340px, 90%); padding: 22px; border-radius: 22px; background: #fff; box-shadow: 0 30px 60px -28px rgba(2, 13, 32, .35), 0 0 0 1px var(--line); }
.ticket__head { display: flex; justify-content: space-between; gap: 12px; padding-bottom: 14px; border-bottom: 1px dashed var(--line); font-size: 13px; color: var(--text-47); }
.ticket__head span:last-child { color: var(--dark); font-weight: 500; }
.ticket__list { margin: 14px 0 18px; display: flex; flex-direction: column; gap: 10px; }
.ticket__list li { display: flex; align-items: center; gap: 10px; font-size: 15px; }
.ticket__list i { position: relative; width: 16px; height: 16px; flex-shrink: 0; border: 1.5px solid var(--text-36); }
.ticket__list i::after { content: ''; position: absolute; inset: 2px; background: var(--red); transform: scale(0); animation: tick .3s ease forwards; animation-delay: calc(.5s + var(--i) * .35s); }
.ticket__foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-top: 14px; border-top: 1px dashed var(--line); }
.ticket__foot .age-switch button { padding: 7px 12px; font-size: 13px; }
.ticket__price { font-size: 24px; letter-spacing: -.03em; white-space: nowrap; }
@keyframes tick { to { transform: scale(1); } }

/* 2. Подбор */
.pick__inner { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: 48px; padding: clamp(32px, 4vw, 64px); border-radius: 28px; background: var(--dark); color: #fff; }
.pick__controls .title { margin: 24px 0 32px; }
.pick__label { margin: 0 0 12px; font-size: 15px; color: rgba(255, 255, 255, .5); }
.pick__controls .age-switch { margin-bottom: 28px; }
.pick__chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { padding: 12px 18px; border-radius: 30px; background: rgba(255, 255, 255, .08); font-size: 16px; color: #fff; transition: background .15s, color .15s; }
.chip:hover { background: rgba(255, 255, 255, .16); }
.chip[aria-pressed="true"] { background: var(--red); }
.pick__result { min-height: 360px; display: flex; flex-direction: column; }
.pick__empty { flex: 1; display: flex; flex-direction: column; justify-content: center; gap: 22px; padding: 32px; border-radius: 22px; border: 1px dashed rgba(255, 255, 255, .2); font-size: 18px; line-height: 1.35; color: rgba(255, 255, 255, .55); }
.pick__empty .pixels { width: 39px; height: 26px; }
.pick__cards { display: flex; flex-direction: column; gap: 10px; }
.pick-card { padding: 24px; border-radius: 22px; background: #fff; color: var(--dark); animation: fade-up .3s ease; }
.pick-card + .pick-card { background: rgba(255, 255, 255, .08); color: #fff; }
.pick-card__tag { font-size: 13px; color: var(--red); }
.pick-card + .pick-card .pick-card__tag { color: rgba(255, 255, 255, .5); }
.pick-card__name { margin: 8px 0 8px; font-size: 26px; line-height: 1; letter-spacing: -.03em; }
.pick-card__for { font-size: 15px; line-height: 1.4; color: var(--text-47); }
.pick-card + .pick-card .pick-card__for { color: rgba(255, 255, 255, .55); }
.pick-card__foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 18px; }
.pick-card__price { font-size: 26px; letter-spacing: -.03em; }
.pick-card__actions { display: flex; align-items: center; gap: 16px; }
.pick-card__more { font-size: 15px; text-decoration: underline; text-underline-offset: 3px; color: inherit; opacity: .7; }
.pick-card + .pick-card .btn--dark { background: #fff; color: var(--dark); }

/* 3. Программы */
.programs__grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 12px; }
.program { grid-column: span 3; }
.program--main { grid-column: span 6; }
.program { display: flex; flex-direction: column; padding: 26px; border-radius: 22px; background: var(--grey-bg-2); scroll-margin-top: 100px; transition: box-shadow .2s; }
.program.is-highlight { box-shadow: inset 0 0 0 2px var(--red); }
.program--main { background: var(--grey-bg); }
.program__group { font-size: 13px; color: var(--text-36); }
.program__name { margin: 8px 0 10px; font-weight: 400; font-size: 30px; line-height: 1; letter-spacing: -.03em; }
.program--main .program__name::after { content: ''; display: inline-block; width: 10px; height: 10px; margin-left: 10px; vertical-align: super; background: var(--red); }
.program__for { font-size: 15px; line-height: 1.4; color: var(--text-47); }
.program__key { display: flex; flex-wrap: wrap; gap: 6px; margin: 18px 0; }
.program__key li { padding: 6px 10px; border-radius: 10px; background: #fff; font-size: 13px; }
.program__comp { margin-top: auto; border-top: 1px solid var(--line); }
.program__comp summary { display: flex; justify-content: space-between; align-items: center; padding: 14px 0; cursor: pointer; list-style: none; font-size: 15px; }
.program__comp summary::-webkit-details-marker { display: none; }
.program__comp summary::after { content: '+'; font-size: 20px; line-height: 1; transition: transform .2s; }
.program__comp[open] summary::after { transform: rotate(45deg); }
.program__comp dl { padding-bottom: 12px; }
.program__comp dt { margin-top: 10px; font-weight: 500; font-size: 14px; }
.program__comp dd { margin-top: 3px; font-size: 14px; line-height: 1.4; color: var(--text-47); }
.program__foot { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding-top: 16px; border-top: 1px solid var(--line); }
.program__price { font-size: 26px; letter-spacing: -.03em; white-space: nowrap; }

/* 4. Сравнение */
.compare__scroll { overflow-x: auto; border-radius: 22px; background: var(--grey-bg-2); }
.compare__table { width: 100%; min-width: 760px; border-collapse: collapse; }
.compare__table th, .compare__table td { padding: 14px 20px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: middle; }
.compare__table tbody tr:last-child th, .compare__table tbody tr:last-child td { border-bottom: 0; }
.compare__table thead th { padding-top: 24px; padding-bottom: 20px; vertical-align: bottom; }
.compare__table tbody th { font-weight: 400; font-size: 15px; color: var(--dark); width: 30%; }
.compare__name { display: block; font-weight: 500; font-size: 18px; }
.compare__price { display: block; margin-top: 4px; font-size: 15px; font-weight: 400; color: var(--text-47); }
.compare__table td { font-size: 13px; color: var(--text-47); }
.compare__table .yes { display: inline-block; width: 12px; height: 12px; margin-right: 8px; vertical-align: -1px; background: var(--red); }
.compare__table .no { color: var(--text-36); }
.compare__table tbody tr:hover { background: rgba(255, 255, 255, .6); }
.compare__table thead th:first-child, .compare__table tbody th { position: sticky; left: 0; background: var(--grey-bg-2); z-index: 1; }

/* 5. Почему чекап */
.why__grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 48px; align-items: center; }
.why__photo { align-self: stretch; min-height: 480px; border-radius: 28px; overflow: hidden; display: flex; }
.why__photo > .ph { flex: 1; }
.why__img { flex: 1; width: 100%; height: 100%; min-height: 0; object-fit: cover; object-position: 40% 55%; }
.why__list .title { margin-bottom: 32px; }
.why__item { display: flex; gap: 24px; padding: 22px 0; border-top: 1px solid var(--line); }
.why__item .pixels { width: 39px; height: 26px; margin-top: 4px; }
.why__item h3 { font-weight: 500; font-size: 22px; letter-spacing: -.02em; }
.why__item p { margin-top: 8px; font-size: 16px; line-height: 1.45; color: var(--text-47); }

/* 6. Как проходит + приём */
.path__list--5 { grid-template-columns: repeat(5, 1fr); }
.consult { margin-top: 12px; padding: 24px 28px; border-radius: 22px; background: var(--dark); color: #fff; display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 32px; }
.consult__title { font-weight: 500; font-size: 20px; }
.consult ul { display: flex; flex-wrap: wrap; gap: 8px 28px; }
.consult li { display: flex; gap: 10px; align-items: baseline; font-size: 15px; color: rgba(255, 255, 255, .55); }
.consult li b { font-weight: 500; color: #fff; white-space: nowrap; }

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

@media (max-width: 1280px) {
  .header__nav { gap: 20px; }
  .header__phone { display: none; }
  .reviews__list { grid-template-columns: repeat(3, 1fr); }
  .reviews__list .review:nth-child(n+4) { display: none; }
  .path__list--5 { grid-template-columns: repeat(3, 1fr); }
  .program { grid-column: span 4; }
  .consult { grid-template-columns: 1fr; gap: 16px; }
  .consult .btn { justify-self: start; }
}

@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-template-columns: minmax(0, 1fr); gap: 28px; }
  .hero__visual { min-height: 520px; }
  .ticket { left: 20px; }
  .pick__inner, .why__grid, .faq, .contact__grid { grid-template-columns: minmax(0, 1fr); }
  .pick__inner { gap: 32px; }
  .program, .program--main { grid-column: span 6; }
  .why__photo { min-height: 340px; }
  .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; }
  .head__side { flex-direction: column; align-items: flex-start; gap: 12px; }
  .head__side .head__aside { text-align: left; }
  .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--sm { padding: 11px 20px; font-size: 15px; }
  .btn--arrow { padding: 5px 14px 5px 5px; font-size: 15px; gap: 8px; }
  .label-full { display: none; }
  .label-short { display: inline; }
  .logo { font-size: 17px; }
  .btn__circle { width: 26px; height: 26px; }
  .kicker { padding: 9px 16px; font-size: 14px; }
  .title { font-size: 32px; }

  .hero__title { margin: 20px 0 16px; font-size: 38px; }
  .hero__actions { flex-direction: column; align-items: stretch; gap: 18px; margin-top: 28px; }
  .hero__actions .btn { width: 100%; }
  .hero__actions .link-arrow { justify-content: center; }
  .hero__facts { grid-template-columns: 1fr 1fr; gap: 8px 16px; padding-top: 32px; }
  .hero__visual { min-height: 0; display: flex; flex-direction: column; gap: 12px; }
  .hero__visual > .ph { aspect-ratio: 4 / 5; border-radius: 22px; }
  .hero__img { position: relative; inset: auto; height: auto; aspect-ratio: 4 / 5; border-radius: 22px; }
  .ticket { position: relative; left: auto; bottom: auto; width: 100%; box-shadow: 0 0 0 1px var(--line); }

  .pick__inner { padding: 24px 16px; border-radius: 22px; }
  .age-switch--dark { display: flex; }
  .age-switch--dark button { flex: 1; padding: 12px 10px; font-size: 15px; }
  .chip { padding: 10px 14px; font-size: 15px; }
  .pick__result { min-height: 0; }
  .pick__empty { padding: 22px; font-size: 16px; }
  .pick-card { padding: 20px 18px; }
  .pick-card__foot { flex-direction: column; align-items: stretch; }
  .pick-card__actions { justify-content: space-between; }

  .program, .program--main { grid-column: 1 / -1; }
  .program { padding: 22px 18px; }
  .program__name { font-size: 26px; }

  .compare__table th, .compare__table td { padding: 12px 14px; }
  .compare__table tbody th { font-size: 14px; min-width: 150px; }

  .why__photo { min-height: 260px; border-radius: 22px; }
  .why__item { gap: 16px; }
  .why__item h3 { font-size: 19px; }
  .why__item p { font-size: 15px; }

  .path__list, .path__list--5 { 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; }
  .consult { padding: 22px 18px; }
  .consult ul { flex-direction: column; gap: 10px; }
  .consult li { justify-content: space-between; }
  .consult .btn { width: 100%; }

  .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; }
}
