* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #0f1b2b;
    --secondary-color: #1e3a5f;
    --accent-color: #3b82f6;
    --text-light: #ffffff;
    --text-dark: #1f2937;
    --text-muted: #6b7280;
    --text-primary: #ffffff;
    --text-secondary: #6b7280;
    --bg-primary: #1e293b;
    --border-color: #374151;
    --card-bg: #1e293b;
    --section-bg: #0f172a;
    --gradient-primary: linear-gradient(135deg, #0f1b2b 0%, #1e3a5f 100%);
    --gradient-accent: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
    --shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
    --shadow-hover: 0 20px 40px rgba(0, 0, 0, 0.4);
}

html {
}

    body {
        font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
        line-height: 1.6;
        color: var(--text-light);
        background-color: var(--primary-color);
        overflow-x: hidden;
    }
    
    /* Mobile overflow fix */
    @media (max-width: 768px) {
        html, body {
            overflow-x: hidden;
        }
    }

    .container {
        max-width: 1200px;
        margin: 0 auto;
        padding: 0 20px;
    }
    
    /* Mobile container optimization */
    @media (max-width: 480px) {
        .container {
            padding: 0 15px;
        }
    }

h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    line-height: 1.2;
    margin-bottom: 1rem;
}

    .section-title {
        font-size: 2.5rem;
        text-align: center;
        margin-bottom: 3rem;
        background: var(--gradient-accent);
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
        background-clip: text;
        position: relative;
    }
    
    /* Mobile section title optimization */
    @media (max-width: 768px) {
        .section-title {
            font-size: 2rem;
        }
        
        /* Hero mobile optimization */
        .hero {
            padding-top: 70px;
            min-height: 100vh;
        }
        
        .hero-content {
            padding: 0 15px;
            margin-top: 2rem;
        }
        
        .hero-badge {
            margin-bottom: 1.5rem;
            padding: 8px 16px;
            font-size: 0.9rem;
        }
        
        .hero-highlight {
            margin-bottom: 1.5rem;
            padding: 12px 20px;
            font-size: 1rem;
        }
        
        .hero-location {
            margin-bottom: 2rem;
            font-size: 1rem;
        }
        
        .hero-buttons {
            gap: 15px;
            margin-bottom: 2rem;
        }
        
        .btn {
            padding: 12px 24px;
            font-size: 0.9rem;
            min-width: 200px;
        }
        
        /* Countdown mobile optimization */
        .countdown {
            margin: 1rem 0;
            flex-wrap: nowrap;
            gap: 0.5rem;
        }
        
        .countdown > div {
            flex: 1;
            min-width: auto;
            max-width: none;
            padding: 0.5rem;
        }
        
        .countdown > div > div:first-child {
            font-size: 1.2rem;
        }
        
        .countdown > div > div:last-child {
            font-size: 0.7rem;
        }
    }

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: var(--gradient-accent);
    border-radius: 2px;
}

