/* Дополнение к родному site.css («Панорама») для страницы /traditsii/ */
.tr-hero-ttl {
  font-size: clamp(44px, 11.5vw, 142px) !important;
  line-height: .88;
}

.tr-atlas {
  display: grid;
  grid-template-columns: minmax(0, 1.28fr) minmax(0, 1fr);
  gap: 24px;
  align-items: stretch;
  margin-top: 28px;
}
@media (max-width: 1020px) { .tr-atlas { grid-template-columns: minmax(0, 1fr); align-items: start; } }

.tr-stage {
  min-width: 0;
  border-radius: 24px;
  padding: 10px;
  background: var(--soft);
  border: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.tr-stage-in {
  position: relative;
  flex: 1 1 460px;
  min-height: 460px;
  width: 100%;
  border-radius: 16px;
  overflow: hidden;
  background: radial-gradient(circle at 50% 45%, #19324F 0%, #0D1B2E 100%);
  user-select: none;
  -webkit-user-select: none;
}
.tr-stage-in.is-topo {
  background: radial-gradient(circle at 50% 45%, #D9E8F2 0%, #C5DCEB 100%);
}
@media (max-width: 1020px) {
  .tr-stage-in { flex: none; height: 420px; min-height: 380px; }
}
@media (max-width: 560px) {
  .tr-stage-in { height: 326px; min-height: 310px; }
}
#uralCanvas, #uralOverlay {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
}
#uralCanvas {
  cursor: grab;
  touch-action: none;
  opacity: 0;
  transition: opacity .35s ease;
}
.tr-stage-in.is-loaded #uralCanvas { opacity: 1; }
#uralCanvas.is-grabbing { cursor: grabbing; }
#uralOverlay { pointer-events: none; z-index: 2; }

/* Интерактивные фото-пины на 3D-карте (в стиле Apple Maps / Яндекс Карты 3D) */
.tr-pin-layer {
  position: absolute;
  inset: 0;
  z-index: 3;
  pointer-events: none;
  overflow: hidden;
}
.tr-mp-city {
  position: absolute;
  left: 0;
  top: 0;
  transform: translate3d(-999px, -999px, 0);
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 9px 3px 6px;
  border-radius: 999px;
  background: rgba(11, 17, 32, .84);
  border: 1px solid rgba(255, 255, 255, .24);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .01em;
  white-space: nowrap;
  margin-left: 8px;
  margin-top: -12px;
  backdrop-filter: blur(8px);
  transition: opacity .2s ease;
  z-index: 6;
}
.tr-mp-dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: #38BDF8;
  border: 1.5px solid #fff;
  flex: none;
}

