/*==========  Desktop First Method  ==========*/
@media only screen and (max-width : 1660px) {

    body {
        font-size: 14px;
    }
    .header {
        top: 16px;
        padding: 24px 0;
    }
    .logo img {
        width: 70px;
    }
    .menu>ul {
        border-radius: 40px;
    }
    .menu>ul a {
        padding: 13px 24px;
    }
    .menu>ul a::after {
        top: 13px;
        bottom: 13px;
    }
    .header .btn-main__text {
        padding: 0 26px;
        height: 45px;
    }
    .header .btn-main__arrow {
        width: 40px;
    }

    .billbord {
        margin: 16px;
        border-radius: 24px;
    }
    .billbord__content {
        height: 756px;
        padding-top: 183px;
        padding-bottom: 32px;
    }
    .billbord__title {
        font-size: 51px;
        max-width: 734px;
        margin-bottom: 32px;
    }
    .billbord__line {
        gap: 24px;
    }
    .billbord__descr {
        font-size: 16px;
        max-width: 257px;
    }
    .btn-main {
        border-radius: 40px;
    }
    .btn-main__text {
        height: 51px;
        padding: 0 16px;
        font-size: 14px;
        border-radius: 40px;
    }
    .btn-main__arrow {
        width: 45px;
        background-size: 19px auto;
    }
    .billbord__bottom {
        gap: 19px;
    }
    .unit-billbord {
        padding: 16px;
        border-radius: 16px;
    }
    .unit-billbord__title {
        font-size: 16px;
        margin-bottom: 8px;
        gap: 8px;
    }
    .unit-billbord__title::after {
        width: 19px;
        height: 19px;
    }
    .unit-billbord:hover .unit-billbord__content {
        max-height: 318px;
    }

    .about {
        padding: 80px 0;
    }
    .about__wrapper {
        gap: 56px;
    }
    .title-section {
        font-size: 38px;
    }
    .about .title-section {
        margin-bottom: 40px;
        max-width: 541px;
    }
    .item-about {
        font-size: 14px;
        margin-bottom: 24px;
    }
    .icon-page {
        width: 48px;
        height: 48px;
        margin-bottom: 16px;
    }
    .title-small {
        font-size: 20px;
        margin-bottom: 8px;
    }
    .about__main img {
        border-radius: 16px;
    }
    .title-unit {
        padding: 13px 16px;
        border-radius: 48px;
    }

    .services {
        padding-bottom: 80px;
    }
    .head-section .title-section {
        margin-bottom: 16px;
    }
    .head-section {
        max-width: 758px;
        margin-bottom: 40px;
    }
    .descr-section {
        font-size: 14px;
    }
    .item-service {
        gap: 24px;
        padding-bottom: 24px;
        margin-bottom: 24px;
    }
    .item-service__number {
        font-size: 67px;
        width: 44px;
    }
    .item-service__text {
        font-size: 14px;
    }
    .item-service__content .title-small {
        margin-bottom: 16px;
    }
    .item-service__text,
    .item-service .tags {
        margin-bottom: 32px;
    }
    .tags {
        gap: 8px;
    }
    .tags__item {
        padding: 10px 13px;
        border-radius: 48px;
    }
    .link-page {
        font-size: 14px;
        gap: 16px;
    }
    .link-page img {
        width: 19px;
    }
    .item-service__image {
        width: 340px;
        height: 274px;
        border-radius: 16px;
    }
    .item-service__image img {
        border-radius: 16px;
    }
    .item-service__arrow img {
        width: 32px;
    }
    .cta {
        padding: 40px;
        margin: 40px -40px;
        border-radius: 24px;
    }
    .cta__content {
        width: 466px;
        padding: 32px;
        border-radius: 16px;
    }
    .cta__content .title-section {
        font-size: 30px;
        margin-bottom: 16px;
    }
    .item-cta {
        margin-bottom: 16px;
        gap: 16px;
    }
    .title-min {
        font-size: 14px;
        margin-bottom: 8px;
    }
    .cta__content .descr-section {
        margin-bottom: 24px;
    }
    .cta__content .btn-main {
        margin-top: 24px;
    }

    .footer {
        margin: 16px;
    }
    .footer__main {
        padding-top: 24px;
        padding-bottom: 64px;
        border-radius: 24px;
    }
    .footer__top {
        padding-bottom: 24px;
    }
    .footer__middle {
        gap: 115px;
        padding-top: 57px;
    }
    .footer .title-small {
        margin-bottom: 24px;
    }
    .footer__grid {
        gap: 32px 48px;
        font-size: 14px;
    }
    .footer__title {
        font-size: 11px;
        margin-bottom: 8px;
    }
    .footer__contact p {
        margin-bottom: 8px;
    }
    .footer__contact img {
        width: 19px;
        margin-left: 6px;
    }
    .title-form {
        font-size: 30px;
        margin-bottom: 40px;
    }
    .grid-form {
        gap: 16px;
    }
    .item-form {
        margin-bottom: 16px;
    }
    .item-form textarea,
    .item-form input {
        height: 48px;
        padding: 0 16px;
        font-size: 13px;
        border-radius: 56px;
    }
    .footer__form .btn-main__text {
        height: 48px;
    }
    .agree-form {
        font-size: 10px;
        padding: 8px;
    }
    .footer__bottom {
        font-size: 11px;
        padding-top: 16px;
    }
    .footer__requisites {
        gap: 40px;
    }
    .footer__links {
        gap: 24px;
    }
    .socials-main a {
        font-size: 16px;
    }
    .modal-wrap {
        width: 475px;
    }
    .modal-wrap_thanks {
        width: 400px;
    }
}
/* Large Devices, Wide Screens */
@media only screen and (max-width : 1200px) {

    body {
        font-size: 11px;
    }
    .header {
        top: 13px;
        padding: 19px 0;
    }
    .logo img {
        width: 55px;
    }
    .menu>ul {
        border-radius: 31px;
    }
    .menu>ul a {
        padding: 10px 19px;
    }
    .menu>ul a::after {
        top: 10px;
        bottom: 10px;
    }
    .header .btn-main__text {
        padding: 0 20px;
        height: 35px;
    }
    .header .btn-main__arrow {
        width: 31px;
    }

    .billbord {
        margin: 13px;
        border-radius: 19px;
    }
    .billbord__content {
        height: 595px;
        padding-top: 147px;
        padding-bottom: 25px;
    }
    .billbord__title {
        font-size: 40px;
        max-width: 578px;
        margin-bottom: 25px;
    }
    .billbord__line {
        gap: 19px;
    }
    .billbord__descr {
        font-size: 13px;
        max-width: 203px;
    }
    .btn-main {
        border-radius: 31px;
    }
    .btn-main__text {
        height: 40px;
        padding: 0 13px;
        font-size: 13px;
        border-radius: 31px;
    }
    .btn-main__arrow {
        width: 35px;
        background-size: 15px auto;
    }
    .billbord__bottom {
        gap: 15px;
    }
    .unit-billbord {
        padding: 13px;
        border-radius: 13px;
    }
    .unit-billbord__title {
        font-size: 13px;
        margin-bottom: 6px;
        gap: 6px;
    }
    .unit-billbord__title::after {
        width: 15px;
        height: 15px;
    }
    .unit-billbord:hover .unit-billbord__content {
        max-height: 250px;
    }

    .about {
        padding: 63px 0;
    }
    .about__wrapper {
        gap: 44px;
    }
    .title-section {
        font-size: 30px;
    }
    .about .title-section {
        margin-bottom: 31px;
        max-width: 425px;
    }
    .item-about {
        font-size: 11px;
        margin-bottom: 19px;
    }
    .icon-page {
        width: 38px;
        height: 38px;
        margin-bottom: 13px;
    }
    .title-small {
        font-size: 16px;
        margin-bottom: 6px;
    }
    .about__main img {
        border-radius: 13px;
    }
    .title-unit {
        padding: 10px 13px;
        border-radius: 38px;
    }

    .services {
        padding-bottom: 63px;
    }
    .head-section .title-section {
        margin-bottom: 13px;
    }
    .head-section {
        max-width: 596px;
        margin-bottom: 31px;
    }
    .descr-section {
        font-size: 11px;
    }
    .item-service {
        gap: 19px;
        padding-bottom: 19px;
        margin-bottom: 19px;
    }
    .item-service__number {
        font-size: 53px;
        width: 35px;
    }
    .item-service__text {
        font-size: 11px;
    }
    .item-service__content .title-small {
        margin-bottom: 13px;
    }
    .item-service__text,
    .item-service .tags {
        margin-bottom: 25px;
    }
    .tags {
        gap: 6px;
    }
    .tags__item {
        padding: 8px 10px;
        border-radius: 38px;
    }
    .link-page {
        font-size: 11px;
        gap: 13px;
    }
    .link-page img {
        width: 15px;
    }
    .item-service__image {
        width: 267px;
        height: 215px;
        border-radius: 13px;
    }
    .item-service__image img img {
        border-radius: 13px;
    }
    .item-service__arrow img {
        width: 25px;
    }
    .cta {
        padding: 31px;
        margin: 31px -31px;
        border-radius: 19px;
    }
    .cta__content {
        width: 366px;
        padding: 25px;
        border-radius: 13px;
    }
    .cta__content .title-section {
        font-size: 23px;
        margin-bottom: 13px;
    }
    .item-cta {
        margin-bottom: 13px;
        gap: 13px;
    }
    .title-min {
        font-size: 11px;
        margin-bottom: 6px;
    }
    .cta__content .descr-section {
        margin-bottom: 19px;
    }
    .cta__content .btn-main {
        margin-top: 19px;
    }

    .footer {
        margin: 13px;
    }
    .footer__main {
        padding-top: 19px;
        padding-bottom: 50px;
        border-radius: 19px;
    }
    .footer__top {
        padding-bottom: 19px;
    }
    .footer__middle {
        gap: 106px;
        padding-top: 45px;
    }
    .footer .title-small {
        margin-bottom: 19px;
    }
    .footer__grid {
        gap: 25px 38px;
        font-size: 11px;
    }
    .footer__title {
        font-size: 9px;
        margin-bottom: 6px;
    }
    .footer__contact p {
        margin-bottom: 6px;
    }
    .footer__contact img {
        width: 15px;
        margin-left: 5px;
    }
    .title-form {
        font-size: 23px;
        margin-bottom: 31px;
    }
    .grid-form {
        gap: 13px;
    }
    .item-form {
        margin-bottom: 13px;
    }
    .item-form textarea,
    .item-form input {
        height: 38px;
        padding: 0 13px;
        font-size: 13px;
        border-radius: 44px;
    }
    .footer__form .btn-main__text {
        height: 38px;
    }
    .agree-form {
        font-size: 8px;
        padding: 6px;
    }
    .footer__bottom {
        font-size: 9px;
        padding-top: 13px;
    }
    .footer__requisites {
        gap: 31px;
    }
    .footer__links {
        gap: 19px;
    }
    .modal-wrap {
        width: 426px;
    }
    .socials-main a {
        font-size: 14px;
    }
    .modal-wrap_thanks {
        width: 360px;
    }
}

