/*==========  Desktop First Method  ==========*/
@media (max-width: 1479px) {
  .container-wrap {
    max-width: 100%;
    border-radius: 0;
  }
  .mess-sect__action {
    border-radius: 0;
  }
  .dir-quote__main {
    padding: 100px 40px;
  }
}
@media (max-width: 1219px) {
  .container {
    width: 970px;
  }
  .backgroud._first > .parallax {
    top: -100px;
  }
  [data-path=top],
  .mirror-path-bottom .parallax-mirror {
    -webkit-clip-path: polygon(0 0, 100% 60px, 100% 100%, 0 100%);
            clip-path: polygon(0 0, 100% 60px, 100% 100%, 0 100%);
  }
  [data-path=bottom],
  .mirror-path-bottom .parallax-mirror {
    -webkit-clip-path: polygon(0 0, 100% 0, 100% 100%, 0 calc(100% - 60px));
            clip-path: polygon(0 0, 100% 0, 100% 100%, 0 calc(100% - 60px));
  }
  [data-path=top-bottom],
  [data-path=bottom-top],
  .mirror-path-top-bottom .parallax-mirror,
  .mirror-path-bottom-top .parallax-mirror {
    -webkit-clip-path: polygon(0 0, 100% 60px, 100% 100%, 0 calc(100% - 60px));
            clip-path: polygon(0 0, 100% 60px, 100% 100%, 0 calc(100% - 60px));
  }
  h1, h2 {
    font-size: 50px;
  }
  h3 {
    font-size: 40px;
  }
  .sect {
    margin: 60px 0;
  }
  .sect + .sect {
    margin-top: 90px;
  }
  .title {
    margin-bottom: 40px;
  }
  .nav-arrows {
    margin-top: 40px;
  }
  .nav-arrows__btn {
    margin: 0 35px;
    width: 300px;
  }
  .header__grid,
  .menu__grid {
    gap: 0 40px;
  }
  .menu__list {
    gap: 0 30px;
    font-size: 14px;
  }
  .menu__grid > .phone {
    font-size: 14px;
  }
  .menu__grid .social__head {
    display: none;
  }
  .advant-item__head {
    font-size: 40px;
  }
  .dir-quote__main {
    padding: 60px 40px;
  }
  .dir-quote__head {
    margin-bottom: 40px;
  }
  .dir-quote__content {
    font-size: 16px;
  }
  .dir-quote__author {
    margin-top: 30px;
  }
  .dir-quote__img {
    width: 40%;
    min-width: 340px;
  }
  .mess-sect__top,
  .mess-sect__action {
    padding: 60px 0;
  }
  .footer:before {
    height: 60px;
  }
  .footer {
    padding: 60px 0 40px;
  }
  .footer__bottom {
    margin-top: 40px;
    padding-top: 40px;
  }
}
@media (max-width: 991px) {
  .container {
    width: 750px;
  }
  h1, h2 {
    font-size: 42px;
  }
  h3 {
    font-size: 32px;
  }
  h4 {
    font-size: 26px;
  }
  h5 {
    font-size: 22px;
  }
  h6 {
    font-size: 18px;
  }
  .title {
    font-size: 18px;
  }
  .header {
    background: rgba(36, 36, 36, 0.2);
    -webkit-backdrop-filter: blur(10px);
            backdrop-filter: blur(10px);
    -webkit-box-shadow: inset 0 -1px 0 rgba(255, 255, 255, 0.1);
            box-shadow: inset 0 -1px 0 rgba(255, 255, 255, 0.1);
    -webkit-transition: background-color 0.3s;
    transition: background-color 0.3s;
  }
  .header._fixed {
    position: fixed;
    background: rgba(36, 36, 36, 0.8);
  }
  .header__grid {
    gap: 0 25px;
    height: 80px;
  }
  .header__grid .logo {
    -webkit-box-flex: 0;
        -ms-flex: 0 1 auto;
            flex: 0 1 auto;
  }
  .header__grid .logo img {
    max-height: 50px;
  }
  .header__grid > .btn,
  .header__address {
    display: none;
  }
  .header__mob-socials {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
        -ms-flex-align: center;
            align-items: center;
    -webkit-box-pack: center;
        -ms-flex-pack: center;
            justify-content: center;
    gap: 20px;
  }
  .menu {
    display: none;
  }
  .bann__wrapper {
    padding: 140px 0 250px;
  }
  .bann__descr {
    font-size: 18px;
  }
  .bann__advants {
    margin-top: 40px;
  }
  .bann__advant-img {
    margin-left: 20px;
  }
  .bann__advant-content {
    padding: 0 20px 20px;
    font-size: 14px;
  }
  .bann .main-form {
    margin-top: -200px;
  }
  .main-form {
    padding: 40px;
  }
  .main-form__title {
    margin-bottom: 30px;
  }
  .main-form__action .social {
    margin-left: 30px;
  }
  .main-form__title p {
    font-size: 1rem;
  }
  .advant-item__box {
    padding: 20px;
  }
  .advant-item__icon {
    margin-right: 15px;
    width: 50px;
    height: 50px;
  }
  .advant-item__head {
    font-size: 32px;
  }
  .advant-item__content {
    font-size: 14px;
  }
  .services__grid {
    -ms-grid-columns: (1fr)[2];
    grid-template-columns: repeat(2, 1fr);
  }
  .dir-quote__main {
    padding: 40px 30px;
  }
  .dir-quote__content {
    font-size: 14px;
  }
  .dir-quote__author {
    margin-top: 20px;
    font-size: 12px;
  }
  .mess-sect__action-head {
    font-size: 18px;
  }
  .contacts__map {
    height: 500px;
  }
  .footer__grid {
    gap: 40px;
  }
  .footer__bottom {
    gap: 20px 40px;
  }
  .footer__grid .social {
    -webkit-box-ordinal-group: 6;
        -ms-flex-order: 5;
            order: 5;
    width: 100%;
  }
  .popup {
    padding: 40px;
    max-width: 720px;
  }
  .popup .close-btn {
    width: 40px;
    height: 40px;
    line-height: 40px;
    font-size: 12px;
  }
}
@media (max-width: 767px) {
  .container {
    width: 100%;
  }
  h1, h2 {
    font-size: 36px;
  }
  h3 {
    font-size: 28px;
  }
  h4 {
    font-size: 24px;
  }
  .title {
    font-size: 16px;
  }
  .bann__advants {
    -ms-grid-columns: (1fr)[2];
    grid-template-columns: repeat(2, 1fr);
  }
  .bann__descr {
    font-size: 16px;
  }
  .main-form__field {
    min-width: 50%;
  }
  .main-form__action {
    display: block;
  }
  .main-form__action .social {
    margin: 20px 0 0;
  }
  .dir-quote {
    padding: 0 15px;
  }
  .dir-quote .container-wrap {
    display: block;
    max-width: 600px;
    margin: 0 auto;
    border-radius: 10px;
  }
  .dir-quote__img {
    width: 100%;
    min-width: auto;
    border-radius: 0 0 10px 10px;
  }
  .dir-quote__img:before {
    content: "";
    display: block;
    width: 100%;
    padding-bottom: 100%;
  }
  .mess-sect__top, .mess-sect__action {
    padding: 40px 0;
  }
  .mess-sect__action-head span {
    display: block;
  }
  .mess-sect__action-btn {
    min-width: 100%;
  }
  .contacts__box {
    width: 360px;
    padding: 20px;
  }
  .contacts__logo img {
    max-height: 40px;
  }
  .contact-item {
    font-size: 14px;
  }
  .contact-item .ic {
    top: 2px;
  }
  .popup {
    max-width: 100%;
  }
	.docs-slider .swiper-slide-active._hor > span {
    -webkit-transform: rotate(-90deg) scale(0.7);
        -ms-transform: rotate(-90deg) scale(0.7);
            transform: rotate(-90deg) scale(0.7);
  }
}
@media (max-width: 575px) {
  body, html {
    font-size: 14px;
  }
  h1, h2 {
    font-size: 28px;
  }
  h3 {
    font-size: 24px;
  }
  h4 {
    font-size: 20px;
  }
  h5 {
    font-size: 18px;
  }
  h6 {
    font-size: 16px;
  }
  .play-button {
    margin: -25px 0 0 -25px;
    width: 50px;
    height: 50px;
  }
  .play-button:after {
    margin: -8px 0 0 -5px;
    border: 8px solid transparent;
    border-left: 14px solid #fff;
  }
  .nav-arrows {
    margin-top: 30px;
  }
  .nav-arrows__btn {
    -webkit-box-ordinal-group: 6;
        -ms-flex-order: 5;
            order: 5;
    margin: 30px 0 0;
    width: 100%;
  }
  .social-item {
    width: 50px;
    height: 50px;
    line-height: 50px;
  }
  .header__grid {
    gap: 0 20px;
  }
  .header__grid .phone {
    margin-right: auto;
    padding: 0;
    font-size: 0;
  }
  .header__grid .phone:before {
    display: block;
    position: relative;
    top: 0;
    margin: 0;
    font-size: 24px;
  }
  .header__mob-socials {
    -webkit-box-flex: 0;
        -ms-flex: none;
            flex: none;
  }
  .main-form__field {
    min-width: 100%;
  }
  .bann__wrapper {
    padding-top: 120px;
  }
  .bann__advants {
    -ms-grid-columns: 1fr;
    grid-template-columns: 1fr;
  }
  .main-form {
    padding: 30px 20px;
  }
  .main-form__title {
    margin-bottom: 20px;
  }
  .main-form__grid,
  .main-form__policy {
    margin-bottom: 20px;
  }
  .advants__grid {
    display: block;
    margin: 0;
  }
  .advants__col {
    width: 100%;
    padding: 0;
  }
  .advants__col:nth-child(n+2) {
    margin-top: 10px;
  }
  .services__grid {
    -ms-grid-columns: 1fr;
    grid-template-columns: 1fr;
  }
  .service-item__content {
    font-size: 16px;
  }
  .dir-quote__main {
    padding: 30px 20px;
  }
  .dir-quote__head {
    margin-bottom: 25px;
  }
  .docs-slider {
    padding: 0 15px;
  }
  .mess-sect__top, .mess-sect__action {
    padding: 30px 0;
  }
  .mess-sect__action-head {
    font-size: 16px;
  }
  .contacts__box {
    left: 20px;
    right: 20px;
    bottom: 20px;
    width: auto;
  }
  .footer__copy {
    -webkit-box-flex: 0;
        -ms-flex: 0 1 auto;
            flex: 0 1 auto;
    width: 100%;
  }
  .popup {
    padding: 40px 20px 30px;
  }
}
/*==========  Mobile First Method  ==========*/
@media (min-width: 576px) {
  .advants__col:nth-child(2) .advant-item__img {
    -webkit-box-ordinal-group: 0;
        -ms-flex-order: -1;
            order: -1;
  }
}
@media (min-width: 992px) {
  .header__grid .phone,
  .header__sandwich {
    display: none;
  }
}