/* Страницы оплаты: /pay/, /pay/step1/, /pay/gotopay/, /pay/success/, /pay/fail/. */

.pay-section {
    background: #f0f0ed;
    padding: 40px 20px 90px;
}

.pay-card {
    max-width: 620px;
    margin: 0 auto;
    padding: 34px 32px;
    background: #fff;
    border-radius: 20px;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.07);
}

.pay-kicker {
    margin-bottom: 8px;
    font-family: 'Rubik', sans-serif;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #c8962e;
}

.pay-card h1 {
    margin: 0 0 14px;
    font-family: 'Rubik', sans-serif;
    font-size: 32px;
    font-weight: 600;
    line-height: 110%;
    letter-spacing: -0.03em;
    color: #1e293b;
}

.pay-h2 {
    margin: 22px 0 12px;
    font-family: 'Rubik', sans-serif;
    font-size: 20px;
    font-weight: 600;
    color: #1e293b;
}

.pay-card p {
    margin: 0 0 12px;
    font-size: 16px;
    line-height: 1.55;
    color: #475569;
}

.pay-lead {
    font-size: 17px !important;
    color: #334155 !important;
}

.pay-note {
    margin-top: 16px !important;
    font-size: 13px !important;
    line-height: 1.5 !important;
    color: #94a3b8 !important;
}

.pay-note a {
    color: #a87b00;
}

/* Карточка товара */

.pay-product {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin: 18px 0;
    padding: 14px 16px;
    background: #fafaf9;
    border: 1px solid #f1f1f0;
    border-radius: 12px;
}

.pay-product-name {
    font-family: 'Rubik', sans-serif;
    font-size: 17px;
    font-weight: 700;
    color: #1e293b;
}

.pay-product-meta {
    margin-top: 2px;
    font-size: 13px;
    color: #94a3b8;
}

.pay-product-price {
    flex: none;
    font-family: 'Rubik', sans-serif;
    font-size: 22px;
    font-weight: 700;
    color: #1e293b;
    white-space: nowrap;
}

.pay-report {
    margin: 0 0 16px;
    padding: 12px 14px;
    background: #fafaf9;
    border: 1px solid #f1f1f0;
    border-radius: 10px;
    font-size: 15px;
    color: #475569;
}

/* Форма */

.pay-form {
    margin-top: 20px;
}

.pay-field {
    display: block;
    margin-bottom: 14px;
    font-size: 13px;
    font-weight: 700;
    color: #334155;
}

.pay-field input {
    display: block;
    width: 100%;
    margin-top: 6px;
    padding: 11px 13px;
    border: 1px solid #dfe3e8;
    border-radius: 9px;
    background: #fff;
    font-family: 'Noto Sans', sans-serif;
    font-size: 15px;
    font-weight: 400;
    color: #1e293b;
    outline: none;
}

.pay-field input:focus {
    border-color: #ffc919;
    box-shadow: 0 0 0 3px rgba(255, 201, 25, 0.18);
}

.pay-optional {
    font-weight: 400;
    color: #94a3b8;
}

.pay-gdpr {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    margin: 4px 0 18px;
    font-size: 13px;
    line-height: 1.45;
    color: #64748b;
}

.pay-gdpr input {
    margin-top: 3px;
    flex: none;
}

.pay-gdpr a {
    color: #a87b00;
}

.pay-hp {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

/* Кнопки */

.pay-methods {
    display: grid;
    gap: 10px;
    margin-top: 16px;
}

.pay-btn {
    display: block;
    width: 100%;
    box-sizing: border-box;
    padding: 14px 20px;
    border: 0;
    border-radius: 30px;
    font-family: 'Rubik', sans-serif;
    font-size: 16px;
    font-weight: 700;
    text-align: center;
    text-decoration: none;
    cursor: pointer;
    transition: transform 0.2s, background 0.2s;
}

.pay-btn:hover {
    transform: translateY(-1px);
}

.pay-btn-go,
.pay-btn-rf {
    background: #ffc919;
    color: #1e293b;
}

.pay-btn-go:hover,
.pay-btn-rf:hover {
    background: #ffd84d;
}

.pay-btn-ino,
.pay-btn-prodamus {
    background: #fff;
    border: 1px solid #dfe3e8;
    color: #1e293b;
}

.pay-btn-ino:hover,
.pay-btn-prodamus:hover {
    background: #fafaf9;
}

#robokassaForm {
    margin: 0;
}

/* Список тарифов */

.pay-tariffs {
    display: grid;
    gap: 10px;
    margin: 18px 0 6px;
}

.pay-tariff {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 14px 18px;
    border: 1px solid #dfe3e8;
    border-radius: 12px;
    background: #fff;
    text-decoration: none;
    transition: border-color 0.2s, background 0.2s;
}

