/* ============================================================
   SizoPAY — main.css
   Дизайн на основе макетов Figma
   ============================================================ */

/* --- Reset & Base --- */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

a, button, input, select, textarea {
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
}

:root {
    --color-primary: #4C8CC5;
    --color-primary-hover: #3d7ab3;
    --color-primary-light: rgba(76, 140, 197, 0.08);
    --color-accent: #005FF9;
    --color-text: #2C2D2E;
    --color-text-secondary: #87898F;
    --color-text-tertiary: #AAADB3;
    --color-bg: #F5F5F5;
    --color-card: #FFFFFF;
    --color-border: rgba(0, 16, 61, 0.12);
    --color-border-focus: #4C8CC5;
    --color-badge: rgba(255, 241, 173, 0.48);
    --color-error: #E64646;
    --color-success: #0DC268;
    --radius-card: 14px;
    --radius-input: 8px;
    --radius-btn: 8px;
    --shadow-card: 0 1px 3px rgba(0, 16, 61, 0.06);
    --shadow-header: 0 4px 10px rgba(0, 0, 0, 0.04);
    --font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --max-width: 960px;
}

html {
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: var(--font-family);
    color: var(--color-text);
    background-color: var(--color-bg);
    line-height: 1.5;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

a {
    color: var(--color-primary);
    text-decoration: none;
    transition: color 0.15s;
}

a:hover {
    color: var(--color-primary-hover);
    text-decoration: underline;
}

/* ============================================================
   Header (2-строчный по макету Figma)
   ============================================================ */
.header {
    background: var(--color-card);
    box-shadow: var(--shadow-header);
    position: sticky;
    top: 0;
    z-index: 100;
}

.header__top {
    border-bottom: 1px solid var(--color-border);
}

.header__top-inner {
    max-width: 960px;
    margin: 0 auto;
    padding: 0 0;
    height: 100px;
    display: flex;
    align-items: center;
    gap: 0;
}

.header__logo {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    text-decoration: none;
}

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

.header__logo-img {
    height: 36px;
    width: auto;
    display: block;
}

.header__info {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 0;
}

.header__tagline {
    font-size: 15px;
    color: var(--color-text);
    line-height: 20px;
    text-align: center;
}

.header__tagline strong {
    font-weight: 600;
}

.header__actions {
    flex-shrink: 0;
}

.btn--header-auth {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 44px;
    padding: 0 16px;
    font-size: 16px;
    font-weight: 500;
    font-family: var(--font-family);
    color: white;
    background: var(--color-accent);
    border: none;
    border-radius: var(--radius-btn);
    cursor: pointer;
    text-decoration: none;
    white-space: nowrap;
    max-width: 200px;
    overflow: hidden;
    text-overflow: ellipsis;
    transition: background 0.15s;
}

.btn--header-auth:hover {
    background: #0050d0;
    text-decoration: none;
    color: white;
}

.btn--header-auth-logged {
    background: var(--color-success);
}

.btn--header-auth-logged:hover {
    background: #0baf5a;
    color: white;
}

/* Nav row */
.header__nav {
    max-width: 960px;
    margin: 0 auto;
}

.header__nav-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 48px;
}

.header__nav-link {
    font-size: 17px;
    font-weight: 500;
    color: var(--color-primary);
    text-decoration: none;
    padding: 0 4px;
    line-height: 22px;
    white-space: nowrap;
}

.header__nav-link:hover {
    color: var(--color-primary-hover);
    text-decoration: none;
}

/* Burger button — mobile only (Figma: right 16px, blue rounded bars) */
.burger {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: flex-end;
    gap: 5px;
    width: 32px;
    height: 32px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
    flex-shrink: 0;
    margin-left: auto;
}

.burger__line {
    display: block;
    width: 24px;
    height: 3px;
    background: #3F8AE0;
    border-radius: 999px;
    transition: transform 0.3s, opacity 0.3s;
}

/* ============================================================
   Mobile menu (slide from right)
   ============================================================ */
.mobile-menu {
    position: fixed;
    inset: 0;
    z-index: 200;
    pointer-events: none;
    visibility: hidden;
}

.mobile-menu.is-open {
    pointer-events: auto;
    visibility: visible;
}

.mobile-menu__overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.4);
    opacity: 0;
    transition: opacity 0.3s;
}

.mobile-menu.is-open .mobile-menu__overlay {
    opacity: 1;
}

.mobile-menu__panel {
    position: absolute;
    top: 0;
    right: 0;
    width: 280px;
    max-width: 85vw;
    height: 100%;
    background: white;
    transform: translateX(100%);
    transition: transform 0.3s ease;
    display: flex;
    flex-direction: column;
    padding: 20px 24px;
}

.mobile-menu.is-open .mobile-menu__panel {
    transform: translateX(0);
}

.mobile-menu__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 32px;
}

.mobile-menu__close {
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
}

