:root {
  --bg: #f4f4f5;
  --bg-soft: #e9e9ec;
  --bg-card: #ffffff;
  --surface: #fafafa;
  --ink: #18181b;
  --ink-soft: #3f3f46;
  --ink-mute: #71717a;
  --line: #e4e4e7;
  --line-strong: #d4d4d8;
  --red: #c92a2a;
  --red-deep: #a31515;
  --red-soft: #ffe5e5;
  --green: #16a34a;
  --green-soft: #dcfce7;
  --graphite: #27272a;
  --metal: #a1a1aa;

  --maxw: 1440px;
  --pad-x: clamp(20px, 4vw, 64px);
  --radius-sm: 8px;
  --radius: 14px;
  --radius-lg: 22px;
  --radius-xl: 28px;

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --t-fast: 180ms;
  --t-med: 320ms;
  --t-slow: 560ms;

  --shadow-sm: 0 1px 2px rgba(24, 24, 27, 0.04), 0 2px 6px rgba(24, 24, 27, 0.04);
  --shadow-md: 0 4px 12px rgba(24, 24, 27, 0.06), 0 12px 32px rgba(24, 24, 27, 0.06);
  --shadow-lg: 0 12px 40px rgba(24, 24, 27, 0.12);

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

  --header-h: 76px;
}

@media (max-width: 768px) {
  :root {
    --header-h: 64px;
  }
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  /* iOS momentum-скролл */
  -webkit-overflow-scrolling: touch;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
  /* На iOS pull-to-refresh может конфликтовать с fixed-элементами */
  overscroll-behavior-y: contain;
  /* Подсказка браузеру: скролл-направление вертикальное —
     можно сразу делать GPU-композицию без раздумий */
  touch-action: pan-y;
}

/* Touch-устройства: scroll-behavior: smooth в комбинации с
   IntersectionObserver и position: fixed на iOS даёт jank.
   Отдаём управление нативному impulse-скроллу. */
@media (hover: none) and (pointer: coarse) {
  html {
    scroll-behavior: auto;
  }
}

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

a {
  color: inherit;
  text-decoration: none;
}

button {
  font: inherit;
  color: inherit;
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
}

input,
select,
textarea {
  font: inherit;
  color: inherit;
}

h1,
h2,
h3,
h4 {
  font-family: var(--font-display);
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--ink);
  margin: 0;
  line-height: 1.05;
}

h1 {
  font-size: clamp(2.2rem, 4.4vw, 4.6rem);
}

h2 {
  font-size: clamp(1.8rem, 3vw, 3rem);
}

@media (min-width: 1700px) {
  :root {
    --maxw: 1600px;
  }
  h1 {
    font-size: clamp(3rem, 3.6vw, 5.2rem);
  }
  h2 {
    font-size: clamp(2.2rem, 2.6vw, 3.4rem);
  }
}

@media (min-width: 2200px) {
  :root {
    --maxw: 1760px;
    --pad-x: clamp(40px, 3vw, 96px);
  }
}

h3 {
  font-size: clamp(1.15rem, 1.6vw, 1.4rem);
  letter-spacing: -0.015em;
}

p {
  margin: 0;
}

.container {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding-inline: var(--pad-x);
}

.section {
  padding: clamp(64px, 8vw, 120px) 0;
}

.section--tight {
  padding: clamp(48px, 6vw, 88px) 0;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--red);
}

.eyebrow::before {
  content: '';
  width: 28px;
  height: 2px;
  background: var(--red);
}

.section-head {
  max-width: 760px;
  margin-bottom: clamp(36px, 4vw, 56px);
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.section-head__lead {
  color: var(--ink-mute);
  font-size: clamp(1rem, 1.2vw, 1.125rem);
  line-height: 1.6;
}

.section-head--compact {
  margin-bottom: clamp(28px, 3vw, 40px);
  gap: 12px;
  max-width: 720px;
}

.section-head--compact .section-head__lead {
  color: var(--ink-soft);
  font-size: clamp(1.1rem, 1.3vw, 1.25rem);
}

/* buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 52px;
  padding: 0 26px;
  border-radius: 999px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.005em;
  transition: transform var(--t-fast) var(--ease),
    box-shadow var(--t-fast) var(--ease),
    background var(--t-fast) var(--ease),
    color var(--t-fast) var(--ease);
  cursor: pointer;
  border: 1px solid transparent;
  white-space: nowrap;
}

.btn--primary {
  background: var(--ink);
  color: #fff;
  box-shadow: var(--shadow-md);
}

.btn--primary:hover {
  background: var(--red);
  transform: translateY(-1px);
}

.btn--ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--line-strong);
}

.btn--ghost:hover {
  border-color: var(--ink);
  background: #fff;
}

.btn--red {
  background: var(--red);
  color: #fff;
  box-shadow: 0 8px 24px rgba(201, 42, 42, 0.25);
}

.btn--red:hover {
  background: var(--red-deep);
  transform: translateY(-1px);
}

.btn:active {
  transform: translateY(0);
}

.btn__arrow {
  display: inline-block;
  transition: transform var(--t-fast) var(--ease);
}

.btn:hover .btn__arrow {
  transform: translateX(3px);
}

.tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  font-size: 0.8rem;
  font-weight: 600;
  border-radius: 999px;
  background: var(--bg-soft);
  color: var(--ink-soft);
}

.tag--stock {
  background: var(--green-soft);
  color: #166534;
}

.tag--stock::before {
  content: '';
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 3px rgba(22, 163, 74, 0.18);
}

.tag--supplier {
  background: var(--bg-soft);
  color: var(--graphite);
}

.tag--supplier::before {
  content: '';
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--metal);
}

/* link */
.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  color: var(--ink);
  border-bottom: 1px solid currentColor;
  padding-bottom: 2px;
  transition: color var(--t-fast) var(--ease);
}

.link-arrow:hover {
  color: var(--red);
}

/* reveal */
[data-reveal] {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity var(--t-slow) var(--ease),
    transform var(--t-slow) var(--ease);
}

[data-reveal].is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
  [data-reveal] {
    opacity: 1;
    transform: none;
  }
}

/* focus */
:focus-visible {
  outline: 2px solid var(--red);
  outline-offset: 3px;
  border-radius: 6px;
}

::selection {
  background: var(--ink);
  color: var(--bg);
}

/* utility */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.grid {
  display: grid;
}

.flex {
  display: flex;
}
.logo {
  display: inline-flex;
  align-items: center;
  gap: 14px;
}

.logo__mark {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  background: #000;
}

.logo__text {
  display: flex;
  flex-direction: column;
  line-height: 1.05;
}

.logo__name {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.1rem;
  letter-spacing: -0.01em;
  color: var(--ink);
}

.logo__caption {
  font-size: 0.72rem;
  color: var(--ink-mute);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-top: 3px;
}

.logo--compact .logo__caption {
  display: none;
}

@media (max-width: 540px) {
  .logo__caption {
    display: none;
  }
  .logo__mark {
    width: 40px;
    height: 40px;
  }
}
.header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  transition: background var(--t-med) var(--ease),
    backdrop-filter var(--t-med) var(--ease),
    box-shadow var(--t-med) var(--ease),
    border-color var(--t-med) var(--ease);
  background: rgba(244, 244, 245, 0.6);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  /* GPU-промоут шапки: на iOS без этого backdrop-filter и box-shadow
     заставляют пересчитывать композицию при каждом scroll-tick */
  transform: translate3d(0, 0, 0);
  will-change: transform;
}

