/* ========== Header ========== */
.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: #fff;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
}

.header-inner {
    height: var(--header-h);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.header-left {
    display: flex;
    align-items: center;
    gap: 22px;
}

/* Logo */
.logo {
    font-size: 46px;
    font-weight: 800;
    color: var(--primary);
    letter-spacing: -2px;
    line-height: 1;
}

/* City picker */
.city-picker { position: relative; }

.city-btn {
    display: flex;
    align-items: center;
    gap: 10px;
    background: none;
    border: none;
    font-size: 18px;
    color: var(--text);
    cursor: pointer;
}

.pin-icon { width: 22px; height: 22px; fill: var(--text); }

.city-menu {
    display: none;
    position: absolute;
    top: calc(100% + 12px);
    left: 0;
    min-width: 180px;
    background: #fff;
    list-style: none;
    border-radius: 8px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
    padding: 6px 0;
}

.city-menu.open { display: block; }

.city-menu a {
    display: block;
    padding: 10px 18px;
    font-size: 16px;
}

.city-menu a:hover { background: #f2f5ff; }
.city-menu a.active { color: var(--primary); font-weight: 600; }

/* Nav */
.header-nav {
    display: flex;
    align-items: center;
    gap: 30px;
}

.nav-link {
    font-size: 18px;
    transition: color .2s;
}

.nav-link:hover { color: var(--primary); }

/* Buttons */
.btn {
    display: inline-block;
    font-size: 18px;
    font-weight: 600;
    padding: 9px 32px;
    border-radius: 4px;
    transition: all .2s;
}

.btn-outline {
    border: 1.5px solid var(--border);
    background: #fff;
}

.btn-outline:hover {
    border-color: var(--primary);
    color: var(--primary);
}

.header-nav .btn + .btn { margin-left: -10px; }

/* Mobile toggle (hidden on desktop) */
.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 6px;
}

.menu-toggle span {
    width: 26px;
    height: 2.5px;
    background: var(--text);
    border-radius: 2px;
    transition: .3s;
}

.menu-toggle.active span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.menu-toggle.active span:nth-child(2) { opacity: 0; }
.menu-toggle.active span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

/* Responsive */
@media (max-width: 1100px) {
    .header-nav { gap: 20px; }
    .nav-link, .btn { font-size: 16px; }
    .btn { padding: 8px 20px; }
}

@media (max-width: 900px) {
    :root { --header-h: 66px; }

    .logo { font-size: 36px; }
    .city-btn { font-size: 16px; }
    .menu-toggle { display: flex; }

    .header-nav {
        display: none;
        position: absolute;
        top: var(--header-h);
        left: 0;
        right: 0;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        background: #fff;
        padding: 10px 24px 24px;
        box-shadow: 0 8px 16px rgba(0, 0, 0, 0.08);
    }

    .header-nav.open { display: flex; }

    .nav-link {
        padding: 14px 0;
        border-bottom: 1px solid #eee;
    }

    .header-nav .btn {
        text-align: center;
        margin-top: 12px;
    }

    .header-nav .btn + .btn { margin-left: 0; }
}

@media (max-width: 420px) {
    .header-left { gap: 14px; }
    .logo { font-size: 30px; }
}