/* ==========================================================================
   Сайт врача Турысбекова К. Т.
   1. Шрифты  2. Токены  3. База  4. Типографика  5. Кнопки и пилюли
   6. Шапка и меню  7. Подвал  8. Формы  9. Окна  10. Главная
   11. Секции и карточки  12. Услуги  13. Услуга  14. Статьи  15. Статья
   16. О враче  17. Контакты  18. Отзывы, пустые состояния, 404
   19. Просмотр фото  20. Версия для слабовидящих  21. Анимации  22. Отзывы-истории
   Адаптив — в responsive.css
   ========================================================================== */

/* 1. Шрифты (свои файлы, без Google: быстрее и без передачи данных третьим лицам) */
@font-face {
	font-family: "Lora";
	font-style: normal;
	font-weight: 400 700;
	font-display: swap;
	src: url("../fonts/lora-cyrillic.woff2") format("woff2");
	unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
	font-family: "Lora";
	font-style: normal;
	font-weight: 400 700;
	font-display: swap;
	src: url("../fonts/lora-latin.woff2") format("woff2");
	unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
	font-family: "Nunito";
	font-style: normal;
	font-weight: 400 800;
	font-display: swap;
	src: url("../fonts/nunito-cyrillic.woff2") format("woff2");
	unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
	font-family: "Nunito";
	font-style: normal;
	font-weight: 400 800;
	font-display: swap;
	src: url("../fonts/nunito-latin.woff2") format("woff2");
	unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* 2. Токены (цвета сняты с макета) */
:root {
	--bg: #f5f1ea;
	--surface: #ffffff;
	--sage: #dce5da;
	--sage-strong: #b9cbb8;
	--beige: #eae4d8;
	--peach: #f6ddd0;
	--dark: #17352f;
	--dark-2: #1b4039;
	--primary: #24524a;
	--primary-hover: #1d453e;
	--accent: #e59a72;
	--accent-hover: #da8a5f;

	--ink: #17352f;
	--text: #22312d;
	--muted: #5b6763;
	--line: #e3dccf;
	--line-strong: #cfc6b6;
	--error: #a83824;
	--focus: #24524a;

	--on-dark: #ffffff;
	--on-dark-muted: rgba(255, 255, 255, 0.74);

	--font-serif: "Lora", Georgia, "Times New Roman", serif;
	--font-sans: "Nunito", "Segoe UI", Roboto, Arial, sans-serif;

	--gutter: 24px;
	--max: 1872px;
	--r-xl: 32px;
	--r-lg: 24px;
	--r-md: 20px;
	--r-sm: 12px;
	--gap: 24px;
	--section: clamp(56px, 7vw, 112px);
	--pad: clamp(24px, 3.4vw, 64px);

	--fs-h1: clamp(2.5rem, 1.6rem + 3.2vw, 5.25rem);
	--fs-h2: clamp(2rem, 1.4rem + 2vw, 4rem);
	--fs-h3: clamp(1.75rem, 1.4rem + 1vw, 2.75rem);
	--fs-h4: clamp(1.25rem, 1.1rem + 0.4vw, 1.5rem);
	--fs-lead: clamp(1.0625rem, 1rem + 0.3vw, 1.25rem);
	--fs-body: 1.0625rem;
	--fs-small: 0.9375rem;
	--fs-xs: 0.8125rem;

	--ease: cubic-bezier(0.2, 0, 0, 1);
	--dur: 180ms;
	--header-h: 80px;
}
/* 3. База */
*,
*::before,
*::after {
	box-sizing: border-box;
}

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

body {
	margin: 0;
	background: var(--bg);
	color: var(--text);
	font-family: var(--font-sans);
	font-size: var(--fs-body);
	line-height: 1.6;
	font-optical-sizing: auto;
	-webkit-font-smoothing: antialiased;
	overflow-x: clip;
}

img,
svg,
video,
iframe {
	display: block;
	max-width: 100%;
}

img {
	height: auto;
}

a {
	color: inherit;
	text-decoration-thickness: 1px;
	text-underline-offset: 0.18em;
}

button,
input,
select,
textarea {
	font: inherit;
	color: inherit;
}

button {
	cursor: pointer;
}

h1,
h2,
h3,
h4,
p,
ul,
ol,
dl,
dd,
figure,
blockquote {
	margin: 0;
}

:where(ul[role="list"], ol[role="list"]) {
	list-style: none;
	padding: 0;
}

[hidden] {
	display: none !important;
}

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

.tone-dark :focus-visible,
.cta-dark :focus-visible,
.acc.is-open :focus-visible {
	outline-color: #ffffff;
}

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

.skip-link {
	position: fixed;
	top: 8px;
	left: 8px;
	z-index: 1000;
	padding: 12px 20px;
	border-radius: 999px;
	background: var(--dark);
	color: #fff;
	transform: translateY(-200%);
}

.skip-link:focus {
	transform: none;
}

.site-main {
	display: flex;
	flex-direction: column;
	gap: var(--gap);
	width: min(100% - 2 * var(--gutter), var(--max));
	margin-inline: auto;
	outline: none;
}

.icon {
	width: 20px;
	height: 20px;
	flex: none;
}

/* Тона панелей */
.tone-white { background: var(--surface); }
.tone-sage { background: var(--sage); }
.tone-beige { background: var(--beige); }
.tone-peach { background: var(--peach); }
.tone-dark { background: var(--dark); color: var(--on-dark); }

/* 4. Типографика */
.h1,
.h2,
.h3,
.hero__title,
.article__title {
	font-family: var(--font-serif);
	font-weight: 500;
	color: var(--ink);
	letter-spacing: -0.012em;
	text-wrap: balance;
}

.h1 {
	font-size: var(--fs-h1);
	line-height: 1.04;
}

.h2 {
	font-size: var(--fs-h2);
	line-height: 1.08;
}

.h3 {
	font-size: var(--fs-h3);
	line-height: 1.12;
}

.tone-dark .h1,
.tone-dark .h2,
.tone-dark .h3,
.cta-dark .h2 {
	color: var(--on-dark);
}

.lead {
	font-size: var(--fs-lead);
	line-height: 1.6;
	color: var(--muted);
	max-width: 36em;
	text-wrap: pretty;
}

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

.breadcrumbs li:not(:last-child)::after {
	content: "/";
	margin-left: 8px;
	color: var(--line-strong);
}

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

.breadcrumbs a:hover {
	color: var(--ink);
	text-decoration: underline;
}

.breadcrumbs [aria-current] {
	color: var(--text);
}

/* 5. Кнопки, пилюли, метки */
.btn {
	--btn-bg: var(--primary);
	--btn-fg: #ffffff;
	--btn-border: transparent;
	--btn-icon-bg: #ffffff;
	--btn-icon-fg: var(--ink);
	display: inline-flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	min-height: 56px;
	padding: 8px 8px 8px 28px;
	border: 1px solid var(--btn-border);
	border-radius: 999px;
	background: var(--btn-bg);
	color: var(--btn-fg);
	font-size: 1.0625rem;
	font-weight: 600;
	line-height: 1.2;
	text-decoration: none;
	white-space: nowrap;
	transition: background-color var(--dur) var(--ease), border-color var(--dur) var(--ease), color var(--dur) var(--ease);
}

.btn__icon {
	display: inline-grid;
	place-items: center;
	width: 40px;
	height: 40px;
	border-radius: 50%;
	background: var(--btn-icon-bg);
	color: var(--btn-icon-fg);
	flex: none;
	transition: transform var(--dur) var(--ease);
}

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

.btn:hover .btn__icon {
	transform: rotate(45deg);
}

.btn--primary:hover {
	--btn-bg: var(--primary-hover);
}

.btn--light {
	--btn-bg: var(--surface);
	--btn-fg: var(--ink);
	--btn-border: var(--line);
	--btn-icon-bg: var(--sage);
}

.btn--light:hover {
	--btn-border: var(--line-strong);
	--btn-bg: #fbfaf7;
}

.btn--white {
	--btn-bg: var(--surface);
	--btn-fg: var(--ink);
	--btn-icon-bg: var(--accent);
	--btn-icon-fg: var(--ink);
}

.btn--white:hover {
	--btn-bg: #f6f3ee;
}

.btn--no-icon {
	padding: 8px 24px;
	justify-content: center;
}

.btn--sm {
	min-height: 48px;
	font-size: 0.9375rem;
}

.btn--full {
	width: 100%;
}

.btn[disabled],
.btn[aria-busy="true"] {
	opacity: 0.7;
	cursor: progress;
}

.btn-row {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 12px 16px;
}

.icon-btn {
	display: inline-grid;
	place-items: center;
	width: 48px;
	height: 48px;
	padding: 0;
	border: 1px solid transparent;
	border-radius: 50%;
	background: transparent;
	color: var(--ink);
	flex: none;
	transition: background-color var(--dur) var(--ease), border-color var(--dur) var(--ease), opacity var(--dur) var(--ease);
}

.icon-btn--outline {
	border-color: var(--line);
	background: var(--surface);
}

.icon-btn--outline:hover {
	border-color: var(--line-strong);
}

.icon-btn--white {
	background: var(--surface);
	width: 56px;
	height: 56px;
}

.icon-btn--white:hover {
	background: #fbfaf7;
}

.icon-btn--soft {
	background: var(--bg);
}

.icon-btn--soft:hover {
	background: var(--beige);
}

.icon-btn--light {
	background: rgba(255, 255, 255, 0.92);
	color: var(--ink);
}

.icon-btn[disabled] {
	opacity: 0.4;
	cursor: default;
}

.icon-btn[aria-pressed="true"] {
	background: var(--primary);
	border-color: var(--primary);
	color: #fff;
}

.text-link {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	min-height: 44px;
	color: var(--primary);
	font-weight: 600;
	text-decoration: none;
}

.text-link:hover {
	text-decoration: underline;
}

.text-link--light {
	color: #fff;
}

.pills {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.pill {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	min-height: 48px;
	padding: 10px 22px;
	border: 1px solid transparent;
	border-radius: 999px;
	background: var(--surface);
	color: var(--ink);
	font-size: 1.0625rem;
	font-weight: 500;
	line-height: 1.2;
	text-decoration: none;
	transition: background-color var(--dur) var(--ease), border-color var(--dur) var(--ease);
}

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

.pill:hover {
	background: #fbfaf7;
}

.pill--beige {
	background: var(--bg);
}

.pill--beige:hover {
	background: var(--beige);
}

.pill--outline {
	border-color: var(--line-strong);
}

.pill--outline:hover {
	border-color: var(--muted);
}

.pill.is-current {
	background: var(--primary);
	color: #fff;
}

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

.chip {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	width: fit-content;
	padding: 6px 14px;
	border-radius: 999px;
	font-size: var(--fs-small);
	font-weight: 500;
	line-height: 1.3;
	color: var(--ink);
	text-decoration: none;
}

.chip--white { background: var(--surface); }
.chip--sage { background: var(--sage); }
.chip--peach { background: var(--peach); }
.chip--lg { padding: 10px 20px; font-size: 1.0625rem; }

.chip--dot::before {
	content: "";
	width: 7px;
	height: 7px;
	border-radius: 50%;
	background: var(--accent);
	flex: none;
}

a.chip:hover {
	text-decoration: underline;
}

.round-icon {
	display: inline-grid;
	place-items: center;
	width: 56px;
	height: 56px;
	border-radius: 50%;
	background: var(--sage);
	color: var(--ink);
	flex: none;
}

.round-icon .icon {
	width: 22px;
	height: 22px;
}

/* 6. Шапка и меню */
.site-header {
	position: sticky;
	top: 0;
	z-index: 50;
	width: min(100% - 2 * var(--gutter), var(--max));
	margin: 0 auto var(--gap);
	padding-top: var(--gutter);
	background: linear-gradient(var(--bg) 60%, transparent);
}

.site-header__bar {
	display: flex;
	align-items: center;
	gap: 24px;
	min-height: var(--header-h);
	padding: 8px 8px 8px 32px;
	border-radius: 999px;
	background: var(--surface);
	transition: box-shadow var(--dur) var(--ease);
}

.site-header.is-stuck .site-header__bar {
	box-shadow: 0 6px 24px rgba(23, 53, 47, 0.08);
}

.logo {
	display: flex;
	flex-direction: column;
	gap: 2px;
	color: var(--ink);
	text-decoration: none;
	flex: none;
}

.logo__name {
	font-family: var(--font-serif);
	font-size: 1.375rem;
	font-weight: 600;
	line-height: 1.1;
}

.logo__tagline {
	font-size: 0.875rem;
	color: var(--muted);
	line-height: 1.2;
}

.nav {
	flex: 1;
	display: flex;
	justify-content: center;
	min-width: 0;
	overflow: hidden;
}

/* Меню не помещается (длинные пункты, другой язык) — шапка сама переходит на бургер */
.site-header.is-compact .nav {
	display: none;
}

.site-header.is-compact .burger {
	display: inline-grid;
}

.nav__list {
	display: flex;
	gap: 4px;
	margin: 0;
	padding: 4px;
	list-style: none;
	border-radius: 999px;
	background: var(--bg);
}

.nav__link {
	display: inline-flex;
	align-items: center;
	min-height: 44px;
	padding: 0 16px;
	border-radius: 999px;
	color: var(--ink);
	font-weight: 500;
	text-decoration: none;
	white-space: nowrap;
	transition: background-color var(--dur) var(--ease);
}

.nav__link:hover {
	background: rgba(255, 255, 255, 0.6);
}

.nav__link.is-current,
.nav .current-menu-item > .nav__link {
	background: var(--surface);
	box-shadow: 0 1px 2px rgba(23, 53, 47, 0.06);
}

.site-header__actions {
	display: flex;
	align-items: center;
	gap: 12px;
	margin-left: auto;
	flex: none;
}

.header-phone {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	min-height: 44px;
	padding: 0 6px;
	color: var(--ink);
	font-weight: 600;
	text-decoration: none;
	white-space: nowrap;
}

.header-phone .icon {
	width: 18px;
	height: 18px;
	color: var(--primary);
}

.header-phone:hover .header-phone__text {
	text-decoration: underline;
}

.lang {
	position: relative;
}

.lang__current {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	min-height: 48px;
	padding: 0 14px 0 16px;
	border: 1px solid var(--line);
	border-radius: 999px;
	background: var(--surface);
	font-weight: 600;
	cursor: pointer;
	list-style: none;
}

.lang__current::-webkit-details-marker {
	display: none;
}

.lang__current .icon {
	width: 16px;
	height: 16px;
}

.lang__list {
	position: absolute;
	top: calc(100% + 8px);
	right: 0;
	min-width: 160px;
	margin: 0;
	padding: 6px;
	list-style: none;
	border: 1px solid var(--line);
	border-radius: 16px;
	background: var(--surface);
	box-shadow: 0 12px 32px rgba(23, 53, 47, 0.12);
}

.lang__list a {
	display: block;
	padding: 10px 12px;
	border-radius: 10px;
	text-decoration: none;
}

.lang__list a:hover,
.lang__list a[aria-current] {
	background: var(--bg);
}

.burger {
	display: none;
}

/* Выезжающее меню */
.drawer {
	position: fixed;
	inset: 0 0 0 auto;
	width: min(420px, 100%);
	max-width: 100%;
	height: 100dvh;
	max-height: 100dvh;
	margin: 0;
	padding: 0;
	border: 0;
	background: transparent;
	color: var(--text);
	overflow: visible;
}

.drawer::backdrop {
	background: rgba(23, 53, 47, 0.42);
}

.drawer__panel {
	display: flex;
	flex-direction: column;
	gap: 24px;
	height: 100%;
	padding: 20px 20px calc(20px + env(safe-area-inset-bottom));
	background: var(--bg);
	overflow-y: auto;
	transform: translateX(var(--drag, 0px));
}

.drawer__head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	padding: 8px 8px 8px 16px;
	border-radius: 999px;
	background: var(--surface);
}

.drawer__list {
	display: flex;
	flex-direction: column;
	margin: 0;
	padding: 0;
	list-style: none;
}

.drawer__list .nav__link {
	display: flex;
	min-height: 56px;
	padding: 0 16px;
	font-family: var(--font-serif);
	font-size: 1.625rem;
	font-weight: 500;
	border-radius: 16px;
}

.drawer__list .nav__link.is-current,
.drawer__list .current-menu-item > .nav__link {
	background: var(--surface);
}

.drawer__foot {
	display: flex;
	flex-direction: column;
	gap: 16px;
	margin-top: auto;
}

.drawer__contacts,
.drawer__extra {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}

/* 7. Подвал */
.site-footer {
	width: min(100% - 2 * var(--gutter), var(--max));
	margin: var(--gap) auto var(--gutter);
}

.site-footer__card {
	padding: clamp(32px, 3vw, 48px);
	border-radius: var(--r-xl);
	background: var(--surface);
}

.site-footer__grid {
	display: grid;
	grid-template-columns: minmax(0, 1fr) repeat(3, minmax(0, 1fr));
	gap: 32px;
	padding-bottom: 40px;
	border-bottom: 1px solid var(--line);
}

.site-footer__name {
	font-family: var(--font-serif);
	font-size: clamp(1.5rem, 1.3rem + 0.5vw, 1.875rem);
	line-height: 1.2;
	color: var(--ink);
}

.site-footer__text {
	margin-top: 16px;
	max-width: 24em;
	color: var(--muted);
	font-size: var(--fs-small);
}

.site-footer__label {
	margin-bottom: 12px;
	font-size: var(--fs-small);
	color: var(--muted);
}

.site-footer__list {
	display: flex;
	flex-direction: column;
	gap: 4px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.site-footer__list li {
	min-height: 32px;
	display: flex;
	align-items: center;
}

.footer__link {
	color: var(--text);
	text-decoration: none;
}

.footer__link:hover {
	text-decoration: underline;
}

.site-footer__bottom {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 12px 32px;
	padding-top: 32px;
	font-size: var(--fs-small);
	color: var(--muted);
}

.site-footer__disclaimer {
	flex: 1;
	text-align: center;
	min-width: 260px;
}

.site-footer__policy {
	color: var(--ink);
	text-decoration: none;
}

.site-footer__policy:hover {
	text-decoration: underline;
}

/* 8. Формы */
.form-card {
	padding: clamp(24px, 2vw, 32px);
	border-radius: var(--r-lg);
	background: var(--surface);
}

.lead-form {
	display: flex;
	flex-direction: column;
	gap: 16px;
}

.lead-form__title {
	font-family: var(--font-serif);
	font-size: clamp(1.5rem, 1.35rem + 0.5vw, 2rem);
	font-weight: 500;
	line-height: 1.2;
	color: var(--ink);
}

.lead-form__text {
	margin-top: -4px;
	color: var(--muted);
}

.field {
	display: flex;
	flex-direction: column;
	gap: 6px;
}

.field__label {
	display: flex;
	justify-content: space-between;
	gap: 8px;
	font-size: var(--fs-small);
	color: var(--muted);
}

.field__optional {
	color: var(--muted);
	opacity: 0.8;
	font-size: var(--fs-xs);
}

.input {
	width: 100%;
	min-height: 56px;
	padding: 14px 18px;
	border: 1px solid var(--line-strong);
	border-radius: var(--r-sm);
	background: var(--surface);
	color: var(--text);
	font-size: 1.0625rem;
	line-height: 1.4;
	transition: border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
	-webkit-appearance: none;
	appearance: none;
}

.input::placeholder {
	color: #8a928f;
}

.input:hover {
	border-color: var(--muted);
}

.input:focus {
	outline: none;
	border-color: var(--focus);
	box-shadow: 0 0 0 3px rgba(36, 82, 74, 0.18);
}

.input[aria-invalid="true"] {
	border-color: var(--error);
	box-shadow: 0 0 0 3px rgba(168, 56, 36, 0.12);
}

.input--area {
	min-height: 56px;
	height: 96px;
	resize: none;
}

.select {
	position: relative;
}

.select .input {
	padding-right: 48px;
	cursor: pointer;
}

.select__icon {
	position: absolute;
	right: 16px;
	top: 50%;
	width: 20px;
	height: 20px;
	transform: translateY(-50%);
	pointer-events: none;
	color: var(--muted);
}

.field__error {
	display: flex;
	gap: 6px;
	font-size: var(--fs-small);
	color: var(--error);
	line-height: 1.35;
}

.check {
	display: flex;
	align-items: flex-start;
	gap: 12px;
	cursor: pointer;
	font-size: 1rem;
	line-height: 1.45;
}

.check__input {
	position: absolute;
	opacity: 0;
	width: 1px;
	height: 1px;
}

.check__box {
	display: grid;
	place-items: center;
	width: 28px;
	height: 28px;
	border: 1.5px solid var(--line-strong);
	border-radius: 8px;
	background: var(--surface);
	color: transparent;
	flex: none;
	transition: background-color var(--dur) var(--ease), border-color var(--dur) var(--ease);
}

.check__box .icon {
	width: 16px;
	height: 16px;
	stroke-width: 2.5;
}

.check__input:checked + .check__box {
	background: var(--primary);
	border-color: var(--primary);
	color: #fff;
}

.check__input:focus-visible + .check__box {
	outline: 3px solid var(--focus);
	outline-offset: 2px;
}

.check__input[aria-invalid="true"] + .check__box {
	border-color: var(--error);
}

.check__label {
	padding-top: 2px;
}

.check__label a {
	color: var(--primary);
}

.lead-form__consent {
	font-size: var(--fs-xs);
	line-height: 1.5;
	color: var(--muted);
}

.lead-form__consent a {
	color: var(--muted);
}

.lead-form__status {
	padding: 12px 16px;
	border-radius: var(--r-sm);
	background: rgba(168, 56, 36, 0.08);
	color: var(--error);
	font-size: var(--fs-small);
	width: fit-content;
	max-width: 100%;
}

.hp {
	position: absolute !important;
	left: -9999px;
	width: 1px;
	height: 1px;
	overflow: hidden;
}

.lead-success {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 16px;
	padding: 16px 0;
	text-align: center;
	outline: none;
}

.lead-success[hidden] {
	display: none;
}

.lead-success__icon {
	display: grid;
	place-items: center;
	width: 80px;
	height: 80px;
	border-radius: 50%;
	background: var(--sage);
	color: var(--primary);
}

.lead-success__icon .icon {
	width: 32px;
	height: 32px;
}

.lead-success__title {
	font-family: var(--font-serif);
	font-size: clamp(1.5rem, 1.3rem + 0.6vw, 2rem);
	font-weight: 500;
	line-height: 1.2;
	color: var(--ink);
	text-wrap: balance;
}

.lead-success__text {
	color: var(--muted);
	max-width: 28em;
}

/* 9. Окно записи */
.modal {
	width: min(520px, calc(100% - 32px));
	max-height: calc(100dvh - 32px);
	padding: 0;
	border: 0;
	border-radius: var(--r-xl);
	background: var(--surface);
	color: var(--text);
	overflow: hidden;
}

.modal::backdrop {
	background: rgba(23, 53, 47, 0.72);
}

.modal__card {
	position: relative;
	max-height: calc(100dvh - 32px);
	padding: clamp(24px, 3vw, 40px);
	overflow-y: auto;
	overscroll-behavior: contain;
}

.modal__close {
	position: absolute;
	top: clamp(16px, 2.5vw, 32px);
	right: clamp(16px, 2.5vw, 32px);
}

.modal .lead-form__title {
	padding-right: 56px;
}

body.has-modal {
	overflow: hidden;
}

/* 10. Главная */

/* Первый экран */
.hero {
	--hero-pad: clamp(24px, 2.5vw, 48px);
	position: relative;
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(320px, 400px);
	grid-template-rows: 1fr auto;
	gap: 32px;
	min-height: clamp(640px, 44vw, 840px);
	padding: var(--hero-pad);
	border-radius: var(--r-xl);
	background: var(--sage);
	overflow: hidden;
	isolation: isolate;
}

.hero__decor {
	position: absolute;
	inset: 0;
	z-index: -1;
	pointer-events: none;
}

.hero__decor::before {
	content: "";
	position: absolute;
	right: -10%;
	top: 30%;
	width: 58%;
	aspect-ratio: 1;
	border-radius: 50%;
	background: #cddacb;
}

.hero__decor::after {
	content: "";
	position: absolute;
	left: 34%;
	top: -46%;
	width: 66%;
	aspect-ratio: 1;
	border-radius: 50%;
	background: #e3eae1;
}

.hero__slides {
	grid-column: 1;
	grid-row: 1;
	display: grid;
}

.hero__slide {
	grid-area: 1 / 1;
	opacity: 0;
	visibility: hidden;
	transition: opacity 400ms var(--ease), visibility 0s linear 400ms;
}

.hero__slide.is-active {
	opacity: 1;
	visibility: visible;
	transition: opacity 400ms var(--ease);
}

.hero__content {
	position: relative;
	z-index: 2;
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 28px;
	max-width: min(640px, 50%);
}

.hero__content .btn-row {
	flex-wrap: nowrap;
}

.hero__title {
	font-size: clamp(2.5rem, 5vw - 12px, 5.25rem);
	line-height: 1.03;
}

.hero__text {
	max-width: 30em;
	font-size: var(--fs-lead);
	line-height: 1.6;
	color: var(--text);
}

/* Фото врача: по центру карточки, прижато к низу */
.hero__photo {
	position: absolute;
	z-index: 1;
	left: 54%;
	bottom: 0;
	width: clamp(360px, 30vw, 620px);
	transform: translateX(-50%);
	pointer-events: none;
}

.hero__img {
	width: 100%;
	height: auto;
	max-height: calc(100% - 0px);
	object-fit: contain;
	object-position: bottom center;
}

.hero__form {
	grid-column: 2;
	grid-row: 1 / span 2;
	align-self: start;
	position: relative;
	z-index: 3;
	border-radius: 28px;
}

.hero__controls {
	position: relative;
	z-index: 3;
	grid-column: 1;
	grid-row: 2;
	display: flex;
	align-items: center;
	gap: 16px;
	flex-wrap: wrap;
	width: fit-content;
}

.hero__tabs {
	display: flex;
	gap: 12px;
}

.hero__tab {
	display: flex;
	flex-direction: column;
	gap: 10px;
	width: 140px;
	min-height: 48px;
	padding: 10px 0 0;
	border: 0;
	background: none;
	text-align: left;
	color: var(--muted);
	font-size: var(--fs-small);
}

.hero__tab.is-active {
	color: var(--ink);
	font-weight: 600;
}

.hero__bar {
	position: relative;
	display: block;
	height: 3px;
	border-radius: 3px;
	background: rgba(255, 255, 255, 0.85);
	overflow: hidden;
}

.hero__bar-fill {
	position: absolute;
	inset: 0;
	background: var(--primary);
	transform: scaleX(0);
	transform-origin: left;
}

.hero__tab.is-done .hero__bar-fill {
	transform: scaleX(1);
}

.hero__tab.is-active .hero__bar-fill {
	transform: scaleX(var(--progress, 0));
}

.hero.is-paused .hero__tab.is-active .hero__bar-fill,
.hero:not([data-autoplay]) .hero__tab.is-active .hero__bar-fill {
	transform: scaleX(var(--progress, 1));
}

.hero__buttons {
	display: flex;
	gap: 12px;
}

.hero__buttons .icon-btn {
	width: 48px;
	height: 48px;
}

.hero [data-hero-pause] .icon--play,
.hero.is-paused [data-hero-pause] .icon--pause {
	display: none;
}

.hero.is-paused [data-hero-pause] .icon--play {
	display: block;
}

/* Шесть причин */
.bento {
	display: grid;
	grid-template-columns: minmax(300px, 520fr) minmax(0, 1328fr);
	grid-template-rows: auto auto;
	gap: var(--gap);
}

.bento__intro {
	position: relative;
	grid-row: 1 / span 2;
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 16px;
	min-height: 420px;
	padding: clamp(28px, 2.2vw, 40px);
	border-radius: var(--r-xl);
	overflow: hidden;
	isolation: isolate;
}

.bento__intro-decor {
	position: absolute;
	inset: 0;
	z-index: -1;
}

.bento__intro-decor::before,
.bento__intro-decor::after {
	content: "";
	position: absolute;
	border-radius: 50%;
}

.bento__intro-decor::before {
	right: -30%;
	bottom: -45%;
	width: 120%;
	aspect-ratio: 1;
	background: #1d3d36;
}

.bento__intro-decor::after {
	right: -18%;
	bottom: -38%;
	width: 85%;
	aspect-ratio: 1;
	background: var(--primary);
}

.bento__title {
	color: #fff;
	max-width: 12em;
}

.bento__text {
	max-width: 22em;
	color: var(--on-dark-muted);
}

.bento__btn {
	margin-top: auto;
}

.bento__row {
	display: grid;
	gap: var(--gap);
	margin: 0;
	padding: 0;
	list-style: none;
}

.bento__row--a {
	grid-template-columns: 13fr 13fr 6fr;
}

.bento__row--b {
	grid-template-columns: 6fr 13fr 13fr;
}

.tile {
	position: relative;
	display: flex;
	flex-direction: column;
	justify-content: space-between;
	gap: 16px;
	min-height: 220px;
	padding: 28px;
	border-radius: var(--r-xl);
	overflow: hidden;
	isolation: isolate;
}

.tile__icon {
	display: grid;
	place-items: center;
	width: 56px;
	height: 56px;
	border-radius: 50%;
	background: var(--sage);
	color: var(--ink);
}

.tile.tone-sage .tile__icon,
.tile.tone-beige .tile__icon {
	background: rgba(255, 255, 255, 0.55);
}

.tile__icon .icon {
	width: 22px;
	height: 22px;
}

.tile__number {
	font-family: var(--font-serif);
	font-size: clamp(3.5rem, 2.8rem + 2vw, 5rem);
	font-weight: 500;
	line-height: 0.95;
	color: var(--ink);
}

.tile__body {
	position: relative;
	z-index: 1;
	margin-top: auto;
}

.tile__title {
	font-family: var(--font-serif);
	font-size: var(--fs-h4);
	font-weight: 600;
	line-height: 1.25;
	color: var(--ink);
}

.tile__text {
	margin-top: 6px;
	font-size: var(--fs-small);
	color: var(--muted);
}

.tile--number .tile__text {
	font-size: 1.0625rem;
	font-weight: 600;
	color: var(--ink);
}

.motif {
	position: absolute;
	z-index: -1;
	right: 0;
	top: 0;
	height: 100%;
	width: auto;
	max-width: 46%;
	object-fit: contain;
	object-position: right top;
	pointer-events: none;
	user-select: none;
}

.motif--arcs {
	top: auto;
	bottom: 0;
	height: auto;
	width: 96px;
	object-position: right bottom;
}

.motif--clock {
	top: 50%;
	right: 8px;
	height: 92%;
	transform: translateY(-50%);
}

.motif--needles {
	right: auto;
	left: 44%;
	height: 64%;
	width: auto;
	color: var(--sage-strong);
}

/* 11. Секции, заголовки секций, карусели, карточки */
.section {
	display: flex;
	flex-direction: column;
	gap: clamp(24px, 2.5vw, 40px);
	padding-top: calc(var(--section) - var(--gap));
}

.section--tight {
	padding-top: calc(var(--section) * 0.6);
}

.section--inset {
	padding-inline: clamp(0px, 1.3vw, 24px);
}

.section-head {
	display: flex;
	align-items: flex-end;
	justify-content: space-between;
	gap: 24px;
	flex-wrap: wrap;
}

.section-head__main {
	display: flex;
	flex-direction: column;
	gap: 16px;
	max-width: 52em;
}

.section-head__text {
	max-width: 36em;
	color: var(--muted);
	font-size: var(--fs-lead);
}

.section-head__aside {
	display: flex;
	align-items: center;
	gap: 12px;
}
.carousel {
	--card-w: clamp(260px, 22vw, 340px);
	display: grid;
	grid-auto-flow: column;
	grid-auto-columns: var(--card-w);
	gap: var(--gap);
	margin: 0 calc(-1 * var(--gutter));
	padding: 4px var(--gutter) 12px;
	list-style: none;
	overflow-x: auto;
	scroll-snap-type: x mandatory;
	scroll-padding-inline: var(--gutter);
	overscroll-behavior-x: contain;
	scrollbar-width: none;
}

.carousel::-webkit-scrollbar {
	display: none;
}

.carousel__item {
	scroll-snap-align: start;
}

.carousel--docs {
	--card-w: clamp(220px, 15vw, 272px);
}
/* Карточка услуги */
.svc-card {
	position: relative;
	display: flex;
	flex-direction: column;
	justify-content: flex-end;
	height: 100%;
	min-height: 440px;
	padding: 16px;
	border-radius: 28px;
	overflow: hidden;
	isolation: isolate;
}

.svc-card--circle .svc-card__media {
	position: absolute;
	top: 40px;
	left: 27%;
	width: 86%;
	aspect-ratio: 1;
	border-radius: 50%;
	overflow: hidden;
	z-index: -1;
}

.svc-card__img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.svc-card__arrow {
	position: absolute;
	top: 16px;
	right: 16px;
	display: grid;
	place-items: center;
	width: 48px;
	height: 48px;
	border-radius: 50%;
	background: var(--surface);
	color: var(--ink);
	transition: transform var(--dur) var(--ease);
}

.svc-card__arrow .icon {
	width: 18px;
	height: 18px;
}

.svc-card:hover .svc-card__arrow {
	transform: rotate(45deg);
}

.svc-card__body {
	padding: 20px;
	border-radius: var(--r-md);
	background: var(--surface);
}

.svc-card__title {
	font-family: var(--font-serif);
	font-size: clamp(1.25rem, 0.5rem + 0.9vw, 1.5rem);
	font-weight: 600;
	line-height: 1.25;
	color: var(--ink);
	overflow-wrap: break-word;
	hyphens: auto;
}

.svc-card__link {
	text-decoration: none;
}

.svc-card__link::after {
	content: "";
	position: absolute;
	inset: 0;
	z-index: 2;
	border-radius: inherit;
}

.svc-card__link:focus-visible {
	outline: none;
}

.svc-card__link:focus-visible::after {
	outline: 3px solid var(--focus);
	outline-offset: -3px;
	border-radius: 28px;
}

.svc-card__text {
	margin-top: 6px;
	font-size: var(--fs-small);
	color: var(--muted);
}

.svc-card--photo {
	min-height: 0;
	aspect-ratio: 608 / 440;
}

.svc-card--photo .svc-card__media {
	position: absolute;
	inset: 0;
	z-index: -1;
}

.card-grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: var(--gap);
	margin: 0;
	padding: 0;
	list-style: none;
}

/* Статьи на главной */
.home-articles {
	display: grid;
	grid-template-columns: minmax(0, 680fr) minmax(0, 1160fr);
	gap: 32px;
	align-items: start;
}

.home-articles__list {
	display: flex;
	flex-direction: column;
	gap: 16px;
	margin: 0;
	padding: 0;
	list-style: none;
}
/* Карточка статьи */
.post-card {
	position: relative;
	display: flex;
	flex-direction: column;
	gap: 20px;
}

.post-card__media {
	border-radius: var(--r-lg);
	overflow: hidden;
	background: var(--beige);
}

.post-card__img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 300ms var(--ease);
}

