/* ===== Responsive overrides for moiseeva_org_08_3 =====
   Десктоп (>1024px) не затрагивается: все правила — внутри media query.
   Базовые правила ниже только скрывают мобильный логотип на десктопе. */

.art-mobile-logo {
    display: none;
}

/* кнопка мобильного меню на десктопе не нужна */
.art-mobile-menu-btn {
    display: none;
}

/* стрелки подменю нужны только на мобильном */
.art-submenu-toggle {
    display: none;
}

/* картинки в записях не должны вылезать за контент (десктоп) */
.art-postcontent img {
    max-width: 100%;
    height: auto;
}

/* кнопка подгрузки по центру */
.theme-load-more-wrap {
    text-align: center;
    margin: 20px 0 8px 0;
}

/* background: fixed cathedral backdrop, header art is gone from the image (desktop only) */
@media (min-width: 1025px) {
    body {
        background-color: #2A2313;
        background-image: url('images/bg-main4.jpg');
        background-repeat: no-repeat;
        background-position: center -260px;
        background-size: 2400px auto;
        background-attachment: fixed;
    }
}

/* ===== Header: brand text, pipe strip and photo as real elements ===== */
.art-header {
    margin-top: 0 !important;
    height: 250px !important;
}

.art-header-inner {
    height: 250px;
}

.art-brand {
    position: absolute;
    left: 20px;
    top: 40px;
}

.art-brand-name,
.art-brand-name:link,
.art-brand-name:visited,
.art-brand-name:hover {
    display: inline-block;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 46px;
    font-weight: bold;
    line-height: 1;
    letter-spacing: 0.5px;
    color: #ffffff !important;
    text-decoration: none !important;
}

.art-brand-text {
    display: block;
    margin-top: 8px;
    font-family: Verdana, Geneva, sans-serif;
    font-size: 12px;
    letter-spacing: 0.2px;
    color: #f2ede6;
}

.art-header-bar {
    position: absolute;
    left: -8px;
    top: 163px;
    display: block;
    width: 1008px;
    height: 80px;
    border: 0;
}

.art-header-photo {
    position: absolute;
    left: 680px;
    top: 25px;
    display: block;
    width: 205px;
    height: 205px;
    border: 0;
}

/* gold divider before the seasons list */
.art-sidebar1 #nav_menu-3 {
    margin-top: 14px;
    padding-top: 12px;
    border-top: 1px solid #c9a24a;
}
/* календарь концертов в сайдбаре */
.theme-concert-calendar {
    font-size: 12px;
    line-height: 1.4;
    color: #e6dcc6;
}

.theme-concert-calendar .cal-nav {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    -webkit-box-pack: justify;
    -ms-flex-pack: justify;
    justify-content: space-between;
    margin: 0 0 6px;
}

.theme-concert-calendar .cal-nav a {
    color: #d9c9a3;
    text-decoration: none;
    padding: 0 6px;
    font-size: 18px;
    line-height: 1;
}

.theme-concert-calendar .cal-title {
    font-weight: bold;
    color: #f4e6dc;
}

.theme-concert-calendar table {
    width: 100%;
    border-collapse: collapse;
    text-align: center;
}

.theme-concert-calendar th {
    font-weight: normal;
    color: #b9a982;
    padding: 2px 1px;
    font-size: 11px;
}

.theme-concert-calendar td {
    padding: 2px 1px;
    height: 22px;
    vertical-align: middle;
}

.theme-concert-calendar .cal-has-event a {
    display: inline-block;
    min-width: 20px;
    height: 20px;
    line-height: 20px;
    border-radius: 10px;
    background: #c9a24a;
    color: #1c1710;
    font-weight: bold;
    text-decoration: none;
}

.theme-concert-calendar .cal-today {
    color: #ffffff;
    font-weight: bold;
}

.theme-concert-calendar .cal-events {
    list-style: none;
    margin: 8px 0 0;
    padding: 0;
    font-size: 12px;
}

.theme-concert-calendar .cal-events li {
    margin: 0 0 5px;
}

.theme-concert-calendar .cal-events .cal-day {
    display: inline-block;
    min-width: 16px;
    color: #c9a24a;
    font-weight: bold;
}

