/**
 * SEO Text Block Styles
 * Файл: seo-text.css
 */

/* ============================================= */
/* ПЕРЕНОС СЕО-БЛОКА В КОНЕЦ СТРАНИЦЫ           */
/* Блок в КОДЕ - в начале                       */
/* Блок ВИЗУАЛЬНО - в конце (перед футером)    */
/* ============================================= */

#main-content-wrapper {
    display: flex;
    flex-direction: column;
}

/* SEO-блок переносим в самый конец */
.seo-text-block {
    order: 999;
    margin-top: 60px;
    padding-top: 50px;
    padding-bottom: 50px;
    border-top: 3px solid #e8e8e8;
    background: #fafafa;
    border-radius: 8px;
}

/* ============================================= */
/* ОФОРМЛЕНИЕ SEO-БЛОКА                         */
/* ============================================= */

.seo-content {
    max-width: 100%;
    color: #333;
    font-family: 'Arial', 'Helvetica', sans-serif;
    line-height: 1.8;
}

.seo-content h2 {
    font-size: 32px;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 2px solid #EA5836;
    position: relative;
}

.seo-content h2::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 60px;
    height: 2px;
    background: #EA5836;
}

.seo-content p {
    font-size: 16px;
    line-height: 1.8;
    color: #444;
    margin-bottom: 18px;
    text-align: justify;
}

.seo-content p:last-child {
    margin-bottom: 0;
}

.seo-content ul {
    margin: 20px 0 25px 0;
    padding: 20px 20px 20px 45px;
    background: #ffffff;
    border-left: 4px solid #EA5836;
    border-radius: 6px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.seo-content ul li {
    font-size: 15px;
    line-height: 1.8;
    color: #444;
    margin-bottom: 10px;
    padding-left: 5px;
    list-style-type: disc;
}

.seo-content ul li:last-child {
    margin-bottom: 0;
}

.seo-content strong {
    color: #EA5836;
    font-weight: 700;
}

.seo-content em {
    color: #555;
    font-style: italic;
    background: #f5f5f5;
    padding: 2px 8px;
    border-radius: 4px;
}

/* Кнопка в SEO-тексте */
.seo-catalog-link {
    margin-top: 30px !important;
    text-align: center;
}

.seo-btn {
    display: inline-block;
    padding: 12px 35px;
    background: #EA5836;
    color: #ffffff !important;
    text-decoration: none !important;
    font-weight: 600;
    border-radius: 30px;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 14px;
}

.seo-btn:hover {
    background: #c0392b;
    color: #ffffff !important;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(234, 88, 54, 0.3);
}

/* ============================================= */
/* АДАПТИВ ДЛЯ МОБИЛЬНЫХ УСТРОЙСТВ              */
/* ============================================= */

@media (max-width: 992px) {
    .seo-text-block {
        margin-top: 40px;
        padding-top: 30px;
        padding-bottom: 30px;
    }
    
    .seo-content h2 {
        font-size: 26px;
    }
    
    .seo-content p {
        font-size: 15px;
        text-align: left;
    }
}

@media (max-width: 768px) {
    .seo-text-block {
        margin-top: 30px;
        padding-top: 25px;
        padding-bottom: 25px;
        border-top: 2px solid #e8e8e8;
    }
    
    .seo-content h2 {
        font-size: 22px;
        margin-bottom: 18px;
        padding-bottom: 10px;
    }
    
    .seo-content p {
        font-size: 14px;
        line-height: 1.7;
    }
    
    .seo-content ul {
        padding: 12px 12px 12px 30px;
        margin: 15px 0;
    }
    
    .seo-content ul li {
        font-size: 13px;
        margin-bottom: 8px;
    }
    
    .seo-btn {
        padding: 10px 25px;
        font-size: 13px;
    }
}

@media (max-width: 480px) {
    .seo-text-block {
        margin-top: 20px;
        padding-top: 20px;
        padding-bottom: 20px;
    }
    
    .seo-content h2 {
        font-size: 19px;
    }
    
    .seo-content p {
        font-size: 13px;
    }
    
    .seo-btn {
        padding: 8px 20px;
        font-size: 12px;
    }
}