@import url('https://fonts.googleapis.com/css2?family=Manrope:wght@400;500;600;700;800&display=swap');

:root {
	--coral: #ff7062;
	--coral-dark: #e55f52;
	--coral-light: #fff0ef;
	--ruby: #c41e5a;
	--mauve: #9b6b6b;
	--mauve-dark: #6b4545;
	--ink: #1a1a2e;
	--ink-soft: #3d3d56;
	--muted: #6b7280;
	--line: rgba(26, 26, 46, 0.08);
	--white: #ffffff;
	--bg: #faf9f7;
	--bg-alt: #f3f0ed;
	--container: 1200px;
	--radius: 16px;
	--radius-sm: 10px;
	--shadow: 0 4px 24px rgba(26, 26, 46, 0.06);
	--shadow-lg: 0 20px 60px rgba(26, 26, 46, 0.1);
	--header-h: 72px;
	--font: 'Manrope', -apple-system, BlinkMacSystemFont, sans-serif;
	--transition: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
	--gutter: clamp(1rem, 4vw, 2.5rem);
	--nav-width: min(100vw, 420px);
}

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

html { scroll-behavior: smooth; }

body {
	margin: 0;
	font-family: var(--font);
	font-size: 16px;
	line-height: 1.65;
	color: var(--ink);
	background: var(--bg);
	-webkit-font-smoothing: antialiased;
}

body.a11y-mode {
	font-size: 18px;
	line-height: 1.8;
}
body.a11y-mode .site-header { border-bottom-width: 3px; }
body.a11y-mode a { text-decoration: underline; }

img { max-width: 100%; height: auto; display: block; }
a { color: var(--coral-dark); text-decoration: none; transition: color var(--transition); }
a:not(.btn):hover { color: var(--ruby); }

.container {
	width: min(calc(100% - var(--gutter) * 2), var(--container));
	margin-inline: auto;
}

body.nav-open {
	overflow: hidden;
	touch-action: none;
}

body.nav-open .site-header-group {
	z-index: 1200;
}

/* ── Logo ── */
.logo {
	display: inline-flex;
	align-items: baseline;
	gap: 0.35em;
	font-weight: 800;
	font-size: 1.15rem;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	line-height: 1;
}
.logo__clinic { color: var(--ink); }
.logo__korall { color: var(--coral); }
.site-header--dark .logo__clinic { color: var(--white); }

/* ── Header shell ── */
.site-header-group {
	position: sticky;
	top: 0;
	z-index: 200;
	width: 100%;
}

.site-header-shell {
	width: 100%;
}

.site-header {
	width: 100%;
	background: rgba(255, 255, 255, 0.98);
	border-bottom: 1px solid var(--line);
	transition: box-shadow var(--transition);
}

.site-header-group.is-scrolled .site-header,
.site-header.is-scrolled {
	box-shadow: var(--shadow);
}

.site-header__inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
	min-height: var(--header-h);
	width: 100%;
	max-width: var(--container);
	margin-inline: auto;
	padding: 0.75rem var(--gutter);
}

.logo {
	flex-shrink: 0;
}

.site-header__actions {
	flex-shrink: 0;
}

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

.site-search {
	display: flex;
	align-items: center;
	gap: 0.35rem;
	flex: 1;
	max-width: 220px;
	min-width: 0;
}
.site-search--mobile {
	display: none;
	max-width: none;
	margin-bottom: 1rem;
}
.site-search__input {
	width: 100%;
	min-width: 0;
	padding: 0.5rem 0.75rem;
	border: 1px solid var(--line);
	border-radius: 999px;
	font: inherit;
	font-size: 0.875rem;
	background: var(--bg);
	color: var(--ink);
}
.site-search__input:focus {
	outline: none;
	border-color: var(--coral);
	box-shadow: 0 0 0 3px var(--coral-light);
}
.site-search__submit {
	flex-shrink: 0;
	width: 36px;
	height: 36px;
	border: none;
	border-radius: 50%;
	background: var(--coral-light);
	color: var(--coral-dark);
	font-size: 1.1rem;
	cursor: pointer;
	transition: background var(--transition), color var(--transition);
}
.site-search__submit:hover {
	background: var(--coral);
	color: var(--white);
}

