/* ============================================================
   Учёт ключей — лендинг
   Токены, базовые стили, секции. Без сборки и зависимостей.
   ============================================================ */

@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 400 500;
  font-display: swap;
  src: url("assets/fonts/inter-cyrillic.woff2") format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}

@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 400 500;
  font-display: swap;
  src: url("assets/fonts/inter-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: "Onest";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("assets/fonts/onest-600-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: 600;
  font-display: swap;
  src: url("assets/fonts/onest-600-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 {
  --paper: #f4f1ea;
  --paper-raised: #fbf9f4;
  --paper-sunk: #efeae0;
  --ink: #191612;
  --ink-soft: #6b6357;
  --ink-faint: #6e6557;
  --line: #ded7c9;
  --line-soft: #e8e2d6;
  --brass: #8a5a12;
  --brass-deep: #7e5310;
  --brass-wash: #f3e7d2;
  --ok: #2f6b4f;
  --ok-wash: #e6efe8;
  --alert: #9b3b2a;
  --alert-wash: #f6e7e2;
  --radius: 12px;
  --shadow-card: 0 1px 0 rgba(25, 22, 18, 0.03);
  --shadow-lift: 0 24px 48px -32px rgba(25, 22, 18, 0.34), 0 2px 6px -2px rgba(25, 22, 18, 0.06);
  --header-h: 68px;
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 24px);
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}

/* Зерно: SVG-шум в data-URI, ноль сетевых запросов */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0.04;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/></filter><rect width='160' height='160' filter='url(%23n)'/></svg>");
}

h1,
h2,
h3,
.display {
  font-family: Onest, Inter, sans-serif;
  letter-spacing: -0.02em;
  text-wrap: balance;
}

p {
  text-wrap: pretty;
}

a {
  color: inherit;
}

img,
svg {
  display: block;
  max-width: 100%;
}

button {
  font: inherit;
}

:focus-visible {
  outline: 2px solid var(--brass);
  outline-offset: 3px;
  border-radius: 4px;
}

.wrap {
  width: min(1160px, 100% - 48px);
  margin-inline: auto;
  position: relative;
  z-index: 1;
}

.skip-link {
  position: absolute;
  left: 16px;
  top: -60px;
  z-index: 100;
  background: var(--ink);
  color: #fff;
  padding: 10px 16px;
  border-radius: 8px;
  font-size: 14px;
  text-decoration: none;
  transition: top 0.15s var(--ease);
}

.skip-link:focus-visible {
  top: 12px;
  outline-color: #fff;
}

/* ---------- header ---------- */

.site-head {
  position: sticky;
  top: 0;
  z-index: 20;
  background: var(--paper);
  border-bottom: 1px solid var(--line-soft);
}

.site-head .wrap {
  display: flex;
  align-items: center;
  gap: 28px;
  height: var(--header-h);
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  text-decoration: none;
  font-weight: 600;
  flex: none;
}

.logo-mark {
  width: 40px;
  height: 40px;
  display: block;
  flex: none;
  object-fit: contain;
}

.logo-mark-sm {
  width: 28px;
  height: 28px;
}

.logo b {
  font-family: Onest, Inter, sans-serif;
  font-size: 16px;
  letter-spacing: -0.01em;
  line-height: 1.1;
  display: block;
}

.logo .tagline {
  display: block;
  font-size: 9.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-faint);
  font-weight: 500;
  line-height: 1.2;
  margin-top: 3px;
}

.nav {
  display: flex;
  gap: 22px;
  margin-left: 12px;
  font-size: 14px;
  color: var(--ink-soft);
}

.nav a {
  text-decoration: none;
  padding: 6px 0;
  border-bottom: 1px solid transparent;
  transition: color 0.15s var(--ease), border-color 0.15s var(--ease);
}

.nav a:hover {
  color: var(--ink);
  border-bottom-color: var(--line);
}

.head-cta {
  margin-left: auto;
  flex: none;
}

/* ---------- buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 52px;
  padding: 0 22px;
  border-radius: 9px;
  border: 1px solid transparent;
  background: var(--brass-deep);
  color: #fff;
  font: inherit;
  font-weight: 500;
  font-size: 15px;
  text-decoration: none;
  cursor: pointer;
  box-shadow: 0 10px 22px -16px rgba(126, 83, 16, 0.9);
  transition: transform 0.16s var(--ease), background-color 0.16s var(--ease);
}

.btn:hover {
  background: #6b4610;
  transform: translateY(-1px);
}

.btn:active {
  transform: translateY(0);
}

.btn[disabled] {
  opacity: 0.6;
  cursor: progress;
  transform: none;
}

.btn-sm {
  min-height: 42px;
  padding: 0 16px;
  font-size: 14px;
  border-radius: 8px;
}

.btn .arrow {
  transition: transform 0.16s var(--ease);
}

.btn:hover .arrow {
  transform: translateX(3px);
}

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 52px;
  font-size: 15px;
  color: var(--ink);
  text-decoration: none;
  border-radius: 8px;
}

.link-arrow .arrow {
  color: var(--brass);
  transition: transform 0.16s var(--ease);
}

.link-arrow:hover .arrow {
  transform: translateX(3px);
}

/* ---------- hero ---------- */

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--brass);
}

