:root {
  color-scheme: light;
  --font-sans: Manrope, Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-display: Lora, Georgia, "Times New Roman", serif;
  --bg: #f3f7f5;
  --paper: #fffdf9;
  --surface: #ffffff;
  --mist: #e7f2ef;
  --ink: #10202b;
  --muted: #61727d;
  --soft: #8d9ca5;
  --line: #d7e3e0;
  --line-strong: #bed0cc;
  --navy: #082f3a;
  --teal: #0b7b83;
  --teal-deep: #0b5966;
  --gold: #bd9148;
  --coral: #cf4637;
  --coral-dark: #a9352a;
  --success: #257a5a;
  --warning: #a16d18;
  --danger: #b8322a;
  --shadow-sm: 0 10px 26px rgba(16, 32, 43, 0.08);
  --shadow-md: 0 22px 56px rgba(16, 32, 43, 0.15);
  --radius: 8px;
  --radius-sm: 6px;
  --shell: 1420px;
  --header: 82px;
  --focus: 0 0 0 4px rgba(10, 113, 128, 0.22);
  --ease-standard: cubic-bezier(0.22, 1, 0.36, 1);
}

/* Public catalog refinements: actions stay readable at every content width. */
.deal-bottom {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 44px;
  align-items: end;
  gap: 8px;
  margin-top: auto;
}

.deal-price {
  grid-column: 1 / -1;
  min-width: 0;
}

.deal-bottom .button {
  grid-column: 1;
  width: 100%;
  min-width: 0;
  white-space: nowrap;
}

.deal-bottom .bookmark {
  grid-column: 2;
  width: 44px;
  min-width: 44px;
  padding: 0;
}

.departure-row {
  grid-template-columns: 88px minmax(130px, 1fr) minmax(160px, 1.2fr) 82px 94px minmax(108px, auto) minmax(118px, 136px) 44px;
  gap: 12px;
}

.departure-row .button {
  width: 100%;
  min-width: 0;
  padding-inline: 10px;
  white-space: nowrap;
}

.departure-row .bookmark {
  width: 44px;
  min-width: 44px;
  padding: 0;
}

.price-cell {
  min-width: 0;
}

.price-cell strong {
  white-space: nowrap;
}

.data-status-note.is-error {
  border-color: rgba(184, 50, 42, 0.25);
  background: rgba(184, 50, 42, 0.06);
}

.data-status-note.is-error > svg {
  color: var(--danger);
}

.tickets-hero {
  padding: 44px 0 34px;
  border-bottom: 1px solid var(--line);
  background:
    linear-gradient(180deg, rgba(232, 246, 247, 0.88), rgba(246, 243, 236, 0)),
    var(--bg);
}

.page-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}

.tickets-hero h1 {
  margin-bottom: 8px;
  font-family: var(--font-display);
  font-size: 52px;
  line-height: 1;
}

.tickets-hero p {
  max-width: 620px;
  margin-bottom: 0;
  color: var(--muted);
  font-size: 17px;
}

.tickets-hero-mark {
  display: grid;
  width: 88px;
  height: 88px;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 50%;
  background: var(--teal-deep);
  color: #fff;
  box-shadow: 0 18px 34px rgba(7, 75, 93, 0.2);
}

.tickets-hero-mark svg {
  width: 40px;
  height: 40px;
}

.tickets-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 24px;
  align-items: start;
}

.tickets-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 16px;
}

.tickets-head h2 {
  margin-bottom: 0;
  font-size: 36px;
}

.saved-ticket-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.saved-ticket-card,
.tickets-empty,
.tickets-note {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}

.saved-ticket-card {
  display: grid;
  gap: 16px;
  min-width: 0;
  padding: 18px;
  transition: transform .2s ease, box-shadow .2s ease;
}
.saved-ticket-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 18px 34px rgba(16, 32, 43, .1);
}

.saved-ticket-top {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 12px;
}

.saved-ticket-top > strong {
  overflow-wrap: anywhere;
  color: var(--muted);
  font-size: 12px;
  text-align: right;
}

.ticket-status {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 5px 9px;
  border-radius: 999px;
  background: rgba(161, 109, 24, 0.12);
  color: var(--warning);
  font-size: 12px;
  font-weight: 900;
}

.ticket-status.is-paid {
  background: rgba(37, 122, 90, 0.12);
  color: var(--success);
}

.saved-ticket-card h3 {
  margin-bottom: 0;
  font-size: 22px;
  line-height: 1.12;
}

.saved-ticket-route {
  display: grid;
  gap: 7px;
  padding: 12px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  color: var(--teal-deep);
  font-size: 13px;
  font-weight: 850;
}

.saved-ticket-route span,
.tickets-note-line {
  display: flex;
  align-items: center;
  gap: 8px;
}

.saved-ticket-route svg,
.tickets-note-line svg {
  width: 17px;
  height: 17px;
}

.saved-ticket-facts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.saved-ticket-facts span {
  display: grid;
  gap: 3px;
  min-width: 0;
  padding: 9px;
  border-radius: var(--radius-sm);
  background: var(--mist);
}

.saved-ticket-facts small {
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
}

.saved-ticket-facts strong {
  overflow-wrap: anywhere;
  font-size: 14px;
}

.saved-ticket-open {
  width: 100%;
  margin-top: auto;
}

.tickets-empty {
  display: grid;
  justify-items: center;
  gap: 10px;
  min-height: 310px;
  padding: 38px 24px;
  text-align: center;
}

.tickets-empty-icon {
  display: grid;
  width: 58px;
  height: 58px;
  place-items: center;
  border-radius: 50%;
  background: var(--mist);
  color: var(--teal-deep);
}

.tickets-empty h2 {
  margin-bottom: 0;
  font-size: 24px;
}

.tickets-empty p {
  max-width: 460px;
  margin-bottom: 8px;
  color: var(--muted);
  font-weight: 720;
}

.tickets-note {
  display: grid;
  gap: 12px;
  padding: 20px;
}

.tickets-note h2 {
  margin-bottom: 0;
  font-family: var(--font-display);
  font-size: 30px;
}

.tickets-note p {
  margin-bottom: 4px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 720;
}

.tickets-note-line {
  padding-top: 10px;
  border-top: 1px solid var(--line);
  color: var(--teal-deep);
  font-size: 13px;
  font-weight: 820;
}

@media (max-width: 1220px) {
  .departure-row {
    grid-template-columns: 88px minmax(0, 1fr) minmax(0, 1fr);
    gap: 12px;
  }

  .departure-row time {
    grid-column: 1;
    grid-row: 1;
  }

  .departure-row .pier-cell,
  .departure-row .route-line-cell {
    grid-column: 2 / -1;
  }

  .departure-row .pier-cell {
    grid-row: 1;
  }

  .departure-row .route-line-cell {
    grid-row: 2;
  }

  .departure-row .seats-cell {
    grid-column: 2;
    grid-row: 3;
  }

  .departure-row .class-cell {
    grid-column: 3;
    grid-row: 3;
  }

  .departure-row .price-cell {
    grid-column: 1;
    grid-row: 3;
    justify-self: start;
    text-align: left;
  }

  .departure-row .button {
    grid-column: 2;
    grid-row: 4;
  }

  .departure-row .bookmark {
    grid-column: 3;
    grid-row: 4;
    justify-self: end;
  }
}

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

  .tickets-note {
    order: -1;
  }
}

@media (max-width: 700px) {
  .page-row,
  .tickets-head {
    align-items: start;
    flex-direction: column;
  }

  .tickets-hero-mark {
    display: none;
  }

  .tickets-hero {
    padding: 30px 0 24px;
  }

  .tickets-layout {
    gap: 16px;
  }

  .saved-ticket-grid {
    grid-template-columns: 1fr;
  }

  .tickets-head .button {
    width: 100%;
  }

  .saved-ticket-card,
  .tickets-note {
    padding: 14px;
  }
}

/* Conversion funnel: compact selection and guest checkout. */
.journey-mobile-label {
  display: none;
}

.icon-button,
.menu-toggle,
.header-actions .button {
  min-width: 44px;
  min-height: 44px;
}

.vn-route-detail-head {
  padding: 22px 0 18px;
  background: #f6f8f7;
}

.vn-route-detail-head .breadcrumb {
  margin-bottom: 14px;
}

.vn-route-detail-grid {
  grid-template-columns: minmax(180px, 230px) minmax(0, 1fr);
  gap: 24px;
  align-items: stretch;
}

.vn-route-detail-grid > img {
  width: 100%;
  height: 100%;
  min-height: 176px;
  max-height: 210px;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 6px;
}

.vn-route-detail-summary {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 9px 24px;
  align-content: center;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--ink);
  box-shadow: none;
}

.vn-route-detail-summary > span {
  color: var(--gold);
}

.vn-route-detail-summary dt,
.vn-detail-price span {
  color: var(--muted);
}

.vn-route-detail-summary > span,
.vn-route-detail-summary h1,
.vn-route-detail-summary dl {
  grid-column: 1;
}

.vn-route-detail-summary h1 {
  margin: 0;
  max-width: 760px;
  font-size: 32px;
  line-height: 1.12;
}

.vn-route-detail-summary dl {
  display: grid;
  grid-template-columns: repeat(4, minmax(110px, 1fr));
  gap: 8px;
  margin: 2px 0 0;
}

.vn-route-detail-summary dl div {
  padding: 9px 10px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
}

.vn-route-detail-summary dt,
.vn-route-detail-summary dd {
  overflow-wrap: anywhere;
}

.vn-detail-price {
  grid-column: 2;
  grid-row: 1 / span 2;
  align-self: center;
  min-width: 150px;
  text-align: right;
}

.vn-route-detail-summary > .text-link {
  grid-column: 2;
  grid-row: 3;
  justify-self: end;
}

.vn-time-slots a {
  min-width: 112px;
  min-height: 58px;
  padding: 8px 10px;
}

.vn-time-slots small {
  max-width: 150px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.offer-layout {
  grid-template-columns: minmax(0, 1fr) minmax(292px, 330px);
  gap: 22px;
}

.vn-selection-card {
  padding: 22px;
}

.time-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.time-choice {
  min-height: 92px;
  padding: 14px;
  text-align: left;
}

.class-tabs {
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
}

.class-tabs button,
.stepper button {
  min-height: 44px;
}

.fare-row {
  min-height: 72px;
}

.checkout-layout {
  grid-template-columns: minmax(0, 1.25fr) minmax(300px, .75fr);
  gap: 22px;
  align-items: start;
}

.checkout-main,
.checkout-side {
  min-width: 0;
}

.checkout-contact-card {
  padding: 24px;
}

.checkout-account-promise {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 18px 0;
  padding: 13px 14px;
  border: 1px solid #c7e4db;
  border-radius: 6px;
  background: #f1faf7;
  color: #155f58;
}

.checkout-account-promise > svg {
  flex: 0 0 auto;
  width: 18px;
  height: 18px;
  margin-top: 1px;
}

.checkout-account-promise span {
  display: grid;
  gap: 3px;
}

.checkout-account-promise strong {
  font-size: 13px;
}

.checkout-account-promise small {
  color: #4f716c;
  font-size: 11px;
  line-height: 1.45;
}

.consent-group {
  display: grid;
  gap: 5px;
}

.check-line {
  min-height: 44px;
  padding-block: 8px;
}

.check-line input {
  flex: 0 0 auto;
  width: 20px;
  height: 20px;
}

.checkout-summary-panel {
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
  box-shadow: 0 12px 26px rgba(16, 32, 43, .06);
}

.checkout-summary-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.checkout-summary-panel h2 {
  margin: 12px 0 16px;
  font-size: 22px;
  line-height: 1.2;
}

.checkout-summary-facts {
  display: grid;
  gap: 1px;
}

.checkout-summary-facts > span {
  display: grid;
  grid-template-columns: 20px 72px minmax(0, 1fr);
  gap: 7px;
  align-items: center;
  min-height: 38px;
  border-top: 1px solid var(--line);
}

.checkout-summary-facts svg {
  width: 15px;
  height: 15px;
  color: var(--teal);
}

.checkout-summary-facts small {
  color: var(--muted);
  font-size: 11px;
}

.checkout-summary-facts strong {
  min-width: 0;
  font-size: 12px;
  overflow-wrap: anywhere;
}

.payment-panel {
  margin-top: 12px;
}

.form-message:focus {
  outline: 2px solid var(--teal);
  outline-offset: 3px;
}

.field.is-invalid .text-input,
.check-line.is-invalid {
  border-color: var(--danger);
}

.cookie-sync-error {
  margin: 4px 0 0;
  color: var(--danger);
  font-size: 11px;
  line-height: 1.4;
}

.mobile-buy-bar .button[disabled] {
  cursor: wait;
  opacity: .68;
}

@media (max-width: 980px) {
  .vn-route-detail-summary dl {
    grid-template-columns: repeat(2, minmax(120px, 1fr));
  }

  .checkout-layout,
  .offer-layout {
    grid-template-columns: 1fr;
  }

  .checkout-side,
  .buy-panel {
    position: static;
  }

  .checkout-side {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }

  .payment-panel {
    margin-top: 0;
  }
}

@media (max-width: 700px) {
  .brand-mark,
  .icon-button,
  .menu-toggle {
    width: 44px;
    height: 44px;
  }

  .journey-steps {
    overflow: hidden;
    border-bottom: 1px solid var(--line);
  }

  .journey-mobile-label {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    width: min(var(--shell), calc(100% - 28px));
    min-height: 34px;
    margin: 0 auto;
    padding-top: 7px;
    color: var(--ink);
    font-size: 11px;
  }

  .journey-mobile-label strong {
    color: var(--teal-deep);
  }

  .steps-inner {
    width: min(var(--shell), calc(100% - 28px));
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 4px;
    padding: 5px 0 9px;
  }

  .steps-inner a {
    display: grid;
    place-items: center;
    min-height: 34px;
    padding: 0;
  }

  .steps-inner a::after {
    top: 17px;
    right: -4px;
    left: calc(50% + 16px);
  }

  .steps-inner span {
    width: 30px;
    height: 30px;
  }

  .steps-inner strong {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
  }

  .vn-route-detail-head {
    padding: 12px 0 14px;
  }

  .vn-route-detail-head .breadcrumb {
    margin-bottom: 10px;
  }

  .vn-route-detail-grid {
    grid-template-columns: 88px minmax(0, 1fr);
    gap: 12px;
  }

  .vn-route-detail-grid > img {
    min-height: 88px;
    height: 88px;
    aspect-ratio: 1;
  }

  .vn-route-detail-summary {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 5px 10px;
  }

  .vn-route-detail-summary > span {
    font-size: 9px;
  }

  .vn-route-detail-summary h1 {
    font-size: 20px;
    line-height: 1.15;
  }

  .vn-route-detail-summary dl {
    grid-column: 1 / -1;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 5px;
    margin-top: 7px;
  }

  .vn-route-detail-summary dl div {
    padding: 7px 8px;
  }

  .vn-detail-price {
    grid-column: 2;
    grid-row: 1 / span 2;
    min-width: 92px;
  }

  .vn-detail-price strong {
    font-size: 17px;
  }

  .vn-route-detail-summary > .text-link {
    grid-column: 1 / -1;
    grid-row: auto;
    justify-self: start;
  }

  .vn-selection-card,
  .checkout-contact-card {
    padding: 16px;
  }

  .block-head {
    align-items: flex-start;
  }

  .block-head h2 {
    font-size: 22px;
  }

  .time-grid,
  .class-tabs,
  .checkout-side {
    grid-template-columns: 1fr;
  }

  .time-choice {
    min-height: 78px;
  }

  .fare-row {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 10px;
    padding: 12px 0;
  }

  .stepper {
    grid-template-columns: 44px 32px 44px;
  }

  .checkout-summary-panel,
  .payment-panel {
    padding: 16px;
  }

  .mobile-buy-bar {
    grid-template-columns: minmax(0, 1fr) minmax(132px, auto);
  }

  .mobile-buy-bar .button {
    width: 100%;
    min-width: 0;
    min-height: 46px;
  }

  .vn-route-card-footer {
    grid-template-columns: minmax(0, 1fr) minmax(128px, auto);
  }

  .vn-route-card-footer .button,
  .departure-row .button {
    min-width: 0;
    width: 100%;
  }
}

@media (max-width: 380px) {
  .vn-route-detail-grid {
    grid-template-columns: 72px minmax(0, 1fr);
  }

  .vn-route-detail-grid > img {
    width: 72px;
    height: 72px;
    min-height: 72px;
  }

  .vn-detail-price {
    min-width: 82px;
  }

  .vn-route-detail-summary h1 {
    font-size: 18px;
  }

  .mobile-buy-bar {
    grid-template-columns: minmax(0, 1fr) minmax(118px, auto);
    gap: 8px;
  }
}

/* Vodohod-compatible booking flow */
:root {
  --shell: 1180px;
  --header: 76px;
  --booking: var(--coral);
  --booking-dark: var(--coral-dark);
  --booking-soft: #fdeceb;
}

body {
  background: #f5f6f4;
}

.site-header {
  min-height: var(--header);
  background: rgba(255, 255, 255, 0.97);
  border-bottom-color: #e4e7e5;
  box-shadow: 0 2px 12px rgba(16, 32, 43, 0.04);
}

.header-shell {
  min-height: var(--header);
  gap: 18px;
}

.brand-mark {
  width: 40px;
  height: 40px;
  box-shadow: none;
}

.brand-mark svg {
  width: 22px;
  height: 22px;
}

.brand-copy strong {
  font-size: 16px;
  text-transform: none;
}

.brand-copy small {
  font-size: 10px;
}

.main-nav {
  gap: 2px;
  margin-left: 10px;
}

.main-nav a {
  min-height: 38px;
  padding: 8px 10px;
  font-size: 13px;
}

.main-nav .header-buy-link {
  margin-left: 4px;
  background: var(--booking);
  color: #fff;
}

.main-nav .header-buy-link:hover,
.main-nav .header-buy-link.is-active {
  background: var(--booking-dark);
  color: #fff;
}

.header-actions {
  gap: 8px;
}

.support-link {
  gap: 7px;
  font-size: 13px;
}

.support-link span {
  display: grid;
  color: var(--ink);
  font-size: 12px;
  line-height: 1.25;
}

.support-link small {
  color: var(--muted);
  font-size: 9px;
  font-weight: 700;
}

.icon-button,
.menu-toggle {
  width: 40px;
  height: 40px;
  background: #fff;
}

.vn-home-hero {
  position: relative;
  min-height: 410px;
  overflow: hidden;
  background: #0d3943;
  color: #fff;
}

.vn-home-hero > img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 48%;
}

