@font-face {
  font-family: Manrope;
  src: url("assets/manrope-latin.woff2") format("woff2");
  font-weight: 400 800;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: Manrope;
  src: url("assets/manrope-cyrillic.woff2") format("woff2");
  font-weight: 400 800;
  font-display: swap;
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}

:root {
  color-scheme: dark;
  --bg: #10121c;
  --panel: #181b29;
  --line: #303344;
  --text: #f7f5fd;
  --muted: #bbbccc;
  --accent: #ffbe9d;
  --lavender: #c3c5ff;
  --radius: 22px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 500 1rem/1.65 Manrope, system-ui, sans-serif;
}

h1, h2, h3, p, figure { margin: 0; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; }
img { display: block; max-width: 100%; height: auto; }
svg { width: 1.25rem; height: 1.25rem; flex-shrink: 0; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }
[hidden] { display: none !important; }
section[id] { scroll-margin-top: 28px; }

.wrap { width: min(1200px, calc(100% - 80px)); margin-inline: auto; }

.skip-link {
  position: fixed;
  z-index: 5;
  top: 10px;
  left: 10px;
  padding: 8px 14px;
  background: var(--accent);
  color: #21151c;
  border-radius: 8px;
  transform: translateY(-150%);
}
.skip-link:focus { transform: none; }

.site-header {
  position: relative;
  z-index: 1;
  background: #10121c;
  border-bottom: 1px solid #ffffff12;
}

