/* ============================================================
   Тема DK7 — «Сцена-абстракция» (вариант для ДК «40 лет Октября»)
   Как dk2: более контрастная — бархатный фон, золотой свет рампы,
   крупный Comfortaa в шапке, плотное меню; вместо занавесов — абстрактный
   геометрический SVG-фон (dk7-bg.svg).
   Подключение:
   <link rel="stylesheet" href="/assets/css/core.css">
   <link rel="stylesheet" href="/assets/css/themes/dk7.css">
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Comfortaa:wght@500;700&family=Onest:wght@400;500;600;700&subset=cyrillic,cyrillic-ext,latin&display=swap');

:root {
    --dk7-ink: #071422;
    --dk7-navy: #0b2340;
    --dk7-navy-mid: #123558;
    --dk7-cyan: #1bb0e8;
    --dk7-cyan-deep: #0e86b8;
    --dk7-cyan-soft: #d9f1fb;
    --dk7-gold: #e2b84a;
    --dk7-gold-soft: #f3df9a;
    --dk7-amber: #ef8b2a;
    --dk7-bg: #0d1a2b;
    --dk7-surface: #f7fafc;
    --dk7-surface-alt: #e8eef5;
    --dk7-border: #c2d0e0;
    --dk7-text: #142232;
    --dk7-muted: #5a6d80;
    --dk7-link: #0d7aaa;
    --dk7-radius: 4px;
}

/* --- База --- */
html {
    background-color: var(--dk7-bg);
}

html, body, .widget, p,
.menu a, .submenu a,
.content, .footer, .sidebar {
    font-family: 'Onest', 'Segoe UI', sans-serif;
    color: var(--dk7-text);
}

h1, h2, h3, h4, h5, h6,
.header-text h1,
.header-text .main-title,
h1.main-title,
.post-title h1,
.post-title h2,
.post-title a,
.grid-post-title,
.gallery-post-title,
.widget h3,
.posts-list-page-title h1 {
    font-family: 'Comfortaa', 'Onest', sans-serif;
    font-weight: 700;
    letter-spacing: 0.02em;
}

p {
    margin: 0 0 10px;
}

body {
    color: var(--dk7-text);
    background-color: var(--dk7-bg);
    background-image: url('dk7-bg.svg');
    background-size: cover;
    background-position: center top;
    background-repeat: no-repeat;
    background-attachment: fixed;
}

.container a {
    color: var(--dk7-link);
    text-decoration: underline;
    text-decoration-color: rgba(27, 176, 232, 0.4);
    text-underline-offset: 3px;
    transition: color 0.2s ease, text-decoration-color 0.2s ease;
}

.container a:hover,
.content a:hover,
.post-content a:hover,
.post-title a:hover {
    color: var(--dk7-cyan-deep);
    text-decoration-color: var(--dk7-cyan);
}

.post-title a,
.grid-post-title,
.gallery-post-title,
.widget a,
.read-more,
.home-button,
.page-link,
.menu a {
    text-decoration: none;
}

.content p {
    text-indent: unset;
    line-height: 1.7;
}

.content > h1,
.content > h2,
.content > h3,
.content h2,
.post-content h2 {
    color: var(--dk7-navy);
}

.content > h2,
.post-content h2 {
    font-weight: 700;
    padding-bottom: 10px;
    border-bottom: 3px solid var(--dk7-gold);
}

/* --- Шапка: рампа / сцена --- */
/* Один общий SVG на body — шапка прозрачная, бока слайдера не «склеиваются» со вторым фоном */
.header-main {
    height: auto;
    min-height: 280px;
    background: transparent;
    border-bottom: none;
    box-shadow: none;
}

.header-main > .slideshow-container {
    position: relative;
    z-index: 1;
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.35);
}

.header-left {
    display: flex;
    align-items: flex-end;
    justify-content: flex-start;
    min-height: 280px;
    padding: 36px 48px 40px;
    background-color: var(--dk7-ink);
    background-image:
        linear-gradient(105deg,
            rgba(7, 20, 34, 0.96) 0%,
            rgba(11, 35, 64, 0.88) 38%,
            rgba(18, 53, 88, 0.55) 68%,
            rgba(27, 176, 232, 0.22) 100%),
        radial-gradient(ellipse 55% 70% at 82% 40%, rgba(226, 184, 74, 0.28), transparent 55%),
        radial-gradient(circle at 18% 85%, rgba(27, 176, 232, 0.18), transparent 40%),
        linear-gradient(165deg, #071422 0%, #0b2340 48%, #123558 100%);
    /* Фото здания поверх градиентов:
       background-image: linear-gradient(...), url(/uploads/.../dk-header.webp);
       background-size: cover;
       background-position: center;
    */
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
    overflow: hidden;
}

.header-left::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        repeating-linear-gradient(
            90deg,
            transparent 0,
            transparent 48px,
            rgba(255, 255, 255, 0.015) 48px,
            rgba(255, 255, 255, 0.015) 49px
        );
    pointer-events: none;
    opacity: 0.7;
}

