/* Voices — лендинг.
   Концепция: голосовой канал как рация. Тёмная приборная панель, сигнальный синий бренда
   (#5865f2, как в приложении) и янтарь индикаторов. Разделы подписаны как каналы приложения.
   Одна тёмная тема намеренно: приложение тёмное, страница — его витрина. */
:root {
    --ink: #101015;      /* фон с уклоном в синий */
    --ink-1: #16161d;    /* панель */
    --ink-2: #1e1e28;    /* выпуклые элементы */
    --line: #2b2b38;
    --text: #eceaf3;
    --muted: #a6a4b6;
    --dim: #6f6d83;
    --signal: #6d78ff;   /* бренд, чуть светлее для тёмного фона */
    --brand: #5865f2;    /* кнопки — как в приложении */
    --brand-hover: #4752d6;
    --amber: #ffb547;    /* индикаторы, «в эфире», ноты */
    --live: #3ecf7a;     /* говорит — как обводка в приложении */
    --rose: #ff5d7a;
    --danger: #ef4f5a;

    --f-display: 'Dela Gothic One', 'Golos Text', system-ui, sans-serif;
    --f-body: 'Golos Text', system-ui, -apple-system, 'Segoe UI', sans-serif;
    --f-mono: 'Martian Mono', ui-monospace, 'Cascadia Mono', Consolas, monospace;

    --shell: 1200px;
    --r: 10px;
    --ease: cubic-bezier(0.2, 0.8, 0.2, 1);
    color-scheme: dark;
}

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

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
    background: var(--ink);
}

body {
    margin: 0;
    font: 400 16px/1.55 var(--f-body);
    color: var(--text);
    background: var(--ink);
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

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

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

h1,
h2,
h3,
p,
ul,
ol,
dl,
dd,
figure {
    margin: 0;
}

ul,
ol {
    padding: 0;
    list-style: none;
}

button {
    font: inherit;
    color: inherit;
}

h1,
h2 {
    font-family: var(--f-display);
    font-weight: 400;
    letter-spacing: -0.01em;
    line-height: 1.04;
    text-wrap: balance;
}

h3 {
    font-size: 17px;
    font-weight: 600;
    line-height: 1.3;
}

kbd {
    display: inline-block;
    padding: 3px 7px 2px;
    border: 1px solid var(--line);
    border-bottom-width: 2px;
    border-radius: 6px;
    background: var(--ink-2);
    font: 500 11px/1.4 var(--f-mono);
    color: var(--text);
}

:focus-visible {
    outline: 2px solid var(--amber);
    outline-offset: 3px;
    border-radius: 4px;
}

.skip {
    position: absolute;
    left: -9999px;
    top: 10px;
    z-index: 100;
    padding: 10px 14px;
    background: var(--brand);
    border-radius: 8px;
}

.skip:focus {
    left: 16px;
}

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
}

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

.shell--mid {
    width: min(100% - 40px, 920px);
}

/* Аватары как в приложении */
.ava {
    display: inline-grid;
    place-items: center;
    flex-shrink: 0;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    font: 700 11px/1 var(--f-body);
    font-style: normal;
    color: #fff;
}

.ava--lg {
    width: 52px;
    height: 52px;
    font-size: 19px;
}

