body {
    background-color: whitesmoke;
    padding-bottom: 80px;
    margin: 0;
    padding: 0; 
    width: 100%;
    height: 100%;
    overflow-x: hidden;
    overflow-y: auto;


    /*display: flex;*/
    justify-content: center;
    align-items: center;

    /*height: 100vh;*/
}

header {
    position: fixed; /* Фиксированное позиционирование */
    top: 0; /* Прикрепляем к верхней части страницы */
    left: 0; /* Прикрепляем к левой части страницы */
    width: 100%; /* Задаем ширину на всю страницу */
    display: flex; /* Используем flexbox для расположения элементов */
    align-items: center; /* Вертикальное выравнивание по центру */
    justify-content: space-between; /* Распределяем пространство между элементами */
    min-height: 45px; /* Минимальная высота хедера */
    background-color: #333; /* Цвет фона */
    color: white; /* Цвет текста */
    padding: 0 0; /* Отступы слева и справа */
    font-size: 22px; /* Размер шрифта */
    z-index: 1; /* Устанавливаем z-index, чтобы хедер отображался поверх другого контента */
}

header a {
    color: white;
    text-decoration: none;
    padding: 10px 15px;  /* Добавьте немного большим интервалом */
    margin-right: 20px;
    display: flex;  /* Сделайте `display: flex;` для текстов в ссылках */
    align-items: center;  /* Вертикальное выравнивание ссылок */

}

header a:hover {
    background-color: #555;
}

.nav {
    display: flex;
    width: auto;
}

.dropdown-content {
    display: none;
    position: absolute;
    background-color: #333;
    z-index: 1;
}

.dropdown-content a {
    color: white;
    padding: 12px 20px;
    text-decoration: none;
    display: block;
}

.dropdown-content a:hover {
    background-color: #555;
}

.dropdown:hover .dropdown-content {
    display: block;
    animation: fadeIn 0.4s ease-in-out;
}

