/* Локальный шрифт и параметры его загрузки. */
@font-face {
  font-family: Manrope;
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
  src: url('../assets/fonts/manrope-cyrillic.woff2') format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}

/* Локальный шрифт и параметры его загрузки. */
@font-face {
  font-family: Manrope;
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
  src: url('../assets/fonts/manrope-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: 700 800;
  font-display: swap;
  src: url('../assets/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: 700 800;
  font-display: swap;
  src: url('../assets/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;
}

/* Переменные и сброс стилей */

:root {
  /* Постоянные цвета; --white ниже переопределяется в светлой теме кабинета. */
  --color-white: #fff;
  --preview-accent: #075bfa;
  --black: #000;
  --obsidian: #04060c;
  --carbon: #090d16;
  --blue: #0066ff;
  --cobalt: #0047b3;
  --ray: #1a75ff;
  --white: #fff;
  --ice: #cbd5e1;
  --steel: #b2bfd1;
  --dim: #94a3b8;
  --danger: #ff7a7a;
  --line: rgba(255, 255, 255, 0.08);
  --line-soft: rgba(255, 255, 255, 0.05);
  --line-blue: rgba(0, 102, 255, 0.72);
  --tint: rgba(0, 102, 255, 0.24);
  --font: Manrope, 'Segoe UI', sans-serif;
  --font-display: Onest, Manrope, 'Segoe UI', sans-serif;
  --mono: Manrope, 'Segoe UI', sans-serif;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --gutter: 32px;
  --container: 1440px;
  --section-y: 112px;
  --header-h: 66px;
}

/* Правило @property --mx. */
@property --mx {
  syntax: '<percentage>';
  inherits: false;
  initial-value: 8%;
}

/* Правило @property --my. */
@property --my {
  syntax: '<percentage>';
  inherits: false;
  initial-value: -5%;
}

/* *, *::before, *::after: декоративный слой без дополнительной разметки. */
*,
*::before,
*::after {
  box-sizing: border-box;
}

/* Документ: цвет и поверхность; прокрутка и переполнение. */
html {
  scroll-behavior: smooth;
  background: var(--black);
  scrollbar-color: var(--cobalt) var(--obsidian);
  scrollbar-width: thin;
}

body {
  position: relative;
  min-width: 320px;
  margin: 0;
  overflow-x: hidden;
  color: var(--white);
  background:
    radial-gradient(
      1200px 700px at 18% -8%,
      rgba(0, 71, 179, 0.22),
      transparent 58%
    ),
    radial-gradient(
      900px 620px at 92% 12%,
      rgba(0, 102, 255, 0.1),
      transparent 52%
    ),
    var(--black);
  font-family: var(--font);
  font-variant-numeric: tabular-nums;
  line-height: 1.5;
  text-rendering: optimizeLegibility;
}

.skip-link {
  position: absolute;
  z-index: 400;
  top: 12px;
  left: 12px;
  padding: 10px 14px;
  border-radius: 10px;
  background: var(--blue);
  transform: translateY(-140%);
  transition: transform 0.2s var(--ease);

  &:focus {
    transform: none;
  }
}

/* Меню: прокрутка и переполнение. */
body.modal-open,
body.menu-open {
  overflow: hidden;
}

button,
input,
textarea {
  border: 0;
  color: inherit;
  font: inherit;
}

button {
  cursor: pointer;
}

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

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

h1,
h2,
h3 {
  margin: 0;
  text-wrap: balance;
}

h1,
h2 {
  font-family: var(--font-display);
  font-weight: 700;
  font-synthesis: none;
  letter-spacing: 0;
  text-rendering: geometricPrecision;
  -webkit-font-smoothing: auto;
}

h1 em,
h2 em {
  color: var(--ray);
  font-style: normal;
}

:focus-visible {
  outline: 2px solid var(--ray);
  outline-offset: 3px;
}

::selection {
  color: var(--color-white, #fff);
  background: var(--blue);
}

::-webkit-scrollbar {
  width: 9px;
  height: 9px;
}

::-webkit-scrollbar-track {
  background: var(--obsidian);
}

::-webkit-scrollbar-thumb {
  border: 2px solid var(--obsidian);
  border-radius: 10px;
  background: var(--cobalt);
}

/* ::-webkit-scrollbar-thumb:hover: состояние при наведении. */
::-webkit-scrollbar-thumb:hover {
  background: var(--blue);
}

::-webkit-scrollbar-corner {
  background: var(--obsidian);
}

/* Фон и подсветка */

#ambientCanvas,
.page-grid {
  position: absolute;
  z-index: 0;
  top: 0;
  left: 0;
  width: 100%;
  pointer-events: none;
}

#ambientCanvas {
  width: 100%;
  max-width: 100%;
  height: 100vh;
  opacity: 0.38;
  -webkit-mask-image: linear-gradient(to bottom, #000 8%, transparent 88%);
  mask-image: linear-gradient(to bottom, #000 8%, transparent 88%);
}

.page-grid {
  height: 1800px;
  opacity: 0.3;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.016) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.016) 1px, transparent 1px);
  background-size: 72px 72px;
  -webkit-mask-image: linear-gradient(to bottom, #000, transparent 72%);
  mask-image: linear-gradient(to bottom, #000, transparent 72%);
}

main,
.site-footer {
  position: relative;
  z-index: 1;
}

.container {
  width: min(var(--container), 100% - var(--gutter) * 2);
  margin-inline: auto;
}

.section {
  position: relative;
  padding-block: var(--section-y);
  overflow: clip;
  scroll-margin-top: calc(var(--header-h) + 34px);

  & > .container {
    position: relative;
    z-index: 2;
  }
}

/* Подсветка секций задана радиальными градиентами без фильтра blur(). */
.section::before,
.hero::after {
  position: absolute;
  z-index: 0;
  width: 1100px;
  height: 900px;
  pointer-events: none;
  content: '';
  background: radial-gradient(
    closest-side,
    var(--glow, rgba(0, 71, 179, 0.26)),
    rgba(0, 71, 179, 0.07) 52%,
    transparent
  );
}

/* Первый экран: декоративный слой без дополнительной разметки. */
.hero::before {
  top: -320px;
  right: -260px;
  width: 1300px;
  height: 1200px;
  --glow: rgba(0, 102, 255, 0.42);
}

/* Первый экран: декоративный слой без дополнительной разметки. */
.hero::after {
  top: -420px;
  left: -300px;
  width: 1000px;
  height: 900px;
  --glow: rgba(0, 71, 179, 0.24);
}

/* .reliability::before: декоративный слой без дополнительной разметки. */
.reliability::before {
  top: -8%;
  left: -560px;
}

/* .solutions::before: декоративный слой без дополнительной разметки. */
.solutions::before {
  top: 8%;
  right: -600px;
  --glow: rgba(0, 102, 255, 0.15);
}

/* .cases::before: декоративный слой без дополнительной разметки. */
.cases::before {
  bottom: -20%;
  left: -540px;
  --glow: rgba(0, 71, 179, 0.2);
}

/* Начало работы: декоративный слой без дополнительной разметки. */
.safe-start::before {
  top: 0;
  right: -620px;
  --glow: rgba(0, 102, 255, 0.12);
}

/* .compliance::before: декоративный слой без дополнительной разметки. */
.compliance::before {
  bottom: -20%;
  left: -520px;
}

/* Секция страницы: декоративный слой без дополнительной разметки. */
.lead-section::before {
  top: -10%;
  right: -480px;
  --glow: rgba(0, 102, 255, 0.18);
}

.glass {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background:
    radial-gradient(
      640px circle at var(--mx, 8%) var(--my, -5%),
      rgba(0, 102, 255, 0.28),
      transparent 58%
    ),
    linear-gradient(160deg, rgba(255, 255, 255, 0.05), transparent 26%),
    linear-gradient(145deg, rgba(10, 16, 28, 0.94), rgba(4, 7, 13, 0.92));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.07),
    inset 0 -1px 0 rgba(255, 255, 255, 0.02),
    0 24px 70px rgba(0, 0, 0, 0.42);

  & > * {
    position: relative;
    z-index: 2;
  }

  &::before {
    position: absolute;
    z-index: 1;
    inset: 0;
    border-radius: inherit;
    pointer-events: none;
    content: '';
    opacity: 0.055;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 160 160'%3E%3Cfilter id='g' x='0' y='0' width='100%25' height='100%25'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='1.15' numOctaves='2' seed='4' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23g)'/%3E%3C/svg%3E");
    background-size: 160px 160px;
  }
}

.edge-light {
  position: absolute;
  z-index: 3;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;

  &::before {
    position: absolute;
    inset: 0;
    padding: 1px;
    border-radius: inherit;
    content: '';
    opacity: 0.88;
    background: conic-gradient(
      from 220deg,
      transparent 0deg,
      rgba(0, 102, 255, 0.32) 28deg,
      rgba(26, 117, 255, 0.95) 58deg,
      rgba(0, 102, 255, 0.82) 78deg,
      rgba(255, 255, 255, 0.16) 112deg,
      transparent 168deg,
      transparent 278deg,
      rgba(0, 71, 179, 0.38) 325deg,
      transparent 360deg
    );
    -webkit-mask:
      linear-gradient(#000 0 0) content-box,
      linear-gradient(#000 0 0);
    -webkit-mask-composite: xor;
    mask:
      linear-gradient(#000 0 0) content-box,
      linear-gradient(#000 0 0);
    mask-composite: exclude;
    transition: opacity 0.35s;
  }
}

/* Светлая тема: состояние при наведении. */
.glass:hover > .edge-light::before {
  opacity: 1;
}

/* Шапка и навигация */

.site-header {
  position: fixed;
  z-index: 100;
  inset: 0 0 auto;
  padding: 18px var(--gutter);
  transition: padding 0.35s var(--ease);

  &.scrolled {
    padding-top: 10px;
  }
}

.header-shell {
  display: grid;
  grid-template-columns: minmax(180px, 1fr) auto minmax(180px, 1fr);
  align-items: center;
  width: min(var(--container), 100%);
  min-height: var(--header-h);
  margin: 0 auto;
  padding: 8px 10px 8px 16px;
  border: 1px solid rgba(0, 102, 255, 0.18);
  border-radius: 999px;
  background: rgba(4, 6, 12, 0.78);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.06),
    0 16px 50px rgba(0, 0, 0, 0.48),
    0 0 0 1px rgba(0, 102, 255, 0.04);
  -webkit-backdrop-filter: blur(28px) saturate(170%);
  backdrop-filter: blur(28px) saturate(170%);
  transition: background 0.35s;
}

.site-header.scrolled .header-shell {
  background: rgba(4, 6, 12, 0.86);
}

.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  width: max-content;
}

.wordmark-mark {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border: 1px solid var(--line-blue);
  border-radius: 11px;
  color: var(--ray);
  background: var(--tint);
  box-shadow:
    inset 0 1px rgba(255, 255, 255, 0.1),
    0 0 16px rgba(0, 102, 255, 0.18);

  & svg {
    width: 21px;
    stroke: currentColor;
    stroke-width: 1.55;
  }
}

.wordmark-copy {
  display: flex;
  flex-direction: column;

  & strong {
    font-size: 18px;
    font-weight: 800;
    letter-spacing: -0.04em;
  }

  & small {
    max-width: 230px;
    margin-top: 1px;
    overflow: hidden;
    color: var(--dim);
    font: 600 9px/1.2 var(--mono);
    letter-spacing: 0.16em;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
}

.desktop-nav {
  display: flex;
  align-items: center;
  justify-content: center;

  & :is(a, :where(.portal-header-tab)) {
    padding: 10px 11px;
    border-radius: 999px;
    color: var(--steel);
    font-size: 12.5px;
    font-weight: 500;
    white-space: nowrap;
    transition:
      color 0.2s,
      background 0.2s;
  }

  & :is(a, :where(.portal-header-tab)):hover,
  & :is(a, :where(.portal-header-tab)).active {
    color: var(--color-white, #fff);
    background: rgba(255, 255, 255, 0.045);
  }
}

.header-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
}

.header-phone {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--ice);
  font: 600 10.5px/1 var(--mono);
  white-space: nowrap;
  transition: color 0.2s;

  &:hover {
    color: var(--color-white, #fff);
  }

  & svg {
    width: 15px;
    stroke: var(--ray);
    stroke-width: 1.6;
  }
}

.header-telegram {
  display: grid;
  flex: 0 0 auto;
  place-items: center;
  width: 36px;
  height: 36px;
  border: 1px solid var(--line-blue);
  border-radius: 50%;
  color: var(--ray);
  background: var(--tint);
  transition:
    background 0.2s,
    box-shadow 0.2s,
    transform 0.2s;

  &:hover {
    background: rgba(0, 102, 255, 0.16);
    box-shadow: 0 0 18px rgba(0, 102, 255, 0.2);
    transform: translateY(-1px);
  }

  & svg {
    width: 16px;
  }
}

.menu-button {
  position: relative;
  display: none;
  place-items: center;
  width: 42px;
  height: 42px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.035);

  & span {
    position: absolute;
    width: 16px;
    height: 1px;
    background: var(--color-white, #fff);
    transition: transform 0.3s var(--ease);
  }

  & span:first-child {
    transform: translateY(-3px);
  }

  & span:last-child {
    transform: translateY(3px);
  }

  &[aria-expanded='true'] span:first-child {
    transform: rotate(45deg);
  }

  &[aria-expanded='true'] span:last-child {
    transform: rotate(-45deg);
  }
}

.mobile-menu,
.menu-backdrop {
  position: fixed;
  visibility: hidden;
  opacity: 0;
  pointer-events: none;
}

.mobile-menu {
  z-index: 90;
  top: calc(var(--header-h) + 30px);
  right: var(--gutter);
  display: flex;
  flex-direction: column;
  width: min(420px, 100% - var(--gutter) * 2);
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: rgba(4, 6, 12, 0.95);
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.8);
  transform: translateY(-12px) scale(0.98);
  -webkit-backdrop-filter: blur(30px) saturate(160%);
  backdrop-filter: blur(30px) saturate(160%);
  transition:
    opacity 0.3s var(--ease),
    transform 0.3s var(--ease),
    visibility 0.3s;

  &.open {
    visibility: visible;
    opacity: 1;
    pointer-events: auto;
    transform: none;
  }

  & nav {
    display: flex;
    flex-direction: column;
    margin-bottom: 22px;
  }

  & nav :is(a, :where(.portal-menu-tab)) {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px 4px;
    border-bottom: 1px solid var(--line);
    font-size: 15px;
    font-weight: 600;
  }

  & nav a span {
    color: var(--dim);
    font: 500 10px/1 var(--mono);
  }
}

.mobile-direct {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-top: 18px;
  color: var(--steel);
  font: 500 11px/1.4 var(--mono);
}

.menu-backdrop {
  z-index: 80;
  inset: 0;
  background: rgba(0, 0, 0, 0.64);
  -webkit-backdrop-filter: blur(5px);
  backdrop-filter: blur(5px);
  transition:
    opacity 0.3s,
    visibility 0.3s;

  &.open {
    visibility: visible;
    opacity: 1;
    pointer-events: auto;
  }
}

/* Кнопки и общие элементы */

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 44px;
  padding: 0 20px;
  border: 1px solid transparent;
  border-radius: 12px;
  white-space: nowrap;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: -0.01em;
  transition:
    transform 0.2s var(--ease),
    border-color 0.2s,
    background 0.2s,
    box-shadow 0.2s,
    opacity 0.2s;

  &:hover {
    transform: translateY(-2px);
  }

  &:active {
    transform: translateY(0);
    transition-duration: 0.08s;
  }

  &[disabled] {
    opacity: 0.72;
    cursor: progress;
    transform: none;
  }
}

.button-primary {
  border-color: rgba(255, 255, 255, 0.16);
  color: var(--color-white, #fff);
  background: linear-gradient(180deg, var(--ray), var(--blue));
  box-shadow:
    0 10px 34px rgba(0, 102, 255, 0.46),
    inset 0 1px rgba(255, 255, 255, 0.24);

  &:hover {
    box-shadow:
      0 14px 40px rgba(0, 102, 255, 0.6),
      inset 0 1px rgba(255, 255, 255, 0.3);
  }
}

.button-secondary {
  border-color: rgba(0, 102, 255, 0.66);
  color: var(--color-white, #fff);
  background: rgba(9, 13, 22, 0.76);
  box-shadow: inset 0 1px rgba(255, 255, 255, 0.05);

  &:hover {
    border-color: var(--ray);
    background: rgba(0, 102, 255, 0.17);
    box-shadow: 0 0 28px rgba(0, 102, 255, 0.24);
  }
}

.button-large {
  min-height: 54px;
  padding-inline: 26px;
  border-radius: 14px;
  font-size: 14px;
}

.button svg {
  flex: 0 0 auto;
  width: 18px;
  stroke: currentColor;
  stroke-width: 1.8;
}

.telegram-icon {
  fill: currentColor;
  stroke: none;
}

.submit-spinner {
  width: 14px;
  height: 14px;
  border: 2px solid rgba(255, 255, 255, 0.28);
  border-top-color: var(--color-white, #fff);
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: var(--ray);
  font: 600 10px/1.4 var(--mono);
  letter-spacing: 0.14em;
  text-transform: uppercase;

  & > span {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--blue);
    box-shadow: 0 0 12px var(--blue);
    animation: pulse 2.4s ease-in-out infinite;
  }
}

.live-indicator i,
.system-status i,
.response-note i {
  display: inline-block;
  flex: 0 0 auto;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--blue);
  box-shadow: 0 0 9px var(--blue);
}

.stage-metrics article > span,
.compliance-grid article > span {
  display: grid;
  flex: 0 0 auto;
  place-items: center;
  width: 34px;
  height: 34px;
  border: 1px solid var(--line-blue);
  border-radius: 10px;
  color: var(--ray);
  background: var(--tint);
  font: 600 10px/1 var(--mono);
}

.section-heading {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(280px, 0.6fr);
  align-items: end;
  gap: 60px;
  margin-bottom: 52px;

  &.compact {
    display: block;
    margin-bottom: 50px;
  }

  & h2 {
    max-width: 760px;
    margin-top: 18px;
    font-size: clamp(36px, 4.2vw, 58px);
    font-weight: 700;
    line-height: 1.08;
    letter-spacing: 0;
  }

  & > p {
    margin: 0 0 4px;
    color: var(--steel);
    font-size: 15px;
    line-height: 1.7;
  }
}

/* Первый экран */

.hero {
  min-height: 0;
  padding-top: 128px;
  padding-bottom: 72px;

  & .container {
    display: grid;
    grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
    align-items: center;
    gap: clamp(40px, 4vw, 72px);
  }
}

.hero-copy {
  min-width: 0;
  max-width: 610px;
}

.hero h1 {
  max-width: 610px;
  margin: 25px 0 24px;
  font-size: clamp(40px, 3.4vw, 56px);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: 0;
}

.hero-lead {
  max-width: 570px;
  margin: 0;
  color: var(--steel);
  font-size: 17px;
  line-height: 1.68;
  letter-spacing: -0.018em;
}

.hero-actions {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 12px;
  margin-top: 32px;
}

.hero-proof {
  display: grid;
  gap: 9px;
  margin-top: 34px;
  color: var(--dim);
  font: 500 11px/1.4 var(--mono);

  & span {
    position: relative;
    padding-left: 17px;
  }

  & span::before {
    position: absolute;
    top: 0.45em;
    left: 0;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    content: '';
    background: var(--blue);
    box-shadow: 0 0 10px rgba(0, 102, 255, 0.8);
  }

  & b {
    color: var(--ice);
    font-weight: 600;
  }
}

.hero-stage {
  display: flex;
  flex-direction: column;
  gap: 20px;
  min-width: 0;
  min-height: clamp(620px, 48vw, 720px);
  padding: 28px;
  border-radius: 34px;
  background:
    radial-gradient(
      circle at 82% 12%,
      rgba(0, 102, 255, 0.34),
      transparent 34%
    ),
    radial-gradient(circle at 18% 78%, rgba(0, 71, 179, 0.22), transparent 42%),
    linear-gradient(160deg, rgba(255, 255, 255, 0.05), transparent 26%),
    linear-gradient(145deg, rgba(10, 18, 34, 0.94), rgba(2, 4, 8, 0.9));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    0 32px 90px rgba(0, 0, 0, 0.46),
    0 0 80px rgba(0, 102, 255, 0.08);
  -webkit-backdrop-filter: blur(24px) saturate(160%);
  backdrop-filter: blur(24px) saturate(160%);
}

.hero-system {
  position: relative;
  display: grid;
  flex: 1;
  grid-template-columns: 54px 1fr;
  min-height: 420px;
  overflow: hidden;
  border-radius: 22px;
  background: rgba(0, 0, 0, 0.38);
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.06),
    0 25px 70px rgba(0, 0, 0, 0.42);
  transition: transform 0.28s var(--ease);
}

.system-sidebar {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
  padding: 14px 0;
  border-right: 1px solid var(--line-soft);
  background: rgba(1, 4, 10, 0.56);
}

.system-logo {
  display: grid;
  place-items: center;
  width: 27px;
  height: 27px;
  margin-bottom: 12px;
  border-radius: 8px;
  color: var(--color-white, #fff);
  background: linear-gradient(145deg, var(--ray), var(--cobalt));
  box-shadow: 0 0 18px rgba(0, 102, 255, 0.3);
  font: 700 10px/1 var(--mono);
}

.system-sidebar i {
  width: 16px;
  height: 16px;
  border: 1px solid rgba(148, 163, 184, 0.18);
  border-radius: 5px;

  &.active {
    border-color: rgba(0, 102, 255, 0.62);
    background: rgba(0, 102, 255, 0.18);
    box-shadow: 0 0 12px rgba(0, 102, 255, 0.18);
  }
}

.system-sidebar b {
  width: 18px;
  height: 1px;
  margin-top: auto;
  background: rgba(255, 255, 255, 0.1);
}

.system-workspace {
  display: grid;
  grid-template-rows: auto 1fr auto;
  min-width: 0;
}

.system-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 72px;
  padding: 0 22px;
  border-bottom: 1px solid var(--line-soft);

  & > div {
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 0;
  }

  & small {
    color: var(--dim);
    font: 500 9px/1 var(--mono);
    letter-spacing: 0.1em;
  }

  & strong {
    font-size: 14px;
    letter-spacing: -0.02em;
  }
}

.live-indicator {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 11px;
  border: 1px solid var(--line-blue);
  border-radius: 999px;
  color: var(--ice);
  background: rgba(0, 0, 0, 0.48);
  font: 600 9px/1 var(--mono);
  letter-spacing: 0.1em;
  white-space: nowrap;

  & i {
    animation: pulse 2.4s ease-in-out infinite;
  }
}

.architecture-map {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: center;
  min-height: 0;
  padding: 22px 18px 16px;
  overflow: hidden;
  background:
    linear-gradient(rgba(255, 255, 255, 0.016) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.016) 1px, transparent 1px);
  background-size: 28px 28px;

  &::after {
    position: absolute;
    inset: 0;
    pointer-events: none;
    content: '';
    background: radial-gradient(
      ellipse 70% 55% at 50% 40%,
      rgba(0, 102, 255, 0.12),
      transparent 70%
    );
  }
}

/* График: переменные оформления; расположение элементов. */
.flow-chart {
  --flow-cols: 1fr 32px 1fr 32px 1fr 32px 1fr;
  --flow-ink: #7eb6ff;
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  width: 100%;
  max-width: 720px;
}

.flow-steps {
  display: grid;
  grid-template-columns: var(--flow-cols);
  align-items: stretch;
  margin: 0;
  padding: 0;
  list-style: none;
}

.flow-step {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  min-height: 108px;
  padding: 16px 14px;
  border: 1px solid rgba(126, 182, 255, 0.26);
  border-radius: 14px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.04), transparent 40%),
    linear-gradient(180deg, rgba(12, 24, 44, 0.98), rgba(5, 10, 20, 0.98));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.06),
    0 10px 28px rgba(0, 0, 0, 0.32);
}

