@media (max-width: 1640px) {
  .popularity__right {
    background-color: #fff;
    padding-left: 15px;
    padding-right: 0;
  }
  .history__form {
    margin-left: 0;
  }
  .history__wrapper {
    background-size: 50%;
  }
}
@media (max-width: 1400px) {
  .popularity__wrapper {
    background-size: 750px;
  }
}
@media (max-width: 1230px) {
  .popularity__wrapper {
    background-image: none;
  }
  .popularity__inner {
    flex-direction: column;
    align-items: center;
    justify-content: center;
  }
  .popularity__right {
    padding-left: 0;
    max-width: 800px;
    order: 0;
  }

  .mobile-bg {
    display: block;
    background-image: url(../images/popularity.jpg);
    background-repeat: no-repeat;
    min-height: 800px;
    background-size: cover;
  }
  .popularity {
    position: relative;
    padding-top: 50px;
  }
  .popularity__box {
    order: 1;
    max-width: 600px;
    margin-right: 0;
    position: absolute;
    z-index: 3;
    bottom: -90px;
  }
  .popularity__box-text {
    margin-right: 0;
  }
  .history__wrapper {
    background-image: none;
    min-height: 0;
  }
  .history__text {
    max-width: 100%;
    padding-bottom: 60px;
    padding-left: 15px;
    padding-right: 15px;
  }
  .history__title {
    text-align: center;
    max-width: 100%;
    padding-left: 15px;
    padding-right: 15px;
  }
  .history {
    background-color: #f6f9f3;
    padding-top: 120px;
  }
  .history__form {
    max-width: 100%;
    background-color: #fff;
    padding-top: 30px;
    padding-left: 45px;
    padding-right: 50%;
    position: relative;
    padding-bottom: 242px;
  }
  .history__form::after {
    content: "";
    width: 355px;
    height: 420px;
    background-image: url(../images/alonso.jpg);
    position: absolute;
    right: 15px;
    top: -25px;
    background-size: cover;
  }
  .history .container {
    padding-left: 0;
    padding-right: 0;
  }
  .quote__wrapper,
  .quote {
    padding: 0;
    min-height: 0;
    background-image: none;
  }
  .composition__box {
    max-width: 100%;
    order: 0;
  }
  .composition__item {
    order: 1;
    padding-left: 6px;
    padding-right: 6px;
  }
  .composition__row {
    justify-content: space-around;
  }
  .composition__link {
    max-width: 600px;
  }
  .reviews-text:nth-child(even) {
    padding-left: 70px;
    padding-right: 20px;
  }
  .reviews-text::before {
    left: 70px;
  }
  .reviews-text {
    max-width: 100%;
  }
  .reviews__title,
  .certificate__title {
    padding-left: 70px;
  }
}
@media (max-width: 1040px) {
  .top__inner-img {
    margin-left: 0;
  }
  .items {
    background-color: #f6f9f3;
  }
  .items__title {
    text-align: center;
    margin: 0 auto;
  }
  .item {
    margin-left: 7px;
    margin-right: 7px;
    width: 33.3333%;
  }
  .items__inner {
    padding: 20px 5px;
  }
  .certificate__content {
    padding-left: 10px;
  }

  .footer__logo,
  .footer__phone {
    display: none;
  }
}
@media (max-width: 1020px) {
  .advantages__inner {
    flex-wrap: wrap;
  }
  .advantages__item {
    width: 50%;
    padding-right: 70px;
  }
}

@media (max-width: 1000px) {
  .list__inner {
    display: block;
  }
  .list__title {
    padding-top: 40px;
  }
  .tabs__content {
    margin: 0 auto;
    max-width: 500px;
    height: 645px;
  }
  .tabs__reviews {
    left: 0;
    right: 0;
    margin: 0 auto;
    margin-bottom: -22px;
  }

  .list__link {
    justify-content: center;
  }
  .list__link a {
    min-width: 430px;
    padding: 22px 36px 22px 73px;
  }
  .tabs__reviews-link {
    margin-left: 70px;
  }
  .list__link a::after {
    right: 75px;
    top: 30px;
  }
  .tabs {
    margin-left: 0;
  }
  .list {
    padding-top: 200px;
  }
  /* .list {
    margin-top: 200px;
  } */
}