.post-card:hover .post-card__img {
	transform: scale(1.02);
}

.post-card__body {
	display: flex;
	flex-direction: column;
	gap: 12px;
}

.post-meta {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px 14px;
	font-size: var(--fs-small);
	color: var(--muted);
}

.post-meta__cat {
	color: var(--primary);
	font-weight: 600;
}

.post-card__title {
	font-family: var(--font-serif);
	font-size: var(--fs-h4);
	font-weight: 600;
	line-height: 1.3;
	color: var(--ink);
	text-wrap: pretty;
}

.post-card__link {
	text-decoration: none;
}

.post-card__link::after {
	content: "";
	position: absolute;
	inset: 0;
	z-index: 1;
}

.post-card__link:hover {
	text-decoration: underline;
}

.post-card__link:focus-visible {
	outline: none;
}

.post-card__link:focus-visible::after {
	outline: 3px solid var(--focus);
	outline-offset: 2px;
	border-radius: var(--r-lg);
}

.post-card--lead .post-card__media {
	aspect-ratio: 680 / 420;
	border-radius: 28px;
}

.post-card--lead .post-card__title {
	font-size: clamp(1.5rem, 1.25rem + 0.7vw, 2rem);
	font-weight: 500;
}

.post-card--row {
	flex-direction: row;
	align-items: center;
	gap: 24px;
	padding: 16px;
	border-radius: 28px;
	background: var(--surface);
}