.a1 { background: #e2457f; }
.a2 { background: #2fae74; }
.a3 { background: #1aa6e0; }
.a4 { background: #7280e8; }
.a5 { background: #3a3a4a; font-size: 9px; }

/* Кнопки */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    height: 42px;
    padding: 0 18px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    white-space: nowrap;
    transition: background-color 0.18s var(--ease), border-color 0.18s var(--ease), transform 0.18s var(--ease);
}

.btn svg {
    width: 18px;
    height: 18px;
    fill: currentColor;
    flex-shrink: 0;
}

.btn--lg {
    height: 54px;
    padding: 0 24px;
    font-size: 16px;
}

.btn--solid {
    background: var(--brand);
    color: #fff;
    box-shadow: 0 1px 0 rgba(255, 255, 255, 0.18) inset, 0 6px 0 -2px #3a43b8;
}

.btn--solid:hover {
    background: var(--brand-hover);
}

.btn--solid:active {
    transform: translateY(2px);
    box-shadow: 0 1px 0 rgba(255, 255, 255, 0.18) inset, 0 3px 0 -2px #3a43b8;
}

.btn--line {
    border: 1px solid var(--line);
    background: var(--ink-1);
}

.btn--line:hover {
    border-color: var(--dim);
}

.btn__ver {
    padding: 2px 6px;
    border-radius: 4px;
    background: rgba(0, 0, 0, 0.25);
    font: 500 11px/1.4 var(--f-mono);
}

.btn__ver:empty {
    display: none;
}

/* Шапка */
.head {
    position: sticky;
    top: env(safe-area-inset-top, 0px);
    z-index: 40;
    background: rgba(16, 16, 21, 0.86);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--line);
}

.head__inner {
    display: flex;
    align-items: center;
    gap: 28px;
    height: 64px;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font: 400 19px/1 var(--f-display);
}

.brand img {
    border-radius: 9px;
}

.head__nav {
    display: flex;
    gap: 22px;
    font-size: 14px;
    color: var(--muted);
}

.head__nav a:hover {
    color: var(--text);
}

.head__side {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-inline-start: auto;
}

.lang {
    position: relative;
}

.lang__button {
    height: 42px;
    min-width: 46px;
    padding: 0 10px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: transparent;
    font: 500 12px var(--f-mono);
    color: var(--muted);
    cursor: pointer;
}

.lang__button:hover {
    color: var(--text);
}

.lang__menu {
    position: absolute;
    top: calc(100% + 6px);
    right: 0;
    min-width: 140px;
    padding: 4px;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: var(--ink-2);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.5);
}

.lang__menu button {
    width: 100%;
    padding: 9px 10px;
    border: 0;
    border-radius: 7px;
    background: none;
    text-align: start;
    color: var(--muted);
    cursor: pointer;
}

.lang__menu button:hover,
.lang__menu button[aria-selected='true'] {
    background: rgba(109, 120, 255, 0.16);
    color: var(--text);
}

.burger {
    display: none;
    width: 42px;
    height: 42px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: none;
    cursor: pointer;
}

.burger span {
    display: block;
    width: 16px;
    height: 2px;
    margin: 4px auto;
    background: var(--text);
    transition: transform 0.2s var(--ease);
}

.burger[aria-expanded='true'] span:first-child {
    transform: translateY(3px) rotate(45deg);
}

.burger[aria-expanded='true'] span:last-child {
    transform: translateY(-3px) rotate(-45deg);
}

/* Первый экран */
.hero {
    position: relative;
    padding-block: clamp(40px, 6vw, 80px) clamp(36px, 5vw, 64px);
    border-bottom: 1px solid var(--line);
    background:
        linear-gradient(var(--ink), transparent 30%),
        repeating-linear-gradient(90deg, transparent 0 79px, rgba(255, 255, 255, 0.025) 79px 80px),
        var(--ink);
}

.hero__grid {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
    align-items: center;
    gap: clamp(32px, 5vw, 72px);
}

.hero__title {
    font-size: clamp(48px, 6.8vw, 96px);
    line-height: 0.92;
    text-transform: uppercase;
}

.hero__title > span {
    display: block;
}

.hero__line2 {
    display: flex !important;
    align-items: center;
    white-space: nowrap;
    gap: 0.16em;
    color: var(--signal);
}

/* Живой индикатор прямо в заголовке */
.hero__bars {
    display: inline-flex;
    align-items: flex-end;
    gap: 0.06em;
    height: 0.62em;
}

.hero__bars b {
    width: 0.1em;
    height: 30%;
    border-radius: 0.04em;
    background: var(--amber);
    animation: bar 1.1s ease-in-out infinite;
}

.hero__bars b:nth-child(2) { animation-delay: 0.18s; }
.hero__bars b:nth-child(3) { animation-delay: 0.36s; }
.hero__bars b:nth-child(4) { animation-delay: 0.54s; }

@keyframes bar {
    0%, 100% { height: 30%; }
    50% { height: 100%; }
}

.hero__lead {
    margin-top: 26px;
    max-width: 50ch;
    font-size: clamp(16px, 1.5vw, 18px);
    color: var(--muted);
}

.lamps {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 24px;
}

.lamps li {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 10px;
    border: 1px solid var(--line);
    border-radius: 6px;
    background: var(--ink-1);
    font: 500 11px/1.3 var(--f-mono);
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.lamps i {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--amber);
    box-shadow: 0 0 8px var(--amber);
}

.hero__cta {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 30px;
}

.hero__alt {
    display: flex;
    gap: 18px;
    margin-top: 16px;
    font-size: 14px;
    color: var(--muted);
}

.hero__alt a {
    border-bottom: 1px solid var(--line);
}

.hero__alt a:hover {
    color: var(--text);
    border-color: var(--muted);
}

/* Рация */
.radio {
    position: relative;
    padding: 18px;
    border: 1px solid var(--line);
    border-radius: 16px;
    background:
        radial-gradient(120% 80% at 100% 0%, rgba(109, 120, 255, 0.1), transparent 60%),
        var(--ink-1);
    box-shadow: 0 1px 0 rgba(255, 255, 255, 0.05) inset, 0 30px 70px rgba(0, 0, 0, 0.45);
}

.radio__top {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 13px;
}

.radio__server {
    font: 500 11px var(--f-mono);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--dim);
}

.radio__chan {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-weight: 600;
}

.radio__chan svg {
    width: 16px;
    height: 16px;
    fill: none;
    stroke: var(--live);
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.radio__count {
    margin-inline-start: auto;
    font: 500 11px var(--f-mono);
    color: var(--muted);
}

.radio__count b {
    color: var(--live);
}

/* Шкала частот */
.dial {
    position: relative;
    height: 54px;
    margin: 14px 0 10px;
    border-radius: 8px;
    background: var(--ink);
    border: 1px solid var(--line);
    overflow: hidden;
}

.dial__scale {
    position: absolute;
    inset: 0 0 auto;
    height: 18px;
    background:
        repeating-linear-gradient(90deg, var(--dim) 0 1px, transparent 1px 10px) 0 0 / 100% 8px no-repeat,
        repeating-linear-gradient(90deg, var(--muted) 0 1px, transparent 1px 50px) 0 0 / 100% 14px no-repeat;
    opacity: 0.55;
}

.dial span {
    position: absolute;
    left: var(--x);
    bottom: 9px;
    translate: -50% 0;
    font: 500 10px var(--f-mono);
    color: var(--dim);
    white-space: nowrap;
}

.dial span.is-on {
    color: var(--amber);
    text-shadow: 0 0 10px rgba(255, 181, 71, 0.6);
}

.dial__needle {
    position: absolute;
    left: 56%;
    top: 0;
    bottom: 0;
    width: 2px;
    background: var(--amber);
    box-shadow: 0 0 10px var(--amber);
    animation: needle 6s ease-in-out infinite;
}

@keyframes needle {
    0%, 100% { translate: -2px 0; }
    50% { translate: 2px 0; }
}

/* Участники и индикаторы громкости */
.crew {
    display: grid;
    gap: 2px;
}

.crew li {
    display: grid;
    grid-template-columns: 28px minmax(0, 1fr) auto 96px;
    align-items: center;
    gap: 10px;
    padding: 7px 8px;
    border-radius: 8px;
    font-size: 14px;
    transition: background-color 0.2s var(--ease);
}

.crew li.is-talking {
    background: rgba(62, 207, 122, 0.08);
}

.crew li.is-talking .ava {
    box-shadow: 0 0 0 2px var(--ink-1), 0 0 0 4px var(--live);
}

.crew__name {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.crew__mode {
    font: 400 10px var(--f-mono);
    color: var(--dim);
}

.crew li.is-muted .crew__mode {
    color: var(--danger);
}

.crew li.is-you {
    border: 1px dashed var(--line);
}

.vu {
    position: relative;
    height: 10px;
    border-radius: 2px;
    background: repeating-linear-gradient(90deg, #22222c 0 6px, transparent 6px 8px);
    overflow: hidden;
}

/* Подсвеченная часть: сегменты от зелёного к янтарному, ширину задаёт скрипт через --lvl */
.vu__fill {
    position: absolute;
    inset: 0 auto 0 0;
    width: calc(var(--lvl, 0) * 100%);
    background:
        repeating-linear-gradient(90deg, transparent 0 6px, var(--ink-1) 6px 8px),
        linear-gradient(90deg, var(--live) 0 60%, var(--amber) 60% 85%, var(--danger) 85%);
    background-size: 8px 100%, 96px 100%;
    transition: width 0.08s linear;
}

.feed {
    display: grid;
    gap: 4px;
    min-height: 66px;
    margin: 12px 0;
    padding: 10px 12px;
    border-radius: 8px;
    background: var(--ink);
    font-size: 13px;
    color: var(--muted);
}

.feed li {
    animation: feed-in 0.35s var(--ease);
}

.feed b {
    color: var(--text);
    font-weight: 600;
}

@keyframes feed-in {
    from { opacity: 0; translate: 0 6px; }
}

.ptt {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    padding: 14px 16px;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: var(--ink-2);
    cursor: pointer;
    user-select: none;
    -webkit-user-select: none;
    touch-action: none;
    transition: background-color 0.15s var(--ease), border-color 0.15s var(--ease);
}

.ptt:hover {
    border-color: var(--dim);
}

.ptt__lamp {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #3a2a16;
    border: 1px solid #5a4020;
}

.ptt__text {
    font-weight: 600;
    text-align: start;
}

.ptt kbd {
    margin-inline-start: auto;
}

.ptt[aria-pressed='true'] {
    background: rgba(255, 181, 71, 0.1);
    border-color: var(--amber);
}

.ptt[aria-pressed='true'] .ptt__lamp {
    background: var(--amber);
    border-color: var(--amber);
    box-shadow: 0 0 12px var(--amber);
}

/* Скачать: слоты с индикатором версии */
.dl {
    padding-block: 28px 8px;
}

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

.slot {
    display: grid;
    grid-template-rows: auto auto 1fr auto;
    gap: 10px;
    padding: 18px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: var(--ink-1);
    transition: border-color 0.18s var(--ease), translate 0.18s var(--ease);
}

.slot:hover {
    border-color: var(--signal);
    translate: 0 -2px;
}

.slot__os {
    font: 400 22px/1 var(--f-display);
}

.slot__led {
    display: flex;
    gap: 10px;
    justify-self: start;
    padding: 5px 9px;
    border-radius: 5px;
    background: #0a0a0d;
    border: 1px solid #22222c;
    font: 500 12px var(--f-mono);
    color: var(--amber);
    text-shadow: 0 0 8px rgba(255, 181, 71, 0.55);
}

.slot__led span:empty {
    display: none;
}

.slot__text {
    font-size: 14px;
    color: var(--muted);
}

.slot__go {
    justify-self: start;
    font-weight: 600;
    font-size: 14px;
    color: var(--signal);
}

.slot__go::after {
    content: ' →';
}

.dl__note {
    margin-top: 12px;
    font-size: 13px;
    color: var(--dim);
}

.dl__note a {
    color: var(--muted);
    border-bottom: 1px solid var(--line);
}

/* Секции */
.sec {
    padding-block: clamp(64px, 8vw, 112px);
}

.sec--plain {
    padding-block: clamp(48px, 6vw, 80px);
}

.sec__head {
    display: grid;
    gap: 14px;
    margin-bottom: clamp(28px, 4vw, 44px);
}

.chan {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font: 500 13px var(--f-mono);
    color: var(--dim);
}

.chan span {
    color: var(--signal);
}

.chan--voice svg {
    width: 16px;
    height: 16px;
    fill: none;
    stroke: var(--live);
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.chan--voice span {
    color: var(--live);
}

.sec h2 {
    font-size: clamp(32px, 4.4vw, 56px);
    max-width: 18ch;
}

.sec__lead {
    max-width: 60ch;
    font-size: clamp(15px, 1.4vw, 17px);
    color: var(--muted);
}

/* Модули возможностей */
.bento {
    display: grid;
    grid-template-columns: repeat(12, minmax(0, 1fr));
    gap: 14px;
}

.mod {
    display: grid;
    align-content: start;
    gap: 14px;
    min-width: 0;
    padding: 20px;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: var(--ink-1);
}

.mod > p {
    font-size: 14px;
    color: var(--muted);
}

.mod__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
}

.mod--noise { grid-column: span 5; grid-template-rows: auto minmax(120px, 1fr) auto; }
.mod--noise .wave { height: 100%; }
.mod--stream { grid-column: span 7; }
.mod--chat { grid-column: span 7; }
.mod--spec { grid-column: span 5; }

/* Переключатель */
.toggle {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 4px 10px 4px 4px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: var(--ink);
    cursor: pointer;
    font: 500 11px var(--f-mono);
    text-transform: uppercase;
}

.toggle__knob {
    position: relative;
    width: 34px;
    height: 18px;
    border-radius: 999px;
    background: var(--ink-2);
    transition: background-color 0.18s var(--ease);
}

.toggle__knob::after {
    content: '';
    position: absolute;
    top: 2px;
    left: 2px;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: var(--muted);
    transition: translate 0.18s var(--ease), background-color 0.18s var(--ease);
}

.toggle[aria-pressed='true'] .toggle__knob {
    background: var(--brand);
}

.toggle[aria-pressed='true'] .toggle__knob::after {
    translate: 16px 0;
    background: #fff;
}

.toggle--sm {
    padding: 3px;
}

.wave {
    width: 100%;
    height: 120px;
    border-radius: 8px;
    background: var(--ink);
}

/* Сегментированный выбор */
.seg {
    display: inline-flex;
    padding: 3px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--ink);
}

.seg button {
    padding: 6px 10px;
    border: 0;
    border-radius: 6px;
    background: none;
    font: 500 11px var(--f-mono);
    color: var(--muted);
    cursor: pointer;
}

.seg button[aria-checked='true'] {
    background: var(--ink-2);
    color: var(--amber);
}

.screen {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid var(--line);
    background: var(--ink);
}

.screen img {
    width: 100%;
    transition: filter 0.3s var(--ease);
}

.screen[data-q='720'] img { filter: blur(1.4px) saturate(0.85); }
.screen[data-q='1080'] img { filter: blur(0.5px); }
.screen[data-q='1080p60'] img { filter: none; }

.screen__tag {
    position: absolute;
    left: 10px;
    top: 10px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 8px;
    border-radius: 5px;
    background: rgba(10, 10, 13, 0.85);
    font: 500 11px var(--f-mono);
}

.screen__tag i {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--danger);
    animation: blink 1.2s steps(2) infinite;
}

@keyframes blink {
    50% { opacity: 0.2; }
}

/* Мини-чат */
.msgs {
    display: grid;
    gap: 12px;
    padding: 14px;
    border-radius: 8px;
    background: var(--ink);
}

.msg {
    display: grid;
    grid-template-columns: 28px minmax(0, 1fr);
    gap: 10px;
    font-size: 14px;
}

.msg b {
    font-weight: 600;
}

.msg time {
    margin-inline-start: 6px;
    font: 400 10px var(--f-mono);
    color: var(--dim);
}

.quote {
    margin: 2px 0;
    padding-inline-start: 8px;
    border-inline-start: 2px solid var(--line);
    font-size: 12px;
    color: var(--dim);
}

.reacts {
    display: flex;
    gap: 6px;
    margin-top: 6px;
}

.react {
    padding: 2px 8px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: var(--ink-1);
    font-size: 12px;
    cursor: pointer;
}

.react span {
    font-family: var(--f-mono);
    font-size: 11px;
}

.react[aria-pressed='true'] {
    border-color: var(--signal);
    background: rgba(109, 120, 255, 0.16);
}

.voice {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-top: 4px;
    padding: 6px 12px 6px 6px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: var(--ink-1);
    cursor: pointer;
}

.voice__play {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: var(--brand) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='white'%3E%3Cpath d='M9 7v10l8-5z'/%3E%3C/svg%3E") center / 16px no-repeat;
}

.voice[aria-pressed='true'] .voice__play {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='white'%3E%3Cpath d='M8 7h3v10H8zM13 7h3v10h-3z'/%3E%3C/svg%3E");
}

/* Волна голосового: полоски разной высоты одним градиентом-маской */
.voice__wave {
    position: relative;
    width: 110px;
    height: 20px;
    --p: 0%;
    background:
        linear-gradient(90deg, var(--signal) var(--p), var(--dim) var(--p));
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 110 20'%3E%3Cg fill='black'%3E%3Crect x='0' y='8' width='3' height='4' rx='1'/%3E%3Crect x='5' y='5' width='3' height='10' rx='1'/%3E%3Crect x='10' y='2' width='3' height='16' rx='1'/%3E%3Crect x='15' y='6' width='3' height='8' rx='1'/%3E%3Crect x='20' y='3' width='3' height='14' rx='1'/%3E%3Crect x='25' y='7' width='3' height='6' rx='1'/%3E%3Crect x='30' y='1' width='3' height='18' rx='1'/%3E%3Crect x='35' y='5' width='3' height='10' rx='1'/%3E%3Crect x='40' y='8' width='3' height='4' rx='1'/%3E%3Crect x='45' y='4' width='3' height='12' rx='1'/%3E%3Crect x='50' y='2' width='3' height='16' rx='1'/%3E%3Crect x='55' y='6' width='3' height='8' rx='1'/%3E%3Crect x='60' y='3' width='3' height='14' rx='1'/%3E%3Crect x='65' y='8' width='3' height='4' rx='1'/%3E%3Crect x='70' y='5' width='3' height='10' rx='1'/%3E%3Crect x='75' y='2' width='3' height='16' rx='1'/%3E%3Crect x='80' y='7' width='3' height='6' rx='1'/%3E%3Crect x='85' y='4' width='3' height='12' rx='1'/%3E%3Crect x='90' y='6' width='3' height='8' rx='1'/%3E%3Crect x='95' y='8' width='3' height='4' rx='1'/%3E%3Crect x='100' y='5' width='3' height='10' rx='1'/%3E%3Crect x='105' y='8' width='3' height='4' rx='1'/%3E%3C/g%3E%3C/svg%3E") center / 100% 100% no-repeat;
    mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 110 20'%3E%3Cg fill='black'%3E%3Crect x='0' y='8' width='3' height='4' rx='1'/%3E%3Crect x='5' y='5' width='3' height='10' rx='1'/%3E%3Crect x='10' y='2' width='3' height='16' rx='1'/%3E%3Crect x='15' y='6' width='3' height='8' rx='1'/%3E%3Crect x='20' y='3' width='3' height='14' rx='1'/%3E%3Crect x='25' y='7' width='3' height='6' rx='1'/%3E%3Crect x='30' y='1' width='3' height='18' rx='1'/%3E%3Crect x='35' y='5' width='3' height='10' rx='1'/%3E%3Crect x='40' y='8' width='3' height='4' rx='1'/%3E%3Crect x='45' y='4' width='3' height='12' rx='1'/%3E%3Crect x='50' y='2' width='3' height='16' rx='1'/%3E%3Crect x='55' y='6' width='3' height='8' rx='1'/%3E%3Crect x='60' y='3' width='3' height='14' rx='1'/%3E%3Crect x='65' y='8' width='3' height='4' rx='1'/%3E%3Crect x='70' y='5' width='3' height='10' rx='1'/%3E%3Crect x='75' y='2' width='3' height='16' rx='1'/%3E%3Crect x='80' y='7' width='3' height='6' rx='1'/%3E%3Crect x='85' y='4' width='3' height='12' rx='1'/%3E%3Crect x='90' y='6' width='3' height='8' rx='1'/%3E%3Crect x='95' y='8' width='3' height='4' rx='1'/%3E%3Crect x='100' y='5' width='3' height='10' rx='1'/%3E%3Crect x='105' y='8' width='3' height='4' rx='1'/%3E%3C/g%3E%3C/svg%3E") center / 100% 100% no-repeat;
}

.voice__time {
    font: 500 11px var(--f-mono);
    color: var(--muted);
}

.spoiler {
    padding: 0 4px;
    border: 0;
    border-radius: 4px;
    background: var(--ink-2);
    color: transparent;
    text-shadow: 0 0 6px rgba(236, 234, 243, 0.5);
    cursor: pointer;
    transition: color 0.2s var(--ease), text-shadow 0.2s var(--ease);
}

.spoiler[aria-pressed='true'] {
    color: var(--text);
    text-shadow: none;
    background: rgba(255, 255, 255, 0.06);
}

/* Лимиты: строки с точками-выносками, как паспорт устройства */
.spec {
    display: grid;
    gap: 2px;
}

.spec div {
    display: flex;
    align-items: baseline;
    gap: 8px;
    padding: 9px 0;
    border-bottom: 1px dashed var(--line);
    font-size: 14px;
}

.spec div:last-child {
    border-bottom: 0;
}

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

.spec dd {
    margin-inline-start: auto;
    font: 600 13px var(--f-mono);
    color: var(--amber);
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
}

/* Снимок звонка с пометками */
.sec--calls {
    background: var(--ink-1);
    border-block: 1px solid var(--line);
}

.annot {
    display: grid;
    grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr);
    gap: clamp(20px, 3vw, 40px);
    align-items: center;
}

.annot__shot {
    position: relative;
    border: 1px solid var(--line);
    border-radius: 12px;
    overflow: hidden;
    background: var(--ink);
}

.pin {
    position: absolute;
    left: var(--x);
    top: var(--y);
    translate: -50% -50%;
    display: grid;
    place-items: center;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: var(--amber);
    color: #1a1206;
    font: 600 12px var(--f-mono);
    box-shadow: 0 0 0 4px rgba(255, 181, 71, 0.25);
}

.annot__list {
    display: grid;
    gap: 16px;
    counter-reset: pin;
}

.annot__list li {
    position: relative;
    padding-inline-start: 40px;
    font-size: 15px;
    color: var(--muted);
    counter-increment: pin;
}

.annot__list li::before {
    content: counter(pin);
    position: absolute;
    inset-inline-start: 0;
    top: 0;
    display: grid;
    place-items: center;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    border: 1px solid var(--amber);
    color: var(--amber);
    font: 600 12px var(--f-mono);
}

.facts {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0;
    margin-top: clamp(32px, 4vw, 48px);
    border-top: 1px solid var(--line);
}

.facts li {
    display: grid;
    gap: 6px;
    padding: 20px 20px 0 0;
    font-size: 14px;
    color: var(--muted);
}

.facts li + li {
    padding-inline-start: 20px;
    border-inline-start: 1px solid var(--line);
}

.facts b {
    color: var(--text);
    font-weight: 600;
}

/* Текст + картинка */
.split {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
    gap: clamp(32px, 5vw, 72px);
    align-items: center;
}

.split--rev {
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
}

.split__text {
    display: grid;
    gap: 16px;
    min-width: 0;
}

.split__text h2 {
    font-size: clamp(30px, 3.8vw, 48px);
}

.split__more {
    font-size: 14px;
    color: var(--dim);
}

.split__cta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 6px;
}

