@media screen and (min-height: 901px) {
    .main-slider {
        min-height: auto;
    }
    .main-slide {
        min-height: auto;
    }
}
@media screen and (min-height: 650px) and (max-height: 850px) and (min-width: 1024px) {
    .main-slider,
    .main-slide {
        min-height: calc(100vh - 90px);
    }
    .partners,
    .about,
    .pbx,
    .callCenters,
    .events {
        max-height: calc(100vh - 90px);
        height: calc(100vh - 90px);
        -webkit-box-sizing: border-box;
        -moz-box-sizing: border-box;
        box-sizing: border-box;
        padding: 60px 0;
    }
    .events {
        padding: 60px 0 200px;
    }
    .partners .container,
    .about .container,
    .callCenters .container,
    .events .container,
    .pbx .container {
        height: 100%;
        display: flex;
        flex-direction: column;
        justify-content: space-around;
    }
    .callCenters .container,
    .events .container {
        justify-content: center;
    }

    .partners h2 {
        margin-bottom: 30px;
    }
    .pbx h2 {
        margin-bottom: 20px;
    }
    .pbx .section-desc {
        margin-bottom: 40px;
    }
    .partners .section-desc {
        margin-top: 30px;
    }
}
@media screen and (min-width: 1366px) {
    .first-slide {
        background-position: left center;
    }
}
@media screen and (max-width: 1360px) {
    .second-slide {
        background-position: bottom right -138px,left top;
    }    
}
@media screen and (max-width: 1200px) {
    .second-slide {
        background-size: 600px auto,auto;
        background-position: bottom right -90px, left top;
    }
}
@media screen and (max-width: 1050px) {
    .about {
        padding: 60px 0;
    }
    .section-desc {
        margin-bottom: 40px;
    }
    .about .section-item {
        padding: 20px 15px 40px;
    }
    .about .section-item-desc br {
        display: none;
    }
    .partners {
        padding: 60px 0;
    }
    .partners h2 {
        margin-bottom: 40px;
    }
    .partners .section-desc {
        margin-top: 40px;
    }
    .pbx {
        padding: 60px 0;
    }
    .sectiom-img-wrap img {
        width: 100%;
        max-width: 100%;
    }
    .section-img-desc {
        margin-left: 7%;
    }
    .callCenters {
        padding: 60px 0 60px;
    }
    .sms .section-item {
        padding: 0 13px;
    }
    .sms .section-item-desc br {
        display: none;
    }
    .events {
        padding: 60px 0 190px;
    }
    .events h2 {
        margin-bottom: 30px;
    }
    .events-description {
        margin-bottom: 170px;
        text-align: center;
    }
    .events-description br {
        display: none;
    }
    .events-diagram {
        justify-content: center;
        padding: 0;
    }
    .contacts {
        padding: 60px 0;
    }
    .contacts-addr {
        margin-left: 0;
    }
    .contacts-link {
        margin-left: 0;
    }
}
@media screen and (max-width: 900px) {
    .logo {
        margin-left: 0;
    }
    .main-slide-capture {
        padding-left: 20px;
        font-size: 54px;
        line-height: 1.2;
    }
    .second-slide .main-slide-capture {
        font-size: 50px;
    }
    .main-slider .slick-dots {
        padding-left: 20px;
    }
    .text-section h2 {
        font-size: 38px;
    }
    .section-desc {
        font-size: 20px;
    }
    .about .section-item {
        padding: 0;
        width: 100%;
        border-right: none;
        margin-bottom: 15px;
    }
    .about .section-item:last-child {
        margin-bottom: 0;
    }
    .about .section-item h3 {
        margin-bottom: 0;
    }
    .events-description {
        font-size: 20px;
    }
    .events h2 {
        margin-bottom: 30px;
    }
    .contacts-desc h3 {
        font-size: 22px;
    }
    .contacts-form h3 {
        font-size: 22px;
    }
    .contacts-form {
        padding: 35px 30px 65px;
    }
    .copyright {
        margin-left: 0;
    }
    .form-result {
        left: 30px;
    }
}
@media screen and (max-width: 850px) {
    .pbx .section-item {
        width: 50%;
    }
    .pbx .section-item:nth-child(odd) {
        border-right: 1px dashed #49AE57;
    }
    .pbx .section-item:nth-child(even) {
        border-right: none;
    }
    .pbx .section-item:nth-child(3) {
        padding-top: 38px;
    }
    .pbx .section-item:nth-child(4) {
        border-bottom: 1px dashed #49AE57;
    }
    .pbx .section-item:nth-child(3):after {
        display: block;
    }
    .pbx .section-item:nth-child(4):after {
        display: none;
    }
}
@media screen and (max-width: 800px) {
    #menuBtn {
        display: block;
    }
    header {
        height: 60px;
    }
    .logo img {
        max-width: 60px;
    }
    .header-menu {
        position: fixed;
        top: 0;
        right: -100%;
        bottom: 0;
        background: #271D56;
        -webkit-box-sizing: border-box;
        -moz-box-sizing: border-box;
        box-sizing: border-box;
        padding-top: 60px;
        -webkit-transition: .2s;
        -moz-transition: .2s;
        -ms-transition: .2s;
        -o-transition: .2s;
        transition: .2s;
        overflow-y: auto;
        width: 100%;
        max-width: 320px;
    }
    .header-menu.active {
        right: 0;
    }
    .header-menu ul {
        flex-direction: column;
        align-items: flex-start;
        padding-left: 24px;
    }
    .header-menu ul li {
        margin-left: 0;
        margin-bottom: 30px;
    }
    .header-menu ul li a {
        font-size: 18px;
        font-weight: 600;
        line-height: 1.4;
    }
    .main {
        margin-top: 60px;
    }
    .main-slider {
        height: 508px;
        min-height: calc(100vh - 60px);
    }
    .main-slide {
        height: 508px;
        min-height: calc(100vh - 60px);
    }
    .main-slider .slick-dots {
        bottom: 40px;
    }
    .main-slide-capture {
        font-size: 44px;
        margin-top: 40px;
    }
    .second-slide .main-slide-capture {
        font-size: 40px;
        margin-top: 37px;
    }
    .section-wrap {
        flex-wrap: wrap;
    }
    .section-img-desc {
        margin-left: 0;
        margin-top: 30px;
        max-width: 600px;
    }
    .event-item {
        margin: 0 30px;
    }
    .event-item-capture h3 {
        font-size: 15px;
    }
    .event-item-capture h4 {
        font-size: 15px;
    }
    .contacts-wrap {
        flex-direction: column;
    }
    .contacts-desc {
        width: 100%;
        margin-right: 0;
        display: flex;
        justify-content: center;
        margin-bottom: 10px;
    }
    .contacts-desc div:first-child {
        margin-right: 40px;
    }
    .contacts-soc {
        margin-top: 0;
    }
    .contacts-link:nth-child(2) {
        margin-bottom: 13px;
    }
    .second-slide {
        background-size: auto auto,auto;
        background-position: bottom right -138px, left top;
    }
}
@media screen and (max-width: 700px) {
    .text-section h2 {
        text-align: left;
    }
    .section-desc {
        text-align: left;
    }
    .section-desc br {
        display: none;
    }
    .about .section-item {
        align-items: flex-start;
    }
    .about .section-item h3 {
        justify-content: flex-start;
    }
    .about .section-item-desc {
        text-align: left;
    }
    .partners .section-items {
        justify-content: flex-start;
    }
    .partners .section-item {
        width: 33.333%;
        border-right: 1px dashed #3F3378;
        border-bottom: 1px dashed #3F3378;
    }
    .partners .section-item:nth-child(4n) {
        border-right: 1px dashed #3F3378;
    }
    .partners .section-item:nth-child(3n) {
        border-right: none;
    }
    .partners .section-item:nth-child(n+5) {
        border-top: none;
    }
    .partners .section-item:nth-child(n+7){
        border-bottom: none;
    }
    .partners .section-item:nth-child(6):after {
        display: none;
    }
    .partners .section-item:nth-child(4):after,
    .partners .section-item:nth-child(5):after,
    .partners .section-item:nth-child(7):after,
    .partners .section-item:nth-child(8):after {
        display: block;
    }
    .pbx .section-item:nth-child(n) {
        width: 100%;
        border-right: none;
        height: auto;
        align-items: flex-start;
        text-align: left;
        border-bottom: 1px dashed #49AE57;
        padding: 15px 0;
    }
    .pbx .section-item:last-child {
        border-bottom: none;
        padding-bottom: 0;
    }
    .pbx .section-item:nth-child(n):after {
        display: none;
    }
    .pbx .section-item h3 br {
        display: none;
    }
    .pbx .section-item-desc br {
        display: none;
    }
    .section-wrap {
        justify-content: flex-start;
    }
    .section-img-desc {
        max-width: 100%;
    }
    .events-description {
        text-align: left;
    }
    .contacts-desc {
        justify-content: space-between;
    }
    .contacts-desc div:first-child {
        margin-right: 0;
    }
}
@media screen and (max-width: 600px) {
    .events {
        padding: 60px 0;
    }
    .events-description {
        margin-bottom: 0;
    }
    .events-diagram {
        justify-content: flex-end;
        height: auto;
        padding: 20px 0;
        width: 280px;
        margin: 0 auto;
    }
    .events-line {
        width: 1px;
        height: 480px;
        left: auto;
        right: 0;
        margin-right: 24px;
        margin-top: 0;
    }
    .event-item-wrap {
        flex-direction: column;
    }
    .event-item {
        margin: 20px 0;
    }
    .event-item:after {
        width: 24px;
        height: 49px;
        left: 0;
        top: 0;
        margin-top: 0;
    }
    .event-item-wrap .event-item:nth-child(even):after {
        margin-left: 25px;
    }
    .event-item:nth-child(n) .event-item-point:after {
        top: 50%;
        margin-top: -5px;
        left: auto;
        margin-left: 0;
        right: 100%;
        margin-right: 10px;
    }
    .event-item-point:before {
        top: 50%;
        margin-top: -2px;
        left: 100%;
        margin-left: 2px;
    }
    .event-item:nth-child(even) .event-item-point:before {
        bottom: auto;
        margin-bottom: 0;
        top: 50%;
        margin-top: -2px;
        left: auto;
        margin-left: 0;
        right: 100%;
        margin-right: 2px;
    }
    .event-item-capture {
        width: 180px;
        text-align: center;
    }
    .event-item:nth-child(n) .event-item-capture {
        left: auto;
        top: 50%;
        bottom: auto;
        right: 105px;
        -webkit-transform: translate(0,-50%);
        -moz-transform: translate(0,-50%);
        -ms-transform: translate(0,-50%);
        -o-transform: translate(0,-50%);
        transform: translate(0,-50%);
    }
    .event-item:nth-child(n) .event-item-capture:before {
        left: 100%;
        right: auto;
        top: 50%;
        margin-top: -1px;
        bottom: auto;
        margin-bottom: 0;
        margin-right: 0;
        width: 40px;
        height: 2px;
    }
    .event-item:nth-child(n) .event-item-capture:after {
        left: 100%;
        bottom: auto;
        top: 50%;
        margin-top: -2px;
        margin-left: -6px;
        margin-bottom: 0;
    }
    .contacts-desc {
        flex-direction: column;
    }
    .contacts-desc br {
        display: none;
    }
    .contacts-soc {
        margin-top: 30px;
        margin-bottom: 40px;
    }
}
@media screen and (max-width: 550px) {
    .second-slide {
        background-position: 55% top;
    }
    .main-slide-capture {
        font-size: 34px;
        padding-right: 20px;
    }
    .second-slide .main-slide-capture {
        font-size: 34px;
    }
    .main-slide-capture br {
        display: none;
    }
    .about {
        padding: 40px 0;
    }
    .text-section h2 {
        font-size: 29px;
        line-height: 1.2;
        margin-bottom: 13px;
    }
    .section-desc {
        font-size: 18px;
        margin-bottom: 18px;
    }
    .about .section-item h3 {
        font-size: 22px;
        line-height: 1.3;
    }
    .about .section-item h3 span {
        font-size: 22px;
        font-weight: 600;
        line-height: 1.3;
    }
    .about .section-item-desc {
        font-size: 15px;
        line-height: 1.4;
    }
    .about .section-item {
        margin-bottom: 20px;
    }
    .partners {
        padding: 40px 0;
    }
    .partners h2 {
        margin-bottom: 20px;
    }
    .partners .section-desc {
        margin-top: 20px;
        font-weight: 400;
    }
    .partners .section-item {
        width: 50%;
        height: 88px;
    }
    .partners .section-item:nth-child(1),
    .partners .section-item:nth-child(2),
    .partners .section-item:nth-child(5),
    .partners .section-item:nth-child(6) {
        border-right: 1px dashed #3F3378;
    }
    .partners .section-item:nth-child(3),
    .partners .section-item:nth-child(4),
    .partners .section-item:nth-child(7),
    .partners .section-item:nth-child(8) {
        border-right: none;
    }
    .partners .section-item:nth-child(1):after,
    .partners .section-item:nth-child(3):after,
    .partners .section-item:nth-child(4):after,
    .partners .section-item:nth-child(7):after,
    .partners .section-item:nth-child(8):after {
        display: none;
    }
    .partners .section-item:nth-child(2):after,
    .partners .section-item:nth-child(5):after,
    .partners .section-item:nth-child(6):after {
        display: block;
    }
    .partners .section-item:nth-child(n) {
        border-bottom: 1px dashed #3F3378;
    }
    .partners .section-item:nth-child(2),
    .partners .section-item:nth-child(8) {
        border-bottom: none;
    }
    .partners .section-item:nth-child(1) {
        order: 1;
    }
    .partners .section-item:nth-child(1) img {
        width: 42px;
    }
    .partners .section-item:nth-child(2) {
        order: 7;
    }
    .partners .section-item:nth-child(2) img {
        width: 99px;
    }
    .partners .section-item:nth-child(3) {
        order: 2;
    }
    .partners .section-item:nth-child(3) img {
        width: 108px;
    }
    .partners .section-item:nth-child(4) {
        order: 4;
    }
    .partners .section-item:nth-child(4) img {
        width: 44px;
    }
    .partners .section-item:nth-child(5) {
        order: 3;
    }
    .partners .section-item:nth-child(5) img {
        width: 79px;
    }
    .partners .section-item:nth-child(6) {
        order: 5;
    }
    .partners .section-item:nth-child(6) img {
        width: 81px;
    }
    .partners .section-item:nth-child(7) {
        order: 6;
    }
    .partners .section-item:nth-child(7) img {
        width: 80px;
    }
    .partners .section-item:nth-child(8) {
        order: 8;
    }
    .partners .section-item:nth-child(8) img {
        width: 87px;
    }
    .pbx {
        padding: 40px 0;
    }
    .pbx h2 {
        margin-bottom: 10px;
    }
    .pbx .section-desc {
        margin-bottom: 5px;
    }
    .pbx .section-item h3 {
        font-size: 17px;
        margin-bottom: 10px;
    }
    .pbx .section-item-desc {
        font-size: 15px;
    }
    .callCenters {
        padding: 40px 0;
    }
    .callCenters .section-desc {
        margin-top: 20px;
        margin-bottom: 30px;
    }
    .section-img-desc {
        margin-top: 45px;
        font-size: 15px;
    }
    .events {
        padding: 40px 0;
    }
    .events-description {
        font-size: 18px;
    }
    .contacts {
        padding: 40px 0 0;
    }
    .contacts-desc h3 {
        font-size: 18px;
    }
    .contacts-addr {
        font-size: 15px;
        margin-bottom: 15px;
    }
    .contacts-link:nth-child(n) {
        margin-bottom: 15px;
    }
    .contacts-soc {
        margin-top: 0;
    }
    .contacts-soc a {
        height: 40px;
        width: 40px;
    }
    .contacts-soc svg {
        width: 15px;
        height: 14px;
    }
    .contacts-desc {
        margin-bottom: 0;
    }
    .contacts-form h3 {
        font-size: 18px;
        text-align: left;
    }
    .contacts-form h3 br {
        display: none;
    }
    .contacts-form {
        padding: 40px 20px 98px;
        width: calc(100% + 40px);
        margin-left: -20px;
    }
    .input-wrap:nth-child(1),
    .input-wrap:nth-child(2) {
        width: 100%;
        margin-right: 0;
    }
    .contacts-form button {
        width: 36px;
        height: 36px;
        background-color: #49AE57;
        top: auto;
        right: 26px;
        bottom: 46px;
    }
    .contacts-form button:after {
        width: 48px;
        height: 48px;
        margin-top: -24px;
        margin-left: -24px;
        border-color: #49AE57;
    }
    .contacts-form button svg {
        width: 18px;
        height: 9px;
        stroke-width: 2px;
    }
    .input-wrap {
        height: auto;
    }
    .input-wrap textarea {
        height: 90px;
    }
    .input-wrap textarea:focus + label,
    .input-wrap.filled textarea + label {
        bottom: 78px;
    }
    footer .container {
        padding: 20px 20px 13px;
        flex-direction: column-reverse;
        justify-content: space-between;
        align-items: center;
    }
    .copyright {
        width: 100%;
        font-size: 10px;
        line-height: 1.4;
    }
    .footer-logo {
        position: relative;
        top: auto;
        left: auto;
        -webkit-transform: none;
        -moz-transform: none;
        -ms-transform: none;
        -o-transform: none;
        transform: none;
    }
    .form-result {
        left: 20px;
        bottom: 55px;
        padding-right: 75px;
        font-size: 15px;
    }
    .second-slide {
        background-size: 400px auto,auto;
        background-position: bottom 20px right -55px, left top;
    }
}
@media screen and (max-width: 450px) {
    .header-menu {
        max-width: 100%;
    }

}
@media screen and (max-width: 350px) {
    .second-slide {
        background-position: bottom -15px right -75px, left top;
    }
}
@media screen and (max-width: 450px) and (max-height: 850px) {
    .main-slider,
    .main-slide {
        height: calc(100vh - 60px);
        //height: -webkit-fill-available;
        min-height: 508px;
    }
    .main-slider .slick-dots {
        bottom: calc(40px + env(safe-area-inset-bottom));
    }
    @supports (-webkit-touch-callout: none) {
        .main-slider,
        .main-slide {
            height: -webkit-fill-available;
            min-height: -webkit-fill-available;
        }
    }
}
