* {
    margin: 0;
    box-sizing: border-box;
    font-family: Verdana, Tahoma, "Segoe UI", Arial, sans-serif;
    /* font-family: Georgia, "Times New Roman", Times, serif; */
}

html, body, h1, h2, h3, h4, h5, h6, .widget, p {
    color: #000;
}

html, body {
    height: 100%;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
}

.content p {
    text-indent: 1.5em;
}

.content p:has(img) {
    text-indent: 0;
}

body {
    background-image: url('/templates/dark-violet-grunge-squares.jpg');
    background-size: cover;
    background-repeat: no-repeat;
    background-attachment: fixed;
    margin: 0;
}

.menu, .container, .footer {
    max-width: 1220px;
    display: flex;
    margin: 0 auto;
    width: 100%;
}

.fixed {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
}

.header-main {
    background-color: rgb(124, 124, 124);
    height: 265px;
}

.header-left {
    background-image: url('/templates/bg-header.png');
    background-repeat: no-repeat;
    background-size: 1280px auto;
    background-color: rgb(124, 124, 124);
    height: 100%;
}

.header-right {
    width: auto;
    height: 120px;
    display: flex;
    justify-content: right;
    align-items: flex-start;
    position: relative;
}

.header-right img {
    height: 100%;
    width: auto;
}

.header-text {
    position: absolute;
    bottom: -100px;
    right: 30px;
    text-align: right;
    white-space: nowrap;
    overflow: visible;
}

.header-text h1 {
    margin: 0;
    font-size: 45px;
    color: white;
    text-shadow: 3px 3px 10px black;
}

.header-text h2 {
    margin: 0;
    font-size: 14px;
    color: white;
    text-shadow: 3px 3px 10px black;
}

.menu-container {
    background-image: url("/templates/header4.png");
    width: 100%;
    position: relative;
    background-repeat: no-repeat;
    background-position: center bottom;
    z-index: 1000;
    /* box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2); */
    margin-top: -20px;
}

.footer-container {
    /* box-shadow: 0 -4px 8px rgba(0, 0, 0, 0.2); */
}

.full-content, .container {
    background-image: url('/templates/back4.png');
    background-size: 100% 100%;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: local;
    display: flex;
    flex-wrap: wrap;
    gap: 0px;
    /* max-width: 1200px; */
    /* margin: 20px auto; */
    padding: 46px 20px;
    flex: 1;
    min-height: 500px;
    position: relative;
    overflow: hidden;
    margin-top: -40px;
    margin-bottom: -38px;
}

.container a {
    text-decoration: none;
    color: #502099;
}

/* Блок после контейнера (настраиваемые секции из админки) */
.after-container-block {
    max-width: 1220px;
    margin: 0 auto;
    width: 100%;
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    padding: 30px;
    padding-top: 90px;
    box-sizing: border-box;
    /* background-color: #7635ab; */
    background-image: url(/templates/after_cont4.png);
    z-index: 1000;
    height: 280px;

}
.after-container-section {
    flex: 1;
    min-width: 200px;
}

.post {
    margin: 0 0 15px;
    border-bottom: 2px solid #8FB7C7;
    padding-bottom: 10px;
}

.post H2 {
    margin: 0 0 5px;
}

.pub-date {
    font-size: 12px;
    margin: 0 0 15px;
}

.content {
    flex: 1;
    min-width: 0;
    order: 1;
    padding: 15px 10px 15px 25px;
    overflow-y: auto;
    max-height: 100%;
    box-sizing: border-box;
}

.content > h2 {
    padding: 0 20px 10px;
}

