:root {
  --milk: #f6f7fb;
  --paper: #ffffff;
  --ink: #33242f;
  --ink-2: #6b5a66;
  --rose: #c98a8e;
  --rose-deep: #9c4d62;
  --rose-soft: #f3e1e2;
  --line: #e6e2ea;
  --wa: #1f9e57;

  --t-tvorog: #f7e3e4;
  --t-yogurt: #ebe4f5;
  --t-drink: #e1efe3;
  --t-milk: #dfeef8;
  --t-kasha: #f7eccd;
  --t-meat: #f3e0d6;
  --t-fruit: #fde5cf;

  --display: "Unbounded", "Arial Rounded MT Bold", system-ui, sans-serif;
  --text: "Onest", system-ui, -apple-system, "Segoe UI", sans-serif;

  --r-lg: 28px;
  --r-md: 18px;
  --r-sm: 12px;
  --ease: cubic-bezier(.22, 1, .36, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 76px; }
body {
  margin: 0;
  font: 400 16px/1.55 var(--text);
  color: var(--ink);
  background: var(--milk);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
button, input, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--display); font-weight: 600; line-height: 1.12; margin: 0; letter-spacing: -.01em; }
svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

:focus-visible { outline: 3px solid var(--rose-deep); outline-offset: 2px; border-radius: 8px; }

.wrap { width: min(1180px, 100% - 32px); margin-inline: auto; }

.skip {
  position: absolute; left: 12px; top: -60px; z-index: 50;
  background: var(--ink); color: #fff; padding: 10px 14px; border-radius: 10px; text-decoration: none;
}
.skip:focus { top: 12px; }

