
/* Responsive stabilization for phones/tablets. Desktop >=1200px is unchanged. */
html, body {
  max-width: 100%;
  overflow-x: hidden;
}

img, video, iframe, svg {
  max-width: 100%;
}

@media screen and (max-width: 1199px) {
  .container {
    width: 100% !important;
    max-width: 100%;
    padding-left: 15px;
    padding-right: 15px;
  }

  .hero__container,
  .calc__container,
  .advantage__container,
  .app__container,
  .reviews__container,
  .footer__container {
    max-width: 100%;
  }

  .hero__title,
  .hero__subtitle,
  .app__info-text,
  .registration__header,
  .thanks__subtitle {
    width: auto !important;
    max-width: 100%;
  }

  .hero__form,
  .footer__form,
  .backdrop__form,
  .calc__button {
    width: min(415px, 100%) !important;
    max-width: 100%;
  }

  .hero__image {
    max-width: 48%;
  }

  .advantage__list,
  .reviews__list,
  .partners__list,
  .app__list,
  .calc__container {
    min-width: 0;
  }

  .advantage__item,
  .reviews__item,
  .app__item,
  .calc__profit,
  .table__list {
    min-width: 0;
    max-width: 100%;
  }

  .footer__box,
  .footer__info-box {
    max-width: 100%;
  }
}

@media screen and (min-width: 481px) and (max-width: 899px) {
  .header__container,
  .hero__container,
  .calc__container,
  .app__container,
  .reviews__container,
  .footer__container {
    width: 100% !important;
  }

  .hero__container {
    padding-top: 38px;
  }

  .hero__title {
    max-width: 62%;
    font-size: clamp(28px, 4.6vw, 36px);
  }

  .hero__subtitle {
    max-width: 60%;
  }

  .hero__form {
    width: min(415px, 55vw) !important;
  }

  .hero__image {
    width: 42%;
    max-width: 42%;
    right: 15px;
  }

  .advantage__list,
  .reviews__list {
    flex-wrap: wrap;
  }

  .advantage__item {
    width: calc(50% - 15px) !important;
  }

  .reviews__item {
    width: calc(50% - 15px) !important;
  }

  .app__info-text {
    max-width: 100%;
  }

  .footer__box {
    flex-wrap: wrap;
    gap: 20px;
  }
}

@media screen and (max-width: 767px) {
  .upper-header__list {
    gap: 12px;
  }

  .hero__container {
    overflow: visible;
  }

  .hero__title,
  .hero__subtitle {
    max-width: 100%;
  }

  .hero__subtitle br {
    display: none;
  }

  .hero__form {
    width: 100% !important;
  }

  .hero__image {
    position: static !important;
    width: min(480px, 100%) !important;
    max-width: 100% !important;
    margin: 24px auto 0;
  }

  .hero__video-btn {
    max-width: 100%;
  }

  .calc__container,
  .advantage__list,
  .reviews__list,
  .app__list {
    gap: 20px;
  }

  .table__list {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  .footer__box {
    margin-top: 70px;
  }
}

@media screen and (max-width: 480px) {
  .container {
    padding-left: 12px;
    padding-right: 12px;
  }

  .header__nav--mobile {
    padding-left: 24px !important;
    padding-right: 24px !important;
  }

  .hero__container {
    padding-top: 32px;
  }

  .hero__title {
    font-size: clamp(26px, 8vw, 32px);
    line-height: 1.18;
  }

  .hero__subtitle {
    margin-top: 20px;
  }

  .hero__video-btn {
    width: min(270px, 100%);
  }

  .advantage__item,
  .calc__profit,
  .app__input {
    width: 100% !important;
  }

  .partners__list {
    column-gap: 20px;
  }

  .partners__icon {
    max-width: calc(50% - 10px);
    height: auto;
  }

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

@media screen and (max-width: 360px) {
  .container {
    padding-left: 10px;
    padding-right: 10px;
  }

  .hero__title {
    font-size: 24px;
  }

  .header__nav--mobile {
    padding-left: 18px !important;
    padding-right: 18px !important;
  }

  .nav__link {
    font-size: 22px !important;
  }

  .partners__icon {
    width: 140px !important;
    max-width: 46%;
  }
}
