/*
 * Стили только главной страницы: прозрачная шапка, рельса видео-пролёта, плитки объектов,
 * секции витрины, форма заявки и мобильный HUD. Подключается после site.css, слои общие.
 */
@layer tokens {
  :root {
    --text-11: 11px;
    --text-11-5: 11.5px;
    --text-13-5: 13.5px;
    --text-17-5: 17.5px;
    --text-h1-home: clamp(38px, 4.9vw, 72px);
    --text-h2-card: clamp(27px, 3.1vw, 44px);
    --text-sect-h: clamp(30px, 3.4vw, 46px);
    --text-sect-h-small: clamp(24px, 2.4vw, 32px);
    --text-tile-h: clamp(20px, 1.9vw, 26px);
    --text-sys-h: clamp(21px, 2.2vw, 26px);
    --text-num: clamp(26px, 2.6vw, 38px);
    --text-brand: clamp(20px, 2vw, 27px);
    --space-30: 30px;
    --space-50: 50px;
    --space-78: 78px;
    --space-112: 112px;
    --z-poster: 1;
    --z-film: 2;
    --z-veil: 3;
    --z-stage-ui: 4;
  }
}

@layer pages {
  .page-home {
    color: var(--ink-100);
    background: var(--graphite-900);
  }

  .page-home main {
    max-width: none;
    padding: 0;
  }

  /* Шапка главной: прозрачная над кадром, уплотняется графитом после первого экрана */
  .page-home .site-header {
    gap: var(--space-28);
    height: auto;
    padding: var(--space-24) var(--pad-x);
    background: linear-gradient(180deg, rgb(14 17 20 / 72%), rgb(14 17 20 / 0%));
    border-bottom: 1px solid transparent;
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
    transition: padding 0.24s ease, background 0.24s ease, border-color 0.24s ease;
  }

  .page-home .site-header.solid {
    padding: var(--space-12) var(--pad-x);
    background: rgb(14 17 20 / 85%);
    border-bottom-color: var(--line-dark-soft);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
  }

  .page-home .logo {
    font-size: var(--text-19);
    letter-spacing: 0.18em;
  }

  .page-home .site-header nav {
    gap: var(--space-26);
    margin-right: 0;
    white-space: nowrap;
  }

  .page-home .site-header .tel {
    font-size: var(--text-16);
  }

  .page-home .tel-icon,
  .page-home .burger {
    border-radius: 4px;
  }

  .page-home .tel-icon:focus-visible,
  .page-home .burger:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
  }

  @media (max-width: 980px) {
    .page-home .site-header nav,
    .page-home .site-header .cta,
    .page-home .site-header .tel {
      display: none;
    }

    .page-home .site-header {
      gap: var(--space-8);
      padding: var(--space-14) var(--space-20);
    }

    .page-home .logo {
      margin-right: auto;
    }

    .page-home .tel-icon,
    .page-home .burger {
      display: flex;
    }
  }

  /* Рельса пролёта: закреплённая сцена, кадры по прокрутке. Магнита нет намеренно —
     паузы встроены в сам пролёт: у рубежей камера идёт медленно, перегоны проскакивает быстро */
  .rail {
    position: relative;
    height: 560vh;

    /* гасим общий section{padding-top}: иначе закреплённая сцена стоит на gap-sect ниже верха */
    padding-top: 0;
  }

  .stage {
    position: sticky;
    top: 0;
    height: 100vh;
    height: 100svh;
    overflow: hidden;
    background: var(--graphite-900);
  }

  .stage canvas,
  .stage .poster {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
  }

  .stage .poster {
    z-index: var(--z-poster);
    transition: opacity 0.5s;
  }

  .stage canvas {
    z-index: var(--z-film);
    opacity: 0;
    transition: opacity 0.3s;
  }

  .stage .live {
    opacity: 1;
  }

  .stage .veil {
    position: absolute;
    inset: 0;
    z-index: var(--z-veil);
    pointer-events: none;
    background:
      linear-gradient(90deg, rgb(14 17 20 / 92%) 0%, rgb(14 17 20 / 70%) 34%, rgb(14 17 20 / 0%) 62%),
      linear-gradient(0deg, rgb(14 17 20 / 85%) 0%, rgb(14 17 20 / 0%) 42%);
  }

  .slot {
    position: absolute;
    bottom: clamp(96px, 16vh, 200px);
    left: clamp(24px, 5vw, 84px);
    z-index: var(--z-stage-ui);
    display: grid;
    width: min(52ch, 44vw);
  }

  /* Эстафета, не кроссфейд: уходящий гаснет быстро, новый входит после паузы */
  .card {
    grid-area: 1 / 1;
    align-self: end;
    pointer-events: none;
    opacity: 0;
    transform: translateY(14px);
    transition: opacity 0.22s ease, transform 0.22s ease;
  }

  .card.on {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.5s ease 0.24s, transform 0.5s ease 0.24s;
  }

  .eyebrow {
    margin: 0 0 var(--space-16);
    font-family: var(--mono);
    font-size: var(--text-12);
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.2em;
  }

  .stage h1 {
    max-width: 16ch;
    margin: 0 0 var(--space-20);
    font-size: var(--text-h1-home);
    font-weight: 700;
    line-height: 1.04;
    letter-spacing: -0.02em;
    text-wrap: balance;
    text-shadow: 0 2px 40px rgb(0 0 0 / 60%);
  }

  .lede {
    max-width: 52ch;
    margin: 0;
    font-size: var(--text-19);
    line-height: 1.5;
    color: var(--grey-300);
  }

  .card .n {
    display: block;
    margin-bottom: var(--space-12);
    font-family: var(--mono);
    font-size: var(--text-12);
    color: var(--accent);
    text-transform: uppercase;
    letter-spacing: 0.16em;
  }

  .card h2 {
    margin: 0 0 var(--space-14);
    font-size: var(--text-h2-card);
    font-weight: 600;
    line-height: 1.08;
    letter-spacing: -0.015em;
    text-shadow: 0 2px 40px rgb(0 0 0 / 60%);
  }

  .card p {
    margin: 0;
    font-size: var(--text-17);
    line-height: 1.62;
    color: var(--grey-350);
  }

  .card .ref {
    padding-left: var(--space-14);
    margin-top: var(--space-18);
    font-family: var(--mono);
    font-size: var(--text-12);
    line-height: 1.65;
    color: var(--text-muted);
    border-left: 2px solid var(--accent);
  }

  .track {
    position: absolute;
    top: 50%;
    right: clamp(24px, 4vw, 64px);
    z-index: var(--z-stage-ui);
    display: flex;
    flex-direction: column;
    gap: var(--space-14);
    align-items: flex-end;
    transform: translateY(-50%);
  }

  .track i {
    display: block;
    width: 26px;
    height: 2px;
    background: rgb(255 255 255 / 22%);
    transition: background 0.3s, width 0.3s;
  }

  .track .on {
    width: 44px;
    background: var(--accent);
  }

  .hint {
    position: absolute;
    bottom: var(--space-28);
    left: 50%;
    z-index: var(--z-stage-ui);
    font-family: var(--mono);
    font-size: var(--text-12);
    color: var(--text-muted);
    letter-spacing: 0.14em;
    transform: translateX(-50%);
    transition: opacity 0.4s;
  }

  @media (max-width: 900px) {
    .track {
      display: none;
    }

    .slot {
      right: var(--space-24);
      bottom: var(--space-112);
      width: auto;
    }

    .rail {
      height: 300vh;
    }
  }

  /* Заголовки секций витрины */
  .page-home .sect-n {
    text-transform: none;
    letter-spacing: 0.18em;
  }

  .sect-h {
    margin: 0 0 var(--space-18);
    font-size: var(--text-sect-h);
    font-weight: 600;
    line-height: 1.1;
    letter-spacing: -0.02em;
    text-wrap: balance;
  }

  .automation .sect-h,
  .cycle .sect-h,
  .after .sect-h,
  .systems .sect-h {
    font-size: var(--text-sect-h-small);
    line-height: 1.18;
  }

  /* Подзаголовок под .sect-h: заголовок стал длинным, число систем ушло строкой ниже */
  .sect-lead {
    max-inline-size: 60ch;
    margin: calc(-1 * var(--space-8)) 0 var(--space-18);
    font-size: var(--text-17);
    color: var(--text-muted);
  }

  /* Объекты: плитки-кадры, текст живёт внутри картинки на градиентной подложке */
  .trusted {
    padding: var(--gap-sect) var(--pad-x);
    color: var(--text);
    background: var(--graphite-900);
  }

  .trusted .tiles {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-14);
    margin-top: var(--space-36);
  }

  .trusted .tile {
    position: relative;
    display: block;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    color: var(--text);
    border: 1px solid rgb(255 255 255 / 10%);
    border-radius: 4px;
    transition: border-color 0.3s;
  }

  .trusted .tile:hover {
    border-color: var(--accent);
  }

  .trusted .tile img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
  }

  .trusted .tile .txt {
    position: absolute;
    inset: auto 0 0;
    display: block;
    padding: var(--space-40) var(--space-18) var(--space-16);
    background: linear-gradient(0deg, rgb(14 17 20 / 94%) 0%, rgb(14 17 20 / 60%) 46%, rgb(14 17 20 / 0%) 100%);
  }

  .trusted .tile .t {
    display: block;
    margin: 0 0 var(--space-8);
    font-family: var(--head);
    font-size: var(--text-tile-h);
    font-weight: 600;
    line-height: 1.15;
    letter-spacing: -0.01em;
  }

  .trusted .tile .d {
    display: block;
    margin: 0;
    font-family: var(--mono);
    font-size: var(--text-12);
    line-height: 1.5;
    color: var(--grey-350);
    letter-spacing: 0.06em;
  }

  .trusted .all,
  .blogteaser .all {
    display: inline-block;
    padding-bottom: var(--space-4);
    margin-top: var(--space-40);
    font-size: var(--text-17);
    color: var(--text);
    text-decoration: none;
    border-bottom: 1px solid rgb(217 164 65 / 45%);
    transition: border-color 0.2s;
  }

  .trusted .all:hover,
  .blogteaser .all:hover {
    border-bottom-color: var(--accent);
  }

  .trusted .all:focus-visible,
  .trusted .tile:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 3px;
  }

  @media (max-width: 900px) {
    .trusted .tiles {
      grid-template-columns: repeat(2, 1fr);
      gap: var(--space-10);
    }

    .trusted .tile {
      aspect-ratio: 1 / 1;
    }

    .trusted .tile .t {
      font-size: var(--text-17);
    }
  }

  /* Пять систем */
  .systems {
    padding: var(--gap-tight) var(--pad-x) 0;
    color: var(--text);
    background: var(--paper);
  }

  .systems ol {
    padding: 0;
    margin: var(--space-24) 0 0;
    list-style: none;
    counter-reset: sys;
  }

  .systems li {
    display: grid;
    grid-template-columns: 44px 44px minmax(200px, 0.8fr) minmax(0, 1.25fr);
    gap: var(--space-24);
    align-items: start;
    padding: var(--space-24) 0;
    border-top: 1px solid var(--border);
  }

  .systems li > svg {
    width: 26px;
    height: 26px;
    margin-top: var(--space-4);
    color: var(--steel-500);
  }

  .systems li:last-child {
    border-bottom: 1px solid var(--grey-100);
  }

  .systems li::before {
    font-family: var(--mono);
    font-size: var(--text-13);
    line-height: 2.1;
    color: var(--grey-500);
    letter-spacing: 0.1em;
    content: counter(sys, decimal-leading-zero);
    counter-increment: sys;
  }

  .systems h3 {
    margin: 0;
    font-size: var(--text-sys-h);
    font-weight: 600;
    line-height: 1.25;
    letter-spacing: -0.01em;
  }

  .systems li p {
    max-width: 52ch;
    padding-top: var(--space-4);
    margin: 0;
    font-size: var(--text-16);
    line-height: 1.6;
    color: var(--text-body);
  }

  @media (max-width: 900px) {
    .systems li {
      grid-template-columns: 36px 34px 1fr;
      gap: var(--space-8) var(--space-12);
      padding: var(--space-20) 0;
    }

    .systems li p {
      grid-column: 3;
    }

    .systems h3 {
      font-size: var(--text-19);
    }

    .systems li > svg {
      width: 22px;
      height: 22px;
      margin-top: 1px;
    }
  }

  /* Автоматизация: текст слева, кадры справа умеренным столбиком */
  .automation {
    padding: var(--gap-tight) var(--pad-x) 0;
    color: var(--text);
    background: var(--paper);
  }

  .automation .in {
    display: grid;
    grid-template-areas: "head f1" "facts f2";
    grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
    gap: var(--space-24) clamp(40px, 5vw, 72px);
    align-items: start;
  }

  .automation .head {
    grid-area: head;
  }

  .automation .f1 {
    grid-area: f1;
  }

  .automation .facts {
    grid-area: facts;
    padding-top: var(--space-8);
    color: var(--text-body);
    border-top: 1px solid var(--border);
  }

  .automation .f2 {
    grid-area: f2;
  }

  .automation .lead {
    max-width: 52ch;
    margin: 0 0 var(--space-32);
    font-size: var(--text-19);
    line-height: 1.55;
    color: var(--text-body);
  }

  .automation figure,
  .cycle figure {
    margin: 0;
  }

  .automation img,
  .cycle img {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 4px;
  }

  .automation figcaption,
  .cycle figcaption {
    margin-top: var(--space-8);
    font-family: var(--mono);
    font-size: var(--text-12);
    color: var(--text-muted);
    letter-spacing: 0.08em;
  }

  .automation .facts b {
    display: block;
    margin: var(--space-10) 0 var(--space-2);
    font-family: var(--mono);
    font-size: var(--text-12);
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.14em;
  }

  .automation .facts ul {
    padding: 0;
    margin: 0;
    list-style: none;
  }

  .automation .facts li {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
    gap: var(--space-6) var(--space-24);
    align-items: baseline;
    padding: var(--space-13) 0;
    border-bottom: 1px solid var(--border-soft);
  }

  .automation .fact {
    font-size: var(--text-16);
    font-weight: 500;
    line-height: 1.4;
    color: var(--text);
  }

  .automation .fact-note {
    font-family: var(--mono);
    font-size: var(--text-12);
    color: var(--text-muted);
    text-align: right;
    letter-spacing: 0.06em;
  }

  .automation .facts .knx {
    margin: var(--space-14) 0 0;
    font-size: var(--text-15);
  }

  @media (max-width: 1100px) {
    .automation .facts li {
      grid-template-columns: 1fr;
    }

    .automation .fact-note {
      text-align: left;
    }
  }

  @media (max-width: 900px) {
    .automation .in {
      grid-template-areas: "head" "f1" "facts" "f2";
      grid-template-columns: 1fr;
      gap: var(--space-28);
    }
  }

  /* Полный цикл */
  .cycle {
    padding: var(--gap-sect) var(--pad-x) 0;
    color: var(--text);
    background: var(--paper);
  }

  .cycle .in {
    display: grid;
    grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
    gap: clamp(40px, 5vw, 72px);
    align-items: start;
  }

  .cycle p {
    max-width: 46ch;
    margin: 0 0 var(--space-20);
    font-size: var(--text-17);
    line-height: 1.65;
    color: var(--text-body);
  }

  .cycle figcaption {
    margin-top: var(--space-10);
  }

  @media (max-width: 900px) {
    .cycle .in {
      grid-template-columns: 1fr;
    }
  }

  /* Чем подтверждено: цифры */
  .after {
    padding: var(--gap-sect) var(--pad-x) 0;
    color: var(--text);
    background: var(--paper);
  }

  .grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-40) var(--space-32);
  }

  .grid div {
    padding-top: var(--space-18);
    border-top: 1px solid var(--grey-100);
  }

  .grid .num {
    display: block;
    margin-bottom: var(--space-6);
    font-family: var(--mono);
    font-size: var(--text-num);
    font-variant-numeric: tabular-nums;
    color: var(--text);
  }

  .grid .cap {
    display: block;
    margin-bottom: var(--space-8);
    font-family: var(--mono);
    font-size: var(--text-12);
    color: var(--text-muted);
    letter-spacing: 0.14em;
  }

  /* Партнёры: лента брендов */
  .partners {
    padding: var(--gap-tight) 0;
    overflow: hidden;
    color: var(--text);
    background: var(--paper);
  }

  .partners .in {
    padding: var(--space-28) var(--pad-x) 0;
    border-top: 1px solid var(--border);
  }

  .partners .note {
    max-width: 56ch;
    margin: 0;
    font-size: var(--text-17);
    line-height: 1.6;
    color: var(--text-body);
  }

  .partners .belt {
    margin-top: var(--space-28);
    overflow: hidden;
    white-space: nowrap;
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
    mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  }

  .partners .row {
    display: inline-block;
    will-change: transform;
  }

  .partners .brand {
    display: inline-block;
    margin-right: var(--space-64);
    font-size: var(--text-brand);
    font-weight: 600;
    color: var(--grey-500);
    letter-spacing: 0.02em;
  }

  /* Витрина блога перед формой */
  .blogteaser {
    padding: var(--gap-sect) var(--pad-x);
    color: var(--text);
    background: var(--paper);
  }

  .blogteaser ul {
    padding: 0;
    margin: var(--space-28) 0 0;
    list-style: none;
  }

  .blogteaser li {
    display: grid;
    grid-template-columns: minmax(0, 1.35fr) minmax(0, 0.65fr);
    gap: var(--space-6) var(--space-24);
    align-items: baseline;
    padding: var(--space-16) 0;
    border-bottom: 1px solid var(--border-soft);
  }

  .blogteaser li:first-child {
    border-top: 1px solid var(--border);
  }

  .blogteaser li a {
    font-size: var(--text-17-5);
    font-weight: 500;
    line-height: 1.4;
    color: var(--text);
    text-decoration: none;
  }

  .blogteaser li a:hover {
    color: var(--ink-900);
    text-decoration: underline;
    text-decoration-color: var(--accent);
    text-underline-offset: 4px;
  }

  .blogteaser .tag {
    font-family: var(--mono);
    font-size: var(--text-12);
    color: var(--text-muted);
    text-align: right;
    letter-spacing: 0.06em;
  }

  .blogteaser .all {
    padding-bottom: 3px;
    margin-top: var(--space-28);
  }

  @media (max-width: 900px) {
    .blogteaser li {
      grid-template-columns: 1fr;
    }

    .blogteaser .tag {
      text-align: left;
    }
  }

  /* Заявка */
  .contact {
    padding: var(--gap-sect) var(--pad-x);
    color: var(--text);
    background: var(--graphite-900);
  }

  .contact .in {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: clamp(40px, 6vw, 72px);
  }

  .contact .lead {
    max-width: 46ch;
    margin: 0;
    font-size: var(--text-19);
    line-height: 1.55;
    color: var(--text-body);
  }

  .contact form {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-18) var(--space-16);
    max-width: 440px;
  }

  .contact .field--wide,
  .contact .agree,
  .contact form button,
  .contact .status {
    grid-column: 1 / -1;
  }

  .contact label {
    display: block;
    margin-bottom: var(--space-6);
    font-family: var(--mono);
    font-size: var(--text-12);
    color: var(--text-muted);
    letter-spacing: 0.14em;
  }

  .contact .field input {
    width: 100%;
    padding: var(--space-14) var(--space-16);
    font-family: var(--sans);
    font-size: var(--text-16);
    color: var(--text);
    background: var(--graphite-700);
    border: 1px solid rgb(255 255 255 / 18%);
    border-radius: 4px;
  }

  .contact input::placeholder {
    color: var(--steel-300);
  }

  .contact input:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 1px;
  }

  .contact .agree {
    display: flex;
    gap: var(--space-12);
    align-items: center;
    min-height: var(--touch);
    font-size: var(--text-14);
    line-height: 1.5;
    color: var(--grey-400);
  }

  .contact .agree label {
    max-width: 52ch;
    margin: 0;
    font-family: inherit;
    font-size: inherit;
    color: inherit;
    letter-spacing: normal;
    cursor: pointer;
  }

  .agree input {
    flex: 0 0 var(--space-24);
    width: var(--space-24);
    height: var(--space-24);
    margin: 0;
    -webkit-appearance: none;
    appearance: none;
    cursor: pointer;
    background: var(--graphite-700);
    border: 1px solid rgb(255 255 255 / 28%);
    border-radius: 3px;
  }

  .agree input:checked {
    background: var(--accent) url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'><path d='M5 10.5l3.2 3.2L15 7' fill='none' stroke='%2314181C' stroke-width='2.4'/></svg>") center / 14px no-repeat;
    border-color: var(--accent);
  }

  .agree input:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
  }

  .contact .agree a {
    color: var(--text);
  }

  .contact button {
    justify-self: start;
    margin-top: var(--space-4);
  }

  .contact .hp {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    overflow: hidden;
    border: 0;
    clip-path: inset(50%);
  }

  .contact .status {
    margin: 0;
    font-size: var(--text-15);
    color: var(--grey-350);
  }

  .contact .status[data-state="error"] {
    color: var(--accent);
  }

  /* Мобильный слой главной: компактный hero с HUD камеры, рубежи статичной лентой */
  .mrubezh,
  .mcta {
    display: none;
  }

  @media (max-width: 900px) {
    .contact .in {
      grid-template-columns: 1fr;
    }

    .grid {
      grid-template-columns: 1fr 1fr;
      gap: var(--space-28) var(--space-20);
    }

    .grid .num {
      font-size: var(--text-30);
    }

    .rail {
      height: auto;
    }

    .stage {
      position: relative;
      min-height: 540px;
      max-height: 86svh;
    }

    .stage .poster {
      object-position: center 40%;
    }

    .mhud {
      position: absolute;
      top: var(--space-78);
      right: var(--space-14);
      left: var(--space-14);
      z-index: var(--z-stage-ui);
      height: 30%;
      font-family: var(--mono);
      font-size: var(--text-11-5);
      color: rgb(230 233 236 / 92%);
      letter-spacing: 0.14em;
      pointer-events: none;
    }

    .mhud::before,
    .mhud::after,
    .mh-cam::before,
    .mh-cam::after {
      position: absolute;
      width: 24px;
      height: 24px;
      content: "";
      border: 1.5px solid rgb(230 233 236 / 60%);
    }

    .mhud::before {
      top: 0;
      left: 0;
      border-right: 0;
      border-bottom: 0;
    }

    .mhud::after {
      top: 0;
      right: 0;
      border-bottom: 0;
      border-left: 0;
    }

    .mh-cam::before {
      bottom: 0;
      left: 0;
      border-top: 0;
      border-right: 0;
    }

    .mh-cam::after {
      right: 0;
      bottom: 0;
      border-top: 0;
      border-left: 0;
    }

    .mh-rec {
      position: absolute;
      top: var(--space-10);
      left: var(--space-14);
      color: var(--ink-100);
    }

    .mh-rec::before {
      display: inline-block;
      width: 8px;
      height: 8px;
      margin-right: var(--space-8);
      vertical-align: 1px;
      content: "";
      background: var(--accent);
      border-radius: 50%;
      animation: mhblink 1.6s steps(1) infinite;
    }

    @keyframes mhblink {
      50% {
        opacity: 0.15;
      }
    }

    .mh-time {
      position: absolute;
      top: var(--space-10);
      right: var(--space-14);
      font-variant-numeric: tabular-nums;
      color: rgb(230 233 236 / 80%);
    }

    .mh-cam {
      position: absolute;
      inset: 0;
      display: block;
      font-size: var(--text-10-5);
      color: rgb(230 233 236 / 70%);
    }

    .mh-label {
      position: absolute;
      bottom: var(--space-10);
      left: var(--space-14);
    }

    .hint {
      display: none;
    }

    /* Мобильная вуаль: боковой градиент не работает на узком экране — усиливаем низ, гасим верх под шапкой */
    .stage .veil {
      background:
        linear-gradient(180deg, rgb(14 17 20 / 72%) 0%, rgb(14 17 20 / 0%) 20%),
        linear-gradient(0deg, rgb(14 17 20 / 94%) 0%, rgb(14 17 20 / 70%) 40%, rgb(14 17 20 / 0%) 76%);
    }

    .eyebrow {
      color: var(--grey-300);
      text-shadow: 0 1px 14px rgb(0 0 0 / 85%);
    }

    .lede {
      text-shadow: 0 1px 18px rgb(0 0 0 / 55%);
    }

    .slot {
      inset: auto var(--space-20) calc(22px + env(safe-area-inset-bottom)) var(--space-20);
      display: block;
      width: auto;
    }

    .card {
      display: none;
    }

    .card[data-at="0.00"] {
      display: block;
      pointer-events: auto;
      opacity: 1;
      transform: none;
    }

    .mcta {
      display: grid;
      grid-template-columns: 1.25fr 1fr;
      gap: var(--space-10);
      margin-top: var(--space-22);
    }

    .mcta a {
      display: flex;
      gap: var(--space-9);
      align-items: center;
      justify-content: center;
      min-height: var(--space-50);
      font-size: var(--text-15);
      font-weight: 600;
      text-decoration: none;
      border-radius: 4px;
    }

    .mcta .mc-call {
      font-family: var(--mono);
      font-size: var(--text-15-5);
      font-weight: 400;
      color: var(--on-accent);
      background: var(--accent);
    }

    .mcta .mc-lead {
      color: var(--text);
      border: 1px solid rgb(255 255 255 / 35%);
    }

    .mrubezh {
      display: block;
      padding: var(--space-6) var(--space-20) 2px;
      color: var(--text);
      background: var(--graphite-900);
    }

    .mrubezh ol {
      padding: 0;
      margin: 0;
      list-style: none;
    }

    .mrubezh li {
      padding: var(--space-24) 0;
      border-top: 1px solid rgb(255 255 255 / 10%);
    }

    .mrubezh li:first-child {
      border-top: 0;
    }

    .mrubezh .n {
      display: block;
      margin-bottom: var(--space-10);
      font-family: var(--mono);
      font-size: var(--text-11);
      color: var(--accent);
      text-transform: uppercase;
      letter-spacing: 0.16em;
    }

    .mrubezh h3 {
      margin: 0 0 var(--space-8);
      font-size: var(--text-22);
      font-weight: 600;
      line-height: 1.15;
      letter-spacing: -0.015em;
    }

    .mrubezh p {
      margin: 0;
      font-size: var(--text-15);
      line-height: 1.6;
      color: var(--grey-350);
    }

    .mrubezh .ref {
      padding-left: var(--space-12);
      margin-top: var(--space-12);
      font-family: var(--mono);
      font-size: var(--text-11-5);
      line-height: 1.65;
      color: var(--steel-300);
      border-left: 2px solid var(--accent);
    }
  }

  @media (max-width: 560px) {
    .stage h1 {
      font-size: var(--text-30);
    }

    .card h2 {
      font-size: var(--text-26);
    }

    .card p {
      font-size: var(--text-16);
      line-height: 1.55;
    }

    .card .ref {
      font-size: var(--text-12);
    }

    .slot {
      right: var(--space-20);
      bottom: var(--space-96);
      left: var(--space-20);
    }

    .lede {
      font-size: var(--text-15-5);
      line-height: 1.5;
    }

    .eyebrow {
      margin-bottom: var(--space-12);
      font-size: var(--text-11);
      letter-spacing: 0.14em;
    }

    .sect-h {
      font-size: var(--text-26);
    }

    .automation .sect-h,
    .cycle .sect-h,
    .after .sect-h {
      font-size: var(--text-22);
    }

    .trusted .tiles {
      grid-template-columns: none;
      grid-auto-columns: 82%;
      grid-auto-flow: column;
      padding: 0 var(--space-20) var(--space-6);
      margin: var(--space-28) calc(-1 * var(--space-20)) 0;
      overflow-x: auto;
      scroll-snap-type: x mandatory;
      scrollbar-width: none;
      -webkit-overflow-scrolling: touch;
    }

    .trusted .tiles::-webkit-scrollbar {
      display: none;
    }

    .trusted .tile {
      aspect-ratio: 4 / 3;
      scroll-snap-align: start;
    }

    .trusted .all {
      margin-top: var(--space-28);
    }

    .grid {
      grid-template-columns: 1fr 1fr;
      gap: var(--space-24) var(--space-16);
      font-size: var(--text-13-5);
      line-height: 1.5;
    }

    .grid .num {
      font-size: var(--text-26);
    }

    .systems li {
      padding: var(--space-16) 0;
    }

    .automation .lead {
      margin-bottom: var(--space-24);
      font-size: var(--text-16);
    }

    .automation img {
      aspect-ratio: 4 / 3;
      object-fit: cover;
    }

    .partners .brand {
      margin-right: var(--space-40);
      font-size: var(--text-14);
    }

    .contact button {
      width: 100%;
    }

    .contact form {
      grid-template-columns: 1fr;
      gap: var(--space-14);
    }
  }

  @media (prefers-reduced-motion: reduce) {
    .mh-rec::before {
      animation: none;
    }
  }
}