.header--scrolled {
  background: rgba(244, 244, 245, 0.92);
  border-bottom-color: var(--line);
  box-shadow: var(--shadow-sm);
}

/* Touch-устройства: убираем тяжёлый backdrop-blur и анимации цвета,
   ради плавного скролла. На рендере выглядит почти так же — солидный
   светлый фон. На iOS Safari blur — главный источник скролл-дёрганий. */
@media (hover: none) and (pointer: coarse), (max-width: 920px) {
  .header {
    background: rgba(244, 244, 245, 0.96);
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    transition: box-shadow var(--t-fast) var(--ease),
      border-color var(--t-fast) var(--ease);
  }
  .header--scrolled {
    background: rgba(244, 244, 245, 0.98);
  }
}

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

.header__nav {
  flex: 1;
  display: flex;
  justify-content: center;
}

.header__nav-list {
  display: flex;
  gap: clamp(16px, 2vw, 32px);
  list-style: none;
  margin: 0;
  padding: 0;
}

.header__nav-list a {
  position: relative;
  font-weight: 500;
  font-size: 0.95rem;
  color: var(--ink-soft);
  padding: 6px 2px;
  transition: color var(--t-fast) var(--ease);
}

.header__nav-list a::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: -4px;
  height: 2px;
  background: var(--red);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--t-fast) var(--ease);
}

.header__nav-list a:hover {
  color: var(--ink);
}

.header__nav-list a:hover::after {
  transform: scaleX(1);
}

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

.header__phone {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  line-height: 1.1;
  text-align: right;
}

.header__phone-label {
  font-size: 0.7rem;
  letter-spacing: 0.06em;
  color: var(--ink-mute);
  text-transform: uppercase;
}

.header__phone-value {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1rem;
  color: var(--ink);
  margin-top: 3px;
}

.header__cta {
  min-height: 44px;
  padding: 0 18px;
  font-size: 0.88rem;
}

.header__burger {
  display: none;
  width: 48px;
  height: 48px;
  position: relative;
  border-radius: 50%;
}

.header__burger span {
  position: absolute;
  left: 14px;
  right: 14px;
  height: 2px;
  background: currentColor;
  border-radius: 2px;
  transition: transform var(--t-fast) var(--ease),
    opacity var(--t-fast) var(--ease),
    top var(--t-fast) var(--ease);
}

.header__burger span:nth-child(1) {
  top: 17px;
}
.header__burger span:nth-child(2) {
  top: 23px;
}
.header__burger span:nth-child(3) {
  top: 29px;
}

.header__burger span.is-open:nth-child(1) {
  top: 23px;
  transform: rotate(45deg);
}
.header__burger span.is-open:nth-child(2) {
  opacity: 0;
}
.header__burger span.is-open:nth-child(3) {
  top: 23px;
  transform: rotate(-45deg);
}

.mobile-menu {
  position: fixed;
  inset: var(--header-h) 0 auto 0;
  background: var(--bg);
  border-bottom: 1px solid var(--line);
  padding: 24px var(--pad-x) 32px;
  display: flex;
  flex-direction: column;
  gap: 24px;
  transform: translateY(-12px);
  opacity: 0;
  pointer-events: none;
  transition: transform var(--t-med) var(--ease),
    opacity var(--t-med) var(--ease);
  max-height: calc(100vh - var(--header-h));
  overflow-y: auto;
  z-index: 90;
}

.mobile-menu--open {
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
}

.mobile-menu ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
}

.mobile-menu li a {
  display: block;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--ink);
}

.mobile-menu__foot {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.mobile-menu__phone {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.3rem;
  color: var(--ink);
}

@media (max-width: 1100px) {
  .header__phone-label {
    display: none;
  }
  .header__phone-value {
    font-size: 0.92rem;
  }
}

@media (max-width: 920px) {
  .header__nav {
    display: none;
  }
  .header__cta {
    display: none;
  }
  /* Бургер — плавающий FAB в правом верхнем углу.
     Закреплён, всегда виден поверх контента и любых якорей. */
  .header__burger {
    display: block;
    position: fixed;
    top: calc(env(safe-area-inset-top, 0px) + 12px);
    right: 12px;
    z-index: 110;
    width: 48px;
    height: 48px;
    background: var(--ink);
    color: #fff;
    border-radius: 50%;
    box-shadow: 0 8px 22px rgba(0, 0, 0, 0.28),
      0 2px 6px rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.08);
    transition: background var(--t-fast) var(--ease),
      box-shadow var(--t-fast) var(--ease),
      transform var(--t-fast) var(--ease);
    /* GPU-промоут — без него iOS пересчитывает тень при скролле */
    transform: translate3d(0, 0, 0);
    will-change: transform;
  }
  .header__burger:hover {
    background: var(--red);
  }
  .header__burger:active {
    transform: scale(0.96);
  }
  .header__burger:focus-visible {
    outline: 2px solid #fff;
    outline-offset: 3px;
  }
  /* В шапке заполнителя на месте бургера нет — но и не нужно,
     актёрский ряд справа просто пустой, логотип занимает левую часть */
}

@media (max-width: 540px) {
  .header__phone {
    display: none;
  }
}
.footer {
  background: #0c0c0e;
  color: #d4d4d8;
  padding: clamp(56px, 7vw, 88px) 0 clamp(24px, 3vw, 36px);
  font-family: var(--font-sans);
  /* Тонкая красная полоса наверху — единая брендовая нить с шапкой */
  border-top: 1px solid #1a1a1d;
  position: relative;
}

.footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 80px;
  height: 2px;
  background: var(--red);
}

.footer__inner {
  display: grid;
  grid-template-columns:
    minmax(0, 1.8fr)
    minmax(0, 1fr)
    minmax(0, 1fr)
    minmax(0, 1.3fr);
  gap: clamp(28px, 3vw, 48px);
  padding-bottom: clamp(36px, 4vw, 56px);
  border-bottom: 1px solid #27272a;
  align-items: start;
}

.footer__brand {
  display: flex;
  flex-direction: column;
  gap: 18px;
  max-width: 380px;
}

.footer__brand .logo__name {
  color: #fff;
}

.footer__brand .logo__caption {
  color: var(--metal);
}

.footer__about {
  color: var(--metal);
  font-size: 0.94rem;
  line-height: 1.65;
  margin: 0;
}

.footer__col {
  display: flex;
  flex-direction: column;
  gap: 12px;
  font-size: 0.95rem;
  min-width: 0;
}

.footer__title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.74rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #fff;
  margin-bottom: 6px;
  padding-bottom: 10px;
  border-bottom: 1px solid #27272a;
}

.footer__col a {
  color: #d4d4d8;
  transition: color var(--t-fast) var(--ease);
  line-height: 1.4;
}

.footer__col a:hover {
  color: var(--red);
}

.footer__col p {
  margin: 0;
  color: var(--metal);
  line-height: 1.55;
}

.footer__col--wide p:first-of-type {
  color: #d4d4d8;
}

/* === Legal row === */

.footer__legal {
  padding: clamp(22px, 2.5vw, 32px) 0 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.footer__legal-links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 10px 22px;
}

.footer__legal-links a {
  color: #d4d4d8;
  font-size: 0.82rem;
  line-height: 1.5;
  border-bottom: 1px solid rgba(255, 255, 255, 0.18);
  padding-bottom: 2px;
  transition: color 120ms var(--ease), border-color 120ms var(--ease);
}