/* Оверлей поверх игры */
.overlay__game {
    position: relative;
    aspect-ratio: 16 / 10;
    max-width: 100%;
    border-radius: 14px;
    border: 1px solid var(--line);
    overflow: hidden;
    background:
        linear-gradient(180deg, rgba(16, 16, 21, 0) 55%, rgba(16, 16, 21, 0.7)),
        linear-gradient(160deg, #2b3a2f 0%, #1c2420 40%, #3a3326 70%, #151512 100%);
}

/* Силуэт уровня: стены и проход, без картинок */
.overlay__game::before {
    content: '';
    position: absolute;
    inset: 22% 0 0;
    background:
        linear-gradient(90deg, #121410 0 18%, transparent 18% 82%, #121410 82%),
        linear-gradient(180deg, transparent 0 60%, #1a1c16 60%);
    clip-path: polygon(0 0, 30% 22%, 70% 22%, 100% 0, 100% 100%, 0 100%);
    opacity: 0.85;
}

.overlay__game::after {
    content: '';
    position: absolute;
    left: 50%;
    top: 52%;
    width: 22px;
    height: 22px;
    translate: -50% -50%;
    background:
        linear-gradient(var(--text), var(--text)) center / 2px 8px no-repeat,
        linear-gradient(var(--text), var(--text)) center / 8px 2px no-repeat;
    opacity: 0.7;
}

.overlay__hud {
    position: absolute;
    left: 14px;
    top: 14px;
    z-index: 1;
    display: grid;
    gap: 8px;
    width: min(220px, 58%);
}

.overlay__panel {
    padding: 9px 11px;
    border-radius: 8px;
    background: rgba(16, 16, 21, 0.82);
    border: 1px solid rgba(255, 255, 255, 0.08);
    font-size: 12.5px;
}

.overlay__panel > b {
    display: block;
    margin-bottom: 6px;
    font: 500 10px var(--f-mono);
    color: var(--muted);
}

.overlay__panel p {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 2px 0;
}

.overlay__panel .ava {
    width: 18px;
    height: 18px;
    font-size: 8px;
}

.overlay__panel .is-talk .ava {
    box-shadow: 0 0 0 2px var(--live);
}

.overlay__panel .is-off {
    color: var(--dim);
}

.overlay__toast {
    display: flex;
    align-items: center;
    gap: 9px;
    animation: feed-in 0.5s 0.4s var(--ease) both;
}

.overlay__toast div {
    display: grid;
    line-height: 1.3;
}

.overlay__toast span {
    color: var(--muted);
}

.overlay__ammo {
    position: absolute;
    right: 16px;
    bottom: 44px;
    z-index: 1;
    font: 600 22px var(--f-mono);
    color: var(--text);
    opacity: 0.85;
}

.overlay__keys {
    position: absolute;
    right: 14px;
    bottom: 12px;
    z-index: 1;
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 12px;
    color: var(--muted);
}

.overlay__keys span {
    margin-inline-start: 4px;
}

.keys {
    display: grid;
    gap: 8px;
}

.keys div {
    display: flex;
    align-items: center;
    gap: 14px;
    font-size: 14px;
}

.keys dt {
    display: flex;
    gap: 4px;
    min-width: 150px;
}

.keys dd {
    color: var(--muted);
}

/* Прогресс */
.sec--progress {
    background:
        radial-gradient(60% 50% at 0% 100%, rgba(255, 181, 71, 0.07), transparent 70%),
        var(--ink);
}

.prog {
    display: grid;
    grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
    gap: clamp(24px, 4vw, 56px);
    align-items: start;
}

.player {
    display: grid;
    gap: 14px;
    padding: 20px;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: var(--ink-1);
}

.player__top {
    display: flex;
    align-items: center;
    gap: 14px;
}

.player__top div {
    display: grid;
    line-height: 1.3;
}

.player__top b {
    font-size: 17px;
}

.player__top span {
    font-size: 13px;
    color: var(--muted);
}

.notes {
    margin-inline-start: auto;
    padding: 5px 10px;
    border-radius: 6px;
    background: #0a0a0d;
    font: 600 13px var(--f-mono) !important;
    color: var(--amber) !important;
}

.xp {
    position: relative;
    height: 22px;
    border-radius: 5px;
    background: var(--ink);
    overflow: hidden;
}

.xp__fill {
    position: absolute;
    inset: 0 auto 0 0;
    background: repeating-linear-gradient(90deg, var(--brand) 0 10px, #4b56df 10px 12px);
    transition: width 0.8s var(--ease);
}

.xp__num {
    position: relative;
    display: block;
    padding-inline-start: 8px;
    font: 500 11px/22px var(--f-mono);
}

.quests {
    display: grid;
    gap: 6px;
}

.quests li {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 9px 10px;
    border-radius: 7px;
    background: var(--ink);
    font-size: 14px;
}

.quests li::before {
    content: '';
    width: 16px;
    height: 16px;
    flex-shrink: 0;
    border-radius: 4px;
    border: 1.5px solid var(--line);
}

.quests li.is-done::before {
    border-color: var(--live);
    background: var(--live) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23101015' stroke-width='4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6L9 17l-5-5'/%3E%3C/svg%3E") center / 11px no-repeat;
}

.quests b {
    margin-inline-start: auto;
    font: 500 12px var(--f-mono);
    color: var(--signal);
}

.chest {
    display: flex;
    align-items: center;
    gap: 14px;
    width: 100%;
    padding: 14px;
    border: 1px solid rgba(255, 181, 71, 0.5);
    border-radius: 10px;
    background: rgba(255, 181, 71, 0.06);
    text-align: start;
    cursor: pointer;
    transition: background-color 0.2s var(--ease);
}

.chest:hover {
    background: rgba(255, 181, 71, 0.12);
}

.chest__box {
    position: relative;
    width: 44px;
    height: 38px;
    flex-shrink: 0;
}

.chest__body,
.chest__lid {
    position: absolute;
    left: 0;
    right: 0;
    border: 2px solid var(--amber);
    background: #2a1e0c;
}

.chest__body {
    bottom: 0;
    height: 22px;
    border-radius: 0 0 5px 5px;
    background:
        linear-gradient(90deg, transparent 0 18%, rgba(255, 181, 71, 0.45) 18% 26%, transparent 26% 74%, rgba(255, 181, 71, 0.45) 74% 82%, transparent 82%),
        #2a1e0c;
}

/* Замок посередине */
.chest__body::after {
    content: '';
    position: absolute;
    left: 50%;
    top: -6px;
    width: 10px;
    height: 12px;
    translate: -50% 0;
    border-radius: 2px;
    background: var(--amber);
    box-shadow: 0 0 0 2px #2a1e0c;
}

.chest__lid {
    top: 0;
    height: 16px;
    border-radius: 14px 14px 0 0;
    transform-origin: 0 100%;
    transition: transform 0.4s var(--ease);
}

.chest.is-open .chest__lid {
    transform: rotate(-28deg) translate(-2px, -4px);
}

.chest__text {
    display: grid;
    line-height: 1.35;
}

.chest__text b {
    font-weight: 600;
}

.chest__text span {
    font-size: 13px;
    color: var(--muted);
}

.chest__text span[data-rarity] {
    font-weight: 600;
}

[data-rarity='common'] { color: var(--muted) !important; }
[data-rarity='rare'] { color: #4fb3ff !important; }
[data-rarity='epic'] { color: #b57bff !important; }
[data-rarity='legendary'] { color: var(--amber) !important; }
[data-rarity='mythic'] { color: var(--rose) !important; }

.mech {
    display: grid;
}

.mech li {
    display: grid;
    grid-template-columns: 170px minmax(0, 1fr);
    gap: 16px;
    padding: 16px 0;
    border-bottom: 1px solid var(--line);
    font-size: 15px;
}

.mech li:first-child {
    padding-top: 0;
}

.mech b {
    font-weight: 600;
}

.mech span {
    color: var(--muted);
}

/* Роли */
.roles {
    padding: 18px;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: var(--ink-1);
}

.roles__head {
    display: flex;
    justify-content: space-between;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--line);
    font: 500 11px var(--f-mono);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--dim);
}

.roles__list li {
    display: grid;
    grid-template-columns: 12px 120px minmax(0, 1fr);
    align-items: center;
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px solid var(--line);
    font-size: 14px;
}

.roles__list i {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--c);
}

.roles__list b {
    color: var(--c);
    font-weight: 600;
}

.roles__list span {
    font: 400 11px var(--f-mono);
    color: var(--muted);
}

.roles__perm {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 14px;
    font-size: 14px;
}

.lines {
    display: grid;
    gap: 10px;
}

.lines li {
    position: relative;
    padding-inline-start: 22px;
    font-size: 15px;
    color: var(--muted);
}

.lines li::before {
    content: '';
    position: absolute;
    inset-inline-start: 0;
    top: 0.62em;
    width: 10px;
    height: 2px;
    background: var(--signal);
}

/* Аккаунт: таблица-лист */
.sheet {
    display: grid;
    border-top: 1px solid var(--line);
}

.sheet div {
    display: grid;
    grid-template-columns: 200px minmax(0, 1fr);
    gap: 20px;
    padding: 18px 0;
    border-bottom: 1px solid var(--line);
}

.sheet dt {
    font: 500 13px var(--f-mono);
    color: var(--signal);
}

.sheet dd {
    max-width: 64ch;
    color: var(--muted);
}

/* Телефоны */
.phones {
    display: flex;
    justify-content: center;
    gap: 16px;
}

.phones img {
    width: clamp(130px, 17vw, 210px);
    border: 1px solid var(--line);
    border-radius: 24px;
}

.phones img:last-child {
    margin-top: 48px;
}

/* Сравнение */
.vs {
    overflow-x: auto;
    border: 1px solid var(--line);
    border-radius: 12px;
}

.vs table {
    width: 100%;
    min-width: 520px;
    border-collapse: collapse;
    font-size: 15px;
}

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

.vs tbody tr:last-child > * {
    border-bottom: 0;
}

.vs thead th {
    font: 500 12px var(--f-mono);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--dim);
    background: var(--ink-1);
}

.vs tbody th {
    font-weight: 500;
    color: var(--muted);
    width: 26%;
}

.vs td {
    color: var(--muted);
}

.vs .is-us {
    color: var(--text);
    background: rgba(109, 120, 255, 0.07);
}

.vs thead .is-us {
    color: var(--signal);
}

.vs__note {
    margin-top: 10px;
    font-size: 12px;
    color: var(--dim);
}

/* Вопросы */
.faq {
    border-top: 1px solid var(--line);
}

.faq details {
    border-bottom: 1px solid var(--line);
}

.faq summary {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    padding: 18px 0;
    font-size: 17px;
    font-weight: 600;
    cursor: pointer;
    list-style: none;
}

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

.faq summary::after {
    content: '+';
    font: 500 18px var(--f-mono);
    color: var(--signal);
}

.faq details[open] summary::after {
    content: '−';
}

.faq p {
    max-width: 66ch;
    padding-bottom: 18px;
    color: var(--muted);
}

/* Финал */
.end {
    padding-block: clamp(64px, 9vw, 120px);
    border-top: 1px solid var(--line);
    background:
        repeating-linear-gradient(90deg, transparent 0 79px, rgba(255, 255, 255, 0.025) 79px 80px),
        var(--ink);
}

.end__inner {
    display: grid;
    justify-items: start;
    gap: 8px;
}

.end h2 {
    font-size: clamp(44px, 8vw, 104px);
    text-transform: uppercase;
    line-height: 0.95;
}

/* Подвал */
.foot {
    padding-block: 28px;
    border-top: 1px solid var(--line);
}

.foot__inner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 24px;
}

.foot .brand {
    font-size: 16px;
}

.foot__nav {
    display: flex;
    gap: 20px;
    font-size: 14px;
    color: var(--muted);
}

.foot__nav a:hover {
    color: var(--text);
}

.foot__note {
    margin-inline-start: auto;
    font-size: 12px;
    color: var(--dim);
}

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

    *,
    *::before,
    *::after {
        animation: none !important;
        transition: none !important;
    }
}

