:root {
  --black: #000;
  --line: #292d30;
  --line-soft: rgba(41, 45, 48, 0.72);
  --white: #fff;
  --bone: #f0f0f0;
  --ash: #a1a4a5;
  --smoke: #abafb4;
  --iron: #6e727a;
  --charcoal: #464a4d;
  --violet: #9281f7;
  --violet-glow: #baa7ff;
  --green: #3ad389;
  --blue: #70b8ff;
  --red: #ff9592;
  --amber: #ffca16;
  --font-ui: "Manrope", "TT Commons", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  /* Neue Haas есть только в Bold - поэтому только для коротких подписей капсом. */
  --font-label: "Neue Haas Grotesk Display Pro", "Manrope", system-ui, sans-serif;
  --font-display: "TT Runs", "Neue Haas Grotesk Display Pro", "Arial Narrow", system-ui, sans-serif;
  --font-brand: "Benzin", "TT Runs", system-ui, sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  --max: 1200px;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-slow: cubic-bezier(0.19, 1, 0.22, 1);
}

/* Вариативный файл: один src на все веса от 200 до 800.
   Поэтому font-weight можно задавать любой, без доп. файлов. */
@font-face {
  font-family: "Manrope";
  src: url("fonts/Manrope.ttf") format("truetype-variations");
  font-weight: 550;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "TT Runs";
  src: url("fonts/TTRunsTrialMedium.ttf") format("truetype");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "TT Runs";
  src: url("fonts/TTRunsTrialDemiBold.ttf") format("truetype");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "TT Runs";
  src: url("fonts/TTRunsTrialBold.ttf") format("truetype");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "TT Commons";
  src: url("fonts/TTCommons-Regular.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "TT Commons";
  src: url("fonts/TTCommons-Medium.ttf") format("truetype");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Neue Haas Grotesk Display Pro";
  src: url("fonts/NeueHaasGroteskDisplayPro-Bold.otf") format("opentype");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Benzin";
  src: url("fonts/benzin-bold.ttf") format("truetype");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

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

html {
  scroll-behavior: auto;
  background: var(--black);
}

/* Сайт свёрстан так, чтобы при 100% выглядеть как при 110% в браузере.
   Браузерный зум делает две вещи: увеличивает CSS-пиксель и во столько же
   раз уменьшает вьюпорт в CSS-пикселях. zoom даёт первое, второе
   компенсируем делением на --zoom везде, где считаем от 100vh/100vw.
   Масштаб правится здесь одним числом. */
body {
  --zoom: 1.1;
  zoom: var(--zoom);
  position: relative;
  min-height: calc(100vh / var(--zoom));
  background:
    radial-gradient(circle at 50% -12%, rgba(255, 255, 255, 0.08), transparent 22%),
    radial-gradient(circle at 78% 18%, rgba(146, 129, 247, 0.11), transparent 26%),
    radial-gradient(circle at 12% 64%, rgba(112, 184, 255, 0.055), transparent 24%),
    linear-gradient(145deg, rgba(146, 129, 247, 0.035), transparent 42%, rgba(58, 211, 137, 0.024)),
    linear-gradient(180deg, transparent 0%, rgba(112, 184, 255, 0.028) 44%, rgba(146, 129, 247, 0.05) 72%, rgba(58, 211, 137, 0.03) 100%),
    var(--black);
  color: var(--bone);
  font-family: var(--font-ui);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    linear-gradient(rgba(255, 255, 255, 0.026) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.026) 1px, transparent 1px);
  background-size: 96px 96px;
  mask-image: radial-gradient(circle at 50% 20%, black 0%, transparent 72%);
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    linear-gradient(124deg, transparent 18%, rgba(146, 129, 247, 0.06) 18.4%, transparent 19.2%),
    linear-gradient(34deg, transparent 62%, rgba(112, 184, 255, 0.045) 62.3%, transparent 63.1%),
    linear-gradient(180deg, transparent 42%, rgba(255, 255, 255, 0.018) 72%, transparent 100%);
  mask-image: linear-gradient(180deg, transparent 18%, black 44%, black 100%);
}

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

button,
input,
select,
textarea {
  font: inherit;
}

button {
  color: inherit;
  background: none;
  border: 0;
  cursor: pointer;
}

input,
select,
textarea {
  width: 100%;
  color: var(--white);
  background: var(--black);
  border: 1px solid var(--line);
  border-radius: 18px;
  outline: 0;
}

ul {
  list-style: none;
}

code,
pre {
  font-family: var(--font-mono);
}

.grain {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 100;
  opacity: 0.035;
  background-image: url("data:image/svg+xml,%3Csvg width='180' height='180' viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='180' height='180' filter='url(%23n)' opacity='.8'/%3E%3C/svg%3E");
}

.ambient {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

.ambient__line {
  position: absolute;
  width: 1px;
  height: 46vh;
  background: linear-gradient(transparent, rgba(146, 129, 247, 0.45), transparent);
  opacity: 0.42;
  transform-origin: center;
  animation: lineDrift 18s var(--ease-slow) infinite alternate;
}

.ambient__line--1 {
  top: 8vh;
  left: 16vw;
  transform: rotate(42deg);
}

.ambient__line--2 {
  top: 24vh;
  right: 18vw;
  height: 62vh;
  opacity: 0.28;
  animation-delay: -6s;
  transform: rotate(-38deg);
}

.ambient__line--3 {
  bottom: 4vh;
  left: 50vw;
  height: 36vh;
  opacity: 0.2;
  animation-delay: -11s;
  transform: rotate(72deg);
}

.particle {
  position: absolute;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--violet);
  opacity: 0.62;
  box-shadow: 0 0 24px rgba(186, 167, 255, 0.4);
  animation: particleFloat 14s var(--ease-slow) infinite alternate;
}

.particle--1 { top: 14%; left: 9%; animation-delay: -1s; }
.particle--2 { top: 28%; right: 14%; animation-delay: -5s; }
.particle--3 { top: 66%; left: 19%; animation-delay: -9s; }
.particle--4 { top: 78%; right: 23%; animation-delay: -3s; }
.particle--5 { top: 46%; left: 55%; animation-delay: -12s; }
.particle--6 { top: 12%; left: 72%; animation-delay: -7s; }

.ambient__halo {
  position: absolute;
  width: 360px;
  height: 360px;
  border: 1px solid rgba(146, 129, 247, 0.16);
  border-radius: 50%;
  opacity: 0.62;
  animation: haloSpin 28s linear infinite;
}

.ambient__halo--1 {
  top: 18vh;
  left: -120px;
}

.ambient__halo--2 {
  right: -140px;
  bottom: 12vh;
  width: 480px;
  height: 480px;
  border-color: rgba(112, 184, 255, 0.11);
  animation-duration: 38s;
  animation-direction: reverse;
}

.ambient__dash {
  position: absolute;
  width: 140px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(240, 240, 240, 0.42), transparent);
  opacity: 0.28;
  animation: dashGlide 16s var(--ease-slow) infinite alternate;
}

.ambient__dash--1 { top: 34%; left: 5%; transform: rotate(-12deg); }
.ambient__dash--2 { top: 58%; right: 8%; transform: rotate(18deg); animation-delay: -7s; }
.ambient__dash--3 { top: 86%; left: 42%; transform: rotate(4deg); animation-delay: -11s; }

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