.post-card--row .post-card__media {
	width: 180px;
	aspect-ratio: 180 / 140;
	border-radius: 18px;
	flex: none;
}

.post-card--grid {
	height: 100%;
	padding: 16px 16px 24px;
	border-radius: 28px;
	background: var(--surface);
}

.post-card--grid .post-card__media {
	aspect-ratio: 576 / 250;
	border-radius: 20px;
}

.post-card--grid .post-card__body {
	padding-inline: 8px;
}

.post-card--featured {
	flex-direction: row;
	align-items: center;
	gap: clamp(24px, 3vw, 48px);
	padding: 16px;
	border-radius: var(--r-xl);
	background: var(--surface);
}

.post-card--featured .post-card__media {
	width: 41%;
	aspect-ratio: 720 / 440;
	border-radius: var(--r-lg);
	flex: none;
}

.post-card--featured .post-card__body {
	gap: 20px;
	padding-right: 32px;
}

.post-card--featured .post-card__title {
	font-size: clamp(1.75rem, 1.3rem + 1.3vw, 2.75rem);
	font-weight: 500;
	line-height: 1.15;
}

.post-card__excerpt {
	color: var(--muted);
	font-size: var(--fs-lead);
}

.post-card__btn {
	width: fit-content;
	margin-top: 8px;
}

