/* ============================================================
   Apple-сертификаты — дизайн-система (Apple-минимализм)
   ============================================================ */

:root {
    /* Палитра */
    --bg: #fff;
    --bg-soft: #f5f5f7;
    --bg-card: #fff;
    --text: #1d1d1f;
    --text-soft: #6e6e73;
    --text-mute: #86868b;
    --line: #d2d2d7;
    --line-soft: #e8e8ed;
    --accent: #0071e3;
    --accent-press: #0060c0;
    --accent-soft: #e8f1fd;
    --success: #1a8f3c;
    --success-soft: #e6f5ea;
    --danger: #d92f2f;
    --danger-soft: #fdecec;
    --shadow-sm: 0 1px 3px rgb(0 0 0 / 6%), 0 1px 2px rgb(0 0 0 / 4%);
    --shadow-md: 0 4px 16px rgb(0 0 0 / 8%);
    --shadow-lg: 0 12px 40px rgb(0 0 0 / 12%);
    --radius-sm: 10px;
    --radius: 16px;
    --radius-lg: 22px;
    --maxw: 1000px;

    /* Типографика */
    --font:
        -apple-system, blinkmacsystemfont, 'SF Pro Text', 'SF Pro Display', 'Helvetica Neue',
        'Inter', 'Segoe UI', roboto, arial, sans-serif;
}

* {
    box-sizing: border-box;
}

html {
    text-size-adjust: 100%;
    scroll-behavior: smooth;
}

body {
    display: flex;
    flex-direction: column;
    height: 100vh;
    margin: 0;
    color: var(--text);
    font-family: var(--font);
    line-height: 1.5;
    background: var(--bg);
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizelegibility;
}

a {
    color: var(--accent);
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

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

/* ---------- Layout ---------- */
.container {
    max-width: var(--maxw);
    margin: 0 auto;
    padding: 0 22px;
}

.section {
    padding: 72px 0;
}

.section--tight {
    padding: 44px 0;
}

/* ---------- Топбар ---------- */
.topbar {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgb(255 255 255 / 80%);
    border-bottom: 1px solid var(--line-soft);
    backdrop-filter: saturate(180%) blur(20px);
}

.topbar__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: var(--maxw);
    height: 52px;
    margin: 0 auto;
    padding: 0 22px;
}

.brand {
    display: flex;
    gap: 9px;
    align-items: center;
    color: var(--text);
    font-weight: 600;
    font-size: 17px;
}

.brand:hover {
    text-decoration: none;
}

.brand__logo {
    width: 22px;
    height: 22px;
}

.topbar__nav {
    display: flex;
    gap: 26px;
    font-size: 14px;
}

.topbar__nav a {
    color: var(--text-soft);
}

.topbar__nav a:hover {
    color: var(--text);
    text-decoration: none;
}

/* ---------- Типографика ---------- */
.eyebrow {
    margin: 0 0 12px;
    color: var(--accent);
    font-weight: 600;
    font-size: 15px;
    letter-spacing: 0.2px;
}

h1,
h2,
h3 {
    margin: 0;
    color: var(--text);
    font-weight: 600;
    letter-spacing: -0.02em;
}

.h1 {
    font-size: clamp(26px, 6vw, 64px);
    line-height: 1.05;
}

.h2 {
    font-size: clamp(28px, 4vw, 42px);
    line-height: 1.1;
}

.h3 {
    font-size: 22px;
    line-height: 1.25;
}

.lead {
    color: var(--text-soft);
    font-size: clamp(14px, 2.2vw, 22px);
    line-height: 1.4;
}

.muted {
    color: var(--text-mute);
}

.small {
    font-size: 13px;
}

.center {
    text-align: center;
}