.site-nav__list {
	display: flex;
	align-items: center;
	gap: 0.15rem;
	list-style: none;
	margin: 0;
	padding: 0;
}
.site-nav__list a {
	display: block;
	padding: 0.55rem 0.75rem;
	font-size: 0.875rem;
	font-weight: 600;
	color: var(--ink-soft);
	border-radius: 8px;
	transition: all var(--transition);
}
.site-nav__list a:hover,
.site-nav__list .current-menu-item a,
.site-nav__list .current_page_item a {
	color: var(--coral);
	background: var(--coral-light);
}

.site-header__actions {
	display: flex;
	align-items: center;
	gap: 0.65rem;
	flex-shrink: 0;
}
.site-header__phone {
	font-weight: 700;
	font-size: 0.9rem;
	color: var(--ink);
	white-space: nowrap;
}
.site-header__phone:hover { color: var(--coral); }

/* Mobile nav drawer */
.site-nav-backdrop {
	position: fixed;
	inset: 0;
	z-index: 1050;
	background: rgba(26, 26, 46, 0.5);
	opacity: 0;
	transition: opacity var(--transition);
	pointer-events: none;
}
.site-nav-backdrop:not([hidden]) {
	opacity: 1;
	pointer-events: auto;
}

.site-nav {
	position: fixed;
	top: 0;
	right: 0;
	bottom: 0;
	z-index: 1100;
	width: var(--nav-width);
	max-width: 100%;
	transform: translateX(105%);
	transition: transform 0.32s cubic-bezier(0.4, 0, 0.2, 1);
	visibility: hidden;
	pointer-events: none;
}
.site-nav.is-open {
	transform: translateX(0);
	visibility: visible;
	pointer-events: auto;
}

.site-nav__panel {
	display: flex;
	flex-direction: column;
	height: 100%;
	height: 100dvh;
	background: var(--white);
	box-shadow: -8px 0 40px rgba(26, 26, 46, 0.15);
	padding:
		max(1rem, env(safe-area-inset-top))
		max(1.25rem, env(safe-area-inset-right))
		max(1.25rem, env(safe-area-inset-bottom))
		max(1.25rem, env(safe-area-inset-left));
	overflow-y: auto;
	-webkit-overflow-scrolling: touch;
}

.site-nav__head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin-bottom: 1rem;
	padding-bottom: 1rem;
	border-bottom: 1px solid var(--line);
}
.site-nav__title {
	font-size: 1.125rem;
	font-weight: 800;
	color: var(--ink);
}
.site-nav__close {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 44px;
	border: none;
	background: var(--bg-alt);
	border-radius: 50%;
	font-size: 1.75rem;
	line-height: 1;
	color: var(--ink);
	cursor: pointer;
}
.site-nav__close:hover {
	background: var(--coral-light);
	color: var(--coral-dark);
}

.site-nav .site-nav__list {
	flex-direction: column;
	align-items: stretch;
	gap: 0.35rem;
	flex: 1;
}
.site-nav .site-nav__list a {
	padding: 1rem 1.1rem;
	font-size: 1.05rem;
	border-radius: var(--radius-sm);
	min-height: 48px;
	display: flex;
	align-items: center;
}

.site-nav__footer {
	margin-top: 1.5rem;
	padding-top: 1.5rem;
	border-top: 1px solid var(--line);
	display: flex;
	flex-direction: column;
	gap: 0.85rem;
}
.site-nav__phone {
	font-size: 1.25rem;
	font-weight: 800;
	color: var(--ink);
	text-align: center;
	padding: 0.5rem;
}
.site-nav__phone:hover { color: var(--coral); }
.site-nav__hours {
	margin: 0;
	text-align: center;
	font-size: 0.875rem;
	color: var(--muted);
}

.burger {
	display: none;
	flex-direction: column;
	justify-content: center;
	align-items: center;
	gap: 5px;
	width: 44px;
	height: 44px;
	background: var(--bg-alt);
	border: none;
	border-radius: var(--radius-sm);
	cursor: pointer;
	flex-shrink: 0;
}
.burger span {
	display: block;
	width: 22px;
	height: 2px;
	background: var(--ink);
	border-radius: 2px;
	transition: transform var(--transition), opacity var(--transition);
}
.burger.is-active span:nth-child(1) {
	transform: translateY(7px) rotate(45deg);
}
.burger.is-active span:nth-child(2) {
	opacity: 0;
}
.burger.is-active span:nth-child(3) {
	transform: translateY(-7px) rotate(-45deg);
}

.btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.5rem;
	padding: 0.85rem 1.75rem;
	font-family: var(--font);
	font-size: 0.9rem;
	font-weight: 700;
	border: none;
	border-radius: 999px;
	cursor: pointer;
	transition: all var(--transition);
	text-decoration: none;
}
.btn--primary {
	background: var(--coral);
	color: var(--white);
	box-shadow: 0 4px 16px rgba(255, 107, 74, 0.35);
}
.btn--primary:hover {
	background: var(--coral-dark);
	color: var(--white);
	transform: translateY(-1px);
	box-shadow: 0 8px 24px rgba(255, 107, 74, 0.4);
}
.btn--outline {
	background: transparent;
	color: var(--white);
	border: 2px solid rgba(255,255,255,0.6);
}
.btn--outline:hover {
	background: var(--white);
	color: var(--coral);
}
.btn--ghost {
	background: var(--coral-light);
	color: var(--coral-dark);
}
.btn--ghost:hover { background: var(--coral); color: var(--white); }
.btn--sm { padding: 0.6rem 1.25rem; font-size: 0.825rem; }
.btn--block { width: 100%; }

/* Inverted primary — white button on colored background */
.btn--primary.btn--light,
.cta-banner .btn--primary,
.section--cta .btn--primary {
	background: var(--white);
	color: var(--coral-dark);
	box-shadow: 0 4px 20px rgba(0, 0, 0, 0.12);
}
.btn--primary.btn--light:hover,
.cta-banner .btn--primary:hover,
.section--cta .btn--primary:hover {
	background: var(--bg);
	color: var(--coral-dark);
	transform: translateY(-1px);
	box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

/* Links styled as buttons — override global link colors */
a.btn,
a.btn:hover,
a.btn:focus,
a.btn:active {
	text-decoration: none;
}
a.btn--primary:hover,
a.btn--primary:focus {
	color: var(--white);
}
a.btn--primary.btn--light,
a.btn--primary.btn--light:hover,
a.btn--primary.btn--light:focus,
.cta-banner a.btn--primary,
.cta-banner a.btn--primary:hover,
.cta-banner a.btn--primary:focus,
.section--cta a.btn--primary,
.section--cta a.btn--primary:hover,
.section--cta a.btn--primary:focus {
	color: var(--coral-dark);
}
a.btn--ghost,
a.btn--ghost:focus {
	color: var(--coral-dark);
}
a.btn--ghost:hover {
	color: var(--white);
}
a.btn--outline,
a.btn--outline:focus {
	color: var(--white);
}
a.btn--outline:hover {
	color: var(--coral);
}

.prose a.btn--primary,
.prose a.btn--primary:hover {
	color: var(--white);
}
.prose a.btn--ghost {
	color: var(--coral-dark);
}
.prose a.btn--ghost:hover {
	color: var(--white);
}
.prose a.btn--outline {
	color: var(--coral-dark);
	background: transparent;
	border: 2px solid var(--coral);
}
.prose a.btn--outline:hover {
	color: var(--white);
	background: var(--coral);
	border-color: var(--coral);
}

.prose p:has(.btn) {
	margin-top: 2rem;
}

.a11y-toggle {
	background: none;
	border: 1px solid var(--line);
	border-radius: 8px;
	padding: 0.4rem 0.65rem;
	font-size: 0.75rem;
	font-weight: 600;
	cursor: pointer;
	color: var(--muted);
	font-family: var(--font);
}
.a11y-toggle:hover { border-color: var(--coral); color: var(--coral); }

/* ── Hero ── */
.hero {
	position: relative;
	min-height: 85vh;
	display: flex;
	align-items: center;
	background: linear-gradient(135deg, var(--mauve-dark) 0%, var(--mauve) 50%, #b08080 100%);
	overflow: hidden;
	color: var(--white);
}
.hero::before {
	content: '';
	position: absolute;
	inset: 0;
	background: url('../images/клиника-фото2.png') center/cover no-repeat;
	opacity: 0.25;
}
.hero::after {
	content: '';
	position: absolute;
	inset: 0;
	background: linear-gradient(135deg, rgba(26,26,46,0.75) 0%, rgba(107,69,69,0.6) 100%);
}
.hero__content {
	position: relative;
	z-index: 1;
	max-width: 680px;
	padding: 6rem 0;
}
.hero__badge {
	display: inline-block;
	padding: 0.4rem 1rem;
	background: rgba(255,107,74,0.25);
	border: 1px solid rgba(255,107,74,0.4);
	border-radius: 999px;
	font-size: 0.8rem;
	font-weight: 600;
	letter-spacing: 0.05em;
	text-transform: uppercase;
	margin-bottom: 1.5rem;
}
.hero h1 {
	font-size: clamp(2.25rem, 5vw, 3.5rem);
	font-weight: 800;
	line-height: 1.15;
	margin: 0 0 1.25rem;
	letter-spacing: -0.02em;
}
.hero h1 em {
	font-style: normal;
	color: var(--coral);
}
.hero__subtitle {
	font-size: 1.125rem;
	opacity: 0.9;
	margin-bottom: 1rem;
	max-width: 540px;
}
.hero__note {
	font-size: 0.95rem;
	opacity: 0.82;
	max-width: 680px;
	margin: 0 0 1.75rem;
	line-height: 1.65;
}
.hero__actions { display: flex; flex-wrap: wrap; gap: 1rem; }
.hero__stats {
	display: flex;
	gap: 2.5rem;
	margin-top: 3rem;
	padding-top: 2rem;
	border-top: 1px solid rgba(255,255,255,0.15);
}
.hero__stat strong {
	display: block;
	font-size: 1.75rem;
	font-weight: 800;
	color: var(--coral);
}
.hero__stat span { font-size: 0.85rem; opacity: 0.75; }

/* ── Sections ── */
.section { padding: 5rem 0; }
.section--alt { background: var(--white); }
.section--dark {
	background: var(--ink);
	color: var(--white);
}
.section__header {
	text-align: center;
	max-width: 640px;
	margin: 0 auto 3.5rem;
}
.section__label {
	display: inline-block;
	font-size: 0.75rem;
	font-weight: 700;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: var(--coral);
	margin-bottom: 0.75rem;
}
.section h2 {
	font-size: clamp(1.75rem, 3vw, 2.5rem);
	font-weight: 800;
	line-height: 1.2;
	margin: 0 0 1rem;
	letter-spacing: -0.02em;
}
.section__desc {
	color: var(--muted);
	font-size: 1.05rem;
}

/* ── Cards ── */
.cards {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
	gap: 1.5rem;
}
.card {
	background: var(--white);
	border-radius: var(--radius);
	padding: 2rem;
	box-shadow: var(--shadow);
	border: 1px solid var(--line);
	transition: all var(--transition);
}
.card:hover {
	transform: translateY(-4px);
	box-shadow: var(--shadow-lg);
}
.card__icon {
	width: 48px;
	height: 48px;
	background: var(--coral-light);
	border-radius: 12px;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 1.5rem;
	margin-bottom: 1.25rem;
}
.card h3 {
	font-size: 1.125rem;
	font-weight: 700;
	margin: 0 0 0.75rem;
}
.card p { color: var(--muted); margin: 0; font-size: 0.925rem; }
.card__price {
	font-weight: 800;
	color: var(--coral);
	font-size: 1.1rem;
	margin-top: 1rem;
}
.card__link {
	display: inline-flex;
	align-items: center;
	gap: 0.35rem;
	margin-top: 1.25rem;
	font-weight: 600;
	font-size: 0.875rem;
	color: var(--coral);
}

.card--doctor { text-align: center; }
.card--doctor .card__photo {
	width: 120px;
	height: 120px;
	border-radius: 50%;
	object-fit: cover;
	margin: 0 auto 1.25rem;
	background: var(--bg-alt);
}
.card__specialty {
	color: var(--coral);
	font-weight: 600;
	font-size: 0.875rem;
}
.card__photo--placeholder {
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 2.5rem;
	background: var(--coral-light);
}
.card__degree {
	color: var(--muted);
	font-size: 0.8rem;
	font-weight: 600;
	margin: 0.25rem 0 0;
}
.card__experience {
	color: var(--muted);
	font-size: 0.825rem;
	margin-top: 0.5rem;
}
.section__footer {
	text-align: center;
	margin-top: 2.5rem;
}

/* ── Feature block ── */
.feature {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 4rem;
	align-items: center;
}
.feature--reverse { direction: rtl; }
.feature--reverse > * { direction: ltr; }
.feature__image {
	border-radius: var(--radius);
	overflow: hidden;
	box-shadow: var(--shadow-lg);
}
.feature__image img { width: 100%; height: 400px; object-fit: cover; }
.feature__content h2 { text-align: left; margin-bottom: 1.25rem; }
.feature__content p { color: var(--muted); margin-bottom: 1rem; }
.feature__list {
	list-style: none;
	padding: 0;
	margin: 1.5rem 0;
}
.feature__list li {
	padding: 0.5rem 0 0.5rem 1.75rem;
	position: relative;
	font-size: 0.925rem;
}
.feature__list li::before {
	content: '✓';
	position: absolute;
	left: 0;
	color: var(--coral);
	font-weight: 700;
}

/* ── CTA ── */
.cta-banner {
	background: linear-gradient(135deg, var(--coral) 0%, var(--ruby) 100%);
	border-radius: var(--radius);
	padding: 4rem;
	text-align: center;
	color: var(--white);
}
.cta-banner h2 { color: var(--white); margin-bottom: 1rem; }
.cta-banner p { opacity: 0.9; max-width: 520px; margin: 0 auto 2rem; }

/* ── Contacts ── */
.contacts-grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 3rem;
}
.contacts-info__item {
	display: flex;
	gap: 1rem;
	padding: 1.25rem 0;
	border-bottom: 1px solid var(--line);
}
.contacts-info__item:last-child { border-bottom: none; }
.contacts-info__icon {
	flex-shrink: 0;
	width: 44px;
	height: 44px;
	background: var(--coral-light);
	border-radius: 10px;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 1.25rem;
}
.contacts-info__label {
	font-size: 0.75rem;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.05em;
	color: var(--muted);
	margin-bottom: 0.25rem;
}
.contacts-info__value { font-weight: 600; }
.contacts-map img { border-radius: var(--radius); width: 100%; }
.contacts-map__embed {
	border-radius: var(--radius);
	overflow: hidden;
	margin-bottom: 1.25rem;
	box-shadow: var(--shadow);
}

.search-results {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	gap: 1.25rem;
}
.search-results__item {
	padding: 1.25rem 1.5rem;
	background: var(--white);
	border: 1px solid var(--line);
	border-radius: var(--radius-sm);
}
.search-results__item h2 {
	margin: 0 0 0.35rem;
	font-size: 1.15rem;
}
.search-results__item p {
	margin: 0;
	color: var(--muted);
}
.contacts-map__hint {
	margin-top: 1rem;
	padding: 1rem 1.25rem;
	background: var(--coral-light);
	border-radius: var(--radius-sm);
	font-size: 0.875rem;
	border-left: 3px solid var(--coral);
}

/* ── Price page ── */
.price-hero {
	background: var(--ink);
	color: var(--white);
	padding: 4rem 0 3rem;
}
.price-hero h1 { font-size: 2.5rem; font-weight: 800; margin: 0 0 0.75rem; }
.price-hero p { opacity: 0.7; margin: 0; }

.price-search {
	position: sticky;
	top: var(--header-h);
	z-index: 50;
	background: var(--white);
	border-bottom: 1px solid var(--line);
	padding: 1rem 0;
}
.price-search__input {
	width: 100%;
	padding: 0.85rem 1.25rem 0.85rem 2.75rem;
	border: 2px solid var(--line);
	border-radius: 999px;
	font-family: var(--font);
	font-size: 0.95rem;
	transition: border-color var(--transition);
	background: var(--bg) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' fill='%236b7280' viewBox='0 0 16 16'%3E%3Cpath d='M11.742 10.344a6.5 6.5 0 1 0-1.397 1.398h-.001l3.85 3.85a1 1 0 0 0 1.415-1.414l-3.85-3.85zm-5.242 1.156a5 5 0 1 1 0-10 5 5 0 0 1 0 10z'/%3E%3C/svg%3E") 1rem center no-repeat;
}
.price-search__input:focus {
	outline: none;
	border-color: var(--coral);
}

.price-nav {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
	padding: 1.5rem 0;
}
.price-nav a {
	padding: 0.45rem 1rem;
	background: var(--white);
	border: 1px solid var(--line);
	border-radius: 999px;
	font-size: 0.8rem;
	font-weight: 600;
	color: var(--ink-soft);
	transition: all var(--transition);
}
.price-nav a:hover, .price-nav a.is-active {
	background: var(--coral);
	border-color: var(--coral);
	color: var(--white);
}

.price-category {
	margin-bottom: 3rem;
	scroll-margin-top: calc(var(--header-h) + 80px);
}
.price-category h2 {
	font-size: 1.35rem;
	font-weight: 800;
	margin-bottom: 1rem;
	padding-bottom: 0.75rem;
	border-bottom: 2px solid var(--coral-light);
}
.price-table { width: 100%; border-collapse: collapse; }
.price-table tr { border-bottom: 1px solid var(--line); transition: background var(--transition); }
.price-table tr:hover { background: var(--coral-light); }
.price-table tr.is-hidden { display: none; }
.price-table td { padding: 0.85rem 0; font-size: 0.925rem; vertical-align: top; }
.price-table td:last-child {
	text-align: right;
	font-weight: 700;
	color: var(--coral-dark);
	padding-left: 1rem;
	min-width: 5.5rem;
}
.price-table td:first-child {
	padding-right: 1rem;
	word-break: break-word;
}
.price-table .price-note { color: var(--muted); font-weight: 500; font-style: italic; }
.price-disclaimer {
	margin-top: 3rem;
	padding: 1.5rem;
	background: var(--bg-alt);
	border-radius: var(--radius-sm);
	font-size: 0.875rem;
	color: var(--muted);
	text-align: center;
}

/* ── Doctor single ── */
.doctor-profile {
	display: grid;
	grid-template-columns: 280px 1fr;
	gap: 3rem;
	padding: 3rem 0;
}
.doctor-profile__photo {
	border-radius: var(--radius);
	overflow: hidden;
	background: var(--bg-alt);
	aspect-ratio: 3/4;
}
.doctor-profile__photo img { width: 100%; height: 100%; object-fit: cover; }
.doctor-profile__meta {
	display: flex;
	flex-wrap: wrap;
	gap: 0.75rem;
	margin: 1rem 0 1.5rem;
}
.doctor-profile__tag {
	padding: 0.35rem 0.85rem;
	background: var(--coral-light);
	border-radius: 999px;
	font-size: 0.8rem;
	font-weight: 600;
	color: var(--coral-dark);
}

/* ── Legal / content pages ── */
.page-hero {
	background: var(--ink);
	color: var(--white);
	padding: 3.5rem 0;
}
.page-hero h1 { font-size: 2.25rem; font-weight: 800; margin: 0; }

.prose { max-width: 780px; }
.prose h2 { font-size: 1.5rem; font-weight: 800; margin: 2.5rem 0 1rem; }
.prose h3 { font-size: 1.15rem; font-weight: 700; margin: 2rem 0 0.75rem; }
.prose p, .prose li { color: var(--ink-soft); }
.prose ul, .prose ol { padding-left: 1.5rem; }
.prose ul li { margin-bottom: 0.5rem; }
.prose a { color: var(--coral-dark); font-weight: 600; }

.legal-grid {
	display: grid;
	grid-template-columns: 240px 1fr;
	gap: 3rem;
	padding: 3rem 0;
}
.legal-nav { position: sticky; top: calc(var(--header-h) + 1rem); }
.legal-nav ul { list-style: none; padding: 0; margin: 0; }
.legal-nav a {
	display: block;
	padding: 0.6rem 0;
	font-size: 0.875rem;
	font-weight: 600;
	color: var(--muted);
	border-bottom: 1px solid var(--line);
}
.legal-nav a:hover, .legal-nav a.is-active { color: var(--coral); }

.info-table { width: 100%; border-collapse: collapse; margin: 1.5rem 0; }
.info-table th, .info-table td {
	padding: 0.75rem 1rem;
	text-align: left;
	border-bottom: 1px solid var(--line);
	font-size: 0.925rem;
}
.info-table th { font-weight: 600; color: var(--muted); width: 35%; vertical-align: top; }

.table-scroll {
	overflow-x: auto;
	-webkit-overflow-scrolling: touch;
	margin: 0 calc(var(--gutter) * -1);
	padding: 0 var(--gutter);
}

.legal-nav__scroll {
	display: none;
	flex-wrap: nowrap;
	gap: 0.5rem;
	overflow-x: auto;
	padding-bottom: 0.5rem;
	margin-bottom: 1.5rem;
	-webkit-overflow-scrolling: touch;
	scrollbar-width: none;
}
.legal-nav__scroll::-webkit-scrollbar { display: none; }
.legal-nav__scroll a {
	flex-shrink: 0;
	padding: 0.55rem 1rem;
	background: var(--white);
	border: 1px solid var(--line);
	border-radius: 999px;
	font-size: 0.8rem;
	font-weight: 600;
	color: var(--ink-soft);
	white-space: nowrap;
}
.legal-nav__scroll a.is-active,
.legal-nav__scroll a:hover {
	background: var(--coral-light);
	border-color: var(--coral);
	color: var(--coral-dark);
}

/* ── Footer ── */
.site-footer {
	background: var(--ink);
	color: rgba(255,255,255,0.7);
	padding: 4rem 0 0;
}
.site-footer a { color: rgba(255,255,255,0.85); }
.site-footer a:hover { color: var(--coral); }
.site-footer__grid {
	display: grid;
	grid-template-columns: 1.5fr 1fr 1fr 1fr;
	gap: 2.5rem;
	padding-bottom: 3rem;
}
.site-footer__brand p { font-size: 0.875rem; margin-top: 1rem; line-height: 1.7; }
.site-footer__heading {
	font-size: 0.75rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.08em;
	color: var(--white);
	margin-bottom: 1.25rem;
}
.site-footer__links { list-style: none; padding: 0; margin: 0; }
.site-footer__links li { margin-bottom: 0.6rem; }
.site-footer__links a { font-size: 0.875rem; }
.site-footer__legal {
	border-top: 1px solid rgba(255,255,255,0.1);
	padding: 1.5rem 0;
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	gap: 1rem;
	font-size: 0.75rem;
}

/* ── Section blocks (ACF) ── */
.section--hero {
	min-height: 420px;
	display: flex;
	align-items: center;
	background-size: cover;
	background-position: center;
	color: var(--white);
	position: relative;
}
.section--hero::before {
	content: '';
	position: absolute;
	inset: 0;
	background: linear-gradient(135deg, rgba(26,26,46,0.8), rgba(107,69,69,0.65));
}
.section--hero__content { position: relative; z-index: 1; }
.section--hero h1 { font-size: clamp(2rem, 4vw, 3rem); font-weight: 800; margin: 0 0 1rem; }
.section--hero__subtitle { font-size: 1.1rem; opacity: 0.9; max-width: 600px; margin-bottom: 1.5rem; }
.section--cta { background: linear-gradient(135deg, var(--coral), var(--ruby)); color: var(--white); }
.section--cta h2 { color: var(--white); }
.section--cta__inner { text-align: center; }

/* ── Desktop header layout ── */
@media (min-width: 1025px) {
	:root { --header-h: 80px; }

	.site-header-group {
		display: grid;
		grid-template-areas: "header-bar";
		align-items: center;
	}

	.site-header-shell {
		grid-area: header-bar;
		width: 100%;
	}

	.site-header {
		backdrop-filter: blur(12px);
	}

	.site-header__inner {
		display: flex;
		align-items: center;
		justify-content: space-between;
		gap: 1.5rem;
	}

	.site-nav {
		grid-area: header-bar;
		position: relative;
		justify-self: center;
		align-self: center;
		z-index: 1;
		width: auto;
		max-width: min(100% - 420px, 720px);
		transform: none;
		visibility: visible;
		pointer-events: none;
		display: flex;
		justify-content: center;
	}

	.site-nav__panel {
		display: contents;
		height: auto;
		background: none;
		box-shadow: none;
		padding: 0;
		overflow: visible;
	}

	.site-nav__head,
	.site-nav__footer,
	.site-nav__close {
		display: none !important;
	}

	.site-nav .site-nav__list {
		flex-direction: row;
		flex-wrap: wrap;
		justify-content: center;
		gap: 0.15rem;
		pointer-events: auto;
	}

	.site-nav .site-nav__list a {
		padding: 0.55rem 0.75rem;
		font-size: 0.875rem;
		min-height: auto;
	}

	.burger {
		display: none !important;
	}
}

@media (max-width: 1024px) {
	.site-header__inner > .site-search {
		display: none;
	}
	.site-search--mobile {
		display: flex;
	}

	.burger {
		display: flex;
	}
}

@media (min-width: 1025px) {
	.legal-nav__scroll { display: none; }
	.legal-nav--desktop { display: block; }
}

/* ── Tablet ── */
@media (max-width: 1024px) {
	.site-footer__grid { grid-template-columns: 1fr 1fr; gap: 2rem; }
	.feature { grid-template-columns: 1fr; gap: 2rem; }
	.feature--reverse { direction: ltr; }
	.feature__image img { height: auto; min-height: 220px; max-height: 360px; }
	.doctor-profile { grid-template-columns: 1fr; gap: 2rem; padding: 2rem 0; }
	.doctor-profile__photo { max-width: 320px; margin-inline: auto; width: 100%; }
	.legal-grid { grid-template-columns: 1fr; gap: 0; padding: 2rem 0; }
	.legal-nav--desktop { display: none; }
	.legal-nav__scroll { display: flex; }
	.page-hero { padding: 2.5rem 0; }
	.page-hero h1 { font-size: clamp(1.5rem, 5vw, 2.25rem); }
	.price-hero { padding: 2.5rem 0 2rem; }
	.price-hero h1 { font-size: clamp(1.5rem, 5vw, 2.25rem); }
	.section { padding: 3.5rem 0; }
	.section__header { margin-bottom: 2.5rem; }
	.cards { grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
}

/* ── Mobile ── */
@media (max-width: 768px) {
	:root { --header-h: 64px; }

	.logo { font-size: 1rem; }
	.site-header__phone,
	.site-header__cta,
	.site-header__a11y {
		display: none;
	}

	.hero { min-height: auto; }
	.hero__content { padding: 2.5rem 0 3rem; }
	.hero__badge { font-size: 0.7rem; }
	.hero__subtitle { font-size: 1rem; margin-bottom: 1.5rem; }
	.hero__actions {
		flex-direction: column;
		align-items: stretch;
	}
	.hero__actions .btn {
		width: 100%;
		justify-content: center;
	}
	.hero__stats {
		flex-direction: column;
		gap: 1.25rem;
		margin-top: 2rem;
		padding-top: 1.5rem;
	}
	.hero__stat strong { font-size: 1.5rem; }

	.section { padding: 2.75rem 0; }
	.section__header { margin-bottom: 2rem; }
	.section__desc { font-size: 0.95rem; }

	.cards {
		grid-template-columns: 1fr;
		gap: 1rem;
	}
	.card { padding: 1.5rem; }
	.card:hover { transform: none; }

	.contacts-grid { grid-template-columns: 1fr; gap: 2rem; }
	.contacts-info__item { align-items: flex-start; }

	.cta-banner {
		padding: 2rem 1.25rem;
		border-radius: var(--radius-sm);
	}
	.cta-banner .btn { width: 100%; }

	.site-footer { padding-top: 2.5rem; }
	.site-footer__grid {
		grid-template-columns: 1fr;
		gap: 2rem;
		padding-bottom: 2rem;
	}
	.site-footer__legal {
		flex-direction: column;
		text-align: center;
		padding-bottom: max(1.5rem, env(safe-area-inset-bottom));
	}

	.price-search {
		top: var(--header-h);
		padding: 0.75rem 0;
	}
	.price-nav {
		flex-wrap: nowrap;
		overflow-x: auto;
		padding-bottom: 0.75rem;
		margin: 0 calc(var(--gutter) * -1);
		padding-left: var(--gutter);
		padding-right: var(--gutter);
		-webkit-overflow-scrolling: touch;
		scrollbar-width: none;
	}
	.price-nav::-webkit-scrollbar { display: none; }
	.price-nav a { flex-shrink: 0; }

	.price-table thead { display: none; }
	.price-table tr {
		display: grid;
		grid-template-columns: 1fr auto;
		gap: 0.35rem 1rem;
		padding: 0.85rem 0;
		align-items: start;
	}
	.price-table td {
		padding: 0;
		font-size: 0.875rem;
	}
	.price-table td:last-child {
		text-align: right;
		align-self: start;
		font-size: 0.9rem;
	}

	.info-table,
	.info-table tbody,
	.info-table tr,
	.info-table th,
	.info-table td {
		display: block;
		width: 100%;
	}
	.info-table tr {
		padding: 0.85rem 0;
		border-bottom: 1px solid var(--line);
	}
	.info-table th {
		width: 100%;
		padding: 0 0 0.25rem;
		font-size: 0.75rem;
		border: none;
	}
	.info-table td {
		padding: 0;
		border: none;
	}

	.prose h2 { font-size: 1.25rem; margin-top: 2rem; }
	.prose h3 { font-size: 1.05rem; }

	.btn {
		padding: 0.85rem 1.35rem;
		min-height: 48px;
	}

	.section--hero { min-height: 320px; padding: 2rem 0; }
}

@media (max-width: 380px) {
	:root { --nav-width: 100vw; }
	.logo { font-size: 0.9rem; }
}