.flow-connector {
  display: grid;
  place-items: center;
  min-height: 108px;

  & svg {
    width: 28px;
    height: 12px;
    overflow: visible;
  }

  & path {
    stroke: var(--flow-ink);
    stroke-width: 1.6;
    stroke-linecap: round;
    stroke-linejoin: round;
  }
}

.flow-step-num {
  color: var(--ray);
  font: 600 10px/1 var(--mono);
  letter-spacing: 0.14em;
}

.flow-step strong {
  color: var(--color-white, #fff);
  font-size: 15px;
  font-weight: 650;
  letter-spacing: -0.03em;
  line-height: 1.15;
}

.flow-step small {
  color: var(--steel);
  font-size: 11px;
  font-weight: 500;
  line-height: 1.3;
}

.flow-rail {
  position: relative;
  display: grid;
  grid-template-columns: var(--flow-cols);
  height: 34px;
  margin-top: 0;
}

.flow-stem {
  position: relative;
  display: block;

  &::before {
    position: absolute;
    top: 0;
    left: 50%;
    width: 1.5px;
    height: 22px;
    content: '';
    background: linear-gradient(var(--flow-ink), rgba(126, 182, 255, 0.2));
    transform: translateX(-50%);
  }

  & i {
    position: absolute;
    top: -3.5px;
    left: 50%;
    width: 7px;
    height: 7px;
    border: 1.5px solid var(--flow-ink);
    border-radius: 50%;
    background: #07111f;
    transform: translateX(-50%);
  }
}

.flow-rail > b {
  position: absolute;
  top: 22px;
  right: calc((100% - 96px) / 8);
  left: calc((100% - 96px) / 8);
  height: 1.5px;
  background: rgba(126, 182, 255, 0.55);
}

.flow-control {
  display: flex;
  justify-content: center;
  margin-top: 2px;

  & span {
    padding: 7px 12px;
    border-radius: 999px;
    color: var(--ice);
    background: rgba(0, 102, 255, 0.1);
    box-shadow: inset 0 0 0 1px rgba(126, 182, 255, 0.3);
    font: 600 9px/1 var(--mono);
    letter-spacing: 0.08em;
    text-transform: uppercase;
    white-space: nowrap;
  }
}

.system-status {
  display: flex;
  align-items: center;
  justify-content: space-around;
  gap: 12px;
  min-height: 54px;
  padding: 0 12px;
  border-top: 1px solid var(--line-soft);
  color: var(--steel);
  font: 500 9px/1 var(--mono);

  & span {
    display: flex;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
  }
}

.stage-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;

  & article {
    display: flex;
    align-items: center;
    gap: 14px;
    min-width: 0;
    min-height: 82px;
    padding: 15px 18px;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: rgba(6, 10, 20, 0.72);
    box-shadow:
      inset 0 1px rgba(255, 255, 255, 0.07),
      0 0 0 1px rgba(0, 102, 255, 0.06);
  }

  & article div {
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 0;
  }

  & small {
    color: var(--steel);
    font: 500 9.5px/1.4 var(--mono);
    letter-spacing: 0.12em;
  }

  & strong {
    font-size: 12.5px;
    font-weight: 600;
    line-height: 1.3;
    letter-spacing: -0.01em;
  }
}