.eyebrow::before {
  content: "";
  width: 22px;
  height: 1px;
  background: var(--brass);
  opacity: 0.6;
}

/* Hero закрепляется: при прокрутке заголовок разворачивается на всю ширину,
   мокап уезжает, поддерживающий текст гаснет. Только transform/opacity. */
.hero {
  position: relative;
  height: calc(100vh + 520px);
}

.hero-sticky {
  position: sticky;
  top: 0;
  z-index: 1;
  display: flex;
  align-items: center;
  height: 100vh;
  overflow: hidden;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.02fr 0.98fr;
  gap: 64px;
  align-items: center;
  width: min(1160px, 100% - 48px);
  margin-inline: auto;
  position: relative;
  z-index: 1;
}

.hero-title {
  transform-origin: left top;
  transform: scale(calc(1 + var(--hero-p, 0) * (var(--hero-target, 2) - 1)));
  will-change: transform;
}

.hero-kicker {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 10px 12px;
  margin: 0;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

.hero-kicker-scope {
  color: var(--brass);
}

.hero-kicker-scope::before {
  content: "";
  display: inline-block;
  width: 18px;
  height: 1px;
  margin-right: 10px;
  vertical-align: middle;
  background: var(--brass);
  opacity: 0.6;
}

.hero h1 {
  margin: 16px 0 0;
  font-size: clamp(38px, 4.6vw, 58px);
  line-height: 1.04;
  font-weight: 600;
}

[data-hero-fade] {
  opacity: calc(1 - var(--hero-fade, 0));
}

[data-hero-mock] {
  opacity: calc(1 - var(--hero-mock, 0) * 1.05);
  transform: translateX(calc(var(--hero-mock, 0) * 240px))
    scale(calc(1 - var(--hero-mock, 0) * 0.05));
}

.lede {
  margin: 20px 0 0;
  max-width: 46ch;
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink-soft);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px 22px;
  margin-top: 30px;
}

.proof {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 26px 0 0;
  font-size: 13px;
  color: var(--ink-soft);
}

.proof b {
  color: var(--ink);
  font-weight: 500;
}

.proof-dot {
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: var(--brass);
  flex: none;
}

/* ---------- app mockup ---------- */

.app-window {
  background: var(--paper-raised);
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: var(--shadow-lift);
  overflow: hidden;
}

.app-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  height: 42px;
  padding: 0 14px;
  border-bottom: 1px solid var(--line-soft);
  background: #f7f3ea;
}

.dots {
  display: flex;
  gap: 5px;
}

.dots i {
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: #d8d0c0;
}

.app-title {
  font-size: 12px;
  color: var(--ink-soft);
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.app-bar .tag {
  margin-left: auto;
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ok);
  border: 1px solid var(--ok-wash);
  background: var(--ok-wash);
  border-radius: 999px;
  padding: 3px 8px;
  white-space: nowrap;
  flex: none;
}

.app-body {
  padding: 16px;
}

.app-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-bottom: 14px;
}

.app-stat {
  border: 1px solid var(--line-soft);
  border-radius: 9px;
  padding: 9px 11px;
  background: var(--paper);
}

.app-stat span {
  display: block;
  font-size: 9.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-faint);
}

.app-stat b {
  display: block;
  font-family: Onest, Inter, sans-serif;
  font-size: 19px;
  font-weight: 600;
  line-height: 1.2;
  margin-top: 3px;
}

.app-row {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 10px;
  padding: 10px 10px 10px 12px;
  border-top: 1px solid var(--line-soft);
  border-radius: 7px;
}

.app-row:first-of-type {
  border-top: 0;
}

.app-row.hot {
  background: var(--brass-wash);
  border-top-color: transparent;
  box-shadow: inset 2px 0 0 var(--brass);
}

.app-row.alert {
  background: var(--alert-wash);
  border-top-color: transparent;
  box-shadow: inset 2px 0 0 var(--alert);
}

.room {
  font-size: 13.5px;
  font-weight: 500;
}