.header-left::after {
    display: none;
}

.header-right img {
    display: unset;
}

.header-text {
    display: block;
    position: static;
    margin-top: 0;
    text-align: left;
    white-space: normal;
    max-width: 820px;
    z-index: 1;
}

.header-text h1,
.header-text .main-title,
h1.main-title {
    font-size: clamp(26px, 4vw, 42px) !important;
    color: #fff !important;
    text-shadow:
        0 2px 4px rgba(0, 0, 0, 0.45),
        0 8px 28px rgba(0, 0, 0, 0.4) !important;
    font-weight: 700;
    text-transform: none;
    line-height: 1.2;
    letter-spacing: 0.01em;
}

.header-text h2,
.header-text .site-tagline {
    display: inline-block;
    margin: 16px 0 0;
    padding: 8px 0 0;
    font-size: 12px;
    font-family: 'Onest', sans-serif;
    font-weight: 600;
    color: var(--dk7-gold-soft);
    letter-spacing: 0.16em;
    text-transform: uppercase;
    border-top: 2px solid rgba(226, 184, 74, 0.55);
}

/* --- Меню: по ширине контента; на всю ширину только когда прилипло --- */
.menu-container {
    max-width: 1220px;
    width: 100%;
    margin-left: auto;
    margin-right: auto;
    background:
        linear-gradient(180deg, var(--dk7-navy-mid) 0%, var(--dk7-navy) 100%);
    border-bottom: none;
    transition: max-width 0.15s ease, box-shadow 0.15s ease;
}

.menu-container.menu-sticky.is-stuck {
    max-width: none;
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.4);
}

.menu-container.menu-sticky {
    box-shadow: none;
}

.menu {
    background: transparent;
    padding: 0 8px;
}

.menu > ul {
    justify-content: center;
    width: 100%;
}

.menu li {
    text-shadow: none;
}

.menu a,
.submenu a {
    color: #f2f7fb;
}

.menu > ul > li > a {
    text-align: center;
    padding: 16px 14px;
    font-weight: 600;
    font-size: 16px;
    letter-spacing: 0.03em;
    border-bottom: 3px solid transparent;
    margin-bottom: -3px;
    transition: color 0.18s ease, background-color 0.18s ease, border-color 0.18s ease;
}

.menu > ul > li:hover > a {
    background-color: rgba(27, 176, 232, 0.14);
    color: var(--dk7-gold);
    border-bottom-color: var(--dk7-gold);
}

.menu li:hover {
    background-color: transparent;
}

.menu .submenu {
    background-color: var(--dk7-ink);
    box-shadow: 0 16px 36px rgba(0, 0, 0, 0.4);
    border-top: 3px solid var(--dk7-cyan);
}

.submenu a {
    color: #eef4f9;
    text-align: left;
    transition: background-color 0.15s ease, color 0.15s ease;
}

.submenu a:hover {
    background-color: var(--dk7-cyan-deep);
    color: #fff;
}

.menu li.active > a,
.menu li.parent-active > a {
    background-color: rgba(226, 184, 74, 0.12);
    color: #fff;
    border-bottom-color: var(--dk7-gold);
}

.menu li.active,
.menu li.parent-active {
    background-color: transparent;
}

.menu li.active:hover > a,
.menu li.parent-active:hover > a {
    color: var(--dk7-gold-soft);
    border-bottom-color: var(--dk7-gold-soft);
}

/* --- Контент --- */
.menu, .container, .footer {
    max-width: 1220px;
}

.container {
    background-color: var(--dk7-surface);
    box-shadow:
        0 0 0 1px rgba(255, 255, 255, 0.04),
        0 18px 48px rgba(0, 0, 0, 0.28);
    border-radius: 0 0 var(--dk7-radius) var(--dk7-radius);
}

.content {
    border-right: 1px solid var(--dk7-border);
    padding: 28px 32px;
}

.post-header,
.post-footer {
    border-color: var(--dk7-border);
}

.post {
    border-bottom-color: var(--dk7-border);
}

