/* ═══════════════════════════════════════════════════════════════
   VARIABLES
   ═══════════════════════════════════════════════════════════════ */
:root {
    --bg: #f4f4f5;
    --bg-card: #ffffff;
    --bg-input: #f9fafb;
    --accent: #3b6ea5;
    --accent-light: #e8f0f8;
    --text: #1f2937;
    --text-muted: #6b7280;
    --border: #e5e7eb;
    --error: #dc2626;
    --radius: 10px;
}

/* ═══════════════════════════════════════════════════════════════
   RESET
   ═══════════════════════════════════════════════════════════════ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

html.i18n-pending body { opacity: 0; }
html.i18n-ready body { opacity: 1; transition: opacity .15s ease; }

.container {
    max-width: 640px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ═══════════════════════════════════════════════════════════════
   HERO
   ═══════════════════════════════════════════════════════════════ */
.hero {
    position: relative;
    min-height: 420px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.hero__bg {
    position: absolute;
    inset: 0;
    background-image: url('../img/hero.webp');
    background-size: cover;
    background-position: center;
    z-index: 0;
}

.hero__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(20,30,40,0.35), rgba(20,30,40,0.65));
    z-index: 1;
}

.hero__content {
    position: relative;
    z-index: 2;
    text-align: center;
    padding: 50px 20px;
    max-width: 600px;
}

.hero__title {
    font-size: clamp(1.4rem, 5vw, 2rem);
    font-weight: 800;
    text-transform: uppercase;
    margin-bottom: 20px;
    line-height: 1.3;
    color: #fff;
}

.hero__payout {
    margin: 16px 0;
}

.hero__payout-value {
    display: block;
    font-size: clamp(1.8rem, 7vw, 2.8rem);
    font-weight: 800;
    color: #fff;
    line-height: 1.1;
}

.hero__payout-label {
    display: block;
    font-size: clamp(.8rem, 2.5vw, 1rem);
    font-weight: 600;
    margin-top: 6px;
    color: rgba(255,255,255,0.85);
}

.hero__subtitle {
    font-size: clamp(.95rem, 3vw, 1.1rem);
    margin-top: 14px;
    font-weight: 600;
    color: rgba(255,255,255,0.9);
}

.hero__desc {
    margin-top: 10px;
    color: rgba(255,255,255,0.7);
    font-size: .88rem;
}

/* ═══════════════════════════════════════════════════════════════
   BENEFITS
   ═══════════════════════════════════════════════════════════════ */
.benefits {
    padding: 36px 0;
}

.benefits__grid {
    display: grid;
    gap: 14px;
}

.benefit-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 22px 18px;
}

.benefit-card__icon {
    width: 28px;
    height: 28px;
    margin-bottom: 10px;
    opacity: .6;
}

.benefit-card__title {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 6px;
}

.benefit-card__text {
    color: var(--text-muted);
    font-size: .86rem;
}

.benefit-card__sub {
    color: var(--text);
    font-size: .86rem;
    margin-top: 5px;
}

.benefit-card strong { color: var(--text); }

/* ═══════════════════════════════════════════════════════════════
   BONUS BANNER
   ═══════════════════════════════════════════════════════════════ */
.bonus {
    padding: 16px 0;
}

.bonus__text {
    background: var(--accent-light);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 18px;
    text-align: center;
    font-size: .88rem;
    line-height: 1.7;
    color: var(--text-muted);
}

.bonus__text strong {
    color: var(--accent);
}

/* ═══════════════════════════════════════════════════════════════
   FORM
   ═══════════════════════════════════════════════════════════════ */
.form-section {
    padding: 24px 0 48px;
}

.form-wrapper {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 26px 20px;
}

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

/* Fields */
.field { display: flex; flex-direction: column; }

.field__label {
    font-size: .86rem;
    font-weight: 600;
    margin-bottom: 5px;
    color: var(--text);
}

.field__hint {
    font-size: .76rem;
    color: var(--text-muted);
    margin-bottom: 5px;
}

.req { color: var(--error); }
.opt { color: var(--text-muted); font-weight: 400; }

.field__input {
    background: var(--bg-input);
    border: 1px solid var(--border);
    border-radius: 8px;
    color: var(--text);
    padding: 11px 12px;
    font-size: .94rem;
    font-family: inherit;
    transition: border-color .2s;
    width: 100%;
}

.field__input:focus {
    outline: none;
    border-color: var(--accent);
}

