/* ===== ШАПКА ===== */
.header { position: sticky; top: 0; z-index: 10; background: #111; color: #fff; }
.nav { height: 56px; max-width: 1100px; margin: 0 auto; padding: 0 16px;
display: flex; align-items: center; justify-content: space-between; }
.brand { font-weight: 700; font-size: 1.5rem; }


/* ===== БУРГЕР ===== */
.burger { width: 40px; height: 40px; display: grid; place-items: center; border: 0; background: transparent; color: #fff; cursor: pointer; }
.burger-box { position: relative; width: 22px; height: 16px; }
.burger-box::before, .burger-box::after, .burger-line { content: ""; position: absolute; left: 0; right: 0; height: 2px; background: currentColor; }
.burger-box::before { top: 0; }
.burger-line { top: 7px; }
.burger-box::after { bottom: 0; }
/* анимация в крестик */
.burger[aria-expanded="true"] .burger-box::before { transform: translateY(7px) rotate(45deg); }
.burger[aria-expanded="true"] .burger-line { opacity: 0; }
.burger[aria-expanded="true"] .burger-box::after { transform: translateY(-7px) rotate(-45deg); }
.burger-box, .burger-line { transition: .25s ease; }


/* ===== МЕНЮ ===== */
.menu { 
    position: fixed; 
    left: 0; 
    right: 0; 
    top: 56px; 
    background: var(--body-bg-color); 
    color: var(--headline-text-color); 
    border: 1px solid var(--card-bg);
    padding: 8px; display: none; 
    z-index: 1;
}
.menu.open { display: block; }
.menu ul { list-style: none; margin: 0; padding: 0; }
.menu a { display: block; padding: 12px 10px; border-radius: 8px; }
.menu a:hover { background: var(--card-bg); }


/* ===== ДЕСКТОП ===== */
.top-links { display: none; gap: 8px; }
.top-links a { padding: 8px 10px; border-radius: 8px; color: #ddd; }
.top-links a:hover { background: #1c1c1c; color: #fff; }


@media (min-width: 900px) {
.burger { display: none; }
.menu { display: none !important; }
.top-links { display: flex; }
}