*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box
}

:root {
    --primary: #2F46A8;
    --primary-dark: #1F318C;
    --primary-light: #4A60C0;
    --primary-50: #EEF0FB;
    --primary-100: #D9DEF6;
    --white: #FFFFFF;
    --light-bg: #F6F8FC;
    --dark-text: #0F172A;
    --secondary-text: #64748B;
    --border: #E2E8F0;
    --card-bg: #FFFFFF;
    --nav-bg: rgba(255, 255, 255, 0.8);
    --section-alt: #F0F4FA;
    --shadow-sm: 0 1px 3px rgba(15, 23, 42, 0.08);
    --shadow-md: 0 4px 16px rgba(15, 23, 42, 0.1);
    --shadow-lg: 0 12px 40px rgba(15, 23, 42, 0.12);
    --shadow-xl: 0 20px 60px rgba(15, 23, 42, 0.15);
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --radius-full: 9999px;
    --font-heading: 'Montserrat', sans-serif;
    --font-body: 'Inter', sans-serif;
    --font-accent: 'Poppins', sans-serif;
    --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

[data-theme="dark"] {
    --white: #0B1120;
    --light-bg: #111827;
    --dark-text: #E2E8F0;
    --secondary-text: #94A3B8;
    --border: #1E293B;
    --card-bg: #131B2E;
    --nav-bg: rgba(11, 17, 32, 0.85);
    --section-alt: #0F172A;
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 12px 40px rgba(0, 0, 0, 0.5);
    --shadow-xl: 0 20px 60px rgba(0, 0, 0, 0.6);
    --primary-50: #1a2550;
    --primary-100: #1e2d5e;
}

html {
    scroll-behavior: smooth;
    font-size: 16px
}

body {
    font-family: var(--font-body);
    background: var(--light-bg);
    color: var(--dark-text);
    overflow-x: hidden;
    line-height: 1.6;
    transition: background var(--transition), color var(--transition)
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.2
}

a {
    text-decoration: none;
    color: inherit;
    transition: color var(--transition)
}

img {
    max-width: 100%;
    display: block
}

button {
    cursor: pointer;
    border: none;
    font-family: var(--font-body);
    transition: all var(--transition)
}

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px
}

/* Loading Screen */
#loader {
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: linear-gradient(135deg, var(--primary-dark), var(--primary));
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transition: opacity 0.6s, visibility 0.6s
}

#loader.hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none
}

#loader .logo-anim {
    animation: logoPulse 1.5s ease-in-out infinite
}

#loader .bar {
    width: 200px;
    height: 3px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 4px;
    margin-top: 30px;
    overflow: hidden
}

#loader .bar-fill {
    height: 100%;
    background: white;
    border-radius: 4px;
    animation: loadBar 1.8s ease-in-out forwards
}

@keyframes logoPulse {

    0%,
    100% {
        transform: scale(1);
        opacity: 1
    }

    50% {
        transform: scale(1.05);
        opacity: 0.8
    }
}

@keyframes loadBar {
    0% {
        width: 0
    }

    100% {
        width: 100%
    }
}

/* Navigation */
#navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: var(--nav-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
    transition: all var(--transition);
    transform: translateY(0)
}

#navbar.visible {
    transform: translateY(0)
}

#navbar.css-only-navbar {
    transform: translateY(0)
}

#navbar.scrolled {
    box-shadow: var(--shadow-md)
}

.nav-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 72px
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 10px
}

.nav-logo svg {
    width: 40px;
    height: 48px
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 4px
}

.nav-link {
    padding: 8px 16px;
    border-radius: var(--radius-full);
    font-size: 14px;
    font-weight: 500;
    color: var(--secondary-text);
    transition: all var(--transition)
}

.nav-link:hover,
.nav-link.active {
    color: var(--primary);
    background: var(--primary-50)
}

.nav-link.active {
    font-weight: 600
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 8px
}

.nav-btn {
    width: 38px;
    height: 38px;
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    color: var(--secondary-text);
    transition: all var(--transition)
}

.nav-btn:hover {
    background: var(--primary-50);
    color: var(--primary)
}

.lang-select {
    background: var(--primary-50);
    border: 1px solid var(--border);
    border-radius: var(--radius-full);
    padding: 6px 12px;
    font-size: 13px;
    font-weight: 500;
    color: var(--dark-text);
    font-family: var(--font-body);
    cursor: pointer;
    outline: none
}

.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    padding: 8px
}

.hamburger span {
    width: 22px;
    height: 2px;
    background: var(--dark-text);
    border-radius: 2px;
    transition: all var(--transition)
}

.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px)
}

.hamburger.active span:nth-child(2) {
    opacity: 0
}

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px)
}

.mobile-menu {
    position: fixed;
    top: 72px;
    left: 0;
    right: 0;
    background: var(--nav-bg);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
    padding: 20px;
    transform: translateY(-120%);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 999;
    display: flex;
    flex-direction: column;
    gap: 4px
}

.mobile-menu.open {
    transform: translateY(0)
}

.mobile-menu .nav-link {
    padding: 12px 16px;
    font-size: 16px;
    border-radius: var(--radius-md)
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 28px;
    border-radius: var(--radius-full);
    font-weight: 600;
    font-size: 14px;
    font-family: var(--font-body);
    transition: all var(--transition)
}