.field__input::placeholder { color: #9ca3af; }

.field__select {
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%236b7280' d='M6 8L0 0h12z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    padding-right: 32px;
}

.field__textarea {
    resize: vertical;
    min-height: 60px;
}

/* Phone group */
.phone-group {
    display: flex;
    align-items: stretch;
}

.phone-group__code {
    display: flex;
    align-items: center;
    background: var(--accent-light);
    border: 1px solid var(--border);
    border-right: none;
    border-radius: 8px 0 0 8px;
    padding: 0 12px;
    font-weight: 700;
    color: var(--accent);
    font-size: .94rem;
    white-space: nowrap;
}

.phone-group__input {
    border-radius: 0 8px 8px 0;
}

/* Toggle group */
.toggle-group {
    display: flex;
    gap: 10px;
}

.toggle-btn {
    flex: 1;
    background: var(--bg-input);
    border: 1px solid var(--border);
    border-radius: 8px;
    color: var(--text-muted);
    padding: 11px;
    font-size: .94rem;
    font-family: inherit;
    font-weight: 600;
    cursor: pointer;
    transition: all .15s;
}

.toggle-btn:hover { border-color: #c0c6cf; }

.toggle-btn.active {
    background: var(--accent);
    border-color: var(--accent);
    color: #fff;
}

/* Checkboxes */
.checkboxes {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 4px;
}

.checkbox {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    cursor: pointer;
    font-size: .84rem;
    color: var(--text-muted);
}

.checkbox input { display: none; }

.checkbox__mark {
    flex-shrink: 0;
    width: 18px;
    height: 18px;
    border: 1px solid var(--border);
    border-radius: 4px;
    background: var(--bg-input);
    position: relative;
    margin-top: 1px;
    transition: all .15s;
}

.checkbox input:checked + .checkbox__mark {
    background: var(--accent);
    border-color: var(--accent);
}

.checkbox input:checked + .checkbox__mark::after {
    content: '';
    position: absolute;
    top: 2px;
    left: 5px;
    width: 5px;
    height: 9px;
    border: solid #fff;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.checkbox__text strong { color: var(--text); }

/* Errors */
.field__error {
    color: var(--error);
    font-size: .76rem;
    margin-top: 4px;
    display: block;
}

.field__input.error { border-color: var(--error); }

/* Submit */
.btn-submit {
    background: var(--accent);
    border: none;
    border-radius: 8px;
    color: #fff;
    padding: 14px;
    font-size: 1rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    transition: opacity .2s;
    margin-top: 4px;
}

.btn-submit:hover { opacity: .88; }
.btn-submit:disabled { opacity: .5; cursor: not-allowed; }

/* Form message */
.form-message {
    text-align: center;
    padding: 14px;
    border-radius: 8px;
    font-weight: 600;
    font-size: .88rem;
}

.form-message.success {
    background: #ecfdf5;
    border: 1px solid #a7f3d0;
    color: #065f46;
}

.form-message.error {
    background: #fef2f2;
    border: 1px solid #fecaca;
    color: #991b1b;
}

/* ═══════════════════════════════════════════════════════════════
   WHATSAPP CTA
   ═══════════════════════════════════════════════════════════════ */
.whatsapp-cta {
    text-align: center;
    padding: 28px 0 36px;
}

.whatsapp-cta__text {
    color: var(--text-muted);
    margin: 0 auto 16px;
    font-size: .88rem;
    max-width: 560px;
}

.whatsapp-cta__link {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    min-height: 52px;
    padding: 12px 18px;
    background: #25d366;
    border: 1px solid #25d366;
    border-radius: 8px;
    color: #fff;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    transition: background-color .2s, border-color .2s, transform .2s;
}

.whatsapp-cta__link:hover {
    background: #1fbd5a;
    border-color: #1fbd5a;
}

.whatsapp-cta__link:active { transform: translateY(1px); }

.whatsapp-cta__link:focus-visible {
    outline: 3px solid rgba(37, 211, 102, .35);
    outline-offset: 3px;
}

.whatsapp-cta__icon {
    width: 22px;
    height: 22px;
    fill: currentColor;
    flex: 0 0 auto;
}

/* ═══════════════════════════════════════════════════════════════
   TELEGRAM CTA
   ═══════════════════════════════════════════════════════════════ */
.telegram {
    text-align: center;
    padding: 28px 0 36px;
    border-top: 1px solid var(--border);
}

.telegram__text {
    color: var(--text-muted);
    margin: 0 auto 16px;
    font-size: .88rem;
    max-width: 560px;
}

.telegram__link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 52px;
    padding: 12px 32px;
    background: #229ed9;
    border: 1px solid #229ed9;
    border-radius: 8px;
    color: #fff;
    font-size: 1rem;
    font-weight: 600;
    letter-spacing: .3px;
    text-decoration: none;
    transition: background-color .2s, border-color .2s, transform .2s;
}

.telegram__link:hover {
    background: #1b84b8;
    border-color: #1b84b8;
}

.telegram__link:active { transform: translateY(1px); }

.telegram__link:focus-visible {
    outline: 3px solid rgba(34, 158, 217, .35);
    outline-offset: 3px;
}

/* ═══════════════════════════════════════════════════════════════
   FOOTER
   ═══════════════════════════════════════════════════════════════ */
.footer {
    text-align: center;
    padding: 18px;
    color: #9ca3af;
    font-size: .74rem;
    border-top: 1px solid var(--border);
}

/* ═══════════════════════════════════════════════════════════════
   RESPONSIVE
   ═══════════════════════════════════════════════════════════════ */
@media (min-width: 640px) {
    .benefits__grid {
        /* Без фиксированного числа колонок: 3 карточки у UZ2 и 2 у RU
           (третья скрыта пустым текстом) заполняют ряд без пустой ячейки. */
        grid-template-columns: repeat(auto-fit, minmax(0, 1fr));
    }
    .form-wrapper { padding: 30px 26px; }
}