.ticket-button {
    display: inline-block;
    padding: 20px 40px;
    font-size: 24px;
    font-weight: bold;
    color: #fff !important;
    background-color: #811919;
    border: none;
    border-radius: 10px;
    text-align: center;
    text-decoration: none;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.ticket-button:hover {
    background-color: #e64a19;
}

.ticket-button:active {
    background-color: #d84315;
}

details {
    border: 1px solid #ddd;
    border-radius: 5px;
    padding: 5px;
    margin-bottom: 10px;
}

summary {
    color: #b377ff;
    padding: 5px 10px;
    border: none;
    cursor: pointer;
    border-radius: 5px;
    font-weight: bold;
}

summary:hover {
    background-color: #b377ff;
    color: white;
}

details[open] summary {
    background-color: #b377ff;
    color: white;
}

footer {
    height: 50px;
    /* background-color: #333; */
    color: white;
    text-align: center;
    line-height: 50px;
    background-image: url(/templates/footer4.png);
    background-repeat: no-repeat;
    background-position: center top;
}

.form-control, .lightbox-close {
    font-family: "Arial", sans-serif;
}

.footer {
    position: relative;
    padding-top: 3px;
    padding-left: 20px;
}

.footer-logo {
    display: block;
    height: 105px;
    position: absolute;
    right: 0;
    bottom: 0;
}

.pagination {
    margin: 20px 0;
    text-align: center;
    display: flex;
    justify-content: center;
    gap: 4px;
}

.pagination .page-link {
    display: inline-block;
    padding: 8px 12px;
    background-color: #3f4141;
    color: #dfdfdf !important;
    border: 1px solid #4a4a4a;
    border-radius: 4px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.pagination .page-link:hover {
    background-color: #c12929;
    border-color: #811919;
}

.pagination .page-link.active {
    background-color: #c12929;
    border-color: #811919;
    color: #ffffff !important;
}

/* Основное меню */
.menu {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px 0 30px;
    position: relative;
    height: 157px;
    display: flex;
    align-items: center;
}

.menu::before {
    content: "";
    display: block;
    width: 230px;
    height: 105px;
    /* background-image: url("/templates/myzey.webp"); */
    background-size: contain;
    background-repeat: no-repeat;
    position: absolute;
    left: 0;
    top: 0;
}

.menu > ul {
    display: flex;
    padding: 0;
    margin: 0;
    list-style: none;
    align-items: center;
    margin-top: -56px;
}

.menu li {
    position: relative;
    list-style: none;
    text-shadow: 3px 3px 7px black;
    padding: 0;
    display: flex;
    align-items: center;
}

.menu a {
    display: flex;
    align-items: center;
    padding: 8px 14px;
    color: #471d0f;
    text-decoration: none;
    text-align: left;
    height: 100%;
}

.menu li:hover {
    background-color: #bd5ce1;
}

.submenu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background-color: #333;
    min-width: 280px;
    padding: 0;
    z-index: 1000;
}

.submenu ul {
    padding: 0;
}

.menu li:hover .submenu {
    display: block;
}

.submenu li {
    list-style: none;
    text-shadow: 3px 3px 7px black;
}

.submenu a {
    padding: 10px 20px;
    color: white;
    text-decoration: none;
    text-align: left;
}

.submenu a:hover {
    background-color: #777;
}

.menu li.active,
.menu li.active > a,
.submenu li.active,
.submenu li.active > a {
    background-color: #7635ab;
    color: #ffffff;
}

.menu li.parent-active,
.menu li.parent-active > a {
    background-color: #4e3070;
    color: #ffffff;
}

.menu li.active:hover,
.menu li.active > a:hover,
.menu li.parent-active:hover,
.menu li.parent-active > a:hover,
.submenu li.active:hover,
.submenu li.active > a:hover {
    background-color: #811919;
}

.home-post, .single-post {
    margin-bottom: 30px;
}

.sticky-post {
    border-left: 5px solid #623e92;
}

.post-header {
    margin-bottom: 15px;
    overflow: hidden;
}

.post-title h2 {
    margin: 0 0 10px 0;
    font-size: 24px;
    line-height: 1.3;
}

.post-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    font-size: 14px;
    color: #000;
}

.post-date, .post-category {
    padding: 4px 8px;
    display: inline-flex;
    align-items: center;
}

.single-post {
    line-height: 1.6;
}

.post-content {
    margin: 15px 0;
    line-height: 1.6;
    color: #dfdfdf;
    overflow: visible;
}

.post-footer {
    margin-top: 15px;
    padding-top: 10px;
    clear: both;
}

