@font-face {
  font-family: 'Geologica';
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url(/fonts/geologica-cyrillic.woff2) format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: 'Geologica';
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url(/fonts/geologica-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Golos Text';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url(/fonts/golos-text-cyrillic.woff2) format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: 'Golos Text';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url(/fonts/golos-text-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(/fonts/jetbrains-mono-cyrillic.woff2) format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(/fonts/jetbrains-mono-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(/fonts/jetbrains-mono-cyrillic.woff2) format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(/fonts/jetbrains-mono-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --night: #06333A;
  --night-2: #0A434B;
  --teal: #0E6E78;
  --teal-2: #14A3AD;
  --mint: #5EEAD4;
  --mint-2: #2BB8B0;
  --copper: #E08A3C;
  --copper-soft: #F2B27A;
  --raw: #E9F1F0;
  --raw-2: #D5DEDD;
  --paper: #F7FAF9;
  --ink: #0C2427;
  --ink-2: #3F5659;
  --on-night: #E3EEEE;
  --on-night-2: #9DBBBE;
  --line: rgba(12, 36, 39, .14);
  --line-night: rgba(227, 238, 238, .14);
  --card: #FFFFFF;
  --shadow-card: 0 1px 2px rgba(6, 51, 58, .04), 0 18px 40px -20px rgba(6, 51, 58, .2);
  --ease-out: cubic-bezier(.2, .7, .3, 1);

  --display: "Geologica", "Golos Text", system-ui, sans-serif;
  --body: "Golos Text", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, monospace;

  --wrap: 1200px;
  --gutter: clamp(16px, 4vw, 40px);
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--raw);
  color: var(--ink);
  font: 400 17px/1.6 var(--body);
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--mint-2); outline-offset: 3px; border-radius: 4px; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }

.h-display {
  font-family: var(--display);
  font-variation-settings: "SHRP" 70;
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.04;
  margin: 0;
}
.eyebrow {
  font: 500 12px/1 var(--mono);
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--teal);
  margin: 0 0 18px;
}

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  min-height: 48px; padding: 0 22px;
  border-radius: 999px; border: 1px solid transparent;
  font: 600 16px/1 var(--body);
  text-decoration: none; cursor: pointer;
  transition: background-color .2s, border-color .2s, color .2s, transform .2s;
}
.btn:active { transform: scale(.97); }
/* Главная кнопка — мятный градиент: медь осталась в логотипе и мелких деталях. */
.btn-primary {
  position: relative;
  background: linear-gradient(135deg, #8AF5E3 0%, var(--mint) 40%, var(--mint-2) 100%);
  color: #03262B;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .55), 0 10px 30px -10px rgba(94, 234, 212, .8);
}
.btn-primary:hover { filter: brightness(1.06) saturate(1.1); }
/* Пульс — расходящийся ореол, только у кнопок «Запросить демо». */
.btn-pulse::after {
  content: ""; position: absolute; inset: -1px; border-radius: inherit; pointer-events: none;
  animation: pulse 2.8s cubic-bezier(.2, .7, .3, 1) infinite;
}
@keyframes pulse {
  0%   { box-shadow: 0 0 0 0 rgba(94, 234, 212, .55); }
  70%  { box-shadow: 0 0 0 14px rgba(94, 234, 212, 0); }
  100% { box-shadow: 0 0 0 0 rgba(94, 234, 212, 0); }
}
.btn-ghost { border-color: var(--line-night); color: var(--on-night); }
.btn-ghost:hover { border-color: var(--on-night-2); }
.btn-ink { border-color: var(--line); color: var(--ink); }
.btn-ink:hover { border-color: var(--ink-2); }

/* ---------- header ---------- */
/* Шапка «из матового стекла», как в iOS: полупрозрачная, с насыщением того, что под ней. */
.top {
  position: sticky; top: 0; z-index: 20;
  background: rgba(6, 51, 58, .8);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid var(--line-night);
  color: var(--on-night);
}
.top-row { display: flex; align-items: center; gap: 24px; height: 68px; }
/* flex: none — иначе ряд шапки сжимает ссылку, а img с max-width: 100% сжимается вместе с ней (на 1440 px логотип схлопывался в ноль). */
.top-logo { flex: none; }
.top-logo img { height: 26px; width: auto; }
.top-nav { display: flex; gap: 22px; margin-right: auto; }
.top-nav a {
  font-size: 15px; text-decoration: none; color: var(--on-night-2); white-space: nowrap;
  transition: color .2s;
}
.top-nav a:hover { color: var(--on-night); }
.top .btn { min-height: 40px; padding: 0 18px; font-size: 15px; white-space: nowrap; }

/* Переключатель языка — сегментированный контрол. */
.lang {
  display: flex; flex: none; padding: 3px;
  border-radius: 999px; border: 1px solid var(--line-night);
  background: rgba(227, 238, 238, .06);
}
.lang a {
  padding: 7px 10px; border-radius: 999px;
  font: 500 12px/1 var(--mono); letter-spacing: .08em;
  color: var(--on-night-2); text-decoration: none;
  transition: background-color .25s, color .25s;
}
.lang a:hover { color: var(--on-night); }
.lang a[aria-current="page"] { background: var(--on-night); color: var(--night); }

.enter { display: flex; align-items: center; }
.enter-field {
  display: flex; align-items: center;
  height: 40px; border-radius: 999px 0 0 999px;
  border: 1px solid var(--line-night); border-right: 0;
  padding-left: 14px;
  font: 400 14px/1 var(--mono); color: var(--on-night-2);
}
.enter-field:focus-within { border-color: var(--on-night-2); }
.enter input {
  width: 92px; border: 0; background: transparent; outline: none;
  font: inherit; color: var(--on-night); padding: 0; text-align: right;
}
.enter input::placeholder { color: rgba(157, 187, 190, .55); }
.enter-suffix { padding-right: 10px; }
.enter button {
  height: 40px; padding: 0 14px;
  border: 1px solid var(--line-night); border-radius: 0 999px 999px 0;
  background: var(--night-2); color: var(--on-night);
  font: 500 14px/1 var(--body); cursor: pointer;
}
.enter button:hover { background: var(--teal); }
.enter-error { font-size: 13px; color: var(--copper-soft); margin: 8px 0 0; min-height: 1em; }
.top .enter-error { display: none; }

/* ---------- hero ---------- */
.hero {
  position: relative;
  /* Первый экран заходит под шапку: стекло лежит на тёмном полотне, а не на светлом фоне body. */
  margin-top: -69px; padding-top: 69px;
  background: var(--night);
  color: var(--on-night);
  overflow: hidden;
}
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  min-height: min(760px, calc(100vh - 68px));
}
.hero-copy {
  position: relative; z-index: 2;
  align-self: center;
  padding: 72px 40px 96px 0;
}
.hero .eyebrow { color: var(--copper); }
/* Бренд в H1 для поиска: выглядит как подпись над заголовком */
.h-display > .eyebrow { display: block; font-variation-settings: normal; }
.hero h1 { font-size: clamp(40px, 5.4vw, 74px); }
.hero-lead {
  max-width: 34em; margin: 28px 0 0;
  font-size: clamp(17px, 1.4vw, 19px);
  color: var(--on-night-2);
}
.hero-lead strong { color: var(--on-night); font-weight: 500; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 36px; }
.hero-note {
  margin: 28px 0 0; font: 400 13px/1.5 var(--mono);
  color: var(--on-night-2); letter-spacing: .02em;
}