.footer__legal-links a:hover {
  color: var(--red);
  border-bottom-color: var(--red);
}

.footer__offer {
  font-size: 0.78rem;
  color: var(--metal);
  line-height: 1.6;
  margin: 0;
  max-width: 960px;
}

/* === Bottom === */

.footer__bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px 24px;
  margin-top: clamp(16px, 2vw, 24px);
  padding-top: clamp(16px, 2vw, 22px);
  border-top: 1px solid #27272a;
  font-size: 0.82rem;
  color: var(--metal);
  flex-wrap: wrap;
}

.footer__copyright {
  color: var(--metal);
}

.footer__credit {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--metal);
  font-size: 0.78rem;
  letter-spacing: 0.005em;
  text-decoration: none;
  transition: color 120ms var(--ease);
}

.footer__credit:hover {
  color: #fff;
}

.footer__credit-brand {
  font-family: var(--font-display);
  font-weight: 700;
  color: #fff;
  letter-spacing: 0;
  margin-left: 2px;
  transition: color 120ms var(--ease);
}

.footer__credit:hover .footer__credit-brand {
  color: var(--red);
}

.footer__credit-arrow {
  display: inline-block;
  font-size: 0.78rem;
  transition: transform 120ms var(--ease);
}

.footer__credit:hover .footer__credit-arrow {
  transform: translate(2px, -2px);
}

/* === Responsive === */

@media (max-width: 1024px) {
  .footer__inner {
    grid-template-columns: minmax(0, 1.4fr) repeat(2, minmax(0, 1fr));
  }
  .footer__col--wide {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: minmax(0, 200px) 1fr;
    gap: 12px 20px;
    align-items: start;
  }
  .footer__col--wide .footer__title {
    grid-column: 1 / -1;
  }
}

@media (max-width: 720px) {
  .footer__inner {
    grid-template-columns: 1fr 1fr;
  }
  .footer__brand {
    grid-column: 1 / -1;
    max-width: 100%;
  }
  .footer__col--wide {
    grid-column: 1 / -1;
    grid-template-columns: 1fr;
    gap: 8px;
  }
}

@media (max-width: 480px) {
  .footer__inner {
    grid-template-columns: 1fr;
    gap: 28px;
  }
  .footer__title {
    padding-bottom: 8px;
  }
}
.hero {
  position: relative;
  margin-top: var(--header-h);
  min-height: calc(100vh - var(--header-h));
  min-height: calc(100dvh - var(--header-h));
  overflow: hidden;
  background: #0c0c0e;
  isolation: isolate;
  display: flex;
  flex-direction: column;
  /* запретить распространение перекраски за пределы hero — sibling
     backdrop-filter / pulse-анимации в шапке/виджетах не будут вызывать
     повторный composite видео. */
  contain: layout paint;
}

.hero__video-wrap {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  /* собственный GPU-слой для обёртки → видео сидит в фиксированной
     композиционной плоскости, без sub-pixel-перерасчёта на каждый кадр */
  transform: translate3d(0, 0, 0);
  will-change: transform;
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
  -webkit-perspective: 1000;
  perspective: 1000;
}

.hero__video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  /* двойная страховка: translate3d + scale(1) фиксируют integer-пиксели,
     убирают вертикальное «дыхание» на HiDPI-дисплеях. */
  transform: translate3d(0, 0, 0) scale(1);
  -webkit-transform: translate3d(0, 0, 0) scale(1);
  will-change: transform;
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
  /* в дополнение к translate3d на родителе — изолирует кадр видео
     от любых repaint-каскадов от соседей. */
  contain: paint;
}

.hero__inner {
  position: relative;
  z-index: 2;
  flex: 1;
  display: flex;
  align-items: center;
  padding-top: clamp(32px, 6vh, 64px);
  padding-bottom: clamp(48px, 8vh, 96px);
}

.hero__content {
  max-width: 660px;
  display: flex;
  flex-direction: column;
  gap: 24px;
  padding: 0;
  background: none;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  animation: hero-in 800ms var(--ease) both;
}

/* Маркерная подложка — только под словами.
 * box-decoration-break: clone разрывает фон/паддинг по строкам:
 * каждая строка получает отдельный белый прямоугольник, плотно
 * вокруг текста, без пустого блока на ширину контейнера. */
.hero__mark {
  background: #ffffff;
  color: var(--ink);
  padding: 0.08em 0.32em;
  border-radius: 3px;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
  /* небольшой компенсатор: иначе соседние строки склеиваются вплотную */
  line-height: 1.32;
}

/* В eyebrow фон того же белого, текст красный — сохраняем фирменный акцент. */
.eyebrow .hero__mark {
  color: var(--red);
  padding: 0.18em 0.5em;
  line-height: 1.4;
}

/* В note текст остаётся приглушённым серым, но уже на белой подложке —
 * читается чётко поверх любого кадра видео. */
.hero__note .hero__mark {
  color: var(--ink-soft);
  padding: 0.18em 0.42em;
}

/* H1 — крупный, чуть больше внутренний отступ для воздуха в маркере. */
.hero__title .hero__mark {
  padding: 0.04em 0.28em;
  line-height: 1.18;
}

@keyframes hero-in {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero__title {
  font-size: clamp(2.2rem, 4.4vw, 4.4rem);
  line-height: 1.02;
  max-width: 620px;
}

@media (min-width: 1700px) {
  .hero__title {
    font-size: clamp(3rem, 3.6vw, 5.4rem);
    max-width: 760px;
  }
  .hero__content {
    max-width: 800px;
    gap: 28px;
  }
  .hero__accent {
    font-size: 1.05rem;
    padding: 12px 22px;
  }
}

.hero__accent {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  align-self: flex-start;
  max-width: 100%;
  background: var(--ink);
  color: #fff;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.95rem;
  line-height: 1.4;
  padding: 10px 18px;
  border-radius: 999px;
  box-shadow: var(--shadow-md);
}

/* На очень узких — позволяем перенос строки внутри плашки */
@media (max-width: 540px) {
  .hero__accent {
    border-radius: 22px;
  }
}

.hero__accent-text {
  min-width: 0;
}

.hero__accent-emphasis {
  display: inline;
  color: #ffd84a;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-shadow: 0 1px 0 rgba(0, 0, 0, 0.2);
  white-space: nowrap;
}

.hero__accent-dot {
  width: 8px;
  height: 8px;
  background: var(--red);
  border-radius: 50%;
  box-shadow: 0 0 0 3px rgba(201, 42, 42, 0.25);
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% {
    box-shadow: 0 0 0 3px rgba(201, 42, 42, 0.25);
  }
  50% {
    box-shadow: 0 0 0 6px rgba(201, 42, 42, 0);
  }
}

.hero__cta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 2px;
}

.hero__note {
  color: var(--ink-mute);
  font-size: 0.88rem;
  max-width: 520px;
  margin-top: 2px;
  line-height: 1.55;
}

@media (max-width: 1024px) {
  /* На планшетах и крупных мобилках центрируем кадр чуть правее, чтобы
     грузовик не уходил за правый край при object-fit: cover */
  .hero__video {
    object-position: 65% center;
  }
}