.pay-tariff:hover {
    border-color: #ffc919;
    background: #fffdf5;
}

.pay-tariff-name {
    font-family: 'Rubik', sans-serif;
    font-size: 16px;
    font-weight: 700;
    color: #1e293b;
}

.pay-tariff-price {
    font-family: 'Rubik', sans-serif;
    font-size: 16px;
    font-weight: 700;
    color: #a87b00;
}

/* Сообщения */

.pay-error {
    margin: 0 0 16px;
    padding: 14px 16px;
    background: #fff1f1;
    border: 1px solid #f5c2c2;
    border-radius: 10px;
    color: #9b1c1c;
    font-size: 14px;
    line-height: 1.5;
}

.pay-back {
    display: inline-block;
    margin-top: 20px;
    color: #a87b00;
    font-weight: 700;
    text-decoration: none;
}

.pay-back:hover {
    text-decoration: underline;
}

/* Форма данных о рождении (/birthday/, Этап 8) */

.pay-label {
    margin: 2px 0 6px;
    font-size: 13px;
    font-weight: 700;
    color: #334155;
}

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

.pay-choice {
    display: flex;
    gap: 8px;
    margin-bottom: 14px;
}

.pay-choice label {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 12px;
    border: 1px solid #dfe3e8;
    border-radius: 9px;
    background: #fff;
    font-size: 14px;
    font-weight: 600;
    color: #475569;
    cursor: pointer;
    transition: border-color 0.2s, background 0.2s;
}

.pay-choice label:hover {
    border-color: #ffd84d;
}

.pay-choice label:has(input:checked) {
    border-color: #ffc919;
    background: #fffdf3;
    color: #1e293b;
}

.pay-choice input {
    accent-color: #c8962e;
}

.pay-city {
    position: relative;
}

.pay-city-wrap {
    display: block;
    position: relative;
}

.pay-city-list {
    position: absolute;
    z-index: 30;
    left: 0;
    right: 0;
    top: 100%;
    margin-top: 4px;
    max-height: 230px;
    overflow-y: auto;
    background: #fff;
    border: 1px solid #dfe3e8;
    border-radius: 9px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.09);
}

.pay-city-list[hidden] {
    display: none;
}

.pay-city-item {
    display: block;
    width: 100%;
    padding: 9px 13px;
    border: 0;
    border-bottom: 1px solid #f4f4f2;
    background: #fff;
    font: inherit;
    font-size: 14px;
    font-weight: 400;
    text-align: left;
    color: #1e293b;
    cursor: pointer;
}

.pay-city-item:last-child {
    border-bottom: 0;
}

.pay-city-item:hover,
.pay-city-item:focus {
    background: #fff8e1;
}

.pay-city-country {
    color: #94a3b8;
    font-size: 12px;
}

.pay-hint {
    margin: -6px 0 14px;
    font-size: 12px;
    line-height: 1.45;
    color: #94a3b8;
}

.pay-hint-ok {
    color: #15803d;
    font-weight: 600;
}

.pay-field input[type="date"],
.pay-field input[type="time"] {
    min-height: 44px;
}

/* Дата рождения: три списка «день / месяц / год» (/pay/step1/) */

.pay-date {
    display: grid;
    grid-template-columns: 78px minmax(0, 1fr) 96px;
    gap: 8px;
    margin-top: 6px;
}

.pay-date-cell {
    position: relative;
    display: block;
    min-width: 0;
}

.pay-date-label {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

.pay-date select {
    display: block;
    width: 100%;
    min-height: 46px;
    padding: 11px 30px 11px 12px;
    border: 1px solid #dfe3e8;
    border-radius: 9px;
    background-color: #fff;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath d='M1 1l4 4 4-4' fill='none' stroke='%2394a3b8' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 11px center;
    font-family: 'Noto Sans', sans-serif;
    font-size: 16px;
    font-weight: 400;
    color: #1e293b;
    outline: none;
    -webkit-appearance: none;
    appearance: none;
}

.pay-date select:required:invalid {
    color: #94a3b8;
}

.pay-date select:focus {
    border-color: #ffc919;
    box-shadow: 0 0 0 3px rgba(255, 201, 25, 0.18);
}

@media (max-width: 520px) {
    .pay-section {
        padding: 24px 12px 60px;
    }
    .pay-card {
        padding: 24px 20px;
        border-radius: 16px;
    }
    .pay-card h1 {
        font-size: 26px;
    }
    .pay-product {
        flex-direction: column;
        align-items: flex-start;
    }
    .pay-row {
        grid-template-columns: 1fr;
        gap: 0;
    }
    .pay-date {
        grid-template-columns: 70px minmax(0, 1fr) 86px;
        gap: 6px;
    }
    .pay-date select {
        padding: 11px 26px 11px 10px;
        background-position: right 9px center;
    }
}