.btn {
    display: inline-block;
    padding: 15px 30px;
    border: none;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.btn-primary {
    background: var(--gradient-accent);
    color: var(--text-light);
}

.btn-primary:hover {
}

.btn-secondary {
    background: transparent;
    color: var(--text-light);
    border: 2px solid var(--accent-color);
}

.btn-secondary:hover {
    background: var(--accent-color);
}

.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(15, 27, 43, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    border-bottom: 1px solid var(--border-color);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 70px;
    position: relative;
    gap: 3rem;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 15px;
    text-decoration: none;
    color: inherit;
    transition: opacity 0.3s ease;
}

.nav-logo:hover {
    opacity: 0.9;
}

.logo-placeholder {
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.logo-svg {
    width: 50px;
    height: 50px;
    object-fit: contain;
}

.logo-text {
    display: flex;
    flex-direction: column;
    gap: 0;
    flex-shrink: 0;
    justify-content: center;
}

.logo-main {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-light);
    line-height: 1.1;
    white-space: pre-line;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 1.5rem;
    align-items: center;
    margin: 0;
    padding: 0;
}

.nav-item {
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav-link {
    color: var(--text-light);
    text-decoration: none;
    font-weight: 500;
    position: relative;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    transition: color 0.3s ease;
}

.nav-link:hover {
    color: var(--accent-color);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent-color);
}

.nav-link:hover::after {
    width: 100%;
}

.nav-btn {
    padding: 8px 20px;
    font-size: 0.9rem;
    margin: 0;
    border-radius: 6px;
    transition: opacity 0.3s ease;
}

.nav-btn:hover {
    opacity: 0.9;
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    padding: 8px;
    border-radius: 6px;
    transition: opacity 0.3s ease;
    z-index: 1001;
}
    
    /* Mobile navigation styles */
    @media (max-width: 768px) {
        .hamburger {
            display: flex;
        }
        
        .hamburger:hover {
            opacity: 0.8;
        }
        
        .hamburger.active .bar {
            background-color: var(--accent-color);
        }
        
        .nav-logo {
            gap: 10px;
        }
        
        .logo-placeholder {
            width: 50px;
            height: 50px;
        }
        
        .logo-svg {
            width: 40px;
            height: 40px;
        }
        
        /* Pokazuj tekst logo na mobile w dwóch liniach */
        .logo-main {
            font-size: 0.9rem;
            white-space: pre-line;
            line-height: 1.1;
            color: var(--text-light);
        }
        
        .logo-text {
            gap: 0;
            justify-content: center;
        }
        
        .nav-menu {
            position: fixed;
            left: -100%;
            top: 70px;
            flex-direction: column;
            background: var(--primary-color);
            width: 300px;
            max-height: 400px;
            text-align: center;
            box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
            padding: 1rem 0;
            transition: left 0.3s ease;
            z-index: 999;
            overflow-y: auto;
            border-radius: 0 8px 8px 0;
        }
        
        .nav-menu.active {
            left: 0;
        }
        
        .nav-item {
            margin: 0.25rem 0;
            width: 100%;
            text-align: center;
        }
        
        .nav-link {
            padding: 0.75rem 1.5rem;
            display: block;
            width: 100%;
            border-bottom: 1px solid rgba(255, 255, 255, 0.1);
            font-size: 1rem;
            font-weight: 500;
            transition: color 0.3s ease;
        }
        
        .nav-link:hover {
            color: var(--accent-color);
        }
        
        .nav-link:last-child {
            border-bottom: none;
        }
        
        .nav-btn {
            margin: 0.75rem 1.5rem;
            padding: 0.75rem 1.5rem;
            background: var(--gradient-accent);
            border-radius: 6px;
            width: calc(100% - 3rem);
            text-align: center;
            font-weight: 600;
            font-size: 0.9rem;
        }
    }

.bar {
    width: 25px;
    height: 3px;
    background: var(--text-light);
    margin: 3px 0;
    border-radius: 2px;
    transition: background-color 0.3s ease;
}



    .hero {
        height: 100vh;
        position: relative;
        display: flex;
        align-items: center;
        justify-content: center;
        text-align: center;
        overflow: hidden;
    }
    
    /* Mobile hero optimization */
    @media (max-width: 768px) {
        .hero {
            padding-top: 70px;
            min-height: 100vh;
        }
        
        .hero-title {
            font-size: 2.2rem;
        }
        
        .hero-subtitle {
            font-size: 1.2rem;
        }
        
        .hero-buttons {
            flex-direction: column;
            align-items: center;
        }
    }
    
    @media (max-width: 480px) {
        .hero-title {
            font-size: 1.8rem;
        }
        
        .section {
            padding: 60px 0;
        }
    }

.hero-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grid" width="10" height="10" patternUnits="userSpaceOnUse"><path d="M 10 0 L 0 0 0 10" fill="none" stroke="%233b82f6" stroke-width="0.5" opacity="0.1"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>');
    opacity: 0.3;
    z-index: 1;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(15, 27, 43, 0.75);
    z-index: 2;
}

.hero-content {
    position: relative;
    z-index: 3;
    max-width: 800px;
    padding: 0 20px;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: rgba(59, 130, 246, 0.2);
    border: 1px solid var(--accent-color);
    border-radius: 25px;
    padding: 10px 20px;
    margin-bottom: 2rem;
    backdrop-filter: blur(10px);
}

.calendar-add-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    background: var(--accent-color);
    border-radius: 50%;
    color: var(--text-light);
    text-decoration: none;
    transition: all 0.3s ease;
    margin-left: 8px;
}

.calendar-add-btn:hover {
    background: #2563eb;
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.4);
}

.calendar-add-btn i {
    font-size: 12px;
}

.calendar-emoji {
    font-size: 16px;
}

.calendar-text {
    font-size: 14px;
    white-space: nowrap;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    line-height: 1.1;
}

.hero-subtitle {
    font-size: 1.5rem;
    color: var(--accent-color);
    margin-bottom: 2rem;
    font-weight: 500;
}

.hero-highlight {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 15px;
    background: rgba(255, 215, 0, 0.2);
    border: 1px solid #ffd700;
    border-radius: 8px;
    padding: 15px 25px;
    margin-bottom: 2rem;
    font-size: 1.1rem;
    font-weight: 600;
}

.hero-highlight i {
    color: #ffd700;
    font-size: 2rem;
}