/* Этап работы: движение и переходы. */
.hero-stage {
  transform: perspective(1800px) rotateY(-3.2deg) rotateX(1.1deg);
  transform-origin: 18% 50%;
}

.system-scene {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 0.72fr auto 1.35fr auto 0.78fr;
  align-items: stretch;
  gap: 10px;
  width: min(100%, 780px);
  margin: 0 auto 16px;
}

.scene-pane {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 0;
  padding: 16px 14px 14px;
  border: 1px solid rgba(126, 182, 255, 0.26);
  border-radius: 16px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.045), transparent 42%),
    linear-gradient(180deg, rgba(12, 24, 44, 0.98), rgba(5, 10, 20, 0.98));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);

  & > span {
    color: var(--ray);
    font: 600 11px/1 var(--mono);
    letter-spacing: 0.12em;
  }

  & > strong {
    color: var(--color-white, #fff);
    font-size: 16px;
    font-weight: 650;
    letter-spacing: -0.02em;
  }

  & > p {
    margin: 0 0 8px;
    color: var(--steel);
    font-size: 12px;
    line-height: 1.35;
  }

  & > i {
    display: block;
    height: 7px;
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.08);
  }

  & > i.done {
    width: 62%;
    background: linear-gradient(90deg, var(--blue), rgba(0, 102, 255, 0.15));
  }
}