/* Тёмный блок записи */
.cta-dark {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(300px, 440px);
	gap: 40px;
	align-items: center;
	margin-top: calc(var(--section) - var(--gap) * 2);
	padding: clamp(32px, 3.4vw, 64px);
	border-radius: var(--r-xl);
	background: var(--dark-2);
	color: var(--on-dark);
}

.cta-dark__main {
	display: flex;
	flex-direction: column;
	gap: 24px;
}

.cta-dark__title {
	max-width: 14em;
	font-weight: 400;
}

.cta-dark__text {
	color: var(--on-dark-muted);
	font-size: var(--fs-lead);
}

.info-list {
	display: flex;
	flex-direction: column;
	gap: 12px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.info-item {
	display: flex;
	align-items: center;
	gap: 16px;
	padding: 20px;
	border-radius: var(--r-md);
	background: var(--primary);
}

.info-item__icon {
	display: grid;
	place-items: center;
	width: 48px;
	height: 48px;
	border-radius: 50%;
	background: var(--dark);
	color: #fff;
	flex: none;
}

.info-item__body {
	display: flex;
	flex-direction: column;
	gap: 2px;
	min-width: 0;
}

.info-item__label {
	font-size: var(--fs-small);
	color: var(--on-dark-muted);
}

.info-item__value {
	font-family: var(--font-serif);
	font-size: clamp(1.25rem, 1.1rem + 0.4vw, 1.5rem);
	font-weight: 500;
	line-height: 1.25;
	color: #fff;
	text-decoration: none;
	overflow-wrap: anywhere;
}

a.info-item__value:hover {
	text-decoration: underline;
}
/* Секция с формой справа */
.cta-form {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(320px, 520px);
	gap: 40px;
	align-items: center;
	padding: clamp(24px, 3.4vw, 64px);
	border-radius: var(--r-xl);
	scroll-margin-top: calc(var(--header-h) + 40px);
}

.cta-form__intro {
	display: flex;
	flex-direction: column;
	gap: 24px;
}

.cta-form__title {
	font-weight: 400;
	max-width: 15em;
}

.cta-form__text {
	font-size: var(--fs-lead);
	color: var(--text);
	max-width: 40em;
}
/* Панели и списки */
.split {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: var(--gap);
}

.panel {
	display: flex;
	flex-direction: column;
	gap: 32px;
	padding: clamp(28px, 2.6vw, 48px);
	border-radius: var(--r-xl);
}

.panel__head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	flex-wrap: wrap;
}
.timeline {
	display: flex;
	flex-direction: column;
	margin: 0;
	padding: 0;
	list-style: none;
}

.timeline__item {
	position: relative;
	display: flex;
	flex-direction: column;
	gap: 4px;
	padding: 0 0 28px 36px;
}

.timeline__item::before {
	content: "";
	position: absolute;
	left: 3px;
	top: 6px;
	width: 11px;
	height: 11px;
	border-radius: 50%;
	background: var(--accent);
}

.timeline__item:not(:last-child)::after {
	content: "";
	position: absolute;
	left: 8px;
	top: 24px;
	bottom: 6px;
	width: 1.5px;
	background: var(--line-strong);
}

.timeline__item:last-child {
	padding-bottom: 0;
}

.timeline__years {
	font-size: var(--fs-small);
	font-weight: 600;
	color: var(--primary);
}

.timeline__title {
	font-family: var(--font-serif);
	font-size: var(--fs-h4);
	font-weight: 600;
	line-height: 1.3;
	color: var(--ink);
}

.timeline__place {
	font-size: var(--fs-small);
	color: var(--muted);
}

.marks {
	display: flex;
	flex-direction: column;
	gap: 16px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.marks__item {
	display: flex;
	align-items: center;
	gap: 14px;
	font-size: 1.0625rem;
	line-height: 1.4;
}

.marks__icon {
	display: grid;
	place-items: center;
	width: 36px;
	height: 36px;
	border-radius: 50%;
	flex: none;
}

.marks__icon .icon {
	width: 16px;
	height: 16px;
	stroke-width: 2.2;
}

.marks__icon--yes {
	background: var(--sage);
	color: var(--primary);
}

.marks__icon--no {
	background: var(--surface);
	color: var(--ink);
}

.note-card {
	display: flex;
	flex-direction: column;
	gap: 12px;
	padding: 24px;
	border-radius: var(--r-md);
	background: var(--surface);
}

.note-card__title {
	font-family: var(--font-serif);
	font-size: 1.375rem;
	font-weight: 600;
	color: var(--ink);
}

.bullets {
	display: flex;
	flex-direction: column;
	gap: 8px;
	margin: 0;
	padding: 0;
	list-style: none;
	color: var(--muted);
}

.bullets li {
	position: relative;
	padding-left: 18px;
}

.bullets li::before {
	content: "";
	position: absolute;
	left: 2px;
	top: 0.68em;
	width: 5px;
	height: 5px;
	border-radius: 50%;
	background: var(--muted);
}

.facts {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
	margin: 0;
}

.fact {
	display: flex;
	flex-direction: column;
	gap: 2px;
	padding: 14px 20px;
	border-radius: var(--r-md);
	background: var(--surface);
}

.facts--beige .fact {
	background: var(--bg);
}

.fact__label {
	font-size: var(--fs-xs);
	color: var(--muted);
}

.fact__value {
	margin: 0;
	font-size: 1.0625rem;
	font-weight: 600;
	color: var(--ink);
}

/* 12. Страница «Услуги» */
.page-hero {
	position: relative;
	display: flex;
	align-items: center;
	min-height: clamp(360px, 26vw, 428px);
	padding: clamp(24px, 2.5vw, 48px);
	border-radius: var(--r-xl);
	overflow: hidden;
	isolation: isolate;
}

.page-hero__media {
	position: absolute;
	inset: 0 0 0 auto;
	width: 64%;
	z-index: -1;
}

.page-hero__media::after {
	content: "";
	position: absolute;
	inset: 0;
	background: linear-gradient(90deg, var(--beige) 0%, rgba(234, 228, 216, 0.6) 22%, rgba(234, 228, 216, 0) 52%);
}

.page-hero__img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.page-hero__content {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 24px;
	max-width: 620px;
}

.page-hero .lead {
	color: var(--text);
}
.accordion {
	display: flex;
	flex-direction: column;
	gap: 12px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.acc {
	border-radius: var(--r-xl);
	background: var(--surface);
	transition: background-color var(--dur) var(--ease);
}

.acc__head {
	display: grid;
	grid-template-columns: minmax(200px, 380px) minmax(0, 1fr) auto;
	align-items: center;
	gap: 16px 32px;
	padding: 20px 20px 20px 32px;
}

.acc__title {
	grid-column: 1;
	grid-row: 1;
	display: contents;
}

.acc__toggle {
	display: contents;
	text-align: left;
	color: inherit;
}

.acc__name {
	grid-column: 1;
	grid-row: 1;
	min-width: 0;
	overflow-wrap: break-word;
	hyphens: auto;
	font-family: var(--font-serif);
	font-size: clamp(1.5rem, 1.3rem + 0.6vw, 2rem);
	font-weight: 500;
	line-height: 1.2;
	color: var(--ink);
	cursor: pointer;
}

.acc__summary {
	grid-column: 2;
	grid-row: 1;
	color: var(--muted);
}

.acc__actions {
	grid-column: 3;
	grid-row: 1;
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px 16px;
	padding-right: 64px;
}

.acc__icon {
	position: absolute;
	right: 32px;
	display: grid;
	place-items: center;
	width: 48px;
	height: 48px;
	border-radius: 50%;
	background: var(--sage);
	color: var(--ink);
	cursor: pointer;
}

.acc__head {
	position: relative;
}

.acc__toggle:focus-visible .acc__icon {
	outline: 3px solid var(--focus);
	outline-offset: 3px;
}

.acc__icon .icon--minus {
	display: none;
}

.acc.is-open {
	background: var(--dark);
	color: #fff;
}

.acc.is-open .acc__name {
	color: #fff;
	font-size: clamp(1.75rem, 1.4rem + 1vw, 2.75rem);
}

.acc.is-open .acc__icon {
	background: var(--accent);
}

.acc.is-open .acc__summary,
.acc.is-open .acc__actions {
	visibility: hidden;
}

.acc.is-open .acc__toggle:focus-visible .acc__icon {
	outline-color: #fff;
}

.acc__panel {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
	gap: 32px;
	padding: 0 32px 32px;
}

.acc__panel[hidden] {
	display: none;
}

.acc__body {
	display: flex;
	flex-direction: column;
	gap: 20px;
}

.acc__text {
	font-size: var(--fs-lead);
	color: var(--on-dark-muted);
	max-width: 36em;
}

.acc__meta {
	display: flex;
	align-items: center;
	gap: 10px;
	font-size: var(--fs-small);
	color: #fff;
}

.acc__buttons {
	margin-top: auto;
}

.acc__media {
	border-radius: var(--r-lg);
	overflow: hidden;
	aspect-ratio: 900 / 560;
	align-self: start;
}

.acc__img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

/* 13. Страница услуги */
.service-hero {
	display: grid;
	grid-template-columns: minmax(0, 766fr) minmax(0, 1082fr);
	gap: var(--gap);
}

.service-hero__card {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 28px;
	padding: clamp(28px, 3vw, 56px);
	border-radius: var(--r-xl);
	background: var(--surface);
}

.service-hero__buttons {
	margin-top: auto;
	padding-top: 24px;
}

.service-hero__media {
	border-radius: var(--r-xl);
	overflow: hidden;
	min-height: 360px;
}

.service-hero__img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}
.steps {
	display: flex;
	flex-direction: column;
	gap: 32px;
	padding: clamp(28px, 3vw, 48px);
	border-radius: var(--r-xl);
}

.steps__list {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
	gap: 16px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.step {
	display: flex;
	flex-direction: column;
	gap: 12px;
	padding: 24px;
	border-radius: var(--r-md);
	background: var(--surface);
}

.step__title {
	font-family: var(--font-serif);
	font-size: 1.375rem;
	font-weight: 600;
	color: var(--ink);
}

.step__text {
	color: var(--muted);
	font-size: var(--fs-small);
}

.gallery__viewport {
	position: relative;
}

.gallery__page {
	display: grid;
	grid-template-columns: minmax(0, 1408fr) minmax(0, 440fr);
	grid-template-rows: repeat(2, minmax(0, 1fr));
	gap: var(--gap);
	height: clamp(320px, 24vw, 460px);
}

.gallery__page[hidden] {
	display: none;
}

.gallery__item {
	position: relative;
	display: block;
	padding: 0;
	border: 0;
	border-radius: var(--r-lg);
	overflow: hidden;
	background: var(--beige);
	cursor: zoom-in;
}

.gallery__item--main {
	grid-row: 1 / span 2;
}

.gallery__page > .gallery__item:only-child {
	grid-column: 1 / -1;
}

.gallery__img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 300ms var(--ease);
}

.gallery__item:hover .gallery__img {
	transform: scale(1.02);
}

.gallery__pager {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 16px;
	font-size: var(--fs-small);
	color: var(--muted);
}

.dots {
	display: flex;
	align-items: center;
	gap: 6px;
}

.dots__dot {
	width: 8px;
	height: 8px;
	border-radius: 999px;
	background: var(--sage-strong);
	transition: width var(--dur) var(--ease), background-color var(--dur) var(--ease);
}

.dots__dot.is-active {
	width: 36px;
	background: var(--primary);
}
/* 14. Раздел «Статьи» */
.page-head {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 560px);
	align-items: end;
	gap: 24px 48px;
	padding: clamp(16px, 2vw, 32px) clamp(0px, 1.3vw, 24px) 8px;
}