.mobile-menu__nav {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.mobile-menu__link {
    font-size: 17px;
    font-weight: 500;
    color: var(--color-text);
    padding: 10px 0;
    text-decoration: none;
    border-bottom: 1px solid var(--color-border);
}

.mobile-menu__link:hover {
    color: var(--color-primary);
    text-decoration: none;
}

.mobile-menu__footer {
    margin-top: auto;
    padding-top: 24px;
}

/* ============================================================
   Main content
   ============================================================ */
.main {
    flex: 1;
    width: 100%;
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 32px 16px 48px;
}

.main:has(.banner) {
    padding-top: 0;
}

/* ============================================================
   Banner (Home Page)  — based on Figma css_for_main.md
   ============================================================ */
.banner {
    background: #F9FBFF;
    border-radius: 0 0 48px 48px;
    position: relative;
    max-width: 1160px;
    margin: 0 auto;
    height: 478px;
    padding: 72px 100px 0;
    margin-bottom: -80px;
    overflow: hidden;
}

.banner__content {
    position: relative;
    z-index: 2;
    max-width: 480px;
}

.banner__title {
    font-family: 'Inter', sans-serif;
    font-weight: 700;
    font-size: 24px;
    line-height: 28px;
    color: #2C2D2E;
    margin-bottom: 28px;
}

.banner__badges {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    gap: 0;
    width: 461px;
}

.banner__badges-col {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
    flex: 1 0 0;
}

.banner__badge {
    display: flex;
    flex-direction: row;
    align-items: center;
    padding: 0 16px;
    gap: 12px;
    width: 230.5px;
    height: 60px;
    border-radius: 16px;
    flex: none;
    box-sizing: border-box;
}

.banner__badge--green { background: rgba(13, 194, 104, 0.1); }
.banner__badge--orange,
.banner__badge--blue,
.banner__badge--violet { background: transparent; }

.banner__badge-icon {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    padding: 6px;
}

.banner__badge-icon svg { width: 20px; height: 20px; }

.banner__badge-icon--green {
    background: rgba(13, 194, 104, 0.2);
    color: #0DC268;
}
.banner__badge-icon--orange {
    background: rgba(255, 158, 0, 0.2);
    color: #FF9E00;
}
.banner__badge-icon--blue {
    background: rgba(0, 95, 249, 0.2);
    color: #005FF9;
}
.banner__badge-icon--violet {
    background: rgba(79, 109, 220, 0.2);
    color: #4F6DDC;
}

.banner__badge-text {
    font-family: 'Inter', sans-serif;
    font-weight: 500;
    font-size: 16px;
    line-height: 20px;
    color: #2C2D2E;
    flex: 1;
    min-width: 0;
}

/* --- Banner images area --- */
.banner__images {
    position: absolute;
    right: 0;
    top: 0;
    bottom: 0;
    width: 55%;
    pointer-events: none;
}

.banner__ellipse {
    position: absolute;
    border-radius: 50%;
}
.banner__ellipse--1 {
    width: 207px; height: 250px;
    background: #98C5DA;
    filter: blur(87.62px);
    right: 47px; top: 60px;
    transform: rotate(-31.23deg);
}
.banner__ellipse--2 {
    width: 207px; height: 250px;
    background: #9EC6E6;
    filter: blur(87.62px);
    left: 16px; top: 16px;
    transform: rotate(-21.36deg);
}
.banner__ellipse--3 {
    width: 196px; height: 330px;
    background: #FFFFFF;
    filter: blur(52px);
    left: 168px; top: 33px;
}

.banner__photo {
    position: absolute;
    bottom: 0;
    right: 0;
    width: 100%;
    height: 100%;
    display: block;
    object-fit: contain;
    object-position: right bottom;
}

/* ============================================================
   Transfer Form wrapper (overlaps banner)
   ============================================================ */
#transferForm {
    position: relative;
    z-index: 3;
}

/* ============================================================
   Card
   ============================================================ */
.card {
    background: var(--color-card);
    border-radius: var(--radius-card);
    border: 1px solid var(--color-border);
    box-shadow: var(--shadow-card);
    padding: 32px;
    margin-bottom: 24px;
}

.card__title {
    font-size: 24px;
    font-weight: 700;
    line-height: 28px;
    color: var(--color-text);
    margin-bottom: 24px;
}

/* ============================================================
   Form elements
   ============================================================ */
.form-row {
    display: flex;
    gap: 16px;
    margin-bottom: 16px;
}

.form-row:last-child { margin-bottom: 0; }

.form-group {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.form-group--full { flex: 1 1 100%; }

.form-label {
    font-size: 12px;
    font-weight: 500;
    color: var(--color-text-secondary);
    margin-bottom: 2px;
}

label.consent-label {
    font-size: 12px;
}

.form-input,
.form-select {
    width: 100%;
    height: 48px;
    padding: 0 12px;
    font-size: 16px;
    font-size: 16px;
    font-family: var(--font-family);
    color: var(--color-text);
    background: var(--color-card);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-input);
    outline: none;
    transition: border-color 0.15s, box-shadow 0.15s;
    appearance: none;
    -webkit-appearance: none;
}

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

.form-input-wrapper {
    position: relative;
}

.form-input-wrapper .form-input {
    padding-right: 42px;
}

.passport-info-btn {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    padding: 4px;
    cursor: pointer;
    color: var(--color-text-secondary);
    line-height: 0;
    transition: color 0.15s;
}

