:root {
  --paper: #e7eee9;
  --sheet: #f7faf8;
  --ink: #15211c;
  --muted: #3e4c46;
  --faint: #5c6d65;
  --line: #cfd9d3;
  --sea: #0c6a44;
  --sea-deep: #084430;
  --closed: #6e3b24;
  --focus: #0c6a44;
  color-scheme: light;
}

* { box-sizing: border-box; }

html { scroll-behavior: auto; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "Schibsted Grotesk", "Avenir Next", "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.45;
}

img { max-width: 100%; }

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

:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 2px;
}

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

.skip {
  position: absolute;
  left: 12px;
  top: 8px;
  background: var(--ink);
  color: white;
  padding: 8px 12px;
  z-index: 5;
  transform: translateY(-140%);
}

.skip:focus { transform: none; }

.bar, .shell, .foot {
  width: min(1120px, calc(100% - 32px));
  margin-inline: auto;
}

.bar {
  position: sticky;
  top: 0;
  z-index: 2;
  background: color-mix(in srgb, var(--paper) 94%, transparent);
  padding-bottom: 8px;
}

.top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 0 6px;
}

h1 {
  margin: 0;
  font-size: 20px;
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.1;
}

.city select, .filters select, .search input {
  background: white;
  border: 1px solid var(--line);
  border-radius: 2px;
}

.city select {
  padding: 6px 8px;
  font-size: 14px;
  max-width: 46vw;
}

.tools {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.search input {
  width: 100%;
  padding: 7px 10px;
}

.cats {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  padding-bottom: 2px;
  scrollbar-width: none;
}

.cats button {
  border: 1px solid var(--line);
  background: white;
  color: var(--ink);
  padding: 5px 10px;
  cursor: pointer;
  white-space: nowrap;
  border-radius: 999px;
  font-size: 14px;
}

.cats button[aria-selected="true"],
.search-toggle[aria-expanded="true"] {
  background: var(--ink);
  color: white;
  border-color: var(--ink);
}

.filters {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.filters select {
  padding: 6px 8px;
  font-size: 14px;
}

.filters p {
  margin: 0;
  margin-right: auto;
  color: var(--muted);
  font-size: 14px;
}

.filters label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: var(--muted);
}

.shell {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 20px;
  align-items: start;
  padding-bottom: 28px;
}

.shell.has-detail {
  grid-template-columns: minmax(0, 1fr) minmax(300px, 420px);
}

.places {
  list-style: none;
  margin: 0;
  padding: 0;
  background: var(--sheet);
  border: 1px solid var(--line);
}

.place {
  width: 100%;
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) auto;
  gap: 12px;
  align-items: start;
  text-align: left;
  padding: 12px 14px;
  border: 0;
  border-bottom: 1px solid var(--line);
  background: transparent;
  cursor: pointer;
}

.places li:last-child .place { border-bottom: 0; }

.place[aria-current="true"] { background: #e5f2eb; }

.logo {
  width: 44px;
  height: 44px;
  object-fit: contain;
  background: white;
  border: 1px solid var(--line);
}

.place-main { min-width: 0; }

.name {
  display: block;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.desc {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  color: var(--muted);
  font-size: 14px;
  margin-top: 2px;
}

.meta {
  display: block;
  margin-top: 4px;
  color: var(--faint);
  font-size: 13px;
}

.place-side {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 4px;
  text-align: right;
  min-width: 7.5rem;
}

.offer {
  font-weight: 700;
  font-size: 18px;
  letter-spacing: -0.03em;
  color: var(--sea-deep);
  font-variant-numeric: tabular-nums;
}

.status { font-size: 13px; color: var(--faint); }
.status.open { color: var(--sea); font-weight: 600; }
.status.closed { color: var(--closed); }

.empty {
  margin: 16px 0;
  color: var(--muted);
}

.detail {
  background: var(--sheet);
  border: 1px solid var(--line);
  padding: 16px 16px 20px;
}

.shell.has-detail .detail {
  position: sticky;
  top: 108px;
  max-height: calc(100vh - 120px);
  overflow: auto;
}

.detail h2 {
  margin: 12px 0 6px;
  font-size: 26px;
  line-height: 1.15;
  letter-spacing: -0.03em;
}

.detail .lead {
  margin: 0 0 12px;
  max-width: 62ch;
  color: var(--ink);
}

.cover {
  display: block;
  width: 100%;
  height: 180px;
  object-fit: cover;
  background: var(--paper);
}

.back {
  border: 0;
  background: transparent;
  padding: 0;
  cursor: pointer;
  color: var(--sea-deep);
  font-weight: 600;
}

.detail-offer {
  margin: 0 0 4px;
  font-size: 22px;
  font-weight: 700;
  color: var(--sea-deep);
  letter-spacing: -0.03em;
}

.phones { margin: 8px 0 16px; padding: 0; list-style: none; }
.phones a { color: var(--sea-deep); }

.detail h3 {
  margin: 18px 0 8px;
  font-size: 15px;
  font-weight: 600;
}

.deal, .outlet {
  padding: 10px 0;
  border-top: 1px solid var(--line);
}

.deal-label, .outlet-name {
  font-weight: 600;
}

.deal-card, .fine {
  color: var(--muted);
  font-size: 14px;
}

.hours {
  margin: 6px 0 0;
  padding: 0;
  list-style: none;
  font-size: 14px;
}

.hours li {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  max-width: 280px;
}

.detail a { color: var(--sea-deep); }

.foot {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 0 28px;
  color: var(--faint);
  font-size: 13px;
}

.foot p { margin: 0; }
.foot a { color: inherit; }

@media (max-width: 800px) {
  .bar, .shell, .foot { width: min(1120px, calc(100% - 20px)); }
  .search { display: none; }
  .search.is-open { display: block; }
  .shell.has-detail { grid-template-columns: 1fr; }
  .shell.has-detail .list-col { display: none; }
  .shell.has-detail .detail {
    position: static;
    max-height: none;
  }
  .place {
    grid-template-columns: 40px minmax(0, 1fr);
  }
  .place-side {
    grid-column: 2;
    flex-direction: row;
    justify-content: space-between;
    align-items: baseline;
    min-width: 0;
    text-align: left;
  }
}

@media (min-width: 801px) {
  .search-toggle { display: none; }
}

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