/* just pulse. Чёрный фон и красная линия пульса — как на аватарке канала.
   Один шрифт — Onest (лежит локально в /fonts); иерархия держится на размере и насыщенности. */

@font-face {
    font-family: "Onest";
    src: url("/fonts/onest-cyrillic-wght-normal.woff2") format("woff2");
    font-weight: 100 900;
    font-display: swap;
    unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
    font-family: "Onest";
    src: url("/fonts/onest-cyrillic-ext-wght-normal.woff2") format("woff2");
    font-weight: 100 900;
    font-display: swap;
    unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
}
@font-face {
    font-family: "Onest";
    src: url("/fonts/onest-latin-wght-normal.woff2") format("woff2");
    font-weight: 100 900;
    font-display: swap;
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
    font-family: "Onest";
    src: url("/fonts/onest-latin-ext-wght-normal.woff2") format("woff2");
    font-weight: 100 900;
    font-display: swap;
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
    --bg: #050506;
    --surface: #0e0e10;
    --raised: #16161a;
    --hover: #1d1d22;
    --line: #25252b;
    --line-strong: #3b3b44;

    /* приглушённый коралловый красный вместо «сигнального» */
    --pulse: #e5484d;
    --pulse-hover: #ec5d62;
    --pulse-deep: #b8353b;
    --pulse-ink: #1c0507; /* текст на красной кнопке */
    --ember: #f2878a;
    --pulse-wash: rgba(229, 72, 77, 0.12);
    --pulse-glow: rgba(229, 72, 77, 0.5);

    --text: #f4f1ed;
    --muted: #a3a0a6;
    --faint: #76737a;
    --ok: #4fd98b; /* только статусы «выполнено» */
    --ok-wash: rgba(79, 217, 139, 0.12);
    --warn: #ffb648;

    --display: "Onest", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
    --body: "Onest", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

    --r-s: 10px;
    --r-m: 14px;
    --r-l: 22px;
    --wrap: 1140px;
    --tabbar-h: 62px;
    --safe-b: env(safe-area-inset-bottom, 0px);
}

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

html {
    background: var(--bg);
    color-scheme: dark;
    -webkit-text-size-adjust: 100%;
    scroll-behavior: smooth;
}
html.no-scroll {
    overflow: hidden;
}

body {
    margin: 0;
    min-height: 100dvh;
    background: transparent; /* фон рисует .backdrop под содержимым */
    color: var(--text);
    font: 400 16px/1.5 var(--body);
    font-feature-settings: "tnum" 1;
    -webkit-font-smoothing: antialiased;
    -webkit-tap-highlight-color: transparent;
}

h1,
h2,
h3,
p,
ul,
ol,
dl,
dd {
    margin: 0;
}
ul,
ol {
    padding: 0;
    list-style: none;
}
a {
    color: inherit;
    text-decoration: none;
}
button,
input,
textarea {
    font: inherit;
    color: inherit;
}
button {
    cursor: pointer;
    border: 0;
    background: none;
    padding: 0;
}
[hidden] {
    display: none !important;
}
/* Рамка фокуса только при работе с клавиатуры (класс kbd ставит app.js по Tab).
   После клика или тапа элемент не обводится. */
:focus,
:focus-visible {
    outline: none;
}
html.kbd :focus-visible {
    outline: 2px solid var(--ember);
    outline-offset: 2px;
    border-radius: 6px;
}

/* ---------- фон ---------- */
/* Размытые красные пятна медленно плывут под интерфейсом, поверх тонкой сетки.
   Анимируется только transform: на телефоне и в Telegram это не нагружает процессор. */
