@charset "utf-8";
/* =========================================================================
   LonaRPG RUS Launcher — промо-сайт
   Палитра взята из самих лаунчеров:
   #20001D фон, #F0B121 золото, #916A2C бронза, #8A1900 багровый
   ========================================================================= */

@font-face {
  font-family: "BetterVCR";
  src: url("../fonts/bettervcr.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

:root {
  --bg:            #14000F;
  --bg-2:          #20001D;
  --bg-3:          #2A0A24;
  --panel:         rgba(32, 0, 29, 0.86);
  --panel-solid:   #24041F;
  --line:          rgba(240, 177, 33, 0.22);
  --line-soft:     rgba(240, 177, 33, 0.10);
  --gold:          #F0B121;
  --gold-dim:      #C08F1E;
  --bronze:        #916A2C;
  --crimson:       #8A1900;
  --ember:         #FF6B35;
  --text:          #F3DCA8;
  --text-dim:      #B79A66;
  --white:         #FFF6E2;

  --shadow-hard:   6px 6px 0 rgba(0, 0, 0, 0.55);
  --shadow-soft:   0 18px 50px rgba(0, 0, 0, 0.55);

  --wrap:          1180px;
  --font-pixel:    "BetterVCR", "Courier New", monospace;
  --font-body:     "Segoe UI", "Inter", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
}

/* ------------------------------- base ---------------------------------- */

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 84px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--gold); text-decoration: none; }
code {
  font-family: ui-monospace, "Cascadia Code", Consolas, monospace;
  font-size: 0.88em;
  background: rgba(240, 177, 33, 0.10);
  border: 1px solid var(--line-soft);
  padding: 0.08em 0.36em;
  color: var(--gold);
}

h1, h2, h3, h4 {
  font-family: var(--font-pixel);
  font-weight: 400;
  letter-spacing: 0.02em;
  line-height: 1.15;
  color: var(--white);
  margin: 0 0 0.5em;
}
h2 { font-size: clamp(28px, 4.2vw, 46px); }
h3 { font-size: clamp(18px, 2.2vw, 22px); }
p  { margin: 0 0 1em; }

.wrap { width: min(100% - 40px, var(--wrap)); margin-inline: auto; }
.wrap-narrow { width: min(100% - 40px, 820px); }

.visually-hidden {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap;
}

.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 999;
  background: var(--gold); color: #1B0016; padding: 10px 18px;
  font-family: var(--font-pixel);
}
.skip-link:focus { left: 12px; top: 12px; }

:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }

/* --------------------------- global effects ---------------------------- */

.fx-scanlines {
  position: fixed; inset: 0; z-index: 900; pointer-events: none;
  background: repeating-linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0.16) 0 1px,
    transparent 1px 3px
  );
  opacity: 0.5;
  mix-blend-mode: multiply;
}
.fx-vignette {
  position: fixed; inset: 0; z-index: 899; pointer-events: none;
  background: radial-gradient(120% 80% at 50% 10%, transparent 45%, rgba(0, 0, 0, 0.55) 100%);
}

/* ------------------------------ header --------------------------------- */

.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 800;
  background: rgba(20, 0, 15, 0.55);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid transparent;
  transition: background 0.25s ease, border-color 0.25s ease;
}
.site-header.is-stuck {
  background: rgba(20, 0, 15, 0.94);
  border-bottom-color: var(--line);
}
.header-inner {
  display: flex; align-items: center; gap: 20px;
  height: 68px;
}
.brand { display: flex; align-items: center; gap: 10px; flex: none; }
.brand-mark { image-rendering: pixelated; width: 32px; height: 32px; }
.brand-text {
  font-family: var(--font-pixel); font-size: 15px; color: var(--gold);
  line-height: 1.1; display: flex; flex-direction: column;
}
.brand-sub { font-size: 11px; color: var(--bronze); letter-spacing: 0.16em; }

