/* =========================================================
   Авто-Тайм — ОБЩИЙ СТИЛЬ (main.css)
   Идентичность «Приборная панель»: графитовые панели, насечки-тики,
   тахометр-сигнатура, redline-акцент, цифровые показания.
   Адаптив — adaptive.css, анимации/тахометр — animations.css
   ========================================================= */

:root {
	/* Палитра приборной панели */
	--graphite: #14171c;      /* асфальт / фон кластера */
	--graphite-2: #1b1f27;    /* приподнятая панель */
	--graphite-3: #232833;    /* поле ввода / вложенная панель */
	--bezel: #363c45;         /* безель / насечки */
	--bezel-soft: rgba(255, 255, 255, 0.08);
	--redline: #e6342a;       /* красная зона / срочность */
	--amber: #ffb020;         /* стрелка / предупреждение */
	--readout: #eef2f7;       /* показания на тёмном */
	--readout-dim: #8b94a2;   /* второстепенный текст */
	--ink: #14171c;           /* текст на светлом */

	--gradient-accent: linear-gradient(135deg, #ffb020 0%, #ff6a1f 55%, #e6342a 100%);
	--gradient-accent-hover: linear-gradient(135deg, #ffc23e 0%, #ff7a2f 55%, #f0463c 100%);

	--radius: 10px;
	--radius-sm: 6px;
	--container: 1220px;
	--gap: 22px;
	--font: 'Ubuntu', system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
	--font-display: 'Oswald', 'Ubuntu', system-ui, sans-serif;
	--font-num: 'Rajdhani', 'Oswald', system-ui, sans-serif;
	--shadow: 0 14px 40px rgba(0, 0, 0, 0.45);
	--shadow-soft: 0 8px 24px rgba(0, 0, 0, 0.12);
	--header-h: 74px;

	/* Единая шкала слоёв. Шапка создаёт контекст наложения (sticky + backdrop-filter),
	   поэтому панель меню и бургер живут ВНУТРИ него, а затемнение — строго ниже шапки. */
	--z-scroll-top: 60;
	--z-float: 70;
	--z-cookie: 80;
	--z-nav-overlay: 90;
	--z-header: 100;
	--z-nav-panel: 120;
	--z-burger: 130;
	--z-game: 400;
}

* {
	box-sizing: border-box;
}

html {
	scroll-behavior: smooth;
}

body {
	margin: 0;
	font-family: var(--font);
	font-weight: 400;
	color: var(--readout);
	background: var(--graphite);
	line-height: 1.6;
	overflow-x: hidden;
}

img {
	max-width: 100%;
	height: auto;
	display: block;
}

a {
	color: inherit;
	text-decoration: none;
	transition: color 0.2s ease, opacity 0.2s ease;
}

h1, h2, h3, h4 {
	font-family: var(--font-display);
	line-height: 1.05;
	margin: 0 0 0.5em;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.5px;
}

p {
	margin: 0 0 1em;
}

ul {
	margin: 0;
	padding: 0;
	list-style: none;
}

/* Цифровые показания — моноширинные табличные цифры */
.num,
.header-phone,
.readout {
	font-family: var(--font-num);
	font-variant-numeric: tabular-nums;
	letter-spacing: 0.5px;
}

.container {
	width: 100%;
	max-width: var(--container);
	margin: 0 auto;
	padding: 0 22px;
}

.container--narrow {
	max-width: 820px;
}

.section {
	padding: 74px 0;
	position: relative;
}

.section--center {
	text-align: center;
}

/* Заголовок секции с насечкой-тиком слева */
.section__title {
	font-size: clamp(26px, 4vw, 42px);
	text-align: center;
	margin-bottom: 44px;
	position: relative;
	color: var(--readout);
}

.section__title--left {
	text-align: left;
}

.section__title::after {
	content: "";
	display: block;
	width: 74px;
	height: 4px;
	margin: 16px auto 0;
	background: var(--gradient-accent);
	border-radius: 2px;
}

.section__title--left::after {
	margin-left: 0;
}

/* Насечки-шкала — используется как декоративный разделитель */
.tick-rule {
	height: 22px;
	background-image: repeating-linear-gradient(
		90deg,
		var(--bezel) 0,
		var(--bezel) 2px,
		transparent 2px,
		transparent 22px
	);
	opacity: 0.5;
	margin: 0 auto;
	max-width: var(--container);
}

/* ---------- Кнопки ---------- */
.btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	padding: 14px 28px;
	border: 2px solid transparent;
	border-radius: var(--radius-sm);
	font-family: var(--font-display);
	font-size: 16px;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 1px;
	cursor: pointer;
	text-align: center;
	transition: transform 0.15s ease, box-shadow 0.2s ease, background 0.2s ease, border-color 0.2s ease;
	background: var(--graphite-3);
	color: var(--readout);
}

.btn:hover {
	transform: translateY(-2px);
	box-shadow: var(--shadow);
}

.btn--accent {
	background: var(--gradient-accent);
	color: #fff;
	text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
	box-shadow: 0 8px 24px rgba(230, 52, 42, 0.35);
}

.btn--accent:hover {
	background: var(--gradient-accent-hover);
}

.btn--ghost {
	background: transparent;
	border-color: var(--bezel);
	color: var(--readout);
}

.btn--ghost:hover {
	border-color: var(--amber);
	color: var(--amber);
}

.btn--lg {
	padding: 16px 36px;
	font-size: 18px;
}

.btn--sm {
	padding: 9px 16px;
	font-size: 13px;
}

/* ---------- Topbar ---------- */
.topbar {
	background: #0d0f13;
	color: var(--readout-dim);
	font-size: 13px;
	border-bottom: 1px solid var(--bezel-soft);
	letter-spacing: 0.3px;
}

.topbar__inner {
	display: flex;
	flex-wrap: wrap;
	gap: 8px 28px;
	align-items: center;
	padding: 9px 22px;
}

.topbar__item {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	text-transform: uppercase;
	font-size: 12px;
	letter-spacing: 0.6px;
}

.topbar__email {
	margin-left: auto;
	text-transform: none;
}

.topbar__email a:hover {
	color: var(--amber);
}

/* Контакты внутри бургер-меню — на десктопе скрыты (дублируются в топбаре) */
.nav-contacts {
	display: none;
}

/* Кнопки-действия в бургер-меню — на десктопе скрыты */
.nav-actions {
	display: none;
	flex-direction: column;
	gap: 10px;
	margin-top: 22px;
}

.nav-actions__btn {
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 12px 16px;
	border-radius: var(--radius);
	font-family: var(--font-display);
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.5px;
	font-size: 14px;
	color: #fff;
}

.nav-actions__btn--telegram {
	background: #2aabee;
}

.nav-actions__btn--max {
	background: #6c5ce7;
}

.nav-actions__btn--whatsapp {
	background: #25d366;
}

.nav-actions__btn--call {
	background: var(--gradient-accent);
	text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.nav-actions__btn--call:hover {
	background: var(--gradient-accent-hover);
}

/* ---------- Header ---------- */
.site-header {
	position: sticky;
	top: 0;
	z-index: var(--z-header);
	border-bottom: 1px solid var(--bezel-soft);
}

/* Фон и блюр — в псевдоэлементе намеренно: backdrop-filter на самой шапке
   делал её containing block для fixed-панели меню, и закрытая панель
   (translateX(100%)) растягивала страницу вправо на свою ширину. */
.site-header::before {
	content: "";
	position: absolute;
	inset: 0;
	z-index: -1;
	background: rgba(20, 23, 28, 0.82);
	backdrop-filter: blur(12px) saturate(140%);
	-webkit-backdrop-filter: blur(12px) saturate(140%);
	pointer-events: none;
}

.site-header__inner {
	display: flex;
	align-items: center;
	gap: 24px;
	min-height: var(--header-h);
}

.brand {
	display: flex;
	flex-direction: column;
	line-height: 1;
}

.custom-logo-link {
	display: inline-block;
	line-height: 0;
}

.custom-logo {
	display: block;
	height: 54px;
	width: auto;
	max-width: 220px;
	/* Логотип чёрный (под светлый фон) — делаем белым для тёмной шапки. */
	filter: brightness(0) invert(1);
}

.brand__name {
	font-family: var(--font-display);
	font-size: 26px;
	font-weight: 700;
	color: var(--readout);
	letter-spacing: 1px;
	text-transform: uppercase;
}

.brand__name::before {
	content: "";
	display: inline-block;
	width: 10px;
	height: 10px;
	margin-right: 8px;
	border-radius: 50%;
	background: var(--redline);
	box-shadow: 0 0 10px var(--redline);
	vertical-align: middle;
}

.brand__tagline {
	font-size: 11px;
	color: var(--readout-dim);
	text-transform: uppercase;
	letter-spacing: 2px;
	margin-left: 18px;
}

.site-nav {
	margin-left: auto;
}

.nav-menu {
	display: flex;
	align-items: center;
	gap: 28px;
}

.nav-menu a {
	font-family: var(--font-display);
	font-weight: 500;
	text-transform: uppercase;
	font-size: 15px;
	letter-spacing: 0.6px;
	position: relative;
	padding: 6px 0;
	color: var(--readout);
}

.nav-menu a::after {
	content: "";
	position: absolute;
	left: 0;
	bottom: 0;
	width: 0;
	height: 2px;
	background: var(--amber);
	transition: width 0.25s ease;
}

.nav-menu a:hover::after,
.nav-menu .current-menu-item > a::after {
	width: 100%;
}

.site-header__phone {
	display: flex;
	flex-direction: column;
	align-items: flex-end;
}

.header-phone {
	font-size: 22px;
	font-weight: 700;
	white-space: nowrap;
	color: var(--readout);
}

.header-phone:hover {
	color: var(--amber);
}

.header-phone--second {
	font-size: 15px;
	color: var(--readout-dim);
}

/* ---------- Burger ---------- */
.burger {
	display: none;
	flex-direction: column;
	justify-content: center;
	gap: 5px;
	width: 44px;
	height: 44px;
	background: transparent;
	border: 0;
	cursor: pointer;
	padding: 8px;
	/* position обязателен: без него z-index не работает и выехавшая панель накрывает кнопку. */
	position: relative;
	z-index: var(--z-burger);
}

.burger span {
	display: block;
	height: 3px;
	width: 100%;
	background: var(--readout);
	border-radius: 3px;
	transition: transform 0.3s ease, opacity 0.2s ease, background 0.2s ease;
}

.burger.is-open span:nth-child(1) {
	transform: translateY(8px) rotate(45deg);
	background: var(--amber);
}

.burger.is-open span:nth-child(2) {
	opacity: 0;
}

.burger.is-open span:nth-child(3) {
	transform: translateY(-8px) rotate(-45deg);
	background: var(--amber);
}

.nav-overlay {
	display: none;
	position: fixed;
	inset: 0;
	background: rgba(0, 0, 0, 0.6);
	z-index: var(--z-nav-overlay);
	opacity: 0;
	transition: opacity 0.3s ease;
}

.nav-overlay.is-visible {
	display: block;
	opacity: 1;
}

/* ---------- HERO — инструментальный кластер ---------- */
.hero {
	position: relative;
	color: var(--readout);
	overflow: hidden;
	padding: 84px 0 96px;
}

.hero__overlay {
	position: absolute;
	inset: 0;
	background:
		radial-gradient(1200px 500px at 75% 15%, rgba(230, 52, 42, 0.18), transparent 60%),
		linear-gradient(120deg, rgba(13, 15, 19, 0.92) 0%, rgba(13, 15, 19, 0.62) 55%, rgba(13, 15, 19, 0.88) 100%);
	z-index: 1;
}

/* Плавный переход из hero в следующий блок */
.hero::after {
	content: "";
	position: absolute;
	left: 0;
	right: 0;
	bottom: 0;
	height: 160px;
	background: linear-gradient(to bottom, rgba(20, 23, 28, 0), var(--graphite));
	z-index: 1;
	pointer-events: none;
}

.hero__inner {
	position: relative;
	z-index: 2;
	display: grid;
	grid-template-columns: 1.15fr 0.85fr;
	gap: 44px;
	align-items: center;
}

.hero__kicker {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	font-family: var(--font-display);
	text-transform: uppercase;
	letter-spacing: 3px;
	font-size: 13px;
	color: var(--amber);
	margin-bottom: 14px;
}

.hero__kicker::before {
	content: "";
	width: 26px;
	height: 2px;
	background: var(--amber);
}

.hero__title {
	font-size: clamp(42px, 7.5vw, 78px);
	line-height: 0.92;
	margin-bottom: 16px;
	letter-spacing: 1px;
}

.hero__title .accent {
	color: var(--redline);
}

.hero__lead {
	font-size: 19px;
	color: var(--readout);
	font-weight: 400;
	margin-bottom: 24px;
	max-width: 34ch;
}

.hero__list {
	display: grid;
	gap: 10px;
	margin-bottom: 30px;
}

.hero__list li {
	position: relative;
	padding-left: 30px;
	color: #cdd4de;
}

.hero__list li::before {
	content: "";
	position: absolute;
	left: 0;
	top: 9px;
	width: 12px;
	height: 12px;
	background: var(--amber);
	clip-path: polygon(50% 0, 100% 50%, 50% 100%, 0 50%);
}

.hero__actions {
	display: flex;
	gap: 14px;
	flex-wrap: wrap;
	align-items: center;
}

/* Тахометр под hero-контентом */
.hero__gauge {
	margin-top: 34px;
	display: flex;
	align-items: center;
	gap: 18px;
}

.gauge {
	width: 190px;
	height: 190px;
	flex: 0 0 auto;
}

.gauge__caption {
	font-family: var(--font-display);
	text-transform: uppercase;
	letter-spacing: 1px;
	color: var(--readout-dim);
	font-size: 14px;
	max-width: 22ch;
}

.gauge__caption strong {
	color: var(--readout);
	display: block;
	font-size: 20px;
}

/* Форма-панель в hero */
.hero__form {
	position: relative;
}

/* ---------- Приборная панель (панель-обёртка) ---------- */
.panel {
	background:
		linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0) 40%),
		var(--graphite-2);
	border: 1px solid var(--bezel);
	border-radius: var(--radius);
	box-shadow: var(--shadow), inset 0 1px 0 rgba(255, 255, 255, 0.05);
	position: relative;
}

