/* Base */
:root {
  --bg: #05080d;
  --surface: #0b1119;
  --surface-soft: #101b28;
  --ink: #eef7ff;
  --muted: #9fb2c8;
  --line: rgba(54, 147, 255, 0.26);
  --navy: #2d8cff;
  --navy-dark: #07101a;
  --amber: #2d8cff;
  --amber-soft: rgba(45, 140, 255, 0.14);
  --green: #2fe66d;
  --green-soft: rgba(47, 230, 109, 0.12);
  --coral: #45a7ff;
  --shadow: 0 18px 45px rgba(0, 0, 0, 0.35), 0 0 0 1px rgba(47, 230, 109, 0.03);
  --radius: 6px;
  color-scheme: dark;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background:
    radial-gradient(circle at 12% 12%, rgba(45, 140, 255, 0.22), transparent 34%),
    radial-gradient(circle at 82% 8%, rgba(47, 230, 109, 0.14), transparent 30%),
    linear-gradient(180deg, #05080d 0%, #07101a 44%, #05080d 100%);
  color: var(--ink);
  font-family: Arial, "Helvetica Neue", sans-serif;
  font-size: 16px;
  line-height: 1.65;
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

code {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  border: 1px solid rgba(47, 230, 109, 0.42);
  border-radius: 4px;
  background: var(--amber-soft);
  color: var(--green);
  font-family: "Courier New", monospace;
  font-weight: 700;
  padding: 0 8px;
}

button,
input {
  font: inherit;
}

.container {
  width: min(1160px, calc(100% - 32px));
  margin-inline: auto;
}

.article-narrow {
  width: min(880px, calc(100% - 32px));
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid var(--line);
  background: rgba(5, 8, 13, 0.94);
  backdrop-filter: blur(10px);
}

.header-inner {
  display: grid;
  grid-template-columns: auto 1fr auto auto;
  gap: 18px;
  align-items: center;
  width: min(1240px, calc(100% - 32px));
  min-height: 72px;
  margin-inline: auto;
}

.brand-link {
  display: inline-flex;
  gap: 10px;
  align-items: center;
  min-width: 220px;
}

.brand-mark {
  width: 56px;
  height: 56px;
  border: 1px solid rgba(45, 140, 255, 0.55);
  border-radius: 6px;
  object-fit: cover;
}

.brand-text {
  color: #ffffff;
  font-size: 18px;
  font-weight: 900;
  letter-spacing: 0;
  line-height: 1.05;
  white-space: nowrap;
}

.desktop-nav {
  display: flex;
  gap: 4px;
  justify-content: center;
  align-items: center;
}

.nav-link {
  min-height: 38px;
  border-radius: 4px;
  color: var(--navy);
  font-size: 14px;
  font-weight: 700;
  padding: 8px 10px;
}

.nav-link:hover,
.nav-link.is-active {
  background: rgba(45, 140, 255, 0.15);
  color: var(--green);
}

.header-cta,
.mobile-nav-cta,
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  border-radius: 4px;
  border: 1px solid transparent;
  font-weight: 800;
  line-height: 1.2;
  padding: 10px 16px;
}

.header-cta,
.button-primary {
  border-color: rgba(47, 230, 109, 0.38);
  background: linear-gradient(135deg, #1d7dff 0%, #0a4fb3 100%);
  color: #ffffff;
}

.header-cta:hover,
.button-primary:hover {
  background: linear-gradient(135deg, #2fe66d 0%, #178a43 100%);
  color: #06100b;
}

.button-secondary {
  border-color: var(--navy);
  background: rgba(45, 140, 255, 0.08);
  color: #dceeff;
}

.button-secondary:hover {
  border-color: var(--green);
  color: var(--green);
}

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: var(--surface);
  padding: 9px;
}

.menu-toggle-line {
  display: block;
  width: 100%;
  height: 2px;
  margin: 5px 0;
  background: var(--green);
}

.mobile-nav {
  display: none;
  border-top: 1px solid var(--line);
  background: rgba(5, 8, 13, 0.98);
  padding: 10px 16px 16px;
}

.mobile-nav.is-open {
  display: grid;
  gap: 8px;
}

.mobile-nav-link {
  border-radius: 4px;
  color: var(--navy);
  font-weight: 700;
  padding: 10px 12px;
}

.mobile-nav-link.is-active {
  background: rgba(45, 140, 255, 0.15);
  color: var(--green);
}

.mobile-nav-cta {
  background: var(--green);
  color: #041008;
}

/* Main Layout */
.site-main {
  min-height: 70vh;
}

.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  color: var(--muted);
  font-size: 14px;
  padding: 22px 0 0;
}

.breadcrumbs a {
  color: var(--green);
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.breadcrumbs span + span::before,
.breadcrumbs a + span::before {
  content: "/";
  margin-right: 8px;
  color: #4b6b93;
}

.hero-section {
  padding: 34px 0 54px;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(320px, 0.65fr);
  gap: 28px;
  align-items: stretch;
}

.hero-grid > *,
.two-column > *,
.apk-grid > * {
  min-width: 0;
}

.hero-copy,
.hero-dossier,
.topic-card,
.plain-card,
.quick-card,
.review-card,
.info-panel {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    linear-gradient(180deg, rgba(16, 27, 40, 0.96), rgba(8, 14, 22, 0.96)),
    var(--surface);
  box-shadow: var(--shadow);
}

.hero-copy {
  padding: 36px;
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--green);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2,
h3,
h4 {
  margin: 0;
  color: #f5fbff;
  line-height: 1.18;
  letter-spacing: 0;
}

h1 {
  max-width: 900px;
  font-size: 42px;
}

h2 {
  font-size: 30px;
}

h3 {
  font-size: 21px;
}

h4 {
  font-size: 18px;
}

.hero-lead {
  max-width: 760px;
  color: #c9d8e8;
  font-size: 19px;
  margin: 20px 0 0;
}

.hero-note {
  border-left: 4px solid var(--green);
  color: var(--muted);
  margin: 22px 0 0;
  padding-left: 16px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 26px;
}

.hero-logo-panel {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 170px;
  border: 1px solid rgba(45, 140, 255, 0.34);
  border-radius: var(--radius);
  background:
    radial-gradient(circle at 50% 45%, rgba(47, 230, 109, 0.18), transparent 34%),
    linear-gradient(135deg, rgba(45, 140, 255, 0.08), rgba(5, 8, 13, 0.64));
  margin-top: 14px;
  overflow: hidden;
  padding: 18px;
}

.hero-logo-panel img {
  width: min(176px, 48%);
  aspect-ratio: 1;
  border: 1px solid rgba(45, 140, 255, 0.58);
  border-radius: 8px;
  box-shadow: 0 18px 42px rgba(45, 140, 255, 0.18), 0 0 28px rgba(47, 230, 109, 0.12);
  object-fit: cover;
}

.hero-dossier {
  padding: 24px;
}

.dossier-header {
  display: flex;
  gap: 12px;
  align-items: center;
  border-bottom: 1px solid var(--line);
  padding-bottom: 16px;
}

.dossier-header img {
  width: 66px;
  height: 66px;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: #05080d;
  object-fit: cover;
  padding: 0;
}

.dossier-header p {
  color: #ffffff;
  font-weight: 900;
  margin: 0;
}

.dossier-header span {
  color: var(--muted);
  font-size: 14px;
}

.fact-list {
  display: grid;
  gap: 10px;
  margin: 18px 0;
}

.fact-list div {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  border-bottom: 1px dashed var(--line);
  padding-bottom: 9px;
}

.fact-list dt {
  color: var(--muted);
}

.fact-list dd {
  color: #ffffff;
  font-weight: 800;
  margin: 0;
  text-align: right;
}

.toc-box {
  display: grid;
  gap: 8px;
  border: 1px solid rgba(47, 230, 109, 0.36);
  border-radius: 4px;
  background: var(--green-soft);
  padding: 14px;
}

.toc-box p {
  color: var(--green);
  font-weight: 900;
  margin: 0;
}

.toc-box a {
  color: var(--navy);
  font-size: 14px;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* Sections */
.content-section {
  padding: 54px 0;
}

.section-ruled {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: rgba(8, 14, 22, 0.72);
}

.section-muted {
  background: var(--surface-soft);
}

.section-heading {
  max-width: 760px;
  margin: 0 auto 28px;
  text-align: center;
}

.section-heading.align-left {
  margin-inline: 0;
  text-align: left;
}

.section-heading p:not(.eyebrow) {
  color: var(--muted);
  margin: 12px 0 0;
}

.advantage-grid,
.payment-grid,
.topic-card-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.number-card {
  min-height: 220px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  padding: 22px;
}

.number-card span {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  border-bottom: 3px solid var(--green);
  color: var(--green);
  font-weight: 900;
}

.number-card h3 {
  margin-top: 18px;
}

.number-card p,
.plain-card p,
.topic-card p,
.quick-card p,
.review-card p,
.info-panel p {
  color: var(--muted);
}

.two-column {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 330px;
  gap: 24px;
  align-items: start;
}

.table-wrap {
  max-width: 100%;
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

table {
  width: 100%;
  min-width: 760px;
  border-collapse: collapse;
}

th,
td {
  border-bottom: 1px solid var(--line);
  padding: 14px 16px;
  text-align: left;
  vertical-align: top;
}

th {
  background: #0b2a4f;
  color: #ffffff;
  font-size: 14px;
}

td {
  color: #d3e2f1;
}

tr:last-child td {
  border-bottom: 0;
}

.compact-table table {
  min-width: 680px;
}

.copy-button {
  min-height: 34px;
  border: 1px solid var(--navy);
  border-radius: 4px;
  background: var(--amber-soft);
  color: #dceeff;
  cursor: pointer;
  font-size: 14px;
  font-weight: 800;
  padding: 6px 10px;
}

.copy-button.is-copied {
  border-color: var(--green);
  background: var(--green-soft);
  color: var(--green);
}

.info-panel {
  position: sticky;
  top: 94px;
  padding: 22px;
}

.text-link {
  display: inline-flex;
  color: var(--green);
  font-weight: 900;
  text-decoration: underline;
  text-underline-offset: 4px;
}

.game-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.game-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

.game-card img {
  display: block;
  width: 100%;
  aspect-ratio: 408 / 546;
  background: #05080d;
  object-fit: contain;
}

.game-card div {
  padding: 18px;
}

.game-card span {
  color: var(--green);
  font-size: 13px;
  font-weight: 800;
}

.game-card p {
  color: var(--muted);
  margin-bottom: 0;
}

.apk-section {
  background: rgba(7, 16, 26, 0.88);
}

.apk-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 32px;
  align-items: center;
}

.check-list,
.topic-card ul,
.article-block ul {
  margin: 18px 0 24px;
  padding-left: 20px;
}

.check-list li,
.topic-card li,
.article-block li {
  margin: 7px 0;
}

.phone-visual {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface-soft);
  padding: 18px;
}

.phone-visual img {
  width: 100%;
  border-radius: 4px;
  aspect-ratio: 1;
  object-fit: cover;
}

.plain-card,
.topic-card,
.quick-card,
.review-card {
  padding: 22px;
}

.payment-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.center-action {
  margin-top: 24px;
  text-align: center;
}

.review-list {
  display: grid;
  gap: 14px;
}

.review-card div {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: baseline;
  justify-content: space-between;
}

.review-card strong {
  color: #ffffff;
}

.review-card time {
  color: var(--muted);
  font-size: 14px;
}

.quick-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.quick-card {
  display: grid;
  min-height: 210px;
  align-content: start;
}

.quick-card a {
  align-self: end;
  color: var(--green);
  font-weight: 900;
  text-decoration: underline;
  text-underline-offset: 4px;
}

.seo-article {
  background: rgba(5, 8, 13, 0.82);
}

.article-block {
  border-bottom: 1px solid var(--line);
  padding: 0 0 28px;
  margin-bottom: 28px;
}

.article-block:last-child {
  border-bottom: 0;
  margin-bottom: 0;
  padding-bottom: 0;
}

.article-block h2,
.article-block h3,
.article-block h4 {
  margin-bottom: 14px;
}

.article-block p {
  color: #c5d5e8;
  margin: 0 0 16px;
}

.faq-list {
  display: grid;
  gap: 10px;
}

.faq-item {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

.faq-item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  min-height: 58px;
  cursor: pointer;
  color: #ffffff;
  font-weight: 900;
  list-style: none;
  padding: 16px 18px;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: "+";
  color: var(--green);
  font-size: 24px;
  line-height: 1;
}

.faq-item[open] summary::after {
  content: "-";
}

.faq-item p {
  border-top: 1px solid var(--line);
  color: var(--muted);
  margin: 0;
  padding: 16px 18px 18px;
}

.responsible-note {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  border: 1px solid rgba(47, 230, 109, 0.3);
  border-radius: var(--radius);
  background: rgba(47, 230, 109, 0.1);
  color: #cceedd;
  margin-top: 24px;
  padding: 16px;
}

.responsible-note strong {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  min-height: 32px;
  border-radius: 4px;
  background: var(--green);
  color: #041008;
}

/* Inner Pages */
.inner-page .breadcrumbs {
  padding-top: 24px;
}

.page-hero {
  padding: 42px 0 24px;
  text-align: center;
}

.page-hero p:not(.eyebrow) {
  color: var(--muted);
  font-size: 18px;
  margin: 18px auto 0;
  max-width: 820px;
}

.page-hero-actions {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-top: 24px;
}

.page-hero-actions .button {
  min-width: 220px;
}

.topic-card-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.topic-card {
  min-height: 250px;
}

.topic-card h2 {
  font-size: 23px;
}

.topic-card a {
  color: var(--green);
  font-weight: 900;
  text-decoration: underline;
  text-underline-offset: 4px;
}

.summary-strip {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  border: 1px solid rgba(47, 230, 109, 0.34);
  border-radius: var(--radius);
  background: var(--green-soft);
  color: #cceedd;
  margin-top: 18px;
  padding: 18px;
}

.summary-strip strong {
  color: var(--green);
  white-space: nowrap;
}

.steps-list {
  counter-reset: step;
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 0;
}

.steps-list li {
  counter-increment: step;
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 14px;
  align-items: start;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  color: #d3e2f1;
  list-style: none;
  padding: 16px;
}

.steps-list li::before {
  content: counter(step);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 4px;
  background: var(--navy);
  color: #ffffff;
  font-weight: 900;
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--line);
  background: #03060a;
  color: #d8e8f8;
}

.footer-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) 220px 220px;
  gap: 36px;
  width: min(1240px, calc(100% - 32px));
  margin-inline: auto;
  padding: 42px 0;
}

