/*
Theme Name: dist-education
Theme URI: дист-обучение.рф
Description: Шаблон для сайта дист-обучение.рф
Author: Bereznyak Alexandr
Author URI: http://spec-soft.com/
Version: 1.0
*/

header {
    position: fixed;
    left: 0;
    right: 0;
    width: 100%;
    background-color: #fff;
    -webkit-box-shadow: 0 0 20px rgba(0, 0, 0, 0.1);
    -moz-box-shadow: 0 0 20px rgba(0, 0, 0, 0.1);
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.1);
    z-index: 100;
}

section {
    margin-bottom: 75px;
}

.section__bg__light {
    background-color: #f5f9fc;
}

h1 {
    font-size: 38px;
    text-transform: uppercase;
    color: #fff;
    margin-bottom: 40px;
}

h2 {
    text-transform: uppercase;
    margin-bottom: 15px;
    font-size: 32px;
}

h3 {
    text-transform: uppercase;
    margin-bottom: 30px !important;
    font-size: 25px;
}

h4 {
    text-transform: uppercase;
    margin-bottom: 15px;
    font-size: 20px;
}

h5 {
    text-transform: uppercase;
    margin-bottom: 15px;
    font-size: 16px;
}

h5 {
    text-transform: uppercase;
    margin-bottom: 15px;
    font-size: 12px;
}

header a {
    font-family: 'Oswald', sans-serif;
    font-size: 18px;
    color: #000;
    text-decoration: none;
    color: #6a778b
}

header a:hover {
    text-decoration: underline;
}

header a .header_nav_logo {
    width: 100%;
    max-width: 180px;
    -o-object-fit: contain;
    object-fit: contain;
}

header nav ul {
    margin-bottom: 0px;
}

header nav li {
    list-style: none;
    margin-left: 10px;
}

header nav li a {
    text-decoration: underline;
}

header .header_nav_mail_title {
    font-size: 16px;
}

#mobile-menu {
    display: none;
}

.header {
    min-height: 80vh;
    /*background: linear-gradient( rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7) ), url('images/header.webp');*/
    background-size: cover;
    background-attachment: fixed;
    padding: 209px 0 86px;
}

.header .col {
    min-height: 80vh;
}


.header-text {
    font-size: 24px;
    color: #fff;
}

.header-text span {
    text-decoration: underline;
}

.header_nav_social {
    display: flex;
    justify-content: center;
    gap: 8px;
}

.quotes_slider {
    background-color: #f4f7f7;
    padding-bottom: 4rem;
}

.quotes_slider #quotes_slider img {
    cursor: pointer;
    max-height: 288px;
    height: 100vh;
    -o-object-fit: cover;
    object-fit: cover;
    -o-object-position: left center;
    object-position: left center;
}

.quotes_slider .tns-nav {
    bottom: -50px;
}

#services .col-md-4 {
    margin-bottom: 25px;
}

.service-item {
    position: relative;
    overflow: hidden;
}

.service-item_text {
    position: absolute;
    top: 174px;
    left: 0px;
    padding: 20px;
    background: rgba(85, 137, 196, 0.7);
    color: #fff;
    display: block;
    width: 100%;
    height: 100%;
    transition: top .35s;
}

.service-item:hover .service-item_text {
    top: 0px;
    transition: top .35s;
}

.service-item_text h4 {
    font-size: 20px;
    background: #5589c4;
    padding: 20px 20px;
    margin: 0px -20px 20px -20px;
}

.service-item_text p span {
    font-weight: bold;
    font-size: 22px;
}

.service-item_button {
    display: block;
    padding: 10px 0px;
    text-align: center;
    text-transform: uppercase;
    text-decoration: none;
    color: #fff;
    background: #5589c4;
    margin-top: 5px;
    border: none;
    width: 100%;
}

#advanteges .container .row .col-md-4 .advantage-item {
    padding: 20px;
    min-height: 400px;
    border-radius: 10px;
    background-color: #e6e6e6;
    background-position: center center;
    background-size: cover;
    background-repeat: no-repeat;
    border-color: #e6e6e6;
    border-style: solid;
    box-shadow: 0px 0px 10px 0px rgba(0, 0, 0, 1);
    position: relative;
}

#advanteges .container .row .col-md-4 .advantage-item::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    background: rgba(255, 255, 255, 0.75);
}

#advanteges .container .row .col-md-4 .advantage-item h4,
#advanteges .container .row .col-md-4 .advantage-item p {
    position: relative;
    z-index: 10;
}

#advanteges .container .row .col-md-4 .advantage-item h4 a {
    float: right;
}

