/* Бульбашка — демо-лендинг. Mobile first (390), десктоп від 900/1024. */

@font-face { font-family: "Inter Display"; src: url("../fonts/InterDisplay-Black.woff2") format("woff2"); font-weight: 900; font-display: swap; }
@font-face { font-family: "Inter"; src: url("../fonts/Inter-Regular.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Inter"; src: url("../fonts/Inter-SemiBold.woff2") format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Lora"; src: url("../fonts/Lora-Italic.woff2") format("woff2"); font-weight: 400 700; font-style: italic; font-display: swap; }

:root {
  --ink: #1F1A17;
  --ink-2: #5A514A;
  --paper: #FBF6EC;
  --cream: #FFF8EA;
  --flavor: #EDD45A;
  --deep: #5E520A;
  --tint: color-mix(in srgb, var(--flavor) 26%, #FBF6EC);
  --display: "Inter Display", "Inter", system-ui, sans-serif;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --serif: "Lora", Georgia, "Times New Roman", serif;
  --pad: 20px;
  --head: 64px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: var(--head); }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font: 400 16px/1.5 var(--sans);
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
button { font: inherit; color: inherit; cursor: pointer; }
a { color: inherit; }
h1, h2, h3, p { margin: 0; }
fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
ul { list-style: none; margin: 0; padding: 0; }

:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; border-radius: 6px; }
.visually-hidden, .seg__o input {
  position: absolute !important; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; margin: -1px; padding: 0; border: 0;
}
.skip {
  position: fixed; left: 12px; top: 12px; transform: translateY(-200%); z-index: 200; background: var(--ink); color: var(--cream);
  padding: 10px 16px; border-radius: 10px; text-decoration: none; font-weight: 600;
}
.skip:focus { transform: none; }

/* ====================================================== кнопки */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 0 28px; border: 0; border-radius: 999px;
  font-weight: 600; font-size: 16px; letter-spacing: .01em;
  transition: transform .25s cubic-bezier(.34,1.45,.64,1), background-color .25s;
}
.btn--ink { background: var(--ink); color: var(--cream); }
.btn--ink:hover { background: #000; transform: translateY(-2px); }
.btn--ink:active { transform: translateY(1px) scale(.98); }
.btn[aria-disabled="true"] { background: #6B635C; color: #fff; }
.btn[aria-disabled="true"]:hover { transform: none; background: #5E5650; }

/* ====================================================== шапка */
.top {
  position: fixed; inset: 0 0 auto; z-index: 50; height: var(--head);
  display: flex; align-items: center; gap: 12px; padding: 0 var(--pad);
  transition: background-color .35s, box-shadow .35s;
}
.top.is-solid { background: var(--tint); box-shadow: 0 1px 0 rgba(31, 26, 23, .08); }
.wordmark {
  font: 900 25px/1 var(--display); letter-spacing: -.035em; text-decoration: none;
  position: relative; padding-right: 16px; margin-right: auto;
}
.wordmark::before, .wordmark::after {
  content: ""; position: absolute; border: 2px solid currentColor; border-radius: 50%;
}
.wordmark::before { width: 9px; height: 9px; right: 2px; top: -5px; }
.wordmark::after { width: 5px; height: 5px; right: -4px; top: -11px; border-width: 1.5px; }

.nav { display: none; }
.cart, .burger {
  width: 46px; height: 46px; border-radius: 50%; border: 1.5px solid var(--ink);
  background: transparent; display: grid; place-items: center; position: relative; padding: 0;
  transition: background-color .2s, color .2s;
}
.cart svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linejoin: round; }
.cart:hover, .burger:hover { background: var(--ink); color: var(--cream); }
.cart__n {
  position: absolute; right: -4px; top: -4px; min-width: 20px; height: 20px; padding: 0 5px;
  border-radius: 10px; background: var(--ink); color: var(--cream); font: 600 12px/20px var(--sans);
  text-align: center; opacity: 0; transition: opacity .2s;
}
.cart.has-items .cart__n { opacity: 1; }
.burger span { position: absolute; left: 13px; right: 13px; height: 2px; background: currentColor; border-radius: 2px; transition: transform .3s; }
.burger span:first-child { transform: translateY(-4px); }
.burger span:last-child { transform: translateY(4px); }
.top.is-open .burger span:first-child { transform: rotate(45deg); }
.top.is-open .burger span:last-child { transform: rotate(-45deg); }

.top.is-open { background: var(--paper); }
.top.is-open .nav {
  display: flex; flex-direction: column; position: absolute; top: var(--head); left: 0; right: 0;
  background: var(--paper); padding: 8px var(--pad) 28px; box-shadow: 0 20px 30px rgba(31, 26, 23, .12);
}
.top.is-open .nav a {
  font: 900 36px/1.25 var(--display); letter-spacing: -.03em; text-decoration: none; padding: 6px 0;
  border-bottom: 1px solid rgba(31, 26, 23, .1);
}

/* ====================================================== HERO */
.hero {
  position: relative; min-height: 100vh; min-height: 100svh; overflow: hidden;
  display: flex; flex-direction: column; padding-top: var(--head);
  touch-action: pan-y; user-select: none; -webkit-user-select: none; -webkit-tap-highlight-color: transparent;
  isolation: isolate; cursor: grab;
}
.hero.is-drag { cursor: grabbing; }
html.is-locked, html.is-locked body { overflow: hidden; }
@media (max-width: 899px) { .hero { height: 100vh; height: 100svh; min-height: 540px; } .hero .hero__stage { min-height: 0; } }
@media (max-width: 899px) and (max-height: 700px) { .hero__desc { font-size: 14px; } .hero__name { font-size: 22px; } .price__v { font-size: 26px; } .btn { min-height: 46px; } .hero__info { gap: 8px 12px; padding-bottom: 12px; } }
.hero__bg, .hero__fx, .hero__grain { position: absolute; inset: 0; pointer-events: none; }
.hero__bg { z-index: 0; background: var(--flavor); }
.hero__wipe {
  position: absolute; z-index: 1; border-radius: 50%; display: none; pointer-events: none;
  transform: scale(0); will-change: transform;
}
.hero__wipe.is-on { display: block; }
.hero__wipe.is-flat { border-radius: 0; transform: none; }
.hero__fx { z-index: 2; width: 100%; height: 100%; }
.hero__grain {
  z-index: 6; opacity: .22;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 .35 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

.hero__stage { position: relative; z-index: 3; flex: 1 1 auto; min-height: 430px; }

/* велика назва */
.title { position: absolute; inset: 0; pointer-events: none; }
.title__set {
  position: absolute; left: 0; right: 0; top: 2%; display: none; flex-direction: column; align-items: center;
  color: var(--deep); line-height: .84;
}
.title__set.is-vis { display: flex; }
.tl { display: block; overflow: hidden; padding: .06em .08em .12em; margin: -.06em 0; white-space: nowrap; }
.tl--a { font-family: var(--display); font-weight: 900; text-transform: uppercase; letter-spacing: -.045em; }
.tl--b { font-family: var(--serif); font-style: italic; font-weight: 500; font-size: .92em; letter-spacing: -.02em; }
.tc { display: inline-block; }
.title__measure { position: absolute; left: 0; top: 0; visibility: hidden; display: flex; flex-direction: column; align-items: flex-start; pointer-events: none; }
.title__measure .tl { display: block; }
.tc__i { display: inline-block; transform-origin: 50% 100%; }

/* інгредієнти */
.ings { position: absolute; inset: 0; container-type: size; pointer-events: none; }
.ingset { position: absolute; inset: 0; display: none; }
.ingset.is-vis { display: block; }
.ing {
  position: absolute; width: calc(var(--s) * var(--k, 1) * 1cqh);
  margin-left: calc(var(--s) * var(--k, 1) * -.5cqh); margin-top: calc(var(--s) * var(--k, 1) * -.5cqh);
}
.ing__float { animation: float 6s ease-in-out infinite; }
.ing img { width: 100%; height: auto; }
.ing--far { opacity: .85; }

/* пляшки */
.bottles { position: absolute; inset: 0; z-index: 5; pointer-events: none; }
.bottle {
  position: absolute; inset: 0; margin: 0; display: none; justify-content: center; align-items: flex-end;
  padding-bottom: 2%;
}
.bottle.is-vis { display: flex; }
.bottle__anim { position: relative; height: 68%; }
.bottle__par, .bottle__float { height: 100%; }
.bottle__float { position: relative; animation: bob 7s ease-in-out infinite; }
.bottle__img { height: 100%; width: auto; -webkit-user-drag: none; }
.bottle__anim::before {
  content: ""; position: absolute; left: 50%; top: 55%; width: 170%; height: 60%; transform: translate(-50%, -50%);
  background: radial-gradient(closest-side, rgba(255, 252, 240, .3), rgba(255, 252, 240, 0)); pointer-events: none;
}
.bottle__shadow {
  position: absolute; left: 50%; bottom: -2%; width: 120%; height: 7%; margin-left: -60%;
  background: radial-gradient(closest-side, rgba(31, 26, 23, .28), rgba(31, 26, 23, 0));
}

/* етикетка — поверх пляшки, кодом */
.label {
  --lx: 50%; --ly: 56%; --lw: 66%; --lh: 24%;
  position: absolute; left: var(--lx); top: var(--ly); width: var(--lw); height: var(--lh);
  transform: translateX(-50%); container-type: size;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 5cqh;
  text-align: center; color: var(--deep); border-radius: 6% / 9%; overflow: hidden;
  box-shadow: 0 1px 2px rgba(0,0,0,.12);
  background: linear-gradient(to bottom, var(--paper-tint) 0 8%, var(--cream) 8% 92%, var(--paper-tint) 92%);
}
.label::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(90deg, rgba(0,0,0,.3), rgba(0,0,0,.04) 14%, rgba(255,255,255,.45) 26%, rgba(255,255,255,0) 40%, rgba(0,0,0,0) 66%, rgba(0,0,0,.12) 84%, rgba(0,0,0,.34));
}
.label__brand { font: 900 15cqw/1 var(--display); letter-spacing: -.04em; color: var(--ink); }
.label__flavor { font: italic 500 13cqw/.98 var(--serif); }
.label__meta { font: 600 max(9px, 5.2cqw)/1 var(--sans); letter-spacing: .08em; text-transform: uppercase; color: var(--ink); white-space: nowrap; }
.label__meta-s { display: none; }
@container (max-width: 150px) { .label__meta-l { display: none; } .label__meta-s { display: inline; } }
@container (max-width: 100px) { .label__meta { display: none; } }

/* інформація */
.hero__info {
  position: relative; z-index: 7; padding: 0 var(--pad) 18px;
  display: grid; grid-template-columns: 1fr auto; grid-template-areas: "text text" "buy buy" "ctrl ctrl"; gap: 12px 16px;
}
.hero__count {
  position: absolute; right: var(--pad); top: -30px; font: 600 13px/1 var(--sans); letter-spacing: .08em; font-variant-numeric: tabular-nums;
}
.hero__count-sep { margin: 0 4px; opacity: .6; }
.hero__text { grid-area: text; min-height: 70px; }
.hero__name { font: 900 26px/1.05 var(--display); letter-spacing: -.03em; }
.hero__desc { margin-top: 4px; font-size: 15px; line-height: 1.4; max-width: 36ch; }
.hero__buy { grid-area: buy; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.price { display: flex; align-items: baseline; gap: 8px; }
.price__v { font: 900 30px/1 var(--display); letter-spacing: -.03em; }
.price__u { font-size: 14px; font-weight: 600; }
.hero__ctrl { grid-area: ctrl; display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.hero__hint { display: none; }
.arrow {
  width: 48px; height: 48px; border-radius: 50%; border: 1.5px solid var(--ink); background: transparent;
  display: grid; place-items: center; padding: 0; flex: none; transition: background-color .2s, color .2s, transform .3s cubic-bezier(.34,1.45,.64,1);
}
.arrow svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.arrow:hover { background: var(--ink); color: var(--cream); }
.arrow:active { transform: scale(.92); }
.dots { display: flex; gap: 2px; }
.dot { width: 30px; height: 44px; border: 0; background: none; padding: 0; position: relative; }
.dot::before {
  content: ""; position: absolute; left: 50%; top: 50%; width: 8px; height: 8px; margin: -4px 0 0 -4px; border-radius: 4px;
  background: var(--ink); opacity: .3; transition: width .45s cubic-bezier(.16,1,.3,1), margin .45s cubic-bezier(.16,1,.3,1), opacity .3s;
}
.dot.is-on::before { width: 24px; margin-left: -12px; opacity: 1; }
.dot:hover::before { opacity: .7; }

@keyframes float {
  0%, 100% { transform: translate3d(0, -6px, 0) rotate(-5deg); }
  50% { transform: translate3d(0, 8px, 0) rotate(5deg); }
}
@keyframes bob {
  0%, 100% { transform: translate3d(0, 0, 0); }
  50% { transform: translate3d(0, -8px, 0); }
}
.hero.is-off .ing__float, .hero.is-off .bottle__float { animation-play-state: paused; }

/* ====================================================== КОНСТРУКТОР */
.build { padding: 72px var(--pad) 80px; background: var(--tint); position: relative; transition: background-color .8s; }
.eyebrow { font: 600 13px/1 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--ink-2); }
.build__title { margin-top: 12px; font: 900 52px/.92 var(--display); letter-spacing: -.045em; }
.build__title em { font: italic 500 1.02em/1 var(--serif); letter-spacing: -.02em; color: var(--deep); transition: color .6s; }
.build__lead { margin-top: 14px; font-size: 17px; max-width: 44ch; color: var(--ink-2); }

.build__grid { margin-top: 28px; display: flex; flex-direction: column; gap: 8px; }

.panel {
  position: sticky; top: var(--head); z-index: 8; background: var(--tint); transition: background-color .8s;
  display: grid; grid-template-columns: 46% 1fr; gap: 14px; align-items: center; height: 300px;
  padding: 12px 0 14px; margin: 0 calc(var(--pad) * -1); padding-left: var(--pad); padding-right: var(--pad);
  box-shadow: 0 1px 0 rgba(31, 26, 23, .1);
}

.glass { position: relative; height: 100%; max-height: 300px; aspect-ratio: 240 / 617; margin: 0 auto; --liq: #E4F2F4; }
.glass > svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.glass::before {
  content: ""; position: absolute; left: -8%; right: -8%; bottom: -1.5%; height: 4%;
  background: radial-gradient(closest-side, rgba(31, 26, 23, .2), rgba(31, 26, 23, 0));
}
.glass__surface { fill: none; stroke: rgba(255, 255, 255, .75); stroke-width: 2.4; }
.glass__pieces { position: absolute; inset: 0; pointer-events: none; }
.glass__img {
  position: absolute; inset: 0; width: 100%; height: 100%;
  mix-blend-mode: multiply; pointer-events: none; -webkit-user-drag: none;
}
.piece { position: absolute; left: 0; top: 0; width: var(--piece, 29%); height: auto; will-change: transform; }
.syrdrop {
  position: absolute; left: 0; top: 0; width: 7.5%; aspect-ratio: 1; border-radius: 50% 50% 50% 50% / 62% 62% 38% 38%;
  will-change: transform; box-shadow: inset -2px -2px 0 rgba(0, 0, 0, .15);
}
.cube > rect:first-child { stroke: rgba(255, 255, 255, .6); stroke-width: 1; }
.cube__in { fill: rgba(255, 255, 255, .28); stroke: none; }
.cube__hl { stroke: #fff; stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; fill: none; opacity: .9; }
.fizz { fill: none; stroke: rgba(255, 255, 255, .9); stroke-width: 1.1; }
.drop { fill: var(--liq); }
.mix {
  position: absolute; left: 4%; right: 4%; top: 16%; z-index: 4; transform: translateY(10px) scale(.92); opacity: 0;
  background: var(--ink); color: var(--cream); border-radius: 12px; padding: 8px 10px; text-align: center;
  pointer-events: none; transition: opacity .35s, transform .5s cubic-bezier(.34,1.45,.64,1);
}
.mix.is-on { opacity: 1; transform: none; }
.mix__k { display: block; font: 600 11px/1.2 var(--sans); letter-spacing: .12em; text-transform: uppercase; opacity: .8; }
.mix__n { display: block; font: italic 500 13px/1.2 var(--serif); overflow-wrap: anywhere; }
@media (min-width: 1024px) { .mix__n { font-size: 18px; } .mix { padding: 10px 14px; } }

.sum { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.sum__price { font: 900 40px/1 var(--display); letter-spacing: -.04em; font-variant-numeric: tabular-nums; }
.sum__price.is-bump { animation: bump .45s cubic-bezier(.34,1.45,.64,1); }
.sum__kcal { font-size: 15px; font-weight: 600; font-variant-numeric: tabular-nums; }
.sum__note { display: block; font-size: 12px; font-weight: 400; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-2); }
.sum__list { font-size: 13px; line-height: 1.35; color: var(--ink-2); margin: 4px 0 8px; }
.sum__btn { width: 100%; min-height: 48px; padding: 0 16px; }
@keyframes bump { 40% { transform: scale(1.08); } }

.ctrl { display: flex; flex-direction: column; gap: 28px; padding-top: 16px; }
.group__t { display: flex; align-items: baseline; justify-content: space-between; width: 100%; font: 900 22px/1.2 var(--display); letter-spacing: -.02em; padding: 0; margin-bottom: 6px; }
.group__h { font: 400 13px/1 var(--sans); letter-spacing: 0; color: var(--ink-2); }

.row {
  display: grid; grid-template-columns: 48px 1fr auto; align-items: center; gap: 12px;
  padding: 6px 8px; margin: 0 -8px; border-radius: 14px; transition: background-color .3s;
}
.row { position: relative; }
.row + .row::before { content: ""; position: absolute; left: 8px; right: 8px; top: 0; height: 1px; background: rgba(31, 26, 23, .1); }
.row.is-on { background: rgba(31, 26, 23, .05); }
.row.is-on::before, .row.is-on + .row::before { opacity: 0; }
.row__img { width: 48px; height: 48px; object-fit: contain; }
.rows--syr .row__img { width: 48px; height: 48px; }
.row__name { display: flex; flex-direction: column; line-height: 1.2; }
.row__t { font-weight: 600; font-size: 16px; }
.row__k { font-size: 13px; color: var(--ink-2); }
.step { display: flex; align-items: center; gap: 4px; }
.step__b {
  width: 44px; height: 44px; border-radius: 50%; border: 1.5px solid var(--ink); background: transparent;
  display: grid; place-items: center; padding: 0; transition: background-color .2s, color .2s, opacity .2s, transform .25s cubic-bezier(.34,1.45,.64,1);
}
.step__b svg { width: 16px; height: 16px; stroke: currentColor; stroke-width: 2; stroke-linecap: round; fill: none; }
.step__b:hover { background: var(--ink); color: var(--cream); }
.step__b:active { transform: scale(.9); }
.step__b[aria-disabled="true"] { opacity: .3; }
.step__b[aria-disabled="true"]:hover { background: transparent; color: var(--ink); }
.step__n { width: 24px; text-align: center; font: 900 20px/1 var(--display); font-variant-numeric: tabular-nums; }

.seg { display: flex; flex-wrap: wrap; gap: 8px; }
.seg__o span {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 18px; border-radius: 999px;
  border: 1.5px solid var(--ink); font-weight: 600; font-size: 15px; cursor: pointer; transition: background-color .2s, color .2s;
}
.seg__o input:checked + span { background: var(--ink); color: var(--cream); }
.seg__o input:focus-visible + span { outline: 3px solid var(--ink); outline-offset: 3px; }
.seg__o span:hover { background: rgba(31, 26, 23, .08); }
.seg__o input:checked + span:hover { background: var(--ink); }

.group--ice { display: flex; align-items: center; justify-content: space-between; }
.group--ice .group__t { width: auto; margin: 0; }
.switch {
  width: 60px; height: 34px; border-radius: 17px; border: 1.5px solid var(--ink); background: transparent; padding: 0; position: relative;
  transition: background-color .25s;
}
.switch__k {
  position: absolute; left: 4px; top: 4px; width: 23px; height: 23px; border-radius: 50%; background: var(--ink);
  transition: transform .35s cubic-bezier(.34,1.45,.64,1), background-color .25s;
}
.switch[aria-checked="true"] { background: var(--ink); }
.switch[aria-checked="true"] .switch__k { transform: translateX(26px); background: var(--cream); }

@media (max-width: 1023px) and (max-height: 700px) { .panel { height: 220px; } .glass { max-height: 200px; } .sum__price { font-size: 32px; } }
@media (max-width: 1023px) and (max-height: 480px) { .panel { position: static; height: 260px; } }
@media (max-width: 899px) and (max-height: 480px) { .hero { height: auto; min-height: 0; } .hero .hero__stage { min-height: 380px; } }

/* ====================================================== ДОСТАВКА */
.deliv { background: var(--ink); color: var(--cream); padding: 72px var(--pad); }
.deliv :focus-visible { outline-color: var(--cream); }
.deliv__title { font: 900 44px/.95 var(--display); letter-spacing: -.04em; max-width: 12ch; }
.deliv__grid { margin-top: 36px; display: grid; gap: 28px; }
.deliv__item { border-top: 1px solid rgba(255, 248, 234, .2); padding-top: 18px; }
.deliv__item h3 { font: italic 500 28px/1.1 var(--serif); color: var(--flavor); transition: color .6s; }
.deliv__item p { margin-top: 8px; color: rgba(255, 248, 234, .82); max-width: 34ch; }
.deliv__contacts { margin-top: 44px; font-style: normal; display: flex; flex-direction: column; gap: 6px; }
.deliv__contacts a { font: 900 26px/1.3 var(--display); letter-spacing: -.02em; text-decoration: none; background: linear-gradient(currentColor, currentColor) 0 100% / 0 2px no-repeat; transition: background-size .4s; width: fit-content; }
.deliv__contacts a:hover { background-size: 100% 2px; }

/* ====================================================== ФУТЕР */
.foot { background: var(--ink); color: var(--cream); padding: 0 var(--pad) 32px; overflow: hidden; }
.foot__mark { font: 900 17vw/.84 var(--display); letter-spacing: -.06em; color: rgba(255, 248, 234, .1); margin: 0 -.04em 20px; white-space: nowrap; }
.foot__note { font-size: 15px; font-weight: 600; }
.foot__copy { margin-top: 4px; font-size: 14px; color: rgba(255, 248, 234, .72); }

/* ====================================================== ТОСТ */
.toast {
  position: fixed; left: 50%; bottom: max(20px, env(safe-area-inset-bottom)); z-index: 170;
  max-width: min(92vw, 440px); padding: 14px 20px; border-radius: 16px;
  background: var(--ink); color: var(--cream); font-weight: 600; font-size: 15px; line-height: 1.35;
  box-shadow: 0 18px 40px rgba(31, 26, 23, .28);
  transform: translate(-50%, 160%); opacity: 0; transition: transform .5s cubic-bezier(.16,1,.3,1), opacity .3s;
  pointer-events: none;
}
.toast.is-on { transform: translate(-50%, 0); opacity: 1; }

@media (max-width: 359px) {
  :root { --pad: 14px; }
  .wordmark { font-size: 21px; }
  .cart, .burger { width: 42px; height: 42px; }
  .burger span { left: 11px; right: 11px; }
  .top { gap: 8px; }
  .price__v { font-size: 24px; }
  .hero__buy .btn { padding: 0 18px; min-height: 46px; font-size: 15px; }
  .arrow { width: 44px; height: 44px; }
  .dot { width: 24px; }
}

/* ====================================================== ПЛАНШЕТ / ДЕСКТОП */
@media (min-width: 600px) {
  :root { --pad: 32px; }
  .panel { grid-template-columns: 40% 1fr; }
  .deliv__grid { grid-template-columns: repeat(3, 1fr); }
}

@media (min-width: 900px) {
  :root { --pad: 48px; --head: 80px; }
  .wordmark { font-size: 30px; }
  .nav { display: flex; gap: 36px; position: absolute; left: 50%; transform: translateX(-50%); }
  .nav a { font-weight: 600; font-size: 15px; text-decoration: none; padding: 8px 0; background: linear-gradient(currentColor, currentColor) 0 100% / 0 2px no-repeat; transition: background-size .35s; }
  .nav a:hover { background-size: 100% 2px; }
  .burger { display: none; }

  .hero { display: block; min-height: 640px; height: 100vh; }
  .hero__stage { position: absolute; inset: var(--head) 0 0; }
  .title__set { top: 50%; transform: translateY(-58%); align-items: flex-start; }
  .tl--a { align-self: center; }
  .tl--b { align-self: flex-start; }
  .bottle { padding-bottom: 4vh; }
  .ings { --k: 1.45; }
  .bottle__anim { height: 84%; }
  .hero__name { font-size: 32px; }
  .hero__desc { font-size: 16px; }
  .hero__buy { justify-content: flex-start; gap: 24px; }
}

/* окремий блок керування для десктопу — праворуч унизу */
@media (min-width: 900px) {
  .hero__ctrl {
    display: flex; position: absolute; left: auto; right: var(--pad); bottom: 40px; transform: none; gap: 14px;
  }
  .hero__info { position: static; }
  .hero__text, .hero__buy { position: absolute; left: var(--pad); width: 360px; z-index: 7; }
  .hero__text { bottom: 112px; }
  .hero__buy { bottom: 40px; }
  .hero__ctrl { z-index: 7; }
  .hero__count {
    display: block; position: absolute; right: var(--pad); top: calc(var(--head) + 24px); z-index: 7;
    font: 900 15px/1 var(--display); letter-spacing: .02em;
  }
  .hero__hint {
    display: block; position: absolute; right: var(--pad); bottom: 104px; z-index: 7; font-size: 13px; font-weight: 600;
  }
}

@media (min-width: 1024px) {
  .build { padding: 120px var(--pad) 120px; }
  .build__head { display: grid; grid-template-columns: 1fr 1fr; align-items: end; gap: 40px; }
  .build__title { font-size: clamp(72px, 7.6vw, 120px); grid-row: 2; }
  .eyebrow { grid-column: 1; }
  .build__lead { grid-column: 2; grid-row: 2; justify-self: end; margin: 0 0 10px; }
  .build__grid {
    margin-top: 56px; display: grid; grid-template-columns: 1fr minmax(300px, 380px) 1fr; gap: 48px; align-items: start;
  }
  .ctrl--fruits { grid-column: 1; grid-row: 1; padding-top: 0; }
  .panel {
    grid-column: 2; grid-row: 1; top: calc(var(--head) + 24px); margin: 0; padding: 0;
    grid-template-columns: 1fr; box-shadow: none; background: var(--tint); gap: 20px;
  }
  .panel { height: auto; }
  .glass { height: min(44vh, 420px); max-height: none; }
  .sum { align-items: center; text-align: center; order: -1; }
  .build__grid { margin-top: 40px; }
  .sum__price { font-size: 56px; }
  .sum__list { min-height: 2.7em; }
  .ctrl--rest { grid-column: 3; grid-row: 1; padding-top: 0; }
  .deliv { padding: 120px var(--pad); }
  .deliv__title { font-size: 80px; }
  .deliv__contacts { flex-direction: row; gap: 48px; }
  .deliv__contacts a { font-size: 32px; }
}


/* ====================================================== КОШИК */
.btn--line { background: transparent; color: var(--ink); border: 1.5px solid var(--ink); }
.btn--line:hover { background: var(--ink); color: var(--cream); }
.cartx { position: fixed; inset: 0; z-index: 150; }
.cartx[hidden] { display: none; }
.cartx__scrim { position: absolute; inset: 0; background: rgba(31, 26, 23, .45); opacity: 0; transition: opacity .35s; }
.cartx__panel {
  position: absolute; left: 0; right: 0; bottom: 0; max-height: 88vh; max-height: 88svh;
  background: var(--paper); color: var(--ink); border-radius: 22px 22px 0 0;
  display: flex; flex-direction: column; overflow: hidden;
  transform: translateY(100%); transition: transform .45s cubic-bezier(.16,1,.3,1);
  box-shadow: 0 -20px 50px rgba(31, 26, 23, .25);
}
.cartx.is-open .cartx__scrim { opacity: 1; }
.cartx.is-open .cartx__panel { transform: none; }
.cartx__head { display: flex; align-items: center; justify-content: space-between; padding: 18px var(--pad) 10px; flex: none; }
.cartx__title { font: 900 28px/1 var(--display); letter-spacing: -.03em; }
.cartx__close {
  width: 46px; height: 46px; border-radius: 50%; border: 1.5px solid var(--ink); background: transparent; display: grid; place-items: center; padding: 0;
  transition: background-color .2s, color .2s;
}
.cartx__close:hover { background: var(--ink); color: var(--cream); }
.cartx__close svg { width: 20px; height: 20px; stroke: currentColor; stroke-width: 2; stroke-linecap: round; fill: none; }
.cartx__view { display: flex; flex-direction: column; min-height: 0; flex: 1 1 auto; }
.cartx__view--done { display: none; padding: 32px var(--pad) 36px; gap: 12px; align-items: flex-start; }
.cartx__panel.is-done .cartx__view--cart { display: none; }
.cartx__panel.is-done .cartx__view--done { display: flex; }
.cartx__done-t { font: 900 30px/1.05 var(--display); letter-spacing: -.03em; }
.cartx__done-s { color: var(--ink-2); margin-bottom: 12px; }
.cartx__list { overflow-y: auto; padding: 4px var(--pad); flex: 1 1 auto; overscroll-behavior: contain; }
.cartx__empty { display: none; padding: 24px var(--pad) 36px; }
.cartx__panel.is-empty .cartx__empty { display: block; }
.cartx__panel.is-empty .cartx__foot, .cartx__panel.is-empty .cartx__list { display: none; }
.cartx__empty-t { font: 900 30px/1.05 var(--display); letter-spacing: -.03em; }
.cartx__empty-s { color: var(--ink-2); margin-top: 6px; }
.cartx__empty-b { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 20px; }
.ci { display: grid; grid-template-columns: 56px 1fr; gap: 14px; padding: 14px 0; border-top: 1px solid rgba(31, 26, 23, .12); }
.ci:first-child { border-top: 0; }
.ci__thumb { width: 56px; height: 72px; border-radius: 12px; display: grid; place-items: center; overflow: hidden; background: #fff; }
.ci__thumb img { height: 88%; width: auto; }
.ci__thumb--glass { background: #fff; }
.ci__thumb svg { width: 36px; height: 48px; }
.ci__gl { fill: rgba(255, 255, 255, .15); stroke: rgba(31, 26, 23, .45); stroke-width: 1.4; stroke-linejoin: round; }
.ci__hl { stroke: rgba(255, 255, 255, .9); stroke-width: 2; stroke-linecap: round; fill: none; }
.ci__body { min-width: 0; }
.ci__name { font-weight: 600; line-height: 1.25; }
.ci__meta { font-size: 13px; color: var(--ink-2); margin-top: 2px; line-height: 1.35; }
.ci__row { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 12px; margin-top: 8px; }
.ci__sum { font: 900 18px/1 var(--display); font-variant-numeric: tabular-nums; margin-right: auto; }
.ci__del {
  width: 44px; height: 44px; padding: 0; border: 0; border-radius: 50%; background: none; color: var(--ink-2);
  display: grid; place-items: center; transition: background-color .2s, color .2s;
}
.ci__del svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.ci__del:hover { color: var(--ink); background: rgba(31, 26, 23, .08); }
.ci__fly { position: fixed; left: 0; top: 0; z-index: 160; width: 48px; height: 64px; pointer-events: none; box-shadow: 0 10px 20px rgba(31,26,23,.25); }
.cartx__foot { flex: none; padding: 14px var(--pad) max(18px, env(safe-area-inset-bottom)); border-top: 1px solid rgba(31, 26, 23, .12); background: var(--paper); }
.cartx__sum { margin: 0; display: grid; gap: 4px; }
.cartx__sum div { display: flex; justify-content: space-between; font-size: 15px; }
.cartx__sum dd { margin: 0; font-variant-numeric: tabular-nums; font-weight: 600; }
.cartx__sum .cartx__total { margin-top: 4px; font: 900 22px/1.2 var(--display); }
.cartx__sum .cartx__total dd { font-weight: 900; }
.cartx__note { font-size: 13px; color: var(--ink-2); margin: 8px 0 12px; }
.cartx__note span { display: block; color: var(--ink); font-weight: 600; }
.cartx__go { width: 100%; }
@media (min-width: 768px) {
  .cartx__panel {
    left: auto; top: 0; bottom: 0; width: 440px; max-height: none; border-radius: 0;
    transform: translateX(100%); box-shadow: -20px 0 50px rgba(31, 26, 23, .2);
  }
  .cartx__head { padding-top: 26px; }
}
@media (prefers-reduced-motion: reduce) {
  .cartx__panel, .cartx__scrim { transition-duration: .01s; }
}

/* ====================================================== МЕНШЕ РУХУ */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .ing__float, .bottle__float { animation: none; }
  .hero__fx { display: none; }
  .btn, .arrow, .step__b, .switch__k, .dot::before, .toast { transition-duration: .01s; }
  .sum__price.is-bump { animation: none; }
}
