/* about.css - специфичные стили для страницы "О компании" */

/* about.css - специфичные стили для страницы "О компании" */

/* Герой-секция - убрали синюю полоску */
.about-hero-section {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    margin-top: 80px;
    padding: 5rem 0;
    border-bottom: 1px solid rgba(0, 86, 179, 0.1);
}

/* ВАЖНОЕ ИСПРАВЛЕНИЕ: Бейдж должен быть белым с синим текстом! */
.about-hero-section .badge {
    background: white !important;
    color: var(--color-primary) !important;
    border: 1px solid var(--color-primary) !important;
    font-weight: 500 !important;
    padding: 0.5rem 1.5rem !important;
}

.about-hero-section .badge .bi {
    color: var(--color-primary) !important;
}

.min-vh-50 {
    min-height: 50vh !important;
}

.about-hero-image {
    transition: transform 0.5s ease;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 15px 35px rgba(0, 86, 179, 0.1);
}

.about-hero-image:hover {
    transform: scale(1.02);
}

.about-hero-image img {
    transition: transform 0.8s ease;
}

.about-hero-image:hover img {
    transform: scale(1.05);
}

/* ... остальной CSS без изменений ... */

/* Секция миссии */
.mission-image {
    transition: all 0.4s ease;
    border-radius: 12px;
    overflow: hidden;
}

.mission-image:hover {
    transform: translateY(-8px);
    box-shadow: 0 25px 50px rgba(0, 86, 179, 0.15) !important;
}

/* Timeline */
.timeline {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
    padding: 40px 0;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(to bottom, 
        rgba(0, 86, 179, 0.3) 0%, 
        var(--color-primary) 20%, 
        var(--color-primary) 80%, 
        rgba(0, 86, 179, 0.3) 100%);
    transform: translateX(-50%);
}

.timeline-item {
    position: relative;
    margin-bottom: 60px;
    display: flex;
    align-items: flex-start;
}

.timeline-item:nth-child(odd) {
    flex-direction: row-reverse;
}

.timeline-date {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    background: var(--color-primary);
    color: white;
    padding: 10px 25px;
    border-radius: 25px;
    font-weight: 600;
    font-size: 1rem;
    white-space: nowrap;
    z-index: 2;
    box-shadow: 0 5px 15px rgba(0, 86, 179, 0.3);
    border: 2px solid white;
}

.timeline-content {
    width: calc(50% - 60px);
    padding: 30px;
    background: white;
    border-radius: 15px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(0, 86, 179, 0.15);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

.timeline-content::before {
    content: '';
    position: absolute;
    top: 30px;
    width: 24px;
    height: 24px;
    background: var(--color-primary);
    border-radius: 50%;
    border: 4px solid white;
    box-shadow: 0 3px 10px rgba(0, 86, 179, 0.3);
    z-index: 1;
}

.timeline-item:nth-child(even) .timeline-content::before {
    right: -52px;
}

.timeline-item:nth-child(odd) .timeline-content::before {
    left: -52px;
}

.timeline-content:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 86, 179, 0.2);
    border-color: var(--color-primary);
}

/* Карточки команды */
.team-card {
    border-radius: 15px !important;
    overflow: hidden;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    background: white;
    border: 1px solid rgba(0, 86, 179, 0.1);
}

.team-card:hover {
    transform: translateY(-12px);
    box-shadow: 0 25px 50px rgba(0, 86, 179, 0.25) !important;
    border-color: var(--color-primary);
}

.team-img {
    border-radius: 15px 15px 0 0;
    overflow: hidden;
    height: 300px;
}

.team-img img {
    transition: all 0.8s ease;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.team-card:hover .team-img img {
    transform: scale(1.15);
}

.team-card:hover .team-overlay {
    opacity: 0.15;
}

.team-content {
    border-top: 4px solid transparent;
    transition: all 0.3s ease;
    padding: 25px !important;
}

.team-card:hover .team-content {
    border-top-color: var(--color-primary);
}

/* Карточки фактов */
.fact-card {
    background: white;
    border-radius: 15px;
    border: 1px solid rgba(0, 86, 179, 0.1);
    transition: all 0.4s ease;
    padding: 35px 25px !important;
}

.fact-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 86, 179, 0.15);
    border-color: var(--color-primary);
}

