/* TRANSPORT HUB 2026-09-24
   Taxi / автовокзал / аэропорт — dedicated module.
   Scoped to #transport-hub-2026 / .thub-*. Do not merge into adaptive tip.
   Hands-off: Aviasales/Travelpayouts widgets keep working inside .thub-widget. */

.thub {
  --thub-ink: #15202b;
  --thub-muted: #5a6673;
  --thub-line: #d4dde6;
  --thub-bg: #eef3f7;
  --thub-card: #ffffff;
  --thub-accent: #0a6b7c;
  --thub-accent-soft: #e3f3f6;
  --thub-warm: #c45c26;
  --thub-warm-soft: #f8ebe3;
  --thub-sky: #1a7a9c;
  color: var(--thub-ink);
  font-size: 16px;
  line-height: 1.5;
  margin: 0 0 1.5rem;
}

#transport-hub-2026.thub {
  animation: thub-fade 0.55s ease both;
}

@keyframes thub-fade {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: none; }
}

@keyframes thub-rise {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: none; }
}

.thub__hero {
  position: relative;
  overflow: hidden;
  padding: 1.15rem 1.2rem 1.35rem;
  margin: 0 0 1.1rem;
  border: 1px solid var(--thub-line);
  border-left: 4px solid var(--thub-accent);
  background:
    linear-gradient(125deg, rgba(10, 107, 124, 0.14), rgba(238, 243, 247, 0.92) 42%, #e8eef4),
    repeating-linear-gradient(
      -16deg,
      transparent,
      transparent 11px,
      rgba(10, 107, 124, 0.035) 11px,
      rgba(10, 107, 124, 0.035) 12px
    );
}

.thub__hero--taxi {
  border-left-color: var(--thub-warm);
  background:
    linear-gradient(125deg, rgba(196, 92, 38, 0.14), rgba(238, 243, 247, 0.92) 45%, #eef1f5),
    repeating-linear-gradient(
      -16deg,
      transparent,
      transparent 11px,
      rgba(196, 92, 38, 0.04) 11px,
      rgba(196, 92, 38, 0.04) 12px
    );
}

.thub__hero--air {
  border-left-color: var(--thub-sky);
  background:
    linear-gradient(125deg, rgba(26, 122, 156, 0.16), rgba(238, 243, 247, 0.92) 48%, #e7eef5),
    radial-gradient(ellipse at 92% 0%, rgba(26, 122, 156, 0.18), transparent 55%);
}

.thub__kicker {
  margin: 0 0 0.35rem;
  font-size: 0.76rem;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--thub-accent);
}

.thub__hero--taxi .thub__kicker { color: var(--thub-warm); }
.thub__hero--air .thub__kicker { color: var(--thub-sky); }

.thub__title {
  margin: 0 0 0.45rem;
  font-size: 1.5rem;
  line-height: 1.2;
  font-weight: 700;
  color: var(--thub-ink);
}

.thub__lead {
  margin: 0;
  max-width: 44rem;
  color: var(--thub-muted);
  font-size: 0.98rem;
}

.thub__nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem 0.65rem;
  margin: 0 0 1.15rem;
  padding: 0;
  list-style: none;
  animation: thub-rise 0.6s ease 0.06s both;
}

.thub__nav a {
  display: inline-block;
  padding: 0.35rem 0.7rem;
  border: 1px solid var(--thub-line);
  background: var(--thub-card);
  color: var(--thub-accent);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 600;
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.thub__nav a:hover,
.thub__nav a:focus {
  background: var(--thub-accent-soft);
  border-color: var(--thub-accent);
  color: var(--thub-ink);
}

.thub__nav a[aria-current="page"] {
  background: var(--thub-accent);
  border-color: var(--thub-accent);
  color: #fff;
}

.thub__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.85rem;
  margin: 0 0 1.25rem;
}

@media (min-width: 640px) {
  .thub__grid--taxi {
    grid-template-columns: 1fr 1fr;
  }
}

.thub-card {
  background: var(--thub-card);
  border: 1px solid var(--thub-line);
  padding: 0.95rem 1rem 1.05rem;
  animation: thub-rise 0.55s ease both;
}

.thub-card:nth-child(2) { animation-delay: 0.05s; }
.thub-card:nth-child(3) { animation-delay: 0.1s; }
.thub-card:nth-child(4) { animation-delay: 0.15s; }
.thub-card:nth-child(5) { animation-delay: 0.2s; }

.thub-card__name {
  margin: 0 0 0.35rem;
  font-size: 1.12rem;
  font-weight: 700;
  color: var(--thub-ink);
}

.thub-card__meta {
  margin: 0 0 0.65rem;
  color: var(--thub-muted);
  font-size: 0.92rem;
}

.thub-card__phones {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 0.55rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.thub-card__phones a {
  display: inline-block;
  padding: 0.28rem 0.55rem;
  background: var(--thub-warm-soft);
  color: #8a3a12;
  text-decoration: none;
  font-weight: 700;
  font-size: 0.92rem;
  font-variant-numeric: tabular-nums;
  border: 1px solid rgba(196, 92, 38, 0.22);
  transition: background 0.2s ease, color 0.2s ease;
}

.thub-card__phones a:hover,
.thub-card__phones a:focus {
  background: var(--thub-warm);
  color: #fff;
  border-color: var(--thub-warm);
}

.thub-card--station .thub-card__phones a,
.thub-card--air .thub-card__phones a {
  background: var(--thub-accent-soft);
  color: var(--thub-accent);
  border-color: rgba(10, 107, 124, 0.22);
}

.thub-card--station .thub-card__phones a:hover,
.thub-card--station .thub-card__phones a:focus,
.thub-card--air .thub-card__phones a:hover,
.thub-card--air .thub-card__phones a:focus {
  background: var(--thub-accent);
  color: #fff;
  border-color: var(--thub-accent);
}

.thub-card__label {
  display: block;
  margin: 0 0 0.25rem;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--thub-muted);
}

.thub-card__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 0.85rem 0 0;
}