/* ---------- Hero ---------- */
.hero {
    padding: 24px 0 40px;
    text-align: center;
    background:
        radial-gradient(1200px 480px at 50% -140px, #eef4fd 0%, rgb(238 244 253 / 0%) 62%),
        var(--bg);
}

.hero .lead {
    margin: 20px auto 44px;
}

/* ---------- Trust bar ---------- */
.trust {
    display: flex;
    flex-wrap: wrap;
    gap: 12px 26px;
    justify-content: center;
    margin-top: 30px;
    color: var(--text-soft);
    font-size: 14px;
}

.trust span {
    display: inline-flex;
    gap: 7px;
    align-items: center;
}

.trust svg {
    flex: none;
    width: 17px;
    height: 17px;
    color: var(--success);
}

/* ---------- Карточка покупки ---------- */
.buybox {
    max-width: 600px;
    margin: 0 auto;
    padding: 30px 28px 28px;
    background: var(--bg-card);
    border: 1px solid var(--line-soft);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
}

.buybox__title {
    margin-bottom: 4px;
    font-weight: 600;
    font-size: 20px;
}

.field-label {
    display: block;
    margin: 22px 0 12px;
    color: var(--text);
    font-weight: 600;
    font-size: 14px;
}

.field-label:first-of-type {
    margin-top: 8px;
}

/* Сетка номиналов */
.denoms {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 10px;
}

.denom {
    position: relative;
    padding: 14px 6px 12px;
    font-family: inherit;
    text-align: center;
    background: var(--bg);
    border: 1.5px solid var(--line);
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition:
        border-color 0.15s,
        box-shadow 0.15s,
        transform 0.05s,
        background 0.15s;
    appearance: none;
}

.denom:hover {
    border-color: var(--text-mute);
}

.denom:active {
    transform: scale(0.98);
}

.denom__value {
    color: var(--text);
    font-weight: 600;
    font-size: 18px;
    line-height: 1;
}

.denom__cur {
    margin-top: 4px;
    color: var(--text-mute);
    font-size: 12px;
}

.denom.is-active {
    background: var(--accent-soft);
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgb(0 113 227 / 14%);
}

.denom.is-active .denom__cur {
    color: var(--accent);
}

.denom__check {
    position: absolute;
    top: 6px;
    right: 6px;
    width: 16px;
    height: 16px;
    color: var(--accent);
    opacity: 0;
    transition: opacity 0.15s;
}

.denom.is-active .denom__check {
    opacity: 1;
}

/* ---------- Поля ввода ---------- */
.input {
    width: 100%;
    padding: 14px 15px;
    color: var(--text);
    font-size: 16px;
    font-family: inherit;
    background: var(--bg);
    border: 1.5px solid var(--line);
    border-radius: var(--radius-sm);
    transition:
        border-color 0.15s,
        box-shadow 0.15s;
}

.input::placeholder {
    color: var(--text-mute);
}

.input:focus {
    border-color: var(--accent);
    outline: none;
    box-shadow: 0 0 0 3px rgb(0 113 227 / 14%);
}

.input.is-invalid {
    border-color: var(--danger);
    box-shadow: 0 0 0 3px rgb(217 47 47 / 12%);
}

.input-hint {
    margin: 8px 2px 0;
    color: var(--text-mute);
    font-size: 13px;
}

.input-error {
    display: none;
    margin: 8px 2px 0;
    color: var(--danger);
    font-size: 13px;
}

.input-error.is-shown {
    display: block;
}

.input-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.input-wrap {
    position: relative;
}

.input-wrap .input {
    padding-left: 44px;
}

.input-wrap__icon {
    position: absolute;
    top: 50%;
    left: 14px;
    width: 18px;
    height: 18px;
    color: var(--text-mute);
    transform: translateY(-50%);
    pointer-events: none;
}

.m-t-12 {
    margin-top: 12px;
}

.m-t-14 {
    margin-top: 14px;
}

.m-t-26 {
    margin-top: 26px;
}

.m-t-32 {
    margin-top: 32px;
}

.m-t-34 {
    margin-top: 34px;
}

.m-t-38 {
    margin-top: 38px;
}

.m-t-40 {
    margin-top: 40px;
}

.color-success {
    color: var(--success);
}

.color-danger {
    color: var(--danger);
}

.service-provider-content {
    height: calc(100vh - 260px);
}

.instructions-container,
.wiki-container {
    max-width: 760px;
}

/* Скрываем input-amount по умолчанию */

@keyframes fade-in {
    from {
        transform: translateY(-8px);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

#input-amount {
    display: none;
    margin-top: 8px;
    animation: fade-in 0.25s ease;
}

#input-amount.is-visible {
    display: flex;
}

/* Скрываем denoms когда активна "Моя сумма" */
#denoms.is-hidden {
    display: none;
}

