:root {
  color-scheme: light;
  --navy: #0b2035;
  --navy-soft: #17364d;
  --red: #e84c3d;
  --red-dark: #c9342b;
  --cream: #fff7e8;
  --paper: #ffffff;
  --ink: #13283a;
  --muted: #607282;
  --line: #dfe7ec;
  --green: #197052;
  --shadow: 0 16px 40px rgba(11, 32, 53, .09);
  --radius: 22px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  min-width: 320px;
  background: #f5f8fa;
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.5;
}

button, input, select { font: inherit; }
button, select { cursor: pointer; }

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

.masthead {
  position: relative;
  min-height: 360px;
  overflow: hidden;
  background: var(--navy);
  color: white;
}

.masthead__image {
  position: absolute;
  inset: 0 0 0 40%;
  background: url("assets/lunch-banska-bystrica.png") center / cover no-repeat;
}

.masthead__shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, var(--navy) 0%, var(--navy) 42%, rgba(11,32,53,.8) 57%, rgba(11,32,53,.08) 100%);
}

.masthead__content { position: relative; z-index: 1; }

.brand {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 24px;
}

.brand__name {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: white;
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: -.03em;
  text-decoration: none;
}

.brand__mark {
  display: grid;
  width: 46px;
  height: 46px;
  place-items: center;
  border-radius: 50%;
  background: var(--red);
  font-size: .9rem;
  letter-spacing: -.04em;
}

.location {
  padding: 9px 14px;
  border: 1px solid rgba(255,255,255,.35);
  border-radius: 999px;
  background: rgba(11,32,53,.35);
  font-weight: 650;
  backdrop-filter: blur(8px);
}