.room small {
  display: block;
  font-size: 11px;
  font-weight: 400;
  color: var(--ink-faint);
  line-height: 1.35;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 10.5px;
  font-weight: 500;
  padding: 4px 8px;
  border-radius: 999px;
  border: 1px solid var(--line);
  color: var(--ink-soft);
  background: var(--paper);
  white-space: nowrap;
}

.badge::before {
  content: "";
  width: 5px;
  height: 5px;
  border-radius: 999px;
  background: currentColor;
  opacity: 0.75;
}

.badge.ok {
  color: var(--ok);
  border-color: #cfe0d4;
  background: var(--ok-wash);
}

.badge.brass {
  color: var(--brass-deep);
  border-color: #e7d3ae;
  background: var(--brass-wash);
}

.badge.wait {
  color: #8a5b00;
  border-color: #ecd9b2;
  background: #fbf1de;
}

.badge.alert {
  color: var(--alert);
  border-color: #edc9c0;
  background: var(--alert-wash);
}

.badge.plain::before {
  display: none;
}

/* ---------- proof strip ---------- */

.strip {
  border-top: 1px solid var(--line-soft);
  border-bottom: 1px solid var(--line-soft);
  background: rgba(251, 249, 244, 0.55);
}

.strip .wrap {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}

.strip div {
  padding: 20px 22px;
  border-left: 1px solid var(--line-soft);
}

.strip div:first-child {
  border-left: 0;
  padding-left: 0;
}

.strip b {
  display: block;
  font-family: Onest, Inter, sans-serif;
  font-size: 19px;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.strip span {
  display: block;
  font-size: 12.5px;
  color: var(--ink-soft);
  margin-top: 2px;
}

/* ---------- sections ---------- */

.section {
  padding: 84px 0;
}

.section-head {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 40px;
  align-items: end;
  margin-bottom: 34px;
}

.section h2 {
  margin: 14px 0 0;
  font-size: clamp(28px, 3.1vw, 38px);
  line-height: 1.12;
  font-weight: 600;
}

.section-head p {
  margin: 0;
  font-size: 15px;
  color: var(--ink-soft);
  max-width: 40ch;
}

/* ---------- bento ---------- */

.bento {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 14px;
}

.card {
  position: relative;
  background: var(--paper-raised);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px;
  box-shadow: var(--shadow-card);
  overflow: hidden;
}

.card h3 {
  margin: 0;
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.card p {
  margin: 7px 0 0;
  font-size: 13.5px;
  line-height: 1.55;
  color: var(--ink-soft);
}

.card .icon {
  width: 34px;
  height: 34px;
  border-radius: 9px;
  border: 1px solid var(--line);
  background: var(--paper);
  display: grid;
  place-items: center;
  color: var(--brass-deep);
  margin-bottom: 14px;
}

.span3 {
  grid-column: span 3;
}

.span2 {
  grid-column: span 2;
}

.span6 {
  grid-column: span 6;
}

.mini {
  margin-top: 16px;
  border-top: 1px solid var(--line-soft);
  padding-top: 12px;
}

.mini-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 7px 0;
  font-size: 12.5px;
}

.mini-row + .mini-row {
  border-top: 1px dashed var(--line-soft);
}

.mini-row em {
  font-style: normal;
  color: var(--ink-faint);
  font-size: 11px;
}

.flow {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 16px;
  flex-wrap: wrap;
}

.flow .step {
  border: 1px solid var(--line);
  background: var(--paper);
  border-radius: 8px;
  padding: 7px 10px;
  font-size: 12px;
  color: var(--ink-soft);
}

.flow .step.done {
  border-color: #cfe0d4;
  background: var(--ok-wash);
  color: var(--ok);
}

.flow .arrow {
  color: var(--ink-faint);
  font-size: 13px;
}

.faces {
  display: flex;
  margin-top: 16px;
}

.faces i {
  width: 30px;
  height: 30px;
  border-radius: 999px;
  background: var(--paper-sunk);
  border: 2px solid var(--paper-raised);
  display: grid;
  place-items: center;
  font-style: normal;
  font-size: 10.5px;
  color: var(--ink-soft);
  margin-left: -9px;
}

.faces i:first-child {
  margin-left: 0;
}

.timeline {
  margin: 16px 0 0;
  padding: 0 0 0 14px;
  border-left: 1px solid var(--line);
  display: grid;
  gap: 9px;
  list-style: none;
}

.timeline li {
  position: relative;
  font-size: 12px;
  color: var(--ink-soft);
}

.timeline li::before {
  content: "";
  position: absolute;
  left: -19px;
  top: 6px;
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: var(--paper-raised);
  border: 2px solid var(--brass);
}

.timeline li b {
  color: var(--ink);
  font-weight: 500;
}

/* ---------- «внутри организации» ---------- */

.inside {
  display: grid;
  grid-template-columns: 1.25fr 1fr;
  gap: 32px;
  align-items: center;
  background:
    linear-gradient(0deg, rgba(164, 110, 30, 0.05), rgba(164, 110, 30, 0.05)),
    var(--paper-raised);
  border-color: #e2d3b6;
}

.inside .icon {
  margin-bottom: 12px;
}

.inside-copy p {
  max-width: 52ch;
}

.inside-points {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 2px;
  border-left: 1px solid var(--line);
}

.inside-points li {
  display: grid;
  gap: 2px;
  padding: 10px 0 10px 18px;
  font-size: 13px;
  color: var(--ink-soft);
}

.inside-points li + li {
  border-top: 1px solid var(--line-soft);
}

.inside-points b {
  font-family: Onest, Inter, sans-serif;
  font-size: 13.5px;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--ink);
}

