/* ============================================================
   1080M — style.css
   Пастельная палитра: белый, чёрный акцент, коралл / небо /
   шалфей / лаванда / песок. Светлая и тёмная темы.
   ============================================================ */

:root {
  /* База */
  --color-bg: #FBFAF7;
  --color-surface: #FFFFFF;
  --color-alt: #F4F1EA;
  --color-text: #1A1A1E;
  --color-muted: #6E6E76;
  --color-border: #E7E3D9;

  /* Чёрный акцент */
  --color-accent: #1A1A1E;
  --color-accent-contrast: #FFFFFF;

  /* Пастель */
  --pastel-coral: #F4C1BA;     --deep-coral: #C9655A;
  --pastel-sky:   #C9DCEA;     --deep-sky:   #54809E;
  --pastel-sage:  #D2DEC3;     --deep-sage:  #6C8A58;
  --pastel-lav:   #D9D2EA;     --deep-lav:   #7C6BAE;
  --pastel-sand:  #EDE2CB;     --deep-sand:  #A2854E;

  --color-error: #C9655A;
  --color-wa: #3FA86E;

  /* Премиум-акцент: латунь/золото для тёмных блоков */
  --gold: #C9A227;
  --gold-soft: #E3C96B;
  --gold-dim: rgba(201, 162, 39, .32);

  /* Hero — вуаль легче, мост видно полностью */
  --hero-veil-top: rgba(251, 250, 247, .08);
  --hero-veil-bot: rgba(251, 250, 247, .72);
  --hero-img-filter: saturate(.9) brightness(1.02);
  --ink: #1E1E24;
  --ink-text: #EDEAE2;

  --shadow-sm: 0 2px 10px rgba(26, 26, 30, .06);
  --shadow-md: 0 10px 32px rgba(26, 26, 30, .10);
  --radius: 18px;
  --radius-sm: 12px;

  --font-head: 'Cabinet Grotesk', system-ui, sans-serif;
  --font-body: 'General Sans', system-ui, sans-serif;
}

[data-theme="dark"] {
  --color-bg: #131316;
  --color-surface: #1C1C21;
  --color-alt: #17171B;
  --color-text: #EDEAE2;
  --color-muted: #9C9CA5;
  --color-border: #2A2A31;

  --color-accent: #EDEAE2;
  --color-accent-contrast: #131316;

  --pastel-coral: #4A2D2A;     --deep-coral: #E89A90;
  --pastel-sky:   #25333D;     --deep-sky:   #93BBD4;
  --pastel-sage:  #2B362A;     --deep-sage:  #A9C394;
  --pastel-lav:   #312C40;     --deep-lav:   #B3A6DC;
  --pastel-sand:  #3A3328;     --deep-sand:  #D2B987;

  --color-error: #E89A90;

  --hero-veil-top: rgba(19, 19, 22, .2);
  --hero-veil-bot: rgba(19, 19, 22, .78);
  --hero-img-filter: saturate(.75) brightness(.72);
  --ink: #1E1E24;
  --ink-text: #EDEAE2;

  --shadow-sm: 0 2px 10px rgba(0, 0, 0, .35);
  --shadow-md: 0 10px 32px rgba(0, 0, 0, .45);
}

/* ── Reset / база ─────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

/* Skip-to-content (a11y) */
.skip-link {
  position: absolute;
  top: -100%;
  left: 1rem;
  z-index: 10000;
  padding: .7em 1.4em;
  background: var(--color-accent);
  color: var(--color-accent-contrast);
  font-weight: 700;
  border-radius: 0 0 var(--radius-sm) var(--radius-sm);
  box-shadow: var(--shadow-md);
  transition: top .2s ease;
}
.skip-link:focus {
  top: 0;
  outline: 3px solid var(--gold);
  outline-offset: 2px;
}
html { overflow-x: hidden; overflow-x: clip; }
body {
  font-family: var(--font-body);
  background: var(--color-bg);
  color: var(--color-text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  transition: background .3s ease, color .3s ease;
  overflow-x: hidden;
  overflow-x: clip;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; background: none; border: none; color: inherit; }

/* Премиум-детали: выделение, скроллбар, фокус, зерно */
::selection { background: var(--pastel-coral); color: var(--deep-coral); }
::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: var(--color-bg); }
::-webkit-scrollbar-thumb { background: var(--color-border); border-radius: 8px; border: 2px solid var(--color-bg); }
::-webkit-scrollbar-thumb:hover { background: var(--color-muted); }
:focus-visible { outline: 2px solid var(--deep-coral); outline-offset: 3px; border-radius: 4px; }
section[id] { scroll-margin-top: 88px; }

/* Тонкое зерно поверх всего — глубина, как в печати */
body::after {
  content: '';
  position: fixed;
  inset: 0;
  z-index: 9999;
  pointer-events: none;
  opacity: .035;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)'/%3E%3C/svg%3E");
}

.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }

h1, h2, h3 { font-family: var(--font-head); line-height: 1.15; font-weight: 800; }
h2 { font-size: clamp(1.7rem, 3.4vw, 2.5rem); letter-spacing: -.02em; }

/* ── Метки секций ─────────────────────────────────────────── */
.label {
  display: inline-block;
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  padding: .4em 1em;
  border-radius: 999px;
  background: var(--color-alt);
  color: var(--color-muted);
  margin-bottom: 1rem;
}
.label--coral, .label--sky, .label--sage, .label--lav {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  color: var(--gold);
}
.label--light { background: rgba(255,255,255,.12); color: #EDEAE2; }

/* ── Кнопки ───────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .55em;
  font-weight: 600;
  border-radius: 999px;
  padding: .8em 1.7em;
  font-size: .95rem;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease, color .18s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn--primary {
  position: relative;
  overflow: hidden;
  background: var(--color-accent);
  color: var(--color-accent-contrast);
  box-shadow: var(--shadow-sm);
}
.btn--primary::before {
  content: '';
  position: absolute;
  top: 0; left: -80%;
  width: 50%; height: 100%;
  background: linear-gradient(100deg, transparent, rgba(255,255,255,.22), transparent);
  transform: skewX(-20deg);
  transition: left .5s ease;
}
.btn--primary:hover::before { left: 130%; }
.btn--primary:hover { box-shadow: var(--shadow-md); }
.btn--wa {
  background: var(--color-surface);
  color: var(--color-wa);
  border: 1.5px solid var(--color-border);
}
.btn--wa:hover { border-color: var(--color-wa); }
.btn--nav { background: var(--color-accent); color: var(--color-accent-contrast); padding: .55em 1.3em; font-size: .88rem; }
.btn--lg { padding: .95em 2em; font-size: 1rem; }
.btn--full { width: 100%; }

/* ── Header ───────────────────────────────────────────────── */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: color-mix(in srgb, var(--color-bg) 85%, transparent);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--color-border);
  transition: box-shadow .25s ease, background .3s ease;
}
.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  height: 76px;
}
.logo__img { width: 132px; height: auto; }
.nav { display: flex; align-items: center; gap: 1.6rem; }
.nav__link {
  font-size: .92rem;
  font-weight: 500;
  color: var(--color-muted);
  transition: color .15s ease;
  position: relative;
}
.nav__link::after {
  content: '';
  position: absolute;
  left: 0; bottom: -6px;
  width: 0; height: 2px;
  border-radius: 2px;
  background: var(--deep-coral);
  transition: width .2s ease;
}
.nav__link:hover { color: var(--color-text); }
.nav__link:hover::after { width: 100%; }

.header__right { display: flex; align-items: center; gap: .9rem; }
.header-phone { font-weight: 600; font-size: .92rem; }
.header-phone:hover { color: var(--deep-coral); }

.theme-toggle {
  width: 38px; height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  border: 1.5px solid var(--color-border);
  color: var(--color-muted);
  transition: color .15s ease, border-color .15s ease, transform .25s ease;
}
.theme-toggle:hover { color: var(--color-text); border-color: var(--color-muted); transform: rotate(20deg); }

.burger { display: none; flex-direction: column; gap: 5px; padding: 8px; }
.burger span {
  width: 22px; height: 2px;
  background: var(--color-text);
  border-radius: 2px;
  transition: transform .25s ease, opacity .2s ease;
}
.burger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger.open span:nth-child(2) { opacity: 0; }
.burger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.mobile-nav {
  display: none;
  flex-direction: column;
  padding: .5rem 24px 1.2rem;
  background: var(--color-bg);
  border-bottom: 1px solid var(--color-border);
}
.mobile-nav.open { display: flex; }
.mobile-nav__link { padding: .7rem 0; font-weight: 500; border-bottom: 1px solid var(--color-border); }
.mobile-nav__cta { color: var(--deep-coral); font-weight: 700; border-bottom: none; }

/* ── HERO ─────────────────────────────────────────────────── */
.hero {
  position: relative;
  overflow: hidden;
  min-height: 86vh;
  display: flex;
  align-items: center;
  padding: 6rem 0 7rem;
}
.hero__bg { position: absolute; inset: 0; z-index: 0; }
.hero__bg img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center 30%;
  filter: var(--hero-img-filter);
  transition: filter .3s ease;
}
/* Слайдшоу героя: кроссфейд + медленный наезд */
.hero__slide {
  position: absolute; inset: 0;
  opacity: 0;
  transform: scale(1.07); /* = финал heroKb: без скачка при смене слайда */
  transition: filter .3s ease, opacity 1.8s ease;
  will-change: opacity, transform;
}
.hero__slide.is-active {
  opacity: 1;
  animation: heroKb 9s ease-out forwards;
}
@keyframes heroKb {
  from { transform: scale(1); }
  to   { transform: scale(1.07); }
}
.hero__veil {
  position: absolute; inset: 0;
  background:
    linear-gradient(100deg,
      var(--hero-veil-bot) 0%,
      var(--hero-veil-bot) 22%,
      var(--hero-veil-top) 58%,
      transparent 80%),
    linear-gradient(to top, var(--hero-veil-bot) 0%, transparent 22%);
}
.hero__waves {
  position: absolute;
  left: 0; right: 0; bottom: -1px;
  width: 100%; height: clamp(92px, 8vw, 132px);
  pointer-events: none;
}
.hero__inner { position: relative; z-index: 1; width: 100%; }
.hero__content { max-width: 580px; }

.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: .6em;
  font-size: .82rem;
  font-weight: 600;
  padding: .5em 1.1em;
  border-radius: 999px;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-sm);
  margin-bottom: 1.4rem;
}
.badge__dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--deep-coral);
  animation: pulse 2.2s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 3px color-mix(in srgb, var(--deep-coral) 25%, transparent); }
  50%      { box-shadow: 0 0 0 7px color-mix(in srgb, var(--deep-coral) 8%, transparent); }
}

.hero__title {
  font-size: clamp(2.3rem, 5.6vw, 4rem);
  letter-spacing: -.025em;
  margin-bottom: 1.1rem;
}
.hero__title em {
  font-style: normal;
  color: var(--deep-coral);
}
.hero__desc {
  font-size: clamp(1rem, 1.6vw, 1.13rem);
  color: var(--color-muted);
  max-width: 560px;
  margin-bottom: 1.8rem;
}
.hero__cta { display: flex; flex-wrap: wrap; gap: .8rem; margin-bottom: 2.4rem; }

.hero__stats {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 1.3rem;
  padding: 1rem 1.5rem;
  border-radius: var(--radius);
  background: color-mix(in srgb, var(--color-surface) 78%, transparent);
  border: 1px solid var(--color-border);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  box-shadow: var(--shadow-sm);
}
.stat { display: flex; flex-direction: column; }
.stat b { font-family: var(--font-head); font-size: 1.35rem; font-weight: 800; }
.stat span { font-size: .78rem; color: var(--color-muted); }
.stat__sep { width: 1px; height: 34px; background: var(--color-border); }

