/* ===== Афиша событий /news/ (шаблон компонента news/afisha) =====
   Макет: Figma «Охта Парк», «Афиша событий (главная)» 13069:13972. Крошки — общие (about_style.css). */

.afisha{
    padding-top: 150px;
    padding-bottom: 100px;
    background-color: #EFF0F5;
    font-family: "Montserrat", sans-serif;
    color: #000;
}

.afisha_title{
    margin-bottom: 26px;
    font-size: 48px;
    font-weight: 400;
    line-height: 120%;
}

/* ---------- лента дат ---------- */

.afisha_dates{
    position: relative;
    margin-bottom: 15px;
    padding: 17px 35px 20px;
    background-color: #fff;
    border-radius: 20px;
}

/* плавную прокрутку делает afisha_script.js (scroll-behavior: smooth браузер отключает вместе с анимациями Windows,
   а со своей анимацией scrollLeft ещё и конфликтует) */
.afisha_dates_scroller{
    display: flex;
    overflow-x: auto;
    scrollbar-width: none;
    overflow-anchor: none;      /* сдвиг при достройке месяцев слева компенсирует скрипт */
    user-select: none;
    -webkit-user-select: none;
}

.afisha_dates_scroller::-webkit-scrollbar{
    display: none;
}

.afisha_dates_month{
    flex-shrink: 0;
    padding-right: 34px;
}

.afisha_dates_month + .afisha_dates_month{
    padding-left: 34px;
    border-left: 2px dotted #DCDFEE;
}

/* название месяца липнет к левому краю ленты — при прокрутке к «сегодня» не обрезается */
.afisha_dates_month_name{
    position: sticky;
    left: 0;
    width: max-content;
    margin-bottom: 12px;
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
}

.afisha_dates_days{
    display: flex;
    gap: 22px;
}

.afisha_day{
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    width: 45px;
    padding: 6px 0 16px;
    background: none;
    border-radius: 14px;
    color: #000;
    font-family: inherit;
    cursor: default;
    transition: background-color .3s cubic-bezier(.2, .7, .3, 1), box-shadow .3s ease;
}

/* курсор-рука — только у дней, где есть события (перетаскивание ленты курсор не меняет) */
.afisha_day--has:not(:disabled){
    cursor: pointer;
}

.afisha_day_week,
.afisha_day_num{
    transition: color .3s ease;
}

.afisha_day::after{
    content: "";
    position: absolute;
    left: 50%;
    bottom: 7px;
    width: 5px;
    height: 5px;
    margin-left: -2.5px;
    border-radius: 10px;
    background-color: #DCDFEE;
    transition: background-color .3s ease, transform .3s cubic-bezier(.2, .7, .3, 1);
}

.afisha_day--has::after{
    background-color: #87D454;
}

.afisha_day:disabled{
    opacity: .45;
}

/* прошедшие дни — приглушены, но с событиями кликабельны */
.afisha_day--past .afisha_day_num{
    color: #868BA3;
}

.afisha_day--past.afisha_day--has::after{
    background-color: #B9DDA0;
}

/* сегодня: та же ширина, что у соседей — мелкая зелёная подпись «сегодня» вместо дня недели (на высоте его строки),
   число зелёным, лёгкая зелёная подложка; даже без событий не бледнеет */
.afisha_day--today{
    background-color: #F3FEEC;
}

.afisha_day--today:disabled{
    opacity: 1;
}

.afisha_day--today .afisha_day_week{
    color: #006738;
    font-size: 11px;
    font-weight: 600;
    line-height: 18px;          /* как у строки дня недели 14px — число стоит вровень с соседями */
    letter-spacing: -.01em;
    white-space: nowrap;
}

.afisha_day--today .afisha_day_num{
    color: #006738;
    font-weight: 600;
}

/* перетаскивание ленты мышью: дни не реагируют на наведение, пока тянем */
.afisha_dates_scroller--drag .afisha_day{
    pointer-events: none;
}

.afisha_day_week{
    color: #868BA3;
    font-size: 14px;
}

.afisha_day--weekend .afisha_day_week{
    color: #E2111D;
}

.afisha_day_num{
    font-size: 24px;
    line-height: 1.2;
}

.afisha_day:not(:disabled):hover{
    background-color: #F3FEEC;
}

.afisha_day--active,
.afisha_day--active:not(:disabled):hover{
    background-color: #006738;
}

.afisha_day--active .afisha_day_week,
.afisha_day--active .afisha_day_num{
    color: #fff;
}

.afisha_day--active::after{
    background-color: #fff;
    transform: scale(1.2);
}

.afisha_dates_arrow{
    position: absolute;
    top: 44px;
    z-index: 2;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='none' viewBox='0 0 16 16'%3E%3Cpath stroke='%23006738' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.6' d='m6 3 5 5-5 5'/%3E%3C/svg%3E") no-repeat center;
    box-shadow: 0 5px 15px rgba(107, 111, 130, .13);
    cursor: pointer;
    transition: opacity .25s ease;
}

.afisha_dates_arrow--prev{
    left: -20px;
    transform: rotate(180deg);
}

.afisha_dates_arrow--next{
    right: -20px;
}

/* «Сегодня» — справа в строке названий месяцев; видна, только когда сегодняшний день уехал из ленты */
.afisha_dates_today{
    position: absolute;
    top: 11px;
    right: 35px;
    z-index: 3;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    height: 28px;
    padding: 0 12px;
    background-color: #F3FEEC;
    border-radius: 20px;
    color: #006738;
    font-family: inherit;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-4px);
    transition: opacity .25s ease, transform .25s cubic-bezier(.2, .7, .3, 1), visibility 0s linear .25s, background-color .2s ease, color .2s ease;
}

.afisha_dates_today--show{
    opacity: 1;
    visibility: visible;
    transform: none;
    transition: opacity .25s ease, transform .25s cubic-bezier(.2, .7, .3, 1), visibility 0s, background-color .2s ease, color .2s ease;
}

.afisha_dates_today:hover{
    background-color: #006738;
    color: #fff;
}

/* стрелка — в сторону сегодняшнего дня */
.afisha_dates_today[data-dir="prev"]::before{
    content: "←";
}

