/* Основной стиль страницы */
html, body {
    margin: 0;
    padding: 0;
    height: 100%;
    box-sizing: border-box;
    overflow-x: hidden; /* Отключить горизонтальный скролл */
}

body {
    display: flex;
    flex-direction: column;
    min-height: 100vh; /* Обеспечивает, что тело охватывает высоту экрана */
}

/* Фон видео */
.video-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: -1;
}

#background-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Шапка */
.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 20px;
    background-color: rgba(0, 0, 0, 0.9); /* Менее прозрачный фон */
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 10;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3); /* Легкая тень для выделения */
    box-sizing: border-box;
}

/* Навигация */
.nav {
    display: flex;
    align-items: center;
}

.nav-left,
.nav-right {
    display: flex;
}

.nav-left ul,
.nav-right ul {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav-left ul li,
.nav-right ul li {
    margin: 0 15px;
}

.nav-left ul li a,
.nav-right ul li a {
    color: #fff;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease, transform 0.3s ease;
    position: relative;
    padding: 5px 0;
}

.nav-left ul li a:hover,
.nav-right ul li a:hover {
    color: #FFA500;
    transform: scale(1.1); /* Увеличение при наведении */
}

.nav-left ul li a::after,
.nav-right ul li a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    height: 2px;
    background-color: #FFA500;
    transform: scaleX(0);
    transition: transform 0.3s ease;
    transform-origin: bottom right;
}

.nav-left ul li a:hover::after,
.nav-right ul li a:hover::after {
    transform: scaleX(1);
    transform-origin: bottom left;
}

.logo-container {
    text-align: center;
}

.logo {
    font-size: 2rem;
    font-weight: 700;
    color: #fff;
}

.white {
    color: #fff;
}

.orange {
    color: #FFA500;
}

/* Основной контент */
main {
    padding-top: 80px; /* Отступ сверху, чтобы не перекрывать шапку */
    flex: 1; /* Позволяет основному контенту занимать доступное пространство */
}

.content-container {
    display: flex;
    justify-content: space-between;
    gap: 20px; /* Расстояние между блоками */
    padding: 20px;
    flex-wrap: wrap; /* Чтобы блоки не выходили за пределы контейнера */
}

.content-block {
    flex: 1; /* Блоки растягиваются на доступное пространство */
    min-width: 300px; /* Минимальная ширина для блоков */
    padding: 20px;
    color: #fff;
    background-color: rgba(0, 0, 0, 0.8); /* Менее прозрачный фон */
    box-sizing: border-box;
    transition: transform 0.3s ease, border 0.3s ease; /* Анимация для увеличения и контуров */
    border: 3px solid transparent; /* Исходный контур блока */
    border-radius: 8px; /* Скругление углов блока */
}

.content-block:hover,
.content-block:focus-within {
    transform: scale(1.02); /* Легкое увеличение при наведении */
    border-color: #FFA500; /* Подсветка контура желтым цветом */
    box-shadow: 0 0 10px rgba(255, 165, 0, 0.8); /* Яркая тень при наведении */
}

h2 {
    font-size: 1.8rem; /* Размер заголовков */
    margin-bottom: 15px; /* Отступ снизу для разделения заголовка и текста */
    font-weight: 700; /* Жирный текст */
}

p {
    font-size: 1rem; /* Размер текста */
    line-height: 1.4;
    margin-bottom: 15px; /* Отступ снизу для разделения абзацев */
}

/* Подвал */
footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 20px; /* Уменьшены отступы */
    background-color: rgba(0, 0, 0, 0.9);
    color: #fff;
    box-shadow: 0 -2px 5px rgba(0, 0, 0, 0.3);
    position: relative;
    margin-top: 20px; /* Отступ сверху для отделения от контента */
    height: 80px; /* Уменьшена высота подвала */
}

.footer-left,
.footer-right {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.footer-left p,
.footer-right p {
    margin: 0;
    font-weight: 600;
    position: relative;
    padding: 5px;
    cursor: pointer; /* Изменяет курсор на указатель при наведении */
    transition: background 0.3s ease, padding 0.3s ease;
}

.footer-left p.highlight,
.footer-right p.highlight {
    background: rgba(255, 165, 0, 0.3);
    border-radius: 5px;
    padding: 5px 10px;
}

.social-icons {
    display: flex;
    gap: 10px;
}

.social-icon {
    width: 35px;
    height: 35px;
    position: relative;
}

.social-icon img {
    width: 100%;
    height: 100%;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.social-icon:hover img {
    transform: scale(1.2);
    box-shadow: 0 0 8px rgba(255, 165, 0, 0.8);
}

.contact-link {
    margin-top: 5px;
}

.contact-link img {
    width: 35px;
    height: 35px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.contact-link:hover img {
    transform: scale(1.2);
    box-shadow: 0 0 8px rgba(255, 165, 0, 0.8);
}

/* Анимация подсветки */
@keyframes highlight {
    0% {
        border: 4px solid rgba(0, 0, 0, 0);
    }
    10% {
        border: 4px solid rgb(139, 83, 18);
    }
    50% {
        border: 4px solid rgb(255, 166, 0);
    }
    90% {
        border: 4px solid rgba(255, 167, 4, 0.753);
    }
    100% {
        border: 4px solid rgba(255, 166, 0, 0); /* Уходит плавно */
    }
}

/* Класс для подсветки блоков */
.content-block.highlight {
    animation: highlight 5s ease-out forwards;
}
/* Анимация подсветки текста */
@keyframes highlight-text {
    0% {
        background: rgba(255, 165, 0, 0);
    }
    10% {
        background: rgba(255, 165, 0, 0.3);
    }
    50% {
        background: rgba(255, 165, 0, 0.5);
    }
    90% {
        background: rgba(255, 165, 0, 0.3);
    }
    100% {
        background: rgba(255, 165, 0, 0); /* Уходит плавно */
    }
}

/* Класс для подсветки текста */
.footer-left p.highlight,
.footer-right p.highlight {
    animation: highlight-text 5s ease-out forwards;
    border-radius: 5px; /* Закругленные углы */
    padding: 5px 10px; /* Внутренние отступы */
}
