/* Общий сброс стилей */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    box-shadow: none !important;
}

body, html {
    width: 100%;
    height: 100%;
    font-family: Arial, Helvetica, sans-serif;
    background: #cccfcf; /* Серо-синий фон */
    color: #ffffff; /* Белый цвет текста */
}

h1, h2, h3 {
    color: #2c3e50;
}

a { 
    text-decoration: none;
    color: #4400ff;
}




/* Видео справа */
.video-background {
    position: absolute; /* Видео будет закреплено */
    top: 0;
    right: 0;
    width: 100%; /* Занимает правую половину экрана */
    height: 60vh; /* Полная высота экрана */
    overflow: hidden;
}
/* В полную ширину */
.video-background video {
    position: absolute;
    top: 50%; /* Центрирование по вертикали */
    left: 50%; /* Центрирование по горизонтали */
    transform: translate(-50%, -50%); /* Смещение для точного центрирования */
    width: 100%;
    height: 100%;
    object-fit: cover; /* Заполнение контейнера с сохранением пропорций */
}
/* Затемнение */
.video-background::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6); /* Более сильное затемнение (регулируется значением alpha) */
    z-index: 1; /* Затемнение выше видео */
}
/* Текст внизу */
.text-overlay {
    position: absolute;
    top: 30%; /* Центрирование по вертикали */
    left: 50%; /* Центрирование по горизонтали */
    transform: translate(-50%, -50%); /* Смещение для точного центрирования */
    z-index: 2; /* Поверх видео */
}

header {
    margin-bottom: 370px;
}

/* Навигационное меню */

/* Основное меню */
.menu {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 20px;
    background: rgba(0, 0, 0, 0.514);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.5);
    position: relative; /* Чтобы элементы меню были правильно расположены */
    z-index: 10;
}

.menu h1 {
    font-size: 1.5rem;
    color: #fff;
    margin: 0;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
}

/* Навигационное меню */
.nav-menu {
    display: flex;
    flex-direction: row; /* Горизонтальное расположение на больших экранах */
    gap: 20px;
    list-style: none;
    margin: 0;
    padding: 0;
    transition: transform 0.4s ease, opacity 0.4s ease;
}

.nav-menu li {
    flex: 0 1 auto;
    text-align: center;
}

.nav-menu li a {
    text-decoration: none;
    font-size: 1rem;
    color: #fff;
    padding: 8px 15px;
    border-radius: 5px;
    transition: background-color 0.3s, color 0.3s;
}

.nav-menu li a:hover {
    background-color: #fff;
    color: #000;
}

/* бургер-меню */

.navbar-toggler {
    display: none; /* Скрываем на больших экранах */
    background: none;
    border: none;
    cursor: pointer;
    position: absolute;
    right: 20px; /* Выравниваем справа */
    top: 15px; /* Слегка отступаем сверху */
    z-index: 20; /* Выше всего остального */
}

.navbar-toggler .toggler-icon {
    display: block;
    width: 35px; /* Увеличенный размер полосок */
    height: 4px;
    background-color: #fff; /* Яркий цвет для видимости */
    margin: 6px 0; /* Промежуток между полосками */
    border-radius: 2px; /* Скругленные углы полосок */
    opacity: 1;
}

/*  Секция О нас  */
.about {
    position: absolute;
    background: #34495ec7; /* Темный фон */
    box-shadow: 14px -27px 100px 1px #00000083 inset;
    color: #fff;
    width: 100%;
    bottom: 0;
    background: rgba(0, 0, 0, 0.514);
    padding: 3rem 1rem;
    text-align: center;
    z-index: 2;
}

.about h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: #000;
}

.about p {
    font-size: 1.1rem;
    max-width: 800px;
    margin: 0 auto;
    color: #eeeeee;
}