/* ---------- мобильное приложение ---------- */

.app-section {
  padding-top: 8px;
}

.app-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
}

.app-copy h2 {
  margin: 14px 0 0;
  font-size: clamp(28px, 3.1vw, 38px);
  line-height: 1.12;
  font-weight: 600;
  max-width: 22ch;
}

.app-points {
  list-style: none;
  margin: 26px 0 0;
  padding: 0;
  display: grid;
  gap: 16px;
  max-width: 46ch;
}

.app-points li {
  padding-left: 16px;
  border-left: 2px solid var(--line);
}

.app-points b {
  display: block;
  font-family: Onest, Inter, sans-serif;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.app-points span {
  display: block;
  margin-top: 3px;
  font-size: 13.5px;
  line-height: 1.55;
  color: var(--ink-soft);
}

.phones {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  gap: 20px;
}

.phone {
  position: relative;
  width: min(238px, 48%);
  min-width: 0;
  padding: 9px;
  border-radius: 34px;
  background: #1b1714;
  box-shadow: 0 22px 40px -26px rgba(25, 22, 18, 0.5);
}

.phone-login {
  transform: rotate(-2deg) translateY(14px);
}

.phone-keys {
  transform: rotate(2deg) translateY(-10px);
}

.phone-notch {
  position: absolute;
  top: 9px;
  left: 50%;
  transform: translateX(-50%);
  width: 72px;
  height: 16px;
  border-radius: 0 0 10px 10px;
  background: #1b1714;
  z-index: 2;
}

.phone-screen {
  display: flex;
  flex-direction: column;
  min-height: 360px;
  padding: 22px 14px 14px;
  overflow: hidden;
  border-radius: 26px;
  background: var(--paper-raised);
}

.phone-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 11px;
  color: var(--ink-faint);
}

.phone-bar b {
  font-family: Onest, Inter, sans-serif;
  font-size: 13px;
  font-weight: 600;
  color: var(--ink);
}

.phone-title {
  margin: 20px 0 0;
  font-family: Onest, Inter, sans-serif;
  font-size: 17px;
  font-weight: 600;
  line-height: 1.2;
}

.phone-note {
  margin: 6px 0 0;
  font-size: 11.5px;
  line-height: 1.45;
  color: var(--ink-soft);
}

.phone-label {
  margin: 18px 0 0;
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-faint);
}

.phone-field {
  margin-top: 6px;
  padding: 10px 11px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fffdf8;
  font-size: 12px;
  overflow-wrap: anywhere;
}

.phone-btn {
  margin-top: 12px;
  padding: 11px 10px;
  border-radius: 8px;
  background: var(--brass-deep);
  color: #fff;
  font-size: 12px;
  font-weight: 500;
  text-align: center;
}

.phone-hint {
  margin: 10px 0 0;
  font-size: 10.5px;
  line-height: 1.4;
  color: var(--ink-faint);
  text-align: center;
}

.phone-card {
  display: grid;
  gap: 4px;
  margin-top: 12px;
  padding: 11px;
  border: 1px solid var(--line-soft);
  border-radius: 10px;
  background: var(--paper);
}

.phone-card.hot {
  border-color: #e0c9a0;
  background: #fbf3e4;
}

.phone-card div {
  display: grid;
  gap: 2px;
}

.phone-card b {
  font-family: Onest, Inter, sans-serif;
  font-size: 14px;
  font-weight: 600;
}

.phone-card span {
  font-size: 10.5px;
  color: var(--ink-soft);
}

