/* =========================================
   1. ZMIENNE I RESET
   ========================================= */
:root {
    --bg-dark: #050505;
    --bg-soft: #121212;
    --accent-orange: #ff6b00;
    --accent-yellow: #ffd000;
    --text-white: #ffffff;
    --text-gray: #a0a0a0;
    --card-white: #ffffff;
    --text-dark: #1a1a1a;
}

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

html, body {
    overflow-x: hidden;
    width: 100%;
    margin: 0;
    padding: 0;
    font-family: 'Inter', sans-serif; 
    background-color: var(--bg-dark); 
    color: var(--text-white); 
    line-height: 1.6; 
}

.container { 
    padding: 80px 5%; 
    max-width: 1400px; 
    margin: 0 auto; 
    position: relative; 
}

.highlight { color: var(--accent-yellow); }

/* =========================================
   2. NAWIGACJA
   ========================================= */
nav {
    display: flex; 
    justify-content: space-between; 
    padding: 1rem 5%; 
    align-items: center;
    position: fixed; 
    width: 100%; 
    z-index: 1000; 
    background: rgba(5, 5, 5, 0.95); 
    backdrop-filter: blur(15px);
    border-bottom: 1px solid rgba(255, 107, 0, 0.15);
}

.logo { 
    font-weight: 900; 
    font-size: 1.4rem; 
    letter-spacing: -1px; 
    text-decoration: none; 
    color: white; 
    z-index: 1001;
}

.logo span { color: var(--accent-orange); }

.nav-links { 
    display: flex; 
    list-style: none; 
    align-items: center; 
}

.nav-links li { margin-left: 2rem; }

.nav-links a { 
    text-decoration: none; 
    color: var(--text-white); 
    font-size: 0.85rem; 
    font-weight: 700; 
    text-transform: uppercase; 
    transition: 0.3s; 
    letter-spacing: 1px;
}

.nav-links a:hover { color: var(--accent-yellow); }

.hamburger {
    display: none;
    cursor: pointer;
    flex-direction: column;
    gap: 5px;
    z-index: 1002;
}

.hamburger span {
    display: block;
    width: 25px;
    height: 3px;
    background-color: var(--accent-orange);
    transition: 0.3s;
}

/* =========================================
   3. HERO SECTION
   ========================================= */
.hero {
    min-height: 100vh; 
    display: flex; 
    align-items: center; 
    padding: 100px 8% 50px 8%; 
    position: relative;
    background: #ffffff; 
    overflow: hidden;
}

.hero::after {
    content: "";
    position: absolute;
    right: 0;
    top: 0;
    width: 10px;
    height: 100%;
    background: var(--accent-orange);
}

.hero-container {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    align-items: center;
    width: 100%;
    gap: 40px;
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: left;
}

.hero h1 { 
    font-size: clamp(2.5rem, 6vw, 5.5rem); 
    font-weight: 900; 
    text-transform: uppercase; 
    line-height: 1.1; 
    margin-bottom: 1.5rem; 
    color: #111;
}

.name-highlight { 
    display: block; 
    color: var(--accent-orange); 
}

.hero p { 
    font-size: 1.2rem; 
    max-width: 500px; 
    color: #555; 
    margin-bottom: 2.5rem; 
    border-left: 5px solid #111; 
    padding-left: 25px;
}

