/* ============================================================
   Тема Teatr — переопределения поверх core.css
   <link rel="stylesheet" href="/assets/css/core.css">
   <link rel="stylesheet" href="/assets/css/themes/teatr.css">
   ============================================================ */

/* --- Шрифт и базовый фон --- */
html, body, h1, h2, h3, h4, h5, h6, .widget, p {
    font-family: 'Trebuchet MS', 'Inter', Helvetica, sans-serif;
    color: #dfdfdf;
}

body {
    background-image: none;
    background-color: #2f3133;
    background-size: unset;
    background-repeat: unset;
    background-attachment: unset;
}

/* --- Шапка --- */
.header-main {
    /* Базовый фон шапки (градиент рисуем в .header-left вторым слоем) */
    background-color: #1e1f23;
    height: 265px;
    border-bottom: 3px solid #653f95;
}

.header-left {
    /* 1 слой — картинка; 2 слой — фон, который продолжает её справа */
    background-image:
        url('/templates/bg-header3.png'),
        linear-gradient(90deg,
            #7b7b7b 0,
            #7b7b7b 1280px,
            #3c3d42 1550px,
            #1e1f23 100%
        );
    background-repeat: no-repeat, no-repeat;
    background-size: 1280px auto, 100% 100%;
    background-position: left center, left top;
    background-color: transparent;
}

.header-right {
    height: 120px;
    justify-content: right;
}

.header-right img {
    display: block;
    height: 100%;
    width: auto;
}

.header-text {
    display: block;
    position: absolute;
    bottom: -100px;
    right: 30px;
    text-align: right;
    margin-top: 0;
}

/* Название сайта — класс .main-title (не h1: h1 только у заголовка страницы в контенте) */
.header-text .site-tagline,
.header-text h2 {
    display: block;
    margin: 0;
    font-size: 14px;
    color: white;
    text-shadow: 3px 3px 10px black;
}

/* --- Контент --- */
.container {
    background-color: transparent;
    background-image: none;
    flex-wrap: wrap;
    gap: 20px;
    padding: 20px;
}

.container a {
    color: #b377ff;
    overflow-wrap: anywhere;
    word-break: break-word;
}

.container a:hover,
.content a:hover,
.post-content a:hover,
.post-title a:hover,
.grid-post:hover .grid-post-title,
.gallery-post:hover .gallery-post-title {
    color: #9461d3 !important;
}

.content {
    border-right: unset;
}

/* --- Меню --- */
.menu-container {
    background-color: #2b2d31;
}

.menu-container.menu-sticky {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4);
}

.menu {
    background: #373737;
}

.menu li,
.submenu li {
    text-shadow: none;
}

.menu > ul > li:hover {
    background-color: #5a4578;
}

