/* Общие стили */
body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    min-height: 100vh;
    box-sizing: border-box;
    background-color: #f8f8f8;
    background-image: url('letnijfon3.jpg');
    background-size: cover;
    background-attachment: fixed;
}

/* Стили для контейнера видео */
#video-container {
    position: fixed; /* Фиксированное позиционирование */
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9999; /* Выше всех остальных элементов */
    overflow: hidden; /* Скрытие части видео, которая выходит за границы контейнера */
}

/* Стили для видео */
#myVideo {
    width: auto;
    height: auto;
    min-width: 100%; /* Видео займет всю ширину контейнера */
    min-height: 100%; /* Видео займет всю высоту контейнера */
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%); /* Центрируем видео */
    transition: opacity 1s ease-in-out;
}


/* Стили для шапки */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: #33333300;
    padding: 10px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    z-index: 1;
    height: 80px;
}

#logo {
    width: 200px;
    height: auto;
}

nav {
    flex: 1;
    text-align: center;
}

nav a {
    margin: 1 18px;
    text-decoration: none;
    color: white;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    font-size: 24px;
    transition: color 0.3s ease;
}

nav a:hover {
    color: #9c6a27;
}

.social-links {
    margin-left: auto; /* Перемещение иконок вправо */
    margin-right: 28px; /* Увеличение расстояния между иконками и навигацией */
    display: flex;
    align-items: center;
}

.social-link {
    margin-right: 8px; /* Расстояние между иконками */
}

.social-icon {
    width: 25px; /* Ширина иконки */
    height: 25px; /* Высота иконки */
    border-radius: 30%; /* Делаем иконки круглыми */
}


/* Флажки */
.language-link {
    margin: 0 8px;
    display: flex;
}

/* Блок с анимацией мигания */
.flashing {
    animation: flashing 1s infinite alternate;
}

@keyframes flashing {
    from {
        opacity: 1;
    }
    to {
        opacity: 0.5;
    }
}

.flag-icon {
    width: 35px;
    height: auto;
}

/* Кнопка контактов */
#contact-button {
    margin-right: 25px;
    padding: 10px 20px;
    font-size: 16px;
    background-color: #9c6a27;
    color: white;
    border: none;
    cursor: pointer;
    transition: background-color 0.3s ease;
    border-radius: 10px;
}

#contact-button:hover {
    background-color: #8B4513;
}

nav a:not(:last-child) {
    margin-right: 35px;
}

body.scrolled header {
            background-color: #604335;
        }

/* Фон и стили для галереи */
#gallery {
    position: relative;
    margin-top: 10vh;
}

/* .background-photo {
    position: relative;
    width: 100%;
    height: 100vh;
    overflow: hidden;
} */

.background-photo img {
    width: 100%;
    height: auto;
    object-fit: cover;
}

.photo-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #fff;
}

.photo-text {
    font-size: 4vw;
    font-weight: bold;
    margin-bottom: 3vw;
    margin-right: 20vw;
    margin-top: -15vw;
    color: #ffffff;
    /* text-shadow: 2px 2px 4px rgba(185, 103, 26, 0.781); */
    text-shadow: 0.5vw 0.5vw 1vw rgba(14, 8, 2, 0.712); /* Заменим на адаптивный размер */
    
}

.text-photo {
    /* font-size: 18px;
    margin-right: 220px; */
    font-size: 2vw; /* Заменим на адаптивный размер */
    margin-right: 10vw; /* Заменим на адаптивный размер */
    color: #ffffff;
    /* text-shadow: 2px 2px 4px rgba(185, 103, 26, 0.781); */
    text-shadow: 0.5vw 0.5vw 1vw rgba(14, 8, 2, 0.712); /* Заменим на адаптивный размер */
    /*-webkit-text-stroke: 0.5px #884924;*/
    
}

#gallery-button {
    background-color: #8B4513;
    color: #fff;
    /* padding: 15px 30px; */
    padding: 1vw 3vw; /* Заменим на адаптивный размер */
    border: none;
    border-radius: 5px;
    cursor: pointer;
    text-align: center;
    /* font-size: 18px;
    margin-right: 790px; */
    font-size: 1.5vw; /* Заменим на адаптивный размер */
    margin-right: 40vw; /* Заменим на адаптивный размер */
    
}