/* Стили для кнопки "Моя сумма" */
.denom--custom {
    position: relative;
    border-style: dashed !important;
}

.denom--custom:hover {
    background: #f5f9ff;
    border-color: #007aff !important;
}

.denom--custom .denom__value {
    font-size: 15px;
}

/* Убираем стрелочки у input[type=number] */
#amount::-webkit-outer-spin-button,
#amount::-webkit-inner-spin-button {
    margin: 0;
    appearance: none;
}

#amount {
    appearance: textfield;
}

/* Группа чекбоксов — колонка */
.checkbox-group {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin: 16px 0 20px;
}

/* Каждый чекбокс + подпись — строка с выравниванием */
.checkbox-label {
    display: flex;
    gap: 10px;
    align-items: center;
    color: #1e293b;
    font-size: 15px;
    line-height: 1.4;
    cursor: pointer;
    transition: color 0.15s;
}

.checkbox-label-text {
    text-align: start;
}

.checkbox-label:hover {
    color: #0f172a;
}

/* Скрываем нативный чекбокс */
.checkbox-input {
    position: absolute;
    width: 0;
    height: 0;
    opacity: 0;
    pointer-events: none;
}

/* Кастомный квадратик */
.checkbox-custom {
    display: flex;
    flex-shrink: 0;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    background-color: #fff;
    border: 2px solid #cbd5e1;
    border-radius: 6px;
    transition:
        border-color 0.2s,
        background-color 0.2s,
        box-shadow 0.2s;
}

/* Состояние hover */
.checkbox-label:hover .checkbox-custom {
    border-color: #94a3b8;
}

/* Состояние checked — синий фон и галочка */
.checkbox-input:checked + .checkbox-custom {
    background-color: #0060c0;
    border-color: #0060c0;
}

/* Галочка (SVG) — появляется только при checked */
.checkbox-input:checked + .checkbox-custom::after {
    display: block;
    width: 12px;
    height: 12px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6L9 17l-5-5'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
    content: '';
}

/* Ошибка — красная рамка у квадратика */
.checkbox-label.is-error .checkbox-custom {
    background-color: #fff5f5;
    border-color: #d92f2f;
}

/* ---------- Кнопки ---------- */
.btn {
    display: inline-flex;
    gap: 9px;
    align-items: center;
    justify-content: center;
    margin-top: 20px;
    padding: 15px 26px;
    font-weight: 500;
    font-size: 17px;
    font-family: inherit;
    text-decoration: none;
    border: none;
    border-radius: 980px;
    cursor: pointer;
    transition:
        background 0.15s,
        transform 0.05s,
        opacity 0.15s;
}

.btn:active {
    transform: scale(0.985);
}

.btn--primary {
    color: #fff;
    background: var(--accent);
}

.btn--buy {
    margin: 0 auto;
    padding: 15px 96px;
    text-align: center;
}

.btn--primary:hover {
    text-decoration: none;
    background: var(--accent-press);
}

.btn--ghost {
    color: var(--text);
    background: var(--bg-soft);
}

.btn--ghost:hover {
    text-decoration: none;
    background: #ececf0;
}

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

.btn--lg {
    padding: 17px 30px;
    font-size: 18px;
}

.btn[disabled] {
    cursor: not-allowed;
    opacity: 0.5;
}

