html,
body {
  overflow-x: clip;
}

.route-city-letter {
  color: #1769e0 !important;
  font-size: .9rem !important;
  font-weight: 850;
}

.season-bar--unknown i {
  min-height: 70px;
  background: linear-gradient(180deg, #dce5ef, #a9b9ca);
  filter: saturate(.4);
}

.season-bar--unknown.is-current i {
  background: linear-gradient(180deg, #dce5ef, #a9b9ca);
}

.editorial-route-images {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  margin-bottom: 24px;
}

.editorial-route-images figure,
.station-media {
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 14px 34px #16345c10;
}

.editorial-route-images img,
.station-media img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.editorial-route-images figcaption,
.station-media figcaption {
  padding: 12px 16px;
  color: var(--muted);
  font-size: .72rem;
}

.footer-links-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  margin-top: 40px;
  padding-top: 28px;
  border-top: 1px solid #ffffff1f;
}

.station-fact-list {
  display: grid;
  gap: 0;
  margin: 24px 0;
}

.station-fact-list div {
  display: grid;
  grid-template-columns: minmax(120px, .42fr) 1fr;
  gap: 18px;
  padding: 12px 0;
  border-top: 1px solid var(--line);
}

.station-fact-list dt {
  color: var(--muted);
  font-size: .78rem;
}

.station-fact-list dd {
  margin: 0;
  color: var(--heading);
  font-weight: 700;
}

.station-overview__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(330px, .9fr);
  gap: clamp(32px, 6vw, 72px);
  align-items: start;
}

.station-overview__grid--facts-only {
  grid-template-columns: minmax(0, 1fr);
}

/* Keep the horizontally scrollable chart inside the narrowest viewport. */
.season-card {
  min-width: 0;
  max-width: 100%;
  overflow: hidden;
}

.season-chart {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  overscroll-behavior-inline: contain;
}

.station-disclaimer {
  padding: 18px;
  border: 1px solid #cfdef1;
  border-radius: 14px;
  background: #f2f7fd;
}

.station-disclaimer p {
  margin: 5px 0 0;
  color: var(--muted);
  font-size: .82rem;
}

.route-steps > li {
  min-height: 170px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
  list-style: none;
}

.route-steps > li span {
  display: grid;
  place-items: center;
  width: 29px;
  height: 29px;
  margin-bottom: 24px;
  border-radius: 9px;
  color: #fff;
  background: var(--brand);
  font-size: .72rem;
  font-weight: 850;
}

.route-steps > li strong { color: var(--heading); }
.route-steps > li p { margin: 6px 0 0; color: var(--muted); font-size: .78rem; }

.station-hub-grid { grid-template-columns: repeat(2, 1fr); }
.station-hub-grid .info-card h2 { font-size: 1.25rem; }
.station-hub-notice { margin-top: 24px; }
.source-card .button { width: 100%; margin-top: 10px; }
.route-show-more[hidden] { display: none; }

@media (max-width: 900px) {
  .station-overview__grid { grid-template-columns: 1fr; }
}

@media (max-width: 760px) {
  #season-chart,
  .main-nav a[href="/#season-chart"] { display: none; }
  .editorial-route-images,
  .footer-links-grid,
  .station-hub-grid { grid-template-columns: 1fr; }
  .route-steps > li { min-height: 0; }
  .route-motion-v8 {
    display: block !important;
    min-height: 250px;
    padding: 18px 14px;
    overflow: hidden;
  }
  .route-motion-v8 .route-motion__map { display: block; margin-top: 0; }
  .route-motion-v8 .route-road { margin: 82px 22px 72px; }
  .route-motion-v8 figcaption { font-size: .7rem; line-height: 1.45; }
}

@media (max-width: 420px) {
  .shell { width: min(100% - 24px, 1240px); }
  .station-fact-list div { grid-template-columns: 1fr; gap: 4px; }
}


