/* ==========================================================================
   Ecolite — лендинг eco-lite.ru
   Собственная айдентика Ecolite. Намеренно не использует фирменный стиль
   «ЭкоСтандарт групп» (шрифты Лента/Мёбиус/Визир, зелёная палитра, лого).
   Направление: технический документ — бумага, чернила, сигнальный акцент.
   ========================================================================== */

/* ---------- Шрифты (self-hosted, без обращений к Google) ---------- */

@font-face {
  font-family: 'Onest';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('fonts/onest-cyrillic.woff2') format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: 'Onest';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('fonts/onest-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/jbmono-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/jbmono-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 {
  --ink: #14161a;
  --ink-70: #43474f;
  --ink-45: #676c75;
  --paper: #f1f1ee;
  --surface: #ffffff;
  --line: #dcdcd5;
  --line-strong: #c3c3ba;
  --accent: #ff5b00;
  --accent-deep: #c33f00;
  --dark: #16181c;
  --dark-2: #22252b;

  --r: 4px;

  --sp-1: 4px;
  --sp-2: 8px;
  --sp-3: 12px;
  --sp-4: 16px;
  --sp-5: 24px;
  --sp-6: 32px;
  --sp-7: 48px;
  --sp-8: 72px;
  --sp-9: 112px;

  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
  --shell: 1200px;
}

/* ---------- База ---------- */

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: 'Onest', system-ui, -apple-system, 'Segoe UI', sans-serif;
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
}

h1,
h2,
h3 {
  margin: 0;
  font-weight: 600;
  letter-spacing: -0.028em;
  line-height: 1.08;
  text-wrap: balance;
}

p {
  margin: 0;
  text-wrap: pretty;
}

:focus-visible {
  outline: 2px solid var(--accent-deep);
  outline-offset: 3px;
  border-radius: 2px;
}

::selection {
  background: var(--accent);
  color: #fff;
}

.shell {
  width: 100%;
  max-width: var(--shell);
  margin-inline: auto;
  padding-inline: var(--sp-5);
}

.skip {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--ink);
  color: #fff;
  padding: 10px 16px;
  z-index: 100;
}
.skip:focus {
  left: 8px;
  top: 8px;
}

/* ---------- Типографика-утилиты ---------- */

.mono {
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.eyebrow {
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent-deep);
  display: block;
  margin-bottom: var(--sp-4);
}

.lead {
  font-size: clamp(17px, 1.5vw, 19px);
  color: var(--ink-70);
  line-height: 1.55;
}

.meta {
  font-size: 15px;
  color: var(--ink-45);
  line-height: 1.5;
}

/* ---------- Кнопки ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 46px;
  padding: 0 22px;
  border: 1px solid transparent;
  border-radius: var(--r);
  font: inherit;
  font-size: 16px;
  font-weight: 500;
  line-height: 1;
  white-space: nowrap;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.18s var(--ease), border-color 0.18s var(--ease),
    color 0.18s var(--ease), transform 0.18s var(--ease);
}

.btn:active {
  transform: translateY(1px);
}

.btn--primary {
  background: var(--ink);
  color: #fff;
}
.btn--primary:hover {
  background: #000;
}

.btn--ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--line-strong);
}
.btn--ghost:hover {
  border-color: var(--ink);
}

.btn--signal {
  background: var(--accent);
  color: var(--ink);
  font-weight: 600;
}
.btn--signal:hover {
  background: #ff7128;
}

.btn--onDark {
  background: transparent;
  color: #fff;
  border-color: rgba(255, 255, 255, 0.32);
}
.btn--onDark:hover {
  border-color: #fff;
}

.btn--sm {
  min-height: 38px;
  padding: 0 14px;
  font-size: 15px;
}

/* ---------- Шапка ---------- */

.nav {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(241, 241, 238, 0.86);
  backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s var(--ease);
}
.nav[data-stuck='true'] {
  border-bottom-color: var(--line);
}

