/* ===========================================================================
   /musicals/ — «Заказать мюзикл»
   Тёмный цвет — бирюза сцены с фото «Бременских», акцент — оранжевый бренда
   (как в редизайне: --rd-orange). Заголовки — Unbounded, текст — gotham.
   /musicals/css/app.css грузится только ради .modal (bootstrap-диалоги).
   Размеры в px: на сайте html { font-size: 62.5% }.
   =========================================================================== */

.mz {
    --mz-stage: #0d3b41;
    --mz-stage-line: #1d5960;
    --mz-orange: #e9510e;
    --mz-orange-dark: #c9420a;
    --mz-mist: #edf3f2;
    --mz-ink: #16211f;
    --mz-muted: #56676a;
    --mz-line: #d3e0de;
    --mz-display: "Unbounded", "gotham", system-ui, sans-serif;
    --mz-gutter: 16px;

    font-family: "gotham", Helvetica, Arial, sans-serif;
    font-size: 17px;
    line-height: 1.55;
    color: var(--mz-ink);
    background: #fff;
}
@media (min-width: 701px) { .mz { --mz-gutter: 32px; } }

.mz *, .mz *::before, .mz *::after { box-sizing: border-box; }
.mz img { max-width: 100%; height: auto; display: block; }
.mz a { color: inherit; }
.mz p { margin: 0 0 14px; }
.mz :focus-visible { outline: 3px solid var(--mz-orange); outline-offset: 3px; }

.mz-wrap {
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 var(--mz-gutter);
}
.mz-center { text-align: center; }

html { scroll-behavior: smooth; }
.mz section[id] { scroll-margin-top: var(--mz-scroll-offset, 150px); }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