#gallery-button:hover {
    background-color: #8B4513; /* Изменение цвета при наведении */
    text-decoration: none; /* Убираем подчеркивание */
}

/* Фотогалерея */
.photo-container {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap; /* Позволяет элементам переноситься на новую строку при необходимости */
    padding: 20px; /* Добавим немного внутренних отступов */
}

.photo {
    text-align: center;
    margin-bottom: 30px; /* Отступ между фотографиями */
    width: 30%; /* Устанавливаем ширину для каждой фотографии, чтобы они занимали примерно одинаковое пространство */
    position: relative; 
}

.photo img {
    max-width: 100%; /* Чтобы изображение масштабировалось адаптивно */
    height: auto; /* Автоматическая высота */
    border-radius: 10px; /* Закруглим углы изображения */
}

.photo-circle {
    width: 40px; /* Размер круга */
    height: 40px; /* Размер круга */
    background-color: #D2B48C; /* Цвет фона круга */
    color: white; /* Цвет текста */
    border-radius: 50%; /* Закруглим круг */
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.5em; /* Размер текста */
    font-weight: bold;
    position: absolute;
    top: 10px;
    left: 50%;
    transform: translateX(-50%);
}

.photo-text1 {
    font-size: 1.2em; /* Размер текста */
    font-weight: bold; /* Жирный шрифт */
    margin-top: 30px; /* Отступ сверху текста */
    margin-bottom: 15px; /* Отступ снизу текста */
    color: #ffffff; /* Цвет текста */
    text-align: center;
    
}

.photo p {
    font-size: 1.5em; /* Размер текста */
    line-height: 1.4; /* Межстрочный интервал */
    color: #ffffff; /* Цвет текста */
    text-align: center;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: rgba(0, 0, 0, 0.5); /* добавляем прозрачный фон */
    padding: 10px; /* добавляем отступы */
    width: 50%; /* задаем ширину */
    border-radius: 10px;
}


/* Стили для блока с изображением и текстом */
.side-by-side-block {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
}

.image-container {
    flex: 1;
    margin-right: 90px; /* Отступ между изображением и текстом */
    position: relative; /* Устанавливаем позиционирование элемента как относительное */
    border-radius: 10px;
}

.image-container img {
    max-width: 70%;
    margin-left: 55%;
    border-radius: 10px;
}

.side-by-side-content {
    flex: 2;
    background-color: rgba(112, 64, 16, 0.411); /* Полупрозрачный коричневый фон */
    color: #f8f8f8;
    padding: 80px; /* Отступ внутри блока с текстом */
    border-radius: 10px;
    margin-left: 1%;
    text-decoration: none; /* Убираем подчеркивание */
}

.side-by-side-text {
    font-size: 2.2em;
    position: relative;
    text-decoration: none; /* Убираем подчеркивание */
    
}

.vaata-button {
    display: block;
    font-size: 1.4em;
    margin-top: 20px; /* Отступ между текстом и кнопкой */
    padding: 10px 20px;
    background-color: #9c6a27; /* Цвет фона кнопки */
    color: white; /* Цвет текста на кнопке */
    border: none;
    border-radius: 5px;
    cursor: pointer;
    text-decoration: none; /* Убираем подчеркивание */
}

.side-by-side-content .vaata-button {
    text-decoration: none; /* Убираем подчеркивание */
}

.vaata-button:hover {
    background-color: #8B4513; /* Изменение цвета при наведении */
    text-decoration: none; /* Убираем подчеркивание */
}


/* Блок с центрированным контентом */
.centered-block {
    text-align: center;
    margin-top: 10vw;
    margin-bottom: 10vw;
}

.centered-block h2 {
    font-size: 3vw;
    font-weight: bold;
    color: #ffffff;
    margin-bottom: 1vw;
    font-family: 'Arial', sans-serif;
    text-transform: uppercase;
}

.centered-block p {
    font-size: 1vw;
    margin-bottom: 2vw;
    line-height: 1.6;
    color: aliceblue;
    font-family: 'Helvetica', sans-serif;
}

