:root {
    --navy-950: #06111f;
    --navy-900: #071426;
    --navy-800: #0c2038;
    --navy-700: #12345a;
    --blue-600: #1f6feb;
    --gold-500: #f5b700;
    --gold-400: #ffca28;
    --red-500: #e53935;
    --green-500: #1f9d62;
    --ink: #142033;
    --muted: #64748b;
    --line: #e2e8f0;
    --surface: #ffffff;
    --soft: #f5f7fb;
    --radius: 20px;
    --shadow: 0 18px 55px rgba(6, 17, 31, .13);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    color: var(--ink);
    background: #fff;
    line-height: 1.6;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; }
.container { width: min(1180px, calc(100% - 40px)); margin: 0 auto; }

.topbar { background: var(--navy-950); color: #cbd5e1; font-size: .84rem; }
.topbar-inner { min-height: 38px; display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.topbar-links { display: flex; align-items: center; gap: 18px; }
.topbar a:hover { color: #fff; }
.panel-link { color: var(--gold-400); font-weight: 800; }
.site-header { position: sticky; top: 0; z-index: 100; background: rgba(255,255,255,.96); box-shadow: 0 8px 24px rgba(15,23,42,.08); backdrop-filter: blur(12px); }
.navbar { min-height: 84px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand img { width: 230px; height: auto; }
.main-nav { display: flex; align-items: center; gap: 4px; }
.main-nav > a:not(.btn) { padding: 12px 13px; font-size: .93rem; font-weight: 750; color: #334155; border-radius: 10px; }
.main-nav > a:not(.btn):hover,
.main-nav > a.active:not(.btn) { color: var(--navy-900); background: #eef4ff; }
.nav-toggle { display: none; border: 0; background: var(--navy-900); color: #fff; border-radius: 12px; width: 44px; height: 44px; cursor: pointer; }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 46px; padding: 0 20px; border-radius: 12px; border: 1px solid transparent; font-weight: 850; cursor: pointer; transition: transform .2s ease, box-shadow .2s ease, background .2s ease; }
.btn:hover { transform: translateY(-2px); }
.btn-sm { min-height: 40px; padding-inline: 16px; font-size: .9rem; }
.btn-gold { background: linear-gradient(135deg, var(--gold-400), var(--gold-500)); color: var(--navy-950); box-shadow: 0 12px 26px rgba(245,183,0,.25); }
.btn-primary { background: linear-gradient(135deg, var(--blue-600), #114ca6); color: #fff; box-shadow: 0 12px 26px rgba(31,111,235,.22); }
.btn-outline { border-color: rgba(255,255,255,.55); color: #fff; background: rgba(255,255,255,.05); }
.btn-light { background: #fff; color: var(--navy-900); border-color: var(--line); }

.hero { position: relative; min-height: 690px; display: grid; place-items: center; color: #fff; overflow: hidden; background: var(--navy-900); }
.hero::before { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(6,17,31,.92) 0%, rgba(6,17,31,.72) 45%, rgba(6,17,31,.28) 100%), url('../img/hero.jpg') center/cover no-repeat; transform: scale(1.01); }
.hero::after { content: ""; position: absolute; inset: auto 0 0; height: 150px; background: linear-gradient(transparent, rgba(6,17,31,.88)); }
.hero-inner { position: relative; z-index: 2; display: grid; grid-template-columns: 1.25fr .75fr; align-items: end; gap: 55px; padding: 85px 0 95px; }
.eyebrow { display: inline-flex; align-items: center; gap: 10px; color: var(--gold-400); font-size: .78rem; font-weight: 900; text-transform: uppercase; letter-spacing: .16em; }
.eyebrow::before { content: ""; width: 35px; height: 3px; border-radius: 999px; background: currentColor; }
.hero h1 { margin: 16px 0 20px; max-width: 760px; font-size: clamp(3rem, 6vw, 5.7rem); line-height: .96; letter-spacing: -.055em; text-transform: uppercase; }
.hero h1 span { color: var(--gold-400); }
.hero-copy > p { max-width: 680px; margin: 0 0 30px; color: #dbe7f5; font-size: 1.12rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-card { align-self: end; background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.2); border-radius: 24px; padding: 25px; backdrop-filter: blur(16px); box-shadow: var(--shadow); }
.hero-card-label { color: var(--gold-400); text-transform: uppercase; letter-spacing: .12em; font-size: .75rem; font-weight: 900; }
.hero-card h3 { margin: 8px 0 5px; font-size: 1.35rem; }
.hero-card p { color: #dbe7f5; margin: 0 0 18px; }
.hero-match { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 12px; text-align: center; }
.team-mark { display: grid; justify-items: center; gap: 8px; font-weight: 850; font-size: .88rem; }
.team-mark img { width: 70px; height: 70px; border-radius: 50%; background: #fff; object-fit: contain; padding: 8px; }
.vs { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; background: var(--gold-500); color: var(--navy-950); font-weight: 950; }

.section { padding: 92px 0; }
.section-soft { background: var(--soft); }
.section-dark { background: linear-gradient(145deg, var(--navy-950), var(--navy-800)); color: #fff; }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 25px; margin-bottom: 38px; }
.section-head.center { display: block; text-align: center; max-width: 780px; margin: 0 auto 40px; }
.section-head h2 { margin: 8px 0 0; font-size: clamp(2rem, 4vw, 3.3rem); line-height: 1.06; letter-spacing: -.04em; }
.section-head p { max-width: 620px; margin: 10px 0 0; color: var(--muted); }
.section-dark .section-head p { color: #b8c7da; }

.stats-strip { position: relative; z-index: 10; margin-top: -44px; }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); background: #fff; border-radius: 22px; box-shadow: var(--shadow); overflow: hidden; }
.stat { padding: 26px 30px; border-right: 1px solid var(--line); }
.stat:last-child { border-right: 0; }
.stat strong { display: block; color: var(--navy-900); font-size: 2.2rem; line-height: 1; }
.stat span { color: var(--muted); font-size: .9rem; font-weight: 700; }

.grid { display: grid; gap: 24px; }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: 0 12px 34px rgba(15,23,42,.07); overflow: hidden; }
.card-body { padding: 24px; }
.card h3 { margin: 0 0 8px; line-height: 1.25; }
.card p { margin: 0; color: var(--muted); }

.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.about-photo { position: relative; }
.about-photo img { width: 100%; height: 520px; object-fit: cover; border-radius: 28px; box-shadow: var(--shadow); }
.about-badge { position: absolute; right: -18px; bottom: 30px; width: 190px; padding: 20px; border-radius: 18px; background: var(--gold-400); color: var(--navy-950); font-weight: 900; box-shadow: var(--shadow); }
.check-list { display: grid; gap: 14px; padding: 0; margin: 25px 0 30px; list-style: none; }
.check-list li { display: grid; grid-template-columns: 26px 1fr; gap: 10px; align-items: start; }
.check-list li::before { content: "✓"; display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: #e8fff3; color: var(--green-500); font-weight: 950; }

.game-card { padding: 24px; }
.game-meta { display: flex; justify-content: space-between; gap: 12px; margin-bottom: 22px; color: var(--muted); font-size: .84rem; font-weight: 800; }
.game-card .hero-match { margin-bottom: 18px; }
.game-card .team-mark img { width: 64px; height: 64px; border: 1px solid var(--line); }
.game-location { text-align: center; color: var(--muted); font-size: .9rem; }
.score { display: inline-flex; min-width: 52px; justify-content: center; padding: 8px 10px; border-radius: 10px; background: var(--navy-900); color: #fff; font-size: 1.15rem; font-weight: 950; }

.team-card { padding: 25px; text-align: center; }
.team-card img { width: 110px; height: 110px; object-fit: contain; margin: 0 auto 18px; background: #fff; border: 1px solid var(--line); border-radius: 50%; padding: 12px; }
.team-card .meta { color: var(--muted); font-size: .9rem; }

.news-card .news-image { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.news-card .date { display: inline-flex; margin-bottom: 10px; color: var(--blue-600); font-size: .8rem; font-weight: 900; text-transform: uppercase; letter-spacing: .08em; }
.news-card h3 { font-size: 1.25rem; }
.news-card a.more { display: inline-flex; margin-top: 18px; color: var(--navy-900); font-weight: 900; }
.news-card a.more:hover { color: var(--blue-600); }

.gallery-grid { display: grid; grid-template-columns: repeat(12, 1fr); grid-auto-rows: 210px; gap: 16px; }
.gallery-item { border-radius: 18px; overflow: hidden; position: relative; background: #e2e8f0; }
.gallery-item:nth-child(5n+1) { grid-column: span 7; grid-row: span 2; }
.gallery-item:nth-child(5n+2) { grid-column: span 5; }
.gallery-item:nth-child(5n+3) { grid-column: span 5; }
.gallery-item:nth-child(5n+4) { grid-column: span 6; }
.gallery-item:nth-child(5n+5) { grid-column: span 6; }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease; }
.gallery-item:hover img { transform: scale(1.04); }
.gallery-caption { position: absolute; inset: auto 0 0; padding: 40px 18px 16px; color: #fff; font-weight: 850; background: linear-gradient(transparent, rgba(6,17,31,.85)); }

.sponsors { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 24px; }
.sponsor { display: grid; place-items: center; width: 190px; height: 100px; border: 1px solid var(--line); border-radius: 16px; background: #fff; padding: 16px; }
.sponsor img { max-height: 65px; object-fit: contain; filter: grayscale(.25); }

.cta { padding: 0 0 92px; }
.cta-box { display: grid; grid-template-columns: 1.2fr .8fr; align-items: center; gap: 35px; padding: 48px; border-radius: 28px; background: linear-gradient(135deg, var(--navy-900), var(--navy-700)); color: #fff; box-shadow: var(--shadow); }
.cta-box h2 { margin: 0 0 10px; font-size: clamp(2rem, 4vw, 3.2rem); line-height: 1.04; }
.cta-box p { margin: 0; color: #cbd5e1; }
.cta-actions { display: flex; justify-content: flex-end; gap: 12px; flex-wrap: wrap; }

.page-hero { padding: 88px 0 72px; background: linear-gradient(135deg, var(--navy-950), var(--navy-700)); color: #fff; }
.page-hero h1 { margin: 10px 0 8px; font-size: clamp(2.5rem, 5vw, 4.4rem); line-height: 1; letter-spacing: -.05em; }
.page-hero p { max-width: 680px; color: #cbd5e1; margin: 0; }
.breadcrumb { margin-top: 18px; color: #9fb2ca; font-size: .9rem; }
.breadcrumb a { color: var(--gold-400); }

.form-card { max-width: 940px; margin: 0 auto; padding: 34px; background: #fff; border: 1px solid var(--line); border-radius: 24px; box-shadow: var(--shadow); }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 20px; }
.form-group { display: grid; gap: 8px; }
.form-group.full { grid-column: 1 / -1; }
label { font-size: .86rem; font-weight: 850; color: #334155; }
input, select, textarea { width: 100%; border: 1px solid #cbd5e1; border-radius: 12px; padding: 13px 14px; color: var(--ink); background: #fff; outline: none; transition: border .2s, box-shadow .2s; }
input:focus, select:focus, textarea:focus { border-color: var(--blue-600); box-shadow: 0 0 0 4px rgba(31,111,235,.12); }
textarea { min-height: 145px; resize: vertical; }
.help { color: var(--muted); font-size: .8rem; }
.alert { width: min(1180px, calc(100% - 40px)); margin: 18px auto 0; padding: 14px 18px; border-radius: 12px; font-weight: 750; }
.alert-success { background: #e9fbf2; color: #17643f; border: 1px solid #bdebd2; }
.alert-danger { background: #fff0f0; color: #9c2828; border: 1px solid #f4c4c4; }
.alert-warning { background: #fff8df; color: #7b5a00; border: 1px solid #f2dfa1; }
.alert-info { background: #eef5ff; color: #174d8d; border: 1px solid #c8dcfa; }

.content-layout { display: grid; grid-template-columns: minmax(0, 1fr) 330px; gap: 36px; align-items: start; }
.article { background: #fff; border: 1px solid var(--line); border-radius: 22px; overflow: hidden; box-shadow: 0 12px 34px rgba(15,23,42,.07); }
.article-cover { width: 100%; max-height: 570px; object-fit: cover; }
.article-body { padding: 34px; }
.article-body h1 { margin: 0 0 10px; font-size: clamp(2rem, 4vw, 3.5rem); line-height: 1.08; letter-spacing: -.04em; }
.article-subtitle { margin: 0 0 24px; color: var(--muted); font-size: 1.15rem; }
.article-meta { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 25px; color: var(--blue-600); font-weight: 800; font-size: .86rem; }
.article-content { font-size: 1.05rem; }
.article-content p { margin: 0 0 1.2em; }
.sidebar-card { padding: 24px; background: #fff; border: 1px solid var(--line); border-radius: 18px; box-shadow: 0 12px 34px rgba(15,23,42,.06); }
.sidebar-card h3 { margin: 0 0 16px; }
.sidebar-list { display: grid; gap: 15px; }
.sidebar-list a { padding-bottom: 15px; border-bottom: 1px solid var(--line); font-weight: 800; line-height: 1.35; }
.sidebar-list a:last-child { border-bottom: 0; padding-bottom: 0; }

.team-profile { display: grid; grid-template-columns: 310px 1fr; gap: 38px; align-items: start; }
.team-profile-card { padding: 28px; text-align: center; }
.team-profile-card img { width: 170px; height: 170px; object-fit: contain; margin: 0 auto 20px; border-radius: 50%; border: 1px solid var(--line); padding: 14px; }
.roster-table { width: 100%; border-collapse: collapse; }
.roster-table th, .roster-table td { padding: 14px 12px; border-bottom: 1px solid var(--line); text-align: left; }
.roster-table th { color: var(--muted); font-size: .78rem; text-transform: uppercase; letter-spacing: .08em; }
.badge { display: inline-flex; align-items: center; padding: 6px 10px; border-radius: 999px; font-size: .76rem; font-weight: 900; }
.badge-success { color: #17643f; background: #e9fbf2; }
.badge-warning { color: #7b5a00; background: #fff8df; }
.badge-danger { color: #9c2828; background: #fff0f0; }
.badge-info { color: #174d8d; background: #eef5ff; }
.badge-neutral { color: #475569; background: #f1f5f9; }
.empty-state { text-align: center; padding: 50px 24px; border: 1px dashed #cbd5e1; border-radius: 18px; color: var(--muted); }
.pagination { display: flex; gap: 8px; justify-content: center; margin-top: 34px; }
.pagination a, .pagination span { min-width: 42px; height: 42px; display: grid; place-items: center; border-radius: 10px; border: 1px solid var(--line); font-weight: 850; }
.pagination .active { background: var(--navy-900); color: #fff; border-color: var(--navy-900); }

.site-footer { background: var(--navy-950); color: #cbd5e1; }
.footer-grid { display: grid; grid-template-columns: 1.3fr .7fr 1fr 1fr; gap: 45px; padding: 65px 0; }
.footer-logo { width: 220px; margin-bottom: 18px; }
.site-footer h3 { margin: 0 0 18px; color: #fff; }
.site-footer a:not(.btn) { display: block; margin-bottom: 9px; }
.site-footer a:not(.btn):hover { color: var(--gold-400); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.1); padding: 20px 0; text-align: center; font-size: .85rem; }

@media (max-width: 1050px) {
    .nav-toggle { display: block; }
    .main-nav { position: absolute; top: 122px; left: 20px; right: 20px; display: none; align-items: stretch; flex-direction: column; padding: 18px; background: #fff; border-radius: 18px; box-shadow: var(--shadow); }
    .main-nav.open { display: flex; }
    .hero-inner, .about-grid, .cta-box, .content-layout, .team-profile { grid-template-columns: 1fr; }
    .hero-card { max-width: 520px; }
    .stats-grid { grid-template-columns: repeat(2, 1fr); }
    .stat:nth-child(2) { border-right: 0; }
    .stat:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
    .grid-4 { grid-template-columns: repeat(2, 1fr); }
    .footer-grid { grid-template-columns: repeat(2, 1fr); }
    .cta-actions { justify-content: flex-start; }
}

@media (max-width: 720px) {
    .container { width: min(100% - 26px, 1180px); }
    .topbar-inner { justify-content: center; text-align: center; }
    .topbar-inner > span, .topbar-links > a:first-child { display: none; }
    .brand img { width: 185px; }
    .navbar { min-height: 74px; }
    .main-nav { top: 106px; }
    .hero { min-height: auto; }
    .hero-inner { padding: 65px 0 78px; gap: 34px; }
    .hero h1 { font-size: 3rem; }
    .stats-grid, .grid-2, .grid-3, .grid-4, .form-grid, .footer-grid { grid-template-columns: 1fr; }
    .stat { border-right: 0; border-bottom: 1px solid var(--line); }
    .stat:last-child { border-bottom: 0; }
    .section { padding: 70px 0; }
    .section-head { align-items: flex-start; flex-direction: column; }
    .about-photo img { height: 390px; }
    .about-badge { right: 12px; bottom: 12px; }
    .gallery-grid { grid-template-columns: 1fr; grid-auto-rows: 260px; }
    .gallery-item, .gallery-item:nth-child(n) { grid-column: auto; grid-row: auto; }
    .cta-box { padding: 34px 24px; }
    .form-card, .article-body { padding: 24px; }
    .team-profile-card { padding: 20px; }
    .roster-table { min-width: 700px; }
    .table-scroll { overflow-x: auto; }
}
