:root {
  --bg: #f3eee8;
  --paper: #fffdfb;
  --ink: #1c140f;
  --muted: #8a776c;
  --line: rgba(40, 24, 16, 0.08);
  --blue: #2f6bff;
  --blue-2: #1e56ea;
  --shadow: 0 16px 40px rgba(60, 32, 16, 0.08);
  --radius: 28px;
  --font: "Manrope", "Segoe UI", sans-serif;
  --header: 72px;
}

*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.45;
}

body.is-lock { overflow: hidden; }

button,
input,
textarea { font: inherit; color: inherit; }

button { cursor: pointer; }

img { max-width: 100%; display: block; }

h1, h2, h3, p { margin: 0; }

a { color: inherit; }

:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 3px;
}

::selection { background: var(--blue); color: #fff; }

.wrap {
  width: min(1160px, calc(100% - 40px));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  height: var(--header);
  background: rgba(243, 238, 232, 0.9);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--line);
}

.header-in {
  height: 100%;
  display: flex;
  align-items: center;
  gap: 22px;
}

.logo {
  border: 0;
  background: transparent;
  padding: 0;
  display: grid;
  place-items: center;
}

.logo img {
  height: 46px;
  width: auto;
}

.hero-logo img {
  width: min(300px, 100%);
  height: auto;
}

.nav {
  display: flex;
  gap: 18px;
  margin-left: auto;
}

.nav button {
  border: 0;
  background: transparent;
  padding: 8px 0;
  color: var(--muted);
  font-weight: 700;
}

.nav button.is-on { color: var(--ink); }

.cart-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 0;
  background: var(--ink);
  color: #fff;
  border-radius: 999px;
  padding: 10px 12px 10px 16px;
  font-weight: 800;
}

.cart-btn b {
  min-width: 22px;
  height: 22px;
  padding: 0 6px;
  border-radius: 999px;
  background: var(--blue);
  display: inline-grid;
  place-items: center;
  font-size: 12px;
}

.hero {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 56px;
  align-items: stretch;
  padding: 42px 0 0;
}

.eyebrow {
  color: var(--muted);
  font-weight: 700;
  margin-bottom: 10px;
}

.hero h1 {
  font-size: clamp(64px, 8vw, 112px);
  line-height: 0.88;
  letter-spacing: -0.06em;
  font-weight: 800;
}

.lead {
  margin-top: 18px;
  max-width: 560px;
  font-size: 16px;
  line-height: 1.5;
  color: #3d312b;
}

.hero .lead {
  margin-top: 20px;
  font-size: 18px;
  line-height: 1.6;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 28px;
}

.btn {
  border: 0;
  border-radius: 999px;
  padding: 14px 20px;
  font-weight: 800;
}

.btn.blue { background: var(--blue); color: #fff; }
.btn.blue:hover { background: var(--blue-2); }
.btn:disabled { opacity: 0.65; cursor: default; }
.btn.ghost { background: transparent; box-shadow: inset 0 0 0 1.5px rgba(28, 20, 15, 0.2); }

.hero-colors {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 10px;
  margin-top: 32px;
}

.swatch-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 0;
  background: var(--paper);
  border-radius: 999px;
  padding: 8px 12px 8px 8px;
  font-weight: 700;
  box-shadow: inset 0 0 0 1px var(--line);
}

.swatch-btn i,
.chip i,
.sw {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  display: block;
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.12);
}

.hero-photo {
  border-radius: 36px;
  overflow: hidden;
  height: 100%;
  min-height: 480px;
  background: #e6d5cb;
  position: relative;
}

.hero-stage {
  position: absolute;
  inset: 0;
}

.hero-photo img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 0.7s ease;
}

.hero-photo img.is-on { opacity: 1; z-index: 1; }

.hero-arrow {
  position: absolute;
  top: 50%;
  z-index: 2;
  width: 42px;
  height: 42px;
  margin-top: -21px;
  border: 0;
  border-radius: 50%;
  background: #fff;
  font-size: 26px;
  line-height: 1;
  box-shadow: 0 8px 20px rgba(40, 24, 16, 0.12);
}

.hero-arrow.prev { left: 14px; }
.hero-arrow.next { right: 14px; }