.phone-card .badge {
  justify-self: start;
  margin-top: 4px;
}

.phone-nav {
  display: flex;
  justify-content: space-between;
  margin-top: auto;
  padding-top: 14px;
  border-top: 1px solid var(--line-soft);
  font-size: 10.5px;
  color: var(--ink-faint);
}

.phone-nav .is-active {
  color: var(--brass);
  font-weight: 500;
}

/* ---------- advantages ---------- */

.adv-section {
  padding: 0 0 84px;
}

.adv-section .eyebrow {
  margin-bottom: 18px;
}

.adv {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.adv div {
  padding: 24px 24px 24px 24px;
  border-left: 1px solid var(--line-soft);
}

.adv div:first-child {
  border-left: 0;
  padding-left: 0;
}

.adv b {
  display: block;
  font-family: Onest, Inter, sans-serif;
  font-size: 15.5px;
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1.3;
}

.adv span {
  display: block;
  margin-top: 7px;
  font-size: 13px;
  line-height: 1.5;
  color: var(--ink-soft);
}

/* ============================================================
   Pinned: проблема → решение
   ============================================================ */

.pin-section {
  position: relative;
  border-top: 1px solid var(--line-soft);
  background: rgba(251, 249, 244, 0.6);
}

.pin-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 18px 32px;
  padding-top: 72px;
  padding-bottom: 28px;
}

.pin-head h2 {
  margin: 14px 0 0;
  font-size: clamp(28px, 3.1vw, 38px);
  line-height: 1.12;
  font-weight: 600;
  max-width: 22ch;
}

.motion-toggle {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  min-height: 44px;
  padding: 0 16px;
  margin-bottom: 4px;
  border-radius: 9px;
  border: 1px solid var(--line);
  background: var(--paper-raised);
  color: var(--ink);
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: background-color 0.16s var(--ease), border-color 0.16s var(--ease);
}

.motion-toggle span {
  color: var(--brass);
  font-size: 10px;
  line-height: 1;
}

.motion-toggle:hover {
  background: var(--paper-sunk);
  border-color: var(--border-strong, #d0c7b6);
}

.motion-toggle[hidden] {
  display: none;
}

.pin-rail {
  position: relative;
  height: calc(100vh + 1200px);
}

.pin-sticky {
  position: sticky;
  top: 0;
  height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.pin-grid {
  display: grid;
  grid-template-columns: 0.92fr 1.08fr;
  gap: 64px;
  align-items: center;
  width: min(1160px, 100% - 48px);
  margin-inline: auto;
}

.pin-steps {
  display: grid;
  gap: 22px;
  max-width: 380px;
}

.pin-step {
  position: relative;
  padding-left: 18px;
  border-left: 2px solid var(--line);
  opacity: 0.45;
  transition: opacity 0.35s var(--ease), border-color 0.35s var(--ease);
}

.pin-step.is-active {
  opacity: 1;
  border-left-color: var(--brass);
}

.pin-step .pain {
  margin: 0 0 6px;
  font-size: 10.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--alert);
  font-weight: 500;
}

.pin-step.is-active .pain {
  color: var(--alert);
}

.pin-step h3 {
  margin: 0;
  font-size: 19px;
  font-weight: 600;
  line-height: 1.25;
}

.pin-step p.solution {
  margin: 7px 0 0;
  font-size: 13.5px;
  line-height: 1.55;
  color: var(--ink-soft);
}

.pin-stage {
  position: relative;
}

.stage-body {
  position: relative;
  display: grid;
  padding: 16px;
}

.stage-layer {
  grid-area: 1 / 1;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.4s var(--ease), transform 0.4s var(--ease);
  display: grid;
  align-content: start;
  gap: 2px;
  pointer-events: none;
}

.stage-layer.is-active {
  opacity: 1;
  transform: none;
}

.stage-note {
  display: flex;
  gap: 8px;
  align-items: flex-start;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: var(--paper);
  padding: 9px 11px;
  font-size: 11.5px;
  line-height: 1.45;
  color: var(--ink-soft);
  margin-bottom: 10px;
}

.stage-note b {
  color: var(--ink);
  font-weight: 500;
}

.stage-note.alert {
  border-color: #edc9c0;
  background: var(--alert-wash);
  color: #7d3226;
}

.stage-note.brass {
  border-color: #e7d3ae;
  background: var(--brass-wash);
  color: var(--brass-deep);
}

.stage-progress {
  position: relative;
  height: 2px;
  margin: 4px 16px 0;
  background: var(--line-soft);
  border-radius: 999px;
  overflow: hidden;
}

.stage-progress span {
  display: block;
  height: 100%;
  width: 100%;
  background: var(--brass);
  transform-origin: left center;
  transform: scaleX(0);
  transition: transform 0.15s linear;
}

.stage-caption {
  margin: 8px 16px 14px;
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-faint);
}