.backdrop {
    position: fixed;
    inset: 0;
    z-index: -1;
    overflow: hidden;
    pointer-events: none;
    background: var(--bg);
}
.backdrop::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image: linear-gradient(rgba(255, 255, 255, 0.028) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.028) 1px, transparent 1px);
    background-size: 56px 56px;
    -webkit-mask-image: radial-gradient(120% 80% at 50% 0%, #000 20%, transparent 75%);
    mask-image: radial-gradient(120% 80% at 50% 0%, #000 20%, transparent 75%);
}
.backdrop__blob {
    position: absolute;
    width: 70vmax;
    height: 70vmax;
    border-radius: 50%;
    will-change: transform;
}
.backdrop__blob--red {
    top: -38vmax;
    left: -18vmax;
    background: radial-gradient(closest-side, rgba(229, 72, 77, 0.26), rgba(229, 72, 77, 0.08) 55%, transparent);
    animation: drift-red 34s ease-in-out infinite alternate;
}
.backdrop__blob--deep {
    right: -30vmax;
    bottom: -42vmax;
    background: radial-gradient(closest-side, rgba(184, 53, 59, 0.16), rgba(184, 53, 59, 0.05) 55%, transparent);
    animation: drift-deep 42s ease-in-out infinite alternate;
}
.backdrop__blob--ember {
    top: 18vh;
    right: -22vmax;
    width: 46vmax;
    height: 46vmax;
    background: radial-gradient(closest-side, rgba(229, 72, 77, 0.09), transparent);
    animation: drift-ember 50s ease-in-out infinite alternate;
}
/* линия пульса, которая изредка пробегает по низу экрана */
.backdrop__beat {
    position: absolute;
    left: 0;
    bottom: 14vh;
    width: 100%;
    height: 64px;
    opacity: 0.22;
}
.backdrop__beat path {
    fill: none;
    stroke: url(#beat-fade);
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-dasharray: 0.16 1;
    stroke-dashoffset: 0.16;
    animation: beat-run 9s cubic-bezier(0.45, 0, 0.25, 1) infinite;
}
@keyframes drift-red {
    0% {
        transform: translate3d(0, 0, 0) scale(1);
    }
    50% {
        transform: translate3d(18vw, 10vh, 0) scale(1.12);
    }
    100% {
        transform: translate3d(34vw, -4vh, 0) scale(0.95);
    }
}
@keyframes drift-deep {
    0% {
        transform: translate3d(0, 0, 0) scale(1);
    }
    50% {
        transform: translate3d(-22vw, -12vh, 0) scale(1.08);
    }
    100% {
        transform: translate3d(-8vw, -26vh, 0) scale(1.15);
    }
}
@keyframes drift-ember {
    0% {
        transform: translate3d(0, 0, 0);
    }
    100% {
        transform: translate3d(-30vw, 30vh, 0);
    }
}
@keyframes beat-run {
    0% {
        stroke-dashoffset: 0.16;
    }
    60%,
    100% {
        stroke-dashoffset: -1;
    }
}
@media (prefers-reduced-motion: reduce) {
    .backdrop__blob,
    .backdrop__beat path {
        animation: none;
    }
    .backdrop__beat {
        display: none;
    }
}
.icon {
    flex: none;
}
.muted {
    color: var(--muted);
}
.small {
    font-size: 13.5px;
}
.link {
    color: var(--ember);
    text-decoration: underline;
    text-underline-offset: 3px;
}

/* ---------- линия пульса ---------- */
.pulse-mark {
    display: block;
    overflow: visible;
}
.pulse-mark path,
.strip__spike path {
    fill: none;
    stroke: var(--pulse);
    stroke-width: 4.2;
    stroke-linecap: round;
    stroke-linejoin: round;
}
.pulse-mark--loop,
.pulse-mark--beat {
    width: 96px;
    height: 38px;
}
.pulse-mark--loop path {
    stroke-dasharray: 0.34 0.66;
    animation: pulse-run 1.25s linear infinite;
}
.pulse-mark--beat path {
    stroke-dasharray: 1;
    stroke-dashoffset: 1;
    animation: pulse-draw 0.7s cubic-bezier(0.6, 0, 0.2, 1) forwards;
    filter: drop-shadow(0 0 8px var(--pulse-glow));
}
@keyframes pulse-run {
    from {
        stroke-dashoffset: 1;
    }
    to {
        stroke-dashoffset: 0;
    }
}
@keyframes pulse-draw {
    to {
        stroke-dashoffset: 0;
    }
}

/* полоса во всю ширину: линия рисуется слева направо один раз при загрузке */
.strip {
    --strip-h: 54px;
    display: flex;
    align-items: flex-start;
    height: var(--strip-h);
}
.strip__flat {
    height: 3px;
    margin-top: calc(var(--strip-h) * 26 / 48 - 1.5px);
    background: var(--pulse);
    transform-origin: left center;
    transform: scaleX(0);
    box-shadow: 0 0 12px rgba(229, 72, 77, 0.4);
}
.strip__flat--in {
    flex: 1.7;
    animation: strip-grow 0.45s 0.1s ease-in forwards;
}
.strip__flat--out {
    flex: 1;
    animation: strip-grow 0.4s 0.9s ease-out forwards;
}
.strip__spike {
    flex: none;
    height: var(--strip-h);
    width: calc(var(--strip-h) * 44 / 48);
    margin: 0 -1.5px;
    overflow: visible;
    filter: drop-shadow(0 0 10px var(--pulse-glow));
    transform-origin: 50% 54%;
}
.strip__spike path {
    stroke-width: 2.7;
    stroke-linecap: butt;
    stroke-dasharray: 1;
    stroke-dashoffset: 1;
    animation: pulse-draw 0.4s 0.52s linear forwards;
}
.strip.is-beat .strip__spike {
    animation: beat 0.55s ease-out;
}
@keyframes strip-grow {
    to {
        transform: scaleX(1);
    }
}
@keyframes beat {
    30% {
        transform: scaleY(1.35);
        filter: drop-shadow(0 0 20px rgba(229, 72, 77, 0.85));
    }
}

.boot,
.loading {
    display: grid;
    place-items: center;
    min-height: 180px;
}
.boot {
    min-height: 100dvh;
}
.boot .pulse-mark {
    width: 120px;
    height: 48px;
}
.boot .pulse-mark path {
    stroke-dasharray: 0.34 0.66;
    animation: pulse-run 1.25s linear infinite;
}

/* ---------- шапка ---------- */
.topbar {
    position: sticky;
    top: 0;
    z-index: 30;
    background: rgba(5, 5, 6, 0.72);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--line);
}
.topbar__in {
    max-width: var(--wrap);
    margin: 0 auto;
    height: 60px;
    padding: 0 16px;
    display: flex;
    align-items: center;
    gap: 20px;
}
.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    flex: none;
}
.logo__mark {
    width: 40px;
    height: 16px;
}
.logo__mark path {
    stroke-width: 7;
}
.logo__text {
    display: inline-flex;
    align-items: baseline;
    gap: 3px;
    font: 700 19px/1 var(--display);
    letter-spacing: -0.02em;
}
/* «just» — мелко и тише, акцент на «pulse» */
.logo__just {
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 0.01em;
    color: var(--muted);
}
.topnav {
    display: none;
    gap: 4px;
    margin-left: 8px;
}
.topnav a {
    padding: 8px 12px;
    border-radius: var(--r-s);
    color: var(--muted);
    font-weight: 500;
    font-size: 15px;
    transition: color 0.15s, background 0.15s;
}
.topnav a:hover {
    color: var(--text);
    background: var(--raised);
}
.topnav a.is-active {
    color: var(--text);
    box-shadow: inset 0 -2px 0 var(--pulse);
    border-radius: var(--r-s) var(--r-s) 0 0;
}
.topbar__right {
    margin-left: auto;
    display: flex;
    align-items: center;
    gap: 10px;
}
.lang {
    display: none;
    align-items: center;
    gap: 6px;
    height: 36px;
    padding: 0 10px;
    border-radius: var(--r-s);
    color: var(--muted);
    font-size: 13px;
    font-weight: 600;
}
.lang:hover {
    color: var(--text);
    background: var(--raised);
}
.account {
    display: flex;
    align-items: center;
    gap: 10px;
}
.balance-pill {
    display: flex;
    align-items: center;
    gap: 8px;
    height: 38px;
    padding: 0 6px 0 14px;
    border: 1px solid var(--line-strong);
    border-radius: 999px;
    font-weight: 600;
    font-size: 15px;
    white-space: nowrap;
}
.balance-pill:hover {
    border-color: var(--pulse);
}
.balance-pill__plus {
    display: grid;
    place-items: center;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: var(--pulse);
    color: var(--pulse-ink);
    transition: background 0.15s;
}
.balance-pill:hover .balance-pill__plus {
    background: var(--pulse-hover);
}
.avatar {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    object-fit: cover;
    display: grid;
    place-items: center;
    background: var(--raised);
    border: 1px solid var(--line-strong);
}
.avatar--letter {
    font: 650 15px/1 var(--display);
    color: var(--ember);
}
.avatar--lg {
    width: 64px;
    height: 64px;
    font-size: 24px;
}
.account__me {
    border-radius: 50%;
}

