:root {
    --white: #ffffff;
    --soft-white: #f7fbff;
    --blue-50: #eef7ff;
    --blue-100: #d8ecff;
    --blue-500: #0b7cff;
    --blue-600: #0b63ce;
    --blue-700: #064da7;
    --navy-800: #073263;
    --navy-900: #061f3f;
    --cyan-400: #18d7ff;
    --cyan-500: #00bce8;
    --green-500: #17b26a;
    --yellow-500: #f5b700;
    --orange-500: #ff8a00;
    --red-500: #ef4444;
    --purple-500: #7c3aed;
    --pink-500: #ec4899;
    --slate-500: #64748b;
    --slate-700: #334155;
    --border: #d9e7f5;
    --shadow: 0 18px 45px rgba(6, 31, 63, 0.12);
    --radius: 8px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: Arial, Helvetica, sans-serif;
    color: var(--navy-900);
    background:
        radial-gradient(circle at top left, rgba(24, 215, 255, 0.16), transparent 34rem),
        linear-gradient(180deg, #ffffff 0%, #f3f9ff 42%, #ffffff 100%);
    line-height: 1.6;
}

body.menu-open {
    overflow: hidden;
}

a {
    color: inherit;
    text-decoration: none;
}

button,
input,
textarea,
select {
    font: inherit;
}

button {
    cursor: pointer;
}

img {
    max-width: 100%;
    display: block;
}

.container {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(255, 255, 255, 0.94);
    border-bottom: 1px solid rgba(217, 231, 245, 0.9);
    backdrop-filter: blur(16px);
}

.header-inner {
    min-height: 86px;
    display: flex;
    align-items: center;
    gap: 18px;
}

.brand {
    flex: 0 0 auto;
    width: 210px;
}

.brand img,
.footer-logo img {
    width: 210px;
    height: 90px;
    object-fit: contain;
}

.primary-nav {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    flex: 1 1 auto;
}

.primary-nav a {
    min-height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 12px;
    border-radius: 999px;
    color: var(--slate-700);
    font-size: 14px;
    font-weight: 700;
    white-space: nowrap;
    transition: color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.primary-nav a:hover,
.primary-nav a.active {
    color: var(--blue-700);
    background: var(--blue-50);
    transform: translateY(-1px);
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    flex: 0 0 auto;
}

.btn {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border: 0;
    border-radius: 999px;
    padding: 0 18px;
    font-weight: 800;
    white-space: nowrap;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.btn:hover {
    transform: translateY(-2px);
}

.btn-login {
    color: var(--blue-700);
    background: rgba(255, 255, 255, 0.86);
    border: 1px solid rgba(11, 124, 255, 0.34);
    box-shadow: 0 10px 24px rgba(6, 77, 167, 0.08);
}

.btn-login:hover {
    border-color: var(--cyan-500);
    box-shadow: 0 14px 30px rgba(0, 188, 232, 0.16);
}

.btn-register {
    color: var(--white);
    background: linear-gradient(135deg, var(--blue-600), var(--cyan-500));
    box-shadow: 0 0 0 0 rgba(0, 188, 232, 0.45), 0 14px 28px rgba(11, 99, 206, 0.28);
    animation: pulseGlow 1.8s ease-in-out infinite;
}

.btn-register:hover {
    box-shadow: 0 0 0 10px rgba(0, 188, 232, 0.08), 0 18px 34px rgba(11, 99, 206, 0.34);
}

@keyframes pulseGlow {
    0% {
        box-shadow: 0 0 0 0 rgba(0, 188, 232, 0.42), 0 14px 28px rgba(11, 99, 206, 0.24);
    }
    70% {
        box-shadow: 0 0 0 14px rgba(0, 188, 232, 0), 0 14px 28px rgba(11, 99, 206, 0.24);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(0, 188, 232, 0), 0 14px 28px rgba(11, 99, 206, 0.24);
    }
}

.nav-toggle {
    width: 44px;
    height: 44px;
    display: none;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 5px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--white);
}

.nav-toggle span {
    width: 21px;
    height: 2px;
    background: var(--navy-800);
    border-radius: 999px;
}

.site-main {
    overflow: hidden;
}

.hero {
    position: relative;
    padding: 74px 0 50px;
}

.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(110deg, rgba(11, 99, 206, 0.09), transparent 48%),
        repeating-linear-gradient(135deg, rgba(11, 99, 206, 0.06) 0 1px, transparent 1px 22px);
    pointer-events: none;
}

.hero-inner {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.95fr);
    gap: 40px;
    align-items: center;
}

.hero-copy {
    max-width: 700px;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 34px;
    padding: 0 13px;
    border-radius: 999px;
    color: var(--blue-700);
    background: var(--blue-50);
    border: 1px solid var(--blue-100);
    font-size: 13px;
    font-weight: 800;
    text-transform: uppercase;
}