.site-nav { margin-left: auto; display: flex; align-items: center; gap: 4px; }
.site-nav a {
  font-size: 14px; color: var(--text-dim); padding: 8px 12px;
  border: 1px solid transparent; transition: color 0.18s, border-color 0.18s, background 0.18s;
}
.site-nav a:hover { color: var(--gold); }
.site-nav a.active { color: var(--gold); border-color: var(--line); background: rgba(240, 177, 33, 0.06); }
.site-nav .nav-cta {
  font-family: var(--font-pixel); font-size: 13px;
  color: #1B0016; background: var(--gold); margin-left: 8px;
  border: 1px solid var(--gold); box-shadow: 3px 3px 0 rgba(0, 0, 0, 0.5);
}
.site-nav .nav-cta:hover { background: var(--white); color: #1B0016; }

.nav-toggle {
  display: none; margin-left: auto; width: 42px; height: 38px;
  background: transparent; border: 1px solid var(--line); cursor: pointer;
  flex-direction: column; justify-content: center; align-items: center; gap: 5px;
}
.nav-toggle span { display: block; width: 20px; height: 2px; background: var(--gold); transition: transform 0.2s, opacity 0.2s; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.scroll-progress {
  height: 2px; width: 0%; background: linear-gradient(90deg, var(--crimson), var(--gold));
  transition: width 0.1s linear;
}

/* -------------------------------- hero --------------------------------- */

.hero {
  position: relative; min-height: 100svh;
  display: flex; align-items: center;
  padding: 120px 0 90px;
  overflow: hidden;
}
.hero-bg {
  position: absolute; inset: -6% -2% 0;
  background-image: url("../img/hero-bg.jpg");
  background-size: cover; background-position: center 26%;
  image-rendering: pixelated;
  transform: scale(1.06);
  filter: brightness(0.6) saturate(1.05) contrast(1.04);
  will-change: transform;
}
.hero-fade {
  position: absolute; inset: 0;
  background:
    radial-gradient(58% 46% at 50% 42%, rgba(12, 0, 9, 0.78), rgba(12, 0, 9, 0.25) 62%, transparent 78%),
    linear-gradient(to bottom, rgba(20, 0, 15, 0.55) 0%, rgba(20, 0, 15, 0.28) 26%, rgba(20, 0, 15, 0.72) 74%, var(--bg) 98%),
    radial-gradient(80% 60% at 50% 32%, rgba(255, 107, 53, 0.08), transparent 70%);
}
.hero-inner { position: relative; z-index: 2; text-align: center; }

.eyebrow {
  font-family: var(--font-pixel); font-size: 12px; letter-spacing: 0.28em;
  text-transform: uppercase; color: var(--bronze); margin-bottom: 14px;
}
.hero-title { margin: 0 auto 22px; max-width: 780px; }
.hero-title img {
  image-rendering: pixelated;
  width: 100%; height: auto;
  filter:
    drop-shadow(0 6px 0 rgba(0, 0, 0, 0.55))
    drop-shadow(0 0 26px rgba(12, 0, 9, 0.95))
    drop-shadow(0 0 60px rgba(12, 0, 9, 0.8));
}
.hero-lead {
  max-width: 660px; margin: 0 auto 34px;
  font-size: clamp(16px, 1.6vw, 19px); color: var(--text);
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.8);
}
.hero-lead strong { color: var(--gold); font-weight: 600; }

.hero-actions { display: flex; flex-wrap: wrap; gap: 16px; justify-content: center; }

.btn {
  display: inline-flex; align-items: center; gap: 12px;
  padding: 14px 26px; min-width: 250px;
  border: 1px solid var(--line);
  background: var(--panel);
  box-shadow: var(--shadow-hard);
  color: var(--text);
  transition: transform 0.14s ease, box-shadow 0.14s ease, background 0.18s, border-color 0.18s;
  text-align: left;
}
.btn img { image-rendering: pixelated; flex: none; }
.btn-main { font-family: var(--font-pixel); font-size: 15px; color: var(--white); display: block; }
.btn-sub { display: block; font-size: 12px; color: var(--text-dim); letter-spacing: 0.06em; }
.btn > span { display: block; }
.btn:hover { transform: translate(-2px, -2px); box-shadow: 9px 9px 0 rgba(0, 0, 0, 0.55); border-color: var(--gold); }
.btn:active { transform: translate(2px, 2px); box-shadow: 3px 3px 0 rgba(0, 0, 0, 0.55); }

.btn-primary { background: linear-gradient(180deg, rgba(138, 25, 0, 0.85), rgba(64, 8, 16, 0.9)); border-color: rgba(240, 177, 33, 0.45); }
.btn-secondary { background: linear-gradient(180deg, rgba(42, 10, 36, 0.9), rgba(20, 0, 15, 0.92)); }
.btn-block { width: 100%; justify-content: center; min-width: 0; }

.hero-stats {
  list-style: none; margin: 46px 0 0; padding: 0;
  display: flex; flex-wrap: wrap; justify-content: center; gap: 14px 46px;
}
.hero-stats li { display: flex; flex-direction: column; align-items: center; }
.hero-stats b {
  font-family: var(--font-pixel); font-size: clamp(26px, 3.4vw, 36px);
  color: var(--gold); line-height: 1; text-shadow: 3px 3px 0 rgba(0, 0, 0, 0.55);
}
.hero-stats span { font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--text-dim); margin-top: 6px; }

