/**
 * Единый UI-слой Sunrise Auto (staging).
 * Подключается последним, поэтому перекрывает uno.css и style.css.
 *
 * Селекторы подобраны по фактическому аудиту разметки сайта:
 *   btn-red-filled — 323 шт., btn-red-outline — 125, btn-black-outline — 52,
 *   плюс submit-кнопки форм, круглые иконочные кнопки и стрелки каруселей.
 * Крестики закрытия модалок (.btn-close) намеренно исключены.
 */

:root {
	--sa-red: #c81414;
	--sa-red-hot: #ff0000;
	--sa-red-deep: #a01010;
	--sa-line: rgba(255, 255, 255, .16);
	--sa-line-soft: rgba(255, 255, 255, .09);
	--sa-panel: #171717;
	--header-h: 60px;
	--sa-ease: cubic-bezier(.2, .7, .3, 1);
}

/* ─────────────────────────────  МЕНЮ  ───────────────────────────── */

#menu-toggler {
	border-radius: 999px;
	transition: background-color .16s var(--sa-ease), transform .16s var(--sa-ease);
}

#menu-toggler:hover {
	background: rgba(255, 255, 255, .08);
}

#menu-toggler:active {
	transform: scale(.9);
}

/* Мобильные: полноэкранная панель. */
#menu-mobile {
	display: block;
	position: fixed;
	inset: 0;
	background: #000;
	transform: translateX(-100%);
	transition: transform .3s var(--sa-ease);
	z-index: 200;
}

#menu-mobile.active {
	transform: translateX(0);
}

/* Десктоп: меню раскрывается панелью под шапкой, а не выезжает сбоку.
   Селекторы усилены (html body + id), потому что тема задаёт своё
   позиционирование для #menu-mobile и его внутренней обёртки. */
@media (min-width: 1024px) {
	html body #menu-mobile {
		display: block !important;
		position: fixed !important;
		top: var(--header-h, 65px) !important;
		left: 0 !important;
		right: 0 !important;
		bottom: auto !important;
		width: 100% !important;
		height: auto !important;
		background: transparent !important;
		transform: none !important;
		pointer-events: none;
		opacity: 0 !important;
		visibility: hidden !important;
		transition: opacity .18s var(--sa-ease), visibility .18s var(--sa-ease);
		z-index: 200 !important;
	}

	html body #menu-mobile.active {
		opacity: 1 !important;
		visibility: visible !important;
		pointer-events: auto;
		transform: none !important;
	}

	/* Затемнение остального экрана. */
	html body #menu-mobile::after {
		content: "";
		position: fixed !important;
		top: var(--header-h, 65px) !important;
		left: 0 !important;
		right: 0 !important;
		bottom: 0 !important;
		background: rgba(0, 0, 0, .55) !important;
		z-index: -1 !important;
	}

	/* Внутренняя обёртка темы: absolute + h-full превращаем в обычный поток. */
	html body #menu-mobile > div {
		position: static !important;
		top: auto !important;
		left: auto !important;
		right: auto !important;
		bottom: auto !important;
		width: 100% !important;
		height: auto !important;
		min-height: 0 !important;
		max-height: calc(100vh - var(--header-h, 65px)) !important;
		overflow-y: auto !important;
		background: var(--sa-panel) !important;
		border: 0;
		border-bottom: 1px solid var(--sa-line);
		box-shadow: 0 28px 64px rgba(0, 0, 0, .62);
		transform: translateY(-12px) !important;
		transition: transform .22s var(--sa-ease);
	}

	html body #menu-mobile.active > div {
		transform: translateY(0) !important;
	}

	/* Слой с отступами внутри панели. */
	html body #menu-mobile > div > div {
		position: static !important;
		max-width: 1200px;
		margin-inline: auto;
		width: 100% !important;
		height: auto !important;
		min-height: 0 !important;
		padding: 30px 24px 26px !important;
	}

	/* Список пунктов раскладываем в четыре колонки. */
	html body #menu-mobile ul.overflow-y-scroll {
		height: auto !important;
		max-height: none !important;
		overflow: visible !important;
		display: grid !important;
		grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
		gap: 10px 32px;
		align-items: start;
	}

	html body #menu-mobile ul.overflow-y-scroll > li {
		margin-top: 0 !important;
	}

	/* Нижний блок с кнопками: был приклеен к низу экрана. */
	html body #menu-mobile .absolute.bottom-15 {
		position: static !important;
		width: 100% !important;
		margin-top: 26px !important;
		padding-top: 20px;
		border-top: 1px solid var(--sa-line-soft);
		display: flex !important;
		flex-direction: row !important;
		align-items: center;
		gap: 14px;
		flex-wrap: wrap;
	}

	html body #menu-mobile .absolute.bottom-15 > button {
		width: auto !important;
		border: 1px solid var(--sa-line);
		border-radius: 999px;
		padding: 11px 22px !important;
	}

	html body #menu-mobile .absolute.bottom-15 > div {
		margin-left: auto;
	}
}


/* Активный раздел в меню заметнее: цвет уже есть, добавляем метку. */
#menu-mobile li > a.text-red,
#menu-mobile li.text-red > a,
#menu-mobile div.text-red > a {
	position: relative;
	font-weight: 600;
}

#menu-mobile li.text-red > a::before,
#menu-mobile div.text-red > a::before {
	content: "";
	position: absolute;
	left: -12px;
	top: 50%;
	width: 4px;
	height: 4px;
	border-radius: 50%;
	background: var(--sa-red-hot);
	transform: translateY(-50%);
}

body.sa-menu-open {
	overflow: hidden;
}

@media (min-width: 1024px) {
	body.sa-menu-open {
		overflow: auto;
	}
}

/* ───────────────────  БЕГУЩАЯ СТРОКА СДЕЛОК  ─────────────────── */

.sa-ticker {
	/* Секция героя наползает вверх, поэтому строку поднимаем над ней. */
	position: relative;
	z-index: 3;
	overflow: hidden;
	background: #0a0a0b;
	border-bottom: 1px solid var(--sa-line-soft);
	padding: 10px 0;
}

.sa-ticker__rail {
	display: flex;
	gap: 40px;
	width: max-content;
	animation: sa-slide 78s linear infinite;
}

.sa-ticker:hover .sa-ticker__rail {
	animation-play-state: paused;
}

@keyframes sa-slide {
	to {
		transform: translateX(-50%);
	}
}

.sa-ticker__item {
	display: inline-flex;
	align-items: baseline;
	gap: 9px;
	white-space: nowrap;
	font-size: 13px;
	color: #8c8c92;
}

.sa-ticker__label {
	color: #5e5e66;
	font-size: 11px;
	text-transform: uppercase;
	letter-spacing: .1em;
}

.sa-ticker__item b {
	color: #f2f0ee;
	font-weight: 500;
}

.sa-ticker__item i {
	font-style: normal;
	color: #5e5e66;
	font-size: 12px;
}

.sa-ticker__item em {
	font-style: normal;
	color: var(--sa-red-hot);
	font-variant-numeric: tabular-nums;
}

@media (prefers-reduced-motion: reduce) {
	.sa-ticker__rail {
		animation: none;
		flex-wrap: wrap;
		width: auto;
	}
}

/* ───────────────────  БЛОК «ЧТО МЫ ПРИВЕЗЛИ»  ─────────────────── */

.sa-cases__head {
	display: flex;
	align-items: flex-end;
	justify-content: space-between;
	gap: 24px;
	flex-wrap: wrap;
}

.sa-cases__lede {
	margin: 12px 0 0;
	color: #8c8c92;
	font-size: 15px;
	max-width: 62ch;
}

.sa-cases__count {
	margin: 0;
	text-align: right;
	line-height: 1.15;
}

.sa-cases__count b {
	display: block;
	font-size: 34px;
	font-weight: 700;
	font-variant-numeric: tabular-nums;
	color: #f2f0ee;
}

.sa-cases__count span {
	font-size: 11px;
	color: #5e5e66;
	text-transform: uppercase;
	letter-spacing: .09em;
}

.sa-cases__grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
	gap: 20px;
	margin-top: 34px;
}

.sa-case {
	position: relative;
	display: flex;
	flex-direction: column;
	gap: 16px;
	padding: 22px 22px 20px;
	border: 1px solid var(--sa-line);
	border-radius: 16px;
	background: rgba(255, 255, 255, .045);
	overflow: hidden;
	transition: transform .18s var(--sa-ease), box-shadow .18s var(--sa-ease),
		border-color .18s var(--sa-ease);
}

.sa-case::before {
	content: "";
	position: absolute;
	left: 0;
	top: 0;
	bottom: 0;
	width: 3px;
	background: var(--sa-red);
}

