:root {
  --ink: #0b1016;
  --ink-2: #121922;
  --panel: #171f2a;
  --line: rgba(232, 238, 244, 0.1);
  --text: #e8eef4;
  --muted: #93a1b2;
  --brass: #c4a574;
  --brass-soft: rgba(196, 165, 116, 0.18);
  --teal: #5ea8a0;
  --teal-soft: rgba(94, 168, 160, 0.16);
  --white: #f5f7fa;
  --radius: 14px;
  --shell: min(1120px, calc(100% - 2.5rem));
  --font: "Onest", sans-serif;
  --display: "Unbounded", sans-serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font);
  color: var(--text);
  background:
    radial-gradient(1200px 600px at 80% -10%, rgba(94, 168, 160, 0.12), transparent 55%),
    radial-gradient(900px 500px at -10% 20%, rgba(196, 165, 116, 0.08), transparent 50%),
    linear-gradient(180deg, #0a0e14 0%, var(--ink) 40%, #0d131b 100%);
  background-attachment: fixed;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

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

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

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

.shell {
  width: var(--shell);
  margin-inline: auto;
}

.shell.narrow {
  width: min(760px, calc(100% - 2.5rem));
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

.skip {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--brass);
  color: #111;
  padding: 0.6rem 1rem;
  z-index: 100;
}

.skip:focus {
  left: 1rem;
  top: 1rem;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  backdrop-filter: blur(14px);
  background: rgba(11, 16, 22, 0.72);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s var(--ease), background 0.3s var(--ease);
}

.site-header.is-scrolled {
  border-bottom-color: var(--line);
  background: rgba(11, 16, 22, 0.88);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  min-height: 4.25rem;
}

.brand img {
  width: 168px;
  height: auto;
}

.site-footer .brand img {
  width: 140px;
}

.nav {
  display: flex;
  gap: 1.35rem;
  margin-left: auto;
  font-size: 0.95rem;
  color: var(--muted);
}

.nav a:hover,
.mobile-nav a:hover {
  color: var(--white);
}

.header-inner > .btn-small {
  margin-left: 0.5rem;
}

.nav-toggle {
  display: none;
  width: 2.5rem;
  height: 2.5rem;
  margin-left: auto;
  place-items: center;
  gap: 6px;
  flex-direction: column;
}

.nav-toggle span {
  display: block;
  width: 18px;
  height: 1.5px;
  background: var(--text);
}

.mobile-nav {
  display: none;
  flex-direction: column;
  gap: 0.85rem;
  padding: 0.5rem 1.25rem 1.25rem;
  border-top: 1px solid var(--line);
  background: rgba(11, 16, 22, 0.96);
}

.mobile-nav:not([hidden]) {
  display: flex;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  padding: 0.85rem 1.25rem;
  border-radius: 10px;
  background: linear-gradient(135deg, #d4b78a, #b8925c);
  color: #14110c;
  font-weight: 600;
  letter-spacing: 0.01em;
  transition: transform 0.25s var(--ease), filter 0.25s var(--ease);
}

.btn:hover {
  transform: translateY(-1px);
  filter: brightness(1.05);
}

.btn-ghost {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--line);
}

.btn-ghost:hover {
  border-color: rgba(232, 238, 244, 0.28);
  filter: none;
}

.btn-small {
  padding: 0.55rem 0.95rem;
  font-size: 0.9rem;
}

/* Hero */
.hero {
  position: relative;
  min-height: min(100vh, 920px);
  padding: 3.5rem 0 4.5rem;
  overflow: clip;
}

.hero-atmosphere {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(232, 238, 244, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(232, 238, 244, 0.035) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 70% 60% at 70% 40%, black 20%, transparent 75%);
}

.hero-glow {
  position: absolute;
  width: 55vw;
  height: 55vw;
  right: -12vw;
  top: 5vh;
  background: radial-gradient(circle, rgba(94, 168, 160, 0.14), transparent 65%);
  animation: drift 14s ease-in-out infinite alternate;
}

@keyframes drift {
  from { transform: translate3d(0, 0, 0) scale(1); }
  to { transform: translate3d(-4%, 3%, 0) scale(1.06); }
}

.hero-layout {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 3rem;
  text-align: center;
}

.brand-mark {
  margin: 0 0 0.4rem;
  font-family: var(--display);
  font-size: clamp(2.8rem, 6vw, 4.6rem);
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1;
  color: var(--white);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  margin: 0 0 1.1rem;
  font-family: var(--display);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--brass);
}

.eyebrow::before {
  content: "";
  width: 24px;
  height: 1px;
  background: currentColor;
  opacity: 0.5;
}

.hero-copy .eyebrow::after {
  content: "";
  width: 24px;
  height: 1px;
  background: currentColor;
  opacity: 0.5;
}