.read-more {
    display: inline-block;
    padding: 8px 16px;
    background-color: #c12929;
    color: #dfdfdf !important;
    border-radius: 4px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.read-more:hover {
    background-color: #811919;
    box-shadow: 0 0 10px rgba(125, 78, 184, 0.3);
}

.image-gallery {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
    border-radius: 8px;
    max-width: 100%;
    margin: 0 auto;
}

.wp-gallery {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: center;
}

.wp-gallery img {
    display: block;
    overflow: hidden;
    border: 2px solid transparent;
    border-radius: 5px;
    transition: transform 0.3s ease, border-color 0.3s ease;
}

.wp-gallery img:hover {
    transform: scale(1.05);
    border-color: #0073aa;
}

.wp-gallery img {
    display: block;
    max-width: 256px;
    object-fit: cover;
    border-radius: 5px;
}

.wp-gallery a:hover img {
    filter: brightness(0.9);
}

.inner-form {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.inner-form form {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
}

.inner-form input[type="text"],
.inner-form select {
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
    flex: 1;
}

.inner-form button {
    padding: 8px 16px;
    background-color: #333;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

.inner-form button:hover {
    background-color: #555;
}

.inner-form ul {
    list-style: none;
    padding: 0;
}

.inner-form ul li {
    margin: 10px 0;
    padding: 10px;
    background: #f5f5f5;
    border-radius: 4px;
}

.inner-form ul ul {
    margin-left: 20px;
}

a[href$=".pdf"]::before,
a[href$=".doc"]::before,
a[href$=".docx"]::before,
a[href$=".xls"]::before,
a[href$=".xlsx"]::before,
a[href$=".ppt"]::before,
a[href$=".pptx"]::before {
    content: "";
    display: inline-block;
    width: 16px;
    height: 16px;
    margin-right: 5px;
    background-size: contain;
    background-repeat: no-repeat;
    vertical-align: middle;
}

a[href$=".pdf"]::before {
    background-image: url('data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAzODQgNTEyIj48cGF0aCBmaWxsPSIjZmYwMDAwIiBkPSJNMzY5LjkgOTcuOUwyODYgMTRDMjc3IDUgMjY0LjgtLjEgMjUyLjEtLjFINDhDMjEuNSAwIDAgMjEuNSAwIDQ4djQxNmMwIDI2LjUgMjEuNSA0OCA0OCA0OGgyODhjMjYuNSAwIDQ4LTIxLjUgNDgtNDhWMTMxLjljMC0xMi43LTUuMS0yNS0xNC4xLTM0em0tMjIuNiAyMi43YzIuMSAyLjEgMy41IDQuNiA0LjIgNy40SDI1NlYzMi41YzIuOC43IDUuMyAyLjEgNy40IDQuMmw4My45IDgzLjl6TTMzNiA0ODBINDhjLTguOCAwLTE2LTcuMi0xNi0xNlY0OGMwLTguOCA3LjItMTYgMTYtMTZoMTc2djEwNGMwIDEzLjMgMTAuNyAyNCAyNCAyNGgxMDR2MzA0YzAgOC44LTcuMiAxNi0xNiAxNnptLTIyLTE3MXYtMjRjMC00LjQtMy42LTgtOC04SDc4Yy00LjQgMC04IDMuNi04IDh2MjRjMCA0LjQgMy42IDggOCA4aDIyOGM0LjQgMCA4LTMuNiA4LTh6bTAgNjR2LTI0YzAtNC40LTMuNi04LTgtOEg3OGMtNC40IDAtOCAzLjYtOCA4djI0YzAgNC40IDMuNiA4IDggOGgyMjhjNC40IDAgOC0zLjYgOC04em0wIDY0di0yNGMwLTQuNC0zLjYtOC04LThINzhjLTQuNCAwLTggMy42LTggOHYyNGMwIDQuNCAzLjYgOCA4IDhoMjI4YzQuNCAwIDgtMy42IDgtOHoiLz48L3N2Zz4=');
}

a[href$=".doc"]::before,
a[href$=".docx"]::before {
    background-image: url('data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAzODQgNTEyIj48cGF0aCBmaWxsPSIjMDA0NENDIiBkPSJNMzY5LjkgOTcuOUwyODYgMTRDMjc3IDUgMjY0LjgtLjEgMjUyLjEtLjFINDhDMjEuNSAwIDAgMjEuNSAwIDQ4djQxNmMwIDI2LjUgMjEuNSA0OCA0OCA0OGgyODhjMjYuNSAwIDQ4LTIxLjUgNDgtNDhWMTMxLjljMC0xMi43LTUuMS0yNS0xNC4xLTM0ek0yNDAgMjcxLjlsLTYwIDg5LjFoLTIxLjNsLTYwLTg5LjFWMjk2aDI4LjF2LTU2LjZsNDMuMyA2NC4yaDIuMmw0MS4yLTY0LjJWMjk2SDI0MHYtMjQuMXoiLz48L3N2Zz4=');
}

a[href$=".xls"]::before,
a[href$=".xlsx"]::before {
    background-image: url('data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAzODQgNTEyIj48cGF0aCBmaWxsPSIjMDA3MjNiIiBkPSJNMzY5LjkgOTcuOUwyODYgMTRDMjc3IDUgMjY0LjgtLjEgMjUyLjEtLjFINDhDMjEuNSAwIDAgMjEuNSAwIDQ4djQxNmMwIDI2LjUgMjEuNSA0OCA0OCA0OGgyODhjMjYuNSAwIDQ4LTIxLjUgNDgtNDhWMTMxLjljMC0xMi43LTUuMS0yNS0xNC4xLTM0ek0yNDAgMjcxLjlsLTYwIDg5LjFoLTIxLjNsLTYwLTg5LjFWMjk2aDI4LjF2LTU2LjZsNDMuMyA2NC4yaDIuMmw0MS4yLTY0LjJWMjk2SDI0MHYtMjQuMXoiLz48L3N2Zz4=');
}

a[href$=".ppt"]::before,
a[href$=".pptx"]::before {
    background-image: url('data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAzODQgNTEyIj48cGF0aCBmaWxsPSIjRDI0NzI2IiBkPSJNMzY5LjkgOTcuOUwyODYgMTRDMjc3IDUgMjY0LjgtLjEgMjUyLjEtLjFINDhDMjEuNSAwIDAgMjEuNSAwIDQ4djQxNmMwIDI2LjUgMjEuNSA0OCA0OCA0OGgyODhjMjYuNSAwIDQ4LTIxLjUgNDgtNDhWMTMxLjljMC0xMi43LTUuMS0yNS0xNC4xLTM0ek0yNDAgMjcxLjlsLTYwIDg5LjFoLTIxLjNsLTYwLTg5LjFWMjk2aDI4LjF2LTU2LjZsNDMuMyA2NC4yaDIuMmw0MS4yLTY0LjJWMjk2SDI0MHYtMjQuMXoiLz48L3N2Zz4=');
}

.sidebar {
    overflow-y: auto;
    max-height: 100%;
    border-left: 1px solid #999;
    width: 300px;
    order: 2;
}

.widget {
    padding: 25px 15px 15px 15px;
    margin-bottom: 20px;
}

.widget h3 {
    font-size: 20px;
    padding-bottom: 10px;
}

.widget ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.widget ul li {
    padding: 8px 0;
}

.widget ul li:last-child {
    border-bottom: none;
}

.widget a {
    text-decoration: none;
    transition: color 0.3s ease;
}

.widget a:hover {
    color: #b377ff;
}

.widget-search input[type="text"] {
    width: 100%;
    padding: 8px;
    background-color: #3a3d3d;
    border: 1px solid #4a4a4a;
    border-radius: 4px;
    color: #dfdfdf;
    margin-bottom: 10px;
}

.widget-search button {
    width: 100%;
    padding: 8px;
    background-color: #c12929;
    color: #dfdfdf;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.widget-search button:hover {
    background-color: #811919;
}

.widget-categories .category-count {
    float: right;
    background-color: #3a3d3d;
    padding: 2px 8px;
    border-radius: 10px;
    font-size: 12px;
    color: #dfdfdf;
}

.widget-recent-posts .post-date {
    display: block;
    font-size: 12px;
    color: #888;
    margin-top: 4px;
}

/* Стили для блока цитат */
.quote-block {
    margin: 40px 0 20px;
    padding: 20px;
    background-color: #cea261;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.random-quote blockquote {
    margin: 0;
    padding: 0 0 0 20px;
    border-left: 4px solid #ddd;
    font-style: italic;
}

.quote-text {
    font-size: 1.1em;
    line-height: 1.6;
    color: #444;
    margin-bottom: 10px;
}

.quote-author {
    display: block;
    text-align: right;
    font-weight: bold;
    font-style: normal;
    margin-top: 0px;
    color: #666;
}

.quote-category {
    margin-top: 0px;
    font-size: 0.9em;
    color: #888;
    text-align: right;
}

[data-visibility-mode="high-visibility"] .quote-block {
    background-color: #000;
    color: #fff;
    border: 2px solid #fff;
}

[data-visibility-mode="high-visibility"] .random-quote blockquote {
    border-left-color: #fff;
}

[data-visibility-mode="high-visibility"] .quote-text,
[data-visibility-mode="high-visibility"] .quote-author,
[data-visibility-mode="high-visibility"] .quote-category {
    color: #fff;
}

.post-content iframe,
.static-page iframe {
    max-width: 100%;
    width: 100%;
    height: 480px;
    display: block;
    margin: 1em auto;
}

.post-content p:has(iframe),
.static-page p:has(iframe) {
    margin: 0;
    padding: 0;
}

.home-post {
    position: relative;
    margin-bottom: 2em;
    clear: both;
    line-height: 1.6;
}

.home-post-image {
    margin: 0 auto;
    max-width: 100%;
    height: auto;
    overflow: hidden;
}

.home-post-image img {
    max-width: 100%;
    height: auto;
    border-radius: 5px;
    transition: opacity 0.3s;
}

.home-post-image img:hover {
    opacity: 0.8;
}

.single-post {
    position: relative;
    margin-bottom: 2em;
    clear: both;
    overflow: hidden;
}

.single-post .home-post-image {
    float: right;
    margin: 0 0 1em 1em;
    max-width: 250px;
    height: auto;
    overflow: hidden;
}

.single-post .home-post-image img {
    max-width: 100%;
    height: auto;
    border-radius: 5px;
    transition: opacity 0.3s;
}

.single-post .post-content {
    overflow: hidden;
}

.single-post:after {
    content: "";
    display: table;
    clear: both;
}

.post-header {
    overflow: hidden;
}

.single-post iframe {
    clear: both;
    display: block;
    margin: 1em auto;
    max-width: 100%;
}

.single-post p:has(iframe) {
    margin: 0;
    padding: 0;
}

.post-content-wrapper {
    position: relative;
    width: 100%;
}

.post-image-container {
    float: right;
    margin: 0 0 10px 20px;
    max-width: 40%;
}

.post-image-container img {
    width: 100%;
    height: auto;
    display: block;
}

.post-text {
    width: auto;
}

.post-text h1,
.post-text h2,
.post-text h3,
.post-text h4,
.post-text h5,
.post-text h6 {
    margin: 1em 0;
    width: auto;
}

.posts-grid, .gallery-posts-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: flex-start;
}

.grid-post, .gallery-post {
    flex: 0 0 calc(33.333% - 20px);
    display: flex;
    flex-direction: column;
    border: 1px solid #818181;
    border-radius: 8px;
    overflow: hidden;
    background: transparent;
    text-decoration: none;
    transition: box-shadow 0.3s ease;
}

.grid-post:hover, .gallery-post:hover {
    box-shadow: 0 0 15px rgba(101, 63, 149, 0.4);
    border-color: #c12929;
}

.grid-post-image, .gallery-post-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.grid-post-title, .gallery-post-title {
    padding: 10px;
    margin: 0;
    font-size: 1.2em;
    color: #9b0000;
}

.grid-post-description, .gallery-post-description {
    padding: 0 10px;
    margin-bottom: 10px;
}

.grid-read-more, .gallery-read-more {
    margin: 10px;
    padding: 5px 10px;
    background-color: #c12929;
    color: #dfdfdf !important;
    text-decoration: none;
    border-radius: 4px;
    text-align: center;
    margin-top: auto;
    transition: background-color 0.3s ease;
}

.grid-read-more:hover, .gallery-read-more:hover {
    background-color: #811919;
}

.gallery-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 20px;
    margin: 20px 0;
    width: 100% !important;
    clear: both;
    margin-top: calc(40vh + 20px);
    margin-bottom: calc(-40vh + 20px);
    position: relative;
}

.gallery-item {
    position: relative;
    padding-bottom: 100%;
}

.gallery-item img {
    position: absolute;
    width: 100%;
    height: 100%;
    object-fit: cover;
    cursor: pointer;
}

.post-text .gallery-container {
    float: none;
    width: 100% !important;
    clear: both;
}

.post-full {
    display: flow-root;
    width: 100%;
}

.wp-gallery {
    width: 100% !important;
    clear: both;
    float: none;
    margin-top: 20px;
}

.review-form-container {
    background: #c59756;
    padding: 25px;
    border-radius: 8px;
    margin-bottom: 30px;
    border: 1px solid #4a4a4a;
}

.review-form {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}

.review-form .form-group {
    margin-bottom: 20px;
}

.review-form .form-group:nth-child(1),
.review-form .form-group:nth-child(2) {
    flex: 1;
    min-width: 200px;
}

.review-form .form-group:nth-child(3) {
    width: 100%;
}

.review-form .form-group:nth-child(4) {
    width: 100%;
}

.review-form label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: #dfdfdf;
}