/* кнопка под записью: купить билет / источник */
.art-concert-cta {
    margin: 14px 0 4px 0;
}

.art-concert-cta a {
    display: inline-block;
    padding: 9px 20px;
    background: #c9a24a;
    color: #1c1710 !important;
    font-weight: bold;
    font-size: 14px;
    line-height: 1.2;
    text-decoration: none !important;
    border: 0;
}

.art-concert-cta a:hover,
.art-concert-cta a:focus {
    background: #dcb45c;
    color: #1c1710 !important;
    text-decoration: none !important;
}

/* прошедший концерт: тихая текстовая ссылка вместо кнопки */
.art-concert-source {
    margin: 12px 0 4px 0;
    font-size: 13px;
}

.art-concert-source a,
.art-concert-source a:link,
.art-concert-source a:visited {
    color: #c9a24a !important;
    text-decoration: none;
    border-bottom: 1px solid rgba(201, 162, 74, 0.45);
    padding-bottom: 1px;
}

.art-concert-source a:hover,
.art-concert-source a:focus {
    color: #dcb45c !important;
    border-bottom-color: #dcb45c;
}

/* дата концерта в записи: золотой бейдж + площадка строкой ниже */
.art-concert-date {
    margin: 0 0 14px 0;
    font-size: 13px;
    line-height: 1.4;
    color: #b9a982;
}

.art-concert-date .art-concert-when {
    display: inline-block;
    padding: 4px 11px;
    border-radius: 0;
    background: #c9a24a;
    color: #1c1710;
    font-weight: bold;
    font-size: 14px;
    line-height: 1.3;
}

.art-concert-date .art-concert-venue {
    display: block;
    margin-top: 6px;
    font-size: 12px;
    color: #b9a982;
}

.art-concert-date .art-concert-address {
    display: block;
    margin-top: 2px;
    font-size: 11px;
    color: #9c8f70;
}

/* пустые/битые картинки (например, остатки старых виджетов) не показываем */
img[src=""],
img:not([src]) {
    display: none !important;
}

