/* Responsive media query max-width(1024px) */
@media screen and (max-width: 1024px) {
    .menu__list {
        gap: 60px;
    }

    .menu__item {
        width: calc(100% / 3 - 60px);
    }
}

/* Responsive media query max-width(900px) */
@media screen and (max-width: 900px) {
    :root {
    --font-size-m: 1rem;
    --font-size-l: 1.3rem;
    --font-size-xl: 1.5rem;
    --font-size-xxl: 1.8rem;
    }

    body.show__mobile-menu header::before{
        content: '';
        position: fixed;
        left: 0;
        top: 0;
        height: 100%;
        width: 100%;
        backdrop-filter: blur(5px);
        background: rgba(0, 0, 0, 0.2);
    }

    .nav__list {
        display: block;
        position: fixed;
        top: 0;
        left: -300px;
        width: 300px;
        height: 100%;
        display: flex;
        flex-direction: column;
        align-items: center;
        padding-top: 100px;
        background: var(--white-color);
        transition: left 0.2s ease;
    }

    body.show__mobile-menu .nav__list{
        left: 0;
    }
    .nav__link {
        color: var(--dark-color);
        font-size: var(--font-size-l);
        display: block;
        margin-top: 17px;
    }

   .nav :where(#menu-close-button, #menu-open-button) {
    font-size: var(--font-size-l);
    display: block;
   }

   #menu-open-button {
    color: var(--white-color);
   }

   #menu-close-button {
    position: absolute;
    right: 30px;
    top: 30px;
   }

   .hero__section .section__content {
    flex-direction: column-reverse;
    justify-content: center;
    gap: 50px;
    text-align: center;
    padding: 30px 20px 20px;
   }

    .hero__img {
        max-width: 270px;
        margin-right: 0;
    }

    .hero__subtitle, .hero__text, .about__details, .contact__form {
        max-width: 100%;
    }

    .hero__buttons {
        justify-content: center;
    }

    .about__section .section__content {
        flex-direction: column;
        gap: 70px;
    }

    .about__img {
        width: 100%;
        height: 100%;
        max-width: 250px;
        aspect-ratio: 1;
    }

    .menu__list {
        gap: 30px;
    }

    .menu__item {
        width: calc(100% / 2 - 30px);
    }

    .menu__image {
        max-width: 200px;
    }

    .gallery__list {
        gap: 30px;
    }

    .gallery__item {
        width: calc(100% / 2 - 30px);
    }

    .contact__section .section__content {
        flex-direction: column-reverse;
        align-items: center;
    }
}

/* Responsive media query max-width(640px) */
@media screen and (max-width: 640px) {

    .menu__list {
        gap: 60px;
    }

    .menu__item,
    .gallery__item {
        width: 100%;
    }

    .slider__wrapper {
        margin: 0 0 30px;
    }

    .swiper-slide-button {
        display: none;
    }

    .footer .section__content {
        flex-direction: column;
        gap: 20px;
    }

    .hero__img {
        margin-top: 50px;
    }
}

/* Responsive media query max-width(570px) */
@media screen and (max-width: 570px) {
     .hero__img {
        margin-top: 50px;
    }
}

/* Responsive media query max-width(530px) */
@media screen and (max-width: 530px) {
     .hero__img {
        margin-top: 50px;
    }
}