@media (max-width: 768px) {
  .hero__inner {
    padding-top: clamp(20px, 4vh, 48px);
    padding-bottom: clamp(32px, 6vh, 72px);
  }
  .hero__video {
    object-position: 72% center;
  }
  .hero__title {
    font-size: clamp(1.95rem, 7.4vw, 2.8rem);
    line-height: 1.05;
  }
  .hero__cta {
    width: 100%;
  }
  .hero__cta .btn {
    flex: 1 1 calc(50% - 6px);
    min-height: 48px;
    padding: 0 18px;
    font-size: 0.9rem;
  }
  .hero__accent {
    font-size: 0.85rem;
    padding: 9px 14px;
  }
  /* Маркер у H1 — компактнее на мобильных, чтобы строки не были
     слишком «лесенкой». */
  .hero__title .hero__mark {
    padding: 0.06em 0.22em;
  }
  .hero__note .hero__mark,
  .eyebrow .hero__mark {
    padding: 0.16em 0.34em;
  }
}

@media (max-width: 540px) {
  .hero__content {
    gap: 16px;
  }
  .hero__cta .btn {
    flex: 1 1 100%;
    min-height: 50px;
  }
  .hero__title {
    font-size: clamp(1.85rem, 8vw, 2.4rem);
    max-width: 100%;
  }
  .hero__note {
    font-size: 0.84rem;
  }
}

@media (max-width: 380px) {
  .hero__title {
    font-size: 1.75rem;
  }
  .hero__accent {
    font-size: 0.8rem;
    padding: 8px 12px;
  }
}

/* Touch-устройства: pulse на красной точке через box-shadow — это
   continuous repaint в верхнем углу экрана. Заменяем на простую
   статичную точку, экономим GPU при scroll. */
@media (hover: none) and (pointer: coarse) {
  .hero__accent-dot {
    animation: none;
  }
  /* Маркер у H1 на iOS: box-decoration-break: clone иногда триггерит
     repaint каждой строки при scroll. Чуть упрощаем. */
  .hero__mark {
    will-change: auto;
  }
}
.product-card {
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: transform var(--t-med) var(--ease),
    box-shadow var(--t-med) var(--ease),
    border-color var(--t-med) var(--ease);
  text-decoration: none;
  color: inherit;
  height: 100%;
  min-width: 0;
}

/* === Featured (in-stock) carde — Caterpillar 3412E === */
.product-card--featured {
  background:
    linear-gradient(180deg, #ffffff 0%, #fafafa 100%);
  border: 2px solid var(--red);
  box-shadow:
    0 0 0 4px rgba(201, 42, 42, 0.08),
    0 14px 32px rgba(201, 42, 42, 0.18);
}

.product-card--featured:hover {
  border-color: var(--red);
  box-shadow:
    0 0 0 4px rgba(201, 42, 42, 0.12),
    0 22px 44px rgba(201, 42, 42, 0.22);
}

/* фирменная подсветка под статус-тегом «В наличии» */
.product-card--featured .product-card__status {
  background: #fff;
  border: 1px solid #bbf7d0;
  box-shadow: 0 4px 12px rgba(22, 163, 74, 0.15);
}

/* пульсация зелёной точки только у featured-карточки */
.product-card--featured .tag--stock::before {
  animation: card-stock-pulse 1.8s ease-in-out infinite;
}

@keyframes card-stock-pulse {
  0%, 100% {
    box-shadow: 0 0 0 3px rgba(22, 163, 74, 0.18);
  }
  50% {
    box-shadow: 0 0 0 7px rgba(22, 163, 74, 0);
  }
}

/* цена и кнопка в featured-карточке акцентируются */
.product-card--featured .product-card__price-value {
  color: var(--red);
}

.product-card--featured .product-card__arrow {
  color: var(--red);
  font-weight: 800;
}

.product-card--featured:hover .product-card__arrow span {
  transform: translateX(6px);
}

@media (prefers-reduced-motion: reduce) {
  .product-card--featured .tag--stock::before {
    animation: none;
  }
}

.product-card:hover {
  transform: translateY(-6px);
  border-color: var(--ink);
  box-shadow: var(--shadow-lg);
}

.product-card:hover .product-card__media img {
  transform: scale(1.04);
}

.product-card:hover .product-card__arrow {
  color: var(--red);
}

.product-card:hover .product-card__arrow span {
  transform: translateX(4px);
}

.product-card__media {
  position: relative;
  aspect-ratio: 1 / 1;
  background: #ffffff;
  overflow: hidden;
}

.product-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--t-slow) var(--ease);
}

.product-card__status {
  position: absolute;
  top: 14px;
  left: 14px;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(6px);
}

.product-card__body {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 22px;
  flex: 1;
}

.product-card__brand {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-mute);
}

.product-card__title {
  font-size: 1.4rem;
  line-height: 1.1;
  letter-spacing: -0.02em;
  word-break: break-word;
}

.product-card__desc {
  color: var(--ink-soft);
  font-size: 0.94rem;
  line-height: 1.55;
  flex: 1;
}

.product-card__foot {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
  margin-top: 4px;
}

.product-card__price,
.product-card__delivery {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.product-card__delivery {
  align-items: flex-end;
  text-align: right;
}

.product-card__price-label,
.product-card__delivery-label {
  font-size: 0.7rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-mute);
}

.product-card__price-value {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.25rem;
  color: var(--ink);
  letter-spacing: -0.015em;
}

.product-card__delivery-value {
  font-weight: 600;
  color: var(--ink);
  font-size: 0.94rem;
}

.product-card__arrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.88rem;
  color: var(--ink-soft);
  transition: color var(--t-fast) var(--ease);
  margin-top: 6px;
}

.product-card__arrow span {
  transition: transform var(--t-fast) var(--ease);
}
.products {
  background: var(--bg);
}

.products__head {
  max-width: 760px;
  margin-bottom: clamp(28px, 3vw, 44px);
  display: flex;
  flex-direction: column;
  gap: 14px;
}

/* viewport — рамка слайдера с боковыми стрелками */
.products__viewport {
  position: relative;
}

/* боковые стрелки — overlap с краем карточек */
.products__arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 3;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  border: 1px solid var(--line-strong);
  background: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--ink);
  cursor: pointer;
  box-shadow: 0 8px 20px rgba(24, 24, 27, 0.1);
  transition: background var(--t-fast) var(--ease),
    border-color var(--t-fast) var(--ease),
    color var(--t-fast) var(--ease),
    transform var(--t-fast) var(--ease),
    opacity var(--t-fast) var(--ease);
}

.products__arrow--prev {
  left: clamp(8px, 2vw, 28px);
}

.products__arrow--next {
  right: clamp(8px, 2vw, 28px);
}

.products__arrow:hover:not(:disabled) {
  background: var(--ink);
  border-color: var(--ink);
  color: #fff;
  transform: translateY(-50%) scale(1.05);
}

.products__arrow--prev:hover:not(:disabled) {
  transform: translateY(-50%) scale(1.05) translateX(-2px);
}

.products__arrow--next:hover:not(:disabled) {
  transform: translateY(-50%) scale(1.05) translateX(2px);
}

.products__arrow:disabled {
  opacity: 0;
  pointer-events: none;
}

.products__arrow:focus-visible {
  outline: 2px solid var(--red);
  outline-offset: 4px;
}

/* fade-маски на краях, чтобы видно было «там ещё карточки» */
.products__edge {
  position: absolute;
  top: 0;
  bottom: 0;
  width: clamp(40px, 6vw, 80px);
  pointer-events: none;
  z-index: 2;
  opacity: 0;
  transition: opacity var(--t-fast) var(--ease);
}

