:root {
    --accent-color: #0A314F;
    --bg-color: #fff;
    --dark-color: #393939;
    --white-color: #fff;
    --black-color: #000;
    --border-color: #EFEFEF;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
html {
    scroll-behavior: smooth;
}

body {
    font-family: sans-serif;
}

a {
    text-decoration: none;
}

[class*='__container'] {
    max-width: 1200px;
    padding: 0 15px;
    margin: auto;
}

.header {

}

.header__nav {
    background-color: var(--accent-color);
    height: 50px;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 3;
}

.header__container {
    height: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.header__nav-links {
    display: flex;
    gap: 16px;
    align-items: center;
}

.header__nav-link {
    color: var(--white-color);
}

.header__burger {
    color: var(--white-color);
    font-size: 24px;
    cursor: pointer;
    transition: all 0.4s;
}

.header__nav-buttons {
    display: flex;
    gap: 16px;
    align-items: center;
    margin-left: 32px;
}

.header__nav-button {
    color: var(--white-color);
    font-size: 24px;
}

.header__sub {
    margin-top: 50px;
    padding: 40px 0;
    background-color: var(--white-color);
    border-bottom: 5px solid var(--accent-color);
}

.header__sub-wrapper {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.header__sub-top {
    display: flex;
    justify-content: space-between;
}

.header__info {
    display: flex;
    gap: 32px;
    font-size: 16px;
}

.header__info-item {
    display: flex;
    gap: 8px;
    align-items: center;
    color: var(--dark-color);
}

.header__info-item i {
    font-size: 24px;
}

.header__logo {
    max-width: 130px;
}

.header__sub-bottom {
    display: flex;
    gap: 32px;
    justify-content: space-between;
}

.header__link {
    color: var(--dark-color);
    font-size: 18px;
}

.header__burger i.icon-menu {
    transform: rotate(0);
}
.header__burger i.icon-close {
    transform: rotate(180deg);
}

.open-menu {
    position: fixed;
    top: 50px;
    width: 100%;
    height: 50px;
    padding: 16px;
    background-color: var(--accent-color);
    transition: all 0.5s;
    z-index: 2;
}

.open-menu.hidden {
    transform: translateY(-100%);
}

.open-menu__container {
    display: flex;
    gap: 16px;
    justify-content: space-between;
}

.open-menu__link {
    color: var(--white-color);

}


.slider {
    padding: clamp(2rem, 1.273rem + 3.64vw, 4rem) 0;
}

.swiper-slide {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.slide__image {
    width: 100%;
}



.slide__title {
    font-size: clamp(1rem, 0.818rem + 0.91vw, 1.5rem);
}

.slide__info {
    position: absolute;
    z-index: 2;
    padding: 16px;
    background-color: rgba(31, 31, 31, 0.8);
    color: var(--white-color);
    display: flex;
    flex-direction: column;
    gap: 16px;
    right: 0;
    width: clamp(15.625rem, 7.67rem + 39.77vw, 37.5rem);
    align-items: flex-start;
}

.button {
    padding: 8px 16px;
    border: 1px solid var(--white-color);
    background-color: inherit;
    color: var(--white-color);
    font-size: 16px;
    border-radius: 2px;
    cursor: pointer;
    transition: all 0.5s;
}

.button:hover {
    background-color: var(--white-color);
    color: var(--dark-color);
}

.slider-button {
    color: var(--white-color)!important;
}

.info-list {

}

.info-list__container {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.info-list__item {
    flex: 1;
    padding: 16px;
    background-color: var(--accent-color);
    color: var(--white-color);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    font-size: clamp(0.875rem, 0.739rem + 0.68vw, 1.25rem);
}

.important {
    padding: clamp(2rem, 1.273rem + 3.64vw, 4rem) 0;
    max-width: 100vw;
}

.title-block {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 32px;
}

.title-block hr {
    flex: 1;
    border: 3px solid var(--border-color);
    margin-top: 8px;
}

.title {
    font-size: clamp(1.125rem, 0.898rem + 1.14vw, 1.75rem);
    color: var(--dark-color);
}

.important__news {
    display: flex;
    flex-direction: column;
    gap: 48px;
}

.i-news__image {
    max-width: 350px;
    object-fit: contain;
}

.i-news {
    display: flex;
    gap: 16px;
}

.i-news__content {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.i-news__date {
    color: var(--accent-color);
    font-weight: 600;
}

.news {
    padding: clamp(2rem, 1.273rem + 3.64vw, 4rem) 0;
}

.news__list {
    display: flex;
    gap: 48px;
    justify-content: center;
    flex-wrap: wrap;
}

.news__item {
    max-width: clamp(15.625rem, 1.042rem + 83.33vw, 21.875rem);
    display: flex;
    flex-direction: column;
    background-color: var(--white-color);
    box-shadow: 0px 0px 57px -7px rgba(0, 0, 0, 0.14);
    border-radius: 2px;
    border-bottom: 2px solid var(--accent-color);
}

.news__item-img {
    margin-bottom: 32px;
    height: 215px;
    object-fit: cover;
}

.button_blue {
    border: 1px solid var(--accent-color);
    color: var(--accent-color);
}

.news__button {
    display: block;
    margin: 0 auto;
    margin-top: 32px;

}

.news__item-info {
    padding: 0 16px 16px;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.news__item-title {
    font-size: 18px;
    margin-bottom: 20px;
}

.news__item-text {
    margin-bottom: 32px;
}

.news__item-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.news__item-date {
    color: var(--accent-color);
}

.button_blue:hover {
    background-color: var(--accent-color);
    color: var(--white-color);
}

.gallery {
    padding: clamp(2rem, 1.273rem + 3.64vw, 4rem) 0;
}

.footer {
    padding: clamp(2rem, 1.273rem + 3.64vw, 4rem) 0;
    background-color: var(--dark-color);
    color: var(--white-color);
}

.footer__container {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.footer__nav {
    display: flex;
    justify-content: space-between;
    margin-bottom: 48px;
}

.footer__nav-link {
    color: var(--white-color);
    font-size: 16px;
}

.footer__social {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 32px;
    margin-bottom: 32px;
}

.footer__social-item {
    font-size: 16px;
    color: var(--white-color);
    display: flex;
    align-items: center;
    gap: 8px;
}

.footer__social-wrapper {
    display: flex;
    gap: 32px;
}

.footer__social-item i {
    font-size: 24px;
}

.footer__copyright {
    text-align: center;
}

.gallery .slide__image {
    height: clamp(25rem, 15.909rem + 45.45vw, 50rem);
    object-fit: cover;
}

.slider .slide__image {
    height: clamp(15.625rem, 9.943rem + 28.41vw, 31.25rem);
    object-fit: cover;
}

.modal {
    position: fixed;
    left: 0;
    top: 0;
    bottom: 0;
    right: 0;
    z-index: 4;
    background-color: rgba(21, 21, 21, 0.82);
    display: flex;
    justify-content: center;
    align-items: center;
}

.popup {
    color: var(--dark-color);
    max-width: 90%;
    background-color: var(--white-color);
    border-radius: 2px;
    display: flex;
    height: max-content;
    position: relative;
}

.popup__info {
    padding: 16px;
    display: flex;
    flex-direction: column;
    height: 100%;
    justify-content: space-between;
}

.popup__date {
    color: var(--accent-color);
    font-weight: 600;
}

.popup__title {
    margin-bottom: 16px;
}

.popup__text {
    margin-top: 16px;
    margin-bottom: 64px;
    max-width: 900px;
}

.popup__button {
    align-self: flex-end;
    position: absolute;
    bottom: 16px;
}

@media screen and (max-width: 1280px){
    .popup {
        flex-direction: column;
        overflow-x: scroll;
    }
}

@media screen and (max-width: 1048px){
    .header__sub-bottom {
        display: none;
    }

    .open-menu {
        top: 0;
        height: 100vh;
        transform: translateY(0%);
    }

    .open-menu__container {
        height: 100%;
        flex-direction: column;
        gap: 32px;
        justify-content: center;
        align-items: center;
    }
}

@media screen and (max-width: 900px){
    .i-news {
        flex-direction: column;
    }

    .footer__nav {
        flex-direction: column;
        align-items: center;
        gap: 8px;
    }
}

@media screen and (max-width: 784px){
    .header__info {
        flex-direction: column;
        gap: 4px;
    }
    .gallery .slide__image {
        object-fit: contain;
        height: auto;
    }
}

@media screen and (max-width: 500px){
    .footer__social {
        flex-direction: column;
        align-items: center;
    }
    .footer__social-wrapper {
        order: 2;
    }
    .popup__image {
        display: none;
    }
}

@media screen and (max-width: 400px){
    .header__sub-top {
        flex-direction: column;
        gap: 16px;
    }

    .open-menu__container {
        align-items: flex-start;
    }

    .header__nav-links {
        display: none;
    }

    .slider-button {
        display: none!important;
    }
    .slide__info {
        left: 0;
        right: 0;
        width: 100%;
    }
    .popup__text {
        font-size: 14px;
        max-height: 300px;
        overflow-x: scroll;
    }

}