/*
Theme Name: MC Veles
Author: MC Veles
Description: Світла тема для сайту МЦ ВЕЛЕС. Підтримує Polylang (UA / EN) та запис через Case Schedule.
Version: 1.5.0
Requires at least: 6.5
Requires PHP: 8.1
License: GPL-2.0-or-later
Text Domain: mcveles
*/

:root {
	--c-accent: #1a7fae;
	--c-accent-dark: #13668d;
	--c-accent-soft: #e8f4fa;
	--c-accent-pale: #f4f9fc;
	--c-text: #1c2833;
	--c-muted: #5d6b78;
	--c-border: #e3e9ee;
	--c-bg: #ffffff;
	--c-bg-alt: #f5f8fa;
	--radius: 18px;
	--radius-sm: 12px;
	--shadow: 0 12px 32px rgba(20, 60, 90, .08);
	--shadow-sm: 0 4px 14px rgba(20, 60, 90, .06);
	--container: 1240px;
	--header-h: 84px;
	--font: "Manrope", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
	--ease: cubic-bezier(.2, .7, .2, 1);
}

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

html {
	scroll-behavior: smooth;
}

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

body.nav-open {
	overflow: hidden;
}

img {
	max-width: 100%;
	height: auto;
}

a {
	color: var(--c-accent);
	transition: color .2s;
}

a:hover {
	color: var(--c-accent-dark);
}

:focus-visible {
	outline: 2px solid var(--c-accent);
	outline-offset: 2px;
}

.icon {
	flex: none;
}

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

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

.skip-link:focus {
	z-index: 1000;
	top: 8px;
	left: 8px;
	width: auto;
	height: auto;
	padding: 10px 16px;
	clip: auto;
	background: var(--c-bg);
	border-radius: var(--radius-sm);
	box-shadow: var(--shadow);
}

/* Buttons (also styles the Case Schedule button) */
.btn,
.cs-open-btn.btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	padding: 12px 22px;
	font: 700 15px/1.2 var(--font);
	border: 0;
	border-radius: 999px;
	text-decoration: none;
	white-space: nowrap;
	cursor: pointer;
	transition: background-color .2s, box-shadow .2s, transform .2s var(--ease);
}

.btn--primary,
.cs-open-btn.btn--primary {
	color: #fff;
	background: var(--c-accent);
	box-shadow: 0 8px 20px rgba(26, 127, 174, .25);
}

.btn--primary:hover,
.cs-open-btn.btn--primary:hover {
	color: #fff;
	background: var(--c-accent-dark);
	filter: none;
	transform: translateY(-1px);
}

.btn--lg,
.cs-open-btn.btn--lg {
	padding: 16px 30px;
	font-size: 16px;
}

.btn--block,
.cs-open-btn.btn--block {
	display: flex;
	width: 100%;
}

/* Language switcher */
.lang-switcher {
	display: flex;
	gap: 2px;
	margin: 0;
	padding: 3px;
	list-style: none;
	background: var(--c-bg);
	border: 1px solid var(--c-border);
	border-radius: 999px;
}

.lang-switcher a {
	display: block;
	min-width: 36px;
	padding: 3px 10px;
	font-size: 12px;
	font-weight: 700;
	line-height: 1.5;
	text-align: center;
	text-transform: uppercase;
	color: var(--c-muted);
	text-decoration: none;
	border-radius: 999px;
}

.lang-switcher a:hover {
	color: var(--c-accent);
}

.lang-switcher a.is-current {
	color: #fff;
	background: var(--c-accent);
}

/* Top bar */
.topbar {
	font-size: 13px;
	color: var(--c-muted);
	background: var(--c-accent-pale);
	border-bottom: 1px solid var(--c-border);
}

.topbar__inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 24px;
	min-height: 42px;
}

.topbar__info {
	display: flex;
	flex-wrap: wrap;
	gap: 6px 28px;
}

.topbar__item {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	color: inherit;
	text-decoration: none;
}

.topbar__item .icon {
	width: 16px;
	height: 16px;
	color: var(--c-accent);
}