.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(0, 0, 0, 0.86);
  border-bottom: 1px solid rgba(41, 45, 48, 0.64);
  backdrop-filter: blur(24px);
}

.nav__inner {
  width: calc(100% - 32px);
  min-height: 72px;
  max-width: 1500px;
  margin-inline: auto;
  display: grid;
  grid-template-columns: minmax(210px, 1fr) auto minmax(210px, 1fr);
  align-items: center;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  justify-self: start;
  gap: 11px;
  font-family: var(--font-brand);
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--white);
}

.brand__logo {
  width: 34px;
  height: 34px;
  object-fit: contain;
  filter: drop-shadow(0 0 12px rgba(255, 255, 255, 0.12));
  transition: transform 760ms var(--ease-slow), filter 760ms var(--ease-slow);
}

.brand:hover .brand__logo {
  transform: rotate(16deg) scale(1.06);
  filter: drop-shadow(0 0 18px rgba(186, 167, 255, 0.34));
}

code,
.signal-card b,
.card-meta b,
.matrix b {
  color: var(--violet);
}

.nav__links {
  display: flex;
  align-items: center;
  gap: 28px;
  justify-self: center;
}

.nav__links a {
  position: relative;
  font-family: var(--font-display);
  color: var(--bone);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0;
  text-transform: uppercase;
  transition: color 420ms var(--ease);
}

.nav__links a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -8px;
  width: 100%;
  height: 1px;
  background: var(--white);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 560ms var(--ease-slow);
}

.nav__links a:hover {
  color: var(--white);
}

.nav__links a:hover::after {
  transform: scaleX(1);
}

.button {
  position: relative;
  overflow: hidden;
  min-height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 18px;
  color: var(--white);
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0;
  text-transform: uppercase;
  white-space: nowrap;
  transition: border-color 560ms var(--ease-slow), transform 560ms var(--ease-slow), background 560ms var(--ease-slow), box-shadow 560ms var(--ease-slow);
}

.button::before {
  content: "";
  position: absolute;
  inset: 1px;
  border-radius: inherit;
  background: linear-gradient(120deg, transparent 10%, rgba(255, 255, 255, 0.16), transparent 54%);
  opacity: 0;
  transform: translateX(-72%);
  transition: opacity 360ms var(--ease), transform 760ms var(--ease-slow);
  pointer-events: none;
}

.button > * {
  position: relative;
  z-index: 1;
}

.button:hover::before {
  opacity: 1;
  transform: translateX(72%);
}

.nav .button::after {
  content: "";
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: 8px;
  height: 1px;
  background: var(--white);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 620ms var(--ease-slow);
}

.nav .button:hover::after {
  transform: scaleX(1);
}

.button:hover {
  border-color: var(--white);
  transform: translateY(-2px) rotate(-0.5deg);
  box-shadow: 0 0 34px rgba(146, 129, 247, 0.12);
}

.button:disabled {
  cursor: wait;
  opacity: 0.72;
  transform: none;
}

.nav .button:hover {
  transform: translateY(-2px);
  background: rgba(255, 255, 255, 0.045);
}

.hero__actions .button:first-child:hover {
  transform: translateY(-4px) rotate(-1.2deg) scale(1.015);
  border-color: rgba(186, 167, 255, 0.92);
  box-shadow: 0 18px 70px rgba(146, 129, 247, 0.16);
}

.hero__actions .button--ghost:hover {
  transform: translateX(6px) skewX(-4deg);
  border-color: rgba(255, 255, 255, 0.82);
}

.cta-panel .button:hover {
  transform: translateY(-4px) rotate(1deg);
  border-color: var(--violet-glow);
  background: rgba(146, 129, 247, 0.08);
}

.modal .button:hover {
  transform: scale(0.985);
  border-color: var(--green);
  background: rgba(58, 211, 137, 0.08);
}

.button--sm {
  min-height: 38px;
  justify-self: end;
  margin-right: 22px;
}

.button--ghost {
  color: var(--smoke);
}

.button--full {
  width: 100%;
}

.hero {
  position: relative;
  min-height: calc(100vh - 72px);
  display: flex;
  align-items: center;
  border-bottom: 1px solid var(--line-soft);
  z-index: 1;
}

.hero__inner {
  width: min(100% - 48px, var(--max));
  margin: 0 auto;
  padding: 84px 0 96px;
  display: grid;
  grid-template-columns: minmax(0, 1.16fr) minmax(340px, 0.84fr);
  align-items: center;
  gap: 40px;
}

.hero__copy {
  padding-top: 8px;
  animation: heroIn 800ms var(--ease) both;
}

.announcement,
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 7px 12px;
  color: var(--bone);
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 13px;
  line-height: 1;
}

.eyebrow {
  position: relative;
  min-height: 34px;
  padding: 9px 14px;
  color: var(--white);
  background:
    linear-gradient(90deg, rgba(146, 129, 247, 0.18), rgba(255, 255, 255, 0.035)),
    rgba(0, 0, 0, 0.52);
  border-color: rgba(186, 167, 255, 0.36);
  border-radius: 12px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0;
  text-transform: uppercase;
  transition: border-color 520ms var(--ease-slow), transform 520ms var(--ease-slow), background 520ms var(--ease-slow);
}

.eyebrow::before {
  content: "";
  width: 18px;
  height: 1px;
  background: var(--violet-glow);
  box-shadow: 0 0 18px rgba(186, 167, 255, 0.44);
}

.section__intro:hover .eyebrow,
.cta-panel:hover .eyebrow,
.modal__head:hover .eyebrow {
  border-color: rgba(255, 255, 255, 0.58);
  transform: translateY(-1px);
}

.announcement {
  margin-bottom: 32px;
}

.status-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--violet);
}

.chevron {
  color: var(--violet-glow);
}

.hero h1 {
  max-width: 660px;
  color: var(--white);
  font-family: var(--font-display);
  font-size: clamp(46px, 5.8vw, 78px);
  font-weight: 600;
  line-height: 0.92;
  letter-spacing: 0;
  text-transform: uppercase;
}

.hero__lead {
  max-width: 620px;
  margin-top: 28px;
  color: var(--ash);
  font-size: 18px;
  line-height: 1.6;
}

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

.hero-contacts,
.metrics {
  max-width: 620px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border: 1px solid var(--line);
  border-radius: 16px;
  overflow: hidden;
}

.hero-contacts {
  width: 100%;
  max-width: 720px;
  grid-template-columns: minmax(164px, 0.64fr) minmax(330px, 1.36fr);
  gap: 0;
  margin-top: 48px;
  border-radius: 22px;
  background:
    linear-gradient(135deg, rgba(146, 129, 247, 0.1), transparent 40%),
    rgba(0, 0, 0, 0.46);
  backdrop-filter: blur(18px);
}

.hero-contacts a {
  position: relative;
  min-height: 112px;
  padding: 22px;
  overflow: hidden;
  border-right: 1px solid var(--line);
  transition: border-color 680ms var(--ease-slow), background 680ms var(--ease-slow), transform 680ms var(--ease-slow);
}

