
/* Основные стили */
body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    background-color: #e0f7ff;
    display: flex;
    overflow-y: scroll;
}

header {
    width: 100%;
    background-color: #004080;
    color: #ffffff;
    padding: 15px;
    text-align: center;
}

h1 {
    margin: 0;
}

h2 {
    color: #003366;
    padding-top: 16px;
}


.sidebar {
    width: 300px;
    background-color: #3b4a6b;
    color: #ffffff;
    padding-top: 50px;
    position: fixed;
    height: 100%;
    box-shadow: 4px 0 10px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.sidebar a {
    color: #ffffff;
    text-decoration: none;
    display: block;
    padding: 15px 20px;
    margin: 5px 0;
    font-weight: bold;
    transition: background-color 0.3s ease, color 0.3s ease;
    border-radius: 5px;
}

.sidebar a.active {
    background-color: #566b8e;
    color: #e0f7ff;
}

.sidebar a:hover {
    background-color: #4b5c77;
    color: #ffffff;
}

.main-content {
    margin-left: 300px;
    padding: 30px 50px;
    flex: 1;
}

/* Контейнер для вкладок */
.tab-container {
    width: 100%;
    max-width: 1000px;
    margin: 20px auto;
    background-color: #ffffff;
    padding: 0;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    text-align: center;
}


/* Новый стиль табов в строку */
.tabs {
    display: flex;
    justify-content: center;
    gap: 10px;
    padding: 10px 0;
}

.tab {
    padding: 10px 20px;
    text-align: left;
    cursor: pointer;
    background-color: #007acc;
    color: #ffffff;
    font-weight: bold;
    border-radius: 5px;
    transition: background-color 0.3s ease;
}

.tab:hover {
    background-color: #005b99;
}

.tab.active {
    background-color: #ffffff;
    color: #003366;
    border: 2px solid #007acc;
    border-radius: 5px;
}

.tab-content {
    display: none;
    padding: 20px;
    background-color: #ffffff;
}

.tab-content.active {
    display: block;
}

/* Фото-секция */
.photo-section {
    display: flex;
    flex-wrap: wrap;
}

.photo-section img {
    width: 50%;
    max-width: 500px;
    border-radius: 5px;
}

.ya-map {
    width: 100%;
    height: 400px;
    border-radius: 8px;
    margin-top: 20px;
}

.category {
    margin-bottom: 10px;
}

.category h3 {
    cursor: pointer;
}

.category-content {
    display: none;
}

.arrow {
    display: inline-block;
    margin-left: 5px;
    transition: transform 0.3s ease;
}

.expanded .arrow {
    transform: rotate(180deg);
}

button {
    padding: 10px 20px;
    font-size: 1.2em;
    cursor: pointer;
    background-color: #004080;
    color: white;
    border: none;
    border-radius: 5px;
}

button:hover {
    background-color: #003366;
}

.emblems-container {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin: 0 auto 15px; /* Отцентрировать и добавить отступ снизу */
    padding-top: 15px;
}

.emblem {
    width: 60px;
    height: 60px;
    object-fit: contain;
    transition: transform 0.3s ease;
}

.emblem:hover {
    transform: scale(1.1);
}

.close-sidebar-button {
    z-index: 10;
    position: fixed;
    background-color: #566b8e;
    color: #e0f7ff;
    text-decoration: none;
    display: inline-block;
    padding: 15px 15px;
    margin: 5px 5px;
    font-weight: bold;
    transition: background-color 0.3s ease, color 0.3s ease;
    border-radius: 5px;

}

.gallery {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
}


.gallery-image {
    width: 150px;
    height: 150px;
    object-fit: cover;
    cursor: pointer;
}

.modal {
    display: none; /* Скрываем модальное окно по умолчанию */
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    justify-content: center;
    align-items: center;
}

.modal-content {
  display: flex;
  justify-content: center;
  align-items: center;
  max-width: 90%; /* Максимальная ширина модального окна */
  max-height: 90%;
  overflow: auto;
}

.modal-image {
  display: block;
  max-width: 100%; /* Максимальная ширина изображения внутри модального окна */
  max-height: 100%; /* Максимальная высота изображения внутри модального окна */
  object-fit: contain;
}

.modal-close {
    position: absolute;
    top: 10px;
    right: 20px;
    font-size: 30px;
    font-weight: bold;
    cursor: pointer;
    color: white;
}
.modal.show {
    display: flex;
}

video {
    width: 100%;
}