@import "fonts.css";
@import "reset.css";
@import "global.css";

@import "header.css";
@import "footer.css";



/* =============================== */
/* =============================== */
/* =============================== */



.slider__inner {
    border-radius: 30px;
}

.swiper-slide {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #DCE5E2;
    border-radius: 30px;
}

.slider__body {
    max-width: 612px;
    padding-left: 56px;
}

.slider__title {
    font-family: "ReadexPro";
    font-size: 58px;
    letter-spacing: 0%;
    margin-bottom: 19px;
}

.slider__text {
    margin-bottom: 30px;
}

.slider__link {
    padding: 14px 53px;
    border: 1px solid;
    border-radius: 200px;
    font-size: 18px;

    transition: var(--transition);
}

.slider__link:hover {
    color: var(--general-color);
    background: var(--hover-color-2);
}

.slider__img {
    display: flex;
}

.slider__img img {
    max-width: 100%;
    user-select: none;
}



.swiper-button-prev,
.swiper-button-next {
    width: 16px;
    height: 26px;
    user-select: none;
}

.swiper-button-prev img,
.swiper-button-next img {
    user-select: none;
}

.swiper-pagination-horizontal {
    display: flex;
    justify-content: center;
    gap: 25px;
    margin-bottom: 34px;
}

.swiper-pagination-bullet {
    width: 14dvw;
    height: 2px;
    border-radius: 0;
    background: var(--accent-color);
}



/* =============================== */



.gallery {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-template-rows: 1fr 0.1fr 0.5fr 0.1fr;
    gap: 16px;
    align-items: center;
}

.gallery__item {
    display: flex;
    background: #ffffff;
    box-shadow: 2px -1px 39px -7px #00000041;
    font-size: 15px;
    justify-self: end;
    width: 100%;

    transition: var(--transition);
}

.gallery__item:hover {
    box-shadow: 2px -1px 39px -7px #0000006e;
}

.gallery__item img {
    width: 100%;
}

.gallery__item:nth-child(1) {
    grid-row: 1 / 2;
    grid-column: 1 / 3;
}

.gallery__item:nth-child(1) img {
    padding: 0 42px;
}

.gallery__item:nth-child(1) {
    grid-row: 1 / 2;
    grid-column: 1 / 3;
}

.gallery__item-title {
    font-size: 32px;
    padding: 0 5px;

}

.gallery__item-body p {
    padding: 0 5px;

}

.gallery__item:nth-child(1) .gallery__item-text,
.gallery__item:nth-child(2) .gallery__item-text {
    display: flex;
    flex-direction: column;
    justify-content: center;
    text-align: end;
    padding-right: 40px;
}

.gallery__item:nth-child(2) {
    grid-row: 3 / -1;
    grid-column: 1 / 3;
    align-items: center;
    max-height: 270px;
    height: 100%;
}

.gallery__item:nth-child(2) .gallery__item-body {
    display: flex;
    max-height: 270px;
    height: 100%;
}

.gallery__item:nth-child(2) img {
    max-height: 270px;
    height: 100%;
}


.gallery__item:nth-child(3) {
    grid-column: 3 / 4;
    grid-row: 1 / -2;
    max-height: 792px;
    height: 100%;
    max-width: 312px;
}

.gallery__item:nth-child(3) .gallery__item-body,
.gallery__item:nth-child(4) .gallery__item-body {
    display: flex;
    flex-direction: column;
    justify-content: center;
    text-align: center;
}

.gallery__item:nth-child(3) .gallery__item-text,
.gallery__item:nth-child(4) .gallery__item-text {
    padding: 42px 0;
}


.gallery__item:nth-child(4) {
    grid-column: 4 / 5;
    grid-row: 1 / -2;
    align-items: center;
    max-height: 792px;
    height: 100%;
}

.gallery__item:nth-child(4) .gallery__item-body {
    text-align: center;
}



/* =============================== */


.product-cards-wrapper {
    max-width: 1240px;
    margin: 31px auto auto;
    padding: 0 20px;
}

.product-cards-list {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 27.5px;
    list-style: none;
    padding: 0;
    margin: 0 auto;
    justify-content: center;
}

.product-card {
    display: flex;
    flex-direction: column;
    padding: 15px;
    height: 100%;
    text-align: start;
}

.product-card img {
    width: 100%;
    height: auto;
    margin-bottom: 20px;
}

.card-title {
    font-size: 22px;
    margin-bottom: 10px;
    color: var(--accent-color);
    text-decoration: none;
}

.card-text {
    font-size: 14px;
    color: #4B4B4B;
    margin-bottom: 10px;
}


.product-value {
    font-size: 18px;
    margin-top: auto;
}



/* =============================== */



.packs__inner {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.packs__list {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
}

.pack__card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: end;
    align-self: center;
    text-align: center;
    background-color: #F8F9FA;
    border-radius: 16px;
    height: 453px;
    padding: 10px;
}

