/* ========== Menu Components ========== */
/* Бургер-иконка и кнопка меню — общие для index.html и project.html */

/* Анимированный бургер-иконка */
.burger-icon {
    position: relative;
    display: block;
    width: 24px;
    height: 24px;
    font-size: 0;
    transition: all 0.3s ease;
}

.burger-icon span {
    position: absolute;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--color-text);
    border-radius: 2px;
    transition: all 0.3s ease;
    background-color: currentColor;
}

.burger-icon span:nth-child(1) {
    top: 6px;
}

.burger-icon span:nth-child(2) {
    top: 12px;
}

.burger-icon span:nth-child(3) {
    top: 18px;
}

/* Анимация в крестик */
.sidebar__icon-btn.active .burger-icon span:nth-child(1) {
    transform: rotate(45deg);
    top: 12px;
}

.sidebar__icon-btn.active .burger-icon span:nth-child(2) {
    opacity: 0;
    transform: scale(0);
}

.sidebar__icon-btn.active .burger-icon span:nth-child(3) {
    transform: rotate(-45deg);
    top: 12px;
}

/* Кнопка меню (общая) */
.sidebar__icon-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 3.25rem;
    height: 3.25rem;
    padding: 0;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-round);
    background: var(--color-white);
    cursor: pointer;
    transition: all var(--transition-fast);
}

.sidebar__icon-btn:hover {
    background: var(--color-border);
}

.sidebar__icon-btn.active {
    border-color: var(--color-accent);
    background: var(--color-white);
}