@charset "UTF-8";

/* MONTSERRAT BOLD */
@font-face {
    font-family: "Montserrat";
    font-style: normal;
    font-weight: 700;
    font-display: swap;
    src: url("/local/assets/fonts/montserrat/web/montserrat-Bold.eot");
    src: local("Montserrat Bold"), local("Montserrat-Bold"),
        url("/local/assets/fonts/montserrat/web/montserrat-Bold.eot?#iefix") format("embedded-opentype"),
        url("/local/assets/fonts/montserrat/web/montserrat-Bold.woff2") format("woff2"),
        url("/local/assets/fonts/montserrat/web/montserrat-Bold.woff") format("woff"),
        url("/local/assets/fonts/montserrat/web/montserrat-Bold.ttf") format("truetype"),
        url("/local/assets/fonts/montserrat/web/montserrat-Bold.svg#Montserrat-Bold") format("svg");
}
/* MONTSERRAT REGULAR */
@font-face {
    font-family: "Montserrat";
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url("/local/assets/fonts/montserrat/web/montserrat-Regular.eot");
    src: local("Montserrat Regular"), local("Montserrat-Regular"),
        url("/local/assets/fonts/montserrat/web/montserrat-Regular?#iefix") format("embedded-opentype"),
        url("/local/assets/fonts/montserrat/web/montserrat-Regular.woff2") format("woff2"),
        url("/local/assets/fonts/montserrat/web/montserrat-Regular.woff") format("woff"),
        url("/local/assets/fonts/montserrat/web/montserrat-Regular.ttf") format("truetype"),
        url("/local/assets/fonts/montserrat/web/montserrat-Regular.svg#Montserrat-Regular") format("svg");
}

/* COMMON SETTINGS */
:root {
	--header-background-color: #ffffff;
    --header-text-color: #222222;
    --header-accent-color: #5580B4;
    --header-logotype-color: #222222;
    --header-credo-color: #222222;
    --text-color: #222222;
    --footer-accent-color: #5580B4;
    --footer-background-color: #001B3F;
    --footer-text-color: #FFFFFF;
    --footer-credo-color: #ffffff;
}
* {
    box-sizing: border-box;
}
html, body {
    font-family: "Montserrat";
    font-style: normal;
    font-weight: 400;
    font-size: 14px;
    line-height: 1;
    color: var(--text-color);
    scroll-behavior: smooth;
}
@supports (-ms-ime-align:auto) {
    html {
        overflow: hidden;
        height: 100%;
    }

    body {
        overflow: auto;
        height: 100%;
        position: relative;
    }
}
@media screen and (-ms-high-contrast: active), (-ms-high-contrast: none) {
    html {
        overflow: hidden;
        height: 100%;
    }
    body {
        overflow: auto;
        height: 100%;
    }
}