.hero-contacts a:last-child {
  border-right: 0;
}

.hero-contacts a::after {
  content: "";
  position: absolute;
  left: 22px;
  right: 22px;
  bottom: 20px;
  height: 1px;
  background: linear-gradient(90deg, var(--violet-glow), transparent);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 720ms var(--ease-slow);
}

.hero-contacts a:hover {
  background: rgba(255, 255, 255, 0.035);
  transform: translateY(-4px);
}

.hero-contacts a:hover::after {
  transform: scaleX(1);
}

.hero-contacts span {
  display: block;
  color: var(--violet);
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
}

.hero-contacts strong {
  display: block;
  margin-top: 16px;
  color: var(--white);
  font-family: var(--font-display);
  font-size: clamp(17px, 1.45vw, 22px);
  font-weight: 600;
  line-height: 1;
  white-space: nowrap;
}

.metrics {
  margin-top: 52px;
}

.metrics div {
  min-height: 112px;
  padding: 22px;
  border-right: 1px solid var(--line);
}

.metrics div:last-child {
  border-right: 0;
}

.metrics strong {
  display: block;
  color: var(--white);
  font-family: var(--font-mono);
  font-size: 30px;
  line-height: 1.1;
}

.metrics span {
  display: block;
  margin-top: 12px;
  color: var(--ash);
  font-size: 13px;
}

.hero__visual {
  position: relative;
  min-height: 500px;
  display: grid;
  place-items: center;
  perspective: 1000px;
  animation: heroIn 900ms var(--ease) 160ms both;
}

.hero-orbit {
  position: relative;
  width: min(86vw, 470px);
  aspect-ratio: 1;
  display: grid;
  place-items: center;
}

.hero-orbit__ring {
  position: absolute;
  inset: 6%;
  border: 1px solid rgba(41, 45, 48, 0.86);
  border-radius: 50%;
  animation: orbitBreathe 9s var(--ease-slow) infinite alternate;
}

.hero-orbit__ring--wide {
  inset: 0;
  border-color: rgba(146, 129, 247, 0.22);
}

.hero-orbit__ring--tilt {
  transform: rotateX(72deg) rotateZ(-18deg);
  animation-delay: -4s;
}

.hero-orbit__scan {
  position: absolute;
  width: 1px;
  height: 86%;
  background: linear-gradient(transparent, rgba(255, 255, 255, 0.52), transparent);
  transform: rotate(35deg);
  opacity: 0.36;
  animation: scanMove 7s var(--ease-slow) infinite alternate;
}

.hero-stack {
  position: relative;
  z-index: 2;
  display: grid;
  gap: 20px;
  min-width: min(100%, 360px);
}

.signal-float {
  display: inline-flex;
  width: fit-content;
  animation: signalFloat 8.5s var(--ease-slow) infinite alternate;
}

.signal-float--from {
  justify-self: start;
}

.signal-float--status {
  justify-self: end;
  animation-name: signalFloatAlt;
  animation-duration: 9.2s;
  animation-delay: -3.4s;
}

.signal-card {
  --mx: 50%;
  --my: 50%;
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 14px;
  color: var(--ash);
  background: rgba(0, 0, 0, 0.72);
  border: 1px solid var(--line);
  border-radius: 22px;
  font-family: var(--font-mono);
  font-size: 12px;
  backdrop-filter: blur(18px);
  overflow: hidden;
  transition: border-color 620ms var(--ease-slow), transform 620ms var(--ease-slow), box-shadow 620ms var(--ease-slow);
}

.signal-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at var(--mx) var(--my), rgba(146, 129, 247, 0.26), transparent 48%);
  opacity: 0;
  transition: opacity 520ms var(--ease-slow);
  pointer-events: none;
}

.signal-card:hover {
  border-color: rgba(186, 167, 255, 0.74);
  transform: rotate(-1.4deg) translateY(-4px);
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.26);
}

.signal-card:hover::before {
  opacity: 1;
}

.signal-card > * {
  position: relative;
}

.signal-card--from {
  transform: rotate(-2deg);
}

.signal-card--status {
  transform: rotate(1.6deg);
}

.signal-card--from:hover {
  transform: rotate(-3.2deg) translateY(-4px);
}

.signal-card--status:hover {
  transform: rotate(3deg) translateY(-4px);
}

.signal-card i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--green);
}

.logo-strip {
  border-bottom: 1px solid var(--line-soft);
  position: relative;
  z-index: 1;
  overflow: hidden;
}

.logo-strip__inner {
  width: 100%;
  min-height: 118px;
  margin-inline: auto;
  display: flex;
  align-items: center;
  overflow: hidden;
  mask-image: linear-gradient(90deg, transparent, black 10%, black 90%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, black 10%, black 90%, transparent);
}

.logo-strip__track {
  display: flex;
  align-items: center;
  gap: 44px;
  min-width: max-content;
  color: var(--ash);
  font-family: var(--font-display);
  font-size: clamp(20px, 3vw, 34px);
  font-weight: 600;
  text-transform: uppercase;
  animation: marqueeMove 28s linear infinite;
}

.logo-strip__track span {
  position: relative;
  white-space: nowrap;
}

.logo-strip__track span::after {
  content: "";
  position: absolute;
  top: 50%;
  right: -25px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--violet);
  transform: translateY(-50%);
}

.section {
  padding: 112px 0;
  border-bottom: 1px solid var(--line-soft);
  position: relative;
  z-index: 1;
}

.section,
.cta-section {
  scroll-margin-top: 92px;
}

.section::before,
.cta-section::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    linear-gradient(110deg, transparent 0%, transparent 24%, rgba(255, 255, 255, 0.025) 24.2%, transparent 25%),
    linear-gradient(180deg, rgba(146, 129, 247, 0.028), transparent 58%);
  opacity: 0.55;
}

.section:nth-of-type(odd)::before {
  background:
    linear-gradient(65deg, transparent 0%, transparent 68%, rgba(112, 184, 255, 0.038) 68.2%, transparent 69%),
    linear-gradient(180deg, transparent, rgba(58, 211, 137, 0.026));
}

.two-col {
  display: grid;
  grid-template-columns: 0.88fr 1.12fr;
  gap: 72px;
  align-items: start;
}

.section__intro {
  max-width: 680px;
}

.section__intro--wide {
  max-width: 760px;
  margin-bottom: 48px;
}

.section__intro h2,
.cta-panel h2 {
  margin-top: 22px;
  color: var(--white);
  font-family: var(--font-display);
  font-size: clamp(38px, 5vw, 58px);
  font-weight: 600;
  line-height: 0.98;
  letter-spacing: 0;
  text-transform: uppercase;
}

.section__intro p,
.cta-panel p {
  max-width: 540px;
  margin-top: 18px;
  color: var(--ash);
  font-size: 17px;
}

.copy-stack {
  display: grid;
  gap: 26px;
  color: var(--ash);
}

.copy-stack .lead {
  color: var(--white);
  font-family: var(--font-display);
  font-size: clamp(28px, 3vw, 38px);
  font-weight: 600;
  line-height: 1.18;
  text-transform: uppercase;
}

.copy-stack .lead code {
  font-family: var(--font-brand);
  font-size: 0.82em;
}