.btn-primary {
    background: var(--primary);
    color: white;
    box-shadow: 0 4px 14px rgba(47, 70, 168, 0.4)
}

.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(47, 70, 168, 0.5)
}

.btn-secondary {
    background: var(--card-bg);
    color: var(--dark-text);
    border: 1px solid var(--border);
    box-shadow: var(--shadow-sm)
}

.btn-secondary:hover {
    border-color: var(--primary);
    color: var(--primary);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md)
}

.btn-white {
    background: white;
    color: var(--primary);
    box-shadow: var(--shadow-md)
}

.btn-white:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg)
}

.btn-lg {
    padding: 16px 36px;
    font-size: 16px
}

.btn-sm {
    padding: 8px 20px;
    font-size: 13px
}

/* Hero */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background-image: linear-gradient(90deg, rgba(15, 23, 42, .82), rgba(31, 49, 140, .34)), url("Fotot/Galeria/gallery-18.png");
    background-position: center;
    background-size: cover
}

.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.04'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E")
}

.hero-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.15;
    background: white
}

.hero-orb-1 {
    width: 600px;
    height: 600px;
    top: -200px;
    right: -200px
}

.hero-orb-2 {
    width: 400px;
    height: 400px;
    bottom: -100px;
    left: -100px
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: white;
    padding: 24px;
    max-width: 800px
}

.hero-logo {
    width: 140px;
    height: 170px;
    margin: 0 auto 30px;
    filter: drop-shadow(0 8px 32px rgba(0, 0, 0, 0.3));
    animation: floatLogo 4s ease-in-out infinite
}

@keyframes floatLogo {

    0%,
    100% {
        transform: translateY(0)
    }

    50% {
        transform: translateY(-10px)
    }
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 8px 20px;
    border-radius: var(--radius-full);
    font-size: 13px;
    font-weight: 500;
    margin-bottom: 24px;
    letter-spacing: 0.5px
}

.hero h1 {
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    font-weight: 900;
    margin-bottom: 16px;
    letter-spacing: -1px;
    text-shadow: 0 2px 20px rgba(0, 0, 0, 0.2)
}

.hero-motto {
    font-size: clamp(1rem, 2.5vw, 1.35rem);
    opacity: 0.9;
    margin-bottom: 40px;
    font-weight: 300;
    line-height: 1.7;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto
}

.hero-buttons {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap
}

.hero-scroll {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    color: white;
    opacity: 0.6;
    animation: bounce 2s infinite;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 1px
}

@keyframes bounce {

    0%,
    100% {
        transform: translateX(-50%) translateY(0)
    }

    50% {
        transform: translateX(-50%) translateY(10px)
    }
}

/* Page Hero (sub-pages) */
.page-hero {
    position: relative;
    padding: 140px 0 80px;
    background-image: linear-gradient(90deg, rgba(31, 49, 140, .94), rgba(47, 70, 168, .68)), url("Fotot/Galeria/gallery-03.jpeg");
    background-position: center;
    background-size: cover;
    overflow: hidden;
    text-align: center;
    color: white
}

.page-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.04'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E")
}

.page-hero .hero-orb {
    opacity: 0.1
}

.page-hero h1 {
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 900;
    margin-bottom: 12px;
    position: relative;
    z-index: 1
}

.page-hero p {
    font-size: 1.1rem;
    opacity: 0.85;
    max-width: 600px;
    margin: 0 auto;
    position: relative;
    z-index: 1
}

/* Sections */
.section {
    padding: 100px 0
}

.section-alt {
    background: var(--section-alt)
}

.section-header {
    text-align: center;
    margin-bottom: 60px
}

.section-label {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--primary);
    margin-bottom: 12px;
    font-family: var(--font-accent)
}

.section-label::before,
.section-label::after {
    content: '';
    width: 20px;
    height: 1.5px;
    background: var(--primary);
    border-radius: 2px
}

.section-title {
    font-size: clamp(1.75rem, 4vw, 2.75rem);
    font-weight: 800;
    margin-bottom: 16px;
    letter-spacing: -0.5px
}

.section-desc {
    font-size: 1.05rem;
    color: var(--secondary-text);
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.7
}

/* About */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center
}

.about-image {
    position: relative;
    border-radius: var(--radius-xl);
    overflow: hidden;
    aspect-ratio: 4/3;
    box-shadow: var(--shadow-xl)
}

.about-image img {
    width: 100%;
    height: 100%;
    object-fit: cover
}

.about-image-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(31, 49, 140, 0.6), transparent)
}

.about-year-badge {
    position: absolute;
    bottom: 20px;
    left: 20px;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: var(--radius-md);
    padding: 12px 20px;
    color: white;
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 24px
}

.about-text h3 {
    font-size: 1.5rem;
    margin-bottom: 16px
}

.about-text p {
    color: var(--secondary-text);
    margin-bottom: 16px;
    line-height: 1.8
}

.about-features {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-top: 24px
}

.about-feature {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    background: var(--primary-50);
    border-radius: var(--radius-md);
    font-size: 14px;
    font-weight: 500
}

.about-feature i {
    color: var(--primary);
    width: 20px;
    height: 20px
}

.history-section {
    background: linear-gradient(180deg, rgba(14, 36, 105, 0.03), rgba(14, 36, 105, 0.08))
}

