/* Шрифты лежат на сайте — без обращений к Google, быстрее в Узбекистане.
   Brand — шрифт надписи логотипа (Anton). У Anton нет кириллицы, поэтому русская версия целиком
   набирается похожим Alumni Sans (BrandRu) — так в одном заголовке не смешиваются два шрифта. */
@font-face { font-family: Brand; font-display: swap; src: url(/fonts/anton-latin-400-normal.woff2) format('woff2'); unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: BrandRu; font-display: swap; size-adjust: 128%; src: url(/fonts/alumni-sans-latin-800-normal.woff2) format('woff2'); unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: BrandRu; font-display: swap; size-adjust: 128%; src: url(/fonts/alumni-sans-cyrillic-800-normal.woff2) format('woff2'); unicode-range: U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116; }
/* Dash — цифры приборов (Exo 2, жирный наклонный), как на щитках машин */
@font-face { font-family: Dash; font-style: italic; font-weight: 800; font-display: swap; src: url(/fonts/exo-2-latin-800-italic.woff2) format('woff2'); unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: Dash; font-style: italic; font-weight: 800; font-display: swap; src: url(/fonts/exo-2-cyrillic-800-italic.woff2) format('woff2'); unicode-range: U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116; }
@font-face { font-family: Inter; font-weight: 400; font-display: swap; src: url(/fonts/inter-cyrillic-400-normal.woff2) format('woff2'); unicode-range: U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116; }
@font-face { font-family: Inter; font-weight: 400; font-display: swap; src: url(/fonts/inter-latin-400-normal.woff2) format('woff2'); unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: Inter; font-weight: 600; font-display: swap; src: url(/fonts/inter-cyrillic-600-normal.woff2) format('woff2'); unicode-range: U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116; }
@font-face { font-family: Inter; font-weight: 600; font-display: swap; src: url(/fonts/inter-latin-600-normal.woff2) format('woff2'); unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }

:root {
  --bg: #121316;
  --paper: #121316;      /* заливка деталей логотипа — цвет фона под ним */
  --ink: #f3efe6;        /* линии логотипа и основной текст */
  --muted: #9b9fa7;
  --line: #2a2d33;
  --card: #18191d;
  --accent: #ff6a1a;
  --accent-2: #ffb020;
  --radius: 14px;
  --gutter: clamp(16px, 4vw, 48px);
  --brand: Brand, Impact, sans-serif;
}
html[lang="ru"] { --brand: BrandRu, Brand, Impact, sans-serif; }

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 16px/1.55 Inter, system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip; /* clip, а не hidden: не ломает «липкую» шапку */
}
a { color: inherit; }
h1, h2, h3 { font-family: var(--brand); font-weight: 400; line-height: 1.1; margin: 0; text-transform: uppercase; letter-spacing: .01em; }

/* ---------- Шапка ---------- */
.top {
  position: sticky; top: 0; z-index: 10;
  display: flex; align-items: center; gap: 24px;
  padding: 12px var(--gutter);
  background: rgb(18 19 22 / .82);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font: 400 21px Brand, Impact, sans-serif; letter-spacing: .04em; }
