/* Карточка тура /tours/{slug} — ТЗ + палитра docs/Палитра.md */
.td-page {
  padding-bottom: 72px;
}

.td-hero {
  margin: 0 0 28px;
}

.td-hero-media {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  background: #eaf0ff;
  aspect-ratio: 2 / 1;
  max-height: 420px;
  box-shadow: 0 4px 16px rgba(23, 32, 51, 0.08);
}

.td-hero-media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.td-badge {
  position: absolute;
  left: 16px;
  top: 16px;
  height: 30px;
  padding: 0 12px;
  border-radius: 999px;
  background: #eaf0ff;
  color: #2b4fad;
  font-size: 12px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  box-shadow: 0 2px 8px rgba(23, 32, 51, 0.1);
}

.td-badge-accent {
  background: #fff3e0;
  color: #b45309;
}

.td-badge-muted {
  background: #f7f9fc;
  color: #5b6b85;
}

.td-gallery {
  display: flex;
  gap: 10px;
  margin-top: 12px;
  overflow-x: auto;
  padding-bottom: 4px;
}

.td-gallery-thumb {
  flex: 0 0 120px;
  height: 76px;
  padding: 0;
  border: 2px solid #d8e1f0;
  border-radius: 12px;
  overflow: hidden;
  background: #fff;
  cursor: pointer;
}

.td-gallery-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.td-gallery-thumb.is-active,
.td-gallery-thumb:hover {
  border-color: #4370e3;
}

.td-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(280px, 0.7fr);
  gap: 28px;
  align-items: start;
}

.td-title {
  margin: 0 0 10px;
  font-size: clamp(28px, 3vw, 36px);
  color: #172033;
  line-height: 1.2;
}

.td-formed {
  margin: 0 0 14px;
  font-size: 16px;
  color: #5b6b85;
}

.td-formed strong {
  color: #172033;
}

.td-cats {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 20px;
}

.td-chip {
  display: inline-flex;
  align-items: center;
  height: 32px;
  padding: 0 12px;
  border-radius: 999px;
  background: #eaf0ff;
  color: #2b4fad;
  font-size: 13px;
  font-weight: 700;
}

.td-chip:hover {
  background: #4370e3;
  color: #fff;
}

.td-card {
  background: #fff;
  border: 1px solid #d8e1f0;
  border-radius: 16px;
  padding: 22px 24px;
  margin-bottom: 18px;
  box-shadow: 0 4px 16px rgba(23, 32, 51, 0.06);
}

.td-card-warn {
  border-color: #fcd9a8;
  background: #fff7ed;
}

.td-h2 {
  margin: 0 0 14px;
  font-size: 20px;
  color: #172033;
}

.td-route {
  margin: 0;
  font-size: 17px;
  font-weight: 700;
  color: #172033;
  line-height: 1.5;
}

.td-lead {
  margin: 0 0 12px;
  font-size: 18px;
  color: #5b6b85;
  line-height: 1.55;
}

.td-prose {
  color: #172033;
  white-space: pre-line;
}

.td-star {
  color: #b45309;
}

.td-incl-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 10px;
}

.td-incl-list li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  font-size: 16px;
  line-height: 1.45;
  color: #172033;
}

.td-incl-check {
  flex: 0 0 28px;
  height: 28px;
  border-radius: 8px;
  background: #ecfdf3;
  color: #15803d;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 14px;
}

.td-footnote {
  margin: 14px 0 0;
  font-size: 13px;
  color: #7b8ba5;
}

.td-program-short {
  margin: 0 0 12px;
  color: #5b6b85;
  line-height: 1.55;
}

.td-details {
  margin-top: 4px;
}

.td-details summary {
  cursor: pointer;
  color: #4370e3;
  font-weight: 700;
  font-size: 15px;
  list-style: none;
}

.td-details summary::-webkit-details-marker {
  display: none;
}

.td-details summary:hover {
  color: #345ac0;
}

.td-details[open] summary {
  margin-bottom: 12px;
}

.td-program-full {
  margin: 0;
}

.td-meta-dl {
  margin: 0;
  display: grid;
  gap: 14px;
}

.td-meta-dl dt {
  margin: 0 0 4px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #4370e3;
}

.td-meta-dl dd {
  margin: 0;
  font-size: 16px;
  color: #172033;
  line-height: 1.45;
}

.td-meta-dl a {
  color: #4370e3;
  font-weight: 700;
}