/* ---------- Кнопки и ссылки ---------------------------------------------- */
.mz-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 48px;
    padding: 12px 26px;
    border: 2px solid var(--mz-orange);
    border-radius: 999px;
    background: var(--mz-orange);
    color: #fff;
    font-family: inherit;
    font-size: 16px;
    font-weight: 600;
    line-height: 1.2;
    text-decoration: none;
    cursor: pointer;
    transition: background-color .15s ease, border-color .15s ease, color .15s ease;
}
.mz-btn:hover { background: var(--mz-orange-dark); border-color: var(--mz-orange-dark); color: #fff; text-decoration: none; }
.mz-btn:disabled { opacity: .6; cursor: progress; }
.mz-btn--lg { min-height: 56px; padding: 14px 32px; font-size: 17px; }
.mz-btn--block { width: 100%; }
.mz-btn--ghost { background: transparent; border-color: rgba(255, 255, 255, .55); }
.mz-btn--ghost:hover { background: rgba(255, 255, 255, .1); border-color: #fff; }
.mz-btn--light { background: #fff; border-color: #fff; color: var(--mz-orange-dark); }
.mz-btn--light:hover { background: var(--mz-mist); border-color: var(--mz-mist); color: var(--mz-orange-dark); }

.mz-link {
    color: var(--mz-orange-dark);
    font-weight: 600;
    text-decoration: underline;
    text-underline-offset: 3px;
}
.mz-link:hover { color: var(--mz-ink); }

/* Треугольник «play» */
.mz-play {
    width: 0; height: 0;
    border-style: solid;
    border-width: 7px 0 7px 12px;
    border-color: transparent transparent transparent currentColor;
}

/* ---------- Заголовки разделов ------------------------------------------- */
.mz-section { padding: 64px 0; }
@media (min-width: 1001px) { .mz-section { padding: 96px 0; } }
.mz-section--mist  { background: var(--mz-mist); }
.mz-section--stage { background: var(--mz-stage); color: #fff; }

.mz-head { max-width: 720px; margin-bottom: 40px; }
.mz-h2,
.mz-seo h2 {
    font-family: var(--mz-display);
    font-weight: 700;
    font-size: clamp(26px, 3.2vw, 40px);
    line-height: 1.12;
    letter-spacing: -.01em;
    color: inherit;
    margin: 0 0 16px;
    text-wrap: balance;
}
.mz-head__text { font-size: 18px; color: var(--mz-muted); margin: 0; }
.mz-head--light .mz-head__text { color: rgba(255, 255, 255, .75); }

/* ---------- Первый экран --------------------------------------------------
   Фото сцены справа, бирюза «заливает» его слева — как затемнённый край
   кулис. Снизу — тёплый свет рампы: единственная анимация страницы, свет
   «включается» при загрузке. */
.mz-hero {
    position: relative;
    overflow: hidden;
    background: var(--mz-stage);
    color: #fff;
}
.mz-hero__stage {
    position: absolute;
    inset: 0 0 0 auto;
    width: 64%;
    isolation: isolate; /* свой порядок слоёв: фото/видео (0) → градиенты (1) → подпись (2) */
}
.mz-hero__stage picture,
.mz-hero__stage img {
    width: 100%;
    height: 100%;
}
.mz-hero__stage img { object-fit: cover; object-position: 60% 30%; }

/* «Калейдоскоп»: два <video> по очереди, смена — наплывом. Пока ролик не
   заиграл, видно фото под ним. */
.mz-hero__reel {
    position: absolute;
    inset: 0;
    z-index: 0;
    /* Видео растворяется в бирюзе само — маской, как фото градиентом сверху */
    -webkit-mask-image: linear-gradient(90deg, transparent 0%, rgba(0, 0, 0, .3) 16%, #000 50%);
            mask-image: linear-gradient(90deg, transparent 0%, rgba(0, 0, 0, .3) 16%, #000 50%);
}
.mz-hero__video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity .9s ease;
}
.mz-hero__video.is-on { opacity: 1; }
/* Заиграло видео — фото под ним больше не нужно, иначе просвечивает в маске */
.mz-hero__stage picture { transition: opacity .9s ease; }
.mz-hero__stage.is-playing picture { opacity: 0; }
.mz-hero__now {
    position: absolute;
    right: 24px;
    bottom: 20px;
    z-index: 2;
    margin: 0 !important;
    padding: 6px 14px;
    border-radius: 999px;
    background: rgba(13, 59, 65, .7);
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    opacity: 0;
    transition: opacity .4s ease;
}
.mz-hero__now.is-on { opacity: 1; }
@media (prefers-reduced-motion: reduce) {
    .mz-hero__video, .mz-hero__now { transition: none; }
}
.mz-hero__stage::before,
.mz-hero__stage::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1; /* поверх <picture> — он идёт в DOM после ::before */
    pointer-events: none;
}
.mz-hero__stage::before {
    background: linear-gradient(90deg, var(--mz-stage) 0%, rgba(13, 59, 65, .85) 18%, rgba(13, 59, 65, 0) 55%);
}
.mz-hero__stage::after {
    background: radial-gradient(120% 55% at 55% 115%, rgba(233, 81, 14, .55) 0%, rgba(249, 140, 40, .18) 45%, rgba(233, 81, 14, 0) 70%);
    mix-blend-mode: screen;
    animation: mz-footlights 1.8s ease-out .3s both;
}
@keyframes mz-footlights {
    from { opacity: 0; }
    to   { opacity: 1; }
}
@media (prefers-reduced-motion: reduce) {
    .mz-hero__stage::after { animation: none; }
}

.mz-hero__inner {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    min-height: clamp(520px, 62vh, 680px);
    padding-top: 64px;
    padding-bottom: 64px;
}
.mz-hero__copy { max-width: 600px; }
.mz-hero__title {
    font-family: var(--mz-display);
    font-weight: 700;
    font-size: clamp(32px, 4vw, 54px);
    line-height: 1.06;
    letter-spacing: -.015em;
    color: #fff;
    margin: 0 0 24px;
    text-wrap: balance;
}
.mz-hero__lead {
    font-size: 19px;
    line-height: 1.5;
    color: rgba(255, 255, 255, .85);
    max-width: 520px;
    margin: 0 0 32px !important;
}
.mz-hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 20px; }
.mz-hero__phone { font-size: 16px; color: rgba(255, 255, 255, .7); margin: 0 !important; }
.mz-hero__phone a { color: #fff; font-weight: 600; text-decoration: none; white-space: nowrap; }
.mz-hero__phone a:hover { text-decoration: underline; }

@media (max-width: 700px) {
    .mz-hero__stage {
        position: relative;
        width: 100%;
        height: 72vw;
        max-height: 420px;
    }
    .mz-hero__stage::before {
        background: linear-gradient(180deg, rgba(13, 59, 65, 0) 30%, rgba(13, 59, 65, .75) 72%, var(--mz-stage) 96%);
    }
    .mz-hero__reel {
        -webkit-mask-image: linear-gradient(180deg, #000 35%, rgba(0, 0, 0, .3) 75%, transparent 96%);
                mask-image: linear-gradient(180deg, #000 35%, rgba(0, 0, 0, .3) 75%, transparent 96%);
    }
    .mz-hero__now { right: auto; left: var(--mz-gutter); top: 12px; bottom: auto; font-size: 13px; }
    /* Свет рампы обрывался бы на нижнем краю фото — на телефоне без него */
    .mz-hero__stage::after { display: none; }
    .mz-hero__inner { min-height: 0; padding-top: 0; padding-bottom: 40px; margin-top: -40px; }
    .mz-hero__title { font-size: clamp(25px, 8vw, 34px); overflow-wrap: break-word; }
    .mz-hero__lead { font-size: 17px; }
    .mz-hero__actions .mz-btn { flex: 1 1 100%; }
}

/* ---------- Панель разделов ---------------------------------------------- */
.mz-nav {
    position: sticky;
    top: var(--mz-header-h, 0px);
    z-index: 8; /* под шапкой сайта (9), над контентом */
    background: #fff;
    border-bottom: 1px solid var(--mz-line);
}
@media (max-width: 1000px) { .mz-nav { top: var(--mz-header-h, 82px); } }
.mz-nav__inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.mz-nav__list {
    display: flex;
    gap: 4px;
    list-style: none;
    margin: 0;
    padding: 0;
    overflow-x: auto;
    scrollbar-width: none;
}
.mz-nav__list::-webkit-scrollbar { display: none; }
.mz-nav__link {
    display: block;
    white-space: nowrap;
    padding: 18px 12px 15px;
    font-size: 15px;
    font-weight: 600;
    color: var(--mz-muted) !important;
    text-decoration: none;
    border-bottom: 3px solid transparent;
}
.mz-nav__link:hover { color: var(--mz-ink) !important; text-decoration: none; }
.mz-nav__link.is-active { color: var(--mz-ink) !important; border-bottom-color: var(--mz-orange); }
.mz-nav__cta { flex: 0 0 auto; min-height: 40px; padding: 8px 20px; font-size: 15px; }
@media (max-width: 1000px) { .mz-nav__cta { display: none; } }

/* ---------- Каталог спектаклей ------------------------------------------- */
.mz-shows {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 48px 32px;
}
.mz-show, .mz-show__inner { height: 100%; }
.mz-show__inner { position: relative; display: flex; flex-direction: column; }
/* Вся карточка — ссылка: растягиваем заголовок, кнопки поднимаем над ним */
.mz-show__hit {
    padding: 0;
    border: 0;
    background: none;
    color: inherit;
    font: inherit;
    text-align: left;
    text-decoration: none;
    cursor: pointer;
}
.mz-show__hit::after { content: ""; position: absolute; inset: 0; z-index: 1; border-radius: 6px; }
.mz-show__hit:focus-visible { outline: none; }
.mz-show__hit:focus-visible::after { outline: 3px solid var(--mz-orange); outline-offset: 6px; }
.mz-show__actions .mz-btn { position: relative; z-index: 2; }
.mz-show__play { z-index: 2; }
.mz-show__inner:hover .mz-show__hit { color: var(--mz-orange-dark); }
.mz-show__inner:hover .mz-show__media img { transform: scale(1.03); }
.mz-show__media img { transition: transform .4s ease; }
.mz-show__more {
    color: var(--mz-orange-dark);
    font-weight: 600;
    text-decoration: underline;
    text-underline-offset: 3px;
}
@media (prefers-reduced-motion: reduce) { .mz-show__media img { transition: none; } }
.mz-show__media {
    position: relative;
    aspect-ratio: 4 / 3;
    border-radius: 6px;
    overflow: hidden;
    background: var(--mz-stage);
    margin-bottom: 20px;
}
.mz-show__media img { width: 100%; height: 100%; object-fit: cover; }
.mz-show__play {
    position: absolute;
    left: 12px;
    bottom: 12px;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 9px 16px 9px 14px;
    border: 0;
    border-radius: 999px;
    background: rgba(13, 59, 65, .88);
    color: #fff;
    font: 600 14px/1.2 "gotham", Helvetica, Arial, sans-serif;
    cursor: pointer;
}
.mz-show__play:hover { background: var(--mz-orange); }
.mz-show__play-icon {
    width: 0; height: 0;
    border-style: solid;
    border-width: 6px 0 6px 10px;
    border-color: transparent transparent transparent #fff;
}
.mz-show__body { display: flex; flex-direction: column; flex: 1 1 auto; }
.mz-show__name {
    font-family: var(--mz-display);
    font-weight: 600;
    font-size: 22px;
    line-height: 1.2;
    margin: 0 0 10px;
    color: var(--mz-ink);
}
.mz-show__facts {
    display: flex;
    flex-wrap: wrap;
    list-style: none;
    margin: 0 0 12px;
    padding: 0;
    font-size: 15px;
    color: var(--mz-muted);
}
.mz-show__facts li + li { margin-left: 10px; padding-left: 10px; border-left: 1px solid var(--mz-line); }
.mz-show__text  { font-size: 16px; color: var(--mz-ink); }
.mz-show__stage { font-size: 15px; color: var(--mz-muted); }
.mz-show__foot  { margin-top: auto; padding-top: 8px; }
.mz-show__price { font-weight: 700; font-size: 17px; margin-bottom: 12px !important; }
.mz-show__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; }

.mz-empty {
    max-width: 640px;
    padding: 24px 28px;
    border-left: 4px solid var(--mz-orange);
    background: var(--mz-mist);
    font-size: 18px;
}

/* ---------- Число гостей -------------------------------------------------- */
.mz-guests {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 16px;
}
.mz-guest {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    width: 100%;
    height: 100%;
    padding: 28px 28px 24px;
    border: 2px solid transparent;
    border-radius: 6px;
    background: #fff;
    color: var(--mz-ink);
    font: inherit;
    text-align: left;
    cursor: pointer;
    transition: border-color .15s ease;
}
.mz-guest:hover { border-color: var(--mz-orange); }
.mz-guest__count {
    font-family: var(--mz-display);
    font-weight: 700;
    font-size: 26px;
    line-height: 1.1;
    margin-bottom: 10px;
}
.mz-guest__where { color: var(--mz-muted); margin-bottom: 24px; }
.mz-guest__go {
    margin-top: auto;
    color: var(--mz-orange-dark);
    font-weight: 600;
    text-decoration: underline;
    text-underline-offset: 3px;
}

/* ---------- Что привезём -------------------------------------------------- */
.mz-included__list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
    gap: 36px 32px;
    margin: 0;
}
.mz-included__list > div {
    padding-top: 18px;
    border-top: 1px solid var(--mz-stage-line);
}
.mz-included__list dt {
    font-family: var(--mz-display);
    font-weight: 600;
    font-size: 19px;
    line-height: 1.25;
    margin-bottom: 8px;
}
.mz-included__list dd { margin: 0; color: rgba(255, 255, 255, .75); font-size: 16px; }

/* ---------- Как заказать (последовательность — отсюда и номера) ----------- */
.mz-steps {
    list-style: none;
    margin: 0 0 48px;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 32px;
    counter-reset: none;
}
.mz-step__num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    margin-bottom: 18px;
    border: 2px solid var(--mz-orange);
    border-radius: 50%;
    color: var(--mz-orange-dark);
    font-family: var(--mz-display);
    font-weight: 700;
    font-size: 20px;
}
.mz-step__title {
    font-family: var(--mz-display);
    font-weight: 600;
    font-size: 20px;
    line-height: 1.25;
    margin: 0 0 8px;
}
.mz-step p { color: var(--mz-muted); }
.mz-step a { color: var(--mz-ink); font-weight: 600; white-space: nowrap; }

/* ---------- О театре ------------------------------------------------------ */
.mz-about {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 56px;
    align-items: start;
}
.mz-about__text { max-width: 600px; }
.mz-partners {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    list-style: none;
    margin: 0 0 24px;
    padding: 0;
}
.mz-partners li {
    padding: 6px 14px;
    border: 1px solid var(--mz-line);
    border-radius: 999px;
    background: #fff;
    font-size: 15px;
}
.mz-about__pdf { margin: 0; }
.mz-about__photos { position: relative; margin: 0; padding-bottom: 18%; }
.mz-about__photos img { border-radius: 6px; }
.mz-about__photos img:first-child { width: 82%; }
.mz-about__photos img:last-child {
    position: absolute;
    right: 0;
    bottom: 0;
    width: 56%;
    border: 6px solid var(--mz-mist);
    border-radius: 10px;
}
@media (max-width: 900px) {
    .mz-about { grid-template-columns: 1fr; gap: 32px; }
}

/* ---------- Вопросы ------------------------------------------------------- */
.mz-faq__list { max-width: 860px; }
.mz-faq .mz-h2 { margin-bottom: 28px; }
.mz-faq__item { border-bottom: 1px solid var(--mz-line); }
.mz-faq__item summary {
    position: relative;
    padding: 20px 48px 20px 0;
    font-weight: 600;
    font-size: 18px;
    cursor: pointer;
    list-style: none;
}
.mz-faq__item summary::-webkit-details-marker { display: none; }
.mz-faq__item summary::after {
    content: "";
    position: absolute;
    right: 8px;
    top: 50%;
    width: 14px;
    height: 14px;
    margin-top: -7px;
    background:
        linear-gradient(var(--mz-orange), var(--mz-orange)) center / 14px 2px no-repeat,
        linear-gradient(var(--mz-orange), var(--mz-orange)) center / 2px 14px no-repeat;
    transition: transform .2s ease;
}
.mz-faq__item[open] summary::after { transform: rotate(45deg); }
.mz-faq__item p { margin: 0 0 22px; color: var(--mz-muted); max-width: 720px; }

/* ---------- SEO-текст ----------------------------------------------------- */
.mz-section--seo { padding-top: 0; }
.mz-seo { color: var(--mz-muted); font-size: 16px; }
.mz-seo > * { max-width: 820px; }
.mz-seo h2 { font-size: 22px; color: var(--mz-ink); margin-top: 32px; }
.mz-seo h2:first-child { margin-top: 0; }
.mz-seo a { color: var(--mz-ink); font-weight: 600; white-space: nowrap; }

/* ---------- Финал --------------------------------------------------------- */
.mz-finale { background: var(--mz-orange); color: #fff; padding: 56px 0; }
.mz-finale__inner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 24px 48px;
}
.mz-finale__text {
    font-family: var(--mz-display);
    font-weight: 700;
    font-size: clamp(22px, 2.4vw, 30px);
    line-height: 1.2;
    max-width: 640px;
    margin: 0 !important;
}
.mz-finale__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 28px; }
.mz-finale__phone { color: #fff !important; font-size: 20px; font-weight: 700; text-decoration: none; white-space: nowrap; }
.mz-finale__phone:hover { text-decoration: underline; }

/* ---------- Диалоги (поверх .modal из app.css) ---------------------------- */
.mz-dialog .modal-dialog { max-width: 520px; padding: 0 12px; }
.mz-dialog .modal-content {
    padding: 36px 32px 28px;
    border-radius: 14px;
    font-family: "gotham", Helvetica, Arial, sans-serif;
    color: var(--mz-ink);
}
@media (max-width: 500px) { .mz-dialog .modal-content { padding: 32px 20px 24px; } }
.mz-dialog .modal-header { margin-bottom: 24px; padding-right: 32px; }
.mz-dialog .modal-header h3 {
    font-family: var(--mz-display);
    font-weight: 700;
    font-size: 24px;
    line-height: 1.15;
    margin: 0 0 8px;
}
.mz-dialog__sub { color: var(--mz-muted); font-size: 15px; margin: 0; }
.mz-dialog .modal-body { margin-bottom: 20px; }
.mz-dialog .modal-body p { font-size: 17px; margin: 0; }
.mz-dialog__consent { font-size: 12px; line-height: 1.4; color: var(--mz-muted); margin: 12px 0 0; }
.mz-dialog__consent a { color: inherit; text-decoration: underline; }

.mz-field { display: block; margin: 0 0 14px; }
.mz-field__label { display: block; margin-bottom: 6px; font-size: 14px; font-weight: 600; }
.mz-field__label i { font-style: normal; font-weight: 400; color: var(--mz-muted); }
.mz-field__input {
    display: block;
    width: 100%;
    height: 48px;
    padding: 10px 14px;
    border: 1px solid #b9c7c5;
    border-radius: 8px;
    background: #fff;
    color: var(--mz-ink);
    font: 400 16px/1.3 "gotham", Helvetica, Arial, sans-serif;
    transition: border-color .15s ease;
}
.mz-field__input::placeholder { color: #93a2a0; }
.mz-field__input:hover { border-color: var(--mz-muted); }
.mz-field__input:focus { outline: none; border-color: var(--mz-orange); box-shadow: 0 0 0 3px rgba(233, 81, 14, .2); }
.mz-field__input.parsley-error { border-color: #b51f2f; }
.mz-field .parsley-errors-list { display: none; }
.mz-field__textarea { height: auto; min-height: 84px; resize: vertical; }
.mz-field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
@media (max-width: 420px) { .mz-field-row { grid-template-columns: 1fr; gap: 0; } }

/* Видео: окно шире формы, кнопка закрытия — над роликом */
.mz-dialog--video .modal-dialog { max-width: 960px; }
.mz-dialog--video .modal-content { padding: 0; background: #000; border-radius: 10px; overflow: visible; }
.mz-dialog--video .modal-close { top: -48px; right: 0; }
.mz-dialog--video .modal-close:before { filter: invert(1); }
.mz-video { position: relative; aspect-ratio: 16 / 9; }
.mz-video iframe,
.mz-video video { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; border-radius: 10px; background: #000; }