.history-intro {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
    margin: 0 auto 36px;
    max-width: 980px
}

.history-kicker {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    min-height: 86px;
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 18px;
    text-align: center;
    line-height: 1.5;
    color: var(--dark-text);
    box-shadow: var(--shadow-sm)
}

.history-kicker i {
    color: var(--primary);
    font-size: 1.25rem
}

.history-kicker span {
    display: flex;
    flex-direction: column;
    font-size: 0.88rem;
    color: var(--secondary-text)
}

.history-kicker strong {
    color: var(--dark-text);
    font-family: var(--font-heading);
    font-size: 1.45rem;
    line-height: 1.1
}

.history-kicker.highlight {
    background: linear-gradient(135deg, var(--primary-50), rgba(255, 186, 0, 0.18));
    border-color: var(--primary-100)
}

.history-article {
    max-width: 980px;
    margin: 0 auto;
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-xl);
    padding: 32px 28px
}

.history-summary {
    color: var(--dark-text)
}

.history-summary h3,
.history-summary h4,
.history-summary h5 {
    font-family: var(--font-heading);
    color: var(--dark-text);
    line-height: 1.2;
    margin-top: 26px;
    margin-bottom: 14px
}

.history-summary h3 {
    font-size: clamp(1.8rem, 2.8vw, 2.4rem);
    letter-spacing: -0.02em
}

.history-summary h4 {
    font-size: clamp(1.3rem, 2vw, 1.7rem);
    margin-top: 34px;
    padding-top: 24px;
    border-top: 1px solid var(--border)
}

.history-summary h5 {
    font-size: 1.15rem
}

.history-summary p,
.history-summary li {
    font-size: 1.02rem;
    line-height: 1.85;
    color: var(--secondary-text);
    margin-bottom: 14px
}

.history-summary strong {
    color: var(--dark-text)
}

.history-summary .history-players {
    background: rgba(14, 36, 105, 0.04);
    border-left: 4px solid var(--primary);
    border-radius: 0 var(--radius-md) var(--radius-md) 0;
    padding: 14px 18px;
    margin: 20px 0
}

.history-list {
    margin: 16px 0 20px 18px;
    padding: 0;
    list-style: disc
}

.history-signoff {
    margin-top: 30px;
    padding-top: 18px;
    border-top: 1px solid var(--border)
}

.history-signoff h5 {
    margin-top: 0;
    font-size: 1.1rem;
    letter-spacing: 2px
}

.history-signoff p {
    margin-bottom: 8px
}

/* Stats */
.stats-bar {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0;
    background: var(--card-bg);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-lg);
    overflow: hidden;
    border: 1px solid var(--border)
}

.stat-item {
    padding: 40px 24px;
    text-align: center;
    border-right: 1px solid var(--border);
    transition: background var(--transition)
}

.stat-item:last-child {
    border-right: none
}

.stat-item:hover {
    background: var(--primary-50)
}

.stat-number {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    font-weight: 900;
    color: var(--primary);
    line-height: 1
}

.stat-label {
    font-size: 13px;
    color: var(--secondary-text);
    margin-top: 8px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px
}

/* Cards */
.card {
    background: var(--card-bg);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
    overflow: hidden;
    transition: all var(--transition);
    box-shadow: var(--shadow-sm)
}

.card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-100)
}

.card-image {
    position: relative;
    overflow: hidden;
    aspect-ratio: 16/10
}

.card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s
}

.card:hover .card-image img {
    transform: scale(1.05)
}

.card-body {
    padding: 24px
}

.card-tag {
    display: inline-block;
    padding: 4px 12px;
    border-radius: var(--radius-full);
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    background: var(--primary-50);
    color: var(--primary);
    margin-bottom: 12px
}

.card-title {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 8px;
    line-height: 1.4
}

.card-text {
    font-size: 14px;
    color: var(--secondary-text);
    line-height: 1.6;
    margin-bottom: 16px
}

.card-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 12px;
    color: var(--secondary-text)
}

.card-link {
    color: var(--primary);
    font-weight: 600;
    font-size: 13px;
    display: inline-flex;
    align-items: center;
    gap: 4px
}

.card-link:hover {
    gap: 8px
}

/* News Grid */
.news-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px
}

.news-featured {
    grid-column: 1/-1;
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 0
}

.news-featured .card-image {
    aspect-ratio: auto;
    height: 100%
}

.news-featured .card-body {
    padding: 32px;
    display: flex;
    flex-direction: column;
    justify-content: center
}

.news-featured .card-title {
    font-size: 1.5rem
}

/* Matches */
.matches-list {
    display: flex;
    flex-direction: column;
    gap: 12px
}

.match-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 28px;
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    transition: all var(--transition);
    box-shadow: var(--shadow-sm)
}

.match-card:hover {
    border-color: var(--primary);
    box-shadow: var(--shadow-md)
}

.match-teams {
    display: flex;
    align-items: center;
    gap: 20px;
    flex: 1
}

.match-team {
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 600;
    font-size: 15px
}

.match-team span {
    min-width: 100px
}

.match-vs {
    font-family: var(--font-heading);
    font-weight: 800;
    color: var(--primary);
    font-size: 14px;
    background: var(--primary-50);
    padding: 6px 14px;
    border-radius: var(--radius-full)
}