.review-form input,
.review-form textarea {
    width: 100%;
    padding: 10px;
    background-color: #dab073;
    border: 1px solid #4a4a4a;
    border-radius: 4px;
    color: #dfdfdf;
    font-size: 14px;
}

.review-form textarea {
    min-height: 120px;
    resize: vertical;
}

.review-item {
    background: #dab073;
    padding: 12px;
    margin-bottom: 20px;
    border: 1px solid #c59756;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.review-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.review-author {
    margin: 0;
    color: #000;
    font-size: 1.1em;
}

.review-date {
    font-size: 0.9em;
    padding: 4px 8px;
    border-radius: 4px;
}

.review-content {
    color: #000;
    line-height: 1.6;
}

.no-reviews {
    text-align: center;
    font-style: italic;
    margin: 30px 0;
}

.alert {
    padding: 15px;
    border-radius: 4px;
    margin-bottom: 20px;
}

.alert-success {
    background-color: #2f4f2f;
    border: 1px solid #3d663d;
    color: #98c098;
}

.alert-danger {
    background-color: #4f2f2f;
    border: 1px solid #663d3d;
    color: #c09898;
}

.menu-toggle {
    display: none;
    padding: 15px;
    background: none;
    border: none;
    cursor: pointer;
    z-index: 1001;
    color: white;
    align-items: center;
    gap: 10px;
}