/* Блок с фотографиями */
.photo-container1 {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    margin-top: 2vw;
}

.photo1 {
    width: 15%;
    margin-bottom: 2.5vw;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    height: 100%;
}

.photo1 img {
    width: 30%;
    height: auto;
    border-radius: 5px;
}

.photo-text2 {
    font-size: 1.4vw;
    font-weight: bold;
    color: aliceblue;
    display: flex;
    align-items: center;
    margin-top: 2.5vw;
}

.small-text1 {
    font-size: 1.8vw;
    text-align: center;
}

/* Блок с иконками и текстом */
#gallery3 {
    position: relative;
    margin-top: 10vw;
}

/* .background-photo3 {
    position: relative;
    width: 100%;
    height: 100vh;
    overflow: hidden;
} */

.background-photo3 img {
    width: 100%;
    height: auto;
    object-fit: cover;
}

.photo-overlay3 {
    position: absolute;
    top: 25%;
    left: 15%;
    width: 30%;
    height: 50%;
    background-color: rgba(60, 43, 35, 0.541);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 4vw;
    box-sizing: border-box;
    border-radius: 2vw;
}

.overlay-container {
    background-color: #8B4513;
    padding: 2vw;
    border-radius: 1vw;
    box-sizing: border-box;
}

.photo-text3,
.text-photo3,
#gallery-button3 {
    margin-bottom: 2vw;
    color: #fff;
}

.photo-text3 {
    font-size: 4vw;
    font-weight: bold;
    /* text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5); */
    text-shadow: 0.5vw 0.5vw 1vw rgba(0, 0, 0, 0.5); /* Заменим на адаптивный размер */
}

.text-photo3 {
    /* font-size: 18px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5); */
    font-size: 1.5vw; /* Заменим на относительное значение */
    text-shadow: 0.5vw 0.5vw 1vw rgba(0, 0, 0, 0.5); /* Заменим на адаптивный размер */
}

#gallery-button3 {
    background-color: #fff;
    color: #92552a;
    padding: 1.4vw 2.6vw; /* Заменим на относительное значение */
    border: none;
    border-radius: 1vw;
    cursor: pointer;
    font-size: 1.4vw;
    transition: background-color 0.3s ease;
}

#gallery-button3:hover {
    background-color: #654321;
}

/* Стили для футера */
footer {
    background-color: #f8f8f800;
    padding: 8vw 4vw;
    text-align: center;
}

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

.footer-logo img {
    max-width: 30vw;
}

.footer-data {
    text-align: right;
}

.footer-data p {
    margin: 0;
    font-size: 1.5vw;
    color: #ffffff;
}

footer p:last-child {
    margin-top: 1vw;
}

.textavatud {
    font-size: 1vw;
    color:aliceblue;
}

.text-center {
    text-align: center;
    margin-top: 1vw;
    color: aliceblue;
}


/* телефон */
/* Медиа-запрос для устройств с максимальной шириной экрана 768px (например, телефоны) */
@media screen and (max-width: 1024px) {
    /* Стили для шапки */
    header {
        height: auto; /* Высота шапки будет автоматически определяться содержимым */
        align-items: center;
    }

    #video-container {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        z-index: 9999;
        overflow: hidden;
    }
    
    #myVideo {
        width: 100vw; /* Видео будет занимать всю ширину контейнера */
        height: 100vh; /* Видео будет занимать всю высоту контейнера */
        object-fit: fill; /* Видео будет подстраиваться под размер контейнера, сохраняя пропорции и заполняя его целиком */
    }
    

   nav {
        align-items: center;
        justify-content: flex-start;
    }

    nav a {
        margin: 5px -15px; /*-15px*/
        font-size: 10px;
        margin-left: -20px;
    }
    
    /* Уменьшаем ширину логотипа */
    #logo {
        width: 60px; /* Примерная ширина логотипа */
    }
    
    /* Уменьшаем размер кнопки контактов и скрываем ее */
    #contact-button {
        /*margin: 5px 8px 0px ;*/
        /*font-size: 10px;*/
        display: none;
    }
    
    /* Уменьшаем размер флагов */
    .flag-icon {
        width: 20px; /* Примерный размер флага */
        margin: 5px -23px;
        margin-right: 15px;
        
    }
    
    .social-links {
    margin-right: 15px; /* Перемещение иконок влево */
    margin-left: auto; /* Увеличение расстояния между иконками и навигацией */
    }


    .social-icon {
        width: 13px; /* Ширина иконки */
        height: 13px; /* Высота иконки */
        
    }

    /* Стили для блока с изображением и текстом */
    .side-by-side-block {
        flex-direction: column; /* Переходим на вертикальное расположение блоков */
        align-items: center;
    }

    .image-container img {
        max-width: 100%; /* Максимальная ширина изображения равна ширине контейнера */
        margin-left: 50px; /* Убираем отступ слева */
        margin-bottom: 20px; /* Добавляем отступ снизу для изображения */
        align-items: center;

    }
    
    .photo-circle {
        height: auto;
    }

    /*  */
    .photo {
        width: 100%; /* Устанавливаем ширину фотографии на всю ширину экрана */
        margin-bottom: 20px; /* Уменьшаем отступ между фотографиями */
    }

    .photo-text {
    font-size: 3vw;
    
    
}

