/* ==========================================================
   Бишрэлт Эх Эмнэлэг — main stylesheet
   ========================================================== */

:root {
	--blue: #107bcd;
	--blue-bright: #068ef2;
	--blue-dark: #0b5c9c;
	--green: #49d012;
	--green-dark: #34a70a;
	--navy: #0d2640;
	--text: #42526a;
	--muted: #6b7a90;
	--line: #e3ecf5;
	--tint: #f1f7fd;
	--tint-green: #eefbe7;
	--white: #fff;
	--radius: 18px;
	--radius-sm: 12px;
	--shadow: 0 10px 30px rgba(13, 38, 64, .08);
	--shadow-lg: 0 24px 60px rgba(13, 38, 64, .14);
	--font-head: "Montserrat", system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
	--font-body: "Inter", system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
	--container: 1200px;
}

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

html { scroll-behavior: smooth; }

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

img { max-width: 100%; height: auto; display: block; }
a { color: var(--blue); text-decoration: none; transition: color .2s; }
a:hover { color: var(--blue-dark); }

h1, h2, h3, h4 {
	font-family: var(--font-head);
	color: var(--navy);
	line-height: 1.2;
	margin: 0 0 .6em;
	font-weight: 700;
}
h1 { font-size: clamp(2rem, 4.4vw, 3.3rem); font-weight: 800; letter-spacing: -.02em; }
h2 { font-size: clamp(1.6rem, 3vw, 2.35rem); letter-spacing: -.01em; }
h3 { font-size: 1.15rem; }
p { margin: 0 0 1em; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 20px; }
.container-narrow { max-width: 820px; }

