/* Контейнер для меню */
.menu-container {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}
/* Кнопка меню (три ромбика) */
.menu-button {
    width: 40px;
    height: 40px;
    background: transparent;
    border: none;
    cursor: pointer;
    position: relative;
    overflow: visible;
    padding: 0;
    margin: 0;
}

.menu-button:focus {
    outline: none;
}
/* Ромбики с вогнутыми сторонами */
.menu-button::before,
.menu-button::after,
.menu-button .menu-star {
    content: "";
    position: absolute;
    width: 5px;
    height: 5px;
    background: transparent;
    border: 2px solid #dedcff;
    box-shadow: 0 0 8px #dedcff;
    transform: rotate(45deg);
    /* Вогнутые стороны */

}
/* Первый ромбик (верхний) */
.menu-button::before {
    top: 0;
    left: 50%;
    transform: translateX(-50%) rotate(45deg);
}
/* Второй ромбик (средний) */
.menu-button::after {
    top: 11px;
    left: 50%;
    transform: translateX(-50%) rotate(45deg);
}
/* Третий ромбик (нижний) */
.menu-button .menu-star {
    top: 22px;
    left: 50%;
    transform: translateX(-50%) rotate(45deg);
}


/* Выпадающее меню (скрыто по умолчанию) */
.dropdown-menu {
    position: absolute;
    top: calc(100% + 8px);
    transform: translateX(-50%) scaleY(0);
    transform-origin: top;
    background: #fff;
    width: 200px;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    opacity: 0;
    visibility: hidden;
    transition: transform 0.3s, opacity 0.3s, visibility 0.3s;
    z-index: 1000;
}
.dropdown-menu.active {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) scaleY(1);
}
.dropdown-menu ul {
    list-style: none;
    padding: 0;
    margin: 0;
}
.dropdown-menu li {
    padding: 10px 15px;
    text-align: center;
    border-bottom: 1px solid #eee;
    margin-bottom: 0;
}
.dropdown-menu li:last-child {
    border-bottom: none;
}
.dropdown-menu a {
    text-decoration: none;
    color: #00021a;
    font-size: 16px;
}
.dropdown-menu li:hover {
    background: #8332a7;
    color: #fff;
}

/* Экраны от 769px */
@media (min-width: 769px) {

.dropdown-menu {
    width: 250px;
    top: calc(100% + 35px);
}
.menu-button {
    width: 40px;
}
/* Ромбики с вогнутыми сторонами */
.menu-button::before,
.menu-button::after,
.menu-button .menu-star {
    width: 9px;
    height: 9px;
    border: 2px solid #dedcff;
    box-shadow: 0 0 10px #dedcff;
}
/* Второй ромбик (средний) */
.menu-button::after {
    top: 19px;
}
/* Третий ромбик (нижний) */
.menu-button .menu-star {
    top: 38px;
}
.dropdown-menu a {
    font-size: 18px;
}

}