/*
 * RuOver — стили темы.
 * Значения из design/design-handoff/design-system/tokens.json и досок *.dc.html (1440 и 390 px).
 * Где доска и токен расходятся (размер H1/H2), взята доска: «главные тексты и значения макета каноничны».
 * Брейкпоинты: ≤767 — телефон (макеты Mobile), ≤1279 — шапка в компактном виде (бургер).
 */

/* ---------- Токены ---------- */
:root {
	--bg: #F1F8F5;
	--hero-tint: #EEF8F4;
	--surface: #FFFFFF;
	--ink: #0A1220;
	--ink-soft: #1B2B2A;
	--muted: #3E5550;
	--muted-soft: #546A64;
	--mint: #1ED6C5;
	--on-mint: #04141A;
	--teal: #12B5A6;
	--teal-deep: #0B9486;
	--teal-ink: #067167;
	--mint-light: #E2F7F4;
	--border: #D3E6DF;
	--border-strong: #CFE3DC;
	--divider: #E3EFEA; /* разделители пунктов мобильного меню (макет MenuMobile) */
	--dark: #06201D;
	--on-dark: #FFFFFF;
	--on-dark-muted: rgba(255, 255, 255, .82);
	--field-on-dark: rgba(255, 255, 255, .08);
	--field-border-on-dark: rgba(255, 255, 255, .22);
	--error: #FF8A80;
	--error-text: #FFB4AB;

	--font-display: "Unbounded", Arial, sans-serif;
	--font-sans: "Manrope", system-ui, sans-serif;
	--font-arabic: "Noto Naskh Arabic", serif;

	--space-2: 8px;
	--space-3: 12px;
	--space-4: 16px;
	--space-5: 20px;
	--space-6: 24px;
	--space-8: 32px;
	--space-10: 40px;
	--space-12: 48px;
	--section-gap: 110px;
	--container: 1200px;

	--radius-input: 14px;
	--radius-button: 16px;
	--radius-faq: 22px;
	--radius-card: 28px;
	--radius-hero: 36px;
	--radius-block: 40px;
	--radius-footer: 44px;
	--radius-pill: 999px;

	--shadow-card: 0 10px 30px rgba(8, 60, 52, .08);
	--shadow-soft: 0 8px 24px rgba(8, 60, 52, .06);
	--shadow-lift: 0 12px 32px rgba(8, 60, 52, .12);
	--shadow-float: 0 24px 60px rgba(8, 60, 52, .22);
	--shadow-mint: 0 10px 24px rgba(18, 181, 166, .35);

	/* Геометрия шапки и hero: hero начинается на --hero-gap от края и заходит под шапку */
	--hero-gap: 20px;
	--hero-pad-x: 48px;
	--header-pad-top: 28px;
	--header-row: 46px;
}

@media (max-width: 767px) {
	:root {
		--section-gap: 56px;
		--radius-card: 24px;
		--radius-hero: 28px;
		--radius-footer: 32px;
		--hero-gap: 10px;
		--hero-pad-x: 16px;
		--header-pad-top: 16px;
		--header-row: 44px;
	}
}

/* ---------- База ---------- */
*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	*, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}

body {
	margin: 0;
	background: var(--bg);
	color: var(--ink);
	font: 400 16px/1.5 var(--font-sans); /* в досках текст без явного веса рисуется 400 */
	-webkit-font-smoothing: antialiased;
	text-rendering: optimizeLegibility;
}
body.is-menu-open { overflow: hidden; }

img, svg { max-width: 100%; }
img { height: auto; display: block; }
a { color: inherit; text-decoration: none; }
a:hover { opacity: .85; }
button { font: inherit; color: inherit; cursor: pointer; }
h1, h2, h3, h4, p, ul, ol, figure { margin: 0; }
:where(ul[class], ol[class]) { list-style: none; padding: 0; }

:focus-visible { outline: 3px solid var(--teal-ink); outline-offset: 2px; border-radius: 6px; }
.site-bottom :focus-visible, .card--dark :focus-visible, .dark-panel :focus-visible { outline-color: var(--mint); }

.skip-link {
	position: absolute; left: 16px; top: -100px; z-index: 200;
	padding: 12px 18px; border-radius: var(--radius-input);
	background: var(--dark); color: var(--on-dark); font-weight: 800;
}
.skip-link:focus { top: 16px; }