.hero-dots {
  position: absolute;
  right: 18px;
  bottom: 24px;
  z-index: 2;
  display: flex;
  gap: 6px;
}

.hero-dot {
  width: 8px;
  height: 8px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: rgba(28, 20, 15, 0.35);
  box-shadow: 0 0 0 2px #fff;
  transition: width 0.35s ease, background 0.35s ease;
}

.hero-dot.is-on {
  width: 22px;
  background: var(--ink);
  box-shadow: none;
}

.hero-note {
  position: absolute;
  left: 16px;
  bottom: 16px;
  z-index: 2;
  background: #fff;
  border-radius: 999px;
  padding: 10px 14px;
  font-weight: 800;
  display: flex;
  align-items: center;
  gap: 8px;
}

.hero-note span {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--ink);
  color: #fff;
  display: grid;
  place-items: center;
}

.promos {
  display: grid;
  gap: 10px;
  padding-top: 22px;
}

.promo {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  background: #7d5854;
  color: #fff;
  border-radius: 24px;
  padding: 16px 22px;
}

.promo strong {
  display: block;
  font-size: 20px;
  letter-spacing: -0.03em;
}

.promo p { color: rgba(255, 255, 255, 0.88); margin-top: 2px; white-space: pre-line; }

.promo-till {
  font-weight: 800;
  letter-spacing: -0.03em;
  white-space: nowrap;
}

.steps-block { padding: 72px 0 36px; }

.steps-block h2 {
  font-size: clamp(28px, 3vw, 40px);
  letter-spacing: -0.045em;
  line-height: 1;
  margin-bottom: 22px;
}

.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.step {
  background: var(--paper);
  border-radius: 24px;
  padding: 22px 22px 20px;
  box-shadow: inset 0 0 0 1px var(--line);
}

.step b {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--ink);
  color: #fff;
  font-size: 13px;
  margin-bottom: 10px;
}

.step h3 { font-size: 18px; letter-spacing: -0.03em; line-height: 1.25; }
.step p { color: var(--muted); margin-top: 8px; line-height: 1.45; }

.section { padding: 34px 0; }

.section-h {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 16px;
}

.section-h h2 {
  font-size: clamp(32px, 4vw, 48px);
  letter-spacing: -0.045em;
  line-height: 0.95;
}

.section-h p { color: var(--muted); max-width: 360px; }

.catalog-block { margin-top: 34px; }
.catalog-block:first-child { margin-top: 6px; }
.block-h p { color: var(--muted); max-width: 560px; margin-top: 6px; }
.catalog-block .block-h h3 {
  margin-top: 0;
  font-size: clamp(28px, 3vw, 40px);
  font-weight: 800;
  letter-spacing: -0.045em;
  line-height: 1;
}
.catalog-block .grid { margin-top: 16px; }

.filters {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin: 22px 0 8px;
}

.filter-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.filter-label {
  width: 148px;
  font-weight: 800;
}

.chip {
  border: 0;
  background: var(--paper);
  border-radius: 999px;
  padding: 10px 14px;
  font-weight: 700;
  box-shadow: inset 0 0 0 1px var(--line);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.chip.is-on,
.swatch-btn.is-on {
  background: var(--ink);
  color: #fff;
  box-shadow: none;
}

.count {
  color: var(--muted);
  font-weight: 700;
  margin: 8px 0 16px;
}

.grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px 16px;
  align-items: start;
}

.bcard {
  appearance: none;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  width: 100%;
  border: 0;
  background: transparent;
  padding: 0;
  text-align: left;
  color: inherit;
}

.ph {
  position: relative;
  width: 100%;
  aspect-ratio: 1;
  flex: none;
  border-radius: 28px;
  overflow: hidden;
  background: #e8ddd4;
}

.ph img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.45s ease;
}

.bcard:hover img { transform: scale(1.04); }

.bcard h3 {
  margin-top: 12px;
  font-size: 18px;
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.2;
}

