/**
 * Rehab Львів — компонентний CSS.
 *
 * Дизайн-токени живуть у theme.json; тут — аліаси з фолбеками
 * та стилі компонентів, яких немає серед нативних блоків.
 *
 * @package RemoveRehab
 */

:root {
	--rm-ink: var(--wp--preset--color--ink, #1d302d);
	--rm-muted: var(--wp--preset--color--muted, #65736d);
	--rm-green: var(--wp--preset--color--green, #315d50);
	--rm-green-dark: var(--wp--preset--color--green-dark, #24483d);
	--rm-green-soft: var(--wp--preset--color--green-soft, #dce9df);
	--rm-lime: var(--wp--preset--color--lime, #d8e8a9);
	--rm-cream: var(--wp--preset--color--cream, #f5f4ef);
	--rm-white: var(--wp--preset--color--white, #ffffff);
	--rm-line: var(--wp--preset--color--line, #e4e7df);
	--rm-coral: var(--wp--preset--color--coral, #d88770);
	--rm-topline: var(--wp--preset--color--topline, #203b34);
	--rm-shadow: 0 18px 55px rgba(28, 49, 42, 0.09);
	--rm-radius: 24px;
	--rm-transition: 0.2s;
}

/* ------------------------------------------------------------------ *
 * Базові елементи
 * ------------------------------------------------------------------ */

body {
	-webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
	text-wrap: balance;
}

:where(p, li) {
	color: var(--rm-muted);
}

a {
	transition: color var(--rm-transition);
}

/* Bypass Blocks: перший фокусусний елемент для клавіатури/screen reader. */
.remove-skip-link {
	position: fixed;
	z-index: 100003;
	top: 12px;
	left: 12px;
	padding: 12px 16px;
	border-radius: 999px;
	background: var(--rm-green-dark);
	color: var(--rm-white);
	font-weight: 800;
	line-height: 1;
	text-decoration: none;
	transform: translateY(calc(-100% - 20px));
	transition: transform 0.16s ease;
}

.remove-skip-link:focus-visible {
	transform: translateY(0);
	outline-color: var(--rm-white);
}

.remove-header-notice__link {
	color: inherit;
	text-decoration: none;
}

.remove-header-notice__link:hover {
	text-decoration: underline;
	text-underline-offset: 3px;
}

:focus-visible {
	outline: 2px solid var(--rm-green);
	outline-offset: 3px;
	border-radius: 4px;
}

/* Секції — вертикальні відступи як у дизайн-зразку. */
:where(section.wp-block-group) {
	padding-top: clamp(56px, 8vw, 100px);
	padding-bottom: clamp(56px, 8vw, 100px);
}

/* ------------------------------------------------------------------ *
 * Block styles теми
 * ------------------------------------------------------------------ */

/* Eyebrow: напис-роздільник над заголовком. */
.is-style-eyebrow {
	display: inline-flex;
	align-items: center;
	gap: 9px;
	font-size: 0.75rem;
	font-weight: 700;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: var(--rm-green);
	margin-bottom: 0;
}

.is-style-eyebrow::before {
	content: "";
	width: 24px;
	height: 1px;
	background: currentColor;
}

/* Кнопка зі стрілкою. */
.wp-block-button.is-style-arrow .wp-block-button__link {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	transition: var(--rm-transition);
}

.wp-block-button.is-style-arrow .wp-block-button__link:hover {
	transform: translateY(-2px);
}

/* Контурна кнопка у кольорах теми. */
.wp-block-button.is-style-outline .wp-block-button__link {
	background: var(--rm-white);
	color: var(--rm-ink);
	border: 1px solid var(--rm-line);
}

.wp-block-button.is-style-outline .wp-block-button__link:hover {
	background: var(--rm-green-soft);
	color: var(--rm-ink);
}

/* Таблиця порівняння: повна ширина контейнера, стабільні колонки й
 * бічний скрол лише коли для змісту справді недостатньо місця. */
.wp-block-table.is-style-comparison {
	display: block;
	width: 100%;
	max-width: 100%;
	margin-inline: 0;
	overflow-x: auto;
	-webkit-overflow-scrolling: touch;
	overscroll-behavior-inline: contain;
}

.wp-block-table.is-style-comparison table {
	width: 100%;
	min-width: 680px;
	table-layout: fixed;
	border-collapse: separate;
	border-spacing: 0;
}

.wp-block-table.is-style-comparison th {
	background: var(--rm-green);
	color: var(--rm-white);
	text-align: left;
	vertical-align: middle;
	padding: 14px 18px;
	font-family: var(--wp--preset--font-family--manrope, Manrope, sans-serif);
}

.wp-block-table.is-style-comparison td {
	padding: 14px 18px;
	border-bottom: 1px solid var(--rm-line);
	background: var(--rm-white);
	text-align: left;
	vertical-align: middle;
	overflow-wrap: anywhere;
}

.wp-block-table.is-style-comparison .remove-table__heading--service,
.wp-block-table.is-style-comparison .remove-table__cell--service { width: 34%; }

.wp-block-table.is-style-comparison .remove-table__heading--direction,
.wp-block-table.is-style-comparison .remove-table__cell--direction { width: 24%; }

.wp-block-table.is-style-comparison .remove-table__heading--duration,
.wp-block-table.is-style-comparison .remove-table__cell--duration {
	width: 18%;
	text-align: center;
}

.wp-block-table.is-style-comparison .remove-table__heading--price,
.wp-block-table.is-style-comparison .remove-table__cell--price {
	width: 24%;
	text-align: center;
}

.wp-block-table.is-style-comparison tr:nth-child(even) td {
	background: #fafaf6;
}

/* ------------------------------------------------------------------ *
 * Topline + Header
 * ------------------------------------------------------------------ */

.remove-topline {
	background: var(--rm-topline);
	color: #eaf0e9;
	font-size: 0.78rem;
}

.remove-topline a {
	color: #eaf0e9;
}

.remove-topline__inner {
	padding-top: 8px;
	padding-bottom: 8px;
}

.remove-topline p {
	margin: 0;
	color: #eaf0e9;
}

.remove-header {
	position: sticky;
	top: 0;
	z-index: 50;
	background: rgba(245, 244, 239, 0.98);
	/* backdrop-filter робив хедер containing block для fixed-оверлею:
	 * мобільне меню обрізалося до висоти хедера замість повного екрана. */
	border-bottom: 1px solid rgba(29, 48, 45, 0.08);
}

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

.remove-header__nav {
	padding-top: 14px;
	padding-bottom: 14px;
}

/* Бренд: Site Title і remove-brand розташовані на одному елементі. */
.wp-block-site-title.remove-brand a,
.remove-brand .wp-block-site-title a {
	font-family: var(--wp--preset--font-family--manrope, Manrope, sans-serif);
	font-weight: 800;
	letter-spacing: -0.04em;
	font-size: 1.15rem;
	color: var(--rm-ink);
	text-decoration: none;
	display: inline-flex;
	align-items: center;
	gap: 11px;
}

.wp-block-site-title.remove-brand a::before,
.remove-brand .wp-block-site-title a::before {
	content: "R";
	width: 42px;
	height: 42px;
	border-radius: 14px;
	background: var(--rm-green);
	color: var(--rm-lime);
	display: grid;
	place-items: center;
	font-size: 23px;
	font-weight: 800;
}

/* Навігація. */
.remove-nav {
	font-size: 0.95rem;
	font-weight: 600;
}

.remove-nav a {
	color: #42534c;
	text-decoration: none;
	padding: 6px 2px;
}

.remove-nav a:hover {
	color: var(--rm-green);
}

.remove-header__actions {
	gap: 14px;
	align-items: center;
}

/* Мобільне меню (оверлей нативного блоку Navigation). */
.wp-block-navigation__responsive-container.is-menu-open {
	background: var(--rm-cream);
	color: var(--rm-ink);
}

.wp-block-navigation__responsive-container-close,
.wp-block-navigation__responsive-container-open {
	color: var(--rm-ink);
}

/* ------------------------------------------------------------------ *
 * Hero
 * ------------------------------------------------------------------ */

.remove-hero__image img {
	border-radius: 48% 48% 24px 24px;
	object-fit: cover;
	width: 100%;
}

.remove-hero__note {
	position: relative;
	margin-top: -70px;
	margin-left: 0;
	max-width: 260px;
	border-radius: 20px;
	padding: 20px 22px;
	box-shadow: var(--rm-shadow);
}

.remove-hero__note p {
	font-size: 0.82rem;
	margin: 0;
}

.remove-hero mark.has-inline-color {
	background: none;
}

/* ------------------------------------------------------------------ *
 * Trust strip
 * ------------------------------------------------------------------ */

.remove-trust {
	border-top: 1px solid var(--rm-line);
	border-bottom: 1px solid var(--rm-line);
}

.remove-trust__grid {
	margin-bottom: 0;
}

.remove-trust p {
	margin: 0;
	color: var(--rm-muted);
	font-size: 0.9rem;
}

.remove-trust strong {
	display: block;
	font-family: var(--wp--preset--font-family--manrope, Manrope, sans-serif);
	font-size: 0.95rem;
	color: var(--rm-ink);
}

.remove-trust small {
	font-size: 0.78rem;
}

/* ------------------------------------------------------------------ *
 * Напрямки
 * ------------------------------------------------------------------ */

.remove-directions__grid figure.wp-block-image {
	margin: 0;
}

.remove-directions__grid img {
	border-radius: var(--rm-radius);
	aspect-ratio: 900 / 620;
	object-fit: cover;
	width: 100%;
	transition: transform 0.5s;
}

.remove-directions__grid .wp-block-column:hover img {
	transform: scale(1.03);
}

.remove-directions__grid .wp-block-column {
	background: #f7f7f2;
	border: 1px solid #eef0e9;
	border-radius: var(--rm-radius);
	overflow: hidden;
	transition: var(--rm-transition);
	padding: 14px 14px 24px;
}

.remove-directions__grid .wp-block-column:hover {
	transform: translateY(-6px);
	box-shadow: var(--rm-shadow);
}

.remove-directions__grid h3,
.remove-directions__grid p {
	padding-left: 12px;
	padding-right: 12px;
}

/* ------------------------------------------------------------------ *
 * Навігатор послуг
 * ------------------------------------------------------------------ */

.remove-finder {
	overflow: hidden;
	position: relative;
}

.remove-finder__panel {
	border-radius: 26px;
	padding: clamp(24px, 3vw, 34px);
}

.remove-finder__choices {
	gap: 8px;
}

.remove-choice {
	border: 1px solid var(--rm-line);
	background: var(--rm-white);
	color: #53635c;
	border-radius: 99px;
	padding: 9px 15px;
	cursor: pointer;
	margin: 0;
	transition: var(--rm-transition);
	user-select: none;
}

.remove-choice:hover,
.remove-choice.is-active {
	background: var(--rm-green);
	color: var(--rm-white);
	border-color: var(--rm-green);
}

.remove-finder__result {
	margin-top: 18px;
	padding: 15px;
	background: #e8eee5;
	border-radius: 15px;
	font-size: 0.84rem;
	color: #40564b;
}

/* ------------------------------------------------------------------ *
 * Етапи роботи
 * ------------------------------------------------------------------ */

/* Нумерація вже є в семантичних заголовках патерна process-steps.php. */
.remove-step {
	border-radius: var(--rm-radius);
	padding: 26px 22px;
	height: 100%;
	border-top: 3px solid var(--rm-green-soft);
}

/* ------------------------------------------------------------------ *
 * Каталог послуг
 * ------------------------------------------------------------------ */

.remove-service-row {
	border-radius: 16px;
	padding: 18px 20px;
	gap: 18px;
	transition: var(--rm-transition);
	align-items: center;
}

.remove-service-row:hover {
	transform: translateX(4px);
	box-shadow: 0 8px 24px rgba(28, 49, 42, 0.06);
}

.remove-service-row a {
	text-decoration: none;
}

.remove-service-row .wp-block-post-title {
	margin: 0;
}

.remove-service-row--compact {
	padding: 14px 18px;
}

.remove-services__fallback {
	padding: 24px;
	border: 1px dashed var(--rm-line);
	border-radius: var(--rm-radius);
}

/* ------------------------------------------------------------------ *
 * Фахівці
 * ------------------------------------------------------------------ */

.remove-checklist {
	list-style: none;
	padding-left: 0;
	display: grid;
	gap: 14px;
}

.remove-checklist li {
	position: relative;
	padding-left: 38px;
	font-size: 0.9rem;
	color: #52635b;
}

.remove-checklist li::before {
	content: "✓";
	position: absolute;
	left: 0;
	top: 0;
	width: 24px;
	height: 24px;
	border-radius: 50%;
	background: var(--rm-green-soft);
	color: var(--rm-green);
	display: grid;
	place-items: center;
	font-size: 0.75rem;
	font-weight: 700;
}

.remove-specialist__role {
	font-weight: 700;
	color: var(--rm-green);
}

.remove-specialist .wp-block-post-featured-image img {
	border-radius: var(--rm-radius);
}

/* ------------------------------------------------------------------ *
 * Програми
 * ------------------------------------------------------------------ */

.remove-program {
	border-radius: var(--rm-radius);
	padding: 28px 26px;
	height: 100%;
}

.remove-program__tag {
	display: inline-block;
	font-weight: 700;
	font-size: 0.72rem;
	text-transform: uppercase;
	letter-spacing: 0.1em;
	color: var(--rm-green);
	background: var(--rm-green-soft);
	border-radius: 99px;
	padding: 6px 12px;
	margin-bottom: 16px;
}

.remove-program--featured .remove-program__tag {
	background: rgba(216, 232, 169, 0.16);
}

.remove-program--featured a {
	color: var(--rm-lime);
	font-weight: 700;
}

/* ------------------------------------------------------------------ *
 * Відгуки
 * ------------------------------------------------------------------ */

.remove-review {
	border-radius: var(--rm-radius);
	padding: clamp(24px, 3vw, 40px);
	height: 100%;
}

.remove-review blockquote {
	margin: 0 0 20px;
	font-size: clamp(1.15rem, 1rem + 0.8vw, 1.6rem);
	font-family: var(--wp--preset--font-family--manrope, Manrope, sans-serif);
	font-weight: 600;
	line-height: 1.4;
	color: var(--rm-ink);
}

.remove-review-side {
	border-radius: var(--rm-radius);
	padding: clamp(24px, 3vw, 34px);
	height: 100%;
}

.remove-review-side a {
	color: var(--rm-lime);
	font-weight: 700;
}

/* ------------------------------------------------------------------ *
 * Блог
 * ------------------------------------------------------------------ */

.remove-blog-card {
	border-radius: 0 0 var(--rm-radius) var(--rm-radius);
	padding: 22px 24px 26px;
	height: 100%;
}

.remove-blog .wp-block-post-featured-image {
	margin: 0;
}

.remove-blog .wp-block-post-featured-image img {
	width: 100%;
}

/* ------------------------------------------------------------------ *
 * FAQ
 * ------------------------------------------------------------------ */

.remove-faq__item {
	margin-bottom: 12px;
}

.remove-faq__item summary {
	font-family: var(--wp--preset--font-family--manrope, Manrope, sans-serif);
	font-weight: 700;
	cursor: pointer;
	list-style: none;
	position: relative;
	padding-right: 34px;
}

.remove-faq__item summary::-webkit-details-marker {
	display: none;
}

.remove-faq__item summary::after {
	content: "+";
	position: absolute;
	right: 0;
	top: 50%;
	transform: translateY(-50%);
	font-size: 1.4rem;
	font-weight: 400;
	color: var(--rm-green);
	transition: transform var(--rm-transition);
}

.remove-faq__item[open] summary::after {
	transform: translateY(-50%) rotate(45deg);
}

/* ------------------------------------------------------------------ *
 * CTA запису + контакти
 * ------------------------------------------------------------------ */

.remove-booking-cta__facts {
	border-radius: var(--rm-radius);
	padding: clamp(22px, 3vw, 34px);
}

.remove-booking-cta__facts p {
	margin-bottom: 16px;
}

.remove-contact__card {
	border-radius: var(--rm-radius);
	padding: clamp(28px, 4vw, 56px);
}

.remove-contact__facts {
	display: grid;
	gap: 16px;
}

.remove-contact__facts p {
	margin: 0;
}

/* Бейджі ціни/тривалості. */
.remove-badge {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	background: var(--rm-green-soft);
	color: var(--rm-ink);
	font-weight: 700;
	font-size: 0.85rem;
	border-radius: 99px;
	padding: 8px 16px;
	margin: 0;
}

.remove-badge--lime {
	background: var(--rm-lime);
}

/* ------------------------------------------------------------------ *
 * Breadcrumbs
 * ------------------------------------------------------------------ */

.remove-breadcrumbs {
	font-size: 0.82rem;
	color: var(--rm-muted);
	margin-bottom: 28px;
}

.remove-breadcrumbs a {
	color: var(--rm-green);
	font-weight: 600;
	text-decoration: none;
}

.remove-breadcrumbs__sep {
	margin: 0 6px;
	color: var(--rm-line);
}

/* Rank Math breadcrumbs fit. */
.rank-math-breadcrumb {
	font-size: 0.82rem;
	color: var(--rm-muted);
	margin-bottom: 28px;
}

.rank-math-breadcrumb a {
	color: var(--rm-green);
}

/* ------------------------------------------------------------------ *
 * Модальне вікно запису
 * ------------------------------------------------------------------ */

.remove-modal[hidden] {
	display: none;
}

.remove-modal {
	position: fixed;
	inset: 0;
	z-index: 100;
	display: grid;
	place-items: center;
	padding: 20px;
}

.remove-modal__backdrop {
	position: absolute;
	inset: 0;
	background: rgba(20, 36, 30, 0.55);
	backdrop-filter: blur(4px);
}

.remove-modal__box {
	position: relative;
	z-index: 1;
	background: var(--rm-cream);
	color: var(--rm-ink);
	border-radius: var(--rm-radius);
	padding: clamp(26px, 4vw, 44px);
	max-width: 560px;
	width: 100%;
	max-height: calc(100vh - 60px);
	overflow-y: auto;
	box-shadow: var(--rm-shadow);
}

.remove-modal__close {
	position: absolute;
	top: 14px;
	right: 16px;
	border: 0;
	background: transparent;
	font-size: 1.8rem;
	line-height: 1;
	color: var(--rm-muted);
	cursor: pointer;
	padding: 6px;
}

.remove-modal__close:hover {
	color: var(--rm-ink);
}

body.remove-modal-open {
	overflow: hidden;
}

/* ------------------------------------------------------------------ *
 * Форми
 * ------------------------------------------------------------------ */

.remove-form__grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 14px;
	margin: 20px 0;
}

.remove-form__field {
	display: grid;
	gap: 6px;
}

.remove-form__field--wide {
	grid-column: 1 / -1;
}

.remove-form__field span {
	font-size: 0.82rem;
	font-weight: 700;
}

.remove-form__field input,
.remove-form__field select,
.remove-form__field textarea {
	font: inherit;
	padding: 13px 15px;
	border: 1px solid var(--rm-line);
	border-radius: 14px;
	background: var(--rm-white);
	color: var(--rm-ink);
	width: 100%;
}

.remove-form__field input:focus,
.remove-form__field select:focus,
.remove-form__field textarea:focus {
	border-color: var(--rm-green);
	outline: none;
	box-shadow: 0 0 0 3px rgba(49, 93, 80, 0.15);
}

.remove-form__submit {
	border: 0;
	cursor: pointer;
}

.remove-form__status {
	margin-top: 14px;
	padding: 12px 16px;
	border-radius: 12px;
	font-size: 0.88rem;
	font-weight: 600;
}

.remove-form__status.is-success {
	background: var(--rm-green-soft);
	color: var(--rm-green-dark);
}

.remove-form__status.is-error {
	background: #f6e3dc;
	color: #8a4226;
}

.remove-form__note {
	font-size: 0.75rem;
	margin-top: 16px;
}

.remove-form__demo-notice {
	background: #fdf3d7;
	border: 1px solid #ecd9a0;
	color: #6d5a1e;
	font-size: 0.8rem;
	border-radius: 12px;
	padding: 12px 16px;
}

/* ------------------------------------------------------------------ *
 * Ціни
 * ------------------------------------------------------------------ */

.remove-price-card {
	border-radius: var(--rm-radius);
	padding: 28px 26px;
	height: 100%;
	border: 1px solid var(--rm-line);
}

/* ------------------------------------------------------------------ *
 * 404
 * ------------------------------------------------------------------ */

.remove-404 {
	padding-top: clamp(80px, 12vw, 140px);
	padding-bottom: clamp(80px, 12vw, 140px);
}

/* ------------------------------------------------------------------ *
 * Footer
 * ------------------------------------------------------------------ */

.remove-footer {
	padding-top: clamp(48px, 6vw, 72px);
}

.remove-footer p,
.remove-footer a,
.remove-footer li {
	color: #c5d1c9;
}

.remove-footer a:hover {
	color: var(--rm-lime);
}

.remove-footer :is(h2, h3, h4) {
	color: var(--rm-white);
	margin-bottom: 18px;
}

.remove-footer .wp-block-navigation__container {
	gap: 10px;
}

.remove-footer .wp-block-site-title.remove-brand a,
.remove-footer .remove-brand .wp-block-site-title a {
	color: var(--rm-white);
}

.remove-footer .wp-block-separator {
	margin-top: 40px;
	margin-bottom: 20px;
}

.remove-footer__legal {
	font-size: 0.8rem;
}

/* ------------------------------------------------------------------ *
 * Адаптивність
 * ------------------------------------------------------------------ */

@media (max-width: 960px) {
	.remove-form__grid {
		grid-template-columns: 1fr;
	}

	.remove-hero__note {
		margin-top: -40px;
	}
}

@media (max-width: 782px) {
	.remove-topline__inner .wp-block-group {
		display: none;
	}
}

/* Sticky CTA на мобільних: показується лише за наявності JS-прапорця. */
.remove-sticky-cta {
	display: none;
	position: fixed;
	left: 16px;
	right: 16px;
	bottom: 16px;
	z-index: 60;
}

@media (max-width: 782px) {
	.remove-sticky-cta .wp-block-button__link {
		width: 100%;
		text-align: center;
		box-shadow: 0 12px 32px rgba(28, 49, 42, 0.25);
	}
}

/* ------------------------------------------------------------------ *
 * Reduced motion
 * ------------------------------------------------------------------ */

@media (prefers-reduced-motion: reduce) {
	html {
		scroll-behavior: auto;
	}

	*,
	*::before,
	*::after {
		transition-duration: 0.01ms !important;
		animation-duration: 0.01ms !important;
		animation-iteration-count: 1 !important;
	}
}

/* ================================================================== *
 * v1.1 — Дизайн-рефайнмент
 * ================================================================== */

/* Ширший ритм секцій: чергування фонів створює «повітря». */
.remove-hero {
	padding-top: clamp(40px, 5vw, 64px);
	padding-bottom: clamp(64px, 8vw, 110px);
}

/* Hero: декоративні елементи зі зразка (штамп, нотатка). */
.remove-hero__visual {
	position: relative;
}

.remove-hero__stamp {
	position: absolute;
	right: -14px;
	top: 36px;
	width: 112px;
	height: 112px;
	border: 1px solid rgba(49, 93, 80, 0.35);
	border-radius: 50%;
	display: grid;
	place-items: center;
	text-align: center;
	color: var(--rm-green);
	font-size: 0.68rem;
	font-weight: 700;
	line-height: 1.3;
	transform: rotate(12deg);
	background: rgba(245, 244, 239, 0.85);
	pointer-events: none;
	z-index: 2;
}

.remove-hero__stamp b {
	display: block;
	font-family: var(--wp--preset--font-family--manrope, Manrope, sans-serif);
	font-size: 1.3rem;
}

/* Докази довіри: аватари-заглушки кольоровими колами (без стокових фото). */
.remove-hero__proof {
	display: flex;
	align-items: center;
	gap: 14px;
	margin-top: 8px;
}

.remove-hero__avatars {
	display: flex;
}

.remove-hero__avatars span {
	width: 34px;
	height: 34px;
	border-radius: 50%;
	border: 3px solid var(--rm-cream);
	margin-left: -8px;
	display: grid;
	place-items: center;
	font-size: 0.7rem;
	font-weight: 800;
	color: var(--rm-white);
	font-family: var(--wp--preset--font-family--manrope, Manrope, sans-serif);
}

.remove-hero__avatars span:first-child {
	margin-left: 0;
	background: var(--rm-green);
}

.remove-hero__avatars span:nth-child(2) {
	background: var(--rm-coral);
}

.remove-hero__avatars span:nth-child(3) {
	background: #7d9b6a;
}

.remove-hero__proof small {
	color: var(--rm-muted);
	font-size: 0.8rem;
	line-height: 1.4;
}

/* H1: акцент переноситься разом із заголовком і не виходить у сусідню колонку. */
.remove-hero h1 em {
	font-style: normal;
	white-space: normal;
	overflow-wrap: break-word;
	background-image: linear-gradient(transparent 82%, var(--rm-lime) 82%, var(--rm-lime) 96%, transparent 96%);
	-webkit-box-decoration-break: clone;
	box-decoration-break: clone;
}

/* Картки напрямків: нумерація-бейдж як у зразку. */
.remove-directions__grid .wp-block-column {
	position: relative;
}

.remove-directions__grid figure.wp-block-image {
	position: relative;
}

/* Бейджі категорій блогу. */
.remove-blog-card .wp-block-post-terms a {
	display: inline-block;
	font-size: 0.7rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.08em;
	color: var(--rm-green);
	background: var(--rm-green-soft);
	border-radius: 99px;
	padding: 4px 10px;
	text-decoration: none;
	margin-right: 6px;
}

/* Збільшення зображення картки блогу при наведенні. */
.remove-blog .wp-block-post-featured-image {
	overflow: hidden;
	border-radius: var(--rm-radius) var(--rm-radius) 0 0;
}

.remove-blog .wp-block-post-featured-image img {
	transition: transform 0.5s ease;
}

.remove-blog .wp-block-column:hover .wp-block-post-featured-image img,
.remove-blog article:hover .wp-block-post-featured-image img,
.remove-blog li:hover .wp-block-post-featured-image img {
	transform: scale(1.05);
}

/* Підйом карток програм і відгуків. */
.remove-program,
.remove-review,
.remove-price-card {
	transition: transform var(--rm-transition), box-shadow var(--rm-transition);
}

.remove-program:hover,
.remove-review:hover,
.remove-price-card:hover {
	transform: translateY(-4px);
	box-shadow: var(--rm-shadow);
}

/* FAQ: плавне розкриття через grid-rows трюк не потрібен — Details нативний,
 * додаємо лише стилізацію відкритого стану. */
.remove-faq__item[open] {
	border-left: 3px solid var(--rm-green);
}

/* Хлібні крихти: компактніший вигляд. */
.remove-breadcrumbs {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 6px;
}

/* Форма: honeypot приховано від людей. */
.remove-form__hp {
	position: absolute !important;
	left: -9999px !important;
	width: 1px;
	height: 1px;
	overflow: hidden;
}

/* Поліпшення фокусу для Details (саммарі). */
.remove-faq__item summary:focus-visible {
	outline: 2px solid var(--rm-green);
	outline-offset: 4px;
	border-radius: 6px;
}

/* Секції рендеряться повністю: content-visibility створював порожні ділянки
 * під час швидкого скролу, знімків сторінки та роботи вбудованих оглядачів. */

/* ------------------------------------------------------------------ *
 * Мобільна версія — рефайнмент (v1.1)
 * ------------------------------------------------------------------ */

@media (max-width: 782px) {
	/* Hero: компактніший перший екран. */
	.remove-hero {
		padding-top: 28px;
	}

	.remove-hero__stamp {
		display: none;
	}

	.remove-hero__note {
		max-width: 100%;
		margin-top: -30px;
		margin-left: 16px;
		margin-right: 16px;
	}

	/* Trust strip: 2 колонки замість 4. */
	.remove-trust .wp-block-columns {
		display: grid;
		grid-template-columns: 1fr 1fr;
		gap: 18px;
	}

	/* Кроки процесу: 2 × 2. */
	.remove-process__grid {
		display: grid;
		grid-template-columns: 1fr 1fr;
		gap: 14px;
	}

	/* Заголовки секцій: flex-рядок із inline flex-basis стає вертикальним. */
	:where(section.wp-block-group) > .wp-block-group.is-content-justification-space-between {
		display: flex;
		flex-direction: column;
		align-items: flex-start;
		gap: 16px;
	}

	:where(section.wp-block-group) > .wp-block-group.is-content-justification-space-between > p {
		flex: 1 1 auto;
		max-width: 65ch;
	}

	/* FAQ: повна ширина, колонки стають вертикальними. */
	.remove-faq .wp-block-columns {
		display: block;
	}

	/* Контактна картка: одна колонка. */
	.remove-contact__card .wp-block-columns {
		display: block;
	}

	/* Модалка: майже на весь екран. */
	.remove-modal {
		padding: 10px;
		align-items: end;
	}

	.remove-modal__box {
		max-height: calc(100vh - 20px);
		border-radius: 20px 20px 0 0;
	}

	/* Форма: одна колонка. */
	.remove-form__grid {
		grid-template-columns: 1fr;
	}

	/* Футер: адаптивні grid-переходи визначає design-system.css. */

	/* Навігаційні стрілки каталогу: менші. */
	.remove-service-row .wp-block-read-more {
		font-size: 1.1rem !important;
	}

	/* Sticky CTA трохи вище для безпечних зон iOS. */
	.remove-sticky-cta {
		bottom: calc(12px + env(safe-area-inset-bottom, 0px));
	}

	/* Кнопки у формах: повна ширина. */
	.remove-form__submit {
		width: 100%;
	}
}

@media (max-width: 480px) {
	/* Trust strip і процес: одна колонка на дуже вузьких. */
	.remove-trust .wp-block-columns,
	.remove-process__grid {
		grid-template-columns: 1fr;
	}

	/* Картки напрямків: відступи компактніші. */
	.remove-directions__grid .wp-block-column {
		padding: 10px 10px 18px;
	}
}

/* Ландшафтні телефони: горизонтальний padding зменшено. */
@media (max-width: 782px) and (orientation: landscape) {
	.remove-modal__box {
		max-height: calc(100vh - 20px);
	}
}

/* Великі екрани: обмеження ширини рядка для читабельності. */
@media (min-width: 1600px) {
	:root {
		--wp--style--global--wide-size: 1320px;
	}
}

/* ================================================================== *
 * Стаття блогу (single.html)
 * ================================================================== */

.remove-article > * {
	max-width: var(--wp--style--global--content-size, 760px);
	margin-left: auto;
	margin-right: auto;
}

.remove-article .remove-article__meta,
.remove-article .remove-share,
.remove-article .remove-author-card,
.remove-article .remove-related,
.remove-article .remove-article-nav,
.remove-article .wp-block-post-featured-image,
.remove-article > .wp-block-pattern,
.remove-article .remove-article__category {
	max-width: var(--wp--style--global--wide-size, 1180px);
}

.remove-article__category a {
	display: inline-block;
	font-size: 0.72rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.08em;
	color: var(--rm-green);
	background: var(--rm-green-soft);
	border-radius: 99px;
	padding: 5px 12px;
	text-decoration: none;
}

.remove-article__meta {
	gap: 18px;
	margin: 18px 0 26px;
	color: var(--rm-muted);
	font-size: 0.85rem;
}

.remove-reading-time {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	color: var(--rm-muted);
	font-size: 0.85rem;
}

/* Контент статті: типографіка для довгого читання. */
.remove-article .entry-content,
.remove-article .wp-block-post-content {
	font-size: 1.08rem;
	line-height: 1.8;
}

.remove-article .wp-block-post-content h2 {
	margin-top: 2.2em;
}

.remove-article .wp-block-post-content img {
	border-radius: 18px;
}

/* Поширення. */
.remove-share {
	gap: 12px;
	margin-top: 34px;
	padding-top: 24px;
	border-top: 1px solid var(--rm-line);
}

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

.remove-share__btn {
	display: inline-flex;
	align-items: center;
	font-size: 0.8rem;
	font-weight: 700;
	padding: 8px 14px;
	border-radius: 99px;
	border: 1px solid var(--rm-line);
	background: var(--rm-white);
	color: var(--rm-ink);
	cursor: pointer;
	text-decoration: none;
	transition: var(--rm-transition);
	font-family: inherit;
}

.remove-share__btn:hover {
	background: var(--rm-green);
	border-color: var(--rm-green);
	color: var(--rm-white);
}

.remove-share__btn.is-copied {
	background: var(--rm-green-soft);
	border-color: var(--rm-green);
	color: var(--rm-green-dark);
}

/* Картка автора. */
.remove-author-card {
	gap: 20px;
	margin-top: 34px;
	padding: 24px 28px;
	border-radius: var(--rm-radius);
	border: 1px solid var(--rm-line);
}

/* Схожі статті. */
.remove-related {
	margin-top: 48px;
}

.remove-related__grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 18px;
}

.remove-related__card {
	display: flex;
	flex-direction: column;
	background: var(--rm-white);
	border: 1px solid var(--rm-line);
	border-radius: 18px;
	overflow: hidden;
	text-decoration: none;
	transition: var(--rm-transition);
}

.remove-related__card:hover {
	transform: translateY(-4px);
	box-shadow: var(--rm-shadow);
}

.remove-related__card img {
	width: 100%;
	aspect-ratio: 16 / 10;
	object-fit: cover;
}

.remove-related__body {
	padding: 16px 18px 18px;
	display: grid;
	gap: 6px;
}

.remove-related__title {
	font-family: var(--wp--preset--font-family--manrope, Manrope, sans-serif);
	font-weight: 700;
	color: var(--rm-ink);
	font-size: 0.95rem;
	line-height: 1.35;
}

.remove-related__date {
	font-size: 0.75rem;
	color: var(--rm-muted);
}

.remove-article-nav {
	gap: 14px;
	margin-top: 40px;
	padding-top: 24px;
	border-top: 1px solid var(--rm-line);
}

.remove-article-nav a {
	color: var(--rm-green);
	font-weight: 700;
	text-decoration: none;
}

/* Архів блогу та автор: картка. */
.remove-author-card.has-white-background-color {
	margin-top: 0;
}

/* Фільтр-чипи каталогу послуг. */
.remove-filter-chips {
	gap: 8px;
	margin: 24px 0 34px;
}

.remove-filter-chips a {
	display: inline-block;
	font-size: 0.8rem;
	font-weight: 700;
	padding: 9px 16px;
	border-radius: 99px;
	border: 1px solid var(--rm-line);
	background: var(--rm-white);
	color: var(--rm-ink);
	text-decoration: none;
	transition: var(--rm-transition);
}

.remove-filter-chips a:hover {
	background: var(--rm-green);
	border-color: var(--rm-green);
	color: var(--rm-white);
}

@media (max-width: 782px) {
	.remove-related__grid {
		grid-template-columns: 1fr;
	}

	.remove-article-nav {
		display: grid;
		gap: 10px;
	}

	/* Мета-рядок статті: компактніший. */
	.remove-article__meta {
		gap: 10px 16px;
	}
}


/* ==========================================================================
   v1.2.0 — UX/UI поліровка: активна сторінка, фокус, дотик, стани
   ========================================================================== */

/* Активний пункт меню (окремі сторінки замість якорів). */
.remove-nav a[aria-current="page"],
.remove-footer__menu a[aria-current="page"] {
	color: var(--rm-green);
	font-weight: 700;
}

.remove-nav a[aria-current="page"] {
	box-shadow: inset 0 -2px 0 var(--rm-green);
}

.remove-footer__menu a[aria-current="page"],
.remove-footer__legal a[aria-current="page"] {
	color: var(--rm-lime);
	text-decoration: underline;
	text-underline-offset: 4px;
}

/* Єдиний видимий фокус для клавіатури (WCAG 2.2 AA). */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
summary:focus-visible {
	outline: 3px solid var(--rm-coral);
	outline-offset: 3px;
	border-radius: 6px;
}

/* Якорі/цілі скролу не ховаються під липким хедером. */
[id] {
	scroll-margin-top: 110px;
}

/* Поля форм: комфортний фокус і дотик. */
.remove-form input,
.remove-form select,
.remove-form textarea {
	min-height: 48px;
	transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.remove-form input:focus,
.remove-form select:focus,
.remove-form textarea:focus {
	border-color: var(--rm-green);
	box-shadow: 0 0 0 4px rgba(49, 93, 80, 0.12);
}

/* Кнопки: мікровзаємодія без зайвого JS. */
.wp-element-button {
	transition: transform 0.18s ease, box-shadow 0.18s ease, background-color 0.18s ease, color 0.18s ease;
	will-change: transform;
}

.wp-element-button:hover {
	transform: translateY(-2px);
	box-shadow: 0 10px 24px rgba(29, 48, 45, 0.16);
}

.wp-element-button:active {
	transform: translateY(0);
	box-shadow: none;
}

/* Виділення тексту в палітрі бренду. */
::selection {
	background: var(--rm-lime);
	color: var(--rm-ink);
}

/* Фото: м'яка глибина замість плоских плейсхолдерів. */
.remove-hero__image img {
	box-shadow: 0 24px 60px rgba(29, 48, 45, 0.22);
}

.remove-directions .wp-block-image img,
.remove-specialist .wp-block-image img {
	transition: transform 0.5s ease;
}

/* Повага до reduced motion для всіх нових анімацій. */
@media (prefers-reduced-motion: reduce) {
	.wp-element-button,
	.remove-form input,
	.remove-form select,
	.remove-form textarea,
	.remove-directions .wp-block-image img,
	.remove-specialist .wp-block-image img {
		transition: none;
	}

	.wp-element-button:hover {
		transform: none;
	}
}

/* Мобільні дотикові цілі ≥ 44px і читабельне меню. */
@media (max-width: 782px) {
	.remove-nav a,
	.remove-footer__menu a {
		padding: 10px 2px;
		min-height: 44px;
		display: inline-flex;
		align-items: center;
	}

	.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-link a {
		font-size: 1.15rem;
		padding: 14px 8px;
	}

	.remove-topline {
		display: none;
	}

	[id] {
		scroll-margin-top: 84px;
	}
}


/* ================================================================== *
 * V2 component contracts: медіа-семантика та print-режим чек-листів.
 * Візуальні токени й повна адаптивність — у фінальному шарі
 * design-system.css; тут лише структурні правила та друк.
 * ================================================================== */

.remove-service-media figure,
.remove-service-media__infographic {
	margin: 0;
}

.remove-service-media img {
	max-width: 100%;
	height: auto;
}

@media print {
	@page {
		margin: 14mm;
	}

	* {
		box-shadow: none !important;
		text-shadow: none !important;
	}

	html,
	body {
		background: #fff !important;
		color: #000 !important;
	}

	/* Друкуємо інструмент і зміст, без навігації, форм і conversion-блоків. */
	header.wp-block-template-part:has(.remove-header),
	footer.wp-block-template-part:has(.remove-footer),
	.remove-skip-link,
	.remove-topline,
	.remove-header,
	.remove-footer,
	.remove-sticky-cta,
	.remove-modal,
	.remove-breadcrumbs,
	.remove-booking-cta,
	.remove-booking-panel-section,
	.remove-service-booking-section,
	.remove-contact,
	.remove-footer-cta,
	.remove-checklists-more,
	.remove-related,
	.remove-faq,
	.remove-service-media-section,
	.remove-service-specialist,
	.remove-form,
	form,
	nav,
	iframe,
	video {
		display: none !important;
	}

	main,
	main .wp-block-group,
	.remove-checklist-section,
	.remove-service-checklist-section,
	.remove-checklist-block,
	.remove-checklist {
		display: block !important;
		width: auto !important;
		max-width: none !important;
		margin-inline: 0 !important;
	}

	/* display:block для layout не повинен повертати приховані CTA/медіа. */
	main .remove-booking-cta,
	main .remove-booking-panel-section,
	main .remove-service-booking-section,
	main .remove-contact,
	main .remove-checklists-more,
	main .remove-related,
	main .remove-faq,
	main .remove-service-media-section,
	main .remove-service-specialist,
	main .remove-form,
	main form,
	main nav {
		display: none !important;
	}

	/* Браузери зазвичай не друкують фонові градієнти, тому темні hero
	 * перетворюємо на читабельний білий блок із чорним текстом. */
	.remove-service-hero,
	.remove-direction-hero,
	.remove-booking-cta,
	.remove-panel--dark {
		background: #fff !important;
		border-color: #000 !important;
		color: #000 !important;
	}

	.remove-service-hero :where(h1, h2, h3, p, li),
	.remove-direction-hero :where(h1, h2, h3, p, li),
	.remove-panel--dark :where(h1, h2, h3, p, li) {
		color: #000 !important;
	}

	.remove-service-hero::after,
	.remove-direction-hero::after,
	.remove-hero::before {
		display: none !important;
	}

	:where(section.wp-block-group, .wp-block-group, article) {
		padding-top: 0 !important;
		padding-bottom: 18pt !important;
	}

	.remove-checklist-block {
		max-width: none;
		padding: 12pt;
		border: 1pt solid #000;
		background: #fff !important;
		break-inside: avoid;
	}

	.remove-checklist-block__mode,
	.remove-checklist-block__title,
	.remove-checklist-block__note {
		color: #000 !important;
	}

	.remove-checklist__list {
		display: block !important;
	}

	.remove-checklist__item {
		break-inside: avoid;
		margin: 0 0 5pt;
	}

	.remove-checklist__label {
		display: grid !important;
		min-height: auto;
		grid-template-columns: 14pt minmax(0, 1fr);
		gap: 7pt;
		padding: 2pt 0;
		background: transparent !important;
	}

	.remove-checklist__input {
		display: grid !important;
		width: 12pt !important;
		height: 12pt !important;
		place-items: center;
		margin: 2pt 0 0;
		appearance: none;
		border: 1.2pt solid #000 !important;
		border-radius: 2pt;
		background: #fff !important;
		print-color-adjust: exact;
	}

	.remove-checklist__input:checked::after {
		content: "✓";
		color: #000 !important;
		font-size: 11pt;
		font-weight: 700;
		line-height: 1;
	}

	/* Позначка читається і без кольору: ✓ + закреслений текст. */
	.remove-checklist__input:checked + .remove-checklist__text {
		text-decoration: line-through;
		text-decoration-thickness: 0.7pt;
	}

	.remove-checklist__text,
	.remove-checklist__progress,
	.remove-checklist__note {
		color: #000 !important;
	}

	.remove-checklist__bar,
	.remove-checklist__actions,
	.remove-checklist__privacy {
		display: none !important;
	}

	a {
		color: #000 !important;
		text-decoration: underline;
	}

	img {
		max-width: 100% !important;
		height: auto !important;
		break-inside: avoid;
	}
}