.copy-stack > p:not(.lead) {
  max-width: 720px;
  color: var(--ash);
  font-family: var(--font-ui);
  font-size: 20px;
  line-height: 1.55;
}

.terminal-card {
  margin-top: 20px;
  border: 1px solid var(--line);
  border-radius: 16px;
  overflow: hidden;
  background:
    linear-gradient(135deg, rgba(146, 129, 247, 0.08), transparent 46%),
    rgba(0, 0, 0, 0.62);
  transition: border-color 520ms var(--ease-slow), transform 520ms var(--ease-slow), max-height 640ms var(--ease-slow);
}

.terminal-card:hover {
  border-color: rgba(186, 167, 255, 0.54);
  transform: translateY(-3px);
}

.terminal-card.is-minimized pre {
  max-height: 0;
  padding-block: 0;
  opacity: 0;
}

.terminal-card.is-warm .code-token--string {
  color: var(--amber);
}

.terminal-card__bar {
  display: flex;
  gap: 7px;
  padding: 14px 16px;
  border-bottom: 1px solid var(--line);
}

.terminal-card__bar button {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  transition: transform 360ms var(--ease), box-shadow 360ms var(--ease);
}

.terminal-card__bar button:nth-child(1) {
  background: #ff5f57;
}

.terminal-card__bar button:nth-child(2) {
  background: #ffbd2e;
}

.terminal-card__bar button:nth-child(3) {
  background: #28c840;
}

.terminal-card__bar button:hover {
  transform: scale(1.35);
  box-shadow: 0 0 18px currentColor;
}

.terminal-card pre {
  padding: 20px;
  overflow-x: auto;
  color: var(--smoke);
  font-size: 14px;
  line-height: 1.7;
  max-height: 260px;
  transition: max-height 640ms var(--ease-slow), padding 640ms var(--ease-slow), opacity 420ms var(--ease);
}

.code-token--name {
  color: var(--violet-glow);
}

.code-token--key {
  color: var(--blue);
}

.code-token--string {
  color: var(--green);
}

.code-token--brace {
  color: var(--bone);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.service-card,
.cta-panel {
  background: var(--black);
  border: 1px solid var(--line);
  border-radius: 24px;
}

.service-card {
  --mx: 50%;
  --my: 50%;
  --rx: 0deg;
  --ry: 0deg;
  --rx-soft: 0deg;
  --ry-soft: 0deg;
  min-height: 560px;
  padding: 28px;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
  transform-style: preserve-3d;
  will-change: transform;
  transition: border-color 900ms var(--ease-slow), transform 520ms var(--ease-slow), box-shadow 900ms var(--ease-slow), background 900ms var(--ease-slow);
}

.services-grid .service-card.reveal {
  transform: translateY(14px);
  transition:
    opacity 980ms var(--ease-slow),
    transform 920ms var(--ease-slow),
    border-color 900ms var(--ease-slow),
    box-shadow 900ms var(--ease-slow),
    background 900ms var(--ease-slow);
}

.services-grid .service-card.reveal.is-visible {
  transform: translateY(0);
}

.service-card::before,
.difference-board::before,
.cta-panel::before,
.niche-preview::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at var(--mx, 50%) var(--my, 50%), rgba(146, 129, 247, 0.18), transparent 46%);
  opacity: 0;
  transition: opacity 920ms var(--ease-slow);
  pointer-events: none;
}

.service-card::after {
  content: "";
  position: absolute;
  left: 22px;
  right: 22px;
  top: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(186, 167, 255, 0.92), transparent);
  opacity: 0;
  transform: scaleX(0.32);
  transition: opacity 760ms var(--ease-slow), transform 900ms var(--ease-slow);
  pointer-events: none;
}

.service-card:hover::before,
.difference-board:hover::before,
.cta-panel:hover::before,
.niche-preview:hover::before {
  opacity: 1;
}

.service-card:hover::after {
  opacity: 1;
  transform: scaleX(1);
}

.service-card:hover {
  border-color: rgba(186, 167, 255, 0.62);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.025), transparent 34%),
    var(--black);
  transform: translateY(-10px);
  box-shadow:
    0 30px 90px rgba(0, 0, 0, 0.36),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.service-card--featured {
  border-color: rgba(146, 129, 247, 0.72);
  box-shadow: inset 0 0 0 1px rgba(186, 167, 255, 0.08);
}

.service-card:nth-child(1):hover {
  transform: perspective(1100px) translateY(-12px) rotateX(var(--rx)) rotateY(var(--ry)) rotate(-0.65deg);
}

.service-card:nth-child(2):hover {
  border-color: rgba(58, 211, 137, 0.58);
  transform: perspective(1100px) translateY(-14px) rotateX(var(--rx-soft)) rotateY(var(--ry-soft)) scale(1.012);
  box-shadow:
    0 34px 96px rgba(0, 0, 0, 0.38),
    0 0 0 1px rgba(58, 211, 137, 0.08) inset;
}

.service-card:nth-child(3):hover {
  transform: perspective(1100px) translateY(-12px) rotateX(var(--rx)) rotateY(var(--ry)) rotate(0.65deg);
}

.services-grid .service-card.reveal.is-visible:hover {
  transform: translateY(-10px);
}

.services-grid .service-card.reveal.is-visible:nth-child(1):hover {
  transform: perspective(1100px) translateY(-12px) rotateX(var(--rx)) rotateY(var(--ry)) rotate(-0.65deg);
}

.services-grid .service-card.reveal.is-visible:nth-child(2):hover {
  transform: perspective(1100px) translateY(-14px) rotateX(var(--rx-soft)) rotateY(var(--ry-soft)) scale(1.012);
}

.services-grid .service-card.reveal.is-visible:nth-child(3):hover {
  transform: perspective(1100px) translateY(-12px) rotateX(var(--rx)) rotateY(var(--ry)) rotate(0.65deg);
}

.card-meta {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: var(--iron);
  font-family: var(--font-mono);
  font-size: 12px;
  text-transform: uppercase;
}

.service-card h3 {
  position: relative;
  z-index: 1;
  font-family: var(--font-display);
  margin-top: 36px;
  color: var(--white);
  font-size: clamp(30px, 2.55vw, 36px);
  font-weight: 500;
  line-height: 1.14;
  letter-spacing: 0;
  text-transform: uppercase;
  transition: transform 760ms var(--ease-slow), color 760ms var(--ease-slow);
}

.service-card p {
  position: relative;
  z-index: 1;
  margin-top: 14px;
  color: var(--ash);
  font-size: 16px;
  line-height: 1.45;
}

.service-card ul {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 12px;
  margin-top: 30px;
  color: var(--bone);
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 500;
  line-height: 1.28;
}

.service-card li {
  position: relative;
  padding-left: 18px;
  transition: transform 640ms var(--ease-slow), color 640ms var(--ease-slow);
}

.service-card:hover h3 {
  transform: translateY(-3px);
}

.service-card:hover li:nth-child(odd) {
  transform: translateX(4px);
}

.service-card:hover li:nth-child(even) {
  transform: translateX(8px);
}

.service-card li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.65em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--violet);
}