.vn-home-hero-shade {
  position: absolute;
  inset: 0;
  background: rgba(5, 32, 39, 0.46);
}

.vn-home-hero-content {
  position: relative;
  z-index: 1;
  display: flex;
  min-height: 328px;
  max-width: 760px;
  margin-left: max(24px, calc((100% - min(var(--shell), calc(100% - 48px))) / 2));
  margin-right: auto;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
}

.vn-partner-mark {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-bottom: 16px;
  font-size: 13px;
  font-weight: 800;
}

.vn-partner-mark svg {
  color: #73d9d3;
}

.vn-home-hero h1 {
  max-width: 720px;
  margin-bottom: 12px;
  font-family: var(--font-sans);
  font-size: 50px;
  line-height: 1.04;
  letter-spacing: 0;
}

.vn-home-hero-content > p {
  max-width: 620px;
  margin-bottom: 22px;
  color: rgba(255, 255, 255, 0.9);
  font-size: 17px;
}

.button.vn-hero-action {
  min-height: 48px;
  padding-inline: 22px;
  background: var(--booking);
}

.button.vn-hero-action:hover {
  background: var(--booking-dark);
}

.vn-route-shortcuts {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  min-height: 82px;
  border-top: 1px solid rgba(255, 255, 255, 0.34);
}

.vn-route-shortcuts a {
  display: flex;
  min-width: 0;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 14px 18px;
  border-right: 1px solid rgba(255, 255, 255, 0.25);
  color: #fff;
  font-size: 13px;
  font-weight: 800;
  text-align: center;
}

.vn-route-shortcuts a:last-child {
  border-right: 0;
}

.vn-route-shortcuts a:hover {
  background: rgba(255, 255, 255, 0.12);
}

.vn-page-head {
  padding: 30px 0 28px;
  border-bottom: 1px solid #e1e5e3;
  background: #fff;
}

.vn-page-head .breadcrumb {
  margin-bottom: 14px;
}

.vn-page-head h1 {
  margin-bottom: 7px;
  font-family: var(--font-sans);
  font-size: 36px;
  line-height: 1.12;
  letter-spacing: 0;
}

.vn-page-head p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 15px;
}

.journey-steps {
  position: relative;
  top: auto;
  background: #fff;
  backdrop-filter: none;
}

.steps-inner {
  gap: 0;
  padding: 14px 0;
}

.steps-inner a {
  position: relative;
  display: grid;
  grid-template-columns: 32px minmax(0, 1fr);
  min-height: 48px;
  gap: 10px;
  padding-right: 18px;
  color: #8a959a;
  font-size: 12px;
}

.steps-inner a::after {
  position: absolute;
  top: 23px;
  right: 9px;
  left: 41px;
  grid-column: auto;
  height: 1px;
  margin: 0;
  background: #dfe4e2;
}

.steps-inner a:last-child::after {
  display: none;
}

.steps-inner span {
  position: relative;
  z-index: 1;
  width: 32px;
  height: 32px;
  border-color: #cbd3d0;
  background: #fff;
  font-size: 12px;
}

.steps-inner span svg {
  width: 16px;
  height: 16px;
}

.steps-inner strong {
  display: grid;
  align-content: center;
  gap: 1px;
  max-width: 180px;
  line-height: 1.25;
}

.steps-inner strong small {
  color: #9aa4a8;
  font-size: 9px;
  font-weight: 650;
}

.steps-inner a.is-active,
.steps-inner a.is-done {
  color: var(--teal-deep);
}

.steps-inner a.is-active span,
.steps-inner a.is-done span {
  border-color: var(--teal);
  background: var(--teal);
}

.steps-inner a.is-active::after,
.steps-inner a.is-done::after {
  background: var(--teal);
}

.vn-schedule-section {
  padding: 28px 0 52px;
  background: #f5f6f4;
}

.vn-schedule-toolbar {
  display: grid;
  grid-template-columns: minmax(460px, 1.7fr) minmax(180px, 0.7fr) minmax(210px, 0.9fr);
  margin-bottom: 18px;
  border: 1px solid #dfe4e2;
  border-radius: 6px;
  background: #fff;
  box-shadow: 0 8px 24px rgba(16, 32, 43, 0.05);
}

.vn-quick-date-row {
  display: grid;
  grid-template-columns: repeat(4, minmax(72px, 1fr)) 82px;
  min-width: 0;
  border-right: 1px solid #e2e6e4;
}

.vn-quick-date-row > button,
.vn-date-picker {
  position: relative;
  display: grid;
  min-width: 0;
  min-height: 66px;
  align-content: center;
  justify-items: center;
  gap: 2px;
  padding: 8px;
  border-right: 1px solid #edf0ee;
  background: #fff;
  color: var(--ink);
  cursor: pointer;
}

.vn-quick-date-row > button:first-child {
  border-radius: 5px 0 0 5px;
}

.vn-quick-date-row > button strong,
.vn-date-picker span {
  overflow: hidden;
  max-width: 100%;
  font-size: 11px;
  font-weight: 850;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.vn-quick-date-row > button span {
  color: var(--muted);
  font-size: 9px;
}

.vn-quick-date-row > button.is-active {
  background: var(--mist);
  color: var(--teal-deep);
}

.vn-quick-date-row > button.is-active::after {
  content: "";
  position: absolute;
  right: 12px;
  bottom: 0;
  left: 12px;
  height: 3px;
  background: var(--teal);
}

.vn-date-picker {
  border-right: 0;
  color: var(--teal-deep);
}

.vn-date-picker svg {
  width: 18px;
  height: 18px;
}

.vn-date-picker input {
  position: absolute;
  inset: 0;
  width: 100%;
  opacity: 0;
  cursor: pointer;
}

.vn-toolbar-select {
  display: grid;
  min-width: 0;
  min-height: 66px;
  align-content: center;
  gap: 3px;
  padding: 9px 16px;
  border-right: 1px solid #e2e6e4;
}

.vn-toolbar-select:last-child {
  border-right: 0;
}

.vn-toolbar-select > span {
  color: var(--muted);
  font-size: 9px;
  font-weight: 750;
}

.vn-toolbar-select select,
.vn-sort-control select {
  width: 100%;
  min-width: 0;
  border: 0;
  background: #fff;
  color: var(--ink);
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
}

.vn-schedule-section .data-status-note {
  margin: 0 0 18px;
}

.vn-schedule-layout {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 24px;
  align-items: start;
}

.vn-schedule-filters {
  display: grid;
  gap: 0;
  border: 1px solid #dfe4e2;
  border-radius: 6px;
  background: #fff;
}

.vn-filter-title {
  display: flex;
  min-height: 48px;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px;
  border-bottom: 1px solid #e7ebe9;
}

.vn-filter-title strong {
  font-size: 14px;
}

.vn-filter-title button {
  padding: 0;
  background: transparent;
  color: var(--teal-deep);
  font-size: 10px;
  font-weight: 750;
  cursor: pointer;
}

.vn-filter-group {
  display: grid;
  gap: 8px;
  min-width: 0;
  margin: 0;
  padding: 14px;
  border: 0;
  border-bottom: 1px solid #e7ebe9;
}

.vn-filter-group legend {
  width: 100%;
  margin-bottom: 7px;
  padding: 0;
  color: var(--ink);
  font-size: 11px;
  font-weight: 850;
}

.vn-time-range-values {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 700;
}

.vn-filter-group input[type="range"] {
  width: 100%;
  accent-color: var(--teal);
}

.vn-check-option {
  display: grid;
  grid-template-columns: 16px minmax(0, 1fr);
  align-items: start;
  gap: 8px;
  color: #3e4d55;
  font-size: 11px;
  line-height: 1.35;
  cursor: pointer;
}

.vn-check-option input {
  width: 15px;
  height: 15px;
  margin: 0;
  accent-color: var(--teal);
}

.vn-filter-empty {
  color: var(--muted);
  font-size: 11px;
}

.vn-apply-filters {
  display: none;
  margin: 14px;
}

.vn-schedule-results {
  min-width: 0;
}

.vn-results-head {
  display: flex;
  min-height: 48px;
  align-items: start;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 14px;
}

.vn-results-head h2 {
  margin-bottom: 2px;
  font-family: var(--font-sans);
  font-size: 24px;
  letter-spacing: 0;
}

.vn-results-head h2 span {
  color: var(--muted);
  font-size: 16px;
}

.vn-results-head p {
  margin: 0;
  color: var(--muted);
  font-size: 11px;
}

.vn-results-controls {
  display: flex;
  align-items: center;
  gap: 8px;
}

.vn-filter-button {
  display: none;
  min-height: 38px;
  align-items: center;
  gap: 7px;
  padding: 8px 11px;
  border: 1px solid #d9dfdc;
  border-radius: 5px;
  background: #fff;
  color: var(--ink);
  font-size: 11px;
  font-weight: 800;
}

.vn-filter-button svg {
  width: 16px;
  height: 16px;
}

.vn-sort-control {
  min-width: 132px;
  padding: 9px 10px;
  border: 1px solid #d9dfdc;
  border-radius: 5px;
  background: #fff;
}

.vn-route-list {
  display: grid;
  gap: 14px;
}

.vn-route-card {
  display: grid;
  grid-template-columns: 230px minmax(0, 1fr);
  min-width: 0;
  overflow: hidden;
  border: 1px solid #dfe4e2;
  border-radius: 6px;
  background: #fff;
  box-shadow: 0 8px 24px rgba(16, 32, 43, 0.05);
}

.vn-route-image {
  position: relative;
  min-height: 100%;
  overflow: hidden;
  background: #dce7e4;
}

.vn-route-image img {
  width: 100%;
  height: 100%;
  min-height: 250px;
  object-fit: cover;
  transition: transform 0.3s var(--ease-standard);
}

.vn-route-card:hover .vn-route-image img {
  transform: scale(1.025);
}

.vn-availability {
  position: absolute;
  top: 12px;
  left: 12px;
  padding: 6px 9px;
  border-radius: 4px;
  background: #fff;
  color: var(--success);
  font-size: 10px;
  font-weight: 900;
  box-shadow: 0 5px 18px rgba(16, 32, 43, 0.14);
}

.vn-availability.is-low {
  color: var(--warning);
}

.vn-route-card-body {
  display: grid;
  min-width: 0;
  gap: 11px;
  padding: 16px 18px;
}

.vn-route-title-row {
  display: flex;
  min-width: 0;
  align-items: start;
  justify-content: space-between;
  gap: 12px;
}

.vn-route-kind {
  display: block;
  margin-bottom: 3px;
  color: var(--teal-deep);
  font-size: 9px;
  font-weight: 850;
  text-transform: uppercase;
}

.vn-route-card h3 {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 18px;
  line-height: 1.25;
  letter-spacing: 0;
}

.vn-route-card .bookmark {
  display: grid;
  width: 36px;
  height: 36px;
  flex: 0 0 36px;
  place-items: center;
  border: 1px solid #dfe4e2;
  border-radius: 5px;
  background: #fff;
}

.vn-route-card .bookmark svg {
  width: 17px;
  height: 17px;
}

.vn-route-links {
  display: flex;
  gap: 16px;
}

.vn-route-links a {
  color: var(--teal-deep);
  font-size: 10px;
  font-weight: 800;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.vn-route-facts {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  padding: 10px 0;
  border-top: 1px solid #edf0ee;
  border-bottom: 1px solid #edf0ee;
}

.vn-route-facts > span {
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr);
  column-gap: 6px;
  min-width: 0;
}

.vn-route-facts svg {
  grid-row: 1 / 3;
  width: 16px;
  height: 16px;
  color: var(--teal);
}

.vn-route-facts small {
  color: var(--muted);
  font-size: 8px;
}

.vn-route-facts strong {
  overflow: hidden;
  font-size: 10px;
  line-height: 1.25;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.vn-departure-choice {
  display: grid;
  grid-template-columns: 88px minmax(0, 1fr);
  align-items: start;
  gap: 10px;
}

.vn-choice-label {
  padding-top: 10px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 800;
}

.vn-time-slots {
  display: grid;
  grid-template-columns: repeat(4, minmax(62px, 1fr));
  gap: 6px;
}

.vn-time-slots a {
  display: grid;
  min-width: 0;
  min-height: 42px;
  align-content: center;
  justify-items: center;
  padding: 5px;
  border: 1px solid #dbe2df;
  border-radius: 4px;
  background: #fff;
}

.vn-time-slots a:hover,
.vn-time-slots a.is-active {
  border-color: var(--teal);
  background: var(--mist);
  color: var(--teal-deep);
}

.vn-time-slots strong {
  font-size: 11px;
}

.vn-time-slots small {
  color: var(--muted);
  font-size: 8px;
}

.vn-route-card-footer {
  display: flex;
  align-items: end;
  justify-content: flex-end;
  gap: 16px;
  margin-top: auto;
}

.vn-route-card-footer > div {
  display: grid;
  grid-template-columns: auto auto;
  column-gap: 5px;
  align-items: baseline;
  margin-right: auto;
}

.vn-route-card-footer span,
.vn-route-card-footer small {
  color: var(--muted);
  font-size: 8px;
}

.vn-route-card-footer strong {
  font-size: 21px;
  line-height: 1;
}

.vn-route-card-footer small {
  grid-column: 1 / -1;
}

.vn-route-card-footer .button {
  min-width: 128px;
  min-height: 40px;
  padding: 9px 14px;
  background: var(--booking);
  font-size: 11px;
}

.vn-route-card-footer .button:hover {
  background: var(--booking-dark);
}

.vn-route-card-footer .button svg {
  width: 15px;
  height: 15px;
}

.vn-route-detail-head {
  padding: 24px 0 30px;
  background: #fff;
}

.vn-route-detail-head .breadcrumb {
  margin-bottom: 16px;
}

.vn-route-detail-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.65fr) minmax(300px, 0.75fr);
  min-height: 360px;
  overflow: hidden;
  border-radius: 6px;
}

.vn-route-detail-grid > img {
  width: 100%;
  height: 100%;
  min-height: 360px;
  object-fit: cover;
}

.vn-route-detail-summary {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 28px;
  background: var(--teal-deep);
  color: #fff;
}

.vn-route-detail-summary > span {
  margin-bottom: 9px;
  font-size: 10px;
  font-weight: 850;
  text-transform: uppercase;
}

.vn-route-detail-summary h1 {
  margin-bottom: 20px;
  font-family: var(--font-sans);
  font-size: 29px;
  line-height: 1.12;
  letter-spacing: 0;
}

.vn-route-detail-summary dl {
  display: grid;
  width: 100%;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin: 0 0 20px;
}

.vn-route-detail-summary dl div {
  display: grid;
  gap: 2px;
}

.vn-route-detail-summary dt {
  color: rgba(255, 255, 255, 0.72);
  font-size: 9px;
}

.vn-route-detail-summary dd {
  margin: 0;
  font-size: 12px;
  font-weight: 800;
}

.vn-detail-price {
  display: grid;
  gap: 1px;
  margin-top: auto;
  margin-bottom: 16px;
}

.vn-detail-price span {
  color: rgba(255, 255, 255, 0.72);
  font-size: 9px;
}

.vn-detail-price strong {
  font-size: 26px;
}

.vn-route-detail-summary .button.secondary {
  border-color: rgba(255, 255, 255, 0.58);
  background: transparent;
  color: #fff;
}

.vn-ticket-selection {
  padding: 30px 0 56px;
  background: #f5f6f4;
}

