* {
    box-sizing: border-box;
}

.main-header {
    width: 100%;
    background: #ffffff;
    border-bottom: 1px solid #e5e5e5;
    position: relative;
    z-index: 1000;
}

.header-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

.header-nav {
    display: flex;
    align-items: center;
    gap: 24px;
    min-height: 72px;
    flex-wrap: wrap;
}

.nav-link {
    appearance: none;
    -webkit-appearance: none;
    background: none;
    border: 0;
    padding: 8px 0;
    margin: 0;
    text-decoration: none;
    color: #1f1a17;
    font: inherit;
    font-size: 15px;
    font-weight: 500;
    line-height: 1.2;
    cursor: pointer;
    position: relative;
    display: inline-flex;
    align-items: center;
    transition: color 0.2s ease, opacity 0.2s ease;
}

.nav-link:hover {
    opacity: 0.72;
}

.dropdown {
    position: relative;
    display: inline-flex;
    align-items: center;
}

.dropdown-toggle::after {
    content: "";
    width: 8px;
    height: 8px;
    margin-left: 8px;
    border-right: 1.5px solid currentColor;
    border-bottom: 1.5px solid currentColor;
    transform: rotate(45deg) translateY(-1px);
    transition: transform 0.2s ease;
}

.dropdown:hover .dropdown-toggle::after,
.dropdown:focus-within .dropdown-toggle::after {
    transform: rotate(225deg) translateY(-1px);
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 200px;
    background: #ffffff;
    border: 1px solid #e5e5e5;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.08);
    display: none;
    flex-direction: column;
    padding: 8px 0;
    z-index: 1100;
}

.dropdown-menu a {
    display: block;
    padding: 10px 16px;
    text-decoration: none;
    color: #1f1a17;
    font-size: 14px;
    line-height: 1.3;
    white-space: nowrap;
    transition: background 0.2s ease, color 0.2s ease;
}

.dropdown-menu a:hover {
    background: #f5f1ea;
}

.dropdown:hover .dropdown-menu,
.dropdown:focus-within .dropdown-menu {
    display: flex;
}

@media (max-width: 768px) {
    .header-inner {
        padding: 0 16px;
    }

    .header-nav {
        gap: 16px;
        min-height: 64px;
    }

    .nav-link {
        font-size: 14px;
    }

    .dropdown-menu {
        min-width: 180px;
    }

    .dropdown-menu a {
        font-size: 13px;
        padding: 9px 14px;
    }
}

@media (max-width: 560px) {
    .header-nav {
        gap: 12px 16px;
        padding: 12px 0;
        min-height: 0;
    }
}

.header-logo {
    display: inline-flex;
    align-items: center;
    margin-right: 2px;
    flex-shrink: 0;
}

.header-logo img {
    display: block;
    width: auto;
    height: 34px;
    object-fit: contain;
}