/* ==========================================================================
   v10.css — UI/UX correction layer (loaded last, overrides v9.css)
   Only fixes: layout robustness, readability, accessibility, touch targets.
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Header: primary CTA must never wrap or collapse
   -------------------------------------------------------------------------- */
.fc-header-inner {
  flex-wrap: nowrap;
}

.fc-header-actions {
  flex: 0 0 auto;
  flex-wrap: nowrap;
}

.fc-btn-white,
.fc-btn-gold,
.fc-btn-glass {
  white-space: nowrap;
  flex: 0 0 auto;
  line-height: 1.2;
}

.fc-btn-white > span,
.fc-btn-gold > span {
  white-space: nowrap;
}

.fc-btn-arrow-circle {
  flex: 0 0 auto;
}

/* Nav is the flexible part — it may shrink, the brand and CTA may not */
.fc-header-inner > .fc-nav,
.fc-header-inner > nav {
  min-width: 0;
  flex: 0 1 auto;
}

.fc-brand-group {
  flex: 0 0 auto;
  min-width: 0;
}

/* --------------------------------------------------------------------------
   2. Header density tiers — the header must fit at every desktop width.
      Bug in v9: the a11y font floor raised nav links to 16.5px, so
      brand + nav + CTA no longer fit 1440px: the "Купить билет" label
      wrapped onto two lines and the nav overlapped the RU switcher.
      Measured natural widths per tier drive the breakpoints below.
   -------------------------------------------------------------------------- */
@media (min-width: 1170px) {
  .facecards-canvas .fc-header-inner { gap: 16px; }
  .facecards-canvas .fc-header-actions { gap: 10px; }

  .facecards-canvas .fc-nav-pill { padding: 4px 5px; }
  .facecards-canvas .fc-nav-item { font-size: 15px !important; padding: 8px 12px; }

  .facecards-canvas .fc-header .brand-title { letter-spacing: 0.07em; }
  .facecards-canvas .fc-header .brand-subtitle {
    letter-spacing: 0.08em;
    font-size: 11px !important;
    white-space: nowrap;
  }

  .facecards-canvas .fc-header .fc-btn-white,
  .facecards-canvas .fc-header .fc-btn-gold {
    font-size: 15px !important;
    padding: 5px 5px 5px 16px;
  }
  .facecards-canvas .fc-header .fc-btn-arrow-circle { width: 30px; height: 30px; }
  .facecards-canvas .fc-lang-trigger { min-width: 58px; }
}

/* Tier B — under 1480px: drop the descriptor line under the wordmark */
@media (min-width: 1170px) and (max-width: 1499px) {
  .facecards-canvas .fc-header .brand-subtitle { display: none; }
}

/* Tier C — under 1440px: tighter nav pill */
@media (min-width: 1170px) and (max-width: 1459px) {
  .facecards-canvas .fc-nav-item { font-size: 14px !important; padding: 8px 8px; }
  .facecards-canvas .fc-header-inner { gap: 12px; }
}

/* Tier D — under 1350px: wordmark collapses to the crest only */
@media (min-width: 1170px) and (max-width: 1369px) {
  .facecards-canvas .fc-header .logo-text-group { display: none; }
  .facecards-canvas .fc-nav-item { font-size: 13.5px !important; padding: 8px 7px; }
}

/* Below 1170px the pill can no longer hold 7 links — use the drawer.
   (v9 switched only at 1100px, leaving a broken band at 1101…1330px.) */
@media (max-width: 1169px) {
  .facecards-canvas .fc-nav-pill { display: none !important; }
  .facecards-canvas .fc-mobile-toggle { display: flex !important; }
}

/* --------------------------------------------------------------------------
   3. Клоун-помощник: не перехватывает клики и его можно скрыть
      Было: контейнер 216×279 с pointer-events:auto висел поверх ссылок
      («Фотогалерея», «Схема зала», карточки, иконки соцсетей в подвале).
   -------------------------------------------------------------------------- */
.circus-assistant { pointer-events: none; }

.circus-assistant::before,
.circus-assistant::after { pointer-events: none; }