.passport-info-btn:hover {
    color: var(--color-primary, #4c8cc5);
}

.passport-info-tooltip {
    position: absolute;
    bottom: calc(100% + 8px);
    left: 0;
    right: 0;
    background: #333;
    color: #fff;
    font-size: 13px;
    line-height: 1.4;
    padding: 10px 12px;
    border-radius: 8px;
    z-index: 100;
    box-shadow: 0 4px 12px rgba(0,0,0,0.18);
}

.passport-info-tooltip::after {
    content: '';
    position: absolute;
    top: 100%;
    right: 16px;
    border: 6px solid transparent;
    border-top-color: #333;
}

.form-input:focus,
.form-select:focus {
    border-color: var(--color-border-focus);
    box-shadow: 0 0 0 3px rgba(76, 140, 197, 0.12);
}

.form-input.is-error,
.form-select.is-error {
    border-color: var(--color-error);
    box-shadow: 0 0 0 3px rgba(230, 70, 70, 0.1);
}

.form-input.is-error:focus,
.form-select.is-error:focus {
    border-color: var(--color-error);
    box-shadow: 0 0 0 3px rgba(230, 70, 70, 0.15);
}

.form-select {
    padding-right: 36px;
    background-image: url("data:image/svg+xml,%3Csvg width='12' height='7' viewBox='0 0 12 7' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1L6 6L11 1' stroke='%23A5A7AD' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    cursor: pointer;
}

.form-hint {
    font-size: 12px;
    color: var(--color-text-tertiary);
    line-height: 1.4;
}

.form-error {
    font-size: 12px;
    color: var(--color-error);
    display: none;
}

.form-error.is-visible { display: block; }

/* ============================================================
   Amount quick-select chips
   ============================================================ */
.amount-chips {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.amount-chip {
    height: 28px;
    padding: 4px 16px;
    font-size: 13px;
    font-weight: 500;
    font-family: var(--font-family);
    color: var(--color-text);
    background: transparent;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-input);
    cursor: pointer;
    transition: background 0.15s, border-color 0.15s;
    white-space: nowrap;
}

.amount-chip:hover {
    background: var(--color-primary-light);
    border-color: var(--color-primary);
}

.amount-chip.is-active {
    background: var(--color-primary-light);
    border-color: var(--color-primary);
    color: var(--color-primary);
}

/* ============================================================
   Toggle (switch)
   ============================================================ */
.toggle-row {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px 0;
}

.toggle {
    position: relative;
    width: 38px;
    height: 20px;
    flex-shrink: 0;
}

.toggle input { opacity: 0; width: 0; height: 0; position: absolute; }

.toggle__track {
    position: absolute;
    inset: 0;
    background: #C4C8CC;
    border-radius: 10px;
    transition: background 0.2s;
    cursor: pointer;
}

.toggle input:checked + .toggle__track { background: var(--color-primary); }

.toggle__thumb {
    position: absolute;
    width: 16px;
    height: 16px;
    background: white;
    border-radius: 50%;
    top: 2px;
    left: 2px;
    transition: transform 0.2s;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
    pointer-events: none;
}

.toggle input:checked ~ .toggle__thumb { transform: translateX(18px); }

.toggle-label {
    font-size: 15px;
    color: var(--color-text);
    cursor: pointer;
}

.toggle-badge {
    padding: 2px 8px;
    font-size: 15px;
    background: var(--color-badge);
    border-radius: 14px;
    white-space: nowrap;
}

/* Info tooltip icon */
.info-tooltip {
    position: relative;
    display: inline-flex;
    align-items: center;
    cursor: pointer;
}

.info-tooltip__icon {
    width: 16px;
    height: 16px;
    fill: var(--color-text-tertiary);
    transition: fill 0.15s;
}

.info-tooltip:hover .info-tooltip__icon { fill: var(--color-primary); }

.info-tooltip__popup {
    display: none;
    position: absolute;
    bottom: calc(100% + 8px);
    left: 50%;
    transform: translateX(-50%);
    background: var(--color-text);
    color: white;
    font-size: 13px;
    line-height: 1.4;
    padding: 12px 16px;
    border-radius: 8px;
    width: 280px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
    z-index: 50;
}

.info-tooltip__popup::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    border: 6px solid transparent;
    border-top-color: var(--color-text);
}

.info-tooltip.is-active .info-tooltip__popup { display: block; }

/* ============================================================
   Button
   ============================================================ */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    height: 48px;
    padding: 0 24px;
    font-size: 16px;
    font-weight: 500;
    font-family: var(--font-family);
    border: none;
    border-radius: var(--radius-btn);
    cursor: pointer;
    transition: background 0.15s, transform 0.1s;
    white-space: nowrap;
    text-decoration: none;
}

.btn:hover { text-decoration: none; }
.btn:active { transform: scale(0.98); }