.vn-selection-card {
  padding: 22px;
  box-shadow: none;
}

.vn-selection-card .block-head h2 {
  font-size: 24px;
}

.vn-tariff-note,
.vn-passenger-note {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  color: var(--muted);
  font-size: 11px;
}

.vn-tariff-note {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}

.vn-tariff-note svg,
.vn-passenger-note svg {
  width: 17px;
  height: 17px;
  color: var(--teal);
}

.vn-passenger-note {
  padding: 16px 18px;
  border: 1px solid #d7e3e0;
  border-radius: 6px;
  background: #eef6f4;
}

.vn-passenger-note div {
  display: grid;
  gap: 3px;
}

.vn-passenger-note strong {
  color: var(--ink);
}

.vn-ticket-selection .buy-panel {
  top: calc(var(--header) + 18px);
}

.vn-ticket-selection .buy-panel .button.action,
.payment-panel .button.action,
.mobile-buy-bar .button.action {
  background: var(--booking);
}

.vn-ticket-selection .buy-panel .button.action:hover,
.payment-panel .button.action:hover,
.mobile-buy-bar .button.action:hover {
  background: var(--booking-dark);
}

@media (max-width: 1080px) {
  .support-link {
    display: none;
  }

  .main-nav {
    margin-left: 0;
  }

  .vn-schedule-toolbar {
    grid-template-columns: minmax(430px, 1.5fr) minmax(160px, 0.7fr) minmax(180px, 0.8fr);
  }

  .vn-route-card {
    grid-template-columns: 205px minmax(0, 1fr);
  }

  .vn-route-facts {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 900px) {
  .main-nav,
  .header-actions .support-link {
    display: none;
  }

  .menu-toggle {
    display: inline-grid;
  }

  .header-actions {
    margin-left: auto;
  }

  .vn-home-hero-content {
    margin-left: 24px;
  }

  .vn-schedule-toolbar {
    grid-template-columns: 1fr 1fr;
  }

  .vn-quick-date-row {
    grid-column: 1 / -1;
    border-right: 0;
    border-bottom: 1px solid #e2e6e4;
  }

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

  .vn-schedule-filters {
    display: none;
  }

  .vn-schedule-layout.filters-open .vn-schedule-filters {
    display: grid;
  }

  .vn-schedule-layout.filters-open .vn-schedule-results {
    display: none;
  }

  .vn-filter-button,
  .vn-apply-filters {
    display: inline-flex;
  }

  .vn-route-detail-grid {
    grid-template-columns: minmax(0, 1.3fr) minmax(280px, 0.8fr);
  }
}

@media (max-width: 700px) {
  :root {
    --header: 64px;
  }

  .shell {
    width: min(var(--shell), calc(100% - 28px));
  }

  .site-header {
    min-height: var(--header);
  }

  .header-shell {
    min-height: var(--header);
    gap: 7px;
  }

  .brand-mark {
    width: 36px;
    height: 36px;
  }

  .brand-copy strong {
    font-size: 14px;
  }

  .brand-copy small {
    font-size: 8px;
  }

  .header-actions {
    display: flex;
    gap: 5px;
  }

  .icon-button,
  .menu-toggle {
    width: 36px;
    height: 36px;
  }

  .vn-home-hero {
    min-height: 520px;
  }

  .vn-home-hero-content {
    width: calc(100% - 28px);
    min-height: 338px;
    margin: 0 auto;
    justify-content: center;
  }

  .vn-partner-mark {
    margin-bottom: 12px;
    font-size: 11px;
  }

  .vn-home-hero h1 {
    max-width: 340px;
    font-size: 35px;
    line-height: 1.08;
  }

  .vn-home-hero-content > p {
    max-width: 340px;
    font-size: 14px;
  }

  .vn-route-shortcuts {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    min-height: 182px;
  }

  .vn-route-shortcuts a {
    min-height: 91px;
    padding: 10px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.25);
    font-size: 10px;
  }

  .vn-route-shortcuts a:nth-child(2) {
    border-right: 0;
  }

  .vn-route-shortcuts a:nth-child(n + 3) {
    border-bottom: 0;
  }

  .vn-page-head {
    padding: 22px 0;
  }

  .vn-page-head h1 {
    font-size: 28px;
  }

  .vn-page-head p {
    font-size: 13px;
  }

  .journey-steps {
    overflow-x: auto;
  }

  .steps-inner {
    width: 650px;
    grid-template-columns: repeat(4, 152px);
    gap: 8px;
    padding: 10px 14px;
  }

  .steps-inner a {
    grid-template-columns: 28px minmax(0, 1fr);
    min-height: 42px;
    gap: 7px;
    padding-right: 5px;
    font-size: 10px;
  }

  .steps-inner a::after {
    top: 20px;
    left: 35px;
  }

  .steps-inner span {
    width: 28px;
    height: 28px;
  }

  .steps-inner strong small {
    font-size: 8px;
  }

  .vn-schedule-section {
    padding: 16px 0 36px;
  }

  .vn-schedule-toolbar {
    grid-template-columns: 1fr;
    margin-bottom: 14px;
  }

  .vn-quick-date-row {
    display: flex;
    grid-column: auto;
    overflow-x: auto;
  }

  .vn-quick-date-row > button {
    min-width: 82px;
  }

  .vn-date-picker {
    min-width: 70px;
  }

  .vn-toolbar-select {
    min-height: 58px;
    border-right: 0;
    border-bottom: 1px solid #e2e6e4;
  }

  .vn-toolbar-select:last-child {
    border-bottom: 0;
  }

  .vn-results-head {
    align-items: center;
    gap: 10px;
  }

  .vn-results-head h2 {
    font-size: 19px;
  }

  .vn-results-head p {
    max-width: 180px;
  }

  .vn-results-controls {
    flex-wrap: wrap;
    justify-content: flex-end;
  }

  .vn-filter-button {
    min-height: 36px;
  }

  .vn-sort-control {
    min-width: 114px;
    padding: 8px;
  }

  .vn-route-card {
    grid-template-columns: 1fr;
  }

  .vn-route-image,
  .vn-route-image img {
    min-height: 190px;
    max-height: 220px;
  }

  .vn-route-card-body {
    gap: 10px;
    padding: 15px;
  }

  .vn-route-card h3 {
    font-size: 17px;
  }

  .vn-route-facts {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .vn-departure-choice {
    grid-template-columns: 1fr;
    gap: 6px;
  }

  .vn-choice-label {
    padding-top: 0;
  }

  .vn-time-slots {
    grid-template-columns: repeat(4, minmax(58px, 1fr));
  }

  .vn-route-card-footer {
    align-items: center;
  }

  .vn-route-card-footer .button {
    min-width: 120px;
  }

  .vn-route-detail-head {
    padding: 18px 0 22px;
  }

  .vn-route-detail-grid {
    grid-template-columns: 1fr;
  }

  .vn-route-detail-grid > img {
    min-height: 220px;
    max-height: 250px;
  }

  .vn-route-detail-summary {
    padding: 22px;
  }

  .vn-route-detail-summary h1 {
    font-size: 24px;
  }

  .vn-ticket-selection {
    padding: 20px 0 90px;
  }

  .vn-selection-card {
    padding: 16px;
  }

  .vn-selection-card .block-head h2 {
    font-size: 21px;
  }
}

@media (max-width: 380px) {
  .brand-copy small {
    display: none;
  }

  .vn-home-hero h1 {
    font-size: 31px;
  }

  .vn-time-slots {
    grid-template-columns: repeat(3, minmax(58px, 1fr));
  }

  .vn-route-card-footer {
    align-items: stretch;
    flex-direction: column;
  }

  .vn-route-card-footer .button {
    width: 100%;
  }
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

html {
  min-width: 0;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-sans);
  line-height: 1.45;
  letter-spacing: 0;
}

@keyframes rise-in {
  from {
    opacity: 0;
    transform: translateY(18px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes scale-in {
  from {
    opacity: 0;
    transform: translateY(20px) scale(0.98);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes hero-drift {
  from {
    transform: scale(1.04) translateY(0);
  }

  to {
    transform: scale(1.08) translateY(-8px);
  }
}

@keyframes dock-in {
  from {
    opacity: 0;
    transform: translateY(20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

body.nav-open {
  overflow: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
select,
textarea {
  font: inherit;
}

button {
  border: 0;
}

img {
  display: block;
  max-width: 100%;
}

:focus-visible {
  outline: none;
  box-shadow: var(--focus);
}

.skip-link {
  position: fixed;
  left: 16px;
  top: -48px;
  z-index: 100;
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  background: var(--ink);
  color: #fff;
  transition: top 0.18s ease;
}

.skip-link:focus {
  top: 16px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
}

.shell {
  width: min(var(--shell), calc(100% - 48px));
  margin-inline: auto;
}

svg,
[data-lucide] {
  width: 20px;
  height: 20px;
  flex: 0 0 auto;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1,
h2,
h3,
	.booking-card,
	.hero-route-card,
	.market-hero-copy,
	.deal-card,
	.collection-card,
	.place-card,
	.catalog-aside,
	.departure-row,
	.buy-panel,
	.step-card,
.summary-ticket,
.payment-panel,
.ticket-card,
.day-panel {
  min-width: 0;
}

.catalog-grid > div,
.results-layout > div,
.offer-main,
.checkout-main,
.order-main {
  min-width: 0;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 80;
  min-height: var(--header);
  border-bottom: 1px solid rgba(217, 226, 229, 0.9);
  background: rgba(255, 253, 248, 0.94);
  backdrop-filter: blur(18px);
}

.header-shell {
  display: flex;
  align-items: center;
  min-height: var(--header);
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
  gap: 10px;
  color: var(--ink);
  font-weight: 900;
}

.brand-mark {
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  border-radius: 8px;
  background: var(--teal-deep);
  color: #fff;
  box-shadow: 0 12px 26px rgba(7, 75, 93, 0.22);
}

.brand-mark svg {
  width: 25px;
  height: 25px;
}

.brand-copy {
  display: grid;
  gap: 1px;
}

.brand-copy strong {
  color: var(--teal-deep);
  font-size: 17px;
  letter-spacing: 0;
  text-transform: uppercase;
}

.brand-copy small {
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.main-nav,
.mobile-nav {
  align-items: center;
}

.main-nav {
  display: flex;
  gap: 8px;
  margin-left: 38px;
}

.main-nav a,
.mobile-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  padding: 9px 13px;
  border-radius: var(--radius-sm);
  color: var(--ink);
  font-size: 15px;
  font-weight: 760;
  transition: background 0.18s ease, color 0.18s ease;
}

.main-nav a:hover,
.main-nav a.is-active,
.mobile-nav a:hover,
.mobile-nav a.is-active {
  background: rgba(10, 113, 128, 0.12);
  color: var(--teal-deep);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-left: auto;
}

.support-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--ink);
  font-weight: 880;
}

.support-link span {
  display: block;
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
}

.icon-button,
.menu-toggle {
  display: inline-grid;
  width: 44px;
  height: 44px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--paper);
  color: var(--ink);
  cursor: pointer;
}

.menu-toggle {
  display: none;
  margin-left: auto;
}

.mobile-nav {
  display: none;
}

main {
  min-height: 72vh;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  gap: 8px;
  padding: 12px 16px;
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  background: var(--teal);
  color: #fff;
  font-weight: 900;
  cursor: pointer;
  transition: transform 0.22s var(--ease-standard), background 0.22s var(--ease-standard), border-color 0.22s var(--ease-standard), box-shadow 0.22s var(--ease-standard);
}

.button:hover {
  transform: translateY(-2px);
}

.button.action {
  background: var(--coral);
  box-shadow: 0 12px 24px rgba(215, 38, 28, 0.18);
}

.button.action:hover {
  background: var(--coral-dark);
}

.button.secondary {
  border-color: var(--line);
  background: var(--paper);
  color: var(--ink);
  box-shadow: none;
}

.button.secondary:hover {
  border-color: var(--line-strong);
  background: #f7faf9;
}

.button.wide {
  width: 100%;
}

.text-link,
.text-button {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--teal-deep);
  font-weight: 900;
  transition: transform 0.2s var(--ease-standard), color 0.2s var(--ease-standard);
}

.text-link:hover,
.text-button:hover {
  transform: translateX(2px);
}

.text-button {
  padding: 0;
  background: transparent;
  cursor: pointer;
}

.overline {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
  color: var(--teal-deep);
  font-size: 12px;
  font-weight: 950;
  letter-spacing: 0;
  text-transform: uppercase;
}

.pier-hero {
  position: relative;
  min-height: calc(100vh - var(--header));
  overflow: hidden;
  border-bottom: 1px solid var(--line);
  background: var(--navy);
}

.hero-image,
.pier-hero .hero-scrim {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero-image {
  object-fit: cover;
  object-position: center center;
  animation: hero-drift 14s ease-out both;
}

.hero-scrim {
  background:
    linear-gradient(90deg, rgba(7, 25, 35, 0.34), rgba(7, 25, 35, 0.06) 48%, rgba(7, 25, 35, 0.22)),
    linear-gradient(180deg, rgba(255, 253, 248, 0.08), rgba(13, 27, 42, 0.18));
}

.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(540px, 650px) minmax(330px, 420px);
  gap: clamp(28px, 7vw, 120px);
  align-items: center;
  min-height: calc(100vh - var(--header));
  padding: 34px 0 28px;
}

.booking-card {
  padding: 30px;
  border: 1px solid rgba(255, 255, 255, 0.6);
  border-radius: var(--radius);
  background: rgba(255, 253, 248, 0.96);
  box-shadow: var(--shadow-md);
}

.booking-card h2 {
  margin-bottom: 20px;
  font-family: var(--font-display);
  font-size: 38px;
  line-height: 1.05;
  letter-spacing: 0;
}

.route-tabs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  overflow: hidden;
  margin-bottom: 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fbfdff;
}

.route-tabs button {
  display: flex;
  align-items: center;
  gap: 9px;
  min-width: 0;
  min-height: 70px;
  padding: 10px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: transparent;
  color: var(--ink);
  text-align: left;
  cursor: pointer;
}

.route-tabs button:nth-child(2n),
.route-tabs button:last-child {
  border-right: 0;
}

.route-tabs button:nth-last-child(-n + 2) {
  border-bottom: 0;
}

.route-tabs button > svg {
  width: 32px;
  height: 32px;
  padding: 7px;
  border-radius: 50%;
  background: rgba(10, 113, 128, 0.1);
  color: var(--teal);
}

.route-tabs button span {
  display: grid;
  min-width: 0;
}

.route-tabs strong {
  overflow-wrap: anywhere;
  font-size: 13px;
  font-weight: 930;
  line-height: 1.16;
}

.route-tabs small {
  overflow: hidden;
  color: var(--muted);
  font-size: 11px;
  font-weight: 720;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.route-tabs button.is-active {
  background: rgba(10, 113, 128, 0.09);
  box-shadow: inset 0 0 0 1px var(--teal);
}

.route-tabs-status {
  display: flex;
  grid-column: 1 / -1;
  align-items: center;
  gap: 10px;
  min-height: 70px;
  padding: 12px 14px;
  color: var(--muted);
}

.route-tabs-status > svg {
  width: 28px;
  height: 28px;
  padding: 6px;
  border-radius: 50%;
  background: rgba(10, 113, 128, 0.1);
  color: var(--teal);
}

.route-tabs-status span {
  display: grid;
  gap: 2px;
}

.route-tabs-status strong {
  color: var(--ink);
}

.route-tabs-status small {
  color: var(--muted);
}

.route-tabs-status > svg.lucide-loader-circle,
.empty-state.is-loading > svg {
  animation: spin 1s linear infinite;
}

.schedule-gate {
  min-height: 58vh;
}

.booking-two {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(240px, 0.82fr);
  gap: 16px;
  align-items: start;
}

.field-label {
  display: block;
  margin-bottom: 8px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 900;
}

.search-column {
  display: grid;
  gap: 12px;
}

.booking-control {
  display: grid;
  gap: 8px;
}

.booking-control > span,
.field > span,
.sort-control > span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 900;
}

.passenger-stepper {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) 44px;
  min-height: 56px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--surface);
}

.passenger-stepper button,
.stepper button {
  display: grid;
  place-items: center;
  background: transparent;
  color: var(--teal-deep);
  cursor: pointer;
}

.passenger-stepper button:disabled,
.stepper button:disabled {
  color: var(--soft);
  cursor: not-allowed;
}

.passenger-stepper strong {
  display: grid;
  place-items: center;
  border-inline: 1px solid var(--line);
  font-weight: 900;
  text-align: center;
}

.segmented {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  min-height: 56px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--surface);
}

.segmented button {
  padding: 8px;
  background: transparent;
  color: var(--ink);
  font-size: 13px;
  font-weight: 900;
  cursor: pointer;
}

.segmented button.is-active {
  margin: 4px;
  border-radius: 5px;
  background: var(--teal);
  color: #fff;
}

.hero-cta {
  min-height: 58px;
  font-size: 17px;
}

.care-note {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--teal-deep);
  font-size: 13px;
  font-weight: 850;
}

.calendar-card {
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.94);
}

.calendar-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
}