.btn__spinner {
    display: none;
    width: 18px;
    height: 18px;
    border: 2px solid rgb(255 255 255 / 45%);
    border-top-color: #fff;
    border-radius: 50%;
    animation: spin 0.7s linear infinite;
}

.btn.is-loading .btn__spinner {
    display: inline-block;
}

.btn.is-loading .btn__label {
    opacity: 0.85;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.pay-total {
    margin: 22px 0 6px;
    text-align: center;
}

.pay-total__amount {
    font-weight: 600;
    font-size: 30px;
    letter-spacing: -0.02em;
}

/* ---------- Способы оплаты (сегментированный переключатель) ---------- */
.segmented {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 4px;
    margin-bottom: 6px;
    padding: 4px;
    background: var(--bg-soft);
    border-radius: 12px;
}

.seg-btn {
    display: flex;
    flex-direction: column;
    gap: 6px;
    align-items: center;
    padding: 11px 6px;
    color: var(--text-soft);
    font-weight: 500;
    font-size: 14px;
    font-family: inherit;
    background: transparent;
    border: none;
    border-radius: 9px;
    cursor: pointer;
    transition:
        background 0.15s,
        color 0.15s,
        box-shadow 0.15s;
    appearance: none;
}

.seg-btn svg {
    width: 20px;
    height: 20px;
}

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

.seg-btn.is-active {
    color: var(--text);
    background: #fff;
    box-shadow: var(--shadow-sm);
}

.seg-btn.is-active svg {
    color: var(--accent);
}

.method-note {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    margin: 4px 0 2px;
    padding: 13px 15px;
    color: var(--text);
    font-size: 13px;
    background: var(--accent-soft);
    border-radius: 12px;
}

.method-note svg {
    flex: none;
    width: 17px;
    height: 17px;
    margin-top: 1px;
    color: var(--accent);
}

/* ---------- СБП ---------- */
.sbp {
    padding: 8px 0 2px;
    text-align: center;
}

.sbp__qr {
    width: 208px;
    height: 208px;
    margin: 8px auto 16px;
    padding: 12px;
    background: #fff;
    border: 1px solid var(--line-soft);
    border-radius: 16px;
    box-shadow: var(--shadow-sm);
}

.sbp__qr svg {
    display: block;
    width: 100%;
    height: 100%;
}

.sbp__hint {
    max-width: 340px;
    margin: 0 auto;
    color: var(--text-soft);
    font-size: 14px;
}

.sbp__or {
    display: flex;
    gap: 12px;
    align-items: center;
    margin: 18px 0;
    color: var(--text-mute);
    font-size: 13px;
}

.sbp__or::before,
.sbp__or::after {
    flex: 1;
    height: 1px;
    background: var(--line-soft);
    content: '';
}

/* Контейнер для горизонтального скролла */
.denoms-wrapper {
    position: relative;
    display: flex;
    gap: 8px;
    align-items: center;
    margin-bottom: 16px;
}

.denoms-scroll {
    display: flex;
    flex: 1;
    gap: 8px;
    padding: 4px 0;
    overflow: auto hidden;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE и Edge */
}

.denoms-scroll::-webkit-scrollbar {
    display: none; /* Chrome, Safari, Opera */
}

/* Кнопки навигации */
.denoms-nav-btn {
    z-index: 2;
    display: flex;
    flex-shrink: 0;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 64px;
    padding: 0;
    color: #1a1a1a;
    font-size: 18px;
    background: #fff;
    border: none;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgb(0 0 0 / 8%);
    cursor: pointer;
    transition: all 0.2s;
}

.denoms-nav-btn:hover {
    background: #f5f9ff;
    box-shadow: 0 4px 12px rgb(0 122 255 / 15%);
}

.denoms-nav-btn:active {
    transform: scale(0.95);
}

.denoms-nav-btn svg {
    width: 20px;
    height: 20px;
}

.denoms-nav-btn:disabled {
    cursor: default;
    opacity: 0.3;
    pointer-events: none;
}

/* Стили для кнопок-деноминаций внутри скролла */
.denoms-scroll .denom {
    flex-shrink: 0;
    min-width: 72px;
    height: 64px;
    padding: 8px 12px;
}

.denoms-scroll .denom .denom__value {
    font-size: 15px;
}

.denoms-scroll .denom .denom__cur {
    font-size: 10px;
}

/* Контейнер для горизонтального скролла */
.denoms-wrapper {
    position: relative;
    display: flex;
    gap: 8px;
    align-items: center;
    margin-bottom: 16px;
}

.denoms-scroll {
    display: flex;
    flex: 1;
    gap: 8px;
    padding: 4px 0;
    overflow: auto hidden;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.denoms-scroll::-webkit-scrollbar {
    display: none;
}

.denoms-nav-btn {
    z-index: 2;
    display: flex;
    flex-shrink: 0;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 64px;
    padding: 0;
    color: #1a1a1a;
    font-size: 18px;
    background: #fff;
    border: none;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgb(0 0 0 / 8%);
    cursor: pointer;
    transition: all 0.2s;
}

.denoms-nav-btn:hover {
    background: #f5f9ff;
    box-shadow: 0 4px 12px rgb(0 122 255 / 15%);
}

.denoms-nav-btn:active {
    transform: scale(0.95);
}

.denoms-nav-btn svg {
    width: 20px;
    height: 20px;
}

.denoms-nav-btn:disabled {
    cursor: default;
    opacity: 0.3;
    pointer-events: none;
}

.denoms-scroll .denom {
    flex-shrink: 0;
    min-width: 72px;
    height: 64px;
    padding: 8px 12px;
}

.denoms-scroll .denom .denom__value {
    font-size: 15px;
}

.denoms-scroll .denom .denom__cur {
    font-size: 10px;
}

.input-error--amount {
    display: none;
    margin-top: -8px;
    margin-bottom: 12px;
}

.input-error--amount.is-shown {
    display: block;
}

/* ---------- Секьюрити-строка ---------- */
.secure-note {
    display: flex;
    gap: 8px;
    align-items: center;
    justify-content: center;
    margin-top: 16px;
    color: var(--text-mute);
    font-size: 13px;
}

.secure-note svg {
    width: 15px;
    height: 15px;
}

/* ---------- Как это работает ---------- */
.steps {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 22px;
    margin-top: 40px;
}

.step {
    padding: 26px 24px;
    background: var(--bg-soft);
    border-radius: var(--radius);
}

.step__num {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    margin: 0 auto 16px;
    color: #fff;
    font-weight: 600;
    font-size: 16px;
    background: var(--text);
    border-radius: 50%;
}

.step__title {
    margin-bottom: 6px;
    font-weight: 600;
    font-size: 18px;
}

.step__text {
    color: var(--text-soft);
    font-size: 15px;
}

/* ---------- FAQ ---------- */
.faq {
    max-width: 720px;
    margin: 36px auto 0;
}

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

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

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

.faq summary::after {
    color: var(--text-mute);
    font-weight: 400;
    font-size: 22px;
    line-height: 1;
    transition: transform 0.2s;
    content: '+';
}

.faq details[open] summary::after {
    transform: rotate(45deg);
}

.faq p {
    margin: 0 4px 18px;
    color: var(--text-soft);
    font-size: 15px;
}

.btn--buy_container {
    display: flex;
    justify-content: center;
    width: 100%;
    margin-top: 40px;
}

/* ---------- WIKI ---------- */
.wiki-container {
    flex-grow: 1;
    padding-top: 50px;
}

.wiki {
    max-width: 720px;
    margin: 36px auto 0;
}

.wiki div {
    display: flex;
    gap: 16px;
    justify-content: space-between;
    padding: 18px 4px;
    font-weight: 500;
    font-size: 17px;
    list-style: none;
    border-bottom: 1px solid var(--line-soft);
    cursor: pointer;
}

/* ---------- Статус-страницы (успех/ошибка/инструкция) ---------- */
.status-wrap {
    max-width: 640px;
    margin: 0 auto;
    padding: 70px 0 40px;
    text-align: center;
}

.status-icons {
    position: relative;
    z-index: 3;
    display: flex;
    gap: 16px;
    align-items: flex-end;
    justify-content: center;
}

.steps-line {
    position: absolute;
    top: 42px;
    right: 100px;
    left: 100px;
    z-index: -1;
    height: 1px;
    background: var(--bg-soft);
}

.status-icon__container {
    display: flex;
    flex-direction: column;
    gap: 8px;
    align-items: center;
    justify-content: center;
    width: 33.33%;
}

.status-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 84px;
    height: 84px;
    border-radius: 50%;
}

.small-step {
    transform: scale(0.3);
}

.status-icon svg {
    width: 44px;
    height: 44px;
}

.status-color-positive {
    color: var(--success);
}

.status-icon--ok {
    color: var(--success);
    background: var(--success-soft);
}

.status-icon--err {
    margin: 0 auto;
    color: var(--danger);
    background: var(--danger-soft);
}

.status-wrap .lead {
    margin: 16px auto 0;
}

/* Панель заказа / сертификата */
.panel {
    margin: 30px auto 0;
    padding: 22px 24px;
    text-align: left;
    background: var(--bg-soft);
    border-radius: var(--radius);
}

.panel__row {
    display: flex;
    gap: 16px;
    justify-content: space-between;
    padding: 11px 0;
    font-size: 15px;
    border-bottom: 1px solid var(--line-soft);
}

.panel__row:last-child {
    border-bottom: none;
}

.panel__row .k {
    color: var(--text-soft);
}

.panel__row .v {
    color: var(--text);
    font-weight: 600;
    text-align: right;
}

/* Инструкция — шаги */
.howto {
    max-width: 720px;
    margin: 0 auto;
    text-align: left;
}

.howto-step {
    display: flex;
    gap: 18px;
    padding: 22px 0;
    border-bottom: 1px solid var(--line-soft);
}

.howto-step:last-child {
    border-bottom: none;
}

.howto-step__num {
    display: flex;
    flex: none;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    color: var(--accent);
    font-weight: 600;
    background: var(--accent-soft);
    border-radius: 50%;
}

.howto-step__title {
    margin-bottom: 5px;
    font-weight: 600;
    font-size: 18px;
}

.howto-step__text {
    color: var(--text-soft);
    font-size: 15px;
}

.howto-step__text code {
    padding: 1px 7px;
    font-size: 13px;
    background: #fff;
    border: 1px solid var(--line-soft);
    border-radius: 6px;
}

.callout {
    display: flex;
    gap: 12px;
    margin: 28px 0;
    padding: 18px 20px;
    color: var(--text);
    text-align: left;
    background: var(--accent-soft);
    border-radius: var(--radius);
}

.callout svg {
    flex: none;
    width: 20px;
    height: 20px;
    margin-top: 1px;
    color: var(--accent);
}

.callout--warn {
    background: #fff7e6;
}

.callout--warn svg {
    color: #b8860b;
}

.actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: center;
    margin-top: 32px;
}

