/* Navigation for mobile devices */
@media screen and (min-width: 1200px) {
  .hero {
    width: 100%;
    display: flex;
    align-items: center;
    aspect-ratio: 2.4;
  }
}

@media screen and (max-width: 1199px) {
  .banner__content h1 {
    font-size: 4rem;
    font-weight: 800;
  }
  .risk__content-block:not(:last-child) {
    margin-bottom: 3rem;
  }
  .risk__content-block h2 {
    font-size: 2.4rem;
    line-height: 2.8rem;
    margin-bottom: 1.2rem;
  }
  p {
    line-height: 1.47;
  }
  body {
    font-size: 1.6rem;
    line-height: 1.47;
  }
  .risk__content-block ul {
    margin-bottom: 1.2rem;
  }
  .why__content h2 {
    font-size: 3.2rem;
    line-height: 3.4rem;
    margin-bottom: 1.2rem;
    font-weight: 800;
  }
  .why__content p {
    line-height: 2.8rem;
  }
  .why__content {
    max-width: 50rem;
  }
  .why__content {
    max-width: 50rem;
    text-align: center;
  }
  h2.about__content-title {
    font-size: 4.2rem;
  }
}
@media screen and (max-width: 991px) {
  .navbar__menu {
    position: fixed;
    top: 0%;
    right: -80%;
    height: 100%;
    z-index: 100;
    gap: 3rem;
    justify-content: start;
    align-items: start !important;
    width: 50%;
    padding-block: 10.5rem 3.5rem;
    padding-inline: 3.5rem 3.5rem;
    background-color: var(--white-color);
    box-shadow: 0 4px 16px hsla(353, 100%, 8%, 0.1);
    transition: all 0.5s;
    -webkit-transition: all 0.5s;
    -moz-transition: all 0.5s;
    -ms-transition: all 0.5s;
    -o-transition: all 0.5s;
  }

  .navbar__show {
    right: 0%;
  }

  .navbar {
    width: 100%;
  }

  .navbar__list {
    flex-direction: column;
    justify-content: start;
    text-align: start;
    gap: 0rem;
    width: 100%;
  }
  li.navbar__item {
    width: 100%;
  }
  .navbar__close {
    display: inline-block;
    position: absolute;
    top: 1.5rem;
    font-size: 2.2rem;
    right: calc((100vw - var(--container-width)) / 2);
  }

  .navbar__toggle {
    display: inline-block;
    font-size: 2.2rem;
    right: calc((100vw - var(--container-width)) / 2);
  }
  .navbar__link {
    padding: 1.6rem 0;
    border-bottom: 0.1rem solid #ccc;
    width: 100%;
  }

  .row {
    row-gap: 3rem;
  }

  .partners__brand {
    padding-left: 0px;
    justify-content: center !important;
  }

  .about__img,
  .expertise__img {
    margin-right: 0rem;
    margin-left: 0rem;
    width: 100%;
    max-width: unset;
  }

  .expertise .row {
    flex-direction: column-reverse;
  }

  .expertise,
  .our-partner,
  .contact {
    padding-block: 5rem;
  }
  .package__item-header {
    margin-bottom: 2rem;
    min-height: auto;
  }
  .package__item-body ul {
    margin-bottom: 2.2rem;
  }
  .package__item {
    padding-bottom: 3rem;
  }
  h2.about__content-title {
    font-size: 3rem;
    margin-bottom: 1.7rem;
    line-height: 1.4;
  }
  .about__content-description {
    margin-bottom: 1.7rem;
  }
  .expertise__content-title {
    font-size: 3rem;
    margin-bottom: 1.7rem;
  }
  .expertise__content-description {
    margin-bottom: 1.7rem;
  }
  .about__item {
    padding-block: 4rem;
  }
}

@media screen and (max-width: 767px) {
  body {
    font-family: var(--font-body);
    font-size: 1.6rem;
    line-height: 1.57;
  }

  .navbar__menu {
    right: -80%;
    gap: 3rem;
    width: 50%;
  }

  .expertise,
  .our-partner,
  .contact {
    padding-block: 4rem;
  }
  .contact__form {
    margin-top: 3rem;
  }
  .contact__description {
    font-size: 1.8rem;
    letter-spacing: 0;
    line-height: 2.4rem;
  }
  .about__item {
    padding-block: 0rem;
    margin-bottom: 6rem;
  }
  .partners__brand-item {
    width: 14rem;
  }
  .our-partner {
    padding-block: 4rem;
  }
  .hero {
    padding-block: 12rem;
    background-position: 68%;
  }

  /* service-page */
  .banner__area {
    padding: 5rem 0 4.6rem;
  }
  .package__item-header {
    margin-bottom: 1rem;
    min-height: auto;
  }
  .package__item {
    padding-bottom: 2rem;
    padding: 1.4rem;
    border-radius: 0.6rem;
  }

  /* work-page */
  .why__wrapper {
    padding: 2.4rem;
    border-radius: 2rem;
  }
  .why__content h2 {
    font-size: 2.6rem;
    line-height: 3rem;
    margin-bottom: 1.2rem;
  }

  .risk__content-block h2 {
    margin-bottom: 1rem;
  }
  .risk__content-block ul li {
    line-height: 2.4rem;
  }
  .risk__content-block ul {
    margin-bottom: 1rem;
  }

  .about__img,
  .expertise__img {
    height: 340px;
  }
  .footer__main .container {
    padding-block: 2.4rem;
  }
  .package--area {
    padding-bottom: 2rem;
  }
  .risk__area {
    padding: 5rem 0 2rem;
  }
}

@media screen and (max-width: 576px) {
  h1 {
    font-size: 4rem;
    line-height: 1;
  }

  h2 {
    font-size: 4rem;
    line-height: 110%;
  }

  h3 {
    font-size: 3.1rem;
    line-height: 1;
  }

  .navbar__menu {
    right: -80%;
    gap: 3rem;
    width: 70%;
  }

  .form__group {
    flex-wrap: wrap;
    max-width: 400px;
    margin-inline: auto;
  }

  .form__group {
    gap: 1.9rem;
  }
}

@media screen and (max-width: 400px) {
  h1 {
    font-size: 3.5rem;
    line-height: 1;
  }

  h2 {
    font-size: 3.5rem;
    line-height: 110%;
  }

  h3 {
    font-size: 3.1rem;
    line-height: 1;
  }

  .navbar__menu {
    right: -100%;
    gap: 3rem;
    width: 85%;
  }

  .form__group {
    flex-wrap: wrap;
    max-width: 400px;
    margin-inline: auto;
  }

  .form__group {
    gap: 1.9rem;
  }

  .footer__content .footer-col {
    width: 100%;
  }
  .about__img,
  .expertise__img {
    height: 290px;
  }
}