/* Мягкое свечение под текстом первого экрана. */
.hero::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(55% 60% at 8% 90%, rgba(94, 234, 212, .16), transparent 70%),
    radial-gradient(40% 45% at 35% 10%, rgba(20, 163, 173, .22), transparent 70%);
}
.fabric {
  position: relative;
  margin-right: calc(-1 * (var(--gutter) + max(0px, (100vw - var(--wrap)) / 2)));
  min-height: 460px;
}
.fabric-cloth {
  position: absolute; inset: 0;
  -webkit-mask-image: linear-gradient(to right, transparent 0, #000 22%);
  mask-image: linear-gradient(to right, transparent 0, #000 22%);
}
.fabric-cloth svg { width: 100%; height: 100%; }
.fabric::before {
  content: ""; position: absolute; z-index: 1; left: 0; right: 0; top: 0; height: 22px;
  background:
    repeating-linear-gradient(90deg, rgba(227, 238, 238, .38) 0 1px, transparent 1px 8px) center 4px / 100% 12px no-repeat,
    linear-gradient(180deg, #031C20, rgba(3, 28, 32, 0));
  -webkit-mask-image: linear-gradient(to right, transparent 0, #000 22%);
  mask-image: linear-gradient(to right, transparent 0, #000 22%);
}
.fabric::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(180deg, rgba(6, 51, 58, 0) 60%, rgba(6, 51, 58, .75));
}

.knit-run { animation: knit-run 2.8s cubic-bezier(.25, .7, .3, 1) both; }
@keyframes knit-run { from { transform: translateY(-104px); } to { transform: translateY(0); } }
/* Полотно идёт 2,8 с, но кривая с долгим хвостом: к 1,7 с оно прошло 98 % пути и на глаз
   уже стоит. Всё, что дальше, привязано к этому моменту, а не к формальному концу анимации —
   иначе ярлык полторы секунды «ждёт» неподвижное полотно. */
.flaw-stitch { opacity: 0; animation: fade-in .4s ease-out 1.6s both; }
.flaw-ring {
  opacity: 0; transform-box: fill-box; transform-origin: center;
  animation: ring-in .6s cubic-bezier(.3, 1.4, .5, 1) 1.75s both;
}
.flaw-label { opacity: 0; animation: fade-in .5s ease-out 2.2s both; }
@keyframes fade-in { from { opacity: 0; } to { opacity: 1; } }
@keyframes ring-in { from { opacity: 0; transform: scale(2.2); } to { opacity: 1; transform: scale(1); } }

.tag {
  position: absolute; z-index: 3;
  left: -8px; bottom: 56px;
  width: 300px;
  background: var(--paper); color: var(--ink);
  border-radius: 6px;
  padding: 30px 20px 18px;
  box-shadow: 0 30px 60px -20px rgba(0, 0, 0, .55), 0 2px 6px rgba(0, 0, 0, .25);
  transform: rotate(-3deg);
  transform-origin: 50% 0;
  animation: tag-drop 1.3s linear 1.9s both;
}
/* Ярлык висит на люверсе (transform-origin сверху): падает и затухающе качается,
   как настоящий, а не отскакивает пружиной. */
@keyframes tag-drop {
  0%   { opacity: 0; transform: translateY(-20px) rotate(-10deg); animation-timing-function: cubic-bezier(.2, .7, .3, 1); }
  32%  { opacity: 1; transform: translateY(0) rotate(1.4deg); animation-timing-function: cubic-bezier(.45, 0, .55, 1); }
  60%  { transform: translateY(0) rotate(-4.6deg); animation-timing-function: cubic-bezier(.45, 0, .55, 1); }
  82%  { transform: translateY(0) rotate(-2.4deg); animation-timing-function: cubic-bezier(.45, 0, .55, 1); }
  100% { opacity: 1; transform: translateY(0) rotate(-3deg); }
}
.tag::before {
  content: ""; position: absolute; top: 11px; left: 50%;
  width: 12px; height: 12px; margin-left: -6px; border-radius: 50%;
  background: var(--night);
  box-shadow: 0 0 0 3px var(--raw-2);
}
.tag-head {
  display: flex; justify-content: space-between; align-items: baseline;
  font: 500 10px/1 var(--mono); letter-spacing: .14em; text-transform: uppercase;
  color: var(--ink-2);
  padding-bottom: 10px; border-bottom: 1px dashed var(--line);
}
.tag-head b { font-family: var(--display); font-size: 12px; letter-spacing: .08em; color: var(--teal); }
.tag-barcode { width: 100%; height: 44px; margin: 12px 0 6px; }
.tag-code { font: 500 13px/1 var(--mono); letter-spacing: .18em; text-align: center; }
.tag dl {
  display: grid; grid-template-columns: auto 1fr; gap: 5px 12px;
  margin: 14px 0 0; padding-top: 12px; border-top: 1px dashed var(--line);
  font: 400 11.5px/1.35 var(--mono);
}
.tag dt { color: var(--ink-2); }
.tag dd { margin: 0; color: var(--ink); }
.tag-grade {
  display: flex; align-items: center; gap: 10px;
  margin-top: 14px; padding-top: 12px; border-top: 1px dashed var(--line);
  font: 400 11px/1.35 var(--mono); color: var(--ink-2);
}
.tag-grade b {
  flex: none;
  display: grid; place-items: center;
  width: 38px; height: 38px; border-radius: 50%;
  border: 2px solid var(--copper); color: #9A5418;
  font: 700 14px/1 var(--display);
}

/* ---------- chain ---------- */
.chain {
  padding: clamp(80px, 10vw, 128px) 0;
  background: radial-gradient(70% 60% at 100% 0%, rgba(94, 234, 212, .18), transparent 65%), var(--raw);
}
.section-head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 40px; align-items: end; }
.section-head h2 { font-size: clamp(32px, 4vw, 54px); max-width: 14em; }
.section-head p { margin: 0; color: var(--ink-2); max-width: 30em; }

.chain-list {
  position: relative;
  list-style: none; margin: 64px 0 0; padding: 0;
  display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 28px;
}
.chain-list::before {
  content: ""; position: absolute; top: 17px; height: 2px;
  left: 18px; right: calc((100% - 5 * 28px) / 6 - 18px);
  background: var(--copper);
  border-radius: 2px;
}
.chain-step { position: relative; }
.chain-node {
  position: relative;
  width: 36px; height: 36px; border-radius: 50%;
  background: var(--raw); border: 2px solid var(--copper);
  display: grid; place-items: center;
  font: 500 13px/1 var(--mono); color: #9A5418;
}
.chain-step h3 {
  font-family: var(--display); font-variation-settings: "SHRP" 70;
  font-size: 21px; font-weight: 700; letter-spacing: -0.01em;
  margin: 22px 0 8px;
}
.chain-step p { margin: 0; font-size: 15px; line-height: 1.55; color: var(--ink-2); }
.chain-step code { font: 500 13px/1 var(--mono); color: var(--ink); }

/* Цепочка рисуется при прокрутке: линия тянется слева направо, шаги загораются по мере того,
   как она до них доходит. Начальное состояние — только при .js и без reduced motion:
   без скрипта всё видно сразу. */
@media (prefers-reduced-motion: no-preference) {
  .js .chain-list::before {
    transform: scaleX(0); transform-origin: left center;
    transition: transform 1.6s cubic-bezier(.45, 0, .2, 1) .1s;
  }
  .js .chain-list.is-in::before { transform: scaleX(1); }
  .js .chain-step {
    opacity: 0; transform: translateY(12px);
    transition: opacity .5s ease-out, transform .6s cubic-bezier(.2, .7, .3, 1);
    transition-delay: calc(.1s + var(--i) * .27s);
  }
  .js .chain-step.is-in { opacity: 1; transform: none; }
  .js .chain-node { border-color: var(--raw-2); color: var(--ink-2); transition: border-color .4s, color .4s; transition-delay: inherit; }
  .js .chain-step.is-in .chain-node { border-color: var(--copper); color: #9A5418; }
  .js .chain-step::before { transform: scaleY(0); transform-origin: top; transition: transform .7s cubic-bezier(.45, 0, .2, 1) .3s; }
  .js .chain-step.is-in::before { transform: scaleY(1); }
}

/* ---------- roles: вкладки с настоящими экранами ---------- */
.roles { padding: clamp(80px, 10vw, 120px) 0; background: radial-gradient(60% 50% at 0% 100%, rgba(20, 163, 173, .09), transparent 70%), var(--paper); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.role-tabs {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-top: 56px; border-top: 1px solid var(--line);
}
.role {
  position: relative; display: flex; flex-direction: column; justify-content: flex-start;
  margin: 0; padding: 22px 24px 26px 0;
  background: none; border: 0; text-align: left;
  font: inherit; color: inherit; cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.role + .role { padding-left: 24px; border-left: 1px solid var(--line); }
.role::before {
  content: ""; position: absolute; top: -2px; left: 0; right: 24px; height: 3px;
  background: var(--copper); border-radius: 2px;
  transform: scaleX(0); transform-origin: left center;
  transition: transform .45s cubic-bezier(.2, .7, .3, 1);
}
.role + .role::before { left: 24px; }
.role[aria-selected="true"]::before { transform: scaleX(1); }
.role:focus-visible { outline-offset: -3px; }
.role-who {
  display: block; margin-bottom: 10px;
  font: 500 12px/1 var(--mono); letter-spacing: .12em; text-transform: uppercase;
  color: var(--ink-2); transition: color .2s;
}
.role-title {
  display: block;
  font-family: var(--display); font-variation-settings: "SHRP" 70;
  font-size: 21px; font-weight: 700; line-height: 1.2; letter-spacing: -0.01em;
  color: var(--ink-2); transition: color .2s;
}
.role:hover .role-title, .role[aria-selected="true"] .role-title { color: var(--ink); }
.role[aria-selected="true"] .role-who { color: var(--teal); }

.role-panels { display: grid; margin-top: 8px; }
.role-panel {
  grid-area: 1 / 1; margin: 0;
  opacity: 0; visibility: hidden; transform: translateY(10px);
  transition: opacity .3s, transform .45s cubic-bezier(.2, .7, .3, 1), visibility 0s .3s;
}
.role-panel.is-active { opacity: 1; visibility: visible; transform: none; transition: opacity .35s, transform .45s cubic-bezier(.2, .7, .3, 1), visibility 0s; }
.screen {
  display: block; overflow: hidden; border-radius: 18px;
  background: var(--night);
  box-shadow: 0 0 0 1px rgba(6, 51, 58, .12), 0 2px 6px rgba(6, 51, 58, .08), 0 60px 100px -50px rgba(6, 51, 58, .65);
  cursor: zoom-in;
  transition: transform .5s var(--ease-out), box-shadow .5s var(--ease-out);
}
.screen:hover { transform: translateY(-4px); box-shadow: 0 0 0 1px rgba(6, 51, 58, .12), 0 2px 6px rgba(6, 51, 58, .08), 0 70px 110px -50px rgba(6, 51, 58, .7); }
/* Окно браузера: три кнопки слева, адрес — в пилюле по центру. */
.screen-bar {
  position: relative;
  display: flex; align-items: center; gap: 8px;
  height: 40px; padding: 0 16px;
  background: #0B2A2F; border-bottom: 1px solid var(--line-night);
}
.screen-bar i { flex: none; width: 12px; height: 12px; border-radius: 50%; background: #FF5F57; }
.screen-bar i + i { background: #FEBC2E; }
.screen-bar i + i + i { background: #28C840; }
.screen-bar span {
  position: absolute; left: 50%; transform: translateX(-50%);
  max-width: calc(100% - 140px); padding: 6px 16px; border-radius: 8px;
  background: rgba(227, 238, 238, .07);
  overflow: hidden; white-space: nowrap; text-overflow: ellipsis;
  font: 400 12px/1 var(--mono); color: var(--on-night-2);
}
.screen img { width: 100%; height: auto; }
.role-panel figcaption { margin-top: 20px; max-width: 46em; color: var(--ink-2); }
.role-panel figcaption a { color: var(--teal); }

/* ---------- app: приложение склада ---------- */
.app {
  background:
    radial-gradient(45% 60% at 80% 50%, rgba(94, 234, 212, .16), transparent 70%),
    radial-gradient(50% 50% at 0% 0%, rgba(20, 163, 173, .18), transparent 70%),
    var(--night);
  color: var(--on-night); padding: clamp(80px, 10vw, 128px) 0; overflow: hidden;
}
.app .eyebrow { color: var(--copper); }
.app-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 64px; align-items: center; }
.app h2 { font-size: clamp(30px, 3.6vw, 48px); }
.app-lead { margin: 22px 0 0; max-width: 32em; color: var(--on-night-2); }
.app-lead strong { color: var(--on-night); font-weight: 500; }
.app-list { margin: 32px 0 0; }
.app-list div { padding: 16px 0; border-top: 1px solid var(--line-night); }
.app-list dt { font-weight: 600; color: var(--on-night); margin-bottom: 2px; }
.app-list dd { margin: 0; font-size: 15px; color: var(--on-night-2); }
.app-note { margin: 24px 0 0; font: 400 13px/1.6 var(--mono); color: var(--on-night-2); }
.phones { display: flex; justify-content: center; gap: 24px; padding-bottom: 56px; }
.phone {
  width: min(284px, 46%); margin: 0; padding: 9px;
  border-radius: 40px; background: linear-gradient(160deg, #0D3A41, #021A1E 40%);
  box-shadow: 0 0 0 1px rgba(227, 238, 238, .12), inset 0 1px 0 rgba(227, 238, 238, .12), 0 40px 70px -24px rgba(0, 0, 0, .65);
}
.phone img { width: 100%; height: auto; border-radius: 31px; }
.phone-2 { position: relative; transform: translateY(56px); }

/* Скан в приложении: луч проходит по экрану, и сверху списка появляется новый рулон.
   Карточка повторяет карточку со снимка (540×1200), размеры — в cqw ширины экрана. */
.scan {
  position: absolute; inset: 9px; border-radius: 31px; overflow: hidden; pointer-events: none;
  container-type: inline-size;
}
.scan-beam {
  position: absolute; left: 4%; right: 4%; top: 14%; height: 2px; opacity: 0;
  background: #FF3B30; border-radius: 2px;
  box-shadow: 0 0 6px 1px rgba(255, 59, 48, .9), 0 0 22px 6px rgba(255, 59, 48, .35);
}
.scan-card {
  position: absolute; left: 3.9%; right: 3.9%; top: 21.5%; height: 10.4%;
  padding: 4cqw 3.6cqw 0;
  border-radius: 2.6cqw; background: #fff; opacity: 0;
  font-family: Roboto, var(--body); color: #1B2B2E; line-height: 1;
}
/* Крестик «убрать из отгрузки», как у соседних карточек. */
.scan-card::after {
  content: "✕"; position: absolute; right: 5.4cqw; top: 50%; transform: translateY(-50%);
  font-size: 4.4cqw; color: #D0443A;
}
.scan-card b { display: block; font-size: 3.7cqw; font-weight: 700; }
.scan-card span { display: block; margin-top: 2.6cqw; font-size: 3.1cqw; }
.scan-card i {
  display: inline-block; margin: 2.2cqw 1.2cqw 0 0; padding: 1.1cqw 1.8cqw; border-radius: 1.4cqw;
  background: #DDF0EF; color: #0E7C84; font: 600 2.8cqw/1 Roboto, var(--body);
}
@media (prefers-reduced-motion: no-preference) {
  .phones.is-in .scan-beam { animation: scan-beam 5s ease-in-out 1s infinite; }
  .phones.is-in .scan-card { animation: scan-card 5s var(--ease-out) 1s infinite; }
}
@keyframes scan-beam {
  0%   { opacity: 0; top: 13%; }
  6%   { opacity: 1; }
  20%  { top: 20%; }
  34%  { top: 13%; opacity: 1; }
  40%  { opacity: 0; top: 16%; }
  100% { opacity: 0; }
}
@keyframes scan-card {
  0%, 38% { opacity: 0; transform: translateY(-14px) scale(.97); box-shadow: 0 0 0 0 rgba(94, 234, 212, 0); }
  46%     { opacity: 1; transform: none; box-shadow: 0 0 0 3px rgba(94, 234, 212, .9), 0 10px 30px -8px rgba(43, 184, 176, .7); }
  70%     { box-shadow: 0 0 0 3px rgba(94, 234, 212, 0), 0 4px 12px -6px rgba(6, 51, 58, .2); }
  90%     { opacity: 1; transform: none; }
  100%    { opacity: 0; transform: none; }
}

/* ---------- more: bento-сетка ---------- */
.more {
  padding: clamp(80px, 10vw, 128px) 0;
  background:
    radial-gradient(60% 50% at 0% 0%, rgba(94, 234, 212, .2), transparent 65%),
    radial-gradient(50% 40% at 100% 100%, rgba(20, 163, 173, .12), transparent 70%),
    var(--raw);
}
.bento {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px;
  margin: 56px 0 0; padding: 0; list-style: none;
}
.tile {
  position: relative; overflow: hidden;
  transition: transform .5s var(--ease-out), box-shadow .5s var(--ease-out);
  display: flex; flex-direction: column;
  min-height: 220px; padding: 28px;
  border-radius: 28px;
  background: var(--card);
  box-shadow: var(--shadow-card);
}
.tile:hover { transform: translateY(-3px); box-shadow: 0 1px 2px rgba(6, 51, 58, .04), 0 26px 50px -22px rgba(6, 51, 58, .28); }
.tile-wide { grid-column: span 2; }
.tile h3 {
  font-family: var(--display); font-variation-settings: "SHRP" 70;
  font-size: 21px; font-weight: 700; line-height: 1.2; letter-spacing: -0.01em;
  margin: auto 0 8px; padding-top: 28px;
}
.tile p { margin: 0; font-size: 15px; line-height: 1.55; color: var(--ink-2); max-width: 32em; }
.tile p a, .chain-step p a { color: inherit; text-underline-offset: 3px; text-decoration-color: var(--copper); }
/* Иконка — скруглённый квадрат, как значок приложения. */
.tile-icon {
  flex: none; display: grid; place-items: center;
  width: 48px; height: 48px; border-radius: 14px;
  background: linear-gradient(160deg, #4FDCCB, var(--teal-2) 50%, var(--teal));
  color: #fff;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .35), 0 8px 18px -8px rgba(20, 163, 173, .8);
}
.tile-icon svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.tile-dark { background: var(--night); color: var(--on-night); }
.tile-dark p { color: var(--on-night-2); }
.tile-dark .tile-icon { background: linear-gradient(160deg, var(--copper-soft), var(--copper)); color: var(--night); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .35), 0 6px 14px -6px rgba(224, 138, 60, .7); }
.tile-teal { background: linear-gradient(150deg, #2FC7BF, #0E8F98 50%, var(--night-2)); color: #fff; }
.tile-teal p { color: rgba(255, 255, 255, .78); }
.tile-teal .tile-icon { background: rgba(255, 255, 255, .16); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .25); }
/* Плитка-ссылка на соседний продукт: кликабельна вся карточка, адрес — пилюлей внизу. */
.tile-link {
  align-self: flex-start; margin-top: 18px;
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 14px; border-radius: 999px;
  background: rgba(14, 110, 120, .08); border: 1px solid rgba(14, 110, 120, .16);
  font: 500 13px/1 var(--mono); color: var(--teal); text-decoration: none;
  transition: background-color .2s, color .2s;
}
.tile-link::after { content: ""; position: absolute; inset: 0; }
.tile:hover .tile-link { background: var(--teal); color: #fff; }

/* Сверка пряжи: полоса «выдано → в полотно / угар / осталось в цехе». */
.yarn-bar { display: flex; height: 12px; margin-top: 24px; border-radius: 999px; overflow: hidden; gap: 3px; }
.yarn-bar span { display: block; border-radius: 3px; }
.yarn-bar .y-fab { flex: 86.7; background: var(--teal-2); }
.yarn-bar .y-waste { flex: 3.5; background: var(--copper); }
.yarn-bar .y-left { flex: 9.8; background: rgba(227, 238, 238, .35); }
.yarn-legend {
  display: flex; flex-wrap: wrap; gap: 6px 18px; margin: 12px 0 0; padding: 0; list-style: none;
  font: 400 12px/1.4 var(--mono); color: var(--on-night-2);
}
.yarn-legend li::before { content: ""; display: inline-block; width: 8px; height: 8px; border-radius: 50%; margin-right: 7px; background: var(--c); }
.yarn-legend b { color: var(--on-night); font-weight: 500; }

/* Отдельная база: адреса фабрик пилюлями. */
.tenants { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 24px; }
.tenants span {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 14px; border-radius: 999px;
  background: rgba(255, 255, 255, .14); border: 1px solid rgba(255, 255, 255, .18);
  font: 400 13px/1 var(--mono); color: #fff;
}
.tenants span::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: #7CE3A3; }

/* Полоса-пример в плитке: доли и цвета — в разметке (--f доля, --c цвет). */
.stack-bar { display: flex; height: 12px; margin-top: 24px; border-radius: 999px; overflow: hidden; gap: 3px; }
.stack-bar span { display: block; flex: var(--f); background: var(--c); border-radius: 3px; }
/* Легенда писалась под тёмную плитку; на светлой — цвета текста страницы. */
.tile:not(.tile-dark):not(.tile-teal) .yarn-legend { color: var(--ink-2); }
.tile:not(.tile-dark):not(.tile-teal) .yarn-legend b { color: var(--ink); }

/* ---------- money: деньги по заказу — светлая полоса перед тёмным справочником ---------- */
.money {
  padding: clamp(80px, 10vw, 128px) 0;
  background: radial-gradient(55% 50% at 100% 0%, rgba(224, 138, 60, .10), transparent 70%), var(--paper);
  border-top: 1px solid var(--line);
}

/* ---------- reads: справочник технолога — статьи с калькуляторами ---------- */
/* Тёмная полоса между двумя светлыми секциями: ссылки в подвале никто не видел. */
.reads {
  padding: clamp(80px, 10vw, 128px) 0;
  background: radial-gradient(50% 60% at 0% 100%, rgba(94, 234, 212, .12), transparent 70%), var(--night);
  color: var(--on-night);
}
/* Подпись — тоже <p> в .section-head, поэтому правило с тем же весом, что и у абзаца. */
.reads .section-head .eyebrow { color: var(--copper); margin-bottom: 18px; }
.reads .section-head p { color: var(--on-night-2); }
.read-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin: 56px 0 0; padding: 0; list-style: none; }
.read-card {
  display: flex; flex-direction: column; height: 100%;
  padding: 28px; border-radius: 24px;
  color: inherit; text-decoration: none;
  background: linear-gradient(160deg, rgba(23, 144, 156, .22), rgba(10, 67, 75, .5) 60%);
  border: 1px solid var(--line-night);
  box-shadow: inset 0 1px 0 rgba(227, 238, 238, .08);
  transition: transform .5s var(--ease-out), border-color .3s;
}
.read-card:hover { transform: translateY(-3px); border-color: rgba(94, 234, 212, .4); }
.read-tag { font: 500 12px/1 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--mint); }
.read-card h3 {
  font-family: var(--display); font-variation-settings: "SHRP" 70;
  font-size: 24px; font-weight: 700; line-height: 1.15; letter-spacing: -0.01em;
  margin: 18px 0 10px;
}
.read-card p { margin: 0 0 24px; font-size: 15px; line-height: 1.55; color: var(--on-night-2); }
.read-go { margin-top: auto; font-weight: 600; color: var(--copper-soft); }
.read-card:hover .read-go { color: var(--copper); }

/* ---------- faq: сгруппированный список, как в настройках iOS ---------- */
.faq { padding: clamp(80px, 10vw, 120px) 0; background: radial-gradient(55% 60% at 100% 0%, rgba(94, 234, 212, .12), transparent 70%), var(--paper); border-top: 1px solid var(--line); }
.faq-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: 56px; }
.faq h2 { font-size: clamp(32px, 4vw, 48px); }
.faq-list {
  border-radius: 22px; overflow: hidden;
  background: var(--card);
  box-shadow: var(--shadow-card);
}
.faq-list details { position: relative; }
/* Разделитель с отступом слева — не во всю ширину, как у ячеек iOS. */
.faq-list details + details::before {
  content: ""; position: absolute; top: 0; left: 24px; right: 0; height: 1px; background: var(--line);
}
.faq-list summary {
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  padding: 20px 24px; list-style: none; cursor: pointer;
  font-size: 17px; font-weight: 600;
  transition: background-color .2s;
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after {
  content: ""; flex: none; width: 9px; height: 9px; margin-right: 4px;
  border-right: 2px solid var(--copper); border-bottom: 2px solid var(--copper);
  transform: rotate(-45deg);
  transition: transform .3s var(--ease-out);
}
.faq-list details[open] summary::after { transform: rotate(45deg); }
.faq-list summary:hover { background: rgba(14, 110, 120, .04); }
.faq-list summary:active { background: rgba(14, 110, 120, .08); }
.faq-list details p { margin: 0; padding: 0 24px 22px; max-width: 44em; color: var(--ink-2); }
.faq-list details p a { color: var(--teal); }

/* ---------- connect ---------- */
.connect { background: radial-gradient(50% 70% at 90% 30%, rgba(94, 234, 212, .14), transparent 70%), var(--night); color: var(--on-night); padding: clamp(80px, 10vw, 128px) 0; }
.connect .eyebrow { color: var(--copper); }
.connect-grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 64px; align-items: start; }
.connect h2 { font-size: clamp(30px, 3.6vw, 48px); }
.steps { list-style: none; margin: 40px 0 0; padding: 0; counter-reset: step; }
.steps li {
  counter-increment: step;
  display: grid; grid-template-columns: 44px 1fr; gap: 16px;
  padding: 18px 0; border-top: 1px solid var(--line-night);
}
.steps li::before {
  content: counter(step);
  font: 500 13px/1.9 var(--mono); color: var(--copper);
}
.steps b { display: block; font-weight: 600; color: var(--on-night); margin-bottom: 2px; }
.steps span { color: var(--on-night-2); font-size: 15px; }
.steps code { font: 500 14px/1 var(--mono); color: var(--on-night); }

.ask {
  background: linear-gradient(160deg, rgba(23, 144, 156, .28), rgba(10, 67, 75, .55) 55%);
  border: 1px solid var(--line-night);
  border-radius: 28px;
  padding: clamp(28px, 4vw, 44px);
  box-shadow: inset 0 1px 0 rgba(227, 238, 238, .1), 0 40px 80px -40px rgba(0, 0, 0, .6);
}
.ask h3 {
  font-family: var(--display); font-variation-settings: "SHRP" 70;
  font-size: clamp(24px, 2.4vw, 30px); font-weight: 700; line-height: 1.15; letter-spacing: -0.015em;
  margin: 0 0 12px;
}
.ask p { margin: 0; color: var(--on-night-2); }
.ask-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.ask-phone { display: block; margin-top: 24px; font: 500 20px/1 var(--mono); letter-spacing: .04em; color: var(--on-night); text-decoration: none; }
.ask-phone:hover { color: var(--copper-soft); }

/* ---------- footer ---------- */
.foot { background: #042328; color: var(--on-night-2); padding: 48px 0 40px; font-size: 14px; }
.foot-row { display: flex; flex-wrap: wrap; gap: 32px; align-items: flex-start; justify-content: space-between; }
.foot-logo img { height: 22px; width: auto; }
.foot-logo p { margin: 12px 0 0; max-width: 22em; }
.foot-enter-label { margin: 0 0 10px; color: var(--on-night); font-weight: 500; }
.foot .enter input { width: 120px; }
/* Соседний продукт — строкой в подвале, без отдельного блока. */
.foot-more a { display: block; color: var(--on-night); text-decoration: none; font-weight: 500; }
.foot-more a:hover { color: var(--copper-soft); }
.foot-more span { display: block; margin-top: 4px; max-width: 18em; }
/* Статьи-справочники — колонкой ссылок. */
.foot-reads a { display: block; color: var(--on-night); text-decoration: none; padding: 2px 0; }
.foot-reads a:hover { color: var(--copper-soft); }
.foot-copy { margin-top: 36px; padding-top: 20px; border-top: 1px solid var(--line-night); font: 400 12px/1.5 var(--mono); }

/* ---------- responsive ---------- */
/* ---------- shop-tv: цех на телевизоре ---------- */
.shop-tv {
  padding: clamp(80px, 10vw, 128px) 0;
  background: radial-gradient(55% 60% at 85% 45%, rgba(20, 163, 173, .14), transparent 70%), var(--raw);
}
.shop-tv-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 56px; align-items: center; }
.shop-tv h2 { font-size: clamp(30px, 3.6vw, 48px); }
.shop-tv-lead { margin: 22px 0 0; max-width: 32em; color: var(--ink-2); }
.shop-tv-list { margin: 28px 0 0; }
.shop-tv-list div { padding: 14px 0; border-top: 1px solid var(--line); }
.shop-tv-list dt { font-weight: 600; margin-bottom: 2px; }
.shop-tv-list dd { margin: 0; font-size: 15px; color: var(--ink-2); }
.shop-tv-note { margin: 22px 0 0; font: 400 13px/1.6 var(--mono); color: var(--ink-2); }

/* Телевизор на стене: тонкая рамка, кронштейн-тень снизу. */
.tv-set { margin: 0; padding-bottom: 28px; position: relative; }
.tv-set::after {
  content: ""; position: absolute; left: 18%; right: 18%; bottom: 0; height: 28px;
  background: radial-gradient(50% 100% at 50% 0%, rgba(6, 51, 58, .35), transparent 70%);
  pointer-events: none;
}
.tv-frame {
  display: block; padding: 1.1%; border-radius: 14px;
  background: linear-gradient(160deg, #1A2226, #05090B 55%);
  box-shadow: 0 0 0 1px rgba(6, 51, 58, .25), inset 0 1px 0 rgba(255, 255, 255, .08), 0 50px 90px -40px rgba(6, 51, 58, .75);
  cursor: zoom-in;
  transition: transform .5s var(--ease-out);
}
.tv-frame:hover { transform: translateY(-4px); }
.tv-screen { position: relative; display: block; border-radius: 4px; overflow: hidden; }
.tv-screen img { width: 100%; height: auto; }

/* Красная лампа остановленной машины мигает, как на ТВ в цехе. Положение — из
   scripts/promo/shoot.py (печатает «лампа: …» при съёмке tv): переснимете
   экран — сверьте проценты. В погасшей фазе лампу закрывает цвет выключенной. */
.tv-blink {
  position: absolute; left: 59.40%; top: 43.63%; width: .8%; height: .77%;
  border-radius: 2px; background: #EF4444;
  box-shadow: 0 0 6px 2px rgba(239, 68, 68, .85), 0 0 18px 6px rgba(239, 68, 68, .35);
}
@media (prefers-reduced-motion: no-preference) {
  .tv-blink { animation: tv-blink 1.1s steps(1) infinite; }
}
@keyframes tv-blink {
  50% { background: #2A3547; box-shadow: none; }
}

@media (max-width: 1240px) {
  .top-nav { display: none; }
  .top-row .enter { margin-left: auto; }
}
@media (max-width: 1080px) {
  .chain-list { grid-template-columns: repeat(3, minmax(0, 1fr)); row-gap: 48px; }
  .chain-list::before { display: none; }
  .faq-grid { grid-template-columns: 1fr; gap: 32px; }
  .bento { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .role-title { font-size: 19px; }
}
@media (max-width: 860px) {
  .top-row .enter { display: none; }
  .top-row .lang { margin-left: auto; }
  .top-row { gap: 12px; }
  .hero-grid { grid-template-columns: 1fr; min-height: 0; }
  .hero-copy { padding: 36px 0 64px; }
  .fabric { order: -1; margin: 0 calc(-1 * var(--gutter)); min-height: 500px; }
  .fabric-cloth, .fabric::before { -webkit-mask-image: none; mask-image: none; }
  .tag { left: var(--gutter); bottom: 24px; }
  .section-head { grid-template-columns: 1fr; gap: 16px; }
  .connect-grid { grid-template-columns: 1fr; gap: 48px; }
  .read-list { grid-template-columns: 1fr; margin-top: 40px; }
  .app-grid { grid-template-columns: 1fr; gap: 48px; }
  .shop-tv-grid { grid-template-columns: 1fr; gap: 40px; }
}
@media (max-width: 600px) {
  body { font-size: 16px; }
  .chain-list { grid-template-columns: 1fr; row-gap: 0; }
  .chain-step { display: grid; grid-template-columns: 36px 1fr; column-gap: 18px; padding-bottom: 28px; }
  .chain-step::before {
    content: ""; position: absolute; left: 17px; top: 36px; bottom: 0; width: 2px; background: var(--copper);
  }
  .chain-step:last-child::before { display: none; }
  .chain-step h3 { margin: 4px 0 6px; }
  .chain-step p { grid-column: 2; }
  .role-tabs { grid-template-columns: repeat(2, minmax(0, 1fr)); margin-top: 40px; }
  .role, .role + .role { padding: 16px 14px 18px 0; }
  .role:nth-child(even) { padding-left: 14px; }
  .role:nth-child(odd) { border-left: 0; }
  .role:nth-child(n+3) { border-top: 1px solid var(--line); }
  .role::before, .role + .role::before { left: 0; right: 14px; }
  .role:nth-child(even)::before { left: 14px; right: 0; }
  .role-title { font-size: 17px; }
  .screen-bar { height: 30px; padding: 0 10px; gap: 5px; }
  .screen-bar i { width: 8px; height: 8px; }
  .screen-bar span { font-size: 10px; padding: 4px 10px; max-width: calc(100% - 80px); }
  .role-panel figcaption { font-size: 15px; margin-top: 16px; }
  .phones { gap: 14px; padding-bottom: 36px; }
  .phone { padding: 6px; border-radius: 26px; }
  .phone img { border-radius: 21px; }
  .phone-2 { transform: translateY(36px); }
  .scan { inset: 6px; border-radius: 21px; }
  .bento { grid-template-columns: 1fr; gap: 12px; margin-top: 40px; }
  .tile-wide { grid-column: auto; }
  .tile { min-height: 0; padding: 24px; border-radius: 24px; }
  .tile h3 { padding-top: 18px; }
  .tile-icon { width: 44px; height: 44px; border-radius: 13px; }
  .top .btn { padding: 0 14px; font-size: 14px; }
  .faq-list { border-radius: 18px; }
  .faq-list summary { padding: 18px 20px; font-size: 16px; }
  .faq-list details p { padding: 0 20px 20px; }
  .faq-list details + details::before { left: 20px; }
  .screen { border-radius: 12px; }
  .tv-frame { border-radius: 9px; }
  .fabric { min-height: 460px; }
  .tag { width: 280px; left: 50%; margin-left: -140px; top: calc(48.2vw + 8px); bottom: auto; scale: .82; }
  .hero-copy { padding-top: max(40px, calc(48.2vw - 117px)); }
}

/* Секции проявляются при прокрутке. Начальное состояние — только при .js и без reduced motion:
   без скрипта всё видно сразу. */
@media (prefers-reduced-motion: no-preference) {
  .js .reveal {
    opacity: 0; transform: translateY(28px);
    transition: opacity .7s ease-out, transform .9s var(--ease-out);
    transition-delay: calc(var(--i, 0) * .08s);
  }
  .js .reveal.is-in { opacity: 1; transform: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .knit-run, .flaw-stitch, .flaw-ring, .flaw-label, .tag { animation: none; opacity: 1; }
  .btn-pulse::after { animation: none; }
  .role-panel, .role-panel.is-active, .role::before { transition: none; }
}
