/* Header Styles */
.main-header {
    background: var(--dark);
    padding: 12px 0;
    margin-bottom: 30px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-nav-main {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    min-height: 56px;
    flex-wrap: wrap;
    gap: 15px;
}

.header-left, .header-right {
    display: flex;
    align-items: center;
    gap: 20px;
}

@media (max-width: 768px) {
    .header-nav-main {
        justify-content: center;
        padding: 10px 0;
    }
    .city-selector-top {
        display: none; /* Hide top city selector on mobile if too crowded */
    }
    .main-header {
        position: relative;
    }
}

.logo {
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--white);
    text-decoration: none;
    letter-spacing: -0.5px;
}

.city-selector-top {
    display: flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.1);
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.85rem;
    transition: background 0.2s;
}

.city-selector-top:hover {
    background: rgba(255, 255, 255, 0.15);
}

.city-label {
    color: rgba(255, 255, 255, 0.6);
    margin-right: 6px;
}

.city-link {
    color: var(--white);
    font-weight: 600;
    text-decoration: none;
}

.nav-link {
    color: var(--white);
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 500;
    transition: opacity 0.2s;
}

.nav-link:hover {
    opacity: 0.8;
}

/* Dropdown Support */
.dropdown {
    position: relative;
    display: inline-block;
}

.dropdown-content {
    display: none;
    position: absolute;
    right: 0;
    background-color: var(--white);
    min-width: 420px;
    box-shadow: 0px 8px 30px rgba(0,0,0,0.15);
    z-index: 1001;
    border-radius: 12px;
    padding: 25px;
    margin-top: 15px;
}

@media (max-width: 1200px) {
    .dropdown-content {
        right: -100px; /* Смещаем, чтобы не вылетало */
    }
}

.dropdown-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 25px;
}

.dropdown-column {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.column-title {
    font-size: 0.75rem;
    text-transform: uppercase;
    color: var(--slate-400);
    font-weight: 700;
    letter-spacing: 1px;
    margin-bottom: 5px;
}

.dropdown-column a {
    color: var(--dark);
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 500;
    transition: color 0.2s;
}

.dropdown-column a:hover {
    color: var(--primary);
}

@media (max-width: 768px) {
    .dropdown {
        display: none; /* Hide on mobile for simplicity, or we could make it a mobile menu */
    }
}

/* Breadcrumbs */
.breadcrumbs { 
    margin: 20px 0; 
    font-size: 0.9rem; 
    color: var(--slate-500); 
}

.breadcrumbs a { 
    color: var(--secondary); 
    text-decoration: none; 
}

.breadcrumbs span { 
    margin: 0 8px; 
    color: var(--slate-300); 
}

/* Footer Improvements */
.main-footer {
    margin-top: 80px;
    padding: 60px 0 40px;
    background: #f8fafc;
    border-top: 1px solid var(--slate-200);
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 50px;
}

.footer-col h4 {
    color: var(--dark);
    font-size: 1.1rem;
    margin-bottom: 20px;
    font-weight: 700;
}

.footer-col p, .footer-col ul {
    color: var(--slate-500);
    font-size: 0.95rem;
    line-height: 1.6;
}

.footer-links {
    list-style: none;
    padding: 0;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    color: var(--slate-500);
    text-decoration: none;
    transition: color 0.2s;
}

.footer-links a:hover {
    color: var(--primary);
}

.footer-bottom {
    text-align: center;
    margin-top: 50px;
    padding-top: 25px;
    border-top: 1px solid var(--slate-200);
    color: var(--slate-400);
    font-size: 0.9rem;
}