.brand img { background: #fff; border-radius: 8px; padding: 2px; }
.brand b { color: var(--accent); font-weight: 400; }
.nav { display: flex; gap: 22px; margin-left: auto; }
.nav a { text-decoration: none; color: var(--muted); font-weight: 600; font-size: 15px; transition: color .2s; }
.nav a:hover { color: var(--ink); }
.lang { display: flex; border: 1px solid var(--line); border-radius: 999px; padding: 3px; }
.lang button {
  border: 0; background: none; color: var(--muted); cursor: pointer;
  font: 600 13px Inter, sans-serif; padding: 5px 11px; border-radius: 999px;
}
.lang button[aria-pressed="true"] { background: var(--ink); color: var(--bg); }

/* ---------- Первый экран ---------- */
.hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  grid-template-areas: "logo logo" "text dash";
  gap: 8px 48px;
  align-items: end;
  /* фон во всю ширину, содержимое — в колонке до 1280px (без 100vw: он даёт прокрутку вбок на телефонах) */
  padding: clamp(16px, 4vw, 40px) max(var(--gutter), calc((100% - 1280px) / 2 + var(--gutter))) clamp(40px, 6vw, 72px);
}
/* Чертёжная сетка и тёплое свечение «из-под капота» */
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(ellipse 40% 45% at 50% 38%, rgb(255 106 26 / .16), transparent 70%),
    linear-gradient(rgb(255 255 255 / .035) 1px, transparent 1px) 0 0 / 40px 40px,
    linear-gradient(90deg, rgb(255 255 255 / .035) 1px, transparent 1px) 0 0 / 40px 40px;
  mask-image: linear-gradient(#000 60%, transparent);
}
.hero-logo { grid-area: logo; cursor: pointer; -webkit-tap-highlight-color: transparent; }
/* ширина ограничена и высотой окна, чтобы логотип целиком помещался на первом экране */
.hero-logo img, .hero-logo .lo-stage { display: block; width: min(100%, calc(62vh * 1429 / 708)); height: auto; margin: 0 auto; }
@media (scripting: none) { .hero-logo .lo-stage:empty { display: none; } }
.hero-text { grid-area: text; max-width: 680px; }
.slogan { font: 400 15px Brand, Impact, sans-serif; letter-spacing: .14em; text-transform: uppercase; color: var(--accent); margin: 0 0 12px; }
.slogan span { color: var(--muted); letter-spacing: .06em; font-family: var(--brand); }
h1 { font-size: clamp(30px, 4.6vw, 54px); }
.lead { color: var(--muted); font-size: clamp(16px, 1.6vw, 19px); margin: 14px 0 26px; }
.cta { display: flex; flex-wrap: wrap; gap: 12px; }