.nav__in {
  height: 68px;
  display: flex;
  align-items: center;
  gap: var(--sp-6);
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 0;
  text-decoration: none;
  font-size: 19px;
  font-weight: 650;
  letter-spacing: -0.03em;
  flex: none;
}
.logo__terminal {
  width: 12px;
  height: 6px;
  margin-left: 7px;
  background: var(--accent);
  border-radius: 99px;
  display: inline-block;
}

.nav__links {
  display: flex;
  align-items: center;
  gap: var(--sp-5);
  margin-left: auto;
}
.nav__links a {
  text-decoration: none;
  font-size: 15px;
  color: var(--ink-70);
  padding: 6px 0;
  border-bottom: 1px solid transparent;
  transition: color 0.16s var(--ease), border-color 0.16s var(--ease);
}
.nav__links a:hover {
  color: var(--ink);
  border-bottom-color: var(--accent);
}

.nav__cta {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  margin-left: var(--sp-5);
}

/* ---------- Секции ---------- */

.section {
  padding-block: var(--sp-9);
  border-top: 1px solid var(--line);
}
.section--tight {
  padding-block: var(--sp-8);
}

.section__head {
  max-width: 640px;
  margin-bottom: var(--sp-8);
}
.section__head h2 {
  font-size: clamp(28px, 3.4vw, 40px);
}
.section__head p {
  margin-top: var(--sp-4);
}

/* ---------- 1. Герой: асимметричный сплит ---------- */

.hero {
  position: relative;
  padding-top: clamp(56px, 7vw, 96px);
  padding-bottom: clamp(56px, 7vw, 96px);
  overflow: hidden;
}

/* Фон: схема маршрута выезда. Декоративный, поверх него всегда лежит контент. */
.hero__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  -webkit-mask-image: linear-gradient(105deg, transparent 30%, #000 62%);
  mask-image: linear-gradient(105deg, transparent 30%, #000 62%);
}
.hero__bg svg {
  width: 100%;
  height: 100%;
  display: block;
}
.hero__grid-lines {
  color: var(--line);
  opacity: 0.3;
}
.hero__route {
  stroke: var(--line-strong);
  stroke-width: 1.5;
  opacity: 0.35;
}
.hero__route-live {
  stroke: var(--accent);
  stroke-width: 2;
  stroke-dasharray: 120 1600;
  stroke-dashoffset: 1720;
  animation: route 9s linear infinite;
}
.hero__stop {
  fill: var(--paper);
  stroke: var(--line-strong);
  stroke-width: 2;
}

@keyframes route {
  to {
    stroke-dashoffset: 0;
  }
}

.hero__grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.92fr);
  gap: clamp(32px, 5vw, 72px);
  align-items: center;
}

.hero h1 {
  font-size: clamp(38px, 5.2vw, 62px);
  font-weight: 600;
}
.hero h1 em {
  font-style: normal;
  position: relative;
  white-space: nowrap;
}
.hero h1 em::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0.06em;
  height: 0.09em;
  background: var(--accent);
}

.hero__sub {
  margin-top: var(--sp-5);
  max-width: 46ch;
  font-size: clamp(17px, 1.6vw, 20px);
  color: var(--ink-70);
  line-height: 1.5;
}

.hero__actions {
  margin-top: var(--sp-7);
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-3);
}

.hero__note {
  margin-top: var(--sp-5);
  font-size: 14px;
  color: var(--ink-45);
}

.hero__visual {
  position: relative;
  margin-right: calc(-1 * clamp(16px, 3vw, 48px));
}

/* ---------- Мокапы интерфейса ---------- */

.mock {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--line-strong);
  border-radius: var(--r);
  overflow: hidden;
  box-shadow: 0 1px 0 rgba(20, 22, 26, 0.04), 0 18px 40px -28px rgba(20, 22, 26, 0.5);
}
.mock::before {
  content: '';
  position: absolute;
  inset: 0 0 auto 0;
  height: 2px;
  background: var(--accent);
  z-index: 2;
}