/* ---------- страница ---------- */
.view {
    min-height: calc(100dvh - 60px);
    padding-bottom: calc(var(--tabbar-h) + var(--safe-b) + 24px);
}
.page {
    max-width: var(--wrap);
    margin: 0 auto;
    padding: 28px 16px 8px;
}
.page--narrow {
    max-width: 760px;
}
.page--narrow > .pulse-mark {
    margin: 60px auto 16px;
}
.page__head {
    margin-bottom: 22px;
}
.page__title {
    font: 650 clamp(26px, 5vw, 40px) / 1.12 var(--display);
    letter-spacing: -0.03em;
}
.page__lead {
    margin-top: 10px;
    color: var(--muted);
    max-width: 62ch;
    font-size: 17px;
}
.page--split {
    display: grid;
    gap: 24px;
}
.section {
    max-width: var(--wrap);
    margin: 0 auto;
    padding: 36px 16px 0;
}
.section__title {
    font: 650 20px/1.2 var(--display);
    letter-spacing: -0.02em;
    margin-bottom: 16px;
}
.backlink {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    margin: 0 0 12px -4px;
    color: var(--muted);
    font-weight: 500;
}
.backlink:hover {
    color: var(--text);
}

/* ---------- кнопки ---------- */
.btn {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 46px;
    padding: 0 20px;
    border-radius: var(--r-m);
    background: var(--pulse);
    color: var(--pulse-ink);
    font-weight: 650;
    font-size: 15.5px;
    line-height: 1.2;
    text-align: center;
    transition: background 0.15s, transform 0.08s, opacity 0.15s;
    user-select: none;
}
.btn:hover {
    background: var(--pulse-hover);
}
.btn:active {
    transform: translateY(1px);
}
.btn:disabled {
    background: var(--raised);
    color: var(--faint);
    cursor: not-allowed;
}
.btn--block {
    display: flex;
    width: 100%;
}
.btn--lg {
    min-height: 56px;
    font-size: 17px;
    border-radius: 16px;
}
.btn--sm {
    min-height: 36px;
    padding: 0 14px;
    font-size: 14px;
    border-radius: var(--r-s);
}
.btn--ghost {
    background: transparent;
    color: var(--text);
    box-shadow: inset 0 0 0 1px var(--line-strong);
}
.btn--ghost:hover {
    background: var(--raised);
}
.btn--busy {
    color: transparent !important;
    pointer-events: none;
}
.btn--busy > * {
    visibility: hidden;
}
.btn--busy::after {
    content: "";
    position: absolute;
    inset: 0;
    margin: auto;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    border: 2.5px solid var(--pulse-ink);
    border-right-color: transparent;
    animation: spin 0.7s linear infinite;
}
.btn--ghost.btn--busy::after,
.btn:disabled.btn--busy::after {
    border-color: var(--text);
    border-right-color: transparent;
}
@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}
.icon-btn {
    display: grid;
    place-items: center;
    width: 38px;
    height: 38px;
    flex: none;
    border-radius: var(--r-s);
    color: var(--muted);
}
.icon-btn:hover {
    color: var(--text);
    background: var(--hover);
}

/* ---------- поля ---------- */
.field + .field,
.field + .summary {
    margin-top: 18px;
}
.field__label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    font-size: 14.5px;
}
.field__state {
    min-height: 20px;
    margin-top: 7px;
    font-size: 13.5px;
    line-height: 1.4;
    color: var(--muted);
}
.field.is-ok .field__state {
    color: var(--ok);
}
.field.is-bad .field__state {
    color: var(--ember);
}
.field.is-warn .field__state {
    color: var(--warn);
}
.input-wrap {
    position: relative;
}
.input {
    width: 100%;
    height: 54px;
    padding: 0 46px 0 16px;
    border: 1px solid var(--line-strong);
    border-radius: var(--r-m);
    background: var(--bg);
    font-size: 17px;
    font-weight: 500;
    outline: none;
    transition: border-color 0.15s, box-shadow 0.15s;
}
.input::placeholder {
    color: var(--faint);
    font-weight: 400;
}
.input:focus {
    border-color: var(--text);
}
.field.is-ok .input {
    border-color: var(--ok);
}
.field.is-bad .input {
    border-color: var(--pulse);
}
.field.is-warn .input {
    border-color: var(--warn);
}
.input--amount {
    font: 650 22px/1 var(--display);
    letter-spacing: -0.02em;
}
.input--search {
    height: 46px;
    font-size: 15.5px;
    padding-right: 16px;
}
.input-wrap--at .input {
    padding-left: 38px;
}
.input-wrap__at {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--faint);
    font-size: 18px;
    font-weight: 600;
}
.input-wrap__mark {
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    display: grid;
    place-items: center;
    color: var(--muted);
    pointer-events: none;
}
.input-wrap__mark--text {
    font-weight: 600;
    font-size: 18px;
}
.field.is-ok .input-wrap__mark {
    color: var(--ok);
}
.field.is-bad .input-wrap__mark {
    color: var(--ember);
}
.field.is-warn .input-wrap__mark {
    color: var(--warn);
}
.dot-spin {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    border: 2px solid var(--muted);
    border-right-color: transparent;
    animation: spin 0.7s linear infinite;
}

.seg {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 4px;
    padding: 4px;
    border: 1px solid var(--line-strong);
    border-radius: var(--r-m);
    background: var(--bg);
}
.seg__item {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    min-height: 42px;
    padding: 0 12px;
    border-radius: var(--r-s);
    color: var(--muted);
    font-weight: 600;
    font-size: 14.5px;
    transition: background 0.15s, color 0.15s;
}
.seg__sign {
    font-size: 16px;
    color: var(--faint);
}
.seg__item:hover {
    color: var(--text);
}
.seg__item.is-active {
    background: var(--text);
    color: var(--bg);
}
.seg__item.is-active .seg__sign {
    color: var(--pulse-deep);
}

