/* Страницы результата оплаты /pay/* (success, cancel, error) поверх стилей сайта (assets/css/styles.css).
   Только переменные и приёмы сайта; инлайновых стилей нет — CSP (SecurityHeadersMiddleware) их запрещает. */

.tariff-note {
    text-align: center;
    color: var(--text-muted);
    margin-top: 40px;
}

.tariff-checkout {
    max-width: 560px;
    margin: 48px auto 0;
    padding: 32px 24px;
    background: var(--glass-bg);
    border: 1px solid var(--hairline);
    border-radius: var(--radius);
    scroll-margin-top: 24px;
}

.tariff-checkout h3 {
    text-align: center;
    margin-bottom: 16px;
}

/* С JavaScript форма раскрывается по кнопке тарифа; без него видна всегда. */
.js .tariff-checkout[data-open="0"] { display: none; }

.tariff-form {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.tariff-plans {
    border: none;
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 8px;
}

.tariff-plans legend,
.tariff-label {
    font-family: 'Unbounded', sans-serif;
    font-size: 0.85rem;
    color: var(--text-heading);
    margin-bottom: 8px;
}

.tariff-plan {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 14px;
    border: 1px solid var(--hairline);
    border-radius: 8px;
    cursor: pointer;
}

.tariff-plan:has(input:checked) {
    border-color: var(--primary);
    background: var(--primary-soft);
}

.tariff-plan input { accent-color: var(--primary); }

.tariff-input {
    width: 100%;
    padding: 14px 16px;
    font: inherit;
    font-size: 1.1rem;
    color: var(--text-heading);
    background: var(--bg-elevated);
    border: 1px solid var(--glass-border);
    border-radius: 8px;
}

.tariff-input:focus-visible { border-color: var(--primary); }

.tariff-hint {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 8px;
}

.tariff-error {
    color: #FCA5A5;
    background: rgba(239, 68, 68, 0.12);
    border: 1px solid rgba(239, 68, 68, 0.4);
    border-radius: 8px;
    padding: 12px 14px;
    margin-bottom: 16px;
}

.tariff-ok {
    color: var(--cta-green);
    text-align: center;
    font-size: 1.1rem;
    margin-bottom: 16px;
}

.tariff-result .section-lead { margin-bottom: 24px; }

.tariff-back {
    text-align: center;
    margin-top: 20px;
}

.tariff-back a { color: var(--text-muted); }

/* Кнопка «Вернуться на сайт» на страницах результата оплаты (/pay/success, /pay/cancel, /pay/error). */
.tariff-site { margin-top: 16px; }

/* Главная страница сервера: логотип как в шапке сайта, по центру экрана */
html:has(.home) { background-color: var(--bg-dark); min-height: 100%; }
body:has(.home) { min-height: 100vh; min-height: 100dvh; }
body:has(.home) main { min-height: 100vh; min-height: 100dvh; display: flex; }
.home {
    margin: auto;
    padding: 2rem 1rem;
    text-align: center;
}
.home-logo { display: inline-block; font-size: clamp(3rem, 12vw, 8rem); margin-bottom: 2rem; }