/* ── Marquee: лента логотипов ─────────────────────────────── */
.logos-wrap {
  overflow: hidden;
  border-bottom: 1px solid var(--color-border);
  background: var(--color-alt);
  padding: 1.1rem 0;
  display: grid;
  gap: .8rem;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
          mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.logos-track {
  display: flex;
  width: max-content;
  animation: logosL 48s linear infinite;
}
.logos-track--rev { animation: logosR 56s linear infinite; }
.logos-set {
  display: flex;
  align-items: stretch;
  gap: .8rem;
  padding-right: .8rem;
}
.logo-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 62px;
  min-width: 148px;
  padding: 0 1.5rem;
  background: #FFFFFF;
  border: 1px solid var(--color-border);
  border-radius: 14px;
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  white-space: nowrap;
  transition: transform .25s ease, box-shadow .25s ease;
}
.logo-chip:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.logo-chip img {
  height: 28px;
  width: auto;
  max-width: 128px;
  object-fit: contain;
  border-radius: 5px;
  transform: scale(var(--s, 1));
}
/* Белые логотипы (Komatsu) — переводим в фирменный тёмный */
.logo-chip img.inv { filter: brightness(0) opacity(.88); }
/* Текстовые плашки — фирменные wordmark-цвета */
.logo-chip--txt {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: .95rem;
  letter-spacing: .07em;
  text-transform: uppercase;
  color: #3C3C44;
}
.tc--volvo   { color: #1D3E75; }
.tc--jcb     { color: #16161A; }
.tc--atlas   { color: #0078A9; }
.tc--kobelco { color: #0066B3; }
.tc--kamaz   { color: #16498C; }
.tc--hyundai { color: #002C5F; }
.tc--shantui { color: #D6001C; }
.tc--metso   { color: #2B2B30; }
[data-theme="dark"] .logo-chip { border-color: transparent; }
@keyframes logosL { to { transform: translateX(-50%); } }
@keyframes logosR { from { transform: translateX(-50%); } to { transform: translateX(0); } }

/* ── Секции ───────────────────────────────────────────────── */
.section { position: relative; padding: 5.5rem 0; }
.section--alt { background: var(--color-alt); }
.section__head { max-width: 680px; margin-bottom: 3rem; }
.section__head p { color: var(--color-muted); margin-top: .8rem; }
.section__head h2 { position: relative; padding-bottom: .9rem; }
.section__head h2::after {
  content: '';
  position: absolute;
  left: 0; bottom: 0;
  width: 48px; height: 3px;
  border-radius: 3px;
  background: var(--gold);
}

/* Мягкое пятно-подложка — одно, сдержанное */
.section > .container { position: relative; z-index: 2; }
#route::before {
  content: '';
  position: absolute;
  top: -120px; right: -160px;
  width: 540px; height: 540px;
  border-radius: 50%;
  filter: blur(110px);
  opacity: .35;
  pointer-events: none;
  background: var(--pastel-coral);
}

/* ── ROUTE: фото моста ────────────────────────────────────── */
.route-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 1.3rem;
  margin-bottom: 2.6rem;
}
.route-card {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  min-height: 280px;
  box-shadow: var(--shadow-sm);
  grid-column: span 4;
  transition: transform .25s ease, box-shadow .25s ease;
}
.route-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
figure.route-card { cursor: zoom-in; }
.route-card--big { grid-column: span 8; min-height: 360px; }
.route-card--wide { grid-column: span 12; min-height: 300px; }
.route-card img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  transition: filter .4s ease;
  animation: kenburns 20s ease-in-out infinite alternate;
  will-change: transform;
}
.route-card:nth-child(2n) img { animation-duration: 26s; animation-direction: alternate-reverse; }
.route-card:nth-child(3n) img { animation-delay: -9s; }
.route-card:hover img { filter: brightness(1.06) saturate(1.06); }
@keyframes kenburns {
  from { transform: scale(1.03) translate(0, 0); }
  to   { transform: scale(1.13) translate(-1.8%, 1.4%); }
}

/* CTA-плитка в коллаже */
.route-card--cta {
  grid-column: span 4;
  display: flex;
  background: var(--ink);
  color: var(--ink-text);
  cursor: pointer;
}
.route-card--cta::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(420px 220px at 110% -10%, color-mix(in srgb, var(--deep-coral) 38%, transparent), transparent 70%),
    radial-gradient(320px 200px at -10% 110%, color-mix(in srgb, var(--deep-sky) 30%, transparent), transparent 70%);
  pointer-events: none;
}
.route-cta__body {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: .6rem;
  padding: 1.6rem 1.5rem;
  width: 100%;
}
.route-cta__num {
  font-family: var(--font-head);
  font-size: clamp(2.6rem, 4.5vw, 3.4rem);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -.02em;
}
.route-cta__num small {
  font-size: .45em;
  font-weight: 700;
  margin-left: .12em;
  color: var(--deep-coral);
}
.route-card--cta p { font-size: .95rem; opacity: .82; line-height: 1.5; max-width: 240px; }
.route-cta__link {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  margin-top: .4rem;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: .98rem;
  color: #fff;
}
.route-cta__link svg { transition: transform .25s ease; }
.route-card--cta:hover .route-cta__link svg { transform: translateX(5px); }
.route-card figcaption {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 2.6rem 1.4rem 1.2rem;
  background: linear-gradient(to top, rgba(16, 16, 20, .82), rgba(16, 16, 20, .35) 65%, transparent);
  color: #fff;
  display: flex;
  flex-direction: column;
  gap: .15rem;
}
.route-card figcaption strong { font-family: var(--font-head); font-size: 1.08rem; }
.route-card figcaption span {
  font-size: .85rem;
  opacity: 0;
  line-height: 1.45;
  max-height: 0;
  transform: translateY(6px);
  transition: opacity .3s ease .05s, max-height .35s ease, transform .3s ease .05s;
}
.route-card:hover figcaption span,
.route-card:focus-within figcaption span { opacity: .88; max-height: 80px; transform: none; }
@media (hover: none) {
  .route-card figcaption span { opacity: .88; max-height: none; transform: none; }
}

.route-steps {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem 1.2rem;
  padding: 1.4rem 1.8rem;
  border-radius: var(--radius);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-sm);
}
.route-step { display: flex; align-items: center; gap: .8rem; }
.route-step__n {
  flex: none;
  width: 34px; height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  font-family: var(--font-head);
  font-weight: 800;
  font-size: .92rem;
  background: var(--ink);
  color: var(--ink-text);
}
.route-step b { display: block; font-size: .92rem; line-height: 1.3; }
.route-step span { font-size: .8rem; color: var(--color-muted); }
.route-step__arrow { color: var(--color-muted); opacity: .6; font-size: 1.1rem; }

/* ── Категории запчастей ──────────────────────────────────── */
.cats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.3rem;
}
.cat {
  position: relative;
  overflow: hidden;
  display: flex;
  gap: 1.1rem;
  padding: 1.5rem;
  border-radius: var(--radius);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
}
.cat::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  opacity: 0;
  transition: opacity .25s ease;
  background: linear-gradient(90deg, var(--gold), transparent);
}
.cat:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: transparent; }
.cat:hover::before { opacity: 1; }
.cat:hover .cat__ico { transform: scale(1.05); }
.cat--wide { grid-column: span 3; }

/* Номер категории */
.cats { counter-reset: cat; }
.cat { counter-increment: cat; }
.cat::after {
  content: counter(cat, decimal-leading-zero);
  position: absolute;
  top: .85rem; right: 1.05rem;
  font-family: var(--font-head);
  font-weight: 800;
  font-size: .88rem;
  letter-spacing: .05em;
  color: var(--color-muted);
  opacity: .4;
  transition: color .25s ease, opacity .25s ease;
}
.cat:hover::after { opacity: .9; color: var(--gold); }

.cat__ico {
  flex: none;
  width: 60px; height: 60px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
  transition: transform .25s ease;
}
.cat__ico svg { width: 36px; height: 36px; }
.cat .cat__ico {
  background: color-mix(in srgb, var(--gold) 20%, var(--color-surface));
  color: var(--gold);
}

.cat__body { position: relative; z-index: 1; }
.cat__body h3 { font-size: 1.05rem; margin-bottom: .35rem; }
.cat__body > p { font-size: .88rem; color: var(--color-muted); margin-bottom: .8rem; }
.cat__tags { display: flex; flex-wrap: wrap; gap: .4rem; }
.cat__tags span {
  font-size: .72rem;
  font-weight: 600;
  padding: .25em .8em;
  border-radius: 999px;
  background: var(--color-accent);
  color: #E3C96B;
}
[data-theme="dark"] .cat__tags span {
  background: #111114;
  color: #E3C96B;
}

/* Палитра по категориям: иконка, первый тег, линия */
.cat--sky .cat__ico { background: var(--pastel-sky); color: var(--deep-sky); }
.cat--sage .cat__ico { background: var(--pastel-sage); color: var(--deep-sage); }
.cat--lav .cat__ico { background: var(--pastel-lav); color: var(--deep-lav); }
.cat--sand .cat__ico { background: var(--pastel-sand); color: var(--deep-sand); }
.cat--sky::before { background: linear-gradient(90deg, var(--deep-sky), transparent); }
.cat--sage::before { background: linear-gradient(90deg, var(--deep-sage), transparent); }
.cat--lav::before { background: linear-gradient(90deg, var(--deep-lav), transparent); }
.cat--sand::before { background: linear-gradient(90deg, var(--deep-sand), transparent); }
.cat--sky:hover::after { color: var(--deep-sky); }
.cat--sage:hover::after { color: var(--deep-sage); }
.cat--lav:hover::after { color: var(--deep-lav); }
.cat--sand:hover::after { color: var(--deep-sand); }

