:root {
    --bg-dark: #0E0E10;
    --bg-dark2: #121317;
    --accent-yellow: #F5C04E;
    --accent-red: #C73A2A;
    --light-bone: #F7F3EA;
    --text-light: #EAECEF;
    --text-gray: #C9CDD2;
    --accent-green: #8A9A7B;
}
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
html {
    scroll-behavior: smooth;
}
body {
    background-color: var(--bg-dark);
    color: var(--text-gray);
    font-family: 'Manrope', sans-serif;
    line-height: 1.6;
    overflow-x: hidden;
    min-height: 100vh;
    position: relative;
}
body::before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 10% 20%, rgba(245, 192, 78, 0.015) 0%, transparent 20%),
        radial-gradient(circle at 90% 80%, rgba(199, 58, 42, 0.01) 0%, transparent 20%);
    pointer-events: none;
    z-index: -1;
}
h1, h2, h3, h4 {
    font-family: 'Fraunces', serif;
    color: var(--text-light);
    font-weight: 600;
    line-height: 1.1;
}
h1 {
    font-size: clamp(2.5rem, 8vw, 4.2rem);
    letter-spacing: -0.03em;
}
h2 {
    font-size: clamp(2rem, 6vw, 3.2rem);
    margin-bottom: 1.8rem;
    position: relative;
    display: inline-block;
}
h2::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, var(--accent-yellow), transparent);
}
.container {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2.1rem;
}
section {
    padding: 4rem 0;
    position: relative;
}
.section-title {
    text-align: center;
    margin-bottom: 3.5rem;
}
.section-title h2::after {
    left: 50%;
    transform: translateX(-50%);
}
.btn {
    display: inline-block;
    padding: 0.95rem 2.15rem;
    background: linear-gradient(145deg, var(--accent-yellow), #e0b040);
    color: #000;
    font-family: 'Sora', sans-serif;
    font-weight: 600;
    border-radius: 12px;
    text-decoration: none;
    transition: all 220ms cubic-bezier(0.18, 0.64, 0.34, 1);
    border: none;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    box-shadow: 
        0 4px 14px rgba(245, 192, 78, 0.25),
        0 2px 6px rgba(0, 0, 0, 0.15),
        inset 0 -2px 5px rgba(0, 0, 0, 0.1);
    letter-spacing: -0.02em;
    font-size: 1rem;
}
.btn:hover {
    transform: translateY(-2px);
    box-shadow: 
        0 6px 18px rgba(245, 192, 78, 0.3),
        0 3px 8px rgba(0, 0, 0, 0.18),
        inset 0 -2px 5px rgba(0, 0, 0, 0.15);
}
.btn-secondary {
    background: transparent;
    border: 2px solid var(--accent-yellow);
    color: var(--accent-yellow);
}
.btn-secondary:hover {
    background: rgba(245, 192, 78, 0.1);
}

/* --- Header & Navigation --- */
header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(14, 14, 16, 0.85);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    padding: 1rem 0;
}
.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.logo {
    font-family: 'Fraunces', serif;
    font-size: 1.8rem;
    color: var(--text-light);
    text-decoration: none;
    position: relative;
}
.nav-menu {
    display: flex;
    align-items: center;
    gap: 2.5rem; /* Odstęp między linkami w menu */
}
.nav-menu a {
    color: var(--text-gray) !important;
    text-decoration: none !important;
    transition: color 200ms ease;
    position: relative;
    font-weight: 500;
}
.nav-menu a:not(.btn):hover {
    color: var(--accent-yellow) !important;
}
a {
    color: var(--accent-yellow);
    text-decoration: none;
    font-weight: 600; /* Make links bolder */
    transition: all 200ms ease;
}
a:hover {
    color: #ffffff;
    text-decoration: underline; /* Underline on hover for clarity */
}
.nav-btn {
    font-size: 0.9rem;
    padding: 0.7rem 1.5rem;
}

/* --- Hamburger Menu --- */
.hamburger-menu {
    display: none;
    flex-direction: column;
    justify-content: space-around;
    width: 2rem;
    height: 2rem;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 1001;
}
.hamburger-menu span {
    width: 2rem;
    height: 0.25rem;
    background: var(--text-light);
    border-radius: 10px;
    transition: all 0.3s linear;
    position: relative;
    transform-origin: 1px;
}
.hamburger-menu.is-active span:nth-child(1) {
    transform: rotate(45deg);
}
.hamburger-menu.is-active span:nth-child(2) {
    opacity: 0;
    transform: translateX(20px);
}
.hamburger-menu.is-active span:nth-child(3) {
    transform: rotate(-45deg);
}