/* один аккаунт / несколько */
.mode-switch {
    display: inline-flex;
    gap: 2px;
    margin-bottom: 16px;
    padding: 3px;
    border-radius: 999px;
    background: var(--bg);
    box-shadow: inset 0 0 0 1px var(--line-strong);
}
.mode-switch__item {
    min-height: 32px;
    padding: 0 14px;
    border-radius: 999px;
    color: var(--muted);
    font-weight: 600;
    font-size: 13.5px;
    transition: background 0.15s, color 0.15s;
}
.mode-switch__item:hover {
    color: var(--text);
}
.mode-switch__item.is-active {
    background: var(--raised);
    color: var(--text);
    box-shadow: inset 0 0 0 1px var(--line-strong);
}
.input--area {
    height: auto;
    min-height: 104px;
    padding: 13px 16px;
    resize: vertical;
    line-height: 1.45;
    font-size: 16px;
    display: block;
}
.login-list {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 10px;
}
.login-list:empty {
    display: none;
}
.login-list__item {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    max-width: 100%;
    min-height: 28px;
    padding: 0 8px 0 10px;
    border-radius: 8px;
    background: var(--raised);
    font-size: 13.5px;
    font-weight: 550;
}
.login-list__name {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.login-list__item .dot-spin {
    width: 13px;
    height: 13px;
    border-width: 1.5px;
}
.login-list__item.is-ok {
    color: var(--text);
}
.login-list__item.is-ok .icon {
    color: var(--muted);
}
.login-list__item.is-unavailable {
    background: var(--pulse-wash);
    color: var(--ember);
}
.login-list__item.is-unverified .icon {
    color: var(--warn);
}
.link-btn {
    color: var(--text);
    font-weight: 600;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 10px;
}
.chips--scroll {
    flex-wrap: nowrap;
    overflow-x: auto;
    margin: 0 -16px 16px;
    padding: 0 16px 2px;
    scrollbar-width: none;
}
.chips--scroll::-webkit-scrollbar {
    display: none;
}
.chip {
    flex: none;
    min-height: 36px;
    padding: 0 14px;
    border-radius: 999px;
    box-shadow: inset 0 0 0 1px var(--line-strong);
    color: var(--muted);
    font-weight: 550;
    font-size: 14px;
    white-space: nowrap;
    transition: color 0.15s, box-shadow 0.15s, background 0.15s;
}
.chip:hover {
    color: var(--text);
}
.chip.is-active {
    color: var(--text);
    background: var(--pulse-wash);
    box-shadow: inset 0 0 0 1.5px var(--pulse);
}

.qty {
    display: inline-flex;
    align-items: center;
    height: 46px;
    border: 1px solid var(--line-strong);
    border-radius: var(--r-m);
    background: var(--bg);
}
.qty__btn {
    display: grid;
    place-items: center;
    width: 40px;
    height: 100%;
    color: var(--muted);
}
.qty__btn:hover {
    color: var(--text);
}
.qty__input {
    width: 48px;
    height: 100%;
    border: 0;
    background: none;
    text-align: center;
    font-weight: 650;
    font-size: 16px;
    outline: none;
}

/* ---------- панель формы ---------- */
.topup,
.invoice {
    padding: 20px 18px;
    border: 1px solid var(--line);
    border-radius: var(--r-l);
    background: var(--surface);
}
.summary {
    display: grid;
    gap: 4px;
    margin: 18px 0 16px;
    padding: 14px 16px;
    border-radius: var(--r-m);
    background: var(--raised);
}
.summary > div {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
}
.summary__cost {
    font: 650 22px/1.1 var(--display);
    letter-spacing: -0.02em;
}
.summary__per {
    font-size: 13.5px;
    text-align: right;
}
.summary__rate {
    font-size: 13.5px;
    color: var(--faint);
}
/* ---------- главная ---------- */
.hero {
    position: relative;
    overflow: hidden;
    background: none;
}
.hero__line {
    margin-top: 6px;
}
.hero__in {
    max-width: var(--wrap);
    margin: 0 auto;
    padding: 14px 16px 8px;
    display: grid;
    gap: 22px;
}
.hero__title {
    font: 700 clamp(32px, 8vw, 56px) / 1.05 var(--display);
    letter-spacing: -0.03em;
    text-wrap: balance;
}
.hero__lead {
    margin-top: 14px;
    max-width: 46ch;
    color: var(--muted);
    font-size: 17px;
}

/* ---------- каталог со склада ---------- */
.products {
    display: grid;
    gap: 14px;
}
.product {
    display: flex;
    flex-direction: column;
    padding: 20px 18px;
    border: 1px solid var(--line);
    border-radius: var(--r-l);
    background: var(--surface);
}
.product {
    scroll-margin-top: 76px;
}
.product.is-out {
    opacity: 0.6;
}
.product__head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
}
.product__title {
    font: 650 19px/1.25 var(--display);
    letter-spacing: -0.015em;
}
.product__sub {
    margin-top: 3px;
    color: var(--muted);
    font-size: 14.5px;
}
.product__price {
    display: grid;
    justify-items: end;
    gap: 4px;
    flex: none;
    text-align: right;
}
.product__price strong {
    font: 650 21px/1 var(--display);
    letter-spacing: -0.02em;
}
.stock {
    font-size: 13px;
    color: var(--muted);
    font-weight: 500;
}
.stock--out {
    color: var(--faint);
}
.product__points {
    display: grid;
    gap: 5px;
    margin: 14px 0 18px;
    padding-left: 16px;
    list-style: disc;
    font-size: 15px;
    color: #d9d6d2;
}
.product__points li::marker {
    color: var(--faint);
}
.product__bulk {
    margin: -8px 0 18px;
    color: var(--muted);
    font-size: 13.5px;
}
.product__buy {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
    margin-top: auto; /* блок покупки прижат к низу — карточки в ряду одной высоты */
    padding-top: 16px;
    border-top: 1px solid var(--line);
}
.product__sum {
    display: grid;
    margin-right: auto;
    line-height: 1.2;
}
.product__total {
    font-size: 18px;
}
.product__save {
    font-size: 13px;
    color: var(--ok);
}
.product__buy .btn {
    flex: 1 1 120px;
}

