:root {
  --navy: #102536;
  --navy-2: #17344c;
  --ink: #1b2430;
  --muted: #5c564c;
  --paper: #f3efe6;
  --card: #fffdf8;
  --line: #e3dccf;
  --amber: #e4a11a;
  --amber-deep: #b67908;
  --green: #1d7a52;
  --header: 74px;
  --wrap: 1120px;
  --display: "Newsreader", "Iowan Old Style", Georgia, serif;
  --font: "Source Sans 3", "Segoe UI", sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  color-scheme: light;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.55;
}

img {
  max-width: 100%;
  height: auto;
}

a {
  color: inherit;
}

:focus-visible {
  outline: 3px solid var(--amber);
  outline-offset: 3px;
}

.btn-amber:focus-visible {
  outline-color: #fffdf8;
}

::selection {
  background: #f0d48a;
  color: #1a1408;
}

.skip {
  position: absolute;
  left: 12px;
  top: -48px;
  z-index: 40;
  background: var(--amber);
  color: #1a1408;
  padding: 8px 12px;
  font-weight: 700;
}

.skip:focus {
  top: 12px;
}

.wrap {
  width: min(var(--wrap), calc(100% - 40px));
  margin-inline: auto;
}

.kicker {
  margin: 0 0 8px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--amber-deep);
}

h1, h2, .sum, .phone-xl, .ticket-price {
  font-family: var(--display);
  font-weight: 600;
  letter-spacing: -0.02em;
}

h1, h2, p {
  margin-top: 0;
}

h2 {
  margin: 0 0 12px;
  font-size: clamp(2rem, 4vw, 3.1rem);
  line-height: 1.05;
}

section[id] {
  scroll-margin-top: calc(var(--header) + 12px);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: var(--paper);
  border-bottom: 1px solid rgba(16, 37, 54, 0.08);
}

.bar {
  width: min(var(--wrap), calc(100% - 40px));
  margin-inline: auto;
  min-height: var(--header);
  display: flex;
  align-items: center;
  gap: 22px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.mark-bus {
  width: 38px;
  height: 38px;
  border-radius: 11px;
  background: var(--navy);
  position: relative;
  flex: none;
}

.mark-bus::before {
  content: "";
  position: absolute;
  left: 8px;
  right: 8px;
  top: 17px;
  height: 3px;
  border-radius: 2px;
  background: var(--amber);
}

.mark-bus::after {
  content: "";
  position: absolute;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--amber);
  left: 7px;
  top: 15px;
  box-shadow: 16px 0 0 var(--amber);
}

.brand strong {
  display: block;
  font-size: 1.05rem;
  line-height: 1.1;
}

.brand small {
  display: block;
  margin-top: 2px;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.nav {
  margin-left: auto;
  display: flex;
  gap: 20px;
}

.nav a {
  text-decoration: none;
  font-weight: 700;
  font-size: 0.98rem;
}

.nav a:hover {
  color: var(--amber-deep);
}

.head-call {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  background: var(--navy);
  color: #f6f3ea;
  font-weight: 700;
  padding: 10px 14px;
  border-radius: 999px;
}

.head-call:hover {
  background: var(--navy-2);
}

.hero {
  background:
    radial-gradient(ellipse 70% 80% at 100% 0%, rgba(228, 161, 26, 0.18), transparent 55%),
    linear-gradient(165deg, #16344c 0%, var(--navy) 58%, #0c1c2a 100%);
  color: #f6f3ea;
  padding: 72px 0 92px;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(260px, 0.72fr);
  gap: 48px;
  align-items: end;
}

.hero .kicker {
  color: #f0d48a;
}

h1 {
  margin: 0 0 16px;
  font-size: clamp(2.7rem, 6vw, 4.7rem);
  line-height: 0.98;
  max-width: 12ch;
}

.lead {
  margin: 0;
  max-width: 38rem;
  font-size: 1.2rem;
  line-height: 1.5;
  color: #d5e0ea;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 10px 18px;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 700;
}

.btn-amber {
  background: var(--amber);
  color: #1a1408;
}

.btn-amber:hover {
  background: #f0b12e;
}

.btn-ghost {
  color: #f6f3ea;
  border: 1px solid rgba(246, 243, 234, 0.45);
}

.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.08);
}

.line {
  position: relative;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  list-style: none;
  margin: 36px 0 0;
  padding: 0;
  max-width: 38rem;
}

