/* =========================================================
   Ai Industrial — landing
   Тёмная индустриальная тема, один янтарный акцент,
   IBM Plex Sans / IBM Plex Mono
   ========================================================= */

:root {
  /* поверхности */
  --bg:        #0a0a0b;
  --bg-2:      #111113;
  --surface:   #16161a;
  --surface-2: #1d1d22;
  --line:      #2a2a31;
  --line-soft: #1f1f25;

  /* светлая секция */
  --paper:     #f4f4f2;
  --paper-2:   #e8e8e4;
  --paper-line:#d3d3cd;
  --paper-ink: #111113;
  --paper-mut: #5a5a60;

  /* текст */
  --ink:       #ffffff;
  --ink-2:     #c8c8ce;
  --mut:       #8d8d96;
  --mut-2:     #6a6a73;

  /* акцент — один, янтарный */
  --accent:      #ffb400;
  --accent-2:    #ff7a1a;
  --accent-ink:  #17120a;
  --accent-soft: rgba(255, 180, 0, 0.12);
  --accent-line: rgba(255, 180, 0, 0.34);

  /* тип */
  --sans: 'IBM Plex Sans', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --mono: 'IBM Plex Mono', ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;

  /* ритм */
  --wrap: 1200px;
  --gut: clamp(20px, 5vw, 48px);
  --sec: clamp(64px, 9vw, 118px);
  --r: 3px;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 78px; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3 { margin: 0; font-weight: 700; line-height: 1.14; letter-spacing: -0.015em; text-wrap: balance; }
p { margin: 0; }
a { color: inherit; text-decoration: none; }
b, strong { font-weight: 600; }
ul, ol, dl, dd { margin: 0; padding: 0; list-style: none; }

.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gut); }

.skip {
  position: absolute; left: -9999px; top: 0; z-index: 100;
  background: var(--accent); color: var(--accent-ink); padding: 12px 18px; font-weight: 600;
}
.skip:focus { left: 12px; top: 12px; }

:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 2px; }

/* ================= NAV ================= */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(10, 10, 11, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line-soft);
}
.nav__row { display: flex; align-items: center; gap: 24px; min-height: 68px; }

.brand { display: flex; align-items: center; gap: 11px; margin-right: auto; }
.brand__mark {
  width: 26px; height: 26px; flex: none;
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-2) 100%);
  clip-path: polygon(0 0, 100% 0, 100% 68%, 68% 100%, 0 100%);
}
.brand__text { display: flex; flex-direction: column; line-height: 1.15; }
.brand__text b { font-size: 15px; font-weight: 700; letter-spacing: -0.01em; }
.brand__text i {
  font-style: normal; font-family: var(--mono);
  font-size: 11px; letter-spacing: 0.07em; color: var(--mut); text-transform: uppercase;
}

.nav__links { display: flex; gap: clamp(14px, 1.9vw, 24px); }
.nav__links a {
  font-size: 13px; font-weight: 500; color: var(--ink-2);
  padding: 6px 0; position: relative; transition: color .18s ease;
  white-space: nowrap;
}
.nav__links a::after {
  content: ''; position: absolute; left: 0; bottom: 0; height: 2px; width: 0;
  background: var(--accent); transition: width .2s ease;
}
.nav__links a:hover { color: var(--ink); }
.nav__links a:hover::after { width: 100%; }

.nav__actions { display: flex; align-items: center; gap: 18px; }
.nav__tel {
  font-family: var(--mono); font-size: 13px; font-weight: 500;
  color: var(--ink); letter-spacing: 0.01em; white-space: nowrap;
}
.nav__tel:hover { color: var(--accent); }

.burger {
  position: relative;
  display: none; width: 44px; height: 44px; margin-right: -10px;
  flex: none;
  background: none; border: 0; cursor: pointer; padding: 0;
}
.burger span {
  position: absolute; left: 11px; top: 21px;
  display: block; width: 22px; height: 2px; margin: 0;
  transform-origin: center;
  background: var(--ink); transition: transform .22s ease, opacity .2s ease;
}
.burger span:first-child { transform: translateY(-4px); }
.burger span:last-child { transform: translateY(4px); }
.burger[aria-expanded="true"] span:first-child { transform: rotate(45deg); }
.burger[aria-expanded="true"] span:last-child { transform: rotate(-45deg); }

