body {
    font-family: var(--font-main);
    font-style: normal;
    font-weight: normal;
    color: #464646;
    font-size: 12px;
    line-height: 12px;
}

/* tsk30361: страховка от Bootstrap 3 из ядра (/bitrix/css/main/bootstrap.css). Его подключают некоторые системные
   шаблоны компонентов («flat», «.default» фильтра и др.), а сайт свёрстан на Bootstrap 4. Bootstrap 3 ставит
   html { font-size: 10px } — всё, что задано в rem, уменьшается, — и добавляет каждой .row невидимые
   ::before/::after с display: table. В flex-строках Bootstrap 4 они становятся лишними элементами: в шапке
   логотип уезжал от левого края к середине. Из наших шаблонов Bootstrap 3 убран; эти правила — на случай,
   если его снова подтянет какой-нибудь системный шаблон. Без Bootstrap 3 они ничего не меняют: Bootstrap 4
   этих псевдоэлементов не создаёт, а корневой шрифт по умолчанию и так 100 %. */
html {
    font-size: 100%;
}

.row::before,
.row::after {
    content: none;
}

.title_name_in_people_of_the_theater {

font-size: 70px;

}

h1 {
    margin: 0;

    font-family: var(--font-heading);
    font-style: normal;
    font-weight: 700;
    font-size: 56px;
    line-height: 63px;
    color: var(--color-logo-red);
}

@media (max-width: 1199px) {
    h1 {
        font-size: 38px;
        line-height: 43px;
    }
}

@media (max-width: 575px) {
    h1 {
        font-size: 30px;
        line-height: 34px;
    }
}

h2 {
    font-family: var(--font-heading);
    font-style: normal;
    font-weight: 700;
    font-size: 56px;
    line-height: 68px;
    color: var(--color-logo-red);
}

@media (max-width: 1199px) {
    h2 {
        font-size: 38px;
        line-height: 43px;
    }
}

@media (max-width: 575px) {
    h2 {
        font-size: 30px;
        line-height: 34px;
    }
}

h3 {
    font-family: var(--font-heading);
    font-style: normal;
    font-weight: 700;
    font-size: 38px;
    line-height: 68px;
    color: var(--color-logo-red);
}

@media (max-width: 1199px) {
    h3 {
        font-size: 38px;
        line-height: 43px;
    }
}

@media (max-width: 575px) {
    h3 {
        font-size: 30px;
        line-height: 34px;
    }
}

.afishOnMain {

    padding: 0;

}

.template {
    margin: 0;
    min-height: 100vh;

    display: -ms-flexbox;
    display: flex;

    -ms-flex-direction: column;
    flex-direction: column;
}

.template,
.template .fancybox-stage .menu-window {
    background: #fff url("./images/theater-pattern.svg") repeat top center;
}

.template > footer {
    background-color: #fff;
}

@media (max-width: 575px) {
    .template,
    .template .fancybox-stage .menu-window {
        background-size: 60px auto;
    }
}

.template--bb {
    border-bottom: 1px solid rgb(49, 49, 49, 0.1);
}

.template--bt {
    border-top: 1px solid rgb(49, 49, 49, 0.1);
}

.template__header {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    grid-template-areas: "contacts contacts special" "logo menu menu";
    align-items: center;
    column-gap: clamp(28px, 5vw, 82px);
    row-gap: 4px;
    max-width: 1140px;
    margin: 0 auto;
    padding: 6px 0 22px;
}

.topbar__contacts {
    grid-area: contacts;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px 18px;
    margin: 0;
    padding: 0;
    list-style: none;
    font-family: var(--font-main);
    font-size: 13px;
    line-height: 1.3;
    color: var(--color-accent);
}

.topbar__item a {
    color: inherit;
}

.topbar__item a:hover {
    color: var(--color-logo-red);
}

.template__logo {
    grid-area: logo;
    display: block;
    width: 167px;
    max-width: 100%;
}

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

.template__special {
    grid-area: special;
    justify-self: end;
    display: grid;
    align-items: center;
    justify-items: end;
    width: 44px;
    height: 44px;
    color: var(--color-logo-red);
}

.template__special:hover {
    color: var(--color-accent);
}

.template__burger {
    grid-area: burger;
}

.template__menu {
    grid-area: menu;
    min-width: 0;
}

.template__header a:focus-visible {
    outline: 2px solid var(--color-accent);
    outline-offset: 2px;
}

@media (max-width: 1199px) {
    .template__header {
        max-width: 100%;
        padding-inline: 34px;
    }
}

@media (max-width: 767px) {
    .template__header {
        grid-template-columns: 44px minmax(0, 1fr) 44px;
        grid-template-areas: "burger logo special" "menu menu menu";
        gap: 12px;
        padding: 22px 20px;
    }

    .theater-menu-ready .template__header {
        grid-template-areas: "burger logo special";
    }

    .topbar__contacts,
    .theater-menu-ready .template__menu {
        display: none;
    }

    .template__logo {
        justify-self: center;
        width: clamp(126px, 35vw, 167px);
    }

    .template__special {
        justify-items: center;
    }
}