.mobile-nav {
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    background: var(--bg-dark);
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    z-index: 999;
    transform: translateX(100%);
    transition: transform 0.3s ease-in-out;
}
.mobile-nav.is-active {
    display: flex;
    transform: translateX(0);
}
.mobile-nav a {
    color: var(--text-light);
    text-decoration: none;
    font-size: 1.5rem;
    font-family: 'Sora', sans-serif;
}

/* --- Hero Section --- */
.hero {
    min-height: 90vh;
    display: flex;
    align-items: center;
    text-align: center;
    padding-top: 4rem;
    padding-bottom: 4rem;
}
.hero-content {
    max-width: 800px;
    margin: 0 auto;
}
.hero-date {
    font-weight: 600;
    font-size: 1.3rem !important;
    color: var(--text-light);
    margin-bottom: 1.5rem;
}
.timer-prefix {
    font-size: 1.1rem;
    color: var(--text-gray);
    margin-bottom: 0.5rem;
}
.timer {
    display: inline-block;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    padding: 1rem 2rem;
    font-family: 'Sora', sans-serif;
    font-weight: 600;
    color: var(--accent-yellow);
    font-size: 2.2rem;
    border: 1px solid rgba(245, 192, 78, 0.2);
    margin: 0.5rem auto 0 auto;
    box-shadow: 0 4px 12px rgba(245, 192, 78, 0.1);
}

/* --- Benefits (Atrakcje) --- */
.benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}
.benefit-card {
    background: var(--bg-dark2);
    border-radius: 20px;
    padding: 2.2rem;
    transition: all 300ms ease;
    border-left: 4px solid var(--accent-yellow);
}
.benefit-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}
.benefit-icon {
    font-size: 2.8rem;
    margin-bottom: 1.5rem;
    color: var(--accent-yellow);
}
.benefit-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--text-light);
}

/* --- Tournaments --- */
.tournaments {
    background: var(--bg-dark2);
}
.tournament-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}
@media (max-width: 992px) {
    .tournament-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}
@media (max-width: 600px) {
    .tournament-grid {
        grid-template-columns: 1fr;
    }
}
.tournament-card {
    background: var(--bg-dark);
    border-radius: 18px;
    padding: 2rem;
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: all 300ms ease;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}
.tournament-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0,0,0,.1);
}
.tournament-name {
    font-size: 1.7rem;
    color: var(--text-light);
    margin-bottom: 1rem;
}

/* --- Testimonials (Ambasadorzy) --- */
.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}
.testimonial-card {
    background: var(--bg-dark2);
    border-radius: 20px;
    padding: 2.2rem;
}
.testimonial-author {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}
.author-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--accent-yellow);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #000;
    font-weight: bold;
    font-family: 'Sora', sans-serif;
}

/* --- Problem/Solution (Lokalizacja) --- */
.problem-solution {
    text-align: center;
}
.problem-solution .problem-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 3rem;
    align-items: center;
    text-align: left; /* Reset text-align for grid items */
}


/* --- Partners --- */
.partners .btn-container {
    text-align: center;
    margin-top: 2.5rem; /* Increased margin-top */
}


/* --- FAQ --- */
.faq {
    background: var(--bg-dark2);
}
.faq-list {
    max-width: 800px;
    margin: 0 auto;
}
.faq-item {
    margin-bottom: 1rem;
    border-radius: 16px;
    overflow: hidden;
    background: var(--bg-dark);
    border: 1px solid rgba(255, 255, 255, 0.05);
}
.faq-question {
    padding: 1.5rem 2rem;
    font-size: 1.2rem;
    color: var(--text-light);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background-color 0.3s ease;
}
.faq-question:hover {
    background-color: rgba(245, 192, 78, 0.05);
}
.faq-question::after {
    content: '+';
    font-size: 1.5rem;
    color: var(--accent-yellow);
    transition: transform 0.3s ease;
}
.faq-answer {
    max-height: 0;
    overflow: hidden;
    padding: 0 2rem;
    transition: max-height 0.4s ease, padding 0.4s ease;
    color: var(--text-gray);
    line-height: 1.7;
}
.faq-item.active .faq-question {
    background-color: rgba(245, 192, 78, 0.05);
}
.faq-item.active .faq-question::after {
    transform: rotate(45deg);
}
.faq-item.active .faq-answer {
    max-height: 300px;
    padding: 0 2rem 1.5rem 2rem;
}