.line::before {
  content: "";
  position: absolute;
  top: 4px;
  left: 5px;
  right: 5px;
  height: 2px;
  background: rgba(228, 161, 26, 0.85);
}

.line li {
  position: relative;
  z-index: 1;
  flex: 1;
  color: #e7eef4;
  font-weight: 700;
  font-size: 0.95rem;
}

.line li span {
  display: block;
  margin-top: 10px;
}

.line li small {
  display: block;
  margin-top: 2px;
  color: #b7c6d3;
  font-weight: 500;
  font-size: 0.82rem;
}

.line li::before {
  content: "";
  display: block;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--amber);
  box-shadow: 0 0 0 4px #143049;
}

.line li:nth-child(2),
.line li:nth-child(3) {
  text-align: center;
}

.line li:nth-child(2)::before,
.line li:nth-child(3)::before {
  margin-inline: auto;
}

.line li:last-child {
  text-align: right;
}

.line li:last-child::before {
  margin-left: auto;
}

.ticket {
  background: var(--card);
  color: var(--ink);
  padding: 22px 22px 20px;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.18);
}

.ticket-kicker {
  margin: 0;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--amber-deep);
}

.ticket-price {
  margin: 6px 0 0;
  font-size: 4.2rem;
  line-height: 0.9;
}

.ticket-price small {
  font-size: 1.4rem;
  margin-left: 4px;
}

.ticket-route {
  margin: 10px 0 0;
  font-weight: 700;
}

.ticket dl {
  display: grid;
  gap: 10px;
  margin: 16px 0 0;
  padding-top: 14px;
  border-top: 1px dashed #d9d0c2;
}

.ticket div {
  display: flex;
  justify-content: space-between;
  gap: 16px;
}

.ticket dt {
  color: var(--muted);
}

.ticket dd {
  margin: 0;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.facts-wrap {
  position: relative;
  z-index: 2;
  margin-top: -36px;
}

.facts {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  background: var(--card);
  border: 1px solid var(--line);
  box-shadow: 0 16px 40px rgba(16, 32, 48, 0.06);
}

.fact {
  padding: 22px 24px 24px;
}

.fact + .fact {
  border-left: 1px solid var(--line);
}

.fact strong {
  display: block;
  font-family: var(--display);
  font-size: 2.3rem;
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1;
}

.fact span {
  display: block;
  margin-top: 6px;
  color: var(--muted);
}

.block {
  padding: 76px 0;
}

.block-head {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 24px;
  margin-bottom: 22px;
}

.block-head p {
  margin: 0;
  max-width: 36rem;
  color: var(--muted);
}

.legend {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 14px;
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--card);
  border: 1px solid var(--line);
  padding: 6px 10px 6px 6px;
  font-size: 0.92rem;
}

.badge {
  display: inline-block;
  min-width: 1.7rem;
  padding: 1px 6px;
  border-radius: 999px;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-align: center;
  line-height: 1.5;
}

.badge.xx {
  background: #f0d48a;
  color: #1c1406;
}

.badge.x {
  background: var(--navy);
  color: #f6f3ea;
}

.badge.ny {
  background: var(--green);
  color: white;
}

.scroll-hint {
  display: none;
  margin: 0 0 8px;
  color: var(--muted);
  font-size: 0.92rem;
}

.table-scroll {
  overflow-x: auto;
  background:
    linear-gradient(to right, var(--card) 30%, rgba(255, 253, 248, 0)),
    linear-gradient(to left, var(--card) 30%, rgba(255, 253, 248, 0)) 100% 0;
  background-repeat: no-repeat;
  background-size: 28px 100%, 28px 100%;
  background-attachment: local, scroll;
  border: 1px solid var(--line);
}

.sheet {
  width: 100%;
  min-width: 880px;
  border-collapse: separate;
  border-spacing: 0;
  background: var(--card);
  font-variant-numeric: tabular-nums;
}

.sheet caption {
  caption-side: bottom;
  text-align: left;
  padding: 12px 2px 0;
  color: var(--muted);
  font-size: 0.92rem;
}

.sheet th,
.sheet td {
  padding: 7px 8px;
  text-align: center;
  border-bottom: 1px solid var(--line);
  white-space: nowrap;
}

.sheet thead th {
  background: var(--navy-2);
  color: #f7f4ee;
  font-weight: 700;
  font-size: 0.92rem;
  vertical-align: bottom;
  padding-top: 10px;
  padding-bottom: 10px;
}

.sheet thead th:first-child {
  position: sticky;
  left: 0;
  z-index: 2;
}

