:root {
  color-scheme: dark;
  --ink: #edf5fb;
  --muted: #aebed1;
  --line: #203249;
  --mint: #83f2d0;
  --navy: #08101c;
  font-family: system-ui, -apple-system, "Segoe UI", "Microsoft YaHei", sans-serif;
}

* { box-sizing: border-box; }
body {
  margin: 0;
  min-height: 100vh;
  min-height: 100svh;
  display: grid;
  grid-template-rows: auto 1fr auto;
  color: var(--ink);
  background: radial-gradient(ellipse at 73% 23%, #102233, transparent 56%), var(--navy);
}
a, button { font: inherit; color: inherit; }
a { text-decoration: none; }
button { cursor: pointer; }
svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
a:focus-visible, button:focus-visible { outline: 2px solid var(--mint); outline-offset: 4px; }
[hidden] { display: none !important; }
.page-shell { width: min(1152px, calc(100% - 64px)); margin-inline: auto; }

.site-header { min-height: 75px; display: flex; align-items: center; justify-content: space-between; gap: 12px; border-bottom: 1px solid var(--line); }
.brand { display: inline-flex; align-items: center; gap: 10px; font-size: 23px; font-weight: 750; letter-spacing: -.035em; }
.brand img { width: 38px; height: 38px; border-radius: 9px; }
.language-switcher { display: flex; gap: 2px; padding: 3px; border: 1px solid var(--line); border-radius: 8px; background: #0f1d2d; }
.language-switcher button { min-width: 36px; min-height: 30px; padding: 0 6px; border: 0; border-radius: 5px; color: var(--muted); background: transparent; font-size: 12px; }
.language-switcher button:hover { color: var(--ink); }
.language-switcher button.active { color: var(--mint); background: #1a3a3e; font-weight: 700; }

.landing { display: grid; align-content: start; padding-block: 8px 30px; }
.hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  overflow: clip;
  overflow-clip-margin: 6px;
  padding-block: clamp(28px, 4.4vh, 43px) 24px;
}
.hero-copy { position: relative; z-index: 1; max-width: 625px; }
.hero-copy h1 { margin: 0; font-size: clamp(41px, 4.85vw, 69px); line-height: 1.15; font-weight: 750; letter-spacing: -.035em; }
html:is([lang="en"], [lang="ru"]) .hero-copy h1 { font-size: clamp(37px, 4.25vw, 62px); }
.hero-copy h1 > span { display: block; }
.hero-accent { margin-top: .19em; color: var(--mint); font-size: .82em; }
html[lang="ru"] .hero-accent { font-size: .76em; }
.hero-description { max-width: 450px; margin: 19px 0 0; color: var(--muted); font-size: clamp(15px, 1.3vw, 18px); line-height: 1.75; white-space: pre-line; text-wrap: pretty; }

.network-visual {
  position: absolute;
  inset: 46% -36px auto auto;
  width: min(77%, 840px);
  aspect-ratio: 606 / 426;
  transform: translateY(-50%);
  pointer-events: none;
  opacity: .91;
  mask-image: radial-gradient(ellipse 60% 50% at 54% 48%, #000 44%, #000d 66%, transparent 100%),
    linear-gradient(transparent 12%, #000 28%, #000 71%, transparent 90%);
  mask-composite: intersect;
}
.network-visual::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(#263e50 1px, transparent 1px) center / 34px 34px,
    linear-gradient(90deg, #263e50 1px, transparent 1px) center / 34px 34px;
  opacity: .25;
}
.network-visual canvas { position: absolute; inset: 0; width: 100%; height: 100%; }

.trial-offer {
  max-width: 466px;
  margin-top: 21px;
  padding: 14px 17px 13px;
  border: 1px solid #a0fae0;
  border-radius: 14px;
  color: #0b2d32;
  background: radial-gradient(ellipse at 104% 115%, #67dbd3 0, transparent 67%),
    linear-gradient(104deg, #b2f7df 0%, #92efd4 60%, #78e7d2 100%);
}
.trial-offer h2 {
  margin: 0;
  font-size: 19px;
  font-weight: 760;
  line-height: 1.2;
  letter-spacing: -.02em;
}
.trial-allowance { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 16px; margin-top: 4px; }
.trial-amount {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 3px 6px;
  max-width: 100%;
  font-size: 14px;
  font-weight: 700;
  line-height: 1;
}
.trial-amount + .trial-amount { padding-inline-start: 16px; border-inline-start: 1px solid #0d434a47; }
.trial-value {
  min-width: 0;
  font-size: clamp(33px, 3.25vw, 44px);
  font-weight: 780;
  font-variant-numeric: tabular-nums;
  letter-spacing: -.04em;
  overflow-wrap: anywhere;
}
.trial-offer:not([hidden]) + .downloads { margin-top: 12px; }

.downloads { max-width: 466px; margin-top: 25px; scroll-margin-top: 18px; }
.downloads h2 { position: absolute; width: 1px; height: 1px; margin: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.download-list { display: grid; gap: 11px; }
.download-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 12px;
  padding: 15px 16px;
  border: 1px solid #24364b;
  border-radius: 15px;
  background: linear-gradient(125deg, #122136, #0e1a2c 80%);
}
.platform-heading { display: flex; align-items: center; gap: 12px; }
.platform-icon { display: grid; flex: 0 0 40px; place-items: center; height: 40px; border-radius: 9px; }
.platform-icon img { display: block; object-fit: contain; }
.platform-icon--windows { background: #162a40; }
.platform-icon--windows img { width: 22px; height: 22px; }
.platform-icon--android { background: #173036; }
.platform-icon--android img { width: 29px; height: 22px; }
.platform-heading h3 { margin: 0; font-size: 16px; line-height: 1.2; font-weight: 700; }
.platform-description { margin: 4px 0 0; color: #9bafc4; font-size: 12px; line-height: 1.3; }
.file-type {
  flex-shrink: 0;
  margin-inline-start: auto;
  padding: 4px 6px;
  border: 1px solid #2a3d53;
  border-radius: 5px;
  color: #99b0c6;
  font: 10px/1.2 ui-monospace, Consolas, monospace;
}
.download-actions { display: flex; align-items: center; gap: 14px; }
.download-action {
  display: inline-flex;
  flex: 1;
  justify-content: center;
  align-items: center;
  gap: 8px;
  min-width: 0;
  min-height: 40px;
  padding: 6px 10px;
  border: 1px solid #2a4a62;
  border-radius: 8px;
  color: var(--ink);
  background: #14273c;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.25;
  text-align: center;
}
.download-action svg { width: 15px; height: 15px; flex-shrink: 0; }
.download-action:hover { border-color: #558691; background: #1b3348; }
.download-action--primary { border-color: var(--mint); color: #082b28; background: var(--mint); }
.download-action--primary:hover { border-color: #a6f9de; background: #a6f9de; }
.install-help { min-height: 40px; padding: 4px 0; border: 0; color: var(--muted); background: transparent; font-size: 12px; white-space: nowrap; text-underline-offset: 4px; }
.install-help:hover { color: var(--mint); text-decoration: underline; }

.site-footer { min-height: 56px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 4px 16px; border-top: 1px solid var(--line); color: var(--muted); }
.site-footer small { font-size: 12px; }
.footer-links { display: flex; flex-wrap: wrap; gap: 0 16px; }
.footer-links button { min-height: 36px; padding: 4px 0; border: 0; color: var(--muted); background: transparent; font-size: 12px; }
.footer-links button:hover { color: var(--mint); }

.install-dialog { width: min(440px, calc(100% - 32px)); max-height: calc(100svh - 40px); padding: 26px; border: 1px solid rgba(145, 189, 226, .25); border-radius: 20px; color: var(--ink); background: #0c1b2e; box-shadow: 0 24px 100px rgba(0, 0, 0, .5); }
.install-dialog::backdrop { background: rgba(0, 7, 18, .75); backdrop-filter: blur(6px); }
.dialog-heading { display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.dialog-heading h2 { margin: 0; font-size: 20px; }
.dialog-close { width: 32px; height: 32px; padding: 0; border: 1px solid var(--line); border-radius: 8px; color: var(--muted); background: transparent; font-size: 24px; }
.install-dialog h3 { margin: 24px 0 10px; color: var(--mint); font-size: 15px; }
.install-dialog section p { margin: 0; color: #a9bad0; font-size: 14px; line-height: 1.8; }
.dialog-done { width: 100%; min-height: 42px; margin-top: 24px; border: 0; border-radius: 8px; color: #082522; background: var(--mint); font-weight: 650; }
.info-dialog { width: min(640px, calc(100% - 32px)); }
.info-dialog[open] { display: grid; grid-template-rows: auto minmax(0, 1fr) auto; gap: 18px; }
.info-dialog .dialog-heading h2 { font-size: 20px; line-height: 1.4; }
.info-dialog .dialog-close { flex-shrink: 0; }
.dialog-body { min-height: 0; overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; scrollbar-color: #3f607f transparent; padding-right: 10px; }
.dialog-body p { margin: 0; color: #a9bad0; font-size: 13px; line-height: 1.8; }
.info-dialog .dialog-body h3 { margin: 22px 0 8px; font-size: 14px; }
.info-dialog .dialog-body section p { font-size: 13px; }
.info-dialog .dialog-body .asset-credit { margin-top: 10px; font-size: 11px; }
.asset-credit a { color: var(--mint); text-decoration: underline; text-underline-offset: 3px; overflow-wrap: anywhere; }
.dialog-body .policy-date { margin-bottom: 14px; color: #718aa5; font-size: 11px; }
.info-dialog .dialog-done { margin-top: 0; }
.contact-steps { display: grid; gap: 12px; padding-left: 22px; margin: 20px 0; color: var(--ink); font-size: 14px; line-height: 1.6; }
.contact-steps li::marker { color: var(--mint); font-weight: 650; }
.dialog-body .contact-note { margin-top: 18px; color: #8b9fb7; font-size: 12px; }
.dialog-download { display: inline-flex; align-items: center; min-height: 36px; margin-top: 16px; color: var(--mint); font-size: 13px; text-decoration: underline; text-underline-offset: 4px; }


@media (max-width: 1000px) {
  .page-shell { width: calc(100% - 48px); }
}

@media (max-width: 760px) {
  .page-shell { width: min(520px, calc(100% - 44px)); }
  .site-header { min-height: 65px; }
  .brand { font-size: 20px; }
  .brand img { width: 33px; height: 33px; }
  .language-switcher button { min-width: 33px; }
  .landing { padding-block: 12px 28px; }
  .hero { padding-block: 19px 13px; }
  .hero-copy h1 { font-size: clamp(32px, 10.1vw, 43px); }
  html:is([lang="en"], [lang="ru"]) .hero-copy h1 { font-size: clamp(27px, 8vw, 42px); }
  .hero-description { margin-top: 15px; font-size: 14px; line-height: 1.7; }
  .network-visual {
    inset: 117px -114px auto auto;
    width: min(117vw, 545px);
    opacity: .62;
    mask-image: radial-gradient(ellipse 63% 49% at 54% 49%, #000 45%, transparent 100%),
      linear-gradient(90deg, transparent 11%, #0007 38%, #000 57%, #000 65%, transparent 79%),
      linear-gradient(transparent 11%, #000 26%, #000 73%, transparent 94%);
  }
  .trial-offer { max-width: none; margin-top: 16px; padding: 12px 13px; }
  .trial-offer h2 { font-size: 17px; }
  .trial-allowance { gap: 4px 13px; }
  .trial-amount { font-size: 13px; }
  .trial-amount + .trial-amount { padding-inline-start: 13px; }
  .trial-value { font-size: 37px; }
  .trial-offer:not([hidden]) + .downloads { margin-top: 10px; }
  .downloads { max-width: 100%; margin-top: 22px; }
  .download-card { gap: 10px; padding: 12px; border-radius: 13px; }
  .platform-icon { flex-basis: 37px; height: 37px; }
  .download-actions { gap: 11px; }
  .download-action { font-size: 12px; }
  .site-footer { padding-block: 4px; }
  .site-footer small, .footer-links button { font-size: 11px; }
  .footer-links { gap: 0 10px; }
  .info-dialog { padding: 20px; }
  .info-dialog[open] { gap: 14px; }
  .info-dialog .dialog-heading h2 { font-size: 18px; }
}

@media (max-width: 350px) {
  .trial-value { font-size: 33px; }
}