.hero h1 {
    margin: 18px 0 16px;
    font-size: clamp(34px, 5vw, 64px);
    line-height: 1.03;
    color: var(--navy-900);
}

.hero h1 span {
    color: var(--blue-600);
}

.hero p {
    margin: 0;
    color: var(--slate-700);
    font-size: 18px;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 28px;
}

.hero-panel {
    position: relative;
    min-height: 430px;
    border-radius: 8px;
    background:
        linear-gradient(145deg, rgba(255, 255, 255, 0.94), rgba(238, 247, 255, 0.92)),
        linear-gradient(135deg, rgba(11, 124, 255, 0.18), rgba(24, 215, 255, 0.15));
    border: 1px solid rgba(217, 231, 245, 0.95);
    box-shadow: var(--shadow);
    overflow: hidden;
}

.hero-panel::before {
    content: "";
    position: absolute;
    inset: 26px;
    border: 1px solid rgba(11, 99, 206, 0.13);
    border-radius: 8px;
}

.score-board {
    position: relative;
    z-index: 1;
    height: 100%;
    padding: 34px;
    display: grid;
    align-content: center;
    gap: 18px;
}

.score-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    color: var(--blue-700);
    font-weight: 900;
}

.score-line {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 16px;
    padding: 20px;
    border-radius: 8px;
    background: var(--white);
    box-shadow: 0 12px 30px rgba(7, 50, 99, 0.08);
}

.team {
    display: grid;
    justify-items: center;
    gap: 8px;
    color: var(--navy-800);
    font-weight: 800;
    text-align: center;
}

.team i {
    font-size: 38px;
}

.versus {
    display: grid;
    justify-items: center;
    gap: 6px;
    color: var(--slate-500);
    font-size: 13px;
    font-weight: 800;
}

.versus strong {
    color: var(--navy-900);
    font-size: 34px;
    line-height: 1;
}

.metric-strip {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
}

.metric {
    padding: 14px;
    border-radius: 8px;
    background: var(--blue-50);
    border: 1px solid var(--blue-100);
}

.metric strong {
    display: block;
    color: var(--navy-900);
    font-size: 20px;
    line-height: 1.2;
}

.metric span {
    color: var(--slate-500);
    font-size: 12px;
    font-weight: 700;
}

.section {
    padding: 58px 0;
}

.section.alt {
    background: linear-gradient(180deg, rgba(238, 247, 255, 0.72), rgba(255, 255, 255, 0));
}

.section-head {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 26px;
}

.section-head h2 {
    margin: 0;
    color: var(--navy-900);
    font-size: clamp(26px, 3vw, 40px);
    line-height: 1.15;
}

.section-head p {
    max-width: 560px;
    margin: 0;
    color: var(--slate-700);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}

.feature-card,
.game-card,
.seo-article,
.topic-card {
    border: 1px solid var(--border);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.9);
    box-shadow: 0 12px 30px rgba(7, 50, 99, 0.08);
}

.feature-card {
    padding: 24px;
}

.feature-card i,
.game-card i,
.topic-card i {
    font-size: 34px;
}

.feature-card h3,
.game-card h3,
.topic-card h3 {
    margin: 16px 0 8px;
    color: var(--navy-900);
    font-size: 19px;
    line-height: 1.25;
}

.feature-card p,
.game-card p,
.topic-card p {
    margin: 0;
    color: var(--slate-700);
    font-size: 15px;
}

.games-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
}

.game-card {
    position: relative;
    min-height: 224px;
    padding: 26px;
    overflow: hidden;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.game-card::after {
    content: "";
    position: absolute;
    right: -42px;
    bottom: -48px;
    width: 150px;
    height: 150px;
    border-radius: 50%;
    background: rgba(24, 215, 255, 0.12);
}

.game-card:hover {
    transform: translateY(-4px);
    border-color: rgba(11, 124, 255, 0.36);
    box-shadow: 0 20px 45px rgba(7, 50, 99, 0.13);
}

.game-card .btn {
    margin-top: 20px;
}

.topic-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
}

.topic-card {
    padding: 24px;
}

.seo-article {
    padding: clamp(24px, 4vw, 44px);
}

.seo-article h2 {
    margin: 0 0 16px;
    color: var(--navy-900);
    font-size: clamp(26px, 3vw, 38px);
    line-height: 1.2;
}

.seo-article h3 {
    margin: 28px 0 10px;
    color: var(--blue-700);
    font-size: 22px;
}

.seo-article p {
    margin: 0 0 15px;
    color: var(--slate-700);
}

.seo-article ul {
    margin: 0 0 18px;
    padding-left: 20px;
    color: var(--slate-700);
}

.seo-article li {
    margin-bottom: 8px;
}

.cta-band {
    padding: 46px 0;
    background: linear-gradient(135deg, var(--navy-900), var(--blue-700));
    color: var(--white);
}

.cta-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.cta-band h2 {
    margin: 0 0 8px;
    font-size: clamp(25px, 3vw, 38px);
    line-height: 1.18;
}

