

/* Start:/local/templates/teatr/template_styles.css?179602336479837*/
/* ==========================================================
   Театр кукол — стили шаблона
   ========================================================== */

/* ---------- Шрифт PT Sans (файлы в fonts/) ---------- */
@font-face { font-family: "PT Sans"; font-style: normal; font-weight: 400; font-display: swap;
    src: url("/local/templates/teatr/fonts/PT_SANS-WEB-REGULAR.woff2") format("woff2"), url("/local/templates/teatr/fonts/PT_SANS-WEB-REGULAR.TTF") format("truetype"); }
@font-face { font-family: "PT Sans"; font-style: italic; font-weight: 400; font-display: swap;
    src: url("/local/templates/teatr/fonts/PT_SANS-WEB-ITALIC.woff2") format("woff2"), url("/local/templates/teatr/fonts/PT_SANS-WEB-ITALIC.TTF") format("truetype"); }
@font-face { font-family: "PT Sans"; font-style: normal; font-weight: 600 900; font-display: swap;
    src: url("/local/templates/teatr/fonts/PT_SANS-WEB-BOLD.woff2") format("woff2"), url("/local/templates/teatr/fonts/PT_SANS-WEB-BOLD.TTF") format("truetype"); }
@font-face { font-family: "PT Sans"; font-style: italic; font-weight: 600 900; font-display: swap;
    src: url("/local/templates/teatr/fonts/PT_SANS-WEB-BOLDITALIC.woff2") format("woff2"), url("/local/templates/teatr/fonts/PT_SANS-WEB-BOLDITALIC.TTF") format("truetype"); }

:root {
    --red: #c4111f;
    --red-dark: #9c0c18;
    --red-deep: #8a0b15;
    --red-soft: #fbe9e7;
    --ink: #2b1214;
    --text: #3b2a2b;
    --muted: #7a6a69;
    --line: #efe4e0;
    --bg: #fbf8f6;
    --card: #ffffff;
    --cream: #fdf3e6;
    --badge: #fcecc9;
    --sky: #dcecf8;
    --radius: 16px;
    --radius-sm: 10px;
    --shadow: 0 6px 24px rgba(74, 20, 20, .08);
    --shadow-btn: 0 6px 16px rgba(196, 17, 31, .28);
    --font: "PT Sans", "Helvetica Neue", Arial, sans-serif;
    --container: 1200px;
}

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

html { -webkit-text-size-adjust: 100%; }

body {
    margin: 0;
    font-family: var(--font);
    font-size: 16px;
    line-height: 1.45;
    color: var(--text);
    background: var(--bg);
    -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; padding: 0; }
h1, h2, h3, p, ul { margin: 0; }
ul { padding: 0; list-style: none; }
[hidden] { display: none !important; }

:focus-visible { outline: 3px solid rgba(196, 17, 31, .45); outline-offset: 2px; border-radius: 6px; }

.container {
    width: 100%;
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 20px;
}

.icon { width: 16px; height: 16px; flex: none; }
.icon--lg { width: 20px; height: 20px; }

/* ---------- Кнопки ---------- */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 44px;
    padding: 0 26px;
    border-radius: 999px;
    font-weight: 600;
    font-size: 16px;
    white-space: nowrap;
    transition: background-color .2s, color .2s, box-shadow .2s, transform .2s;
}
.btn--primary {
    background: linear-gradient(180deg, #d8202e, var(--red-dark));
    color: #fff;
    box-shadow: var(--shadow-btn);
}
.btn--primary:hover { background: var(--red-dark); transform: translateY(-1px); }
.btn--outline {
    border: 2px solid var(--ink);
    color: var(--ink);
    background: transparent;
}
.btn--outline:hover { border-color: var(--red); color: var(--red); }
.btn--lg { min-height: 54px; padding: 0 30px; font-size: 18px; }
.btn.is-disabled { opacity: .55; cursor: default; pointer-events: none; }

.link-more {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--red);
    font-weight: 600;
    font-size: 16px;
    white-space: nowrap;
}
.link-more .icon { transition: transform .2s; }
.link-more:hover .icon { transform: translateX(4px); }

/* ---------- Верхняя полоса ---------- */

.topbar {
    background: #fff;
    border-bottom: 1px solid var(--line);
    font-size: 13px;
    color: var(--ink);
}
.topbar__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    min-height: 44px;
}
.topbar__contacts, .topbar__links { display: flex; align-items: center; gap: 24px; }
.topbar__links { gap: 12px; }
.topbar__item { display: inline-flex; align-items: center; gap: 8px; }
.topbar__item--small, .topbar__pill { line-height: 1.15; font-size: 12px; }
.topbar__pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 14px;
    border-radius: 999px;
    background: #f4efed;
}
.topbar__pill:hover, .topbar__item:hover { color: var(--red); }
.topbar__item--small { margin-left: 12px; }
.topbar__search { display: inline-flex; padding: 6px; margin-left: 8px; }
.topbar__search:hover { color: var(--red); }

/* ---------- Шапка ---------- */

.header__main {
    background: #fff;
    box-shadow: 0 2px 12px rgba(74, 20, 20, .05);
    position: relative;
    z-index: 10;
}
.header__inner {
    display: flex;
    align-items: center;
    gap: 32px;
    min-height: 92px;
}
.logo {
    display: flex;
    align-items: center;
    padding-right: 32px;
    border-right: 2px solid var(--red-soft);
}
.logo__img { display: block; width: 240px; height: auto; aspect-ratio: 172 / 52; }

.header__nav { display: flex; align-items: center; gap: 32px; flex: 1; }
.nav__list { display: flex; gap: 30px; }
.nav__link {
    position: relative;
    font-weight: 500;
    font-size: 15px;
    color: var(--ink);
    padding: 8px 0;
}
.nav__link::after {
    content: "";
    position: absolute;
    left: 0; right: 0; bottom: 0;
    height: 2px;
    background: var(--red);
    transform: scaleX(0);
    transition: transform .2s;
}
.nav__link:hover, .nav__link.is-active { color: var(--red); }
.nav__link:hover::after, .nav__link.is-active::after { transform: scaleX(1); }

.header__buy { margin-left: auto; min-height: 48px; }
.burger { display: none; margin-left: auto; padding: 8px; color: var(--ink); }

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

.hero {
    position: relative;
    overflow: hidden;
    background: linear-gradient(90deg, #fbf1ea 0%, #f3ddd0 100%);
}
.hero__viewport { overflow: hidden; }
.hero__track {
    display: flex;
    transition: transform .6s cubic-bezier(.22, .61, .36, 1);
}
.hero__slide {
    position: relative;
    flex: 0 0 100%;
    min-height: 460px;
    display: flex;
    align-items: center;
}
.hero__image {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: right center;
}
.hero__slide::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(251, 244, 238, .97) 0%, rgba(251, 244, 238, .85) 32%, rgba(251, 244, 238, 0) 58%);
    z-index: 1;
}
.hero__content {
    position: relative;
    z-index: 2;
    padding-top: 48px;
    padding-bottom: 72px;
    padding-left: 110px;
}
.hero__label {
    font-size: 18px;
    font-weight: 700;
    letter-spacing: .38em;
    text-transform: uppercase;
    color: var(--ink);
    margin-bottom: 14px;
}
.hero__title {
    font-size: 56px;
    font-weight: 800;
    line-height: 1.02;
    letter-spacing: -.02em;
    color: var(--ink);
    max-width: 560px;
}
.hero__text {
    margin-top: 16px;
    font-size: 18px;
    color: var(--ink);
    max-width: 380px;
}
.hero .btn { margin-top: 26px; }

.hero__arrow {
    position: absolute;
    top: 50%;
    z-index: 3;
    width: 48px;
    height: 48px;
    margin-top: -24px;
    border-radius: 50%;
    background: #fff;
    color: var(--ink);
    display: grid;
    place-items: center;
    box-shadow: 0 4px 14px rgba(0, 0, 0, .12);
    transition: color .2s, transform .2s;
}
.hero__arrow:hover { color: var(--red); transform: scale(1.06); }
/* стрелки из макета: красное кольцо с галочкой на белом круге */
.hero__arrow { color: var(--red-deep); padding: 0; }
.hero__arrow-ic { width: 100%; height: 100%; }
.hero__arrow--prev { left: 24px; }
.hero__arrow--next { right: 24px; }

.hero__dots {
    position: absolute;
    left: 0; right: 0; bottom: 22px;
    z-index: 3;
    display: flex;
    gap: 10px;
    padding-left: 40px;
}
.hero__dot {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: rgba(255, 255, 255, .9);
    box-shadow: 0 0 0 1px rgba(0, 0, 0, .06);
    transition: background-color .2s, transform .2s;
}
.hero__dot.is-active { background: var(--red); transform: scale(1.15); }
/* точки из макета: заполненная — текущий слайд, кольцо — остальные */
.hero__dot { width: 14px; height: 14px; background: none; box-shadow: none; color: var(--red-deep); }
.hero__dot svg { width: 100%; height: 100%; display: block; }
.hero__dot .hero__dot-on, .hero__dot.is-active .hero__dot-off { display: none; }
.hero__dot.is-active .hero__dot-on { display: block; }
.hero__dot.is-active { background: none; transform: none; }
.hero__dot:not(.is-active) .hero__dot-off { filter: drop-shadow(0 0 2px rgba(255, 255, 255, .9)); }

/* ---------- Быстрые ссылки ---------- */