.menu-toggle span:not(.menu-text) {
    display: block;
    width: 25px;
    height: 3px;
    background-color: #fff;
    margin: 5px 0;
    transition: 0.3s;
}

.menu-text {
    font-size: 16px;
    background: none !important;
    height: auto !important;
    margin: 0 0 0 5px !important;
}

h1.main-title {
    margin: 0 !important;
    font-size: 45px !important;
    color: white !important;
    text-shadow: 3px 3px 10px black !important;
}

iframe[src*="vk.com/video_ext.php"] {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    aspect-ratio: 16/9 !important;
    min-height: 240px !important;
}

@supports not (aspect-ratio: 16/9) {
    iframe[src*="vk.com/video_ext.php"] {
        height: 56.25vw !important;
    }
}

/*---------------------------------------------------------------------------------------*/
@media (min-width: 769px) {
    .menu-toggle {
        display: none;
    }

    .menu > ul {
        display: flex !important;
    }

    .menu li {
        position: relative;
    }

    .menu .submenu {
        position: absolute;
        top: 100%;
        left: 0;
        min-width: 300px;
        display: none;
        background: #333;
    }

    .menu li:hover > .submenu {
        display: block;
    }
}

/* Медиа-запрос для планшетов */
@media (max-width: 992px) {
    h1.main-title {
        font-size: 28px !important;
    }
    .header-text h2 {
        font-size: 9px !important;
    }
}

