/* laptop 1536px */
@media (max-width: 96em) {
  .nav__list {
    gap: 3.6rem;
  }

  .hero__title {
    font-size: 10rem;
  }

  .hero__subtitle {
    font-size: 2.4rem;
  }

  .hero__button,
  .hero__secbutton {
    font-size: 1.6rem;
  }

  .about {
    max-width: 130rem;
  }
}

/* smaller desktop 1344px */
@media (max-width: 84em) {
  .box {
    left: 10.4rem;
  }

  .nav__list {
    gap: 2.4rem;
    font-size: 2.2rem;
  }

  .about {
    max-width: 110rem;
  }

  .about_img {
    max-width: 40rem;
  }

  .about__title {
    font-size: 3.2rem;
  }

  .about__text {
    font-size: 1.8rem;
  }

  .header {
    padding: 0 9.6rem;
  }

  .product-wrapper {
    max-width: 90rem;
  }
}

/* below 1200px */
@media (max-width: 75em) {
  html {
    font-size: 56.25%;
  }

  .header {
    padding: 0 8.4rem;
  }

  .section-hero {
    background-position: 80% center;
  }

  .products,
  .about,
  .container {
    max-width: 100rem;
  }

  .footer__container {
    max-width: 100rem;
    gap: 1.8rem;
  }
}

/* below 944px tablet*/
@media (max-width: 59em) {
  html {
    font-size: 50%;
  }

  .header {
    padding: 0 6.4rem;
  }

  .section-hero {
    background-position: 50% center;
  }

  .about,
  .container,
  .faq-container {
    max-width: 90rem;
  }

  .about {
    gap: 3.2rem;
    max-width: 90rem;
  }

  .about_text_box {
    padding: 2.4rem;
  }

  .img_box {
    justify-self: center;
  }

  .products {
    max-width: 90rem;
  }

  .products_grid {
    gap: 4.2rem;
  }
}

/* small  tablet 720px */
@media (max-width: 45em) {
  .header {
    padding: 0 5.2rem;
  }
  .btn-mobile-nav {
    display: block;
    z-index: 9;
  }

  .nav {
    background-image: linear-gradient(
      90deg,
      rgba(25, 25, 25, 0.984),
      rgba(12, 12, 12, 0.995)
    );
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    transform: translateX(100%);

    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.5s ease-out;

    opacity: 0;
    pointer-events: none;
    visibility: hidden;
  }

  .nav-open nav {
    opacity: 1;
    pointer-events: auto;
    visibility: visible;
    transform: translateX(0);
  }

  .nav-open .icon-mobile-nav[name="close-outline"] {
    display: block;
  }

  .nav-open .icon-mobile-nav[name="menu-outline"] {
    display: none;
  }

  .nav__list {
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4.8rem;
  }

  .nav__link:link,
  .nav__link:visited {
    font-size: 3rem;
  }

  .nav__item a:link,
  .nav__item a:visited {
    font-size: 3rem;
  }

  .box {
    left: 5.2rem;
  }

  .section-products {
    padding: 0;
  }

  .products {
    max-width: 70rem;
    padding: 3.2rem 4.8rem;
  }

  .products_grid {
    grid-template-columns: 1fr 1fr;
    gap: 3.6rem;
  }

  .main_product_card {
    grid-row: 2/3;
    grid-column: 1/3;
    justify-self: center;
    min-width: 35rem;
    margin: 0 2rem;
  }

  .contact {
    flex-direction: column;
    max-width: 60rem;
  }

  .contact__map iframe {
    width: 100%;
    height: 100%;
    min-height: 40rem;
  }

  .footer__container {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 4rem;
  }

  .footer__brand {
    max-width: 100%;
  }

  .footer__text {
    max-width: 40rem;
    margin: 0 auto;
  }

  .footer__list li {
    justify-content: center;
  }

  .footer__address-text {
    justify-content: center;
  }

  .footer_contact_icon {
    width: 2.2rem;
    height: 2.2rem;
  }

  .nav-img {
    height: 4.6rem;
  }

  .product-wrapper {
    border-bottom: 1px solid #ff6a00;
    margin-bottom: 0;
  }
}

/* mobile phones 544px */
@media (max-width: 34em) {
  .hero {
    position: static;
  }

  .box {
    left: 50%;
    top: 50%;

    transform: translate(-50%, -50%);
  }

  .about {
    grid-template-columns: 1fr;
  }

  .about_text_box {
    padding: 0;
    padding-bottom: 2rem;
    border-right: none;
    justify-self: center;
  }

  .about_text_box {
    align-items: center;
  }

  .about__text {
    text-align: center;
    padding: 0 3.2rem;
  }

  .products {
    max-width: 45rem;
  }

  .products_grid {
    grid-template-columns: 1fr;
    row-gap: 3.2rem;
    column-gap: 0;
  }

  .products__card {
    border: 1px solid #3e3e3e;
  }

  .main_product_card {
    grid-row: auto;
    margin: 0;
    justify-self: auto;
  }

  .footer__list li span {
    font-size: 1.8rem;
  }

  .footer__address-text span {
    font-size: 1.8rem;
  }

  .footer__address-text {
    font-size: 1.8rem;
  }
}