.mock__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-4);
  padding: 14px var(--sp-5) 12px;
  border-bottom: 1px solid var(--line);
}
.mock__tabs {
  display: flex;
  gap: var(--sp-4);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-45);
}
.mock__tabs b {
  position: relative;
  color: var(--ink);
  font-weight: 500;
}
.mock__tabs b::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: -13px;
  height: 2px;
  background: var(--ink);
}
.mock__count {
  font-size: 11px;
  color: var(--ink-45);
}

.mock__table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
  table-layout: fixed;
}
.mock--orders-cols th:nth-child(1) {
  width: 52px;
}
.mock--orders-cols th:nth-child(3) {
  width: 21%;
}
.mock--orders-cols th:nth-child(4) {
  width: 20%;
}
.mock--orders-cols th:nth-child(5) {
  width: 108px;
}
.mock--orders-cols td:nth-child(5) {
  overflow: visible;
  text-overflow: clip;
}
.mock__table th {
  text-align: left;
  font-weight: 500;
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-45);
  padding: 10px var(--sp-3);
  border-bottom: 1px solid var(--line);
}
.mock__table td {
  padding: 12px var(--sp-3);
  border-bottom: 1px solid var(--line);
  color: var(--ink-70);
  vertical-align: middle;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.mock__table tr:last-child td {
  border-bottom: 0;
}
.mock__num {
  color: var(--accent-deep);
  font-weight: 600;
}
.mock__warn {
  color: var(--accent-deep);
  font-weight: 500;
}

.chip {
  display: inline-block;
  border: 1px solid var(--line-strong);
  border-radius: var(--r);
  padding: 2px 8px;
  font-size: 12px;
  color: var(--ink-70);
  white-space: nowrap;
}
.chip--go {
  border-color: var(--accent);
  color: var(--accent-deep);
}
.chip--work {
  border-color: var(--ink-45);
  color: var(--ink);
}

.mock__tag {
  position: absolute;
  left: 0;
  bottom: 0;
  z-index: 2;
  background: var(--accent);
  color: var(--ink);
  padding: 6px 12px;
  border-top-right-radius: var(--r);
}

/* Плитки: мокап прижат к нижнему краю и обрезается рамкой плитки. */
.mock--sm {
  margin-top: auto;
  padding-top: 0;
  box-shadow: none;
}
.mock--sm .mock__table {
  font-size: 12px;
}
.mock--sm .mock__table th,
.mock--sm .mock__table td {
  padding: 8px var(--sp-3);
}

/* ---------- 3. Как это работает: нумерованный таймлайн ---------- */

.flow {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
  border-top: 1px solid var(--line-strong);
}
.flow__step {
  padding: var(--sp-6) var(--sp-5) 0 0;
  position: relative;
}
.flow__step + .flow__step {
  padding-left: var(--sp-5);
  border-left: 1px solid var(--line);
}
.flow__step::before {
  content: '';
  position: absolute;
  top: -1px;
  left: 0;
  width: 34px;
  height: 3px;
  background: var(--accent);
}
.flow__step + .flow__step::before {
  left: -1px;
}
.flow__n {
  color: var(--ink-45);
  display: block;
  margin-bottom: var(--sp-4);
}
.flow__step h3 {
  font-size: 20px;
  font-weight: 600;
}
.flow__step p {
  margin-top: var(--sp-3);
  font-size: 15px;
  color: var(--ink-70);
  line-height: 1.5;
}

/* ---------- 4. Модули: бенто ---------- */

.bento {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: var(--sp-4);
}

.tile {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: var(--sp-6);
  display: flex;
  flex-direction: column;
  gap: var(--sp-3);
  transition: border-color 0.2s var(--ease), transform 0.2s var(--ease);
}
.tile:hover {
  border-color: var(--line-strong);
  transform: translateY(-2px);
}
.tile h3 {
  font-size: 21px;
  font-weight: 600;
}
.tile p {
  font-size: 15px;
  color: var(--ink-70);
  line-height: 1.5;
}
.tile__label {
  color: var(--ink-45);
}

.tile--wide {
  grid-column: span 4;
}
.tile--third {
  grid-column: span 2;
}
.tile--half {
  grid-column: span 3;
}
.tile--full {
  grid-column: span 6;
}

/* ---------- 5. Мобильное приложение ---------- */

.mobile__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  gap: clamp(32px, 6vw, 80px);
  align-items: start;
}

