.btn {
    border: 1px solid #F44336;
    background: #F44336;
}

.form-control-pt input[type=radio]:checked + label {
    background: #F44336;
}
/* контейнер сетки */
.page.step.step-onlytid > .container {
    display: grid !important;
    grid-template-columns: repeat(1, minmax(0, 1fr)) !important;
    gap: 22px !important;

    width: 100% !important;
    max-width: 1180px !important;
    margin: 0 auto !important;
    padding: 8px 14px 24px !important;
    box-sizing: border-box !important;
}

@media (min-width: 768px) {
    .page.step.step-onlytid > .container {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    }
}

@media (min-width: 1100px) {
    .page.step.step-onlytid > .container {
        grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    }
}

/* сама карточка */
.page.step.step-onlytid > .container > .tg-event-element {
    position: relative !important;
    display: block !important;

    width: auto !important;
    min-width: 0 !important;
    max-width: none !important;
    height: auto !important;
    min-height: 0 !important;

    margin: 0 !important;
    padding: 0 !important;

    overflow: hidden !important;
    border-radius: 24px !important;
    background: #ffffff !important;
    border: 1px solid #f1f5f9 !important;
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.06) !important;

    transition:
        box-shadow .24s ease,
        transform .24s ease,
        border-color .24s ease !important;
}

/* убираем margin-top:25px и мобильные margin:10px */
.page.step.step-onlytid .tg-event-element > .tg-event-element-name-tr {
    display: block !important;
    width: 100% !important;
    height: auto !important;
    min-height: 0 !important;

    margin: 0 !important;
    padding: 0 !important;
}

/* главный конфликтный блок */
.page.step.step-onlytid .tg-event-element-name-tr > .tg-event-element-name {
    position: relative !important;
    display: block !important;

    width: 100% !important;
    height: auto !important;
    min-height: 0 !important;

    margin: 0 !important;
    padding: 0 !important;

    border: 0 !important;
    border-radius: 0 !important;

    background-image: none !important;
    background-size: 0 0 !important;
    background-position: center !important;
    background-repeat: no-repeat !important;

    box-shadow: none !important;
    overflow: hidden !important;
}

/* картинка сверху карточки */
.page.step.step-onlytid .tg-event-element-name .tg-event-image {
    display: block !important;

    width: 100% !important;
    height: auto !important;
    min-height: 0 !important;
    max-height: none !important;
    aspect-ratio: 16 / 10 !important;

    margin: 0 !important;
    padding: 0 !important;

    border: 0 !important;
    border-radius: 0 !important;

    background-size: cover !important;
    background-position: center !important;
    background-repeat: no-repeat !important;

    transition:
        transform .55s ease,
        filter .24s ease !important;
}

/* контент внутри карточки */
.page.step.step-onlytid .tg-event-element-name .tg-event-flex {
    display: flex !important;
    flex-direction: column !important;

    width: 100% !important;
    min-width: 0 !important;
    min-height: 235px !important;

    margin: 0 !important;
    padding: 18px 18px 16px !important;
    box-sizing: border-box !important;
}

/* тема */
.page.step.step-onlytid .tg-event-theme {
    align-self: flex-start !important;
    max-width: 100% !important;

    margin: 0 0 10px !important;
    padding: 5px 9px !important;

    border-radius: 999px !important;
    background: #ecfdf5 !important;
    color: #047857 !important;

    font-size: 10px !important;
    line-height: 1 !important;
    font-weight: 800 !important;
    letter-spacing: .04em !important;
    text-transform: uppercase !important;

    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
}

/* ссылка */
.page.step.step-onlytid .tg-event-flex > a {
    display: block !important;
    color: inherit !important;
    text-decoration: none !important;
    border: 0 !important;
}

/* название */
.page.step.step-onlytid .tg-event-name {
    margin: 0 0 8px !important;
    padding: 0 !important;

    color: #111827 !important;
    font-size: 18px !important;
    line-height: 1.22 !important;
    font-weight: 800 !important;

    display: -webkit-box !important;
    -webkit-line-clamp: 4 !important;
    -webkit-box-orient: vertical !important;
    overflow: hidden !important;

    transition: color .2s ease !important;
}

/* возраст */
.page.step.step-onlytid .age_category {
    display: inline-flex !important;
    margin: 0 0 10px !important;
    padding: 0 !important;
}

.page.step.step-onlytid .age_category_title {
    display: inline-flex !important;
    align-items: center !important;

    padding: 4px 8px !important;
    border-radius: 999px !important;

    background: #eff6ff !important;
    color: #F44336 !important;

    font-size: 10px !important;
    line-height: 1 !important;
    font-weight: 700 !important;
}

/* описание */
.page.step.step-onlytid .tg-event-elements-desc {
    margin: 0 0 14px !important;
    padding: 0 !important;

    color: #6b7280 !important;
    font-size: 14px !important;
    line-height: 1.45 !important;

    display: -webkit-box !important;
    -webkit-line-clamp: 2 !important;
    -webkit-box-orient: vertical !important;
    overflow: hidden !important;
}

.page.step.step-onlytid .tg-event-elements-desc p {
    margin: 0 !important;
    padding: 0 !important;
}

.page.step.step-onlytid .tg-event-elements-desc p:empty {
    display: none !important;
}

/* дата/зал */
.page.step.step-onlytid .tg-event-elements-sessions-group {
    margin-top: auto !important;
    padding: 13px 0 0 !important;
    border-top: 1px solid #f1f5f9 !important;

    color: #F44336 !important;
    font-size: 14px !important;
    line-height: 1.25 !important;
    font-weight: 800 !important;
}

.page.step.step-onlytid .tg-event-elements-sessions-group-halls {
    margin-top: 5px !important;

    color: #9ca3af !important;
    font-size: 12px !important;
    line-height: 1.25 !important;
    font-weight: 600 !important;
}

.page.step.step-onlytid .tg-event-elements-sessions-group-halls div {
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    white-space: nowrap !important;
}