.products__edge--show {
  opacity: 1;
}

.products__edge--left {
  left: 0;
  background: linear-gradient(90deg, var(--bg) 0%, rgba(244, 244, 245, 0) 100%);
}

.products__edge--right {
  right: 0;
  background: linear-gradient(270deg, var(--bg) 0%, rgba(244, 244, 245, 0) 100%);
}

/* контейнер и трек */
.products__container {
  padding-right: 0;
}

.products__track {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(340px, 380px);
  gap: 24px;
  overflow-x: auto;
  overflow-y: hidden;
  padding: 14px var(--pad-x) 14px 0;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  -ms-overflow-style: none;
  -webkit-overflow-scrolling: touch;
  scroll-padding-left: var(--pad-x);
}

.products__track::-webkit-scrollbar {
  display: none;
}

.products__slide {
  scroll-snap-align: start;
  display: flex;
}

.products__slide > * {
  flex: 1;
}

.products__foot {
  margin-top: clamp(28px, 3vw, 40px);
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: flex-start;
}

.products__foot-note {
  color: var(--ink-mute);
  font-size: 0.92rem;
  max-width: 560px;
}

@media (max-width: 768px) {
  .products__track {
    grid-auto-columns: minmax(280px, 88%);
    gap: 16px;
  }
  /* на мобильных стрелки прячем — пальцем удобнее свайпать */
  .products__arrow {
    display: none;
  }
  .products__edge {
    width: 40px;
  }
}
.supplies {
  background: var(--bg);
}

.supplies__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.supply {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 32px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  min-height: 220px;
  transition: transform var(--t-med) var(--ease),
    box-shadow var(--t-med) var(--ease),
    border-color var(--t-med) var(--ease);
  transition-delay: var(--delay, 0ms);
}

.supply:hover {
  transform: translateY(-4px);
  border-color: var(--ink);
  box-shadow: var(--shadow-md);
}

.supply__icon {
  width: 56px;
  height: 56px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  background: var(--ink);
  color: #fff;
  flex-shrink: 0;
  transition: background var(--t-fast) var(--ease);
}

.supply:hover .supply__icon {
  background: var(--red);
}

.supply__title {
  font-size: 1.35rem;
  letter-spacing: -0.015em;
}

.supply__desc {
  color: var(--ink-soft);
  font-size: 0.95rem;
  line-height: 1.55;
  margin-top: auto;
}

.supplies__cta {
  margin-top: clamp(28px, 3vw, 44px);
  display: flex;
  justify-content: center;
}

@media (max-width: 1024px) {
  .supplies__grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .supplies__grid {
    grid-template-columns: 1fr;
  }
  .supply {
    padding: 24px;
    min-height: 0;
  }
}
.manufacturers {
  background: linear-gradient(180deg, var(--bg) 0%, #ececef 100%);
}

.manufacturers__marquee {
  position: relative;
  margin-top: clamp(20px, 3vw, 36px);
  overflow: hidden;
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}

.manufacturers__track {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 14px;
  width: max-content;
  animation: marquee 42s linear infinite;
  /* GPU-промоут трека — translateX через transform не должен
     триггерить layout, но will-change гарантирует свой слой */
  will-change: transform;
  transform: translate3d(0, 0, 0);
}

@keyframes marquee {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}

.manufacturers__marquee:hover .manufacturers__track {
  animation-play-state: paused;
}

.manufacturers__item {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1rem, 1.4vw, 1.25rem);
  color: var(--ink);
  padding: 14px 24px;
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: 999px;
  white-space: nowrap;
  letter-spacing: 0.01em;
}

@media (prefers-reduced-motion: reduce) {
  .manufacturers__track {
    animation: none;
  }
}
.why {
  background: var(--bg-card);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.why__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--bg-card);
}

.why__card {
  padding: 32px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  gap: 12px;
  background: var(--bg-card);
  transition: background var(--t-fast) var(--ease);
  transition-delay: var(--delay, 0ms);
  min-height: 220px;
  position: relative;
}

.why__card:hover {
  background: #fafafa;
}

.why__card:nth-child(3n) {
  border-right: 0;
}

.why__card:nth-last-child(-n + 3) {
  border-bottom: 0;
}

.why__num {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 0.78rem;
  letter-spacing: 0.15em;
  color: var(--red);
}

.why__title {
  font-size: 1.2rem;
  letter-spacing: -0.015em;
}

.why__desc {
  color: var(--ink-soft);
  font-size: 0.95rem;
  line-height: 1.55;
  margin-top: auto;
}

@media (max-width: 1024px) {
  .why__grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .why__card:nth-child(3n) {
    border-right: 1px solid var(--line);
  }
  .why__card:nth-child(2n) {
    border-right: 0;
  }
  .why__card:nth-last-child(-n + 3) {
    border-bottom: 1px solid var(--line);
  }
  .why__card:nth-last-child(-n + 2) {
    border-bottom: 0;
  }
}

@media (max-width: 600px) {
  .why__grid {
    grid-template-columns: 1fr;
  }
  .why__card {
    border-right: 0 !important;
    border-bottom: 1px solid var(--line) !important;
    min-height: 0;
    padding: 24px;
  }
  .why__card:last-child {
    border-bottom: 0 !important;
  }
}
.workflow {
  background: var(--bg);
}

.workflow__list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  counter-reset: workflow;
}

.workflow__item {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  display: flex;
  flex-direction: column;
  gap: 24px;
  min-height: 220px;
  position: relative;
  transition: transform var(--t-med) var(--ease),
    border-color var(--t-med) var(--ease);
  transition-delay: var(--delay, 0ms);
}

.workflow__item:hover {
  transform: translateY(-4px);
  border-color: var(--ink);
}

.workflow__step {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 2.5rem;
  letter-spacing: -0.04em;
  color: var(--red);
  line-height: 1;
}

.workflow__text {
  color: var(--ink-soft);
  font-size: 1rem;
  line-height: 1.55;
  margin-top: auto;
}

.workflow__cta {
  margin-top: clamp(28px, 3vw, 44px);
  display: flex;
  justify-content: center;
}

