/**
 * Тема «Атланта» — шар компонування.
 *
 * Кольори, шрифти, відступи й розміри задані в theme.json і доступні тут
 * як CSS-змінні (--wp--preset--*). У цьому файлі — тільки те, чого блоковий
 * редактор не вміє описати: сітки карток, шапка, форма, підвал.
 *
 * Файл підключається і на сайті, і в редакторі, тому вигляд збігається.
 */

/* -------------------------------------------------------------------------
 *  Базове
 * ---------------------------------------------------------------------- */

:root {
	--atl-radius: 16px;
	--atl-radius-sm: 10px;
	--atl-shadow-card: 0 20px 44px -26px rgba(80, 15, 35, .34);
	--atl-transition: .2s ease;
}

body {
	-webkit-font-smoothing: antialiased;
	text-rendering: optimizeLegibility;
}

/* Помітний фокус для навігації з клавіатури — вимога доступності. */
:where(a, button, input, textarea, select, summary):focus-visible {
	outline: 2px solid var(--wp--preset--color--brand);
	outline-offset: 2px;
	border-radius: 3px;
}

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

html {
	scroll-behavior: smooth;
}

/* Якір #zapys не має ховатися під липкою шапкою. */
:target {
	scroll-margin-top: 100px;
}

/* -------------------------------------------------------------------------
 *  Шапка
 * ---------------------------------------------------------------------- */

.atl-topbar a {
	color: inherit;
	text-decoration: none;
}

.atl-topbar a:hover {
	text-decoration: underline;
}

.atl-header {
	position: relative;
	z-index: 40;
	background: rgba(255, 255, 255, .94);
}

/* Розмиття живе в псевдоелементі, а не на самій шапці. Причина не в красі:
   backdrop-filter на елементі робить його containing block для всього,
   що всередині має position:fixed. Через це мобільне меню розкривалося
   не на весь екран, а в межах смуги шапки. */
.atl-header::before {
	content: "";
	position: absolute;
	inset: 0;
	z-index: -1;
	backdrop-filter: blur(10px);
	-webkit-backdrop-filter: blur(10px);
	pointer-events: none;
}

.atl-header .wp-block-site-logo img {
	height: auto;
}

.atl-nav a {
	text-decoration: none;
	padding-block: 4px;
	border-bottom: 1.5px solid transparent;
	transition: color var(--atl-transition), border-color var(--atl-transition);
}

.atl-nav a:hover,
.atl-nav .current-menu-item > a {
	color: var(--wp--preset--color--brand);
	border-bottom-color: var(--wp--preset--color--brand);
	text-decoration: none;
}

.atl-header__cta .wp-block-button__link {
	white-space: nowrap;
}

/* -------------------------------------------------------------------------
 *  Мобільне меню — на весь екран
 * ---------------------------------------------------------------------- */

/* Телефон показуємо лише у відкритому меню: у горизонтальній шапці
   для нього немає місця, а поруч і так є кнопка «Записатись». */
.atl-nav__phone {
	display: none;
}

.atl-header .wp-block-navigation__responsive-container.is-menu-open {
	padding: 0;
	background: #fff;
}

/* Місце під адмінсмугу — щоб хрестик не ховався під нею. */
body.admin-bar .atl-header .wp-block-navigation__responsive-container.is-menu-open {
	top: 32px;
}

.atl-header .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-dialog {
	display: flex;
	flex-direction: column;
	width: 100%;
	max-width: none;
	min-height: 100dvh;
	margin: 0;
	padding: 0;
}

.atl-header .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-container-close {
	top: .75rem;
	right: .9rem;
	z-index: 2;
	padding: .5rem;
	color: var(--wp--preset--color--ink);
}

.atl-header .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-container-close svg {
	width: 28px;
	height: 28px;
}

.atl-header .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__container {
	display: flex;
	flex: 1;
	flex-direction: column;
	align-items: stretch;
	justify-content: flex-start;
	gap: 0;
	width: 100%;
	max-width: none;
	margin: 0;
	padding: 4rem 0 1.5rem;
}

.atl-header .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item {
	align-items: stretch;
	width: 100%;
	margin: 0;
}

