body {
    margin: 0;
    padding: 0;
}

/* Ukrywa poziomy pasek przewijania */
html,
body {
    overflow-x: hidden;
}
.dpd-red {
    color: #d40032;
}

.top-space {
    margin-top: 150px;
}
i {
    color: #d40032;
}
/* Ukrywamy tekst na starcie */
.hero h1,
.hero p {
    opacity: 0;
    transform: translateY(30px);
    /* Przesunięcie w dół */
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}


/* Animacja uruchamiana po załadowaniu strony */
.hero.show h1,
.hero.show p {
    opacity: 1;
    transform: translateY(0);
}


h1,
h2,
h3,
h4,
h5,
h6 {
    font-weight: 400;
}

/* Styl podstawowy dla przycisków */
.btn-secondary {
    background-color: #d40032;
    /* Standardowy kolor Bootstrap dla .btn-secondary */
    color: white;
    border: none;
    transition: background-color 0.3s ease-in-out, transform 0.2s ease-in-out;
}

/* Efekt hover */
.btn-secondary:hover {
    background-color: #6c757d;
    /* Czerwony */
    color: white;
    transform: scale(1.05);
    /* Powiększenie przycisku */
}

/* Efekt aktywnego kliknięcia */
.btn-secondary:active {
    background-color: #a30026;
    /* Jeszcze ciemniejszy odcień czerwieni */
    transform: scale(0.98);
    /* Efekt lekkiego wciśnięcia */
}


.container-fluid {
    padding: 0;
    /* Zapewnienie, że cała szerokość strony jest wykorzystywana */
}

.navbar img {
    max-height: 80px;
    padding-left: 100px;
}

.navbar button {
    margin-right: 50px;
}

/* Efekt hover dla logo w navbarze */
.navbar-brand img {
    transition: transform 0.4s ease-in-out, opacity 0.4s ease-in-out, filter 0.4s ease-in-out;
}

/* Powiększenie i lekki obrót przy najechaniu */
.navbar-brand:hover img {
    transform: scale(1.1);
    opacity: 0.9;

}





/* Efekt podkreślenia linków w navbar */
.navbar-nav .nav-link {
    font-size: 1.2rem;
    position: relative;
    padding-bottom: 5px;
    /* Mała przestrzeń nad podkreśleniem */
    transition: color 0.3s ease-in-out;
    /* Płynna zmiana koloru tekstu */
}

/* Linia pod linkiem */
.navbar-nav .nav-link::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    height: 2px;
    /* Grubość podkreślenia */
    background-color: #d40032;
    /* Kolor podkreślenia */
    transform: scaleX(0);
    /* Ukrycie linii */
    transform-origin: right;
    transition: transform 0.3s ease-in-out;
}

/* Efekt pojawiania się podkreślenia */
.navbar-nav .nav-link:hover::after {
    transform: scaleX(1);
    /* Pokazanie linii */
    transform-origin: left;
}



/* Styl aktywnego linku w navbar */
.navbar-nav .nav-link.active {
    color: #d40032 !important;
    /* Zmiana koloru tekstu */
    position: relative;
}

/* Efekt podkreślenia aktywnej strony */
.navbar-nav .nav-link.active::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -2px;
    width: 100%;
    height: 3px;
    background-color: #d40032;
}

.new-badge {
    position: absolute;
    top: -8px;
    right: 0;
    background-color: #28a745;
    color: #fff;
    font-size: 0.55rem;
    padding: 0.15rem 0.4rem;
    border-radius: 999px;
    line-height: 1;
}

.stats-table .path-cell code {
    display: block;
    white-space: normal;
    word-break: break-word;
    font-size: 0.9rem;
    padding: 0.15rem 0;
}

.stats-table th,
.stats-table td {
    vertical-align: middle;
}

.hero {
    background: url('images/hero_bg.jpg') no-repeat center center/cover;
    height: 50vh;
    width: 100vh;
    /* Pełna szerokość strony */
    position: relative;
    /* Kontekst dla pseudo-elementów */
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #333;
    font-weight: 300;
}



