.root {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.container {
    width: 100%;
    max-width: var(--content-max-width);
    display: flex;
    flex-direction: column;
    padding: 80px 0;
    gap: 48px;
    overflow: hidden;
}

.textContent {
    display: flex;
    flex-direction: column;
    gap: 16px;
    text-align: center;
    align-items: center;
}

.title {
    max-width: 940px;
}

.subtitle {
    max-width: 648px;
}

.cardGrid {
    display: flex;
    justify-content: center;
    gap: 16px;
    width: 100%;
    flex-direction: row;
}

.cardGridItem {
    flex-shrink: 0;
}

.carouselArea {
    width: 100%;
    overflow: hidden;
    display: flex;
    justify-content: center;
}

.swiper {
    max-width: calc((390px * 3) + (16px * 2));
    /* max width of each card + gap between cards */
}

.swiperSlide {
    max-width: 390px;
    flex-shrink: 0;
    position: relative;
}

.navigation {
    display: flex;
    width: 100%;
    align-items: center;
    justify-content: center;
}

.cardGridItem {
    max-width: 389px;
    width: 100%;
}

@media (min-width: 769px) and (max-width: 1200px) {
    .cardGrid {
        max-width: 100%;
    }

    .cardGridItem {
        max-width: 309px;
    }

    .title {
        font-size: 56px;
        letter-spacing: -2.24px;
    }

    .swiper {
        max-width: calc((390px * 2) + 16px);
    }

    .container {
        padding: 64px 17px;
    }
}

@media (max-width: 930px) {
    .cardGrid {
        flex-direction: column;
        align-items: center;
    }

    .cardGridItem {
        max-width: 389px;
    }
}

@media (max-width: 768px) {
    .cardGridItem {
        max-width: 335px;
        min-width: 250px;
        width: 100%;
    }
    .container {
        padding: 64px 20px 32px 20px;
    }

    .swiper {
        max-width: 335px;
    }
    .navigation {
        margin-top: 24px;
    }
    .subtitle {
        max-width: 576px;
    }
}
