        .header__wrapper {
            display: flex;
            flex-direction: row;
            justify-content: space-between;
            padding: 1rem 0;
        }

        .header__nav {
            display: flex;
            align-items: center;
        }

        ul.header__nav-list {
            display: flex;
            flex-direction: row;
            gap: 4rem;
        }

        li.header__nav-item {
            list-style: none;
            position: relative;
        }

        a.header__nav-link {
            display: inline-block;
            /* важно */
            position: relative;
            font-size: 2rem;
            line-height: 1.2;
            text-decoration: none;
            color: var(--color-dark);
            font-weight: 500;
            padding: 0.5rem 0;
            transition: color var(--transition-speed, .25s);
        }

        a.header__nav-link:hover {
            color: var(--color-primary, currentColor);
        }

        /* Полоска от центра к краям */
        a.header__nav-link::after {
            content: '';
            position: absolute;
            left: 50%;
            bottom: 0;
            width: 100%;
            height: 2px;
            background-color: var(--color-primary, currentColor);
            /* fallback если переменная не задана */
            transform: translateX(-50%) scaleX(0);
            /* центр + схлопнуто */
            transform-origin: center;
            /* раскрываемся из центра */
            transition: transform var(--transition-speed, .25s) ease;
            pointer-events: none;
        }

        a.header__nav-link:hover::after,
        a.header__nav-link--active::after {
            transform: translateX(-50%) scaleX(1);
        }

        a.header__nav-link--active {
            color: var(--color-primary, currentColor);
        }

        .mobile {
            display: none;
        }

        button.burger {
            display: none;
        }

        ul.header__nav-list {
            margin: 0;
        }

        @media (max-width: 768px) {

            .mobile,
            button.burger {
                display: block;
            }

            .desktop {
                display: none;
            }

            .mobile ul.header__nav-list {
                flex-direction: column;
                justify-content: center;
                align-items: center;
                height: calc(100vh - 11vh);
                background: #e9e8e8f7;
            }

            /* Базовое состояние мобильного меню */
            .header__nav.mobile {
                max-height: 0;
                overflow: hidden;
                transition: max-height 0.4s ease;
            }

            /* Когда меню активно */
            .header__nav.mobile.active {
                max-height: 100vh;
                /* или конкретное значение, например 400px */
            }

            /* Стили кнопки бургера при активном состоянии */
            .burger.active span:nth-child(1) {
                transform: translateY(8px) rotate(45deg);
            }

            .burger.active span:nth-child(2) {
                opacity: 0;
            }

            .burger.active span:nth-child(3) {
                transform: translateY(-8px) rotate(-45deg);
            }

            .burger span {
                display: block;
                width: 25px;
                height: 3px;
                margin: 5px auto;
                background-color: var(--color-dark);
                border-radius: 2px;
                transition: all 0.3s ease;
            }

            button.burger {
                background: transparent;
                border: none;
            }

            ul.header__nav-list {
                padding: 0;
                margin: auto;
            }
        }