.hero-logo-side {
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

.hero-logo-side img {
    width: 100%;
    max-width: 500px;
    height: auto;
    filter: drop-shadow(0 10px 30px rgba(0,0,0,0.1));
    opacity: 0.9;
}

.btn-main {
    display: inline-block;
    padding: 15px 35px;
    background-color: #ff6b00 !important; /* Wymuszenie koloru */
    background: #ff6b00 !important;
    color: #ffffff !important;
    text-decoration: none;
    font-weight: 800;
    text-transform: uppercase;
    border-radius: 50px;
    transition: 0.3s;
    border: none;
    cursor: pointer;
    /* Kluczowe dla iOS i Chrome Mobile: */
    -webkit-appearance: none; 
    -moz-appearance: none;
    appearance: none;
    outline: none;
    -webkit-tap-highlight-color: transparent;
	color-scheme: light; /* Mówi przeglądarce: nie zmieniaj mi kolorów na ciemne */
    -webkit-tap-highlight-color: rgba(0,0,0,0); /* Usuwa szary prostokąt przy kliknięciu */
    isolation: isolate; /* Zapobiega mieszaniu kolorów tła */
}

/* Stan po kliknięciu obsługiwany przez JS */
.btn-main.btn-clicked {
    background-color: #000000 !important;
    background: #000000 !important;
    color: #ffffff !important;
}

/* Hover tylko dla komputerów, żeby nie "wisiał" na telefonach */
@media (hover: hover) {
    .btn-main:hover {
        background-color: #e65a00 !important;
        transform: translateY(-3px);
    }
}

@media (hover: hover) {
    .btn-main:hover {
        background-color: #e65a00 !important;
        transform: translateY(-3px);
    }
}

.btn-main.btn-clicked {
    background-color: #000000 !important;
    background: #000000 !important;
    transform: scale(0.95);
}
/* =========================================
   4. SEKCJA O MNIE
   ========================================= */
.about-section { 
    background-color: #f9f9f9; 
    color: var(--text-dark); 
    padding: 100px 5%;
}

.about-grid { 
    display: grid; 
    grid-template-columns: 1fr 1fr; 
    gap: 60px; 
    align-items: center; 
}

.section-title {
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 900;
    text-transform: uppercase;
    margin-bottom: 30px;
    color: var(--text-dark);
}

.team-display { 
    display: flex; 
    align-items: center; 
    gap: 20px; 
    justify-content: flex-start;
}

.team-panel h3 {
    margin: 0;
    font-size: 1.2rem;
    color: var(--text-dark) !important;
}

.spec-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr); 
    gap: 15px;
    margin-top: 20px;
}


.spec-item { 
    background: var(--accent-orange); 
    padding: 20px 10px; 
    border-radius: 12px; 
    text-align: center; 
    color: white; 
    font-weight: 800;
    text-transform: uppercase;
    font-size: 0.8rem;
    box-shadow: 0 4px 15px rgba(255, 107, 0, 0.2); 
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 80px;
}

.main-team-logo { 
    height: auto; 
    width: 100%;
    max-width: 220px; 
    object-fit: contain;
    margin-bottom: 10px;
}

.about-image {
    width: 100%;
    height: 600px;
    background-size: cover;
    background-position: center top;
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.15);
}

/* =========================================
   5. KALENDARZ
   ========================================= */
.calendar-table { 
    width: 100%; 
    background: var(--bg-soft); 
    border-radius: 10px; 
    overflow: hidden; 
    margin-top: 30px;
    border: 1px solid #222;
}

.calendar-header { 
    display: grid; 
    grid-template-columns: 1fr 2fr 1.5fr 1fr; 
    padding: 20px; 
    background: #1a1a1a; 
    font-weight: 800;
    text-transform: uppercase;
    font-size: 0.85rem;
    color: var(--accent-orange);
    border-bottom: 2px solid #222;
}

.calendar-row {
    position: relative; 
    border-bottom: 1px solid #222;
}

.calendar-row:hover {
    background: rgba(255, 255, 255, 0.02);
}

.calendar-row .row-main-info { 
    display: grid; 
    grid-template-columns: 1fr 2fr 1.5fr 1fr;
    padding: 20px; 
    align-items: center;
    color: white;
    cursor: pointer; 
    z-index: 5;
    position: relative;
}

.row-main-info .status {
    color: var(--accent-yellow);
    font-weight: 700;
    text-align: right;
}

.results-dropdown {
    display: none; 
    background: #0f0f0f;
    padding: 25px;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    border-top: 1px solid #222;
    justify-items: center;
    text-align: center;
}