/* header */
.top {
  position: sticky; top: 0; z-index: 20;
  background: color-mix(in srgb, var(--milk) 88%, transparent);
  backdrop-filter: saturate(1.4) blur(12px);
  -webkit-backdrop-filter: saturate(1.4) blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s;
}
.top.is-scrolled { border-bottom-color: var(--line); }
.top-in { display: flex; align-items: center; gap: 20px; height: 66px; }
.logo { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.logo-badge {
  width: 48px; height: 48px; border-radius: 50%;
  background: var(--rose); color: #fff;
  display: grid; place-content: center; text-align: center;
  font-family: var(--display); line-height: .95;
}
.logo-badge b { font-weight: 500; font-size: 9.5px; letter-spacing: .06em; }
.logo-badge i { font-style: normal; font-family: var(--text); font-size: 7px; margin-top: 2px; opacity: .9; }
.logo-text { font-size: 13px; line-height: 1.25; color: var(--ink-2); }
.top-nav { display: none; margin-left: auto; gap: 26px; }
.top-nav a { text-decoration: none; font-weight: 500; color: var(--ink-2); }
.top-nav a:hover { color: var(--ink); }
.cart-btn {
  margin-left: auto; position: relative;
  width: 46px; height: 46px; border-radius: 50%;
  border: 1px solid var(--line); background: var(--paper);
  display: grid; place-items: center;
}
.cart-count {
  position: absolute; top: -4px; right: -4px;
  min-width: 22px; height: 22px; padding: 0 6px; border-radius: 11px;
  background: var(--rose-deep); color: #fff;
  font: 600 12px/22px var(--text); text-align: center;
}
.cart-count.bump { animation: bump .35s var(--ease); }
@keyframes bump { 40% { transform: scale(1.3); } }

/* hero */
.hero { padding: 28px 0 8px; overflow: hidden; }
.hero-in { display: grid; gap: 22px; }
.hero h1 { font-size: clamp(30px, 8.4vw, 64px); max-width: 13ch; font-weight: 700; }
.lead { margin: 16px 0 0; font-size: 17px; color: var(--ink-2); max-width: 46ch; }
.hero-packs { display: flex; justify-content: center; align-items: flex-end; height: 200px; }
.hero-packs img {
  height: 100%; width: auto; aspect-ratio: 1; object-fit: contain; min-width: 0;
  margin-inline: -9%;
  filter: drop-shadow(0 16px 16px rgba(80, 40, 60, .15));
}
.hero-packs img:nth-child(1) { transform: rotate(-7deg) translateY(4%); }
.hero-packs img:nth-child(2) { position: relative; z-index: 1; height: 108%; }
.hero-packs img:nth-child(3) { transform: rotate(8deg) translateY(4%); }

/* the age tape — the one memorable element */
.tape {
  background: var(--paper);
  border-radius: var(--r-lg);
  padding: 20px 18px 16px;
  border: 1px solid var(--line);
}
.tape-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 4px 16px; margin-bottom: 14px; }
.tape-head h2 { font-size: 21px; }
.tape-note { margin: 0; color: var(--ink-2); font-size: 14px; }
.tape-rule {
  position: relative;
  display: grid; grid-template-columns: repeat(5, 1fr);
  background:
    linear-gradient(90deg, var(--rose) 1.5px, transparent 1.5px) 0 0 / calc(100% / 5) 20px repeat-x,
    linear-gradient(90deg, var(--rose) 1px, transparent 1px) 0 0 / calc(100% / 30) 9px repeat-x,
    var(--rose-soft);
  border-radius: 14px;
  padding-top: 26px;
}
.tape-stop {
  position: relative;
  border: 0; background: transparent;
  padding: 10px 2px 12px;
  font-family: var(--display); font-weight: 500; font-size: 14px; line-height: 1.1;
  color: var(--ink);
  border-radius: 12px;
  transition: background-color .2s, color .2s;
}
.tape-stop small { display: block; font: 400 12px/1.2 var(--text); color: var(--ink-2); margin-top: 3px; }
.tape-stop::before {
  content: ""; position: absolute; top: -12px; left: 50%;
  width: 14px; height: 14px; margin-left: -7px; border-radius: 50%;
  background: var(--paper); border: 2px solid var(--rose);
  transition: transform .25s var(--ease), background-color .2s;
}
.tape-stop[aria-pressed="true"] { background: var(--rose-deep); color: #fff; }
.tape-stop[aria-pressed="true"] small { color: #f6dfe5; }
.tape-stop[aria-pressed="true"]::before { background: var(--rose-deep); border-color: var(--paper); transform: scale(1.35); }

/* catalog */
.catalog { padding: 44px 0 30px; }
.cat-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px; }
.cat-head h2 { font-size: 30px; }
.brand-switch { display: inline-flex; background: var(--paper); border: 1px solid var(--line); border-radius: 999px; padding: 4px; }
.brand-switch button {
  border: 0; background: transparent; border-radius: 999px;
  padding: 8px 16px; font-weight: 500; color: var(--ink-2);
}
.brand-switch button[aria-checked="true"] { background: var(--ink); color: #fff; }

.cat-bar {
  position: sticky; top: 66px; z-index: 10;
  margin: 14px -16px 0; padding: 10px 16px;
  background: color-mix(in srgb, var(--milk) 92%, transparent);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
}
.chips { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; padding-bottom: 2px; }
.chips::-webkit-scrollbar { display: none; }
.chip {
  flex: none; border: 0; border-radius: 999px;
  padding: 9px 14px; font-weight: 500; font-size: 15px;
  background: var(--paper); color: var(--ink);
  box-shadow: inset 0 0 0 1px var(--line);
  display: inline-flex; align-items: center; gap: 7px;
}
.chip .dot { width: 10px; height: 10px; border-radius: 50%; background: var(--tint, var(--line)); box-shadow: inset 0 0 0 1px rgba(0,0,0,.06); }
.chip[aria-selected="true"] { background: var(--ink); color: #fff; box-shadow: none; }
.chip small { color: inherit; opacity: .6; font-size: 13px; }

.cat-status { margin: 8px 0 14px; color: var(--ink-2); font-size: 14px; min-height: 1.4em; }
.cat-status button { border: 0; background: none; color: var(--rose-deep); text-decoration: underline; padding: 0; font-weight: 500; }

.grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.card { display: flex; flex-direction: column; min-width: 0; }
.card-media {
  position: relative; display: block; width: 100%;
  aspect-ratio: 1; border: 0; padding: 10%;
  border-radius: var(--r-md);
  background: var(--tint, var(--rose-soft));
}
.card-media img { width: 100%; height: 100%; object-fit: contain; transition: transform .35s var(--ease); }
.card-media:hover img { transform: translateY(-4px) rotate(-1.5deg); }
.card-new {
  position: absolute; top: 10px; left: 10px;
  background: var(--paper); color: var(--rose-deep);
  font-size: 12px; font-weight: 600; padding: 3px 9px; border-radius: 999px;
}
.card-body { padding: 10px 2px 0; display: flex; flex-direction: column; gap: 3px; flex: 1; }
.card-brand { font-size: 13px; color: var(--ink-2); }
.card-name { font: 500 15px/1.3 var(--text); margin: 0; text-wrap: pretty; }
.card-name button { all: unset; cursor: pointer; }
.card-name button:focus-visible { outline: 3px solid var(--rose-deep); outline-offset: 2px; border-radius: 4px; }
.card-meta { font-size: 13px; color: var(--ink-2); }
.card-foot { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: auto; padding-top: 8px; }
.price { font-family: var(--display); font-weight: 600; font-size: 16px; white-space: nowrap; }

.add {
  width: 42px; height: 42px; border-radius: 50%; border: 0;
  background: var(--ink); color: #fff;
  display: grid; place-items: center; flex: none;
  transition: transform .15s var(--ease), background-color .2s;
}
.add:active { transform: scale(.92); }
.add svg { width: 20px; height: 20px; stroke-width: 2.2; }
.stepper {
  display: inline-flex; align-items: center; height: 42px;
  background: var(--ink); color: #fff; border-radius: 999px;
}
.stepper button {
  width: 38px; height: 42px; border: 0; background: transparent; color: inherit;
  display: grid; place-items: center;
}
.stepper button svg { width: 18px; height: 18px; stroke-width: 2.2; }
.stepper output { min-width: 18px; text-align: center; font-weight: 600; font-variant-numeric: tabular-nums; }

.empty { grid-column: 1 / -1; padding: 40px 20px; text-align: center; background: var(--paper); border-radius: var(--r-md); }
.empty p { margin: 0 0 12px; }
.price-note { margin: 22px 0 0; font-size: 14px; color: var(--ink-2); }

/* recipes */
.recipes { padding: 48px 0; }
.sec-head { margin-bottom: 18px; }
.sec-head h2 { font-size: 28px; max-width: 18ch; }
.sec-head p { margin: 8px 0 0; color: var(--ink-2); }
.rec-row {
  display: grid; grid-auto-flow: column; grid-auto-columns: 68%;
  gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory;
  margin-inline: -16px; padding: 0 16px 8px; scrollbar-width: thin;
}
.rec { scroll-snap-align: start; text-decoration: none; display: block; }
.rec img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: var(--r-md); background: var(--rose-soft); }
.rec h3 { font: 500 15px/1.3 var(--text); margin: 10px 0 2px; }
.rec span { font-size: 13px; color: var(--ink-2); }

/* how */
.how { padding: 48px 0 56px; background: var(--paper); }
.how-in { display: grid; gap: 22px; }
.how h2 { font-size: 28px; }
.steps { margin: 0; padding: 0; list-style: none; counter-reset: s; display: grid; gap: 14px; }
.steps li { counter-increment: s; position: relative; padding-left: 52px; min-height: 38px; color: var(--ink-2); }
.steps li b { color: var(--ink); font-weight: 600; }
.steps li::before {
  content: counter(s); position: absolute; left: 0; top: -2px;
  width: 38px; height: 38px; border-radius: 50%;
  background: var(--rose-soft); color: var(--rose-deep);
  display: grid; place-items: center; font: 600 16px/1 var(--display);
}
.how-side p { margin: 0 0 16px; color: var(--ink-2); }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 0 22px; border-radius: 999px; border: 0;
  font-weight: 600; font-size: 16px; text-decoration: none;
  transition: transform .15s var(--ease), filter .2s;
}
.btn:active { transform: scale(.98); }
.btn-wa { background: var(--wa); color: #fff; }
.btn-wa:hover { filter: brightness(1.06); }
.btn-wide { width: 100%; }
.btn-link { border: 0; background: none; color: var(--ink-2); text-decoration: underline; padding: 10px; font-size: 14px; }

/* footer */
.foot { padding: 34px 0 120px; font-size: 14px; color: var(--ink-2); }
.foot-in { display: grid; gap: 18px; }
.foot b { color: var(--ink); font-family: var(--display); font-weight: 500; }
.foot p { margin: 4px 0 0; }
.foot-links { display: grid; gap: 6px; }
.foot-links a { color: var(--ink); text-decoration: none; font-weight: 500; }
.foot-links a:hover { text-decoration: underline; }
.foot-legal { font-size: 12.5px; max-width: 80ch; }

/* cart bar */
.cart-bar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 30;
  padding: 10px 12px calc(10px + env(safe-area-inset-bottom));
  pointer-events: none;
}
.cart-bar[hidden] { display: none; }
.cart-bar-btn {
  pointer-events: auto;
  width: min(560px, 100%); margin-inline: auto;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  min-height: 58px; padding: 0 8px 0 22px; border: 0; border-radius: 999px;
  background: var(--ink); color: #fff;
  box-shadow: 0 14px 30px rgba(51, 36, 47, .28);
  animation: rise .4s var(--ease);
}
.cart-bar-btn > span:first-child { font-weight: 500; }
.cart-bar-go { background: var(--rose); color: var(--ink); border-radius: 999px; padding: 11px 18px; font-weight: 600; }
@keyframes rise { from { transform: translateY(120%); } }

/* sheets */
.sheet {
  width: 100%; max-width: 100%; max-height: 92dvh; margin: auto 0 0;
  padding: 0; border: 0; border-radius: var(--r-lg) var(--r-lg) 0 0;
  background: var(--paper); color: var(--ink);
  overflow: hidden;
}
.sheet[open] { animation: sheet-up .38s var(--ease); }
.sheet::backdrop { background: rgba(40, 24, 36, .42); }
@keyframes sheet-up { from { transform: translateY(100%); } }
.sheet-in { position: relative; max-height: 92dvh; overflow-y: auto; padding: 22px 18px calc(22px + env(safe-area-inset-bottom)); }
.sheet-x {
  position: sticky; top: 0; float: right; z-index: 2;
  width: 40px; height: 40px; border-radius: 50%; border: 0;
  background: var(--milk); display: grid; place-items: center;
  margin: -6px -4px 0 0;
}

.pd { display: grid; gap: 18px; }
.pd-media { border-radius: var(--r-md); background: var(--tint); padding: 6%; aspect-ratio: 1.3; overflow: hidden; }
.pd-media img { width: 100%; height: 100%; object-fit: contain; }
.pd-brand { font-size: 14px; color: var(--ink-2); margin: 0 0 4px; }
.pd h2 { font-size: 23px; }
.pd-meta { margin: 8px 0 0; color: var(--ink-2); }
.pd-buy { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 0; border-block: 1px solid var(--line); }
.pd-buy .price { font-size: 22px; }
.pd-info { display: grid; gap: 14px; margin-top: 14px; }
.pd-feats { margin: 0; padding: 0; list-style: none; display: flex; flex-wrap: wrap; gap: 6px; }
.pd-feats li { background: var(--milk); border-radius: 999px; padding: 6px 12px; font-size: 13.5px; }
.pd p { margin: 0; }
.pd-desc { color: var(--ink-2); max-width: 62ch; }
.pd details { border-top: 1px solid var(--line); padding-top: 12px; }
.pd summary { cursor: pointer; font-weight: 600; list-style: none; display: flex; justify-content: space-between; }
.pd summary::after { content: "+"; font-family: var(--display); color: var(--rose-deep); }
.pd details[open] summary::after { content: "–"; }
.pd details p { margin-top: 8px; font-size: 14.5px; color: var(--ink-2); }
.nutr { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; margin-top: 10px; }
.nutr div { background: var(--milk); border-radius: var(--r-sm); padding: 8px; text-align: center; font-size: 12.5px; color: var(--ink-2); }
.nutr b { display: block; font: 600 14px/1.3 var(--display); color: var(--ink); }
.pd-src { font-size: 13px; color: var(--ink-2); }

.cart-title { font-size: 24px; margin-bottom: 14px; }
.cart-list { display: grid; gap: 10px; }
.ci { display: grid; grid-template-columns: 56px 1fr auto; align-items: center; gap: 12px; }
.ci-img { width: 56px; height: 56px; border-radius: 14px; background: var(--tint); padding: 5px; }
.ci-img img { width: 100%; height: 100%; object-fit: contain; }
.ci-name { font-size: 14.5px; line-height: 1.3; }
.ci-name small { display: block; color: var(--ink-2); font-size: 13px; }
.ci .stepper { height: 38px; }
.ci .stepper button { width: 34px; height: 38px; }
.cart-empty { padding: 24px 0; color: var(--ink-2); }

.order { display: grid; gap: 12px; margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--line); }
.order[hidden] { display: none; }
.mode { border: 0; padding: 0; margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.mode legend { font-weight: 600; margin-bottom: 8px; padding: 0; }
.mode label {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 46px; border-radius: var(--r-sm); background: var(--milk); font-weight: 500;
  box-shadow: inset 0 0 0 1px var(--line);
}
.mode label:has(input:checked) { background: var(--rose-soft); box-shadow: inset 0 0 0 2px var(--rose-deep); }
.mode input { accent-color: var(--rose-deep); }
.field { display: grid; gap: 6px; font-weight: 500; font-size: 14px; }
.field input, .field textarea {
  width: 100%; border: 1px solid var(--line); border-radius: var(--r-sm);
  background: var(--milk); padding: 12px 14px; font-size: 16px; font-weight: 400;
}
.field input:focus, .field textarea:focus { outline: 2px solid var(--rose-deep); outline-offset: 0; border-color: transparent; }
.field[hidden] { display: none; }
.order-total { display: flex; justify-content: space-between; align-items: baseline; font-weight: 500; padding: 4px 0; }
.order-total b { font: 600 20px/1 var(--display); }

@media (min-width: 640px) {
  .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
  .rec-row { grid-auto-columns: 38%; }
  .tape { padding: 24px 26px 18px; }
  .tape-stop { font-size: 16px; }
  .sheet {
    width: min(760px, calc(100% - 40px)); margin: auto; border-radius: var(--r-lg);
  }
  .sheet[open] { animation: pop .3s var(--ease); }
  @keyframes pop { from { opacity: 0; transform: translateY(16px) scale(.98); } }
  .sheet-in { padding: 28px; }
  .pd { grid-template-columns: 1fr 1.1fr; align-items: start; }
  .pd-media { aspect-ratio: 1; position: sticky; top: 0; }
  .foot-in { grid-template-columns: 1fr 1fr; }
  .foot-legal { grid-column: 1 / -1; }
}

@media (min-width: 960px) {
  .top-nav { display: flex; }
  .cart-btn { margin-left: 8px; }
  .hero { padding: 40px 0 10px; }
  .hero-in { grid-template-columns: 1.15fr 1fr; align-items: end; gap: 26px 40px; }
  .hero-packs { height: 330px; }
  .tape { grid-column: 1 / -1; }
  .grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 22px 18px; }
  .cat-bar { margin-inline: 0; padding-inline: 0; }
  .rec-row { grid-auto-columns: calc((100% - 36px) / 4); }
  .how-in { grid-template-columns: 1fr 1.4fr 1fr; align-items: start; gap: 40px; }
  .cart-bar { left: auto; right: 24px; bottom: 20px; padding: 0; }
  .cart-bar-btn { width: 380px; }
  .foot { padding-bottom: 40px; }
}

@media (min-width: 1180px) {
  .grid { grid-template-columns: repeat(5, minmax(0, 1fr)); }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
  html { scroll-behavior: auto; }
}