/* Medium Devices, Desktops */
@media only screen and (max-width : 992px) {
    .header__wrapper .btn-main,
    .header__wrapper .menu {
        display: none;
    }
    .billbord {
        margin: 10px;
        border-radius: 16px;
        background-image: url(../img/billbord_mob.jpg);
    }
    .container {
        padding: 0 10px;
    }
    .header__wrapper {
        padding: 0 15px;
    }
    .logo img {
        width: 88px;
    }
    .header {
        top: 10px;
        padding: 15px 0;
    }
    .billbord__content {
        padding: 0 10px;
        padding-top: 82px;
        height: 710px;
        padding-bottom: 21px;
        position: relative;
    }
    .billbord__line .btn-main {
        bottom: 21px;
        left: 10px;
        right: 10px;
        display: flex;
        position: absolute;
    }
    .billbord__line .btn-main .btn-main__text {
        flex: 1;
    }
    .billbord__bottom {
        display: none;
    }
    .billbord__line {
        display: block;
    }
    .billbord__title {
        font-size: 29px;
        margin-bottom: 15px;
        line-height: 110%;
    }
    .billbord__descr {
        font-size: 14px;
        max-width: 100%;
    }
    .btn-main {
        border-radius: 50px;
    }
    .btn-main__text {
        height: 64px;
        padding: 0 20px;
        font-size: 16px;
        border-radius: 50px;
    }
    .btn-main__arrow {
        width: 57px;
        background-size: 24px auto;
    }
    .phone-mob {
        width: 44px;
        height: 44px;
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        background: #fff;
        flex: none;
    }

    .about__wrapper {
        padding-top: 40px;
        display: block;
    }
    .unit-about {
        margin-bottom: 10px;
        border-radius: 15px;
        border: 2px solid #EBEBEB;
    }
    .unit-about:last-child {
        margin-bottom: 0;
    }
    .unit-about__title {
        font-size: 18px;
        padding: 15px;
        line-height: 133%;
        gap: 10px;
        font-weight: 600;
        cursor: pointer;
        opacity: 0.8;
        color: #131414;
        display: flex;
        align-items: flex-start;
        justify-content: space-between;
    }
    .unit-about__content {
        padding: 15px;
        padding-top: 0;
        display: none;
    }
    .unit-about__title::after {
        position: relative;
        display: block;
        content: " ";
        width: 24px;
        height: 24px;
        flex: none;
        background-image: url(../img/arrow_down.svg);
        background-repeat: no-repeat;
        background-position: center;
        background-size: contain;
        transition: all 0.3s;
        transform: rotate(-90deg);
    }
    .unit-about.active .unit-about__title::after {
        transform: none;
    }
    .hidden-mobile {
        display: none !important;
    }
    .title-unit {
        padding: 10px 15px;
        border-radius: 60px;
        margin-bottom: 10px;
        font-size: 12px;
    }
    body {
        font-size: 14px;
    }
    .title-section {
        font-size: 25px;
        line-height: 112%;
    }
    .about .title-section {
        margin-bottom: 20px;
        max-width: 100%;
    }
    .icon-page {
        width: 40px;
        height: 40px;
        margin-bottom: 20px;
    }
    .item-about {
        font-size: 14px;
        margin-bottom: 30px;
        line-height: 129%;
    }
    .title-small {
        font-size: 18px;
        margin-bottom: 10px;
    }
    .about__wrapper img {
        border-radius: 20px;
        margin-top: 20px;
        max-width: 100%;
        height: auto;
    }
    .about {
        padding: 40px 0;
    }

    .head-section .title-section {
        margin-bottom: 20px;
    }
    .head-section {
        margin-bottom: 20px;
        text-align: left;
    }
    .descr-section {
        font-size: 14px;
        line-height: 129%;
    }
    .item-service {
        padding-bottom: 0;
        margin-bottom: 20px;
        border: none;
        display: block;
        position: relative;
        z-index: 1;
    }
    .item-service__number {
        font-size: 48px;
        position: absolute;
        top: 0;
        left: 0;
        font-weight: 600;
        z-index: -1;
        width: auto;
    }
    .item-service__text {
        font-size: 14px;
        line-height: 129%;
    }
    .tags {
        gap: 5px;
    }
    .tags__item {
        padding: 12px;
    }
    .link-page {
        font-size: 14px;
        gap: 20px;
    }
    .link-page img {
        width: 24px;
    }
    .item-service__image {
        height: 273px;
        width: 100%;
        border-radius: 20px;
        margin-top: 20px;
    }
    .item-service__image img {
        border-radius: 20px;
    }
    .item-service__arrow {
        display: none;
    }
    .cta {
        padding: 10px;
        padding-bottom: 306px;
        margin: 40px 0;
        border-radius: 20px;
        background-image: url(../img/cta_mob.jpg);
    }
    .cta__content .title-section {
        font-size: 25px;
        margin-bottom: 10px;
    }
    .item-cta {
        margin-bottom: 20px;
        gap: 20px;
    }
    .title-min {
        font-size: 16px;
        margin-bottom: 10px;
    }
    .cta__content {
        padding: 20px;
        width: 100%;
        border-radius: 20px;
    }

    .services {
        padding-bottom: 40px;
    }
    .footer {
        margin: 10px;
    }
    .footer__main {
        padding: 20px 10px;
        border-radius: 15px;
        background-image: url(../img/bg_footer_mob.jpg);
    }
    .footer .menu {
        display: none;
    }
    .footer__middle {
        padding-top: 20px;
        text-align: center;
        display: flex;
        flex-direction: column;
        gap: 0px;
    }
    .footer__content {
        order: -1;
    }
    .footer__top {
        padding-bottom: 20px;
        justify-content: center;
    }
    .footer__grid {
        font-size: 14px;
        line-height: 129%;
        display: block;
    }
    .footer__title {
        font-size: 12px;
        margin-bottom: 10px;
    }
    .footer__contact {
        margin-bottom: 20px;
    }
    .footer__contact:last-child {
        margin-bottom: 0;
    }
    .footer__form {
        padding-top: 24px;
    }
    .title-form {
        font-size: 20px;
        margin-bottom: 20px;
    }
    .grid-form {
        display: block;
    }
    .grid-form .item-form {
        margin-bottom: 10px;
    }
    .item-form textarea, .item-form input {
        height: 60px;
        font-size: 16px;
        padding: 0 20px;
        border-radius: 70px;
    }
    .footer__form .btn-main__text {
        height: 56px;
    }
    .footer__form .btn-main {
        width: 100%;
    }
    .agree-form {
        font-size: 12px;
        padding: 0;
        padding-top: 10px;
    }
    .footer__requisites {
        display: none;
    }
    .footer__wrapper {
        gap: 10px;
        justify-content: center;
        text-align: center;
        flex-wrap: wrap;
    }
    .footer__bottom {
        font-size: 14px;
        padding-top: 10px;
    }
    .footer__links {
        gap: 10px;
        justify-content: space-between;
        width: 100%;
    }
    .footer__contact img {
        width: 22px;
        margin-left: 10px;
    }
    .modal-wrap .title-small {
        font-size: 20px;
    }
    .descr-modal {
        margin-bottom: 20px;
    }
    .modal-wrap {
        padding: 20px;
        padding-bottom: 94px;
    }
    .socials-main {
        gap: 10px;
        flex-direction: column;
        align-items: center;
    }

    .fancybox-slide--html .fancybox-close-small {
        width: 44px;
        height: 44px;
        top: auto;
        right: 0;
        left: 0;
        bottom: 20px;
        margin: 0 auto;
    }
    .socials-main a {
        font-size: 18px;
    }
    .fancybox-simple .fancybox-slide--html .fancybox-close-small {
        width: 34px;
        height: 34px;
        right: 14px;
        top: 14px;
        left: auto;
        margin: 0;
    }
    .modal-wrap.modal-wrap_thanks {
        padding: 50px 40px;
    }
}