@media (max-width: 1024px) {
  .workflow__list {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 540px) {
  .workflow__list {
    grid-template-columns: 1fr;
  }
  .workflow__item {
    min-height: 0;
    padding: 24px;
  }
}
.seoblock {
  background: var(--bg);
}

.seoblock__inner {
  display: grid;
  grid-template-columns: minmax(0, 360px) 1fr;
  gap: clamp(28px, 5vw, 64px);
  padding: clamp(32px, 4vw, 56px);
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
}

.seoblock__title {
  font-size: clamp(1.5rem, 2.2vw, 2rem);
  line-height: 1.1;
  margin: 0;
}

.seoblock__cols {
  display: flex;
  flex-direction: column;
  gap: 16px;
  color: var(--ink-soft);
  font-size: 1rem;
  line-height: 1.7;
}

@media (max-width: 900px) {
  .seoblock__inner {
    grid-template-columns: 1fr;
  }
}
.form-consent-wrap {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-consent {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  cursor: pointer;
  font-size: 0.86rem;
  line-height: 1.55;
  color: var(--ink-soft);
}

.form-consent__input {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.form-consent__box {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  border: 1.5px solid var(--line-strong);
  border-radius: 4px;
  background: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: transparent;
  margin-top: 1px;
  transition: border-color 120ms var(--ease), background 120ms var(--ease),
    color 120ms var(--ease);
}

.form-consent__input:checked + .form-consent__box {
  background: var(--red);
  border-color: var(--red);
  color: #fff;
}

.form-consent__input:focus-visible + .form-consent__box {
  outline: 2px solid var(--red);
  outline-offset: 2px;
}

.form-consent__text a {
  color: var(--ink);
  border-bottom: 1px solid var(--line-strong);
  padding-bottom: 1px;
  transition: color 120ms var(--ease), border-color 120ms var(--ease);
}

.form-consent__text a:hover {
  color: var(--red);
  border-bottom-color: var(--red);
}

.form-disclaimer {
  margin: 0;
  color: var(--ink-mute);
  font-size: 0.82rem;
  line-height: 1.5;
  flex: 1;
  min-width: 240px;
}

/* Состояние ошибки: пользователь жмёт «Отправить», галочка не стоит */
.form-consent--error .form-consent__box {
  border-color: var(--red);
  background: #fff5f5;
  animation: form-consent-shake 360ms var(--ease);
}

.form-consent--error .form-consent__text {
  color: var(--ink);
}

.form-consent__error {
  margin: 4px 0 0;
  padding: 8px 12px;
  background: #fff5f5;
  border: 1px solid #fecaca;
  border-radius: 6px;
  color: var(--red-deep);
  font-size: 0.84rem;
  font-weight: 600;
  line-height: 1.5;
  animation: form-consent-fade-in 260ms var(--ease);
}

@keyframes form-consent-shake {
  0%, 100% { transform: translateX(0); }
  20%, 60% { transform: translateX(-4px); }
  40%, 80% { transform: translateX(4px); }
}

@keyframes form-consent-fade-in {
  from { opacity: 0; transform: translateY(-4px); }
  to   { opacity: 1; transform: translateY(0); }
}

@media (prefers-reduced-motion: reduce) {
  .form-consent--error .form-consent__box,
  .form-consent__error {
    animation: none;
  }
}
.leadform {
  background: linear-gradient(180deg, var(--bg) 0%, #e9e9ec 100%);
}

.leadform__wrap {
  display: grid;
  grid-template-columns: minmax(0, 380px) minmax(0, 1fr);
  gap: clamp(28px, 4vw, 56px);
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  padding: clamp(28px, 4vw, 56px);
  box-shadow: var(--shadow-md);
}

.leadform__intro {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.leadform__title {
  font-size: clamp(1.6rem, 2.4vw, 2.2rem);
}

.leadform__lead {
  color: var(--ink-soft);
  font-size: 1rem;
  line-height: 1.6;
}

.leadform__bullets {
  list-style: none;
  margin: 12px 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.leadform__bullets li {
  padding-left: 26px;
  position: relative;
  color: var(--ink-soft);
  font-size: 0.95rem;
}

.leadform__bullets li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 8px;
  width: 14px;
  height: 2px;
  background: var(--red);
}

.leadform__form-wrap {
  min-width: 0;
}

.leadform__form {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.leadform__row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.leadform__field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  position: relative;
}

.leadform__field > span:first-child {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--ink-soft);
  letter-spacing: 0.01em;
}

.leadform__field input,
.leadform__field textarea {
  width: 100%;
  min-height: 48px;
  padding: 12px 14px;
  background: #fff;
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  font-size: 1rem;
  color: var(--ink);
  transition: border-color var(--t-fast) var(--ease),
    background var(--t-fast) var(--ease),
    box-shadow var(--t-fast) var(--ease);
}

.leadform__field textarea {
  resize: vertical;
  min-height: 96px;
  line-height: 1.5;
  font-family: inherit;
}

.leadform__field input:focus,
.leadform__field textarea:focus {
  outline: none;
  border-color: var(--ink);
  box-shadow: 0 0 0 4px rgba(24, 24, 27, 0.08);
}

.leadform__field.has-error input,
.leadform__field.has-error textarea {
  border-color: var(--red);
  background: #fff5f5;
}

.leadform__error {
  color: var(--red);
  font-size: 0.82rem;
}

.leadform__opt {
  color: var(--ink-mute);
  font-style: normal;
  font-weight: 400;
  font-size: 0.78rem;
  margin-left: 4px;
}

.leadform__req {
  color: var(--red);
  font-style: normal;
  font-weight: 700;
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-left: 8px;
  padding: 2px 7px;
  border: 1px solid var(--red);
  border-radius: 4px;
  vertical-align: middle;
}

.leadform__hint {
  font-size: 0.78rem;
  color: var(--ink-mute);
  line-height: 1.4;
}

.leadform__file {
  position: relative;
}

.leadform__file input[type='file'] {
  position: absolute;
  inset: 22px 0 0 0;
  opacity: 0;
  cursor: pointer;
  z-index: 2;
  padding: 0;
  border: 0;
}

.leadform__file-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 12px 14px;
  border: 1px dashed var(--line-strong);
  border-radius: 10px;
  background: #fafafa;
  color: var(--ink-soft);
  font-size: 0.95rem;
  text-align: center;
  transition: border-color var(--t-fast) var(--ease),
    color var(--t-fast) var(--ease);
}

.leadform__file:hover .leadform__file-btn {
  border-color: var(--ink);
  color: var(--ink);
}

.leadform__submit {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
  margin-top: 4px;
}

.leadform__submit .btn {
  min-width: 220px;
}

.leadform__legal {
  color: var(--ink-mute);
  font-size: 0.82rem;
  flex: 1;
  min-width: 240px;
  line-height: 1.45;
}

.leadform__state {
  padding: 18px 22px;
  border-radius: 14px;
  font-size: 0.95rem;
  line-height: 1.55;
}

.leadform__state--success {
  text-align: center;
  padding: 36px 28px;
  background: var(--green-soft);
  color: #166534;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  border: 1px solid #bbf7d0;
}

.leadform__state-icon {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--green);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  font-weight: 700;
}

.leadform__state--success h3 {
  font-size: 1.4rem;
}

.leadform__state--error {
  background: #fff5f5;
  border: 1px solid #fecaca;
  color: var(--red-deep);
}

@media (max-width: 900px) {
  .leadform__wrap {
    grid-template-columns: 1fr;
  }
  .leadform__row {
    grid-template-columns: 1fr;
  }
}
.contacts {
  background: var(--bg);
}

.contacts__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
  gap: 18px;
  align-items: stretch;
}

.contacts__info {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  padding: clamp(28px, 4vw, 44px);
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.contacts__legal {
  font-size: 1.4rem;
  letter-spacing: -0.015em;
}

.contacts__item {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.contacts__item:first-of-type {
  padding-top: 0;
  border-top: 0;
}

.contacts__item-label {
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-mute);
}

.contacts__item-value {
  color: var(--ink);
  font-size: 1rem;
}

.contacts__phones {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.contacts__phones a {
  display: flex;
  flex-direction: column;
  padding: 8px 0;
  border-radius: 6px;
  transition: color var(--t-fast) var(--ease);
}

.contacts__phones a:hover {
  color: var(--red);
}

.contacts__phones-label {
  font-size: 0.78rem;
  color: var(--ink-mute);
}

.contacts__phones-value {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.3rem;
  letter-spacing: -0.015em;
}

.contacts__email {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--ink);
  border-bottom: 1px solid var(--ink-mute);
  align-self: flex-start;
  padding-bottom: 2px;
  transition: color var(--t-fast) var(--ease),
    border-color var(--t-fast) var(--ease);
}

.contacts__email:hover {
  color: var(--red);
  border-bottom-color: var(--red);
}

.contacts__map {
  position: relative;
  background:
    radial-gradient(circle at 30% 40%, rgba(201, 42, 42, 0.08), transparent 50%),
    linear-gradient(180deg, #1e1e22 0%, #0c0c0e 100%);
  color: #fff;
  border-radius: var(--radius-xl);
  overflow: hidden;
  padding: clamp(28px, 4vw, 44px);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 340px;
  isolation: isolate;
}

.contacts__map-pin {
  align-self: flex-start;
  background: var(--red);
  color: #fff;
  width: 64px;
  height: 64px;
  border-radius: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 12px 30px rgba(201, 42, 42, 0.45);
  z-index: 2;
}

.contacts__map-body {
  z-index: 2;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.contacts__map-city {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 2rem;
  letter-spacing: -0.02em;
  margin: 0;
}

.contacts__map-address {
  font-size: 1.05rem;
  color: #d4d4d8;
  margin: 0;
}

.contacts__map-zip {
  font-size: 0.9rem;
  color: var(--metal);
  margin: 0 0 18px;
}

.contacts__map-btn {
  align-self: flex-start;
}

.contacts__map-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
  background-size: 40px 40px;
  pointer-events: none;
  z-index: 1;
  mask-image: radial-gradient(circle at 70% 30%, #000 0%, transparent 70%);
  -webkit-mask-image: radial-gradient(circle at 70% 30%, #000 0%, transparent 70%);
}

@media (max-width: 900px) {
  .contacts__grid {
    grid-template-columns: 1fr;
  }
  .contacts__map {
    min-height: 280px;
  }
}
.radio {
  position: fixed;
  right: 20px;
  bottom: 20px;
  bottom: calc(20px + env(safe-area-inset-bottom));
  z-index: 80;
  font-family: var(--font-sans);
  color: var(--ink);
  /* GPU-промоут чтобы радио не пересчитывалось при scroll */
  transform: translate3d(0, 0, 0);
  will-change: transform;
}

/* Touch-устройства: отключаем непрерывные box-shadow анимации
   (idle pulse, hint bob, equalizer) — это главный источник scroll-jank
   на iOS, когда виджет в нижнем углу постоянно рисуется поверх контента. */
@media (hover: none) and (pointer: coarse) {
  .radio--idle .radio__play {
    animation: none;
  }
  .radio__hint {
    animation: none;
  }
  .radio__status-dot {
    animation: none;
    opacity: 1;
  }
}

/* ===== Collapsed (pill) ===== */

.radio__pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 8px 6px 6px;
  background: var(--bg-card);
  border: 1px solid var(--line-strong);
  border-radius: 4px;
  max-width: 320px;
}

.radio--playing .radio__pill {
  border-color: var(--ink);
}

.radio--error .radio__pill {
  border-color: var(--red);
}

.radio__pill-info {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 6px 10px 6px 8px;
  background: transparent;
  border: 0;
  cursor: pointer;
  min-width: 0;
  color: inherit;
  text-align: left;
}

.radio__pill-icon {
  color: var(--ink-soft);
  flex-shrink: 0;
  display: inline-flex;
}

.radio--playing .radio__pill-icon {
  color: var(--red);
}

.radio__pill-text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
  min-width: 0;
}

.radio__pill-name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.86rem;
  letter-spacing: -0.005em;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.radio__pill-sub {
  font-size: 0.72rem;
  color: var(--ink-mute);
  margin-top: 2px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.radio__pill-sub--load {
  color: var(--red);
}

.radio__pill-error {
  margin-top: 8px;
  padding: 8px 12px;
  background: #fff;
  border: 1px solid var(--red);
  border-radius: 4px;
  font-size: 0.82rem;
  color: var(--red-deep);
  max-width: 320px;
}

.radio__pill-error button {
  background: none;
  border: 0;
  color: var(--red);
  font-weight: 700;
  text-decoration: underline;
  padding: 0;
  cursor: pointer;
}

/* ===== Expanded (panel) ===== */

.radio__panel {
  width: 320px;
  background: var(--bg-card);
  border: 1px solid var(--line-strong);
  border-radius: 4px;
  padding: 14px 16px 16px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.radio__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.radio__head-title {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-mute);
}

.radio__head-icon {
  color: var(--red);
  display: inline-flex;
}

/* ===== Stations ===== */

.radio__stations {
  border: 0;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.radio__station {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: 4px;
  cursor: pointer;
  background: #fff;
  min-height: 44px;
  transition: border-color 120ms var(--ease);
}

.radio__station:hover {
  border-color: var(--ink);
}

.radio__station input[type='radio'] {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.radio__station-radio {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  border: 1.5px solid var(--line-strong);
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: border-color 120ms var(--ease);
}

.radio__station-radio span {
  display: block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--red);
  transform: scale(0);
  transition: transform 120ms var(--ease);
}

.radio__station--active {
  border-color: var(--ink);
  background: #fafafa;
}

.radio__station--active .radio__station-radio {
  border-color: var(--red);
}

.radio__station--active .radio__station-radio span {
  transform: scale(1);
}

.radio__station-text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
  min-width: 0;
}

.radio__station-name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.94rem;
  letter-spacing: -0.005em;
}

.radio__station-sub {
  font-size: 0.78rem;
  color: var(--ink-mute);
  margin-top: 2px;
}

/* ===== Controls ===== */

.radio__controls {
  display: flex;
  align-items: center;
  gap: 12px;
}

.radio__play {
  width: 44px;
  height: 44px;
  border-radius: 4px;
  background: var(--ink);
  color: #fff;
  border: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 120ms var(--ease);
  flex-shrink: 0;
}

.radio__play:hover:not(:disabled) {
  background: var(--red);
}

.radio__play:disabled {
  opacity: 0.55;
  cursor: progress;
}

.radio--playing .radio__play {
  background: var(--red);
}

.radio__play--lg {
  width: 48px;
  height: 48px;
}

/* Idle pulse — лёгкое «дышит», пока пользователь ни разу не нажал Play.
   Тянет внимание к кнопке, не агрессивно. */
.radio--idle .radio__play {
  animation: radio-idle-pulse 1.8s var(--ease) infinite;
}

@keyframes radio-idle-pulse {
  0%, 100% {
    box-shadow: 0 0 0 0 rgba(201, 42, 42, 0.45);
  }
  50% {
    box-shadow: 0 0 0 8px rgba(201, 42, 42, 0);
  }
}

/* ===== Equalizer (видно вместо иконки паузы во время playing) ===== */

.radio__eq {
  display: inline-flex;
  align-items: flex-end;
  gap: 2px;
  height: 12px;
  width: 14px;
  color: #fff;
}

.radio__play--lg .radio__eq {
  height: 14px;
  width: 16px;
}

.radio__eq i {
  display: block;
  width: 3px;
  background: currentColor;
  border-radius: 1px;
  transform-origin: bottom center;
  animation: radio-eq-bar 720ms ease-in-out infinite alternate;
}

.radio__eq i:nth-child(1) {
  height: 70%;
  animation-duration: 820ms;
  animation-delay: -240ms;
}

.radio__eq i:nth-child(2) {
  height: 100%;
  animation-duration: 640ms;
  animation-delay: -380ms;
}

.radio__eq i:nth-child(3) {
  height: 80%;
  animation-duration: 760ms;
  animation-delay: -120ms;
}

@keyframes radio-eq-bar {
  0% {
    transform: scaleY(0.32);
  }
  100% {
    transform: scaleY(1);
  }
}

/* ===== Hint tooltip ===== */

.radio__hint {
  position: absolute;
  right: 0;
  bottom: calc(100% + 10px);
  background: var(--ink);
  color: #fff;
  padding: 8px 12px;
  border-radius: 4px;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: -0.005em;
  white-space: nowrap;
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.18);
  animation: radio-hint-bob 2400ms var(--ease) infinite;
  pointer-events: none;
  max-width: calc(100vw - 32px);
  z-index: 1;
}

.radio__hint::after {
  content: '';
  position: absolute;
  right: 18px;
  bottom: -5px;
  width: 10px;
  height: 10px;
  background: var(--ink);
  transform: rotate(45deg);
  border-radius: 1px;
}

@keyframes radio-hint-bob {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-3px);
  }
}