.scene-core {
  gap: 10px;
}

.scene-layer {
  display: grid;
  grid-template-columns: 8px 1fr;
  gap: 10px;
  align-items: center;
  padding: 8px 10px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 10px;
  background: rgba(0, 102, 255, 0.05);

  & b {
    width: 8px;
    height: 8px;
    border-radius: 2px;
    background: var(--ray);
    box-shadow: 0 0 10px rgba(0, 102, 255, 0.45);
  }

  & em {
    display: block;
    color: var(--color-white, #fff);
    font-size: 13px;
    font-style: normal;
    font-weight: 600;
    letter-spacing: -0.01em;
  }

  & small {
    color: var(--steel);
    font-size: 11px;
  }
}

.scene-arrow {
  display: grid;
  place-items: center;

  & svg {
    width: 28px;
    height: 12px;
  }

  & path {
    stroke: #7eb6ff;
    stroke-width: 1.6;
    stroke-linecap: round;
    stroke-linejoin: round;
  }
}

.architecture-map .flow-control {
  position: relative;
  z-index: 1;
}

/* Секции страницы */

.reliability-card,
.solution-card,
.case-card {
  transition:
    transform 0.35s var(--ease),
    box-shadow 0.35s,
    --mx 0.25s ease-out,
    --my 0.25s ease-out;
}

/* Карточка: состояние при наведении. */
.reliability-card:hover,
.solution-card:hover,
.case-card:hover {
  z-index: 2;
  transform: translateY(-6px);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    0 32px 90px rgba(0, 0, 0, 0.6),
    0 0 56px rgba(0, 102, 255, 0.16);
}

/* Карточка: движение и переходы. */
.compliance-panel,
.lead-form-card,
.direct-card {
  transition:
    --mx 0.25s ease-out,
    --my 0.25s ease-out;
}

/* Ответственность */
.reliability {
  padding-top: 94px;
}

.reliability-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.reliability-card {
  display: flex;
  flex-direction: column;
  min-height: 300px;
  padding: 34px;
  border-radius: 22px;
}

.factor-index {
  color: var(--ray);
  font: 600 10px/1 var(--mono);
  letter-spacing: 0.11em;
}

.reliability-card h3 {
  max-width: 470px;
  margin: 40px 0 15px;
  font-size: 23px;
  line-height: 1.24;
  letter-spacing: -0.035em;
}

.reliability-card p {
  max-width: 520px;
  margin: 0 0 28px;
  color: var(--steel);
  font-size: 13.5px;
  line-height: 1.7;
}

.factor-result {
  margin-top: auto;
  padding-top: 22px;
  border-top: 1px solid var(--line);
  color: var(--ice);
  font: 500 10.5px/1.5 var(--mono);

  &::before {
    margin-right: 8px;
    color: var(--ray);
    content: '✓';
  }
}

/* Направления работы */
.solution-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.solution-card {
  display: flex;
  flex-direction: column;
  min-height: 390px;
  padding: 28px;
  border-radius: 22px;
}

.card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.card-number {
  color: var(--ray);
  font: 600 11px/1 var(--mono);
  letter-spacing: 0.12em;
}

.card-badge {
  padding: 6px 9px;
  border: 1px solid var(--line-blue);
  border-radius: 999px;
  color: var(--ray);
  background: var(--tint);
  font: 600 9px/1 var(--mono);
  letter-spacing: 0.1em;
  white-space: nowrap;
}

.solution-icon {
  display: grid;
  place-items: center;
  width: 50px;
  height: 50px;
  margin: 36px 0 26px;
  border: 1px solid rgba(0, 102, 255, 0.28);
  border-radius: 15px;
  color: var(--ray);
  background: var(--tint);
  box-shadow: inset 0 1px rgba(255, 255, 255, 0.05);
  transition:
    box-shadow 0.35s,
    border-color 0.35s;
}

/* Значок: состояние при наведении. */
.solution-card:hover .solution-icon {
  border-color: rgba(0, 102, 255, 0.5);
  box-shadow:
    inset 0 1px rgba(255, 255, 255, 0.05),
    0 0 22px rgba(0, 102, 255, 0.22);
}

.solution-icon svg {
  width: 25px;
  stroke: currentColor;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.solution-card h3 {
  margin-bottom: 13px;
  font-size: 20px;
  line-height: 1.25;
  letter-spacing: -0.03em;
}

.solution-card > p {
  min-height: 88px;
  margin: 0 0 24px;
  color: var(--steel);
  font-size: 13.5px;
  line-height: 1.65;
}

.solution-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: auto;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  color: var(--ray);
  font-size: 12px;
  font-weight: 600;

  & span {
    transition: transform 0.2s;
  }

  &:hover span {
    transform: translateX(4px);
  }
}

/* Примеры решений */
.cases {
  padding-top: 72px;
}

.case-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.case-card {
  display: flex;
  flex-direction: column;
  min-height: 610px;
  border-radius: 24px;
}

.case-cover {
  position: relative;
  flex: 0 0 auto;
  height: 220px;
  overflow: hidden;
  background:
    radial-gradient(
      circle at 70% 18%,
      rgba(0, 102, 255, 0.38),
      transparent 40%
    ),
    radial-gradient(circle at 20% 80%, rgba(0, 71, 179, 0.18), transparent 46%),
    linear-gradient(145deg, #0a1426, #02050a);
}

.case-chip {
  position: absolute;
  z-index: 3;
  top: 16px;
  left: 16px;
  padding: 6px 9px;
  border-radius: 999px;
  color: #b9c6d9;
  background: rgba(0, 0, 0, 0.6);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08);
  font: 600 9px/1 var(--mono);
  letter-spacing: 0.1em;
}

.case-window {
  position: absolute;
  right: -18px;
  bottom: -24px;
  width: 86%;
  height: 170px;
  border-radius: 14px 14px 0 0;
  background: rgba(4, 10, 21, 0.9);
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.1),
    -20px -12px 70px rgba(0, 102, 255, 0.16);
  transform: perspective(600px) rotateY(-8deg) rotateX(3deg);
}