/* ---------- коды пополнения ---------- */
.brands {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px 8px;
}
.brand {
    display: grid;
    align-content: start;
    gap: 2px;
    min-width: 0;
}
.cover {
    position: relative;
    overflow: hidden;
    border-radius: var(--r-l);
    background: var(--raised);
    border: 1px solid var(--line);
}
.cover img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 0.2s;
}
.cover.is-loaded img {
    opacity: 1;
}

.cover__fallback {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    padding: 10px;
    color: var(--muted);
    font-weight: 650;
    font-size: 15px;
    text-align: center;
}
.cover.is-loaded .cover__fallback {
    visibility: hidden;
}
.brand__cover {
    aspect-ratio: 1;
    margin-bottom: 6px;
    transition: border-color 0.15s;
}
.brand:hover .brand__cover {
    border-color: var(--line-strong);
}
.brand:hover .brand__cover img {
    transform: scale(1.03);
}
.brand__cover img {
    transition: opacity 0.2s, transform 0.25s;
}
.brand__name {
    font-weight: 600;
    font-size: 13px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.brand__meta {
    color: var(--muted);
    font-size: 11.5px;
}
.brand__cover {
    border-radius: var(--r-m);
}
/* крупные карточки на странице «Коды пополнения» */
.brands--large {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 22px 12px;
}
.brands--large .brand__cover {
    margin-bottom: 10px;
    border-radius: var(--r-l);
}
.brands--large .brand__name {
    font-size: 16px;
}
.brands--large .brand__meta {
    font-size: 13.5px;
}
.brand__regions {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
    margin-top: 2px;
    color: var(--faint);
    font-size: 12.5px;
    line-height: 1.4;
}
.brand-head__main {
    display: flex;
    align-items: center;
    gap: 14px;
}
.brand-head__cover {
    flex: none;
    width: 56px;
    height: 56px;
    border-radius: var(--r-m);
}
.brand-head__cover .cover__fallback {
    font-size: 0;
}
.brandpage {
    display: grid;
    gap: 22px;
}
/* без этого горизонтальная лента регионов растягивает страницу на телефоне */
.brandpage > *,
.page--split > *,
.hero__in > * {
    min-width: 0;
}
.brandpage__label {
    margin: 16px 0 10px;
    font-size: 14.5px;
    font-weight: 600;
}
.brandpage__pick > .seg {
    margin-bottom: 0;
}
.brandpage__pick > .seg + .brandpage__label {
    margin-top: 18px;
}
.brandpage__pick > .brandpage__label:first-child {
    margin-top: 0;
}
.search-wrap {
    margin-bottom: 10px;
}
.regions {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
}
.regions__empty {
    grid-column: 1 / -1;
}
.region {
    position: relative;
    display: grid;
    align-content: center;
    gap: 2px;
    min-width: 0;
    height: 62px;
    padding: 0 12px;
    border-radius: var(--r-m);
    box-shadow: inset 0 0 0 1px var(--line-strong);
    text-align: left;
    transition: box-shadow 0.15s, background 0.15s;
}
.region:hover {
    background: var(--raised);
}
.region.is-active {
    background: var(--pulse-wash);
    box-shadow: inset 0 0 0 1.5px var(--pulse);
}
.region__code {
    font-weight: 700;
    font-size: 15px;
    letter-spacing: 0.04em;
}
.region__name {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    color: var(--muted);
    font-size: 12.5px;
}
.region__dot {
    position: absolute;
    top: 10px;
    right: 10px;
}
.dot {
    display: inline-block;
    flex: none;
    width: 7px;
    height: 7px;
    border-radius: 50%;
}
.dot--instant {
    background: var(--warn);
}
.legend {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 12px;
    color: var(--muted);
    font-size: 13px;
}
.offers__head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 12px;
}
.offers__head h2 {
    font: 650 20px/1.2 var(--display);
    letter-spacing: -0.02em;
}
.offers__code {
    color: var(--ember);
    font-weight: 700;
    letter-spacing: 0.04em;
}
.offer-list {
    margin-top: 14px;
    border: 1px solid var(--line);
    border-radius: var(--r-l);
    background: var(--surface);
    overflow: hidden;
}
.offer {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 12px 16px;
    align-items: center;
    padding: 16px;
}
.offer + .offer {
    border-top: 1px solid var(--line);
}
.offer__main {
    display: grid;
    gap: 2px;
}
.offer__name {
    font-weight: 650;
    font-size: 17px;
    letter-spacing: -0.01em;
}
.offer__sum {
    font-size: 18px;
    white-space: nowrap;
    text-align: right;
}
.offer__buy {
    grid-column: 1 / -1;
    display: flex;
    align-items: center;
    gap: 10px;
}
.offer__buy .btn {
    flex: 1;
}
.note {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    padding: 12px 14px;
    border-radius: var(--r-m);
    background: var(--raised);
    color: #d6d3cf;
    font-size: 14.5px;
    line-height: 1.45;
}
.note--warn {
    background: rgba(255, 182, 72, 0.09);
    color: #ffd9a0;
}

/* ---------- разделы главной ---------- */
.section__head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 16px;
}
.section__head .section__title {
    margin-bottom: 0;
}
.section__more {
    flex: none;
    color: var(--muted);
    font-weight: 550;
    font-size: 14.5px;
}
.section__more:hover {
    color: var(--text);
}
.row--link {
    color: inherit;
    transition: background 0.12s;
}
.row--link:hover {
    background: var(--raised);
}
.rows--catalog .row__side {
    gap: 2px;
}
.rows--catalog li + li {
    border-top: 1px solid var(--line);
}

.seg--tabs {
    display: inline-flex;
    flex-wrap: wrap;
    margin-bottom: 20px;
}
.page__head + .seg--tabs {
    margin-top: -4px;
}

