/*
Theme Name: МЕУ
Theme URI:
Author: Andrey Sushko
Description: МЕУ – мережа екостанцій України
Version: 1.0
*/

:root {
    --f-32: 32px;
    --f-27: 27px;

    --site-bg-color: #ffffff;
    --site-bg-color-2: #F7F7F7;
}

.content-block h1,
.content-block h2,
.content-block h3,
.content-block h4,
.content-block h5,
.content-block h6 {
    margin-top: 40px;
}

.content-block h1,
.content-block h2,
.content-block h3,
.content-block h4,
.content-block h5,
.content-block h6 {
    font-size: var( --f-27 );
    font-weight: 600;
    margin-bottom: 40px;
}

.content-block h1,
.content-block h2 {
    font-size: var( --f-32 );;
}

.content-block a {
    text-decoration: underline;
}

.content-block p,
.content-block li {
    font-size: 18px;
    font-weight: 300;
    margin-top: 20px;
    line-height: 1.3;
}

.content-block .content-bt {
    margin-top: 20px;
}

.content-block ul {
    list-style-type: disc;
    padding-left: 25px;
}

.content-block ol {
    list-style-type: decimal;
    padding-left: 25px;
}

.content-block .short-text {
    --text-w: 80%;
    max-width: var( --text-w );
    margin-left: auto;
    margin-right: auto;
}

/*.content-block .short-text p,
.content-block .short-text ol,
.content-block .short-text ul,
.content-block .short-text h1,
.content-block .short-text h2,
.content-block .short-text h3,
.content-block .short-text h4,
.content-block .short-text h5,
.content-block .short-text h6,
.content-block .short-text form {
    max-width: var( --text-w );
    margin-left: auto;
    margin-right: auto;
}*/

.content-block img,
.content-block video,
.content-block iframe,
.content-block .content-img {
    width: 100%;
    height: auto;
    max-width: 100%;
    max-height: 55vh;
    border-radius: 20px;
    display: block;
    margin: 20px auto;
    object-fit: cover;
}

.content-block video {
    background: #000;
}

.content-block iframe { 
    width: 100%;
    height: 300px;
    filter: brightness(100%) contrast(100%) saturate(0%) blur(0px) hue-rotate(0deg);
}

.content-block .video-block {
    --play-bt-w: 50px;
    position: relative;
}

    .content-block .video-block > div::after {
        content: "";
        display: block;
        width: var(--play-bt-w);
        height: var(--play-bt-w);
        background: url(../images/youtube-play-bt.svg) center no-repeat;
        background-size: contain;
        position: absolute;
        top: calc( 50% - ( var( --play-bt-w ) / 2 ) );
        left: calc( 50% - ( var( --play-bt-w ) / 2 ) );
        z-index: 1;
        pointer-events: none;
    }

.content-block .main-img {
    width: 100%;
}

.content-block > :first-child,
.content-block .short-text > :first-child,
.content-block > :first-child form,
.content-block > :first-child > video,
.content-block > :first-child > iframe  {
    margin-top: 0!important;
}

.content-block > :last-child,
.content-block .short-text > :last-child,
.content-block > :last-child form,
.content-block > :last-child > video,
.content-block > :last-child > iframe  {
    margin-bottom: 0!important;
}

.content-block > :first-child img,
.content-block .short-text > :first-child img  {
    margin-top: 0!important;
}

.content-block > :last-child img,
.content-block .short-text > :last-child img  {
    margin-bottom: 0!important;
}

.content-block table {
    display: block;
    overflow: auto;
    width: 100%;
    font-family: var( --font-2 );
    font-size: 14px;
    font-weight: 400;
    margin: 40px 0;
}

    .content-block table strong {
        font-weight: 600;
    }

    .content-block table tbody,
    .content-block table thead,
    .content-block table tfoot {
        display: flex;
        flex-direction: column;
    }

        .content-block table tr {
            display: flex;
            justify-content: space-between;
            width: 100%;
            box-sizing: border-box;
            margin-bottom: 5px;
            border-radius: 10px;
            padding: 13px;
            background: #C4E0BE;
        }

        .content-block table tr:nth-of-type( 2n ) {
            background: #F3FFF4;
        }

        .content-block table tr:last-of-type {
            margin-bottom: 0;
        }

            .content-block table tr td {
                min-width: 33%;
            }

.content-block form {
    width: 100%;
    padding: 45px;
    box-sizing: border-box;
    background: var( --site-bg-color-2 );
    border-radius: 20px;
    margin-top: 60px;
    margin-bottom: 60px;
}

    .content-block form br,
    .hystmodal__window form br {
        display: none;
    }