.service-card button {
  position: relative;
  z-index: 1;
  width: fit-content;
  margin-top: auto;
  padding-top: 28px;
  color: var(--white);
  font-weight: 500;
  transition: color 520ms var(--ease-slow), transform 520ms var(--ease-slow);
}

.service-card button::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -3px;
  height: 1px;
  background: var(--violet-glow);
  transform: scaleX(0);
  transform-origin: right center;
  transition: transform 520ms var(--ease-slow);
}

.service-card button:hover {
  color: var(--violet-glow);
}

.service-card button:hover::after {
  transform: scaleX(1);
  transform-origin: left center;
}

.service-card:nth-child(1) button:hover {
  transform: translateX(8px);
}

.service-card:nth-child(2) button:hover {
  transform: translateY(-3px);
}

.service-card:nth-child(3) button:hover {
  transform: translateX(8px);
}

.service-card button span {
  color: var(--violet-glow);
}

.matrix {
  position: relative;
  z-index: 1;
  display: grid;
  margin-top: 28px;
  border: 1px solid var(--line);
  border-radius: 16px;
  overflow: hidden;
}

.matrix div {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  padding: 14px;
  border-bottom: 1px solid var(--line);
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 500;
}

.matrix div:last-child {
  border-bottom: 0;
}

.matrix span {
  color: var(--smoke);
}

.matrix b {
  position: relative;
  z-index: 1;
  color: var(--bone);
  font-weight: 500;
  white-space: nowrap;
  transition: color 620ms var(--ease-slow), transform 620ms var(--ease-slow);
}

/* Карточка 02: строки матрицы подсвечиваются по очереди, сверху вниз.
   Своя логика вместо наклона, потому что карточка стоит по центру -
   крен ломал бы симметрию сетки. */
.matrix div {
  position: relative;
  overflow: hidden;
}

.matrix div::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(58, 211, 137, 0.16), transparent 62%);
  opacity: 0;
  transform: translateX(-100%);
  transition: opacity 520ms var(--ease-slow), transform 720ms var(--ease-slow);
  pointer-events: none;
}

.matrix div::after {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--green);
  transform: scaleY(0);
  transform-origin: top center;
  transition: transform 520ms var(--ease-slow);
}

.service-card--featured:hover .matrix div::before {
  opacity: 1;
  transform: translateX(0);
}

.service-card--featured:hover .matrix div::after {
  transform: scaleY(1);
}

.service-card--featured:hover .matrix div:nth-child(1)::before,
.service-card--featured:hover .matrix div:nth-child(1)::after {
  transition-delay: 0ms;
}

.service-card--featured:hover .matrix div:nth-child(2)::before,
.service-card--featured:hover .matrix div:nth-child(2)::after {
  transition-delay: 90ms;
}

.service-card--featured:hover .matrix div:nth-child(3)::before,
.service-card--featured:hover .matrix div:nth-child(3)::after {
  transition-delay: 180ms;
}

.service-card--featured:hover .matrix div:nth-child(4)::before,
.service-card--featured:hover .matrix div:nth-child(4)::after {
  transition-delay: 270ms;
}

.service-card--featured:hover .matrix b {
  color: var(--green);
  transform: translateX(-4px);
}

.service-card--featured:hover .matrix div:nth-child(2) b {
  transition-delay: 90ms;
}

.service-card--featured:hover .matrix div:nth-child(3) b {
  transition-delay: 180ms;
}

.service-card--featured:hover .matrix div:nth-child(4) b {
  transition-delay: 270ms;
}

.service-card--featured:hover .matrix {
  border-color: rgba(58, 211, 137, 0.42);
}

.niches-showcase {
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(380px, 0.88fr);
  gap: 28px;
  align-items: stretch;
}

.niche-list {
  border-top: 1px solid var(--line);
}

.niche-row {
  width: 100%;
  min-height: 82px;
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr);
  align-items: center;
  gap: 24px;
  color: var(--iron);
  border-bottom: 1px solid var(--line);
  font-family: var(--font-display);
  text-align: left;
  transition: color 680ms var(--ease-slow), padding-left 680ms var(--ease-slow), background 680ms var(--ease-slow);
}

.niches-showcase.reveal .niche-row,
.niches-showcase.reveal .niche-preview {
  opacity: 0;
  transform: translateY(18px);
}

.niches-showcase.reveal.is-visible .niche-row,
.niches-showcase.reveal.is-visible .niche-preview {
  animation: nicheSlide 1150ms var(--ease-slow) both;
}

.niches-showcase.reveal.is-visible .niche-row:nth-child(2) {
  animation-delay: 90ms;
}

.niches-showcase.reveal.is-visible .niche-row:nth-child(3) {
  animation-delay: 180ms;
}

.niches-showcase.reveal.is-visible .niche-row:nth-child(4) {
  animation-delay: 270ms;
}

.niches-showcase.reveal.is-visible .niche-preview {
  animation-delay: 340ms;
}

.niche-row__num,
.niche-row__count {
  font-family: var(--font-mono);
  font-size: 12px;
  text-transform: uppercase;
}

.niche-row__count {
  display: none;
}

.niche-row__title {
  color: var(--bone);
  font-size: clamp(24px, 3.2vw, 38px);
  font-weight: 600;
  line-height: 1;
  letter-spacing: 0;
  text-transform: uppercase;
  transition: color 680ms var(--ease-slow), transform 680ms var(--ease-slow);
}

.niche-row:hover,
.niche-row.is-active {
  color: var(--violet-glow);
  padding-left: 18px;
}

.niche-row:hover .niche-row__title,
.niche-row.is-active .niche-row__title {
  color: var(--white);
  transform: translateX(6px);
}

.niche-preview {
  --mx: 50%;
  --my: 50%;
  position: sticky;
  top: 104px;
  min-height: 430px;
  padding: 34px;
  align-self: start;
  overflow: hidden;
  border: 1px solid rgba(146, 129, 247, 0.45);
  border-radius: 28px;
  background:
    linear-gradient(180deg, rgba(146, 129, 247, 0.08), transparent 42%),
    var(--black);
  transition: border-color 640ms var(--ease-slow), transform 640ms var(--ease-slow);
}

.niche-preview:hover {
  border-color: rgba(186, 167, 255, 0.82);
  transform: rotate(0.7deg) translateY(-4px);
}

.niche-preview > * {
  position: relative;
}

.niche-preview__label {
  color: var(--violet);
  font-family: var(--font-mono);
  font-size: 12px;
  text-transform: uppercase;
}

.niche-preview h3 {
  margin-top: 70px;
  color: var(--white);
  font-family: var(--font-display);
  font-size: clamp(28px, 3vw, 40px);
  font-weight: 600;
  line-height: 0.96;
  overflow-wrap: anywhere;
  text-wrap: balance;
  text-transform: uppercase;
}

/* Описание ниши - наш дисплейный TT Runs, но без uppercase:
   заглавными такой объём текста читался бы тяжело. */
.niche-preview p {
  max-width: 34ch;
  margin-top: 18px;
  color: var(--smoke);
  font-family: var(--font-display);
  font-size: 19px;
  font-weight: 500;
  line-height: 1.5;
  letter-spacing: 0.005em;
  text-wrap: pretty;
}

.niche-preview__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 30px;
}

.niche-preview__tags span {
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--bone);
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
}