.match-info {
    text-align: right;
    font-size: 13px;
    color: var(--secondary-text)
}

.match-date {
    font-weight: 600;
    color: var(--dark-text)
}

.match-venue {
    margin-top: 2px
}

/* League Table */
.table-wrapper {
    overflow-x: auto;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
    box-shadow: var(--shadow-sm)
}

.league-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px
}

.league-table thead {
    background: var(--primary);
    color: white
}

.league-table th {
    padding: 14px 16px;
    text-align: left;
    font-weight: 600;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px
}

.league-table td {
    padding: 12px 16px;
    border-bottom: 1px solid var(--border)
}

.league-table tbody tr {
    background: var(--card-bg);
    transition: background var(--transition)
}

.league-table tbody tr:hover {
    background: var(--primary-50)
}

.league-table tbody tr.highlight {
    background: var(--primary-50);
    font-weight: 600
}

.league-table .pos {
    font-weight: 700;
    width: 40px;
    text-align: center
}

.league-table .pts {
    font-weight: 700;
    color: var(--primary)
}

/* Gallery */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px
}

.gallery-item {
    border-radius: var(--radius-lg);
    overflow: hidden;
    aspect-ratio: 1;
    cursor: pointer;
    position: relative
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s
}

.gallery-item:hover img {
    transform: scale(1.1)
}

.gallery-item::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.4), transparent);
    opacity: 0;
    transition: opacity var(--transition)
}

.gallery-item:hover::after {
    opacity: 1
}

.gallery-item:nth-child(1) {
    grid-column: span 2;
    grid-row: span 2;
    aspect-ratio: auto
}

/* Sponsors */
.sponsors-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 20px
}

.sponsor-card {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 30px 20px;
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    transition: all var(--transition);
    min-height: 120px;
    box-shadow: var(--shadow-sm)
}

.sponsor-card:hover {
    border-color: var(--primary);
    box-shadow: var(--shadow-md);
    transform: translateY(-2px)
}

.sponsor-card img,
.sponsor-card .sponsor-placeholder {
    max-width: 140px;
    max-height: 60px;
    filter: grayscale(0.5);
    opacity: 0.7;
    transition: all var(--transition)
}

.sponsor-card:hover img,
.sponsor-card:hover .sponsor-placeholder {
    filter: grayscale(0);
    opacity: 1
}

.sponsor-placeholder {
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 18px;
    color: var(--primary);
    text-align: center
}

.sponsor-tier-title {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--primary);
    font-weight: 700;
    margin-bottom: 8px;
    font-family: var(--font-accent)
}

.sponsor-main .sponsor-card {
    border-color: var(--primary);
    background: linear-gradient(135deg, var(--primary-50), var(--card-bg));
    border-width: 2px
}

/* Sponsor CTA */
.sponsor-cta {
    background: linear-gradient(135deg, var(--primary-dark), var(--primary));
    border-radius: var(--radius-xl);
    padding: 80px 60px;
    text-align: center;
    color: white;
    position: relative;
    overflow: hidden
}

.sponsor-cta::before {
    content: '';
    position: absolute;
    inset: 0;
    background: url("data:image/svg+xml,%3Csvg width='40' height='40' viewBox='0 0 40 40' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='%23ffffff' fill-opacity='0.05'%3E%3Cpath d='M20 20h20v20H20z'/%3E%3C/g%3E%3C/svg%3E")
}

.sponsor-cta * {
    position: relative;
    z-index: 1
}

.sponsor-cta h2 {
    font-size: clamp(1.5rem, 4vw, 2.5rem);
    margin-bottom: 16px
}

.sponsor-cta p {
    font-size: 1.1rem;
    opacity: 0.9;
    max-width: 700px;
    margin: 0 auto 32px;
    line-height: 1.8
}

/* Newsletter */
.newsletter {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    padding: 48px;
    display: flex;
    align-items: center;
    gap: 40px;
    box-shadow: var(--shadow-md)
}

.newsletter-text {
    flex: 1
}

.newsletter-text h3 {
    font-size: 1.4rem;
    margin-bottom: 8px
}

.newsletter-text p {
    color: var(--secondary-text);
    font-size: 14px
}

.newsletter-form {
    display: flex;
    gap: 12px;
    flex: 1
}

.newsletter-form input {
    flex: 1;
    padding: 14px 20px;
    border: 1px solid var(--border);
    border-radius: var(--radius-full);
    font-size: 14px;
    font-family: var(--font-body);
    background: var(--light-bg);
    color: var(--dark-text);
    outline: none;
    transition: border-color var(--transition)
}

.newsletter-form input:focus {
    border-color: var(--primary)
}

/* Team */
.team-tabs {
    display: flex;
    gap: 4px;
    margin-bottom: 40px;
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: var(--radius-full);
    padding: 4px;
    width: fit-content
}

.team-radio {
    position: absolute;
    opacity: 0;
    pointer-events: none
}

.team-radio:checked + .team-tab {
    background: var(--primary);
    color: white;
    box-shadow: 0 4px 12px rgba(47, 70, 168, 0.3)
}

.team-tab {
    display: block
}

.team-content {
    display: none
}

#team-players {
    display: block
}