.btn--primary { background: var(--color-primary); color: white; }
.btn--primary:hover { background: var(--color-primary-hover); color: white; }
.btn--primary:disabled { background: #B0C4DE; cursor: not-allowed; }

.btn--accent { background: var(--color-accent); color: white; }
.btn--accent:hover { background: #0050d0; color: white; }

.btn__arrow { font-size: 18px; margin-left: 2px; }

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

.btn--sm { height: 36px; padding: 0 16px; font-size: 14px; }

.btn--outline {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    height: 44px;
    padding: 0 24px;
    font-size: 15px;
    font-weight: 500;
    font-family: var(--font-family);
    background: transparent;
    color: var(--color-primary);
    border: 1px solid var(--color-primary);
    border-radius: var(--radius-btn);
    cursor: pointer;
    transition: background 0.15s, color 0.15s;
}

.btn--outline:hover { background: var(--color-primary); color: white; text-decoration: none; }

/* ============================================================
   Submit row
   ============================================================ */
.submit-row {
    display: flex;
    align-items: center;
    gap: 24px;
    flex-wrap: wrap;
}

.profile-logout {
    margin-top: 16px;
}

.profile-logout__form {
    display: inline;
}

.profile-logout__link {
    background: none;
    border: none;
    padding: 0;
    font: inherit;
    color: var(--color-primary);
    cursor: pointer;
    text-decoration: underline;
}

.profile-logout__link:hover {
    color: var(--color-primary-hover);
}

.commission-info { font-size: 13px; color: var(--color-text); }

.commission-label {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 13px;
    color: var(--color-text);
}

/* ============================================================
   Total summary
   ============================================================ */
.total-summary {
    background: var(--color-bg);
    border-radius: var(--radius-input);
    padding: 16px;
    margin-bottom: 16px;
}

.total-summary__row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 4px 0;
    font-size: 14px;
    color: var(--color-text-secondary);
}

.total-summary__row--total {
    border-top: 1px solid var(--color-border);
    margin-top: 8px;
    padding-top: 12px;
    font-size: 16px;
    font-weight: 600;
    color: var(--color-text);
}

/* ============================================================
   Legal text
   ============================================================ */
.legal-text {
    font-size: 12px;
    line-height: 1.6;
    color: var(--color-text-secondary);
    margin-top: 16px;
}

.legal-text a { color: var(--color-primary); text-decoration: underline; }

/* ============================================================
   Consent row (оферта + ПД, чекбокс над кнопкой "Оплатить")
   ============================================================ */
.consent-row {
    margin-top: 16px;
    margin-bottom: 12px;
    padding: 12px;
    background: #f5f7fa;
    border-radius: 8px;
}

.consent-label--legal {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    cursor: pointer;
}

.consent-label--legal .consent-checkbox {
    margin-top: 3px;
    flex-shrink: 0;
}

.consent-text {
    font-size: 13px;
    line-height: 1.5;
    color: var(--color-text-secondary);
}

.consent-text a {
    color: var(--color-primary);
    text-decoration: underline;
}

/* ============================================================
   Static page body (Wagtail RichText)
   ============================================================ */
.static-page-body {
    font-size: 15px;
    line-height: 1.7;
    color: var(--color-text);
}

.static-page-body h2 { font-size: 20px; font-weight: 600; margin: 28px 0 12px; }
.static-page-body h3 { font-size: 17px; font-weight: 600; margin: 24px 0 8px; }
.static-page-body p { margin: 0 0 12px; }
.static-page-body ul, .static-page-body ol { margin: 0 0 12px; padding-left: 24px; }
.static-page-body li { margin-bottom: 6px; }
.static-page-body a { color: var(--color-primary); text-decoration: underline; }

/* ============================================================
   Page title
   ============================================================ */
.page-title {
    font-size: 28px;
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 24px;
    color: var(--color-text);
}

/* ============================================================
   Enrollment steps (stages_of_crediting.md)
   ============================================================ */
.card.steps {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding: 32px;
    gap: 24px;
    background: #F0F4FF;
    border-radius: 14px;
    border: none;
    box-shadow: none;
    max-width: 680px;
    margin-left: auto;
    margin-right: auto;
}

.steps__title {
    font-family: 'Inter', sans-serif;
    font-weight: 700;
    font-size: 17px;
    line-height: 22px;
    color: #2C2D2E;
    margin: 0;
    align-self: stretch;
}

.steps__list {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    width: 100%;
    min-height: 210px;
}

.step {
    display: flex;
    flex-direction: row;
    align-items: center;
    padding: 0 16px;
    min-height: 70px;
    flex: 1;
    width: 100%;
    box-sizing: border-box;
}

.step__indicator {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 0 6px;
    width: 36px;
    height: 70px;
    border-radius: 8px;
    flex-shrink: 0;
    margin-bottom: -4px;
}

.step:last-child .step__indicator {
    margin-bottom: 0;
}

.step__icon {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    flex-wrap: wrap;
    font-family: 'Inter', sans-serif;
    font-weight: 700;
    font-size: 11px;
    line-height: 13px;
    background: rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 1);
    border: none;
}

.step__icon svg {
    color: inherit;
}

.step__line {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    flex-wrap: wrap;
    width: 2px;
    flex: 1;
    min-height: 0;
    background: #3F8AE0;
    margin: 0;
}

.step__line--top {
    flex: 1;
    min-height: 0;
}

.step__line--bottom {
    flex: 1;
    min-height: 0;
}


.step__content {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding: 10px 0;
    gap: 2px;
    flex: 1;
    min-width: 0;
}

.step__name {
    font-family: 'Inter', sans-serif;
    font-weight: 500;
    font-size: 16px;
    line-height: 20px;
    color: #2C2D2E;
}

.step__desc {
    font-family: Arial, sans-serif;
    font-weight: 400;
    font-size: 13px;
    line-height: 18px;
    color: #87898F;
}

.steps__note {
    margin: 0;
    padding: 12px 16px;
    background-color: #3F8AE0;
    background-clip: unset;
    -webkit-background-clip: unset;
    border: none;
    border-radius: 30px;
    font-size: 13px;
    color: #fff;
    line-height: 1.4;
    align-self: stretch;
}

/* ============================================================
   Partner block (Success page)
   ============================================================ */