/* ---------- cta band ---------- */

.cta-band {
  padding: 56px 0;
  border-top: 1px solid var(--line-soft);
}

.cta-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--paper-raised);
  padding: 26px 28px;
  box-shadow: var(--shadow-card);
}

.cta-inner h2 {
  margin: 0;
  font-size: 22px;
  font-weight: 600;
}

.cta-inner p {
  margin: 6px 0 0;
  font-size: 13.5px;
  color: var(--ink-soft);
}

/* ---------- form ---------- */

.form-section {
  padding: 72px 0 84px;
}

.form-card {
  max-width: 560px;
  margin-inline: auto;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--paper-raised);
  padding: 28px;
  box-shadow: var(--shadow-lift);
}

.form-card h2 {
  margin: 0;
  font-size: 24px;
  font-weight: 600;
}

.form-intro {
  margin: 8px 0 22px;
  font-size: 13.5px;
  color: var(--ink-soft);
}

.field {
  display: block;
  margin-bottom: 14px;
}

.field .label {
  display: block;
  font-size: 12px;
  font-weight: 500;
  margin-bottom: 6px;
  color: var(--ink-soft);
}

.field .label em {
  font-style: normal;
  color: var(--ink-faint);
  font-weight: 400;
}

.field input {
  width: 100%;
  min-height: 48px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: var(--paper);
  padding: 0 13px;
  font: inherit;
  font-size: 15px;
  color: var(--ink);
  transition: border-color 0.15s var(--ease), box-shadow 0.15s var(--ease);
}

.field input::placeholder {
  color: #a79e8e;
}

.field input:hover {
  border-color: #cfc6b5;
}

.field input:focus {
  outline: none;
  border-color: var(--brass);
  box-shadow: 0 0 0 3px rgba(164, 110, 30, 0.14);
}

.field input[aria-invalid="true"] {
  border-color: var(--alert);
}

.field input[aria-invalid="true"]:focus {
  box-shadow: 0 0 0 3px rgba(155, 59, 42, 0.14);
}

.field-error {
  display: none;
  margin: 6px 0 0;
  font-size: 12px;
  line-height: 1.4;
  color: var(--alert);
}

.field.has-error .field-error {
  display: block;
}

.consent {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-size: 12px;
  color: var(--ink-soft);
  margin: 16px 0 20px;
  line-height: 1.5;
}

.consent input {
  width: 17px;
  height: 17px;
  margin: 2px 0 0;
  flex: none;
  accent-color: var(--brass-deep);
}

.consent a {
  color: var(--ink);
  text-decoration-color: var(--line);
}

.consent-error {
  display: none;
  margin: -10px 0 14px;
  font-size: 12px;
  color: var(--alert);
}

.consent-error.is-visible {
  display: block;
}

.form-card .btn {
  width: 100%;
}

.form-note {
  margin: 12px 0 0;
  font-size: 11.5px;
  color: var(--ink-faint);
  text-align: center;
}

.form-card.is-sent {
  padding-top: 34px;
  padding-bottom: 34px;
}

.form-card.is-sent h2,
.form-card.is-sent .form-intro {
  display: none;
}

.form-success {
  display: none;
  text-align: center;
  padding: 12px 0 4px;
}

.form-success.is-visible {
  display: block;
}

.form-success .success-mark {
  width: 44px;
  height: 44px;
  border-radius: 999px;
  background: var(--ok-wash);
  color: var(--ok);
  display: grid;
  place-items: center;
  margin: 0 auto 14px;
}

.form-success h3 {
  margin: 0;
  font-size: 20px;
  font-weight: 600;
}

.form-success p {
  margin: 8px 0 0;
  font-size: 13.5px;
  color: var(--ink-soft);
}

.form-reset {
  margin-top: 18px;
  background: none;
  border: 0;
  padding: 6px;
  font-size: 13px;
  color: var(--ink-soft);
  text-decoration: underline;
  text-decoration-color: var(--line);
  cursor: pointer;
  border-radius: 6px;
}

.form-reset:hover {
  color: var(--ink);
}

/* ---------- footer ---------- */

.foot {
  border-top: 1px solid var(--line-soft);
  padding: 26px 0 34px;
}

.foot .wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px 28px;
  font-size: 12.5px;
  color: var(--ink-soft);
}

.foot a {
  text-decoration: none;
  border-bottom: 1px solid transparent;
  padding: 4px 0;
}

