.image-back {
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    filter: drop-shadow(0 0 3px rgba(255, 255, 255, 0.3));
    backdrop-filter: blur(8px);
    padding: 20px 40px;
}

a {
    color: white;
    text-decoration: none;
    transition: color 0.3s;
}

ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.navbar-pm .navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    padding: 0 40px;
    margin: 0 auto;
    box-sizing: border-box;
}

.header_logo img {
    height: 120px;
    border-radius: 110px;
}

.header_nav {
    display: flex;
    align-items: center;
    gap: 40px;
}

.header_list {
    display: flex;
    gap: 28px;
    align-items: center;
}

.header_link {
    font-size: 18px;
    opacity: 0.75;
    position: relative;
    transition: opacity 0.3s ease, color 0.3s ease;
}

.header_link:hover {
    opacity: 1;
    color: #E36666;
}

.btn_container {
    display: flex;
    gap: 12px;
    align-items: center;
}

.btn_input,
.btn_reg {
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 500;
    font-size: 15px;
    height: 36px;
    padding: 0 16px;
    border-radius: 8px;
    text-decoration: none;
    transition: background 0.3s, opacity 0.3s;
}

.btn_input {
    border: 1px solid rgba(255, 255, 255, 0.4);
    color: white;
    background: transparent;
}

.btn_input:hover {
    background: rgba(255, 255, 255, 0.1);
}

.btn_reg {
    background: #E36666;
    color: white;
    border: none;
}

.btn_reg:hover {
    background: #cc5656;
}



/* Выпадающее меню */
.dropdown {
    position: relative;
    z-index: 2;
}

.dropdown-toggle::after {
    content: " ≡";
    font-size: 12px;
    margin-left: 4px;
}

.dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    right: 0;
    min-width: 180px;
    background: rgba(30, 30, 30, 0.95);
    border-radius: 10px;
    padding: 12px 0;
    z-index: 1000;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(6px);
}

.dropdown-menu li a {
    display: block;
    padding: 10px 20px;
    color: white;
    transition: background-color 0.3s;
}

.dropdown-menu li a:hover {
    background-color: #E36666;
    border-radius: 6px;
}

/* Скрываем чекбокс */
.dropdown-checkbox {
    display: none;
}

/* Открываем меню при чекбоксе */
.dropdown-checkbox:checked + .dropdown-toggle + .dropdown-menu {
    display: block;
}

/* Переключаем стрелку вниз/вверх */
.dropdown-toggle::after {
    content: " ≡";
    font-size: 12px;
    margin-left: 4px;
    transition: transform 0.3s;
}

/* Повернуть стрелку при открытом меню */
.dropdown-checkbox:checked + .dropdown-toggle::after {
    transform: rotate(180deg);
}


/* Иконки */
.icon-link {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 5px;
    font-size: 18px;
    color: white;
    transition: opacity 0.3s;
}

.icon-link i {
    width: 24px;
    height: 24px;
    stroke-width: 1.6;
}

/* Адаптивность */
@media (max-width: 1024px) {
    .header_list {
        flex-wrap: wrap;
        gap: 20px;
        justify-content: center;
    }
}

@media (max-width: 768px) {
    .header_nav {
        width: 100%;
    }

    .header_list {
        flex-direction: column;
        gap: 16px;
        align-items: center;
        padding: 20px 0;
    }

    .btn_container {
        flex-direction: column;
        gap: 8px;
        margin-top: 10px;
    }

    .navbar-pm .navbar {
        flex-direction: column;
        align-items: center;
        gap: 10px;
    }

    .icon-link i {
        width: 28px;
        height: 28px;
    }

    .dropdown-menu {
        left: auto;
        right: 0;
    }
}

.icon-link svg {
    width: 24px;
    height: 24px;
    stroke: white;
    transition: stroke 0.3s;
}

.icon-link:hover svg {
    stroke: #E36666;
}

.header_icons {
    display: flex;
    align-items: center;
    gap: 20px;
}

.icon-link.with-text {
    display: flex;
    flex-direction: column;
    align-items: center;
    font-size: 12px;
    color: white;
    text-decoration: none;
    opacity: 0.85;
    transition: opacity 0.3s, color 0.3s;
}

.icon-link.with-text:hover {
    color: #E36666;
    opacity: 1;
}

.icon-link.with-text span {
    margin-top: 4px;
}

/* Мобильная адаптация — скрыть подписи */
@media (max-width: 768px) {
    .icon-link.with-text span {
        display: none;
    }

    .header_icons {
        gap: 12px;
        justify-content: center;
        margin-top: 12px;
    }
}




.chat-open-button {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background-color: #28a745;
    color: white;
    border: none;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    font-size: 24px;
    cursor: pointer;
    z-index: 1000;
}

.chat-modal {
    position: fixed;
    z-index: 1001;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.4);
}

.chat-modal-content {
    background-color: #fefefe;
    margin: 10% auto;
    padding: 15px;
    border: 1px solid #888;
    width: 350px;
    display: flex;
    flex-direction: column;
}

.chat-close {
    align-self: flex-end;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
}

.chat-box {
    height: 300px;
    overflow-y: auto;
    border: 1px solid #ccc;
    padding: 10px;
    margin-bottom: 10px;
    background: #fff;
}
