:root {
  --blue: #364EA2;
  --blue-dark: #26357A;
  --yellow: #FFC80B;
  --ink: #1B2342;
  --muted: #4A5068;
  --line: #E3E6F0;
  --bg: #F4F6FB;
  --card: #FFFFFF;
  --tint: #EEF1FA;
  --ok-bg: #DFF3E8;
  --ok-ink: #14603B;
  --stop-bg: #FBE3E1;
  --stop-ink: #8A1F17;
  --info-bg: #E6E9F5;
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color-scheme: light;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--font); background: var(--bg); color: var(--ink); line-height: 1.45; }
a { color: var(--blue); }
a:focus-visible, button:focus-visible { outline: 3px solid var(--blue); outline-offset: 2px; }
.wrap { max-width: 560px; margin: 0 auto; padding: 0 16px; }

.top { background: #fff; border-bottom: 4px solid var(--yellow); }
.top-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-top: 12px; padding-bottom: 12px; }
.logo { height: 44px; width: auto; display: block; }
.lang { display: flex; gap: 6px; }
.lang button { min-width: 44px; min-height: 44px; border-radius: 999px; border: 1.5px solid var(--blue); background: #fff; color: var(--blue); font: inherit; font-size: 14px; font-weight: 700; cursor: pointer; }
.lang button[aria-pressed="true"] { background: var(--blue); color: #fff; }

.hero { padding-top: 16px; padding-bottom: 4px; }
.hero h1 { margin: 0; font-size: 28px; line-height: 1.15; font-weight: 800; color: var(--blue); text-wrap: balance; }
.hero p { margin: 4px 0 0; color: var(--muted); font-size: 16px; }
.notice { margin-top: 12px; background: var(--info-bg); color: var(--blue-dark); border-radius: 12px; padding: 12px 14px; font-weight: 600; font-size: 15px; }

.nav { position: sticky; top: 0; z-index: 5; background: var(--bg); border-bottom: 1px solid var(--line); margin-top: 12px; }
.nav .wrap { padding-top: 10px; padding-bottom: 10px; display: flex; flex-direction: column; gap: 10px; }
.seg { display: flex; gap: 8px; }
.pill { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 0 16px; border-radius: 999px; border: 1.5px solid var(--blue); background: #fff; color: var(--blue); font-size: 15px; font-weight: 700; text-decoration: none; }
.pill[aria-current="page"] { background: var(--blue); color: #fff; }
.seg .pill { flex: 1; }
.days { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 2px; }
.days .pill { flex: 0 0 auto; min-width: 64px; }

main.wrap { padding-top: 16px; padding-bottom: 24px; display: flex; flex-direction: column; gap: 12px; }
.list-head h2 { margin: 0; font-size: 22px; font-weight: 800; }
.list-head p { margin: 2px 0 0; color: var(--muted); font-size: 15px; }

.card { display: flex; align-items: center; gap: 12px; background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 16px; text-decoration: none; color: var(--ink); }
.card:hover { border-color: var(--blue); }
.card-body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 6px; }
.card-title { font-size: 20px; line-height: 1.2; font-weight: 800; }
.card-line { font-size: 15px; color: var(--muted); }
.card-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.card-price { font-size: 16px; font-weight: 800; font-variant-numeric: tabular-nums; }
.chev { flex: 0 0 auto; }
.badge { border-radius: 8px; padding: 3px 10px; font-size: 14px; font-weight: 700; }
.badge-full { background: var(--info-bg); color: var(--blue-dark); }
.badge-cancelled { background: var(--stop-bg); color: var(--stop-ink); }
.empty { background: #fff; border: 1px dashed #B9BED0; border-radius: 16px; padding: 20px; color: var(--muted); }

.back-bar { position: sticky; top: 0; z-index: 5; background: var(--bg); border-bottom: 1px solid var(--line); }
.back-bar .wrap { padding-top: 10px; padding-bottom: 10px; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 18px; border-radius: 12px; border: 1.5px solid var(--blue); background: #fff; color: var(--blue); font: inherit; font-size: 16px; font-weight: 700; text-decoration: none; cursor: pointer; }
.btn-primary { background: var(--yellow); border-color: var(--yellow); color: var(--ink); font-size: 18px; font-weight: 800; min-height: 52px; }
.btn-disabled { background: var(--line); border-color: var(--line); color: var(--muted); cursor: not-allowed; }
.btn-back { border-radius: 999px; min-height: 44px; padding: 0 16px 0 12px; font-size: 15px; }

.panel { background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 16px; display: flex; flex-direction: column; gap: 14px; }
.panel h1 { margin: 0; font-size: 28px; line-height: 1.15; font-weight: 800; text-wrap: balance; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { background: var(--tint); color: var(--blue-dark); border-radius: 999px; padding: 4px 10px; font-size: 14px; font-weight: 600; }
.price { display: flex; flex-direction: column; gap: 2px; }
.price strong { font-size: 30px; font-weight: 800; font-variant-numeric: tabular-nums; }
.price span { color: var(--muted); font-size: 15px; }
.alert { border-radius: 12px; padding: 12px 14px; font-size: 15px; font-weight: 600; }
.alert-full { background: var(--info-bg); color: var(--blue-dark); }
.alert-cancelled { background: var(--stop-bg); color: var(--stop-ink); }
.soon { margin: 0; color: var(--muted); font-size: 15px; }
.desc { margin: 0; font-size: 16px; line-height: 1.55; white-space: pre-line; }

.box { background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 16px; display: flex; flex-direction: column; gap: 12px; }
.box h2 { margin: 0; font-size: 18px; font-weight: 800; }
.photos { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 4px; }
.photos img { flex: 0 0 auto; height: 120px; width: auto; border-radius: 12px; }
.links { display: flex; flex-wrap: wrap; gap: 8px; }
.links .btn { min-height: 44px; font-size: 15px; }

.rows { background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 4px 16px; margin: 0; }
.row { padding: 12px 0; border-bottom: 1px solid var(--line); }
.row:last-child { border-bottom: 0; }
.row dt { font-size: 13px; font-weight: 700; letter-spacing: 0.03em; text-transform: uppercase; color: var(--muted); }
.row dd { margin: 2px 0 0; font-size: 16px; }

.foot { border-top: 1px solid var(--line); background: #fff; }
.foot .wrap { padding-top: 14px; padding-bottom: 20px; display: flex; flex-wrap: wrap; gap: 8px 16px; color: var(--muted); font-size: 14px; }
.loading, .error { padding-top: 24px; color: var(--muted); }
.legal { padding-top: 16px; padding-bottom: 24px; }
.legal h1 { color: var(--blue); }
.legal .draft { background: var(--stop-bg); color: var(--stop-ink); border-radius: 12px; padding: 12px 14px; font-weight: 600; }

@media (prefers-reduced-motion: no-preference) {
  .card { transition: border-color .15s ease; }
}