@media screen and (min-width: 0) {

    /* MAIN */
    .af-main {
        background-image: url(/upload/medialibrary/ca7/0rstmjt8nkgj7yzti1oxxfgbd91fx8ko/main_bg.jpg);
        background-repeat: no-repeat;
        background-size: cover;
        background-position: center;
        padding-top: 40px;
        margin-bottom: 90px;
    }
    .af-main-wrapper {
        width: 100%;
        display: flex;
        flex-direction: column;
        padding: 0 15px;
    }
    .af-main-information {
        order: 1;
        display: flex;
        flex-direction: column;
        justify-content: flex-start;
        margin-bottom: -10px;
    }
    .af-main-information__title {
        margin: 0;
        display: block;
        font-size: 24px;
        font-weight: 700;
        line-height: 1.3;
        color: #ffffff;
        margin: 20px 0;
    }
    .af-main-information__time,
    .af-main-information__address {
        font-weight: 500;
        font-size: 18px;
        line-height: 1;
        color: #5580B4;
    }
    .af-main__img {
        order: 2;
        width: 100%;
    }
    .af-main__img img {
        width: 100%;
        transform: translateY(50px);
    }

    /* INFORMATION */
    .af-about {
        margin-bottom: 70px;
    }
    .af-about-wrapper {
        width: 100%;
        padding: 0 15px;
    }
    .af-about__title {
        font-weight: 700;
        font-size: 20px;
        line-height: 1;
        color: #001B3F;
        margin-bottom: 20px;
    }
    .af-about__text {
        font-weight: 400;
        font-size: 14px;
        line-height: 1.4;
        color: #001B3F;
        margin-bottom: 15px;
    }
    .af-about__list {
        font-weight: 400;
        font-size: 14px;
        line-height: 1.4;
        color: #001B3F;
        list-style: none;
        padding: 0;
        margin-bottom: 40px;
    }
    .af-about__list li {
        margin-bottom: 15px;
    }

    /* GALLERY */
    .af-gallery {
        margin-bottom: 70px;
    }
    .af-gallery-wrapper {
        background-image: url(/upload/medialibrary/fb7/xt5br9t29af9wuvmigxrcd00vdjxsidx/gallery_bg.jpg);
        background-repeat: no-repeat;
        background-size: auto calc(100% - 150px);
        background-position: top 20px center;
        display: flex;
        align-items: center;
        flex-wrap: wrap;
        padding: 0 15px;
    }
    .af-gallery-item {
        display: block;
        width: calc(50% - 8px);
        height: 35vw;
        margin-bottom: 15px;
    }
    .af-gallery-item:nth-of-type(odd) {
        margin-right: 15px;
    }
    .af-gallery-item img {
        display: block;
        width: 100%;
        height: 100%;
        -o-object-fit: cover;
           object-fit: cover;
        -o-object-position: center;
           object-position: center;
    }

    .af-gallery-more {
        display: block;
        width: 100%;
        height: 70px;
        line-height: 70px;
        font-weight: 700;
        font-size: 16px;
        text-align: center;
        color: #ffffff;
        margin-bottom: 22px;
        border-radius: 200px;
        background-color: #001B3F;
        position: relative;
    }
    .af-gallery-more::after {
        content: "";
        display: block;
        width: 25px;
        height: 25px;
        background-size: 25px 35px;
        background-repeat: no-repeat;
        background-position: bottom center;
        background-image: url(../img/arrow-right.svg);
        position: absolute;
        top: 95%;
        left: calc(50% - 12.5px);
        transition: ease 100ms;
    }
    .af-gallery-wrapper:not(.active) .af-gallery-item:nth-of-type(8) ~ .af-gallery-item {
        display: none;
    }
    .af-gallery-wrapper.active .af-gallery-more {
        display: none;
    }
    .af-gallery-wrapper.active {
        background-size: auto calc(100% - 55px);
    }

    /* FEATURES */
    .af-features {
        margin-bottom: 70px;
    }
    .af-features-wrapper {
        width: 100%;
        padding: 0 15px;
    }
    .af-features__title {
        margin: 0;
        font-weight: 700;
        font-size: 21px;
        line-height: 1;
        color: #001B3F;
        margin-bottom: 20px;
    }
    .af-features-items {
        margin: 0;
        padding: 0;
        width: 100%;
        display: flex;
        align-items: flex-start;
        justify-content: space-between;
        flex-wrap: wrap;
        flex-direction: column;

    }
    .af-features-items li {
        display: flex;
        font-weight: 400;
        line-height: 1.3;
        color: #001B3F;
        align-items: center;
        justify-content: flex-start;
        margin: 0;
        padding: 0;
        margin-bottom: 20px;
    }
    .af-features-items img {
        display: block;
        min-width: 80px;
        max-width: 80px;
        height: 80px;
        -o-object-fit: contain;
           object-fit: contain;
        margin-right: 20px;
    }
}

