:root {
  --bg: #f6f4ef;
  --surface: #ffffff;
  --surface-strong: #fff8e8;
  --text: #1d2329;
  --muted: #68717a;
  --line: #ddd8cd;
  --station-line: #20242a;
  --accent: #8f1d2c;
  --accent-2: #11665a;
  --accent-3: #d49c2f;
  --soup: #fff1d1;
  --main: #f5fbf7;
  --dessert: #fff0f4;
  --salad: #eef8e9;
  --shadow: 0 18px 45px rgba(29, 35, 41, 0.11);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  background:
    linear-gradient(180deg, rgba(143, 29, 44, 0.08), transparent 280px),
    var(--bg);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.5;
}

.shell {
  width: min(1280px, calc(100% - 2rem));
  margin: 0 auto;
  padding: 1.5rem 0;
}

.topbar {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 16px;
}

.eyebrow {
  margin: 0 0 6px;
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
}

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

h1 {
  margin-bottom: 0.8rem;
  font-size: 4rem;
  line-height: 1;
}

.date-label {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 1.05rem;
}

.source-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 18px;
  color: #fff;
  background: var(--accent);
  border-radius: 8px;
  font-weight: 800;
  text-decoration: none;
  box-shadow: 0 10px 25px rgba(143, 29, 44, 0.22);
}

.source-link:focus-visible,
.meal-tab:focus-visible,
.vegan-switch:focus-within,
.meal-panel:focus-visible {
  outline: 3px solid var(--accent-3);
  outline-offset: 3px;
}

.notice {
  min-height: 48px;
  margin-bottom: 14px;
  padding: 13px 16px;
  color: #52380f;
  background: var(--surface-strong);
  border: 1px solid #efd7a4;
  border-radius: 8px;
}

.notice[hidden] {
  display: none;
}

.date-picker {
  margin-bottom: 14px;
  padding: 12px;
  background: rgba(255, 255, 255, 0.74);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.date-picker__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
  color: var(--muted);
  font-size: 0.88rem;
}

.date-list {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 2px;
  scrollbar-width: thin;
}

.date-pill {
  display: grid;
  min-width: 58px;
  min-height: 54px;
  place-items: center;
  padding: 7px 10px;
  color: var(--muted);
  background: #f8f7f2;
  border: 1px solid var(--line);
  border-radius: 8px;
  cursor: pointer;
  font: inherit;
}

.date-pill[aria-selected="true"] {
  color: #fff;
  background: var(--accent);
  border-color: var(--accent);
  box-shadow: 0 8px 18px rgba(143, 29, 44, 0.18);
}

.date-pill span {
  font-size: 1rem;
  font-weight: 900;
  line-height: 1;
}

.date-pill small {
  font-size: 0.72rem;
  font-weight: 850;
}

.meal-card {
  position: relative;
  padding: 18px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-top: 6px solid var(--accent);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.meal-tabs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin: 0 76px 18px 0;
  padding: 5px;
  background: #f0ece3;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.vegan-switch {
  position: absolute;
  top: 18px;
  right: 18px;
  display: grid;
  align-items: center;
  justify-items: center;
  gap: 5px;
  width: 58px;
  padding: 4px;
  background: #f8fbf7;
  border: 1px solid var(--line);
  border-radius: 8px;
  cursor: pointer;
}

.vegan-switch__icon {
  color: var(--accent-2);
  font-size: 1rem;
  line-height: 1;
}

.vegan-switch input {
  position: absolute;
  inline-size: 1px;
  block-size: 1px;
  opacity: 0;
}

.vegan-switch__track {
  position: relative;
  width: 42px;
  height: 24px;
  flex: 0 0 auto;
  background: #d7d1c4;
  border: 2px solid #c2baaa;
  border-radius: 999px;
  transition: background 160ms ease, border-color 160ms ease;
}

.vegan-switch__track::after {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 14px;
  height: 14px;
  background: #fff;
  border-radius: 50%;
  box-shadow: 0 2px 7px rgba(29, 35, 41, 0.22);
  transition: transform 160ms ease;
}

.vegan-switch input:checked + .vegan-switch__track {
  background: var(--accent-2);
  border-color: var(--accent-2);
}

.vegan-switch input:checked + .vegan-switch__track::after {
  transform: translateX(18px);
}

.meal-tab {
  min-width: 0;
  min-height: 58px;
  padding: 9px 12px;
  color: var(--muted);
  background: transparent;
  border: 0;
  border-radius: 6px;
  cursor: pointer;
  font: inherit;
  text-align: left;
}

.meal-tab[aria-selected="true"] {
  color: #fff;
  background: var(--accent);
  box-shadow: 0 8px 18px rgba(143, 29, 44, 0.18);
}

.meal-tab span {
  display: block;
  overflow-wrap: anywhere;
}

.meal-tab span {
  font-size: 1rem;
  font-weight: 900;
}

.meal-panel {
  min-height: 420px;
}

