/* Элементы общей шапки сохраняют устойчивую сетку при длинном городе и имени пользователя */
.quick-tickets-header__brand,
.quick-tickets-header__account {
    min-width: 0;
}

#head .logo .quick-tickets-header__logo-symbol,
.quick-tickets-header__account-mobile {
    display: none;
}

.quick-tickets-header__city {
    display: inline-flex;
    align-items: center;
    max-width: 100%;
}

.quick-tickets-header__city-name {
    display: inline-block;
    min-width: 0;
    max-width: 100%;
    line-height: 1.2;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* Действия аккаунта образуют одну группу с самостоятельными некликабельными разделителями */
#head #userlogin .quick-tickets-header__account-actions {
    display: inline-flex;
    align-items: stretch;
    max-width: 100%;
    border-radius: 4px;
    background: var(--quick-tickets-color-brand);
    vertical-align: middle;
}

#head #userlogin .quick-tickets-header__account-actions > .btn-orange {
    float: none;
}

#head #userlogin .quick-tickets-header__profile-link {
    display: inline-flex;
    flex: 1 1 auto;
    align-items: center;
    min-width: 0;
    overflow: hidden;
}

#head #userlogin .quick-tickets-header__profile-link > .btn-text-icon {
    flex: 0 0 auto;
}

#head #userlogin .quick-tickets-header__profile-label {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

#head #userlogin .quick-tickets-header__account-separator {
    flex: 0 0 1px;
    align-self: stretch;
    width: 1px;
    margin: 8px 0;
    background: rgba(255, 255, 255, 0.65);
    pointer-events: none;
}

/* На широких экранах хлебные крошки остаются одной строкой и сжимают длинные ссылки */
.breadcrumbs {
    display: flex;
    max-width: calc(100% + 30px);
    white-space: nowrap;
}

.breadcrumbs > li {
    display: flex;
    min-width: 0;
}

.breadcrumbs > li:last-child {
    flex: 0 0 auto;
}

.breadcrumbs a {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.breadcrumbs li > .divider {
    flex: 0 0 15px;
}

/* Кнопки навигации организации сохраняют доступную ширину текста */
#organisation > .head .navigation .row {
    margin-right: 0;
    margin-left: 0;
}

#organisation > .head .navigation .nav-btn {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: var(--quick-tickets-space-2);
}

#organisation > .head .navigation .nav-btn .btn {
    margin: 0;
}

/* Ссылка раздела и счётчики образуют одну визуальную кнопку с независимыми действиями */
#organisation > .head .navigation .organisation-reviews-button {
    display: inline-flex;
    align-items: stretch;
    padding: 0;
}

#organisation > .head .navigation .organisation-reviews-button__label {
    display: flex;
    align-items: center;
    padding: 6px 3px 6px 12px;
    color: inherit;
    text-decoration: none;
}

#organisation > .head .navigation .organisation-reviews-button__label:hover,
#organisation > .head .navigation .organisation-reviews-button__label:focus {
    color: inherit;
    text-decoration: none;
}

#organisation > .head .navigation .organisation-reviews-button .org-like {
    display: flex;
    align-items: center;
    margin: 0;
    padding-right: 7px;
}

#organisation > .head .navigation .organisation-reviews-button .org-like a {
    display: flex;
    align-items: center;
    gap: var(--quick-tickets-space-1);
}

/* Сводка сохраняет название и рейтинг в независимых колонках правой части шапки */
#organisation > .head .organisation-head__summary,
#organisation .event-organisation-head__summary {
    display: grid;
    grid-template-areas: "identity rate";
    grid-template-columns: minmax(0, 1fr) auto;
    column-gap: 15px;
    align-items: start;
}

/* Компактная шапка организации на мероприятиях и заказах использует общую устойчивую сетку */
#organisation .event-organisation-head__layout {
    display: grid;
    grid-template-areas: "logo content";
    grid-template-columns: 150px minmax(0, 1fr);
    column-gap: 15px;
    align-items: start;
    width: 100%;
}