/* ── Фото-карточки запчастей (cat--photo + cat__media) ────── */
/* Иконки в карточках категорий убраны */
.cats .cat__ico { display: none; }
.cat--photo {
  flex-direction: column;
  gap: 0;
  padding: 0;
}
.cat__media {
  position: relative;
  width: 100%;
  height: 178px;
  overflow: hidden;
  /* светлая «студийная» подложка — продуктовые фото на ней выглядят каталожно в обеих темах */
  background: #ECE9E1;
}
.cat__media img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform .5s ease;
}
.cat--photo:hover .cat__media img { transform: scale(1.05); }
.cat--photo .cat__body { padding: 1.4rem 1.5rem 1.5rem; }
/* доп. фото в карточке — только слайды лайтбокса, не показываем */
.cat__media img:not(:first-child) { display: none; }
/* бейдж «N фото» */
.cat__media-count {
  position: absolute;
  right: .75rem; bottom: .7rem;
  z-index: 2;
  font-size: .72rem;
  font-weight: 600;
  color: #fff;
  background: rgba(20, 20, 26, .55);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  padding: .25em .7em;
  border-radius: 999px;
  pointer-events: none;
}
/* номер категории — поверх фото: пилюля, читается на любом снимке */
.cat--photo::after {
  color: #fff;
  opacity: 1;
  background: rgba(20, 20, 26, .55);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  padding: .2em .65em;
  border-radius: 999px;
  font-size: .78rem;
}
.cat--photo:hover::after { color: #fff; }
[data-theme="dark"] .cat__media { background: #E5E2DA; }

/* ── Техника ──────────────────────────────────────────────── */
.equip-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.3rem;
  counter-reset: equip;
}
.equip-card {
  border-radius: var(--radius);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  overflow: hidden;
  transition: transform .22s ease, box-shadow .22s ease;
  counter-increment: equip;
}
.equip-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.equip-card:hover .equip-card__top svg { transform: translateY(-3px); }
.equip-card:hover .equip-card__photo { transform: scale(1.015); }
.equip-card__top {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2.1rem 0 1.5rem;
  background-color: var(--ink);
  color: var(--ink-text);
  /* тонкая чертёжная сетка */
  background-image:
    linear-gradient(rgba(237, 234, 226, .055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(237, 234, 226, .055) 1px, transparent 1px);
  background-size: 22px 22px;
}
.equip-card__top svg { width: 138px; height: 92px; transition: transform .3s ease; }
.equip-card__top--photo {
  min-height: clamp(200px, 15vw, 230px);
  padding: 0;
  overflow: hidden;
  background-color: var(--ink);
  background-image:
    linear-gradient(rgba(237, 234, 226, .055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(237, 234, 226, .055) 1px, transparent 1px);
  background-size: 22px 22px;
}
.equip-card__top--photo svg { display: none; }
.equip-card__photo {
  width: 100%;
  height: clamp(200px, 15vw, 230px);
  display: block;
  object-fit: contain;
  object-position: center;
  filter: saturate(.98) contrast(1.03) brightness(.95);
  transition: transform .45s ease;
}
.equip-card__photo--excavator {
  object-fit: contain;
  object-position: center 38%;
  transform: scale(1.12);
}
.equip-card:hover .equip-card__photo--excavator { transform: scale(1.15); }
.equip-card__top::before {
  content: '0' counter(equip);
  position: absolute;
  top: .7rem; right: 1.1rem;
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 1rem;
  line-height: 1;
  letter-spacing: .06em;
  color: #E3C96B;
  z-index: 2;
}
.equip-card__top::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--gold) 0%, transparent 55%);
  opacity: .85;
  z-index: 2;
}
.equip-card__body { padding: 1.3rem 1.5rem 1.5rem; }
.equip-card__title { font-family: var(--font-head); font-weight: 800; font-size: 1.05rem; margin-bottom: .4rem; }
.equip-card__desc { font-size: .88rem; color: var(--color-muted); margin-bottom: .8rem; }
.equip-card__brands {
  display: flex;
  flex-wrap: wrap;
  gap: .38rem;
  margin-top: .9rem;
  font-size: .76rem;
}
.equip-card__brands span,
.equip-card__brands strong {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: .24em .72em;
  background: var(--color-accent);
  color: #E3C96B;
  font-weight: 700;
  line-height: 1.25;
}
[data-theme="dark"] .equip-card__brands span,
[data-theme="dark"] .equip-card__brands strong {
  background: #111114;
  color: #E3C96B;
}

/* ── Бренды (карточки категорий) ──────────────────────────── */
.brands-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.3rem; }
.brand-cat--wide { grid-column: 1 / -1; }
.brand-cat {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 1.7rem 1.8rem;
  transition: box-shadow .22s ease, border-color .22s ease, transform .22s ease;
}
.brand-cat:hover { box-shadow: var(--shadow-md); border-color: color-mix(in srgb, var(--gold) 45%, var(--color-border)); transform: translateY(-2px); }
.brand-cat__head { display: flex; align-items: center; gap: .85rem; margin-bottom: 1.25rem; }
.brand-cat__icon {
  flex-shrink: 0; width: 44px; height: 44px; border-radius: 13px;
  display: grid; place-items: center; color: var(--gold);
  background: color-mix(in srgb, var(--gold) 15%, transparent);
}
.brand-cat__icon svg { width: 22px; height: 22px; }
.brand-cat h3 { font-family: var(--font-head); font-weight: 700; font-size: 1.12rem; line-height: 1.2; }
.brand-cat__count {
  margin-left: auto; flex-shrink: 0;
  font-family: var(--font-head); font-weight: 800; font-size: .85rem; color: var(--gold);
  background: color-mix(in srgb, var(--gold) 15%, transparent);
  padding: .28em .8em; border-radius: 999px;
}
.chips { display: flex; flex-wrap: wrap; gap: .5rem; }
.chip {
  font-size: .85rem; font-weight: 500;
  padding: .46em 1.05em; border-radius: 999px;
  background: var(--color-bg); border: 1px solid var(--color-border); color: var(--color-muted);
  transition: border-color .15s ease, color .15s ease, transform .15s ease;
}
.chip:hover { border-color: var(--gold); color: var(--color-text); transform: translateY(-2px); }
.chip--key {
  background: linear-gradient(135deg, var(--gold-soft), var(--gold));
  border-color: transparent; color: #1c1400; font-weight: 700;
}
.chip--key:hover { transform: translateY(-2px); box-shadow: 0 5px 16px var(--gold-dim); color: #1c1400; }
/* Плитки брендов: логотип или текстовая подпись */
.brand-tiles { display: flex; flex-wrap: wrap; gap: .6rem; }
.brand-tile {
  height: 54px; min-width: 112px;
  display: inline-flex; align-items: center; justify-content: center;
  padding: 0 1.1rem;
  background: #fff; border: 1px solid var(--color-border); border-radius: 12px;
  transition: box-shadow .18s ease, border-color .18s ease, transform .18s ease;
}
.brand-tile:hover { box-shadow: var(--shadow-sm); border-color: color-mix(in srgb, var(--gold) 45%, var(--color-border)); transform: translateY(-2px); }
.brand-tile img { max-height: 26px; max-width: 116px; width: auto; object-fit: contain; }
.brand-tile img.inv { filter: brightness(0) opacity(.82); }
.brand-tile--txt { font-family: var(--font-head); font-weight: 700; font-size: .92rem; color: var(--color-text); white-space: nowrap; }
.brands-cta {
  display: flex; align-items: center; gap: 1.1rem; flex-wrap: wrap;
  margin-top: 1.6rem; padding: 1.3rem 1.6rem;
  background: var(--color-surface); border: 1px solid var(--color-border); border-radius: var(--radius);
}
.brands-cta__icon {
  flex-shrink: 0; width: 42px; height: 42px; border-radius: 12px;
  display: grid; place-items: center; color: var(--gold);
  background: color-mix(in srgb, var(--gold) 15%, transparent);
}
.brands-cta__icon svg { width: 20px; height: 20px; }
.brands-cta p { flex: 1; min-width: 240px; color: var(--color-muted); font-size: .95rem; }
.brands-cta .btn { flex-shrink: 0; }
@media (max-width: 760px) {
  .brands-grid { grid-template-columns: 1fr; }
  .brands-cta { flex-direction: column; align-items: flex-start; }
}

/* ── Why / Steps ──────────────────────────────────────────── */
.why__wrap {
  display: grid;
  grid-template-columns: 1.25fr .9fr;
  gap: 3rem;
  align-items: start;
}
.why__list { list-style: none; display: flex; flex-direction: column; gap: 1.1rem; margin-top: 1.6rem; }
.why__item { display: flex; gap: .9rem; }
.why__check {
  flex: none;
  width: 26px; height: 26px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  font-size: .8rem;
  font-weight: 700;
  background: var(--ink);
  color: var(--ink-text);
  margin-top: .15rem;
}
.why__item strong { font-size: .98rem; }
.why__item p { font-size: .85rem; color: var(--color-muted); }

.steps-card {
  position: sticky;
  top: 100px;
  padding: 1.8rem;
  border-radius: var(--radius);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-top: 3px solid var(--deep-coral);
  box-shadow: var(--shadow-md);
}
.steps-card__title { font-family: var(--font-head); font-weight: 800; font-size: 1.2rem; margin-bottom: 1.3rem; }
.steps { list-style: none; display: flex; flex-direction: column; gap: 1.1rem; }
.step { display: flex; gap: .9rem; }
.step__n {
  flex: none;
  width: 32px; height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  font-family: var(--font-head);
  font-weight: 800;
  font-size: .9rem;
  background: var(--ink);
  color: var(--ink-text);
}
.step strong { font-size: .95rem; }
.step p { font-size: .82rem; color: var(--color-muted); }

/* ── FAQ ──────────────────────────────────────────────────── */
.faq-list { max-width: 760px; display: flex; flex-direction: column; gap: .8rem; }
.faq-item {
  border-radius: var(--radius-sm);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  overflow: hidden;
  transition: border-color .2s ease;
}
.faq-item.open { border-color: var(--deep-coral); }
.faq-q {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  text-align: left;
  font-weight: 600;
  font-size: .98rem;
  padding: 1.1rem 1.4rem;
}
.faq-q svg { flex: none; transition: transform .25s ease; color: var(--color-muted); }
.faq-item.open .faq-q svg { transform: rotate(180deg); color: var(--deep-coral); }
.faq-a {
  max-height: 0;
  overflow: hidden;
  padding: 0 1.4rem;
  font-size: .9rem;
  color: var(--color-muted);
  transition: max-height .3s ease, padding .3s ease;
}
.faq-item.open .faq-a { max-height: 240px; padding: 0 1.4rem 1.2rem; }

/* ── Order ────────────────────────────────────────────────── */
.section--dark {
  background:
    radial-gradient(900px 420px at 85% 0%, rgba(201, 162, 39, .13), transparent 60%),
    #17171C;
  color: #EDEAE2;
}
.order__wrap {
  display: grid;
  grid-template-columns: .85fr 1.1fr;
  gap: 3rem;
  align-items: start;
}
.order__title { color: #fff; margin-bottom: .9rem; }
.order__desc { color: rgba(237, 234, 226, .75); margin-bottom: 2rem; }

.contacts { display: flex; flex-direction: column; gap: .7rem; }
.contact-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: .9rem 1.2rem;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, .05);
  border: 1px solid rgba(255, 255, 255, .1);
  transition: background .18s ease, transform .18s ease;
}
.contact-item:hover { background: rgba(255, 255, 255, .1); border-color: rgba(201, 162, 39, .28); transform: translateX(4px); }
.contact-item svg,
.contact-item .max-ico {
  color: var(--gold-soft);
}
.contact-item__label { display: block; font-size: .74rem; color: rgba(237, 234, 226, .6); }
.contact-item__val { font-weight: 600; font-size: .95rem; }

.order__form {
  position: relative;
  overflow: hidden;
  padding: 2rem;
  border-radius: var(--radius);
  background: var(--color-surface);
  color: var(--color-text);
  box-shadow: var(--shadow-md);
}
.order__form::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--gold), var(--gold-soft), var(--gold));
}
.form-head {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding-bottom: 1.3rem;
  margin-bottom: 1.3rem;
  border-bottom: 1px solid var(--color-border);
}
.form-head img { width: 96px; height: auto; }
[data-theme="dark"] .form-head img { content: url("assets/img/logo_white.png"); }
.form-head strong { display: block; font-family: var(--font-head); font-size: 1.02rem; }
.form-head span { font-size: .8rem; color: var(--color-muted); }

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.form-group { margin-bottom: 1rem; }
.form-label { display: block; font-size: .82rem; font-weight: 600; margin-bottom: .35rem; }
.form-label span { color: var(--gold); }
.form-input {
  width: 100%;
  font: inherit;
  font-size: .92rem;
  color: var(--color-text);
  background: var(--color-bg);
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius-sm);
  padding: .7em 1em;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.form-input:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 3px var(--gold-dim);
}
.form-input::placeholder { color: var(--color-muted); opacity: .65; }
.form-textarea { min-height: 92px; resize: vertical; }
.form-note { font-size: .78rem; color: var(--color-muted); margin-top: .9rem; text-align: center; }
.form-success {
  display: flex;
  align-items: center;
  gap: .7rem;
  margin-top: 1rem;
  padding: .9rem 1.2rem;
  border-radius: var(--radius-sm);
  background: var(--pastel-sage);
  color: var(--deep-sage);
  font-size: .9rem;
  font-weight: 500;
}