.radio__volume {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 8px;
}

.radio__volume-slider {
  flex: 1;
  display: flex;
  align-items: center;
}

.radio__volume-slider input[type='range'] {
  flex: 1;
  width: 100%;
  -webkit-appearance: none;
  appearance: none;
  background: transparent;
  margin: 0;
  cursor: pointer;
  height: 24px;
  min-height: 24px;
}

.radio__volume-slider input[type='range']::-webkit-slider-runnable-track {
  height: 2px;
  background: var(--line-strong);
  border-radius: 2px;
}

.radio__volume-slider input[type='range']::-moz-range-track {
  height: 2px;
  background: var(--line-strong);
  border-radius: 2px;
}

.radio__volume-slider input[type='range']::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 14px;
  height: 14px;
  background: var(--red);
  border: 0;
  border-radius: 50%;
  margin-top: -6px;
  cursor: pointer;
}

.radio__volume-slider input[type='range']::-moz-range-thumb {
  width: 14px;
  height: 14px;
  background: var(--red);
  border: 0;
  border-radius: 50%;
  cursor: pointer;
}

/* ===== Icon button ===== */

.radio__icon-btn {
  width: 32px;
  height: 32px;
  min-width: 32px;
  background: transparent;
  border: 0;
  border-radius: 4px;
  color: var(--ink-soft);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 120ms var(--ease), color 120ms var(--ease);
  flex-shrink: 0;
}

