/* ==========================================================================
   Altea Clinic — дизайн-система
   ========================================================================== */

:root {
	--bg: #f6f4ef;
	--surface: #ffffff;
	--sand: #eeeae2;
	--sand-2: #e6e1d6;
	--ink: #0e2233;
	--ink-2: #344555;
	--muted: #66727f;
	--line: #e2ddd3;
	--line-strong: #cfc8bb;
	--accent: #2c7a72;
	--accent-ink: #1d5a54;
	--accent-soft: #dcebe7;
	--accent-tint: #edf5f3;
	--warm: #b88a5a;
	--danger: #b4473a;
	--danger-soft: #f8e9e6;
	--ok: #2b7a52;
	--ok-soft: #e3f1e9;

	--font: "Onest", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
	--r-xs: 6px;
	--r-sm: 10px;
	--r: 14px;
	--r-lg: 22px;
	--sh-1: 0 1px 2px rgba(14, 34, 51, .04), 0 6px 20px -8px rgba(14, 34, 51, .08);
	--sh-2: 0 24px 60px -24px rgba(14, 34, 51, .28);
	--ease: cubic-bezier(.2, .7, .2, 1);
	--container: 1320px;
	--gutter: clamp(16px, 3.2vw, 40px);
	--section: clamp(72px, 9vw, 132px);
	--header-h: 76px;
}

*, *::before, *::after { box-sizing: border-box; }

html {
	-webkit-text-size-adjust: 100%;
	scroll-behavior: smooth;
	scroll-padding-top: calc(var(--header-h) + 16px);
}

@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	*, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

body {
	margin: 0;
	background: var(--bg);
	color: var(--ink);
	font: 400 16px/1.6 var(--font);
	font-feature-settings: "ss01", "cv11";
	-webkit-font-smoothing: antialiased;
	text-rendering: optimizeLegibility;
	overflow-x: hidden;
}

body.is-locked { overflow: hidden; }

img, svg, video, iframe { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 3px; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
ul, ol { padding: 0; margin: 0; list-style: none; }
p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }
h1, h2, h3, h4 { margin: 0; font-weight: 600; letter-spacing: -.025em; line-height: 1.12; text-wrap: balance; }
h1, h2, h3, h4, .price-row__title, .svc__title { overflow-wrap: break-word; -webkit-hyphens: auto; hyphens: auto; }

:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }

.screen-reader-text, .sr-only {
	position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden;
	clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}

.skip-link {
	position: absolute; left: 16px; top: -60px; z-index: 200; background: var(--ink); color: #fff;
	padding: 10px 16px; border-radius: var(--r-sm); text-decoration: none; transition: top .2s;
}
.skip-link:focus { top: 12px; }

/* ---------- Типографика ---------- */

.h1, h1 { font-size: clamp(2.35rem, 1.4rem + 3.6vw, 4.5rem); letter-spacing: -.04em; line-height: 1.02; }
.h2, h2 { font-size: clamp(1.9rem, 1.3rem + 2.2vw, 3.1rem); letter-spacing: -.035em; line-height: 1.06; }
.h3, h3 { font-size: clamp(1.2rem, 1.05rem + .5vw, 1.45rem); letter-spacing: -.02em; }
.h4 { font-size: 1.08rem; letter-spacing: -.01em; }

.lead { font-size: clamp(1.05rem, 1rem + .3vw, 1.25rem); line-height: 1.55; color: var(--ink-2); max-width: 46ch; }
.muted { color: var(--muted); }
.small { font-size: .875rem; }

.eyebrow {
	display: inline-flex; align-items: center; gap: 10px;
	font-size: .78rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--accent-ink);
	margin-bottom: 20px;
}
.eyebrow::before { content: ""; width: 18px; height: 1.5px; background: currentColor; }
.eyebrow--light { color: #9fd3cb; }

.prose { color: var(--ink-2); font-size: 1.04rem; line-height: 1.7; max-width: 72ch; }
.prose h2 { font-size: clamp(1.5rem, 1.2rem + 1vw, 2rem); margin: 1.6em 0 .6em; color: var(--ink); }
.prose h3 { margin: 1.4em 0 .5em; color: var(--ink); }
.prose ul { margin: 0 0 1em; display: grid; gap: 8px; }
.prose ul li { position: relative; padding-left: 22px; }
.prose ul li::before { content: ""; position: absolute; left: 4px; top: .7em; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); }
.prose a { color: var(--accent-ink); }
.prose strong { color: var(--ink); font-weight: 600; }

/* ---------- Сетка ---------- */