.page-head__main {
	display: flex;
	flex-direction: column;
	gap: clamp(20px, 2.4vw, 40px);
	min-width: 0;
}

.page-head__lead {
	align-self: start;
	margin-top: clamp(0px, 3vw, 48px);
	font-size: var(--fs-lead);
	color: var(--muted);
}
.filter {
	display: flex;
	gap: 8px;
	overflow-x: auto;
	margin: 0 calc(-1 * var(--gutter));
	padding: 2px var(--gutter);
	scrollbar-width: none;
}

.filter::-webkit-scrollbar {
	display: none;
}

.filter__chip {
	display: inline-flex;
	align-items: center;
	min-height: 48px;
	padding: 0 22px;
	border-radius: 999px;
	background: var(--surface);
	color: var(--ink);
	font-weight: 500;
	text-decoration: none;
	white-space: nowrap;
	transition: background-color var(--dur) var(--ease);
}

.filter__chip:hover {
	background: #fbfaf7;
}

.filter__chip.is-current {
	background: var(--dark);
	color: #fff;
}

.post-grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: var(--gap);
	margin: 0;
	padding: 0;
	list-style: none;
}

.load-more {
	display: flex;
	justify-content: center;
	padding: 8px 0 calc(var(--section) * 0.4);
}

/* 15. Статья */
.article {
	display: grid;
	grid-template-columns: minmax(220px, 280px) minmax(0, 1fr);
	gap: clamp(24px, 3.4vw, 64px);
	padding: clamp(24px, 3vw, 56px);
	border-radius: var(--r-xl);
	background: var(--surface);
}

.article__aside {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 24px;
	align-self: start;
	position: sticky;
	top: calc(var(--header-h) + 48px);
}

.related-card {
	display: flex;
	flex-direction: column;
	gap: 8px;
	width: 100%;
	padding: 20px;
	border-radius: var(--r-md);
	background: var(--bg);
	text-decoration: none;
	transition: background-color var(--dur) var(--ease);
}

.related-card:hover {
	background: var(--beige);
}

.related-card__label {
	font-size: var(--fs-small);
	color: var(--muted);
}

.related-card__title {
	font-family: var(--font-serif);
	font-size: 1.375rem;
	font-weight: 600;
	line-height: 1.3;
	color: var(--ink);
}

.related-card__link {
	color: var(--primary);
	font-weight: 600;
}

.article__main {
	display: flex;
	flex-direction: column;
	gap: 32px;
	min-width: 0;
}

.article__title {
	font-size: clamp(2rem, 1.5rem + 1.8vw, 3.75rem);
	line-height: 1.1;
}

.article__cover {
	border-radius: var(--r-lg);
	overflow: hidden;
	aspect-ratio: 1416 / 460;
	background: var(--beige);
}

.article__img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.inline-cta {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px 24px;
	flex-wrap: wrap;
	padding: 24px 24px 24px 28px;
	border-radius: var(--r-md);
	background: var(--bg);
}

.inline-cta__title {
	font-family: var(--font-serif);
	font-size: 1.375rem;
	font-weight: 600;
	color: var(--ink);
}
/* Текст статьи (блоки редактора) */
.prose {
	font-size: 1.125rem;
	line-height: 1.75;
	color: var(--text);
}

/* Строки текста — удобной для чтения длины, плашки и медиа — во всю колонку */
.prose > :where(p, h2, h3, h4, ul, ol, blockquote, .wp-block-details) {
	max-width: 74ch;
}

.prose > * + * {
	margin-top: 1.1em;
}

.prose h2,
.prose h3,
.prose h4 {
	margin-top: 1.6em;
	font-family: var(--font-serif);
	font-weight: 500;
	line-height: 1.25;
	color: var(--ink);
}

.prose h2 { font-size: clamp(1.5rem, 1.3rem + 0.6vw, 2rem); }
.prose h3 { font-size: 1.5rem; }
.prose h4 { font-size: 1.25rem; font-weight: 600; }

.prose a {
	color: var(--primary);
}

.prose ul,
.prose ol {
	padding-left: 1.3em;
}

.prose li + li {
	margin-top: 0.4em;
}

.prose blockquote {
	padding: 4px 0 4px 24px;
	border-left: 3px solid var(--accent);
	font-family: var(--font-serif);
	font-size: 1.25rem;
	color: var(--ink);
}

.prose img {
	border-radius: var(--r-md);
}

.prose figcaption {
	margin-top: 8px;
	font-size: var(--fs-small);
	color: var(--muted);
}

.prose table {
	width: 100%;
	border-collapse: collapse;
	font-size: 1rem;
}

.prose th,
.prose td {
	padding: 12px;
	border-bottom: 1px solid var(--line);
	text-align: left;
}

.prose .wp-block-table {
	overflow-x: auto;
}

.prose .is-style-tb-note {
	padding: 24px 28px;
	border-radius: var(--r-md);
	background: var(--sage);
}

.prose .is-style-tb-note > * + * {
	margin-top: 8px;
}

.prose .is-style-tb-note h2,
.prose .is-style-tb-note h3,
.prose .is-style-tb-note h4 {
	margin-top: 0;
	font-size: 1.25rem;
	font-weight: 600;
}

.prose .is-style-tb-note p {
	font-size: 1rem;
}

.prose .is-style-tb-checks {
	list-style: none;
	padding-left: 0;
}

.prose .is-style-tb-checks li {
	position: relative;
	padding-left: 40px;
}

.prose .is-style-tb-checks li::before {
	content: "";
	position: absolute;
	left: 0;
	top: 0.15em;
	width: 28px;
	height: 28px;
	border-radius: 50%;
	background: var(--sage) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2324524a' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center / 14px no-repeat;
}

.prose .wp-block-button__link {
	display: inline-flex;
	min-height: 52px;
	align-items: center;
	padding: 0 28px;
	border-radius: 999px;
	background: var(--primary);
	color: #fff;
	text-decoration: none;
	font-weight: 600;
}

.prose .wp-block-details {
	padding: 16px 20px;
	border-radius: var(--r-sm);
	background: var(--bg);
}

.prose .wp-block-details summary {
	cursor: pointer;
	font-weight: 600;
	color: var(--ink);
}

.prose .alignwide,
.prose .alignfull {
	max-width: none;
}

.text-page {
	display: flex;
	flex-direction: column;
	gap: 24px;
	padding: clamp(24px, 3.4vw, 64px);
	border-radius: var(--r-xl);
	background: var(--surface);
}

.text-page__title {
	max-width: 18em;
}

/* 16. О враче */
.about-hero {
	display: grid;
	grid-template-columns: minmax(0, 580fr) minmax(0, 1268fr);
	gap: var(--gap);
}

.about-hero__photo {
	position: relative;
	display: flex;
	align-items: flex-end;
	justify-content: center;
	min-height: 600px;
	padding: 24px 24px 0;
	border-radius: var(--r-xl);
	overflow: hidden;
}

.about-hero__img {
	width: min(100%, 560px);
	height: auto;
	max-height: 760px;
	object-fit: contain;
	object-position: bottom;
}

.about-hero__caption {
	position: absolute;
	left: 24px;
	bottom: 24px;
	display: flex;
	flex-direction: column;
	gap: 2px;
	padding: 14px 20px;
	border-radius: var(--r-md);
	background: var(--surface);
	box-shadow: 0 6px 24px rgba(23, 53, 47, 0.08);
}

.about-hero__caption-label {
	font-size: var(--fs-small);
	color: var(--muted);
}

.about-hero__caption-value {
	font-weight: 600;
	color: var(--ink);
}

.about-hero__card {
	position: relative;
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 28px;
	padding: clamp(28px, 3vw, 56px);
	border-radius: var(--r-xl);
	background: var(--surface);
	overflow: hidden;
	isolation: isolate;
}

.about-hero__decor {
	position: absolute;
	inset: 0;
	z-index: -1;
	pointer-events: none;
}

.about-hero__decor::before,
.about-hero__decor::after {
	content: "";
	position: absolute;
	border-radius: 50%;
}

.about-hero__decor::before {
	right: -22%;
	top: 16%;
	width: 70%;
	aspect-ratio: 1;
	background: #f4f1eb;
}

.about-hero__decor::after {
	right: -26%;
	top: 52%;
	width: 50%;
	aspect-ratio: 1;
	background: #eef1ea;
}

.about-hero__title {
	max-width: 11em;
}

.about-hero__cta {
	display: flex;
	flex-direction: column;
	gap: 20px;
	width: 100%;
	margin-top: auto;
	padding: 24px;
	border-radius: var(--r-md);
}

.about-hero__cta-title {
	font-family: var(--font-serif);
	font-size: clamp(1.25rem, 1.1rem + 0.4vw, 1.5rem);
	font-weight: 600;
	color: var(--ink);
}
.doc {
	display: flex;
	flex-direction: column;
	gap: 16px;
}

.doc__sheet {
	position: relative;
	display: block;
	width: 100%;
	aspect-ratio: 272 / 360;
	padding: 0;
	border: 1px solid var(--line);
	border-radius: var(--r-sm);
	background: var(--surface);
	overflow: hidden;
	cursor: zoom-in;
}