.trophy-text {
    text-align: center;
}

.trophy-text span {
    white-space: pre-line;
    line-height: 1.2;
}

.hero-location {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-bottom: 3rem;
    font-size: 1.2rem;
    color: var(--accent-color);
}

.hero-location i {
    color: var(--accent-color);
}

.hero-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

/* Odliczanie do zawodów */
.countdown {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin: 2rem 0;
    flex-wrap: wrap;
}

.countdown > div {
    text-align: center;
    background: rgba(59, 130, 246, 0.2);
    border: 1px solid #3b82f6;
    border-radius: 8px;
    padding: 1rem;
    min-width: 80px;
    backdrop-filter: blur(10px);
}

.countdown > div > div:first-child {
    font-size: 2rem;
    font-weight: 700;
    color: var(--accent-color);
    margin-bottom: 0.5rem;
}

.countdown > div > div:last-child {
    font-size: 0.8rem;
    color: var(--text-light);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.event-started {
    text-align: center;
    font-size: 1.5rem;
    color: var(--accent-color);
    font-weight: 700;
    padding: 1rem;
}

    .countdown {
        display: flex;
        justify-content: center;
        gap: 1rem;
        margin: 2rem 0;
        flex-wrap: wrap;
    }
    
    /* Mobile countdown optimization */
    @media (max-width: 768px) {
        .countdown {
            margin: 1rem 0;
            flex-wrap: nowrap;
            gap: 0.5rem;
        }
        
        .countdown > div {
            flex: 1;
            min-width: auto;
            max-width: none;
            padding: 0.5rem;
        }
        
        .countdown > div > div:first-child {
            font-size: 1.2rem;
        }
        
        .countdown > div > div:last-child {
            font-size: 0.7rem;
        }
    }
    


.scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    color: var(--accent-color);
    font-size: 1.5rem;
}

    .section {
        padding: 100px 0;
        background: var(--section-bg);
    }
    
    /* Mobile section optimization */
    @media (max-width: 480px) {
        .section {
            padding: 60px 0;
        }
    }

.section:nth-child(even) {
    background: var(--primary-color);
}

    .goals-grid {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        gap: 2rem;
        margin-bottom: 4rem;
    }
    
    /* Mobile goals grid optimization */


.goal-card {
    background: var(--card-bg);
    padding: 2rem;
    border-radius: 12px;
    text-align: center;
    border: 1px solid var(--border-color);
}

.goal-card:hover {
    border-color: var(--accent-color);
    box-shadow: var(--shadow-hover);
}

.goal-icon {
    width: 80px;
    height: 80px;
    background: var(--gradient-accent);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    font-size: 2rem;
    color: var(--text-light);
}

.goal-card h3 {
    color: var(--accent-color);
    margin-bottom: 0.5rem;
}

.patronage, .organizers {
    margin-bottom: 4rem;
}

.patronage-content {
    display: flex;
    align-items: center;
    gap: 15px;
    background: var(--card-bg);
    padding: 2rem;
    border-radius: 12px;
    border: 1px solid var(--border-color);
}

.patronage-content i,
.patronage-icon {
    font-size: 2rem;
    color: var(--accent-color);
}

.patronage-icon {
    width: 2rem;
    height: 2rem;
    object-fit: contain;
}

    .organizers-grid {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
        gap: 2rem;
    }
    
    /* Mobile organizers grid optimization */
    @media (max-width: 768px) {
        .organizers-grid {
            grid-template-columns: 1fr;
        }
    }

.organizer-category {
    background: var(--card-bg);
    padding: 2rem;
    border-radius: 12px;
    border: 1px solid var(--border-color);
}

.organizer-category h4 {
    color: var(--accent-color);
    margin-bottom: 1rem;
}

.organizer-category ul {
    list-style: none;
}

.organizer-category li {
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--border-color);
}

.organizer-category li:last-child {
    border-bottom: none;
}

.organizer-image {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    margin-top: 1rem;
}

.organizer-category .org-img {
    max-width: 100%;
    height: auto;
    max-height: 120px;
    object-fit: contain;
    border-radius: 8px;
    background: var(--card-bg);
    padding: 0.75rem;
    border: 1px solid var(--border-color);
}

    .partner-logos {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 1rem;
    }
    
    /* Mobile partner logos optimization */
    @media (max-width: 480px) {
        .partner-logos {
            grid-template-columns: repeat(3, 1fr);
            gap: 0.5rem;
        }
    }

.partner-logo {
    background: var(--primary-color);
    padding: 0.75rem;
    border-radius: 8px;
    text-align: center;
    border: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
    aspect-ratio: 4/3;
}