@media (max-width: 1024px) {

    /* --- база --- */
    body {
        min-width: 0 !important;
        background-image: none !important;
        background-color: #2A2313 !important;
    }

    img,
    .art-postcontent img,
    .art-blockcontent img {
        max-width: 100%;
        height: auto;
    }

    iframe,
    embed,
    object,
    video,
    .art-postcontent iframe,
    .art-postcontent embed,
    .art-postcontent object {
        max-width: 100%;
    }

    table {
        max-width: 100%;
    }

    /* --- шапка: вместо фоновой картинки с баннером — тёмная плашка с текстом --- */
    div.art-header {
        width: auto;
        height: auto;
        margin: 0;
        z-index: 1;
        background: #1c1710;
    }

    .art-header-position {
        position: static;
    }

    .art-header-wrapper {
        width: auto;
        margin: 0;
    }

    .art-header-inner {
        position: relative;
        padding: 14px 16px 12px;
    }

    div.art-logo {
        display: none;
    }

    .art-mobile-logo {
        display: block;
        text-decoration: none !important;
        border: none !important;
    }

    .art-mobile-logo .art-mobile-logo-name {
        display: block;
        font-size: 26px;
        line-height: 1.1;
        font-weight: bold;
        color: #f7edd2;
        letter-spacing: 0.5px;
        font-family: Georgia, "Times New Roman", serif;
    }

    .art-mobile-logo .art-mobile-logo-text {
        display: block;
        margin-top: 3px;
        font-size: 12px;
        line-height: 1.3;
        color: #c9b98a;
    }

    /* --- меню: вертикальный список --- */
    .art-nav {
        width: auto;
        margin: 0;
        background: #2b2416;
        min-height: 0;
    }

    .art-nav:before,
    .art-nav:after {
        display: none;
    }

    .art-nav-outer {
        position: static;
        width: auto;
    }

    .art-nav-wrapper {
        width: auto;
        margin: 0;
    }

    .art-nav-inner {
        margin: 0;
    }

    ul.art-hmenu,
    ul.art-hmenu ul {
        display: block;
        visibility: visible !important;
        position: static;
        padding: 0;
        margin: 0;
        background: none;
        min-height: 0;
    }

    /* само меню скрыто, пока не нажат «бургер» */
    ul.art-hmenu {
        display: none;
        float: none;
        position: static;
        width: 100%;
    }

    body.art-menu-open ul.art-hmenu {
        display: block;
    }

    /* кнопка-бургер: только иконка в правом верхнем углу шапки */
    .art-mobile-menu-btn {
        display: block;
        position: absolute;
        top: 4px;
        right: 4px;
        width: 44px;
        height: 44px;
        padding: 0;
        margin: 0;
        background: none;
        border: 0;
        text-decoration: none !important;
        font-size: 0;
        line-height: 0;
        cursor: pointer;
        -webkit-tap-highlight-color: transparent;
    }

    .art-mobile-menu-btn:after {
        content: "\2630";
        position: absolute;
        left: 50%;
        top: 50%;
        -webkit-transform: translate(-50%, -50%);
        transform: translate(-50%, -50%);
        font-size: 24px;
        line-height: 1;
        color: #d9c9a3;
    }

    body.art-menu-open .art-mobile-menu-btn:after {
        content: "\2715";
        font-size: 19px;
    }

    .art-mobile-menu-btn:hover,
    .art-mobile-menu-btn:focus,
    .art-mobile-menu-btn:active {
        text-decoration: none;
    }

    ul.art-hmenu li {
        float: none;
        display: block;
        width: auto;
        position: static;
        margin-left: 0 !important;
    }

    /* убрать декоративные псевдо-элементы пунктов меню (серые плашки) */
    ul.art-hmenu > li > a:before,
    ul.art-hmenu > li > a:after,
    ul.art-hmenu > li:before,
    ul.art-hmenu > li > a:hover:before,
    ul.art-hmenu > li > a:hover:after {
        display: none !important;
        background: none !important;
        content: none !important;
    }

    ul.art-hmenu a,
    ul.art-hmenu a:link,
    ul.art-hmenu a:visited,
    ul.art-hmenu a:hover,
    .art-hmenu a {
        background: none !important;
        background-image: none !important;
        white-space: normal !important;
        height: auto !important;
        line-height: 1.35 !important;
    }

    ul.art-hmenu li > a,
    ul.art-hmenu li > a:link,
    ul.art-hmenu li > a:visited {
        display: block;
        padding: 11px 16px;
        border-bottom: 1px solid #3a3122;
        font-size: 14px;
        text-align: left;
    }

    ul.art-hmenu li li > a {
        padding: 9px 16px 9px 32px;
        font-size: 13px;
    }

    ul.art-hmenu li li li > a {
        padding-left: 48px;
    }

    ul.art-hmenu li > ul,
    ul.art-hmenu li li > ul {
        display: none;
        position: static;
        visibility: visible;
        background: transparent;
        margin: 0;
        padding: 0;
    }

    ul.art-hmenu li.art-submenu-open > ul {
        display: block;
    }

    /* пункты с подменю: место под стрелку */
    ul.art-hmenu li {
        position: relative;
    }

    ul.art-hmenu li.art-has-submenu > a {
        padding-right: 52px;
    }

    /* кнопка-стрелка сворачивания подменю */
    .art-submenu-toggle {
        display: block;
        position: absolute;
        right: 0;
        top: 0;
        width: 48px;
        height: 44px;
        padding: 0;
        margin: 0;
        background: none;
        border: 0;
        cursor: pointer;
        -webkit-tap-highlight-color: transparent;
    }

    .art-submenu-toggle span {
        display: block;
        width: 0;
        height: 0;
        margin: 0 auto;
        border-left: 5px solid transparent;
        border-right: 5px solid transparent;
        border-top: 6px solid #d9c9a3;
        -webkit-transition: -webkit-transform 0.2s ease;
        transition: transform 0.2s ease;
    }

    ul.art-hmenu li.art-submenu-open > .art-submenu-toggle span {
        -webkit-transform: rotate(180deg);
        transform: rotate(180deg);
    }

    /* --- контент --- */
    .art-box.art-sheet,
    .art-sheet {
        width: auto;
        max-width: 100%;
        margin: 8px;
    }

    .art-sheet-body {
        padding: 8px;
    }

    .art-layout-wrapper {
        margin: 0;
    }

    .art-content-layout,
    .art-content-layout-row {
        display: block;
        width: auto;
        table-layout: auto;
    }

    .art-layout-cell {
        display: block;
        width: auto !important;
        float: none;
    }

    .art-content-layout .art-sidebar1 {
        width: auto !important;
    }

    .art-content-layout .art-sidebar1:before {
        display: none;
    }

    .art-post {
        margin-bottom: 14px;
    }

    /* посты: естественная пропорция; ограничение — только для очень высоких картинок */
    .art-postcontent img {
        float: none !important;
        display: block;
        width: 100% !important;
        max-width: 100%;
        height: auto !important;
        max-height: 70vh;
        -o-object-fit: contain;
        object-fit: contain;
        background: #15110b;
        margin: 0 0 12px 0 !important;
    }

    /* галереи: не трогаем плитку */
    .rl-gallery img,
    .art-postcontent .rl-gallery img {
        display: inline-block !important;
        float: none !important;
        width: auto !important;
        max-width: 100% !important;
        max-height: none !important;
        height: auto !important;
        -o-object-fit: fill;
        object-fit: fill !important;
        margin: 0 !important;
    }

    .art-postcontent {
        padding-left: 0;
        padding-right: 0;
        overflow-wrap: break-word;
        word-wrap: break-word;
    }

    .art-postcontent p,
    .art-postcontent li {
        font-size: 15px;
        line-height: 1.5;
        text-align: left !important;
    }

    /* сайдбар под контентом */
    .art-content-layout .art-sidebar1 {
        margin-top: 16px;
    }

    /* календарь концертов: на широком экране не растягиваем сетку */
    .theme-concert-calendar {
        max-width: 340px;
        margin: 0 auto 10px auto;
    }

    .theme-concert-calendar table {
        table-layout: fixed;
    }

    .theme-concert-calendar th,
    .theme-concert-calendar td {
        padding: 2px 0;
    }

    /* --- календарь и блоки сайдбара --- */
    .art-blockcontent table,
    #wp-calendar,
    .ajax-calendar {
        width: 100% !important;
        font-size: 12px;
    }

    .art-blockcontent table td,
    .art-blockcontent table th {
        padding: 2px 1px;
    }

    /* --- подвал --- */
    .art-footer,
    .art-footer-body {
        width: auto;
    }

    .art-footer-body {
        padding: 10px;
    }

    .art-footer-text {
        font-size: 12px;
    }
}