.visually-hidden {
	position: absolute !important; width: 1px; height: 1px; overflow: hidden;
	clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap;
}

.site { overflow: hidden; } /* как в макетах: декоративные слои не дают горизонтальный скролл */

.container {
	width: 100%;
	max-width: var(--container);
	margin: 0 auto;
	padding: 0 var(--space-6);
}
@media (max-width: 767px) {
	.container { padding: 0 var(--space-4); }
}

.section { margin-top: var(--section-gap); }

/* ---------- Типографика ---------- */
.h1 {
	font: 700 50px/1.12 var(--font-display);
	letter-spacing: -1px;
}
.h2 {
	font: 700 40px/1.15 var(--font-display);
	letter-spacing: -.5px;
}
.accent { color: var(--teal-deep); }
.site-bottom .accent, .card--dark .accent, .dark-panel .accent { color: var(--mint); }
.lead {
	margin-top: 24px;
	max-width: 540px;
	font-size: 19px;
	line-height: 1.55;
	color: var(--muted);
}
.label {
	font-size: 13px;
	line-height: 18px;
	font-weight: 800;
	letter-spacing: .4px;
	text-transform: uppercase;
	color: var(--teal-ink);
}
.label--mint { color: var(--mint); margin-bottom: 12px; }
.city-script {
	font: 700 15px/1 var(--font-arabic);
	direction: rtl;
	unicode-bidi: isolate;
}

@media (max-width: 767px) {
	.h1 { font-size: 29px; line-height: 1.15; letter-spacing: -.8px; }
	.h2 { font-size: 26px; line-height: 1.2; }
	.lead { margin-top: 14px; font-size: 16px; }
}

/* ---------- Узор «арабеска» (плитка 64px: квадрат 36, повёрнутый квадрат, круг r=5) ---------- */
.pattern {
	position: absolute;
	inset: 0;
	pointer-events: none;
	background-repeat: repeat;
	background-size: 64px 64px;
}
.pattern--teal {
	opacity: .16;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='64' height='64'%3E%3Cg fill='none' stroke='%2312B5A6' stroke-width='1.5'%3E%3Crect x='14' y='14' width='36' height='36'/%3E%3Crect x='14' y='14' width='36' height='36' transform='rotate(45 32 32)'/%3E%3Ccircle cx='32' cy='32' r='5'/%3E%3C/g%3E%3C/svg%3E");
}
.pattern--mint {
	opacity: .08;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='64' height='64'%3E%3Cg fill='none' stroke='%231ED6C5' stroke-width='1.5'%3E%3Crect x='14' y='14' width='36' height='36'/%3E%3Crect x='14' y='14' width='36' height='36' transform='rotate(45 32 32)'/%3E%3Ccircle cx='32' cy='32' r='5'/%3E%3C/g%3E%3C/svg%3E");
}
.card--dark .pattern--mint { opacity: .14; }
.pattern--on-mint {
	opacity: .1;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='64' height='64'%3E%3Cg fill='none' stroke='%2304141A' stroke-width='1.5'%3E%3Crect x='14' y='14' width='36' height='36'/%3E%3Crect x='14' y='14' width='36' height='36' transform='rotate(45 32 32)'/%3E%3Ccircle cx='32' cy='32' r='5'/%3E%3C/g%3E%3C/svg%3E");
}

/* ---------- Логотип ---------- */
.logo {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	font: 700 22px/1 var(--font-display);
	letter-spacing: -.5px;
	color: var(--ink);
	min-height: 46px; /* tap-зона не меньше 44px при знаке высотой 39px */
}
.logo__mark { width: 46px; height: 39px; flex: none; }
.logo--on-dark { color: var(--on-dark); }
@media (max-width: 767px) {
	.logo { gap: 8px; font-size: 19px; min-height: 44px; }
	.logo__mark { width: 40px; height: 34px; }
}

/* ---------- Шапка ---------- */
.site-header {
	position: relative;
	z-index: 30;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	min-height: calc(var(--hero-gap) + var(--header-pad-top) + var(--header-row));
	padding: calc(var(--hero-gap) + var(--header-pad-top)) calc(var(--hero-gap) + var(--hero-pad-x)) 0;
}

