/* Стили для хедера */
header {
    background: linear-gradient(to right, #ffffff, #fff5e6);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    /*padding: 12px 0;*/
    padding: 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: all var(--transition-medium);
}

header.scrolled {
    backdrop-filter: blur(10px);
    background: rgba(255, 255, 255, 0.85);
    box-shadow: var(--shadow-sm);
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: nowrap;
}

.logo {
    display: flex;
    padding: 5px;
    border-radius: 5px;
    align-items: center;
    text-decoration: none;
    color: transparent;
    transition: transform var(--transition-medium), background-color var(--transition-medium);
    background-color: transparent;
}

.logo:hover {
    transform: scale(1.03) translateY(-3px);
    background-color: rgba(255, 255, 255, 0.2);
}

.logo-image {
    height: 60px;
    margin-right: 8px;
    border-radius: 8px;
    transition: all var(--transition-medium);
}

.logo-title {
    font-family: 'Lobster', cursive;
    font-size: 40px;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.6);
    letter-spacing: 1px;
    color: #fcd322;
    padding: 0 6px;
    transition: all var(--transition-medium);
}

.logo:hover .logo-title {
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.4);
}

.header-info {
    display: flex;
    align-items: center;
    gap: 15px;
}

/* City Tabs (Desktop) */
.city-tabs {
    display: flex;
    line-height: 1.4;
    gap: 15px;
    background: rgba(255, 255, 255, 0.7);
    border-radius: var(--border-radius-sm);
    padding: 0 5px;
    box-shadow: var(--shadow-sm);
    transition: all var(--transition-medium);
}

.city-tabs:hover {
    background: rgba(255, 255, 255, 0.9);
    box-shadow: 0 5px 12px rgba(0, 0, 0, 0.08);
}

/* City Selector (Mobile) */
.city-selector {
    position: relative;
    display: none;
    flex-direction: column;
    align-items: flex-end;
}

.city-toggle {
    background: rgba(255, 255, 255, 0.7);
    border-radius: var(--border-radius-sm);
    padding: 8px 14px;
    font-size: 14px;
    font-weight: 600;
    color: var(--secondary);
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all var(--transition-medium);
    box-shadow: var(--shadow-sm);
}

.city-toggle:hover {
    background: rgba(255, 255, 255, 0.9);
    transform: translateY(-2px);
    box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1);
}

.city-toggle i {
    font-size: 12px;
    transition: transform var(--transition-fast);
}

.city-toggle.active i {
    transform: rotate(180deg);
}

.city-details {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    margin-top: 4px;
}

.city-details .phone-link {
    font-size: 12px;
    margin-bottom: 2px;
}

.city-details .address-mini {
    font-size: 11px;
}

.working-hours {
    display: flex;
    align-items: center;
    margin-top: 2px;
    font-size: 12px;
    color: var(--secondary);
    font-weight: 500;
}

.working-hours i {
    font-size: 10px;
    color: var(--accent);
    margin-right: 6px;
}

.city-dropdown {
    display: none;
    position: absolute;
    top: calc(100% + 5px);
    right: 0;
    background: white;
    border-radius: var(--border-radius-sm);
    box-shadow: var(--shadow);
    padding: 10px;
    min-width: 220px;
    z-index: 100;
    transform: translateY(10px);
    opacity: 0;
    transition: all var(--transition-medium);
}

.city-dropdown.active {
    display: block;
    transform: translateY(0);
    opacity: 1;
}

.city-tab {
    padding: 4px 14px;
    border-radius: var(--border-radius-sm);
    transition: all var(--transition-medium);
    cursor: pointer;
    margin-bottom: 5px;
}

.city-tab:last-child {
    margin-bottom: 0;
}

.city-tab:hover {
    background: #f5f5f5;
    transform: translateX(3px);
}

.city-name {
    font-size: 14px;
    color: var(--secondary);
    font-weight: 600;
    margin-bottom: 2px;
    position: relative;
    padding-left: 18px;
    display: block;
}

.city-name:before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--primary);
    transition: all var(--transition-medium);
}

.city-tab:hover .city-name:before {
    transform: translateY(-50%) scale(1.2);
    box-shadow: 0 0 0 2px var(--primary-light);
}