.hero h1,
.section h2 {
  font-family: var(--display);
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.12;
  margin: 0;
}

.hero h1 {
  font-size: clamp(1.75rem, 3.1vw, 2.5rem);
  color: rgba(232, 238, 244, 0.94);
}

.lead,
.section-lead {
  color: var(--muted);
  font-size: 1.08rem;
  max-width: 42rem;
}

.hero-copy {
  max-width: 46rem;
  margin-inline: auto;
}

.hero .lead {
  margin: 1.35rem auto 2rem;
  font-size: 1.12rem;
}

.hero-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
}

.cta-arrow {
  width: 122px;
  height: 80px;
  flex: none;
  margin: 0 -0.35rem 1.35rem 0;
  fill: none;
  stroke: var(--brass);
  overflow: visible;
}

.cta-arrow-line {
  stroke-width: 5;
  stroke-linecap: round;
  stroke-dasharray: 0.1 14;
  opacity: 0.85;
  animation: arrow-drift 2.6s var(--ease) infinite;
}

.cta-arrow-head {
  stroke-width: 5;
  stroke-linecap: round;
  stroke-linejoin: round;
  animation: arrow-drift 2.6s var(--ease) infinite;
}

@keyframes arrow-drift {
  0%, 100% { transform: translateX(0); }
  50% { transform: translateX(5px); }
}

.btn-hero {
  padding: 1.05rem 2rem;
  border-radius: 12px;
  font-size: 1.02rem;
  box-shadow: 0 18px 40px -22px rgba(196, 165, 116, 0.65);
}

.btn-hero::after {
  content: "→";
  font-size: 1.05em;
  line-height: 1;
  transition: transform 0.25s var(--ease);
}

.btn-hero:hover::after {
  transform: translateX(3px);
}

.hero-stage {
  margin: 0;
  /* шире контентной колонки, чтобы схема читалась крупно */
  width: min(1320px, calc(100vw - 3rem));
  justify-self: center;
  animation: rise 1s var(--ease) both;
}

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

.hero-copy {
  animation: rise 0.85s var(--ease) both;
}

.twin-map {
  width: 100%;
  height: auto;
  display: block;
}

.zone-title,
.zone-note,
.node text {
  fill: var(--text);
  font-family: var(--font);
  font-size: 17px;
}

.zone-title {
  font-size: 16px;
}

.map-kicker {
  fill: var(--brass);
  font-family: var(--display);
  font-size: 15px;
  font-weight: 500;
  letter-spacing: 2.4px;
  text-transform: uppercase;
}

.map-rule {
  stroke: rgba(196, 165, 116, 0.35);
  stroke-width: 1;
  fill: none;
}

.hint {
  fill: var(--muted);
  font-family: var(--font);
  font-size: 13px;
  font-style: italic;
}

