:root {
    --header-height: 5rem;
    --first-color: #ff7417;
    --dark-color: #272b37;
    --dark-color-alt: #363a4e;
    --white-color: #E6E7E9;
    --white-color-alt: #b4b4b4;

    --body-font: 'Poppins', sans-serif;
    --header-font-size: 2rem;
    --xxl-font-size: 1.586rem;
    --big-font-size: 1.234rem;
    --normal-font-size: .938rem;
    --small-font-size: .813rem;

    --z-fixed: 100;
}

body {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    margin: 0;
    background-color: var(--dark-color-alt);
    font-family: var(--body-font);
    padding: 0;
    background-image: url('background-image.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.main {
    width: 90%;
    max-width: 1200px;
}

.boxes {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
    align-items: stretch; /* Rozciągnij elementy do jednakowej wysokości */
}

.box {
    flex: 1 1 28%;
    display: flex;
    flex-direction: column;
    background-color: var(--white-color);
    color: var(--dark-color);
    border: 1px solid var(--dark-color);
    text-align: center;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    border-radius: 15px;
    transition: transform 0.3s ease; /* Powiększanie boxa */
    height: auto; /* Pozwala na dynamiczne dopasowanie */
}

.box:hover {
    transform: scale(1.05); /* Powiększenie po najechaniu */
}

.box .title {
    outline: none;
    border: none;
    background-color: var(--dark-color-alt);
    color: var(--first-color);
    font-size: 2.2rem;
    font-weight: 650;
    text-align: center;
    padding: 24px;
    border-top-left-radius: 15px;
    border-top-right-radius: 15px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.box .title span {
    font-weight: 400;
    font-size: 0.85rem;
    color: var(--white-color);
    margin-top: 8px;
    line-height: 1.4;
    text-align: center;
    opacity: .9;
}

.box .button button {
    margin-left: auto;
    margin-right: auto;
    display: block;
    border: none;
    outline: none;
    padding: 12px 48px;
    font-size: 1.4rem;
    color: var(--white-color);
    background-color: #272b37;
    margin-bottom: 24px;
    transition: background-color 0.3s;
}

.box .button button:hover {
    cursor: pointer;
    background-color: var(--first-color);
    color: var(--white-color);
}

.check {
    padding: 24px;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    flex-grow: 1; /* Zapewnia równą wysokość sekcji */
}

.check-item {
    display: flex;
    align-items: center;
    margin-bottom: 12px;
    font-size: 0.85rem;
    color: var(--dark-color);
    text-align: left;
}

.check-item .fa-solid {
    font-size: 1.2rem;
    color: var(--first-color);
    margin-right: 10px;
}

.check-item span {
    word-wrap: break-word;
}

.image-slider {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 16px 0;
    position: relative;
    overflow: hidden;
    width: 100%;
    flex-grow: 1; /* Zapewnia równą wysokość sekcji */
}

.slider-container {
    width: 100%;
    overflow: hidden;
}

.slider {
    display: flex;
    transition: transform 0.3s ease-in-out;
}

.slider img {
    width: 100%;
    max-width: 300px;
    height: 200px;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    flex-shrink: 0;
}

.image-slider button {
    background: #272b37;
    color: #fff;
    border: none;
    font-size: 1.2rem;
    padding: 8px 16px;
    cursor: pointer;
    border-radius: 4px;
    transition: background 0.3s ease;
}

.image-slider button:hover {
    background: var(--first-color);
}

/* Ogólny wygląd */
.boxes {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
}

.box {
    flex: 1 1 28%; /* Domyślny rozmiar boxa */
    display: flex; /* Aby wyśrodkować zawartość */
    flex-direction: column; /* Ustawienie elementów pionowo */
    justify-content: center; /* Wyśrodkowanie zawartości w pionie */
    align-items: center; /* Wyśrodkowanie zawartości w poziomie */
    height: 100%; /* Ustawienie pełnej wysokości boxa */
}

.box img {
    width: 100%; /* Obrazek rozciąga się na całą szerokość */
    height: auto; /* Utrzymuje proporcje obrazka */
}

/* Dla ekranów mniejszych niż 1024px */
@media (max-width: 1024px) {
    .boxes {
        justify-content: space-between; /* Rozkłada boxy równomiernie */
    }

    .box {
        flex: 1 1 48%; /* Dwa boxy w jednej linii */
    }

    .box:nth-child(3) {
        flex: 1 1 100%; /* Trzeci box pod spodem */
    }
}

/* Dla ekranów mniejszych niż 724px */
@media (max-width: 724px) {
    .box {
        flex: 1 1 100%; /* Wszystkie boxy układają się jeden pod drugim */
    }
    
    .box img {
        width: 100%; /* Obrazek rozciąga się na całą szerokość */
        height: 200px; /* Możesz dostosować wysokość obrazka */
    }
}