.sheet thead th .badge {
  display: table;
  margin: 0 auto 4px;
}

.sheet thead .badge.x {
  background: #f4efe4;
  color: var(--navy);
}

.sheet thead th:first-child,
.sheet tbody th[scope="row"] {
  text-align: left;
  padding-left: 14px;
}

.sheet tbody th[scope="row"] {
  position: sticky;
  left: 0;
  z-index: 1;
  font-weight: 700;
  box-shadow: 8px 0 12px -12px rgba(16, 32, 48, 0.8);
}

.sheet tbody.go th,
.sheet tbody.go td {
  background: var(--card);
}

.sheet tbody.back th,
.sheet tbody.back td {
  background: #f7f6f1;
}

.sheet tbody tr:hover th,
.sheet tbody tr:hover td {
  background: #f8efd8;
}

.sheet tr.turn th {
  box-shadow: inset 3px 0 0 var(--amber), 8px 0 12px -12px rgba(16, 32, 48, 0.8);
}

.sheet td.off {
  color: #c2baad;
}

.sheet tr.dir td {
  background: var(--navy);
  color: #f6f3ea;
  text-align: left;
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding-top: 9px;
  padding-bottom: 9px;
}

.sheet tr.dir:hover td {
  background: var(--navy);
}

.notes {
  margin: 14px 0 0;
  padding-left: 18px;
  color: var(--muted);
}

.notes li + li {
  margin-top: 4px;
}

.prices {
  display: grid;
  grid-template-columns: 1fr 1fr 1.35fr;
  gap: 14px;
  list-style: none;
  margin: 8px 0 0;
  padding: 0;
}

.prices li {
  background: var(--card);
  border: 1px solid var(--line);
  padding: 22px 22px 24px;
}

.sum {
  margin: 4px 0 8px;
  font-size: 3.4rem;
  line-height: 0.95;
}

.sum small {
  font-size: 1.25rem;
  margin-left: 2px;
}

.prices p:last-child {
  margin: 0;
  color: var(--muted);
}

.pair-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 12px;
}

.pair-grid p {
  margin: 0;
}

.pair-grid strong {
  display: block;
  font-family: var(--display);
  font-size: 2rem;
  font-weight: 600;
  letter-spacing: -0.03em;
  color: var(--ink);
}

.pair-grid span {
  color: var(--muted);
}

.vat {
  margin: 14px 0 0;
  color: var(--muted);
}

.fees {
  list-style: none;
  margin: 28px 0 0;
  padding: 0;
}

.fees li {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 24px;
  padding: 14px 0;
  border-top: 1px solid var(--line);
}

.fees strong {
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.fine strong {
  color: #8d3414;
}

.about {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 22px;
  align-items: stretch;
}

.panel {
  background: var(--card);
  border: 1px solid var(--line);
  padding: 28px 28px 12px;
}

.meta {
  display: grid;
  grid-template-columns: 9.5rem 1fr;
  gap: 12px 18px;
  margin: 18px 0 22px;
}

.meta dt {
  color: var(--muted);
}

.meta dd {
  margin: 0;
  font-weight: 700;
}

.contact-card {
  background: var(--navy);
  color: #f6f3ea;
  padding: 32px 32px 28px;
}

.contact-card .kicker {
  color: #f0d48a;
}

.contact-card h2 {
  margin-bottom: 8px;
}

.hours {
  margin: 0 0 18px;
  color: #d5e0ea;
}

.phone-xl {
  display: inline-block;
  color: #f0d48a;
  text-decoration: none;
  font-size: clamp(2.2rem, 4vw, 3rem);
  line-height: 1;
}

.phone-xl:hover {
  color: #fff4d2;
}

.mail {
  display: inline-block;
  margin-top: 12px;
  color: #f6f3ea;
  font-weight: 700;
}

.addr {
  margin: 22px 0 0;
  padding-top: 16px;
  border-top: 1px solid rgba(246, 243, 234, 0.16);
  color: #d5e0ea;
}

.addr strong {
  color: #f6f3ea;
}

.docs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  list-style: none;
  margin: 8px 0 0;
  padding: 0;
}

.docs a {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-height: 150px;
  padding: 20px;
  text-decoration: none;
  background: var(--card);
  border: 1px solid var(--line);
}

.docs a:hover {
  border-color: var(--amber);
}

.docs small {
  font-weight: 800;
  letter-spacing: 0.12em;
  color: var(--amber-deep);
}

