/* Лендинг FSA Monitor.
 *
 * Оформлен теми же токенами, что и панель (см. frontend-react/src/styles/
 * tokens.css): тёмная поверхность, синий акцент, IBM Plex Sans. Внешних
 * зависимостей нет — CSP демо-домена запрещает сторонние скрипты и стили,
 * а первый экран должен открываться из сети магазина.
 */

@font-face {
  font-family: 'IBM Plex Sans';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('/fonts/ibm-plex-sans-400-cyrillic.woff2') format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: 'IBM Plex Sans';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('/fonts/ibm-plex-sans-400-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+2000-206F, U+20AC;
}
@font-face {
  font-family: 'IBM Plex Sans';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('/fonts/ibm-plex-sans-500-cyrillic.woff2') format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: 'IBM Plex Sans';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('/fonts/ibm-plex-sans-500-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+2000-206F, U+20AC;
}
@font-face {
  font-family: 'IBM Plex Sans';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('/fonts/ibm-plex-sans-600-cyrillic.woff2') format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: 'IBM Plex Sans';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('/fonts/ibm-plex-sans-600-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+2000-206F, U+20AC;
}

:root {
  color-scheme: dark;
  --surface: #121212;
  --surface-raised: #1b1b1b;
  --surface-inset: #232323;
  --foreground: #fafafa;
  --muted: #b4b4b4;
  --subtle: #8d8d8d;
  --brand: #60a5fa;
  --brand-ink: #0b1220;
  --line: rgba(255, 255, 255, 0.09);
  --line-strong: rgba(255, 255, 255, 0.16);
  --radius: 22px;
  --radius-sm: 12px;
  --wrap: 1160px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--surface);
  color: var(--foreground);
  font-family: 'IBM Plex Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-decoration: none;
}

code {
  font-size: 0.92em;
  padding: 0.1em 0.35em;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.08);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

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

.skip {
  position: fixed;
  left: 12px;
  top: -60px;
  z-index: 100;
  padding: 8px 14px;
  border-radius: 999px;
  background: var(--brand);
  color: var(--brand-ink);
  font-weight: 500;
  transition: top 120ms ease;
}
.skip:focus-visible {
  top: 12px;
}

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

/* --- Шапка ---------------------------------------------------------- */
.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(12px);
  background: rgba(18, 18, 18, 0.82);
  border-bottom: 1px solid var(--line);
}

.topbar__row {
  display: flex;
  align-items: center;
  gap: 18px;
  height: 64px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.brand__mark {
  width: 22px;
  height: 22px;
  border-radius: 7px;
  background: linear-gradient(140deg, var(--brand), #2563eb);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.12) inset;
}

.tag {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--brand);
  border: 1px solid rgba(96, 165, 250, 0.35);
  background: rgba(96, 165, 250, 0.12);
  border-radius: 999px;
  padding: 2px 8px;
}

.topbar__nav {
  display: flex;
  gap: 20px;
  margin-left: auto;
  font-size: 14px;
  color: var(--muted);
}

.topbar__nav a:hover {
  color: var(--foreground);
}

@media (max-width: 760px) {
  .topbar__nav {
    display: none;
  }
}

/* --- Кнопки --------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 20px;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 500;
  border: 1px solid transparent;
  transition:
    background-color 150ms ease,
    color 150ms ease,
    border-color 150ms ease;
}

.btn--sm {
  min-height: 36px;
  padding: 0 16px;
  font-size: 14px;
}

.btn--primary {
  background: var(--brand);
  color: var(--brand-ink);
}
.btn--primary:hover {
  background: #8abbff;
}

.btn--ghost {
  border-color: var(--line-strong);
  color: var(--foreground);
}
.btn--ghost:hover {
  border-color: rgba(255, 255, 255, 0.3);
  background: rgba(255, 255, 255, 0.04);
}

/* --- Обложка -------------------------------------------------------- */
.hero {
  position: relative;
  padding: 72px 0 40px;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  inset: -30% 20% auto;
  height: 480px;
  background: radial-gradient(closest-side, rgba(96, 165, 250, 0.22), transparent);
  pointer-events: none;
}

.hero .wrap {
  position: relative;
}

.eyebrow {
  margin: 0 0 14px;
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--brand);
}

h1 {
  margin: 0;
  font-size: clamp(34px, 5.2vw, 58px);
  line-height: 1.06;
  letter-spacing: -0.03em;
  font-weight: 600;
}

.lead {
  margin: 20px 0 0;
  max-width: 620px;
  font-size: 18px;
  color: var(--muted);
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.hint {
  margin: 14px 0 0;
  font-size: 13px;
  color: var(--subtle);
}

.hint--tight {
  margin-top: 8px;
}

/* --- Снимки --------------------------------------------------------- */
.shot {
  margin: 0;
}

.shot img {
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--surface-inset);
  box-shadow: 0 30px 80px -30px rgba(0, 0, 0, 0.9);
}

.shot figcaption {
  margin-top: 10px;
  font-size: 13px;
  color: var(--subtle);
}

.shot--hero {
  margin-top: 40px;
}

.shot--hero img {
  width: 100%;
}

.shot--phone {
  max-width: 300px;
  margin: 0 auto;
}

/* --- Секции --------------------------------------------------------- */
.section {
  padding: 72px 0;
  border-top: 1px solid var(--line);
}

.section--alt {
  background: #151515;
}

h2 {
  margin: 0 0 10px;
  font-size: clamp(24px, 3vw, 34px);
  line-height: 1.15;
  letter-spacing: -0.02em;
  font-weight: 600;
}

h3 {
  margin: 0 0 8px;
  font-size: 17px;
  font-weight: 500;
  letter-spacing: -0.01em;
}

.section__lead {
  margin: 0 0 32px;
  max-width: 620px;
  color: var(--muted);
  font-size: 16px;
}

.muted {
  color: var(--muted);
}

.grid {
  display: grid;
  gap: 16px;
}

.grid--3 {
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.grid--4 {
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
}

.card,
.feature {
  background: var(--surface-raised);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
}

.card p {
  margin: 0 0 10px;
  font-size: 14px;
}

.card .answer {
  margin: 0;
  padding-top: 12px;
  border-top: 1px solid var(--line);
  color: var(--foreground);
  font-size: 14px;
}

.feature__icon {
  display: inline-grid;
  place-items: center;
  width: 38px;
  height: 38px;
  margin-bottom: 14px;
  border-radius: 11px;
  background: rgba(96, 165, 250, 0.14);
  color: var(--brand);
  font-size: 18px;
}

.feature p {
  margin: 0;
  font-size: 14px;
  color: var(--muted);
}

/* --- Двухколоночные блоки ------------------------------------------ */
.split {
  display: grid;
  grid-template-columns: 1.35fr 1fr;
  gap: 40px;
  align-items: center;
}

.split + .split {
  margin-top: 64px;
}

.split--reverse {
  grid-template-columns: 1fr 1.35fr;
}

.split--reverse > figure {
  order: 2;
}

@media (max-width: 900px) {
  .split,
  .split--reverse {
    grid-template-columns: 1fr;
  }
  .split--reverse > figure {
    order: 0;
  }
}

.list {
  margin: 16px 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 12px;
}

.list li {
  position: relative;
  padding-left: 26px;
  color: var(--muted);
  font-size: 15px;
}

.list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 9px;
  width: 8px;
  height: 8px;
  border-radius: 3px;
  background: var(--brand);
}

/* --- Цифры ---------------------------------------------------------- */
.stats {
  gap: 24px;
}

.stat {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.stat b {
  font-size: clamp(28px, 3.4vw, 40px);
  font-weight: 600;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
}

.stat span {
  font-size: 14px;
  color: var(--muted);
}

/* --- Как устроено --------------------------------------------------- */
.flow {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 16px;
  counter-reset: step;
}

.flow li {
  counter-increment: step;
  position: relative;
  background: var(--surface-raised);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 48px 22px 22px;
}

.flow li::before {
  content: counter(step);
  position: absolute;
  top: 18px;
  left: 22px;
  width: 22px;
  height: 22px;
  display: grid;
  place-items: center;
  border-radius: 7px;
  background: rgba(96, 165, 250, 0.16);
  color: var(--brand);
  font-size: 12px;
  font-weight: 600;
}

.flow b {
  display: block;
  margin-bottom: 6px;
  font-size: 15px;
  font-weight: 500;
}

.flow span {
  font-size: 14px;
  color: var(--muted);
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 28px;
}

.chip {
  font-size: 13px;
  color: var(--muted);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 6px 12px;
}

/* --- Финальный призыв ---------------------------------------------- */
.cta__box {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  background: var(--surface-raised);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 32px;
}

.cta__actions {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
}

/* --- Подвал --------------------------------------------------------- */
.footer {
  border-top: 1px solid var(--line);
  padding: 28px 0 40px;
  font-size: 13px;
  color: var(--subtle);
}

.footer__row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: space-between;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  * {
    transition-duration: 0.01ms !important;
  }
}