.phone-link {
    font-size: 13px;
    font-weight: 600;
    color: var(--secondary);
    text-decoration: none;
    transition: color var(--transition-medium);
    display: block;
}

.phone-link:hover {
    color: var(--primary);
}

.address-mini {
    font-size: 12px;
    line-height: 0.8;
    font-weight: bold;
    color: #777;
}

/* Check Status Button */
.check-status-btn {
    background: var(--primary);
    color: white;
    padding: 8px 12px;
    border-radius: var(--border-radius-sm);
    border: none;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: all var(--transition-medium);
}

.check-status-btn:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-sm);
}

.check-status-btn i {
    font-size: 12px;
}

/* Кнопка бонусного кошелька */
.bonus-wallet-btn {
    background: linear-gradient(135deg, var(--accent), #f0a500);
    color: var(--text-dark);
    padding: 8px 12px;
    border-radius: var(--border-radius-sm);
    border: none;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: all var(--transition-medium);
    text-decoration: none;
}

.bonus-wallet-btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-sm);
    filter: brightness(1.05);
}

.bonus-wallet-btn i {
    font-size: 12px;
}

/* Медиа-запросы для хедера */
@media (max-width: 768px) {

    header {
        padding: 8px 0;
    }

    .header-container {
        justify-content: space-between;
        align-items: center;
        padding: 0 10px;
    }

    .logo-image {
        height: 50px;
    }

    .logo-title {
        font-size: 40px;
    }

    .header-info {
        gap: 10px;
    }

    .city-tabs {
        display: none;
    }

    .city-selector {
        display: flex;
    }

    .city-toggle {
        font-size: 13px;
        padding: 4px 8px;
        line-height: 1.2;
    }

    .city-dropdown {
        width: 100%;
        right: 0;
        top: 100%;
    }

    .city-details {
        margin-top: 2px;
    }

    .city-details .phone-link {
        font-size: 11px;
        margin-bottom: 0;
        line-height: 1.3;
    }

    .city-details .address-mini {
        font-size: 10px;
        line-height: 1.3;
    }

    .working-hours {
        font-size: 11px;
        margin-top: 2px;
        line-height: 1.3;
    }

    .working-hours i {
        font-size: 9px;
    }

    .check-status-btn {
        padding: 6px 10px;
        font-size: 13px;
    }

    .check-status-btn i {
        font-size: 11px;
    }

    .bonus-wallet-btn {
        padding: 6px 10px;
        font-size: 13px;
    }

    .bonus-wallet-btn i {
        font-size: 11px;
    }
}

@media (max-width: 580px) {

    header {
        padding: 6px 0;
    }

    .logo-title {
        font-size: 22px;
        line-height: 1.1;
    }

    .city-toggle {
        font-size: 12px;
        padding: 3px 6px;
        line-height: 1.1;
    }

    .city-details {
        margin-top: 1px;
    }

    .city-details .phone-link,
    .city-details .address-mini {
        display: inline-block;
        margin-right: 4px;
        line-height: 1.2;
    }

    .city-details .phone-link {
        font-size: 10px;
    }

    .city-details .address-mini {
        font-size: 9px;
    }

    .city-details .working-hours {
        margin-top: 1px;
        font-size: 9px;
        line-height: 1.2;
    }

    .working-hours i {
        font-size: 8px;
    }

    .check-status-btn {
        padding: 5px 8px;
        font-size: 12px;
    }

    .check-status-btn i {
        font-size: 10px;
    }

    .bonus-wallet-btn {
        padding: 5px 8px;
        font-size: 12px;
    }

    .bonus-wallet-btn .bonus-wallet-btn-text {
        display: none;
    }

    .bonus-wallet-btn i {
        font-size: 14px;
    }
}

/*@media (max-width: 480px) {
    .city-details {
        display: flex;
        flex-wrap: wrap;
        justify-content: flex-end;
        line-height: 1;
    }

    .city-details .phone-link,
    .city-details .address-mini {
        font-size: 9px;
    }

    .city-details .working-hours {
        width: 100%;
        justify-content: flex-end;
        font-size: 8px;
    }
}*/