.doc__img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.doc__zoom {
	position: absolute;
	top: 12px;
	right: 12px;
	display: grid;
	place-items: center;
	width: 48px;
	height: 48px;
	border-radius: 50%;
	background: var(--bg);
	color: var(--ink);
}

.doc__sheet--placeholder {
	cursor: default;
}

.doc__lines {
	position: absolute;
	top: 24px;
	left: 24px;
	right: 24px;
	height: 120px;
	background:
		linear-gradient(var(--sage), var(--sage)) 0 0 / 45% 8px no-repeat,
		repeating-linear-gradient(var(--beige) 0 4px, transparent 4px 18px) 0 22px / 100% 100px no-repeat;
}

.doc__seal {
	position: absolute;
	right: 14%;
	bottom: 12%;
	width: 24%;
	aspect-ratio: 1;
	border-radius: 50%;
	background: var(--accent);
}

.doc__caption {
	display: flex;
	flex-direction: column;
	gap: 6px;
}

.doc__title {
	font-weight: 600;
	line-height: 1.4;
	color: var(--ink);
}

.doc__meta {
	font-size: var(--fs-small);
	color: var(--muted);
}

.awards {
	display: grid;
	grid-template-columns: minmax(240px, 380px) minmax(0, 1fr);
	gap: clamp(24px, 3vw, 64px);
	padding: clamp(32px, 3vw, 56px);
	border-radius: var(--r-xl);
}

.awards__intro {
	display: flex;
	flex-direction: column;
	gap: 24px;
}

.awards__text {
	color: var(--on-dark-muted);
	font-size: var(--fs-lead);
}

.awards__list {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
	gap: var(--gap);
	margin: 0;
	padding: 0;
	list-style: none;
}

.award {
	display: flex;
	flex-direction: column;
	gap: 12px;
}

.award__media {
	display: grid;
	place-items: center;
	aspect-ratio: 440 / 220;
	margin-bottom: 12px;
	border-radius: var(--r-md);
	background: var(--primary);
	overflow: hidden;
}

.award__img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.award__icon {
	display: grid;
	place-items: center;
	width: clamp(112px, 8vw, 150px);
	aspect-ratio: 1;
	border-radius: 50%;
	background: var(--accent);
	color: var(--dark);
}

.award__icon .icon {
	width: 46%;
	height: 46%;
}

.award__year {
	color: var(--accent);
	font-weight: 600;
}

.award__title {
	font-family: var(--font-serif);
	font-size: var(--fs-h4);
	font-weight: 500;
	line-height: 1.3;
	color: #fff;
}
/* 17. Контакты */
.contacts {
	display: grid;
	grid-template-columns: minmax(0, 580fr) minmax(0, 1268fr);
	gap: var(--gap);
}

.contacts__card {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 28px;
	padding: clamp(28px, 2.5vw, 48px);
	border-radius: var(--r-xl);
	background: var(--surface);
}

.contact-list {
	display: flex;
	flex-direction: column;
	gap: 24px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.contact-item {
	display: flex;
	align-items: center;
	gap: 16px;
}

.contact-item > span:last-child {
	display: flex;
	flex-direction: column;
	min-width: 0;
}

.contact-item__label {
	font-size: var(--fs-small);
	color: var(--muted);
}

.contact-item__value {
	font-family: var(--font-serif);
	font-size: clamp(1.5rem, 1.3rem + 0.6vw, 2rem);
	font-weight: 500;
	line-height: 1.2;
	color: var(--ink);
	text-decoration: none;
	overflow-wrap: anywhere;
}

a.contact-item__value:hover {
	text-decoration: underline;
}

.contacts__buttons {
	margin-top: auto;
	padding-top: 24px;
}

.map {
	position: relative;
	min-height: 560px;
	border-radius: var(--r-xl);
	background: var(--beige);
	overflow: hidden;
	isolation: isolate;
}

.map__frame {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	border: 0;
}

.map__scheme {
	position: absolute;
	inset: 0;
	z-index: -1;
}

.map__block {
	position: absolute;
	border-radius: var(--r-md);
	background: var(--sage);
}

.map__block--1 { left: 3%; top: 6%; width: 22%; height: 25%; }
.map__block--2 { left: 61%; top: 3%; width: 37%; height: 24%; background: var(--sage-strong); }
.map__block--3 { left: 30%; top: 40%; width: 24%; height: 26%; }
.map__block--4 { left: 59%; top: 74%; width: 19%; height: 24%; background: var(--sage-strong); }

.map__road {
	position: absolute;
	background: var(--surface);
}

.map__road--h1 { left: 0; right: 0; top: 30%; height: 18px; }
.map__road--h2 { left: 0; right: 0; top: 69%; height: 12px; }
.map__road--v1 { top: 0; bottom: 0; left: 27%; width: 18px; }
.map__road--v2 { top: 0; bottom: 0; left: 56%; width: 12px; }

.map__pin {
	position: absolute;
	left: calc(27% + 9px);
	top: calc(30% + 9px);
	width: 88px;
	height: 88px;
	border-radius: 50%;
	background: var(--accent);
	transform: translate(-50%, -50%);
	box-shadow: 0 0 0 12px rgba(229, 154, 114, 0.22);
}

.map__label {
	position: absolute;
	top: 24px;
	left: 24px;
	display: flex;
	flex-direction: column;
	gap: 2px;
	max-width: calc(100% - 48px);
	padding: 14px 20px;
	border-radius: var(--r-md);
	background: var(--surface);
	box-shadow: 0 6px 24px rgba(23, 53, 47, 0.08);
}

.map__label-small {
	font-size: var(--fs-small);
	color: var(--muted);
}

.map__label-value {
	font-weight: 600;
	color: var(--ink);
}

.map--embed .map__label {
	pointer-events: none;
}

.map__routes {
	position: absolute;
	left: 24px;
	bottom: 24px;
	right: 24px;
}

.way {
	display: grid;
	grid-template-columns: minmax(240px, 360px) repeat(3, minmax(0, 1fr));
	gap: var(--gap);
}

.way__intro,
.way__tile {
	display: flex;
	flex-direction: column;
	gap: 12px;
	min-height: 280px;
	padding: 28px;
	border-radius: var(--r-xl);
}

.way__intro {
	justify-content: space-between;
}

.way__text {
	color: var(--on-dark-muted);
}

.way__tile {
	background: var(--surface);
}

.way__tile .round-icon {
	margin-bottom: auto;
}

/* 18. Отзывы, пустые состояния, 404 */
.reviews {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(min(100%, 360px), 1fr));
	gap: var(--gap);
	margin: 0;
	padding: 0;
	list-style: none;
}

/* Карточки в ряду одной высоты, имя и дата — внизу */
.review {
	display: flex;
}

.review__figure {
	flex: 1;
	display: flex;
	flex-direction: column;
	gap: 20px;
	padding: clamp(24px, 2.2vw, 32px);
	border-radius: var(--r-xl);
	background: var(--surface);
}

.review__quote {
	display: grid;
	place-items: center;
	width: 48px;
	height: 48px;
	border-radius: 50%;
	background: var(--peach);
	color: var(--ink);
}

.review__text {
	flex: 1;
	font-size: 1.0625rem;
	line-height: 1.7;
}

.review__author {
	display: flex;
	flex-direction: column;
	gap: 8px;
}

.review__name {
	font-family: var(--font-serif);
	font-size: 1.25rem;
	font-weight: 600;
	color: var(--ink);
}

.review__meta {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px 12px;
	font-size: var(--fs-small);
	color: var(--muted);
}

.empty {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 12px;
	padding: clamp(40px, 6vw, 96px) 24px;
	border-radius: var(--r-xl);
	background: var(--surface);
	text-align: center;
}

.empty__art {
	position: relative;
	width: 120px;
	height: 120px;
	margin-bottom: 12px;
}

.empty__sheet {
	position: absolute;
	inset: 10px 22px;
	border-radius: 10px;
	background: var(--beige);
	transform: rotate(-8deg);
}

.empty__sheet--front {
	background:
		linear-gradient(var(--line), var(--line)) 14px 18px / 50% 6px no-repeat,
		linear-gradient(var(--line), var(--line)) 14px 34px / 64% 6px no-repeat,
		linear-gradient(var(--line), var(--line)) 14px 50% / 40% 6px no-repeat,
		var(--surface);
	border: 1px solid var(--line);
	transform: rotate(4deg);
}

.empty__badge {
	position: absolute;
	right: 2px;
	bottom: 4px;
	display: grid;
	place-items: center;
	width: 44px;
	height: 44px;
	border-radius: 50%;
	background: var(--sage);
	color: var(--primary);
}

.empty__title {
	font-family: var(--font-serif);
	font-size: var(--fs-h4);
	font-weight: 600;
	color: var(--ink);
}

.empty__text {
	max-width: 32em;
	color: var(--muted);
}

.not-found {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 24px;
	padding: clamp(32px, 5vw, 96px);
	border-radius: var(--r-xl);
	background: var(--surface);
}

.not-found__code {
	font-family: var(--font-serif);
	font-size: clamp(5rem, 3rem + 8vw, 10rem);
	line-height: 1;
	color: var(--sage-strong);
}

.search-list {
	display: flex;
	flex-direction: column;
	gap: 12px;
}

.search-item {
	padding: 24px 28px;
	border-radius: var(--r-lg);
	background: var(--surface);
}

.search-item__title {
	font-family: var(--font-serif);
	font-size: var(--fs-h4);
	color: var(--ink);
}

.search-item__text {
	margin-top: 8px;
	color: var(--muted);
}

/* 19. Просмотр фото */
.lightbox {
	width: 100vw;
	max-width: 100vw;
	height: 100dvh;
	max-height: 100dvh;
	margin: 0;
	padding: 0;
	border: 0;
	background: rgba(15, 30, 27, 0.94);
	color: #fff;
}

.lightbox::backdrop {
	background: rgba(15, 30, 27, 0.94);
}

.lightbox__inner {
	position: relative;
	display: grid;
	grid-template-columns: auto minmax(0, 1fr) auto;
	align-items: center;
	gap: 16px;
	height: 100%;
	padding: 72px 16px 24px;
}

.lightbox__figure {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 12px;
	height: 100%;
	justify-content: center;
}

.lightbox__img {
	max-width: 100%;
	max-height: calc(100dvh - 140px);
	width: auto;
	height: auto;
	border-radius: var(--r-sm);
	object-fit: contain;
}

.lightbox__caption {
	font-size: var(--fs-small);
	color: rgba(255, 255, 255, 0.8);
	text-align: center;
}

.lightbox__close {
	position: absolute;
	top: 16px;
	right: 16px;
}

.lightbox.is-single .lightbox__prev,
.lightbox.is-single .lightbox__next {
	visibility: hidden;
}
/* 20. Версия для слабовидящих
   Схемы и настройки — как принято для сайтов медицинских организаций (ГОСТ Р 52872-2019):
   размер шрифта, 5 цветовых схем, изображения, интервалы, шрифт. Настройки хранит браузер посетителя. */
.a11y-panel {
	display: none;
}

html.a11y .a11y-panel {
	display: block;
	padding: 12px var(--gutter);
	border-bottom: 2px solid var(--a-fg);
}

.a11y-panel__inner {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 12px 28px;
	max-width: var(--max);
	margin: 0 auto;
}

.a11y-group {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 6px;
}

.a11y-group__label {
	margin-right: 4px;
	font-weight: 700;
}

.a11y-btn {
	min-width: 44px;
	min-height: 44px;
	padding: 6px 12px;
	border: 2px solid;
	border-radius: 8px;
	font-weight: 700;
	line-height: 1.1;
	cursor: pointer;
}

.a11y-btn--size-2 {
	font-size: 1.2em;
}

.a11y-btn--size-3 {
	font-size: 1.4em;
}

.a11y-panel__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin-left: auto;
}

html.a11y {
	--a-fg: #000000;
	--a-bg: #ffffff;
	--a-ls: normal;
	--a-lh: 1.6;
}