/* ---------- Футер ---------- */
.footer {
    margin-top: 40px;
    padding: 34px 0;
    color: var(--text-mute);
    font-size: 13px;
    background: var(--bg-soft);
    border-top: 1px solid var(--line-soft);
}

.footer__inner {
    display: flex;
    gap: 14px;
    justify-content: space-between;
}

.footer__inner-column {
    display: flex;
    flex-direction: column;
    gap: 14px;
    width: calc(50% - 14px);
}

.footer__inner-column nav {
    display: flex;
    gap: 12px;
    justify-content: flex-end;
}

.vertical-hr {
    width: 1px;
    margin-top: 26px;
    background: #cecfd9;
}

.contact-phone {
    padding: 10px 0;
}

.footer nav a {
    color: var(--text-soft);
}

.footer p {
    margin: 0;
}

/* ---------- Утилиты ---------- */
.stack-sm > * + * {
    margin-top: 10px;
}

.mt-0 {
    margin-top: 0;
}

.hidden {
    display: none !important;
}

[hidden] {
    display: none !important;
}

.loader {
    position: fixed;
    inset: 0;
    z-index: 12212;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100vh;
    background: #ffffffd9;
}

.loader-big-svg {
    width: 68px;
    height: 68px;
    animation: spin 1s linear infinite;
}