.partner-img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

    .schedule-content {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 4rem;
        margin-bottom: 4rem;
    }
    
    /* Mobile schedule content optimization */
    @media (max-width: 768px) {
        .schedule-content {
            grid-template-columns: 1fr;
            gap: 2rem;
        }
    }

.schedule-item {
    display: flex;
    gap: 20px;
    margin-bottom: 2rem;
}

.schedule-icon {
    width: 60px;
    height: 60px;
    background: var(--gradient-accent);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--text-light);
    flex-shrink: 0;
}

.timeline h3 {
    margin-bottom: 2rem;
    color: var(--accent-color);
}

.timeline-item {
    display: flex;
    gap: 20px;
    margin-bottom: 1.5rem;
    padding: 1rem;
    background: var(--card-bg);
    border-radius: 8px;
    border-left: 4px solid var(--accent-color);
}

/* Schedule note */
.schedule-note {
    margin-top: 1.5rem;
    padding: 1rem;
    background: rgba(59, 130, 246, 0.1);
    border: 1px solid rgba(59, 130, 246, 0.3);
    border-radius: 8px;
    text-align: center;
    width: 100%;
    max-width: 100%;
    margin-left: 0;
    margin-right: 0;
}

.schedule-note p {
    margin: 0;
    color: var(--text-primary);
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.schedule-note i {
    color: var(--accent-color);
    font-size: 1rem;
}

/* Schedule info items - teraz w zaokrąglonych boxach jak timeline */
.schedule-info {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin-top: 2rem;
}

.schedule-item {
    display: flex;
    gap: 20px;
    padding: 1rem;
    background: var(--card-bg);
    border-radius: 8px;
    border-left: 4px solid var(--accent-color);
    border: 1px solid var(--border-color);
}

.schedule-icon {
    width: 60px;
    height: 60px;
    background: var(--gradient-accent);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--text-light);
    flex-shrink: 0;
}

.schedule-details h3 {
    margin-bottom: 0.5rem;
    color: var(--accent-color);
}

.schedule-details p {
    margin-bottom: 0.25rem;
}

.schedule-details small {
    color: var(--text-muted);
    font-size: 0.85rem;
}

.time {
    font-weight: 700;
    color: var(--accent-color);
    min-width: 80px;
}

.map-container {
    text-align: center;
}

.map-container h3 {
    text-align: center;
    margin-bottom: 1rem;
}

.map-wrapper {
    background: var(--card-bg);
    border-radius: 12px;
    border: 1px solid var(--border-color);
    overflow: hidden;
}

.map-wrapper iframe {
    width: 100%;
    height: 400px;
    border: none;
    display: block;
}

    .map-info {
        padding: 2rem;
        display: grid;
        grid-template-columns: 1fr auto;
        gap: 2rem;
        align-items: start;
    }
    
    /* Mobile map info optimization */
    @media (max-width: 768px) {
        .map-info {
            grid-template-columns: 1fr;
            gap: 1.5rem;
        }
        
        .map-wrapper iframe {
            height: 300px;
        }
    }

.map-details h4 {
    color: var(--accent-color);
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.map-details p {
    margin-bottom: 0.5rem;
}

.gps-coordinates {
    margin-top: 1.5rem;
}

.gps-coordinates strong {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--accent-color);
}

.coordinate-item {
    background: var(--primary-color);
    padding: 0.5rem 1rem;
    border-radius: 6px;
    border: 1px solid var(--border-color);
    margin-bottom: 0.5rem;
    font-family: 'Courier New', monospace;
    font-size: 0.9rem;
}