.hystmodal__window .content-block h1,
.hystmodal__window .content-block h2,
.hystmodal__window .content-block h3,
.hystmodal__window .content-block h4,
.hystmodal__window .content-block h5,
.hystmodal__window .content-block h6 {
    margin-bottom: 40px;
}

.hystmodal__window .mar-top {
    margin-top: 40px;
}

.page-gallery {
    --bs-gutter-x: 40px;
    --bs-gutter-y: 40px;
    --mar-v: 60px;
    margin-top: calc( var( --mar-v ) - var( --bs-gutter-y ) );
    margin-bottom: var( --mar-v );
}

    .page-gallery .image-block::before {
        padding-top: 75%;
    }

    .content-img::before {
        display: none;
    }

    .content-img > * {
        position: static;
    }

    .content-img img {
        margin-top: 0!important;
        margin-bottom: 0!important;
    }

    .two-cols-content .content-img::before {
        display: block;
        padding-top: 75%;
    }

        .two-cols-content .content-img > * {
            position: absolute;
        }

        .two-cols-content .content-img img {
            height: 100%;
        }

        .page-gallery .image-block a {
            display: block;
            border-radius: 20px;
            overflow: hidden;
        }

            .page-gallery .image-block img {
                width: 100%;
                height: 100%;
                max-height: none;
                margin: 0;
                border-radius: 0;
                object-fit: cover;
            }

            .page-gallery .image-block a:hover img {
                transform: scale( 1.1 );
            }

.page-gallery.column-3,
.page-gallery.column-4,
.two-cols-content .page-gallery {
    --bs-gutter-x: 18px;
    --bs-gutter-y: 18px;
}

    .page-gallery.column-3 .image-block::before,
    .page-gallery.column-4 .image-block::before {
        padding-top: 75%;
    }

.page-slider {
    padding: 60px 50px;
    border-radius: 20px;
    background-color: rgba(0, 0, 0, 0.20)!important;
    background-blend-mode: multiply;
    color: #ffffff;
}

.content-block .page-slider {
    margin-top: 60px;
    margin-bottom: 60px;
}

    .page-slider * {
        text-shadow: 0px 4px 4px rgba(0, 0, 0, 0.25);
    }

    .page-slider .content-block {
        max-width: 600px;
    }

        .page-slider h1,
        .page-slider h2,
        .page-slider h3,
        .page-slider h4,
        .page-slider h5,
        .page-slider h6 {
            margin-top: 40px;
            margin-bottom: 40px;
        }

.team-content {
    --bs-gutter-x: 40px;
    --bs-gutter-y: 40px;
}

    .team-content .image-block {
        max-width: 220px;
    }

        .team-content .image-block img {
            height: 100%;
        }

.two-cols-content {
    --bs-gutter-x: 40px;
    --bs-gutter-y: 0px;
    --mar-v: 60px;
    margin-top: calc( var( --mar-v ) - var( --bs-gutter-y ) );
    margin-bottom: var( --mar-v );
}

.two-cols-content-gray {
    --bs-gutter-x: 40px;
    --bs-gutter-y: 40px;
    --mar-v: 60px;
    margin-top: var( --mar-v );
    margin-bottom: var( --mar-v );
}

    .two-cols-content-gray > div:nth-of-type( 1 ),
    .two-cols-content-gray > div:nth-of-type( 2 ) {
        margin-top: 0;
    }

    .two-cols-content-gray .content-block {
        height: 100%;
        background: var( --site-bg-color-2 );
        border-radius: 20px;
        box-sizing: border-box;
        padding: 25px;
    }

    .two-cols-content-gray h1,
    .two-cols-content-gray h2,
    .two-cols-content-gray h3,
    .two-cols-content-gray h4,
    .two-cols-content-gray h5,
    .two-cols-content-gray h6 {
        margin-top: 30px;
        margin-bottom: 30px;
    }

    .two-cols-content-gray .contacts-address,
    .two-cols-content-gray .contacts-phones,
    .two-cols-content-gray .contacts-working-time {
        padding-left: 30px;
        position: relative;
    }

        .two-cols-content-gray .contacts-address a,
        .two-cols-content-gray .contacts-phones a {
            text-decoration: none;
        }

        .two-cols-content-gray .contacts-address i,
        .two-cols-content-gray .contacts-phones i,
        .two-cols-content-gray .contacts-working-time i {
            position: absolute;
            left: 0;
            top: 0;
            color: var( --site-hover-color );
            font-size: 18px;
        }

