/* =================== HEADER =================== */
header {
    background-color: white;
    width: 100%;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1000;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
    display: flex;
    flex-direction: column;
    padding: 10px 20px;
}

/* Верхняя строка */
.header-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1200px;
    width: 100%;
    margin: 0 auto;
}

/* Логотип */
.header-top .logo img {
    max-height: 80px;
}

/* Адрес и телефон */
.header-address {
    display: flex;
    align-items: center;
    gap: 15px;
    font-size: 16px;
    font-weight: 600;
    color: #222;
    white-space: nowrap;
}

.header-address .phone {
    color: black;
    font-weight: bold;
    text-decoration: none;
    transition: color 0.3s ease;
}

.header-address .phone:hover {
    color: #e6c200;
    text-decoration: underline;
}

/* Онлайн-запись + Telegram */
.header-right {
    display: flex;
    align-items: center;
    gap: 10px;
}

.online-btn {
    padding: 8px 15px;
    background: #FFD700;
    color: black;
    font-weight: bold;
    border-radius: 5px;
    text-decoration: none;
    transition: background 0.3s ease;
}

.online-btn:hover {
    background: #e6c200;
}

.header-right img {
    width: 30px;
    height: 30px;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.header-right img:hover {
    transform: scale(1.2);
}

/* Нижняя строка: меню + BVI */
.header-bottom {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    margin-top: 5px;
    max-width: 1200px;
    width: 100%;
    margin-left: auto;
    margin-right: auto;
}

nav#nav-menu ul {
    list-style: none;
    padding: 0;
    display: flex;
    justify-content: center;
    gap: 25px;
    margin: 0;
}

nav#nav-menu ul li a {
    text-decoration: none;
    font-size: 18px;
    color: black;
    font-weight: 500;
    transition: color 0.3s ease;
}

nav#nav-menu ul li a:hover {
    color: #FFD700;
    text-decoration: underline;
}

/* BVI справа */
.header-bottom img {
    margin-left: auto;
    width: 30px;
    height: 30px;
    cursor: pointer;
}

/* ============================
   BURGER MENU
============================ */

/* Бургер-кнопка */
.burger-menu {
    display: none;
    flex-direction: column;
    cursor: pointer;
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 1001;
    gap: 6px;
}

.burger-menu span {
    width: 30px;
    height: 3px;
    background: #333;
    border-radius: 2px;
    transition: all 0.3s;
}

/* Анимация бургер */
.burger-menu.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}
.burger-menu.active span:nth-child(2) {
    opacity: 0;
}
.burger-menu.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* ============================
   MOBILE NAVIGATION
============================ */
.mobile-nav {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.95);
    z-index: 1000;
    text-align: center;
    padding-top: 60px;
    overflow-y: auto;
    transition: all 0.3s ease-in-out;
}

.mobile-nav.active {
    display: block;
}

.mobile-nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.mobile-nav ul li {
    margin: 20px 0;
    opacity: 0;
    transform: translateY(-10px);
    transition: all 0.3s ease-in-out;
}

.mobile-nav.active ul li {
    opacity: 1;
    transform: translateY(0);
}

.mobile-nav ul li a {
    color: white;
    font-size: 22px;
    text-decoration: none;
}

.mobile-nav ul li a:hover {
    color: #FFD700;
}

/* Контакты и Telegram */
.mobile-nav .mobile-contacts {
    margin-top: 40px;
    border-top: 1px solid white;
    padding-top: 20px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    align-items: center;
}

.mobile-nav .mobile-contacts a.phone {
    font-weight: bold;
    color: #FFD700;
}

.mobile-nav .mobile-contacts a:hover {
    color: #e6c200;
}

/* Онлайн-запись */
.mobile-nav ul li .mobile-online-btn {
    background-color: #FFD700;
    color: #000;
    padding: 8px 20px;
    border-radius: 6px;
    font-weight: 500;
    font-size: 16px;
    text-decoration: none;
    transition: all 0.2s;
}

.mobile-nav ul li .mobile-online-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

/* ============================
   ADAPTIVE / TABLETS & MOBILE
============================ */

/* Планшеты ≤1024px */
@media (max-width: 1024px) {
    #nav-menu {
        display: none; /* скрыть десктопное меню */
    }
    .burger-menu {
        display: flex; /* показать бургер */
    }
    .header-address,
    .header-right {
        display: none; /* скрыть контакты */
    }
}

/* Телефоны ≤768px */
@media (max-width: 768px) {
    .header-top {
        justify-content: flex-start;
    }

    .header-bottom {
        justify-content: center;
    }

    .header-bottom img {
        margin: 0;
    }
}

/* Очень маленькие экраны ≤360px */
@media (max-width: 360px) {
    .mobile-nav ul li a {
        font-size: 20px;
    }

    .mobile-nav ul li .mobile-online-btn {
        padding: 6px 14px;
        font-size: 14px;
    }
}
