:root {
    --gate-red: #E41F07;
    --gate-red-hover: #C41B06;
    --gate-ink: #111111;
    --gate-muted: #6b6b6b;
    --gate-line: #e6e6e6;
}

html, body {
    margin: 0;
    min-height: 100%;
    font-family: "Golos Text", system-ui, -apple-system, "Segoe UI", sans-serif;
    color: var(--gate-ink);
    background: #fff;
}

.gate {
    min-height: 100vh;
    display: grid;
    grid-template-columns: minmax(320px, 1fr) minmax(280px, 1fr);
}

.gate__form {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 48px 56px 32px;
    max-width: 560px;
    width: 100%;
    margin: 0 auto;
    box-sizing: border-box;
}

.gate__brand {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 22px;
    font-weight: 800;
    letter-spacing: -0.03em;
    margin-bottom: 36px;
    color: var(--gate-ink);
    text-decoration: none;
}

.gate__mark {
    width: 28px;
    height: 28px;
    border-radius: 8px;
    background:
        radial-gradient(circle at 30% 30%, #FF9D0A 0 28%, transparent 29%),
        radial-gradient(circle at 72% 38%, #7B2FBE 0 26%, transparent 27%),
        radial-gradient(circle at 48% 78%, #E41F07 0 30%, transparent 31%),
        #111;
}

.gate__title {
    margin: 0 0 28px;
    font-size: 32px;
    line-height: 1.15;
    font-weight: 500;
    letter-spacing: -0.02em;
}

.gate__lead {
    margin: 0 0 28px;
    color: var(--gate-muted);
    font-size: 15px;
    line-height: 1.5;
}

.gate label {
    display: block;
    font-size: 13px;
    font-weight: 700;
    margin-bottom: 8px;
}

.gate__field {
    position: relative;
    margin-bottom: 18px;
}

.gate__field input {
    width: 100%;
    box-sizing: border-box;
    height: 48px;
    padding: 0 44px 0 14px;
    border: 1px solid var(--gate-line);
    border-radius: 10px;
    font-size: 15px;
    font-family: inherit;
    background: #fff;
}

.gate__field input:focus {
    outline: none;
    border-color: #111;
}

.gate__field textarea {
    width: 100%;
    box-sizing: border-box;
    min-height: 88px;
    padding: 12px 14px;
    border: 1px solid var(--gate-line);
    border-radius: 10px;
    font-size: 15px;
    font-family: inherit;
    resize: vertical;
}

.gate__field textarea:focus {
    outline: none;
    border-color: #111;
}

.gate__choices {
    border: 0;
    margin: 0 0 18px;
    padding: 0;
}

.gate__choices legend {
    font-size: 13px;
    font-weight: 700;
    margin-bottom: 8px;
}

.gate__choice {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
    font-size: 15px;
    font-weight: 400;
    cursor: pointer;
}

.gate__choice input {
    width: auto;
    height: auto;
}

.gate__icon {
    position: absolute;
    right: 14px;
    top: 38px;
    color: #9a9a9a;
    pointer-events: none;
}

.gate__toggle-pass {
    pointer-events: auto;
    background: none;
    border: 0;
    padding: 0;
    width: 24px;
    height: 24px;
    cursor: pointer;
    line-height: 1;
    color: #9a9a9a;
}

.gate__toggle-pass:hover,
.gate__toggle-pass[aria-pressed="true"] {
    color: #111;
}

.gate__submit {
    width: 100%;
    height: 48px;
    border: 0;
    border-radius: 10px;
    background: var(--gate-red);
    color: #fff;
    font-size: 15px;
    font-weight: 700;
    font-family: inherit;
    cursor: pointer;
}

.gate__submit:hover { background: var(--gate-red-hover); }

.gate__back {
    margin: 16px 0 0;
    text-align: center;
    font-size: 14px;
    color: var(--gate-muted);
}

.gate__back a {
    color: #2F80ED;
    font-weight: 700;
    text-decoration: none;
}

.gate__or {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 28px 0 18px;
    color: #8a8a8a;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.08em;
}

.gate__or::before,
.gate__or::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--gate-line);
}

.gate__vk {
    min-height: 44px;
}

.gate__copy {
    margin-top: auto;
    padding-top: 40px;
    text-align: center;
    color: #9a9a9a;
    font-size: 12px;
}

.gate__hero {
    position: relative;
    min-height: 100vh;
    overflow: hidden;
    background: #111;
}

.gate__hero img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
}

.gate__hero-img--quiz {
    object-position: center 18%;
}

.quiz__meta {
    margin: 0 0 10px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--gate-muted);
}

.quiz__progress {
    height: 3px;
    margin: 0 0 28px;
    border-radius: 99px;
    background: var(--gate-line);
    overflow: hidden;
}

.quiz__progress span {
    display: block;
    height: 100%;
    background: var(--gate-red);
}

.quiz__choice {
    width: 100%;
    display: block;
    text-align: left;
    margin: 0 0 10px;
    padding: 16px 18px;
    border: 1px solid var(--gate-line);
    border-radius: 12px;
    background: #fff;
    color: var(--gate-ink);
    font-size: 16px;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
}

.quiz__choice:hover,
.quiz__choice:focus {
    outline: none;
    border-color: #111;
    background: #fafafa;
}

.quiz__avatars {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
    margin: 0 0 8px;
}

.quiz__avatar {
    aspect-ratio: 1;
    padding: 0;
    border: 2px solid transparent;
    border-radius: 14px;
    overflow: hidden;
    background: #f3f3f3;
    cursor: pointer;
}

.quiz__avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.quiz__avatar.is-selected,
.quiz__avatar:hover,
.quiz__avatar:focus {
    border-color: #111;
    outline: none;
}

.quiz__skip {
    display: block;
    width: 100%;
    margin-top: 12px;
    padding: 10px;
    border: 0;
    background: none;
    color: var(--gate-muted);
    font-size: 14px;
    font-family: inherit;
    cursor: pointer;
}

.quiz__skip:hover {
    color: #111;
}

.quiz__welcome-title {
    margin-bottom: 12px;
}

.quiz__welcome-lead {
    margin: 0 0 12px;
    font-size: 22px;
    font-weight: 600;
    letter-spacing: -0.02em;
}

a.quiz__enter {
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    color: #fff;
}

@media (max-width: 900px) {
    .gate { grid-template-columns: 1fr; }
    .gate__hero {
        min-height: 220px;
        order: -1;
    }
    .gate__form { padding: 28px 22px 88px; }
    .gate__title { font-size: 26px; }
    .gate__hero-img--quiz {
        object-position: center 12%;
    }
}

.gate .alert {
    border-radius: 10px;
    font-size: 14px;
}

.gate-legal {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 40;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    padding: 14px 20px 16px;
    background: #111;
    color: rgba(255, 255, 255, 0.88);
    font-size: 13px;
    line-height: 1.45;
    box-shadow: 0 -8px 24px rgba(0, 0, 0, 0.18);
}
.gate-legal[hidden] { display: none; }
.gate-legal p { margin: 0; max-width: 920px; }
.gate-legal__ok {
    flex-shrink: 0;
    height: 36px;
    padding: 0 16px;
    border: 0;
    border-radius: 8px;
    background: #fff;
    color: #111;
    font-size: 13px;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
}