.sticky-post {
    border-left: 5px solid var(--dk7-gold);
    background: linear-gradient(90deg, rgba(226, 184, 74, 0.12), transparent 70%);
    padding-left: 16px;
}

.home-post,
.single-post {
    padding: unset;
}

.post-title h1,
.post-title h2,
.post-title a {
    color: var(--dk7-navy) !important;
}

.post-title a:hover {
    color: var(--dk7-cyan-deep) !important;
}

.pub-date {
    color: var(--dk7-muted);
}

.read-more,
.home-button,
.dynamic-form-actions button[type="submit"],
.grid-read-more,
.gallery-read-more {
    background: linear-gradient(180deg, var(--dk7-cyan) 0%, var(--dk7-cyan-deep) 100%);
    color: #fff !important;
    border-radius: var(--dk7-radius);
    box-shadow: 0 6px 16px rgba(14, 134, 184, 0.28);
    transition: transform 0.15s ease, box-shadow 0.15s ease, filter 0.15s ease;
}

.read-more:hover,
.home-button:hover,
.dynamic-form-actions button[type="submit"]:hover,
.grid-read-more:hover,
.gallery-read-more:hover {
    filter: brightness(1.06);
    box-shadow: 0 8px 20px rgba(14, 134, 184, 0.38);
    transform: translateY(-2px);
}