/* Переключение ниши: содержимое карточки собирается заново лестницей.
   Класс is-swapping навешивается из JS с перезапуском через reflow. */
.niche-preview.is-swapping .niche-preview__label,
.niche-preview.is-swapping h3,
.niche-preview.is-swapping p,
.niche-preview.is-swapping .niche-preview__tags span {
  animation: nicheSwap 620ms var(--ease-slow) both;
}

.niche-preview.is-swapping h3 {
  animation-delay: 45ms;
}

.niche-preview.is-swapping p {
  animation-delay: 90ms;
}

.niche-preview.is-swapping .niche-preview__tags span {
  animation-delay: 135ms;
}

.niche-preview.is-swapping .niche-preview__tags span:nth-child(2) {
  animation-delay: 175ms;
}

.niche-preview.is-swapping .niche-preview__tags span:nth-child(3) {
  animation-delay: 215ms;
}

.difference-layout {
  display: grid;
  gap: 52px;
}

.difference-layout .section__intro {
  max-width: 820px;
}

.difference-board {
  --mx: 50%;
  --my: 50%;
  position: relative;
  overflow: hidden;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 24px;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.02), transparent 49%, rgba(146, 129, 247, 0.1)),
    var(--black);
  transition: border-color 720ms var(--ease-slow), transform 720ms var(--ease-slow), box-shadow 720ms var(--ease-slow);
}

.difference-board:hover {
  border-color: rgba(186, 167, 255, 0.76);
  transform: translateY(-6px);
  box-shadow: 0 34px 110px rgba(0, 0, 0, 0.4);
}

.difference-board > * {
  position: relative;
  z-index: 1;
}

.difference-head {
  display: grid;
  grid-template-columns: 1fr 72px 1fr;
  min-height: 100px;
  align-items: center;
  border-bottom: 1px solid var(--line);
}

.difference-head__label {
  padding: 28px 34px;
  color: var(--ash);
  font-family: var(--font-display);
  font-size: clamp(20px, 2.4vw, 32px);
  font-weight: 600;
  line-height: 1;
  text-transform: uppercase;
}

.difference-head__label--point {
  color: var(--white);
  text-align: right;
}

.difference-vs {
  width: 48px;
  height: 48px;
  display: inline-grid;
  place-items: center;
  justify-self: center;
  color: var(--white);
  border: 1px solid rgba(186, 167, 255, 0.34);
  border-radius: 50%;
  background:
    linear-gradient(180deg, rgba(146, 129, 247, 0.14), rgba(255, 255, 255, 0.025)),
    rgba(0, 0, 0, 0.72);
  font-family: var(--font-brand);
  font-size: 11px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.difference-table {
  display: grid;
}

.difference-row {
  display: grid;
  grid-template-columns: 150px 1fr 1fr;
  min-height: 82px;
  align-items: stretch;
  border-bottom: 1px solid var(--line);
}

.difference-row > * {
  display: flex;
  align-items: center;
  padding: 20px 28px;
}

.difference-row__topic,
.difference-stats div > span {
  color: var(--violet);
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
}

.difference-row p {
  color: var(--ash);
  border-left: 1px solid var(--line);
  font-size: 17px;
  line-height: 1.25;
  transition: color 620ms var(--ease-slow), background 620ms var(--ease-slow), padding-left 620ms var(--ease-slow);
}

.difference-row p:last-child {
  color: var(--white);
  background: rgba(146, 129, 247, 0.045);
}

.difference-row:hover p:last-child {
  padding-left: 34px;
  background: rgba(146, 129, 247, 0.1);
}

.difference-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
}

.difference-stats div {
  min-height: 104px;
  padding: 20px;
  border-right: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.014);
}

.difference-stats div:last-child {
  border-right: 0;
}

.difference-stats b {
  display: block;
  color: var(--white);
  font-family: var(--font-display);
  font-size: clamp(30px, 3vw, 40px);
  line-height: 1;
}

.difference-stats div > span {
  display: block;
  margin-top: 12px;
  color: var(--ash);
  line-height: 1.2;
}

.cta-section {
  padding: 112px 0;
  position: relative;
  z-index: 1;
}

.cta-panel {
  padding: 64px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta-panel .eyebrow {
  margin-inline: auto;
}

.cta-panel h2,
.cta-panel p {
  margin-left: auto;
  margin-right: auto;
}

.cta-panel .button {
  margin-top: 32px;
}

.footer {
  border-top: 1px solid var(--line-soft);
  position: relative;
  z-index: 1;
  background: rgba(0, 0, 0, 0.72);
}

.footer__inner {
  min-height: 96px;
  display: flex;
  align-items: center;
  gap: 24px;
  color: var(--ash);
  font-size: 14px;
}

.footer__inner a:hover {
  color: var(--white);
}

.footer__quote {
  margin-left: auto;
  max-width: 520px;
  color: var(--bone);
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 500;
  line-height: 1.25;
  text-align: right;
}

.modal {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: grid;
  place-items: center;
  padding: 24px;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 1050ms var(--ease-slow), visibility 0s linear 1050ms;
}

.modal.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transition-delay: 0s;
}

.modal__backdrop {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(135deg, rgba(146, 129, 247, 0.12), transparent 44%),
    linear-gradient(180deg, rgba(0, 0, 0, 0.52), rgba(0, 0, 0, 0.78));
  opacity: 0;
  transition: opacity 1250ms var(--ease-slow), background 1250ms var(--ease-slow);
}

.modal.is-open .modal__backdrop {
  opacity: 1;
}

.modal__window {
  position: relative;
  width: min(100%, 590px);
  max-height: 86vh;
  overflow: auto;
  padding: 24px;
  background:
    linear-gradient(145deg, rgba(146, 129, 247, 0.085), transparent 32%),
    rgba(0, 0, 0, 0.96);
  border: 1px solid var(--line);
  border-radius: 28px;
  transform: translateY(34px) scale(0.965);
  opacity: 0;
  box-shadow: 0 34px 120px rgba(0, 0, 0, 0.46);
  transition: border-color 720ms var(--ease), opacity 780ms var(--ease-slow), transform 980ms var(--ease-slow), box-shadow 720ms var(--ease);
}

.modal__window::before {
  content: "";
  position: absolute;
  left: 24px;
  right: 24px;
  top: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--violet-glow), transparent);
  opacity: 0.74;
}

.modal.is-open .modal__window {
  opacity: 1;
  transform: translateY(0) scale(1);
  transition-delay: 100ms;
}

.modal.is-open .modal__window:hover {
  border-color: rgba(186, 167, 255, 0.5);
}

.modal__head {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 18px;
}

.modal__head h2 {
  margin-top: 9px;
  color: var(--white);
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 600;
  line-height: 1;
  letter-spacing: 0;
  text-transform: uppercase;
}

.modal .eyebrow {
  border-radius: 10px;
  font-family: var(--font-brand);
  font-size: 10px;
}

.modal .eyebrow::before {
  width: 14px;
}

.modal__close {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--smoke);
  font-size: 24px;
  line-height: 1;
  transition: border-color 360ms var(--ease), color 360ms var(--ease), transform 360ms var(--ease);
}

.modal__close:hover {
  color: var(--white);
  border-color: var(--violet-glow);
  transform: rotate(90deg);
}

