/* ==========================================================================
   ЭКЗИ АРТ — база: токены, шрифты, типографика, общие компоненты.
   Mobile-first. Макет: мобильный 375 (поля 16), десктоп 1440 (поля 60, контент 1320).
   Секции — assets/css/sections/{layout}.css, классы БЭМ с префиксом секции.
   ========================================================================== */

@font-face { font-family: "Manrope"; font-style: normal; font-weight: 400; font-display: swap; src: url("../fonts/manrope-cyrillic-400-normal.woff2") format("woff2"); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Manrope"; font-style: normal; font-weight: 400; font-display: swap; src: url("../fonts/manrope-latin-400-normal.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: "Manrope"; font-style: normal; font-weight: 500; font-display: swap; src: url("../fonts/manrope-cyrillic-500-normal.woff2") format("woff2"); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Manrope"; font-style: normal; font-weight: 500; font-display: swap; src: url("../fonts/manrope-latin-500-normal.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: "Manrope"; font-style: normal; font-weight: 600; font-display: swap; src: url("../fonts/manrope-cyrillic-600-normal.woff2") format("woff2"); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Manrope"; font-style: normal; font-weight: 600; font-display: swap; src: url("../fonts/manrope-latin-600-normal.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: "Inter"; font-style: normal; font-weight: 400; font-display: swap; src: url("../fonts/inter-cyrillic-400-normal.woff2") format("woff2"); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 400; font-display: swap; src: url("../fonts/inter-latin-400-normal.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; }

:root {
	/* Цвета макета (Figma: Orange, Orange_1, Beige, White, Black) */
	--c-orange: #e0ba91;
	--c-orange-dark: #d2a674;
	--c-orange-soft: #f7efe6;
	--c-cream: #faf3ec;
	--c-beige: #f1e3d3;
	--c-white: #fbfaf7;
	--c-black: #303030;
	--c-line: rgba(224, 186, 145, 0.5);
	--c-overlay: rgba(0, 0, 0, 0.5);

	--font-head: "Inter", "Helvetica Neue", Arial, sans-serif;
	--font-body: "Manrope", "Helvetica Neue", Arial, sans-serif;

	/* Шкала: мобильный → десктоп 1440 */
	--fs-h1: clamp(27px, 1.74vw + 20.5px, 42px);
	--fs-h2: clamp(27px, 1.28vw + 22.2px, 38px);
	--fs-h3: clamp(18px, 0.7vw + 15.4px, 24px);
	--fs-text: clamp(14px, 0.47vw + 12.25px, 18px);
	--fs-small: clamp(12px, 0.23vw + 11.1px, 14px);
	--fs-btn: clamp(16px, 0.23vw + 15.1px, 18px);

	--container: 1440px;
	--gutter: 16px;
	--section-y: 40px;
	--gap: 10px;
	--radius: 10px;
	--radius-sm: 8px;
	--header-h: 45px;
	--shadow-header: 0 4px 4px rgba(0, 0, 0, 0.12);
	--ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

@media (min-width: 768px) {
	:root { --gutter: 32px; --gap: 20px; --header-h: 72px; }
}

@media (min-width: 1200px) {
	:root { --gutter: 60px; --section-y: 50px; --header-h: 98px; }
}

/* ---------- reset ---------- */
*, *::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) + 10px); }
body {
	margin: 0;
	min-width: 320px;
	background: var(--c-white);
	color: var(--c-black);
	font-family: var(--font-body);
	font-size: var(--fs-text);
	line-height: 1.32;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
	text-rendering: optimizeLegibility;
}
body.is-locked { overflow: hidden; }
img, svg, video { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
input, textarea, select { font: inherit; color: inherit; }
h1, h2, h3, h4, h5, h6, p, ul, ol, figure, blockquote { margin: 0; }
ul, ol { padding: 0; list-style: none; }
:focus-visible { outline: 2px solid var(--c-orange); outline-offset: 3px; }
[hidden] { display: none !important; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; left: 8px; top: -60px; z-index: 200; padding: 10px 16px; background: var(--c-orange); color: var(--c-white); border-radius: var(--radius-sm); }
.skip-link:focus { top: 8px; }

/* ---------- layout ---------- */
.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }
.site-main { display: block; }
.section { padding-block: var(--section-y); }
.section--white { background: var(--c-white); }
.section--cream { background: var(--c-cream); }
.section--beige { background: var(--c-beige); }
.section--orange { background: var(--c-orange); }

