/* Гейт, вариант A (контроль) эксперимента gate_ds_v1 — прошлый гейт как он был
   до переноса на систему (23.09.2026): свои старые цвета и шрифт Inter.
   Файл живёт только пока идёт A/B и не входит в проверку токенов (build.py).
   После решения — удалить вместе с классом .gate--classic в hub.js. */

.gate--classic {
    --ink: #0f121d;
    --text: #2f3442;
    --muted: #64748b;
    --bg: #eef2f4;
    --card: #ffffff;
    --border: rgba(15, 21, 65, 0.06);
    --red: #f04a36;
    --red-active: #c53020;
    --green: #10b981;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    line-height: 1.45;
}

.gate--classic h2 {
    font-family: inherit;
    text-wrap: wrap;
}


.gate.gate--classic {
    padding: 24px 0 40px;
}

.gate--classic h2 {
    margin-bottom: 12px;
    color: var(--ink);
    font-size: 28px;
    font-weight: 900;
    line-height: 1.1;
    letter-spacing: -0.01em;
}

.gate--classic .gate-subtitle {
    margin-bottom: 24px;
    font-size: 15px;
    font-weight: 500;
    line-height: 1.45;
    color: var(--text);
}

/* Gate hero + brand bar */

.gate--classic .gate-hero {
    margin-bottom: 20px;
}

.gate--classic .gate-hero-img {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 18px 18px 0 0;
}

.gate--classic .gate-brand-bar {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    overflow: hidden;
    margin-top: -18px;
    border-radius: 13px;
    background: linear-gradient(135deg, #15161b 0%, #20222a 100%);
}

.gate--classic .gate-brand-bar::before,
.gate--classic .gate-brand-bar::after {
    content: "";
    position: absolute;
    pointer-events: none;
}

.gate--classic .gate-brand-bar::before {
    inset: 0;
    z-index: 0;
    opacity: 0.14;
    background-image: radial-gradient(rgba(255, 255, 255, 0.62) 1px, transparent 1.4px);
    background-size: 7px 7px;
}

.gate--classic .gate-brand-bar::after {
    right: -34px;
    bottom: -30px;
    z-index: 0;
    width: 116px;
    height: 74px;
    border-radius: 999px;
    background: rgba(255, 59, 34, 0.72);
    transform: rotate(-10deg);
}

.gate--classic .gate-brand-bar div {
    position: relative;
    z-index: 1;
    padding: 18px 12px;
    text-align: left;
}

.gate--classic .gate-brand-bar div + div {
    border-left: 1px solid rgba(255, 255, 255, 0.08);
}

.gate--classic .gate-brand-bar strong {
    display: block;
    color: #fff;
    font-size: 16px;
    font-weight: 900;
    line-height: 1.1;
    white-space: nowrap;
}

.gate--classic .gate-brand-bar span {
    display: block;
    margin-top: 3px;
    color: rgba(255, 255, 255, 0.65);
    font-size: 9px;
    font-weight: 700;
    line-height: 1.2;
}

/* Gate bullets */

.gate--classic .gate-bullets-title {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 26px 0 12px;
    color: var(--ink);
    font-size: 21px;
    font-weight: 900;
    line-height: 1.12;
}

.gate--classic .gate-bullets {
    counter-reset: gate-bullets;
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 28px;
}

.gate--classic .gate-bullets li {
    counter-increment: gate-bullets;
    position: relative;
    min-height: 82px;
    padding: 16px 16px 16px 58px;
    border: 1px solid var(--border);
    border-radius: 16px;
    background: var(--card);
    color: var(--text);
    font-size: 14px;
    font-weight: 650;
    line-height: 1.38;
    box-shadow: 0 12px 30px rgba(16, 17, 22, 0.04);
}

.gate--classic .gate-bullets li::before {
    content: counter(gate-bullets);
    position: absolute;
    top: 17px;
    left: 16px;
    display: grid;
    place-items: center;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--red);
    color: #fff;
    font-size: 13px;
    font-weight: 900;
    line-height: 1;
}

.gate--classic .gate-bullets strong {
    display: block;
    margin-bottom: 5px;
    color: var(--ink);
    font-size: 16px;
    font-weight: 900;
    line-height: 1.18;
}

