@import '../variables.css';

/* Секция "Когда таблиц становится слишком много" */
.section-problem .section-header {
    margin-bottom: var(--gap-lg);
}

.section-problem .problem-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--gap-3xl);
    align-items: start;
}

.section-problem .problem-content {
    display: flex;
    flex-direction: column;
}

.section-problem .problem-image {
    display: flex;
    justify-content: flex-end;
    align-items: flex-start;
}

.section-problem .problem-image img {
    max-width: 100%;
    height: auto;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-lg);
}

/* Footer под двумя колонками */
.section-problem .problem-footer {
    font-size: var(--font-size-body-large);
    margin-top: var(--gap-2xl);
}

.section-problem .problem-footer p:first-child {
    margin-bottom: 12px;
}

.section-problem .problem-transition {
    margin-bottom: var(--gap-lg);
}

.section-problem .problem-transition p {
    font-size: var(--font-size-body);
    line-height: var(--line-height-body);
    color: var(--color-text-secondary);
    margin: 0 0 var(--gap-xs) 0;
}

.section-problem .problem-conclusion p {
    font-size: 20px;
    font-weight: 600;
    color: var(--color-text-primary);
    margin: 0;
}

.problem-content .double-list {
    border: none !important;
    padding-top: 0 !important;
    padding-left: 0 !important;
}

.problem-content .list-item-holder.align-left {
    gap: var(--gap-sm);
}

.problem-content .problem-accent {
    margin-top: var(--gap-lg);
    font-size: var(--font-size-body);
    font-weight: 600;
    line-height: var(--line-height-body);
    color: var(--color-text-primary);
}

/* Responsive: problem section */
@media (max-width: 991px) {
    .section-problem .problem-layout {
        grid-template-columns: 1fr;
        gap: var(--gap-2xl);
    }

    .section-problem .problem-image {
        order: -1;
        justify-content: center;
    }

    .section-problem .problem-image img {
        max-width: 400px;
    }

    .section-problem .problem-footer {
        margin-top: var(--gap-xl);
    }
}

@media (max-width: 768px) {
    .section-problem .problem-layout {
        gap: var(--gap-xl);
    }

    .section-problem .problem-image img {
        max-width: 100%;
    }

    .section-problem .problem-conclusion p {
        font-size: 18px;
    }
}

@media (max-width: 480px) {
    .section-problem .problem-transition p {
        font-size: var(--font-size-body-small);
    }

    .section-problem .problem-conclusion p {
        font-size: 16px;
    }
}
