/* AION 2 Quest — презентация приложения (главная #app и страница /app). АГ-5, 21.11.2026.
   Цвета — переменные темы сайта (--dc-*): тёмная у Асмодиан, светлая у Элийцев. Сцена игры всегда тёмная.
   Движение — только transform/opacity; prefers-reduced-motion — без движения и автолистания. */
.a2qa {
  --a2qa-ink: var(--dc-ink, #f4ecf0);
  --a2qa-muted: var(--dc-muted, #c2b0ba);
  --a2qa-faint: var(--dc-faint, #92808b);
  --a2qa-edge: var(--dc-edge, #3a2431);
  --a2qa-panel: var(--dc-panel, #1d1118);
  --a2qa-panel-2: var(--dc-panel-2, #24151e);
  --a2qa-accent: var(--dc-accent, #f0577c);
  --a2qa-accent-ink: var(--dc-accent-ink, #fff);
  --a2qa-gold: var(--dc-gold-text, #f2c077);
  --a2qa-ok: #4fc78a;
  --a2qa-ease: cubic-bezier(.2, .7, .2, 1);
  color: var(--a2qa-ink);
  font-family: var(--font-body, Manrope, system-ui, sans-serif);
}
.a2qa *, .a2qa *::before, .a2qa *::after { box-sizing: border-box; }
.a2qa h1, .a2qa h2, .a2qa h3 { font-family: var(--font-display, 'Tenor Sans', serif) !important; font-weight: 400 !important; letter-spacing: 0 !important; text-transform: none !important; margin: 0; color: var(--a2qa-ink); text-wrap: balance; }
.a2qa p { margin: 0; }
.a2qa a { color: inherit; }
.a2qa :focus-visible { outline: 2px solid var(--dc-focus, #f2c077); outline-offset: 3px; border-radius: 6px; }
.a2qa [hidden] { display: none !important; }

/* ---------- кнопка, счётчик ---------- */
.a2qa-btn { display: inline-flex; align-items: center; gap: 14px; background: var(--a2qa-accent); color: var(--a2qa-accent-ink) !important; text-decoration: none;
  border-radius: 14px; padding: 14px 22px; box-shadow: 0 14px 34px -14px color-mix(in srgb, var(--a2qa-accent) 70%, transparent);
  transition: transform .18s var(--a2qa-ease), box-shadow .18s var(--a2qa-ease); }
.a2qa-btn:hover { transform: translateY(-2px); box-shadow: 0 20px 40px -14px color-mix(in srgb, var(--a2qa-accent) 80%, transparent); }
.a2qa-btn:active { transform: translateY(0) scale(.98); }
.a2qa-btn svg { width: 22px; height: 22px; flex: none; }
.a2qa-btn strong { display: block; font-weight: 800; font-size: 17px; line-height: 1.2; }
.a2qa-btn small { display: block; font-size: 12.5px; opacity: .88; line-height: 1.3; }
.a2qa-btn-big { display: flex; padding: 18px 24px; border-radius: 16px; }
.a2qa-btn-big svg { width: 30px; height: 30px; }
.a2qa-btn-big strong { font-size: 21px; }
.a2qa-meta { display: flex; flex-wrap: wrap; gap: 4px 10px; margin-top: 14px; font-size: 13.5px; color: var(--a2qa-muted); }
.a2qa-meta span { color: var(--a2qa-faint); }
.a2qa-meta a { color: var(--a2qa-gold); text-underline-offset: 3px; }
.a2qa-other { margin-top: 14px; padding: 14px 16px; border: 1px dashed var(--dc-edge-2, #4a2f3f); border-radius: 14px; font-size: 14px; color: var(--a2qa-muted); }
.a2qa-other b { color: var(--a2qa-ink); font-weight: 600; }
.a2qa-ghost { margin-top: 10px; font: 600 14px/1 var(--font-body, Manrope, sans-serif); color: var(--a2qa-ink); background: transparent; border: 1px solid var(--a2qa-edge); border-radius: 10px; padding: 10px 14px; cursor: pointer; }
.a2qa-ghost:hover { border-color: var(--a2qa-accent); }
.a2qa-count { display: flex; align-items: center; gap: 12px; font-size: 14px; color: var(--a2qa-muted); }
.a2qa-count b { font: 400 26px/1 var(--font-display, 'Tenor Sans', serif); color: var(--a2qa-ink); font-variant-numeric: tabular-nums; display: inline-block; }
.a2qa-count b[hidden] { display: none; }
.a2qa-count b[data-a2qa-plus] { margin-left: -.12em; }
/* Первому экрану не нужно ждать появления текста или SVG-логотипа. */
.dc-hero .dc-hero-inner { opacity: 1 !important; }
.dc-hero :is(.dc-aion-word, .dc-aion-two) { animation: none; }
.dc-hero .dc-aion-two { filter: drop-shadow(0 0 10px #35c2ff66); }
.dc-now .dc-now-app[hidden] { display: none; }
.dc-now li b [data-a2qa-week] { display: inline-block; color: inherit; }
.a2qa-count-sep { width: 1px; height: 22px; background: var(--a2qa-edge); }
.a2qa-pulse { width: 8px; height: 8px; border-radius: 50%; background: var(--a2qa-ok); flex: none; position: relative; }
.a2qa-pulse::after { content: ""; position: absolute; inset: -5px; border-radius: 50%; border: 2px solid var(--a2qa-ok); opacity: 0; animation: a2qa-ping 2.4s ease-out infinite; }
@keyframes a2qa-ping { 0% { transform: scale(.4); opacity: .7; } 80%, 100% { transform: scale(1.5); opacity: 0; } }
.a2qa-count-big { margin-top: 20px; padding-top: 18px; border-top: 1px solid var(--a2qa-edge); }
.a2qa-count-big b { font-size: 38px; }
.a2qa-link { font-size: 14px; color: var(--a2qa-gold) !important; text-underline-offset: 3px; }

/* ---------- ролики ---------- */
.a2qa-clip { margin: 0; }
.a2qa-clip-media { position: relative; border-radius: 18px; overflow: hidden; border: 1px solid var(--a2qa-edge); background: #120a0f; aspect-ratio: 1 / 1; }
.a2qa-clip-media video, .a2qa-clip-media img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: 50% 0; }
.a2qa-clip-contain video { object-fit: contain; object-position: 50% 50%; }
/* снимки кодекса 0.9.14 и ролик кодекса — 16:10, целиком */
.a2qa-shot .a2qa-clip-media, .a2qa-home .a2qa-clip-media { aspect-ratio: 16 / 10; }
.a2qa-shot .a2qa-clip-media img { object-position: 50% 50%; }
.a2qa-clip figcaption, .a2qa-ping figcaption { margin-top: 12px; }
.a2qa-clip figcaption b, .a2qa-ping figcaption b { display: block; font-weight: 600; font-size: 16px; }
.a2qa-clip figcaption span, .a2qa-ping figcaption span { display: block; color: var(--a2qa-muted); font-size: 14px; line-height: 1.5; }

/* ================= главная ================= */
.a2qa-home { position: relative; padding: clamp(72px, 9vw, 130px) 0; }
.a2qa-wrap { width: min(1264px, 100% - 40px); margin: 0 auto; }
.a2qa-head { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 32px 48px; align-items: end; margin-bottom: 40px; }
.a2qa-home h2 { font-size: clamp(38px, 5.2vw, 68px); line-height: 1.04; }
.a2qa-lead { margin-top: 18px !important; font-size: 18px; line-height: 1.6; color: var(--a2qa-muted); max-width: 36em; }
.a2qa-cta { display: flex; flex-direction: column; align-items: flex-end; gap: 14px; }
.a2qa-cta .a2qa-other { max-width: 340px; }

.a2qa-stage { position: relative; aspect-ratio: 16 / 8.6; border-radius: 26px; overflow: hidden; border: 1px solid #4a2f3f; background: #0d070b;
  box-shadow: 0 40px 90px -40px #000; isolation: isolate; color: #f4ecf0; }
.a2qa-scene { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transform: scale(1.04); transition: transform 8s linear; }
.a2qa-stage.is-in .a2qa-scene { transform: scale(1.1); }
.a2qa-stage::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, #0d070bb0, #0d070b26 45%, #0d070b8c); }
.a2qa-sample { position: absolute; left: 50%; bottom: 14px; transform: translateX(-50%); font-size: 12px; color: #f4ecf0b0; background: #0d070b99; border-radius: 999px; padding: 3px 12px; }
.a2qa-w { position: absolute; margin: 0; border-radius: 16px; box-shadow: 0 26px 50px -18px #000d;
  transition: opacity .45s var(--a2qa-ease), transform .45s var(--a2qa-ease), filter .45s var(--a2qa-ease); }
.a2qa-w img { display: block; width: 100%; height: auto; border-radius: 16px; }
.a2qa-w-meter { left: 3.5%; top: 7%; width: 30%; }
.a2qa-w-timers { right: 3.5%; top: 6%; width: 28%; }
.a2qa-w-farm { right: 4%; bottom: 7%; width: 28%; }
.a2qa-w-fights { left: 36%; bottom: 8%; width: 22%; }
.a2qa-w img { box-shadow: 0 24px 60px #000c; }
.a2qa-w-codex { left: 50%; top: 50%; width: 62%; transform: translate(-50%, -50%) scale(.9); opacity: 0; pointer-events: none; z-index: 3; border: 1px solid #ffffff22; }
/* выбранная глава ярко, остальные приглушены; у «Кодекса» окно выезжает поверх сцены */
.a2qa-stage .a2qa-w:not(.a2qa-w-codex) { opacity: .42; filter: saturate(.55) brightness(.8); }
.a2qa-stage[data-chapter="meter"] .a2qa-w-meter, .a2qa-stage[data-chapter="timers"] .a2qa-w-timers,
.a2qa-stage[data-chapter="farm"] .a2qa-w-farm, .a2qa-stage[data-chapter="fights"] .a2qa-w-fights { opacity: 1; filter: none; transform: translateY(-4px) scale(1.03); z-index: 2; }
.a2qa-stage[data-chapter="codex"] .a2qa-w:not(.a2qa-w-codex) { opacity: .2; }
.a2qa-stage[data-chapter="codex"] .a2qa-w-codex { opacity: 1; transform: translate(-50%, -50%) scale(1); }
/* вход сцены в экран: виджеты «садятся» на игру по очереди (класс ставит showcase.js) */
.a2qa-js .a2qa-stage:not(.is-in) .a2qa-w:not(.a2qa-w-codex) { opacity: 0; transform: translateY(24px) scale(.96); }
.a2qa-stage.is-in .a2qa-w-meter { transition-delay: 0ms; }
.a2qa-stage.is-in .a2qa-w-timers { transition-delay: 120ms; }
.a2qa-stage.is-in .a2qa-w-fights { transition-delay: 240ms; }
.a2qa-stage.is-in .a2qa-w-farm { transition-delay: 360ms; }
.a2qa-stage.is-settled .a2qa-w { transition-delay: 0ms !important; }

/* живой метр */
.a2qa-meter { background: #180e16c7; backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border: 1px solid #ffffff1f; border-radius: 16px;
  padding: 12px 14px 10px; font-size: 12px; line-height: 1.3; color: #f4ecf0; }
.a2qa-meter-top { display: flex; justify-content: space-between; gap: 8px; color: #c2b0ba; font-size: 11.5px; margin-bottom: 9px; white-space: nowrap; }
.a2qa-meter-top b { color: #f4ecf0; font-weight: 600; font-variant-numeric: tabular-nums; }
.a2qa-rec { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: #f0577c; margin-right: 6px; vertical-align: 1px; animation: a2qa-blink 1.6s steps(2) infinite; }
@keyframes a2qa-blink { 50% { opacity: .3; } }
.a2qa-meter-tabs { overflow: hidden; text-overflow: ellipsis; }
.a2qa-meter-boss { display: flex; justify-content: space-between; font: 400 15px/1.2 var(--font-display, 'Tenor Sans', serif); }
.a2qa-meter-boss b { font: 600 13px/1.2 var(--font-body, Manrope, sans-serif); font-variant-numeric: tabular-nums; }
.a2qa-meter-hp { height: 4px; background: #ffffff1a; border-radius: 4px; margin: 6px 0 8px; overflow: hidden; }
.a2qa-meter-hp i { display: block; height: 100%; width: 100%; background: #f0577c; border-radius: 4px; transform-origin: left; transition: transform .9s linear; }
.a2qa-meter-row { position: relative; display: grid; grid-template-columns: 22px minmax(0, 1fr) auto; gap: 9px; align-items: center; padding: 6px 0 8px; }
.a2qa-meter-row.is-me { background: linear-gradient(90deg, #f2c0771a, transparent); margin: 0 -6px; padding-left: 6px; padding-right: 6px; border-radius: 8px; }
.a2qa-meter-ic { width: 22px; height: 22px; border-radius: 50%; background: #2a1a25 center/70% no-repeat; border: 1px solid #ffffff26; }
.a2qa-meter-name b { display: block; font-weight: 600; font-size: 13px; }
.a2qa-meter-name small { color: #b4a2ad; font-size: 10.5px; }
.a2qa-meter-row.is-me .a2qa-meter-name small { color: #f2c077; }
.a2qa-meter-val { text-align: right; }
.a2qa-meter-val b { display: block; font-weight: 800; font-size: 13.5px; font-variant-numeric: tabular-nums; }
.a2qa-meter-val small { color: #b4a2ad; font-size: 10.5px; font-variant-numeric: tabular-nums; }
.a2qa-meter-fill { position: absolute; left: 31px; right: 0; bottom: 2px; height: 3px; border-radius: 3px; background: #ffffff10; overflow: hidden; }
.a2qa-meter-fill i { display: block; height: 100%; width: 100%; border-radius: 3px; background: #a58cff; transform-origin: left; transform: scaleX(0); transition: transform .9s var(--a2qa-ease); }
.a2qa-meter-row.is-me .a2qa-meter-fill i { background: #f2c077; }
.a2qa-meter-foot { color: #c2b0ba; font-size: 11.5px; margin-top: 2px; }
.a2qa-meter-foot b { color: #f4ecf0; font-variant-numeric: tabular-nums; }
.a2qa-ic-ranger { background-image: url(/img/classes/ranger.webp); }
.a2qa-ic-templar { background-image: url(/img/classes/templar.webp); }
.a2qa-ic-cleric { background-image: url(/img/classes/cleric.webp); }

/* главы */
.a2qa-chapters { display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; margin-top: 20px; }
.a2qa-chapters button { all: unset; cursor: pointer; padding: 14px 2px 4px; font-size: 14px; color: var(--a2qa-faint); line-height: 1.35; border-radius: 6px; }
.a2qa-chapters button b { display: block; font-weight: 600; color: var(--a2qa-muted); font-size: 15px; }
.a2qa-chapters button[aria-selected="true"] b { color: var(--a2qa-ink); }
.a2qa-chapters button[aria-selected="true"] { color: var(--a2qa-muted); }
.a2qa-chapters button:hover b { color: var(--a2qa-ink); }
.a2qa-chapters button:focus-visible { outline: 2px solid var(--dc-focus, #f2c077); outline-offset: 4px; }
.a2qa-ch-bar { display: block; height: 3px; border-radius: 3px; background: var(--a2qa-edge); overflow: hidden; margin: -14px 0 12px; }
.a2qa-ch-bar i { display: block; height: 100%; width: 100%; background: var(--a2qa-accent); transform: scaleX(0); transform-origin: left; }
.a2qa-chapters button[aria-selected="true"] .a2qa-ch-bar i { transform: scaleX(1); }
.a2qa-chapters.is-auto button[aria-selected="true"] .a2qa-ch-bar i { animation: a2qa-progress var(--a2qa-step, 6s) linear both; }
@keyframes a2qa-progress { from { transform: scaleX(0); } to { transform: scaleX(1); } }
.a2qa-captions { margin-top: 10px; min-height: 3.2em; color: var(--a2qa-muted); font-size: 15px; max-width: 46em; }

.a2qa-clips-head { display: flex; justify-content: space-between; align-items: baseline; gap: 20px; flex-wrap: wrap; margin: clamp(56px, 7vw, 90px) 0 24px; }
.a2qa-clips-head h3 { font-size: clamp(26px, 3vw, 36px); }
.a2qa-clips-head p { color: var(--a2qa-muted); font-size: 14px; }
.a2qa-clips { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
.a2qa-clips-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }

/* ================= страница /app ================= */
.a2qa-page { padding-bottom: 40px; }
.a2qa-hero { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, .95fr); gap: clamp(32px, 5vw, 64px); align-items: start; padding: 8px 0 clamp(56px, 7vw, 88px); }
.a2qa-page h1 { font-size: clamp(40px, 5.4vw, 66px); line-height: 1.04; }
.a2qa-get { margin-top: 30px; background: linear-gradient(180deg, var(--a2qa-panel-2), var(--a2qa-panel)); border: 1px solid var(--dc-edge-2, #4a2f3f); border-radius: 20px; padding: 24px; max-width: 560px; }
.a2qa-hero-media { margin: 0; }
.a2qa-hero-media .a2qa-clip-media { aspect-ratio: 16 / 9; }
.a2qa-hero-media video { object-fit: contain; object-position: 50% 50%; }
.a2qa-hero-media figcaption a { color: var(--a2qa-gold); text-underline-offset: 3px; }
.a2qa-hero-media figcaption { margin-top: 10px; font-size: 13px; color: var(--a2qa-faint); }
.a2qa-sec { padding: clamp(56px, 7vw, 84px) 0; border-top: 1px solid var(--a2qa-edge); }
.a2qa-sec h2 { font-size: clamp(32px, 4vw, 46px); line-height: 1.08; }
.a2qa-sub { color: var(--a2qa-muted); max-width: 42em; margin: 12px 0 36px !important; font-size: 16px; line-height: 1.6; }
.a2qa-news { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 36px 44px; }
.a2qa-news article { border-left: 2px solid var(--a2qa-gold); padding-left: 18px; }
.a2qa-news-ic { display: block; width: 52px; height: 52px; margin-bottom: 14px; padding: 4px; border-radius: 14px; object-fit: contain;
  background: radial-gradient(circle at 50% 35%, #3a2412, #160c10); border: 1px solid #f2c07755; box-shadow: 0 8px 24px #0008; }
.a2qa-news h3 { font-size: 22px; margin-bottom: 8px; }
.a2qa-news p { color: var(--a2qa-muted); font-size: 15px; line-height: 1.6; }
.a2qa-news span { display: block; margin-top: 10px; font-size: 12.5px; color: var(--a2qa-gold); }
.a2qa-ping { display: grid; grid-template-columns: minmax(0, 360px) minmax(0, 1fr); gap: 24px; align-items: center; margin: 28px 0 0; }
.a2qa-ping img { width: 100%; height: auto; border-radius: 16px; border: 1px solid var(--a2qa-edge); display: block; }
.a2qa-cx-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 20px; }
.a2qa-cx-tabs button { font: 600 14px/1 var(--font-body, Manrope, sans-serif); color: var(--a2qa-muted); background: transparent; border: 1px solid var(--a2qa-edge); border-radius: 999px; padding: 10px 16px; cursor: pointer; transition: background-color .2s, color .2s, border-color .2s; }
.a2qa-cx-tabs button:hover { border-color: var(--a2qa-accent); color: var(--a2qa-ink); }
.a2qa-cx-tabs button[aria-selected="true"] { background: var(--a2qa-accent); border-color: var(--a2qa-accent); color: var(--a2qa-accent-ink); }
.a2qa-cx-pane img, .a2qa-cx-pane video { display: block; width: 100%; height: auto; aspect-ratio: 1280 / 800; object-fit: cover; border-radius: 18px; border: 1px solid var(--a2qa-edge); background: #0d070b; }
.a2qa-cx-pane p { margin-top: 14px !important; color: var(--a2qa-muted); font-size: 15px; }
.a2qa-cx-pane:not([hidden]) { animation: a2qa-fade .35s var(--a2qa-ease); }
@keyframes a2qa-fade { from { opacity: .4; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.a2qa-steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; counter-reset: a2qa-step; }
.a2qa-steps li { background: var(--a2qa-panel); border: 1px solid var(--a2qa-edge); border-radius: 18px; padding: 24px; }
.a2qa-steps li::before { counter-increment: a2qa-step; content: counter(a2qa-step); display: block; font: 400 42px/1 var(--font-display, 'Tenor Sans', serif); color: var(--a2qa-gold); margin-bottom: 14px; }
.a2qa-steps b { display: block; font-size: 17px; margin-bottom: 6px; }
.a2qa-steps p { color: var(--a2qa-muted); font-size: 14.5px; line-height: 1.6; }
.a2qa-get-again { margin-top: 28px; background: none; border: 0; padding: 0; }
.a2qa-log { display: grid; grid-template-columns: 170px minmax(0, 1fr); column-gap: 36px; }
.a2qa-log-ver { padding: 20px 0; border-top: 1px solid var(--a2qa-edge); }
.a2qa-log-ver b { display: block; font: 400 26px/1.1 var(--font-display, 'Tenor Sans', serif); }
.a2qa-log-ver small { color: var(--a2qa-faint); font-size: 13px; }
.a2qa-log ul { margin: 0; padding: 20px 0 20px 18px; border-top: 1px solid var(--a2qa-edge); color: var(--a2qa-muted); font-size: 15px; line-height: 1.6; }
.a2qa-log li { margin-bottom: 6px; }
.a2qa-log li.is-fix { color: var(--a2qa-faint); }
.a2qa-log-all { margin-top: 18px; }
.a2qa-log-all > summary, .a2qa-faq summary { cursor: pointer; }
.a2qa-log-all > summary { color: var(--a2qa-gold); font-size: 15px; margin-bottom: 10px; }
.a2qa-faq details { border-bottom: 1px solid var(--a2qa-edge); }
.a2qa-faq h2 { margin-bottom: 18px; }
.a2qa-faq summary { list-style: none; display: flex; justify-content: space-between; gap: 20px; padding: 20px 0; font: 400 21px/1.3 var(--font-display, 'Tenor Sans', serif); }
.a2qa-faq summary::-webkit-details-marker { display: none; }
.a2qa-faq summary::after { content: "+"; color: var(--a2qa-faint); font-family: var(--font-body, Manrope, sans-serif); transition: transform .2s; }
.a2qa-faq details[open] summary::after { transform: rotate(45deg); }
.a2qa-faq details p { color: var(--a2qa-muted); padding: 0 0 22px; max-width: 46em; line-height: 1.65; }

/* ---------- узкие экраны ---------- */
@media (max-width: 980px) {
  .a2qa-head { grid-template-columns: 1fr; }
  .a2qa-cta { align-items: flex-start; }
  .a2qa-clips { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .a2qa-hero { grid-template-columns: 1fr; }
  .a2qa-hero-media { max-width: 520px; }
  .a2qa-news { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 720px) {
  /* сцена: виден только виджет выбранной главы, по центру */
  .a2qa-stage { aspect-ratio: 4 / 4.3; border-radius: 20px; }
  .a2qa-stage .a2qa-w { left: 50% !important; right: auto !important; top: 50% !important; bottom: auto !important; width: 84% !important;
    transform: translate(-50%, -46%) scale(.96) !important; opacity: 0 !important; pointer-events: none; }
  .a2qa-stage[data-chapter="meter"] .a2qa-w-meter, .a2qa-stage[data-chapter="timers"] .a2qa-w-timers, .a2qa-stage[data-chapter="farm"] .a2qa-w-farm,
  .a2qa-stage[data-chapter="fights"] .a2qa-w-fights, .a2qa-stage[data-chapter="codex"] .a2qa-w-codex { opacity: 1 !important; filter: none !important; transform: translate(-50%, -50%) !important; }
  .a2qa-stage[data-chapter="codex"] .a2qa-w-codex { width: 94% !important; }
  .a2qa-chapters { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; gap: 18px; scrollbar-width: none; margin-right: -20px; padding-right: 20px; }
  .a2qa-chapters::-webkit-scrollbar { display: none; }
  .a2qa-chapters button { flex: 0 0 auto; min-width: 120px; scroll-snap-align: start; }
  .a2qa-news, .a2qa-steps { grid-template-columns: 1fr; }
  /* ролики — лента, листается пальцем */
  .a2qa-clips, .a2qa-clips-3 { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; gap: 14px; margin-right: -20px; padding-right: 20px; scrollbar-width: none; }
  .a2qa-clips::-webkit-scrollbar { display: none; }
  .a2qa-clips .a2qa-clip { flex: 0 0 78%; scroll-snap-align: start; }
  .a2qa-ping { grid-template-columns: 1fr; }
  .a2qa-log { grid-template-columns: 1fr; }
  .a2qa-log ul { border-top: 0; padding-top: 0; }
  .a2qa-get { padding: 18px; }
  .a2qa-btn-big strong { font-size: 19px; }
  .a2qa-count-big b { font-size: 32px; }
  .a2qa-lead { font-size: 16px; }
}

/* Каталог модулей (/app) и ряд модулей на главной — 1.2.0 */
.a2qa-mods { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.a2qa-mod { display: flex; flex-direction: column; background: var(--a2qa-panel); border: 1px solid var(--a2qa-edge); border-radius: 18px; overflow: hidden; scroll-margin-top: 96px; }
.a2qa-mod:target { border-color: var(--a2qa-gold); }
.a2qa-mod-media { background: #0d0a0c; aspect-ratio: 16 / 9; }
.a2qa-mod-media img, .a2qa-mod-media video { display: block; width: 100%; height: 100%; object-fit: contain; }
.a2qa-mod-fig { margin: 0; }
.a2qa-mod-cap { padding: 6px 20px 0; font-size: 12px; color: var(--a2qa-muted); }
.a2qa-mod-body { padding: 18px 20px 20px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.a2qa-mod-head { display: flex; align-items: center; gap: 14px; }
.a2qa-mod-ic { flex: none; width: 48px; height: 48px; padding: 4px; border-radius: 12px; object-fit: contain; background: #1a1418; border: 1px solid var(--a2qa-edge); }
.a2qa-mod h3 { font-size: 21px; }
.a2qa-mod p { color: var(--a2qa-muted); font-size: 15px; line-height: 1.6; margin: 0; }
.a2qa-mod-ver { margin-top: auto; font-size: 12.5px; color: var(--a2qa-gold); }
.a2qa-modstrip { margin-top: 28px; }
.a2qa-modstrip h3 { font-size: 18px; margin-bottom: 12px; }
.a2qa-modstrip div { display: flex; flex-wrap: wrap; gap: 8px; }
.a2qa-modstrip a { display: inline-flex; align-items: center; gap: 8px; padding: 5px 12px 5px 5px; border-radius: 999px; background: var(--a2qa-panel); border: 1px solid var(--a2qa-edge);
  color: var(--a2qa-ink) !important; text-decoration: none; font-size: 14px; transition: border-color .15s var(--a2qa-ease); }
.a2qa-modstrip a:hover { border-color: var(--a2qa-gold); }
.a2qa-modstrip .a2qa-mod-ic { width: 32px; height: 32px; padding: 2px; border-radius: 50%; }
@media (max-width: 720px) { .a2qa-mods { grid-template-columns: 1fr; } .a2qa-modstrip a { font-size: 13px; } }

@media (prefers-reduced-motion: reduce) {
  .a2qa *, .a2qa *::before, .a2qa *::after { animation: none !important; transition: none !important; }
  .a2qa-js .a2qa-stage:not(.is-in) .a2qa-w:not(.a2qa-w-codex) { opacity: .42; transform: none; }
  .a2qa-scene { transform: none !important; }
}
