* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    color: #e0e0e0;
    overflow-x: hidden;
}

/* Фоновое видео */
#bg-video {
    position: fixed;
    right: 0;
    bottom: 0;
    min-width: 100%;
    min-height: 100%;
    z-index: -2;
    object-fit: cover;
}

/* Затемнение видео */
.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(38, 42, 51, 0.85);
    z-index: -1;
}

/* Навигация */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 50px;
    background: rgba(30, 33, 40, 0.9);
    border-bottom: 2px solid #a38753;
    flex-wrap: wrap;
    gap: 15px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 15px;
    font-size: 24px;
    font-weight: bold;
    color: #a38753;
}

.logo img {
    height: 40px;
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 20px;
    align-items: center;
    flex-wrap: wrap;
}

.nav-links a {
    color: #e0e0e0;
    text-decoration: none;
    font-size: 16px;
    transition: color 0.3s;
}

.nav-links a:hover, .nav-links a.dropbtn:hover {
    color: #a38753;
}

/* Выпадающее меню */
.dropdown { position: relative; display: inline-block; }
.dropdown-content {
    display: none;
    position: absolute;
    background-color: rgba(30, 33, 40, 0.95);
    min-width: 200px;
    box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.5);
    z-index: 10;
    border: 1px solid #a38753;
}
.dropdown-content a {
    color: #e0e0e0;
    padding: 12px 16px;
    text-decoration: none;
    display: block;
}
.dropdown-content a:hover { background-color: rgba(163, 135, 83, 0.2); }
.dropdown:hover .dropdown-content { display: block; }

/* Контент */
.content {
    padding: 40px 20px;
    max-width: 1200px;
    margin: 0 auto;
}

/* Стеклянные панели */
.glass-panel {
    background: rgba(45, 50, 60, 0.8);
    padding: 30px;
    border-radius: 10px;
    border: 1px solid rgba(163, 135, 83, 0.3);
    backdrop-filter: blur(5px);
}

.glass-panel h1 { color: #a38753; margin-bottom: 20px; }

/* Кнопки */
.btn {
    display: inline-block;
    padding: 10px 20px;
    background: transparent;
    color: #a38753;
    border: 1px solid #a38753;
    text-decoration: none;
    transition: 0.3s;
    border-radius: 5px;
    cursor: pointer;
}
.btn:hover { background: #a38753; color: #1e2128; }

/* Анимация приветствия */
#welcome-screen {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: #1e2128;
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 20px;
    transition: opacity 1s ease-out;
}
.welcome-text {
    color: #a38753;
    font-size: 2.5rem;
    animation: fadeInOut 4s forwards;
}

@keyframes fadeInOut {
    0% { opacity: 0; transform: scale(0.9); }
    20% { opacity: 1; transform: scale(1); }
    80% { opacity: 1; transform: scale(1); }
    100% { opacity: 0; }
}


/* ================================================= */
/* АДАПТИВНОСТЬ ДЛЯ ТЕЛЕФОНОВ (Экраны меньше 768px)  */
/* ================================================= */
@media screen and (max-width: 768px) {
    .navbar {
        padding: 15px;
        flex-direction: column;
        align-items: flex-start;
    }

    .nav-links {
        width: 100%;
        flex-direction: column;
        gap: 10px;
        align-items: flex-start;
        margin-top: 10px;
        border-top: 1px solid rgba(163, 135, 83, 0.2);
        padding-top: 10px;
    }

    /* На телефонах выпадающее меню жалоб делаем видимым сразу по клику или развернутым для удобства */
    .dropdown-content {
        position: static;
        box-shadow: none;
        border: none;
        background: transparent;
        padding-left: 15px;
    }

    .content {
        padding: 20px 10px;
    }

    .glass-panel {
        padding: 15px;
    }

    .welcome-text {
        font-size: 1.5rem;
    }

    /* Дерево персонала на телефоне выстраивается в ровную вертикальную колонку */
    .branches {
        flex-direction: column;
        gap: 20px;
    }

    .staff-card {
        width: 100%;
    }
}