:root {
  --paper: #f4f4f1;
  --white: #ffffff;
  --ink: #0d0e10;
  --ink-2: #2a2c31;
  --muted: #6b6f76;
  --line: rgba(13, 14, 16, .12);
  --line-dark: rgba(255, 255, 255, .14);
  --metal: #2450ff;        /* металл — электрический синий */
  --parts: #ff5a1f;        /* запчасти — сигнальный оранжевый */
  --c: var(--ink);         /* цвет текущего направления */
  --wrap: 1320px;
  --pad: clamp(20px, 4vw, 48px);
  --sans: "Inter Tight", "Inter", system-ui, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, monospace;
}
.metal { --c: var(--metal); }
.parts { --c: var(--parts); }

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { background: var(--paper); color: var(--ink); font-family: var(--sans); font-size: 17px; line-height: 1.5; -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--pad); }
.mono { font-family: var(--mono); font-size: 12px; letter-spacing: .04em; text-transform: uppercase; }

/* ---------- шапка ---------- */
header.site { position: sticky; top: 0; z-index: 20; background: rgba(244, 244, 241, .82); backdrop-filter: blur(14px); border-bottom: 1px solid var(--line); }
header.site .wrap { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; height: 68px; gap: 24px; }
.logo { display: flex; align-items: center; gap: 12px; }
.logo .mark { display: grid; grid-template-columns: 1fr 1fr; width: 30px; height: 30px; }
.logo .mark i:first-child { background: var(--metal); }
.logo .mark i:last-child { background: var(--parts); }
.logo b { font-size: 21px; font-weight: 800; letter-spacing: -.02em; }
.logo .mono { color: var(--muted); font-size: 10.5px; line-height: 1.25; max-width: 130px; }
nav.main { display: flex; gap: 30px; font-size: 15px; font-weight: 600; }
nav.main a { position: relative; padding: 6px 0; }
nav.main a::after { content: ""; position: absolute; left: 0; right: 100%; bottom: 0; height: 2px; background: var(--c); transition: right .25s; }
nav.main a:hover::after, nav.main a.on::after { right: 0; }
nav.main a.metal::before, nav.main a.parts::before { content: ""; display: inline-block; width: 7px; height: 7px; background: var(--c); margin-right: 8px; vertical-align: 2px; }
.phone { justify-self: end; text-align: right; font-weight: 700; font-size: 18px; letter-spacing: -.01em; white-space: nowrap; }
.phone .mono { display: block; color: var(--muted); font-size: 10.5px; font-weight: 400; }

/* ---------- первый экран ---------- */
.intro { padding: clamp(48px, 7vw, 96px) 0 clamp(28px, 4vw, 48px); }
.intro .wrap { display: grid; grid-template-columns: 1fr auto; align-items: end; gap: 40px; }
.intro h1 { font-size: clamp(42px, 7.2vw, 108px); font-weight: 700; line-height: .95; letter-spacing: -.045em; max-width: 13ch; }
.intro h1 .m { color: var(--metal); }
.intro h1 .p { color: var(--parts); }
.intro p.tagline { font-size: clamp(18px, 1.7vw, 22px); font-weight: 500; color: var(--ink-2); max-width: 22ch; padding-bottom: 10px; border-left: 2px solid var(--ink); padding-left: 18px; }

