/* =====================================================
   Denta Lux — main stylesheet
   ===================================================== */

:root {
	--font-main: 'Manrope', system-ui, -apple-system, 'Segoe UI', sans-serif;

	--color-bg: #ffffff;
	--color-bg-soft: #f5faf9;
	--color-bg-soft-2: #eef8f6;
	--color-bg-dark: #0b3d38;

	--color-primary: #17a398;
	--color-primary-dark: #0d6d64;
	--color-primary-light: #6bd9c9;
	--color-accent: #ff8a5c;
	--color-accent-dark: #e96f3e;

	--color-text: #16221f;
	--color-text-soft: #5c6d69;
	--color-text-faint: #93a4a0;
	--color-border: #e3eeec;
	--color-white: #ffffff;

	--shadow-sm: 0 2px 10px rgba(13, 109, 100, 0.06);
	--shadow-md: 0 12px 30px rgba(13, 109, 100, 0.12);
	--shadow-lg: 0 25px 60px rgba(13, 109, 100, 0.16);

	--radius-sm: 10px;
	--radius-md: 18px;
	--radius-lg: 28px;
	--radius-pill: 999px;

	--ease: cubic-bezier(.16,.84,.44,1);
	--transition: .4s var(--ease);

	--header-h: 88px;
	--topbar-h: 40px;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
	margin: 0;
	font-family: var(--font-main);
	color: var(--color-text);
	background: var(--color-bg);
	font-size: 16px;
	line-height: 1.6;
	-webkit-font-smoothing: antialiased;
	overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; margin: 0; padding: 0; }
button { font: inherit; cursor: pointer; background: none; border: none; color: inherit; }
h1, h2, h3, h4 { font-family: var(--font-main); font-weight: 800; line-height: 1.15; margin: 0 0 .5em; letter-spacing: -0.02em; }
p { margin: 0 0 1em; }
.icon { width: 1em; height: 1em; display: inline-block; vertical-align: -0.15em; }

.screen-reader-text, .skip-link {
	position: absolute; left: -9999px; top: auto; width: 1px; height: 1px; overflow: hidden;
}
.skip-link:focus {
	left: 1rem; top: 1rem; width: auto; height: auto; z-index: 10000;
	background: var(--color-primary-dark); color: #fff; padding: .75rem 1.25rem; border-radius: var(--radius-sm);
}

.container {
	width: 100%;
	max-width: 1240px;
	margin: 0 auto;
	padding: 0 24px;
}

.section { padding: 96px 0; position: relative; }
.section-head { max-width: 720px; margin: 0 auto 56px; text-align: center; }
.section-head h2 { font-size: clamp(1.9rem, 3.2vw, 2.6rem); }
.section-lead { color: var(--color-text-soft); font-size: 1.05rem; }
.eyebrow {
	display: inline-flex; align-items: center; gap: 8px;
	color: var(--color-primary-dark); font-weight: 700; font-size: .8rem;
	text-transform: uppercase; letter-spacing: .12em; margin: 0 0 .9em;
}
.eyebrow::before { content: ''; width: 22px; height: 2px; background: var(--color-primary); border-radius: 2px; }
.section-head .eyebrow { justify-content: center; }
.section-head .eyebrow::before { display: none; }
.text-accent { color: var(--color-primary); }

.section-cta { text-align: center; margin-top: 48px; }

/* ---------- Buttons ---------- */
.btn {
	display: inline-flex; align-items: center; justify-content: center; gap: 10px;
	padding: 15px 28px; border-radius: var(--radius-pill);
	font-weight: 700; font-size: .95rem; white-space: nowrap;
	transition: transform .35s var(--ease), box-shadow .35s var(--ease), background .35s var(--ease), color .35s var(--ease);
	position: relative; overflow: hidden;
}
.btn svg { width: 18px; height: 18px; transition: transform .35s var(--ease); }
.btn--primary {
	background: linear-gradient(135deg, var(--color-primary), var(--color-primary-dark));
	color: #fff; box-shadow: var(--shadow-md);
}
.btn--primary:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.btn--primary:hover svg { transform: translateX(3px); }
.btn--ghost {
	background: var(--color-bg-soft); color: var(--color-primary-dark);
	border: 1px solid var(--color-border);
}
.btn--ghost:hover { background: var(--color-bg-soft-2); transform: translateY(-3px); }
.btn--lg { padding: 18px 32px; font-size: 1rem; }
.btn--sm { padding: 10px 20px; font-size: .85rem; }
.btn--wide { width: 100%; }

