/* Сайт-визитка «MAG Складирование».
   Раскладка: тёмно-зелёная обложка с живыми снимками продукта, дальше светлые
   разделы на сетке шириной 1180px. Один акцент — фирменный зелёный. */

@font-face {
  font-family: "Golos Text";
  font-style: normal;
  font-weight: 400 900;
  font-display: swap;
  src: url("fonts/golos-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 900;
  font-display: swap;
  src: url("fonts/golos-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 {
  --bg: oklch(0.985 0.004 145);
  --bg-2: oklch(0.962 0.009 148);
  --surface: oklch(1 0 0);
  --fg: oklch(0.2 0.012 150);
  --muted: oklch(0.47 0.016 150);
  --line: oklch(0.89 0.012 150);
  --brand: oklch(0.53 0.14 152);
  --brand-strong: oklch(0.45 0.13 152);
  --brand-soft: oklch(0.93 0.045 152);
  --brand-fg: #fff;
  --ink: oklch(0.25 0.055 158);
  --ink-2: oklch(0.3 0.06 158);
  --ink-fg: oklch(0.975 0.01 150);
  --ink-muted: oklch(0.8 0.03 152);
  --ink-accent: oklch(0.82 0.18 150);
  --ink-line: oklch(1 0 0 / 0.12);
  --shadow: 0 1px 2px oklch(0 0 0 / 0.06), 0 18px 40px -18px oklch(0.25 0.06 158 / 0.35);
  --shadow-lg: 0 2px 4px oklch(0 0 0 / 0.08), 0 40px 80px -30px oklch(0.2 0.06 158 / 0.55);
  --radius: 14px;
  --font: "Golos Text", "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono: ui-monospace, "JetBrains Mono", "SF Mono", Menlo, Consolas, monospace;
  --top-h: 64px;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: oklch(0.17 0.012 152);
    --bg-2: oklch(0.21 0.014 152);
    --surface: oklch(0.23 0.015 152);
    --fg: oklch(0.95 0.008 150);
    --muted: oklch(0.7 0.015 150);
    --line: oklch(0.31 0.016 152);
    --brand: oklch(0.72 0.15 152);
    --brand-strong: oklch(0.78 0.16 152);
    --brand-soft: oklch(0.28 0.05 152);
    --brand-fg: oklch(0.15 0.03 152);
    --ink: oklch(0.14 0.03 158);
    --ink-2: oklch(0.19 0.035 158);
    --ink-line: oklch(1 0 0 / 0.1);
    --shadow: 0 1px 2px oklch(0 0 0 / 0.4), 0 18px 40px -18px oklch(0 0 0 / 0.6);
    --shadow-lg: 0 2px 4px oklch(0 0 0 / 0.5), 0 40px 80px -30px oklch(0 0 0 / 0.8);
    color-scheme: dark;
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--fg);
  background: var(--bg);
  font-feature-settings: "kern", "liga";
  -webkit-font-smoothing: antialiased;
}
img, svg, video { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
p { margin: 0; }
h1, h2, h3 { margin: 0; text-wrap: balance; letter-spacing: -0.02em; }
h2 { font-size: clamp(1.85rem, 1.1rem + 2.6vw, 2.8rem); line-height: 1.1; font-weight: 800; letter-spacing: -0.03em; }
h3 { font-size: 1.2rem; line-height: 1.3; font-weight: 700; }
code { font-family: var(--mono); font-size: 0.92em; font-weight: 600; letter-spacing: 0.04em; background: var(--brand-soft); color: var(--brand-strong); padding: 0.1em 0.4em; border-radius: 6px; }
:focus-visible { outline: 3px solid var(--brand); outline-offset: 3px; border-radius: 6px; }
.wrap { max-width: 1180px; margin-inline: auto; padding-inline: clamp(16px, 4vw, 32px); }
.ico { width: 1.25em; height: 1.25em; flex: none; }
.defs { position: absolute; width: 0; height: 0; overflow: hidden; }
.skip { position: absolute; left: 16px; top: -60px; background: var(--brand); color: var(--brand-fg); padding: 10px 14px; border-radius: 8px; z-index: 100; }
.skip:focus { top: 12px; }

.eyebrow { font-size: 0.78rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--brand); margin-bottom: 14px; }
.eyebrow--light { color: var(--ink-accent); }

/* Кнопки */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.55em;
  min-height: 42px; padding: 0 18px; border-radius: 10px; border: 1px solid transparent;
  font: inherit; font-weight: 600; font-size: 0.97rem; line-height: 1; cursor: pointer; white-space: nowrap;
  transition: background-color 0.18s, border-color 0.18s, transform 0.18s, box-shadow 0.18s;
}
.btn:active { transform: translateY(1px); }
.btn--lg { min-height: 52px; padding: 0 24px; font-size: 1.05rem; border-radius: 12px; }
.btn--primary { background: var(--brand); color: var(--brand-fg); box-shadow: 0 8px 20px -10px var(--brand); }
.btn--primary:hover { background: var(--brand-strong); }
.btn--ghost { border-color: var(--line); color: var(--fg); background: transparent; }
.btn--ghost:hover { background: var(--bg-2); }
.btn--glass { background: oklch(1 0 0 / 0.08); border-color: var(--ink-line); color: var(--ink-fg); backdrop-filter: blur(8px); }
.btn--glass:hover { background: oklch(1 0 0 / 0.14); }