.pack__card h4 {
    margin-bottom: 30px;
}

.pack__link {
    padding: 14px 63px;
    border: 1px solid;
    border-radius: 200px;
    font-size: 18px;
    margin-bottom: 30px;

    transition: var(--transition);
}

.pack__link:hover {
    color: var(--general-color);
    background: var(--hover-color-2);
}

.pack__card img {
    max-height: 250px;
    object-fit: contain;
    width: 100%;
}

.pack__list:nth-child(1) {
    grid-area: 1 / 1 / 2 / 2;
}

.pack__list:nth-child(2) {
    grid-area: 1 / 2 / 2 / 3;
}

.pack__list:nth-child(3) {
    grid-area: 1 / 3 / 2 / 4;
}



/* =============================== */


.ideas {
    padding: 48px 28px 24px 28px;
    margin-bottom: 51px;
}

.ideas__inner {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.ideas__body {
    display: flex;
    align-items: center;
    gap: 35px;
    margin-bottom: 74px;
}

.ideas__body img {
    max-width: 40vw;
}

.ideas__content p {
    display: inline-block;
    margin-bottom: 1.5em;
    font-size: 24px;
    line-height: 30px;
}

.ideas__link {
    font-size: 24px;
    line-height: 28.8px;
    letter-spacing: 0%;
    text-transform: capitalize;

    transition: var(--transition);
}

.ideas__link:hover {
    color: var(--hover-color);
}

.ideas__link:hover path {
    stroke: var(--hover-color);
}



/* ========================================== */



.search {
    margin-bottom: 60px;
}

.search__inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.search__bar {
    display: flex;
    align-items: center;
    max-width: 650px;
    width: 100%;
    height: 60px;
    border-radius: 100px;
    background: #F8F9FA;
    border: 1px solid #c5c5c5;
    font-size: 14px;
    padding: 21px;
    margin: 14px 0 18px 0;
}

.search__input {
    background: transparent;
    padding: 16px;
    width: 100%;
}

.search__input::placeholder {
    color: var(--accent-color);
    background: transparent;

    width: 100%;
}

.search__hints {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    max-width: 650px;
    width: 100%;
}

.search__hint-link {
    display: flex;
    justify-content: center;
    align-items: center;
    border: 1px solid #c5c5c5;
    border-radius: 200px;
    padding: 12px 22px;
    margin: 3.5px;
    transition: var(--transition);
}

.search__hint-link:hover {
    background: #eeeff0;
    transition: var(--transition);
}

/* ========================================== */



.sing-up {
    display: flex;
    align-items: center;
    margin-bottom: 19px;
}

.sing-up__inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    background: #DCE5E2;
    border-radius: 16px;
    width: 68vw;
    max-width: 935px;
    height: 100%;
    padding-bottom: 43px;
}

.sing-up__inner .sect-head {
    margin-top: 28px;
    margin-bottom: 14px;
}

.sing-up__inner .sub-title {
    font-size: 16px;
}

.sing-up__inner img {
    max-width: 233px;
    margin-bottom: 14px;
}

.sing-up__input {
    display: flex;
    gap: 0;
}

.sing-up__input input {
    width: 285px;
    height: 50px;
    border: 1px solid var(--accent-color);
    border-top-left-radius: 54px;
    border-bottom-left-radius: 54px;
    padding-left: 32px;
    background: transparent;
}

.sing-up__input input::placeholder {
    color: var(--accent-color);
}

.sing-up__input button {
    width: 115px;
    height: 50px;
    border-top-right-radius: 200px;
    border-bottom-right-radius: 200px;
    background: var(--accent-color);
    color: var(--general-color);
}



/* ========================================== */
/* ========================================== */
/* ========================================== */



@media (max-width: 1100px) {

    .slider__body {
        margin-top: -75px;
    }

    .slider__title {
        font-size: 5.8vh;
        margin-bottom: 12px;
    }

    .slider__text {
        font-size: 1.8vh;
    }

    /* -------------- */

    .product-cards-list {
        grid-template-columns: repeat(2, 0.38fr);
    }

    /* -------------- */

    .footer__top {
        gap: 75px;
    }

    .footer__lists {
        gap: 50px;
    }
}

@media (max-width: 1000px) {

    .slider__title {
        font-size: 5vh;
        margin-bottom: 12px;
    }

    .ideas {
        padding: 0;
    }

    .ideas__body img {
        display: none;
    }

    .ideas__content {
        display: flex;
        flex-direction: column;
        justify-self: center;
        text-align: center;
    }

    .ideas__content p {
        margin-bottom: 1em;
        font-size: 20px;
        line-height: 30px;
    }

}

@media (max-width: 950px) {

    .swiper-slide {
        justify-content: center;
        text-align: center;
        min-height: 340px;
    }

    .slider__body {
        padding: 0;
    }

    .slider__img {
        display: none;
    }

    /* --------------------- */


    /* --------------------- */


    .packs__list {
        grid-template-columns: repeat(auto-fill, 413px);
        gap: 24px;
        align-items: center;
    }

    .packs__list {
        grid-template-columns: repeat(auto-fill, 413px);
        gap: 24px;
        align-items: center;
    }
}