.team-tabs:has(#team-tab-players:checked) ~ #team-players,
.team-tabs:has(#team-tab-coaches:checked) ~ #team-coaches,
.team-tabs:has(#team-tab-medical:checked) ~ #team-medical,
.team-tabs:has(#team-tab-management:checked) ~ #team-management {
    display: block
}

.team-tab {
    padding: 10px 24px;
    border-radius: var(--radius-full);
    font-size: 14px;
    font-weight: 500;
    color: var(--secondary-text);
    background: transparent;
    transition: all var(--transition)
}

.team-tab.active {
    background: var(--primary);
    color: white;
    box-shadow: 0 4px 12px rgba(47, 70, 168, 0.3)
}

.team-tab:hover:not(.active) {
    background: var(--primary-50);
    color: var(--primary)
}

.players-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.player-card {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: all var(--transition);
    box-shadow: var(--shadow-sm)
}

.player-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary)
}

.player-image {
    position: relative;
    overflow: hidden;
    background: var(--primary-50);
}

.player-image img {
    display: block;
    width: 100%;
    height: auto;
    object-fit: contain;
}

.player-number {
    position: absolute;
    top: 12px;
    left: 12px;
    background: var(--primary);
    color: white;
    font-family: var(--font-heading);
    font-weight: 900;
    font-size: 20px;
    width: 40px;
    height: 40px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(47, 70, 168, 0.4)
}

.player-position-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(8px);
    color: var(--primary);
    font-size: 11px;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: var(--radius-full);
    text-transform: uppercase;
    letter-spacing: 0.5px
}

.player-info {
    padding: 20px
}

.player-name {
    font-family: var(--font-heading);
    font-size: 1.05rem;
    font-weight: 700;
    margin-bottom: 4px
}

.player-nationality {
    font-size: 13px;
    color: var(--secondary-text);
    margin-bottom: 16px
}

.player-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px
}

.player-stat {
    text-align: center;
    padding: 8px;
    background: var(--primary-50);
    border-radius: var(--radius-sm)
}

.player-stat-value {
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 18px;
    color: var(--primary)
}

.player-stat-label {
    font-size: 10px;
    color: var(--secondary-text);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-top: 2px
}

.player-details {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    margin-top: 12px;
    font-size: 13px;
    color: var(--secondary-text)
}

.player-details span {
    font-weight: 600;
    color: var(--dark-text)
}

.staff-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
}

.staff-card {
    display: flex;
    flex-direction: column;
    padding: 0;
    overflow: hidden;
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    transition: all var(--transition);
    box-shadow: var(--shadow-sm);
}

.staff-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
    border-color: var(--primary);
}

.staff-avatar {
    width: 100%;
    height: 350px;
    border-radius: 0;
    overflow: hidden;
    flex-shrink: 0;
    background: var(--primary-50);
}

.staff-avatar img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.staff-card > div:last-child {
    padding: 20px 22px 24px;
}

.staff-name {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 18px;
    margin-bottom: 5px;
}

.staff-role {
    font-size: 14px;
    color: var(--primary);
    font-weight: 500;
}

.player-search {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 30px;
    max-width: 400px;
    position: relative
}

.player-search input {
    width: 100%;
    padding: 12px 20px 12px 44px;
    border: 1px solid var(--border);
    border-radius: var(--radius-full);
    font-size: 14px;
    font-family: var(--font-body);
    background: var(--card-bg);
    color: var(--dark-text);
    outline: none;
    transition: border-color var(--transition)
}

.player-search input:focus {
    border-color: var(--primary)
}

/* News Filters */
.news-filters {
    display: flex;
    gap: 8px;
    margin-bottom: 30px;
    flex-wrap: wrap
}

.news-filter {
    padding: 8px 20px;
    border-radius: var(--radius-full);
    font-size: 13px;
    font-weight: 500;
    color: var(--secondary-text);
    background: var(--card-bg);
    border: 1px solid var(--border);
    transition: all var(--transition)
}

.news-filter.active {
    background: var(--primary);
    color: white;
    border-color: var(--primary)
}

.news-filter:hover:not(.active) {
    border-color: var(--primary);
    color: var(--primary)
}

/* Contact */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 16px
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 6px
}

.form-group label {
    font-size: 13px;
    font-weight: 600;
    color: var(--dark-text)
}

.form-group input,
.form-group textarea,
.form-group select {
    padding: 14px 18px;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    font-size: 14px;
    font-family: var(--font-body);
    background: var(--card-bg);
    color: var(--dark-text);
    outline: none;
    transition: border-color var(--transition);
    resize: vertical
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    border-color: var(--primary)
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px
}

.contact-info-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-bottom: 32px
}

.contact-info-item {
    display: flex;
    align-items: flex-start;
    gap: 16px
}

.contact-info-icon {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-md);
    background: var(--primary-50);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    flex-shrink: 0
}

.contact-info-label {
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--secondary-text);
    margin-bottom: 4px
}

.contact-info-value {
    font-weight: 500;
    font-size: 15px
}

.contact-socials {
    display: flex;
    gap: 12px;
    margin-top: 24px
}

.contact-social {
    width: 44px;
    height: 44px;
    border-radius: var(--radius-md);
    background: var(--primary-50);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    transition: all var(--transition)
}

.contact-social:hover {
    background: var(--primary);
    color: white;
    transform: translateY(-2px)
}

.map-wrapper {
    border-radius: var(--radius-lg);
    overflow: hidden;
    height: 250px;
    border: 1px solid var(--border);
    margin-top: 24px
}

