*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
    background-color: #494544;
    color: #d7bfba;
    min-height: 100vh;
    overflow-x: hidden;
}

/* ===== КНОПКА МЕНЮ (бургер) ===== */
.menu-toggle {
    position: fixed;
    top: 24px;
    left: 24px;
    z-index: 1000;
    width: 44px;
    height: 36px;
    background: none;
    border: none;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 4px;
    transition: transform 0.3s ease;
}

.menu-toggle:hover {
    transform: scale(1.08);
}

.menu-toggle span {
    display: block;
    width: 100%;
    height: 3px;
    background-color: #d7bfba;
    border-radius: 3px;
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    transform-origin: center;
}

/* Анимация бургера в крестик */
.menu-toggle.active span:nth-child(1) {
    transform: translateY(11px) rotate(45deg);
}

.menu-toggle.active span:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
}

.menu-toggle.active span:nth-child(3) {
    transform: translateY(-11px) rotate(-45deg);
}

/* ===== ОВЕРЛЕЙ (оргстекло) ===== */
.overlay {
    position: fixed;
    inset: 0;
    background: rgba(73, 69, 68, 0.55);
    backdrop-filter: blur(14px) saturate(120%);
    -webkit-backdrop-filter: blur(14px) saturate(120%);
    z-index: 900;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.55s cubic-bezier(0.22, 0.61, 0.36, 1);
}

.overlay.active {
    opacity: 1;
    pointer-events: auto;
}

/* ===== ШТОРКА МЕНЮ ===== */
.sidebar {
    position: fixed;
    top: 0;
    left: 0;
    width: 50vw;
    max-width: 520px;
    min-width: 300px;
    height: 100vh;
    background-color: #d3d3d3;
    color: #462227;
    z-index: 950;
    transform: translateX(-100%);
    transition: transform 0.55s cubic-bezier(0.22, 0.61, 0.36, 1);
    display: flex;
    align-items: center;
    box-shadow:
        4px 0 30px rgba(0, 0, 0, 0.18),
        1px 0 0 rgba(255, 255, 255, 0.08) inset;
}

.sidebar.active {
    transform: translateX(0);
}

/* ===== СПИСОК ПУНКТОВ ===== */
.sidebar__list {
    list-style: none;
    width: 100%;
    padding: 100px 32px 40px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.sidebar__item {
    opacity: 0;
    transform: translateX(-24px);
    transition:
        opacity 0.4s ease,
        transform 0.4s cubic-bezier(0.22, 0.61, 0.36, 1);
}

/* Пункты появляются с задержкой после открытия шторки */
.sidebar.active .sidebar__item {
    opacity: 1;
    transform: translateX(0);
}

/* Stagger-эффект для каждого пункта */
.sidebar.active .sidebar__item:nth-child(1)  { transition-delay: 0.28s; }
.sidebar.active .sidebar__item:nth-child(2)  { transition-delay: 0.32s; }
.sidebar.active .sidebar__item:nth-child(3)  { transition-delay: 0.36s; }
.sidebar.active .sidebar__item:nth-child(4)  { transition-delay: 0.40s; }
.sidebar.active .sidebar__item:nth-child(5)  { transition-delay: 0.44s; }
.sidebar.active .sidebar__item:nth-child(6)  { transition-delay: 0.48s; }
.sidebar.active .sidebar__item:nth-child(7)  { transition-delay: 0.52s; }
.sidebar.active .sidebar__item:nth-child(8)  { transition-delay: 0.56s; }
.sidebar.active .sidebar__item:nth-child(9)  { transition-delay: 0.60s; }
.sidebar.active .sidebar__item:nth-child(10) { transition-delay: 0.64s; }
.sidebar.active .sidebar__item:nth-child(11) { transition-delay: 0.68s; }
.sidebar.active .sidebar__item:nth-child(12) { transition-delay: 0.72s; }
.sidebar.active .sidebar__item:nth-child(13) { transition-delay: 0.76s; }
.sidebar.active .sidebar__item:nth-child(14) { transition-delay: 0.80s; }
.sidebar.active .sidebar__item:nth-child(15) { transition-delay: 0.84s; }

/* ===== КНОПКИ-ПУНКТЫ ===== */
.sidebar__link {
    display: block;
    padding: 13px 20px;
    font-size: 1rem;
    font-weight: 500;
    letter-spacing: 0.02em;
    color: #462227;
    text-decoration: none;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.45);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    border: 1px solid rgba(255, 255, 255, 0.5);
    transition: all 0.25s ease;
    position: relative;
    overflow: hidden;
}

.sidebar__link::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(
        135deg,
        rgba(70, 34, 39, 0.08) 0%,
        rgba(70, 34, 39, 0.02) 100%
    );
    opacity: 0;
    transition: opacity 0.25s ease;
}

.sidebar__link:hover {
    background: rgba(255, 255, 255, 0.7);
    border-color: rgba(70, 34, 39, 0.25);
    transform: translateX(6px);
    box-shadow: 0 4px 14px rgba(70, 34, 39, 0.12);
    color: #3a1b20;
}

.sidebar__link:hover::before {
    opacity: 1;
}

.sidebar__link:active {
    transform: translateX(6px) scale(0.98);
    transition: transform 0.1s ease;
}

/* ===== ОСНОВНОЙ КОНТЕНТ ===== */
.main-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: 40px;
    text-align: center;
    transition: filter 0.55s ease;
}

.main-content h1 {
    font-size: 2.4rem;
    font-weight: 300;
    letter-spacing: 0.04em;
    margin-bottom: 16px;
    color: #d7bfba;
}

.main-content p {
    font-size: 1.05rem;
    opacity: 0.7;
    max-width: 480px;
    line-height: 1.6;
}