.main-nav__list { display: flex; align-items: center; gap: 2px; }
.main-nav__item { position: relative; }
.main-nav__link {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	min-height: 44px;
	padding: 10px 14px;
	border: 0;
	border-radius: 12px;
	background: none;
	font-size: 15px;
	font-weight: 600;
	line-height: 1.3;
	white-space: nowrap;
}
.main-nav__link.is-current,
.main-nav__link[aria-expanded="true"] {
	background: rgba(255, 255, 255, .85);
	font-weight: 700;
}

.site-header__actions,
.site-header__compact { display: flex; align-items: center; gap: 10px; flex: none; }
.site-header__compact { display: none; gap: 8px; }

.hbtn {
	display: inline-flex;
	align-items: center;
	min-height: 46px;
	padding: 0 20px;
	border-radius: var(--radius-input);
	font-size: 15px;
	font-weight: 700;
	white-space: nowrap;
}
.hbtn--light { background: var(--surface); border: 1px solid var(--border-strong); }
.hbtn--mint { padding: 0 22px; background: var(--mint); color: var(--on-mint); font-weight: 800; }
.hbtn--sm { min-height: 44px; padding: 0 16px; font-size: 14px; }

.icon-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 44px;
	border: 1px solid var(--border-strong);
	border-radius: var(--radius-input);
	background: var(--surface);
	color: var(--ink);
}

/* Выпадающий список «ХайРиск страны» */
.dropdown {
	position: absolute;
	top: calc(100% + 10px);
	left: 0;
	z-index: 40;
	width: 380px;
	padding: 14px;
	border-radius: 24px;
	background: var(--surface);
	border: 1px solid var(--border);
	box-shadow: var(--shadow-float);
}
.dropdown[hidden] { display: none; }
.dropdown__label {
	padding: 6px 8px 4px;
	font-size: 12.5px;
	font-weight: 800;
	letter-spacing: .4px;
	text-transform: uppercase;
	color: var(--teal-ink);
}
.country-list { display: flex; flex-direction: column; gap: 8px; }
.dropdown .country-list { margin-top: 8px; }
.country-list__link {
	display: block;
	padding: 13px 16px;
	border-radius: var(--radius-input);
	background: var(--bg);
	border: 1px solid var(--border);
	font-size: 16px;
	font-weight: 700;
	line-height: 1.3;
}
.country-list__link:hover { opacity: 1; background: var(--mint-light); border-color: var(--teal); }
.country-list__link[aria-current="page"] { background: var(--mint-light); border-color: var(--teal); color: var(--teal-ink); }

/* Компактная шапка: меню уезжает в бургер */
@media (max-width: 1279px) {
	.main-nav, .site-header__actions { display: none; }
	.site-header__compact { display: flex; }
}

/* ---------- Мобильное меню ---------- */
.mobile-menu {
	position: fixed;
	inset: 0;
	z-index: 100;
	overflow-y: auto;
	overscroll-behavior: contain;
	background: var(--surface);
}
.mobile-menu[hidden] { display: none; }
.mobile-menu__head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	padding: 16px 16px 0;
}
.mobile-nav { padding: 20px 16px 0; }
.mobile-nav__link {
	display: flex;
	align-items: center;
	justify-content: space-between;
	width: 100%;
	min-height: 56px;
	padding: 0 4px;
	border: 0;
	border-bottom: 1px solid var(--divider);
	background: none;
	text-align: left;
	font-size: 18px;
	font-weight: 700;
	color: var(--ink);
}
.mobile-nav__link.is-current { color: var(--teal-ink); }
.mobile-nav__toggle { font-weight: 800; color: var(--teal-ink); }
.mobile-nav__toggle .icon { transition: transform .2s; }
.mobile-nav__toggle[aria-expanded="true"] .icon { transform: rotate(180deg); }
.mobile-nav__countries { padding: 12px 0 16px; }
.mobile-nav__countries[hidden] { display: none; }
.mobile-menu__actions { display: flex; flex-direction: column; gap: 10px; padding: 24px 16px 0; }
.mobile-menu__actions .btn { min-height: 54px; font-size: 16px; box-shadow: none; }
.mobile-menu__actions .btn--secondary { font-weight: 800; }
.mobile-menu__note {
	padding: 24px 16px 40px;
	font-size: 13.5px;
	line-height: 1.6;
	color: var(--muted-soft);
}
.mobile-menu__note a { display: inline-flex; align-items: center; min-height: 44px; }
@media (min-width: 1280px) {
	.mobile-menu { display: none !important; }
}

