/* ==========================================================================
   Рязанская филармония — главная страница
   Mobile-first не используется намеренно: макет рисовался под десктоп,
   поэтому ниже сначала десктоп, затем media-запросы для планшета и телефона.
   ========================================================================== */

/* ---------- Переменные и сброс ---------- */
:root {
    --ink: #111111;
    --paper: #ffffff;
    --taupe: #9c866e;          /* коричневато-бежевый: подзаголовки, «выездные» */
    --taupe-bg: #a49079;       /* плашка-уведомление */
    --slate: #4b5772;          /* сине-серый: «филармонические», логотип */
    --red: #c1272d;
    --red-dark: #9f1d22;
    --line: #111111;
    --muted: #8a8176;
    --ph-a: #ece8e2;
    --ph-b: #e3ded6;

    --serif: "PT Serif", Georgia, "Times New Roman", serif;
    --sans: "Open Sans", "Segoe UI", Arial, sans-serif;

    --gutter: 32px;
    --maxw: 1280px;
    --ease: cubic-bezier(.22, .61, .36, 1);
}

*, *::before, *::after { box-sizing: border-box; }

html {
    font-size: 100%;
    -webkit-text-size-adjust: 100%;
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: var(--sans);
    font-size: 1rem;       /* 15px */
    line-height: 1.5;
    color: var(--ink);
    background: var(--paper);
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

img { max-width: 100%; height: auto; display: block; }
ul, ol { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, p { margin: 0; }
a { color: inherit; text-decoration: none; transition: color .25s var(--ease), background-color .25s var(--ease), border-color .25s var(--ease), opacity .25s var(--ease); }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }

a:focus-visible, button:focus-visible, input:focus-visible {
    outline: 2px solid var(--slate);
    outline-offset: 3px;
}

.container {
    width: 100%;
    max-width: calc(var(--maxw) + var(--gutter) * 2);
    margin: 0 auto;
    padding: 0 var(--gutter);
}

.sr-only {
    position: absolute !important;
    width: 1px; height: 1px;
    margin: -1px; padding: 0; border: 0;
    overflow: hidden; clip: rect(0 0 0 0);
    white-space: nowrap;
}

.skip-link {
    position: absolute; left: 16px; top: -60px; z-index: 1000;
    background: var(--ink); color: #fff; padding: 10px 16px;
    transition: top .2s var(--ease);
}
.skip-link:focus { top: 8px; }

/* ---------- Заглушки под изображения ---------- */
.ph {
    position: relative;
    display: flex; align-items: center; justify-content: center;
    width: 100%; height: 100%; min-height: 80px;
    overflow: hidden;
    background:
        linear-gradient(135deg, rgba(75, 87, 114, .10), rgba(156, 134, 110, .16)),
        repeating-linear-gradient(135deg, var(--ph-a) 0 14px, var(--ph-b) 14px 28px);
}
.ph::after {
    content: "";
    position: absolute; left: 50%; top: 50%;
    width: clamp(24px, 16%, 44px); aspect-ratio: 1;
    transform: translate(-50%, -50%);
    opacity: .5;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%239c866e' stroke-width='1.3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M9 18V5l11-2v13'/%3E%3Ccircle cx='6.5' cy='18' r='2.5'/%3E%3Ccircle cx='17.5' cy='16' r='2.5'/%3E%3C/svg%3E") center / contain no-repeat;
}
.vid-frame .ph::after { display: none; }
.vid-frame .ph span { padding: 6px 12px; font-size: .8125rem; color: var(--muted); background: rgba(255, 255, 255, .72); }

.media { width: 100%; height: 100%; object-fit: cover; }

/* ---------- Кнопки и мелкие элементы ---------- */
.btn {
    display: inline-block;
    padding: 11px 26px;
    background: var(--red);
    color: #fff;
    font-size: .8125rem;
    font-weight: 600;
    letter-spacing: .08em;
    line-height: 1.4;
    text-transform: uppercase;
    text-align: center;
    border: 1px solid var(--red);
    cursor: pointer;
    transition: background-color .3s var(--ease), border-color .3s var(--ease), color .3s var(--ease), transform .3s var(--ease);
}
.btn:hover { background: var(--red-dark); border-color: var(--red-dark); transform: translateY(-1px); }
.btn:active { transform: translateY(0); }

.btn--outline { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn--outline:hover { background: var(--ink); border-color: var(--ink); color: #fff; }

.btn--ghost { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .7); }
.btn--ghost:hover { background: #fff; border-color: #fff; color: var(--ink); }

.btn--wide { width: 100%; padding: 13px 22px; }

/* Нет билетов / Скоро в продаже */
.btn--disabled,
.btn--disabled:hover {
    background: #dcd8d2;
    border-color: #dcd8d2;
    color: #8d877e;
    cursor: not-allowed;
    transform: none;
}
.free { max-width: 220px; font-size: .9375rem; line-height: 1.3; letter-spacing: .03em; text-transform: uppercase; }

.age { font-size: .875rem; color: var(--ink); }

.more {
    display: inline-block;
    font-size: .875rem;
    font-weight: 600;
    letter-spacing: .06em;
    line-height: 1.3;
    text-transform: uppercase;
}
button.more { cursor: pointer; padding: 0; }
.more::after { content: " \2197"; display: inline-block; transition: transform .3s var(--ease); }
.more.is-open::after { transform: rotate(180deg); }
.more:hover { color: var(--taupe); }
.more:hover::after { transform: translate(2px, -2px); }

.icon-btn {
    display: inline-flex; align-items: center; justify-content: center;
    width: 34px; height: 34px; flex: 0 0 auto;
    color: var(--ink);
}
.icon-btn svg {
    width: 27px; height: 27px;
    fill: none; stroke: currentColor; stroke-width: 1.3;
    stroke-linecap: round; stroke-linejoin: round;
}
.icon-btn:hover { color: var(--taupe); }

.icon-btn--search { position: relative; width: 38px; height: 38px; }
.icon-btn--search .ico {
    position: absolute; top: 50%; left: 50%;
    width: 30px; height: 30px; margin: -15px 0 0 -15px;
    transition: opacity .3s var(--ease), transform .45s var(--ease);
}
.icon-btn--search .ico--close { opacity: 0; transform: rotate(-90deg) scale(.5); }
.icon-btn--search.is-open .ico--search { opacity: 0; transform: rotate(90deg) scale(.5); }
.icon-btn--search.is-open .ico--close { opacity: 1; transform: none; }

/* ---------- Плашка-уведомление ---------- */
.notice {
    width: 57%;
    max-width: 820px;
    margin: 0 auto;
    padding: 16px 24px;
    background: var(--taupe-bg);
    color: #fff;
    font-size: .8125rem;
    letter-spacing: .07em;
    text-align: center;
    text-transform: uppercase;
}

/* ---------- Шапка ---------- */
/* На ПК шапка «растворяется» (display: contents), а полоса меню .header__sticky липнет к верху экрана.
   На телефоне и планшете липнет вся шапка целиком (логотип + бургер). */
.site-header { display: contents; }
.header__top { padding-top: 50px; }
.header__sticky { position: sticky; top: 0; z-index: 40; background: var(--paper); transition: box-shadow .3s var(--ease); }
.header__sticky.is-stuck { box-shadow: 0 6px 18px rgba(0, 0, 0, .08); }
html { scroll-padding-top: calc(var(--stick-h, 70px) + 12px); }

.header__top {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 24px;
}

.logo { display: inline-block; line-height: 0; }
.logo img { display: block; height: 96px; width: auto; max-width: 100%; transition: opacity .3s var(--ease); }
.logo:hover img { opacity: .85; }

.header__tools { display: flex; align-items: center; gap: 12px; padding-bottom: 2px; }

.phone { font-size: .9375rem; white-space: nowrap; }
/* ширина = ширине кнопки «Купить билет» ниже, чтобы левые края совпадали */
.phone--desktop { display: block; width: 190px; font-size: 1.3rem; line-height: 1.2; }
.phone strong { font-weight: 700; }
.phone:hover { color: var(--taupe); }
.phone--mobile { display: none; }

.burger { display: none; }

.header__panel { margin-top: 14px; padding: 14px 0; }

.header__bar {
    display: flex;
    align-items: center;
    gap: 14px;
}
.header__actions { display: flex; align-items: center; gap: 12px; margin-left: auto; }
.header__actions .btn { width: 190px; padding: 13px 10px; font-size: .8125rem; }

.nav ul { display: flex; border: 1px solid var(--ink); }
.nav li + li { border-left: 0; }
.nav a {
    display: block;
    padding: 12px 26px;
    font-size: .9375rem;
    line-height: 1.3;
    letter-spacing: .02em;
    text-transform: uppercase;
    white-space: nowrap;
    transition: background-color .3s var(--ease), color .3s var(--ease);
}
.nav a.is-current { color: var(--taupe); }
.nav a:hover, .nav a:focus-visible, .nav a.is-current:hover { background: var(--ink); color: #fff; }

/* Строка поиска */
.search-panel { display: none; padding: 16px 0 20px; }
.search-panel form { display: flex; gap: 10px; }
.search-panel input {
    flex: 1;
    padding: 10px 14px;
    font: inherit;
    border: 1px solid var(--ink);
    border-radius: 0;
    background: #fff;
}
.search-panel .btn { padding: 10px 26px; }

/* ---------- Слайдер ---------- */
.hero { padding-top: 40px; }
/* нижняя линия — ровно по ширине контента, а не на весь экран */
.hero > .container { position: relative; padding-bottom: 64px; }
.hero > .container::after {
    content: "";
    position: absolute;
    left: var(--gutter);
    right: var(--gutter);
    bottom: 0;
    height: 1px;
    background: var(--line);
}

.hero__stage { position: relative; }
.hero__slides { display: grid; overflow: hidden; transition: height .9s cubic-bezier(.45, .05, .2, 1); }

/* Слайды сменяются движением: уходящий уезжает в сторону, новый заезжает с другой (классы ставит main.js) */
.hero__slide {
    grid-area: 1 / 1;
    align-self: start;   /* у каждого слайда своя высота; общую высоту задаёт main.js */
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 3.2%;
    visibility: hidden;
    transform: translateX(100%);
    transition: transform 1.2s cubic-bezier(.45, .05, .2, 1), visibility 0s linear 1.2s;
}
.hero__slide.is-left { transform: translateX(-100%); }
.hero__slide.is-active {
    visibility: visible;
    transform: none;
    transition: transform 1.2s cubic-bezier(.45, .05, .2, 1), visibility 0s linear 0s;
}
.hero__slide.is-instant { transition: none !important; }

/* Слайд из одной картинки — во всю ширину */
.hero__slide--full { grid-template-columns: 1fr; }
.hero__slide--full .hero__media { aspect-ratio: 2268 / 1000; align-self: stretch; }
.hero__slide--full .hero__media > a { position: absolute; top: 0; left: 0; width: 100%; height: 100%; display: block; }
.hero__slide--full .hero__media > .media, .hero__slide--full .hero__media > .ph { position: absolute; top: 0; left: 0; }

.hero__text { display: flex; flex-direction: column; align-items: flex-start; min-width: 0; }
.hero__title {
    font-family: var(--serif);
    font-weight: 400;
    font-size: clamp(1.75rem, 2.9vw, 2.75rem);
    line-height: 1.12;
}
.hero__title a:hover { color: var(--slate); }
.hero__desc { margin-top: 18px; font-size: .9375rem; line-height: 1.55; color: var(--taupe); }
.hero__text .more { margin-top: 12px; }
.hero__text .age { margin-top: 12px; }
.hero__foot { margin-top: auto; padding-top: 24px; }
.hero__date { font-size: 1rem; }
.hero__date strong { font-weight: 700; }
.hero__tickets { margin-top: 14px; }

.hero__media { position: relative; aspect-ratio: 1200 / 820; overflow: hidden; background: var(--ph-a); }
.hero__media .ph, .hero__media .media {
    transform: scale(1.05);
    transition: transform 7s var(--ease);
}
.hero__slide.is-active .hero__media .ph,
.hero__slide.is-active .hero__media .media { transform: scale(1); }

/* текст слегка «въезжает» при смене слайда */
.hero__text > * { transform: translateY(10px); transition: transform .9s var(--ease), color .25s var(--ease); }
.hero__slide.is-active .hero__text > * { transform: none; }

.hero__dots {
    position: absolute;
    right: 24px;
    bottom: 22px;
    display: flex;
    gap: 9px;
    z-index: 3;
}
.hero__dot {
    width: 11px; height: 11px;
    border-radius: 50%;
    background: rgba(255, 255, 255, .55);
    box-shadow: 0 0 0 1px rgba(0, 0, 0, .15);
    transition: background-color .3s var(--ease), transform .3s var(--ease);
}
.hero__dot:hover { background: rgba(255, 255, 255, .85); }
.hero__dot.is-active { background: #fff; transform: scale(1.25); }

/* ---------- Календарь + Рекомендуем ---------- */
.main-grid {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 3.2%;
    padding-top: 22px;
    padding-bottom: 8px;
    align-items: start;
}

.col-cal { padding-top: 6px; }
.cal-wrap { transition: opacity .25s var(--ease); }
.cal-wrap.is-loading { opacity: .35; pointer-events: none; }

.cal__head {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    margin-bottom: 16px;
}
.cal__title { min-width: 130px; text-align: center; font-size: .9375rem; font-weight: 700; letter-spacing: .02em; text-transform: uppercase; }
.cal__year { font-weight: 400; color: var(--muted); letter-spacing: 0; }

.cal__nav {
    position: relative;
    width: 22px; height: 22px;
    display: inline-block;
}
.cal__nav::before {
    content: "";
    position: absolute; top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    border-style: solid;
    transition: border-color .25s var(--ease), transform .25s var(--ease);
}
.cal__nav--prev::before { border-width: 5px 7px 5px 0; border-color: transparent var(--ink) transparent transparent; }
.cal__nav--next::before { border-width: 5px 0 5px 7px; border-color: transparent transparent transparent var(--ink); }
.cal__nav--prev:hover::before { border-right-color: var(--taupe); transform: translate(-65%, -50%); }
.cal__nav--next:hover::before { border-left-color: var(--taupe); transform: translate(-35%, -50%); }

.cal__grid { width: 100%; border-collapse: separate; border-spacing: 0 5px; table-layout: fixed; }
.cal__grid th { padding-bottom: 8px; font-size: .8125rem; font-weight: 400; color: var(--muted); text-align: center; }
.cal__grid td { padding: 0; text-align: center; }

.cal__day {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px; height: 34px;
    border-radius: 50%;
    font-size: .875rem;
    line-height: 1;
    border: 1px solid transparent;
    transition: background-color .25s var(--ease), color .25s var(--ease), border-color .25s var(--ease), transform .25s var(--ease);
}
.cal__day.is-out { color: #b9b3aa; }
.cal__day.is-today { font-weight: 700; text-decoration: underline; text-underline-offset: 4px; }

a.cal__day--phil { background: var(--slate); border-color: var(--slate); color: #fff; }
a.cal__day--out  { background: var(--taupe); border-color: var(--taupe); color: #fff; }
a.cal__day--ext  { background: #fff; border-color: var(--ink); color: var(--ink); }
a.cal__day.is-out { opacity: .6; color: inherit; }
a.cal__day--phil.is-out, a.cal__day--out.is-out { color: #fff; }
a.cal__day:hover { transform: scale(1.12); }
a.cal__day--ext:hover { background: var(--ink); color: #fff; }

.legend { margin-top: 22px; display: grid; gap: 10px; font-size: .8125rem; }
.legend li { display: flex; align-items: center; gap: 10px; }
.dot { width: 11px; height: 11px; border-radius: 50%; border: 1px solid var(--ink); flex: 0 0 auto; }
.dot--phil { background: var(--slate); border-color: var(--slate); }
.dot--out  { background: var(--taupe); border-color: var(--taupe); }
.dot--ext  { background: #fff; }

.h-rec { font-size: 1rem; font-weight: 700; padding: 6px 0 14px; }

.card {
    display: grid;
    grid-template-columns: 48% 1fr;
    gap: 5%;
    padding: 22px 0;
    border-top: 1px solid var(--line);
}
.card:last-child { border-bottom: 1px solid var(--line); }
.col-rec .h-rec + .card { border-top: 0; padding-top: 0; }

.card__media { display: block; aspect-ratio: 1 / 1; overflow: hidden; background: var(--ph-a); }
.card__media .ph, .card__media .media { transition: transform .8s var(--ease); }
.card:hover .card__media .ph, .card:hover .card__media .media { transform: scale(1.05); }

.card__body { display: flex; flex-direction: column; min-width: 0; }
.card__meta { display: flex; justify-content: space-between; gap: 12px; font-size: .8125rem; }
.card__date { font-weight: 700; }
.card__hall { margin-top: 6px; font-size: .8125rem; }
.card__title {
    margin-top: 14px;
    font-family: var(--sans);
    font-weight: 700;
    font-size: clamp(1.25rem, 1.9vw, 1.75rem);
    line-height: 1.22;
}
.card__title a:hover { color: var(--slate); }
.card__sub { margin-top: 6px; font-size: .8125rem; line-height: 1.5; color: var(--taupe); }

.card__bottom { margin-top: auto; padding-top: 18px; }
.card__note { margin-bottom: 18px; font-size: .875rem; line-height: 1.5; }
.card__actions { display: flex; align-items: center; justify-content: space-between; gap: 12px; }

/* ---------- Новости ---------- */
.news { padding-top: 72px; }
.sec-title {
    margin: 0 0 34px;
    padding-bottom: 14px;
    font-family: var(--sans);
    font-weight: 400;
    font-size: clamp(1.9rem, 3vw, 2.6rem);
    line-height: 1.15;
    border-bottom: 3px solid var(--ink);
}

.news__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 3.2%;
    align-items: start;
}
.news__img { display: block; aspect-ratio: 1.6 / 1; overflow: hidden; background: var(--ph-a); }
.news__img .ph, .news__img .media { transition: transform .8s var(--ease); }
.news__grid:hover .news__img .ph, .news__img:hover .media, .news__img:hover .ph { transform: scale(1.04); }

.news__main h3 { font-family: var(--sans); font-weight: 700; font-size: 1.5rem; line-height: 1.25; }
.news__main h3 a:hover { color: var(--slate); }
.news__main p { margin-top: 12px; font-size: .8125rem; line-height: 1.6; color: var(--taupe); }
.news__main .more { margin-top: 10px; }

.news__side ul { display: grid; gap: 16px; margin-bottom: 22px; }
.news__side time { display: block; font-size: .8125rem; font-weight: 700; }
.news__side li a { display: block; font-size: .875rem; line-height: 1.45; }
.news__side li a:hover { color: var(--taupe); }

/* ---------- Баннеры ---------- */
.banners { display: flex; flex-wrap: wrap; gap: 12px; padding-top: 88px; padding-bottom: 72px; }
.banners__item { display: block; overflow: hidden; transition: opacity .3s var(--ease), transform .3s var(--ease); }
.banners__item:hover { opacity: .88; transform: translateY(-2px); }
.ph--banner-a { width: 340px; height: 130px; }
.ph--banner-b { width: 165px; height: 130px; }
.banners__item img.ph--banner-a { object-fit: cover; }
.banners__item img.ph--banner-b { object-fit: cover; }

/* ---------- Подвал ---------- */
.site-footer { background: #000; color: #fff; padding: 56px 0 22px; }
.footer__grid {
    display: grid;
    grid-template-columns: 1fr 1.3fr 1fr;
    gap: 40px;
    align-items: start;
}

.logo__mark--footer { display: block; margin-bottom: 18px; line-height: 0; }
.logo__mark--footer img { display: block; height: 92px; width: auto; }
.footer__about p { max-width: 250px; font-size: .8125rem; line-height: 1.6; }
.footer__about p + p { margin-top: 12px; }

.footer__nav ul { display: grid; gap: 14px; }
.footer__nav a { font-size: .875rem; font-weight: 700; }
.footer__nav a:hover, .footer__phone:hover { color: var(--taupe); }

.footer__label { font-size: .8125rem; color: #bdb6ab; }
.footer__phone { display: inline-block; margin-bottom: 20px; font-size: 1.35rem; line-height: 1.3; }

.socials { display: flex; gap: 12px; margin-bottom: 28px; }
.socials a {
    display: inline-flex; align-items: center; justify-content: center;
    width: 30px; height: 30px; border-radius: 50%;
    background: #fff; color: #000;
    font-size: .8125rem; text-transform: lowercase;
    transition: background-color .3s var(--ease), transform .3s var(--ease);
}
.socials a:hover { background: var(--taupe); transform: translateY(-2px); }

.footer__bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 24px; margin-top: 56px; padding-top: 16px; border-top: 1px solid rgba(255, 255, 255, .25); font-size: .75rem; color: #bdb6ab; }

/* ---------- Окно подписки (jQuery UI Dialog) и подсказки календаря ---------- */
.ui-widget.ui-widget-content.subscribe-dialog {
    padding: 0;
    border: 0;
    border-radius: 0;
    font-family: var(--sans);
    box-shadow: 0 24px 60px rgba(0, 0, 0, .35);
}
.subscribe-dialog .ui-dialog-titlebar {
    padding: 20px 56px 8px 28px;
    background: #fff;
    border: 0;
    border-radius: 0;
}
.subscribe-dialog .ui-dialog-title {
    float: none; margin: 0; width: auto;
    font-family: var(--serif); font-weight: 700; font-size: 1.4rem; white-space: normal;
}
.subscribe-dialog .ui-dialog-titlebar-close {
    top: 22px; right: 18px; width: 28px; height: 28px; margin: 0;
    border: 0; border-radius: 0; background: transparent;
}
.subscribe-dialog .ui-dialog-titlebar-close .ui-icon { margin: -8px 0 0 -8px; }
.subscribe-dialog .ui-dialog-content { padding: 6px 28px 28px; }
.ui-widget-overlay { background: #000; opacity: .55; }

.dialog-lead { margin-bottom: 18px; font-size: .9375rem; color: var(--muted); }
.field { display: block; margin-bottom: 14px; }
.field span { display: block; margin-bottom: 6px; font-size: .8125rem; font-weight: 600; text-transform: uppercase; letter-spacing: .06em; }
.field input[type="email"] {
    width: 100%; padding: 11px 12px;
    font: inherit; border: 1px solid var(--ink); border-radius: 0; background: #fff;
}
.check { display: flex; gap: 10px; align-items: flex-start; margin-bottom: 14px; font-size: .875rem; line-height: 1.4; cursor: pointer; }
.check input { margin-top: 2px; accent-color: var(--slate); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.form-msg { min-height: 1.4em; margin-bottom: 10px; font-size: .875rem; }
.form-msg.is-error { color: var(--red); }
.form-msg.is-ok { color: #2f7a3e; }


/* ---------- Появление блоков при прокрутке ---------- */
.js .reveal {
    opacity: 0;
    transform: translateY(22px);
    transition: opacity .8s var(--ease), transform .8s var(--ease);
}
.js .reveal.is-in { opacity: 1; transform: none; }

/* ---------- Версия для слабовидящих ---------- */
html.is-lowvision { font-size: 125%; }
html.is-lowvision body { background: #fff; color: #000; }
html.is-lowvision .hero__desc, html.is-lowvision .card__sub, html.is-lowvision .news__main p,
html.is-lowvision .cal__grid th, html.is-lowvision .cal__year { color: #000; }

html.is-lowvision a { text-decoration: underline; }
html.is-lowvision .btn, html.is-lowvision .nav a, html.is-lowvision .socials a, html.is-lowvision .cal__day { text-decoration: none; }
html.is-lowvision .js-lowvision { color: var(--red); }

/* ==========================================================================
   Планшет
   ========================================================================== */
@media (max-width: 1100px) {
    :root { --gutter: 24px; }
    .nav a { padding: 11px 12px; font-size: .875rem; letter-spacing: 0; }
    .header__bar { gap: 10px; }
    .logo img { height: 80px; }
    .card { gap: 4%; }
    .footer__grid { grid-template-columns: 1fr 1fr 1fr; gap: 28px; }
    .footer__phone { font-size: 1.15rem; }
}

/* ==========================================================================
   Телефон / узкий планшет: меню сворачивается, колонки встают друг под друга
   ========================================================================== */
@media (max-width: 1000px) and (min-width: 901px) {
    .nav a { padding: 11px 8px; font-size: .8125rem; }
    .header__bar { gap: 8px; }
    .header__actions .btn { width: 150px; }
    .logo img { height: 68px; }
}

@media (max-width: 900px) {
    .notice { width: 100%; max-width: none; padding: 12px 16px; font-size: .75rem; }

    .site-header { display: block; position: sticky; top: 0; z-index: 40; padding-top: 20px; background: var(--paper); }
    .header__top { padding-top: 0; padding-bottom: 12px; }
    .header__sticky { position: static; box-shadow: none; }
    .header__panel { padding: 0; }
    .header__panel.is-open { overflow-y: auto; }
    .logo img { height: 52px; }
    .header__top { align-items: center; }
    .phone--desktop { display: none; }
    .phone--mobile { display: block; width: 100%; padding: 14px 0 6px; font-size: 1rem; }

    .header__tools { gap: 8px; padding-bottom: 0; align-items: center; }
    .burger { position: relative; display: block; width: 40px; height: 40px; padding: 0; border: 0; background: transparent; cursor: pointer; -webkit-tap-highlight-color: transparent; }
    .burger i {
        position: absolute; left: 8px; right: 8px; top: 50%;
        display: block; height: 2px; margin-top: -1px; background: var(--ink);
        transform-origin: center; transition: transform .28s ease, opacity .2s ease;
        pointer-events: none;
    }
    .burger i:nth-of-type(1) { transform: translateY(-6px); }
    .burger i:nth-of-type(2) { transform: translateY(0); }
    .burger i:nth-of-type(3) { transform: translateY(6px); }
    .burger.is-open i:nth-of-type(1) { transform: rotate(45deg); }
    .burger.is-open i:nth-of-type(2) { opacity: 0; transform: scaleX(.3); }
    .burger.is-open i:nth-of-type(3) { transform: rotate(-45deg); }
    .burger:focus-visible { outline: 2px solid var(--slate); outline-offset: 2px; }

    /* Выпадающая панель с плавным раскрытием (высоту задаёт JS) */
    .header__panel {
        margin-top: 0;
        max-height: 0;
        overflow: hidden;
        border-bottom: 0 solid var(--line);
        transition: max-height .45s var(--ease);
    }
    .header__panel.is-open { border-bottom-width: 1px; }
    .header__bar { flex-wrap: wrap; padding-bottom: 18px; gap: 12px; }

    .nav { order: 2; width: 100%; }
    .nav ul { flex-direction: column; border: 0; border-top: 1px solid var(--ink); }
    .nav li { border-bottom: 1px solid #ddd; }
    .nav a { padding: 13px 4px; font-size: 1rem; letter-spacing: .02em; }
    .nav a:hover, .nav a:focus-visible { padding-left: 14px; }
    .nav a { transition: padding-left .3s var(--ease), background-color .3s var(--ease), color .3s var(--ease); }

    .header__actions { order: 3; flex: 1; margin-left: 0; }
    .header__actions .btn { flex: 1; width: auto; padding: 13px 16px; }
    .js-search-toggle { order: 4; width: 40px; height: 40px; }
    .header__panel { margin-top: 0; }
    .header__actions .icon-btn { width: 40px; height: 40px; }

    /* Слайдер */
    .hero { padding-top: 24px; }
    .hero > .container { padding-bottom: 40px; }
    .hero__slide { grid-template-columns: 1fr; gap: 20px; }
    .hero__media { order: 2; }
    .hero__title { font-size: clamp(1.7rem, 7vw, 2.2rem); }
    .hero__foot { margin-top: 14px; padding-top: 0; }
    .hero__slide--full .hero__media { aspect-ratio: 1200 / 820; }
    .hero__dots { right: 50%; transform: translateX(50%); bottom: 14px; }

    /* Контент: «Рекомендуем» сверху, календарь — под ним */
    .main-grid { grid-template-columns: 1fr; gap: 36px; padding-top: 30px; }
    .col-rec { order: 1; }
    .col-cal { order: 2; max-width: 440px; margin: 0 auto; width: 100%; padding-bottom: 20px; }
    .cal__day { width: 36px; height: 36px; font-size: .9375rem; }

    .news { padding-top: 48px; }
    .news__grid { grid-template-columns: 1fr 1fr; gap: 28px 4%; }
    .news__img { grid-column: 1 / -1; }
    .news__main { grid-column: 1; }
    .news__side { grid-column: 2; }

    .banners { padding-top: 56px; padding-bottom: 48px; }

    .footer__grid { grid-template-columns: 1fr 1fr; }
    .footer__about { grid-column: 1 / -1; }
}

@media (max-width: 640px) {
    :root { --gutter: 18px; }
    body { font-size: 1rem; }

    .card { grid-template-columns: 1fr; gap: 16px; padding: 22px 0; }
    .card__media { aspect-ratio: 16 / 11; }
    .card__title { font-size: 1.35rem; }
    .card__hall, .card__meta, .card__sub { font-size: .9375rem; }
    .card__note { font-size: .9375rem; }
    .col-rec .h-rec + .card { padding-top: 6px; }
    .h-rec { font-size: 1.15rem; }

    .news__grid { grid-template-columns: 1fr; }
    .news__main, .news__side { grid-column: 1; }
    .news__main p, .news__side time, .news__side li a { font-size: 1rem; }

    .banners__item { flex: 1 1 100%; }
    .ph--banner-a, .ph--banner-b, .banners__item img { width: 100%; height: 110px; }

    .footer__grid { grid-template-columns: 1fr; gap: 32px; }
    .footer__about p { max-width: none; font-size: .9375rem; }
    .footer__nav a { font-size: 1rem; }
    .footer__phone { font-size: 1.3rem; }
    .btn--ghost { width: 100%; padding: 13px 16px; }
    .site-footer { padding-top: 40px; }
    .footer__bottom { margin-top: 36px; }

    .ui-dialog.subscribe-dialog { max-width: calc(100vw - 24px); }
}

/* ==========================================================================
   Внутренние страницы: хлебные крошки, страница события
   ========================================================================== */

/* ---------- Хлебные крошки ---------- */
.crumbs { padding-top: 34px; font-size: .875rem; line-height: 1.4; }
.crumbs ol { display: flex; flex-wrap: wrap; gap: 2px 0; }
.crumbs li:not(:last-child)::after { content: "/"; margin: 0 8px; }   /* слэш всегда остаётся в конце строки рядом со словом */
.crumbs a { color: var(--taupe); }
.crumbs a:hover { color: var(--ink); }

.page-title {
    margin: 30px 0 26px;
    font-family: var(--serif);
    font-weight: 400;
    font-size: clamp(2rem, 3.4vw, 3rem);
    line-height: 1.15;
}
.lead-404 { font-size: 1.0625rem; }

/* ---------- Изображение проекта ---------- */
.ev-hero { aspect-ratio: 1110 / 600; overflow: hidden; background: var(--ph-a); }
.ev-hero .ph, .ev-hero .media { transition: transform 1.4s var(--ease); }
.ev-hero:hover .ph, .ev-hero:hover .media { transform: scale(1.02); }

/* ---------- Годы ---------- */
.years { margin-top: 26px; }
.years ul {
    display: flex;
    gap: clamp(22px, 2.9vw, 40px);
    max-width: 66%;
    overflow-x: auto;
    border-bottom: 1px solid var(--line);
    scrollbar-width: none;
}
.years ul::-webkit-scrollbar { display: none; }
.years a {
    position: relative;
    display: block;
    padding: 12px 0 14px;
    font-size: clamp(1.2rem, 1.7vw, 1.5rem);
    font-weight: 700;
    line-height: 1.2;
}
.years a::after {
    content: "";
    position: absolute; left: 0; bottom: -1px;
    width: 100%; height: 3px;
    background: var(--taupe);
    transform: scaleX(0);
    transform-origin: left center;
    transition: transform .4s var(--ease);
}
.years a:hover { color: var(--taupe); }
.years a:hover::after, .years a.is-active::after { transform: scaleX(1); }
.years a.is-active { color: var(--taupe); }

.ev-content { margin-top: 44px; }

/* ---------- Две колонки (как на главной: 1/3 + 2/3) ---------- */
.ev-split {
    display: grid;
    grid-template-columns: 1fr 2fr;
    column-gap: 3.2%;
}
.ev-split__main { grid-column: 2; min-width: 0; }

/* ---------- Фото или постер рядом с описанием ---------- */
.ev-split__main { grid-row: 1; }
.ev-photo { grid-column: 1; grid-row: 1; align-self: start; margin: 0; overflow: hidden; background: var(--ph-a); }
.ev-photo .media { width: 100%; height: auto; }
/* нет текста — небольшое фото справа */
.ev-desc--solo .ev-photo { grid-column: 2; justify-self: end; width: 50%; }

/* ---------- Описание ---------- */
.desc__short p, .desc__full p { font-size: 1.0625rem; line-height: 1.5; }
.desc__short p + p, .desc__full p { margin-top: .85em; }
.desc__full { margin-top: 0; }
.js .desc__full { display: none; }
html:not(.js) .js-desc-toggle { display: none; }
.js-desc .more { margin-top: 22px; }

/* ---------- Афиша ---------- */
.ev-afisha { margin-top: 70px; align-items: start; }
.ev-afisha__title { grid-column: 1; padding: 2.3rem 0 0 43%; font-size: 1.7rem; font-weight: 700; line-height: 1.2; }

.ev-row {
    display: grid;
    grid-template-columns: 26% 1fr auto;
    grid-template-areas:
        ". meta age"
        "date title action";
    column-gap: 24px;
    align-items: center;
    padding: 18px 0 22px;
    border-bottom: 1px solid var(--line);
}
.ev-row:first-child { padding-top: 14px; }
.ev-row__meta { grid-area: meta; font-size: .875rem; line-height: 1.4; }
.ev-row__age { grid-area: age; justify-self: end; font-size: .875rem; }
.ev-row__date { grid-area: date; }
.ev-row__date strong { display: block; font-size: 1.5rem; font-weight: 700; line-height: 1.2; }
.ev-row__date span { display: block; margin-top: 2px; font-size: .9375rem; }
.ev-row__main { grid-area: title; min-width: 0; margin-top: 8px; padding-right: 16px; }
.ev-row__title { font-size: 1.5rem; font-weight: 700; line-height: 1.25; }
.ev-row__title a:hover { color: var(--taupe); }
.ev-row__action { grid-area: action; justify-self: end; min-width: 128px; margin-top: 8px; text-align: right; }
.ev-row__action .btn { min-width: 128px; }
.ev-afisha__all { margin-top: 30px; padding: 11px 28px; font-size: .875rem; letter-spacing: .04em; }

/* ---------- Секции с жирной линией ---------- */
.ev-sec { margin-top: 84px; }
.ev-news { padding-bottom: 88px; }

/* ---------- Стрелки пролистывания ---------- */
.arrows { display: flex; gap: 30px; margin-top: 18px; }
.arrows--end { width: 48.65%; justify-content: flex-end; }
.arrows--center { justify-content: center; }
.arrow { width: 66px; height: 32px; color: var(--ink); transition: color .25s var(--ease), transform .3s var(--ease); }
.arrow svg { display: block; width: 100%; height: 14px; margin: 9px 0; fill: none; stroke: currentColor; stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; }
.arrow:disabled { color: #a3a3a3; cursor: default; }
.arrow--prev:not(:disabled):hover { color: var(--taupe); transform: translateX(-5px); }
.arrow--next:not(:disabled):hover { color: var(--taupe); transform: translateX(5px); }

/* ---------- Фотогалерея ---------- */
.gal__viewport { display: grid; }
.gal__page {
    grid-area: 1 / 1;
    display: grid;
    grid-template-columns: 48.65% 1fr 1fr;
    grid-template-rows: 1fr 1fr;
    gap: 10px 2.7%;
    aspect-ratio: 1110 / 370;
    opacity: 0;
    visibility: hidden;
    transition: opacity .6s var(--ease), visibility 0s linear .6s;
}
.gal__page.is-active { opacity: 1; visibility: visible; transition: opacity .6s var(--ease), visibility 0s linear 0s; }
.gal__item { position: relative; display: block; min-height: 0; overflow: hidden; background: var(--ph-a); }
.gal__item:first-child { grid-row: 1 / 3; }
.gal__item > .ph, .gal__item > .media { position: absolute; top: 0; left: 0; transition: transform .8s var(--ease); }
.gal__item::after {
    content: "";
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(17, 17, 17, 0);
    transition: background-color .4s var(--ease);
}
.gal__item:hover > .ph, .gal__item:hover > .media { transform: scale(1.05); }
.gal__item:hover::after { background: rgba(17, 17, 17, .14); }

/* ---------- Видеогалерея: не более 4 на экране, меньше — по центру ---------- */
.vid__stage { display: grid; }
.vid__page {
    grid-area: 1 / 1;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-content: flex-start;
    gap: 28px 24px;
    opacity: 0;
    visibility: hidden;
    transition: opacity .6s var(--ease), visibility 0s linear .6s;
}
.vid__page.is-active { opacity: 1; visibility: visible; transition: opacity .6s var(--ease), visibility 0s linear 0s; }
.vid__item { flex: 0 0 calc((100% - 72px) / 4); min-width: 0; }
.vid__btn { display: block; width: 100%; text-align: left; cursor: pointer; }
.vid__thumb { position: relative; display: block; aspect-ratio: 16 / 10; overflow: hidden; background: var(--ph-a); }
.vid__thumb > .ph, .vid__thumb > .media { position: absolute; top: 0; left: 0; transition: transform .8s var(--ease); }
.vid__btn:hover .vid__thumb > .ph, .vid__btn:hover .vid__thumb > .media { transform: scale(1.05); }
.vid__play {
    position: absolute; z-index: 2; left: 50%; top: 50%;
    width: 48px; height: 48px; margin: -24px 0 0 -24px;
    border-radius: 50%;
    background: rgba(255, 255, 255, .9);
    transition: transform .35s var(--ease), background-color .35s var(--ease);
}
.vid__play::before {
    content: "";
    position: absolute; left: 19px; top: 14px;
    border-style: solid; border-width: 10px 0 10px 16px;
    border-color: transparent transparent transparent var(--red);
}
.vid__btn:hover .vid__play { transform: scale(1.1); background: #fff; }
.vid__label {
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
    margin-top: 12px; font-size: .9375rem; font-weight: 700; line-height: 1.35;
    transition: color .25s var(--ease);
}
.vid__btn:hover .vid__label { color: var(--taupe); }

/* ---------- Участники ---------- */
.people { display: grid; grid-template-columns: repeat(4, 1fr); gap: 40px 30px; }
.person a { display: block; }
.person__photo { display: block; aspect-ratio: 190 / 150; overflow: hidden; background: var(--ph-a); }
.person__photo > .ph, .person__photo > .media { transition: transform .8s var(--ease); }
.person a:hover .person__photo > .ph, .person a:hover .person__photo > .media { transform: scale(1.05); }
.person__name { display: block; margin-top: 16px; font-size: 1.0625rem; font-weight: 700; line-height: 1.35; transition: color .25s var(--ease); }
.person a:hover .person__name { color: var(--taupe); }
.person__role { display: block; margin-top: 10px; max-width: 220px; font-size: .9375rem; line-height: 1.4; }

/* ---------- Окна: фото и видео (jQuery UI Dialog) ---------- */
.ui-widget.ui-widget-content.media-dialog { padding: 0; border: 0; border-radius: 0; font-family: var(--sans); background: #fff; box-shadow: 0 24px 60px rgba(0, 0, 0, .4); }
.media-dialog .ui-dialog-titlebar { padding: 14px 54px 14px 20px; background: #fff; border: 0; border-radius: 0; }
.media-dialog .ui-dialog-title { float: none; margin: 0; width: auto; font-size: 1rem; font-weight: 700; white-space: normal; }
.media-dialog .ui-dialog-titlebar-close { top: 13px; right: 12px; width: 28px; height: 28px; margin: 0; border: 0; border-radius: 0; background: transparent; }
.media-dialog .ui-dialog-titlebar-close .ui-icon { margin: -8px 0 0 -8px; }
.media-dialog .ui-dialog-content { padding: 0; background: #111; overflow: hidden; }

.lb { position: relative; }
.lb__stage { position: relative; aspect-ratio: 3 / 2; background: #111; }
.lb__stage img { position: absolute; top: 0; left: 0; width: 100%; height: 100%; object-fit: contain; }
.lb__stage .ph { position: absolute; top: 0; left: 0; }
.lb__nav {
    position: absolute; top: 50%; width: 46px; height: 46px; margin-top: -23px;
    border-radius: 50%; background: rgba(255, 255, 255, .85);
    transition: background-color .25s var(--ease), transform .3s var(--ease);
}
.lb__nav:hover { background: #fff; }
.lb__nav::before {
    content: ""; position: absolute; top: 50%; left: 50%;
    width: 11px; height: 11px; margin: -6px 0 0 -6px;
    border: solid var(--ink); border-width: 2px 2px 0 0;
}
.lb__nav--prev { left: 14px; }
.lb__nav--prev::before { transform: rotate(-135deg); margin-left: -3px; }
.lb__nav--next { right: 14px; }
.lb__nav--next::before { transform: rotate(45deg); margin-left: -8px; }
.lb__count { position: absolute; left: 0; bottom: 10px; width: 100%; text-align: center; color: #fff; font-size: .8125rem; text-shadow: 0 1px 6px rgba(0, 0, 0, .6); }
.vid-frame { position: relative; padding-top: 56.25%; background: #111; }
.vid-frame video { position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: #000; }
.vid-frame iframe, .vid-frame .ph { position: absolute; top: 0; left: 0; width: 100%; height: 100%; border: 0; }

/* ---------- Внутренние страницы: планшет и телефон ---------- */
@media (max-width: 900px) {
    .crumbs { padding-top: 22px; font-size: .9375rem; }
    .page-title { margin: 20px 0 20px; }
    .ev-hero { aspect-ratio: 16 / 10; }
    .years ul { max-width: none; gap: 26px; }
    .ev-content { margin-top: 30px; }

    .ev-split { grid-template-columns: 1fr; }
    .ev-split__main, .ev-afisha__title { grid-column: 1; }
    .ev-photo, .ev-desc--solo .ev-photo { grid-column: 1; grid-row: auto; justify-self: start; width: 100%; max-width: 420px; margin-bottom: 22px; }
    .ev-desc--solo .ev-photo { margin-bottom: 0; }
    .ev-split__main { grid-row: auto; }
    .ev-afisha { margin-top: 48px; }
    .ev-afisha__title { padding: 0 0 12px; border-bottom: 1px solid var(--line); }
    .ev-row {
        grid-template-columns: 1fr auto;
        grid-template-areas:
            "date age"
            "meta meta"
            "title title"
            "action action";
        row-gap: 4px;
        padding: 18px 0 22px;
    }
    .ev-row:first-child { padding-top: 18px; }
    .ev-row__date strong, .ev-row__date span { display: inline; }
    .ev-row__date span { margin: 0 0 0 8px; }
    .ev-row__main { margin-top: 4px; padding-right: 0; }
    .ev-row__title { font-size: 1.35rem; }
    .ev-row__action { justify-self: start; margin-top: 10px; text-align: left; }

    .ev-sec { margin-top: 56px; }
    .ev-news { padding-bottom: 56px; }

    .gal__page { grid-template-columns: 1fr 1fr; grid-template-rows: auto; gap: 8px; aspect-ratio: auto; }
    .gal__item { aspect-ratio: 4 / 3; }
    .gal__item:first-child { grid-row: auto; grid-column: 1 / -1; aspect-ratio: 16 / 10; }
    .arrows, .arrows--end { width: 100%; justify-content: center; }
    .vid__page { gap: 22px 16px; }
    .vid__item { flex: 0 0 calc((100% - 16px) / 2); }

    .people { grid-template-columns: repeat(3, 1fr); gap: 32px 20px; }
}

@media (max-width: 640px) {
    .crumbs { font-size: .875rem; }
    .years a { font-size: 1.25rem; }
    .people { grid-template-columns: repeat(2, 1fr); }
    .vid__play { width: 40px; height: 40px; margin: -20px 0 0 -20px; }
    .vid__play::before { left: 16px; top: 11px; border-width: 9px 0 9px 14px; }
    .vid__label { font-size: .875rem; }
    .ui-dialog.media-dialog { max-width: calc(100vw - 16px); }
    .lb__nav { width: 38px; height: 38px; margin-top: -19px; }
}

/* ---------- Пользователи, отключившие анимации ---------- */
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after {
        animation-duration: .01ms !important;
        transition-duration: .01ms !important;
        transition-delay: 0s !important;
    }
    .js .reveal { opacity: 1; transform: none; }
}

/* ==========================================================================
   Отмена / перенос мероприятия
   ========================================================================== */
.status {
    margin-top: 18px;
    padding: 14px 18px 15px;
    border-left: 4px solid var(--red);
    background: #f8ebeb;
}
.status--moved { border-left-color: var(--slate); background: #eceff5; }

.status__label {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: .8125rem;
    font-weight: 700;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: var(--red);
}
.status__label::before {
    content: "!";
    display: inline-flex; align-items: center; justify-content: center;
    width: 20px; height: 20px;
    border-radius: 50%;
    background: var(--red); color: #fff;
    font-size: .75rem; letter-spacing: 0;
}
.status--moved .status__label { color: var(--slate); }
.status--moved .status__label::before { content: "\21BB"; background: var(--slate); }

.status__when { margin-top: 8px; font-size: .9375rem; }
.status__when strong { font-weight: 700; }
.status__text { margin-top: 6px; font-size: .875rem; line-height: 1.5; }

/* Карточка на главной */
.card.is-cancelled .card__media .ph,
.card.is-cancelled .card__media .media { filter: grayscale(1); opacity: .5; }
.card.is-cancelled .card__title a,
.card.is-cancelled .card__sub { color: var(--muted); }
.card.is-cancelled .card__date,
.card.is-cancelled .card__time,
.card.is-moved .card__date,
.card.is-moved .card__time { text-decoration: line-through; text-decoration-thickness: 1px; }
.card.is-moved .card__date,
.card.is-moved .card__time { color: var(--muted); }

/* Строка афиши на странице события */
.ev-row--status {
    grid-template-areas:
        ". meta age"
        "date title action"
        ". status status";
}
.ev-row__status { grid-area: status; margin-top: 16px; }
.ev-row.is-cancelled .ev-row__title a { color: var(--muted); }
.ev-row.is-cancelled .ev-row__date,
.ev-row.is-moved .ev-row__date { text-decoration: line-through; text-decoration-thickness: 1px; color: var(--muted); }

@media (max-width: 900px) {
    .ev-row--status {
        grid-template-areas:
            "date age"
            "meta meta"
            "title title"
            "status status"
            "action action";
    }
    .ev-row__status { margin-top: 10px; }
}

@media (max-width: 640px) {
    .status { padding: 12px 14px 13px 16px; }
    .status__when, .status__text { font-size: .9375rem; }
}


/* ==========================================================================
   Этап 4: страница новости и список новостей (добавить в конец assets/css/style.css)
   ========================================================================== */
.article { max-width: 820px; }
.article__date { display: block; margin-top: 30px; font-size: .875rem; color: var(--taupe); }
.article .page-title { margin-top: 8px; }
.article__img { margin: 0 0 28px; aspect-ratio: 16 / 9; overflow: hidden; background: var(--ph-a); }
.article__body p { font-size: 1.0625rem; line-height: 1.6; }
.article__body p + p { margin-top: 1.1em; }
.article__back { margin: 40px 0 72px; }

.news-list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 44px 3.2%; padding-bottom: 40px; }
.news-card__img { display: block; aspect-ratio: 1.6 / 1; overflow: hidden; background: var(--ph-a); margin-bottom: 14px; }
.news-card__img .ph, .news-card__img .media { transition: transform .8s var(--ease); }
.news-card:hover .news-card__img .ph, .news-card:hover .news-card__img .media { transform: scale(1.04); }
.news-card time { display: block; font-size: .8125rem; font-weight: 700; }
.news-card h2 { margin-top: 6px; font-family: var(--sans); font-weight: 700; font-size: 1.25rem; line-height: 1.3; }
.news-card h2 a:hover { color: var(--slate); }
.news-card p { margin-top: 8px; font-size: .875rem; line-height: 1.55; color: var(--taupe); }

.pager { display: flex; flex-wrap: wrap; gap: 8px; padding: 8px 0 72px; }
.pager a { display: inline-flex; align-items: center; justify-content: center; min-width: 40px; height: 40px; padding: 0 10px; border: 1px solid var(--ink); font-weight: 600; transition: background-color .25s var(--ease), color .25s var(--ease); }
.pager a:hover, .pager a.is-active { background: var(--ink); color: #fff; }

@media (max-width: 900px) { .news-list { grid-template-columns: 1fr 1fr; gap: 32px 4%; } }
@media (max-width: 640px) { .news-list { grid-template-columns: 1fr; } .article__date { margin-top: 20px; } }

/* Отступ перед подвалом */
.site-footer { margin-top: 50px; }

/* Текущий пункт меню: тёмно-синяя плашка вместо золотых букв */
.nav a.is-current { background: var(--slate); color: #fff; }
.nav a.is-current:hover, .nav a.is-current:focus-visible { background: var(--ink); color: #fff; }

/* Заглушка «Изображение отсутствует» */


/* Календарь: выбранная дата */
.cal__day.is-selected { box-shadow: 0 0 0 2px #fff, 0 0 0 4px var(--ink); font-weight: 700; }
.cal__day.is-selected:hover { transform: none; }

/* Афиша: блок концертов дня */
#afisha-list { transition: opacity .25s var(--ease); }
#afisha-list.is-loading { opacity: .35; pointer-events: none; }
.afisha-empty { padding: 12px 0 28px; font-size: 1rem; }
.afisha-list .h-rec { padding-bottom: 18px; }
.afisha-list .h-rec + .card { border-top: 0; padding-top: 0; }

/* Афиша события: «Все даты» раскрывает остальные */
.js .ev-afisha__more { display: none; }
html:not(.js) .js-afisha-toggle { display: none; }
.ev-afisha__all { cursor: pointer; }

/* ==========================================================================
   Правки от 19.10.2026
   ========================================================================== */

/* Пушкинская карта */
.pushkin { display: block; width: fit-content; margin-top: 8px; padding: 3px 10px; font-size: .75rem; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: #fff; background: var(--slate); }

/* Участники: «Все участники» */
.people-more .people { margin-top: 40px; }
.js .people-more { display: none; }
html:not(.js) .js-people-toggle { display: none; }
.js-people-toggle { margin-top: 30px; padding: 11px 28px; font-size: .875rem; letter-spacing: .04em; }

/* Иконки соцсетей */
.socials a img { display: block; width: 16px; height: 16px; object-fit: contain; }

/* Окно «Купить билет» в слайдере */
.tk-source { display: none; }
.tickets-dialog .ui-dialog-content { max-height: 70vh; overflow-y: auto; padding: 0 28px 24px; }
.tk-month { margin: 24px 0 2px; padding-bottom: 8px; font-family: var(--sans); font-size: 1.05rem; font-weight: 700; text-transform: capitalize; border-bottom: 3px solid var(--ink); }
.tk-month:first-child { margin-top: 6px; }
@media (max-width: 640px) { .tickets-dialog .ui-dialog-content { padding: 0 16px 18px; } }

/* Слайд из одной картинки на телефоне: картинка по ширине окна, без выхода за края */
@media (max-width: 900px) {
    .hero__stage, .hero__slides { min-width: 0; }
    .hero__slide { grid-template-columns: minmax(0, 1fr); }
    .hero__slide--full .hero__media { aspect-ratio: auto; height: auto; background: none; }
    .hero__slide--full .hero__media > a { position: static; display: block; width: 100%; height: auto; }
    .hero__slide--full .hero__media > .media,
    .hero__slide--full .hero__media a > .media {
        position: static; display: block; width: 100%; max-width: 100%; height: auto;
        object-fit: contain; transform: none;
    }
    .hero__slide--full .hero__media > .ph { position: relative; aspect-ratio: 1200 / 820; height: auto; }
}

/* Окно «Купить билет»: кнопка «Билеты» белыми буквами (перекрывает цвет ссылок jQuery UI) */
.tickets-dialog a.btn:not(.btn--disabled),
.tickets-dialog a.btn:not(.btn--disabled):hover { color: #fff; }

@media (prefers-reduced-motion: reduce) { .hero__slides { transition: none !important; } }


/* ==========================================================================
   Правки от 20.10.2026
   ========================================================================== */

/* 1. Телефон/планшет: сначала календарь, затем «Рекомендуем» / концерты дня */
@media (max-width: 900px) {
    .col-cal { order: 1; padding-bottom: 0; }
    .col-rec { order: 2; }
}

/* 3. Документы ------------------------------------------------------------ */
.docs { margin: 0; }
.doc {
    display: grid;
    grid-template-columns: 46px minmax(0, 1fr) auto;
    column-gap: 22px;
    align-items: start;
    padding: 20px 0;
    border-bottom: 1px solid var(--line);
}
.docs > .doc:first-child { padding-top: 4px; }

/* значок формата: «лист» с загнутым уголком */
.doc__ico {
    position: relative;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    width: 46px;
    height: 56px;
    padding-bottom: 9px;
    color: #fff;
    background: #8a8176;
    font-size: .6875rem;
    letter-spacing: .04em;
    line-height: 1;
    clip-path: polygon(0 0, 70% 0, 100% 22%, 100% 100%, 0 100%);
    transition: transform .3s var(--ease);
}
.doc__ico::before {
    content: "";
    position: absolute;
    top: 0; right: 0;
    width: 30%; height: 22%;
    background: rgba(255, 255, 255, .38);
    clip-path: polygon(0 0, 0 100%, 100% 100%);
}
.doc__ico b { font-weight: 700; }
.doc__ico--pdf  { background: var(--red); }
.doc__ico--word { background: var(--slate); }
.doc__ico--xls  { background: #2f7a3e; }
.doc__ico--ppt  { background: #c4672b; }
.doc__ico--img  { background: var(--taupe); }
.doc__ico--zip  { background: #6f685f; }
.doc:hover .doc__ico { transform: translateY(-2px); }

.doc__body { min-width: 0; }
.doc__title { display: block; font-size: 1.125rem; font-weight: 700; line-height: 1.3; word-break: break-word; }
.doc__title:hover { color: var(--taupe); }
.doc__cap { display: block; margin-top: 6px; font-size: .9375rem; line-height: 1.5; color: var(--taupe); }
.doc__where { display: block; margin-top: 8px; font-size: .8125rem; color: var(--muted); }
.doc__where a { font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.doc__where a:hover { color: var(--taupe); }
.doc__meta { text-align: right; font-size: .8125rem; line-height: 1.45; color: var(--muted); white-space: nowrap; }
.doc__meta time { display: block; font-size: .875rem; font-weight: 700; color: var(--ink); }
.doc__meta span { display: block; }

@media (max-width: 640px) {
    .doc { grid-template-columns: 40px minmax(0, 1fr); column-gap: 16px; }
    .doc__ico { width: 40px; height: 49px; padding-bottom: 8px; font-size: .625rem; }
    .doc__meta { grid-column: 2; margin-top: 8px; display: flex; flex-wrap: wrap; gap: 4px 14px; text-align: left; }
    .doc__meta time, .doc__meta span { display: inline; }
}

/* 2. Поиск ---------------------------------------------------------------- */
mark { padding: 0 2px; color: inherit; background: #eadfcf; }
.sr-form { display: flex; gap: 10px; max-width: 820px; margin: 0 0 26px; }
.sr-form input[type="search"] {
    flex: 1; min-width: 0; padding: 14px 16px;
    font: inherit; font-size: 1.125rem;
    border: 1px solid var(--ink); border-radius: 0; background: #fff;
}
.sr-form .btn { padding-left: 34px; padding-right: 34px; }
.sr-hint { font-size: 1.0625rem; }
.sr-sum { font-size: 1rem; }
.sr-chips { display: flex; flex-wrap: wrap; gap: 8px 10px; margin-top: 14px; }
.sr-chip { padding: 5px 14px; font-size: .8125rem; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; border: 1px solid var(--ink); }
.sr-chip b { margin-left: 4px; color: var(--taupe); }
.sr-sec { margin-top: 48px; }
.sr-sec .sec-title { margin-bottom: 0; font-size: clamp(1.5rem, 2.4vw, 2rem); }
.sr-sec .sec-title small { margin-left: .5em; font-family: var(--sans); font-size: .55em; color: var(--muted); }
.sr-sec .docs > .doc:first-child { padding-top: 20px; }
.sr-item {
    display: grid;
    grid-template-columns: 22% minmax(0, 1fr);
    column-gap: 3.2%;
    padding: 20px 0 22px;
    border-bottom: 1px solid var(--line);
}
.sr-item__meta { font-size: .875rem; line-height: 1.4; color: var(--taupe); }
.sr-item__title { font-size: 1.3rem; font-weight: 700; line-height: 1.3; }
.sr-item__title a:hover { color: var(--taupe); }
.sr-item__text { margin-top: 8px; font-size: .9375rem; line-height: 1.55; }
.pager .pager__gap { display: inline-flex; align-items: center; justify-content: center; min-width: 24px; height: 40px; color: var(--muted); }
@media (max-width: 900px) { .sr-item { grid-template-columns: 1fr; row-gap: 6px; } }
@media (max-width: 640px) { .sr-form { flex-direction: column; } .sr-form .btn { width: 100%; } }

/* 4. Контакты ------------------------------------------------------------- */
.ct-top { display: grid; grid-template-columns: 1fr 2fr; column-gap: 3.2%; align-items: start; margin-top: 8px; }
.ct-top--solo { grid-template-columns: minmax(0, 720px); }
.ct-h { margin: 0; padding-bottom: 12px; font-size: 1.25rem; font-weight: 700; line-height: 1.2; border-bottom: 3px solid var(--ink); }
.ct-org { margin: 18px 0 8px; font-family: var(--serif); font-size: 1.35rem; line-height: 1.3; }
.ct-dl { margin: 0; }
.ct-dl > div { display: grid; grid-template-columns: 150px minmax(0, 1fr); gap: 14px; padding: 13px 0; border-bottom: 1px solid var(--line); }
.ct-dl dt { padding-top: 3px; font-size: .8125rem; letter-spacing: .06em; text-transform: uppercase; color: var(--taupe); }
.ct-dl dd { margin: 0; font-size: 1.0625rem; line-height: 1.45; word-break: break-word; }
.ct-dl dd a:hover { color: var(--taupe); }
.ct-dl dd a[href^="tel:"] { font-size: 1.25rem; font-weight: 700; }
.ct-cards { display: grid; grid-template-columns: 1fr 1fr; column-gap: 3.2%; align-items: start; }
.ct-cards--one { grid-template-columns: 1fr; }
.ct-card .ct-h { margin-bottom: 0; }

.ct-persons { display: grid; grid-template-columns: repeat(3, 1fr); grid-auto-rows: auto; gap: 40px 3.2%; }
.ct-person { padding-top: 16px; border-top: 1px solid var(--ink); display: grid; grid-row: span 3; grid-template-rows: subgrid; row-gap: 0; align-content: start; }
.ct-person__job { align-self: start; }
@supports not (grid-template-rows: subgrid) {
    .ct-person { display: block; }
    .ct-person__job { min-height: 2.7em; }
    .ct-person__name { min-height: 2.5em; }
}
.ct-person__job { font-size: .8125rem; letter-spacing: .06em; text-transform: uppercase; color: var(--taupe); }
.ct-person__name { margin-top: 6px; font-family: var(--sans); font-size: 1.3rem; font-weight: 700; line-height: 1.25; }
.ct-dl--sm { margin-top: 10px; }
.ct-dl--sm > div { grid-template-columns: 80px minmax(0, 1fr); padding: 9px 0; }
.ct-dl--sm dd { font-size: .9375rem; }
.ct-dl--sm dd a[href^="tel:"] { font-size: 1.0625rem; }

@media (max-width: 900px) {
    .ct-top { grid-template-columns: 1fr; row-gap: 36px; }
    .ct-cards { grid-template-columns: 1fr; row-gap: 36px; }
    .ct-persons { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
    .ct-persons { grid-template-columns: 1fr; }
    .ct-dl > div { grid-template-columns: 1fr; gap: 2px; }
    .ct-dl--sm > div { grid-template-columns: 1fr; }
}

/* ==========================================================================
   Подразделы идут в порядке видео, фото, участники, новости, документы,
   поэтому нижний отступ страницы события ставится у последнего блока, а не у «Новостей».
   ========================================================================== */
.ev-news { padding-bottom: 0; }
.ev-year > :last-child { padding-bottom: 88px; }
@media (max-width: 900px) { .ev-year > :last-child { padding-bottom: 56px; } }

.tickets-dialog .ui-dialog-titlebar { position: static; height: 0; padding: 0; border: 0; background: none; }
.tickets-dialog .ui-dialog-title {
    position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden;
    clip: rect(0 0 0 0); white-space: nowrap;
}
.tickets-dialog .ui-dialog-titlebar-close { top: 10px; right: 10px; z-index: 2; }
.tickets-dialog .ui-dialog-content { padding: 46px 28px 24px; overflow-y: auto; }
@media (max-width: 640px) { .tickets-dialog .ui-dialog-content { padding: 46px 16px 18px; } }

/* Страницы, созданные в админке */
.years--pages ul { max-width: none; }
.years--pages a { white-space: nowrap; }
.page-lead { max-width: 820px; margin: 0 0 28px; font-family: var(--serif); font-size: 1.35rem; line-height: 1.4; color: var(--taupe); }
.pg-hero { margin-bottom: 44px; }
.page-dyn .ev-year > :first-child { margin-top: 0; }
@media (max-width: 900px) { .pg-hero { margin-bottom: 28px; } .page-lead { font-size: 1.15rem; } }

/* Страницы и проекты */
.years--pages ul { max-width: none; }
.years--pages a { white-space: nowrap; }
.page-lead { max-width: 820px; margin: 0 0 28px; font-family: var(--serif); font-size: 1.35rem; line-height: 1.4; color: var(--taupe); }
.pg-hero { margin-bottom: 44px; }
.page-dyn .ev-year > :first-child { margin-top: 0; }
@media (max-width: 900px) { .pg-hero { margin-bottom: 28px; } .page-lead { font-size: 1.15rem; } }

/* Общая шапка над подразделами: подзаголовок, преамбула, фото */
.page-head { margin-bottom: 8px; }
.page-head .page-lead { margin: 0; }
.page-intro { max-width: 820px; margin-top: 16px; }
.page-intro p { font-size: 1.0625rem; line-height: 1.55; }
.page-intro p + p { margin-top: .9em; }
.page-head .ev-sec { margin-top: 32px; }
.page-head + .years { margin-top: 36px; }

/* Список проектов (карточки как у новостей) */
.news-card .more { margin-top: 12px; }

/* Календарь: выбор месяца */
.cal__title--link { padding: 2px 6px; border-bottom: 2px solid transparent; cursor: pointer; }
.cal__title--link:hover { color: var(--taupe); }
.cal__title--link.is-selected { border-bottom-color: var(--ink); }

/* Афиша: «Все даты» при более чем 10 событиях */
.js .afisha-more { display: none; }
html:not(.js) .js-afisha-more { display: none; }
.js-afisha-more { margin-top: 22px; padding: 11px 28px; font-size: .875rem; letter-spacing: .04em; cursor: pointer; }
.afisha-list .afisha-more .card:last-child { border-bottom: 1px solid var(--line); }

/* Пометка «Проект: …» на афишах */
.proj-tag { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; margin-top: 10px; font-size: .8125rem; line-height: 1.35; color: var(--taupe); }
.proj-tag__lbl { letter-spacing: .02em; }
.proj-tag a {
    display: inline-block; padding: 3px 11px 4px; color: var(--ink); font-weight: 600;
    border: 1px solid var(--line); background: #fff;
    transition: background-color .25s var(--ease), color .25s var(--ease), border-color .25s var(--ease);
}
.proj-tag a::after { content: "→"; margin-left: 7px; color: var(--taupe); transition: margin-left .25s var(--ease), color .25s var(--ease); }
.proj-tag a:hover { background: var(--ink); border-color: var(--ink); color: #fff; }
.proj-tag a:hover::after { margin-left: 11px; color: #fff; }
.card__body > .proj-tag { margin: 10px 0 0; }


/* ==========================================================================
   Коллективы и исполнители (/ispolniteli/)
   Вкладки, «Состав» (руководители + раскрывающиеся группы), силуэты, списки.
   ========================================================================== */

/* ---------- Фото в рамках: положение и масштаб задаются в админке (--px, --py, --pz на рамке) ---------- */
.leader__photo, .lp__photo, .person__photo, .person-solo__sil { overflow: hidden; background-color: var(--ph-a); }
.leader__photo { --px: 50%; --py: 18%; --pz: 1; }
.lp__photo { --px: 50%; --py: 20%; --pz: 1; }
.person__photo, .person-solo__sil { --px: 50%; --py: 50%; --pz: 1; }
.leader__photo img, .lp__photo img, .person__photo img, .person-solo__sil img {
    display: block; width: 100%; height: 100%; object-fit: cover;
    object-position: var(--px) var(--py);
    transform: scale(var(--pz)); transform-origin: var(--px) var(--py);
    transition: transform .8s var(--ease);
}
.leader:hover .leader__photo img { transform: scale(calc(var(--pz) * 1.04)); }
.ev-photo .person-solo__sil img { height: 100%; }
.lp:hover .lp__photo img, .person a:hover .person__photo > img { transform: scale(calc(var(--pz) * 1.05)); }

/* ---------- Вкладки коллектива: О коллективе / Состав / … ---------- */
.tabs { margin-top: 38px; }
.tabs ul { display: flex; gap: clamp(24px, 3.6vw, 48px); overflow-x: auto; scrollbar-width: none; }
.tabs ul::-webkit-scrollbar { display: none; }
.tabs a { position: relative; display: block; padding: 6px 0 12px; font-size: 1rem; font-weight: 700; line-height: 1.3; white-space: nowrap; }
.tabs a::after {
    content: ""; position: absolute; left: 0; bottom: 0; width: 100%; height: 3px;
    background: var(--taupe); transform: scaleX(0); transform-origin: left center;
    transition: transform .4s var(--ease);
}
.tabs a:hover { color: var(--taupe); }
.tabs a:hover::after, .tabs a.is-active::after { transform: scaleX(1); }
.tabs a.is-active { color: var(--taupe); }
html.is-lowvision .tabs a { text-decoration: none; }

.page-head + .tabs { margin-top: 36px; }
.page-collective .ev-content { margin-top: 44px; }
.page-collective .pg-hero { margin-bottom: 0; }
.page-performers .tabs { margin-bottom: 8px; }

/* ---------- Руководители: [текст | фото] ---------- */
.leaders { display: flex; flex-direction: row-reverse; flex-wrap: wrap; gap: 28px 12px; }   /* первый руководитель — справа, следующие — левее */
.leader { display: flex; align-items: stretch; gap: 14px; flex: 0 0 calc((100% - 12px) / 2); min-width: 0; }
.leaders--3 .leader { flex-basis: calc((100% - 24px) / 3); }
.leader__photo { display: block; flex: 0 0 50%; align-self: flex-start; aspect-ratio: 112 / 153; }
.leader__text { display: flex; flex-direction: column; flex: 1 1 0; min-width: 0; text-align: right; }
.leader__who { margin: auto 0; }
.leader__name { font-family: var(--sans); font-weight: 700; font-size: 1.125rem; line-height: 1.3; }
.leader__name a:hover { color: var(--taupe); }
.leader__role { margin-top: 6px; font-size: .875rem; line-height: 1.4; }
.leader__contacts { font-size: .875rem; line-height: 1.55; overflow-wrap: anywhere; }
.leader__contacts a { display: block; }
.leader__contacts a:hover { color: var(--taupe); }

/* ---------- Состав ---------- */
.lineup--after { margin-top: 48px; }
.lineup { border-bottom: 1px solid var(--line); }
.lineup__group { border-top: 1px solid var(--line); }
.lineup__head { margin: 0; font-size: inherit; font-weight: inherit; }
.lineup__btn {
    display: flex; align-items: center; justify-content: space-between; gap: 16px;
    width: 100%; padding: 21px 0;
    font-family: var(--sans); font-size: clamp(1.125rem, 1.6vw, 1.375rem); font-weight: 700; line-height: 1.3; text-align: left;
    transition: color .25s var(--ease);
}
.lineup__btn:hover { color: var(--taupe); }
.lineup__btn[aria-expanded="true"] { color: var(--muted); }
.lineup__ico { position: relative; flex: 0 0 auto; width: 20px; height: 20px; }
.lineup__ico::before, .lineup__ico::after { content: ""; position: absolute; background: currentColor; transition: transform .35s var(--ease), opacity .35s var(--ease); }
.lineup__ico::before { left: 0; right: 0; top: 50%; height: 1.5px; margin-top: -.75px; }
.lineup__ico::after { top: 0; bottom: 0; left: 50%; width: 1.5px; margin-left: -.75px; }
.lineup__btn[aria-expanded="true"] .lineup__ico::after { transform: rotate(90deg); opacity: 0; }
/* без JS все группы раскрыты */
.js .lineup__panel { display: none; }
.js .lineup__group.is-open > .lineup__panel { display: block; }
.lineup__inner { padding: 4px 0 44px; }

.lineup__list, .lineup__flat { display: grid; grid-template-columns: repeat(4, 1fr); gap: 36px 12px; }
.lineup__flat--after { margin-top: 48px; }
.lineup__flat + .lineup { margin-top: 48px; }
.lp { min-width: 0; }
.lp > a { display: block; }
.lp__photo { display: block; width: 74%; aspect-ratio: 5 / 4; }
.lp__name { display: block; margin-top: 14px; font-size: .9375rem; font-weight: 700; line-height: 1.35; transition: color .25s var(--ease); }
.lp__name span { display: block; }
.lp > a:hover .lp__name { color: var(--taupe); }
.lp__note { display: block; margin-top: 8px; max-width: 220px; font-size: .8125rem; line-height: 1.4; }

/* ---------- Списки /ispolniteli/ ---------- */
.perf-search { display: flex; gap: 10px; max-width: 520px; margin-top: 30px; }
.perf-search input { flex: 1; min-width: 0; padding: 10px 14px; font: inherit; border: 1px solid var(--ink); border-radius: 0; background: #fff; }
.perf-search .btn { padding: 10px 24px; }
.perf-content { margin-top: 40px; }
.perf-sec + .perf-sec { margin-top: 72px; }
.perf-empty { color: var(--muted); }
.perf-more { margin-top: 36px; }
.people--list { margin-bottom: 8px; }

/* ---------- Страница исполнителя ---------- */
.person-solo__sil { display: block; aspect-ratio: 480 / 384; }
.person-solo__role { margin-bottom: 14px; font-size: 1.25rem; font-weight: 700; line-height: 1.35; }
.person-groups__list li { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 18px; padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 1.0625rem; }
.person-groups__list li:first-child { border-top: 1px solid var(--line); }
.person-groups__list a { font-weight: 700; }
.person-groups__list a:hover { color: var(--taupe); }
.person-groups__list span { font-size: .9375rem; color: var(--muted); }

/* ---------- Планшет и телефон ---------- */
@media (max-width: 1100px) {
    .leaders--3 .leader { flex-basis: calc((100% - 12px) / 2); }
}
@media (max-width: 900px) {
    .tabs { margin-top: 26px; }
    .page-collective .ev-content { margin-top: 34px; }
    .leader__name { font-size: 1.0625rem; }
    .leader__role, .leader__contacts { font-size: .8125rem; }
    .lineup--after, .lineup__flat--after { margin-top: 36px; }
    .lineup__btn { padding: 18px 0; }
    .lineup__list, .lineup__flat { grid-template-columns: repeat(3, 1fr); gap: 32px 16px; }
    .lp__photo { width: 100%; }
    .perf-content { margin-top: 30px; }
}
@media (max-width: 640px) {
    .tabs ul { gap: 26px; }
    .tabs a { font-size: .9375rem; }
    .leaders, .leaders--3 { flex-direction: column; align-items: flex-end; gap: 28px; }
    .leader, .leaders--3 .leader { flex: 0 0 auto; width: 100%; }
    .lineup__btn { padding: 16px 0; font-size: 1.125rem; }
    .lineup__inner { padding-bottom: 32px; }
    .lineup__list, .lineup__flat { grid-template-columns: repeat(2, 1fr); gap: 28px 14px; }
    .perf-search { max-width: none; }
    .perf-sec + .perf-sec { margin-top: 52px; }
}


/* ==========================================================================
   Правки от 22.10.2026: календарь, появление страницы
   ========================================================================== */
/* Календарь на ПК остаётся слева, пока не пролистан весь список событий (список растёт и сжимается — календарь подстраивается) */
@media (min-width: 901px) and (min-height: 600px) {
    .main-grid { align-items: start; }
    .col-cal { position: sticky; top: calc(var(--stick-h, 70px) + 16px); }
}

/* Плавное появление содержимого при открытии раздела */
@keyframes page-in { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
.js main#content, .js .site-footer { animation: page-in .5s var(--ease) backwards; }

.perf-search__reset { align-self: center; font-size: .875rem; white-space: nowrap; text-decoration: underline; }
.perf-search__reset:hover { color: var(--taupe); }


/* ---------- Слайдер ---------- */

/* Стрелки слайдера.
   Широкий экран (от 1400px): снаружи по бокам слайдера, на постоянной высоте — не «прыгают» при смене слайда
   (картинки слайдов одной высоты: 1280 × 0,44 ≈ 563px, середина — 282px).
   Уже 1400px и телефон: под слайдером и текстом, по центру. */
.hero__arrow {
    position: absolute; z-index: 4; display: block;
    width: 44px; height: 44px; padding: 0;
    border: 1px solid var(--ink); border-radius: 50%; background: #fff; color: var(--ink);
    cursor: pointer;
    transition: background-color .25s var(--ease), color .25s var(--ease);
}
.hero__arrow::before {
    content: ""; position: absolute; top: 50%; left: 50%; width: 10px; height: 10px;
    border-top: 2px solid currentColor; border-right: 2px solid currentColor;
}
.hero__arrow--next::before { transform: translate(-65%, -50%) rotate(45deg); }
.hero__arrow--prev::before { transform: translate(-35%, -50%) rotate(-135deg); }
.hero__arrow:hover, .hero__arrow:focus-visible { background: var(--ink); color: #fff; }

/* по умолчанию — под слайдером */
.hero__stage.has-nav { padding-bottom: 72px; }
.hero__stage.has-nav .hero__dots { bottom: 86px; }
.hero__arrow { bottom: 6px; left: 50%; }
.hero__arrow--prev { margin-left: -52px; }
.hero__arrow--next { margin-left: 8px; }
.hero > .container { padding-bottom: 36px; }

@media (min-width: 1400px) {
    .hero__stage.has-nav { padding-bottom: 0; }
    .hero__stage.has-nav .hero__dots { bottom: 22px; }
    .hero > .container { padding-bottom: 64px; }
    .hero__arrow { bottom: auto; top: 282px; margin-top: -22px; }
    .hero__arrow--prev { left: -58px; margin-left: 0; }
    .hero__arrow--next { left: auto; right: -58px; margin-left: 0; }
}

/* текст слайда не прилипает к правому краю */
.hero__text { padding-left: clamp(12px, 2.4vw, 32px); }
@media (max-width: 900px) { .hero__text { padding-left: 14px; } }


/* ==========================================================================
   Подписи к фото в галерее
   ========================================================================== */
.gal__cap {
    position: absolute; left: 0; right: 0; bottom: 0; z-index: 2; pointer-events: none;
    padding: 28px 14px 10px; color: #fff; font-size: .8125rem; line-height: 1.35;
    background: linear-gradient(to top, rgba(17, 17, 17, .72), rgba(17, 17, 17, 0));
    display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}
.lb__cap { margin: 0; padding: 12px 20px 16px; color: #fff; font-size: .9375rem; line-height: 1.45; text-align: center; background: #111; }
.lb__cap[hidden] { display: none; }

/* ==========================================================================
   Документы: группы кнопками над списком и страницы по 10
   ========================================================================== */
.docs-tabs { display: flex; flex-wrap: wrap; gap: 10px; margin: 0 0 24px; }
.docs-tab {
    padding: 9px 20px; font: inherit; font-size: .9375rem; font-weight: 700; line-height: 1.3;
    color: var(--ink); background: #fff; border: 1px solid var(--ink); cursor: pointer;
    transition: background-color .25s var(--ease), color .25s var(--ease);
}
.docs-tab:hover { background: var(--ph-a); }
.docs-tab.is-active, .docs-tab.is-active:hover { background: var(--ink); color: #fff; }
.docs-ptitle { margin: 0 0 6px; font-size: 1.125rem; font-weight: 700; }
.js .docs-ptitle, html:not(.js) .docs-tabs { display: none; }
.js .docs-panel { display: none; }
.js .docs-panel.is-active { display: block; }
.doc.is-off { display: none; }
.docs-pager { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-top: 28px; }
.docs-pager button {
    min-width: 40px; height: 40px; padding: 0 10px; font: inherit; font-size: .9375rem; line-height: 1;
    background: #fff; color: var(--ink); border: 1px solid var(--ink); cursor: pointer;
    transition: background-color .25s var(--ease), color .25s var(--ease);
}
.docs-pager button:hover:not(:disabled):not(.is-active) { background: var(--ph-a); }
.docs-pager button.is-active { background: var(--ink); color: #fff; }
.docs-pager button:disabled { opacity: .35; cursor: default; }
.docs-pager__gap { padding: 0 4px; color: var(--muted); }
@media (max-width: 640px) {
    .docs-tabs { gap: 8px; }
    .docs-tab { padding: 8px 14px; font-size: .875rem; }
    .docs-pager button { min-width: 36px; height: 36px; }
}

.ct-person { scroll-margin-top: 110px; }


/* Вложенное главное меню: использует существующую палитру и типографику сайта. */
.nav > ul { align-items: stretch; }
.nav__item { position: relative; }
.nav__item--has-children { padding-right: 24px; }
.nav__toggle { position: absolute; top: 50%; right: 5px; width: 24px; height: 28px; margin-top: -14px; border: 0; background: transparent; cursor: pointer; color: currentColor; }
.nav__toggle span { display: block; width: 7px; height: 7px; margin: 0 auto 3px; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: rotate(45deg); transition: transform .2s var(--ease); }
.nav__item.is-submenu-open > .nav__toggle span { transform: translateY(3px) rotate(225deg); }
.nav__submenu { display: none !important; position: absolute; z-index: 100; top: 100%; left: 0; min-width: 230px; max-width: 320px; padding: 7px 0 !important; margin: 0; flex-direction: column; align-items: stretch; border: 1px solid var(--line) !important; background: #fff; box-shadow: 0 10px 24px rgba(25, 30, 40, .12); }
.nav__item.is-submenu-open > .nav__submenu, .nav__item--has-children:hover > .nav__submenu, .nav__item--has-children:focus-within > .nav__submenu { display: flex !important; }
.nav__submenu .nav__item { width: 100%; border: 0 !important; padding: 0; }
.nav__submenu a { display: block; padding: 10px 15px; font-size: .875rem; line-height: 1.35; letter-spacing: 0; text-transform: none; white-space: normal; }
.nav__submenu .nav__item--has-children { padding-right: 30px; }
.nav__submenu .nav__toggle { right: 7px; }
.nav__submenu .nav__submenu { top: -7px; left: 100%; }
.nav__submenu .nav__item:hover > .nav__submenu, .nav__submenu .nav__item:focus-within > .nav__submenu { display: flex !important; }
.nav__submenu .nav__toggle span { transform: rotate(-45deg); }
.nav__submenu .nav__item.is-submenu-open > .nav__toggle span { transform: rotate(135deg); }
@media (max-width: 900px) {
    .nav > ul { border: 0; border-top: 1px solid var(--ink); }
    .nav > ul > .nav__item { border-bottom: 1px solid #ddd; }
    .nav__item--has-children { padding-right: 40px; }
    .nav__toggle { right: 4px; width: 36px; height: 36px; margin-top: -18px; }
    .nav__submenu { display: none !important; position: static; min-width: 0; max-width: none; padding: 0 0 8px 14px !important; border: 0 !important; border-left: 2px solid var(--line) !important; background: transparent; box-shadow: none; }
    .nav__item.is-submenu-open > .nav__submenu { display: flex !important; }
    .nav__submenu .nav__item { border: 0 !important; }
    .nav__submenu a { padding: 10px 10px; font-size: .9375rem; }
    .nav__submenu .nav__submenu { left: auto; top: auto; padding-left: 12px !important; }
    .nav__submenu .nav__item:hover > .nav__submenu, .nav__submenu .nav__item:focus-within > .nav__submenu { display: none !important; }
    .nav__submenu .nav__item.is-submenu-open > .nav__submenu { display: flex !important; }
    .nav__submenu .nav__toggle span { transform: rotate(45deg); }
    .nav__submenu .nav__item.is-submenu-open > .nav__toggle span { transform: translateY(3px) rotate(225deg); }
}
@media (max-width: 900px) {
    .nav__item--has-children:hover > .nav__submenu,
    .nav__item--has-children:focus-within > .nav__submenu { display: none !important; }
    .nav__item.is-submenu-open > .nav__submenu { display: flex !important; }
    .header__panel.is-open { overflow-y: auto; }
}
.years--pages-nested { margin-top: -10px; }
.years--pages-nested ul { padding-left: 18px; border-left: 2px solid var(--line); }