.td-aside {
  position: sticky;
  top: 16px;
}

.td-aside-card {
  background: #fff;
  border: 1px solid #d8e1f0;
  border-radius: 16px;
  padding: 20px 22px;
  box-shadow: 0 8px 24px rgba(23, 32, 51, 0.1);
}

.td-aside-head {
  margin-bottom: 16px;
  padding-bottom: 14px;
  border-bottom: 1px solid #d8e1f0;
}

.td-aside-head .td-h2 {
  margin: 0 0 8px;
}

.td-aside-price {
  margin: 0;
  font-family: "Days One", sans-serif;
  font-size: 26px;
  color: #172033;
  line-height: 1.15;
}

.td-aside-price span {
  display: block;
  margin-top: 4px;
  font-family: "PT Sans", sans-serif;
  font-size: 13px;
  font-weight: 400;
  color: #7b8ba5;
}

.td-dates {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.td-date-row {
  border: 1px solid #d8e1f0;
  border-radius: 14px;
  padding: 14px;
  background: #f7f9fc;
}

.td-date-main {
  display: grid;
  gap: 8px;
}

.td-date-when {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  font-size: 16px;
  color: #172033;
}

.td-bus {
  font-size: 16px;
  line-height: 1;
}

.td-date-prices {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
  align-items: baseline;
}

.td-price-full {
  font-size: 18px;
  font-weight: 700;
  color: #172033;
}

.td-price-disc {
  font-size: 14px;
  color: #b45309;
  font-weight: 700;
  background: #fff3e0;
  padding: 2px 8px;
  border-radius: 999px;
}

.td-date-seats {
  font-size: 13px;
  font-weight: 700;
}

.td-date-seats.is-ok {
  color: #15803d;
}

.td-date-seats.is-warn {
  color: #b45309;
}

.td-date-seats.is-none {
  color: #b91c1c;
}

.td-date-actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 12px;
}

.td-btn-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 16px;
  border-radius: 12px;
  background: var(--orange, #f48625);
  color: #fff;
  font-weight: 700;
  font-size: 14px;
  border: 1px solid var(--orange, #f48625);
  text-align: center;
  text-decoration: none;
}

.td-btn-cta:hover {
  filter: brightness(1.05);
  color: #fff;
}

.td-btn-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 0 14px;
  border-radius: 12px;
  background: #fff;
  color: #345ac0;
  font-weight: 700;
  font-size: 14px;
  border: 1.5px solid #4370e3;
  text-align: center;
  text-decoration: none;
}

.td-btn-outline:hover {
  background: #eaf0ff;
  color: #2b4fad;
}

.td-btn-disabled {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 16px;
  border-radius: 12px;
  background: #e5eaf2;
  color: #8a97aa;
  font-weight: 700;
  font-size: 14px;
}

.td-show-all {
  width: 100%;
  margin-top: 14px;
  min-height: 42px;
  border: none;
  background: transparent;
  color: #4370e3;
  font-weight: 700;
  font-size: 14px;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.td-show-all:hover {
  color: #345ac0;
}

.td-more-hint,
.td-empty {
  margin: 12px 0 0;
  font-size: 14px;
  color: #7b8ba5;
}

.td-aside-tools {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid #d8e1f0;
}

.td-btn-print {
  min-height: 42px;
  border-radius: 12px;
  border: 1.5px solid #d8e1f0;
  background: #fff;
  color: #172033;
  font-weight: 700;
  font-size: 14px;
  cursor: pointer;
}

.td-btn-print:hover {
  border-color: #4370e3;
  color: #4370e3;
}

@media (max-width: 960px) {
  .td-layout {
    grid-template-columns: 1fr;
  }

  .td-aside {
    position: static;
  }

  .td-hero-media {
    max-height: 280px;
    aspect-ratio: 16 / 9;
  }
}

@media print {
  .no-print,
  .topbar,
  .cat-nav-wrap,
  .dup-menu,
  footer,
  .to-top,
  .skip-link {
    display: none !important;
  }

  .td-aside {
    position: static;
  }

  .td-layout {
    grid-template-columns: 1fr;
  }

  .td-date-extra[hidden] {
    display: block !important;
  }

  .td-page {
    padding: 0;
  }

  .td-card,
  .td-aside-card,
  .td-date-row {
    box-shadow: none;
    break-inside: avoid;
  }
}
