/* --- CSS ВЕРСИЯ 12.0 (FINAL CONTRAST) --- */

/* --- ОБЩИЕ СТИЛИ --- */
.page-header { display: none; }
.homepage-content-container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }

/* Чистка от мусора WP */
.homepage-content-container p:empty,
.homepage-content-container br,
.topics-row br,
.topics-row p:empty { display: none !important; }

/* --- HERO SECTION --- */
.hero-wrapper {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    margin: 40px 0 80px 0;
    min-height: 500px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: white;
    padding: 20px;
}
.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
}
.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    z-index: 2;
}
.hero-content {
    position: relative;
    z-index: 3;
    max-width: 800px;
}
.hero-title { font-size: 3em; font-weight: 700; color: #fff; margin-bottom: 20px; line-height: 1.2; }
.hero-subtitle { font-size: 1.5em; color: #eee; margin-bottom: 40px; }
.btn-hero { background: #0073aa; color: white !important; padding: 15px 40px; text-decoration: none; border-radius: 6px; font-weight: bold; display: inline-block; }

/* --- SECTIONS --- */
.section-wrapper { margin-bottom: 80px; }
.section-title { text-align: center; font-size: 2.5em; margin-bottom: 40px; color: #333; }

/* --- МЕДИТАЦИЯ (ВИДЕО YOUTUBE) --- */
.meditation-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
    background: #f9f9f9;
    padding: 40px;
    border-radius: 12px;
}
.meditation-video {
    position: relative;
    padding-bottom: 56.25%; /* Соотношение 16:9 */
    height: 0;
    overflow: hidden;
    border-radius: 12px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    background: #000;
}
.meditation-video iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
}
.meditation-text ul { padding-left: 20px; list-style: disc; margin-top: 20px; }
.meditation-text li { margin-bottom: 10px; }

/* --- БЛОГ --- */
.posts-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    list-style: none !important;
    padding: 0 !important;
    margin: 0 !important;
}
.post-card {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
}
.post-card img { width: 100%; height: 200px; object-fit: cover; }
.post-content { padding: 20px; display: flex; flex-direction: column; flex-grow: 1; }
.post-title a { font-size: 1.3em; font-weight: bold; color: #333; text-decoration: none; }
.post-meta { font-size: 0.85em; color: #888; margin: 10px 0; }
.post-excerpt { font-size: 0.95em; color: #555; margin-bottom: 15px; }

/* --- ТЕМЫ (ИСПРАВЛЕННЫЕ ЦВЕТА) --- */
.topics-section {
    background: #f4f6f8;
    padding: 60px 20px;
    margin-top: 60px;
}
.topics-container {
    max-width: 1200px;
    margin: 0 auto;
}
.topics-row {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    justify-content: center;
}
.topics-row > *:not(.topic-card) { display: none !important; }

.topic-card {
    position: relative;
    width: calc(33.333% - 20px);
    height: 300px;
    border-radius: 16px;
    overflow: hidden;
    text-decoration: none !important;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 30px;
    box-shadow: 0 10px 20px rgba(0,0,0,0.15);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    color: white !important;
}
.topic-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.25);
}

/* --- ЦВЕТА --- */
/* Внимание: ЯРКИЙ ЭЛЕКТРИК (теперь отличается от сновидений) */
.topic-attention { background: linear-gradient(135deg, #00c6ff 0%, #0072ff 100%); }

/* Карма: Винный/Золотой */
.topic-karma { background: linear-gradient(135deg, #4b1248 0%, #F0C27B 100%); }

/* Практики: Изумруд */
.topic-practices { background: linear-gradient(135deg, #134E5E 0%, #71B280 100%); }

/* Сновидения: ТЕМНАЯ НОЧЬ (оставляем темным) */
.topic-dreams { background: linear-gradient(135deg, #0f2027 0%, #203a43 50%, #2c5364 100%); }

/* Творчество: Огонь */
.topic-creativity { background: linear-gradient(135deg, #FF416C 0%, #FF4B2B 100%); }

/* Язык Души: Мистический фиолет */
.topic-soul { background: linear-gradient(135deg, #654ea3 0%, #eaafc8 100%); }

.topic-info h3 {
    color: white;
    margin: 0 0 15px 0;
    font-size: 2em;
    font-weight: 700;
    text-shadow: 0 2px 10px rgba(0,0,0,0.2);
}
.topic-info p {
    color: rgba(255,255,255,0.95);
    margin: 0;
    line-height: 1.4;
    font-size: 1.1em;
}

/* --- ЦИТАТА --- */
.quote-block {
    background: #2c3e50;
    color: white;
    padding: 60px;
    text-align: center;
    border-radius: 12px;
    margin-bottom: 60px;
}
.quote-block blockquote { font-size: 1.5em; border: none; padding: 0; margin: 0 0 20px 0; font-style: italic; }

/* --- АДАПТИВНОСТЬ --- */
@media (max-width: 900px) {
    .posts-grid { grid-template-columns: repeat(2, 1fr); }
    .topic-card { width: calc(50% - 15px); }
}
@media (max-width: 600px) {
    .hero-title { font-size: 2em; }
    .meditation-grid, .posts-grid { grid-template-columns: 1fr; }
    .topic-card { width: 100%; }
    .meditation-grid { padding: 20px; }
}






























/* --- СТИЛИ ДЛЯ СТРАНИЦЫ "НАВИГАТОР" --- */
.navigator-container-v2 { max-width: 1100px; margin: 20px auto; padding: 20px; }
.navigator-paths .nav-path { display: grid; grid-template-columns: repeat(2, 1fr); gap: 60px; align-items: center; margin-bottom: 60px; background-color: #f9f9f9; padding: 40px; border-radius: 16px; border: 1px solid #e9e9e9; }
.navigator-paths .nav-path.image-right .nav-path-image { order: 2; }
.nav-path-image img { border-radius: 12px; box-shadow: 0 10px 30px rgba(0,0,0,0.1); width: 100%; display: block; transition: transform 0.4s ease; }
.nav-path-image:hover img { transform: scale(1.03); }
.nav-path-text h3 { font-size: 2.5em; margin-top: 0; margin-bottom: 20px; color: #2c3e50; }
.nav-path-text p { font-size: 1.1em; line-height: 1.8; color: #444; margin-bottom: 30px; }
.nav-path-text .wp-block-button__link { font-size: 1em; padding: 14px 28px; background-color: #2c3e50 !important; color: #fff !important; border-radius: 6px; text-decoration: none; font-weight: bold; transition: background-color 0.2s ease, transform 0.2s ease; display: inline-block; }
.nav-path-text .wp-block-button__link:hover { background-color: #0073aa !important; transform: translateY(-2px); }
.final-cta { margin-top: 80px; padding: 50px; background-color: #f9f9f9; border-radius: 12px; text-align: center; }
.final-cta h2 { font-size: 2.5em; margin-top: 0; margin-bottom: 15px; }
.final-cta p { font-size: 1.3em; color: #555; margin-bottom: 30px; }
.final-cta .wp-block-button__link { font-size: 1.2em; padding: 15px 30px; background-color: #0073aa; }

/* --- СТИЛИ ДЛЯ СТРАНИЦЫ "О ВНИМАНИИ" --- */
.narrative-page-container { max-width: 800px; margin: 40px auto; padding: 20px; font-family: 'Georgia', serif; color: #333; }
.narrative-intro { text-align: center; margin-bottom: 60px; }
.narrative-image img { max-width: 100%; height: auto; border-radius: 12px; box-shadow: 0 10px 30px rgba(0,0,0,0.1); }
.narrative-image figcaption { margin-top: 15px; font-style: italic; color: #777; font-size: 0.9em; }
.narrative-page-container .narrative-prompt { margin-top: 40px; padding: 40px; background-color: #fdfaf5 !important; border: 1px solid #eeebe7 !important; border-radius: 12px; }
.narrative-prompt h2 { font-size: 2em; margin-top: 0; }
.narrative-prompt p { font-size: 1.1em; line-height: 1.7; }
.narrative-body { font-size: 1.2em; line-height: 1.8; }
.narrative-body h3 { text-align: center; font-size: 1.8em; margin-top: 60px; margin-bottom: 30px; }
.narrative-body p { margin-bottom: 1.5em; }
.narrative-pullquote { max-width: 85%; margin: 50px auto; padding: 0; border-left: 4px solid #0073aa; text-align: left; }
.narrative-pullquote p { font-size: 1.3em; font-style: italic; font-weight: 600; line-height: 1.6; color: #005a87; padding-left: 30px; margin: 0; }
.narrative-cta { margin-top: 80px; padding: 50px; background-color: #2c3e50; color: #ecf0f1; border-radius: 12px; text-align: center; }
.narrative-cta h3 { font-size: 2em; color: #fff; margin-top: 0; margin-bottom: 15px; }
.narrative-cta p { font-size: 1.2em; max-width: 60ch; margin-left: auto; margin-right: auto; margin-bottom: 30px; }
.narrative-cta .wp-block-button__link { font-size: 1.1em; padding: 14px 28px; background: linear-gradient(13deg,rgb(255,203,112) 15%,rgb(199,81,192) 52%,rgb(65,88,208) 100%); }
.page-id-7075 .wp-block-button__link { background-color: #0073aa !important; background-image: none !important; color: #fff !important; border-radius: 6px !important; transition: background-color 0.2s ease !important; }
.page-id-7075 .wp-block-button__link:hover { background-color: #2c3e50 !important; }

/* --- СТИЛИ ДЛЯ ФИЛЬМОТЕКИ --- */
.film-page-container { max-width: 1400px; margin: 20px auto; padding: 20px; font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif; line-height: 1.6; color: #333; }
.content-hero { background-color: #f9f9f9; padding: 20px; border-radius: 8px; margin-bottom: 40px; text-align: center; }
.film-grid { display: grid; grid-template-columns: 1fr; gap: 30px; }
.film-card { background-color: #fff; border-radius: 12px; overflow: hidden; box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08); transition: transform 0.3s ease, box-shadow 0.3s ease; display: flex; flex-direction: row; align-items: center; border: 1px solid #e0e0e0; }
.film-card:hover { transform: translateY(-5px); box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12); }
.film-card__poster { flex-basis: 300px; flex-shrink: 0; }
.film-card__poster img { width: 100%; height: 100%; object-fit: cover; display: block; }
.film-card__details { padding: 30px; flex-grow: 1; display: flex; flex-direction: column; }
.film-card__title { font-size: 1.6em; margin-top: 0; margin-bottom: 15px; }
.film-card__year { font-size: 0.9em; color: #888; font-weight: normal; }
.film-card__description { font-size: 1em; color: #555; flex-grow: 1; margin-bottom: 25px; }
.film-card__button { display: inline-block; background-color: #0073aa; color: #fff !important; padding: 12px 20px; border-radius: 6px; text-align: center; text-decoration: none; font-weight: bold; transition: background-color 0.2s ease; margin-top: auto; }
.film-card__button:hover { background-color: #005a87; color: #fff !important; }
.film-card__buttons-wrapper { margin-top: auto; display: flex; flex-wrap: wrap; gap: 10px; }
.film-pagination { display: flex; justify-content: space-between; align-items: center; margin-top: 50px; padding-top: 30px; border-top: 1px solid #e0e0e0; }
.pagination-button { display: inline-block; padding: 12px 25px; background-color: #fff; border: 1px solid #ccc; border-radius: 8px; color: #333 !important; text-decoration: none; font-weight: bold; transition: all 0.2s ease; }
.pagination-button:hover { background-color: #0073aa; border-color: #0073aa; color: #fff !important; transform: translateY(-2px); box-shadow: 0 4px 15px rgba(0,0,0,0.1); }
.film-pagination:has(.next:only-child) { justify-content: flex-end; }
.film-pagination:has(.prev:only-child) { justify-content: flex-start; }

/* --- СТИЛИ ДЛЯ СТРАНИЦЫ "ПЕРВЫЕ ШАГИ" --- */
.quest-page-container-v3 { max-width: 1000px; margin: 20px auto; padding: 20px; }
.quest-section-v3 { margin-bottom: 80px; }
.quest-section-v3 h2 { text-align: center; font-size: 2.5em; margin-bottom: 50px; }
.path-banner { display: grid; grid-template-columns: 1fr 1.2fr; grid-template-areas: "image text"; gap: 50px; align-items: center; margin-bottom: 60px; background-color: #fff; padding: 30px; border-radius: 16px; border: 1px solid #e0e0e0; box-shadow: 0 5px 15px rgba(0,0,0,0.05); }
.path-banner.reverse { grid-template-areas: "text image"; }
.path-banner-image { grid-area: image; }
.path-banner-image img { border-radius: 12px; width: 100%; display: block; }
.path-banner-text { grid-area: text; }
.path-banner-text h3 { font-size: 2em; margin-top: 0; }
.path-banner-text p { font-size: 1.1em; line-height: 1.7; color: #444; margin-bottom: 30px; }
.quest-card-cta { display: inline-block; background-color: #0073aa; color: #fff !important; padding: 12px 25px; border-radius: 6px; text-decoration: none; font-weight: bold; transition: background-color 0.2s ease; }
.quest-card-cta:hover { background-color: #2c3e50; }
.fourth-path-card { display: grid; grid-template-columns: 1fr 2fr; gap: 40px; align-items: center; background: #f9f9f9; padding: 40px; border-radius: 12px; }
.fourth-path-image img { border-radius: 8px; width: 100%; display: block; }
.stress-section { margin-top: 80px; padding: 50px; background: #fdfaf5; border: 1px solid #eeebe7; border-radius: 12px; text-align: center; }
.stress-content h4 { font-size: 1.2em; color: #555; margin: 0; }
.stress-content h2 { font-size: 4em; color: #c0392b; margin: 10px 0 30px 0; font-weight: 700; }
.stress-content .wp-block-button__link { font-size: 1.3em; padding: 15px 35px; background-color: #0073aa; color: #fff !important; border-radius: 8px; }

/* --- СТИЛИ ДЛЯ ФУТЕРА --- */
.footer-widgets { background-color: #2c3e50; color: #ecf0f1; padding: 60px 20px; display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 40px; }
.footer-widgets .widget-title { color: #fff; font-size: 1.4em; margin-bottom: 20px; border-bottom: 2px solid #3498db; padding-bottom: 10px; display: inline-block; }
.footer-widgets a { color: #3498db; text-decoration: none; transition: color 0.2s ease; }
.footer-widgets a:hover { color: #fff; }
.footer-contact-info p { display: flex; align-items: center; gap: 10px; font-size: 1em; margin-bottom: 15px; }
.footer-contact-info .fa-solid { color: #bdc3c7; }
.footer-social-icons { display: flex; gap: 20px; margin-top: 20px; }
.footer-social-icons a { color: #bdc3c7; font-size: 2em; transition: transform 0.2s ease, color 0.2s ease; }
.footer-social-icons a:hover { color: #fff; transform: scale(1.1); }
.site-info, .wp-block-site-generator { background-color: #233140; color: #bdc3c7; text-align: center; padding: 20px; font-size: 0.9em; }


/* --- ИСПРАВЛЕННЫЕ СТИЛИ СЕКЦИИ "КЛЮЧЕВЫЕ ТЕМЫ" --- */

.topics-final-section {
    padding: 60px 20px;
    background-color: #f9f9f9;
    border-top: 1px solid #e0e0e0;
    border-bottom: 1px solid #e0e0e0;
}

.topics-final-header {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 50px auto;
}
.topics-final-header .section-title {
    border: none;
    font-size: 2.8em;
}

.topics-final-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr); /* ЖЕСТКО 3 КОЛОНКИ */
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

.topic-final-card {
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    height: 350px; /* Фиксированная высота для ровности */
    border-radius: 16px;
    padding: 30px;
    color: #fff !important;
    text-decoration: none;
    background-size: cover;
    background-position: center;
    position: relative;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    transition: all 0.4s ease;
}
.topic-final-card:hover {
    transform: scale(1.03);
    box-shadow: 0 15px 40px rgba(0,0,0,0.2);
}

/* Затемнение */
.topic-final-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(0,0,0,0.9) 10%, rgba(0,0,0,0.3) 50%, rgba(0,0,0,0) 100%);
    transition: background 0.4s ease;
    z-index: 1;
}
.topic-final-card:hover::before {
    background: linear-gradient(to top, rgba(0,0,0,0.95) 20%, rgba(0,0,0,0.4) 60%);
}

.topic-final-content {
    position: relative;
    z-index: 2;
}
.topic-final-content h3 {
    font-size: 1.8em;
    font-weight: 700;
    margin: 0 0 10px 0;
    color: #fff;
    text-shadow: 0 2px 4px rgba(0,0,0,0.5);
}
.topic-final-content p {
    font-size: 1em;
    line-height: 1.4;
    margin: 0;
    opacity: 0.95;
    text-shadow: 0 1px 2px rgba(0,0,0,0.5);
}

.topics-final-footer {
    text-align: center;
    margin-top: 50px;
}
.topics-final-footer .wp-block-button__link {
    font-size: 1.2em;
    padding: 14px 30px;
    background-color: #0073aa;
}

/* --- КАРТА ЗНАНИЙ --- */
.knowledge-map-page .entry-content { max-width: 1200px; margin: 40px auto; }
.knowledge-map-page .wp-block-categories-list { list-style: none; padding: 0; column-count: 3; column-gap: 30px; }
.knowledge-map-page .wp-block-categories-list li { list-style: none; margin: 0 0 30px 0; padding: 0; break-inside: avoid; }
.knowledge-map-page .wp-block-categories-list a { display: block; padding: 15px 20px; background: #fff; border: 1px solid #e0e0e0; border-radius: 8px; text-decoration: none; color: #333; transition: all 0.2s ease; height: 100%; }
.knowledge-map-page .wp-block-categories-list a:hover { transform: translateY(-5px); box-shadow: 0 8px 20px rgba(0,0,0,0.1); border-color: #0073aa; }
.knowledge-map-page .wp-block-categories-list > li > a { background: #f9f9f9; font-size: 1.2em; font-weight: 700; color: #2c3e50; }
.knowledge-map-page ul.children { list-style: none; padding-left: 0; margin-top: 10px; }
.knowledge-map-page ul.children li { margin: 0 0 10px 0; }

/* --- ОБЩАЯ АДАПТИВНОСТЬ (ИСПРАВЛЕННАЯ) --- */

/* Планшеты (меньше 1024px) */
@media (max-width: 1024px) {
    .feature-grid, .homepage-posts-grid, .topics-final-grid {
        grid-template-columns: repeat(2, 1fr); /* Становится 2 колонки */
    }
}

/* Мобильные (меньше 768px) */
@media (max-width: 768px) {
    /* Главное меню */
    .ast-builder-menu-mobile .menu-item.menu-button { background: none !important; padding: 0 !important; }
    .ast-builder-menu-mobile .menu-item.menu-button > a { background: none !important; color: inherit !important; border: none !important; box-shadow: none !important; padding: 10px 20px !important; margin-left: 0 !important; display: block; }
    
    /* Сетки превращаются в 1 колонку */
    .cta-section { grid-template-columns: 1fr; }
    .feature-grid, .homepage-posts-grid, .topics-final-grid {
        grid-template-columns: 1fr;
    }
    
    .nav-path-text h3 { font-size: 1.8em !important; }
    .nav-path-text .wp-block-button__link { font-size: 1em !important; padding: 12px 24px !important; }
    .knowledge-map-page .wp-block-categories-list { column-count: 1; }
    
    /* Фильмы */
    .film-card { flex-direction: column !important; align-items: stretch !important; }
    .film-card__poster { flex-basis: auto !important; width: 100% !important; height: 450px !important; }
    .film-card__details { padding: 25px 20px !important; width: auto !important; }
}

/* Стили для страницы СТРЕСС */
.page-id-7026 .wp-block-columns { align-items: stretch; }
.page-id-7026 .wp-block-column { display: flex; flex-direction: column; }
.page-id-7026 .wp-block-column > p { flex-grow: 1; }