.panel--pad {
	padding: 28px;
}

/* Уголок-насечка у панели */
.panel::before {
	content: "";
	position: absolute;
	top: 12px;
	right: 12px;
	width: 26px;
	height: 26px;
	border-top: 2px solid var(--bezel);
	border-right: 2px solid var(--bezel);
	opacity: 0.8;
}

/* ---------- USP — плитки показаний ---------- */
.usp__grid {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: var(--gap);
}

.usp__card {
	padding: 26px 22px;
	text-align: left;
}

.usp__readout {
	font-family: var(--font-num);
	font-variant-numeric: tabular-nums;
	font-size: 42px;
	font-weight: 700;
	line-height: 1;
	color: var(--amber);
	margin-bottom: 10px;
	display: block;
}

.usp__card h3 {
	font-size: 17px;
	margin-bottom: 6px;
	color: var(--readout);
}

.usp__card p {
	margin: 0;
	color: var(--readout-dim);
	font-size: 14px;
}

/* ---------- Steps — шкала оборотов ---------- */
.steps {
	background: #0f1216;
}

.rev-scale {
	position: relative;
	margin-bottom: 46px;
	height: 46px;
}

.rev-scale__track {
	position: absolute;
	left: 0;
	right: 0;
	top: 50%;
	height: 6px;
	transform: translateY(-50%);
	border-radius: 3px;
	background:
		linear-gradient(90deg, var(--bezel) 0 66%, var(--redline) 66% 100%);
}