.speclist {
  border-top: 1px solid var(--line-strong);
}
.speclist div {
  display: grid;
  grid-template-columns: 168px minmax(0, 1fr);
  gap: var(--sp-5);
  padding-block: var(--sp-4);
  border-bottom: 1px solid var(--line);
}
.speclist dt {
  color: var(--ink-45);
  margin: 0;
  padding-top: 3px;
}
.speclist dd {
  margin: 0;
  font-size: 16px;
  color: var(--ink-70);
  line-height: 1.5;
}
.speclist dd b {
  color: var(--ink);
  font-weight: 600;
}

/* ---------- 6. Интеграции ---------- */

.integrations {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 clamp(32px, 6vw, 80px);
  border-top: 1px solid var(--line-strong);
}
.integration {
  padding-block: var(--sp-5);
  border-bottom: 1px solid var(--line);
  display: grid;
  grid-template-columns: 140px minmax(0, 1fr);
  gap: var(--sp-4);
  align-items: baseline;
}
.integration__name {
  font-size: 17px;
  font-weight: 600;
}
.integration p {
  font-size: 15px;
  color: var(--ink-70);
  line-height: 1.5;
}
.integration p a {
  color: var(--ink);
  font-weight: 600;
  text-decoration: none;
  border-bottom: 1px solid var(--accent);
  padding-bottom: 1px;
}
.integration p a:hover { color: var(--accent-deep); }

/* ---------- 7. Публичная страница сделки ---------- */

.public {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: clamp(28px, 4vw, 56px);
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  gap: clamp(28px, 5vw, 64px);
  align-items: center;
}
.public > * {
  min-width: 0;
}
.public h2 {
  font-size: clamp(26px, 3vw, 34px);
}
.public p {
  margin-top: var(--sp-4);
  color: var(--ink-70);
}
.urlbar {
  border: 1px solid var(--line-strong);
  border-radius: var(--r);
  background: var(--paper);
  padding: var(--sp-4);
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  overflow: hidden;
}
.urlbar__dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
  flex: none;
}
.urlbar code {
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 13px;
  color: var(--ink-70);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  min-width: 0;
}
.public__list {
  margin: var(--sp-5) 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: var(--sp-4);
}
.public__list li {
  position: relative;
  padding-left: 26px;
  font-size: 16px;
  color: var(--ink-70);
  line-height: 1.5;
}
.public__list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 11px;
  width: 12px;
  height: 2px;
  background: var(--accent);
}

/* ---------- 8. Финальный блок (единственная тёмная полоса) ---------- */

.final {
  background: var(--dark);
  color: #fff;
  padding-block: var(--sp-9);
}
.final__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.95fr);
  gap: clamp(32px, 6vw, 88px);
  align-items: start;
}
.final h2 {
  font-size: clamp(28px, 3.6vw, 42px);
}
.final__sub {
  margin-top: var(--sp-4);
  color: rgba(255, 255, 255, 0.72);
  max-width: 42ch;
}
.final .eyebrow {
  color: var(--accent);
}