/* Адаптивность для мобильных устройств */
@media (max-width: 768px) {
    body {
        background-image: unset;
    }

    .menu {
        padding: 0;
    }

    .menu::before {
        left: unset;
        right: 50px;
        width: 150px;
    }

    .menu-toggle {
        display: flex;
        position: relative;
    }

    .menu > ul {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: #333;
        width: 100%;
        padding: 0;
        margin: 0;
        z-index: 1000;
    }

    .menu > ul.active {
        display: block !important;
    }

    .menu li {
        display: block;
        width: 100%;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }

    .menu li:last-child {
        border-bottom: none;
    }

    .menu a {
        padding: 15px 20px;
        display: block;
        color: #fff;
        text-decoration: none;
    }

    /* Стили для подменю в мобильной версии */
    .submenu {
        position: static !important;
        width: 100%;
        display: none;
        background: #444;
    }

    .has-submenu.active > .submenu {
        display: block !important;
    }

    .submenu a {
        padding-left: 30px;
    }

    /* Анимация для кнопки бургера */
    .menu-toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }

    .menu-toggle.active span:nth-child(2) {
        opacity: 0;
    }

    .menu-toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translate(5px, -5px);
    }

    .container {
        background-image: unset;
        background-color: #e2c594;
        flex-direction: column !important;
        padding: 0;
        overflow: visible;
        min-height: unset;
        margin: 0;
        flex-wrap: nowrap !important;
    }
    
    .content {
        width: 100%;
        max-width: none;
        order: 1;
        overflow: visible;
        padding: 15px;
        flex: none;
    }
    
    .sidebar {
        width: 100%;
        order: 2;
        border-left: none;
        border-top: 1px solid #999;
        flex: none;
    }
    
    .widget {
        margin-bottom: 15px;
        padding: 12px;
    }
    
    .wp-gallery img {
        max-width: 170px;
    }

    .header-right img {
        height: 50%;   
    }

    .home-post, .single-post {
        line-height: 1.3 !important;
    }

    h1.main-title {
        font-size: 22px !important;
    }

    .post-title h2 {
        font-size: 20px;
    }

    .post-meta {
        gap: 0px;
    }

    .home-post-image,
    .single-post .home-post-image {
        float: none;
        width: 100%;
        max-width: 100%;
        margin: 0 0 15px 0;
    }
    
    .home-post-image img,
    .single-post .home-post-image img {
        width: 100%;
        object-fit: cover;
    }

    .inner-form form {
        flex-direction: column;
    }
    
    .inner-form input[type="text"],
    .inner-form select,
    .inner-form button {
        width: 100%;
    }
    
    .inner-form ul ul {
        margin-left: 10px;
    }
    
    .grid-post, .gallery-post {
        flex: 0 0 calc(50% - 20px);
    }

    .footer {
        box-shadow: 0 -4px 8px rgba(0, 0, 0, 0.2);
    }

    .footer p {
        font-size: 10px;
        padding-left: 10px;
    }

    .footer-logo {
        height: 70px;
    }
}

@media (max-width: 480px) {
    h1.main-title {
        font-size: 18px !important;
    }

    .grid-post, .gallery-post {
        flex: 0 0 100%;
    }

    iframe[src*="vk.com/video_ext.php"] {
        height: 240px !important;
    }
}