.sa-case:hover {
	transform: translateY(-4px);
	border-color: rgba(255, 0, 0, .45);
	box-shadow: 0 18px 38px rgba(0, 0, 0, .5);
}

.sa-case__top {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 14px;
}

.sa-case__top h3 {
	font-size: 20px;
	line-height: 1.2;
	font-weight: 600;
	margin: 0;
}

.sa-case__grade {
	flex-shrink: 0;
	font-size: 12px;
	padding: 4px 10px;
	border: 1px solid var(--sa-line);
	border-radius: 999px;
	font-variant-numeric: tabular-nums;
}

.sa-case__specs {
	margin: 0;
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 12px 16px;
}

.sa-case__specs > div {
	display: flex;
	flex-direction: column;
	gap: 3px;
}

.sa-case__specs dt {
	font-size: 11px;
	color: #5e5e66;
	text-transform: uppercase;
	letter-spacing: .07em;
}

.sa-case__specs dd {
	margin: 0;
	font-size: 14px;
	font-variant-numeric: tabular-nums;
}

.sa-case__paid {
	margin: auto 0 0;
	padding-top: 15px;
	border-top: 1px solid var(--sa-line-soft);
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: 12px;
}

.sa-case__paid span {
	font-size: 11px;
	color: #5e5e66;
	text-transform: uppercase;
	letter-spacing: .07em;
}

.sa-case__paid strong {
	font-size: 22px;
	font-weight: 700;
	font-variant-numeric: tabular-nums;
	color: var(--sa-red-hot);
}

@media (prefers-reduced-motion: reduce) {
	.sa-case,
	.sa-case:hover {
		transition: none;
		transform: none;
	}
}


/* ───────────────  КАРТОЧКА АВТО В КАТАЛОГЕ  ─────────────── */
/* Была растянута по вертикали: крупные отступы и четыре строки текста.
   Ужимаем — фото, цена, название и одна строка характеристик. */

.auto-card__grade {
	position: absolute;
	top: 10px;
	left: 10px;
	z-index: 2;
	font-size: 12px;
	line-height: 1;
	padding: 6px 10px;
	border-radius: 999px;
	background: rgba(0, 0, 0, .62);
	backdrop-filter: blur(6px);
	border: 1px solid rgba(255, 255, 255, .18);
	color: #fff;
	font-variant-numeric: tabular-nums;
}

.auto-card__body {
	margin-top: 12px;
	display: flex;
	flex-direction: column;
	gap: 4px;
}

.auto-card__price {
	font-size: 19px;
	font-weight: 700;
	line-height: 1.15;
	font-variant-numeric: tabular-nums;
}

.auto-card__title {
	font-size: 14.5px;
	font-weight: 500;
	line-height: 1.3;
	color: #e9e7e5;
}

.auto-card__specs {
	font-size: 12.5px;
	line-height: 1.35;
	color: #8c8c92;
	font-variant-numeric: tabular-nums;
}

@media (min-width: 768px) {
	.auto-card__price { font-size: 21px; }
	.auto-card__title { font-size: 15.5px; }
}