.menu .submenu {
    background-color: #2f3133;
    padding: 6px 0;
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.55);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.submenu li {
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.submenu li:hover {
    background-color: transparent;
}

.submenu li:last-child {
    border-bottom: none;
}

.submenu a:hover {
    background-color: #4e3070;
}

.has-submenu > a::after,
.submenu .has-submenu > a::after {
    color: #d2baff;
    opacity: 0.9;
}

.menu li.active,
.menu li.active > a {
    background-color: #653f95;
}

.menu li.parent-active,
.menu li.parent-active > a {
    background-color: rgba(101, 63, 149, 0.35);
}

@media (min-width: 769px) {
    .menu > ul > li.active,
    .menu > ul > li.active > a {
        background-color: #653f95;
        box-shadow: inset 0 -3px 0 #d2baff;
    }

    .menu > ul > li.parent-active,
    .menu > ul > li.parent-active > a {
        background-color: rgba(101, 63, 149, 0.35);
        box-shadow: none;
    }
}

/* --- Посты --- */
.home-post,
.single-post {
    background-color: #3f4141;
    border-radius: 8px;
    margin-bottom: 20px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    border: 1px solid #4a4a4a;
    padding: 20px;
}

.sticky-post {
    border-left: 5px solid #623e92;
}

.post-header {
    border-bottom: 1px solid #3f4141;
}

.post-title h1,
.post-title h2 {
    color: #efe9ff;
}

.post-title a {
    color: #d2baff !important;
}

.post-text > p {
    text-indent: 1.5em;
}

.post-text,
.post-content {
    color: #e4e4e4;
    font-size: 16px;
    line-height: 1.75;
}

.post-text p,
.post-content p {
    margin: 0 0 0.9em;
}

.post-text p:last-child,
.post-content p:last-child {
    margin-bottom: 0;
}

.home-post-image img,
.single-post .home-post-image img {
    border-radius: 8px;
}

.post-date,
.post-category {
    background-color: #3a3d3d;
    border: 1px solid #4a4a4a;
}

.post-meta {
    color: #cfd3dc;
}

.post-footer {
    border-top: 1px solid #3f4141;
}

.posts-list-page-title h1 {
    color: unset;
}

.read-more {
    background-color: #653f95;
    border-radius: 6px;
}

.read-more:hover {
    background-color: #7d4eb8;
}

.ticket-button:hover {
    background-color: #9461d3;
}

.ticket-button:active {
    background-color: #653f95;
}

/* --- Виджеты --- */
.widget {
    background-color: #3f3f3f;
    border-radius: 8px;
    margin-bottom: 20px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    border: 1px solid #3f4141;
}

.widget h3 {
    color: #b377ff;
}

.widget a {
    color: #dfdfdf;
}

.widget a:hover {
    color: #9461d3;
    text-shadow: none;
}

/* --- Сворачиваемые блоки --- */
details {
    background-color: transparent;
}

summary:hover {
    background-color: #b377ff;
    color: white;
}

details[open] summary {
    background-color: #b377ff;
    color: white;
}

/* --- Пагинация --- */
.pagination .page-link:hover {
    background-color: #653f95;
    border-color: #7d4eb8;
}

.pagination .page-link.active {
    background-color: #653f95;
    border-color: #7d4eb8;
    color: #ffffff !important;
}

/* --- Цитаты --- */
.quote-block {
    background-color: #323535;
}

.quote-author,
.quote-category {
    color: #888;
}

/* --- Формы и нижние блоки --- */
.review-form-container {
    background: #3f4141;
}

.review-form label {
    color: #dfdfdf;
}

.review-form input,
.review-form textarea {
    background-color: #3a3d3d;
    color: #dfdfdf;
}

.after-container-block {
    background-color: #373737;
}

.dynamic-form-wrapper {
    background: transparent;
    border: 1px solid #717171;
}

.dynamic-form-actions button[type="submit"] {
    background: #653f95;
}

.dynamic-form-actions button[type="submit"]:hover {
    background: #7a4cb5;
}

.no-reviews {
    color: #dfdfdf;
}

.search-result-meta {
    color: #aaa;
}

/* --- Кнопка «Вверх» --- */
.back-to-top {
    background: #7d4eb8;
}

.pk-chatbot-head, .pk-chatbot-launcher, .pk-chatbot-send, .pk-chatbot-bubble-user {
    background: #7d4eb8 !important; 
}

/* --- Мобильная шапка (отмена salut-стилей из core) --- */
@media (max-width: 768px) {
    .header-left {
        background-image: url('/templates/bg-header.png');
        background-size: 1280px auto;
        background-position: left center;
        height: 100%;
        aspect-ratio: unset;
    }

    .header-main {
        height: 265px;
    }

    .header-right {
        width: auto;
        height: 120px;
    }

    .header-right img {
        height: 50%;
    }
    
    .container {
    gap: unset;
    padding: unset;
    }

    .menu > ul {
        background: #2b2d31;
    }

    .menu > ul > li:hover {
        background-color: #5a4578;
    }

    .submenu {
        background: #26282c !important;
    }

    .submenu a:hover {
        background-color: #4e3070;
    }

    .menu li.active,
    .menu li.active > a {
        background-color: #653f95;
        box-shadow: none;
    }

    .menu li.parent-active,
    .menu li.parent-active > a {
        background-color: rgba(101, 63, 149, 0.45);
    }
}