.cta-band p {
    margin: 0;
    color: rgba(255, 255, 255, 0.82);
}

.site-footer {
    background: var(--white);
    border-top: 1px solid var(--border);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.35fr 0.8fr 0.8fr 1fr;
    gap: 28px;
    padding: 48px 0 34px;
}

.footer-brand p,
.footer-note p {
    color: var(--slate-700);
    margin: 12px 0 0;
}

.footer-col h2 {
    margin: 0 0 14px;
    color: var(--navy-900);
    font-size: 18px;
}

.footer-col a,
.footer-link {
    display: block;
    width: fit-content;
    margin: 8px 0;
    padding: 0;
    border: 0;
    color: var(--slate-700);
    background: transparent;
    font-weight: 700;
    text-align: left;
}

.footer-col a:hover,
.footer-link:hover {
    color: var(--blue-600);
}

.social-row,
.cert-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 16px;
}

.social-row span,
.cert-row span {
    min-height: 38px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 0 12px;
    border-radius: 999px;
    background: var(--blue-50);
    border: 1px solid var(--blue-100);
    color: var(--navy-800);
    font-size: 13px;
    font-weight: 800;
}

.copyright {
    border-top: 1px solid var(--border);
    color: var(--slate-500);
    font-size: 14px;
}

.copyright p {
    margin: 0;
    padding: 18px 0;
}

.toast {
    position: fixed;
    left: 50%;
    bottom: 24px;
    z-index: 100;
    min-width: min(360px, calc(100% - 32px));
    padding: 14px 18px;
    border-radius: 8px;
    color: var(--white);
    background: var(--navy-900);
    box-shadow: 0 18px 45px rgba(6, 31, 63, 0.25);
    text-align: center;
    font-weight: 800;
    opacity: 0;
    visibility: hidden;
    transform: translate(-50%, 18px);
    transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s ease;
}

.toast.show {
    opacity: 1;
    visibility: visible;
    transform: translate(-50%, 0);
}

.icon-blue { color: #0b7cff; }
.icon-navy { color: #073263; }
.icon-cyan { color: #00bce8; }
.icon-green { color: #17b26a; }
.icon-yellow { color: #f5b700; }
.icon-orange { color: #ff8a00; }
.icon-red { color: #ef4444; }
.icon-purple { color: #7c3aed; }
.icon-pink { color: #ec4899; }
.icon-teal { color: #14b8a6; }
.icon-indigo { color: #4f46e5; }
.icon-lime { color: #65a30d; }
.icon-facebook { color: #1877f2; }
.icon-telegram { color: #229ed9; }
.icon-white { color: #ffffff; }

@media (max-width: 1080px) {
    .header-inner {
        flex-wrap: wrap;
        justify-content: space-between;
        padding: 10px 0;
    }

    .nav-toggle {
        display: inline-flex;
        order: 3;
    }

    .header-actions {
        order: 2;
        margin-left: auto;
    }

    .primary-nav {
        order: 4;
        flex: 1 0 100%;
        display: none;
        padding: 10px 0 4px;
        justify-content: flex-start;
        overflow-x: auto;
    }

    .primary-nav.open {
        display: flex;
    }

    .hero-inner {
        grid-template-columns: 1fr;
    }

    .hero-panel {
        min-height: 360px;
    }

    .features-grid,
    .games-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 720px) {
    .container {
        width: min(100% - 24px, 1180px);
    }

    .header-inner {
        gap: 10px;
    }

    .header-actions {
        width: 100%;
        order: 4;
        display: grid;
        grid-template-columns: 1fr 1fr;
    }

    .nav-toggle {
        order: 2;
    }

    .primary-nav {
        order: 3;
        display: none;
        flex-direction: column;
        align-items: stretch;
        overflow: visible;
    }

    .primary-nav.open {
        display: flex;
    }

    .primary-nav a {
        justify-content: flex-start;
        border-radius: 8px;
    }

    .hero {
        padding: 46px 0 32px;
    }

    .hero h1 {
        font-size: 38px;
    }

    .hero p {
        font-size: 16px;
    }

    .hero-actions,
    .cta-inner {
        align-items: stretch;
        flex-direction: column;
    }

    .hero-actions .btn,
    .cta-inner .btn {
        width: 100%;
    }

    .score-board {
        padding: 22px;
    }

    .score-line {
        grid-template-columns: 1fr;
    }

    .metric-strip,
    .features-grid,
    .games-grid,
    .topic-grid,
    .footer-grid {
        grid-template-columns: 1fr;
    }

    .section {
        padding: 42px 0;
    }

    .section-head {
        display: block;
    }

    .section-head p {
        margin-top: 10px;
    }
}

@media (max-width: 420px) {
    .btn {
        padding: 0 12px;
        font-size: 14px;
    }

    .hero h1 {
        font-size: 33px;
    }
}
