:root {
  --bg: #141414;
  --cream: #f4f1ea;
  --cream-2: #e6e0d4;
  --ink: #141414;
  --muted: rgba(244, 241, 234, 0.64);
  --line: rgba(244, 241, 234, 0.16);
  --red: #e21310;
  --pad: clamp(18px, 4vw, 56px);
  --header: 118px;
  color-scheme: dark;
  --sans: "Inter Tight", sans-serif;
  --display: Unbounded, sans-serif;
  --mono: "Courier Prime", monospace;
  font-family: var(--sans);
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--cream);
  font-size: 16px;
  line-height: 1.5;
  font-weight: 500;
}
body.locked { overflow: hidden; }
body[data-page="account"],
body[data-page="cart"],
body[data-page="contacts"],
body[data-page="policy"] { background: var(--cream); }
img { max-width: 100%; display: block; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, p { margin: 0; }
h1, h2, h3, .price, .watermark, .swatch strong {
  font-family: var(--display);
  font-weight: 500;
  letter-spacing: -0.045em;
  line-height: 0.96;
  text-wrap: balance;
}
.kicker, .btn, .filters button, .menu-btn, .cart-link, .text-link, .tag, .field span, .spin-hint, .check {
  font-family: var(--mono);
}
::selection { background: var(--red); color: white; }
:focus-visible { outline: 2px solid var(--red); outline-offset: 3px; }

.sr {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
}

.skip {
  position: absolute;
  left: 12px;
  top: -48px;
  z-index: 80;
  background: var(--cream);
  color: var(--ink);
  padding: 8px 12px;
}
.skip:focus { top: 12px; }

.kicker {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 14px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.kicker::before {
  content: "";
  width: 8px;
  height: 8px;
  background: var(--red);
  flex: none;
}
.lede {
  max-width: 42ch;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.45;
}
.muted { color: var(--muted); }
.muted button {
  background: none;
  border: 0;
  padding: 0;
  color: inherit;
  font: inherit;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: var(--header);
  padding: 14px var(--pad);
  background: #141414;
}
.brand { display: block; flex: none; }
.brand img { width: 148px; height: auto; }
.header .home-menu { flex-wrap: wrap; justify-content: flex-start; }
.header-actions { display: flex; align-items: center; gap: 18px; }
.cart-link {
  background: none;
  border: 0;
  padding: 0;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-size: 12px;
  font-weight: 700;
}
.menu-btn {
  display: grid;
  grid-template-columns: 1fr 44px;
  align-items: center;
  height: 44px;
  min-width: 148px;
  padding: 0;
  border: 0;
  background: var(--cream);
  color: var(--ink);
}
.menu-btn span:first-child {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  padding: 0 16px;
  letter-spacing: 0.12em;
  font-size: 12px;
  font-weight: 700;
  line-height: 1;
  text-transform: uppercase;
}
.menu-ico {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  border-left: 1px solid rgba(20, 20, 20, 0.16);
}
.menu-ico svg { display: block; transform: translateY(-1px); }

.nav-overlay {
  position: fixed;
  inset: 0;
  z-index: 40;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  overflow: auto;
  padding: 14px var(--pad) 36px;
  background: var(--cream);
  color: var(--ink);
  color-scheme: light;
  transform: translateY(-102%);
  pointer-events: none;
  transition: transform 0.45s cubic-bezier(0.2, 0.7, 0.2, 1);
}
body.nav-open #nav {
  transform: none;
  pointer-events: auto;
}
.nav-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; }
.nav-top img { width: 140px; height: auto; }
.nav-links { display: flex; flex-direction: column; align-items: flex-start; gap: 6.9px; }
.nav-links a,
.nav-links button {
  font-family: var(--display);
  font-size: clamp(16.8px, 2.8vw, 33.6px);
  font-weight: 500;
  letter-spacing: -0.05em;
  line-height: 0.92;
  background: none;
  border: 0;
  padding: 0;
  color: inherit;
  text-align: left;
}
.nav-links a:hover,
.nav-links button:hover,
.nav-links a.is-current { color: var(--red); }
.policy-overlay { z-index: 45; }
.policy-copy { max-width: 68ch; padding: 12px 0 24px; }
.policy-copy h2 { font-size: clamp(28px, 4vw, 48px); margin-bottom: 16px; }
.policy-copy h3 { font-size: clamp(18px, 2vw, 24px); margin: 22px 0 10px; }
.policy-copy p,
.policy-copy li {
  font-size: 15px;
  line-height: 1.45;
  text-align: justify;
}
.policy-copy p + p,
.policy-copy ul { margin-top: 10px; }
.policy-copy ul { padding-left: 18px; }
body.policy-open .policy-overlay { transform: none; pointer-events: auto; }
.nav-foot { display: flex; gap: 22px; flex-wrap: wrap; }