/* Форма в одну колонку: каждое поле знает свою ширину само,
   без переопределений grid-column. Пара "Имя + Контакт" - отдельный ряд. */
.form {
  display: grid;
  gap: 16px;
}

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

.form__field {
  display: block;
}

/* Лестница появления: порядок задан через --i в разметке.
   nth-child здесь ненадёжен - honeypot тоже ребёнок формы. */
.modal.is-open .form > .form__row,
.modal.is-open .form > .form__field,
.modal.is-open .form > .form__footer {
  animation: formRise 640ms var(--ease-slow) both;
  animation-delay: calc(var(--i, 0) * 55ms);
}

.form__label {
  display: block;
  margin-bottom: 7px;
  color: var(--smoke);
  font-family: var(--font-label);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.form__hint {
  display: block;
  margin: -3px 0 9px;
  color: var(--iron);
  font-family: var(--font-ui);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: -0.01em;
}

.form input,
.form select,
.form textarea {
  padding: 13px 15px;
  font-family: var(--font-ui);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: -0.01em;
}

.form input::placeholder,
.form textarea::placeholder {
  color: var(--iron);
  font-weight: 500;
}

.form__footer {
  display: grid;
  gap: 10px;
  margin-top: 2px;
}

.choice-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.choice-chip {
  min-height: 38px;
  padding: 0 12px;
  color: var(--ash);
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.018);
  font-family: "TT Runs";
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  transition: color 520ms var(--ease-slow), border-color 520ms var(--ease-slow), background 520ms var(--ease-slow), transform 520ms var(--ease-slow);
}

.choice-chip:hover {
  color: var(--white);
  border-color: rgba(186, 167, 255, 0.5);
  transform: translateY(-2px);
}

.choice-chip.is-active {
  color: var(--white);
  border-color: rgba(186, 167, 255, 0.76);
  background: rgba(146, 129, 247, 0.16);
}

.form input:focus,
.form select:focus,
.form textarea:focus {
  border-color: var(--violet);
}

.form textarea {
  resize: vertical;
}

/* Honeypot: убран из потока, но остаётся в DOM для ботов.
   display: none не подходит - часть ботов такие поля пропускает. */
.form__trap {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
}

.form__trap label {
  animation: none;
}

.form__status {
  grid-column: 1 / -1;
  margin: 0;
  min-height: 18px;
  color: var(--ash);
  font-size: 13px;
  line-height: 1.45;
  transition: color 320ms var(--ease-slow);
}

.form__status--ok {
  color: var(--green);
}

.form__status--error {
  color: var(--red);
}

.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 980ms var(--ease-slow), transform 980ms var(--ease-slow);
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

section:target .reveal {
  opacity: 1;
  transform: translateY(0);
}

#services:target .service-card,
#niches:target .niche-row,
#niches:target .niche-preview {
  opacity: 1;
  filter: none;
  transform: none;
  animation: none;
}

@keyframes heroIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes lineDrift {
  to {
    translate: 42px -26px;
    opacity: 0.62;
  }
}

@keyframes particleFloat {
  to {
    translate: 44px -64px;
    scale: 1.7;
    opacity: 0.18;
  }
}

@keyframes orbitBreathe {
  to {
    scale: 1.08;
    opacity: 0.48;
  }
}

@keyframes scanMove {
  to {
    transform: rotate(58deg) translateX(30px);
    opacity: 0.18;
  }
}

@keyframes signalFloat {
  from {
    transform: translate3d(0, 0, 0) rotate(-0.6deg);
  }
  to {
    transform: translate3d(10px, -8px, 0) rotate(1.4deg);
  }
}

@keyframes signalFloatAlt {
  from {
    transform: translate3d(0, 0, 0) rotate(0.8deg);
  }
  to {
    transform: translate3d(-10px, 7px, 0) rotate(-1.2deg);
  }
}

@keyframes marqueeMove {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}

@keyframes haloSpin {
  to {
    transform: rotate(360deg) scale(1.08);
  }
}

@keyframes dashGlide {
  to {
    translate: 48px -18px;
    opacity: 0.55;
  }
}

@keyframes nicheSlide {
  from {
    opacity: 0;
    filter: blur(7px);
    transform: translateY(24px) scale(0.988);
  }
  to {
    opacity: 1;
    filter: blur(0);
    transform: translateY(0) scale(1);
  }
}