.calendar-top strong {
  font-size: 14px;
  font-weight: 940;
  text-transform: capitalize;
}

.calendar-top button {
  display: grid;
  width: 40px;
  height: 40px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--paper);
  color: var(--ink);
  cursor: pointer;
}

.calendar-weekdays,
.calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 4px;
}

.calendar-weekdays {
  margin-bottom: 5px;
}

.calendar-weekdays span {
  color: var(--soft);
  font-size: 10px;
  font-weight: 900;
  text-align: center;
}

.calendar-grid button,
.calendar-empty {
  min-height: 40px;
}

.calendar-grid button {
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  background: #f4f8f8;
  color: var(--ink);
  font-size: 13px;
  font-weight: 900;
  cursor: pointer;
}

.calendar-grid button:hover {
  border-color: rgba(10, 113, 128, 0.35);
}

.calendar-grid button.is-active {
  background: var(--teal);
  color: #fff;
}

.calendar-grid button.is-today {
  border-color: var(--gold);
}

.calendar-grid button.is-weekend:not(.is-active) {
  color: var(--coral);
}

.calendar-grid button:disabled {
  background: #f2f0eb;
  color: #b6b2aa;
  cursor: not-allowed;
}

.quick-dates {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 10px;
}

.quick-dates button {
  min-height: 40px;
  padding: 7px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--paper);
  color: var(--ink);
  font-size: 12px;
  font-weight: 850;
  cursor: pointer;
}

.quick-dates button.is-active {
  border-color: rgba(10, 113, 128, 0.35);
  background: rgba(10, 113, 128, 0.1);
  color: var(--teal-deep);
}

.calendar-caption {
  display: flex;
  align-items: center;
  gap: 7px;
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.hero-route-card {
  align-self: center;
  padding: 28px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: var(--radius);
  background: rgba(6, 58, 73, 0.84);
  color: #fff;
  box-shadow: var(--shadow-md);
  backdrop-filter: blur(18px);
}

.badge,
.status {
  display: inline-flex;
  width: max-content;
  align-items: center;
  min-height: 30px;
  padding: 6px 10px;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
  font-size: 12px;
  font-weight: 900;
}

.hero-route-card h2 {
  margin: 18px 0 16px;
  font-family: var(--font-display);
  font-size: 36px;
  line-height: 1.08;
  letter-spacing: 0;
}

.route-card-lines {
  display: grid;
  gap: 14px;
  padding: 4px 0 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.18);
}

.route-card-lines div {
  display: grid;
  grid-template-columns: 26px 100px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
}

.route-card-lines span {
  color: rgba(255, 255, 255, 0.72);
  font-size: 13px;
  font-weight: 800;
}

.route-card-lines strong {
  font-size: 14px;
  font-weight: 900;
}

.hero-price {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 16px;
  padding-top: 20px;
}

.hero-price span {
  color: rgba(255, 255, 255, 0.8);
  font-size: 14px;
  font-weight: 800;
}

.hero-price strong {
  font-size: 26px;
}

.marketplace-hero .hero-scrim {
  background:
    linear-gradient(90deg, rgba(7, 25, 35, 0.78), rgba(7, 25, 35, 0.34) 50%, rgba(7, 25, 35, 0.18)),
    linear-gradient(180deg, rgba(13, 27, 42, 0.08), rgba(13, 27, 42, 0.28));
}

.marketplace-hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(470px, 560px);
  gap: clamp(28px, 6vw, 96px);
  align-items: center;
  min-height: calc(100vh - var(--header));
  padding: 42px 0 34px;
}

.market-hero-copy {
  max-width: 760px;
  color: #fff;
}

.market-hero-copy > * {
  opacity: 0;
  animation: rise-in 0.66s var(--ease-standard) both;
}

.market-hero-copy > .overline {
  animation-delay: 0.05s;
}

.market-hero-copy > h1 {
  animation-delay: 0.14s;
}

.market-hero-copy > p {
  animation-delay: 0.22s;
}

.market-hero-copy > .market-searchbar {
  animation-delay: 0.3s;
}

.market-hero-copy > .search-suggestions {
  animation-delay: 0.38s;
}

.market-hero-copy > .market-stats {
  animation-delay: 0.46s;
}

.market-hero-copy .overline,
.market-hero-copy p {
  color: rgba(255, 255, 255, 0.82);
}

.market-hero-copy h1 {
  max-width: 760px;
  margin-bottom: 16px;
  font-family: var(--font-display);
  font-size: 72px;
  line-height: 0.98;
  letter-spacing: 0;
}

.market-hero-copy p {
  max-width: 640px;
  margin-bottom: 24px;
  font-size: 18px;
}

.market-searchbar {
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  max-width: 690px;
  min-height: 66px;
  padding: 10px 10px 10px 18px;
  border: 1px solid rgba(255, 255, 255, 0.32);
  border-radius: var(--radius);
  background: rgba(255, 253, 248, 0.96);
  color: var(--ink);
  box-shadow: var(--shadow-md);
}

.market-searchbar > svg {
  color: var(--teal);
}

.market-searchbar input,
.catalog-search input {
  width: 100%;
  min-width: 0;
  border: 0;
  background: transparent;
  color: var(--ink);
  font-weight: 850;
  outline: none;
}

.market-searchbar input::placeholder,
.catalog-search input::placeholder {
  color: var(--muted);
}

.search-suggestions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.search-suggestions button {
  min-height: 36px;
  padding: 7px 11px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.16);
  color: #fff;
  font-size: 13px;
  font-weight: 900;
  cursor: pointer;
  backdrop-filter: blur(10px);
}

.search-suggestions button:hover {
  background: rgba(255, 255, 255, 0.24);
}

.catalog-search {
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  max-width: 740px;
  min-height: 58px;
  margin-top: 22px;
  padding: 8px 8px 8px 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}

.catalog-search > svg {
  color: var(--teal);
}

.market-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.market-stats span {
  display: grid;
  min-width: 132px;
  padding: 12px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: var(--radius-sm);
  background: rgba(7, 75, 93, 0.42);
  backdrop-filter: blur(14px);
}

.booking-card {
  opacity: 0;
  animation: scale-in 0.72s var(--ease-standard) 0.22s both;
}

.market-stats strong {
  font-size: 24px;
}

.market-stats small {
  color: rgba(255, 255, 255, 0.76);
  font-weight: 800;
}

.quick-market-section {
  padding: 22px 0;
  background: var(--paper);
}

.market-category-rail {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 10px;
}

.market-category-rail a,
.market-category-rail button {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  min-height: 72px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--ink);
  text-align: left;
  cursor: pointer;
  box-shadow: var(--shadow-sm);
  transition: transform 0.22s var(--ease-standard), border-color 0.22s var(--ease-standard), background 0.22s var(--ease-standard), box-shadow 0.22s var(--ease-standard);
}

.market-category-rail a:hover,
.market-category-rail button:hover {
  transform: translateY(-3px);
  box-shadow: 0 18px 32px rgba(16, 32, 43, 0.1);
}

.market-category-rail svg {
  width: 34px;
  height: 34px;
  padding: 8px;
  border-radius: 50%;
  background: var(--mist);
  color: var(--teal);
}

.market-category-rail strong,
.market-category-rail small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.market-category-rail strong {
  font-size: 14px;
  font-weight: 950;
}

.market-category-rail small {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.market-category-rail .is-active {
  border-color: rgba(10, 113, 128, 0.42);
  background: rgba(10, 113, 128, 0.09);
}

.collections-section,
.places-section {
  background: var(--bg);
}

.collection-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.collection-card {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr) 20px;
  gap: 12px;
  align-items: start;
  min-height: 130px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
  transition: transform 0.24s var(--ease-standard), box-shadow 0.24s var(--ease-standard), border-color 0.24s var(--ease-standard);
}

.collection-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 40px rgba(16, 32, 43, 0.1);
}

.collection-card > svg:first-child {
  width: 38px;
  height: 38px;
  padding: 9px;
  border-radius: var(--radius-sm);
  background: rgba(197, 155, 82, 0.16);
  color: #8a641f;
}

.collection-card strong,
.collection-card small {
  display: block;
}

.collection-card strong {
  margin-bottom: 6px;
  font-size: 17px;
  line-height: 1.18;
}

.collection-card small {
  color: var(--muted);
  font-size: 13px;
  font-weight: 780;
}

.catalog-filter-panel {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 24px;
}

.catalog-filter-panel button {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 40px;
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  color: var(--teal-deep);
  font-size: 13px;
  font-weight: 900;
  cursor: pointer;
  transition: transform 0.2s var(--ease-standard), border-color 0.2s var(--ease-standard), background 0.2s var(--ease-standard);
}

.catalog-filter-panel button:hover,
.catalog-filter-panel button.is-active {
  border-color: rgba(11, 123, 131, 0.42);
  background: rgba(11, 123, 131, 0.1);
}

.catalog-filter-panel .filter-reset {
  border-color: rgba(207, 70, 55, 0.24);
  color: var(--coral-dark);
}

.empty-state {
  display: grid;
  justify-items: center;
  gap: 10px;
  margin-bottom: 24px;
  padding: 34px 18px;
  border: 1px dashed var(--line-strong);
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--muted);
  text-align: center;
}

.empty-state > svg {
  width: 34px;
  height: 34px;
  color: var(--teal);
}

.empty-state strong {
  color: var(--ink);
  font-size: 20px;
}

.empty-state span {
  max-width: 460px;
  font-weight: 760;
}

.deal-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 24px;
}

.deal-grid .deal-card,
.collection-grid .collection-card,
.places-grid .place-card,
.departure-list .departure-row,
.order-followup-grid .step-card,
.ticket-card,
.day-panel {
  opacity: 0;
  animation: rise-in 0.52s var(--ease-standard) both;
}

.deal-grid .deal-card:nth-child(2),
.collection-grid .collection-card:nth-child(2),
.places-grid .place-card:nth-child(2),
.departure-list .departure-row:nth-child(2),
.order-followup-grid .step-card:nth-child(2) {
  animation-delay: 0.06s;
}

.deal-grid .deal-card:nth-child(3),
.collection-grid .collection-card:nth-child(3),
.places-grid .place-card:nth-child(3),
.departure-list .departure-row:nth-child(3) {
  animation-delay: 0.12s;
}

.deal-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
  transition: transform 0.28s var(--ease-standard), box-shadow 0.28s var(--ease-standard), border-color 0.28s var(--ease-standard);
}

.deal-card.is-selected {
  border-color: rgba(10, 113, 128, 0.46);
  box-shadow: 0 16px 34px rgba(10, 113, 128, 0.12);
}

.deal-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 24px 44px rgba(16, 32, 43, 0.12);
}

.deal-media {
  position: relative;
  display: block;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--mist);
}

.deal-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.55s var(--ease-standard);
}

.deal-card:hover .deal-media img {
  transform: scale(1.05);
}

.discount-badge,
.age-badge {
  position: absolute;
  top: 12px;
  min-height: 30px;
  padding: 6px 10px;
  border-radius: var(--radius-sm);
  color: #fff;
  font-size: 12px;
  font-weight: 950;
}

.discount-badge {
  left: 12px;
  background: var(--coral);
}

.age-badge {
  right: 12px;
  background: rgba(7, 25, 35, 0.72);
}

.deal-body {
  display: grid;
  gap: 12px;
  padding: 16px;
}

.deal-kicker,
.deal-meta,
.deal-bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.deal-kicker span {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: var(--teal-deep);
  font-size: 12px;
  font-weight: 930;
  text-transform: uppercase;
}

.deal-card h3 {
  margin-bottom: 0;
  font-size: 20px;
  line-height: 1.16;
}

.deal-card p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 14px;
  font-weight: 720;
}

.deal-meta span {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 820;
}

.deal-bottom {
  justify-content: space-between;
  padding-top: 4px;
}

.deal-price {
  display: grid;
  gap: 1px;
}

.deal-price small {
  color: var(--soft);
  font-size: 13px;
  font-weight: 800;
  text-decoration: line-through;
}

.deal-price strong {
  font-size: 22px;
  line-height: 1;
}

.deal-bottom .button {
  min-height: 42px;
  padding-inline: 14px;
}

.subsection-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 16px;
  margin: 8px 0 14px;
}

.subsection-head h3 {
  margin-bottom: 0;
  font-size: 24px;
}

.subsection-head > span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 900;
}

.places-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.place-card {
  display: grid;
  gap: 8px;
  min-height: 150px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    linear-gradient(135deg, rgba(10, 113, 128, 0.09), rgba(197, 155, 82, 0.08)),
    var(--surface);
  box-shadow: var(--shadow-sm);
  transition: transform 0.24s var(--ease-standard), box-shadow 0.24s var(--ease-standard);
}

.place-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 38px rgba(16, 32, 43, 0.1);
}

.place-card span {
  width: max-content;
  padding: 5px 8px;
  border-radius: 999px;
  background: var(--teal-deep);
  color: #fff;
  font-size: 12px;
  font-weight: 930;
}

.place-card strong {
  font-size: 22px;
}

.place-card small {
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.catalog-aside {
  position: sticky;
  top: calc(var(--header) + 86px);
  display: grid;
  gap: 14px;
}

.aside-card {
  display: grid;
  gap: 12px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}

.aside-card h2 {
  margin-bottom: 0;
  font-size: 23px;
  line-height: 1.12;
}

.aside-card p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 14px;
  font-weight: 760;
}

.aside-card.compact a {
  padding: 10px 0;
  border-top: 1px solid var(--line);
  color: var(--teal-deep);
  font-size: 14px;
  font-weight: 900;
}

.journey-steps {
  position: sticky;
  top: var(--header);
  z-index: 50;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 253, 248, 0.96);
  backdrop-filter: blur(14px);
}

.steps-inner {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
  padding: 13px 0;
}

.steps-inner a {
  display: grid;
  grid-template-columns: 36px 22px minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  min-height: 48px;
  color: var(--soft);
  font-weight: 900;
}

.steps-inner a::after {
  content: "";
  grid-column: 3;
  height: 2px;
  margin-top: 8px;
  background: var(--line);
}

.steps-inner span {
  display: grid;
  width: 32px;
  height: 32px;
  place-items: center;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  background: var(--paper);
  font-weight: 950;
}

.steps-inner a.is-active,
.steps-inner a.is-done {
  color: var(--teal-deep);
}

.steps-inner a.is-active span,
.steps-inner a.is-done span {
  border-color: var(--teal);
  background: var(--teal);
  color: #fff;
}

.steps-inner a.is-active::after,
.steps-inner a.is-done::after {
  background: var(--teal);
}

.section {
  padding: 42px 0;
}

.route-section {
  background: var(--paper);
}

.section-head,
.results-head,
.block-head,
.ticket-head,
.page-row,
.order-hero-grid {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
}

.order-hero-grid > * {
  opacity: 0;
  animation: rise-in 0.58s var(--ease-standard) both;
}

.order-hero-grid > *:last-child {
  animation-delay: 0.12s;
}

.section-head {
  margin-bottom: 18px;
}

.section-head h2,
.catalog-hero h1,
.checkout-hero h1,
.order-hero h1 {
  max-width: 760px;
  margin-bottom: 0;
  font-family: var(--font-display);
  font-size: 46px;
  line-height: 1.08;
  letter-spacing: 0;
}

.departure-list {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}

.departure-row {
  display: grid;
  grid-template-columns: 110px minmax(180px, 1fr) minmax(220px, 1.3fr) 120px 140px 140px 150px 48px;
  gap: 18px;
  align-items: center;
  min-height: 112px;
  padding: 18px 22px;
  border-bottom: 1px solid var(--line);
  transition: transform 0.22s var(--ease-standard), background 0.22s var(--ease-standard), box-shadow 0.22s var(--ease-standard);
}

.departure-row:last-child {
  border-bottom: 0;
}

.departure-row.is-selected {
  background: linear-gradient(90deg, rgba(10, 113, 128, 0.08), rgba(255, 255, 255, 0));
}

.departure-row:hover {
  transform: translateY(-2px);
  box-shadow: inset 0 0 0 1px rgba(11, 123, 131, 0.1);
}

.departure-row time {
  color: var(--ink);
  font-size: 32px;
  font-weight: 950;
  line-height: 1;
}

.pier-cell,
.route-line-cell,
.seats-cell,
.class-cell,
.price-cell {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.pier-cell span,
.route-line-cell span,
.seats-cell span,
.class-cell span,
.price-cell span,
.price-cell small {
  color: var(--muted);
  font-size: 13px;
  font-weight: 750;
}

.pier-cell strong,
.route-line-cell strong,
.class-cell strong {
  font-size: 15px;
  font-weight: 930;
}

.mini-route {
  display: grid;
  grid-template-columns: minmax(28px, 1fr) 28px minmax(28px, 1fr);
  align-items: center;
  gap: 8px;
  max-width: 210px;
  color: var(--teal);
}

.mini-route span {
  height: 2px;
  background: var(--teal);
}

.seats-cell strong {
  color: var(--teal);
  font-size: 30px;
  line-height: 1;
}

.price-cell strong {
  font-size: 24px;
  line-height: 1;
}

.bookmark {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--paper);
  color: var(--teal-deep);
  cursor: pointer;
}