.rev-scale__ticks {
	position: absolute;
	inset: 0;
	background-image: repeating-linear-gradient(
		90deg,
		var(--bezel) 0,
		var(--bezel) 2px,
		transparent 2px,
		transparent 34px
	);
	opacity: 0.6;
}

.rev-scale__needle {
	position: absolute;
	top: 50%;
	left: 88%;
	width: 3px;
	height: 40px;
	background: var(--amber);
	transform: translate(-50%, -50%) rotate(18deg);
	transform-origin: bottom center;
	box-shadow: 0 0 12px var(--amber);
	border-radius: 2px;
}

.steps__grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: var(--gap);
}

.steps__item {
	padding: 34px 26px 26px;
	position: relative;
}

.steps__num {
	position: absolute;
	top: -22px;
	left: 26px;
	width: 46px;
	height: 46px;
	border-radius: 50%;
	background: var(--graphite);
	border: 2px solid var(--amber);
	color: var(--amber);
	display: grid;
	place-items: center;
	font-family: var(--font-num);
	font-size: 24px;
	font-weight: 700;
	box-shadow: 0 0 16px rgba(255, 176, 32, 0.35);
}

.steps__item--redline .steps__num {
	border-color: var(--redline);
	color: var(--redline);
	box-shadow: 0 0 16px rgba(230, 52, 42, 0.4);
}