/* ── Footer ───────────────────────────────────────────────── */
.footer { background: var(--color-alt); color: var(--color-text); position: relative; }
/* Мост-сцена в секции заявки */
#order { overflow: hidden; padding-bottom: clamp(13rem, 20vw, 19rem); }
.order-bridge {
  position: absolute;
  left: 0; right: 0; bottom: -2px;
  width: 100%;
  height: clamp(360px, 31vw, 580px);
  color: #43434E;
  pointer-events: none;
}
.fb-beacon { fill: var(--gold-soft); animation: beacon 2.6s ease-in-out infinite; }
@keyframes beacon { 0%, 100% { opacity: .3; } 50% { opacity: 1; } }
.fb-lamp { fill: var(--gold-soft); animation: beacon 3.2s ease-in-out infinite; }
.fb-star { fill: #EDEAE2; opacity: .22; animation: beacon 4s ease-in-out infinite; }
.fb-dash { stroke: var(--gold); opacity: .26; }
.fb-beam { fill: var(--gold-soft); opacity: .26; }
/* Сцена ночная (звёзды/река/облака убраны); луна — ночью, солнце — в светлой теме */
.fb-river, .fb-cloud, .fb-sky { display: none; }
.fb-sun { display: none; }
.fb-moon { display: block; }
[data-theme="light"] .fb-sun { display: block; }
[data-theme="light"] .fb-moon { display: none; }
.fb-deck { fill: #1c1c22; }
.fb-logo-day { display: none; }
.fb-logo-night { display: block; }
/* Секция «Оставьте заявку» всегда тёмная — как в чёрной теме (фон, заголовок, контакты) */
[data-theme="light"] #order {
  --color-surface: #1c1c21;
  --color-bg: #16161a;
  --color-text: #edeae2;
  --color-muted: #9c9ca5;
  --color-border: #2c2c33;
}
/* но саму карточку формы — белой (как светлая тема) */
[data-theme="light"] #order .order__form {
  --color-surface: #ffffff;
  --color-bg: #fbfaf7;
  --color-text: #1a1a1e;
  --color-muted: #6e6e76;
  --color-border: #e7e3d9;
}
/* карточки контактов — тоже белые */
[data-theme="light"] #order .contact-item { background: #ffffff; border-color: #e7e3d9; }
[data-theme="light"] #order .contact-item:hover { background: #f6f3ec; border-color: rgba(201,162,39,.4); }
[data-theme="light"] #order .contact-item__label { color: #6e6e76; }
[data-theme="light"] #order .contact-item__val { color: #1a1a1e; }
[data-theme="light"] #order .contact-item svg,
[data-theme="light"] #order .contact-item .max-ico { color: var(--gold); }
.fb-truck { animation: truckRun 18s linear infinite; }
@keyframes truckRun {
  from { transform: translateX(1530px); }
  to   { transform: translateX(-150px); }
}
.fb-car { animation: carRun 27s linear infinite; }
@keyframes carRun {
  from { transform: translateX(-120px); }
  to   { transform: translateX(1560px); }
}
.footer__inner {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 3rem;
  padding: 3.5rem 24px 2.5rem;
}
.footer__logo { display: inline-block; margin-bottom: 1rem; }
.footer__logo .logo__img { width: 130px; }
.footer__brand p { font-size: .88rem; color: var(--color-muted); line-height: 1.7; }
.footer__cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; }
.footer__col { display: flex; flex-direction: column; gap: .55rem; }
.footer__col-h {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: .95rem;
  margin-bottom: .4rem;
  color: var(--color-text);
}
.footer__col a { font-size: .86rem; color: var(--color-muted); transition: color .15s ease; }
.footer__col a:hover { color: var(--gold-soft); }
.footer__bottom { border-top: 1px solid var(--color-border); padding: 1.2rem 0; }
.footer__bottom .container {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: .5rem;
  font-size: .8rem;
  color: var(--color-muted);
}

/* ── Кнопка «наверх» ──────────────────────────────────────── */
.to-top {
  position: fixed;
  right: 22px; bottom: 22px;
  z-index: 90;
  width: 46px; height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--color-accent);
  color: var(--gold-soft);
  box-shadow: var(--shadow-md);
  opacity: 0;
  transform: translateY(14px);
  pointer-events: none;
  transition: opacity .25s ease, transform .25s ease;
}
.to-top.to-top--on-dark {
  background: #F4F1EA;
  color: #1A1A1E;
}
.to-top.to-top--on-light {
  background: var(--color-accent);
  color: var(--gold-soft);
}
[data-theme="dark"] .to-top:not(.to-top--on-light) {
  background: #F4F1EA;
  color: #1A1A1E;
}
.to-top.show { opacity: 1; transform: none; pointer-events: auto; }
.to-top:hover { transform: translateY(-3px); }

/* ── Lightbox: focus trap & a11y ──────────────────────────── */
.lightbox:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: -3px;
}
.lightbox__close:focus-visible,
.lightbox__nav:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 3px;
  border-radius: 4px;
}

/* ── Reveal (со стаггером через --d) ─────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity .6s ease, transform .6s ease;
  transition-delay: var(--d, 0s);
}
.reveal.visible { opacity: 1; transform: none; }
/* ══════════════════════════════════════════════════════════
   ПРЕМИУМ-СЛОЙ: тёмный герой, коллаж техники, интерактив
   ══════════════════════════════════════════════════════════ */

/* ── Прогресс чтения ──────────────────────────────────────── */
.progress {
  position: fixed;
  top: 0; left: 0;
  height: 3px;
  width: 0;
  z-index: 1100;
  background: linear-gradient(90deg, var(--gold), var(--gold-soft));
  box-shadow: 0 0 12px var(--gold-dim);
  pointer-events: none;
}

/* ── Header: стекло при скролле ───────────────────────────── */
.header.scrolled {
  background: color-mix(in srgb, var(--color-bg) 72%, transparent);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
}