/* ================= BUTTONS ================= */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 0 24px;
  font-family: var(--sans); font-size: 15px; font-weight: 600; letter-spacing: -0.005em;
  border-radius: var(--r); border: 1px solid transparent; cursor: pointer;
  transition: background .18s ease, color .18s ease, border-color .18s ease, transform .12s ease;
}
.btn:active { transform: translateY(1px); }
.btn--primary { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
.btn--primary:hover { background: var(--accent-2); border-color: var(--accent-2); }
.btn--ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn--ghost:hover { border-color: var(--accent); color: var(--accent); }
.btn--sm { min-height: 40px; padding: 0 16px; font-size: 13.5px; }
.btn--full { width: 100%; }

/* ================= HERO ================= */
.hero { position: relative; overflow: hidden; border-bottom: 1px solid var(--line-soft); }
.hero__poster { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 50%; opacity: .72; }
.hero__video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 50%; opacity: 0; pointer-events: none; }
.hero__video.is-playing { opacity: .72; }
.hero:has(.hero__video.is-playing) .hero__poster { visibility: hidden; }
@media (prefers-reduced-motion: reduce) { .hero__video { display: none; } }
.hero::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(10,10,11,.55), rgba(10,10,11,.66) 45%, #0a0a0b 100%); pointer-events: none; }
.hero__grid { z-index: 1; }
.hero .hero__inner { z-index: 2; }
.hero__grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,.028) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.028) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: radial-gradient(120% 85% at 50% 0%, #000 20%, transparent 78%);
  -webkit-mask-image: radial-gradient(120% 85% at 50% 0%, #000 20%, transparent 78%);
  pointer-events: none;
}
.hero__inner { position: relative; padding-block: clamp(72px, 11vw, 132px) clamp(52px, 7vw, 84px); text-align: center; }

.eyebrow {
  font-family: var(--mono); font-size: 11px; font-weight: 500;
  letter-spacing: 0.16em; text-transform: uppercase; color: var(--accent);
  margin-bottom: 22px;
}
.hero__title {
  font-size: clamp(32px, 5.6vw, 58px);
  line-height: 1.06; letter-spacing: -0.03em; max-width: 21ch; margin-inline: auto;
}
.hero__lead {
  margin: 22px auto 0; max-width: 62ch;
  font-size: clamp(16px, 1.6vw, 19px); color: #b9b9c2; line-height: 1.62;
}
.hero__cta { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 34px; }

.facts {
  display: grid; grid-template-columns: repeat(4, 1fr);
  margin-top: clamp(48px, 7vw, 76px);
  border-top: 1px solid var(--line);
}
.facts__item { padding: 22px 20px 4px; border-left: 1px solid var(--line-soft); }
.facts__item:first-child { border-left: 0; padding-left: 0; }
.facts dt {
  font-family: var(--mono); font-size: 11.5px; letter-spacing: 0.11em;
  text-transform: uppercase; color: var(--mut);
}
.facts dd {
  margin: 8px 0 0; font-family: var(--mono); font-size: clamp(17px, 2vw, 21px);
  font-weight: 500; color: var(--ink); letter-spacing: -0.01em;
}
.facts dd span { color: var(--mut); font-size: 0.78em; }

/* ================= SECTIONS ================= */
.band { padding-block: var(--sec); border-bottom: 1px solid var(--line-soft); }
.band--tight { padding-block: clamp(52px, 6vw, 84px); }
.band--light { background: var(--paper); color: var(--paper-ink); border-bottom: 0; }
.band--cta { background: var(--bg-2); }

.sec-head { max-width: 78ch; margin-bottom: clamp(38px, 5vw, 64px); }
.sec-title { font-size: clamp(27px, 3.9vw, 42px); letter-spacing: -0.026em; }
.sec-lead { margin-top: 20px; font-size: clamp(15px, 1.5vw, 17.5px); color: var(--mut); line-height: 1.68; }
.sec-head--light .sec-lead { color: var(--paper-mut); }

/* ================= NUMBERED (факторы) ================= */
.numbered { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line-soft); border: 1px solid var(--line-soft); }
.numbered li { background: var(--bg); padding: 26px 24px 30px; }
.numbered__n {
  display: block; font-family: var(--mono); font-size: 12px; font-weight: 500;
  letter-spacing: 0.1em; color: var(--accent); margin-bottom: 16px;
}
.numbered h3 { font-size: 17.5px; margin-bottom: 10px; letter-spacing: -0.012em; }
.numbered p { font-size: 14.5px; color: var(--mut); line-height: 1.6; }

.application-photos { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); gap: 24px; }
.application-photos figure { margin: 0; }
.application-photos img { display: block; width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; }
.application-photos figcaption { margin-top: 12px; color: var(--mut); font-size: 14px; }