/* ---------- Hero ---------- */
.hero {
	position: relative;
	z-index: 1;
	overflow: hidden;
	margin: calc(-1 * (var(--header-pad-top) + var(--header-row))) var(--hero-gap) 0;
	padding: calc(var(--header-pad-top) + var(--header-row)) 0 72px;
	border-radius: var(--radius-hero);
	background:
		radial-gradient(circle at 8% 6%, #CFF6EC 0, rgba(207, 246, 236, 0) 40%),
		radial-gradient(circle at 92% 14%, #BFEFE4 0, rgba(191, 239, 228, 0) 42%),
		radial-gradient(circle at 50% 100%, #E3F3C9 0, rgba(227, 243, 201, 0) 40%),
		var(--hero-tint);
}
.hero__inner { position: relative; padding: 36px var(--hero-pad-x) 0; }
.hero__inner > .h1:first-child { padding-top: 20px; }
.hero__text { max-width: 640px; }
.hero__text .h1 { margin-top: 28px; }
.crumbs + .hero__text .h1, .crumbs + .h1 { margin-top: 28px; }
.hero--center .hero__inner { text-align: center; }
.hero--center .lead { margin-left: auto; margin-right: auto; }

@media (max-width: 767px) {
	.hero {
		padding-bottom: 28px;
		background:
			radial-gradient(circle at 8% 4%, #CFF6EC 0, rgba(207, 246, 236, 0) 45%),
			radial-gradient(circle at 96% 20%, #BFEFE4 0, rgba(191, 239, 228, 0) 45%),
			var(--hero-tint);
	}
	.hero__inner { padding-top: 20px; }
	.hero__text .h1, .crumbs + .hero__text .h1, .crumbs + .h1 { margin-top: 16px; }
}

/* Хлебные крошки */
.crumbs ol { display: flex; flex-wrap: wrap; align-items: center; gap: 0; list-style: none; margin: 0; padding: 0; }
.crumbs li { font-size: 14px; font-weight: 600; color: var(--muted-soft); }
.crumbs li + li::before { content: "›"; padding: 0 .55em; }
.crumbs [aria-current] { color: var(--ink); }
.crumbs a:hover { color: var(--teal-ink); opacity: 1; }
@media (max-width: 767px) {
	.crumbs li { font-size: 13px; }
}

/* ---------- Кнопки ---------- */
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	min-height: 56px;
	padding: 0 28px;
	border: 0;
	border-radius: var(--radius-button);
	font-size: 16px;
	font-weight: 800;
	line-height: 1.25;
	text-align: center;
}
.btn--primary { padding: 0 30px; background: var(--mint); color: var(--on-mint); box-shadow: var(--shadow-mint); }
.btn--secondary { background: var(--surface); border: 1px solid var(--border-strong); color: var(--ink); font-weight: 700; }
.btn--secondary .icon { color: var(--teal-ink); }
.btn--dark { background: var(--dark); color: var(--on-dark); }
.btn--block { display: flex; width: 100%; }
@media (max-width: 767px) {
	.btn-row { flex-direction: column; gap: 10px; margin-top: 22px; }
	.btn-row .btn { width: 100%; min-height: 54px; }
}

/* ---------- Чипы и метки ---------- */
.chip-row { display: flex; flex-wrap: wrap; gap: var(--space-2); align-items: center; }
.chip {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	min-height: 44px;
	padding: 0 20px;
	border-radius: var(--radius-pill);
	background: var(--surface);
	border: 1px solid var(--border-strong);
	font-size: 15px;
	font-weight: 700;
}
.chip.is-active { background: var(--mint); border-color: var(--mint); color: var(--on-mint); font-weight: 800; }
.chip--city { min-height: 32px; padding: 0 12px; border: 0; background: var(--mint-light); color: var(--teal-ink); font-size: 13px; }
.chip--check { border: 0; background: var(--mint-light); }
.chip__check {
	display: inline-flex; align-items: center; justify-content: center;
	width: 22px; height: 22px; border-radius: 50%;
	background: var(--mint); color: var(--on-mint);
}
.tag {
	display: inline-block;
	padding: 8px 14px;
	border-radius: var(--radius-pill);
	background: var(--surface);
	border: 1px solid var(--border);
	font-size: 13.5px;
	font-weight: 600;
	color: var(--muted);
}

/* ---------- Карточки ---------- */
.card-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
	gap: var(--space-5);
}
.card {
	position: relative;
	overflow: hidden;
	padding: var(--space-8) var(--space-6);
	border-radius: var(--radius-card);
}
.card > *:not(.pattern) { position: relative; }
.card__title { margin-bottom: 8px; font-size: 18px; line-height: 1.3; font-weight: 700; }
.card__text { font-size: 15px; line-height: 1.55; color: var(--muted); }
.card__display { font: 700 20px/1.25 var(--font-display); }
.card__display + .btn { margin-top: 20px; }
.card--white { background: var(--surface); border: 1px solid var(--border); box-shadow: var(--shadow-card); }
.card--accent { background: var(--mint-light); border: 2px solid var(--teal); }
.card--dark { background: var(--dark); color: var(--on-dark); }
.card--dark .card__text { color: var(--on-dark-muted); }
.card--mint { background: var(--mint); color: var(--on-mint); }
@media (max-width: 767px) {
	.card-grid { grid-template-columns: 1fr; gap: var(--space-3); }
}

/* ---------- FAQ ---------- */
.faq-section { display: flex; flex-wrap: wrap; gap: 56px; align-items: flex-start; }
.faq-section__intro { flex: 0 1 420px; min-width: 0; }
.faq-section__lead { margin-top: 20px; font-size: 18px; line-height: 1.6; color: var(--muted); }
.faq-section__lead strong { color: var(--ink); }
.faq-section .btn-row { margin-top: 28px; }
.faq-section .btn-row .btn { min-height: 52px; padding: 0 24px; box-shadow: none; }
.faq-section .btn-row .btn--secondary { font-weight: 700; }
.faq { flex: 1 1 520px; min-width: 0; display: flex; flex-direction: column; gap: 12px; }
.faq__item {
	padding: 22px 26px;
	border-radius: var(--radius-faq);
	background: var(--surface);
	border: 1px solid var(--border);
	box-shadow: var(--shadow-soft);
}
.faq__q {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	min-height: 36px;
	font-size: 17px;
	line-height: 1.4;
	font-weight: 700;
	cursor: pointer;
	list-style: none;
}
.faq__q::-webkit-details-marker { display: none; }
.faq__icon {
	display: flex;
	align-items: center;
	justify-content: center;
	flex: none;
	width: 36px;
	height: 36px;
	border-radius: 50%;
	background: var(--mint-light);
	color: var(--teal-ink);
}
.faq__icon .icon-minus { display: none; }
.faq__item[open] .faq__icon { background: var(--mint); color: var(--on-mint); }
.faq__item[open] .faq__icon .icon-plus { display: none; }
.faq__item[open] .faq__icon .icon-minus { display: block; }
.faq__a {
	margin-top: 14px;
	font-size: 16px;
	line-height: 1.6;
	color: var(--muted-soft);
	white-space: pre-line;
}
@media (max-width: 767px) {
	.faq-section { gap: 28px; }
	.faq-section__intro, .faq { flex-basis: 100%; }
	.faq-section__lead { margin-top: 14px; font-size: 16px; }
	.faq__item { padding: 18px 18px 18px 20px; border-radius: 20px; }
	.faq__q { font-size: 16px; }
	.faq__a { font-size: 15px; }
}

/* ---------- Тёмный блок: форма заявки и подвал ---------- */
.site-bottom {
	position: relative;
	overflow: hidden;
	margin-top: 130px;
	border-radius: var(--radius-footer) var(--radius-footer) 0 0;
	background:
		radial-gradient(60% 40% at 90% 0%, rgba(30, 214, 197, .32) 0, rgba(30, 214, 197, 0) 70%),
		radial-gradient(40% 30% at 0% 40%, rgba(18, 181, 166, .2) 0, rgba(18, 181, 166, 0) 70%),
		var(--dark);
	color: var(--on-dark);
}
.site-bottom__inner { position: relative; padding-top: 96px; }

.request {
	display: grid;
	grid-template-columns: minmax(0, 528fr) minmax(0, 568fr);
	grid-template-areas: "head form" "contacts form";
	grid-template-rows: auto 1fr;
	column-gap: 56px;
	align-items: start;
	scroll-margin-top: 24px;
}
.request__intro { grid-area: head; }
.request__form { grid-area: form; }
.request .contacts { grid-area: contacts; margin-top: 36px; }
.request__lead { margin-top: 20px; max-width: 460px; font-size: 18px; line-height: 1.6; color: rgba(255, 255, 255, .85); }

.contacts { display: flex; flex-direction: column; gap: 20px; }
.contacts__row { display: inline-flex; align-items: center; gap: 14px; min-height: 46px; }
a.contacts__row:hover .contacts__value { color: var(--mint); }
a.contacts__row:hover { opacity: 1; }
.contacts__icon {
	display: flex; align-items: center; justify-content: center; flex: none;
	width: 46px; height: 46px; border-radius: var(--radius-input);
	background: rgba(30, 214, 197, .16); color: var(--mint);
}
.contacts__label { display: block; font-size: 13px; color: rgba(255, 255, 255, .75); }
.contacts__value { display: block; font-size: 17px; font-weight: 700; }

/* Форма заявки */
.lead-form__form,
.lead-form__sent {
	display: flex;
	flex-direction: column;
	gap: 18px;
	padding: 36px;
	border-radius: 32px;
	background: rgba(255, 255, 255, .07);
	border: 1px solid rgba(30, 214, 197, .28);
	color: var(--on-dark);
}
.lead-form__sent { display: none; min-height: 480px; align-items: center; justify-content: center; text-align: center; gap: 16px; }
.lead-form[data-state="sent"] .lead-form__form { display: none; }
.lead-form[data-state="sent"] .lead-form__sent { display: flex; }
.lead-form__sent-icon {
	display: flex; align-items: center; justify-content: center;
	width: 84px; height: 84px; border-radius: 50%;
	background: var(--mint); color: var(--on-mint);
}
.lead-form__sent-title { font: 700 24px/1.3 var(--font-display); }
.lead-form__sent-text { max-width: 320px; font-size: 16px; line-height: 1.55; color: rgba(255, 255, 255, .85); }

.lead-form__hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

.field { display: flex; flex-direction: column; gap: 8px; }
.field__label { font-size: 14px; font-weight: 700; color: rgba(255, 255, 255, .85); }
.field__input {
	height: 56px;
	padding: 0 18px;
	border-radius: var(--radius-input);
	border: 1px solid var(--field-border-on-dark);
	background: var(--field-on-dark);
	font: 500 16px var(--font-sans);
	color: var(--on-dark);
}
.field__input:focus-visible { outline: 3px solid var(--mint); outline-offset: 1px; border-color: var(--mint); }
.field__error { font-size: 13px; font-weight: 600; color: var(--error-text); }
.field__error:empty { display: none; }
.field.is-invalid .field__input { border-color: var(--error); background: rgba(255, 138, 128, .1); }

.channels { margin: 0; padding: 0; border: 0; min-width: 0; }
.channels .field__label { display: block; padding: 0; margin-bottom: 8px; }
.channels__list { display: flex; flex-wrap: wrap; gap: 8px; }
.channel { position: relative; }
/* Невидимая радиокнопка на всю плашку: Safari у нативной радиокнопки игнорирует inset, нужны размеры и appearance */
.channel input { position: absolute; opacity: 0; inset: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; -webkit-appearance: none; appearance: none; }
.channel span {
	display: inline-flex;
	align-items: center;
	min-height: 44px;
	padding: 0 20px;
	border-radius: var(--radius-pill);
	border: 1px solid rgba(255, 255, 255, .35);
	font-size: 15px;
	font-weight: 700;
	cursor: pointer;
}
.channel input:checked + span { background: var(--surface); border-color: var(--surface); color: var(--dark); font-weight: 800; }
.channel input:focus-visible + span { outline: 3px solid var(--mint); outline-offset: 2px; }

.lead-form__submit {
	min-height: 58px;
	margin-top: 6px;
	border: 0;
	border-radius: var(--radius-button);
	background: var(--mint);
	color: var(--on-mint);
	font-size: 17px;
	font-weight: 800;
}
.lead-form__submit:hover { filter: brightness(1.05); }
.lead-form__submit[disabled] { opacity: .7; cursor: progress; }
.lead-form__summary { font-size: 13px; line-height: 1.5; font-weight: 600; color: var(--error-text); }
.lead-form__summary:empty { display: none; }
.lead-form__consent { font-size: 12.5px; line-height: 1.5; color: rgba(255, 255, 255, .75); }
.lead-form__consent a { text-decoration: underline; text-underline-offset: 2px; }

/* Подвал */
.site-footer {
	display: flex;
	flex-wrap: wrap;
	gap: 40px;
	margin-top: 96px;
	padding: 56px 0 36px;
	border-top: 1px solid rgba(255, 255, 255, .16);
}
.site-footer__brand { flex: 1 1 280px; min-width: 0; }
.site-footer__address { margin-top: 20px; font-size: 14.5px; line-height: 1.65; color: var(--on-dark-muted); }
.site-footer__tg {
	display: flex; align-items: center; justify-content: center;
	width: 46px; height: 46px; margin-top: 20px; border-radius: 50%;
	background: rgba(30, 214, 197, .16); color: var(--mint);
}
.site-footer__col { flex: 1 1 180px; min-width: 0; }
.site-footer__title { font-size: 16px; font-weight: 800; line-height: 1.3; }
.site-footer__links { display: flex; flex-direction: column; gap: 12px; margin-top: 18px; }
.site-footer__links li { line-height: 1.4; }
.site-footer__links a { font-size: 14.5px; line-height: 1.4; color: var(--on-dark-muted); }
.site-footer__links a:hover { color: var(--mint); opacity: 1; }
.site-footer__copy { flex-basis: 100%; margin-top: 16px; font-size: 13px; color: rgba(255, 255, 255, .7); }

@media (max-width: 1023px) {
	.request { grid-template-columns: 1fr; grid-template-areas: "head" "form" "contacts"; }
	.request__form { margin-top: 32px; }
}

@media (max-width: 767px) {
	.site-bottom {
		margin-top: 64px;
		background:
			radial-gradient(70% 30% at 90% 0%, rgba(30, 214, 197, .32) 0, rgba(30, 214, 197, 0) 70%),
			var(--dark);
	}
	.site-bottom__inner { padding-top: 48px; }
	.request__lead { margin-top: 14px; font-size: 16px; }
	.request__form { margin-top: 24px; }
	.request .contacts { margin-top: 28px; gap: 14px; }
	.contacts__row { gap: 12px; min-height: 44px; }
	.contacts__item--desktop { display: none; }
	.contacts__icon { width: 44px; height: 44px; }
	.contacts__label { font-size: 12.5px; }
	.contacts__value { font-size: 16px; }

	.lead-form__form, .lead-form__sent { gap: 14px; padding: 20px; border-radius: 24px; }
	.lead-form__sent { min-height: 420px; }
	.field { gap: 6px; }
	.field__input { height: 52px; padding: 0 16px; }
	.channel span { padding: 0 18px; }
	.lead-form__submit { min-height: 56px; margin-top: 4px; }

	.site-footer { flex-direction: column; gap: 28px; margin-top: 44px; padding: 36px 0 28px; }
	.site-footer__brand, .site-footer__col { flex: none; }
	.site-footer__address { margin-top: 14px; font-size: 14px; }
	.site-footer__tg { display: none; }
	.site-footer__title { font-size: 15px; }
	.site-footer__links { gap: 0; margin-top: 6px; }
	.site-footer__links a { display: flex; align-items: center; min-height: 44px; }
	.site-footer__copy { margin-top: 0; }
}

/* ---------- Служебная страница компонентов ---------- */
.sg-gap { margin-top: 32px; }
.dark-panel {
	position: relative;
	overflow: hidden;
	padding: 64px 48px;
	border-radius: var(--radius-footer);
	background: radial-gradient(60% 40% at 90% 0%, rgba(30, 214, 197, .32) 0, rgba(30, 214, 197, 0) 70%), var(--dark);
	color: var(--on-dark);
}
.dark-panel > *:not(.pattern) { position: relative; }
.dark-panel__title { margin-bottom: 36px; font-size: 32px; }
.form-states { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; align-items: start; }
.form-states .lead-form__form, .form-states .lead-form__sent { padding: 32px; gap: 16px; min-height: 560px; }
@media (max-width: 1023px) {
	.form-states { grid-template-columns: 1fr; }
}
@media (max-width: 767px) {
	.dark-panel { padding: 32px 16px; }
	.dark-panel__title { font-size: 24px; }
	.form-states .lead-form__form, .form-states .lead-form__sent { padding: 20px; min-height: 0; }
}
