/* about.css - Полные стили для страницы "О компании" */
.about-text-content {
    max-width: 900px;
    margin: 0 auto;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.8s ease forwards;
    animation-delay: 0.2s;
}

.about-text-content p {
    font-size: 1.1rem;
    line-height: 1.7;
    color: #444;
    margin-bottom: 20px;
    text-align: justify;
    animation: fadeInUp 0.5s ease backwards;
}

.about-text-content p:nth-child(1) { animation-delay: 0.3s; }
.about-text-content p:nth-child(2) { animation-delay: 0.4s; }
.about-text-content p:nth-child(3) { animation-delay: 0.5s; }
.about-text-content p:nth-child(4) { animation-delay: 0.6s; }

.about-text-content strong {
    color: #1a1a1a;
    font-weight: 600;
}

/* Уникальные стили для страницы "О компании" */
.mission-values,
.advantages-section,
.contacts-section {
    padding: 60px 0;
    animation: fadeIn 0.6s ease-out forwards;
}

.mission-values {
    background: #f8f9fa;
}

.advantages-section {
    background: white;
}

.contacts-section {
    background: #f8f9fa;
}

.mission-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    max-width: 1000px;
    margin: 0 auto;
}

.mission-card {
    background: white;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    text-align: center;
    border: 1px solid #eef2ff;
    opacity: 0;
    transform: translateY(30px) scale(0.95);
    animation: fadeInUp 0.6s ease forwards;
    position: relative;
    overflow: hidden;
}

.mission-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: #2d5be3;
    transform: translateY(-100%);
    transition: transform 0.4s ease;
}

.mission-card:hover::before {
    transform: translateY(0);
}

.mission-card:nth-child(1) { animation-delay: 0.3s; }
.mission-card:nth-child(2) { animation-delay: 0.4s; }
.mission-card:nth-child(3) { animation-delay: 0.5s; }

.mission-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
}

.mission-icon {
    font-size: 2.5rem;
    color: #2d5be3;
    margin-bottom: 20px;
    transition: all 0.3s ease;
    display: inline-block;
}

.mission-card:hover .mission-icon {
    color: #1d4ed8;
    transform: scale(1.1) rotate(5deg);
    animation: pulse 1s ease infinite;
}

.mission-title {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 15px;
    color: #1a1a1a;
    transition: all 0.3s ease;
}

.mission-card:hover .mission-title {
    color: #2d5be3;
}

.mission-text {
    color: #666;
    line-height: 1.6;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.mission-card:hover .mission-text {
    color: #475569;
}

.advantages-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
    max-width: 1000px;
    margin: 0 auto;
}

.advantage-card {
    background: white;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    border: 1px solid #eef2ff;
    position: relative;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 0.6s ease forwards;
    overflow: hidden;
}

.advantage-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: #2d5be3;
    transform: translateX(-100%);
    transition: transform 0.4s ease;
}

.advantage-card:hover::before {
    transform: translateX(0);
}

.advantage-card:nth-child(1) { animation-delay: 0.3s; }
.advantage-card:nth-child(2) { animation-delay: 0.4s; }
.advantage-card:nth-child(3) { animation-delay: 0.5s; }
.advantage-card:nth-child(4) { animation-delay: 0.6s; }
.advantage-card:nth-child(5) { animation-delay: 0.7s; }
.advantage-card:nth-child(6) { animation-delay: 0.8s; }

.advantage-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.12);
}

.advantage-number {
    position: absolute;
    top: 15px;
    right: 15px;
    font-size: 2.5rem;
    font-weight: 900;
    color: rgba(45, 91, 227, 0.1);
    line-height: 1;
    transition: all 0.3s ease;
}

.advantage-card:hover .advantage-number {
    color: rgba(45, 91, 227, 0.2);
    transform: scale(1.1);
}

.advantage-title {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 12px;
    color: #1a1a1a;
    padding-right: 40px;
    transition: all 0.3s ease;
}

.advantage-card:hover .advantage-title {
    color: #2d5be3;
}

.advantage-text {
    color: #666;
    line-height: 1.6;
    font-size: 0.95rem;
    transition: all 0.3s ease;
}

.advantage-card:hover .advantage-text {
    color: #475569;
}

.contacts-wrapper {
    max-width: 1000px;
    margin: 0 auto;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.8s ease forwards;
    animation-delay: 0.3s;
}

.horizontal-contacts {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 40px;
    background: white;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    animation: fadeInUp 0.6s ease backwards;
    animation-delay: 0.4s;
}

.contact-item-horizontal {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 1;
    min-width: 180px;
    transition: all 0.3s ease;
    padding: 10px;
    border-radius: 8px;
}

