/* Транзит сегодня — в одной системе с zodiac.php */

.tt-page .tt-hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: clamp(24px, 4vw, 38px);
  border-radius: 28px;
  background: linear-gradient(135deg, #4735c7, #684ee8 55%, #7b5af0) !important;
  color: #fff;
  box-shadow: 0 24px 60px rgba(68, 45, 165, .24);
  margin-bottom: 18px;
}

.tt-page .tt-hero h1 {
  margin: 8px 0 10px;
  color: #fff !important;
  font-size: clamp(1.7rem, 3.5vw, 2.4rem);
  letter-spacing: -.03em;
}

.tt-page .tt-hero-meta,
.tt-page .tt-hero-eyebrow {
  color: rgba(255, 255, 255, .88) !important;
}

.tt-page .tt-hero-eyebrow {
  font-weight: 700;
  font-size: .78rem;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.tt-page .tt-hero-orbit {
  font-size: 2.4rem;
  line-height: 1;
  text-align: center;
  opacity: .9;
}

.tt-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0 0 16px;
}

.tt-tab {
  padding: 10px 18px;
  border-radius: 999px;
  border: 1px solid #d8e7e8;
  text-decoration: none;
  color: #2a4050;
  font-size: .88rem;
  font-weight: 800;
  background: #fff;
  transition: .15s;
}

.tt-tab.on,
.tt-tab:hover {
  background: #4735c7;
  color: #fff;
  border-color: #4735c7;
  box-shadow: 0 8px 20px rgba(71, 53, 199, .18);
}

.tt-layout {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.tt-chart-card,
.tt-table-card {
  padding: 22px 24px;
  border-radius: 24px;
  border: 1px solid #e3ebec;
  background: #fff;
  box-shadow: 0 16px 40px rgba(22, 78, 86, .08);
}

.tt-chart-card h2,
.tt-table-head h2 {
  margin: 0 0 8px;
  font-size: 1.05rem;
  color: #1c2c34;
}

.tt-chart-card p,
.tt-table-head p {
  margin: 0 0 14px;
  font-size: .86rem;
  color: #647a82;
  line-height: 1.5;
  max-width: 62ch;
}

.tt-chart-wrap {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 10px;
  border-radius: 18px;
  background: #fbfdfd;
  border: 1px solid #e3ebec;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.tt-empty {
  margin: 0;
  padding: 24px;
  color: #7a8b92;
  text-align: center;
}

body.tt-page svg.bodygraph,
body.tt-page .bodygraph {
  width: 100% !important;
  max-width: min(100%, 680px) !important;
  height: auto !important;
  display: block;
  margin: 0 auto;
}

body.tt-page svg.natal-wheel,
body.tt-page .natal-wheel {
  width: 100% !important;
  max-width: min(100%, 480px) !important;
  height: auto !important;
  display: block;
  margin: 0 auto;
}

.tt-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.tt-legend span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 11px;
  border-radius: 999px;
  background: #fff;
  border: 1px solid #e3ebec;
  font-size: .78rem;
  font-weight: 700;
  color: #4a5d66;
}

.tt-legend i {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #2bb0ff;
  box-shadow: 0 0 0 2px rgba(43, 176, 255, .28);
}

.tt-legend-channel {
  background: #eef8ff !important;
  border-color: #cfe9fb !important;
}

.tt-table-head {
  padding: 0 0 12px;
  border-bottom: 1px solid #edf4f5;
  margin-bottom: 4px;
}

.tt-grid { display: grid; gap: 0; }

.tt-row {
  display: grid;
  gap: 8px;
  padding: 11px 2px;
  border-bottom: 1px solid #f0f5f6;
  font-size: .9rem;
  align-items: center;
}

.tt-row:last-child { border-bottom: none; }

.tt-row--hd { grid-template-columns: 1.15fr .5fr .8fr .85fr; }
.tt-row--natal { grid-template-columns: 1.2fr 1fr .7fr; }

.tt-row--head {
  background: transparent;
  font-weight: 800;
  color: #647a82;
  font-size: .76rem;
  text-transform: uppercase;
  letter-spacing: .04em;
  padding-top: 6px;
}

.tt-row b {
  font-variant-numeric: tabular-nums;
  color: #4735c7;
  font-size: 1rem;
  font-weight: 800;
}

.tt-planet {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  color: #1c2c34;
  min-width: 0;
}