.magnetic { will-change: transform; }

/* ---------- Topbar ---------- */
.topbar {
	background: var(--color-bg-dark); color: rgba(255,255,255,.85);
	font-size: .78rem; overflow: hidden; height: var(--topbar-h);
}
.topbar__inner { display: flex; align-items: center; height: 100%; }
.topbar__staff {
	display: flex; gap: 32px; white-space: nowrap;
	animation: marquee 30s linear infinite;
}
.topbar:hover .topbar__staff { animation-play-state: paused; }
.topbar__staff li { display: flex; gap: 6px; align-items: center; }
.topbar__role { color: var(--color-primary-light); }
.topbar__staff a { color: #fff; font-weight: 600; }
.topbar__staff a:hover { color: var(--color-primary-light); }
@keyframes marquee {
	0% { transform: translateX(0); }
	100% { transform: translateX(-50%); }
}

/* ---------- Header ---------- */
.site-header {
	position: sticky; top: 0; z-index: 500;
	background: rgba(255,255,255,.85);
	backdrop-filter: blur(14px);
	-webkit-backdrop-filter: blur(14px);
	border-bottom: 1px solid transparent;
	transition: box-shadow .3s var(--ease), border-color .3s var(--ease), background .3s var(--ease);
}
.site-header.is-scrolled {
	box-shadow: var(--shadow-sm);
	border-color: var(--color-border);
}
.site-header__inner {
	display: flex; align-items: center; justify-content: space-between;
	height: var(--header-h); gap: 24px;
}
.brand img { height: 52px; width: auto; transition: height .3s var(--ease); }
.site-header.is-scrolled .brand img { height: 42px; }

.nav-menu { display: flex; gap: 8px; }
.nav-menu a {
	display: inline-block; padding: 10px 16px; border-radius: var(--radius-pill);
	font-weight: 600; font-size: .95rem; color: var(--color-text);
	transition: background .3s var(--ease), color .3s var(--ease);
}
.nav-menu a:hover { background: var(--color-bg-soft); color: var(--color-primary-dark); }

.site-header__actions { display: flex; align-items: center; gap: 14px; }
.header-phone { display: flex; align-items: center; gap: 8px; font-weight: 700; color: var(--color-primary-dark); }
.header-phone svg { width: 18px; height: 18px; }
.header-phone span { display: none; }

.nav-toggle {
	display: none; width: 44px; height: 44px; align-items: center; justify-content: center;
	border-radius: var(--radius-pill); background: var(--color-bg-soft);
}
.nav-toggle .icon-close { display: none; }
.nav-toggle[aria-expanded="true"] .icon-menu { display: none; }
.nav-toggle[aria-expanded="true"] .icon-close { display: block; }

/* ---------- Hero ---------- */
.hero {
	position: relative; overflow: hidden;
	padding: 72px 0 60px;
	background: radial-gradient(circle at 15% 20%, var(--color-bg-soft), var(--color-bg) 55%);
}
.hero__bg { position: absolute; inset: 0; z-index: 0; pointer-events: none; }
.hero-grid {
	position: absolute; inset: -10% -10%;
	background-image: radial-gradient(circle, rgba(23,163,152,.14) 1.5px, transparent 1.5px);
	background-size: 26px 26px;
	mask-image: radial-gradient(circle at 70% 30%, black, transparent 65%);
}
.blob {
	position: absolute; border-radius: 50%;
	filter: blur(4px);
	opacity: .55;
	background: conic-gradient(from 180deg, var(--color-primary-light), var(--color-primary), var(--color-accent), var(--color-primary-light));
	animation: float-blob 14s ease-in-out infinite;
	will-change: transform;
}
.blob--1 { width: 460px; height: 460px; top: -160px; right: -120px; animation-duration: 16s; }
.blob--2 { width: 300px; height: 300px; bottom: -100px; left: -80px; opacity: .35; animation-duration: 20s; animation-delay: -4s; }
.blob--3 { width: 180px; height: 180px; top: 40%; left: 46%; opacity: .25; animation-duration: 12s; animation-delay: -8s; }
@keyframes float-blob {
	0%, 100% { transform: translate(0,0) scale(1); }
	33% { transform: translate(24px,-22px) scale(1.06); }
	66% { transform: translate(-18px,18px) scale(.96); }
}
.float-icon {
	position: absolute; width: 34px; height: 34px; color: var(--color-primary);
	opacity: .5; animation: float-icon 8s ease-in-out infinite;
}
.float-icon--1 { top: 18%; left: 6%; animation-delay: 0s; }
.float-icon--2 { top: 66%; left: 12%; width: 24px; height: 24px; color: var(--color-accent); animation-delay: -2s; }
.float-icon--3 { top: 12%; right: 8%; width: 26px; height: 26px; color: var(--color-accent); animation-delay: -4s; }
.float-icon--4 { bottom: 10%; right: 14%; animation-delay: -6s; }
@keyframes float-icon {
	0%, 100% { transform: translateY(0) rotate(0deg); }
	50% { transform: translateY(-18px) rotate(8deg); }
}

.hero__inner {
	position: relative; z-index: 1;
	display: grid; grid-template-columns: 1.1fr .9fr; gap: 56px; align-items: center;
	min-height: 60vh;
}
.hero h1 { font-size: clamp(2.2rem, 4.6vw, 3.6rem); margin-bottom: .45em; }
.hero__lead { font-size: 1.08rem; color: var(--color-text-soft); max-width: 560px; }
.hero__lead strong { color: var(--color-primary-dark); }
.hero__actions { display: flex; gap: 16px; flex-wrap: wrap; margin: 28px 0 12px; }
.hero__note { font-size: .82rem; color: var(--color-text-faint); }

.hero__stats { display: flex; gap: 40px; margin-top: 36px; }
.stat__num { display: block; font-size: 2.1rem; font-weight: 800; color: var(--color-primary-dark); }
.stat__label { font-size: .82rem; color: var(--color-text-soft); }

.hero__visual { position: relative; }
.hero-card {
	position: relative; border-radius: var(--radius-lg); overflow: hidden;
	box-shadow: var(--shadow-lg);
	transform: perspective(1000px) rotateX(var(--ry, 0deg)) rotateY(var(--rx, 0deg));
	transition: transform .25s ease-out;
	will-change: transform;
}
.hero-card img { width: 100%; height: 480px; object-fit: cover; }
.hero-card__badge {
	position: absolute; left: 20px; bottom: 20px;
	display: flex; align-items: center; gap: 10px;
	background: rgba(255,255,255,.92); backdrop-filter: blur(8px);
	padding: 12px 18px; border-radius: var(--radius-pill); box-shadow: var(--shadow-md);
	font-weight: 700; font-size: .88rem;
}
.hero-card__badge svg { width: 20px; height: 20px; color: var(--color-primary); }

.scroll-cue {
	position: absolute; bottom: 20px; left: 50%; transform: translateX(-50%);
	width: 30px; height: 46px; border: 2px solid var(--color-border); border-radius: var(--radius-pill);
	display: flex; justify-content: center; padding-top: 8px; z-index: 1;
}
.scroll-cue span { width: 4px; height: 8px; background: var(--color-primary); border-radius: 4px; animation: scroll-cue 1.8s ease-in-out infinite; }
@keyframes scroll-cue {
	0% { opacity: 1; transform: translateY(0); }
	70% { opacity: 0; transform: translateY(14px); }
	100% { opacity: 0; }
}

/* ---------- Reveal animations ---------- */
[data-reveal] {
	opacity: 0; transform: translateY(28px);
	transition: opacity .8s var(--ease), transform .8s var(--ease);
	transition-delay: var(--delay, 0ms);
}
[data-reveal].is-visible { opacity: 1; transform: translateY(0); }

/* ---------- Services teaser ---------- */
.cards-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.service-card {
	display: block; padding: 32px 28px; background: var(--color-bg-soft);
	border-radius: var(--radius-md); border: 1px solid transparent;
	transition: transform .4s var(--ease), box-shadow .4s var(--ease), background .4s var(--ease), border-color .4s var(--ease);
	position: relative;
}
.service-card:hover {
	transform: translateY(-8px); background: var(--color-white);
	box-shadow: var(--shadow-lg); border-color: var(--color-border);
}
.service-card__icon {
	display: inline-flex; align-items: center; justify-content: center;
	width: 54px; height: 54px; border-radius: var(--radius-sm);
	background: linear-gradient(135deg, var(--color-primary-light), var(--color-primary));
	color: #fff; margin-bottom: 20px;
}
.service-card__icon svg { width: 26px; height: 26px; }
.service-card h3 { font-size: 1.15rem; margin-bottom: .4em; }
.service-card p { color: var(--color-text-soft); font-size: .92rem; margin-bottom: 0; }
.service-card__arrow {
	position: absolute; right: 24px; bottom: 24px; width: 32px; height: 32px;
	border-radius: 50%; background: var(--color-white); box-shadow: var(--shadow-sm);
	display: flex; align-items: center; justify-content: center; color: var(--color-primary);
	opacity: 0; transform: translate(-6px, 6px); transition: all .35s var(--ease);
}
.service-card__arrow svg { width: 16px; height: 16px; }
.service-card:hover .service-card__arrow { opacity: 1; transform: translate(0,0); }

/* ---------- Steps ---------- */
.steps__track { position: relative; display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.steps__track::before {
	content: ''; position: absolute; top: 34px; left: 8%; right: 8%; height: 2px;
	background: repeating-linear-gradient(90deg, var(--color-border) 0 10px, transparent 10px 18px);
}
.step { position: relative; text-align: center; padding: 0 12px; }
.step__num {
	display: inline-flex; align-items: center; justify-content: center;
	width: 68px; height: 68px; border-radius: 50%; margin-bottom: 20px;
	background: var(--color-white); border: 2px solid var(--color-primary);
	color: var(--color-primary-dark); font-weight: 800; font-size: 1.1rem;
	box-shadow: var(--shadow-sm); position: relative; z-index: 1;
	transition: transform .4s var(--ease), background .4s var(--ease), color .4s var(--ease);
}
.step:hover .step__num { transform: scale(1.08); background: var(--color-primary); color: #fff; }
.step h3 { font-size: 1.15rem; }
.step p { color: var(--color-text-soft); font-size: .92rem; }

/* ---------- Features ---------- */
.features { background: var(--color-bg-soft); }
.features__list { display: flex; flex-direction: column; gap: 28px; max-width: 920px; margin: 0 auto; }
.feature-row {
	display: flex; align-items: center; gap: 32px;
	background: var(--color-white); border-radius: var(--radius-md);
	padding: 32px; box-shadow: var(--shadow-sm);
	transition: transform .4s var(--ease), box-shadow .4s var(--ease);
}
.feature-row:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.feature-row.is-reverse { flex-direction: row-reverse; }
.feature-row__index {
	flex: none; width: 72px; height: 72px; border-radius: 50%;
	display: flex; align-items: center; justify-content: center;
	font-weight: 800; font-size: 1.3rem; color: var(--color-primary);
	background: linear-gradient(135deg, var(--color-bg-soft-2), var(--color-white));
	border: 1px solid var(--color-border);
}
.feature-row__body h3 { font-size: 1.2rem; margin-bottom: .35em; }
.feature-row__body p { color: var(--color-text-soft); margin: 0; font-size: .95rem; }

.pull-quote {
	max-width: 640px; margin: 56px auto 0; text-align: center; padding: 0; border: none;
}
.pull-quote p {
	font-size: 1.5rem; font-weight: 700; color: var(--color-primary-dark);
	font-style: normal; position: relative; margin-bottom: .5em;
}
.pull-quote cite { font-style: normal; color: var(--color-text-soft); font-size: .92rem; }
.pull-quote cite a { color: var(--color-primary-dark); font-weight: 700; }

/* ---------- Doctors ---------- */
.doctors-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.doctor-card {
	text-align: center; padding: 40px 24px; background: var(--color-white);
	border: 1px solid var(--color-border); border-radius: var(--radius-md);
	transition: transform .4s var(--ease), box-shadow .4s var(--ease);
}
.doctor-card:hover { transform: translateY(-8px); box-shadow: var(--shadow-lg); }
.doctor-card__avatar {
	width: 84px; height: 84px; margin: 0 auto 20px; border-radius: 50%;
	background: linear-gradient(135deg, var(--color-primary-light), var(--color-primary-dark));
	display: flex; align-items: center; justify-content: center; color: #fff;
}
.doctor-card__avatar svg { width: 38px; height: 38px; }
.doctor-card h3 { font-size: 1.08rem; margin-bottom: .3em; }
.doctor-card__role { color: var(--color-text-soft); font-size: .88rem; min-height: 2.6em; }
.doctor-card__phone {
	display: inline-flex; align-items: center; gap: 8px; margin-top: 14px;
	font-weight: 700; color: var(--color-primary-dark); padding: 8px 16px;
	border-radius: var(--radius-pill); background: var(--color-bg-soft);
	transition: background .3s var(--ease);
}
.doctor-card__phone svg { width: 16px; height: 16px; }
.doctor-card__phone:hover { background: var(--color-bg-soft-2); }
.doctors--compact { padding-top: 0; }

/* ---------- Gallery (carousel) ---------- */
.gallery-carousel-wrap { position: relative; display: flex; align-items: center; gap: 12px; }
.gallery-carousel {
	display: flex; gap: 18px; overflow-x: auto; scroll-snap-type: x mandatory;
	scroll-behavior: smooth; padding: 4px 4px 20px;
	-ms-overflow-style: none; scrollbar-width: none;
}
.gallery-carousel::-webkit-scrollbar { display: none; }
.gallery-item {
	position: relative; overflow: hidden; border-radius: var(--radius-md);
	flex: 0 0 auto; width: clamp(220px, 27vw, 340px); aspect-ratio: 4 / 3;
	scroll-snap-align: start; box-shadow: var(--shadow-sm);
}
.gallery-item img {
	width: 100%; height: 100%; object-fit: cover;
	transition: transform .6s var(--ease);
}
.gallery-item:hover img { transform: scale(1.08); }
.gallery-item__zoom {
	position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
	background: linear-gradient(0deg, rgba(11,61,56,.55), rgba(11,61,56,0) 60%);
	opacity: 0; transition: opacity .35s var(--ease);
}
.gallery-item__zoom svg { width: 30px; height: 30px; color: #fff; }
.gallery-item:hover .gallery-item__zoom { opacity: 1; }

.gallery-nav {
	flex: none; width: 52px; height: 52px; border-radius: 50%;
	background: var(--color-white); border: 1px solid var(--color-border); box-shadow: var(--shadow-sm);
	display: flex; align-items: center; justify-content: center; color: var(--color-primary-dark);
	transition: transform .3s var(--ease), box-shadow .3s var(--ease), background .3s var(--ease);
}
.gallery-nav svg { width: 20px; height: 20px; }
.gallery-nav--prev svg { transform: rotate(180deg); }
.gallery-nav:hover { background: var(--color-primary); color: #fff; box-shadow: var(--shadow-md); transform: scale(1.05); }
.gallery-nav:disabled { opacity: .35; pointer-events: none; }

.lightbox {
	position: fixed; inset: 0; z-index: 2000; background: rgba(7,28,26,.92);
	display: flex; align-items: center; justify-content: center;
	opacity: 0; visibility: hidden; transition: opacity .35s var(--ease);
	backdrop-filter: blur(6px);
}
.lightbox.is-open { opacity: 1; visibility: visible; }
.lightbox__img {
	max-width: 88vw; max-height: 82vh; border-radius: var(--radius-md);
	box-shadow: var(--shadow-lg); transform: scale(.94); transition: transform .35s var(--ease);
}
.lightbox.is-open .lightbox__img { transform: scale(1); }
.lightbox__close, .lightbox__prev, .lightbox__next {
	position: absolute; width: 52px; height: 52px; border-radius: 50%;
	background: rgba(255,255,255,.12); color: #fff; display: flex; align-items: center; justify-content: center;
	transition: background .3s var(--ease);
}
.lightbox__close:hover, .lightbox__prev:hover, .lightbox__next:hover { background: rgba(255,255,255,.25); }
.lightbox__close { top: 24px; right: 24px; }
.lightbox__close svg { width: 22px; height: 22px; }
.lightbox__prev, .lightbox__next { top: 50%; transform: translateY(-50%); }
.lightbox__prev { left: 24px; }
.lightbox__prev svg { transform: rotate(180deg); width: 22px; height: 22px; }
.lightbox__next { right: 24px; }
.lightbox__next svg { width: 22px; height: 22px; }

/* ---------- Contact ---------- */
.contact__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: start; }
.contact-list { display: flex; flex-direction: column; gap: 20px; margin: 28px 0 32px; }
.contact-list li { display: flex; gap: 16px; align-items: flex-start; }
.contact-list svg { width: 22px; height: 22px; color: var(--color-primary); flex: none; margin-top: 2px; }
.contact-list span { display: block; font-size: .8rem; color: var(--color-text-faint); }
.contact-list strong { font-size: 1rem; font-weight: 700; }
.contact-map { border-radius: var(--radius-md); overflow: hidden; box-shadow: var(--shadow-sm); }
.contact-map iframe { display: block; filter: grayscale(.15) contrast(1.02); }
.contact-map__link {
	display: flex; align-items: center; gap: 10px; justify-content: center;
	padding: 14px; font-weight: 700; font-size: .88rem; color: var(--color-primary-dark);
	background: var(--color-bg-soft); border-top: 1px solid var(--color-border);
	transition: background .3s var(--ease);
}
.contact-map__link svg { width: 18px; height: 18px; }
.contact-map__link:hover { background: var(--color-bg-soft-2); }

.contact-form {
	background: var(--color-bg-soft); border: 1px solid var(--color-border);
	border-radius: var(--radius-lg); padding: 40px; box-shadow: var(--shadow-sm);
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field { display: flex; flex-direction: column; gap: 8px; margin-bottom: 18px; font-size: .85rem; font-weight: 600; color: var(--color-text-soft); }
.field input, .field textarea {
	font: inherit; padding: 14px 16px; border-radius: var(--radius-sm);
	border: 1px solid var(--color-border); background: var(--color-white); color: var(--color-text);
	transition: border-color .3s var(--ease), box-shadow .3s var(--ease);
	resize: vertical;
}
.field input:focus, .field textarea:focus {
	outline: none; border-color: var(--color-primary); box-shadow: 0 0 0 4px rgba(23,163,152,.14);
}
.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.form-hint { font-size: .76rem; color: var(--color-text-faint); text-align: center; margin: 14px 0 0; }
.form-notice {
	padding: 14px 18px; border-radius: var(--radius-sm); font-weight: 600; font-size: .9rem;
	margin-bottom: 18px; display: flex; align-items: center; gap: 10px;
}
.form-notice svg { width: 18px; height: 18px; }
.form-notice--success { background: #e4f8f2; color: var(--color-primary-dark); }
.form-notice--error { background: #fdeee9; color: #c14a24; }

/* ---------- Footer ---------- */
.site-footer { background: var(--color-bg-dark); color: rgba(255,255,255,.78); padding: 72px 0 0; margin-top: 40px; }
.footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1.2fr 1.4fr; gap: 40px; padding-bottom: 56px; border-bottom: 1px solid rgba(255,255,255,.1); }
.footer__brand img { height: 44px; margin-bottom: 16px; filter: brightness(0) invert(1); }
.footer__brand p { font-size: .88rem; color: rgba(255,255,255,.6); }
.footer__col h3 { color: #fff; font-size: 1rem; margin-bottom: 18px; }
.footer-menu, .footer-contacts { display: flex; flex-direction: column; gap: 12px; }
.footer-menu a { font-size: .92rem; transition: color .3s var(--ease); }
.footer-menu a:hover { color: var(--color-primary-light); }
.footer-contacts li { display: flex; gap: 10px; align-items: flex-start; font-size: .9rem; }
.footer-contacts svg { width: 18px; height: 18px; color: var(--color-primary-light); flex: none; margin-top: 2px; }
.footer-contacts a:hover { color: var(--color-primary-light); }
.footer-map { border-radius: var(--radius-md); overflow: hidden; filter: grayscale(.3) invert(.92) contrast(.9); }
.footer-map__link {
	display: inline-block; margin-top: 12px; font-size: .85rem; font-weight: 700;
	color: var(--color-primary-light); transition: color .3s var(--ease);
}
.footer-map__link:hover { color: #fff; }
.footer__bottom { display: flex; align-items: center; justify-content: space-between; padding: 24px 0; font-size: .82rem; color: rgba(255,255,255,.5); }
.to-top {
	width: 44px; height: 44px; border-radius: 50%; background: rgba(255,255,255,.08);
	display: flex; align-items: center; justify-content: center; color: #fff;
	transition: background .3s var(--ease), transform .3s var(--ease);
}
.to-top svg { transform: rotate(-90deg); width: 18px; height: 18px; }
.to-top:hover { background: var(--color-primary); transform: translateY(-4px); }

/* ---------- Services page ---------- */
.page-hero {
	position: relative; overflow: hidden; padding: 64px 0 56px; text-align: center;
	background: radial-gradient(circle at 80% 20%, var(--color-bg-soft), var(--color-bg) 60%);
}
.page-hero h1 { font-size: clamp(2rem, 4vw, 2.8rem); }
.page-hero .section-lead { max-width: 560px; margin: 0 auto; }

.price-tabs {
	display: flex; justify-content: center; gap: 10px; margin-bottom: 44px; flex-wrap: wrap;
}
.price-tab {
	padding: 12px 24px; border-radius: var(--radius-pill); font-weight: 700; font-size: .92rem;
	background: var(--color-bg-soft); color: var(--color-text-soft);
	transition: all .35s var(--ease);
}
.price-tab.is-active { background: var(--color-primary-dark); color: #fff; box-shadow: var(--shadow-md); }

.price-panel { display: none; }
.price-panel.is-active { display: block; animation: fade-in .5s var(--ease); }
@keyframes fade-in { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }

.price-table {
	border: 1px solid var(--color-border); border-radius: var(--radius-md); overflow: hidden;
	max-width: 900px; margin: 0 auto;
}
.price-table__head, .price-row {
	display: flex; justify-content: space-between; gap: 24px; padding: 14px 24px;
}
.price-table__head {
	background: var(--color-bg-soft); font-weight: 700; font-size: .8rem;
	text-transform: uppercase; letter-spacing: .05em; color: var(--color-text-soft);
}
.price-row { border-top: 1px solid var(--color-border); transition: background .3s var(--ease); }
.price-row:hover { background: var(--color-bg-soft); }
.price-row.is-group { background: var(--color-bg-soft-2); font-weight: 700; }
.price-row.is-indent { padding-left: 44px; color: var(--color-text-soft); font-size: .94rem; }
.price-row__label { flex: 1; }
.price-row__price { flex: none; font-weight: 700; color: var(--color-primary-dark); white-space: nowrap; }
.price-note {
	max-width: 900px; margin: -8px auto 8px; padding: 0 24px; font-size: .8rem; color: var(--color-text-faint); font-style: italic;
}
.price-disclaimer { text-align: center; color: var(--color-text-faint); font-size: .85rem; margin-top: 40px; }

/* ---------- Generic page / posts / 404 ---------- */
.generic-page__inner { max-width: 820px; margin: 0 auto; }
.generic-page__head h1 { font-size: clamp(1.8rem, 3.4vw, 2.4rem); }
.generic-page__thumb { border-radius: var(--radius-md); overflow: hidden; margin: 24px 0; box-shadow: var(--shadow-sm); }
.generic-page__content { font-size: 1.02rem; color: var(--color-text-soft); }
.generic-page__content h2, .generic-page__content h3 { color: var(--color-text); margin-top: 1.4em; }
.generic-page__content a { color: var(--color-primary-dark); text-decoration: underline; }

.post-list { display: flex; flex-direction: column; gap: 32px; }
.post-list__item { display: flex; gap: 24px; padding-bottom: 32px; border-bottom: 1px solid var(--color-border); }
.post-list__thumb { flex: none; width: 220px; border-radius: var(--radius-md); overflow: hidden; }
.post-list__body h2 { font-size: 1.3rem; margin-bottom: .2em; }
.post-list__body a:hover { color: var(--color-primary-dark); }

.not-found__inner { text-align: center; max-width: 480px; margin: 0 auto; padding: 60px 0; }
.not-found__code {
	display: block; font-size: 5rem; font-weight: 800; color: var(--color-primary);
	line-height: 1; margin-bottom: .2em;
}

.comments-area { margin-top: 56px; padding-top: 40px; border-top: 1px solid var(--color-border); }
.comment-list { display: flex; flex-direction: column; gap: 20px; }

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
	.cards-grid, .doctors-grid { grid-template-columns: repeat(2, 1fr); }
	.hero__inner { grid-template-columns: 1fr; }
	.hero__visual { order: -1; }
	.hero-card img { height: 340px; }
	.footer__grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 860px) {
	:root { --header-h: 72px; }
	.topbar { display: none; }
	/* backdrop-filter on an ancestor turns position:fixed children into
	   position:absolute-within-that-ancestor, which breaks the full-screen
	   mobile menu overlay below — disable it on mobile so .nav-menu covers the viewport. */
	.site-header { backdrop-filter: none; -webkit-backdrop-filter: none; background: rgba(255,255,255,.98); }
	.nav-menu {
		position: fixed; inset: 72px 0 0 0; background: var(--color-white);
		flex-direction: column; padding: 24px; gap: 4px;
		transform: translateY(-12px); opacity: 0; visibility: hidden;
		transition: all .35s var(--ease); z-index: 400;
	}
	.nav-menu.is-open { transform: translateY(0); opacity: 1; visibility: visible; }
	.nav-menu a { display: block; padding: 16px; font-size: 1.05rem; border-bottom: 1px solid var(--color-border); }
	.header-phone { display: none; }
	.nav-toggle { display: flex; }
	.site-header__actions .btn--sm { display: none; }

	.steps__track { grid-template-columns: 1fr; gap: 40px; }
	.steps__track::before { display: none; }
	.feature-row, .feature-row.is-reverse { flex-direction: column; text-align: center; }
	.contact__grid { grid-template-columns: 1fr; gap: 40px; }
	.cards-grid, .doctors-grid { grid-template-columns: 1fr; }
	.form-row { grid-template-columns: 1fr; }
	.footer__grid { grid-template-columns: 1fr; }
	.post-list__item { flex-direction: column; }
	.post-list__thumb { width: 100%; }
}

@media (max-width: 600px) {
	.section { padding: 64px 0; }
	.hero { padding-top: 40px; }
	.hero__stats { gap: 24px; flex-wrap: wrap; }
	.gallery-item { width: 78vw; }
	.gallery-nav { width: 42px; height: 42px; }
	.contact-form { padding: 24px; }
	.footer__bottom { flex-direction: column; gap: 16px; text-align: center; }
}

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