.hero-scroll {
  position: absolute; left: 50%; bottom: 26px; transform: translateX(-50%);
  z-index: 3; width: 26px; height: 42px; border: 1px solid var(--line);
}
.hero-scroll span {
  position: absolute; left: 50%; top: 9px; width: 3px; height: 8px; margin-left: -1.5px;
  background: var(--gold); animation: scrollDot 1.8s ease-in-out infinite;
}
@keyframes scrollDot {
  0%, 100% { transform: translateY(0); opacity: 1; }
  50%      { transform: translateY(14px); opacity: 0.25; }
}

/* ------------------------------ sections ------------------------------- */

.section { position: relative; padding: clamp(70px, 9vw, 120px) 0; }
.section-alt { background: linear-gradient(180deg, var(--bg-2), var(--bg)); border-block: 1px solid var(--line-soft); }

.section-head { max-width: 760px; margin-bottom: 54px; }
.section-lead { color: var(--text-dim); font-size: clamp(15px, 1.5vw, 18px); }
.section-lead strong { color: var(--text); }

/* steps */
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 20px; }
.step {
  position: relative; padding: 28px 24px 22px;
  background: var(--panel); border: 1px solid var(--line-soft);
  transition: border-color 0.2s, transform 0.2s;
}
.step:hover { border-color: var(--line); transform: translateY(-4px); }
.step-num {
  font-family: var(--font-pixel); font-size: 13px; color: var(--crimson);
  letter-spacing: 0.2em; display: block; margin-bottom: 10px;
}
.step h3 { color: var(--gold); }
.step p { color: var(--text-dim); font-size: 15px; margin: 0; }