.hero {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 18px;
  min-height: calc(100dvh - var(--header));
  padding: 8px var(--pad) 36px;
  overflow: hidden;
}
.hero-pair {
  flex: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  justify-items: center;
  gap: 24px;
  min-height: 0;
}
.hero-copy { max-width: 640px; justify-self: start; padding-left: clamp(8px, 2vw, 24px); }
.hero-routes { display: flex; flex-wrap: wrap; gap: 14px 22px; margin-top: 22px; }
.spin-stage {
  position: relative;
  z-index: 2;
  width: min(420px, 40vw);
  user-select: none;
  animation: tumbler-float-mobile 5.6s ease-in-out infinite;
}
.paper-cup {
  display: block;
  position: relative;
  z-index: 1;
  width: 100%;
  height: min(480px, 56vh);
  background: transparent;
  opacity: 0;
  --poster-color: transparent;
}
.paper-cup.is-ready {
  opacity: 1;
  filter: drop-shadow(0 26px 12px rgba(255, 248, 236, 0.2));
}
.paper-cup::part(default-progress-bar),
.paper-cup::part(default-poster) { display: none; }
.spin-stage::before {
  content: "";
  position: absolute;
  z-index: 0;
  left: 30%;
  right: 30%;
  bottom: 58px;
  height: 34px;
  background: radial-gradient(ellipse at center, rgba(255, 248, 236, 0.4), rgba(255, 248, 236, 0.1) 42%, transparent 74%);
  filter: blur(4px);
  pointer-events: none;
}
.spin-stage.is-bag { animation: none; }
.spin-stage.is-bag { width: min(504px, 48vw); }
.spin-stage.is-bag .paper-cup { height: min(576px, 67vh); }
.spin-stage.is-bag::before {
  left: 26%;
  right: 26%;
  bottom: calc(18px + min(576px, 67vh) * 0.037 - 17px);
  transform: scaleX(var(--bag-shadow, 1));
}
.spin-stage:focus-visible { outline: 1px solid var(--red); outline-offset: 8px; }
.spin-stage.is-hover { animation-play-state: paused; }
.spin-hint {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  letter-spacing: 0.14em;
  text-align: center;
  text-transform: uppercase;
  pointer-events: none;
}
@keyframes tumbler-float {
  0%, 100% { transform: translate(-50%, 0); }
  50% { transform: translate(-50%, -12px); }
}
@keyframes tumbler-float-mobile {
  0%, 100% { transform: none; }
  50% { transform: translateY(-12px); }
}
.hero-copy, .hero-visual { position: relative; z-index: 1; }
.hero h1 { font-size: clamp(52px, 7.4vw, 104px); max-width: 8ch; }
.hero .lede { margin-top: 22px; }
.home-menu {
  position: relative;
  z-index: 2;
  display: flex;
  flex-wrap: nowrap;
  justify-content: center;
  gap: 8px;
  margin: 0;
}
.home-menu .btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 44px;
  min-width: 148px;
  padding: 0 16px;
  color: var(--cream);
  text-align: center;
  line-height: 1;
  white-space: nowrap;
}
.home-menu .btn.is-on {
  background: var(--cream);
  color: var(--ink);
  border-color: var(--cream);
}
.brew {
  position: relative;
  z-index: 1;
  width: min(100%, 560px);
  justify-self: end;
  align-self: end;
}
.steam {
  position: absolute;
  left: 8px;
  top: -36px;
  width: 62px;
  height: 48px;
  pointer-events: none;
}
.steam i {
  position: absolute;
  bottom: 0;
  width: 10px;
  height: 22px;
  border-radius: 20px;
  background: rgba(244, 241, 234, 0.55);
  filter: blur(0.5px);
  animation: steam 2.4s ease-in infinite;
}
.steam i:nth-child(1) { left: 8px; }
.steam i:nth-child(2) { left: 26px; height: 30px; animation-delay: 0.6s; }
.steam i:nth-child(3) { left: 44px; animation-delay: 1.2s; }
.machine {
  background: linear-gradient(180deg, #2c2c2c 0 54px, #141414 54px);
  border: 1px solid rgba(244, 241, 234, 0.16);
  border-radius: 16px 16px 6px 6px;
  box-shadow: 0 24px 50px rgba(0, 0, 0, 0.35);
}
.machine-top {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 54px;
  padding: 10px 14px;
}
.led {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--red);
  box-shadow: 0 0 10px var(--red);
  animation: led 1.8s ease-in-out infinite;
}
.mark {
  margin-right: auto;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.18em;
}
.pad {
  display: grid;
  place-items: center;
  height: 32px;
  padding: 0 10px;
  border: 1px solid rgba(244, 241, 234, 0.28);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.pad:hover,
.group:hover .brew-label,
.panel:hover .brew-label,
.wand:hover .brew-label { color: var(--red); }
.machine-face {
  display: grid;
  grid-template-columns: 1.15fr 0.95fr minmax(92px, 0.7fr);
  gap: 8px;
  min-height: 300px;
  padding: 22px 14px 8px;
}
.group, .panel, .wand {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  min-height: 250px;
  padding-bottom: 8px;
}
.group { position: relative; }
.group-head {
  width: 96px;
  height: 32px;
  border-radius: 8px 8px 2px 2px;
  background: linear-gradient(180deg, #f7f4ee, #b9b4aa 45%, #8d8880);
  box-shadow: inset 0 -4px 0 rgba(0, 0, 0, 0.25);
}
.porta {
  width: 54px;
  height: 10px;
  margin-top: -2px;
  background: #c5c0b6;
  border-radius: 0 0 3px 3px;
  position: relative;
}
.porta::after {
  content: "";
  position: absolute;
  left: -28px;
  top: 1px;
  width: 30px;
  height: 7px;
  background: #1a1a1a;
  border: 2px solid #d9d4cb;
  border-radius: 2px 0 0 2px;
}
.stream {
  width: 6px;
  height: 64px;
  margin-top: 2px;
  background: linear-gradient(#f0d7a4, #6b3a22 45%, #3a2014);
  background-size: 100% 28px;
  animation: flow 0.45s linear infinite;
}
.cup {
  position: relative;
  width: 82px;
  height: 56px;
  margin-top: -2px;
  border: 3px solid var(--cream);
  border-top: 0;
  border-radius: 0 0 14px 14px;
  background: #0e0e0e;
}
.cup::after {
  content: "";
  position: absolute;
  right: -16px;
  top: 6px;
  width: 14px;
  height: 26px;
  border: 3px solid var(--cream);
  border-left: 0;
  border-radius: 0 12px 12px 0;
}
.crema {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 68%;
  background: linear-gradient(#f0d7a4, #8a4e28 42%, #3d2114);
  animation: fill 3.2s ease-in-out infinite;
}
.gauge {
  width: 88px;
  height: 88px;
  border-radius: 50%;
  border: 6px solid #d9d4cb;
  background:
    radial-gradient(circle at 50% 58%, transparent 0 28px, #1a1a1a 29px),
    conic-gradient(from 200deg, #3a3a3a, #e21310 40deg, #d9d4cb 0 150deg, #3a3a3a 0);
  position: relative;
}
.needle {
  position: absolute;
  left: 50%;
  bottom: 46%;
  width: 3px;
  height: 32px;
  background: var(--cream);
  transform-origin: bottom center;
  transform: rotate(-18deg);
  animation: needle 2.8s ease-in-out infinite;
}
.switches { display: flex; gap: 6px; margin: 18px 0 8px; }
.switches i {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #2a2a2a;
  border: 2px solid rgba(244, 241, 234, 0.35);
}
.switches i:first-child { background: var(--red); border-color: var(--red); }
.wand-pipe {
  width: 10px;
  height: 108px;
  border-radius: 8px;
  background: linear-gradient(90deg, #8d8880, #f4f1ea 40%, #8d8880);
}
.wand-tip {
  width: 22px;
  height: 10px;
  margin: -2px 0 8px;
  border-radius: 0 0 6px 6px;
  background: #d9d4cb;
}
.brew-label {
  display: block;
  max-width: 100%;
  margin-top: 8px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  line-height: 1.25;
  text-align: center;
  text-transform: uppercase;
  overflow-wrap: anywhere;
}
.tray {
  height: 22px;
  margin: 0 10px;
  background: linear-gradient(#3a3a3a, #1b1b1b);
  border-radius: 3px;
  display: grid;
  align-items: center;
}
.tray span {
  height: 4px;
  margin: 0 8px;
  background: repeating-linear-gradient(90deg, #6a655e 0 6px, transparent 6px 10px);
}
.feet {
  display: flex;
  justify-content: space-between;
  padding: 8px 22px 10px;
}
.feet span {
  width: 16px;
  height: 8px;
  background: #0a0a0a;
  border-radius: 0 0 4px 4px;
}
@keyframes flow {
  from { background-position: 0 0; }
  to { background-position: 0 28px; }
}
@keyframes fill {
  0%, 8% { height: 16%; }
  78%, 88% { height: 86%; }
  100% { height: 16%; }
}
@keyframes steam {
  0% { transform: translateY(10px) scaleX(0.7); opacity: 0; }
  25% { opacity: 0.75; }
  100% { transform: translateY(-52px) scaleX(1.4); opacity: 0; }
}
@keyframes needle {
  0%, 100% { transform: rotate(-32deg); }
  55% { transform: rotate(16deg); }
}
@keyframes led {
  0%, 100% { opacity: 0.35; }
  50% { opacity: 1; }
}
.watermark {
  position: absolute;
  left: var(--pad);
  bottom: -0.18em;
  margin: 0;
  font-size: clamp(120px, 24vw, 320px);
  font-weight: 700;
  letter-spacing: -0.07em;
  line-height: 0.8;
  color: rgba(244, 241, 234, 0.05);
  pointer-events: none;
}

.feature {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(24px, 4vw, 64px);
  align-items: center;
  padding: 10px var(--pad) 88px;
}
.feature.reverse .feature-media { order: 2; }
.plate { background: #fff; display: block; }
.plate img { width: 100%; aspect-ratio: 1; object-fit: contain; padding: 7%; }
.feature h2 { font-size: clamp(40px, 5vw, 68px); margin-bottom: 16px; }
.feature .price { margin: 22px 0 18px; }
.price { font-size: 28px; font-weight: 600; letter-spacing: -0.04em; }
.price span { font-size: 14px; font-weight: 500; letter-spacing: 0; color: var(--muted); }

.band { padding-bottom: 80px; }
.band-head { padding: 0 var(--pad) 20px; }
.band-head-next { padding-top: 56px; }
.band-head h2 { font-size: clamp(36px, 4vw, 56px); margin-bottom: 12px; }
.band-head .lede {
  max-width: 46ch;
  font-size: 17px;
  font-weight: 500;
  line-height: 1.65;
  text-wrap: pretty;
}
.reel {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) 44px;
  gap: 12px;
  align-items: center;
  margin: 0 var(--pad) 8px;
}
.reel-btn {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--cream);
}
.reel-btn:hover { border-color: var(--cream); }
.reel-btn svg { display: block; }
.reel-btn[data-reel-dir="-1"] svg { transform: rotate(180deg); }
.reel-view { overflow: hidden; min-width: 0; }
.reel-track { display: flex; gap: 10px; will-change: transform; }
.reel-track img {
  width: max(132px, 18vw);
  aspect-ratio: 1;
  flex: none;
  object-fit: cover;
  object-position: center;
}

.trio {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  padding: 0 var(--pad) 88px;
}
.trio a { display: flex; flex-direction: column; min-height: 100%; }
.trio h2 { font-size: clamp(26px, 2vw, 34px); margin: 16px 0 8px; }
.trio .swatch, .trio .plate { height: auto; aspect-ratio: 4 / 5; min-height: 0; }
.footer a:hover, .footer button:hover, .nav-foot button:hover { color: var(--red); }
.catalog .empty { grid-column: 1 / -1; padding-left: 0; padding-right: 0; }

.page-head { padding: 36px var(--pad) 22px; max-width: 860px; }
.page-head h1 { font-size: clamp(48px, 8vw, 96px); }
body[data-page="contacts"] .page-head h1 { font-size: clamp(19px, 3.2vw, 38px); }
.page-head .lede,
.page-head .muted:not(#catalog-meta) {
  max-width: none;
  margin-top: 18px;
  font-size: 17px;
  font-weight: 500;
  line-height: 1.65;
  text-align: justify;
  text-align-last: start;
  hyphens: auto;
  text-wrap: pretty;
}
.page-head #catalog-meta {
  margin-top: 22px;
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
  line-height: 1.4;
  text-align: left;
  text-transform: uppercase;
}

.filter-bar { display: flex; flex-direction: column; gap: 8px; padding: 0 var(--pad) 22px; }
.filters { display: flex; flex-wrap: wrap; gap: 8px; padding: 0 var(--pad) 22px; }
.filter-bar .filters { padding: 0; }
.filters button,
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 48px;
  padding: 0 16px;
  border: 1px solid var(--line);
  background: transparent;
  letter-spacing: 0.12em;
  text-align: center;
  line-height: 1;
  text-transform: uppercase;
  font-size: 12px;
  font-weight: 700;
}
.filters button.is-on,
.btn-cream { background: var(--cream); color: var(--ink); border-color: var(--cream); }
.btn-ink { background: var(--ink); color: var(--cream); border-color: var(--ink); }
.btn-ghost { background: transparent; }
.btn-red { background: var(--red); color: white; border-color: var(--red); }
.btn:hover { border-color: var(--red); }
.filters button:hover { border-color: var(--cream); }

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  width: fit-content;
  padding-bottom: 2px;
  border-bottom: 1px solid currentColor;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-size: 12px;
  font-weight: 700;
}
.text-link::before { content: ""; width: 18px; height: 1px; background: var(--red); }

.catalog {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 22px 16px;
  padding: 8px var(--pad) 88px;
}
.card { display: flex; flex-direction: column; height: 100%; }
.card-media { display: block; overflow: hidden; background: #fff; aspect-ratio: 4 / 5; }
.card-media img,
.card-media img.cover { width: 100%; height: 100%; object-fit: cover; object-position: center; }
.card-body { padding: 10px 0 4px; display: flex; flex-direction: column; flex: 1; gap: 6px; }
.card h2 { font-size: clamp(15px, 1.35vw, 20px); line-height: 1.15; min-height: calc(1.15em * 3); }
.card .muted { font-size: 13px; line-height: 1.35; min-height: 1.35em; }
.card .price { font-size: 15px; }
.card .price-unit { font-size: 11px; }
.card .btn { height: 34px; padding: 0 10px; font-size: 10px; }
.card a:hover { color: var(--red); }
.card-row { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 8px; margin-top: auto; }
.card-row:has(.price-was) { flex-wrap: nowrap; gap: 6px; }
.card-row:has(.price-was) > .btn,
.card-row:has(.price-was) > .qty-add { flex: 0 0 auto; }
.card .offer:has(.price-was) { flex-wrap: nowrap; gap: 6px; font-size: 12px; white-space: nowrap; }
.card-row:has(.price-was) .qty-add button { width: 26px; }
.card-row:has(.price-was) .qty-add input { width: 2.4em; }
.qty-add {
  display: inline-flex;
  align-items: stretch;
  height: 34px;
  border: 1px solid var(--cream);
  color: var(--cream);
}
.qty-add button {
  width: 32px;
  border: 0;
  background: transparent;
  color: inherit;
  font-family: var(--mono);
  font-size: 16px;
  line-height: 1;
}
.qty-add input {
  width: 3.4em;
  margin: 0;
  padding: 0;
  border: 0;
  border-left: 1px solid var(--line);
  border-right: 1px solid var(--line);
  background: transparent;
  color: inherit;
  text-align: center;
  font-family: var(--mono);
  font-size: 13px;
  font-weight: 700;
  -moz-appearance: textfield;
  appearance: textfield;
}
.qty-add input::-webkit-outer-spin-button,
.qty-add input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.buy .qty-add { height: 48px; }
.paper .qty-add { border-color: rgba(20, 20, 20, 0.28); color: var(--ink); }
.paper .qty-add input { border-left-color: rgba(20, 20, 20, 0.16); border-right-color: rgba(20, 20, 20, 0.16); color: var(--ink); }
.offer { display: inline-flex; flex-wrap: wrap; align-items: baseline; gap: 8px; }
.price .price-now,
.price .price-was {
  font-size: 1em;
  font-weight: 600;
  letter-spacing: -0.04em;
  color: inherit;
}
.price .price-now { color: var(--red); }
.price-was { position: relative; display: inline-block; }
.price-was::after {
  content: "";
  position: absolute;
  left: -2%;
  top: 0;
  width: 104%;
  height: 100%;
  background: linear-gradient(to bottom right, transparent calc(50% - 1px), var(--red) calc(50% - 1px), var(--red) calc(50% + 1px), transparent calc(50% + 1px));
  pointer-events: none;
}
.price-unit { font-family: var(--sans); letter-spacing: 0; font-weight: 500; opacity: 0.7; }
.price-table { width: min(100%, 420px); border-collapse: collapse; margin: 8px 0 18px; }
.price-table caption {
  caption-side: top;
  text-align: left;
  padding-bottom: 8px;
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.price-table th,
.price-table td {
  padding: 8px 0;
  border-top: 1px solid var(--line);
  font-weight: 500;
  text-align: left;
}
.price-table td { text-align: right; font-family: var(--display); }
.price-table tr.is-on th,
.price-table tr.is-on td { color: var(--red); }
.cart-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(300px, 0.75fr);
  gap: 36px;
  align-items: start;
  padding: 8px var(--pad) 88px;
}
.cart-empty, .cart-success { max-width: 36ch; font-size: 18px; }
.cart-line {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 16px 28px;
  align-items: end;
  padding: 22px 0;
  border-top: 1px solid rgba(20, 20, 20, 0.14);
}
.cart-line strong {
  display: block;
  margin-bottom: 8px;
  font-family: var(--display);
  font-size: clamp(22px, 2vw, 32px);
  font-weight: 500;
  letter-spacing: -0.045em;
  line-height: 1;
}
.cart-line-side { display: flex; flex-direction: column; align-items: flex-end; gap: 14px; }
.cart-line-side .offer { font-size: clamp(22px, 2vw, 30px); }
.cart-line-tools { display: flex; align-items: center; gap: 16px; }
.cart-summary {
  position: sticky;
  top: calc(var(--header) + 16px);
  padding: 28px 24px 24px;
  background: #141414;
  color: var(--cream);
}
.cart-summary .kicker { color: var(--cream); }
.cart-summary .form-grid { grid-template-columns: 1fr; max-width: none; }
.cart-summary .muted,
.cart-summary .muted button { color: rgba(244, 241, 234, 0.64); }
.cart-summary .field span { color: rgba(244, 241, 234, 0.72); }
.cart-summary input,
.cart-summary textarea,
.cart-summary select {
  color: var(--cream);
  border-bottom-color: rgba(244, 241, 234, 0.35);
}
.cart-summary .btn-ink { background: var(--cream); color: var(--ink); border-color: var(--cream); }
#cart-total .offer { display: flex; font-size: clamp(36px, 4vw, 56px); margin: 10px 0 16px; }
.tags { display: flex; flex-wrap: wrap; gap: 6px; }
.tag {
  display: inline-flex;
  width: fit-content;
  padding: 4px 8px;
  border: 1px solid currentColor;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.swatch {
  height: 100%;
  min-height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 14px;
}
.swatch strong {
  font-size: clamp(16px, 1.6vw, 24px);
  letter-spacing: -0.05em;
  line-height: 0.92;
  font-weight: 600;
}
.swatch-white { background: var(--cream); color: var(--ink); }
.swatch-black { background: #0d0d0d; color: var(--cream); }
.swatch-plain { background: var(--cream-2); color: var(--ink); }
.empty { padding: 0 var(--pad) 80px; color: var(--muted); }

.product-layout {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: clamp(24px, 4vw, 64px);
  align-items: start;
  padding: 8px var(--pad) 88px;
}
.gallery-main { background: transparent; }
.gallery-main img,
.gallery-main img.cover { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: center; padding: 0; }
.gallery-main .swatch { aspect-ratio: 4 / 5; min-height: 420px; }
.thumbs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-top: 8px; }
.thumbs button { padding: 0; border: 1px solid transparent; background: transparent; }
.thumbs button.is-on { border-color: var(--red); }
.thumbs img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: center; }
.product-copy h1 { font-size: clamp(40px, 5vw, 68px); margin: 8px 0 12px; }
.product-copy .lede { margin-bottom: 18px; }
.buy { display: flex; flex-wrap: wrap; gap: 12px; align-items: end; margin-top: 22px; }
.buy .field { min-width: 180px; }
.specs { margin: 28px 0 0; }
.specs div {
  display: grid;
  grid-template-columns: minmax(120px, 180px) 1fr;
  gap: 12px;
  padding: 12px 0;
  border-top: 1px solid var(--line);
}
.specs dt { color: var(--muted); }
.specs dd { margin: 0; }

.paper { background: var(--cream); color: var(--ink); color-scheme: light; }
.paper .lede, .paper .muted { color: rgba(20, 20, 20, 0.62); }
.paper .btn-ghost { color: var(--ink); border-color: rgba(20, 20, 20, 0.2); }
.block { padding: 8px var(--pad) 42px; }
body[data-page="account"] .page-head { padding-bottom: 10px; }
body[data-page="account"] .page-head h1 { font-size: clamp(36px, 5vw, 64px); }
body[data-page="account"] .page-head .lede { max-width: 42ch; }
.account-tabs {
  display: flex;
  flex-wrap: nowrap;
  gap: 8px;
  position: sticky;
  top: var(--header);
  z-index: 4;
  padding: 10px var(--pad) 12px;
  background: var(--cream);
  overflow-x: auto;
}
.account-tabs .btn {
  height: 40px;
  min-width: 0;
  padding: 0 14px;
  color: var(--ink);
  border-color: rgba(20, 20, 20, 0.22);
  background: transparent;
}
.account-panel .btn,
.account-panel summary,
.account-panel .photo-add,
.account-panel .section-card { scroll-margin-top: 210px; }
.account-tabs .btn.is-on {
  background: var(--ink);
  color: var(--cream);
  border-color: var(--ink);
}
.scene-picks { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.scene-picks .btn.is-on { background: var(--ink); color: var(--cream); border-color: var(--ink); }
.policy-copy { max-width: 68ch; }
.policy-copy p + p { margin-top: 14px; }
.paper a { text-decoration: underline; text-underline-offset: 3px; }
.block h2 { font-size: clamp(28px, 3vw, 40px); margin-bottom: 16px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 6px 28px; max-width: 880px; }
.wide { grid-column: 1 / -1; }
.field { display: flex; flex-direction: column; gap: 6px; padding: 8px 0; }
.field span, .check {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
input, textarea, select {
  width: 100%;
  padding: 12px 0;
  border: 0;
  border-bottom: 1px solid rgba(20, 20, 20, 0.28);
  border-radius: 0;
  background: transparent;
}
.product-copy input, .product-copy select, .product-copy textarea {
  border-bottom-color: var(--line);
}
textarea { min-height: 96px; resize: vertical; }
.check { display: flex; align-items: center; gap: 10px; text-transform: none; letter-spacing: 0; font-size: 15px; font-weight: 600; }
.check input { width: auto; }
.form-actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-top: 8px; }
.edit {
  border-top: 1px solid rgba(20, 20, 20, 0.14);
  padding: 14px 0;
}
.edit summary { cursor: pointer; font-size: 20px; letter-spacing: -0.03em; }
.edit summary span { color: rgba(20, 20, 20, 0.55); font-size: 14px; }
.panel-note { max-width: 62ch; margin: -4px 0 18px; color: rgba(20, 20, 20, 0.62); }
.section-list, .link-editor, .section-form { max-width: 760px; }
.section-card {
  padding: 16px 0 8px;
  border-top: 1px solid rgba(20, 20, 20, 0.14);
}
.section-card h3 { font-size: 28px; margin: 0 0 6px; }
.place-picks {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  align-items: center;
  padding: 8px 0 4px;
}
.place-picks > span {
  width: 100%;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.catalog-group { margin-top: 28px; max-width: 880px; }
.catalog-group h3 { font-size: 28px; margin: 0 0 4px; }
.field-label {
  display: block;
  margin-top: 8px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.photo-edit { display: flex; flex-wrap: wrap; gap: 12px; padding: 10px 0; }
.photo-edit figure { width: 96px; display: grid; gap: 6px; }
.photo-edit img { width: 96px; height: 120px; object-fit: cover; background: #fff; }
.photo-edit .btn { height: 32px; padding: 0 8px; font-size: 11px; }
.photo-add {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr) auto;
  gap: 12px 16px;
  align-items: end;
}
.menu-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 0;
  border-top: 1px solid rgba(20, 20, 20, 0.14);
  cursor: pointer;
}
.menu-row small {
  display: block;
  margin-top: 3px;
  color: rgba(20, 20, 20, 0.5);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.switch { position: relative; width: 44px; height: 26px; flex: 0 0 auto; }
.switch input { position: absolute; inset: 0; z-index: 1; width: 44px; height: 26px; margin: 0; opacity: 0.02; cursor: pointer; }
.switch i { display: block; height: 26px; border: 1px solid rgba(20, 20, 20, 0.35); pointer-events: none; }
.switch i::after {
  content: "";
  position: absolute;
  top: 4px;
  left: 4px;
  width: 16px;
  height: 16px;
  background: rgba(20, 20, 20, 0.35);
}
.switch input:checked + i { background: var(--ink); border-color: var(--ink); }
.switch input:checked + i::after { left: 22px; background: var(--cream); }
.switch input:focus-visible + i { outline: 2px solid var(--red); outline-offset: 2px; }
.orders { display: grid; gap: 12px; max-width: 880px; }
.order {
  padding: 14px 0;
  border-top: 1px solid rgba(20, 20, 20, 0.14);
}
.order ul { margin: 8px 0 0; padding-left: 18px; }
.error { color: var(--red); }

.footer-wrap { background: var(--bg); color: var(--cream); color-scheme: dark; }
.footer {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr;
  gap: 28px;
  padding: 42px var(--pad) 20px;
  border-top: 1px solid var(--line);
}
.footer img { width: 180px; height: auto; }
.footer nav, .footer .footer-actions { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; }
.footer .footer-actions a {
  text-align: left;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 8px var(--pad) 28px;
  color: var(--muted);
  font-size: 13px;
}

dialog {
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--ink);
  color-scheme: light;
  max-width: calc(100vw - 32px);
}
dialog::backdrop { background: rgba(8, 8, 8, 0.62); }
#auth {
  width: min(420px, calc(100vw - 32px));
  max-height: calc(100dvh - 32px);
  overflow: auto;
  padding: 22px 22px 24px;
}
#auth form {
  display: flex;
  flex-direction: column;
  gap: 2px;
  width: 100%;
  min-width: 0;
}
#auth .sheet-head {
  width: 100%;
  min-width: 0;
  align-items: flex-start;
  margin-bottom: 8px;
}
#auth h2 {
  flex: 1;
  min-width: 0;
  margin: 0;
  font-size: 26px;
  line-height: 1.15;
  letter-spacing: -0.04em;
  overflow-wrap: break-word;
}
#auth .muted { color: rgba(20, 20, 20, 0.62); }
#auth .field,
#auth .form-actions,
#auth .error { width: 100%; min-width: 0; }
#auth .btn-ghost {
  flex: none;
  height: 40px;
  padding: 0 12px;
  color: var(--ink);
  border-color: rgba(20, 20, 20, 0.22);
}
#auth .form-actions { margin-top: 12px; }
.sheet {
  width: min(680px, calc(100vw - 32px));
  max-height: min(86dvh, 860px);
  overflow: auto;
  background: var(--cream);
  color: var(--ink);
  padding: 28px 28px 32px;
}
.sheet h2 { font-size: clamp(32px, 4vw, 48px); margin-bottom: 12px; }
.sheet p + p, .sheet li { margin-top: 10px; }
.sheet ol, .sheet ul { margin: 8px 0 0; padding-left: 18px; }
.sheet-head { display: flex; justify-content: space-between; gap: 16px; align-items: flex-start; margin-bottom: 8px; }
dialog.drawer {
  width: min(440px, 100vw);
  height: 100dvh;
  max-height: 100dvh;
  margin: 0 0 0 auto;
  position: fixed;
  inset: 0 0 0 auto;
}
.line {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px 12px;
  padding: 12px 0;
  border-top: 1px solid rgba(20, 20, 20, 0.14);
}
.qty { display: flex; align-items: center; gap: 8px; }
.qty button {
  width: 32px;
  height: 32px;
  border: 1px solid rgba(20, 20, 20, 0.2);
  background: transparent;
}
.qty button[data-action="remove-line"] {
  width: auto;
  padding: 0 10px;
  font-size: 13px;
}
.contact-list { display: grid; gap: 8px; margin: 12px 0 18px; }
.contact-list div { display: grid; grid-template-columns: 110px 1fr; gap: 10px; }
.contact-board {
  display: grid;
  gap: 0;
  max-width: 760px;
  padding: 0 var(--pad) 72px;
}
.contact-board a,
.contact-board p {
  font-family: var(--display);
  font-size: clamp(11px, 1.6vw, 18px);
  letter-spacing: -0.04em;
  line-height: 1.05;
}
.contact-board a:hover { color: var(--red); }
.contact-board article {
  display: grid;
  gap: 8px;
  padding: 18px 0;
  border-top: 1px solid rgba(20, 20, 20, 0.14);
}

.cookie {
  position: fixed;
  z-index: 30;
  left: auto;
  right: var(--pad);
  bottom: 16px;
  width: min(420px, calc(100vw - 2 * var(--pad)));
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
  padding: 16px 18px;
  background: var(--cream);
  color: var(--ink);
  color-scheme: light;
}
.cookie p { max-width: 70ch; }
.cookie[hidden] { display: none; }

.cart-dock {
  position: fixed;
  z-index: 32;
  right: var(--pad);
  bottom: 16px;
  display: grid;
  grid-template-columns: auto 52px;
  align-items: stretch;
  width: max-content;
  max-width: calc(100vw - 2 * var(--pad));
  height: 52px;
  background: var(--cream);
  color: var(--ink);
  text-decoration: none;
}
.cart-dock[hidden] { display: none; }
.cart-dock > span:first-child {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 16px;
  font-family: var(--mono);
  letter-spacing: 0.14em;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  white-space: nowrap;
}
.cart-dock-arrow {
  display: grid;
  place-items: center;
  border-left: 1px solid rgba(20, 20, 20, 0.16);
}
.cart-dock-arrow svg { display: block; }
body:has(#cookie:not([hidden])) .cart-dock { bottom: 112px; }
body[data-page="contacts"] .cart-dock,
body[data-page="account"] .cart-dock {
  background: var(--ink);
  color: var(--cream);
}
body[data-page="contacts"] .cart-dock-arrow,
body[data-page="account"] .cart-dock-arrow { border-left-color: rgba(244, 241, 234, 0.16); }

@media (max-width: 900px) {
  :root { --header: auto; }
  .brand img { width: 112px; }
  .hero, .feature, .product-layout, .trio, .footer, .form-grid {
    grid-template-columns: 1fr;
  }
  .catalog { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cart-layout { grid-template-columns: 1fr; }
  .cart-summary { position: static; }
  .cart-line { grid-template-columns: 1fr; }
  .cart-line-side { align-items: flex-start; }
  .feature.reverse .feature-media { order: -1; }
  .hero { min-height: auto; padding-top: 12px; }
  .header .home-menu .btn { min-width: 0; height: 40px; padding: 0 10px; }
  .hero-pair { grid-template-columns: 1fr; }
  .hero-copy { justify-self: center; padding-left: 0; text-align: center; }
  .hero-copy .lede { margin-inline: auto; }
  .hero-routes { justify-content: center; }
  .spin-stage { width: min(100%, 360px); }
  .spin-stage.is-bag { width: min(100%, 432px); }
  .brew { justify-self: start; width: min(100%, 520px); }
  .machine-face { grid-template-columns: 1.05fr 0.85fr minmax(76px, 0.7fr); min-height: 240px; }
  .line { grid-template-columns: 1fr; }
  .reel { grid-template-columns: 40px minmax(0, 1fr) 40px; gap: 8px; }
  .reel-btn { width: 40px; height: 40px; }
  .menu-btn { height: 40px; min-width: 0; grid-template-columns: 40px; }
  .menu-ico { border-left: 0; }
  .menu-btn span:first-child {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
  }
  .cart-word { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .cookie { left: var(--pad); right: var(--pad); width: auto; flex-direction: column; align-items: stretch; }
  .specs div, .contact-list div { grid-template-columns: 1fr; gap: 2px; }
  .account-tabs { top: 68px; }
  .photo-add { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    scroll-behavior: auto !important;
    transition: none !important;
    animation: none !important;
  }
  .crema { height: 72%; }
  .stream { background-position: 0 0; }
}