/* ---------- typography ---------- */
.title-h1, .title-h2 {
	font-family: var(--font-head);
	font-weight: 400;
	line-height: 0.99;
	letter-spacing: -0.06em;
	text-transform: uppercase;
	color: var(--c-black);
}
.title-h1 { font-size: var(--fs-h1); }
.title-h2 { font-size: var(--fs-h2); }
.title-h3 {
	font-family: var(--font-body);
	font-weight: 600;
	font-size: var(--fs-h3);
	line-height: 1.32;
	text-transform: uppercase;
}
.accent { color: var(--c-orange); }
.eyebrow {
	font-weight: 500;
	font-size: var(--fs-small);
	line-height: 1.32;
	text-transform: uppercase;
	color: var(--c-orange);
}
.text { font-size: var(--fs-text); line-height: 1.32; }
.text-small { font-size: var(--fs-small); line-height: 1.32; }
.text > p + p, .rich > p + p { margin-top: 1.32em; }
.rich a { color: var(--c-orange); text-decoration: underline; text-underline-offset: 3px; }

/* ---------- buttons ---------- */
.button {
	--btn-dash: var(--c-orange);
	position: relative;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	min-height: 45px;
	padding: 12px 24px;
	border-radius: var(--radius-sm);
	font-family: var(--font-body);
	font-size: var(--fs-btn);
	line-height: 1.32;
	font-weight: 400;
	text-align: center;
	white-space: nowrap;
	transition: background-color 0.25s var(--ease), color 0.25s var(--ease), box-shadow 0.25s var(--ease), transform 0.25s var(--ease);
	-webkit-tap-highlight-color: transparent;
}
.button:active { transform: translateY(1px); }
.button--primary { background: var(--c-orange); color: var(--c-white); }
.button--primary:hover { background: var(--c-orange-dark); }
/* Пунктир Figma: штрих 10 / пробел 10, 1px. Рисуем фоном — border: dashed даёт мелкий шаг. */
.button--outline, .button--outline-light {
	background:
		linear-gradient(90deg, var(--btn-dash) 50%, transparent 0) top left / 20px 1px repeat-x,
		linear-gradient(90deg, var(--btn-dash) 50%, transparent 0) bottom left / 20px 1px repeat-x,
		linear-gradient(0deg, var(--btn-dash) 50%, transparent 0) top left / 1px 20px repeat-y,
		linear-gradient(0deg, var(--btn-dash) 50%, transparent 0) top right / 1px 20px repeat-y;
	color: var(--c-black);
}
.button--outline:hover { background-color: rgba(224, 186, 145, 0.14); }
.button--outline-light { --btn-dash: var(--c-white); color: var(--c-white); }
.button--outline-light:hover { background-color: rgba(251, 250, 247, 0.16); }
.button--light { background: var(--c-white); color: var(--c-black); }
.button--light:hover { background: var(--c-cream); }
.button--text {
	min-height: 0;
	padding: 0;
	border-radius: 0;
	color: var(--c-orange);
	text-decoration: underline;
	text-decoration-thickness: 1px;
	text-underline-offset: 4px;
	white-space: normal;
}
.button--text:hover { color: var(--c-orange-dark); }
.button--block { width: 100%; }
.button[disabled], .button.is-loading { opacity: 0.6; pointer-events: none; }

@media (min-width: 768px) {
	.button { min-height: 48px; }
}

/* ---------- section head + slider nav ---------- */
.section-head {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 20px 40px;
	margin-bottom: 30px;
}
.section-head--center { justify-content: center; text-align: center; }
.section-head__titles { display: grid; gap: 15px; max-width: 1000px; }
.section-head__lead { font-size: var(--fs-text); }
@media (min-width: 1200px) {
	.section-head { margin-bottom: 40px; }
	.section-head__titles { gap: 25px; }
}