.form {
  display: grid;
  gap: var(--sp-4);
}
.form__row {
  display: grid;
  gap: var(--sp-4);
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.field {
  display: grid;
  gap: 6px;
}
.field label {
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.62);
}
.field input,
.field textarea {
  font: inherit;
  font-size: 16px;
  color: #fff;
  background: var(--dark-2);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: var(--r);
  padding: 11px 13px;
  min-height: 44px;
  transition: border-color 0.16s var(--ease);
}
.field textarea {
  resize: vertical;
  min-height: 88px;
  line-height: 1.5;
}
.field input:hover,
.field textarea:hover {
  border-color: rgba(255, 255, 255, 0.34);
}
.field input:focus-visible,
.field textarea:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 1px;
  border-color: transparent;
}
.field input::placeholder,
.field textarea::placeholder {
  color: rgba(255, 255, 255, 0.52);
}
.hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
.form__foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--sp-4);
}
.form__hint {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.64);
  line-height: 1.45;
  max-width: 34ch;
}
.form__status {
  font-size: 15px;
  min-height: 22px;
}
.form__status[data-kind='ok'] {
  color: #7fe3a2;
}
.form__status[data-kind='err'] {
  color: #ff9b6b;
}

.final__contacts {
  margin-top: var(--sp-7);
  display: grid;
  gap: var(--sp-3);
}
.final__contacts a {
  color: #fff;
  text-decoration: none;
  border-bottom: 1px solid rgba(255, 255, 255, 0.3);
  justify-self: start;
  transition: border-color 0.16s var(--ease);
}
.final__contacts a:hover {
  border-bottom-color: var(--accent);
}

/* ---------- Подвал ---------- */

.foot {
  background: var(--dark);
  color: rgba(255, 255, 255, 0.55);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-block: var(--sp-6);
}
.foot__in {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--sp-5);
  font-size: 14px;
}
.foot .logo {
  color: #fff;
  font-size: 17px;
}
.foot__links {
  margin-left: auto;
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-5);
}
.foot a {
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
}
.foot a:hover {
  color: #fff;
}

/* ---------- Появление при скролле ---------- */
/* Скрываем только когда скрипт подтвердил, что сможет вернуть видимость. */

.js .reveal {
  opacity: 0;
  transform: translateY(10px);
}
.js .reveal.is-in {
  opacity: 1;
  transform: none;
  transition: opacity 0.5s var(--ease), transform 0.5s var(--ease);
  transition-delay: var(--d, 0ms);
}

@media (prefers-reduced-motion: reduce) {
  .js .reveal,
  .js .reveal.is-in {
    opacity: 1;
    transform: none;
    transition: none;
  }
  .btn,
  .tile {
    transition: none;
  }
  .hero__route-live {
    animation: none;
    stroke-dasharray: none;
    stroke-dashoffset: 0;
    opacity: 0.35;
  }
}

/* ==========================================================================
   Адаптив
   ========================================================================== */