.tt-planet-glyph {
  width: 30px;
  height: 30px;
  flex-shrink: 0;
  border-radius: 10px;
  display: grid;
  place-items: center;
  background: #f4f2fb;
  border: 1px solid #e4dff7;
  font-size: .95rem;
}

.tt-retro {
  font-style: normal;
  font-size: .72rem;
  font-weight: 800;
  color: #c0392b;
}

.tt-cta {
  margin-top: 8px;
  padding: 22px 24px;
  border-radius: 24px;
  border: 1px solid #e3ebec;
  background: #fff;
  box-shadow: 0 16px 40px rgba(22, 78, 86, .08);
}

.tt-cta b {
  display: block;
  margin-bottom: 8px;
  font-size: 1.02rem;
  color: #1c2c34;
}

.tt-cta p {
  margin: 0 0 14px;
  color: #647a82;
  line-height: 1.55;
  font-size: .93rem;
}

.tt-note {
  margin-top: 14px;
  font-size: .8rem;
  color: #7a8b92;
  line-height: 1.5;
}

.tt-moment-form {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 14px;
  margin: 0 0 16px;
  padding: 14px 18px;
  border-radius: 18px;
  border: 1px solid #e3ebec;
  background: #fff;
  box-shadow: 0 8px 24px rgba(22, 78, 86, .06);
}

.tt-moment-label {
  font-size: .82rem;
  font-weight: 800;
  color: #4735c7;
  margin-right: 4px;
}

.tt-moment-form label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: .82rem;
  font-weight: 700;
  color: #4a5f68;
}

.tt-moment-form input[type="date"],
.tt-moment-form input[type="time"] {
  border: 1px solid #d8e7e8;
  border-radius: 10px;
  padding: 7px 10px;
  font-size: .88rem;
  font-family: inherit;
  color: #1c2c34;
}

.tt-moment-now,
.tt-hero-reset {
  font-size: .82rem;
  font-weight: 700;
  color: rgba(255, 255, 255, .95);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.tt-moment-now {
  color: #4735c7;
  text-decoration: none;
}

.tt-moment-now:hover,
.tt-hero-reset:hover {
  opacity: .85;
}

.tt-transit-services {
  margin-top: 8px;
  padding: 22px 24px;
  border-radius: 24px;
  border: 1px solid #e3ebec;
  background: #fff;
  box-shadow: 0 16px 40px rgba(22, 78, 86, .08);
}

.tt-transit-services h2 {
  margin: 0 0 8px;
  font-size: 1.15rem;
  color: #1c2c34;
}

.tt-transit-services-lead {
  margin: 0 0 16px;
  font-size: .9rem;
  line-height: 1.55;
  color: #647a82;
}

.tt-transit-services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 12px;
}

.tt-transit-svc {
  display: flex;
  gap: 12px;
  padding: 16px;
  border-radius: 18px;
  border: 1px solid #e8eef0;
  background: #fafcfd;
}

.tt-transit-svc--link {
  text-decoration: none;
  color: inherit;
  transition: border-color .15s, box-shadow .15s, transform .15s;
}

.tt-transit-svc--link:hover {
  border-color: #c8b8ff;
  box-shadow: 0 10px 28px rgba(71, 53, 199, .1);
  transform: translateY(-1px);
}

.tt-transit-svc-icon {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: #f4f2fb;
  border: 1px solid #e4dff7;
  display: grid;
  place-items: center;
  font-size: 1.1rem;
  flex-shrink: 0;
}

.tt-transit-svc h3 {
  margin: 0 0 6px;
  font-size: .95rem;
  color: #1c2c34;
}

.tt-transit-svc p {
  margin: 0 0 8px;
  font-size: .82rem;
  line-height: 1.5;
  color: #647a82;
}

.tt-transit-svc-tag {
  display: inline-block;
  font-size: .7rem;
  font-weight: 800;
  letter-spacing: .04em;
  text-transform: uppercase;
  padding: 4px 8px;
  border-radius: 999px;
  background: #ede9fe;
  color: #6d28d9;
}

.tt-transit-svc-tag--free {
  background: #dcfce7;
  color: #15803d;
}

@media (max-width: 640px) {
  .tt-page .tt-hero {
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
  }

  .tt-row--hd { grid-template-columns: 1fr 1fr; }
  .tt-row--hd.tt-row--head { display: none; }
  .tt-row--hd .tt-planet { grid-column: 1 / -1; }

  .tt-row--natal { grid-template-columns: 1fr; }
  .tt-row--natal.tt-row--head { display: none; }
}