/* Некритические CSS стили - загружаются после критических */

/* CSS переменные */
:root {
    --primary-color: #696CFF;
    --secondary-color: #8592A3;
    --success-color: #71DD37;
    --warning-color: #FFB400;
    --danger-color: #FF3E1D;
    --info-color: #03C3EC;
    --dark-color: #566A7F;
    --light-color: #F5F5F9;
    --cleaning-primary: #696CFF;
    --cleaning-secondary: #8592A3;
    --cleaning-accent: #71DD37;
}

/* Карточки */
.card {
    border-radius: 1rem;
    border: 1px solid rgba(0,0,0,0.1);
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    transition: all 0.3s ease;
    overflow: hidden;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
}

.card-header {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-bottom: 1px solid rgba(0,0,0,0.1);
    border-radius: 1rem 1rem 0 0 !important;
}

/* Формы */
.form-control {
    border-radius: 0.5rem;
    border: 1px solid #d9dee3;
    padding: 0.75rem 1rem;
    transition: all 0.3s ease;
}

.form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(105, 108, 255, 0.25);
}

.form-select {
    border-radius: 0.5rem;
    border: 1px solid #d9dee3;
    padding: 0.75rem 1rem;
}

.form-select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(105, 108, 255, 0.25);
}

/* Секции */
.section {
    padding: 80px 0;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--dark-color);
    margin-bottom: 1rem;
    text-align: center;
}

.section-subtitle {
    font-size: 1.1rem;
    color: var(--secondary-color);
    text-align: center;
    margin-bottom: 3rem;
}

/* Иконки */
.icon-box {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: white;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--info-color) 100%);
}

.icon-box.success {
    background: linear-gradient(135deg, var(--success-color) 0%, #5ac18e 100%);
}

.icon-box.warning {
    background: linear-gradient(135deg, var(--warning-color) 0%, #ff9a3c 100%);
}

/* Анимации */
.fade-in {
    animation: fadeIn 0.8s ease-in;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

.slide-in-left {
    animation: slideInLeft 0.8s ease-out;
}

@keyframes slideInLeft {
    from { opacity: 0; transform: translateX(-50px); }
    to { opacity: 1; transform: translateX(0); }
}

.slide-in-right {
    animation: slideInRight 0.8s ease-out;
}

@keyframes slideInRight {
    from { opacity: 0; transform: translateX(50px); }
    to { opacity: 1; transform: translateX(0); }
}

/* Футер */
.footer {
    background: linear-gradient(135deg, #2b2c40 0%, #444564 100%);
    color: white;
    padding: 60px 0 30px;
}

.footer h5 {
    color: white;
    font-weight: 600;
    margin-bottom: 1.5rem;
}

.footer a {
    color: #a3a4cc;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer a:hover {
    color: white;
}

.footer-bottom {
    border-top: 1px solid #444564;
    padding-top: 30px;
    margin-top: 30px;
    text-align: center;
}

/* Адаптивность */
@media (max-width: 768px) {
    .section {
        padding: 60px 0;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .navbar-nav {
        text-align: center;
        padding: 1rem 0;
    }
}

/* Загрузчик */
.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255,255,255,.3);
    border-radius: 50%;
    border-top-color: #fff;
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Уведомления */
.alert {
    border-radius: 0.5rem;
    border: none;
}

.alert-success {
    background: rgba(113, 221, 55, 0.1);
    color: var(--success-color);
}

.alert-danger {
    background: rgba(255, 62, 29, 0.1);
    color: var(--danger-color);
}

/* Модальные окна */
.modal-content {
    border-radius: 1rem;
    border: none;
}

.modal-header {
    border-bottom: 1px solid rgba(0,0,0,0.1);
    border-radius: 1rem 1rem 0 0;
}

.modal-footer {
    border-top: 1px solid rgba(0,0,0,0.1);
    border-radius: 0 0 1rem 1rem;
}