.meta { color: var(--muted); font-size: 14px; font-weight: 600; margin-top: 3px; }
.cost { margin-top: 4px; font-weight: 800; line-height: 1.2; }
.sale-note { color: var(--muted); font-weight: 700; margin: 0 0 8px; }
.sheet .sale-note,
.sheet .sale-note s { color: rgba(255, 255, 255, 0.78); }
.sale-note s, .price-was, .line-price s {
  color: var(--muted);
  font-weight: 600;
  text-decoration: line-through;
}
.price-was { display: block; font-size: 16px; margin-top: 8px; }
.line-price s { display: block; font-size: 13px; }

.empty {
  background: var(--paper);
  border-radius: var(--radius);
  padding: 28px;
}

.band {
  margin: 10px 0 20px;
  border-radius: 36px;
  padding: 36px;
  color: #fff;
  background: linear-gradient(165deg, #3f2c26 0%, #8a5a42 55%, #c4926e 100%);
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 24px;
  align-items: center;
}

.band h2 {
  font-size: clamp(32px, 4vw, 52px);
  letter-spacing: -0.045em;
  line-height: 0.95;
}

.band p { margin-top: 10px; max-width: 460px; color: rgba(255, 255, 255, 0.86); }

.band .btn { margin-top: 18px; }

.band-card {
  background: rgba(255, 255, 255, 0.14);
  border-radius: 24px;
  padding: 16px;
  backdrop-filter: blur(8px);
}

.band-card strong { display: block; font-size: 20px; }
.band-card span { color: rgba(255, 255, 255, 0.8); }

.gifts {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px 14px;
  align-items: start;
}

.site-footer {
  border-top: 1px solid var(--line);
  padding: 28px 0 40px;
  color: var(--muted);
}

.footer-in {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
}

.footer-in strong { color: var(--ink); }
.footer-in a { color: inherit; }
.footer-links { display: flex; flex-direction: column; gap: 8px; align-items: flex-start; }
.footer-in button {
  background: none;
  border: 0;
  padding: 0;
  color: inherit;
  font: inherit;
  text-align: left;
  text-decoration: underline;
  cursor: pointer;
}
.legal { max-width: 760px; padding: 28px 0 72px; }
.legal h2 {
  font-size: clamp(36px, 5vw, 56px);
  letter-spacing: -0.05em;
  line-height: 0.95;
}
.legal h3 { margin: 22px 0 8px; font-size: 18px; }
.legal p { margin: 0 0 8px; max-width: 68ch; }
.agree button {
  display: inline;
  background: none;
  border: 0;
  padding: 0;
  color: inherit;
  font: inherit;
  font-weight: 800;
  text-decoration: underline;
  cursor: pointer;
}

.sub-head { padding-top: 20px; }
.sub-head h2 {
  font-size: clamp(36px, 5vw, 56px);
  letter-spacing: -0.05em;
  line-height: 0.95;
}
.sub-head .lead { margin-top: 10px; max-width: 760px; line-height: 1.55; }

.sub-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 400px;
  grid-template-areas:
    "photo config"
    "rest config";
  gap: 22px 28px;
  align-items: start;
  padding: 8px 0 56px;
}

.sub-photo { grid-area: photo; min-width: 0; position: relative; }
.sub-config { grid-area: config; }
.sub-rest { grid-area: rest; min-width: 0; }

.sub-photo {
  border-radius: 32px;
  overflow: hidden;
  aspect-ratio: 5 / 4;
  background: #e8ddd4;
}

.sub-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.sub-cats { display: flex; flex-direction: column; gap: 6px; }

.sub-cat h3 {
  margin-top: 8px;
  font-size: clamp(22px, 2vw, 28px);
  letter-spacing: -0.04em;
}

.sub-cat p { margin-top: 6px; color: var(--muted); }

.cal-save { margin-top: 14px; }

.next-dates { margin-bottom: 10px; font-weight: 700; }

.cal-save .btn { width: 100%; }

.picker {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 14px 10px;
  margin: 12px 0 18px;
  padding: 4px;
}

.pick {
  width: auto;
  min-width: 0;
  border: 0;
  background: transparent;
  padding: 0;
  text-align: left;
  color: inherit;
}

.pick img {
  width: 100%;
  aspect-ratio: 1;
  height: auto;
  object-fit: cover;
  border-radius: 18px;
  background: #e8ddd4;
}