.map-wrapper iframe {
    width: 100%;
    height: 100%;
    border: 0
}

/* Footer */
.footer {
    background: var(--primary-dark);
    color: white;
    padding: 72px 0 0;
    position: relative;
    overflow: hidden
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary), var(--primary-light), var(--primary))
}

.footer::after {
    content: '';
    position: absolute;
    right: -80px;
    bottom: -120px;
    width: 360px;
    height: 360px;
    border: 1px solid rgba(255, 255, 255, .08);
    border-radius: 50%;
    box-shadow: 0 0 0 24px rgba(255, 255, 255, .025), 0 0 0 48px rgba(255, 255, 255, .02);
    pointer-events: none
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
    gap: 48px;
    padding-bottom: 48px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.14)
}

.footer-bottom {
    position: relative;
    z-index: 1;
    padding: 20px 0;
    background: var(--primary-dark);
    border-top: 1px solid rgba(255, 255, 255, .12);
    font-size: 12px;
    color: rgba(255, 255, 255, .52)
}

.footer-bottom strong {
    color: rgba(255, 255, 255, .82);
    font-family: var(--font-heading)
}

.footer-about p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 14px;
    line-height: 1.8;
    margin-top: 16px
}

.footer h4 {
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 20px;
    color: rgba(255, 255, 255, 0.5);
    font-family: var(--font-accent)
}

.footer-links {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 10px
}

.footer-links a {
    color: rgba(255, 255, 255, 0.7);
    font-size: 14px;
    transition: all var(--transition)
}

.footer-links a:hover {
    color: white;
    padding-left: 4px
}

.footer-socials {
    display: flex;
    gap: 10px;
    margin-top: 16px
}

.footer-social {
    width: 40px;
    height: 40px;
    border-radius: var(--radius-md);
    background: rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    transition: all var(--transition)
}

.footer-social:hover {
    background: var(--primary);
    transform: translateY(-2px)
}

.footer-bottom a {
    color: rgba(255, 255, 255, 0.7)
}

.footer-bottom a:hover {
    color: white
}

/* Back to Top */
#backToTop {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 48px;
    height: 48px;
    border-radius: var(--radius-full);
    background: var(--primary);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 16px rgba(47, 70, 168, 0.4);
    z-index: 900;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all var(--transition)
}

#backToTop.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0)
}

#backToTop:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(47, 70, 168, 0.5)
}

/* Cookie Banner */
#cookieBanner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 950;
    background: var(--card-bg);
    border-top: 1px solid var(--border);
    padding: 20px;
    box-shadow: 0 -4px 24px rgba(0, 0, 0, 0.1);
    transform: translateY(120%);
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1)
}

#cookieBanner.visible {
    transform: translateY(0)
}

.cookie-inner {
    max-width: 1280px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    flex-wrap: wrap
}

.cookie-inner p {
    font-size: 14px;
    color: var(--secondary-text);
    flex: 1;
    min-width: 250px
}

.cookie-buttons {
    display: flex;
    gap: 10px
}

/* Search Modal */
#searchModal {
    position: fixed;
    inset: 0;
    z-index: 2000;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(8px);
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding-top: 120px;
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition)
}

#searchModal.open {
    opacity: 1;
    visibility: visible
}

.search-box {
    background: var(--card-bg);
    border-radius: var(--radius-xl);
    padding: 8px;
    width: 90%;
    max-width: 640px;
    box-shadow: var(--shadow-xl);
    transform: translateY(-20px);
    transition: transform var(--transition)
}

#searchModal.open .search-box {
    transform: translateY(0)
}

.search-input-wrapper {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 20px
}

.search-input-wrapper i {
    color: var(--secondary-text);
    width: 24px;
    height: 24px;
    flex-shrink: 0
}

.search-input-wrapper input {
    flex: 1;
    border: none;
    outline: none;
    font-size: 16px;
    font-family: var(--font-body);
    background: transparent;
    color: var(--dark-text)
}

.search-results {
    max-height: 400px;
    overflow-y: auto;
    border-top: 1px solid var(--border);
    padding: 8px
}

.search-result-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: background var(--transition)
}

.search-result-item:hover {
    background: var(--primary-50)
}

.search-result-item img {
    width: 40px;
    height: 40px;
    border-radius: var(--radius-sm);
    object-fit: cover
}

.search-result-info {
    flex: 1
}

.search-result-title {
    font-weight: 600;
    font-size: 14px
}

.search-result-sub {
    font-size: 12px;
    color: var(--secondary-text)
}

.search-empty {
    padding: 24px;
    text-align: center;
    color: var(--secondary-text);
    font-size: 14px
}

/* Lightbox */
#lightbox {
    position: fixed;
    inset: 0;
    z-index: 3000;
    background: rgba(0, 0, 0, 0.95);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition);
    cursor: pointer
}

#lightbox.open {
    opacity: 1;
    visibility: visible
}

#lightbox img {
    max-width: 90%;
    max-height: 90%;
    border-radius: var(--radius-md);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    transform: scale(0.9);
    transition: transform 0.4s
}

#lightbox.open img {
    transform: scale(1)
}

#lightbox .lightbox-close {
    position: absolute;
    top: 24px;
    right: 24px;
    color: white;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-full);
    background: rgba(255, 255, 255, 0.1);
    transition: background var(--transition)
}

