@font-face {
  font-family: Playfair; src: url("playfair-cyrillic.woff2") format("woff2");
  font-weight: 400 900; font-display: swap; unicode-range: U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116;
}
@font-face {
  font-family: Playfair; src: url("playfair-latin.woff2") format("woff2");
  font-weight: 400 900; font-display: swap; unicode-range: U+0000-00FF,U+2000-206F,U+20AC,U+2122;
}
:root {
  color-scheme: light;
  --ink: #2b2030; --muted: #5b4c61; --paper: #faf7f1; --card: #fffdfa;
  --purple: #442358; --lilac: #eee5f1; --lime: #edf1d4; --line: #ded2e0;
  --bottom-safe: max(env(safe-area-inset-bottom, 0px), var(--tg-content-safe-area-inset-bottom, 0px));
  font: 16px/1.5 system-ui, sans-serif;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; background: var(--paper); color: var(--ink); }
h1, h2, p, dl { margin: 0; }
h1, h2 { font: 650 2rem/1.12 Playfair, Georgia, serif; letter-spacing: -.04em; }
h1 { font-size: clamp(2.35rem, 8vw, 3.7rem); }
h1 em { font-style: normal; color: #633975; }
button, a { -webkit-tap-highlight-color: transparent; }
button { font: inherit; cursor: pointer; }
button:focus-visible, a:focus-visible, input:focus-visible + span {
  outline: 3px solid #84578e; outline-offset: 3px;
}
button:disabled { cursor: wait; opacity: .65; }
.shell { width: min(100%, 720px); margin: auto; }
.brand {
  display: flex; gap: 10px; align-items: center; min-height: 64px; line-height: 1.08;
  padding: max(12px, var(--tg-content-safe-area-inset-top, 0px)) 20px 12px;
  font-size: .94rem; font-weight: 750;
}
.brand i { width: 31px; height: 31px; border-radius: 56% 44% 50% 50%; background: var(--purple); position: relative; }
.brand i::after { content: ""; position: absolute; background: var(--lime); width: 18px; height: 7px; top: 12px; left: 6px; border-radius: 0 100% 0 100%; transform: rotate(-28deg); }
main { padding: 0 17px calc(94px + var(--bottom-safe)); }
.hero { display: grid; grid-template-columns: minmax(0, 1fr); background: var(--lilac); border-radius: 16px; overflow: hidden; }
.hero-copy { padding: clamp(20px, 5vw, 32px); }
.hero-copy p:first-of-type { margin: 13px 0 18px; max-width: 36ch; }
.hero img { width: 100%; height: 224px; object-fit: cover; object-position: center 55%; display: block; }
.primary, .secondary {
  display: inline-flex; justify-content: center; align-items: center; min-height: 44px; padding: 9px 16px;
  border: 1px solid var(--purple); border-radius: 9px; font-weight: 690; line-height: 1.3;
}
.primary { background: var(--purple); color: white; }
a.primary { text-decoration: none; }
.primary:hover { background: #5b3370; }
.secondary { background: transparent; color: var(--purple); }
.secondary:hover, .secondary[aria-pressed="true"] { background: var(--lilac); }
.quiet { font-size: .9rem; color: var(--muted); }
.hero-note { margin-top: 8px; }
.card { padding: 18px; background: var(--card); border: 1px solid var(--line); border-radius: 13px; margin: 14px 0; }
.card h2 { font-size: 1.62rem; }
.action-card p { margin: 8px 0 13px; }
.lede { margin-top: 12px; color: var(--muted); }
.rows { margin: 10px 0 14px; }
.rows div { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 14px; align-items: baseline; padding: 9px 0; border-bottom: 1px solid var(--line); }
.rows dt { color: var(--muted); }
.rows dd { margin: 0; justify-self: end; text-align: right; font-weight: 680; }
.shopping { background: var(--lime); }
.shopping .rows { margin-bottom: 0; }
.shopping .rows div { grid-template-columns: minmax(0, 1fr) auto; border-color: #d6dcb6; }
#shop-status { margin-top: 6px; }
.portions { border: 0; padding: 0; margin: 12px 0 0; }
.portions legend { color: var(--muted); font-size: .9rem; margin-bottom: 5px; }
.portions div { display: flex; gap: 6px; }
.portions label { position: relative; }
.portions input { position: absolute; opacity: 0; }
.portions span { display: grid; place-items: center; width: 44px; height: 44px; border: 1px solid var(--line); border-radius: 8px; cursor: pointer; }
.portions input:checked + span { background: var(--lilac); border-color: var(--purple); font-weight: 750; }
.link { color: var(--purple); font-weight: 700; text-underline-offset: 4px; }
.free-sample summary { cursor: pointer; font-weight: 720; color: var(--purple); }
.free-sample pre { white-space: pre-wrap; overflow-wrap: anywhere; font: inherit; margin: 12px 0; }
.choices { display: flex; gap: 8px; margin: 16px 0 14px; flex-wrap: wrap; }
.lab-rows { list-style: none; padding: 0; margin: 0; }
.lab-rows li { margin: 8px 0; }
.lab-rows strong { color: var(--purple); }
.lab-example-title { margin-top: 24px; font-size: 1.55rem; }
.lab-rows p { margin-top: 5px; }
.bottom {
  position: fixed; z-index: 2; bottom: 0; left: 50%; transform: translateX(-50%); width: min(100%, 720px);
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px;
  padding: 8px 17px calc(8px + var(--bottom-safe)); border-top: 1px solid var(--line); background: var(--paper);
}
.bottom button { background: transparent; border: 0; border-radius: 8px; color: var(--muted); min-height: 44px; font-weight: 630; }
.bottom button[aria-current="page"] { background: var(--lilac); color: var(--purple); font-weight: 750; }
dialog { padding: 0; width: min(400px, calc(100% - 28px)); color: var(--ink); background: var(--card); border: 1px solid var(--line); border-radius: 14px; }
dialog::backdrop { background: #2b20307a; }
.sheet { padding: 22px; position: relative; }
.sheet h2 { padding-right: 28px; }
.sheet p { margin: 10px 0; }
.sheet .price { color: var(--purple); font-size: 1.65rem; font-weight: 750; }
.close { position: absolute; top: 8px; right: 8px; width: 44px; height: 44px; background: transparent; border: 0; font-size: 1.55rem; color: var(--purple); }
@media (min-width: 540px) {
  .hero { grid-template-columns: 1.05fr 1fr; }
  .hero img { height: 100%; min-height: 333px; }
  .brand { padding-inline: 18px; }
}