@keyframes fadeIn {
    0% {
        opacity: 0;
        transform: translateY(10px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

.burger {
    display: none;
    position: relative;
    z-index: 50;
    align-items: center;
    justify-content: flex-end;
    width: 30px;
    height: 18px;
    margin-right: 15px; /* Добавление отступа справа; здесь 10px — это пример, вы можете изменить значение */
}

.burger span {
    height: 2px;
    width: 100%;
    background-color: aliceblue;
}

.burger::before, .burger::after {
    content: '';
    position: absolute;
    height: 2px;
    width: 100%;
    background-color: aliceblue;
    transition: all 0.3s ease 0s;
}

.burger::before {
    top: 0;
}

.burger::after {
    bottom: 0;
}

.burger.active span {
    transform: scale(0);
}

.burger.active::before {
    top: 50%;
    transform: rotate(-45deg) translate(0, -50%);
}

.burger.active::after {
    bottom: 50%;
    transform: rotate(45deg) translate(0, 50%);
}

@media (max-width: 1250px) {
    .burger {
        display: flex;
    }

    .nav {
        display: none;
        flex-direction: column;
        position: fixed;
        height: 100%;
        width: 100%;
        top: 0;
        left: 0;
        right: 0;
        z-index: 50;
        overflow-y: auto;
        padding: 60px 40px;
        background-color: black;
        display: burgerAnimation 0.7s;

    }

    .nav.open {
        display: flex;
    }

    .nav ul {
        flex-direction: column;
        row-gap: 30px;
    }
}

@keyframes burgerAnimation {
    from {opacity: 0;}
    to {opacity: 1;}
}

/* Корректировка отображения элементов */
.dropdown {
    position: relative;
    display: inline-block;
}

footer {
    background-color: #333;
    color: white;
    padding: 10px;
    text-align: center;
    bottom: 0;
    left: 0;
    width: 100%;
}

table {
    width: 95%;
    background-color: white;
    margin: 0 auto;
    border-collapse: collapse;
    border: 1px solid #ccc; /* добавляем рамку */
    border-radius: 24px;   /* радиус закругления */
    overflow: hidden;       /* скрываем излишки, если есть */
}

td {
    padding: 20px;
}

p {
    font-size: 26px;
    line-height: 1.5;
    text-indent: 3%;
}

h1 {
    font-family: 'Roboto', sans-serif;
    font-size: 42px; /* Увеличенный размер заголовка */
    font-weight: 700;
    color: #333;
    margin-bottom: 10px;
    text-align: center;
}

h2 {
    font-family: 'Montserrat', sans-serif;
    font-size: 28px; /* Увеличенный размер подзаголовка */
    font-weight: 600;
    color: #444; /* Темный цвет подзаголовка */
    margin: 20px 0 10px 0;
}

h3 {
    font-family: 'Arial', sans-serif;
    font-size: 22px; /* Увеличенный размер подзаголовка 3 уровня */
    font-weight: 600;
    color: #555;
    margin: 15px 0;
}

ul {
    font-family: 'Tahoma', sans-serif;
    font-size: 20px; /* Уменьшение размера для улучшения дальнейшего восприятия */
    list-style-type: none; /* Убрать маркеры списка */
    margin-left: 0; /* Убрать отступ слева */
    padding: 0; /* Убрать внутренний отступ */
}

ul li {
    margin: 10px 0; /* Отступ между элементами списка */
}

a {
    text-decoration: none; /* Убрать подчеркивание */
    color: #006400; /* Зеленый цвет текста */
    transition: color 0.3s; /* Плавный переход цвета */
}

a:hover {
    color: #ff4500; /* Цвет при наведении */
}

.gallery-image {
    width: 285px;
    height: 185px;
    object-fit: cover;
    margin: 10px;
    border-radius: 5px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.3);
}

.search-container {
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 20px 0;
}

.search-input {
    padding: 8px 18px;
    border: none;
    border-radius: 20px 20px 20px 20px;
    font-size: 16px;
    width: 250px;
    margin-right: 10px;
}

.search-button {
    background-color: #4CAF50;
    color: white;
    border: none;
    border-radius: 16px 16px 16px 16px;
    padding: 8px 15px;
    cursor: pointer;
    font-size: 16px;
    margin-right: 10px;
}

.search-button i {
    font-size: 16px;
}

input:focus {
    outline: none;
}

nav a.active {
    color: #4CAF50;
}

.dropdown-content {
    display: none;
    position: absolute;
    background-color: #333; 
    min-width: 1px;
    z-index: 1;
}
    .dropdown-content a {
        color: white; 
        padding: 12px 20px; 
        text-decoration: none;
        display: block;
    }

        .dropdown-content a:hover {
            background-color: #555;
        }

        .dropdown:hover .dropdown-content {
            display: block;
            animation: fadeIn 0.4s ease-in-out;
        }
        
        @keyframes fadeIn {
            0% {
                opacity: 0;
                transform: translateY(10px);
            }
            100% {
                opacity: 1;
                transform: translateY(0);
            }
        }

.dropdown {
    display: inline-block;
}

.modal {
    display: none;
    position: fixed;
    z-index: 1;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.3);
}

.modal-content {
    background-color: #fefefe;
    margin: 15% auto;
    padding: 20px;
    border: 1px solid #888;
    width: 30%;
}

.close-button {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
}

    .close-button:hover,
    .close-button:focus {
        color: black;
        text-decoration: none;
        cursor: pointer;
    }

  /* Стили для iframe */
  .map-container {
    width: 100%; /* Полная ширина */
    height: 60vh; /* Высота 60% высоты вьюпорта, можете изменить по желанию */
    border-radius: 15px; /* Закругление углов */
    overflow: hidden; /* Прячем лишние части */
}

.map-container iframe {
    width: 100%; /* Полная ширина для iframe */
    height: 100%; /* Полная высота для iframe */
   
}

/* для фоток в галареи*/
#photo-gallery {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
}

#photo-gallery img {
    width: auto; /* Начальный размер изображения */
    margin: 7px; /* Отступ между изображениями */
    transition: transform 0.5s ease, filter 0.5s ease; /* Плавный переход */


    border: 0; /* Убираем рамку */
}

#photo-gallery img:hover {
    transform: scale(1.1); /* Увеличение изображения */
    filter: brightness(1.1); /* Легкое увеличение яркости при наведении */
}