#lightbox .lightbox-close:hover {
    background: rgba(255, 255, 255, 0.2)
}

/* Scroll Animations */
.reveal {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.7s cubic-bezier(0.4, 0, 0.2, 1), transform 0.7s cubic-bezier(0.4, 0, 0.2, 1)
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0)
}

.reveal-left {
    opacity: 1;
    transform: translateX(0);
    transition: opacity 0.7s, transform 0.7s
}

.reveal-left.visible {
    opacity: 1;
    transform: translateX(0)
}

.reveal-right {
    opacity: 1;
    transform: translateX(0);
    transition: opacity 0.7s, transform 0.7s
}

.reveal-right.visible {
    opacity: 1;
    transform: translateX(0)
}

.stagger-1 {
    transition-delay: 0.1s
}

.stagger-2 {
    transition-delay: 0.2s
}

.stagger-3 {
    transition-delay: 0.3s
}

.stagger-4 {
    transition-delay: 0.4s
}

/* Toast */
.toast {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%) translateY(100px);
    background: var(--primary);
    color: white;
    padding: 14px 28px;
    border-radius: var(--radius-full);
    font-size: 14px;
    font-weight: 500;
    z-index: 5000;
    box-shadow: 0 8px 32px rgba(47, 70, 168, 0.4);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    gap: 8px
}

.toast.show {
    transform: translateX(-50%) translateY(0)
}

/* Responsive */
@media(max-width:1024px) {
    .about-grid {
        grid-template-columns: 1fr;
        gap: 40px
    }

    .news-grid {
        grid-template-columns: repeat(2, 1fr)
    }

    .news-featured {
        grid-template-columns: 1fr
    }

    .news-featured .card-image {
        aspect-ratio: 16/10
    }

    .contact-grid {
        grid-template-columns: 1fr
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 32px
    }

    .gallery-grid {
        grid-template-columns: repeat(3, 1fr)
    }

    .stats-bar {
        grid-template-columns: repeat(2, 1fr)
    }

    .stat-item:nth-child(2) {
        border-right: none
    }
}

@media(max-width:768px) {
    .nav-links {
        display: flex;
        gap: 0;
        max-width: calc(100vw - 72px);
        overflow-x: auto;
        scrollbar-width: none
    }

    .nav-links::-webkit-scrollbar {
        display: none
    }

    .nav-link {
        padding: 8px 9px;
        white-space: nowrap;
        font-size: 12px
    }

    .hamburger {
        display: flex
    }

    .section {
        padding: 70px 0
    }

    .hero-buttons {
        flex-direction: column;
        align-items: center
    }

    .news-grid {
        grid-template-columns: 1fr
    }

    .players-grid {
        grid-template-columns: repeat(auto-fill, minmax(240px, 1fr))
    }

    .newsletter {
        flex-direction: column;
        padding: 32px
    }

    .newsletter-form {
        flex-direction: column;
        width: 100%
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 32px
    }

    .footer-bottom {
        flex-direction: column;
        gap: 12px;
        text-align: center
    }

    .gallery-grid {
        grid-template-columns: repeat(2, 1fr)
    }

    .gallery-item:nth-child(1) {
        grid-column: span 2
    }

    .match-teams {
        flex-direction: column;
        gap: 8px
    }

    .match-info {
        text-align: center
    }

    .form-row {
        grid-template-columns: 1fr
    }

    .about-features {
        grid-template-columns: 1fr
    }

    .history-intro {
        grid-template-columns: 1fr;
        gap: 12px;
        margin-bottom: 24px
    }

    .history-article {
        padding: 24px 20px
    }

    .cookie-inner {
        flex-direction: column;
        text-align: center
    }

    .team-tabs {
        overflow-x: auto;
        width: 100%
    }

    .sponsor-cta {
        padding: 48px 24px
    }

    .page-hero {
        padding: 120px 0 60px
    }

    .kits-grid,
    .application-layout {
        grid-template-columns: 1fr
    }

    .application-layout {
        gap: 36px
    }

    .kits-note {
        align-items: flex-start;
        flex-direction: column
    }
}

@media(max-width:480px) {
    .stats-bar {
        grid-template-columns: 1fr
    }

    .stat-item {
        border-right: none;
        border-bottom: 1px solid var(--border)
    }

    .stat-item:last-child {
        border-bottom: none
    }

    .players-grid {
        grid-template-columns: 1fr
    }

    .gallery-grid {
        grid-template-columns: 1fr
    }

    .gallery-item:nth-child(1) {
        grid-column: span 1
    }
}

@media print {

    #navbar,
    #backToTop,
    #cookieBanner,
    .hero-scroll {
        display: none !important
    }

    .hero {
        min-height: auto;
        padding: 40px 0
    }

    .section {
        padding: 30px 0
    }
}

.brand-name,
.footer-brand span {
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 18px;
    color: var(--dark-text)
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 12px
}

.kits-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px
}

.kit-card {
    overflow: hidden;
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm)
}

.kit-image {
    position: relative;
    aspect-ratio: 4 / 5;
    overflow: hidden;
    background: var(--primary-50)
}

.kit-image img {
    width: 100%;
    height: 100%;
    object-fit: cover
}

