/* === Меню учебного центра «Старт» ===
   Палитра взята с сайта:
   фон сайта      #878787  (серый)
   текст сайта     #E7E0CF  (кремовый)
   акцент CTA      #E8A838  (янтарный)
   футер/тёмное    #6e6e6e  (серый градиент)
*/

.start-nav {
    background: #6e6e6e;
    padding: 0 16px;
    position: relative;
}

/* Список пунктов — гибкая строка */
.start-menu {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    align-items: stretch;
}

.start-menu__item {
    position: relative;
}

.start-menu__link {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 52px;
    padding: 0 18px;
    color: #E7E0CF;
    text-decoration: none;
    font-size: 15px;
    font-weight: 500;
    line-height: 1.2;
    white-space: nowrap;
    transition: background 0.2s ease, color 0.2s ease;
}

.start-menu__link:hover {
    background: rgba(232, 168, 56, 0.18);
    color: #E8A838;
}

/* Активная страница */
.start-menu__item--active > .start-menu__link {
    background: #E8A838;
    color: #fff;
}

/* Контакты — выровнены вправо */
.start-menu__item--contacts {
    margin-left: auto;
}

.start-menu__item--contacts .start-menu__link {
    border: 1px solid rgba(231, 224, 207, 0.4);
    border-radius: 6px;
    margin: 8px 0;
    min-height: 36px;
}

/* Выпадающее подменю */
.start-submenu {
    list-style: none;
    margin: 0;
    padding: 6px 0;
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 280px;
    background: #5a5a5a;
    border-radius: 0 0 8px 8px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-6px);
    transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s;
    z-index: 50;
}

.start-menu__item--has-child:hover .start-submenu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.start-submenu a {
    display: block;
    padding: 10px 18px;
    color: #E7E0CF;
    text-decoration: none;
    font-size: 14px;
    line-height: 1.3;
    transition: background 0.2s ease, color 0.2s ease;
}

.start-submenu a:hover {
    background: rgba(232, 168, 56, 0.18);
    color: #E8A838;
}

/* Бургер — скрыт на десктопе */
.start-nav__burger {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 44px;
    height: 44px;
    margin: 8px 0;
    padding: 0;
    background: transparent;
    border: none;
    cursor: pointer;
}

.start-nav__burger span {
    display: block;
    height: 3px;
    width: 24px;
    background: #E7E0CF;
    border-radius: 2px;
    transition: background 0.2s ease;
}

/* Мобильная версия */
@media (max-width: 768px) {
    .start-nav__burger {
        display: flex;
    }

    .start-menu {
        display: none;
        flex-direction: column;
        width: 100%;
        padding-bottom: 8px;
    }

    .start-menu--open {
        display: flex;
    }

    .start-menu__link {
        justify-content: flex-start;
        white-space: normal;
        min-height: 44px;
    }

    .start-menu__item--contacts {
        margin-left: 0;
    }

    .start-submenu {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        background: #5a5a5a;
        min-width: 0;
        padding-left: 16px;
    }
}