#advanteges .container .row .col-md-4 .advantage-item p {
    font-size: 20px;
}

#advanteges .container .row:nth-child(2) .col-md-4:nth-child(1) .advantage-item {
    background: url(images/advantage_1.webp) no-repeat center bottom;
}

#advanteges .container .row:nth-child(2) .col-md-4:nth-child(2) .advantage-item {
    background: url(images/advantage_2.webp) no-repeat center bottom;
}

#advanteges .container .row:nth-child(2) .col-md-4:nth-child(3) .advantage-item {
    background: url(images/advantage_3.webp) no-repeat center bottom;
}

#advanteges .container .row:nth-child(3) .col-md-4:nth-child(1) .advantage-item {
    background: url(images/advantage_4.webp) no-repeat center bottom;
}

#advanteges .container .row:nth-child(3) .col-md-4:nth-child(2) .advantage-item {
    background: url(images/advantage_5.webp) no-repeat center bottom;
}

#advanteges .container .row:nth-child(3) .col-md-4:nth-child(3) .advantage-item {
    background: url(images/advantage_6.webp) no-repeat center bottom;
}

.portfolio__examples {
    position: relative;
    padding: 20px 0;
}

.portfolio__examples::after {
    content: '';
    position: absolute;
    background: url(/wp-content/uploads/2023/10/portfolio-decor-min.jpg) no-repeat center / cover;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -20;
}

.portfolio__examples::before {
    content: '';
    position: absolute;
    background: rgba(250, 250, 250, 0.7);
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -10;
}

.portfolio__examples .portfolio__examples__section__title {
    text-transform: uppercase;
    margin-bottom: 30px;
    font-size: 32px;
}

.portfolio__examples .portfolio__examples_item {
    margin-bottom: 60px;
    background-color: rgba(250, 250, 250, 0.9);
    border-radius: 8px;
    box-shadow: 0 0 15px 0 rgba(0, 0, 0, 0.13);
}

.portfolio__examples .portfolio__examples_item .portfolio__examples__item__title {
    font-size: 20px;
    line-height: 28px;
    font-weight: 600;
    margin-bottom: 15px;
    color: #5c768d;
}

/*.portfolio__examples .portfolio__examples_item .portfolio__examples__links__wrap .portfolio__examples__link {
    display: flex;
    align-items: center;
}*/

.portfolio__examples .portfolio__examples_item .portfolio__examples__links__wrap .portfolio__examples__link i {
    color: #059652;
    font-size: 24px;
    padding-right: 3px;
}

.portfolio__examples .portfolio__examples_item .portfolio__examples__links__wrap a {
    display: flex;
    align-items: center;
    color: #3d6b9f;
    text-decoration: none;
    background-color: rgba(85, 137, 196, 0.07);
    padding: 10px 20px;
    border-radius: 8px;
    transition: 0.3s;
    width: 100%;
}

.portfolio__examples .portfolio__examples_item .portfolio__examples__links__wrap a:hover {
    background-color: #5589c4;
    color: #fafafa;
}

.portfolio__examples .portfolio__examples_item .portfolio__examples__links__wrap a:hover i {
    color: #fafafa;
}

#portfolio {
    background: url(images/portfolio_bg.webp);
    padding-bottom: 80px;
}

#portfolio-slider .slick-track {

}

#portfolio-slider .tns-item {
    padding: 20px 10px;
}

#portfolio-slider .tns-item img {
    object-fit: cover;
    min-width: 100%;
    min-height: 170px;
}

#reviews-slider .tns-item {
    padding: 20px 10px;
}

#command img {
    border-radius: 50%;
    border: 1px solid #fff;
    box-shadow: 0 5px 20px #c0c0c0;
}

footer {
    padding: 40px 0px;
    color: #fff;
    background: #333538;
}

footer a, footer a:hover {
    color: #fff;
}

.tns-outer {
    position: relative;
}

.tns-nav {
    text-align: center;
    margin: 10px 0;
    position: absolute;
    display: block;
    width: 100%;
    bottom: -30px;
}

.tns-nav > [aria-controls] {
    width: 9px;
    height: 9px;
    padding: 0;
    margin: 0 5px;
    border-radius: 50%;
    background: #ddd;
    border: 0;
}

.tns-nav > .tns-nav-active {
    background: #999;
}

.scroll-top {
    position: fixed;
    right: 5px;
    bottom: 5px;
    border: none;
    font-size: 40px;
    color: #5589c4;
    padding: 0px;
    background: transparent;
}

/* Bitrix Form - Start */
.mainblock {
    background: #fff;
}

.b24-form-padding-side {
    padding-left: 10px;
    padding-right: 10px;
}