#organisation .event-organisation-head__logo {
    grid-area: logo;
    width: auto;
    min-width: 0;
    padding-right: 0;
}

#organisation .event-organisation-head__logo a,
#organisation .event-organisation-head__logo img {
    display: block;
    max-width: 100%;
    height: auto;
}

/* Правая колонка компактной шапки не зависит от высоты логотипа */
#organisation .event-organisation-head__content {
    grid-area: content;
    min-width: 0;
}

#organisation .event-organisation-head__identity {
    grid-area: identity;
    min-width: 0;
    overflow-wrap: anywhere;
}

#organisation .event-organisation-head__rate {
    grid-area: rate;
}

#organisation .event-organisation-head__rate:not(:has(*)) {
    display: none;
}

#organisation .event-organisation-head__contacts {
    grid-area: contacts;
    display: block;
    min-width: 0;
    margin-top: 10px;
}

#organisation > .head .organisation-head__contacts,
#organisation .event-organisation-head__contacts {
    overflow-wrap: normal;
}

#organisation > .head .organisation-head__contacts .organisation-contacts-overflow,
#organisation .event-organisation-head__contacts .organisation-contacts-overflow {
    width: 100%;
    min-width: 0;
}

#organisation > .head .organisation-head__contacts .organisation-contacts-line__item,
#organisation .event-organisation-head__contacts .organisation-contacts-line__item {
    float: none;
    display: inline-flex;
    align-items: center;
    margin: 0;
    padding: 0;
    overflow-wrap: normal;
    vertical-align: middle;
    white-space: nowrap;
}

#organisation > .head .organisation-head__contacts .organisation-contacts-line__item--separated,
#organisation .event-organisation-head__contacts .organisation-contacts-line__item--separated {
    margin-left: 20px;
}

#organisation > .head .organisation-head__contacts .organisation-contacts-line__item > .qxf,
#organisation .event-organisation-head__contacts .organisation-contacts-line__item > .qxf {
    flex: 0 0 auto;
    margin-right: 4px;
    line-height: 1;
}

/* Тонкий оранжевый акцент отделяет подвал от содержимого страницы */
#footer::before {
    position: absolute;
    top: 0;
    right: 0;
    left: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 111, 47, 0.9), transparent);
    content: '';
    pointer-events: none;
}

/* Основные разделы подвала образуют плотный центрированный информационный ряд */
#footer .quick-tickets-footer__columns {
    display: grid;
    grid-template-areas: 'about users organisations';
    grid-template-columns: minmax(220px, 0.85fr) minmax(0, 1.8fr) minmax(220px, 0.9fr);
    gap: 20px;
    align-items: start;
    margin-right: 0;
    margin-left: 0;
    text-align: center;
}

#footer .quick-tickets-footer__columns > * {
    min-width: 0;
}

#footer .quick-tickets-footer__about {
    grid-area: about;
}

#footer .quick-tickets-footer__users {
    grid-area: users;
}

#footer .quick-tickets-footer__organisations {
    grid-area: organisations;
}

/* Заголовки разделов становятся компактными навигационными метками */
#footer .header {
    padding: 0 0 13px;
    color: rgba(255, 255, 255, 0.5);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.12em;
    line-height: 1.3;
    text-transform: uppercase;
}

/* Смысловые группы образуют независимые вертикальные потоки без выравнивания соседних ссылок */
#footer .quick-tickets-footer__user-groups {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
    align-items: start;
}

#footer .quick-tickets-footer__user-group .menu {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

#footer .menu li {
    min-width: 0;
    padding-bottom: 0;
}

#footer .menu li a {
    color: rgba(255, 255, 255, 0.84);
    font-size: 12px;
    line-height: 1.4;
    text-decoration-color: rgba(255, 255, 255, 0.28);
    text-decoration-thickness: 1px;
    text-underline-offset: 3px;
}

#footer .menu li a:hover,
#footer .menu li a:focus {
    color: #ff7b3d;
    text-decoration-color: currentColor;
}