/* platform head */
.platform-head {
  display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 28px;
  align-items: start; margin-bottom: 44px;
}
.platform-head .section-lead { max-width: 640px; margin-bottom: 0; }
.badge-stack { display: flex; flex-direction: column; align-items: flex-end; gap: 8px; }
.badge {
  font-family: var(--font-pixel); font-size: 11px; letter-spacing: 0.08em;
  color: var(--text-dim); border: 1px solid var(--line-soft);
  padding: 5px 12px; white-space: nowrap;
}
.badge-gold { color: #1B0016; background: var(--gold); border-color: var(--gold); box-shadow: 3px 3px 0 rgba(0, 0, 0, 0.5); }

/* -------------------------- PC mock window ----------------------------- */

/* Окно ПК-лаунчера. Все размеры пересчитаны из исходников: окно 1280x720,
   1cqw = 1% ширины окна, поэтому пропорции совпадают на любой ширине. */
.mock-window {
  position: relative; max-width: 940px; margin: 0 auto;
  aspect-ratio: 16 / 9; container-type: inline-size;
  border: 1px solid rgba(240, 177, 33, 0.28); border-radius: 8px;
  box-shadow: var(--shadow-soft); overflow: hidden;
}
.mock-bg {
  position: absolute; inset: 0;
  background: url("../img/hero-bg.jpg") center center / cover;
  image-rendering: pixelated;
}
/* затемняющий оверлей лаунчера: rgba(0, 0, 0, 102) */
.mock-dim { position: absolute; inset: 0; background: rgba(0, 0, 0, 0.4); }

.mock-body {
  position: absolute; inset: 0; z-index: 2;
  display: flex; flex-direction: column; gap: 1.56cqw;   /* spacing 20px */
  text-align: center;
}

/* верхняя панель: отступы 10px, иконка меню 42px, системные 14px */
.mock-chrome {
  display: flex; align-items: center; gap: 1.2cqw;
  padding: 0.78cqw 0.78cqw 0;
}
.mock-menu-icon { width: 2.34cqw; height: 2.34cqw; }
.mock-sys-icon { width: 1.1cqw; height: 1.1cqw; opacity: 0.9; }
.mock-chrome img { image-rendering: pixelated; }
.mock-spacer { flex: 1; }

/* заголовок: отступы 200/90/200/20, логотип во всю ширину блока */
.mock-title { padding: 7.03cqw 15.63cqw 1.56cqw; }
.mock-logo {
  image-rendering: pixelated; width: 100%;
  filter: drop-shadow(0 0.3cqw 0 rgba(0, 0, 0, 0.5));
}

/* Блок основных кнопок. Отступ 23.28cqw = поле нижнего ряда (17.19)
   + квадратная кнопка (3.75) + шаг (2.34), поэтому колонки совпадают
   с «Менеджером модов» и Changelog, а квадратные кнопки остаются снаружи. */
.mock-grid { padding: 0 23.28cqw; display: grid; gap: 2.5cqw; }
.mock-top { display: flex; justify-content: space-between; }
.mock-top .mock-btn { width: 24.22cqw; flex: none; }

/* нижний ряд: отступы 220/10/220/80, шаг 30px */
/* Поле 15.07cqw подобрано так, чтобы «Менеджер модов» и Changelog встали
   ровно под верхними кнопками, а квадратные кнопки вышли за их края. */
.mock-row {
  display: flex; align-items: center; gap: 2.34cqw;
  padding: 0.78cqw 15.07cqw 6.25cqw;
}
.mock-row .mock-btn { width: 24.22cqw; flex: none; }
.mock-row .mock-btn-icon { width: 5.875cqw; padding: 0; }
.mock-row .mock-btn:nth-child(2) { margin-right: auto; }

.mock-btn {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 0.2cqw; padding: 0 1.2cqw; cursor: default;
  /* button_height = 56px это минимум; Qt растягивает кнопки, и в окне
     они занимают ~75px, то есть 5.875% ширины окна */
  height: 5.875cqw; min-height: 44px;
  background: rgba(40, 8, 36, 0.78); border: 1px solid rgba(240, 177, 33, 0.10);
  border-radius: 1.25cqw;
  color: var(--text); font: inherit; text-align: center; overflow: hidden;
}
.mock-btn img { image-rendering: pixelated; flex: none; width: 1.875cqw; height: 1.875cqw; }
.mock-btn-icon img { width: 2.19cqw; height: 2.19cqw; }
.mb-line { display: flex; align-items: center; justify-content: center; gap: 0.7cqw; }
.mb-main { font-family: var(--font-pixel); font-size: 16px; font-size: 1.667cqw; color: var(--gold); }
.mb-sub {
  font-family: var(--font-pixel); font-size: 9px; font-size: 0.86cqw;
  color: var(--text-dim); letter-spacing: 0.02em;
  white-space: nowrap; max-width: 100%; overflow: hidden; text-overflow: ellipsis;
}
.mock-btn-alert { border-color: rgba(240, 177, 33, 0.5); animation: pulseBorder 2.4s ease-in-out infinite; }
@keyframes pulseBorder {
  0%, 100% { border-color: rgba(240, 177, 33, 0.18); }
  50%      { border-color: rgba(240, 177, 33, 0.85); }
}

/* статус операции: левый нижний угол, шрифт 11px, отступы 10/5 */
.mock-dl {
  position: absolute; z-index: 3; left: 0.78cqw; bottom: 0.7cqw; margin: 0;
  font-family: var(--font-pixel); font-size: 9px; font-size: 0.86cqw;
  color: var(--gold); opacity: 0; transition: opacity 0.3s ease;
}
.mock-dl.on { opacity: 1; }

/* полоса прогресса: 4px по всей ширине окна, у самого низа */
.mock-progress {
  position: absolute; z-index: 3; left: 0; right: 0; bottom: 0;
  height: 3px; height: 0.31cqw;
  background: rgba(240, 177, 33, 0.3);
  opacity: 0; transition: opacity 0.3s ease;
}
.mock-progress.on { opacity: 1; }
.mock-progress i {
  display: block; height: 100%; width: 0%;
  background: var(--gold); transition: width 0.25s linear;
}

.mock-caption { text-align: center; font-size: 12px; color: var(--bronze); margin: 14px 0 46px; letter-spacing: 0.06em; }

/* ----------------------------- feature grid ---------------------------- */

.feature-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(290px, 1fr)); gap: 18px; }
.feature {
  padding: 26px 24px; background: var(--panel);
  border: 1px solid var(--line-soft);
  transition: transform 0.2s, border-color 0.2s, background 0.2s;
}
.feature:hover { transform: translateY(-4px); border-color: var(--line); background: rgba(42, 10, 36, 0.9); }
.feature img { image-rendering: pixelated; margin-bottom: 14px; }
.feature h3 { color: var(--gold); font-size: 17px; }
.feature p { color: var(--text-dim); font-size: 15px; margin: 0; }