.radio__icon-btn:hover {
  background: var(--bg-soft);
  color: var(--ink);
}

/* ===== Status / error ===== */

.radio__status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.78rem;
  color: var(--ink-mute);
  margin-top: -4px;
}

.radio__status-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--red);
  animation: radio-pulse 1.2s ease-in-out infinite;
}

@keyframes radio-pulse {
  0%, 100% { opacity: 0.35; }
  50% { opacity: 1; }
}

.radio__error {
  background: #fff5f5;
  border: 1px solid #fecaca;
  border-radius: 4px;
  padding: 10px 12px;
  font-size: 0.82rem;
  color: var(--red-deep);
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.radio__error p {
  margin: 0;
  line-height: 1.45;
}

.radio__retry {
  align-self: flex-start;
  background: var(--red);
  color: #fff;
  border: 0;
  border-radius: 4px;
  padding: 8px 14px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.84rem;
  cursor: pointer;
  min-height: 36px;
}

.radio__retry:hover {
  background: var(--red-deep);
}

/* ===== Focus visible ===== */

.radio button:focus-visible,
.radio input[type='range']:focus-visible {
  outline: 2px solid var(--red);
  outline-offset: 2px;
}

.radio__station input[type='radio']:focus-visible + .radio__station-radio {
  outline: 2px solid var(--red);
  outline-offset: 3px;
  border-radius: 50%;
}

/* ===== Mobile ===== */

@media (max-width: 540px) {
  /* Радио остаётся справа компактной пилюлей — слева сидит cookie-плашка,
     не должны перекрывать друг друга. */
  .radio {
    right: 12px;
    left: auto;
    bottom: calc(12px + env(safe-area-inset-bottom));
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    max-width: calc(100vw - 24px);
  }
  .radio__pill {
    max-width: min(280px, calc(100vw - 24px));
  }
  .radio__pill-info {
    flex: 1;
    min-width: 0;
  }
  .radio__panel {
    width: min(300px, calc(100vw - 24px));
  }
  .radio__volume-slider {
    display: none;
  }
  .radio__volume {
    flex: 0 0 auto;
  }
}

@media (max-width: 380px) {
  .radio__pill {
    max-width: 220px;
  }
  .radio__pill-name {
    font-size: 0.82rem;
  }
  .radio__pill-sub {
    font-size: 0.68rem;
  }
}

@media (max-width: 540px) {
  .radio__hint {
    right: 0;
    left: 0;
    text-align: center;
    white-space: normal;
  }
  .radio__hint::after {
    right: auto;
    left: 50%;
    transform: translateX(-50%) rotate(45deg);
  }
}

@media (prefers-reduced-motion: reduce) {
  .radio__status-dot,
  .radio--idle .radio__play,
  .radio__hint,
  .radio__eq i {
    animation: none;
  }
  .radio__station-radio span,
  .radio__station,
  .radio__icon-btn {
    transition: none;
  }
}
.cookies {
  position: fixed;
  left: 20px;
  right: auto;
  bottom: 20px;
  bottom: calc(20px + env(safe-area-inset-bottom));
  width: min(380px, calc(100vw - 40px));
  z-index: 90;
  padding: 16px 18px;
  background: rgba(15, 15, 17, 0.95);
  color: #fff;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.4);
  font-family: var(--font-sans);
  transform: translate3d(0, 0, 0);
  will-change: transform;
}

@media (hover: none) and (pointer: coarse), (max-width: 720px) {
  /* На iOS Safari blur даёт scroll-jank. Делаем полностью непрозрачный
     тёмный фон — визуально почти идентично, но без репэйнтов */
  .cookies {
    background: #18181b;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }
}

.cookies__inner {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.cookies__text {
  margin: 0;
  font-size: 0.84rem;
  line-height: 1.5;
  color: #e4e4e7;
}

.cookies__text strong {
  color: #fff;
  font-weight: 700;
}

.cookies__link {
  color: #fff;
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
}

.cookies__link:hover {
  color: var(--red);
}

.cookies__buttons {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.cookies__buttons .btn {
  min-height: 36px;
  padding: 0 12px;
  font-size: 0.76rem;
  flex: 1 1 auto;
  white-space: nowrap;
}

.cookies__buttons .btn--ghost {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.32);
}

.cookies__buttons .btn--ghost:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: #fff;
}

@media (max-width: 540px) {
  .cookies {
    left: 12px;
    right: auto;
    bottom: calc(12px + env(safe-area-inset-bottom));
    width: min(300px, calc(100vw - 24px));
    padding: 14px 16px;
  }
  .cookies__buttons .btn {
    font-size: 0.72rem;
    padding: 0 10px;
    min-height: 34px;
  }
  .cookies__text {
    font-size: 0.8rem;
  }
}

@media (max-width: 380px) {
  .cookies {
    width: calc(100vw - 24px);
  }
}
