* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    margin: 0;
    padding: 0;
    font-family: 'Times New Roman', Times, serif;
}

.background-container {
    min-height: 100vh;
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    color: black;
    text-align: center;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    padding: 20px;
    position: relative;
}

#background-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -1;
}

nav {
    position: absolute;
    top: 0;
    right: 0;
    padding: 20px;
    z-index: 10;
}

nav ul {
    list-style: none;
    margin: 0;
    padding-top: 60px;
    text-align: right;
}

nav ul li {
    display: inline-block;
    margin: 0 10px;
}

nav ul li a {
    color: black;
    text-decoration: none;
    font-weight: bold;
    font-size: 22px;
}

nav ul li a.active {
    text-decoration: underline;
    color: black;
}

h1 {
    font-size: 70px;
    margin: 0;
    opacity: 65%;
    word-break: break-word;
}

p {
    font-size: 25px;
    margin: 10px 0 0 0;
}

.language-switch {
    position: absolute;
    top: 20px;
    right: 20px;
    z-index: 9999;
    padding: 5px 10px;
    border-radius: 5px;
}

.language-switch a {
    color: black;
    text-decoration: none;
    font-weight: bold;
    font-size: 18px;
    display: inline-block;
    transition: transform 0.3s ease, color 0.3s ease;
}

.language-switch a:hover {
    transform: scale(1.4) translateY(-6px);
    color: red;
}

.contact-container {
    position: absolute;
    top: 20px;
    left: 20px;
    z-index: 9999;
    display: flex;
    gap: 20px;
    font-size: 19px;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 8px;
}

.email-icon, .phone-icon {
    color: black;
    transition: transform 0.3s ease, color 0.3s ease;
    cursor: pointer;
}

/* Анимация для иконок */
.contact-item:hover .email-icon,
.contact-item:hover .phone-icon {
    transform: scale(1.2);  /* Увеличиваем иконку */
    color: #1e90ff;         /* Меняем цвет на синий */
}

.contact-item a {
    color: black;
    text-decoration: none;
    font-weight: bold;
    transition: color 0.3s ease;
}

/* ===== 📱 АДАПТАЦИЯ ДЛЯ МОБИЛЬНЫХ ===== */
@media (max-width: 768px) {
    nav ul li a {
        font-size: 18px;
    }

    nav ul {
        padding-top: 40px;
    }

    h1 {
        font-size: 50px; /* Уменьшаем шрифт для заголовка */
    }

    p {
        font-size: 18px; /* Уменьшаем шрифт для текста */
    }

    .language-switch a {
        font-size: 16px;
    }

    /* Меньше отступов для мобильных устройств */
    .contact-container {
        top: 10px;
        left: 10px;
        gap: 10px;
    }

    .contact-item {
        font-size: 16px;
        gap: 6px;
    }

    .email-icon, .phone-icon {
        width: 20px;
        height: 20px;
    }

    .phone-link {
        font-size: 16px;
    }
}

@media (max-width: 480px) {
    h1 {
        font-size: 40px; /* Уменьшаем шрифт для маленьких экранов */
    }

    p {
        font-size: 16px;
    }

    nav ul li a {
        font-size: 14px;
    }

    .contact-container {
        top: 5px;
        left: 5px;
        gap: 8px;
    }

    .contact-item {
        font-size: 14px;
        gap: 4px;
    }

    .email-icon, .phone-icon {
        width: 18px;
        height: 18px;
    }

    .phone-link {
        font-size: 14px;
    }

    .language-switch a {
        font-size: 12px;
    }
}
