:root {
  --ink: #103f36;
  --ink-soft: #40514f;
  --paper: #f7f7f0;
  --paper-deep: #eef1ec;
  --line: rgba(16, 63, 54, .14);
  --accent: #d0de9c;
  --accent-deep: #1d6863;
  --blue: #dfeef1;
  --container-width: 1440px;
  --container-gutter: 40px;
  --serif: 'Playfair Display', Georgia, serif;
  --sans: 'DM Sans', Arial, sans-serif;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
.booking-contact { display: grid; gap: 20px; margin-top: 30px; }
.booking-contact__phone { width: 100%; min-height: 60px; padding: 16px; text-align: center; }
.booking-contact p { margin: 0; color: var(--ink-soft); font-size: 15px; line-height: 1.6; }
/* Прокруткой управляет JS-анимация, чтобы она одинаково работала во всех браузерах. */
html { scroll-behavior: auto; }
body { margin: 0; color: var(--ink); background: var(--paper); font-family: var(--sans); -webkit-font-smoothing: antialiased; }
button, a, input, select { font: inherit; }
button { cursor: pointer; }
a { color: inherit; text-decoration: none; }

.page-shell { min-width: 320px; overflow: hidden; }
.site-header { min-height: 100vh; display: flex; flex-direction: column; position: relative; background: radial-gradient(circle at 82% 22%, rgba(220, 239, 242, .6), transparent 30%), var(--paper); isolation: isolate; }
.site-header::after { content: ''; position: absolute; inset: 0; z-index: -2; pointer-events: none; background: linear-gradient(110deg, transparent 0 60%, rgba(255,255,255,.52) 60% 60.1%, transparent 60.1% 100%); opacity: .42; }
.nav-wrap { position: relative; width: 100%; max-width: var(--container-width); min-height: 88px; flex: 0 0 auto; display: flex; align-items: center; justify-content: space-between; gap: 16px; margin: auto; padding: 0 var(--container-gutter); border-bottom: 1px solid var(--line); }
.brand { display: inline-flex; flex: 0 0 auto; align-items: center; gap: 15px; }
.brand__mark { position: relative; display: grid; place-items: center; width: 83px; height: 83px; border-radius: 23px; background: transparent; overflow: visible; }
.brand__mark::after { display: none; }
.brand__mark img { width: 83px; height: 83px; object-fit: contain; transform: translateY(-2px) rotate(4deg); filter: drop-shadow(5px 10px 9px rgba(74,113,121,.16)); }
.brand__name { color: var(--ink); font-family: 'Cormorant Garamond', var(--serif); font-size: 25px; font-weight: 600; line-height: .88; letter-spacing: -.035em; }
.brand__name em { color: var(--accent-deep); font-style: normal; }
.desktop-nav { position: absolute; top: 50%; left: 50%; display: flex; align-items: center; gap: 24px; margin: 0; font-size: 16px; color: var(--ink-soft); transform: translate(-50%, -50%); }
.desktop-nav a { position: relative; padding: 13px 0; transition: color .2s ease; }
.desktop-nav a::after { content: ''; position: absolute; left: 0; right: 0; bottom: 2px; height: 1px; background: var(--accent); transform: scaleX(0); transform-origin: right; transition: transform .25s ease; }
.desktop-nav a:hover { color: var(--ink); }
.desktop-nav a:hover::after { transform: scaleX(1); transform-origin: left; }
.nav-actions { display: flex; align-items: center; gap: 18px; }
.contact-icon { display: inline-grid; place-items: center; width: 22px; height: 22px; color: var(--accent-deep); }
.contact-icon svg { width: 20px; height: 20px; }
.nav-phone { display: flex; flex-direction: column; gap: 4px; margin: -8px -10px; padding: 8px 10px; border-radius: 14px; text-align: right; white-space: nowrap; transition: color .35s ease; }
.nav-phone:hover { color: var(--accent-deep); }
.nav-phone:focus-visible { outline: 3px solid rgba(126,158,99,.42); outline-offset: 4px; }
.nav-phone__label { display: flex; align-items: center; justify-content: flex-end; gap: 8px; color: #7b8b88; font-size: 12px; letter-spacing: .07em; text-transform: uppercase; }
.phone-icon { display: inline-grid; place-items: center; flex: 0 0 30px; width: 30px; height: 30px; border-radius: 50%; background: #e5eee5; color: var(--accent-deep); line-height: 1; transition: color .25s ease, background-color .25s ease; }
.phone-icon svg { display: block; width: 20px; height: 20px; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.phone-number { display: block; line-height: 1; }
.nav-phone__number { display: flex; align-items: center; justify-content: flex-end; gap: 9px; color: var(--ink); font-size: 17px; font-weight: 600; line-height: 1; letter-spacing: .02em; transition: color .35s ease; }
.nav-phone:hover .nav-phone__number { color: var(--accent-deep); }
.mobile-menu__phone { transition: color .4s ease; }
.mobile-menu__phone:hover { color: var(--accent-deep); }
.nav-phone:hover .phone-icon, .mobile-menu__phone:hover .phone-icon { color: #185a50; background: #d6e6d7; }
.button { position: relative; isolation: isolate; overflow: hidden; display: inline-flex; align-items: center; justify-content: center; gap: 12px; min-height: 70px; padding: 0 30px; border: 0; border-radius: 100px; color: #fff; background: linear-gradient(105deg, #124a49 0%, #1d5a50 58%, #3d6547 100%); font-size: 16px; font-weight: 600; letter-spacing: .02em; box-shadow: 0 8px 18px rgba(10,42,39,.23); transition: box-shadow .55s ease, filter .55s ease; }
.button::before { content: ''; position: absolute; inset: 0; z-index: -1; border-radius: inherit; background: radial-gradient(circle at 76% 12%, rgba(213,231,176,.2), transparent 52%); opacity: 0; transform: scale(.97); transition: opacity .55s ease, transform .55s cubic-bezier(.22,1,.36,1); pointer-events: none; }
.button:hover { filter: brightness(1.04) saturate(1.04); box-shadow: 0 11px 22px rgba(10,42,39,.23), 0 0 0 1px rgba(199,217,154,.1); }
.button:hover::before { opacity: 1; transform: scale(1); }
.button:active { filter: brightness(.98); box-shadow: 0 7px 14px rgba(10,42,39,.22); transition-duration: .18s; }
.button:focus-visible { outline: 3px solid rgba(199,217,154,.82); outline-offset: 4px; }
.button__tooth { position: relative; z-index: 1; display: inline-grid; flex: 0 0 auto; place-items: center; width: 30px; height: 30px; color: #d5e7b0; line-height: 0; transition: filter .42s ease; }
.button:hover .button__tooth { filter: drop-shadow(0 0 5px rgba(213,231,176,.42)); }
.button__tooth svg { display: block; width: 100%; height: 100%; filter: drop-shadow(0 0 4px rgba(213,231,176,.5)); transform: translateY(1.5px) scale(1.28); }
.button--small .button__tooth { width: 26px; height: 26px; }
.button--small { min-height: 57px; padding: 0 23px; font-size: 14px; }
.menu-toggle { display: none; width: 54px; height: 54px; padding: 14px 11px; border: 1px solid var(--line); border-radius: 50%; background: transparent; }
.menu-toggle span { display: block; width: 26px; height: 1px; margin: 6px auto; background: var(--ink); transition: transform .2s ease; }
.mobile-menu { display: none; }
.hero, .scroll-cue { display: none !important; }

.photo-hero { position: relative; display: flex; flex: 1 1 auto; align-items: center; min-height: clamp(660px, calc(100svh - 88px), 860px); overflow: hidden; color: #fff; background-color: #082e29; background-image: linear-gradient(90deg, rgba(5, 40, 34, .82) 0%, rgba(5, 40, 34, .62) 30%, rgba(5, 40, 34, .2) 58%, rgba(5, 40, 34, .04) 100%), linear-gradient(0deg, rgba(5, 30, 26, .3) 0%, rgba(5, 30, 26, 0) 45%), url('../img/bg1block.webp'); background-position: center; background-size: cover; }
.photo-hero::after { content: ''; position: absolute; inset: 0; pointer-events: none; border-top: 1px solid rgba(255,255,255,.22); border-bottom: 1px solid rgba(255,255,255,.22); }
.photo-hero__content { position: relative; z-index: 1; width: 100%; max-width: var(--container-width); margin: 0 auto; padding: 76px var(--container-gutter) 70px; }
.photo-hero__kicker { margin: 0 0 25px; color: #cfe0ce; font-size: 13px; letter-spacing: .14em; text-transform: uppercase; }
.photo-hero h1 { max-width: 680px; margin: 0 0 24px; color: #fff; font-size: clamp(54px, 6vw, 88px); line-height: .96; }
.photo-hero h1 em { color: #c7d99a; }
.photo-hero__lead { max-width: 500px; margin: 0 0 34px; color: rgba(255,255,255,.84); font-size: 18px; line-height: 1.6; }
.photo-hero__content .button { background: linear-gradient(105deg, #124a49 0%, #1d5a50 58%, #3d6547 100%); box-shadow: 0 8px 18px rgba(10,42,39,.23); }
.photo-hero__content .button { justify-content: flex-start; }
.photo-hero__content .button:hover { box-shadow: 0 11px 22px rgba(10,42,39,.23), 0 0 0 1px rgba(199,217,154,.1); }
.photo-hero__content .button:active { box-shadow: 0 7px 14px rgba(10,42,39,.22); }
.photo-hero__content .button__tooth { order: -1; width: 34px; height: 34px; }
.photo-hero__content .button__tooth svg { transform: translateY(4.5px) scale(1.36); }
.photo-hero__facts { display: flex; gap: 35px; margin-top: 52px; }
.photo-hero__facts > span { display: flex; align-items: center; gap: 11px; white-space: normal; }
.photo-hero__facts .contact-icon { flex: 0 0 auto; color: #c7d99a; }
.photo-hero__facts strong { color: #fff; font-size: 19px; font-weight: 600; }
.photo-hero__aside { display: none; }
.photo-hero__aside-list { display: grid; gap: 0; margin: 0; padding: 0; list-style: none; }
.photo-hero__aside-list li { display: grid; grid-template-columns: 58px 1fr; align-items: center; gap: 15px; padding: 18px 0 17px; border-bottom: 1px solid rgba(231,244,228,.2); }
.photo-hero__aside-list li:first-child { padding-top: 0; }
.photo-hero__aside-list li:last-child { padding-bottom: 0; border-bottom: 0; }
.photo-hero__aside-icon { display: grid; place-items: center; width: 58px; height: 58px; color: #c7d99a; }
.photo-hero__aside-icon svg { width: 40px; height: 40px; }
.photo-hero__aside-list li:nth-child(2) .photo-hero__aside-icon svg { width: 52px; height: 52px; }
.photo-hero__aside-list strong, .photo-hero__aside-list small { display: block; }
.photo-hero__aside-list strong { margin-bottom: 6px; color: #fff; font-size: 21px; font-weight: 600; line-height: 1.2; }
.photo-hero__aside-list small { color: rgba(255,255,255,.78); font-size: 16px; line-height: 1.4; }
.photo-hero__aside-list li:nth-child(2) small { white-space: nowrap; letter-spacing: -.02em; }
.photo-hero__aside-list li:nth-child(3) small { font-size: clamp(13px, 1.1vw, 16px); white-space: nowrap; letter-spacing: -.02em; }

.hero { max-width: 1320px; min-height: 660px; display: grid; grid-template-columns: minmax(0, .92fr) minmax(420px, 1.08fr); align-items: center; margin: auto; padding: 26px 40px 84px; }
.hero__copy { position: relative; z-index: 1; padding-top: 22px; }
.eyebrow { display: flex; align-items: center; gap: 12px; margin: 0 0 27px; color: var(--ink-soft); font-size: 10px; letter-spacing: .13em; text-transform: uppercase; }
.eyebrow span:first-child { color: var(--accent-deep); font-weight: 700; }
.eyebrow i { display: inline-block; width: 38px; height: 1px; background: var(--accent); }
h1, h2, h3, p { margin-top: 0; }
h1 { max-width: 600px; margin-bottom: 23px; font-family: var(--serif); font-size: clamp(52px, 5.3vw, 84px); font-weight: 500; line-height: .97; letter-spacing: -.055em; }
h1 em, h2 em { color: var(--accent-deep); font-style: italic; font-weight: 500; }
.hero__lead { max-width: 430px; margin-bottom: 31px; color: var(--ink-soft); font-size: 15px; line-height: 1.65; }
.hero__actions { display: flex; align-items: center; gap: 25px; margin-bottom: 61px; }
.text-link { display: inline-flex; align-items: center; gap: 10px; padding: 5px 0; border: 0; border-bottom: 1px solid rgba(18,38,36,.35); color: var(--ink); background: transparent; font-size: 12px; transition: color .2s ease, border-color .2s ease; }
.text-link span { color: var(--accent-deep); font-size: 17px; transition: transform .2s ease; }
.text-link:hover { color: var(--accent-deep); border-color: var(--accent-deep); }
.text-link:hover span { transform: translate(3px, -3px); }
.hero__meta { display: flex; gap: 31px; }
.meta-card { display: flex; align-items: center; gap: 11px; }
.meta-card__icon { display: grid; place-items: center; width: 33px; height: 33px; border: 1px solid var(--line); border-radius: 50%; color: var(--accent-deep); }
.meta-card__icon svg { width: 16px; height: 16px; }
.meta-card small, .meta-card strong { display: block; }
.meta-card small { margin-bottom: 3px; color: #8a9996; font-size: 9px; letter-spacing: .05em; text-transform: uppercase; }
.meta-card strong { font-size: 12px; font-weight: 600; }

.hero__visual { position: relative; min-height: 550px; align-self: stretch; }
.visual-glow { position: absolute; top: 50%; left: 53%; width: min(36vw, 450px); height: min(36vw, 450px); min-width: 350px; min-height: 350px; border-radius: 50%; transform: translate(-50%, -45%); background: radial-gradient(circle at 37% 31%, rgba(255,255,255,.98), rgba(223,238,241,.87) 52%, rgba(191,218,221,.34) 70%, transparent 71%); filter: blur(.2px); }
.visual-orbit { position: absolute; top: 50%; left: 53%; border: 1px solid rgba(92,142,146,.2); border-radius: 50%; transform: translate(-50%, -44%) rotate(-22deg); pointer-events: none; }
.visual-orbit--one { width: min(42vw, 540px); height: min(24vw, 310px); min-width: 410px; min-height: 235px; }
.visual-orbit--two { width: min(46vw, 600px); height: min(31vw, 400px); min-width: 440px; min-height: 295px; border-color: rgba(92,142,146,.11); transform: translate(-50%, -44%) rotate(23deg); }
.tooth-stage { position: absolute; top: 50%; left: 53%; width: min(31vw, 410px); min-width: 320px; transform: translate(-50%, -47%); animation: tooth-float 6s ease-in-out infinite; }
.tooth-stage img { display: block; width: 100%; height: auto; object-fit: contain; filter: drop-shadow(19px 27px 17px rgba(54,96,102,.18)); }
@keyframes tooth-float { 0%, 100% { transform: translate(-50%, -47%) rotate(-2deg); } 50% { transform: translate(-50%, calc(-47% - 10px)) rotate(1deg); } }
.visual-note { position: absolute; z-index: 2; display: flex; align-items: center; gap: 10px; color: var(--ink-soft); font-size: 9px; letter-spacing: .08em; line-height: 1.35; text-transform: uppercase; }
.visual-note--top { top: 22%; right: 3%; transform: rotate(4deg); }
.visual-note__number { color: var(--accent-deep); font-family: var(--serif); font-size: 27px; font-style: italic; letter-spacing: -.04em; }
.visual-note--bottom { bottom: 18%; left: 4%; transform: rotate(-6deg); }
.visual-note__line { width: 46px; height: 1px; background: var(--accent); }
.visual-caption { position: absolute; right: 5%; bottom: 7%; display: flex; align-items: center; gap: 9px; color: #7b908c; font-size: 8px; letter-spacing: .16em; line-height: 1.45; text-transform: uppercase; }
.visual-caption__line { width: 30px; height: 1px; background: #9fb9b7; }
.scroll-cue { position: absolute; bottom: 26px; left: max(40px, calc((100vw - 1240px) / 2)); display: flex; align-items: center; gap: 14px; color: #8b9b98; font-size: 9px; letter-spacing: .1em; text-transform: uppercase; }
.scroll-cue i { position: relative; display: inline-block; width: 42px; height: 1px; background: #9eb0ac; }
.scroll-cue i::after { content: ''; position: absolute; right: 0; top: -3px; width: 7px; height: 7px; border-right: 1px solid var(--ink); border-bottom: 1px solid var(--ink); transform: rotate(45deg); }

h2 { margin-bottom: 0; font-family: var(--serif); font-size: clamp(37px, 4vw, 58px); font-weight: 500; line-height: 1; letter-spacing: -.05em; }

.scroll-reveal { opacity: 0; filter: blur(2px); transform: translate3d(0, 64px, 0) scale(.985); will-change: opacity, filter, transform; transition: opacity .95s ease, filter .95s ease, transform .95s cubic-bezier(.22, 1, .36, 1); }
.scroll-reveal.is-visible { opacity: 1; filter: none; transform: none; }
.scroll-reveal-child { opacity: 0; filter: blur(1.5px); transform: translate3d(0, 42px, 0); will-change: opacity, filter, transform; transition: opacity .78s ease var(--reveal-delay, 0ms), filter .78s ease var(--reveal-delay, 0ms), transform .78s cubic-bezier(.22, 1, .36, 1) var(--reveal-delay, 0ms); }
.scroll-reveal.is-visible .scroll-reveal-child { opacity: 1; filter: none; transform: none; }

.booking-dialog { width: min(980px, calc(100% - 32px)); height: min(630px, calc(100dvh - 40px)); max-height: min(630px, calc(100dvh - 40px)); margin: auto; padding: 0; overflow: hidden; border: 0; border-radius: 32px; color: var(--ink); background: #f8faf7; box-shadow: 0 32px 110px rgba(18,38,36,.3); }
.booking-dialog::backdrop { background: rgba(13,31,29,.62); backdrop-filter: blur(10px) saturate(.84); }

/* Анимация запускается при каждом открытии нативного dialog. */
@media (prefers-reduced-motion: no-preference) {
  .booking-dialog[open] { animation: booking-dialog-enter .36s cubic-bezier(.22, 1, .36, 1); }
  .booking-dialog[open]::backdrop { animation: booking-backdrop-enter .3s ease-out; }
}
@keyframes booking-dialog-enter {
  from { opacity: 0; transform: translateY(16px) scale(.985); }
  to { opacity: 1; transform: none; }
}
@keyframes booking-backdrop-enter {
  from { opacity: 0; }
  to { opacity: 1; }
}

.booking-dialog__layout { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(360px, .9fr); height: 100%; min-height: 0; }
.booking-dialog__form-pane { position: relative; z-index: 1; display: flex; flex-direction: column; justify-content: center; min-height: 0; overflow-y: auto; padding: 43px clamp(34px, 4vw, 54px) 36px; background: #f8faf7; }
.dialog-close { position: absolute; z-index: 5; top: 18px; right: 18px; display: grid; place-items: center; width: 42px; height: 42px; padding: 0; border: 1px solid rgba(232,246,226,.72); border-radius: 50%; color: transparent; background: rgba(13,67,58,.9); box-shadow: 0 7px 18px rgba(7,36,31,.26), inset 0 0 0 1px rgba(255,255,255,.12); font-size: 0; line-height: 1; transition: background .2s ease, box-shadow .2s ease, transform .2s ease; }
.dialog-close::before, .dialog-close::after { content: ''; position: absolute; width: 17px; height: 1.5px; border-radius: 999px; background: #f5f8eb; }
.dialog-close::before { transform: rotate(45deg); }
.dialog-close::after { transform: rotate(-45deg); }
.dialog-close:hover { background: #0b5146; box-shadow: 0 9px 22px rgba(7,36,31,.34), inset 0 0 0 1px rgba(255,255,255,.18); transform: rotate(90deg) scale(1.04); }
.dialog-kicker { margin-bottom: 14px; color: var(--accent-deep); font-size: 10px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; }
.booking-dialog h2 { max-width: 500px; margin-bottom: 14px; font-size: clamp(43px, 4.1vw, 55px); line-height: .91; }
.dialog-lead { max-width: 450px; margin-bottom: 22px; color: var(--ink-soft); font-size: 13px; line-height: 1.45; }
.booking-form { display: grid; gap: 12px; }
.booking-field { display: grid; gap: 7px; color: #657571; font-size: 10px; letter-spacing: .1em; text-transform: uppercase; }
.booking-field input { width: 100%; min-height: 52px; padding: 0 17px; border: 1px solid rgba(18,38,36,.16); border-radius: 14px; outline: 0; color: var(--ink); background: rgba(255,255,255,.88); font-size: 14px; letter-spacing: 0; text-transform: none; transition: border-color .2s ease, box-shadow .2s ease, background-color .2s ease; }
.booking-field input::placeholder { color: #94a19d; }
.booking-field input:focus { border-color: #6a9b7d; background: #fff; box-shadow: 0 0 0 4px rgba(106,155,125,.13); }
.booking-field input:user-invalid { border-color: #c37d72; }
.booking-field input:user-invalid:focus { border-color: #c37d72; box-shadow: 0 0 0 4px rgba(195,125,114,.14); }
.booking-consent { display: flex; align-items: flex-start; gap: 11px; color: #768680; font-size: 11px; line-height: 1.45; }
.booking-consent input { appearance: none; flex: 0 0 20px; width: 20px; height: 20px; margin: 0; border: 1px solid rgba(18,38,36,.22); border-radius: 6px; background: #fff; cursor: pointer; transition: background-color .2s ease, border-color .2s ease, box-shadow .2s ease; }
.booking-consent input:checked { border-color: #125448; background: #125448; box-shadow: 0 3px 9px rgba(18,84,72,.2); }
.booking-consent input:checked::after { content: ''; display: block; width: 5px; height: 9px; margin: 3px 0 0 6px; border-right: 2px solid #fff; border-bottom: 2px solid #fff; transform: rotate(45deg); }
.booking-consent input:focus-visible { outline: 3px solid rgba(106,155,125,.28); outline-offset: 2px; }
.booking-consent a { color: #36735d; text-decoration: underline; text-decoration-color: rgba(54,115,93,.3); text-underline-offset: 2px; }
.booking-form__submit { width: 100%; min-height: 60px; margin-top: 2px; font-size: 16px; }
.booking-form__note { display: none; }
.booking-dialog__visual { position: relative; min-height: 0; overflow: hidden; color: #fff; background: #164b40; }
.booking-dialog__visual::before { content: ''; position: absolute; z-index: 1; inset: 0; background: linear-gradient(180deg, rgba(10,54,46,.08) 20%, rgba(8,48,41,.85) 100%); }
.booking-dialog__visual::after { content: ''; position: absolute; z-index: 2; top: -100px; right: -80px; width: 270px; height: 270px; border: 1px solid rgba(212,235,205,.3); border-radius: 48% 52% 45% 55%; transform: rotate(25deg); }
.booking-dialog__visual > img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: 78% 50%; }
.booking-dialog__visual-copy { position: absolute; z-index: 3; right: 30px; bottom: 32px; left: 30px; display: grid; gap: 10px; }
.booking-dialog__visual-kicker { color: #cfe4bd; font-size: 11px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; }
.booking-dialog__visual-copy strong { font-family: 'Cormorant Garamond', Georgia, serif; font-size: clamp(32px, 3.5vw, 48px); font-weight: 500; line-height: .94; }
.booking-dialog__visual-address { color: rgba(244,249,240,.82); font-size: 13px; line-height: 1.4; }
.booking-success { padding: 32px 0 11px; text-align: center; }
.booking-success__icon { display: grid; place-items: center; width: 52px; height: 52px; margin: 0 auto 17px; border-radius: 50%; color: #fff; background: #6d9d85; font-size: 24px; }
.booking-success h3 { margin-bottom: 8px; font-family: var(--serif); font-size: 29px; font-weight: 500; }
.booking-success p { margin-bottom: 25px; color: var(--ink-soft); font-size: 13px; }

@media (max-width: 1050px) {
  .desktop-nav { gap: 24px; }
  .nav-phone { display: none; }
  .photo-hero__aside { right: 24px; width: 360px; padding: 22px 24px 20px; border-radius: 21px; }
  .photo-hero__aside-list li { grid-template-columns: 50px 1fr; gap: 12px; padding: 15px 0 14px; }
  .photo-hero__aside-list li:first-child { padding-top: 0; }
  .photo-hero__aside-list li:last-child { padding-bottom: 0; }
  .photo-hero__aside-icon { width: 50px; height: 50px; }
  .photo-hero__aside-icon svg { width: 34px; height: 34px; }
  .photo-hero__aside-list li:nth-child(2) .photo-hero__aside-icon svg { width: 44px; height: 44px; }
  .photo-hero__aside-list strong { font-size: 18px; }
  .photo-hero__aside-list small { font-size: 14px; }
  .photo-hero__aside-list li:nth-child(2) small { white-space: normal; letter-spacing: 0; }
  .photo-hero__aside-list li:nth-child(3) small { font-size: 14px; white-space: normal; letter-spacing: 0; }
  .hero { grid-template-columns: minmax(0, .95fr) minmax(370px, 1.05fr); }
  .visual-note--top { right: 0; }
}
@media (max-width: 900px) {
  .photo-hero { display: block; min-height: 0; }
  .photo-hero__content { padding-bottom: 34px; }
  .photo-hero__aside { display: none; }
}
@media (max-width: 790px) {
  .nav-wrap, .photo-hero__content { padding-left: 22px; padding-right: 22px; }
  .nav-wrap { min-height: 80px; }
  .desktop-nav, .nav-actions .button--small { display: none; }
  .nav-actions { margin-left: auto; }
  .menu-toggle { display: block; }
  .menu-toggle.is-open span:first-child { transform: translateY(3px) rotate(45deg); }
  .menu-toggle.is-open span:last-child { transform: translateY(-3px) rotate(-45deg); }
  .mobile-menu { position: absolute; top: 80px; right: 15px; left: 15px; z-index: 10; display: grid; gap: 21px; padding: 25px 24px 24px; border: 1px solid var(--line); border-radius: 17px; background: rgba(249,250,247,.98); box-shadow: 0 18px 40px rgba(18,38,36,.12); opacity: 0; pointer-events: none; transform: translateY(-8px); transition: opacity .2s ease, transform .2s ease; }
  .mobile-menu.is-open { opacity: 1; pointer-events: auto; transform: translateY(0); }
  .mobile-menu nav { display: grid; gap: 17px; font-family: var(--serif); font-size: 23px; }
  .mobile-menu__phone { display: flex; align-items: center; gap: 9px; padding-top: 7px; border-top: 1px solid var(--line); font-size: 12px; font-weight: 600; }
  .mobile-menu__phone span { color: var(--accent-deep); margin-left: 4px; }
  .mobile-menu__phone .phone-icon { margin-left: 0; }
  .mobile-menu__phone > span:last-child { color: var(--ink); margin-left: 0; }
  .mobile-menu__phone:hover > span:last-child { color: var(--accent-deep); }
  .mobile-menu .button { width: 100%; }
  .site-header { min-height: 100svh; }
  .photo-hero { min-height: 0; background-image: linear-gradient(90deg, rgba(5, 40, 34, .82) 0%, rgba(5, 40, 34, .62) 30%, rgba(5, 40, 34, .2) 58%, rgba(5, 40, 34, .04) 100%), linear-gradient(0deg, rgba(5, 30, 26, .3) 0%, rgba(5, 30, 26, 0) 45%), url('../img/bgmobile.webp'); background-position: center top; background-size: auto, auto, 100% auto; background-repeat: no-repeat; }
  .photo-hero__content { padding: 58px 22px 54px; }
  .photo-hero__kicker { max-width: 300px; margin-bottom: 22px; font-size: 10px; line-height: 1.4; }
  .photo-hero h1 { max-width: 490px; font-size: clamp(50px, 12vw, 74px); }
  .photo-hero__lead { max-width: 390px; font-size: 15px; }
  .photo-hero__facts { gap: 22px; margin-top: 40px; }
  .photo-hero__facts small { font-size: 8px; }
  .photo-hero__facts strong { font-size: 16px; }
  .hero { display: flex; flex-direction: column; min-height: auto; padding-top: 55px; padding-bottom: 55px; }
  .hero__copy { width: 100%; padding-top: 0; }
  h1 { font-size: clamp(48px, 13vw, 73px); }
  .hero__lead { max-width: 500px; }
  .hero__actions { margin-bottom: 44px; }
  .hero__meta { gap: 20px; }
  .hero__visual { width: 100%; min-height: 450px; margin-top: 15px; }
  .visual-glow { width: min(68vw, 420px); height: min(68vw, 420px); min-width: 285px; min-height: 285px; }
  .visual-orbit--one { width: min(78vw, 520px); height: min(45vw, 300px); min-width: 340px; min-height: 210px; }
  .visual-orbit--two { width: min(84vw, 560px); height: min(58vw, 385px); min-width: 370px; min-height: 250px; }
  .tooth-stage { width: min(57vw, 370px); min-width: 260px; }
  .visual-note--top { top: 15%; right: 2%; }
  .visual-note--bottom { bottom: 14%; left: 2%; }
  .visual-caption { bottom: 3%; right: 4%; }
  .scroll-cue { display: none; }
}
@media (max-width: 480px) {
  .brand__mark { width: 58px; height: 58px; border-radius: 17px; }
  .brand__mark img { width: 58px; height: 58px; }
  .brand__name { font-size: 21px; }
  .hero { padding-top: 45px; }
  .eyebrow { gap: 9px; margin-bottom: 22px; font-size: 8px; }
  .eyebrow i { width: 26px; }
  h1 { font-size: clamp(45px, 14vw, 64px); }
  .hero__lead { font-size: 13px; }
  .hero__actions { align-items: flex-start; flex-direction: column; gap: 17px; }
  .hero__actions .button { width: 100%; }
  .hero__meta { flex-direction: column; gap: 13px; }
  .hero__visual { min-height: 365px; margin-top: 3px; }
  .photo-hero { min-height: 0; background-position: center top; }
  .photo-hero__content { padding-top: 45px; }
  .photo-hero h1 { font-size: clamp(44px, 13vw, 62px); }
  .photo-hero__lead { max-width: 300px; font-size: 13px; }
  .photo-hero__facts { flex-direction: column; gap: 13px; margin-top: 30px; }
  .visual-note { font-size: 7px; }
  .visual-note__number { font-size: 22px; }
  .visual-note--top { top: 11%; right: 0; }
  .visual-note--bottom { bottom: 11%; left: 0; }
  .visual-orbit--one { min-width: 300px; }
  .visual-orbit--two { min-width: 320px; }
  .tooth-stage { min-width: 230px; }
  .visual-caption { font-size: 7px; }
  .booking-dialog { width: min(620px, calc(100% - 24px)); height: auto; max-height: calc(100dvh - 24px); border-radius: 25px; overflow: auto; }
  .booking-dialog__layout { display: flex; flex-direction: column; height: auto; min-height: 0; }
  .booking-dialog__visual { order: -1; min-height: 175px; height: 175px; }
  .booking-dialog__visual-copy { right: 22px; bottom: 20px; left: 22px; gap: 6px; }
  .booking-dialog__visual-copy strong { font-size: 31px; }
  .booking-dialog__visual-address { font-size: 11px; }
  .booking-dialog__form-pane { justify-content: flex-start; overflow: visible; padding: 36px 23px 30px; }
  .booking-dialog h2 { font-size: 39px; }
  .dialog-lead { margin-bottom: 24px; font-size: 13px; }
  .booking-field input { min-height: 54px; }
  .booking-form__submit { min-height: 62px; }
  .dialog-close { top: 14px; right: 14px; width: 40px; height: 40px; border-color: rgba(232,246,226,.8); background: rgba(13,67,58,.9); }
  .dialog-close:hover { background: #0b5146; }
}

/* Hero: единая композиция для широких экранов, планшетов и телефонов. */
@media (min-width: 901px) {
  .photo-hero__content {
    width: min(1400px, calc(100% - clamp(80px, 15vw, 250px)));
    max-width: 1400px;
    padding: clamp(56px, 6vw, 92px) 0 clamp(58px, 5.5vw, 82px);
    transform: translateY(clamp(-46px, -3vw, -24px));
  }
  .photo-hero h1 { max-width: 650px; }
  .photo-hero__lead { max-width: 520px; }
}

@media (max-width: 900px) {
  .photo-hero {
    min-height: clamp(660px, calc(100svh - var(--site-nav-height)), 900px);
    background-image:
      linear-gradient(90deg, rgba(5,40,34,.9) 0%, rgba(5,40,34,.7) 46%, rgba(5,40,34,.25) 100%),
      linear-gradient(180deg, rgba(5,30,26,.18) 0%, rgba(5,30,26,.16) 45%, rgba(5,30,26,.48) 100%),
      url('../img/bgmobile.webp');
    background-position: center center;
    background-size: auto, auto, cover;
    background-repeat: no-repeat;
  }
  .photo-hero__content {
    width: min(760px, calc(100% - 48px));
    max-width: 760px;
    padding: clamp(48px, 8vw, 72px) 0 56px;
  }
  .photo-hero__kicker { max-width: 430px; margin-bottom: 20px; font-size: 11px; line-height: 1.35; }
  .photo-hero h1 { max-width: 610px; margin-bottom: 22px; font-size: clamp(48px, 8.5vw, 76px); line-height: .91; }
  .photo-hero__lead { max-width: 520px; margin-bottom: 30px; font-size: clamp(14px, 2vw, 17px); line-height: 1.55; }
  .photo-hero__content .button { max-width: 390px; }
  .photo-hero__facts { flex-wrap: wrap; gap: 14px 28px; margin-top: 42px; }
  .photo-hero__facts strong { font-size: 16px; }
}

@media (max-width: 600px) {
  .site-header { min-height: auto; }
  .photo-hero {
    flex: 0 0 auto;
    min-height: 0;
    align-items: flex-start;
    background-position: center top;
  }
  .photo-hero__content {
    width: calc(100% - 40px);
    padding: 38px 0 34px;
  }
  .photo-hero__kicker { max-width: 300px; margin-bottom: 18px; font-size: 9px; letter-spacing: .12em; }
  .photo-hero h1 { max-width: 100%; margin-bottom: 20px; font-size: clamp(43px, 12.5vw, 58px); line-height: .92; }
  .photo-hero__lead { max-width: 355px; margin-bottom: 26px; font-size: 14px; line-height: 1.52; }
  .photo-hero__content .button { width: 100%; max-width: 390px; min-height: 62px; padding: 0 22px; }
  .photo-hero__facts { flex-direction: column; align-items: flex-start; gap: 12px; margin-top: 31px; }
  .photo-hero__facts strong { font-size: 15px; }
}

@media (max-width: 390px) {
  .photo-hero__content { width: calc(100% - 32px); padding-top: 34px; padding-bottom: 30px; }
  .photo-hero h1 { font-size: clamp(42px, 12.5vw, 51px); }
  .photo-hero__lead { font-size: 13px; }
  .photo-hero__content .button { min-height: 58px; font-size: 14px; }
  .photo-hero__facts strong { font-size: 14px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .scroll-reveal { transition: opacity .95s ease, filter .95s ease, transform .95s cubic-bezier(.22, 1, .36, 1) !important; }
  .scroll-reveal-child { transition: opacity .78s ease var(--reveal-delay, 0ms), filter .78s ease var(--reveal-delay, 0ms), transform .78s cubic-bezier(.22, 1, .36, 1) var(--reveal-delay, 0ms) !important; }
}

/* About clinic */
.clinic-about {
  --clinic-bg: #fff;
  --clinic-ink: #0b3532;
  --clinic-green: #10473e;
  --clinic-green-hover: #0b3b33;
  --clinic-sage: #759a78;
  --clinic-body: #61767b;
  --clinic-small-accent: #547660;
  --clinic-soft: #eff5ef;
  --clinic-line: #dce7de;
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: clamp(78px, 8vw, 132px) 0 clamp(30px, 4vw, 58px);
  color: var(--clinic-ink);
  background: var(--clinic-bg);
}
.clinic-about__inner {
  display: grid;
  grid-template-columns: minmax(0, .42fr) minmax(0, .58fr);
  align-items: start;
  gap: clamp(32px, 4vw, 78px);
  width: min(1560px, calc(100% - clamp(40px, 9vw, 176px)));
  margin: 0 auto;
}
.clinic-about__copy {
  position: relative;
  z-index: 2;
  align-self: start;
  padding-top: clamp(18px, 4.5vw, 76px);
}
.clinic-about__badge {
  display: inline-flex;
  align-items: center;
  gap: 16px;
  min-height: 58px;
  margin-bottom: clamp(28px, 3vw, 44px);
  padding: 6px 23px 6px 7px;
  border-radius: 999px;
  color: var(--clinic-small-accent);
  background: #f5f8f4;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: .03em;
}
.clinic-about__badge-icon {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  color: var(--clinic-green);
  background: #e6f0e8;
}
.clinic-about__badge-icon svg { width: 28px; height: 28px; }
.clinic-about__audience {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  min-height: 48px;
  margin: -9px 0 clamp(22px, 2.4vw, 31px);
  padding: 7px 18px 7px 7px;
  border: 1px solid var(--clinic-line);
  border-radius: 999px;
  color: var(--clinic-small-accent);
  background: #fbfdfb;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .04em;
}
.clinic-about__audience-icon {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  flex: 0 0 auto;
  border-radius: 50%;
  color: var(--clinic-green);
  background: var(--clinic-soft);
}
.clinic-about__audience-icon svg {
  width: 21px;
  height: 21px;
}
.clinic-about h2 {
  max-width: 640px;
  margin: 0 0 clamp(23px, 2.4vw, 34px);
  color: var(--clinic-ink);
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: clamp(58px, 5vw, 78px);
  font-weight: 600;
  line-height: .96;
  letter-spacing: -.045em;
}
.clinic-about h2 em {
  color: var(--clinic-sage);
  font-size: 1.05em;
  font-style: italic;
  font-weight: 600;
  white-space: nowrap;
}
.clinic-about__lead {
  max-width: 590px;
  margin: 0 0 clamp(30px, 3.6vw, 49px);
  color: var(--clinic-body);
  font-size: clamp(16px, 1.35vw, 20px);
  line-height: 1.47;
}
.clinic-about__benefits {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(13px, 1.7vw, 30px);
  margin: 0 0 clamp(34px, 3.5vw, 49px);
  padding: 0;
  list-style: none;
}
.clinic-about__benefits li {
  display: grid;
  justify-items: start;
  gap: 12px;
  min-width: 0;
  color: var(--clinic-ink);
  font-size: clamp(14px, 1.1vw, 18px);
  line-height: 1.28;
}
.clinic-about__benefit-icon {
  display: grid;
  place-items: center;
  width: clamp(60px, 4.5vw, 68px);
  height: clamp(60px, 4.5vw, 68px);
  border-radius: 50%;
  color: var(--clinic-green);
  background: var(--clinic-soft);
}
.clinic-about__benefit-icon svg { width: 29px; height: 29px; }
.clinic-about__cta-row {
  display: flex;
  align-items: center;
  gap: 23px;
}
.clinic-about__cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: min(410px, 100%);
  min-height: 72px;
  padding: 0 10px 0 29px;
  border-radius: 999px;
  color: #fff;
  background: var(--clinic-green);
  box-shadow: 0 10px 22px rgba(16, 71, 62, .16);
  font-size: clamp(14px, 1.1vw, 17px);
  letter-spacing: 0;
}
.clinic-about__cta:hover { background: var(--clinic-green-hover); }
.clinic-about__cta:focus-visible { outline: 3px solid rgba(117, 154, 120, .62); outline-offset: 4px; }
.clinic-about__cta-arrow {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  color: #d6e8d6;
  background: rgba(169, 205, 174, .22);
  transition: transform .25s ease, background .25s ease;
}
.clinic-about__cta-arrow .ui-arrow,
.clinic-team__cta-arrow .ui-arrow { width: 24px; height: 24px; stroke: currentColor; stroke-width: 1.45; stroke-linecap: round; stroke-linejoin: round; }
.clinic-about__cta:hover .clinic-about__cta-arrow { transform: translateX(2px); background: rgba(169, 205, 174, .3); }
.clinic-about__cta-note {
  flex: 0 0 auto;
  color: var(--clinic-sage);
  font-size: 15px;
  line-height: 1.3;
}
.clinic-about__visual {
  position: relative;
  min-width: 0;
  min-height: clamp(620px, 43vw, 770px);
}
.clinic-about__sage-shape {
  position: absolute;
  z-index: 0;
  top: -2%;
  right: -5%;
  width: 98%;
  height: 96%;
  border-radius: 52% 45% 42% 48% / 35% 26% 48% 57%;
  background: #edf3ed;
  transform: rotate(-3deg);
  pointer-events: none;
}
.clinic-about__outline {
  display: none;
  position: absolute;
  z-index: 2;
  top: -4%;
  right: -4%;
  width: 105%;
  height: 104%;
  overflow: visible;
  fill: none;
  stroke: #cbd9ce;
  stroke-width: .72;
  stroke-linecap: round;
  opacity: .76;
  pointer-events: none;
}
.clinic-about__clip-defs {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}
.clinic-about__photo-frame {
  position: relative;
  z-index: 1;
  width: 100%;
  aspect-ratio: 1.22 / 1;
}
.clinic-about__photo {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: block;
  width: 100%;
  height: 100%;
  border-radius: 30% 13% 30% 22% / 17% 30% 16% 38%;
  object-fit: cover;
  object-position: 58% 49%;
  clip-path: url(#clinic-about-photo-clip);
}
.clinic-about__photo--next {
  z-index: 2;
  opacity: 0;
  pointer-events: none;
  transition: opacity 2.4s linear;
  will-change: opacity;
}
.clinic-about__photo--next.is-visible {
  opacity: 1;
}
@media (prefers-reduced-motion: reduce) {
  /* Keep this stationary dissolve smooth instead of turning it into a hard cut. */
  .clinic-about__photo--next { transition-duration: 2.4s !important; }
}
.clinic-about__stats {
  display: none;
  position: absolute;
  z-index: 3;
  right: auto;
  bottom: 4%;
  left: -7%;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  width: min(590px, 79%);
  min-height: 134px;
  padding: 22px 10px;
  border: 1px solid rgba(214, 228, 216, .95);
  border-radius: 30px;
  color: var(--clinic-ink);
  background: rgba(247, 250, 246, .93);
  box-shadow: 0 20px 42px rgba(44, 74, 57, .12);
  backdrop-filter: blur(12px);
}
.clinic-about__stat {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 0;
  padding: 0 clamp(12px, 1.6vw, 26px);
}
.clinic-about__stat + .clinic-about__stat { border-left: 1px solid var(--clinic-line); }
.clinic-about__stat strong {
  margin-bottom: 7px;
  color: var(--clinic-ink);
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: clamp(28px, 2.4vw, 40px);
  font-weight: 600;
  line-height: .95;
}
.clinic-about__stat span {
  max-width: 150px;
  color: var(--clinic-body);
  font-size: clamp(11px, .95vw, 14px);
  line-height: 1.32;
}
.clinic-about__diagnostic {
  position: absolute;
  z-index: 4;
  top: 8%;
  right: -2%;
  display: grid;
  place-items: center;
  width: clamp(138px, 10vw, 158px);
  height: clamp(138px, 10vw, 158px);
  min-height: 0;
  padding: 14px;
  border-radius: 50%;
  color: var(--clinic-ink);
  background: rgba(255, 255, 255, .95);
  box-shadow: 0 20px 38px rgba(59, 83, 68, .12);
}
.clinic-about__tooth-wrap {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  margin: 0;
}
.clinic-about__tooth {
  display: block;
  width: 96px;
  height: 108px;
  object-fit: contain;
  object-position: center;
  filter: drop-shadow(0 7px 9px rgba(82, 111, 89, .12));
}
.clinic-about__plus {
  position: absolute;
  top: 2px;
  right: 0;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  color: #fff;
  background: #86ac8b;
  font-size: 26px;
  font-weight: 400;
  line-height: 1;
}
.clinic-about__diagnostic strong {
  display: block;
  margin-bottom: 7px;
  color: var(--clinic-ink);
  font-size: 18px;
  line-height: 1.08;
}
.clinic-about__diagnostic p {
  margin: 0;
  color: var(--clinic-body);
  font-size: 12px;
  line-height: 1.35;
}
.clinic-about__hand-note {
  position: absolute;
  z-index: 4;
  right: auto;
  bottom: 5%;
  left: 5%;
  display: grid;
  place-items: center;
  width: 190px;
  height: 190px;
  padding: 20px;
  margin: 0;
  border-radius: 50%;
  color: var(--clinic-sage);
  background: rgba(255, 255, 255, .95);
  box-shadow: 0 16px 30px rgba(59, 83, 68, .1);
  font-family: 'Caveat', cursive;
  font-size: clamp(25px, 2vw, 31px);
  font-weight: 600;
  line-height: .94;
  text-align: center;
  white-space: nowrap;
  transform: rotate(-8deg);
}
.clinic-about__footer {
  display: grid;
  grid-template-columns: auto 1fr auto auto;
  align-items: center;
  gap: 18px;
  width: min(1560px, calc(100% - clamp(40px, 9vw, 176px)));
  margin: clamp(24px, 3vw, 46px) auto 0;
  color: #789086;
  font-size: 10px;
  letter-spacing: .25em;
  text-transform: uppercase;
}
.clinic-about__footer::before {
  content: '';
  display: block;
  width: 120px;
  height: 1px;
  background: var(--clinic-line);
}
.clinic-about__footer i {
  display: block;
  width: 42px;
  height: 1px;
  background: var(--clinic-line);
}
.clinic-about__footer i:first-of-type { width: 38px; background: #7ca985; }

/* Декоративный переход между блоками клиники. */
.clinic-transition-branches {
  position: relative;
  z-index: 2;
  height: 0;
  overflow: visible;
  background: transparent;
  pointer-events: none;
}
.clinic-transition-branches__item {
  position: absolute;
  top: clamp(-145px, -10vw, -80px);
  display: block;
  width: clamp(205px, 25vw, 360px);
  height: auto;
  max-width: none;
  opacity: 1;
  user-select: none;
  -webkit-user-drag: none;
}
.clinic-transition-branches__item--left {
  display: none;
  left: clamp(-110px, -7vw, -35px);
  transform: translateY(60px) rotate(-16deg);
}
.clinic-transition-branches__item--right {
  right: clamp(-110px, -7vw, -35px);
  transform: translateY(60px) scaleX(-1) rotate(-16deg);
}

@media (max-width: 1250px) {
  .clinic-about__inner, .clinic-about__footer { width: min(1160px, calc(100% - 80px)); }
  .clinic-about__inner { gap: 38px; }
  .clinic-about h2 { font-size: clamp(55px, 5.1vw, 68px); }
  .clinic-about__diagnostic { right: -1%; }
  .clinic-about__stats { left: -4%; width: 82%; }
}
@media (max-width: 900px) {
  .clinic-about { padding-top: 78px; }
  .clinic-about__inner { grid-template-columns: 1fr; width: min(760px, calc(100% - 48px)); }
  .clinic-about__copy { padding-top: 0; }
  .clinic-about__lead { max-width: 620px; }
  .clinic-about__visual { width: 100%; min-height: 0; margin: 8px auto 0; }
  .clinic-about__photo-frame { aspect-ratio: 1.22 / 1; }
  .clinic-about__diagnostic { top: 7%; right: -1%; }
  .clinic-about__stats { left: -2%; width: 77%; }
  .clinic-about__hand-note { top: auto; right: auto; bottom: 4%; left: 6%; width: 170px; height: 170px; }
  .clinic-about__footer { width: min(760px, calc(100% - 48px)); }
}
@media (max-width: 600px) {
  .clinic-transition-branches__item { top: -70px; width: 155px; opacity: 1; }
  .clinic-transition-branches__item--left { left: -55px; }
  .clinic-transition-branches__item--right { right: -55px; }
  .clinic-about { padding: 60px 0 30px; }
  .clinic-about__inner, .clinic-about__footer { width: calc(100% - 40px); }
  .clinic-about__badge { min-height: 50px; margin-bottom: 27px; padding: 5px 17px 5px 6px; gap: 12px; font-size: 11px; }
  .clinic-about__badge-icon { width: 38px; height: 38px; }
  .clinic-about__badge-icon svg { width: 24px; height: 24px; }
  .clinic-about__audience { min-height: 44px; margin: -5px 0 21px; padding: 6px 15px 6px 6px; font-size: 12px; }
  .clinic-about__audience-icon { width: 31px; height: 31px; }
  .clinic-about__audience-icon svg { width: 19px; height: 19px; }
  .clinic-about h2 { margin-bottom: 22px; font-size: clamp(43px, 12vw, 58px); line-height: .97; }
  .clinic-about h2 em { white-space: normal; }
  .clinic-about__lead { margin-bottom: 30px; font-size: 16px; line-height: 1.45; }
  .clinic-about__benefits { gap: 10px; margin-bottom: 31px; }
  .clinic-about__benefits li { gap: 9px; font-size: 13px; }
  .clinic-about__benefit-icon { width: 56px; height: 56px; }
  .clinic-about__benefit-icon svg { width: 26px; height: 26px; }
  .clinic-about__cta-row { align-items: flex-start; flex-direction: column; gap: 13px; }
  .clinic-about__cta { width: 100%; min-height: 66px; padding-left: 23px; font-size: 14px; }
  .clinic-about__cta-arrow { width: 48px; height: 48px; }
  .clinic-about__cta-note { margin-left: 3px; font-size: 14px; }
  .clinic-about__visual { display: flex; flex-direction: column; margin-top: 21px; }
  .clinic-about__sage-shape, .clinic-about__outline { display: none; }
  .clinic-about__photo-frame { aspect-ratio: 1 / 1.04; }
  .clinic-about__photo { object-position: 59% 50%; }
  .clinic-about__stats { display: none; }
  .clinic-about__stat { padding: 0 10px; }
  .clinic-about__stat strong { margin-bottom: 6px; font-size: 28px; }
  .clinic-about__stat span { font-size: 11px; }
  .clinic-about__diagnostic { display: none; }
  .clinic-about__hand-note { display: none; }
  .clinic-about__footer { grid-template-columns: 1fr auto auto; gap: 10px; margin-top: 30px; font-size: 8px; letter-spacing: .17em; }
  .clinic-about__footer::before { display: none; }
  .clinic-about__footer i { width: 22px; }
}
@media (max-width: 390px) {
  .clinic-about__benefits { gap: 6px; }
  .clinic-about__benefits li { font-size: 12px; }
  .clinic-about__benefit-icon { width: 52px; height: 52px; }
  .clinic-about__stat { padding: 0 7px; }
  .clinic-about__stat strong { font-size: 25px; }
  .clinic-about__stat span { font-size: 10px; }
}

/* Наши врачи: спокойная композиция с центральной активной карточкой. */
.clinic-team {
  --team-ink: #123b33;
  --team-muted: #71837d;
  --team-sage: #80a687;
  --team-pale: #eef4ee;
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: clamp(90px, 10vw, 158px) 0 clamp(96px, 11vw, 150px);
  color: var(--team-ink);
  background: #fff;
}
.clinic-team::before {
  content: '';
  position: absolute;
  z-index: -1;
  top: 2%;
  right: -8%;
  width: min(650px, 54vw);
  height: min(650px, 54vw);
  border-radius: 50%;
  background: transparent;
  pointer-events: none;
}
.clinic-team::after {
  content: '';
  position: absolute;
  z-index: -1;
  bottom: -180px;
  left: -120px;
  width: 360px;
  height: 360px;
  border-radius: 50%;
  background: transparent;
  pointer-events: none;
}
.clinic-team__inner {
  display: grid;
  grid-template-columns: minmax(270px, .72fr) minmax(0, 1.48fr);
  align-items: center;
  gap: clamp(36px, 5vw, 92px);
  width: min(1360px, calc(100% - 80px));
  margin: 0 auto;
}
.clinic-team__copy { position: relative; z-index: 2; padding: 4px 0 18px; }
.clinic-team__badge {
  display: inline-flex;
  align-items: center;
  gap: 16px;
  min-height: 58px;
  margin-bottom: clamp(28px, 3vw, 44px);
  padding: 6px 23px 6px 7px;
  border-radius: 999px;
  color: #547660;
  background: #f5f8f4;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: .03em;
}
.clinic-team__badge-icon {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  color: #10473e;
  background: #e6f0e8;
}
.clinic-team__badge-icon svg { width: 28px; height: 28px; }
.clinic-team h2 {
  max-width: 500px;
  margin: 0 0 27px;
  color: var(--team-ink);
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: clamp(56px, 5.3vw, 86px);
  font-weight: 600;
  letter-spacing: -.045em;
  line-height: .87;
}
.clinic-team h2 em {
  color: var(--team-sage);
  font-style: italic;
  white-space: nowrap;
}
.clinic-team__lead {
  max-width: 420px;
  margin: 0 0 38px;
  color: var(--team-muted);
  font-size: clamp(16px, 1.45vw, 20px);
  line-height: 1.45;
}
.clinic-team__cta {
  justify-content: space-between;
  width: min(100%, 325px);
  min-height: 69px;
  padding: 0 10px 0 30px;
  font-size: 16px;
}
.clinic-team__cta-arrow {
  display: inline-grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  color: #eff7eb;
  background: rgba(190, 221, 180, .22);
  transition: transform .35s ease, background .35s ease;
}
.clinic-team__cta:hover .clinic-team__cta-arrow { background: rgba(190, 221, 180, .34); transform: translateX(3px); }

/* Shared positions let a swipe blend into the same animation as a card click. */
.clinic-team__slider {
  --team-card-height: 720px;
  --team-portrait-height: 460px;
  --team-spread: clamp(210px, 21vw, 310px);
  --team-side-scale: .82;
  --team-side-lift: 20px;
  --team-far-position: 1.32;
  --team-far-scale: .62;
  --team-far-lift: 34px;
  min-width: 0;
  position: relative;
}
.clinic-team__stage { position: relative; padding: 24px 0 32px; }
.clinic-team__cards {
  position: relative;
  height: var(--team-card-height);
  perspective: 1400px;
  touch-action: pan-y;
  overscroll-behavior-x: contain;
  user-select: none;
  -webkit-user-select: none;
  -webkit-tap-highlight-color: transparent;
  cursor: grab;
}
.clinic-team__card {
  --card-position: 0;
  --card-scale: .72;
  --card-lift: 20px;
  --card-rotate: 0deg;
  position: absolute;
  z-index: 1;
  top: 50%;
  left: 50%;
  display: flex;
  flex-direction: column;
  width: clamp(250px, 25vw, 350px);
  min-height: var(--team-card-height);
  overflow: hidden;
  border: 1px solid rgba(130, 162, 139, .13);
  border-radius: 34px;
  /* An opaque surface keeps neighbouring specialist cards from showing through. */
  background: #fff;
  box-shadow: 0 18px 46px rgba(54, 91, 72, .09);
  opacity: 0;
  pointer-events: none;
  transform: translate3d(calc(-50% + var(--team-spread) * var(--card-position)), calc(-50% + var(--card-lift)), 0) rotateY(var(--card-rotate)) scale(var(--card-scale));
  transform-style: preserve-3d;
  backface-visibility: hidden;
  transform-origin: center center;
  will-change: transform, opacity;
  transition: transform .76s cubic-bezier(.22, 1, .36, 1), opacity .58s ease, box-shadow .68s ease;
}
.clinic-team__card.is-prev,
.clinic-team__card.is-next {
  --card-position: -1;
  --card-scale: var(--team-side-scale);
  --card-lift: var(--team-side-lift);
  --card-rotate: -5deg;
  z-index: 1;
  opacity: 1;
  pointer-events: auto;
  cursor: pointer;
}
.clinic-team__card.is-next { --card-position: 1; --card-rotate: 5deg; }
.clinic-team__card.is-far-prev,
.clinic-team__card.is-far-next {
  --card-position: calc(var(--team-far-position) * -1);
  --card-scale: var(--team-far-scale);
  --card-lift: var(--team-far-lift);
  --card-rotate: -9deg;
  z-index: 0;
  opacity: .48;
  pointer-events: auto;
  filter: saturate(.78);
  cursor: pointer;
}
.clinic-team__card.is-far-next { --card-position: var(--team-far-position); --card-rotate: 9deg; }
.clinic-team__card.is-wrapping {
  opacity: 0 !important;
  pointer-events: none;
}
.clinic-team__card.is-active {
  --card-position: 0;
  --card-scale: 1;
  --card-lift: 0px;
  z-index: 3;
  opacity: 1;
  pointer-events: auto;
  box-shadow: 0 25px 58px rgba(54, 91, 72, .16);
  cursor: grab;
}
.clinic-team__cards.is-dragging,
.clinic-team__cards.is-dragging .clinic-team__card { cursor: grabbing; }
.clinic-team__cards.is-js-controlled .clinic-team__card { transition: none; }
.clinic-team__cards.is-dragging .clinic-team__card,
.clinic-team__cards.is-dragging .clinic-team__portrait img { transition: none; filter: none; }
.clinic-team__cards.is-dragging .clinic-team__more { pointer-events: none; }
.clinic-team__portrait {
  --team-portrait-start: #edf6ef;
  --team-portrait-end: #dfeee2;
  --team-portrait-glow: rgba(255, 255, 255, .5);
  --team-portrait-accent: rgba(62, 126, 86, .2);
  --team-portrait-orbit: rgba(54, 122, 82, .19);
  --team-portrait-rotate: -18deg;
  position: relative;
  isolation: isolate;
  flex: 0 0 var(--team-portrait-height);
  height: var(--team-portrait-height);
  overflow: hidden;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  background:
    radial-gradient(ellipse 38% 28% at 16% 19%, var(--team-portrait-accent), transparent 72%),
    radial-gradient(ellipse 42% 32% at 88% 77%, rgba(255, 255, 255, .65), transparent 72%),
    linear-gradient(150deg, var(--team-portrait-start) 0%, var(--team-portrait-end) 100%);
}
.clinic-team__portrait::after {
  content: '';
  position: absolute;
  z-index: 0;
  right: -16%;
  bottom: -25%;
  width: 82%;
  height: 72%;
  border-radius: 52% 48% 42% 58%;
  background: var(--team-portrait-glow);
  filter: blur(2px);
  transform: rotate(-8deg);
  pointer-events: none;
}
.clinic-team__card:nth-child(1) .clinic-team__portrait {
  --team-portrait-start: #eef8f0;
  --team-portrait-end: #d6eadb;
  --team-portrait-accent: rgba(83, 150, 100, .24);
  --team-portrait-orbit: rgba(43, 119, 71, .2);
  --team-portrait-rotate: -22deg;
}
.clinic-team__card:nth-child(2) .clinic-team__portrait {
  --team-portrait-start: #eef6f2;
  --team-portrait-end: #d7e9e2;
  --team-portrait-accent: rgba(42, 133, 110, .2);
  --team-portrait-orbit: rgba(24, 111, 91, .2);
  --team-portrait-rotate: 17deg;
}
.clinic-team__card:nth-child(3) .clinic-team__portrait {
  --team-portrait-start: #f1f8ef;
  --team-portrait-end: #e0edda;
  --team-portrait-accent: rgba(127, 161, 66, .22);
  --team-portrait-orbit: rgba(98, 136, 55, .2);
  --team-portrait-rotate: -8deg;
}
.clinic-team__card:nth-child(4) .clinic-team__portrait {
  --team-portrait-start: #edf5f0;
  --team-portrait-end: #d9e9e1;
  --team-portrait-accent: rgba(33, 119, 95, .22);
  --team-portrait-orbit: rgba(28, 111, 90, .2);
  --team-portrait-rotate: 26deg;
}
.clinic-team__card:nth-child(5) .clinic-team__portrait {
  --team-portrait-start: #f3f8ef;
  --team-portrait-end: #e0edd8;
  --team-portrait-accent: rgba(114, 155, 83, .25);
  --team-portrait-orbit: rgba(82, 127, 60, .2);
  --team-portrait-rotate: -31deg;
}
.clinic-team__portrait-glow {
  position: absolute;
  z-index: 0;
  top: 11%;
  left: 12%;
  width: 74%;
  height: 65%;
  border-radius: 50%;
  background: var(--team-portrait-glow);
  filter: blur(22px);
}
.clinic-team__portrait img {
  position: relative;
  z-index: 1;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: 50% 100%;
  pointer-events: none;
  -webkit-user-drag: none;
  filter: drop-shadow(0 15px 16px rgba(34, 62, 48, .1));
}
.clinic-team__portrait--doctor5 img { transform: translateX(7%); }
.clinic-team__card-body { display: flex; flex: 1 1 auto; flex-direction: column; padding: 23px 27px 25px; background: #fff; }
.clinic-team__card h3 {
  margin: 0 0 4px;
  color: var(--team-ink);
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: clamp(28px, 2.2vw, 34px);
  font-weight: 600;
  letter-spacing: -.035em;
  line-height: 1;
}
.clinic-team__specialty { margin: 0; color: #75a286; font-size: 16px; font-weight: 600; line-height: 1.35; }
.clinic-team__description { max-width: 250px; margin: 18px 0 0; color: var(--team-muted); font-size: 15px; line-height: 1.45; }
.clinic-team__more {
  display: inline-flex;
  align-items: center;
  align-self: flex-start;
  gap: 15px;
  margin-top: auto;
  padding-top: 19px;
  border-bottom: 1px solid #88ab8f;
  color: var(--team-ink);
  font-size: 14px;
  font-weight: 600;
  line-height: 1.8;
  transition: color .25s ease, gap .25s ease;
}
.clinic-team__more span { font-size: 20px; font-weight: 400; line-height: 1; }
.clinic-team__more:hover { color: #6f9d79; gap: 19px; }
.clinic-team__more:focus-visible,
.clinic-team__slider:focus-visible,
.clinic-team__dot:focus-visible,
.clinic-team__arrow:focus-visible { outline: 3px solid rgba(126, 158, 99, .48); outline-offset: 4px; }
.clinic-team__slider:focus-visible { border-radius: 34px; }
.clinic-team__navigation { display: flex; align-items: center; justify-content: center; gap: 12px; }
.clinic-team__dots { display: flex; flex-shrink: 0; gap: 2px; }
.clinic-team__dot { display: grid; place-items: center; width: 40px; height: 40px; padding: 0; border: 0; border-radius: 50%; background: transparent; }
.clinic-team__dot::before { content: ''; width: 7px; height: 7px; border-radius: 9px; background: #c9d9cd; transition: width .5s ease, background .5s ease; }
.clinic-team__dot.is-active::before { width: 24px; background: #58916e; }
.clinic-team__dot:hover::before { background: #75a286; }
.clinic-team__status { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.clinic-team__arrow {
  position: absolute;
  z-index: 8;
  top: 47%;
  display: grid;
  place-items: center;
  width: 62px;
  height: 62px;
  border: 1px solid rgba(117, 156, 127, .17);
  border-radius: 50%;
  color: var(--team-ink);
  background: rgba(244, 249, 244, .92);
  box-shadow: 0 10px 24px rgba(58, 89, 68, .08);
  font-size: 29px;
  font-weight: 300;
  line-height: 1;
  transform: translateY(-50%);
  transition: color .25s ease, background .25s ease, transform .3s ease, box-shadow .3s ease;
}
.clinic-team__arrow:hover { color: #fff; background: #7fa37f; box-shadow: 0 12px 28px rgba(58, 89, 68, .18); }
.clinic-team__arrow--prev { left: -31px; }
.clinic-team__arrow--next { right: -31px; }
.clinic-team__arrow--prev:hover { transform: translate(-2px, -50%); }
.clinic-team__arrow--next:hover { transform: translate(2px, -50%); }
.clinic-team__meta { display: flex; align-items: center; justify-content: flex-end; gap: 22px; margin-top: 8px; padding-right: 12px; color: #8ca19a; }
.clinic-team__pagination { font-size: 16px; letter-spacing: .08em; white-space: nowrap; }
.clinic-team__pagination strong { color: var(--team-ink); font-weight: 600; }
.clinic-team__progress { display: block; width: min(148px, 18vw); height: 3px; overflow: hidden; border-radius: 9px; background: #dce7df; }
.clinic-team__progress span { display: block; width: 33.333%; height: 100%; border-radius: inherit; background: #58916e; transition: width .55s cubic-bezier(.22, 1, .36, 1); }

@media (max-width: 1180px) {
  .clinic-team__inner { gap: 32px; width: min(1160px, calc(100% - 64px)); }
  .clinic-team__slider { --team-card-height: 670px; --team-portrait-height: 410px; --team-spread: clamp(185px, 19vw, 255px); --team-side-scale: .78; }
  .clinic-team__arrow--prev { left: -20px; }
  .clinic-team__arrow--next { right: -20px; }
}
@media (max-width: 900px) {
  .clinic-team { padding: 82px 0 100px; }
  .clinic-team__inner { grid-template-columns: 1fr; width: min(760px, calc(100% - 48px)); gap: 46px; }
  .clinic-team__copy { padding: 0; }
  .clinic-team__badge { margin-bottom: 31px; }
  .clinic-team h2 { font-size: clamp(58px, 10vw, 82px); }
  .clinic-team__lead { max-width: 570px; }
  .clinic-team__slider { --team-card-height: 700px; --team-portrait-height: 440px; --team-spread: clamp(225px, 31vw, 270px); --team-side-scale: .8; width: min(100%, 720px); margin: 0 auto; }
  .clinic-team__card { width: clamp(270px, 42vw, 340px); }
  .clinic-team__arrow--prev { left: 0; }
  .clinic-team__arrow--next { right: 0; }
  .clinic-team__meta { padding-right: 8px; }
}
@media (max-width: 600px) {
  .clinic-team { padding: 64px 0 78px; }
  .clinic-team::before { top: 31%; right: -45%; width: 420px; height: 420px; }
  .clinic-team__inner { width: calc(100% - 40px); gap: 35px; }
  .clinic-team__badge { min-height: 50px; margin-bottom: 27px; padding: 5px 17px 5px 6px; gap: 12px; font-size: 11px; letter-spacing: .03em; }
  .clinic-team__badge-icon { width: 38px; height: 38px; }
  .clinic-team__badge-icon svg { width: 24px; height: 24px; }
  .clinic-team h2 { margin-bottom: 22px; font-size: clamp(51px, 15vw, 72px); line-height: .9; }
  .clinic-team__lead { margin-bottom: 28px; font-size: 16px; }
  .clinic-team__cta { width: min(100%, 320px); min-height: 64px; padding-left: 23px; font-size: 15px; }
  .clinic-team__cta-arrow { width: 46px; height: 46px; }
  .clinic-team__slider { --team-card-height: 630px; --team-portrait-height: 410px; --team-spread: min(360px, calc(100vw - 86px)); --team-side-scale: .88; --team-side-lift: 12px; }
  .clinic-team__stage { padding: 12px 0 22px; }
  .clinic-team__card { width: min(360px, calc(100% - 36px)); border-radius: 28px; }
  .clinic-team__card-body { padding: 20px 23px 22px; }
  .clinic-team__card h3 { font-size: 31px; }
  .clinic-team__specialty { font-size: 15px; }
  .clinic-team__description { margin-top: 13px; font-size: 14px; }
  .clinic-team__more { padding-top: 13px; font-size: 13px; }
  .clinic-team__arrow { top: 45%; width: 52px; height: 52px; font-size: 25px; }
  .clinic-team__arrow--prev { left: -15px; }
  .clinic-team__arrow--next { right: -15px; }
  .clinic-team__meta { margin-top: 1px; padding-right: 4px; }
  .clinic-team__progress { width: 108px; }
}
@media (max-width: 390px) {
  .clinic-team__inner { width: calc(100% - 30px); }
  .clinic-team h2 { font-size: 50px; }
  .clinic-team__slider { --team-card-height: 610px; --team-portrait-height: 390px; }
  .clinic-team__card h3 { font-size: 29px; }
  .clinic-team__arrow--prev { left: -10px; }
  .clinic-team__arrow--next { right: -10px; }
}
@media (prefers-reduced-motion: reduce) {
  .clinic-team__card, .clinic-team__dot::before, .clinic-team__progress span, .clinic-team__arrow, .clinic-team__more, .clinic-team__cta-arrow { transition: none; }
}

/* Единый контейнер страницы: хедер, первый, второй и третий блоки совпадают по краям. */
.nav-wrap,
.photo-hero__content,
.clinic-about__inner,
.clinic-team__inner,
.contacts__inner {
  width: min(1560px, calc(100% - clamp(40px, 9vw, 176px)));
  max-width: none;
}
.nav-wrap,
.photo-hero__content {
  padding-left: 0;
  padding-right: 0;
}

@media (max-width: 1250px) {
  .nav-wrap,
  .photo-hero__content,
  .clinic-about__inner,
  .clinic-team__inner,
  .contacts__inner {
    width: min(1160px, calc(100% - 80px));
  }
}
@media (max-width: 900px) {
  .nav-wrap,
  .photo-hero__content,
  .clinic-about__inner,
  .clinic-team__inner,
  .contacts__inner {
    width: min(760px, calc(100% - 48px));
  }
}
@media (max-width: 790px) {
  .nav-wrap,
  .photo-hero__content {
    padding-left: 0;
    padding-right: 0;
  }
}
@media (max-width: 600px) {
  .nav-wrap,
  .photo-hero__content,
  .clinic-about__inner,
  .clinic-team__inner,
  .contacts__inner {
    width: calc(100% - 40px);
  }
}

/* Навигация остаётся сверху, а якоря прокручиваются с учётом её высоты. */
:root { --site-nav-height: 88px; }
html { scroll-padding-top: var(--site-nav-height); }
.site-header { z-index: 100; padding-top: var(--site-nav-height); }
.nav-wrap {
  position: fixed;
  top: 0;
  right: 0;
  left: 0;
  z-index: 100;
  width: 100%;
  max-width: none;
  min-height: var(--site-nav-height);
  margin: 0;
  padding-right: max(0px, calc((100vw - min(1560px, calc(100vw - clamp(40px, 9vw, 176px)))) / 2));
  padding-left: max(0px, calc((100vw - min(1560px, calc(100vw - clamp(40px, 9vw, 176px)))) / 2));
  background: rgba(247, 247, 240, .94);
  box-shadow: 0 8px 24px rgba(16, 63, 54, .06);
  backdrop-filter: blur(14px) saturate(1.05);
  -webkit-backdrop-filter: blur(14px) saturate(1.05);
}
@media (max-width: 790px) {
  :root { --site-nav-height: 80px; }
  .site-header { padding-top: var(--site-nav-height); }
  .nav-wrap {
    min-height: var(--site-nav-height);
    padding-right: max(0px, calc((100vw - min(760px, calc(100vw - 48px))) / 2));
    padding-left: max(0px, calc((100vw - min(760px, calc(100vw - 48px))) / 2));
  }
  .mobile-menu { position: fixed; top: var(--site-nav-height); }
}
@media (max-width: 1250px) {
  .nav-wrap {
    padding-right: max(0px, calc((100vw - min(1160px, calc(100vw - 80px))) / 2));
    padding-left: max(0px, calc((100vw - min(1160px, calc(100vw - 80px))) / 2));
  }
}
@media (max-width: 900px) {
  .nav-wrap {
    padding-right: max(0px, calc((100vw - min(760px, calc(100vw - 48px))) / 2));
    padding-left: max(0px, calc((100vw - min(760px, calc(100vw - 48px))) / 2));
  }
}
@media (max-width: 600px) {
  .nav-wrap {
    padding-right: 20px;
    padding-left: 20px;
  }
}

/* Hero container override comes after the shared layout rules. */
@media (min-width: 901px) {
  .photo-hero__content {
    width: min(1400px, calc(100% - clamp(80px, 15vw, 250px)));
    max-width: 1400px;
    padding: clamp(56px, 6vw, 92px) 0 clamp(58px, 5.5vw, 82px);
    transform: translateY(clamp(-46px, -3vw, -24px));
  }
}

/* Финальная адаптация шапки и мобильной навигации. */
@media (max-width: 900px) {
  :root { --site-nav-height: 72px; }
  .site-header { padding-top: var(--site-nav-height); }
  .nav-wrap {
    min-height: var(--site-nav-height);
    padding: 0 clamp(16px, 4vw, 30px);
    border-bottom: 1px solid rgba(16,63,54,.1);
    background: rgba(248,250,247,.97);
  }
  .brand { gap: 9px; }
  .brand__mark,
  .brand__mark img { width: 60px; height: 60px; }
  .brand__mark { border-radius: 17px; }
  .brand__name { font-size: clamp(18px, 2.8vw, 22px); line-height: .9; }
  .desktop-nav,
  .nav-actions .button--small,
  .nav-phone { display: none; }
  .nav-actions { margin-left: auto; gap: 8px; }
  .menu-toggle {
    position: relative;
    display: grid;
    place-content: center;
    gap: 5px;
    width: 48px;
    height: 48px;
    padding: 0;
    border: 1px solid rgba(16,63,54,.18);
    border-radius: 50%;
    outline: 0;
    background: #edf3eb;
    box-shadow: 0 5px 14px rgba(16,63,54,.09);
    transition: color .2s ease, background-color .2s ease, border-color .2s ease, transform .2s ease, box-shadow .2s ease;
  }
  .menu-toggle:hover { border-color: rgba(16,63,54,.32); background: #e5eee5; transform: translateY(-1px); }
  .menu-toggle:focus-visible { outline: 3px solid rgba(106,155,125,.35); outline-offset: 3px; }
  .menu-toggle span {
    display: block;
    width: 19px;
    height: 1.5px;
    margin: 0;
    border-radius: 99px;
    background: var(--ink);
    transform-origin: center;
    transition: transform .25s cubic-bezier(.22,1,.36,1), background-color .2s ease;
  }
  .menu-toggle.is-open { border-color: #125448; background: #125448; box-shadow: 0 7px 18px rgba(16,63,54,.2); }
  .menu-toggle.is-open span { background: #f4f8ed; }
  .menu-toggle.is-open span:first-child { transform: translateY(3.25px) rotate(45deg); }
  .menu-toggle.is-open span:last-child { transform: translateY(-3.25px) rotate(-45deg); }
  .mobile-menu {
    position: fixed;
    top: calc(var(--site-nav-height) + 10px);
    left: 50%;
    right: auto;
    z-index: 110;
    display: grid;
    gap: 20px;
    width: min(calc(100% - 24px), 620px);
    max-height: calc(100dvh - var(--site-nav-height) - 24px);
    overflow-y: auto;
    padding: 22px clamp(20px, 5vw, 30px) 22px;
    border: 1px solid rgba(16,63,54,.1);
    border-radius: 24px;
    background: #f8faf7;
    box-shadow: 0 22px 60px rgba(16,63,54,.2), 0 2px 8px rgba(16,63,54,.08);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translate(-50%, -12px) scale(.985);
    transform-origin: top center;
    transition: opacity .22s ease, visibility .22s ease, transform .28s cubic-bezier(.22,1,.36,1);
  }
  .mobile-menu::before {
    content: '';
    position: absolute;
    top: 0;
    right: 24px;
    left: 24px;
    height: 3px;
    border-radius: 0 0 99px 99px;
    background: linear-gradient(90deg, #b7cd9b, #3e7b67);
  }
  .mobile-menu.is-open { opacity: 1; visibility: visible; pointer-events: auto; transform: translate(-50%, 0) scale(1); }
  .mobile-menu nav { display: grid; gap: 0; }
  .mobile-menu nav a {
    display: flex;
    align-items: center;
    min-height: 50px;
    padding: 8px 0;
    border-bottom: 1px solid rgba(16,63,54,.1);
    color: var(--ink);
    font-family: var(--serif);
    font-size: clamp(21px, 4vw, 25px);
    line-height: 1;
    transition: color .2s ease, padding-left .2s ease;
  }
  .mobile-menu nav a:first-child { padding-top: 5px; }
  .mobile-menu nav a:last-child { border-bottom: 0; }
  .mobile-menu nav a:hover,
  .mobile-menu nav a:focus-visible { padding-left: 5px; color: var(--accent-deep); }
  .mobile-menu nav a:focus-visible { outline: 0; }
  .mobile-menu__phone {
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: 44px;
    padding: 13px 0 0;
    border-top: 1px solid rgba(16,63,54,.12);
    color: var(--ink);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .01em;
  }
  .mobile-menu__phone .phone-icon { flex-basis: 30px; width: 30px; height: 30px; margin: 0; }
  .mobile-menu__phone > span:last-child { margin-left: 0; color: var(--ink); }
  .mobile-menu .button { width: 100%; min-height: 58px; padding: 0 20px; font-size: 14px; }
  .mobile-menu .button__tooth { width: 27px; height: 27px; }
  body.mobile-menu-open { overflow: hidden; }

  .booking-dialog {
    width: min(680px, calc(100% - 28px));
    height: fit-content;
    min-height: 0;
    max-height: calc(100dvh - 28px);
    border-radius: 28px;
    overflow: auto;
  }
  .booking-dialog__layout { display: flex; flex-direction: column; height: auto; min-height: 0; }
  .booking-dialog__visual { order: -1; min-height: 230px; height: 230px; flex: 0 0 230px; }
  .booking-dialog__visual-copy { right: 28px; bottom: 24px; left: 28px; gap: 8px; }
  .booking-dialog__visual-copy strong { font-size: clamp(34px, 7vw, 48px); }
  .booking-dialog__form-pane { justify-content: flex-start; overflow: visible; padding: 40px clamp(28px, 6vw, 50px) 34px; }
  .booking-dialog h2 { font-size: clamp(42px, 7vw, 55px); }
}

@media (max-width: 1120px) and (min-width: 901px) {
  .nav-phone { display: none; }
}

@media (max-width: 480px) {
  .nav-wrap { padding-right: 16px; padding-left: 16px; }
  .brand { gap: 7px; }
  .brand__mark,
  .brand__mark img { width: 54px; height: 54px; }
  .brand__name { font-size: 18px; }
  .menu-toggle { width: 44px; height: 44px; }
  .mobile-menu { top: calc(var(--site-nav-height) + 8px); width: calc(100% - 24px); gap: 17px; padding: 20px 20px 18px; border-radius: 21px; }
  .mobile-menu nav a { min-height: 46px; font-size: 22px; }
  .mobile-menu__phone { font-size: 11px; }
  .booking-dialog { width: min(620px, calc(100% - 24px)); height: fit-content; max-height: calc(100dvh - 24px); border-radius: 25px; }
  .booking-dialog__visual { min-height: 150px; height: 150px; flex-basis: 150px; }
  .booking-dialog__visual-copy { right: 22px; bottom: 20px; left: 22px; gap: 6px; }
  .booking-dialog__visual-copy strong { font-size: 31px; }
  .booking-dialog__visual-address { font-size: 11px; }
  .booking-dialog__form-pane { padding: 30px 23px 26px; }
  .booking-dialog h2 { font-size: 37px; }
  .dialog-lead { margin-bottom: 20px; font-size: 12px; }
  .booking-form { gap: 10px; }
  .booking-form__submit { min-height: 58px; }
}

@media (max-width: 360px) {
  .booking-dialog__visual { min-height: 132px; height: 132px; flex-basis: 132px; }
  .booking-dialog__form-pane { padding: 26px 18px 22px; }
  .booking-dialog h2 { font-size: 33px; }
  .booking-field input { min-height: 49px; padding: 0 14px; }
  .booking-consent { gap: 8px; font-size: 10px; }
  .booking-form__submit { min-height: 54px; font-size: 14px; }
}