.pick.is-on img { outline: 3px solid var(--ink); outline-offset: 3px; }
.pick span {
  display: block;
  margin-top: 6px;
  font-weight: 800;
  font-size: 13px;
  letter-spacing: -0.03em;
  line-height: 1.15;
  color: var(--muted);
}
.pick.is-on span { color: var(--ink); }

.sub-config h3 {
  font-size: 32px;
  font-weight: 800;
  letter-spacing: -0.05em;
  line-height: 1;
}

.sub-note {
  margin-top: 8px;
  color: var(--muted);
  font-weight: 700;
}

.sub-facts {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin: 12px 0 14px;
}

.sub-facts strong {
  display: block;
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -0.04em;
}

.sub-facts span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.sub-config .packs { grid-template-columns: 1fr 1fr; gap: 10px; }

.sub-config .pack {
  background: var(--bg);
  color: var(--ink);
  box-shadow: inset 0 0 0 1px var(--line);
  min-height: 0;
  padding: 12px 10px;
  gap: 2px;
}

.sub-config .pack svg { width: 22px; height: 22px; }
.sub-config .pack b { font-size: 15px; }

.sub-config .pack.is-on {
  background: var(--ink);
  color: #fff;
  box-shadow: none;
}

.sub-config .papers {
  color: var(--ink);
  font-weight: 800;
  margin-top: 10px;
}

.sub-config .paper.is-on { outline-color: var(--ink); }

.sub-config .size,
.sub-config .size.is-on {
  width: 52px;
  height: 52px;
  color: var(--ink);
  font-size: 18px;
}
.sub-config .size.is-on { background: var(--ink); color: #fff; }
.sub-config .size.is-on small { display: none; }
.sub-config .buybar { padding: 8px 0 0; }

.sub-config #live-summary {
  margin-top: 10px;
  color: #3d312b;
  font-weight: 700;
}

.sub-config .btn { margin-top: 10px; }
.sub-config .price { margin: 4px 0; }

#cal h3 { margin-bottom: 14px; }

.mini-sheet {
  border-radius: 32px;
  padding: 14px 0 10px;
  margin: 8px 0 22px;
  color: #fff;
}

.mini-sheet .visual {
  flex: none;
  height: 320px;
  min-height: 0;
}

.panel {
  background: var(--paper);
  border-radius: 28px;
  padding: 18px;
  box-shadow: var(--shadow);
}

.panel h3 { font-size: 22px; letter-spacing: -0.03em; }

.summary {
  position: sticky;
  top: 88px;
  max-height: calc(100dvh - 104px);
  overflow: auto;
}

.summary .thumb {
  height: 160px;
  border-radius: 20px;
  overflow: hidden;
  margin: 12px 0;
  background: #e8ddd4;
}

.summary .thumb img { width: 100%; height: 100%; object-fit: cover; }
.summary .price { font-size: 28px; font-weight: 800; letter-spacing: -0.04em; margin: 8px 0; }
.summary .btn { width: 100%; }

.cal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}

.cal-head button,
.icon-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 0;
  background: rgba(0, 0, 0, 0.22);
  color: #fff;
  font-size: 22px;
  line-height: 1;
}

.cal-head button {
  background: var(--ink);
  color: #fff;
}

.weekdays,
.cal {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 4px;
  text-align: center;
}

.weekdays { color: var(--muted); font-size: 12px; font-weight: 700; margin-bottom: 4px; }

.day {
  aspect-ratio: 1;
  border: 0;
  border-radius: 50%;
  background: transparent;
  font-weight: 700;
}

.day.is-on { background: var(--ink); color: #fff; }
.day:disabled { opacity: 0.28; cursor: default; }

.times { display: flex; flex-wrap: wrap; gap: 8px; margin: 8px 0 16px; }

.hint { color: var(--muted); margin: 8px 0 14px; }

.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 12px; }
.field span { font-weight: 800; font-size: 14px; }

.field input,
.field textarea {
  border: 0;
  background: var(--bg);
  border-radius: 14px;
  padding: 14px;
  font-size: 16px;
  box-shadow: inset 0 0 0 1px var(--line);
}