/* Информационный блок и его текст выравниваются по центру колонки */
#footer .quick-tickets-footer__meta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-width: 0;
    margin: 0 0 16px;
    text-align: center;
}

#footer .quick-tickets-footer__meta-icon {
    flex: 0 0 40px;
    filter: grayscale(100%);
}

#footer .quick-tickets-footer__meta-text {
    min-width: 0;
    overflow-wrap: anywhere;
    text-align: left;
}

#footer .quick-tickets-footer__about .quick-tickets-footer__meta {
    margin-bottom: 14px;
}

/* Социальные сети дополняют фирменный блок и центрируются в его ширине */
#footer .quick-tickets-footer__socials {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 5px;
}

#footer .social-icons a {
    width: 40px;
    height: 40px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.04);
    color: #858585;
    font-size: 20px;
    opacity: 1;
    transition: border-color 0.2s ease, background-color 0.2s ease, transform 0.2s ease;
}

#footer .social-icons a:hover,
#footer .social-icons a:focus-visible {
    border-color: currentColor;
    background: rgba(255, 255, 255, 0.08);
    transform: translateY(-2px);
}

/* Нижняя строка отделяет платёжные логотипы и серверные ссылки от основной навигации */
#footer .bottom {
    margin-top: 20px;
    padding: 10px 0;
}

#footer .quick-tickets-footer__bottom-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-right: 0;
    margin-left: 0;
}

#footer .quick-tickets-footer__payments {
    flex: 0 1 auto;
    min-width: 0;
}

#footer .footer-payment-logos {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 10px;
    white-space: normal;
}

/* Приглушённые платёжные логотипы сохраняют единый визуальный вес */
#footer .footer-payment-logo {
    height: 30px;
    filter: grayscale(100%);
    opacity: 0.78;
}

/* Международные платёжные системы образуют компактный вертикальный знак */
#footer .quick-tickets-footer__international-payments {
    display: flex;
    flex: 0 0 auto;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
    height: 30px;
}

#footer .quick-tickets-footer__international-payments .footer-payment-logo {
    width: auto;
    max-width: none;
    height: 14px;
}

/* Две раздельные строки серверных ссылок по высоте совпадают с платёжными логотипами */
#footer .quick-tickets-footer__hosting {
    flex: 0 0 auto;
    margin: 0;
    color: #858585;
    font-size: 12px;
    line-height: 15px;
    text-align: center;
    white-space: nowrap;
}

#footer .quick-tickets-footer__hosting > span {
    display: block;
}

#footer .quick-tickets-footer__hosting a {
    color: inherit;
    text-decoration-color: rgba(255, 255, 255, 0.28);
    text-underline-offset: 3px;
}

#footer .quick-tickets-footer__hosting a:hover,
#footer .quick-tickets-footer__hosting a:focus {
    color: #ff7b3d;
    text-decoration-color: currentColor;
}

/* На планшетах фирменный и партнёрский блоки располагаются над широкой навигацией */
@media (max-width: 991.999px) {
    #footer .quick-tickets-footer__columns {
        grid-template-areas:
            'about organisations'
            'users users';
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 24px;
    }

    /* Полноширинные внешние блоки не нуждаются в скруглении без боковых отступов */
    #body > #article,
    #body > #content.viewer-layout,
    #body > .regional-subdomain-title {
        border-radius: 0;
    }

    /* Хлебные крошки сохраняют отступы и переходят в прокрутку до переноса строки */
    #body > nav[aria-label="Хлебные крошки"] > .breadcrumbs {
        display: flex;
        max-width: none;
        margin: 0 -15px 10px;
        padding: 3px 10px 6px;
        overflow-x: auto;
        overflow-y: hidden;
        scrollbar-width: none;
        white-space: nowrap;
        -webkit-overflow-scrolling: touch;
    }

    .breadcrumbs::-webkit-scrollbar {
        display: none;
        width: 0;
        height: 0;
    }

    .breadcrumbs > li {
        display: flex;
        flex: 0 0 auto;
    }

    .breadcrumbs a {
        max-width: none;
        overflow: visible;
        text-overflow: clip;
        white-space: nowrap;
    }

    .breadcrumbs li > .divider {
        flex: 0 0 15px;
    }
}