/* ── HERO --ink: всегда тёмный, дорогой ───────────────────── */
.hero--ink {
  --hero-veil-top: rgba(16, 16, 21, .42);
  --hero-veil-bot: rgba(14, 14, 18, .88);
  --hero-img-filter: saturate(.72) brightness(.58) contrast(1.05);
  color: #F4F1EA;
}
.hero--ink .hero__veil {
  background:
    linear-gradient(100deg, var(--hero-veil-bot) 0%, var(--hero-veil-bot) 30%, var(--hero-veil-top) 62%, rgba(14,14,18,.3) 100%),
    linear-gradient(to top, var(--hero-veil-bot) 0%, transparent 30%);
}
.hero--ink .hero__title { color: #F7F4EC; }
.hero--ink .hero__title em {
  color: var(--gold-soft);
  background: linear-gradient(115deg, var(--gold-soft), #F1E3A8 55%, var(--gold));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.hero--ink .hero__desc { color: rgba(237, 234, 226, .76); }
.hero--ink .hero__badge {
  background: rgba(255, 255, 255, .07);
  border-color: rgba(255, 255, 255, .16);
  color: #EDEAE2;
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}
.hero--ink .badge__dot { background: var(--gold-soft); }
@keyframes pulseGold {
  0%, 100% { box-shadow: 0 0 0 3px rgba(201, 162, 39, .3); }
  50%      { box-shadow: 0 0 0 7px rgba(201, 162, 39, .1); }
}
.hero--ink .badge__dot { animation-name: pulseGold; }
.hero--ink .hero__stats {
  background: rgba(255, 255, 255, .06);
  border-color: rgba(255, 255, 255, .13);
}
.hero--ink .stat b { color: #F7F4EC; }
.hero--ink .stat b em { font-style: normal; color: var(--gold-soft); }
.hero--ink .stat span { color: rgba(237, 234, 226, .6); }
.hero--ink .stat__sep { background: rgba(255, 255, 255, .14); }
.hero--ink .btn--primary,
.section--ink .btn--primary {
  background: linear-gradient(180deg, #FBF8F0, #EDE7D8);
  color: #16161A;
  box-shadow: 0 8px 28px rgba(0, 0, 0, .35), inset 0 1px 0 #fff;
}
.hero--ink .btn--primary:hover,
.section--ink .btn--primary:hover {
  background: linear-gradient(180deg, #fff, #F3EDDC);
  box-shadow: 0 12px 34px rgba(0, 0, 0, .45), 0 0 0 1px var(--gold-dim), inset 0 1px 0 #fff;
}

/* Появление контента героя */
@keyframes heroUp { from { opacity: 0; transform: translateY(26px); } to { opacity: 1; transform: none; } }
.hero__content > * { animation: heroUp .8s cubic-bezier(.22,.8,.32,1) backwards; }
.hero__content > :nth-child(1) { animation-delay: .05s; }
.hero__content > :nth-child(2) { animation-delay: .15s; }
.hero__content > :nth-child(3) { animation-delay: .27s; }
.hero__content > :nth-child(4) { animation-delay: .39s; }
.hero__content > :nth-child(5) { animation-delay: .52s; }

/* ── Коллаж техники в герое ───────────────────────────────── */
.hero__inner {
  display: grid;
  grid-template-columns: minmax(0, 600px) 1fr;
  align-items: center;
  gap: 2rem;
}
.hero__art {
  position: relative;
  height: 480px;
  animation: heroUp 1s cubic-bezier(.22,.8,.32,1) .45s backwards;
}
.hero-photo {
  position: absolute;
  margin: 0;
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, .18);
  box-shadow: 0 32px 70px rgba(0, 0, 0, .55), inset 0 1px 0 rgba(255, 255, 255, .12);
}
.hero-photo img {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
  opacity: 0;
  transform: scale(1.06);
  transition: opacity 1.1s ease, transform 1.5s ease;
}
.hero-photo img.is-on { opacity: 1; transform: scale(1); }
.hero-photo::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(12, 12, 16, .55), transparent 38%);
  pointer-events: none;
}
.hero-photo figcaption {
  position: absolute;
  left: 13px; bottom: 11px;
  z-index: 1;
  font-family: var(--font-head);
  font-size: .76rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--gold-soft);
}
.hero-photo figcaption::before {
  content: '';
  display: inline-block;
  width: 16px; height: 2px;
  margin-right: .5em;
  vertical-align: middle;
  background: var(--gold);
}
.hero-photo--main {
  top: 26px; right: 0;
  width: min(450px, 100%);
  aspect-ratio: 3 / 2;
  transform: rotate(.6deg);
  animation: floatA 8s ease-in-out infinite;
}
.hero-photo--main figcaption { left: auto; right: 13px; }
.hero-photo figcaption.cap-in { animation: capIn .6s ease; }
@keyframes capIn { from { opacity: 0; transform: translateY(7px); } }
.hero-chip.pop { animation: chipPop .45s cubic-bezier(.22, .8, .32, 1); }
@keyframes chipPop { from { opacity: .15; transform: translateY(9px) scale(.94); } }
.hero-photo--tall {
  bottom: 0; right: 312px;
  width: 212px;
  aspect-ratio: 5 / 7;
  transform: rotate(-1.6deg);
  animation: floatB 9s ease-in-out infinite;
  z-index: 2;
}
@keyframes floatA { 0%,100% { transform: translateY(0) rotate(.4deg); } 50% { transform: translateY(-12px) rotate(-.3deg); } }
@keyframes floatB { 0%,100% { transform: translateY(0) rotate(-.5deg); } 50% { transform: translateY(10px) rotate(.4deg); } }
.hero-chip {
  position: absolute;
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .55em 1em;
  border-radius: 999px;
  font-family: var(--font-head);
  font-size: .82rem;
  font-weight: 700;
  color: #1A1A1E;
  background: linear-gradient(180deg, #FBF8F0, #EFE8D6);
  box-shadow: 0 12px 30px rgba(0, 0, 0, .45), inset 0 1px 0 #fff;
  white-space: nowrap;
}
.hero-chip::before {
  content: '';
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--gold);
}
.hero-chip--1 { top: 2px; right: 190px; animation: floatB 6.5s ease-in-out infinite; }
.hero-chip--2 { top: 218px; right: -10px; animation: floatA 7.5s ease-in-out .6s infinite; }
.hero-chip--3 { bottom: 38px; right: 86px; animation: floatB 8s ease-in-out 1.1s infinite; }

/* ── Тёмная секция-интерактив ─────────────────────────────── */
.section--ink {
  background:
    radial-gradient(900px 480px at 85% -10%, rgba(201, 162, 39, .07), transparent 60%),
    radial-gradient(700px 420px at -10% 110%, rgba(84, 128, 158, .12), transparent 60%),
    var(--ink);
  color: var(--ink-text);
}
.section--ink .section__head h2 { color: #F4F1EA; }
.section--ink .section__head h2::after { background: var(--gold); }
.section--ink .section__head p { color: rgba(237, 234, 226, .64); }
.label--gold {
  background: rgba(201, 162, 39, .14);
  color: var(--gold-soft);
}

.showcase {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(300px, 1fr);
  gap: 2.4rem;
  align-items: center;
}
.showcase__stage {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  background:
    linear-gradient(rgba(255,255,255,.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.04) 1px, transparent 1px),
    linear-gradient(160deg, rgba(255, 255, 255, .05), rgba(255, 255, 255, .015));
  background-size: 30px 30px, 30px 30px, auto;
  border: 1px solid rgba(255, 255, 255, .1);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .08), 0 24px 60px rgba(0, 0, 0, .35);
  padding: 1.6rem;
}
.showcase__fig { position: relative; }
.showcase__fig > svg { width: 100%; height: auto; display: block; }
.exc-leads {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  pointer-events: none;
}
.lead {
  stroke: #C8C2B2;
  stroke-width: 1.1;
  opacity: .32;
  transition: opacity .3s ease, stroke .3s ease;
}
.lead-dot {
  fill: #C8C2B2;
  opacity: .4;
  transition: opacity .3s ease, fill .3s ease;
}
.lead.active { stroke: var(--gold-soft); opacity: 1; stroke-width: 1.5; }
.lead-dot.active { fill: var(--gold-soft); opacity: 1; }
/* Подпись-выноска */
.callout {
  position: absolute;
  transform: translate(-50%, -100%);
  white-space: nowrap;
  padding: .32em .75em;
  border-radius: 8px;
  font-family: var(--font-head);
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .09em;
  text-transform: uppercase;
  color: rgba(237, 234, 226, .75);
  background: rgba(20, 20, 26, .82);
  border: 1px solid rgba(255, 255, 255, .16);
  transition: all .25s ease;
}
.callout--l { transform: translate(-100%, -50%); }
.callout--r { transform: translate(0, -50%); }
.callout:hover {
  color: var(--gold-soft);
  border-color: rgba(201, 162, 39, .5);
}
.callout.active {
  color: #16161A;
  background: linear-gradient(180deg, var(--gold-soft), var(--gold));
  border-color: var(--gold);
  box-shadow: 0 6px 18px rgba(0, 0, 0, .4), 0 0 0 4px rgba(201, 162, 39, .16);
}
.showcase__panels { position: relative; min-height: 280px; }
.showcase__panel {
  position: absolute;
  inset: 0;
  opacity: 0;
  visibility: hidden;
  transform: translateY(14px);
  transition: opacity .35s ease, transform .35s ease, visibility .35s;
  display: flex;
  flex-direction: column;
  gap: .9rem;
}
.showcase__panel.active { opacity: 1; visibility: visible; transform: none; }
.showcase__panel-n {
  font-family: var(--font-head);
  font-size: .82rem;
  font-weight: 800;
  letter-spacing: .16em;
  color: var(--gold-soft);
}
.showcase__panel h3 { font-size: 1.5rem; color: #F4F1EA; }
.showcase__panel p { color: rgba(237, 234, 226, .68); line-height: 1.6; }
.showcase__tags { display: flex; flex-wrap: wrap; gap: .5rem; }
.showcase__tags span {
  font-size: .8rem;
  font-weight: 600;
  padding: .35em .9em;
  border-radius: 999px;
  color: #EDEAE2;
  background: rgba(255, 255, 255, .07);
  border: 1px solid rgba(255, 255, 255, .14);
}
.showcase__panel .btn { align-self: flex-start; margin-top: .4rem; }
.showcase__dots { display: flex; gap: .45rem; margin-top: 1.4rem; }
.showcase__dots i {
  width: 26px; height: 4px;
  border-radius: 4px;
  background: rgba(255, 255, 255, .14);
  overflow: hidden;
  position: relative;
}
.showcase__dots i.on::after {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--gold);
  animation: dotFill var(--dotd, 5s) linear forwards;
  transform-origin: left;
}
@keyframes dotFill { from { transform: scaleX(0); } to { transform: scaleX(1); } }
.showcase__dots.static i.on::after { animation: none; transform: none; }

/* Сканирующий луч по схеме */
.showcase__stage::after {
  content: '';
  position: absolute;
  left: 0; right: 0;
  top: -70px;
  height: 70px;
  background: linear-gradient(to bottom, transparent, rgba(201, 162, 39, .08) 45%, rgba(227, 201, 107, .16) 50%, rgba(201, 162, 39, .08) 55%, transparent);
  animation: scan 7s ease-in-out infinite;
  pointer-events: none;
}
@keyframes scan {
  0%, 100% { top: -70px; opacity: 0; }
  12%, 88% { opacity: 1; }
  50% { top: 100%; }
}

/* Подпись активного узла на схеме */
.showcase__label {
  position: absolute;
  left: 1.4rem; top: 1.2rem;
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  padding: .45em 1em;
  border-radius: 999px;
  font-family: var(--font-head);
  font-size: .82rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--gold-soft);
  background: rgba(20, 20, 26, .78);
  border: 1px solid rgba(201, 162, 39, .35);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  transition: opacity .3s ease;
}
.showcase__label i {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--gold-soft);
  animation: pulseGold 2.2s ease-in-out infinite;
}

/* Рисующаяся схема: штрихи прорисовываются при появлении */
.schem .draw-gold:not([stroke-dasharray]), .schem .draw-line:not([stroke-dasharray]) { stroke-dasharray: 1; stroke-dashoffset: 1; }
.schem .draw-fill, .schem .draw-fill-g { fill-opacity: 0; transition: fill-opacity .9s ease .9s; }
/* Пунктирные элементы не «рисуются», а проявляются */
.schem [stroke-dasharray] { stroke-opacity: 0; transition: stroke-opacity .9s ease 1.5s; }
.showcase__fig.drawn .schem [stroke-dasharray] { stroke-opacity: 1; }
.showcase__fig.drawn .schem .draw-gold:not([stroke-dasharray]),
.showcase__fig.drawn .schem .draw-line:not([stroke-dasharray]) {
  animation: drawIn 1.1s cubic-bezier(.45,.05,.35,1) forwards;
  animation-delay: calc(var(--di, 0) * 28ms);
}
.showcase__stage.drawn #excSvg .draw-fill,
.showcase__stage.drawn #excSvg .draw-fill-g { fill-opacity: 1; }
@keyframes drawIn { to { stroke-dashoffset: 0; } }

/* Теги панели — каскадом */
.showcase__panel.active .showcase__tags span {
  animation: tagIn .45s cubic-bezier(.22,.8,.32,1) backwards;
}
.showcase__panel.active .showcase__tags span:nth-child(1) { animation-delay: .12s; }
.showcase__panel.active .showcase__tags span:nth-child(2) { animation-delay: .2s; }
.showcase__panel.active .showcase__tags span:nth-child(3) { animation-delay: .28s; }
.showcase__panel.active .showcase__tags span:nth-child(4) { animation-delay: .36s; }
.showcase__panel.active .showcase__tags span:nth-child(5) { animation-delay: .44s; }
@keyframes tagIn { from { opacity: 0; transform: translateY(8px); } }

/* Активный пункт навигации */
.nav__link { position: relative; }
.nav__link::after {
  content: '';
  position: absolute;
  left: 0; right: 100%;
  bottom: -4px;
  height: 2px;
  border-radius: 2px;
  background: var(--deep-coral);
  transition: right .25s ease;
}
.nav__link:hover::after, .nav__link.active::after { right: 0; }
.nav__link.active { color: var(--color-text); }

/* Узкие десктопы: подгоняем коллаж героя */
@media (max-width: 1280px) {
  .hero-photo--main { width: 390px; }
  .hero-photo--tall { right: 238px; width: 188px; }
  .hero-chip--1 { right: 150px; }
}

