@import url("https://fonts.googleapis.com/css2?family=Raleway:wght@400;700&display=swap");
@import url("https://fonts.googleapis.com/css2?family=Lora:ital,wght@0,400;0,500;0,600;1,400;1,500;1,600&display=swap");
body {
    position: relative;
    width: 100%;
    font-size: 16px;
    min-height: 100vh;
    color: #25282e;
    font-family: "Raleway", sans-serif;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: "Lora", serif;
}

a {
    color: inherit;
    text-decoration: none;
}

p {
    text-align: justify
}

main {
    min-height: calc(100vh - 425px);
}


/* top navs */

.top-nav {
    height: 45px;
    width: 100%;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    font-size: 12px;
}

.top-nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.top-nav .nav-link {
    line-height: 45px;
}

.top-nav svg,
.top-nav a {
    fill: #25282e;
    transition: fill ease-in 200ms, color ease-in 200ms;
}

.top-nav .nav-link:hover {
    color: #c1b696;
}

.top-nav .nav-link:hover svg {
    fill: #c1b696;
}

.top-nav .social-links .nav-link,
.top-nav .lang-links .nav-link {
    padding: 0 0px;
    margin: 0 4px;
}


/* navbar */

.navbar {
    min-height: 90px;
    font-size: 15px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.navbar .navbar-brand {
    font-size: 15px;
    font-family: "Lora", serif;
    font-style: italic;
    font-weight: 500;
}

.navbar .navbar-brand>span {
    line-height: 20px;
}

.navbar .navbar-brand img {
    width: 40px;
}

.navbar .navbar-toggler {
    border: 1px solid #25282e;
}

.navbar.navbar-light .nav-link,
.navbar.navbar-light .navbar-brand {
    color: #25282e;
    transition: color ease-in 200ms;
}

.navbar.navbar-light .nav-link:hover,
.navbar.navbar-light .navbar-brand:hover {
    color: #c1b696;
}

.navbar .dropdown-menu {
    padding: 5px 0;
    border-radius: 0;
}

.navbar .dropdown-menu .dropdown-item {
    transition: color ease-in 200ms, background-color ease-in 200ms;
}

.navbar .dropdown-menu .dropdown-item:hover,
.navbar .dropdown-menu .dropdown-item:focus {
    color: #c1b696;
}


/* footer */

.footer .top-footer {
    height: 200px;
    font-size: 16px;
    background-color: #25282e;
    color: #888888;
}

.footer .bottom-footer {
    height: 90px;
    font-size: 16px;
    background-color: #212329;
    color: #777777;
}


/* index */

.welcome-container {
    width: 100%;
    height: calc(100vh - 135px);
    background: url(/static/img/background.jpg);
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center center;
    color: #ffffff;
}

@media (min-width: 576px) {
    .welcome-container {
        background-position: center right;
    }
}

@media (min-width: 768px) {
    .welcome-container {
        background-position: center right;
    }
}

.welcome-container .overflow {
    background-color: rgba(0, 0, 0, 0.3);
}

.welcome-container h1 {
    font-size: 80px;
    font-weight: 500;
    text-align: center;
}

@media (min-width: 320px) and (max-width: 480px) {
    .welcome-container h1 {
        font-size: 20px;
    }
}

@media screen and (min-width: 576px) {
    .welcome-container h1 {
        font-size: 20px;
    }
}

@media (min-width: 768px) {
    .welcome-container h1 {
        font-size: 50px;
    }
}

@media (min-width: 992px) {
    .welcome-container h1 {
        font-size: 80px;
    }
}

@media (min-width: 1200px) {
    .welcome-container h1 {
        font-size: 80px;
    }
}

.welcome-container p {
    font-size: 32px;
    text-align: center;
    font-family: "Lora", serif;
}

.welcome-container .btn {
    font-size: 16px;
    background-color: #ffffff;
    color: #25282e;
    border-radius: 0;
}

.welcome-container .btn:hover,
.welcome-container .btn:focus {
    background-color: #25282e;
    color: #ffffff;
    border: 1px solid #ffffff;
}


/* about */

.about {
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.about h2 {
    font-size: 40px;
}

.about p {
    font-size: 20px;
    text-align: justify
}

.about .btn {
    font-size: 16px;
    background-color: #25282e;
    color: #ffffff;
    border-radius: 0;
}

.about .btn:hover,
.about .btn:focus {
    background-color: #ffffff;
    color: #25282e;
    border: 1px solid #25282e;
}


/* news */

.news {
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.news .news-item {
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    display: flex;
}

.news .news-item:last-child {
    border-bottom: none;
    padding-bottom: 0 !important;
}

.news-item .image-container {
    width: 350px;
    height: 185px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.image-container .news-item-image {
    height: 185px;
    width: 300px;
}

.news-item .news-item-date {
    text-transform: uppercase;
}

.news-item .news-item-date .day {
    font-size: 45px;
    color: #c1b696;
    line-height: 20px;
}

.news-item .news-item-date .month {
    font-size: 15px;
    font-weight: 600;
}

.news-item .news-item-date .weekday {
    font-size: 20px;
    color: #c1b696;
    font-family: "Lora", serif;
    font-style: italic;
    font-weight: 600;
}

.news-item .news-item-date .year {
    font-size: 25px;
    font-family: "Lora", serif;
    font-style: italic;
    display: none;
}

.news-item .news-item-info {
    display: flex;
    flex-direction: column;
    align-items: start;
    justify-content: center;
}

.news-item .news-item-info .news-item-title a {
    transition: color ease-in 200ms;
}

.news-item .news-item-info .news-item-title:hover a {
    color: #c1b696;
    text-decoration: none;
}

.news-item .news-item-info .btn {
    border-radius: 0;
    color: #ffffff;
    background-color: #25282e;
    border: 1px solid #ffffff;
}

.news-item .news-item-info .btn:hover {
    color: #25282e;
    background-color: #ffffff;
    border: 1px solid #25282e;
}

.card-text {
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    line-height: 19px;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 4;
    word-wrap: break-word;
    margin-bottom: 0.5rem;
    font-weight: 200;
    font-size: 16px;
    text-align: justify
}


/* digit */

.digit {
    background-color: #25282e;
    color: #ffffff;
    text-align: center;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.digit h2 {
    font-size: 50px;
}

.digit span {
    font-size: 50px;
    color: #c1b696;
}

.digit h4 {
    font-size: 22px;
}

.digit .digit-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 240px;
}

.digit .digit-item {
    border-bottom: 1px solid #888888;
}

@media (min-width: 576px) {
    .digit .digit-item:nth-child(5),
    .digit .digit-item:nth-child(6) {
        border: none;
    }
    .digit .digit-item:nth-child(1),
    .digit .digit-item:nth-child(4),
    .digit .digit-item:nth-child(6),
    .digit .digit-item:nth-child(7) {
        border-right: 1px solid #888888;
    }
}

@media (min-width: 768px) {
    .digit .digit-item:nth-child(5),
    .digit .digit-item:nth-child(6),
    .digit .digit-item:nth-child(7),
    .digit .digit-item:nth-child(8) {
        border: none;
    }
    .digit .digit-item:nth-child(1),
    .digit .digit-item:nth-child(4),
    .digit .digit-item:nth-child(6),
    .digit .digit-item:nth-child(7) {
        border-right: none;
    }
    .digit .digit-item:nth-child(2),
    .digit .digit-item:nth-child(3),
    .digit .digit-item:nth-child(6),
    .digit .digit-item:nth-child(7) {
        border-left: 1px solid #888888;
        border-right: 1px solid #888888;
    }
}

@media (min-width: 992px) {
    .digit .digit-item:nth-child(5),
    .digit .digit-item:nth-child(6),
    .digit .digit-item:nth-child(7),
    .digit .digit-item:nth-child(8) {
        border: none;
    }
    .digit .digit-item:nth-child(1),
    .digit .digit-item:nth-child(4),
    .digit .digit-item:nth-child(6),
    .digit .digit-item:nth-child(7) {
        border-right: none;
    }
    .digit .digit-item:nth-child(2),
    .digit .digit-item:nth-child(3),
    .digit .digit-item:nth-child(6),
    .digit .digit-item:nth-child(7) {
        border-left: 1px solid #888888;
        border-right: 1px solid #888888;
    }
}

@media (min-width: 1200px) {
    .digit .digit-item:nth-child(5),
    .digit .digit-item:nth-child(6),
    .digit .digit-item:nth-child(7),
    .digit .digit-item:nth-child(8) {
        border: none;
    }
    .digit .digit-item:nth-child(1),
    .digit .digit-item:nth-child(4),
    .digit .digit-item:nth-child(6),
    .digit .digit-item:nth-child(7) {
        border-right: none;
    }
    .digit .digit-item:nth-child(2),
    .digit .digit-item:nth-child(3),
    .digit .digit-item:nth-child(6),
    .digit .digit-item:nth-child(7) {
        border-left: 1px solid #888888;
        border-right: 1px solid #888888;
    }
}

.digit .digit-item:hover {
    background-color: #212329;
    cursor: pointer;
}


/* author */

.author-section .author:not(:last-child) {
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}


/* excoursion */

.excoursion-section .btn {
    border-radius: 0;
    background-color: #25282e;
    color: #ffffff;
}

.excoursion-section .btn:hover,
.excoursion-section .btn:focus {
    background-color: #ffffff;
    color: #25282e;
    border-color: #25282e;
}

.excoursion-section .modal-content {
    border-radius: 0;
}


/* news info */

.post .post-images {
    justify-content: center;
    align-items: center;
}

.post .date {
    font-size: 18px;
    color: #777777;
}

.post .post-image {
    overflow: hidden;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.post .post-image>img {
    width: 100%;
}


/* catalog */

.popover-body {
    white-space: pre-line !important;
}

table.table th,
table.table td {
    border-color: #25282e !important;
}

.showcases .accordion .col-md-3 .btn {
    margin-top: 29px;
}

.el_catalog {
    overflow: scroll;
    height: 700px;
}

.table-wrapper th {
    position: sticky;
    top: 0;
    border-color: #25282e;
}

th {
    background: #F7F7F7;
}


/* collections */

.photos .item {
    width: 250px;
    height: 150px;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
}

.photos .item img {
    width: 250px;
    transition: all ease-in 250ms;
}

.photos .item:hover {
    overflow: visible;
}

.photos .item:hover img {
    transform: scale(1.5);
}


/* Модальный (фон) */

.modal1 {
    display: none;
    /* Скрыто по умолчанию */
    position: fixed;
    /* Оставаться на месте */
    z-index: 1;
    /* Сидеть на вершине */
    left: 0;
    top: 0;
    width: 100%;
    /* Полная ширина */
    height: 100%;
    /* Полная высота */
    overflow: auto;
    /* Включите прокрутку, если это необходимо */
    background-color: rgb(0, 0, 0);
    /* Цвет запасной вариант */
    background-color: rgba(0, 0, 0, 0.4);
    /* Черный с непрозрачностью */
}


/* Модальное содержание/коробка */

.modal1-content {
    background-color: #fefefe;
    margin: 2% auto;
    /* 15% сверху и по центру */
    padding: 20px;
    border: 1px solid #888;
    width: 80%;
    /* Может быть больше или меньше, в зависимости от размера экрана */
}


/* Кнопка закрытия */

.close {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    text-align: right;
}

.close:hover,
.close:focus {
    color: black;
    text-decoration: none;
    cursor: pointer;
}

#toTop {
    width: 50px;
    background: #f7f7f7;
    text-align: center;
    padding: 5px;
    position: fixed;
    bottom: 15px;
    /* отступ кнопки от нижнего края страницы*/
    right: 15px;
    cursor: pointer;
    display: none;
    color: #333;
}


/* Paginator*/

.pagination {
    display: flex;
    justify-content: center;
    padding: 8px 16px;
    text-decoration: none;
}

.pagination li {
    padding: 5px 10px;
}

.pagination li.active {
    background-color: #25282e;
    color: white;
}

.pagination li:hover:not(.active) {
    background-color: #ddd;
}

.back {
    width: 2%;
}