.afisha_dates_today[data-dir="next"]::after{
    content: "→";
}

.afisha_dates_arrow:disabled{
    opacity: 0;
    pointer-events: none;
}

/* ---------- фильтры ---------- */

.afisha_filters{
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 55px;
}

.afisha_filter{
    display: inline-flex;
    align-items: center;
    gap: 6px;
    height: 40px;
    padding: 5px 16px;
    background-color: #fff;
    border-radius: 30px;
    color: #000;
    font-family: inherit;
    font-size: 16px;
    line-height: 1.4;
    white-space: nowrap;
    cursor: pointer;
    transition: background-color .2s ease, color .2s ease;
}

.afisha_filter[hidden]{
    display: none;
}

.afisha_filter:hover{
    color: #006738;
}

.afisha_filter--active,
.afisha_filter--active:hover{
    background-color: #006738;
    color: #fff;
}

.afisha_filter--date{
    background-color: #006738;
    color: #fff;
}

.afisha_filter--date::after{
    content: "×";
    font-size: 20px;
    line-height: 1;
}

/* выпадающая панель «Направление» */
.afisha_dd{
    position: relative;
}

.afisha_dd_toggle::after{
    content: "";
    width: 7px;
    height: 7px;
    margin: -4px 2px 0 4px;
    border-right: 1.5px solid currentColor;
    border-bottom: 1.5px solid currentColor;
    transform: rotate(45deg);
    transition: transform .25s ease, margin .25s ease;
}

.afisha_dd--open .afisha_dd_toggle::after{
    margin-top: 3px;
    transform: rotate(-135deg);
}

.afisha_dd_panel{
    position: absolute;
    top: calc(100% + 10px);
    left: 0;
    z-index: 20;
    width: 320px;
    padding: 18px 18px 14px;
    background-color: #fff;
    border-radius: 20px;
    box-shadow: 0 18px 40px rgba(29, 52, 30, .14), 0 2px 6px rgba(107, 111, 130, .08);
    transform-origin: 24px 0;
    animation: afishaDdIn .2s cubic-bezier(.2, .7, .3, 1);
}

@keyframes afishaDdIn{
    from{ opacity: 0; transform: translateY(-6px) scale(.98); }
    to{ opacity: 1; transform: none; }
}

.afisha_dd_title{
    margin-bottom: 10px;
    color: #868BA3;
    font-size: 13px;
}