.calendar-row.active .results-dropdown {
    display: grid !important; 
    animation: fadeIn 0.4s ease;
}

.results-dropdown a {
    display: flex;
    align-items: center;
    justify-content: center;
    background: #252525;
    color: var(--accent-yellow) !important;
    text-decoration: none;
    padding: 12px 20px;
    border-radius: 6px;
    font-size: 0.85rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: 0.3s;
    border: 1px solid rgba(255, 208, 0, 0.2);
    width: 100%;
    min-height: 50px;
}

.results-dropdown a:hover {
    background: var(--accent-orange);
    color: white !important;
    transform: translateY(-2px);
}


/* =========================================
   6. PARTNERZY (Układ 4 u góry, 3 na dole)
   ========================================= */
.partners-grid {
    display: flex;
    flex-wrap: wrap; 
    justify-content: center;
    gap: 30px; 
    max-width: 1200px; 
    margin: 0 auto;
    padding: 40px 0;
}

.partner-card {
    flex: 0 1 calc(25% - 30px); 
    min-width: 220px; 
    height: 140px; 
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
    background: #ffffff; 
    border-radius: 12px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.05); 
    transition: transform 0.3s ease;
}

.partner-card:hover {
    transform: translateY(-5px);
}

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


@media (max-width: 768px) {
    .partners-grid {
        gap: 15px;
    }
    .partner-card {
        flex: 0 1 calc(50% - 15px); 
        min-width: 140px;
        height: 100px;
    }
}
/* =========================================
   7. POZOSTAŁE (Aktualności, Formularz)
   ========================================= */