.thub-card__actions a {
  display: inline-block;
  padding: 0.45rem 0.85rem;
  background: var(--thub-accent);
  color: #fff;
  text-decoration: none;
  font-weight: 700;
  font-size: 0.92rem;
  transition: filter 0.2s ease, transform 0.2s ease;
}

.thub-card__actions a:hover,
.thub-card__actions a:focus {
  filter: brightness(1.08);
  transform: translateY(-1px);
}

.thub-card__actions a.thub-btn--secondary {
  background: transparent;
  color: var(--thub-accent);
  border: 1px solid var(--thub-accent);
}

.thub-media {
  margin: 0 0 1rem;
  overflow: hidden;
  border: 1px solid var(--thub-line);
  background: #dde5ec;
}

.thub-media img {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  vertical-align: middle;
}

.thub-section {
  margin: 0 0 1.35rem;
}

.thub-section__h {
  margin: 0 0 0.55rem;
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--thub-ink);
}

.thub-section__p {
  margin: 0 0 0.75rem;
  color: var(--thub-muted);
  font-size: 0.96rem;
  max-width: 48rem;
}

.thub-facts {
  margin: 0 0 1rem;
  padding: 0.75rem 0.9rem;
  background: var(--thub-bg);
  border: 1px solid var(--thub-line);
  color: var(--thub-ink);
  font-size: 0.94rem;
}

.thub-facts p {
  margin: 0 0 0.45rem;
}

.thub-facts p:last-child {
  margin-bottom: 0;
}

.thub-widget {
  margin: 0.75rem 0 1rem;
  padding: 0.75rem;
  border: 1px dashed rgba(26, 122, 156, 0.35);
  background:
    linear-gradient(180deg, rgba(26, 122, 156, 0.06), transparent 40%),
    #fff;
  min-height: 2.5rem;
  overflow: auto;
}

.thub-widget__caption {
  margin: 0 0 0.55rem;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--thub-sky);
}

.thub-widget iframe,
.thub-widget script + div,
.thub-widget > div {
  max-width: 100%;
}

.thub-table-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border: 1px solid var(--thub-line);
  background: #fff;
  margin: 0 0 0.75rem;
}

.thub-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.92rem;
}

.thub-table th,
.thub-table td {
  padding: 0.55rem 0.7rem;
  text-align: left;
  border-bottom: 1px solid var(--thub-line);
  vertical-align: top;
}

.thub-table th {
  background: var(--thub-accent-soft);
  color: var(--thub-accent);
  font-weight: 700;
  white-space: nowrap;
}

.thub-table tbody tr:nth-child(even) td {
  background: #f7fafc;
}

.thub-table tbody tr:hover td {
  background: #eef7fa;
}

.thub-note {
  margin: 0 0 1rem;
  padding: 0.7rem 0.85rem;
  background: #f5f7fa;
  border-left: 3px solid var(--thub-accent);
  color: var(--thub-muted);
  font-size: 0.92rem;
}

.thub-note--warn {
  border-left-color: var(--thub-warm);
}

.thub-amenities {
  margin: 0 0 1rem;
  padding: 0;
  list-style: none;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.35rem 0.75rem;
  font-size: 0.9rem;
  color: var(--thub-ink);
}

@media (max-width: 520px) {
  .thub-amenities {
    grid-template-columns: 1fr;
  }
  .thub__title {
    font-size: 1.28rem;
  }
}

.thub-amenities li {
  padding: 0.35rem 0.5rem;
  background: var(--thub-bg);
  border: 1px solid var(--thub-line);
}

#tabi-root {
  min-height: 0;
}