@media screen and (min-width: 768px) {
    /* MAIN */
    .af-main {
        margin-bottom: 70px;
        max-height: 400px;
        padding-bottom: 40px;
    }
    .af-main-wrapper {
        display: flex;
        align-items: center;
        justify-content: center;
        flex-direction: row;
        padding: 0 30px;
    }
    .af-main-information {
        order: 2;
        width: 60%;
    }
    .af-main__img {
        order: 1;
        width: 40%;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    .af-main__img img {
        max-width: 350px;
        transform: translateY(0);
    }

    /* INFORMATION */
    .af-about {
        margin-bottom: 70px;
    }
    .af-about-wrapper {
        width: 100%;
        padding: 0 30px;
    }

    /* GALLERY */
    .af-gallery {
        margin-bottom: 90px;
    }
    .af-gallery-wrapper {
        background-size: auto calc(100% - 150px);
        background-position: top 35px center;
        padding: 0 30px;
    }
    .af-gallery-item {
        width: calc(25% - 11.25px);
        height: 20vw;
    }
    .af-gallery-item:not(:nth-of-type(4n)) {
        margin-right: 15px;
    }
    .af-gallery-more {
        width: 50%;
        margin: 0 auto;
    }
    .af-gallery-wrapper.active {
        background-size: auto calc(100% - 95px);
        background-position: top 35px center;
    }

    /* FEATURES */
    .af-features-wrapper {
        width: 100%;
        padding: 0 30px;
    }
    .af-features-items {
        align-items: flex-start;
        justify-content: space-between;
        flex-direction: row;
    }
    .af-features-items li {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: flex-start;
        text-align: center;

        width: 20%;
    }
    .af-features-items img {
        display: block;
        min-width: 60px;
        max-width: 60px;
        height: 60px;
        -o-object-fit: contain;
        object-fit: contain;
        margin-bottom: 20px;
        margin-right: 0;
    }
}

@media screen and (min-width: 1000px) {
    /*HEADER - FOOTER*/
    header.af-header .af-header-container,
    footer.af-footer .af-footer-container {
        max-width: 1230px;
        padding-left: 30px;
        padding-right: 30px;
    }
}

@media screen and (min-width: 1200px) {

    .af-main-wrapper,
    .af-about-wrapper,
    .af-gallery-wrapper,
    .af-features-wrapper {
        max-width: 1230px;
        padding: 0 30px;
        width: 100%;
        margin: 0 auto;
    }

    /* MAIN */
    .af-main {
        margin-bottom: 160px;
        max-height: 560px;
        padding: 0;
    }
    .af-main__img img {
        max-width: 569px;
        transform: translate3d(0, 100px, 0);
    }
    .af-main-information {
        margin-bottom: 0;
    }
    .af-main-information__title {
        margin: 0;
        font-size: 35px;
        margin: 30px 0;
    }
    .af-main-information__time,
    .af-main-information__address {
        font-size: 25px;
    }

    /* INFORMATION */
    .af-about {
        margin-bottom: 90px;
    }
    .af-about__title {
        font-size: 24px;
        margin-bottom: 30px;
    }
    .af-about__text {
        font-size: 16px;
        line-height: 1.7;
        margin-bottom: 20px;
    }
    .af-about__list {
        font-size: 16px;
        line-height: 1.7;
        margin-bottom: 45px;
    }

    /* GALLERY */
    .af-gallery {
        background-image: url(/upload/medialibrary/fb7/xt5br9t29af9wuvmigxrcd00vdjxsidx/gallery_bg.jpg);
        background-repeat: no-repeat;
        background-size: auto calc(100% - 200px);
        background-position: top 50px center;
    }
    .af-gallery.active {
        background-size: auto calc(100% - 130px);
        background-position: top 50px center;
    }
    .af-gallery-wrapper {
        background: none;
    }
    .af-gallery-item {
        width: calc(20% - 24px);
        margin-bottom: 30px;
        height: 15vw;
        max-height: 204px;
        position: relative;
    }

    .af-gallery-item::before {
        content: "";
        display: block;
        width: 100%;
        height: 100%;
        background-color: rgba(0, 0, 0, 0.3);
        transition: 100ms ease-out;
        position: absolute;
        top: 0;
        left: 0;
        opacity: 0;
        z-index: 1;
    }
    .af-gallery-item:hover::before {
        opacity: 1;
    }
    .af-gallery-item::after {
        content: "";
        display: block;
        width: 40px;
        height: 40px;
        background-size: auto 30px;
        background-position: center;
        background-repeat: no-repeat;
        background-image: url(../img/search.svg);
        transition: 80ms ease-out;
        position: absolute;
        top: calc(50% - 20px);
        left: calc(50% - 20px);
        z-index: 2;
        transform: scale3d(0, 0, 1);
    }
    .af-gallery-item:hover::after {
        transform: scale3d(1, 1, 1);
    }

    .af-gallery-item:not(:nth-of-type(4n)) {
        margin-right: 0;
    }
    .af-gallery-item:not(:nth-of-type(5n)) {
        margin-right: 30px;
    }
    .af-gallery-wrapper:not(.active) .af-gallery-item:nth-of-type(8) ~ .af-gallery-item {
        display: block;
    }
    .af-gallery-wrapper:not(.active) .af-gallery-item:nth-of-type(20) ~ .af-gallery-item {
        display: none;
    }
    .af-gallery-more {
        width: 280px;
        margin: 0 auto;
        cursor: pointer;
    }

    /* FEATURES */
    .af-features {
        margin-top: 90px;
        margin-bottom: 90px;
    }
    .af-features__title {
        font-size: 24px;
        margin-bottom: 50px;
    }
    .af-features-items {
        align-items: flex-start;
        justify-content: space-between;
        flex-direction: row;
    }
    .af-features-items li {
        font-size: 16px;
    }
    .af-features-items img {
        min-width: 70px;
        max-width: 70px;
        height: 70px;
        margin-bottom: 20px;
    }

}

@media screen and (min-width: 1440px) {
    .af-gallery {
        background-size: auto calc(100% - 446px);
        background-position: top 176px center;
    }
    .af-gallery.active {
        background-size: auto calc(100% - 370px);
        background-position: top 176px center;
    }
    .af-gallery-more:hover::after {
        height: 35px;
    }
}