.map-directions {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.map-directions .btn {
    white-space: nowrap;
    text-align: center;
}

    .competitions-grid {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
        gap: 2rem;
    }
    
    /* Mobile competitions grid optimization */
    @media (max-width: 768px) {
        .competitions-grid {
            grid-template-columns: 1fr;
        }
    }

.competition-card {
    background: var(--card-bg);
    padding: 2rem;
    border-radius: 12px;
    text-align: center;
    border: 1px solid var(--border-color);
    cursor: pointer;
}

.competition-card:hover {
    border-color: var(--accent-color);
    box-shadow: var(--shadow-hover);
}

/* Responsywne karty konkurencji dla urządzeń mobilnych */
@media (min-width: 1440px) {
    .competition-card {
        padding: 2.5rem;
    }
}

@media (min-width: 2560px) {
    .competition-card {
        padding: 3rem;
    }
}

@media (max-width: 1024px) {
    .competition-card {
        padding: 1.75rem;
    }
}

@media (max-width: 900px) {
    .competition-card {
        padding: 1.6rem;
    }
}

@media (max-width: 768px) {
    .competition-card {
        padding: 1.5rem;
    }
}

@media (max-width: 600px) {
    .competition-card {
        padding: 1.25rem;
    }
}

@media (max-width: 480px) {
    .competition-card {
        padding: 1rem;
    }
}

@media (max-width: 414px) {
    .competition-card {
        padding: 0.95rem;
    }
}

@media (max-width: 375px) {
    .competition-card {
        padding: 0.875rem;
    }
}

@media (max-width: 360px) {
    .competition-card {
        padding: 0.8rem;
    }
}

@media (max-width: 320px) {
    .competition-card {
        padding: 0.75rem;
    }
}

@media (max-width: 280px) {
    .competition-card {
        padding: 0.6rem;
    }
}

@media (max-width: 240px) {
    .competition-card {
        padding: 0.5rem;
    }
}

.competition-icon {
    width: 80px;
    height: 80px;
    background: var(--gradient-accent);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    font-size: 2rem;
    color: var(--text-light);
}

/* Responsywne ikony dla dużych ekranów */
@media (min-width: 1440px) {
    .competition-icon {
        width: 90px;
        height: 90px;
        font-size: 2.25rem;
        margin-bottom: 1.75rem;
    }
}

@media (min-width: 2560px) {
    .competition-icon {
        width: 100px;
        height: 100px;
        font-size: 2.5rem;
        margin-bottom: 2rem;
    }
}

/* Responsywne ikony konkurencji dla urządzeń mobilnych */
@media (max-width: 1024px) {
    .competition-icon {
        width: 70px;
        height: 70px;
        font-size: 1.75rem;
        margin-bottom: 1.25rem;
    }
}

@media (max-width: 900px) {
    .competition-icon {
        width: 65px;
        height: 65px;
        font-size: 1.6rem;
        margin-bottom: 1.1rem;
    }
}

@media (max-width: 768px) {
    .competition-icon {
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
        margin-bottom: 1rem;
    }
}

@media (max-width: 600px) {
    .competition-icon {
        width: 55px;
        height: 55px;
        font-size: 1.4rem;
        margin-bottom: 0.9rem;
    }
}

@media (max-width: 480px) {
    .competition-icon {
        width: 50px;
        height: 50px;
        font-size: 1.25rem;
        margin-bottom: 0.75rem;
    }
}

@media (max-width: 414px) {
    .competition-icon {
        width: 48px;
        height: 48px;
        font-size: 1.2rem;
        margin-bottom: 0.7rem;
    }
}

@media (max-width: 375px) {
    .competition-icon {
        width: 45px;
        height: 45px;
        font-size: 1.1rem;
        margin-bottom: 0.6rem;
    }
}

@media (max-width: 360px) {
    .competition-icon {
        width: 42px;
        height: 42px;
        font-size: 1rem;
        margin-bottom: 0.5rem;
    }
}

@media (max-width: 320px) {
    .competition-icon {
        width: 40px;
        height: 40px;
        font-size: 1rem;
        margin-bottom: 0.5rem;
    }
}

@media (max-width: 280px) {
    .competition-icon {
        width: 35px;
        height: 35px;
        font-size: 0.9rem;
        margin-bottom: 0.4rem;
    }
}

@media (max-width: 240px) {
    .competition-icon {
        width: 30px;
        height: 30px;
        font-size: 0.8rem;
        margin-bottom: 0.3rem;
    }
}

@media (max-width: 200px) {
    .competition-icon {
        width: 25px;
        height: 25px;
        font-size: 0.7rem;
        margin-bottom: 0.2rem;
    }
}

/* Style dla ikon SVG w konkurencjach */
.competition-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    max-width: 100%;
    max-height: 100%;
}

.competition-card h3 {
    color: var(--accent-color);
    margin-bottom: 0.5rem;
}

.classifications {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.classification-card, .prizes, .special-prize {
    background: var(--card-bg);
    padding: 2rem;
    border-radius: 12px;
    border: 1px solid var(--border-color);
}

.classification-card h3, .prizes h3, .special-prize h3 {
    color: var(--accent-color);
    margin-bottom: 1.5rem;
}

.classification-card ul {
    list-style: none;
}

.classification-card li {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--border-color);
}

.classification-card li:last-child {
    border-bottom: none;
}

.classification-card i {
    color: var(--accent-color);
}

.prize-categories {
    display: grid;
    gap: 1rem;
}

.prize-category h4 {
    color: var(--text-light);
    margin-bottom: 0.5rem;
}

.diplomas-info {
    margin-top: 1rem;
    padding: 1rem;
    background: rgba(59, 130, 246, 0.1);
    border-radius: 8px;
    border-left: 4px solid var(--accent-color);
}