.bookmark.is-active {
  background: rgba(197, 155, 82, 0.16);
  color: var(--gold);
}

.service-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
  margin-top: 22px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #f4f8f8;
}

.service-strip div {
  display: grid;
  grid-template-columns: 32px minmax(0, 1fr);
  gap: 6px 12px;
  align-items: center;
}

.service-strip svg {
  grid-row: span 2;
  color: var(--teal);
}

.service-strip strong {
  font-size: 14px;
}

.service-strip span {
  color: var(--muted);
  font-size: 12px;
}

.concierge-story {
  background: var(--bg);
}

.story-grid {
  display: grid;
  grid-template-columns: minmax(320px, 0.82fr) minmax(0, 1fr);
  gap: 30px;
  align-items: center;
}

.story-grid img,
.care-card img,
.service-aside img,
.summary-ticket img,
.offer-hero img {
  width: 100%;
  object-fit: cover;
  background: var(--mist);
}

.story-grid img {
  height: 360px;
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
}

.story-grid h2 {
  max-width: 720px;
  margin-bottom: 12px;
  font-family: var(--font-display);
  font-size: 44px;
  line-height: 1.08;
}

.story-grid p {
  max-width: 680px;
  color: var(--muted);
  font-size: 17px;
}

.story-points {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 20px;
}

.story-points span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 38px;
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--paper);
  color: var(--teal-deep);
  font-size: 13px;
  font-weight: 900;
}

.catalog-hero,
.checkout-hero,
.order-hero {
  padding: 44px 0 30px;
  border-bottom: 1px solid var(--line);
  background:
    linear-gradient(180deg, rgba(232, 246, 247, 0.88), rgba(246, 243, 236, 0)),
    var(--bg);
}

.catalog-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 380px;
  gap: 28px;
  align-items: start;
}

.catalog-hero p,
.checkout-hero p,
.order-hero p,
.offer-hero-copy p {
  max-width: 690px;
  margin-bottom: 0;
  color: var(--muted);
  font-size: 17px;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 850;
}

.breadcrumb a {
  color: var(--teal-deep);
}

.results-layout,
.offer-layout,
.checkout-layout,
.order-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 380px;
  gap: 24px;
  align-items: start;
}

.results-head {
  margin-bottom: 14px;
}

.results-head h2 {
  margin-bottom: 6px;
  font-size: 24px;
}

.results-head p {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-bottom: 0;
  color: var(--muted);
  font-size: 14px;
  font-weight: 800;
}

.sort-control {
  display: flex;
  align-items: center;
  gap: 10px;
}

.sort-control select {
  min-height: 42px;
  padding: 0 36px 0 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--surface);
  color: var(--ink);
  font-weight: 850;
}

.service-aside,
.buy-panel,
.checkout-side,
.day-panel {
  position: sticky;
  top: calc(var(--header) + 86px);
}

.service-aside,
.buy-panel,
.payment-panel,
.day-panel,
.step-card,
.summary-ticket,
.ticket-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}

.service-aside {
  display: grid;
  gap: 14px;
  padding: 16px;
}

.service-aside img {
  height: 190px;
  border-radius: var(--radius-sm);
}

.service-aside h2 {
  margin-bottom: 0;
  font-size: 24px;
}

.service-aside p {
  margin-bottom: 0;
  color: var(--muted);
  font-weight: 800;
}

.offer-hero {
  position: relative;
  min-height: 430px;
  overflow: hidden;
  background: var(--navy);
}

.offer-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(7, 25, 35, 0.8), rgba(7, 25, 35, 0.34), rgba(7, 25, 35, 0.1));
}

.offer-hero img {
  position: absolute;
  inset: 0;
  height: 100%;
}

.offer-hero-copy {
  position: relative;
  z-index: 1;
  width: min(var(--shell), calc(100% - 48px));
  margin: 0 auto;
  padding: 58px 0;
  color: #fff;
}

.offer-hero-copy .breadcrumb,
.offer-hero-copy .breadcrumb a,
.offer-hero-copy .overline,
.offer-hero-copy p {
  color: rgba(255, 255, 255, 0.82);
}

.offer-hero-copy h1 {
  max-width: 760px;
  margin-bottom: 14px;
  font-family: var(--font-display);
  font-size: 58px;
  line-height: 1.04;
}

.fact-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}

.fact-row span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 40px;
  padding: 8px 12px;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.12);
  font-weight: 850;
}

.offer-main,
.checkout-main {
  display: grid;
  gap: 16px;
}

.step-card {
  padding: 22px;
}

.block-head {
  margin-bottom: 16px;
}

.block-head h2 {
  margin-bottom: 0;
  font-size: 28px;
}

.timer,
.soft-note {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 36px;
  padding: 7px 10px;
  border-radius: var(--radius-sm);
  background: rgba(197, 155, 82, 0.15);
  color: #8a641f;
  font-size: 13px;
  font-weight: 900;
}

.soft-note {
  background: var(--mist);
  color: var(--teal-deep);
}

.date-layout {
  display: grid;
  grid-template-columns: 360px minmax(0, 1fr);
  gap: 16px;
  align-items: start;
}

.date-rail {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.date-rail button {
  display: grid;
  min-height: 118px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--paper);
  color: var(--ink);
  cursor: pointer;
}

.date-rail button.is-active {
  border-color: var(--teal);
  background: rgba(10, 113, 128, 0.1);
}

.date-rail span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
}

.date-rail strong {
  font-size: 34px;
  line-height: 1;
}

.time-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.time-choice {
  display: grid;
  gap: 6px;
  min-height: 114px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--paper);
  color: var(--ink);
  text-align: left;
  cursor: pointer;
  transition: transform 0.22s var(--ease-standard), border-color 0.22s var(--ease-standard), background 0.22s var(--ease-standard), box-shadow 0.22s var(--ease-standard);
}

.time-choice strong {
  font-size: 28px;
  line-height: 1;
}

.time-choice span,
.time-choice small {
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.time-choice.is-active {
  border-color: var(--teal);
  background: rgba(10, 113, 128, 0.1);
}

.time-choice:hover {
  transform: translateY(-3px);
  box-shadow: 0 18px 34px rgba(16, 32, 43, 0.08);
}

.class-tabs {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 14px;
}

.class-tabs button {
  display: grid;
  gap: 4px;
  min-height: 104px;
  padding: 15px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--paper);
  color: var(--ink);
  text-align: left;
  cursor: pointer;
  transition: transform 0.22s var(--ease-standard), border-color 0.22s var(--ease-standard), background 0.22s var(--ease-standard), box-shadow 0.22s var(--ease-standard);
}

.class-tabs button.is-active {
  border-color: var(--teal);
  background: rgba(10, 113, 128, 0.1);
}

.class-tabs button:hover {
  transform: translateY(-3px);
  box-shadow: 0 18px 34px rgba(16, 32, 43, 0.08);
}

.class-tabs strong {
  font-size: 18px;
}

.class-tabs span,
.class-tabs small {
  color: var(--muted);
  font-size: 13px;
  font-weight: 780;
}

.fare-list {
  display: grid;
  gap: 8px;
}

.fare-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 140px;
  gap: 14px;
  align-items: center;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: #fbfcfb;
}

.fare-row strong {
  display: block;
  margin-bottom: 3px;
}

.fare-row span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 760;
}

.stepper {
  display: grid;
  grid-template-columns: 44px 1fr 44px;
  overflow: hidden;
  min-height: 44px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--surface);
}

.stepper strong {
  display: grid;
  margin: 0;
  place-items: center;
  border-inline: 1px solid var(--line);
}

.care-card {
  display: grid;
  grid-template-columns: 270px minmax(0, 1fr);
  gap: 20px;
  align-items: center;
  overflow: hidden;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #f8fbfb;
}

.care-card img {
  height: 210px;
  border-radius: var(--radius-sm);
}

.care-card h2 {
  margin-bottom: 10px;
  font-size: 28px;
  line-height: 1.14;
}

.care-card p {
  margin-bottom: 0;
  color: var(--muted);
}

.buy-panel,
.payment-panel,
.day-panel {
  display: grid;
  gap: 14px;
  padding: 22px;
}

.buy-panel h2,
.payment-panel h2 {
  margin-bottom: 0;
  font-size: 34px;
}

.buy-panel p {
  margin-bottom: 0;
  color: var(--muted);
  font-weight: 850;
}

.selected-card,
.pay-method,
.support-box,
.receipt-box {
  display: grid;
  gap: 6px;
  padding: 14px;
  border-radius: var(--radius-sm);
  background: var(--mist);
}

.selected-card span,
.selected-card small,
.pay-method span,
.support-box span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 760;
}

.route-timeline {
  position: relative;
  display: grid;
  gap: 18px;
  padding-left: 26px;
}

.route-timeline::before {
  content: "";
  position: absolute;
  left: 8px;
  top: 12px;
  bottom: 12px;
  width: 2px;
  background: var(--line-strong);
}

.route-timeline div {
  position: relative;
  display: grid;
  gap: 3px;
}

.route-timeline div::before {
  content: "";
  position: absolute;
  left: -24px;
  top: 7px;
  width: 12px;
  height: 12px;
  border: 3px solid var(--surface);
  border-radius: 50%;
  background: var(--teal);
  box-shadow: 0 0 0 1px var(--teal);
}

.route-timeline span,
.route-timeline small {
  color: var(--muted);
  font-size: 12px;
  font-weight: 820;
}

.buy-note {
  display: flex;
  align-items: start;
  gap: 9px;
  padding: 12px;
  border: 1px solid rgba(10, 113, 128, 0.18);
  border-radius: var(--radius-sm);
  color: var(--teal-deep);
  font-size: 13px;
  font-weight: 820;
}

.checkout-layout {
  grid-template-columns: minmax(0, 1fr) 400px;
}

.summary-ticket {
  display: grid;
  grid-template-columns: 230px minmax(0, 1fr);
  gap: 18px;
  padding: 18px;
}

.summary-ticket img {
  height: 245px;
  border-radius: var(--radius-sm);
}

.summary-ticket h2 {
  margin-bottom: 12px;
  font-size: 30px;
}

.ticket-lines {
  display: grid;
  gap: 8px;
  margin-bottom: 14px;
}

.ticket-lines span {
  display: grid;
  grid-template-columns: 120px minmax(0, 1fr);
  gap: 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--line);
  font-weight: 850;
}

.ticket-lines strong {
  color: var(--muted);
  font-size: 13px;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.field {
  display: grid;
  gap: 7px;
}

.text-input {
  width: 100%;
  min-height: 50px;
  padding: 11px 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--surface);
  color: var(--ink);
  font-weight: 820;
}

.field.is-invalid .text-input {
  border-color: var(--danger);
}

.field small,
.form-message {
  min-height: 18px;
  margin: 0;
  color: var(--danger);
  font-size: 12px;
  font-weight: 780;
}

.check-line {
  display: flex;
  align-items: start;
  gap: 10px;
  margin-top: 12px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 760;
}

.check-line input {
  width: 18px;
  height: 18px;
  margin-top: 2px;
  accent-color: var(--teal);
}

.checkout-side {
  display: grid;
  gap: 16px;
}

.price-lines {
  display: grid;
  gap: 12px;
  padding: 16px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.price-lines div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

.price-lines span {
  color: var(--muted);
  font-weight: 800;
}

.order-hero {
  background:
    linear-gradient(180deg, rgba(8, 61, 79, 0.12), rgba(246, 243, 236, 0)),
    var(--bg);
}

.order-status-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.order-status-strip span,
.order-code-card {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 40px;
  padding: 9px 12px;
  border: 1px solid rgba(11, 123, 131, 0.16);
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.86);
  color: var(--teal-deep);
  font-size: 13px;
  font-weight: 860;
}

.order-code-card {
  display: grid;
  gap: 4px;
  min-width: 240px;
  justify-items: end;
  text-align: right;
}

.order-code-card strong {
  color: var(--ink);
  font-size: 18px;
}

.order-code-card span,
.order-code-card small {
  color: var(--muted);
}

.ticket-card {
  padding: 24px;
}

.ticket-head {
  margin-bottom: 20px;
}

.ticket-head h2 {
  margin: 8px 0 4px;
  font-size: 30px;
}

.ticket-head p {
  margin-bottom: 0;
  color: var(--muted);
  font-weight: 820;
}

.status.ready {
  background: rgba(36, 121, 90, 0.14);
  color: var(--success);
}

.order-main {
  display: grid;
  gap: 16px;
}

.delivery-banner {
  display: grid;
  gap: 5px;
  margin-bottom: 18px;
  padding: 14px;
  border-radius: var(--radius-sm);
  background: linear-gradient(135deg, rgba(11, 123, 131, 0.1), rgba(189, 145, 72, 0.1));
}