.steps__item p {
	color: #cdd4de;
	margin: 0;
}

.steps__item a {
	color: var(--amber);
	font-weight: 700;
	white-space: nowrap;
	font-family: var(--font-num);
}

/* ---------- CTA parallax ---------- */
.cta-parallax {
	position: relative;
	color: var(--readout);
	text-align: center;
	padding: 92px 0;
	overflow: hidden;
}

/* Плавные переходы сверху и снизу к соседним тёмным блокам */
.cta-parallax::before,
.cta-parallax::after {
	content: "";
	position: absolute;
	left: 0;
	right: 0;
	height: 120px;
	z-index: 1;
	pointer-events: none;
}

.cta-parallax::before {
	top: 0;
	background: linear-gradient(to top, rgba(20, 23, 28, 0), var(--graphite));
}

.cta-parallax::after {
	bottom: 0;
	background: linear-gradient(to bottom, rgba(20, 23, 28, 0), var(--graphite));
}

.cta-parallax__overlay {
	position: absolute;
	inset: 0;
	background:
		radial-gradient(800px 400px at 50% 0, rgba(230, 52, 42, 0.25), transparent 60%),
		rgba(13, 15, 19, 0.78);
	z-index: 1;
}

.cta-parallax__inner {
	position: relative;
	z-index: 2;
}

