/* home.css */

/* Hero секция */
.hero-section {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 24px;
    margin: 1.5rem 0;
    padding: 2rem 0;
}

.hero-card {
    background: linear-gradient(135deg, #4361ee 0%, #7209b7 100%);
    border-radius: 24px;
    box-shadow: 0 20px 40px rgba(67, 97, 238, 0.3);
    max-width: 1000px;
    margin: 0 auto;
}

.hero-card .card-body {
    padding: 3.5rem 2.5rem;
}

.hero-title {
    font-size: 3.2rem;
    font-weight: 800;
    line-height: 1.2;
    color: white;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.hero-subtitle {
    font-size: 1.4rem;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.95);
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.btn-hero {
    font-size: 1.2rem;
    font-weight: 600;
    padding: 1rem 2.5rem;
    border-radius: 50px;
    transition: all 0.3s ease;
}

.btn-hero:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.btn-light {
    background: white;
    color: #4361ee;
    border: none;
}

.btn-outline-light {
    border: 2px solid white;
    color: white;
    background: transparent;
}

.btn-outline-light:hover {
    background: white;
    color: #4361ee;
}

/* Карточки преимуществ */
.features-grid {
    margin-top: 2rem;
}

.feature-card {
    background: white;
    border-radius: 24px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease;
    border: none;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(67, 97, 238, 0.15);
}

.feature-icon {
    width: 100px;
    height: 100px;
    border-radius: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    font-size: 2.8rem;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

.feature-icon-primary {
    background: linear-gradient(135deg, #4361ee 0%, #7209b7 100%);
    color: white;
}

.feature-icon-success {
    background: linear-gradient(135deg, #4cc9f0 0%, #4895ef 100%);
    color: white;
}

.feature-icon-warning {
    background: linear-gradient(135deg, #f72585 0%, #b5179e 100%);
    color: white;
}

.feature-title {
    font-size: 2rem;
    font-weight: 700;
    color: #212529;
    margin-bottom: 1rem;
}

.feature-text {
    font-size: 1.1rem;
    line-height: 1.6;
    color: #495057;
    margin-bottom: 0;
}

/* Карточка форм обучения */
.education-card .card {
    border: none;
    border-radius: 24px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    overflow: hidden;
}

.education-card .card-header {
    background: linear-gradient(135deg, #4361ee 0%, #7209b7 100%);
    color: white;
    border-bottom: none;
    padding: 2rem;
}

.education-card .card-header h3 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.header-subtitle {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.9) !important;
}

.education-item {
    display: flex;
    align-items: flex-start;
    padding: 1.5rem;
    background: #f8f9fa;
    border-radius: 20px;
    height: 100%;
}

.education-icon {
    width: 70px;
    height: 70px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    flex-shrink: 0;
}

.online-icon {
    background: linear-gradient(135deg, #4361ee 0%, #3a56d4 100%);
    color: white;
}

.offline-icon {
    background: linear-gradient(135deg, #7209b7 0%, #5a189a 100%);
    color: white;
}

.education-content {
    flex: 1;
}

.education-title {
    font-size: 1.4rem;
    font-weight: 600;
    color: #212529;
    margin-bottom: 0.5rem;
}

.education-text {
    font-size: 1rem;
    line-height: 1.5;
    color: #6c757d;
    margin-bottom: 0;
}

/* Адаптация для планшетов */
@media (max-width: 991.98px) {
    .hero-title {
        font-size: 2.8rem;
    }
    
    .hero-subtitle {
        font-size: 1.3rem;
    }
    
    .btn-hero {
        font-size: 1.1rem;
        padding: 0.9rem 2rem;
    }
    
    .feature-icon {
        width: 90px;
        height: 90px;
        font-size: 2.5rem;
    }
    
    .feature-title {
        font-size: 1.8rem;
    }
    
    .feature-text {
        font-size: 1rem;
    }
}

/* Адаптация для мобильных устройств */
@media (max-width: 767.98px) {
    .hero-section {
        margin: 1rem 0;
        padding: 1rem 0;
    }
    
    .hero-card .card-body {
        padding: 2.5rem 1.5rem;
    }
    
    .hero-title {
        font-size: 2.2rem;
    }
    
    .hero-subtitle {
        font-size: 1.2rem;
    }
    
    .hero-buttons {
        display: flex;
        flex-direction: column;
        gap: 1rem;
    }
    
    .btn-hero {
        width: 100%;
        margin: 0 !important;
        font-size: 1rem;
        padding: 0.875rem 1.5rem;
    }
    
    .feature-icon {
        width: 80px;
        height: 80px;
        font-size: 2.2rem;
    }
    
    .feature-title {
        font-size: 1.6rem;
    }
    
    .feature-text {
        font-size: 1rem;
    }
    
    .education-card .card-header {
        padding: 1.5rem;
    }
    
    .education-card .card-header h3 {
        font-size: 1.6rem;
    }
    
    .header-subtitle {
        font-size: 1rem;
    }
    
    .education-item {
        padding: 1.25rem;
    }
    
    .education-icon {
        width: 60px;
        height: 60px;
        font-size: 1.6rem;
    }
    
    .education-title {
        font-size: 1.2rem;
    }
    
    .education-text {
        font-size: 0.95rem;
    }
}

/* Адаптация для очень маленьких экранов */
@media (max-width: 375.98px) {
    .hero-title {
        font-size: 1.8rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    .feature-icon {
        width: 70px;
        height: 70px;
        font-size: 2rem;
    }
    
    .feature-title {
        font-size: 1.4rem;
    }
    
    .feature-text {
        font-size: 0.95rem;
    }
    
    .education-title {
        font-size: 1.1rem;
    }
    
    .education-text {
        font-size: 0.9rem;
    }
}

/* Анимация появления */
.fade-in {
    animation: fadeIn 0.6s ease-out forwards;
    opacity: 0;
}

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

/* Задержки анимации */
.fade-in[style*="animation-delay: 0.1s"] { animation-delay: 0.1s; }
.fade-in[style*="animation-delay: 0.2s"] { animation-delay: 0.2s; }
.fade-in[style*="animation-delay: 0.3s"] { animation-delay: 0.3s; }
.fade-in[style*="animation-delay: 0.4s"] { animation-delay: 0.4s; }

/* Bootstrap сетка */
.row {
    display: flex;
    flex-wrap: wrap;
    margin-right: -15px;
    margin-left: -15px;
}

.col-md-4 {
    position: relative;
    width: 100%;
    padding-right: 15px;
    padding-left: 15px;
}

@media (min-width: 768px) {
    .col-md-4 {
        flex: 0 0 33.333333%;
        max-width: 33.333333%;
    }
}