.delivery-banner strong {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.delivery-banner span {
  color: var(--muted);
  font-size: 14px;
  font-weight: 760;
}

.delivery-banner b {
  color: var(--ink);
}

.qr-layout {
  display: grid;
  grid-template-columns: 230px minmax(0, 1fr);
  gap: 22px;
  align-items: center;
}

.qr-img {
  display: grid;
  grid-template-columns: repeat(9, 1fr);
  gap: 5px;
  width: 230px;
  height: 230px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

.qr-img span {
  border-radius: 2px;
  background: #edf2f1;
}

.qr-img span.fill {
  background: var(--ink);
}

.ticket-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.ticket-file-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 16px;
}

.ticket-file-card {
  display: grid;
  gap: 4px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: #fbfcfb;
}

.ticket-file-card span {
  color: var(--teal-deep);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.ticket-file-card strong {
  font-size: 16px;
}

.ticket-file-card small {
  color: var(--muted);
  font-size: 12px;
  font-weight: 760;
}

.ticket-action-note {
  min-height: 20px;
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 13px;
  font-weight: 780;
}

.status.pending {
  background: rgba(161, 109, 24, 0.13);
  color: var(--warning);
}

.qr-placeholder {
  display: grid;
  width: 230px;
  min-height: 230px;
  place-content: center;
  justify-items: center;
  gap: 8px;
  padding: 24px;
  border: 1px dashed var(--line-strong);
  border-radius: var(--radius);
  background: var(--mist);
  color: var(--teal-deep);
  text-align: center;
}

.qr-placeholder svg {
  width: 42px;
  height: 42px;
}

.qr-placeholder strong {
  font-size: 15px;
}

.qr-placeholder span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 760;
}

.data-status-note {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
  color: var(--muted);
}

.data-status-note > svg {
  color: var(--warning);
}

.data-status-note span {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.data-status-note strong {
  color: var(--ink);
  font-size: 13px;
}

.data-status-note small {
  font-size: 12px;
  font-weight: 720;
}

.data-status-note.is-live {
  border-color: rgba(37, 122, 90, 0.28);
  background: rgba(37, 122, 90, 0.08);
}

.data-status-note.is-live > svg {
  color: var(--success);
}

.data-status-note.is-loading > svg {
  color: var(--teal);
  animation: spin 1s linear infinite;
}

.cookie-banner {
  position: fixed;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 120;
  display: flex;
  justify-content: center;
  padding: 0 18px 18px;
  pointer-events: none;
}

.cookie-banner[hidden] {
  display: none;
}

.cookie-banner-inner {
  pointer-events: auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 16px 28px;
  align-items: center;
  width: 100%;
  max-width: 1180px;
  margin: 0;
  padding: 22px 28px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-lg, 20px);
  background: rgba(255, 253, 249, 0.98);
  box-shadow: 0 24px 60px rgba(11, 40, 46, 0.22);
  backdrop-filter: blur(18px);
  animation: cookieRise 0.5s var(--ease-standard, ease) both;
}

@keyframes cookieRise {
  from {
    opacity: 0;
    transform: translateY(24px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.cookie-copy {
  min-width: 0;
}

.cookie-copy .overline {
  margin-bottom: 6px;
}

.cookie-copy h2 {
  margin-bottom: 5px;
  font-size: 20px;
}

.cookie-copy p {
  max-width: 760px;
  margin-bottom: 7px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.cookie-copy .text-link {
  font-size: 12px;
}

.cookie-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.cookie-actions .button,
.cookie-actions .text-button {
  min-height: 44px;
  white-space: nowrap;
}

.cookie-settings {
  display: grid;
  grid-column: 1 / -1;
  grid-template-columns: repeat(3, minmax(0, 1fr)) auto;
  gap: 10px;
  align-items: center;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}

.cookie-settings .check-line {
  margin-top: 0;
  font-size: 12px;
}

.cookie-settings .check-line span {
  display: grid;
  gap: 2px;
}

.cookie-settings .check-line small {
  min-height: 0;
  color: var(--muted);
  font-size: 11px;
  font-weight: 650;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.order-followup-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.next-step-list,
.travel-note-list {
  display: grid;
  gap: 10px;
}

.next-step-list div,
.travel-note-list span {
  display: grid;
  gap: 3px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: #fbfcfb;
}

.next-step-list strong {
  font-size: 15px;
}

.next-step-list span,
.travel-note-list span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 760;
}

.travel-note-list span {
  grid-template-columns: 18px minmax(0, 1fr);
  align-items: start;
  gap: 8px;
}

.not-found {
  padding: 72px 0;
  background:
    linear-gradient(180deg, rgba(231, 242, 239, 0.9), rgba(243, 247, 245, 0)),
    var(--bg);
}

.not-found-card {
  max-width: 760px;
  padding: 42px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}

.not-found-card h1 {
  margin-bottom: 12px;
  font-family: var(--font-display);
  font-size: 50px;
  line-height: 1.05;
}

.not-found-card p {
  max-width: 580px;
  color: var(--muted);
  font-size: 17px;
}

.not-found-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}

.mobile-buy-bar {
  display: none;
}

.site-footer {
  margin-top: 0;
  padding: 34px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  background: #071927;
  color: #fff;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.35fr repeat(3, minmax(0, 1fr));
  gap: 24px;
}

.footer-grid p,
.footer-grid a {
  color: rgba(255, 255, 255, 0.72);
}

.footer-grid h2 {
  margin: 0 0 12px;
  color: #fff;
  font-size: 15px;
}

.footer-grid a {
  display: block;
  margin: 8px 0;
  font-size: 14px;
}

.footer-brand {
  margin-bottom: 12px;
  color: #fff;
}

.footer-brand .brand-copy strong,
.footer-brand .brand-copy small {
  color: #fff;
}

@media (max-width: 1220px) {
  .hero-grid,
  .marketplace-hero-grid,
  .catalog-grid,
  .results-layout,
  .offer-layout,
  .checkout-layout,
  .order-layout {
    grid-template-columns: 1fr;
  }

  .hero-grid {
    gap: 22px;
    align-items: end;
    min-height: auto;
    padding: 34px 0;
  }

  .pier-hero {
    min-height: auto;
  }

  .hero-route-card,
  .service-aside,
  .catalog-aside,
  .buy-panel,
  .checkout-side,
  .day-panel {
    position: static;
  }

  .deal-grid,
  .collection-grid,
  .places-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .departure-row {
    grid-template-columns: 96px minmax(170px, 1fr) minmax(210px, 1fr) 110px 120px 130px;
  }

  .departure-row .button,
  .bookmark {
    grid-column: auto;
  }

  .bookmark {
    display: none;
  }
}

@media (max-width: 980px) {
  .main-nav,
  .header-actions {
    display: none;
  }

  .menu-toggle {
    display: inline-grid;
  }

  .mobile-nav {
    position: fixed;
    inset: var(--header) 0 auto;
    z-index: 79;
    display: none;
    grid-template-columns: 1fr;
    gap: 4px;
    padding: 14px 20px 20px;
    border-bottom: 1px solid var(--line);
    background: rgba(255, 253, 248, 0.98);
    box-shadow: var(--shadow-sm);
  }

  body.nav-open .mobile-nav {
    display: grid;
  }

  .booking-two,
  .date-layout,
  .story-grid,
  .care-card,
  .summary-ticket,
  .qr-layout {
    grid-template-columns: 1fr;
  }

  .departure-row {
    grid-template-columns: 88px minmax(0, 1fr) minmax(0, 1fr);
    gap: 14px;
  }

  .route-line-cell,
  .price-cell,
  .departure-row .button {
    grid-column: 2 / -1;
  }

  .service-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .market-category-rail {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .time-grid,
  .class-tabs,
  .form-grid {
    grid-template-columns: 1fr;
  }

  .steps-inner {
    gap: 8px;
  }

  .steps-inner a {
    grid-template-columns: 32px minmax(0, 1fr);
    gap: 7px;
  }

  .steps-inner svg,
  .steps-inner a::after {
    display: none;
  }
}

@media (max-width: 700px) {
  :root {
    --header: 78px;
  }

  .shell,
  .offer-hero-copy {
    width: min(100% - 28px, var(--shell));
  }

  .brand-copy strong {
    font-size: 15px;
  }

  .brand-copy small {
    font-size: 9px;
  }

  .pier-hero {
    background: var(--bg);
  }

  .hero-image {
    height: 230px;
    object-position: 58% center;
  }

  .hero-scrim {
    height: 230px;
  }

  .hero-grid {
    display: block;
    padding: 174px 0 16px;
  }

  .marketplace-hero-grid {
    display: block;
    min-height: auto;
    padding: 104px 0 12px;
  }

  .market-hero-copy {
    margin-bottom: 10px;
  }

  .market-hero-copy h1 {
    max-width: 330px;
    margin-bottom: 6px;
    font-size: 32px;
    line-height: 1.02;
  }

  .market-hero-copy p {
    max-width: 340px;
    display: -webkit-box;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    margin-bottom: 10px;
    font-size: 14px;
  }

  .market-searchbar {
    grid-template-columns: 20px minmax(0, 1fr) auto;
    gap: 8px;
    min-height: 54px;
    padding: 8px;
  }

  .market-searchbar .button {
    grid-column: auto;
    min-height: 44px;
    padding-inline: 12px;
    font-size: 13px;
  }

  .market-searchbar input,
  .catalog-search input {
    font-size: 14px;
  }

  .search-suggestions {
    flex-wrap: nowrap;
    overflow-x: auto;
    margin-top: 10px;
    padding-bottom: 2px;
  }

  .search-suggestions button {
    flex: 0 0 auto;
  }

  .market-stats {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 6px;
    margin-top: 10px;
  }

  .market-stats span {
    min-width: 0;
    padding: 9px;
  }

  .market-stats strong {
    font-size: 18px;
  }

  .market-stats small {
    font-size: 10px;
  }

  .booking-card {
    padding: 12px;
  }

  .booking-card > .overline,
  .booking-card h2 {
    display: none;
  }

  .route-tabs {
    display: flex;
    overflow-x: auto;
    gap: 8px;
    margin-bottom: 10px;
    border: 0;
    scroll-snap-type: x proximity;
  }

  .route-tabs button {
    flex: 0 0 148px;
    min-height: 50px;
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    scroll-snap-align: start;
  }

  .route-tabs button:nth-child(2n),
  .route-tabs button:nth-last-child(-n + 2) {
    border: 1px solid var(--line);
  }

  .route-tabs button > svg {
    width: 26px;
    height: 26px;
    padding: 6px;
  }

  .route-tabs strong {
    font-size: 12px;
  }

  .route-tabs small {
    font-size: 10px;
  }

  .booking-two {
    gap: 10px;
  }

  .calendar-card {
    padding: 10px;
  }

  .calendar-top {
    margin-bottom: 7px;
  }

  .calendar-top button {
    width: 44px;
    height: 44px;
  }

  .calendar-grid {
    gap: 3px;
  }

  .calendar-grid button,
  .calendar-empty {
    min-height: 44px;
  }

  .calendar-grid button {
    font-size: 12px;
  }

  .quick-dates {
    margin-top: 8px;
  }

  .quick-dates button {
    min-height: 42px;
    padding: 6px 8px;
    font-size: 12px;
  }

  .calendar-caption {
    margin-top: 8px;
    font-size: 11px;
  }

  .booking-card .calendar-weekdays,
  .booking-card .calendar-grid {
    display: none;
  }

  .booking-card .calendar-top {
    justify-content: center;
    margin-bottom: 6px;
  }

  .booking-card .calendar-top button {
    display: none;
  }

  .booking-card .quick-dates {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .booking-card .quick-dates button {
    min-height: 44px;
    padding: 5px 4px;
    font-size: 11px;
  }

  .search-column {
    grid-template-columns: 1fr 1fr;
    gap: 8px;
  }

  .booking-control {
    gap: 6px;
  }

  .booking-control > span,
  .field-label {
    font-size: 12px;
  }

  .passenger-stepper,
  .segmented {
    min-height: 50px;
  }

  .passenger-stepper {
    grid-template-columns: 44px minmax(0, 1fr) 44px;
  }

  .passenger-stepper strong,
  .segmented button {
    font-size: 12px;
  }

  .hero-cta,
  .care-note {
    grid-column: 1 / -1;
  }

  .hero-cta {
    min-height: 50px;
    font-size: 15px;
  }

  .care-note {
    font-size: 12px;
  }

  .hero-route-card {
    display: none;
  }

  .quick-market-section {
    padding: 12px 0;
  }

  .market-category-rail {
    display: flex;
    overflow-x: auto;
    gap: 8px;
    padding-bottom: 2px;
    scroll-snap-type: x proximity;
  }

  .market-category-rail a,
  .market-category-rail button {
    grid-template-columns: 30px 118px;
    flex: 0 0 178px;
    min-height: 62px;
    padding: 10px;
    scroll-snap-align: start;
  }

  .market-category-rail svg {
    width: 30px;
    height: 30px;
    padding: 7px;
  }

  .collection-grid,
  .deal-grid,
  .places-grid {
    grid-template-columns: 1fr;
  }

  .collection-card {
    min-height: 104px;
    padding: 14px;
  }

  .deal-grid {
    gap: 12px;
    margin-bottom: 18px;
  }

  .deal-card h3 {
    font-size: 18px;
  }

  .deal-body {
    gap: 10px;
    padding: 13px;
  }

  .deal-bottom {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto 42px;
  }

  .deal-bottom .bookmark {
    display: grid;
    width: 42px;
  }

  .subsection-head {
    align-items: start;
    margin-top: 4px;
  }

  .subsection-head h3 {
    font-size: 20px;
  }

  .catalog-filter-panel {
    flex-wrap: nowrap;
    gap: 6px;
    margin-top: 14px;
    overflow-x: auto;
    padding-bottom: 2px;
  }

  .catalog-search {
    grid-template-columns: 20px minmax(0, 1fr);
    gap: 8px;
    min-height: 0;
    margin-top: 16px;
    padding: 10px;
  }

  .catalog-search .button {
    grid-column: 1 / -1;
    min-height: 44px;
  }

  .catalog-filter-panel button {
    flex: 0 0 auto;
    min-height: 44px;
    font-size: 12px;
  }

  .catalog-aside {
    gap: 10px;
  }

  .aside-card {
    padding: 14px;
  }

  .route-card-lines div {
    grid-template-columns: 24px minmax(0, 1fr);
  }

  .route-card-lines span {
    display: none;
  }

  .journey-steps {
    position: static;
  }

  .steps-inner {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    overflow-x: auto;
  }

  .steps-inner a {
    grid-template-columns: 1fr;
    justify-items: center;
    min-width: 72px;
    font-size: 12px;
    text-align: center;
  }

  .section {
    padding: 20px 0;
  }

  .section-head,
  .results-head,
  .block-head,
  .ticket-head,
  .page-row,
  .order-hero-grid {
    align-items: start;
    flex-direction: column;
  }

  .section-head h2,
  .catalog-hero h1,
  .checkout-hero h1,
  .order-hero h1 {
    font-size: 31px;
  }

  .route-section .section-head {
    align-items: center;
    flex-direction: row;
    gap: 8px;
    margin-bottom: 10px;
  }

  .route-section .section-head .overline {
    display: none;
  }

  .route-section .section-head h2 {
    font-size: 24px;
    line-height: 1.05;
  }

  .route-section .text-link {
    flex: 0 0 auto;
    font-size: 14px;
  }

  .departure-list {
    border: 0;
    background: transparent;
    box-shadow: none;
  }

  .departure-row {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 8px 12px;
    margin-bottom: 10px;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--surface);
  }

  .departure-row time {
    grid-column: 1;
    grid-row: 1;
    font-size: 36px;
  }

  .pier-cell {
    grid-column: 1 / -1;
    grid-row: 2;
    gap: 1px;
  }

  .pier-cell strong {
    font-size: 18px;
  }

  .pier-cell span {
    font-size: 13px;
  }

  .route-line-cell,
  .departure-row .button {
    grid-column: 1 / -1;
  }

  .route-line-cell {
    grid-row: 3;
    grid-template-columns: 28px minmax(0, 1fr);
    gap: 2px 8px;
    align-items: center;
    padding: 8px 0;
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
  }

  .route-line-cell .mini-route {
    grid-row: 1 / span 2;
    grid-template-columns: 1fr;
    width: 28px;
    max-width: 28px;
  }

  .route-line-cell .mini-route span {
    display: none;
  }

  .route-line-cell strong,
  .route-line-cell span {
    grid-column: 2;
  }

  .route-line-cell strong {
    font-size: 15px;
  }

  .route-line-cell span {
    font-size: 12px;
  }

  .seats-cell,
  .class-cell {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding: 8px 10px;
    border-radius: var(--radius-sm);
    background: var(--mist);
  }

  .seats-cell {
    grid-column: 1;
    grid-row: 4;
  }

  .class-cell {
    grid-column: 2;
    grid-row: 4;
    min-width: 116px;
  }

  .seats-cell span,
  .class-cell span {
    font-size: 11px;
  }

  .seats-cell strong {
    font-size: 26px;
  }

  .class-cell strong {
    font-size: 16px;
  }

  .price-cell {
    display: flex;
    align-items: baseline;
    justify-content: flex-end;
    flex-wrap: wrap;
    gap: 1px 4px;
    grid-column: 2;
    grid-row: 1;
    justify-self: end;
    min-width: 108px;
    text-align: right;
  }

  .price-cell span,
  .price-cell small {
    font-size: 11px;
  }

  .price-cell strong {
    font-size: 24px;
  }

  .price-cell small {
    flex-basis: 100%;
  }

  .departure-row .button {
    grid-row: 5;
    min-height: 48px;
  }

  .service-strip {
    grid-template-columns: 1fr;
  }

  .story-grid img,
  .care-card img,
  .summary-ticket img {
    height: 170px;
  }

  .catalog-hero,
  .checkout-hero,
  .order-hero {
    padding: 30px 0 22px;
  }

  .offer-hero {
    min-height: 520px;
  }

  .offer-hero-copy {
    padding: 36px 0;
  }

  .offer-hero-copy h1 {
    font-size: 38px;
  }

  .date-rail {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .fare-row {
    grid-template-columns: 1fr;
  }

  .stepper {
    width: 152px;
  }

  .ticket-lines span {
    grid-template-columns: 1fr;
  }

  .order-code-card {
    width: 100%;
    justify-items: start;
    text-align: left;
  }

  .ticket-file-grid,
  .order-followup-grid {
    grid-template-columns: 1fr;
  }

  .mobile-buy-bar {
    position: fixed;
    inset: auto 0 0;
    z-index: 70;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 10px 14px;
    border-top: 1px solid var(--line);
    background: rgba(255, 253, 248, 0.96);
    backdrop-filter: blur(14px);
    box-shadow: 0 -10px 22px rgba(13, 27, 42, 0.08);
    animation: dock-in 0.42s var(--ease-standard) both;
  }

  .mobile-buy-bar strong {
    display: block;
    font-size: 19px;
  }

  .mobile-buy-bar span {
    color: var(--muted);
    font-size: 12px;
    font-weight: 800;
  }

  .mobile-buy-bar .button {
    min-width: 138px;
  }

  .offer-layout,
  .checkout-layout {
    padding-bottom: 104px;
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}

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

  .qr-placeholder,
  .qr-img {
    width: min(230px, 100%);
    height: auto;
    aspect-ratio: 1;
    margin-inline: auto;
  }

  .cookie-banner-inner {
    width: 100%;
    grid-template-columns: 1fr;
    gap: 12px;
    padding: 16px 18px;
    border-radius: 16px;
  }

  .cookie-copy h2 {
    font-size: 18px;
  }

  .cookie-copy p {
    display: -webkit-box;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
    margin-bottom: 5px;
    font-size: 12px;
  }

  .cookie-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .cookie-actions .button,
  .cookie-actions .text-button {
    width: 100%;
    justify-content: center;
    padding-inline: 8px;
    font-size: 12px;
  }

  .cookie-actions .text-button {
    grid-column: 1 / -1;
  }

  .cookie-settings {
    grid-template-columns: 1fr;
  }

  .cookie-settings .button {
    width: 100%;
  }
}

.legal-page {
  min-height: 70vh;
  padding: 64px 0 96px;
}

.legal-page .shell {
  max-width: 860px;
}

.legal-page h1 {
  max-width: 760px;
  margin-bottom: 14px;
  font-size: 52px;
  line-height: 1.04;
}

.legal-page .lead {
  max-width: 720px;
  color: var(--muted);
  font-size: 18px;
  font-weight: 650;
}

.legal-page article {
  display: grid;
  gap: 12px;
  margin-top: 34px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
  box-shadow: var(--shadow-sm);
}

.legal-page h2 {
  margin-bottom: 0;
  font-size: 23px;
}

.legal-page p,
.legal-page li {
  color: var(--muted);
  font-weight: 650;
}

.legal-page ul {
  display: grid;
  gap: 8px;
  margin: 0;
  padding-left: 20px;
}

.legal-page .legal-draft {
  border-color: rgba(161, 109, 24, 0.38);
  background: rgba(161, 109, 24, 0.08);
}

/* 2026 marketplace redesign: make discovery and saving actions explicit. */
.quick-market-section,
.route-section {
  background: #f6faf8;
}

.section-head {
  align-items: end;
  margin-bottom: 24px;
}

.section-head > div:first-child,
.results-head > div:first-child {
  min-width: 0;
}

.section-head h2,
.results-head h2 {
  max-width: 720px;
  font-size: 46px;
  line-height: 1.02;
}

.section-subcopy {
  max-width: 600px;
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 14px;
  font-weight: 720;
}

.section-head-actions,
.results-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 12px;
}

.save-hint {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 36px;
  padding: 7px 10px;
  border: 1px solid rgba(11, 123, 131, 0.2);
  border-radius: var(--radius-sm);
  background: rgba(11, 123, 131, 0.07);
  color: var(--teal-deep);
  font-size: 12px;
  font-weight: 900;
}

.save-hint svg {
  width: 16px;
  height: 16px;
}

.deal-grid {
  gap: 20px;
}

.deal-card {
  border-color: #cbdedb;
  box-shadow: 0 14px 30px rgba(16, 32, 43, 0.07);
}

.deal-card:hover {
  border-color: rgba(11, 123, 131, 0.48);
  box-shadow: 0 24px 42px rgba(16, 32, 43, 0.13);
}

.deal-media {
  aspect-ratio: 16 / 9;
}

.deal-body {
  min-height: 250px;
  gap: 12px;
  padding: 18px;
}

.deal-kicker {
  min-height: 20px;
}

.deal-meta {
  padding: 10px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.deal-bottom {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  align-items: end;
  gap: 8px;
  margin-top: auto;
}

.deal-bottom .button {
  min-height: 44px;
  padding-inline: 16px;
}

.bookmark {
  display: inline-flex;
  width: auto;
  min-width: 132px;
  height: 44px;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 0 12px;
  border: 1px solid rgba(11, 123, 131, 0.32);
  border-radius: var(--radius-sm);
  background: var(--paper);
  color: var(--teal-deep);
  font-size: 12px;
  font-weight: 900;
  white-space: nowrap;
  cursor: pointer;
  transition: transform 0.2s var(--ease-standard), border-color 0.2s var(--ease-standard), background 0.2s var(--ease-standard), color 0.2s var(--ease-standard);
}

.bookmark svg {
  width: 18px;
  height: 18px;
}

.bookmark:hover {
  transform: translateY(-2px);
  border-color: var(--teal);
  background: var(--mist);
}

.bookmark.is-active {
  border-color: rgba(189, 145, 72, 0.7);
  background: #fff5dc;
  color: #805c1c;
}

.bookmark.is-active:hover {
  border-color: var(--gold);
  background: #ffefc5;
}

.data-status-note {
  justify-content: space-between;
}

.status-action {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 6px;
  min-height: 36px;
  padding: 7px 10px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  background: var(--surface);
  color: var(--teal-deep);
  font-size: 12px;
  font-weight: 900;
  cursor: pointer;
}

.status-action:hover {
  border-color: var(--teal);
  background: var(--mist);
}

.status-action svg {
  width: 16px;
  height: 16px;
}

.date-jump {
  display: grid;
  grid-template-columns: auto minmax(150px, 1fr);
  gap: 6px 10px;
  align-items: center;
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
}

.date-jump > span {
  color: var(--ink);
  font-size: 12px;
  font-weight: 900;
}

.date-jump input {
  min-height: 38px;
  padding: 7px 9px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--surface);
  color: var(--ink);
  font-size: 12px;
  font-weight: 850;
}

.date-jump small {
  grid-column: 2;
  color: var(--muted);
  font-size: 11px;
  font-weight: 720;
}

.departure-list {
  display: grid;
  gap: 10px;
  overflow: visible;
  border: 0;
  background: transparent;
  box-shadow: none;
}

.departure-row {
  grid-template-columns: 100px minmax(150px, 1fr) minmax(190px, 1.2fr) 110px 120px 120px 150px 132px;
  min-height: 128px;
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: 0 10px 24px rgba(16, 32, 43, 0.06);
}

.departure-row:last-child {
  border-bottom: 1px solid var(--line);
}

.departure-row:hover {
  transform: translateY(-2px);
  border-color: rgba(11, 123, 131, 0.38);
  box-shadow: 0 18px 32px rgba(16, 32, 43, 0.1);
}

.departure-row .button {
  min-height: 44px;
  padding-inline: 14px;
}

.departure-row .bookmark {
  justify-self: stretch;
  min-width: 132px;
}

@media (max-width: 1220px) {
  .section-head-actions,
  .results-actions {
    justify-content: flex-start;
  }

  .departure-row {
    grid-template-columns: 88px minmax(0, 1fr) minmax(0, 1fr);
    gap: 12px;
  }

  .departure-row time {
    grid-column: 1;
    grid-row: 1;
  }

  .departure-row .pier-cell {
    grid-column: 2 / -1;
    grid-row: 1;
  }

  .departure-row .route-line-cell {
    grid-column: 2 / -1;
    grid-row: 2;
  }

  .departure-row .seats-cell {
    grid-column: 2;
    grid-row: 3;
  }

  .departure-row .class-cell {
    grid-column: 3;
    grid-row: 3;
  }

  .departure-row .price-cell {
    grid-column: 1;
    grid-row: 3;
    justify-self: start;
    text-align: left;
  }

  .departure-row .button {
    grid-column: 2;
    grid-row: 4;
  }

  .departure-row .bookmark {
    grid-column: 3;
    grid-row: 4;
  }
}

/* Customer profile and server-backed ticket history. */
.profile-hero {
  padding: clamp(42px, 7vw, 86px) 0 clamp(34px, 5vw, 58px);
  background: linear-gradient(135deg, #103f4c, #0b5966 58%, #177e82);
  color: #fff;
}
.profile-hero .breadcrumb a,
.profile-hero .breadcrumb span { color: rgba(255, 255, 255, .76); }
.profile-hero .overline { color: #b9ece1; }
.profile-hero h1 { max-width: 760px; margin: 12px 0 10px; font-size: 56px; line-height: .98; letter-spacing: 0; }
.profile-hero p { max-width: 620px; margin: 0; color: rgba(255, 255, 255, .78); font-size: 15px; line-height: 1.65; }
.profile-hero-row { display: flex; align-items: end; justify-content: space-between; gap: 24px; }
.profile-avatar { display: grid; place-items: center; width: 76px; height: 76px; border: 1px solid rgba(255, 255, 255, .34); border-radius: 50%; background: rgba(255, 255, 255, .12); color: #fff; font-size: 29px; font-weight: 900; box-shadow: 0 0 0 6px rgba(255, 255, 255, .08), 0 14px 30px rgba(4, 20, 26, .35); }
.profile-section { padding-top: clamp(34px, 5vw, 62px); }
.profile-layout { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(280px, .75fr); gap: 24px; align-items: start; }
.profile-auth-panel,
.profile-note { padding: clamp(22px, 3vw, 32px); border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); box-shadow: 0 16px 34px rgba(16, 32, 43, .07); }
.profile-auth-panel h2,
.profile-note h2 { margin: 8px 0 10px; font-size: 32px; letter-spacing: 0; }
.profile-auth-panel > p,
.profile-note > p { margin: 0 0 22px; color: var(--muted); line-height: 1.65; }
.profile-login-form { display: grid; gap: 14px; max-width: 560px; }
.profile-login-form .button { justify-self: start; min-width: 150px; }
.profile-login-form .form-message { min-height: 18px; margin: 0; color: var(--danger); }
.profile-feedback { display: flex; align-items: start; gap: 9px; margin: 0 0 18px; padding: 13px 15px; border: 1px solid #cce8d9; border-radius: 9px; background: #f1fbf5; color: #287e5d; font-size: 12px; line-height: 1.5; }
.profile-feedback svg { flex: 0 0 auto; width: 16px; height: 16px; }
.profile-feedback.is-error { border-color: #f1d1ca; background: #fff7f5; color: #ad5747; }
.profile-section-head { margin-bottom: 22px; }
.profile-section-head .button { flex: 0 0 auto; }
.account-booking-grid { display: grid; gap: 12px; }
.account-booking-card { padding: 18px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); box-shadow: 0 10px 24px rgba(16, 32, 43, .05); transition: transform .2s ease, box-shadow .2s ease; }
.account-booking-card:hover { transform: translateY(-3px); box-shadow: 0 18px 34px rgba(16, 32, 43, .1); }
.account-booking-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.account-booking-top > strong { color: var(--muted); font-size: 11px; letter-spacing: .04em; }
.account-booking-card h3 { margin: 14px 0 12px; font-size: 18px; letter-spacing: 0; }
.account-booking-facts { display: flex; flex-wrap: wrap; gap: 12px 18px; color: var(--muted); font-size: 12px; }
.account-booking-facts span { display: inline-flex; align-items: center; gap: 6px; }
.account-booking-facts svg { width: 14px; height: 14px; color: var(--teal); }
.account-booking-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; margin-top: 18px; }
.danger-link { color: var(--danger); }
.profile-empty { display: grid; justify-items: start; gap: 8px; padding: 34px; border: 1px dashed var(--line-strong); border-radius: var(--radius); background: var(--surface-soft); }
.profile-empty > svg { width: 28px; height: 28px; color: var(--teal); }
.profile-empty h2 { margin: 2px 0 0; font-size: 23px; letter-spacing: 0; }
.profile-empty p { max-width: 560px; margin: 0 0 10px; color: var(--muted); line-height: 1.6; }
.profile-note .button { margin-top: 10px; }
.profile-note-line { display: flex; align-items: start; gap: 8px; padding: 12px 0; border-top: 1px solid var(--line); color: var(--muted); font-size: 12px; line-height: 1.45; }
.profile-note-line svg { flex: 0 0 auto; width: 15px; height: 15px; color: var(--teal); }
.profile-note-line a { color: var(--teal); font-weight: 800; }

/* Keep the action cell measurable at every breakpoint. */
.departure-row > * { min-width: 0; }
.departure-row .button { display: flex; align-items: center; justify-content: center; min-width: 0; overflow: hidden; text-align: center; text-overflow: ellipsis; }
.departure-row .button:focus-visible { position: relative; z-index: 1; }

@media (max-width: 900px) {
  .profile-layout { grid-template-columns: 1fr; }
  .profile-note { order: -1; }
}
@media (max-width: 700px) {
  .profile-hero-row { align-items: start; }
  .profile-avatar { width: 54px; height: 54px; font-size: 21px; }
  .profile-section-head { align-items: start; }
  .profile-section-head .button { width: 100%; }
  .profile-empty { padding: 24px; }
  .account-booking-actions .button { flex: 1 1 160px; }
  .account-booking-actions .text-button { flex: 1 1 160px; text-align: left; }
}

@media (max-width: 320px) {
  .header-shell { gap: 8px; }
  .brand-copy small { display: none; }
  .menu-toggle { flex: 0 0 44px; width: 44px; }
  .catalog-filter-panel { flex-wrap: wrap; max-width: 100%; overflow: hidden; }
  .sort-control { min-width: 0; width: 100%; }
  .sort-control select { min-width: 0; width: 100%; padding-inline: 8px 24px; font-size: 11px; }
  .departure-row .button { padding-inline: 4px; font-size: 11px; }
  .departure-row .seats-cell,
  .departure-row .class-cell { min-width: 0; overflow: hidden; }
  .departure-row .seats-cell span,
  .departure-row .class-cell span { min-width: 0; overflow-wrap: anywhere; }
}

@media (max-width: 700px) {
  .section-head,
  .results-head {
    align-items: start;
    flex-direction: column;
    gap: 12px;
  }

  .section-head h2,
  .results-head h2 {
    font-size: 31px;
  }

  .section-head-actions,
  .results-actions {
    width: 100%;
    align-items: stretch;
    justify-content: stretch;
    flex-direction: column;
  }

  .section-head-actions .text-link,
  .results-actions .sort-control,
  .save-hint {
    width: 100%;
    justify-content: space-between;
  }

  .data-status-note {
    align-items: stretch;
    flex-wrap: wrap;
  }

  .data-status-note > span {
    flex: 1 1 calc(100% - 34px);
  }

  .status-action {
    width: 100%;
    justify-content: center;
  }

  .date-jump {
    grid-template-columns: 1fr;
  }

  .date-jump input,
  .date-jump small {
    grid-column: 1;
    width: 100%;
  }

  .deal-bottom {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  }

  .deal-price {
    grid-column: 1 / -1;
  }

  .deal-bottom .button,
  .deal-bottom .bookmark {
    width: 100%;
    min-width: 0;
  }

  .departure-row {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    padding: 12px;
  }

  .departure-row time {
    grid-column: 1;
    grid-row: 1;
  }

  .departure-row .pier-cell {
    grid-column: 1 / -1;
    grid-row: 2;
  }

  .departure-row .route-line-cell {
    grid-column: 1 / -1;
    grid-row: 3;
  }

  .departure-row .seats-cell {
    grid-column: 1;
    grid-row: 4;
  }

  .departure-row .class-cell {
    grid-column: 2;
    grid-row: 4;
  }

  .departure-row .price-cell {
    grid-column: 2;
    grid-row: 1;
    justify-self: end;
    text-align: right;
  }

  .departure-row .button {
    grid-column: 1;
    grid-row: 5;
    width: 100%;
  }

  .departure-row .bookmark {
    grid-column: 2;
    grid-row: 5;
    min-width: 0;
    width: 100%;
  }
}

/* Final responsive overrides for the compact action layout. */
.deal-bottom {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 44px;
  align-items: end;
  gap: 8px;
  margin-top: auto;
}

.deal-price {
  grid-column: 1 / -1;
  min-width: 0;
}

.deal-bottom .button {
  grid-column: 1;
  width: 100%;
  min-width: 0;
  white-space: nowrap;
}

.deal-bottom .bookmark {
  display: grid;
  grid-column: 2;
  width: 44px;
  min-width: 44px;
  padding: 0;
}

.departure-row {
  grid-template-columns: 88px minmax(130px, 1fr) minmax(160px, 1.2fr) 82px 94px minmax(108px, auto) minmax(118px, 136px) 44px;
  gap: 12px;
}

.departure-row .button {
  width: 100%;
  min-width: 0;
  padding-inline: 10px;
  white-space: nowrap;
}

.departure-row .bookmark {
  width: 44px;
  min-width: 44px;
  padding: 0;
}

.price-cell {
  min-width: 0;
}

.price-cell strong {
  white-space: nowrap;
}

.data-status-note.is-error {
  border-color: rgba(184, 50, 42, 0.25);
  background: rgba(184, 50, 42, 0.06);
}

.data-status-note.is-error > svg {
  color: var(--danger);
}

@media (max-width: 1220px) {
  .departure-row {
    grid-template-columns: 88px minmax(0, 1fr) minmax(0, 1fr);
    gap: 12px;
  }

  .departure-row time {
    grid-column: 1;
    grid-row: 1;
  }

  .departure-row .pier-cell,
  .departure-row .route-line-cell {
    grid-column: 2 / -1;
  }

  .departure-row .pier-cell {
    grid-row: 1;
  }

  .departure-row .route-line-cell {
    grid-row: 2;
  }

  .departure-row .seats-cell {
    grid-column: 2;
    grid-row: 3;
  }

  .departure-row .class-cell {
    grid-column: 3;
    grid-row: 3;
  }

  .departure-row .price-cell {
    grid-column: 1;
    grid-row: 3;
    justify-self: start;
    text-align: left;
  }

  .departure-row .button {
    grid-column: 2;
    grid-row: 4;
  }

  .departure-row .bookmark {
    grid-column: 3;
    grid-row: 4;
    justify-self: end;
  }
}

@media (max-width: 700px) {
  .deal-bottom {
    grid-template-columns: minmax(0, 1fr) 44px;
  }

  .deal-bottom .bookmark {
    display: grid;
    width: 44px;
    min-width: 44px;
  }

  .departure-row {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    padding: 12px;
  }

  .departure-row time {
    grid-column: 1;
    grid-row: 1;
  }

  .departure-row .pier-cell {
    grid-column: 1 / -1;
    grid-row: 2;
  }

  .departure-row .route-line-cell {
    grid-column: 1 / -1;
    grid-row: 3;
  }

  .departure-row .seats-cell {
    grid-column: 1;
    grid-row: 4;
  }

  .departure-row .class-cell {
    grid-column: 2;
    grid-row: 4;
  }

  .departure-row .price-cell {
    grid-column: 2;
    grid-row: 1;
    justify-self: end;
    text-align: right;
  }

  .departure-row .button {
    grid-column: 1;
    grid-row: 5;
  }

  .departure-row .bookmark {
    grid-column: 2;
    grid-row: 5;
    justify-self: stretch;
    width: 44px;
    min-width: 44px;
  }
}

/* Final cascade placement for shared navigation and purchase progress. */
.site-header {
  min-height: var(--header);
  border-bottom-color: #e4e7e5;
  background: rgba(255, 255, 255, 0.97);
  box-shadow: 0 2px 12px rgba(16, 32, 43, 0.04);
}

.header-shell {
  min-height: var(--header);
  gap: 18px;
}

.brand-mark {
  width: 40px;
  height: 40px;
  box-shadow: none;
}

.brand-mark svg {
  width: 22px;
  height: 22px;
}

.brand-copy strong {
  font-size: 16px;
  text-transform: none;
}

.brand-copy small {
  font-size: 10px;
}

.main-nav {
  gap: 2px;
  margin-left: 10px;
}

.main-nav a {
  min-height: 38px;
  padding: 8px 10px;
  font-size: 13px;
}

.main-nav .header-buy-link,
.main-nav .header-buy-link:hover,
.main-nav .header-buy-link.is-active {
  margin-left: 4px;
  background: var(--booking);
  color: #fff;
}

.main-nav .header-buy-link:hover {
  background: var(--booking-dark);
}

.header-actions {
  gap: 8px;
}

.support-link {
  gap: 7px;
  font-size: 13px;
}

.support-link span {
  display: grid;
  color: var(--ink);
  font-size: 11px;
  line-height: 1.25;
}

.support-link small {
  display: block;
  color: var(--muted);
  font-size: 8px;
  font-weight: 700;
}

.icon-button,
.menu-toggle {
  width: 40px;
  height: 40px;
  background: #fff;
}

.journey-steps {
  position: relative;
  top: auto;
  background: #fff;
  backdrop-filter: none;
}

.steps-inner {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
  padding: 14px 0;
}

.steps-inner a {
  position: relative;
  display: grid;
  grid-template-columns: 32px minmax(0, 1fr);
  min-height: 48px;
  gap: 10px;
  padding-right: 18px;
  color: #8a959a;
  font-size: 12px;
}

.steps-inner a::after {
  position: absolute;
  top: 23px;
  right: 9px;
  left: 41px;
  grid-column: auto;
  height: 1px;
  margin: 0;
  background: #dfe4e2;
}

.steps-inner a:last-child::after {
  display: none;
}

.steps-inner span {
  position: relative;
  z-index: 1;
  width: 32px;
  height: 32px;
  border-color: #cbd3d0;
  background: #fff;
  font-size: 12px;
}

.steps-inner span svg {
  width: 16px;
  height: 16px;
}

.steps-inner strong {
  display: grid;
  align-content: center;
  gap: 1px;
  max-width: 180px;
  line-height: 1.25;
}

.steps-inner strong small {
  color: #9aa4a8;
  font-size: 9px;
  font-weight: 650;
}

.steps-inner a.is-active,
.steps-inner a.is-done {
  color: var(--teal-deep);
}

.steps-inner a.is-active span,
.steps-inner a.is-done span {
  border-color: var(--teal);
  background: var(--teal);
  color: #fff;
}

.steps-inner a.is-active::after,
.steps-inner a.is-done::after {
  background: var(--teal);
}

.vn-apply-filters {
  display: none;
}

@media (max-width: 1080px) {
  .support-link {
    display: none;
  }

  .main-nav {
    margin-left: 0;
  }
}

@media (max-width: 900px) {
  .main-nav,
  .header-actions .support-link {
    display: none;
  }

  .menu-toggle {
    display: inline-grid;
  }

  .header-actions {
    margin-left: auto;
  }

  .vn-apply-filters {
    display: inline-flex;
  }
}

@media (max-width: 700px) {
  .shell {
    width: min(var(--shell), calc(100% - 28px));
  }

  .site-header,
  .header-shell {
    min-height: var(--header);
  }

  .header-shell {
    gap: 7px;
  }

  .brand-mark,
  .icon-button,
  .menu-toggle {
    width: 36px;
    height: 36px;
  }

  .brand-copy strong {
    font-size: 14px;
  }

  .brand-copy small {
    font-size: 8px;
  }

  .header-actions {
    display: flex;
    gap: 5px;
  }

  .journey-steps {
    overflow-x: auto;
  }

  .steps-inner {
    width: 650px;
    grid-template-columns: repeat(4, 152px);
    gap: 8px;
    padding: 10px 14px;
  }

  .steps-inner a {
    grid-template-columns: 28px minmax(0, 1fr);
    min-height: 42px;
    gap: 7px;
    padding-right: 5px;
    font-size: 10px;
  }

  .steps-inner a::after {
    top: 20px;
    left: 35px;
  }

  .steps-inner span {
    width: 28px;
    height: 28px;
  }

  .steps-inner strong small {
    font-size: 8px;
  }

  .tickets-hero h1,
  .profile-hero h1,
  .legal-page h1,
  .not-found-card h1 {
    font-size: 34px;
  }

  .tickets-head h2,
  .booking-card h2,
  .hero-route-card h2,
  .story-grid h2,
  .profile-auth-panel h2,
  .profile-note h2 {
    font-size: 28px;
  }
}

/* Final cascade for the conversion funnel. */
.icon-button,
.menu-toggle {
  width: 44px;
  height: 44px;
  min-width: 44px;
  min-height: 44px;
}

.vn-route-detail-head {
  padding: 22px 0 18px;
  background: #f6f8f7;
}

.vn-route-detail-grid {
  grid-template-columns: minmax(180px, 230px) minmax(0, 1fr);
  gap: 24px;
  align-items: stretch;
}

.vn-route-detail-grid > img {
  width: 100%;
  height: 100%;
  min-height: 176px;
  max-height: 210px;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 6px;
}

.vn-route-detail-summary {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 9px 24px;
  align-content: center;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
}

.vn-route-detail-summary > span,
.vn-route-detail-summary h1,
.vn-route-detail-summary dl {
  grid-column: 1;
}

.vn-route-detail-summary h1 {
  margin: 0;
  font-size: 32px;
  line-height: 1.12;
}

.vn-route-detail-summary dl {
  display: grid;
  grid-template-columns: repeat(4, minmax(110px, 1fr));
  gap: 8px;
  margin: 2px 0 0;
}

.vn-route-detail-summary dl div {
  padding: 9px 10px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
}

.vn-detail-price {
  grid-column: 2;
  grid-row: 1 / span 2;
  align-self: center;
  min-width: 150px;
  text-align: right;
}

.vn-route-detail-summary > .text-link {
  grid-column: 2;
  grid-row: 3;
  justify-self: end;
}

.offer-layout {
  grid-template-columns: minmax(0, 1fr) minmax(292px, 330px);
  gap: 22px;
}

.time-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.time-choice {
  min-height: 92px;
  padding: 14px;
  text-align: left;
}

.class-tabs {
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
}

.checkout-layout {
  grid-template-columns: minmax(0, 1.25fr) minmax(300px, .75fr);
  gap: 22px;
  align-items: start;
}

.journey-mobile-label {
  display: none;
}

@media (max-width: 980px) {
  .vn-route-detail-summary dl {
    grid-template-columns: repeat(2, minmax(120px, 1fr));
  }

  .checkout-layout,
  .offer-layout {
    grid-template-columns: 1fr;
  }

  .checkout-side {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }
}

@media (max-width: 700px) {
  .brand-mark,
  .icon-button,
  .menu-toggle {
    width: 44px;
    height: 44px;
  }

  .journey-steps {
    overflow: hidden;
  }

  .journey-mobile-label {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    width: min(var(--shell), calc(100% - 28px));
    min-height: 34px;
    margin: 0 auto;
    padding-top: 7px;
    font-size: 11px;
  }

  .journey-mobile-label strong {
    color: var(--teal-deep);
  }

  .steps-inner {
    width: min(var(--shell), calc(100% - 28px));
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 4px;
    padding: 5px 0 9px;
  }

  .steps-inner a {
    display: grid;
    place-items: center;
    min-height: 34px;
    padding: 0;
  }

  .steps-inner a::after {
    top: 17px;
    right: -4px;
    left: calc(50% + 16px);
  }

  .steps-inner span {
    width: 30px;
    height: 30px;
  }

  .steps-inner strong {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
  }

  .vn-route-detail-head {
    padding: 12px 0 14px;
  }

  .vn-route-detail-grid {
    grid-template-columns: 88px minmax(0, 1fr);
    gap: 12px;
  }

  .vn-route-detail-grid > img {
    min-height: 88px;
    height: 88px;
    aspect-ratio: 1;
  }

  .vn-route-detail-summary {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 5px 10px;
  }

  .vn-route-detail-summary h1 {
    font-size: 20px;
  }

  .vn-route-detail-summary dl {
    grid-column: 1 / -1;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 5px;
    margin-top: 7px;
  }

  .vn-detail-price {
    grid-column: 2;
    grid-row: 1 / span 2;
    min-width: 92px;
  }

  .vn-route-detail-summary > .text-link {
    grid-column: 1 / -1;
    grid-row: auto;
    justify-self: start;
  }

  .time-grid,
  .class-tabs,
  .checkout-side {
    grid-template-columns: 1fr;
  }

  .time-choice {
    min-height: 78px;
  }

  .stepper {
    grid-template-columns: 44px 32px 44px;
  }

  .mobile-buy-bar {
    grid-template-columns: minmax(0, 1fr) minmax(132px, auto);
  }

  .mobile-buy-bar .button,
  .vn-route-card-footer .button,
  .departure-row .button {
    width: 100%;
    min-width: 0;
  }

  .vn-route-card-footer > div {
    flex: 0 0 auto;
  }

  .vn-route-card-footer strong {
    white-space: nowrap;
  }

  .vn-route-card-footer .button {
    flex: 1 1 auto;
  }
}

@media (max-width: 350px) {
  .site-header .brand-copy {
    display: none;
  }
}

.vn-route-detail-summary {
  color: var(--ink);
}

.fare-row.is-restricted {
  background: #f5f6f7;
  border-color: #d9dde1;
}

.fare-row.is-restricted > div:first-child span {
  color: #626a73;
}

.fare-row.is-restricted .stepper {
  opacity: 0.62;
}

.qr-img {
  display: block;
  width: 184px;
  height: 184px;
  object-fit: contain;
  background: #fff;
}

.order-login-link {
  margin-top: 18px;
}

@media (max-width: 700px) {
  #main[data-route="checkout"] .mobile-buy-bar {
    position: sticky;
    inset: auto 0 0;
    margin-top: 0;
  }

  #main[data-route="checkout"] .checkout-layout {
    padding-bottom: 20px;
  }

  html {
    scroll-padding-bottom: 112px;
  }

  .checkout-contact-card .field,
  .checkout-contact-card .check-line,
  .checkout-contact-card .form-message {
    scroll-margin-bottom: 120px;
  }
}

@media (max-width: 350px) {
  .vn-route-detail-grid {
    grid-template-columns: 72px minmax(0, 1fr);
    gap: 10px;
  }

  .vn-route-detail-grid > img {
    width: 72px;
    min-height: 72px;
    height: 72px;
  }

  .vn-route-detail-summary {
    grid-template-columns: minmax(0, 1fr);
  }

  .vn-route-detail-summary h1,
  .vn-route-detail-summary > span,
  .vn-detail-price,
  .vn-route-detail-summary dl,
  .vn-route-detail-summary > .text-link {
    grid-column: 1;
    grid-row: auto;
  }

  .vn-detail-price {
    justify-items: start;
    min-width: 0;
    text-align: left;
  }
}

.vn-route-detail-grid {
  min-height: 0;
  overflow: visible;
}

.vn-route-detail-summary > span {
  color: var(--gold);
}

.vn-route-detail-summary dt,
.vn-detail-price span {
  color: var(--muted);
}

@media (max-width: 980px) {
  .header-actions {
    display: flex;
    margin-left: auto;
  }

  .header-actions .support-link {
    display: none;
  }
}

/* ===== Photo showcase sections (real SPb photography) ===== */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.8s var(--ease-standard), transform 0.8s var(--ease-standard);
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.vn-showcase {
  padding: 60px 0 8px;
}

.vn-showcase-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 26px;
}

.vn-showcase-head span {
  display: block;
  margin-bottom: 6px;
  color: var(--teal-deep);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.vn-showcase-head h2 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 32px;
  line-height: 1.12;
  color: var(--ink);
}

.vn-showcase-head a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--teal-deep);
  font-weight: 750;
  white-space: nowrap;
}

.vn-showcase-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.vn-showcase-card {
  position: relative;
  display: block;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  border-radius: 22px;
  box-shadow: var(--shadow-md);
  isolation: isolate;
}

.vn-showcase-card img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s var(--ease-standard);
}

.vn-showcase-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(7, 24, 30, 0) 42%, rgba(6, 19, 24, 0.88) 100%);
}