.state-icon {
    display: grid;
    place-items: center;
    width: 48px;
    height: 48px;
    border-radius: 50%;
}
.state-icon--ok {
    background: var(--ok-wash);
    color: var(--ok);
}
.state-icon--bad {
    background: var(--pulse-wash);
    color: var(--ember);
}
.state-icon--warn {
    background: rgba(255, 182, 72, 0.12);
    color: var(--warn);
}

/* итог пополнения нескольких аккаунтов */
.batch {
    display: grid;
    margin: 4px 0 14px;
    border-top: 1px solid var(--line);
}
.batch__row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto auto;
    align-items: center;
    gap: 12px;
    padding: 10px 0;
    border-bottom: 1px solid var(--line);
    font-size: 14.5px;
}
.batch__login {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-weight: 600;
}
.batch__sum {
    color: var(--muted);
}
.facts__list {
    overflow-wrap: anywhere;
}

/* ---------- списки, статусы ---------- */
.rows {
    border: 1px solid var(--line);
    border-radius: var(--r-l);
    background: var(--surface);
    overflow: hidden;
}
.row {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    flex-wrap: wrap;
}
.row + .row {
    border-top: 1px solid var(--line);
}
.row--click {
    cursor: pointer;
    transition: background 0.12s;
}
.row--click:hover {
    background: var(--raised);
}
.row__icon {
    flex: none;
    display: grid;
    place-items: center;
    width: 40px;
    height: 40px;
    border-radius: 11px;
    background: var(--raised);
    color: var(--muted);
}
.row__icon--steam,
.row__icon--stars {
    color: var(--ember);
}
.row__main {
    flex: 1 1 150px;
    min-width: 0;
    display: grid;
    gap: 1px;
}
.row__main strong {
    font-weight: 600;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.row__main .muted {
    font-size: 13.5px;
}
.row__side {
    display: grid;
    justify-items: end;
    gap: 3px;
    white-space: nowrap;
}
.row__action:empty {
    display: none;
}
@media (min-width: 620px) {
    .row__action {
        display: flex;
        justify-content: flex-end;
        width: 112px;
    }
    .row__action:empty {
        display: flex;
    }
}
.badge {
    display: inline-flex;
    align-items: center;
    height: 22px;
    padding: 0 8px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 600;
}
.badge--done {
    background: var(--ok-wash);
    color: var(--ok);
}
.badge--pending {
    background: rgba(255, 182, 72, 0.12);
    color: var(--warn);
}
.badge--refunded,
.badge--failed {
    background: var(--pulse-wash);
    color: var(--ember);
}
.empty {
    display: grid;
    justify-items: center;
    gap: 8px;
    padding: 44px 16px;
    text-align: center;
}
.empty__icon {
    display: grid;
    place-items: center;
    width: 56px;
    height: 56px;
    margin-bottom: 6px;
    border-radius: 50%;
    background: var(--raised);
    color: var(--muted);
}
.empty h3 {
    font: 650 18px/1.2 var(--display);
    letter-spacing: -0.02em;
}
.empty p {
    color: var(--muted);
    max-width: 44ch;
}
.empty .btn {
    margin-top: 10px;
}

/* ---------- модальное окно ---------- */
.modal-backdrop {
    position: fixed;
    inset: 0;
    z-index: 60;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    background: rgba(0, 0, 0, 0.72);
    animation: fade 0.18s ease-out;
}
.modal-backdrop--out {
    opacity: 0;
    transition: opacity 0.18s;
}
.modal {
    width: 100%;
    max-width: 480px;
    max-height: 92dvh;
    display: flex;
    flex-direction: column;
    border: 1px solid var(--line-strong);
    border-bottom: 0;
    border-radius: 24px 24px 0 0;
    background: var(--surface);
    outline: none;
    animation: sheet 0.24s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.modal__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 18px 12px 6px 20px;
}
.modal__title {
    font: 650 19px/1.2 var(--display);
    letter-spacing: -0.02em;
}
.modal__body {
    display: grid;
    gap: 14px;
    padding: 8px 20px calc(20px + var(--safe-b));
    overflow-y: auto;
    overscroll-behavior: contain;
}
.modal__lead {
    color: var(--muted);
}
@keyframes fade {
    from {
        opacity: 0;
    }
}
@keyframes sheet {
    from {
        transform: translateY(28px);
        opacity: 0;
    }
}

.facts {
    display: grid;
    border: 1px solid var(--line);
    border-radius: var(--r-m);
    overflow: hidden;
}
.facts > div {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    padding: 11px 14px;
}
.facts > div + div {
    border-top: 1px solid var(--line);
}
.facts dt {
    color: var(--muted);
    flex: none;
}
.facts dd {
    font-weight: 600;
    text-align: right;
    overflow-wrap: anywhere;
}
.facts dd.is-bad {
    color: var(--ember);
}
.facts__sum {
    background: var(--raised);
}
.facts__total {
    font: 650 18px/1.3 var(--display);
}

.result {
    display: grid;
    gap: 14px;
}
.result__state {
    display: grid;
    justify-items: center;
    gap: 8px;
    padding: 10px 0 4px;
    text-align: center;
}
.result__state h3 {
    font: 650 20px/1.2 var(--display);
    letter-spacing: -0.02em;
}
.result__state p {
    max-width: 40ch;
    font-size: 14.5px;
}
.result__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}
.result__actions .btn {
    flex: 1 1 150px;
}
.codes {
    display: grid;
    gap: 8px;
    max-height: 264px;
    overflow-y: auto;
}
.codes li {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 6px 6px 14px;
    border: 1px dashed var(--line-strong);
    border-radius: var(--r-m);
    background: var(--bg);
}
.codes code,
.copyline code,
.wallets code {
    flex: 1;
    min-width: 0;
    font: 600 15px/1.4 ui-monospace, "SF Mono", "Cascadia Mono", Menlo, Consolas, monospace;
    overflow-wrap: anywhere;
    user-select: all;
}

.login-wait {
    display: grid;
    justify-items: center;
    gap: 12px;
    padding: 6px 0;
    text-align: center;
}
.login-widget {
    display: flex;
    justify-content: center;
    min-height: 44px;
}
.divider {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 4px 0 14px;
    color: var(--faint);
    font-size: 13px;
}
.divider::before,
.divider::after {
    content: "";
    flex: 1;
    height: 1px;
    background: var(--line);
}

