@font-face {
  font-family: Vilka;
  src: url("./assets/fonts/vilka-sans-regular.woff") format("woff");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: Vilka;
  src: url("./assets/fonts/vilka-sans-bold.woff") format("woff");
  font-style: normal;
  font-weight: 700;
  font-display: swap;
}

:root {
  color-scheme: dark;
  --night: #06111a;
  --panel: #0a151f;
  --white: #f4f8f9;
  --muted: #b6c5cf;
  --aqua: #08f5ea;
  --ice: #e2f7f7;
  --ink: #08161e;
  --line: #31414b;
  --gutter: clamp(1.125rem, 5vw, 5.5rem);
  --measure: 82rem;
  --section-space: clamp(4rem, 6.7vw, 7.25rem);
  font-family: Vilka, "Segoe UI", Arial, sans-serif;
  font-synthesis: none;
  background: var(--night);
  color: var(--white);
  -webkit-font-smoothing: antialiased;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; }
h1, h2, h3, p, ul, ol { margin: 0; }
ul, ol { padding: 0; }
img, svg { display: block; }
a { color: inherit; text-decoration: none; }
:focus-visible { outline: 3px solid var(--aqua); outline-offset: 4px; }
section[id] { scroll-margin-block-start: 1rem; }
::selection { color: var(--ink); background: var(--aqua); }