.tr-mp {
  position: absolute;
  left: 0;
  top: 0;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
  pointer-events: auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  margin: 0;
  transform: translate3d(-999px, -999px, 0);
  transition: opacity .18s ease;
}
.tr-mp-head {
  transform: translate(calc(-50% + var(--pin-shift, 0px)), calc(-100% - 10px));
  margin-bottom: 0;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 3px 10px 3px 3px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .94);
  border: 1.5px solid rgba(11, 17, 32, .16);
  color: var(--ink);
  box-shadow: 0 6px 18px rgba(11, 17, 32, .32);
  white-space: nowrap;
  transition: background-color .2s ease, border-color .2s ease, color .2s ease;
}
.tr-mp:hover .tr-mp-head, .tr-mp:focus-visible .tr-mp-head {
  background: #EAF5FB;
  border-color: var(--sky-ink);
}
.tr-mp.is-act .tr-mp-head {
  background: rgba(11, 17, 32, .94);
  border: 2px solid #38BDF8;
  color: #fff;
  padding: 4px 12px 4px 4px;
  box-shadow: 0 10px 26px rgba(11, 17, 32, .52);
}
.tr-mp-av {
  width: 24px;
  height: 24px;
  border-radius: 999px;
  object-fit: cover;
  flex: none;
  border: 1.5px solid rgba(255, 255, 255, .85);
}
.tr-mp.is-act .tr-mp-av {
  width: 28px;
  height: 28px;
  border-color: #38BDF8;
}
.tr-mp-txt {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  line-height: 1.08;
  text-align: left;
}
.tr-mp-txt b { font-size: 11.5px; font-weight: 700; }
.tr-mp-txt small { font-size: 10px; font-weight: 600; color: var(--sky-ink); margin-top: 1px; }
.tr-mp.is-act .tr-mp-txt b { font-size: 12.5px; color: #fff; }
.tr-mp.is-act .tr-mp-txt small { color: #7DD3FC; }
.tr-mp-stem {
  position: absolute;
  left: 0;
  top: -5px;
  transform: translateX(-50%);
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: #fff;
  border: 2px solid var(--ink);
  box-shadow: 0 2px 6px rgba(11, 17, 32, .45);
}
.tr-mp.is-act .tr-mp-stem {
  width: 10px;
  height: 10px;
  top: -6px;
  background: #38BDF8;
  border: 2px solid #fff;
}
/* Если соседние пины на общем плане близко — компактный круглый фото-маркер */
.tr-mp.is-compact .tr-mp-head { padding: 2px; gap: 0; }
.tr-mp.is-compact .tr-mp-txt { display: none; }
.tr-mp.is-compact .tr-mp-av { width: 26px; height: 26px; }
.tr-mp.is-compact:hover .tr-mp-head { padding: 3px 10px 3px 3px; gap: 7px; }
.tr-mp.is-compact:hover .tr-mp-txt { display: flex; }

/* Верхняя и нижняя панели управления картой (матовое стекло) */
.tr-hud-top, .tr-legend {
  position: absolute;
  left: 12px;
  right: 12px;
  z-index: 15;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  pointer-events: none;
}
.tr-hud-top { top: 12px; }
.tr-legend { bottom: 12px; }

.tr-map-seg {
  pointer-events: auto;
  display: inline-flex;
  align-items: center;
  gap: 2px;
  padding: 3px;
  border-radius: 999px;
  background: rgba(11, 17, 32, .80);
  border: 1px solid rgba(255, 255, 255, .16);
  backdrop-filter: blur(12px);
}
.tr-seg-btn {
  border: 0;
  background: transparent;
  color: #CBD5E1;
  padding: 5px 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: background-color .2s ease, color .2s ease;
}
.tr-seg-btn:hover, .tr-seg-btn:focus-visible { color: #fff; background: rgba(255, 255, 255, .10); }
.tr-seg-btn[aria-pressed="true"] { background: #FFFFFF; color: var(--ink); }

.tr-hud-btns { display: flex; gap: 6px; pointer-events: auto; }
.tr-ctrl {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  border: 1px solid rgba(255, 255, 255, .18);
  background: rgba(11, 17, 32, .82);
  color: #fff;
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
  cursor: pointer;
  backdrop-filter: blur(12px);
  transition: background-color .2s ease, border-color .2s ease;
}
.tr-mob-lbl { display: none; }
@media (max-width: 560px) {
  .tr-desk-lbl { display: none; }
  .tr-mob-lbl { display: inline; }
}
.tr-ctrl:hover, .tr-ctrl:focus-visible { background: #1B79A8; border-color: var(--sky); }
.tr-ctrl[aria-pressed="true"] { background: var(--sky-ink); border-color: var(--sky); }

/* Вертикальный док управления справа (как Apple Maps / Яндекс Карты 3D) */
.tr-map-dock {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 15;
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 4px;
  border-radius: 999px;
  background: rgba(11, 17, 32, .78);
  border: 1px solid rgba(255, 255, 255, .16);
  backdrop-filter: blur(12px);
}
.tr-dock-btn {
  width: 34px;
  height: 34px;
  border-radius: 999px;
  border: 0;
  background: transparent;
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background-color .2s ease, color .2s ease;
}
.tr-dock-btn svg { width: 17px; height: 17px; }
.tr-dock-btn:hover, .tr-dock-btn:focus-visible { background: rgba(110, 193, 228, .28); }

.tr-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(11, 17, 32, .80);
  border: 1px solid rgba(255, 255, 255, .16);
  color: #E2E8F0;
  padding: 5px 11px;
  border-radius: 999px;
  font-size: 11.5px;
  font-weight: 600;
  backdrop-filter: blur(10px);
}
.tr-pill svg { width: 13px; height: 13px; color: var(--sky); }

@media (max-width: 560px) {
  .tr-hud-top { top: 10px; left: 10px; right: 10px; flex-wrap: wrap; gap: 6px; }
  .tr-legend { bottom: 10px; left: 10px; right: 10px; }
  .tr-seg-btn { padding: 5px 9px; font-size: 11px; }
  .tr-ctrl { padding: 5px 9px; font-size: 11px; }
  .tr-map-dock { right: 10px; padding: 3px; }
  .tr-dock-btn { width: 32px; height: 32px; }
  .tr-legend-hint { display: none; }
}

/* Кнопки маршрутов под картой с круглыми ФОТО-ИКОНКАМИ (концентрические радиусы!) */
.tr-pins {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}
.tr-pin {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 4px 14px 4px 4px;
  border-radius: 999px;
  background: var(--bg);
  border: 1px solid var(--line);
  color: var(--ink);
  font-size: 13.5px;
  font-weight: 600;
  cursor: pointer;
  transition: background-color .22s ease, color .22s ease, border-color .22s ease;
}
.tr-pin img {
  width: 28px;
  height: 28px;
  border-radius: 999px;
  object-fit: cover;
  flex: none;
  border: 1.5px solid rgba(11, 17, 32, .12);
}
.tr-pin:hover, .tr-pin:focus-visible { background: #E5EEF6; }
.tr-pin[aria-selected="true"] { background: var(--ink); border-color: var(--ink); color: #fff; }
.tr-pin[aria-selected="true"] img { border-color: var(--sky); }
@media (max-width: 560px) {
  .tr-pins { display: flex; flex-wrap: nowrap; overflow-x: auto; gap: 7px; margin-inline: -10px; padding: 2px 10px 4px; scrollbar-width: none; -webkit-overflow-scrolling: touch; scroll-snap-type: x proximity; touch-action: pan-x; }
  .tr-pins::-webkit-scrollbar { display: none; }
  .tr-pin { padding: 4px 12px 4px 4px; gap: 7px; font-size: 13px; flex: 0 0 auto; white-space: nowrap; scroll-snap-align: start; }
  .tr-pin img { width: 26px; height: 26px; }
}

/* Правая карточка маршрута: сочная, с фактами-иконками и концентрическими скруглениями */
.tr-card {
  min-width: 0;
  border-radius: 24px;
  overflow: hidden;
  background: var(--soft);
  border: 1px solid var(--line);
  display: flex;
  flex-direction: column;
}
.tr-card-ph {
  position: relative;
  height: 230px;
  background: var(--ink);
  overflow: hidden;
}
.tr-card-ph img { width: 100%; height: 100%; object-fit: cover; display: block; }
.tr-card-ph::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(11, 17, 32, .14) 0%, rgba(11, 17, 32, .84) 100%);
}
.tr-card-top {
  position: absolute;
  top: 12px;
  left: 12px;
  right: 12px;
  z-index: 2;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 6px;
}
.tr-card-top .hb2 { max-width: 100%; }
@media (max-width: 480px) {
  .tr-card-ph { height: 210px; }
  .tr-card-top .hb2 { font-size: 11.5px; padding: 4px 10px 4px 4px; gap: 6px; }
  .tr-card-top .hb2 i { width: 22px; height: 22px; }
  .tr-card-top .hb2 i svg { width: 12px; height: 12px; }
  .tr-card-ttl { left: 14px; right: 14px; bottom: 12px; }
  .tr-card-body { padding: 14px; gap: 12px; }
}
.tr-card-ttl {
  position: absolute;
  bottom: 14px;
  left: 18px;
  right: 18px;
  z-index: 2;
  color: #fff;
}
.tr-card-ttl h3 {
  font-family: var(--display);
  font-weight: 800;
  text-transform: uppercase;
  font-size: clamp(30px, 3.2vw, 40px);
  line-height: .92;
  color: #fff;
}
.tr-card-ttl p { font-size: 14px; color: var(--sky); font-weight: 600; margin-top: 4px; }

.tr-card-body {
  padding: 18px 20px 20px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-width: 0;
}
@media (max-width: 480px) {
  .tr-card-body { padding: 14px; gap: 12px; }
}

/* 2 плашки-факты с иконками (как .tfs на страницах туров — 2 колонки и на мобилке!) */
.tr-facts2 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}
@media (max-width: 340px) { .tr-facts2 { grid-template-columns: minmax(0, 1fr); } }
.tr-fact {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 10px 11px;
  border-radius: 14px;
  background: var(--bg);
  border: 1px solid var(--line);
  min-width: 0;
}
@media (max-width: 480px) {
  .tr-fact { flex-direction: column; align-items: flex-start; gap: 6px; padding: 11px 12px; }
}
.tr-fact-ic {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: #EAF5FB;
  color: var(--sky-ink);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: none;
}
.tr-fact-ic svg { width: 17px; height: 17px; }
.tr-fact small { display: block; font-size: 11.5px; color: var(--mut); line-height: 1.15; }
.tr-fact strong { display: block; font-size: 13.5px; color: var(--ink); font-weight: 600; line-height: 1.25; margin-top: 2px; }

.tr-craft-box {
  padding: 14px 16px;
  border-radius: 16px;
  background: var(--bg);
  border: 1px solid var(--line);
}
.tr-craft-head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
}
.tr-craft-ic {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: #EAF5FB;
  color: var(--sky-ink);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: none;
}
.tr-craft-ic svg { width: 19px; height: 19px; }
.tr-craft-h { font-size: 16px; font-weight: 700; color: var(--ink); line-height: 1.25; }
@media (max-width: 480px) {
  .tr-craft-head { flex-direction: column; align-items: flex-start; gap: 8px; }
}
.tr-craft-p { font-size: 14.5px; line-height: 1.55; color: var(--mut); text-wrap: pretty; }
.tr-story-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  width: 100%;
  margin-top: 12px;
  padding: 11px 14px;
  border-radius: 12px;
  border: 1px solid rgba(27, 121, 168, .22);
  background: #EAF5FB;
  color: var(--sky-ink);
  font-size: 14px;
  font-weight: 700;
  white-space: nowrap;
  text-align: left;
  cursor: pointer;
  transition: background-color .2s ease, color .2s ease, border-color .2s ease;
}
.tr-story-link:focus { outline: none; }
.tr-story-link:focus-visible { outline: 2px solid var(--sky); outline-offset: 2px; }
.tr-story-link-l { display: inline-flex; align-items: center; gap: 8px; min-width: 0; }
.tr-story-link svg { width: 16px; height: 16px; flex: none; }
.tr-story-link:hover, .tr-story-link:focus-visible { background: var(--sky-ink); border-color: var(--sky-ink); color: #fff; }

.tr-souv {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 12px 14px;
  border-radius: 16px;
  background: #EAF5FB;
  border: 1px solid rgba(27, 121, 168, .22);
  font-size: 13.5px;
  line-height: 1.48;
  color: var(--ink);
}
.tr-souv-ic {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: var(--sky-ink);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: none;
}
.tr-souv-ic svg { width: 18px; height: 18px; }
@media (max-width: 480px) {
  .tr-souv { flex-direction: column; gap: 8px; padding: 14px; }
}
.tr-acts { display: flex; flex-wrap: wrap; gap: 10px; min-width: 0; width: 100%; }
.tr-acts .b { flex: 1 1 170px; min-width: 0; max-width: 100%; min-height: 48px; box-sizing: border-box; }
@media (max-width: 520px) {
  .tr-acts { flex-direction: column; gap: 8px; }
  .tr-acts .b { flex: none; width: 100%; padding: 0 14px; font-size: 14px; justify-content: center; }
}
.b.tr-line { background: var(--bg); color: var(--ink); border: 1px solid var(--line); }
.b.tr-line:hover, .b.tr-line:focus-visible { background: #E5EEF6; }

/* Путевой гид в автобусе: стильная карточка-открытка без перегруза */
.tr-bus-wrap {
  display: grid;
  grid-template-columns: minmax(0, .95fr) minmax(0, 1.15fr);
  gap: 40px;
  align-items: center;
}
@media (max-width: 920px) { .tr-bus-wrap { grid-template-columns: minmax(0, 1fr); gap: 24px; } }
.tr-bus-wrap h2 {
  font-size: clamp(34px, 4.2vw, 56px);
  line-height: .92;
  margin-top: 14px;
}
.tr-bus-card {
  position: relative;
  overflow: hidden;
  border-radius: 24px;
  padding: 24px;
  background: var(--soft);
  border: 1px solid var(--line);
  color: var(--ink);
  display: grid;
  grid-template-columns: minmax(0, 1fr) 164px;
  gap: 24px;
  align-items: center;
}
.tr-bus-left { min-width: 0; display: flex; flex-direction: column; gap: 10px; }
.tr-bus-brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--sky-ink);
}
.tr-bus-brand svg { width: 24px; height: 11px; fill: var(--ink); }
.tr-bus-brand svg path:last-child { fill: var(--sky-ink); }
.tr-bus-card h3 {
  font-family: var(--display);
  font-weight: 800;
  text-transform: uppercase;
  font-size: 38px;
  line-height: .92;
  color: var(--ink);
  margin: 2px 0;
}
.tr-bus-card p { font-size: 14.5px; color: var(--mut); line-height: 1.5; text-wrap: pretty; }
.tr-bus-qrcol {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding-left: 20px;
  border-left: 1px dashed rgba(11, 17, 32, .18);
}
.tr-bus-qrcol small { font-size: 11.5px; color: var(--mut); text-align: center; line-height: 1.25; }
.tr-bus-badges { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 2px; }
.tr-bus-badges .cb { background: var(--bg); border: 1px solid var(--line); }
.tr-bus-badges .cb.sft { background: #E6F0F8; border-color: rgba(27, 121, 168, .18); color: var(--sky-ink); }
.tr-bus-acts { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 4px; }
.tr-mob-only { display: none !important; }
.tr-copy-status {
  display: inline-flex;
  align-items: center;
  font-size: 13px;
  font-weight: 600;
  color: var(--sky-ink);
  margin-top: 2px;
}
.tr-copy-status:empty { display: none !important; }
.tr-mob-row2 { display: none; gap: 8px; width: 100%; }
@media (max-width: 768px) {
  .tr-bus-card { grid-template-columns: minmax(0, 1fr); padding: 18px 16px; }
  .tr-desk-only { display: none !important; }
  .tr-mob-only { display: inline-flex !important; }
  .tr-mob-row2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .tr-bus-acts { flex-direction: column; width: 100%; gap: 8px; }
  .tr-bus-acts .b { width: 100%; max-width: 100%; min-width: 0; min-height: 46px; justify-content: center; padding: 0 12px; font-size: 14px; white-space: nowrap; box-sizing: border-box; }
  .tr-mob-row2 .b { font-size: 13px; padding: 0 8px; }
  .tr-copy-status { white-space: normal; line-height: 1.35; }
}
@media (max-width: 340px) {
  .tr-mob-row2 { grid-template-columns: minmax(0, 1fr); }
}
.tr-qr-box {
  background: #fff;
  padding: 6px;
  border-radius: 14px;
  width: 144px;
  height: 144px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
}
.tr-qr-svg { width: 100% !important; height: 100% !important; display: block; }
.b.tr-sky { background: var(--sky-ink); color: #fff; }
.b.tr-sky:hover, .b.tr-sky:focus-visible { background: #15628A; }

/* Блок «Все восемь маршрутов»: кружок «Каталог туров» всегда строго справа от заголовка и не падает на новую строку! */
#more .hrow {
  flex-wrap: nowrap;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 30px;
}
#more .hrow h2 {
  min-width: 0;
  flex: 1 1 auto;
}
@media (max-width: 1180px) and (min-width: 901px) {
  #more .hrow h2 { font-size: clamp(46px, 6.2vw, 72px); }
  #more .hrow .lnk.rnd { width: 112px; height: 112px; font-size: 16px; gap: 6px; }
  #more .hrow .lnk.rnd svg { width: 18px; height: 18px; }
}
@media (max-width: 900px) {
  #more .hrow { margin-bottom: 22px; }
}

/* Ровная сетка 4x2: ЧИСТЫЕ ЗАГОЛОВКИ БЕЗ РАЗРЫВА СЛОВ! */
.tr-mg4 {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}
.tr-mg4 .tc {
  aspect-ratio: 4 / 5;
  min-height: 360px;
  min-width: 0;
  width: 100%;
  max-width: 100%;
}
.tr-mg4 .tc h3 {
  font-size: clamp(24px, 1.85vw, 30px) !important;
  line-height: .96 !important;
  overflow-wrap: normal !important;
  word-break: keep-all !important;
  hyphens: none !important;
}
.tr-mg4 .tc .sd {
  font-size: 13.5px !important;
  line-height: 1.38 !important;
}
.tr-mg4 .tc .tt {
  padding: 16px !important;
}
@media (max-width: 1180px) {
  .tr-mg4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tr-mg4 .tc h3 { font-size: clamp(28px, 3.6vw, 36px) !important; }
}
@media (max-width: 600px) {
  .tr-mg4 { grid-template-columns: minmax(0, 1fr); }
  .tr-mg4 .tc { min-height: 310px; }
  .tr-mg4 .tc h3 { font-size: clamp(24px, 8.2vw, 32px) !important; }
}

/* Дизайнерская модалка-открытка А6 (<dialog> по modern-web-guidance) */
dialog.tr-dlg {
  padding: 0;
  border: 0;
  border-radius: 24px;
  max-width: min(600px, calc(100vw - 32px));
  width: 100%;
  background: var(--bg);
  color: var(--ink);
  box-shadow: 0 28px 72px rgba(11, 17, 32, .4);
}
dialog.tr-dlg:modal { overscroll-behavior: contain; }
dialog.tr-dlg::backdrop {
  background: rgba(11, 17, 32, .66);
  backdrop-filter: blur(5px);
  overflow: hidden;
  overscroll-behavior: contain;
}
dialog.tr-dlg[open] { display: block; }
.tr-dlg-in { padding: 24px; }
.tr-dlg-hd { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; margin-bottom: 16px; }
.tr-dlg-hd h2 { font-size: 32px; color: var(--ink); }
.tr-dlg-x {
  width: 42px;
  height: 42px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--soft);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex: none;
  transition: background-color .2s ease;
}
.tr-dlg-x:hover { background: #E3EAF2; }

.tr-postcard {
  position: relative;
  overflow: hidden;
  border-radius: 20px;
  background: var(--ink);
  color: #fff;
  padding: 22px;
  margin-bottom: 16px;
}
.tr-postcard-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: .34;
  pointer-events: none;
}
.tr-postcard::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(11, 17, 32, .88) 0%, rgba(11, 17, 32, .56) 100%);
  pointer-events: none;
}
.tr-postcard-in {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 144px;
  gap: 20px;
  align-items: center;
}
.tr-pc-info {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  min-width: 0;
}
@media (max-width: 520px) {
  .tr-postcard { padding: 18px 16px; }
  .tr-postcard-in { grid-template-columns: minmax(0, 1fr); gap: 18px; }
  .tr-pc-brand { font-size: 10px; letter-spacing: .04em; white-space: normal; line-height: 1.25; }
}
.tr-pc-brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: #CBD5E1;
  white-space: nowrap;
}
.tr-pc-brand svg { width: 24px; height: 11px; fill: #fff; flex: none; }
.tr-pc-brand svg path:last-child { fill: var(--sky); }
.tr-pc-title {
  font-family: var(--display);
  font-weight: 800;
  text-transform: uppercase;
  font-size: 32px;
  line-height: .94;
  color: #fff;
  margin: 0;
}
.tr-pc-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.tr-pc-chip {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .12);
  border: 1px solid rgba(255, 255, 255, .18);
  color: #E2E8F0;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.1;
  white-space: nowrap;
}
.tr-pc-chip.is-sky { color: #7DD3FC; border-color: rgba(125, 211, 252, .32); }
.tr-pc-desc { font-size: 13.5px; color: #E2E8F0; line-height: 1.48; margin: 0; }
.tr-pc-tel {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 14px;
  font-size: 13px;
  font-weight: 600;
  color: #fff;
  opacity: .92;
  padding-top: 8px;
  border-top: 1px solid rgba(255, 255, 255, .14);
  width: 100%;
}
.tr-pc-qrcol { display: flex; flex-direction: column; align-items: center; gap: 6px; }
.tr-pc-qrcol small { font-size: 11.5px; color: #CBD5E1; text-align: center; }
.tr-dlg-ft { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 10px; margin-top: 14px; }

/* Защита заголовка в блоке «Подберем маршрут на выходные» от разрыва слов («ВЫХОДН / ЫЕ») на узких экранах */
.cph .nm {
  overflow-wrap: normal !important;
  word-break: keep-all !important;
  hyphens: none !important;
}
@media (max-width: 520px) {
  .cph .nm { font-size: clamp(32px, 9.4vw, 44px) !important; line-height: .96 !important; }
}

dialog.tr-dlg[open] {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  max-height: min(90dvh, 860px);
}
dialog.tr-story-dlg {
  max-width: min(680px, calc(100vw - 24px));
}
.tr-dlg-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  padding: 20px 24px 14px;
  border-bottom: 1px solid var(--line);
  background: var(--bg);
  flex: none;
}
.tr-dlg-top h2 {
  font-size: clamp(28px, 4vw, 36px);
  line-height: .96;
  color: var(--ink);
  margin-bottom: 10px;
}
.tr-st-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.tr-st-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 10px;
  border-radius: 999px;
  background: var(--soft);
  border: 1px solid var(--line);
  color: var(--ink);
  font-size: 12px;
  font-weight: 600;
  line-height: 1.1;
  white-space: nowrap;
}
.tr-st-pill.is-sky {
  background: #EAF5FB;
  border-color: rgba(27, 121, 168, .22);
  color: var(--sky-ink);
}
.tr-st-pill svg { width: 13px; height: 13px; color: var(--sky-ink); flex: none; }
.tr-dlg-scroll {
  flex: 1 1 auto;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
  padding: 18px 24px;
}
.tr-dlg-bar {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
  padding: 14px 24px;
  border-top: 1px solid var(--line);
  background: var(--bg);
  flex: none;
}
@media (max-width: 680px) {
  dialog.tr-dlg, dialog.tr-dlg[open], dialog.tr-story-dlg, dialog.tr-story-dlg[open] {
    position: fixed;
    inset: 0;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    max-width: 100%;
    height: 100dvh;
    max-height: 100dvh;
    margin: 0;
    border-radius: 0;
    box-shadow: none;
  }
  .tr-dlg-top {
    padding: max(16px, env(safe-area-inset-top)) 16px 12px;
  }
  .tr-dlg-scroll {
    padding: 14px 16px 18px;
  }
  .tr-dlg-bar {
    padding: 12px 16px max(14px, env(safe-area-inset-bottom));
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }
  .tr-dlg-bar form { display: contents; }
  .tr-dlg-bar .b { width: 100%; min-width: 0; min-height: 46px; justify-content: center; padding: 0 10px; font-size: 13.5px; white-space: nowrap; box-sizing: border-box; }
  .tr-dlg-bar .tr-desk-only { display: none !important; }
}
.tr-st-hero {
  position: relative;
  height: 180px;
  border-radius: 16px;
  overflow: hidden;
  margin-bottom: 16px;
  background: var(--ink);
}
.tr-st-hero img { width: 100%; height: 100%; object-fit: cover; display: block; }
.tr-st-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(11, 17, 32, .12) 0%, rgba(11, 17, 32, .80) 100%);
}
.tr-st-hero-in {
  position: absolute;
  inset: 12px 14px;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.tr-st-sub { font-size: 14px; font-weight: 600; color: #E2E8F0; }
.tr-st-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 12px;
}
.tr-st-sec {
  padding: 14px 16px;
  border-radius: 16px;
  background: var(--soft);
  border: 1px solid var(--line);
}
.tr-st-sec.is-tip {
  background: #EAF5FB;
  border-color: rgba(27, 121, 168, .22);
}
.tr-st-hd {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 6px;
}
.tr-st-ic {
  width: 30px;
  height: 30px;
  border-radius: 9px;
  background: var(--bg);
  border: 1px solid var(--line);
  color: var(--sky-ink);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: none;
}
.tr-st-sec.is-tip .tr-st-ic { background: var(--sky-ink); color: #fff; border-color: transparent; }
.tr-st-ic svg { width: 15px; height: 15px; }
.tr-st-hd h3 { font-family: var(--body); font-size: 14.5px; font-weight: 700; text-transform: none; color: var(--ink); line-height: 1.2; }
.tr-st-sec p { font-size: 14.5px; line-height: 1.58; color: var(--mut); text-wrap: pretty; }
.tr-st-sec.is-tip p { color: var(--ink); }
.b.is-saved { background: #15628A !important; color: #fff !important; border-color: #15628A !important; }

@media print {
  @page { size: A6 landscape; margin: 4mm; }
  html, body { background: #FFFFFF !important; margin: 0 !important; padding: 0 !important; }
  body > *:not(dialog.tr-dlg) { display: none !important; }
  dialog.tr-dlg, dialog.tr-dlg[open] {
    position: static !important;
    display: block !important;
    width: 100% !important;
    max-width: 140mm !important;
    height: auto !important;
    max-height: none !important;
    box-shadow: none !important;
    background: #FFFFFF !important;
    margin: 0 auto !important;
    border-radius: 0 !important;
  }
  dialog.tr-dlg::backdrop { display: none !important; background: transparent !important; }
  .tr-dlg-hd, .tr-dlg-top, .tr-dlg-ft, .tr-dlg-bar, .tr-dlg-note { display: none !important; }
  .tr-dlg-in, .tr-dlg-scroll { padding: 0 !important; overflow: visible !important; }
  .tr-postcard {
    width: 100% !important;
    max-width: 140mm !important;
    min-height: 92mm !important;
    padding: 7mm 8mm !important;
    margin: 0 auto !important;
    display: flex !important;
    align-items: center !important;
    box-sizing: border-box !important;
    border-radius: 4mm !important;
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
  }
  .tr-postcard-in {
    width: 100% !important;
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) 34mm !important;
    gap: 6mm !important;
    align-items: center !important;
  }
  .tr-pc-info { gap: 2.5mm !important; }
  .tr-pc-brand { font-size: 7pt !important; letter-spacing: .05em !important; }
  .tr-pc-brand svg { width: 5.5mm !important; height: 2.6mm !important; }
  .tr-postcard .hb2 { font-size: 7.5pt !important; padding: 1mm 2.8mm 1mm 1.2mm !important; gap: 1.5mm !important; }
  .tr-postcard .hb2 i { width: 4.5mm !important; height: 4.5mm !important; }
  .tr-postcard .hb2 i svg { width: 2.8mm !important; height: 2.8mm !important; }
  .tr-pc-title { font-size: 20pt !important; }
  .tr-pc-chip { font-size: 7.5pt !important; padding: 1mm 2.6mm !important; }
  .tr-pc-desc { font-size: 8.5pt !important; line-height: 1.38 !important; }
  .tr-pc-tel { font-size: 8pt !important; padding-top: 2mm !important; }
  .tr-qr-box { width: 32mm !important; height: 32mm !important; padding: 1.6mm !important; border-radius: 3mm !important; }
  .tr-pc-qrcol small { font-size: 7pt !important; }
}