.cta-parallax h2 {
	font-size: clamp(28px, 4.4vw, 46px);
}

.cta-parallax p {
	font-size: 18px;
	color: #cdd4de;
	margin-bottom: 26px;
}

/* ---------- Types — плитки ---------- */
.types__grid {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 14px;
}

.types__item {
	padding: 20px 18px;
	text-align: left;
	font-weight: 500;
	font-size: 15px;
	color: var(--readout);
	display: flex;
	align-items: center;
	gap: 10px;
}

.types__item::before {
	content: "";
	width: 8px;
	height: 8px;
	flex: 0 0 auto;
	background: var(--amber);
	border-radius: 50%;
	box-shadow: 0 0 8px var(--amber);
}

.types__note {
	text-align: center;
	max-width: 820px;
	margin: 30px auto 0;
	color: var(--readout-dim);
}

/* ---------- Benefits ---------- */
.benefits__inner {
	display: grid;
	grid-template-columns: 1.1fr 0.9fr;
	gap: 46px;
	align-items: start;
}

.benefits__list {
	display: grid;
	gap: 12px;
}

.benefits__list li {
	position: relative;
	padding-left: 30px;
	color: #cdd4de;
}

.benefits__list li::before {
	content: "";
	position: absolute;
	left: 0;
	top: 9px;
	width: 12px;
	height: 12px;
	background: var(--redline);
	clip-path: polygon(50% 0, 100% 50%, 50% 100%, 0 50%);
}

/* ---------- Lead form ---------- */
.lead-form-wrap__title {
	font-family: var(--font-display);
	font-size: 24px;
	margin-bottom: 6px;
	color: var(--readout);
	text-transform: uppercase;
}

.lead-form-wrap__subtitle {
	color: var(--readout-dim);
	margin-bottom: 20px;
	font-size: 15px;
}

.lead-form__row {
	margin-bottom: 13px;
}