html.a11y[data-a11y-scheme="wb"] { --a-fg: #ffffff; --a-bg: #000000; }
html.a11y[data-a11y-scheme="blue"] { --a-fg: #063462; --a-bg: #9dd1ff; }
html.a11y[data-a11y-scheme="beige"] { --a-fg: #4d4b43; --a-bg: #f7f3d6; }
html.a11y[data-a11y-scheme="green"] { --a-fg: #a9e44d; --a-bg: #3b2716; }

html.a11y[data-a11y-size="1"] { font-size: 120%; }
html.a11y[data-a11y-size="2"] { font-size: 140%; }
html.a11y[data-a11y-size="3"] { font-size: 160%; }

html.a11y[data-a11y-spacing="1"] { --a-ls: 0.05em; }
html.a11y[data-a11y-spacing="2"] { --a-ls: 0.1em; }

html.a11y[data-a11y-line="1"] { --a-lh: 1.9; }
html.a11y[data-a11y-line="2"] { --a-lh: 2.3; }

/* Один цвет текста и один цвет фона на всём сайте */
html.a11y body,
html.a11y body * {
	background-color: var(--a-bg) !important;
	background-image: none !important;
	color: var(--a-fg) !important;
	border-color: var(--a-fg) !important;
	box-shadow: none !important;
	text-shadow: none !important;
	font-family: Arial, "Helvetica Neue", Helvetica, sans-serif !important;
	letter-spacing: var(--a-ls) !important;
}

html.a11y[data-a11y-font="serif"] body,
html.a11y[data-a11y-font="serif"] body * {
	font-family: Georgia, "Times New Roman", Times, serif !important;
}

html.a11y :is(p, li, dd, dt, label, blockquote, td, th, .lead, .hero__text, .tile__text, .post-card__excerpt, .section-head__text) {
	line-height: var(--a-lh) !important;
}

html.a11y body {
	--fs-h1: clamp(2rem, 1.6rem + 1.6vw, 3rem);
	--fs-h2: clamp(1.75rem, 1.5rem + 1vw, 2.5rem);
	--fs-h3: clamp(1.5rem, 1.3rem + 0.6vw, 2rem);
}

html.a11y .hero__title {
	font-size: var(--fs-h1);
}

/* Структура держится на рамках вместо цветных плашек */
html.a11y :is(.site-header__bar, .nav__list, .hero, .form-card, .bento__intro, .tile, .svc-card, .svc-card__body, .post-card--row, .post-card--grid, .post-card--featured, .cta-dark, .cta-form, .info-item, .panel, .step, .steps, .note-card, .fact, .page-hero, .acc, .service-hero__card, .article, .related-card, .inline-cta, .about-hero__photo, .about-hero__card, .about-hero__cta, .about-hero__caption, .doc__sheet, .awards, .award__media, .contacts__card, .map, .map__label, .way__intro, .way__tile, .review__figure, .empty, .not-found, .text-page, .site-footer__card, .modal, .drawer__panel, .drawer__head, .search-item, .chip, .pill, .filter__chip, .round-icon, .tile__icon, .review__quote, .marks__icon, .lead-success__icon, .icon-btn, .lang__current) {
	border: 2px solid var(--a-fg) !important;
}

/* Кнопки — инверсия: текст цветом фона на плашке цвета текста */
html.a11y :is(.btn, .filter__chip.is-current, .pill.is-current, .icon-btn[aria-pressed="true"], .a11y-btn[aria-pressed="true"], .check__input:checked + .check__box, .dots__dot.is-active, .hero__bar-fill) {
	background-color: var(--a-fg) !important;
	color: var(--a-bg) !important;
	border: 2px solid var(--a-fg) !important;
}

html.a11y :is(.btn, .filter__chip.is-current, .pill.is-current, .icon-btn[aria-pressed="true"], .a11y-btn[aria-pressed="true"]) * {
	background-color: transparent !important;
	color: inherit !important;
}

html.a11y .btn .btn__icon {
	background-color: var(--a-bg) !important;
	color: var(--a-fg) !important;
}

html.a11y .hero__bar,
html.a11y .dots__dot {
	border: 1px solid var(--a-fg) !important;
}

/* Точки, линии и подсказки на псевдоэлементах — тоже в цвет схемы */
html.a11y *::before,
html.a11y *::after {
	color: var(--a-fg) !important;
	border-color: var(--a-fg) !important;
}

html.a11y .timeline__item::before,
html.a11y .timeline__item:not(:last-child)::after,
html.a11y .chip--dot::before,
html.a11y .bullets li::before {
	background-color: var(--a-fg) !important;
}

html.a11y ::placeholder {
	color: var(--a-fg) !important;
	opacity: 0.7;
}

/* Образцы цветовых схем всегда показывают свои цвета */
html.a11y .a11y-panel .a11y-btn.a11y-btn--scheme[data-value="bw"] { background-color: #ffffff !important; color: #000000 !important; border-color: #000000 !important; }
html.a11y .a11y-panel .a11y-btn.a11y-btn--scheme[data-value="wb"] { background-color: #000000 !important; color: #ffffff !important; border-color: #ffffff !important; outline: 2px solid var(--a-fg); }
html.a11y .a11y-panel .a11y-btn.a11y-btn--scheme[data-value="blue"] { background-color: #9dd1ff !important; color: #063462 !important; border-color: #063462 !important; }
html.a11y .a11y-panel .a11y-btn.a11y-btn--scheme[data-value="beige"] { background-color: #f7f3d6 !important; color: #4d4b43 !important; border-color: #4d4b43 !important; }
html.a11y .a11y-panel .a11y-btn.a11y-btn--scheme[data-value="green"] { background-color: #3b2716 !important; color: #a9e44d !important; border-color: #a9e44d !important; }
html.a11y .a11y-panel .a11y-btn.a11y-btn--scheme[aria-pressed="true"] {
	outline: 4px solid var(--a-fg) !important;
	outline-offset: 2px;
}

/* Ссылки подчёркнуты, фокус заметный */
html.a11y a:not(.btn):not(.pill):not(.filter__chip):not(.logo):not(.svc-card__link):not(.post-card__link) {
	text-decoration: underline !important;
	text-underline-offset: 0.2em;
}

html.a11y :focus-visible {
	outline: 4px solid var(--a-fg) !important;
	outline-offset: 3px !important;
}

/* Декор не нужен */
html.a11y :is(.motif, .hero__decor, .about-hero__decor, .bento__intro-decor, .map__scheme, .empty__art) {
	display: none !important;
}

html.a11y .page-hero__media::after {
	content: none !important;
}

/* Первый экран — в одну колонку, без наложений */
html.a11y .hero {
	grid-template-columns: minmax(0, 1fr);
	grid-template-rows: auto;
	min-height: 0;
}

html.a11y .hero__content {
	max-width: none;
}

html.a11y .hero__photo {
	position: relative;
	left: auto;
	right: auto;
	bottom: auto;
	width: min(100%, 360px);
	margin: 16px auto 0;
	transform: none;
}

html.a11y .hero__controls {
	grid-row: 2;
}

html.a11y .hero__form {
	grid-column: 1;
	grid-row: 3;
}

html.a11y .page-hero__media {
	position: relative;
	width: 100%;
	height: 320px;
	overflow: hidden;
}

html.a11y .page-hero__img {
	height: 100%;
	object-fit: cover;
}

html.a11y .page-hero {
	flex-direction: column;
	align-items: stretch;
}

/* Изображения выключены */
html.a11y[data-a11y-images="off"] :is(img, picture, video, iframe, .svc-card__media, .hero__photo, .gallery__viewport, .gallery__pager, .article__cover, .post-card__media, .page-hero__media, .acc__media, .service-hero__media, .award__media) {
	display: none !important;
}

html.a11y[data-a11y-images="off"] .about-hero__photo {
	min-height: 0;
	padding: 24px;
}

html.a11y[data-a11y-images="off"] .about-hero__caption {
	position: static;
}

html.a11y[data-a11y-images="off"] .svc-card,
html.a11y[data-a11y-images="off"] .svc-card--photo {
	min-height: 0;
	aspect-ratio: auto;
}

/* Без движения */
html.a11y *,
html.a11y *::before,
html.a11y *::after {
	animation: none !important;
	transition: none !important;
	scroll-behavior: auto !important;
}

.a11y-panel__toggle {
	display: none;
}

/* На телефоне панель свёрнута в кнопку «Настройки», чтобы не занимать весь экран */
/* Крупный шрифт не должен распирать страницу */
html.a11y :is(.btn, .pill, .chip, .filter__chip, .nav__link, .header-phone, .fact__value, .text-link) {
	white-space: normal;
	text-align: left;
}

html.a11y .logo {
	flex: 1 1 auto;
	min-width: 0;
}

html.a11y :is(.logo__name, .logo__tagline, .h1, .h2, .h3, .hero__title, .acc__name, .svc-card__title, .tile__title, .contact-item__value, .info-item__value, .post-card__title, .step__title, .timeline__title, .doc__title, .review__name, .award__title, .article__title, .related-card__title, .lead-form__title, .prose) {
	overflow-wrap: anywhere;
	hyphens: auto;
}

html.a11y .site-header__bar {
	gap: 8px;
	padding-left: 16px;
	border-radius: 24px;
}

html.a11y :is(.service-hero, .about-hero, .contacts, .split, .cta-form, .cta-dark) > * {
	min-width: 0;
}

/* 21. Анимации — плавно, коротко, только там, где помогают понять, что происходит */
:root {
	--ease-out: cubic-bezier(0.16, 1, 0.3, 1);
	--ease-in: cubic-bezier(0.55, 0, 0.75, 0.3);
}

@keyframes tb-rise {
	from {
		opacity: 0;
		translate: 0 18px;
	}
}

@keyframes tb-fade {
	from {
		opacity: 0;
	}
}

@keyframes tb-fade-out {
	to {
		opacity: 0;
	}
}

@keyframes tb-pop {
	from {
		opacity: 0;
		scale: 0.6;
	}
}

@keyframes tb-draw {
	to {
		stroke-dashoffset: 0;
	}
}

@keyframes tb-shake {
	20%,
	60% {
		translate: -5px 0;
	}
	40%,
	80% {
		translate: 5px 0;
	}
}

@keyframes tb-photo {
	from {
		opacity: 0;
		translate: 0 32px;
		scale: 0.97;
	}
}

@keyframes tb-zoom-in {
	from {
		opacity: 0;
		scale: 1.08;
	}
}

@keyframes tb-slide {
	from {
		opacity: 0;
		translate: calc(var(--dir, 1) * 48px) 0;
	}
}

@keyframes tb-modal-in {
	from {
		opacity: 0;
		translate: 0 28px;
		scale: 0.96;
	}
}

@keyframes tb-modal-out {
	to {
		opacity: 0;
		translate: 0 14px;
		scale: 0.98;
	}
}

@keyframes tb-drawer-in {
	from {
		translate: 100% 0;
	}
}

@keyframes tb-drawer-out {
	to {
		translate: 100% 0;
	}
}

/* Первый экран: текст поднимается по очереди, фото врача выплывает снизу */
.hero__slide {
	transition: opacity 600ms var(--ease-out), visibility 0s linear 600ms;
}

.hero__slide.is-active {
	transition: opacity 600ms var(--ease-out);
}

.hero__slide.is-active .hero__content > * {
	animation: tb-rise 900ms var(--ease-out) both;
}

.hero__slide.is-active .hero__content > :nth-child(2) { animation-delay: 80ms; }
.hero__slide.is-active .hero__content > :nth-child(3) { animation-delay: 160ms; }
.hero__slide.is-active .hero__content > :nth-child(4) { animation-delay: 240ms; }

.hero__slide.is-active .hero__photo {
	transform-origin: bottom center;
	animation: tb-photo 1100ms var(--ease-out) 120ms both;
}

.hero__form {
	animation: tb-rise 900ms var(--ease-out) 200ms both;
}

/* Аккордеон услуг: высоту анимирует скрипт, тут — цвет, плюс→минус и появление содержимого */
.acc {
	transition: background-color 450ms var(--ease-out);
}

.acc__name {
	transition: color 450ms var(--ease-out), font-size 450ms var(--ease-out);
}

.acc__icon {
	transition: background-color 300ms ease, rotate 450ms var(--ease-out);
}

.acc__icon .icon--plus path:last-child {
	transform-box: fill-box;
	transform-origin: center;
	transition: scale 350ms var(--ease-out);
}

.acc.is-open .acc__icon {
	rotate: 180deg;
}

.acc.is-open .acc__icon .icon--plus path:last-child {
	scale: 1 0;
}

.acc__summary,
.acc__actions {
	transition: opacity 250ms ease, visibility 0s linear 0s;
}

.acc.is-open .acc__summary,
.acc.is-open .acc__actions {
	opacity: 0;
	transition: opacity 200ms ease, visibility 0s linear 200ms;
}

.acc.is-open .acc__body > * {
	animation: tb-rise 700ms var(--ease-out) both;
}

.acc.is-open .acc__body > :nth-child(1) { animation-delay: 80ms; }
.acc.is-open .acc__body > :nth-child(2) { animation-delay: 140ms; }
.acc.is-open .acc__body > :nth-child(3) { animation-delay: 200ms; }

.acc.is-open .acc__media {
	animation: tb-fade 600ms ease 60ms both;
}

.acc.is-open .acc__img {
	animation: tb-zoom-in 1100ms var(--ease-out) both;
}

/* Окна: появление и закрытие (закрытие запускает скрипт классом is-closing) */
.modal[open] {
	animation: tb-modal-in 450ms var(--ease-out);
}

.modal[open]::backdrop,
.drawer[open]::backdrop,
.lightbox[open]::backdrop {
	animation: tb-fade 300ms ease both;
}

.modal.is-closing {
	animation: tb-modal-out 220ms var(--ease-in) forwards;
}

.modal.is-closing::backdrop,
.drawer.is-closing::backdrop,
.lightbox.is-closing::backdrop {
	animation: tb-fade-out 240ms ease forwards;
}

.drawer[open] .drawer__panel {
	animation: tb-drawer-in 480ms var(--ease-out);
}

.drawer.is-closing .drawer__panel {
	animation: tb-drawer-out 260ms var(--ease-in) forwards;
}

.drawer[open] .drawer__list li {
	animation: tb-rise 600ms var(--ease-out) both;
}

.drawer[open] .drawer__list li:nth-child(1) { animation-delay: 100ms; }
.drawer[open] .drawer__list li:nth-child(2) { animation-delay: 140ms; }
.drawer[open] .drawer__list li:nth-child(3) { animation-delay: 180ms; }
.drawer[open] .drawer__list li:nth-child(4) { animation-delay: 220ms; }
.drawer[open] .drawer__list li:nth-child(5) { animation-delay: 260ms; }
.drawer[open] .drawer__list li:nth-child(6) { animation-delay: 300ms; }
.drawer[open] .drawer__list li:nth-child(n + 7) { animation-delay: 340ms; }

.drawer[open] .drawer__foot {
	animation: tb-rise 600ms var(--ease-out) 320ms both;
}

.lightbox[open] {
	animation: tb-fade 300ms ease;
}

.lightbox.is-closing {
	animation: tb-fade-out 220ms ease forwards;
}

.lightbox[open] .lightbox__img,
.lightbox__img.is-swapping {
	animation: tb-photo 600ms var(--ease-out) both;
}

/* Формы: ошибка появляется и поле слегка вздрагивает, «Спасибо» — с прорисовкой галочки */
.field__error:not([hidden]) {
	animation: tb-rise 300ms var(--ease-out) both;
}

.is-shaking {
	animation: tb-shake 400ms ease;
}

.lead-success:not([hidden]) {
	animation: tb-rise 500ms var(--ease-out) both;
}

.lead-success:not([hidden]) .lead-success__icon {
	animation: tb-pop 600ms cubic-bezier(0.34, 1.56, 0.64, 1) 80ms both;
}

.lead-success__icon path {
	stroke-dasharray: 24;
	stroke-dashoffset: 0;
}

.lead-success:not([hidden]) .lead-success__icon path {
	stroke-dashoffset: 24;
	animation: tb-draw 500ms var(--ease-out) 380ms forwards;
}

/* Галерея: фото въезжают с той стороны, куда листают */
.gallery__page.is-active .gallery__item {
	animation: tb-slide 650ms var(--ease-out) both;
}

.gallery__page.is-active .gallery__item:nth-child(2) { animation-delay: 70ms; }
.gallery__page.is-active .gallery__item:nth-child(3) { animation-delay: 140ms; }

/* Наведение */
.btn {
	transition: background-color var(--dur) var(--ease), border-color var(--dur) var(--ease), color var(--dur) var(--ease), scale 150ms ease;
}

.btn:active {
	scale: 0.97;
}

.btn__icon {
	transition: transform 400ms var(--ease-out);
}

.svc-card {
	transition: translate 450ms var(--ease-out), box-shadow 450ms var(--ease-out);
}

.svc-card:hover {
	translate: 0 -6px;
	box-shadow: 0 22px 40px -24px rgba(23, 53, 47, 0.45);
}

.svc-card__img,
.post-card__img,
.gallery__img,
.doc__img {
	transition: scale 900ms var(--ease-out);
}

.post-card .post-card__img {
	transition: scale 900ms var(--ease-out);
}

.svc-card:hover .svc-card__img,
.gallery__item:hover .gallery__img {
	scale: 1.06;
}

.post-card:hover .post-card__img {
	transform: none;
	scale: 1.05;
}

.svc-card__arrow {
	transition: transform 450ms var(--ease-out);
}

.doc__sheet {
	transition: translate 450ms var(--ease-out), box-shadow 450ms var(--ease-out);
}

button.doc__sheet:hover {
	translate: 0 -4px;
	box-shadow: 0 18px 32px -22px rgba(23, 53, 47, 0.5);
}

.motif {
	transition: translate 1200ms var(--ease-out);
}

.tile:hover .motif {
	translate: 0 -8px;
}

.post-card--row,
.post-card--grid,
.related-card,
.way__tile {
	transition: translate 450ms var(--ease-out), background-color var(--dur) var(--ease);
}

.post-card--row:hover,
.post-card--grid:hover {
	translate: 0 -4px;
}

/* Появление блоков при прокрутке (классы ставит скрипт, без скрипта всё видно сразу) */
.reveal {
	opacity: 0;
	translate: 0 32px;
	transition: opacity 900ms var(--ease-out), translate 900ms var(--ease-out);
	transition-delay: var(--reveal-delay, 0ms);
}

.reveal.is-visible {
	opacity: 1;
	translate: 0 0;
}

.reveal-wait {
	opacity: 0;
	translate: 0 32px;
}

html.a11y .reveal,
html.a11y .reveal-wait {
	opacity: 1 !important;
	translate: none !important;
}

/* 22. Панель быстрой связи, истории пациентов, слова благодарности */
.action-bar,
.acc__subtitle,
.service-note,
.gallery__strip-dots,
.gallery__strip-count {
	display: none;
}

.gallery.is-strip .gallery__strip-dots {
	display: flex;
}

.gallery.is-strip .gallery__strip-count {
	display: inline;
}

.page-hero--plain {
	min-height: 0;
}

.reviews-tabs {
	margin: 0;
	padding: 0;
}

.stories__list {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(min(100%, 520px), 1fr));
	gap: var(--gap);
	margin: 0;
	padding: 0;
	list-style: none;
}

.story {
	display: flex;
}

.story__card {
	flex: 1;
	display: flex;
	flex-direction: column;
	gap: 20px;
	padding: 16px;
	border-radius: var(--r-xl);
	background: var(--surface);
}

.story__media {
	position: relative;
	aspect-ratio: 16 / 10;
	border-radius: var(--r-lg);
	overflow: hidden;
	background: var(--beige);
}

.story__img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.story__play {
	position: absolute;
	left: 50%;
	top: 50%;
	display: grid;
	place-items: center;
	width: 72px;
	height: 72px;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.94);
	color: var(--ink);
	translate: -50% -50%;
	cursor: pointer;
	transition: scale 300ms var(--ease-out);
}

.story__play:hover {
	scale: 1.06;
}

.story__play .icon {
	width: 26px;
	height: 26px;
	margin-left: 3px;
}

.story__note {
	position: absolute;
	left: 12px;
	bottom: 12px;
	padding: 6px 14px;
	border-radius: 999px;
	background: rgba(255, 255, 255, 0.94);
	font-size: var(--fs-small);
	color: var(--ink);
}

.story__body {
	display: flex;
	flex-direction: column;
	gap: 14px;
	padding: 0 8px 8px;
}

.story__name {
	font-family: var(--font-serif);
	font-size: clamp(1.5rem, 1.3rem + 0.6vw, 2rem);
	font-weight: 500;
	line-height: 1.2;
	color: var(--ink);
}

.story__facts {
	display: flex;
	flex-direction: column;
	gap: 10px;
	margin: 0;
}

.story__fact {
	padding: 16px 20px;
	border-radius: var(--r-md);
	background: var(--bg);
}

.story__fact dt {
	font-weight: 600;
	color: var(--primary);
}

.story__fact dd {
	margin: 4px 0 0;
	color: var(--text);
}

.thanks__list {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr));
	gap: var(--gap);
	margin: 0;
	padding: 0;
	list-style: none;
}

.thanks-card {
	display: flex;
	border-radius: var(--r-xl);
}

.thanks-card__figure {
	flex: 1;
	display: flex;
	flex-direction: column;
	gap: 16px;
	padding: clamp(24px, 2vw, 28px);
}

.thanks-card__heading {
	font-family: var(--font-serif);
	font-size: 1.75rem;
	font-weight: 500;
	line-height: 1.2;
	color: var(--ink);
}

.thanks-card__text {
	flex: 1;
	font-size: 1.0625rem;
	line-height: 1.65;
}

.thanks-card__author {
	display: flex;
	align-items: center;
	gap: 12px;
	margin-top: auto;
}

.thanks-card__avatar {
	width: 48px;
	height: 48px;
	border-radius: 50%;
	object-fit: cover;
	flex: none;
}

.thanks-card__avatar--initial {
	display: grid;
	place-items: center;
	background: var(--surface);
	font-family: var(--font-serif);
	font-size: 1.25rem;
	font-weight: 600;
	color: var(--primary);
}

.thanks-card.tone-white .thanks-card__avatar--initial {
	background: var(--sage);
}

.thanks-card__name {
	display: block;
	font-weight: 600;
	color: var(--ink);
}

.thanks-card__meta {
	display: block;
	font-size: var(--fs-small);
	color: var(--muted);
}

.lightbox__video {
	width: min(100%, 1100px);
	aspect-ratio: 16 / 9;
}

.lightbox__video iframe,
.lightbox__video video {
	width: 100%;
	height: 100%;
	border: 0;
	border-radius: 12px;
	background: #000000;
}

@keyframes tb-sheet-in {
	from {
		translate: 0 100%;
	}
}

@keyframes tb-sheet-out {
	to {
		translate: 0 100%;
	}
}

/* Без анимаций для тех, кто их отключил */
@media (prefers-reduced-motion: reduce) {
	*,
	*::before,
	*::after {
		animation-duration: 0.01ms !important;
		animation-iteration-count: 1 !important;
		transition-duration: 0.01ms !important;
		scroll-behavior: auto !important;
	}
}

/* Печать */
@media print {
	.site-header,
	.site-footer,
	.cta-form,
	.cta-dark,
	.modal,
	.drawer {
		display: none !important;
	}
	body {
		background: #fff;
	}
}
