:root {
  color-scheme: light;
  --paper: #f7f3ea;
  --surface: #fffaf0;
  --surface-strong: #ffffff;
  --ink: #1f2523;
  --muted: #68716c;
  --line: #ded6c8;
  --teal: #0f766e;
  --teal-dark: #0b4f4a;
  --berry: #a43152;
  --amber: #f1b84b;
  --shadow: 0 18px 45px rgba(54, 47, 35, 0.14);
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  background: var(--paper);
}

body {
  min-height: 100%;
  margin: 0;
  color: var(--ink);
  background:
    linear-gradient(180deg, rgba(15, 118, 110, 0.12), rgba(247, 243, 234, 0) 280px),
    var(--paper);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  letter-spacing: 0;
}

button,
input {
  font: inherit;
}

.page-shell {
  width: min(100%, 760px);
  margin: 0 auto;
  padding: 18px clamp(14px, 4vw, 28px) 32px;
}

.hero {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 18px;
  align-items: center;
  min-height: 174px;
  padding: 22px;
  overflow: hidden;
  border: 1px solid rgba(31, 37, 35, 0.08);
  border-radius: 8px;
  background:
    radial-gradient(circle at 80% 10%, rgba(241, 184, 75, 0.26), transparent 34%),
    linear-gradient(135deg, #ffffff 0%, #fff3d9 52%, #dbeee8 100%);
  box-shadow: var(--shadow);
}

.eyebrow {
  margin: 0 0 8px;
  color: var(--teal-dark);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

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

h1 {
  font-size: clamp(2.8rem, 13vw, 5.6rem);
  line-height: 0.88;
  letter-spacing: 0;
}

.hero-note {
  max-width: 31rem;
  margin-top: 14px;
  color: var(--muted);
  font-size: clamp(1rem, 3.8vw, 1.2rem);
  line-height: 1.35;
}

.hero-mark {
  width: clamp(96px, 26vw, 146px);
  height: auto;
  filter: drop-shadow(0 12px 18px rgba(31, 37, 35, 0.16));
}

.toolbar {
  position: sticky;
  top: 0;
  z-index: 2;
  display: grid;
  gap: 12px;
  padding: 14px 0;
  background: linear-gradient(180deg, var(--paper) 80%, rgba(247, 243, 234, 0));
}

.search input {
  width: 100%;
  min-height: 52px;
  padding: 0 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  background: var(--surface-strong);
  box-shadow: 0 8px 22px rgba(54, 47, 35, 0.07);
  outline: none;
}

.search input:focus {
  border-color: var(--teal);
  box-shadow: 0 0 0 4px rgba(15, 118, 110, 0.14);
}

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

.tab {
  min-height: 42px;
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--muted);
  background: rgba(255, 250, 240, 0.86);
  cursor: pointer;
}

.tab[aria-selected="true"] {
  border-color: var(--teal);
  color: #fff;
  background: var(--teal);
}

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

.summary > div {
  min-height: 70px;
  padding: 13px 14px;
  border: 1px solid rgba(31, 37, 35, 0.08);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.72);
}

.summary-value {
  display: block;
  font-size: 1.45rem;
  font-weight: 850;
  line-height: 1.05;
}

.summary-label {
  display: block;
  margin-top: 5px;
  color: var(--muted);
  font-size: 0.86rem;
}

.price-list {
  display: grid;
  gap: 18px;
}

.category {
  border: 1px solid rgba(31, 37, 35, 0.09);
  border-radius: 8px;
  overflow: hidden;
  background: var(--surface-strong);
  box-shadow: 0 12px 30px rgba(54, 47, 35, 0.08);
}

.category-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px;
  color: #fff;
  background: linear-gradient(90deg, var(--teal-dark), var(--teal));
}

.category:nth-of-type(2n) .category-header {
  background: linear-gradient(90deg, #793149, var(--berry));
}

.category:nth-of-type(3n) .category-header {
  color: var(--ink);
  background: linear-gradient(90deg, #f1b84b, #ffd47a);
}

.category-header h2 {
  font-size: 1rem;
  line-height: 1.2;
}

.category-header span {
  display: inline-grid;
  min-width: 34px;
  min-height: 28px;
  place-items: center;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.22);
  font-weight: 800;
}

.items {
  display: grid;
}

.item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  min-height: 76px;
  padding: 13px 16px;
  border-top: 1px solid rgba(31, 37, 35, 0.08);
}

.item:first-child {
  border-top: 0;
}

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

.item h3 {
  font-size: 1rem;
  font-weight: 750;
  line-height: 1.25;
}

.item p {
  margin-top: 5px;
  color: var(--muted);
  font-size: 0.9rem;
}

.item strong {
  display: inline-grid;
  min-width: 74px;
  min-height: 42px;
  place-items: center;
  padding: 0 10px;
  border: 1px solid rgba(164, 49, 82, 0.18);
  border-radius: 8px;
  color: var(--berry);
  background: #fff6f2;
  font-size: 1.05rem;
  line-height: 1;
  white-space: nowrap;
}

.empty-state {
  padding: 28px 16px;
  border: 1px dashed var(--line);
  border-radius: 8px;
  color: var(--muted);
  text-align: center;
  background: rgba(255, 255, 255, 0.58);
}

.footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 16px;
  padding: 22px 2px 0;
  color: var(--muted);
  font-size: 0.86rem;
}

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

@media (max-width: 520px) {
  .page-shell {
    padding-top: 12px;
  }

  .hero {
    grid-template-columns: 1fr;
    min-height: 208px;
  }

  .hero-mark {
    justify-self: end;
    margin-top: -56px;
  }

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

  .tab {
    min-height: 40px;
    font-size: 0.92rem;
  }

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

  .item strong {
    justify-self: start;
  }
}