@keyframes formRise {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Переключение ниши: содержимое карточки собирается заново.
   Сдвиг небольшой - при наведении мышью на строки подряд
   большая амплитуда читалась бы как дёрганье. */
@keyframes nicheSwap {
  from {
    opacity: 0;
    transform: translateY(9px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes ambientCubeSpin {
  from {
    transform: rotateX(-24deg) rotateY(0deg);
  }
  to {
    transform: rotateX(-24deg) rotateY(360deg);
  }
}

@keyframes ambientRingSpin {
  from {
    transform: rotateX(72deg) rotateZ(0deg);
  }
  to {
    transform: rotateX(72deg) rotateZ(360deg);
  }
}

@keyframes ambientPlaneDrift {
  from {
    background-position: 0 0;
  }
  to {
    background-position: 0 120px;
  }
}

@media (max-width: 980px) {
  body {
    --zoom: 1;
  }

  .nav__inner {
    display: flex;
  }

  .nav__links {
    display: none;
  }

  .button--sm {
    margin-left: auto;
    margin-right: 0;
  }

  .hero__inner,
  .two-col,
  .difference-layout {
    grid-template-columns: 1fr;
  }

  .hero__visual {
    min-height: 360px;
  }

  .hero-contacts {
    max-width: none;
    grid-template-columns: minmax(150px, 0.7fr) minmax(0, 1.3fr);
  }

  .services-grid,
  .niches-showcase {
    grid-template-columns: 1fr 1fr;
  }

  .niches-showcase {
    grid-template-columns: 1fr;
  }

  .niche-preview {
    position: relative;
    top: auto;
    min-height: 320px;
  }

  .niche-preview h3 {
    margin-top: 46px;
  }

  .niche-preview p {
    max-width: 44ch;
  }

  .logo-strip__inner {
    min-height: 92px;
  }
}

@media (max-width: 640px) {
  body::before {
    background-size: 72px 72px;
    opacity: 0.72;
  }

  .ambient__stage,
  .ambient__plane,
  .ambient__halo,
  .particle {
    display: none;
  }

  .ambient__line {
    height: 34vh;
    opacity: 0.22;
  }

  .grain {
    opacity: 0.026;
  }

  .container,
  .nav__inner,
  .hero__inner {
    width: min(100% - 32px, var(--max));
  }

  .nav__inner {
    min-height: 62px;
  }

  .brand__name {
    display: none;
  }

  .brand__logo {
    width: 32px;
    height: 32px;
  }

  .nav .button {
    min-height: 36px;
    padding: 0 13px;
    font-size: 11px;
  }

  .hero {
    min-height: auto;
  }

  .hero__inner {
    padding: 48px 0 56px;
    gap: 0;
  }

  .hero h1 {
    max-width: 100%;
    font-size: clamp(28px, 8vw, 36px);
    line-height: 0.96;
    overflow-wrap: normal;
  }

  .hero__lead {
    max-width: 34ch;
    margin-top: 20px;
    font-size: 15px;
    line-height: 1.5;
  }

  .hero__actions {
    display: grid;
    margin-top: 26px;
    gap: 10px;
  }

  .hero__actions .button {
    width: 100%;
    min-height: 44px;
    white-space: normal;
    text-align: center;
  }

  .metrics,
  .hero-contacts,
  .services-grid {
    grid-template-columns: 1fr;
  }

  .metrics div,
  .hero-contacts a {
    min-height: auto;
    padding: 18px;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .metrics div:last-child,
  .hero-contacts a:last-child {
    border-bottom: 0;
  }

  .hero-contacts {
    margin-top: 30px;
    border-radius: 18px;
  }

  .hero-contacts span {
    font-size: 11px;
  }

  .hero-contacts strong {
    margin-top: 10px;
    font-size: 17px;
  }

  .hero__visual {
    display: none;
  }

  .logo-strip__inner {
    min-height: 72px;
  }

  .logo-strip__track {
    gap: 30px;
    font-size: 20px;
  }

  .logo-strip__track span::after {
    right: -18px;
    width: 5px;
    height: 5px;
  }

  .niche-row {
    min-height: 72px;
    grid-template-columns: 38px 1fr;
    gap: 14px;
  }

  .niche-row__count {
    display: none;
  }

  .niche-row__title {
    font-size: clamp(22px, 7.4vw, 34px);
  }

  .niche-preview {
    padding: 24px;
    border-radius: 20px;
    min-height: auto;
  }

  .niche-preview h3 {
    margin-top: 34px;
    font-size: clamp(26px, 9vw, 34px);
  }

  .niche-preview p {
    font-size: 16px;
  }

  .difference-board {
    border-radius: 22px;
  }

  .difference-head {
    grid-template-columns: 1fr 46px 1fr;
    min-height: 78px;
  }

  .difference-head__label {
    padding: 18px 14px;
    font-size: 15px;
  }

  .difference-vs {
    width: 36px;
    height: 36px;
    font-size: 9px;
  }

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

  .difference-row__topic {
    grid-column: 1 / -1;
    padding: 12px 14px 8px;
    font-size: 11px;
  }

  .difference-row p {
    align-items: flex-start;
    min-height: 74px;
    padding: 13px 14px 16px;
    border-left: 0;
    font-size: 14px;
  }

  .difference-row p:last-child {
    border-left: 1px solid var(--line);
  }

  .difference-row:hover p:last-child {
    padding-left: 18px;
  }

  .difference-stats {
    grid-template-columns: 1fr;
  }

  .difference-stats div {
    min-height: auto;
    padding: 18px;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .difference-stats div:last-child {
    border-bottom: 0;
  }

  .section,
  .cta-section {
    padding: 68px 0;
  }

  .section__intro--wide {
    margin-bottom: 34px;
  }

  .section__intro h2,
  .cta-panel h2 {
    margin-top: 18px;
    font-size: clamp(29px, 9.2vw, 40px);
    line-height: 1.02;
  }

  .section__intro p,
  .cta-panel p {
    margin-top: 14px;
    font-size: 15px;
    line-height: 1.5;
  }

  .eyebrow {
    min-height: 32px;
    padding: 8px 11px;
    font-size: 13px;
  }

  .eyebrow::before {
    width: 14px;
  }

  .service-card {
    min-height: auto;
    padding: 22px;
    border-radius: 20px;
  }

  .service-card h3 {
    margin-top: 24px;
    font-size: 27px;
  }

  .service-card p {
    font-size: 15px;
  }

  .service-card ul {
    gap: 10px;
    margin-top: 24px;
    font-size: 15px;
  }

  .service-card button {
    padding-top: 24px;
    font-size: 14px;
  }

  .matrix {
    margin-top: 22px;
  }

  .matrix div {
    display: grid;
    gap: 5px;
    padding: 13px;
    font-size: 14px;
  }

  .hero-contacts strong {
    white-space: normal;
    overflow-wrap: anywhere;
  }

  .copy-stack .lead {
    font-size: clamp(24px, 7.8vw, 34px);
  }

  .copy-stack > p:not(.lead) {
    font-size: 16px;
  }

  .copy-stack {
    gap: 22px;
  }

  .terminal-card {
    margin-top: 8px;
    border-radius: 14px;
  }

  .terminal-card pre {
    padding: 16px;
    font-size: 12px;
    line-height: 1.55;
  }

  .modal__window {
    padding: 22px;
    border-radius: 22px;
  }

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

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

  .form label:nth-of-type(5),
  .form .button--full {
    grid-column: auto;
  }

  .modal__head h2 {
    font-size: 22px;
  }

  .cta-panel {
    padding: 34px 22px;
    text-align: left;
    border-radius: 20px;
  }

  .cta-panel .button {
    width: 100%;
    min-height: 44px;
  }

  .cta-panel .eyebrow,
  .cta-panel h2,
  .cta-panel p {
    margin-left: 0;
    margin-right: 0;
  }

  .footer__inner {
    min-height: auto;
    padding: 30px 0;
    flex-direction: column;
    align-items: flex-start;
  }

  .footer__quote {
    margin-left: 0;
    text-align: left;
  }
}

@media (max-width: 420px) {
  .container,
  .nav__inner,
  .hero__inner {
    width: min(100% - 24px, var(--max));
  }

  .button {
    font-size: 12px;
  }

  .nav .button {
    max-width: 174px;
    padding: 0 11px;
  }

  .hero__inner {
    padding-top: 40px;
  }

  .hero h1 {
    font-size: clamp(24px, 7.4vw, 30px);
  }

  .hero__lead {
    font-size: 14px;
  }

  .hero-contacts a {
    padding: 16px;
  }

  .section,
  .cta-section {
    padding: 58px 0;
  }

  .section__intro h2,
  .cta-panel h2 {
    font-size: clamp(24px, 7.6vw, 30px);
  }

  .copy-stack .lead {
    font-size: 23px;
  }

  .copy-stack > p:not(.lead),
  .niche-preview p {
    font-size: 15px;
  }

  .service-card,
  .niche-preview,
  .cta-panel {
    padding: 20px;
  }

  .service-card h3,
  .niche-preview h3 {
    font-size: 25px;
  }

  .difference-head {
    grid-template-columns: 1fr 38px 1fr;
  }

  .difference-head__label {
    padding: 16px 10px;
    font-size: 13px;
  }

  .difference-vs {
    width: 32px;
    height: 32px;
  }

  .modal {
    padding: 12px;
  }

  .modal__window {
    padding: 18px;
  }

  .modal__head {
    gap: 12px;
  }

  .modal__head h2 {
    font-size: 20px;
  }
}

/* Единая точка правки для написания POINT(0): хедер, блок 04, футер, модалка.
   Утилита стоит в конце файла осознанно - в блоке 04 класс висит на том же
   элементе, что .difference-head__label со своим font-family. Специфичность
   равная, поэтому побеждает правило, объявленное ниже. */
.wordmark {
  font-family: var(--font-brand);
  font-weight: 700;
  letter-spacing: 0.06em;
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 1ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 1ms !important;
  }
}
