/* Стили для SEO блока Crocodila */
.seo-content {
    max-width: 96%;
    margin: 0 auto;
    padding: 0 2%;
    position: relative;
    background: #ffffff !important;
}

.content-preview {
    position: relative;
    overflow: hidden;
    transition: height 0.4s ease;
}

.content-preview.collapsed {
    height: 165px;
}

.fade-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 125px;
    background: linear-gradient(to bottom, 
        rgba(241, 248, 233, 0) 0%, 
        rgba(241, 248, 233, 0.6) 40%, 
        rgba(241, 248, 233, 0.9) 70%, 
        rgba(241, 248, 233, 1) 100%);
    display: flex;
    align-items: flex-end;
    justify-content: center;
    padding-bottom: 15px;
}

.fade-overlay.hidden {
    opacity: 0;
    transition: opacity 0.3s;
}

/* Кнопка Розгорнути ~ */
.crocodila-seo-expand-btn {
    padding: 6px 24px;
    background: rgba(255, 255, 255, 0.95);
    color: #333;
    border: 1px solid #b0bec5;
    border-radius: 20px;
    font-size: 14px;
    font-family: Arial, sans-serif;
    cursor: pointer;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.12), 
                0 1px 2px rgba(0, 0, 0, 0.08);
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-width: 130px;
    justify-content: center;
    transition: all 0.2s ease;
    pointer-events: auto;
    backdrop-filter: blur(2px);
    position: relative;
    z-index: 10;
}

.crocodila-seo-expand-btn:hover {
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15), 
                0 2px 4px rgba(0, 0, 0, 0.1);
    transform: translateY(-1px);
}

.crocodila-seo-expand-btn:active {
    transform: translateY(0);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.crocodila-seo-expand-btn__text {
    font-weight: 500;
    color: #455a64;
    font-size: 13px;
}

.crocodila-seo-expand-btn__icon {
    font-size: 14px;
    font-weight: bold;
    color: #78909c;
    transition: transform 0.3s ease;
}

/* Кнопка Згорнути (ПЕРЕНЕСЕНА НИЖЕ ПОД КОНТЕНТ) */
.crocodila-seo-collapse-btn {
    padding: 6px 24px;
    background: white;
    color: #333;
    border: 1px solid #b0bec5;
    border-radius: 20px;
    font-size: 14px;
    font-family: Arial, sans-serif;
    cursor: pointer;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    display: none; /* Скрыта по умолчанию */
    align-items: center;
    gap: 6px;
    min-width: 130px;
    justify-content: center;
    transition: all 0.2s ease;
    pointer-events: auto;
    
    /* ПЕРЕНЕСЕНО НИЖЕ - БОЛЬШОЙ ОТСТУП ОТ КОНТЕНТА */
    margin: 200px auto 50px auto; /* 150px сверху, 50px снизу */
}

.crocodila-seo-collapse-btn:hover {
    background: #f8f9fa;
    border-color: #90a4ae;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.15);
    transform: translateY(-1px);
}

.crocodila-seo-collapse-btn:active {
    transform: translateY(0);
    background: #f1f3f4;
}

.crocodila-seo-collapse-btn__text {
    font-weight: 500;
    color: #455a64;
    font-size: 13px;
}

.crocodila-seo-collapse-btn__icon {
    font-size: 14px;
    font-weight: bold;
    color: #78909c;
    transform: rotate(180deg);
}

/* Показываем кнопку только при раскрытом контенте */
.seo-content.expanded .crocodila-seo-collapse-btn {
    display: inline-flex;
    margin-top: 150px; /* БОЛЬШОЙ ОТСТУП СВЕРХУ */
    margin-bottom: 150px; /* ОТСТУП СНИЗУ */
}

/* Когда контент раскрыт - показываем весь текст и убираем высоту */
.seo-content.expanded .content-preview.collapsed {
    height: auto;
}

/* Прячем оверлей с затуханием при раскрытом контенте */
.seo-content.expanded .fade-overlay {
    opacity: 0;
    pointer-events: none;
}

.text-block {
    margin-bottom: 22px;
    color: #37474f;
}

.text-block h1 {
    color: #263238;
    font-size: 1.8em;
    margin-bottom: 20px;
    font-weight: 700;
}

.text-block h2 {
    color: #37474f;
    margin-bottom: 12px;
    font-size: 1.3em;
    font-weight: 600;
}

.text-block p {
    margin-bottom: 12px;
    line-height: 1.6;
    color: #455a64;
}

/

/* Стили для текста внутри параллакса */
.parallax-content-wrapper h1,
.parallax-content-wrapper h2,
.parallax-content-wrapper h3,
.parallax-content-wrapper h4,
.parallax-content-wrapper h5,
.parallax-content-wrapper h6 {
    color: #1b5e20 !important;
    text-shadow: 1px 1px 2px rgba(255,255,255,0.8);
    margin-bottom: 20px !important;
}

.parallax-content-wrapper p {
    color: #37474f !important;
    line-height: 1.7 !important;
    margin-bottom: 15px !important;
    font-weight: 500 !important;
}

.parallax-content-wrapper ul,
.parallax-content-wrapper ol {
    margin-left: 20px !important;
    margin-bottom: 20px !important;
}

.parallax-content-wrapper li {
    color: #455a64 !important;
    margin-bottom: 8px !important;
}
*/
/* Адаптивность */
@media (max-width: 768px) {
    .content-with-parallax {
        min-height: 250px;
        margin: 30px 0;
    }
    
    .parallax-bg {
        background-attachment: scroll;
        top: -10%;
        height: 120%;
    }
    
    .parallax-content-wrapper {
        padding: 35px 25px;
        min-height: 250px;
    }
}

@media (max-width: 480px) {
    .content-with-parallax {
        min-height: 200px;
        margin: 20px 0;
    }
    
    .parallax-content-wrapper {
        padding: 25px 15px;
        min-height: 200px;
    }
}*/

.seo-content a:link {
  color: #2a5c2a;
}

.seo-content a:visited {
  color: #3a6c3a; /* цвет для посещённых ссылок */
}

.seo-content a:hover {
  color: #1a3d1a;
}

.seo-content a:active {
  color: #0a2d0a;
}

.text-block {
  padding-bottom: 3em;
  box-sizing: border-box; /* гарантирует, что padding не увеличит общий размер */
}