/* кнопка */
.page.step.step-onlytid .tg-event-buttons {
    display: flex !important;
    margin-top: 14px !important;
}

.page.step.step-onlytid .tg-event-button {
    width: 100% !important;
}

.page.step.step-onlytid .tg-event-button a {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;

    width: 100% !important;
    min-height: 40px !important;
    padding: 10px 14px !important;
    box-sizing: border-box !important;

    border-radius: 999px !important;
    border: 0 !important;

    background: rgb(17 24 39) !important;
    color: #ffffff !important;

    font-size: 13px !important;
    line-height: 1 !important;
    font-weight: 800 !important;
    text-decoration: none !important;

    transition:
        background .2s ease,
        transform .2s ease,
        box-shadow .2s ease !important;
}

.page.step.step-onlytid .tg-event-button a::after {
    content: "→";
    margin-left: 8px;
    font-size: 15px;
    line-height: 1;
    transition: transform .2s ease;
}

/* hover */
.page.step.step-onlytid > .container > .tg-event-element:hover {
    transform: translateY(-3px) !important;
    border-color: #e5e7eb !important;
    box-shadow: 0 18px 36px rgba(15, 23, 42, 0.13) !important;
}

.page.step.step-onlytid .tg-event-element:hover .tg-event-image {
    transform: scale(1.045) !important;
    filter: saturate(1.05) !important;
}

.page.step.step-onlytid .tg-event-element:hover .tg-event-name {
    color: #F44336 !important;
}

.page.step.step-onlytid .tg-event-element:hover .tg-event-button a {
    background: #F44336 !important;
    box-shadow: 0 10px 20px rgba(37, 99, 235, 0.22) !important;
}

.page.step.step-onlytid .tg-event-element:hover .tg-event-button a::after {
    transform: translateX(3px);
}

/* мобильные переопределения старых media max-width:660px */
@media (max-width: 660px) {

header .headerTitle {
    background:unset !important;
}


    .page.step.step-onlytid > .container {
        display: grid !important;
        grid-template-columns: 1fr !important;
        gap: 14px !important;
        padding: 6px 10px 20px !important;
    }

    .page.step.step-onlytid > .container > .tg-event-element {
        width: auto !important;
        min-width: 0 !important;
        max-width: none !important;
        height: auto !important;
        margin: 0 !important;
        border-radius: 20px !important;
    }

    .page.step.step-onlytid .tg-event-element > .tg-event-element-name-tr {
        margin: 0 !important;
        height: auto !important;
    }

    .page.step.step-onlytid .tg-event-element-name-tr > .tg-event-element-name {
        display: block !important;
        height: auto !important;
        margin: 0 !important;
        padding: 0 !important;
        border: 0 !important;
        border-radius: 0 !important;
    }

    .page.step.step-onlytid .tg-event-element-name .tg-event-flex {
        padding: 15px 14px 14px !important;
        min-height: 215px !important;
    }

    .page.step.step-onlytid .tg-event-name {
        font-size: 16px !important;
    }

    .page.step.step-onlytid .tg-event-elements-desc {
        font-size: 13px !important;
        -webkit-line-clamp: 2 !important;
    }

    .page.step.step-onlytid .tg-event-button a {
        min-height: 38px !important;
        font-size: 12.5px !important;
    }
}
/* ===== Header виджета ===== */

header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;

    width: 100%;
    min-height: 58px;
    z-index: 999;

    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;

    padding: 10px 18px;
    box-sizing: border-box;

    background: #F44336;
    color: #fff;
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);

    border-bottom: 1px solid rgba(226, 232, 240, 0.9);
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.08);
}

/* левая часть */
header .headerTitle {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
    background: #F44336 url(https://static.tildacdn.com/tild6232-6461-4066-b361-353037356661/Russia-CS-Logo_White.png) no-repeat right center;
    flex: 1 1 auto;
    background-size: contain;
}

/* ссылка вокруг заголовка */
header .headerTitle > a {
    display: block;
    min-width: 0;
    color: inherit;
    text-decoration: none !important;
    border: 0 !important;
}

/* заголовок */
header .headerTitle h1 {
    margin: 0;
    padding: 0;

    color: rgb(255 255 255);
    font-size: 16px;
    line-height: 1.2;
    font-weight: 800;
    letter-spacing: -0.02em;

    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;

    max-width: min(720px, 70vw);
}

/* лого */
header .logo {
    width: 34px;
    height: 34px;
    flex: 0 0 34px;
    display: none;
    border-radius: 12px;
    background:
        linear-gradient(135deg, rgba(37, 99, 235, 0.95), rgba(17, 24, 39, 0.95));
    box-shadow:
        0 8px 18px rgba(37, 99, 235, 0.20),
        inset 0 0 0 1px rgba(255, 255, 255, 0.25);

    position: relative;
    overflow: hidden;
}