.afisha_dd_options{
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.afisha_dd_option{
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 10px;
    border-radius: 12px;
    font-size: 15px;
    line-height: 1.3;
    cursor: pointer;
    transition: background-color .15s ease;
}

.afisha_dd_option:hover{
    background-color: #F3FEEC;
}

.afisha_dd_option input{
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

/* своя галочка: кружок, при выборе — зелёный с отметкой */
.afisha_dd_check{
    position: relative;
    flex-shrink: 0;
    width: 20px;
    height: 20px;
    border: 1.5px solid #C9CDDB;
    border-radius: 50%;
    transition: background-color .15s ease, border-color .15s ease;
}

.afisha_dd_check::after{
    content: "";
    position: absolute;
    left: 6px;
    top: 3px;
    width: 5px;
    height: 9px;
    border-right: 2px solid #fff;
    border-bottom: 2px solid #fff;
    transform: rotate(45deg) scale(.6);
    opacity: 0;
    transition: opacity .15s ease, transform .15s ease;
}

.afisha_dd_option input:checked + .afisha_dd_check{
    background-color: #006738;
    border-color: #006738;
}

.afisha_dd_option input:checked + .afisha_dd_check::after{
    opacity: 1;
    transform: rotate(45deg) scale(1);
}

.afisha_dd_option input:focus-visible + .afisha_dd_check{
    outline: 2px solid #006738;
    outline-offset: 2px;
}

.afisha_dd_option input:checked ~ .afisha_dd_name{
    color: #006738;
}

.afisha_dd_footer{
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid #EFF0F5;
}

.afisha_dd_reset,
.afisha_dd_done{
    font-family: inherit;
    font-size: 14px;
    cursor: pointer;
}

.afisha_dd_reset{
    padding: 6px 4px;
    background: none;
    color: #868BA3;
}

.afisha_dd_reset:hover{
    color: #006738;
}

.afisha_dd_done{
    height: 34px;
    padding: 0 18px;
    background-color: #006738;
    border-radius: 20px;
    color: #fff;
}

/* ---------- сетка карточек ---------- */

.afisha_subtitle{
    margin-bottom: 34px;
    font-size: 28px;
    font-weight: 400;
    line-height: 120%;
}

.afisha_grid{
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 55px 26px;
    transition: opacity .25s ease;
}

/* карточки выбранной старой даты ещё грузятся */
.afisha_grid--loading{
    opacity: .4;
}

.afisha_card{
    display: flex;
    flex-direction: column;
    gap: 14px;
    color: #000;
}

.afisha_card[hidden]{
    display: none;
}

.afisha_card_img{
    position: relative;
    display: block;
    overflow: hidden;
    isolation: isolate;          /* скругление не «отклеивается» при масштабе картинки (Safari) */
    aspect-ratio: 310 / 240;
    border-radius: 20px;
    background-color: #DCDFEE;
}

.afisha_card_img img{
    position: absolute;
    inset: 0;
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .5s cubic-bezier(.2, .7, .3, 1);
}

/* приближение картинки внутри рамки при наведении */
.afisha_card:hover .afisha_card_img img,
.afisha_card:focus-visible .afisha_card_img img{
    transform: scale(1.06);
}

.afisha_card:focus-visible{
    outline: 2px solid #006738;
    outline-offset: 4px;
    border-radius: 20px;
}

/* одно ближайшее — горизонтальная карточка: фото слева (у многих событий это постер с текстом —
   во всю ширину его обрезало бы), текст справа на белом; два — оба большие */
.afisha_grid--solo .afisha_card--big{
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 0;
    overflow: hidden;
    background-color: #fff;
    border-radius: 20px;
}

.afisha_grid--solo .afisha_card--big .afisha_card_img{
    height: 420px;
    border-radius: 0;
}

.afisha_grid--solo .afisha_card--big .afisha_card_img::after{
    display: none;
}

.afisha_grid--solo .afisha_card--big .afisha_card_body{
    position: static;
    justify-content: center;
    gap: 16px;
    padding: 40px 48px;
}

.afisha_grid--solo .afisha_card--big .afisha_card_title,
.afisha_grid--solo .afisha_card--big:hover .afisha_card_title{
    color: #000;
    font-size: 30px;
    font-weight: 500;
    line-height: 1.15;
    text-wrap: balance;
}

.afisha_grid--solo .afisha_card--big:hover .afisha_card_title{
    color: #006738;
}

.afisha_grid--solo .afisha_card--big .afisha_card_meta{
    color: #868BA3;
    font-size: 16px;
}

/* ближайших нет */
.afisha_soon_empty{
    margin-bottom: 20px;
    padding: 36px 40px;
    background-color: #fff;
    border-radius: 20px;
}

.afisha_soon_empty_title{
    margin-bottom: 10px;
    font-size: 26px;
    line-height: 1.2;
}

.afisha_soon_empty_text{
    max-width: 640px;
    margin-bottom: 24px;
    color: #868BA3;
    font-size: 16px;
    line-height: 1.5;
}

.afisha_soon_empty_links{
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.afisha_soon_empty_btn{
    width: auto;
    min-width: 214px;
    height: 48px;
    margin-left: 0;
    padding: 0 22px;
}

.afisha_soon_empty .afisha_btn_outline{
    height: 48px;
}

.afisha_card_chips{
    position: absolute;
    z-index: 1;
    top: 8px;
    left: 8px;
    right: 8px;
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
}

/* стикер: тип события — просто текст, направление — с точкой своего цвета (afishaDirDefs, как плашка в слайдере) */
.afisha_chip{
    display: inline-flex;
    align-items: center;
    gap: 6px;
    height: 28px;
    padding: 0 12px;
    background-color: #fff;
    border-radius: 30px;
    color: #000;
    font-size: 13px;
    font-weight: 600;
    line-height: 1;
    white-space: nowrap;
}

/* цена — как в макете: «от 500 ₽» жирным, последним стикером */
.afisha_chip--price{
    font-weight: 700;
    font-variant-numeric: tabular-nums;
}

.afisha_chip--dir::before{
    content: "";
    flex-shrink: 0;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background-color: var(--dir, #868BA3);
}

.afisha_card_body{
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.afisha_card_title{
    font-size: 18px;
    line-height: 1.3;
    transition: color .2s ease;
}

.afisha_card:hover .afisha_card_title{
    color: #006738;
}

.afisha_card_meta{
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 5px;
    color: #868BA3;
    font-size: 14px;
    line-height: 1.4;
}

.afisha_card_meta_dot{
    width: 3px;
    height: 3px;
    border-radius: 50%;
    background-color: currentColor;
}

/* большая карточка «ближайшее»: две колонки, текст поверх фото */
.afisha_card--big{
    position: relative;
    grid-column: span 2;
    grid-row: span 1;
}

.afisha_card--big .afisha_card_img{
    height: 400px;
    aspect-ratio: auto;
}

.afisha_card--big .afisha_card_img::after{
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 40%;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, .65) 100%);
}

.afisha_card--big .afisha_card_body{
    position: absolute;
    left: 17px;
    right: 17px;
    bottom: 22px;
    z-index: 1;
}

.afisha_card--big .afisha_card_title{
    color: #fff;
    font-size: 24px;
    font-weight: 700;
}

.afisha_card--big:hover .afisha_card_title{
    color: #fff;
}

.afisha_card--big .afisha_card_meta{
    color: #fff;
}

/* при фильтрах большая карточка становится обычной — сетка ровнее */
.afisha_grid--filtered .afisha_card--big{
    grid-column: span 1;
}

.afisha_grid--filtered .afisha_card--big .afisha_card_img{
    height: auto;
    aspect-ratio: 310 / 240;
}

.afisha_grid--filtered .afisha_card--big .afisha_card_img::after{
    display: none;
}

.afisha_grid--filtered .afisha_card--big .afisha_card_body{
    position: static;
}

.afisha_grid--filtered .afisha_card--big .afisha_card_title{
    color: #000;
    font-size: 18px;
    font-weight: 400;
}

.afisha_grid--filtered .afisha_card--big .afisha_card_meta{
    color: #868BA3;
}

.afisha_empty{
    padding: 40px 0;
    color: #868BA3;
    font-size: 16px;
}

/* ---------- рекомендуем ---------- */

.afisha_recommend{
    margin-top: 80px;
}

.afisha_recommend_list{
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: calc((100% - 3 * 26px) / 4);
    gap: 26px;
    overflow-x: auto;
    padding-bottom: 10px;
    scroll-snap-type: x mandatory;
    scrollbar-width: thin;
}

.afisha_recommend_list .afisha_card{
    scroll-snap-align: start;
}

/* ---------- прошедшие события в списке ---------- */

.afisha_archive{
    margin-top: 90px;
}

.afisha_archive[hidden]{
    display: none;
}

.afisha_archive .afisha_card_img img{
    filter: saturate(.85);
}

.afisha_more{
    display: block;
    margin: 50px auto 0;
    height: 48px;
    padding: 0 28px;
    background-color: #fff;
    border-radius: 30px;
    color: #006738;
    font-family: inherit;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: background-color .2s ease, color .2s ease;
}

.afisha_more:hover{
    background-color: #006738;
    color: #fff;
}

.afisha_more:disabled{
    cursor: progress;
    opacity: .7;
}

.afisha_more[hidden]{
    display: none;
}

/* ---------- детальная события ----------
   Палитра: лесной #006738 (действия), весенний #87D454, туман #EFF0F5 (фон), белый, сланец #868BA3, чёрный.
   Акцент — «корешок билета» с датой; остальное спокойное. */

.afisha_btn_outline{
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 45px;
    padding: 2px 22px;
    border: 1.5px solid #006738;
    border-radius: 10px;
    color: #006738;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: .04em;
    text-transform: uppercase;
    transition: background-color .2s ease, color .2s ease;
}

.afisha_btn_outline:hover{
    background-color: #006738;
    color: #fff;
}

.afisha_detail a:focus-visible,
.afisha_detail button:focus-visible{
    outline: 2px solid #006738;
    outline-offset: 3px;
}

/* первый экран */
/* без overflow: hidden — иначе обрезалось бы меню «Добавить в календарь»; углы скругляет само фото */
.ev_hero{
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 46%);
    min-height: 460px;
    background-color: #fff;
    border-radius: 20px;
}

/* «← Афиша» поверх фото — только на телефоне, где нет крошек */
.ev_back{
    display: none;
}

.ev_hero--nomedia{
    grid-template-columns: minmax(0, 1fr);
    min-height: 0;
}

.ev_hero_info{
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 44px 48px 40px;
}

/* стикеры над заголовком — те же, что на фото карточек, только на светло-сером: фон блока белый */
.ev_kind{
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 18px;
}

.ev_kind .afisha_chip{
    background-color: #EFF0F5;
}

/* заголовок — как на страницах сервисов (Montserrat 400), с балансом строк */
.ev_title{
    margin-bottom: 28px;
    font-size: clamp(30px, 1.1vw + 18px, 40px);
    font-weight: 400;
    line-height: 1.15;
    letter-spacing: -.01em;
    overflow-wrap: break-word;
    text-wrap: balance;
}

/* билет целиком: слева корешок с датой, справа на светлом фоне факты. На стыке — линия отрыва (белый пунктир
   по краю корешка) и два полукруглых выреза цвета фона карточки. Ширина корешка — --stub, по ней ставятся вырезы */
.ev_meta{
    --stub: 108px;
    position: relative;
    display: flex;
    align-items: stretch;
    background-color: #F3F4F8;
    border-radius: 16px;
}

.ev_meta:not(.ev_meta--nostub)::before,
.ev_meta:not(.ev_meta--nostub)::after{
    content: "";
    position: absolute;
    z-index: 1;
    left: calc(var(--stub) - 9px);
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background-color: #fff;
}

.ev_meta::before{ top: -9px; }
.ev_meta::after{ bottom: -9px; }

/* у новости корешка нет — только факты, без подложки */
.ev_meta--nostub{
    background: none;
}

.ev_meta--nostub .ev_facts{
    padding: 0;
}

.ev_stub{
    position: relative;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: var(--stub);
    min-height: 118px;
    padding: 16px 10px;
    box-sizing: border-box;
    background:
        linear-gradient(rgba(255, 255, 255, .55) 50%, transparent 0) right top / 2px 9px repeat-y,
        #006738;
    border-radius: 16px 0 0 16px;
    color: #fff;
    text-align: center;
}

.ev_stub_num{
    font-size: 40px;
    font-weight: 600;
    line-height: 1;
    letter-spacing: -.02em;
    white-space: nowrap;
}

/* период «8–28» шире одного числа — мельче, чтобы корешок не раздувало */
.ev_stub_num--range{
    font-size: 30px;
}

.ev_stub_month{
    margin-top: 6px;
    font-size: 15px;
    font-weight: 500;
    line-height: 1.2;
}

.ev_stub_week{
    align-self: stretch;
    margin-top: 9px;
    padding-top: 8px;
    border-top: 1.5px dashed rgba(255, 255, 255, .35);
    font-size: 13px;
    line-height: 1;
    opacity: .85;
}

/* прошедшее — «использованный» билет: корешок графитовый, значения фактов приглушены */
.ev_stub--past{
    background:
        linear-gradient(rgba(255, 255, 255, .45) 50%, transparent 0) right top / 2px 9px repeat-y,
        #5B6075;
}

.ev_meta--past .ev_fact_value{
    color: #5B6075;
}

/* факты строками «метка — значение»: метки одной колонкой (по самой длинной), значения — одним кеглем.
   Строка факта — display: contents, чтобы метка и значение встали в общую сетку */
.ev_facts{
    flex: 1;
    min-width: 0;
    display: grid;
    grid-template-columns: max-content minmax(0, 1fr);
    align-content: center;
    align-items: baseline;
    gap: 10px 20px;
    margin: 0;
    padding: 18px 24px 18px 28px;
}

.ev_fact{
    display: contents;
}

.ev_fact_label{
    display: flex;
    align-items: center;
    gap: 6px;
    color: #868BA3;
    font-size: 12px;
    font-weight: 500;
    line-height: 1.2;
    letter-spacing: .06em;
    text-transform: uppercase;
    white-space: nowrap;
}

.ev_fact_value{
    margin: 0;
    color: #000;
    font-size: 17px;
    font-weight: 500;
    line-height: 1.35;
    overflow-wrap: break-word;
}

.ev_fact_value--time{
    font-variant-numeric: tabular-nums;
}

/* сервис — зелёным, тонкая линия вместо подчёркивания */
.ev_fact_value a{
    color: #006738;
    text-decoration: none;
    background-image: linear-gradient(currentColor, currentColor);
    background-position: 0 100%;
    background-repeat: no-repeat;
    background-size: 100% 1px;
    transition: background-size .2s ease;
}

.ev_fact_value a:hover{
    background-size: 0 1px;
}

.ev_fact_value a[target="_blank"]::after{
    content: "↗";
    display: inline-block;
    margin-left: 3px;
    font-size: .8em;
}

/* кнопки и действия одним рядом под фактами */
.ev_cta{
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 14px 28px;
    margin-top: 32px;
}

/* nav-main-contact-btn из шапки несёт margin-left: 20px и фиксированную ширину */
.ev_btn{
    width: auto;
    min-width: 214px;
    height: 48px;
    margin-left: 0;
    padding-left: 22px;
    padding-right: 22px;
    box-sizing: border-box;
}

.ev_past{
    color: #868BA3;
    font-size: 16px;
}

.ev_past a{
    color: #006738;
    text-decoration: underline;
    text-underline-offset: 3px;
}

/* «До начала / 4 дня» — первая строка фактов, значение чуть весомее остальных */
.ev_when_value{
    font-weight: 600;
}

/* идёт сейчас / сегодня — зелёная подпись с пульсирующей точкой */
.ev_when--live .ev_when_label{
    color: #006738;
}

.ev_when--live .ev_when_label::before{
    content: "";
    flex-shrink: 0;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background-color: #87D454;
    animation: evLive 1.6s ease-out infinite;
}

@keyframes evLive{
    from{ box-shadow: 0 0 0 0 rgba(135, 212, 84, .6); }
    to{ box-shadow: 0 0 0 8px rgba(135, 212, 84, 0); }
}

/* прошедшее — тише: значение серым, как приглушённый корешок */
.ev_when--past .ev_when_value{
    color: #5B6075;
}

.ev_when[hidden]{
    display: none;
}

.ev_actions{
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px 22px;
}

/* «В календарь» — меню: Google Календарь ссылкой, остальное — файлом .ics */
.ev_cal{
    position: relative;
}

.ev_cal_menu{
    position: absolute;
    top: calc(100% + 8px);
    left: -12px;
    z-index: 20;
    display: flex;
    flex-direction: column;
    width: 330px;
    padding: 8px;
    background-color: #fff;
    border-radius: 16px;
    box-shadow: 0 18px 40px rgba(29, 52, 30, .14), 0 2px 6px rgba(107, 111, 130, .08);
    transform-origin: 24px 0;
    animation: afishaDdIn .2s cubic-bezier(.2, .7, .3, 1);
}

.ev_cal_menu[hidden]{
    display: none;
}

.ev_cal_head{
    margin: 4px 12px 6px;
    padding-bottom: 10px;
    border-bottom: 1px solid #EFF0F5;
    color: #868BA3;
    font-size: 13px;
    line-height: 1.35;
}

.ev_cal_menu--up{
    top: auto;
    bottom: calc(100% + 8px);
    transform-origin: 24px 100%;
}

.ev_cal_item{
    display: flex;
    flex-direction: column;
    gap: 2px;
    padding: 11px 12px;
    background: none;
    border-radius: 10px;
    color: #000;
    font-family: inherit;
    font-size: 15px;
    line-height: 1.3;
    text-align: left;
    cursor: pointer;
    transition: background-color .15s ease, color .15s ease;
}

.ev_cal_item small{
    color: #868BA3;
    font-size: 13px;
}

.ev_cal_item:hover{
    background-color: #F3FEEC;
    color: #006738;
}

.ev_action{
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 6px 0;
    background: none;
    color: #006738;
    font-family: inherit;
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
}

.ev_action:hover span{
    text-decoration: underline;
    text-underline-offset: 3px;
}

/* фото: режим по пропорциям файла (ставит шаблон) */
.ev_hero_media{
    position: relative;
    display: block;
    min-height: 460px;
    overflow: hidden;
    border-radius: 0 20px 20px 0;
    isolation: isolate;
    background-color: #DCDFEE;
    cursor: pointer;
}

.ev_hero_media_img{
    position: absolute;
    z-index: 1;
    inset: 0;
    width: 100%;
    height: 100%;
    transition: transform .6s cubic-bezier(.2, .7, .3, 1);
}

/* горизонтальное и квадратное — заполняет рамку */
.ev_hero_media--cover .ev_hero_media_img{
    object-fit: cover;
}

.ev_hero_media--cover:hover .ev_hero_media_img{
    transform: scale(1.04);
}

/* вертикальное (портрет, афиша) — целиком, а вокруг отсвет её же цветов */
.ev_hero_media--tall{
    background-color: #E9EDE4;
}

/* отсвет: та же картинка, увеличенная и сильно размытая; осветлена, чтобы не спорить с основной */
.ev_hero_media_glow{
    position: absolute;
    z-index: 0;
    inset: -12%;
    width: 124%;
    height: 124%;
    object-fit: cover;
    filter: blur(44px) saturate(1.35);
    opacity: .7;
    transform: scale(1);
    transition: transform 1.2s cubic-bezier(.2, .7, .3, 1);
}

.ev_hero_media--tall::after{
    content: "";
    position: absolute;
    z-index: 0;
    inset: 0;
    background: radial-gradient(70% 60% at 50% 50%, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, .28) 100%);
}

.ev_hero_media--tall .ev_hero_media_img{
    inset: 32px;
    width: calc(100% - 64px);
    height: calc(100% - 64px);
    object-fit: contain;
    filter: drop-shadow(0 18px 30px rgba(0, 0, 0, .22));
}

.ev_hero_media--tall:hover .ev_hero_media_img{
    transform: scale(1.025);
}

.ev_hero_media--tall:hover .ev_hero_media_glow{
    transform: scale(1.08);
}

/* блок «Где это / Как добраться / Остались вопросы»: три карточки, без иконок — заголовок, главное, ссылка */
.ev_info{
    display: grid;
    grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr) minmax(0, 1fr);
    gap: 16px;
}