.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 13px 22px; border-radius: 999px;
  border: 1px solid #383b43; background: #1d1f24;
  font: 600 15px Inter, sans-serif; color: var(--ink); text-decoration: none; cursor: pointer;
  transition: transform .15s, border-color .2s, background .2s;
}
.btn svg { width: 20px; height: 20px; fill: currentColor; flex: none; }
.btn:hover { transform: translateY(-2px); border-color: #5a5f6a; background: #24272d; }
.btn:active { transform: translateY(0) scale(.98); }
.btn-accent { background: var(--accent); border-color: var(--accent); color: #140a03; }
.btn-accent:hover { background: #ff7d36; border-color: #ff7d36; }
.btn-small { padding: 9px 16px; font-size: 14px; }

/* Тахометр: чёрный циферблат, белые деления, красная стрелка и красная зона — без лишнего */
.dash { grid-area: dash; display: flex; align-items: center; gap: 22px; }
.tacho-wrap { width: 230px; }
.tacho { display: block; width: 100%; height: auto; overflow: visible; }
.tz-face { fill: url(#tz-face); stroke: #1d2026; stroke-width: 2; }
.tz-rim { fill: none; stroke: rgb(255 255 255 / .05); stroke-width: 1; }
.tz-minor { stroke: #3a1513; stroke-width: 2; transition: stroke .06s; }
.tz-minor.lit { stroke: #ff2a1f; }
.tz-half { stroke: #d7dae0; stroke-width: 2.4; }
.tz-major { stroke: #fff; stroke-width: 4.5; }
.tz-zone { fill: none; stroke: #d0141c; stroke-width: 10; }
.tz-ladder { stroke: #0a0b0d; stroke-width: 1.6; }
.tz-num { fill: #fff; font: italic 800 25px Dash, sans-serif; text-anchor: middle; dominant-baseline: central; }
.tz-num.hot { fill: #ff2a1f; }
.tz-label { fill: #e6e8ec; font: italic 800 11px Dash, sans-serif; text-anchor: middle; letter-spacing: .03em; }
.tz-box { fill: #050506; stroke: #2a2d34; stroke-width: 1.5; }
.tz-val { fill: #fff; font: italic 800 24px Dash, sans-serif; text-anchor: middle; font-variant-numeric: tabular-nums; }
.tz-val.hot { fill: #ff2a1f; }
.tz-unit { fill: #8b9099; font: italic 800 9.5px Dash, sans-serif; text-anchor: middle; letter-spacing: .22em; text-transform: uppercase; }
.tz-needle { transform-box: view-box; transform-origin: 130px 130px; transform: rotate(-130deg); }
.tz-needle path { fill: #ff2a1f; filter: drop-shadow(0 0 5px rgb(255 42 31 / .85)); }
.tz-hub { fill: #0b0c0e; stroke: #2b2e35; stroke-width: 2; }
.tz-cap { fill: #ff2a1f; }
/* у отсечки красная зона и стрелка «горят» */
.tacho.limit .tz-zone { animation: tz-limit .14s steps(2) infinite; }
.tacho.limit .tz-needle path { filter: drop-shadow(0 0 10px rgb(255 42 31 / 1)); }
@keyframes tz-limit { 50% { stroke: #ff5a3a; } }

/* Кнопка в том же духе: чёрная «шайба» с тонким светящимся красным кольцом */
.start {
  position: relative; flex: none; width: 112px; height: 112px; padding: 0; border-radius: 50%; cursor: pointer;
  border: 2px solid #1d2026; color: #fff;
  background: radial-gradient(circle at 50% 38%, #17191e, #050506 72%);
  box-shadow: 0 14px 30px rgb(0 0 0 / .55);
  transition: transform .12s;
  -webkit-tap-highlight-color: transparent;
}
.start::before {
  content: ""; position: absolute; inset: 8px; border-radius: 50%;
  border: 2px solid #ff2a1f;
  box-shadow: 0 0 10px rgb(255 42 31 / .5), inset 0 0 10px rgb(255 42 31 / .3);
  transition: box-shadow .2s, background .2s;
}
.start-in { position: relative; display: grid; place-content: center; gap: 3px; height: 100%; text-transform: uppercase; }
.start-in small { font: italic 800 9px Dash, sans-serif; letter-spacing: .34em; color: #ff2a1f; padding-left: .34em; }
.start-in b { font: italic 800 14px Dash, sans-serif; letter-spacing: 0; }
.start-in .start-hint { font: 600 8px Inter, sans-serif; letter-spacing: .12em; color: #8b9099; padding: 0; text-transform: lowercase; }
/* кнопку держат — без выделения текста, меню по долгому нажатию и прокрутки под пальцем */
.start { touch-action: none; user-select: none; -webkit-user-select: none; -webkit-touch-callout: none; }
.start:hover::before { box-shadow: 0 0 18px rgb(255 42 31 / .8), inset 0 0 14px rgb(255 42 31 / .45); }
.start:active { transform: scale(.95); }
.start:focus-visible { outline: 2px solid #fff; outline-offset: 4px; }
.start.on::before { background: radial-gradient(circle, rgb(255 42 31 / .35), transparent 70%); animation: start-pulse .3s ease-in-out infinite alternate; }
@keyframes start-pulse { to { box-shadow: 0 0 28px 4px rgb(255 42 31 / .9), inset 0 0 18px rgb(255 42 31 / .6); } }

/* ---------- Логотип: анимация появления ---------- */
/* Логотип из слоёв: каждая деталь — отдельный блок, двигается через transform */
.lo-stage { position: relative; aspect-ratio: 1429 / 708; }
.lo-layer { position: absolute; }
.lo-move { position: absolute; inset: 0; will-change: transform; }
.lo-move svg { display: block; width: 100%; height: 100%; overflow: visible; }
.lo-ink { fill: var(--ink); fill-rule: evenodd; }
.lo-paper { fill: var(--paper); }
.lo-flash {
  position: absolute; display: block; opacity: 0; pointer-events: none; will-change: opacity;
  background: radial-gradient(closest-side, rgb(255 150 70 / .95), rgb(255 106 26 / .45) 45%, transparent);
  mix-blend-mode: screen;
}
/* «Полоски» на штрихах у колеса: маска из повторяющихся просветов сдвигается на период (18% ширины)
   за цикл; --lo-flow (0…1) задаёт engine.js. Слева бегут влево, справа — вправо, от колеса наружу */
.lo-spd .lo-move {
  -webkit-mask: linear-gradient(90deg, transparent, #000 28%, #000 58%, transparent 86%) 0 0 / 18% 100% repeat-x;
  mask: linear-gradient(90deg, transparent, #000 28%, #000 58%, transparent 86%) 0 0 / 18% 100% repeat-x;
}
.lo-spd-l .lo-move { -webkit-mask-position: calc(var(--lo-flow, 0) * -21.95%) 0; mask-position: calc(var(--lo-flow, 0) * -21.95%) 0; }
.lo-spd-r .lo-move { -webkit-mask-position: calc(var(--lo-flow, 0) * 21.95%) 0; mask-position: calc(var(--lo-flow, 0) * 21.95%) 0; }
/* Появление: ленты выезжают, шестерня вкатывается с поворотом, поршни с шатунами опускаются */
.lo-intro .lo-rib-l { animation: lo-rib-l .9s cubic-bezier(.2, .8, .2, 1) both; }
.lo-intro .lo-rib-r { animation: lo-rib-r .9s cubic-bezier(.2, .8, .2, 1) both; }
.lo-intro .lo-gear-wrap { animation: lo-gear 1.3s cubic-bezier(.2, .8, .2, 1) .2s both; }
.lo-intro .lo-part { animation: lo-parts .8s cubic-bezier(.3, 1.4, .5, 1) .9s both; }
@keyframes lo-rib-l { from { transform: translateX(-12%); opacity: 0; } }
@keyframes lo-rib-r { from { transform: translateX(12%); opacity: 0; } }
@keyframes lo-gear { from { transform: rotate(-200deg) scale(.5); opacity: 0; } }
@keyframes lo-parts { from { transform: translateY(-25%); opacity: 0; } }

/* ---------- Бегущая строка ---------- */
.ticker { border-block: 1px solid var(--line); background: var(--card); overflow: hidden; padding: 14px 0; }
.ticker-row { display: flex; width: max-content; animation: ticker 40s linear infinite; }
.ticker-row span { font: 400 20px Brand, Impact, sans-serif; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); white-space: nowrap; }
.ticker-row i { width: 8px; height: 8px; margin: 0 26px; align-self: center; background: var(--accent); transform: rotate(45deg); flex: none; }
@keyframes ticker { to { transform: translateX(-50%); } }

/* ---------- Разделы ---------- */
.section { max-width: 1280px; margin: 0 auto; padding: clamp(56px, 8vw, 104px) var(--gutter) 0; }
.section h2 { font-size: clamp(28px, 3.6vw, 44px); margin-bottom: 32px; }
.num { color: var(--accent); margin-right: 6px; }

.cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.card {
  position: relative; padding: 26px 22px 24px; border-radius: var(--radius);
  background: var(--card); border: 1px solid var(--line); overflow: hidden;
  transition: transform .25s, border-color .25s;
}
.card::after { /* полоска-«индикатор» снизу, загорается при наведении */
  content: ""; position: absolute; left: 0; bottom: 0; height: 3px; width: 100%;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  transform: scaleX(0); transform-origin: left; transition: transform .35s;
}
.card:hover { transform: translateY(-4px); border-color: #3a3d44; }
.card:hover::after { transform: scaleX(1); }
.card h3 { font-size: 22px; margin: 18px 0 8px; }
.card p { margin: 0; color: var(--muted); font-size: 15px; }
.ico { width: 46px; height: 46px; fill: none; stroke: var(--accent); stroke-width: 2.4; stroke-linejoin: round; stroke-linecap: round; transition: transform .4s; }
.card:hover .ico { transform: rotate(-8deg) scale(1.08); }

/* каждый пункт — своя карточка: при появлении по одному не остаётся «дыр» с серым фоном */
.why-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.why-list li { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px 24px; display: grid; gap: 6px; align-content: start; }
.why-list b { font: 400 21px var(--brand); text-transform: uppercase; }
.why-list b::before { content: ""; display: inline-block; width: 10px; height: 10px; margin-right: 12px; background: var(--accent); transform: rotate(45deg) translateY(-3px); }
.why-list span { color: var(--muted); }

.shops { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.shop {
  padding: 26px 24px; border-radius: var(--radius); border: 1px solid var(--line);
  background: linear-gradient(160deg, #1d1f24, var(--card) 60%);
}
.shop h3 { font-family: Brand, Impact, sans-serif; font-size: 28px; letter-spacing: .04em; }
.phone { display: block; margin: 8px 0 20px; font: 400 22px Brand, Impact, sans-serif; letter-spacing: .03em; text-decoration: none; color: var(--accent-2); font-variant-numeric: tabular-nums; }
.shop-links { display: flex; gap: 10px; flex-wrap: wrap; }

.follow { padding-bottom: clamp(56px, 8vw, 104px); }
.follow-box {
  padding: clamp(28px, 5vw, 56px); border-radius: calc(var(--radius) * 1.5);
  background:
    radial-gradient(circle at 100% 0, rgb(255 106 26 / .28), transparent 55%),
    var(--card);
  border: 1px solid var(--line);
}
.follow-box h2 { margin-bottom: 10px; }
.follow-box p { color: var(--muted); margin: 0 0 24px; font-size: 18px; }

.foot {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px;
  padding: 24px var(--gutter); border-top: 1px solid var(--line);
  color: var(--muted); font-size: 14px;
}
.credit { flex-basis: 100%; font-size: 12px; opacity: .7; }
.credit a { color: inherit; }

/* Появление блоков при прокрутке */
.js .reveal { opacity: 0; transform: translateY(26px); transition: opacity .7s, transform .7s cubic-bezier(.2, .8, .2, 1); }
.js .reveal.in { opacity: 1; transform: none; }
.cards .reveal:nth-child(2), .shops .reveal:nth-child(2), .why-list .reveal:nth-child(2) { transition-delay: .08s; }
.cards .reveal:nth-child(3), .shops .reveal:nth-child(3), .why-list .reveal:nth-child(3) { transition-delay: .16s; }
.cards .reveal:nth-child(4), .why-list .reveal:nth-child(4) { transition-delay: .24s; }

/* ---------- Планшет и телефон ---------- */
@media (max-width: 980px) {
  .cards { grid-template-columns: repeat(2, 1fr); }
  .shops { grid-template-columns: 1fr; }
  .hero { grid-template-columns: 1fr; grid-template-areas: "logo" "text" "dash"; }
}
@media (max-width: 640px) {
  .nav { display: none; }
  .lang { margin-left: auto; }
  .brand span { font-size: 18px; }
  .cards, .why-list { grid-template-columns: 1fr; }
  .cta .btn { flex: 1 1 auto; justify-content: center; }
  .dash { justify-content: center; gap: 20px; }
  .tacho-wrap { width: 200px; }
  .start { width: 98px; height: 98px; }
  .start-in b { font-size: 12px; } /* «ГАЗАНУТЬ» помещается внутри кольца */
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .ticker-row { animation: none; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .lo-spd .lo-move { -webkit-mask: none; mask: none; }
}
