/* Androbaza.ru — стили по макету Figma «MEDO Clinic / Androbaza.ru» (десктоп 1440, мобайл 360) */

:root {
  --blue: #1e40af;
  --blue-hover: #234ac6;
  --blue-active: #133296;
  --blue-light: #3b82f6;
  --ink: #0f172a;
  --text: #475569;
  --muted: #64748b;
  --soft: #eff6ff;
  --bg: #f8fafc;
  --line: #f1f5f9;
  --card-shadow: 0 35px 17.5px rgba(60, 20, 255, .02), 0 9px 9.5px rgba(60, 20, 255, .03), 0 78px 23.5px rgba(60, 20, 255, .01);
  --pad-x: clamp(16px, 4.45vw, 64px);
  --font: 'Onest', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-ui: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-logo: 'Oswald', 'Arial Narrow', sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 88px; -webkit-text-size-adjust: 100%; }
html, body { overflow-x: clip; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 16px/1.5 var(--font-ui); -webkit-font-smoothing: antialiased; }
img { display: block; max-width: 100%; height: auto; }
h1, h2, h3, p, ul, ol, figure, blockquote { margin: 0; padding: 0; }
ul, ol { list-style: none; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
[hidden] { display: none !important; }

.container { width: 100%; max-width: 1440px; margin: 0 auto; padding-inline: var(--pad-x); }
.section { position: relative; padding-block: 80px; }
.h2 { font: 500 52px/56px var(--font); letter-spacing: -.025em; color: var(--ink); }
.h2 b { font-weight: 700; color: var(--blue); }
.eyebrow { display: flex; align-items: center; gap: 4px; margin-bottom: 4px; font: 500 12px/1.2 var(--font-ui); text-transform: uppercase; color: var(--muted); }
.eyebrow::before { content: ''; width: 4px; height: 4px; border-radius: 50%; background: var(--muted); }
.lead { font: 500 16px/28px var(--font-ui); color: var(--text); }
.lead--lg { margin-top: 16px; font-size: 18px; }

/* Кнопки: состояния из макета «Поведение кнопок» */
.btn { display: inline-flex; align-items: center; justify-content: center; padding: 16px 32px; border-radius: 999px; background: var(--blue); color: #fff; font: 700 16px/1.2 var(--font); white-space: nowrap; transition: background .15s, box-shadow .15s; }
.btn:hover { background: var(--blue-hover); box-shadow: 0 10px 24px -10px rgba(30, 64, 175, .55); }
.btn:active { background: var(--blue-active); box-shadow: none; }
.btn:focus-visible, .arrow:focus-visible, .faq__item summary:focus-visible { outline: 2px solid var(--blue-light); outline-offset: 3px; }
.btn--white { background: #fff; color: var(--blue); }
.btn--white:hover { background: #fcfcff; }
.btn--white:active { background: #f1f5fe; }
.btn--sm { padding: 12px 24px; }
.btn--block { width: 100%; }
.btn:disabled { opacity: .6; cursor: default; }
.icon-circle { width: 40px; height: 40px; flex-shrink: 0; border-radius: 50%; background: var(--soft); display: flex; align-items: center; justify-content: center; }
.icon-circle--lg { width: 48px; height: 48px; }

/* Навигация */
.nav { position: fixed; z-index: 50; top: 0; left: 0; right: 0; transition: background .25s, box-shadow .25s; }
.nav.is-scrolled { background: rgba(255, 255, 255, .92); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); box-shadow: 0 10px 30px -20px rgba(15, 23, 42, .35); }
.nav__bar { max-width: 1440px; height: 80px; margin: 0 auto; padding: 0 64px; display: flex; align-items: center; gap: 24px; }
.logo { font: 500 22px/1 var(--font-logo); letter-spacing: -.5px; color: var(--ink); white-space: nowrap; }
.logo i { font-style: normal; color: #7c9bea; }
.nav__links { flex: 1; display: flex; align-items: center; justify-content: center; gap: 32px; }
.nav__links > a { font: 500 14px/1.2 var(--font-ui); color: var(--text); transition: color .2s; }
.nav__links > a:hover { color: var(--blue); }
.nav__num, .nav__art, .nav__menu-cta, .nav__cta-short { display: none; }
.nav__burger { display: none; width: 32px; height: 32px; align-items: center; justify-content: center; flex-direction: column; gap: 5px; }
.nav__burger span { display: block; width: 18px; height: 2px; background: var(--ink); border-radius: 1px; transition: transform .2s, opacity .2s; }
.nav__burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav__burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav__burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* 1. Первый экран */
.hero { position: relative; height: 741px; overflow: hidden; background: linear-gradient(180deg, #fffffe, #f9fbfd); }
.hero__bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 60% 50%; }
.hero__inner { position: relative; width: 100%; max-width: 1440px; margin: 0 auto; padding: 152px 64px 0; display: flex; flex-direction: column; align-items: flex-start; }
.hero__title { width: 587px; max-width: 100%; margin-bottom: 24px; font: 500 56px/66px var(--font); color: var(--ink); }
.hero__title b { font-weight: 700; color: var(--blue); }
.hero__text { max-width: 600px; margin-bottom: 48px; font: 500 18px/28px var(--font-ui); color: var(--text); }

/* Бегущая строка */
.marquee { height: 64px; overflow: hidden; background: var(--blue); display: flex; align-items: center; }
.marquee__track { display: flex; width: max-content; animation: marquee 40s linear infinite; }
.marquee:hover .marquee__track { animation-play-state: paused; }
.marquee__row { display: flex; align-items: center; gap: 16px; padding-right: 16px; font: 500 20px/24px var(--font-ui); color: #fff; white-space: nowrap; }
.marquee__row i { width: 4px; height: 4px; border-radius: 2px; background: #fff; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* 2. Симптомы */
.symptoms { background: #f5f9fd; }
.symptoms__row { display: flex; align-items: center; justify-content: space-between; gap: 40px; }
.symptoms__left { width: 816px; display: flex; flex-direction: column; align-items: flex-start; }
.symptoms__left .h2 { margin-bottom: 32px; letter-spacing: -.01em; }
.chips { display: flex; flex-wrap: wrap; gap: 12px; margin: 16px 0 32px; }
.chip { display: inline-flex; align-items: center; gap: 8px; padding: 8px 16px; border: 1px solid var(--blue); border-radius: 999px; background: var(--soft); font-size: 14px; line-height: 1.2; color: var(--blue); }
.chip img { flex-shrink: 0; }
.quote { width: 496px; flex-shrink: 0; border: 1px solid #fff; border-radius: 24px; background: rgba(255, 255, 255, .2); overflow: hidden; }
.quote__photo { position: relative; height: 280px; background: var(--soft); overflow: hidden; }
.quote__photo img { position: absolute; left: 17.47%; top: -10.31%; width: 69.81%; max-width: none; }
.quote__body { padding: 24px 40px; background: rgba(255, 255, 255, .6); display: flex; flex-direction: column; gap: 32px; }
.quote blockquote { font: 500 20px/1.5 var(--font); }
.quote figcaption { display: flex; flex-direction: column; gap: 4px; }
.quote figcaption b { font: 500 16px var(--font); }
.quote figcaption span { display: flex; align-items: center; gap: 4px; font-size: 16px; color: var(--muted); }
.quote figcaption i { width: 4px; height: 4px; border-radius: 2px; background: var(--muted); }

/* Секции-панели с фоном и скруглением */
.panel { overflow: hidden; border-radius: 32px; }
.panel__bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; pointer-events: none; }
.panel > .container { position: relative; }

/* 3. Помощь андролога */
.services { padding-block: 64px; background: var(--bg); }
.services__bg { left: 26.5%; width: 78.47%; opacity: .8; }
.services .container { padding-inline: max(var(--pad-x), min(96px, 6.7vw)); }
.services__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: 32px; }
.service { height: 160px; padding: 24px; border-radius: 16px; background: #fff; filter: drop-shadow(0 9px 9.5px rgba(60, 20, 255, .03)) drop-shadow(0 35px 17.5px rgba(60, 20, 255, .02)); display: flex; flex-direction: column; gap: 16px; font: 500 20px/1.3 var(--font); transition: background .2s, transform .2s; }
.service:hover { background: #f8fafc; transform: translateY(-2px); }

/* 4. О клинике */
.clinic { background: var(--bg); }
.clinic .h2 { margin-bottom: 32px; }
.bento { display: flex; gap: 24px; }
.bento__photo { width: 792px; flex-shrink: 0; height: 457px; border-radius: 20px; overflow: hidden; }
.bento__photo img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s; }
.bento__photo:hover img { transform: scale(1.03); }
.bento__side { flex: 1; min-width: 0; display: flex; flex-direction: column; align-items: flex-start; gap: 20px; }
.stat { width: 100%; padding: 24px; border: 1px solid var(--line); border-radius: 20px; background: #fff; }
.stat--row { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.stat__num { font: 700 36px/1.25 var(--font); background: linear-gradient(90deg, var(--blue), var(--blue-light)); -webkit-background-clip: text; background-clip: text; color: transparent; width: fit-content; }
.stat__label { font: 500 16px/1.3 var(--font-ui); color: var(--text); }

/* 5. Врачи */
.doctors { display: flex; flex-direction: column; }
.doctors__head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 32px; }
.arrows { display: flex; gap: 12px; }
.arrow { width: 48px; height: 48px; border: 1px solid #dbeafe; border-radius: 50%; display: flex; align-items: center; justify-content: center; transition: background .15s, border-color .15s, opacity .15s; }
.arrow:hover { background: var(--soft); }
.arrow--fill { background: var(--blue); border-color: var(--blue); }
.arrow--fill:hover { background: var(--blue-hover); }
.arrow:disabled { opacity: .4; cursor: default; }
.carousel { overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth; scrollbar-width: none; cursor: grab; }
.carousel::-webkit-scrollbar { display: none; }
.carousel.is-dragging { cursor: grabbing; scroll-snap-type: none; scroll-behavior: auto; }
.carousel.is-dragging .doctor { pointer-events: none; }
.carousel__track { display: flex; gap: 32px; width: max-content; }
.doctor { width: calc((min(100vw, 1440px) - 2 * var(--pad-x) - 64px) / 3); height: 519px; flex-shrink: 0; scroll-snap-align: start; border: 1px solid #e6edf8; border-radius: 28px; background: #fff; overflow: hidden; display: flex; flex-direction: column; }
.doctor__photo { position: relative; flex: 1; min-height: 0; overflow: hidden; background: var(--soft); }
.doctor__photo img { position: absolute; left: 5.83%; top: -9.62%; width: 88.33%; max-width: none; user-select: none; }
.doctor--doctorgrekov .doctor__photo img { left: .67%; top: -13.94%; width: 98.65%; }
.doctor__exp { position: absolute; left: 14px; top: 14px; padding: 4px 12px; border-radius: 100px; background: #fff; font-size: 14px; }
.doctor__body { padding: 16px 16px 24px; display: flex; flex-direction: column; align-items: flex-start; }
.tags { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 12px; }
.tag { padding: 6px 14px; border: 1px solid #eff3f9; border-radius: 100px; background: #eff3f9; font-size: 12px; line-height: 1.2; }
.doctor__name { margin-bottom: 8px; font: 500 20px/1.15 var(--font); letter-spacing: -.01em; }
.doctor__about { margin-bottom: 24px; font-size: 14px; line-height: 1.4; color: var(--text); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.dots { width: fit-content; margin-inline: auto; display: flex; align-items: center; gap: 6px; margin-top: 24px; padding: 11px 12px; border-radius: 100px; background: #fff; }
.dots button { width: 6px; height: 6px; border-radius: 50%; background: #cbd5e1; transition: width .2s, background .2s; }
.dots button.is-active { width: 8px; height: 8px; background: var(--blue); }

/* 6. Диагностика */
.diagnostics { background: #fff; }
.diagnostics .container { padding-inline: max(var(--pad-x), min(96px, 6.7vw)); }
.diagnostics .h2 { margin-bottom: 32px; }
.exams { width: 600px; max-width: 100%; padding: 24px; border-radius: 16px; background: #fff; display: flex; flex-direction: column; gap: 24px; }
.exams li { display: flex; align-items: center; gap: 12px; font: 500 20px/1.3 var(--font); color: var(--text); }
.plus { width: 26px; height: 26px; flex-shrink: 0; border-radius: 50%; background: #1e41b0; display: flex; align-items: center; justify-content: center; }
.diag-bar { margin-top: 32px; padding: 24px; border-radius: 16px; background: linear-gradient(90deg, var(--blue), var(--blue-light)); display: flex; align-items: center; gap: 24px; }
.diag-bar p { flex: 1; display: flex; align-items: center; gap: 16px; font-size: 14px; line-height: 1.4; color: #fff; }
.diag-bar p img { flex-shrink: 0; }

/* 7. Как проходит приём */
.process { background: #fff; border-radius: 32px; }
.process .h2 { margin-bottom: 40px; }
.steps { display: flex; align-items: stretch; }
.step { flex: 1; min-width: 0; height: 220px; padding: 24px; border-radius: 16px; background: var(--bg); filter: drop-shadow(0 9px 9.5px rgba(60, 20, 255, .03)) drop-shadow(0 35px 17.5px rgba(60, 20, 255, .02)); display: flex; flex-direction: column; gap: 16px; }
.step__head { display: flex; align-items: center; justify-content: space-between; }
.step__num { width: 36px; height: 36px; border-radius: 50%; background: #1e41b0; display: flex; align-items: center; justify-content: center; font: 700 16px/1 var(--font-ui); color: #fff; }
.step__title { margin-bottom: -8px; font: 500 20px/1.3 var(--font); }
.step__text { font-size: 16px; line-height: 1.45; color: var(--text); }
.step__arrow { width: 40px; flex-shrink: 0; display: flex; align-items: center; justify-content: center; }

/* 8. Почему нам доверяют */
.trust { background: #fff; }
.trust__inner { max-width: calc(1200px + 2 * var(--pad-x)); }
.trust .h2 { margin-bottom: 32px; }
.trust__grid { display: flex; gap: 24px; align-items: center; }
.trust__col { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 24px; }
.trust__gap { flex: 1; height: 350px; }
.trust-card { min-height: 163px; padding: 24px; border-radius: 16px; background: rgba(248, 250, 252, .92); filter: drop-shadow(0 9px 9.5px rgba(60, 20, 255, .03)) drop-shadow(0 35px 17.5px rgba(60, 20, 255, .02)); display: flex; flex-direction: column; gap: 16px; }
.trust-card h3 { margin-bottom: -8px; font: 500 20px/1.2 var(--font); }
.trust-card p { font-size: 14px; line-height: 1.4; color: var(--text); }

/* 9. Форма */
.contact__card { position: relative; padding: 80px; border-radius: 32px; overflow: hidden; background: #eaf1fb; }
.contact__bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.contact__form { position: relative; width: 493px; max-width: 100%; display: flex; flex-direction: column; gap: 24px; }
.contact__title { font: 500 52px/.98 var(--font); white-space: nowrap; }
.contact__text { margin-top: -4px; font: 500 18px/1.6 var(--font-ui); color: var(--text); }
.input { width: 100%; height: 70px; padding: 0 16px; border: 1.5px solid transparent; border-radius: 16px; background: #fff; box-shadow: 0 4px 6px rgba(0, 0, 0, .03); font: 400 16px var(--font-ui); color: var(--ink); transition: background .15s, border-color .15s; }
.input::placeholder { color: rgba(71, 85, 105, .4); }
.input:hover:not(:focus) { background: #f8f7f7; }
.input:focus, .input:focus-visible { outline: 0; border-color: #6d8ce8; background: #fff; }
.input:-webkit-autofill, .input:-webkit-autofill:hover { -webkit-text-fill-color: var(--ink); -webkit-box-shadow: 0 0 0 100px #fff inset; transition: background-color 9999s; }
.input.is-error { border-color: #dc2626; background: #fff5f5; }
.form-error { font-size: 14px; color: #dc2626; }
.consent { margin-top: -8px; font-size: 16px; line-height: 1.5; color: #9b948f; }
.consent a { color: #5f5a56; text-decoration: underline; }
.contact__success { display: flex; align-items: center; gap: 16px; padding: 16px 20px; border-radius: 16px; background: #fff; }
.check { flex-shrink: 0; width: 40px; height: 40px; border-radius: 50%; background: var(--soft); color: var(--blue); display: inline-flex; align-items: center; justify-content: center; font-weight: 700; font-size: 18px; }
.check--lg { width: 56px; height: 56px; font-size: 26px; }

/* 10. Вопросы */
.faq { background: #fff; border-radius: 32px; }
.h2--faq { margin-bottom: 24px; font-size: 48px; }
.faq__item { border-bottom: 1px solid var(--line); }
.faq__item summary { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 24px 0; list-style: none; cursor: pointer; font: 500 20px/1.3 var(--font); }
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary:hover { color: var(--blue); }
.faq__icon { width: 40px; height: 40px; flex-shrink: 0; border: 1px solid var(--line); border-radius: 50%; background: var(--soft); display: flex; align-items: center; justify-content: center; transition: transform .25s; }
.faq__item[open] .faq__icon { transform: rotate(180deg); }
.faq__item p { max-width: 900px; margin-top: -8px; padding-bottom: 24px; font-size: 16px; line-height: 26px; color: var(--text); }

/* 11. Финальный блок */
.final__card { position: relative; padding: 96px; border-radius: 32px; overflow: hidden; background: linear-gradient(90deg, var(--blue), var(--blue-light)); display: flex; flex-direction: column; align-items: center; gap: 16px; text-align: center; color: #fff; }
.final__bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .7; }
.final__title, .final__text, .final__card .btn { position: relative; }
.final__title { font: 500 52px/56px var(--font); letter-spacing: -.025em; }
.final__text { max-width: 640px; margin-bottom: 16px; font: 500 18px/28px var(--font-ui); }

/* Подвал */
.footer { background: var(--blue); border-radius: 32px 32px 0 0; font-family: var(--font-ui); color: #fff; }
.footer__container { max-width: 1440px; margin: 0 auto; padding: 64px var(--pad-x) 40px; display: flex; flex-direction: column; gap: 32px; }
.footer__top { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.logo--footer { color: #fff; }
.footer__slogan { display: none; margin-top: 8px; font-size: 14px; line-height: 1.4; color: rgba(255, 255, 255, .55); }
.socials { display: flex; align-items: center; gap: 26px; }
.socials a { transition: opacity .2s; }
.socials a:hover { opacity: .75; }
.footer__cols { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.footer__legal { display: flex; flex-direction: column; gap: 10px; max-width: 240px; font-size: 9.2px; line-height: 11px; letter-spacing: -.02em; color: rgba(255, 255, 255, .55); }
.footer__links { display: flex; flex-direction: column; align-items: flex-start; gap: 28px; font-size: 14px; line-height: 1.2; color: rgba(255, 255, 255, .8); }
.footer__links a:hover, .footer__contact:hover { color: #fff; text-decoration: underline; text-underline-offset: 3px; }
.footer__contacts { display: flex; flex-direction: column; gap: 32px; font-size: 16px; line-height: 20.9px; letter-spacing: -.02em; }
.footer__contact { display: block; margin-bottom: 4px; }
.footer__hint { font-size: 14px; line-height: 15.4px; letter-spacing: 0; color: rgba(255, 255, 255, .55); }
.footer__dev { display: flex; flex-direction: column; gap: 4px; font-size: 13px; line-height: 15.4px; color: rgba(255, 255, 255, .55); }
.footer__disclaimer { padding-top: 24px; border-top: 1px solid rgba(255, 255, 255, .15); font-size: 12px; line-height: 1.6; color: rgba(255, 255, 255, .6); }
.footer__warning { margin-top: 8px; font-weight: 700; font-size: 13px; letter-spacing: .02em; color: rgba(255, 255, 255, .85); }

/* Модальное окно */
.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(15, 23, 42, .5); backdrop-filter: blur(4px); animation: fade .2s ease; }
.modal__dialog { position: relative; width: 100%; max-width: 460px; max-height: calc(100vh - 32px); overflow: auto; padding: 44px 36px 32px; border-radius: 28px; background: #fff; box-shadow: 0 30px 80px -20px rgba(15, 23, 42, .4); animation: pop .25s ease; }
.modal__close { position: absolute; top: 14px; right: 14px; width: 40px; height: 40px; border-radius: 50%; font-size: 28px; line-height: 1; color: var(--muted); }
.modal__close:hover { background: var(--soft); color: var(--ink); }
.modal__form { display: flex; flex-direction: column; gap: 14px; }
.modal__form .input { height: 58px; background: var(--bg); border-color: #e2e8f0; }
.modal__form .consent { margin-top: 0; font-size: 13px; }
.modal__title { padding-right: 24px; font: 500 30px/1.15 var(--font); }
.modal__text { margin-bottom: 8px; font-size: 15px; line-height: 1.5; color: var(--text); }
.modal__text a { color: var(--blue); font-weight: 600; }
.modal__success { display: flex; flex-direction: column; align-items: flex-start; gap: 16px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
body.is-locked { overflow: hidden; }
@keyframes fade { from { opacity: 0; } }
@keyframes pop { from { opacity: 0; transform: translateY(16px) scale(.98); } }

.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; }
  .marquee__track { animation: none; }
  *, *::before, *::after { animation: none !important; }
}

/* Юридические страницы */
.legal-page .nav { background: #fff; box-shadow: 0 1px 0 var(--line); }
.legal { max-width: 920px; padding-top: 128px; padding-bottom: 80px; }
.legal__crumbs { font-size: 14px; color: var(--muted); margin-bottom: 16px; }
.legal__crumbs a { text-decoration: underline; text-underline-offset: 3px; }
.legal .h2 { margin-bottom: 32px; }
.legal__body { font-size: 16px; line-height: 1.6; }
.legal__body h2 { margin: 32px 0 12px; font: 500 22px/1.3 var(--font); }
.legal__body p, .legal__body ul { margin-bottom: 12px; }
.legal__body ul { padding-left: 22px; list-style: disc; }
.legal__body li { margin-bottom: 6px; }
.legal__body a { text-decoration: underline; }
.legal-page .footer__disclaimer { max-width: 1440px; margin: 0 auto; padding: 24px var(--pad-x); border: 0; text-align: center; }
.legal-page .footer__disclaimer a { color: inherit; }

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

@media (max-width: 1280px) {
  .nav__bar { padding-inline: var(--pad-x); }
  .nav__links { gap: 20px; }
  .hero__inner { padding-inline: var(--pad-x); }
  .symptoms__left { width: auto; flex: 1; }
  .quote { width: 40%; }
  .bento__photo { width: 60%; }
}

@media (max-width: 1024px) {
  .nav { background: #fff; box-shadow: 0 1px 0 var(--line); }
  .nav__bar { height: 64px; gap: 12px; }
  .logo { flex: 1; }
  .nav__cta { padding: 8px 14px; font-size: 13px; }
  .nav__cta-full { display: none; }
  .nav__cta-short { display: inline; }
  .nav__burger { display: flex; }
  .nav__links { position: fixed; top: 64px; left: 0; right: 0; height: calc(100vh - 64px); height: calc(100dvh - 64px); padding: 72px 16px 32px; flex-direction: column; align-items: stretch; justify-content: flex-start; gap: 16px; background: #fff; overflow: hidden; opacity: 0; visibility: hidden; transition: opacity .2s, visibility .2s; }
  .nav.is-open .nav__links { opacity: 1; visibility: visible; }
  .nav__links > a { position: relative; display: flex; align-items: center; gap: 22px; margin-left: 16px; padding: 4px 0 4px 14px; border-left: 4px solid #dbeafe; font: 400 30px/44px var(--font); color: var(--blue); }
  .nav__num { display: inline; width: 20px; font: 500 16px var(--font-ui); color: #c7d2fe; }
  .nav__art { display: block; position: absolute; right: -30px; bottom: 0; width: 330px; max-width: none; pointer-events: none; }
  .nav__menu-cta { display: flex; position: relative; margin-top: 24px; }

  .section { padding-block: 64px; }
  .h2 { font-size: 40px; line-height: 1.12; }
  .hero { height: auto; }
  .hero__bg { position: relative; order: 2; height: 380px; object-position: 78% 50%; }
  .hero { display: flex; flex-direction: column; }
  .hero__inner { padding-top: 104px; padding-bottom: 32px; }
  .symptoms__row { flex-direction: column; align-items: stretch; }
  .quote { width: 100%; max-width: 560px; align-self: center; }
  .services__grid { grid-template-columns: repeat(2, 1fr); }
  .bento { flex-direction: column; }
  .bento__photo { width: 100%; height: 360px; }
  .doctor { width: calc((100vw - 2 * var(--pad-x) - 32px) / 2); }
  .steps { flex-direction: column; gap: 8px; }
  .step { height: auto; }
  .step__arrow { width: 100%; height: 24px; }
  .step__arrow img { transform: rotate(90deg); }
  .trust__grid { flex-direction: column; align-items: stretch; }
  .trust__gap { width: 100%; height: 300px; flex: none; margin-block: -24px; background: url(../img/trust-bg.webp) 50% 55% / auto 130% no-repeat; -webkit-mask-image: radial-gradient(ellipse 60% 55% at 50% 50%, #000 55%, transparent 100%); mask-image: radial-gradient(ellipse 60% 55% at 50% 50%, #000 55%, transparent 100%); }
  .trust__bg { opacity: .35; }
  .contact__card { padding: 48px 32px 360px; }
  .contact__bg { object-position: 85% 50%; }
  .final__card { padding: 64px 32px; }
  .final__title { font-size: 40px; line-height: 1.15; }
  .footer__cols { grid-template-columns: 1fr 1fr; row-gap: 40px; }
}

@media (max-width: 640px) {
  html { scroll-padding-top: 72px; }
  .section { padding-block: 48px; }
  .h2 { font-size: 28px; line-height: 34px; letter-spacing: -.01em; }
  .btn { width: 100%; padding: 14px 20px; font-size: 14px; }
  .nav__cta { width: auto; }
  .logo { font-size: 18px; }
  .nav__links > a { font-size: 26px; line-height: 40px; gap: 18px; }

  .hero__inner { padding-top: 88px; padding-bottom: 24px; }
  .hero__title { font-size: 28px; line-height: 34px; margin-bottom: 16px; }
  .hero__text { font-size: 14px; line-height: 21px; margin-bottom: 24px; }
  .hero__bg { height: 260px; object-position: 80% 40%; }
  .marquee { height: 39px; }
  .marquee__row { font-size: 12px; gap: 8px; padding-right: 8px; }
  .marquee__row i { width: 3px; height: 3px; }

  .symptoms__left .h2 { margin-bottom: 12px; }
  .lead { font-size: 14px; line-height: 22px; }
  .chips { gap: 8px; margin: 16px 0 32px; }
  .chip { font-size: 13px; padding: 7px 14px; }
  .quote__photo { height: 200px; }
  .quote__photo img { left: 50%; width: 260px; transform: translateX(-50%); top: -6%; }
  .quote__body { padding: 20px; gap: 20px; }
  .quote blockquote { font-size: 16px; }
  .quote figcaption b { font-size: 14px; }
  .quote figcaption span { font-size: 12px; }

  .services { padding-block: 48px; border-radius: 0; }
  .services__bg { left: 0; width: 100%; opacity: .5; }
  .lead--lg { font-size: 14px; margin-top: 12px; }
  .services__grid { grid-template-columns: 1fr; gap: 8px; margin-top: 24px; }
  .service { height: auto; flex-direction: row; align-items: center; gap: 12px; padding: 12px 16px; font-size: 15px; }

  .clinic .h2 { margin-bottom: 24px; }
  .bento { gap: 16px; }
  .bento__photo { height: 180px; border-radius: 16px; }
  .bento__side { gap: 8px; }
  .stat { padding: 20px; border-radius: 16px; }
  .stat__num { font-size: 28px; }
  .stat__label { font-size: 14px; }
  .bento__side .btn { margin-top: 20px; }

  .doctors__head { margin-bottom: 24px; }
  .doctors .arrows { display: none; }
  .doctor { width: calc(100vw - 32px); height: 435px; border-radius: 20px; }
  .carousel__track { gap: 16px; }
  .doctor__name { font-size: 18px; }
  .doctor__body .btn { width: 100%; }

  .diagnostics { border-radius: 0; }
  .diagnostics .h2 { margin-bottom: 20px; }
  .exams { padding: 16px; gap: 16px; }
  .exams li { font-size: 15px; gap: 10px; }
  .plus { width: 20px; height: 20px; }
  .plus img { width: 16px; height: 16px; }
  .diag-bar { flex-direction: column; align-items: stretch; margin-top: 16px; padding: 20px; }

  .process { border-radius: 0; }
  .process .h2 { margin-bottom: 24px; }
  .step { padding: 16px; }
  .step__title { font-size: 18px; }
  .step__text { font-size: 14px; }

  .trust { border-radius: 0; }
  .trust .h2 { margin-bottom: 24px; }
  .trust__col { gap: 16px; }
  .trust__gap { height: 240px; }
  .trust-card { min-height: 0; padding: 20px; }
  .trust-card h3 { font-size: 18px; }

  .contact__card { padding: 24px 16px 300px; border-radius: 20px; }
  .contact__bg { top: auto; height: 320px; bottom: 0; object-position: 88% 50%; }
  .contact__form { gap: 16px; }
  .contact__title { font-size: 28px; white-space: normal; }
  .contact__text { font-size: 14px; }
  .input { height: 54px; border-radius: 12px; }
  .consent { font-size: 12px; }

  .faq { border-radius: 0; }
  .h2--faq { font-size: 28px; }
  .faq__item summary { padding: 16px 0; font-size: 15px; }
  .faq__icon { width: 24px; height: 24px; border: 0; background: none; }
  .faq__item p { font-size: 14px; line-height: 20px; padding-bottom: 16px; }

  .final__card { padding: 32px 20px; border-radius: 20px; align-items: flex-start; text-align: left; }
  .final__title { font-size: 26px; line-height: 1.2; }
  .final__text { font-size: 14px; line-height: 20px; }

  .footer { border-radius: 0; }
  .footer__container { padding: 48px var(--pad-x) 32px; gap: 28px; }
  .footer__top { align-items: flex-start; }
  .footer__slogan { display: block; }
  .socials { gap: 8px; }
  .socials img { width: 23px; height: auto; }
  .footer__cols { grid-template-columns: 1fr 1fr; gap: 28px 16px; }
  .footer__legal { grid-column: 1 / -1; order: -1; max-width: none; }
  .footer__links { gap: 20px; }
  .footer__contacts { grid-column: 1 / -1; gap: 20px; }
  .modal { align-items: flex-end; padding: 0; }
  .modal__dialog { max-width: none; border-radius: 24px 24px 0 0; padding: 32px 16px 20px; }
  .modal__title { font-size: 24px; }
}