.skip-link { position: absolute; left: -9999px; top: 0; z-index: 999; background: var(--navy); color: #fff; padding: 10px 16px; }
.skip-link:focus { left: 10px; top: 10px; color: #fff; }

.be-icon { flex-shrink: 0; }

/* ---------- Buttons ---------- */
.btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	padding: 12px 22px;
	border-radius: 999px;
	font-family: var(--font-head);
	font-weight: 700;
	font-size: .95rem;
	line-height: 1.2;
	border: 2px solid transparent;
	cursor: pointer;
	transition: transform .2s, box-shadow .2s, background .2s, color .2s, border-color .2s;
	white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn-lg { padding: 16px 28px; font-size: 1rem; }
.btn-block { width: 100%; }
.btn-primary { background: linear-gradient(135deg, var(--blue-bright), var(--blue)); color: #fff; box-shadow: 0 8px 20px rgba(16, 123, 205, .3); }
.btn-primary:hover { color: #fff; box-shadow: 0 12px 26px rgba(16, 123, 205, .4); }
.btn-ghost { background: var(--tint-green); color: var(--green-dark); }
.btn-ghost:hover { background: var(--green); color: #fff; }
.btn-outline { border-color: var(--blue); color: var(--blue); background: transparent; }
.btn-outline:hover { background: var(--blue); color: #fff; }
.btn-white { background: #fff; color: var(--blue); }
.btn-white:hover { color: var(--blue-dark); box-shadow: var(--shadow-lg); }
.btn-outline-white { border-color: rgba(255,255,255,.7); color: #fff; }
.btn-outline-white:hover { background: #fff; color: var(--blue); }

.link-arrow { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; font-size: .92rem; }
.link-arrow .be-icon { transition: transform .2s; }
.link-arrow:hover .be-icon { transform: translateX(4px); }

/* ---------- Top bar & header ---------- */
.topbar { background: var(--navy); color: #c8d6e6; font-size: .85rem; }
.topbar-inner { display: flex; gap: 24px; align-items: center; min-height: 40px; flex-wrap: wrap; }
.topbar-item { display: inline-flex; align-items: center; gap: 7px; }
.topbar-item .be-icon { color: var(--green); }
.topbar-phone { margin-left: auto; color: #fff; font-weight: 600; }
.topbar-phone:hover, .topbar-social:hover { color: #fff; }
.topbar-social { color: #c8d6e6; }
.topbar-social:hover { color: #fff; }

.site-header {
	position: sticky;
	top: 0;
	z-index: 100;
	background: rgba(255, 255, 255, .96);
	backdrop-filter: saturate(160%) blur(10px);
	border-bottom: 1px solid var(--line);
	transition: box-shadow .25s;
}
.site-header.is-scrolled { box-shadow: 0 6px 24px rgba(13, 38, 64, .08); }
.header-inner { display: flex; align-items: center; gap: 24px; min-height: 80px; }

.brand { display: inline-flex; align-items: center; gap: 12px; }
.brand img { width: 46px; height: auto; }
.brand-text { display: flex; flex-direction: column; line-height: 1.05; font-family: var(--font-head); }
.brand-text strong { white-space: nowrap; color: var(--blue); font-size: 1.25rem; font-weight: 800; letter-spacing: .02em; }
.brand-text small { color: var(--green-dark); font-weight: 700; font-size: .72rem; letter-spacing: .32em; margin-top: 3px; }
.custom-logo-link img { max-height: 60px; width: auto; }

.main-nav { margin-left: auto; }
.main-nav .menu { list-style: none; display: flex; gap: 4px; margin: 0; padding: 0; }
.main-nav .menu a {
	display: block;
	padding: 10px 14px;
	border-radius: 999px;
	font-family: var(--font-head);
	font-weight: 600;
	font-size: .93rem;
	color: var(--navy);
	white-space: nowrap;
}
.main-nav .menu a:hover { color: var(--blue); background: var(--tint); }
.main-nav .current-menu-item > a,
.main-nav .current_page_item > a,
.main-nav .current_page_parent > a { color: var(--blue); background: var(--tint); }
.main-nav .sub-menu { display: none; }
.nav-cta-mobile { display: none; }

.header-actions { display: flex; align-items: center; gap: 16px; }
.header-phone { display: inline-flex; align-items: center; gap: 10px; color: var(--navy); }
.header-phone-icon { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: var(--tint-green); color: var(--green-dark); }
.header-phone small { display: block; color: var(--muted); font-size: .72rem; line-height: 1.1; }
.header-phone strong { font-family: var(--font-head); font-size: 1rem; }
.nav-toggle { display: none; background: none; border: 0; color: var(--navy); cursor: pointer; padding: 6px; }
.nav-toggle-close { display: none; }

/* ---------- Hero ---------- */
.hero {
	position: relative;
	overflow: hidden;
	background:
		radial-gradient(900px 500px at 85% 20%, rgba(73, 208, 18, .12), transparent 60%),
		radial-gradient(800px 600px at 10% 90%, rgba(6, 142, 242, .12), transparent 60%),
		linear-gradient(180deg, #f6fbff 0%, #fff 100%);
	padding: 72px 0 96px;
}
.hero-inner { display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: center; }
.badge {
	display: inline-flex; align-items: center; gap: 8px;
	background: #fff; border: 1px solid var(--line); border-radius: 999px;
	padding: 7px 16px; font-size: .85rem; font-weight: 600; color: var(--navy);
	box-shadow: var(--shadow); margin-bottom: 22px;
}
.badge .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 4px rgba(73, 208, 18, .2); }
.hero h1 { margin-bottom: 20px; }
.lead { font-size: 1.12rem; color: var(--text); max-width: 600px; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; margin: 30px 0 28px; }
.hero-points { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 10px 26px; }
.hero-points li { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; color: var(--navy); font-size: .93rem; }
.hero-points .be-icon { color: var(--green-dark); }

.hero-visual { position: relative; min-height: 440px; display: grid; place-items: center; }
.hero-blob {
	width: min(420px, 90%);
	aspect-ratio: 1;
	border-radius: 46% 54% 52% 48% / 48% 44% 56% 52%;
	background: linear-gradient(145deg, #fff 0%, #e8f4fe 100%);
	box-shadow: var(--shadow-lg), inset 0 0 0 10px rgba(255,255,255,.8);
	display: grid; place-items: center;
	animation: blob 12s ease-in-out infinite;
}
.hero-blob img { width: 58%; filter: drop-shadow(0 18px 30px rgba(16, 123, 205, .25)); }
@keyframes blob {
	0%, 100% { border-radius: 46% 54% 52% 48% / 48% 44% 56% 52%; }
	50% { border-radius: 54% 46% 44% 56% / 56% 52% 48% 44%; }
}
.float-card {
	position: absolute;
	display: flex; align-items: center; gap: 12px;
	background: #fff; border-radius: 16px; padding: 12px 16px;
	box-shadow: var(--shadow-lg);
	animation: floaty 6s ease-in-out infinite;
}
.float-card strong { display: block; font-family: var(--font-head); color: var(--navy); font-size: .95rem; line-height: 1.2; }
.float-card small { display: block; color: var(--muted); font-size: .78rem; }
.fc-icon { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; background: var(--tint); color: var(--blue); }
.fc-green { background: var(--tint-green); color: var(--green-dark); }
.fc-num {
	width: 40px; height: 40px; border-radius: 50%; flex-shrink: 0; display: grid; place-items: center;
	font-family: var(--font-head); font-weight: 800; font-size: 1.05rem; color: #fff;
	background: linear-gradient(135deg, var(--blue-bright), var(--blue));
}
.float-card-2 .fc-num, .float-card-4 .fc-num { background: linear-gradient(135deg, #5fdc2a, var(--green-dark)); }
.float-card-1 { top: 4%; left: -4%; }
.float-card-2 { top: 14%; right: -4%; animation-delay: -1.5s; }
.float-card-3 { bottom: 16%; left: -6%; animation-delay: -3s; }
.float-card-4 { bottom: 4%; right: 0; animation-delay: -4.5s; }
@keyframes floaty { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }

/* ---------- Features ---------- */
.features { margin-top: -56px; position: relative; z-index: 2; }
.features-grid {
	display: grid; grid-template-columns: repeat(4, 1fr); gap: 0;
	background: #fff; border-radius: var(--radius); box-shadow: var(--shadow-lg); overflow: hidden;
}
.feature { display: flex; gap: 14px; padding: 28px 24px; border-right: 1px solid var(--line); }
.feature:last-child { border-right: 0; }
.feature h3 { font-size: 1rem; margin-bottom: 4px; }
.feature p { font-size: .88rem; margin: 0; color: var(--muted); line-height: 1.5; }
.feature-icon {
	width: 52px; height: 52px; border-radius: 14px; flex-shrink: 0;
	display: grid; place-items: center;
	background: linear-gradient(135deg, var(--tint), #e3f0fc); color: var(--blue);
}

/* ---------- Sections ---------- */
.section { padding: 96px 0; }
.section-tint, .section-services, .section-steps { background: var(--tint); }
.section-head { text-align: center; max-width: 640px; margin: 0 auto 48px; }
.section-head p { color: var(--muted); }
.section-head-row { display: flex; justify-content: space-between; align-items: flex-end; text-align: left; max-width: none; gap: 20px; }
.section-head-row h2 { margin: 0; }
.section-foot { text-align: center; margin-top: 40px; }
.eyebrow {
	display: inline-block; font-family: var(--font-head); font-weight: 700;
	font-size: .8rem; letter-spacing: .14em; text-transform: uppercase;
	color: var(--green-dark); margin-bottom: 10px;
}
.section-services { padding-top: 120px; }

/* ---------- Services ---------- */
.services-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.service-card {
	position: relative; background: #fff; border-radius: var(--radius); padding: 32px 28px;
	border: 1px solid var(--line); transition: transform .25s, box-shadow .25s, border-color .25s;
	display: flex; flex-direction: column;
}
.service-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: transparent; }
.service-card::after {
	content: ""; position: absolute; left: 28px; right: 28px; bottom: 0; height: 3px; border-radius: 3px 3px 0 0;
	background: linear-gradient(90deg, var(--blue-bright), var(--green)); transform: scaleX(0); transition: transform .3s;
}
.service-card:hover::after { transform: scaleX(1); }
.service-icon {
	width: 64px; height: 64px; border-radius: 18px; display: grid; place-items: center;
	background: linear-gradient(135deg, var(--blue-bright), var(--blue)); color: #fff; margin-bottom: 22px;
	box-shadow: 0 10px 20px rgba(16, 123, 205, .25);
}
.service-card:nth-child(even) .service-icon { background: linear-gradient(135deg, #5fdc2a, var(--green-dark)); box-shadow: 0 10px 20px rgba(52, 167, 10, .25); }
.service-title { font-size: 1.18rem; }
.service-title a { color: var(--navy); }
.service-title a:hover { color: var(--blue); }
.service-excerpt { color: var(--muted); font-size: .95rem; flex: 1; }
.check-list { list-style: none; padding: 0; margin: 0 0 18px; display: grid; gap: 8px; }
.check-list li { display: flex; gap: 10px; align-items: flex-start; font-size: .93rem; color: var(--navy); }
.check-list .be-icon { color: var(--green-dark); margin-top: 3px; }
.check-list-lg li { font-size: 1rem; }

/* ---------- About ---------- */
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.about-visual { position: relative; }
.about-card {
	position: relative; border-radius: 28px; padding: 48px;
	background: linear-gradient(145deg, #fff, var(--tint));
	box-shadow: var(--shadow-lg); aspect-ratio: 1 / .9; display: grid; place-items: center;
}
.about-card::before {
	content: ""; position: absolute; inset: -16px auto auto -16px; width: 120px; height: 120px; border-radius: 24px;
	background: var(--green); opacity: .15; z-index: -1;
}
.about-card::after {
	content: ""; position: absolute; inset: auto -16px -16px auto; width: 160px; height: 160px; border-radius: 28px;
	background: var(--blue-bright); opacity: .12; z-index: -1;
}
.about-card img { width: 72%; }
.about-card-photo { padding: 0; aspect-ratio: auto; overflow: visible; background: none; }
.about-card-photo img { width: 100%; border-radius: 28px; }
.stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; margin: 28px 0 32px; }
.stats-wide { grid-template-columns: repeat(4, 1fr); margin: 48px 0 0; }
.stat { background: var(--tint); border-radius: var(--radius-sm); padding: 18px 20px; }
.section-tint .stat { background: #fff; box-shadow: var(--shadow); }
.stat strong { display: block; font-family: var(--font-head); font-size: clamp(1.35rem, 2.2vw, 1.8rem); font-weight: 800; color: var(--blue); line-height: 1.1; }
.stat:nth-child(even) strong { color: var(--green-dark); }
.stat span { font-size: .88rem; color: var(--muted); }

.values-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.value-card { background: #fff; border-radius: var(--radius); padding: 32px; box-shadow: var(--shadow); }
.value-card .feature-icon { margin-bottom: 18px; }
.value-card p { margin: 0; color: var(--muted); }

/* ---------- Doctors ---------- */
.doctors-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.doctor-card { background: #fff; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); transition: transform .25s, box-shadow .25s; }
.doctor-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.doctor-photo { position: relative; display: block; aspect-ratio: 5 / 6; overflow: hidden; background: var(--tint); }
.doctor-photo img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.doctor-card:hover .doctor-photo img { transform: scale(1.04); }
.doctor-photo-placeholder {
	width: 100%; height: 100%; display: grid; place-items: center; color: var(--blue);
	background: radial-gradient(circle at 50% 35%, #fff 0%, #e4f1fc 55%, #d4e9fa 100%);
}
.doctor-photo-placeholder .be-icon { width: 96px; height: 96px; opacity: .55; }
.doctor-badge {
	position: absolute; left: 16px; bottom: 16px; display: inline-flex; align-items: center; gap: 6px;
	background: #fff; color: var(--navy); font-weight: 700; font-size: .8rem; padding: 7px 12px; border-radius: 999px; box-shadow: var(--shadow);
}
.doctor-badge .be-icon { color: var(--green-dark); }
.doctor-body { padding: 22px 24px 26px; }
.doctor-name { font-size: 1.15rem; margin-bottom: 4px; }
.doctor-name a { color: var(--navy); }
.doctor-position { color: var(--blue); font-weight: 600; font-size: .93rem; margin-bottom: 12px; }

.doctor-single { display: grid; grid-template-columns: 380px 1fr; gap: 56px; align-items: start; }
.doctor-single-photo { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-lg); aspect-ratio: 5 / 6; }
.doctor-single-photo img { width: 100%; height: 100%; object-fit: cover; }
.doctor-facts { list-style: none; padding: 0; margin: 0 0 28px; display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.doctor-facts li { background: var(--tint); border-radius: var(--radius-sm); padding: 14px 18px; }
.doctor-facts small { display: block; color: var(--muted); font-size: .8rem; }
.doctor-facts strong { color: var(--navy); font-family: var(--font-head); }

/* ---------- Steps ---------- */
.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; counter-reset: none; }
.steps li { position: relative; background: #fff; border-radius: var(--radius); padding: 14px 14px 28px; box-shadow: var(--shadow); }
.steps li > :not(.step-img) { margin-left: 12px; margin-right: 12px; }
.step-img { width: 100%; height: auto; border-radius: 14px; margin-bottom: -10px; }
.steps .step-num { position: relative; margin-top: -14px; box-shadow: 0 0 0 5px #fff; }
.steps li:not(:last-child)::after {
	content: ""; position: absolute; top: 34%; right: -24px; width: 24px; height: 2px;
	background: repeating-linear-gradient(90deg, var(--blue) 0 6px, transparent 6px 10px);
}
.step-num {
	display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%;
	background: linear-gradient(135deg, var(--blue-bright), var(--blue)); color: #fff;
	font-family: var(--font-head); font-weight: 800; font-size: 1.15rem; margin-bottom: 18px;
}
.steps li:nth-child(even) .step-num { background: linear-gradient(135deg, #5fdc2a, var(--green-dark)); }
.steps p { margin: 0; color: var(--muted); font-size: .93rem; }

/* ---------- Posts ---------- */
.posts-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.post-card { background: #fff; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); transition: transform .25s, box-shadow .25s; display: flex; flex-direction: column; }
.post-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.post-card-thumb { display: block; aspect-ratio: 16 / 10; overflow: hidden; }
.post-card-thumb img { width: 100%; height: 100%; object-fit: cover; }
.thumb-placeholder {
	display: grid; place-items: center; width: 100%; height: 100%;
	background: linear-gradient(135deg, #e7f3fd 0%, #eefbe7 100%);
}
.thumb-placeholder img { width: 30%; height: auto; object-fit: contain; opacity: .9; }
.post-card-body { padding: 22px 24px 26px; display: flex; flex-direction: column; flex: 1; }
.post-card-body p { color: var(--muted); font-size: .93rem; flex: 1; }
.post-card-title { font-size: 1.12rem; }
.post-card-title a { color: var(--navy); }
.post-card-title a:hover { color: var(--blue); }
.post-meta { display: inline-flex; align-items: center; gap: 6px; color: var(--muted); font-size: .83rem; margin-bottom: 8px; }

.pagination { margin-top: 48px; }
.pagination .nav-links { display: flex; justify-content: center; gap: 8px; flex-wrap: wrap; }
.pagination .page-numbers { padding: 8px 16px; border-radius: 999px; border: 1px solid var(--line); color: var(--navy); font-weight: 600; }
.pagination .page-numbers.current, .pagination .page-numbers:hover { background: var(--blue); color: #fff; border-color: var(--blue); }

/* ---------- CTA ---------- */
.cta-band { padding: 0 0 96px; }
.section-posts + .cta-band, .section + .cta-band { padding-top: 0; }
.cta-inner {
	display: flex; align-items: center; justify-content: space-between; gap: 32px; flex-wrap: wrap;
	background:
		radial-gradient(500px 300px at 90% 0%, rgba(73, 208, 18, .35), transparent 60%),
		linear-gradient(135deg, var(--blue-bright), var(--blue-dark));
	color: #e8f3fd; border-radius: 28px; padding: 48px 56px; box-shadow: var(--shadow-lg);
}
.cta-inner h2 { color: #fff; margin-bottom: 8px; }
.cta-inner p { margin: 0; }
.cta-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.section-tint + .cta-band, .section-doctors + .cta-band { padding-top: 0; }

/* ---------- Page hero ---------- */
.page-hero {
	background:
		radial-gradient(600px 300px at 90% 0%, rgba(73, 208, 18, .14), transparent 60%),
		linear-gradient(135deg, #eaf5fe 0%, #f6fbff 100%);
	padding: 64px 0 56px; border-bottom: 1px solid var(--line);
}
.page-hero h1 { font-size: clamp(1.9rem, 3.6vw, 2.8rem); margin-bottom: 8px; }
.page-hero-sub { font-size: 1.08rem; color: var(--muted); margin: 0; max-width: 680px; }
.breadcrumb { display: flex; gap: 8px; font-size: .88rem; color: var(--muted); margin-bottom: 14px; flex-wrap: wrap; }

/* ---------- Content ---------- */
.entry-content { font-size: 1.04rem; }
.entry-content h2 { font-size: 1.5rem; margin-top: 1.6em; }
.entry-content h3 { margin-top: 1.4em; }
.entry-content ul, .entry-content ol { padding-left: 1.3em; margin: 0 0 1.2em; }
.entry-content li { margin-bottom: .4em; }
.entry-content li::marker { color: var(--green-dark); }
.entry-content blockquote { margin: 1.5em 0; padding: 18px 24px; border-left: 4px solid var(--green); background: var(--tint-green); border-radius: 0 12px 12px 0; }
.entry-content img { border-radius: var(--radius-sm); }
.entry-content .check-list { padding-left: 0; }
.intro-text { max-width: 760px; margin: 0 auto 40px; text-align: center; color: var(--muted); }
.post-featured { margin: 0 0 32px; border-radius: var(--radius); overflow: hidden; }
.post-note { display: flex; gap: 14px; align-items: flex-start; background: var(--tint); border-radius: var(--radius-sm); padding: 20px 22px; margin: 40px 0 24px; font-size: .95rem; }
.post-note .be-icon { color: var(--blue); margin-top: 2px; }
.post-note p { margin: 0; }
.post-nav { display: flex; justify-content: space-between; gap: 20px; border-top: 1px solid var(--line); padding-top: 24px; font-weight: 600; }
.post-nav div:last-child { text-align: right; }
.muted { color: var(--muted); }
.empty { text-align: center; color: var(--muted); }

.service-single { display: grid; grid-template-columns: 1fr 340px; gap: 56px; align-items: start; }
.service-aside { display: grid; gap: 24px; position: sticky; top: 110px; }
.aside-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow); }
.aside-card .btn { margin-top: 10px; }
.aside-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 4px; }
.aside-list a { display: flex; gap: 8px; align-items: center; padding: 8px 0; color: var(--navy); font-weight: 500; border-bottom: 1px dashed var(--line); }
.aside-list a:hover { color: var(--blue); }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 56px; align-items: start; }
.contact-cards { list-style: none; padding: 0; margin: 24px 0 0; display: grid; gap: 14px; }
.contact-cards li { display: flex; gap: 16px; align-items: center; background: var(--tint); border-radius: var(--radius-sm); padding: 16px 18px; }
.contact-cards small { display: block; color: var(--muted); font-size: .8rem; }
.contact-cards li > div > a, .contact-cards li > div > span { display: block; font-weight: 600; color: var(--navy); }
.contact-cards .feature-icon { display: grid; place-items: center; }
.contact-cards li > div > a.map-link { display: inline-flex; align-items: center; gap: 4px; margin-top: 4px; font-size: .85rem; color: var(--blue); }
.contact-cards a:hover { color: var(--blue); }
.contact-cards .feature-icon { background: #fff; }
.contact-form-wrap { background: #fff; border-radius: 24px; padding: 40px; box-shadow: var(--shadow-lg); border: 1px solid var(--line); }
.contact-form-wrap h2 { font-size: 1.7rem; margin-bottom: 6px; }

.booking-form .form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 20px; }
.field { display: flex; flex-direction: column; gap: 6px; font-size: .88rem; font-weight: 600; color: var(--navy); }
.field-full { grid-column: 1 / -1; }
.field input, .field select, .field textarea {
	font: inherit; font-weight: 400; color: var(--navy);
	border: 1.5px solid var(--line); border-radius: 12px; padding: 12px 14px; background: #fbfdff;
	transition: border-color .2s, box-shadow .2s; width: 100%;
}
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--blue-bright); box-shadow: 0 0 0 4px rgba(6, 142, 242, .12); background: #fff; }
.form-note { display: flex; align-items: center; gap: 8px; font-size: .84rem; color: var(--muted); margin: 16px 0; }
.form-note .be-icon { color: var(--green-dark); }
.form-alert { display: flex; gap: 10px; align-items: center; border-radius: 12px; padding: 14px 16px; font-weight: 600; margin-bottom: 8px; }
.form-alert-ok { background: var(--tint-green); color: var(--green-dark); }
.form-alert-error { background: #fdecec; color: #b42318; }
.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.map-wrap { line-height: 0; }
.map-wrap iframe { width: 100%; height: 420px; border: 0; filter: saturate(.9); }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy); color: #a9bad0; font-size: .94rem; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1.2fr 1.3fr; gap: 40px; padding-top: 72px; padding-bottom: 56px; }
.site-footer h3 { color: #fff; font-size: 1rem; margin-bottom: 18px; }
.brand-light .brand-text strong { color: #fff; }
.brand-light .brand-text small { color: var(--green); }
.footer-about p { margin: 18px 0; }
.footer-menu, .footer-contact { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.footer-menu .menu { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.site-footer a { color: #a9bad0; }
.site-footer a:hover { color: #fff; }
.footer-contact li { display: flex; gap: 10px; align-items: flex-start; }
.footer-contact .be-icon { color: var(--green); margin-top: 3px; }
.social-btn { display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: rgba(255,255,255,.08); }
.social-btn:hover { background: var(--blue); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.08); font-size: .84rem; }
.footer-bottom-inner { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding-top: 20px; padding-bottom: 20px; }

.float-call {
	position: fixed; right: 20px; bottom: 20px; z-index: 90; width: 56px; height: 56px; border-radius: 50%;
	display: none; place-items: center; color: #fff;
	background: linear-gradient(135deg, #5fdc2a, var(--green-dark)); box-shadow: 0 10px 24px rgba(52, 167, 10, .4);
}
.float-call:hover { color: #fff; }

/* ---------- Gutenberg alignments ---------- */
.alignwide { max-width: 1100px; }
.alignfull { width: 100vw; margin-left: calc(50% - 50vw); }
.aligncenter { margin-left: auto; margin-right: auto; }

/* ---------- Responsive ---------- */
@media (max-width: 1280px) {
	.header-phone { display: none; }
}

@media (max-width: 1100px) {
	.main-nav .menu a { padding: 10px 10px; font-size: .9rem; }
	.features-grid { grid-template-columns: repeat(2, 1fr); }
	.feature:nth-child(2) { border-right: 0; }
	.feature:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
	.footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 960px) {
	.nav-toggle { display: inline-flex; }
	.header-cta { display: none; }
	.main-nav {
		position: fixed; inset: 0 0 0 auto; top: 0; width: min(340px, 86vw); height: 100vh;
		background: #fff; box-shadow: var(--shadow-lg); padding: 96px 24px 24px;
		transform: translateX(100%); transition: transform .3s ease; z-index: 99; overflow-y: auto;
	}
	.nav-open .main-nav { transform: translateX(0); }
	.nav-open .nav-toggle-open { display: none; }
	.nav-open .nav-toggle-close { display: inline; }
	.nav-toggle { position: relative; z-index: 101; margin-right: -6px; }
	.header-actions { margin-left: auto; }
	.main-nav .menu { flex-direction: column; gap: 2px; }
	.main-nav .menu a { font-size: 1.05rem; padding: 14px 16px; border-radius: 12px; }
	.nav-cta-mobile { display: flex; margin-top: 20px; width: 100%; }
	.nav-open::after { content: ""; position: fixed; inset: 0; background: rgba(13, 38, 64, .4); z-index: 98; }
	.site-header { z-index: 100; backdrop-filter: none; -webkit-backdrop-filter: none; background: #fff; }

	.hero { padding: 48px 0 88px; }
	.hero-inner, .about-grid, .contact-grid, .doctor-single, .service-single { grid-template-columns: 1fr; }
	.hero-visual { min-height: 360px; order: -1; }
	.hero-blob { width: min(320px, 80%); }
	.services-grid, .posts-grid, .doctors-grid, .values-grid { grid-template-columns: repeat(2, 1fr); }
	.steps { grid-template-columns: repeat(2, 1fr); }
	.steps li::after { display: none; }
	.stats-wide { grid-template-columns: repeat(2, 1fr); }
	.about-visual { max-width: 460px; }
	.doctor-single-photo { max-width: 380px; }
	.service-aside { position: static; }
	.float-call { display: grid; }
	.section { padding: 72px 0; }
	.cta-band { padding-bottom: 72px; }
}

@media (max-width: 640px) {
	body { font-size: 15px; }
	.topbar-inner { justify-content: center; gap: 6px 16px; padding: 8px 20px; font-size: .78rem; }
	.topbar-phone { margin-left: 0; }
	.topbar-item:nth-child(2) { display: none; }
	.header-inner { min-height: 68px; }
	.brand img { width: 40px; }
	.brand-text strong { font-size: 1.08rem; }
	.features-grid, .services-grid, .posts-grid, .doctors-grid, .values-grid, .steps, .footer-grid { grid-template-columns: 1fr; }
	.feature { border-right: 0; border-bottom: 1px solid var(--line); }
	.feature:last-child { border-bottom: 0; }
	.float-card { padding: 10px 12px; }
	.float-card small { display: none; }
	.float-card { gap: 8px; }
	.fc-num { width: 30px; height: 30px; font-size: .9rem; }
	.float-card strong { font-size: .82rem; }
	.float-card-1 { left: 0; top: 0; }
	.float-card-2 { right: 0; top: 18%; }
	.float-card-3 { left: 0; bottom: 18%; }
	.float-card-4 { right: 0; bottom: 0; }
	.hero-visual { min-height: 300px; }
	.hero-actions .btn { width: 100%; }
	.section-head-row { flex-direction: column; align-items: flex-start; }
	.cta-inner { padding: 36px 26px; }
	.cta-actions, .cta-actions .btn { width: 100%; }
	.booking-form .form-grid { grid-template-columns: 1fr; }
	.contact-form-wrap { padding: 26px 20px; }
	.doctor-facts { grid-template-columns: 1fr; }
	.stats-wide, .stats { grid-template-columns: 1fr; }
}

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