/* * Główne Style CSS dla ADVKAMIL - KOMPLETNY STYL PROJEKTU
 * Plik zawiera style z index.html oraz style dla podstron (kontakt, wypożyczalnia, eventy, szkolenia, wyjazdy).
 * Style Tailwind CSS są ładowane oddzielnie w pliku HTML.
 */

/* --- GLOBALNE USTAWIENIA I KONTENERY --- */
/* Konfiguracja czcionki i główne kolory */
body { font-family: 'Inter', sans-serif; background-color: #1a1a1a; color: #ffffff; }

/* --- NAGŁÓWEK --- */
.header { background-color: #1a1a1a; border-bottom: 2px solid #ff6b00; }
.nav-container { max-width: 1280px; margin: 0 auto; padding: 0 1rem; display: flex; justify-content: space-between; align-items: center; height: 4rem; }
.logo { font-size: 1.5rem; font-weight: 800; color: #ff6b00; }
.nav-list { display: flex; list-style: none; padding: 0; margin: 0; }
.nav-item a { padding: 0.5rem 1rem; color: #ccc; transition: color 0.3s; }
.nav-item a:hover, .nav-item a.active { color: #ff6b00; border-bottom: 2px solid #ff6b00; }


/* --- SEKCJA HERO (WIDEO TŁOWE) --- */
.hero {
    background-color: #1a1a1a;
    background-attachment: fixed; 
    position: relative;
    overflow: hidden;
}

.hero-video {
    position: absolute;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    z-index: 0;
    transform: translate(-50%, -50%);
    object-fit: cover;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    background: rgba(0, 0, 0, 0.7); /* Ciemny overlay dla lepszej czytelności tekstu */
    z-index: 1;
}
.hero-content {
    z-index: 2;
    position: relative;
}


/* --- SEKCJA CTA / KARTY USŁUG (INDEX.HTML) --- */

/* Ustawienia ikon i tła dla CTA Cards */
.cta-card.szkolenia { 
    background-image: url('photo/photo2.jpg'), url('https://images.unsplash.com/photo-1549488344-93e15bce6338?q=80&w=500&h=400&fit=crop'); 
}
.cta-card.wyjazdy { 
    background-image: url('photo/photo3.jpg'), url('https://images.unsplash.com/photo-1563273373-f9339e80b2a7?q=80&w=500&h=400&fit=crop'); 
}
.cta-card.wypozyczalnia { 
    background-image: url('photo/photo4.jpg'), url('https://images.unsplash.com/photo-1588698947614-77cc660a927c?q=80&w=500&h=400&fit=crop'); 
}

.cta-card {
    background-size: cover;
    background-position: center;
    position: relative;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex; /* Dodane dla wyrównania przycisku */
    flex-direction: column; /* Dodane dla wyrównania przycisku */
}
.cta-card::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    background: rgba(0, 0, 0, 0.75); /* Ciemny overlay na karcie */
    border-radius: 0.75rem; 
    transition: background 0.3s ease;
}
.cta-card:hover::before {
    background: rgba(18, 18, 18, 0.85); 
}
.cta-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(255, 107, 0, 0.4); 
}
.card-content {
    z-index: 3;
    position: relative;
    display: flex;
    flex-direction: column;
    flex-grow: 1; /* Pozwala treści zająć całą dostępną przestrzeń */
}
.card-icon {
    color: #ff6b00; 
    text-shadow: 0 0 10px rgba(255, 107, 0, 0.6);
}

/* Styl dla przycisku akcentującego */
.btn-accent {
    background-color: #ff6b00;
    border: 2px solid #ff6b00;
    color: #1a1a1a;
    transition: background-color 0.3s, color 0.3s, transform 0.2s;
}
.btn-accent:hover {
    background-color: #e05e00;
    color: #ffffff;
    transform: scale(1.05);
}

/* Styl dla przycisków na ciemnym tle karty */
.btn-secondary-custom {
    background-color: transparent;
    border: 2px solid #ff6b00;
    color: #ffffff;
    transition: background-color 0.3s, color 0.3s;
}
.btn-secondary-custom:hover {
    background-color: #ff6b00;
    color: #1a1a1a;
}

/* --- GRID GALLERY PERSPEKTYWA 3D --- */
.gallery-section-3d {
    position: relative;
    min-height: 300vh;
    padding-top: 0;
    padding-bottom: 0;
}

.gallery-sticky-container {
    position: sticky;
    top: 4rem;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    transition: opacity 0.3s ease;
}

/* Dostosowanie do naszej NOWEJ 6x6 siatki (36 elementów) */
.grid-gallery-content {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    grid-template-rows: repeat(6, 1fr);
    gap: 0.5rem;
    width: 82vw;
    max-width: 1080px;
    height: 76vh;
    position: relative;
    transform-style: preserve-3d;
    perspective: 1000px;
}

.gallery-item {
    transition: transform 0s, opacity 0s;
    transform-origin: center center;
    will-change: transform;
    position: relative;
    cursor: pointer;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    break-inside: avoid;
}

/* --- STOPKA --- */
.footer { background-color: #1a1a1a; border-top: 2px solid #333; padding: 2rem 0; }
.footer-content { max-width: 1280px; margin: 0 auto; padding: 0 1rem; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; text-align: center; }
.footer-nav { display: flex; list-style: none; padding: 0; margin: 0; margin-bottom: 1rem; }
.footer-nav li a { padding: 0 1rem; color: #ccc; transition: color 0.3s; }
.social-links a { color: #ccc; margin-left: 1rem; transition: color 0.3s; }
.social-links a:hover, .footer-nav li a:hover { color: #ff6b00; }
.footer p { color: #888; font-size: 0.875rem; }


/* --- STYLES FOR SUBPAGES (OGÓLNE) --- */

.page-content { max-width: 1280px; margin: 0 auto; padding: 6rem 1rem 4rem; }

/* Nagłówki główne podstron */
.page-content h1 { font-size: 3rem; font-weight: 800; text-align: center; margin-bottom: 1rem; color: #ff6b00; }
.page-content h2 { font-size: 2.25rem; font-weight: 800; text-align: center; margin-bottom: 2rem; color: #ff6b00; border-bottom: 2px solid #333; display: inline-block; padding-bottom: 0.5rem; margin-left: auto; margin-right: auto; }


/* --- SEKCJA SZKOLENIA/WYJAZDY (content-block) --- */
.content-block {
    margin-bottom: 2.5rem;
    padding: 2rem;
    background-color: #242424;
    border-left: 5px solid #ff6b00;
    border-radius: 0.75rem;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.content-block h3 {
    font-size: 1.75rem;
    font-weight: 700;
    color: #ff6b00;
    margin-bottom: 0.75rem;
    border-bottom: 1px solid #333;
    padding-bottom: 0.5rem;
}

.adventure-list {
    list-style: none;
    padding-left: 0;
    margin-top: 1rem;
}

.adventure-list li {
    margin-bottom: 0.5rem;
    padding-left: 2rem;
    position: relative;
    color: #ccc;
    font-size: 1.1rem;
}

.adventure-list li i {
    position: absolute;
    left: 0;
    color: #ff6b00; /* Kolor ikony */
    font-size: 1.25rem;
}

.training-intro {
    max-width: 56rem;
    margin: 0 auto 2.5rem;
}

.training-home-header {
    max-width: 72rem;
    margin: 0 auto 1.5rem;
}

.training-home-header:hover {
    transform: none !important;
}

.training-home-header-layout {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
    align-items: center;
}

.training-facts {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.75rem;
    margin-top: 0;
}

.training-fact {
    padding: 0.85rem 1rem;
    background: #1f1f1f;
    border: 1px solid rgba(255, 107, 0, 0.35);
    border-radius: 0.5rem;
    color: #e5e7eb;
}

.training-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
    max-width: 72rem;
    margin: 0 auto;
    align-items: stretch;
}

.training-card {
    display: flex;
    flex-direction: column;
    min-height: 18rem;
    margin-bottom: 0;
    align-self: stretch;
}

.training-card:hover {
    transform: none !important;
}

#szkolenia .training-card,
#szkolenia .training-card:hover,
#szkolenia .training-card:focus-within,
#szkolenia .training-card:active {
    transform: none !important;
    translate: none !important;
}

.training-card-label {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    min-width: 3rem;
    justify-content: center;
    margin-bottom: 1rem;
    padding: 0.35rem 0.7rem;
    border-radius: 0.5rem;
    background: #ff6b00;
    color: #111827;
    font-weight: 800;
    letter-spacing: 0;
}

.training-list {
    margin-top: 1rem;
    padding-left: 1.25rem;
    color: #d1d5db;
}

.training-list li {
    margin-bottom: 0.45rem;
}

.training-table-wrap {
    overflow-x: auto;
    margin: 0;
    border: 1px solid rgba(255, 107, 0, 0.35);
    border-radius: 0.5rem;
}

.training-table {
    width: 100%;
    min-width: 28rem;
    border-collapse: collapse;
}

.training-table th,
.training-table td {
    padding: 0.9rem 1rem;
    text-align: left;
    border-bottom: 1px solid #333;
}

.training-table th {
    background: #ff6b00;
    color: #111827;
    font-weight: 800;
}

.training-table tr:last-child td {
    border-bottom: 0;
}

.training-pricing-card {
    max-width: 72rem;
    margin: 1.5rem auto 0;
    margin-bottom: 0;
}

.training-pricing-card:hover {
    transform: none !important;
}

.training-pricing-layout {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
    align-items: start;
}

.training-pricing-copy h3:last-of-type {
    margin-top: 1.5rem;
}

.training-detail-section {
    scroll-margin-top: 100px;
}

.training-detail-card {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
    align-items: stretch;
}

.training-detail-card:hover {
    transform: none !important;
}

.training-detail-media {
    min-height: 16rem;
    border-radius: 0.65rem;
    overflow: hidden;
    border: 1px solid rgba(204, 255, 0, 0.24);
}

.training-detail-media img {
    display: block;
    width: 100%;
    height: 100%;
    min-height: 16rem;
    object-fit: cover;
}

.training-detail-content {
    display: flex;
    flex-direction: column;
}

.training-detail-title {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
}

.training-detail-title h2 {
    color: var(--adv-lime);
    font-size: clamp(1.75rem, 3vw, 2.6rem);
    font-weight: 800;
    line-height: 1.08;
}

.training-detail-subtitle {
    font-size: 1.25rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 1rem;
}

.training-quote {
    border-left: 5px solid #ff6b00;
    padding: 1rem 1.25rem;
    margin: 1.5rem 0;
    background: #1f1f1f;
    border-radius: 0.5rem;
    color: #f3f4f6;
    font-weight: 600;
}

@media (min-width: 640px) {
    .training-facts {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (min-width: 768px) {
    .training-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (min-width: 1024px) {
    .training-home-header-layout {
        grid-template-columns: minmax(0, 1.2fr) minmax(20rem, 0.8fr);
    }

    .training-pricing-layout {
        grid-template-columns: minmax(0, 1.15fr) minmax(24rem, 0.85fr);
    }

    .training-detail-card {
        grid-template-columns: minmax(18rem, 0.75fr) minmax(0, 1.25fr);
    }
}

/* --- BANNER WYZWANIA (WYJAZDY.HTML) --- */
.adventure-banner {
    background-image: url('photo/wyjazd_banner.jpg'), url('https://images.unsplash.com/photo-1588698947614-77cc660a927c?q=80&w=1200&h=300&fit=crop'); 
    background-size: cover;
    background-position: center;
    height: 300px;
    margin: 4rem auto;
    border-radius: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    box-shadow: 0 0 20px rgba(255, 107, 0, 0.4);
    overflow: hidden;
}

.adventure-banner::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(17, 17, 17, 0.4); /* Lekkie przyciemnienie */
    z-index: 1;
}

.banner-text {
    position: relative;
    z-index: 5;
    color: #ffffff;
    font-size: 2.5rem;
    font-weight: 800;
    text-transform: uppercase;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 1);
}

/* --- KARTY WYJAZDÓW (NOWE, NA WYJAZDY.HTML) --- */
.adventure-card-grid { 
    display: grid; 
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); 
    gap: 2rem; 
    margin-top: 3rem;
    margin-bottom: 4rem; /* Dodany margines, aby nie zlewało się z przyciskiem */
}

.adventure-card {
    background-size: cover;
    background-position: center;
    position: relative;
    border-radius: 0.75rem;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    min-height: 450px; /* Minimalna wysokość karty */
    display: flex;
    flex-direction: column;
    justify-content: flex-end; /* Wyrównuje treść do dołu */
    padding: 2rem;
}

.adventure-card::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.85) 0%, rgba(0,0,0,0.4) 50%, rgba(0,0,0,0) 100%); /* Gradient od dołu */
    z-index: 1;
}

.adventure-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 40px rgba(255, 107, 0, 0.4);
}

.adventure-card .info-overlay {
    position: relative;
    z-index: 2;
    color: #ffffff;
}

.adventure-card h4 {
    font-size: 1.75rem;
    font-weight: 700;
    color: #ff6b00;
    margin-bottom: 0.5rem;
}

.adventure-card .details-list {
    list-style: none;
    padding-left: 0;
    margin-top: 1rem;
}

.adventure-card .details-list li {
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    color: #ccc;
}

.adventure-card .details-list li i {
    color: #ff6b00;
    margin-right: 0.75rem;
    font-size: 1.1rem;
}


/* --- SEKCJA WYPOŻYCZALNIA (KARTY MOTOCYKLI) --- */
.bike-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
    margin-bottom: 4rem;
}

.bike-card {
    background-color: #242424;
    border: 2px solid #333;
    border-radius: 0.75rem;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
    transition: transform 0.3s ease, border-color 0.3s ease;
    display: flex;
    flex-direction: column;
    min-height: 450px; 
}

.bike-card:hover {
    transform: translateY(-5px);
    border-color: #ff6b00;
}

.bike-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-bottom: 3px solid #ff6b00;
}

.bike-card img.bike-photo-contain {
    object-fit: contain;
    background: #fff;
}

.bike-info {
    padding: 1.5rem;
    flex-grow: 1; /* Pozwala na rozciągnięcie info, co wyrównuje przycisk */
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.bike-info h4 {
    color: #ff6b00;
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    font-weight: 700;
}

.bike-price {
    display: block;
    color: #fff;
    font-size: 1rem;
    font-weight: 700;
    margin-top: 0.35rem;
}

.bike-info .details {
    color: #ccc;
    font-size: 0.95rem;
    margin-bottom: 1rem;
    flex-grow: 0;
}

.bike-specs {
    color: #d1d5db;
    font-size: 0.88rem;
    line-height: 1.45;
    margin: 0 0 1.25rem;
    padding-left: 1.1rem;
}

.bike-specs li {
    margin-bottom: 0.25rem;
}

.bike-spec-panel .bike-specs:last-child {
    margin-bottom: 0;
}

.bike-spec-button {
    border: 1px solid rgba(190, 255, 0, 0.45);
    border-radius: 0.65rem;
    color: #fff;
    display: block;
    font-size: 0.82rem;
    font-weight: 800;
    letter-spacing: 0.03em;
    margin: 0.25rem 0 1.25rem;
    padding: 0.8rem 2.75rem 0.8rem 1rem;
    position: relative;
    text-align: left;
    text-transform: uppercase;
    width: 100%;
    background: rgba(255, 255, 255, 0.03);
}

.bike-spec-button::after {
    content: "+";
    color: var(--adv-lime);
    font-size: 1.35rem;
    line-height: 1;
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
}

.bike-spec-panel {
    border-top: 1px solid rgba(190, 255, 0, 0.25);
    padding: 0.9rem 1rem 1rem;
}

.bike-spec-modal {
    position: fixed;
    inset: 0;
    z-index: 110;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    background: rgba(0, 0, 0, 0.82);
}

.bike-spec-modal.is-open {
    display: flex;
}

.bike-spec-modal-card {
    background: #111;
    border: 2px solid var(--adv-lime);
    border-radius: 0.75rem;
    box-shadow: 0 20px 70px rgba(190, 255, 0, 0.22);
    max-height: 90vh;
    max-width: 1080px;
    overflow: hidden;
    position: relative;
    width: 100%;
}

.bike-spec-modal-close {
    position: absolute;
    right: 1rem;
    top: 1rem;
    z-index: 2;
    color: #fff;
    font-size: 2rem;
    line-height: 1;
    transition: color 0.2s ease;
}

.bike-spec-modal-close:hover {
    color: var(--adv-lime);
}

.bike-spec-modal-layout {
    display: grid;
    grid-template-columns: minmax(280px, 0.9fr) minmax(0, 1.1fr);
    max-height: 90vh;
}

.bike-spec-modal-media {
    background: #050505;
    min-height: 100%;
    overflow: hidden;
    position: relative;
}

.bike-spec-modal-media::before {
    content: "";
    position: absolute;
    inset: -24px;
    background-image: var(--bike-modal-bg);
    background-position: center;
    background-size: cover;
    filter: blur(18px);
    opacity: 0.34;
    transform: scale(1.04);
}

.bike-spec-modal-media img {
    height: 100%;
    max-height: 90vh;
    object-fit: contain;
    position: relative;
    width: 100%;
}

.bike-spec-modal-content {
    overflow-y: auto;
    padding: 2rem;
}

.bike-spec-modal-title {
    color: var(--adv-lime);
    font-size: 2rem;
    font-weight: 800;
    margin: 0 2rem 0.35rem 0;
}

.bike-spec-modal-price {
    color: #fff;
    font-size: 1.1rem;
    font-weight: 800;
    margin-bottom: 1rem;
}

.bike-spec-modal-lead {
    color: #d1d5db;
    margin-bottom: 1.25rem;
}

.bike-spec-modal .bike-spec-panel {
    border-top: 0;
    padding: 0;
}

.bike-spec-panel h5 {
    color: var(--adv-lime);
    font-size: 0.82rem;
    font-weight: 800;
    margin: 0.85rem 0 0.45rem;
    text-transform: uppercase;
}

.bike-spec-panel h5:first-child {
    margin-top: 0;
}

.bike-spec-columns {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.5rem;
}

.bike-spec-column {
    min-width: 0;
}

@media (max-width: 900px) {
    .bike-spec-modal-layout {
        grid-template-columns: 1fr;
    }

    .bike-spec-modal-media {
        min-height: 220px;
    }

    .bike-spec-modal-media img {
        height: 260px;
    }

    .bike-spec-modal-content {
        padding: 1.25rem;
    }

    .bike-spec-modal-title {
        font-size: 1.5rem;
    }
}

@media (min-width: 1024px) {
    .bike-info .details {
        min-height: 7.25rem;
    }
}

@media (max-width: 760px) {
    .bike-spec-columns {
        grid-template-columns: 1fr;
        gap: 0.5rem;
    }
}

.x-logo-marquee {
    position: relative;
    overflow: hidden;
    background:
        radial-gradient(circle at 50% 50%, rgba(204, 255, 0, 0.1), transparent 42%),
        linear-gradient(90deg, #050505 0%, rgba(13, 13, 13, 0.98) 50%, #050505 100%);
    border-top: 2px solid rgba(204, 255, 0, 0.46);
    border-bottom: 2px solid rgba(204, 255, 0, 0.46);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.06),
        inset 0 -1px 0 rgba(255, 255, 255, 0.04),
        0 0 34px rgba(204, 255, 0, 0.08);
}

.x-logo-marquee::before,
.x-logo-marquee::after {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    width: min(18vw, 180px);
    z-index: 2;
    pointer-events: none;
}

.x-logo-marquee::before {
    left: 0;
    background: linear-gradient(90deg, #050505, transparent);
}

.x-logo-marquee::after {
    right: 0;
    background: linear-gradient(270deg, #050505, transparent);
}

.x-logo-marquee-glow {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 1;
    background:
        linear-gradient(90deg, transparent 0 38%, rgba(204, 255, 0, 0.2) 48%, rgba(255, 255, 255, 0.2) 50%, rgba(204, 255, 0, 0.16) 52%, transparent 62%),
        repeating-linear-gradient(90deg, transparent 0 72px, rgba(204, 255, 0, 0.05) 73px 74px, transparent 75px 148px);
    transform: translateX(-70%);
    animation: xLogoSweep 7s ease-in-out infinite;
    opacity: 0.75;
}

.x-logo-track {
    display: flex;
    width: max-content;
    gap: clamp(2.5rem, 5vw, 5.5rem);
    align-items: center;
    padding: 2rem 0;
    animation: xLogoMarquee 34s linear infinite;
}

.x-logo-item {
    flex: 0 0 auto;
    width: clamp(140px, 18vw, 240px);
    height: clamp(100px, 13vw, 176px);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0.96;
}

.x-logo-item img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    background: transparent !important;
    box-shadow: none !important;
    filter: drop-shadow(0 18px 24px rgba(0, 0, 0, 0.78));
}

@keyframes xLogoMarquee {
    from { transform: translateX(0); }
    to { transform: translateX(calc(-50% - clamp(1.25rem, 2.5vw, 2.75rem))); }
}

@keyframes xLogoSweep {
    0%, 24% { transform: translateX(-70%); opacity: 0; }
    42% { opacity: 0.8; }
    62%, 100% { transform: translateX(70%); opacity: 0; }
}

@media (max-width: 768px) {
    .x-logo-track {
        animation-duration: 24s;
    }
}

.mobile-menu {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s ease;
}

.mobile-menu.open {
    max-height: 24rem;
}

/* Przycisk w bike-card musi być wycentrowany */
.bike-info .btn-secondary {
    margin-top: auto;
    align-self: flex-start; /* Upewnia się, że przycisk jest na lewej stronie */
}

/* --- SEKCJA EVENTY (KARTY WYDARZEŃ) --- */
.event-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.event-card {
    background-color: #242424;
    border: 2px solid #333;
    border-radius: 0.75rem;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease;
    min-height: 450px;
    display: flex;
    flex-direction: column;
}

.event-card:hover {
    transform: translateY(-5px);
    border-color: #ff6b00;
}

.event-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-bottom: 3px solid #ff6b00;
}

.event-info {
    padding: 1.5rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.event-info h4 {
    color: #ff6b00;
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    font-weight: 700;
}

.event-info .date {
    color: #ccc;
    font-size: 0.95rem;
    margin-bottom: 1rem;
}

.event-info .description {
    color: #ccc;
    margin-bottom: 1rem;
    flex-grow: 1; /* Popycha przycisk w dół */
}

.event-info .btn {
    margin-top: auto;
}

/* --- SEKCJIE KONTAKT I MAPA --- */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-top: 3rem;
}

.contact-info-block {
    padding: 2rem;
    background-color: #242424;
    border-radius: 0.75rem;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.contact-item {
    margin-bottom: 1.5rem;
    display: flex;
    align-items: flex-start;
}

.contact-item i {
    color: #ff6b00;
    font-size: 1.5rem;
    margin-right: 1rem;
    padding-top: 0.2rem;
}

.contact-item-text {
    display: flex;
    flex-direction: column;
}

.contact-item-text strong {
    color: #ff6b00;
    font-size: 1.1rem;
    margin-bottom: 0.2rem;
}

.contact-item-text a, .contact-item-text p {
    color: #ccc;
}

.contact-map-container {
    border-radius: 0.75rem;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.contact-map-container iframe {
    width: 100%;
    height: 100%;
    min-height: 400px; /* Minimalna wysokość dla mapy na desktopie */
}

@media (max-width: 768px) {
    .contact-grid {
        grid-template-columns: 1fr;
    }
}

/* NAGŁÓWEK */
        .header { background-color: #1a1a1a; border-bottom: 2px solid #ff6b00; }
        .nav-container { max-width: 1280px; margin: 0 auto; padding: 0 1rem; display: flex; justify-content: space-between; align-items: center; height: 4rem; }
        .logo { font-size: 1.5rem; font-weight: 800; color: #ff6b00; }
        .nav-list { display: flex; list-style: none; padding: 0; margin: 0; }
        .nav-item a { padding: 0.5rem 1rem; color: #ccc; transition: color 0.3s; }
        .nav-item a:hover, .nav-item a.active { color: #ff6b00; border-bottom: 2px solid #ff6b00; }

/* --- PALETA ADV X: nadpisania globalne --- */
:root {
    --adv-bg: #050505;
    --adv-surface: #111111;
    --adv-surface-2: #181818;
    --adv-border: #2b2b2b;
    --adv-text: #ffffff;
    --adv-muted: #d1d5db;
    --adv-lime: #ccff00;
    --adv-lime-hover: #b7e600;
    --adv-lime-soft: rgba(204, 255, 0, 0.18);
    --adv-lime-glow: rgba(204, 255, 0, 0.42);
}

body,
.bg-gray-900,
.bg-gray-950 {
    background-color: var(--adv-bg) !important;
    color: var(--adv-text) !important;
}

header,
.bg-gray-900\/95,
footer {
    background-color: rgba(5, 5, 5, 0.96) !important;
    border-color: var(--adv-lime) !important;
}

img[src$="XADV-logo-07.png"] {
    background: rgba(0, 0, 0, 0.28);
    border-radius: 0.25rem !important;
    padding: 0;
    box-shadow: none;
}

.text-orange-300,
.text-orange-400,
.text-orange-500,
.text-orange-600,
.accent-color,
.card-icon,
.content-block h3,
.bike-info h4,
.event-info h4,
.contact-item i,
.contact-item-text strong,
.page-content h1,
.page-content h2,
.logo {
    color: var(--adv-lime) !important;
}

.hover\:text-orange-300:hover,
.hover\:text-orange-400:hover,
.hover\:text-orange-500:hover,
.hover\:text-orange-600:hover,
header a:hover,
.social-links a:hover,
.footer-nav li a:hover {
    color: var(--adv-lime-hover) !important;
}

.bg-orange-500,
.bg-orange-600,
.bg-accent,
.btn-accent,
.btn-primary,
.program-step::before {
    background-color: var(--adv-lime) !important;
    color: #050505 !important;
}

.hover\:bg-orange-500:hover,
.hover\:bg-orange-600:hover,
.hover\:bg-orange-700:hover {
    background-color: var(--adv-lime-hover) !important;
    color: #050505 !important;
}

.bg-orange-800,
.to-orange-800 {
    --tw-gradient-to: #5a7000 var(--tw-gradient-to-position) !important;
}

.from-orange-600 {
    --tw-gradient-from: var(--adv-lime) var(--tw-gradient-from-position) !important;
    --tw-gradient-to: rgba(204, 255, 0, 0) var(--tw-gradient-to-position) !important;
    --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to) !important;
}

.border-orange-500,
.border-orange-600,
.border-accent,
.section-title,
.content-block,
.trip-card,
.info-badge,
.program-step,
.bike-card img,
.event-card img,
.bike-card:hover,
.event-card:hover,
.adventure-card:hover,
.btn-secondary-custom,
.btn-accent,
.btn-primary,
.info-card {
    border-color: var(--adv-lime) !important;
}

.border-l-4.border-orange-600 {
    border-left-color: var(--adv-lime) !important;
}

.border-b-2.border-orange-600,
.border-b.border-orange-600,
.border-t.border-orange-600 {
    border-color: var(--adv-lime) !important;
}

.btn-accent,
.btn-primary {
    border-color: var(--adv-lime) !important;
    box-shadow: 0 6px 22px var(--adv-lime-glow) !important;
}

.btn-accent:hover,
.btn-primary:hover,
.btn-secondary-custom:hover {
    background-color: var(--adv-lime-hover) !important;
    color: #050505 !important;
}

.btn-secondary-custom {
    background-color: transparent !important;
    color: var(--adv-text) !important;
}

.content-block,
.trip-card,
.bike-card,
.event-card,
.contact-info-block,
.section-card,
.info-card,
.bg-gray-800 {
    background-color: var(--adv-surface) !important;
}

.content-block:hover,
.trip-card:hover,
.bike-card:hover,
.event-card:hover,
.cta-card:hover::before {
    background-color: var(--adv-surface-2) !important;
}

.cta-card:hover,
.bike-card:hover,
.event-card:hover,
.adventure-card:hover {
    box-shadow: 0 10px 34px var(--adv-lime-glow) !important;
}

.hero::before {
    background: rgba(0, 0, 0, 0.72) !important;
}

#wyjazdy::before {
    background: rgba(0, 0, 0, 0.78) !important;
}

.hero-gradient {
    background: radial-gradient(circle at 20% 20%, rgba(204, 255, 0, 0.18), transparent 38%), radial-gradient(circle at 82% 0%, rgba(204, 255, 0, 0.22), transparent 34%), #050505 !important;
}

.section-card {
    border-left-color: var(--adv-lime) !important;
}

.shadow-orange-600\/50 {
    --tw-shadow-color: rgba(204, 255, 0, 0.5) !important;
    --tw-shadow: var(--tw-shadow-colored) !important;
}

a {
    text-decoration-color: var(--adv-lime-soft);
}

/* Legacy pages: force old orange accents into the ADV lime palette. */
.btn,
.btn-accent,
.btn-primary,
.bg-accent {
    background-color: var(--adv-lime) !important;
    border-color: var(--adv-lime) !important;
    color: #050505 !important;
    box-shadow: 0 6px 22px var(--adv-lime-glow) !important;
}

.btn:hover,
.btn-accent:hover,
.btn-primary:hover,
.btn-secondary:hover,
.btn-secondary-custom:hover {
    background-color: var(--adv-lime-hover) !important;
    border-color: var(--adv-lime-hover) !important;
    color: #050505 !important;
    box-shadow: 0 8px 26px var(--adv-lime-glow) !important;
}

.btn-secondary,
.btn-secondary-custom {
    background-color: transparent !important;
    border-color: var(--adv-lime) !important;
    color: var(--adv-text) !important;
}

.accent-color,
.page-content h1,
.page-content h2,
.page-content h3,
.page-content h4,
.adventure-card h3,
.event-card h3,
.bike-card h3,
.rental-card h3,
.contact-card i {
    color: var(--adv-lime) !important;
}

.info-card,
.adventure-card,
.event-card,
.bike-card,
.rental-card,
.feature-card,
.contact-card,
.program-step,
.border-accent {
    border-color: var(--adv-lime) !important;
}

.info-card {
    border-top-color: var(--adv-lime) !important;
}

.program-step {
    border-left-color: var(--adv-lime) !important;
}

.footer,
.header {
    background-color: rgba(5, 5, 5, 0.96) !important;
    border-color: var(--adv-lime) !important;
}

.footer-nav a:hover,
.social-links a:hover {
    color: var(--adv-lime-hover) !important;
}