.field textarea { min-height: 84px; resize: vertical; }
.err { color: #a3262e; font-size: 13px; font-weight: 700; }

.promo-apply { display: flex; gap: 8px; }
.promo-apply input { flex: 1; min-width: 0; text-transform: uppercase; }
.promo-apply .btn { border-radius: 14px; padding: 0 16px; white-space: nowrap; }
.promo-note {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: -4px 0 12px;
  color: var(--blue);
  font-size: 13px;
  font-weight: 800;
}
.promo-note button {
  border: 0;
  background: transparent;
  color: var(--muted);
  font-weight: 800;
  text-decoration: underline;
  padding: 0;
}
.cart-sum .is-off b { color: var(--blue); }

.sheet {
  position: fixed;
  inset: 0;
  z-index: 35;
  overflow: auto;
  display: flex;
  flex-direction: column;
  height: 100dvh;
  color: #fff;
  font-weight: 600;
  text-shadow: none;
  background:
    radial-gradient(80% 70% at 28% 46%, rgba(255, 255, 255, 0.16), transparent 62%),
    var(--tone, #5c3d42);
}

.sheet-frame {
  flex: 1;
  min-height: 0;
  width: min(1680px, calc(100% - 48px));
  margin: 0 auto;
  display: flex;
  flex-direction: column;
}

.sheet-bar {
  min-height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
  flex: none;
}

.sheet-title {
  font-size: clamp(40px, 4vw, 64px);
  font-weight: 800;
  letter-spacing: -0.055em;
  line-height: 0.92;
}

.sheet-main {
  flex: 1;
  min-height: 0;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(420px, 0.92fr);
  grid-template-rows: minmax(0, 1fr);
  gap: 36px;
  align-items: stretch;
  padding-bottom: 18px;
}

.sheet-info {
  display: flex;
  flex-direction: column;
  justify-content: safe center;
  gap: 22px;
  min-width: 0;
  min-height: 0;
  overflow: auto;
  padding: 8px 8px 8px 4px;
}

.info-head,
.info-buy { flex: none; }

.menu-wrap { position: relative; justify-self: end; }

.pop {
  position: absolute;
  top: 48px;
  right: 0;
  background: #fff;
  color: var(--ink);
  text-shadow: none;
  border-radius: 16px;
  padding: 6px;
  min-width: 220px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.2);
  z-index: 2;
}

.pop button {
  display: block;
  width: 100%;
  text-align: left;
  background: transparent;
  border: 0;
  border-radius: 10px;
  padding: 10px 12px;
  font-weight: 700;
}

.pop button:hover { background: var(--bg); }

.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  text-align: left;
  gap: 10px 12px;
  text-shadow: none;
  margin-top: 18px;
}

.stats strong {
  display: block;
  font-size: clamp(22px, 2vw, 30px);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1.05;
}

.stats span {
  display: block;
  margin-top: 4px;
  font-size: 14px;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.88);
}

.more-pill {
  display: block;
  margin: 16px 0 0;
  border: 0;
  background: rgba(255, 255, 255, 0.2);
  color: #fff;
  border-radius: 999px;
  padding: 9px 16px;
  font-size: 15px;
  font-weight: 800;
  text-shadow: none;
  width: fit-content;
}

.details {
  background: rgba(0, 0, 0, 0.22);
  border-radius: 18px;
  padding: 14px 16px;
  margin: 14px 0 0;
  text-shadow: none;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.45;
}

.details p + p { margin-top: 8px; }

.visual {
  flex: 1 1 280px;
  height: auto;
  min-height: 220px;
  border-radius: 28px;
  overflow: hidden;
  margin: 8px auto;
  background: rgba(255, 255, 255, 0.08);
}

.visual img { width: 100%; height: 100%; object-fit: cover; }

.sheet .visual {
  flex: none;
  height: 100%;
  min-height: 0;
  margin: 0;
  border-radius: 36px;
  position: relative;
}

.sheet .visual img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.photo-size {
  position: absolute;
  left: 50%;
  bottom: 18px;
  z-index: 2;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 10px;
  max-width: calc(100% - 28px);
  background: #fff;
  color: var(--ink);
  border-radius: 999px;
  padding: 8px 18px 8px 8px;
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1;
  box-shadow: 0 10px 28px rgba(28, 20, 15, 0.28);
  text-shadow: none;
  pointer-events: none;
  white-space: nowrap;
}