/* --------------------------- android layout ---------------------------- */

.android-layout {
  display: grid; grid-template-columns: minmax(300px, 372px) minmax(0, 1fr);
  gap: clamp(28px, 5vw, 64px); align-items: start;
}

.phone { position: sticky; top: 96px; }
.phone-frame {
  position: relative; border: 3px solid rgba(240, 177, 33, 0.4);
  border-radius: 34px; padding: 6px;
  background: #0C0009; box-shadow: var(--shadow-soft), inset 0 0 40px rgba(138, 25, 0, 0.25);
}
.phone-screen {
  position: relative; overflow: hidden;
  border-radius: 28px; padding: 8px 12px 14px;
  background: #1A0313;
}
/* фон игры просвечивает сквозь экран, как в приложении */
.phone-screen::before {
  content: ""; position: absolute; inset: 0;
  background: url("../img/hero-bg-small.jpg") center 35% / cover;
  image-rendering: pixelated;
  filter: brightness(0.72) saturate(1.15);
}
.phone-screen::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(26, 3, 19, 0.4), rgba(20, 0, 15, 0.62));
}
.phone-screen > * { position: relative; z-index: 2; }

.ph-statusbar {
  display: flex; align-items: center; justify-content: space-between;
  padding: 2px 6px 8px; font-size: 10px; color: var(--white); opacity: 0.85;
}
.ph-time { font-family: var(--font-body); font-weight: 600; }
.ph-sb-right { display: flex; align-items: center; gap: 6px; }
.ph-sig { display: block; width: 12px; height: 9px; background: currentColor; clip-path: polygon(0 100%, 22% 100%, 22% 62%, 0 62%, 0 100%, 39% 100%, 61% 100%, 61% 34%, 39% 34%, 39% 100%, 78% 100%, 100% 100%, 100% 0, 78% 0, 78% 100%); }
.ph-batt {
  font-style: normal; font-size: 9px; font-weight: 600; line-height: 1;
  border: 1px solid currentColor; border-radius: 3px; padding: 2px 3px;
}

.ph-logo {
  image-rendering: pixelated; width: 92%; margin: 4px auto 14px;
  filter: drop-shadow(0 3px 0 rgba(0, 0, 0, 0.55));
}

