:root {
  --bg: #080c14;
  --bg-elev: #0e1522;
  --text: #e8f0ff;
  --muted: #9eb4d9;
  --line: rgba(120, 170, 230, 0.22);
  --color-border: rgba(120, 170, 230, 0.22);
  --card: rgba(14, 22, 38, 0.82);
  --accent: #3de8ff;
  --accent-2: #4a7cff;
  --focus: #7ce8ff;
  --shadow: 0 12px 28px rgba(0, 0, 0, 0.32);
  --shadow-soft: 0 10px 22px rgba(0, 0, 0, 0.26);
  --r-sm: 10px;
  --r-md: 14px;
  --r-lg: 18px;
  --radius-xl: 18px;
  --s-1: 0.5rem;
  --s-2: 0.75rem;
  --s-3: 1rem;
  --s-4: 1.5rem;
  --s-5: 2rem;
  --s-6: 2.8rem;
  --max: 1120px;
  --font: system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
}
* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--text);
  background: radial-gradient(circle at 92% 0%, rgba(61, 232, 255, 0.1), transparent 36%),
    radial-gradient(circle at 6% -8%, rgba(74, 124, 255, 0.14), transparent 42%),
    var(--bg);
  line-height: 1.6;
}
a { color: var(--accent); text-decoration: none; }
a:hover { color: #8af0ff; }
.container { width: min(100% - 1.5rem, var(--max)); margin-inline: auto; }
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(5, 10, 22, 0.92);
  border-bottom: 1px solid rgba(100, 150, 240, 0.12);
  backdrop-filter: blur(10px);
}
.container.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  min-height: 64px;
  padding: 0.75rem 0;
  flex-wrap: nowrap;
}
.site-header .brand {
  flex: 1 1 auto;
  min-width: 0;
  max-width: min(46%, 12.5rem);
  color: #f4f7ff;
  font-weight: 800;
  font-size: clamp(0.72rem, 2.8vw, 1rem);
  line-height: 1.12;
  text-decoration: none;
  letter-spacing: -0.02em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.site-header .brand:hover,
.site-header .brand:focus-visible { color: #f4f7ff; }
.brand span { color: var(--accent); }
.header-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: nowrap;
  gap: 0.28rem;
  flex: 0 0 auto;
  min-width: 0;
}
.header-btn {
  appearance: none;
  box-sizing: border-box;
  border-radius: 0.78rem;
  height: 36px;
  min-height: 36px;
  padding: 0 0.48rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  white-space: nowrap;
  text-decoration: none;
  font-family: inherit;
  font-size: clamp(0.62rem, 2.1vw, 0.78rem);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.02em;
  cursor: pointer;
  flex-shrink: 0;
  border: 1px solid transparent;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.22);
  transition: background-color 0.18s ease, border-color 0.18s ease, transform 0.18s ease, filter 0.18s ease;
}
.header-btn:hover,
.header-btn:focus-visible { transform: translateY(-1px); }
.header-btn--apk {
  color: #ecfeff;
  background: linear-gradient(135deg, rgba(18, 185, 220, 0.92), rgba(32, 200, 228, 0.78));
  border-color: rgba(100, 230, 250, 0.42);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.24), 0 0 0 1px rgba(61, 232, 255, 0.12);
}
.header-btn--apk:hover,
.header-btn--apk:focus-visible {
  color: #ecfeff;
  filter: brightness(1.06);
  border-color: rgba(130, 240, 255, 0.5);
}
.header-btn--bonus {
  color: #f6f8ff;
  background: linear-gradient(135deg, rgba(72, 88, 210, 0.94), rgba(95, 118, 235, 0.82));
  border-color: rgba(160, 175, 255, 0.38);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.22), 0 0 0 1px rgba(130, 150, 255, 0.1);
}
.header-btn--bonus:hover,
.header-btn--bonus:focus-visible {
  color: #f6f8ff;
  filter: brightness(1.05);
  border-color: rgba(180, 195, 255, 0.48);
}
.header-btn--menu {
  color: #f4f7ff;
  background: rgba(14, 22, 40, 0.82);
  border-color: rgba(130, 170, 255, 0.28);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}