.footer-heading {
  color: #ffffff;
  font-weight: 900;
  margin: 0 0 10px;
}

.footer-brand {
  display: inline-flex;
  gap: 12px;
  align-items: center;
  color: #ffffff;
  font-weight: 900;
  margin-bottom: 14px;
}

.footer-logo {
  width: 54px;
  height: 54px;
  border: 1px solid rgba(45, 140, 255, 0.55);
  border-radius: 6px;
  object-fit: cover;
}

.footer-about p {
  margin: 0 0 12px;
}

.footer-muted {
  color: #92a8c2;
  font-size: 14px;
}

.footer-column {
  display: grid;
  align-content: start;
  gap: 9px;
}

.footer-column a {
  color: #d8e2ef;
}

.footer-column a:hover {
  color: var(--green);
}

.footer-license {
  display: grid;
  grid-template-columns: minmax(120px, 190px) minmax(0, 1fr);
  gap: 22px;
  align-items: center;
  width: min(1240px, calc(100% - 32px));
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  margin-inline: auto;
  padding: 24px 0;
}

.footer-license-link {
  display: block;
  max-width: 190px;
  border: 1px solid rgba(45, 140, 255, 0.38);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.04);
  padding: 8px;
}

.footer-license-link:hover {
  border-color: var(--green);
}