.template__phone a {
    font-family: var(--font-main);
    font-style: normal;
    font-weight: normal;
    font-size: 16px;
    line-height: 18px;
    letter-spacing: 0.034em;
    color: #313131;
}

.template__phone a:hover {
    text-decoration: none;
    color: #313131;
}

@media (max-width: 575px) {
    .template__phone a {
        font-size: 14px;
        line-height: 16px;
    }
}

.template__footer {
    max-width: 1140px;
    padding: 40px 0px 30px 0px;
}

@media (max-width: 1199px) {
    .template__footer {
        max-width: 100%;
        padding: 35px 34px 21px 34px;
    }
}

@media (max-width: 575px) {
    .template__footer {
        padding: 30px 20px 34px 20px;
    }
}

.template__adress {
    font-family: var(--font-main);
    font-style: normal;
    font-weight: normal;
    font-size: 13px;
    line-height: 15px;
    color: #313131;
}

.template__anchor {
    font-family: var(--font-main);
    font-style: normal;
    font-weight: normal;
    font-size: 13px;
    line-height: 15px;
    text-align: center;
    color: #313131;
}

.template__anchor--grey {
    color: #bdbdbd;
}

.template__anchor--iconed {
    display: flex;
    align-items: center;

    font-size: 14px;
    line-height: 16px;
    color: var(--color-accent);
}

.template__anchor--iconed img {
    margin-right: 15px;
}

.template__anchor:hover {
    color: var(--color-accent);
    text-decoration: none;
}

.template__footer-bottom {
    margin-top: 75px;
}

@media (max-width: 1199px) {
    .template__footer-bottom {
        margin-top: 40px;
    }
}

@media (max-width: 575px) {
    .template__footer-bottom {
        margin-top: 34px;
    }
}

@media (max-width: 1199px) {
    .template__sp {
        margin-top: 9px;
    }
}

.template__policy {
    margin-right: 70px;
}

@media (max-width: 1199px) {
    .template__policy {
        margin-right: 0px;
    }
}

@media (max-width: 575px) {
    .template__policy {
        margin-top: 24px;
    }
}

.template__footer-menu {
    max-width: 538px;
}

@media (max-width: 1199px) {
    .template__footer-menu {
        max-width: 100%;
        margin-top: 40px;
    }
}

@media (max-width: 767px) {
    .template__footer-menu {
        display: none;
    }
}

.template__place-col {
    max-width: 178px;
}

@media (max-width: 1199px) {
    .template__place-col {
        max-width: 50%;
    }
}

@media (max-width: 650px) {
    .template__place-col {
        max-width: 178px;
    }
}

@media (min-width: 1200px) {
    .template__footer-contacts > .row {
        flex-wrap: nowrap;
        column-gap: 24px;
    }

    .template__footer-contacts a {
        white-space: nowrap;
    }
}

@media (max-width: 575px) {
    .template__footer-contacts {
        margin-top: 23px;
    }
}

.template__place {
    padding-top: 2px;

    font-family: var(--font-main);
    font-style: normal;
    font-weight: normal;
    line-height: 24px;
    color: #313131;
}

.template__place--lg {
    font-size: 18px;
}

.template__place--sm {
    font-size: 14px;
}

@media (max-width: 1199px) {
    .template__place--lg {
        font-size: 16px;
    }
}

.template__place-img {
    margin-right: 15px;
}

.template__place-img:empty::before {
    content: "";
    display: inline-block;
    width: 18px;
    height: 22px;
    vertical-align: middle;
    background-color: var(--color-accent);
    mask: url("images/icons/place.svg") center / contain no-repeat;
}

@media (max-width: 1199px) {
    .template__anchor--margin {
        margin-right: 25px;
    }
}

.template__content {
    max-width: 1140px;
}

@media (max-width: 1199px) {
    .template__content {
        max-width: 100%;
    }
}

.template--blue {
    background: rgba(var(--color-accent-rgb), 0.03);
}

.afisha-cards__head,
.news_block .block_title {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    margin-bottom: clamp(22px, 4vw, 38px);
    text-align: center;
}

.afisha-cards__head .afisha-cards__all,
.news_block .block_title a {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font: 400 16px/1.25 var(--font-main);
    color: var(--color-accent);
}

.template__title {
    margin-top: 80px !important;
    /*margin-bottom: 60px;*/
    margin-bottom: 0;

    width: 80%;

}

/* 70 px — только на ПК. На планшете и телефоне действуют размеры h1 из начала файла
   (38 и 30 px): при 70 px длинные слова заголовка («Противодействие») шире экрана телефона. */
@media (min-width: 1200px) {
    .template__title h1 {
        font-size: 70px;
        line-height: 1.1;
    }
}