.ev_info_cell{
    display: flex;
    flex-direction: column;
    padding: 26px 28px 28px;
    background-color: #fff;
    border-radius: 20px;
}

/* содержимое плитки — столбиком на всю высоту: ссылка и подпись внизу стоят на одной линии во всех плитках */
.ev_info_cell > div{
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    height: 100%;
}

/* «Где это» — главное в блоке, выделено фоном */
.ev_info_cell:first-child{
    background-color: #F3FEEC;
}

.ev_info_title{
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 8px;
    color: #868BA3;
    font-size: 14px;
    font-weight: 400;
}

/* маленькая иконка в подписи — только акцент, не отдельный элемент */
.ev_info_title svg{
    flex-shrink: 0;
    width: 16px;
    height: 16px;
    color: #006738;
}

.ev_info_main{
    color: #000;
    font-size: 17px;
    font-weight: 500;
    line-height: 1.4;
}

.ev_info_main a{
    color: #006738;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.ev_info_link{
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: auto;
    padding-top: 12px;
    color: #006738;
    font-size: 15px;
}

.ev_info_link::after{
    content: "";
    width: 6px;
    height: 6px;
    border-top: 1.5px solid currentColor;
    border-right: 1.5px solid currentColor;
    transform: rotate(45deg);
    transition: transform .2s ease;
}