.partners {
    padding: 32px;
}

.partners__title {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 24px;
    color: var(--color-text);
}

.partners__title a { color: var(--color-primary); }

.partners__images {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 24px;
}

.partners__image {
    width: calc((100% - 64px) / 5);
    aspect-ratio: 3/4;
    border-radius: 8px;
    object-fit: cover;
}

.partners__cta {
    text-align: center;
}

/* ============================================================
   Success page
   ============================================================ */
.success-hero {
    text-align: center;
    padding: 48px 32px;
}

.success-hero__icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 16px;
}

.success-hero__title {
    font-size: 24px;
    font-weight: 700;
    color: var(--color-text);
    margin-bottom: 8px;
}

.success-hero__subtitle {
    font-size: 15px;
    color: var(--color-text-secondary);
    line-height: 20px;
}

/* ============================================================
   Result card (fail page)
   ============================================================ */
.result-card { text-align: center; padding: 48px 32px; }
.result-card__icon { font-size: 64px; margin-bottom: 16px; }
.result-card__title { font-size: 24px; font-weight: 700; margin-bottom: 12px; }
.result-card__text { font-size: 16px; color: var(--color-text-secondary); margin-bottom: 24px; line-height: 1.6; }
.result-card__link { display: inline-flex; align-items: center; gap: 6px; font-size: 16px; font-weight: 500; color: var(--color-primary); }

/* ============================================================
   FAQ Accordion
   ============================================================ */
.faq {
    margin-bottom: 48px;
    max-width: 680px;
    margin-left: auto;
    margin-right: auto;
}

.faq__title {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 16px;
    color: var(--color-text);
}

.faq__item {
    border: 1px solid var(--color-border);
    border-radius: var(--radius-input);
    margin-bottom: 8px;
    overflow: hidden;
    background: var(--color-card);
}

.faq__question {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 16px 20px;
    font-size: 15px;
    font-weight: 500;
    color: var(--color-text);
    background: none;
    border: none;
    cursor: pointer;
    text-align: left;
    font-family: var(--font-family);
    line-height: 1.4;
    gap: 12px;
}

.faq__question:hover { color: var(--color-primary); }

.faq__arrow {
    width: 24px;
    height: 24px;
    flex-shrink: 0;
    transition: transform 0.3s;
    fill: var(--color-text-tertiary);
}

.faq__item.is-open .faq__arrow { transform: rotate(180deg); }

.faq__answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.faq__answer-inner {
    padding: 0 20px 16px;
    font-size: 15px;
    line-height: 20px;
    color: var(--color-text-secondary);
}

.faq__item.is-open .faq__answer { max-height: 500px; }

/* ============================================================
   Contacts page
   ============================================================ */
.contacts-info { margin-top: 24px; }

.contact-row {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 12px 0;
}

.contact-row__icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--color-primary-light);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.contact-row__icon svg { width: 20px; height: 20px; fill: var(--color-primary); }

.contact-row__text {
    font-size: 16px;
    color: var(--color-text);
    font-weight: 500;
}

.contact-row__note {
    font-size: 13px;
    color: var(--color-text-secondary);
}

.messengers-section,
.social-section {
    margin-top: 32px;
}

.messengers-section__title {
    font-size: 18px;
    font-weight: 600;
    color: var(--color-text);
    margin: 0 0 8px;
}

.contact-row--link {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 12px 0;
    text-decoration: none;
    color: inherit;
}

.contact-row--link:hover {
    text-decoration: none;
    color: inherit;
}

.contact-row--link:hover .contact-row__text {
    text-decoration: underline;
}

.contact-row__icon--img {
    overflow: hidden;
}

.contact-row__icon--img img {
    display: block;
    width: 24px;
    height: 24px;
    object-fit: contain;
}

.contact-row__icon--ok svg {
    display: block;
}

/* ============================================================
   About page
   ============================================================ */
.about { display: flex; gap: 40px; align-items: flex-start; }

.about__content { flex: 1; min-width: 0; }

.about__image {
    flex-shrink: 0;
    width: 360px;
}

.about__image img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: var(--radius-card);
}

.about__section {
    margin-bottom: 32px;
}

.about__section-title {
    font-size: 20px;
    font-weight: 700;
    color: var(--color-text);
    margin-bottom: 12px;
}

.about__section-subtitle {
    font-size: 15px;
    color: var(--color-text-secondary);
    margin-bottom: 16px;
    line-height: 20px;
}