.fact-icon {
    width: 90px;
    height: 90px;
    background: var(--color-primary-light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 25px;
    transition: all 0.4s ease;
    border: 2px solid transparent;
}

.fact-card:hover .fact-icon {
    background: var(--color-primary);
    transform: scale(1.1);
    border-color: rgba(255, 255, 255, 0.2);
}

.fact-card:hover .fact-icon i {
    color: white !important;
    transform: scale(1.1);
}

/* Карточки сертификатов */
.certificate-card {
    transition: all 0.4s ease;
    border-radius: 12px !important;
    border: 1px solid #dee2e6 !important;
    padding: 35px 25px !important;
}

.certificate-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 86, 179, 0.15) !important;
    border-color: var(--color-primary) !important;
}

.certificate-icon {
    width: 80px;
    height: 80px;
    background: var(--color-primary-light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    transition: all 0.3s ease;
}

.certificate-card:hover .certificate-icon {
    background: var(--color-primary);
}

.certificate-card:hover .certificate-icon i {
    color: white !important;
}

/* Цветовые утилиты */
.bg-primary-light {
    background: var(--color-primary-light) !important;
}

.border-primary {
    border-color: var(--color-primary) !important;
}

/* Адаптивность */
@media (max-width: 992px) {
    .about-hero-section {
        margin-top: 70px;
        padding: 3rem 0;
    }
    
    .timeline::before {
        left: 30px;
    }
    
    .timeline-item {
        flex-direction: row !important;
        margin-left: 70px;
        margin-bottom: 50px;
    }
    
    .timeline-date {
        left: 0;
        transform: translateX(-50%);
        left: -35px;
    }
    
    .timeline-content {
        width: 100%;
        padding: 25px;
    }
    
    .timeline-content::before {
        left: -52px !important;
    }
}

@media (max-width: 768px) {
    .about-hero-section {
        padding: 2rem 0;
    }
    
    .min-vh-50 {
        min-height: auto !important;
    }
    
    .display-4 {
        font-size: 2.5rem;
    }
    
    .timeline {
        padding: 20px 0;
    }
    
    .timeline-item {
        margin-bottom: 40px;
        margin-left: 50px;
    }
    
    .timeline-content {
        padding: 20px;
    }
    
    .timeline-date {
        padding: 8px 20px;
        font-size: 0.9rem;
        left: -30px;
    }
    
    .team-img {
        height: 250px;
    }
}

@media (max-width: 576px) {
    .about-hero-section h1 {
        font-size: 2rem;
    }
    
    .display-5 {
        font-size: 2rem;
    }
    
    .fact-card .display-4 {
        font-size: 2.5rem;
    }
    
    .fact-card, .certificate-card {
        padding: 25px 15px !important;
    }
}

/* Анимации для плавного появления */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.timeline-item,
.team-card,
.fact-card,
.certificate-card {
    animation: fadeIn 0.6s ease-out forwards;
    opacity: 0;
}

.timeline-item:nth-child(1) { animation-delay: 0.1s; }
.timeline-item:nth-child(2) { animation-delay: 0.2s; }
.timeline-item:nth-child(3) { animation-delay: 0.3s; }
.timeline-item:nth-child(4) { animation-delay: 0.4s; }
.timeline-item:nth-child(5) { animation-delay: 0.5s; }
.timeline-item:nth-child(6) { animation-delay: 0.6s; }

.team-card:nth-child(1) { animation-delay: 0.3s; }
.team-card:nth-child(2) { animation-delay: 0.4s; }
.team-card:nth-child(3) { animation-delay: 0.5s; }

.fact-card:nth-child(1) { animation-delay: 0.2s; }
.fact-card:nth-child(2) { animation-delay: 0.3s; }
.fact-card:nth-child(3) { animation-delay: 0.4s; }
.fact-card:nth-child(4) { animation-delay: 0.5s; }

.certificate-card:nth-child(1) { animation-delay: 0.3s; }
.certificate-card:nth-child(2) { animation-delay: 0.4s; }
.certificate-card:nth-child(3) { animation-delay: 0.5s; }

/* Улучшенные тени */
.shadow-lg {
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1) !important;
}

.shadow-sm {
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08) !important;
}

/* Улучшенные скругления */
.rounded-3 {
    border-radius: 16px !important;
}

/* Исправление для бейджа */
.about-hero-section .badge {
    background: white !important;
    color: var(--color-primary) !important;
    border: 1px solid var(--color-primary) !important;
    font-weight: 500 !important;
}

/* Иконка в бейдже */
.about-hero-section .badge .bi {
    color: var(--color-primary) !important;
}