.kit-badge {
    position: absolute;
    top: 16px;
    left: 16px;
    padding: 6px 10px;
    border-radius: var(--radius-full);
    background: var(--primary);
    color: white;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 1px
}

.kit-body {
    padding: 24px
}

.kit-category {
    color: var(--primary);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 1px;
    text-transform: uppercase
}

.kit-body h3 {
    margin: 8px 0;
    font-size: 1.25rem
}

.kit-body p {
    min-height: 52px;
    color: var(--secondary-text);
    font-size: 14px;
    margin-bottom: 18px
}

.kits-note {
    display: flex;
    gap: 12px;
    align-items: center;
    margin-top: 28px;
    padding: 18px 20px;
    border-left: 3px solid var(--primary);
    background: var(--primary-50);
    color: var(--secondary-text)
}

.kits-note strong {
    color: var(--dark-text)
}

.application-layout {
    display: grid;
    grid-template-columns: minmax(260px, .8fr) minmax(420px, 1.2fr);
    gap: 64px;
    align-items: start
}

.application-intro > p {
    margin: 20px 0 32px;
    color: var(--secondary-text)
}

.application-points {
    display: grid;
    gap: 16px
}

.application-points div {
    display: flex;
    gap: 14px;
    align-items: flex-start;
    padding: 16px 0;
    border-top: 1px solid var(--border)
}

.application-points strong {
    color: var(--primary);
    font-family: var(--font-heading)
}

.application-points span {
    color: var(--secondary-text);
    font-size: 14px
}

.application-form {
    padding: 32px;
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md)
}

.application-form h3 {
    font-size: 1.4rem;
    margin-bottom: 6px
}

.form-note {
    color: var(--secondary-text);
    font-size: 13px;
    margin-bottom: 24px
}

.application-step {
    position: absolute;
    opacity: 0;
    pointer-events: none
}

.application-progress {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 28px;
    color: var(--secondary-text);
    font-family: var(--font-heading);
    font-size: 12px;
    font-weight: 800
}

.application-progress span {
    display: grid;
    place-items: center;
    width: 28px;
    height: 28px;
    border: 1px solid var(--border);
    border-radius: 50%
}

.application-progress i {
    flex: 1;
    height: 1px;
    background: var(--border)
}

.application-panel {
    display: none;
    min-width: 0;
    padding: 0;
    border: 0
}

.panel-identity {
    display: block
}

.application-panel legend {
    margin-bottom: 6px;
    color: var(--dark-text);
    font-family: var(--font-heading);
    font-size: 1.35rem;
    font-weight: 800
}

.application-form:has(#step-identity:checked) .panel-identity,
.application-form:has(#step-contact:checked) .panel-contact,
.application-form:has(#step-role:checked) .panel-role,
.application-form:has(#step-details:checked) .panel-details {
    display: block;
    animation: applicationSlide 0.35s ease both
}

.application-form:has(#step-identity:checked) .application-progress span:nth-of-type(1),
.application-form:has(#step-contact:checked) .application-progress span:nth-of-type(-n+2),
.application-form:has(#step-role:checked) .application-progress span:nth-of-type(-n+3),
.application-form:has(#step-details:checked) .application-progress span {
    background: var(--primary);
    border-color: var(--primary);
    color: white
}

.application-actions {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    margin-top: 24px
}

.application-next,
.application-back {
    display: inline-flex;
    align-items: center;
    justify-content: center
}

.application-back {
    background: var(--primary-50);
    color: var(--primary)
}

.role-options {
    display: grid;
    gap: 12px;
    margin: 24px 0
}

.role-options input {
    position: absolute;
    opacity: 0
}

.role-options label {
    display: grid;
    gap: 4px;
    padding: 18px;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    cursor: pointer
}

.role-options label span {
    color: var(--secondary-text);
    font-size: 13px
}

.role-options input:checked + label {
    border-color: var(--primary);
    background: var(--primary-50);
    box-shadow: 0 0 0 2px var(--primary)
}

.coach-fields {
    display: none
}

.application-form:has(#role-coach:checked) .player-fields {
    display: none
}

.application-form:has(#role-coach:checked) .coach-fields {
    display: block
}

@keyframes applicationSlide {
    from {
        opacity: 0;
        transform: translateX(18px)
    }

    to {
        opacity: 1;
        transform: translateX(0)
    }
}

.photo-gallery {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-auto-rows: 260px;
    gap: 18px
}

.photo-gallery-item {
    position: relative;
    min-width: 0;
    margin: 0;
    overflow: hidden;
    border-radius: var(--radius-lg);
    background: var(--primary-50)
}

.photo-gallery-featured {
    grid-column: span 2;
    grid-row: span 2
}

.photo-gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition)
}

.photo-gallery-item:hover img {
    transform: scale(1.04)
}

@media(max-width:768px) {
    .photo-gallery {
        grid-template-columns: repeat(2, 1fr);
        grid-auto-rows: 220px
    }

    .photo-gallery-featured {
        grid-column: span 2;
        grid-row: span 1
    }

}


@media(max-width:480px) {
    .photo-gallery {
        grid-template-columns: 1fr;
        grid-auto-rows: 260px
    }

    .photo-gallery-featured {
        grid-column: span 1
    }

    .footer-bottom .container {
        align-items: flex-start;
        flex-direction: column
    }
}

.footer-bottom .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px
}