.slider-nav { display: flex; align-items: center; justify-content: space-between; gap: 30px; flex-shrink: 0; }
.slider-nav__counter { font-size: var(--fs-btn); line-height: 1.32; color: var(--c-orange); font-variant-numeric: tabular-nums; }
.slider-nav__arrows { display: flex; gap: 8px; }
.slider-nav__btn {
	display: grid;
	place-items: center;
	width: 41px;
	height: 29px;
	border-radius: 4.65px;
	background: var(--c-orange);
	color: var(--c-white);
	transition: background-color 0.2s var(--ease), opacity 0.2s var(--ease);
}
.slider-nav__btn svg { width: 17px; height: 11px; }
.slider-nav__btn--prev svg { transform: scaleX(-1); }
.slider-nav__btn:hover { background: var(--c-orange-dark); }
.slider-nav__btn:disabled, .slider-nav__btn.swiper-button-disabled { opacity: 0.45; cursor: default; }
.slider-nav--light .slider-nav__counter { color: var(--c-white); }
.slider-nav--light .slider-nav__btn { background: var(--c-orange-soft); color: var(--c-orange); }
.slider-nav--light .slider-nav__btn:hover { background: var(--c-white); }
.slider-nav.is-single, [data-slider].is-single .slider-nav { display: none; }
/* Десктопная навигация — в шапке секции, мобильная — под слайдером */
.slider-nav--mobile { margin-top: 20px; }
.slider-nav--desktop { display: none; }
@media (min-width: 1200px) {
	.slider-nav { min-width: 203px; }
	.slider-nav__arrows { gap: 10px; }
	.slider-nav__btn { width: 53px; height: 38px; border-radius: 6px; }
	.slider-nav__btn svg { width: 22px; height: 14px; }
	.slider-nav--desktop { display: flex; }
	.slider-nav--mobile { display: none; }
	[data-slider].is-off-desktop .slider-nav { display: none; }
}

/* Swiper: базовые правила без vendor css */
.swiper { position: relative; overflow: hidden; touch-action: pan-y; }
.swiper-wrapper { position: relative; display: flex; box-sizing: content-box; transition-property: transform; }
.swiper-slide { flex-shrink: 0; position: relative; height: auto; }
.swiper-grid > .swiper-wrapper, .swiper-grid-column > .swiper-wrapper { flex-wrap: wrap; }
.swiper-grid-column > .swiper-wrapper { flex-direction: column; }
.swiper-wrapper.is-equal > .swiper-slide { display: flex; }
.swiper-wrapper.is-equal > .swiper-slide > * { flex: 1 1 auto; }
/* Слайдер выключен (desktop-grid) — секции раскладывают .swiper-wrapper сеткой */
[data-slider]:not(.is-slider) .swiper { overflow: visible; }
[data-slider]:not(.is-slider) .swiper-wrapper { transform: none !important; }

/* ---------- icon tiles ---------- */
.icon-tile { display: block; flex-shrink: 0; width: 48px; height: 48px; border-radius: 6px; }
.icon-tile img, .icon-tile svg { width: 100%; height: 100%; }
@media (min-width: 1200px) { .icon-tile { width: 53px; height: 53px; } }

/* ---------- bullets ---------- */
.bullets { display: grid; gap: 10px; }
.bullets li { position: relative; padding-left: 22px; }
.bullets li::before { content: ""; position: absolute; left: 0; top: 0.42em; width: 10px; height: 10px; border-radius: 50%; background: var(--c-orange); }
@media (min-width: 1200px) { .bullets { gap: 15px; } .bullets li::before { width: 11px; height: 11px; } }

/* ---------- number badge ---------- */
.num-badge {
	display: inline-grid;
	place-items: center;
	min-width: 29px;
	height: 29px;
	padding: 0 6px;
	border-radius: 0 0 6px 0;
	background: var(--c-orange);
	color: var(--c-white);
	font-size: var(--fs-small);
}
@media (min-width: 1200px) { .num-badge { min-width: 36px; height: 36px; font-size: 18px; } }

/* ==========================================================================
   Шапка
   ========================================================================== */