.header-btn--menu:hover,
.header-btn--menu:focus-visible {
  color: #f4f7ff;
  background: rgba(20, 32, 54, 0.92);
  border-color: rgba(160, 190, 255, 0.36);
}
.header-btn__label-wide { display: none; }
.header-btn__label-narrow { display: inline; }
@media (min-width: 400px) {
  .header-btn { padding: 0 0.52rem; height: 38px; min-height: 38px; font-size: 0.72rem; }
  .site-header .brand { max-width: min(44%, 11rem); }
}
@media (min-width: 480px) {
  .header-actions { gap: 0.38rem; }
  .header-btn { padding: 0 0.58rem; font-size: 0.76rem; }
  .site-header .brand { max-width: min(48%, 13rem); }
}
@media (min-width: 520px) {
  .header-btn__label-wide { display: inline; }
  .header-btn__label-narrow { display: none; }
  .header-btn { padding: 0 0.62rem; font-size: 0.78rem; }
  .header-actions { gap: 0.42rem; }
}
.menu-toggle { font: inherit; }
.site-header__nav {
  width: min(100% - 1.5rem, var(--max));
  margin-inline: auto;
}
.site-header__nav .nav {
  display: none;
  width: 100%;
  margin: 0;
  padding: 0;
  border: none;
  background: transparent;
}
.site-header__nav .nav.open {
  display: block;
  margin-top: 0.65rem;
  margin-bottom: 0.6rem;
  padding: 0.6rem 0.7rem;
  border: 1px solid rgba(120, 160, 255, 0.14);
  border-radius: 0.9rem;
  background: rgba(6, 12, 26, 0.9);
  backdrop-filter: blur(10px);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.24);
}
.nav ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 0.35rem; }
.nav a {
  display: flex;
  align-items: center;
  min-height: 2.75rem;
  padding: 0.5rem 0.65rem;
  border-radius: var(--r-sm);
  color: var(--text);
  text-decoration: none;
}
.nav a:hover { color: var(--text); }
.nav a.active,
.nav a:hover { background: rgba(74, 124, 255, 0.22); }
main { padding: var(--s-5) 0 var(--s-6); }
h1, h2, h3 { margin-top: 0; line-height: 1.22; }
h1 { font-size: clamp(1.65rem, 3.6vw, 2.28rem); margin-bottom: 0.75rem; }
h2 { font-size: clamp(1.15rem, 2.4vw, 1.58rem); margin-bottom: 0.6rem; }
h3 { font-size: 1.05rem; margin-bottom: 0.45rem; }
p { margin-top: 0; color: var(--muted); }
p + p { margin-top: 0.65rem; }
.hero, .card, .cta, .trust-strip, .apk-strip {
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: var(--card);
  box-shadow: var(--shadow);
}
.hero {
  padding: var(--s-5);
  background: linear-gradient(158deg, rgba(18, 30, 52, 0.92), rgba(10, 16, 28, 0.92));
}
.hero--home .badge { margin-bottom: var(--s-3); }
.hero--home h1 {
  margin-bottom: 0.85rem;
  line-height: 1.16;
  letter-spacing: -0.025em;
}
.hero-lead {
  max-width: 38rem;
  margin-bottom: 0;
  line-height: 1.58;
  font-size: clamp(0.94rem, 2.4vw, 1.02rem);
}
.hero--home .hero-image-card { margin-top: var(--s-5); }
.hero-micro {
  margin: var(--s-3) 0 0;
  max-width: 36rem;
  margin-inline: auto;
  text-align: center;
  font-size: 0.82rem;
  line-height: 1.45;
  color: #8fa6cc;
}
@media (max-width: 639px) {
  main { padding-top: var(--s-4); }
  .container.header-inner {
    gap: 0.34rem;
    padding: 0.52rem 0;
    min-height: 52px;
  }
  .header-actions { gap: 0.2rem; }
  .header-btn { padding: 0 0.38rem; }
  .site-header .brand {
    max-width: min(36vw, 8.75rem);
    font-size: clamp(0.65rem, 3.4vw, 0.78rem);
  }
  .hero.hero--home {
    padding: 1.2rem 0.95rem 1.35rem;
  }
  .hero--home .badge {
    margin-top: 0.05rem;
    margin-bottom: 0.65rem;
  }
  .hero--home h1 {
    margin-bottom: 0.5rem;
    font-size: clamp(1.38rem, 5.2vw + 0.45rem, 1.72rem);
    line-height: 1.2;
    letter-spacing: -0.028em;
  }
  .hero--home .hero-lead {
    max-width: 100%;
    margin-bottom: 0;
    line-height: 1.52;
    font-size: 0.93rem;
  }
  .hero--home .hero-image-card {
    margin-top: 1.25rem;
  }
  .hero--home .hero-micro {
    margin-top: 0.6rem;
    font-size: 0.78rem;
    line-height: 1.42;
    padding-inline: 0.2rem;
  }
}
@media (max-width: 380px) {
  .container.header-inner { gap: 0.28rem; padding: 0.48rem 0; }
  .header-actions { gap: 0.16rem; }
  .header-btn { padding: 0 0.32rem; }
  .site-header .brand {
    max-width: min(34vw, 8rem);
    font-size: 0.63rem;
  }
}
.hero--compact {
  padding: var(--s-4);
}
.hero--compact h1 { margin-bottom: 0.5rem; }
.hero-image-card {
  position: relative;
  margin: var(--s-4) 0 0;
  max-width: 100%;
  overflow: hidden;
  border-radius: var(--r-lg);
  border: 1px solid rgba(120, 170, 230, 0.2);
  aspect-ratio: 1200 / 675;
  background: var(--bg-elev);
}
.hero-image-card img {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.badge {
  display: inline-block;
  margin-bottom: var(--s-2);
  border: 1px solid rgba(61, 232, 255, 0.38);
  border-radius: 999px;
  padding: 0.22rem 0.62rem;
  color: #b5f6ff;
  font-size: 0.76rem;
}
.section { margin-top: var(--s-5); }
.card-grid { display: grid; gap: var(--s-3); }
.compare-grid { display: grid; gap: var(--s-3); }
.card { padding: var(--s-4); border-radius: var(--r-md); }
.card > p,
.trust-strip > p,
.apk-strip > p { max-width: 68ch; }
.compare-table {
  width: 100%;
  border-collapse: collapse;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  overflow: hidden;
}
.compare-table th,
.compare-table td {
  padding: 0.7rem;
  text-align: left;
  border-bottom: 1px solid var(--line);
  font-size: 0.94rem;
  color: var(--muted);
}
.compare-table th {
  background: rgba(74, 124, 255, 0.14);
  color: var(--text);
}
.compare-table td strong { color: var(--text); }
.cta, .trust-strip, .apk-strip { padding: var(--s-4); }
.trust-strip {
  background: linear-gradient(148deg, rgba(12, 28, 48, 0.92), rgba(10, 18, 32, 0.92));
}
.cta {
  background: linear-gradient(152deg, rgba(14, 32, 56, 0.88), rgba(11, 20, 36, 0.92));
}
.apk-strip { background: linear-gradient(145deg, rgba(10, 26, 44, 0.92), rgba(8, 16, 28, 0.92)); }
.btn {
  display: inline-flex;
  margin-top: var(--s-2);
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 0.6rem 0.95rem;
  color: #fff;
  font-weight: 650;
  border: 1px solid rgba(74, 124, 255, 0.48);
  background: linear-gradient(118deg, var(--accent-2), #2f56d4);
}
.read-next ul,
.quick-links {
  margin: var(--s-2) 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.45rem;
}
.read-next a,
.quick-links a {
  display: flex;
  align-items: center;
  min-height: 2.75rem;
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  padding: 0.6rem 0.75rem;
  color: var(--text);
  background: rgba(14, 22, 36, 0.65);
}
.faq-item {
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  margin-bottom: 0.65rem;
  background: rgba(12, 20, 34, 0.82);
}
.faq-question { margin: 0; }
.faq-button {
  width: 100%;
  text-align: left;
  background: transparent;
  border: 0;
  color: var(--text);
  padding: 0.85rem 0.75rem;
  font: inherit;
  cursor: pointer;
  min-height: 2.75rem;
  display: flex;
  align-items: center;
}
.faq-answer { display: none; padding: 0 0.75rem 1rem; color: var(--muted); font-size: 0.95rem; line-height: 1.55; }
.faq-answer p { margin: 0; }
.faq-item.open .faq-answer { display: block; }
.site-footer {
  border-top: 1px solid var(--line);
  padding: 1.2rem 0 1.75rem;
  margin-top: var(--s-5);
}
.muted-note { color: #8ca3cc; font-size: 0.9rem; }
.steps-list {
  margin: 0;
  padding-left: 1.25rem;
  color: var(--muted);
}
.steps-list li { margin-bottom: 0.5rem; }
.steps-list li:last-child { margin-bottom: 0; }
.list-disc {
  list-style: disc;
  margin: 0;
  padding-left: 1.25rem;
  color: var(--muted);
}
.list-disc li { margin-bottom: 0.45rem; }
.note-tight { margin: 0; font-size: 0.92rem; color: var(--muted); }
.comparison-card h3 { color: var(--text); }
button:focus-visible,
a:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 2px;
}
button.header-btn:focus-visible,
a.header-btn:focus-visible {
  outline: 2px solid rgba(120, 220, 255, 0.85);
  outline-offset: 2px;
}
@media (min-width: 768px) {
  .site-header .brand {
    max-width: none;
    overflow: visible;
    text-overflow: clip;
    font-size: 1rem;
  }
  .site-header__nav .nav {
    display: block;
    margin-top: 0;
    margin-bottom: 0;
    padding: 0.45rem 0 var(--s-2);
    border: none;
    border-radius: 0;
    border-top: 1px solid rgba(120, 160, 255, 0.1);
    background: transparent;
    box-shadow: none;
    backdrop-filter: none;
  }
  .site-header__nav .nav.open {
    margin-top: 0;
    margin-bottom: 0;
    padding: 0.45rem 0 var(--s-2);
    border: none;
    border-top: 1px solid rgba(120, 160, 255, 0.1);
    border-radius: 0;
    background: transparent;
    box-shadow: none;
  }
  .nav ul {
    display: flex;
    flex-wrap: wrap;
    gap: 0.2rem;
    align-items: center;
  }
  .nav a {
    min-height: unset;
    display: inline-flex;
    padding: 0.4rem 0.58rem;
  }
  .card-grid.cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .card-grid.cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .quick-links { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .compare-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