/* Medium Devices, Desktops */
@media only screen and (min-width : 992px) {
    .container {
        max-width: 920px;
    }
    .show-mobile,
    .phone-mob {
        display: none !important;
    }
}

/* Large Devices, Wide Screens */
@media only screen and (min-width : 1200px) {
    .container {
        max-width: 1170px;
    }
}
@media (min-width: 1660px) {
    .container {
        max-width: 1470px;
    }
}

@media (hover: hover) {
    .menu>ul a:hover {
        color: #fff;
    }
    .btn-main:hover .btn-main__text::before {
        right: -70px;
    }
    .btn-main:hover .btn-main__arrow {
        filter: brightness(10%);
        transform: rotate(45deg);
    }
    .btn-main.btn-main_page:hover .btn-main__arrow {
        filter: brightness(0) invert(1);
    }
    .tags__item:hover {
        color: #0394D8;
        border-color: #0394D8;
    }
    .link-page:hover {
        color: #0394D8;
    }
    .item-service__arrow:hover,
    .link-page:hover img {
        filter: brightness(1.75);
    }
    .phone-mob:hover {
        background: #166184;
    }
    .phone-mob:hover img {
        filter: brightness(0) invert(1);
    }
    .footer__bottom a:hover {
        color: #5E6568;
    }
}
@media (hover: none) {
    .menu>ul a:active {
        color: #fff;
    }
    .btn-main:active .btn-main__text::before {
        right: -70px;
    }
    .btn-main:active .btn-main__arrow {
        filter: brightness(10%);
        transform: rotate(45deg);
    }
    .btn-main.btn-main_page:active .btn-main__arrow {
        filter: brightness(0) invert(1);
    }
    .tags__item:active {
        color: #0394D8;
        border-color: #0394D8;
    }
    .link-page:active {
        color: #0394D8;
    }
    .item-service__arrow:active,
    .link-page:active img {
        filter: brightness(1.75);
    }
    .phone-mob:active {
        background: #166184;
    }
    .phone-mob:active img {
        filter: brightness(0) invert(1);
    }
    .footer__bottom a:active {
        color: #5E6568;
    }
}