.container { width: 100%; max-width: calc(var(--container) + var(--gutter) * 2); margin: 0 auto; padding: 0 var(--gutter); }
.section { padding: var(--section) 0; }
.section--tight { padding: clamp(48px, 6vw, 80px) 0; }
.section--sand { background: var(--sand); }
.section--white { background: var(--surface); }
.section--ink { background: var(--ink); color: #e9eef2; }
.section--ink .muted { color: #9aaab8; }

.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 32px; margin-bottom: clamp(36px, 4.5vw, 64px); }
.section-head__text { max-width: 760px; }
.section-head__text .lead { margin-top: 18px; }
.section-head .btn { flex-shrink: 0; }

/* ---------- Кнопки ---------- */

.btn {
	--btn-bg: var(--ink); --btn-fg: #fff; --btn-bd: var(--ink);
	display: inline-flex; align-items: center; justify-content: center; gap: 10px;
	min-height: 52px; padding: 0 24px; border-radius: 12px;
	background: var(--btn-bg); color: var(--btn-fg); border: 1px solid var(--btn-bd);
	font-weight: 500; font-size: .98rem; line-height: 1; text-decoration: none; white-space: nowrap;
	transition: background .25s var(--ease), color .25s var(--ease), border-color .25s var(--ease), transform .25s var(--ease), box-shadow .25s var(--ease);
	-webkit-tap-highlight-color: transparent;
}
.btn .icon { transition: transform .3s var(--ease); flex-shrink: 0; }
.btn:hover .icon-shift { transform: translateX(3px); }
.btn:active { transform: translateY(1px); }
.btn--primary:hover { --btn-bg: #183a52; --btn-bd: #183a52; box-shadow: 0 10px 24px -12px rgba(14, 34, 51, .6); }
.btn--accent { --btn-bg: var(--accent); --btn-bd: var(--accent); }
.btn--accent:hover { --btn-bg: var(--accent-ink); --btn-bd: var(--accent-ink); }
.btn--ghost { --btn-bg: transparent; --btn-fg: var(--ink); --btn-bd: var(--line-strong); }
.btn--ghost:hover { --btn-bd: var(--ink); --btn-bg: var(--surface); }
.btn--light { --btn-bg: #fff; --btn-fg: var(--ink); --btn-bd: #fff; }
.btn--light:hover { --btn-bg: var(--accent-soft); --btn-bd: var(--accent-soft); }
.btn--outline-light { --btn-bg: transparent; --btn-fg: #fff; --btn-bd: rgba(255, 255, 255, .3); }
.btn--outline-light:hover { --btn-bd: #fff; }
.btn--soft { --btn-bg: var(--accent-soft); --btn-fg: var(--accent-ink); --btn-bd: var(--accent-soft); }
.btn--soft:hover { --btn-bg: #cbe2dc; --btn-bd: #cbe2dc; }
.btn--sm { min-height: 42px; padding: 0 16px; font-size: .92rem; border-radius: 10px; }
.btn--lg { min-height: 60px; padding: 0 30px; font-size: 1.05rem; }
.btn--block { width: 100%; }
.btn--icon { width: 44px; min-height: 44px; padding: 0; border-radius: 10px; }
.btn[disabled], .btn.is-loading { opacity: .65; pointer-events: none; }
.btn.is-loading::after {
	content: ""; width: 16px; height: 16px; border-radius: 50%; border: 2px solid currentColor; border-right-color: transparent;
	animation: spin .7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

.link-arrow {
	display: inline-flex; align-items: center; gap: 8px; font-weight: 500; text-decoration: none; color: var(--ink);
	background: none; border: 0; padding: 0;
}
.link-arrow .icon { transition: transform .3s var(--ease); }
.link-arrow:hover .icon { transform: translateX(4px); }
.link-arrow:hover { color: var(--accent-ink); }

.chip {
	display: inline-flex; align-items: center; gap: 6px; padding: 7px 13px; border-radius: 999px;
	background: var(--surface); border: 1px solid var(--line); font-size: .88rem; color: var(--ink-2);
	text-decoration: none; white-space: nowrap; transition: border-color .2s, background .2s, color .2s;
}
a.chip:hover, button.chip:hover { border-color: var(--ink); color: var(--ink); }
.chip.is-active { background: var(--ink); border-color: var(--ink); color: #fff; }
.chip__count { color: var(--muted); font-size: .8em; }
.chip.is-active .chip__count { color: #a9b8c5; }

.tag {
	display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: var(--r-xs);
	background: var(--accent-tint); color: var(--accent-ink); font-size: .8rem; font-weight: 500;
}

/* ---------- Шапка ---------- */

.topbar { background: var(--ink); color: #c4d0da; font-size: .84rem; }
.topbar__inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 40px; }
.topbar__info, .topbar__links { display: flex; align-items: center; gap: 22px; }
.topbar__info span, .topbar a { display: inline-flex; align-items: center; gap: 7px; }
.topbar a { text-decoration: none; color: #e6ecf1; transition: color .2s; }
.topbar a:hover { color: #9fd3cb; }

.site-header {
	position: sticky; top: 0; z-index: 60; background: rgba(246, 244, 239, .86);
	border-bottom: 1px solid transparent; transition: border-color .3s, box-shadow .3s, background .3s;
}
.site-header::before {
	content: ""; position: absolute; inset: 0; z-index: -1;
	-webkit-backdrop-filter: saturate(160%) blur(14px); backdrop-filter: saturate(160%) blur(14px);
}
.site-header.is-scrolled { border-color: var(--line); background: rgba(246, 244, 239, .94); box-shadow: 0 8px 30px -20px rgba(14, 34, 51, .3); }
.header__inner { display: flex; align-items: center; gap: 28px; height: var(--header-h); }

.logo { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; color: var(--ink); flex-shrink: 0; }
.logo__mark {
	width: 40px; height: 40px; border-radius: 11px; background: var(--ink); color: #fff;
	display: grid; place-items: center; position: relative; overflow: hidden;
}
.logo__mark::after { content: ""; position: absolute; width: 18px; height: 18px; border-radius: 50%; background: var(--accent); right: -6px; bottom: -6px; }
.logo__mark svg { position: relative; z-index: 1; }
.logo__text { display: flex; flex-direction: column; line-height: 1.05; }
.logo__name { font-weight: 600; font-size: 1.28rem; letter-spacing: -.03em; }
.logo__tag { font-size: .72rem; color: var(--muted); letter-spacing: .02em; margin-top: 3px; }
.logo--light { color: #fff; }
.logo--light .logo__mark { background: #fff; color: var(--ink); }
.logo--light .logo__tag { color: #9aaab8; }

.nav { display: flex; align-items: center; gap: 4px; margin-left: 8px; }
.nav__link {
	display: inline-flex; align-items: center; gap: 6px; padding: 10px 14px; border-radius: 10px;
	text-decoration: none; font-weight: 500; font-size: .96rem; color: var(--ink-2); background: none; border: 0;
	transition: color .2s, background .2s;
}
.nav__link:hover, .nav__link.is-current, .nav__item.is-open > .nav__link { color: var(--ink); background: rgba(14, 34, 51, .05); }
.nav__link .icon { transition: transform .3s var(--ease); }
.nav__item.is-open > .nav__link .icon { transform: rotate(180deg); }
.nav__link--catalog { background: var(--ink); color: #fff; padding: 10px 16px; }
.nav__link--catalog:hover, .nav__item.is-open > .nav__link--catalog { background: #183a52; color: #fff; }

.header__actions { display: flex; align-items: center; gap: 14px; margin-left: auto; }
.header__search {
	width: 44px; height: 44px; border-radius: 12px; border: 1px solid var(--line); background: var(--surface);
	display: grid; place-items: center; color: var(--ink); transition: border-color .2s;
}
.header__search:hover { border-color: var(--ink); }
.header__phone { display: flex; flex-direction: column; text-decoration: none; line-height: 1.2; }
.header__phone strong { font-weight: 600; font-size: 1.02rem; letter-spacing: -.01em; white-space: nowrap; }
.header__phone span { font-size: .76rem; color: var(--muted); }
.header__burger { display: none; }
.header__call { display: none; }

/* Мегаменю */
.mega {
	position: absolute; left: 0; right: 0; top: 100%; padding: 0 var(--gutter);
	opacity: 0; visibility: hidden; transform: translateY(-6px);
	transition: opacity .25s var(--ease), transform .25s var(--ease), visibility 0s .25s;
}
.nav__item.is-open .mega { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
.mega__panel {
	max-width: var(--container); margin: 10px auto 0; background: var(--surface); border: 1px solid var(--line);
	border-radius: var(--r-lg); box-shadow: var(--sh-2); display: grid; grid-template-columns: 300px 1fr 280px; overflow: hidden;
	max-height: calc(100vh - var(--header-h) - 70px);
}
.mega__cats { padding: 14px; border-right: 1px solid var(--line); background: #fbfaf7; overflow-y: auto; }
.mega__cat {
	display: flex; align-items: center; gap: 12px; width: 100%; padding: 10px 12px; border-radius: 10px;
	text-decoration: none; color: var(--ink-2); font-weight: 500; font-size: .95rem; border: 0; background: none; text-align: left;
}
.mega__cat .icon { color: var(--accent); flex-shrink: 0; }
.mega__cat .mega__count { margin-left: auto; font-size: .8rem; color: var(--muted); font-weight: 400; }
.mega__cat.is-active, .mega__cat:hover { background: var(--surface); color: var(--ink); box-shadow: var(--sh-1); }
.mega__body { padding: 28px 32px; overflow-y: auto; }
.mega__pane { display: none; }
.mega__pane.is-active { display: block; animation: fadeIn .3s var(--ease); }
@keyframes fadeIn { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }
.mega__title { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin-bottom: 6px; }
.mega__title h3 { font-size: 1.35rem; }
.mega__desc { color: var(--muted); font-size: .92rem; margin-bottom: 20px; max-width: 54ch; }
.mega__list { display: grid; grid-template-columns: 1fr 1fr; gap: 2px 24px; }
.mega__list a {
	display: flex; justify-content: space-between; gap: 12px; padding: 9px 0; border-bottom: 1px solid var(--line);
	text-decoration: none; font-size: .93rem; color: var(--ink-2); transition: color .2s;
}
.mega__list a:hover { color: var(--accent-ink); }
.mega__list a span:last-child { color: var(--muted); white-space: nowrap; font-size: .85rem; }
.mega__all { margin-top: 20px; }
.mega__aside { background: var(--accent-tint); padding: 28px; display: flex; flex-direction: column; gap: 14px; }
.mega__aside h4 { font-size: 1.1rem; }
.mega__aside p { font-size: .9rem; color: var(--ink-2); }
.mega__aside .btn { margin-top: auto; }

/* Мобильное меню */
.mobile-menu {
	position: fixed; inset: 0; z-index: 90; background: var(--bg); display: flex; flex-direction: column;
	opacity: 0; transform: translateY(12px); visibility: hidden;
	transition: opacity .3s var(--ease), transform .35s var(--ease), visibility 0s .35s;
}
.mobile-menu.is-open { opacity: 1; transform: none; visibility: visible; transition-delay: 0s; }
.mobile-menu__head { display: flex; align-items: center; justify-content: space-between; height: 68px; padding: 0 var(--gutter); border-bottom: 1px solid var(--line); flex-shrink: 0; }
.mobile-menu__body { flex: 1; overflow-y: auto; padding: 20px var(--gutter) 32px; -webkit-overflow-scrolling: touch; }
.mobile-menu__search { margin-bottom: 20px; }
.mobile-menu__group { border-bottom: 1px solid var(--line); }
.mobile-menu__toggle, .mobile-menu__link {
	display: flex; align-items: center; justify-content: space-between; width: 100%; padding: 16px 0;
	background: none; border: 0; font-size: 1.15rem; font-weight: 500; text-decoration: none; color: var(--ink); text-align: left;
}
.mobile-menu__toggle .icon { transition: transform .3s var(--ease); }
.mobile-menu__toggle[aria-expanded="true"] .icon { transform: rotate(180deg); }
.mobile-menu__sub { display: grid; gap: 2px; padding: 0 0 14px; }
.mobile-menu__sub[hidden] { display: none; }
.mobile-menu__sub a { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 10px; text-decoration: none; color: var(--ink-2); }
.mobile-menu__sub a .icon { color: var(--accent); }
.mobile-menu__sub a:active { background: var(--surface); }
.mobile-menu__foot { padding: 16px var(--gutter) calc(16px + env(safe-area-inset-bottom)); border-top: 1px solid var(--line); display: grid; gap: 10px; background: var(--surface); }
.mobile-menu__phone { font-size: 1.3rem; font-weight: 600; text-decoration: none; display: flex; align-items: center; gap: 10px; }

/* Мобильная панель снизу */
.quickbar {
	display: none; position: fixed; left: 0; right: 0; bottom: 0; z-index: 50;
	padding: 10px 12px calc(10px + env(safe-area-inset-bottom)); background: rgba(255, 255, 255, .96);
	border-top: 1px solid var(--line); gap: 8px; grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr);
	transform: translateY(110%); transition: transform .35s var(--ease);
}
.quickbar.is-visible { transform: none; }
.quickbar .btn { min-height: 48px; padding: 0 12px; gap: 8px; }

/* ---------- Поля форм ---------- */

.field { display: grid; gap: 7px; position: relative; }
.field__label { font-size: .86rem; font-weight: 500; color: var(--ink-2); }
.field__label i { font-style: normal; color: var(--danger); }
.input, .select, .textarea {
	width: 100%; min-height: 54px; padding: 0 16px; border-radius: 12px; border: 1px solid var(--line-strong);
	background: var(--surface); font-size: 1rem; color: var(--ink); transition: border-color .2s, box-shadow .2s; appearance: none;
}
.textarea { min-height: 110px; padding: 14px 16px; resize: vertical; }
.select {
	padding-right: 44px; cursor: pointer;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 24 24' fill='none' stroke='%2366727f' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
	background-repeat: no-repeat; background-position: right 16px center;
}
.input::placeholder, .textarea::placeholder { color: #9aa3ad; }
.input:hover, .select:hover, .textarea:hover { border-color: var(--muted); }
.input:focus, .select:focus, .textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px rgba(44, 122, 114, .14); }
.field.has-error .input, .field.has-error .select, .field.has-error .textarea { border-color: var(--danger); box-shadow: 0 0 0 4px rgba(180, 71, 58, .1); }
.field__error { font-size: .82rem; color: var(--danger); display: none; align-items: center; gap: 6px; }
.field.has-error .field__error { display: flex; }
.field__hint { font-size: .8rem; color: var(--muted); }

.check { display: flex; gap: 12px; align-items: flex-start; font-size: .86rem; line-height: 1.45; color: var(--ink-2); cursor: pointer; }
.check input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.check__box {
	flex-shrink: 0; width: 22px; height: 22px; border-radius: 7px; border: 1.5px solid var(--line-strong); background: var(--surface);
	display: grid; place-items: center; color: transparent; transition: background .2s, border-color .2s, color .2s; margin-top: -1px;
}
.check input:checked + .check__box { background: var(--accent); border-color: var(--accent); color: #fff; }
.check input:focus-visible + .check__box { outline: 2px solid var(--accent); outline-offset: 2px; }
.check a { color: var(--accent-ink); }
.field.has-error .check__box { border-color: var(--danger); }

.form { display: grid; gap: 16px; }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form__hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form__note { font-size: .8rem; color: var(--muted); }
.form__alert { display: none; padding: 12px 14px; border-radius: 10px; background: var(--danger-soft); color: var(--danger); font-size: .9rem; }
.form__alert.is-visible { display: block; }

.form-success { display: none; text-align: center; padding: 24px 8px; }
.form-success__icon { width: 64px; height: 64px; border-radius: 50%; background: var(--ok-soft); color: var(--ok); display: grid; place-items: center; margin: 0 auto 18px; }
.form-success h3 { margin-bottom: 10px; }
.form-success p { color: var(--muted); max-width: 40ch; margin: 0 auto 20px; }
.is-sent .form { display: none; }
.is-sent .form-success { display: block; animation: fadeIn .4s var(--ease); }

.search-field { position: relative; }
.search-field .icon { position: absolute; left: 18px; top: 50%; transform: translateY(-50%); color: var(--muted); pointer-events: none; }
.search-field .input { padding-left: 50px; }
.search-field__clear {
	position: absolute; right: 10px; top: 50%; transform: translateY(-50%); width: 34px; height: 34px;
	display: none; place-items: center; border: 0; background: var(--sand); border-radius: 8px; color: var(--ink-2);
}
.search-field.has-value .search-field__clear { display: grid; }

/* ---------- Модальные окна ---------- */

.modal { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; padding: 20px; visibility: hidden; }
.modal.is-open { visibility: visible; }
.modal__backdrop { position: absolute; inset: 0; background: rgba(14, 34, 51, .45); opacity: 0; transition: opacity .3s var(--ease); }
.modal.is-open .modal__backdrop { opacity: 1; }
.modal__dialog {
	position: relative; width: 100%; max-width: 520px; max-height: calc(100vh - 40px); overflow-y: auto;
	background: var(--surface); border-radius: var(--r-lg); padding: clamp(24px, 4vw, 40px); box-shadow: var(--sh-2);
	opacity: 0; transform: translateY(16px) scale(.98); transition: opacity .3s var(--ease), transform .35s var(--ease);
}
.modal.is-open .modal__dialog { opacity: 1; transform: none; }
.modal__close {
	position: absolute; top: 16px; right: 16px; width: 40px; height: 40px; border-radius: 10px; border: 0;
	background: var(--sand); display: grid; place-items: center; color: var(--ink); transition: background .2s;
}
.modal__close:hover { background: var(--sand-2); }
.modal__title { font-size: 1.6rem; margin: 0 48px 8px 0; }
.modal__sub { color: var(--muted); margin-bottom: 24px; font-size: .95rem; }

.modal--search { place-items: start center; padding-top: 10vh; }
.modal--search .modal__dialog { max-width: 720px; padding: 20px; }
.search-results { margin-top: 12px; max-height: 56vh; overflow-y: auto; }
.search-results a {
	display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 12px 14px; border-radius: 10px;
	text-decoration: none; color: var(--ink);
}
.search-results a:hover, .search-results a.is-active { background: var(--accent-tint); }
.search-results small { display: block; color: var(--muted); font-size: .8rem; }
.search-results .price { color: var(--ink-2); font-size: .9rem; white-space: nowrap; }
.search-results__empty { padding: 20px 14px; color: var(--muted); }
.search-results mark { background: none; color: var(--accent-ink); font-weight: 600; }

/* Уведомления */
.toasts { position: fixed; z-index: 120; right: 20px; bottom: 20px; display: grid; gap: 10px; max-width: min(400px, calc(100vw - 40px)); }
.toast {
	display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; border-radius: 14px; background: var(--ink); color: #fff;
	box-shadow: var(--sh-2); font-size: .92rem; animation: toastIn .4s var(--ease);
}
.toast .icon { flex-shrink: 0; color: #9fd3cb; margin-top: 1px; }
.toast--error .icon { color: #f2a99f; }
.toast.is-leaving { animation: toastOut .3s var(--ease) forwards; }
@keyframes toastIn { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
@keyframes toastOut { to { opacity: 0; transform: translateY(8px); } }

/* ---------- Анимации появления ---------- */

.reveal { opacity: 0; transform: translateY(22px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.reveal.is-in { opacity: 1; transform: none; }
.reveal-d1 { transition-delay: .08s; }
.reveal-d2 { transition-delay: .16s; }
.reveal-d3 { transition-delay: .24s; }
.no-js .reveal { opacity: 1; transform: none; }

/* ==========================================================================
   Главная
   ========================================================================== */

/* Hero */
.hero { padding: clamp(28px, 4vw, 56px) 0 clamp(64px, 8vw, 112px); }
.hero__grid { display: grid; grid-template-columns: minmax(0, 1.02fr) minmax(0, 1fr); gap: clamp(32px, 5vw, 80px); align-items: center; }
.hero__title { margin-bottom: 24px; }
.hero__title em { font-style: normal; color: var(--accent); }
.hero__lead { margin-bottom: 36px; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 48px; }
.hero__facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; border-top: 1px solid var(--line); }
.hero__fact { padding: 20px 20px 0 0; display: grid; gap: 10px; align-content: start; font-size: .9rem; line-height: 1.4; color: var(--ink-2); }
.hero__fact + .hero__fact { padding-left: 20px; border-left: 1px solid var(--line); }
.hero__fact .icon { color: var(--accent); }
.hero__fact strong { display: block; color: var(--ink); font-weight: 600; font-size: .98rem; }

.hero__media { position: relative; }
.hero__photo { border-radius: var(--r-lg); overflow: hidden; aspect-ratio: 4 / 4.3; background: var(--sand); }
.hero__photo img { width: 100%; height: 100%; object-fit: cover; object-position: 55% center; }
.hero__finder {
	position: absolute; left: -48px; right: 40px; bottom: -36px; background: var(--surface); border-radius: var(--r);
	padding: 20px; box-shadow: var(--sh-2); border: 1px solid var(--line);
}
.hero__finder-label { font-weight: 600; font-size: .95rem; margin-bottom: 12px; display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.hero__finder-label a { font-weight: 500; font-size: .85rem; color: var(--accent-ink); text-decoration: none; }
.hero__finder .search-field .input { background: var(--bg); border-color: var(--line); min-height: 52px; }
.hero__finder-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
.hero__finder-tags .chip { padding: 5px 11px; font-size: .82rem; background: var(--bg); }
.hero__badge {
	position: absolute; top: 24px; right: 24px; background: rgba(255, 255, 255, .92); border-radius: 12px; padding: 12px 14px;
	display: flex; gap: 10px; align-items: center; font-size: .84rem; line-height: 1.3; box-shadow: var(--sh-1); max-width: 250px;
	-webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
}
.hero__badge .icon { color: var(--accent); flex-shrink: 0; }
.finder-dropdown {
	position: absolute; left: 0; right: 0; top: calc(100% + 8px); background: var(--surface); border-radius: 12px; border: 1px solid var(--line);
	box-shadow: var(--sh-2); padding: 6px; z-index: 5; display: none; max-height: 320px; overflow-y: auto;
}
.finder-dropdown.is-open { display: block; }

/* Направления — bento */
.bento { display: grid; grid-template-columns: repeat(12, 1fr); grid-auto-rows: auto; gap: 16px; }
.bento > .tile:not(.tile--row) { min-height: 260px; }
.tile {
	position: relative; border-radius: var(--r-lg); overflow: hidden; text-decoration: none; color: var(--ink);
	display: flex; flex-direction: column; padding: 26px; background: var(--surface); border: 1px solid var(--line);
	transition: transform .5s var(--ease), box-shadow .5s var(--ease), border-color .3s;
	isolation: isolate;
}
.tile:hover { transform: translateY(-3px); box-shadow: var(--sh-2); border-color: transparent; }
.tile__icon { width: 48px; height: 48px; border-radius: 12px; background: var(--accent-tint); color: var(--accent-ink); display: grid; place-items: center; margin-bottom: auto; }
.tile__title { font-size: 1.32rem; letter-spacing: -.02em; margin-top: 28px; font-weight: 600; line-height: 1.15; }
.tile__text { font-size: .9rem; color: var(--muted); margin-top: 8px; max-width: 36ch; }
.tile__meta { display: flex; align-items: center; justify-content: space-between; margin-top: 18px; font-size: .86rem; color: var(--ink-2); }
.tile__arrow {
	width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line-strong); display: grid; place-items: center;
	transition: background .3s, color .3s, border-color .3s, transform .4s var(--ease);
}
.tile:hover .tile__arrow { background: var(--ink); color: #fff; border-color: var(--ink); transform: rotate(-45deg); }
.tile--photo { color: #fff; border: 0; justify-content: flex-end; min-height: 280px; }
.tile--photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transition: transform 1.2s var(--ease); }
.tile--photo::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(14, 34, 51, .05) 0%, rgba(14, 34, 51, .2) 35%, rgba(14, 34, 51, .86) 100%); }
.tile--photo:hover img { transform: scale(1.04); }
.tile--photo .tile__text { color: rgba(255, 255, 255, .86); }
.tile--photo .tile__title, .tile--photo .tile__text { text-shadow: 0 1px 12px rgba(14, 34, 51, .35); }
.tile--photo .tile__meta { color: rgba(255, 255, 255, .85); }
.tile--photo .tile__arrow { border-color: rgba(255, 255, 255, .45); }
.tile--photo:hover .tile__arrow { background: #fff; color: var(--ink); border-color: #fff; }
.tile--photo .tile__badge { position: absolute; top: 22px; left: 22px; background: rgba(255, 255, 255, .92); color: var(--ink); }
.tile--tint { background: var(--accent-soft); border-color: var(--accent-soft); }
.tile--tint .tile__icon { background: #fff; }
.tile--ink { background: var(--ink); border-color: var(--ink); color: #fff; }
.tile--ink .tile__icon { background: rgba(255, 255, 255, .08); color: #9fd3cb; }
.tile--ink .tile__text, .tile--ink .tile__meta { color: #b7c4cf; }
.tile--ink .tile__arrow { border-color: rgba(255, 255, 255, .25); }
.tile--ink:hover .tile__arrow { background: #fff; color: var(--ink); }
.tile--row { flex-direction: row; align-items: center; gap: 18px; padding: 22px 24px; min-height: 0; }
.tile--row .tile__icon { margin: 0; flex-shrink: 0; }
.tile--row .tile__title { margin: 0; font-size: 1.12rem; }
.tile--row .tile__text { margin-top: 2px; font-size: .84rem; }
.tile--row .tile__arrow { margin-left: auto; flex-shrink: 0; }
.bento .span-6 { grid-column: span 6; }
.bento .span-3 { grid-column: span 3; }
.bento .span-4 { grid-column: span 4; }
.bento .row-2 { grid-row: span 2; }
.bento .tile--row { grid-row: auto; }
.bento__more { grid-column: 1 / -1; display: flex; justify-content: center; margin-top: 16px; }

/* Популярные — прайс-лист */
.tabs { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; padding-bottom: 4px; margin-bottom: 28px; -webkit-overflow-scrolling: touch; }
.tabs::-webkit-scrollbar { display: none; }
.pricelist { border-top: 1px solid var(--line); }
.price-row {
	display: grid; grid-template-columns: minmax(0, 1fr) 140px auto; gap: 32px; align-items: center;
	padding: 24px 4px; border-bottom: 1px solid var(--line); transition: background .3s;
}
.price-row:hover { background: rgba(255, 255, 255, .55); }
.price-row[hidden] { display: none; }
.price-row__cat { font-size: .78rem; color: var(--accent-ink); font-weight: 500; letter-spacing: .02em; margin-bottom: 6px; }
.price-row__title { font-size: 1.16rem; font-weight: 600; letter-spacing: -.015em; line-height: 1.25; }
.price-row__title a { text-decoration: none; }
.price-row__title a:hover { color: var(--accent-ink); }
.price-row__text { color: var(--muted); font-size: .92rem; margin-top: 6px; max-width: 70ch; }
.price-row__price { font-size: 1.18rem; font-weight: 600; letter-spacing: -.01em; white-space: nowrap; text-align: right; }
.price-row__price small { display: block; font-size: .76rem; font-weight: 400; color: var(--muted); letter-spacing: 0; white-space: normal; line-height: 1.35; margin-top: 4px; }
.price-row__actions { display: flex; gap: 8px; }

/* Почему мы */
.why { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(40px, 6vw, 96px); align-items: start; }
.why__intro { position: sticky; top: calc(var(--header-h) + 32px); }
.why__intro h2 { color: #fff; margin-bottom: 20px; }
.why__intro .lead { color: #b7c4cf; margin-bottom: 32px; }
.why__photo { border-radius: var(--r-lg); overflow: hidden; aspect-ratio: 16 / 11; margin-top: 48px; }
.why__photo img { width: 100%; height: 100%; object-fit: cover; }
.why__list { display: grid; grid-template-columns: 1fr 1fr; }
.why__item { padding: 32px 28px 32px 0; border-bottom: 1px solid rgba(255, 255, 255, .1); }
.why__item:nth-child(odd) { border-right: 1px solid rgba(255, 255, 255, .1); }
.why__item:nth-child(even) { padding-left: 28px; padding-right: 0; }
.why__item:nth-last-child(-n+2) { border-bottom: 0; }
.why__icon { width: 46px; height: 46px; border-radius: 12px; background: rgba(159, 211, 203, .12); color: #9fd3cb; display: grid; place-items: center; margin-bottom: 22px; }
.why__item h3 { color: #fff; font-size: 1.18rem; margin-bottom: 10px; }
.why__item p { color: #a8b6c2; font-size: .94rem; }
.why__item--wide { grid-column: 1 / -1; border-right: 0 !important; padding-right: 0; display: grid; grid-template-columns: 46px 1fr; gap: 0 22px; }
.why__item--wide .why__icon { margin: 0; }

/* Процесс */
.steps { display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; counter-reset: step; position: relative; }
.step { position: relative; padding-top: 72px; }
.step::before {
	counter-increment: step; content: "0" counter(step); position: absolute; top: 0; left: 0;
	width: 52px; height: 52px; border-radius: 50%; background: var(--surface); border: 1px solid var(--line-strong);
	display: grid; place-items: center; font-weight: 600; font-size: .95rem; color: var(--ink); z-index: 1;
}
.step::after { content: ""; position: absolute; top: 26px; left: 52px; right: -16px; height: 1px; background: var(--line-strong); }
.step:last-child::after { display: none; }
.step:last-child::before { background: var(--accent); border-color: var(--accent); color: #fff; }
.step h3 { font-size: 1.08rem; margin-bottom: 10px; padding-right: 12px; }
.step p { font-size: .92rem; color: var(--muted); padding-right: 12px; }
.steps-note {
	margin-top: 48px; display: flex; gap: 16px; align-items: center; justify-content: space-between; flex-wrap: wrap;
	padding: 20px 24px; border-radius: var(--r); background: var(--surface); border: 1px solid var(--line);
}
.steps-note p { display: flex; gap: 12px; align-items: center; color: var(--ink-2); font-size: .95rem; margin: 0; }
.steps-note .icon { color: var(--accent); flex-shrink: 0; }

/* О центре */
.about { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(40px, 6vw, 96px); align-items: center; }
.about__media { position: relative; padding: 0 0 64px 0; }
.about__main { border-radius: var(--r-lg); overflow: hidden; aspect-ratio: 4 / 3.3; }
.about__main img, .about__sub img { width: 100%; height: 100%; object-fit: cover; }
.about__sub {
	position: absolute; right: -24px; bottom: 0; width: 42%; aspect-ratio: 3 / 3.7; border-radius: var(--r);
	overflow: hidden; border: 6px solid var(--bg); box-shadow: var(--sh-2);
}
.about__text h2 { margin-bottom: 24px; }
.about__text .lead { margin-bottom: 28px; }
.principles { display: grid; gap: 0; margin-bottom: 32px; border-top: 1px solid var(--line); }
.principles li { display: grid; grid-template-columns: 28px 1fr; gap: 14px; padding: 16px 0; border-bottom: 1px solid var(--line); font-size: .96rem; color: var(--ink-2); }
.principles li .icon { color: var(--accent); margin-top: 2px; }
.principles strong { color: var(--ink); font-weight: 600; }
.specialties { display: flex; flex-wrap: wrap; gap: 8px; margin: 10px 0 32px; }

.doctors { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-top: 56px; }
.doctor__photo { aspect-ratio: 4 / 5; border-radius: var(--r); overflow: hidden; background: var(--sand); margin-bottom: 14px; }
.doctor__photo img { width: 100%; height: 100%; object-fit: cover; }
.doctor h3 { font-size: 1.05rem; margin-bottom: 4px; }
.doctor p { font-size: .88rem; color: var(--muted); }

/* Филиалы */
.branches { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: 20px; align-items: stretch; }
.branches__list { display: grid; gap: 12px; align-content: start; }
.branch {
	padding: 24px; border-radius: var(--r); background: var(--surface); border: 1px solid var(--line); cursor: pointer;
	transition: border-color .25s, box-shadow .25s; text-align: left; width: 100%;
}
.branch:hover { border-color: var(--line-strong); }
.branch.is-active { border-color: var(--ink); box-shadow: var(--sh-1); }
.branch__head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; margin-bottom: 14px; }
.branch__name { font-size: 1.15rem; font-weight: 600; letter-spacing: -.015em; }
.branch__metro { font-size: .86rem; color: var(--muted); margin-top: 4px; display: flex; align-items: center; gap: 6px; }
.branch__dl { display: grid; gap: 8px; font-size: .92rem; color: var(--ink-2); margin-bottom: 18px; }
.branch__dl div { display: flex; gap: 10px; align-items: center; }
.branch__dl .icon { color: var(--accent); flex-shrink: 0; }
.branch__dl a { text-decoration: none; }
.branch__actions { display: flex; gap: 8px; flex-wrap: wrap; }
.branch__note { font-size: .82rem; color: var(--muted); margin: -8px 0 16px; }
.map {
	position: relative; border-radius: var(--r-lg); overflow: hidden; min-height: 460px; background: var(--sand);
	border: 1px solid var(--line);
}
.map iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.map__placeholder {
	position: absolute; inset: 0; display: grid; place-items: center; text-align: center; padding: 32px;
	background:
		linear-gradient(rgba(238, 234, 226, .9), rgba(238, 234, 226, .9)),
		repeating-linear-gradient(0deg, transparent 0 39px, var(--line) 39px 40px),
		repeating-linear-gradient(90deg, transparent 0 39px, var(--line) 39px 40px);
}
.map__placeholder .icon { margin: 0 auto 14px; color: var(--accent); }
.map__placeholder p { color: var(--muted); font-size: .9rem; max-width: 34ch; margin: 0 auto 18px; }

/* Отзывы */
.reviews { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(32px, 5vw, 80px); align-items: start; }
.reviews__intro h2 { margin-bottom: 20px; }
.reviews__intro .lead { margin-bottom: 28px; }
.reviews__platforms { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 24px; }
.review-track { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(300px, 1fr); gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 12px; scrollbar-width: thin; }
.review { scroll-snap-align: start; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 28px; display: flex; flex-direction: column; }
.review .icon { color: var(--accent); margin-bottom: 18px; }
.review__text { color: var(--ink-2); font-size: .98rem; flex: 1; }
.review__author { margin-top: 22px; padding-top: 18px; border-top: 1px solid var(--line); font-size: .9rem; }
.review__author strong { display: block; }
.review__author span { color: var(--muted); font-size: .84rem; }
.reviews-empty { border: 1px dashed var(--line-strong); border-radius: var(--r-lg); padding: clamp(28px, 4vw, 48px); background: rgba(255, 255, 255, .5); }
.reviews-empty h3 { margin: 18px 0 10px; }
.reviews-empty p { color: var(--muted); max-width: 52ch; margin-bottom: 24px; }
.reviews-empty__icon { width: 56px; height: 56px; border-radius: 14px; background: var(--accent-soft); color: var(--accent-ink); display: grid; place-items: center; }
.reviews-policy { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 28px; padding-top: 24px; border-top: 1px solid var(--line); }
.reviews-policy div { font-size: .86rem; color: var(--ink-2); }
.reviews-policy strong { display: block; font-size: .92rem; margin-bottom: 4px; color: var(--ink); }

/* FAQ */
.faq { display: grid; grid-template-columns: minmax(0, .75fr) minmax(0, 1.25fr); gap: clamp(32px, 5vw, 96px); align-items: start; }
.faq__intro { position: sticky; top: calc(var(--header-h) + 32px); }
.faq__intro h2 { margin-bottom: 20px; }
.faq__intro .lead { margin-bottom: 28px; }
.accordion { border-top: 1px solid var(--line-strong); }
.acc { border-bottom: 1px solid var(--line-strong); }
.acc summary {
	list-style: none; display: flex; align-items: center; justify-content: space-between; gap: 24px; cursor: pointer;
	padding: 24px 0; font-size: 1.1rem; font-weight: 500; letter-spacing: -.01em; line-height: 1.35;
}
.acc summary::-webkit-details-marker { display: none; }
.acc__icon {
	flex-shrink: 0; width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--line-strong); display: grid; place-items: center;
	transition: transform .35s var(--ease), background .3s, color .3s, border-color .3s;
}
.acc[open] .acc__icon { transform: rotate(45deg); background: var(--ink); color: #fff; border-color: var(--ink); }
.acc summary:hover .acc__icon { border-color: var(--ink); }
.acc__body { overflow: hidden; }
.acc__body > div { padding: 0 60px 26px 0; color: var(--ink-2); line-height: 1.7; }

/* Контактный блок */
.contact { border-radius: clamp(20px, 2.4vw, 32px); background: var(--ink); color: #e9eef2; overflow: hidden; position: relative; }
.contact__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 5vw, 80px); padding: clamp(28px, 5.5vw, 80px); position: relative; }
.contact::before {
	content: ""; position: absolute; width: 520px; height: 520px; border-radius: 50%; right: -160px; top: -200px;
	background: radial-gradient(circle, rgba(44, 122, 114, .35), transparent 65%); pointer-events: none;
}
.contact h2 { color: #fff; margin-bottom: 20px; }
.contact .lead { color: #b7c4cf; margin-bottom: 40px; }
.contact__phone { font-size: clamp(1.6rem, 1.2rem + 1.4vw, 2.3rem); font-weight: 600; letter-spacing: -.03em; color: #fff; text-decoration: none; display: inline-block; }
.contact__hours { color: #9aaab8; font-size: .92rem; margin: 6px 0 28px; }
.contact__links { display: flex; flex-wrap: wrap; gap: 10px; }
.contact__card { background: var(--surface); color: var(--ink); border-radius: var(--r-lg); padding: clamp(24px, 3.4vw, 40px); }
.contact__card h3 { margin-bottom: 6px; }
.contact__card > p { color: var(--muted); font-size: .92rem; margin-bottom: 24px; }

/* ---------- Подвал ---------- */

.site-footer { background: var(--sand); padding: clamp(56px, 7vw, 96px) 0 0; margin-top: var(--section); font-size: .93rem; }
.site-footer--flush { margin-top: 0; }
.footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1.2fr 1fr; gap: 40px; padding-bottom: 56px; }
.footer__brand p { color: var(--ink-2); margin: 20px 0 24px; max-width: 34ch; }
.footer__contacts { display: grid; gap: 10px; }
.footer__contacts a, .footer__contacts span { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); }
.footer__contacts .icon { color: var(--accent); }
.footer__phone { font-size: 1.3rem; font-weight: 600; letter-spacing: -.02em; }
.footer__title { font-size: .78rem; text-transform: uppercase; letter-spacing: .12em; color: var(--muted); font-weight: 600; margin-bottom: 18px; }
.footer__links { display: grid; gap: 10px; }
.footer__links a { text-decoration: none; color: var(--ink-2); transition: color .2s; }
.footer__links a:hover { color: var(--ink); }
.footer__legal { border-top: 1px solid var(--line-strong); padding: 28px 0 32px; display: grid; gap: 14px; font-size: .82rem; color: var(--muted); }
.footer__legal-row { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 32px; }
.footer__legal-row nav { display: flex; flex-wrap: wrap; gap: 8px 24px; }
.footer__legal a { color: var(--ink-2); text-decoration: none; }
.footer__legal a:hover { color: var(--ink); text-decoration: underline; }
.footer__warning {
	font-size: clamp(.95rem, .7rem + 1.1vw, 1.55rem); font-weight: 600; letter-spacing: .02em; text-transform: uppercase;
	color: #a39a8b; padding: 28px 0; border-top: 1px solid var(--line-strong); text-align: center; line-height: 1.2;
}

/* ==========================================================================
   Внутренние страницы
   ========================================================================== */

.page-hero { padding: clamp(24px, 3vw, 40px) 0 clamp(40px, 5vw, 64px); }
.page-hero h1 { margin: 18px 0 20px; max-width: 18ch; }
.page-hero .lead { max-width: 62ch; }
.page-hero--center { text-align: center; }
.page-hero--center h1, .page-hero--center .lead { margin-left: auto; margin-right: auto; }
.page-hero__meta { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; }

.crumbs ol { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 6px; font-size: .86rem; color: var(--muted); }
.crumbs li { display: inline-flex; align-items: center; gap: 6px; }
.crumbs a { text-decoration: none; color: var(--ink-2); }
.crumbs a:hover { color: var(--accent-ink); }
.crumbs span[aria-current] { color: var(--muted); }
.crumbs .icon { color: var(--line-strong); }

/* Каталог */
.catalog > * { min-width: 0; }
.catalog { display: grid; grid-template-columns: 280px minmax(0, 1fr); gap: clamp(28px, 4vw, 56px); align-items: start; }
.catalog__side { position: sticky; top: calc(var(--header-h) + 24px); }
.catalog__side-title { font-size: .78rem; text-transform: uppercase; letter-spacing: .12em; color: var(--muted); font-weight: 600; margin-bottom: 12px; }
.catnav { display: grid; gap: 2px; }
.catnav a, .catnav button {
	display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 10px; text-decoration: none; color: var(--ink-2);
	font-size: .94rem; font-weight: 500; border: 0; background: none; width: 100%; text-align: left; transition: background .2s, color .2s;
}
.catnav .icon { color: var(--accent); flex-shrink: 0; }
.catnav span:last-child { margin-left: auto; font-size: .8rem; color: var(--muted); font-weight: 400; }
.catnav a:hover, .catnav button:hover { background: var(--surface); color: var(--ink); }
.catnav .is-active { background: var(--ink); color: #fff; }
.catnav .is-active .icon { color: #9fd3cb; }
.catnav .is-active span:last-child { color: #a9b8c5; }
.catalog__help { margin-top: 24px; padding: 22px; border-radius: var(--r); background: var(--accent-tint); }
.catalog__help h3 { font-size: 1.02rem; margin-bottom: 8px; }
.catalog__help p { font-size: .88rem; color: var(--ink-2); margin-bottom: 16px; }

.catalog__toolbar { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 12px; margin-bottom: 16px; }
.catalog__toolbar .input { min-height: 58px; font-size: 1.04rem; }
.catalog__chips { display: none; }
.catalog__status { display: flex; justify-content: space-between; align-items: center; gap: 16px; font-size: .9rem; color: var(--muted); margin: 20px 0 8px; }
.catalog__group { margin-top: 40px; }
.catalog__group[hidden] { display: none; }
.catalog__group-head { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-bottom: 8px; }
.catalog__group-head h2 { font-size: clamp(1.3rem, 1.1rem + .8vw, 1.7rem); display: flex; align-items: center; gap: 12px; }
.catalog__group-head h2 .icon { color: var(--accent); }
.catalog__empty { display: none; text-align: center; padding: 56px 24px; border: 1px dashed var(--line-strong); border-radius: var(--r-lg); margin-top: 24px; }
.catalog__empty.is-visible { display: block; }
.catalog__empty h3 { margin: 16px 0 8px; }
.catalog__empty p { color: var(--muted); margin-bottom: 20px; }
.catalog__empty .icon { margin: 0 auto; color: var(--muted); }

.svc-list { border-top: 1px solid var(--line); }
.svc {
	display: grid; grid-template-columns: minmax(0, 1fr) auto auto; align-items: center; gap: 24px;
	padding: 18px 4px; border-bottom: 1px solid var(--line); transition: background .2s;
}
.svc:hover { background: rgba(255, 255, 255, .6); }
.svc[hidden] { display: none; }
.svc__title { font-weight: 500; font-size: 1.02rem; line-height: 1.35; text-decoration: none; }
.svc__title:hover { color: var(--accent-ink); }
.svc__title mark { background: rgba(44, 122, 114, .16); color: inherit; border-radius: 3px; padding: 0 1px; }
.svc__desc { font-size: .86rem; color: var(--muted); margin-top: 4px; }
.svc__price { font-weight: 600; white-space: nowrap; }
.svc__actions { display: flex; gap: 6px; }
.svc .tag { margin-left: 8px; vertical-align: 2px; font-size: .72rem; padding: 2px 8px; }

.popular-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.pcard {
	display: flex; flex-direction: column; padding: 24px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r);
	transition: box-shadow .3s, transform .3s var(--ease);
}
.pcard:hover { box-shadow: var(--sh-1); transform: translateY(-2px); }
.pcard__cat { font-size: .78rem; color: var(--accent-ink); font-weight: 500; margin-bottom: 10px; display: flex; gap: 6px; align-items: center; }
.pcard h3 { font-size: 1.1rem; line-height: 1.3; margin-bottom: 8px; }
.pcard h3 a { text-decoration: none; }
.pcard p { font-size: .88rem; color: var(--muted); flex: 1; margin-bottom: 18px; }
.pcard__foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-top: 16px; border-top: 1px solid var(--line); }
.pcard__price { font-weight: 600; font-size: 1.08rem; }

.cat-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 12px; }
.principles-grid { display: grid; grid-template-columns: repeat(3, 1fr); }
.principles-grid .why__item { border: 0; padding: 4px 32px; border-left: 1px solid rgba(255, 255, 255, .1); }
.principles-grid .why__item:first-child { border-left: 0; padding-left: 0; }

/* Страница услуги */
.service { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: clamp(32px, 5vw, 72px); align-items: start; }
.service__aside { position: sticky; top: calc(var(--header-h) + 24px); display: grid; gap: 14px; }
.price-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 28px; box-shadow: var(--sh-1); }
.price-card__label { font-size: .84rem; color: var(--muted); margin-bottom: 6px; }
.price-card__value { font-size: 2.2rem; font-weight: 600; letter-spacing: -.035em; line-height: 1.1; margin-bottom: 18px; }
.price-card__facts { display: grid; gap: 10px; padding: 18px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); margin-bottom: 20px; font-size: .9rem; }
.price-card__facts div { display: flex; justify-content: space-between; gap: 16px; }
.price-card__facts dt { color: var(--muted); }
.price-card__facts dd { margin: 0; text-align: right; font-weight: 500; }
.price-card__buttons { display: grid; gap: 10px; }
.price-card__note { font-size: .8rem; color: var(--muted); margin-top: 16px; line-height: 1.5; }
.legal-card { display: flex; gap: 14px; padding: 18px 20px; border-radius: var(--r); background: var(--accent-tint); font-size: .86rem; color: var(--ink-2); line-height: 1.5; }
.legal-card .icon { color: var(--accent-ink); flex-shrink: 0; }

.service__hero { padding: clamp(24px, 3vw, 40px) 0 clamp(32px, 4vw, 48px); }
.service__hero h1 { font-size: clamp(2rem, 1.3rem + 2.8vw, 3.6rem); margin: 18px 0 18px; max-width: 20ch; }
.service__hero .lead { max-width: 60ch; }

.block { padding: clamp(32px, 4vw, 48px) 0; border-top: 1px solid var(--line); }
.block:first-child { border-top: 0; padding-top: 0; }
.block__title { font-size: clamp(1.45rem, 1.2rem + .9vw, 1.95rem); margin-bottom: 24px; }
.checklist { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 28px; }
.checklist li { display: grid; grid-template-columns: 24px 1fr; gap: 12px; color: var(--ink-2); font-size: .98rem; line-height: 1.45; }
.checklist .icon { color: var(--accent); margin-top: 1px; }
.exam-grid { display: flex; flex-wrap: wrap; gap: 8px; }
.exam-grid li { padding: 10px 16px; border-radius: 10px; background: var(--surface); border: 1px solid var(--line); font-size: .94rem; display: flex; gap: 8px; align-items: center; }
.exam-grid .icon { color: var(--accent); }
.vsteps { display: grid; gap: 0; counter-reset: vs; }
.vsteps li { display: grid; grid-template-columns: 48px 1fr; gap: 18px; padding-bottom: 24px; position: relative; color: var(--ink-2); }
.vsteps li::before {
	counter-increment: vs; content: counter(vs); width: 40px; height: 40px; border-radius: 50%; background: var(--surface); border: 1px solid var(--line-strong);
	display: grid; place-items: center; font-weight: 600; color: var(--ink); position: relative; z-index: 1;
}
.vsteps li::after { content: ""; position: absolute; left: 20px; top: 40px; bottom: 0; width: 1px; background: var(--line-strong); }
.vsteps li:last-child::after { display: none; }
.vsteps li:last-child { padding-bottom: 0; }
.vsteps li > span { padding-top: 8px; line-height: 1.5; }

/* Таблица цен */
.prices__group { margin-bottom: 48px; }
.prices__group h2 { font-size: clamp(1.35rem, 1.1rem + .8vw, 1.75rem); margin-bottom: 16px; display: flex; align-items: center; gap: 12px; }
.prices__group h2 .icon { color: var(--accent); }
.ptable { width: 100%; border-collapse: collapse; background: var(--surface); border-radius: var(--r); overflow: hidden; border: 1px solid var(--line); }
.ptable td { padding: 14px 20px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.ptable tr:last-child td { border-bottom: 0; }
.ptable tr:hover td { background: #fbfaf7; }
.ptable td:last-child { text-align: right; white-space: nowrap; font-weight: 600; width: 1%; }
.ptable a { text-decoration: none; }
.ptable a:hover { color: var(--accent-ink); }
.ptable tr[hidden] { display: none; }

/* Проверка документа и ЛК */
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: clamp(24px, 4vw, 44px); }
.split { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: clamp(28px, 4vw, 56px); align-items: start; }
.verify-result { margin-top: 24px; border-radius: var(--r); padding: 22px; display: none; }
.verify-result.is-visible { display: block; animation: fadeIn .4s var(--ease); }
.verify-result--valid { background: var(--ok-soft); }
.verify-result--revoked, .verify-result--expired { background: var(--danger-soft); }
.verify-result--not_found { background: var(--sand); }
.verify-result h3 { display: flex; gap: 10px; align-items: center; margin-bottom: 8px; font-size: 1.15rem; }
.verify-result dl { display: grid; gap: 6px; margin: 14px 0 0; font-size: .92rem; }
.verify-result dl div { display: grid; grid-template-columns: 140px 1fr; gap: 12px; }
.verify-result dt { color: var(--muted); }
.verify-result dd { margin: 0; font-weight: 500; }
.notice-box { display: flex; gap: 14px; padding: 18px 20px; border-radius: var(--r); border: 1px solid #ead9b8; background: #fbf5e9; color: #5c4a2a; font-size: .9rem; line-height: 1.5; }
.notice-box .icon { flex-shrink: 0; color: var(--warm); }
.notice-box code { background: rgba(0, 0, 0, .05); padding: 1px 5px; border-radius: 4px; font-size: .85em; }
.info-list { display: grid; gap: 18px; }
.info-list li { display: grid; grid-template-columns: 44px 1fr; gap: 16px; }
.info-list .ico { width: 44px; height: 44px; border-radius: 12px; background: var(--accent-tint); color: var(--accent-ink); display: grid; place-items: center; }
.info-list h3 { font-size: 1.02rem; margin-bottom: 4px; }
.info-list p { font-size: .9rem; color: var(--muted); }

.account { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: 32px; align-items: start; }
.account__nav { display: grid; gap: 4px; position: sticky; top: calc(var(--header-h) + 24px); }
.account__nav a { display: flex; gap: 10px; align-items: center; padding: 11px 14px; border-radius: 10px; text-decoration: none; color: var(--ink-2); font-weight: 500; }
.account__nav a:hover { background: var(--surface); }
.account__nav .icon { color: var(--accent); }
.account__section { margin-bottom: 20px; }
.account__section h2 { font-size: 1.4rem; margin-bottom: 18px; }
.lead-table { width: 100%; border-collapse: collapse; font-size: .92rem; }
.lead-table th { text-align: left; font-weight: 500; color: var(--muted); padding: 10px 12px; border-bottom: 1px solid var(--line); }
.lead-table td { padding: 14px 12px; border-bottom: 1px solid var(--line); }
.status { display: inline-flex; padding: 3px 10px; border-radius: 999px; font-size: .78rem; font-weight: 500; background: var(--sand); }
.status--new { background: #e6eef7; color: #2b5c8f; }
.status--work { background: #fbf1df; color: #8a5a14; }
.status--done { background: var(--ok-soft); color: var(--ok); }
.login-form p { margin: 0 0 16px; display: grid; gap: 7px; }
.login-form label { font-size: .86rem; font-weight: 500; color: var(--ink-2); }
.login-form input[type="text"], .login-form input[type="password"] { width: 100%; min-height: 54px; padding: 0 16px; border-radius: 12px; border: 1px solid var(--line-strong); background: var(--surface); }
.login-form .login-remember label { display: flex; gap: 8px; align-items: center; }
.login-form input[type="submit"] { min-height: 54px; width: 100%; border-radius: 12px; background: var(--ink); color: #fff; border: 0; font-weight: 500; font-size: 1rem; cursor: pointer; }

/* Контакты / филиалы страница */
.contact-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-bottom: 48px; }
.ccard { padding: 26px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); }
.ccard .icon { color: var(--accent); margin-bottom: 18px; }
.ccard h3 { font-size: .86rem; font-weight: 500; color: var(--muted); letter-spacing: 0; margin-bottom: 6px; }
.ccard a, .ccard p { font-size: 1.15rem; font-weight: 600; text-decoration: none; letter-spacing: -.01em; }

.req-table { width: 100%; border-collapse: collapse; }
.req-table th, .req-table td { text-align: left; padding: 16px 0; border-bottom: 1px solid var(--line); vertical-align: top; }
.req-table th { width: 38%; font-weight: 500; color: var(--muted); padding-right: 24px; }
.req-empty { color: #a08a64; font-style: italic; }

.not-found { text-align: center; padding: clamp(60px, 10vw, 140px) 0; }
.not-found__code { font-size: clamp(6rem, 18vw, 12rem); font-weight: 600; letter-spacing: -.06em; line-height: 1; color: var(--sand-2); }

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

@media (max-width: 1280px) {
	.nav__link { padding: 10px 11px; }
	.header__phone span { display: none; }
	.mega__panel { grid-template-columns: 270px 1fr; }
	.mega__aside { display: none; }
}

@media (max-width: 1100px) {
	:root { --header-h: 68px; }
	.topbar { display: none; }
	.nav, .header__phone, .header__cta { display: none; }
	.header__burger, .header__call { display: grid; }
	.header__actions { gap: 8px; }
	.header__call, .header__burger {
		width: 44px; height: 44px; border-radius: 12px; border: 1px solid var(--line); background: var(--surface); place-items: center; color: var(--ink);
	}
	.header__burger { background: var(--ink); color: #fff; border-color: var(--ink); }
	.quickbar { display: grid; }
	body { padding-bottom: 76px; }
	.toasts { bottom: 90px; }

	.hero__grid { grid-template-columns: 1fr; }
	.hero__media { order: -1; }
	.hero__photo { aspect-ratio: 16 / 10; }
	.hero__finder { left: 16px; right: 16px; bottom: -48px; }
	.hero__text { padding-top: 64px; }
	.hero .lead { max-width: 60ch; }

	.bento { grid-template-columns: repeat(6, 1fr); }
	.bento .span-6 { grid-column: span 6; }
	.bento .span-3 { grid-column: span 3; }
	.bento .span-4 { grid-column: span 6; }
	.bento .row-2 { grid-row: span 1; min-height: 360px; }

	.why { grid-template-columns: 1fr; }
	.why__intro { position: static; }
	.why__photo { display: none; }
	.steps { grid-template-columns: 1fr 1fr; gap: 36px 24px; }
	.step::after { display: none; }
	.about { grid-template-columns: 1fr; }
	.about__sub { right: 0; }
	.branches { grid-template-columns: 1fr; }
	.map { min-height: 360px; }
	.reviews, .faq { grid-template-columns: 1fr; }
	.faq__intro { position: static; }
	.contact__grid { grid-template-columns: 1fr; }
	.footer__grid { grid-template-columns: 1fr 1fr; }
	.catalog { grid-template-columns: minmax(0, 1fr); }
	.catalog__side { display: none; }
	.catalog__chips { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; margin: 0 calc(var(--gutter) * -1) 4px; padding: 0 var(--gutter) 4px; }
	.catalog__chips::-webkit-scrollbar { display: none; }
	.service { grid-template-columns: 1fr; }
	.service__aside { position: static; order: -1; }
	.popular-grid { grid-template-columns: 1fr 1fr; }
	.doctors { grid-template-columns: repeat(2, 1fr); }
	.split { grid-template-columns: 1fr; }
	.account { grid-template-columns: 1fr; }
	.account__nav { position: static; display: flex; overflow-x: auto; }
	.contact-cards { grid-template-columns: 1fr; }
}

@media (max-width: 767px) {
	body { font-size: 15.5px; }
	.section-head { flex-direction: column; align-items: flex-start; gap: 20px; }
	.hero__photo { aspect-ratio: 4 / 3.4; border-radius: var(--r); }
	.hero__badge { display: none; }
	.hero__finder { position: relative; left: auto; right: auto; bottom: auto; margin: -56px 12px 0; padding: 16px; }
	.hero__text { padding-top: 8px; }
	.hero__media { order: 1; margin-top: 8px; }
	.hero__actions { margin-bottom: 32px; }
	.hero__actions .btn { flex: 1 1 100%; }
	.hero__facts { grid-template-columns: 1fr; }
	.hero__fact, .hero__fact + .hero__fact { padding: 16px 0; border-left: 0; border-bottom: 1px solid var(--line); grid-template-columns: 24px 1fr; gap: 14px; }
	.hero__fact:last-child { border-bottom: 0; }

	.bento { grid-template-columns: 1fr 1fr; gap: 10px; grid-auto-rows: auto; }
	.bento .span-6, .bento .span-4 { grid-column: 1 / -1; }
	.bento .span-3 { grid-column: span 1; }
	.bento .row-2 { min-height: 300px; }
	.tile { padding: 18px; border-radius: var(--r); }
	.tile--photo { min-height: 220px; }
	.tile__title { font-size: 1.08rem; margin-top: 18px; }
	.tile__text { display: none; }
	.tile--photo.row-2 .tile__text, .tile--row .tile__text { display: block; }
	.tile__meta { margin-top: 12px; font-size: .8rem; }
	.tile__arrow { width: 34px; height: 34px; }
	.tile__icon { width: 42px; height: 42px; }
	.tile--row { padding: 16px 18px; }

	.price-row { grid-template-columns: 1fr auto; gap: 14px; padding: 20px 0; }
	.price-row__main { grid-column: 1 / -1; }
	.price-row__price { text-align: left; font-size: 1.1rem; }
	.price-row__actions { justify-content: flex-end; }
	.price-row__actions .btn--ghost span { display: none; }
	.price-row__actions .btn--ghost { width: 42px; padding: 0; }

	.why__list, .principles-grid { grid-template-columns: 1fr; }
	.principles-grid .why__item { border-left: 0; padding: 24px 0; border-top: 1px solid rgba(255, 255, 255, .1); }
	.principles-grid .why__item:first-child { border-top: 0; }
	.why__item, .why__item:nth-child(even) { padding: 26px 0; border-right: 0 !important; }
	.why__item:nth-last-child(-n+2) { border-bottom: 1px solid rgba(255, 255, 255, .1); }
	.why__item:last-child { border-bottom: 0; }
	.why__item--wide { grid-template-columns: 1fr; }
	.why__item--wide .why__icon { margin-bottom: 22px; }

	.steps { grid-template-columns: 1fr; gap: 0; }
	.step { padding: 0 0 28px 72px; min-height: 52px; }
	.step::after { display: block; left: 26px; top: 52px; bottom: 0; right: auto; width: 1px; height: auto; }
	.step:last-child { padding-bottom: 0; }
	.step h3 { padding-top: 12px; }
	.steps-note .btn { width: 100%; }

	.about__media { padding-bottom: 40px; }
	.about__sub { width: 46%; border-width: 4px; }
	.reviews-policy { grid-template-columns: 1fr; }
	.acc summary { font-size: 1.02rem; padding: 20px 0; gap: 16px; }
	.acc__body > div { padding-right: 0; }
	.form__row { grid-template-columns: 1fr; }
	.contact { border-radius: var(--r-lg); margin: 0 calc(var(--gutter) * -1 + 8px); }
	.contact__grid { padding: 28px 20px; }
	.contact__card { padding: 22px 18px; }
	.footer__grid { grid-template-columns: 1fr; gap: 32px; }
	.footer__legal-row { flex-direction: column; }

	.svc { grid-template-columns: 1fr auto; gap: 10px 16px; padding: 16px 0; }
	.svc__main { grid-column: 1 / -1; }
	.svc__actions .btn--soft span { display: none; }
	.svc__actions .btn--soft { width: 42px; padding: 0; }
	.catalog__toolbar { grid-template-columns: 1fr; }
	.popular-grid { grid-template-columns: 1fr; }
	.checklist { grid-template-columns: 1fr; }
	.ptable td { padding: 12px 14px; font-size: .92rem; }
	.price-card { padding: 22px; }
	.price-card__value { font-size: 1.9rem; }
	.verify-result dl div { grid-template-columns: 1fr; gap: 0; }
	.modal { padding: 0; place-items: end center; }
	.modal__dialog { max-height: 92vh; border-radius: 22px 22px 0 0; transform: translateY(40px); padding-bottom: calc(24px + env(safe-area-inset-bottom)); }
	.modal--search { padding-top: 0; place-items: start center; }
	.modal--search .modal__dialog { border-radius: 0 0 22px 22px; max-height: 88vh; transform: translateY(-20px); }
	.doctors { gap: 12px; }
	.req-table th, .req-table td { display: block; width: 100%; padding: 4px 0; border: 0; }
	.req-table tr { display: block; padding: 12px 0; border-bottom: 1px solid var(--line); }
	.footer__warning { font-size: .9rem; }
}

@media (max-width: 380px) {
	.bento .span-3 { grid-column: 1 / -1; }
	.logo__tag { display: none; }
}
