body {
    margin: 0;
    padding: 0;
    background-color: #fefcf9;
}


.roboto-condensed-400 {
    font-family: "Roboto Condensed", sans-serif;
    font-optical-sizing: auto;
    font-weight: 400;
    font-style: normal;
}

.roboto-condensed-700 {
    font-family: "Roboto Condensed", sans-serif;
    font-optical-sizing: auto;
    font-weight: 700;
    font-style: normal;
}

.roboto-condensed-800 {
    font-family: "Roboto Condensed", sans-serif;
    font-optical-sizing: auto;
    font-weight: 800;
    font-style: normal;
}

.roboto-400 {
    font-family: "Roboto", sans-serif;
    font-weight: 400;
    font-style: normal;
}

.roboto-700 {
    font-family: "Roboto", sans-serif;
    font-weight: 700;
    font-style: normal;
}

.swiper-button-next, .swiper-button-prev {
    color: white;
}


.swiper-galerey .swiper-slide img {
    width: 100%;
    display: block;
    border-radius: 20px;

}

.logo-down {
    max-height: 80px;
}

/* Миниатюры */
.swiper-galerey.thumbs {
    margin-top: 20px;
    width: 80%;
    overflow: hidden;
    max-width: 700px;
    display: flex;
    justify-content: center;
    gap: 10px;
}

.swiper-galerey.thumbs .swiper-slide {
    width: 22%;
    cursor: pointer;
    opacity: 0.6;
    border-radius: 20px;
    overflow: hidden;
}


.swiper-galerey.thumbs .swiper-slide-thumb-active {
    opacity: 1;
    border: 3px solid #7a2e3e;
}

.swiper-galerey.thumbs img {
    width: 100%;
    border-radius: 3px;
    display: block;
}

/* Micromodal styles */
.modal {
    display: none;
}

.modal.is-open {
    display: block;
}

.modal__overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

.modal__container {
    background-color: #fff;
    max-width: 1300px;
    width: 95%;

    max-height: 90vh;
    border-radius: 12px;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    position: relative;
    margin: auto;
}

.modal__container.hall {
    max-width: 1300px;
}

#ticketModal .hall .grid {
    grid-template-columns: 3fr 2fr;
}

.modal__close {
    background: transparent;
    border: 0;
    cursor: pointer;
    padding: 0;
    width: 2rem;
    height: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #6b7280;
}

.modal__close:hover {
    color: #111827;
}

.modal__close::before {
    content: "×";
    font-size: 2rem;
    line-height: 1;
}

/* Animations */
@keyframes mmfadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes mmfadeOut {
    from {
        opacity: 1;
    }
    to {
        opacity: 0;
    }
}

@keyframes mmslideIn {
    from {
        transform: translateY(-20%);
    }
    to {
        transform: translateY(0);
    }
}

@keyframes mmslideOut {
    from {
        transform: translateY(0);
    }
    to {
        transform: translateY(-20%);
    }
}

.micromodal-slide[aria-hidden="false"] .modal__overlay {
    animation: mmfadeIn 0.3s cubic-bezier(0, 0, 0.2, 1);
}

.micromodal-slide[aria-hidden="false"] .modal__container {
    animation: mmslideIn 0.3s cubic-bezier(0, 0, 0.2, 1);
}

.micromodal-slide[aria-hidden="true"] .modal__overlay {
    animation: mmfadeOut 0.3s cubic-bezier(0, 0, 0.2, 1);
}

.micromodal-slide[aria-hidden="true"] .modal__container {
    animation: mmslideOut 0.3s cubic-bezier(0, 0, 0.2, 1);
}

body:has(.modal[aria-hidden="false"]) {
    overflow: hidden !important;
}

.top-phone {
    text-align: left;
}

/* Предотвращаем авто-фокус на input при открытии модалки (мобильные браузеры) */
.modal__container input,
.modal__container textarea {
    scroll-margin: 0;
}

@media (max-width: 767px) {
    .modal__container {
        border-radius: 8px;
    }

    .swiper-galerey.thumbs .swiper-slide {
        border-radius: 10px;
    }
}