.vn-showcase-card:hover img,
.vn-showcase-card:focus-visible img {
  transform: scale(1.08);
}

.vn-showcase-card-body {
  position: absolute;
  z-index: 1;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 18px;
  color: #fff;
}

.vn-showcase-card-body span {
  display: inline-flex;
  margin-bottom: 8px;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(6px);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.vn-showcase-card-body h3 {
  margin: 0 0 4px;
  font-family: var(--font-display);
  font-size: 19px;
  line-height: 1.15;
}

.vn-showcase-card-body p {
  margin: 0;
  color: rgba(255, 255, 255, 0.82);
  font-size: 12.5px;
  line-height: 1.35;
}

.vn-bridges-panel {
  position: relative;
  margin: 64px 0;
  overflow: hidden;
  min-height: 420px;
  display: flex;
  align-items: center;
  border-radius: 28px;
}

.vn-bridges-panel img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  animation: vnKenBurns 24s ease-in-out infinite alternate;
}

@keyframes vnKenBurns {
  from {
    transform: scale(1);
  }
  to {
    transform: scale(1.12) translate(-1%, -1%);
  }
}

.vn-bridges-panel::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(100deg, rgba(5, 15, 20, 0.85) 0%, rgba(5, 15, 20, 0.46) 55%, rgba(5, 15, 20, 0.1) 100%);
}