/* --- Сайдбар --- */
.sidebar {
    border-left: 1px solid var(--dk7-border);
    background:
        linear-gradient(180deg, #eef3f8 0%, var(--dk7-surface-alt) 100%);
}

.widget {
    background-color: transparent;
    border: none;
    border-radius: 0;
    margin: 12px 20px 16px;
    padding: 14px 0 14px;
    border-bottom: 1px solid var(--dk7-border);
}

.widget h3 {
    color: var(--dk7-navy);
    background: transparent;
    border-bottom: none;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    margin: 0 0 12px;
    padding: 0 0 10px;
    border-radius: 0;
    position: relative;
    width: 100%;
    box-sizing: border-box;
}

.widget h3::after {
    content: "";
    display: block;
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: 3px;
    margin: 0;
    background: linear-gradient(90deg, var(--dk7-cyan) 0%, var(--dk7-gold) 55%, var(--dk7-amber) 100%);
}

.widget a {
    color: var(--dk7-navy-mid);
}

.widget a:hover {
    color: var(--dk7-cyan-deep);
    text-shadow: none;
}

.widget-search input[type="text"] {
    background-color: #fff;
    border-color: var(--dk7-border);
    color: var(--dk7-text);
    border-radius: var(--dk7-radius);
}

.widget-search button {
    background-color: var(--dk7-navy);
    color: #fff;
    border-radius: var(--dk7-radius);
}

.widget-search button:hover {
    background-color: var(--dk7-cyan-deep);
}

.widget-categories .category-count {
    background-color: var(--dk7-navy);
    color: #fff;
}

/* --- Сворачиваемые блоки --- */
details {
    background-color: var(--dk7-surface-alt);
    border-color: var(--dk7-border);
    border-radius: var(--dk7-radius);
}

summary {
    color: var(--dk7-navy);
    font-weight: 600;
}

summary:hover,
details[open] summary {
    background-color: var(--dk7-navy);
    color: #fff;
}

/* --- Цитаты --- */
.quote-block {
    background: linear-gradient(90deg, var(--dk7-cyan-soft), #f5f9fc);
    border-left: 5px solid var(--dk7-cyan);
}

.quote-author,
.quote-category {
    color: var(--dk7-muted);
}

/* --- Пагинация --- */
.pagination .page-link {
    background-color: #fff;
    color: var(--dk7-navy) !important;
    border-color: var(--dk7-border);
    border-radius: var(--dk7-radius);
}

.pagination .page-link:hover {
    background-color: var(--dk7-navy);
    border-color: var(--dk7-navy);
    color: #fff !important;
}

.pagination .page-link.active {
    background-color: var(--dk7-cyan-deep);
    border-color: var(--dk7-cyan-deep);
    color: #fff !important;
}

/* --- Сетка и галерея --- */
.grid-post,
.gallery-post {
    border-color: var(--dk7-border);
    background-color: #fff;
    border-radius: var(--dk7-radius);
    transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.grid-post:hover,
.gallery-post:hover {
    border-color: var(--dk7-cyan);
    box-shadow: 0 12px 28px rgba(11, 35, 64, 0.14);
    transform: translateY(-2px);
}

.grid-post-title,
.gallery-post-title {
    color: var(--dk7-navy);
}

.wp-gallery img:hover {
    border-color: var(--dk7-cyan);
}

/* --- Отзывы и формы --- */
.review-form-container {
    background: var(--dk7-surface-alt);
    border: 1px solid var(--dk7-border);
    border-radius: var(--dk7-radius);
}

.review-form input,
.review-form textarea {
    background-color: #fff;
    border-color: var(--dk7-border);
}

.review-item {
    background: #fff;
    border-color: var(--dk7-border);
    border-left: 4px solid var(--dk7-gold);
    border-radius: var(--dk7-radius);
}

.review-author {
    color: var(--dk7-navy);
}

.review-date {
    background-color: var(--dk7-cyan-soft);
    color: var(--dk7-muted);
}

.review-content {
    color: var(--dk7-text);
}

.after-container-block {
    background-color: var(--dk7-surface-alt);
    border-top: 1px solid var(--dk7-border);
}

.dynamic-form-wrapper {
    background: var(--dk7-surface-alt);
    border: 1px solid var(--dk7-border);
    border-radius: var(--dk7-radius);
}

/* --- Подвал --- */
.footer-container {
    background:
        linear-gradient(180deg, var(--dk7-navy) 0%, var(--dk7-ink) 100%);
    color: rgba(255, 255, 255, 0.92);
    border-top: 4px solid var(--dk7-gold);
    box-shadow: 0 -8px 28px rgba(0, 0, 0, 0.25);
}

.footer {
    color: rgba(255, 255, 255, 0.92);
}

.footer,
.footer p,
.footer span,
.footer li,
.footer div,
.footer small {
    color: #fff;
}

.footer a {
    color: var(--dk7-gold);
    transition: color 0.15s ease;
}

.footer a:hover {
    color: var(--dk7-gold-soft);
}

/* --- Прочее --- */
.back-to-top {
    background: var(--dk7-cyan-deep);
    border-radius: var(--dk7-radius);
    box-shadow: 0 6px 18px rgba(14, 134, 184, 0.35);
}

.back-to-top:hover {
    background: var(--dk7-cyan);
}

.ticket-button {
    background: linear-gradient(180deg, #f09a3c 0%, var(--dk7-amber) 100%);
    border-radius: var(--dk7-radius);
    box-shadow: 0 8px 22px rgba(239, 139, 42, 0.4);
    font-weight: 700;
}

.ticket-button:hover {
    filter: brightness(1.08);
}

.ticket-button:active {
    filter: brightness(0.95);
}

/* --- Мобильная версия --- */
@media (max-width: 768px) {
    .menu-container {
        max-width: none;
    }

    .header-left {
        aspect-ratio: unset;
        min-height: 200px;
        padding: 28px 20px 26px;
        justify-content: flex-start;
        align-items: flex-end;
        background-image:
            linear-gradient(160deg,
                rgba(7, 20, 34, 0.96) 0%,
                rgba(11, 35, 64, 0.9) 55%,
                rgba(27, 176, 232, 0.3) 100%),
            linear-gradient(165deg, #071422 0%, #0b2340 55%, #123558 100%);
    }

    .header-main {
        min-height: 50px;
    }

    .header-text {
        max-width: 100%;
    }

    .header-text h1,
    .header-text .main-title,
    h1.main-title {
        letter-spacing: 0;
        font-size: clamp(22px, 6.5vw, 30px) !important;
    }

    .content {
        border-right: none;
        padding: 18px 16px;
    }

    .sidebar {
        border-left: none;
        border-top: 1px solid var(--dk7-border);
        background: var(--dk7-surface-alt);
    }

    .widget {
        margin: 10px 14px;
    }

    .menu > ul {
        justify-content: flex-start;
        background: var(--dk7-ink);
    }

    .menu li {
        display: block;
        align-items: stretch;
    }

    .menu a,
    .submenu a {
        color: #fff;
    }

    .menu > ul > li > a {
        border-bottom: none;
        text-align: left;
        margin-bottom: 0;
    }

    .menu > ul > li:hover > a,
    .menu li.active > a,
    .menu li.parent-active > a {
        color: var(--dk7-gold);
        border-bottom-color: transparent;
        background-color: rgba(27, 176, 232, 0.12);
    }

    .submenu {
        background: #06101c;
        border-top: none;
    }

    .submenu a:hover {
        background-color: var(--dk7-cyan-deep);
    }

    .container {
        border-radius: 0;
        box-shadow: none;
    }
}