/* Шапка */
.top { position: sticky; top: 0; z-index: 50; background: color-mix(in oklab, var(--ink) 88%, transparent); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); color: var(--ink-fg); border-bottom: 1px solid var(--ink-line); transition: box-shadow 0.2s; }
.top.is-scrolled { box-shadow: 0 10px 30px -20px oklch(0 0 0 / 0.6); }
.top__row { display: flex; align-items: center; gap: 24px; min-height: var(--top-h); }
.brand { display: flex; align-items: center; gap: 12px; min-width: 0; }
.brand__mark { display: grid; place-items: center; width: 36px; height: 36px; flex: none; border-radius: 10px; background: var(--brand); color: #fff; }
.brand__mark svg { height: 64%; width: auto; }
.brand__text { display: flex; flex-direction: column; line-height: 1.15; }
.brand__text b { font-weight: 700; font-size: 1rem; letter-spacing: -0.01em; }
.brand__text small { font-size: 0.74rem; color: var(--ink-muted); }
.top__nav { display: flex; gap: 4px; margin-left: auto; }
.top__nav a { padding: 8px 12px; border-radius: 8px; font-size: 0.95rem; font-weight: 500; color: var(--ink-muted); transition: color 0.15s, background-color 0.15s; }
.top__nav a:hover { color: var(--ink-fg); background: oklch(1 0 0 / 0.08); }
.top__actions { display: flex; align-items: center; gap: 8px; }
.top__burger { display: none; width: 42px; height: 42px; border: 1px solid var(--ink-line); border-radius: 10px; background: transparent; cursor: pointer; flex-direction: column; justify-content: center; align-items: center; gap: 5px; }
.top__burger span { display: block; width: 18px; height: 2px; background: var(--ink-fg); border-radius: 2px; transition: transform 0.2s, opacity 0.2s; }
.top__burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.top__burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.top__burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Обложка */
.hero {
  position: relative; overflow: hidden; color: var(--ink-fg);
  background:
    radial-gradient(900px 520px at 85% 0%, oklch(0.53 0.14 152 / 0.45), transparent 65%),
    radial-gradient(700px 400px at 0% 100%, oklch(0.53 0.14 152 / 0.18), transparent 60%),
    linear-gradient(180deg, var(--ink-2), var(--ink));
}
.hero::before {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: 0.35;
  background-image: linear-gradient(var(--ink-line) 1px, transparent 1px), linear-gradient(90deg, var(--ink-line) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse 70% 60% at 60% 40%, #000 20%, transparent 100%);
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 60% 40%, #000 20%, transparent 100%);
}
.hero__grid { position: relative; display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: clamp(32px, 5vw, 72px); align-items: center; padding-block: clamp(56px, 8vw, 112px) clamp(72px, 9vw, 120px); }
.hero__title { font-size: clamp(2.6rem, 1.4rem + 5vw, 4.9rem); line-height: 1.02; font-weight: 800; letter-spacing: -0.04em; }
.hero__title em { font-style: normal; color: var(--ink-accent); }
.hero__lead { margin-top: 24px; max-width: 34em; font-size: clamp(1.05rem, 1rem + 0.4vw, 1.25rem); line-height: 1.55; color: var(--ink-muted); }
.hero__cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.hero__phone { margin-top: 18px; font-size: 0.95rem; color: var(--ink-muted); }
.hero__phone a { color: var(--ink-fg); font-weight: 600; font-variant-numeric: tabular-nums; border-bottom: 1px solid var(--ink-line); }
.hero__phone a:hover { border-color: var(--ink-fg); }

.hero__art { position: relative; aspect-ratio: 16 / 12; max-width: 100%; }
.shot { position: absolute; border-radius: 12px; overflow: hidden; background: var(--surface); box-shadow: var(--shadow-lg); }
.shot img { width: 100%; height: auto; }
.shot--desktop { left: 4%; right: 0; top: 0; z-index: 1; transform: perspective(1400px) rotateY(-5deg) rotateX(1.5deg); transform-origin: 70% 50%; transition: transform 0.6s cubic-bezier(.2,.7,.2,1); }
.hero__art:hover .shot--desktop { transform: perspective(1400px) rotateY(0) rotateX(0); }
.shot__bar { display: flex; align-items: center; gap: 6px; height: 28px; padding-inline: 10px; background: oklch(0.955 0.006 150); border-bottom: 1px solid oklch(0.9 0.008 150); }
.shot__bar i { width: 9px; height: 9px; border-radius: 50%; background: oklch(0.85 0.01 150); }
.shot__bar span { margin-left: auto; margin-right: auto; font-size: 10px; color: oklch(0.5 0.01 150); background: oklch(1 0 0); padding: 2px 10px; border-radius: 6px; }
.shot--second { left: -6%; width: 64%; bottom: 0; z-index: 2; }

/* Карточка остатка: на складе, в резерве, свободно */
.balance { position: absolute; right: -2%; top: 46%; width: 50%; z-index: 3; padding: clamp(12px, 1.4vw, 20px); background: #fff; color: #111; border-radius: 14px; box-shadow: var(--shadow-lg); }
.balance__head b { display: block; font-size: clamp(0.85rem, 1.25vw, 1.1rem); font-weight: 800; letter-spacing: -0.02em; line-height: 1.2; }
.balance__head small { display: block; margin-top: 3px; font-size: clamp(0.55rem, 0.8vw, 0.72rem); color: #555; line-height: 1.3; }
.balance__nums { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin: clamp(10px, 1.2vw, 16px) 0 0; }
.balance__nums div { min-width: 0; }
.balance__nums dt { font-size: clamp(0.55rem, 0.8vw, 0.72rem); color: #555; }
.balance__nums dd { margin: 2px 0 0; font-size: clamp(0.85rem, 1.1vw, 1.1rem); font-weight: 800; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; white-space: nowrap; }
.balance__nums div:last-child dd { color: oklch(0.45 0.13 152); }
.balance__bar { display: flex; height: 7px; margin-top: clamp(8px, 1vw, 12px); border-radius: 4px; overflow: hidden; background: oklch(0.93 0.045 152); }
.balance__bar i { display: block; height: 100%; }
.balance__reserve { width: 20%; background: oklch(0.75 0.06 152); }
.balance__free { width: 80%; background: oklch(0.53 0.14 152); animation: fill 1.4s cubic-bezier(.2,.7,.2,1) 0.3s both; }
@keyframes fill { from { width: 0; } to { width: 80%; } }
.balance__foot { display: block; margin-top: clamp(8px, 1vw, 12px); font-size: clamp(0.55rem, 0.78vw, 0.7rem); color: #555; font-variant-numeric: tabular-nums; }
.balance__check { position: absolute; right: -14px; top: -14px; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--brand); color: #fff; box-shadow: 0 6px 16px -4px var(--brand); animation: pop 0.5s cubic-bezier(.2,.9,.3,1.3) 1.5s both; }
.balance__check svg { width: 20px; height: 20px; }
@keyframes pop { from { transform: scale(0); } to { transform: scale(1); } }

/* Полоса отраслевых деталей */
.facts { background: var(--bg-2); border-bottom: 1px solid var(--line); }
.facts__grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.fact { display: flex; flex-direction: column; gap: 6px; padding: 28px 24px 28px 0; margin-right: 24px; border-right: 1px solid var(--line); }
.fact:last-child { border-right: 0; margin-right: 0; }
.fact b { font-size: 1.6rem; font-weight: 800; letter-spacing: -0.03em; line-height: 1; font-variant-numeric: tabular-nums; color: var(--brand); }
.fact span { font-size: 0.92rem; color: var(--muted); line-height: 1.45; }

/* Разделы */
.section { padding-block: clamp(72px, 9vw, 120px); }
.section__head { max-width: 46em; margin-bottom: clamp(36px, 5vw, 64px); }
.section__lead { margin-top: 16px; font-size: 1.15rem; color: var(--muted); max-width: 36em; }

/* Складской учёт */
.stock__grid { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: clamp(32px, 5vw, 72px); align-items: start; }
.pillars { list-style: none; margin: 0; padding: 0; display: grid; }
.pillars li { display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 16px; padding: 20px 0; border-top: 1px solid var(--line); }
.pillars li:last-child { border-bottom: 1px solid var(--line); }
.pillar__icon { width: 44px; height: 44px; padding: 10px; border-radius: 12px; background: var(--brand-soft); color: var(--brand-strong); }
.pillars h3 { font-size: 1.1rem; }
.pillars p { margin-top: 6px; color: var(--muted); font-size: 0.98rem; }
.stock__shot { margin: 0; position: sticky; top: calc(var(--top-h) + 24px); border-radius: 12px; overflow: hidden; border: 1px solid var(--line); background: var(--surface); box-shadow: var(--shadow-lg); }
.stock__shot figcaption { padding: 12px 16px; border-top: 1px solid var(--line); font-size: 0.88rem; color: var(--muted); }

/* Возможности */
.features { background: var(--bg-2); border-block: 1px solid var(--line); }
.feature { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: clamp(28px, 5vw, 72px); align-items: center; padding-block: clamp(28px, 4vw, 48px); }
.feature + .feature { border-top: 1px solid var(--line); }
.feature--flip .feature__copy { order: 2; }
.feature__crumb { font-size: 0.82rem; font-weight: 600; color: var(--brand); margin-bottom: 10px; }
.feature h3 { font-size: clamp(1.4rem, 1.1rem + 1vw, 1.85rem); letter-spacing: -0.03em; }
.feature__copy > p:not(.feature__crumb) { margin-top: 14px; color: var(--muted); }
.checks { list-style: none; margin: 20px 0 0; padding: 0; display: grid; gap: 10px; }
.checks li { position: relative; padding-left: 30px; font-size: 0.98rem; }
.checks li::before { content: ""; position: absolute; left: 0; top: 3px; width: 20px; height: 20px; border-radius: 50%; background: var(--brand-soft); }
.checks li::after { content: ""; position: absolute; left: 6px; top: 8px; width: 8px; height: 5px; border-left: 2px solid var(--brand-strong); border-bottom: 2px solid var(--brand-strong); transform: rotate(-45deg); }
.feature__shot { margin: 0; border-radius: 12px; overflow: hidden; border: 1px solid var(--line); background: var(--surface); box-shadow: var(--shadow); transition: transform 0.4s cubic-bezier(.2,.7,.2,1), box-shadow 0.4s; }
.feature__shot:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.more { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin-top: clamp(40px, 6vw, 72px); }
.more__item { padding: 24px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); }
.more__icon { width: 36px; height: 36px; padding: 7px; border-radius: 10px; background: var(--brand-soft); color: var(--brand-strong); margin-bottom: 16px; }
.more h3 { font-size: 1.05rem; }
.more p { margin-top: 8px; font-size: 0.92rem; color: var(--muted); }

/* Роли */
.roles__grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 16px; }
.role { padding: 22px 20px; border-radius: var(--radius); border: 1px solid var(--line); background: var(--surface); border-top: 3px solid var(--brand); }
.role h3 { font-size: 1.02rem; }
.role p { margin-top: 8px; font-size: 0.9rem; color: var(--muted); }

/* Видео */
.video { background: var(--bg-2); border-block: 1px solid var(--line); }
.video__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.clip { position: relative; display: block; width: 100%; padding: 0; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: var(--surface); cursor: pointer; text-align: left; font: inherit; color: inherit; box-shadow: var(--shadow); transition: transform 0.3s, box-shadow 0.3s; }
.clip:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.clip img { aspect-ratio: 16 / 9; object-fit: cover; width: 100%; }
.clip__play { position: absolute; left: 50%; top: 38%; transform: translate(-50%, -50%); display: grid; place-items: center; width: 68px; height: 68px; border-radius: 50%; background: var(--brand); color: #fff; box-shadow: 0 12px 30px -8px var(--brand); transition: transform 0.2s; }
.clip:hover .clip__play { transform: translate(-50%, -50%) scale(1.08); }
.clip__play svg { width: 30px; height: 30px; margin-left: 3px; }
.clip__meta { display: flex; flex-direction: column; gap: 2px; padding: 16px 18px; border-top: 1px solid var(--line); }
.clip__meta b { font-size: 1.05rem; }
.clip__meta span { font-size: 0.88rem; color: var(--muted); }

/* Как устроено */
.trust__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; }
.trust__item h3 { font-size: 1.05rem; padding-top: 14px; border-top: 2px solid var(--brand); }
.trust__item p { margin-top: 10px; font-size: 0.95rem; color: var(--muted); }

/* Контакты */
.contact { padding-top: 0; }
.contact__panel { position: relative; overflow: hidden; display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 40px; align-items: center; padding: clamp(32px, 5vw, 64px); border-radius: 24px; color: var(--ink-fg); background: radial-gradient(700px 400px at 100% 0%, oklch(0.53 0.14 152 / 0.5), transparent 65%), linear-gradient(160deg, var(--ink-2), var(--ink)); }
.contact__copy h2 { max-width: 12em; }
.contact__copy > p { margin-top: 14px; max-width: 30em; color: var(--ink-muted); font-size: 1.1rem; }
.contact__number { display: inline-block; margin-top: 28px; font-size: clamp(1.7rem, 1rem + 2.6vw, 2.6rem); font-weight: 800; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.contact__number:hover { color: var(--ink-accent); }
.contact__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }
.contact__qr { justify-self: center; display: flex; flex-direction: column; align-items: center; gap: 12px; width: min(100%, 240px); padding: 18px; border-radius: 18px; background: #fff; color: #111; box-shadow: var(--shadow-lg); }
.contact__qr svg { width: 100%; height: auto; aspect-ratio: 1; }
.contact__qr span { font-size: 0.8rem; color: #444; text-align: center; line-height: 1.35; }

/* Подвал */
.foot { padding-block: 36px 48px; border-top: 1px solid var(--line); font-size: 0.92rem; color: var(--muted); }
.foot__row { display: grid; grid-template-columns: auto 1fr; gap: 24px 48px; align-items: center; }
.foot__brand { display: flex; align-items: center; gap: 12px; color: var(--fg); line-height: 1.2; }
.foot__brand small { color: var(--muted); }
.foot__nav { display: flex; flex-wrap: wrap; gap: 4px 18px; justify-self: end; }
.foot__nav a:hover, .foot__note a:hover { color: var(--brand); }
.foot__note { grid-column: 1 / -1; font-size: 0.85rem; }
.foot__note a { font-variant-numeric: tabular-nums; }

/* Плавающая кнопка WhatsApp */
.fab { position: fixed; right: 20px; bottom: calc(20px + env(safe-area-inset-bottom, 0px)); z-index: 40; display: inline-flex; align-items: center; gap: 10px; min-height: 56px; padding: 0 20px 0 16px; border-radius: 999px; background: var(--brand); color: var(--brand-fg); font-weight: 700; box-shadow: 0 14px 30px -10px var(--brand), 0 2px 6px oklch(0 0 0 / 0.15); transition: transform 0.2s, background-color 0.2s; }
.fab .ico { width: 26px; height: 26px; }
.fab:hover { background: var(--brand-strong); transform: translateY(-2px); }

/* Видеоплеер */
.player { width: min(96vw, 1100px); max-width: none; padding: 0; border: 0; border-radius: 16px; background: oklch(0.12 0.01 150); color: #fff; box-shadow: var(--shadow-lg); overflow: hidden; }
.player::backdrop { background: oklch(0.1 0.02 155 / 0.8); backdrop-filter: blur(6px); }
.player video { width: 100%; aspect-ratio: 16 / 9; background: #000; }
.player__title { padding: 12px 56px 14px 18px; font-size: 0.95rem; font-weight: 600; }
.player__close { position: absolute; right: 10px; bottom: 6px; display: grid; place-items: center; width: 40px; height: 40px; border: 0; border-radius: 50%; background: oklch(1 0 0 / 0.1); color: #fff; cursor: pointer; }
.player__close:hover { background: oklch(1 0 0 / 0.2); }
.player__close svg { width: 20px; height: 20px; }

/* Появление при прокрутке: только когда есть скрипт и не отключена анимация */
@media (prefers-reduced-motion: no-preference) {
  html.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.7s cubic-bezier(.2,.7,.2,1), transform 0.7s cubic-bezier(.2,.7,.2,1); }
  html.js .reveal.in { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  .balance__free, .balance__check { animation: none; }
  .shot--desktop, .feature__shot, .clip, .fab, .btn { transition: none; }
}

/* Планшет */
@media (max-width: 1024px) {
  .top__nav { display: none; }
  .top__actions { margin-left: auto; }
  .more { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .roles__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .hero__grid { grid-template-columns: 1fr; }
  .hero__art { max-width: 640px; margin-inline: auto; width: 100%; }
  .stock__grid { grid-template-columns: 1fr; }
  .stock__shot { position: static; }
  .feature, .feature--flip { grid-template-columns: 1fr; }
  .feature--flip .feature__copy { order: 0; }
  .contact__panel { grid-template-columns: 1fr; }
  .contact__qr { justify-self: start; }
}

/* Телефон */
@media (max-width: 720px) {
  body { font-size: 1rem; }
  .top__row { gap: 12px; }
  .brand__text small { display: none; }
  .brand__text b { font-size: 0.95rem; white-space: nowrap; }
  .hero__art { margin-top: 40px; }
  .top__burger { display: flex; }
  .top__nav { display: none; position: absolute; left: 0; right: 0; top: 100%; flex-direction: column; gap: 2px; padding: 10px 12px 14px; background: var(--ink); border-bottom: 1px solid var(--ink-line); box-shadow: 0 20px 40px -20px oklch(0 0 0 / 0.6); }
  .top__nav.is-open { display: flex; }
  .top__nav a { padding: 12px 14px; font-size: 1.05rem; }
  .hero__grid { padding-bottom: 56px; }
  .hero__art { aspect-ratio: 16 / 13; }
  .hero__cta .btn { flex: 1 1 100%; }
  .shot--second { left: 0; width: 60%; }
  .balance { width: 62%; right: 0; top: 42%; border-radius: 10px; }
  .balance__check { width: 32px; height: 32px; right: -6px; top: -10px; }
  .balance__check svg { width: 16px; height: 16px; }
  .facts__grid { grid-template-columns: 1fr 1fr; }
  .fact { padding: 18px 16px 18px 0; margin-right: 16px; border-bottom: 1px solid var(--line); }
  .fact:nth-child(2n) { border-right: 0; margin-right: 0; }
  .fact:nth-child(n+3) { border-bottom: 0; }
  .fact b { font-size: 1.3rem; }
  .pillars li { grid-template-columns: 36px minmax(0, 1fr); gap: 12px; }
  .pillar__icon { width: 36px; height: 36px; padding: 8px; }
  .more, .trust__grid, .roles__grid, .video__grid { grid-template-columns: 1fr; }
  .foot__row { grid-template-columns: 1fr; }
  .foot__nav { justify-self: start; }
  .fab span { display: none; }
  .fab { width: 56px; padding: 0; justify-content: center; right: 16px; }
}
@media (max-width: 440px) {
  .top__actions .btn--primary { padding: 0 11px; }
  .top__actions .btn__text { display: none; }
}