.auto-card__trim {
	font-size: 12.5px;
	line-height: 1.3;
	color: #6f6f76;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

/* ───────────────  БЕГУЩАЯ СТРОКА (обновлённая)  ─────────────── */
/* Стоит НАД фотографией, а не поверх неё: у .hero-block отрицательный
   margin-top, который раньше наезжал на строку — гасим его. */

.sa-ticker {
	position: relative;
	z-index: 4;
	background: linear-gradient(90deg, #17070a 0%, #1c0a0d 50%, #17070a 100%);
	border-top: 1px solid rgba(255, 0, 0, .22);
	border-bottom: 1px solid rgba(255, 0, 0, .22);
}

.sa-ticker[hidden] { display: none !important; }

.sa-ticker ~ .hero-block,
.sa-ticker + .hero-block { margin-top: 0 !important; }

.sa-ticker__inner {
	display: flex;
	align-items: stretch;
	gap: 0;
	max-width: 100%;
}

.sa-ticker__badge {
	flex: 0 0 auto;
	display: inline-flex;
	align-items: center;
	padding: 0 16px;
	background: var(--sa-red);
	color: #fff;
	font-size: 11px;
	font-weight: 600;
	letter-spacing: .14em;
	text-transform: uppercase;
	white-space: nowrap;
}

.sa-ticker__viewport {
	flex: 1 1 auto;
	overflow: hidden;
	padding: 10px 0;
	-webkit-mask-image: linear-gradient(90deg, transparent, #000 40px, #000 calc(100% - 40px), transparent);
	        mask-image: linear-gradient(90deg, transparent, #000 40px, #000 calc(100% - 40px), transparent);
}

.sa-ticker__rail {
	display: flex;
	gap: 38px;
	width: max-content;
	padding-left: 24px;
	animation: sa-slide 78s linear infinite;
}

.sa-ticker:hover .sa-ticker__rail,
.sa-ticker.is-held .sa-ticker__rail { animation-play-state: paused; }

@keyframes sa-slide { to { transform: translateX(-50%); } }

.sa-ticker__item {
	display: inline-flex;
	align-items: baseline;
	gap: 9px;
	white-space: nowrap;
	font-size: 13px;
	color: #9a9aa0;
}

.sa-ticker__item b { color: #f2f0ee; font-weight: 500; }
.sa-ticker__item i { font-style: normal; color: #6f6f76; font-size: 12px; }
.sa-ticker__item em {
	font-style: normal;
	color: #ff5a4f;
	font-variant-numeric: tabular-nums;
	font-weight: 500;
}

.sa-ticker__close {
	flex: 0 0 auto;
	width: 40px;
	background: transparent;
	border: 0;
	border-left: 1px solid rgba(255, 255, 255, .1);
	color: #8c8c92;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: color .16s, background-color .16s;
	padding: 0;
	border-radius: 0;
	box-shadow: none;
}

.sa-ticker__close:hover { color: #fff; background: rgba(255, 255, 255, .07); }
.sa-ticker__close:active { transform: scale(.9); }

@media (max-width: 640px) {
	.sa-ticker__badge { padding: 0 11px; font-size: 10px; letter-spacing: .1em; }
	.sa-ticker__item { font-size: 12px; }
}

@media (prefers-reduced-motion: reduce) {
	.sa-ticker__rail { animation: none; }
}

/* ───────────────  МЕДЛЕННАЯ АВТОПРОКРУТКА РЯДОВ  ─────────────── */
/* Ряд, который не помещается по ширине, едет сам. Наведение мышью или
   палец на нём — останавливают. Свайп прокручивает быстрее, отпустил — поехал. */

.sa-marquee {
	overflow-x: auto;
	scrollbar-width: none;
	-ms-overflow-style: none;
	scroll-behavior: auto;
	-webkit-overflow-scrolling: touch;
	cursor: grab;
}

.sa-marquee::-webkit-scrollbar { display: none; }
.sa-marquee:active { cursor: grabbing; }

.sa-marquee > * { flex-shrink: 0; }

/* ───────────────  ШАПКА ВНУТРИ МЕНЮ  ─────────────── */
.sa-menu-head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	padding-bottom: 18px;
	margin-bottom: 14px;
	border-bottom: 1px solid rgba(255, 255, 255, .1);
}

.sa-menu-logo img {
	height: 30px;
	width: auto;
	display: block;
}

.sa-menu-close {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 9px 15px;
	border-radius: 999px;
	border: 1px solid rgba(255, 255, 255, .16);
	background: rgba(255, 255, 255, .05);
	color: #f2f0ee;
	font-size: 13px;
	font-weight: 500;
	cursor: pointer;
	transition: background-color .16s var(--sa-ease), transform .16s var(--sa-ease);
	box-shadow: none;
}

.sa-menu-close:hover { background: rgba(255, 255, 255, .12); }
.sa-menu-close:active { transform: scale(.94); }

.sa-menu-home > a { font-weight: 600; }

@media (min-width: 1024px) {
	/* На десктопе панель широкая — шапку растягиваем по её ширине. */
	html body #menu-mobile .sa-menu-head {
		max-width: 1200px;
		margin-inline: auto;
		width: 100%;
	}
}


/* ───────────────  ПЕРВЫЙ ЭКРАН (баннеры)  ─────────────── */
/* Тексты нарисованы в изображениях, вёрстка их не дублирует.
   Кликабельна только кнопка, а не всё фото. */

.sa-hero { position: relative; overflow: hidden; background: var(--sa-bg, #000); }

.sa-hero__slide { position: relative; display: block; }

/* Каждый слайд обрезает СВОЮ картинку: баннер шире окна (min-width 1200px),
   и без обрезки его хвост наезжал на соседний слайд — на планшетной ширине
   слева торчала машина предыдущего баннера. */
.sa-hero .swiper-slide { overflow: hidden; }

/* Кнопка появляется только вместе с баннером: до загрузки картинки она
   висела бы на чёрном фоне. Класс is-ready ставит onload самой картинки. */
.sa-hero__actions { opacity: 0; visibility: hidden; transition: opacity .35s ease; }
.sa-hero__slide.is-ready .sa-hero__actions { opacity: 1; visibility: visible; }

.sa-hero__pic { display: block; }

.sa-hero__pic img {
	display: block;
	width: 100%;
	height: auto;
}

@media (min-width: 768px) {
	/* При сужении окна фото НЕ сжимается дальше 1200px: левый край остаётся
	   приклеен к границе, правый уходит за кадр (его прячет overflow у .sa-hero).
	   Текст занимает левые 55% картинки (~660px из 1200), поэтому до самого
	   перелома на 768px он остаётся целиком видимым; ниже 768px <picture>
	   подставляет вертикальный постер, и кнопка переходит на его разметку. */
	.sa-hero__pic img { min-width: 1200px; }
}

/* Заглушка, пока баннеры не загружены. */
.sa-hero__placeholder { aspect-ratio: 16 / 7; }
.sa-hero__placeholder--japan { background: linear-gradient(115deg,#14171c,#2b333f); }
.sa-hero__placeholder--china { background: linear-gradient(115deg,#171316,#39272b); }
.sa-hero__placeholder--korea { background: linear-gradient(115deg,#101418,#243240); }

@media (max-width: 767px) {
	.sa-hero__placeholder { aspect-ratio: 1284 / 2778; }
}

/* Кнопка — единственная ссылка; лежит поверх фото, ничего не перекрывая.

   Привязана к САМОЙ КАРТИНКЕ, а не к окну браузера: ширина картинки на
   десктопе равна max(100vw, 1200px) — см. min-width у img выше. Все доли
   ниже замерены по файлам баннеров, поэтому кнопка совпадает по ширине со
   строкой «Подбор, покупка и доставка в РФ» и остаётся под ней при любом
   сужении окна — она «едет» вместе с фото, а не с окном. */
.sa-hero__actions {
	position: absolute;
	z-index: 2;
	display: flex;
	padding-inline: 0;
	--img-w: 100vw;
	left: calc(var(--img-w) * var(--cta-left, .05));
	width: calc(var(--img-w) * var(--cta-width, .90));
	top: var(--cta-top, 86%);
	bottom: auto;
	right: auto;
	transform: none;
}

/* Значения сняты с самих баннеров (по пикселям): доля левого края,
   доля ширины строки «Подбор, покупка и доставка в РФ» и высота, где она
   заканчивается. У каждого файла своя вёрстка — поэтому по слайду.

   Вертикальные постеры (до 768px): */
.sa-hero__actions { --cta-left: .073; --cta-width: .549; --cta-top: 45.5%; }
.sa-hero__slide--japan .sa-hero__actions { --cta-left: .091; --cta-width: .510; --cta-top: 47.2%; }
.sa-hero__slide--korea .sa-hero__actions { --cta-left: .088; --cta-width: .587; --cta-top: 48.5%; }

/* Горизонтальные баннеры: */
@media (min-width: 768px) {
	.sa-hero__actions {
		--img-w: max(100vw, 1200px);
		--cta-left: .056;
		--cta-width: .220;
		--cta-top: 74.4%;
	}
	.sa-hero__slide--japan .sa-hero__actions { --cta-left: .044; --cta-width: .197; --cta-top: 79.4%; }
	.sa-hero__slide--korea .sa-hero__actions { --cta-left: .041; --cta-width: .248; --cta-top: 74.5%; }
}

.sa-hero__cta {
	display: flex;
	width: 100%;
	box-sizing: border-box;
	align-items: center;
	justify-content: center;
	gap: 10px;
	padding: 15px 26px;
	border-radius: 999px;
	background: var(--sa-red);
	color: #fff;
	font-size: clamp(11.5px, 3.2vw, 15px);
	font-weight: 600;
	text-decoration: none;
	white-space: nowrap;
	background-image: linear-gradient(180deg, rgba(255,255,255,.18), rgba(255,255,255,0) 48%);
	box-shadow:
		inset 0 1px 0 rgba(255,255,255,.3),
		0 3px 0 var(--sa-red-deep),
		0 10px 24px rgba(200,20,20,.42);
	transition: transform .16s var(--sa-ease), background-color .16s var(--sa-ease), box-shadow .16s var(--sa-ease);
}

.sa-hero__cta:hover {
	background-color: var(--sa-red-hot);
	transform: translateY(-2px);
	box-shadow:
		inset 0 1px 0 rgba(255,255,255,.36),
		0 5px 0 var(--sa-red-deep),
		0 16px 32px rgba(232,34,28,.5);
}

.sa-hero__cta:active {
	transform: translateY(2px) scale(.985);
	box-shadow: inset 0 3px 7px rgba(0,0,0,.42), 0 2px 6px rgba(200,20,20,.3);
}

@media (min-width: 768px) {
	/* Ширина кнопки задана строкой на баннере, поэтому шрифт подстраивается,
	   а не наоборот: на узком окне текст ужимается, но не вылезает. */
	.sa-hero__cta { font-size: clamp(12px, 1.1vw, 15.5px); padding: 13px clamp(10px, 1.4vw, 26px); }
}



.sa-hero__nav {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	z-index: 5;
	width: 46px;
	height: 46px;
	border-radius: 50%;
	border: 1px solid rgba(255,255,255,.25);
	background: rgba(0,0,0,.42);
	-webkit-backdrop-filter: blur(8px);
	        backdrop-filter: blur(8px);
	color: #fff;
	display: none;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	transition: background-color .16s, transform .16s;
}

.sa-hero__nav--prev { left: 18px; }
.sa-hero__nav--next { right: 18px; }
.sa-hero__nav:hover { background: var(--sa-red); transform: translateY(-50%) scale(1.06); }
.sa-hero__nav:active { transform: translateY(-50%) scale(.93); }

@media (min-width: 768px) { .sa-hero__nav { display: flex; } }

.sa-hero__dots {
	position: absolute;
	bottom: 14px;
	left: 0; right: 0;
	z-index: 5;
	display: flex;
	justify-content: center;
	gap: 8px;
}

.sa-hero__dots .swiper-pagination-bullet {
	width: 8px; height: 8px;
	border-radius: 999px;
	background: rgba(255,255,255,.4);
	opacity: 1;
	transition: width .2s, background-color .2s;
}

.sa-hero__dots .swiper-pagination-bullet-active {
	width: 26px;
	background: var(--sa-red-hot);
}

/* ═══════════════════════════════════════════════════════════════════════
   ОДИН СТИЛЬ ДЛЯ ВСЕХ ЭФФЕКТОВ
   Палитра: красный (#c81414 / var(--sa-red-hot)), тлеющий оранжевый (var(--sa-ember)) для
   бликов и свечения, тёмно-красный (var(--sa-red-deep)) для тени. Синих, фиолетовых и
   прочих чужих оттенков в эффектах нет — всё греется одним цветом.
   ═══════════════════════════════════════════════════════════════════════ */
:root {
	--sa-ember: #ff0000;
	--sa-crimson: #a01010;
	--sa-muted: #95959c;
	--sa-ink: #ffffff;
	--sa-spring: cubic-bezier(.34, 1.4, .64, 1);
	--sa-soft: cubic-bezier(.2, .8, .2, 1);
}

/* ───────────────  ГРАДИЕНТНЫЕ КНОПКИ  ───────────────
   Радиальный градиент с точкой, которая при наведении «переезжает» —
   для этого позиции и стопы объявлены как анимируемые свойства. */
@property --sa-pos-x    { syntax: '<percentage>'; initial-value: 11.14%;  inherits: false; }
@property --sa-pos-y    { syntax: '<percentage>'; initial-value: 140%;    inherits: false; }
@property --sa-spread-x { syntax: '<percentage>'; initial-value: 150%;    inherits: false; }
@property --sa-spread-y { syntax: '<percentage>'; initial-value: 180.06%; inherits: false; }
@property --sa-stop-1   { syntax: '<percentage>'; initial-value: 37.35%;  inherits: false; }
@property --sa-stop-2   { syntax: '<percentage>'; initial-value: 61.36%;  inherits: false; }
@property --sa-stop-3   { syntax: '<percentage>'; initial-value: 78.42%;  inherits: false; }
@property --sa-stop-4   { syntax: '<percentage>'; initial-value: 89.52%;  inherits: false; }
@property --sa-stop-5   { syntax: '<percentage>'; initial-value: 100%;    inherits: false; }
@property --sa-border-angle { syntax: '<angle>';  initial-value: 20deg;   inherits: false; }
@property --sa-border-c1 { syntax: '<color>'; initial-value: rgba(255,255,255,.12); inherits: false; }
@property --sa-border-c2 { syntax: '<color>'; initial-value: rgba(255,255,255,.06); inherits: false; }

.sa-btn,
.sa-hero__cta {
	--c1: #2a0707; --c2: #a01010; --c3: #c81414; --c4: var(--sa-red); --c5: var(--sa-red-hot);
	position: relative;
	isolation: isolate;
	display: inline-flex; align-items: center; justify-content: center; gap: 8px;
	border: 0;
	border-radius: 11px !important;
	color: #fff;
	font-weight: 700;
	letter-spacing: .01em;
	text-decoration: none;
	cursor: pointer;
	background-image: none;
	background: radial-gradient(var(--sa-spread-x) var(--sa-spread-y) at var(--sa-pos-x) var(--sa-pos-y),
		var(--c1) var(--sa-stop-1), var(--c2) var(--sa-stop-2), var(--c3) var(--sa-stop-3),
		var(--c4) var(--sa-stop-4), var(--c5) var(--sa-stop-5));
	box-shadow: 0 6px 18px rgba(200, 20, 20, .22), inset 0 1px 0 rgba(255, 255, 255, .12);
	transition:
		--sa-pos-x .5s, --sa-pos-y .5s, --sa-spread-x .5s, --sa-spread-y .5s,
		--sa-stop-1 .5s, --sa-stop-2 .5s, --sa-stop-3 .5s, --sa-stop-4 .5s, --sa-stop-5 .5s,
		--sa-border-angle .5s, --sa-border-c1 .5s, --sa-border-c2 .5s,
		box-shadow .3s var(--sa-soft), transform .18s var(--sa-soft);
}
.sa-btn { min-width: 132px; padding: 14px 32px; font-size: 15px; line-height: 1.2; }
/* Кромка — градиентная рамка в 1px, живёт на псевдоэлементе, чтобы не мешать тексту. */
.sa-btn::before,
.sa-hero__cta::before {
	content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 1px;
	background: linear-gradient(var(--sa-border-angle), var(--sa-border-c1), var(--sa-border-c2));
	-webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
	        mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
	-webkit-mask-composite: xor; mask-composite: exclude;
	pointer-events: none; z-index: 1;
}
.sa-btn::after, .sa-hero__cta::after { content: none; }
.sa-btn:hover, .sa-btn:focus-visible,
.sa-hero__cta:hover, .sa-hero__cta:focus-visible {
	--sa-pos-x: 0%; --sa-pos-y: 91.51%; --sa-spread-x: 120.24%; --sa-spread-y: 103.18%;
	--sa-stop-1: 0%; --sa-stop-2: 8.8%; --sa-stop-3: 21.44%; --sa-stop-4: 71.34%; --sa-stop-5: 85.76%;
	--sa-border-angle: 190deg;
	--sa-border-c1: rgba(255, 0, 0, .55); --sa-border-c2: rgba(255, 255, 255, .35);
	box-shadow: 0 12px 30px rgba(255, 0, 0, .38), 0 0 0 1px rgba(255, 0, 0, .18), inset 0 1px 0 rgba(255, 255, 255, .18);
	transform: translateY(-1px);
	background-color: transparent;
}
.sa-btn:active, .sa-hero__cta:active { transform: translateY(1px) scale(.985); box-shadow: 0 4px 12px rgba(200, 20, 20, .28); }
.sa-btn:focus-visible, .sa-hero__cta:focus-visible { outline: 2px solid rgba(255, 0, 0, .7); outline-offset: 3px; }
/* Контурная — тот же градиент, но только на кромке. */
.sa-btn--ghost { background: rgba(255, 255, 255, .04); box-shadow: none; color: var(--sa-ink); }
.sa-btn--ghost::before { --sa-border-c1: rgba(255, 0, 0, .7); --sa-border-c2: rgba(255, 0, 0, .35); }
.sa-btn--ghost:hover { background: rgba(200, 20, 20, .14); box-shadow: 0 8px 22px rgba(200, 20, 20, .18); }
.sa-btn--sm { min-width: 0; padding: 10px 18px; font-size: 13.5px; }
.sa-btn > * { position: relative; z-index: 2; }
.sa-btn svg { flex: none; }

/* ───────────────  ЖИДКОЕ СТЕКЛО  ───────────────
   Полупрозрачная плоскость с размытием фона, тонкой светлой кромкой и
   лёгким искажением того, что за ней (SVG-фильтр, где поддерживается). */
.sa-glass {
	position: relative; isolation: isolate;
	background: rgba(18, 18, 22, .62);
	-webkit-backdrop-filter: blur(18px) saturate(140%);
	        backdrop-filter: blur(18px) saturate(140%);
	border: 1px solid rgba(255, 255, 255, .1);
	box-shadow:
		0 2px 6px rgba(0, 0, 0, .18), 0 22px 48px rgba(0, 0, 0, .45),
		inset 3px 3px .5px -3.5px rgba(255, 255, 255, .09),
		inset -3px -3px .5px -3.5px rgba(255, 255, 255, .55),
		inset 1px 1px 1px -.5px rgba(255, 255, 255, .45),
		inset -1px -1px 1px -.5px rgba(255, 255, 255, .45),
		inset 0 0 6px 6px rgba(255, 255, 255, .06),
		inset 0 0 2px 2px rgba(255, 255, 255, .04),
		0 0 12px rgba(200, 20, 20, .08);
}
.sa-glass::after {
	content: ""; position: absolute; inset: 0; z-index: -1; border-radius: inherit; pointer-events: none;
	-webkit-backdrop-filter: url(#sa-glass-filter);
	        backdrop-filter: url(#sa-glass-filter);
}
/* Карточки авто — то же стекло, но спокойнее: их много, и блики не должны спорить с фото. */
.sa-glass--soft, .sa-glass.sa-card {
	background: rgba(22, 22, 26, .72);
	-webkit-backdrop-filter: blur(12px) saturate(120%);
	        backdrop-filter: blur(12px) saturate(120%);
	border-color: rgba(255, 255, 255, .09);
	box-shadow:
		0 2px 6px rgba(0, 0, 0, .18), 0 10px 26px rgba(0, 0, 0, .35),
		inset 1px 1px 1px -.5px rgba(255, 255, 255, .28),
		inset -1px -1px 1px -.5px rgba(255, 255, 255, .22),
		inset 0 0 4px 4px rgba(255, 255, 255, .035);
	transition: transform .25s var(--sa-soft), box-shadow .25s var(--sa-soft), border-color .25s;
}
.sa-glass.sa-card:hover {
	transform: translateY(-4px);
	border-color: rgba(255, 0, 0, .35);
	box-shadow: 0 6px 14px rgba(0, 0, 0, .25), 0 24px 44px rgba(0, 0, 0, .45), 0 0 0 1px rgba(255, 0, 0, .16),
		inset 1px 1px 1px -.5px rgba(255, 255, 255, .35), inset 0 0 4px 4px rgba(255, 255, 255, .04);
}

/* ───────────────  ШАПКА  ───────────────
   Одна пилюля по центру. Её ширина — --sa-bar-w; панель разделов
   раскрывается ровно на эту ширину, поэтому переменная одна на обоих. */
:root { --sa-bar-w: min(920px, 96vw); }

/* У полосы шапки нет собственного фона: при скролле над страницей плывёт
   только пилюля. Клики сквозь пустую полосу проходят к содержимому. */
.sa-topbar { position: sticky; top: 0; z-index: 60; background: none; pointer-events: none; }
.sa-menubar, .sa-sections { pointer-events: auto; }
.sa-sections:not(.is-open) { pointer-events: none; }
.sa-topbar__row { display: flex; justify-content: center; align-items: center; height: 100px; position: relative; }
.sa-topbar [hidden] { display: none !important; }
.sa-ico { display: block; }

/* Пилюля: слева меню и телефон, в центре логотип, справа соцсети и ЛК.
   Фон — живой WebGL-градиент (js/wave.js) в наших цветах; пока он не поднялся
   или WebGL нет — обычный тёмный градиент. */
.sa-menubar {
	position: relative; overflow: visible;
	width: var(--sa-bar-w); height: 58px; padding: 6px 7px; border-radius: 20px;
	/* Боковым колонкам зарезервировано 350px — хватает на одну раскрытую кнопку,
	   поэтому при раскрытии соседи сдвигаются внутри своей колонки и до лого не доходят. */
	display: grid; grid-template-columns: minmax(350px, 1fr) auto minmax(350px, 1fr); align-items: center;
	background: linear-gradient(180deg, rgba(40, 8, 10, .92), rgba(22, 4, 5, .8));
	border: 1px solid rgba(255, 255, 255, .1);
	box-shadow: 0 22px 50px rgba(0, 0, 0, .6), 0 6px 16px rgba(0, 0, 0, .35), 0 0 0 1px rgba(200, 20, 20, .1), inset 0 1px 0 rgba(255, 255, 255, .08);
	font-size: 15px;
}
/* Кинетическая сетка убрана из разметки (canvas .sa-menubar__wave); правила ниже оставлены на случай возврата. */
.sa-menubar__wave { position: absolute; inset: 0; width: 100%; height: 100%; border-radius: inherit; z-index: 0;
	opacity: 0; transition: opacity .35s ease; }
.sa-menubar__wave.is-live { opacity: 1; }
/* Затемняющая вуаль поверх градиента — чтобы белые надписи читались всегда. */
.sa-menubar__shade { position: absolute; inset: 0; border-radius: inherit; z-index: 0; pointer-events: none; transition: background .25s;
	background: none; }
.sa-menubar__glow { display: none; }
.sa-menubar > :not(.sa-menubar__wave):not(.sa-menubar__shade) { position: relative; z-index: 1; }
.sa-menubar__side { display: flex; align-items: center; gap: 8px; min-width: 0; }
.sa-menubar__side--l { justify-self: start; }
.sa-menubar__side--r { justify-self: end; justify-content: flex-end; }
.sa-menubar__logo { justify-self: center; display: flex; align-items: center; padding: 0 10px; }
/* Логотип почти во всю высоту плашки: внутри 58px, лого 48px — по 5px воздуха. */
.sa-menubar__logo img { display: block; height: 48px; width: auto; filter: drop-shadow(0 2px 8px rgba(0, 0, 0, .55)); }
.sa-menubar__phone { display: inline-flex; align-items: center; gap: 7px; color: #fff; text-decoration: none;
	font-size: 15px; font-weight: 700; letter-spacing: .01em; white-space: nowrap; padding: 0 6px; transition: color .2s; }
.sa-menubar__phone .sa-ico { color: var(--sa-ember); }
.sa-menubar__phone { padding: 9px 12px; border-radius: 12px; transition: color .2s, background-color .25s; }
.sa-menubar__phone:hover { color: #fff; background: rgba(8, 8, 10, .72); }
/* Под курсором на телефоне сетка гаснет, чтобы номер не засвечивался. */
.sa-menubar:has(.sa-menubar__phone:hover) .sa-menubar__wave { opacity: .3; }
.sa-menubar:has(.sa-menubar__phone:hover) .sa-menubar__shade { background: linear-gradient(180deg, rgba(8, 8, 10, .35), rgba(8, 8, 10, .55)); }

/* Раскрывающаяся кнопка: кружок с иконкой → при наведении растёт в подпись,
   иконка схлопывается, подпись вырастает, под кнопкой загорается свечение. */
.sa-xbtn {
	--w: 120px;
	position: relative; width: 44px; height: 44px; border-radius: 999px; border: 1px solid rgba(255, 255, 255, .14);
	background: rgba(255, 255, 255, .08); color: #fff; cursor: pointer; text-decoration: none; padding: 0;
	display: inline-flex; align-items: center; justify-content: center; flex: none;
	transition: width .5s var(--sa-soft), border-color .5s, box-shadow .5s;
	isolation: isolate;
}
.sa-xbtn__bg { position: absolute; inset: 0; border-radius: inherit; z-index: 0; opacity: 0;
	background: linear-gradient(45deg, var(--g1), var(--g2)); transition: opacity .5s; }
.sa-xbtn__glow { position: absolute; left: 0; right: 0; top: 10px; height: 100%; border-radius: inherit; z-index: -1; opacity: 0;
	background: linear-gradient(45deg, var(--g1), var(--g2)); filter: blur(15px); transition: opacity .5s; }
.sa-xbtn__ico { position: relative; z-index: 1; display: inline-flex; transition: transform .5s var(--sa-soft); }
.sa-xbtn__ico svg { display: block; }
.sa-xbtn__label { position: absolute; inset: 0; z-index: 1; display: flex; align-items: center; justify-content: center;
	color: #fff; text-transform: uppercase; letter-spacing: .06em; font-size: 12.5px; font-weight: 700; white-space: nowrap;
	transform: scale(0); transition: transform .5s var(--sa-spring) .15s; }
.sa-xbtn__label { gap: 8px; }
.sa-xbtn__glyph {
	position: relative; overflow: hidden; width: 26px; height: 26px; border-radius: 7px; flex: none;
	display: inline-flex; align-items: center; justify-content: center; color: #fff;
	background: rgba(255, 255, 255, .2); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .35);
}
.sa-xbtn__glyph svg { width: 14px; height: 14px; }
.sa-xbtn__glyph::after { content: ""; position: absolute; top: 0; bottom: 0; left: -70%; width: 55%;
	background: linear-gradient(105deg, transparent, rgba(255, 255, 255, .6), transparent);
	transform: skewX(-20deg); animation: saShine2 2.6s ease infinite; pointer-events: none; }
.sa-xbtn:hover, .sa-xbtn:focus-visible, .sa-xbtn[aria-expanded="true"] { width: var(--w); border-color: transparent; }
.sa-xbtn:hover .sa-xbtn__bg, .sa-xbtn:focus-visible .sa-xbtn__bg, .sa-xbtn[aria-expanded="true"] .sa-xbtn__bg { opacity: 1; }
.sa-xbtn:hover .sa-xbtn__glow, .sa-xbtn:focus-visible .sa-xbtn__glow, .sa-xbtn[aria-expanded="true"] .sa-xbtn__glow { opacity: .5; }
.sa-xbtn:hover .sa-xbtn__ico, .sa-xbtn:focus-visible .sa-xbtn__ico, .sa-xbtn[aria-expanded="true"] .sa-xbtn__ico { transform: scale(0); transition-delay: 0s; }
.sa-xbtn:hover .sa-xbtn__label, .sa-xbtn:focus-visible .sa-xbtn__label, .sa-xbtn[aria-expanded="true"] .sa-xbtn__label { transform: scale(1); }

/* Три линии бургера складываются в крестик, пока кнопка раскрыта. */
.sa-burger line { transform-box: fill-box; transition: transform .45s var(--sa-spring), opacity .2s ease-in-out; }
.sa-burger .l1 { transform-origin: top right; }
.sa-burger .l3 { transform-origin: bottom right; }
.sa-burger[aria-expanded="true"] .l1 { transform: translate(-2.35px, .35px) rotate(-45deg); }
.sa-burger[aria-expanded="true"] .l2 { opacity: 0; }
.sa-burger[aria-expanded="true"] .l3 { transform: translate(-2.35px, -.35px) rotate(45deg); }

/* Правый край пилюли: вход или аватар. */
.sa-account { position: relative; display: flex; align-items: center; }
.sa-account__avatar {
	width: 44px; height: 44px; border-radius: 50%; padding: 0; overflow: hidden; cursor: pointer;
	border: 2px solid rgba(255, 255, 255, .18); background: linear-gradient(135deg, var(--sa-red), var(--sa-ember));
	color: #fff; font-weight: 800; font-size: 13px; display: inline-flex; align-items: center; justify-content: center;
	transition: transform .2s var(--sa-spring), box-shadow .2s;
}
.sa-account__avatar:hover, .sa-account__avatar[aria-expanded="true"] { transform: scale(1.06); box-shadow: 0 0 0 4px rgba(255, 0, 0, .22); }
.sa-account__avatar img { width: 100%; height: 100%; object-fit: cover; display: block; }
.sa-account__menu {
	position: absolute; right: -4px; top: calc(100% + 14px); width: 310px; z-index: 70;
	border-radius: 18px; padding: 6px;
	opacity: 0; transform: translateY(-6px) scale(.98); transform-origin: top right;
	transition: opacity .2s var(--sa-soft), transform .25s var(--sa-spring);
}
.sa-account__menu.is-open { opacity: 1; transform: none; }
.sa-account__head { display: flex; align-items: center; gap: 10px; padding: 10px 10px 12px; }
.sa-account__pic {
	width: 40px; height: 40px; border-radius: 50%; overflow: hidden; flex: none;
	background: linear-gradient(135deg, var(--sa-red), var(--sa-ember)); color: #fff;
	display: inline-flex; align-items: center; justify-content: center; font-weight: 800; font-size: 13px;
	border: 1px solid rgba(255, 255, 255, .18);
}
.sa-account__pic img { width: 100%; height: 100%; object-fit: cover; }
.sa-account__who { flex: 1; min-width: 0; }
.sa-account__who h3 { margin: 0; color: #fff; font-size: 14px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sa-account__who p { margin: 0; color: var(--sa-muted); font-size: 12px; }
.sa-account__status { font-size: 11px; padding: 3px 8px; border-radius: 6px; text-transform: capitalize;
	color: #4ec97f; background: rgba(78, 201, 127, .12); border: 1px solid rgba(78, 201, 127, .35); }
.sa-account__group { padding: 6px; border-top: 1px solid rgba(255, 255, 255, .07); }
.sa-account__group--last { margin-top: 4px; }
.sa-account__group a {
	display: flex; align-items: center; gap: 8px; padding: 9px 10px; border-radius: 10px;
	color: var(--sa-ink); text-decoration: none; font-size: 14px; font-weight: 500;
	transition: background-color .2s, padding-left .2s var(--sa-soft), color .2s;
}
.sa-account__group a .sa-ico { color: var(--sa-muted); }
.sa-account__group a span { flex: 1; }
.sa-account__group a:hover { background: rgba(255, 255, 255, .06); padding-left: 18px; }
.sa-account__group a.is-danger { color: var(--sa-red-hot); }
.sa-account__group a.is-danger .sa-ico { color: var(--sa-red-hot); }
.sa-account__group a.is-danger:hover { background: rgba(200, 20, 20, .14); }

/* Панель разделов — шириной ровно с пилюлю, раскрывается по высоте. */
.sa-sections {
	position: absolute; left: 50%; top: 100%; transform: translateX(-50%);
	width: var(--sa-bar-w);
	display: grid; grid-template-rows: 0fr; opacity: 0; pointer-events: none;
	transition: grid-template-rows .32s var(--sa-soft), opacity .25s var(--sa-soft);
}
.sa-sections.is-open { grid-template-rows: 1fr; opacity: 1; pointer-events: auto; }
.sa-sections__inner { overflow: hidden; }
.sa-sections__card { margin: 10px 0 24px; border-radius: 22px; overflow: visible;
	transform: translateY(-8px); transition: transform .32s var(--sa-spring); }
.sa-sections.is-open .sa-sections__card { transform: none; }

/* Шапка панели: домик слева, «Разделы сайта» прижаты к кнопке сворачивания. */
.sa-sections__head { display: flex; align-items: center; gap: 12px; padding: 14px 16px; border-bottom: 1px solid rgba(255, 255, 255, .08); }
.sa-sections__home {
	width: 40px; height: 40px; border-radius: 12px; flex: none; display: inline-flex; align-items: center; justify-content: center;
	color: var(--sa-red-hot); background: rgba(200, 20, 20, .12); border: 1px solid rgba(255, 0, 0, .3);
	transition: transform .25s var(--sa-spring), background-color .2s, color .2s;
}
.sa-sections__home:hover { color: #fff; background: var(--sa-red); transform: scale(1.06); }
.sa-sections__who { margin-left: auto; display: flex; align-items: center; gap: 10px; text-align: right; }
.sa-sections__who > div { order: -1; }
.sa-sections__who h2 { margin: 0; color: #fff; font-size: 16px; }
.sa-sections__who p { margin: 2px 0 0; color: var(--sa-muted); font-size: 12px; }
.sa-sections__mark { width: 40px; height: 40px; border-radius: 50%; flex: none; display: inline-flex; align-items: center; justify-content: center;
	background: linear-gradient(135deg, var(--sa-red), var(--sa-ember)); color: #fff; transition: transform .25s var(--sa-spring); }
.sa-sections__who:hover .sa-sections__mark { transform: scale(1.06); }
.sa-sections__close { width: 36px; height: 36px; border-radius: 50%; border: 0; background: rgba(255, 255, 255, .06); color: var(--sa-muted); cursor: pointer; flex: none;
	display: inline-flex; align-items: center; justify-content: center; transition: transform .25s var(--sa-spring), color .2s, background-color .2s; }
.sa-sections__close:hover { color: #fff; background: rgba(255, 255, 255, .12); transform: scale(1.08); }

/* Красная визитка: телефон, кнопка и соц-иконки с бликом справа от неё. */
.sa-sections__promo {
	margin: 14px; padding: 16px; border-radius: 16px; position: relative; overflow: hidden;
	background: linear-gradient(160deg, #3a0909 0%, var(--sa-red-deep) 45%, var(--sa-red) 80%, var(--sa-ember) 130%);
	box-shadow: inset 0 1px 0 rgba(255, 255, 255, .14), 0 14px 30px rgba(200, 20, 20, .22);
	display: flex; flex-direction: column; gap: 12px;
	transition: transform .3s var(--sa-spring);
}
.sa-sections__promo:hover { transform: scale(1.02); }
.sa-sections__promo-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.sa-sections__promo-top img { height: 22px; width: auto; }
.sa-sections__promo-top span { color: rgba(255, 255, 255, .7); font-size: 12px; }
.sa-sections__promo-phone { color: #fff; text-decoration: none; font-size: 22px; font-weight: 800; letter-spacing: .02em; }
.sa-sections__promo-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.sa-sections__promo .sa-btn { min-width: 0; padding: 12px 22px; font-size: 14px;
	--c1: #1a0404; --c2: #3a0808; --c3: #a01010; --c4: var(--sa-red-deep); --c5: #c81414;
	box-shadow: 0 8px 20px rgba(0, 0, 0, .35), inset 0 1px 0 rgba(255, 255, 255, .14); }
.sa-sections__socs { display: flex; gap: 8px; }

/* Соц-иконки — один в один из личного кабинета: бегущий блик и подпрыгивание. */
@keyframes saShine2 { 0% { left: -70%; } 35% { left: 130%; } 100% { left: 130%; } }
@keyframes saWiggle { 0%, 100% { transform: rotate(0); } 30% { transform: rotate(-14deg); } 70% { transform: rotate(11deg); } }
@keyframes saFly { 0% { transform: translate(0, 0); opacity: 1; } 45% { transform: translate(16px, -16px); opacity: 0; } 50% { transform: translate(-16px, 16px); opacity: 0; } 100% { transform: translate(0, 0); opacity: 1; } }
.sa-soc {
	position: relative; overflow: hidden; width: 36px; height: 36px; border-radius: 10px;
	display: flex; align-items: center; justify-content: center; color: #fff; text-decoration: none;
	box-shadow: 0 4px 12px rgba(0, 0, 0, .25), inset 0 1px 0 rgba(255, 255, 255, .25);
	transition: transform .25s ease, box-shadow .25s ease;
}
.sa-soc::after { content: ''; position: absolute; top: 0; bottom: 0; left: -70%; width: 55%;
	background: linear-gradient(105deg, transparent, rgba(255, 255, 255, .45), transparent);
	transform: skewX(-20deg); animation: saShine2 4.5s ease infinite; pointer-events: none; }
.sa-soc:hover { transform: translateY(-3px) scale(1.12); }
.sa-soc:hover .sa-glyph { animation: saWiggle .55s ease; }
.sa-soc-tg:hover .sa-glyph { animation: saFly .8s ease; }
.sa-soc-d1::after { animation-delay: .6s; }
.sa-soc-d2::after { animation-delay: 1.2s; }
.sa-soc-d3::after { animation-delay: 1.8s; }
.sa-soc-tg { background: linear-gradient(135deg, #37AEE2, #1E96C8); }
.sa-soc-wa { background: linear-gradient(135deg, #5FE07E, #25B34A); }
.sa-soc-yt { background: linear-gradient(135deg, #FF4E45, #D90000); }
.sa-soc-tg:hover { box-shadow: 0 8px 22px rgba(42, 171, 238, .5); }
.sa-soc-wa:hover { box-shadow: 0 8px 22px rgba(37, 211, 102, .5); }
.sa-soc-yt:hover { box-shadow: 0 8px 22px rgba(255, 0, 0, .45); }
.sa-glyph { display: block; }

/* Разделы: три колонки, пункты — кнопки-пилюли с «убегающим» текстом:
   подпись уезжает вправо и гаснет, навстречу выезжает та же подпись со стрелкой,
   а красная точка слева разрастается в заливку. Всё в одну строку. */
.sa-sections__groups { padding: 6px 14px 14px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px 12px; border-top: 1px solid rgba(255, 255, 255, .08); }
.sa-sections__group { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.sa-sections__group h5 { margin: 10px 8px 2px; color: var(--sa-muted); font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.sa-hbtn {
	position: relative; display: block; overflow: hidden; border-radius: 999px;
	border: 1px solid rgba(255, 255, 255, .12); background: rgba(255, 255, 255, .03);
	padding: 9px 14px; color: var(--sa-ink); text-decoration: none; font-size: 14px; font-weight: 600; white-space: nowrap;
	transition: border-color .3s, box-shadow .3s;
}
.sa-hbtn:hover { border-color: rgba(255, 0, 0, .45); box-shadow: 0 8px 22px rgba(200, 20, 20, .25); }
.sa-hbtn__t { position: relative; z-index: 2; display: inline-flex; align-items: center; gap: 8px;
	transform: translateX(4px); transition: transform .3s, opacity .3s; }
.sa-hbtn__t .sa-ico { color: var(--sa-muted); flex: none; }
.sa-hbtn:hover .sa-hbtn__t { transform: translateX(48px); opacity: 0; }
.sa-hbtn__t2 { position: absolute; inset: 0; z-index: 3; display: flex; align-items: center; justify-content: center; gap: 8px;
	color: #fff; transform: translateX(48px); opacity: 0; transition: transform .3s, opacity .3s; }
.sa-hbtn:hover .sa-hbtn__t2 { transform: translateX(-4px); opacity: 1; }
/* Точка в покое — маркер у левого края, до иконки; при наведении растёт в заливку. */
.sa-hbtn { padding-left: 24px; }
.sa-hbtn__dot { position: absolute; left: 10px; top: 50%; width: 7px; height: 7px; margin-top: -3.5px; border-radius: 8px; z-index: 1;
	background: var(--sa-red); box-shadow: 0 0 8px rgba(255, 0, 0, .6); transition: all .3s; }
.sa-hbtn:hover .sa-hbtn__dot { left: 0; top: 0; margin-top: 0; width: 100%; height: 100%; transform: scale(1.8); box-shadow: none;
	background: linear-gradient(45deg, var(--sa-red-deep), var(--sa-red) 55%, var(--sa-ember)); }
.sa-sections__flag { font-style: normal; font-size: 16px; line-height: 1; width: 18px; display: inline-flex; justify-content: center; flex: none; }

/* Подразделы Японии: всплывашка справа от пункта, при наведении или фокусе. */
.sa-sub { position: relative; }
.sa-sub__pop {
	position: absolute; left: calc(100% - 10px); top: -4px; z-index: 5; min-width: 190px;
	border-radius: 14px; padding: 6px;
	opacity: 0; visibility: hidden; transform: translateX(-6px) scale(.97); transform-origin: left top;
	transition: opacity .2s var(--sa-soft), transform .25s var(--sa-spring), visibility 0s .2s;
}
.sa-sub:hover .sa-sub__pop, .sa-sub:focus-within .sa-sub__pop { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
.sa-sub__pop a {
	display: flex; align-items: center; gap: 8px; padding: 9px 10px; border-radius: 9px;
	color: var(--sa-ink); text-decoration: none; font-size: 13.5px; font-weight: 500; white-space: nowrap;
	transition: background-color .2s, padding-left .2s var(--sa-soft);
}
.sa-sub__pop a .sa-ico { color: var(--sa-muted); }
.sa-sub__pop a:hover { background: rgba(200, 20, 20, .14); padding-left: 16px; color: #fff; }
.sa-sub__pop a:hover .sa-ico { color: var(--sa-ember); }

/* Узкие экраны. */
@media (max-width: 979px) {
	:root { --sa-bar-w: calc(100vw - 24px); }
	.sa-menubar { grid-template-columns: 1fr auto 1fr; }
	.sa-topbar__row { height: 78px; }
	.sa-menubar { height: 54px; padding: 5px; }
	.sa-menubar__logo img { height: 42px; }
	.sa-menubar__phone span { display: none; }
	.sa-menubar__side--r .sa-xbtn:not(.sa-account__login) { display: none; }
	.sa-xbtn:hover, .sa-xbtn:focus-visible { width: 44px; }
	.sa-xbtn:hover .sa-xbtn__ico, .sa-xbtn:focus-visible .sa-xbtn__ico { transform: none; }
	.sa-xbtn:hover .sa-xbtn__label, .sa-xbtn:focus-visible .sa-xbtn__label { transform: scale(0); }
	.sa-account__menu { width: min(310px, calc(100vw - 32px)); }
	.sa-sections__groups { grid-template-columns: 1fr; }
	.sa-sections__who p { display: none; }
	.sa-sub__pop { position: static; opacity: 1; visibility: visible; transform: none; padding: 0 0 4px 26px; min-width: 0;
		background: none; border: 0; box-shadow: none; backdrop-filter: none; }
	.sa-sub__pop::after { display: none; }
}

/* ───────────────  ШАПКА v4: город, контакты, заявка, VK/MAX  ─────────────── */
:root { --sa-bar-w: min(1240px, 97vw); }
.sa-menubar { grid-template-columns: minmax(540px, 1fr) auto minmax(440px, 1fr); }

/* Соцсети и «Заявка» окрашены и бликуют всегда — привлекают внимание и в покое. */
.sa-xbtn--lit { border-color: transparent; }
.sa-xbtn--lit .sa-xbtn__bg { opacity: 1; }
.sa-xbtn--lit .sa-xbtn__glow { opacity: .35; }
.sa-xbtn--lit:hover .sa-xbtn__glow { opacity: .6; }
/* Всегда раскрытая кнопка: подпись видна без наведения. */
.sa-xbtn--open { width: var(--w); border-color: transparent; }
/* Соцсети в шапке — контурные квадраты без цвета в покое: единственный акцент на плашке — «Заявка».
   При наведении ведут себя как личный кабинет: раскрываются в подпись и загораются фирменным красным. Меню, город и ЛК — круглые. */
.sa-xbtn--soc { border-radius: 10px; }
.sa-xbtn--soc .sa-xbtn__bg { overflow: hidden; }
.sa-xbtn--soc .sa-xbtn__bg::after { content: ""; position: absolute; top: 0; bottom: 0; left: -70%; width: 55%;
	background: linear-gradient(105deg, transparent, rgba(255, 255, 255, .45), transparent);
	transform: skewX(-20deg); animation: saShine2 4.5s ease infinite; pointer-events: none; }
.sa-xbtn--wa .sa-xbtn__bg::after { animation-delay: .6s; }
.sa-xbtn--yt .sa-xbtn__bg::after { animation-delay: 1.2s; }
.sa-xbtn--vk .sa-xbtn__bg::after { animation-delay: 1.8s; }
.sa-xbtn--max .sa-xbtn__bg::after { animation-delay: 2.4s; }
/* Блик показываем только когда фон зажёгся (наведение) — в покое кнопка тихая.
   Соцсети в раскрытом меню (.sa-soc) тоже без брендовых цветов — контур на тёмном. */
/* Соцсети в раскрытом меню — брендовые цвета, как в подвале. */
.sa-soc { border: 0; }
.sa-soc-tg { background: linear-gradient(135deg, #37AEE2, #1E96C8); }
.sa-soc-wa { background: linear-gradient(135deg, #5FE07E, #25B34A); }
.sa-soc-yt { background: linear-gradient(135deg, #FF4E45, #D90000); }
.sa-soc-vk { background: linear-gradient(135deg, #2F8CFF, #0055CC); }
.sa-soc-max { background: linear-gradient(135deg, #8C6BFF, #5B3BE8); }
.sa-soc-tg:hover { box-shadow: 0 8px 22px rgba(42, 171, 238, .5); }
.sa-soc-wa:hover { box-shadow: 0 8px 22px rgba(37, 211, 102, .5); }
.sa-soc-yt:hover { box-shadow: 0 8px 22px rgba(255, 0, 0, .45); }
.sa-soc-vk:hover { box-shadow: 0 8px 22px rgba(0, 119, 255, .45); }
.sa-soc-max:hover { box-shadow: 0 8px 22px rgba(110, 74, 255, .45); }
/* Соцсети в шапке чуть меньше круглых кнопок — ЛК и город на их фоне заметнее. */
.sa-menubar .sa-xbtn--soc { width: 38px; height: 38px; }
.sa-menubar .sa-xbtn--soc .sa-xbtn__ico svg { width: 15px; height: 15px; }
/* «Заявка» в шапке: полная подпись в две строки. */
.sa-xbtn--req .sa-xbtn__label { white-space: normal; text-align: center; line-height: 1.1; font-size: 11px; letter-spacing: .03em; padding: 0 10px; }
.sa-menubar .sa-xbtn--req.sa-xbtn--open { width: auto; min-width: 118px; }
.sa-xbtn--open .sa-xbtn__ico { transform: scale(0); }
.sa-xbtn--open .sa-xbtn__label { transform: scale(1); transition-delay: 0s; }
/* Город раскрыт всегда: название читается без наведения, метка-иконка остаётся слева от него. */
/* Ширина кнопки города — строго по названию: короткий город даёт узкую кнопку, длинный — шире. */
.sa-city__btn.sa-xbtn--open { width: auto; min-width: 44px; padding: 0 14px 0 11px; justify-content: flex-start; gap: 6px; }
.sa-city__btn.sa-xbtn--open .sa-xbtn__ico { transform: none; }
.sa-city__btn.sa-xbtn--open .sa-xbtn__label { position: static; inset: auto; justify-content: flex-start; }

/* Телефон: кнопка-раскрытие, не звонок. */
.sa-phone { position: relative; }
.sa-phone__btn { display: inline-flex; align-items: center; gap: 7px; height: 44px; padding: 0 12px; border-radius: 12px; border: 0;
	background: transparent; color: #fff; font: inherit; font-size: 15px; font-weight: 700; letter-spacing: .01em; white-space: nowrap; cursor: pointer;
	transition: background-color .25s, color .2s; }
.sa-phone__btn .sa-ico:first-child { color: var(--sa-ember); }
.sa-phone__btn .sa-ico:last-child { color: var(--sa-muted); transition: transform .3s var(--sa-spring); }
.sa-phone__btn:hover, .sa-phone__btn[aria-expanded="true"] { background: rgba(8, 8, 10, .72); }
.sa-phone__btn[aria-expanded="true"] .sa-ico:last-child { transform: rotate(180deg); color: #fff; }
.sa-menubar:has(.sa-phone__btn:hover) .sa-menubar__wave, .sa-menubar:has(.sa-phone__btn[aria-expanded="true"]) .sa-menubar__wave { opacity: .3; }
.sa-phone__pop { position: absolute; left: 0; top: calc(100% + 14px); width: 272px; z-index: 70; border-radius: 18px; padding: 14px 16px;
	opacity: 0; transform: translateY(-6px) scale(.98); transform-origin: top left; transition: opacity .2s var(--sa-soft), transform .25s var(--sa-spring); }
.sa-phone__pop.is-open { opacity: 1; transform: none; }
.sa-phone__main { display: block; text-decoration: none; padding: 4px 0 6px; }
.sa-phone__main b { display: block; color: #fff; font-size: 18px; }
.sa-phone__main span { color: var(--sa-muted); font-size: 12.5px; }
.sa-phone__sep { height: 1px; background: rgba(255, 255, 255, .08); margin: 10px 0; }
.sa-phone__row { display: flex; align-items: center; gap: 12px; padding: 8px 6px; border-radius: 10px; color: var(--sa-ink); text-decoration: none; font-size: 14px;
	transition: background-color .2s, padding-left .2s var(--sa-soft); }
.sa-phone__row .sa-ico, .sa-phone__row .sa-glyph { color: var(--sa-muted); flex: none; width: 18px; height: 18px; }
.sa-phone__row:hover { background: rgba(255, 255, 255, .06); padding-left: 12px; }
.sa-phone__row:hover .sa-ico, .sa-phone__row:hover .sa-glyph { color: var(--sa-ember); }
.sa-phone__row span { display: flex; flex-direction: column; line-height: 1.25; }
.sa-phone__row b { font-weight: 600; } .sa-phone__row small { color: var(--sa-muted); font-size: 12.5px; }

/* Город: кнопка-метка, раскрывается в название; окно выбора — на стекле. */
.sa-city { position: relative; }
.sa-city__pop { position: absolute; left: 0; top: calc(100% + 14px); width: 320px; z-index: 70; border-radius: 18px; padding: 14px;
	opacity: 0; transform: translateY(-6px) scale(.98); transform-origin: top left; transition: opacity .2s var(--sa-soft), transform .25s var(--sa-spring); }
.sa-city__pop.is-open { opacity: 1; transform: none; }
.sa-city__head h4 { margin: 0; color: #fff; font-size: 15px; } .sa-city__head p { margin: 2px 0 10px; color: var(--sa-muted); font-size: 12.5px; }
.sa-city__main { display: grid; gap: 6px; margin-bottom: 10px; }
.sa-city__main .sa-hbtn { width: 100%; text-align: left; font: inherit; font-size: 14px; font-weight: 600; cursor: pointer; }
.sa-city__search { display: flex; align-items: center; gap: 8px; padding: 8px 10px; border-radius: 10px; border: 1px solid rgba(255, 255, 255, .1); background: rgba(255, 255, 255, .04); color: var(--sa-muted); }
.sa-city__search input { flex: 1; background: none; border: 0; color: #fff; font: inherit; font-size: 14px; outline: none; }
.sa-city__list { margin-top: 8px; max-height: 190px; overflow: auto; display: flex; flex-wrap: wrap; gap: 6px; }
.sa-city__list button { border: 1px solid rgba(255, 255, 255, .1); background: rgba(255, 255, 255, .04); color: var(--sa-ink); font: inherit; font-size: 12.5px;
	padding: 5px 9px; border-radius: 8px; cursor: pointer; transition: background-color .2s, border-color .2s; }
.sa-city__list button:hover, .sa-city__list button.is-current { background: rgba(200, 20, 20, .18); border-color: rgba(255, 0, 0, .5); color: #fff; }
.sa-city__list button[hidden] { display: none; }
.sa-sections__city { display: none; }

/* Hero: сдвигаем баннер под плашку так, чтобы логотип на картинке лёг сразу под ней.
   Логотип начинается на 11.7% высоты кадра (= 6.6vw при ширине 100vw);
   плашка заканчивается на 86px. Ниже 1200px кадр фиксирован 1200px — считаем от него. */
@media (min-width: 1200px) { .sa-hero { margin-top: calc(-1 * (8px + 6.6vw)); } }
@media (min-width: 768px) and (max-width: 1199px) { .sa-hero { margin-top: -87px; } }

/* Планшет и телефон: соцсети и заявка уходят в панель, город — в шапку панели,
   панель прокручивается сама, страница под ней заперта. */
@media (max-width: 1199px) {
	:root { --sa-bar-w: calc(100vw - 24px); }
	.sa-menubar { grid-template-columns: 1fr auto 1fr; }
	.sa-menubar__side--r .sa-xbtn--soc, .sa-menubar__side--r .sa-xbtn--req, .sa-city { display: none; }
	.sa-phone__btn span { display: none; }
	.sa-phone__btn { padding: 0 10px; }
	.sa-sections__city { display: inline-flex; align-items: center; gap: 6px; height: 36px; padding: 0 12px; border-radius: 10px; border: 1px solid rgba(255, 0, 0, .35);
		background: rgba(200, 20, 20, .12); color: #fff; font: inherit; font-size: 13px; font-weight: 600; cursor: pointer; }
	.sa-sections__city .sa-ico { color: var(--sa-ember); }
	.sa-sections__inner { max-height: calc(100dvh - 110px); overflow-y: auto; overscroll-behavior: contain; -webkit-overflow-scrolling: touch; }
	.sa-sections__promo-row { flex-direction: column; align-items: stretch; }
	.sa-sections__socs { justify-content: center; }
}
@media (max-width: 979px) {
	.sa-topbar__row { height: 78px; }
	.sa-menubar { height: 54px; padding: 5px; }
	.sa-menubar__logo img { height: 42px; }
	.sa-xbtn:hover, .sa-xbtn:focus-visible { width: 44px; }
	.sa-xbtn:hover .sa-xbtn__ico, .sa-xbtn:focus-visible .sa-xbtn__ico { transform: none; }
	.sa-xbtn:hover .sa-xbtn__label, .sa-xbtn:focus-visible .sa-xbtn__label { transform: scale(0); }
	.sa-account__menu { width: min(310px, calc(100vw - 32px)); }
	.sa-sections__groups { grid-template-columns: 1fr; }
	.sa-sections__who p { display: none; }
	.sa-sub__pop { position: static; opacity: 1; visibility: visible; transform: none; padding: 0 0 4px 26px; min-width: 0; background: none; border: 0; box-shadow: none; backdrop-filter: none; }
	.sa-sub__pop::after { display: none; }
	.sa-city__pop { position: fixed; left: 12px; right: 12px; top: 90px; width: auto; }
	.sa-hero { margin-top: 0; }
}
body.sa-lock { overflow: hidden; touch-action: none; }

/* Карточки без фильтров: backdrop-filter и SVG-искажение на десятках карточек в 3D
   пересчитываются на каждом кадре и фризят скролл. Стеклянный вид у карточек
   держится на фоне и кромке, фильтры остаются только у всплывающих окон. */
.sa-glass.sa-card, .sa-glass--soft { -webkit-backdrop-filter: none; backdrop-filter: none; background: rgba(22, 22, 26, .96); }
.sa-glass.sa-card::after, .sa-glass--soft::after { display: none; }
.sa-ring__item .sa-card { will-change: transform; contain: layout paint; }

/* ---- мобильная шапка v2: кнопка «Заявка» живёт слева, и её тут прятать нужно тоже; страница не должна ехать вбок ---- */
html, body { overflow-x: clip; }
.sa-ticker { overflow: hidden; }
@media (max-width: 979px) {
	.sa-menubar .sa-xbtn--req { display: none !important; }
	.sa-menubar__side { gap: 6px; min-width: 0; }
	.sa-menubar { grid-template-columns: 1fr auto 1fr; }
}
@media (max-width: 479px) {
	.sa-menubar__logo img { height: 36px; }
	.sa-menubar .sa-phone, .sa-menubar .sa-xbtn--phone { display: none !important; }
}