/*Фотогалерея главное*/
.image-container {
    position: relative;
    overflow: hidden;
    /*width: 1369px; /* Укажите ширину изображения */
    /*height: 9297px; /* Укажите высоту изображения */
}

.image-container img {
    width: 100%;
    height: 100%;
    /*width: 1369px; /* Укажите ширину изображения */
    /*height: 9297px; /* Укажите высоту изображения */
    object-fit: cover; /* Обеспечивает заполнение контейнера изображением */
    display: block;
}

.gradient-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;

    background: 
    linear-gradient(to right, white 0%, rgba(255, 255, 255, 0) 4%, rgba(255, 255, 255, 0) 90%, white 100%), 
    linear-gradient(to left, white 0%, rgba(255, 255, 255, 0) 4%, rgba(255, 255, 255, 0) 90%, white 100%),
    linear-gradient(to bottom, white 0%, rgba(255, 255, 255, 0) 2%, rgba(255, 255, 255, 0) 100%),
    linear-gradient(to top, white 0%, rgba(255, 255, 255, 0) 2%, rgba(255, 255, 255, 0) 100%);
    pointer-events: none; /* Позволяет взаимодействовать с изображением под градиентом */
}

/* Стили для треугольника */
.dropdown-toggle {
    cursor: pointer;
    margin-left: 5px; /* Отступ от текста */
    font-size: 14px; /* Размер треугольника */
    color: white;
    transition: transform 0.3s ease;
}

.dropdown-toggle:hover {
    color: #ccc; /* Лёгкий hover-эффект */
}

.dropdown-toggle.active {
    transform: rotate(180deg); /* Переворачиваем треугольник при открытии */
}

/* Dropdown-content открывается на hover или по классу .show */
.dropdown-content {
    display: none;
    position: absolute;
    background-color: #333;
    z-index: 1;
}

.dropdown-content.show {
    display: block;
    animation: fadeIn 0.4s ease-in-out;
}

/* Открытие подменю при наведении на весь dropdown */
.dropdown:hover .dropdown-content {
    display: block;
    animation: fadeIn 0.4s ease-in-out;
}

@keyframes fadeIn {
    0% {
        opacity: 0;
        transform: translateY(10px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}



/* Стили для мобильных устройств */
@media (max-width: 1250px) {
    /* Добавляем стили для ссылок в мобильном меню */
    .nav a {
        font-size: 34px; /* Устанавливаем размер шрифта 34px */
        /*padding: 20px 0; /* Увеличиваем отступы для лучшего касания */
        /*margin: 10px 0; /* Добавляем отступы между пунктами меню */
    }
    /* Скрываем подменю по умолчанию */
    .dropdown-content {
        display: none;
        position: static;
        background-color: #444;
        margin-left: 30px; /*20*/
        width: calc(100% - 60px); /*40*/
        animation: none;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease-out;
        font-size: 34px; /* Увеличенный размер шрифта -------------*/
    }
    
    /* Показываем подменю при наличии класса show */
    .dropdown-content.show {
        display: block;
        max-height: 600px; /*500*/
        animation: fadeIn 0.4s ease-in-out;
    }
    
    /* Стили для треугольника в мобильном меню */
    .nav.open .dropdown-toggle {
        display: inline-block;
        margin-left: 15px; /*10*/
        transition: transform 0.3s ease;
        font-size: 34px; /*----------------------------*/
    }
    
    .nav.open .dropdown-toggle.active {
        transform: rotate(180deg);
    }
    
    /* Отключаем стандартное поведение hover в мобильном меню 
    /*.nav.open .dropdown:hover .dropdown-content {
        display: none;
    } */
    
    /* Включаем только ручное управление через класс show */
    .nav.open .dropdown-content.show {
        display: block;
    }

    /* Убираем стандартное поведение hover для десктопной версии */
    .dropdown:hover .dropdown-content {
        display: none;
    }
}

/* Для десктопной версии возвращаем hover */
@media (min-width: 1251px) {
    .dropdown:hover .dropdown-content {
        display: block;
        animation: fadeIn 0.4s ease-in-out;
    }
    
    .dropdown-content {
        display: none;
        position: absolute;
        background-color: #333;
        z-index: 1;
    }
}

/* Анимация появления */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}