.bg-img {
    background: var( --bg-img-pc ) no-repeat;
    background-size: cover;
}

.bg-fixed {
    background-attachment: fixed;
}

.section {
    --pad-v: 100px;
    padding: var( --pad-v ) 0;
    background-color: var( --site-bg-color );
    position: relative;
}

.section.gray {
    background-color: var( --site-bg-color-2 );
}

.mar-top {
    margin-top: 60px;
}

.mar-bottom {
    margin-bottom: 60px;
}

.mar-bottom-0 {
    margin-bottom: 0!important;
}

.mar-top-100 {
    margin-top: 100px;
}

.pad-top-0 {
    padding-top: 0!important;
}

.pad-top-60 {
    padding-top: 60px!important;
}

.pad-bottom-0 {
    padding-bottom: 0!important;
}

.pad-bottom-60 {
    padding-bottom: 60px!important;
}

.pc-align-center {
    text-align: center;
}

.fancybox__container {
    z-index: 10000000000!important;
}

.max-w-650 {
    max-width: 650px;
    margin-left: auto;
    margin-right: auto;
}

.books-content {
    --bs-gutter-y: 40px;
}

    .books-content .image-block::before {
        padding-top: 120%;
    }

        .books-content .image-block img {
            height: 100%;
            max-height: none;
            object-fit: contain;
            object-position: left;
            border-radius: 0;
        }

@media all and (max-width: 991px) {
    .content-block h1,
    .content-block h2,
    .content-block h3,
    .content-block h4,
    .content-block h5,
    .content-block h6  {
        margin-bottom: 40px;
    }

    .breadcrumbs-wrapper {
        margin-bottom: 35px;
    }

    .paginate-block {
        margin-top: 40px;
    }

    .content-block h1,
    .content-block h2,
    .content-block h3,
    .content-block h4,
    .content-block h5,
    .content-block h6 {
        margin-top: 40px;
    }

    .content-block form {
        margin-top: 40px;
        margin-bottom: 40px;
    }

    .content-block img,
    .content-block video,
    .content-block iframe,
    .content-block .content-img {
        margin: 20px auto;
    }

    .page-gallery {
        --bs-gutter-x: 20px;
        --bs-gutter-y: 20px;
        --mar-v: 40px;
    }

    .two-cols-content {
        --bs-gutter-x: 40px;
        --bs-gutter-y: 0px;
        --mar-v: 40px;
        margin-top: 40px;
    }

    .content-block .contacts-info-rows {
        margin-top: 40px;
        margin-bottom: 40px;
    }

    .content-block table {
        margin: 40px 0;
    }

    .page-slider {
        padding: 40px 30px;
    }

    .content-block .page-slider {
        margin-top: 40px;
        margin-bottom: 40px;
    }

    .two-cols-content-gray {
        --mar-v: 40px;
    }

    .section {
        --pad-v: 50px;
    }

    .mar-top {
        margin-top: 40px;
    }

    .mar-bottom {
        margin-bottom: 40px;
    }

    .mar-top-100 {
        margin-top: 50px;
    }

    .pad-top-60 {
        padding-top: 40px!important;
    }

    .pad-bottom-60 {
        padding-bottom: 40px!important;
    }
}

@media all and (max-width: 767px) {
    :root {
        --f-32: 26px;
        --f-27: 22px;
    }

    .content-block .short-text {
        --text-w: 100%;
    }

    .pc-align-center {
        text-align: left;
    }

    .two-cols-content {
        --bs-gutter-x: 0px;
        --bs-gutter-y: 40px;
    }

    .two-cols-content > .col-12:first-of-type {
        margin-top: 0;
    }

    .two-cols-content.flex-column-reverse > .col-12:first-of-type {
        margin-top: var( --mar-v );
    }

    .two-cols-content.flex-column-reverse > .col-12:last-of-type {
        margin-top: 0;
    }

    .two-cols-content-gray {
        --bs-gutter-x: 20px;
        --bs-gutter-y: 20px;
    }
    
    .two-cols-content-gray > div:nth-of-type( 2 ) {
        margin-top: var( --bs-gutter-y );
    }

    .content-block p,
    .content-block li {
        font-size: 16px;
    }
}

@media all and (max-width: 575px) {
    :root {
        --f-16: 14px;
        --cont-pad: 20px;
    }

    .bg-img {
        background: var( --bg-img-mob ) no-repeat;
        background-size: cover;
    }

    /* .books-content .col-sm-4 {
        margin-bottom: 40px;
    } */

    .case-block.news-block .col-sm-5 {
        margin-bottom: 40px;
    }
}