/* =========================================================
   TREAGRA SAFETY — стиль по мотивам qu.ai
   чёрный фон · красное свечение · широкая типографика · «терминальные» подписи
   ========================================================= */

:root {
  --bg: #050505;
  --bg-2: #0d0b0b;
  --panel: #120f0f;
  --ink: #ffffff;
  --muted: rgba(255, 255, 255, .62);
  --dim: rgba(255, 255, 255, .38);
  --line: rgba(255, 255, 255, .16);
  --line-strong: rgba(255, 255, 255, .7);
  --red: #e3191f;
  --red-hot: #ff3a24;
  --red-deep: #5c0507;
  --glow: rgba(227, 25, 31, .55);

  --f-display: "Unbounded", "Arial Black", sans-serif;
  --f-body: "Manrope", system-ui, sans-serif;
  --f-mono: "JetBrains Mono", ui-monospace, monospace;

  --gutter: clamp(16px, 2.6vw, 40px);
  --ease: cubic-bezier(.2, .7, .1, 1);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--f-body);
  font-size: 16px;
  line-height: 1.55;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; }
::selection { background: var(--red); color: #fff; }

.sr-only {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap;
}
.mono {
  font-family: var(--f-mono);
  text-transform: uppercase;
  letter-spacing: .06em;
}
.wrap { width: 100%; max-width: 1480px; margin: 0 auto; padding: 0 var(--gutter); }
.dot {
  display: inline-block; width: 10px; height: 10px; background: var(--red);
  box-shadow: 0 0 12px var(--glow); flex: none;
}

/* ---------- pills (кнопки-капсулы как на qu.ai) ---------- */
.pill {
  --h: 38px;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: var(--h); padding: 0 22px;
  border: 1.5px solid var(--line-strong);
  border-radius: 999px;
  background: rgba(0, 0, 0, .25);
  backdrop-filter: blur(6px);
  font-family: var(--f-mono); font-weight: 500; font-size: 13px;
  letter-spacing: .08em; text-transform: uppercase; white-space: nowrap;
  transition: background .3s var(--ease), border-color .3s var(--ease), color .3s, box-shadow .3s;
}
.pill:hover, .pill:focus-visible {
  background: var(--red); border-color: var(--red);
  box-shadow: 0 0 24px var(--glow); outline: none;
}
.pill--icon { width: 52px; padding: 0; }
.pill--icon svg { width: 18px; height: 18px; fill: currentColor; }
.pill--light { margin-top: 28px; }
.pill--red { background: var(--red); border-color: var(--red); --h: 52px; font-size: 14px; }
.pill--red:hover { background: var(--red-hot); border-color: var(--red-hot); }
.pill.is-active { background: #fff; color: #000; border-color: #fff; box-shadow: none; }

/* ---------- header ---------- */
.hdr {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  padding: 22px var(--gutter);
  transition: background .4s, padding .4s, backdrop-filter .4s;
}
.hdr.is-scrolled {
  padding-top: 12px; padding-bottom: 12px;
  background: linear-gradient(to bottom, rgba(5, 5, 5, .92), rgba(5, 5, 5, .7));
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.hdr__brand img { height: 58px; width: auto; filter: drop-shadow(0 0 14px rgba(227, 25, 31, .45)); transition: height .4s; }
.hdr.is-scrolled .hdr__brand img { height: 46px; }
.hdr__nav { display: flex; gap: 10px; align-items: center; margin-left: auto; }
.hdr__burger { margin-left: -14px; }
.hdr__burger { display: none; flex-direction: column; gap: 5px; }
.hdr__burger span { display: block; width: 22px; height: 1.5px; background: currentColor; transition: transform .3s, opacity .3s; }
.hdr__burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.hdr__burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.hdr__burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

.menu {
  position: fixed; inset: 0; z-index: 40;
  background: radial-gradient(120% 80% at 50% 110%, var(--red-deep), var(--bg) 60%);
  display: flex; flex-direction: column; justify-content: center;
  padding: 120px var(--gutter) 40px;
  animation: menuIn .4s var(--ease);
}
.menu[hidden] { display: none; }
@keyframes menuIn { from { opacity: 0; } }
.menu__list { display: flex; flex-direction: column; gap: 6px; }
.menu__list a {
  font-family: var(--f-display); font-weight: 700; font-size: clamp(28px, 7vw, 56px);
  text-transform: uppercase; line-height: 1.2; display: flex; align-items: baseline; gap: 16px;
  border-bottom: 1px solid var(--line); padding: 10px 0;
}
.menu__list a span { font-family: var(--f-mono); font-size: 13px; color: var(--red); font-weight: 500; }
.menu__list a:hover { color: var(--red-hot); }
.menu__foot { margin-top: auto; display: flex; flex-direction: column; gap: 6px; font-size: 13px; color: var(--muted); }

/* ---------- layers indicator ---------- */
.layers {
  position: fixed; right: calc(var(--gutter) + 4px); top: 50%; z-index: 30;
  transform: translateY(-50%);
  display: flex; flex-direction: column; align-items: center;
}
.layers button {
  width: 54px; height: 20px; margin-top: -8px; padding: 0; border: 0; background: none; position: relative;
}
.layers button::before {
  content: ""; position: absolute; left: 50%; top: 50%;
  width: 36px; height: 36px;
  border: 1.5px solid rgba(255, 255, 255, .75);
  transform: translate(-50%, -50%) scaleY(.5) rotate(45deg);
  transition: border-color .3s, background .3s, box-shadow .3s;
}
.layers button:hover::before { border-color: var(--red-hot); }
.layers button.is-active::before { border-color: var(--red); background: rgba(227, 25, 31, .25); box-shadow: 0 0 14px var(--glow); }

/* =========================================================
   HERO
   ========================================================= */
.hero {
  position: relative; min-height: 100vh; min-height: 100svh;
  overflow: hidden; isolation: isolate;
  background: radial-gradient(60% 65% at 50% 38%, #4d0607 0%, #220304 45%, #050101 80%);
}
.hero__bg { position: absolute; inset: 0; z-index: -2; isolation: isolate; mix-blend-mode: screen; opacity: .4; overflow: hidden; }
.hero__bg img {
  width: 100%; height: 100%; object-fit: cover; object-position: 80% 50%;
  filter: grayscale(1) brightness(.6) contrast(1.4);
  transform: scale(1.08);
  animation: drift 26s ease-in-out infinite alternate;
}
.hero__bg::after { content: ""; position: absolute; inset: 0; background: #ff2a1a; mix-blend-mode: multiply; }
@keyframes drift { to { transform: scale(1.16) translate(-2%, 1%); } }
.hero__canvas { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; }
.hero__grain {
  position: absolute; inset: 0; z-index: -1; pointer-events: none; opacity: .22;
  background:
    repeating-linear-gradient(to bottom, rgba(0, 0, 0, .35) 0 1px, transparent 1px 3px),
    radial-gradient(ellipse at center, transparent 45%, rgba(0, 0, 0, .9) 100%);
}
.hero::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 45%; z-index: -1;
  background: linear-gradient(to top, rgba(5, 5, 5, .95), transparent);
}

.hero__content {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 0 var(--gutter) 28px;
}
.hero__title {
  margin: 0; font-family: var(--f-display); font-weight: 800;
  font-size: clamp(34px, 7.3vw, 140px);
  line-height: .95; letter-spacing: -.01em; white-space: nowrap;
  text-shadow: 0 0 40px rgba(227, 25, 31, .35);
}
.hero__title { animation: titleIn 1.4s var(--ease) both .3s; }
@keyframes titleIn { from { opacity: 0; transform: translateY(40px); filter: blur(10px); } }

.hero__rail {
  display: flex; align-items: center; gap: 28px;
  margin-top: 18px; font-size: clamp(11px, 1.05vw, 17px); font-weight: 500;
}
.hero__rail i { flex: 1; height: 1px; background: var(--line-strong); transform-origin: left; animation: line 1.2s var(--ease) both 1s; }
@keyframes line { from { transform: scaleX(0); } }

.hero__bottom {
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: end; gap: 24px;
  margin-top: clamp(28px, 6vh, 64px);
}
.hero__term { display: flex; align-items: center; gap: 22px; font-size: 13px; }
.hero__term ul { list-style: none; margin: 0; padding: 0; line-height: 1.7; }
.hero__term .is-red { color: var(--red-hot); }
.hero__globe {
  width: 66px; height: 66px; flex: none;
  fill: none; stroke: var(--red); stroke-width: 1.4;
  filter: drop-shadow(0 0 8px var(--glow));
  animation: spin 18s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.hero__skip { display: flex; flex-direction: column; align-items: center; gap: 2px; font-size: 12px; }
.hero__skip svg { width: 22px; height: 22px; fill: none; stroke: #fff; stroke-width: 1.6; animation: bob 1.8s ease-in-out infinite; }
@keyframes bob { 50% { transform: translateY(5px); } }
.hero__lead {
  justify-self: end; max-width: 620px; margin: 0;
  display: flex; gap: 16px; align-items: flex-start;
  font-size: clamp(12px, 1.1vw, 17px); line-height: 1.6;
}
.hero__lead .dot { margin-top: .55em; }

/* =========================================================
   CHAPTERS — закреплённая сцена с переключением категорий
   ========================================================= */
.chapters { position: relative; height: calc(var(--n) * 100vh); }
.chapters__sticky {
  position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden;
  display: grid; grid-template-columns: 1fr minmax(320px, 40%);
}
.chapters__media { position: absolute; inset: 0; background: var(--red-deep); }
.ch-img {
  position: absolute; inset: 0; margin: 0;
  opacity: 0; transform: scale(1.12);
  transition: opacity 1s var(--ease), transform 1.6s var(--ease);
}
.ch-img.is-active { opacity: 1; transform: scale(1); }
.ch-img img {
  width: 100%; height: 100%; object-fit: cover; object-position: 70% 30%;
  filter: grayscale(1) contrast(1.25) brightness(.95);
}
.ch-img--square img { object-fit: contain; object-position: 30% 50%; background: #fff; }
.chapters__tint {
  position: absolute; inset: 0;
  background: linear-gradient(115deg, #ff2a1a 0%, #c10f14 45%, #4a0204 100%);
  mix-blend-mode: multiply;
}
.chapters__scan {
  position: absolute; inset: 0; pointer-events: none;
  background:
    linear-gradient(to left, rgba(5, 5, 5, .92) 0%, rgba(5, 5, 5, .55) 38%, transparent 60%),
    repeating-linear-gradient(to bottom, rgba(0, 0, 0, .22) 0 1px, transparent 1px 4px);
}
.chapters__texts {
  position: relative; grid-column: 2; z-index: 2;
  padding: 130px calc(var(--gutter) + 70px) 60px 0;
  display: flex; flex-direction: column; justify-content: center;
}
.ch-text {
  position: absolute; left: 0; right: calc(var(--gutter) + 70px); top: 50%;
  transform: translateY(-46%);
  opacity: 0; visibility: hidden;
  transition: opacity .7s var(--ease), transform .9s var(--ease), visibility 0s linear .7s;
}
.ch-text.is-active {
  opacity: 1; visibility: visible; transform: translateY(-54%);
  transition: opacity .8s var(--ease) .15s, transform 1s var(--ease) .15s, visibility 0s;
}
.ch-text h2 {
  margin: 0; font-family: var(--f-display); font-weight: 800;
  font-size: clamp(30px, 3.6vw, 64px); line-height: 1.02;
}
.ch-kicker { margin: 26px 0 0; font-size: clamp(13px, 1.1vw, 17px); font-weight: 500; }
.ch-body {
  display: flex; gap: 16px; margin: 40px 0 0; max-width: 560px;
  font-size: clamp(15px, 1.15vw, 19px); line-height: 1.6; color: rgba(255, 255, 255, .9);
}
.ch-body .dot { margin-top: .5em; }
.ch-text .pill { margin-left: 26px; }
.chapters__counter {
  position: absolute; left: 0; bottom: 48px;
  display: flex; align-items: baseline; gap: 24px;
}
.chapters__counter span { font-size: 15px; font-weight: 500; }
.chapters__counter strong {
  font-family: var(--f-display); font-weight: 800; font-size: clamp(40px, 4.5vw, 78px); line-height: 1;
}
.chapters__counter em { font-style: normal; color: var(--ink); }
.chapters__counter strong { color: rgba(255, 255, 255, .35); }

/* =========================================================
   Общие секции
   ========================================================= */
section { position: relative; }
.eyebrow { margin: 0 0 18px; color: var(--red-hot); font-size: 13px; font-weight: 500; }
.eyebrow::before { content: "> "; }
.h2 {
  margin: 0; font-family: var(--f-display); font-weight: 800;
  font-size: clamp(30px, 4.6vw, 80px); line-height: 1.02; letter-spacing: -.01em;
}
.sub { margin: 22px 0 0; font-size: clamp(14px, 1.3vw, 20px); font-weight: 500; }

.reveal { opacity: 0; transform: translateY(36px); transition: opacity .9s var(--ease), transform 1s var(--ease); }
.reveal.is-in { opacity: 1; transform: none; }

/* ---------- start / steps ---------- */
.start {
  padding: clamp(100px, 16vh, 180px) 0;
  background:
    radial-gradient(60% 50% at 85% 0%, rgba(227, 25, 31, .18), transparent 70%),
    var(--bg);
}
.start .h2 { max-width: 15ch; }
.steps {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 0;
  margin-top: clamp(50px, 8vh, 90px);
  border-top: 1px solid var(--line);
}
.step {
  padding: 34px 34px 40px 0; border-right: 1px solid var(--line);
  transition: background .4s;
}
.step + .step { padding-left: 34px; }
.step:last-child { border-right: 0; }
.step:nth-child(2) { transition-delay: .1s; }
.step:nth-child(3) { transition-delay: .2s; }
.step__num {
  font-family: var(--f-display); font-weight: 800; font-size: 64px; line-height: 1;
  color: transparent; -webkit-text-stroke: 1.5px var(--red);
}
.step h3 { margin: 26px 0 14px; font-family: var(--f-display); font-size: 24px; font-weight: 700; }
.step p { margin: 0; color: var(--muted); max-width: 40ch; }
.tags { list-style: none; padding: 0; margin: 30px 0 0; display: grid; gap: 10px; }
.tags li {
  display: flex; justify-content: space-between; align-items: center;
  padding: 12px 18px; border: 1px solid var(--line); border-radius: 999px;
  transition: border-color .3s, background .3s;
}
.tags li:hover { border-color: var(--red); background: rgba(227, 25, 31, .08); }
.tags span { font-family: var(--f-display); font-weight: 700; font-size: 13px; text-transform: uppercase; }
.tags em { font-style: normal; font-family: var(--f-mono); font-size: 11px; color: var(--dim); text-transform: uppercase; letter-spacing: .08em; }

/* ---------- catalog ---------- */
.catalog { padding: clamp(80px, 12vh, 140px) 0; background: var(--bg-2); border-top: 1px solid var(--line); }
.catalog__head {
  display: flex; justify-content: space-between; align-items: flex-end; gap: 30px; flex-wrap: wrap;
  margin-bottom: 50px;
}
.filters { display: flex; flex-wrap: wrap; gap: 8px; }
.grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.card {
  position: relative; display: flex; flex-direction: column;
  background: var(--panel); border: 1px solid var(--line); border-radius: 18px; overflow: hidden;
  transition: border-color .35s, transform .5s var(--ease), box-shadow .4s;
  animation: cardIn .6s var(--ease) both;
}
@keyframes cardIn { from { opacity: 0; transform: translateY(24px); } }
.card:hover { border-color: var(--red); transform: translateY(-6px); box-shadow: 0 20px 50px -20px var(--glow); }
.card__media {
  position: relative; aspect-ratio: 1; background: #ededed; overflow: hidden;
}
.card__media img {
  width: 100%; height: 100%; object-fit: contain; padding: 8%;
  mix-blend-mode: multiply;
  transition: transform .8s var(--ease);
}
.card:hover .card__media img { transform: scale(1.07); }
.card__tag {
  position: absolute; left: 12px; top: 12px;
  padding: 5px 11px; border-radius: 999px; background: #050505; color: #fff;
  font-family: var(--f-mono); font-size: 10px; letter-spacing: .1em; text-transform: uppercase;
}
.card__sku {
  position: absolute; right: 12px; top: 12px;
  font-family: var(--f-mono); font-size: 10px; color: #555; letter-spacing: .08em;
}
.card__body { padding: 20px 20px 22px; display: flex; flex-direction: column; flex: 1; }
.card__body h3 { margin: 0; font-size: 16px; font-weight: 700; line-height: 1.35; }
.card__body p { margin: 8px 0 0; font-size: 13.5px; color: var(--muted); flex: 1; }
.card__cta {
  margin-top: 18px; align-self: flex-start;
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--f-mono); font-size: 12px; letter-spacing: .08em; text-transform: uppercase;
  color: var(--red-hot); background: none; border: 0; padding: 0;
}
.card__cta::after { content: "→"; transition: transform .3s; }
.card:hover .card__cta::after { transform: translateX(5px); }
.catalog__note { margin: 40px 0 0; font-size: 12px; color: var(--dim); }

/* ---------- numbers ---------- */
.numbers {
  padding: clamp(90px, 14vh, 160px) 0;
  background:
    radial-gradient(50% 60% at 10% 100%, rgba(227, 25, 31, .2), transparent 70%),
    var(--bg);
}
.numbers__grid {
  display: grid; grid-template-columns: repeat(4, 1fr); margin-top: 60px;
  border-top: 1px solid var(--line); border-left: 1px solid var(--line);
}
.num { padding: 34px 28px 38px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.num:nth-child(2) { transition-delay: .08s; } .num:nth-child(3) { transition-delay: .16s; } .num:nth-child(4) { transition-delay: .24s; }
.num strong {
  display: block; font-family: var(--f-display); font-weight: 800;
  font-size: clamp(48px, 5.4vw, 92px); line-height: 1; color: var(--ink);
  text-shadow: 0 0 30px rgba(227, 25, 31, .4);
}
.num span { display: block; margin-top: 16px; font-size: 13px; color: var(--red-hot); }
.num p { margin: 10px 0 0; font-size: 14px; color: var(--muted); }

/* ---------- industries ---------- */
.industries { padding: clamp(90px, 14vh, 160px) 0; background: var(--bg-2); border-top: 1px solid var(--line); }
.ind { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 60px; }
.ind__item {
  position: relative; padding: 30px 28px 34px; min-height: 230px;
  border: 1px solid var(--line); border-radius: 18px; overflow: hidden;
  background: linear-gradient(160deg, rgba(255, 255, 255, .03), transparent);
  transition: border-color .4s, transform .5s var(--ease);
}
.ind__item::before {
  content: ""; position: absolute; inset: auto -30% -70% -30%; height: 120%;
  background: radial-gradient(closest-side, rgba(227, 25, 31, .55), transparent);
  opacity: 0; transition: opacity .5s;
}
.ind__item:hover { border-color: var(--red); transform: translateY(-4px); }
.ind__item:hover::before { opacity: 1; }
.ind__item > * { position: relative; }
.ind__item span { font-size: 12px; color: var(--red-hot); }
.ind__item h3 { margin: 40px 0 12px; font-family: var(--f-display); font-weight: 700; font-size: clamp(19px, 1.7vw, 26px); text-transform: uppercase; }
.ind__item p { margin: 0; color: var(--muted); font-size: 14.5px; }

/* ---------- trust marquee ---------- */
.trust { padding: 70px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); overflow: hidden; }
.trust .eyebrow::before { content: ""; }
.marquee { display: flex; width: max-content; margin-top: 20px; }
.marquee__track {
  display: flex; align-items: center; gap: 44px; padding-right: 44px; flex: none;
  animation: marquee 38s linear infinite;
}
.marquee__track span {
  font-family: var(--f-display); font-weight: 700; text-transform: uppercase;
  font-size: clamp(26px, 3.6vw, 56px); white-space: nowrap;
  color: transparent; -webkit-text-stroke: 1px rgba(255, 255, 255, .55);
  transition: color .3s;
}
.marquee__track span:hover { color: var(--red); -webkit-text-stroke-color: var(--red); }
.marquee__track b { width: 14px; height: 14px; background: var(--red); transform: rotate(45deg); flex: none; box-shadow: 0 0 12px var(--glow); }
.marquee:hover .marquee__track { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(-100%); } }

/* ---------- contact ---------- */
.contact { padding: clamp(90px, 14vh, 170px) 0; overflow: hidden; }
.contact__glow {
  position: absolute; left: 50%; bottom: -40%; width: 140%; height: 90%;
  transform: translateX(-50%);
  background: radial-gradient(closest-side, rgba(227, 25, 31, .5), rgba(92, 5, 7, .25) 55%, transparent);
  pointer-events: none;
}
.contact__inner { position: relative; display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(40px, 6vw, 110px); align-items: start; }
.contact__lead { margin: 28px 0 0; color: var(--muted); font-size: 17px; max-width: 46ch; }
.contact__list { list-style: none; padding: 0; margin: 40px 0 0; font-size: 14px; }
.contact__list li { display: grid; grid-template-columns: 130px 1fr; gap: 16px; padding: 16px 0; border-top: 1px solid var(--line); }
.contact__list li span { color: var(--dim); }
.contact__list a:hover { color: var(--red-hot); }

.form {
  padding: 34px; border: 1px solid var(--line); border-radius: 24px;
  background: rgba(10, 8, 8, .78); backdrop-filter: blur(12px);
  display: grid; gap: 16px;
}
.form__head { display: flex; justify-content: space-between; font-size: 12px; color: var(--dim); padding-bottom: 6px; }
.form__head .is-ok { color: #3ddc84; }
.form__head .is-err { color: var(--red-hot); }
.field { display: grid; gap: 8px; }
.field span { font-size: 11px; color: var(--muted); }
.field input, .field textarea {
  width: 100%; padding: 15px 18px; border-radius: 14px;
  background: rgba(255, 255, 255, .04); border: 1px solid var(--line); color: var(--ink);
  font: inherit; font-size: 15px; resize: vertical;
  transition: border-color .3s, background .3s, box-shadow .3s;
}
.field input::placeholder, .field textarea::placeholder { color: rgba(255, 255, 255, .3); }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--red); background: rgba(227, 25, 31, .06); box-shadow: 0 0 0 4px rgba(227, 25, 31, .15); }
.field.is-invalid input { border-color: var(--red-hot); }
.check { display: flex; gap: 12px; align-items: flex-start; font-size: 13px; color: var(--muted); cursor: pointer; }
.check input { accent-color: var(--red); width: 18px; height: 18px; margin: 1px 0 0; flex: none; }
.check.is-invalid { color: var(--red-hot); }
.form .pill--red { width: 100%; margin-top: 6px; }

/* ---------- footer ---------- */
.ftr { padding: 70px 0 30px; border-top: 1px solid var(--line); background: #030303; }
.ftr__inner { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 40px; }
.ftr__logo { width: 180px; height: auto; }
.ftr__col { display: flex; flex-direction: column; gap: 10px; font-size: 13px; color: var(--muted); }
.ftr__col a:hover { color: var(--red-hot); }
.ftr__label { color: var(--ink); margin-bottom: 8px; }
.ftr__bottom {
  display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap;
  margin-top: 60px; padding-top: 24px; border-top: 1px solid var(--line);
  font-size: 11px; color: var(--dim);
}

/* =========================================================
   Адаптив
   ========================================================= */
@media (max-width: 1640px) {
  .layers { display: none; }
}

@media (max-width: 1180px) {
  .hdr__nav .pill:not(.pill--icon) { display: none; }
  .hdr__burger { display: inline-flex; }
  .grid { grid-template-columns: repeat(3, 1fr); }
  .numbers__grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 900px) {
  .layers { display: none; }
  .hero__bottom { grid-template-columns: 1fr; gap: 22px; }
  .hero__skip { display: none; }
  .hero__lead { justify-self: start; }
  .hero__rail { gap: 12px; }

  .chapters__sticky { grid-template-columns: 1fr; }
  .chapters__scan {
    background:
      linear-gradient(to top, rgba(5, 5, 5, .96) 0%, rgba(5, 5, 5, .75) 45%, rgba(5, 5, 5, .1) 75%),
      repeating-linear-gradient(to bottom, rgba(0, 0, 0, .22) 0 1px, transparent 1px 4px);
  }
  .chapters__texts { grid-column: 1; padding: 0 var(--gutter); }
  .ch-text { left: var(--gutter); right: var(--gutter); top: auto; bottom: 120px; transform: translateY(20px); }
  .ch-text.is-active { transform: none; }
  .ch-body { margin-top: 20px; }
  .ch-text .pill { margin-left: 0; margin-top: 20px; }
  .chapters__counter { left: var(--gutter); bottom: 34px; }
  .ch-img--square img { object-position: 50% 20%; }

  .steps { grid-template-columns: 1fr; }
  .step, .step + .step { padding: 30px 0; border-right: 0; border-bottom: 1px solid var(--line); }
  .grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .ind { grid-template-columns: 1fr 1fr; }
  .contact__inner { grid-template-columns: 1fr; }
  .ftr__inner { grid-template-columns: 1fr 1fr; }
  .ftr__logo { grid-column: 1 / -1; }
}

@media (max-width: 560px) {
  .hdr { padding-top: 14px; padding-bottom: 14px; }
  .hdr__brand img { height: 44px; }
  .hdr__nav .pill--icon:last-child { display: none; }
  .pill--icon { width: 46px; }
  .hero__title { white-space: normal; font-size: clamp(40px, 13vw, 64px); }
  .hero__rail span:nth-of-type(2), .hero__rail i:nth-of-type(2) { display: none; }
  .hero__term { gap: 14px; font-size: 11px; }
  .hero__globe { width: 48px; height: 48px; }
  .hero__lead { font-size: 12px; gap: 12px; }
  .grid { grid-template-columns: 1fr 1fr; gap: 10px; }
  .card { border-radius: 14px; }
  .card__body { padding: 14px 14px 16px; }
  .card__body h3 { font-size: 14px; }
  .card__body p { display: none; }
  .card__sku { display: none; }
  .ind { grid-template-columns: 1fr; }
  .ind__item { min-height: 0; }
  .ind__item h3 { margin-top: 22px; }
  .numbers__grid { grid-template-columns: 1fr 1fr; }
  .num { padding: 24px 16px 26px; }
  .num p { font-size: 13px; }
  .form { padding: 22px; }
  .contact__list li { grid-template-columns: 1fr; gap: 4px; }
  .ftr__inner { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001s !important; animation-iteration-count: 1 !important; transition-duration: .001s !important; }
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; }
}
