: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; }
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 { 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 { 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); }

@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: 900px) {
  .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) {
  .site-header { gap: 14px; }
  .hero { padding-top: 62px; }
  h1 { font-size: 46px; overflow-wrap: anywhere; }
  .focus-grid { grid-template-columns: 1fr; }
  .focus-grid article + article { padding-left: 0; border-left: 0; border-top: 1px solid var(--line); }
  .platform-description ul { grid-template-columns: 1fr; }
  .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 img { width: 220px; height: auto; }
}

@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; }
}