.split { display: grid; grid-template-columns: 1fr 1fr; border-top: 1px solid var(--line); }
.half { position: relative; height: min(72vh, 680px); min-height: 460px; overflow: hidden; color: #fff; display: flex; align-items: flex-end; isolation: isolate; }
.half + .half { border-left: 1px solid var(--paper); }
.half .img { position: absolute; inset: 0; z-index: -2; background-size: cover; background-position: center; filter: grayscale(1) contrast(1.08) brightness(.9); transform: scale(1.02); transition: filter .6s, transform 1.2s cubic-bezier(.2, .7, .2, 1); }
.half::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(13, 14, 16, 0) 30%, rgba(13, 14, 16, .88) 100%); }
.half::after { content: ""; position: absolute; left: 0; bottom: 0; height: 6px; width: 64px; background: var(--c); transition: width .5s cubic-bezier(.2, .7, .2, 1); }
.half:hover .img { filter: grayscale(0) contrast(1.02) brightness(.85); transform: scale(1.06); }
.half:hover::after { width: 100%; }
.half .in { width: 100%; padding: clamp(24px, 3.4vw, 48px); display: grid; grid-template-columns: 1fr auto; align-items: end; gap: 24px; }
.half .idx { color: rgba(255, 255, 255, .7); }
.half .idx b { color: var(--c); font-weight: 700; }
.half h2 { font-size: clamp(38px, 5vw, 76px); font-weight: 700; letter-spacing: -.04em; line-height: 1; margin: 14px 0 16px; }
.half ul { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; }
.half li { font-family: var(--mono); font-size: 12px; text-transform: uppercase; letter-spacing: .04em; padding: 6px 10px; border: 1px solid rgba(255, 255, 255, .35); background: rgba(13, 14, 16, .25); backdrop-filter: blur(4px); }
.arrow { width: 64px; height: 64px; display: grid; place-items: center; background: var(--c); color: #fff; font-size: 26px; transition: transform .3s; flex: none; }
.half:hover .arrow { transform: rotate(-45deg); }

/* ---------- бегущая строка ---------- */
.ticker { background: var(--ink); color: #fff; overflow: hidden; white-space: nowrap; border-top: 1px solid var(--ink); }
.ticker .track { display: inline-flex; animation: run 60s linear infinite; padding: 16px 0; }
.ticker span { font-family: var(--mono); font-size: 13px; text-transform: uppercase; letter-spacing: .06em; padding: 0 22px; opacity: .9; }
.ticker span.dot { padding: 0; opacity: 1; }
.ticker span.dot::before { content: "■"; font-size: 8px; vertical-align: 2px; }
.ticker span.dot.m::before { color: var(--metal); }
.ticker span.dot.p::before { color: var(--parts); }
@keyframes run { to { transform: translateX(-50%); } }

/* ---------- сетка-ячейки (преимущества, контакты) ---------- */
.cells { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.cell { border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 28px 26px 30px; background: transparent; transition: background .25s; }
.cell:hover { background: var(--white); }
.cell .mono { color: var(--muted); }
.cell b { display: block; font-size: 20px; font-weight: 700; letter-spacing: -.02em; margin: 26px 0 6px; line-height: 1.2; }
.cell span { color: var(--muted); font-size: 15px; }
.cell a b:hover { color: var(--metal); }
.perks { padding: 0; }
.perks.metal .cell .mono b, .perks.parts .cell .mono b { color: var(--c); }

/* ---------- секции ---------- */
section { padding: clamp(64px, 9vw, 120px) 0; }
section.white { background: var(--white); }
.shead { display: grid; grid-template-columns: 240px 1fr auto; gap: 24px; align-items: end; margin-bottom: clamp(32px, 4vw, 56px); padding-bottom: 22px; border-bottom: 1px solid var(--ink); }
.shead .mono { color: var(--muted); align-self: start; padding-top: 10px; }
.shead .mono b { color: var(--c); }
h2 { font-size: clamp(34px, 4.6vw, 64px); font-weight: 700; line-height: 1; letter-spacing: -.04em; }
h2 .c { color: var(--c); }
.more { font-weight: 600; white-space: nowrap; display: inline-flex; gap: 10px; align-items: center; }
.more::after { content: "→"; display: grid; place-items: center; width: 36px; height: 36px; background: var(--c); color: #fff; transition: transform .25s; }
.more:hover::after { transform: translateX(4px); }
.sub { color: var(--muted); max-width: 640px; margin: -24px 0 40px 264px; font-size: 18px; }

/* ---------- плитки каталога ---------- */
.tiles { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.tiles.three { grid-template-columns: repeat(3, 1fr); }
.tile { background: var(--paper); display: flex; flex-direction: column; position: relative; overflow: hidden; }
section.white .tile { background: var(--white); }
.tile .pic { aspect-ratio: 4 / 3; background-size: cover; background-position: center; filter: grayscale(1) contrast(1.05); transition: filter .5s, transform .8s cubic-bezier(.2, .7, .2, 1); }
.tile:hover .pic { filter: grayscale(0); transform: scale(1.04); }
.tile .body { padding: 20px 22px 24px; position: relative; background: inherit; flex: 1; }
.tile .body::before { content: ""; position: absolute; left: 0; top: 0; height: 3px; width: 0; background: var(--c); transition: width .4s; }
.tile:hover .body::before { width: 100%; }
.tile .mono { color: var(--muted); }
.tile h3 { font-size: 22px; font-weight: 700; letter-spacing: -.02em; margin: 10px 0 10px; line-height: 1.15; }
.tile ul { list-style: none; display: flex; flex-wrap: wrap; gap: 4px 12px; font-family: var(--mono); font-size: 11.5px; text-transform: uppercase; letter-spacing: .03em; color: var(--ink-2); }
.tile .go { position: absolute; right: 18px; top: 18px; font-size: 20px; color: var(--muted); transition: color .25s, transform .25s; }
.tile:hover .go { color: var(--c); transform: translate(2px, -2px); }

/* ---------- типы техники ---------- */
.vtype .brands { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 16px; }
.vtype .brands span { font-family: var(--mono); font-size: 11px; text-transform: uppercase; letter-spacing: .03em; padding: 5px 8px; border: 1px solid var(--line); }
.vtype p { color: var(--muted); font-size: 15px; }

/* ---------- как заказать ---------- */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); counter-reset: s; }
.step { padding: 0 28px 0 0; position: relative; }
.step::before { counter-increment: s; content: "0" counter(s); display: block; font-family: var(--mono); font-size: 13px; color: var(--muted); padding-bottom: 18px; border-bottom: 1px solid var(--ink); margin-bottom: 26px; }
.step::after { content: ""; position: absolute; left: 0; top: 27px; width: 9px; height: 9px; background: var(--ink); }
.step b { display: block; font-size: 24px; font-weight: 700; letter-spacing: -.02em; margin-bottom: 8px; }
.step span { color: var(--muted); font-size: 15px; }

/* ---------- позвоните ---------- */
.call { background: var(--ink); color: #fff; padding: clamp(64px, 9vw, 120px) 0; position: relative; overflow: hidden; }
.call .wrap { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: end; }
.call .mono { color: rgba(255, 255, 255, .55); }
.call h2 { margin-top: 18px; }
.call p { color: rgba(255, 255, 255, .7); margin-top: 18px; max-width: 46ch; }
.call .big { display: block; font-size: clamp(40px, 6.4vw, 96px); font-weight: 700; letter-spacing: -.045em; line-height: 1; white-space: nowrap; transition: color .25s; }
.call .big:hover { color: var(--c); }
.call.metal .big, .call.parts .big { color: #fff; }
.call.metal .big:hover, .call.parts .big:hover { color: var(--c); }
.call .hours { margin-top: 16px; color: rgba(255, 255, 255, .55); }
.call .bar { position: absolute; left: 0; right: 0; bottom: 0; height: 6px; display: grid; grid-template-columns: 1fr 1fr; }
.call .bar i:first-child { background: var(--metal); }
.call .bar i:last-child { background: var(--parts); }
.call.metal .bar i, .call.parts .bar i { background: var(--c); }
.call .right { text-align: right; }

/* ---------- FAQ ---------- */
.faq { margin-top: -1px; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; padding: 26px 0; list-style: none; display: grid; grid-template-columns: 240px 1fr 40px; gap: 24px; align-items: center; font-size: 22px; font-weight: 600; letter-spacing: -.02em; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary .mono { color: var(--muted); }
.faq summary::after { content: "+"; justify-self: end; font-size: 28px; font-weight: 300; transition: transform .25s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding: 0 64px 28px 264px; color: var(--ink-2); max-width: 980px; }

/* ---------- шапка подстраниц ---------- */
.pagehead { position: relative; color: #fff; isolation: isolate; overflow: hidden; }
.pagehead .img { position: absolute; inset: 0; z-index: -2; background-size: cover; background-position: center; filter: grayscale(1) contrast(1.08) brightness(.8); }
.pagehead::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(13, 14, 16, .9) 0%, rgba(13, 14, 16, .35) 100%); }
.pagehead::after { content: ""; position: absolute; left: 0; bottom: 0; height: 6px; width: 100%; background: var(--c); }
.pagehead .wrap { padding-top: clamp(64px, 9vw, 120px); padding-bottom: clamp(56px, 7vw, 96px); }
.pagehead .mono { color: rgba(255, 255, 255, .6); }
.pagehead .mono b { color: var(--c); }
.pagehead h1 { font-size: clamp(48px, 8vw, 120px); font-weight: 700; letter-spacing: -.05em; line-height: .95; margin: 22px 0 22px; }
.pagehead p { max-width: 560px; font-size: 19px; color: rgba(255, 255, 255, .82); }
.pagehead .other { display: inline-flex; margin-top: 32px; gap: 10px; font-weight: 600; border-bottom: 1px solid rgba(255, 255, 255, .4); padding-bottom: 4px; }
.pagehead .other:hover { border-color: #fff; }

/* ---------- подвал ---------- */
footer { background: var(--ink); color: rgba(255, 255, 255, .6); padding: 72px 0 0; font-size: 15px; overflow: hidden; }
footer .cols { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 40px; padding-bottom: 40px; border-bottom: 1px solid var(--line-dark); }
footer .mono { color: rgba(255, 255, 255, .4); display: block; margin-bottom: 14px; }
footer b { color: #fff; font-weight: 600; }
footer a:hover { color: #fff; }
footer .word { font-size: clamp(56px, 8vw, 114px); font-weight: 800; letter-spacing: -.06em; line-height: .8; color: #fff; margin-top: 36px; padding-bottom: .16em; white-space: nowrap; }
footer .word i { display: inline-block; width: .17em; height: .17em; background: var(--metal); margin-left: .06em; }
footer .word i + i { background: var(--parts); margin-left: .04em; }
footer .legal { display: flex; justify-content: space-between; gap: 20px; padding-top: 18px; padding-bottom: 18px; border-top: 1px solid var(--line-dark); color: rgba(255, 255, 255, .4); }

/* ---------- появление при прокрутке ---------- */
.js .reveal { opacity: 0; transform: translateY(24px); transition: opacity .8s, transform .8s cubic-bezier(.2, .7, .2, 1); }
.js .reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .js .reveal { opacity: 1; transform: none; } .ticker .track { animation: none; } }

/* ---------- планшет и телефон ---------- */
@media (max-width: 1080px) {
  header.site .wrap { grid-template-columns: 1fr auto; }
  nav.main { display: none; }
  .tiles { grid-template-columns: repeat(2, 1fr); }
  .tiles.three { grid-template-columns: repeat(2, 1fr); }
  .cells, .steps { grid-template-columns: repeat(2, 1fr); }
  .steps { row-gap: 40px; }
  .shead { grid-template-columns: 1fr auto; }
  .shead .mono { grid-column: 1 / -1; }
  .sub { margin-left: 0; }
  .faq summary { grid-template-columns: 1fr 40px; }
  .faq summary .mono { display: none; }
  .faq details p { padding-left: 0; }
}
@media (max-width: 760px) {
  .intro .wrap { grid-template-columns: 1fr; gap: 24px; }
  .split { grid-template-columns: 1fr; }
  .half { height: 62vh; min-height: 420px; }
  .half + .half { border-left: 0; border-top: 1px solid var(--paper); }
  .call .wrap { grid-template-columns: 1fr; }
  .call .right { text-align: left; }
  footer .cols { grid-template-columns: 1fr; }
  .logo .mono { display: none; }
  .phone { font-size: 16px; }
}
@media (max-width: 520px) {
  .tiles, .tiles.three, .cells, .steps { grid-template-columns: 1fr; }
  .shead { grid-template-columns: 1fr; }
  .half .in { grid-template-columns: 1fr; }
  .arrow { display: none; }
  footer .legal { flex-direction: column; }
}

a.cell { display: block; }
.perks .cell .mono b { color: var(--c); }

/* ---------- шапка: слоган у телефона, первый экран без заголовка ---------- */
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
header.site .right { justify-self: end; display: flex; align-items: center; gap: 22px; }
header.site .tagline { font-size: 13px; line-height: 1.3; color: var(--ink-2); max-width: 170px; text-align: right; padding-right: 22px; border-right: 1px solid var(--line); }
.tagline-m { display: none; }
.half { height: clamp(460px, calc(100svh - 68px - 50px), 760px); }
@media (max-width: 1360px) {
  header.site .tagline { display: none; }
  .tagline-m { display: block; padding: 14px var(--pad); font-size: 14px; color: var(--ink-2); border-bottom: 1px solid var(--line); }
}
@media (max-width: 760px) { .half { height: 62vh; min-height: 420px; } }

/* ---------- телефоны: быстро и компактно ---------- */
@media (hover: none), (max-width: 760px) {
  /* без проявления при прокрутке — на телефоне выглядит как «лаг» */
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .half .img, .tile .pic { transition: none; }
}
@media (max-width: 760px) {
  header.site { backdrop-filter: none; background: var(--paper); }
  header.site .wrap { height: 60px; }
  .half li { backdrop-filter: none; background: rgba(13, 14, 16, .45); }
  .half { height: 330px; min-height: 0; }          /* фикс. высота: не прыгает, когда сворачивается адресная строка */
  .half .in { padding: 22px 20px; }
  .half .idx { display: none; }
  .half h2 { font-size: 36px; margin: 0 0 12px; }
  .half li { font-size: 10.5px; padding: 5px 8px; }

  section { padding: 48px 0; }
  .shead { margin-bottom: 24px; padding-bottom: 14px; gap: 12px; }
  h2 { font-size: 32px; }
  .more::after { width: 30px; height: 30px; }

  .tiles, .tiles.three { grid-template-columns: 1fr 1fr; }
  .tile .pic { aspect-ratio: 1 / 1; }
  .tile .body { padding: 12px 12px 14px; }
  .tile .go { display: none; }
  .tile h3 { font-size: 16px; margin: 4px 0 6px; }
  .tile ul { font-size: 10px; gap: 2px 8px; }
  .tiles.three .vtype { grid-column: 1 / -1; }      /* легковые/грузовые/спецтехника — по одной, но ниже */
  .vtype .pic { aspect-ratio: 16 / 9; }
  .vtype h3 { font-size: 20px; }

  .cells { grid-template-columns: 1fr 1fr; }
  .cell { padding: 16px 14px 18px; }
  .cell b { font-size: 16px; margin: 12px 0 4px; }
  .cell span { font-size: 13px; }
  #kontakty .cells { grid-template-columns: 1fr; }
  #kontakty .cell b { font-size: 18px; margin-top: 8px; overflow-wrap: anywhere; }

  .steps { grid-template-columns: 1fr 1fr; row-gap: 28px; }
  .step { padding-right: 14px; }
  .step::before { padding-bottom: 12px; margin-bottom: 16px; }
  .step::after { top: 21px; }
  .step b { font-size: 18px; }
  .step span { font-size: 13px; }

  .call { padding: 56px 0; }
  .call .big { font-size: 10.4vw; }
  .faq summary { font-size: 17px; padding: 18px 0; }
  .pagehead h1 { font-size: 48px; }
  .pagehead p { font-size: 16px; }
  footer { padding-top: 48px; }
}

/* телефоны: цвет у фото в середине экрана (класс live ставит скрипт) */
@media (hover: none) {
  .tile .pic, .half .img { transition: filter .6s; }
  .tile.live .pic { filter: grayscale(0); }
  .half.live .img { filter: grayscale(0) contrast(1.02) brightness(.85); }
  .tile.live .body::before { width: 100%; }
}