.ph-card {
  background: rgba(38, 5, 32, 0.88); border: 1px solid rgba(240, 177, 33, 0.16);
  border-radius: 16px; padding: 14px 14px 13px; margin-bottom: 11px;
}
.ph-sub { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 15px 16px; }
.ph-card-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 12px; }
.ph-card-title { font-family: var(--font-pixel); font-size: 14px; color: var(--gold); letter-spacing: 0.02em; }
.ph-card-head img { image-rendering: pixelated; }
.ph-ok { font-family: var(--font-pixel); font-size: 13.5px; color: #55D07A; font-weight: 400; }

.ph-status { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.ph-status li {
  display: flex; align-items: center; gap: 11px;
  opacity: 0; transform: translateX(-8px);
}
.ph-status li.on { opacity: 1; transform: none; transition: opacity 0.35s ease, transform 0.35s ease; }
.ph-check {
  flex: none; width: 25px; height: 25px; border-radius: 6px;
  border: 2px solid var(--gold); display: grid; place-items: center;
}
.ph-check img { image-rendering: pixelated; opacity: 0; transition: opacity 0.3s ease 0.15s; }
.ph-status li.on .ph-check img { opacity: 1; }
.ph-info { display: flex; flex-direction: column; gap: 2px; flex: 1; min-width: 0; }
.ph-info b { font-family: var(--font-pixel); font-size: 14.5px; color: var(--gold); font-weight: 400; }
.ph-info i {
  font-style: normal; font-family: var(--font-pixel); font-size: 9.5px; color: var(--text-dim);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.ph-info i.ph-new { color: #E2593A; }
.ph-refresh {
  flex: none; display: grid; place-items: center;
  width: 52px; height: 34px; border-radius: 10px;
  background: rgba(240, 177, 33, 0.09); border: 1px solid rgba(240, 177, 33, 0.14);
}
.ph-refresh img { image-rendering: pixelated; }

.ph-actions { display: grid; gap: 10px; }
.ph-btn {
  display: flex; align-items: center; justify-content: center; gap: 10px;
  font-family: var(--font-pixel); font-size: 13.5px; color: var(--gold);
  background: rgba(38, 5, 32, 0.88); border: 1px solid rgba(240, 177, 33, 0.16);
  border-radius: 14px; padding: 13px 10px; cursor: default; text-align: center;
}
.ph-btn img { image-rendering: pixelated; flex: none; }

.ph-progress { margin: 2px 0 12px; }
.ph-bar {
  height: 9px; border-radius: 6px; overflow: hidden;
  background: rgba(0, 0, 0, 0.5); border: 1px solid rgba(240, 177, 33, 0.14);
}
.ph-bar i {
  display: block; height: 100%; width: 0%; border-radius: 5px;
  background: repeating-linear-gradient(90deg, var(--gold) 0 5px, var(--gold-dim) 5px 8px);
  transition: width 0.25s linear;
}
.ph-progress span { display: block; font-size: 11px; color: var(--text-dim); margin-top: 7px; font-family: var(--font-pixel); }

.ph-copy {
  font-family: var(--font-pixel); font-size: 12.5px; color: var(--gold);
  text-align: center; margin: 14px 0 2px; opacity: 0.9;
}

.feature-list { display: grid; gap: 4px; }
.feature-row {
  padding: 22px 24px; border: 1px solid transparent;
  border-bottom-color: var(--line-soft); border-left: 2px solid transparent;
  transition: background 0.2s, border-color 0.2s;
}
/* Меняем только цвет уже существующей рамки и фон, чтобы текст не сдвигался */
.feature-row:hover { background: rgba(42, 10, 36, 0.55); border-left-color: var(--gold); }
.feature-row h3 { color: var(--gold); font-size: 17px; margin-bottom: 6px; }
.feature-row p { color: var(--text-dim); font-size: 15px; margin: 0; }

/* -------------------------------- tabs --------------------------------- */

.tab-bar { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 26px; }
.tab {
  font-family: var(--font-pixel); font-size: 13px; letter-spacing: 0.06em;
  color: var(--text-dim); background: transparent;
  border: 1px solid var(--line-soft); padding: 11px 22px; cursor: pointer;
  transition: color 0.18s, border-color 0.18s, background 0.18s, transform 0.12s;
}
.tab:hover { color: var(--gold); border-color: var(--line); }
.tab.active {
  color: #1B0016; background: var(--gold); border-color: var(--gold);
  box-shadow: 4px 4px 0 rgba(0, 0, 0, 0.5);
}
.tab-panels {
  background: var(--panel); border: 1px solid var(--line-soft);
  padding: clamp(24px, 3.5vw, 40px);
}
.tab-panel[hidden] { display: none; }
.tab-panel.active { animation: fadeUp 0.35s ease both; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

.check-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); }
.check-list li { position: relative; padding-left: 30px; color: var(--text-dim); font-size: 15px; }
.check-list li::before {
  content: ""; position: absolute; left: 0; top: 0.35em;
  width: 14px; height: 14px;
  background: var(--gold);
  clip-path: polygon(14% 44%, 0 58%, 40% 100%, 100% 22%, 86% 8%, 40% 72%);
}

/* ----------------------------- security grid --------------------------- */

.sec-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 16px; }
.sec-card {
  padding: 24px 22px; background: linear-gradient(180deg, rgba(42, 10, 36, 0.75), rgba(20, 0, 15, 0.85));
  border: 1px solid var(--line-soft); border-left: 3px solid var(--crimson);
  transition: border-left-color 0.2s, transform 0.2s;
}
.sec-card:hover { border-left-color: var(--gold); transform: translateX(4px); }
.sec-card h3 { font-size: 16px; color: var(--white); }
.sec-card p { font-size: 14.5px; color: var(--text-dim); margin: 0; }

/* ------------------------------- compare ------------------------------- */

.table-scroll { overflow-x: auto; border: 1px solid var(--line-soft); }
.compare { width: 100%; border-collapse: collapse; min-width: 720px; font-size: 15px; }
.compare th, .compare td { padding: 14px 18px; text-align: left; border-bottom: 1px solid var(--line-soft); }
.compare thead th {
  font-family: var(--font-pixel); font-size: 13px; color: var(--gold);
  background: rgba(20, 0, 15, 0.9); letter-spacing: 0.06em; position: sticky; top: 0;
}
.compare thead th span { display: block; font-size: 10px; color: var(--bronze); letter-spacing: 0.14em; }
.compare tbody th { font-weight: 500; color: var(--text); background: rgba(32, 0, 29, 0.5); }
.compare td { color: var(--text-dim); }
.compare tbody tr:hover td, .compare tbody tr:hover th { background: rgba(42, 10, 36, 0.75); }
.compare td.yes { color: var(--text); }
.compare td.yes::before { content: "✓ "; color: var(--gold); font-weight: 700; }
.compare td.no::before { content: "— "; color: var(--crimson); }

/* --------------------------------- faq --------------------------------- */

.faq { display: grid; gap: 10px; }
.faq details {
  background: var(--panel); border: 1px solid var(--line-soft);
  transition: border-color 0.2s;
}
.faq details[open] { border-color: var(--line); }
.faq summary {
  cursor: pointer; list-style: none; padding: 18px 52px 18px 22px;
  font-family: var(--font-pixel); font-size: 14px; color: var(--white);
  position: relative;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; position: absolute; right: 20px; top: 50%; transform: translateY(-50%);
  color: var(--gold); font-size: 20px; line-height: 1; transition: transform 0.2s;
}
.faq details[open] summary::after { content: "–"; }
.faq summary:hover { color: var(--gold); }
.faq p { margin: 0; padding: 0 22px 20px; color: var(--text-dim); font-size: 15px; }

/* ------------------------------ download ------------------------------- */

.section-cta {
  background:
    linear-gradient(180deg, rgba(20, 0, 15, 0.9) 0%, rgba(12, 0, 9, 0.8) 55%, rgba(20, 0, 15, 0.95) 100%),
    url("../img/hero-bg-small.jpg") center/cover fixed;
  border-top: 1px solid var(--line-soft);
}
.dl-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 20px; margin-bottom: 44px; }
.dl-card {
  padding: 32px 28px; text-align: center;
  background: var(--panel-solid); border: 1px solid var(--line);
  box-shadow: var(--shadow-hard);
}
.dl-card > img { margin: 0 auto 16px; image-rendering: pixelated; }
.dl-card .dl-round { border-radius: 14px; image-rendering: auto; }
.dl-card h3 { color: var(--gold); }
.dl-meta { font-size: 12px; letter-spacing: 0.1em; color: var(--bronze); text-transform: uppercase; margin-bottom: 18px; }
.dl-list { list-style: none; margin: 0 0 22px; padding: 0; display: grid; gap: 8px; text-align: left; }
.dl-list li { font-size: 14.5px; color: var(--text-dim); padding-left: 20px; position: relative; }
.dl-list li::before { content: "▸"; position: absolute; left: 0; color: var(--crimson); }

.link-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 14px; }
.link-card {
  display: flex; flex-direction: column; gap: 3px;
  padding: 20px; background: var(--panel); border: 1px solid var(--line-soft);
  transition: transform 0.18s, border-color 0.18s, background 0.18s;
}
.link-card img { image-rendering: pixelated; margin-bottom: 8px; }
.link-card b { font-family: var(--font-pixel); font-size: 13px; color: var(--white); font-weight: 400; }
.link-card span { font-size: 13px; color: var(--text-dim); }
.link-card:hover { transform: translateY(-4px); border-color: var(--gold); background: rgba(42, 10, 36, 0.9); }