.foot a:hover {
  border-bottom-color: var(--line);
}

.foot .copy {
  margin-left: auto;
  color: var(--ink-faint);
}

/* ---------- reveal (JS) ---------- */

html.js [data-reveal] {
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.5s var(--ease), transform 0.5s var(--ease);
}

html.js [data-reveal].is-visible {
  opacity: 1;
  transform: none;
}

/* ============================================================
   Scroll-driven animations (CSS View/Scroll Timelines)
   Включаются классом .motion на <html>: он ставится, если система
   не просит reduce, либо если пользователь включил анимации кнопкой.
   Прогрессивное улучшение: без поддержки работает JS-reveal выше.
   Анимируются только opacity и transform.
   ============================================================ */

@supports (animation-timeline: view()) {
  /* Появление секций: привязано к вьюпорту, а не к таймеру */
  html.motion.js [data-reveal] {
    animation: sd-rise linear both;
    animation-timeline: view();
    animation-range: entry 2% cover 26%;
    transition: none;
  }

  /* Bento: карточки поднимаются и чуть наезжают масштабом */
  html.motion.js .bento .card {
    animation: sd-scale linear both;
    animation-timeline: view();
    animation-range: entry 0% cover 30%;
  }

  /* Sticky-мокап: масштаб на входе в pinned-сцену */
  html.motion .pin-stage {
    animation: sd-scale-soft linear both;
    animation-timeline: view();
    animation-range: entry 0% cover 45%;
  }

  /* Hero-мокап: мягко уменьшается, пока hero уходит вверх */
  html.motion .hero .app-window {
    animation: sd-shrink linear both;
    animation-timeline: scroll(root block);
    animation-range: 0 640px;
  }

  /* Акцентная цифра в отчёте: подрастает на входе.
     Полосу метрик не анимируем — она часто попадает на линию сгиба. */
  html.motion .pin-step h3 {
    animation: sd-pop-soft linear both;
    animation-timeline: view();
    animation-range: entry 6% cover 30%;
  }
}