/* --- очень узкие экраны --- */
@media (max-width: 480px) {

    .art-mobile-logo .art-mobile-logo-name {
        font-size: 21px;
    }

    .art-mobile-logo .art-mobile-logo-text {
        font-size: 11px;
    }

    ul.art-hmenu li > a {
        padding: 10px 12px;
    }

    .art-box.art-sheet,
    .art-sheet {
        margin: 4px;
    }

    .art-sheet-body {
        padding: 6px;
    }

    .art-post h2,
    .art-postcontent h2,
    h2.art-postheader {
        font-size: 20px !important;
        line-height: 1.25 !important;
    }

    .art-postcontent {
        font-size: 15px;
        line-height: 1.5;
    }
}

/* ===== Шапка на мобильном: остаётся прежняя тёмная полоса ===== */
@media (max-width: 1024px) {
    .art-header {
        height: auto !important;
        margin-top: 0 !important;
    }

    .art-header-inner {
        height: auto;
    }

    .art-brand,
    .art-header-bar,
    .art-header-photo {
        display: none !important;
    }
}
/* Список сезонов на мобильном — в несколько колонок */
@media (max-width: 1024px) {
    .art-sidebar1 #nav_menu-3 ul.menu {
        columns: 2;
        column-gap: 18px;
    }

    .art-sidebar1 #nav_menu-3 ul.menu li {
        break-inside: avoid;
        margin: 0 0 6px;
    }
}

@media (min-width: 600px) and (max-width: 1024px) {
    .art-sidebar1 #nav_menu-3 ul.menu {
        columns: 3;
        column-gap: 20px;
    }
}