.intro { max-width: 620px; padding: 74px 0 82px; }
.eyebrow { margin: 0 0 8px; color: #ffd8a8; font-size: .82rem; font-weight: 800; letter-spacing: .11em; text-transform: uppercase; }
.eyebrow--red { color: var(--red-dark); }
.intro h1 { margin: 0; max-width: 600px; font-size: clamp(2.35rem, 5.2vw, 4.6rem); line-height: .98; letter-spacing: -.06em; }
.intro__copy { margin: 18px 0 0; color: #d9e6ee; font-size: 1.12rem; }

.main { position: relative; padding-bottom: 72px; }

.finder {
  position: relative;
  z-index: 2;
  margin-top: -44px;
  padding: 24px;
  border: 1px solid rgba(255,255,255,.7);
  border-radius: var(--radius);
  background: rgba(255,255,255,.96);
  box-shadow: var(--shadow);
}

.search { position: relative; display: block; }
.search svg { position: absolute; top: 50%; left: 18px; width: 24px; height: 24px; translate: 0 -50%; fill: none; stroke: var(--muted); stroke-width: 1.8; stroke-linecap: round; }
.search input {
  width: 100%;
  min-height: 58px;
  padding: 12px 20px 12px 54px;
  border: 2px solid var(--line);
  border-radius: 16px;
  background: white;
  color: var(--ink);
  font-size: 1.06rem;
  outline: none;
  transition: border-color .18s, box-shadow .18s;
}
.search input:focus { border-color: var(--red); box-shadow: 0 0 0 4px rgba(232,76,61,.12); }
.search input::placeholder { color: #82919d; }

.finder__row { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-top: 18px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { min-height: 40px; padding: 8px 14px; border: 1px solid var(--line); border-radius: 999px; background: white; color: var(--navy-soft); font-weight: 750; }
.chip:hover { border-color: #acbbc5; }
.chip.is-active { border-color: var(--navy); background: var(--navy); color: white; }
.sort { display: flex; align-items: center; gap: 9px; color: var(--muted); font-size: .9rem; white-space: nowrap; }
.sort select { min-height: 40px; padding: 7px 34px 7px 11px; border: 1px solid var(--line); border-radius: 10px; background: white; color: var(--ink); }
.summary { margin-top: 15px; color: var(--muted); font-size: .94rem; }

.picks, .menus { margin-top: 58px; }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 24px; margin-bottom: 20px; }
.section-heading h2 { margin: 0; color: var(--navy); font-size: clamp(1.65rem, 3vw, 2.35rem); letter-spacing: -.045em; }
.section-heading > p { max-width: 420px; margin: 0; color: var(--muted); text-align: right; }

.pick-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.pick-card { position: relative; overflow: hidden; min-height: 176px; padding: 23px; border-radius: 18px; background: var(--navy); color: white; box-shadow: 0 12px 28px rgba(11,32,53,.12); }
.pick-card:nth-child(2) { background: #174b45; }
.pick-card:nth-child(3) { background: #6e302b; }
.pick-card__tag { display: inline-flex; padding: 5px 9px; border-radius: 999px; background: rgba(255,255,255,.13); color: #fff1dd; font-size: .75rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }
.pick-card h3 { margin: 20px 64px 8px 0; font-size: 1.13rem; line-height: 1.25; }
.pick-card p { margin: 0; color: #d8e3e7; font-size: .88rem; }
.pick-card strong { position: absolute; right: 22px; bottom: 20px; color: #ffd7a1; font-size: 1.45rem; }

.restaurant-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.restaurant {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--paper);
  box-shadow: 0 8px 22px rgba(11,32,53,.045);
}
.restaurant__head { display: flex; justify-content: space-between; gap: 16px; padding: 21px 22px 17px; border-bottom: 1px solid var(--line); }
.restaurant__head h3 { margin: 0 0 4px; color: var(--navy); font-size: 1.16rem; letter-spacing: -.025em; }
.restaurant__address { margin: 0; color: var(--muted); font-size: .84rem; }
.source { align-self: flex-start; flex: 0 0 auto; padding: 5px 8px; border-radius: 999px; background: #e9f5ef; color: var(--green); font-size: .72rem; font-weight: 800; }
.source--fallback { background: #fff0d8; color: #855d13; }
.menu-list { margin: 0; padding: 5px 22px 13px; list-style: none; }
.menu-item { display: grid; grid-template-columns: auto minmax(0,1fr) auto; gap: 10px; align-items: start; padding: 13px 0; border-bottom: 1px dashed #dce5e9; }
.menu-item:last-child { border-bottom: 0; }
.menu-item__type { margin-top: 2px; padding: 3px 7px; border-radius: 7px; background: #edf3f6; color: var(--navy-soft); font-size: .68rem; font-weight: 850; letter-spacing: .05em; text-transform: uppercase; }
.menu-item__type--soup { background: #fff0dc; color: #915b12; }
.menu-item__name { display: block; color: var(--ink); font-size: .95rem; font-weight: 650; }
.menu-item__meta { display: block; margin-top: 3px; color: var(--muted); font-size: .77rem; }
.menu-item__price { color: var(--navy); font-weight: 850; white-space: nowrap; }
.menu-item__price--missing { color: #82919d; font-size: .78rem; font-weight: 600; }

.empty, .error { padding: 54px 20px; border: 1px dashed #b9c8d1; border-radius: 18px; background: white; text-align: center; }
.empty span { color: var(--red); font-size: 2.8rem; }
.empty h3, .error h3 { margin: 4px 0 5px; color: var(--navy); }
.empty p, .error p { margin: 0; color: var(--muted); }
.error { border-color: #efb1aa; background: #fff4f2; }
.unavailable { margin-top: 38px; padding: 20px 22px; border-left: 4px solid #d9a33d; border-radius: 0 12px 12px 0; background: #fff6df; }
.unavailable h2 { margin: 0 0 4px; font-size: 1rem; }
.unavailable p { margin: 0; color: #715b2f; }

.footer { border-top: 1px solid var(--line); background: white; }
.footer__inner { display: flex; justify-content: space-between; gap: 20px; padding-block: 24px; color: var(--muted); font-size: .86rem; }
.footer__inner span:first-child { color: var(--navy); font-weight: 850; }
.sr-only { position: absolute; overflow: hidden; width: 1px; height: 1px; clip: rect(0,0,0,0); white-space: nowrap; }
[hidden] { display: none !important; }

@media (max-width: 840px) {
  .masthead { min-height: 330px; }
  .masthead__image { inset-left: 25%; }
  .masthead__shade { background: linear-gradient(90deg, var(--navy) 0%, rgba(11,32,53,.92) 52%, rgba(11,32,53,.35) 100%); }
  .intro { padding-top: 62px; }
  .finder__row, .section-heading { align-items: flex-start; flex-direction: column; }
  .section-heading > p { text-align: left; }
  .pick-grid { grid-template-columns: 1fr; }
  .restaurant-grid { grid-template-columns: 1fr; }
}

@media (max-width: 560px) {
  .shell { width: min(100% - 24px, 1180px); }
  .masthead { min-height: 304px; }
  .masthead__image { inset: 0; opacity: .42; }
  .masthead__shade { background: linear-gradient(90deg, rgba(11,32,53,.97), rgba(11,32,53,.72)); }
  .location { padding: 7px 10px; font-size: .78rem; }
  .brand__name { font-size: 1.16rem; }
  .brand__mark { width: 40px; height: 40px; }
  .intro { padding: 52px 0 68px; }
  .intro h1 { font-size: 2.55rem; }
  .intro__copy { font-size: 1rem; }
  .finder { margin-top: -34px; padding: 15px; border-radius: 18px; }
  .search input { min-height: 54px; font-size: 1rem; }
  .finder__row { gap: 14px; }
  .sort { width: 100%; justify-content: space-between; }
  .sort select { max-width: 210px; }
  .picks, .menus { margin-top: 44px; }
  .restaurant__head { padding: 18px 17px 15px; }
  .menu-list { padding-inline: 17px; }
  .menu-item { grid-template-columns: minmax(0,1fr) auto; }
  .menu-item__type { display: none; }
  .footer__inner { flex-direction: column; gap: 5px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}
