@font-face {
  font-family: Manrope;
  src: url("/assets/Manrope-Medium.ttf") format("truetype");
  font-weight: 500;
  font-display: swap;
}

@font-face {
  font-family: Manrope;
  src: url("/assets/Manrope-ExtraBold.ttf") format("truetype");
  font-weight: 800;
  font-display: swap;
}

.site-header {
  margin: 0;
}

.site-header-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

/* На внутренних страницах поиск — часть одной композиции шапки, а не
   одинокая короткая строка под логотипом. Когда ширины уже не хватает,
   он целиком уходит на второй ряд, без сжатия между брендом и меню. */
.site-header--inner .site-header-top {
  display: grid;
  grid-template-columns: minmax(190px, 1fr) minmax(280px, 420px) auto;
  gap: 24px;
}

.site-header--inner .search-wrap {
  width: 100%;
  margin: 0;
}

.site-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #082b55;
  font-family: Manrope, ui-rounded, system-ui, sans-serif;
  text-decoration: none;
}

.site-brand-mark {
  display: block;
  width: 48px;
  height: 48px;
  flex: 0 0 48px;
  border: 2px solid rgba(255, 255, 255, .9);
  border-radius: 50%;
  box-shadow: 0 10px 24px rgba(2, 117, 218, .28);
  object-fit: cover;
}

.site-brand-text {
  display: flex;
  flex-direction: column;
  gap: 1px;
  line-height: 1.1;
}

.site-brand-name {
  font-size: 21px;
  font-weight: 800;
  letter-spacing: -.04em;
}

.site-brand-tagline {
  color: #93a8ba;
  font-size: 11.5px;
  font-weight: 600;
  font-style: italic;
  letter-spacing: -.01em;
  white-space: nowrap;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 22px;
}

.site-nav a {
  color: #55738f;
  font-family: Manrope, ui-rounded, system-ui, sans-serif;
  font-size: 14px;
  font-weight: 800;
  text-decoration: none;
  transition: color .2s ease;
}

.site-nav .header-telegram {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 36px;
  padding: 7px 12px;
  border-radius: 999px;
  background: #168fe9;
  color: #fff;
  box-shadow: 0 8px 20px rgba(22, 143, 233, .22);
}

.site-nav .header-telegram:hover,
.site-nav .header-telegram:focus-visible {
  color: #fff;
  background: #087dd2;
}

.header-telegram svg {
  width: 17px;
  height: 17px;
  fill: currentColor;
}

.telegram-label-short { display: none; }

.site-nav .header-about {
  position: relative;
  display: inline-grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border: 1px solid rgba(103, 169, 217, .3);
  border-radius: 50%;
  background: rgba(255, 255, 255, .7);
  font-size: 16px;
}

/* На внутренних страницах действия не конкурируют с содержанием:
   Telegram и «О проекте» — две одинаковые спокойные круглые иконки.
   На главной фирменная синяя кнопка Telegram остаётся без изменений. */
.site-header--inner .site-nav .header-telegram,
.site-header--inner .site-nav .header-about {
  width: 32px;
  height: 32px;
  min-height: 0;
  padding: 0;
  border: 0;
  background: rgba(255, 255, 255, .7);
  color: #55738f;
  box-shadow: none;
}

.site-header--inner .header-telegram {
  position: relative;
  justify-content: center;
}

.site-header--inner .header-telegram .telegram-label-full,
.site-header--inner .header-telegram .telegram-label-short {
  display: none;
}

.site-header--inner .site-nav .header-telegram:hover,
.site-header--inner .site-nav .header-telegram:focus-visible,
.site-header--inner .site-nav .header-about:hover,
.site-header--inner .site-nav .header-about:focus-visible {
  background: rgba(255, 255, 255, .92);
  color: #0785e7;
}

.site-nav a:hover,
.site-nav a[aria-current="page"] {
  color: #0785e7;
}

.site-brand:focus-visible,
.site-nav a:focus-visible {
  outline: 3px solid rgba(10, 139, 237, .45);
  outline-offset: 3px;
  border-radius: 8px;
}

/* Переключатель языка — кнопка всегда с флагом Британии (это иконка
   выбора языка, а не индикатор текущего), открывает список всех 13
   языков со своими флагами. Общий для всех страниц. */
.lang-switch { position: relative; }

.lang-button {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 12px;
  border: 1px solid rgba(103, 169, 217, .3);
  border-radius: 999px;
  background: rgba(255, 255, 255, .78);
  color: #113a63;
  font: 800 13px/1 Manrope, sans-serif;
  cursor: pointer;
  transition: border-color .2s ease, transform .2s ease;
}

.lang-button:hover { border-color: rgba(10, 139, 237, .5); }
.lang-button .flag { font-size: 16px; }
.lang-button .chev { font-size: 10px; opacity: .6; }

.lang-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  z-index: 40;
  display: none;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 4px;
  width: 260px;
  padding: 10px;
  border: 1px solid rgba(103, 169, 217, .22);
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 20px 50px rgba(11, 55, 97, .22);
}

.lang-menu[data-open] { display: grid; }

.lang-option {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 9px;
  border: 0;
  border-radius: 11px;
  background: none;
  color: #113a63;
  font: 700 13px/1.1 Manrope, sans-serif;
  text-align: left;
  cursor: pointer;
  transition: background .15s ease;
}

