/* ==========================================================================
   Форсаж — светлый лендинг «городская дорога»
   ========================================================================== */

:root {
	--bg: #f4f5ef;
	--card: #ffffff;
	--ink: #1d2330;
	--ink-2: #3a4152;
	--muted: #5f6676;
	--line: #e2e4dc;
	--yellow: #f3e03a;
	--yellow-soft: #fbf3b4;
	--yellow-deep: #d9bf00;
	--blue: #2f6fe4;
	--blue-soft: #e4edfd;
	--red: #e5484d;
	--green: #2f9e66;
	--green-soft: #e3f4ea;
	--orange: #f08a24;

	--radius: 20px;
	--shadow: 0 1px 2px rgba(29, 35, 48, .05), 0 8px 24px rgba(29, 35, 48, .06);
	--shadow-lift: 0 2px 4px rgba(29, 35, 48, .06), 0 18px 40px rgba(29, 35, 48, .10);

	--font: 'Manrope', system-ui, -apple-system, 'Segoe UI', sans-serif;
	--font-display: 'Unbounded', 'Manrope', system-ui, sans-serif;

	--topbar-h: 72px;
	--road-col: 300px;   /* колонка, в которой едет дорога (JS читает её центр) */
	--turn-gap: 240px;   /* расстояние между остановками — тут проходит поперечная улица */
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: calc(var(--topbar-h) + 16px); }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body.landing {
	margin: 0;
	background: var(--bg);
	color: var(--ink);
	font: 500 16px/1.55 var(--font);
	-webkit-font-smoothing: antialiased;
	overflow-x: hidden;
}

:where(.landing) :is(h1, h2, h3, p, ul, ol) { margin: 0; }
:where(.landing) :is(ul, ol) { padding: 0; list-style: none; }
:where(.landing) a { color: inherit; }
.landing img { max-width: 100%; }

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

.muted { color: var(--muted); }
.small { font-size: 14px; }

/* ---------- Кнопки ---------- */
.btn {
	display: inline-flex; align-items: center; justify-content: center; gap: 8px;
	min-height: 52px; padding: 0 26px;
	border: 0; border-radius: 14px;
	background: var(--ink); color: #fff;
	font: 700 16px/1 var(--font);
	text-decoration: none; cursor: pointer;
	box-shadow: 0 6px 0 -2px var(--yellow-deep), 0 10px 22px rgba(29, 35, 48, .18);
	transition: transform .15s ease, box-shadow .15s ease, background .15s;
}
.btn:hover { transform: translateY(-1px); background: #111622; }
.btn:active { transform: translateY(2px); box-shadow: 0 2px 0 -2px var(--yellow-deep), 0 4px 10px rgba(29, 35, 48, .18); }
.btn:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; }
.btn--small { min-height: 40px; padding: 0 16px; font-size: 14px; border-radius: 11px; box-shadow: 0 4px 0 -1px var(--yellow-deep); }

.link-arrow {
	display: inline-flex; align-items: center; gap: 8px;
	margin-top: 18px; font-weight: 700; text-decoration: none;
	border-bottom: 2px solid var(--yellow);
}
.link-arrow::after { content: '→'; transition: transform .2s; }
.link-arrow:hover::after { transform: translateX(4px); }

/* ---------- Шапка ---------- */
.topbar {
	position: sticky; top: 0; z-index: 50;
	height: var(--topbar-h);
	border-bottom: 1px solid var(--line);
}
/* Размытие — на псевдоэлементе: backdrop-filter на самой шапке сделал бы её
   контейнером для position: fixed, и мобильное меню схлопнулось бы в 0 высоты. */
.topbar::before {
	content: ''; position: absolute; inset: 0; z-index: -1;
	background: rgba(255, 255, 255, .86);
	-webkit-backdrop-filter: saturate(1.4) blur(12px);
	backdrop-filter: saturate(1.4) blur(12px);
}
.topbar__inner {
	height: 100%; width: min(1240px, 100% - 32px); margin: 0 auto;
	display: flex; align-items: center; gap: 20px;
}
.brand { text-decoration: none; flex: none; }
.logo { display: inline-flex; align-items: center; gap: 10px; }
.logo__mark { width: 42px; height: 42px; }
.logo__text { display: flex; flex-direction: column; line-height: 1; }
.logo__name { font: 800 19px/1 var(--font-display); letter-spacing: .01em; text-transform: uppercase; }
.logo__sub { font-size: 12px; font-weight: 700; color: var(--muted); letter-spacing: .18em; text-transform: uppercase; margin-top: 4px; }

