/* ===== SEO PAGE LAYOUT ===== */
.general-content-wrap {
    max-width: 1200px;
    margin: 0 auto;
    padding: 30px 40px 40px;
}

.seo-page-grid {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 40px;
    align-items: start;
}

.seo-calc-sidebar {
    position: sticky;
    top: 110px;
    z-index: 100;
}

/* ===== ПРАВЫЙ ТЕКСТОВЫЙ БЛОК ===== */
.content-block {
    display: flex;
    flex-direction: column;
    /* gap: 40px; */
    min-width: 0;
}

.content-module {
    background: var(--bg-card);
    border-radius: 24px;
    padding: 40px;
    box-shadow: 0 4px 20px var(--shadow-md);
    border: 1px solid var(--border-light);
}

.text-blocks {
    display: flex;
    flex-direction: column;
}

/* Заголовок H1 */
.text-title {
    font-size: 27px;
    font-weight: 800;
    margin: 0 0 20px;
    color: var(--text-primary);
    line-height: 1.3;
    font-family: 'Gilroy', sans-serif;
}

/* Абзацы */
.text-blocks p {
    margin: 0 0 16px;
    font-size: 16px;
    line-height: 1.7;
    color: var(--text-block-gray);
    font-family: 'Gilroy', sans-serif;
}

.text-blocks p:last-child {
    margin-bottom: 0;
}

/* Подзаголовки H2 */
.text-blocks h2 {
    font-size: 24px;
    font-weight: 700;
    margin: 28px 0 14px;
    color: var(--text-primary);
    font-family: 'Gilroy', sans-serif;
    line-height: 1.3;
}

.text-blocks h2:first-child {
    margin-top: 0;
}

/* Подзаголовки H3 */
.text-blocks h3 {
    font-size: 20px;
    font-weight: 600;
    margin: 24px 0 12px;
    color: var(--text-primary);
    font-family: 'Gilroy', sans-serif;
    line-height: 1.4;
}

/* Списки - компактные, внутри блока */
.text-blocks ul,
.text-blocks ol {
    margin: 0 0 16px 0;
    padding-left: 24px;
    list-style-position: outside;
}

.text-blocks ul li,
.text-blocks ol li {
    margin: 0 0 8px;
    font-size: 16px;
    line-height: 1.6;
    color: var(--text-block-gray);
    font-family: 'Gilroy', sans-serif;
}

.text-blocks ul li:last-child,
.text-blocks ol li:last-child {
    margin-bottom: 0;
}

/* Вложенные списки */
.text-blocks ul ul,
.text-blocks ol ol {
    margin: 8px 0 0;
    padding-left: 20px;
}

/* Жирный текст */
.text-blocks strong {
    font-weight: 600;
    color: var(--text-primary);
}

/* Ссылки в тексте */
.text-blocks a {
    color: #0066ff;
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: border-color 0.2s;
}

.text-blocks a:hover {
    border-bottom-color: #0066ff;
}

/* ===== АДАПТИВНОСТЬ ТЕКСТОВОГО БЛОКА ===== */
@media (max-width: 980px) {
    .seo-page-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .seo-calc-sidebar {
        position: static !important;
        width: 100%;
        order: -1;
        margin-bottom: 20px;
    }
    
    .content-module { padding: 30px; }
    .text-title { font-size: 26px; }
    .text-blocks h2 { font-size: 22px; }
}

@media (max-width: 768px) {
    .general-content-wrap { padding: 20px 30px 30px; }
    .content-module { padding: 24px; }
    .text-title { font-size: 24px; }
    .text-blocks p,
    .text-blocks ul li,
    .text-blocks ol li { font-size: 15px; }
    .text-blocks h2 { font-size: 20px; margin: 24px 0 12px; }
    .text-blocks h3 { font-size: 18px; }
}

@media (max-width: 576px) {
    .general-content-wrap { padding: 20px 20px; }
    .content-module { padding: 20px 16px; }
    .text-title { font-size: 22px; }
    .text-blocks p,
    .text-blocks ul li,
    .text-blocks ol li { font-size: 14px; line-height: 1.6; }
    .text-blocks h2 { font-size: 19px; margin: 20px 0 10px; }
    .text-blocks h3 { font-size: 17px; }
    .text-blocks ul,
    .text-blocks ol { padding-left: 20px; }
}

@media (max-width: 480px) {
    .text-title { font-size: 20px; }
    .text-blocks h2 { font-size: 18px; }
}

@media (max-width: 360px) {
    .general-content-wrap { padding: 20px 12px; }
    .text-title { font-size: 19px; }
    .text-blocks p,
    .text-blocks ul li,
    .text-blocks ol li { font-size: 13px; }
    .content-module { padding: 18px 14px; }
}