/* ================= SPEC TABLE (каталог) ================= */
.spec { border-top: 1px solid var(--paper-ink); }
.spec__head {
  display: grid; grid-template-columns: 1.1fr 1.45fr 1fr; gap: 30px;
  padding: 18px 0 16px;
  border-bottom: 1px solid var(--paper-ink);
}
.spec__head span {
  font-family: var(--sans); font-size: 11.5px; font-weight: 600;
  letter-spacing: 0.1em; text-transform: uppercase; color: var(--paper-ink);
}
.spec__row {
  display: grid; grid-template-columns: 1.1fr 1.45fr 1fr; gap: 30px;
  padding: 30px 0; border-bottom: 1px solid var(--paper-line);
  transition: background .18s ease;
}
.spec__row:last-child { border-bottom: 1px solid var(--paper-ink); }
.spec__row:hover { background: rgba(0,0,0,.022); }
.spec__cell { font-size: 15px; line-height: 1.6; color: #3a3a42; }
.spec__cell--name { color: var(--paper-ink); }
.spec__idx {
  display: block; font-family: var(--mono); font-size: 11px; font-weight: 500;
  letter-spacing: 0.1em; color: var(--accent-2); margin-bottom: 9px;
}
.spec__cell--name h3 { font-size: 18px; line-height: 1.28; letter-spacing: -0.015em; }
.spec__cell { min-width: 0; }
.spec__photo { margin: 20px 0 0; }
.spec__photo img {
  display: block; width: 100%; height: auto; aspect-ratio: 4 / 3;
  object-fit: cover; border-radius: var(--r); background: #fff;
}
.spec__photo--contain img { object-fit: contain; }
.spec__photo figcaption {
  margin-top: 8px; font-size: 11.5px; line-height: 1.5; color: var(--paper-mut);
}
.media-credits { margin-top: 24px; font-size: 12px; line-height: 1.65; color: var(--paper-mut); }
.media-credits summary { cursor: pointer; width: fit-content; }
.media-credits p { margin-top: 12px; max-width: 92ch; }
.media-credits ul { margin-top: 12px; display: grid; gap: 7px; }
.media-credits a { text-decoration: underline; text-underline-offset: 3px; }
.spec__cell b {
  font-family: var(--mono); font-weight: 500; font-size: 14px;
  color: var(--paper-ink); white-space: nowrap;
}

/* параметры — строки «метка: значение» */
.params > div {
  display: grid; grid-template-columns: 128px 1fr; gap: 14px;
  padding: 7px 0; align-items: baseline;
}
.params > div + div { border-top: 1px solid rgba(0,0,0,.06); }
.params dt {
  font-family: var(--sans); font-size: 12px; font-weight: 600;
  letter-spacing: 0.02em; color: var(--paper-mut); line-height: 1.45;
}
.params dd { font-size: 14.5px; color: #3a3a42; line-height: 1.55; }

/* ================= WHY (преимущества) ================= */
.why { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; background: var(--line-soft); border: 1px solid var(--line-soft); }
.why__item { background: var(--bg); padding: 28px 26px 32px; }
.why__item:first-child { grid-column: 1 / -1; background: var(--surface); }
.why__item h3 { font-size: 18px; margin-bottom: 12px; letter-spacing: -0.015em; }
.why__item h3::before {
  content: ''; display: inline-block; width: 16px; height: 2px;
  background: var(--accent); vertical-align: middle; margin-right: 12px;
}
.why__item p { font-size: 15px; color: var(--mut); line-height: 1.64; max-width: 74ch; }

/* ================= STEPS ================= */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 26px; counter-reset: s; }
.step { position: relative; padding-top: 26px; border-top: 2px solid var(--line); transition: border-color .2s ease; }
.step:hover { border-top-color: var(--accent); }
.step__n {
  position: absolute; top: -11px; left: 0;
  background: var(--bg); padding-right: 12px;
  font-family: var(--mono); font-size: 12px; font-weight: 500; letter-spacing: 0.1em; color: var(--accent);
}
.step h3 { font-size: 17px; margin-bottom: 10px; letter-spacing: -0.012em; }
.step p { font-size: 14.5px; color: var(--mut); line-height: 1.6; }

/* ================= CTA / КОНТАКТЫ ================= */
.cta { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(36px, 5vw, 72px); align-items: start; }
.contact { display: flex; gap: 20px; padding: 15px 0; border-bottom: 1px solid var(--line-soft); }
.contact:first-of-type { border-top: 1px solid var(--line-soft); }
.contact__k {
  flex: none; width: 108px;
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.11em;
  text-transform: uppercase; color: var(--mut-2); padding-top: 4px;
}
.contact__v { font-size: 16px; color: var(--ink); }
a.contact__v:hover { color: var(--accent); }

.form {
  background: var(--surface); border: 1px solid var(--line);
  padding: clamp(24px, 3vw, 34px); border-radius: var(--r);
}
.form__title { font-size: 20px; margin-bottom: 22px; letter-spacing: -0.015em; }
.field { display: block; margin-bottom: 16px; }
.field__label {
  display: block; margin-bottom: 7px;
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.11em;
  text-transform: uppercase; color: var(--mut);
}
.field input, .field textarea {
  width: 100%; padding: 12px 14px;
  background: var(--bg-2); color: var(--ink);
  border: 1px solid var(--line); border-radius: var(--r);
  font-family: var(--sans); font-size: 15px; line-height: 1.5;
  transition: border-color .16s ease, background .16s ease;
}
.field textarea { resize: vertical; min-height: 88px; }
.field input::placeholder, .field textarea::placeholder { color: var(--mut-2); }
.field input:focus, .field textarea:focus {
  outline: none; border-color: var(--accent); background: var(--bg);
}
.field input:user-invalid, .field textarea:user-invalid { border-color: #d1453b; }
.form__note { margin-top: 14px; font-size: 12.5px; color: var(--mut-2); line-height: 1.5; }
.form__note--ok { color: var(--accent); }

/* ================= FOOTER ================= */
.foot { background: var(--bg); border-top: 1px solid var(--line-soft); padding-top: clamp(44px, 5vw, 64px); }
.foot__row { display: flex; flex-wrap: wrap; gap: 40px; justify-content: space-between; padding-bottom: 40px; }
.foot__brand { display: flex; flex-direction: column; gap: 9px; max-width: 300px; }
.foot__brand b { font-size: 16px; }
.foot__brand span:last-child { font-size: 13.5px; color: var(--mut-2); }

.requisites { display: grid; grid-template-columns: repeat(2, minmax(0, 220px)); gap: 16px 40px; }
.requisites dt {
  font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--mut-2); margin-bottom: 4px;
}
.requisites dd { font-family: var(--mono); font-size: 13px; color: var(--ink-2); line-height: 1.5; }

.foot__bottom {
  display: flex; flex-wrap: wrap; gap: 16px; justify-content: space-between;
  padding-block: 20px; border-top: 1px solid var(--line-soft);
  font-size: 12.5px; color: var(--mut-2);
}

/* ================= REVEAL ================= */
.reveal { opacity: 0; transform: translateY(14px); transition: opacity .55s ease, transform .55s ease; }
.reveal.is-in { opacity: 1; transform: none; }

/* ================= RESPONSIVE ================= */
@media (max-width: 1024px) {
  .nav__links {
    position: fixed; inset: 68px 0 auto; flex-direction: column; gap: 0;
    background: var(--bg); border-bottom: 1px solid var(--line);
    padding: 8px var(--gut) 20px;
    transform: translateY(-8px); opacity: 0; pointer-events: none;
    transition: transform .2s ease, opacity .2s ease;
  }
  .nav__links.is-open { transform: none; opacity: 1; pointer-events: auto; }
  .nav__links a { padding: 14px 0; border-bottom: 1px solid var(--line-soft); font-size: 15px; }
  .burger { display: block; }
  .nav__tel { display: none; }

  .numbered, .steps { grid-template-columns: repeat(2, 1fr); }
  .cta { grid-template-columns: 1fr; }
}

@media (max-width: 860px) {
  .spec__head { display: none; }
  .spec__row {
    grid-template-columns: 1fr; gap: 16px;
    padding: 26px 0 28px;
  }
  .spec__cell { padding-left: 0; }
  .params > div { grid-template-columns: 1fr; gap: 2px; padding: 9px 0; }
  .params > div + div { border-top: 1px solid rgba(0,0,0,.06); }
  .spec__cell[data-label]::before {
    content: attr(data-label);
    display: block; margin-bottom: 7px;
    font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.12em;
    text-transform: uppercase; color: var(--paper-mut);
  }
}

@media (max-width: 640px) {
  .nav__actions .btn { display: none; }
  .facts { grid-template-columns: repeat(2, 1fr); }
  .facts__item { border-left: 0; padding: 18px 0 4px; }
  .facts dt { font-size: 11px; letter-spacing: 0.08em; }
  .hero__lead { color: #b9b9c2; }
  .facts__item:nth-child(odd) { border-right: 1px solid var(--line-soft); padding-right: 16px; }
  .numbered, .steps, .why { grid-template-columns: 1fr; }
  .why__item:first-child { grid-column: auto; }
  .requisites { grid-template-columns: 1fr; }
  .contact { flex-direction: column; gap: 6px; }
  .contact__k { width: auto; }
  .hero__cta .btn { width: 100%; padding-inline: 16px; font-size: 14.5px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important; transition-duration: .01ms !important;
  }
  .reveal { opacity: 1; transform: none; }
}
