/* ===== Токены ===== */
:root {
	--red: #F0142F;
	--red-dark: #C80F26;
	--powder: #C5D6EB;
	--cobalt: #1E3CFF;
	--ink: #0B0B0E;
	--ink-2: #4A5262;
	--ground: #F2F4F7;
	--white: #FFFFFF;
	--line: #DDE3EC;
	--font-display: "Onest", system-ui, sans-serif;
	--font-text: "Manrope", system-ui, sans-serif;
	--radius-s: 14px;
	--radius-m: 24px;
	--radius-l: 28px;
	--shadow-float: 0 24px 56px rgba(16, 32, 64, 0.14), 0 2px 6px rgba(16, 32, 64, 0.06);
	--container: 1800px;
	--gutter: 48px;
	--header-h: 88px;
	--section-gap: 200px;
	--topbar-h: 48px;
	--top-h: calc(var(--header-h) + var(--topbar-h)); /* реальная высота закреплённой шапки, уточняется скриптом */
	--ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}

/* ===== База ===== */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--top-h) + 24px); }
body {
	margin: 0;
	background: var(--ground);
	color: var(--ink);
	font-family: var(--font-text);
	font-size: 18px;
	font-weight: 500;
	line-height: 1.32;
	-webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; }
:focus-visible { outline: 3px solid var(--cobalt); outline-offset: 3px; }

.container { max-width: var(--container); margin: 0 auto; padding: 0 var(--gutter); }

.skip-link {
	position: absolute; left: 16px; top: -100px; z-index: 1000;
	background: var(--ink); color: var(--white); padding: 12px 20px; border-radius: 999px; text-decoration: none;
}
.skip-link:focus { top: 16px; }

/* ===== Общие элементы ===== */
.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;
}
.eyebrow { margin: 0; font-family: var(--font-display); font-size: 14px; font-weight: 400; letter-spacing: 0.04em; text-transform: uppercase; }
.btn--l { min-height: 48px; padding: 0 34px; font-size: 17px; }
/* Маленькая красная кнопка со стрелкой: «Все новости →», «Смотреть цены →», «Читать →» */
.link-arrow {
	display: inline-flex; align-items: center; gap: 8px; min-height: 48px; padding: 0 16px; border: 0; border-radius: 999px;
	background: var(--red); color: var(--white); font: 700 14px/1 var(--font-text); text-decoration: none; white-space: nowrap; cursor: pointer;
	transition: background-color 0.3s var(--ease);
}
.link-arrow::after { content: "→"; transition: transform 0.3s var(--ease); }
.link-arrow:hover { background: var(--red-dark); color: var(--white); }
.link-arrow:hover::after { transform: translateX(4px); }
.link-arrow:focus-visible { outline: 3px solid var(--cobalt); outline-offset: 2px; }

/* ===== Стекло (в духе Liquid Glass): для того, что лежит поверх контента ===== */
.glass {
	--glass-tint: rgba(255, 255, 255, 0.42);
	background: var(--glass-tint);
	-webkit-backdrop-filter: blur(18px) saturate(180%);
	backdrop-filter: blur(18px) saturate(180%);
	box-shadow:
		inset 0 1px 0 rgba(255, 255, 255, 0.85),
		inset 0 -1px 0 rgba(255, 255, 255, 0.25),
		inset 0 0 0 1px rgba(255, 255, 255, 0.35),
		0 8px 32px rgba(16, 32, 64, 0.10);
}
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
	.glass { --glass-tint: rgba(255, 255, 255, 0.88); }
}

/* ===== Кнопки ===== */
.btn {
	display: inline-flex; align-items: center; justify-content: center; gap: 10px;
	min-height: 48px; padding: 0 26px; border: 0; border-radius: 999px;
	font: 700 16px/1 var(--font-text); text-decoration: none; cursor: pointer; white-space: nowrap;
	transition: background-color 0.2s var(--ease), transform 0.2s var(--ease);
}
.btn:active { transform: scale(0.98); }
.btn--red { background: var(--red); color: var(--white); }
.btn--red:hover { background: var(--red-dark); color: var(--white); }

/* ===== Логотип ===== */
.logo {
	font-family: var(--font-display); font-weight: 800; font-size: 26px; letter-spacing: -0.03em;
	text-decoration: none; color: var(--ink); white-space: nowrap; flex: 0 0 auto;
}
.logo__num { color: var(--red); }
.logo__img { display: block; width: auto; height: 48px; }
@media (max-width: 700px) { .logo__img { height: 36px; } }
.logo--small { font-size: 22px; }
.badge-years { display: block; flex: 0 0 auto; width: auto; height: 40px; margin-left: -8px; }
@media (max-width: 1520px) { .badge-years { display: none; } }