.photo-size b {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--ink);
  color: #fff;
  display: grid;
  place-items: center;
  font-size: 18px;
  flex: none;
}

.photo-size span { font-size: 16px; }

.sheet .packs,
.sheet .packs.colors {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.sheet .pack { min-height: 96px; }

.band-w {
  width: min(1040px, calc(100% - 28px));
  margin-left: auto;
  margin-right: auto;
}

.packs {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
}

.packs.colors { grid-template-columns: repeat(5, 1fr); }

.pack {
  min-height: 118px;
  border: 0;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.16);
  color: #fff;
  text-shadow: none;
  backdrop-filter: blur(8px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 10px;
}

.pack svg { width: 30px; height: 30px; }
.pack b { font-size: 16px; font-weight: 800; line-height: 1.15; text-align: center; }
.pack em { font-style: normal; font-size: 13px; opacity: 0.92; font-weight: 700; }
.pack.is-on { background: #fff; color: var(--ink); }
.pack .sw { width: 28px; height: 28px; }

.papers {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin-top: 10px;
  text-shadow: none;
}

.paper {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 0;
  padding: 0;
}

.paper.is-on { outline: 2px solid #fff; outline-offset: 3px; }

.buybar {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px 8px;
  padding: 12px 0 8px;
}

.weekly-btn {
  flex: 1 0 100%;
  height: 52px;
  border: 0;
  border-radius: 999px;
  background: #fff;
  color: var(--ink);
  font-size: 16px;
  font-weight: 800;
  text-shadow: none;
}

.weekly-btn:hover { background: #f6f1ea; }

.sizes { display: flex; align-items: center; }

.size {
  width: 48px;
  height: 72px;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: #fff;
  font-weight: 800;
  font-size: 22px;
  text-shadow: none;
}

.size.is-on {
  width: 112px;
  height: 112px;
  background: #fff;
  color: var(--ink);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

.size.is-on small {
  display: block;
  margin-top: 6px;
  max-width: 100px;
  font-size: 15px;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.15;
  text-align: center;
}

.add {
  flex: 1;
  min-width: 0;
  height: 64px;
  border: 0;
  border-radius: 999px;
  background: var(--blue);
  color: #fff;
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.03em;
  text-shadow: none;
}

.add:hover { background: var(--blue-2); }
.add:active { transform: scale(0.985); }

.cart-back {
  position: fixed;
  inset: 0;
  background: rgba(28, 20, 15, 0.42);
  z-index: 50;
}

.cart-panel {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: min(440px, 100%);
  background: var(--paper);
  z-index: 51;
  overflow: auto;
  padding: 18px 18px 28px;
}

.cart-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.cart-head h2 { font-size: 28px; letter-spacing: -0.04em; }

.cart-head .icon-btn { background: var(--bg); color: var(--ink); }

.line {
  display: grid;
  grid-template-columns: 72px 1fr auto;
  gap: 10px;
  padding: 12px 0;
  border-top: 1px solid var(--line);
}

.line img {
  width: 72px;
  height: 72px;
  object-fit: cover;
  border-radius: 16px;
  background: #e8ddd4;
}

.line h3 { font-size: 16px; }
.line p { color: var(--muted); font-size: 13px; }
.qty { display: flex; align-items: center; gap: 8px; margin-top: 6px; }

.qty button {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 0;
  background: var(--bg);
  font-weight: 800;
}

.line-price { font-weight: 800; }

.ship-title { margin: 16px 0 8px; font-size: 18px; }

.zones {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 14px;
}

.zones > span { font-weight: 800; font-size: 14px; }

.zone {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border: 0;
  border-radius: 16px;
  background: var(--bg);
  padding: 12px 14px;
  text-align: left;
  box-shadow: inset 0 0 0 1px var(--line);
}

.zone b { font-weight: 800; }
.zone em { font-style: normal; font-weight: 800; white-space: nowrap; }
.zone.is-on { background: var(--ink); color: #fff; box-shadow: none; }
.zones .hint { margin: 0; }

.agrees { display: flex; flex-direction: column; gap: 10px; margin-bottom: 8px; }

.agree {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.35;
}

.agree input {
  width: 18px;
  height: 18px;
  margin: 2px 0 0;
  flex: none;
  accent-color: var(--blue);
}

.cart-sum {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin: 8px 0 14px;
}

.cart-sum div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-weight: 700;
}

.cart-sum .is-total {
  padding-top: 6px;
  font-size: 18px;
  font-weight: 800;
}

.toast {
  position: fixed;
  left: 50%;
  bottom: 20px;
  transform: translateX(-50%);
  z-index: 70;
  background: var(--ink);
  color: #fff;
  border-radius: 999px;
  padding: 10px 12px 10px 16px;
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  box-shadow: var(--shadow);
}

.toast[hidden] {
  display: none;
}

.toast button {
  border: 0;
  background: var(--blue);
  color: #fff;
  border-radius: 999px;
  padding: 8px 12px;
  font-weight: 800;
}

.done { padding: 48px 0 72px; max-width: 640px; }
.done h2 {
  font-size: clamp(40px, 6vw, 64px);
  letter-spacing: -0.05em;
  line-height: 0.95;
}
.done ul { padding-left: 18px; }
.done li { margin: 6px 0; }

@media (max-width: 1100px) {
  .sheet-frame {
    flex: none;
    width: min(1680px, calc(100% - 28px));
    min-height: auto;
  }

  .sheet-main {
    display: flex;
    flex-direction: column;
    gap: 12px;
    flex: none;
    padding-bottom: 8px;
  }

  .sheet-info {
    display: contents;
    overflow: visible;
  }

  .info-head { order: 1; }
  .info-buy { order: 3; }

  .sheet .visual {
    order: 2;
    height: 52vh;
    min-height: 280px;
    max-height: 560px;
  }

  .sheet .packs { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .sheet .packs.colors { grid-template-columns: repeat(5, minmax(0, 1fr)); }
  .sheet-title { font-size: clamp(36px, 8vw, 52px); }
}

@media (max-width: 980px) {
  .grid, .gifts { grid-template-columns: repeat(3, 1fr); }
  .hero { grid-template-columns: 1fr; gap: 20px; }
  .hero-photo { height: 380px; }
  .band, .steps { grid-template-columns: 1fr; }
  .sub-layout {
    grid-template-columns: 1fr;
    grid-template-areas:
      "photo"
      "config"
      "rest";
  }
  .picker { grid-template-columns: repeat(5, minmax(0, 1fr)); }
  .summary { position: static; max-height: none; overflow: visible; }
}

@media (max-width: 720px) {
  :root { --header: 62px; }
  .wrap { width: min(1160px, calc(100% - 28px)); }
  .header-in { gap: 8px; }
  .logo img { height: 38px; }
  .nav { gap: 10px; }
  .nav button { font-size: 13px; }
  .cart-word { display: none; }
  .cart-btn { padding: 8px; }
  .grid, .gifts { grid-template-columns: repeat(2, 1fr); }
  .filter-label { width: 100%; }
  .packs, .packs.colors { display: flex; overflow-x: auto; padding-bottom: 4px; }
  .pack { flex: 0 0 132px; min-height: 108px; }
  .sub-config .packs,
  .sub-config .packs.colors { display: grid; overflow: visible; }
  .sub-config .pack { flex: none; min-height: 92px; }
  .picker { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .visual { flex-basis: 200px; min-height: 180px; }
  .sheet .visual { height: 42vh; min-height: 220px; max-height: 420px; }
  .photo-size { bottom: 12px; padding: 6px 14px 6px 6px; }
  .photo-size b { width: 34px; height: 34px; font-size: 15px; }
  .photo-size span { font-size: 14px; }
  .add { font-size: 18px; }
  .section-h { flex-direction: column; align-items: start; }
  .band { padding: 22px; }
  .steps-block { padding: 48px 0 28px; }
  .promo { flex-direction: column; align-items: flex-start; }
  .promo-till { white-space: normal; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .ph img, .add, .hero-photo img { transition: none; }
}