/* -------------------------------- footer ------------------------------- */

.site-footer { background: #0C0009; border-top: 1px solid var(--line-soft); padding: 56px 0 28px; }
.footer-inner { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 40px; align-items: start; }
.footer-brand img { width: 240px; image-rendering: pixelated; margin-bottom: 14px; opacity: 0.9; }
.footer-brand p { color: var(--text-dim); font-size: 14px; max-width: 380px; }
.footer-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; }
.footer-cols h4 { font-size: 12px; letter-spacing: 0.16em; color: var(--bronze); text-transform: uppercase; margin-bottom: 12px; }
.footer-cols a { display: block; font-size: 14px; color: var(--text-dim); padding: 4px 0; transition: color 0.16s; }
.footer-cols a:hover { color: var(--gold); }

.footer-bottom {
  margin-top: 40px; padding-top: 22px; border-top: 1px solid var(--line-soft);
  display: flex; flex-wrap: wrap; align-items: center; gap: 14px;
}
.footer-bottom p { margin: 0; font-size: 12.5px; color: var(--text-dim); flex: 1; min-width: 260px; }
.footer-bottom .copy { flex: none; font-family: var(--font-pixel); color: var(--text-dim); }
.age {
  font-family: var(--font-pixel); font-size: 13px; color: #E24A22;
  border: 1px solid #E24A22; padding: 5px 10px; flex: none;
}