.topnav { margin-left: auto; }
.topnav__list { display: flex; gap: 4px; }
.topnav__item { position: relative; }
.topnav__link {
	display: inline-flex; align-items: center; gap: 6px;
	padding: 8px 12px; border: 0; border-radius: 10px; background: none;
	font: 600 15px/1.2 var(--font); color: var(--ink-2); text-decoration: none; cursor: pointer;
}
.topnav__link:hover, .topnav__item--sub.is-open > .topnav__link { background: #eef0e8; color: var(--ink); }
.topnav__sub {
	position: absolute; top: calc(100% + 6px); left: 0; min-width: 230px;
	padding: 8px; background: #fff; border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow-lift);
	opacity: 0; visibility: hidden; transform: translateY(-4px); transition: .15s ease;
}
.topnav__item--sub:hover .topnav__sub,
.topnav__item--sub.is-open .topnav__sub,
.topnav__item--sub:focus-within .topnav__sub { opacity: 1; visibility: visible; transform: none; }
.topnav__sub a { display: block; padding: 9px 12px; border-radius: 9px; text-decoration: none; font-weight: 600; font-size: 15px; }
.topnav__sub a:hover { background: var(--yellow-soft); }

.topbar__phone {
	display: inline-flex; align-items: center; gap: 8px; flex: none;
	font-weight: 800; text-decoration: none; white-space: nowrap;
}
.topbar__phone svg { color: var(--green); }
.topbar__burger { display: none; }

@media (max-width: 1320px) {
	.topbar__phone span { display: none; }
	.topbar__phone { width: 40px; height: 40px; justify-content: center; border-radius: 11px; background: var(--green-soft); }
}

@media (max-width: 991px) {
	:root { --topbar-h: 64px; }
}
@media (max-width: 1180px) {
	.topbar__inner { gap: 10px; }
	.topbar__cta { margin-left: auto; }
	.topbar__burger {
		display: inline-flex; flex-direction: column; justify-content: center; gap: 5px;
		width: 42px; height: 40px; padding: 0 10px; border: 0; border-radius: 11px; background: #eef0e8; cursor: pointer;
	}
	.topbar__burger span { display: block; height: 2px; background: var(--ink); border-radius: 2px; transition: .2s; }
	.topbar__burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
	.topbar__burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
	.topbar__burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

	.topnav {
		position: fixed; top: var(--topbar-h); left: 0; right: 0; bottom: 0;
		margin: 0; padding: 16px; overflow-y: auto;
		background: var(--bg);
		display: none;
	}
	.topnav.is-open { display: block; animation: nav-in .2s ease; }
	.topnav__list { flex-direction: column; gap: 2px; }
	.topnav__link { width: 100%; justify-content: space-between; padding: 14px 12px; font-size: 18px; }
	.topnav__sub { position: static; opacity: 1; visibility: visible; transform: none; display: none; box-shadow: none; margin: 4px 0 8px; }
	.topnav__item--sub.is-open .topnav__sub { display: block; }
	.topnav__item--sub:hover .topnav__sub { display: none; }
	.topnav__item--sub.is-open:hover .topnav__sub { display: block; }
}
@media (max-width: 420px) {
	.logo__sub { display: none; }
	.logo__name { font-size: 16px; }
	.topbar__cta { padding: 0 12px; }
}

/* ==========================================================================
   Город: карта на фоне + «остановки» с контентом
   ========================================================================== */
.city {
	position: relative;
	padding-bottom: 160px;
	isolation: isolate;
}
.city__map {
	position: absolute; inset: 0; z-index: 0;
	overflow: hidden;
	pointer-events: none;
}
.city__map svg { display: block; width: 100%; height: 100%; }

.stop {
	position: relative; z-index: 1;
	width: min(1240px, 100% - 32px);
	margin: 0 auto;
	display: grid;
	grid-template-columns: minmax(0, 1fr) var(--road-col);
	column-gap: 24px;
}
.stop + .stop { margin-top: var(--turn-gap); }
.stop--right { grid-template-columns: var(--road-col) minmax(0, 1fr); }
.stop--right .stop__road { order: -1; }
.stop__road { min-height: 1px; }
/* Секциям нужна высота, чтобы на дороге поместилось «сложное место» */
.stop:not(.stop--hero) { min-height: 520px; align-items: center; }
.stop[data-scene="slalom"] { min-height: 600px; }
.stop__content { min-width: 0; }

.section-title {
	font: 700 clamp(26px, 3.2vw, 40px)/1.12 var(--font-display);
	letter-spacing: -.01em;
	margin-bottom: 22px;
	text-wrap: balance;
}
.section-lead { color: var(--muted); font-size: 18px; max-width: 60ch; margin: -8px 0 22px; }

.roadnote {
	display: inline-flex; align-items: center; gap: 10px;
	margin-bottom: 14px; padding: 6px 14px 6px 6px;
	background: #fff; border: 1px solid var(--line); border-radius: 999px;
	font-size: 14px; font-weight: 700; color: var(--ink-2);
	box-shadow: var(--shadow);
}
.roadnote--plain { box-shadow: none; background: var(--bg); }

/* Дорожные знаки в подписях (CSS-иконки) */
.sign { width: 28px; height: 28px; flex: none; display: inline-block; position: relative; border-radius: 6px; }
.sign--crosswalk { background: var(--blue); }
.sign--crosswalk::before {
	content: ''; position: absolute; left: 50%; top: 50%; width: 0; height: 0; transform: translate(-50%, -58%);
	border-left: 10px solid transparent; border-right: 10px solid transparent; border-bottom: 17px solid #fff;
}
.sign--crosswalk::after {
	content: ''; position: absolute; left: 50%; top: 52%; width: 4px; height: 7px; transform: translateX(-50%) skewX(-12deg);
	background: var(--ink); border-radius: 2px; box-shadow: 0 -5px 0 -1px var(--ink);
}
.sign--bumps, .sign--bump {
	background: none; border-radius: 0;
	width: 30px; height: 27px;
}
.sign--bumps::before, .sign--bump::before {
	content: ''; position: absolute; inset: 0;
	clip-path: polygon(50% 0, 100% 100%, 0 100%); background: var(--red);
}
.sign--bumps::after, .sign--bump::after {
	content: ''; position: absolute; inset: 0;
	clip-path: polygon(50% 22%, 84% 88%, 16% 88%); background: #fff;
}
/* 1.25 «Дорожные работы» */
.sign--roadworks { width: 30px; height: 28px; border-radius: 0; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='-12.5 -12.5 25 23'%3E%3Cpath d='M0 -10.5 L11.2 8.6 L-11.2 8.6 Z' fill='%23fff' stroke='%23e5484d' stroke-width='2.6' stroke-linejoin='round'/%3E%3Cpath d='M-6.8 6 Q-4.2 1.6 -1.4 6 Z' fill='%231d2330'/%3E%3Ccircle cx='2.7' cy='-2.6' r='1.5' fill='%231d2330'/%3E%3Cpath d='M2.3 -0.8 L1.1 3.2 M1.1 3.2 L0 6 M1.1 3.2 L2.9 6' stroke='%231d2330' stroke-width='1.5' stroke-linecap='round' fill='none'/%3E%3Cpath d='M2 0.5 L-3.2 3.4' stroke='%231d2330' stroke-width='1.1' stroke-linecap='round'/%3E%3Cpath d='M-3.2 2.4 L-5 3.6 L-4 5 L-2.4 4 Z' fill='%231d2330'/%3E%3C/svg%3E") center / contain no-repeat; }
.sign--light { background: var(--ink); width: 14px; border-radius: 6px; margin: 0 7px; }
.sign--light::before {
	content: ''; position: absolute; left: 3px; top: 3px; width: 8px; height: 8px; border-radius: 50%;
	background: var(--red); box-shadow: 0 8px 0 #f2b61f, 0 16px 0 var(--green);
}
.sign--cones { background: none; width: 26px; }
.sign--cones::before {
	content: ''; position: absolute; left: 3px; right: 3px; top: 2px; bottom: 4px;
	clip-path: polygon(50% 0, 100% 100%, 0 100%);
	background: repeating-linear-gradient(180deg, var(--orange) 0 6px, #fff 6px 9px);
}
.sign--cones::after { content: ''; position: absolute; left: 0; right: 0; bottom: 1px; height: 4px; background: var(--orange); border-radius: 2px; }
.sign--parking { background: var(--blue); }
.sign--parking::before { content: 'P'; position: absolute; inset: 0; display: grid; place-items: center; color: #fff; font: 800 17px/1 var(--font); }

/* ---------- Карточки ---------- */
.card {
	background: var(--card);
	border: 1px solid var(--line);
	border-radius: var(--radius);
	box-shadow: var(--shadow);
	padding: 22px;
}
.card--flat { box-shadow: none; }
.card__label { font-size: 13px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin-bottom: 14px; }
.chip {
	display: inline-block; padding: 4px 10px; border-radius: 999px;
	background: #eef0e8; font-size: 13px; font-weight: 700; color: var(--ink-2);
}

/* ---------- Герой ---------- */
.stop--hero .stop__content {
	min-height: calc(100vh - var(--topbar-h));
	min-height: calc(100svh - var(--topbar-h));
	display: flex; flex-direction: column; justify-content: center;
	padding: 48px 0 40px;
}
.eyebrow {
	align-self: flex-start;
	display: inline-flex; align-items: center; gap: 10px;
	padding: 7px 14px; border-radius: 999px; background: var(--green-soft);
	color: #1f6e46; font-size: 14px; font-weight: 800;
}
.eyebrow__dot { width: 8px; height: 8px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 0 rgba(47, 158, 102, .5); animation: pulse 2s infinite; }
@keyframes nav-in { from { opacity: 0; transform: translateY(-8px); } }
@keyframes pulse { 70% { box-shadow: 0 0 0 9px rgba(47, 158, 102, 0); } 100% { box-shadow: 0 0 0 0 rgba(47, 158, 102, 0); } }

.hero__title {
	margin: 18px 0 18px;
	font: 800 clamp(36px, 5.4vw, 68px)/1.04 var(--font-display);
	letter-spacing: -.02em;
	text-wrap: balance;
}
.mark {
	background: linear-gradient(transparent 58%, var(--yellow) 58%, var(--yellow) 92%, transparent 92%);
	padding: 0 .06em;
	-webkit-box-decoration-break: clone; box-decoration-break: clone;
}
.hero__lead { font-size: clamp(17px, 1.6vw, 20px); color: var(--ink-2); max-width: 58ch; }
.hero__form { margin-top: 28px; max-width: 620px; padding: 16px; }

.stats {
	display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px;
	margin-top: 26px; max-width: 760px;
}
.stats__item {
	padding: 14px 14px 12px; border-radius: 16px;
	background: rgba(255, 255, 255, .78); border: 1px solid var(--line);
}
.stats__item b { display: block; font: 800 24px/1.1 var(--font-display); }
.stats__item span { display: block; margin-top: 6px; font-size: 13px; line-height: 1.35; color: var(--muted); }

.scroll-hint {
	align-self: flex-start; display: inline-flex; align-items: center; gap: 10px;
	margin-top: 30px; font-weight: 700; color: var(--muted); text-decoration: none;
}
.scroll-hint__wheel { width: 22px; height: 34px; border: 2px solid currentColor; border-radius: 12px; position: relative; }
.scroll-hint__wheel::after {
	content: ''; position: absolute; left: 50%; top: 6px; width: 4px; height: 7px; margin-left: -2px;
	border-radius: 2px; background: currentColor; animation: wheel 1.6s infinite;
}
@keyframes wheel { 0% { opacity: 0; transform: translateY(-2px); } 40% { opacity: 1; } 100% { opacity: 0; transform: translateY(10px); } }

/* ---------- Форма ---------- */
.lead-form { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 10px; }
.lead-form__field input {
	width: 100%; height: 52px; padding: 0 18px;
	border: 2px solid var(--line); border-radius: 14px; background: #fff;
	font: 600 16px/1 var(--font); color: var(--ink);
	transition: border-color .15s, box-shadow .15s;
}
.lead-form__field input:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 4px var(--yellow-soft); }
.lead-form__hint { grid-column: 1 / -1; font-size: 13px; color: var(--muted); }
.lead-form__flash { grid-column: 1 / -1; }
.lead-form__flash:empty { display: none; }
.lead-form .alert {
	position: relative; padding: 12px 40px 12px 14px; border-radius: 12px; font-size: 14px; font-weight: 600;
	background: var(--green-soft); color: #1f6e46;
}
.lead-form .alert-danger { background: #fde8e8; color: #9b1c1c; }
.lead-form .alert h4 { margin: 0 0 4px; font-size: 15px; }
.lead-form .alert ul { margin-top: 4px; padding-left: 18px; list-style: disc; }
.lead-form .alert .close {
	position: absolute; right: 8px; top: 6px; border: 0; background: none;
	font-size: 22px; line-height: 1; cursor: pointer; color: inherit; opacity: .6;
}
.lead-form.is-loading .btn { opacity: .7; pointer-events: none; }

/* ---------- Цены ---------- */
.tariffs { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 14px; }
.tariff { display: flex; flex-direction: column; gap: 10px; transition: transform .2s, box-shadow .2s; }
.tariff:hover { transform: translateY(-3px); box-shadow: var(--shadow-lift); }
.tariff__title { font: 700 18px/1.2 var(--font-display); }
.tariff .chip { align-self: flex-start; }
.tariff__price { font: 800 32px/1 var(--font-display); letter-spacing: -.02em; margin-top: auto; padding-top: 8px; }
.tariff__price small { font-size: .6em; color: var(--muted); }
.tariff__desc { font-size: 14px; color: var(--muted); }
.tariff--accent { background: var(--yellow); border-color: var(--yellow-deep); }
.tariff--accent .chip { background: rgba(255, 255, 255, .65); }
.tariff--accent .tariff__desc, .tariff--accent .tariff__price small { color: var(--ink-2); }

.installment { margin-top: 14px; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: 10px 28px; align-items: center; }
.installment__title { font: 700 18px/1.25 var(--font-display); margin-bottom: 6px; }
.installment .muted { font-size: 14px; }
.installment .link-arrow { grid-column: 1 / -1; margin-top: 4px; justify-self: start; }
.timeline__track { position: relative; height: 10px; margin: 10px 8px 14px; border-radius: 6px; background: #eef0e8; }
.timeline__fill { position: absolute; inset: 0; border-radius: inherit; background: linear-gradient(90deg, var(--ink) 0 12%, var(--yellow) 12% 100%); }
.timeline__dot {
	position: absolute; top: 50%; width: 18px; height: 18px; margin: -9px 0 0 -9px; border-radius: 50%;
	background: var(--ink); border: 3px solid #fff; box-shadow: 0 0 0 1px var(--line);
}
.timeline__dot--ghost { width: 10px; height: 10px; margin: -5px 0 0 -5px; background: #fff; border: 2px solid var(--yellow-deep); box-shadow: none; }
.timeline__dot--end { background: var(--green); }
.timeline__labels { display: flex; justify-content: space-between; gap: 12px; font-size: 13px; color: var(--muted); }
.timeline__labels b { display: block; font-size: 16px; color: var(--ink); }
.timeline__end { text-align: right; }

/* ---------- Программа ---------- */
.hbars { display: grid; gap: 14px; margin-bottom: 16px; }
.hbars__row { display: grid; grid-template-columns: 150px minmax(0, 1fr) 64px; align-items: center; gap: 14px; }
.hbars__name { font-size: 15px; font-weight: 700; }
.hbars__bar { height: 16px; border-radius: 4px; background: #f0f1ec; overflow: hidden; }
.hbars__fill {
	display: block; height: 100%; width: 0; border-radius: 0 4px 4px 0; background: var(--yellow-deep);
	transition: width 1.1s cubic-bezier(.2, .8, .2, 1);
}
.hbars__fill--ink { background: var(--ink-2); }
.is-visible .hbars__fill { width: var(--w); }
.hbars__value { font: 700 16px/1 var(--font-display); text-align: right; }

.facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin-top: 14px; }
.fact { display: flex; flex-direction: column; gap: 12px; padding: 18px; }
.fact p { font-size: 14px; color: var(--muted); }
.fact b { display: block; color: var(--ink); font-size: 15px; margin-bottom: 4px; }
.fact__icon { width: 44px; height: 44px; border-radius: 13px; background: var(--yellow-soft); position: relative; }
.fact__icon::before { content: ''; position: absolute; inset: 0; margin: auto; }
.fact__icon--lamp::before { width: 6px; height: 22px; top: 12px; background: var(--ink-2); border-radius: 3px; }
.fact__icon--lamp::after {
	content: ''; position: absolute; left: 12px; top: 8px; width: 20px; height: 9px; border-radius: 9px 9px 3px 3px; background: var(--ink-2);
	box-shadow: 0 10px 14px 2px rgba(240, 180, 30, .55);
}
.fact__icon--route::before {
	width: 26px; height: 26px; border: 3px dashed var(--ink-2); border-radius: 50% 50% 50% 0; border-color: var(--ink-2) var(--ink-2) transparent var(--ink-2);
}
.fact__icon--car::before { width: 30px; height: 15px; border-radius: 6px 9px 4px 4px; background: var(--ink-2); }
.fact__icon--car::after {
	content: ''; position: absolute; left: 13px; top: 26px; width: 6px; height: 6px; border-radius: 50%;
	background: var(--ink-2); box-shadow: 13px 0 0 var(--ink-2), 0 0 0 2px var(--yellow-soft), 13px 0 0 2px var(--yellow-soft);
}

/* ---------- Шаги ---------- */
.steps { display: grid; gap: 12px; counter-reset: step; }
.step { display: grid; grid-template-columns: 52px minmax(0, 1fr); gap: 16px; align-items: start; padding: 18px 20px; position: relative; }
.step b { display: block; font: 700 18px/1.3 var(--font-display); margin-bottom: 4px; }
.step p { color: var(--muted); font-size: 15px; }
.step__num {
	width: 52px; height: 52px; border-radius: 50%;
	display: grid; place-items: center;
	background: #fff; border: 4px solid var(--red);
	font: 800 20px/1 var(--font-display);
}
.step + .step::before {
	content: ''; position: absolute; left: 45px; top: -14px; width: 2px; height: 16px;
	background: repeating-linear-gradient(var(--muted) 0 4px, transparent 4px 7px);
}

/* ---------- Автодром ---------- */
.drills { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; }
.drill { padding: 14px 12px 16px; display: flex; flex-direction: column; align-items: center; gap: 10px; text-align: center; font-weight: 700; font-size: 14px; line-height: 1.3; }
.drill svg { width: 100%; max-width: 92px; height: auto; padding: 6px; background: #f0f1ec; border-radius: 12px; }
.d-line { fill: none; stroke: var(--ink-2); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.d-dash { fill: none; stroke: var(--blue); stroke-width: 2.5; stroke-dasharray: 4 4; stroke-linecap: round; }
.d-car { fill: var(--yellow); stroke: var(--ink); stroke-width: 2; }
.d-park { fill: #c9ccd3; }
.d-cone { fill: var(--orange); stroke: #fff; stroke-width: 1.5; }

/* ---------- Экзамены ---------- */
.exam { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.exam__stage { display: flex; flex-direction: column; gap: 10px; }
.exam__stage .card__label { margin-bottom: 4px; }
.exam__fig { font-size: 15px; color: var(--muted); }
.exam__fig b { font: 800 22px/1 var(--font-display); color: var(--ink); }

.dots { display: grid; grid-template-columns: repeat(10, 1fr); gap: 5px; max-width: 220px; }
.dots__dot { aspect-ratio: 1; border-radius: 50%; background: var(--green); }
.dots__dot--warn { background: #fff; box-shadow: inset 0 0 0 2.5px var(--orange); }

.cones { display: flex; gap: 8px; align-items: flex-end; height: 44px; }
.cones__cone {
	width: 22px; height: 30px; position: relative;
	clip-path: polygon(38% 0, 62% 0, 100% 100%, 0 100%);
	background: repeating-linear-gradient(180deg, var(--orange) 0 9px, #fff 9px 14px);
}
.cones__cone:nth-child(even) { transform: translateY(-10px); }

.meter { display: grid; grid-template-columns: repeat(6, 1fr); gap: 4px; height: 44px; align-items: center; }
.meter__seg { height: 14px; border-radius: 3px; background: var(--green); }
.meter__seg--stop { background: #fff; box-shadow: inset 0 0 0 2.5px var(--red); }

.internal { margin-top: 14px; }
.internal__list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.internal__list li { font-size: 14px; color: var(--muted); padding-left: 14px; border-left: 3px solid var(--yellow); }
.internal__list b { display: block; color: var(--ink); font-size: 15px; }

/* ---------- Акции ---------- */
.friends__lead { font-size: 18px; margin-bottom: 18px; }
.friends__lead b { background: var(--yellow); padding: 0 4px; border-radius: 4px; }
.friends__scale { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.friends__scale li {
	display: flex; flex-direction: column; gap: 4px;
	padding: 14px; border-radius: 14px; background: #f6f7f2;
}
.friends__scale b { font: 800 20px/1.1 var(--font-display); }
.friends__scale small { color: var(--muted); font-size: 13px; font-weight: 700; }
.friends__ppl { display: flex; margin-bottom: 8px; }
.friends__ppl i {
	width: 26px; height: 26px; border-radius: 50%; margin-right: -7px;
	border: 2px solid #f6f7f2; background: var(--blue);
	position: relative;
}
.friends__ppl i:first-child { background: var(--yellow-deep); }
.friends__ppl i:nth-child(3) { background: var(--green); }
.friends__ppl i:nth-child(4) { background: var(--red); }
.student { margin-top: 14px; display: flex; align-items: center; gap: 18px; }
.student__badge {
	flex: none; padding: 10px 14px; border-radius: 14px;
	background: var(--ink); color: var(--yellow);
	font: 800 18px/1 var(--font-display); transform: rotate(-4deg);
}
.student p { color: var(--muted); }
.student b { color: var(--ink); }

/* ---------- Филиалы ---------- */
.branches { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.branch { display: flex; flex-direction: column; gap: 4px; position: relative; padding-top: 26px; }
.branch__pin {
	position: absolute; top: -16px; left: 20px; z-index: 0;
	width: 34px; height: 34px; color: #fff; display: grid; place-items: center;
	font: 800 14px/1 var(--font-display);
}
/* Поворачиваем только «каплю», цифра остаётся ровной */
.branch__pin::before {
	content: ''; position: absolute; inset: 0; z-index: -1;
	border-radius: 50% 50% 50% 0; transform: rotate(-45deg);
	background: var(--red); box-shadow: 0 6px 12px rgba(229, 72, 77, .35);
}
.branch__city { font-size: 13px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.branch__addr { font: 700 17px/1.3 var(--font-display); margin-bottom: 8px; }
.branch a { font-weight: 700; text-decoration: none; }
.branch a:hover { color: var(--blue); }

/* ---------- Финиш ---------- */
.stop--finish .stop__content { padding-bottom: 40px; }
.final { padding: 34px; border-width: 2px; border-color: var(--ink); box-shadow: 10px 10px 0 var(--yellow); }
.final .section-title { margin-bottom: 14px; }
.final .section-lead { margin: 0 0 22px; }
.final .lead-form { max-width: 560px; }

/* ---------- Подвал ---------- */
.footer { background: #fff; border-top: 1px solid var(--line); position: relative; z-index: 2; }
.footer__inner {
	width: min(1240px, 100% - 32px); margin: 0 auto; padding: 44px 0 28px;
	display: grid; grid-template-columns: 1.2fr 1fr 1.4fr; gap: 32px;
}
.footer__note { margin-top: 14px; color: var(--muted); font-size: 14px; max-width: 32ch; }
.footer__social { display: flex; gap: 10px; margin-top: 16px; }
.footer__social img { display: block; width: 28px; height: 28px; filter: grayscale(1) brightness(.35); transition: filter .2s; }
.footer__social a:hover img { filter: none; }
.footer__links { display: grid; gap: 8px; align-content: start; }
.footer__links a { text-decoration: none; font-weight: 600; color: var(--ink-2); }
.footer__links a:hover { color: var(--ink); text-decoration: underline; text-decoration-color: var(--yellow-deep); text-decoration-thickness: 2px; }
.footer__addresses { display: grid; gap: 10px; font-size: 14px; color: var(--muted); align-content: start; }
.footer__addresses a { color: var(--ink); font-weight: 700; text-decoration: none; white-space: nowrap; }
.footer__bottom {
	width: min(1240px, 100% - 32px); margin: 0 auto; padding: 16px 0 24px;
	display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap;
	border-top: 1px solid var(--line); font-size: 13px; color: var(--muted);
}
.footer__bottom a { text-decoration: none; }

/* ---------- Анимации на карте ---------- */
.ped .leg-a { animation: leg-a .42s ease-in-out infinite alternate; }
.ped .leg-b { animation: leg-a .42s ease-in-out infinite alternate-reverse; }
.ped .dog { animation: leg-a .25s ease-in-out infinite alternate; }
.ped.is-still .leg, .ped.is-still .dog { animation: none; }
@keyframes leg-a { from { transform: translateX(-2.6px); } to { transform: translateX(2.6px); } }
.ripple { animation: ripple 2.4s ease-in-out infinite; }
@keyframes ripple { 50% { opacity: .35; } }
.finish-badge { opacity: 0; transition: opacity .4s ease; }
.is-parked .finish-badge { opacity: 1; }
@media (prefers-reduced-motion: reduce) {
	.ped .leg, .ped .dog, .ripple { animation: none; }
}

/* ---------- Появление при скролле ---------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s cubic-bezier(.2, .8, .2, 1); }
.reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
	.reveal { opacity: 1; transform: none; transition: none; }
	.hbars__fill { transition: none; }
}

/* ==========================================================================
   Адаптив
   ========================================================================== */
@media (max-width: 1180px) {
	.drills { grid-template-columns: repeat(3, minmax(0, 1fr)); }
	.exam, .internal__list { grid-template-columns: minmax(0, 1fr); }
	.exam__stage { display: grid; grid-template-columns: 220px minmax(0, 1fr); column-gap: 18px; align-items: center; }
	.exam__stage > * { grid-column: 2; }
	.exam__stage > .dots, .exam__stage > .cones, .exam__stage > .meter { grid-column: 1; grid-row: 1 / span 3; }
	.facts { grid-template-columns: minmax(0, 1fr); }
	.fact { flex-direction: row; align-items: center; }
	.fact__icon { flex: none; }
	.branches { grid-template-columns: minmax(0, 1fr); }
	.branch { padding-top: 28px; }
}

@media (max-width: 991px) {
	:root { --road-col: 84px; --turn-gap: 72px; }
	.stop, .stop--right { grid-template-columns: var(--road-col) minmax(0, 1fr); column-gap: 12px; width: calc(100% - 16px); margin-left: 0; margin-right: 16px; }
	.stop .stop__road { order: -1; }
	.stop:not(.stop--hero) { min-height: 0; align-items: start; }
	.stop[data-scene="slalom"] { min-height: 380px; }
	.stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.installment { grid-template-columns: minmax(0, 1fr); }
	.footer__inner { grid-template-columns: minmax(0, 1fr); gap: 24px; }
	.stop--hero .stop__content { min-height: auto; padding-top: 36px; }
}

@media (max-width: 640px) {
	body.landing { font-size: 15px; }
	.card { padding: 18px; border-radius: 16px; }
	.lead-form { grid-template-columns: minmax(0, 1fr); }
	.lead-form .btn { width: 100%; }
	.hero__form { padding: 12px; }
	.roadnote { font-size: 13px; padding-right: 12px; align-items: flex-start; }
	.roadnote .sign { margin-top: -2px; }
	.hbars__row { grid-template-columns: minmax(0, 1fr) 54px; gap: 6px 10px; }
	.hbars__name { grid-column: 1 / -1; }
	.drills { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.exam__stage { grid-template-columns: minmax(0, 1fr); }
	.exam__stage > * { grid-column: 1 !important; grid-row: auto !important; }
	.friends__scale { grid-template-columns: minmax(0, 1fr); }
	.friends__scale li { flex-direction: row; align-items: center; gap: 12px; }
	.friends__ppl { margin: 0; width: 92px; }
	.friends__scale small { margin-left: auto; }
	.student { flex-direction: column; align-items: flex-start; }
	.final { padding: 22px; box-shadow: 6px 6px 0 var(--yellow); }
}
