/* Klasy pomocnicze dla animacji na scroll */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* Klasy dla animowanych, odblaskowych kolorów */
.text-gradient-red,
.text-gradient-orange,
.text-gradient-green {
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: shine 3s linear infinite;
}

.text-gradient-red {
    background-image: linear-gradient(90deg, #ef4444, #f87171, #ef4444);
}

.text-gradient-orange {
    background-image: linear-gradient(90deg, #f97316, #fb923c, #f97316);
}

.text-gradient-green {
    background-image: linear-gradient(90deg, #22c55e, #4ade80, #22c55e);
}

@keyframes shine {
    to {
        background-position: 200% center;
    }
}

/* ===== Style dla animacji Burgera ===== */
#burger-btn.active span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}

#burger-btn.active span:nth-child(2) {
    opacity: 0;
}

#burger-btn.active span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

/* ===== Style dla sekcji "Proces Zakupu" ===== */
.process-card {
    background-color: rgba(26, 26, 26, 0.5);
    border: 1px solid #2a2a2a;
    transition: all 0.3s ease-in-out;
    overflow: hidden;
}

.process-card:hover {
    transform: translateY(-8px);
    border-color: #555;
}

.process-card-icon {
    width: 40px;
    height: 40px;
    color: #EAEAEA;
    margin-bottom: 1rem;
}

/* ===== Style dla szarfy "WKRÓTCE" ===== */
.sash {
    position: absolute;
    top: 20px;
    left: -35px;
    width: 150px;
    height: 30px;
    background-color: #EAEAEA;
    color: #101010;
    transform: rotate(-45deg);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
    overflow: hidden;
    z-index: 10;
}

.sash span {
    font-size: 0.8rem;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* ===== Style dla kolorowych numerów w tle ===== */
.number-bg-red {
    color: #ef4444;
}
.number-bg-orange {
    color: #f97316;
}
.number-bg-green {
    color: #22c55e;
}

/* ===== Style dla Newslettera w Stopce ===== */
.newsletter-input::placeholder {
    color: #6b7280;
}

.newsletter-btn {
    white-space: nowrap;
}

/* ===== Style dla Dopracowanego Headera ===== */

header.scrolled {
    background-color: #101010;
    border-bottom: 1px solid #2a2a2a;
}

/* NOWA, POPRAWIONA animacja podkreślenia */
header nav a {
    position: relative;
    padding-bottom: 5px; /* Daje miejsce na linię pod spodem */
}

header nav a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: #fff;
    transition: width 0.3s ease-in-out;
}

header nav a:hover::after {
    width: 100%;
}

/* ===== Style dla Rozbudowanej Podstrony "Dlaczego My" ===== */

/* Tło wideo w sekcji Hero */
.subpage-hero-video {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: translate(-50%, -50%);
    z-index: -1;
}

/* ===== Style dla Akordeonu (Wersja Prosta i Monochromatyczna) ===== */

.accordion-item {
    border-bottom: 1px solid #2a2a2a; /* Subtelna linia oddzielająca */
}

/* Usuwamy linię pod ostatnim elementem */
.accordion > .accordion-item:last-child {
    border-bottom: none;
}

.accordion-header {
    display: flex;
    align-items: center;
    padding: 1.25rem 0; /* 20px góra/dół */
    cursor: pointer;
    width: 100%;
}

.accordion-header h4 {
    transition: color 0.3s ease;
}

.accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s ease-in-out;
}

.accordion-content > div {
    padding-bottom: 1.25rem; /* 20px na dole */
}

.accordion-arrow {
    margin-left: auto;
    flex-shrink: 0;
    transition: transform 0.4s ease, color 0.3s ease;
}

/* Style dla aktywnego (rozwiniętego) elementu */
.accordion-item.active .accordion-header h4 {
    color: #fff; /* Tytuł staje się biały */
}

.accordion-item.active .accordion-arrow {
    transform: rotate(180deg);
    color: #fff; /* Strzałka staje się biała */
}

.accordion-item.active .accordion-content {
    max-height: 1000px; /* Wystarczająco duża wartość, aby zmieścić treść */
}

/* ===== Style dla Galerii Lightbox ===== */
.gallery-image {
    cursor: pointer;
    transition: transform 0.3s ease, filter 0.3s ease;
}

.gallery-image:hover {
    transform: scale(1.05);
    filter: brightness(1.1);
}

/* ===== Style dla Wyścigowej Podstrony "O Nas" ===== */

/* Ukośna sekcja */
.skew-section {
    position: relative;
    padding: 8rem 0;
    color: white;
    background-color: #101010;
}

/* Ukośne "cięcie" na górze i na dole sekcji */
.skew-section::before,
.skew-section::after {
    content: '';
    position: absolute;
    left: 0;
    width: 100%;
    height: 100px;
    background-color: inherit; /* Dziedziczy tło sekcji */
    z-index: 10;
}

.skew-section::before {
    top: -50px;
    transform: skewY(2deg);
}

.skew-section::after {
    bottom: -50px;
    transform: skewY(-2deg);
}

/* Tło z teksturą włókna węglowego */
.carbon-bg {
    background-image: url('https://www.transparenttextures.com/patterns/carbon-fibre.png');
    background-color: #1a1a1a;
}

/* Styl dla "telemetrii" - naszych filarów */
.telemetry-box {
    border-left: 2px solid #ef4444; /* Czerwony akcent, jak linia na torze */
    padding-left: 1.5rem;
    margin-bottom: 2rem;
}

.telemetry-box h4 {
    font-family: 'Courier New', monospace; /* Techniczny font */
    text-transform: uppercase;
    letter-spacing: 2px;
    color: #ef4444;
}

/* ===== Style dla Banera i Panelu Cookies ===== */
#cookie-banner, #cookie-modal {
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s ease-in-out;
}
#cookie-banner.active, #cookie-modal.active {
    opacity: 1;
    pointer-events: auto;
}

/* Styl dla przełącznika (toggle) */
.cookie-toggle {
    position: relative;
    display: inline-flex;
    align-items: center;
    cursor: pointer;
}
.cookie-toggle input {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}
.toggle-track {
    width: 44px;
    height: 24px;
    background-color: #4b5563; /* Szare tło */
    border-radius: 9999px;
    transition: background-color 0.2s ease;
}
.toggle-knob {
    position: absolute;
    top: 2px;
    left: 2px;
    width: 20px;
    height: 20px;
    background-color: white;
    border-radius: 50%;
    transition: transform 0.2s ease;
}
.cookie-toggle input:checked + .toggle-track {
    background-color: #22c55e; /* Zielone tło po włączeniu */
}
.cookie-toggle input:checked + .toggle-track .toggle-knob {
    transform: translateX(20px);
}