.footer-license-image {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 4px;
}

.footer-license-text {
  color: #aebed0;
  font-size: 13px;
  line-height: 1.65;
  margin: 0;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  color: #8fa4bd;
  font-size: 14px;
  text-align: center;
  padding: 18px;
}

/* Responsive */
@media (max-width: 1080px) {
  .desktop-nav {
    display: none;
  }

  .header-inner {
    grid-template-columns: minmax(0, 1fr) auto auto;
    gap: 10px;
  }

  .brand-link {
    min-width: 0;
  }

  .header-cta {
    order: 3;
    display: inline-flex;
    min-height: 42px;
    padding: 9px 12px;
    white-space: nowrap;
  }

  .menu-toggle {
    order: 2;
    display: inline-grid;
    align-content: center;
  }

  .hero-grid,
  .two-column,
  .apk-grid {
    grid-template-columns: 1fr;
  }

  .info-panel {
    position: static;
  }

  .advantage-grid,
  .game-grid,
  .quick-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .container,
  .article-narrow,
  .header-inner,
  .footer-inner {
    width: min(100% - 24px, 1160px);
  }

  .brand-link {
    min-width: auto;
  }

  .brand-text {
    font-size: 18px;
  }

  .header-cta {
    min-width: 86px;
    min-height: 40px;
    padding: 8px 10px;
    font-size: 0;
  }

  .header-cta::after {
    content: "Telegram";
    font-size: 13px;
    font-weight: 900;
  }

  .menu-toggle {
    width: 42px;
    height: 42px;
  }

  .hero-copy,
  .hero-dossier,
  .plain-card,
  .topic-card,
  .quick-card,
  .review-card,
  .info-panel {
    padding: 18px;
  }

  h1 {
    font-size: 32px;
  }

  h2 {
    font-size: 25px;
  }

  .hero-lead,
  .page-hero p:not(.eyebrow) {
    font-size: 17px;
  }

  .hero-logo-panel {
    min-height: 132px;
    margin-top: 18px;
    padding: 14px;
  }

  .hero-logo-panel img {
    width: 118px;
  }

  .advantage-grid,
  .payment-grid,
  .topic-card-grid,
  .game-grid,
  .quick-grid,
  .footer-inner {
    grid-template-columns: 1fr;
  }

  .summary-strip,
  .responsible-note {
    display: grid;
  }

  .summary-strip strong {
    white-space: normal;
  }

  .footer-license {
    grid-template-columns: 1fr;
    gap: 14px;
    width: min(100% - 24px, 1160px);
  }

  .footer-license-link {
    max-width: 180px;
  }
}

@media (max-width: 460px) {
  .header-inner {
    grid-template-columns: minmax(0, 1fr) 42px 82px;
    gap: 7px;
    width: min(100% - 16px, 1160px);
    min-height: 64px;
  }

  .brand-link {
    gap: 8px;
  }

  .brand-mark {
    width: 36px;
    height: 36px;
  }

  .brand-text {
    max-width: 88px;
    font-size: 13px;
    white-space: normal;
  }

  .header-cta {
    min-width: 82px;
  }

  .hero-section {
    padding-top: 24px;
  }

  h1 {
    font-size: 28px;
  }

  .hero-actions {
    display: grid;
  }

  .page-hero-actions {
    display: grid;
  }

  .page-hero-actions .button {
    min-width: 0;
  }

  .hero-logo-panel {
    min-height: 104px;
  }

  .hero-logo-panel img {
    width: 92px;
  }

  .footer-license-link {
    max-width: 150px;
  }

  .button {
    width: 100%;
  }
}