.special-prize-content {
    display: flex;
    align-items: center;
    gap: 20px;
}

.special-prize-content i {
    font-size: 3rem;
    color: #ffd700;
}

    .regulations-grid {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
        gap: 2rem;
        margin-bottom: 3rem;
    }
    
    /* Mobile regulations grid optimization */
    @media (max-width: 768px) {
        .regulations-grid {
            grid-template-columns: 1fr;
        }
    }

.regulation-card {
    background: var(--card-bg);
    padding: 2rem;
    border-radius: 12px;
    border: 1px solid var(--border-color);
}

.regulation-card:hover {
    border-color: var(--accent-color);
}

.regulation-icon {
    width: 60px;
    height: 60px;
    background: var(--gradient-accent);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
    color: var(--text-light);
}

.regulation-card h3 {
    color: var(--accent-color);
    margin-bottom: 1rem;
}

.regulation-card ul {
    list-style: none;
    margin-top: 1rem;
}

.regulation-card li {
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--border-color);
}

.regulation-card li:last-child {
    border-bottom: none;
}

.download-regulations {
    text-align: center;
}



.footer {
    background: var(--primary-color);
    padding: 3rem 0 1rem;
    border-top: 1px solid var(--border-color);
}

    .footer-content {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        gap: 2rem;
        margin-bottom: 2rem;
    }
    
        /* Mobile footer content optimization */
    @media (max-width: 768px) {
        .footer-content {
            grid-template-columns: 1fr;
            gap: 2rem;
            text-align: center;
        }
        
        .footer-section {
            text-align: center;
        }
        
        .footer-logos {
            justify-items: center;
        }
        
        .footer-bottom {
            text-align: center;
        }
        
        /* Wyśrodkuj organizatorów na mobile */
        .footer-org-image {
            justify-content: center !important;
        }
        
        /* Dodatkowe style dla mobile footer */
        .footer-section h3 {
            text-align: center;
        }
        
        .footer-section p {
            text-align: center;
        }
    }

.footer-section h3 {
    color: var(--accent-color);
    margin-bottom: 1rem;
}

.footer-logos {
    display: grid;
    gap: 0.5rem;
}

.footer-logo {
    padding: 0.5rem;
    background: var(--card-bg);
    border-radius: 4px;
    text-align: center;
    font-size: 0.9rem;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid var(--border-color);
    color: var(--text-muted);
}

.footer-link {
    color: var(--text-light);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-link:hover {
    color: var(--accent-color);
}

.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
}

.modal-content {
    background-color: var(--card-bg);
    margin: 5% auto;
    padding: 2rem;
    border-radius: 12px;
    width: 90%;
    max-width: 600px;
    position: relative;
    border: 1px solid var(--border-color);
}

.close {
    color: var(--text-muted);
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    position: absolute;
    top: 1rem;
    right: 1.5rem;
}

.close:hover {
    color: var(--text-light);
}

@media (max-width: 768px) {
    .nav-logo {
        gap: 10px;
    }

    .logo-placeholder {
        width: 50px;
        height: 50px;
    }

    .logo-svg {
        width: 40px;
        height: 40px;
    }

    .logo-main {
        font-size: 1.1rem;
    }

    .map-info {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .map-wrapper iframe {
        height: 300px;
    }



    .hero-title {
        font-size: 2.2rem;
    }

    .hero-subtitle {
        font-size: 1.2rem;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }

    .section-title {
        font-size: 2rem;
    }

    .schedule-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }








}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }

    .hero-title {
        font-size: 1.8rem;
    }

    .section {
        padding: 60px 0;
    }

    .registration-form {
        padding: 2rem 1.5rem;
    }

    .partner-logos {
        grid-template-columns: repeat(3, 1fr);
        gap: 0.5rem;
    }


}

/* @keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in-up {
    animation: fadeInUp 0.6s ease-out;
} */

/* @media (prefers-reduced-motion: no-preference) {
    html {
        scroll-behavior: smooth;
    }
} */

@media (max-width: 768px) {
    html, body {
        overflow-x: hidden;
    }
}

/* --- FIXES ADDED --- */

/* Ujednolicone szerokości kafelków na mobile (kontakt, płatności, formularz) */
@media (max-width: 768px) {
    .info-grid,
    .registration-form,
    .payment-info,
    .contact-info {
        grid-template-columns: 1fr !important;
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box;
    }
    .info-card,
    .registration-form,
    .payment-info,
    .contact-info {
        width: 100% !important;
        max-width: 100% !important;
    }
}

/* Wyśrodkowanie napisu pod mapką */
.map-container h3 {
    text-align: center;
}