.hall-container svg text {
    fill: white;
    font-size: 10px;
    cursor: pointer;
}

.hall-container #scene {
    font-size: 35px;
    fill: #887f7f;
    font-weight: 500;
}

.hall-container #scene text {
    fill: #7a2e3e;
    font-size: 29px;
}

.hall-container #row text {
    fill: #7a2e3e;
}


/* Адаптивная раскладка для билетов */
.ticket-item {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.75rem;
}

.ticket-info {
    width: 100%;
}

.ticket-description:empty {
    display: none;
}

.ticket-controls {
    width: max-content;
}

@media (min-width: 868px) {
    .ticket-item {
        display: grid;
        grid-template-columns: minmax(0, 1fr) auto auto;
        align-items: center;
        gap: 1rem;
    }

    .ticket-info {
        min-width: 0;
    }

    .ticket-title {
        grid-column: 1;
    }

    .ticket-controls {
        grid-column: 2;
    }

    .ticket-price {
        grid-column: 3;
        justify-self: end;
    }
}

@media (max-width: 767px) {
    .ticket-item {
        align-items: center;
        text-align: center;
    }

    .ticket-info {
        display: flex;
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .ticket-controls,
    .ticket-price {
        align-self: center;
        justify-content: center;
    }

    .ticket-price {
        width: 100%;
    }
}


.html-text-editor ul {
    list-style-type: disc;
}

.html-text-editor ol {
    list-style-type: decimal;
}

.html-text-editor ol, .html-text-editor ul, .html-text-editor p {
    margin-bottom: 0 !important;
}

.addit-reg-btn {
    border: 1.5px #793a47 solid;
    color: #793a47;
    background: #ffffff;

}


.addit-reg-btn .bg-white {
    background: #7a2e3e;
}

.addit-reg-btn img {
    filter: brightness(0) invert(1);
}


@media (max-width: 768px) {
    .reg-btn {
        font-size: 14px !important;
    }
}

/* ── Selected seat pulse animation ─────────────────────────────────────── */
@keyframes seat-pulse {
    0% {
        fill: #e5e7eb;
        filter: drop-shadow(0 0 2px rgba(122, 46, 62, 0.4));
        opacity: 1;
    }
    50% {
        fill: #fbbf24;
        filter: drop-shadow(0 0 12px rgba(251, 191, 36, 1)) drop-shadow(0 0 5px rgba(255, 255, 255, 0.9));
        opacity: 0.85;
    }
    100% {
        fill: #e5e7eb;
        filter: drop-shadow(0 0 2px rgba(122, 46, 62, 0.4));
        opacity: 1;
    }
}

.hall-seat--selected {
    animation: seat-pulse 1.0s ease-in-out infinite;
}

/* ── Sticky cart bar (mobile only) ─────────────────────────────────────── */
.seat-sticky-bar {
    display: none; /* shown only on mobile via JS + media query */
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 10001; /* выше модального оверлея (9999) */
    background-color: #7a2e3e;
    color: #fff;
    /* padding-bottom учитывает safe-area на iOS (Home indicator + панель браузера).
       fallback 14px для старых устройств без поддержки env() */
    padding: 14px 20px;
    padding-bottom: calc(14px + env(safe-area-inset-bottom, 0px));
    font-family: "Roboto Condensed", sans-serif;
    font-weight: 700;
    font-size: 15px;
    cursor: pointer;
    align-items: center;
    justify-content: space-between;
    box-shadow: 0 -3px 12px rgba(0, 0, 0, 0.18);
    transform: translateY(100%);
    transition: transform 0.3s ease;
    -webkit-tap-highlight-color: transparent;
    user-select: none;
}

.seat-sticky-bar--visible {
    transform: translateY(0);
}

.seat-sticky-bar__label {
    display: flex;
    align-items: center;
    gap: 8px;
}

.seat-sticky-bar__icon {
    font-size: 20px;
    line-height: 1;
}

.seat-sticky-bar__arrow {
    font-size: 20px;
    opacity: 0.8;
}

@media (min-width: 768px) {
    .seat-sticky-bar {
        display: none !important;
    }
}

