/* Секция "Личный опыт" */
.my-auto-section {
    max-width: 1200px;
    margin: 80px auto;
    padding: 0 20px;
    font-family: 'Gilroy', 'Arial', sans-serif;
    position: relative;
    scroll-margin-top: 100px;
}

.my-auto-section::before {
    content: '';
    position: absolute;
    top: -40px;
    left: 50%;
    transform: translateX(-50%);
    width: 100vw;
    height: 1px;
    background: #eee;
    z-index: 1;
}

.main-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
}

/* Левая часть - галерея */
.gallery-section {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.photo-card {
    border-radius: 8px;
    overflow: hidden;
    position: relative;
}

.photo-main {
    height: 400px;
    background: #f8f8f8;
}

.photo-main img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.photo-main:hover img {
    transform: scale(1.03);
}

.photo-grid-small {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.photo-grid-small img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 6px;
    border: 1px solid #e8e8e8;
    transition: all 0.3s ease;
}

.photo-grid-small img:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.cta-container {
    display: flex;
    flex-direction: column;
    gap: 15px;
    align-items: center;
    text-align: center;
    padding-top: 10px;
    margin-bottom: 20px;
}

.photo-caption {
    font-size: 13px;
    color: #666;
    font-weight: 500;
    line-height: 1.5;
    margin-bottom: 5px;
}

.primary-btn {
    width: 100%;
    max-width: 350px;
    padding: 16px 30px;
    font-size: 15px;
    font-weight: 600;
    color: #fff;
    background: linear-gradient(135deg, #e70000 0%, #cc0000 100%);
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    text-align: center;
    display: block;
}

.primary-btn:hover {
    background: linear-gradient(135deg, #cc0000 0%, #b30000 100%);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(231, 0, 0, 0.25);
}

.secondary-link {
    color: #2600ff;
    font-size: 13px;
    font-weight: 500;
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: border-color 0.2s ease;
    padding-bottom: 2px;
    position: relative;
    padding-left: 25px;
    /* место под иконку */
}

.secondary-link::before {
    content: '💬 ';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    font-size: 14px;
    line-height: 1;
}

.secondary-link:hover {
    border-bottom-color: #0064e7;
}

/* Правая часть - детали */
.details-section {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.label {
    display: inline-block;
    background: #f0f7ff;
    color: #2c5282;
    padding: 6px 12px;
    border-radius: 3px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border: 1px solid #dbeafe;
}

.details-section h2 {
    font-size: 36px;
    font-weight: 600;
    color: #000;
    line-height: 1.2;
    margin: 0;
    letter-spacing: -0.5px;
}

.details-section h2 span {
    color: #e70000;
}

.story-text {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.story-text p {
    font-size: 16px;
    line-height: 1.6;
    color: #444;
    margin: 0;
}

.story-text strong {
    color: #e70000;
    font-weight: 600;
}

/* Баннер с итоговой ценой */
.total-banner {
    background: #fff;
    border-radius: 8px;
    padding: 20px 25px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border: 1px solid #e8e8e8;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.total-banner b {
    font-size: 28px;
    color: #e70000;
    font-weight: 700;
    display: block;
    margin-top: 3px;
}

.saving-badge {
    background: #fff;
    padding: 12px 18px;
    border-radius: 6px;
    text-align: center;
    border: 2px solid #28a745;
    box-shadow: 0 2px 8px rgba(40, 167, 69, 0.1);
}

.saving-badge .amount {
    display: block;
    font-size: 18px;
    color: #28a745;
    font-weight: 700;
    margin-bottom: 2px;
}

.saving-badge span:last-child {
    font-size: 11px;
    color: #666;
}

/* Полоска статистики */
.stats-strip {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
    padding: 20px;
    background: #f8f8f8;
    border-radius: 8px;
    border: 1px solid #e8e8e8;
}

.stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 5px;
}

.stat-item b {
    font-size: 22px;
    color: #000;
    font-weight: 700;
    line-height: 1;
}

.stat-item b[style*="success"] {
    color: #28a745 !important;
}

.stat-item span {
    font-size: 12px;
    color: #666;
    line-height: 1.3;
    font-weight: 500;
}

/* Цитата */
.quote-box {
    background: #f8f9fa;
    padding: 20px 25px;
    border-radius: 8px;
    font-size: 16px;
    font-style: italic;
    color: #333;
    line-height: 1.6;
    border-left: 4px solid #e70000;
    position: relative;
}

.quote-box::before {
    content: '"';
    position: absolute;
    top: 10px;
    left: 15px;
    font-size: 40px;
    color: #e70000;
    opacity: 0.2;
    font-family: Georgia, serif;
    line-height: 1;
}

/* Сетка преимуществ */
.features-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 15px;
    background: #f8f8f8;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 500;
    color: #333;
    border: 1px solid #e8e8e8;
}

.check {
    color: #28a745;
    font-weight: 700;
    font-size: 14px;
    min-width: 16px;
}

/* Адаптивность - ВАЖНОЕ ИЗМЕНЕНИЕ */
@media (max-width: 992px) {
    .my-auto-section {
        margin: 60px auto;
        padding: 0 30px;
    }

    /* МЕНЯЕМ ПОРЯДОК: сначала текст, потом фото */
    .main-container {
        grid-template-columns: 1fr;
        grid-template-areas:
            "details"
            "gallery";
        gap: 40px;
    }

    .gallery-section {
        grid-area: gallery;
        max-width: 100%;
        margin: 0;
    }

    .details-section {
        grid-area: details;
    }

    .photo-main {
        height: 350px;
    }

    .photo-grid-small img {
        height: 180px;
    }

    .details-section h2 {
        font-size: 32px;
    }
}

@media (max-width: 768px) {
    .my-auto-section {
        padding: 0 25px;
        margin: 50px auto;
    }

    .photo-main {
        height: 300px;
    }

    .photo-grid-small img {
        height: 160px;
    }

    .details-section h2 {
        font-size: 28px;
    }

    .stats-strip {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .stat-item {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        text-align: left;
        padding-bottom: 15px;
        border-bottom: 1px solid #e8e8e8;
    }

    .stat-item:last-child {
        border-bottom: none;
        padding-bottom: 0;
    }

    .features-grid {
        grid-template-columns: 1fr;
    }

    .total-banner {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }

    .total-banner b {
        font-size: 24px;
    }
}

@media (max-width: 576px) {
    .my-auto-section {
        padding: 0 20px;
        margin: 40px auto;
    }

    .photo-main {
        height: 250px;
    }

    .photo-grid-small {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .photo-grid-small img {
        height: 180px;
    }

    .details-section h2 {
        font-size: 26px;
    }

    .story-text p {
        font-size: 14px;
    }

    .quote-box {
        font-size: 15px;
        padding: 18px;
    }

    .primary-btn {
        padding: 14px 25px;
        font-size: 14px;
    }
}

@media (max-width: 480px) {
    .my-auto-section {
        padding: 0 15px;
    }

    .details-section h2 {
        font-size: 24px;
    }

    .total-banner b {
        font-size: 22px;
    }

    .saving-badge .amount {
        font-size: 16px;
    }

    .stat-item b {
        font-size: 20px;
    }

    .feature-item {
        padding: 10px 12px;
        font-size: 12px;
    }
}