/* SVG техники: рисунок «чертёж» */
.draw-gold { stroke: var(--gold-soft); }
.draw-line { stroke: #C8C2B2; }
.draw-fill { fill: rgba(255, 255, 255, .055); }
.draw-fill-g { fill: rgba(201, 162, 39, .14); }

/* Подсветка узла на схеме: золото — только у выбранного */
.schem .draw-gold { stroke: #B9B5A6; transition: stroke .35s ease; }
.schem .draw-fill-g { fill: rgba(255, 255, 255, .07); transition: fill .35s ease; }
.schem .exc-part.lit .draw-gold { stroke: var(--gold-soft); }
.schem .exc-part.lit .draw-fill-g { fill: rgba(201, 162, 39, .17); }
.schem .exc-part.lit .draw-line { stroke: #E8E4D6; }
.exc-part { transition: opacity .3s ease, filter .3s ease; }
.exc-dim .exc-part { opacity: .32; }
.schem.exc-dim > g > :not(.exc-part):not(.feed) { opacity: .32; transition: opacity .3s ease; }
.exc-dim .exc-part.lit { opacity: 1; filter: drop-shadow(0 0 10px rgba(201, 162, 39, .55)); }

/* Ковш в движении: подбор-раскрытие вокруг пивота */
#excSvg .exc-part[data-part="0"] { transform-box: fill-box; transform-origin: 41% 15%; }
#excSvg .exc-part[data-part="0"].lit { animation: bucketDig 6s ease-in-out infinite; }
@keyframes bucketDig {
  0%, 100% { transform: rotate(0deg); }
  26%      { transform: rotate(-34deg); }
  56%      { transform: rotate(58deg); }
  72%      { transform: rotate(50deg); }
}

/* Гидроцилиндры: штоки качают, масло течёт по РВД */
.rod { transform-box: fill-box; }
.exc-part[data-part="1"].lit .rod { animation: rodPump 2.4s ease-in-out infinite; }
@keyframes rodPump {
  0%, 100% { transform: scale(1); }
  50%      { transform: scale(.86); }
}
.exc-part[data-part="1"].lit [stroke-dasharray] { animation: oilFlow .7s linear infinite; }
@keyframes oilFlow { to { stroke-dashoffset: -9; } }

/* Двигатель: дым из выхлопной трубы */
.smoke circle {
  opacity: 0;
  transform-box: fill-box;
  transform-origin: center;
}
.exc-part[data-part="3"].lit .smoke circle { animation: puff 3.2s ease-out infinite; }
.exc-part[data-part="3"].lit .smoke circle:nth-child(2) { animation-delay: .4s; }
.exc-part[data-part="3"].lit .smoke circle:nth-child(3) { animation-delay: .8s; }
.exc-part[data-part="3"].lit .smoke circle:nth-child(4) { animation-delay: 1.2s; }
.exc-part[data-part="3"].lit .smoke circle:nth-child(5) { animation-delay: 1.6s; }
.exc-part[data-part="3"].lit .smoke circle:nth-child(6) { animation-delay: 2s; }
.exc-part[data-part="3"].lit .smoke circle:nth-child(7) { animation-delay: 2.4s; }
.exc-part[data-part="3"].lit .smoke circle:nth-child(8) { animation-delay: 2.8s; }
@keyframes puff {
  0%   { opacity: 0; transform: translate(0, 0) scale(.6); }
  8%   { opacity: .6; }
  100% { opacity: 0; transform: translate(16px, -72px) scale(4); }
}

/* Насосы: секции вращаются, магистрали гонят масло */
.pump, .swing-red { transform-box: fill-box; transform-origin: center; }
.exc-part[data-part="2"].lit .pump { animation: wheelSpin 1.6s linear infinite; }
.exc-part[data-part="2"].lit .pump--r { animation-direction: reverse; }
.exc-part[data-part="2"].lit [stroke-dasharray] { animation: oilFlow .7s linear infinite; }

/* ОПУ: венец бежит, редуктор крутится */
.exc-part[data-part="4"].lit .gear-run { animation: gearRun .9s linear infinite; }
@keyframes gearRun { to { stroke-dashoffset: -7.5; } }
.exc-part[data-part="4"].lit .swing-red { animation: wheelSpin 2s linear infinite reverse; }

/* Ходовая в движении: колёса крутятся, цепь бежит */
.wheel { transform-box: fill-box; transform-origin: center; }
.exc-part.lit .wheel { animation: wheelSpin 3s linear infinite; }
@keyframes wheelSpin { to { transform: rotate(360deg); } }
.exc-part.lit .track-b { animation: trackRunB .6s linear infinite; }
.exc-part.lit .track-t { animation: trackRunT .6s linear infinite; }
@keyframes trackRunB { to { stroke-dashoffset: 13; } }
@keyframes trackRunT { to { stroke-dashoffset: -13; } }

/* ── Буровая: анимации узлов ──────────────────────────────── */
/* Инструмент: долото вращается, шлам идёт вверх по штанге */
.bit { transform-box: fill-box; transform-origin: center; }
#drillSvg .exc-part[data-part="0"].lit .bit { animation: wheelSpin 1.1s linear infinite; }
#drillSvg .exc-part[data-part="0"].lit .stem-flow { animation: stemUp .8s linear infinite; }
@keyframes stemUp { to { stroke-dashoffset: 20; } }
/* Вращатель: гидромотор крутится, голова вибрирует */
.rot-motor { transform-box: fill-box; transform-origin: center; }
#drillSvg .exc-part[data-part="1"].lit .rot-motor { animation: wheelSpin 1.3s linear infinite; }
#drillSvg .exc-part[data-part="1"].lit .rot-head { animation: headVibe .22s linear infinite; }
@keyframes headVibe { 0%,100% { transform: translateY(0); } 50% { transform: translateY(1.6px); } }
/* Подача: цепь бежит, став ходит вниз-вверх */
#drillSvg .exc-part[data-part="2"].lit .feed-chain { animation: feedChain 1s linear infinite; }
@keyframes feedChain { to { stroke-dashoffset: -24; } }
#drillSvg .exc-part[data-part="2"].lit ~ .feed { animation: feedRun 6s ease-in-out infinite; }
@keyframes feedRun {
  0%, 100% { transform: translateY(0); }
  48%      { transform: translateY(30px); }
  62%      { transform: translateY(26px); }
}
/* Домкраты: штоки с пятами ходят */
#drillSvg .exc-part[data-part="4"].lit .jack { animation: jackPump 2.6s ease-in-out infinite; }
.jack { transform-box: fill-box; }
@keyframes jackPump {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-9px); }
}

/* ── Переключатель машин над схемой ───────────────────────── */
.mach-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
}
.mach-name {
  display: flex;
  align-items: baseline;
  gap: .7rem;
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 1.02rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: #F4F1EA;
}
.mach-name small {
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .12em;
  color: var(--gold-soft);
}
.mach-arrow {
  flex: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px; height: 42px;
  border-radius: 50%;
  color: var(--gold-soft);
  background: rgba(201, 162, 39, .1);
  border: 1px solid rgba(201, 162, 39, .38);
  transition: all .2s ease;
}
.mach-arrow:hover {
  color: #16161A;
  background: linear-gradient(180deg, var(--gold-soft), var(--gold));
  transform: scale(1.07);
}
.mach-arrow--pulse svg { animation: nudge 1.6s ease-in-out infinite; }
@keyframes nudge { 0%, 100% { transform: translateX(0); } 50% { transform: translateX(4px); } }
.mach-hidden { display: none !important; }

/* ── Фотолента техники ────────────────────────────────────── */
.gallery-sec { padding-bottom: 4.5rem; }
.gallery-sec .section__head { margin-bottom: 2.2rem; }
.photo-strip {
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
          mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
}
.strip-track {
  display: flex;
  width: max-content;
  animation: stripMove 70s linear infinite;
}
.strip-set {
  display: flex;
  gap: 1.1rem;
  padding-right: 1.1rem;
}
.strip-item {
  position: relative;
  margin: 0;
  width: 330px;
  height: 225px;
  flex: none;
  border-radius: 16px;
  overflow: hidden;
  cursor: zoom-in;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--color-border);
}
.strip-item img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .5s ease;
}
.strip-item:hover img { transform: scale(1.06); }
.strip-item::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(12, 12, 16, .5), transparent 36%);
  pointer-events: none;
}
.strip-item figcaption {
  position: absolute;
  left: 11px; bottom: 9px;
  z-index: 1;
  font-family: var(--font-head);
  font-size: .74rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: #F4F1EA;
}
.strip-item figcaption::before {
  content: '';
  display: inline-block;
  width: 14px; height: 2px;
  margin-right: .5em;
  vertical-align: middle;
  background: var(--gold);
}
@keyframes stripMove { to { transform: translateX(-50%); } }

/* ── Выбор канала отправки заявки ─────────────────────────── */
.chan {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
}
.chan__btn {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  padding: .55em 1.05em;
  border-radius: 999px;
  border: 1px solid var(--color-border);
  background: var(--color-surface);
  font-family: var(--font-head);
  font-weight: 700;
  font-size: .88rem;
  color: var(--color-muted);
  transition: all .2s ease;
}
.chan__btn:hover { border-color: var(--color-muted); color: var(--color-text); }
.chan__btn.active {
  background: var(--color-accent);
  border-color: var(--color-accent);
  color: var(--color-accent-contrast);
  box-shadow: var(--shadow-sm);
}
.chan__btn[data-chan="max"] .max-ico { color: var(--color-text); }
.chan__btn[data-chan="max"].active .max-ico { color: var(--color-accent-contrast); }

/* ── Премиум-микродетали ──────────────────────────────────── */
.btn { transition: transform .2s ease, box-shadow .2s ease, background .2s ease; }
.btn:active { transform: translateY(1px) scale(.99); }
.equip-card:hover, .cat:hover { box-shadow: var(--shadow-md); }

/* ── Lightbox ─────────────────────────────────────────────── */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 1200;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .8rem;
  padding: 2.2rem clamp(.8rem, 4vw, 3rem);
  background: rgba(12, 12, 16, .9);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  animation: lbIn .25s ease;
}
@keyframes lbIn { from { opacity: 0; } }
.lightbox[hidden] { display: none; }
.lightbox__stage {
  max-width: min(1100px, 92vw);
  max-height: 84vh;
  display: flex;
  flex-direction: column;
  gap: .8rem;
}
.lightbox__stage img {
  max-width: 100%;
  max-height: 76vh;
  width: auto; height: auto;
  object-fit: contain;
  border-radius: var(--radius-sm);
  box-shadow: 0 24px 80px rgba(0, 0, 0, .5);
}
.lightbox__cap {
  color: #EDEAE2;
  font-size: .95rem;
  text-align: center;
  opacity: .85;
}
.lightbox__close,
.lightbox__nav {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 46px; height: 46px;
  flex: 0 0 46px;
  border-radius: 50%;
  color: #fff;
  background: rgba(255, 255, 255, .1);
  border: 1px solid rgba(255, 255, 255, .18);
  transition: background .2s ease, transform .2s ease;
}
.lightbox__close:hover,
.lightbox__nav:hover { background: rgba(255, 255, 255, .22); transform: scale(1.06); }
.lightbox__close { position: absolute; top: 1.2rem; right: 1.2rem; }
@media (max-width: 620px) {
  .lightbox__nav { position: absolute; bottom: 1.2rem; }
  .lightbox__nav--prev { left: 1.2rem; }
  .lightbox__nav--next { right: 1.2rem; }
}

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .logos-track { animation: none; }
  .strip-track { animation: none; }
  .hero-photo { animation: none; }
  .route-card img { animation: none; }
  .hero__slide.is-active { animation: none; }
  .hero__content > *, .hero__art, .hero-chip { animation: none; }
  .showcase__stage::after { animation: none; opacity: 0; }
  .exc-part.lit .wheel, .exc-part.lit .track-b, .exc-part.lit .track-t { animation: none; }
  #excSvg .exc-part[data-part="0"].lit { animation: none; }
  .exc-part[data-part="1"].lit .rod, .exc-part[data-part="1"].lit [stroke-dasharray],
  .exc-part[data-part="2"].lit .pump, .exc-part[data-part="2"].lit [stroke-dasharray],
  .exc-part[data-part="4"].lit .gear-run, .exc-part[data-part="4"].lit .swing-red,
  .exc-part[data-part="3"].lit .smoke circle,
  #drillSvg .lit .bit, #drillSvg .lit .stem-flow, #drillSvg .lit .feed-chain,
  #drillSvg .lit .rot-motor, #drillSvg .exc-part[data-part="2"].lit ~ .feed,
  #drillSvg .lit .jack { animation: none; }
  .mach-arrow--pulse svg { animation: none; }
  .fb-truck, .fb-beacon, .fb-car, .fb-lamp { animation: none; }
  .fb-truck { transform: translateX(700px); }
  .fb-car { transform: translateX(300px); }
  #excSvg .draw-gold, #excSvg .draw-line { stroke-dasharray: none; stroke-dashoffset: 0; }
  #excSvg .draw-fill, #excSvg .draw-fill-g { fill-opacity: 1; }
  html { scroll-behavior: auto; }
}

/* ── Адаптив ──────────────────────────────────────────────── */
@media (max-width: 1024px) {
  .cats, .equip-grid { grid-template-columns: repeat(2, 1fr); }
  .cat--wide { grid-column: span 2; }
  .route-card, .route-card--big, .route-card--wide { grid-column: span 6; min-height: 280px; }
  .why__wrap, .order__wrap { grid-template-columns: 1fr; }
  .steps-card { position: static; }
  .hero__inner { grid-template-columns: 1fr; }
  .hero__art { display: none; }
  .showcase { grid-template-columns: 1fr; gap: 1.8rem; }
  .showcase__panels { min-height: 320px; }
}