/* п. 10 ТЗ: заголовок новости — на пару пунктов крупнее текста новости (16px = 12pt → 20px = 15pt),
   на ПК и на телефоне. Класс ставит detail.php новостей через свойство страницы TITLE_CLASS. */
.template__title.template__title--compact h1 {
    font-family: var(--font-text);
    font-size: 20px;
    line-height: 1.3;
    color: var(--color-accent);
}

@media (max-width: 1199px) {
    .template__title {
        margin-top: 34px;
    }
}

@media (max-width: 575px) {
    .template__title {
        margin-top: 20px;
        margin-bottom: 20px;
    }
}

.template--padding-sm,
.template--padding-lg {
    padding-left: 0px;
    padding-right: 0px;
}

@media (max-width: 1199px) {
    .template--padding-sm,
    .template--padding-lg {
        padding-left: 34px;
        padding-right: 34px;
    }
}

@media (max-width: 575px) {
    .template--padding-lg {
        padding-left: 20px;
        padding-right: 20px;
    }
    .template--padding-sm {
        padding-left: 10px;
        padding-right: 10px;
    }
}

/* Текстовые страницы (класс ставит header.php): на планшете и телефоне картинки из визуального
   редактора (ширина задана атрибутом width) не шире колонки, пропорции сохраняются.
   :where() обнуляет специфичность — стили компонентов с классами (фото в карточках) важнее. */
@media (max-width: 1199px) {
    :where(.template__content--text) img {
        max-width: 100%;
        height: auto;
    }
}

.template--hidden {
    display: none !important;
}

/*popup*/
.popup-window {
    width: 320px;
    background-color: #ffffff;
}

.popup-window.popup-window-with-titlebar{
    padding: 54px 30px 31px 30px;
}

.popup-window-with-titlebar .popup-window-content {
    padding: 0;
}

.popup-window-titlebar-text {
    max-width: 185px;
    font-family: var(--font-accent);
    font-style: normal;
    font-weight: bold;
    font-size: 21px;
    line-height: 21px;
    display: flex;
    align-items: center;
    color: #313131;
    white-space: normal;
    padding: 0;
}

.top-basket-window__item {
    padding-bottom: 26px;
    border-bottom: 2px dotted #e0e0e0;
    font-family: var(--font-main);
    font-style: normal;
    font-weight: normal;
    font-size: 18px;
    line-height: 20px;
    color: #313131;
}

.top-basket-window__list, .header-poster {
    margin-top: 24px;
}
.header-poster{
font-size: calc(1.1em + 1vw);
color: #313131;
}

.top-basket-window__button--filled {
    height: 50px;
    padding: 17px 39px;
    background: var(--color-accent);
    border: 2px solid var(--color-accent);
    color: #ffffff;

    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}


.top-basket-window__button--outlined {
    height: 50px;
    padding: 17px 48px;
    background: #fff;
    border: 2px solid #313131;
    color: #313131;

    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;   
    margin-top: 20px;
}

.top-basket-window__button--filled:hover,
.top-basket-window__button--outlined:hover {
    box-shadow: 0px 10px 25px rgba(var(--color-accent-rgb), 0.24);
}

.popup-window-titlebar-close-icon {
    top: 0;
    right: 0;
}

.popup-window-close-icon {
    background: transparent;
    border: none;
    width: 16px;
    height: 16px;
    padding: 0;
    margin: 18px 22px;
    background: url(images/icons/close.svg);
    background-position: center center;
    background-repeat: no-repeat;
}
/***/




/*Контакты*/

.map_container iframe {

    width: 100% !important;

}

.bx-newslist-container {

    text-align: left;

}

.bx-newslist-title {

    text-transform: capitalize;

}

@media (max-width: 768px){

.bx-newslist-container {

    text-align: center;

}

}





.slider_up_tepmlate_corrector {

padding-left: 0 !important;
padding-right: 0 !important;

}

.afishOnMain .container .block_title {

    position: relative;
    top: 160px;

    padding: 0 25px;

    height: 1px;

}

.afishOnMain .container .block_title h1 {



}


.filter_line_onMain {

    margin-left: 50px !important;

}



@media (max-width: 992px){

.afishOnMain .container .block_title {

    top: 120px;

}

}

@media (max-width: 768px){

.afishOnMain .container .block_title {

    top: 160px;

}

.radio label {

    margin: 0 25px;

}

.afishOnMain .container .block_title h1 {

    bottom: 75px !important;

}

.filter_line_onMain {

    margin-left: 50px !important;

}

.filter_display_flex_corrector_month {

    justify-content: center;

}

}

.afishOnMain .container .block_title h1 {

    position: relative;
    bottom: 65px;

}

.afishOnMain .container {



}

@media (max-width: 576px){

    .afishOnMain .container .block_title {

        top: 120px;
        display: block !important;
        text-align: center;

    }

    .filter_line_onMain {

        margin-left: 0px !important;

    }

    main {

        margin: 30px 0 0 0;

    }

}

.telegram-img{
    width: 20px;
}