@media (max-width: 940px) {
  .top__inner-form {
    position: absolute;
    right: 15px;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
  }
  .advantages__inner {
    padding-top: 100px;
  }
  .top__inner-suptitle,
  .top__inner-title,
  .top__inner-text {
    width: 280px;
    margin-right: 100px;
  }
  .top__inner-title {
    font-size: 50px;
    line-height: 50px;
  }
  .top__inner-text {
    font-size: 16px;
  }
  .mobile-bg {
    min-height: 700px;
  }
  .item {
    min-height: 275px;
  }
  .composition__link {
    order: 2;
  }
  .composition__link {
    max-width: 530px;
  }
  .reviews__link {
    flex-direction: column;
  }
  .reviews__link a {
    margin-bottom: 30px;
  }
  .certificate {
    padding-top: 100px;
  }
  .certificate__inner {
    width: 100%;
    display: block;
  }

  .certificate__text {
    padding-right: 0;
    text-align: center;
  }
  .certificate__images {
    position: static;
    text-align: center;
    padding-top: 25px;
  }
  .certificate__wrapper {
    padding-bottom: 560px;
  }
}

@media (max-width: 830px) {
  .list__title {
    margin-left: 125px;
  }
  .list__inner {
    margin-top: -40px;
  }
  .reviews__tab {
    padding: 25px 37px 25px 65px;
  }
  .reviews__link {
    margin-bottom: 0;
  }
  .build__wrapper {
    background-image: none;
  }
  .build__inner {
    padding: 0;
    max-width: 644px;
  }
  .build__inner-box {
    padding: 60px 45px 70px 50px;
  }
  .build__text span {
    width: 100%;
    text-align: center;
  }
  .certificate {
    padding-top: 0;
  }
}

@media (max-width: 768px) {
  .header__text {
    font-size: 14px;
  }
  .top__inner-suptitle {
    margin-top: 25px;
  }
  .top__inner-text {
    margin-bottom: 50px;
  }
  .advantages__inner {
    padding-top: 10px;
    padding-left: 80px;
    padding-right: 50px;
  }
  .advantages__item {
    padding-right: 60px;
  }
  .list__title {
    font-size: 30px;
    text-align: center;
    max-width: 375px;
  }
  .popularity__right-title {
    font-size: 30px;
    text-align: center;
    line-height: 40px;
  }
  .popularity__right {
    max-width: 540px;
  }
  .popularity__right-subtitle {
    text-align: center;
  }
  .mobile-bg {
    min-height: 660px;
  }
  .history__title {
    font-size: 30px;
    line-height: 40px;
    max-width: 460px;
    margin: 0 auto;
    padding-bottom: 20px;
  }
  .history__text {
    padding-top: 10px;
  }
  .history__form {
    padding-right: 57%;
    padding-bottom: 135px;
  }
  .history__form button {
    padding-left: 20px;
  }
  .item {
    max-width: 225px;
    min-height: 225px;
  }
  .items__title {
    font-size: 30px;
    line-height: 40px;
  }
  .items__wrapper {
    min-height: 300px;
  }
  .composition__box {
    margin: 0 auto;
    max-width: 520px;
    padding-left: 0;
    padding-right: 0;
  }
  .composition__title {
    font-size: 30px;
    line-height: 40px;
  }
  .composition__item-inner {
    width: 332px;
    height: 332px;
  }
  .composition__link {
    width: 332px;
    height: 332px;
  }
  .composition__link-text {
    padding-left: 0;
  }
  .composition__link-text::before {
    display: none;
  }
  .composition__link {
    border: 1px solid #c8dcba;
    padding: 14px 15px 84px 16px;
    margin-left: 0;
  }
  .composition__link-btn {
    padding: 22px 79px 22px 62px;
    left: 0;
  }
  .reviews__tab {
    width: 49%;
    text-align: center;
    padding: 22px 5px;
    display: inline-block;
  }
  .reviews__title {
    text-align: center;
    font-size: 30px;
    line-height: 40px;
    padding-left: 0;
  }
  .reviews__content {
    padding-bottom: 150px;
  }
  .reviews__link {
    margin-top: -190px;
  }
  .reviews__link-tab {
    margin-right: 0;
  }
  .reviews-text:nth-child(even) {
    display: none;
  }
  .build__title {
    text-align: center;
    font-size: 30px;
    line-height: 40px;
  }
  .certificate__content {
    padding-left: 5px;
    max-width: 100%;
    margin-right: 5px;
  }
  .certificate__text {
    padding-left: 0;
    text-align: center;
  }
  .certificate__title {
    text-align: center;
    font-size: 30px;
    line-height: 40px;
    padding-left: 0;
  }
  .footer__inner {
    align-items: center;
    flex-direction: column;
  }
}

