@media screen and (min-width: 991px) {
  .nav-toggle,
  .nav-close {
    display: none !important;
  }

  .main-nav {
    position: static;
    transform: none;
    height: auto;
    width: auto;
    padding: 0;
    border-radius: 0;
    overflow: visible;
    background: transparent;
  }
}

@media screen and (max-width: 1600px) {
  .the-company-wrapper {
    gap: 5rem;
  }
}

@media screen and (max-width: 1440px) {
  .why-us-container h2 {
    flex: 1;
  }
}

@media screen and (max-width: 1280px) {
  .hero-action-box {
    align-self: flex-start;
  }
  .news-grid-item:nth-child(4) {
    grid-column: span 1;
  }
  .why-us-grid {
    flex: 4;
  }
}

@media screen and (max-width: 1200px) {
  .news-post-body{
    flex-direction: column;
    align-items: center;
  }
  .news-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .brands-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .why-us-container {
    flex-direction: column;
  }
  .why-us-grid {
    margin-top: 5rem;
  }
}

@media screen and (max-width: 990px) {
  .select-brand-category-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .form-text-inputs {
    grid-template-columns: 1fr;
  }

  .brands-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .the-company-text p {
    align-self: center;
    text-align: center;
  }
  .the-company-text a.secondary-link {
    align-self: center;
  }
  .the-company-wrapper {
    flex-direction: column;
    gap: 3rem;
    margin: 5rem 0;
  }

  .the-company-text {
    display: contents; /* dissolves the wrapper, children join the parent flex */
  }

  .the-company-text h2 {
    order: 1;
  }

  .the-company-swiper-container {
    order: 2;
  }

  .the-company-text p {
    order: 3;
    margin-top: 0;
    margin-bottom: 0 !important;
  }

  .the-company-text a.secondary-link {
    order: 4;
  }

  .why-us-grid {
    gap: 20px;
  }
  h1 {
    font-size: var(--h1-font-size-mobile);
  }
  h2 {
    font-size: var(--h2-font-size-mobile);
  }
  .hero-image-container {
    width: clamp(300px, 50vw, 960px);
    margin-bottom: auto;
  }

  .nav-toggle {
    display: flex !important;
    align-items: flex-start;
    justify-content: flex-start;
    background: none;
    cursor: pointer;
    font-size: 2.4rem;
    color: var(--secondary-dark-color);
    position: relative;
    width: fit-content;
  }
  .main-nav {
    position: fixed;
    top: 0;
    left: 0;
    height: 100dvh;
    width: min(75vw, 360px);
    background-color: var(--secondary-background-color);
    z-index: var(--z-fixed);
    transform: translateX(-100%);
    transition: transform 0.4s cubic-bezier(0.76, 0, 0.24, 1);
    padding: 10rem 4rem 4rem;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    border-radius: 0 var(--site-border-radius) var(--site-border-radius) 0;
    overflow-y: auto;
  }

  .main-nav.is-open {
    transform: translateX(0);
  }

  .main-nav ul {
    flex-direction: column;
    gap: 0;
  }

  .main-nav ul li {
    border-bottom: 1px solid var(--background-color);
  }

  .main-nav ul li:first-child {
    border-top: 1px solid var(--background-color);
  }

  .main-nav ul li a {
    display: block;
    padding: 1.8rem 0;
    font-size: var(--medium-font-size);
    font-weight: var(--font-regular);
    line-height: 1;
  }

  .main-nav ul li a::after {
    display: none;
  }
  .nav-close {
    display: unset;
    position: absolute;
    top: 3rem;
    right: 3rem;
    background: var(--background-color);
    border-radius: 50%;
    width: 4.4rem;
    height: 4.4rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: var(--secondary-dark-color);
    cursor: pointer;
    transition:
      background 0.2s ease,
      transform 0.2s ease;
  }

  .nav-close:hover {
    background: var(--primary-color);
    color: white;
    transform: rotate(90deg);
  }
}

@media screen and (max-width: 880px) {
  .news-item-image {
    height: 300px;
  }
}

@media screen and (max-width: 820px) {
  .select-brand-category-option {
    padding: 5rem;
  }
  .brands-hero-text {
    flex-direction: column;
    gap: 2rem;
    text-align: center;
  }
  .brands-hero-text p {
    align-self: center;
  }
}

@media (max-width: 768px) {
  .news-item-image {
    height: 230px;
  }

  .company-info-image-container {
    max-width: unset;
  }

  .select-brand-category-grid {
    grid-template-columns: repeat(1, 1fr);
  }

  .select-brand-category-options {
    flex-direction: column;
  }
  .explore-brands-g-svg {
    left: 1rem;
    top: 0;
  }

  .explore-brands-g-svg svg {
    height: fit-content;
  }
  .explore-brands-v-svg {
    right: 1rem;
    display: flex;
  }
  .explore-brands-v-svg svg {
    height: fit-content;
    align-self: flex-end;
  }

  .why-us-grid {
    grid-template-columns: 1fr;
    gap: 5rem;
  }
  .grid-item-text {
    gap: 0.5rem;
  }
  .hero-image-container {
    position: absolute;
    right: -10rem;
  }
  .footer-first {
    flex-direction: column;
    gap: 2rem;
  }
  .useful-links-group {
    margin: auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 5rem;
  }

  .footer-last {
    flex-direction: column;
    gap: 2rem;
  }
  .copyrights-box {
    text-align: center;
  }
  .footer-useful-links ul {
    justify-self: flex-end;
  }
}

@media (max-width: 580px) {
  .concept-slide{
    height: 400px;
  }
  .brand-swiper-slide {
    max-height: 400px;
  }
  .slide-brand-name{
    font-size: 4rem;
  }
  .description-text {
    max-width: 84%;
  }
  .hero-main-text {
    max-width: 81%;
  }
  .hero-h1 {
    font-size: 4rem;
  }
  .hero-image-container {
    right: -15rem;
    top: 18rem;
  }
  .news-grid {
    grid-template-columns: repeat(1, 1fr);
  }
  .contact-information-wrapper h2 {
    text-align: center;
  }
  .vert-line {
    width: unset;
    height: 1px;
  }
  .contact-info-usefull {
    flex-direction: column;
    gap: 2rem;
  }
  .brand-category-grid-item button {
    padding: 6rem 2rem;
  }
  .brands-grid {
    grid-template-columns: repeat(1, 1fr);
  }
  .home-banner-text h2 {
    line-height: 4.5rem;
    font-size: 3.4rem;
  }
  .xl-container {
    padding: 0 var(--mobile-gutter);
  }
  .xl-container-bleed-right {
    padding-left: max(
      var(--mobile-gutter),
      calc((100vw - var(--site-container)) / 2 + var(--mobile-gutter))
    );
  }

  .concept-slide-text-container {
    padding: 4rem 3rem;
  }
  .absolute-svg-container {
    width: 50%;
  }
  .absolute-svg-container svg {
    width: 100%;
  }
  .main-nav {
    width: 100vw;
    border-radius: 0;
  }

  .useful-links-group {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
  .footer-useful-links ul {
    justify-self: unset;
  }
}

@media (max-width: 480px) {
  .secondary-hero-h1 {
    font-size: 5rem;
  }
  .concept-slide-heading {
    font-size: 3rem;
    line-height: 3rem;
  }
  .brands-hero-text h1 {
    font-size: var(--h1-5-font-size-mobile);
    line-height: 7rem;
  }
  .explore-brands-content {
    padding: 8rem 1rem;
  }
  .explore-brands-actions {
    flex-direction: column;
    align-items: center;
  }
  .explore-brands-actions a {
    width: 100%;
  }
}