/* ---------- Адаптив ---------- */
@media (width <= 720px) {
    .steps {
        grid-template-columns: 1fr;
    }

    .denoms {
        grid-template-columns: repeat(4, 1fr);
    }

    /* Скрываем блок с кнопками */
    #denoms {
        display: none !important;
    }

    /* Показываем инпут */
    #input-amount {
        display: flex !important;
    }

    .topbar__nav {
        display: none;
    }

    .section {
        padding: 52px 0;
    }

    .hero {
        padding: 14px 0 30px;
    }

    .buybox {
        padding: 24px 20px;
        border-radius: var(--radius);
    }

    .footer__inner_right-column {
        flex-direction: column;
        align-items: end;
        justify-content: flex-start;
    }

    .footer__inner-column {
        width: 100%;
    }

    .footer__inner {
        flex-direction: column;
    }

    .vertical-hr {
        width: 100%;
        height: 1px;
    }
}

@media (width <= 420px) {
    .denoms {
        grid-template-columns: repeat(3, 1fr);
    }

    .input-row {
        grid-template-columns: 1fr;
    }

    .denoms-nav-btn {
        width: 28px;
        height: 48px;
    }

    .denoms-scroll .denom {
        min-width: 52px;
        height: 48px;
        padding: 4px 8px;
    }

    .denoms-scroll .denom .denom__value {
        font-size: 12px;
    }

    .denoms-scroll .denom .denom__cur {
        font-size: 8px;
    }
}