.case-window-bar {
  display: flex;
  align-items: center;
  gap: 5px;
  height: 30px;
  padding: 0 12px;
  border-bottom: 1px solid var(--line-soft);

  & i {
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: rgba(148, 163, 184, 0.32);
  }
}

.case-window-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  padding: 14px;

  & b {
    height: 48px;
    border-radius: 6px;
    background: linear-gradient(
      145deg,
      rgba(0, 102, 255, 0.14),
      rgba(255, 255, 255, 0.025)
    );
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.035);
  }
}

.flow-map {
  position: absolute;
  inset: 62px 32px 24px;

  & i {
    position: absolute;
    z-index: 2;
    width: 38px;
    height: 38px;
    border: 1px solid rgba(0, 102, 255, 0.45);
    border-radius: 11px;
    background: #071225;
    box-shadow: 0 0 20px rgba(0, 102, 255, 0.16);
  }

  & i:nth-child(1) {
    top: 38%;
    left: 0;
  }
  & i:nth-child(2) {
    top: 0;
    left: 42%;
  }
  & i:nth-child(3) {
    right: 0;
    bottom: 0;
  }
  & i:nth-child(4) {
    bottom: 0;
    left: 28%;
  }

  & span {
    position: absolute;
    height: 1px;
    transform-origin: left;
    background: linear-gradient(90deg, rgba(0, 102, 255, 0.6), transparent);
  }

  & span:nth-of-type(1) {
    top: 50%;
    left: 10%;
    width: 42%;
    transform: rotate(-23deg);
  }
  & span:nth-of-type(2) {
    top: 22%;
    left: 50%;
    width: 48%;
    transform: rotate(31deg);
  }
  & span:nth-of-type(3) {
    bottom: 19%;
    left: 35%;
    width: 55%;
  }
}

.audit-chart {
  position: absolute;
  right: 25px;
  bottom: 25px;
  left: 25px;
  height: 125px;
  border-bottom: 1px solid var(--line);
  background: repeating-linear-gradient(
    to top,
    rgba(255, 255, 255, 0.035) 0 1px,
    transparent 1px 30px
  );

  & span {
    position: absolute;
    bottom: 0;
    width: 12%;
    border-radius: 4px 4px 0 0;
    background: linear-gradient(
      to top,
      rgba(0, 71, 179, 0.25),
      rgba(0, 102, 255, 0.75)
    );
  }

  & span:nth-child(1) {
    left: 4%;
    height: 25%;
  }
  & span:nth-child(2) {
    left: 23%;
    height: 38%;
  }
  & span:nth-child(3) {
    left: 42%;
    height: 34%;
  }
  & span:nth-child(4) {
    left: 61%;
    height: 70%;
  }
  & span:nth-child(5) {
    left: 80%;
    height: 88%;
  }

  & svg {
    position: absolute;
    inset: 4px 0 auto;
    width: 100%;
  }

  & path {
    stroke: var(--ray);
    stroke-width: 2;
    filter: drop-shadow(0 0 7px rgba(0, 102, 255, 0.5));
  }
}

.case-content {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 26px;
}

.case-type {
  color: var(--ray);
  font: 600 9px/1 var(--mono);
  letter-spacing: 0.1em;
}

.case-content h3 {
  margin: 16px 0 22px;
  font-size: 20px;
  line-height: 1.28;
  letter-spacing: -0.035em;
}

.case-content dl {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin: 0 0 24px;

  & > div {
    display: grid;
    grid-template-columns: 72px 1fr;
    gap: 10px;
  }
}

.case-content dt {
  color: var(--dim);
  font: 500 9px/1.6 var(--mono);
  text-transform: uppercase;
}

.case-content dd {
  margin: 0;
  color: var(--steel);
  font-size: 12px;
  line-height: 1.55;
}

.case-stack {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-top: auto;
  padding-top: 20px;
  border-top: 1px solid var(--line-soft);
  color: var(--dim);
  font: 500 9px/1.4 var(--mono);

  & b {
    color: var(--ray);
    transition: transform 0.2s;
  }
}

/* Стек технологий: состояние при наведении. */
.case-card:hover .case-stack b {
  transform: translateX(4px);
}

.cases-note {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 20px;
  padding: 18px 20px;
  border: 1px solid var(--line-soft);
  border-radius: 14px;
  color: var(--dim);
  background: rgba(255, 255, 255, 0.018);
  font-size: 11px;

  & a {
    color: var(--ray);
    font-weight: 600;
    white-space: nowrap;
  }
}

/* Первый этап */
.safe-start {
  padding-top: 70px;
}

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

  & article {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 40px;
    min-height: 300px;
    padding: 30px;
    border-right: 1px solid var(--line);
    transition: background 0.3s;
  }

  & article:first-child {
    padding-left: 0;
  }

  & article:last-child {
    padding-right: 0;
    border-right: 0;
  }

  & article:hover {
    background: linear-gradient(
      to bottom,
      rgba(0, 102, 255, 0.065),
      transparent 78%
    );
  }

  & > article > span {
    color: var(--ray);
    font: 600 34px/1 var(--mono);
    letter-spacing: -0.07em;
  }

  & small {
    color: var(--ray);
    font: 500 9px/1.4 var(--mono);
    letter-spacing: 0.09em;
  }

  & h3 {
    margin: 12px 0;
    font-size: 18px;
    line-height: 1.28;
    letter-spacing: -0.03em;
  }

  & p {
    margin: 0;
    color: var(--steel);
    font-size: 12.5px;
    line-height: 1.65;
  }
}