@keyframes sd-rise {
  from {
    opacity: 0;
    transform: translateY(24px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes sd-scale {
  from {
    opacity: 0;
    transform: scale(0.965) translateY(16px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes sd-scale-soft {
  from {
    transform: scale(0.94);
  }
  to {
    transform: scale(1);
  }
}

@keyframes sd-shrink {
  from {
    transform: scale(1) translateY(0);
  }
  to {
    transform: scale(0.955) translateY(-8px);
  }
}

@keyframes sd-pop-soft {
  from {
    transform: scale(0.985);
  }
  to {
    transform: scale(1);
  }
}

/* ---------- responsive ---------- */

@media (max-width: 1080px) {
  .hero-grid,
  .section-head,
  .pin-grid,
  .app-grid {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  .phones {
    padding-top: 4px;
  }

  .hero {
    height: auto;
  }

  .hero-sticky {
    position: static;
    height: auto;
    padding: 52px 0 44px;
    overflow: visible;
  }

  .hero-title {
    transform: none;
  }

  [data-hero-fade],
  [data-hero-mock] {
    opacity: 1;
    transform: none;
  }

  .bento {
    grid-template-columns: repeat(2, 1fr);
  }

  .span3,
  .span2,
  .span6 {
    grid-column: span 2;
  }

  .inside {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .inside-points {
    border-left: 0;
    border-top: 1px solid var(--line);
  }

  .inside-points li {
    padding-left: 0;
  }

  .strip .wrap {
    grid-template-columns: repeat(2, 1fr);
  }

  .strip div:nth-child(3) {
    border-left: 0;
    padding-left: 0;
  }

  .adv {
    grid-template-columns: repeat(2, 1fr);
  }

  .adv div:nth-child(3) {
    border-left: 0;
    padding-left: 0;
  }

  .adv div:nth-child(n + 3) {
    border-top: 1px solid var(--line-soft);
  }

  /* Pinned выключается: секция становится обычной колонкой */
  .pin-rail {
    height: auto;
  }

  .pin-sticky {
    position: static;
    height: auto;
    padding: 8px 0 64px;
    overflow: visible;
  }

  .pin-steps {
    order: 2;
    max-width: none;
    gap: 18px;
  }

  .pin-step {
    opacity: 1;
    border-left-color: var(--brass);
    background: var(--paper-raised);
    border: 1px solid var(--line);
    border-left: 2px solid var(--brass);
    border-radius: 10px;
    padding: 16px 18px;
  }

  .pin-stage {
    order: 1;
  }

  .stage-body {
    min-height: 0;
    padding: 14px;
  }

  .stage-layer {
    grid-area: auto;
    display: none;
    opacity: 1;
    transform: none;
    pointer-events: auto;
  }

  .stage-layer[data-layer="3"] {
    display: grid;
  }

  .stage-progress,
  .stage-caption {
    display: none;
  }
}

@media (max-width: 720px) {
  .wrap {
    width: min(1160px, 100% - 32px);
  }

  .nav {
    display: none;
  }

  .hero-sticky {
    padding: 40px 0 36px;
  }

  .phones {
    gap: 12px;
  }

  .phone {
    width: 49%;
    border-radius: 28px;
  }

  .phone-screen {
    min-height: 340px;
    padding: 20px 11px 11px;
    border-radius: 21px;
  }

  .phone-title {
    margin-top: 14px;
    font-size: 15px;
  }

  .phone-note,
  .phone-hint {
    font-size: 10.5px;
  }

  .phone-card {
    padding: 9px;
  }

  .phone-field {
    font-size: 11px;
  }

  .section,
  .form-section {
    padding: 56px 0;
  }

  .pin-head {
    padding-top: 56px;
  }

  .pin-sticky {
    padding-bottom: 56px;
  }

  .bento {
    grid-template-columns: 1fr;
  }

  .span3,
  .span2,
  .span6 {
    grid-column: span 1;
  }

  .inside {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .strip .wrap,
  .adv {
    grid-template-columns: 1fr;
  }

  .strip div,
  .adv div,
  .adv div:nth-child(3) {
    border-left: 0;
    padding-left: 0;
    border-top: 1px solid var(--line-soft);
  }

  .strip div:first-child,
  .adv div:first-child {
    border-top: 0;
  }

  .cta-inner {
    flex-direction: column;
    align-items: flex-start;
  }

  .cta-inner .btn {
    width: 100%;
  }

  .foot .copy {
    margin-left: 0;
  }
}

/* ---------- без анимаций (система просит reduce и пользователь не включил) ---------- */

html:not(.motion) {
  scroll-behavior: auto;
}

html:not(.motion) *,
html:not(.motion) *::before,
html:not(.motion) *::after {
  transition-duration: 0.01ms !important;
  animation-duration: 0.01ms !important;
}

html:not(.motion).js [data-reveal] {
  opacity: 1;
  transform: none;
}

/* Hero без анимаций: обычная секция */
html:not(.motion) .hero {
  height: auto;
}

html:not(.motion) .hero-sticky {
  position: static;
  height: auto;
  padding: 52px 0 44px;
  overflow: visible;
}

html:not(.motion) .hero-title {
  transform: none;
}

html:not(.motion) [data-hero-fade],
html:not(.motion) [data-hero-mock] {
  opacity: 1;
  transform: none;
}

/* Pinned-сценарий полностью отключается */
html:not(.motion) .pin-rail {
  height: auto;
}

html:not(.motion) .pin-sticky {
  position: static;
  height: auto;
  padding: 8px 0 64px;
  overflow: visible;
}

html:not(.motion) .pin-steps {
  max-width: none;
}

html:not(.motion) .pin-step {
  opacity: 1;
  border-left-color: var(--brass);
}

html:not(.motion) .stage-layer {
  grid-area: auto;
  display: none;
  opacity: 1;
  transform: none;
  pointer-events: auto;
}

html:not(.motion) .stage-layer[data-layer="3"] {
  display: grid;
}

html:not(.motion) .stage-body {
  min-height: 0;
}

html:not(.motion) .stage-progress,
html:not(.motion) .stage-caption {
  display: none;
}

/* ---------- legal page ---------- */

.prose {
  max-width: 760px;
  padding: 56px 0 72px;
}

.prose h1 {
  margin: 0 0 6px;
  font-size: clamp(26px, 3vw, 34px);
  line-height: 1.15;
  font-weight: 600;
}

.prose .updated {
  margin: 0 0 28px;
  font-size: 12px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ink-faint);
}

.prose h2 {
  margin: 30px 0 8px;
  font-size: 18px;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.prose p,
.prose li {
  margin: 0 0 10px;
  font-size: 14.5px;
  line-height: 1.65;
  color: var(--ink-soft);
}

.prose ul {
  margin: 0 0 14px;
  padding-left: 20px;
  display: grid;
  gap: 6px;
}

.prose a {
  color: var(--brass-deep);
  text-decoration-color: var(--line);
}

.prose .back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 28px;
  font-size: 13px;
  color: var(--ink-soft);
  text-decoration: none;
  min-height: 44px;
}

.prose .back:hover {
  color: var(--ink);
}