/* Рядок на всю ширину: палець влучає будь-де, не лише в текст. */
.atl-header .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item__content {
	display: block;
	box-sizing: border-box;
	padding: 1.05rem 1.5rem;
	border: 0;
	border-bottom: 1px solid var(--wp--preset--color--line);
	color: var(--wp--preset--color--ink);
	font-family: var(--wp--preset--font-family--display);
	font-size: 1.2rem;
	font-weight: 600;
	text-align: left;
}

.atl-header .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item__content:hover,
.atl-header .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item__content:focus {
	background: var(--wp--preset--color--brand-soft);
	color: var(--wp--preset--color--brand);
}

/* Телефон притиснутий до низу екрана. */
.atl-header .wp-block-navigation__responsive-container.is-menu-open .atl-nav__phone {
	display: block;
	margin-top: auto;
}

.atl-header .wp-block-navigation__responsive-container.is-menu-open .atl-nav__phone .wp-block-navigation-item__content {
	margin-top: 1.25rem;
	padding-top: 1.35rem;
	border: 0;
	border-top: 1px solid var(--wp--preset--color--line);
	color: var(--wp--preset--color--brand);
	font-size: 1.3rem;
}

/* -------------------------------------------------------------------------
 *  Типові елементи секцій
 * ---------------------------------------------------------------------- */

.atl-eyebrow {
	font-family: var(--wp--preset--font-family--display);
	font-weight: 600;
	letter-spacing: .14em;
	text-transform: uppercase;
	margin-bottom: 1.15rem;
}

.atl-lead {
	color: var(--wp--preset--color--body);
	max-width: 34em;
}

.atl-shead p {
	color: var(--wp--preset--color--body);
}

.atl-pagehead .wp-block-post-title {
	max-width: 20ch;
}

/* -------------------------------------------------------------------------
 *  Перший екран
 * ---------------------------------------------------------------------- */

