﻿html {
    box-sizing: border-box;
}

*,
*::before,
*::after {
    box-sizing: inherit;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Bahnschrift", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    line-height: 1.25;
}

header {
    position: fixed;
    top: 0;
    right: 0;
    left: 0;
    z-index: 1030;
    padding: 2vw 0;
}

/* Заголовок */
h1,
.h1 {
    font-weight: 400;
    font-size: 5vw;
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

/* Адаптивные стили */
@media (min-width: 992px) {

    h1,
    .h1 {
        font-size: 3rem;
    }
}

h2 {
    margin-top: 1rem;
    margin-bottom: 1.5rem;
    font-size: 2.5rem;
}

h3 {
    margin-top: 1rem;
    margin-bottom: 1.5rem;
}


h4 {
    margin-top: 2rem;
    margin-bottom: 1rem;
}

p,
li {
    font-weight: 300;
}

li {
    margin-bottom: 1rem;
}

.header-shrink {
    padding: 0.25rem 0;
    background: rgba(18, 58, 67, 0.9);
}

.navbar {
    padding: 0;
}

.header-text {
    font-size: 20px;
    color: #fff;
}

@media (min-width: 1200px) {

    .container {
        max-width: 1040px;
    }
}

.site-logo {
    margin-right: 10rem;
}

.logo-icon {
    height: calc(1rem + 4vw);
    max-height: 4.5rem;
}

.header-shrink .logo-icon {
    height: calc(1rem + 2vw);
}

.navbar-expand-lg .navbar-collapse {
    justify-content: space-between;
}

.navbar-nav .nav-item {
    font-size: 1.25rem;
    margin: 0;
}

.navbar-nav .nav-item.active .nav-link {
    -webkit-opacity: 1;
    -moz-opacity: 1;
    opacity: 1
}

.navbar-nav .nav-link {
    color: #fff;
    -webkit-opacity: .85;
    -moz-opacity: .85;
    opacity: .85;
    font-weight: 300;
    padding: 1rem;
    text-decoration: none
}

.navbar-nav .nav-link:hover {
    -webkit-opacity: 1;
    -moz-opacity: 1;
    opacity: 1
}

/* Hero Section */
.hero {
    position: relative;
    height: calc(10px + 40vw);
    max-height: 25rem;
    background: url('/images/hero.jpg') no-repeat center center;
    background-size: cover;
    overflow: hidden;
}

/* Маска с градиентом */
.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg,
            rgba(36, 43, 66, 0.8) 0%,
            rgba(36, 43, 66, 0.35) 80%,
            rgba(0, 0, 0, 0) 100%);
    z-index: 1;
}

/* Контейнер для контента */
.hero-content {
    position: relative;
    z-index: 2;
    max-width: 700px;
    color: white;
    margin-top: min(calc(1rem + 9vw), calc(4.5rem + 4vw));
}

@media (max-width: 575.98px) {
    .hero-content {
        margin-left: 10px;
        margin-right: 10px;
    }
}

.map-iframe {
    display: block;
    margin: 1.5rem auto;
    height: 80vh;
    width: 100%;
    border: 1px solid #959595;
    box-shadow: 0 0 15px 5px #a1a1a1;
}

.about-sect {
    position: relative;
    padding: 0;
    background-color: rgb(18, 58, 67);
    color: #fff;
}

.about-back,
.data-back {
    margin: 0;
    position: absolute;
    height: 100%;
    width: 100%;
    z-index: 1;
}

.about-text-back {
    height: 100%;
    background: url("/images/about-back.png") no-repeat center center;
    background-size: cover;
}

.about-photo-back {
    background: url("/images/about.jpg") no-repeat center center;
    background-size: 150%;
}

.about-text,
.data-text {
    z-index: 2;
    margin-top: 1.5rem;
    margin-bottom: 3rem;
}

.data-sect {
    position: relative;
    padding: 0;
    margin-top: 2rem;
}

.data-text-back {
    height: 100%;
    background: url("/images/data-back.jpg") no-repeat center center;
    background-size: cover;
}

.data-photo-back {
    background: url("/images/iStock_590062300.jpg") no-repeat center center;
    background-size: cover;
}

.gallery-sect {
    margin-top: 2rem;
    margin-bottom: 2rem;
}

.gallery-sect h2,
.articles-sect h2 {
    text-align: center;
}



/* gallery */
.articles-sect * {
    box-sizing: border-box
}

/* Slideshow container */
.slideshow-container {
    max-width: 800px;
    position: relative;
    margin: auto;
}

/* Hide the images by default */
.slide {
    display: none;
}

/* Number text (1/3 etc) */
.slide-number {
    color: #f2f2f2;
    font-size: 12px;
    padding: 8px 12px;
    position: absolute;
    top: 0;
}

.slide img {
    width: 100%;
}

/* Caption text */
.slide-cap {
    display: none;
    color: #f2f2f2;
    font-size: 15px;
    padding: 16px 12px;
    position: absolute;
    bottom: 0;
    width: 100%;
    text-align: center;
    background-color: rgba(28, 28, 28, .7);
}

/* Next & previous buttons */
.prev,
.next {
    cursor: pointer;
    position: absolute;
    top: 50%;
    width: auto;
    margin-top: -22px;
    padding: 16px;
    color: white;
    font-weight: bold;
    font-size: 18px;
    transition: 0.6s ease;
    border-radius: 5px;
    user-select: none;
    text-decoration: none;
}

/* Position the "prev button" to the left and "next button" to the right */
.prev {
    left: 5px;
}

.next {
    right: 5px;
}

/* On hover, add a black background color with a little bit see-through */
.prev:hover,
.next:hover {
    background-color: rgba(0, 0, 0, 0.8);
}

/* The dots/bullets/indicators */
.dot {
    cursor: pointer;
    height: 15px;
    width: 15px;
    margin: 0 2px;
    background-color: #bbb;
    border-radius: 50%;
    display: inline-block;
    transition: background-color 0.6s ease;
}

.active,
.dot:hover {
    background-color: #717171;
}

/* Fading animation */
.fade {
    animation-name: fade;
    animation-duration: 1.5s;
}

@keyframes fade {
    from {
        opacity: .4
    }

    to {
        opacity: 1
    }
}

/* Красивый фон справа внизу секции с публикациями*/
.articles-sect {
    padding-bottom: 3rem;
    overflow: hidden;
    background-image:
        linear-gradient(to left top, transparent, rgba(255, 255, 255, 1)),
        url("/images/data-back.jpg");
    background-repeat: no-repeat;
    background-position: bottom right;
    background-size: 50%;
}