/* ===== Верхняя строка: адрес и рейтинги ===== */
.topbar { background: var(--ground); }
.topbar__mobile { display: none; }
.topbar__inner {
	max-width: var(--container); margin: 0 auto; padding: 6px var(--gutter) 0;
	display: flex; align-items: center; justify-content: space-between; gap: 24px;
}
.topbar__info { margin: 0; font-size: 14px; font-weight: 600; color: var(--ink-2); }
.ratings { display: flex; align-items: center; gap: 8px; }
.ratings__frame { display: block; width: 150px; height: 50px; border: 0; border-radius: 12px; overflow: hidden; background: var(--white); box-shadow: 0 0 0 1.5px #D3DCE8; }
.ratings__frame--gis { display: none; }
.ratings__frame--gis.is-loaded { display: block; }
@media (max-width: 1023px) {
	.topbar__info,
	.topbar__inner > .topbar__right { display: none; }
	.topbar__inner { justify-content: stretch; }
	.topbar__mobile {
		display: flex;
		width: 100%;
		align-items: center;
		justify-content: space-between;
		gap: 16px;
	}
	.topbar__callback {
		display: inline-flex;
		flex: 0 0 clamp(132px, 20vw, 176px);
		min-height: 56px;
		align-items: center;
		justify-content: center;
		padding: 8px 14px;
		border: 1px solid var(--line);
		border-radius: 14px;
		background: var(--red);
		color: var(--white);
		font: 700 clamp(15px, 2vw, 19px)/1.2 var(--font-display);
		text-align: center;
		cursor: pointer;
		transition: background-color 0.2s var(--ease), border-color 0.2s var(--ease);
	}
	.topbar__callback:hover { background: var(--red-dark); border-color: var(--red-dark); }
	.topbar__callback:focus-visible { outline: 3px solid var(--cobalt); outline-offset: 3px; }
	.topbar__mobile-phone {
		display: flex;
		min-width: 0;
		flex-direction: column;
		align-items: flex-end;
		color: var(--ink);
		text-align: right;
		text-decoration: none;
		white-space: nowrap;
	}
	.topbar__mobile-number {
		font-family: var(--font-display);
		font-size: clamp(18px, 3.2vw, 32px);
		font-weight: 600;
		line-height: 1.15;
	}
	.topbar__mobile-note {
		color: #15803D;
		font-family: var(--font-display);
		font-size: clamp(13px, 2.1vw, 21px);
		font-weight: 600;
		line-height: 1.2;
	}
	.topbar__mobile-phone:focus-visible { outline: 3px solid var(--cobalt); outline-offset: 3px; border-radius: 4px; }
}

.topbar__social { list-style: none; margin: 0; padding: 0; display: flex; gap: 8px; }
.topbar__social a { display: flex; width: 32px; height: 32px; align-items: center; justify-content: center; border-radius: 50%; }
.topbar__social svg, .topbar__social img { width: 24px; height: 24px; display: block; }
.topbar__social img { border-radius: 6px; }
.topbar__inner { padding-top: 8px; padding-bottom: 2px; }

/* ===== Шапка ===== */
.site-header {
	position: relative; z-index: 2;
	background: var(--ground);
	transition: background-color 0.25s var(--ease), box-shadow 0.25s var(--ease);
}
/* без backdrop-filter: размытие под липкой шапкой перерисовывалось на каждом кадре прокрутки */
.site-header.is-scrolled {
	background: var(--ground);
	box-shadow: inset 0 -1px 0 rgba(255, 255, 255, 0.7), 0 1px 0 rgba(16, 32, 64, 0.06), 0 12px 32px rgba(16, 32, 64, 0.06);
}
.site-header__inner {
	position: relative;
	max-width: var(--container); margin: 0 auto; padding: 0 var(--gutter);
	height: var(--header-h);
	display: flex; align-items: center; gap: 32px;
}
.main-nav { flex: 1 1 auto; min-width: 0; height: 100%; }
.site-header__actions { display: flex; align-items: center; gap: 24px; flex: 0 0 auto; height: 100%; }

/* ===== Меню: первый уровень ===== */
.menu, .menu .sub-menu { list-style: none; margin: 0; padding: 0; }
.menu { display: flex; align-items: center; height: 100%; gap: 2px; }
.menu > li { position: relative; display: flex; align-items: center; height: 100%; }
.menu > li > a,
.menu > li > .menu-heading {
	display: inline-flex; align-items: center; height: 44px; padding: 0 14px;
	border-radius: 999px; font-size: 16px; font-weight: 600; text-decoration: none; white-space: nowrap; cursor: pointer;
	transition: background-color 0.2s var(--ease), color 0.2s var(--ease);
}
.menu > li.menu-item-has-children > a,
.menu > li.menu-item-has-children > .menu-heading { padding-right: 36px; }
.menu > li:hover > a,
.menu > li:hover > .menu-heading,
.menu > li.is-open > a,
.menu > li.is-open > .menu-heading { background: var(--white); }
.site-header.is-scrolled .menu > li:hover > a,
.site-header.is-scrolled .menu > li:hover > .menu-heading,
.site-header.is-scrolled .menu > li.is-open > a,
.site-header.is-scrolled .menu > li.is-open > .menu-heading { background: var(--ground); }
.menu > li.current-menu-item > a,
.menu > li.current-menu-ancestor > a,
.menu > li.current-menu-ancestor > .menu-heading { color: var(--red); }
/* На главной не подсвечиваем разделы только из-за дочерних ссылок на эту же главную */
.home .main-nav .menu > li.current-menu-ancestor > a,
.home .main-nav .menu > li.current-menu-parent > a,
.home .main-nav .menu > li.current-menu-ancestor > .menu-heading { color: var(--ink); }
/* На /akcii/ оставляем красным только «Цены», «Услуги» не подсвечиваем */
.page-id-57 .main-nav .menu > li.menu-item-6.current-menu-ancestor > a,
.page-id-57 .main-nav .menu > li.menu-item-6.current-menu-ancestor > .menu-heading { color: var(--ink); }

.sub-toggle {
	display: inline-flex; align-items: center; justify-content: center;
	width: 28px; height: 28px; padding: 0; border: 0; border-radius: 50%;
	background: none; color: inherit; cursor: pointer;
}
.sub-toggle svg { transition: transform 0.2s var(--ease); }
.menu > li > .sub-toggle { position: relative; margin-left: -34px; margin-right: 6px; }
.menu > li:hover > .sub-toggle svg,
.menu > li.is-open > .sub-toggle svg { transform: rotate(180deg); }

/* значок «Скидки» */
.menu .sub-menu li.has-badge > a::after {
	content: "Скидки"; margin-left: 10px; padding: 3px 8px 2px; border-radius: 999px; background: var(--red); color: var(--white);
	font-size: 10px; font-weight: 700; line-height: 1.2; letter-spacing: 0.04em; text-transform: uppercase;
}

/* ===== Выпадающие панели ===== */
.menu .sub-menu {
	position: absolute; top: calc(100% - 12px); left: 0; z-index: 10;
	min-width: 280px; padding: 10px;
	background: var(--white); border-radius: var(--radius-m); box-shadow: var(--shadow-float);
	opacity: 0; visibility: hidden; pointer-events: none; transform: translateY(8px);
	transition: opacity 0.18s var(--ease), transform 0.18s var(--ease), visibility 0s linear 0.18s;
}
/* «Мостик», чтобы курсор не терял панель на зазоре */
.menu .sub-menu::before { content: ""; position: absolute; left: 0; right: 0; top: -16px; height: 16px; }

.menu li:hover > .sub-menu,
.menu li:focus-within > .sub-menu,
.menu li.is-open > .sub-menu {
	opacity: 1; visibility: visible; pointer-events: auto; transform: none;
	transition: opacity 0.18s var(--ease), transform 0.18s var(--ease), visibility 0s;
}
.menu li.is-closed > .sub-menu { opacity: 0; visibility: hidden; pointer-events: none; transform: translateY(8px); }

/* второй уровень */
.menu .sub-menu li { position: relative; display: flex; align-items: center; }
.menu .sub-menu a,
.menu .sub-menu .menu-heading {
	flex: 1 1 auto; display: flex; align-items: center; min-height: 44px; padding: 8px 16px;
	border-radius: var(--radius-s); font-size: 16px; font-weight: 600; text-decoration: none; cursor: pointer;
	transition: background-color 0.15s var(--ease), color 0.15s var(--ease);
}
.menu .sub-menu li.menu-item-has-children > a,
.menu .sub-menu li.menu-item-has-children > .menu-heading { padding-right: 44px; }
.menu .sub-menu li:hover > a,
.menu .sub-menu li:hover > .menu-heading,
.menu .sub-menu li.is-open > a,
.menu .sub-menu li.is-open > .menu-heading { background: var(--ground); }
.menu .sub-menu .current-menu-item > a { color: var(--red); }
.menu .sub-menu .sub-toggle { position: absolute; right: 10px; top: 50%; margin-top: -14px; }
.menu .sub-menu .sub-toggle svg { transform: rotate(-90deg); }

/* третий уровень — справа от пункта */
.menu .sub-menu .sub-menu { top: -10px; left: calc(100% + 12px); }
.menu .sub-menu .sub-menu::before { top: 0; bottom: 0; left: -16px; right: auto; width: 16px; height: auto; }
.menu .sub-menu .sub-menu { transform: translateX(-8px); }
.menu .sub-menu li:hover > .sub-menu,
.menu .sub-menu li:focus-within > .sub-menu,
.menu .sub-menu li.is-open > .sub-menu { transform: none; }

/* ===== Мега-меню «Услуги» ===== */
.menu > li.mega { position: static; }
.menu > li.mega > .sub-menu {
	left: max(var(--gutter), calc(50% - 500px)); right: auto;
	width: min(1000px, calc(100% - 2 * var(--gutter)));
	top: calc(100% - 12px);
	display: grid; grid-template-columns: 1.1fr 1fr .9fr 1.2fr; grid-template-rows: auto auto; gap: 8px 20px;
	padding: 28px; border-radius: var(--radius-l);
}
.menu > li.mega > .sub-menu > li { flex-direction: column; align-items: stretch; }

/* Компактная раскладка: «Дизайн» и «Обучение» в одной колонке, баннер — справа на две строки. */
.menu > li.mega > .sub-menu > li:nth-child(1) { grid-column: 1; grid-row: 1 / span 2; }
.menu > li.mega > .sub-menu > li:nth-child(2) { grid-column: 2; grid-row: 1 / span 2; }
.menu > li.mega > .sub-menu > li:nth-child(3) { grid-column: 3; grid-row: 1; }
.menu > li.mega > .sub-menu > li:nth-child(4) { grid-column: 3; grid-row: 2; }
.menu > li.mega > .sub-menu > li.menu-banner { grid-column: 4; grid-row: 1 / span 2; }
.menu > li.mega > .sub-menu > li:not(.menu-banner) { justify-content: flex-start; }
.menu > li.mega > .sub-menu > li > .menu-heading,
.menu > li.mega > .sub-menu > li > .sub-menu { flex: 0 0 auto; }
.menu > li.mega > .sub-menu > li > .menu-heading,
.menu > li.mega > .sub-menu > li > a:not(.menu-banner__link) {
	min-height: 0; padding: 8px 16px 12px; background: none; cursor: default;
	font-family: var(--font-display); font-size: 13px; font-weight: 500; letter-spacing: 0.04em; text-transform: uppercase; color: var(--ink-2);
}
.menu > li.mega > .sub-menu > li > .sub-toggle { display: none; }
.menu > li.mega .sub-menu .sub-menu {
	position: static; min-width: 0; padding: 0; box-shadow: none; border-radius: 0; background: none;
	opacity: 1; visibility: inherit; pointer-events: inherit; transform: none; transition: none;
}
.menu > li.mega .sub-menu .sub-menu::before { display: none; }
.menu > li.mega .sub-menu .sub-menu a { font-size: 17px; }

/* Заголовки столбцов мега-меню — тёмно-синие */
.menu > li.mega > .sub-menu > li > .menu-heading { color: #142A4A; }

/* баннер в мега-меню */
.menu > li.mega > .sub-menu > li.menu-banner { display: block; }
.menu-banner__link {
	position: relative; display: flex !important; flex-direction: column; align-items: flex-start !important; gap: 10px;
	height: 100%; min-height: 200px; padding: 24px !important; border-radius: 20px !important;
	background: var(--red) !important; color: var(--white) !important; text-decoration: none; overflow: hidden;
}
.menu-banner__link:hover { background: var(--red-dark) !important; }
.menu-banner__title { font-family: var(--font-display); font-weight: 600; font-size: 20px; line-height: 1.15; text-transform: uppercase; letter-spacing: -0.01em; }
.menu-banner__text { font-size: 15px; font-weight: 500; line-height: 1.28; }
.menu-banner__more { margin-top: auto; font-family: var(--font-display); font-size: 22px; }

/* ===== Контакты в шапке ===== */
.contacts { position: relative; display: flex; align-items: center; gap: 2px; height: 100%; }
.header-phone { display: flex; flex-direction: column; line-height: 1.15; text-decoration: none; white-space: nowrap; }
.header-phone__num { font-weight: 700; font-size: 16px; }
.header-phones { display: flex; flex-direction: column; align-items: flex-end; gap: 2px; }
.header-phone__note { font-size: 12px; font-weight: 600; color: #15803D; }
.header-phone--second .header-phone__num { font-weight: 600; font-size: 15px; }
.header-phone:hover .header-phone__num { color: var(--red); }
.contacts__panel {
	position: absolute; top: calc(100% - 12px); right: -12px; z-index: 10; width: 320px; padding: 20px;
	background: var(--white); border-radius: var(--radius-m); box-shadow: var(--shadow-float);
	opacity: 0; visibility: hidden; pointer-events: none; transform: translateY(8px);
	transition: opacity 0.18s var(--ease), transform 0.18s var(--ease), visibility 0s linear 0.18s;
}
.contacts__panel::before { content: ""; position: absolute; left: 0; right: 0; top: -16px; height: 16px; }
.contacts:hover .contacts__panel, .contacts:focus-within .contacts__panel, .contacts.is-open .contacts__panel {
	opacity: 1; visibility: visible; pointer-events: auto; transform: none;
	transition: opacity 0.18s var(--ease), transform 0.18s var(--ease), visibility 0s;
}
.contacts.is-closed .contacts__panel { opacity: 0; visibility: hidden; transform: translateY(8px); }
.contacts:hover .contacts__toggle svg, .contacts.is-open .contacts__toggle svg { transform: rotate(180deg); }
.contacts__panel { width: max-content; max-width: calc(100vw - 32px); padding: 12px; }
.contacts__phones { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.contacts__phones a { display: flex; flex-direction: column; gap: 2px; padding: 10px 14px; border-radius: var(--radius-s); text-decoration: none; color: var(--ink); }
.contacts__phones a:hover { background: var(--ground); }
.contacts__phones a:hover .contacts__num { color: var(--red); }
.contacts__num { font-family: var(--font-display); font-weight: 700; font-size: 23px; line-height: 1.2; white-space: nowrap; transition: color 0.15s var(--ease); }
.contacts__note { font-size: 13px; line-height: 1.3; color: var(--ink-2); }
.contacts__phones li:first-child .contacts__note { color: #1E8A4F; font-weight: 600; }
.contacts__info { margin: 8px 0 0; padding: 16px 14px 4px; border-top: 1px solid var(--line); display: flex; flex-direction: column; gap: 16px; }
.contacts__info div { display: flex; flex-direction: column; gap: 2px; }
.contacts__info dt { font-size: 11px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: #3F6DAE; }
.contacts__info dd { margin: 0; max-width: 250px; font-size: 15px; line-height: 1.35; color: var(--ink); }
.contacts__email { font-weight: 700; color: var(--ink); text-decoration: none; }
.contacts__email:hover { color: var(--red); }
.contacts__social { list-style: none; margin: 12px 0 0; padding: 14px 14px 6px; display: flex; flex-wrap: wrap; gap: 10px; border-top: 1px solid var(--line); }
.contacts__social a { display: block; border-radius: 10px; transition: transform 0.2s var(--ease); }
.contacts__social a:hover { transform: translateY(-2px); }
.contacts__social a:focus-visible { outline: 3px solid var(--cobalt); outline-offset: 2px; }
.contacts__social svg, .contacts__social img { display: block; width: 36px; height: 36px; border-radius: 10px; }

/* ===== Подвал (временный) ===== */
.site-footer { padding-top: var(--section-gap); padding-bottom: 24px; }
.footer__paper {
	border-radius: 32px; padding: 64px 64px 32px;
	background-color: #BCCFE7;
	background-image:
		radial-gradient(70% 90% at 82% 10%, rgba(255, 255, 255, 0.6) 0%, rgba(255, 255, 255, 0) 60%),
		linear-gradient(165deg, #CBDAEE 0%, #AEC4E1 100%);
	color: var(--ink);
}
.footer__grid { display: grid; grid-template-columns: minmax(0, 1.25fr) repeat(3, minmax(0, 1fr)); gap: 48px; }
.footer__col { display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.footer__logo img { display: block; width: 220px; height: auto; margin-bottom: 12px; }
.footer__title { margin: 0; font-family: var(--font-display); font-weight: 600; font-size: 18px; line-height: 1.2; }
.footer__col > .footer__title:not(:first-child) { margin-top: 18px; }
.footer__links { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; font-size: 16px; }
.footer__paper a { color: var(--ink); text-decoration: none; transition: color 0.2s var(--ease); }
.footer__paper a:hover { color: var(--red); }
.footer__paper a:focus-visible { outline: 3px solid var(--cobalt); outline-offset: 3px; border-radius: 4px; }
.footer__phones { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.footer__phones li { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; }
.footer__phones a { font-family: var(--font-display); font-weight: 600; font-size: 20px; }
.footer__phones span { font-size: 14px; color: #33435C; }
.footer__line { margin: 0; font-size: 16px; line-height: 1.35; color: #22334D; }
.footer__mail { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; }
.footer__mail a { font-family: var(--font-display); font-weight: 600; font-size: 20px; }
.footer__mail span { font-size: 14px; color: #33435C; }
.footer__social { list-style: none; margin: 10px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.footer__social a { display: inline-flex; align-items: center; justify-content: center; width: 48px; height: 48px; border-radius: 50%; background: rgba(255, 255, 255, 0.75); transition: background-color 0.2s var(--ease), transform 0.2s var(--ease); }
.footer__social a:hover { background: var(--white); transform: translateY(-2px); }
.footer__social svg, .footer__social img { display: block; width: 24px; height: 24px; }
.footer__social img { border-radius: 6px; }
.footer__pay { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.footer__pay li { padding: 7px 14px; border-radius: 999px; background: rgba(255, 255, 255, 0.7); font-size: 14px; font-weight: 600; }
.footer__legal { margin: 0; font-size: 15px; line-height: 1.45; color: #22334D; }
.footer__bottom { display: flex; flex-wrap: wrap; align-items: baseline; gap: 10px 28px; margin-top: 56px; padding-top: 24px; border-top: 1px solid rgba(34, 51, 77, 0.15); font-size: 14px; color: #33435C; }
.footer__bottom a { color: #33435C; }
.footer__note { flex: 1 1 100%; margin: 0; font-size: 13px; line-height: 1.4; color: #33435C; }
@media (max-width: 1240px) { .footer__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .footer__paper { padding: 40px 24px 24px; } .footer__grid { grid-template-columns: minmax(0, 1fr); } }

/* ===== Заглушка страницы ===== */
.placeholder { min-height: 150vh; padding-top: 120px; }
.placeholder h1 { margin: 0 0 16px; font-family: var(--font-display); font-weight: 800; font-size: clamp(28px, 3vw, 46px); line-height: 1.04; text-transform: none; letter-spacing: -0.02em; }

/* ===== Адаптив (мобильное меню — следующим шагом) ===== */
@media (max-width: 1240px) {
	.header-phone__note { display: none; }
	.site-header__inner { gap: 20px; }
	.menu > li > a, .menu > li > .menu-heading { padding: 0 10px; }
	.menu > li.menu-item-has-children > a, .menu > li.menu-item-has-children > .menu-heading { padding-right: 32px; }
}
.burger, .main-nav__extra { display: none; }
@media (max-width: 1439px) {
	.site-header__actions { margin-left: auto; }

	/* бургер */
	.burger {
		position: relative; display: block; width: 98px; min-width: 98px; height: 44px; padding: 0 42px 0 12px;
		border: 1px solid var(--line); border-radius: 999px; background: var(--white);
		box-shadow: 0 2px 8px rgba(16, 32, 64, 0.06); cursor: pointer;
		transition: background-color 0.2s var(--ease), border-color 0.2s var(--ease), box-shadow 0.2s var(--ease), transform 0.2s var(--ease);
	}
	.burger:hover { border-color: var(--powder); background: rgba(197, 214, 235, 0.24); box-shadow: 0 4px 12px rgba(16, 32, 64, 0.08); }
	.burger:active { transform: scale(0.97); }
	.burger > span:not(.burger__label) { position: absolute; right: 12px; display: block; width: 24px; height: 2px; border-radius: 2px; background: var(--ink); transition: transform 0.25s var(--ease), opacity 0.2s var(--ease); }
	.burger > span:nth-child(1) { top: 12px; }
	.burger > span:nth-child(2) { top: 21px; }
	.burger > span:nth-child(3) { top: 30px; }
	.burger__label { position: absolute; top: 50%; left: 12px; transform: translateY(-50%); color: var(--ink); font-family: var(--font-text); font-size: 14px; font-weight: 700; line-height: 1; }
	html.nav-open .burger span:nth-child(1) { transform: translateY(9px) rotate(45deg); }
	html.nav-open .burger span:nth-child(2) { opacity: 0; }
	html.nav-open .burger span:nth-child(3) { transform: translateY(-9px) rotate(-45deg); }
	.burger:focus-visible { outline: 3px solid var(--cobalt); outline-offset: 2px; }
	html.nav-open .burger { border-color: var(--powder); background: rgba(197, 214, 235, 0.3); box-shadow: none; }

	/* выезжающая панель меню */
	.main-nav {
		position: fixed; left: 0; right: 0; bottom: 0; top: var(--nav-top, var(--header-h)); z-index: 99;
		height: calc(100vh - var(--nav-top, var(--header-h)));
		height: calc(100dvh - var(--nav-top, var(--header-h)));
		max-height: calc(100dvh - var(--nav-top, var(--header-h)));
		overflow-y: auto; -webkit-overflow-scrolling: touch; touch-action: pan-y;
		overscroll-behavior: contain; padding: 16px var(--gutter) 40px; background: var(--white);
		visibility: hidden; opacity: 0; transform: translateY(-8px);
		transition: opacity 0.2s var(--ease), transform 0.2s var(--ease), visibility 0s linear 0.2s;
	}
	html.nav-open { overflow: hidden; }
	html.nav-open .main-nav { visibility: visible; opacity: 1; transform: none; transition: opacity 0.2s var(--ease), transform 0.2s var(--ease), visibility 0s; }
	.main-nav .menu { flex-direction: column; align-items: stretch; height: auto; gap: 0; }
	.main-nav .menu > li { flex-wrap: wrap; height: auto; border-bottom: 1px solid var(--line); }
	.main-nav .menu > li > a, .main-nav .menu > li > .menu-heading { flex: 1 1 auto; height: 56px; padding: 0 4px; font-size: 18px; background: none !important; border-radius: 0; }
	.main-nav .menu > li > .sub-toggle { position: static; margin: 0; width: 44px; height: 44px; }
	.main-nav .menu .sub-menu {
		position: static; display: none; flex: 1 1 100%; min-width: 0; margin: 0; padding: 0 0 12px 8px;
		opacity: 1; visibility: visible; pointer-events: auto; transform: none; box-shadow: none; background: none; border-radius: 0; transition: none;
	}
	.main-nav .menu .sub-menu::before { display: none; }
	.main-nav .menu li.is-open > .sub-menu { display: block; }
	.main-nav .menu li.is-closed > .sub-menu { display: none; }
	.main-nav .menu .sub-menu li { flex-wrap: wrap; }
	.main-nav .menu .sub-menu .sub-toggle { position: static; margin: 0; }
	.main-nav .menu .sub-menu .sub-toggle svg { transform: none; }
	.main-nav .menu .sub-menu li.is-open > .sub-toggle svg { transform: rotate(180deg); }
	.main-nav .menu .sub-menu a, .main-nav .menu .sub-menu .menu-heading { padding: 10px 8px; font-size: 16px; }
	.main-nav .menu .sub-menu li.menu-item-has-children > a, .main-nav .menu .sub-menu li.menu-item-has-children > .menu-heading { padding-right: 8px; }
	/* мега-меню «Услуги» в столбик */
	.main-nav .menu > li.mega { position: relative; }
	.main-nav .menu > li.mega > .sub-menu { display: none; grid-template-columns: none; width: auto; left: auto; right: auto; padding: 0 0 12px 8px; }
	.main-nav .menu > li.mega.is-open > .sub-menu { display: block; }
	.main-nav .menu > li.mega .sub-menu .sub-menu { display: block; padding: 0 0 8px; }
	.main-nav .menu > li.mega > .sub-menu > li > .menu-heading { padding: 14px 8px 6px; }
	.main-nav .menu-banner__link { min-height: 0 !important; margin-top: 8px; }
	/* контакты внизу панели */
	.main-nav__extra { display: flex; flex-direction: column; align-items: flex-start; gap: 16px; padding-top: 28px; }
	.main-nav__phones,
	.main-nav__messengers { display: flex; flex-direction: column; gap: 12px; margin: 0; padding: 0; list-style: none; }
	.main-nav__phone { display: flex; flex-direction: column; gap: 2px; color: var(--ink); text-decoration: none; }
	.main-nav__phone-num { font-family: var(--font-display); font-weight: 600; font-size: 22px; line-height: 1.2; }
	.main-nav__phone-note { font-family: var(--font-text); font-size: 13px; font-weight: 600; line-height: 1.3; color: #1E8A4F; }
	.main-nav__phone:hover .main-nav__phone-num,
	.main-nav__email:hover { color: var(--red); }
	.main-nav__email { font-family: var(--font-display); font-size: 18px; font-weight: 600; color: var(--ink); text-decoration: none; overflow-wrap: anywhere; }
	.main-nav__messengers { flex-direction: row; flex-wrap: wrap; gap: 10px 18px; }
	.main-nav__messengers a { display: inline-flex; align-items: center; gap: 8px; min-height: 40px; color: var(--ink); font-size: 15px; font-weight: 600; text-decoration: none; }
	.main-nav__messengers a:hover { color: var(--red); }
	.main-nav__messengers svg,
	.main-nav__messengers img { display: block; width: 28px; height: 28px; border-radius: 7px; }
	.main-nav__info { margin: 0; font-size: 15px; line-height: 1.4; color: var(--ink-2); }
	.main-nav__extra a:focus-visible { outline: 3px solid var(--cobalt); outline-offset: 3px; border-radius: 4px; }
}
@media (max-width: 1023px) {
	.contacts,
	.header-cta { display: none; }
}

@media (max-width: 700px) { :root { --gutter: 16px; --header-h: 72px; } }

@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
}


/* ===== Форма обратного звонка (общая для всех страниц) ===== */
.callback { display: flex; flex-direction: column; gap: 14px; scroll-margin-top: calc(var(--top-h) + 32px); }
.callback__row { display: flex; flex-wrap: wrap; gap: 12px; }
.callback__phone {
	flex: 0 1 244px; min-width: 0; max-width: 244px; height: 48px; padding: 0 36px 0 24px; border: 0; border-radius: 999px;
	background: var(--white); font: 600 18px/1 var(--font-text); color: var(--ink);
	box-shadow: inset 0 0 0 1px rgba(16, 32, 64, 0.08);
}
.callback__phone::placeholder { color: #7A8394; }
.has-phone-mask .callback__phone::placeholder { color: transparent; }
.callback__phone, .callback__phone-progress { font-variant-numeric: tabular-nums; }
.callback__phone:focus-visible { outline: 3px solid var(--cobalt); outline-offset: 2px; }
.callback__consent { display: flex; align-items: flex-start; gap: 10px; max-width: 600px; font-size: 13px; line-height: 1.3; color: #2A3446; cursor: pointer; }
.callback__consent input {
	-webkit-appearance: none; appearance: none;
	position: relative; flex: 0 0 auto; width: 24px; height: 24px; margin: -2px 0 0;
	border-radius: 7px; background: var(--white); cursor: pointer;
	box-shadow: inset 0 0 0 1.5px #C9D2DE;
	transition: box-shadow 0.15s var(--ease);
}
.callback__consent input::after {
	content: ""; position: absolute; inset: 5px; border-radius: 4px; background: var(--red);
	transform: scale(0); transition: transform 0.15s var(--ease);
}
.callback__consent input:checked::after { transform: scale(1); }
.callback__consent input:hover { box-shadow: inset 0 0 0 1.5px var(--red); }
.callback__consent input:focus-visible { outline: 3px solid var(--cobalt); outline-offset: 2px; }
.callback__consent a { color: var(--red); text-decoration: none; }
.callback__consent a:hover { color: var(--red-dark); }
.callback__note { margin: 0; font-size: 14px; color: #2A3446; }
.callback__hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.callback__row--wide { align-items: flex-end; gap: 16px; }
.callback__field { display: flex; flex-direction: column; gap: 8px; flex: 0 1 244px; max-width: 244px; font-size: 15px; font-weight: 600; }
.callback__field .callback__phone { flex: 0 0 auto; width: 100%; max-width: 244px; box-sizing: border-box; }
.callback__field--inline { flex: 0 1 244px; max-width: 244px; }
.callback__field .wpcf7-form-control-wrap { display: block; position: relative; width: 100%; }
.callback__field .wpcf7-form-control-wrap.has-phone-progress { border-radius: 999px; background: var(--white); }
.callback__field .has-phone-progress .callback__phone { color: var(--ink); caret-color: var(--ink); }
.callback__phone-progress {
	position: absolute; top: 50%; left: 24px; z-index: 1; transform: translateY(-50%); pointer-events: none;
	color: #7A8394; font: 600 18px/1 var(--font-text); white-space: pre;
}
.callback__phone-progress-entered { color: var(--ink); }
.callback__phone-progress-remaining { color: #7A8394; }
.callback__phone-measure { position: absolute; left: -9999px; top: 0; visibility: hidden; pointer-events: none; white-space: pre; }
.callback__when .wpcf7-form-control-wrap { display: block; }
.callback .wpcf7-not-valid-tip {
	position: absolute; top: calc(100% + 4px); left: 16px; z-index: 2; width: max-content;
	max-width: calc(100vw - 64px); padding: 4px 10px; border-radius: 8px; background: var(--white);
	font-size: 12px; line-height: 1.3; box-shadow: 0 4px 14px rgba(16, 32, 64, 0.12);
}
.callback .wpcf7-form-control.wpcf7-not-valid { box-shadow: inset 0 0 0 1.5px var(--red); }
.callback__consent .wpcf7-form-control-wrap,
.callback__consent .wpcf7-acceptance,
.callback__consent .wpcf7-list-item { display: contents; }
.callback__consent .wpcf7-list-item label { display: flex; align-items: flex-start; gap: 10px; cursor: pointer; }
.callback__consent .wpcf7-list-item-label { flex: 1 1 auto; }
.wpcf7.js .callback .wpcf7-response-output { display: none; }
.callback__error { margin: 0; color: var(--ink); font-size: 15px; line-height: 1.3; }
.callback__error a { color: var(--red); text-decoration: none; }
.callback .btn { box-sizing: border-box; max-width: 100%; white-space: normal; text-align: center; line-height: 1.2; }
.callback__req { color: var(--red); }
.callback__row--wide .btn { height: 48px; padding-inline: 36px; }
.s63-submit-wrap { position: relative; display: inline-flex; align-self: center; max-width: 100%; }
.s63-form-spinner { position: absolute; top: calc(50% - 10px); left: calc(100% + 8px); width: 20px; height: 20px; margin: 0; border: 2px solid rgba(240, 20, 47, 0.25); border-top-color: var(--red); border-radius: 50%; animation: s63-spin 0.75s linear infinite; }
.callback__row--stack .s63-submit-wrap { order: 2; align-self: flex-start; }
.callback__row--wide .s63-submit-wrap { align-self: flex-end; }
.s63-submit-wrap .btn, .s63-submit-wrap input[type="submit"] { order: 0; }
.wpcf7-form.is-sending .btn[type="submit"], .wpcf7-form.is-sending input[type="submit"] { opacity: 0.65; cursor: wait; }
.wpcf7-form.is-sending .wpcf7-spinner { display: none; }
@keyframes s63-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .s63-form-spinner { animation-duration: 1.6s; } }

/* ===== Всплывающее окно ===== */
html.has-modal { overflow: hidden; }
/* Пока открыто окно, всё под размытием стоит на месте: иначе браузер пересчитывает размытие на каждом кадре и фон может моргать */
html.has-modal body *:not(dialog):not(dialog *), html.has-modal body *:not(dialog):not(dialog *)::before, html.has-modal body *:not(dialog):not(dialog *)::after { animation-play-state: paused !important; }
html.has-modal .site-top, html.has-modal main, html.has-modal footer { pointer-events: none; }
.modal {
	width: min(1040px, calc(100% - 32px)); max-width: none; max-height: calc(100dvh - 32px); padding: 0; border: 0;
	border-radius: 32px; background: transparent; color: var(--ink); overflow: visible;
}
.modal::backdrop { background: rgba(11, 11, 14, 0.5); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.modal[open] { animation: modal-in 0.35s cubic-bezier(0.22, 1, 0.36, 1); }
.modal[open]::backdrop { animation: modal-fade 0.35s ease; }
.modal.is-closing { animation: modal-out 0.2s ease forwards; }
.modal.is-closing::backdrop { animation: modal-fade 0.2s ease reverse forwards; }
@keyframes modal-in { from { opacity: 0; transform: translateY(16px) scale(0.98); } }
@keyframes modal-out { to { opacity: 0; transform: translateY(8px) scale(0.98); } }
@keyframes modal-fade { from { opacity: 0; } }
.modal__box {
	position: relative; overflow: hidden; display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); align-items: end;
	max-height: calc(100dvh - 32px); border-radius: 32px;
	background-color: #BCCFE7;
	background-image:
		radial-gradient(70% 90% at 82% 10%, rgba(255, 255, 255, 0.6) 0%, rgba(255, 255, 255, 0) 60%),
		linear-gradient(165deg, #CBDAEE 0%, #AEC4E1 100%);
}
.modal__body { align-self: center; display: flex; flex-direction: column; gap: 16px; padding: 80px 24px 56px 56px; overflow-y: auto; max-height: calc(100dvh - 32px); box-sizing: border-box; }
.modal:focus, .modal:focus-visible { outline: none; }
.modal__title { margin: 0; font-family: var(--font-display); font-weight: 800; font-size: clamp(26px, 2.4vw, 36px); line-height: 1.1; letter-spacing: -0.02em; }
.modal__lead { margin: 0 0 8px; font-size: 17px; line-height: 1.4; color: #22334D; }
.modal__img { display: block; justify-self: center; width: auto; max-width: 100%; height: auto; max-height: min(580px, calc(100dvh - 120px)); margin-top: 48px; }
.modal__close {
	position: absolute; top: 16px; right: 16px; z-index: 2; display: inline-flex; align-items: center; justify-content: center;
	width: 48px; height: 48px; padding: 0; border: 0; border-radius: 50%; background: var(--white); color: var(--ink); cursor: pointer;
	transition: background-color 0.2s var(--ease), color 0.2s var(--ease), transform 0.3s var(--ease);
}
.modal__close:hover { background: var(--red); color: var(--white); transform: rotate(90deg); }
.modal__close:focus-visible { outline: 3px solid var(--cobalt); outline-offset: 2px; }
/* вертикальная форма: имя, телефон, согласие, кнопка, примечание */
.callback__row--stack { display: contents; }
.callback__row--stack .callback__field { flex: 0 0 auto; align-self: stretch; width: 100%; max-width: 244px; box-sizing: border-box; }
.callback:has(.callback__row--stack) { gap: 16px; }
.callback:has(.callback__row--stack) .callback__consent { order: 1; }
.callback__row--stack .btn { order: 2; align-self: flex-start; height: auto; min-height: 48px; max-width: 100%; padding: 12px 24px; margin-top: 4px; }
.callback__row--stack .wpcf7-spinner { display: none; }
.callback:has(.callback__row--stack) .callback__note { order: 3; }
.modal .callback .callback__consent, .modal .callback .callback__note { max-width: 440px; }
/* Модалка: поля на всю ширину, справа внутренний отступ ~2 см. */
#callback-modal .callback__field,
#callback-modal .callback__row--stack .callback__field { flex: 0 0 auto; width: 340px; max-width: 340px; }
#callback-modal .callback__field .callback__phone { width: 100%; max-width: 340px; }
@media (min-width: 768px) {
	#callback-modal .callback__field .callback__phone { padding-right: 40px; }
}

@media (max-width: 767px) {
	.modal__box { grid-template-columns: minmax(0, 1fr); }
	.modal__img { display: none; }
	.modal__body { padding: 80px 24px 32px; }
}
@media (prefers-reduced-motion: reduce) {
	.modal[open], .modal[open]::backdrop, .modal.is-closing, .modal.is-closing::backdrop { animation: none; }
}

@media (max-width: 767px) { :root { --section-gap: 96px; } }

/* пока страница прокручивается, наведение не срабатывает — не перерисовываем карточки под курсором */
html.is-scrolling body { pointer-events: none; }

/* Выбор способа связи */
.callback__via { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 0; padding: 0; border: 0; min-width: 0; }
.callback__via legend { float: left; margin-right: 6px; padding: 0; font-size: 14px; font-weight: 600; color: #2A3446; }
.callback__via label { position: relative; cursor: pointer; }
.callback__via input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.callback__via span {
	display: inline-flex; align-items: center; min-height: 36px; padding: 0 16px; border-radius: 999px;
	background: var(--white); box-shadow: inset 0 0 0 1px rgba(16, 32, 64, 0.12);
	font-size: 14px; font-weight: 600; transition: background-color 0.15s var(--ease), color 0.15s var(--ease), box-shadow 0.15s var(--ease);
}
.callback__via label:hover span:not(.wpcf7-form-control-wrap) { box-shadow: inset 0 0 0 1.5px var(--ink); }
.callback__via input:checked + span { background: var(--ink); color: var(--white); box-shadow: none; }
.callback__via input:focus-visible + span { outline: 3px solid var(--cobalt); outline-offset: 2px; }
.callback:has(.callback__row--stack) .callback__via { order: 1; }

/* Время звонка — видно, только когда выбран «Позвонить» */
.callback__when { display: inline-flex; flex-direction: column; align-items: flex-start; gap: 6px; position: relative; width: fit-content; max-width: 100%; }
.callback__when .wpcf7-form-control-wrap {
	display: block; flex: 0 0 auto; min-width: 0; width: max-content; max-width: 100%; min-height: 0; padding: 0;
	border-radius: 0; background: transparent; box-shadow: none; font: inherit;
}
.callback__when-label { font-size: 14px; font-weight: 600; color: #2A3446; white-space: nowrap; }
.callback__when select {
	-webkit-appearance: none; appearance: none; width: max-content; min-width: 0; max-width: 100%; box-sizing: border-box; min-height: 36px; padding: 0 36px 0 16px; border: 0; border-radius: 999px;
	background: var(--white); box-shadow: inset 0 0 0 1px rgba(16, 32, 64, 0.12); color: var(--ink);
	font: 600 14px/1 var(--font-text); cursor: pointer;
}
.callback__when::after {
	content: ""; position: absolute; right: 15px; top: 50%; width: 7px; height: 7px; margin-top: -5px;
	border-right: 2px solid var(--ink); border-bottom: 2px solid var(--ink); transform: rotate(45deg); pointer-events: none;
}
.callback__when select:hover { box-shadow: inset 0 0 0 1px rgba(16, 32, 64, 0.12); }
.callback__when select:focus-visible { outline: 3px solid var(--cobalt); outline-offset: 2px; }
@media (max-width: 767px) {
	.callback__when { flex-wrap: wrap; }
	.callback__when-label { flex: 0 0 auto; width: auto; }
	.callback__when .wpcf7-form-control-wrap { flex: 0 0 auto; width: max-content; }
}

/* Контакты в шапке: всё по правому краю, под телефоном, от которого открывается панель */
.contacts__panel { text-align: right; }
.contacts__phones a { align-items: flex-end; }
.contacts__info div { align-items: flex-end; }
.contacts__info dd { margin-left: auto; }
.contacts__social { justify-content: flex-end; padding-left: 14px; padding-right: 14px; }

/* Затемнение и размытие страницы, пока открыто любое выпадающее меню шапки */
.page-dim {
	position: fixed; inset: 0; z-index: 90; pointer-events: none;
	background: rgba(11, 11, 14, 0.32); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
	opacity: 0; visibility: hidden; transition: opacity 0.2s var(--ease), visibility 0s linear 0.2s;
}
@media (min-width: 1024px) {
	body:has(.site-header .menu > li.menu-item-has-children:hover:not(.is-closed)) .page-dim,
	body:has(.site-header .menu > li.is-open) .page-dim,
	body:has(.site-header .contacts:hover:not(.is-closed)) .page-dim,
	body:has(.site-header .contacts.is-open) .page-dim {
		opacity: 1; visibility: visible; transition: opacity 0.2s var(--ease), visibility 0s;
	}
}
@media (prefers-reduced-motion: reduce) { .page-dim { transition: none; } }

/* Верхняя строка не размывается вместе со страницей; почта слева от мессенджеров */
.topbar { position: relative; z-index: 95; }
.topbar__right { display: flex; align-items: center; gap: 16px; }
.topbar__email { font-size: 14px; font-weight: 600; color: var(--ink-2); text-decoration: none; transition: color 0.15s var(--ease); }
.topbar__email:hover { color: var(--red); }
.topbar__email:focus-visible { outline: 3px solid var(--cobalt); outline-offset: 2px; border-radius: 4px; }

/* Почта в контактах — размером с номера, рядом кнопка «скопировать» */
.contacts__info dd.contacts__email-row { display: flex; align-items: center; justify-content: flex-end; gap: 6px; max-width: none; }
.contacts__info .contacts__email { font-family: var(--font-display); font-weight: 700; font-size: 23px; line-height: 1.2; white-space: nowrap; }
.copy-btn {
	position: relative; flex: 0 0 auto; display: inline-flex; align-items: center; justify-content: center;
	width: 36px; height: 36px; padding: 0; border: 0; border-radius: 10px; background: var(--ground); color: var(--ink-2); cursor: pointer;
	transition: background-color 0.15s var(--ease), color 0.15s var(--ease);
}
.copy-btn:hover { background: var(--line); color: var(--ink); }
.copy-btn:focus-visible { outline: 3px solid var(--cobalt); outline-offset: 2px; }
.copy-btn__done { display: none; }
.copy-btn.is-done { background: #E3F6EA; color: #11643A; }
.copy-btn.is-done .copy-btn__copy { display: none; }
.copy-btn.is-done .copy-btn__done { display: block; }
.copy-btn__tip {
	position: absolute; bottom: calc(100% + 8px); right: 0; padding: 5px 10px; border-radius: 8px; background: var(--ink); color: var(--white);
	font-family: var(--font-text); font-size: 12px; font-weight: 600; white-space: nowrap; pointer-events: none;
	opacity: 0; transform: translateY(4px); transition: opacity 0.15s var(--ease), transform 0.15s var(--ease);
}
.copy-btn__tip:empty { display: none; }
.copy-btn.is-done .copy-btn__tip { opacity: 1; transform: none; }
.contacts__email-row .copy-btn { order: -1; }
.contacts__email-row .copy-btn__tip { right: auto; left: 0; }

/* Пункты выпадающих меню краснеют при наведении (кроме красного баннера) */
.menu .sub-menu li:hover > a:not(.menu-banner__link),
.menu .sub-menu a:not(.menu-banner__link):focus-visible { color: var(--red); }

/* Баннер «Акции и рассрочка» в мега-меню */
.menu-banner__link {
	isolation: isolate; justify-content: flex-start; gap: 12px !important; min-height: 240px !important;
	background-color: var(--red) !important;
	background-image:
		radial-gradient(120% 90% at 100% 0%, rgba(255, 255, 255, 0.28) 0%, rgba(255, 255, 255, 0) 55%),
		linear-gradient(150deg, #FF3048 0%, #F0142F 45%, #B80C22 100%) !important;
	box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.35);
	transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.menu-banner__link:hover { background-color: var(--red) !important; transform: translateY(-2px); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.35), 0 16px 36px rgba(184, 12, 34, 0.35); }
.menu-banner__art {
	position: absolute; right: -14px; bottom: -34px; z-index: -1;
	font-family: var(--font-display); font-weight: 800; font-size: 168px; line-height: 1; letter-spacing: -0.06em;
	color: transparent; -webkit-text-stroke: 2px rgba(255, 255, 255, 0.35);
	transition: transform 0.5s var(--ease);
}
.menu-banner__link:hover .menu-banner__art { transform: translate(-6px, -4px) rotate(-3deg); }
.menu-banner__chip {
	align-self: flex-start; padding: 5px 10px; border-radius: 999px; background: rgba(255, 255, 255, 0.2);
	font-size: 12px; font-weight: 700; letter-spacing: 0.02em; color: var(--white);
}
.menu-banner__title { font-size: 22px !important; }
.menu-banner__text { max-width: 230px; opacity: 0.92; }
.menu-banner__more {
	margin-top: auto; display: inline-flex; align-items: center; gap: 8px; padding: 10px 16px; border-radius: 999px;
	background: var(--white); color: var(--ink); font-family: var(--font-text) !important; font-size: 14px !important; font-weight: 700;
	transition: color 0.2s var(--ease);
}
.menu-banner__link:hover .menu-banner__more { color: var(--red); }
@media (prefers-reduced-motion: reduce) { .menu-banner__link, .menu-banner__art { transition: none; } }

/* Ссылки не растягиваются на всю ширину колонки: активна только сама надпись */
.footer__col { align-items: flex-start; }
.footer__col > ul { align-self: stretch; }
.footer__links { align-items: flex-start; }
.contacts__phones { align-items: flex-end; }

/* Метка «Сейчас открыто» */
.open-status { display: inline-flex; align-items: center; gap: 8px; margin: 0; font-size: 14px; font-weight: 600; color: #8A3A12; }
.open-status::before { content: ""; flex: 0 0 auto; width: 8px; height: 8px; border-radius: 50%; background: #E0782B; }
.open-status.is-open { color: #11643A; }
.open-status.is-open::before { background: #1E9E5A; box-shadow: 0 0 0 0 rgba(30, 158, 90, 0.5); animation: open-pulse 2s infinite; }
@keyframes open-pulse { 70% { box-shadow: 0 0 0 6px rgba(30, 158, 90, 0); } 100% { box-shadow: 0 0 0 0 rgba(30, 158, 90, 0); } }
.open-status--top { margin-right: 8px; font-size: 13px; }
@media (prefers-reduced-motion: reduce) { .open-status.is-open::before { animation: none; } }

@media (max-width: 600px) {
	.topbar__mobile { gap: 8px; }
	.topbar__callback { flex-basis: clamp(104px, 30vw, 124px); min-height: 48px; padding: 5px 8px; border-radius: 12px; font-size: 13px; }
	.topbar__mobile-number { font-size: clamp(15px, 4.5vw, 18px); }
	.topbar__mobile-note { font-size: clamp(12px, 3.2vw, 14px); }
	.burger { width: 88px; min-width: 88px; padding-right: 38px; }
	.burger > span:not(.burger__label) { right: 10px; width: 22px; }
	.burger__label { font-size: 13px; }
}
@media (max-width: 360px) {
	.topbar__callback { flex-basis: 96px; font-size: 12px; }
	.topbar__mobile-number { font-size: 14px; }
	.topbar__mobile-note { font-size: 11px; }
}
@media (prefers-reduced-motion: reduce) {
	.burger, .burger > span:not(.burger__label) { transition: none; }
}

/* Шапка целиком (верхняя строка + меню) закреплена при прокрутке */
.site-top { position: sticky; top: var(--wp-admin--admin-bar--height, 0px); z-index: 100; }
.site-top .topbar { position: relative; z-index: 3; transition: background-color 0.25s var(--ease); }
.site-top:has(.site-header.is-scrolled) .topbar { background: var(--ground); }
/* Тонкий разделитель между верхней строкой и меню — по ширине контента */
.topbar__inner { position: relative; }
.topbar__inner::after { content: ""; position: absolute; left: var(--gutter); right: var(--gutter); bottom: 0; height: 1px; background: #D3DBE6; }
.topbar__inner { padding-bottom: 8px; }

/* Автоматические ссылки на телефоны и почту в тексте */
.autolink { color: inherit; font-weight: 600; white-space: nowrap; text-decoration: none; transition: color .2s; }
.autolink:hover { color: var(--red); }

/* Ссылки на документы — отдельной строкой под галочкой, чтобы не нажимать их случайно */

/* ===== Уведомление после отправки формы ===== */
.notice { width: min(460px, calc(100% - 32px)); }
.notice__box { position: relative; display: flex; flex-direction: column; align-items: center; gap: 14px; padding: 48px 36px 36px; border-radius: 32px; background: var(--white); text-align: center; box-shadow: 0 30px 80px rgba(11, 11, 14, 0.25); }
.notice__box .modal__close { position: absolute; top: 14px; right: 14px; }
.notice__icon { display: inline-flex; align-items: center; justify-content: center; width: 72px; height: 72px; border-radius: 50%; background: #E3F6EA; color: #1E9E5A; }
.notice__err { display: none; }
.notice.is-error .notice__icon { background: #FDECEE; color: var(--red); }
.notice.is-error .notice__ok { display: none; }
.notice.is-error .notice__err { display: block; }
.notice__title { margin: 0; font-family: var(--font-display); font-weight: 800; font-size: 26px; line-height: 1.15; }
.notice__text { margin: 0 0 8px; font-size: 16px; line-height: 1.45; color: var(--ink-2); }
.notice__text a { color: var(--red); font-weight: 700; text-decoration: none; white-space: nowrap; }
.notice__text a:hover { color: var(--red-dark); }
.callback__via .callback__when-label { padding: 0; min-height: 0; border-radius: 0; background: none; box-shadow: none; display: inline; }
.callback__via label.callback__when:hover .callback__when-label { box-shadow: none; }
.callback__when::after { top: auto; bottom: 14px; margin-top: 0; }
.callback__via { margin-bottom: 12px; }

/* ===== Верхняя полоска уведомлений ===== */
.site-notice { position: relative; z-index: 110; background: #142A4A; color: var(--white); border-bottom: 1px solid rgba(255, 255, 255, 0.12); }
.site-notice[hidden] { display: none !important; }
.site-notice__inner { display: flex; align-items: center; gap: 16px; min-height: 40px; padding-top: 4px; padding-bottom: 4px; }
.site-notice__text { flex: 1 1 auto; min-width: 0; margin: 0; font-size: 15px; font-weight: 600; line-height: 1.3; }
.site-notice__actions { display: flex; flex: 0 0 auto; align-items: center; gap: 16px; }
.site-notice__more { display: inline; padding: 0; border: 0; background: none; color: var(--white); font: inherit; font-size: 14px; font-weight: 600; line-height: 1.3; white-space: nowrap; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.site-notice__more:hover { color: var(--white); opacity: 0.78; background: none; }
.site-notice__more:focus-visible, .site-notice__close:focus-visible { outline: 3px solid var(--white); outline-offset: 2px; }
.site-notice__close { display: inline-flex; align-items: center; justify-content: center; width: 32px; height: 32px; padding: 0; border: 0; border-radius: 50%; background: transparent; color: var(--white); cursor: pointer; transition: background-color 0.2s var(--ease), color 0.2s var(--ease); }
.site-notice__close:hover { background: rgba(255, 255, 255, 0.14); color: var(--white); }
@media (max-width: 767px) {
	.site-notice { display: none !important; }
}

/* ===== Всплывающее окно с картинкой 1:1 / 16:9 ===== */
.s63-popup { width: min(440px, calc(100vw - 40px)); max-width: 100%; padding: 0; border: 0; border-radius: 24px; background: transparent; overflow: visible; }
.s63-popup:focus, .s63-popup:focus-visible { outline: none; }
.s63-popup::backdrop { background: rgba(11, 11, 14, 0.62); backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px); }
.s63-popup__frame { position: relative; aspect-ratio: 1 / 1; overflow: hidden; border-radius: 24px; background: var(--white); box-shadow: 0 30px 80px rgba(11, 11, 14, 0.28); }
.s63-popup__img { display: block; width: 100%; height: 100%; object-fit: cover; }
.s63-popup__link { display: block; width: 100%; height: 100%; cursor: pointer; }
.s63-popup__link:focus-visible { outline: 3px solid var(--cobalt); outline-offset: -3px; border-radius: 24px; }
.s63-popup__close { position: absolute; z-index: 3; top: 12px; right: 12px; display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; padding: 0; border: 0; border-radius: 50%; background: rgba(255, 255, 255, 0.94); color: var(--ink); cursor: pointer; box-shadow: 0 2px 10px rgba(11, 11, 14, 0.14); transition: background-color 0.2s var(--ease), color 0.2s var(--ease); }
.s63-popup__close:hover { background: var(--red); color: var(--white); }
.s63-popup__close:focus-visible { outline: 3px solid var(--cobalt); outline-offset: 3px; }
@media (max-width: 767px) {
	.s63-popup { width: min(340px, calc(100vw - 32px)); border-radius: 18px; }
	.s63-popup__frame { border-radius: 18px; }
	.s63-popup__close { top: 10px; right: 10px; width: 36px; height: 36px; }
}

.s63-popup.s63-popup--16x9 { width: min(640px, calc(100vw - 40px)); }
.s63-popup--16x9 .s63-popup__frame { aspect-ratio: 16 / 9; }
@media (max-width: 767px) {
	.s63-popup.s63-popup--16x9 { width: min(360px, calc(100vw - 32px)); }
}

/* Непрерывное подчёркивание ссылок cookie-баннера */
#site63-banner a,
#site63-banner .site63-decline-link,
.footer__bottom a {
	-webkit-text-decoration-skip-ink: none;
	text-decoration-skip-ink: none;
}

/* ===== Подписка на рассылку в футере ===== */
.footer__subscribe {
	display: grid; grid-template-columns: minmax(0, 430px) minmax(320px, 1fr);
	gap: 20px 24px; align-items: start; margin-top: 40px; padding-top: 28px;
	border-top: 1px solid rgba(34, 51, 77, 0.15);
}
.footer__subscribe-copy { max-width: 520px; }
.footer__subscribe-title { margin: 0 0 6px; font-family: var(--font-display); font-weight: 600; font-size: 22px; line-height: 1.15; }
.footer__subscribe-copy p { margin: 0; font-size: 15px; line-height: 1.4; color: #33435C; }
.subscribe-box { width: 100%; max-width: 560px; }
.subscribe-form { width: 100%; max-width: 560px; }
.subscribe-form.is-sending .subscribe-form__btn { position: relative; padding-right: 42px; opacity: 0.8; cursor: wait; }
.subscribe-form.is-sending .subscribe-form__btn::after { content: ""; position: absolute; top: 50%; right: 16px; width: 14px; height: 14px; margin-top: -7px; border: 2px solid rgba(255,255,255,.45); border-top-color: #fff; border-radius: 50%; animation: s63-spin 0.75s linear infinite; }
.subscribe-form__row { display: flex; flex-wrap: wrap; gap: 8px; align-items: stretch; }
.subscribe-form__input {
	flex: 1 1 220px; min-width: 0; height: 48px; padding: 0 20px; border: 0; border-radius: 999px;
	background: var(--white); color: var(--ink); font: 500 16px/1.2 var(--font-text);
	box-shadow: inset 0 0 0 1px rgba(16, 32, 64, 0.08);
}
.subscribe-form__input::placeholder { color: #7A8394; }
.subscribe-form__input:focus-visible { outline: 3px solid var(--cobalt); outline-offset: 2px; }
.subscribe-form__btn { flex: 0 0 auto; }
.subscribe-form__consent {
	display: flex; align-items: flex-start; gap: 10px; margin-top: 10px;
	font-size: 13px; line-height: 1.3; color: #2A3446; cursor: pointer;
}
.subscribe-form__consent input {
	-webkit-appearance: none; appearance: none; position: relative; flex: 0 0 auto;
	width: 24px; height: 24px; margin: -2px 0 0; border-radius: 7px; background: var(--white);
	cursor: pointer; box-shadow: inset 0 0 0 1.5px #C9D2DE; transition: box-shadow 0.15s var(--ease);
}
.subscribe-form__consent input::after {
	content: ""; position: absolute; inset: 5px; border-radius: 4px; background: var(--red);
	transform: scale(0); transition: transform 0.15s var(--ease);
}
.subscribe-form__consent input:checked::after { transform: scale(1); }
.subscribe-form__consent input:hover { box-shadow: inset 0 0 0 1.5px var(--red); }
.subscribe-form__consent input:focus-visible { outline: 3px solid var(--cobalt); outline-offset: 2px; }
.subscribe-form__consent a { color: var(--red); text-decoration: none; }
.subscribe-form__consent a:hover { color: var(--red-dark); }
.subscribe-form__hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }
.subscribe-form__message { margin: 0 0 10px; font-size: 14px; font-weight: 600; }
.subscribe-form__message.is-success { color: #126B3A; }
.subscribe-form__message.is-error { color: #B42318; }
.unsubscribe-box {
	max-width: 760px; margin: 0 auto; padding: 34px 40px; border-radius: 28px; color: #142A4A;
	background-color: #BCCFE7;
	background-image: radial-gradient(70% 90% at 82% 10%, rgba(255,255,255,.6) 0%, rgba(255,255,255,0) 60%), linear-gradient(165deg, #CBDAEE 0%, #AEC4E1 100%);
	box-shadow: inset 0 1px 0 rgba(255,255,255,.7), 0 16px 40px rgba(16,32,64,.10);
}
.unsubscribe-box label { display: block; margin: 0 0 10px; font-size: 16px; font-weight: 600; line-height: 1.3; color: #142A4A; }
.unsubscribe-box .subscribe-form { max-width: 100%; }
.unsubscribe-box__note { max-width: 560px; margin: 18px 0 0; font-size: 14px; line-height: 1.4; color: #33435C; }
@media (max-width: 900px) {
	.footer__subscribe { grid-template-columns: minmax(0, 1fr); gap: 16px; }
}
@media (max-width: 560px) {
	.subscribe-form__row { flex-direction: column; }
	.subscribe-form__input { flex: 0 0 auto; width: 100%; height: 48px; }
	.subscribe-form__btn { width: 100%; }
	.unsubscribe-box { padding: 24px 20px; border-radius: 20px; }
	.unsubscribe-box label { margin-bottom: 9px; }
}

/* Страница отписки: без белой карточки вокруг формы */
.s63-unsubscribe-page .legal__doc { padding: 0; border-radius: 0; background: transparent; }
@media (max-width: 767px) {
	.s63-unsubscribe-page .legal__doc { padding: 0; }
	.s63-unsubscribe-page .unsubscribe-box { margin-bottom: 40px; }
}
.s63-unsubscribe-page .unsubscribe-box { margin-left: 0; margin-right: auto; margin-bottom: 48px; }
.s63-unsubscribe-page .unsubscribe-help { max-width: 760px; }
.s63-unsubscribe-page .unsubscribe-help h2 { margin-top: 0; }

@media (max-width: 767px) {
	.topbar__mobile-phone { min-height: 44px; justify-content: center; padding: 4px 0; }
	#site63-banner .site63-widget-reveal { min-height: 44px; padding-top: 10px; padding-bottom: 10px; }
}

/* Компактный cookie-баннер на телефонах */
@media (max-width: 640px) {
	#site63-banner[data-compact="1"] { padding: 12px !important; font-size: 12px !important; line-height: 1.35 !important; }
	#site63-banner[data-compact="1"] strong { font-size: 15px !important; }
	#site63-banner[data-compact="1"] p { margin: 4px 0 !important; font-size: 12px !important; line-height: 1.35 !important; }
	#site63-banner[data-compact="1"] .site63-documents { margin-top: 4px !important; gap: 2px 8px !important; font-size: 10px !important; line-height: 1.25 !important; }
	#site63-banner[data-compact="1"] .site63-actions { margin-top: 8px !important; gap: 6px !important; }
	#site63-banner[data-compact="1"] .site63-actions button { min-height: 40px !important; padding: 8px 10px !important; font-size: 12px !important; }
}

/* Ошибка согласия CF7 — под чекбоксом, а не внизу первого экрана */
.callback__consent { flex-wrap: wrap; }
.callback__consent .wpcf7-not-valid-tip {
	position: static;
	flex: 1 0 100%;
	width: auto;
	max-width: 100%;
	margin-top: 6px;
	padding: 0;
	border-radius: 0;
	background: transparent;
	box-shadow: none;
	color: var(--red-dark);
	font-size: 12px;
	line-height: 1.3;
}

/* Ошибки полей CF7 — в потоке под полем, без наложения на следующую строку */
.callback__field .wpcf7-not-valid-tip {
	position: static;
	width: auto;
	max-width: 230px;
	margin-top: 4px;
	padding: 0;
	border-radius: 0;
	background: transparent;
	box-shadow: none;
	color: var(--red-dark);
	font-size: 12px;
	line-height: 1.3;
}

/* Вернуть прежний вид ошибок CF7: белые плашки, но в потоке под полем */
.callback__consent { display: block; flex-wrap: normal; }
.callback__consent .wpcf7-not-valid-tip,
.callback__field .wpcf7-not-valid-tip {
	position: static;
	display: inline-block;
	flex: none;
	width: auto;
	max-width: 100%;
	margin-top: 6px;
	padding: 4px 10px;
	border-radius: 8px;
	background: var(--white);
	box-shadow: 0 4px 14px rgba(16, 32, 64, 0.12);
	color: var(--ink);
	font-size: 12px;
	line-height: 1.3;
}
.callback__field .wpcf7-not-valid-tip { max-width: 244px; }

/* Обёртка телефона не должна растягивать белую плашку при ошибке */
.callback__field .wpcf7-form-control-wrap.has-phone-progress {
	background: transparent;
	border-radius: 0;
}

/* Текст ошибок CF7 — красный */
.callback__consent .wpcf7-not-valid-tip,
.callback__field .wpcf7-not-valid-tip {
	color: var(--red-dark);
}

/* Кнопка CF7 не растягивается на высоту строки с ошибкой */
.callback__row:not(.callback__row--wide) > .btn,
.callback__row:not(.callback__row--wide) > .s63-submit-wrap {
	align-self: flex-start;
}
.callback__row > .btn {
	height: 48px;
	min-height: 48px;
}
.callback__row > .s63-submit-wrap {
	height: 48px;
}
.callback__row > .s63-submit-wrap .btn {
	height: 48px;
	min-height: 48px;
}

/* Нативный спиннер CF7 не участвует в раскладке — используется свой */
.callback__row .wpcf7-spinner,
.callback .wpcf7-spinner {
	display: none;
}

/* На телефонах имя и телефон занимают всю ширину формы, включая модалку */
@media (max-width: 767px) {
	.callback__field,
	.callback__field--inline,
	.callback__row--stack .callback__field,
	#callback-modal .callback__field,
	#callback-modal .callback__row--stack .callback__field {
		flex: 0 0 100%;
		width: 100%;
		max-width: none;
	}
	.callback__field .callback__phone,
	.callback__row--stack .callback__field .callback__phone,
	#callback-modal .callback__field .callback__phone,
	.calc__result .callback__phone {
		width: 100%;
		max-width: none;
	}
	.callback__field .wpcf7-not-valid-tip,
	#callback-modal .callback__field .wpcf7-not-valid-tip {
		max-width: 100%;
	}
}
