body {
    padding-top: 84px;
}

.navbar {
    background-color: #fff;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    padding: 10px 0;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
}

.navbar-container {
    max-width: 960px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
}

.logo {
    font-weight: bold;
    font-size: 1.2em;
    color: #333;
    text-decoration: none;
}

.logo img {
    height: 64px;
    width: auto;
    vertical-align: middle;
}

.menu {
    display: flex;
    flex: 1;
    gap: 12px;
    align-items: center;
    justify-content: center;
}

.menu-item {
    padding: 8px 12px;
    border-radius: 4px;
    text-decoration: none;
    color: #333;
    transition: background-color 0.3s;
}

.menu-item:hover {
    background-color: #f4f4f9;
}

.menu-item.active {
    background-color: #418bb7;
    color: #fff;
}

.menu-item.active:hover {
    background-color: #3a7da6;
}

.dropdown {
    position: relative;
    display: flex;
    align-items: center;
}

.dropdown > a.menu-link::after {
    content: "▼";
    font-size: 0.7em;
    margin-left: 6px;
    display: inline-block;
    vertical-align: middle;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 6px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.08);
    padding: 8px 0;
    display: none;
    min-width: 200px;
    z-index: 1001;
}

.dropdown:hover .dropdown-menu {
    display: block;
}

.dropdown-item {
    display: block;
    padding: 8px 12px;
    color: #333;
    text-decoration: none;
    white-space: nowrap;
}

.dropdown-item:hover {
    background: #f4f4f9;
}

.dropdown-header {
    padding: 6px 12px;
    color: #777;
    font-size: 0.75em;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.dropdown-separator {
    height: 1px;
    background: #eee;
    margin: 6px 0;
}

.submenu {
    margin: 4px 0;
}

.submenu-title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 12px;
    color: #333;
    cursor: pointer;
    user-select: none;
}

.submenu-title:hover {
    background: #f7f8fb;
}

.submenu-caret {
    font-size: 0.7em;
    transition: transform 0.2s ease;
}

.submenu-menu {
    display: none;
    padding: 4px 0 6px;
}

.submenu.open > .submenu-title .submenu-caret {
    transform: rotate(180deg);
}

.submenu.open > .submenu-menu {
    display: block;
}

.dropdown.active > a.menu-link {
    background-color: #418bb7;
    color: #fff;
    border-radius: 4px;
}

.hamburger {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 21px;
    cursor: pointer;
    z-index: 10;
}

.hamburger span {
    display: block;
    height: 3px;
    width: 100%;
    background-color: #333;
    border-radius: 3px;
    transition: all 0.3s ease;
}

.hamburger span.active:nth-child(1) {
    transform: translateY(9px) rotate(45deg);
}

.hamburger span.active:nth-child(2) {
    opacity: 0;
}

.hamburger span.active:nth-child(3) {
    transform: translateY(-9px) rotate(-45deg);
}

@media (max-width: 768px) {
    .hamburger {
        display: flex;
    }

    .menu {
        position: absolute;
        flex-direction: column;
        background-color: #fff;
        top: 80px;
        left: 0;
        width: 100%;
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
        border-radius: 0 0 5px 5px;
        padding: 20px;
        gap: 20px;
        display: none;
    }

    .menu.active {
        display: flex;
    }

    .menu-item {
        text-align: center;
    }

    .dropdown-menu {
        position: static;
        border: none;
        box-shadow: none;
        padding: 0;
        display: none;
    }

    .dropdown.open .dropdown-menu {
        display: block;
    }
}