/* Планшет: бенто 6 -> 4 колонки, поток 4 -> 2 шага в ряд */
@media (max-width: 1040px) {
  .hero__grid {
    grid-template-columns: 1fr;
    gap: var(--sp-7);
  }
  .hero__visual {
    margin-right: calc(-1 * var(--sp-5));
  }
  .flow {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    row-gap: var(--sp-6);
  }
  .flow__step:nth-child(3) {
    padding-left: 0;
    border-left: 0;
  }
  .bento {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
  .tile--wide {
    grid-column: span 4;
  }
  .tile--full {
    grid-column: span 4;
  }
  .tile--half {
    grid-column: span 2;
  }
  .tile--third {
    grid-column: span 2;
  }
  .mobile__grid,
  .public,
  .final__grid {
    grid-template-columns: minmax(0, 1fr);
  }
  .integrations {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* Мобильный: всё в одну колонку; в шапке остаются логотип и «Войти» */
@media (max-width: 760px) {
  body {
    font-size: 16px;
  }
  :root {
    --sp-9: 72px;
    --sp-8: 56px;
  }
  .nav__links {
    display: none;
  }
  .nav__cta {
    margin-left: auto;
  }
  .nav__cta .btn--primary {
    display: none;
  }
  .hero__visual {
    margin-right: 0;
  }
  /* В мокапе нарядов на узком экране остаются номер, адрес и статус. */
  .mock--orders-cols th:nth-child(3),
  .mock--orders-cols th:nth-child(4),
  .mock--orders-cols td:nth-child(3),
  .mock--orders-cols td:nth-child(4) {
    display: none;
  }
  .mock__table td,
  .mock__table th {
    padding: 10px var(--sp-3);
  }
  .mock--sm .mock__table th:last-child,
  .mock--sm .mock__table td:last-child {
    display: none;
  }
  .flow {
    grid-template-columns: 1fr;
  }
  .flow__step,
  .flow__step + .flow__step {
    padding-left: 0;
    padding-right: 0;
    border-left: 0;
    border-top: 1px solid var(--line);
    padding-top: var(--sp-5);
  }
  .flow__step:first-child {
    border-top: 0;
  }
  .flow__step::before,
  .flow__step + .flow__step::before {
    display: none;
  }
  .bento {
    grid-template-columns: 1fr;
  }
  .tile--wide,
  .tile--half,
  .tile--third,
  .tile--full {
    grid-column: span 1;
  }
  .speclist div {
    grid-template-columns: 1fr;
    gap: var(--sp-1);
  }
  .integration {
    grid-template-columns: 1fr;
    gap: var(--sp-2);
  }
  .form__row {
    grid-template-columns: 1fr;
  }
  .foot__links {
    margin-left: 0;
    width: 100%;
    gap: var(--sp-4);
  }
}

/* ========================================================================== 
   Brand system 01.0: wordmark-first + Proofline
   ========================================================================== */

.hero__eyebrow {
  margin-bottom: var(--sp-5);
}

.hero h1 {
  max-width: 760px;
  font-size: clamp(42px, 5.5vw, 68px);
  font-weight: 650;
}

.hero h1 em::after {
  bottom: -0.02em;
  height: 0.08em;
}

.hero__grid {
  grid-template-columns: minmax(0, 0.94fr) minmax(520px, 1.06fr);
}

.hero__proof {
  margin-top: var(--sp-6);
  padding: 12px 0;
  border-top: 1px solid var(--line-strong);
  border-bottom: 1px solid var(--line);
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: var(--sp-4);
  color: var(--ink-45);
  letter-spacing: 0.08em;
}

.hero__proof span:nth-child(2) {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.hero__proof strong {
  color: var(--accent-deep);
  font: inherit;
}

.hero__visual .mock {
  box-shadow: 0 28px 60px rgba(20, 22, 26, 0.12);
}

.mock__evidence {
  min-height: 42px;
  padding: 0 var(--sp-4);
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  gap: var(--sp-4);
  align-items: center;
  background: var(--ink);
  color: rgba(255, 255, 255, 0.58);
  border-top: 3px solid var(--accent);
  letter-spacing: 0.08em;
}

.mock__evidence strong {
  color: var(--accent);
  font: inherit;
}

.proof {
  position: relative;
  overflow: hidden;
  padding-block: clamp(72px, 8vw, 108px);
  background: var(--dark);
  color: #fff;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.proof::after {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: linear-gradient(90deg, transparent, #000 55%, transparent);
}

.proof .shell {
  position: relative;
  z-index: 1;
}

.proof .eyebrow {
  color: var(--accent);
}

.proof__head {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(280px, 0.7fr);
  gap: clamp(32px, 7vw, 96px);
  align-items: end;
}

.proof__head h2 {
  max-width: 750px;
  font-size: clamp(34px, 4.6vw, 58px);
  font-weight: 600;
}

.proof__head p {
  color: rgba(255, 255, 255, 0.68);
  line-height: 1.55;
}

.proofline {
  margin-top: clamp(48px, 7vw, 88px);
}

.proofline svg {
  display: block;
  width: 100%;
  height: clamp(110px, 14vw, 150px);
  overflow: visible;
}

.proofline path {
  fill: none;
  vector-effect: non-scaling-stroke;
  stroke-linecap: square;
  stroke-linejoin: miter;
}

.proofline__base {
  stroke: #4b5059;
  stroke-width: 2;
}

.proofline__active {
  stroke: var(--accent);
  stroke-width: 6;
}

.proofline__nodes circle {
  fill: var(--dark);
  stroke: #8b9099;
  stroke-width: 3;
  vector-effect: non-scaling-stroke;
}

.proofline__labels {
  margin: var(--sp-4) 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--sp-4);
  color: rgba(255, 255, 255, 0.54);
}

.proofline__labels li {
  display: grid;
  gap: 6px;
}

.proofline__labels b {
  color: var(--accent);
  font-weight: 500;
}

.flow__step:last-child {
  border-top: 4px solid var(--accent);
}

.flow__step:last-child .flow__n {
  color: var(--accent-deep);
}

.tile--wide {
  position: relative;
  overflow: hidden;
  background: var(--ink);
  border-color: var(--ink);
  color: #fff;
}

.tile--wide::after {
  content: '';
  position: absolute;
  left: var(--sp-6);
  right: var(--sp-6);
  bottom: var(--sp-5);
  height: 5px;
  background: linear-gradient(90deg, var(--accent) 0 58%, #4a4f57 58% 100%);
}

.tile--wide .tile__label {
  color: var(--accent);
}

.tile--wide p {
  max-width: 74ch;
  padding-bottom: var(--sp-5);
  color: rgba(255, 255, 255, 0.68);
}

.tile--full {
  border-left: 4px solid var(--accent);
}

.mobile__grid {
  grid-template-columns: minmax(0, 0.86fr) 270px minmax(0, 1fr);
  gap: clamp(32px, 4.5vw, 64px);
  align-items: center;
}

.phone {
  width: 100%;
  max-width: 270px;
  justify-self: center;
  padding: 9px;
  background: var(--ink);
  border-radius: 30px;
  box-shadow: 0 28px 54px rgba(20, 22, 26, 0.17);
}

.phone__screen {
  min-height: 492px;
  padding: 18px 17px 17px;
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border-radius: 22px;
}

.phone__status {
  display: flex;
  justify-content: space-between;
  color: var(--ink-45);
  letter-spacing: 0.06em;
}

.phone__status span:last-child {
  color: var(--accent-deep);
}

.phone__logo {
  margin-top: var(--sp-5);
  display: flex;
  align-items: center;
  font-size: 23px;
  font-weight: 650;
  letter-spacing: -0.04em;
}

.phone__logo span {
  width: 11px;
  height: 6px;
  margin-left: 6px;
  border-radius: 99px;
  background: var(--accent);
}

.phone__job {
  align-self: flex-start;
  margin-top: var(--sp-5);
  padding: 6px 8px;
  color: var(--ink);
  background: var(--line);
  border-radius: var(--r);
  letter-spacing: 0.06em;
}

.phone h3 {
  margin-top: var(--sp-5);
  font-size: 19px;
  line-height: 1.2;
}

.phone h3 + p {
  margin-top: 6px;
  font-size: 13px;
  color: var(--ink-45);
}

.phone__route {
  position: relative;
  height: 72px;
  margin-top: var(--sp-4);
}

.phone__route i {
  position: absolute;
  display: block;
  font-style: normal;
}

.phone__route i:nth-child(1) {
  left: 0;
  bottom: 8px;
  width: 48px;
  height: 4px;
  background: var(--accent);
}

.phone__route i:nth-child(2) {
  left: 48px;
  bottom: 8px;
  width: 54px;
  height: 33px;
  border-left: 4px solid var(--accent);
  border-top: 4px solid var(--accent);
}

.phone__route i:nth-child(3) {
  left: 98px;
  bottom: 37px;
  width: 68px;
  height: 26px;
  border-left: 2px solid var(--line-strong);
  border-top: 2px solid var(--line-strong);
}

.phone__facts {
  margin: 0;
  border-top: 1px solid var(--line);
}

.phone__facts > div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
}

.phone__facts dt {
  color: var(--ink-45);
}

.phone__facts dd {
  margin: 0;
  font-size: 13px;
  font-weight: 600;
}

.phone button {
  min-height: 42px;
  margin-top: auto;
  border: 0;
  border-radius: var(--r);
  background: var(--ink);
  color: #fff;
  font: inherit;
  font-size: 13px;
  font-weight: 600;
}

@media (max-width: 1040px) {
  .hero__grid,
  .mobile__grid {
    grid-template-columns: minmax(0, 1fr);
  }
  .hero__visual {
    max-width: 760px;
  }
  .phone {
    margin-block: var(--sp-5);
  }
}

@media (max-width: 760px) {
  .hero__eyebrow {
    max-width: 28ch;
  }
  .hero__proof {
    grid-template-columns: 1fr auto;
  }
  .hero__proof span:nth-child(2) {
    display: none;
  }
  .mock__evidence {
    grid-template-columns: 1fr auto;
  }
  .mock__evidence span:nth-child(2) {
    display: none;
  }
  .proof__head {
    grid-template-columns: 1fr;
    gap: var(--sp-4);
  }
  .proofline__labels {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: var(--sp-4);
  }
  .phone__screen {
    min-height: 470px;
  }
}

/* ---------- Вход по почте (модалка и страница) ---------- */

.lg {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: grid;
  place-items: center;
  padding: var(--sp-4);
}
.lg[hidden] {
  display: none;
}
.lg__scrim {
  position: absolute;
  inset: 0;
  background: rgba(20, 22, 26, 0.52);
  border: 0;
  padding: 0;
  cursor: pointer;
}
.lg__panel {
  position: relative;
  width: min(420px, 100%);
  background: var(--surface);
  border: 1px solid var(--line-strong);
  border-radius: var(--r);
  padding: var(--sp-6);
  box-shadow: 0 24px 60px rgba(20, 22, 26, 0.22);
}
.lg__close {
  position: absolute;
  top: var(--sp-3);
  right: var(--sp-3);
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  background: transparent;
  border: 1px solid transparent;
  border-radius: var(--r);
  color: var(--ink-45);
  cursor: pointer;
}
.lg__close:hover {
  color: var(--ink);
  border-color: var(--line);
}
.lg__title {
  margin: var(--sp-2) 0 var(--sp-2);
  font-size: 26px;
  line-height: 1.15;
  letter-spacing: -0.02em;
}
.lg__sub {
  margin: 0 0 var(--sp-5);
  color: var(--ink-70);
  font-size: 15px;
  line-height: 1.5;
}
.lg__form {
  display: grid;
  gap: var(--sp-3);
}
.lg__label {
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-45);
}
.lg__input {
  font: inherit;
  font-size: 16px;
  color: var(--ink);
  background: var(--paper);
  border: 1px solid var(--line-strong);
  border-radius: var(--r);
  padding: 11px 13px;
  min-height: 46px;
  width: 100%;
  transition: border-color 0.16s var(--ease);
}
.lg__input:hover {
  border-color: var(--ink-45);
}
.lg__input:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 1px;
  border-color: transparent;
}
.lg__submit {
  width: 100%;
  justify-content: center;
}
.lg__status {
  margin: 0;
  min-height: 20px;
  font-size: 14px;
  line-height: 1.45;
  color: var(--ink-70);
}
.lg__status[data-kind='err'] {
  color: var(--accent-deep);
}
.lg__foot {
  margin: var(--sp-4) 0 0;
  padding-top: var(--sp-4);
  border-top: 1px solid var(--line);
  font-size: 14px;
  color: var(--ink-45);
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-2) var(--sp-4);
  justify-content: space-between;
}
.lg__foot a {
  color: var(--accent-deep);
}

.lgpage {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: var(--sp-6) var(--sp-4);
}
.lgpage .lg__panel {
  box-shadow: none;
}