a.topbar__item:hover {
	color: var(--c-accent);
}

.topbar__right {
	display: flex;
	align-items: center;
	gap: 20px;
}

.topbar__phone {
	font-weight: 700;
	color: var(--c-text);
}


/* Header */
.site-header {
	position: sticky;
	top: 0;
	z-index: 100;
	background: rgba(255, 255, 255, .9);
	backdrop-filter: saturate(180%) blur(14px);
	-webkit-backdrop-filter: saturate(180%) blur(14px);
	border-bottom: 1px solid transparent;
	transition: box-shadow .25s, border-color .25s;
}

.admin-bar .site-header {
	top: 32px;
}

.site-header.is-scrolled {
	border-color: var(--c-border);
	box-shadow: var(--shadow-sm);
}

.site-header__inner {
	display: flex;
	align-items: center;
	gap: 32px;
	min-height: var(--header-h);
}

/* Brand */
.brand {
	display: inline-flex;
	align-items: center;
	gap: 12px;
	flex: none;
	color: var(--c-text);
	text-decoration: none;
}

.brand:hover {
	color: var(--c-text);
}

.brand__logo {
	display: block;
	width: auto;
	height: 58px;
}

.brand__text {
	display: flex;
	flex-direction: column;
	line-height: 1.15;
}

.brand__name {
	font-size: 19px;
	font-weight: 800;
	letter-spacing: .06em;
}

.brand__tagline {
	margin-top: 3px;
	font-size: 12px;
	font-weight: 500;
	color: var(--c-muted);
}

/* Navigation */
.main-nav {
	flex: 1;
	min-width: 0;
}