/* ------------------------------- to top -------------------------------- */

.to-top {
  position: fixed; right: 22px; bottom: 22px; z-index: 810;
  width: 44px; height: 44px; cursor: pointer;
  background: var(--panel-solid); border: 1px solid var(--line);
  color: var(--gold); font-size: 12px;
  box-shadow: var(--shadow-hard);
  opacity: 0; visibility: hidden; transform: translateY(10px);
  transition: opacity 0.2s, transform 0.2s, visibility 0.2s, border-color 0.2s;
}
.to-top.on { opacity: 1; visibility: visible; transform: none; }
.to-top:hover { border-color: var(--gold); }

/* ------------------------------- reveal -------------------------------- */

.reveal { opacity: 0; transform: translateY(22px); }
.reveal.in { opacity: 1; transform: none; transition: opacity 0.6s ease, transform 0.6s ease; }
.sec-card.reveal.in, .feature.reveal.in { transition-delay: var(--d, 0s); }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; }
  .hero-bg { transform: none; }
  .mock-btn-alert, .hero-scroll span { animation: none; }
  /* макеты сразу показывают итоговое состояние, без плавных переходов */
  .ph-status li,
  .ph-status li .ph-check img,
  .mock-progress,
  .mock-progress-bar i,
  .ph-bar i { transition: none; }
}

/* ------------------------------ responsive ----------------------------- */

@media (max-width: 960px) {
  .platform-head { grid-template-columns: 1fr; }
  .badge-stack { flex-direction: row; flex-wrap: wrap; align-items: flex-start; }
  .android-layout { grid-template-columns: 1fr; }
  .phone { position: static; max-width: 372px; margin: 0 auto; }
  .footer-inner { grid-template-columns: 1fr; }
}

@media (max-width: 780px) {
  .nav-toggle { display: flex; }
  .site-nav {
    position: fixed; inset: 68px 0 auto 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: rgba(12, 0, 9, 0.98); border-bottom: 1px solid var(--line);
    padding: 10px 20px 22px;
    transform: translateY(-120%); transition: transform 0.28s ease;
    max-height: calc(100svh - 68px); overflow-y: auto;
  }
  .site-nav.open { transform: none; }
  .site-nav a { padding: 14px 4px; border-bottom: 1px solid var(--line-soft); font-size: 15px; }
  .site-nav .nav-cta { margin: 14px 0 0; text-align: center; padding: 14px; }
  .hero { min-height: auto; padding: 130px 0 80px; }
  .hero-stats { gap: 18px 30px; }
  /* На узком экране окно лаунчера перестаёт быть 16:9 и растёт по содержимому */
  .mock-window { aspect-ratio: auto; }
  .mock-body { position: relative; inset: auto; padding: 46px 14px 16px; }
  .mock-logo { width: 74%; margin: 0 auto 6px; }
  .mock-status { font-size: 11px; margin: 0 0 14px; }
  .mock-grid { width: 100%; gap: 10px; }
  .mock-top { width: 100%; grid-template-columns: 1fr; gap: 10px; }
  .mock-row { grid-template-columns: 1fr 1fr; gap: 10px; }
  .mock-btn { min-height: 54px; padding: 10px 12px; border-radius: 12px; }
  .mb-main { font-size: 13px; }
  .mb-sub { font-size: 9.5px; }
  .mock-progress { width: 100%; margin: 14px 0 0; }
  .mock-progress-bar { height: 10px; }
  .mock-progress-text { font-size: 10px; }
  .btn { min-width: 0; width: 100%; }
  .hero-actions { flex-direction: column; }
  .section-cta { background-attachment: scroll; }
  .footer-cols { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
  body { font-size: 16px; }
  .wrap { width: calc(100% - 28px); }
  .feature, .step, .sec-card { padding: 20px 18px; }
  .tab { flex: 1 1 auto; text-align: center; padding: 10px 14px; }
}