.about__list {
    list-style: none;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.about__list-item {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    font-size: 15px;
    line-height: 23px;
    color: var(--color-text);
}

.about__list-icon {
    width: 24px;
    height: 24px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.about__list-icon svg { width: 15px; height: 15px; fill: var(--color-primary); }

/* ============================================================
   News
   ============================================================ */
.news-list { display: flex; flex-direction: column; gap: 16px; }

.news-card {
    background: var(--color-card);
    border-radius: var(--radius-card);
    border: 1px solid var(--color-border);
    padding: 24px;
    transition: box-shadow 0.15s;
}

.news-card:hover { box-shadow: 0 2px 8px rgba(0, 16, 61, 0.1); }

.news-card__date {
    font-size: 13px;
    color: var(--color-text-tertiary);
    margin-bottom: 8px;
}

.news-card__title {
    font-size: 18px;
    font-weight: 600;
    color: var(--color-text);
    margin-bottom: 8px;
}

.news-card__title a { color: var(--color-text); }
.news-card__title a:hover { color: var(--color-primary); text-decoration: none; }

.news-card__intro {
    font-size: 15px;
    color: var(--color-text-secondary);
    line-height: 1.5;
}

/* ============================================================
   Footer
   ============================================================ */
.footer {
    background: var(--color-card);
    border-top: 1px solid var(--color-border);
    padding: 48px 0 24px;
    margin-top: auto;
}

.footer__inner {
    max-width: 960px;
    margin: 0 auto;
    padding: 0 16px;
}

.footer__links {
    display: flex;
    justify-content: space-between;
    gap: 40px;
    margin-bottom: 48px;
}

.footer__col {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.footer__col a {
    font-size: 14px;
    color: var(--color-primary);
    text-decoration: none;
    display: inline-block;
    padding: 4px 0;
    line-height: 20px;
}

.footer__col a:hover { text-decoration: underline; }

.footer__bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 24px;
    border-top: 1px solid var(--color-border);
}

.footer__copy {
    font-size: 13px;
    color: var(--color-text-tertiary);
}

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

/* ============================================================
   Loading spinner
   ============================================================ */
.spinner {
    display: inline-block;
    width: 18px;
    height: 18px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top-color: white;
    border-radius: 50%;
    animation: spin 0.6s linear infinite;
}

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

/* ============================================================
   Alert messages
   ============================================================ */
.alert { padding: 16px 20px; border-radius: var(--radius-input); margin-bottom: 16px; font-size: 14px; line-height: 1.5; }
.alert--success { background: #E8F5E9; color: #2E7D32; border: 1px solid #A5D6A7; }
.alert--error { background: #FFEBEE; color: #C62828; border: 1px solid #EF9A9A; }
.alert--info { background: #E3F2FD; color: #1565C0; border: 1px solid #90CAF9; }

/* ============================================================
   Auth pages
   ============================================================ */
.auth-container { display: flex; justify-content: center; padding: 24px 0; }
.auth-card { width: 100%; max-width: 420px; }
.auth-form { display: flex; flex-direction: column; gap: 16px; }

.social-buttons { display: flex; flex-direction: column; gap: 10px; }

.btn--social {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    height: 44px;
    padding: 0 20px;
    font-size: 15px;
    font-weight: 500;
    font-family: var(--font-family);
    border: none;
    border-radius: var(--radius-btn);
    cursor: pointer;
    transition: opacity 0.15s;
    text-decoration: none;
    color: white;
}

.btn--social:hover { opacity: 0.9; text-decoration: none; color: white; }
.btn--yandex { background: #FC3F1D; }
.btn--vk { background: #0077FF; }
.btn--max { background: linear-gradient(135deg, #6E3FFF 0%, #C43FFF 100%); color: white; }
.btn--max:hover { background: linear-gradient(135deg, #5C2EE8 0%, #A82EE8 100%); color: white; opacity: 1; }

.auth-divider {
    display: flex;
    align-items: center;
    gap: 16px;
    margin: 20px 0;
    color: var(--color-text-tertiary);
    font-size: 13px;
}

.auth-divider::before,
.auth-divider::after { content: ''; flex: 1; height: 1px; background: var(--color-border); }

.auth-footer-text { text-align: center; margin-top: 20px; font-size: 14px; color: var(--color-text-secondary); }
.auth-footer-text a { font-weight: 500; }

/* ============================================================
   Cabinet (ЛК пользователя)
   ============================================================ */
.cabinet { display: flex; gap: 24px; max-width: 960px; margin: 0 auto; width: 100%; }
.cabinet__sidebar { flex-shrink: 0; width: 220px; }

.cabinet__nav {
    position: sticky;
    top: 72px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.cabinet__nav-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    font-size: 14px;
    font-weight: 500;
    color: var(--color-text-secondary);
    border-radius: var(--radius-input);
    transition: background 0.15s, color 0.15s;
    text-decoration: none;
}

.cabinet__nav-item:hover { background: var(--color-primary-light); color: var(--color-primary); text-decoration: none; }
.cabinet__nav-item.is-active { background: var(--color-primary-light); color: var(--color-primary); font-weight: 600; }
.cabinet__nav-item svg { flex-shrink: 0; }

.cabinet__content { flex: 1; min-width: 0; }

.card__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 24px;
    gap: 16px;
}

/* ============================================================
   Table
   ============================================================ */
.table-wrapper { overflow-x: auto; margin: 0 -32px -32px; padding: 0 32px 32px; }

.table { width: 100%; border-collapse: collapse; font-size: 14px; }
.table th { text-align: left; font-weight: 600; font-size: 12px; color: var(--color-text-secondary); text-transform: uppercase; letter-spacing: 0.03em; padding: 10px 12px; border-bottom: 2px solid var(--color-border); white-space: nowrap; }
.table td { padding: 12px; border-bottom: 1px solid var(--color-border); vertical-align: middle; }
.table tbody tr:hover { background: var(--color-primary-light); }
.table tbody tr:last-child td { border-bottom: none; }

.table__actions { display: flex; gap: 8px; white-space: nowrap; }

.table__action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 6px;
    color: var(--color-text-secondary);
    background: none;
    border: none;
    cursor: pointer;
    transition: background 0.15s, color 0.15s;
}

.table__action:hover { background: var(--color-primary-light); color: var(--color-primary); text-decoration: none; }
.table__action--danger:hover { background: #FFEBEE; color: var(--color-error); }
.inline-form { display: inline; }

/* Status badges */
.status-badge { display: inline-block; padding: 3px 10px; font-size: 12px; font-weight: 500; border-radius: 12px; white-space: nowrap; }
.status-badge--created { background: #E3F2FD; color: #1565C0; }
.status-badge--paid { background: #FFF3E0; color: #E65100; }
.status-badge--verifying, .status-badge--transferring { background: #FFF8E1; color: #F57F17; }
.status-badge--completed { background: #E8F5E9; color: #2E7D32; }
.status-badge--failed, .status-badge--verify_failed, .status-badge--transfer_failed, .status-badge--refund_failed { background: #FFEBEE; color: #C62828; }
.status-badge--refunding { background: #FFF3E0; color: #EF6C00; }
.status-badge--refunded { background: #E8F5E9; color: #388E3C; }
.status-badge--cancelled, .status-badge--expired { background: #F5F5F5; color: #757575; }

.empty-state { text-align: center; padding: 32px 16px; color: var(--color-text-secondary); font-size: 15px; }

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 768px) {
    .header__top-inner {
        max-width: 100%;
        padding: 0 16px;
        height: 60px;
    }

    .header__info,
    .header__actions {
        display: none;
    }

    .burger {
        display: flex;
        margin-left: auto;
        margin-right: 0;
    }

    .header__nav { display: none; }

    .banner {
        height: auto;
        padding: 32px 20px 140px;
        margin-bottom: -80px;
        border-radius: 0 0 24px 24px;
    }
    .banner__content { max-width: 100%; }
    .banner__title { font-size: 20px; line-height: 24px; }
    .banner__badges { width: 100%; flex-direction: column; gap: 4px; }
    .banner__badges-col { flex-direction: row; flex-wrap: wrap; gap: 4px; }
    .banner__badge { width: 100%; height: 48px; padding: 0 12px; }
    .banner__badge-text { font-size: 14px; }
    .banner__images { display: none; }

    .about { flex-direction: column; }
    .about__image { width: 100%; max-width: 300px; margin: 0 auto; }

    .partners__image { width: calc((100% - 16px) / 2); }

    .footer__links { flex-direction: column; gap: 24px; }

    .footer__bottom { flex-direction: column; gap: 12px; text-align: center; }
}

@media (max-width: 640px) {
    .main { padding: 16px 12px 32px; }

    .card { padding: 20px 16px; border-radius: 12px; }
    .card__title { font-size: 20px; margin-bottom: 16px; }

    .form-row { flex-direction: column; gap: 12px; }

    .submit-row { flex-direction: column; align-items: stretch; }
    .submit-row .btn { width: 100%; }

    .footer__inner { padding: 0 16px; }

    .cabinet { flex-direction: column; gap: 0; }
    .cabinet__sidebar { width: 100%; }

    .cabinet__nav {
        flex-direction: row;
        position: static;
        gap: 0;
        margin-bottom: 16px;
        border-bottom: 1px solid var(--color-border);
        overflow-x: visible;
    }

    .cabinet__nav-item {
        flex: 1;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 4px;
        border-radius: 0;
        padding: 10px 4px;
        white-space: normal;
        font-size: 11px;
        text-align: center;
        border-bottom: 2px solid transparent;
    }
    .cabinet__nav-item.is-active { background: none; border-bottom-color: var(--color-primary); }

    .table-wrapper { margin: 0 -20px -20px; padding: 0 20px 20px; }

    .table thead { display: none; }
    .table tbody tr { display: block; padding: 12px 0; border-bottom: 1px solid var(--color-border); }
    .table tbody tr:last-child { border-bottom: none; }
    .table td { display: flex; justify-content: space-between; padding: 4px 0; border-bottom: none; }
    .table td::before { content: attr(data-label); font-weight: 600; font-size: 12px; color: var(--color-text-secondary); margin-right: 12px; }
    .table__actions { justify-content: flex-end; }

    .auth-card { max-width: 100%; }

    .card.steps { padding: 20px 16px; }
    .partners { padding: 20px 16px; }
}

/* ── Приоритетный контакт ──────────────────────────────── */
.badge--priority {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    margin-left: 8px;
    padding: 2px 8px;
    font-size: 12px;
    font-weight: 600;
    color: #92610a;
    background: #fff3cd;
    border: 1px solid #ffc107;
    border-radius: 12px;
    white-space: nowrap;
}

.btn--ghost {
    background: transparent;
    border: 1px solid var(--color-border, #d0d5dd);
    color: var(--color-text-secondary, #667085);
    font-size: 13px;
    height: 32px;
    padding: 0 12px;
    border-radius: var(--radius-btn);
    cursor: pointer;
    transition: background 0.15s, color 0.15s, border-color 0.15s;
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
    font-family: var(--font-family);
}
.btn--ghost:hover {
    background: var(--color-primary-light, #e8f0fe);
    color: var(--color-primary, #3f8ae0);
    border-color: var(--color-primary, #3f8ae0);
}
.btn--ghost:disabled { opacity: 0.6; cursor: not-allowed; }

.contacts-hint {
    font-size: 14px;
    color: var(--color-text-secondary, #667085);
    margin: 0 0 16px 0;
    padding: 10px 14px;
    background: var(--color-bg-secondary, #f9fafb);
    border-left: 3px solid var(--color-primary, #3f8ae0);
    border-radius: 4px;
}

/* ─── Orders filter ──────────────────────────────────────────── */

.orders-filter {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 24px;
}

.orders-filter__inputs {
    display: flex;
    align-items: center;
    gap: 8px;
    flex: 1;
}

.orders-filter__field {
    display: flex;
    align-items: center;
    gap: 8px;
    flex: 1;
    background: var(--color-bg, #fff);
    border: 1px solid var(--color-border, #e2e8f0);
    border-radius: 10px;
    padding: 10px 14px;
    color: var(--color-text-secondary, #667085);
    min-width: 0;
    cursor: pointer;
}

.orders-filter__field:focus-within {
    border-color: var(--color-primary, #3f8ae0);
}

.orders-filter__field svg {
    flex-shrink: 0;
    color: var(--color-text-secondary, #667085);
    pointer-events: none;
}

.orders-filter__input {
    border: none;
    outline: none;
    background: transparent;
    font-size: 14px;
    color: var(--color-text, #1a1a2e);
    font-family: var(--font-family);
    width: 100%;
    min-width: 0;
    cursor: pointer;
}

.orders-filter__input::-webkit-calendar-picker-indicator {
    display: none;
}

.orders-filter__sep {
    color: var(--color-text-secondary, #667085);
    font-size: 16px;
    flex-shrink: 0;
}

.orders-filter__clear {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border: none;
    border-radius: 8px;
    background: transparent;
    color: var(--color-text-secondary, #667085);
    cursor: pointer;
    transition: background 0.15s, color 0.15s;
    flex-shrink: 0;
}

.orders-filter__clear:hover {
    background: #FFEBEE;
    color: var(--color-error, #c62828);
}

/* ─── Order cards ────────────────────────────────────────────── */

.order-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.order-card {
    border: 1px solid var(--color-border, #e2e8f0);
    border-radius: 12px;
    overflow: hidden;
    background: var(--color-bg, #fff);
}

.order-card__header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    padding: 16px 16px 14px;
    gap: 12px;
}

.order-card__info {
    min-width: 0;
}

.order-card__name {
    font-size: 15px;
    font-weight: 600;
    color: var(--color-text, #1a1a2e);
    line-height: 1.3;
    margin-bottom: 3px;
}

.order-card__institution {
    font-size: 13px;
    color: var(--color-text-secondary, #667085);
    line-height: 1.4;
}

.order-card__repeat {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border: 1.5px solid var(--color-border, #e2e8f0);
    border-radius: 50%;
    background: transparent;
    color: var(--color-primary, #3f8ae0);
    cursor: pointer;
    flex-shrink: 0;
    transition: background 0.15s, border-color 0.15s, color 0.15s;
}

.order-card__repeat:hover {
    background: var(--color-primary-light, #e8f0fe);
    border-color: var(--color-primary, #3f8ae0);
}

.order-card__divider {
    height: 1px;
    background: var(--color-border, #e2e8f0);
    margin: 0 16px;
}

.order-card__footer {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
}

.order-card__date {
    font-size: 14px;
    color: var(--color-text-secondary, #667085);
    flex-shrink: 0;
}

.order-card__amount {
    font-size: 15px;
    font-weight: 600;
    color: var(--color-text, #1a1a2e);
    flex: 1;
}

@media (max-width: 480px) {
    .orders-filter__inputs {
        flex-direction: column;
        align-items: stretch;
    }
    .orders-filter__sep {
        display: none;
    }
    .order-card__footer {
        flex-wrap: wrap;
        gap: 8px;
    }
}

/* --- Cookie Consent Banner --- */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 9999;
    background: #fff;
    border-top: 1px solid var(--color-border, #e2e8f0);
    box-shadow: 0 -4px 24px rgba(0, 0, 0, 0.08);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 16px 24px;
}

.cookie-banner__text {
    font-size: 14px;
    color: var(--color-text-secondary, #87898F);
    line-height: 1.5;
}

.cookie-banner__text a {
    color: var(--color-primary, #4C8CC5);
    text-decoration: underline;
}

.cookie-banner__text a:hover {
    color: var(--color-primary-hover, #3d7ab3);
}

.btn--cookie {
    background: var(--color-primary, #4C8CC5);
    color: #fff;
    border: none;
    border-radius: 8px;
    padding: 10px 24px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
    transition: background 0.15s;
    flex-shrink: 0;
}

.btn--cookie:hover {
    background: var(--color-primary-hover, #3d7ab3);
}

.cookie-banner__actions {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

.cookie-banner__close {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border: 1px solid var(--color-border, #e2e8f0);
    border-radius: 8px;
    background: transparent;
    color: var(--color-text-secondary, #87898F);
    cursor: pointer;
    transition: background 0.15s, color 0.15s;
    flex-shrink: 0;
}

.cookie-banner__close:hover {
    background: var(--color-bg, #F5F5F5);
    color: var(--color-text, #2C2D2E);
}

@media (max-width: 600px) {
    .cookie-banner {
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
        padding: 16px;
    }

    .cookie-banner__actions {
        width: 100%;
    }

    .btn--cookie {
        flex: 1;
        text-align: center;
    }
}