/* --- Tournament Subpage Styles --- */
.details-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}
.detail-card {
    background: var(--bg-dark2);
    padding: 2rem;
    border-radius: 16px;
}
.detail-card h3 {
    color: var(--accent-yellow);
    margin-bottom: 1rem;
}
.detail-card ul {
    list-style: none;
    padding-left: 0;
}
.detail-card li {
    margin-bottom: 0.5rem;
}
.prize-table {
    width: 100%;
    margin-top: 1rem;
    border-collapse: collapse;
    text-align: left;
}
.prize-table td, .prize-table th {
    padding: 0.75rem;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}
.prize-table th {
    color: var(--accent-yellow);
    font-family: 'Sora', sans-serif;
    font-weight: 600;
}


/* --- Footer --- */
footer {
    background: var(--bg-dark2);
    padding: 3.5rem 0 2rem;
    margin-top: 4rem;
}
.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2.5rem;
}
.footer-col h4 {
    color: var(--text-light);
    font-size: 1.4rem;
    margin-bottom: 1.5rem;
}
.footer-links {
    list-style: none;
}
.footer-links li {
    margin-bottom: 0.8rem;
}
.footer-links a {
    color: var(--text-gray);
    text-decoration: none;
    transition: all 200ms ease;
}
.footer-links a:hover {
    color: var(--accent-yellow);
}
.copyright {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    color: var(--text-gray);
    font-size: 0.95rem;
}

/* --- Utility & Animations --- */
.animate-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}
.animate-in.visible {
    opacity: 1;
    transform: translateY(0);
}
.skip-link {
    position: absolute;
    top: -40px;
    left: 0;
    background: var(--accent-yellow);
    color: #000;
    padding: 8px;
    z-index: 10000;
    transition: top 0.3s;
}
.skip-link:focus {
    top: 0;
}

/* --- Responsive Adjustments --- */
@media (max-width: 992px) {
    .nav-menu, .nav-btn {
        display: none;
    }
    .hamburger-menu {
        display: flex;
    }
}

@media (max-width: 768px) {
    .container {
        padding: 0 1.5rem;
    }
    h1 { font-size: 2.8rem; }
    h2 { font-size: 2.2rem; }
    section { padding: 3rem 0; }
    .timer {
        font-size: 1.8rem;
        padding: 0.8rem 1.5rem;
    }
}

/* --- Scrolling Partners --- */
.partners-scroller {
    padding: 2rem 0;
    background: var(--bg-dark2);
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    scroll-margin-top: 100px; /* Offset dla sticky header */
}

.scroller-container {
    max-width: 100%;
    overflow: hidden;
    -webkit-mask: linear-gradient(90deg, transparent, white 20%, white 80%, transparent);
    mask: linear-gradient(90deg, transparent, white 20%, white 80%, transparent);
}

.scroller-inner {
    display: flex;
    align-items: center;
    white-space: nowrap;
    animation: scroll 40s linear infinite;
}

@keyframes scroll {
    from { transform: translateX(0); }
    to { transform: translateX(-50%); }
}

.scroller-inner .sponsor-logo {
    height: 44px;
    margin: 0 2.25rem;
    opacity: 0.92;
    transition: opacity 200ms ease, transform 200ms ease;
    display: inline-block;
    object-fit: contain;
    background: transparent;
    padding: 0;
    border-radius: 0;
}

.scroller-inner .sponsor-logo:hover {
    opacity: 1;
    transform: translateY(-1px);
}

.scroller-inner .sponsor-logo--bonabanco,
.scroller-inner .sponsor-logo--diament {
    height: calc(52px * 1.15);
    margin: 0 2.5rem;
    padding: calc(6px * 1.15) calc(18px * 1.15);
    background: rgba(255, 255, 255, 0.85);
    border-radius: 12px;
    box-shadow: 0 8px 18px rgba(14, 14, 16, 0.25);
}

.scroller-inner .sponsor-logo[alt="Miasto Wrocław"],
.scroller-inner .sponsor-logo[alt="DZSzach"] {
    background: rgba(255, 255, 255, 0.9);
    padding: 6px 12px;
    border-radius: 10px;
}

.scroller-inner .sponsor-logo[alt="Bizzit"] {
    padding: 6px 16px;
    border: 2px solid rgba(255, 255, 255, 0.88);
    border-radius: 12px;
    background: #ffffff;
}