@media (max-width: 760px) {
  .top__inner-img img {
    width: 200px;
  }
  .advantages__inner {
    padding-top: 180px;
    padding-left: 0;
    padding-right: 0;
  }
  .advantages__item {
    padding-right: 30px;
  }
  .reviews-text {
    padding-left: 0;
    padding-right: 0;
  }

  .reviews__link-popup {
    width: 100%;
    text-align: center;
    padding: 22px 5px;
  }
  .reviews__link-popup::after {
    display: none;
  }
  .build__wrapper {
    min-height: 0;
    padding-left: 15px;
    padding-right: 4px;
  }
  .build__inner-box {
    padding: 0;
    border: none;
  }
  .build__link {
    width: 100%;
    display: block;
    text-align: center;
  }
}

@media (max-width: 700px) {
  .header__text {
    display: none;
  }
  .history__title {
    padding-top: 0;
  }
  .history__form {
    padding-right: 45px;
    padding-top: 400px;
    padding-bottom: 50px;
    text-align: center;
  }
  .history__form::after {
    left: 0;
    right: 0;
    top: 0;
    width: 100%;
    height: 385px;
  }
}
@media (max-width: 680px) {
  .items__inner {
    display: block;
  }
  .item {
    max-width: 100%;
    width: 100%;
    text-align: center;
    border: none;
  }
  .build__link {
    padding: 22px 5px;
  }
  .build__link::after {
    display: none;
  }
}

@media (max-width: 640px) {
  .top__inner-form {
    left: 15px;
  }
  .top__inner-img img {
    width: 125px;
  }
  .mobile__link-btn {
    display: block;
    width: 100%;
    text-align: center;
    padding: 22px 15px 22px 15px;
  }
  .top-form {
    display: none;
  }
  .top__inner-text {
    display: none;
  }
  .top__inner-form {
    position: static;
    align-items: center;
    text-align: center;
  }
  .top__inner-suptitle,
  .top__inner-title,
  .top__inner-text {
    width: 100%;
    margin-right: 0;
  }
  .top__inner {
    flex-direction: column;
    align-items: center;
  }
  .top__inner-img {
    order: 1;
  }
  .advantages__inner {
    padding-top: 10px;
  }
  .popularity__box {
    bottom: -100px;
    padding-bottom: 20px;
  }
  .popularity__box-link {
    max-width: 600px;
    padding: 22px 10px 22px 10px;
    text-align: center;
    width: 100%;
    position: static;
    display: block;
  }
  .popularity__box-link::after {
    display: none;
  }
  .mobile-bg {
    min-height: 475px;
  }
  .quote__inner {
    border: none;
    font-size: 20px;
    line-height: 35px;
  }
}

@media (max-width: 600px) {
  .top__inner-img img {
    width: 85px;
  }
  .advantages__inner {
    padding-top: 120px;
  }
  .advantages__item {
    width: 100%;
  }
  .tabs__box {
    flex-direction: column;
  }
  .tabs__box .tab:first-child,
  .tabs__box .tab:nth-child(3) {
    border-right: none;
    padding-right: 0;
    width: 100%;
  }
  .tabs__box .tab:last-child,
  .tabs__box .tab:nth-child(2) {
    padding-left: 0;
    width: 100%;
  }
  .tab-order-0 {
    order: 0;
  }

  .tab-order-1 {
    order: 1;
  }
  .tab-order-2 {
    order: 2;
  }
  .tab-order-3 {
    order: 3;
  }
  .tab {
    padding: 18px 40px 19px 0;
  }
  .tabs__box .tab {
    font-weight: 600;
    font-size: 14px;
    line-height: 20px;
    text-transform: uppercase;
    width: 100%;
  }
  .list__title {
    margin-left: 60px;
  }
  .history__title {
    padding-top: 45px;
  }
  .certificate__wrapper {
    padding-bottom: 600px;
  }
}

@media (max-width: 550px) {
  .tabs__content {
    display: none;
  }
  .list__title {
    margin-left: 30px;
  }
  .mobile-bg {
    min-height: 420px;
  }
  .popularity__box {
    bottom: -230px;
  }
  .history__title {
    padding-top: 200px;
  }
  .certificate__wrapper {
    padding-bottom: 675px;
  }
}