.news-header { cursor: pointer; display: flex; justify-content: space-between; align-items: center; padding: 20px; background: #1a1a1a; }
.news-content { max-height: 0; overflow: hidden; transition: 0.5s ease-out; padding: 0 20px; opacity: 0; }
.news-item.active .news-content { max-height: 2000px; padding: 20px; opacity: 1; }
.news-img { max-width: 100%; height: auto; max-height: 400px; object-fit: cover; border-radius: 8px; margin-top: 15px; }

.contact-form .form-group { margin-bottom: 15px; }
.contact-form input, .contact-form textarea {
    width: 100%; padding: 15px; background: #151515; border: 1px solid #333; color: white; border-radius: 5px;
}

/* =========================================
   7. AKTUALNOŚCI - ODSTĘPY I STRZAŁKA
   ========================================= */

.news-item {
    margin-bottom: 20px; 
    background: #1a1a1a;
    border-radius: 8px;
    overflow: hidden; 
    border: 1px solid rgba(255, 255, 255, 0.05); 
}

.news-header { 
    cursor: pointer; 
    display: flex; 
    justify-content: space-between; 
    align-items: center; 
    padding: 20px; 
    background: #1a1a1a; 
    transition: background 0.3s;
    position: relative;
}

.news-header:hover {
    background: #222;
}

/
.news-header::after {
    content: ''; 
    width: 8px;
    height: 8px;
    border-right: 2px solid var(--accent-orange);
    border-bottom: 2px solid var(--accent-orange);
    transform: rotate(45deg); 
    transition: transform 0.4s ease;
    margin-right: 10px;
}


.news-item.active .news-header::after {
    transform: rotate(-135deg); 
    margin-top: 5px;
}

.news-content { 
    max-height: 0; 
    overflow: hidden; 
    transition: 0.5s ease-out; 
    padding: 0 20px; 
    opacity: 0;
    background: #151515; 
}

.news-item.active .news-content { 
    max-height: 2000px; 
    padding: 20px; 
    opacity: 1; 
}

/* =========================================
   8. MEDIA QUERIES
   ========================================= */
@media (max-width: 992px) {
    .about-grid { grid-template-columns: 1fr; }
    .about-image { height: 400px; }
    .hero-container { grid-template-columns: 1fr; text-align: center; }
    .hero-content { text-align: center; }
}

@media (max-width: 768px) {
    .hamburger { display: flex; }
    .nav-links {
        position: fixed;
        right: -100%;
        top: 0;
        width: 100%;
        height: 100vh;
        background: #0a0a0a;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        transition: 0.4s ease-in-out;
        z-index: 1001;
        gap: 30px;
    }
    .nav-links.active { right: 0 !important; }
    .nav-links li { margin-left: 0; }

    .hero { background: #ffffff !important; padding-top: 120px; }
    .hero h1 { color: #111 !important; }
    .hero p { border-left: none; padding-left: 0; margin: 0 auto 2.5rem auto; color: #444 !important; }
    .hero-logo-side img { max-width: 250px; margin-top: 40px; }

    .calendar-header { display: none; }
    .calendar-row .row-main-info { 
        display: flex; 
        flex-direction: column; 
        text-align: center; 
        gap: 10px; 
        padding: 30px 10px;
    }
    .calendar-row .row-main-info .status { text-align: center; }

    .partners-grid { grid-template-columns: 1fr 1fr; gap: 20px; }
    .spec-grid { grid-template-columns: 1fr; }
    h2 { font-size: 2rem !important; }
}
@keyframes fadeIn { from {opacity: 0;} to {opacity: 1;} }
.toast {
    position: fixed; bottom: 20px; left: 50%; transform: translateX(-50%);
    background: var(--accent-orange); padding: 15px 30px; border-radius: 50px;
    display: none; z-index: 10000; font-weight: 700;
}
.toast.show { display: block; animation: fadeIn 0.5s; }
/* =========================================
   9. SEKCJA SOCIAL MEDIA (KAFELKI)
   ========================================= */
.social-section {
    background: var(--bg-dark);
    padding: 80px 5%;
    text-align: center;
}

.social-grid {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-top: 40px;
    flex-wrap: wrap;
}

.social-tile {
    flex: 0 1 300px;
    background: #1a1a1a;
    padding: 40px;
    border-radius: 15px;
    text-decoration: none;
    color: white;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 107, 0, 0.1);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
}

.social-tile i {
    font-size: 2.5rem;
    color: var(--accent-orange);
}

.social-tile span {
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.social-tile:hover {
    transform: translateY(-10px);
    background: #222;
    border-color: var(--accent-orange);
    box-shadow: 0 10px 30px rgba(255, 107, 0, 0.1);
}

/* =========================================
   10. SOCIALE W MENU MOBILNYM
   ========================================= */
.mobile-socials {
    display: none; 
    margin-top: auto; 
    padding-bottom: 50px;
    gap: 30px;
}

@media (max-width: 768px) {
    .nav-links.active .mobile-socials {
        display: flex; 
    }
    
    .mobile-socials a {
        font-size: 2rem;
        color: var(--accent-orange);
        transition: 0.3s;
    }
}
/* Główny styl przycisku */
.btn-main {
    display: inline-block;
    padding: 15px 35px;
    background: #ff6b00; /* Twój pomarańczowy kolor */
    color: white !important;
    text-decoration: none;
    font-weight: 800;
    text-transform: uppercase;
    border-radius: 50px;
    transition: 0.3s;
    border: none;
    cursor: pointer;
}

/* Efekt po najechaniu myszką */
.btn-main:hover {
    background: #e65a00; /* Nieco ciemniejszy pomarańczowy */
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(255, 107, 0, 0.3);
}
.logo {
    display: flex;
    align-items: center;
    font-weight: 900;
    font-size: 1.2rem; /* Zmniejszone nieco dla bezpieczeństwa */
    white-space: nowrap; /* Zapobiega łamaniu nazwiska do nowej linii */
    max-height: 50px; /* Blokada wysokości */
    text-decoration: none;
}

/* Jeśli logo to obrazek img wewnątrz klasy .logo */
.logo img {
    height: 40px; 
    width: auto;
    object-fit: contain;
}

@media (max-width: 480px) {
    .logo {
        font-size: 1rem; /* Jeszcze mniejsze na bardzo małych telefonach */
    }
}
/* Naprawa logo specjalnie dla iOS/Google App */
.logo {
    display: inline-block !important; /* Wymuszenie zachowania blokowego */
    max-width: 200px; /* Dopasuj do szerokości swojego logo */
    height: auto;
    vertical-align: middle;
}

@media (max-width: 768px) {
    .logo {
        font-size: 1.1rem !important; /* Zmniejszenie fontu, jeśli logo to tekst */
        max-width: 150px;
    }
}
/* Wymuszenie kolorów przycisków w aplikacji Google */
input[type="submit"].btn-main,
button.btn-main,
a.btn-main,
.btn-main {
    background-color: #ff6b00 !important;
    background: #ff6b00 !important;
    color: #ffffff !important;
    /* To blokuje wymuszanie trybu ciemnego przez Google */
    color-scheme: light !important; 
    /* Usuwa systemowe cienie na Androidzie i iOS */
    -webkit-appearance: none !important;
    appearance: none !important;
    box-shadow: none !important;
}

/* Stan kliknięcia musi być równie silny */
.btn-main.btn-clicked {
    background-color: #000000 !important;
    background: #000000 !important;
    color: #ffffff !important;
}
/* Naprawa logo specjalnie pod silnik Google In-App */
nav .logo {
    display: block !important;
    width: 180px !important; /* Ustaw konkretną szerokość w PX */
    height: auto !important;
    font-size: 1.2rem !important;
    line-height: 1 !important;
}

@media (max-width: 768px) {
    nav .logo {
        width: 140px !important; /* Mniejsza stała szerokość na komórki */
        font-size: 1rem !important;
    }
}
/* GŁÓWNY KONTENER CIASTECZEK - Zmiany pod kątem urządzeń mobilnych */
.cookie-container {
    position: fixed;
    bottom: -200px; /* Większy zapas na ukrycie */
    left: 0;
    right: 0;
    background: #1a1a1a;
    color: white;
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 -5px 15px rgba(0,0,0,0.5);
    z-index: 99999; /* Maksymalny priorytet, żeby nic go nie zasłoniło */
    transition: 0.5s ease-in-out;
    font-size: 0.9rem;
    box-sizing: border-box; /* Ważne: zapobiega rozpychaniu ekranu na boki */
}

.cookie-container.active {
    bottom: 0;
}

/* Styl tekstu wewnątrz paska */
.cookie-container p {
    margin: 0;
    padding: 0;
    line-height: 1.4;
}

/* PRZYCISK AKCEPTACJI */
.btn-cookie {
    background: #ff6b00;
    color: white;
    border: none;
    padding: 12px 30px;
    border-radius: 5px;
    cursor: pointer;
    font-weight: bold;
    margin-left: 20px;
    transition: 0.3s;
    white-space: nowrap; /* Zapobiega łamaniu tekstu "Akceptuję" */
}

.btn-cookie:hover {
    background: #e65a00;
}

/* KLUCZOWA POPRAWKA DLA TELEFONÓW (Ekran poniżej 768px) */
@media (max-width: 768px) {
    .cookie-container {
        flex-direction: column; /* Tekst na górze, przycisk na dole */
        text-align: center;
        gap: 15px;
        padding: 20px 15px 35px 15px; /* Dodatkowy duży margines na dole (35px) chroni przed paskiem systemowym iOS/Android */
    }

    .cookie-container p {
        font-size: 0.85rem; /* Delikatne zmniejszenie tekstu, by zmieścił się na mniejszych ekranach */
    }

    .btn-cookie {
        margin-left: 0; /* Reset lewego marginesu na telefonach */
        width: 100%; /* Przycisk na całą szerokość ekranu telefonu - łatwiej kliknąć palcem */
        max-width: 250px; /* Ale nie za szeroki, żeby wyglądał estetycznie */
        padding: 14px; /* Większy przycisk, łatwiejszy do kliknięcia na dotyku */
    }
}