@media (max-width: 900px) {
    .packs__list {
        align-items: center;
    }

}

@media (max-width: 800px) {

    .header {
        margin-bottom: 0px;
    }

    .header__inner {
        position: relative;
    }

    .dropdown:hover {
        padding-bottom: 160px;
    }

    .dropdown .dropdown-content {
        transition: var(--transition);
    }

    .dropdown:hover .dropdown-content {
        display: block;
        opacity: 1;
    }

    .dropdown {
        transition: var(--transition);
    }

    .header__icons {
        position: absolute;
        right: 65px;
    }

    .nav {
        position: fixed;
        inset: 0;
        z-index: 3;
        background: var(--general-color);
        padding: 26vh 15px 30px;
        font-size: 24px;

        transform: translateY(-50%);
        opacity: 0;
        visibility: hidden;
        transition: var(--transition);
    }

    .nav__list {
        flex-direction: column;
        align-items: center;
    }

    .body--opened-menu .nav {
        transform: translateY(0%);
        opacity: 1;
        visibility: visible;
    }

    .burger-icon {
        display: flex;
    }

    /* ---------------------- */

    .slider__body {
        margin-left: 30px;
        margin-right: 30px;
        max-width: 500px;
    }

    .slider__title {
        font-size: 5vh;
        margin-bottom: 12px;
    }

    .slider__text {
        font-size: 1.9vh;
    }

    .slider__link {
        padding: 12px 48px;
        font-size: 16px;
    }

    /* ---------------------- */

    .gallery__item-title {
        font-size: 22px;
    }

    /* ---------------------- */

    .product-cards-list {
        grid-template-columns: repeat(2, 0.4fr);
    }

    .pack__card {
        height: auto;
        padding: 36px 35px 0 35px;
    }

    .pack__link {
        padding: 12px 53px;
        font-size: 16px;
    }

    .pack__card img {
        margin-bottom: -1px;
    }

    /* ---------------------- */

    .ideas .sect-head {
        margin-bottom: 20px;
    }

    .ideas__body {
        margin-bottom: 20px;
    }

    /* ---------------------- */





    .sing-up__input input {
        max-width: 30vw;
    }

    .sing-up__input button {
        max-width: 15vw;
    }

    /* ---------------------- */

    .footer__lists {
        display: grid;
        max-width: none;
        grid-template: repeat(3, auto) / minmax(150px, 0.5fr) 1fr;
    }

}

@media (max-width: 650px) {

    .gallery {
        grid-template-columns: repeat(2, 1fr);
        grid-template-rows: .1fr 1fr .1fr;
    }

    .gallery__item:nth-child(1) {
        grid-row: 1 / 2;
        grid-column: 1 / 3;
    }

    .gallery__item:nth-child(2) {
        grid-row: 3 / 4;
        grid-column: 1 / 3;
        justify-content: center;
        height: 100%;
    }

    .gallery__item:nth-child(2) img {
        max-height: 125px;
    }

    .gallery__item:nth-child(3) {
        grid-column: 1 / 2;
        grid-row: 2 / 3;
        height: 100%;
    }

    .gallery__item:nth-child(4) {
        grid-column: 2 / 3;
        grid-row: 2 / 3;
        align-items: start;
        height: 100%;
    }

}

@media (max-width: 600px) {

    .slider,
    .categories,
    .product-cards,
    .packs {
        margin-bottom: 40px;
    }

    /* ---------------------- */

    .swiper-slide {
        max-height: 450px;
    }

    /* ---------------------- */

    .product-cards .sect-head {
        margin-bottom: -40px;
    }

    .product-cards-list {
        grid-template-columns: 55vw;
    }

    /* ---------------------- */

    .packs__list {
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .pack__card {
        width: 300px;
        padding: 16px 15px 0 16px;
    }

    /* ---------------------- */

    .footer__top {
        flex-wrap: wrap;
        justify-content: center;
        align-items: center;
    }

    .footer__text-block {
        display: flex;
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
}

@media (max-width: 500px) {

    .swiper-slide {
        min-height: 550px;
    }

    .swiper-pagination-bullets {
        margin-bottom: 10%;
    }

    /* ------------------- */

    .pack__link {
        padding: 10px 43px;
        font-size: 16px;
    }

    /* ------------------- */

    .sing-up__inner img {
        max-width: 200px;
    }
}


@media (max-width: 400px) {
    .header__icons {
        right: 55px;
        gap: 5px;
    }

    /* --------------------- */

    .sing-up__input input {
        padding-left: 16px;
    }
    .sing-up__input button {
        max-width: 20vw;
    }

    /* --------------------- */

    .footer__bottom {
        flex-direction: column;
        align-items: center;
    }

}