/* Планшет */
@media (max-width: 1024px) {
    .hero__grid,
    .split,
    .split--rev,
    .prog,
    .annot {
        grid-template-columns: minmax(0, 1fr);
    }

    .radio {
        max-width: 560px;
    }

    .mod--noise,
    .mod--stream,
    .mod--chat,
    .mod--spec {
        grid-column: span 12;
    }

    .split--rev .roles {
        order: 2;
    }

    .head__nav {
        position: fixed;
        inset: 64px 0 auto;
        flex-direction: column;
        gap: 0;
        padding: 6px 20px 16px;
        background: var(--ink);
        border-bottom: 1px solid var(--line);
        font-size: 16px;
        translate: 0 -140%;
        transition: translate 0.25s var(--ease);
    }

    .head__nav.is-open {
        translate: 0 0;
    }

    .head__nav a {
        padding: 13px 0;
        border-bottom: 1px solid var(--line);
    }

    .burger {
        display: block;
    }

    .head__login {
        display: none;
    }
}

/* Телефон */
@media (max-width: 720px) {
    .shell,
    .shell--mid {
        width: min(100% - 32px, var(--shell));
    }

    .head__inner {
        gap: 12px;
    }

    .brand span {
        display: none;
    }

    .dl__row,
    .facts {
        grid-template-columns: minmax(0, 1fr);
    }

    .facts li,
    .facts li + li {
        padding: 16px 0;
        border-inline-start: 0;
        border-bottom: 1px solid var(--line);
    }

    .crew li {
        grid-template-columns: 28px minmax(0, 1fr) 72px;
    }

    .crew__mode {
        display: none;
    }

    .mech li,
    .sheet div {
        grid-template-columns: minmax(0, 1fr);
        gap: 4px;
    }

    .roles__list li {
        grid-template-columns: 12px minmax(0, 1fr);
    }

    .roles__list span {
        grid-column: 2;
    }

    .keys dt {
        min-width: 120px;
    }

    .btn--lg {
        width: 100%;
    }

    .phones img:last-child {
        display: none;
    }

    .foot__note {
        margin-inline-start: 0;
    }

    .overlay__ammo {
        display: none;
    }
}