/* декоративные квадратики внутри логотипа */
header .logo::before {
    content: "";
    position: absolute;
    inset: 8px;

    background:
        linear-gradient(#ffffff, #ffffff) left top / 7px 7px no-repeat,
        linear-gradient(#ffffff, #ffffff) right top / 7px 7px no-repeat,
        linear-gradient(#ffffff, #ffffff) left bottom / 7px 7px no-repeat,
        linear-gradient(#ffffff, #ffffff) right bottom / 7px 7px no-repeat;
    opacity: .92;
}

/* языки/валюты справа */
header .tg_all_langs,
header .tg_all_currencies {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    gap: 6px;
}

/* если внутри будут ссылки/кнопки */
header .tg_all_langs a,
header .tg_all_currencies a,
header .tg_all_langs button,
header .tg_all_currencies button {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    min-height: 32px;
    padding: 6px 10px;

    border-radius: 999px;
    border: 1px solid #e5e7eb;
    background: #ffffff;

    color: #374151;
    font-size: 12px;
    font-weight: 700;
    text-decoration: none !important;

    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
    transition:
        border-color .18s ease,
        color .18s ease,
        box-shadow .18s ease;
}

header .tg_all_langs a:hover,
header .tg_all_currencies a:hover,
header .tg_all_langs button:hover,
header .tg_all_currencies button:hover {
    border-color: #cbd5e1;
    color: rgb(17 24 39);
    box-shadow: 0 5px 12px rgba(15, 23, 42, 0.08);
}


/* телефон */
@media (max-width: 520px) {
    .step-onlytid > .container {
        gap: 14px;
        padding: 6px 10px 20px;
    }
    @media (max-width: 640px) {
    header {
        min-height: 54px;
        padding: 8px 10px;
        gap: 8px;
    }

    header .logo {
        width: 30px;
        height: 30px;
        flex-basis: 30px;
        border-radius: 10px;
    }

    header .logo::before {
        inset: 7px;
        background:
            linear-gradient(#ffffff, #ffffff) left top / 6px 6px no-repeat,
            linear-gradient(#ffffff, #ffffff) right top / 6px 6px no-repeat,
            linear-gradient(#ffffff, #ffffff) left bottom / 6px 6px no-repeat,
            linear-gradient(#ffffff, #ffffff) right bottom / 6px 6px no-repeat;
    }

    header .headerTitle h1 {
        font-size: 13px;
        max-width: calc(100vw - 120px);
    }

    body {
        padding-top: 58px;
    }
}

    .step-onlytid .tg-event-element {
        border-radius: 20px;
    }

    .step-onlytid .tg-event-flex {
        padding: 15px 14px 14px;
        min-height: 215px;
    }

    .step-onlytid .tg-event-name {
        font-size: 16px;
    }

    .step-onlytid .tg-event-elements-desc {
        font-size: 13px;
        -webkit-line-clamp: 2;
    }

    .step-onlytid .tg-event-button a {
        min-height: 38px;
        font-size: 12.5px;
    }
}



















/* =========================================================
   STEP HALL — выбор билетов, полностью новый компактный стиль
   Акцент: #DA0400
   ========================================================= */

:root {
    --tg-red: #DA0400;
    --tg-red-dark: #b70300;
    --tg-red-soft: #fff1f0;
    --tg-red-border: #ffd2d0;

    --tg-dark: rgb(17 24 39);
    --tg-text: #111827;
    --tg-muted: #6b7280;
    --tg-border: #e5e7eb;
    --tg-soft: #f9fafb;
}

/* ===== Общий контейнер шага ===== */

.page.step.step-hall.step-active {
    background:
        radial-gradient(circle at 15% 0%, rgba(218, 4, 0, 0.06), transparent 30%),
        linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
}

.page.step.step-hall.step-active > .container {
    width: 100% !important;
    max-width: 1160px !important;
    margin: 0 auto !important;
    padding: 10px 14px 116px !important;
    box-sizing: border-box !important;
}

/* ===== Верхняя часть: событие, дата, площадка ===== */

.step-hall .page-title-wrapper {
    margin: 0 !important;
    padding: 18px 14px 12px !important;
    background: transparent !important;
    border: 0 !important;
}

.step-hall .page-title-wrapper .row,
.step-hall .page-title-wrapper .col,
.step-hall .container-col {
    margin: 0 !important;
    padding: 0 !important;
}

.step-hall .page-title.eventName {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    gap: 8px !important;

    max-width: 900px !important;
    margin: 0 auto !important;
    padding: 0 !important;

    text-align: center !important;
    color: var(--tg-text) !important;
}

.step-hall .event_top_name {
    display: block !important;

    color: var(--tg-text) !important;
    font-size: 22px !important;
    line-height: 1.22 !important;
    font-weight: 900 !important;
    letter-spacing: -0.035em !important;
}

.step-hall .event_session_date_time {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 6px !important;

    width: fit-content !important;
    margin: 0 auto !important;
    padding: 7px 12px !important;

    border-radius: 999px !important;
    background: var(--tg-red-soft) !important;
    color: var(--tg-red) !important;

    font-size: 13px !important;
    line-height: 1 !important;
    font-weight: 900 !important;
}

/* ===== Площадка ===== */

.step-hall .tg-event-hall {
    max-width: 760px !important;
    margin: 14px auto 0 !important;
    padding: 13px 15px !important;
    box-sizing: border-box !important;

    border-radius: 20px !important;
    background: #ffffff !important;
    border: 1px solid var(--tg-border) !important;
    box-shadow: 0 8px 22px rgba(15, 23, 42, 0.06) !important;
}

.step-hall .tg-hall-title {
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;

    margin: 0 !important;
    padding: 0 !important;

    color: var(--tg-text) !important;
    font-size: 15px !important;
    line-height: 1.25 !important;
    font-weight: 900 !important;
}

.step-hall .tg-hall-title::before {
    content: "📍";
    flex: 0 0 auto;
}

.step-hall .tg-hall-address {
    margin: 6px 0 0 !important;
    padding: 0 !important;

    color: var(--tg-muted) !important;
    font-size: 13px !important;
    line-height: 1.35 !important;
    font-weight: 500 !important;
}

.step-hall .tg-hall-more {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;

    width: 24px !important;
    height: 24px !important;
    margin-left: auto !important;

    border-radius: 999px !important;
    background: var(--tg-red-soft) !important;
    color: var(--tg-red) !important;
    text-decoration: none !important;
}

.step-hall .tg-hall-more::before {
    content: "i";
    font-family: Arial, sans-serif;
    font-size: 13px;
    line-height: 1;
    font-weight: 900;
}

.step-hall .tg-hall-more-icon {
    display: none !important;
}

/* ===== Описание / служебные блоки ===== */

.step-hall .tg-event--short-description,
.step-hall .tg-event-kkt-description {
    max-width: 760px !important;
    margin: 8px auto 0 !important;

    color: var(--tg-muted) !important;
    font-size: 13px !important;
    line-height: 1.45 !important;
}

/* ===== Заголовок "Укажите количество билетов" ===== */

.step-hall .page-subtitle.page-subtitle-2 {
    margin: 20px 0 16px !important;
    padding: 0 !important;

    color: var(--tg-text) !important;
    font-size: 21px !important;
    line-height: 1.2 !important;
    font-weight: 900 !important;
    letter-spacing: -0.03em !important;
    text-align: center !important;
}

/* ===== Форма / уровни ===== */

.step-hall .b-select-tickets,
.step-hall #reserveForm,
.step-hall .levelsAll {
    width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
}

.step-hall .level {
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    background: transparent !important;
}

.step-hall .levelname {
    display: none !important;
    align-items: center !important;
    gap: 8px !important;

    margin: 0 0 12px !important;
    padding: 8px 12px !important;

    border-radius: 999px !important;
    background: var(--tg-dark) !important;
    color: #ffffff !important;

    font-size: 13px !important;
    line-height: 1 !important;
    font-weight: 900 !important;
}

.step-hall .tg-level-free {
    opacity: .72 !important;
    font-size: 11px !important;
    font-weight: 700 !important;
}

.step-hall .pb_description {
    margin: 0 !important;
    padding: 0 !important;
}

/* ===== Сетка тарифов ===== */

.step-hall .tarif_group {
    display: grid !important;
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: 14px !important;

    width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;

    background: transparent !important;
    border: 0 !important;
}

.step-hall .tarif_group_name {
    grid-column: 1 / -1 !important;

    margin: 0 0 -2px !important;
    padding: 0 !important;

    color: var(--tg-muted) !important;
    color: #F44336 !important;
    font-size: 13px !important;
    line-height: 1.2 !important;
    font-weight: 900 !important;
    text-transform: uppercase !important;
    letter-spacing: .04em !important;
}

/* ===== Карточка билета ===== */

.step-hall .ticket-type {
    position: relative !important;
    display: block !important;
    overflow: hidden !important;

    width: auto !important;
    min-width: 0 !important;
    max-width: none !important;
    height: auto !important;
    min-height: 0 !important;

    margin: 0 !important;
    padding: 0 !important;

    border-radius: 24px !important;
    background: #ffffff !important;
    border: 1px solid #f1f5f9 !important;
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.06) !important;

    transition:
        transform .22s ease,
        box-shadow .22s ease,
        border-color .22s ease !important;
}

.step-hall .ticket-type::after {
    content: "🎟";
    position: absolute;
    top: 16px;
    right: 18px;
    z-index: 0;

    font-size: 42px;
    line-height: 1;
    opacity: .07;

    pointer-events: none;
    transition: opacity .2s ease, transform .2s ease;
}

/* Сброс bootstrap row/cols внутри карточки */

.step-hall .ticket-type > .row {
    position: relative !important;
    z-index: 1 !important;

    display: flex !important;
    flex-direction: column !important;

    min-height: 230px !important;
    margin: 0 !important;
    padding: 18px !important;
    box-sizing: border-box !important;
}

.step-hall .ticket-type > .row > .col,
.step-hall .ticket-type > .row > [class*="col-"] {
    width: 100% !important;
    max-width: 100% !important;
    flex: 0 0 auto !important;

    margin: 0 !important;
    padding: 0 !important;
}

/* ===== Название / описание тарифа ===== */

.step-hall .ticket-type-name {
    margin: 0 0 12px !important;
    padding: 0 !important;
}

.step-hall .ticket-type-name::before {
    content: "🎫";

    display: none !important;
    align-items: center !important;
    justify-content: center !important;

    width: 44px !important;
    height: 44px !important;
    margin: 0 0 12px !important;

    border-radius: 14px !important;
    background: var(--tg-red-soft) !important;

    color: var(--tg-red) !important;
    font-size: 20px !important;
    line-height: 1 !important;

    transition:
        background .22s ease,
        color .22s ease,
        transform .22s ease !important;
}

.step-hall .tg-price-name {
    margin: 0 0 6px !important;
    padding: 0 !important;

    color: var(--tg-text) !important;
    font-size: 16px !important;
    line-height: 1.18 !important;
    font-weight: 600 !important;
    letter-spacing: -0.025em !important;
}

.step-hall .tg-tarif-description {
    margin: 0 !important;
    padding: 0 !important;

    color: var(--tg-muted) !important;
    font-size: 12px !important;
    line-height: 1.35 !important;
    font-weight: 500 !important;

    display: -webkit-box !important;
    -webkit-line-clamp: 2 !important;
    -webkit-box-orient: vertical !important;
    overflow: hidden !important;
}

/* ===== Цена ===== */

.step-hall .ticket-type-price {
    margin: auto 0 14px !important;
    padding: 0 !important;

    color: var(--tg-text) !important;
    font-size: 24px !important;
    line-height: 1 !important;
    font-weight: 950 !important;
    letter-spacing: -0.04em !important;
}

/* ===== Счётчик ===== */

.step-hall .openPriceType {
    margin-top: auto !important;
}

.step-hall .ticket-type-count-selector {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 8px !important;

    width: 100% !important;
    min-height: 54px !important;

    margin: 0 !important;
    padding: 6px !important;
    box-sizing: border-box !important;

    border-radius: 16px !important;
    background: var(--tg-soft) !important;
    border: 1px solid #f1f5f9 !important;
}

/* Кнопки делаем текстом, чтобы + и - точно были видны */

.step-hall .ticket-type-count-btn {
    position: relative !important;

    display: flex !important;
    align-items: center !important;
    justify-content: center !important;

    width: 40px !important;
    height: 40px !important;
    min-width: 40px !important;

    margin: 0 !important;
    padding: 0 !important;

    border-radius: 12px !important;
    border: 1px solid var(--tg-border) !important;
    background: #ffffff !important;

    color: var(--tg-dark) !important;

    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.08) !important;
    cursor: pointer !important;

    transition:
        background .18s ease,
        color .18s ease,
        border-color .18s ease,
        transform .18s ease,
        box-shadow .18s ease !important;
}

/* Прячем старые svg, потому что они у тебя могут быть невидимыми */
.step-hall .ticket-type-count-btn svg {
    display: none !important;
}

.step-hall .ticket-type-count-btn::before {
    display: block !important;
    color: currentColor !important;
    font-size: 24px !important;
    line-height: 1 !important;
    font-weight: 800 !important;
}

.step-hall .sub-count-btn::before {
    content: "−";
}

.step-hall .add-count-btn::before {
    content: "+";
}

.step-hall .add-count-btn {
    color: var(--tg-red) !important;
}

.step-hall .sub-count-btn:not(:disabled) {
    color: var(--tg-red) !important;
}

.step-hall .ticket-type-count-btn:hover:not(:disabled) {
    background: var(--tg-red-soft) !important;
    color: var(--tg-red) !important;
    border-color: var(--tg-red-border) !important;
    box-shadow: 0 5px 12px rgba(218, 4, 0, 0.12) !important;
}

.step-hall .ticket-type-count-btn:active:not(:disabled) {
    transform: scale(.95) !important;
}

.step-hall .ticket-type-count-btn:disabled {
    opacity: .42 !important;
    color: #9ca3af !important;
    cursor: default !important;
    box-shadow: none !important;
}

/* Количество */

.step-hall .ticket-type-current-count {
    flex: 1 1 auto !important;

    min-width: 24px !important;
    margin: 0 !important;
    padding: 0 !important;

    color: var(--tg-text) !important;
    font-size: 18px !important;
    line-height: 1 !important;
    font-weight: 950 !important;
    text-align: center !important;
}

/* ===== Hover / selected ===== */

.step-hall .ticket-type:hover {
    transform: translateY(-2px) !important;
    border-color: var(--tg-red-border) !important;
    box-shadow: 0 16px 30px rgba(218, 4, 0, 0.10) !important;
}

.step-hall .ticket-type:hover::after {
    opacity: .13;
    transform: rotate(-5deg) scale(1.04);
}

.step-hall .ticket-type:hover .ticket-type-name::before {
    background: var(--tg-red) !important;
    color: #ffffff !important;
    transform: translateY(-1px);
}

/* Выбранная карточка: если минус стал активен */
.step-hall .ticket-type:has(.sub-count-btn:not(:disabled)) {
    border-color: var(--tg-red-border) !important;
    box-shadow:
        0 0 0 3px rgba(218, 4, 0, 0.08),
        0 14px 28px rgba(218, 4, 0, 0.12) !important;
}

.step-hall .ticket-type:has(.sub-count-btn:not(:disabled)) .ticket-type-name::before {
    content: "✓";
    background: var(--tg-red) !important;
    color: #ffffff !important;
    font-size: 22px !important;
    font-weight: 900 !important;
}

/* Если добавишь класс из JS — будет работать даже без :has() */
.step-hall .ticket-type.ticket-selected {
    border-color: var(--tg-red-border) !important;
    box-shadow:
        0 0 0 3px rgba(218, 4, 0, 0.08),
        0 14px 28px rgba(218, 4, 0, 0.12) !important;
}

.step-hall .ticket-type.ticket-selected .ticket-type-name::before {
    content: "✓";
    background: var(--tg-red) !important;
    color: #ffffff !important;
}


.step-hall .tg-bottom-panel-button {
    flex: 0 0 auto !important;
}

.step-hall .tg-bottom-panel,
.step-hall .btn-wrapper {
    margin: 0 !important;
    padding: 0 !important;
}

.step-hall .tg-buyButton {
    min-height: 42px !important;
    padding: 0 22px !important;

    border-radius: 999px !important;
    border: 0 !important;

    background: var(--tg-red) !important;
    color: #ffffff !important;

    font-size: 14px !important;
    line-height: 1 !important;
    font-weight: 900 !important;

    box-shadow: 0 10px 22px rgba(218, 4, 0, .32) !important;

    transition:
        background .2s ease,
        transform .2s ease,
        box-shadow .2s ease !important;
}

.step-hall .tg-buyButton:hover {
    background: var(--tg-red-dark) !important;
    transform: translateY(-1px);
    box-shadow: 0 14px 26px rgba(218, 4, 0, .40) !important;
}

/* =========================================================
   ADAPTIVE
   ========================================================= */

@media (max-width: 1100px) {
    .step-hall .tarif_group {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    }
}

/* Телефон: 2 карточки в ряд */
@media (max-width: 660px) {
    .page.step.step-hall.step-active > .container {
        padding: 8px 8px 112px !important;
    }

    .step-hall .page-title-wrapper {
        padding: 12px 10px 8px !important;
    }

    .step-hall .event_top_name {
        font-size: 17px !important;
        line-height: 1.22 !important;
    }

    .step-hall .event_session_date_time {
        padding: 6px 10px !important;
        font-size: 12px !important;
    }

    .step-hall .tg-event-hall {
        margin-top: 10px !important;
        padding: 11px 12px !important;
        border-radius: 18px !important;
    }

    .step-hall .tg-hall-title {
        font-size: 13px !important;
    }

    .step-hall .tg-hall-address {
        font-size: 12px !important;
    }

    .step-hall .page-subtitle.page-subtitle-2 {
        margin: 14px 0 12px !important;
        font-size: 17px !important;
    }

    .step-hall .levelname {
        margin-bottom: 10px !important;
        padding: 7px 10px !important;
        font-size: 12px !important;
    }

    .step-hall .tarif_group {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: 5px !important;
    }

    .step-hall .tarif_group_name {
        font-size: 11px !important;
        margin-bottom: -2px !important;
    }

    .step-hall .ticket-type {
        border-radius: 20px !important;
    }

    .step-hall .ticket-type > .row {
        min-height: 205px !important;
        padding: 14px !important;
          height: 100% !important;
    }

    .step-hall .ticket-type::after {
        top: 12px;
        right: 12px;
        font-size: 34px;
    }

    .step-hall .ticket-type-name {
        margin-bottom: 10px !important;
    }

    .step-hall .ticket-type-name::before {
        width: 38px !important;
        height: 38px !important;
        margin-bottom: 10px !important;
        border-radius: 12px !important;
        font-size: 17px !important;
    }

    .step-hall .tg-price-name {
        font-size: 12px !important;
        line-height: 1.18 !important;
    }

    .step-hall .tg-tarif-description {
        font-size: 11px !important;
        line-height: 1.28 !important;
        -webkit-line-clamp: 2 !important;
    }

    .step-hall .ticket-type-price {
        font-size: 16px !important;
        margin-bottom: 12px !important;
    }

    .step-hall .ticket-type-count-selector {
        min-height: 48px !important;
        padding: 4px !important;
        border-radius: 14px !important;
        gap: 5px !important;
    }

    .step-hall .ticket-type-count-btn {
        width: 34px !important;
        height: 34px !important;
        min-width: 34px !important;
        border-radius: 10px !important;
    }

    .step-hall .ticket-type-count-btn::before {
        font-size: 21px !important;
    }

    .step-hall .ticket-type-current-count {
        min-width: 20px !important;
        font-size: 16px !important;
    }

   
}

.ticket-price-free, .session-time-item-free{
    display: none;
}
.tarif_group_name{
    display: block !important;
}

.step-hall .ticket-type > .row {
    display: flex !important;
    flex-direction: column !important;
}

.step-hall .ticket-type > .row > .col:first-child,
.step-hall .ticket-type > .row > [class*="col-"]:first-child {
    display: flex !important;
    flex-direction: column !important;
    flex: 1 1 auto !important;
}

.step-hall .ticket-type > .row > .openPriceType {
    margin-top: auto !important;
}

/* цена тоже ближе к низу перед кнопками */
.step-hall .ticket-type-price {
    margin-top: auto !important;
    margin-bottom: 14px !important;
}







:root {
    --tg-red: #DA0400;
    --tg-red-dark: #b70300;
    --tg-red-soft: #fff1f0;
    --tg-red-border: #ffd2d0;

    --tg-dark: rgb(17 24 39);
    --tg-text: #111827;
    --tg-muted: #6b7280;
    --tg-border: #e5e7eb;
    --tg-soft: #f8fafc;
}

/* ===== STEP EVENT ===== */

.page.step.step-event {
    background:
        radial-gradient(circle at 12% 0%, rgba(218, 4, 0, .06), transparent 30%),
        linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
}

.page.step.step-event > .container {
    width: 100% !important;
    max-width: 1180px !important;
    margin: 0 auto !important;
    padding: 18px 14px 40px !important;
    box-sizing: border-box !important;
}

/* ===== Hero ===== */

.step-event .page-title-wrapper {
    margin: 0 !important;
    padding: 0 !important;
    background: transparent !important;
    border: 0 !important;
}

.step-event .page-title-wrapper .row,
.step-event .page-title-wrapper .col {
    margin: 0 !important;
    padding: 0 !important;
}

.step-event .page-title {
    position: relative !important;
    width: 100% !important;
    max-width: 1180px !important;
    margin: 0 auto !important;
    padding: 16px 14px 0 !important;
    box-sizing: border-box !important;
}

/* старая скрытая/дублирующая картинка */
.step-event .tg-event-detail-img {
    display: none !important;
}

/* большая картинка */
.step-event .tg-event-detail-image {
    position: relative !important;
    overflow: hidden !important;

    display: flex !important;
    align-items: flex-end !important;

    min-height: 360px !important;
    width: 100% !important;

    margin: 0 !important;
    padding: 34px !important;
    box-sizing: border-box !important;

    border-radius: 34px !important;
    background-size: cover !important;
    background-position: center !important;
    background-repeat: no-repeat !important;

    box-shadow: 0 22px 46px rgba(15, 23, 42, 0.16) !important;
}

/* затемнение */
.step-event .tg-event-detail-image::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;

    background:
        linear-gradient(
            180deg,
            rgba(0, 0, 0, .05) 0%,
            rgba(0, 0, 0, .20) 45%,
            rgba(0, 0, 0, .78) 100%
        );
    pointer-events: none;
}

/* декоративный красный угол */
.step-event .tg-event-detail-image::after {
    content: "";
    position: absolute;
    right: -80px;
    bottom: -80px;
    z-index: 1;

    width: 220px;
    height: 220px;
    border-radius: 50%;

    background: rgba(218, 4, 0, .42);
    filter: blur(8px);
    pointer-events: none;
}

/* название на картинке */
.step-event .tg-event-name-image {
    position: relative !important;
    z-index: 2 !important;

    max-width: 860px !important;

    margin: 0 !important;
    padding: 0 !important;

    color: #ffffff !important;
    font-size: 34px !important;
    line-height: 1.08 !important;
    font-weight: 950 !important;
    letter-spacing: -0.045em !important;
    text-shadow: 0 4px 18px rgba(0, 0, 0, .35) !important;
}

/* возраст */
.step-event .tg-event-name-image .age_category,
.step-event .age_category {
    display: inline-flex !important;
    vertical-align: middle !important;

    margin-left: 8px !important;
    padding: 6px 9px !important;

    border-radius: 999px !important;
    background: rgba(255, 255, 255, .94) !important;
    color: var(--tg-red) !important;

    font-size: 13px !important;
    line-height: 1 !important;
    font-weight: 950 !important;
    letter-spacing: 0 !important;
    text-shadow: none !important;
}

/* кнопка выбрать сеанс */
.step-event .tg-event-buy-button-scroll {
    position: absolute !important;
    right: 34px !important;
    bottom: 34px !important;
    z-index: 3 !important;

    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 8px !important;

    min-height: 46px !important;
    padding: 0 20px !important;

    border-radius: 999px !important;
    background: var(--tg-red) !important;
    color: #ffffff !important;

    font-size: 14px !important;
    line-height: 1 !important;
    font-weight: 900 !important;

    box-shadow: 0 12px 28px rgba(218, 4, 0, .35) !important;
    cursor: pointer !important;

    transition:
        transform .2s ease,
        background .2s ease,
        box-shadow .2s ease !important;
}

.step-event .tg-event-buy-button-scroll::after {
    content: "↓";
    font-size: 16px;
    line-height: 1;
}

.step-event .tg-event-buy-button-scroll:hover {
    background: var(--tg-red-dark) !important;
    transform: translateY(-2px);
    box-shadow: 0 16px 32px rgba(218, 4, 0, .42) !important;
}

/* ===== Описание ===== */

.step-event .tg-events-all,
.step-event .tg-events {
    width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
}

.step-event .tg-detail-container {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) 300px !important;
    gap: 22px !important;

    width: 100% !important;
    margin: 0 0 24px !important;
    padding: 0 !important;
}

.step-event .tg-detail-text {
    margin: 0 !important;
    padding: 26px 28px !important;
    box-sizing: border-box !important;

    border-radius: 28px !important;
    background: #ffffff !important;
    border: 1px solid #eef2f7 !important;
    box-shadow: 0 10px 28px rgba(15, 23, 42, .06) !important;

    color: #374151 !important;
    font-size: 15px !important;
    line-height: 1.65 !important;
    font-weight: 500 !important;
}

.step-event .tg-detail-text p {
    margin: 0 0 12px !important;
    padding: 0 !important;
}

.step-event .tg-detail-text p:last-child {
    margin-bottom: 0 !important;
}

.step-event .tg-detail-text p:empty {
    display: none !important;
}

.step-event .tg-detail-text br {
    display: none;
}

.step-event .tg-detail-text::before {
    content: "Описание";
    display: block;

    margin: 0 0 14px;

    color: var(--tg-text);
    font-size: 22px;
    line-height: 1.2;
    font-weight: 950;
    letter-spacing: -0.035em;
}

/* правый блок, если появятся доп. параметры */
.step-event .tg-detail-add {
    margin: 0 !important;
    padding: 20px !important;
    box-sizing: border-box !important;
    display: none;
    border-radius: 28px !important;
    background: var(--tg-dark) !important;
    color: #ffffff !important;
    box-shadow: 0 14px 34px rgba(15, 23, 42, .14) !important;
}

.step-event .tg-detail-add:empty,
.step-event .tg-detail-add .tg-detail-boxs:empty {
    display: none !important;
}

.step-event .tg-detail-container:has(.tg-detail-add .tg-detail-boxs:empty) {
    grid-template-columns: 1fr !important;
}

/* ===== Заголовок выбора сеанса ===== */

/* ===== Bottom ===== */

.step-event .page-bottom,
.step-event .page-event-bottom {
    height: 24px !important;
}
.flatpickr-months {
    background: #F44336;
}

@media (max-width: 660px) {
.flatpickr-day {
    height: 30px !important;
}



    .page.step.step-event > .container {
        padding: 12px 10px 28px !important;
    }

    .step-event .page-title {
        padding: 10px 10px 0 !important;
    }

    .step-event .tg-event-detail-image {
        min-height: 260px !important;
        padding: 22px !important;
        border-radius: 24px !important;
    }

    .step-event .tg-event-name-image {
        font-size: 22px !important;
        line-height: 1.12 !important;
        padding-right: 0 !important;
    }

    .step-event .tg-event-name-image .age_category,
    .step-event .age_category {
        padding: 5px 8px !important;
        font-size: 11px !important;
    }

    .step-event .tg-event-buy-button-scroll {
        position: relative !important;
        right: auto !important;
        bottom: auto !important;

        width: 100% !important;
        margin: 10px 0 0 !important;
        min-height: 44px !important;
    }

    .step-event .tg-detail-text {
        padding: 20px !important;
        border-radius: 22px !important;
        font-size: 14px !important;
        line-height: 1.55 !important;
    }

    .step-event .tg-detail-text::before {
        font-size: 19px;
    }
}




.eventsComplex {
    width: 100% !important;
    max-width: 760px !important;
    margin: 10px auto 12px !important;
    padding: 0 !important;
}

.eventsComplex .incEvents {
    overflow: hidden !important;
    border-radius: 14px !important;
    background: #ffffff !important;
    border: 1px solid #eef2f7 !important;
    box-shadow: 0 6px 18px rgba(15, 23, 42, 0.06) !important;
}
.event_inc.selected .event_inc_icon::after{
    display: none;
}
/* заголовок */
.eventsComplex .eventsComplexAction {
    display: none !important;
    align-items: center !important;
    gap: 7px !important;

    margin: 0 !important;
    padding: 9px 12px !important;

    background: #f8fafc !important;
    border-bottom: 1px solid #eef2f7 !important;

    color: rgb(17 24 39) !important;
    font-size: 14px !important;
    line-height: 1.15 !important;
    font-weight: 900 !important;
}

.eventsComplex .eventsComplexAction::before {
    content: "🎟";
    display: inline-flex;
    align-items: center;
    justify-content: center;

    width: 24px;
    height: 24px;
    flex: 0 0 24px;

    border-radius: 8px;
    background: #fff1f0;

    font-size: 13px;
}

/* убираем лишний старый padding */
.eventsComplex .incEvents > div:not(.eventsComplexAction) {
    padding: 0 !important;
}

/* выбранный элемент */
.eventsComplex .event_inc {
    margin: 8px !important;
    padding: 9px 10px !important;
    box-sizing: border-box !important;

    border-radius: 12px !important;
    background: #fffafa !important;
    border: 1px solid #ffd2d0 !important;
    box-shadow: none !important;

    color: #111827 !important;
}

.eventsComplex .event_inc > div:first-child {
    display: flex !important;
    align-items: flex-start !important;
    gap: 7px !important;
}

/* маленькая галочка */
.eventsComplex .event_inc_icon {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;

    width: 20px !important;
    height: 20px !important;
    min-width: 20px !important;

    margin: 0 !important;
    border-radius: 999px !important;

    background: #e5e7eb !important;
    color: #ffffff !important;

    font-size: 11px !important;
    font-weight: 900 !important;
}

.eventsComplex .event_inc_icon.checked {
    background: #DA0400 !important;
}

.eventsComplex .event_inc_icon.checked::before {
    content: "✓";
}

/* название */
.eventsComplex .event_inc_icon + div {
    flex: 1 1 auto !important;
    min-width: 0 !important;

    color: #111827 !important;
    font-size: 12.5px !important;
    line-height: 1.25 !important;
    font-weight: 800 !important;
}

/* дата/время компактно */
.eventsComplex .complex_date {
    display: flex !important;
    flex-wrap: wrap !important;
    align-items: center !important;
    gap: 4px !important;

    margin-top: 6px !important;
}

.eventsComplex .checked_date,
.eventsComplex .checked_time {
    display: inline-flex !important;
    align-items: center !important;
    gap: 4px !important;

    padding: 4px 7px !important;
    border-radius: 999px !important;

    font-size: 10.5px !important;
    line-height: 1 !important;
    font-weight: 900 !important;
}

.eventsComplex .checked_date {
    background: #ffffff !important;
    color: #DA0400 !important;
    border: 1px solid #ffd2d0 !important;
}

.eventsComplex .checked_date::before {
    content: "📅";
    font-size: 10px;
}

.eventsComplex .checked_time {
    background: rgb(17 24 39) !important;
    color: #ffffff !important;
}

.eventsComplex .checked_time > span:first-child::before {
    content: "🕒";
    margin-right: 4px;
    font-size: 10px;
}

.eventsComplex .checked_time .session-time-item-free {
    color: #cbd5e1 !important;
    font-size: 10px !important;
    font-weight: 700 !important;
}

/* date_cont */
.eventsComplex .date_cont {
    margin-top: 6px !important;
}

/* обязательный пункт */
.eventsComplex [id^="divcel_"] {
    margin: 8px !important;
    padding: 0 !important;
    position: relative !important;
}

.eventsComplex .checkbox-transform {
    display: flex !important;
    align-items: center !important;
    gap: 7px !important;

    width: 100% !important;
    min-height: 0 !important;

    margin: 0 !important;
    padding: 9px 10px !important;
    box-sizing: border-box !important;

    border-radius: 12px !important;
    background: #f9fafb !important;
    border: 1px solid #eef2f7 !important;

    color: #374151 !important;
    font-size: 12.5px !important;
    line-height: 1.25 !important;
    font-weight: 800 !important;

    cursor: default !important;
}

/* прячем старый чекбокс */
.eventsComplex .checkbox-transform input[type="checkbox"] {
    position: absolute !important;
    opacity: 0 !important;
    pointer-events: none !important;
}

/* компактная галочка */
.eventsComplex .checkbox-transform::before {
    content: "✓";

    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;

    width: 20px !important;
    height: 20px !important;
    min-width: 20px !important;

    border-radius: 999px !important;

    background: rgb(17 24 39) !important;
    color: #ffffff !important;

    font-size: 11px !important;
    line-height: 1 !important;
    font-weight: 900 !important;
}

.eventsComplex .checkbox-transform > span {
    flex: 1 1 auto !important;
    min-width: 0 !important;
}

/* свободно */
.eventsComplex .tgIncFree {
    display: none !important;
    align-items: center !important;
    gap: 4px !important;

    margin-left: auto !important;
    padding: 4px 7px !important;

    border-radius: 999px !important;
    background: #ffffff !important;
    border: 1px solid #e5e7eb !important;

    white-space: nowrap !important;
}

.eventsComplex .tgIncFreeName {
    color: #9ca3af !important;
    font-size: 9px !important;
    line-height: 1 !important;
    font-weight: 800 !important;
    text-transform: uppercase !important;
}

.eventsComplex .tgIncFreeVal {
    color: #111827 !important;
    font-size: 10.5px !important;
    line-height: 1 !important;
    font-weight: 900 !important;
}

.eventsComplex .eventKKTDescription {
    margin: 0 8px 8px !important;
    padding: 0 !important;

    color: #6b7280 !important;
    font-size: 11px !important;
    line-height: 1.3 !important;
}

/* мобильный компакт */
@media (max-width: 660px) {
    .eventsComplex {
        margin: 8px auto 10px !important;
    }

    .eventsComplex .incEvents {
        border-radius: 12px !important;
    }

    .eventsComplex .eventsComplexAction {
        padding: 8px 10px !important;
        font-size: 13px !important;
    }

    .eventsComplex .eventsComplexAction::before {
        width: 22px;
        height: 22px;
        flex-basis: 22px;
        border-radius: 7px;
        font-size: 12px;
    }

    .eventsComplex .event_inc,
    .eventsComplex [id^="divcel_"] {
        margin: 6px !important;
    }

    .eventsComplex .event_inc,
    .eventsComplex .checkbox-transform {
        padding: 8px !important;
        border-radius: 10px !important;
    }

    .eventsComplex .event_inc_icon,
    .eventsComplex .checkbox-transform::before {
        width: 18px !important;
        height: 18px !important;
        min-width: 18px !important;
        font-size: 10px !important;
    }

    .eventsComplex .event_inc_icon + div,
    .eventsComplex .checkbox-transform {
        font-size: 12px !important;
    }

    .eventsComplex .complex_date {
        margin-top: 5px !important;
    }

    .eventsComplex .checked_date,
    .eventsComplex .checked_time,
    .eventsComplex .tgIncFree {
        padding: 3px 6px !important;
        font-size: 10px !important;
    }

    .eventsComplex .tgIncFree {
        margin-left: 0 !important;
    }
}.eventsComplex .eventsComplexAction {
    padding: 7px 9px !important;
}

.eventsComplex .event_inc,
.eventsComplex .checkbox-transform {
    padding: 6px 8px !important;
}

.eventsComplex .event_inc,
.eventsComplex [id^="divcel_"] {
    margin: 5px !important;
}

.eventsComplex .complex_date {
    margin-top: 4px !important;
}