/* Хлебные крошки */
.breadcrumbs {
    max-width: 1220px;
    margin: 0 auto;
    padding: 8px 12px;
    font-size: 0.9rem;
}
.breadcrumbs-list {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 0 6px;
}
.breadcrumbs-list li {
    display: inline-flex;
    align-items: center;
}
.breadcrumbs-list li + li::before {
    content: '→';
    margin-right: 6px;
    color: #666;
}
.breadcrumbs-list a {
    color: inherit;
    text-decoration: none;
}
.breadcrumbs-list a:hover {
    text-decoration: underline;
}
.breadcrumbs-current {
    color: #555;
}
.breadcrumbs-home {
    font-size: 1.1em;
}
.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
} 

/* Результаты поиска */
.search-results-info {
    margin-bottom: 1em;
    color: #555;
}
.search-results-list {
    list-style: none;
    margin: 0;
    padding: 0;
}
.search-result-item {
    margin-bottom: 1.2em;
    padding-bottom: 1em;
    border-bottom: 1px solid #e0e0e0;
    padding: 20px;
}
.search-result-item:last-child {
    border-bottom: none;
}
.search-result-title {
    font-weight: bold;
    font-size: 1.05rem;
}
.search-result-excerpt {
    margin: 0.4em 0 0.3em;
    font-size: 0.9rem;
    color: #444;
    line-height: 1.4;
}
.search-result-meta {
    font-size: 0.85rem;
    /* color: #666; */
}
.search-result-meta .post-category,
.search-result-meta .search-result-type {
    margin-left: 0.8em;
}
.search-sidebar-form input[type="text"] {
    width: 100%;
    max-width: 100%;
    padding: 8px 10px;
    box-sizing: border-box;
}
.search-sidebar-form button,
.search-sidebar-form input[type="submit"] {
    margin-top: 6px;
    padding: 8px 14px;
    cursor: pointer;
} 

/* Кнопка «Вверх» */
.back-to-top {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 9998;
    width: 44px;
    height: 44px;
    padding: 0;
    border: none;
    border-radius: 50%;
    background: rgba(92, 184, 92, 0.9);
    color: #fff;
    font-size: 22px;
    line-height: 1;
    cursor: pointer;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    transition: opacity 0.2s, background 0.2s;
}
.back-to-top:hover {
    background: rgba(76, 153, 76, 0.95);
    opacity: 1;
}
.back-to-top:focus {
    outline: 2px solid rgba(92, 184, 92, 0.8);
    outline-offset: 2px;
}
@media (max-width: 768px) {
    .back-to-top {
        bottom: 16px;
        right: 16px;
        width: 40px;
        height: 40px;
        font-size: 20px;
    }
}

/* Строка заголовка поста: заголовок слева, кнопка «Поделиться» справа */
.post-header-row {
    display: flex;
    /* align-items: center; */
    gap: 12px;
    flex-wrap: wrap;
}
.post-header-row .post-title {
    flex: 1;
    min-width: 0;
}
.share-buttons-wrap {
    flex-shrink: 0;
    margin-left: auto;
}
.share-btn {
    padding: 4px 10px;
    font-size: 0.85rem;
    border: 1px solid #92b46d;
    background: rgba(146, 180, 109, 0.15);
    color: inherit;
    border-radius: 4px;
    cursor: pointer;
    white-space: nowrap;
}
.share-btn:hover {
    background: rgba(146, 180, 109, 0.3);
}
.search-result-item .share-buttons-wrap {
    margin-left: 8px;
}
.search-result-item .search-result-title-row {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
}
.search-result-title-row .search-result-title {
    flex: 1;
    min-width: 0;
}
.gallery-post-title-row {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}
.gallery-post-title-row .gallery-post-title {
    flex: 1;
    min-width: 0;
    margin: 0;
}
.gallery-post-title-row .share-buttons-wrap {
    margin-left: auto;
}

/* Стили для слайдшоу */
.slideshow-container {
    position: relative;
    margin: 20px 0;
    overflow: hidden;
}

/* Спейсер для высоты на мобильных: скрыт на десктопе */
.slideshow-height-spacer {
    display: none;
    pointer-events: none;
}

/* На мобильных: ширина 100%, высота от первой картинки (естественные пропорции) */
@media (max-width: 768px) {
    .slideshow-container:not(.slideshow-fullscreen-active) {
        width: 100% !important;
        height: auto !important;
        min-height: 180px; /* если первый слайд — видео, спейсера нет */
    }
    .slideshow-container:not(.slideshow-fullscreen-active) .slideshow-height-spacer {
        display: block !important;
        width: 100%;
        height: auto;
        max-width: 100%;
        visibility: hidden;
        pointer-events: none;
    }
    .slideshow-container:not(.slideshow-fullscreen-active) .slideshow-wrapper {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
    }
}