/* Карусель */
#carusel {
    display: block; /* Переходим на блочный режим для обтекания */
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.carousel-wrapper {
    margin-left: 30px;
    margin-bottom: 30px;
    margin-top: 30px;
    float: left; /* Карусель будет находиться слева */
    width: 40%; /* Занимает 50% ширины */
    max-width: 1000px; /* Максимальная ширина карусели */
}
  
  .carousel {
    position: relative;
    max-width: 400px; /* Уменьшите максимальную ширину */
    width: 100%; /* Ширина будет адаптироваться, но не превышать max-width */
    height: auto; /* Высота будет автоматически изменяться */
    overflow: hidden;
    border: 2px solid #ddd;
    border-radius: 8px;
  }
  
  .carousel-inner {
    display: flex;
    transition: transform 0.5s ease-in-out;
  }
  
    .carousel-item {
        min-width: 100%;
        box-sizing: border-box;
    }
  
  .carousel-item img {
    width: 100%;
    object-fit: cover;
  }

  .carousel-indicators {
    position: absolute;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
  }
  
  .carousel-indicators button {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: #fff;
    border: none;
    cursor: pointer;
    opacity: 0.6;
    transition: opacity 0.3s;
  }
  
  .carousel-indicators button.active {
    opacity: 1;
  }
  
  .carousel-control-prev,
  .carousel-control-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(0, 0, 0, 0.5);
    color: #fff;
    border: none;
    padding: 10px;
    cursor: pointer;
    border-radius: 50%;
    font-size: 18px;
    z-index: 10;
  }
  
  .carousel-control-prev {
    left: 10px;
  }
  
  .carousel-control-next {
    right: 10px;
  }
  
  .text-carusel {
    line-height: 1.6;
    color: #333;
    padding: 20px;
}

.text-carusel h2 {
    font-weight: bold;
    font-size: 24px;
    color: #000000;
    margin-bottom: 20px;
}

.text-carusel h3 {
    font-weight: bold;
    font-size: 20px;
    color: #000000;
    margin-top: 30px;
    margin-bottom: 15px;
}

.text-carusel p {
    color: #000;
    text-indent: 20px;
}

.text-carusel a {
    color: #007BFF;
    text-decoration: none;
    transition: color 0.3s;
}

.text-carusel a:hover {
    color: #0056b3;
}

  /* Настройка кнопки над видеофоном */ 

.cta-button {
    display: inline-block;
    color: #fff; /* Белый текст */
    background-color: #007bff; /* Синий цвет */
    border: 1px solid #007bff; /* Синяя граница */
    padding: 0.5rem 1rem; /* Отступы внутри кнопки */
    border-radius: 0.25rem; /* Скругленные углы */
    font-size: 1rem; /* Размер текста */
    text-align: center; /* Текст по центру */
    margin-top: 10px;
    transition: background-color 0.15s ease-in-out, border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}

.cta-button:hover {
    background-color: #0056b3; /* Более тёмный синий при наведении */
    border-color: #0056b3; /* Граница становится тёмно-синей */
}

.cta-button:focus {
    outline: none; /* Убираем стандартный контур */
    box-shadow: 0 0 0 0.2rem rgba(38, 143, 255, 0.5); /* Добавляем мягкую подсветку */
}

.cta-button:active {
    background-color: #004085; /* Ещё более тёмный синий при нажатии */
    border-color: #00376b;
    box-shadow: none; /* Убираем тень */
}

/* Модальное окно */
/* Стили модального окна */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.7);
}

.modal-content {
    background-color: #ffffff;
    color: #000;
    margin: 10% auto;
    padding: 2rem;
    border-radius: 10px;
    max-width: 600px;
    text-align: center;
    box-shadow: 0px 4px 15px rgba(0, 0, 0, 0.2);
}

/* Заголовок модального окна */
.modal-content h2 {
    font-size: 1.8rem;
    margin-bottom: 1rem;
}

/* Текст модального окна */
.modal-content p {
    font-size: 1rem;
    line-height: 1.6;
    margin: 1rem 0;
}

