/* Вертикальные кнопки в шапке */
.header-actions {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 8px;
    min-width: 180px;
}

.clean-phone-btn {
    display: flex;
    align-items: center;
    text-decoration: none;
    background: rgba(0, 152, 70, 0.1);
    border: 2px solid #009846;
    border-radius: 12px;
    padding: 10px 16px;
    transition: all 0.3s ease;
    gap: 10px;
    position: relative;
    overflow: hidden;
    width: 100%;
    max-width: 250px;
}

.commercial-btn {
    background: rgba(227, 30, 36, 0.1);
    border-color: #E31E24;
}

.commercial-btn .clean-phone-icon {
    background: #E31E24;
}

.clean-phone-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(0, 152, 70, 0.2), transparent);
    transition: left 0.5s ease;
}

.commercial-btn::before {
    background: linear-gradient(90deg, transparent, rgba(227, 30, 36, 0.2), transparent);
}

.clean-phone-btn:hover::before {
    left: 100%;
}

.clean-phone-btn:hover {
    background: rgba(0, 152, 70, 0.15);
    transform: translateY(-1px);
    box-shadow: 0 4px 15px rgba(0, 152, 70, 0.25);
}

.commercial-btn:hover {
    background: rgba(227, 30, 36, 0.15);
    box-shadow: 0 4px 15px rgba(227, 30, 36, 0.25);
}

.clean-phone-icon {
    width: 32px;
    height: 32px;
    background: #009846;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.clean-phone-icon i {
    color: white;
    font-size: 12px;
}

.clean-phone-info {
    display: flex;
    flex-direction: column;
    text-align: left;
    flex: 1;
    min-width: 0;
}

.clean-phone-number {
    font-family: 'Unbounded', sans-serif;
    font-weight: 700;
    font-size: 14px;
    color: #ffffff;
    line-height: 1.2;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.clean-phone-text {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.8);
    font-weight: 500;
    margin-top: 2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Адаптив для мобильных */
@media (max-width: 768px) {
    .header-actions {
        min-width: auto;
        align-items: center;
    }
    
    .clean-phone-btn {
        max-width: 280px;
        padding: 10px 14px;
    }
    
    /* В мобильной версии кнопки должны быть видны только при скролле */
    #header .header-actions {
        display: none;
    }
    
    #header.scrolled .header-actions {
        display: flex;
        width: 100%;
        align-items: center;
        animation: fadeIn 0.3s ease;
    }
    
    #header.scrolled .clean-phone-btn {
        max-width: 300px;
    }
}

@media (max-width: 480px) {
    .clean-phone-btn {
        padding: 8px 12px;
    }
    
    .clean-phone-number {
        font-size: 13px;
    }
    
    .clean-phone-text {
        font-size: 10px;
    }
    
    .clean-phone-icon {
        width: 28px;
        height: 28px;
    }
    
    .clean-phone-icon i {
        font-size: 11px;
    }
}

/* Ландшафтная ориентация */
@media (max-width: 768px) and (orientation: landscape) {
    .header-actions {
        flex-direction: row;
        justify-content: center;
        gap: 10px;
    }
    
    #header.scrolled .header-actions {
        flex-direction: row;
    }
    
    .clean-phone-btn {
        max-width: 200px;
    }
}