:root {
  --ink: #17241c;
  --paper: #f3eee4;
  --card: #fffaf3;
  --line: #e2d8c8;
  --lime: #d6ee55;
  --muted: #5d675f;
  --clay: #b64024;
  --winter: #d5e6f4;
  --summer: #f6e2b8;
  --allseason: #dce8d2;
  --ok: #1d6b45;
  --sans: "Manrope", "Segoe UI", sans-serif;
  --display: "Unbounded", "Manrope", sans-serif;
  color-scheme: light;
}

* { box-sizing: border-box; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.45;
}
a { color: inherit; }
h1, h2, .brand strong { font-family: var(--display); font-weight: 500; letter-spacing: -0.03em; }
h1 { font-size: clamp(32px, 4vw, 48px); line-height: 1.05; margin: 0 0 8px; }
h2 { font-size: 22px; margin: 0 0 10px; }
h2.split-title { margin-top: 64px; }
p { margin: 0 0 10px; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--lime); outline-offset: 2px; }

.shell { min-height: 100vh; display: grid; grid-template-columns: 250px 1fr; }
.side {
  background: var(--ink);
  color: #f6f1e6;
  padding: 22px 16px;
  display: flex;
  flex-direction: column;
  gap: 22px;
  position: sticky;
  top: 0;
  align-self: start;
  height: 100vh;
  overflow: auto;
}
.brand { display: flex; gap: 12px; align-items: center; text-decoration: none; }
.brand strong, .brand small { display: block; }
.brand small { color: #c9c2b4; font-size: 13px; }
.mark { width: 36px; height: 36px; }
.mark.big { width: 64px; height: 64px; }
.side nav { display: flex; flex-direction: column; gap: 4px; }
.side nav a, .filters a {
  text-decoration: none;
  padding: 10px 12px;
  border-radius: 12px;
}
.side nav a.on, .side nav a:hover { background: rgba(214, 238, 85, 0.16); }
main { padding: 28px 28px 64px; width: 100%; min-width: 0; max-width: none; }
.kicker { text-transform: uppercase; letter-spacing: 0.14em; font-size: 12px; font-weight: 700; color: var(--muted); margin-bottom: 6px; }
.lead { font-size: 18px; max-width: 62ch; }
.note { color: var(--muted); font-size: 14px; }
.hero, .page-head, .row, .actions, .filters { display: flex; justify-content: space-between; gap: 16px; align-items: center; flex-wrap: wrap; }
.hero { margin-bottom: 22px; }
.page-head { margin-bottom: 12px; align-items: end; }

.btn, button.btn {
  background: var(--ink);
  color: var(--lime);
  border: 0;
  border-radius: 999px;
  padding: 12px 18px;
  font-weight: 700;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}
.btn.ghost, button.ghost {
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--line);
}
.btn.danger, button.danger {
  background: var(--clay);
  color: #fffaf3;
}
.side .ghost.light { color: #f6f1e6; border-color: rgba(246, 241, 230, 0.3); background: transparent; border-radius: 999px; padding: 8px 12px; cursor: pointer; }
.flash, .error, .banner, .empty {
  border-radius: 16px;
  padding: 14px 16px;
}
.flash { background: var(--lime); }
.flash.warn, .banner { background: #fff1d6; }
.error { background: #f8d7ce; color: var(--clay); }
.empty { background: rgba(255, 255, 255, 0.55); }
.banner { margin-bottom: 18px; }
.banner ol { margin: 8px 0 0; padding-left: 18px; }

.stats, .grid, .split { display: grid; gap: 12px; }
.stats { grid-template-columns: repeat(4, 1fr); margin: 18px 0; }
.stats a, .card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 16px;
  text-decoration: none;
}
.stats b { font-family: var(--display); font-size: 34px; display: block; }
.stats span, .card p { color: var(--muted); }
.split { grid-template-columns: 1.3fr 0.7fr; align-items: start; }
.list { display: grid; gap: 10px; }
.card.link:hover, .product:hover { border-color: var(--ink); }
.grid { grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); }
.product img, .photo-fallback, .preview-photo { width: 100%; height: 180px; object-fit: cover; border-radius: 12px; background: #ece6da; }
.preview-photo { height: 220px; margin-bottom: 12px; }
.photo-fallback.winter { background: linear-gradient(160deg, #d5e6f4, #8aa4b5); }
.photo-fallback.summer { background: linear-gradient(160deg, #f6e2b8, #c4894a); }
.photo-fallback.allseason { background: linear-gradient(160deg, #dce8d2, #7d9474); }
.dim { opacity: 0.62; }
.chip { display: inline-flex; border-radius: 999px; padding: 3px 8px; font-size: 12px; background: #efe8dc; }
.chip.winter, .status-in_progress { background: var(--winter); }
.chip.summer, .status-new { background: var(--summer); }
.chip.allseason, .status-done { background: var(--allseason); }
.filters { margin: 12px 0 16px; }
.filters a { background: transparent; border: 1px solid transparent; }
.filters a.on { background: var(--ink); color: var(--lime); }
.plain { padding-left: 18px; }
.stack { display: grid; gap: 12px; }
@media (min-width: 901px) {
  form.fields { grid-template-columns: 1fr 1fr; gap: 16px 20px; align-items: start; }
  form.fields .wide { grid-column: 1 / -1; }
}
.stack.tight { margin-top: 18px; }
label { display: grid; gap: 6px; font-size: 14px; font-weight: 700; }
input, select, textarea {
  width: 100%;
  border: 1px solid var(--line);
  background: white;
  border-radius: 12px;
  padding: 12px 14px;
  font-weight: 500;
}
.check { display: flex; gap: 10px; align-items: flex-start; font-weight: 600; }
.check input { width: auto; margin-top: 4px; }
.size-row, .price-row, .price-head {
  display: grid;
  gap: 8px;
  align-items: end;
}
.size-row { grid-template-columns: repeat(5, 1fr) auto; padding: 10px 0; border-top: 1px solid var(--line); }
.price-head, .price-row { grid-template-columns: 1.5fr 0.8fr 120px 110px auto; align-items: center; }
.price-head { color: var(--muted); font-size: 13px; padding: 8px 0; }
.price-row { border-top: 1px solid var(--line); padding: 12px 0; }
.price-row p { margin: 4px 0 0; }
label.slim { font-weight: 600; }
.set-price { font-family: var(--display); font-size: 18px; }
.actions form { margin: 0; }
.phone {
  max-width: 440px;
  margin: 8px auto 0;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 28px;
  padding: 18px;
  box-shadow: 0 18px 40px rgba(23, 36, 28, 0.06);
}
.summary { font-size: 13px; color: var(--muted); }
.choice {
  display: block;
  width: 100%;
  text-align: left;
  background: white;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 14px 16px;
  margin: 8px 0;
  font-weight: 700;
  text-decoration: none;
}
.choice small, .choice.quiet { display: block; font-weight: 600; color: var(--muted); }
.order-card { margin-top: 14px; }
.login-body { min-height: 100vh; display: grid; place-items: center; padding: 24px; }
.login { width: min(460px, 100%); }
.login h1 { margin-top: 8px; }

body.store { font-size: 20px; overflow-wrap: break-word; }
body.store .store-top { background: var(--ink); color: #f6f1e6; }
body.store .store-bar {
  width: min(1040px, 100%);
  margin: 0 auto;
  padding: 14px 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px 20px;
}
body.store .store-brand {
  display: flex;
  gap: 12px;
  align-items: center;
  min-width: 0;
  text-decoration: none;
  color: inherit;
}
body.store .store-brand .mark { width: 44px; height: 44px; }
body.store .store-brand span { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
body.store .store-brand strong { font-family: var(--display); font-size: 32px; font-weight: 500; line-height: 1.05; }
body.store .store-brand small { display: block; color: #c9c2b4; font-size: 15px; line-height: 1.2; }
body.store .store-links {
  display: flex;
  flex: 0 0 auto;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 12px 16px;
}
body.store .store-links a {
  color: inherit;
  font-weight: 700;
  line-height: 1.2;
  text-decoration: none;
  white-space: nowrap;
}
body.store .store-help { padding: 6px 2px; font-size: 16px; font-weight: 600; }
body.store .store-links a.store-phone {
  background: #fffaf3;
  color: #17241c;
  border-radius: 999px;
  padding: 8px 14px;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.02em;
  font-variant-numeric: tabular-nums;
  line-height: 1.15;
}
body.store .store-main {
  width: min(1040px, 100%);
  max-width: 1040px;
  margin: 0 auto;
  padding: 22px 16px 40px;
}
body.store h1 { font-size: clamp(32px, 7vw, 48px); margin: 0 0 14px; }
body.store .lead { font-size: 1.05em; max-width: none; margin-bottom: 14px; }
body.store p { margin: 0 0 14px; }
body.store .kicker { font-size: 18px; letter-spacing: 0; text-transform: none; margin-bottom: 14px; }
body.store .kicker a { text-decoration: underline; text-underline-offset: 3px; }
body.store .choice { font-size: 1.05em; padding: 16px 18px; margin: 0 0 14px; text-align: center; }
body.store .note { margin: 0 0 14px; font-size: 17px; line-height: 1.4; }
body.store .chip { font-size: 16px; padding: 4px 10px; }
body.store label { font-size: 1em; gap: 8px; }
body.store .stack { gap: 16px; }
body.store form.stack { margin-bottom: 16px; }
body.store .flash, body.store .error, body.store .empty { margin: 0 0 16px; }
body.store input, body.store select, body.store textarea { font-size: 1.05em; padding: 14px; }
body.store .btn { font-size: 1.05em; padding: 16px 20px; width: 100%; }
body.store .order-card { display: grid; gap: 16px; margin-top: 16px; }
body.store .order-card > h2, body.store .order-card > p { margin: 0; }
body.store .check .note { display: block; margin: 6px 0 0; }
body.store .order-card > p:empty { display: none; }
body.store .summary { font-size: 17px; margin-bottom: 14px; }
body.store .store-results { display: grid; gap: 14px; margin-bottom: 14px; }
body.store .store-results .choice { margin: 0; width: auto; }
body.store .brand-all { margin-bottom: 20px; }
body.store .store-actions { display: flex; gap: 14px; margin-top: 8px; }
body.store .store-actions .choice { flex: 1 1 0; margin: 0; text-align: center; }
body.store .store-item {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 14px;
  text-align: center;
}
body.store .store-item > span { flex: 0 1 auto; min-width: 0; }
body.store .store-item img, body.store .store-item .thumb {
  width: 88px;
  height: 88px;
  flex: 0 0 88px;
  object-fit: cover;
  border-radius: 14px;
  background: #ece6da;
}
body.store .store-item small { margin-top: 4px; line-height: 1.35; }
body.store .store-photo {
  display: block;
  width: 100%;
  max-height: 440px;
  object-fit: cover;
  border-radius: 18px;
  margin: 0 0 14px;
  background: #ece6da;
}

@media (min-width: 860px) {
  body.store .store-main {
    display: grid;
    grid-template-columns: 1fr 1fr;
    column-gap: 14px;
    row-gap: 14px;
    align-items: start;
  }
  body.store .store-main > * { margin-top: 0; margin-bottom: 0; }
  body.store .store-main > .store-actions { margin-top: 8px; }
  body.store .store-main > :not(.choice),
  body.store .store-main > .choice.span { grid-column: 1 / -1; }
  body.store .store-results { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 0; }
  body.store .store-results .choice { flex: 1 1 calc(50% - 14px); max-width: 100%; }
}
@media (max-width: 700px) {
  body.store .store-bar { flex-wrap: wrap; align-items: flex-start; row-gap: 12px; }
  body.store .store-links { flex: 1 1 100%; justify-content: flex-start; }
  body.store .store-actions { flex-direction: column; }
}

@media (max-width: 900px) {
  .shell { grid-template-columns: 1fr; }
  .side { position: sticky; top: 0; z-index: 5; height: auto; flex-direction: row; align-items: center; overflow-x: auto; padding: 12px; gap: 10px; }
  .side nav { flex-direction: row; }
  .side nav a { white-space: nowrap; }
  .brand small, .side form { display: none; }
  .stats, .split, .size-row { grid-template-columns: 1fr 1fr; }
  .price-head { display: none; }
  .price-row { grid-template-columns: 1fr 1fr; }
  main { padding: 18px 14px 48px; }
}