/* Условия работы */
.compliance {
  padding-top: 56px;
}

.compliance-panel {
  padding: 58px;
  border-radius: 28px;
}

.compliance-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);

  & article {
    display: flex;
    gap: 20px;
    min-height: 170px;
    padding: 28px;
    border-right: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
  }

  & h3 {
    margin: 3px 0 9px;
    font-size: 16px;
    letter-spacing: -0.025em;
  }

  & p {
    max-width: 430px;
    margin: 0;
    color: var(--steel);
    font-size: 12.5px;
    line-height: 1.65;
  }
}

.compliance-action {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding-top: 26px;

  & > div {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
  }

  & > div span {
    padding: 6px 9px;
    border: 1px solid var(--line);
    border-radius: 7px;
    color: var(--steel);
    background: rgba(255, 255, 255, 0.025);
    font: 500 9px/1 var(--mono);
    letter-spacing: 0.04em;
  }
}

/* Форма обращения и контакты */

.lead-section {
  padding-top: 62px;
  padding-bottom: 120px;
}

.lead-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(340px, 0.85fr);
  align-items: stretch;
  gap: 18px;
}

.lead-form-card,
.direct-card {
  display: flex;
  flex-direction: column;
  min-width: 0;
  padding: 38px;
  border-radius: 24px;
}

.lead-form-card {
  justify-content: center;

  & form {
    display: flex;
    flex-direction: column;
    gap: 12px;
  }
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;

  & > div {
    display: flex;
    flex-direction: column;
    gap: 8px;
  }
}

.form-row label,
.lead-form-card form > label {
  color: #e2e8f0;
  font-size: 12px;
  font-weight: 600;
}

.lead-form-card form > label {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
  margin-top: 7px;

  & span {
    color: var(--dim);
    font-size: 10px;
    font-weight: 500;
  }
}

.lead-form-card input:not([type='file']),
.lead-form-card textarea,
.modal-card input,
.modal-card textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 13px;
  color: var(--color-white, #fff);
  background: rgba(0, 0, 0, 0.46);
  outline: 0;
  transition:
    border-color 0.2s,
    box-shadow 0.2s;
}

.lead-form-card input:not([type='file']),
.modal-card input {
  height: 52px;
  padding: 0 15px;
}

.lead-form-card textarea,
.modal-card textarea {
  min-height: 130px;
  padding: 15px;
  resize: vertical;
}

:is(.lead-form-card, .modal-card) :is(input, textarea):focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(0, 102, 255, 0.13);
}

:is(.lead-form-card, .modal-card) :is(input, textarea)::placeholder {
  color: var(--dim);
}

.field-invalid {
  border-color: rgba(255, 122, 122, 0.7) !important;
  box-shadow: 0 0 0 3px rgba(255, 122, 122, 0.12) !important;
}

.file-field {
  position: relative;

  & input {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    clip-path: inset(50%);
    white-space: nowrap;
  }
}

.file-trigger {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 74px;
  padding: 13px 48px 13px 13px;
  border: 1px dashed rgba(0, 102, 255, 0.38);
  border-radius: 13px;
  background: rgba(0, 102, 255, 0.035);
  cursor: pointer;
  transition:
    border-color 0.2s,
    background 0.2s,
    box-shadow 0.2s;
}

.file-trigger:hover,
.file-field:focus-within .file-trigger {
  border-color: var(--blue);
  background: rgba(0, 102, 255, 0.07);
}

.file-field.drag-active .file-trigger {
  border-color: var(--ray);
  background: rgba(0, 102, 255, 0.13);
  box-shadow:
    inset 0 0 40px rgba(0, 102, 255, 0.06),
    0 0 24px rgba(0, 102, 255, 0.12);
}

.file-icon {
  display: grid;
  flex: 0 0 auto;
  place-items: center;
  width: 40px;
  height: 40px;
  border: 1px solid var(--line-blue);
  border-radius: 10px;
  color: var(--ray);
  background: var(--tint);

  & svg {
    width: 18px;
    stroke: currentColor;
    stroke-width: 1.6;
  }
}

.file-trigger > span:last-child {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
}