.scroller-label {
    font-family: 'Sora', sans-serif;
    font-weight: 600;
    color: var(--accent-yellow);
    margin: 0 1.5rem 0 3rem;
    font-size: 0.9rem;
    text-transform: uppercase;
}
.lang-switcher {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-gray);
}
.lang-switcher a {
    text-decoration: none;
    color: var(--text-gray);
    transition: color 200ms ease;
}
.lang-switcher a:hover {
    color: var(--accent-yellow);
}

/* --- Stats Grid (post-event) --- */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 1.5rem;
    text-align: center;
    max-width: 900px;
    margin: 0 auto;
}
.stat-item {
    background: var(--bg-dark2);
    border-radius: 16px;
    padding: 1.8rem 1rem;
    border: 1px solid rgba(255, 255, 255, 0.05);
}
.stat-number {
    font-family: 'Fraunces', serif;
    font-size: 3rem;
    font-weight: 600;
    color: var(--accent-yellow);
    line-height: 1;
    margin-bottom: 0.5rem;
}
.stat-label {
    font-family: 'Sora', sans-serif;
    font-size: 0.9rem;
    color: var(--text-gray);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* --- Results Podium --- */
.tournament-meta {
    font-size: 0.95rem;
    color: var(--text-gray);
    margin-bottom: 0.3rem;
}
.tournament-flags {
    font-size: 0.85rem;
    color: var(--text-gray);
    margin: 0.8rem 0;
    line-height: 1.8;
}
.results-podium {
    margin: 1.2rem 0 0.8rem;
}
.podium-place {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.5rem 0;
    font-size: 1.05rem;
    color: var(--text-light);
    font-weight: 500;
}
.medal {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    font-family: 'Sora', sans-serif;
    font-weight: 700;
    font-size: 0.85rem;
    flex-shrink: 0;
}
.medal.gold {
    background: linear-gradient(145deg, #F5C04E, #e0a020);
    color: #000;
}
.medal.silver {
    background: linear-gradient(145deg, #C0C0C0, #9a9a9a);
    color: #000;
}
.medal.bronze {
    background: linear-gradient(145deg, #CD7F32, #a0602a);
    color: #fff;
}
.results-more {
    padding: 0.5rem 0;
    font-size: 0.9rem;
    color: var(--text-gray);
    line-height: 1.7;
}
.results-special {
    margin-top: 0.8rem;
    padding-top: 0.8rem;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    font-size: 0.9rem;
}
.results-special p {
    margin-bottom: 0.3rem;
}
.tournament-card--featured {
    border: 1px solid rgba(245, 192, 78, 0.3);
    box-shadow: 0 4px 20px rgba(245, 192, 78, 0.08);
}

/* --- Norms Grid --- */
.norms-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.5rem;
    max-width: 1000px;
    margin: 0 auto;
}
.norm-card {
    background: var(--bg-dark2);
    border-radius: 18px;
    padding: 2rem;
    text-align: center;
    border: 1px solid rgba(245, 192, 78, 0.15);
    transition: all 300ms ease;
}
.norm-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(245, 192, 78, 0.1);
}
.norm-title {
    font-family: 'Fraunces', serif;
    font-size: 2.5rem;
    font-weight: 600;
    color: var(--accent-yellow);
    margin-bottom: 0.5rem;
}
.norm-label {
    font-size: 0.85rem;
    color: var(--text-gray);
    margin-bottom: 1rem;
}
.norm-player {
    font-family: 'Sora', sans-serif;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-light);
}

/* --- Krasnal Results --- */
.krasnal-results {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1rem;
    margin-top: 1rem;
}
.krasnal-group h4 {
    font-size: 0.95rem;
    color: var(--accent-yellow);
    margin-bottom: 0.5rem;
    font-family: 'Sora', sans-serif;
}
.krasnal-group h4 span {
    color: var(--text-gray);
    font-weight: 400;
    font-size: 0.8rem;
}
.krasnal-group ol {
    list-style: none;
    padding: 0;
    counter-reset: krasnal;
}
.krasnal-group ol li {
    counter-increment: krasnal;
    font-size: 0.85rem;
    padding: 0.15rem 0;
    color: var(--text-light);
}
.krasnal-group ol li::before {
    content: counter(krasnal) ". ";
    color: var(--text-gray);
    font-weight: 600;
}

/* --- Gallery Placeholder --- */
.gallery-placeholder {
    text-align: center;
    padding: 3rem 2rem;
    border: 2px dashed rgba(245, 192, 78, 0.2);
    border-radius: 18px;
    max-width: 600px;
    margin: 0 auto;
    color: var(--text-gray);
    font-size: 1.1rem;
}
