/* Стили для блоков успеха */
.success-story-wrapper {
    width: 100%;
    padding: 20px 0;
    background-color: #f5f5f5;
}

.success-story-container {
    max-width: 950px; /* Подходит для обоих блоков */
    width: 100%;
    padding: 30px;
    background-color: #fff;
    border-radius: 10px;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.1);
    margin: 0 auto;
}

.success-story {
    max-width: 100%;
}

.photos-container {
    display: flex;
    justify-content: center;
    margin-bottom: 25px;
    gap: 20px;
    flex-wrap: wrap;
}

.photo {
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.photo:hover {
    transform: translateY(-5px);
}

/* Общие стили для портретных фото */
.photo.portrait {
    width: 311px;
    height: 311px;
    object-fit: cover;
}

/* Стили для горизонтальных фото (под разные размеры) */
.photo.landscape {
    height: 400px;
    object-fit: cover;
}

/* Для блока Игоря (ширина 606px) */
.photo.landscape[src*="igor2"] {
    width: 606px;
}

/* Для блока Валерии (ширина 493px) */
.photo.landscape[src*="valerya3"] {
    width: 493px;
}

.story-text {
    font-size: 16px;
    line-height: 1.7;
    color: #333;
    text-align: center;
    font-weight: 500;
    padding: 0 20px;
}

@media (max-width: 1000px) {
    .success-story-container {
        max-width: 95%;
    }
    
    .photo.portrait,
    .photo.landscape {
        max-width: 100%;
        height: auto;
    }
    
    .photo.portrait {
        max-height: 311px;
    }
    
    .photo.landscape {
        max-height: 311px;
    }
}

@media (max-width: 768px) {
    .success-story-container {
        padding: 20px;
    }
}

@media (max-width: 480px) {
    .photo.portrait {
        max-height: 280px;
    }
    
    .photo.landscape {
        max-height: 180px;
    }
}

/* Стили для блока призыва к действию */
.cta-block {
    width: 100%;
    padding: 20px 0;
    background-color: #f5f5f5;
    text-align: center;
}

.cta-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 20px;
}

.cta-text {
    font-size: 20px;
    color: #2c3e50;
    margin-bottom: 25px;
    font-weight: 500;
    line-height: 1.5;
}

.cta-button {
    display: inline-block;
    padding: 14px 40px;
    background-color: #3498db;
    color: white;
    text-decoration: none;
    border-radius: 6px;
    font-size: 18px;
    font-weight: 500;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.cta-button:hover {
    background-color: #2980b9;
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0,0,0,0.15);
}

@media (max-width: 768px) {
    .cta-text {
        font-size: 18px;
    }
    
    .cta-button {
        padding: 12px 30px;
        font-size: 16px;
    }
}