@media (max-width: 480px) {
  .header__phone {
    font-size: 14px;
  }
  .header__phone a::before {
    display: none;
  }
  .header__phone-text {
    display: none;
  }
  .list__title {
    font-size: 24px;
    line-height: 30px;
  }
  .list__title {
    margin-bottom: 90px;
  }
  .list__link a {
    min-width: 440px;
    margin-top: 0;
  }
  .tab {
    padding: 16px 40px 16px 0;
  }
  .popularity__right-title {
    font-size: 24px;
    line-height: 30px;
  }
  .mobile-bg {
    min-height: 345px;
  }
  .popularity__box {
    bottom: -245px;
    padding: 0;
  }
  .popularity__right-list li {
    margin-bottom: 15px;
  }
  .popularity__wrapper {
    min-height: 0;
  }
  .popularity__box-text {
    text-align: center;
    border: none;
  }
  .history__form {
    padding-left: 50px;
    padding-right: 30px;
    text-align: center;
  }
  .quote__inner {
    font-size: 14px;
    line-height: 24px;
  }
  .author {
    font-size: 14px;
  }
  .certificate__box fieldset {
    padding: 45px 10px 95px 10px;
  }
  .certificate__images img {
    max-width: 100%;
    width: 100%;
  }
}
@media (max-width: 460px) {
  .tab {
    padding: 14px 40px 14px 0;
  }
  .list__link a {
    min-width: 390px;
    margin-top: 0;
  }
  .tab.active::after {
    display: none;
  }
  .reviews-text:nth-child(odd) {
    padding-left: 20px;
    padding-right: 5px;
  }
  .reviews-text:nth-child(odd)::before {
    left: 25px;
  }
  .certificate__link::after {
    display: none;
  }
}

@media (max-width: 410px) {
  .tab {
    padding: 13px 40px 13px 0;
  }
  .list__link a {
    min-width: 360px;
    margin-top: 0;
    margin-left: -20px;
  }
  .mobile-bg {
    min-height: 300px;
  }
  .popularity__box-text {
    padding-left: 35px;
    margin-top: 0;
    min-width: 360px;
    margin-left: -20px;
  }
  .popularity__box-link {
    padding-left: 40px;
    margin-top: 0;
    min-width: 360px;
    margin-left: -20px;
  }
  .certificate__wrapper {
    padding-bottom: 580px;
  }

  .certificate__link {
    width: 100%;
    padding: 18px 0px 18px 0px;
    text-align: center;
  }
}

@media (max-width: 365px) {
  .composition__item-inner {
    width: 300px;
    height: 300px;
  }
}
@media (max-width: 360px) {
  .container {
    padding-left: 0;
  }
  a img {
    width: 160px;
  }
  .header__phone {
    font-size: 12px;
  }
  .top__images {
    min-height: 375px;
  }
  .top__inner-title {
    font-size: 30px;
    line-height: 36px;
    padding: 0 15px;
    margin-bottom: 16px;
  }
  .top__inner-suptitle {
    font-size: 12px;
    margin-bottom: 10px;
  }
  .top__wrapper {
    margin-top: -365px;
  }
  .advantages__inner {
    padding-top: 80px;
  }
  .advantages__item {
    margin-bottom: 40px;
  }
  .list__link a {
    margin-top: 0;
    min-width: 320px;
    padding-left: 50px;
  }
  .mobile-bg {
    min-height: 260px;
  }
  .popularity__box-text {
    padding-right: 20px;
    padding-left: 25px;
    min-width: 320px;
    margin-left: -20px;
  }
  .popularity__box-link {
    padding-left: 27px;
    min-width: 320px;
    margin-left: -20px;
  }
  .tab {
    padding: 10px 40px 10px 0;
  }
  .list__link a::after {
    display: none;
  }
  .form__btn::after {
    display: none;
  }
  .history__form button {
    padding-left: 15px;
    padding-right: 15px;
  }
  .history__form input {
    text-align: center;
  }
  .form__btn {
    padding: 22px 5px;
  }
  .history__form {
    padding-left: 0;
    padding-right: 0;
  }
  .list__title {
    margin-bottom: 60px;
  }
  .items__inner {
    background-color: #f6f9f3;
  }
  .item__number {
    color: #fff;
  }
  .items__title {
    font-size: 24px;
    line-height: 30px;
  }
  .composition__title {
    font-size: 24px;
    line-height: 30px;
  }
  .composition {
    padding: 115px 0 100px;
  }
  .composition__item-inner {
    width: 287px;
    height: 287px;
  }
  .composition__link {
    width: 300px;
    height: 100%;
    border: none;
    padding: 0;
    text-align: center;
  }
  .composition__link-text p {
    font-size: 14px;
    line-height: 24px;
  }
  .composition__link-btn {
    width: 100%;
    padding: 22px 10px;

    text-align: center;
    bottom: auto;
  }
  .composition__link-btn::after {
    display: none;
  }
  .reviews__tab {
    font-size: 12px;
  }
  .reviews-text {
    font-size: 14px;
    line-height: 24px;
  }
  .reviews__title,
  .build__title,
  .certificate__title {
    font-size: 24px;
    line-height: 30px;
  }
  .list {
    padding-top: 145px;
  }
}