.header {
	position: sticky;
	top: 0;
	z-index: 50;
	background: var(--c-cream);
	box-shadow: var(--shadow-header);
	border-top: 1px solid var(--c-line);
}
.admin-bar .header { top: var(--wp-admin--admin-bar--height, 0px); }
@media (max-width: 600px) { .admin-bar .header { top: 0; } }
.header__inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: var(--header-h); padding-block: 8px; }
.header__logo { display: block; width: 133px; color: var(--c-orange); flex-shrink: 0; }
.header__logo svg, .header__logo img { width: 100%; height: auto; }
.header__nav { display: none; }
.header__menu { display: flex; align-items: center; gap: 20px; }
.header__menu a { font-size: 18px; transition: color 0.2s var(--ease); }
.header__menu a:hover, .header__menu .current-menu-item > a { color: var(--c-orange); }
.header__actions { display: flex; align-items: center; gap: 20px; }
.header__cta { display: none; }
.burger { position: relative; display: grid; place-items: center; width: 29px; height: 29px; margin-right: -2px; }
.burger__lines, .burger__lines::before, .burger__lines::after { display: block; width: 29px; height: 1px; background: var(--c-black); transition: transform 0.3s var(--ease), opacity 0.2s; }
.burger__lines { position: relative; }
.burger__lines::before, .burger__lines::after { content: ""; position: absolute; left: 0; }
.burger__lines::before { top: -7px; }
.burger__lines::after { top: 7px; }
@media (min-width: 768px) {
	.header__logo { width: 200px; }
	.header__cta { display: inline-flex; }
}
@media (min-width: 1200px) {
	.header__inner { padding-block: 25px; }
	.header__logo { width: 271px; }
	.header__nav { display: block; margin-left: auto; }
	.header__actions { margin-left: 88px; }
}