/* Изображение в модальном окне */
.modal-content img {
    max-width: 100%;
    height: auto;
    border-radius: 5px;
    margin-bottom: 1rem;
}

.close {
    display: flex;
    justify-content: end;
}

/* Футер */
footer {
    background: #000000;
    color: #ecf0f1;
    text-align: center;
    padding: 1rem 0; /* Компактные отступы */
    font-size: 0.9rem;
}

/* Адаптивность для навигации */
@media (max-width: 992px) {
    
    .navbar-toggler {
        display: block; /* Показываем бургер */
    }

    .nav-menu {
        display: none; /* Скрываем меню на мобильных по умолчанию */
        flex-direction: column; /* Вертикальное расположение */
        position: absolute;
        top: 47px; /* Расположение сразу под меню */
        left: 0;
        width: 100%;
        background-color: rgba(0, 0, 0, 0.822);
        padding: 10px 0;
        box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.5);
        transform: translateY(-100%);
        opacity: 0;
    }

    .nav-menu.active {
        display: flex; /* Показываем меню */
        transform: translateY(0);
        opacity: 1;
    }

    .nav-menu li {
        text-align: center;
    }

    .nav-menu li a {
        font-size: 1rem; /* Увеличенный размер ссылок для мобильных */
    }
  
    .about p {
        font-size: 1rem;
    }

    #carusel {
        display: flex;
        align-items: center;
        justify-content: center;
        flex-direction: column;
    }

    

    .text-carusel {
        margin-top: 20px;
        font-size: 16px;
        line-height: 1.5;
        color: #333;
      }
}

@media (max-height: 470px) {
    header {
        margin-bottom: 250px;
    }
    .nav-menu {
        background-color: rgba(0, 0, 0, 0.842);
    }
}

@media (max-height: 270px) {
    header {
        margin-bottom: 150px;
    }
}

@media (min-height: 900px) {
    header {
        margin-bottom: 450px;
    }
    .video-background {
        max-height: 60vh;
    }
}

@media (min-height: 800px) {
    header {
        margin-bottom: 420px;
    }
}

@media (min-height: 1000px) {
    header {
        margin-bottom: 500px;
    }
    .video-background {
        max-height: 50vh;
    }
    #carusel {
	margin-top: 100px;	    
    }
}

@media (min-height: 1200px) {
    .video-background {
        max-height: 30vh;
    }
}

/* Адаптивность для устройств до 650px */
@media (max-width: 650px) {
    .menu nav ul li {
        flex: 0 1 100%; /* Элемент навигации занимает всю строку */
    }

    .nav-menu li a {
        text-align: center;
        padding: 10px;
    }
    
    .nav-menu li {
        font-size: 0.9rem; /* Уменьшаем текст */
    }

    .nav-menu {
        top: 50px; /* Уменьшаем отступ сверху */
    }

    .video-background {
        height: 50vh; /* Полная высота экрана */
    }
    
    .about {
        display: flex;
        flex-direction: column;
        background-color: rgba(0, 0, 0, 0.719); /* Чёрный цвет с прозрачностью */
        padding: 2rem; /* Отступы внутри элемента */
        border-radius: 10px; /* Закруглённые углы (по желанию) */
        box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5); /* Тень для объёма (по желанию) */
        width: 100%; /* Ограничение ширины */
    }

    #carusel {
        display: flex;
        align-items: center;
        justify-content: center;
        flex-direction: column;
    }

}
/* Карусель */ 
@media (max-width: 768px) {
    .carousel-wrapper {
        float: none; /* Отменяем обтекание */
        width: 100%; /* Карусель занимает всю ширину */
        margin: 0 auto; /* Центрируем карусель */
    }


    .text-carusel {
        margin-top: 20px; /* Добавляем отступ сверху */
    }
}

@media (min-width: 1920px) and (min-height: 1080px) {
    #carusel {
	margin-top: 30vh;
    }
}

@media (min-width: 1920px) and (min-height: 1080px) {
    .video-background {
        height: 50vh;
    }
}