@media (max-width: 820px) {
  .nav, .header-phone { display: none; }
  .burger { display: flex; }
  .hero { min-height: 72vh; padding: 4.5rem 0 6rem; }
  .hero__stats { gap: 1rem; padding: .9rem 1.1rem; }
  .stat__sep { display: none; }
  .route-step__arrow { display: none; }
  .route-steps { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 620px) {
  .cats, .equip-grid { grid-template-columns: 1fr; }
  .cat--wide { grid-column: span 1; }
  .route-grid { grid-template-columns: 1fr; }
  .route-card, .route-card--big, .route-card--wide { grid-column: span 1; min-height: 240px; }
  .form-row { grid-template-columns: 1fr; gap: 0; }
  .footer__inner { grid-template-columns: 1fr; gap: 2rem; }
  .footer__cols { grid-template-columns: 1fr 1fr; }
  .section { padding: 4rem 0; }
  .logo-chip { height: 52px; min-width: 120px; padding: 0 1.1rem; }
  .logo-chip img { height: 23px; max-width: 104px; }
  .logo-chip--txt { font-size: .9rem; }
  .strip-item { width: 250px; height: 175px; }
  .callout { font-size: .58rem; padding: .26em .55em; letter-spacing: .06em; }
}

/* ── Чекбокс согласия в форме ─────────────────────────────────── */
.form-consent {
  display: flex; align-items: flex-start; gap: .6rem;
  margin: .2rem 0 1rem; font-size: .82rem; line-height: 1.5;
  color: var(--color-muted); cursor: pointer;
}
.form-consent input { margin-top: .15rem; flex: 0 0 auto; width: 16px; height: 16px; accent-color: var(--gold); cursor: pointer; }
.form-consent a { color: var(--gold); text-decoration: underline; }
.form-consent--err { color: var(--color-error); }
.form-consent--err input { outline: 2px solid var(--color-error); outline-offset: 2px; }

/* ── Юридические страницы (политика, согласие) ───────────────── */
.legal { max-width: 860px; margin: 0 auto; }
.legal__meta { color: var(--color-muted); font-size: .9rem; margin: -.4rem 0 2rem; }
.legal h3 { font-family: var(--font-head); font-size: 1.2rem; margin: 2.1rem 0 .6rem; }
.legal p, .legal li { color: var(--color-text); font-size: 1rem; line-height: 1.75; }
.legal p { margin-bottom: .9rem; }
.legal ul, .legal ol { margin: 0 0 1rem 1.3rem; }
.legal li { margin-bottom: .4rem; }
.legal a { color: var(--gold); text-decoration: underline; }
.legal__req { width: 100%; border-collapse: collapse; margin: 1rem 0 1.6rem; font-size: .92rem; }
.legal__req td { padding: .55rem .8rem; border: 1px solid var(--color-border); vertical-align: top; }
.legal__req td:first-child { color: var(--color-muted); width: 40%; }

/* ── Подстраницы: хлебные крошки, активный пункт, CTA-блок ───── */
.crumbs { display: flex; align-items: center; gap: .5rem; font-size: .9rem; margin-bottom: 1.4rem; color: var(--color-muted); }
/* ── MAX иконка (логотип-плитка) ─────────────────────────────── */
.max-ico {
  width: 22px;
  height: 22px;
  display: block;
  flex: 0 0 auto;
  object-fit: contain;
}
.max-ico--sm {
  width: 15px;
  height: 15px;
}

/* ── Волна героя: тёмная тема — чёрный+золото; светлая — тёплые тона ── */
.hero__waves .wave-back { fill: var(--color-bg); opacity: .48; }
.hero__waves .wave-fill { fill: var(--color-alt); }
.hero__waves .wave-gold { opacity: .82; }

/* ── Волнистые переходы между секциями (встроенный SVG) ───────── */
.section--ink, .section--dark { position: relative; }
.section--wave-top,
.section--wave-bottom {
  isolation: isolate;
  overflow: hidden;
}
.section--wave-top { padding-top: clamp(7rem, 8vw, 8.4rem); }
.section--wave-bottom { padding-bottom: clamp(7rem, 8vw, 8.4rem); }
.sec-wave {
  position: absolute;
  left: 0; right: 0;
  width: 100%;
  height: clamp(82px, 7vw, 118px);
  z-index: 1;
  pointer-events: none;
}
.sec-wave--top { top: -1px; }
.sec-wave--bottom { bottom: -1px; }
.sec-wave svg { display: block; width: 100%; height: 100%; }
.sec-wave__body,
.sec-wave__wash { fill: var(--color-alt); }
.sec-wave--to-bg .sec-wave__body,
.sec-wave--to-bg .sec-wave__wash { fill: var(--color-bg); }
.sec-wave--to-alt .sec-wave__body,
.sec-wave--to-alt .sec-wave__wash,
.sec-wave--from-alt .sec-wave__body,
.sec-wave--from-alt .sec-wave__wash { fill: var(--color-alt); }
.sec-wave__wash { opacity: 1; }
.sec-wave__line {
  fill: none;
  stroke: color-mix(in srgb, var(--deep-coral) 58%, transparent);
  stroke-width: 1.6;
  vector-effect: non-scaling-stroke;
  opacity: 0;
}
.section--ink .sec-wave__line,
.section--dark .sec-wave__line {
  stroke: color-mix(in srgb, var(--gold) 72%, transparent);
  opacity: .55;
}
[data-theme="dark"] .hero__waves .wave-back { opacity: .3; }

/* Волна-переход в футер: тёмный цвет секции заявки + золотая линия */
.sec-wave--from-dark .sec-wave__body,
.sec-wave--from-dark .sec-wave__wash { fill: #14121a; }
.footer .sec-wave__line {
  stroke: color-mix(in srgb, var(--gold) 72%, transparent);
  opacity: .55;
}

@media (max-width: 620px) {
  .hero__waves { height: 84px; }
  .sec-wave { height: 72px; }
  .section--wave-top { padding-top: 5.4rem; }
  .section--wave-bottom { padding-bottom: 5.4rem; }
}

/* ── Плашка cookie / Яндекс Метрика ──────────────────────────── */
.cookie-bar {
  position: fixed;
  left: 16px;
  right: 16px;
  bottom: 16px;
  z-index: 300;
  max-width: 760px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 1rem 1.4rem;
  flex-wrap: wrap;
  padding: 1.05rem 1.4rem;
  border-radius: 16px;
  background: #1b1b21;
  color: #ECE9E1;
  border: 1px solid rgba(255, 255, 255, .14);
  box-shadow: 0 18px 50px rgba(0, 0, 0, .42);
  transform: translateY(180%);
  opacity: 0;
  transition: transform .4s cubic-bezier(.22, 1, .36, 1), opacity .4s ease;
}
.cookie-bar.show { transform: none; opacity: 1; }
.cookie-bar__text {
  flex: 1 1 320px;
  margin: 0;
  font-size: .9rem;
  line-height: 1.55;
  color: #ECE9E1;
}
.cookie-bar__text a {
  color: var(--gold);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.cookie-bar__text a:hover { color: var(--gold-soft, #f3cf6b); }
.cookie-bar__btn {
  flex-shrink: 0;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: .92rem;
  padding: .65em 1.7em;
  border-radius: 999px;
  border: 0;
  cursor: pointer;
  background: var(--gold);
  color: #1c1400;
  transition: background .2s ease, transform .1s ease;
}
.cookie-bar__btn:hover { background: var(--gold-soft, #f3cf6b); }
.cookie-bar__btn:active { transform: translateY(1px); }
@media (prefers-reduced-motion: reduce) { .cookie-bar { transition: none; } }
@media (max-width: 560px) {
  .cookie-bar { flex-direction: column; align-items: stretch; text-align: left; }
  .cookie-bar__btn { width: 100%; }
}

/* ── Реквизиты организации в футере ──────────────────────────── */
.footer__legal {
  margin: 1rem 0 0;
  font-size: .78rem;
  line-height: 1.65;
  color: var(--color-muted, #9a9aa2);
  opacity: .82;
}

/* ============================================================
   МОБИЛЬНАЯ АДАПТАЦИЯ — комплексная доработка
   ============================================================ */

/* Планшеты и крупные телефоны */
@media (max-width: 760px) {
  .container { padding: 0 20px; }
  .section--wave-top { padding-top: clamp(4.5rem, 13vw, 6rem); }
  .section--wave-bottom { padding-bottom: clamp(4.5rem, 13vw, 6rem); }
  section[id] { scroll-margin-top: 70px; }
  .section__head { margin-bottom: 2.2rem; }
  .hero__waves { height: clamp(56px, 10vw, 92px); }
}

/* Телефоны */
@media (max-width: 600px) {
  /* Контейнер и секции */
  .container { padding: 0 16px; }
  .section { padding: 3.4rem 0; }
  .section__head { margin-bottom: 1.8rem; }
  .section__head h2 { padding-bottom: .7rem; }

  /* Шапка */
  .header__inner { height: 60px; gap: .7rem; }
  .logo__img { width: 104px; }
  .header__right { gap: .5rem; }
  .theme-toggle { width: 36px; height: 36px; }
  .burger { padding: 6px; }

  /* Мобильное меню — крупные тап-таргеты */
  .mobile-nav { padding: .4rem 16px 1.1rem; }
  .mobile-nav__link { padding: .95rem 0; font-size: 1.02rem; }
  .mobile-nav__cta {
    margin-top: .9rem;
    text-align: center;
    background: var(--color-accent);
    color: var(--color-accent-contrast);
    border-radius: 999px;
    padding: .85rem 0;
  }

  /* Герой */
  .hero { min-height: auto; padding: 2.8rem 0 4.2rem; align-items: flex-start; }
  .hero__content { max-width: 100%; }
  .hero__title { font-size: clamp(2rem, 9vw, 2.7rem); margin-bottom: .9rem; }
  .hero__desc { font-size: 1rem; margin-bottom: 1.5rem; max-width: 100%; }
  .hero__badge { font-size: .76rem; margin-bottom: 1.1rem; }
  .hero__cta { gap: .6rem; margin-bottom: 1.8rem; }
  .hero__cta .btn { flex: 1 1 100%; }
  .hero__stats {
    display: flex;
    width: 100%;
    justify-content: space-between;
    gap: .6rem 1rem;
    padding: .9rem 1.1rem;
  }
  .stat b { font-size: 1.12rem; }
  .stat span { font-size: .72rem; }

  /* Кнопки — комфортный тап-таргет */
  .btn { min-height: 46px; padding: .8em 1.5em; }
  .btn--lg { min-height: 50px; }

  /* Типографика — без переполнения длинными словами */
  h1, h2, h3 { overflow-wrap: anywhere; }

  /* Форма — 16px против авто-зума iOS */
  .form-input { font-size: 16px; padding: .8em 1em; }
  .form-textarea { min-height: 110px; }
  .order__form { padding: 1.4rem 1.2rem; }
  .form-row { gap: 0; }

  /* Хлебные крошки */
  .crumbs { flex-wrap: wrap; font-size: .85rem; }

  /* Юр. таблица реквизитов — карточками в столбик */
  .legal__req, .legal__req tbody, .legal__req tr, .legal__req td { display: block; width: 100%; }
  .legal__req tr {
    margin-bottom: .8rem;
    border: 1px solid var(--color-border);
    border-radius: 10px;
    overflow: hidden;
  }
  .legal__req td { border: 0; padding: .55rem .9rem; }
  .legal__req td:first-child {
    width: 100%;
    background: var(--color-alt);
    color: var(--color-muted);
    font-weight: 600;
    padding-bottom: .2rem;
  }
  .legal h3 { font-size: 1.08rem; margin: 1.6rem 0 .5rem; }
  .legal p, .legal li { font-size: .95rem; line-height: 1.7; }

  /* Showcase / галерея */
  .showcase__panel h3 { font-size: 1.25rem; }
  .strip-item { width: 210px; height: 150px; }

  /* Кнопка «наверх» — компактнее */
  .to-top { right: 16px; bottom: 18px; width: 42px; height: 42px; }

  /* Плашка cookie — отступ снизу побольше */
  .cookie-bar { left: 12px; right: 12px; bottom: 12px; padding: .95rem 1.1rem; }
  .cookie-bar__text { font-size: .85rem; }
}

/* Очень узкие экраны */
@media (max-width: 380px) {
  .container { padding: 0 13px; }
  .hero__title { font-size: 1.82rem; }
  .logo__img { width: 94px; }
  .footer__cols { grid-template-columns: 1fr; }
  .hero__stats { flex-wrap: wrap; row-gap: .9rem; }
  .stat { flex: 1 1 42%; }
  .btn { font-size: .9rem; }
}

/* Тач-устройства: без подсветки тапа и без hover-сдвигов */
@media (hover: none) {
  a, button { -webkit-tap-highlight-color: rgba(0, 0, 0, 0); }
  .btn:hover, .to-top:hover, .logo-chip:hover, .contact-item:hover { transform: none; }
}

/* ============================================================
   МОБИЛЬНЫЕ ФИКСЫ v2 (по скриншотам)
   ============================================================ */
@media (max-width: 600px) {
  /* Шапка — без мутного просвечивания контента */
  .header {
    background: var(--color-bg);
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }

  /* КРИТ.: плашка cookie не должна растягиваться на весь экран
     (в колоночном flex flex-basis:320px задавал высоту) */
  .cookie-bar { flex-direction: column; align-items: stretch; gap: .85rem; }
  .cookie-bar__text { flex: 0 0 auto; }
  .cookie-bar__btn { width: 100%; }

  /* Статистика героя — ровная сетка 2×2 */
  .hero__stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem 1.1rem;
    width: 100%;
  }
  .stat__sep { display: none; }

  /* Бейдж героя — компактнее, иконка сверху */
  .hero__badge {
    font-size: .74rem;
    padding: .5em .9em;
    line-height: 1.35;
    align-items: flex-start;
    gap: .5em;
  }
  .badge__dot { margin-top: .35em; }

  /* Showcase: пейджер «1 / 2» в одну строку, стрелки компактнее */
  .mach-name { flex-wrap: wrap; font-size: .95rem; }
  .mach-name small { white-space: nowrap; }
  .mach-arrow { width: 38px; height: 38px; }

  /* Метки-выноски на схеме — мельче, чтобы влезали в кадр */
  .callout { font-size: .5rem; padding: .22em .45em; letter-spacing: .03em; }
  .showcase__stage { padding: 1.1rem; }
  .showcase__panels { min-height: 300px; }
}

@media (max-width: 380px) {
  .hero__stats { gap: .8rem .9rem; }
  .stat b { font-size: 1.05rem; }
  .callout { font-size: .46rem; }
}

/* ============================================================
   ФОРМА ЗАЯВКИ — мобильная адаптация
   (поля 48px, тапы ≥44px, одна колонка, без пустой зоны)
   ============================================================ */
@media (max-width: 600px) {
  /* Секция заявки: убрать огромную пустую зону под формой (мост-сцена) */
  #order { padding-bottom: 6rem; }
  .order-bridge { height: 180px; }
  .order__wrap { gap: 2rem; }
  .order__title { margin-bottom: .7rem; }
  .order__desc { margin-bottom: 1.4rem; }

  /* Карточка формы — плотнее по краям */
  .order__form { padding: 1.4rem 1.15rem; border-radius: 16px; }

  /* Шапка формы — логотип не растягивает */
  .form-head { gap: .8rem; padding-bottom: 1rem; margin-bottom: 1.1rem; }
  .form-head img { width: 74px; }
  .form-head strong { font-size: .98rem; }
  .form-head span { font-size: .76rem; line-height: 1.4; }

  /* Поля: высота 48px, шрифт 16px (без авто-зума iOS) */
  .form-input { font-size: 16px; padding: .85em 1em; min-height: 48px; }
  .form-textarea { min-height: 120px; padding-top: .7em; }
  .form-group { margin-bottom: .9rem; }
  .form-label { font-size: .85rem; margin-bottom: .4rem; }

  /* Каналы отправки — ровная сетка 2×2, крупные тап-таргеты */
  .chan { display: grid; grid-template-columns: 1fr 1fr; gap: .55rem; }
  .chan__btn {
    justify-content: center;
    min-height: 46px;
    padding: .6em .7em;
    font-size: .9rem;
  }

  /* Кнопка отправки и согласие */
  .form-actions .btn { min-height: 52px; }
  .form-consent { font-size: .8rem; gap: .55rem; }
  .form-note { font-size: .76rem; }
}

@media (max-width: 380px) {
  #order { padding-bottom: 5rem; }
  .order-bridge { height: 150px; }
  .order__form { padding: 1.2rem 1rem; }
  .chan__btn { font-size: .84rem; padding: .55em .5em; }
}

/* ============================================================
   КАРУСЕЛИ НА МОБИЛЬНЫХ — горизонтальный свайп (scroll-snap)
   Категории запчастей · виды техники · карточки маршрута
   ============================================================ */
@media (max-width: 600px) {
  .cats,
  .equip-grid,
  .route-grid {
    display: flex;
    grid-template-columns: none;
    flex-wrap: nowrap;
    gap: .85rem;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-padding-left: 16px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    /* во всю ширину экрана + «подглядывание» следующей карточки */
    margin-inline: -16px;
    padding: .4rem 16px 1.1rem;
  }
  .cats::-webkit-scrollbar,
  .equip-grid::-webkit-scrollbar,
  .route-grid::-webkit-scrollbar { display: none; }

  .cat,
  .equip-card,
  .route-card,
  .cat--wide,
  .route-card--big,
  .route-card--wide {
    flex: 0 0 84%;
    scroll-snap-align: start;
    grid-column: auto;
  }

  /* карточки маршрута — компактнее в ленте */
  .route-card,
  .route-card--big,
  .route-card--wide { min-height: 210px; }
}

/* ============================================================
   КОМПАКТНОСТЬ (моб.): герой-кнопки, контакты, футер
   ============================================================ */
@media (max-width: 600px) {
  /* Герой: заголовок компактнее */
  .hero__title { font-size: clamp(1.7rem, 7.6vw, 2.3rem); line-height: 1.12; }
  .hero__desc { font-size: .95rem; }

  /* Кнопки героя в один ряд: «Рассчитать» + WhatsApp иконкой */
  .hero__cta { flex-direction: row; flex-wrap: nowrap; align-items: stretch; gap: .6rem; }
  .hero__cta .btn--primary { flex: 1 1 auto; min-height: 50px; }
  .hero__cta .btn--wa {
    flex: 0 0 auto;
    width: 54px; min-height: 50px;
    padding: 0; gap: 0;
    font-size: 0;            /* прячем надпись WhatsApp — остаётся иконка */
  }
  .hero__cta .btn--wa svg { width: 22px; height: 22px; }

  /* Контакты в секции заявки — компактная сетка 2×2 */
  .contacts { display: grid; grid-template-columns: 1fr 1fr; gap: .5rem; }
  .contact-item { padding: .65rem .7rem; gap: .55rem; }
  .contact-item:hover { transform: none; }
  .contact-item svg,
  .contact-item .max-ico { width: 18px; height: 18px; flex: 0 0 auto; }
  .contact-item__label { font-size: .66rem; }
  .contact-item__val { font-size: .78rem; }

  /* Футер — заметно компактнее */
  .footer__inner { padding: 2.2rem 16px 1.5rem; gap: 1.6rem; }
  .footer__logo { margin-bottom: .6rem; }
  .footer__logo .logo__img { width: 108px; }
  .footer__brand p { font-size: .82rem; line-height: 1.55; }
  .footer__legal { font-size: .72rem; line-height: 1.5; margin-top: .7rem; }
  .footer__cols { gap: 1.3rem 1rem; }
  .footer__col { gap: .35rem; }
  .footer__col-h { font-size: .9rem; margin-bottom: .25rem; }
  .footer__col a { font-size: .82rem; }
  .footer__bottom { padding: .9rem 0; }
  .footer__bottom .container { font-size: .74rem; }
}

@media (max-width: 380px) {
  .contact-item__val { font-size: .74rem; }
}

/* ============================================================
   КОНТАКТЫ — ТОЛЬКО ИКОНКИ + КОМПАКТНАЯ ФОРМА (моб.)
   ============================================================ */
@media (max-width: 600px) {
  /* Контакты — круглые иконки в ряд, без подписей */
  .contacts { display: flex; flex-direction: row; flex-wrap: wrap; gap: .6rem; }
  .contact-item {
    width: 50px; height: 50px;
    padding: 0;
    justify-content: center;
    border-radius: 50%;
    flex: 0 0 auto;
  }
  .contact-item > div { display: none; }
  .contact-item svg,
  .contact-item .max-ico { width: 22px; height: 22px; }

  /* Форма заявки — компактнее (поля 44px, шрифт 16px сохраняем) */
  .order__form { padding: 1.2rem 1rem; }
  .form-head { padding-bottom: .8rem; margin-bottom: .9rem; }
  .form-head img { width: 68px; }
  .form-input { min-height: 44px; padding: .6em .9em; }
  .form-textarea { min-height: 78px; }
  .form-group { margin-bottom: .7rem; }
  .form-label { margin-bottom: .3rem; font-size: .82rem; }
  .chan { gap: .5rem; }
  .chan__btn { min-height: 42px; }
  .form-consent { font-size: .76rem; margin: .1rem 0 .8rem; }
  .form-actions .btn { min-height: 48px; }
  .form-note { margin-top: .7rem; }
}

/* ============================================================
   ФИКСЫ (моб.): плашка на схеме + наплыв волн на текст
   ============================================================ */
@media (max-width: 600px) {
  /* Убираем плашку активной части на схеме — остаются выноски и надписи */
  .showcase__label { display: none !important; }

  /* Волнистые переходы не должны заходить на заголовки */
  .sec-wave { height: 54px; }
  .hero__waves { height: 64px; }
  .section--wave-top { padding-top: 6.4rem; }
  .section--wave-bottom { padding-bottom: 6.4rem; }
}

/* ============================================================
   ФОРМА: каналы иконками · мост с транспортом · мини-футер (моб.)
   ============================================================ */
@media (max-width: 600px) {
  /* Каналы отправки в форме — только иконки */
  .chan { display: flex; flex-wrap: wrap; gap: .5rem; }
  .chan__btn {
    width: 52px; height: 48px;
    padding: 0; gap: 0;
    justify-content: center;
    font-size: 0;            /* прячем подписи каналов — остаётся иконка */
  }
  .chan__btn svg,
  .chan__btn .max-ico { width: 20px; height: 20px; }

  /* Мост Благовещенск — Хэйхэ с едущим транспортом — показать заметно */
  #order { padding-bottom: 8.5rem; }
  .order-bridge { height: 220px; }

  /* Футер — только важное, маленький */
  .footer__brand p:not(.footer__legal) { display: none; } /* убрать слоган-дубль */
  .footer__col:first-child { display: none; }             /* скрыть колонку ссылок «Запчасти» */
  .footer__cols { grid-template-columns: 1fr 1fr; gap: 1.1rem 1rem; }
  .footer__legal { font-size: .7rem; }
}

@media (max-width: 380px) {
  #order { padding-bottom: 7rem; }
  .order-bridge { height: 180px; }
  .chan__btn { width: 48px; height: 46px; }
}

