:root {
    --ink: #142132;
    --muted: #607086;
    --line: #dbe4ee;
    --paper: #ffffff;
    --soft: #f3f7fb;
    --brand: #0f67a5;
    --brand-dark: #0b426d;
    --accent: #e86e35;
    --success: #18794e;
    --danger: #b42318;
    --radius: 18px;
    --shadow: 0 18px 45px rgba(17, 49, 80, .10);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    color: var(--ink);
    background: linear-gradient(180deg, #edf5fb 0, #fff 320px);
    font: 17px/1.65 system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
img { max-width: 100%; height: auto; }
a { color: var(--brand); text-decoration-thickness: .08em; text-underline-offset: .18em; }
a:hover { color: var(--brand-dark); }
h1, h2, h3 { line-height: 1.2; color: #0b3152; }
h1 { margin: 0 0 1rem; font-size: clamp(2rem, 5vw, 3.25rem); letter-spacing: -.035em; }
h2 { margin-top: 2.2rem; font-size: clamp(1.4rem, 3vw, 2rem); }
h3 { margin-top: 1.6rem; }
p, ul, ol { max-width: 76ch; }

.skip-link { position: fixed; left: 1rem; top: -5rem; z-index: 100; padding: .75rem 1rem; color: #fff; background: #000; }
.skip-link:focus { top: 1rem; }
.visually-hidden { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.site-header { position: sticky; top: 0; z-index: 20; border-bottom: 1px solid rgba(255,255,255,.16); background: rgba(9, 49, 82, .96); backdrop-filter: blur(12px); }
.header-inner { width: min(1240px, calc(100% - 2rem)); min-height: 112px; margin: auto; display: flex; align-items: center; justify-content: space-between; gap: 2rem; }
.brand { display: flex; align-items: center; gap: 1rem; color: #fff; text-decoration: none; }
.brand img { width: min(400px, 40vw); max-height: 100px; border-radius: 7px; object-fit: contain; }
.brand span { max-width: 160px; color: #c6e5fa; font-size: .82rem; line-height: 1.25; }
.main-nav { display: flex; align-items: center; justify-content: flex-end; gap: .25rem; }
.main-nav a { padding: .65rem .75rem; border-radius: 9px; color: #eef8ff; font-weight: 650; font-size: .92rem; text-decoration: none; }
.main-nav a:hover, .main-nav a:focus-visible { background: rgba(255,255,255,.12); }
.main-nav .nav-register { color: #fff; background: var(--accent); }
.main-nav .nav-register:hover, .main-nav .nav-register:focus-visible { background: #c95727; }
.menu-toggle { display: none; padding: .65rem .85rem; border: 1px solid rgba(255,255,255,.35); border-radius: 9px; color: #fff; background: transparent; font: inherit; }

.layout { width: min(1240px, calc(100% - 2rem)); margin: 2rem auto 4rem; display: grid; grid-template-columns: 245px minmax(0, 1fr); gap: 2rem; align-items: start; }
.sidebar { position: sticky; top: 126px; padding: 1.15rem; border: 1px solid var(--line); border-radius: var(--radius); background: rgba(255,255,255,.94); box-shadow: var(--shadow); }
.sidebar-title { margin: 0 0 .7rem; color: var(--brand-dark); font-size: .78rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.sidebar nav, .sidebar-extra, .sidebar-partners { display: grid; gap: .35rem; }
.sidebar nav a, .sidebar-extra a, .sidebar-partners a { padding: .65rem .7rem; border-radius: 10px; color: var(--ink); font-size: .94rem; text-decoration: none; }
.sidebar nav a:hover, .sidebar-extra a:hover, .sidebar-partners a:hover { background: var(--soft); color: var(--brand-dark); }
.sidebar nav span { display: block; color: var(--accent); font-size: .75rem; font-weight: 750; }
.sidebar-extra { margin-top: 1rem; padding-top: 1rem; border-top: 1px solid var(--line); }
.sidebar-extra a { color: var(--muted); font-size: .86rem; }
.sidebar-partners { margin-top: 1rem; padding-top: 1rem; border-top: 1px solid var(--line); }
.sidebar-partners .sidebar-title { margin-bottom: .25rem; }
.sidebar-partners a { color: var(--muted); font-size: .86rem; }

.content { min-width: 0; padding: clamp(1.4rem, 4vw, 3.2rem); border: 1px solid var(--line); border-radius: 24px; background: var(--paper); box-shadow: var(--shadow); }
.eyebrow { margin: 0 0 .6rem; color: var(--accent); font-size: .82rem; font-weight: 850; letter-spacing: .12em; text-transform: uppercase; }
.lead { color: #40536a; font-size: 1.18rem; }
.hero { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(230px, .65fr); gap: 2.5rem; align-items: center; }
.hero-card { padding: 1.4rem; border: 1px solid #cbe0ef; border-radius: var(--radius); background: linear-gradient(145deg, #f4faff, #e8f3fb); }
.hero-card strong { display: block; color: var(--brand-dark); font-size: 1.1rem; }
.actions { display: flex; flex-wrap: wrap; gap: .8rem; margin: 1.5rem 0; }
.button, button.button, input[type=submit] { display: inline-flex; align-items: center; justify-content: center; min-height: 46px; padding: .72rem 1.05rem; border: 1px solid var(--brand); border-radius: 11px; color: #fff; background: var(--brand); font: 700 .96rem/1 system-ui, sans-serif; text-decoration: none; cursor: pointer; }
.button:hover, button.button:hover, input[type=submit]:hover { color: #fff; background: var(--brand-dark); }
.button.secondary { color: var(--brand-dark); background: #fff; }
.register-cta { display: flex; flex-wrap: wrap; align-items: center; gap: .8rem; margin: -.55rem 0 1.6rem; }
.register-cta span { color: var(--muted); font-size: .9rem; }
.button.danger { border-color: var(--danger); background: var(--danger); }
.feature-grid, .game-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; margin: 1.5rem 0; }
.feature-card, .game-card { padding: 1.2rem; border: 1px solid var(--line); border-radius: 15px; background: #fff; }
.feature-card h2, .game-card h2 { margin: 0 0 .45rem; font-size: 1.18rem; }
.game-card { display: flex; flex-direction: column; }
.game-card img { width: 100%; aspect-ratio: 16 / 8; margin: 0 0 1rem; border: 1px solid var(--line); border-radius: 10px; object-fit: cover; object-position: top; background: var(--soft); }
.game-card p { flex: 1; color: var(--muted); }
.game-card a { font-weight: 750; }
.catalog-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(230px, 38%); gap: 2rem; align-items: start; }
.catalog-image { display: grid; gap: 1rem; }
.catalog-image img, .gallery img { width: 100%; border: 1px solid var(--line); border-radius: 14px; box-shadow: 0 10px 25px rgba(17,49,80,.1); }
.facts { padding: 0; list-style: none; }
.facts li { position: relative; margin: .5rem 0; padding-left: 1.5rem; }
.facts li::before { content: "✓"; position: absolute; left: 0; color: var(--success); font-weight: 900; }
.licence-box { margin-top: 1.5rem; padding: 1.1rem; border-left: 4px solid var(--accent); border-radius: 8px; background: #fff7f0; }
.gallery { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; padding: 0; list-style: none; }
.timeline { padding-left: 1.2rem; border-left: 3px solid #cce1ef; }
.timeline section { margin: 0 0 2rem; padding-left: 1rem; }
.timeline h3 { margin-bottom: .5rem; }

.form-card { max-width: 680px; padding: 1.4rem; border: 1px solid var(--line); border-radius: var(--radius); background: var(--soft); }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
.field { display: grid; gap: .35rem; }
.field.full { grid-column: 1 / -1; }
.field label { font-weight: 700; }
.field input, .field textarea, .field select { width: 100%; min-height: 46px; padding: .7rem .8rem; border: 1px solid #aebdca; border-radius: 9px; background: #fff; color: var(--ink); font: inherit; }
.field textarea { min-height: 150px; resize: vertical; }
.field input:focus, .field textarea:focus, .field select:focus { outline: 3px solid rgba(15,103,165,.2); border-color: var(--brand); }
.captcha-row { display: flex; align-items: center; gap: 1rem; }
.captcha-row img { width: 150px; height: 50px; border: 1px solid var(--line); border-radius: 8px; }
.honeypot { position: absolute !important; left: -10000px !important; width: 1px !important; height: 1px !important; overflow: hidden !important; }
.notice { margin: 0 0 1.5rem; padding: 1rem; border-radius: 10px; }
.notice-success { color: #125b3b; background: #e5f6ed; }
.notice-error { color: #7a271a; background: #ffebe8; }
.notice-info { color: #184d73; background: #e8f4fc; }

.scores-year-selector { display: flex; align-items: center; flex-wrap: wrap; gap: .65rem; margin: 1.25rem 0; padding: 1rem 1.1rem; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); }
.scores-year-selector label { font-weight: 800; color: var(--brand-dark); }
.scores-year-selector select { min-width: 10rem; padding: .65rem .75rem; border: 1px solid #aebdca; border-radius: 8px; background: #fff; color: var(--ink); font: inherit; }
.table-scroll { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: .94rem; }
caption { padding: 1rem 0 .5rem; color: var(--brand-dark); font-size: 1.15rem; font-weight: 800; text-align: left; }
th, td { padding: .7rem; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
th { background: var(--soft); color: var(--brand-dark); }
tbody tr:hover { background: #f8fbfd; }

.site-footer { width: min(1240px, calc(100% - 2rem)); margin: 0 auto 2rem; padding: 1.5rem 0; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem 2rem; border-top: 1px solid var(--line); color: var(--muted); }
.site-footer div { display: grid; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 1rem; }

@media (max-width: 980px) {
    .header-inner { min-height: 100px; }
    .brand span { display: none; }
    .menu-toggle { display: inline-flex; }
    .main-nav { display: none; position: absolute; left: 1rem; right: 1rem; top: calc(100% + .5rem); padding: .8rem; border-radius: 14px; background: #0b426d; box-shadow: var(--shadow); }
    .main-nav.open { display: grid; }
}

@media (max-width: 760px) {
    .layout { grid-template-columns: 1fr; }
    .sidebar { position: static; order: 2; }
    .sidebar nav { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 700px) {
    body { font-size: 16px; }
    .header-inner, .layout, .site-footer { width: min(100% - 1rem, 1240px); }
    .brand img { width: min(285px, 72vw); }
    .content { padding: 1.25rem; border-radius: 16px; }
    .hero, .catalog-layout, .feature-grid, .game-grid, .form-grid, .gallery { grid-template-columns: 1fr; }
    .sidebar nav { grid-template-columns: 1fr; }
    .field.full { grid-column: auto; }
    .captcha-row { align-items: flex-start; flex-direction: column; }
    .site-footer { align-items: flex-start; flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; }
}