/* На промежуточной ширине счётчик сохраняет собственную ширину и точный центр шапки */
@media (min-width: 768px) and (max-width: 1199.999px) {
    #head .quick-tickets-header__layout {
        display: grid;
        grid-template-columns: minmax(0, 1fr) max-content minmax(0, 1fr);
        align-items: start;
    }

    #head .quick-tickets-header__layout::before,
    #head .quick-tickets-header__layout::after {
        display: none;
        content: none;
    }

    #head .quick-tickets-header__brand,
    #head .quick-tickets-header__counter,
    #head .quick-tickets-header__account {
        float: none;
        width: auto;
    }
}

@media (max-width: 767.999px) {
    /* Мобильный блок подписки сохраняет подпись и обе иконки в одной строке во всех шапках */
    #organisation > .head .organisation-head__params .subscription-block__content,
    #organisation .event-viewer .event-element-head .subscription-block__content {
        flex-wrap: nowrap;
        align-items: center;
        gap: 8px;
    }

    #organisation > .head .organisation-head__params .subscription-block__prompt,
    #organisation .event-viewer .event-element-head .subscription-block__prompt {
        flex: 1 1 auto;
        min-width: 0;
    }

    #organisation > .head .organisation-head__params .subscription-block__prompt-line,
    #organisation .event-viewer .event-element-head .subscription-block__prompt-line {
        max-width: 100%;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    #organisation > .head .organisation-head__params .subscription-block__button,
    #organisation .event-viewer .event-element-head .subscription-block__button {
        flex: 0 0 44px;
        justify-content: center;
        width: 44px;
        height: 44px;
        padding: 6px;
    }

    #organisation > .head .organisation-head__params .subscription-block__label,
    #organisation .event-viewer .event-element-head .subscription-block__label {
        display: none;
    }

    /* Диалоговые окна не выходят за пределы экрана после включения реальной ширины устройства */
    .modal-dialog,
    .bs-modal-lg .modal-dialog {
        width: auto;
        min-width: 0;
        max-width: calc(100% - 20px);
        margin: 10px;
    }

    .modal-content {
        width: 100%;
        min-width: 0;
    }

    .modal-footer {
        display: flex;
        flex-wrap: wrap;
        gap: var(--quick-tickets-space-2);
    }

    .modal-footer .btn {
        margin: 0;
    }

    body > #wrap > .site-background-transition--arc {
        background: radial-gradient(ellipse 260vw 105vw at 50% 0, rgba(255, 255, 255, 0) 94%, rgba(255, 255, 255, 0.35) 96%, #fff 98%, #fff 100%);
    }

    /* Шапка сайта переходит на компактную строку без фиксированной высоты */
    #head {
        height: auto;
        min-height: 0;
        margin-bottom: 10px;
        padding: 8px 0;
    }

    #head .quick-tickets-header__layout {
        display: grid;
        grid-template-areas: "brand account";
        grid-template-columns: minmax(0, max-content) minmax(min-content, 1fr);
        gap: 0 8px;
        align-items: center;
        margin-right: 0;
        margin-left: 0;
    }

    /* Служебные псевдоэлементы Bootstrap не становятся лишними ячейками сетки шапки */
    #head .quick-tickets-header__layout::before,
    #head .quick-tickets-header__layout::after {
        display: none;
        content: none;
    }

    #head .quick-tickets-header__brand,
    #head .quick-tickets-header__counter,
    #head .quick-tickets-header__account {
        float: none;
        width: auto;
        padding-right: 0;
        padding-left: 0;
    }

    #head .quick-tickets-header__brand {
        grid-area: brand;
        display: flex;
        align-items: center;
        justify-content: flex-start;
        gap: 6px;
    }

    /* Счётчик заказов не занимает место в компактной шапке */
    #head .quick-tickets-header__counter {
        display: none;
    }

    #head .quick-tickets-header__account {
        grid-area: account;
    }

    #head .logo {
        display: block;
        flex: 0 0 44px;
        width: 44px;
        height: 44px;
        min-width: 0;
    }

    #head .logo img {
        display: block;
        width: 100%;
        height: auto;
        margin-right: 0;
    }

    #head .logo .quick-tickets-header__logo-wordmark {
        display: none;
    }

    #head .logo .quick-tickets-header__logo-symbol {
        display: block;
        width: 44px;
        height: 44px;
        object-fit: contain;
    }

    #head #aChangeCity.quick-tickets-header__city {
        position: static;
        top: auto;
        left: auto;
        display: inline-flex;
        flex: 1 1 auto;
        align-self: stretch;
        align-items: center;
        min-width: 0;
        margin-left: 0;
        padding: 0;
        overflow: hidden;
        font-size: var(--quick-tickets-header-city-font-size, 16px);
        line-height: 1.2;
    }

    #head #aChangeCity .quick-tickets-header__city-name {
        display: block;
        flex: 1 1 auto;
    }

    #userlogin {
        display: flex;
        flex-wrap: nowrap;
        justify-content: flex-end;
        gap: 0;
        padding-top: 0;
    }

    #userlogin,
    #userlogin .btn-group {
        min-width: 0;
        max-width: 100%;
    }

    #userlogin .btn,
    #userlogin .btn-group {
        margin: 0;
    }

    #userlogin .btn-group {
        display: flex;
        max-width: 100%;
    }

    #userlogin .btn-group .btn:first-child {
        min-width: 0;
        max-width: 100%;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    #head #userlogin .quick-tickets-header__account-desktop {
        display: none;
    }

    #head #userlogin .quick-tickets-header__account-mobile {
        display: inline-flex;
    }

    #head #userlogin .quick-tickets-header__account-guest {
        align-items: center;
        gap: 4px;
    }

    #head #userlogin .quick-tickets-header__account-trigger {
        display: inline-flex;
        flex: 0 0 auto;
        align-items: center;
        justify-content: center;
        min-width: 0;
        min-height: var(--quick-tickets-touch-target);
        padding: 4px 6px;
        float: none;
        line-height: 1.2;
        white-space: nowrap;
    }

    #head #userlogin .quick-tickets-header__account-shortcuts {
        align-items: center;
        width: 100%;
        max-width: 220px;
        border-radius: 4px;
        background: var(--quick-tickets-color-brand);
    }

    /* Короткий разделитель повторяет высоту разделителей широкой версии */
    #head #userlogin .quick-tickets-header__account-shortcuts > .quick-tickets-header__account-separator {
        display: none;
    }

    #head #userlogin .quick-tickets-header__account-shortcuts > .quick-tickets-header__account-trigger {
        padding-right: 6px;
        padding-left: 6px;
        border-right: 0;
        border-top-right-radius: 0;
        border-bottom-right-radius: 0;
    }

    #head #userlogin .quick-tickets-header__account-summary {
        display: grid;
        grid-template-rows: auto auto;
        flex: 1 1 auto;
        align-content: center;
        align-items: stretch;
        justify-content: stretch;
        min-width: min-content;
        line-height: 1.1;
    }

    #head #userlogin .quick-tickets-header__account-summary-name {
        display: block;
        min-width: 0;
        max-width: 100%;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    #head #userlogin .quick-tickets-header__account-summary-bonuses {
        display: block;
        width: auto;
        min-width: max-content;
        font-size: 12px;
        line-height: 1.1;
        text-align: center;
        white-space: nowrap;
    }

    #head #userlogin .quick-tickets-header__account-logout {
        position: relative;
        display: inline-flex;
        flex: 0 0 var(--quick-tickets-touch-target);
        align-items: center;
        justify-content: center;
        width: var(--quick-tickets-touch-target);
        min-height: var(--quick-tickets-touch-target);
        padding: 4px 6px;
        border-left: 0;
        border-top-left-radius: 0;
        border-bottom-left-radius: 0;
        float: none;
    }

    #head #userlogin .quick-tickets-header__account-logout::before {
        position: absolute;
        top: 8px;
        bottom: 8px;
        left: 0;
        width: 1px;
        background: rgba(255, 255, 255, 0.65);
        content: '';
        pointer-events: none;
    }

    /* На достаточно широком мобильном экране текст располагается между символами */
    .regional-subdomain-title {
        display: grid;
        grid-template-areas: 'flag text emblem';
        grid-template-columns: 3.75em minmax(0, 1fr) 3.75em;
        align-items: center;
        justify-content: center;
        column-gap: 12px;
        width: calc(100% + 30px);
        margin: 10px -15px 16px;
        padding: 8px 10px;
        font-size: clamp(18px, 5vw, 24px);
        text-align: center;
    }

    /* Заголовок переносится как один обычный абзац без обрезания и многоточия */
    .regional-subdomain-title__text {
        display: block;
        width: 100%;
        min-width: 0;
        max-width: 100%;
        line-height: 1.25;
        overflow: visible;
        text-overflow: clip;
        white-space: normal;
    }

    /* Равные боковые колонки сохраняют точное центрирование заголовка */
    .regional-subdomain-title__symbol {
        align-self: center;
        justify-self: center;
        height: 2.5em;
    }

    .regional-subdomain-title__symbol--emblem {
        width: 2.5em;
    }

    .regional-subdomain-title__symbol--flag {
        width: 3.75em;
    }

    #organisation > .head .navigation .nav-btn::-webkit-scrollbar {
        display: none;
        width: 0;
        height: 0;
    }

    /* Мобильная шапка организации располагает название и рейтинг справа от логотипа */
    #organisation > .head .head-in {
        padding: 10px;
    }

    #organisation > .head .organisation-head__layout {
        grid-template-areas:
            "logo summary"
            "contacts contacts"
            "params params";
        grid-template-columns: var(--quick-tickets-mobile-organisation-media-width) minmax(0, 1fr);
        row-gap: 0;
        column-gap: 12px;
        align-items: center;
    }

    /* Содержимое правой колонки становится непосредственными областями мобильной сетки */
    #organisation > .head .organisation-head__content {
        display: contents;
    }

    #organisation > .head .organisation-head__layout > .organisation-head__logo {
        justify-self: start;
        width: 100%;
    }

    /* Изображение логотипа заполняет только выделенную колонку и не перекрывает соседние строки */
    #organisation > .head .organisation-head__layout > .organisation-head__logo img {
        width: 100%;
    }

    /* Мобильная сводка располагает рейтинг непосредственно после названия организации */
    #organisation > .head .organisation-head__summary {
        grid-area: summary;
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        align-self: center;
        min-width: 0;
        text-align: left;
    }

    #organisation > .head .organisation-head__identity {
        display: contents;
    }

    #organisation > .head .organisation-head__name {
        order: 1;
        min-width: 0;
    }

    #organisation > .head .organisation-head__rate {
        order: 2;
    }

    #organisation > .head .organisation-head__rate:not(:has(*)) {
        display: none;
    }

    #organisation > .head .organisation-head__params {
        padding-bottom: 10px;
    }

    #organisation > .head .navigation {
        padding-top: 10px;
    }

    #organisation > .head .navigation .row > [class*="col-"] {
        float: none;
        width: 100%;
        padding-right: 0;
        padding-left: 0;
    }

    #organisation > .head .navigation .org-like {
        margin: 0 0 10px;
    }

    #organisation > .head .navigation .nav-btn {
        flex-wrap: nowrap;
        justify-content: flex-start;
        padding: 2px 2px 20px;
        overflow-x: auto;
        overflow-y: hidden;
        scroll-snap-type: x proximity;
        scrollbar-width: none;
        -webkit-overflow-scrolling: touch;
    }

    #organisation > .head .navigation .nav-btn .btn {
        flex: 0 0 auto;
        scroll-snap-align: start;
    }

    /* Составная кнопка отзывов сохраняет естественную высоту соседних ссылок */
    #organisation > .head .navigation .organisation-reviews-button {
        min-height: 0;
    }

    /* Мобильная компактная шапка размещает название и рейтинг справа от логотипа */
    #organisation .event-organisation-head__layout {
        grid-template-areas:
            "logo summary"
            "contacts contacts";
        grid-template-columns: var(--quick-tickets-mobile-organisation-media-width) minmax(0, 1fr);
        row-gap: 0;
        column-gap: 12px;
        align-items: start;
    }

    /* Содержимое компактной правой колонки становится областями мобильной сетки */
    #organisation .event-organisation-head__content {
        display: contents;
    }

    /* Уточнённый селектор перекрывает старую фиксированную ширину блока с изображением */
    #organisation .head .info.event-organisation-head__layout > .event-organisation-head__logo {
        justify-self: start;
        width: 100%;
        padding-right: 0;
    }

    #organisation .event-organisation-head__logo img {
        width: 100%;
    }

    /* Мобильная компактная сводка располагает рейтинг непосредственно после названия организации */
    #organisation .event-organisation-head__summary {
        grid-area: summary;
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        min-width: 0;
        text-align: left;
    }

    #organisation .event-organisation-head__identity {
        display: contents;
    }

    #organisation .event-organisation-head__name {
        order: 1;
        min-width: 0;
    }

    #organisation .event-organisation-head__rate {
        order: 2;
    }

    /* Телефон и адрес организации образуют одну прокручиваемую строку */
    #organisation > .head .organisation-head__contacts,
    #organisation .event-organisation-head__contacts {
        display: block;
        min-width: 0;
        margin-top: 10px;
    }

    /* Контакты и отзывы организации используют всю ширину вместо узких Bootstrap-колонок */
    #organisation .organisation-contacts > .col-xs-6,
    #organisation .organisation-reviews > .col-xs-9,
    #organisation .organisation-reviews > .col-xs-3,
    #organisation .event-viewer .organisation-reviews > .col-xs-9,
    #organisation .event-viewer .organisation-reviews > .col-xs-3 {
        float: none;
        width: 100%;
    }

    #organisation .organisation-contact__map {
        height: 300px;
        margin-top: var(--quick-tickets-space-4);
    }
}