.meal-card__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 16px;
}

.meal-card h2 {
  margin-bottom: 2px;
  font-size: 1.35rem;
}

.meal-card__header p {
  margin-bottom: 0;
  color: var(--muted);
}

.cafeteria-layout {
  display: grid;
}

.cafeteria-scene {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 190px;
  gap: 54px;
  align-items: start;
}

.scene-main {
  display: grid;
  gap: 18px;
}

.main-line {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 8px;
  align-items: stretch;
}

.main-line--with-yogurt {
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
}

.menu-station {
  display: grid;
  min-width: 0;
  min-height: 172px;
  aspect-ratio: 1 / 1;
  padding: 12px;
  background: #fafafa;
  border: 4px solid var(--station-line);
  border-radius: 3px;
}

.menu-station--soup {
  grid-template-rows: auto 1fr;
  background: var(--soup);
}

.menu-station--main,
.menu-station--starch {
  background: var(--main);
}

.menu-station--dessert {
  grid-template-rows: auto 1fr;
  background: var(--dessert);
}

.menu-station--yogurt {
  background: #eff8fb;
}

.menu-station--holiday {
  width: min(100%, 520px);
  min-height: 140px;
  aspect-ratio: auto;
  margin: 0 auto;
  background: var(--surface-strong);
}

.menu-station h3,
.salad-zone h3 {
  margin: 0 0 8px;
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 900;
  text-transform: uppercase;
}

.station-list,
.salad-grid {
  margin: 0;
  padding: 0;
  list-style: none;
}

.station-list {
  display: grid;
  gap: 8px;
  align-content: center;
}

.station-list li {
  overflow-wrap: anywhere;
  font-size: clamp(0.92rem, 1.2vw, 1.18rem);
  font-weight: 900;
  line-height: 1.2;
  text-align: center;
}

.dessert-content {
  display: grid;
  align-content: center;
  justify-items: center;
  gap: 6px;
}

.dessert-item {
  overflow-wrap: anywhere;
  font-size: clamp(0.92rem, 1.15vw, 1.08rem);
  font-weight: 900;
  line-height: 1.18;
  text-align: center;
}

.dessert-divider {
  width: 100%;
  height: 1px;
  background: linear-gradient(
    to right,
    rgba(32, 36, 42, 0) 0%,
    rgba(32, 36, 42, 0.44) 50%,
    rgba(32, 36, 42, 0) 100%
  );
  margin: 8px 0;
}

.menu-station--soup .station-list {
  height: 100%;
  align-content: center;
  justify-items: center;
}

.salad-zone {
  display: grid;
  gap: 8px;
}

.salad-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 6px;
}

.salad-grid li {
  display: grid;
  min-width: 0;
  min-height: 64px;
  place-items: center;
  padding: 8px;
  overflow-wrap: anywhere;
  background: var(--salad);
  border: 4px solid var(--station-line);
  border-radius: 3px;
  font-size: 0.82rem;
  font-weight: 850;
  line-height: 1.14;
  text-align: center;
}

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

.info-panel {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  margin-top: 18px;
  overflow: hidden;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.info-panel > div {
  padding: 16px;
  background: rgba(255, 255, 255, 0.78);
}

.info-label {
  display: block;
  margin-bottom: 4px;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 800;
}

.info-panel strong {
  display: block;
  overflow-wrap: anywhere;
}

.page-footer {
  display: flex;
  justify-content: center;
  margin-top: 18px;
}

@media (max-width: 960px) {

  .shell {
    width: calc(100% - 1rem);
    padding: 1rem 0;
  }

  .topbar {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }

  h1 {
    font-size: 2rem;
    line-height: 1.1;
  }

  .source-link {
    width: 100%;
  }

  .meal-card {
    padding: 1rem;
  }

  .date-picker {
    padding: 10px;
  }

  .date-pill {
    min-width: 50px;
    min-height: 48px;
  }

  .meal-tabs {
    grid-template-columns: 1fr 1fr;
    gap: 0.5rem;
    margin-right: 68px;
  }

  .vegan-switch {
    top: 1rem;
    right: 1rem;
  }

  .meal-tab {
    min-height: 4rem;
  }

  .cafeteria-scene {
    grid-template-columns: 1fr;
    gap: 1.2rem;
  }

  .scene-main {
    gap: 1rem;
  }

  .main-line {
    grid-template-columns: 1fr;
    gap: 0.6rem;
  }

  .menu-station {
    min-height: auto;
    aspect-ratio: auto;
    padding: 0.75rem;
  }

  .menu-station--yogurt {
    width: 100%;
  }

  .salad-grid {
    grid-template-columns: 1fr 1fr;
  }

  .salad-grid li {
    min-height: 56px;
    font-size: 0.78rem;
  }

  .info-panel {
    grid-template-columns: 1fr;
  }

  .info-panel > div {
    padding: 0.8rem;
  }

  .dessert-item {
    font-size: 0.95rem;
  }
}