/* --- FINAL FIXES --- */

/* 2. Map heading centering */
.map-details h4 {
    justify-content: center;
}

/* 3. Countdown always in one line */
.countdown {
    display: flex;
    justify-content: space-between;
    flex-wrap: nowrap; /* no wrapping */
    gap: 0.5rem;
}

.countdown > div {
    text-align: center;
    background: rgba(59, 130, 246, 0.2);
    border: 1px solid #3b82f6;
    border-radius: 8px;
    padding: 0.5rem;
    flex: 1;
    min-width: auto;
    max-width: none;
}

@media (max-width: 480px) {
    .countdown > div > div:first-child {
        font-size: 1rem;
    }

    .countdown > div > div:last-child {
        font-size: 0.6rem;
    }
}

/* --- NEW REGISTRATION SECTION STYLES --- */

/* Basic info section */
.basic-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.info-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    background: var(--card-bg);
    padding: 1.5rem;
    border-radius: 12px;
    border: 1px solid var(--border-color);
}

.info-item i {
    font-size: 2rem;
    color: var(--accent-color);
    min-width: 2rem;
}

.info-item h3 {
    margin: 0 0 0.5rem 0;
    color: var(--text-primary);
    font-size: 1.1rem;
}

.info-item p {
    margin: 0;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

/* Form section */
.form-section {
    background: var(--card-bg);
    padding: 2rem;
    border-radius: 12px;
    border: 1px solid var(--border-color);
    margin-bottom: 2rem;
}

.form-section h3 {
    margin-bottom: 1.5rem;
    color: var(--text-primary);
    text-align: center;
}

.form-columns {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-bottom: 2rem;
}

.form-column {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-field {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-bottom: 0;
}

.form-field.full-width {
    grid-column: 1 / -1;
    margin-bottom: 2rem;
}

.form-field label {
    font-weight: 500;
    color: var(--text-primary);
    font-size: 0.9rem;
}

.form-field input,
.form-field select,
.form-field textarea {
    padding: 0.75rem;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    background: var(--bg-primary);
    color: var(--text-primary);
    font-size: 1rem;
}

.form-field textarea {
    resize: vertical;
    min-height: 100px;
    font-family: inherit;
}

.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
    outline: none;
    border-color: var(--accent-color);
    box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.2);
}

.checkbox-field label {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    cursor: pointer;
}

.checkbox-field input[type="checkbox"] {
    width: auto;
    margin-top: 0.25rem;
}

.checkbox-field span {
    font-size: 0.9rem;
    line-height: 1.4;
}

/* Submit button spacing */
.form-section .btn {
    margin-top: 1rem;
    width: 100%;
    max-width: 300px;
    margin-left: auto;
    margin-right: auto;
    display: block;
}

/* Form note */
.form-note {
    margin-top: 1.5rem;
    padding: 1rem;
    background: rgba(59, 130, 246, 0.1);
    border: 1px solid rgba(59, 130, 246, 0.3);
    border-radius: 8px;
    text-align: center;
}

.form-note p {
    margin: 0 0 0.5rem 0;
    color: var(--text-primary);
    font-size: 0.9rem;
}

.form-note p:last-child {
    margin-bottom: 0;
}

.form-note strong {
    color: var(--accent-color);
}

/* Payment and Contact sections in two columns */
.payment-contact-container {
    display: flex;
    gap: 2rem;
    margin-bottom: 2rem;
}

.payment-section,
.contact-section {
    flex: 1;
    background: var(--card-bg);
    padding: 2rem;
    border-radius: 12px;
    border: 1px solid var(--border-color);
}

.payment-section h3,
.contact-section h3 {
    margin: 0 0 1.5rem 0;
    color: var(--text-primary);
    text-align: center;
}

.payment-content p {
    margin: 0.5rem 0;
    color: var(--text-primary);
}

.payment-content .note {
    color: var(--accent-color);
    font-style: italic;
    margin-top: 1rem;
}

