:root {
    --bg: #00001C;
    --surface: #0B0B2E;
    --surface-2: #13133B;
    --surface-3: #1C1B4A;
    --line: #25245C;
    --text: #EEEAFB;
    --muted: #9C98C8;
    --faint: #5F5C8E;
    --neon: #C8174A;
    --neon-2: #96102F;
    --neon-hover: #D9265A;
    --neon-ink: #EC4A6E;
    --neon-soft: rgba(200, 23, 74, 0.2);
    --cyan: #2DE2F0;
    --amber: #F19B06;
    --good: #3EE6A0;
    --bad: #FF4D6D;
    --shadow: 0 24px 60px rgba(0, 0, 12, 0.45);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    min-height: 100vh;
    background: var(--bg);
    color: var(--text);
    font-family: Manrope, sans-serif;
    font-size: 16px;
    line-height: 1.55;
}
img { max-width: 100%; display: block; }
a { color: var(--cyan); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--text); }
button, input, textarea { font: inherit; color: inherit; }

html:not([lang="en"]) .en { display: none !important; }
html[lang="en"] .ru { display: none !important; }

.wrap { width: min(1080px, calc(100% - 40px)); margin: 0 auto; }
.kicker, h1, h2, h3 {
    font-family: Oswald, sans-serif;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    line-height: 1.05;
}
.kicker { margin: 0 0 12px; color: var(--neon-ink); font-size: 13px; }
h1 { margin: 0; font-size: clamp(40px, 7vw, 76px); text-shadow: 0 0 28px rgba(200, 23, 74, 0.35); }
h2 { margin: 0 0 18px; font-size: clamp(26px, 4vw, 40px); }
h3 { margin: 0 0 8px; font-size: 18px; letter-spacing: 0.08em; }
p { margin: 0 0 14px; }
.muted { color: var(--muted); }
.faint { color: var(--faint); }

.site-header {
    position: sticky;
    top: 0;
    z-index: 5;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    width: min(1080px, calc(100% - 40px));
    margin: 0 auto;
    padding: 16px 0;
    background: linear-gradient(var(--bg), rgba(0, 0, 28, 0.92) 70%, transparent);
}
.brand { display: flex; align-items: center; gap: 12px; color: var(--text); text-decoration: none; }
.brand img { width: 42px; height: 42px; border-radius: 12px; object-fit: cover; }
.brand span { font-family: Oswald, sans-serif; letter-spacing: 0.16em; font-size: 18px; }
.nav { display: flex; align-items: center; gap: 18px; }
.nav a { color: var(--muted); text-decoration: none; font-size: 14px; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--text); }
.lang { display: flex; padding: 3px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); }
.lang button {
    border: 0;
    background: transparent;
    color: var(--faint);
    border-radius: 999px;
    padding: 6px 10px;
    cursor: pointer;
}
.lang button[aria-pressed="true"] { background: var(--neon); color: white; }

.hero {
    position: relative;
    min-height: calc(100vh - 74px);
    display: flex;
    align-items: flex-end;
    padding: 48px 0 72px;
    background:
        linear-gradient(90deg, rgba(0, 0, 28, 0.94) 0%, rgba(0, 0, 28, 0.78) 42%, rgba(0, 0, 28, 0.28) 100%),
        linear-gradient(180deg, rgba(0, 0, 28, 0.2), var(--bg)),
        url("../img/login-bg.jpg") center 20% / cover no-repeat;
}
.hero .wrap { display: grid; gap: 22px; }
.lead { max-width: 640px; font-size: 18px; color: var(--muted); }
.actions { display: flex; flex-wrap: wrap; gap: 12px; }
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 0 18px;
    border-radius: 14px;
    border: 1px solid transparent;
    text-decoration: none;
    cursor: pointer;
    font-weight: 700;
}
.btn-primary { background: var(--neon); color: white; }
.btn-primary:hover { background: var(--neon-hover); color: white; }
.btn-ghost { background: rgba(11, 11, 46, 0.72); color: var(--text); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--neon-ink); color: var(--text); }

.section { padding: 72px 0; }
.rule { height: 2px; width: 72px; margin: 14px 0 28px; background: linear-gradient(90deg, var(--neon), var(--violet)); }
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.card {
    background: linear-gradient(180deg, var(--surface-2), var(--surface));
    border: 1px solid var(--line);
    border-radius: 20px;
    padding: 22px;
    box-shadow: var(--shadow);
}
.card .tag { color: var(--cyan); font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; font-family: Oswald, sans-serif; }
.list { margin: 0; padding-left: 18px; color: var(--muted); }
.list li + li { margin-top: 8px; }

.legal { padding: 28px 0 80px; }
.legal article {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 24px;
    padding: clamp(22px, 4vw, 42px);
}
.legal h1 { font-size: clamp(32px, 5vw, 52px); margin-bottom: 8px; }
.legal h2 { margin-top: 28px; font-size: 24px; }
.prose p, .prose li { color: var(--muted); }
.prose strong { color: var(--text); }

.form {
    display: grid;
    gap: 14px;
    margin-top: 8px;
}
label { display: grid; gap: 6px; font-size: 14px; color: var(--muted); }
input, textarea {
    width: 100%;
    border: 1px solid var(--line);
    background: var(--bg);
    border-radius: 14px;
    padding: 14px 16px;
    outline: none;
}
textarea { min-height: 110px; resize: vertical; }
input:focus, textarea:focus { border-color: var(--neon); }
.check { grid-template-columns: 20px 1fr; align-items: start; gap: 10px; }
.check input { width: 20px; height: 20px; margin-top: 2px; accent-color: var(--neon); }
.error { color: var(--bad); min-height: 1.2em; }
.done {
    display: none;
    border: 1px solid rgba(62, 230, 160, 0.35);
    background: rgba(62, 230, 160, 0.08);
    border-radius: 20px;
    padding: 20px;
}
.done.show { display: block; }
.done textarea { margin-top: 12px; }

.site-footer {
    border-top: 1px solid var(--line);
    padding: 28px 0 40px;
    color: var(--faint);
    display: flex;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
}
.site-footer nav { display: flex; gap: 16px; }

@media (max-width: 800px) {
    .grid { grid-template-columns: 1fr; }
    .nav a { display: none; }
    .hero { background-position: 70% center; align-items: center; }
}