.gate--classic .gate-bullet-copy {
    display: block;
}

/* Gate form */

.gate--classic .gate-form {
    padding: 20px;
    border: 1px solid var(--border);
    border-radius: 20px;
    background: var(--card);
}

.gate--classic .gate-form-head {
    margin-bottom: 14px;
}

.gate--classic .gate-form-kicker,
.gate--classic .gate-form-head .gate-form-kicker {
    display: inline-block;
    margin-top: 0;
    margin-bottom: 8px;
    padding: 5px 10px;
    border-radius: 999px;
    background: rgba(255, 59, 34, 0.08);
    color: var(--red);
    font-size: 11px;
    font-weight: 850;
    line-height: 1.2;
    letter-spacing: 0.02em;
}

.gate--classic .gate-status {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    margin-bottom: 8px;
    padding: 5px 10px;
    border-radius: 999px;
    background: rgba(255, 59, 34, 0.08);
    font-size: 11px;
    font-weight: 800;
    color: var(--muted);
}

.gate--classic .gate-status[hidden] {
    display: none;
}

.gate--classic .gate-status-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--red);
}

.gate--classic .gate-form-head strong {
    display: block;
    font-size: 22px;
    font-weight: 900;
    color: var(--ink);
    line-height: 1.15;
}

.gate--classic .gate-form-head span {
    display: block;
    margin-top: 6px;
    font-size: 14px;
    font-weight: 600;
    color: var(--muted);
    line-height: 1.35;
}

.gate--classic .gate-phone {
    display: block;
    width: 100%;
    height: 56px;
    margin-bottom: 10px;
    padding: 0 15px;
    border: 1px solid var(--border);
    border-radius: 14px;
    background: var(--bg);
    font: inherit;
    font-size: 18px;
    font-weight: 800;
    color: var(--ink);
}

.gate--classic .gate-phone:focus {
    border-color: var(--red);
    background: #fff;
}

.gate--classic .gate-phone.is-error {
    border-color: var(--red);
}

.gate--classic .gate-submit {
    position: relative;
    overflow: hidden;
    display: block;
    width: 100%;
    height: 56px;
    border: 0;
    border-radius: 14px;
    background: var(--red);
    color: #fff;
    font: inherit;
    font-size: 16px;
    font-weight: 800;
    cursor: pointer;
}

.gate--classic .gate-submit::after {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    left: -45%;
    width: 38%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.32), transparent);
    opacity: 0;
    transform: skewX(-18deg);
}

.gate--classic .gate-submit:active:not(:disabled) {
    background: var(--red-active);
}

.gate--classic .gate-submit:disabled {
    opacity: 0.65;
    cursor: default;
}

.gate--classic .gate-consent {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    margin-top: 13px;
    font-size: 11px;
    font-weight: 600;
    color: var(--muted);
    line-height: 1.35;
}

.gate--classic .gate-consent input {
    flex-shrink: 0;
    margin-top: 2px;
}

.gate--classic .gate-consent a {
    color: var(--text);
}

.gate--classic .gate-note {
    margin-top: 12px;
    padding: 10px 12px;
    border-radius: 10px;
    background: var(--bg);
    font-size: 13px;
    font-weight: 700;
    color: var(--text);
    line-height: 1.3;
}

/* Gate state colors */

.gate--classic .gate-form[data-state="sent"] .gate-status-dot {
    background: var(--green);
}

.gate--classic .gate-form[data-state="sent"] .gate-submit {
    opacity: 1;
}

.gate--classic .gate-form[data-state="sent"] .gate-submit::after {
    opacity: 1;
    animation: gate-classic-loading 900ms ease-in-out infinite;
}

.gate--classic .gate-form[data-state="error"] .gate-status {
    background: rgba(255, 59, 34, 0.08);
    color: var(--red-active);
}

.gate--classic .gate-form[data-state="sent"] .gate-status {
    background: rgba(52, 199, 89, 0.1);
    color: #238a44;
}

@keyframes gate-classic-loading {
    to {
        left: 112%;
    }
}

@media (prefers-reduced-motion: reduce) {
    .gate--classic .gate-form[data-state="sent"] .gate-submit::after {
        animation: none;
    }
}

