/* about.css - стили для страницы "О компании" */

/* Hero секция */
.about-hero {
    position: relative;
    height: 25vh;
    min-height: 250px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
    margin-top: 85px;
    overflow: hidden;
}

.about-hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    z-index: 1;
}

.about-hero-bg::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('images/pattern-grid.svg') repeat;
    opacity: 0.1;
    z-index: 1;
}

.about-hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    z-index: 2;
}

.about-hero-content {
	text-align: center;
    margin: 0 auto;
    position: relative;
    z-index: 3;
    max-width: 800px;
    padding: 0 20px;
}

.about-hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 20px;
    text-shadow: 2px 2px 5px rgba(0, 0, 0, 0.5);
    animation: fadeInDown 1s ease;
}

.about-hero-subtitle {
    font-size: 1.4rem;
    font-weight: 300;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
    color: #f0f0f0;
    animation: fadeInUp 1s ease;
}

/* История и миссия */
.about-section {
    padding: 60px 0;
    background-color: #f8f9fa;
}

.history-block {
    background-color: white;
    border-radius: 20px;
    padding: 50px;
    margin-top: 40px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.05);
}

.history-text {
    margin-bottom: 40px;
}

.history-paragraph {
    margin-bottom: 25px;
    font-size: 1.05rem;
    line-height: 1.7;
    color: #444;
}

/* Сетка статистики */

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 25px;
    margin-top: 30px;
}

.stat-card {
    background: linear-gradient(135deg, #f8f9fa, #ffffff);
    border-radius: 16px;
    padding: 30px 20px;
    text-align: center;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.03);
    border: 1px solid #f0f0f0;
    transition: all 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(83, 154, 60, 0.1);
    border-color: #539a3c;
}

.stat-icon {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    background: linear-gradient(135deg, #539a3c20, #f3932F20);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-size: 1.8rem;
    color: #539a3c;
    transition: all 0.3s ease;
}

.stat-card:hover .stat-icon {
    background: linear-gradient(135deg, #539a3c, #f3932F);
    color: white;
}

/* Общие стили для всех счетчиков */
.stat-number {
    font-size: 2.5rem;
    font-weight: 800;
    line-height: 1;
    margin-bottom: 10px;
    background: linear-gradient(to right, #539a3c, #f3932F);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 2px;
}

/* Специально для счетчика с плюсом */
.stat-value {
    font-size: 2.5rem;
    font-weight: 800;
    background: linear-gradient(to right, #539a3c, #f3932F);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    line-height: 1;
}

.stat-plus {
    font-size: 2rem;
    font-weight: 700;
    background: linear-gradient(to right, #f3932F, #d94430);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    line-height: 1;
}

/* Для простых счетчиков без внутренних span */
.stat-number:not(:has(.stat-value)) {
    background: linear-gradient(to right, #539a3c, #f3932F);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.stat-label {
    font-size: 0.95rem;
    color: #666;
    font-weight: 500;
}

/* Миссия */
.mission-card {
    background: linear-gradient(135deg, #f0f7f0, #ffffff);
    border-left: 8px solid #539a3c;
    padding: 40px;
    border-radius: 0 20px 20px 0;
    margin: 50px 0;
    box-shadow: 0 10px 30px rgba(83, 154, 60, 0.08);
    position: relative;
}

.mission-card::before {
    content: '“';
    position: absolute;
    top: -20px;
    left: 20px;
    font-size: 3rem;
    color: rgba(83, 154, 60, 0.1);
    font-family: serif;
}

.mission-title {
    font-size: 1.2rem;
    font-weight: 700;
    color: #222;
    margin-bottom: 15px;
    position: relative;
    display: inline-block;
}

.mission-text {
    font-size: 1.2rem;
    font-weight: 600;
    color: #539a3c;
    line-height: 1.4;
    margin-bottom: 15px;
    font-style: italic;
}

.mission-signature {
    font-size: 1rem;
    color: #888;
    text-align: right;
    margin-top: 20px;
}

/* Направления */
.directions-block {
    margin: 50px 0;
}

.directions-main-title {
    font-size: 1.8rem;
    font-weight: 600;
    color: #222;
    margin-bottom: 30px;
    text-align: center;
}

.directions-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: 30px;
}

.direction-card {
    background: white;
    padding: 40px 25px;
    border-radius: 16px;
    text-align: center;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.03);
    transition: all 0.3s ease;
    border: 1px solid #f0f0f0;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.direction-card:hover {
    transform: translateY(-10px);
    border-color: #539a3c;
    box-shadow: 0 15px 30px rgba(83, 154, 60, 0.1);
}

.direction-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: linear-gradient(135deg, #539a3c, #f3932F);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 25px;
    font-size: 2rem;
    color: white;
    transition: all 0.3s ease;
}

.direction-card:hover .direction-icon {
    transform: scale(1.1) rotate(5deg);
}

.direction-title {
    font-size: 1.3rem;
    font-weight: 600;
    color: #222;
    margin-bottom: 15px;
}

.direction-text {
    color: #666;
    line-height: 1.6;
    font-size: 0.95rem;
}

/* Экспертиза */
.expertise-block {
    background: white;
    border-radius: 20px;
    padding: 50px;
    margin-top: 50px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.05);
    position: relative;
    overflow: hidden;
}


.expertise-content {
    display: flex;
    gap: 50px;
    align-items: center;
}

.expertise-text {
    flex: 2;
}

.expertise-text p {
    margin-bottom: 20px;
    color: #444;
    line-height: 1.7;
}



/* Анимации */
@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Адаптивность */
@media (max-width: 992px) {
    .about-hero-title {
        font-size: 2.8rem;
    }
    
    .about-hero-subtitle {
        font-size: 1.2rem;
    }
    
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .directions-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .expertise-content {
        flex-direction: column;
    }
    
    .expertise-badge {
        position: relative;
        top: 0;
        right: 0;
        display: inline-block;
        margin-bottom: 20px;
    }
}

@media (max-width: 768px) {
    .about-hero {
        margin-top: 80px;
    }
    
    .about-hero-title {
        font-size: 2.2rem;
    }
    
    .history-block,
    .expertise-block {
        padding: 30px 20px;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .directions-grid {
        grid-template-columns: 1fr;
    }
    
    .mission-text {
        font-size: 1.5rem;
    }
    
    .mission-title {
        font-size: 1.5rem;
    }
}

@media (max-width: 576px) {
    .about-hero-title {
        font-size: 1.8rem;
    }
    
    .about-hero-subtitle {
        font-size: 1rem;
    }
    
    .mission-text {
        font-size: 1.3rem;
    }
    
    .expertise-stat-value {
        font-size: 2.2rem;
    }
}