.hero {
    width: 100%;
    margin-top: 100px;
    
}

.hero-work {
    background: url('images/dpd_kurier.png') no-repeat center center/cover;
    height: 50vh;
    width: 100%;
    background-position: top;
}

.hero-work .glass-bg {
    background: rgba(255, 255, 255, 0.8);
    height: 50%;
}

.glass-bg {
    background: rgba(255, 255, 255, 0.9);
    /* Półprzezroczyste tło */
    backdrop-filter: blur(10px);
    /* Efekt rozmycia */
    -webkit-backdrop-filter: blur(10px);
    /* Obsługa dla Safari */
    padding: 30px;
    width: auto;
    position: absolute;
    z-index: 1;
}

.packing-quick-order__card {
    max-width: 720px;
    margin: 0 auto;
    padding: 2rem;
    border-radius: 24px;
    background: #fff;
}

.quick-order-items {
    gap: 1rem;
}

.quick-order-item {
    padding: 1rem;
    border-radius: 16px;
    border: 1px solid rgba(0, 0, 0, 0.08);
    background: #f8f9fa;
}

.quick-order-item__actions {
    display: flex;
    align-items: center;
}

.quick-order-items .btn-link {
    text-decoration: none;
    color: #d40032;
}

.hero div {
    width: 100%;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.1);
    /* Rozjaśnianie */
    z-index: 1;
    /* Nakładka pod tekstem */
}

.hero h1 {
    font-weight: 300;
}

.hero h1,
.hero p {
    position: relative;
    /* Tekst nad nakładką */
    z-index: 2;
}


.row h3 {
    font-size: 1.8rem;
    
    color: #333;
}