.contact-item-horizontal:hover {
    background: #f8fafc;
    transform: translateY(-2px);
}

.contact-icon-horizontal {
    width: 40px;
    height: 40px;
    background: #f0f4ff;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #2d5be3;
    font-size: 1.2rem;
    flex-shrink: 0;
    transition: all 0.3s ease;
}

.contact-item-horizontal:hover .contact-icon-horizontal {
    background: #2d5be3;
    color: white;
    transform: scale(1.1);
}

.contact-content-horizontal {
    flex: 1;
}

.contact-content-horizontal h3 {
    font-size: 0.85rem;
    font-weight: 600;
    color: #666;
    margin-bottom: 3px;
    transition: all 0.3s ease;
}

.contact-item-horizontal:hover .contact-content-horizontal h3 {
    color: #2d5be3;
}

.contact-link-horizontal {
    display: block;
    color: #1a1a1a;
    text-decoration: none;
    font-weight: 700;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.contact-link-horizontal:hover {
    color: #2d5be3;
    text-decoration: underline;
    transform: translateX(2px);
}

.contact-time-horizontal {
    color: #1a1a1a;
    font-weight: 700;
    font-size: 1rem;
    margin: 0;
    transition: all 0.3s ease;
}

.contact-item-horizontal:hover .contact-time-horizontal {
    color: #2d5be3;
}

.contacts-map {
    width: 100%;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.8s ease forwards;
    animation-delay: 0.5s;
}

.about-map-container {
    height: 400px;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.about-map-container:hover {
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.15);
    transform: translateY(-2px);
}

/* Стили для CTA-блока */
.cta-section {
    padding: 40px 0 80px;
    background: #f8f9fa;
}

.cta-card {
    background: linear-gradient(135deg, #2d5be3, #1d4ed8);
    border-radius: 30px;
    padding: 50px;
    text-align: center;
    color: white;
    box-shadow: 0 20px 40px rgba(45, 91, 227, 0.2);
}

.cta-card h2 {
    font-size: 2rem;
    margin-bottom: 15px;
}

.cta-card p {
    font-size: 1.2rem;
    margin-bottom: 30px;
    opacity: 0.9;
}

.cta-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
}

.cta-button {
    padding: 15px 40px;
    border-radius: 50px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-block;
}

.cta-primary {
    background: white;
    color: #2d5be3;
}

.cta-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.2);
    background: #f8fafc;
}

.cta-secondary {
    background: transparent;
    color: white;
    border: 2px solid white;
}

.cta-secondary:hover {
    background: white;
    color: #2d5be3;
    transform: translateY(-3px);
}

/* Адаптивность для страницы "О компании" */
@media (max-width: 768px) {
    .about-hero-title {
        margin-bottom: 20px;
    }
    
    .about-text-content p {
        font-size: 1rem;
        text-align: left;
    }
    
    .mission-values,
    .advantages-section,
    .contacts-section {
        padding: 40px 0;
    }
    
    .mission-cards {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .mission-card {
        padding: 25px 20px;
    }
    
    .mission-icon {
        font-size: 2rem;
        margin-bottom: 15px;
    }
    
    .mission-title {
        font-size: 1.2rem;
        margin-bottom: 12px;
    }
    
    .mission-text {
        font-size: 0.95rem;
        line-height: 1.5;
    }
    
    .advantages-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .advantage-card {
        padding: 25px 20px;
    }
    
    .advantage-number {
        font-size: 2rem;
        top: 10px;
        right: 10px;
    }
    
    .advantage-title {
        font-size: 1.1rem;
        padding-right: 35px;
        margin-bottom: 10px;
    }
    
    .advantage-text {
        font-size: 0.95rem;
        line-height: 1.5;
    }
    
    .horizontal-contacts {
        flex-direction: column;
        align-items: center;
        gap: 20px;
        padding: 15px;
    }
    
    .contact-item-horizontal {
        width: 100%;
        min-width: 100%;
    }
    
    .contact-icon-horizontal {
        width: 35px;
        height: 35px;
        font-size: 1rem;
    }
    
    .contact-link-horizontal,
    .contact-time-horizontal {
        font-size: 0.95rem;
    }
    
    .about-map-container {
        height: 300px;
    }
    
    /* Адаптивность CTA */
    .cta-section {
        padding: 30px 0 50px;
    }
    
    .cta-card {
        padding: 30px 20px;
    }
    
    .cta-card h2 {
        font-size: 1.5rem;
    }
    
    .cta-card p {
        font-size: 1rem;
    }
    
    .cta-buttons {
        flex-direction: column;
        gap: 15px;
    }
    
    .cta-button {
        padding: 12px 30px;
        width: 100%;
    }
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}