:root {
  --bg: #f2f2f7;
  --card: #fff;
  --ink: #0b0b0f;
  --ink2: rgba(60, 60, 67, .86);
  --ink3: rgba(60, 60, 67, .74);
  --sep: rgba(60, 60, 67, .13);
  --fill: rgba(120, 120, 128, .12);
  --fill2: rgba(120, 120, 128, .2);
  --accent: #5b34f2;
  --accent-soft: #ece7ff;
  --glass: rgba(255, 255, 255, .66);
  --r-xl: 36px;
  --r-lg: 26px;
  --r-md: 18px;
  --shadow: 0 1px 2px rgba(0, 0, 0, .04), 0 12px 32px rgba(0, 0, 0, .06);
  --ease: cubic-bezier(.32, .72, 0, 1);
  --btn: #0b0b0f;
  --btn-fg: #fff;
  --panel: #0b0b0f;
  --seg-on: #fff;
  --ghost: #8e8e93;
  --glass-border: rgba(255, 255, 255, .75);
  --glass-hi: rgba(255, 255, 255, .9);
  --sheet: rgba(248, 248, 252, .92);
  --ok: #1f9d4c;
  color-scheme: light;
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Inter", "Helvetica Neue", Arial, sans-serif;
}

:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #000;
  --card: #1c1c1e;
  --ink: #f5f5f7;
  --ink2: rgba(235, 235, 245, .72);
  --ink3: rgba(235, 235, 245, .56);
  --sep: rgba(84, 84, 88, .6);
  --fill: rgba(120, 120, 128, .24);
  --fill2: rgba(120, 120, 128, .38);
  --accent: #a391ff;
  --accent-soft: rgba(124, 92, 255, .24);
  --glass: rgba(38, 38, 44, .64);
  --shadow: 0 0 0 1px rgba(255, 255, 255, .06);
  --btn: #f5f5f7;
  --btn-fg: #0b0b0f;
  --panel: #1c1c1e;
  --seg-on: #636366;
  --ghost: #7c7c84;
  --glass-border: rgba(255, 255, 255, .14);
  --glass-hi: rgba(255, 255, 255, .1);
  --sheet: rgba(28, 28, 30, .9);
  --ok: #30d158;
}
[data-theme="dark"] .ph img, [data-theme="dark"] .cat img, [data-theme="dark"] .hero-art img { mix-blend-mode: normal; }
[data-theme="dark"] .hero-art { background: #1c1c1e; }
[data-theme="dark"] :is(.ph, .stage, .thumbs, .line, .bundle, .cat, .hero-art) img { filter: brightness(.86); }
[data-theme="dark"] .card.out .ph img { filter: brightness(.86) grayscale(.4); }
[data-theme="dark"] .badge { color: #0b0b0f; }

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font: 400 17px/1.45 var(--font); letter-spacing: -.01em;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input { font: inherit; color: inherit; letter-spacing: inherit; }
button { cursor: pointer; border: 0; background: none; padding: 0; }
h1, h2, h3, p { margin: 0; }
svg { width: 22px; height: 22px; flex: none; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 12px; }
[hidden] { display: none !important; }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 16px; top: 16px; z-index: 100; background: #fff; padding: 10px 16px; border-radius: 12px; }

.wrap { width: min(1180px, 100% - 40px); margin-inline: auto; }
.muted { color: var(--ink2); }
.eyebrow { font-size: 13px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--accent); }

/* Liquid glass */
.glass {
  background: var(--glass);
  -webkit-backdrop-filter: blur(28px) saturate(190%);
  backdrop-filter: blur(28px) saturate(190%);
  border: 1px solid var(--glass-border);
  box-shadow: 0 10px 36px rgba(0, 0, 0, .1), inset 0 1px 0 var(--glass-hi), inset 0 -1px 0 rgba(0, 0, 0, .03);
}

/* Top bar */
.topbar {
  position: sticky; top: 12px; z-index: 40;
  width: min(1180px, 100% - 24px); margin: 12px auto 0;
  height: 60px; padding: 0 10px 0 24px; border-radius: 999px;
  display: flex; align-items: center; gap: 16px;
}
.logo { padding: 8px 0; font-weight: 900; font-size: 24px; letter-spacing: -.02em; transform: scaleX(1.22); transform-origin: left; display: inline-block; }
.logo-lg { font-size: 34px; margin-bottom: 6px; padding: 0; }
.icon-btn.back { display: none; }
.back svg { transform: rotate(180deg); }
.topnav { display: flex; gap: 4px; margin: 0 auto; }
.topnav a { padding: 9px 16px; border-radius: 999px; font-size: 15px; font-weight: 500; color: var(--ink2); transition: background .2s, color .2s; }
.topnav a:hover { background: var(--fill); color: var(--ink); }
.topnav a.on { background: var(--btn); color: var(--btn-fg); }
.actions { display: flex; gap: 2px; }
.icon-btn { position: relative; width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; transition: background .2s, transform .2s var(--ease); }
.icon-btn:hover { background: var(--fill); }
.icon-btn:active { transform: scale(.92); }
.icon-btn.fill { background: var(--fill); width: 34px; height: 34px; }
.icon-btn.fill svg { width: 16px; height: 16px; color: var(--ink2); }
.badge {
  position: absolute; top: 3px; right: 1px; min-width: 18px; height: 18px; padding: 0 5px;
  border-radius: 999px; background: var(--accent); color: #fff;
  font: 700 11px/18px var(--font); text-align: center; font-style: normal;
}

/* Buttons */
.pill {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 52px; padding: 0 26px; border-radius: 999px;
  font-size: 17px; font-weight: 600; white-space: nowrap;
  transition: transform .25s var(--ease), background .2s, opacity .2s;
}
.pill:active { transform: scale(.96); }
.pill svg { width: 19px; height: 19px; }
.pill-dark { background: var(--btn); color: var(--btn-fg); }
.pill-dark:hover { opacity: .86; }
.pill-accent { background: var(--accent); color: #fff; }
.pill-fill { background: var(--fill); }
.pill-fill:hover { background: var(--fill2); }
.pill-glass { background: rgba(255, 255, 255, .7); -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px); border: 1px solid rgba(255, 255, 255, .8); }
.pill-plain { color: var(--accent); padding: 0 8px; height: 44px; }
.pill-sm { height: 40px; padding: 0 16px; font-size: 15px; }
.pill-block { width: 100%; }

/* Views */
main { min-height: 70vh; padding: 28px 0 0; outline: none; }
.view { animation: rise .5s var(--ease); }
@keyframes rise { from { opacity: 0; transform: translateY(14px); } }
section { margin-top: 72px; }
.sec-head { display: flex; align-items: end; justify-content: space-between; gap: 16px; margin-bottom: 22px; }
.sec-head h2, .title-lg { font-size: clamp(28px, 4vw, 40px); line-height: 1.08; font-weight: 700; letter-spacing: -.03em; }
.sec-head a { color: var(--accent); font-weight: 500; display: inline-flex; align-items: center; gap: 2px; white-space: nowrap; min-height: 44px; }
.sec-head a svg { width: 16px; height: 16px; }
.large-title { font-size: clamp(34px, 6vw, 56px); line-height: 1.04; font-weight: 800; letter-spacing: -.035em; }
.lead { font-size: clamp(17px, 2vw, 21px); color: var(--ink2); max-width: 46ch; }

/* Hero */
.hero {
  display: grid; grid-template-columns: 1.05fr .95fr; gap: 20px; align-items: stretch;
}
.hero-copy {
  background: var(--card); border-radius: var(--r-xl); padding: clamp(28px, 5vw, 64px);
  display: flex; flex-direction: column; justify-content: center; gap: 22px; box-shadow: var(--shadow);
}
.hero-copy h1 { font-size: clamp(40px, 6.4vw, 84px); line-height: .95; font-weight: 800; letter-spacing: -.045em; text-transform: uppercase; }
.hero-copy h1 span { color: var(--ghost); display: block; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 10px; }
.hero-art {
  position: relative; border-radius: var(--r-xl); overflow: hidden; min-height: 520px;
  background: radial-gradient(120% 90% at 85% 10%, #cfc3ff 0%, transparent 55%), radial-gradient(90% 80% at 10% 95%, #bfe0ff 0%, transparent 60%), #e9e7f4;
  display: grid; place-items: center;
}
.hero-art img { width: 100%; height: 100%; object-fit: cover; mix-blend-mode: multiply; position: absolute; inset: 0; }
.chip {
  position: absolute; padding: 10px 16px; border-radius: 999px; font-size: 15px; font-weight: 600;
  display: inline-flex; align-items: center; gap: 8px;
}
.chip svg { width: 17px; height: 17px; color: var(--accent); }
.chip.c1 { top: 22px; left: 22px; }
.chip.c2 { bottom: 78px; right: 22px; }
.chip.c3 { bottom: 22px; left: 22px; }

/* Product grid */
.grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.card {
  position: relative; background: var(--card); border-radius: var(--r-lg); padding: 10px;
  display: flex; flex-direction: column; box-shadow: var(--shadow);
  transition: transform .4s var(--ease), box-shadow .4s;
}
.card:hover { transform: translateY(-4px); box-shadow: 0 2px 4px rgba(0, 0, 0, .04), 0 22px 44px rgba(0, 0, 0, .1); }
.ph { position: relative; display: block; aspect-ratio: 1; border-radius: var(--r-md); overflow: hidden; background: #f4f4f6; }
.ph img { width: 100%; height: 100%; object-fit: cover; mix-blend-mode: multiply; transition: transform .6s var(--ease); }
.card:hover .ph img { transform: scale(1.04); }
.card.out .ph img { opacity: .5; filter: grayscale(.4); }
.card-body { padding: 14px 8px 8px; display: flex; flex-direction: column; gap: 4px; flex: 1; }
.kind { font-size: 13px; color: var(--ink3); font-weight: 500; }
.card h3 { font-size: 18px; line-height: 1.2; font-weight: 600; letter-spacing: -.02em; }
.card h3 a::after { content: ""; position: absolute; inset: 0; border-radius: var(--r-lg); }
.card-foot { margin-top: auto; padding-top: 12px; display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.price { font-size: 19px; font-weight: 700; letter-spacing: -.02em; white-space: nowrap; }
.split { font-size: 12px; color: var(--ink3); }
.round { position: relative; z-index: 2; width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: var(--btn); color: var(--btn-fg); transition: transform .25s var(--ease), background .2s; }
.round:active { transform: scale(.88); }
.round.soft { background: var(--fill); color: var(--ink); }
.round.done { background: var(--accent); color: #fff; }
.fav { position: absolute; z-index: 2; top: 18px; right: 18px; width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; background: rgba(255, 255, 255, .72); color: #0b0b0f; -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); transition: transform .25s var(--ease); }
.fav:active { transform: scale(.85); }
.fav::after { content: ""; position: absolute; inset: -5px; }
.fav svg { width: 19px; height: 19px; }
.fav.on { color: #ff2d55; }
.tag { position: absolute; z-index: 2; bottom: 10px; left: 10px; white-space: nowrap; padding: 6px 12px; border-radius: 999px; font-size: 12px; font-weight: 600; background: rgba(255, 255, 255, .78); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); color: rgba(60, 60, 67, .85); }
.tag.new { background: #0b0b0f; color: #fff; }

/* Day / Night */
.trio { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.step { color: #0b0b0f; border-radius: var(--r-lg); padding: 28px; min-height: 300px; display: flex; flex-direction: column; gap: 10px; position: relative; overflow: hidden; box-shadow: var(--shadow); }
.step .ico { width: 52px; height: 52px; border-radius: 16px; display: grid; place-items: center; margin-bottom: auto; }
.step .ico svg { width: 26px; height: 26px; }
.step h3 { font-size: 26px; font-weight: 700; letter-spacing: -.03em; }
.step p { color: inherit; opacity: .78; font-size: 16px; }
.step a { font-weight: 600; display: inline-flex; align-items: center; gap: 2px; min-height: 44px; }
.step a svg { width: 15px; height: 15px; }
.step.day { background: linear-gradient(160deg, #fff7df, #ffe9b8); }
.step.day .ico { background: #fff; color: #e69500; }
.step.night { background: linear-gradient(160deg, #1d1b3a, #0c0b18); color: #fff; }
.step.night .ico { background: rgba(255, 255, 255, .12); color: #c9bfff; }
.step.white { background: linear-gradient(160deg, #efeaff, #d9ceff); }
.step.white .ico { background: #fff; color: var(--accent); }

/* Why */
.why { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.why div { background: var(--card); border-radius: var(--r-lg); padding: 24px; box-shadow: var(--shadow); }
.why svg { width: 28px; height: 28px; color: var(--accent); margin-bottom: 18px; }
.why h3 { font-size: 18px; font-weight: 600; letter-spacing: -.02em; margin-bottom: 6px; }
.why p { font-size: 15px; color: var(--ink2); }

/* Categories */
.duo { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.cat { position: relative; border-radius: var(--r-xl); overflow: hidden; aspect-ratio: 16/10; background: #ececf1; display: block; box-shadow: var(--shadow); }
.cat img { width: 100%; height: 100%; object-fit: cover; mix-blend-mode: multiply; transition: transform .7s var(--ease); }
.cat:hover img { transform: scale(1.05); }
.cat .label { position: absolute; left: 16px; bottom: 16px; right: 16px; border-radius: 22px; padding: 16px 16px 16px 22px; display: flex; align-items: center; justify-content: space-between; }
.cat .label b { font-size: 22px; font-weight: 700; letter-spacing: -.02em; display: block; }
.cat .label small { font-size: 14px; color: var(--ink2); }

/* Inset list (iOS grouped) */
.list { background: var(--card); border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--shadow); }
.row { display: flex; align-items: center; gap: 14px; padding: 16px 20px; position: relative; }
.row + .row::before { content: ""; position: absolute; top: 0; left: 68px; right: 0; height: 1px; background: var(--sep); }
.row .ri { width: 34px; height: 34px; border-radius: 10px; background: var(--accent-soft); color: var(--accent); display: grid; place-items: center; flex: none; }
.row .ri svg { width: 19px; height: 19px; }
.row b { font-weight: 600; display: block; }
.row small { color: var(--ink2); font-size: 14px; display: block; }
.row .val { margin-left: auto; color: var(--ink2); font-size: 15px; text-align: right; }
.trio-list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }

/* UGC */
.rail { display: flex; gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 4px 20px 20px; margin: 0 -20px; scrollbar-width: none; }
.rail::-webkit-scrollbar { display: none; }
.rail figure { flex: 0 0 min(260px, 62vw); margin: 0; aspect-ratio: 9/14; border-radius: var(--r-lg); overflow: hidden; scroll-snap-align: start; background: #ddd; box-shadow: var(--shadow); }
.rail img { width: 100%; height: 100%; object-fit: cover; }

/* Subscribe */
.sub { background: var(--panel); color: #fff; border-radius: var(--r-xl); padding: clamp(28px, 5vw, 56px); display: grid; grid-template-columns: 1fr 1fr; gap: 28px; align-items: center; }
.sub h2 { font-size: clamp(28px, 4vw, 44px); font-weight: 700; letter-spacing: -.03em; line-height: 1.05; }
.sub p { color: rgba(255, 255, 255, .7); margin-top: 10px; }
.sub form { display: grid; gap: 12px; }
.field { display: flex; gap: 8px; background: rgba(255, 255, 255, .12); border-radius: 999px; padding: 6px; }
.field input { flex: 1; min-width: 0; background: none; border: 0; outline: 0; padding: 0 18px; color: #fff; }
.field input::placeholder { color: rgba(255, 255, 255, .5); }
.field .pill { background: #fff; color: #0b0b0f; height: 46px; }
.check { display: flex; gap: 12px; align-items: flex-start; font-size: 13px; color: rgba(255, 255, 255, .7); cursor: pointer; }
.check input { appearance: none; flex: none; width: 24px; height: 24px; border-radius: 50%; border: 2px solid rgba(255, 255, 255, .6); margin: 0; display: grid; place-items: center; cursor: pointer; transition: .2s; }
.check input:checked { background: var(--accent); border-color: var(--accent); }
.check input:checked::after { content: ""; width: 10px; height: 6px; border: solid #fff; border-width: 0 0 2px 2px; transform: rotate(-45deg) translateY(-1px); }

/* Segmented control */
.seg { display: inline-flex; padding: 3px; border-radius: 999px; background: var(--fill); gap: 2px; max-width: 100%; overflow-x: auto; scrollbar-width: none; }
.seg a { padding: 9px 18px; border-radius: 999px; font-size: 15px; font-weight: 500; white-space: nowrap; transition: .25s var(--ease); }
.seg a.on { background: var(--seg-on); box-shadow: 0 2px 8px rgba(0, 0, 0, .12); font-weight: 600; }
.page-head { display: flex; flex-direction: column; gap: 18px; margin: 20px 0 28px; }
.empty { background: var(--card); border-radius: var(--r-lg); padding: 48px 24px; text-align: center; color: var(--ink2); box-shadow: var(--shadow); display: grid; gap: 14px; justify-items: center; }
.empty svg { width: 40px; height: 40px; color: var(--ink3); }

/* Product page */
.crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; font-size: 14px; color: var(--ink3); margin: 2px 4px 6px; }
.crumbs a { padding: 12px 0; }
.crumbs a:hover { color: var(--ink); }
.pdp { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: 32px; align-items: start; }
.gallery { position: sticky; top: 92px; display: grid; grid-template-columns: 76px 1fr; gap: 12px; }
.thumbs { display: flex; flex-direction: column; gap: 10px; }
.thumbs button { aspect-ratio: 1; border-radius: 16px; overflow: hidden; background: #fff; border: 2px solid transparent; padding: 0; transition: .2s; }
.thumbs button.on { border-color: var(--ink); }
.thumbs img { width: 100%; height: 100%; object-fit: cover; }
.stage { aspect-ratio: 1; border-radius: var(--r-xl); overflow: hidden; background: #fff; box-shadow: var(--shadow); position: relative; }
.stage img { width: 100%; height: 100%; object-fit: cover; }
.buy { display: flex; flex-direction: column; gap: 18px; }
.buy h1 { font-size: clamp(30px, 4vw, 44px); line-height: 1.05; font-weight: 800; letter-spacing: -.035em; }
.tags { display: flex; flex-wrap: wrap; gap: 6px; }
.tags span { padding: 6px 12px; border-radius: 999px; background: var(--card); font-size: 13px; font-weight: 500; color: var(--ink2); }
.stock { display: inline-flex; align-items: center; gap: 8px; font-size: 15px; font-weight: 500; }
.stock i { width: 8px; height: 8px; border-radius: 50%; background: var(--ok); }
.stock.no i { background: #ff9f0a; }
.pricebox { background: var(--card); border-radius: var(--r-lg); padding: 22px; box-shadow: var(--shadow); display: grid; gap: 16px; }
.pricebox .price { font-size: 34px; font-weight: 800; }
.pricebox .split { font-size: 14px; color: var(--ink2); }
.buyrow { display: flex; gap: 10px; align-items: center; }
.buyrow .pill { flex: 1; }
.stepper { display: inline-flex; align-items: center; background: var(--fill); border-radius: 999px; height: 52px; padding: 0 4px; }
.stepper button { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; }
.stepper button:active { background: var(--fill2); }
.stepper svg { width: 18px; height: 18px; }
.stepper output { min-width: 26px; text-align: center; font-weight: 600; font-variant-numeric: tabular-nums; }
.favbig { width: 52px; height: 52px; border-radius: 50%; background: var(--fill); display: grid; place-items: center; flex: none; }
.favbig.on { color: #ff2d55; }
.bundle { background: var(--card); border-radius: var(--r-lg); padding: 14px; display: flex; align-items: center; gap: 14px; box-shadow: var(--shadow); }
.bundle img { width: 64px; height: 64px; border-radius: 14px; object-fit: cover; background: #f4f4f6; }
.bundle div { flex: 1; min-width: 0; }
.bundle small { color: var(--ink3); font-size: 13px; display: block; }
.bundle b { font-weight: 600; }
.block h2 { font-size: 22px; font-weight: 700; letter-spacing: -.02em; margin: 8px 4px 12px; }
.prose { background: var(--card); border-radius: var(--r-lg); padding: 22px; box-shadow: var(--shadow); color: var(--ink2); display: grid; gap: 12px; }
.prose ul, .prose ol { margin: 0; padding-left: 20px; display: grid; gap: 6px; }
.prose strong { color: var(--ink); font-weight: 600; }
.note { font-size: 13px; color: var(--ink3); }
.specs .row { padding: 14px 20px; }
.specs .row + .row::before { left: 20px; }
.stars { display: flex; gap: 2px; color: var(--ink3); }
.buybar { display: none; }

/* About */
.about-hero { background: var(--panel); color: #fff; border-radius: var(--r-xl); padding: clamp(32px, 7vw, 96px); display: grid; gap: 20px; position: relative; overflow: hidden; }
.about-hero::after { content: ""; position: absolute; width: 60%; aspect-ratio: 1; right: -15%; top: -40%; background: radial-gradient(circle, #6a45ff 0%, transparent 65%); opacity: .7; }
.about-hero > * { position: relative; z-index: 1; }
.about-hero .lead { color: rgba(255, 255, 255, .75); }
.facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.facts div { background: var(--card); border-radius: var(--r-lg); padding: 26px; box-shadow: var(--shadow); }
.facts b { font-size: 40px; font-weight: 800; letter-spacing: -.04em; display: block; line-height: 1; margin-bottom: 8px; }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }

/* Footer */
.footer { margin-top: 96px; padding: 56px 0 130px; background: var(--card); border-radius: var(--r-xl) var(--r-xl) 0 0; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; }
.footer h3 { font-size: 13px; font-weight: 600; text-transform: uppercase; letter-spacing: .06em; color: var(--ink3); margin-bottom: 14px; }
.footer nav a, .footer-grid > div > a { display: block; padding: 10px 0; color: var(--ink2); }
.footer nav a:hover { color: var(--ink); }
.footer .big-link { font-size: 24px; font-weight: 700; color: var(--ink); letter-spacing: -.02em; }
.socials { margin-top: 18px; display: flex; flex-wrap: wrap; gap: 8px; }
.socials .pill { height: 44px; padding: 0 18px; font-size: 15px; }
.fn { flex-basis: 100%; }
.legal { margin-top: 40px; padding-top: 22px; border-top: 1px solid var(--sep); display: flex; flex-wrap: wrap; gap: 8px 22px; font-size: 13px; color: var(--ink3); }
.legal a { padding: 8px 0; }
.legal a:hover { color: var(--ink); }
.legal { align-items: center; }

/* Tab bar (mobile) */
.tabbar { display: none; }

/* Sheets */
.scrim { position: fixed; inset: 0; z-index: 50; background: rgba(0, 0, 0, .28); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); animation: fade .3s; }
@keyframes fade { from { opacity: 0; } }
.sheet {
  position: fixed; z-index: 60; top: 12px; right: 12px; bottom: 12px; width: min(440px, 100% - 24px);
  background: var(--sheet); -webkit-backdrop-filter: blur(40px) saturate(180%); backdrop-filter: blur(40px) saturate(180%);
  border-radius: var(--r-xl); border: 1px solid var(--glass-border); box-shadow: 0 30px 80px rgba(0, 0, 0, .25);
  display: flex; flex-direction: column; animation: slidein .5s var(--ease);
}
@keyframes slidein { from { transform: translateX(110%); } }
.sheet-top { top: 12px; bottom: auto; left: 50%; right: auto; transform: translateX(-50%); width: min(640px, 100% - 24px); max-height: 80vh; animation: dropin .45s var(--ease); }
@keyframes dropin { from { transform: translate(-50%, -30px); opacity: 0; } }
.grabber { display: none; width: 38px; height: 5px; border-radius: 3px; background: var(--fill2); margin: 8px auto 0; }
.sheet-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 20px 20px 12px; }
.sheet-head h2 { font-size: 28px; font-weight: 800; letter-spacing: -.03em; }
.sheet-body { padding: 4px 20px 20px; overflow-y: auto; display: flex; flex-direction: column; gap: 14px; flex: 1; }
.searchfield { flex: 1; display: flex; align-items: center; gap: 8px; background: var(--fill); border-radius: 14px; padding: 0 12px; height: 44px; }
.searchfield svg { width: 18px; height: 18px; color: var(--ink3); }
.searchfield input { flex: 1; border: 0; outline: 0; background: none; min-width: 0; }
.line { display: flex; gap: 12px; align-items: center; padding: 12px; }
.line + .line { border-top: 1px solid var(--sep); }
.line img { width: 60px; height: 60px; border-radius: 14px; object-fit: cover; background: #f4f4f6; flex: none; }
.line .info { flex: 1; min-width: 0; }
.line .info b { display: block; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.line .info small { color: var(--ink3); font-size: 13px; }
.line .stepper { height: 36px; }
.line .stepper button { width: 30px; height: 30px; }
.line .stepper svg { width: 14px; height: 14px; }
.total { margin-top: auto; display: grid; gap: 12px; padding-top: 8px; }
.total div { display: flex; justify-content: space-between; align-items: baseline; }
.total strong { font-size: 26px; font-weight: 800; letter-spacing: -.03em; }

/* Cookie + toast */
.cookie { position: fixed; z-index: 45; left: 50%; bottom: 16px; transform: translateX(-50%); border-radius: 999px; padding: 8px 8px 8px 20px; display: flex; align-items: center; gap: 14px; font-size: 14px; white-space: nowrap; max-width: calc(100% - 24px); }
.cookie span { overflow: hidden; text-overflow: ellipsis; }
.toast { position: fixed; z-index: 80; left: 50%; top: 84px; transform: translateX(-50%); border-radius: 999px; padding: 12px 20px; font-size: 15px; font-weight: 500; max-width: calc(100% - 24px); text-align: center; animation: dropin .4s var(--ease); }

@media (max-width: 1000px) {
  .grid { grid-template-columns: repeat(3, 1fr); }
  .why { grid-template-columns: repeat(2, 1fr); }
  .topnav a { padding: 9px 11px; }
}

@media (max-width: 760px) {
  body { font-size: 16px; }
  .wrap { width: calc(100% - 32px); }
  .topbar { top: 8px; margin-top: 8px; height: 52px; padding: 0 4px 0 20px; justify-content: space-between; }
  .topnav, .only-desktop { display: none; }
  .logo { font-size: 21px; }
  main { padding-top: 16px; }
  section { margin-top: 52px; }
  .hero { grid-template-columns: 1fr; gap: 12px; }
  .hero-art { min-height: 0; aspect-ratio: 16/11; order: -1; }
  .hero-copy { padding: 22px 20px; gap: 12px; }
  .hero-copy h1 { font-size: 36px; }
  .hero-copy .lead { font-size: 16px; }
  .hero-cta { flex-wrap: nowrap; gap: 8px; }
  .hero-cta .pill { flex: 1; height: 50px; padding: 0 10px; font-size: 16px; }
  .chip { font-size: 13px; padding: 8px 13px; }
  .chip.c2 { bottom: 64px; }
  .grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .card { border-radius: 22px; padding: 8px; }
  .ph { border-radius: 16px; }
  .card-body { padding: 10px 6px 6px; }
  .card h3 { font-size: 16px; }
  .kind { font-size: 12px; }
  .price { font-size: 17px; }
  .round { width: 40px; height: 40px; }
  .fav { top: 12px; right: 12px; width: 38px; height: 38px; }
  .tag { bottom: 8px; left: 8px; font-size: 11px; padding: 5px 10px; }
  .card .split { display: none; }
  .trio, .trio-list, .facts, .two { grid-template-columns: 1fr; }
  .duo { gap: 10px; }
  .trio { grid-auto-flow: column; grid-auto-columns: 82%; grid-template-columns: none; overflow-x: auto; scroll-snap-type: x mandatory; margin: 0 -16px; padding: 4px 16px 18px; scrollbar-width: none; }
  .trio::-webkit-scrollbar { display: none; }
  .step { scroll-snap-align: center; min-height: 260px; padding: 22px; }
  .why { gap: 10px; }
  .why div { padding: 18px; }
  .why h3 { font-size: 16px; }
  .why p { font-size: 14px; }
  .cat { aspect-ratio: 3/4; border-radius: var(--r-lg); }
  .cat .label { left: 8px; right: 8px; bottom: 8px; padding: 10px 8px 10px 14px; border-radius: 18px; }
  .cat .label b { font-size: 16px; }
  .cat .label small { display: none; }
  .cat .label .round { width: 34px; height: 34px; }
  .sub { grid-template-columns: 1fr; }
  .pdp { grid-template-columns: 1fr; gap: 18px; }
  .story { font-size: 17px; }
  .mk-priced { grid-template-columns: 1fr; }
  .rv { grid-template-columns: 1fr; }
  .lang-btn { width: 44px; padding: 0; justify-content: center; }
  .lang-btn span { display: none; }
  .lang-btn .flag { width: 24px; height: 24px; }
  .gallery { position: static; grid-template-columns: 1fr; }
  .stage { aspect-ratio: 5/4; }
  .thumbs { flex-direction: row; order: 2; }
  .thumbs button { width: 62px; }
  .buyrow .stepper { display: none; }
  .footer { padding-bottom: 150px; margin-top: 64px; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }

  .tabbar {
    display: grid; grid-template-columns: repeat(5, 1fr); position: fixed; z-index: 40;
    left: 12px; right: 12px; bottom: calc(12px + env(safe-area-inset-bottom));
    height: 66px; border-radius: 999px; padding: 5px;
  }
  .tabbar a, .tabbar button { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; border-radius: 999px; font-size: 11px; font-weight: 600; color: var(--ink2); transition: background .3s var(--ease), color .2s; }
  .tabbar svg { width: 24px; height: 24px; }
  .tabbar .on { background: rgba(120, 120, 128, .16); color: var(--accent); }
  .tabbar .badge { top: 4px; right: calc(50% - 22px); }

  .buybar { display: flex; position: fixed; z-index: 39; left: 12px; right: 12px; bottom: calc(88px + env(safe-area-inset-bottom)); border-radius: 999px; padding: 6px 6px 6px 22px; align-items: center; justify-content: space-between; gap: 12px; }
  .buybar .price { font-size: 19px; }
  .buybar .pill { height: 46px; padding: 0 22px; font-size: 16px; }
  .has-buybar .footer { padding-bottom: 210px; }

  .sheet { top: auto; left: 0; right: 0; bottom: 0; width: 100%; max-height: 88vh; border-radius: var(--r-xl) var(--r-xl) 0 0; animation: slideup .5s var(--ease); padding-bottom: env(safe-area-inset-bottom); }
  @keyframes slideup { from { transform: translateY(100%); } }
  .sheet .grabber { display: block; }
  .sheet-top { top: 8px; bottom: auto; left: 8px; right: 8px; width: auto; transform: none; border-radius: var(--r-lg); animation: fade .3s; }
  .sheet-top .grabber { display: none; }
  .cookie { bottom: calc(90px + env(safe-area-inset-bottom)); font-size: 13px; padding-left: 16px; }
  .toast { top: 72px; }
}


/* Cart extras */
.ship { background: var(--card); border-radius: var(--r-md); padding: 14px 16px; display: grid; gap: 10px; font-size: 14px; box-shadow: var(--shadow); }
.ship span { display: flex; align-items: center; gap: 6px; }
.ship svg { width: 16px; height: 16px; color: var(--ok); }
.bar { height: 6px; border-radius: 3px; background: var(--fill); overflow: hidden; }
.bar i { display: block; height: 100%; border-radius: 3px; background: var(--accent); transition: width .5s var(--ease); }
.promo { display: flex; gap: 8px; background: var(--card); border-radius: 999px; padding: 5px 5px 5px 18px; box-shadow: var(--shadow); }
.promo input { flex: 1; min-width: 0; border: 0; outline: 0; background: none; text-transform: uppercase; }
.promo input::placeholder { text-transform: none; color: var(--ink3); }
.promo-on { display: flex; align-items: center; justify-content: space-between; gap: 8px; background: var(--accent-soft); border-radius: 999px; padding: 4px 6px 4px 16px; font-size: 14px; }
.promo-on span { display: flex; align-items: center; gap: 6px; }
.promo-on svg { width: 16px; height: 16px; color: var(--accent); }
.minus { color: var(--ok); font-weight: 600; }
.total > div:last-of-type { padding-top: 10px; border-top: 1px solid var(--sep); }
.note a { text-decoration: underline; }

/* Builder */
.promo-banner { margin-top: 16px; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 22px 22px 22px 28px; border-radius: var(--r-lg); color: #fff; background: linear-gradient(110deg, #4a25e0, #7c5cff 60%, #b29dff); box-shadow: var(--shadow); transition: transform .4s var(--ease); }
.promo-banner:hover { transform: translateY(-2px); }
.promo-banner b { display: block; font-size: 22px; font-weight: 700; letter-spacing: -.02em; }
.promo-banner small { font-size: 15px; opacity: .85; }
.promo-banner .round { background: #fff; color: #0b0b0f; }
.pick { cursor: default; }
.pick.on { box-shadow: 0 0 0 2.5px var(--accent), var(--shadow); }
.pick:hover { transform: none; }
.picker { position: sticky; bottom: 16px; z-index: 30; margin: 24px auto 0; max-width: 560px; min-height: 68px; border-radius: 999px; padding: 8px 8px 8px 26px; display: flex; align-items: center; justify-content: space-between; gap: 14px; }
.picker b { display: block; font-weight: 700; }
.picker small { color: var(--ink2); font-size: 14px; }
.picker s { color: var(--ink3); }

/* Marketplaces */
.mk { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.mkt { display: flex; align-items: center; gap: 10px; height: 52px; padding: 0 14px 0 12px; border-radius: 999px; background: var(--card); box-shadow: var(--shadow); font-weight: 600; font-size: 15px; white-space: nowrap; transition: transform .25s var(--ease), background .2s; }
.mkt:hover { background: var(--fill); }
.mkt:active { transform: scale(.97); }
.mkt .mi { width: 28px; height: 28px; flex: none; margin: 0; color: inherit; }
.mkt > svg:last-child { width: 14px; height: 14px; margin-left: auto; color: var(--ink3); }
.mkt .mp { margin-left: auto; font-weight: 700; font-variant-numeric: tabular-nums; }
.mkt .mp span { font-weight: 500; color: var(--ink2); }
.mkt .mp + svg:last-child { margin-left: 4px; }
.mpnote { margin: 10px 4px 0; }

.mk4 { grid-template-columns: repeat(4, 1fr); }
.g3w { grid-template-columns: repeat(3, 1fr); }
.mgrid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.mcard { display: flex; align-items: center; gap: 18px; padding: 24px; border-radius: var(--r-lg); background: var(--card); box-shadow: var(--shadow); transition: transform .4s var(--ease), box-shadow .4s; }
.mcard:hover { transform: translateY(-3px); box-shadow: 0 2px 4px rgba(0, 0, 0, .04), 0 22px 44px rgba(0, 0, 0, .1); }
.mcard > span:nth-child(2) { flex: 1; min-width: 0; }
.mcard b { display: block; font-size: 22px; font-weight: 700; letter-spacing: -.02em; }
.mcard small { color: var(--ink2); font-size: 15px; }
.mlogo { width: 60px; height: 60px; flex: none; display: grid; }
.mlogo .mi { width: 100%; height: 100%; }

/* Quiz */
.quiz { max-width: 640px; display: grid; gap: 18px; padding-top: 24px; justify-items: start; }
.quiz .list { width: 100%; }
.quiz .row { padding: 20px; }
.quiz .row b { font-size: 19px; }
.quiz .row .val svg { width: 16px; height: 16px; }
.quiz .row:hover { background: var(--fill); }
.dots { display: flex; gap: 6px; }
.dots i { width: 28px; height: 5px; border-radius: 3px; background: var(--fill2); transition: .3s; }
.dots i.on, .dots i.cur { background: var(--accent); }
.dots i.cur { width: 44px; }
.g3 { grid-template-columns: repeat(3, 1fr); max-width: 900px; }
.quiz-foot { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; }
.hint { display: inline-flex; align-items: center; gap: 8px; align-self: flex-start; min-height: 44px; color: var(--accent); font-weight: 500; font-size: 15px; }
.hint svg { width: 16px; height: 16px; }

/* Waitlist */
.waitform { display: grid; gap: 16px; }
.check.plain { color: var(--ink2); }
.check.plain input { border-color: var(--fill2); }

/* FAQ */
.faq details { position: relative; }
.faq details + details::before { content: ""; position: absolute; top: 0; left: 20px; right: 0; height: 1px; background: var(--sep); }
.faq summary { list-style: none; cursor: pointer; padding: 16px 20px; font-weight: 600; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary svg { width: 16px; height: 16px; color: var(--ink3); transition: transform .3s var(--ease); }
.faq details[open] summary svg { transform: rotate(90deg); }
.faq p { padding: 0 20px 18px; color: var(--ink2); font-size: 16px; }
.todo { display: inline-block; padding: 4px 10px; border-radius: 8px; background: rgba(255, 159, 10, .16); color: #b86e00; font-size: 14px; }
[data-theme="dark"] .todo { color: #ffb340; }

/* Product story and ingredients */
.story { font-size: 18px; line-height: 1.5; color: var(--ink); }
.acts .row { padding: 14px 20px; align-items: flex-start; }
.acts .row + .row::before { left: 72px; }
.ri.ai { width: 38px; height: 38px; border-radius: 12px; background: color-mix(in srgb, var(--c) 15%, transparent); color: var(--c); }
.ri.ai svg { width: 22px; height: 22px; }
[data-theme="dark"] .ri.ai { background: color-mix(in srgb, var(--c) 26%, transparent); color: color-mix(in srgb, var(--c) 70%, #fff); }
.acts .row small { margin-top: 2px; }
.inci { position: relative; }
.inci::before { content: ""; position: absolute; top: 0; left: 20px; right: 0; height: 1px; background: var(--sep); }
.inci summary { list-style: none; cursor: pointer; padding: 16px 20px; font-weight: 600; color: var(--accent); display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.inci summary::-webkit-details-marker { display: none; }
.inci summary svg { width: 16px; height: 16px; transition: transform .3s var(--ease); }
.inci[open] summary svg { transform: rotate(90deg); }
.inci p[data-notr] { font-size: 14px; line-height: 1.6; overflow-wrap: anywhere; }
.line > svg { width: 16px; height: 16px; color: var(--ink3); }

.reviews { padding: 28px 16px 16px; }
.rv { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; width: 100%; }
.rv .mkt { background: var(--fill); box-shadow: none; }

/* Language */
.flag { width: 20px; height: 20px; border-radius: 50%; box-shadow: 0 0 0 1px var(--sep); flex: none; }
.flag-lg { width: 34px; height: 34px; }
.lang-btn { width: auto; padding: 0 12px; border-radius: 999px; display: inline-flex; align-items: center; gap: 7px; }
.lang-btn span { font-size: 13px; font-weight: 700; letter-spacing: .02em; }
.langs .row { width: 100%; padding: 18px 20px; }
.langs .row + .row::before { left: 20px; }
.langs .row b { font-size: 18px; }
.langs .row .val { color: var(--accent); visibility: hidden; }
.langs .row.on .val { visibility: visible; }
html[lang="ru"] .foreign { display: none; }
.foreign { margin: -12px 4px 14px; }

/* Product details, documents */
.dbody { padding: 0 20px 18px; color: var(--ink2); font-size: 16px; display: grid; gap: 10px; }
.dbody ol { margin: 0; padding-left: 20px; display: grid; gap: 6px; }
.kv > div { display: flex; justify-content: space-between; gap: 16px; padding: 6px 0; }
.kv > div + div { border-top: 1px solid var(--sep); padding-top: 12px; }
.kv span:last-child { color: var(--ink); text-align: right; }
.doc { max-width: 860px; }
.doc .prose { font-size: 16px; line-height: 1.55; overflow-wrap: anywhere; }
.doc .prose :is(h1, h2, h3, h4) { font-size: 19px; font-weight: 700; color: var(--ink); margin-top: 10px; }
.doc .prose a { text-decoration: underline; color: var(--accent); }
.doc .prose table { border-collapse: collapse; width: 100%; display: block; overflow-x: auto; }
.doc .prose :is(td, th) { border: 1px solid var(--sep); padding: 8px 10px; vertical-align: top; text-align: left; }

/* Checkout */
.co { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); gap: 32px; align-items: start; }
.co-main { display: grid; gap: 22px; }
.co-sum { position: sticky; top: 92px; background: var(--card); border-radius: var(--r-xl); padding: 22px; display: grid; gap: 16px; box-shadow: var(--shadow); }
.co-sum h2 { font-size: 22px; font-weight: 700; letter-spacing: -.02em; }
.co-sum .list { box-shadow: none; background: var(--fill); }
.co-sum .total { margin-top: 0; }
.inp { display: grid; gap: 2px; padding: 12px 20px; position: relative; cursor: text; }
.inp span { font-size: 13px; color: var(--ink3); font-weight: 500; }
.inp input { border: 0; outline: 0; background: none; padding: 2px 0; width: 100%; }
.inp input::placeholder { color: var(--ink3); }
.inp:focus-within span { color: var(--accent); }
.opt { display: flex; align-items: center; gap: 14px; padding: 14px 20px; position: relative; cursor: pointer; }
.opt b { display: block; font-weight: 600; }
.opt small { color: var(--ink2); font-size: 14px; }
.opt input { appearance: none; flex: none; width: 24px; height: 24px; margin: 0; border-radius: 50%; border: 2px solid var(--fill2); display: grid; place-items: center; transition: .2s; cursor: pointer; }
.opt input:checked { border-color: var(--accent); background: var(--accent); }
.opt input:checked::after { content: ""; width: 9px; height: 9px; border-radius: 50%; background: #fff; }
.list > * + .inp::before, .list > * + .opt::before, .list > * + button.row::before { content: ""; position: absolute; top: 0; left: 20px; right: 0; height: 1px; background: var(--sep); }
button.row { width: 100%; text-align: left; }

@media (max-width: 760px) {
  .promo-banner { padding: 18px 16px 18px 20px; }
  .promo-banner b { font-size: 19px; }
  .promo-banner small { font-size: 14px; }
  .picker { bottom: calc(88px + env(safe-area-inset-bottom)); padding-left: 22px; margin-inline: -4px; }
  .picker .pill { height: 48px; padding: 0 20px; }
  .co { grid-template-columns: 1fr; gap: 22px; }
  .g3, .g3w { grid-template-columns: repeat(2, 1fr); }
  .no-tabbar .tabbar { display: none; }
  .no-tabbar .buybar, .no-tabbar .picker { bottom: calc(12px + env(safe-area-inset-bottom)); }
  .no-tabbar .footer { padding-bottom: 120px; }
  .no-tabbar .cookie { bottom: calc(86px + env(safe-area-inset-bottom)); }
  .no-tabbar .topbar { padding-left: 4px; }
  .no-tabbar .icon-btn.back { display: grid; }
  .no-tabbar .actions [data-open="cart"] { display: grid; }
  .no-tabbar .actions [data-theme-toggle] { display: none; }
  .mk4 { grid-template-columns: 1fr 1fr; }
  .mgrid { grid-template-columns: 1fr; gap: 10px; }
  .mcard { padding: 16px; gap: 14px; }
  .mcard b { font-size: 19px; }
  .mlogo { width: 50px; height: 50px; }
  .quiz-foot .pill { flex: 1; }
  .co-sum { position: static; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