/* ---------- меню (оверлей) ---------- */
.menu { position: fixed; inset: 0; z-index: 90; visibility: hidden; pointer-events: none; }
.menu.is-open { visibility: visible; pointer-events: auto; }
.menu__backdrop { position: absolute; inset: 0; background: var(--c-overlay); opacity: 0; transition: opacity 0.35s var(--ease); }
.menu.is-open .menu__backdrop { opacity: 1; }
.menu__panel {
	position: relative;
	max-height: 100%;
	overflow-y: auto;
	background: var(--c-cream);
	box-shadow: 0 3px 4px rgba(0, 0, 0, 0.09);
	border-top: 1px solid var(--c-line);
	transform: translateY(-100%);
	transition: transform 0.45s var(--ease);
}
.menu.is-open .menu__panel { transform: none; }
.menu__inner { position: relative; display: grid; gap: 30px; padding-block: 60px 30px; }
.menu__close { position: absolute; top: 14px; right: var(--gutter); display: grid; place-items: center; width: 32px; height: 32px; color: var(--c-black); }
.menu__close svg { width: 20px; height: 20px; }
.menu__brand { display: grid; gap: 15px; align-content: end; order: 2; }
.menu__logo { display: block; width: 200px; }
.menu__tagline, .footer__tagline { color: var(--c-orange); font-size: var(--fs-text); max-width: 426px; }
.menu__cols, .footer__cols { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.menu__col-title, .footer__col-title { margin-bottom: 15px; font-weight: 500; font-size: var(--fs-small); text-transform: uppercase; color: var(--c-orange); }
.menu__list, .footer__list { display: grid; gap: 10px; }
.menu__list a, .footer__list a { font-size: var(--fs-text); transition: color 0.2s var(--ease); }
.menu__list a:hover, .footer__list a:hover { color: var(--c-orange); }
.menu__actions { display: grid; gap: 10px; order: 1; }
@media (min-width: 1200px) {
	.menu__inner { grid-template-columns: 426px 1fr; justify-content: space-between; padding-block: 55px 40px; min-height: 322px; }
	.menu__brand { order: 0; }
	.menu__logo { width: 271px; }
	.menu__cols { grid-template-columns: 202px 204px; justify-self: end; width: 649px; }
	.menu__close { top: 34px; right: 60px; }
	.menu__actions { display: none; }
}

/* ==========================================================================
   Подвал
   ========================================================================== */
.footer { background: var(--c-beige); border-top: 1px solid var(--c-line); box-shadow: var(--shadow-header); }
.footer__inner { display: grid; gap: 30px; padding-block: 30px; }
.footer__brand { display: grid; gap: 15px; align-content: start; }
.footer__logo { display: block; width: 200px; color: var(--c-orange); }
.footer__copy { color: var(--c-orange); font-size: var(--fs-text); }
.footer__actions { display: grid; gap: 10px; }
.footer__legal { display: grid; gap: 10px; }
.footer__legal a { transition: color 0.2s var(--ease); }
.footer__legal a:hover { color: var(--c-orange); }
@media (max-width: 1199px) {
	.footer__inner { gap: 0; }
	.footer__nav { order: 1; display: grid; gap: 30px; }
	.footer__brand { order: 2; margin-top: 30px; }
	.footer__copy { order: 3; margin-top: 15px; }
	.footer__legal { order: 4; margin-top: 30px; }
}
@media (min-width: 1200px) {
	.footer__inner {
		grid-template-columns: 426px 649px;
		grid-template-areas: "brand nav" "copy legal";
		justify-content: space-between;
		row-gap: 80px;
		padding-block: 55px 25px;
	}
	.footer__brand { grid-area: brand; }
	.footer__logo { width: 271px; }
	.footer__nav { grid-area: nav; display: grid; grid-template-columns: 202px 204px 203px; gap: 20px; }
	.footer__cols { display: contents; }
	.footer__actions { gap: 20px; align-content: start; }
	.footer__actions .button { width: 100%; }
	.footer__copy { grid-area: copy; align-self: end; }
	.footer__legal { grid-area: legal; grid-template-columns: 202px auto; gap: 20px; }
}

/* ==========================================================================
   Модалки
   ========================================================================== */
.modal {
	width: min(630px, calc(100% - 32px));
	max-height: calc(100% - 32px);
	margin: auto;
	padding: 0;
	border: 0;
	border-radius: var(--radius);
	background: var(--c-cream);
	color: var(--c-black);
	overflow: visible;
}
.modal::backdrop { background: var(--c-overlay); }
.modal[open] { animation: modal-in 0.35s var(--ease); }
@keyframes modal-in { from { opacity: 0; transform: translateY(16px) scale(0.98); } to { opacity: 1; transform: none; } }
.modal__box { position: relative; max-height: calc(100dvh - 32px); overflow-y: auto; padding: 30px 16px 20px; }
.modal__close { position: absolute; top: 10px; right: 10px; z-index: 2; display: grid; place-items: center; width: 36px; height: 36px; color: var(--c-black); }
.modal__close svg { width: 18px; height: 18px; }
.modal__title { margin-bottom: 10px; padding-right: 30px; }
.modal__text { margin-bottom: 20px; }
@media (min-width: 768px) {
	.modal__box { padding: 40px 30px 30px; }
}

/* галерея / маршрут (попап «Как пройти») */
.modal--gallery { width: min(650px, calc(100% - 32px)); }
.gallery__box { padding: 20px 16px 20px; }
.gallery__slide { display: grid; gap: 15px; }
.gallery__caption { display: flex; align-items: center; gap: 15px; min-height: 32px; padding-right: 36px; font-size: var(--fs-text); }
.gallery__num { display: inline-grid; place-items: center; min-width: 32px; height: 32px; padding: 0 6px; border-radius: 4px; background: var(--c-beige); }
.gallery__img { width: 100%; aspect-ratio: 609 / 384; object-fit: cover; border-radius: var(--radius-sm); background: var(--c-beige); }
.gallery__nav { margin-top: 20px; justify-content: flex-end; }
.gallery__nav .slider-nav__counter { margin-left: auto; }
@media (min-width: 768px) {
	.gallery__box { padding: 20px; }
	.gallery__nav { margin-top: 34px; gap: 34px; }
	.modal--gallery .slider-nav { display: flex; }
}

/* ==========================================================================
   Формы
   ========================================================================== */
.form { display: grid; gap: 10px; }
.form__field { display: block; }
.form__input, .form__textarea {
	display: block;
	width: 100%;
	min-height: 48px;
	padding: 12px 16px;
	border: 1px solid transparent;
	border-radius: var(--radius-sm);
	background: var(--c-white);
	font-size: var(--fs-small);
	line-height: 1.32;
	transition: border-color 0.2s var(--ease);
}
.form__textarea { min-height: 120px; resize: vertical; }
.form__input::placeholder, .form__textarea::placeholder { color: var(--c-black); opacity: 1; }
.form__input:focus, .form__textarea:focus { outline: none; border-color: var(--c-orange); }
.form__input.is-invalid, .form__textarea.is-invalid { border-color: #c96b5a; }
.form__consent { display: flex; align-items: flex-start; gap: 10px; margin-block: 10px 20px; font-size: 12px; line-height: 1.32; color: rgba(48, 48, 48, 0.5); cursor: pointer; }
.form__consent a { text-decoration: underline; }
.form__check { flex-shrink: 0; width: 15px; height: 15px; margin: 2px 0 0; appearance: none; border: 1px solid rgba(48, 48, 48, 0.5); border-radius: 2px; background: transparent; cursor: pointer; }
.form__check:checked { border-color: var(--c-orange); background: var(--c-orange) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M2 6.2 4.8 9 10 3' fill='none' stroke='%23fbfaf7' stroke-width='1.6'/%3E%3C/svg%3E") center / 11px no-repeat; }
.form__check.is-invalid { border-color: #c96b5a; }
.form__submit { width: 100%; }
.form__honeypot { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-status { min-height: 0; font-size: var(--fs-small); }
.form-status:empty { display: none; }
.form-status.is-error { color: #b4513f; }
.form-status.is-success { color: var(--c-black); }
.form.is-sent .form__body { display: none; }
.form__success { display: none; text-align: center; padding-block: 20px; }
.form.is-sent .form__success { display: grid; gap: 10px; justify-items: center; }
.rating-input { display: inline-flex; flex-direction: row-reverse; gap: 4px; }
.rating-input input { position: absolute; opacity: 0; pointer-events: none; }
.rating-input label { font-size: 26px; line-height: 1; color: var(--c-beige); cursor: pointer; transition: color 0.15s; }
.rating-input input:checked ~ label, .rating-input label:hover, .rating-input label:hover ~ label { color: var(--c-orange); }
.rating-input input:focus-visible + label { outline: 2px solid var(--c-orange); outline-offset: 2px; }
@media (min-width: 1200px) {
	.form__input { min-height: 58px; padding: 16px 20px; }
}

/* ==========================================================================
   До / после (ползунок) — [data-compare]
   ========================================================================== */
.compare {
	--pos: 50%;
	position: relative;
	overflow: hidden;
	border-radius: var(--radius);
	background: var(--c-beige);
	user-select: none;
	touch-action: pan-y;
	cursor: ew-resize;
}
.compare--y { touch-action: pan-x; cursor: ns-resize; }
.compare__img { display: block; width: 100%; height: 100%; object-fit: cover; pointer-events: none; }
.compare__before { position: absolute; inset: 0; clip-path: inset(0 calc(100% - var(--pos)) 0 0); }
.compare--y .compare__before { clip-path: inset(0 0 calc(100% - var(--pos)) 0); }
.compare__label {
	position: absolute;
	z-index: 2;
	padding: 4px 10px;
	border-radius: 4px;
	background: rgba(251, 250, 247, 0.85);
	font-size: 12px;
	text-transform: uppercase;
	letter-spacing: 0.04em;
	pointer-events: none;
	transition: opacity 0.2s;
}
.compare__label--before { left: 12px; top: 12px; }
.compare__label--after { right: 12px; top: 12px; }
.compare--y .compare__label--after { top: auto; bottom: 12px; right: auto; left: 12px; }
.compare__line { position: absolute; z-index: 3; top: 0; bottom: 0; left: var(--pos); width: 2px; margin-left: -1px; background: var(--c-white); pointer-events: none; }
.compare--y .compare__line { top: var(--pos); bottom: auto; left: 0; right: 0; width: auto; height: 1px; margin: 0; }
.compare__handle {
	position: absolute;
	z-index: 4;
	left: var(--pos);
	top: 50%;
	width: 22px;
	height: 92px;
	transform: translate(-50%, -50%);
	background: var(--c-white);
	pointer-events: none;
	box-shadow: 0 2px 10px rgba(0, 0, 0, 0.12);
}
.compare__handle::before, .compare__handle::after {
	content: "";
	position: absolute;
	top: 50%;
	border: 9px solid transparent;
	transform: translateY(-50%);
}
.compare__handle::before { right: calc(100% + 8px); border-right: 14px solid var(--c-white); border-left-width: 0; }
.compare__handle::after { left: calc(100% + 8px); border-left: 14px solid var(--c-white); border-right-width: 0; }
.compare--y .compare__handle { left: 50%; top: var(--pos); width: 128px; height: 12px; }
.compare--y .compare__handle::before, .compare--y .compare__handle::after { left: 50%; right: auto; top: auto; transform: translateX(-50%); border: 9px solid transparent; }
.compare--y .compare__handle::before { bottom: calc(100% + 6px); border-bottom: 14px solid var(--c-white); border-top-width: 0; }
.compare--y .compare__handle::after { top: calc(100% + 6px); border-top: 14px solid var(--c-white); border-bottom-width: 0; }
.compare__range { position: absolute; inset: 0; z-index: 5; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: inherit; }
.compare.is-dragging .compare__label { opacity: 0; }
.compare.is-hinting { transition: --pos 0.6s; }
@media (min-width: 1200px) {
	.compare__handle { width: 26px; height: 108px; }
	.compare--y .compare__handle { width: 148px; height: 14px; }
}

/* ==========================================================================
   Аккордеон (FAQ) — [data-accordion]
   ========================================================================== */
.accordion__panel { display: grid; grid-template-rows: 0fr; transition: grid-template-rows 0.35s var(--ease); }
.accordion__panel > * { min-height: 0; overflow: hidden; }
.is-open > .accordion__panel { grid-template-rows: 1fr; }

/* ---------- скрытые до «Показать все» ---------- */
.is-extra:not(.is-shown) { display: none; }

/* ---------- видео ---------- */
.video { position: relative; overflow: hidden; border-radius: var(--radius-sm); background: var(--c-beige); aspect-ratio: 609 / 278; }
.video__poster, .video iframe, .video video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; border: 0; }
.video__play {
	position: absolute;
	inset: 0;
	display: grid;
	place-items: center;
	cursor: pointer;
}
.video__play-icon { display: grid; place-items: center; width: 92px; height: 92px; border-radius: 50%; background: rgba(48, 48, 48, 0.35); backdrop-filter: blur(6px); color: var(--c-white); transition: transform 0.3s var(--ease), background-color 0.3s var(--ease); }
.video__play-icon svg { width: 34px; height: 38px; margin-left: 6px; }
.video__play:hover .video__play-icon { transform: scale(1.06); background: rgba(224, 186, 145, 0.85); }
@media (min-width: 1200px) { .video__play-icon { width: 150px; height: 150px; } .video__play-icon svg { width: 56px; height: 64px; margin-left: 10px; } }

/* ---------- reveal ---------- */
@media (prefers-reduced-motion: no-preference) {
	.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); }
	.reveal.is-visible { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; scroll-behavior: auto !important; }
}

/* Страница слайдера-сетки (rows > 1 на мобилке): main.js кладёт карточки в .slider-page */
.swiper-wrapper > .slider-page, .swiper-wrapper.is-equal > .slider-page { display: grid; grid-template-columns: repeat(var(--page-cols, 2), minmax(0, 1fr)); gap: var(--page-gap, 10px); align-content: start; }
.slider-page > .slider-page__item { width: auto; margin: 0; height: auto; }
.swiper-wrapper.is-equal .slider-page > .slider-page__item { display: flex; }
.swiper-wrapper.is-equal .slider-page > .slider-page__item > * { flex: 1 1 auto; }

/* Подвал на планшете: колонки меню слева, кнопки справа */
@media (min-width: 768px) and (max-width: 1199px) {
	.footer__nav { grid-template-columns: minmax(0, 1fr) 260px; align-items: start; }
	.menu__actions { grid-template-columns: repeat(2, max-content); }
}
