@font-face {
    font-family: 'Montserrat';
    font-weight: normal;
    font-style: normal;
    src: url('/fonts/Montserrat-Regular.woff2') format('woff2');
}

@font-face {
    font-family: 'Montserrat';
    font-weight: normal;
    font-style: italic;
    src: url('/fonts/Montserrat-Italic.woff2') format('woff2');
}

html {
    font-size: 16px;
}

/*@media (min-width: 768px) {
    html {
        font-size: 16px;
    }
}*/

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
    box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

html {
    position: relative;
    min-height: 100%;
}

body {
    margin-bottom: 60px;
    font-family: 'Montserrat';
    background: white;
}

#pointer {
    width: 20px;
    height: 20px;
    background: #10ff00;
    border-radius: 50%;
    position: absolute;
    margin: 0px;
    transition: all .1s;
    z-index: 99;
}

a {
    text-decoration: none;
    color: #000000;
}

    a:hover {
        color: #000000;
    }

#header {
    /*position: fixed;
    top: 0;
    width: 100%;*/ /* Шапка займёт всю ширину окна браузера */
    /*z-index: 1000;*/ /* Высокое значение, чтобы шапка была всегда на первом плане */

    position: fixed;
    width: 100%;
    top: 0;
    z-index: 10; /* Не так высокое значение как в "фиксированном" варианте, но всё же выше обычного контента */

    background-color: transparent;
}

    #header a {
        font-size: 18px;
    }

        #header a:hover {
            font-style: italic;
        }

p {
    font-size: 18px;
    line-height: 22px;
    /*text-wrap: balance;*/
    font-weight: 500;
}

h1 {
    font-size: 20px;
    margin-bottom: 18px;
}

h2 {
    font-size: 20px;
    margin-bottom: 18px;
}

.content-page {
    min-height: 100vh;
}

.content-page-center {
    height: 100%;
    align-content: center;
}

.left-part {
    padding-left: 3rem
}

.text-block {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: space-between;
    margin-top: 145px;
}

.mini-block {
    max-width: 405px;
}

.left-block {
    order: 2;
}

.right-block {
    order: 2;
}

.end-block {
    order: 3;
    margin-top: 120px;
    width: 400px;
}

.right-column {
    padding-right: 30px;
}

.bottom-text {
    position: absolute;
    bottom: 0;
    margin-bottom: 1rem;
}

.preview-project {
}

    .preview-project img {
        height: 43vw;
        width: 100%;
        object-fit: cover;
    }

.reference-project img {
    height: 30vw;
    width: 100%;
    object-fit: cover;
}

.content {
    min-height: 100vh;
    background: white;
    margin-bottom: 261px;
    position: relative;
    z-index: 2;
}

@media (max-width: 400px) {
    p {
        font-size: 16px;
    }

    h1 {
        font-size: 18px;
        margin-bottom: 16px;
    }

    h2 {
        font-size: 18px;
        margin-bottom: 16px;
    }

    a {
        font-size: 16px;
    }

    .end-block {
        width: auto;
    }
}

@media screen and (orientation: portrait) {
    #pointer {
        display: none;
    }
}

@media (max-width: 1569px) {
    .mini-block.end-block.bottom-text {
        position: relative;
    }
}

@media (max-width: 948px) {
    .content-page:not([class*="content-page-cover"]) {
        min-height: auto;
    }
}

@media (max-width: 870px) {
    .text-block {
        flex-direction: column;
        margin-top: 0px;
    }

    .left-block {
        order: 1;
    }

    .right-column {
        order: 2;
    }
}

@media (max-width: 767px) {
    .preview-project img {
        height: 63vw;
    }

    .reference-project img {
        height: 65vw;
    }
}

@media (max-width: 575px) {
    .preview-project img {
        height: auto;
    }

    .reference-project img {
        height: auto;
    }

    .content {
        margin-bottom: 340px;
    }
}

@media (max-width: 476px) {
    .left-part {
        padding-left: 12px;
    }
}

@media (max-width: 1410px) {
    .text-block {
        margin-top: 60px;
    }

    .end-block {
        margin-top: 0px;
    }
}

#footer {
    width: 100%;
    position: fixed;
    bottom: 0;
    z-index: 1;
    padding-bottom: 10px;
}

    #footer a {
        color: #000000;
    }

        #footer a:hover {
            font-style: italic;
            color: #000000;
        }

    #footer .external-platforms {
        padding: 36px 0px 5px;
    }

        #footer .external-platforms a {
            font-size: 30px;
        }

img {
    opacity: 1;
    transition: opacity 1.5s;
}

    img[data-src] {
        opacity: 0;
    }

.preloader {
    position: fixed;
    left: 0;
    width: 0;
    height: 100%;
    width: 100%;
    text-align: center;
    z-index: 9999999;
    -webkit-transition: .9s;
    transition: .9s;
    background-color: gainsboro;
    opacity: 0.5;
}

    .preloader .loader {
        position: absolute;
        width: 80px;
        height: 80px;
        border-radius: 50%;
        display: inline-block;
        left: 0;
        right: 0;
        margin: 0 auto;
        top: 45%;
        -webkit-transform: translateY(-45%);
        transform: translateY(-45%);
        -webkit-transition: 0.5s;
        transition: 0.5s;
    }

        .preloader .loader .indicator {
            position: absolute;
            right: 0;
            left: 0;
            top: 50%;
            -webkit-transform: translateY(-50%) scale(1.5);
            transform: translateY(-50%) scale(1.5);
        }

    .preloader.preloader-deactivate {
        visibility: hidden;
    }

.navbar {
    transition: background-color 0.3s; /* Плавный переход изменения цвета */
}

    .navbar.scrolled {
        background-image: linear-gradient(white 0%, transparent);
    }

    .navbar.burger {
        background-image: linear-gradient(white 0%, transparent);
    }

        .navbar.burger .collapse {
            padding: 5px 5px 80px;
        }

.navbar-toggler {
    border: none;
}

.navbar-brand {
    margin-right: 0px;
}

a.active {
    font-style: italic;
}

.big-project-page {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.navbar-toggler:focus,
.navbar-toggler:active,
.navbar-toggler-icon:focus {
    outline: none;
    box-shadow: none;
}

ul {
    font-size: 18px;
    line-height: 22px;
}

#about a {
    font-style: italic;
}

    #about a:hover {
        font-style: normal;
    }

/*@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(30%);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}*/

/*#about .block {
    opacity: 0;
    animation: fadeIn 2s ease-out 0.5s 1 forwards;
}*/

.block-hidden {
    opacity: 0;
    transform: translateY(30%);
    transition: opacity 1.5s, transform 1.5s ease-out;
}

.block-visible {
    opacity: 1;
    transform: translateY(0);
}