.b24-form-control {
    width: 100% !important;
}

.b24-form-control-container input {
    width: 100% !important;
}

.btn_new_form_2212 {
    font-size: 14px;
    font-weight: 600;
    color: #2e302f;
    text-decoration: underline;
    padding: 5px 10px;
    font-family: 'Roboto', Arial, sans-serif;
    display: inline-block;
    -webkit-box-orient: horizontal;
    -webkit-box-direction: normal;
    -ms-flex-flow: row nowrap;
    flex-flow: row nowrap;
    -webkit-box-pack: center;
    -ms-flex-pack: center;
    justify-content: center;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    background-color: #FFFFFF;
    cursor: pointer;
    margin-right: -1px;
    position: relative;
    overflow: hidden;
    -webkit-transition: ease 0.3s;
    transition: ease 0.3s;
}

.btn_new_form_2212[data-name="whatsapp"] span:before {
    background-image: url(/wp-content/uploads/2023/04/wapp.png);
}

.btn_new_form_2212[data-name="telegram"] span:before {
    background-image: url(/wp-content/uploads/2023/09/telegram_logo-min.png);
}

.btn_new_form_2212 span:before {
    content: "";
    display: block;
    -ms-flex-negative: 0;
    flex-shrink: 0;
    width: 18px;
    height: 18px;
    margin-right: 5px;
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
}

.btn_new_form_2212 span {
    display: inline-block;
    -webkit-box-orient: horizontal;
    -webkit-box-direction: normal;
    -ms-flex-flow: row nowrap;
    flex-flow: row nowrap;
    -webkit-box-pack: start;
    -ms-flex-pack: start;
    justify-content: flex-start;
    -webkit-box-align: stretch;
    -ms-flex-align: stretch;
    align-items: stretch;
    position: relative;
    z-index: 2;
}

/* Bitrix Form - End */

header .header__short__description {
    color: #6a778b;
    text-transform: uppercase;
    line-height: 120%;
    max-width: max-content;
    background-color: #f4f7f7;
    padding: 10px;
    border-radius: 8px;
}

header .header__order__btn {
    background-color: #009ad8;
    border: none;
    color: #fff;
    border-radius: 5px;
    padding: 10px 20px;
    line-height: 120%;
    -webkit-transition: 0.3s;
    -moz-transition: 0.3s;
    -ms-transition: 0.3s;
    -o-transition: 0.3s;
    transition: 0.3s;
}

header .header__order__btn:hover {
    background-color: #5589c4;
}

.pum-theme-340 #popmake-370 {
    top: 133px !important;
}

@media (max-width: 1199px) {
    .quotes_slider #quotes_slider img {
        height: auto;
    }

    html.pum-open.pum-open-overlay.pum-open-scrollable body > :not([aria-modal=true]) {
        padding-right: 0 !important;
    }
}

@media (max-width: 1199px) {
    header a {
        font-size: 16px;
    }

    header .col-md-2 {
        text-align: left !important;
    }

    header .col-md-2 br {
        display: none;
    }

    header .col-md-2 a {
        margin-left: 5px;
    }

    header .row .col-6:nth-child(3),
    header .row .col-6:nth-child(4) {
        padding-top: 20px;
    }

    header .row .col-6:nth-child(4) a {
        float: right !important;
    }

    #menu {
        display: none;
    }

    #mobile-menu {
        display: inline-block;
        font-size: 40px;
        float: right;
    }

    nav#menu.fancybox__content ul {
        display: block !important;
    }

    nav#menu.fancybox__content ul li {
        margin: 10px 0px;
        display: block;
        list-style: none;
        width: 100%;
    }

    nav#menu.fancybox__content ul li a {
        padding: 5px 0px;
        font-family: 'Oswald', sans-serif;
        font-size: 18px;
        text-decoration: none;
        color: #6a778b;
    }

    .header h1 {
        word-break: break-word;
    }

    .scroll-top {
        font-size: 30px;
    }
}

@media (max-width: 767px) {
    .header {
        padding: 176px 0;
    }

    .header_nav_social {
        justify-content: flex-start;
    }

    [data-name="whatsapp"] {
        margin-bottom: 0 !important;
    }
}

@media (max-width: 576px) {
    header .header__short__description {
        font-size: 12px;
    }

    .header {
        min-height: 80vh;
        padding: 290px 0 86px;
    }

    h1 {
        font-size: 28px;
    }

    .portfolio__examples .portfolio__examples_item {
        margin-left: auto;
        margin-right: auto;
    }
}

@media (max-width: 281px) {
    h1,
    h3 {
        font-size: 24px;
    }
}