.node > rect {
  fill: url(#cardPlain);
  stroke: rgba(232, 238, 244, 0.12);
}

.node.entry > rect {
  fill: url(#cardBrass);
  stroke: rgba(196, 165, 116, 0.42);
}

.node.soc > rect {
  fill: url(#cardTeal);
  stroke: rgba(94, 168, 160, 0.4);
}

.node.trap > rect {
  fill: rgba(19, 27, 36, 0.9);
  stroke: rgba(232, 238, 244, 0.11);
}

.icon-tile {
  fill: rgba(147, 161, 178, 0.12);
  stroke: rgba(147, 161, 178, 0.22);
}

.node.entry .icon-tile,
.node.trap .icon-tile {
  fill: rgba(196, 165, 116, 0.14);
  stroke: rgba(196, 165, 116, 0.3);
}

.node.soc .icon-tile {
  fill: rgba(94, 168, 160, 0.14);
  stroke: rgba(94, 168, 160, 0.3);
}

.node-icon {
  fill: none;
  stroke: var(--muted);
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.node.entry .node-icon,
.node.trap .node-icon {
  stroke: var(--brass);
}

.node.soc .node-icon {
  stroke: var(--teal);
}

.node .sub,
.zone-note {
  fill: var(--muted);
  font-size: 14px;
}

.zone-dot {
  fill: var(--teal);
  opacity: 0.85;
}

.zone > rect:first-of-type {
  fill: rgba(94, 168, 160, 0.04);
  stroke: rgba(94, 168, 160, 0.24);
  stroke-dasharray: 6 6;
}

.wire {
  fill: none;
  stroke: url(#lane);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-dasharray: 7 9;
  animation: dash 24s linear infinite;
}

@keyframes dash {
  to { stroke-dashoffset: -320; }
}

.packet {
  fill: var(--brass);
  filter: drop-shadow(0 0 6px rgba(196, 165, 116, 0.65));
}

.packet.trail {
  fill: var(--teal);
  filter: drop-shadow(0 0 6px rgba(94, 168, 160, 0.6));
}

/* Sections */
/* Разделитель секций — трасса печатной платы вместо простой линии */
.section,
.site-footer {
  background-image:
    url("assets/divider-circuit.svg?v=55c50afa"),
    radial-gradient(ellipse 44% 26px at 50% 22px, rgba(94, 168, 160, 0.14), transparent 70%);
  background-repeat: repeat-x, no-repeat;
  background-position: top center, top center;
  background-size: 480px 44px, 100% 56px;
}

.section {
  position: relative;
  padding: 5.5rem 0;
  overflow: clip;
}

.section > .shell {
  position: relative;
  z-index: 2;
}

/* Базовая едва заметная сетка — как в hero */
.section::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(232, 238, 244, 0.022) 1px, transparent 1px),
    linear-gradient(90deg, rgba(232, 238, 244, 0.022) 1px, transparent 1px);
  background-size: 56px 56px;
  -webkit-mask-image: radial-gradient(ellipse 90% 80% at var(--gx, 50%) var(--gy, 22%), #000 4%, transparent 82%);
  mask-image: radial-gradient(ellipse 90% 80% at var(--gx, 50%) var(--gy, 22%), #000 4%, transparent 82%);
}

.section:nth-of-type(odd)::before { --gx: 82%; --gy: 20%; }
.section:nth-of-type(even)::before { --gx: 16%; --gy: 26%; }

/* Тематические акценты безопасности — очень бледные «водяные знаки» */
.problem::after,
.values::after,
.how::after,
.capabilities::after,
.scenarios::after,
.compare::after,
.architecture::after,
.faq::after {
  content: "";
  position: absolute;
  z-index: 0;
  top: 2.5rem;
  width: min(380px, 42vw);
  height: min(380px, 42vw);
  pointer-events: none;
  background-repeat: no-repeat;
  background-size: contain;
  opacity: 0.32;
}

/* Бинарный «матричный» код */
.problem::after,
.how::after,
.scenarios::after,
.faq::after {
  background-image: url(assets/pattern-binary.svg?v=bc261507);
}

/* Печатные дорожки / схемотехника */
.values::after,
.capabilities::after,
.compare::after,
.architecture::after {
  background-image: url(assets/pattern-circuit.svg?v=61270180);
}

/* Раскладка по углам, чтобы паттерн уводился под контент */
.problem::after,
.capabilities::after,
.scenarios::after,
.faq::after {
  right: -2.5rem;
  -webkit-mask-image: radial-gradient(closest-side at 72% 34%, #000, transparent 78%);
  mask-image: radial-gradient(closest-side at 72% 34%, #000, transparent 78%);
}

.values::after,
.how::after,
.compare::after,
.architecture::after {
  left: -2.5rem;
  -webkit-mask-image: radial-gradient(closest-side at 28% 34%, #000, transparent 78%);
  mask-image: radial-gradient(closest-side at 28% 34%, #000, transparent 78%);
}

@media (max-width: 720px) {
  .section::after {
    display: none;
  }
}

/* Icons */
.sprite {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

.icon {
  width: 26px;
  height: 26px;
  display: block;
  margin-bottom: 1rem;
  fill: none;
  stroke: var(--brass);
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: stroke 0.25s var(--ease), transform 0.25s var(--ease);
}

/* Split blocks with illustration */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3.5rem;
  align-items: center;
}

.split-reverse .split-copy {
  order: 2;
}

.visual {
  position: relative;
  margin: 0;
}

.visual::before {
  content: "";
  position: absolute;
  inset: 8% 6%;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(196, 165, 116, 0.1), transparent 72%);
  filter: blur(6px);
  pointer-events: none;
}

.visual img {
  position: relative;
  width: 100%;
  display: block;
}

.tick-list {
  margin: 1.75rem 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.85rem;
  color: var(--muted);
}

.tick-list li {
  position: relative;
  padding-left: 1.6rem;
}

.tick-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.6em;
  width: 8px;
  height: 8px;
  border-radius: 2px;
  background: var(--brass);
  opacity: 0.7;
}

.section-head {
  margin-bottom: 2.5rem;
  max-width: 40rem;
}

.section h2 {
  font-size: clamp(1.7rem, 3vw, 2.45rem);
  margin-bottom: 0.85rem;
}

.section h3 {
  font-family: var(--display);
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  margin: 0 0 0.55rem;
}

.problem .section-lead {
  margin-top: 1rem;
}

/* Процесс SOC: карточки-ярлыки, заходящие одна на другую */
.value-flow {
  --tip: 26px;
}

.value-row {
  display: flex;
  align-items: stretch;
}

.value-card {
  --shape: polygon(0 0, calc(100% - var(--tip)) 0, 100% 50%, calc(100% - var(--tip)) 100%, 0 100%, var(--tip) 50%);
  position: relative;
  flex: 1 1 0;
  padding: 1.85rem 3.1rem 2rem 2.9rem;
  border: 0;
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(196, 165, 116, 0.95), rgba(196, 165, 116, 0.3) 48%, rgba(196, 165, 116, 0.75));
  clip-path: var(--shape);
  filter: drop-shadow(0 0 12px rgba(196, 165, 116, 0.1));
  transition: transform 0.25s var(--ease), filter 0.25s var(--ease);
}

/* остриё предыдущей карточки входит в вырез следующей */
.value-card + .value-card {
  margin-left: calc(var(--tip) * -1);
}

.value-card:nth-child(1) { z-index: 4; }
.value-card:nth-child(2) { z-index: 3; }
.value-card:nth-child(3) { z-index: 2; }
.value-card:nth-child(4) { z-index: 1; }

.value-card::before {
  content: "";
  position: absolute;
  inset: 1.5px;
  z-index: 0;
  border-radius: 15px;
  background: linear-gradient(165deg, #18222d, #0f151d);
  clip-path: var(--shape);
}

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

.value-top {
  display: flex;
  align-items: center;
  gap: 0.95rem;
  margin-bottom: 1.15rem;
}

.value-card .value-top h3 {
  margin: 0;
  font-size: 1.02rem;
  line-height: 1.25;
}

.value-card .icon {
  flex: 0 0 auto;
  width: 42px;
  height: 42px;
  padding: 11px;
  margin: 0;
  box-sizing: border-box;
  border: 1px solid rgba(196, 165, 116, 0.42);
  border-radius: 50%;
  stroke: var(--brass);
}

.value-card:hover {
  transform: translateY(-4px);
  filter: drop-shadow(0 0 16px rgba(196, 165, 116, 0.22)) brightness(1.06);
}

/* Таймлайн стадий: та же геометрия, что у карточек, — узлы по их центрам */
.value-timeline {
  position: relative;
  display: flex;
  margin-top: 1.6rem;
}

.value-timeline::before {
  content: "";
  position: absolute;
  top: 5px;
  left: 13%;
  right: 13%;
  height: 1px;
  background: linear-gradient(90deg, rgba(196, 165, 116, 0.5), rgba(196, 165, 116, 0.5));
}

.value-stage {
  position: relative;
  flex: 1 1 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.8rem;
  text-align: center;
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}

.value-stage + .value-stage {
  margin-left: calc(var(--tip) * -1);
}

.value-node {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: var(--ink);
  border: 2px solid var(--brass);
  box-shadow: 0 0 0 3px rgba(196, 165, 116, 0.12);
}

.scenario-grid article:hover {
  box-shadow: 0 18px 40px -28px rgba(0, 0, 0, 0.9);
  border-color: rgba(196, 165, 116, 0.35);
  transform: translateY(-3px);
}

.value-row article:hover .icon,
.cap-list article:hover .icon,
.scenario-grid article:hover .icon {
  stroke: var(--teal);
  transform: scale(1.06);
}

.value-row p,
.cap-list p,
.scenario-grid p,
.faq-list p,
.compare-list {
  margin: 0;
  color: var(--muted);
}

.steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0;
}

.steps li {
  display: grid;
  grid-template-columns: 7.25rem 2px 1fr;
  gap: 0 1.9rem;
  padding: 1.75rem 0.35rem;
  border-top: 1px solid var(--line);
  transition: background 0.25s var(--ease);
}

.steps li::before {
  content: "";
  grid-column: 2;
  grid-row: 1;
  align-self: stretch;
  margin: -0.5rem 0;
  border-radius: 2px;
  background: linear-gradient(
    180deg,
    transparent,
    rgba(196, 165, 116, 0.7) 14%,
    #f6e4bd 50%,
    rgba(196, 165, 116, 0.7) 86%,
    transparent
  );
  box-shadow:
    0 0 8px rgba(240, 216, 164, 0.75),
    0 0 22px 3px rgba(196, 165, 116, 0.4);
  transition: box-shadow 0.25s var(--ease);
}

.steps li:hover {
  background: linear-gradient(90deg, rgba(196, 165, 116, 0.05), transparent 70%);
}

.steps li:hover::before {
  box-shadow:
    0 0 10px rgba(246, 228, 189, 0.9),
    0 0 30px 5px rgba(196, 165, 116, 0.55);
}

.steps li:last-child {
  border-bottom: 1px solid var(--line);
}

.step-num {
  grid-column: 1;
  grid-row: 1;
  align-self: center;
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--brass);
  white-space: nowrap;
}

.steps li > div {
  grid-column: 3;
  grid-row: 1;
}

.steps li h3 {
  margin: 0 0 0.45rem;
  font-size: 1.32rem;
  line-height: 1.25;
}

.steps li p {
  margin: 0;
  max-width: 44rem;
  color: var(--muted);
}

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

.cap-list article {
  padding: 2.15rem 0 2.25rem;
  background: transparent;
  transition: background 0.25s var(--ease);
}

.cap-list article:nth-child(odd) {
  padding-right: 2.8rem;
  border-right: 1px solid var(--line);
}

.cap-list article:nth-child(even) {
  padding-left: 2.8rem;
}

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

.cap-list h3 {
  margin-bottom: 0;
}

.cap-list h3::after {
  content: "";
  display: block;
  width: 4.5rem;
  height: 1px;
  margin: 0.85rem 0 0.95rem;
  background: linear-gradient(90deg, rgba(196, 165, 116, 0.85), rgba(196, 165, 116, 0));
  box-shadow: 0 0 8px rgba(196, 165, 116, 0.3);
}

/* Иконка слева от текста в блоках «Возможности» и «Сценарии» */
.cap-list article,
.scenario-grid article {
  display: grid;
  grid-template-columns: auto 1fr;
  column-gap: 1.25rem;
  align-items: start;
}

.cap-list article .icon,
.scenario-grid article .icon {
  grid-row: 1 / span 2;
  width: 40px;
  height: 40px;
  margin: 0.15rem 0 0;
  stroke-width: 1.4;
}

.cap-list article .icon {
  width: 48px;
  height: 48px;
  margin-top: 0.1rem;
}

.cap-list article:hover {
  background: rgba(196, 165, 116, 0.035);
}

.scenario-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.75rem;
}

.scenario-grid article {
  padding: 1.75rem;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(18, 25, 34, 0.45);
  transition: border-color 0.25s var(--ease), transform 0.25s var(--ease);
}

.compare-list {
  margin: 1.5rem 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.85rem;
}

.compare-list li {
  padding: 0.9rem 0 0.9rem 1.35rem;
  border-left: 2px solid var(--line);
}

.compare-list li:last-child {
  border-left-color: var(--brass);
}

.compare-list strong {
  color: var(--white);
  font-weight: 600;
}

/* Product */
.tablist {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 1.25rem;
}

.tablist button {
  padding: 0.65rem 1rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  color: var(--muted);
  transition: color 0.2s, border-color 0.2s, background 0.2s;
}

.tablist button[aria-selected="true"] {
  color: var(--ink);
  background: var(--brass);
  border-color: var(--brass);
}

.screen {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: #0a0e14;
  box-shadow: 0 24px 60px -30px rgba(0, 0, 0, 0.9);
}

.screen-bar {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 0.6rem 0.9rem;
  border-bottom: 1px solid var(--line);
  background: rgba(23, 31, 42, 0.75);
}

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

.dots::before,
.dots::after {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(232, 238, 244, 0.16);
}

.dots::before {
  box-shadow: 13px 0 0 rgba(196, 165, 116, 0.5);
}

.screen-path {
  font-size: 0.82rem;
  letter-spacing: 0.04em;
  color: var(--muted);
}

.tabpanels img {
  width: 100%;
  display: block;
}

.arch-flow-wrap {
  margin-top: 3rem;
}

.arch-flow {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.65rem 0.35rem;
}

.arch-item {
  padding: 0.9rem 1.15rem;
  border: 1px solid rgba(94, 168, 160, 0.38);
  border-radius: 10px;
  background: linear-gradient(165deg, rgba(23, 31, 42, 0.92), rgba(14, 20, 28, 0.92));
  box-shadow:
    0 0 16px -5px rgba(94, 168, 160, 0.4),
    inset 0 -12px 18px -14px var(--teal);
  font-size: 0.95rem;
  transition: border-color 0.25s var(--ease), box-shadow 0.25s var(--ease);
}

.arch-item:hover {
  border-color: rgba(94, 168, 160, 0.65);
  box-shadow:
    0 0 22px -4px rgba(94, 168, 160, 0.55),
    inset 0 -12px 20px -13px var(--teal);
}

.arch-item.accent {
  border-color: rgba(196, 165, 116, 0.55);
  background: linear-gradient(165deg, rgba(38, 31, 20, 0.95), rgba(19, 16, 11, 0.95));
  box-shadow:
    0 0 20px -4px rgba(196, 165, 116, 0.45),
    inset 0 -12px 18px -14px var(--brass);
  color: var(--brass);
}

.arch-item.accent:hover {
  border-color: rgba(196, 165, 116, 0.8);
  box-shadow:
    0 0 26px -3px rgba(196, 165, 116, 0.6),
    inset 0 -12px 20px -13px var(--brass);
}

.arch-arrow {
  color: rgba(94, 168, 160, 0.8);
  padding: 0 0.35rem;
}

.faq-list details {
  border-top: 1px solid var(--line);
  padding: 1.2rem 1.1rem;
  border-radius: 12px;
  transition: background 0.25s var(--ease);
}

.faq-list details[open],
.faq-list details:hover {
  background: rgba(23, 31, 42, 0.42);
}

.faq-list details:last-child {
  border-bottom: 1px solid var(--line);
}

.faq-list summary {
  cursor: pointer;
  font-weight: 600;
  list-style: none;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
}

.faq-list summary::-webkit-details-marker {
  display: none;
}

.faq-list summary::after {
  content: "+";
  color: var(--brass);
  font-size: 1.2rem;
  line-height: 1;
}

.faq-list details[open] summary::after {
  content: "–";
}

.faq-list details p {
  margin-top: 0.75rem;
}

.demo-panel {
  position: relative;
  overflow: hidden;
  padding: 4rem 3rem;
  border: 1px solid rgba(196, 165, 116, 0.26);
  border-radius: 20px;
  background: rgba(13, 18, 25, 0.9);
}

.demo-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 62% 58%;
  opacity: 0.9;
}

.demo-panel::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(94deg, rgba(11, 16, 22, 0.97) 0%, rgba(11, 16, 22, 0.92) 38%, rgba(11, 16, 22, 0.55) 64%, rgba(11, 16, 22, 0.25) 100%);
  pointer-events: none;
}

.demo-inner {
  position: relative;
  z-index: 1;
  max-width: 46rem;
}

.demo-inner .section-lead {
  max-width: 34rem;
}

.demo-actions {
  display: grid;
  gap: 0.75rem;
  justify-items: start;
  margin-top: 2rem;
}

.demo-note {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
}

.site-footer {
  padding: 4.25rem 0 2.75rem;
  color: var(--muted);
}

.footer-inner {
  display: grid;
  grid-template-columns: minmax(220px, 0.9fr) minmax(280px, 1.4fr);
  gap: 2rem 3.5rem;
  align-items: start;
}

.footer-brand {
  display: grid;
  gap: 0.85rem;
  max-width: 22rem;
}

.footer-tagline {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.55;
  color: var(--muted);
}

.footer-meta {
  display: grid;
  gap: 1.35rem;
  justify-items: end;
  text-align: right;
}

.footer-inner nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.55rem 1.35rem;
  max-width: 36rem;
}

.footer-inner nav a {
  color: var(--white);
  transition: color 0.2s var(--ease);
}

.footer-inner nav a:hover {
  color: var(--brass);
}

.footer-inner .copy {
  margin: 0;
  font-size: 0.9rem;
}

.footer-inner .copy a:hover {
  color: var(--white);
}

@media (max-width: 720px) {
  .footer-inner {
    grid-template-columns: 1fr;
    gap: 1.75rem;
  }

  .footer-meta {
    justify-items: start;
    text-align: left;
  }

  .footer-inner nav {
    justify-content: flex-start;
  }
}

@media (max-width: 960px) {
  .value-row,
  .cap-list,
  .scenario-grid,
  .demo-inner,
  .split {
    grid-template-columns: 1fr;
  }

  .split {
    gap: 2.25rem;
  }

  .split-reverse .split-copy {
    order: 0;
  }

  .cap-list article,
  .cap-list article:nth-child(odd),
  .cap-list article:nth-child(even) {
    padding: 1.75rem 0 1.85rem;
    border-right: 0;
  }

  .cap-list article:nth-child(n + 2) {
    border-top: 1px solid var(--line);
  }

  /* На узких экранах — обычные карточки в столбик, без наложения и таймлайна */
  .value-row {
    flex-direction: column;
    gap: 1.1rem;
  }

  .value-card {
    clip-path: none;
    padding: 1.7rem 1.8rem 1.85rem;
  }

  .value-card + .value-card {
    margin-left: 0;
  }

  .value-card::before {
    clip-path: none;
  }

  .value-timeline {
    display: none;
  }

  .hero {
    min-height: auto;
    padding-top: 2rem;
  }

  .hero-stage {
    /* схема слишком мелкая на узких экранах — даём горизонтальный скролл */
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  .hero-stage .twin-map {
    min-width: 820px;
  }
}

@media (max-width: 760px) {
  .nav,
  .header-inner > .btn-small,
  .cta-arrow {
    display: none;
  }

  .nav-toggle {
    display: inline-flex;
  }

  .steps li {
    grid-template-columns: 2px 1fr;
    gap: 0 1.15rem;
    padding: 1.35rem 0.35rem;
  }

  .step-num {
    grid-column: 2;
    grid-row: 1;
    padding: 0 0 0.5rem;
  }

  .steps li::before {
    grid-column: 1;
    grid-row: 1 / span 2;
  }

  .steps li > div {
    grid-column: 2;
    grid-row: 2;
  }

  .arch-arrow {
    display: none;
  }

  .arch-flow {
    display: grid;
    grid-template-columns: 1fr;
  }
}

/* Сборка блоков при прокрутке. Атрибут навешивает JS и снимает его после
   анимации, поэтому собственные transition элементов не перебиваются надолго. */
[data-reveal] {
  opacity: 0;
  transform: translate3d(var(--rx, 0), var(--ry, 26px), 0) scale(var(--rs, 0.985));
  transition:
    opacity 0.75s var(--ease) var(--rd, 0ms),
    transform 0.75s var(--ease) var(--rd, 0ms);
  will-change: opacity, transform;
}

[data-reveal="left"] {
  --rx: -30px;
  --ry: 0;
  --rs: 1;
}

[data-reveal="right"] {
  --rx: 30px;
  --ry: 0;
  --rs: 1;
}

[data-reveal].is-revealed {
  opacity: 1;
  transform: none;
  will-change: auto;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }

  [data-reveal] {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .hero-glow,
  .wire,
  .hero-copy,
  .hero-stage {
    animation: none !important;
  }

  .packet {
    display: none;
  }

  .cta-arrow-line,
  .cta-arrow-head {
    animation: none !important;
  }

  .modal-card {
    animation: none !important;
  }
}

/* Модальное окно заявки */
body.modal-open {
  overflow: hidden;
}

/* атрибут hidden должен побеждать display у гридов внутри модалки */
.modal[hidden],
.demo-form[hidden],
.form-success[hidden] {
  display: none;
}

.modal {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: grid;
  place-items: center;
  padding: 1.5rem;
  opacity: 0;
  transition: opacity 0.2s var(--ease);
}

.modal.is-visible {
  opacity: 1;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(5, 8, 12, 0.78);
  backdrop-filter: blur(6px);
}

.modal-card {
  position: relative;
  width: min(620px, 100%);
  max-height: calc(100vh - 3rem);
  overflow-y: auto;
  padding: 2.5rem 2.5rem 2.25rem;
  border: 1px solid rgba(196, 165, 116, 0.24);
  border-radius: 20px;
  background:
    radial-gradient(600px 220px at 100% -20%, rgba(196, 165, 116, 0.12), transparent 70%),
    linear-gradient(180deg, #141c26, #10161e);
  box-shadow: 0 40px 90px -40px rgba(0, 0, 0, 0.95);
  animation: modal-in 0.28s var(--ease) both;
}

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

.modal-card .eyebrow {
  margin-bottom: 0.85rem;
  padding-right: 3rem;
}

.modal-lead {
  margin: 0 0 1.75rem;
  color: var(--muted);
}

.modal-card.is-sent .modal-lead {
  display: none;
}

.modal-card.is-sent .eyebrow {
  margin-bottom: 1.6rem;
}

.modal-close {
  position: absolute;
  top: 1.1rem;
  right: 1.1rem;
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(23, 31, 42, 0.6);
  color: var(--muted);
  cursor: pointer;
  transition: color 0.2s var(--ease), border-color 0.2s var(--ease);
}

.modal-close:hover {
  color: var(--white);
  border-color: rgba(232, 238, 244, 0.3);
}

.modal-close svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
}

.demo-form {
  display: grid;
  gap: 1.1rem;
}

.field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.field {
  display: grid;
  gap: 0.4rem;
}

.field > span {
  font-size: 0.82rem;
  letter-spacing: 0.02em;
  color: var(--muted);
}

.field input {
  width: 100%;
  padding: 0.8rem 0.95rem;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: rgba(11, 16, 22, 0.7);
  color: var(--text);
  font-family: inherit;
  font-size: 0.98rem;
  transition: border-color 0.2s var(--ease), background 0.2s var(--ease);
}

.field input::placeholder {
  color: rgba(147, 161, 178, 0.55);
}

.field input:focus {
  outline: none;
  border-color: rgba(196, 165, 116, 0.55);
  background: rgba(18, 25, 34, 0.9);
}

.trap-field {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.captcha-track {
  position: relative;
  height: 52px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(11, 16, 22, 0.7);
  overflow: hidden;
  user-select: none;
}

.captcha-fill {
  position: absolute;
  inset: 0 auto 0 0;
  width: 0;
  background: linear-gradient(90deg, rgba(196, 165, 116, 0.28), rgba(94, 168, 160, 0.22));
}

.captcha-hint,
.captcha-done {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  padding-left: 2.5rem;
  font-size: 0.9rem;
  color: var(--muted);
  transition: opacity 0.2s var(--ease);
  pointer-events: none;
}

.captcha-done {
  color: var(--teal);
  opacity: 0;
}

.captcha.is-solved .captcha-hint {
  opacity: 0;
}

.captcha.is-solved .captcha-done {
  opacity: 1;
}

.captcha-handle {
  position: absolute;
  top: 4px;
  left: 4px;
  width: 44px;
  height: 42px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 9px;
  background: linear-gradient(135deg, #d4b78a, #b8925c);
  color: #14110c;
  cursor: grab;
  touch-action: none;
  transition: left 0.18s var(--ease), background 0.2s var(--ease);
}

.captcha.is-dragging .captcha-handle {
  cursor: grabbing;
  transition: none;
}

.captcha.is-solved .captcha-handle {
  background: linear-gradient(135deg, #79c3ba, #4f9a92);
  cursor: default;
}

.captcha-handle svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.demo-form .btn-hero {
  width: 100%;
  margin-top: 0.25rem;
}

.demo-form .btn-hero[disabled] {
  opacity: 0.7;
  pointer-events: none;
}

.form-note {
  margin: 0;
  min-height: 1.2em;
  font-size: 0.9rem;
  color: var(--muted);
}

.form-note[data-kind="error"] {
  color: #e2896f;
}

.form-note[data-kind="pending"] {
  color: var(--brass);
}

.consent {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.7rem;
  align-items: start;
  cursor: pointer;
  font-size: 0.86rem;
  color: var(--muted);
}

.consent input {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

.consent-box {
  width: 20px;
  height: 20px;
  margin-top: 0.1rem;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: rgba(11, 16, 22, 0.7);
  transition: border-color 0.2s var(--ease), background 0.2s var(--ease);
}

.consent-box svg {
  width: 14px;
  height: 14px;
  fill: none;
  stroke: #14110c;
  stroke-width: 2.6;
  stroke-linecap: round;
  stroke-linejoin: round;
  opacity: 0;
  transform: scale(0.7);
  transition: opacity 0.15s var(--ease), transform 0.15s var(--ease);
}

.consent input:checked + .consent-box {
  border-color: rgba(196, 165, 116, 0.7);
  background: linear-gradient(135deg, #d4b78a, #b8925c);
}

.consent input:checked + .consent-box svg {
  opacity: 1;
  transform: none;
}

.consent input:focus-visible + .consent-box {
  outline: 2px solid rgba(196, 165, 116, 0.6);
  outline-offset: 2px;
}

.consent-text a {
  color: var(--brass);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.consent.is-missing .consent-box {
  border-color: rgba(226, 137, 111, 0.7);
}

/* Страница политики */
.legal-page {
  padding: 3.5rem 0 4.5rem;
}

.legal-page h1 {
  font-family: var(--display);
  font-size: clamp(1.7rem, 3vw, 2.4rem);
  font-weight: 600;
  letter-spacing: -0.03em;
  margin: 0 0 0.6rem;
}

.legal-updated {
  margin: 0 0 2.5rem;
  color: var(--muted);
  font-size: 0.9rem;
}

.legal-page h2 {
  font-family: var(--display);
  font-size: 1.15rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  margin: 2.25rem 0 0.75rem;
}

.legal-page p,
.legal-page li {
  color: var(--muted);
}

.legal-page ul {
  margin: 0.5rem 0 0;
  padding-left: 1.2rem;
  display: grid;
  gap: 0.4rem;
}

.legal-page a {
  color: var(--brass);
}

.form-success {
  display: grid;
  gap: 1.6rem;
}

.success-head {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1.1rem;
  align-items: start;
}

.success-text {
  display: grid;
  gap: 0.45rem;
}

.form-success h3 {
  font-family: var(--display);
  font-size: 1.3rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  margin: 0;
}

.form-success p {
  margin: 0;
  color: var(--muted);
}

.success-actions {
  display: flex;
  justify-content: flex-end;
  padding-top: 1.25rem;
  border-top: 1px solid var(--line);
}

.success-mark {
  width: 42px;
  height: 42px;
  margin-top: 0.1rem;
  fill: none;
  stroke: var(--teal);
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.success-mark circle {
  stroke-opacity: 0.45;
}

@media (max-width: 560px) {
  .modal {
    padding: 0.75rem;
  }

  .modal-card {
    padding: 2rem 1.35rem 1.75rem;
  }

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

  .success-actions .btn {
    width: 100%;
  }
}