.header-inner {
  min-height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand, .site-nav, .header-actions { display: flex; align-items: center; }
.brand { gap: 11px; font-size: 1.1rem; font-weight: 800; letter-spacing: -.04em; }
.brand img { border-radius: 10px; box-shadow: 0 0 0 1px #ffffff24; }
.site-nav { flex-wrap: wrap; gap: 8px clamp(12px, 2vw, 30px); }
.site-nav a, .header-actions { font-size: .875rem; font-weight: 700; }
.site-nav a, .language { color: var(--muted); }
.site-nav a[aria-current="page"] { color: var(--accent); }
.site-nav a:hover, .language:hover, .text-link:hover, .footer-inner a:hover { color: var(--accent); }
.header-actions { gap: 18px; }
.language { padding: 8px 4px; }

.header-download {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 13px;
  border: 1px solid var(--line);
  border-radius: 9px;
  white-space: nowrap;
}
.header-download svg { width: 1rem; height: 1rem; }
.header-download:hover { border-color: var(--accent); }

.hero {
  position: relative;
  padding: clamp(68px, 8vw, 110px) 0 36px;
  background:
    radial-gradient(ellipse at 78% 32%, #35366a 0%, transparent 56%),
    radial-gradient(ellipse at 83% 67%, #573749 0%, transparent 51%),
    linear-gradient(180deg, #141626, var(--bg));
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, .86fr) minmax(0, 1.14fr);
  align-items: center;
  gap: clamp(24px, 4vw, 58px);
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 9px;
  width: fit-content;
  color: var(--lavender);
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: .105em;
  text-transform: uppercase;
}

.hero .eyebrow {
  padding: 7px 10px;
  border: 1px solid #c3c5ff32;
  border-radius: 7px;
  background: #c3c5ff0d;
}

.status-dot, .hero-tv figcaption i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 10px #ffbe9d66;
  flex: none;
}

h1, h2, h3 { font-weight: 800; }
h1, h2 { line-height: 1.05; letter-spacing: -.059em; }
h1 { margin-top: 23px; font-size: clamp(2.7rem, 4.85vw, 4.75rem); }
h1 span, h2 span { display: block; }
h1 span { color: var(--accent); }
h2 { font-size: clamp(2.4rem, 4.6vw, 4rem); }
h2 span { color: var(--lavender); }

.hero-intro {
  max-width: 39ch;
  margin-top: 23px;
  color: var(--muted);
  font-size: clamp(1rem, 1.4vw, 1.15rem);
}

.download-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 28px;
}

.button, .text-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  width: fit-content;
  font-size: .9rem;
  font-weight: 800;
}
.button { justify-content: center; padding: 13px 18px; border-radius: 10px; }
.button-primary { background: var(--accent); color: #241824; box-shadow: 0 6px 22px #ffaf8a26; }
.button-primary:hover { background: #ffd4bf; }
.button-secondary { box-shadow: inset 0 0 0 1px var(--line); }
.button-secondary:hover { box-shadow: inset 0 0 0 1px var(--accent); }
[data-universal-apk][aria-busy="true"] { cursor: progress; }
.text-link { min-height: 44px; }
.text-link svg { width: 1rem; height: 1rem; }

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 7px 11px;
  margin-top: 16px;
  color: var(--muted);
  font-size: .76rem;
}
.hero-meta span + span::before { content: "·"; margin-right: 11px; color: var(--accent); }
.hero-meta a { text-decoration: underline; text-underline-offset: 3px; }
.hero-meta a:hover { color: var(--accent); }

.hero-tv {
  position: relative;
  isolation: isolate;
  margin-top: 14px;
}

.tv-frame::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: -8px;
  border: 1px solid #c4baf13d;
  border-radius: 23px;
}

.tv-frame {
  position: relative;
  padding: 7px;
  background: linear-gradient(145deg, #bdb6e26b, #151523 35%, #171722 77%, #c3857e6b);
  border: 1px solid #d5ceff4d;
  border-radius: 17px;
  box-shadow: 0 22px 65px #09080ec2;
}
.tv-frame img { width: 100%; border-radius: 10px; }

.hero-tv figcaption {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 4px 12px;
  padding: 12px 1px 0;
  color: var(--muted);
  font-size: .73rem;
  font-weight: 700;
}
.hero-tv figcaption span:first-child { display: flex; align-items: center; gap: 7px; color: #ffdbca; }
.hero-tv figcaption i { width: 5px; height: 5px; }

.highlights {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin-top: clamp(38px, 6.5vw, 88px);
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #181b29c9;
}

.highlight {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 13px;
  padding: 17px 12px;
}
.highlight + .highlight { border-left: 1px solid var(--line); }
.highlight svg { color: var(--lavender); width: 1.45rem; height: 1.45rem; }
.highlight strong, .highlight span { display: block; }
.highlight strong { font-size: .9rem; }
.highlight span { font-size: .75rem; color: var(--muted); }

.section { padding-block: clamp(62px, 8vw, 110px); }
.gallery-section { background: radial-gradient(ellipse at 2% 57%, #1c1c32, transparent 51%); }
.section-head { margin-bottom: 33px; }
.section-label span { color: var(--accent); font-variant-numeric: tabular-nums; }
.section-heading-row {
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  align-items: end;
  gap: 20px 36px;
  margin-top: 16px;
}
.section-heading-row > p, .install-intro > p:not(.eyebrow) { max-width: 40ch; color: var(--muted); }

.gallery {
  display: grid;
  grid-template-columns: minmax(0, 2.55fr) minmax(0, 1fr);
  gap: 16px;
  align-items: start;
}
.gallery-view { overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius); background: var(--panel); }
.gallery-image { position: relative; display: block; }
.gallery-image:focus-visible { outline-offset: -4px; }
.gallery-image img { width: 100%; aspect-ratio: 16 / 9; }
.expand-icon, .lightbox button {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 1px solid #ffffff66;
  border-radius: 9px;
  background: #11121be8;
}
.expand-icon { position: absolute; right: 12px; bottom: 12px; }
.gallery-image:hover .expand-icon, .lightbox button:hover { background: #453b4f; }
.gallery-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 6px 16px;
  min-height: 62px;
  padding: 8px 15px;
}
.gallery-bar p { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0 12px; }
.gallery-bar p span { color: var(--muted); font-size: .85rem; }

.gallery-controls { display: flex; align-items: center; gap: 9px; }
.gallery-controls button {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  padding: 0;
  background: #242738;
  border: 1px solid var(--line);
  border-radius: 8px;
  cursor: pointer;
}
.gallery-controls button:hover { border-color: var(--lavender); }
.gallery-controls button:first-child svg { transform: rotate(180deg); }
.gallery-count { color: var(--muted); font-size: .73rem; font-variant-numeric: tabular-nums; }

.style-options { display: grid; gap: 9px; }
.style-option {
  display: grid;
  grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr);
  align-items: center;
  gap: 12px;
  min-height: 70px;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--panel);
}
.style-option img { width: 100%; border-radius: 6px; }
.style-option strong, .style-option small { display: block; }
.style-option strong { font-size: .9rem; line-height: 1.2; }
.style-option small { margin-top: 4px; color: var(--muted); line-height: 1.4; }
.style-option:hover { border-color: var(--lavender); }
.style-option[aria-current="true"] { border-color: var(--accent); background: #2e2633; }
.shots-note { margin-top: 14px; font-size: .77rem; color: var(--muted); }

.features-section {
  border-block: 1px solid #ffffff12;
  background: linear-gradient(150deg, #171a2b, #11131e 70%);
}
.image-cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.image-card { overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius); background: var(--panel); }
.image-card img { width: 100%; border-bottom: 1px solid var(--line); }
.image-card > div { padding: 21px 24px 24px; }
.image-card h3 { font-size: 1.32rem; letter-spacing: -.028em; line-height: 1.24; }
.image-card p, .feature p, .install-steps p { margin-top: 7px; color: var(--muted); }

.features { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin-top: 16px; }
.feature { padding: 20px; border: 1px solid var(--line); border-radius: 15px; background: #181b29a8; }
.feature-icon { display: grid; place-items: center; width: 39px; height: 39px; margin-bottom: 13px; border-radius: 9px; color: var(--lavender); background: #c3c5ff15; }
.feature:nth-child(even) .feature-icon { color: var(--accent); background: #ffbe9d16; }
.feature h3 { font-size: 1rem; line-height: 1.3; }
.feature p { font-size: .88rem; }

.install-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(28px, 5vw, 76px);
  align-items: center;
  padding: clamp(28px, 5vw, 62px);
  border: 1px solid #51455e;
  border-radius: var(--radius);
  background: radial-gradient(ellipse at top left, #372b42, transparent 72%), #1b1d30;
}
.install-intro h2 { margin-block: 14px; }
.install-intro .download-actions { margin-top: 24px; }
.install-intro .text-link { display: flex; margin-top: 7px; }
.install-steps { list-style: none; padding: 0; margin: 0; counter-reset: step; }
.install-steps li { position: relative; padding: 12px 0 13px 48px; counter-increment: step; }
.install-steps li + li { border-top: 1px solid #ffffff21; }
.install-steps li::before {
  content: counter(step, decimal-leading-zero);
  display: grid;
  place-items: center;
  position: absolute;
  left: 0;
  top: 12px;
  width: 34px;
  height: 34px;
  border: 1px solid #ffbe9d48;
  border-radius: 8px;
  color: var(--accent);
  font-size: .73rem;
  font-weight: 800;
}
.install-steps h3 { font-size: .98rem; }
.install-steps p { font-size: .87rem; }
.install-note { padding-top: 12px; border-top: 1px solid #ffffff21; color: var(--muted); font-size: .76rem; }

.doc-page {
  min-height: 62vh;
  padding-block: clamp(42px, 7vw, 94px);
  background: radial-gradient(ellipse at top, #252644, transparent 460px);
}

.doc-wrap { max-width: 880px; }
.doc-page h1 { font-size: clamp(2.5rem, 6vw, 4.5rem); }
.doc-intro { margin-top: 14px; color: var(--muted); }
.doc-body { margin-top: 30px; overflow-wrap: anywhere; }
.doc-body a { color: var(--lavender); text-decoration: underline; text-underline-offset: 3px; }
.doc-body a:hover { color: var(--accent); }
.doc-body p, .doc-body li { color: var(--muted); }
.doc-body strong { color: var(--text); }
.doc-body ul, .doc-body ol { padding-inline-start: 1.4em; }
.doc-body li + li, .doc-body p + p { margin-top: .55em; }
.doc-release, .doc-question { margin-top: 12px; background: var(--panel); border: 1px solid var(--line); border-radius: 15px; }
.doc-release { padding: clamp(14px, 3vw, 26px); }
.doc-release:first-of-type { border-color: #6a5776; }
.doc-release h2 { color: var(--accent); font-size: clamp(1.18rem, 3vw, 1.55rem); line-height: 1.3; letter-spacing: -.025em; }
.doc-release > :last-child { margin-bottom: 0; }
.doc-question > summary { padding: 14px clamp(14px, 3vw, 22px); font-weight: 800; cursor: pointer; }
.doc-question > summary::marker { color: var(--accent); }
.doc-question[open] { padding-bottom: 15px; }
.doc-question[open] > summary { color: var(--accent); }
.doc-question > :not(summary) { margin-inline: clamp(14px, 3vw, 22px); }

.site-footer { border-top: 1px solid var(--line); }
.footer-inner { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 20px 26px; padding-block: 30px; }
.footer-inner p, .footer-inner nav { color: var(--muted); font-size: .8rem; }
.footer-inner > div > p { margin-top: 8px; }
.footer-inner nav { display: flex; flex-wrap: wrap; gap: 10px 18px; }
.footer-inner nav a { display: inline-flex; align-items: center; gap: 3px; }
.footer-inner nav svg { width: .8rem; height: .8rem; }
.footer-inner > p a { text-decoration: underline; text-underline-offset: 3px; }

.lightbox {
  max-width: min(96vw, 1440px);
  max-height: 96vh;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--bg);
}
.lightbox::backdrop { background: #080911ee; }
.lightbox-body { position: relative; }
.lightbox img { max-height: 92vh; object-fit: contain; }
.lightbox button { position: absolute; z-index: 1; top: 10px; right: 10px; cursor: pointer; }
body:has(.lightbox[open]) { overflow: hidden; }

@media (max-width: 980px) {
  .wrap { width: calc(100% - 56px); }
  .header-inner { gap: 16px; }
  .features { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 860px) {
  .hero { padding-top: 55px; }
  .hero-grid { grid-template-columns: 1fr; gap: 34px; }
  h1 { font-size: clamp(2.85rem, 8.8vw, 4.55rem); }
  .hero-tv { margin-inline: 9px; }
  .hero-intro { max-width: 54ch; }
  .gallery { grid-template-columns: 1fr; }
  .style-options { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .style-option { grid-template-columns: 1fr; gap: 8px; }
}

@media (max-width: 690px) {
  .wrap { width: calc(100% - 36px); }
  .header-inner { flex-wrap: wrap; min-height: auto; gap: 0 10px; padding-top: 10px; }
  .brand img { width: 34px; height: 34px; }
  .brand { font-size: 1rem; gap: 8px; }
  .header-actions { gap: 10px; }
  .header-download { display: none; }
  .site-nav { order: 3; justify-content: space-between; column-gap: 12px; width: 100%; padding-block: 10px; margin-top: 8px; border-top: 1px solid #ffffff12; }
  .site-nav a { font-size: .78rem; }
  .highlights { grid-template-columns: 1fr; }
  .highlight { justify-content: flex-start; padding: 11px 15px; }
  .highlight + .highlight { border-left: 0; border-top: 1px solid var(--line); }
  .section-heading-row, .image-cards, .install-panel { grid-template-columns: 1fr; }
  .image-card > div { padding: 17px 18px 19px; }
  .section-head { margin-bottom: 22px; }
  .style-options { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .style-option { grid-template-columns: minmax(0, .75fr) minmax(0, 1.25fr); }
}

@media (max-width: 400px) {
  .features { grid-template-columns: 1fr; }
  .style-option { grid-template-columns: 1fr; }
  .gallery-bar { padding-inline: 10px; }
}

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