/* Файл: типографика; прокрутка и переполнение. */
.file-trigger strong {
  overflow: hidden;
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.file-trigger small {
  color: var(--dim);
  font-size: 10px;
}

.file-remove {
  position: absolute;
  z-index: 2;
  top: 50%;
  right: 13px;
  width: 30px;
  height: 30px;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--steel);
  background: var(--carbon);
  font-size: 18px;
  line-height: 1;
  transform: translateY(-50%);
  transition:
    color 0.2s,
    border-color 0.2s;

  &:hover {
    border-color: var(--line-blue);
    color: var(--color-white, #fff);
  }
}

.form-trap {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
  clip-path: inset(50%) !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

.form-error {
  padding: 10px 12px;
  border-radius: 9px;
  color: #f1d3d3;
  background: rgba(255, 122, 122, 0.08);
  box-shadow: inset 0 0 0 1px rgba(255, 122, 122, 0.28);
  font-size: 11.5px;
}

.turnstile-slot:empty {
  display: none;
}

.privacy-note {
  color: var(--dim);
  text-align: center;
  font-size: 10px;
  line-height: 1.5;
}

.form-success {
  padding: 20px 0 4px;
  text-align: center;

  & > span {
    display: grid;
    place-items: center;
    width: 58px;
    height: 58px;
    margin: 0 auto 20px;
    border: 1px solid var(--blue);
    border-radius: 50%;
    color: var(--ray);
    background: rgba(0, 102, 255, 0.1);
    box-shadow: 0 0 28px rgba(0, 102, 255, 0.2);
    font-size: 24px;
  }

  & h3 {
    margin-bottom: 8px;
    font-size: 24px;
  }

  & p {
    margin: 0 0 24px;
    color: var(--steel);
    font-size: 13px;
  }

  & .button {
    min-width: 160px;
  }
}

.lead-success {
  display: grid;
  place-content: center;
  min-height: 470px;

  &[hidden] {
    display: none;
  }
}

.direct-card {
  justify-content: space-between;

  & h3 {
    margin: 20px 0 12px;
    font-size: 27px;
    letter-spacing: -0.04em;
  }

  & > div:first-child p {
    margin: 0;
    color: var(--steel);
    font-size: 13.5px;
    line-height: 1.7;
  }
}

.manager {
  display: flex;
  align-items: center;
  gap: 13px;
  margin: 28px 0 22px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.025);
}

.manager-avatar {
  position: relative;
  display: grid;
  flex: 0 0 auto;
  place-items: center;
  width: 48px;
  height: 48px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 50%;
  background: linear-gradient(145deg, var(--ray), var(--cobalt));
  font-size: 14px;
  font-weight: 700;

  & i {
    position: absolute;
    right: 0;
    bottom: 1px;
    width: 10px;
    height: 10px;
    border: 2px solid var(--carbon);
    border-radius: 50%;
    background: var(--blue);
    box-shadow: 0 0 8px var(--blue);
  }
}

.manager > div {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.manager strong {
  font-size: 13px;
}

.manager small {
  color: var(--steel);
  font-size: 10.5px;
}

.manager em {
  margin-top: 3px;
  color: var(--ray);
  font: normal 500 9px/1.3 var(--mono);
}

.direct-actions {
  display: flex;
  flex-direction: column;
  gap: 8px;

  & > a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    min-height: 62px;
    padding: 12px 15px;
    border: 1px solid var(--line);
    border-radius: 13px;
    background: rgba(0, 0, 0, 0.32);
    transition:
      border-color 0.2s,
      background 0.2s,
      transform 0.2s;
  }

  & > a:hover {
    border-color: var(--line-blue);
    background: rgba(0, 102, 255, 0.07);
    transform: translateX(3px);
  }

  & a > span {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
  }

  & b {
    font-size: 12px;
  }

  & small {
    overflow: hidden;
    color: var(--steel);
    font: 500 10px/1.4 var(--mono);
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  & a > strong {
    color: var(--ray);
  }
}

.response-note {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-top: 18px;
  color: var(--dim);
  font: 500 9.5px/1.4 var(--mono);
}

/* Подвал */

.site-footer {
  padding: 72px 0 28px;
  border-top: 1px solid var(--line);
  background: var(--obsidian);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.8fr 1fr 1.2fr 1.2fr;
  gap: 60px;
  padding-bottom: 64px;

  & > div:first-child p {
    max-width: 300px;
    margin: 20px 0 0;
    color: var(--steel);
    font-size: 13px;
    line-height: 1.65;
  }

  & nav {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }

  & nav strong {
    margin-bottom: 8px;
    font-size: 12px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
  }

  & nav a {
    color: var(--steel);
    font-size: 12.5px;
    transition: color 0.2s;
  }

  & nav a:hover {
    color: var(--ray);
  }
}

.legal-data {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-top: 22px;
  color: var(--steel);
  font: 500 10px/1.5 var(--mono);

  & strong {
    color: var(--color-white, #fff);
    font-size: 11px;
  }
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 24px;
  padding-top: 26px;
  border-top: 1px solid var(--line);
  color: var(--dim);
  font: 500 10.5px/1.4 var(--mono);
}

/* Ссылка: цвет и поверхность; движение и переходы. */
.specialist-link {
  color: rgba(148, 163, 184, 0.55);
  transition: color 0.2s;

  &:hover {
    color: var(--ray);
  }
}

/* Модальные окна, уведомления и анимации */

.modal {
  position: fixed;
  z-index: 300;
  inset: 0;
  display: grid;
  place-items: center;
  visibility: hidden;
  padding: 24px;
  opacity: 0;
  pointer-events: none;
  transition:
    opacity 0.3s,
    visibility 0.3s;

  &.open {
    visibility: visible;
    opacity: 1;
    pointer-events: auto;
  }
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.82);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
}

.modal-card {
  position: relative;
  width: min(580px, 100%);
  max-height: calc(100vh - 48px);
  padding: 42px;
  overflow-y: auto;
  border-radius: 24px;
  transform: translateY(18px) scale(0.98);
  transition: transform 0.45s var(--ease);
}

/* Карточка: движение и переходы. */
.modal.open .modal-card {
  transform: none;
}

.modal-close {
  position: absolute;
  z-index: 5;
  top: 18px;
  right: 18px;
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--steel);
  background: rgba(255, 255, 255, 0.035);
  font-size: 22px;
  line-height: 1;
  transition:
    color 0.2s,
    border-color 0.2s,
    transform 0.2s;

  &:hover {
    border-color: var(--line-blue);
    color: var(--color-white, #fff);
    transform: rotate(90deg);
  }
}

.modal-card h2 {
  margin: 18px 0 10px;
  font-size: 34px;
  line-height: 1.1;
  letter-spacing: -0.045em;
}

.modal-card > p {
  margin: 0 0 28px;
  color: var(--steel);
  font-size: 14px;
}

.modal-card form {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.modal-card label {
  display: flex;
  flex-direction: column;
  gap: 8px;
  color: #dbe3ee;
  font-size: 12px;
  font-weight: 600;
}

.modal-card form > small {
  color: var(--dim);
  text-align: center;
  font-size: 10px;
}

.toast {
  position: fixed;
  z-index: 400;
  right: 24px;
  bottom: 24px;
  visibility: hidden;
  max-width: 360px;
  padding: 14px 18px;
  border: 1px solid var(--line-blue);
  border-radius: 12px;
  opacity: 0;
  color: #dce6f4;
  background: rgba(6, 9, 16, 0.92);
  box-shadow:
    0 16px 50px rgba(0, 0, 0, 0.6),
    0 0 24px rgba(0, 102, 255, 0.12);
  transform: translateY(10px);
  font: 500 11px/1.5 var(--mono);
  transition:
    opacity 0.3s var(--ease),
    transform 0.3s var(--ease),
    visibility 0.3s;

  &.show {
    visibility: visible;
    opacity: 1;
    transform: none;
  }
}

/* Анимация появления отделена от переходов при наведении. */
.js [data-reveal] {
  opacity: 0;

  &.revealed {
    opacity: 1;
    animation: reveal 0.8s var(--ease) var(--delay, 0ms) backwards;
  }
}

/* Последовательность анимации reveal. */
@keyframes reveal {
  from {
    opacity: 0;
    transform: translateY(28px);
  }

  to {
    opacity: 1;
    transform: none;
  }
}

/* Последовательность анимации pulse. */
@keyframes pulse {
  0%,
  100% {
    opacity: 1;
    box-shadow: 0 0 9px var(--blue);
  }
  50% {
    opacity: 0.42;
    box-shadow: 0 0 3px var(--blue);
  }
}

/* Последовательность анимации spin. */
@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* Адаптивная вёрстка */

@media (width >= 1600px) {
  :root {
    --gutter: 64px;
    --container: 1800px;
  }

  .hero {
    min-height: 0;
    padding-bottom: 80px;

    & .container {
      grid-template-columns: minmax(520px, 0.72fr) minmax(0, 1.28fr);
      gap: clamp(88px, 6vw, 132px);
    }
  }

  .hero-copy,
  .hero h1 {
    max-width: 680px;
  }

  .hero h1 {
    font-size: clamp(48px, 2.8vw, 60px);
  }

  .hero-lead {
    max-width: 640px;
    font-size: 18px;
  }

  .hero-stage {
    min-height: 760px;
  }

  .section-heading {
    grid-template-columns: minmax(0, 1.2fr) minmax(360px, 0.55fr);
  }
}

/* Адаптация для (width >= 2200px). */
@media (width >= 2200px) {
  :root {
    --gutter: 100px;
    --container: 2400px;
    --section-y: 138px;
    --header-h: 76px;
  }

  .header-shell {
    padding-inline: 22px 14px;
  }

  .wordmark-copy strong {
    font-size: 21px;
  }

  .wordmark-copy small,
  .desktop-nav :is(a, :where(.portal-header-tab)),
  .header-phone {
    font-size: 13px;
  }

  .desktop-nav {
    gap: 8px;

    & :is(a, :where(.portal-header-tab)) {
      padding-inline: 16px;
    }
  }

  .hero {
    min-height: 0;
    padding-top: 148px;
    padding-bottom: 88px;

    & .container {
      grid-template-columns: minmax(650px, 0.68fr) minmax(0, 1.32fr);
      gap: clamp(120px, 7vw, 190px);
    }
  }

  .hero-copy,
  .hero h1 {
    max-width: 820px;
  }

  .hero h1 {
    font-size: clamp(54px, 2.3vw, 68px);
  }

  .hero-lead {
    max-width: 760px;
    font-size: 21px;
  }

  .hero-actions {
    margin-top: 42px;
  }

  .button-large {
    min-height: 62px;
    padding-inline: 32px;
    font-size: 16px;
  }

  .hero-stage {
    min-height: 880px;
    padding: 38px;
    border-radius: 42px;
  }

  .stage-metrics article {
    min-height: 92px;
  }

  .reliability-grid,
  .compliance-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .reliability-card {
    min-height: 360px;
  }

  .solution-grid {
    grid-template-columns: repeat(6, minmax(0, 1fr));
  }

  .solution-card {
    min-height: 460px;

    & > p {
      min-height: 120px;
    }
  }

  .compliance-grid article {
    min-height: 220px;
  }

  .case-card {
    min-height: 660px;
  }
}

/* Адаптация для (width >= 3200px). */
@media (width >= 3200px) {
  :root {
    --gutter: 160px;
    --container: 3000px;
  }

  .hero {
    min-height: 0;
    padding-top: 160px;
    padding-bottom: 96px;

    & .container {
      grid-template-columns: minmax(760px, 0.64fr) minmax(0, 1.36fr);
      gap: 210px;
    }
  }

  .hero-copy,
  .hero h1 {
    max-width: 930px;
  }

  .hero h1 {
    font-size: 72px;
  }

  .hero-lead {
    max-width: 850px;
    font-size: 24px;
  }

  .hero-stage {
    min-height: 1020px;
  }

  .case-cover {
    height: 280px;
  }

  .case-card {
    min-height: 720px;
  }
}

/* Адаптация для (width <= 1599px). */
@media (width <= 1599px) {
  .desktop-nav :is(a, :where(.portal-header-tab))[href='#compliance'] {
    display: none;
  }
}

/* Адаптация для (width <= 1279px). */
@media (width <= 1279px) {
  :root {
    --gutter: 24px;
  }

  .header-shell {
    grid-template-columns: 1fr auto;
  }

  .desktop-nav,
  .header-phone span {
    display: none;
  }

  .menu-button {
    display: grid;
  }

  .hero .container {
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
    gap: 40px;
  }

  .hero h1 {
    font-size: clamp(40px, 4.2vw, 52px);
  }

  .hero-stage {
    min-height: 620px;
  }
}

/* Адаптация для (width <= 1100px). */
@media (width <= 1100px) {
  .hero {
    min-height: auto;

    & .container {
      grid-template-columns: 1fr;
      gap: 48px;
    }
  }

  .hero-copy,
  .hero h1 {
    max-width: 760px;
  }

  .hero h1 {
    font-size: clamp(38px, 5.2vw, 50px);
  }

  .hero-lead {
    max-width: 680px;
  }

  .hero-stage {
    min-height: 0;
    transform: none;
  }

  .hero-system {
    min-height: 480px;
  }

  .solution-grid,
  .case-grid,
  .risk-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .case-card:last-child {
    grid-column: 1 / -1;
    min-height: 520px;
  }

  .risk-grid article:nth-child(2) {
    padding-right: 0;
    border-right: 0;
  }

  .risk-grid article:nth-child(n + 3) {
    border-top: 1px solid var(--line);
  }

  .risk-grid article:nth-child(3) {
    padding-left: 0;
  }

  .footer-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 48px 32px;

    & > div:first-child {
      grid-column: 1 / -1;
    }
  }
}

/* Адаптация для (width <= 899px). */
@media (width <= 899px) {
  :root {
    --gutter: 20px;
    --section-y: 84px;
    --header-h: 60px;
  }

  .site-header {
    padding-block: 12px;
  }

  .header-shell {
    padding-left: 12px;
  }

  .header-cta {
    display: none;
  }

  .hero {
    padding-top: 120px;
    padding-bottom: 82px;

    & h1 {
      font-size: clamp(36px, 6.2vw, 46px);
    }
  }

  .section-heading {
    display: block;
    margin-bottom: 38px;

    & > p {
      max-width: 600px;
      margin-top: 22px;
    }
  }

  .reliability-grid,
  .case-grid,
  .compliance-grid,
  .lead-layout {
    grid-template-columns: 1fr;
  }

  .case-card:last-child {
    grid-column: auto;
    min-height: 610px;
  }

  .cases-note {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }

  .compliance-panel {
    padding: 40px 28px;
  }

  .compliance-action {
    flex-direction: column;
    align-items: flex-start;
  }

  .lead-form-card,
  .direct-card {
    padding: 30px;
  }

  .footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 44px 24px;
  }
}

/* Адаптация для (width <= 639px). */
@media (width <= 639px) {
  :root {
    --gutter: 16px;
  }

  .site-header {
    padding-block: 10px;
  }

  .header-phone,
  .header-telegram,
  .wordmark-copy small {
    display: none;
  }

  .mobile-menu {
    top: calc(var(--header-h) + 24px);
  }

  .hero {
    padding-top: 112px;
    padding-bottom: 68px;

    & .container {
      gap: 38px;
    }

    & h1 {
      font-size: clamp(32px, 8.4vw, 40px);
    }
  }

  .hero-lead {
    font-size: 15px;
  }

  .hero-actions {
    flex-direction: column;
    flex-wrap: wrap;
    align-items: stretch;

    & .button {
      width: 100%;
    }
  }

  .hero-stage {
    gap: 12px;
    padding: 14px;
    border-radius: 24px;
  }

  .hero-system {
    grid-template-columns: 42px 1fr;
    min-height: 400px;
    border-radius: 16px;
  }

  .system-sidebar {
    gap: 14px;
  }

  .system-toolbar {
    min-height: 64px;
    padding: 0 12px;

    & strong {
      font-size: 11px;
    }
  }

  .live-indicator {
    padding: 7px 8px;
    font-size: 8px;
  }

  .architecture-map {
    padding: 16px 12px 14px;
  }

  .system-scene {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .scene-arrow svg {
    width: 12px;
    height: 18px;
    transform: rotate(90deg);
  }

  .flow-chart {
    --flow-cols: 1fr;
  }

  .flow-steps {
    gap: 0;
  }

  .flow-step {
    min-height: 78px;
  }

  .flow-connector {
    min-height: 28px;

    & svg {
      width: 12px;
      height: 20px;
      transform: rotate(90deg);
    }
  }

  .flow-rail {
    display: none;
  }

  .flow-control {
    margin-top: 10px;

    & span {
      white-space: normal;
      text-align: center;
    }
  }

  .system-status {
    display: none;
  }

  .stage-metrics {
    grid-template-columns: 1fr;
    gap: 8px;

    & article {
      min-height: 64px;
      padding: 11px 14px;
    }
  }

  .section-heading h2 {
    font-size: 35px;
  }

  .reliability-card {
    min-height: 0;
    padding: 26px 22px;

    & h3 {
      margin-top: 34px;
      font-size: 20px;
    }
  }

  .solution-grid,
  .risk-grid {
    grid-template-columns: 1fr;
  }

  .solution-card {
    min-height: 0;
    padding: 24px;
  }

  .solution-icon {
    margin: 30px 0 22px;
  }

  .solution-card > p {
    min-height: 0;
  }

  .case-card,
  .case-card:last-child {
    min-height: 580px;
  }

  .risk-grid article,
  .risk-grid article:first-child,
  .risk-grid article:nth-child(2),
  .risk-grid article:nth-child(3),
  .risk-grid article:last-child {
    gap: 32px;
    min-height: 0;
    padding: 26px 0;
    border-top: 1px solid var(--line);
    border-right: 0;
  }

  .risk-grid article:first-child {
    border-top: 0;
  }

  .compliance-panel {
    padding: 34px 20px;
    border-radius: 20px;
  }

  .compliance-grid {
    border-left: 0;

    & article {
      min-height: 0;
      padding: 24px 0;
      border-right: 0;
    }
  }

  .compliance-action .button {
    width: 100%;
    white-space: normal;
  }

  .lead-form-card,
  .direct-card {
    padding: 24px 18px;
    border-radius: 20px;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .lead-form-card form > label {
    flex-direction: column;
    align-items: flex-start;
    gap: 2px;
  }

  .mobile-direct {
    flex-direction: column;
    align-items: center;
    gap: 8px;
  }

  .footer-grid {
    grid-template-columns: 1fr;

    & > div:first-child {
      grid-column: auto;
    }
  }

  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
  }

  .modal {
    align-items: end;
    padding: 0;
  }

  .modal-card {
    width: 100%;
    max-height: 92vh;
    padding: 38px 20px 24px;
    border-radius: 22px 22px 0 0;

    & h2 {
      font-size: 29px;
    }
  }

  .toast {
    right: 12px;
    bottom: 12px;
    left: 12px;
    max-width: none;
  }
}

/* Адаптация для (width <= 420px). */
@media (width <= 420px) {
  :root {
    --gutter: 12px;
  }

  .hero h1 {
    font-size: 32px;
  }

  .hero-system {
    min-height: 360px;
  }
}

/* Сокращение движения по настройке пользователя. */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }

  .js [data-reveal] {
    opacity: 1;
    animation: none;
  }
}