.contact-row {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.contact-row i {
    color: var(--accent-color);
    min-width: 1.5rem;
}

/* Registration Form Container */
.registration-form-container {
    margin-bottom: 3rem;
}

.form-wrapper {
    background: var(--card-bg);
    border-radius: 12px;
    border: 1px solid var(--border-color);
    padding: 2rem;
    display: flex;
    align-items: center;
    gap: 2rem;
}

.form-content-left {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.form-content-left i {
    font-size: 3rem;
    color: var(--accent-color);
    flex-shrink: 0;
}

.form-content-left-text h4 {
    color: var(--text-primary);
    margin: 0 0 0.5rem 0;
    font-size: 1.3rem;
}

.form-content-left-text p {
    color: var(--text-secondary);
    margin: 0;
    line-height: 1.5;
    font-size: 1rem;
}

.form-content-right {
    flex-shrink: 0;
}

.form-content-right .btn {
    padding: 15px 30px;
    font-size: 1rem;
    border-radius: 8px;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
    white-space: nowrap;
}

.form-content-right .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(59, 130, 246, 0.4);
}



/* Mobile optimizations */
@media (max-width: 768px) {
    /* Full width buttons on mobile */
    .hero-buttons {
        flex-direction: column;
        width: 100%;
    }
    
    .hero-buttons .btn {
        width: 100%;
        min-width: auto;
    }
    
    /* Reduce logo text size by 30% on mobile */
    .logo-text .logo-main {
        font-size: 1.21rem;
    }
    
    /* Form mobile optimization */
    .form-wrapper {
        flex-direction: column;
        gap: 1.5rem;
        padding: 1.5rem;
        text-align: center;
    }
    
    .form-content-left {
        flex-direction: column;
        gap: 1rem;
    }
    
    .form-content-left i {
        font-size: 2.5rem;
    }
    
    .form-content-left-text h4 {
        font-size: 1.2rem;
    }
    
    .form-content-left-text p {
        font-size: 0.9rem;
    }
    
    .form-content-right .btn {
        width: 100%;
        padding: 12px 20px;
        font-size: 0.9rem;
    }
    

    
    /* Payment and Contact sections mobile layout - stacked vertically */
    .payment-contact-container {
        flex-direction: column;
        gap: 1rem;
    }
    
    /* Contact section mobile layout - icons above text */
    .contact-row {
        flex-direction: column;
        text-align: center;
        gap: 0.5rem;
    }
    
    .contact-row i {
        font-size: 1.5rem;
        margin-bottom: 0.5rem;
    }
    
    /* Form mobile layout - single column */
    .form-columns {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .form-section {
        padding: 1.5rem;
    }
}

/* Footer organization image */
.footer-org-image {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    margin-top: 1rem;
}

.org-img {
    max-width: 100%;
    height: auto;
    max-height: 80px;
    object-fit: contain;
    border-radius: 8px;
    background: var(--card-bg);
    padding: 0.5rem;
    border: 1px solid var(--border-color);
}

/* Main page organizers and partners image */
.organizers-partners-image {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 2rem 0;
}

.org-partners-img {
    max-width: 100%;
    height: auto;
    max-height: 120px;
    object-fit: contain;
    border-radius: 12px;
    background: var(--card-bg);
    padding: 1rem;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow);
}

/* --- Style dla sekcji Organizatorów i Partnerów --- */

/* Układ na dużych ekranach (desktopy) */
.organizers-grid {
    display: grid;
    grid-template-columns: 1fr 2fr; /* Dwie kolumny: 1/3 i 2/3 */
    gap: 30px;
    align-items: stretch; /* Wyrównuje wysokość obu kolumn */
}

.partner-logos {
    display: grid;
    grid-template-columns: repeat(5, 1fr); /* 5 kolumn dla logotypów */
    gap: 15px;
    align-items: center;
}

/* Układ na małych ekranach (mobile) */
@media (max-width: 768px) {
    .organizers-grid {
        grid-template-columns: 1fr; /* Jedna kolumna - elementy ułożą się jeden pod drugim */
    }

    .partner-logos {
        grid-template-columns: repeat(2, 1fr); /* 2 kolumny dla logotypów na mobile */
    }
}

/* Responsywne karty konkurencji dla urządzeń mobilnych */
@media (max-width: 768px) {
    .competition-card {
        padding: 1.5rem;
    }
}

@media (max-width: 480px) {
    .competition-card {
        padding: 1rem;
    }
}

/* Style dla ikon SVG w konkurencjach */
.competition-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    max-width: 100%;
    max-height: 100%;
}

/* Responsywne ikony SVG dla urządzeń mobilnych */
@media (max-width: 768px) {
    .competition-icon img {
        width: 100%;
        height: 100%;
    }
}

@media (max-width: 480px) {
    .competition-icon img {
        width: 100%;
        height: 100%;
    }
}

/* Copy button styles */
.copy-btn {
    background: #007bff;
    border: none;
    border-radius: 4px;
    color: white;
    cursor: pointer;
    font-size: 11px;
    margin-left: 8px;
    padding: 6px 10px;
    transition: all 0.3s ease;
}

.copy-btn:hover {
    background: #0056b3;
    transform: translateY(-1px);
}

.copy-btn:active {
    transform: translateY(0);
}

.copy-btn i {
    font-size: 10px;
    margin-right: 4px;
}