.sr-only, .symbols {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.skip-link {
  position: absolute;
  z-index: 10;
  top: .75rem;
  left: var(--gutter);
  transform: translateY(-165%);
  border-radius: .4rem;
  padding: .65rem 1rem;
  color: var(--ink);
  background: var(--aqua);
}

.skip-link:focus { transform: none; }
.shell {
  width: min(var(--measure), calc(100% - 2 * var(--gutter)));
  margin-inline: auto;
}

.header {
  position: relative;
  z-index: 3;
  background: var(--night);
  border-bottom: 1px solid #3448538a;
}

.header-inner {
  position: relative;
  min-height: 4.6rem;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 2rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  width: max-content;
  min-height: 2.8rem;
}

.brand img { width: auto; height: 2.58rem; }
.desktop-nav, .footer nav {
  display: flex;
  align-items: center;
  gap: clamp(1.25rem, 2.7vw, 2.75rem);
}

.desktop-nav a, .footer nav a, .footer-bot {
  display: inline-flex;
  align-items: center;
  min-height: 2.75rem;
  font-size: .94rem;
  line-height: 1.3;
  transition: color .18s ease;
}

.desktop-nav a:hover, .footer a:hover, .mobile-menu nav a:hover { color: var(--aqua); }
.button {
  display: inline-flex;
  width: fit-content;
  max-width: 100%;
  min-height: 3.4rem;
  align-items: center;
  justify-content: center;
  gap: .7rem;
  padding: .8rem 1.35rem;
  border: 1px solid transparent;
  border-radius: .7rem;
  font-weight: 700;
  line-height: 1.25;
  text-align: center;
  transition: color .18s ease, background-color .18s ease, border-color .18s ease, transform .18s ease;
}

.button svg, .footer-bot svg { width: 1.22em; height: 1.22em; flex: none; }
.button-outline {
  min-height: 2.7rem;
  padding: .55rem 1.02rem;
  color: var(--white);
  border-color: #54666f;
  background: transparent;
  border-radius: .6rem;
  font-size: .92rem;
}

.button-outline:hover { border-color: var(--aqua); color: var(--aqua); }
.header-bot { justify-self: end; }
.mobile-menu { display: none; }
.button-primary { background: var(--aqua); color: #001c20; }
.button-primary:hover { background: #78fff2; }
.button-ink { background: var(--ink); color: var(--white); }
.button-ink svg { color: var(--aqua); }
.button-ink:hover { background: #193845; }
.button:active { transform: translateY(1px); }

.hero {
  position: relative;
  isolation: isolate;
  display: grid;
  align-items: center;
  min-height: clamp(34rem, 43.5vw, 49rem);
  background: #020c13;
  border-bottom: 1px solid #263a44;
}

.hero-art, .hero::after {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.hero-art { z-index: -2; overflow: hidden; }
.hero-art img {
  position: absolute;
  top: 0;
  right: min(0rem, calc((100vw - 90rem) * .17));
  width: auto;
  height: 100%;
  max-width: none;
  mask-image: linear-gradient(90deg, transparent, #000 15%);
}

.hero::after {
  z-index: -1;
  content: "";
  background: linear-gradient(90deg, #030d14f5 3%, #030d14dc 22%, #030d1487 37%, transparent 54%);
}

.hero-inner { padding-block: clamp(3.6rem, 5.25vw, 6.5rem); }
.hero-copy { max-width: min(49%, 38rem); }
h1, h2, h3 { font-weight: 700; }
.hero h1 {
  margin-inline-start: -.042em;
  font-size: clamp(4rem, 7.6vw, 8rem);
  letter-spacing: -.072em;
  line-height: .97;
}
.hero h1 span { display: block; color: var(--aqua); }
.hero-description {
  max-width: 49ch;
  margin-top: clamp(1.35rem, 2vw, 2rem);
  color: #d5e1e6;
  font-size: clamp(1.08rem, 1.4vw, 1.38rem);
  line-height: 1.5;
  letter-spacing: -.021em;
  text-shadow: 0 1px 4px #020c13, 0 0 10px #020c1380;
  text-wrap: pretty;
}

.hero-description strong { color: var(--white); }
.hero .button { margin-top: clamp(1.5rem, 2.15vw, 2.2rem); }
.hero-note {
  margin: .72rem 0 0 .08rem;
  color: #b3c5cf;
  font-size: .865rem;
  line-height: 1.5;
}

.section-dark { background: var(--panel); }
.infrastructure, .connect, .faq { padding-block: var(--section-space); }
h2 {
  font-size: clamp(2.45rem, 3.65vw, 4.25rem);
  line-height: 1.06;
  letter-spacing: -.057em;
  text-wrap: balance;
}

h3 {
  font-size: clamp(1.24rem, 1.6vw, 1.72rem);
  line-height: 1.22;
  letter-spacing: -.035em;
}

.infrastructure-grid {
  display: grid;
  grid-template-columns: minmax(0, .98fr) minmax(0, 1fr);
  grid-template-areas: "photo heading" "photo benefits";
  column-gap: clamp(2.75rem, 5vw, 6rem);
  row-gap: clamp(1.1rem, 2vw, 2rem);
  align-items: center;
}

.infrastructure h2 { grid-area: heading; align-self: end; }
.equipment {
  grid-area: photo;
  align-self: stretch;
  position: relative;
  min-height: clamp(20rem, 29.8vw, 29rem);
  overflow: hidden;
  background: #10232d;
  border-radius: 1rem;
}

.equipment img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 55% center;
}

.benefits { grid-area: benefits; align-self: start; list-style: none; }
.benefits li {
  display: grid;
  grid-template-columns: 2.6rem 1fr;
  gap: clamp(.95rem, 1.4vw, 1.6rem);
  align-items: start;
  padding-block: clamp(1.15rem, 1.63vw, 1.8rem);
  border-bottom: 1px solid var(--line);
}

.benefits li:first-child { padding-top: .4rem; }
.benefits li:last-child { padding-bottom: .55rem; border-bottom: 0; }
.feature-icon {
  width: clamp(1.8rem, 2.35vw, 2.35rem);
  height: auto;
  aspect-ratio: 1;
  color: var(--aqua);
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.benefits p, .steps p, .answers p {
  font-size: clamp(1rem, 1.12vw, 1.12rem);
  line-height: 1.55;
  letter-spacing: -.015em;
  text-wrap: pretty;
}

.benefits p { max-width: 43ch; margin-top: .35rem; color: var(--muted); }
.benefits p a, .steps p a {
  text-decoration: underline;
  text-underline-offset: .18em;
  text-decoration-thickness: 1px;
}
.benefits p a { color: var(--white); }
.benefits p a:hover { color: var(--aqua); }

.connect {
  color-scheme: light;
  color: var(--ink);
  background: var(--ice);
}

.connect :focus-visible { outline-color: #086b73; }
.connect-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  grid-template-areas: "heading action" "steps steps" "downloads downloads";
  align-items: center;
  gap: clamp(2.5rem, 4.2vw, 4.75rem) 1.5rem;
}

.connect h2 { grid-area: heading; font-size: clamp(2.7rem, 4.9vw, 5.25rem); }
.connect .button { grid-area: action; }
.steps {
  grid-area: steps;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(1.7rem, 3.25vw, 3.75rem);
  list-style: none;
}

.step-number {
  display: flex;
  align-items: center;
  gap: .85rem;
  margin-bottom: 1.2rem;
  color: #385e66;
  font-size: .94rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.step-number::after { content: ""; flex: 1; height: 1px; background: #a7c6ca; }
.steps p { max-width: 32ch; color: #324d56; margin-top: .55rem; }
.steps p a { color: #085762; }
.steps p a:hover { color: var(--ink); }

.downloads {
  grid-area: downloads;
  border-top: 1px solid #a7c6ca;
  padding-top: clamp(1.35rem, 2.25vw, 2rem);
}
.download-links {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: .65rem;
  list-style: none;
  margin-top: 1rem;
}
.download-links a {
  display: grid;
  height: 100%;
  grid-template-columns: minmax(0, 1fr) auto;
  grid-template-areas: "device arrow" "source arrow";
  align-content: center;
  column-gap: .5rem;
  row-gap: .2rem;
  padding: .85rem 1rem;
  border: 1px solid #a7c6ca;
  border-radius: .65rem;
  background: #f1fbfa;
  transition: border-color .18s ease, background-color .18s ease;
}
.download-links a:hover, .download-links a:focus-visible { border-color: #54828a; background: #fff; }
.download-links strong { grid-area: device; font-size: 1rem; line-height: 1.35; }
.download-links small { grid-area: source; color: #36535c; font-size: .85rem; line-height: 1.45; }
.download-links span { grid-area: arrow; align-self: center; font-size: 1.15rem; color: #11626b; }

.faq { background: #0a1721; }
.faq-grid {
  display: grid;
  grid-template-columns: minmax(0, .65fr) minmax(0, 1.35fr);
  gap: clamp(2.5rem, 6vw, 7rem);
  align-items: start;
}

.faq h2 { max-width: 9ch; font-size: clamp(2.65rem, 4.2vw, 4.6rem); }
.answers { border-top: 1px solid var(--line); }
.answers details { border-bottom: 1px solid var(--line); }
summary { cursor: pointer; list-style: none; }
summary::-webkit-details-marker { display: none; }
.answers summary {
  position: relative;
  min-height: 3.45rem;
  padding: 1.22rem 2.35rem 1.22rem 0;
  font-size: clamp(1.12rem, 1.42vw, 1.47rem);
  font-weight: 700;
  letter-spacing: -.025em;
  line-height: 1.4;
}

.answers summary::before, .answers summary::after {
  content: "";
  position: absolute;
  right: .2rem;
  top: 50%;
  width: 1rem;
  height: 2px;
  background: currentColor;
  transform: translateY(-50%);
}

.answers summary::after { transform: translateY(-50%) rotate(90deg); }
.answers details[open] summary, .answers summary:hover { color: var(--aqua); }
.answers details[open] summary::after { display: none; }
.answers p { max-width: 67ch; padding: 0 2.3rem 1.35rem 0; color: var(--muted); }
.answers p a { color: var(--white); text-decoration: underline; text-underline-offset: .16em; }
.answers p a:hover { color: var(--aqua); }

.footer { background: var(--night); border-top: 1px solid var(--line); }
.footer-inner {
  display: flex;
  min-height: 6rem;
  align-items: center;
  gap: clamp(1.5rem, 3.5vw, 4rem);
  padding-block: 1.1rem;
}

.footer .brand { margin-inline-end: auto; }
.footer .brand img { height: 2.23rem; }
.footer nav, .footer-bot { color: #c4d2d9; }
.footer-bot { gap: .5rem; }

@media (max-width: 62rem) {
  .download-links { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (min-width: 36rem) and (max-width: 62rem) {
  .hero::after { background: linear-gradient(90deg, #030d14ef 4%, #030d14c7 30%, #030d1461 44%, transparent 60%); }
}

@media (min-width: 44rem) and (max-width: 62rem) {
  .header-inner { gap: 1.25rem; }
  .desktop-nav { gap: 1.2rem; }
  .hero { min-height: 32.5rem; }
  .infrastructure-grid {
    grid-template-areas: "heading heading" "photo benefits";
    column-gap: 2rem;
    row-gap: 1.7rem;
  }
  .equipment { min-height: 18rem; }
  .benefits li { grid-template-columns: 1.85rem 1fr; }
}

@media (max-width: 43.99rem) {
  :root { --gutter: clamp(1.125rem, 5vw, 2rem); --section-space: clamp(3.25rem, 9vw, 4.25rem); }
  section[id] { scroll-margin-block-start: .5rem; }
  .header-inner {
    min-height: 4.05rem;
    grid-template-columns: 1fr auto auto;
    gap: .62rem;
  }
  .brand img { height: 2.14rem; }
  .desktop-nav { display: none; }
  .header-bot { min-height: 2.63rem; padding: .5rem .8rem; font-size: .87rem; }
  .mobile-menu { display: block; }
  .mobile-menu summary {
    display: grid;
    width: 2.75rem;
    height: 2.75rem;
    place-items: center;
    border-radius: .5rem;
    color: var(--white);
  }
  .mobile-menu summary:hover, .mobile-menu[open] summary { color: var(--aqua); background: #122530; }
  .menu-bars, .menu-bars::after {
    display: block;
    width: 1.22rem;
    height: 2px;
    background: currentColor;
  }
  .menu-bars { transform: translateY(-.18rem); }
  .menu-bars::after { content: ""; transform: translateY(.36rem); }
  .mobile-menu[open] .menu-bars { transform: rotate(45deg); }
  .mobile-menu[open] .menu-bars::after { transform: rotate(90deg); }
  .mobile-menu nav {
    position: absolute;
    top: calc(100% - .16rem);
    right: 0;
    display: grid;
    min-width: min(14.5rem, 100%);
    gap: .15rem;
    padding: .48rem;
    border: 1px solid #374952;
    border-radius: .8rem;
    background: #0a1822;
    box-shadow: 0 .9rem 2rem #0008;
  }
  .mobile-menu nav a { padding: .85rem .9rem; line-height: 1.35; border-radius: .45rem; }
  .mobile-menu nav a:hover { background: #142632; }
}

@media (min-width: 36rem) and (max-width: 43.99rem) {
  .hero { min-height: 29rem; }
  .hero-inner { padding-block: 2.5rem; }
  .hero-copy { max-width: 52%; }
  .hero h1 { font-size: clamp(3rem, 8vw, 3.5rem); }
  .hero-description { margin-top: 1.1rem; font-size: 1rem; }
  .hero .button { gap: .5rem; padding-inline: .85rem; font-size: .92rem; }
}

@media (max-width: 35.99rem) {
  .hero {
    min-height: clamp(38.5rem, calc(100svh - 4.05rem), 47rem);
    /* В вертикальном кадре ступни персонажа находятся на высоте около 0.8 ширины снимка. */
    grid-template-rows: minmax(78vw, 1fr) auto;
    align-items: end;
  }
  .hero-art img {
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: 60% top;
    mask-image: none;
  }
  .hero::after {
    background: linear-gradient(0deg, #020c13 0%, #020c13ee 19%, #020c13a6 40%, transparent 62%);
  }
  .hero-inner { grid-row: 2; padding-block: 1.5rem clamp(1.85rem, 5vw, 2.8rem); }
  .hero-copy { max-width: 27rem; }
  .hero h1 { font-size: clamp(3.6rem, 12.3vw, 5.35rem); }
  .hero-description { max-width: 36ch; margin-top: 1.1rem; font-size: 1.04rem; line-height: 1.47; }
  .hero .button { min-height: 3.2rem; margin-top: 1.3rem; }
  .hero-note { margin-top: .6rem; font-size: .82rem; }
}

@media (max-width: 43.99rem) {
  .infrastructure-grid { grid-template-columns: 1fr; grid-template-areas: "heading" "photo" "benefits"; row-gap: 1.55rem; }
  .equipment { min-height: 0; aspect-ratio: 1.8; border-radius: .8rem; }
  .benefits li { grid-template-columns: 2rem 1fr; gap: 1rem; padding-block: 1.05rem; }
  .benefits li:first-child { padding-top: .15rem; }
  .benefits li:last-child { padding-bottom: 0; }
  .benefits p { margin-top: .3rem; }
  .connect-grid { grid-template-columns: minmax(0, 1fr); grid-template-areas: "heading" "action" "steps" "downloads"; gap: 1.65rem; }
  .connect h2 { font-size: clamp(2.15rem, 9vw, 3.4rem); }
  .steps { grid-template-columns: 1fr; gap: 0; }
  .steps li { position: relative; padding: 0 0 1.3rem 3rem; }
  .steps li:not(:last-child)::before { content: ""; position: absolute; left: .53rem; top: 1.65rem; bottom: .3rem; width: 1px; background: #a7c6ca; }
  .steps li:last-child { padding-bottom: 0; }
  .step-number { position: absolute; left: 0; top: .18rem; margin: 0; }
  .step-number::after { content: none; }
  .steps p { max-width: 40ch; margin-top: .3rem; }

  .faq-grid { grid-template-columns: 1fr; gap: 1.55rem; }
  .faq h2 { max-width: none; }
  .answers summary { padding-block: 1.08rem; }
  .answers p { padding-right: 1.1rem; }
  .footer-inner { display: grid; grid-template-columns: 1fr auto; gap: .65rem 1rem; padding-block: 1.15rem; }
  .footer nav { grid-column: 1 / -1; grid-row: 2; flex-wrap: wrap; gap: 0 1.25rem; }
  .footer nav a { font-size: .88rem; }
  .footer-bot { grid-column: 2; grid-row: 1; }
}

@media (max-width: 30rem) {
  .download-links { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 22.5rem) {
  .hero-art img { height: 90%; }
  .hero h1 { font-size: 3.25rem; }
  .hero .button { gap: .5rem; padding-inline: .9rem; font-size: .92rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}