.lead-form__input {
	width: 100%;
	padding: 14px 16px;
	border: 1px solid var(--bezel);
	border-radius: var(--radius-sm);
	font-family: inherit;
	font-size: 16px;
	background: var(--graphite-3);
	color: var(--readout);
	transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.lead-form__input::placeholder {
	color: #6b7482;
}

.lead-form__input:focus {
	outline: none;
	border-color: var(--amber);
	box-shadow: 0 0 0 3px rgba(255, 176, 32, 0.18);
}

.lead-form__input.js-phone-mask {
	font-family: var(--font-num);
	font-variant-numeric: tabular-nums;
	letter-spacing: 1px;
}

.lead-form__hp {
	position: absolute;
	left: -9999px;
	width: 1px;
	height: 1px;
	opacity: 0;
}

.lead-form__agree {
	display: flex;
	gap: 10px;
	align-items: flex-start;
	font-size: 12px;
	color: var(--readout-dim);
	margin: 6px 0 16px;
	cursor: pointer;
	line-height: 1.4;
}

.lead-form__agree input {
	margin-top: 3px;
	width: 18px;
	height: 18px;
	flex: 0 0 auto;
	accent-color: var(--amber);
}

.lead-form__agree a {
	color: var(--amber);
	text-decoration: underline;
}

.lead-form__submit {
	width: 100%;
}

.lead-form__message {
	margin-top: 14px;
	font-size: 14px;
	min-height: 1em;
}

.lead-form__message.is-error {
	color: var(--redline);
}

.lead-form__message.is-success {
	color: #57d86a;
	font-weight: 500;
}

.lead-form.is-sent .lead-form__row,
.lead-form.is-sent .lead-form__agree,
.lead-form.is-sent .lead-form__submit {
	display: none;
}

/* ---------- Contact Form 7 (интеграция под дизайн) ---------- */
.lead-form-wrap .wpcf7-form {
	position: relative;
}

.lead-form__row .wpcf7-form-control-wrap {
	display: block;
}

.lead-form__row input.lead-form__input {
	width: 100%;
}

.wpcf7-not-valid-tip {
	display: block;
	margin-top: 6px;
	font-size: 12px;
	color: var(--redline);
}

.lead-form__row input.wpcf7-not-valid {
	border-color: var(--redline);
}

.lead-form__agree {
	display: flex;
	gap: 10px;
	align-items: flex-start;
	margin: 12px 0 16px;
	font-size: 12px;
	line-height: 1.4;
	color: var(--readout-dim);
}

.lead-form__agree .wpcf7-form-control-wrap {
	flex: 0 0 auto;
	margin: 0;
}

.lead-form__agree .wpcf7-list-item {
	margin: 0;
}

.lead-form__agree .wpcf7-list-item label {
	margin: 0;
}

.lead-form__agree input[type="checkbox"] {
	width: 18px;
	height: 18px;
	margin-top: 2px;
	accent-color: var(--amber);
}

.lead-form__agree-text a {
	color: var(--amber);
	text-decoration: underline;
}

.lead-form-wrap .wpcf7-response-output {
	margin: 16px 0 0;
	padding: 11px 15px;
	border: 1px solid var(--bezel);
	border-radius: var(--radius-sm);
	font-size: 14px;
	color: var(--readout-dim);
}

.wpcf7 form.sent .wpcf7-response-output {
	border-color: #57d86a;
	color: #57d86a;
}

.wpcf7 form.invalid .wpcf7-response-output,
.wpcf7 form.unaccepted .wpcf7-response-output,
.wpcf7 form.failed .wpcf7-response-output,
.wpcf7 form.spam .wpcf7-response-output {
	border-color: var(--redline);
	color: var(--redline);
}

.wpcf7-spinner {
	margin: 12px auto 0;
	display: block;
}

/* ---------- Footer ---------- */
.site-footer {
	background: #0d0f13;
	color: var(--readout-dim);
	padding-top: 56px;
	border-top: 1px solid var(--bezel-soft);
}

.site-footer__grid {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 32px;
	padding-bottom: 40px;
}

.site-footer__title {
	color: var(--readout);
	font-family: var(--font-display);
	font-size: 15px;
	letter-spacing: 1px;
	margin-bottom: 16px;
}

.brand--footer {
	align-items: flex-start;
	gap: 10px;
}

.brand--footer .brand__name {
	color: var(--readout);
}

.brand--footer .brand__logo {
	height: 46px;
	width: auto;
	max-width: 200px;
	margin: 0;
}

/* В шапке теглайн отбит на 18px, чтобы встать под текстовый логотип с точкой.
   В футере логотип — картинка, поэтому отбивку снимаем и равняем по левому краю колонки. */
.brand--footer .brand__tagline {
	margin-left: 0;
	font-size: 13px;
	letter-spacing: 0.4px;
	text-transform: none;
	line-height: 1.5;
}

.site-footer__area {
	margin: 10px 0 0;
	font-size: 13px;
	line-height: 1.5;
	letter-spacing: 0.4px;
	color: var(--readout-dim);
}

.site-footer__domain {
	color: var(--amber);
}

.site-footer__contacts li {
	margin-bottom: 10px;
}

.site-footer__contacts a {
	font-family: var(--font-num);
	font-size: 17px;
}

.site-footer__contacts a:hover {
	color: var(--amber);
}

.footer-menu li {
	margin-bottom: 8px;
}

.footer-menu a:hover {
	color: var(--amber);
}

.messenger-links {
	display: flex;
	flex-direction: column;
	gap: 10px;
}

.messenger-links__item {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 9px 15px;
	border-radius: var(--radius-sm);
	background: var(--graphite-3);
	border: 1px solid var(--bezel);
	font-weight: 500;
	width: fit-content;
	transition: border-color 0.2s ease, transform 0.15s ease, color 0.2s ease;
}

.messenger-links__item:hover {
	transform: translateY(-2px);
	border-color: var(--amber);
	color: var(--amber);
}

.site-footer__bottom {
	border-top: 1px solid var(--bezel-soft);
	padding: 22px 0;
}

.site-footer__bottom-inner {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	align-items: center;
	gap: 16px;
}

.site-footer__legal {
	font-size: 13px;
	color: var(--readout-dim);
	max-width: 60%;
}

.site-footer__legal p {
	margin: 0 0 4px;
}

.site-footer__meta {
	display: flex;
	gap: 20px;
	align-items: center;
	font-size: 14px;
}

.site-footer__meta a:hover {
	color: var(--amber);
}

/* Строка разработчика — самый низ сайта.
   Селектор с родителем не случаен: элемент несёт ещё и класс .container,
   чей padding-шорткат в медиа-запросах иначе обнуляет отбивку снизу. */
.site-footer__bottom .site-footer__dev {
	border-top: 1px solid var(--bezel-soft);
	padding: 16px 0 calc(18px + env(safe-area-inset-bottom, 0px));
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	align-items: center;
	gap: 6px 10px;
	font-size: 13px;
	color: var(--readout-dim);
	text-align: center;
}

.site-footer__dev-link {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 5px 12px;
	border-radius: 40px;
	background: rgba(42, 171, 238, 0.12);
	border: 1px solid rgba(42, 171, 238, 0.35);
	color: #56bff2;
	font-weight: 500;
	white-space: nowrap;
}

.site-footer__dev-link:hover {
	background: rgba(42, 171, 238, 0.2);
	color: #8ad4f7;
}

/* ---------- Scroll top ---------- */
.scroll-top {
	position: fixed;
	right: 22px;
	bottom: 22px;
	width: 48px;
	height: 48px;
	border-radius: 50%;
	border: 0;
	background: var(--gradient-accent);
	color: #fff;
	font-size: 22px;
	font-weight: 700;
	cursor: pointer;
	box-shadow: var(--shadow);
	opacity: 0;
	visibility: hidden;
	transform: translateY(10px);
	transition: all 0.3s ease;
	z-index: var(--z-scroll-top);
}

.scroll-top.is-visible {
	opacity: 1;
	visibility: visible;
	transform: translateY(0);
}

/* ---------- Float messengers ----------
   Стек не прижимается через bottom, а живёт в колонке высотой во весь
   ДИНАМИЧЕСКИЙ вьюпорт (100dvh) и прижат к её низу. Причина: fixed-элементы
   отсчитываются от layout viewport, который на мобильных выше видимой области,
   пока раскрыта панель браузера — кнопки уезжали под неё и «появлялись»
   только после прокрутки. 100vh остаётся фолбэком для старых браузеров. */
.float-messengers {
	position: fixed;
	left: 16px;
	top: 0;
	height: 100vh;
	height: 100dvh;
	display: flex;
	flex-direction: column;
	justify-content: flex-end;
	align-items: flex-start;
	gap: 8px;
	padding-bottom: calc(16px + env(safe-area-inset-bottom, 0px));
	z-index: var(--z-float);
	/* Колонка во всю высоту не должна перехватывать клики по странице. */
	pointer-events: none;
	transition: opacity 0.25s ease, transform 0.25s ease, padding-bottom 0.3s ease;
}

.float-messengers__btn {
	pointer-events: auto;
	display: inline-flex;
	align-items: center;
	padding: 10px 16px;
	border-radius: 40px;
	font-family: var(--font-display);
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.5px;
	font-size: 13px;
	line-height: 1;
	white-space: nowrap;
	color: #fff;
	box-shadow: var(--shadow);
}

/* При открытом бургер-меню кнопки убираем — иначе они спорят с панелью за внимание. */
body.nav-open .float-messengers,
body.game-open .float-messengers {
	opacity: 0;
	visibility: hidden;
	transform: translateX(-20px);
	pointer-events: none;
}

.float-messengers__btn--telegram {
	background: #2aabee;
}

.float-messengers__btn--max {
	background: #6c5ce7;
}

.float-messengers__btn--whatsapp {
	background: #25d366;
}

/* Кнопка «Позвонить» — акцентный градиент, ниже мессенджеров */
.float-messengers__btn--call {
	background: var(--gradient-accent);
	text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.float-messengers__btn--call:hover {
	background: var(--gradient-accent-hover);
}

/* Кнопка игры — намеренно без акцентного градиента, тёмно-серая «служебная». */
.float-messengers__btn--game {
	background: #23262c;
	border: 1px solid #3a4049;
	color: #c6ced9;
	cursor: pointer;
	font: inherit;
	font-family: var(--font-display);
	font-size: 13px;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.5px;
	gap: 7px;
	transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.float-messengers__btn--game:hover {
	background: #2c3038;
	border-color: var(--amber);
	color: var(--amber);
}

.float-messengers__btn--game .float-messengers__ico {
	font-size: 15px;
	line-height: 1;
}

/* Пока показан cookie-баннер — приподнимаем кнопки ровно над ним (высоту ставит JS) */
body.cookie-open .float-messengers {
	padding-bottom: calc(var(--cookie-h, 96px) + 36px + env(safe-area-inset-bottom, 0px));
}

/* ---------- Cookie banner ---------- */
.cookie-banner {
	position: fixed;
	left: 20px;
	right: 20px;
	bottom: 20px;
	z-index: var(--z-cookie);
	background: var(--graphite-2);
	border: 1px solid var(--bezel);
	color: var(--readout);
	border-radius: var(--radius);
	box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
}

.cookie-banner__inner {
	display: flex;
	align-items: center;
	gap: 20px;
	padding: 18px 24px;
	flex-wrap: wrap;
}

.cookie-banner__text {
	flex: 1;
	min-width: 240px;
	font-size: 14px;
	color: var(--readout-dim);
}

.cookie-banner__link {
	color: var(--amber);
	text-decoration: underline;
	white-space: nowrap;
}

.cookie-banner__actions {
	display: flex;
	gap: 10px;
}

/* ---------- Content / posts ---------- */
.entry-content {
	font-size: 17px;
	color: #cdd4de;
}

.entry-content h2,
.entry-content h3 {
	margin-top: 1.4em;
	color: var(--readout);
}

.entry-content ul {
	list-style: disc;
	padding-left: 22px;
	margin: 0 0 1em;
}

.entry-content a {
	color: var(--amber);
	text-decoration: underline;
}

.entry-content p {
	margin: 0 0 1em;
}

.entry-content ol {
	list-style: decimal;
	padding-left: 22px;
	margin: 0 0 1em;
}

.entry-content li {
	margin-bottom: 6px;
}

/* ---------- Юридические документы (политика, cookie) ---------- */
.legal-doc {
	max-width: 900px;
	line-height: 1.7;
}

.legal-doc__meta {
	font-size: 14px;
	color: var(--readout-dim);
}

.legal-doc h2 {
	font-family: var(--font-display);
	font-size: 22px;
	text-transform: uppercase;
	letter-spacing: 0.5px;
}

.legal-doc h3 {
	font-size: 18px;
}

.legal-doc__req {
	list-style: none;
	padding: 16px 18px;
	margin: 0 0 1.4em;
	background: var(--graphite-2);
	border: 1px solid var(--bezel);
	border-radius: 12px;
	font-size: 16px;
}

.post-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: var(--gap);
}

.post-card {
	overflow: hidden;
	display: flex;
	flex-direction: column;
}

.post-card__thumb img {
	width: 100%;
	height: 200px;
	object-fit: cover;
}

.post-card__body {
	padding: 20px;
	display: flex;
	flex-direction: column;
	gap: 10px;
	flex: 1;
}

.post-card__title {
	font-size: 19px;
	text-transform: none;
}

.pagination {
	margin-top: 40px;
	text-align: center;
}

.pagination .page-numbers {
	display: inline-block;
	padding: 8px 14px;
	margin: 0 3px;
	border-radius: var(--radius-sm);
	background: var(--graphite-2);
	border: 1px solid var(--bezel);
	font-family: var(--font-num);
}

.pagination .current {
	background: var(--gradient-accent);
	color: #fff;
	border-color: transparent;
}

.error-404__code {
	font-family: var(--font-num);
	font-size: 140px;
	color: var(--redline);
	margin: 0;
	text-shadow: 0 0 30px rgba(230, 52, 42, 0.4);
}

.page-article,
.single-article {
	color: #cdd4de;
}

.single-article__meta {
	font-family: var(--font-num);
	color: var(--readout-dim);
	margin-bottom: 20px;
}