/* Адаптив для мобильных */
@media (width <= 600px) {
    .denoms-nav-btn {
        width: 32px;
        height: 56px;
    }

    .denoms-nav-btn svg {
        width: 16px;
        height: 16px;
    }

    .denoms-scroll .denom {
        min-width: 60px;
        height: 56px;
        padding: 6px 10px;
    }

    .denoms-scroll .denom .denom__value {
        font-size: 13px;
    }

    .denoms-scroll .denom .denom__cur {
        font-size: 9px;
    }

    .steps-line {
        left: 50%;
        width: 1px;
        height: 331px;
    }

    .status-icons {
        flex-direction: column;
        align-items: center;
    }
}

/* ---------- Доступность ---------- */
:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
}

@media (width <= 600px) {
    .denoms-nav-btn {
        width: 32px;
        height: 56px;
    }

    .denoms-nav-btn svg {
        width: 16px;
        height: 16px;
    }

    .denoms-scroll .denom {
        min-width: 60px;
        height: 56px;
        padding: 6px 10px;
    }

    .denoms-scroll .denom .denom__value {
        font-size: 13px;
    }

    .denoms-scroll .denom .denom__cur {
        font-size: 9px;
    }
}

@media (width <= 400px) {
    .denoms-nav-btn {
        width: 28px;
        height: 48px;
    }

    .denoms-scroll .denom {
        min-width: 52px;
        height: 48px;
        padding: 4px 8px;
    }

    .denoms-scroll .denom .denom__value {
        font-size: 12px;
    }

    .denoms-scroll .denom .denom__cur {
        font-size: 8px;
    }
}

@media (prefers-reduced-motion: reduce) {
    * {
        transition-duration: 0.001ms !important;
        animation-duration: 0.001ms !important;
    }
}