/* ---------- тосты ---------- */
.toasts {
    position: fixed;
    z-index: 80;
    left: 12px;
    right: 12px;
    bottom: calc(var(--tabbar-h) + var(--safe-b) + 12px);
    display: grid;
    justify-items: center;
    gap: 8px;
    pointer-events: none;
}
.toast {
    display: flex;
    align-items: center;
    gap: 10px;
    max-width: 440px;
    padding: 12px 16px;
    border: 1px solid var(--line-strong);
    border-radius: var(--r-m);
    background: var(--raised);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.6);
    font-size: 14.5px;
    font-weight: 500;
    animation: sheet 0.2s ease-out;
    transition: opacity 0.25s, transform 0.25s;
}
.toast--ok .icon {
    color: var(--ok);
}
.toast--error .icon {
    color: var(--ember);
}
.toast--out {
    opacity: 0;
    transform: translateY(8px);
}

/* ---------- баланс ---------- */
.wallet {
    display: grid;
    gap: 2px;
    margin-top: 20px;
}
.wallet__sum {
    font: 650 34px/1.1 var(--display);
    letter-spacing: -0.03em;
}
.history {
    margin-top: 28px;
}
.methods {
    display: grid;
    gap: 8px;
}
.method {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
    border-radius: var(--r-m);
    box-shadow: inset 0 0 0 1px var(--line-strong);
    text-align: left;
    transition: box-shadow 0.15s, background 0.15s;
}
.method:hover {
    background: var(--raised);
}
.method.is-active {
    background: var(--pulse-wash);
    box-shadow: inset 0 0 0 1.5px var(--pulse);
}
.method__text {
    flex: 1;
    display: grid;
    gap: 1px;
}
.method__text span {
    color: var(--muted);
    font-size: 13.5px;
    line-height: 1.35;
}
.method__radio {
    flex: none;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    box-shadow: inset 0 0 0 1.5px var(--line-strong);
}
.method.is-active .method__radio {
    box-shadow: inset 0 0 0 6px var(--pulse);
}
.topup > .btn {
    margin-top: 18px;
}
.topup > .summary + .btn {
    margin-top: 0;
}
.invoice {
    display: grid;
    gap: 14px;
}
.invoice h2 {
    font: 650 22px/1.2 var(--display);
    letter-spacing: -0.02em;
}
.invoice__status {
    display: grid;
    justify-items: center;
    gap: 8px;
    text-align: center;
}
.invoice__status h3 {
    font: 650 19px/1.2 var(--display);
}
.invoice__wait {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--muted);
}
.invoice__wait .dot-spin {
    width: 16px;
    height: 16px;
}
.countdown {
    color: var(--text);
    font-weight: 600;
}
.copyline {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 6px 6px 6px 14px;
    border: 1px solid var(--line);
    border-radius: var(--r-m);
    background: var(--bg);
}
.copyline .muted {
    flex: none;
    font-size: 13.5px;
}
.copyline--big {
    flex-wrap: wrap;
    padding-top: 10px;
}
.copyline--big .muted {
    flex: 1 0 100%;
}
.copyline--big + .copyline--big {
    margin-top: 10px;
}
.invoice .copyline--big + .copyline--big {
    margin-top: 0;
}
.wallets {
    display: grid;
    gap: 8px;
}
.wallets li {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 2px 8px;
    align-items: center;
    padding: 10px 6px 10px 14px;
    border: 1px solid var(--line);
    border-radius: var(--r-m);
    background: var(--bg);
}
.wallets li > div {
    grid-column: 1 / -1;
    display: flex;
    gap: 8px;
    font-size: 14px;
}

/* ---------- кабинет ---------- */
.me {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 14px 16px;
    align-items: center;
    margin-bottom: 22px;
}
.me__who h1 {
    font: 650 22px/1.2 var(--display);
    letter-spacing: -0.02em;
    overflow-wrap: anywhere;
}
.me__who .muted {
    font-size: 14px;
}
.me__money {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: 1fr 1fr;
    border: 1px solid var(--line);
    border-radius: var(--r-l);
    background: var(--surface);
}
.me__money > div {
    display: grid;
    gap: 2px;
    padding: 14px 16px;
}
.me__money > div + div {
    border-left: 1px solid var(--line);
}
.me__money .muted {
    font-size: 13.5px;
}
.me__money strong {
    font: 650 20px/1.2 var(--display);
    letter-spacing: -0.02em;
}
.me__actions {
    grid-column: 1 / -1;
    display: flex;
    gap: 10px;
}
.me__actions .btn {
    flex: 1;
}
.tabs {
    display: flex;
    gap: 22px;
    margin-bottom: 18px;
    border-bottom: 1px solid var(--line);
}
.tabs a {
    padding: 10px 0 12px;
    color: var(--muted);
    font-weight: 600;
    margin-bottom: -1px;
    border-bottom: 2px solid transparent;
}
.tabs a.is-active {
    color: var(--text);
    border-bottom-color: var(--pulse);
}
.ref-rates {
    display: grid;
    gap: 10px;
    margin-bottom: 14px;
}
.ref-rate {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px 18px;
    border: 1px solid var(--line);
    border-radius: var(--r-l);
    background: var(--surface);
}
.ref-rate strong {
    flex: none;
    min-width: 86px;
    font: 650 34px/1 var(--display);
    letter-spacing: -0.04em;
}
.ref-rate span {
    color: var(--muted);
    font-size: 15px;
}
.ref-rate--main {
    border-color: var(--pulse);
    background: linear-gradient(100deg, var(--pulse-wash), transparent 70%), var(--surface);
}
.ref-rate--main strong {
    color: var(--pulse);
}
.ref-stats {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 14px 28px;
    margin: 20px 0 28px;
}
.ref-stats > div {
    display: grid;
    gap: 2px;
}
.ref-stats .muted {
    font-size: 13.5px;
}
.ref-stats strong {
    font: 650 22px/1.2 var(--display);
}
.ref-stats .btn {
    flex: 1 1 220px;
}
.copyline--big + p {
    margin-top: 14px;
}