.atl-hero {
	background:
		radial-gradient(ellipse 900px 520px at 88% -10%, #fbf2f4 0%, rgba(251, 242, 244, 0) 70%),
		#fff;
}

.atl-hero__title em {
	font-style: normal;
	color: var(--wp--preset--color--brand);
}

.atl-hero__photo img {
	width: 100%;
	height: clamp(280px, 38vw, 430px);
	object-fit: cover;
	box-shadow: 0 26px 60px -28px rgba(60, 10, 25, .42);
}

.atl-lead--more {
	margin-top: 1rem;
}

/* Кнопки й позначки першого екрана — окремим рядком під текстом і світлиною */
.atl-hero__actions .wp-block-buttons {
	margin: 0;
}

.atl-chips {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-wrap: wrap;
	gap: .625rem;
}

.atl-chips li {
	display: inline-flex;
	align-items: center;
	gap: .5rem;
	font-size: var(--wp--preset--font-size--small);
	color: var(--wp--preset--color--muted);
	background: #faf7f8;
	border: 1px solid var(--wp--preset--color--line);
	padding: .5rem .9rem;
	border-radius: 100px;
}

.atl-chips b {
	color: var(--wp--preset--color--brand);
	font-weight: 700;
}

/* -------------------------------------------------------------------------
 *  Смуга напрямів
 * ---------------------------------------------------------------------- */

.atl-stat b {
	display: block;
	font-family: var(--wp--preset--font-family--display);
	font-size: 1.4rem;
	font-weight: 600;
	line-height: 1.25;
	color: var(--wp--preset--color--brand);
}

.atl-stat span {
	font-size: var(--wp--preset--font-size--small);
	color: var(--wp--preset--color--muted);
}

/* -------------------------------------------------------------------------
 *  Сітка карток
 * ---------------------------------------------------------------------- */

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

/* Гасимо вертикальні відступи потокового макета всередині сітки. */
.atl-grid > * {
	margin-block: 0;
}

/* Блок «Шаблон запису» віддає <ul><li>, тож картка має розтягтися в комірці. */
.atl-grid > li {
	display: flex;
}

.atl-grid > li > .atl-card {
	width: 100%;
}

.atl-card {
	display: flex;
	flex-direction: column;
	border: 1px solid var(--wp--preset--color--line);
	border-radius: var(--atl-radius);
	background: #fff;
	padding: 1.75rem 1.625rem 1.625rem;
	transition: border-color var(--atl-transition), box-shadow var(--atl-transition), transform var(--atl-transition);
}

.atl-card:hover {
	border-color: #e3c3cc;
	box-shadow: var(--atl-shadow-card);
	transform: translateY(-3px);
}

.atl-card > * {
	margin-block: 0;
}

.atl-card > * + * {
	margin-top: .625rem;
}

.atl-card h3 {
	font-size: 1.0625rem;
	line-height: 1.35;
}

.atl-card p {
	color: var(--wp--preset--color--muted);
	line-height: 1.7;
}

.atl-card__icon {
	width: 46px;
	height: 46px;
	border-radius: 12px;
	background: var(--wp--preset--color--brand-soft);
	color: var(--wp--preset--color--brand);
	display: grid;
	place-items: center;
	margin-bottom: .5rem;
}

.atl-card__icon svg {
	width: 23px;
	height: 23px;
}

.atl-card__link {
	margin-top: auto;
	padding-top: 1rem;
	font-family: var(--wp--preset--font-family--display);
	font-weight: 600;
}

.atl-card__link a {
	text-decoration: none;
	display: inline-block;
	transition: transform var(--atl-transition);
}

.atl-card__link a:hover {
	text-decoration: none;
	transform: translateX(3px);
}

/* Картка запису блогу в тій самій сітці. */
.atl-card--post .wp-block-post-featured-image {
	margin-bottom: .875rem;
}

.atl-card--post .wp-block-post-featured-image img {
	border-radius: var(--atl-radius-sm);
	object-fit: cover;
}

.atl-card--post .wp-block-post-title a {
	text-decoration: none;
	color: var(--wp--preset--color--ink);
}

.atl-card--post .wp-block-post-title a:hover {
	color: var(--wp--preset--color--brand);
}

/* -------------------------------------------------------------------------
 *  Широкий акцентний блок
 * ---------------------------------------------------------------------- */

.atl-feature {
	display: grid;
	grid-template-columns: auto 1fr auto;
	gap: 1.75rem;
	align-items: center;
	background: linear-gradient(115deg, #fdf7f8 0%, #fff 62%);
}

.atl-feature > * {
	margin-block: 0;
}

.atl-feature__icon {
	width: 62px;
	height: 62px;
	border-radius: var(--atl-radius);
	background: var(--wp--preset--color--brand);
	color: #fff;
	display: grid;
	place-items: center;
}

.atl-feature__icon svg {
	width: 31px;
	height: 31px;
}

.atl-feature__text > * {
	margin-block: 0;
}

.atl-feature__text h3 {
	font-size: 1.25rem;
	margin-bottom: .5rem;
}

.atl-feature__text p {
	color: var(--wp--preset--color--muted);
	max-width: 68ch;
}

.atl-feature__act {
	text-align: center;
}

.atl-feature__act > * + * {
	margin-top: .75rem;
}

/* -------------------------------------------------------------------------
 *  Тимчасове оголошення (Атланта → Оголошення)
 * ---------------------------------------------------------------------- */

/* Роздільники — тонкі лінії фірмового кольору зверху й знизу, по центру
   коротка «мітка», щоб блок читався як оголошення, а не як звичайний текст. */
.atl-notice {
	position: relative;
	margin-top: var(--wp--preset--spacing--50, 2.5rem);
	margin-bottom: var(--wp--preset--spacing--50, 2.5rem);
	padding: 1.6rem 1.25rem 1.4rem;
	border-top: 2px solid var(--wp--preset--color--brand);
	border-bottom: 2px solid var(--wp--preset--color--brand);
	background: var(--wp--preset--color--brand-soft, #f7edf0);
	text-align: center;
}

.atl-notice__title {
	margin: 0 0 .5rem;
	font-family: var(--wp--preset--font-family--display);
	font-weight: 700;
	font-size: var(--wp--preset--font-size--large);
	color: var(--wp--preset--color--brand);
}

.atl-notice__text {
	max-width: 46rem;
	margin: 0 auto;
	color: var(--wp--preset--color--ink, #2b2630);
}

.atl-notice__text p {
	margin: 0;
}

.atl-notice__text p + p {
	margin-top: .5rem;
}

.atl-notice__text a {
	color: var(--wp--preset--color--brand);
}

.atl-notice--empty {
	border-style: dashed;
	background: transparent;
}

.atl-notice__hint {
	margin: 0;
	color: var(--wp--preset--color--muted, #777);
	font-size: var(--wp--preset--font-size--small);
}

/* -------------------------------------------------------------------------
 *  Таблиця цін
 * ---------------------------------------------------------------------- */

/* Рамку й заокруглення тримає <figure>, а не сама таблиця: figure — це ще
   й контейнер горизонтального гортання, і overflow на таблиці з ним конфліктує. */
.atl-table {
	max-width: 100%;
	overflow-x: auto;
	overscroll-behavior-x: contain;
	background: #fff;
	border: 1px solid var(--wp--preset--color--line);
	border-radius: 14px;
}

.atl-table table {
	border-collapse: collapse;
	width: 100%;
	min-width: 0;
	border: 0;
	border-radius: 0;
	overflow: visible;
	background: transparent;
}

/* Стовпчик із ціною звужується до вмісту, решту ширини забирає назва. */
.atl-table th:last-child,
.atl-table td:last-child {
	width: 1%;
}

/* Довгі медичні терміни переносяться, інакше вузький екран не витримує. */
.atl-table th:first-child,
.atl-table td:first-child {
	overflow-wrap: break-word;
	hyphens: auto;
}

.atl-table th {
	background: var(--wp--preset--color--brand);
	color: #fff;
	font-family: var(--wp--preset--font-family--display);
	font-weight: 600;
	padding: .875rem 1.25rem;
	border: 0;
}

/* Обидва заголовки по центру. Другий селектор потрібен, щоб перебити правило
   ядра для класу has-text-align-right, який редактор ставить на стовпчик
   із цінами: у ядра воно специфічніше за просте `.atl-table thead th`. */
.atl-table thead th,
.wp-block-table.atl-table thead th.has-text-align-right {
	text-align: center;
}

.atl-table td {
	padding: .8125rem 1.25rem;
	border: 0;
	border-top: 1px solid var(--wp--preset--color--line);
	color: #4d4952;
}

.atl-table tbody tr:nth-child(even) td {
	background: #fdfbfc;
}

.atl-table td:last-child {
	font-weight: 700;
	color: var(--wp--preset--color--brand);
	white-space: nowrap;
}

/* На телефоні прайс має вміщатися повністю: ціна — головне, заради чого
   сторінку відкривають, і вона не повинна ховатися за краєм екрана. */
@media (max-width: 600px) {
	.atl-table th,
	.atl-table td {
		padding: .7rem .8rem;
		font-size: .9375rem;
		line-height: 1.4;
	}

	.atl-table th:first-child,
	.atl-table td:first-child {
		padding-right: .45rem;
	}

	.atl-table th:last-child,
	.atl-table td:last-child {
		padding-left: .45rem;
	}

	/* Заголовок «Вартість, грн» ламається на два рядки й не роздуває стовпчик. */
	.atl-table th:last-child {
		white-space: normal;
	}
}

/* -------------------------------------------------------------------------
 *  Блок запису та форма
 * ---------------------------------------------------------------------- */

/* Панель «Запис за телефоном» — головна сторінка. Форма лишилася на сторінках
   послуг, статей і лікарів; тут головна дія — набрати номер. */
.atl-call > * {
	margin-block: 0;
}

.atl-call h2 {
	color: #fff;
	margin-bottom: .85rem;
	text-wrap: balance;
}

.atl-call .atl-eyebrow {
	opacity: .72;
	margin-bottom: .9rem;
}

.atl-call p:not(.atl-call__number):not(.atl-eyebrow) {
	opacity: .88;
}

.atl-call__number {
	margin-top: 1.9rem;
}

.atl-call__number a {
	display: inline-block;
	font-family: var(--wp--preset--font-family--display);
	font-size: clamp(1.75rem, 1.1rem + 2.6vw, 2.75rem);
	font-weight: 700;
	line-height: 1.1;
	letter-spacing: .01em;
	color: #fff;
	text-decoration: none;
	white-space: nowrap;
	padding: .7rem 1.6rem;
	border: 2px solid rgba(255, 255, 255, .55);
	border-radius: 999px;
	transition: background-color .18s ease, border-color .18s ease, color .18s ease;
}

.atl-call__number a:hover,
.atl-call__number a:focus-visible {
	background: #fff;
	border-color: #fff;
	color: var(--wp--preset--color--brand);
}

.atl-call__note {
	margin-top: 1.15rem;
	font-size: .875rem;
	opacity: .78;
}

.atl-booking {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 3rem;
	align-items: center;
}

.atl-booking > * {
	margin-block: 0;
}

.atl-booking__text > * {
	margin-block: 0;
}

.atl-booking__text h2 {
	color: #fff;
	margin-bottom: .75rem;
}

.atl-booking__text p {
	opacity: .88;
}

.atl-booking a {
	color: #fff;
}

.atl-form {
	display: grid;
	gap: .75rem;
}

.atl-form__row {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: .75rem;
}

.atl-form__field {
	margin: 0;
	display: grid;
	gap: .3rem;
}

.atl-form label {
	font-size: var(--wp--preset--font-size--x-small);
	opacity: .9;
}

.atl-form input[type="text"],
.atl-form input[type="tel"],
.atl-form input[type="date"],
.atl-form textarea {
	width: 100%;
	padding: .8125rem 1rem;
	border: 0;
	border-radius: var(--atl-radius-sm);
	font: inherit;
	font-size: var(--wp--preset--font-size--small);
	color: var(--wp--preset--color--ink);
	background: #fff;
}

.atl-form textarea {
	resize: vertical;
	min-height: 92px;
}

.atl-form__consent {
	display: flex;
	align-items: flex-start;
	gap: .55rem;
	margin: .25rem 0 0;
	font-size: var(--wp--preset--font-size--x-small);
	line-height: 1.55;
	opacity: .9;
}

.atl-form__consent input {
	margin-top: .2rem;
	flex: none;
	accent-color: #fff;
}

.atl-form__consent a {
	text-decoration: underline;
}

.atl-form__submit {
	margin: .35rem 0 0;
}

.atl-form__submit button {
	width: 100%;
	background: #fff;
	color: var(--wp--preset--color--brand);
	border: 0;
	padding: .9rem 1.25rem;
	border-radius: 100px;
	font-family: var(--wp--preset--font-family--display);
	font-weight: 700;
	font-size: var(--wp--preset--font-size--small);
	cursor: pointer;
	transition: opacity var(--atl-transition), transform var(--atl-transition);
}

.atl-form__submit button:hover {
	transform: translateY(-1px);
	opacity: .92;
}

/* Пастка для ботів: прибрана з очей, але доступна для автозаповнювачів-роботів. */
.atl-form__trap {
	position: absolute !important;
	left: -9999px !important;
	width: 1px;
	height: 1px;
	overflow: hidden;
}

.atl-form__notice {
	margin: 0 0 .5rem;
	padding: .875rem 1rem;
	border-radius: var(--atl-radius-sm);
	font-size: var(--wp--preset--font-size--small);
	line-height: 1.6;
}

.atl-form__notice--ok {
	background: #fff;
	color: #1c6b3c;
}

.atl-form__notice--err {
	background: #fff4f5;
	color: #8a1026;
}

/* Форма поза винною панеллю (наприклад, на сторінці контактів). */
.atl-form-wrap:not(.atl-booking .atl-form-wrap) .atl-form input,
.atl-form-wrap:not(.atl-booking .atl-form-wrap) .atl-form textarea {
	border: 1px solid var(--wp--preset--color--line);
}

/* -------------------------------------------------------------------------
 *  Підвал
 * ---------------------------------------------------------------------- */

.atl-footer a {
	color: inherit;
	opacity: .82;
	text-decoration: none;
}

.atl-footer a:hover {
	opacity: 1;
	text-decoration: underline;
}

/* Логотип у підвалі — той самий файл, вибілений фільтром. */
.atl-footer__logo img {
	filter: brightness(0) invert(1);
	opacity: .92;
	height: auto;
}

.atl-footer__title {
	opacity: .95;
	letter-spacing: .1em;
	text-transform: uppercase;
}

.atl-footer__about,
.atl-footer p {
	opacity: .78;
	line-height: 1.8;
}

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

.atl-footer__list li + li {
	margin-top: .35rem;
}

.atl-footer__rule {
	border-color: rgba(255, 255, 255, .14);
	margin-block: 2.75rem 1.25rem;
}

.atl-footer__bottom {
	opacity: .62;
}

.atl-footer__copy {
	gap: .3rem;
	align-items: baseline;
}

.atl-footer__copy .wp-block-shortcode {
	margin: 0;
	font-size: var(--wp--preset--font-size--x-small);
}

.atl-hours > div {
	display: flex;
	justify-content: space-between;
	gap: 1rem;
	padding: .3rem 0;
	border-bottom: 1px dashed rgba(255, 255, 255, .16);
	font-size: var(--wp--preset--font-size--small);
}

.atl-hours > div:last-child {
	border-bottom: 0;
}

.atl-hours dt {
	opacity: .72;
}

.atl-hours dd {
	margin: 0;
	font-weight: 600;
}

/* -------------------------------------------------------------------------
 *  Пагінація
 * ---------------------------------------------------------------------- */

.atl-pagination {
	margin-top: 2.5rem;
	gap: .5rem;
}

.atl-pagination a,
.atl-pagination .current {
	text-decoration: none;
	padding: .4rem .75rem;
	border-radius: 8px;
	border: 1px solid var(--wp--preset--color--line);
}

.atl-pagination .current {
	background: var(--wp--preset--color--brand);
	border-color: var(--wp--preset--color--brand);
	color: #fff;
}

/* -------------------------------------------------------------------------
 *  Лікар на головній
 * ---------------------------------------------------------------------- */

.atl-home-doc__photo img {
	width: 100%;
	height: clamp(260px, 32vw, 400px);
	object-fit: cover;
	object-position: 60% 35%;
	box-shadow: 0 26px 60px -28px rgba(60, 10, 25, .42);
}

/* -------------------------------------------------------------------------
 *  Адаптив
 * ---------------------------------------------------------------------- */

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

	.atl-booking {
		grid-template-columns: 1fr;
		gap: 2rem;
	}

	.atl-call {
		padding-left: 1.35rem !important;
		padding-right: 1.35rem !important;
	}

	.atl-call__number a {
		padding: .6rem 1.1rem;
	}

	.atl-feature {
		grid-template-columns: auto 1fr;
		gap: 1.25rem;
	}

	.atl-feature__act {
		grid-column: 1 / -1;
		text-align: left;
	}

	.atl-hero__photo img {
		height: clamp(240px, 46vw, 360px);
	}

	.atl-home-doc__photo img {
		height: clamp(220px, 50vw, 340px);
	}
}

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

	.atl-form__row {
		grid-template-columns: 1fr;
	}

	.atl-feature {
		grid-template-columns: 1fr;
	}

	.atl-booking {
		padding-left: 1.5rem !important;
		padding-right: 1.5rem !important;
	}
}

/* -------------------------------------------------------------------------
 *  Редактор: щоб у Редакторі сайту вигляд збігався з фронтендом
 * ---------------------------------------------------------------------- */

.editor-styles-wrapper .atl-card,
.editor-styles-wrapper .atl-feature {
	pointer-events: auto;
}

.editor-styles-wrapper .atl-form__trap {
	position: static !important;
	left: auto !important;
	width: auto;
	height: auto;
	opacity: .5;
}

/* -------------------------------------------------------------------------
 *  Лікарі
 * ---------------------------------------------------------------------- */

.atl-doc-photo img {
	width: 100%;
	height: auto;
	box-shadow: var(--atl-shadow-card);
}

.atl-doc-job {
	font-family: var(--wp--preset--font-family--display);
	font-weight: 600;
	color: var(--wp--preset--color--brand);
	margin-bottom: 1rem;
}

/* Довгі переліки напрямів читаються краще у дві колонки. */
.atl-doc-list {
	columns: 2;
	column-gap: 2rem;
}

.atl-doc-list li {
	break-inside: avoid;
}

/* Сканів сертифікатів багато й вони вертикальні — тримаємо їх дрібними,
   щоб сторінка не перетворилася на стрічку картинок. */
.atl-doc-certs .wp-block-image img {
	border: 1px solid var(--wp--preset--color--line);
	border-radius: 8px;
	background: #fff;
}

.atl-doc-certs figcaption {
	font-size: var(--wp--preset--font-size--x-small);
	line-height: 1.45;
	color: var(--wp--preset--color--muted);
}

/* Картка лікаря в переліку */
.atl-doc-card {
	display: grid;
	grid-template-columns: 132px 1fr;
	gap: 1.5rem;
	align-items: start;
	border: 1px solid var(--wp--preset--color--line);
	border-radius: var(--atl-radius);
	padding: 1.5rem;
	transition: border-color var(--atl-transition), box-shadow var(--atl-transition);
}

.atl-doc-card:hover {
	border-color: #e3c3cc;
	box-shadow: var(--atl-shadow-card);
}

.atl-doc-card > * {
	margin-block: 0;
}

.atl-doc-card img {
	border-radius: 12px;
	aspect-ratio: 1;
	object-fit: cover;
	width: 100%;
}

@media (max-width: 620px) {
	.atl-doc-list {
		columns: 1;
	}

	.atl-doc-card {
		grid-template-columns: 1fr;
	}
}

/* -------------------------------------------------------------------------
 *  Стрічка статей
 *
 *  Раніше статті виводилися картками по три в рядок. Але жодна з 44 статей
 *  не має головного зображення, тож картки були порожніми прямокутниками
 *  з текстом, а остання в списку лишалася самотньою в ряду. Тепер це
 *  горизонтальні рядки на всю ширину — список читається згори вниз.
 * ---------------------------------------------------------------------- */

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

.atl-list > li {
	margin: 0;
	border-bottom: 1px solid var(--wp--preset--color--line);
}

.atl-list > li:first-child {
	border-top: 1px solid var(--wp--preset--color--line);
}

.atl-row {
	padding-block: 1.5rem;
}

.atl-row > * {
	margin-block: 0;
}

.atl-row > * + * {
	margin-top: .5rem;
}

/* Дата й рубрика — одним рядком над заголовком. */
.atl-row__meta {
	column-gap: 1rem;
	row-gap: .25rem;
	align-items: baseline;
}

.atl-row__meta .wp-block-post-date,
.atl-row__meta .wp-block-post-terms {
	margin: 0;
	color: var(--wp--preset--color--muted);
}

.atl-row__meta .wp-block-post-terms a {
	color: var(--wp--preset--color--brand);
	text-decoration: none;
}

.atl-row__meta .wp-block-post-terms a:hover {
	text-decoration: underline;
}

.atl-row .wp-block-post-title {
	line-height: 1.3;
	max-width: 46ch;
}

.atl-row .wp-block-post-title a {
	color: var(--wp--preset--color--ink);
	text-decoration: none;
	transition: color var(--atl-transition);
}

.atl-row .wp-block-post-title a:hover {
	color: var(--wp--preset--color--brand);
	text-decoration: none;
}

/* Опис не розтягуємо на всю ширину: довгі рядки погано читаються. */
.atl-row .wp-block-post-excerpt {
	margin-top: .5rem;
}

.atl-row .wp-block-post-excerpt__excerpt {
	color: var(--wp--preset--color--muted);
	line-height: 1.7;
	max-width: 78ch;
	margin: 0;
}

@media (max-width: 620px) {
	.atl-row {
		padding-block: 1.25rem;
	}

	.atl-row .wp-block-post-title {
		max-width: none;
	}
}
