*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}


body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    background: rgba(0, 70, 139, 0.6);
}

.body-bg-video {
    position: fixed; /* Приклеиваем к экрану */
    top: 0;
    left: 0;
    width: 100vw; /* 100% ширины окна */
    height: 100vh; /* 100% высоты окна */
    object-fit: cover; /* Растягивает без сплющивания */
    z-index: -2; /* Убираем на самый глубокий задний план */
}

/* Настройки темного слоя поверх видео */
.body-video-overlay {
    position: fixed; /* Тоже приклеиваем к экрану */
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    /* Синеватый полупрозрачный фон.
       Если нужно темнее, поменяйте 0.6 на 0.7 или 0.8 */
    background-color: rgba(65, 110, 150, 0.6);
    z-index: -1; /* Выше видео, но ниже сайта */
}

.main-wrapper {
    position: relative; /* Обязательно, чтобы контент был ПОВЕРХ фона */
    z-index: 1; /* Поднимаем контент на передний план */

    /* Дополнительно: чтобы карточки по центру были на весь экран, как на фото */
    min-height: 100vh;
    padding: 20px;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.header {
    min-height: 150px;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    align-self: center;
    max-width: 1024px;
    width: 100%;
    padding: 0 16px;
}


.header__logo {
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 10px;
}


.header__logo-img {
    width: 150px;
    height: auto;
}


.header__nav {
    display: flex;
    flex-direction: row;
    justify-content: flex-end;
    gap: 20px;
    align-items: center;
    padding: 10px;
}

.header__nav-link {
    text-decoration: none;
    color: #fff;
    font-size: 1.2rem;
    font-weight: 600;
    padding: 5px 10px;
    transition: opacity 0.3s ease, color 0.3s ease;
}

.header__nav-link:hover {
    opacity: 0.8;
    text-decoration: underline;
}

.content {
    align-self: center;
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    max-width: 1024px;
    width: 100%;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.2);
    box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2), 0 6px 20px 0 rgba(0, 0, 0, 0.19);
}


.headliner {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);

    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.3);


    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);


    width: 95%;
    margin: 30px auto;
    padding: 20px 30px;


    text-align: center;
    color: #fff;
    font-size: 2rem;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}



.footer {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 20px;

    border: 2px solid #5488ef;
    border-radius: 10px;
    box-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    background: rgba(0, 70, 139, 0.6);
    margin-top: 20px;
    margin-bottom: 20px;
    align-self: center;
    max-width: 1024px;
    width: 100%;
    min-height: 150px;
    padding: 20px;
    color: #fff;
}

.footer__info {
    flex: 2;
    min-width: 250px;
}

.footer__info h2 {
    font-size: 1.1rem;
    margin-bottom: 10px;
    color: #fff;
}

.footer__info a {
    color: #ffd700;
    text-decoration: none;
    transition: color 0.3s;
}

.footer__info a:hover {
    color: #fff;
    text-decoration: underline;
}

.footer__contact {
    flex: 1;
    min-width: 200px;
}

.footer__contact h3 {
    font-size: 1rem;
    margin-bottom: 10px;
    text-transform: uppercase;
    border-bottom: 1px solid rgba(255, 255, 255, 0.3);
    padding-bottom: 5px;
}

.footer__contact p {
    font-size: 0.9rem;
    line-height: 1.5;
    margin-bottom: 5px;
}

.footer__mobile {
    display: none;
}

.mobile-nav-toggle {
    display: none;
    background: transparent;
    border: none;
    cursor: pointer;
    flex-direction: column;
    justify-content: space-around;
    width: 30px;
    height: 25px;
    padding: 0;
    z-index: 1001;
}

.mobile-nav-toggle .bar {
    width: 100%;
    height: 3px;
    background-color: white;
    border-radius: 2px;
    transition: all 0.3s linear;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
}


@media (max-width: 768px) {
    .mobile-nav-toggle {
        display: flex;
    }

    .header__nav {
        position: fixed;
        top: 0;
        right: -100%;
        height: 100vh;
        width: 70%;
        max-width: 300px;
        background: rgba(0, 50, 100, 0.95);
        flex-direction: column;
        justify-content: flex-start;
        padding-top: 80px;
        transition: right 0.3s ease-in-out;
        z-index: 1000;
        box-shadow: -2px 0 5px rgba(0,0,0,0.5);
        border: none;
    }

    .header__nav.is-open {
        right: 0;
    }

    .header__nav-link {
        font-size: 1.5rem;
        margin: 10px 0;
    }

    .footer {
        flex-direction: column;
        align-items: flex-start;
        width: 95%;
    }

    .footer__info, .footer__contact {
        width: 100%;
        margin-bottom: 15px;
    }

    .footer__mobile {
        display: inline;
    }

    .headliner {
        font-size: 1.4rem;
        padding: 15px;
        width: 100%;
        border-radius: 0;
        margin: 0 0 20px 0;
        border-left: none;
        border-right: none;
    }
}


.mobile-nav-toggle.is-active .bar:nth-child(2) {
    transform: translateY(8px) rotate(45deg);
}


.mobile-nav-toggle.is-active .bar:nth-child(3) {
    opacity: 0;
}


.mobile-nav-toggle.is-active .bar:nth-child(4) {
    transform: translateY(-8px) rotate(-45deg);
}