.slideshow-link {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 5;
    display: block;
    text-decoration: none;
    cursor: pointer;
}

.slideshow-link:hover {
    text-decoration: none;
}

.slideshow-fullscreen-btn {
    position: absolute;
    bottom: 20px;
    right: 20px;
    background: rgba(255, 255, 255, 0.7);
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 18px;
    z-index: 15;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s ease;
    color: #333;
}

.slideshow-fullscreen-btn:hover {
    background: rgba(255, 255, 255, 0.9);
}

.slideshow-fullscreen-btn-caption {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    width: 32px;
    height: 32px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s ease;
    flex-shrink: 0;
}

.slideshow-fullscreen-btn-caption:hover {
    background: rgba(255, 255, 255, 0.4);
}

.slideshow-caption-fullscreen-wrapper {
    position: absolute;
    bottom: 0;
    right: 0;
    padding: 15px;
    z-index: 16;
    pointer-events: none;
}

.slideshow-caption-fullscreen-wrapper .slideshow-fullscreen-btn-caption {
    pointer-events: auto;
}

.slideshow-fullscreen-btn {
    z-index: 15;
}

/* Полноэкранный режим слайдшоу */
.slideshow-container.slideshow-fullscreen-active {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    /* Размеры устанавливаются через JavaScript с сохранением соотношения сторон */
    z-index: 99999;
    margin: 0;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-radius: 8px;
    box-shadow: 0 0 30px rgba(0, 0, 0, 0.8), inset 0 0 0 1px rgba(255, 255, 255, 0.1);
}

/* Затемнённый фон для полноэкранного режима */
.slideshow-fullscreen-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.85);
    z-index: 99998;
    cursor: pointer;
}

.slideshow-error {
    padding: 15px;
    background: #ffe6e6;
    border: 1px solid #f5b7b7;
    color: #8a1f1f;
    border-radius: 4px;
    margin: 20px 0;
}

.slideshow-wrapper {
    position: relative;
    width: 100%;
    height: 100%;
}

.slideshow-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity var(--slideshow-transition-duration, 500ms) ease-in-out;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #0a0a0a;
}

.slideshow-slide.active {
    opacity: 1;
}

/* Всегда сохраняем естественные пропорции — без искажения при разных форматах */
.slideshow-slide img,
.slideshow-slide .slideshow-image {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

.slideshow-slide video,
.slideshow-slide .slideshow-video {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.slideshow-slide .slideshow-video-iframe {
    width: 100%;
    height: 100%;
    border: none;
    display: block;
}

.slideshow-link .slideshow-video-iframe,
.slideshow-link .slideshow-video {
    pointer-events: none;
}


.slideshow-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.7);
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 20px;
    z-index: 15;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s ease;
}

.slideshow-arrow:hover {
    background: rgba(255, 255, 255, 0.9);
}

.slideshow-arrow-prev {
    left: 10px;
}

.slideshow-arrow-next {
    right: 10px;
}

.slideshow-dots {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 15;
}

.slideshow-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: none;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: background 0.3s ease;
}

.slideshow-dot.active {
    background: #fff;
}

.slideshow-dot:hover {
    background: rgba(255, 255, 255, 0.8);
}

.slideshow-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(0, 0, 0, 0.6);
    color: #fff;
    padding: 15px;
    z-index: 6;
    pointer-events: none;
}

.slideshow-caption h3 {
    margin: 0 0 5px 0;
    font-size: 1.2em;
}

.slideshow-caption p {
    margin: 0;
    font-size: 0.9em;
}

/* Адаптивность для мобильных устройств */
@media (max-width: 768px) {
    .slideshow-arrow {
        width: 30px;
        height: 30px;
        font-size: 16px;
    }
    
    .slideshow-arrow-prev {
        left: 5px;
    }
    
    .slideshow-arrow-next {
        right: 5px;
    }
    
    .slideshow-dots {
        bottom: 10px;
        left: 10px;
        right: 10px;
        transform: none;
        max-width: calc(100% - 20px);
        margin: 0 auto;
        flex-wrap: nowrap;
        overflow-x: auto;
        overflow-y: hidden;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        justify-content: flex-start;
        padding: 4px 0;
    }
    .slideshow-dots::-webkit-scrollbar {
        display: none;
    }
    
    .slideshow-dot {
        width: 10px;
        height: 10px;
        flex-shrink: 0;
    }
    
    .slideshow-caption {
        padding: 10px;
    }
    
    .slideshow-caption h3 {
        font-size: 1em;
    }
    
    .slideshow-caption p {
        font-size: 0.8em;
    }
}