:root {
  --bg: #06101f;
  --bg-deep: #030913;
  --surface: #0a1728;
  --line: rgba(174, 196, 225, .17);
  --text: #f5f7fb;
  --muted: #9baabd;
  --gold: #ffb44f;
  --violet: #8b72ff;
  --sk-gray: #4d5759;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 111px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  overflow-x: hidden;
  color: var(--text);
  background: var(--bg-deep);
  font-family: Inter, "Segoe UI", Arial, sans-serif;
  line-height: 1.5;
}
a { color: inherit; }
img { display: block; max-width: 100%; }

.security-scene { position: fixed; z-index: -2; inset: 0; overflow: hidden; background: #020812; }
.scene-image { position: absolute; inset: 0; background: url("images/hero-background-v4.webp") center / cover no-repeat; transform: scale(1.025); }
.scene-shade { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(2, 9, 20, .9) 0%, rgba(2, 9, 20, .56) 38%, rgba(2, 9, 20, .18) 58%, rgba(2, 9, 20, .58) 100%), linear-gradient(0deg, rgba(2, 9, 20, .9), transparent 45%, rgba(2, 9, 20, .32)); }
.data-packet { position: absolute; z-index: 1; left: 0; top: 0; width: 34px; height: 42px; color: #ffb43c; animation-duration: 13.2s; animation-delay: var(--delay); animation-timing-function: linear; animation-iteration-count: infinite; }
.data-packet i { position: absolute; inset: 0; display: block; border: 2px solid currentColor; border-radius: 3px; background: rgba(5, 13, 25, .82); filter: drop-shadow(0 0 7px currentColor); }
.data-packet i::before { content: ""; position: absolute; top: -2px; right: -2px; width: 11px; height: 11px; border-left: 2px solid currentColor; border-bottom: 2px solid currentColor; background: currentColor; clip-path: polygon(0 0, 100% 100%, 0 100%); }
.data-packet i::after { content: ""; position: absolute; left: 7px; top: 17px; width: 17px; height: 2px; background: currentColor; box-shadow: 0 6px 0 currentColor, 0 12px 0 currentColor; opacity: .9; }
.data-packet span { position: absolute; left: 50%; top: -27px; padding: 4px 7px; color: #fff; background: rgba(4, 10, 20, .88); border: 1px solid currentColor; border-radius: 4px; font-size: 10px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; white-space: nowrap; opacity: 0; transform: translateX(-50%); animation-duration: 13.2s; animation-delay: var(--delay); animation-timing-function: linear; animation-iteration-count: infinite; }
.packet-small i { transform: scale(.78); }
.packet-denied { animation-name: flight-denied; }
.packet-denied span { animation-name: label-denied; }
.packet-granted { animation-name: flight-granted; }
.packet-granted span { animation-name: label-granted; }
.packet-denied span { color: #ff5656; }
.packet-granted span { color: #72ff8b; }

.site-header, .site-footer, main { width: 100%; max-width: 1440px; margin-inline: auto; }
.site-header {
  min-height: 111px;
  padding: 16px clamp(20px, 5vw, 72px);
  position: sticky;
  z-index: 20;
  top: 0;
  display: flex;
  align-items: center;
  gap: 44px;
  border-bottom: 1px solid var(--line);
  background: rgba(3, 9, 19, .74);
  backdrop-filter: blur(18px);
}
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; font-weight: 800; letter-spacing: .12em; }
.brand img { width: auto; height: 79px; border-radius: 14px; }
.site-header nav { display: flex; gap: 38px; margin-left: auto; }
.site-header nav a { color: var(--muted); text-decoration: none; font-size: 20px; line-height: 1.2; }
.site-header nav a:hover, .site-header nav a:focus-visible { color: var(--text); }

.hero {
  min-height: calc(100svh - 111px);
  padding: clamp(70px, 9vw, 130px) clamp(20px, 5vw, 72px);
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-items: center;
  gap: clamp(40px, 7vw, 110px);
  overflow: hidden;
}
.eyebrow, .section-number { margin: 0 0 24px; color: var(--gold); font-size: 12px; font-weight: 750; letter-spacing: .17em; text-transform: uppercase; }
.hero-copy { min-width: 0; }
.hero > *, .section-layout > *, .platform-card > *, .contact-card > * { min-width: 0; }
h1, h2, h3, p, li, a { overflow-wrap: break-word; }
h1 { max-width: 850px; margin: 0; font-size: clamp(44px, 6vw, 86px); line-height: .98; letter-spacing: -.055em; }
.hero-lead { max-width: 690px; margin: 32px 0 0; color: var(--muted); font-size: clamp(18px, 2vw, 23px); }
.section { min-height: 86svh; padding: 96px clamp(20px, 5vw, 72px); border-top: 1px solid var(--line); background: rgba(4, 12, 25, .82); backdrop-filter: blur(12px); }
.section-number { color: var(--muted); }
.section-layout { display: grid; grid-template-columns: minmax(280px, .7fr) minmax(0, 1.3fr); gap: clamp(50px, 8vw, 140px); }
h2 { margin: 0; font-size: clamp(38px, 5vw, 66px); line-height: 1.02; letter-spacing: -.045em; }
.section-copy > p { margin: 0 0 54px; color: #ccd5e1; font-size: clamp(18px, 2vw, 24px); }
.focus-grid { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); }
.focus-grid article { padding: 26px 24px 10px 0; }
.focus-grid article + article { padding-left: 24px; border-left: 1px solid var(--line); }
.focus-grid span { color: var(--gold); font-size: 12px; }
.focus-grid h3 { margin: 28px 0 12px; font-size: 19px; }
.focus-grid p { margin: 0; color: var(--muted); font-size: 14px; }

.platform { background: linear-gradient(135deg, rgba(37, 23, 84, .88), rgba(4, 12, 25, .84) 52%); }
.platform-card { padding: clamp(30px, 6vw, 80px); display: grid; grid-template-columns: 1fr 1fr; gap: 70px; background: var(--surface); border: 1px solid var(--line); border-radius: 24px; }
.platform-description > p { margin: 0 0 38px; color: #ccd5e1; font-size: 21px; }
.platform-description ul { margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; list-style: none; border-top: 1px solid var(--line); }
.platform-description li { padding: 18px 10px 18px 0; color: var(--muted); border-bottom: 1px solid var(--line); }
.platform-link {
  min-height: 54px;
  margin-top: 30px;
  padding: 15px 24px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 22px;
  border: 1px solid var(--line);
  border-radius: 10px;
  font-weight: 750;
  text-decoration: none;
  transition: transform .2s ease, border-color .2s ease;
}
.platform-link:hover, .platform-link:focus-visible { transform: translateY(-2px); border-color: rgba(89, 220, 255, .5); }

.contact-card { display: grid; grid-template-columns: 1.2fr .8fr; gap: 70px; align-items: end; }
.contact-card h2 { max-width: 850px; }
.contact-actions { display: grid; }
.contact-actions a { padding: 22px 0; display: flex; justify-content: space-between; border-bottom: 1px solid var(--line); text-decoration: none; font-size: 19px; }
.contact-actions a:hover span { transform: translate(3px, -3px); }

.site-footer { padding: 48px clamp(20px, 5vw, 72px) 28px; background: rgba(3, 9, 19, .96); border-top: 1px solid var(--line); }
.footer-top { display: flex; justify-content: flex-end; align-items: center; gap: 40px; padding-bottom: 42px; }
.skolkovo-link { padding: 10px 18px; display: block; background: var(--sk-gray); border-radius: 8px; }
.skolkovo-link img { width: 270px; height: auto; }
.legal { padding-top: 24px; display: flex; flex-wrap: wrap; gap: 10px 7px; border-top: 1px solid var(--line); color: #748396; font-size: 12px; }
.legal p { margin: 0; }
.legal-links { display: flex; flex-wrap: wrap; gap: 0 7px; }
.legal a { text-underline-offset: 3px; }
.legal a:hover, .legal a:focus-visible { color: var(--text); }

body.uter-body .stage-origin .service-node::after {
  left: 0;
  transform: translateY(7px);
}
body.uter-body .stage-origin .service-node:hover::after,
body.uter-body .stage-origin .service-node:focus-visible::after { transform: translateY(0); }
body.uter-body .stage-destinations .service-node::after,
body.uter-body .stage-result .service-node::after {
  right: 0;
  left: auto;
  transform: translateY(7px);
}
body.uter-body .stage-destinations .service-node:hover::after,
body.uter-body .stage-destinations .service-node:focus-visible::after,
body.uter-body .stage-result .service-node:hover::after,
body.uter-body .stage-result .service-node:focus-visible::after { transform: translateY(0); }

@keyframes flight-denied {
  0% { transform: translate(var(--x-start), var(--y-start)); opacity: 0; color: #ffb43c; }
  7% { transform: translate(var(--x-start), var(--y-start)); opacity: 1; color: #ffb43c; }
  58% { transform: translate(var(--x-scan), var(--y-scan)); opacity: 1; color: #ffb43c; }
  62%, 72% { transform: translate(var(--x-scan), var(--y-scan)); opacity: 1; color: #ff4d4d; }
  76%, 100% { transform: translate(var(--x-scan), var(--y-scan)); opacity: 0; color: #ff4d4d; }
}

@keyframes flight-granted {
  0% { transform: translate(var(--x-start), var(--y-start)); opacity: 0; color: #ffb43c; }
  7% { transform: translate(var(--x-start), var(--y-start)); opacity: 1; color: #ffb43c; }
  58% { transform: translate(var(--x-scan), var(--y-scan)); opacity: 1; color: #ffb43c; }
  62%, 72% { transform: translate(var(--x-scan), var(--y-scan)); opacity: 1; color: #67ff80; }
  76% { transform: translate(var(--x-scan), var(--y-scan)); opacity: 1; color: #67ff80; }
  96% { transform: translate(var(--x-end), var(--y-end)); opacity: 1; color: #67ff80; }
  100% { transform: translate(var(--x-end), var(--y-end)); opacity: 0; color: #67ff80; }
}

@keyframes label-denied {
  0%, 61%, 75%, 100% { opacity: 0; }
  63%, 72% { opacity: 1; }
}

@keyframes label-granted {
  0%, 61%, 75%, 100% { opacity: 0; }
  63%, 72% { opacity: 1; }
}

@media (max-width: 1000px) {
  .site-header nav a:not([href="#contacts"]) { display: none; }
  .hero { grid-template-columns: 1fr; min-height: auto; }
  .section-layout, .platform-card, .contact-card { grid-template-columns: 1fr; }
  .scene-image { background-position: 58% center; }
}

@media (max-width: 620px) {
  html { scroll-padding-top: 120px; }
  .site-header {
    min-height: 0;
    padding: 8px max(16px, env(safe-area-inset-right)) 10px max(16px, env(safe-area-inset-left));
    flex-wrap: wrap;
    gap: 8px 12px;
  }
  .brand { flex: 0 0 auto; }
  .brand img { height: 52px; border-radius: 10px; }
  .site-header nav {
    width: 100%;
    margin-left: 0;
    display: flex;
    justify-content: space-between;
    gap: 8px;
  }
  .site-header nav a,
  .site-header nav a:not([href="#contacts"]) {
    min-height: 40px;
    padding: 9px 0;
    display: block;
    font-size: clamp(12px, 3.6vw, 14px);
    line-height: 1.5;
    white-space: nowrap;
  }
  .hero {
    min-height: calc(100svh - 120px);
    padding: clamp(48px, 10vh, 72px) max(16px, env(safe-area-inset-right)) 64px max(16px, env(safe-area-inset-left));
    align-items: start;
  }
  .scene-image { background-position: 66% center; transform: scale(1.01); }
  .scene-shade { background: linear-gradient(90deg, rgba(2, 9, 20, .9), rgba(2, 9, 20, .5)), linear-gradient(0deg, rgba(2, 9, 20, .94), transparent 50%, rgba(2, 9, 20, .38)); }
  .data-packet span { padding: 3px 4px; font-size: 8px; letter-spacing: .06em; }
  h1 {
    font-size: clamp(34px, 11vw, 42px);
    line-height: 1.03;
    letter-spacing: -.042em;
    overflow-wrap: normal;
    word-break: normal;
    hyphens: auto;
  }
  h2 {
    font-size: clamp(30px, 9.5vw, 36px);
    line-height: 1.06;
    letter-spacing: -.035em;
    hyphens: auto;
  }
  h3 { hyphens: auto; }
  .hero-lead { margin-top: 24px; font-size: 17px; }
  .eyebrow, .section-number { margin-bottom: 18px; }
  .section {
    min-height: auto;
    padding: 64px max(16px, env(safe-area-inset-right)) 64px max(16px, env(safe-area-inset-left));
  }
  .section-layout, .platform-card, .contact-card { gap: 34px; }
  .section-copy > p { margin-bottom: 36px; font-size: 18px; }
  .focus-grid { grid-template-columns: 1fr; }
  .focus-grid article { padding: 22px 0; }
  .focus-grid article + article { padding-left: 0; border-left: 0; border-top: 1px solid var(--line); }
  .focus-grid h3 { margin-top: 18px; }
  .platform-card { padding: 24px 18px; border-radius: 18px; }
  .platform-description > p { margin-bottom: 28px; font-size: 18px; }
  .platform-description ul { grid-template-columns: 1fr; }
  .platform-link { width: 100%; margin-top: 24px; padding-inline: 16px; gap: 12px; text-align: center; }
  .contact-actions a { padding: 18px 0; gap: 12px; font-size: 17px; }
  .site-footer { padding: 38px max(16px, env(safe-area-inset-right)) max(24px, env(safe-area-inset-bottom)) max(16px, env(safe-area-inset-left)); }
  .footer-top { align-items: flex-end; flex-direction: column; }
  .legal { align-items: flex-start; flex-direction: column; }
  .legal-links { align-items: flex-start; flex-direction: column; gap: 8px; }
  .legal-links span { display: none; }
  .skolkovo-link { max-width: 100%; padding: 8px 12px; }
  .skolkovo-link img { width: min(220px, 100%); height: auto; }

  body.uter-body .site-header nav a,
  body.uter-body .site-header nav a:not([href="#contacts"]) { display: block !important; }
  body.uter-body .uter-hero,
  body.uter-body .uter-section,
  body.uter-body .uter-contact {
    padding-left: max(16px, env(safe-area-inset-left));
    padding-right: max(16px, env(safe-area-inset-right));
  }
  body.uter-body .uter-hero {
    min-height: auto;
    padding-top: 58px;
    padding-bottom: 64px;
    gap: 38px;
  }
  body.uter-body .uter-hero-copy h1 { font-size: clamp(34px, 10.8vw, 42px); }
  body.uter-body .uter-lead { margin-top: 24px; font-size: 17px; }
  body.uter-body .uter-actions { margin-top: 30px; display: grid; }
  body.uter-body .primary-action,
  body.uter-body .secondary-action { width: 100%; padding-inline: 16px; text-align: center; }
  body.uter-body .gateway-visual { padding: 24px 16px; border-radius: 18px; }
  body.uter-body .gateway-core { width: min(168px, 68vw); }
  body.uter-body .uter-section { padding-top: 64px; padding-bottom: 64px; }
  body.uter-body .uter-heading { gap: 24px; }
  body.uter-body .uter-heading p,
  body.uter-body .capability-list p,
  body.uter-body .pilot-lead,
  body.uter-body .uter-contact > p:not(.eyebrow) { font-size: 17px; }
  body.uter-body .risk-grid,
  body.uter-body .value-grid,
  body.uter-body .capability-list,
  body.uter-body .architecture-flow,
  body.uter-body .service-map { margin-top: 42px; }
  body.uter-body .risk-grid article,
  body.uter-body .value-grid article { padding: 24px 0; }
  body.uter-body .risk-grid h3 { margin-top: 20px; }
  body.uter-body .capability-list article { padding: 24px 0; grid-template-columns: 32px minmax(0, 1fr); gap: 8px; }
  body.uter-body .architecture-flow { padding: 18px; gap: 14px; border-radius: 18px; }
  body.uter-body .flow-node { min-height: 0; padding: 18px; }
  body.uter-body .service-map { border-radius: 18px; }
  body.uter-body .map-toolbar { padding: 20px 16px; gap: 20px; }
  body.uter-body .scenario-button { min-height: 42px; padding: 9px 12px; }
  body.uter-body .client-flow { max-width: 100%; padding: 34px 16px 28px; }
  body.uter-body .service-node::after { display: none; }
  body.uter-body .audit-rail {
    position: static;
    width: 100%;
    margin-top: 24px;
    display: block;
    grid-column: 1;
  }
  body.uter-body .audit-line { display: none; }
  body.uter-body .node-audit { width: 100%; }
  body.uter-body .map-explanation { min-height: 0; padding: 22px 16px; grid-template-columns: 1fr; gap: 8px; }
  body.uter-body .deployment-grid { gap: 12px; }
  body.uter-body .deployment-grid article { padding: 22px 18px; }
  body.uter-body .pilot-layout { gap: 38px; }
  body.uter-body .pilot-steps li { padding: 20px 0; grid-template-columns: 40px minmax(0, 1fr); }
  body.uter-body .uter-contact { padding-top: 72px; padding-bottom: 72px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
  .data-packet, .data-packet i, .data-packet span { animation: none !important; opacity: 0; }
}