.lang-option:hover,
.lang-option[aria-current="true"] { background: #e7f5ff; }
.lang-option .flag { font-size: 15px; }

/* Поиск страны — под логотипом, слева, на каждой странице сайта. */
.search-wrap {
  position: relative;
  width: min(420px, 100%);
  margin: 18px 0 0;
}

.search-input {
  width: 100%;
  height: 48px;
  padding: 0 20px;
  border: 1px solid rgba(103, 169, 217, .3);
  border-radius: 999px;
  outline: 0;
  color: #103a62;
  background: rgba(255, 255, 255, .92);
  box-shadow: 0 10px 26px rgba(17, 112, 184, .1);
  font: 800 14px/1 Manrope, sans-serif;
  text-align: left;
  transition: border-color .2s ease, box-shadow .2s ease;
}

.search-input::placeholder {
  color: rgba(16, 58, 98, .38);
  font-weight: 600;
}

.search-input:focus {
  border-color: #168fe9;
  box-shadow: 0 0 0 5px rgba(22, 143, 233, .14);
}

.search-results {
  position: absolute;
  top: calc(100% + 10px);
  left: 0;
  right: 0;
  z-index: 30;
  overflow: hidden auto;
  max-height: 340px;
  display: none;
  border: 1px solid rgba(103, 169, 217, .22);
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 24px 60px rgba(4, 40, 80, .22);
  text-align: left;
}

.search-results[data-open] { display: block; }

.search-result {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 12px 16px;
  border: 0;
  background: none;
  color: #113a63;
  font: 700 14px/1.1 Manrope, sans-serif;
  text-align: left;
  cursor: pointer;
  transition: background .15s ease;
}

.search-result:hover,
.search-result[data-active] { background: #eef7ff; }
.search-result .flag { font-size: 19px; }
.search-result-empty {
  padding: 14px 16px;
  color: #7f95a9;
  font-size: 13px;
}

/* Shared Telegram subscription search above every footer. */
.telegram-alert-cta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px 28px;
  margin: 0 0 18px;
  padding: 22px 24px;
  border: 1px solid rgba(83, 163, 223, .18);
  border-radius: 24px;
  background:
    radial-gradient(circle at 95% 5%, rgba(111, 202, 255, .26), transparent 38%),
    rgba(255, 255, 255, .8);
  box-shadow: 0 13px 38px rgba(25, 106, 166, .1);
  backdrop-filter: blur(15px);
}

.telegram-alert-cta .feedback-copy {
  flex: 1 1 280px;
  min-width: 0;
}

.telegram-alert-cta h3 {
  margin: 0 0 5px;
  overflow-wrap: break-word;
  color: #0b3761;
  font-size: clamp(21px, 2.3vw, 28px);
  font-weight: 800;
  letter-spacing: -.045em;
  line-height: 1.1;
}

.telegram-alert-cta .feedback-copy p {
  max-width: 430px;
  margin: 0;
  color: #6d879e;
  font-size: 14px;
  line-height: 1.4;
}

.telegram-alert-form {
  position: relative;
  display: grid;
  flex: 1 1 470px;
  grid-template-columns: minmax(220px, 1fr) auto;
  gap: 10px;
  min-width: 0;
}

.telegram-alert-field { position: relative; min-width: 0; }

.telegram-alert-input {
  width: 100%;
  height: 50px;
  padding: 0 16px;
  border: 1px solid #c9e1f2;
  border-radius: 15px;
  outline: 0;
  color: #103a62;
  background: #fff;
  font: 700 15px/1 Manrope, sans-serif;
  transition: border-color .2s ease, box-shadow .2s ease;
}

.telegram-alert-input::placeholder { color: #8da4b7; font-weight: 500; }
.telegram-alert-input:focus {
  border-color: #168fe9;
  box-shadow: 0 0 0 4px rgba(22, 143, 233, .12);
}

.telegram-alert-submit {
  display: inline-flex;
  min-height: 50px;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 0 22px;
  border: 0;
  border-radius: 15px;
  color: #fff;
  background: #087fe1;
  box-shadow: 0 12px 24px rgba(4, 113, 211, .2);
  font: 800 14px/1 Manrope, sans-serif;
  white-space: nowrap;
  cursor: pointer;
  transition: background .2s ease, transform .2s ease;
}

.telegram-alert-submit svg { width: 20px; height: 20px; fill: currentColor; }
.telegram-alert-submit:hover { background: #006fce; transform: translateY(-2px); }

.airport-result-copy { min-width: 0; text-align: left; }
.airport-result-copy small {
  display: block;
  margin-top: 2px;
  overflow: hidden;
  color: #7790a5;
  font-size: 11px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

@media (max-width: 780px) {
  .site-header--inner .site-header-top {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 21px 20px;
  }

  .site-header--inner .search-wrap {
    grid-column: 1 / -1;
    grid-row: 2;
  }
}

@media (max-width: 560px) {
  .site-header-top {
    align-items: center;
    flex-wrap: nowrap;
    gap: 8px;
  }

  .site-nav {
    width: auto;
    flex: 0 0 auto;
    gap: 10px;
    margin-left: auto;
    padding-top: 0;
    border-top: 0;
  }

  .site-header--inner .site-nav {
    width: auto;
    padding-top: 0;
    border-top: 0;
  }

  .site-header--inner .site-header-top { row-gap: 16px; }
  .site-header--inner .search-wrap { margin-top: 0; }

  .site-brand { min-width: 0; gap: 8px; }
  .site-brand-text { min-width: 0; }
  .site-brand-name { font-size: 18px; white-space: nowrap; }
  .site-brand-tagline { display: none; }
  .site-nav a { font-size: 12px; white-space: nowrap; }
  .site-nav .header-telegram { min-height: 34px; padding: 7px 10px; }
  .site-nav .header-about { width: 30px; height: 30px; font-size: 15px; }
  .site-header--inner .site-nav .header-telegram,
  .site-header--inner .site-nav .header-about { width: 30px; height: 30px; min-height: 0; padding: 0; }

  .site-brand-mark {
    width: 40px;
    height: 40px;
    flex-basis: 40px;
  }

  .lang-button { padding: 7px 9px; }
  .lang-button span:not(.flag):not(.chev) { display: none; }

  .telegram-alert-form { grid-template-columns: 1fr; }
  .telegram-alert-submit { width: 100%; }
}

@media (max-width: 440px) {
  .header-telegram .telegram-label-full { display: none; }
  .header-telegram .telegram-label-short { display: inline; }
}

@media (max-width: 300px) {
  .site-brand-text { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  .site-nav a { transition: none; }
}

/* Сетка карточек региона — общая для главной и страниц стран, чтобы
   вид карточек не расходился между ними. */
.region-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.region-card {
  display: grid;
  grid-template-columns: 82px minmax(0, 1fr) 34px;
  align-items: center;
  gap: 16px;
  min-height: 116px;
  padding: 16px;
  overflow: hidden;
  border: 1px solid rgba(103, 169, 217, .18);
  border-radius: 24px;
  color: #113a63;
  background: rgba(255, 255, 255, .78);
  box-shadow: 0 10px 35px rgba(25, 106, 166, .09);
  text-decoration: none;
  backdrop-filter: blur(15px);
  transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
}

.region-card:hover {
  z-index: 1;
  border-color: rgba(10, 139, 237, .42);
  transform: translateY(-4px);
  box-shadow: 0 18px 40px rgba(17, 112, 184, .17);
}

.region-card:focus-visible {
  outline: 3px solid rgba(10, 139, 237, .45);
  outline-offset: 3px;
}

.region-card img {
  display: block;
  width: 82px;
  height: 82px;
  border-radius: 50%;
  box-shadow: 0 8px 18px rgba(9, 105, 184, .2);
  object-fit: cover;
  transition: transform .25s ease;
}

.region-card:hover img { transform: rotate(-2deg) scale(1.04); }

.region-name {
  display: block;
  margin: 0;
  overflow: hidden;
  font-size: 18px;
  font-weight: 800;
  letter-spacing: -.025em;
  line-height: 1.2;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.region-card--seo .region-name {
  display: -webkit-box;
  overflow: hidden;
  white-space: normal;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 4;
}

.region-detail {
  display: block;
  margin-top: 6px;
  overflow: hidden;
  color: #718ba3;
  font-size: 13px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.arrow {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 50%;
  color: #0a83e4;
  background: #e7f5ff;
  font-size: 20px;
  transition: color .2s ease, background .2s ease, transform .2s ease;
}

.region-card:hover .arrow {
  color: #fff;
  background: #0a83e4;
  transform: translateX(2px);
}

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

@media (max-width: 620px) {
  .region-grid { grid-template-columns: 1fr; gap: 10px; }

  .region-card {
    grid-template-columns: 72px minmax(0, 1fr) 32px;
    min-height: 100px;
    padding: 13px;
    border-radius: 21px;
  }

  .region-card img { width: 72px; height: 72px; }
}

/* --- Подшапка страницы региона (layout.py::region_hero) ---------------
   Одна полоса: значок с флагом, название, факты (билеты / минимальная
   цена / когда обновлялось). Живёт здесь, а не инлайном на странице —
   страниц регионов больше пятисот, дублировать в каждую нет смысла. */
.hero-bar {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 10px 14px;
  margin-bottom: 10px;
  padding: 8px 14px;
  border: 1px solid rgba(103, 169, 217, .18);
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 10px 30px rgba(25, 106, 166, .10);
}

.hero-icon {
  display: block;
  flex: 0 0 auto;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  object-fit: cover;
}

.hero-back {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  width: 28px;
  height: 38px;
  color: #8ea4b6;
  text-decoration: none;
  transition: color .2s ease, transform .2s ease;
}

.hero-back svg { display: block; width: 25px; height: 25px; }

.hero-back:hover { color: #0785e7; transform: translateX(-2px); }

.hero-back:focus-visible {
  outline: 3px solid rgba(10, 139, 237, .35);
  outline-offset: 2px;
  border-radius: 8px;
}

.hero-globe {
  display: grid;
  place-items: center;
  padding: 7px;
  border: 1px solid rgba(103, 169, 217, .22);
  background: #f1f5f8;
  color: #94a7b7;
}

.hero-globe svg { display: block; width: 100%; height: 100%; }

.subregion-intro {
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 0 0 14px 20px;
  color: #6d879e;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.45;
}

.subregion-intro-arrow {
  width: 17px;
  height: 17px;
  flex: 0 0 auto;
  color: #8ea4b6;
}

.hero-name {
  flex: 1 1 auto;
  min-width: 0;
  margin: 0;
  overflow: hidden;
  font-size: 21px;
  font-weight: 800;
  letter-spacing: -.02em;
  white-space: nowrap;
  text-overflow: ellipsis;
}

/* nowrap: полоса не должна переноситься на вторую строку. Если места
   мало — сперва значки заменяют слова (медиазапрос ниже), а в самом
   крайнем случае обрезается название региона (ellipsis выше). */
.hero-stat {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 10px;
  flex: 0 0 auto;
  margin-left: auto;
}

.stat-item {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  white-space: nowrap;
  border-radius: 6px;
}

.stat-item:focus-visible { outline: 2px solid #0275da; outline-offset: 3px; }

.stat-item .icon { display: none; width: 19px; height: 19px; color: #93a7b8; }
.stat-item .icon svg { display: block; width: 100%; height: 100%; }

.stat-item .num {
  font-variant-numeric: tabular-nums;
  font-size: 20px;
  font-weight: 800;
  color: #0275da;
  line-height: 1;
}

.stat-item .txt { font-size: 12px; font-weight: 800; color: #93a7b8; }
.stat-dot { color: rgba(103, 169, 217, .4); font-size: 14px; line-height: 1; }

/* Слово-подпись уступает место значку заранее, с запасом: если ждать
   до последнего, строка успевает разъехаться на две. */
@media (max-width: 760px) {
  .stat-item .txt { display: none; }
  .stat-item .icon { display: block; width: 16px; height: 16px; }
  .hero-stat { gap: 6px; }
  .stat-item { gap: 3px; }
  .stat-item .num { font-size: 18px; }
  .stat-dot { font-size: 12px; }
}

@media (max-width: 480px) {
  .hero-bar {
    display: grid;
    grid-template-columns: 28px 38px minmax(0, 1fr);
  }

  .hero-name {
    overflow: visible;
    white-space: normal;
    text-overflow: clip;
    font-size: 18px;
    line-height: 1.2;
  }

  .hero-stat {
    grid-column: 1 / -1;
    justify-content: flex-end;
    width: 100%;
    margin-left: 0;
    padding-top: 7px;
    border-top: 1px solid rgba(103, 169, 217, .16);
  }
}

.stat-item[data-tip]:hover::after,
.stat-item[data-tip]:focus-visible::after,
.site-header--inner .header-telegram[data-tip]:hover::after,
.site-header--inner .header-telegram[data-tip]:focus-visible::after,
.header-about[data-tip]:hover::after,
.header-about[data-tip]:focus-visible::after {
  content: attr(data-tip);
  position: absolute;
  bottom: calc(100% + 9px);
  left: 50%;
  z-index: 20;
  padding: 6px 10px;
  border-radius: 9px;
  color: #f7fbff;
  background: #0b3761;
  box-shadow: 0 10px 30px rgba(25, 106, 166, .10);
  font-size: 11.5px;
  font-weight: 700;
  width: max-content;
  max-width: min(320px, calc(100vw - 24px));
  white-space: normal;
  text-align: center;
  transform: translateX(-50%);
  pointer-events: none;
}

.stat-item[data-tip]:hover::before,
.stat-item[data-tip]:focus-visible::before,
.site-header--inner .header-telegram[data-tip]:hover::before,
.site-header--inner .header-telegram[data-tip]:focus-visible::before,
.header-about[data-tip]:hover::before,
.header-about[data-tip]:focus-visible::before {
  content: "";
  position: absolute;
  bottom: calc(100% + 4px);
  left: 50%;
  z-index: 20;
  border: 5px solid transparent;
  border-top-color: #0b3761;
  transform: translateX(-50%);
}

/* Подсказки шапки раскрываются вниз: над иконками для пузыря нет места. */
.site-header--inner .header-telegram[data-tip]:hover::after,
.site-header--inner .header-telegram[data-tip]:focus-visible::after,
.header-about[data-tip]:hover::after,
.header-about[data-tip]:focus-visible::after {
  top: calc(100% + 9px);
  bottom: auto;
}

.site-header--inner .header-telegram[data-tip]:hover::before,
.site-header--inner .header-telegram[data-tip]:focus-visible::before,
.header-about[data-tip]:hover::before,
.header-about[data-tip]:focus-visible::before {
  top: calc(100% + 4px);
  bottom: auto;
  border-top-color: transparent;
  border-bottom-color: #0b3761;
}

.price-note { margin: 0 0 14px 20px; color: #93a7b8; font-size: 13.5px; line-height: 1.45; }

/* Города региона: свои аэропорты крупнее и на белом, соседние — мельче
   и на сером, как второстепенные. Один ряд, переносится сам. */
.city-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 7px;
  margin-bottom: 14px;
  margin-left: 20px;
}

.city-chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
}

.city-chip .flag { font-size: 16px; line-height: 1; }
.city-chip .name { font-size: 14.5px; font-weight: 800; letter-spacing: -.01em; color: #113a63; }

.city-chip.secondary {
  padding: 0;
}

.city-chip.secondary .flag { font-size: 11.5px; opacity: .75; }
.city-chip.secondary .name { font-size: 11.5px; font-weight: 400; color: #93a7b8; }

.cta-tg { display: block; width: 17px; height: 17px; fill: currentColor; }

/* --- Подшапка страницы страны (layout.py::country_hero) -------------- */
.country-name {
  margin: 0 0 5px;
  font-size: clamp(30px, 5vw, 44px);
  letter-spacing: -.04em;
}

.country-note { margin: 0 0 26px; color: #6d879e; font-size: 15px; }

/* --- FAQ страны/региона --------------------------------------------- */
.faq {
  margin: 38px 0 8px;
  padding: 25px 28px;
  border: 1px solid rgba(103, 169, 217, .2);
  border-radius: 22px;
  background: rgba(255, 255, 255, .68);
}

.faq h2 {
  margin: 0 0 15px;
  color: #0b3761;
  font-size: 24px;
  line-height: 1.25;
  letter-spacing: -.025em;
}

.faq-item { border-top: 1px solid rgba(103, 169, 217, .2); }
.faq-item:last-child { border-bottom: 1px solid rgba(103, 169, 217, .2); }
.faq-item summary {
  position: relative;
  padding: 16px 38px 16px 0;
  color: #173f66;
  font-weight: 800;
  line-height: 1.45;
  cursor: pointer;
  list-style: none;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+";
  position: absolute;
  right: 5px;
  top: 50%;
  color: #168ff0;
  font-size: 24px;
  font-weight: 700;
  transform: translateY(-50%);
}
.faq-item[open] summary::after { content: "−"; }
.faq-item p {
  margin: -3px 38px 17px 0;
  color: #4d6a85;
  font-size: 14.5px;
  line-height: 1.62;
  text-wrap: pretty;
}
.faq-item p a {
  color: #0275da;
  font-weight: 800;
  text-decoration: underline;
  text-underline-offset: 2px;
}
html[dir="rtl"] .faq-item summary { padding-right: 0; padding-left: 38px; }
html[dir="rtl"] .faq-item summary::after { right: auto; left: 5px; }
html[dir="rtl"] .faq-item p { margin-right: 0; margin-left: 38px; }

@media (max-width: 520px) {
  .faq { margin-top: 28px; padding: 21px 18px; }
  .faq h2 { font-size: 21px; }
  .faq-item summary { padding-top: 14px; padding-bottom: 14px; }
  .faq-item p { margin-right: 18px; }
  .faq-item summary::after { right: 0; }
  html[dir="rtl"] .faq-item p { margin-left: 18px; }
  html[dir="rtl"] .faq-item summary::after { left: 0; }
}

/* --- Билетные карточки и постоянная страница ------------------------ */
.grid {
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
}

.offer {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 10px 30px rgba(25, 106, 166, .1);
}

.offer img { display: block; width: 100%; height: auto; }
.offer h2 { margin: 0 0 6px; font-size: 17px; }
.offer-body {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  min-height: 0;
  padding: 16px 18px 18px;
}
.caption {
  flex: 1 1 auto;
  min-height: 0;
  margin: 0 0 14px;
  font-size: 14.3px;
  line-height: 1.42;
  white-space: pre-line;
  text-wrap: pretty;
}
.caption a { color: #0275da; font-weight: 700; }
.caption > b:first-child { font-size: 16.2px; line-height: 1.3; }
.caption b { font-weight: 800; }
.offer-actions {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 42px 42px;
  gap: 8px;
  align-items: center;
  margin-top: 2px;
}
.offer-actions--icons-only { grid-template-columns: minmax(0, 1fr) 42px 42px; }
.buy {
  display: flex;
  min-width: 0;
  height: 42px;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: 0 14px;
  border-radius: 12px;
  background: linear-gradient(135deg, #0275da, #168ff0);
  color: #fff;
  font-weight: 800;
  text-align: center;
  text-decoration: none;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.buy:hover { background: #0163b8; }
.post {
  border-color: rgba(34, 158, 217, .35);
  background: rgba(34, 158, 217, .12);
  color: #168cc9;
  text-decoration: none;
}
.trip { margin: 0 0 10px; color: #6d879e; font-size: 13px; }
.offer-icon-action {
  position: relative;
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  margin: 0;
  padding: 0;
  border: 1px solid rgba(2, 117, 218, .35);
  border-radius: 50%;
  background: #f4faff;
  color: #096dbf;
  font: inherit;
  cursor: pointer;
  text-decoration: none;
}
.offer-icon-action svg { width: 20px; height: 20px; }
.offer-icon-action:hover { border-color: #0275da; background: #e9f5ff; }
.offer-actions > .share-button:last-child { grid-column: 3; }
.offer-icon-action::after {
  position: absolute;
  z-index: 20;
  right: 0;
  bottom: calc(100% + 9px);
  width: max-content;
  max-width: 230px;
  padding: 8px 10px;
  border-radius: 9px;
  background: #0b3761;
  color: #fff;
  box-shadow: 0 8px 26px rgba(0, 30, 54, .2);
  content: attr(data-tip);
  font-size: 12px;
  font-weight: 700;
  line-height: 1.3;
  opacity: 0;
  pointer-events: none;
  text-align: left;
  transform: translateY(4px);
  transition: opacity .14s ease, transform .14s ease;
}
.offer-icon-action:hover::after,
.offer-icon-action:focus-visible::after {
  opacity: 1;
  transform: translateY(0);
}
.noimage {
  display: flex;
  aspect-ratio: 1;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: linear-gradient(135deg, #0a83e4, #59c1ff);
  color: #fff;
}
.noimage span { padding: 0 16px; font-size: 20px; font-weight: 800; text-align: center; }
.noimage strong { font-size: 34px; }
.empty {
  padding: 28px;
  border-radius: 20px;
  background: #fff;
  color: #6d879e;
  text-align: center;
}
.region-footer {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  margin-top: 38px;
  padding-top: 22px;
  border-top: 1px solid rgba(103, 169, 217, .22);
  color: #6d879e;
  font-size: 13px;
}
.region-footer a { color: #55738f; font-weight: 800; text-decoration: none; }
.region-footer nav { display: flex; gap: 18px; }

.ticket-body {
  margin: 0;
  background: linear-gradient(180deg, #eaf4ff, #f7fbff 60%);
  color: #0b3761;
  font-family: Manrope, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}
.ticket-page,
.ticket-page * { box-sizing: border-box; }
.ticket-page { width: min(100% - 24px, 1100px); margin: 0 auto; padding: 24px 0 56px; }
.ticket-page main { padding-top: 20px; }
.ticket-breadcrumb { margin: 0 0 16px; color: #6d879e; font-size: 13px; }
.ticket-breadcrumb a { color: #55738f; font-weight: 800; text-decoration: none; }
.ticket-title {
  max-width: 880px;
  margin: 0 0 10px;
  font-size: clamp(29px, 5vw, 48px);
  letter-spacing: -.04em;
  line-height: 1.08;
  text-wrap: balance;
}
.ticket-lead {
  max-width: 760px;
  margin: 0 0 18px;
  color: #55738f;
  font-size: 16px;
  line-height: 1.55;
}
.ticket-lead strong { color: #0873c8; }
.ticket-status {
  margin: 0 0 18px;
  padding: 15px 18px;
  border-radius: 16px;
  line-height: 1.5;
}
.ticket-status--active {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  border: 1px solid rgba(17, 151, 164, .32);
  background: rgba(220, 249, 249, .82);
  color: #116b76;
  font-weight: 800;
}
.ticket-status--expired {
  border: 1px solid rgba(210, 52, 69, .34);
  background: rgba(255, 235, 238, .9);
  color: #a31f31;
}
.ticket-status--expired span { display: block; margin-top: 3px; color: #7f4650; }
.ticket-selected--active {
  outline: 2px solid rgba(18, 159, 174, .72);
  box-shadow: 0 0 0 7px rgba(18, 159, 174, .09), 0 16px 38px rgba(16, 111, 145, .18);
}
.ticket-selected--expired {
  outline: 2px solid rgba(211, 49, 68, .76);
  box-shadow: 0 0 0 7px rgba(211, 49, 68, .08), 0 16px 38px rgba(137, 36, 51, .16);
}
.ticket-showcase {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: stretch;
}
.ticket-showcase > article { height: 100%; }
.ticket-showcase .ticket-selected { width: 100%; }
.offer-card-image[hidden],
.ticket-image-fallback[hidden] { display: none !important; }
.ticket-best-caption-block span { display: inline-block; }
.ticket-best-caption { color: #0873c8; font-weight: 800; }
.ticket-all-dates {
  display: flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  margin: 0 0 10px;
  padding: 10px 14px;
  border: 1px solid rgba(2, 117, 218, .28);
  border-radius: 12px;
  background: #eef7ff;
  color: #076bb9;
  font-weight: 850;
  text-align: center;
  text-decoration: none;
}
.ticket-all-dates:hover { border-color: #0275da; background: #e2f2ff; }
.ticket-story {
  display: flex;
  flex-direction: column;
  padding: 20px;
  border: 1px solid rgba(103, 169, 217, .22);
  border-radius: 22px;
  background: rgba(255, 255, 255, .9);
  box-shadow: 0 12px 34px rgba(25, 106, 166, .08);
}
.ticket-story h2 { margin: 0 0 8px; font-size: 22px; letter-spacing: -.025em; }
.ticket-story-intro { margin: 0 0 15px; color: #55738f; font-size: 14px; line-height: 1.5; }
.ticket-facts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin: 0 0 18px;
}
.ticket-facts > div {
  min-width: 0;
  padding: 10px 11px;
  border-radius: 13px;
  background: #f1f8ff;
}
.ticket-facts dt { color: #6d879e; font-size: 12px; font-weight: 750; }
.ticket-facts dd { margin: 4px 0 0; color: #0b3761; font-size: 16px; font-weight: 850; }
.ticket-selected-facts { margin-bottom: 12px; }
.ticket-selected-facts > div { padding: 9px 10px; }
.ticket-selected-facts dt { font-size: 11px; }
.ticket-selected-facts dd { font-size: 14px; }
.ticket-timeline {
  position: relative;
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 0 0 0 21px;
  list-style: none;
}
.ticket-timeline::before {
  position: absolute;
  top: 7px;
  bottom: 7px;
  left: 7px;
  width: 2px;
  border-radius: 2px;
  background: #b9dcf6;
  content: "";
}
.ticket-timeline li { position: relative; display: grid; gap: 3px; }
.ticket-timeline li::before {
  position: absolute;
  top: 6px;
  left: -20px;
  width: 10px;
  height: 10px;
  border: 2px solid #fff;
  border-radius: 50%;
  background: #168ff0;
  box-shadow: 0 0 0 1px #79bcea;
  content: "";
}
.ticket-timeline time { color: #6d879e; font-size: 12px; font-weight: 750; }
.ticket-timeline span { line-height: 1.48; }
.ticket-timeline--truncated {
  gap: 8px;
  padding-bottom: 13px;
}
.ticket-timeline--truncated::before { bottom: 8px; }
.ticket-timeline--truncated::after {
  position: absolute;
  bottom: 0;
  left: 2px;
  width: 0;
  height: 0;
  border-top: 8px solid #168ff0;
  border-right: 6px solid transparent;
  border-left: 6px solid transparent;
  content: "";
}
.ticket-timeline--truncated li { gap: 1px; font-size: 13px; }
.ticket-timeline--truncated time { font-size: 11px; }
.ticket-timeline--truncated li:last-child { opacity: .15; }
.ticket-timeline--truncated li,
.ticket-timeline--truncated li::before { transition: opacity .18s ease; }
.ticket-history-more {
  width: 100%;
  margin-top: 11px;
  padding: 11px 14px;
  border: 1px solid rgba(2, 117, 218, .28);
  border-radius: 12px;
  background: #eef7ff;
  color: #076bb9;
  cursor: pointer;
  font: inherit;
  font-size: 14px;
  font-weight: 850;
}
.ticket-history-more:hover,
.ticket-history-more:focus-visible { border-color: #0275da; background: #e2f2ff; }
.ticket-history-dialog {
  width: min(100% - 32px, 640px);
  max-height: min(760px, calc(100dvh - 32px));
  margin: auto;
  padding: 0;
  border: 0;
  border-radius: 22px;
  background: transparent;
  color: #0b3761;
  box-shadow: 0 24px 80px rgba(0, 43, 79, .32);
}
.ticket-history-dialog::backdrop { background: rgba(4, 30, 54, .52); }
.ticket-history-dialog-panel { overflow: auto; max-height: inherit; padding: 22px; background: #fff; }
.ticket-history-dialog-heading { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 18px; }
.ticket-history-dialog-heading h2 { margin: 0; font-size: 24px; letter-spacing: -.025em; }
.ticket-history-dialog-close {
  display: grid;
  flex: 0 0 auto;
  width: 36px;
  height: 36px;
  place-items: center;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: #eef7ff;
  color: #0b65a8;
  cursor: pointer;
  font: 400 27px/1 system-ui, sans-serif;
}
.ticket-history-dialog-close:hover,
.ticket-history-dialog-close:focus-visible { background: #dcefff; }
.ticket-ending {
  margin: 20px 0 0;
  padding: 13px 15px;
  border-radius: 13px;
  background: #fff0f2;
  color: #8d2b39;
  line-height: 1.5;
}
.ticket-story-actions {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
  margin-top: auto;
  padding-top: 18px;
}
.ticket-story-actions .ticket-city-guide { margin-top: 0; padding-top: 0; }
.ticket-status--active + .ticket-showcase .ticket-ending {
  background: #e9fafa;
  color: #116b76;
}
.ticket-city-guide {
  position: relative;
  z-index: 4;
  width: fit-content;
  margin-top: auto;
  padding-top: 18px;
}
.ticket-city-guide-trigger {
  display: inline-flex;
  min-height: 40px;
  align-items: center;
  gap: 9px;
  padding: 9px 12px;
  border: 1px solid rgba(2, 117, 218, .24);
  border-radius: 999px;
  background: #f8fcff;
  color: #086dbd;
  cursor: pointer;
  font: inherit;
  font-weight: 850;
}
.ticket-city-guide-trigger:hover,
.ticket-city-guide-trigger:focus-visible { border-color: #168ff0; background: #eef7ff; }
.ticket-details-popover {
  position: relative;
  z-index: 6;
}
.ticket-details-trigger {
  display: inline-flex;
  min-height: 38px;
  align-items: center;
  gap: 8px;
  padding: 8px 11px;
  border: 1px solid rgba(2, 117, 218, .24);
  border-radius: 999px;
  background: #f8fcff;
  color: #086dbd;
  cursor: pointer;
  font: inherit;
  font-size: 12px;
  font-weight: 850;
}
.ticket-details-trigger:hover,
.ticket-details-trigger:focus-visible { border-color: #168ff0; background: #eef7ff; }
.ticket-city-guide-icon {
  display: grid;
  width: 21px;
  height: 21px;
  place-items: center;
  border-radius: 50%;
  background: #168ff0;
  color: #fff;
  font: 850 13px/1 Georgia, serif;
}
.ticket-city-guide-content {
  position: absolute;
  bottom: calc(100% - 2px);
  left: 50%;
  z-index: 20;
  visibility: hidden;
  overflow: auto;
  width: min(520px, calc(100vw - 36px));
  max-height: min(540px, 72vh);
  padding: 18px;
  border: 1px solid rgba(2, 117, 218, .24);
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 22px 65px rgba(8, 62, 106, .24);
  line-height: 1.55;
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 8px);
  transition: opacity .16s ease, transform .16s ease, visibility .16s;
}
.ticket-details-content {
  position: absolute;
  right: 0;
  bottom: calc(100% + 8px);
  z-index: 22;
  visibility: hidden;
  overflow: auto;
  width: min(540px, calc(100vw - 36px));
  max-height: min(620px, 76vh);
  padding: 18px;
  border: 1px solid rgba(2, 117, 218, .24);
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 22px 65px rgba(8, 62, 106, .24);
  color: #0b3761;
  line-height: 1.55;
  opacity: 0;
  pointer-events: none;
  transform: translateY(8px);
  transition: opacity .16s ease, transform .16s ease, visibility .16s;
}
.ticket-status .ticket-details-popover { flex: 0 0 auto; }
.ticket-status .ticket-details-content {
  top: calc(100% + 8px);
  right: 0;
  bottom: auto;
}
html[dir="rtl"] .ticket-status .ticket-details-content {
  right: auto;
  left: 0;
}
.ticket-details-content .ticket-history-title { margin: 0 0 8px; font-size: 22px; }
.ticket-details-content .ticket-ending { margin-top: 15px; }
.ticket-details-city {
  margin-top: 16px;
  padding-top: 15px;
  border-top: 1px solid #dcebf6;
}
.ticket-details-city > h3 { margin: 0 0 9px; font-size: 17px; }
.ticket-details-popover.is-open .ticket-details-content {
  visibility: visible;
  opacity: 1;
  pointer-events: auto;
  transform: none;
}
.ticket-city-guide.is-open .ticket-city-guide-content {
  visibility: visible;
  opacity: 1;
  pointer-events: auto;
  transform: translate(-50%, 0);
}
@media (hover: hover) and (pointer: fine) {
  .ticket-city-guide:hover .ticket-city-guide-content {
    visibility: visible;
    opacity: 1;
    pointer-events: auto;
    transform: translate(-50%, 0);
  }
  .ticket-details-popover:hover .ticket-details-content {
    visibility: visible;
    opacity: 1;
    pointer-events: auto;
    transform: none;
  }
}
.ticket-city-guide-content p { margin: 0 0 13px; }
.ticket-city-guide-content h3 { margin: 16px 0 7px; font-size: 15px; }
.ticket-city-highlights { margin: 0; padding-left: 20px; }
.ticket-city-highlights li + li { margin-top: 5px; }
.ticket-city-sources { display: flex; flex-wrap: wrap; gap: 7px 12px; margin-top: 15px; }
.ticket-city-sources a { color: #55738f; font-size: 12px; font-weight: 750; }
.ticket-archive-region-link { margin: 28px 0 0; text-align: right; }
.ticket-archive-region-link a,
.ticket-archive-back a {
  color: #55738f;
  font-size: 13px;
  font-weight: 800;
  text-decoration: none;
}
.ticket-archive-page h1 { margin: 8px 0 10px; font-size: clamp(25px, 4vw, 38px); }
.ticket-archive-intro { max-width: 720px; margin: 0 0 24px; color: #55738f; line-height: 1.55; }
.ticket-archive-months,
.ticket-archive-entries { margin: 0; padding: 0; list-style: none; }
.ticket-archive-months { display: grid; gap: 10px; max-width: 620px; }
.ticket-archive-months a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px;
  border: 1px solid rgba(103, 169, 217, .24);
  border-radius: 14px;
  background: #fff;
  color: #0b65a8;
  text-decoration: none;
}
.ticket-archive-months span {
  min-width: 32px;
  padding: 3px 8px;
  border-radius: 999px;
  background: #eaf5ff;
  text-align: center;
}
.ticket-archive-entries { display: grid; gap: 12px; }
.ticket-archive-entry {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px;
  border: 1px solid rgba(103, 169, 217, .2);
  border-radius: 16px;
  background: #fff;
  color: #0b3761;
  text-decoration: none;
  box-shadow: 0 8px 24px rgba(25, 106, 166, .07);
}
.ticket-archive-entry img { flex: 0 0 112px; width: 112px; height: 112px; border-radius: 12px; object-fit: cover; }
.ticket-archive-entry-copy { display: grid; gap: 5px; min-width: 0; }
.ticket-archive-entry-copy > strong { font-size: 16px; }
.ticket-archive-entry-copy > span { color: #6d879e; font-size: 13px; }
.ticket-archive-entry-copy small { width: fit-content; font-weight: 800; }
.ticket-archive-entry-copy .is-active { color: #117780; }
.ticket-archive-entry-copy .is-expired { color: #b02b3c; }
.ticket-archive-back { margin: 24px 0 0; }

.share-sheet[hidden] { display: none; }
.share-sheet {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: grid;
  place-items: center;
  padding: 18px;
  background: rgba(4, 30, 54, .48);
}
.share-sheet-panel {
  width: min(100%, 390px);
  padding: 20px;
  border-radius: 22px;
  background: #fff;
  box-shadow: 0 24px 80px rgba(0, 43, 79, .28);
}
.share-sheet-title { margin: 0 0 15px; font-size: 20px; }
.share-sheet-actions { display: grid; gap: 9px; }
.share-sheet-actions a,
.share-sheet-actions button {
  display: block;
  width: 100%;
  padding: 12px 14px;
  border: 0;
  border-radius: 12px;
  background: #eef7ff;
  color: #0b65a8;
  font: inherit;
  font-weight: 800;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
}
.share-sheet-close { margin-top: 10px; background: #f1f3f5 !important; color: #55738f !important; }

@media (max-width: 520px) {
  .grid { grid-template-columns: 1fr; }
  .ticket-title { font-size: 30px; }
  .ticket-story { padding: 19px 17px; }
  .ticket-facts { grid-template-columns: 1fr; }
  .ticket-selected-facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ticket-archive-region-link { text-align: left; }
  .ticket-archive-entry { align-items: flex-start; }
  .ticket-archive-entry img { flex-basis: 82px; width: 82px; height: 82px; }
  .region-footer { align-items: flex-start; flex-direction: column; }
}

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

@media (max-width: 620px) {
  .ticket-status--active { align-items: flex-start; flex-direction: column; }
  .ticket-showcase { grid-template-columns: 1fr; }
  .ticket-showcase .ticket-selected { width: min(100%, 520px); margin: 0 auto; }
  .ticket-showcase > article { height: auto; }
  .ticket-city-guide-content {
    position: fixed;
    right: 12px;
    bottom: 12px;
    left: 12px;
    width: auto;
    max-height: min(620px, calc(100vh - 24px));
    transform: translateY(8px);
  }
  .ticket-details-content {
    position: fixed;
    top: auto;
    right: 12px;
    bottom: 12px;
    left: 12px;
    width: auto;
    max-height: min(700px, calc(100vh - 24px));
    transform: translateY(8px);
  }
  .ticket-status .ticket-details-content { top: auto; right: 12px; }
  html[dir="rtl"] .ticket-status .ticket-details-content {
    right: 12px;
    left: 12px;
  }
  .ticket-city-guide:hover .ticket-city-guide-content,
  .ticket-city-guide.is-open .ticket-city-guide-content,
  .ticket-details-popover:hover .ticket-details-content,
  .ticket-details-popover.is-open .ticket-details-content { transform: none; }
}