.main-nav .menu {
	display: flex;
	flex-wrap: nowrap;
	justify-content: center;
	gap: 4px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.main-nav .menu > li {
	position: relative;
}

.main-nav .menu a {
	display: block;
	padding: 8px 12px;
	font-size: 15px;
	white-space: nowrap;
	font-weight: 600;
	color: var(--c-text);
	text-decoration: none;
	border-radius: 999px;
	transition: color .2s, background-color .2s;
}

.main-nav .menu a:hover,
.main-nav .current-menu-item > a,
.main-nav .current_page_item > a,
.main-nav .current-menu-ancestor > a {
	color: var(--c-accent);
	background: var(--c-accent-soft);
}

.main-nav .sub-menu {
	position: absolute;
	top: 100%;
	left: 0;
	z-index: 10;
	min-width: 220px;
	margin: 0;
	padding: 8px;
	list-style: none;
	background: var(--c-bg);
	border: 1px solid var(--c-border);
	border-radius: var(--radius-sm);
	box-shadow: var(--shadow);
	opacity: 0;
	visibility: hidden;
	transform: translateY(6px);
	transition: opacity .2s, transform .2s var(--ease), visibility .2s;
}

.main-nav li:hover > .sub-menu,
.main-nav li:focus-within > .sub-menu {
	opacity: 1;
	visibility: visible;
	transform: none;
}

.main-nav .sub-menu a {
	border-radius: 8px;
}

.main-nav__extra {
	display: none;
}

/* Header actions */
.header-actions {
	display: flex;
	align-items: center;
	gap: 16px;
	margin-left: auto;
}

.phones {
	position: relative;
	display: flex;
	align-items: center;
}

.phones__main {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	font-size: 16px;
	font-weight: 700;
	color: var(--c-text);
	text-decoration: none;
	white-space: nowrap;
}

.phones__icon {
	display: grid;
	place-items: center;
	width: 40px;
	height: 40px;
	color: var(--c-accent);
	background: var(--c-accent-soft);
	border-radius: 50%;
}

.phones__icon .icon {
	width: 18px;
	height: 18px;
}

.phones__toggle {
	display: grid;
	place-items: center;
	width: 30px;
	height: 30px;
	padding: 0;
	color: var(--c-muted);
	background: none;
	border: 0;
	border-radius: 50%;
	cursor: pointer;
}

.phones__toggle:hover {
	color: var(--c-accent);
	background: var(--c-accent-soft);
}

.phones__toggle .icon {
	width: 18px;
	height: 18px;
	transition: transform .2s;
}

.phones.is-open .phones__toggle .icon {
	transform: rotate(180deg);
}

.phones__dropdown {
	position: absolute;
	top: calc(100% + 12px);
	right: 0;
	z-index: 20;
	min-width: 240px;
	padding: 10px;
	background: var(--c-bg);
	border: 1px solid var(--c-border);
	border-radius: var(--radius-sm);
	box-shadow: var(--shadow);
	opacity: 0;
	visibility: hidden;
	transform: translateY(6px);
	transition: opacity .2s, transform .2s var(--ease), visibility .2s;
}

.phones.is-open .phones__dropdown {
	opacity: 1;
	visibility: visible;
	transform: none;
}

.phone-list {
	margin: 0;
	padding: 0;
	list-style: none;
}

.phone-list a {
	display: block;
	padding: 7px 12px;
	font-weight: 600;
	color: var(--c-text);
	text-decoration: none;
	white-space: nowrap;
	border-radius: 8px;
}

.phone-list a:hover {
	color: var(--c-accent);
	background: var(--c-accent-soft);
}

/* Burger */
.menu-toggle {
	display: none;
	place-items: center;
	width: 44px;
	height: 44px;
	padding: 0;
	background: var(--c-accent-soft);
	border: 0;
	border-radius: 50%;
	cursor: pointer;
}

.menu-toggle__bars,
.menu-toggle__bars::before,
.menu-toggle__bars::after,
.menu-toggle__bars span {
	display: block;
	width: 18px;
	height: 2px;
	background: var(--c-accent-dark);
	border-radius: 2px;
	transition: transform .25s var(--ease), opacity .2s;
}

.menu-toggle__bars {
	position: relative;
	background: none;
}

.menu-toggle__bars::before,
.menu-toggle__bars::after {
	content: "";
	position: absolute;
	left: 0;
}

.menu-toggle__bars::before {
	top: -6px;
}

.menu-toggle__bars::after {
	top: 6px;
}

.menu-toggle[aria-expanded="true"] .menu-toggle__bars span {
	opacity: 0;
}

.menu-toggle[aria-expanded="true"] .menu-toggle__bars::before {
	transform: translateY(6px) rotate(45deg);
}

.menu-toggle[aria-expanded="true"] .menu-toggle__bars::after {
	transform: translateY(-6px) rotate(-45deg);
}

.nav-backdrop {
	display: none;
}

/* Content */
.site-main {
	min-height: 40vh;
	padding: 48px 0 72px;
}

.entry + .entry {
	margin-top: 48px;
}

/* Inner pages: header + block content */
.page-article {
	margin-top: -48px;
}

.page-hero {
	margin-bottom: clamp(32px, 5vw, 56px);
	padding: clamp(32px, 5vw, 56px) 0 clamp(28px, 4vw, 44px);
	background:
		radial-gradient(700px 300px at 90% 0%, #dff0f8 0, rgba(223, 240, 248, 0) 70%),
		var(--c-accent-pale);
	border-bottom: 1px solid var(--c-border);
}

.page-hero__title {
	max-width: 900px;
	margin: 0;
	font-size: clamp(32px, 4.6vw, 52px);
	font-weight: 800;
	line-height: 1.08;
	letter-spacing: -.025em;
}

.page-hero__lead {
	max-width: 760px;
	margin: 16px 0 0;
	font-size: 18px;
	color: var(--c-muted);
}

.page-hero__meta {
	margin: 12px 0 0;
	color: var(--c-muted);
}

.breadcrumbs ol {
	display: flex;
	flex-wrap: wrap;
	gap: 4px 0;
	margin: 0 0 14px;
	padding: 0;
	font-size: 14px;
	list-style: none;
	color: var(--c-muted);
}

.breadcrumbs li:not(:last-child)::after {
	content: "/";
	margin: 0 10px;
	color: #b6c2cc;
}

.breadcrumbs a {
	color: var(--c-muted);
	text-decoration: none;
}

.breadcrumbs a:hover {
	color: var(--c-accent);
}

/* Content column: text 820px, .alignwide 1240px, .alignfull edge to edge. */
.entry-content > * {
	max-width: min(820px, 100% - 48px);
	margin-right: auto;
	margin-left: auto;
}

.entry-content > .alignwide {
	max-width: min(1240px, 100% - 48px);
}

.entry-content > .alignfull {
	max-width: none;
}

.entry-content > .alignfull.has-background,
.entry-content > .alignfull[class*="is-style-"] {
	padding-right: max(24px, calc((100% - 1240px) / 2));
	padding-left: max(24px, calc((100% - 1240px) / 2));
}

.entry-content > .alignfull.has-background {
	padding-top: clamp(48px, 6vw, 80px);
	padding-bottom: clamp(48px, 6vw, 80px);
}

.entry-content > :is(.wp-block-group, .wp-block-columns, .wp-block-cover, .wp-block-media-text),
.entry-content > .alignfull {
	margin-top: clamp(40px, 6vw, 72px);
	margin-bottom: clamp(40px, 6vw, 72px);
}

/* Consecutive rows of cards stay together; “text + photo” sections (vertically centered) keep the section gap. */
.entry-content > .wp-block-columns:not(.are-vertically-aligned-center) + .wp-block-columns:not(.are-vertically-aligned-center) {
	margin-top: 24px;
}

.entry-content > :last-child {
	margin-bottom: 0;
}

/* Footer */
.site-footer {
	font-size: 15px;
	color: var(--c-muted);
	background: linear-gradient(180deg, var(--c-bg) 0, var(--c-bg-alt) 120px);
}

.footer-cta {
	display: flex;
	align-items: center;
	gap: 24px;
	padding: 32px 40px;
	background: linear-gradient(120deg, var(--c-accent-soft), #f3f8fb 60%, #eef6f9);
	border: 1px solid #d7e9f2;
	border-radius: var(--radius);
}

.footer-cta__icon {
	display: grid;
	flex: none;
	place-items: center;
	width: 64px;
	height: 64px;
	color: var(--c-accent);
	background: var(--c-bg);
	border-radius: 50%;
	box-shadow: var(--shadow-sm);
}

.footer-cta__icon .icon {
	width: 28px;
	height: 28px;
}

.footer-cta__text {
	flex: 1;
}

.footer-cta__text p {
	margin: 0;
}

.footer-cta__title {
	margin-bottom: 4px !important;
	font-size: 22px;
	font-weight: 800;
	color: var(--c-text);
}

.container.footer-grid {
	display: flex;
	flex-wrap: wrap;
	gap: 40px 48px;
	padding-top: 56px;
	padding-bottom: 48px;
}

.footer-col {
	flex: 1 1 180px;
	min-width: 0;
}

.footer-col--brand {
	flex: 1.2 1 240px;
}

.footer-col--phones {
	flex: 1.2 1 260px;
}

.footer-col--map {
	flex: 1.8 1 340px;
	min-height: 260px;
	overflow: hidden;
	background: var(--c-bg);
	border: 1px solid var(--c-border);
	border-radius: var(--radius);
	box-shadow: var(--shadow-sm);
}

.footer-col--map iframe {
	display: block;
	width: 100%;
	height: 100%;
	min-height: 260px;
	border: 0;
}

.footer-col--brand .brand__logo {
	height: 72px;
}

.footer-title {
	margin: 0 0 16px;
	font-size: 13px;
	font-weight: 800;
	letter-spacing: .08em;
	text-transform: uppercase;
	color: var(--c-text);
}

.footer-address {
	display: flex;
	align-items: flex-start;
	gap: 8px;
	margin: 20px 0 8px;
}

.footer-address .icon {
	margin-top: 2px;
	color: var(--c-accent);
}

.link-arrow {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	font-weight: 700;
	text-decoration: none;
}

.footer-col .link-arrow {
	margin-left: 28px;
}

.link-arrow .icon {
	width: 16px;
	height: 16px;
	transition: transform .2s var(--ease);
}

.link-arrow:hover .icon {
	transform: translateX(3px);
}

.footer-menu {
	margin: 0;
	padding: 0;
	list-style: none;
}

.footer-menu a {
	display: inline-block;
	padding: 5px 0;
	color: var(--c-muted);
	text-decoration: none;
}

.footer-menu a:hover {
	color: var(--c-accent);
}

.phone-list--grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 2px 12px;
}

.phone-list--grid a {
	padding: 5px 0;
	font-weight: 600;
	color: var(--c-muted);
}

.phone-list--grid a:hover {
	background: none;
}

.phone-list--grid .is-main {
	grid-column: 1 / -1;
}

.phone-list--grid .is-main a {
	font-size: 20px;
	font-weight: 800;
	color: var(--c-text);
}

.footer-bottom {
	border-top: 1px solid var(--c-border);
	font-size: 13px;
}

.footer-bottom__inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	min-height: 64px;
}

.footer-bottom p {
	margin: 0;
}

.footer-credit {
	color: var(--c-muted);
}

.footer-credit a {
	color: inherit;
	font-weight: 600;
	text-decoration: none;
	border-bottom: 1px solid currentColor;
	transition: color .2s;
}

.footer-credit a:hover {
	color: var(--c-accent);
}

/* ---------- Responsive ---------- */

/* The main number is in the top bar; the header keeps the icon with all numbers. */
.site-header__inner {
	gap: 24px;
}

.phones__label {
	display: none;
}

.phones__main {
	gap: 0;
}

@media (max-width: 1180px) {
	.phones__toggle {
		display: none;
	}
}

@media (max-width: 1180px) {
	:root {
		--header-h: 72px;
	}

	.brand__logo {
		height: 50px;
	}

	.menu-toggle {
		display: grid;
	}

	/* backdrop-filter would trap the fixed off-canvas menu inside the header */
	.site-header {
		background: var(--c-bg);
		backdrop-filter: none;
		-webkit-backdrop-filter: none;
	}

	.nav-open .site-header {
		z-index: 130;
	}

	.main-nav {
		position: fixed;
		top: 0;
		right: 0;
		bottom: 0;
		z-index: 110;
		display: flex;
		flex-direction: column;
		gap: 24px;
		width: min(380px, 88vw);
		padding: 88px 24px 32px;
		overflow-y: auto;
		background: var(--c-bg);
		box-shadow: -20px 0 40px rgba(20, 60, 90, .12);
		transform: translateX(100%);
		visibility: hidden;
		transition: transform .3s var(--ease), visibility .3s;
	}

	.main-nav.is-open {
		transform: none;
		visibility: visible;
	}

	.main-nav .menu {
		flex-direction: column;
		justify-content: flex-start;
		gap: 2px;
	}

	.main-nav .menu a {
		padding: 12px 14px;
		font-size: 17px;
		border-radius: var(--radius-sm);
	}

	.main-nav .sub-menu {
		position: static;
		min-width: 0;
		padding: 0 0 0 14px;
		border: 0;
		box-shadow: none;
		opacity: 1;
		visibility: visible;
		transform: none;
	}

	.main-nav .sub-menu a {
		font-size: 15px;
		font-weight: 500;
	}

	.main-nav__extra {
		display: flex;
		flex-direction: column;
		gap: 20px;
		padding-top: 24px;
		border-top: 1px solid var(--c-border);
	}

	.mnav-block__title {
		margin: 0 0 6px;
		font-size: 12px;
		font-weight: 800;
		letter-spacing: .08em;
		text-transform: uppercase;
		color: var(--c-muted);
	}

	.main-nav__extra .phone-list {
		display: grid;
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.main-nav__extra .phone-list a {
		padding: 6px 0;
		font-size: 15px;
	}

	.main-nav__extra .phone-list a:hover {
		background: none;
	}

	.mnav-address {
		display: flex;
		align-items: flex-start;
		gap: 8px;
		color: var(--c-muted);
		text-decoration: none;
	}

	.mnav-address .icon {
		margin-top: 2px;
		color: var(--c-accent);
	}

	.lang-switcher--mobile {
		align-self: flex-start;
	}

	.header-actions {
		position: relative;
		z-index: 120;
		gap: 10px;
	}

	.nav-backdrop {
		position: fixed;
		inset: 0;
		z-index: 105;
		display: block;
		background: rgba(20, 40, 55, .35);
		opacity: 0;
		visibility: hidden;
		transition: opacity .3s, visibility .3s;
	}

	.nav-open .nav-backdrop {
		opacity: 1;
		visibility: visible;
	}

	.footer-col--map {
		flex-basis: 100%;
	}
}

@media (max-width: 782px) {
	.admin-bar .site-header {
		top: 46px;
	}
}

@media (max-width: 768px) {
	.container {
		padding: 0 16px;
	}

	.entry-content > *,
	.entry-content > .alignwide {
		max-width: calc(100% - 32px);
	}

	.entry-content > .alignfull.has-background,
	.entry-content > .alignfull[class*="is-style-"] {
		padding-right: 16px;
		padding-left: 16px;
	}

	.topbar {
		display: none;
	}

	.header-book {
		display: none !important;
	}

	.brand__name {
		font-size: 17px;
	}

	.brand__tagline {
		display: none;
	}

	.footer-cta {
		flex-direction: column;
		align-items: flex-start;
		padding: 28px 24px;
	}

	.footer-cta .btn {
		width: 100%;
	}

	.container.footer-grid {
		flex-direction: column;
		gap: 36px;
	}

	.footer-col,
	.footer-col--map {
		flex: none;
	}

	.footer-bottom__inner {
		flex-direction: column;
		justify-content: center;
		padding: 16px 0;
		text-align: center;
	}
}

@media (max-width: 600px) {
	.admin-bar .site-header {
		top: 0;
	}
}

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

/* Case Callback: brand colors */
body .ccb-root,
body .ccb-inline {
	--ccb-primary: #1a7fae;
	--ccb-accent: #3aa8d8;
}

/* Case Reviews: reviews use the wide column inside page content. */
.entry-content > .crv:not(.crv--form-inline):not(.crv--summary) {
	max-width: min(1240px, 100% - 48px);
}

/* Case Video: video blocks use the wide column inside page content. */
.entry-content > .cvd:not(.cvd-single):not(.cvd-lightbox) {
	max-width: min(1240px, 100% - 48px);
}

/* =================================================================== */
/* Menu: long submenu (doctors) and doctor lists                        */
/* =================================================================== */

/* Chevron on items with a submenu */
.main-nav .menu-item-has-children > a::after {
	content: "";
	display: inline-block;
	width: 6px;
	height: 6px;
	margin: 0 0 3px 8px;
	border-right: 2px solid currentColor;
	border-bottom: 2px solid currentColor;
	opacity: .55;
	transform: rotate(45deg);
}

.submenu-toggle {
	display: none;
}

/* Desktop: a wide submenu with many items becomes three columns. */
@media (min-width: 1181px) {
	.main-nav .menu > .menu-item-has-children > .sub-menu {
		column-count: 3;
		column-gap: 6px;
		width: 700px;
		max-width: calc(100vw - 48px);
		padding: 12px;
	}

	.main-nav .menu > .menu-item-has-children > .sub-menu > li {
		break-inside: avoid;
	}

	.main-nav .menu > .menu-item-has-children > .sub-menu a {
		padding: 7px 12px;
		font-size: 14px;
		font-weight: 600;
		white-space: normal;
	}
}

/* Mobile: submenus are collapsed until the arrow is pressed. */
@media (max-width: 1180px) {
	.main-nav .menu-item-has-children {
		position: relative;
	}

	.main-nav .menu-item-has-children > a {
		padding-right: 56px;
	}

	.main-nav .menu-item-has-children > a::after {
		display: none;
	}

	.submenu-toggle {
		position: absolute;
		top: 4px;
		right: 0;
		display: grid;
		place-items: center;
		width: 44px;
		height: 44px;
		padding: 0;
		color: var(--c-text);
		background: var(--c-accent-soft);
		border: 0;
		border-radius: 50%;
		cursor: pointer;
	}

	.submenu-toggle::before {
		content: "";
		width: 8px;
		height: 8px;
		margin-bottom: 4px;
		border-right: 2px solid currentColor;
		border-bottom: 2px solid currentColor;
		transform: rotate(45deg);
		transition: transform .2s;
	}

	.is-expanded > .submenu-toggle::before {
		margin: 4px 0 0;
		transform: rotate(-135deg);
	}

	.main-nav .sub-menu {
		display: none;
	}

	.main-nav .is-expanded > .sub-menu {
		display: block;
		margin: 4px 0 8px;
		padding: 4px 0 4px 12px;
		border-left: 2px solid var(--c-accent-soft);
	}
}

/* Doctor cards («Лікарі» page) and chips (other specialists) */
.doctors {
	margin: 0;
	padding: 0;
	list-style: none;
}

.doctors--cards {
	margin: auto;
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 16px;
}

.entry-content > .doctors--cards {
	max-width: min(1240px, 100% - 48px);
	margin: auto;
}

.doctor-card {
	display: flex;
	align-items: center;
	gap: 14px;
	height: 100%;
	padding: 16px 18px;
	color: var(--c-text);
	text-decoration: none;
	background: var(--c-bg);
	border: 1px solid var(--c-border);
	border-radius: var(--radius);
	transition: border-color .2s, box-shadow .25s, transform .25s;
}

.doctor-card:hover {
	color: var(--c-text);
	border-color: #cfe3ee;
	box-shadow: var(--shadow);
	transform: translateY(-2px);
}

.doctor-card__avatar {
	flex: none;
	width: 56px;
	height: 56px;
	overflow: hidden;
	border-radius: 50%;
}

.doctor-card__avatar img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	border-radius: 0;
}

.doctor-card__body {
	display: flex;
	flex: 1;
	flex-direction: column;
	min-width: 0;
}

.doctor-card__body strong {
	font-size: 16px;
	font-weight: 800;
	line-height: 1.3;
}

.doctor-card__body small {
	margin-top: 2px;
	font-size: 13px;
	line-height: 1.4;
	color: var(--c-muted);
}

.doctor-card__go {
	flex: none;
	color: var(--c-accent);
	opacity: .5;
	transition: transform .2s, opacity .2s;
}

.doctor-card:hover .doctor-card__go {
	opacity: 1;
	transform: translateX(3px);
}

.doctors--chips {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}

.doctor-chip {
	display: inline-block;
	padding: 8px 16px;
	font-size: 14px;
	font-weight: 600;
	color: var(--c-text);
	text-decoration: none !important;
	background: var(--c-bg-alt);
	border: 1px solid var(--c-border);
	border-radius: 999px;
	transition: color .2s, background-color .2s, border-color .2s;
}

.doctor-chip:hover {
	color: #fff;
	background: var(--c-accent);
	border-color: var(--c-accent);
}

@media (max-width: 1024px) {
	.doctors--cards {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 640px) {
	.doctors--cards {
		grid-template-columns: 1fr;
	}
}

/* Plain (non-wide) groups keep the 820px reading width but share the left edge of wide blocks
   (columns, cards, articles) instead of floating in the middle of the page. */
.entry-content > .wp-block-group:not(.alignwide):not(.alignfull) {
	max-width: min(820px, 100% - 48px);
	margin-right: auto;
	margin-left: max(24px, calc((100% - 1240px) / 2));
}

/* Wide plain groups: headings, chip lists and the map start at the same left edge as the rest of the page. */
.entry-content .wp-block-group.alignwide:not([class*="is-style-"]) > :is(.doctors, .wp-block-heading, .mv-map) {
	margin-right: 0 !important;
	margin-left: 0 !important;
}

.entry-content .wp-block-group.alignwide:not([class*="is-style-"]) > :is(.doctors, .mv-map) {
	max-width: none;
}

/* Two structures: Medical Clinic and Wellness Center */
.section-head .section-lead {
	max-width: 760px;
	margin: 16px 0 0;
}

.structures {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 28px;
}

.structure {
	--st-accent: var(--c-accent);
	--st-soft: var(--c-accent-soft);
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	padding: clamp(28px, 3.5vw, 44px);
	background: linear-gradient(180deg, var(--st-soft) 0, #fff 55%);
	border: 1px solid var(--c-border);
	border-top: 4px solid var(--st-accent);
	border-radius: var(--radius);
	box-shadow: var(--shadow-sm);
}

.structure--wellness {
	--st-accent: #2f9e78;
	--st-soft: #e9f7f1;
}

.structure__tag {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	margin: 0 0 18px;
	padding: 6px 16px 6px 6px;
	font-size: 13px;
	font-weight: 800;
	letter-spacing: .06em;
	text-transform: uppercase;
	color: var(--st-accent);
	background: #fff;
	border: 1px solid var(--c-border);
	border-radius: 999px;
}

.structure__icon {
	display: grid;
	width: 34px;
	height: 34px;
	place-items: center;
	color: #fff;
	background: var(--st-accent);
	border-radius: 50%;
}

.structure__icon .icon {
	width: 18px;
	height: 18px;
}

.structure__title {
	margin: 0 0 12px;
	font-size: clamp(24px, 2.6vw, 32px);
	font-weight: 800;
	line-height: 1.2;
	letter-spacing: -.02em;
}

.structure__text {
	margin: 0 0 22px;
	color: var(--c-muted);
}

.structure__list {
	display: grid;
	gap: 10px;
	margin: 0 0 28px;
	padding: 0;
	list-style: none;
}

.structure__list li {
	display: flex;
	align-items: center;
	gap: 10px;
	font-weight: 600;
}

.structure__list .icon {
	flex: none;
	width: 20px;
	height: 20px;
	padding: 3px;
	color: #fff;
	background: var(--st-accent);
	border-radius: 50%;
	stroke-width: 3;
}

.structure .btn {
	margin-top: auto;
}

.structure--wellness .btn--outline {
	color: var(--st-accent);
	border-color: var(--st-accent);
}

.structure--wellness .btn--outline:hover {
	color: #fff;
	background: var(--st-accent);
}

.btn--outline {
	color: var(--c-accent);
	background: transparent;
	border: 2px solid var(--c-accent);
}

.btn--outline:hover {
	color: #fff;
	background: var(--c-accent);
}

@media (max-width: 900px) {
	.structures {
		grid-template-columns: 1fr;
	}
}

/* The block also lives inside page content (.entry-content), where generic typography applies. */
.structure .structure__title {
	margin: 0 0 12px;
	font-size: clamp(24px, 2.6vw, 32px);
	line-height: 1.2;
}

.structure .structure__text {
	margin: 0 0 22px;
}

.structure .structure__list {
	margin: 0 0 28px;
	padding: 0;
}

.structure .structure__list li + li {
	margin-top: 0;
}

.structure .structure__tag {
	margin: 0 0 18px;
}

.structure a.btn--primary {
	color: #fff;
}

.structure a.btn--outline {
	color: var(--c-accent);
}

.structure--wellness a.btn--outline {
	color: var(--st-accent);
}

.structure--wellness a.btn--outline:hover,
.structure a.btn--outline:hover {
	color: #fff;
}

.mv-structures .section-head {
	max-width: none;
	margin-bottom: 32px;
}

.structures .structure a.btn--primary {
	color: #fff;
}

.structures .structure a.btn--outline {
	color: var(--c-accent);
}

.structures .structure--wellness a.btn--outline {
	color: var(--st-accent);
}

.structures .structure a.btn--outline:hover {
	color: #fff;
}

.structures .structure .structure__list,
.structures .structure .structure__list li {
	margin-left: 0;
	padding-left: 0;
}