.docs strong {
  font-size: 1.25rem;
  line-height: 1.25;
}

.docs span {
  margin-top: auto;
  color: var(--muted);
}

.aside-note {
  margin-top: 22px;
  padding: 18px 20px;
  background: var(--card);
  border-left: 4px solid var(--amber);
}

.aside-note h3 {
  margin: 0 0 6px;
  font-size: 1.15rem;
}

.aside-note p {
  margin: 0;
}

section.fund {
  background: white;
  border-top: 1px solid var(--line);
  padding: 36px 0;
}

.wrap.fund {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(240px, 440px);
  gap: 28px;
  align-items: center;
}

.fund h2 {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
}

.wrap.fund img {
  width: 100%;
  min-width: 0;
}

.fund p {
  margin: 0;
  max-width: 38rem;
  color: var(--muted);
}

.code {
  margin-bottom: 8px;
  font-weight: 800;
  letter-spacing: 0.04em;
}

.site-footer {
  background: var(--navy);
  color: #d5e0ea;
  padding: 22px 0 28px;
}

.foot {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 22px;
}

.foot strong {
  color: #f6f3ea;
}

.callbar {
  display: none;
}

@media (max-width: 980px) {
  .hero-grid,
  .about,
  .wrap.fund,
  .prices {
    grid-template-columns: 1fr;
  }

  .docs {
    grid-template-columns: 1fr 1fr;
  }

  h1 {
    max-width: none;
  }
}

@media (max-width: 860px) {
  .bar {
    flex-wrap: wrap;
    gap: 10px 12px;
    padding: 12px 0;
  }

  .nav {
    order: 3;
    width: 100%;
    margin: 0;
    justify-content: space-between;
    gap: 8px;
    font-size: 0.95rem;
  }

  .head-call {
    margin-left: auto;
    padding: 8px 12px;
  }
}

@media (max-width: 720px) {
  .wrap,
  .bar {
    width: min(var(--wrap), calc(100% - 28px));
  }

  .hero {
    padding: 48px 0 64px;
  }

  .facts {
    grid-template-columns: 1fr;
  }

  .fact + .fact {
    border-left: 0;
    border-top: 1px solid var(--line);
  }

  .block {
    padding: 56px 0;
  }

  .block-head {
    display: block;
  }

  .block-head .btn {
    margin-top: 16px;
  }

  .docs,
  .pair-grid {
    grid-template-columns: 1fr;
  }

  .meta {
    grid-template-columns: 1fr;
    gap: 2px;
  }

  .meta dt:not(:first-child) {
    margin-top: 12px;
  }

  .scroll-hint {
    display: block;
  }

  .fees li {
    flex-direction: column;
    gap: 4px;
  }

  .callbar {
    position: fixed;
    left: 12px;
    right: 12px;
    bottom: 12px;
    z-index: 25;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 52px;
    background: var(--amber);
    color: #1a1408;
    text-decoration: none;
    font-weight: 800;
    border-radius: 999px;
    box-shadow: 0 10px 24px rgba(16, 32, 48, 0.25);
  }

  body {
    padding-bottom: 78px;
  }

  .line {
    flex-direction: column;
    gap: 16px;
    margin-top: 28px;
  }

  .line::before {
    top: 6px;
    bottom: 6px;
    left: 5px;
    right: auto;
    width: 2px;
    height: auto;
  }

  .line li,
  .line li:nth-child(2),
  .line li:nth-child(3),
  .line li:last-child {
    display: flex;
    align-items: center;
    gap: 12px;
    text-align: left;
  }

  .line li::before,
  .line li:nth-child(2)::before,
  .line li:nth-child(3)::before,
  .line li:last-child::before {
    margin: 0;
    flex: none;
  }

  .line li span {
    margin: 0;
  }

  .line li small {
    display: inline;
    margin-left: 6px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

@media print {
  .site-header,
  .callbar,
  .scroll-hint,
  .cta-row,
  .head-call {
    display: none !important;
  }

  body {
    background: white;
    padding: 0;
    color: black;
  }

  .hero,
  .contact-card,
  .site-footer,
  .sheet thead th,
  .sheet tr.dir td {
    background: white;
    color: black;
  }

  .lead,
  .line li,
  .hours,
  .addr {
    color: black;
  }

  .sheet {
    min-width: 0;
    font-size: 9pt;
  }

  .sheet tbody th[scope="row"] {
    position: static;
    box-shadow: none;
  }

  a {
    text-decoration: none;
  }
}
