/*==========  Desktop First Method  ==========*/
@media (max-width: 1319px) {
  .container {
    width: 1170px;
  }
  .tab-btn {
    padding: 5px 0 20px;
    font-size: 14px;
  }
  .header__grid {
    gap: 40px;
  }
  .menu__list {
    gap: 10px 35px;
  }
  .bann-slider .swiper-pagination {
    max-width: 934px;
  }
  .bann-slider .nav-arrow-prev {
    margin-left: -570px;
  }
  .bann-slider .nav-arrow-next {
    margin-right: -570px;
  }
  .serv-links {
    gap: 20px 0;
    margin: 0 -10px;
  }
  .serv-links__col {
    padding: 0 10px;
  }
  .about-item__img,
  .contacts__map {
    width: 480px;
  }
  .team-item .thumb-img {
    margin-bottom: 15px;
  }
  .news-item .thumb-img {
    margin-bottom: 15px;
  }
  .reception__main {
    width: 52%;
  }
  .main-map {
    height: 500px;
  }
  .footer__col._links {
    width: 200px;
  }
  .footer__col._social {
    width: 160px;
  }
  .service__slider {
    width: 480px;
  }
  .main-form {
    padding: 30px 160px 30px 30px;
  }
  .main-form__el {
    right: -100px;
    max-height: 300px;
  }
  .serv-item .thumb-img {
    margin-bottom: 15px;
  }
  .team {
    max-width: none;
  }
  .docs-grid {
    gap: 20px;
  }
}
@media (max-width: 1199px) {
  .container {
    width: 970px;
  }
  .btn-box {
    margin-top: 40px;
  }
  .link-more {
    font-size: 1em;
  }
  .form-item__head {
    font-size: 1em;
  }
  .phone {
    padding-left: 1.4em;
    font-size: 18px;
  }
  .title {
    margin-bottom: 30px;
  }
  .tab-btns {
    margin-bottom: 30px;
  }
  .tab-btns__grid {
    -webkit-box-pack: start;
        -ms-flex-pack: start;
            justify-content: flex-start;
    -ms-flex-wrap: wrap;
        flex-wrap: wrap;
    gap: 10px;
    -webkit-box-shadow: none;
            box-shadow: none;
  }
  .tab-btn {
    -webkit-box-flex: 0;
        -ms-flex: 0 1 auto;
            flex: 0 1 auto;
    padding: 0.8em 1em;
    border: 1px solid rgba(76, 29, 149, 0.15);
    border-radius: 5px;
    text-align: left;
    font-size: 14px;
  }
  .tab-btn.active {
    border-color: transparent;
    background-color: #791A48;
    color: #fff;
  }
  .tab-btns._buttons .tab-btn {
    min-width: 0;
    padding: 0.8em 1em;
    border-radius: 5px;
  }
  .nav-arrows .nav-arrow-prev {
    margin-right: 15px;
  }
  .header,
  .header__grid {
    height: 70px;
  }
  .header__wrapper {
    position: absolute;
    z-index: 100;
    top: 0;
    left: 0;
    right: 0;
    -webkit-transition: -webkit-box-shadow 0.3s;
    transition: -webkit-box-shadow 0.3s;
    -o-transition: box-shadow 0.3s;
    transition: box-shadow 0.3s;
    transition: box-shadow 0.3s, -webkit-box-shadow 0.3s;
  }
  .header__wrapper._fixed {
    position: fixed;
  }
  .header__grid {
    padding: 0;
    gap: 30px;
  }
  .header__grid .logo img {
    max-height: 60px;
  }
  .header__grid .social {
    display: none;
  }
  .header__grid .top-phones {
    -ms-flex-item-align: center;
        -ms-grid-row-align: center;
        align-self: center;
    margin-bottom: 0;
  }
  .top-phones__descr {
    display: none;
  }
  .top-phones__drop {
    top: 50%;
    margin-top: 25px;
  }
  .menu {
    display: none;
  }
  .bann-slider .swiper-pagination {
    max-width: 954px;
  }
  .bann-slider .nav-arrow-prev,
  .bann-slider .nav-arrow-next {
    display: none;
  }
  .bann-item__wrap {
    margin: 0;
    padding: 50px 0 110px;
    min-height: 400px;
  }
  .bann-item__title {
    margin-bottom: 20px;
  }
  .bann-item__top {
    margin-bottom: 5px;
    font-size: 16px;
  }
  .bann-item__head {
    font-size: 34px;
  }
  .serv-link {
    padding: 10px 18px;
    min-height: 60px;
    font-size: 14px;
  }
  .serv-bot {
    gap: 10px 30px;
    font-size: 16px;
  }
  .service__action {
    margin-top: 30px;
  }
  .about-item__img {
    width: 380px;
  }
  .about-item__content {
    margin-bottom: 30px;
    padding-bottom: 25px;
  }
  .contacts__map {
    width: 380px;
  }
  .contacts__map > div {
    height: 300px;
  }
  .contacts-items {
    gap: 30px;
  }
  .contact-item__content > * {
    margin-bottom: 10px;
  }
  .reception__grid {
    display: block;
  }
  .reception__main {
    width: auto;
    padding: 0;
  }
  .reception__row {
    margin-bottom: 30px;
  }
  .reception__head {
    margin-bottom: 20px;
  }
  .reception__form {
    margin: 50px 0 0;
  }
  .main-map {
    height: 350px;
  }
  .footer__col._menu {
    display: none;
  }
  .main-grid {
    gap: 30px 0;
    margin: 0 -15px 0 0;
  }
  .main-grid__col {
    width: 25%;
    padding: 0 15px 0 0;
  }
  .service__slider {
    width: 420px;
    margin-left: 50px;
  }
  .advant-item {
    width: 33.33%;
  }
  .main-form__grid {
    margin: 0 -10px;
  }
  .main-form__grid > * {
    padding: 0 10px;
  }
  .main-form__grid .btn._medium {
    min-width: 180px;
  }
  .faq-item__btn {
    padding: 18px 50px 18px 20px;
    font-size: 16px;
  }
  .faq-item__btn i {
    right: 20px;
  }
  .faq-item__hidden {
    padding: 18px 20px;
  }
  .doc-item {
    font-size: 14px;
  }
  .doc-item__head {
    font-size: 16px;
  }
}
@media (max-width: 991px) {
  .container {
    width: 750px;
  }
  .mob-menu__row._search {
    display: block;
  }
  .header__grid .search-form {
    display: none;
  }
  .header__grid .top-phones {
    -webkit-box-flex: 0;
        -ms-flex: none;
            flex: none;
    margin-left: auto;
  }
  .bann-slider .swiper-pagination {
    max-width: 734px;
  }
  .bann-item__wrap {
    max-width: 360px;
  }
  .bann-item__head {
    font-size: 30px;
  }
  .about-item__grid {
    display: block;
  }
  .about-item__img {
    margin: 40px 0 0;
    width: auto;
  }
  .contacts {
    display: block;
  }
  .contacts__map {
    margin: 40px 0 0;
    width: auto;
  }
  .footer__main {
    padding: 30px 0;
  }
  .footer__grid {
    -ms-flex-wrap: wrap;
        flex-wrap: wrap;
    gap: 30px;
  }
  .footer__col:nth-child(n) {
    -webkit-box-flex: 1;
        -ms-flex: 1 0 0px;
            flex: 1 0 0;
    min-width: 40%;
  }
  .footer__col._links, .footer__col._contacts {
    -webkit-box-ordinal-group: 11;
        -ms-flex-order: 10;
            order: 10;
  }
  .footer__col .logo {
    margin-bottom: 20px;
  }
  .footer__head {
    margin-bottom: 20px;
  }
  .main-grid__col {
    width: 33.33%;
  }
  .service {
    display: block;
  }
  .service__slider {
    width: auto;
    margin: 40px 0 0;
  }
  .main-form {
    padding: 20px;
    border-width: 10px;
  }
  .main-form__el {
    display: none;
  }
  .team__main .title {
    margin-bottom: 25px;
  }
  .team__row {
    margin-bottom: 20px;
  }
  .team__img {
    margin-left: 40px;
    max-width: 240px;
  }
  .story-item__line:before {
    right: -20px;
  }
  .docs-grid {
    -ms-grid-columns: 1fr;
    grid-template-columns: 1fr;
  }
  .doc-item__head {
    font-size: 18px;
  }
}
@media (max-width: 767px) {
  .container {
    width: 550px;
  }
  h2, .h2 {
    font-size: 26px;
  }
  .form-item__head:empty {
    display: none;
  }
  .top-phones {
    padding-right: 27px;
  }
  .top-phones__main .phone {
    display: block;
    padding: 0;
    font-size: 0;
  }
  .top-phones__main .phone:before {
    position: relative;
    top: 0;
    margin: 0;
    font-size: 20px;
  }
  .top-phones__main p {
    display: none;
  }
  .top-phones__toggle {
    top: 50%;
  }
  .top-phones__drop {
    margin-top: 20px;
    width: 260px;
  }
  .bann-slider .swiper-pagination {
    max-width: 534px;
  }
  .bann-item {
    position: relative;
    z-index: 1;
  }
  .bann-item:after {
    content: "";
    position: absolute;
    z-index: -1;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: #FBFAFC;
    opacity: 0.8;
  }
  .bann-item__wrap {
    max-width: none;
  }
  .serv-links__col {
    width: 50%;
  }
  .reception__form {
    padding: 30px;
  }
  .partners-slider .swiper-slide {
    height: 50px;
  }
  .main-grid__col {
    width: 50%;
  }
  .advant-item {
    width: 50%;
  }
  .main-form__grid .form-item {
    width: 100%;
  }
  .main-form__grid .form-action {
    text-align: left;
  }
  .team {
    display: block;
  }
  .team__img {
    margin: 40px 0 0;
    max-width: 100%;
  }
  .story-item {
    font-size: 14px;
  }
  .story-item__top {
    margin: 0 0 20px;
    padding: 0.4em 1em;
    min-width: 0;
    font-size: 16px;
  }
  .story-item__line {
    margin-bottom: 20px;
  }
  .faq-item {
    font-size: 14px;
  }
  .doc-item__head {
    font-size: 16px;
  }
}
@media (max-width: 575px) {
  .container {
    width: 100%;
  }
  h1, .h1 {
    font-size: 26px;
  }
  h2, .h2 {
    font-size: 24px;
  }
  h3, .h3 {
    font-size: 20px;
  }
  h4, .h4 {
    font-size: 18px;
  }
  h5, .h5 {
    font-size: 17px;
  }
  .btn {
    padding: 18px 25px;
    min-width: 200px;
  }
  .btn._medium {
    padding: 14px 20px;
    min-width: 140px;
  }
  .tab-btn {
    font-size: 12px;
  }
  .tab-btns._buttons .tab-btn {
    font-size: 12px;
  }
  .nav-arrow-prev._ellips,
  .nav-arrow-next._ellips {
    width: 30px;
    height: 30px;
    line-height: 28px;
    font-size: 10px;
  }
  .nav-arrows .nav-arrow-prev {
    margin-right: 10px;
  }
  .sandwich span {
    display: none;
  }
  .header__grid {
    gap: 20px;
  }
  .bann-slider .swiper-pagination {
    max-width: 100%;
    padding: 0 8px;
  }
  .serv-links {
    gap: 10px 0;
    margin: 0 -5px;
  }
  .serv-links__col {
    padding: 0 5px;
  }
  .serv-link {
    min-height: 50px;
    font-size: 12px;
  }
  .serv-bot {
    font-size: 14px;
  }
  .contacts-items {
    gap: 20px;
  }
  .contact-item {
    width: 100%;
  }
  .team-item {
    font-size: 12px;
  }
  .team-item__head {
    font-size: 14px;
  }
  .news-item {
    font-size: 12px;
  }
  .news-item__head {
    font-size: 14px;
  }
  .reception__form {
    padding: 20px;
  }
  .footer__col:nth-child(n) {
    min-width: 100%;
  }
  .service__slider .nav-arrow-prev {
    left: 15px;
  }
  .service__slider .nav-arrow-next {
    right: 15px;
  }
  .service__action {
    display: block;
    margin-top: 25px;
  }
  .service__action-price {
    margin-bottom: 20px;
  }
  .advant-item {
    line-height: 1.4;
    font-size: 12px;
  }
  .advant-item .img-box {
    margin-bottom: 5px;
  }
  .main-form__grid .form-action .btn {
    min-width: 180px;
  }
  .serv-item {
    font-size: 12px;
  }
  .serv-item__head {
    font-size: 14px;
  }
  .serv-item .btn {
    min-width: 120px;
  }
  .story-slider {
    overflow: visible;
  }
  .story-slider .swiper-slide {
    width: 280px;
  }
  .faq-item__btn {
    padding: 14px 45px 14px 15px;
    font-size: 15px;
  }
  .faq-item__btn i {
    width: 15px;
    height: 15px;
    right: 15px;
  }
  .faq-item__btn i:before {
    height: 3px;
  }
  .faq-item__btn i:after {
    width: 3px;
  }
  .faq-item__hidden {
    padding: 18px 15px;
  }
  .docs-grid {
    gap: 10px;
  }
  .doc-item {
    padding: 10px;
  }
  .doc-item__icon {
    margin-right: 10px;
    width: 70px;
  }
  .doc-item__head {
    font-size: 14px;
  }
  .popup {
    padding: 30px 20px;
    max-width: none;
  }
}
/*==========  Mobile First Method  ==========*/
@media (min-width: 576px) {
  .form-action._grid {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
        -ms-flex-align: center;
            align-items: center;
  }
  .form-action._grid .form-btn {
    -ms-flex-item-align: start;
        align-self: flex-start;
  }
  .form-action._grid .form-action__policy {
    -webkit-box-flex: 1;
        -ms-flex: 1 0 0px;
            flex: 1 0 0;
    -webkit-box-ordinal-group: 2;
        -ms-flex-order: 1;
            order: 1;
    margin: 0 0 0 12px;
  }
}
@media (min-width: 1200px) {
  .header__grid .sandwich {
    display: none;
  }
  .team__subhead {
    font-size: 22px;
  }
}