.quick {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 14px;
    margin-top: 24px;
}
.quick-card {
    position: relative;
    display: flex;
    align-items: center;
    min-height: 104px;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: transform .2s, box-shadow .2s;
}
.quick-card:hover { transform: translateY(-3px); box-shadow: 0 10px 28px rgba(74, 20, 20, .14); }
.quick-card__pic {
    align-self: stretch;
    width: 46%;
    flex: none;
}
.quick-card__pic img { width: 100%; height: 100%; object-fit: cover; }
.quick-card__text {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px 20px 16px 8px;
}
.quick-card > .quick-card__text:first-child { padding-left: 28px;
    font-size: 20px;
    font-weight: 600;
    line-height: 1.15;
}
.quick-card--red { background: linear-gradient(135deg, #b90f1c, var(--red-deep)); color: #fff; }
.quick-card--cream { background: var(--cream); color: var(--red); }
.quick-card--sky { background: linear-gradient(135deg, #e7f1fa, #b9d6ef); color: var(--ink); }

/* ---------- Секции ---------- */

.section { padding: 40px 0 16px; }
.section__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 24px;
}
.section__title {
    font-size: 52px;
    font-weight: 800;
    letter-spacing: -.02em;
    line-height: 1;
    color: var(--ink);
}

/* ---------- Афиша ---------- */

.afisha__head .tabs { margin-right: auto; margin-left: 72px; }
.tabs {
    display: inline-flex;
    padding: 4px;
    border-radius: 999px;
    background: #f1ebe8;
}
.tabs__btn {
    min-width: 140px;
    min-height: 40px;
    padding: 0 22px;
    border-radius: 999px;
    font-size: 16px;
    font-weight: 500;
    color: var(--ink);
    transition: background-color .2s, color .2s;
}
.tabs__btn:hover { color: var(--red); }
.tabs__btn.is-active {
    background: linear-gradient(180deg, #d8202e, var(--red-dark));
    color: #fff;
    font-weight: 600;
    box-shadow: var(--shadow-btn);
}

.afisha__list {
    background: var(--card);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 8px 24px;
}
.afisha__month { font-size: 26px; font-weight: 800; color: var(--ink); margin: 32px 0 14px; }
.afisha__panel:first-of-type .afisha__month { margin-top: 0; }
.afisha__empty { color: var(--muted); padding: 24px 0; }

.show {
    display: grid;
    grid-template-columns: 70px 92px 136px 1fr auto 180px;
    align-items: center;
    gap: 0 24px;
    min-height: 82px;
    padding: 8px 0;
    border-bottom: 1px solid var(--line);
}
.show:last-child { border-bottom: 0; }
.show__date { display: flex; flex-direction: column; align-items: center; line-height: 1; }
.show__day { font-size: 40px; font-weight: 800; color: var(--red); letter-spacing: -.02em; }
.show__weekday { font-size: 17px; font-weight: 700; color: var(--ink); margin-top: 4px; }
.show__time { font-size: 24px; font-weight: 700; color: var(--red); }
.show__pic {
    width: 136px;
    height: 64px;
    border-radius: var(--radius-sm);
    overflow: hidden;
    background: linear-gradient(135deg, #f3d9c9, #e7b8a3);
}
.show__pic img { width: 100%; height: 100%; object-fit: cover; }
.show__author { font-size: 14px; color: var(--text); margin-bottom: 2px; }
.show__title { font-size: 19px; font-weight: 700; line-height: 1.15; color: var(--ink); }
.show__age {
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--badge);
    font-size: 15px;
    font-weight: 700;
    color: var(--ink);
}
.show__buy { grid-column: 6; width: 100%; }

/* ---------- Новости ---------- */

.news { padding-bottom: 64px; }
.news__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}
.news-card {
    display: grid;
    grid-template-columns: 52% 1fr;
    min-height: 150px;
    background: var(--card);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: transform .2s, box-shadow .2s;
}
.news-card:hover { transform: translateY(-3px); box-shadow: 0 10px 28px rgba(74, 20, 20, .14); }
.news-card__pic { background: linear-gradient(135deg, #f3d9c9, #e7b8a3); }
.news-card__pic img { width: 100%; height: 100%; object-fit: cover; }
.news-card__body {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 18px 16px 52px;
}
.news-card__date { font-size: 13px; color: var(--red); }
.news-card__title { font-size: 16px; font-weight: 600; line-height: 1.25; color: var(--ink); }
.news-card__arrow {
    position: absolute;
    right: 14px;
    bottom: 14px;
    display: grid;
    place-items: center;
    width: 28px;
    height: 28px;
    border: 1.5px solid var(--red);
    border-radius: 50%;
    color: var(--red);
    transition: background-color .2s, color .2s;
}
.news-card:hover .news-card__arrow { background: var(--red); color: #fff; }
/* стрелка в кружке из макета */
.news-card__arrow { width: 32px; height: 32px; border: 0; background: none; --ic-light: #fff; }
.news-card__arrow svg { width: 100%; height: 100%; }
.news-card:hover .news-card__arrow { background: none; color: var(--red); --ic-light: var(--red-soft); }

/* ---------- Внутренние страницы ---------- */

.page { padding-top: 32px; padding-bottom: 64px; }
.page__title { font-size: 44px; font-weight: 800; color: var(--ink); margin: 8px 0 28px; letter-spacing: -.02em; }
.page .afisha, .page .news { padding-top: 0; }

/* ---------- Подвал ---------- */

.footer { position: relative; color: #fff; margin-top: 24px; }
.footer__wave { display: block; width: 100%; height: 48px; fill: var(--red-deep); margin-bottom: -1px; }
.footer__body { background: linear-gradient(180deg, var(--red-deep), #7a0912); padding-bottom: 20px; }

.footer__top {
    display: grid;
    grid-template-columns: auto 1.3fr 1.3fr auto;
    gap: 32px;
    align-items: center;
    padding-top: 24px;
    padding-bottom: 28px;
}
.footer__top > * + * { border-left: 1px solid rgba(255, 255, 255, .25); padding-left: 32px; }
.footer__logo-img {
    display: block;
    width: 220px;
    height: auto;
    aspect-ratio: 172 / 52;
    /* светлая версия логотипа на красном фоне */
    --logo-red: #fff;
    --logo-ink: #fff;
    --logo-white: var(--red-deep);
    --logo-gold: #f2cf7e;
}
.footer__contacts { display: grid; gap: 12px; font-size: 14px; }
.footer__contacts li { display: flex; align-items: flex-start; gap: 12px; }
.footer__contacts a:hover, .footer__menu a:hover, .footer__legal a:hover, .partner:hover { opacity: .8; }
.footer__menu { display: grid; grid-template-columns: 1fr 1fr; gap: 0 32px; font-size: 15px; }
.footer__menu ul { display: grid; gap: 10px; }
.footer__menu ul + ul { border-left: 1px solid rgba(255, 255, 255, .25); padding-left: 32px; }
.footer__social { display: flex; flex-direction: column; align-items: center; gap: 14px; }
.social { display: flex; gap: 14px; }
.social__link {
    display: grid;
    place-items: center;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: #fff;
    color: var(--red-deep);
    font-size: 13px;
    font-weight: 800;
    transition: transform .2s;
}
.social__link:hover { transform: scale(1.08); }
/* значки соцсетей из макета: белый круг, буква «вырезана» и видна красным фоном подвала */
.social__link--icon { width: 40px; height: 40px; background: none; color: #fff; }
.social__link--icon svg { width: 100%; height: 100%; }
.footer__site { font-size: 17px; font-weight: 500; }

.footer__partners {
    display: grid;
    grid-template-columns: 1.4fr 1.2fr .9fr 1fr .9fr 1fr;
    gap: 0;
    padding-top: 20px;
    padding-bottom: 20px;
    border-top: 1px solid rgba(255, 255, 255, .2);
    border-bottom: 1px solid rgba(255, 255, 255, .2);
}
.partner {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 4px 16px;
    font-size: 11.5px;
    line-height: 1.3;
}
.partner + .partner { border-left: 1px solid rgba(255, 255, 255, .25); }
.partner:first-child { padding-left: 0; }
.partner__icon { width: 34px; height: 34px; }
.partner__gerb { width: 44px; height: 44px; flex: none; }
.partner--strong .partner__icon { width: 40px; height: 40px; }
.partner--strong { font-size: 16px; font-weight: 700; }

.footer__bottom {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    padding-top: 18px;
    font-size: 12.5px;
    opacity: .92;
}
.footer__legal { display: flex; gap: 28px; }
.footer__legal a + a { border-left: 1px solid rgba(255, 255, 255, .5); padding-left: 28px; }

/* ==========================================================
   Адаптив
   ========================================================== */

@media (max-width: 1180px) {
    .header__inner { gap: 20px; }
    .logo { padding-right: 20px; }
    .logo__img { width: 200px; }
    .nav__list { gap: 20px; }
    .header__nav { gap: 20px; }
    .hero__content { padding-left: 90px; }
    .afisha__head .tabs { margin-left: 24px; }
    .tabs__btn { min-width: 110px; }
    .show { grid-template-columns: 60px 80px 120px 1fr auto 170px; gap: 0 16px; }
    .show__pic { width: 120px; }
    .footer__top { grid-template-columns: 1fr 1fr; }
    .footer__top > * + * { border-left: 0; padding-left: 0; }
    .footer__partners { grid-template-columns: repeat(3, 1fr); row-gap: 16px; }
    .partner:nth-child(4) { border-left: 0; padding-left: 0; }
}

@media (max-width: 1024px) {
    .topbar__contacts .topbar__item:first-child { display: none; }
    .burger { display: inline-flex; order: 3; margin-left: 0; }
    .header__buy { order: 2; }
    .header__nav {
        position: absolute;
        top: 100%;
        left: 0; right: 0;
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
        padding: 20px;
        background: #fff;
        box-shadow: 0 12px 24px rgba(74, 20, 20, .12);
        display: none;
    }
    .header__nav.is-open { display: flex; }
    .nav__list { flex-direction: column; gap: 6px; }
    .nav__link { font-size: 18px; }
    .news__grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 860px) {
    .topbar__pill, .topbar__item--small span { display: none; }
    .topbar__item--small { margin-left: 0; }
    .logo { border-right: 0; padding-right: 0; }
    .hero__slide { min-height: 420px; align-items: flex-end; }
    .hero__slide::before { background: linear-gradient(0deg, rgba(251, 244, 238, .97) 0%, rgba(251, 244, 238, .9) 45%, rgba(251, 244, 238, 0) 75%); }
    .hero__content { padding: 120px 20px 64px; }
    .hero__title { font-size: 38px; }
    .hero__label { font-size: 14px; }
    .hero__text { font-size: 16px; }
    .hero__arrow { display: none; }
    .hero__dots { padding-left: 20px; }
    .quick { grid-template-columns: 1fr; }
    .section__title { font-size: 38px; }
    .afisha__head { flex-wrap: wrap; }
    .afisha__head .tabs { order: 3; margin: 0; width: 100%; }
    .tabs__btn { flex: 1; min-width: 0; padding: 0 10px; }
    .afisha__list { padding: 4px 16px; }
    .show {
        grid-template-columns: 56px 1fr auto;
        grid-template-areas:
            "date info age"
            "date time time"
            "buy buy buy";
        gap: 6px 14px;
        padding: 16px 0;
    }
    .show__date { grid-area: date; }
    .show__time { grid-area: time; font-size: 17px; }
    .show__pic { display: none; }
    .show__info { grid-area: info; }
    .show__age { grid-area: age; width: 38px; height: 38px; font-size: 13px; }
    .show__buy { grid-area: buy; margin-top: 6px; }
    .show__title { font-size: 17px; }
    .news__grid { grid-template-columns: 1fr; }
    .footer__top, .footer__partners { grid-template-columns: 1fr; }
    .partner + .partner { border-left: 0; padding-left: 0; }
    .partner { padding-left: 0; }
    .footer__bottom { flex-direction: column; }
    .page__title { font-size: 32px; }
}

@media (max-width: 520px) {
    .header__inner { min-height: 72px; gap: 12px; }
    .logo__img { width: 160px; }
    .header__buy { padding: 0 14px; min-height: 40px; font-size: 14px; }
    .header__buy .icon { display: none; }
    .topbar__contacts { font-size: 12px; }
    .hero__title { font-size: 30px; }
    .footer__menu { grid-template-columns: 1fr 1fr; }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { transition: none !important; }
}

/* ==========================================================
   Репертуар
   ========================================================== */

.empty-note { color: var(--muted); padding: 24px 0; }

.chips { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 28px; }
.chips__btn {
    min-height: 40px;
    padding: 0 20px;
    border-radius: 999px;
    background: #f1ebe8;
    font-weight: 600;
    color: var(--ink);
    transition: background-color .2s, color .2s;
}
.chips__btn:hover { color: var(--red); }
.chips__btn.is-active { background: linear-gradient(180deg, #d8202e, var(--red-dark)); color: #fff; box-shadow: var(--shadow-btn); }

.rep-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.rep-card {
    display: flex;
    flex-direction: column;
    background: var(--card);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: transform .2s, box-shadow .2s;
}
.rep-card[hidden] { display: none; }
.rep-card:hover { transform: translateY(-4px); box-shadow: 0 14px 32px rgba(74, 20, 20, .15); }
.rep-card__pic {
    position: relative;
    aspect-ratio: 3 / 2;
    background: linear-gradient(135deg, #f3d9c9, #e7b8a3);
    overflow: hidden;
}
.rep-card__pic img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.rep-card:hover .rep-card__pic img { transform: scale(1.04); }
.rep-card__age {
    position: absolute;
    top: 14px;
    left: 14px;
    display: grid;
    place-items: center;
    width: 46px;
    height: 46px;
    border-radius: 50%;
    background: var(--badge);
    font-weight: 700;
    font-size: 15px;
    color: var(--ink);
    box-shadow: 0 2px 8px rgba(0, 0, 0, .15);
}
.rep-card__body { display: flex; flex-direction: column; gap: 6px; padding: 18px 20px 20px; flex: 1; }
.rep-card__author { font-size: 14px; color: var(--muted); }
.rep-card__title { font-size: 20px; font-weight: 700; line-height: 1.2; color: var(--ink); }
.rep-card__foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-top: auto;
    padding-top: 14px;
}
.rep-card__meta { font-size: 13px; color: var(--muted); }
.rep-card__more { display: inline-flex; align-items: center; gap: 8px; margin-left: auto; color: var(--red); font-weight: 600; font-size: 15px; }
.rep-card__more .icon { transition: transform .2s; }
.rep-card:hover .rep-card__more .icon { transform: translateX(4px); }

/* ==========================================================
   Страница спектакля
   ========================================================== */

.show-page { display: grid; gap: 48px; }

.show-hero {
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    gap: 48px;
    align-items: center;
    background: var(--card);
    border-radius: 24px;
    padding: 24px;
    box-shadow: var(--shadow);
}
.show-hero__media {
    position: relative;
    aspect-ratio: 3 / 2;
    border-radius: var(--radius);
    overflow: hidden;
    background: linear-gradient(135deg, #f3d9c9, #e7b8a3);
}
.show-hero__media img { width: 100%; height: 100%; object-fit: cover; }
.show-hero__age {
    position: absolute;
    top: 16px;
    left: 16px;
    display: grid;
    place-items: center;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: var(--badge);
    font-weight: 800;
    font-size: 17px;
    color: var(--ink);
    box-shadow: 0 2px 10px rgba(0, 0, 0, .18);
}
.show-hero__info { padding-right: 24px; }
.show-hero__label {
    font-size: 14px;
    font-weight: 700;
    letter-spacing: .3em;
    text-transform: uppercase;
    color: var(--red);
    margin-bottom: 12px;
}
.show-hero__title {
    font-size: 46px;
    font-weight: 800;
    line-height: 1.05;
    letter-spacing: -.02em;
    color: var(--ink);
}
.show-hero__author { margin-top: 10px; font-size: 18px; color: var(--muted); }
.show-hero__lead { margin-top: 20px; font-size: 17px; color: var(--text); }
.show-hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }

.facts { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.facts:empty { display: none; }
.facts__item {
    display: flex;
    flex-direction: column;
    padding: 10px 16px;
    border-radius: 12px;
    background: var(--cream);
    font-weight: 700;
    color: var(--ink);
}
.facts__label { font-size: 12px; font-weight: 500; color: var(--muted); }

.show-section-title, .sessions__title {
    font-size: 36px;
    font-weight: 800;
    letter-spacing: -.02em;
    color: var(--ink);
    margin-bottom: 20px;
}

/* Сеансы */
.sessions { scroll-margin-top: 24px; }
.sessions__list {
    background: var(--card);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 6px 24px;
}
.session {
    display: grid;
    grid-template-columns: 110px 110px 1fr 200px;
    align-items: center;
    gap: 0 24px;
    min-height: 84px;
    padding: 10px 0;
    border-bottom: 1px solid var(--line);
}
.session:last-child { border-bottom: 0; }
.session__date { display: flex; flex-direction: column; line-height: 1; }
.session__day { font-size: 40px; font-weight: 800; color: var(--red); letter-spacing: -.02em; }
.session__month { font-size: 14px; font-weight: 600; color: var(--ink); margin-top: 4px; }
.session__when { display: flex; flex-direction: column; line-height: 1.1; }
.session__weekday { font-size: 14px; font-weight: 700; color: var(--muted); }
.session__time { font-size: 24px; font-weight: 700; color: var(--red); }
.session__meta { display: flex; flex-wrap: wrap; gap: 4px 14px; color: var(--text); font-size: 15px; }
.session__left { color: var(--red); font-weight: 600; }
.session__buy { width: 100%; }
.session--skeleton {
    display: block;
    min-height: 64px;
    margin: 10px 0;
    border-radius: 12px;
    border: 0;
    background: linear-gradient(90deg, #f4eeeb 0%, #fbf8f6 50%, #f4eeeb 100%);
    background-size: 200% 100%;
    animation: skeleton 1.2s infinite linear;
}
@keyframes skeleton { from { background-position: 200% 0; } to { background-position: -200% 0; } }
.sessions__empty {
    padding: 24px;
    border-radius: var(--radius);
    background: var(--cream);
    color: var(--ink);
}
.sessions__empty a { color: var(--red); font-weight: 600; }

/* Описание */
.show-about { display: grid; gap: 48px; }
.show-about--with-aside { grid-template-columns: 1.8fr 1fr; }
.prose { font-size: 17px; line-height: 1.65; color: var(--text); max-width: 760px; }
.prose p + p, .prose ul, .prose ol, .prose h3 { margin-top: 14px; }
.prose ul, .prose ol { padding-left: 22px; }
.prose ul { list-style: disc; }
.prose h3 { font-size: 20px; color: var(--ink); }
.prose strong, .prose b { color: var(--ink); }
.show-about__crew {
    align-self: start;
    padding: 24px;
    border-radius: var(--radius);
    background: var(--card);
    box-shadow: var(--shadow);
}
.show-about__crew .show-section-title { font-size: 24px; margin-bottom: 14px; }
.crew { font-size: 15px; line-height: 1.7; color: var(--text); }

/* Галерея */
.show-gallery__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.show-gallery__item {
    display: block;
    aspect-ratio: 4 / 3;
    border-radius: 12px;
    overflow: hidden;
    background: #f1e4dd;
}
.show-gallery__item:first-child { grid-column: span 2; grid-row: span 2; aspect-ratio: auto; }
.show-gallery__item img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.show-gallery__item:hover img { transform: scale(1.05); }

.lightbox {
    width: 100vw;
    height: 100vh;
    max-width: none;
    max-height: none;
    margin: 0;
    padding: 0;
    border: 0;
    background: rgba(20, 8, 9, .94);
}
.lightbox[open] { display: grid; place-items: center; }
.lightbox::backdrop { background: rgba(20, 8, 9, .9); }
.lightbox__img { max-width: 90vw; max-height: 84vh; object-fit: contain; border-radius: 8px; }
.lightbox__close {
    position: absolute;
    top: 16px;
    right: 24px;
    color: #fff;
    font-size: 40px;
    line-height: 1;
}
.lightbox__nav {
    position: absolute;
    top: 50%;
    width: 52px;
    height: 52px;
    margin-top: -26px;
    border-radius: 50%;
    background: rgba(255, 255, 255, .15);
    color: #fff;
    display: grid;
    place-items: center;
}
.lightbox__nav:hover { background: rgba(255, 255, 255, .3); }
.lightbox__nav--prev { left: 24px; }
.lightbox__nav--next { right: 24px; }
.lightbox__counter { position: absolute; bottom: 20px; left: 0; right: 0; text-align: center; color: rgba(255, 255, 255, .8); font-size: 14px; }

.show-page__back { margin-top: -16px; }

/* Ссылка на спектакль в афише */
.show__title a:hover { color: var(--red); }

@media (max-width: 1024px) {
    .rep-grid { grid-template-columns: 1fr 1fr; }
    .show-hero { grid-template-columns: 1fr; gap: 24px; }
    .show-hero__info { padding: 0 8px 8px; }
    .show-about--with-aside { grid-template-columns: 1fr; }
    .show-gallery__grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 860px) {
    .show-page { gap: 36px; }
    .show-hero { padding: 12px; border-radius: 20px; }
    .show-hero__title { font-size: 32px; }
    .show-section-title, .sessions__title { font-size: 28px; }
    .sessions__list { padding: 4px 16px; }
    .session {
        grid-template-columns: auto 1fr;
        grid-template-areas: "date when" "date meta" "buy buy";
        gap: 4px 16px;
        padding: 16px 0;
    }
    .session__date { grid-area: date; align-self: center; }
    .session__when { grid-area: when; flex-direction: row; align-items: baseline; gap: 8px; }
    .session__time { font-size: 20px; }
    .session__meta { grid-area: meta; font-size: 14px; }
    .session__buy { grid-area: buy; margin-top: 8px; }
    .session--skeleton { grid-template-areas: none; }
    .show-gallery__grid { grid-template-columns: 1fr 1fr; }
    .lightbox__nav { display: none; }
}

@media (max-width: 600px) {
    .rep-grid { grid-template-columns: 1fr; }
}

/* ==========================================================
   Новости: список, страница, постраничная навигация
   ========================================================== */

.page .section { padding-left: 0; padding-right: 0; }
.page .section > .container { padding: 0; }

.news-list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.news-tile {
    display: flex;
    flex-direction: column;
    background: var(--card);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: transform .2s, box-shadow .2s;
}
.news-tile:hover { transform: translateY(-4px); box-shadow: 0 14px 32px rgba(74, 20, 20, .15); }
.news-tile__pic {
    aspect-ratio: 3 / 2;
    overflow: hidden;
    background: linear-gradient(135deg, #f3d9c9, #e7b8a3);
}
.news-tile__pic img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.news-tile:hover .news-tile__pic img { transform: scale(1.04); }
.news-tile__body { display: flex; flex-direction: column; gap: 8px; padding: 18px 20px 20px; flex: 1; }
.news-tile__date { font-size: 13px; font-weight: 600; color: var(--red); }
.news-tile__title { font-size: 18px; font-weight: 700; line-height: 1.25; color: var(--ink); }
.news-tile__text {
    font-size: 14px;
    color: var(--muted);
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.news-tile__more {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: auto;
    padding-top: 10px;
    color: var(--red);
    font-weight: 600;
    font-size: 15px;
}
.news-tile__more .icon { transition: transform .2s; }
.news-tile:hover .news-tile__more .icon { transform: translateX(4px); }

.pager {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin-top: 40px;
}
.pager__page, .pager__arrow {
    display: grid;
    place-items: center;
    min-width: 44px;
    height: 44px;
    padding: 0 12px;
    border-radius: 999px;
    background: var(--card);
    box-shadow: var(--shadow);
    font-weight: 600;
    color: var(--ink);
    transition: background-color .2s, color .2s;
}
.pager__page:hover, .pager__arrow:hover { color: var(--red); }
.pager__page.is-active { background: linear-gradient(180deg, #d8202e, var(--red-dark)); color: #fff; box-shadow: var(--shadow-btn); }
.pager__arrow.is-disabled { opacity: .35; box-shadow: none; }
.pager__gap { padding: 0 4px; color: var(--muted); }

.news-page { display: grid; gap: 32px; max-width: 900px; margin: 0 auto; }
.news-page__head { display: grid; gap: 12px; }
.news-page__date { font-size: 15px; font-weight: 700; color: var(--red); letter-spacing: .02em; }
.news-page__title {
    font-size: 42px;
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -.02em;
    color: var(--ink);
}
.news-page__cover { margin: 0; border-radius: 20px; overflow: hidden; box-shadow: var(--shadow); background: #f1e4dd; }
.news-page__cover img { width: 100%; max-height: 600px; object-fit: cover; }
.news-page__text { max-width: none; }
.news-page__video { position: relative; aspect-ratio: 16 / 9; border-radius: var(--radius); overflow: hidden; background: #000; }
.news-page__video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.news-page + .news { margin-top: 24px; }
.news-page + .news .section__title { font-size: 36px; }

@media (max-width: 1024px) {
    .news-list { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 860px) {
    .news-page__title { font-size: 30px; }
    .news-page { gap: 24px; }
    .pager__page, .pager__arrow { min-width: 40px; height: 40px; padding: 0 10px; }
}
@media (max-width: 600px) {
    .news-list { grid-template-columns: 1fr; }
}

/* ==========================================================
   QuickTickets: Пушкинская карта
   ========================================================== */

.pushkin-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 3px 10px;
    border-radius: 999px;
    background: #eef3ff;
    color: #2d4a9a;
    font-size: 12px;
    font-weight: 600;
    white-space: nowrap;
}
.pushkin-badge::before {
    content: "";
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: currentColor;
}
.show__info .pushkin-badge { margin-bottom: 4px; }

/* ==========================================================
   Контакты (/contacts/)
   ========================================================== */

.contacts { display: grid; gap: 24px; padding-bottom: 48px; }
.contacts__card {
    background: var(--card);
    border-radius: 20px;
    box-shadow: var(--shadow);
    padding: 32px;
}
.contacts__top { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 24px; }
.contacts__card--main { display: grid; gap: 28px; align-content: start; }

.contacts__item { display: grid; grid-template-columns: 48px 1fr; gap: 16px; align-items: start; }
.contacts__icon {
    display: grid; place-items: center;
    width: 48px; height: 48px; border-radius: 50%;
    background: var(--red-soft); color: var(--red);
}
.contacts__icon .icon { width: 22px; height: 22px; }
.contacts__icon--muted { background: #f3ece9; color: var(--muted); }

.contacts__label {
    font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
    color: var(--muted); margin-bottom: 6px;
}
.contacts__value { font-size: 22px; font-weight: 700; color: var(--ink); line-height: 1.25; }
.contacts__value a:hover { color: var(--red); }
.contacts__sub { font-size: 15px; color: var(--muted); margin-top: 4px; }
.contacts__sub a { color: var(--text); border-bottom: 1px solid var(--line); }
.contacts__sub a:hover { color: var(--red); border-color: currentColor; }

.contacts__route {
    display: inline-flex; align-items: center; gap: 8px; margin-top: 10px;
    color: var(--red); font-weight: 600; font-size: 15px;
}
.contacts__route .icon { transition: transform .2s; }
.contacts__route:hover .icon { transform: translateX(4px); }

.contacts__phones { display: grid; gap: 10px; }
.contacts__phones li { display: grid; gap: 2px; }
.contacts__phones a { font-size: 20px; font-weight: 700; color: var(--ink); white-space: nowrap; }
.contacts__phones a:hover { color: var(--red); }
.contacts__phones li.is-main a { font-size: 24px; color: var(--red); }
.contacts__phones span { font-size: 14px; color: var(--muted); }

.contacts__map {
    position: relative; min-height: 420px;
    border-radius: 20px; overflow: hidden; box-shadow: var(--shadow); background: #efe7e3;
}
.contacts__map iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* Часы работы */
.contacts__hours { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.hours__title { font-size: 22px; font-weight: 800; color: var(--ink); margin-bottom: 16px; }
.hours__list { margin: 0; display: grid; }
.hours__row {
    display: flex; justify-content: space-between; gap: 12px;
    padding: 9px 12px; margin: 0 -12px; border-radius: var(--radius-sm);
    font-size: 15px;
}
.hours__row + .hours__row { border-top: 1px dashed var(--line); }
.hours__row dt { color: var(--text); }
.hours__row dd { margin: 0; font-weight: 700; color: var(--ink); white-space: nowrap; }
.hours__row.is-off dd { font-weight: 500; color: var(--muted); }
.hours__row.is-today { background: var(--red-soft); border-top-color: transparent; }
.hours__row.is-today + .hours__row { border-top-color: transparent; }
.hours__row.is-today dt { font-weight: 700; color: var(--ink); }
.hours__row.is-today small {
    margin-left: 6px; padding: 2px 8px; border-radius: 999px;
    background: var(--red); color: #fff; font-size: 11px; font-weight: 700; vertical-align: 1px;
}
.hours__note { margin-top: 14px; font-size: 14px; color: var(--muted); }

/* Соцсети */
.contacts__social { display: flex; flex-direction: column; background: var(--cream); }
.contacts__social .contacts__sub { margin: -8px 0 18px; }
.c-social { display: grid; gap: 10px; }
.c-social__link {
    display: flex; align-items: center; justify-content: space-between;
    padding: 12px 18px; border-radius: 999px; background: #fff;
    font-weight: 600; color: var(--ink);
    transition: background-color .2s, color .2s;
}
.c-social__link:hover { background: var(--red); color: #fff; }
.c-social__link .icon { transition: transform .2s; }
.c-social__link:hover .icon { transform: translateX(4px); }
.contacts__tickets { margin-top: auto; align-self: flex-start; }
.contacts__social .c-social { margin-bottom: 24px; }

/* Обратная связь */
.contacts__feedback { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: 40px; padding: 40px; }
.contacts__feedback .section__title { font-size: 40px; margin-bottom: 12px; }

.feedback__form { display: grid; grid-template-columns: 1fr 1fr; gap: 16px 20px; }
.field { display: grid; gap: 6px; }
.field--wide { grid-column: 1 / -1; }
.field__label { font-size: 14px; font-weight: 600; color: var(--ink); }
.field__input {
    width: 100%; min-height: 48px; padding: 12px 16px;
    font: inherit; color: var(--text);
    background: var(--bg); border: 2px solid var(--line); border-radius: 12px;
    transition: border-color .2s, background-color .2s;
}
textarea.field__input { resize: vertical; min-height: 140px; }
.field__input:focus { outline: none; border-color: var(--red); background: #fff; }
.field__captcha { display: flex; align-items: center; gap: 12px; }
.field__captcha img { border-radius: 8px; flex: none; }
.field__captcha .field__input { max-width: 200px; }
.field--check { grid-template-columns: 20px 1fr; gap: 10px; align-items: start; font-size: 13px; color: var(--muted); cursor: pointer; }
.field--check input { width: 18px; height: 18px; margin: 1px 0 0; accent-color: var(--red); }

.feedback__msg { padding: 16px 20px; border-radius: 12px; margin-bottom: 16px; font-size: 15px; }
.feedback__msg--error { background: var(--red-soft); color: var(--red-deep); }
.feedback__msg--ok { display: flex; align-items: center; gap: 12px; background: #e8f5ec; color: #1f6b3a; font-weight: 600; }
.feedback__msg--ok .icon { width: 24px; height: 24px; }

/* Учредитель */
.contacts__founder {
    display: grid; grid-template-columns: 48px 1fr; gap: 16px;
    padding: 24px 32px; border: 2px dashed var(--line); border-radius: 20px;
}
.contacts__founder-name { font-weight: 700; color: var(--ink); }

@media (max-width: 1024px) {
    .contacts__top { grid-template-columns: 1fr; }
    .contacts__map { min-height: 360px; }
    .contacts__hours { grid-template-columns: 1fr 1fr; }
    .contacts__social { grid-column: 1 / -1; }
    .contacts__feedback { grid-template-columns: 1fr; gap: 24px; }
}
@media (max-width: 600px) {
    .contacts__card, .contacts__feedback { padding: 22px; }
    .contacts__hours { grid-template-columns: 1fr; }
    .contacts__value { font-size: 19px; }
    .contacts__feedback .section__title { font-size: 30px; }
    .feedback__form { grid-template-columns: 1fr; }
    .field__captcha { flex-wrap: wrap; }
    .contacts__founder { grid-template-columns: 1fr; padding: 20px; }
}

/* ==========================================================
   Актёры (/actors/)
   ========================================================== */

.troupe {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 32px 24px;
    padding-bottom: 48px;
}
.actor-card { display: flex; flex-direction: column; gap: 14px; }
.actor-card__pic {
    position: relative;
    display: grid;
    place-items: center;
    aspect-ratio: 28 / 38;
    border-radius: 20px;
    overflow: hidden;
    background: linear-gradient(160deg, #f6e3d8, #ecc3ae);
    box-shadow: var(--shadow);
}
.actor-card__pic img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 20%; transition: transform .5s; }
.actor-card:hover .actor-card__pic img { transform: scale(1.04); }
.actor-card__pic::after {   /* мягкая красная подсветка снизу при наведении */
    content: "";
    position: absolute; inset: 0;
    background: linear-gradient(0deg, rgba(196, 17, 31, .35), transparent 45%);
    opacity: 0; transition: opacity .3s;
}
.actor-card:hover .actor-card__pic::after { opacity: 1; }
.actor-card__placeholder { width: 46%; fill: none; stroke: rgba(138, 11, 21, .35); stroke-width: 1.2; }

.actor-card__body { display: grid; gap: 6px; padding: 0 4px; }
.actor-card__name { font-size: 18px; line-height: 1.25; color: var(--text); }
.actor-card__name b { display: block; font-size: 22px; font-weight: 800; color: var(--ink); letter-spacing: -.01em; }
.actor-card:hover .actor-card__name b { color: var(--red); }
.actor-card__rank { font-size: 14px; line-height: 1.35; color: var(--muted); }
.actor-card__rank.is-honored { color: var(--red-deep); font-weight: 600; }

/* Страница актёра */
.actor-page {
    display: grid;
    grid-template-columns: minmax(0, 4fr) minmax(0, 7fr);
    gap: 48px;
    align-items: start;
    padding-top: 8px;
}
.actor-page__photo {
    position: sticky; top: 24px;
    display: grid; place-items: center;
    aspect-ratio: 2 / 3;
    border-radius: 24px; overflow: hidden;
    background: linear-gradient(160deg, #f6e3d8, #ecc3ae);
    box-shadow: var(--shadow);
}
.actor-page__photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 20%; }
.actor-page__label {
    font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--red);
}
.actor-page__name {
    margin-top: 10px;
    font-size: 52px; font-weight: 800; line-height: 1.02; letter-spacing: -.02em; color: var(--ink);
}
.actor-page__rank { margin-top: 14px; font-size: 19px; font-weight: 600; color: var(--red-deep); max-width: 560px; }
.actor-page__head { padding-bottom: 28px; margin-bottom: 28px; border-bottom: 2px dashed var(--line); }
.actor-page__bio { max-width: none; }

.actor-shows { margin-top: 56px; }
.actor-shows .show-section-title { margin-bottom: 22px; }
.actor-shows__grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
.actor-show {
    display: flex; flex-direction: column;
    background: var(--card); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow);
    transition: transform .2s;
}
.actor-show:hover { transform: translateY(-3px); }
.actor-show__pic { position: relative; aspect-ratio: 3 / 2; background: linear-gradient(135deg, #f3d9c9, #e7b8a3); }
.actor-show__pic img { width: 100%; height: 100%; object-fit: cover; }
.actor-show__pic .rep-card__age { width: 38px; height: 38px; font-size: 13px; top: 10px; left: 10px; }
.actor-show__name { padding: 14px 16px 0; font-weight: 700; color: var(--ink); line-height: 1.3; }
.actor-show:hover .actor-show__name { color: var(--red); }
.actor-show__role { padding: 4px 16px 0; font-size: 14px; color: var(--muted); }
.actor-show::after { content: ""; padding-bottom: 16px; }

.actor-back { margin: 40px 0 56px; }

@media (max-width: 1024px) {
    .troupe { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .actor-shows__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .actor-page { gap: 32px; }
    .actor-page__name { font-size: 40px; }
}
@media (max-width: 760px) {
    .troupe { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px 16px; }
    .actor-card__name { font-size: 15px; }
    .actor-card__name b { font-size: 18px; }
    .actor-card__rank { font-size: 13px; }
    .actor-page { grid-template-columns: 1fr; }
    .actor-page__photo { position: static; max-width: 360px; width: 100%; margin: 0 auto; }
    .actor-page__name { font-size: 34px; }
    .actor-shows__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
}

/* ==========================================================
   Меню: выпадающий список («Театр»)
   ========================================================== */

.nav__item { position: relative; }
.nav__sub {
    position: absolute;
    top: calc(100% + 10px);
    left: -20px;
    z-index: 30;
    min-width: 280px;
    width: max-content;
    max-width: 360px;
    padding: 10px 0;
    background: #fff;
    border-radius: var(--radius);
    box-shadow: 0 18px 40px rgba(74, 20, 20, .16);
    opacity: 0;
    visibility: hidden;
    transform: translateY(6px);
    transition: opacity .18s, transform .18s, visibility .18s;
}
.nav__sub::before {   /* «мостик», чтобы меню не закрывалось при переходе мышью */
    content: ""; position: absolute; left: 0; right: 0; top: -14px; height: 14px;
}
.nav__item--parent:hover .nav__sub,
.nav__item--parent:focus-within .nav__sub { opacity: 1; visibility: visible; transform: none; }
.nav__sublink {
    display: block;
    padding: 10px 22px;
    font-size: 15px;
    font-weight: 500;
    line-height: 1.3;
    color: var(--ink);
}
.nav__sublink:hover, .nav__sublink.is-active { color: var(--red); background: var(--red-soft); }

@media (max-width: 1024px) {
    .nav__sub {
        position: static;
        min-width: 0;
        width: auto;
        max-width: none;
        padding: 4px 0 8px 14px;
        border-left: 2px solid var(--red-soft);
        border-radius: 0;
        box-shadow: none;
        opacity: 1;
        visibility: visible;
        transform: none;
        margin: 4px 0 6px;
    }
    .nav__sub::before { display: none; }
    .nav__sublink { padding: 6px 0; font-size: 16px; white-space: normal; }
    .nav__sublink:hover, .nav__sublink.is-active { background: none; }
}

/* ==========================================================
   Раздел «Театр» (/teatr/): меню раздела, страницы, документы
   ========================================================== */

.page-layout {
    display: grid;
    grid-template-columns: 270px minmax(0, 1fr);
    gap: 48px;
    align-items: start;
    padding-bottom: 56px;
}
.page-layout--root { grid-template-columns: 1fr; }

.side-nav {
    position: sticky; top: 24px;
    padding: 22px 0;
    background: var(--card);
    border-radius: 20px;
    box-shadow: var(--shadow);
}
.side-nav__root {
    display: block; padding: 0 24px 12px; margin-bottom: 8px;
    border-bottom: 2px dashed var(--line);
    font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--red);
}
.side-nav__link {
    display: block; padding: 9px 24px;
    font-size: 15px; font-weight: 500; line-height: 1.3; color: var(--ink);
    border-left: 3px solid transparent;
}
.side-nav__link:hover { color: var(--red); }
.side-nav__link.is-open { font-weight: 700; }
.side-nav__link.is-active { color: var(--red); font-weight: 700; border-left-color: var(--red); background: var(--red-soft); }
.side-nav__list--2 .side-nav__link { padding-left: 40px; font-size: 14px; }
.side-nav__list--3 .side-nav__link { padding-left: 56px; font-size: 14px; }

.page-content { max-width: 860px; }
.page-content h2 { font-size: 30px; font-weight: 800; color: var(--ink); line-height: 1.15; margin: 36px 0 14px; letter-spacing: -.01em; }
.page-content h3 { font-size: 21px; font-weight: 700; color: var(--ink); margin: 28px 0 10px; }
.page-content > :first-child { margin-top: 0; }
.page-content a:not([class]) { color: var(--red); text-decoration: underline; text-underline-offset: 3px; }
.page-content table { width: 100%; border-collapse: collapse; margin: 18px 0; font-size: 15px; }
.page-content td, .page-content th { padding: 10px 12px; border: 1px solid var(--line); vertical-align: top; text-align: left; }
.page-content th { background: var(--bg); }

/* Документы */
.doc-list { display: grid; gap: 10px; margin: 18px 0 8px; padding: 0 !important; list-style: none !important; }
.doc-link {
    display: flex; align-items: center; gap: 16px;
    padding: 14px 18px;
    background: var(--card); border: 2px solid var(--line); border-radius: 14px;
    color: var(--ink); font-weight: 500; line-height: 1.35;
    transition: border-color .2s, transform .2s;
}
.doc-link:hover { border-color: var(--red); transform: translateX(3px); }
.doc-link__ext {
    flex: none; display: grid; place-items: center;
    width: 48px; height: 56px;
    border-radius: 6px 14px 6px 6px;
    background: var(--red-soft); color: var(--red);
    font-size: 11px; font-weight: 800; letter-spacing: .04em;
}
.doc-link:hover .doc-link__ext { background: var(--red); color: #fff; }

.link-list { display: grid; gap: 8px; margin: 14px 0; }

/* Сотрудники */
.people { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 28px 22px; margin: 22px 0 32px; }
.person { display: grid; align-content: start; gap: 4px; color: var(--muted); font-size: 14px; line-height: 1.35; }
.person__photo {
    display: block; aspect-ratio: 4 / 5; margin-bottom: 10px;
    border-radius: 18px; overflow: hidden; box-shadow: var(--shadow);
    background: linear-gradient(160deg, #f6e3d8, #ecc3ae);
}
.person__photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 20%; transition: transform .4s; }
a.person:hover .person__photo img { transform: scale(1.04); }
.person__name { font-size: 17px; font-weight: 700; color: var(--ink); }
a.person:hover .person__name { color: var(--red); }

/* Фото, галереи, видео, выделенные блоки */
.content-figure { margin: 22px 0; max-width: 520px; }
.content-figure img { border-radius: 18px; box-shadow: var(--shadow); }
.content-gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 12px; margin: 20px 0 28px; }
.content-gallery__item { aspect-ratio: 4 / 3; border-radius: 12px; overflow: hidden; background: #f1e4dd; }
.content-gallery__item img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.content-gallery__item:hover img { transform: scale(1.05); }
.content-video { position: relative; aspect-ratio: 16 / 9; margin: 22px 0; border-radius: var(--radius); overflow: hidden; background: #000; }
.content-video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.content-note {
    margin: 0 0 20px; padding: 24px 28px;
    background: var(--cream); border-left: 4px solid var(--red); border-radius: 0 18px 18px 0;
}
.content-note h3 { margin-top: 0 !important; }
.content-note p + p { margin-top: 8px; }

/* Плитки подстраниц */
.page-tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 18px; margin-top: 28px; }
.page-layout--root .page-tiles { grid-template-columns: repeat(3, minmax(0, 1fr)); margin-top: 0; }
.page-tile {
    display: flex; flex-direction: column; gap: 10px;
    min-height: 140px; padding: 24px;
    background: var(--card); border-radius: 20px; box-shadow: var(--shadow);
    transition: transform .2s;
}
.page-tile:hover { transform: translateY(-3px); }
.page-tile__name { font-size: 20px; font-weight: 800; color: var(--ink); line-height: 1.2; }
.page-tile:hover .page-tile__name { color: var(--red); }
.page-tile__text { font-size: 14px; color: var(--muted); }
.page-tile__more { margin-top: auto; display: inline-flex; align-items: center; gap: 8px; color: var(--red); font-weight: 600; font-size: 14px; }
.page-tile__more .icon { transition: transform .2s; }
.page-tile:hover .page-tile__more .icon { transform: translateX(4px); }

@media (max-width: 1024px) {
    .page-layout { grid-template-columns: 1fr; gap: 24px; }
    .side-nav { position: static; }
    .page-layout--root .page-tiles { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 600px) {
    .page-layout--root .page-tiles { grid-template-columns: 1fr; }
    .page-content h2 { font-size: 24px; }
    .people { grid-template-columns: 1fr 1fr; gap: 20px 14px; }
    .person__name { font-size: 15px; }
    .doc-link { padding: 12px 14px; gap: 12px; font-size: 15px; }
    .doc-link__ext { width: 40px; height: 48px; }
}

/* Плитки с картинкой (логотипы фестивалей) */
.page-tile--pic { padding-top: 0; overflow: hidden; }
.page-tile__pic {
    display: grid; place-items: center;
    height: 190px; margin: 0 -24px 6px;
    background: #fff; border-bottom: 2px solid var(--line);
}
.page-tile__pic img { max-width: 80%; max-height: 160px; object-fit: contain; }

/* ==========================================================
   Уведомление о cookie
   ========================================================== */

.cookie-notice {
    position: fixed;
    left: 24px; right: 24px; bottom: 24px;
    z-index: 100;
    display: flex;
    align-items: center;
    gap: 28px;
    max-width: 1100px;
    margin: 0 auto;
    padding: 20px 24px 20px 28px;
    background: #fff;
    border-radius: 20px;
    box-shadow: 0 16px 48px rgba(43, 18, 20, .22);
    animation: cookie-in .35s ease-out;
}
.cookie-notice[hidden] { display: none; }
.cookie-notice__text { font-size: 13px; line-height: 1.5; color: var(--text); }
.cookie-notice__btn { flex: none; }
@keyframes cookie-in { from { opacity: 0; transform: translateY(16px); } }

@media (max-width: 700px) {
    .cookie-notice {
        left: 12px; right: 12px; bottom: 12px;
        flex-direction: column; align-items: stretch; gap: 14px;
        padding: 16px;
        max-height: 60vh; overflow: auto;
    }
    .cookie-notice__text { font-size: 12px; }
}
@media (prefers-reduced-motion: reduce) {
    .cookie-notice { animation: none; }
}

/* Кнопки на главной: свой цвет из админки (стиль «Свой цвет») */
.quick-card--custom { background: var(--card); color: var(--ink); }

/* Значок на кнопке под слайдером (вместо картинки): маски, подарок… */
.quick-card__icon { display: grid; place-items: center; align-self: stretch; width: 38%; flex: none; padding: 14px; }
.quick-card__icon svg { width: 100%; max-width: 96px; height: auto; aspect-ratio: 1; }
.quick-card--red .quick-card__icon { color: #f6c453; --ic-light: rgba(255, 255, 255, .14); }
.quick-card--cream .quick-card__icon { color: var(--red-deep); --ic-light: #fff; }
.quick-card--sky .quick-card__icon { color: #2b5c8a; --ic-light: #fff; }
.quick-card--custom .quick-card__icon { color: currentColor; --ic-light: transparent; }
/* Текст на кнопках под слайдером — крупно и жирно, как в макете */
.quick-card__text { font-size: 22px; font-weight: 700; line-height: 1.1; }
.quick-card__text .icon { width: 22px; height: 22px; }
@media (max-width: 600px) { .quick-card__text { font-size: 19px; } }

/* ==========================================================
   Шапка — размеры как в макете (PT Sans крупнее, чем был Montserrat)
   ========================================================== */
.topbar { background: #f7f1ee; border-bottom: 0; font-size: 15px; }
.topbar__item .icon { width: 20px; height: 20px; }
.topbar__item--small, .topbar__pill { font-size: 14px; line-height: 1.1; }
.topbar__pill { background: #efe5e1; }
.topbar__pill .icon { width: 20px; height: 20px; }
.topbar__item--small .icon { width: 26px; height: 26px; }
.topbar__search .icon { width: 24px; height: 24px; }
.nav__link { font-size: 17px; font-weight: 400; }
.nav__list { gap: 26px; }
.header__nav { gap: 26px; }
.logo__img { width: 250px; }
.header__buy { min-height: 52px; padding: 0 26px; font-size: 18px; font-weight: 700; white-space: nowrap; }
.header__buy .icon { width: 26px; height: 26px; }
@media (max-width: 1240px) {
    .nav__link { font-size: 15px; }
    .nav__list, .header__nav { gap: 18px; }
    .logo__img { width: 210px; }
    .header__buy { font-size: 16px; padding: 0 18px; }
}
@media (max-width: 1024px) {
    .topbar { font-size: 13px; }
    .nav__link { font-size: 18px; }
}

/* ==========================================================
   Подвал: волна как в макете — два мягких гребня, фон перетекает в волну без шва
   ========================================================== */
.footer {
    --wave-h: 72px;
    margin-top: 40px;
    padding-top: var(--wave-h);
    background:
        radial-gradient(ellipse 60% 120% at 28% 0%, rgba(255, 255, 255, .10), transparent 60%),
        radial-gradient(ellipse 50% 100% at 85% 30%, rgba(255, 255, 255, .06), transparent 60%),
        linear-gradient(180deg, #9c1622 0%, #8a0b15 45%, #74080f 100%);
    /* верх подвала вырезаем по форме волны */
    -webkit-mask:
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 72' preserveAspectRatio='none'%3E%3Cpath d='M0 40C60 18 110 8 180 8c150 0 240 50 390 50 160 0 230-36 390-36 190 0 330 30 480 34V72H0z'/%3E%3C/svg%3E") top left / 100% var(--wave-h) no-repeat,
        linear-gradient(#000, #000) left var(--wave-h) / 100% calc(100% - var(--wave-h) + 1px) no-repeat;
            mask:
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 72' preserveAspectRatio='none'%3E%3Cpath d='M0 40C60 18 110 8 180 8c150 0 240 50 390 50 160 0 230-36 390-36 190 0 330 30 480 34V72H0z'/%3E%3C/svg%3E") top left / 100% var(--wave-h) no-repeat,
        linear-gradient(#000, #000) left var(--wave-h) / 100% calc(100% - var(--wave-h) + 1px) no-repeat;
}
.footer__wave { display: none; }
.footer__body { background: none; }
@media (max-width: 760px) { .footer { --wave-h: 40px; } }
/* Подвал: размеры текста как в макете */
.footer__top { padding-top: 4px; }
.footer__contacts { font-size: 16px; gap: 14px; }
.footer__contacts .icon { width: 22px; height: 22px; }
.footer__menu { font-size: 17px; }
.footer__site { font-size: 19px; }
@media (max-width: 1024px) { .footer__contacts { font-size: 15px; } .footer__menu { font-size: 16px; } }

/* Логотип в подвале: герб (кругляш) на белом круге в обычных цветах; надпись — как была */
.footer__logo-img {
    --logo-red: #D7281A;            /* рисунок герба */
    --logo-white: #fff;             /* белый круг герба */
    --logo-ink: #fff;               /* надпись */
    --logo-accent: #fff;            /* штрихи в надписи */
    --logo-hole: var(--red-deep);   /* детали внутри букв */
    --logo-gold: #fff;              /* колоски — тоже белые */
}

/* Новости на главной: картинка — отдельная скруглённая плашка, как в макете */
.news-card__pic {
    position: relative;
    z-index: 1;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: 0 6px 18px rgba(43, 18, 20, .16);
}
.news-card__pic img { border-radius: inherit; }

/* ==========================================================
   Политика конфиденциальности и карта сайта
   ========================================================== */
.legal { max-width: 820px; padding-bottom: 40px; }
.legal h2 { font-size: 24px; margin: 32px 0 12px; }
.legal ul { list-style: disc; padding-left: 22px; margin: 0 0 14px; }
.legal li { margin-bottom: 6px; }
.legal p { margin: 0 0 12px; }
.legal a { color: var(--red); text-decoration: underline; text-underline-offset: 3px; }

.sitemap { columns: 3 300px; column-gap: 40px; padding-bottom: 48px; }
.sitemap__block {
    break-inside: avoid;
    margin-bottom: 28px; padding: 24px 26px;
    background: var(--card); border-radius: 20px; box-shadow: var(--shadow);
}
.sitemap__title { font-size: 22px; font-weight: 700; color: var(--ink); margin-bottom: 12px; }
.sitemap__title a:hover { color: var(--red); }
.sitemap__list { display: grid; gap: 6px; }
.sitemap__item a { color: var(--text); line-height: 1.35; }
.sitemap__item a:hover { color: var(--red); }
.sitemap__item--d1 > a { font-weight: 600; }
.sitemap__item--d2 { padding-left: 16px; font-size: 15px; }
.sitemap__item--d3 { padding-left: 32px; font-size: 14px; }
.sitemap__item--d2 > a::before, .sitemap__item--d3 > a::before { content: "— "; color: var(--muted); }

/* ссылка на политику в уведомлении о cookie */
.cookie-notice__text a { color: var(--red); text-decoration: underline; }
.field--check a { color: var(--red); text-decoration: underline; }

/* ==========================================================
   Версия для слабовидящих (ГОСТ Р 52872-2019)
   Включается кнопкой «Версия для слабовидящих» в шапке; настройки — атрибуты data-a11y-* у <html>.
   ========================================================== */

/* ---------- Панель настроек ---------- */
.a11y-panel { border-bottom: 3px solid currentColor; background: #fff; color: #000; }
.a11y-panel__inner { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 26px; padding-top: 12px; padding-bottom: 12px; }
.a11y-group { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.a11y-group__label { font-size: 16px; font-weight: 700; margin-right: 4px; }
.a11y-panel button {
    min-width: 44px; min-height: 44px; padding: 0 12px;
    border: 2px solid currentColor; border-radius: 8px;
    font-size: 16px; font-weight: 700; line-height: 1;
}
.a11y-panel button[aria-pressed="true"] { outline: 3px solid currentColor; outline-offset: 2px; text-decoration: underline; }
.a11y-panel__off { margin-left: auto; }

/* образцы цветовых схем всегда своих цветов */
html .a11y-panel .a11y-swatch--bw    { background: #fff !important; color: #000 !important; border-color: #000 !important; }
html .a11y-panel .a11y-swatch--wb    { background: #000 !important; color: #fff !important; border-color: #000 !important; }
html .a11y-panel .a11y-swatch--blue  { background: #9dd1ff !important; color: #063462 !important; border-color: #063462 !important; }
html .a11y-panel .a11y-swatch--beige { background: #f7f3d6 !important; color: #4d4b43 !important; border-color: #4d4b43 !important; }
html .a11y-panel .a11y-swatch--green { background: #3b2716 !important; color: #a9e44d !important; border-color: #3b2716 !important; }

/* ---------- Цвета ---------- */
html[data-a11y="on"]                         { --a-bg: #fff;    --a-fg: #000; }
html[data-a11y="on"][data-a11y-color="wb"]    { --a-bg: #000;    --a-fg: #fff; }
html[data-a11y="on"][data-a11y-color="blue"]  { --a-bg: #9dd1ff; --a-fg: #063462; }
html[data-a11y="on"][data-a11y-color="beige"] { --a-bg: #f7f3d6; --a-fg: #4d4b43; }
html[data-a11y="on"][data-a11y-color="green"] { --a-bg: #3b2716; --a-fg: #a9e44d; }

/* размеры, интервалы, гарнитура */
html[data-a11y="on"]                       { --a-fs: 22px; --a-lh: 1.5; --a-ls: 0; --a-ff: Arial, "Helvetica Neue", sans-serif; }
html[data-a11y="on"][data-a11y-font="1"]   { --a-fs: 18px; }
html[data-a11y="on"][data-a11y-font="3"]   { --a-fs: 26px; }
html[data-a11y="on"][data-a11y-lh="2"]     { --a-lh: 1.8; }
html[data-a11y="on"][data-a11y-lh="3"]     { --a-lh: 2.1; }
html[data-a11y="on"][data-a11y-ls="2"]     { --a-ls: .05em; }
html[data-a11y="on"][data-a11y-ls="3"]     { --a-ls: .1em; }
html[data-a11y="on"][data-a11y-ff="serif"] { --a-ff: Georgia, "Times New Roman", serif; }

/* всё одним цветом на одном фоне, без теней, градиентов и фоновых картинок */
html[data-a11y="on"] :where(body, body *:not(svg, svg *)) {
    background-color: var(--a-bg) !important;
    background-image: none !important;
    color: var(--a-fg) !important;
    border-color: var(--a-fg) !important;
    box-shadow: none !important;
    text-shadow: none !important;
    font-family: var(--a-ff) !important;
    font-size: var(--a-fs) !important;
    line-height: var(--a-lh) !important;
    letter-spacing: var(--a-ls) !important;
}
html[data-a11y="on"] :where(h1, .page__title, .hero__title) { font-size: calc(var(--a-fs) * 1.8) !important; line-height: 1.2 !important; }
html[data-a11y="on"] :where(h2, .section__title)            { font-size: calc(var(--a-fs) * 1.45) !important; line-height: 1.25 !important; }
html[data-a11y="on"] :where(h3)                             { font-size: calc(var(--a-fs) * 1.2) !important; }
html[data-a11y="on"] a:not(.btn):not(.logo) { text-decoration: underline !important; text-underline-offset: 3px; }
html[data-a11y="on"] :focus-visible { outline: 3px solid var(--a-fg) !important; outline-offset: 3px; }

/* кнопки — в обратных цветах */
html[data-a11y="on"] body .btn { border: 2px solid var(--a-fg) !important; }
html[data-a11y="on"] body .btn--primary,
html[data-a11y="on"] body .btn--primary * { background-color: var(--a-fg) !important; color: var(--a-bg) !important; }

/* значки и логотип в цветах схемы */
html[data-a11y="on"] svg { color: var(--a-fg); --ic-light: var(--a-bg); }
html[data-a11y="on"] .btn--primary svg { color: var(--a-bg); }
html[data-a11y="on"] .logo__img, html[data-a11y="on"] .footer__logo-img {
    --logo-red: var(--a-fg); --logo-ink: var(--a-fg); --logo-accent: var(--a-fg); --logo-gold: var(--a-fg);
    --logo-white: var(--a-bg); --logo-hole: var(--a-bg);
}
html[data-a11y="on"] .partner__gerb { filter: grayscale(1); }

/* панель настроек тоже в цветах схемы, выбранные кнопки — в обратных */
html[data-a11y="on"] body .a11y-panel button[aria-pressed="true"]:not(.a11y-swatch) { background-color: var(--a-fg) !important; color: var(--a-bg) !important; }
html[data-a11y="on"] body .a11y-panel button { font-size: 16px !important; letter-spacing: 0 !important; line-height: 1 !important; }
html[data-a11y="on"] body .a11y-group__label { font-size: 16px !important; }

/* упрощаем раскладку, чтобы крупный текст помещался */
html[data-a11y="on"] .nav__list, html[data-a11y="on"] .topbar__inner,
html[data-a11y="on"] .topbar__contacts, html[data-a11y="on"] .topbar__links { flex-wrap: wrap; row-gap: 8px; }
html[data-a11y="on"] .header__inner { flex-wrap: wrap; row-gap: 12px; }
html[data-a11y="on"] .footer { -webkit-mask: none !important; mask: none !important; padding-top: 24px; border-top: 3px solid var(--a-fg) !important; }
html[data-a11y="on"] .hero__slide { min-height: 0; }
html[data-a11y="on"] .hero__content { max-width: none; }
html[data-a11y="on"] .news__grid, html[data-a11y="on"] .quick { grid-template-columns: 1fr; }
html[data-a11y="on"] .cookie-notice { border: 3px solid var(--a-fg) !important; }

/* скрыть картинки */
html[data-a11y="on"][data-a11y-img="off"] img,
html[data-a11y="on"][data-a11y-img="off"] iframe,
html[data-a11y="on"][data-a11y-img="off"] :is(.hero__media, .quick-card__pic, .quick-card__icon, .news-card__pic, .show__pic,
    .rep-card__pic, .actor-card__pic, .actor-page__photo, .person__photo, .content-gallery, .content-figure, .partner__gerb) { display: none !important; }
html[data-a11y="on"][data-a11y-img="off"] .news-card { grid-template-columns: 1fr; }
/* слайдер: фото отдельным блоком над текстом, без затемнения */
html[data-a11y="on"] .hero__slide { flex-direction: column-reverse; align-items: stretch; }
html[data-a11y="on"] .hero__slide::before, html[data-a11y="on"] .hero__slide::after { display: none !important; }
html[data-a11y="on"] .hero__image { position: static; height: 320px; object-position: center; }
html[data-a11y="on"] .hero__content { padding-top: 24px; padding-bottom: 56px; }
/* подвал: колонки переносятся, без разделителей */
html[data-a11y="on"] .footer__top, html[data-a11y="on"] .footer__partners { display: flex; flex-wrap: wrap; gap: 20px 32px; }
html[data-a11y="on"] .footer__top > *, html[data-a11y="on"] .partner { border-left: 0 !important; padding-left: 0 !important; }
html[data-a11y="on"] .footer__bottom { flex-wrap: wrap; }

/* =====================================================================
   Поиск: всплывающая строка в шапке и страница /search/
   ===================================================================== */

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

.search-form { display: flex; align-items: center; gap: 12px; }
.search-form__input {
    flex: 1; min-width: 0; height: 54px; padding: 0 20px;
    font: inherit; font-size: 18px; color: var(--ink);
    background: #fff; border: 2px solid var(--line); border-radius: 999px;
    -webkit-appearance: none; appearance: none;
}
.search-form__input:focus { outline: none; border-color: var(--red); }
.search-form__input::placeholder { color: var(--muted); }
.search-form__btn { min-height: 54px; padding: 0 26px; gap: 8px; font-size: 18px; flex: none; }

/* --- всплывающая строка --- */
.search-pop {
    position: absolute; left: 0; right: 0; top: 100%; z-index: 40;
    background: #fff; box-shadow: 0 18px 40px rgba(74, 20, 20, .14);
    border-top: 1px solid var(--line);
    padding: 20px 0 22px;
}
.search-pop__close {
    flex: none; display: inline-flex; align-items: center; justify-content: center;
    width: 44px; height: 44px; border-radius: 50%; color: var(--muted);
}
.search-pop__close:hover { color: var(--red); background: var(--red-soft); }
.search-pop__results:not(:empty) { margin-top: 14px; }

.search-suggest { display: grid; gap: 2px; }
.search-suggest__item {
    display: flex; align-items: flex-start; gap: 14px;
    padding: 10px 14px; border-radius: var(--radius-sm);
}
.search-suggest__item:hover, .search-suggest__item:focus-visible { background: var(--bg); outline: none; }
.search-suggest__item:hover b, .search-suggest__item:focus-visible b { color: var(--red); }
.search-suggest__label {
    flex: none; width: 92px; margin-top: 2px; padding: 3px 0; text-align: center;
    font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em;
    color: var(--muted); background: #f4efed; border-radius: 999px;
}
.search-suggest__label--afisha { color: #fff; background: var(--red); }
.search-suggest__text { display: grid; gap: 2px; min-width: 0; }
.search-suggest__text b { color: var(--ink); font-size: 17px; }
.search-suggest__text small { color: var(--muted); font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.search-suggest__empty { color: var(--muted); padding: 4px 14px; }
.search-suggest__all { margin: 10px 14px 0; }

/* --- страница /search/ --- */
.search-page { max-width: 960px; padding-bottom: 40px; }
.search-chips { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 16px 0 28px; }
.search-chips__label { color: var(--muted); margin-right: 4px; }
.search-chip {
    padding: 7px 16px; border-radius: 999px; background: #f4efed; color: var(--ink); font-size: 15px;
    transition: background .15s, color .15s;
}
.search-chip:hover { color: var(--red); }
.search-chip.is-active { background: var(--red); color: #fff; }

.search-summary { color: var(--muted); margin-bottom: 14px; }
.search-summary b { color: var(--ink); }
.search-hint, .search-empty { color: var(--text); font-size: 17px; max-width: 680px; }
.search-empty p + p { margin-top: 8px; color: var(--muted); }
.search-empty a { color: var(--red); text-decoration: underline; }

.search-tabs {
    display: flex; flex-wrap: wrap; gap: 6px 24px;
    border-bottom: 2px solid var(--line); margin-bottom: 8px;
}
.search-tabs__item {
    padding: 10px 0; margin-bottom: -2px; border-bottom: 3px solid transparent;
    font-weight: 700; color: var(--ink);
}
.search-tabs__item span { font-weight: 400; color: var(--muted); margin-left: 2px; }
.search-tabs__item:hover { color: var(--red); }
.search-tabs__item.is-active { color: var(--red); border-bottom-color: var(--red); }

.search-group { padding: 22px 0 10px; }
.search-group + .search-group { border-top: 1px solid var(--line); }
.search-group__title { font-size: 26px; color: var(--ink); margin-bottom: 14px; }
.search-group__more { margin-top: 14px; }

.search-page mark, .search-pop mark {
    background: #fde7a9; color: inherit; border-radius: 3px; padding: 0 1px;
}

/* афиша */
.search-shows { display: grid; gap: 14px; }
.search-show {
    display: flex; gap: 18px; padding: 16px; background: #fff;
    border-radius: var(--radius); box-shadow: var(--shadow);
}
.search-show__pic {
    flex: none; width: 120px; height: 80px; border-radius: var(--radius-sm); overflow: hidden; background: var(--cream);
}
.search-show__pic img { width: 100%; height: 100%; object-fit: cover; }
.search-show__body { min-width: 0; flex: 1; }
.search-show__title { font-size: 21px; line-height: 1.2; color: var(--ink); }
.search-show__title a:hover { color: var(--red); }
.search-show__age {
    display: inline-block; vertical-align: 3px; margin-left: 8px; padding: 1px 8px;
    font-size: 13px; font-weight: 700; color: var(--red); border: 1.5px solid currentColor; border-radius: 999px;
}
.search-show__author { color: var(--muted); margin-top: 4px; }
.search-show__dates { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.search-date {
    display: inline-flex; flex-direction: column; padding: 7px 14px; border-radius: var(--radius-sm);
    border: 1.5px solid var(--red); color: var(--red); font-weight: 700; font-size: 15px; line-height: 1.2;
    transition: background .15s, color .15s;
}
a.search-date:hover { background: var(--red); color: #fff; }
.search-date small { font-weight: 400; font-size: 12px; }
.search-date.is-disabled { border-color: var(--line); color: var(--muted); }
.search-date--more { border-style: dashed; justify-content: center; }

/* остальное */
.search-list { display: grid; }
.search-item { display: flex; gap: 18px; padding: 16px 0; }
.search-item + .search-item { border-top: 1px solid var(--line); }
.search-item__pic {
    flex: none; width: 112px; height: 75px; border-radius: var(--radius-sm); overflow: hidden; background: var(--cream);
}
.search-item--actors .search-item__pic { width: 75px; height: 94px; }
.search-item__pic img { width: 100%; height: 100%; object-fit: cover; }
.search-item__body { min-width: 0; flex: 1; }
.search-item__title { font-size: 19px; line-height: 1.25; color: var(--ink); }
.search-item__title a:hover { color: var(--red); }
.search-item__meta { color: var(--muted); font-size: 14px; margin-top: 3px; }
.search-item__body > .search-item__meta:first-child { margin: 0 0 3px; }
.search-item__text { margin-top: 6px; font-size: 15px; line-height: 1.5; color: var(--text); }

.search-pager { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 20px; }
.search-pager__item {
    min-width: 40px; height: 40px; padding: 0 10px; display: inline-flex; align-items: center; justify-content: center;
    border-radius: 999px; background: #f4efed; color: var(--ink); font-weight: 700;
}
.search-pager__item:hover { color: var(--red); }
.search-pager__item.is-active { background: var(--red); color: #fff; }

@media (max-width: 600px) {
    .search-pop { padding: 12px 0 16px; }
    .search-form { gap: 8px; }
    .search-form__input { height: 48px; padding: 0 16px; font-size: 16px; }
    .search-form__btn { min-height: 48px; padding: 0 14px; }
    .search-form__btn span { display: none; }
    .search-pop__close { width: 36px; height: 36px; }
    .search-suggest__item { padding: 10px 6px; gap: 10px; }
    .search-suggest__label { width: 76px; font-size: 11px; }
    .search-show { gap: 12px; padding: 14px; }
    .search-show__pic { width: 72px; height: 54px; }
    .search-show__title { font-size: 18px; }
    .search-item__pic { width: 84px; height: 56px; }
    .search-tabs { gap: 4px 16px; }
    .search-group__title { font-size: 22px; }
}

/* End */
/* /local/templates/teatr/template_styles.css?179602336479837 */