.ev_info_link:hover::after{
    transform: translateX(3px) rotate(45deg);
}

.ev_info_main a.ev_info_phone{
    font-size: 21px;
    font-weight: 600;
    text-decoration: none;
    white-space: nowrap;
}

.ev_info_note{
    display: block;
    margin-top: auto;
    padding-top: 12px;
    color: #868BA3;
    font-size: 14px;
}

/* «Ещё в разделе» — слайдер карточек афиши */
.ev_related_head{
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 24px;
}

.ev_related_head .ev_block_title{
    margin-bottom: 0;
}

.ev_related_nav{
    display: flex;
    flex-shrink: 0;
    gap: 10px;
}

.ev_related_btn{
    position: relative;
    width: 44px;
    height: 44px;
    border: 1.5px solid #DCDFEE;
    border-radius: 50%;
    background-color: #fff;
    color: #006738;
    cursor: pointer;
    transition: background-color .2s ease, border-color .2s ease, color .2s ease, opacity .2s ease;
}

.ev_related_btn::before{
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 8px;
    height: 8px;
    border-top: 1.5px solid currentColor;
    border-right: 1.5px solid currentColor;
}

.ev_related_btn--next::before{
    transform: translate(-70%, -50%) rotate(45deg);
}

.ev_related_btn--prev::before{
    transform: translate(-30%, -50%) rotate(-135deg);
}