/* ===== Packing materials ===== */
.packing-hero {
    margin-top: 120px;
    padding: 4rem 0;
    background: radial-gradient(circle at top, rgba(212, 0, 50, 0.12), transparent 55%), linear-gradient(135deg, #ffffff 0%, #f7f7fb 100%);
    border-radius: 24px;
    overflow: hidden;
}

.packing-hero__eyebrow {
    text-transform: uppercase;
    font-weight: 600;
    letter-spacing: 0.08em;
    color: #d40032;
    margin-bottom: 1rem;
}

.packing-hero__title {
    font-size: clamp(2.2rem, 2.8vw, 3.4rem);
    font-weight: 600;
    line-height: 1.2;
    margin-bottom: 1rem;
}

.packing-hero__title span {
    color: #d40032;
}

.packing-hero__subtitle {
    font-size: 1.05rem;
    color: #4b4b4b;
    max-width: 36rem;
    margin-bottom: 1.5rem;
}

.packing-hero__card {
    background: #ffffff;
    border-radius: 20px;
    padding: 2rem;
}

.packing-hero__icon {
    width: 60px;
    height: 60px;
    border-radius: 16px;
    background: rgba(212, 0, 50, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: #d40032;
    margin-bottom: 1.5rem;
}

.packing-hero__list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 0.75rem;
    font-size: 0.95rem;
    color: #333;
}

.packing-hero__list li {
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.packing-hero__list i {
    color: #1bbf72;
    font-size: 1.1rem;
}

.packing-catalog {
    padding: 3rem 0 5rem;
}

.packing-card {
    border-radius: 20px;
    background: #ffffff;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
}

.packing-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 24px 48px -24px rgba(0, 0, 0, 0.25);
}

.packing-card__image {
    position: relative;
    border-radius: 20px 20px 0 0;
    overflow: hidden;
    aspect-ratio: 4 / 3;
}

.packing-card__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.packing-card:hover .packing-card__image img {
    transform: scale(1.05);
}

.packing-card__badge {
    position: absolute;
    top: 14px;
    left: 14px;
    background: #d40032;
    color: #fff;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    padding: 0.4rem 0.7rem;
    border-radius: 999px;
    text-transform: uppercase;
}

.packing-card__body {
    padding: 1.6rem 1.6rem 1.8rem;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.packing-card__body h2 {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 0.6rem;
    color: #1d1d1f;
}

.packing-card__description {
    color: #555;
    font-size: 0.95rem;
    margin-bottom: 1.2rem;
    flex-grow: 1;
}

.packing-card__price span {
    display: inline-block;
    background: rgba(212, 0, 50, 0.12);
    color: #d40032;
    font-weight: 600;
    padding: 0.45rem 0.9rem;
    border-radius: 999px;
    margin-bottom: 1.1rem;
}

.packing-card__benefits {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    gap: 0.4rem;
    font-size: 0.92rem;
    color: #3c3c3c;
}

.packing-card__benefits li {
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.packing-card__benefits i {
    color: #d40032;
    font-size: 1.2rem;
}

.packing-cta {
    max-width: 640px;
    margin: 0 auto;
}

.packing-cta h3 {
    font-weight: 600;
    margin-bottom: 0.6rem;
}

.packing-cta p {
    color: #555;
    margin-bottom: 1.5rem;
}

.admin-materials .actions-cell {
    white-space: nowrap;
}

.admin-materials .actions-container {
    gap: 0.5rem !important;
}

.admin-materials .actions-container form {
    margin: 0;
}

.admin-materials .actions-container .btn {
    min-width: 72px;
}

@media (max-width: 991px) {
    .packing-hero {
        padding: 3rem 0;
    }

    .packing-hero__card {
        margin-top: 1.5rem;
    }
}

@media (max-width: 575px) {
    .packing-card__body {
        padding: 1.2rem 1.4rem 1.5rem;
    }

    .packing-card__benefits {
        font-size: 0.9rem;
    }
}

.info {
    font-size: 1.2rem;
}

.about {
    background: url('images/about_bg.jpg') no-repeat center center/cover;
    height: 50vh;
}

.contact {
    background: url('images/contact_bg.jpg') no-repeat center center/cover;
    filter: contrast(1);
    height: 50vh;
}

iframe {
    max-width: 80%;
    margin: 0 auto;
}

.content_about p {
    text-align: justify;
}

.stats-section {
    padding: 10px 0;
}

.stat-item {
    min-height: 200px;
    background: white;
    padding: 15px;
    border-radius: 10px;
    border: 1px solid rgb(207, 207, 207);
    margin: 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.stat-item i {
    font-size: 3rem;
    /* Wielkość ikon */
    color: #d40032;
    /* Kolor ikon */
    margin-bottom: 10px;
}

.stat-item h2 {
    color: #000000;
    margin: 5px 0;
    font-weight: 400;
    font-size: 1.5rem;
}

/* Dodatkowy margines dla pierwszego nagłówka na stronie pricing */
.pricing-container {
    padding-top: 140px;
    /* Zwiększamy odstęp, aby nagłówek nie był zasłonięty */
}

/* Styl dla nagłówków pytań */
.accordion-button {
    background-color: #ffffff;
    /* Białe tło */
    color: #333;
    /* Ciemny tekst */
    font-weight: bold;
    transition: background-color 0.3s ease-in-out;
}

/* Zmiana koloru przy rozwinięciu pytania */
.accordion-button:not(.collapsed) {
    background-color: #d40032;
    /* Czerwone tło */
    color: white;
    /* Biały tekst */
}

/* Styl dla odpowiedzi */
.accordion-body {
    background-color: #f8f9fa;
    /* Jasnoszare tło */
    padding: 15px;
    border-left: 4px solid #d40032;
    /* Czerwona linia po lewej stronie */
    font-size: 1.1rem;
    color: #444;
    transition: background-color 0.3s ease-in-out;
}

/* Styl dla sekcji "Łączna cena" */
.total-price {
    color: #d40032;
    /* Czerwony kolor */
    font-size: 1.5rem;
    /* Trochę większy tekst */
}

/* Styl dla ikon na stronie pricing */

.news-carousel {
    overflow: hidden;
    white-space: nowrap;
}

.news-wrapper {
    display: flex;
}

.news-item {
    flex-shrink: 0;
    box-shadow: 2px 2px 10px rgba(0, 0, 0, 0.1);
    background: white;
    border-radius: 10px;
    padding: 15px;
    display: flex;
    flex-direction: row;
    align-items: center;  /* Wyrównanie do jednej linii */
    gap: 15px;  /* Odstęp między obrazkiem a tekstem */
    max-width: 100%;  /* Dostosowanie do szerokości kontenera */
    justify-content: flex-start; /* 🔥 Upewnienie się, że wszystko zaczyna się od lewej */
}

.news-img {
    width: 100px;  /* Stała szerokość obrazka */
    height: 100px;  /* Stała wysokość */
    object-fit: cover;  /* Zapobiega rozciąganiu */
    border-radius: 8px;  /* Zaokrąglone rogi */
    flex-shrink: 0;  /* Zapobiega zmniejszaniu obrazka */
}

.news-content {
    flex: 1;  /* 🔥 Pozwala, aby tekst zajmował całą pozostałą przestrzeń */
    text-align: left; /* 🔥 Tekst wyrównany do lewej */
    display: flex;
    flex-direction: column; /* 🔥 Układ w kolumnie, aby tekst był jeden pod drugim */
}

.news-content h5 {
    color: #d40032;
}
.news-button {
    max-width: 150px;
    align-self: flex-end;
    margin-top: auto;
}

@keyframes scrollNews {
    0% { transform: translateX(0); }
    100% { transform: translateX(-100%); } /* 🔥 Przewija całość */
}

.news-carousel {
    overflow: hidden;
    white-space: nowrap;
    position: relative;
    width: 100%;
}

.news-wrapper {
    display: flex;
    width: 100%;
    flex-wrap: nowrap; /* 🔥 Uniemożliwia zawijanie elementów */
}

.news-track {
    display: flex;
    gap: 20px;
    min-width: auto; /* 🔥 Dynamiczna szerokość */
    animation: scrollNews 60s linear infinite;
}
.video {
    width: 100%;
    max-width: 600px; /* Maksymalna szerokość wideo na większych ekranach */
    height: auto;
    display: block;
    margin: 0 auto;
}


/* 🔥 Dostosowanie prędkości animacji na mniejszych ekranach */
@media (max-width: 768px) {
    .news-track {
        animation: scrollNews 60s linear infinite;
    }
    .video {
        width: 80vw;
    }
}


@media (max-width: 480px) {
    .news-track {
        animation: scrollNews 60s linear infinite;
    }
   
    .tiles-item {
        height: 120px;
    }
}

@media (max-width: 400px) {
    .navbar img {
        max-height: 60px;
        padding-left: 50px;
    }
}
@media (max-width: 768px) {
    .news-item {
        flex: 0 0 250px; /* Szerokość newsa na urządzeniach mobilnych */
        max-width: 250px;
        height: 200px;
        font-size: 14px; /* Mniejsza czcionka */
        padding: 10px;
        overflow: hidden; /* Ukrywa ewentualny nadmiar treści */
        text-overflow: ellipsis; /* Dodaje "..." jeśli treść jest za długa */
        white-space: normal; /* Pozwala na zawijanie tekstu */
        word-wrap: break-word; /* Zapewnia, że długie słowa zostaną zawinięte */
    }
    .news-item h5 {
        font-size: 16px;
    }
    .news-img {
        width: 80px; /* Mniejszy obrazek */
        height: 80px;
    }

    .news-content {
        max-height: 200px; /* Ogranicza wysokość treści */
        overflow: hidden;
    }

    .news-content p {
        font-size: 13px; /* Mniejsza czcionka */
        line-height: 1.3; /* Poprawione odstępy między liniami */
    }
}

@media (min-width: 1199px) {
    .hero-work {
        height: 85vh;
    }
    
}

/* Zatrzymanie animacji na hover */
.news-carousel:hover .news-track {
    animation-play-state: paused;
}

.shipping-countdown-container {
    text-align: center;
    padding: 15px;
    border: 1px solid #d40032;
    border-radius: 10px;
    margin: 10px auto;
    max-width: 600px;
}

.countdown-box {
    font-size: 18px;
    font-weight: 500;
    color: #333;
}

#countdown-timer {
    font-size: 24px;
    color: #d40032;
}

.tiles-item {
    height: 100px;
    border-radius: 10px;
    border: 1px solid #6c757d;
    text-align: center;
}
.tiles-item i {
    font-size: 2rem;
}
.info-tiles a {
    text-decoration: none;
    color: #333;
}
.map-container {
    margin-top: 150px;
}
.centered-toast {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 1050;
    background-color: rgba(0, 0, 0, 0.8); /* Ciemniejsze tło dla lepszej widoczności */
    color: white;
    padding: 15px;
    border-radius: 8px;
    width: auto;
    text-align: center;
}

.centered-toast .toast-header {
    background: none;
    border: none;
    color: white;
}

.centered-toast .btn-close {
    filter: invert(1); /* Białe zamknięcie */
}
form {
    max-width: 600px;
    margin: auto;
    padding: 20px;
    background: #f9f9f9;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

form .btn-primary {
    background-color: #d40032;
    border: none;
}

form .btn-primary:hover {
    background-color: #a30026;
}
.modal-content {
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.modal-body {
    font-size: 18px;
    line-height: 1.5;
}
.video::-webkit-media-controls {
    display: flex !important;
}
@media (max-width: 1024px) {
    .tiles-item {
        height: 120px;
    }
}
.rekrutacja-linki {
    display: flex;
    align-items: center;
    justify-content:space-evenly;
    margin-bottom: 40px;
}

/* ===== Pickup tutorial ===== */
.tutorial-hero {
    margin-top: 140px;
    padding: 3rem;
    background: linear-gradient(120deg, rgba(212, 0, 50, 0.08), rgba(212, 0, 50, 0.02));
    border-radius: 24px;
    box-shadow: 0 20px 45px -30px rgba(0, 0, 0, 0.4);
}

.eyebrow {
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-weight: 700;
    color: #d40032;
    font-size: 0.85rem;
}

.pickup-summary {
    background: #fff;
    border: 1px solid rgba(0, 0, 0, 0.06);
    border-radius: 16px;
    padding: 1.5rem;
    box-shadow: 0 14px 35px -28px rgba(0, 0, 0, 0.55);
}

.summary-icon {
    width: 46px;
    height: 46px;
    border-radius: 12px;
    background: rgba(212, 0, 50, 0.12);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    color: #d40032;
}

.tutorial-steps .section-header {
    text-align: center;
    max-width: 740px;
    margin: 0 auto 2rem;
}

.tutorial-step-card {
    height: 100%;
    border-radius: 18px;
    padding: 1.5rem;
    background: #fff;
    border: 1px solid rgba(0, 0, 0, 0.05);
    box-shadow: 0 16px 38px -30px rgba(0, 0, 0, 0.5);
}

.tutorial-step-card h3 {
    font-weight: 600;
    font-size: 1.2rem;
    margin-bottom: 0.75rem;
    color: #1d1d1f;
}

.tutorial-step-card ul {
    padding-left: 1.1rem;
}

.step-number {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: #d40032;
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    margin-bottom: 0.9rem;
    box-shadow: 0 12px 26px -18px rgba(212, 0, 50, 0.6);
}

.tutorial-side-card {
    height: 100%;
    border-radius: 16px;
    padding: 1.8rem;
    border: 1px solid rgba(0, 0, 0, 0.05);
    background: #fff;
    box-shadow: 0 14px 38px -32px rgba(0, 0, 0, 0.55);
}

@media (max-width: 992px) {
    .tutorial-hero {
        margin-top: 110px;
        padding: 2.2rem;
    }
}

@media (max-width: 575px) {
    .tutorial-hero {
        padding: 1.6rem;
    }

    .tutorial-step-card {
        padding: 1.25rem;
    }
}