.assistant-figure-button,
.assistant-dialog { pointer-events: auto; }

/* Пузырь — декоративная подсказка: он не должен перехватывать клики по
   ссылкам под собой. Кликабельна только кнопка «скрыть». */
.assistant-bubble,
.assistant-bubble.is-speaking { pointer-events: none; }
.assistant-bubble-dismiss { pointer-events: auto; }

.circus-assistant.is-dismissed { display: none !important; }

.assistant-bubble { padding-right: 30px; }

.assistant-bubble-dismiss {
  position: absolute;
  top: 6px;
  right: 6px;
  width: 24px;
  height: 24px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: rgba(243, 229, 171, 0.75);
  font-size: 17px;
  line-height: 1;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease;
}

.assistant-bubble-dismiss:hover,
.assistant-bubble-dismiss:focus-visible {
  background: rgba(243, 229, 171, 0.16);
  color: #FFF4D0;
}

.assistant-quick-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 12px 0 4px;
}

.assistant-quick-links a {
  padding: 7px 13px;
  border: 1px solid rgba(243, 229, 171, 0.38);
  border-radius: 9999px;
  color: var(--gold-champagne, #E2C27D);
  font-size: 13.5px;
  font-weight: 600;
  text-decoration: none;
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.assistant-quick-links a:hover,
.assistant-quick-links a:focus-visible {
  background: rgba(226, 194, 125, 0.16);
  border-color: rgba(243, 229, 171, 0.75);
  color: #FFF4D0;
}

.assistant-dialog-note a { color: var(--gold-champagne, #E2C27D); }

/* На узких экранах маскот 160×218 закрывал кнопки героя и календарь —
   сворачиваем его в компактную круглую кнопку 56×56 в углу. */
@media (max-width: 700px) {
  .circus-assistant {
    right: 12px;
    bottom: 12px;
    width: 56px;
    height: 56px;
  }

  .circus-assistant::before,
  .circus-assistant::after { display: none; }

  .assistant-figure-button {
    right: 0;
    bottom: 0;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    border: 1px solid rgba(243, 229, 171, 0.55);
    background: rgba(6, 30, 24, 0.94);
    box-shadow: 0 10px 26px -8px rgba(0, 0, 0, 0.8);
    overflow: hidden;
  }

  .assistant-figure {
    object-position: center 18%;
    transform: scale(2.1);
    animation: none;
    filter: none;
  }

  .assistant-figure-button:hover .assistant-figure,
  .assistant-figure-button:focus-visible .assistant-figure {
    transform: scale(2.1);
    filter: none;
  }

  .assistant-figure-halo,
  .assistant-sparkles,
  .assistant-presence,
  .assistant-bubble { display: none !important; }
}

/* --------------------------------------------------------------------------
   4. Тост подтверждения для форм
      Было: showToast() искал #toastNotification, которого нет ни на одной
      странице — формы «Отправить» очищались молча, без подтверждения.
   -------------------------------------------------------------------------- */
.v10-toast {
  position: fixed;
  left: 50%;
  bottom: 34px;
  transform: translate(-50%, 26px);
  z-index: 10000;
  max-width: min(560px, calc(100vw - 32px));
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 26px;
  border-radius: 9999px;
  background: rgba(6, 30, 24, 0.96);
  border: 1px solid rgba(52, 211, 153, 0.55);
  color: #EAF3EE;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.35;
  box-shadow: 0 22px 50px -18px rgba(0, 0, 0, 0.9);
  backdrop-filter: blur(22px);
  -webkit-backdrop-filter: blur(22px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease, transform 0.45s cubic-bezier(0.16, 1, 0.3, 1);
}

.v10-toast.is-visible { opacity: 1; transform: translate(-50%, 0); }

.v10-toast-mark {
  flex: 0 0 auto;
  width: 22px;
  height: 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(52, 211, 153, 0.2);
  color: #6EE7B7;
}

@media (prefers-reduced-motion: reduce) {
  .v10-toast { transition: opacity 0.2s ease; }
}

/* --------------------------------------------------------------------------
   5. Цифры на фото здания: подложка была почти прозрачной справа
      (gradient до alpha .14 + blur 4px) — на светлых колоннах получалось
      серое пятно и нечитаемый серый текст «1668 МЕСТ / НА ГЛАВНОМ МАНЕЖЕ».
   -------------------------------------------------------------------------- */
.facecards-canvas .about-stat {
  background: linear-gradient(90deg, rgba(2, 23, 19, 0.94) 0%, rgba(2, 23, 19, 0.86) 55%, rgba(2, 23, 19, 0.58) 100%);
  backdrop-filter: blur(10px) saturate(120%);
  -webkit-backdrop-filter: blur(10px) saturate(120%);
  border-radius: 2px;
  box-shadow: 0 10px 28px -14px rgba(0, 0, 0, 0.75);
}

.facecards-canvas .about-stat > span {
  color: rgba(233, 244, 238, 0.88);
}

.facecards-canvas .about-stat small {
  color: rgba(243, 229, 171, 0.92);
}

/* --------------------------------------------------------------------------
   6. Тач-цели: минимум 40×40 у стрелок календаря и «дышащие» ссылки
      в подвале на мобильных (было 20–27 px по высоте).
   -------------------------------------------------------------------------- */
.facecards-canvas .fc-tablet-arrow-btn {
  min-width: 40px;
  min-height: 40px;
  border-radius: 50%;
  padding: 8px;
}

.facecards-canvas .fc-tablet-arrow-btn:focus-visible {
  outline: 2px solid rgba(226, 194, 125, 0.9);
  outline-offset: 2px;
}

@media (max-width: 640px) {
  .facecards-canvas .footer-nav-list { gap: 2px !important; }
  .facecards-canvas .footer-nav-list a,
  .facecards-canvas .site-footer .gov-link,
  .facecards-canvas .site-footer .footer-contacts-link,
  .facecards-canvas .site-footer .contact-phone,
  .facecards-canvas .footer-legal-links a {
    display: inline-flex;
    align-items: center;
    min-height: 40px;
  }
}

/* --------------------------------------------------------------------------
   7. Видимый фокус с клавиатуры — единый по всему сайту
   -------------------------------------------------------------------------- */
.facecards-canvas a:focus-visible,
.facecards-canvas button:focus-visible,
.facecards-canvas summary:focus-visible,
.facecards-canvas [tabindex]:focus-visible,
.facecards-canvas input:focus-visible,
.facecards-canvas textarea:focus-visible,
.facecards-canvas select:focus-visible {
  outline: 2px solid #E2C27D;
  outline-offset: 3px;
  border-radius: 6px;
}

/* --------------------------------------------------------------------------
   8. Десктопный маскот был 168×312 и наезжал на цены и ссылки в правой
      колонке. Ужимаем до угловой фигуры и делаем чуть прозрачнее.
   -------------------------------------------------------------------------- */
@media (min-width: 701px) {
  .circus-assistant {
    width: clamp(128px, 9.5vw, 148px);
    height: clamp(184px, 21vh, 226px);
    opacity: 0.92;
    transition: opacity 0.25s ease;
  }

  .circus-assistant:hover { opacity: 1; }

  .assistant-figure-button {
    width: clamp(96px, 7.2vw, 116px);
    height: clamp(176px, 20vh, 216px);
  }

  .assistant-bubble {
    right: clamp(52px, 5.4vw, 74px);
    bottom: clamp(140px, 17vh, 184px);
  }
}

/* --------------------------------------------------------------------------
   9. Контраст: подпись под чатом помощника давала 4.05:1 при норме 4.5:1
   -------------------------------------------------------------------------- */
.assistant-dialog-note {
  color: rgba(216, 229, 221, 0.78);
}

/* --------------------------------------------------------------------------
   10. Маскот не должен висеть поверх модальных окон (был z-index 1200
       против 1000 у .modal-overlay и всплывал над схемой зала).
   -------------------------------------------------------------------------- */
body:has(.modal-overlay.active) .circus-assistant,
body:has(.fc-mobile-drawer.is-open) .circus-assistant {
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
}

/* --------------------------------------------------------------------------
   11. Государственный флаг в подвале: было border-radius 16px на плашке
       46×23 — флаг превращался в «таблетку» со срезанными углами, плюс
       object-fit: cover обрезал орнамент у древка. Флаг — прямоугольник.
   -------------------------------------------------------------------------- */
.facecards-canvas .state-symbol-flag,
.state-symbol-flag {
  width: 46px;
  height: 23px;
  object-fit: fill;
  border-radius: 3px;
  border: 1px solid rgba(212, 175, 55, 0.45);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.45);
}

/* Герб и флаг стоят в одном ряду — выравниваем по оптическому центру */
.facecards-canvas .state-symbols-group {
  align-items: center;
}

/* --------------------------------------------------------------------------
   12. Блок «О цирке» на главной: плитка 04 теперь несёт дату первого
       представления вместо количества манежей — тексту нужно больше места,
       но плитка не должна наезжать на здание.
   -------------------------------------------------------------------------- */
.facecards-canvas .about-stat-arenas {
  max-width: 260px;
  right: 11%;
  grid-template-columns: 1fr;
}

.facecards-canvas .about-stat-arenas > span {
  grid-column: 1 / -1;
  align-self: start;
  padding-top: 6px;
}

@media (max-width: 900px) {
  .facecards-canvas .about-stat-arenas { right: 4%; }
}

.facecards-canvas .about-stat-arenas > span {
  text-transform: none;
  letter-spacing: 0.01em;
  line-height: 1.3;
}

/* --------------------------------------------------------------------------
   13. Круглые кнопки закрытия: крестик стоит ровно по центру круга.
       Было: у .assistant-dialog-close вообще не было центрирования, а
       текстовые глифы «×» и «✕» сидят на математической оси шрифта и
       визуально уезжают вверх. Заменены на SVG + жёсткое центрирование.
   -------------------------------------------------------------------------- */
.facecards-canvas .modal-close-btn,
.facecards-canvas .fc-mobile-close,
.assistant-dialog-close,
.assistant-bubble-dismiss,
.v9-lb-btn,
.v9-lb-close {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 0;
  line-height: 0;
  text-align: center;
  box-sizing: border-box;
  flex: 0 0 auto;
}

.facecards-canvas .modal-close-btn > svg,
.facecards-canvas .fc-mobile-close > svg,
.assistant-dialog-close > svg,
.assistant-bubble-dismiss > svg,
.v9-lb-btn > svg {
  display: block;
  flex: 0 0 auto;
}

/* Кнопка в баббле помощника — своя геометрия, но тот же принцип */
.assistant-bubble-dismiss {
  width: 26px;
  height: 26px;
}

/* --------------------------------------------------------------------------
   14. «Перед представлением»: вкладки способа проезда получили иконки,
       подписи и внятное активное состояние — раньше это были две
       текстовые плашки без визуальной подсказки, что это переключатель.
   -------------------------------------------------------------------------- */
.facecards-canvas .location-tabs {
  gap: 6px;
  padding: 6px;
  /* Скругление такое же, как у рамки .location-guide (24px), а у самих
     вкладок — концентрическое к нему: 24 − 6 padding = 18px. */
  border-radius: 24px;
}

/* v9.css делает все .facecards-canvas button таблетками через !important —
   здесь это ломает концентричность, поэтому перебиваем явно. */
.facecards-canvas .location-tab {
  border-radius: 18px !important;
}

.facecards-canvas .location-tab {
  justify-content: flex-start;
  align-items: center;
  gap: 11px;
  min-height: 62px;
  padding: 11px 12px;
  text-align: left;
}

.facecards-canvas .location-tab-icon {
  flex: 0 0 auto;
  width: 38px;
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  background: rgba(243, 229, 171, 0.07);
  border: 1px solid rgba(243, 229, 171, 0.16);
  color: rgba(243, 229, 171, 0.72);
  transition: background 0.25s ease, border-color 0.25s ease, color 0.25s ease;
}

.facecards-canvas .location-tab-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.facecards-canvas .location-tab-text strong {
  font-size: 14px;
  font-weight: 700;
  line-height: 1.2;
  color: inherit;
}

.facecards-canvas .location-tab-text small {
  font-size: 12px !important;
  font-weight: 500;
  line-height: 1.25;
  color: rgba(200, 216, 208, 0.62);
  letter-spacing: 0.01em;
}

.facecards-canvas .location-tab:hover .location-tab-icon {
  background: rgba(243, 229, 171, 0.12);
  border-color: rgba(243, 229, 171, 0.3);
  color: #FFF4D0;
}

.facecards-canvas .location-tab.active .location-tab-icon {
  background: linear-gradient(135deg, #FFF4D0 0%, #E2C27D 55%, #D4AF37 100%);
  border-color: rgba(255, 244, 208, 0.75);
  color: #06231C;
  box-shadow: 0 4px 14px -4px rgba(212, 175, 55, 0.6);
}

.facecards-canvas .location-tab.active .location-tab-text small {
  color: rgba(255, 244, 208, 0.75);
}

/* На узких экранах — иконка над подписью, чтобы не резать текст */
@media (max-width: 560px) {
  .facecards-canvas .location-tabs { grid-template-columns: 1fr; }
  .facecards-canvas .location-tab { min-height: 58px; }
}

/* --------------------------------------------------------------------------
   15. Сноска о персональных данных под формами
   -------------------------------------------------------------------------- */
.v10-form-consent {
  grid-column: 1 / -1;
  margin: 2px 0 0;
  color: rgba(200, 216, 208, 0.7);
  font-family: var(--font-ui, inherit);
  font-size: 13px;
  line-height: 1.5;
}

.v10-form-consent a {
  color: var(--gold-champagne, #E2C27D);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.v10-form-consent a:hover,
.v10-form-consent a:focus-visible { color: #FFF4D0; }

/* Сноска в диалоге помощника: те же боковые отступы, что и у
   .assistant-dialog-note, и выравнивание по центру. */
.v10-form-consent--compact {
  margin: 12px 20px 0;
  font-size: 12.5px;
  line-height: 1.45;
  text-align: center;
  text-wrap: balance;
}

.assistant-dialog-note {
  text-align: center;
  text-wrap: balance;
}

/* --------------------------------------------------------------------------
   16. Баннер о файлах cookie
   -------------------------------------------------------------------------- */
.v10-cookie {
  position: fixed;
  left: 50%;
  bottom: 20px;
  transform: translate(-50%, 28px);
  z-index: 1300;
  width: min(880px, calc(100vw - 32px));
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 18px 20px;
  border-radius: 20px;
  background: rgba(6, 30, 24, 0.97);
  border: 1px solid rgba(212, 175, 55, 0.45);
  box-shadow: 0 26px 60px -20px rgba(0, 0, 0, 0.9);
  backdrop-filter: blur(22px);
  -webkit-backdrop-filter: blur(22px);
  color: #EAF3EE;
  opacity: 0;
  transition: opacity 0.3s ease, transform 0.45s cubic-bezier(0.16, 1, 0.3, 1);
}

.v10-cookie.is-visible { opacity: 1; transform: translate(-50%, 0); }

.v10-cookie-icon {
  flex: 0 0 auto;
  width: 44px;
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(243, 229, 171, 0.1);
  border: 1px solid rgba(243, 229, 171, 0.28);
  color: var(--gold-champagne, #E2C27D);
}

.v10-cookie-text { flex: 1 1 auto; min-width: 0; }

.v10-cookie-text strong {
  display: block;
  margin-bottom: 4px;
  font-size: 15.5px;
  font-weight: 700;
  color: #FFF4D0;
}

.v10-cookie-text p {
  margin: 0;
  font-size: 13.5px;
  line-height: 1.5;
  color: rgba(214, 228, 221, 0.86);
}

.v10-cookie-text a {
  color: var(--gold-champagne, #E2C27D);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.v10-cookie-actions {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  gap: 10px;
}

.v10-cookie-btn {
  white-space: nowrap;
  padding: 11px 18px;
  border-radius: 9999px;
  font-family: var(--font-ui, inherit);
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.v10-cookie-btn--primary {
  border: 1px solid rgba(255, 244, 208, 0.6);
  background: linear-gradient(135deg, #FFF4D0 0%, #E2C27D 40%, #D4AF37 100%);
  color: #06231C;
}

.v10-cookie-btn--primary:hover { filter: brightness(1.06); transform: translateY(-1px); }

.v10-cookie-btn--ghost {
  border: 1px solid rgba(243, 229, 171, 0.35);
  background: transparent;
  color: #E9F3EE;
}

.v10-cookie-btn--ghost:hover {
  border-color: rgba(243, 229, 171, 0.7);
  background: rgba(243, 229, 171, 0.1);
}

/* Пока висит баннер, маскот и тост не должны с ним спорить */
body.v10-cookie-open .circus-assistant { opacity: 0; pointer-events: none; }
body.v10-cookie-open .v10-toast { bottom: 128px; }

@media (max-width: 760px) {
  .v10-cookie {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
    bottom: 12px;
    padding: 16px;
  }
  .v10-cookie-icon { display: none; }
  .v10-cookie-actions { flex-direction: column-reverse; }
  .v10-cookie-btn { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  .v10-cookie { transition: opacity 0.2s ease; }
}

/* ==========================================================
   Руководство цирка — 5 персоналий: центрируем неполный ряд
   ========================================================== */
#management .artists-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
}

#management .artists-grid .artist-card {
  flex: 1 1 320px;
  max-width: 360px;
}

/* --------------------------------------------------------------------------
   Мобильные плитки статистики над зданием: подпись стояла во второй колонке
   рядом с крупным числом и не помещалась — «посещений ежегодно», «в коллективе»,
   «на главном манеже» вылезали за пределы плашки и обрезались краем экрана.
   Складываем плитку в одну колонку, как уже сделано для about-stat-arenas.
   -------------------------------------------------------------------------- */
@media (max-width: 700px) {
  .facecards-canvas .about-stat {
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: auto;
  }

  .facecards-canvas .about-stat > span {
    grid-column: 1 / -1;
    align-self: start;
    min-width: 0;
    padding-top: 5px;
    padding-bottom: 0;
    overflow-wrap: anywhere;
  }
}

/* --------------------------------------------------------------------------
   Крупные дисплейные заголовки на мобильных: минимум в clamp() был выставлен
   под десктоп (50–58 px), и длинные слова не помещались в 375 px —
   «Предвкушение чуда» выходило за правый край экрана на 39 px,
   «Больше, чем цирк» обрезалось внутри своего блока.
   -------------------------------------------------------------------------- */
@media (max-width: 700px) {
  .facecards-canvas .location-heading h2 {
    font-size: clamp(30px, 11vw, 44px);
    overflow-wrap: break-word;
  }

  .facecards-canvas .about-architecture-copy h2 {
    font-size: clamp(30px, 11vw, 46px);
    overflow-wrap: break-word;
  }

  /* декоративный сдвиг курсивной строки вправо на узком экране
     добавлял ровно те 12–18 px, из-за которых «чем цирк» обрезалось */
  .facecards-canvas .about-architecture-copy h2 span {
    transform: none;
  }
}

/* --------------------------------------------------------------------------
   Длинные русские слова в узких плитках («сопровождение», «монументального»,
   «Независимости», «маломобильными») не помещались в свой контейнер и
   обрезались его краем. break-word срабатывает только тогда, когда слово
   иначе вылезло бы за пределы блока, поэтому обычный текст не меняется.
   -------------------------------------------------------------------------- */
@media (max-width: 700px) {
  .facecards-canvas h1,
  .facecards-canvas h2,
  .facecards-canvas h3,
  .facecards-canvas h4,
  .facecards-canvas h5,
  .facecards-canvas p,
  .facecards-canvas li,
  .facecards-canvas td,
  .facecards-canvas dd,
  .facecards-canvas dt,
  .facecards-canvas figcaption,
  .facecards-canvas .action-tile-note,
  .facecards-canvas .action-tile-label,
  .facecards-canvas .quick-tile-title {
    overflow-wrap: break-word;
  }

  /* Переносы по слогам включаем ТОЛЬКО в узких плитках, где длинное слово
     иначе рвётся посередине («Независимост|и»). В основном тексте переносы
     не включаем — они меняют вид всех абзацев на сайте. */
  .facecards-canvas .action-tile-note,
  .facecards-canvas .action-tile-label,
  .facecards-canvas .quick-tile-title,
  .facecards-canvas .history-years {
    -webkit-hyphens: auto;
    hyphens: auto;
  }
}

/* Заголовки дней фестиваля: 28 px дисплейным шрифтом не оставляли места
   слову «ТОРЖЕСТВЕННОЕ» — строка вылезала из карточки на 105 px. */
@media (max-width: 700px) {
  .facecards-canvas .history-years {
    font-size: 20px;
    overflow-wrap: break-word;
  }
}

/* --------------------------------------------------------------------------
   Мобильное меню: пункты с подменю (.fc-mob-group) нарисованы карточкой,
   а одиночные пункты верхнего уровня («Новости») оставались без фона и рамки
   и выпадали из списка. Приводим их к общему виду.
   -------------------------------------------------------------------------- */
.fc-mob-nav-list > .fc-mob-item:not(.active) {
  background: rgba(255, 255, 255, 0.024);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 14px;
}

/* --------------------------------------------------------------------------
   Ценник внутри кнопки: правило v9 `.btn-primary span { overflow-wrap: anywhere }`
   (нужное для длинных подписей кнопок) ломало и сам ценник — «50 BYN»
   на узком экране разрывалось на «50 BY / N». Цену не переносим никогда.
   -------------------------------------------------------------------------- */
.facecards-canvas .btn-price-pill,
.facecards-canvas .v9-btn .btn-price-pill {
  flex: 0 0 auto;
  white-space: nowrap;
  overflow-wrap: normal;
  word-break: keep-all;
}

/* --------------------------------------------------------------------------
   Тач-цели, часть 2. Правило из блока 6 целилось в `.footer-legal-links a`,
   но такого класса в разметке нет — ссылки «Политика конфиденциальности» и
   «Пользовательское соглашение» так и остались высотой 27 px.
   Телефоны и почта на «Контактах» стоят внутри строк текста, поэтому им
   расширяем зону нажатия вертикальным padding с компенсирующим margin:
   высота строки не меняется, а палец попадает.
   -------------------------------------------------------------------------- */
@media (max-width: 700px) {
  .facecards-canvas .footer-bottom a {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
  }

  .facecards-canvas .contact-card-box a[href^="tel:"],
  .facecards-canvas .contact-card-box a[href^="mailto:"],
  .facecards-canvas .site-footer a[href^="tel:"],
  .facecards-canvas .site-footer a[href^="mailto:"] {
    padding-block: 11px;
    margin-block: -11px;
  }
}

/* --------------------------------------------------------------------------
   Шапка страниц артистов и шоу (.v9-artist-hero) — это grid, а у grid-элемента
   по умолчанию min-width:auto: колонка не может стать уже своего содержимого.
   На 320 px слово «МЕЖДУНАРОДНЫЙ» в 30 px растягивало колонку до 326 px при
   доступных 258 — заголовок и строки «Даты/Площадка» уезжали под обрез.
   `overflow-wrap: break-word` тут не спасает: по спецификации он не уменьшает
   min-content, поэтому нужны min-width:0 и переносы, которые его уменьшают.
   -------------------------------------------------------------------------- */
@media (max-width: 700px) {
  .facecards-canvas .v9-artist-hero,
  .facecards-canvas .v9-artist-hero > * {
    min-width: 0;
  }

  .facecards-canvas .v9-artist-hero h1,
  .facecards-canvas .v9-artist-hero h2 {
    -webkit-hyphens: auto;
    hyphens: auto;
    overflow-wrap: anywhere;
  }
}