@media (max-width: 479px) {
    /* На самых узких экранах меню пользователя остаётся у правого края строки */
    #userlogin {
        justify-content: flex-end;
    }

    /* На телефонах все разделы образуют один последовательный поток */
    #footer .quick-tickets-footer__columns {
        grid-template-areas:
            'about'
            'users'
            'organisations';
        grid-template-columns: minmax(0, 1fr);
        gap: 22px;
    }

    #footer .quick-tickets-footer__user-groups {
        grid-template-columns: minmax(0, 1fr);
        gap: 18px;
    }

    #organisation .organisation-contact__map {
        height: 260px;
    }
}

@media (max-width: 440px) {
    /* При нехватке места символы образуют первый ряд, а заголовок занимает второй */
    .regional-subdomain-title {
        display: flex;
        flex-wrap: wrap;
        align-items: center;
        justify-content: center;
        column-gap: 20px;
        row-gap: 8px;
    }

    .regional-subdomain-title__text {
        order: 3;
        flex: 0 0 100%;
    }

    .regional-subdomain-title__symbol {
        flex: 0 0 auto;
    }

    .regional-subdomain-title__symbol--flag {
        order: 1;
        flex-basis: 3.75em;
    }

    .regional-subdomain-title__symbol--emblem {
        order: 2;
        flex-basis: 2.5em;
    }
}

/* Билеты прокручиваются только на узком экране без изменения печатного формата */
@media screen and (max-width: 767.999px) {
    .tickets-container,
    .short-tickets-container {
        max-width: 100%;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
}