/* ---------- вопросы ---------- */
.faq {
    border: 1px solid var(--line);
    border-radius: var(--r-l);
    background: var(--surface);
    overflow: hidden;
}
.faq__item + .faq__item {
    border-top: 1px solid var(--line);
}
.faq__item summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 16px 18px;
    font-weight: 600;
    cursor: pointer;
    list-style: none;
}
.faq__item summary::-webkit-details-marker {
    display: none;
}
.faq__item summary .icon {
    color: var(--faint);
    transition: transform 0.2s;
}
.faq__item[open] summary .icon {
    transform: rotate(90deg);
    color: var(--pulse);
}
.faq__item p {
    padding: 0 18px 18px;
    color: #cfccc8;
    max-width: 68ch;
}
.faq__more {
    margin-top: 20px;
    color: var(--muted);
}

/* ---------- подвал и нижняя панель ---------- */
.footer {
    display: none;
    margin-top: 56px;
    border-top: 1px solid var(--line);
}
.footer__in {
    max-width: var(--wrap);
    margin: 0 auto;
    padding: 24px 16px;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 14px 28px;
    color: var(--muted);
    font-size: 14px;
}
.footer__brand {
    display: flex;
    align-items: center;
    gap: 10px;
}
.footer__links {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 22px;
}
.footer__links a:hover {
    color: var(--text);
}
.tabbar {
    position: fixed;
    z-index: 40;
    left: 0;
    right: 0;
    bottom: 0;
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    height: calc(var(--tabbar-h) + var(--safe-b));
    padding-bottom: var(--safe-b);
    background: rgba(10, 10, 12, 0.94);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-top: 1px solid var(--line);
}
.tabbar a {
    display: grid;
    justify-items: center;
    align-content: center;
    gap: 3px;
    color: var(--faint);
    font-size: 11.5px;
    font-weight: 600;
}
.tabbar a.is-active {
    color: var(--text);
}
.tabbar a.is-active .icon {
    color: var(--pulse);
}

/* ---------- планшет и десктоп ---------- */
@media (min-width: 620px) {
    .brands {
        grid-template-columns: repeat(4, minmax(0, 1fr));
        gap: 20px 14px;
    }
    .brands--large {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 28px 16px;
    }
    .brand__name {
        font-size: 15.5px;
    }
    .brand__meta {
        font-size: 13.5px;
    }
    .modal-backdrop {
        align-items: center;
        padding: 20px;
    }
    .modal {
        border-bottom: 1px solid var(--line-strong);
        border-radius: 24px;
    }
    .modal__body {
        padding-bottom: 22px;
    }
    .offer {
        grid-template-columns: 1fr auto auto;
    }
    .offer__sum {
        grid-column: 2;
        grid-row: 1;
        min-width: 90px;
    }
    .offer__buy {
        grid-column: 3;
        grid-row: 1;
    }
    .offer__buy .btn {
        flex: none;
        min-width: 104px;
    }
    .ref-rates {
        grid-template-columns: 1fr 1fr;
    }
    .me {
        grid-template-columns: auto 1fr auto;
    }
    .me__money {
        grid-column: 1 / -1;
    }
    .me__actions {
        grid-column: 3;
        grid-row: 1;
    }
    .me__actions .btn {
        flex: none;
    }
    .regions {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
    .chips--scroll {
        margin: 0 0 16px;
        padding: 0;
    }
    .products {
        grid-template-columns: 1fr 1fr;
        align-items: stretch;
    }
}

@media (min-width: 900px) {
    .lang {
        display: inline-flex;
    }
    .topnav {
        display: flex;
    }
    .tabbar {
        display: none;
    }
    .footer {
        display: block;
    }
    .view {
        padding-bottom: 0;
    }
    .toasts {
        bottom: 24px;
    }
    .topbar__in,
    .page,
    .section,
    .hero__in,
    .footer__in {
        padding-left: 28px;
        padding-right: 28px;
    }
    .page {
        padding-top: 44px;
    }
    .hero__line {
        --strip-h: 84px;
        margin-top: 14px;
    }
    .hero__line .strip__spike path {
        stroke-width: 1.75;
    }
    .hero__in {
        grid-template-columns: minmax(0, 1.08fr) minmax(380px, 0.92fr);
        gap: 56px;
        align-items: start;
        padding-top: 20px;
        padding-bottom: 28px;
    }
    .hero__copy {
        padding-top: 26px;
    }
    .hero__in {
        grid-template-rows: auto 1fr;
        row-gap: 28px;
    }
    .hero__form {
        grid-column: 2;
        grid-row: 1 / span 2;
    }
    .terms {
        grid-column: 1;
        grid-row: 2;
        align-self: start;
    }
    .hero__lead {
        font-size: 19px;
    }
    .topup,
    .invoice {
        padding: 28px;
    }
    .page--split {
        grid-template-columns: minmax(0, 1fr) minmax(380px, 460px);
        gap: 56px;
        align-items: start;
    }
    .section {
        padding-top: 56px;
    }
    .section__title {
        font-size: 24px;
        margin-bottom: 22px;
    }
    .brandpage {
        grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
        gap: 44px;
        align-items: start;
    }
    .me__money {
        grid-column: 1 / -1;
    }
}

@media (min-width: 1040px) {
    .brands {
        grid-template-columns: repeat(8, minmax(0, 1fr));
    }
    .brands--large {
        grid-template-columns: repeat(4, minmax(0, 1fr));
        gap: 32px 20px;
    }
    .brands--large .brand__name {
        font-size: 18px;
    }
    .brands--large .brand__meta,
    .brands--large .brand__regions {
        font-size: 14px;
    }
    .products {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

/* условия пополнения рядом с формой */
.terms {
    display: grid;
    border-top: 1px solid var(--line);
    max-width: 460px;
}
.terms > div {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    padding: 11px 0;
    border-bottom: 1px solid var(--line);
    font-size: 15px;
}
.terms dt {
    color: var(--muted);
}
.terms dd {
    font-weight: 550;
    text-align: right;
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
    .strip__spike path,
    .pulse-mark--beat path {
        stroke-dashoffset: 0;
    }
    .strip__flat {
        transform: none;
    }
}