.vn-bridges-content {
  position: relative;
  z-index: 1;
  max-width: 560px;
  padding: 48px 6vw;
  color: #fff;
}

.vn-bridges-content span {
  display: block;
  margin-bottom: 10px;
  color: var(--gold);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.vn-bridges-content h2 {
  margin: 0 0 14px;
  font-family: var(--font-display);
  font-size: 34px;
  line-height: 1.15;
}

.vn-bridges-content p {
  margin: 0 0 22px;
  color: rgba(255, 255, 255, 0.86);
  font-size: 15px;
  line-height: 1.55;
}

.vn-onboard {
  padding: 12px 0 68px;
}

.vn-onboard .shell {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 44px;
  align-items: center;
}

.vn-onboard-copy .overline {
  display: block;
  margin-bottom: 10px;
  color: var(--teal-deep);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.vn-onboard-copy h2 {
  margin: 0 0 14px;
  font-family: var(--font-display);
  font-size: 30px;
  line-height: 1.16;
  color: var(--ink);
}

.vn-onboard-copy p {
  margin: 0 0 24px;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.6;
  max-width: 46ch;
}

.vn-onboard-list {
  display: grid;
  gap: 14px;
  margin: 0 0 28px;
  padding: 0;
  list-style: none;
}

.vn-onboard-list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  color: var(--ink);
  font-size: 14px;
  font-weight: 600;
}

.vn-onboard-list li svg {
  flex: none;
  width: 18px;
  height: 18px;
  margin-top: 1px;
  color: var(--teal);
}

.vn-onboard-media {
  position: relative;
}

.vn-onboard-media img.main {
  width: 100%;
  border-radius: 22px;
  box-shadow: var(--shadow-md);
  display: block;
  aspect-ratio: 5 / 3;
  object-fit: cover;
}

.vn-onboard-media img.accent {
  position: absolute;
  width: 42%;
  right: -6%;
  bottom: -12%;
  border: 6px solid var(--paper);
  border-radius: 18px;
  box-shadow: var(--shadow-md);
  aspect-ratio: 3 / 2;
  object-fit: cover;
}

@media (max-width: 980px) {
  .vn-showcase-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .vn-onboard .shell {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .vn-onboard-media {
    order: -1;
  }

  .vn-onboard-media img.accent {
    width: 38%;
  }

  .vn-bridges-content {
    padding: 40px 24px;
  }
}

@media (max-width: 620px) {
  .vn-showcase-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }

  .vn-showcase-head {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }

  .vn-showcase-head h2 {
    font-size: 24px;
  }

  .vn-showcase-card {
    aspect-ratio: 1 / 1;
  }

  .vn-showcase-card-body h3 {
    font-size: 15px;
  }

  .vn-bridges-panel {
    min-height: 320px;
    border-radius: 20px;
  }

  .vn-bridges-content h2 {
    font-size: 25px;
  }

  .vn-onboard-media img.accent {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .vn-bridges-panel img {
    animation: none;
  }

  .vn-showcase-card img {
    transition: none;
  }
}