.ev_related_btn:hover{
    background-color: #006738;
    border-color: #006738;
    color: #fff;
}

.ev_related_btn--disabled,
.ev_related_btn--disabled:hover{
    background-color: #fff;
    border-color: #DCDFEE;
    color: #006738;
    opacity: .35;
    cursor: default;
}

/* hidden-контейнер можно прокрутить программно — Яндекс Браузер рисовал под слайдером полосу прокрутки;
   clip прокрутку запрещает совсем (hidden — для старых браузеров) */
.ev_related_swiper{
    overflow: hidden;
    overflow: clip;
}

.ev_related{
    overflow-x: clip;
}

.ev_related_swiper .swiper-slide{
    height: auto;
}

.ev_related_swiper .afisha_card{
    height: 100%;
}

/* длинные названия в слайдере — не больше двух строк, карточки одной высоты */
.ev_related_swiper .afisha_card_title{
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* текст и «Скоро в афише» */
.ev_body{
    display: grid;
    grid-template-columns: minmax(0, 720px) 340px;
    justify-content: space-between;
    gap: 60px;
    margin-top: 60px;
}

.ev_body--single{
    grid-template-columns: minmax(0, 720px);
}

.ev_text{
    color: #000;
    font-size: 17px;
    line-height: 1.65;
    overflow-wrap: break-word;
}

.ev_text p{
    margin: 0 0 16px;
}

.ev_text h2,
.ev_text h3,
.ev_text h4{
    margin: 32px 0 12px;
    font-weight: 500;
    line-height: 1.25;
}

.ev_text h2{ font-size: 26px; }
.ev_text h3{ font-size: 21px; }
.ev_text h4{ font-size: 18px; }

.ev_text > :first-child{
    margin-top: 0;
}

.ev_text b,
.ev_text strong{
    font-weight: 600;
}

.ev_text a{
    color: #006738;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.ev_text ul,
.ev_text ol{
    margin: 0 0 16px;
}

.ev_text ul li{
    position: relative;
    padding-left: 22px;
}

.ev_text ul li + li,
.ev_text ol li + li{
    margin-top: 6px;
}

.ev_text ul li::before{
    content: "";
    position: absolute;
    left: 2px;
    top: .62em;
    width: 7px;
    height: 7px;
    background-color: #87D454;
    border-radius: 50%;
}

.ev_text ol{
    padding-left: 22px;
    list-style: decimal;
}

.ev_text ol li{
    list-style: decimal;
}

/* картинки и ролики из визуального редактора: ширину из атрибутов не слушаем */
.ev_text img{
    display: block;
    max-width: 100% !important;
    height: auto !important;
    margin: 20px 0;
    border-radius: 16px;
}

.ev_text iframe{
    display: block;
    width: 100% !important;
    height: auto !important;
    aspect-ratio: 16 / 9;
    margin: 20px 0;
    border: 0;
    border-radius: 16px;
}

.ev_text table{
    display: block;
    max-width: 100%;
    overflow-x: auto;
    border-collapse: collapse;
}

.ev_text [style*="width"]{
    max-width: 100% !important;
}

.ev_text--after{
    margin-top: 20px;
}

.ev_poster{
    display: block;
    margin-top: 40px;
    overflow: hidden;
    border-radius: 20px;
    background-color: #fff;
    cursor: zoom-in;
}

.ev_poster img{
    display: block;
    width: 100%;
    height: auto;
}

.ev_soon{
    position: sticky;
    top: 170px;
    align-self: start;
    padding: 24px;
    background-color: #fff;
    border-radius: 20px;
}

.ev_soon_title{
    margin-bottom: 8px;
    font-size: 20px;
    font-weight: 500;
}

.ev_soon_item{
    display: grid;
    grid-template-columns: 64px minmax(0, 1fr);
    align-items: center;
    gap: 14px;
    padding: 12px 0;
    color: #000;
}

.ev_soon_item + .ev_soon_item{
    border-top: 1px solid #EFF0F5;
}

.ev_soon_img{
    display: block;
    width: 64px;
    height: 64px;
    overflow: hidden;
    border-radius: 12px;
    background-color: #DCDFEE;
}

.ev_soon_img img{
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.ev_soon_body{
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 0;
}

.ev_soon_name{
    display: -webkit-box;
    overflow: hidden;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    font-size: 15px;
    line-height: 1.3;
    transition: color .2s ease;
}

.ev_soon_item:hover .ev_soon_name{
    color: #006738;
}

.ev_soon_date{
    color: #868BA3;
    font-size: 13px;
}

.ev_soon_all{
    display: inline-block;
    margin-top: 12px;
    color: #006738;
    font-size: 15px;
    text-decoration: underline;
    text-underline-offset: 3px;
}

/* медиа */
.ev_slider{
    margin-top: 64px;
    margin-bottom: 0;
    padding-top: 0;
}

.ev_slider .service_add_gallery_slide{
    display: block;
    height: 100%;
    cursor: zoom-in;
}

/* рамка фокуса с отступом наружу обрезается слайдером — оставались две полосы по бокам (Fancybox после
   закрытия возвращает фокус на ссылку). Для клавиатуры — рамка внутри фото */
.ev_slider .service_add_gallery_slide:focus-visible{
    outline: 2px solid #fff;
    outline-offset: -6px;
}

.ev_caption{
    margin-top: 10px;
    color: #868BA3;
    font-size: 14px;
}

.ev_block{
    margin-top: 64px;
}

.ev_block_title{
    margin-bottom: 24px;
    font-size: 28px;
    font-weight: 400;
}

.ev_gallery{
    display: grid;
    gap: 16px;
}

.ev_gallery--1{ grid-template-columns: minmax(0, 960px); }
.ev_gallery--2{ grid-template-columns: repeat(2, minmax(0, 1fr)); }
.ev_gallery--3{ grid-template-columns: repeat(3, minmax(0, 1fr)); }
.ev_gallery--many{ grid-template-columns: repeat(4, minmax(0, 1fr)); }

.ev_gallery_item{
    position: relative;
    display: block;
    overflow: hidden;
    aspect-ratio: 4 / 3;
    border-radius: 20px;
    background-color: #DCDFEE;
    cursor: zoom-in;
}

.ev_gallery--1 .ev_gallery_item{
    aspect-ratio: 16 / 10;
}

.ev_gallery_item img{
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .4s ease;
}

.ev_gallery_item:hover img{
    transform: scale(1.03);
}

.ev_videos{
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.ev_video{
    position: relative;
    overflow: hidden;
    aspect-ratio: 16 / 9;
    border-radius: 20px;
    background-color: #000;
}

.ev_video iframe,
.ev_video video{
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

/* загруженный файл: вертикальное видео не растягиваем — целиком на чёрном */
.ev_video video{
    object-fit: contain;
    background-color: #000;
}

/* «Видео подзаголовок» — текст к видео под заголовком блока */
.ev_video_text{
    max-width: 720px;
    margin: -12px 0 20px;
    color: #5B6075;
    font-size: 16px;
    line-height: 1.5;
}

/* один ролик — не на половину ширины */
.ev_videos:has(> .ev_video:only-child){
    grid-template-columns: minmax(0, 960px);
}

@media (min-width: 769px) and (max-width: 1200px){
    .ev_body{
        grid-template-columns: minmax(0, 1fr) 300px;
        gap: 40px;
    }

    .ev_gallery--many{
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .ev_hero_info{
        padding: 32px;
        gap: 24px;
    }

    .ev_title{
        font-size: 32px;
    }

    /* три карточки в ряд тесны: «Где это» на всю ширину, две другие под ней */
    .ev_info{
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .ev_info_cell:first-child{
        grid-column: 1 / -1;
    }
}

/* ---------- адаптив ---------- */

@media (max-width: 1200px){
    .afisha_grid{
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .afisha_recommend_list{
        grid-auto-columns: calc((100% - 2 * 26px) / 3);
    }
}

@media (max-width: 900px){
    .afisha_grid{
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 40px 16px;
    }

    .afisha_recommend_list{
        grid-auto-columns: calc((100% - 16px) / 2);
        gap: 16px;
    }
}

@media (max-width: 768px){
    /* шапка на мобильном 60px; снизу — фиксированная панель .mobile_menu_bottom 70px */
    .afisha{
        padding-top: 90px;
        padding-bottom: 100px;
    }

    .afisha_title{
        margin-bottom: 20px;
        font-size: 28px;
    }

    .afisha_dates{
        margin-left: -10px;
        margin-right: -10px;
        padding: 14px 10px 16px;
        border-radius: 0;
    }

    .afisha_dates_arrow{
        display: none;
    }

    .afisha_dates_today{
        top: 8px;
        right: 10px;
    }

    .afisha_dates_days{
        gap: 8px;
    }

    .afisha_dates_month{
        padding-right: 16px;
    }

    .afisha_dates_month + .afisha_dates_month{
        padding-left: 16px;
    }

    .afisha_filters{
        flex-wrap: nowrap;
        overflow-x: auto;
        margin-bottom: 32px;
        padding-bottom: 4px;
        scrollbar-width: none;
    }

    .afisha_filters::-webkit-scrollbar{
        display: none;
    }

    .afisha_filter{
        flex-shrink: 0;
        font-size: 14px;
    }

    /* ряд прокручивается вбок — чип выбранных дат последним уезжал за край экрана */
    .afisha_filter--date{
        order: -1;
    }

    /* на телефоне панель — снизу экрана над нижним меню: ряд фильтров прокручивается и обрезал бы её */
    .afisha_dd{
        position: static;
    }

    .afisha_dd_panel{
        position: fixed;
        top: auto;
        left: 10px;
        right: 10px;
        bottom: 84px;
        width: auto;
        z-index: 1000;
        transform-origin: 50% 100%;
    }

    .afisha_subtitle{
        margin-bottom: 20px;
        font-size: 22px;
    }

    .afisha_card--big{
        grid-column: 1 / -1;
    }

    .afisha_card--big .afisha_card_img{
        height: 320px;
    }

    .afisha_card--big .afisha_card_title{
        font-size: 20px;
    }

    .afisha_grid--solo .afisha_card--big{
        grid-column: 1 / -1;
    }

    .afisha_grid--solo .afisha_card--big{
        grid-template-columns: minmax(0, 1fr);
    }

    .afisha_grid--solo .afisha_card--big .afisha_card_img{
        height: 260px;
    }

    .afisha_grid--solo .afisha_card--big .afisha_card_body{
        padding: 20px;
    }

    .afisha_grid--solo .afisha_card--big .afisha_card_title{
        font-size: 22px;
    }

    .afisha_soon_empty{
        padding: 24px 20px;
    }

    .afisha_soon_empty_title{
        font-size: 21px;
    }

    .afisha_soon_empty_btn,
    .afisha_soon_empty .afisha_btn_outline{
        flex: 1 1 100%;
    }

    /* детальная: крошек на телефоне нет — фото сразу под шапкой (60px), назад в афишу — кнопкой поверх фото */
    .afisha.afisha_detail{
        padding-top: 60px;
    }

    .ev_hero{
        grid-template-columns: minmax(0, 1fr);
        min-height: 0;
        margin-left: -10px;
        margin-right: -10px;
        border-radius: 0;
    }

    .ev_back{
        position: absolute;
        top: 12px;
        left: 12px;
        z-index: 3;
        display: inline-flex;
        align-items: center;
        gap: 6px;
        height: 36px;
        padding: 0 14px 0 12px;
        background-color: rgba(255, 255, 255, .94);
        border-radius: 20px;
        box-shadow: 0 4px 14px rgba(0, 0, 0, .12);
        color: #006738;
        font-size: 14px;
        font-weight: 600;
        -webkit-backdrop-filter: blur(6px);
        backdrop-filter: blur(6px);
    }

    .ev_back::before{
        content: "";
        width: 7px;
        height: 7px;
        margin-right: 1px;
        border-left: 2px solid currentColor;
        border-bottom: 2px solid currentColor;
        transform: rotate(45deg);
    }

    /* без фото кнопка — просто строкой над заголовком */
    .ev_hero--nomedia .ev_back{
        position: static;
        justify-self: start;
        margin: 16px 16px 0;
        box-shadow: none;
        background-color: #F3FEEC;
    }

    .ev_hero_media{
        order: -1;
        min-height: 0;
        height: 280px;
        border-radius: 0;
    }

    .ev_hero_media--tall{
        height: 360px;
    }

    .ev_hero_media--tall .ev_hero_media_img{
        inset: 16px;
        width: calc(100% - 32px);
        height: calc(100% - 32px);
    }

    .ev_hero_info{
        padding: 22px 16px 26px;
    }

    .ev_title{
        margin-bottom: 20px;
    }

    .ev_meta{
        --stub: 86px;
    }

    /* узко для двух колонок — метка над значением */
    .ev_facts{
        grid-template-columns: minmax(0, 1fr);
        gap: 2px;
        padding: 14px 14px 14px 20px;
    }

    .ev_fact_label{
        font-size: 11px;
    }

    .ev_fact:not(:first-child) .ev_fact_label{
        margin-top: 8px;
    }

    .ev_fact_value{
        font-size: 15px;
    }

    /* «Где это» — во всю ширину, «Как добраться» и «Вопросы» — рядом: секция в две строки */
    .ev_info{
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px;
    }

    .ev_info_cell:first-child{
        grid-column: 1 / -1;
    }

    /* в половинных плитках места мало — текст плотнее и мельче, главная плитка «Где это» — крупнее */
    .ev_info_cell{
        padding: 14px 14px 16px;
        border-radius: 16px;
    }

    .ev_info_title{
        gap: 5px;
        margin-bottom: 6px;
        font-size: 12px;
        white-space: nowrap;
    }

    .ev_info_title svg{
        width: 14px;
        height: 14px;
    }

    .ev_info_link{
        padding-top: 10px;
        font-size: 13px;
    }

    .ev_info_main a.ev_info_phone{
        font-size: 16px;
    }

    .ev_info_note{
        padding-top: 10px;
        font-size: 12px;
    }

    /* меню «В календарь» рядом с корешком не помещается — снизу экрана, как панель «Направление» */
    .ev_cal{
        position: static;
    }

    .ev_cal_menu{
        position: fixed;
        top: auto;
        left: 10px;
        right: 10px;
        bottom: 84px;
        width: auto;
        z-index: 1000;
        transform-origin: 50% 100%;
    }

    .ev_info_main{
        font-size: 14px;
        line-height: 1.35;
    }

    .ev_info_cell:first-child .ev_info_main{
        font-size: 17px;
    }

    .ev_stub{
        min-height: 104px;
        padding: 12px 8px;
    }

    .ev_stub_num{
        font-size: 32px;
    }

    .ev_stub_num--range{
        font-size: 24px;
    }

    .ev_stub_month{
        margin-top: 4px;
        font-size: 13px;
    }

    .ev_stub_week{
        margin-top: 7px;
        padding-top: 6px;
        font-size: 12px;
    }

    .ev_cta{
        gap: 10px 22px;
        margin-top: 22px;
    }

    .ev_related_nav{
        display: none;
    }

    .ev_kind{
        margin-bottom: 12px;
    }

    .ev_title{
        font-size: 26px;
    }

    .ev_cta .ev_btn{
        flex: 1 1 100%;
        justify-content: center;
    }

    .ev_body{
        grid-template-columns: minmax(0, 1fr);
        gap: 40px;
        margin-top: 32px;
    }

    .ev_soon{
        position: static;
        padding: 18px 16px;
    }

    /* поля страницы на телефоне 10px, а у шапки события 16px — текст и заголовки блоков выравниваем по шапке */
    .ev_text,
    .ev_video_text{
        padding-left: 6px;
        padding-right: 6px;
        font-size: 16px;
    }

    .ev_block{
        margin-top: 44px;
    }

    .ev_block_title{
        margin-bottom: 16px;
        padding-left: 6px;
        padding-right: 6px;
        font-size: 22px;
    }

    .ev_gallery{
        gap: 10px;
    }

    .ev_gallery--3,
    .ev_gallery--many{
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .ev_gallery_item{
        border-radius: 14px;
    }

    .ev_videos{
        grid-template-columns: minmax(0, 1fr);
    }

    .ev_slider{
        margin-top: 44px;
    }
}

@media (max-width: 360px){
    .ev_meta{
        --stub: 76px;
    }

    .ev_fact_value{
        font-size: 14px;
    }
}

@media (max-width: 520px){
    .afisha_grid{
        grid-template-columns: minmax(0, 1fr);
    }

    .afisha_recommend_list{
        grid-auto-columns: 80%;
    }
}