/* Ticket-table and route-visual refinements for Moscow–Alchevsk. */
.routes-table-v8 table { table-layout: fixed; }
.routes-table-v8 .route-cell--price > strong { white-space: nowrap; }
.routes-table-v8 .route-cell--comfort { white-space: nowrap; }
.routes-table-v8 .route-cell--comfort .table-icon-chip { width: 27px; height: 27px; margin-right: 2px; vertical-align: middle; }
.routes-table-v8 .route-cell--comfort .table-icon-chip:last-child { margin-right: 0; }
.routes-table-v8 .route-cell--comfort .table-icon-chip .icon { width: 16px; height: 16px; }
.routes-table-v8 .route-cell--arrival > strong { display: inline; }
.routes-table-v8 .arrival-next-day { margin-left: 5px; color: #697789; font-size: .55rem; font-weight: 400; white-space: nowrap; vertical-align: super; }
.routes-table-v8 .route-row-cta { width: 38px; height: 38px; min-width: 38px; padding: 0; font-size: 1.15rem; }
.routes-table-v8 .route-cell--action { text-align: center; }
.table-buy-link { margin: 10px 0 0; font-size: .875rem; font-weight: 700; }
.table-buy-link a { color: var(--brand); text-underline-offset: 3px; }
.route-kpis dd { font-variant-numeric: tabular-nums; }
.route-filterbar-v8 .route-filter select { appearance: none; background-color: #fff; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='m1 1 5 5 5-5' fill='none' stroke='%23587795' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 13px center; background-size: 12px 8px; }
.route-comfort-picker > summary:after { content: ""; width: 12px; height: 8px; flex: 0 0 12px; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='m1 1 5 5 5-5' fill='none' stroke='%23587795' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/12px 8px no-repeat; }
@media(max-width:900px) {
  .routes-table-v8 .route-cell--departure { grid-column: 1/7; }
  .routes-table-v8 .route-cell--arrival { grid-column: 7/13; }
  .routes-table-v8 .route-cell--duration { grid-column: 1/13; display: flex; align-items: baseline; justify-content: center; gap: 8px; text-align: center; white-space: nowrap; }
  .routes-table-v8 .route-cell--duration .route-cell__label { margin: 0; }
  .routes-table-v8 .route-cell--action { justify-content: flex-end; }
  .routes-table-v8 .route-row-cta { width: 44px; height: 44px; min-width: 44px; }
}
@media(max-width:420px) {
  .routes-table-v8 .route-cell--departure { grid-column: 1/7; }
  .routes-table-v8 .route-cell--arrival { grid-column: 7/13; }
  .routes-table-v8 .route-cell--duration { grid-column: 1/13; }
  .routes-table-v8 .route-cell--action { grid-column: 8/13; }
  .routes-table-v8 .route-cell--comfort { grid-column: 3/8; }
}

/* moskva-alchevsk-demand-history-v1 */
.trip-calculator-intro{white-space:normal}
.demand-history-section{border-top:1px solid var(--line);background:linear-gradient(180deg,#f7faff 0,#eef4fb 100%)}
.season-card--demand{overflow:hidden}
.demand-season-chart .season-bar i{min-height:2px}
.demand-season-chart .season-bar:focus-visible{outline:0}
.demand-season-chart .season-bar:focus-visible i{box-shadow:inset 0 1px #ffffff80,0 0 0 3px #ff8a1f66}
.season-card--demand .season-card__meta{justify-content:flex-start}
.season-card--demand .season-card__meta output{font-weight:600}
.season-card--demand .season-method{max-width:1040px}
@media(max-width:760px){.demand-season-chart{grid-template-columns:repeat(12,56px);height:250px}.season-card--demand .season-card__meta{display:grid;gap:10px}.season-card--demand .chart-legend{gap:10px}}
@media(max-width:760px){.demand-history-section,.main-nav a[href$="#season-chart"]{display:none!important}}

/* Full-width route reference pages and sourced transport comparison. */
.interior-wide-page .shell { width: min(1440px, calc(100% - 64px)); }
.interior-wide-page .routes-table-v8,
.interior-wide-page .station-hub-grid { width: 100%; max-width: none; }
.pricing-page .content-grid { display: block; }
.pricing-page .prose { max-width: none; }
.pricing-page .source-card { position: static; margin-top: 30px; }
.pricing-page .source-card .button { width: auto; }

.comparison-table table { width: 100%; min-width: 0; table-layout: fixed; }
.comparison-table th,
.comparison-table td { overflow-wrap: anywhere; }
.comparison-table tbody th { font-size: .9rem; }
.comparison-table tbody td { line-height: 1.5; }
.comparison-table td small { display: block; margin-top: 4px; color: var(--muted); font-size: .7rem; line-height: 1.4; }
.comparison-table a { color: var(--brand); text-underline-offset: 3px; }
.transport-table th:nth-child(1) { width: 16%; }
.transport-table th:nth-child(2) { width: 21%; }
.transport-table th:nth-child(3) { width: 23%; }
.transport-table th:nth-child(4) { width: 40%; }
.price-summary-table { margin: 25px 0 28px; }
.price-summary-table th:nth-child(1) { width: 19%; }
.price-summary-table th:nth-child(2) { width: 28%; }
.price-summary-table th:nth-child(3) { width: 32%; }
.price-summary-table th:nth-child(4) { width: 21%; }
.price-summary-table td:first-child,
.price-summary-table td:last-child { font-variant-numeric: tabular-nums; font-weight: 700; white-space: nowrap; }
.price-summary-table td:last-child { color: var(--heading); }

@media (max-width: 760px) {
  .interior-wide-page .shell { width: min(100% - 24px, 1440px); }
  .comparison-table { overflow: visible; }
  .comparison-table table,
  .comparison-table tbody { display: block; }
  .comparison-table thead { display: none; }
  .comparison-table caption { display: block; }
  .comparison-table tbody { padding: 10px; }
  .comparison-table tbody tr { display: grid; gap: 10px; margin-bottom: 10px; padding: 16px; border: 1px solid var(--line); border-radius: 12px; background: #fff; }
  .comparison-table tbody tr:last-child { margin-bottom: 0; }
  .comparison-table tbody th,
  .comparison-table tbody td { display: block; width: auto; padding: 0; border: 0; white-space: normal; }
  .transport-table.comparison-table tbody tr > th { width: 100%; }
  .comparison-table tbody th { font-size: 1rem; }
  .comparison-table tbody td::before { content: attr(data-label); display: block; margin-bottom: 2px; color: var(--muted); font-size: .7rem; font-weight: 650; }
  .price-summary-table tbody tr { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .price-summary-table tbody td:nth-child(2),
  .price-summary-table tbody td:nth-child(3) { grid-column: 1 / -1; }
}