.text-photo {
     font-size: 2.3vw;
    
    
}
    

    .photo-circle {
        width: 30px; /* Уменьшаем размер круга */
        height: 30px; /* Уменьшаем размер круга */
        font-size: 1em; /* Уменьшаем размер текста в круге */
    }

    .photo-text1 {
        font-size: 1em; /* Уменьшаем размер текста */
        margin-top: 10px; /* Уменьшаем отступ сверху текста */
        margin-bottom: 5px; /* Уменьшаем отступ снизу текста */
    }

    .photo p {
        font-size: 0.8em; /* Уменьшаем размер текста */
        padding: 5px; /* Уменьшаем внутренние отступы текста */
        width: 80%; /* Уменьшаем ширину текста */
    }
    /*  */
    /* .photo-text1 {
    font-size: 6px; 
    }


    .photo p {
        display: none;
    } */
    /*фывапфцувафца*/
    
    /*фывафйывафыва*/

    

    .side-by-side-content {
        padding: 5vw; /* Уменьшаем внутренние отступы блока с текстом */
    }

    .side-by-side-text {
        margin-top: 20px; /* Увеличиваем отступ между текстом и изображением */
        font-size: 1em
    }

    .vaata-button {
        margin-top: 20px; /* Увеличиваем отступ между текстом и кнопкой */
        font-size: 1em
    }
    
    .centered-block {
    height:auto;
    
    }
    
    .centered-block h2 {
        font-size: 18px;
    }
    
    .centered-block p {
        font-size: 16px;
    }

    /* Стили для блока с фотографиями */
    .photo-container1 {
        margin-top: 5vw; /* Уменьшаем отступ сверху */
    }

    .photo1 {
        width: 45%; /* Уменьшаем ширину фотографий */
    }

    /* Стили для блока с иконками и текстом */
    .photo-overlay3 {
        top: 15%; /* Увеличиваем отступ сверху */
        left: 5%; /* Сдвигаем блок влево */
        width: 90%; /* Уменьшаем ширину блока */
    }
    .photo-text2 {
        font-size: 4vw; /* Увеличиваем размер шрифта текста */
    }
    
    .small-text {
    font-size: 6px;
    text-align: center;
    color:aliceblue;
    }

    .photo-text3 {
        font-size: 6vw; /* Увеличиваем размер шрифта текста */
    }

    .text-photo3 {
        font-size: 3vw; /* Увеличиваем размер шрифта текста */
    }

    #gallery-button3 {
        padding: 2vw 4vw; /* Увеличиваем отступы кнопки */
        font-size: 3vw; /* Увеличиваем размер шрифта кнопки */
    }

    /* Стили для футера */
    footer {
        padding: 10vw 4vw; /* Увеличиваем внутренние отступы */
    }

    .footer-logo img {
        
        display: none;
    }
    
    .textavatud {
    font-size: 3vw; /* Уменьшаем размер шрифта текста в футере */
    }

    .footer-data p {
        font-size: 3vw; /* Уменьшаем размер шрифта текста в футере */
    }
}

