/* About Page Specific Styles */

.page-banner {
    background-image: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)), url('../img/about-banner.jpg');
    background-size: cover;
    background-position: center;
    margin-top: 150px; /* Добавьте отступ сверху для шапки */
}

.about-intro {
    padding: 40px 0;
}

.about-intro h2 {
    font-size: 28px;
    color: #2a7a9e;
    text-align: center;
    margin-bottom: 40px;
}

.about-content {
    display: grid;
    grid-template-columns: 3fr 2fr;
    gap: 40px;
    align-items: center;
}

.about-text p {
    margin-bottom: 20px;
    line-height: 1.6;
    font-size: 16px;
}

.about-image img {
    width: 100%;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.mission-section {
    background-color: #f5f5f5;
    padding: 60px 0;
    margin: 40px 0;
}

.mission-section h2 {
    font-size: 28px;
    color: #2a7a9e;
    text-align: center;
    margin-bottom: 40px;
}

.mission-content {
    display: grid;
    grid-template-columns: 2fr 3fr;
    gap: 40px;
    align-items: center;
}

.mission-image img {
    width: 100%;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.mission-text h3 {
    color: #2a7a9e;
    margin-top: 25px;
    margin-bottom: 15px;
}

.mission-text p {
    margin-bottom: 20px;
    line-height: 1.6;
}

.mission-text ul {
    padding-left: 20px;
}

.mission-text ul li {
    margin-bottom: 10px;
    line-height: 1.6;
}

.journey-section {
    padding: 60px 0;
}

.journey-section h2 {
    font-size: 28px;
    color: #2a7a9e;
    text-align: center;
    margin-bottom: 40px;
}

.timeline {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
}

.timeline::after {
    content: '';
    position: absolute;
    width: 6px;
    background-color: #2a7a9e;
    top: 0;
    bottom: 0;
    left: 50%;
    margin-left: -3px;
}

.timeline-item {
    padding: 10px 40px;
    position: relative;
    width: 50%;
    box-sizing: border-box;
}

.timeline-item:nth-child(odd) {
    left: 0;
}

.timeline-item:nth-child(even) {
    left: 50%;
}

.timeline-content {
    padding: 20px;
    background-color: white;
    border-radius: 6px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
}

.timeline-date {
    position: absolute;
    width: 90px;
    border-radius: 4px;
    background-color: #2a7a9e;
    color: white;
    text-align: center;
    padding: 5px 0;
    font-weight: bold;
    z-index: 2; /* Поднимаем над линией */
}

.timeline-item:nth-child(odd) .timeline-date {
    right: -45px;
}

.timeline-item:nth-child(even) .timeline-date {
    left: -45px;
}

.timeline-content h3 {
    color: #2a7a9e;
    margin-top: 0;
    margin-bottom: 10px;
}

.guarantees-section {
    background-color: #eaf4f9;
    padding: 60px 0;
    margin: 40px 0;
}

.guarantees-section h2 {
    font-size: 28px;
    color: #2a7a9e;
    text-align: center;
    margin-bottom: 40px;
}

.guarantees-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

.guarantee-card {
    background-color: white;
    border-radius: 10px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
}

.guarantee-icon {
    font-size: 36px;
    color: #2a7a9e;
    margin-bottom: 15px;
}

.guarantee-card h3 {
    color: #2a7a9e;
    margin-bottom: 15px;
}

.guarantee-card p {
    color: #555;
}

.team-section {
    padding: 60px 0;
}

.team-section h2 {
    font-size: 28px;
    color: #2a7a9e;
    text-align: center;
    margin-bottom: 40px;
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

.team-member {
    text-align: center;
}

.team-image {
    width: 180px;
    height: 180px;
    margin: 0 auto 20px;
    border-radius: 50%;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.team-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.team-member h3 {
    color: #2a7a9e;
    margin-bottom: 5px;
}

.team-member .position {
    color: #777;
    font-style: italic;
    margin-bottom: 15px;
}

.team-member p {
    color: #555;
}

.contact-info {
    padding: 60px 0;
    background-color: #f5f5f5;
}

.contact-info h2 {
    font-size: 28px;
    color: #2a7a9e;
    text-align: center;
    margin-bottom: 40px;
}

.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

.contact-card {
    background-color: white;
    border-radius: 10px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
}

.contact-icon {
    font-size: 36px;
    color: #2a7a9e;
    margin-bottom: 15px;
}

.contact-card h3 {
    color: #2a7a9e;
    margin-bottom: 15px;
}

.contact-card p, .contact-card a {
    color: #555;
    text-decoration: none;
}

.contact-card a:hover {
    color: #2a7a9e;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .about-content, .mission-content {
        grid-template-columns: 1fr;
    }
    
    .timeline::after {
        left: 31px;
    }
    
    .timeline-item {
        width: 100%;
        padding-left: 70px;
        padding-right: 25px;
    }
    
    .timeline-item:nth-child(odd), .timeline-item:nth-child(even) {
        left: 0;
    }
    
    .timeline-item:nth-child(odd) .timeline-date, .timeline-item:nth-child(even) .timeline-date {
        left: -45px;
    }
}