/* Masloma — "Еще не форма, но уже содержание"
   Follows the client's Figma page (Masloma.pdf, a 1920 px wide frame).
   Sizes on desktop are written in frame pixels times --k, so the page keeps the
   frame's proportions at any width; phones get their own layout below 900 px.
   Light grey daylight, ink #191919, olive #8C8D35 for actions, Raleway throughout. */

:root {
  --bg: #f4f4f4;
  --ink: #191919;
  --ink-2: #2a211f;
  --muted: #6b6b6b;
  --faint: #c9c9c9;
  --ghost: #e2e2e2;
  --olive: #8c8d35;
  --olive-dark: #75762b;
  --line: rgba(25, 25, 25, .14);
  --card: #fff;

  --font: "Raleway", system-ui, sans-serif;

  /* one frame pixel; capped so very wide screens do not blow the type up */
  --k: min(calc(100vw / 1920), 1.25px);
  --gutter: calc(100 * var(--k));

  --t-h1: max(42px, calc(96 * var(--k)));
  --t-h2: max(30px, calc(64 * var(--k)));
  --t-body: max(16px, calc(28 * var(--k)));
  --t-small: max(14px, calc(22 * var(--k)));

  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  /* width of the open seed on the stage; the flying seed is sized from it */
  --sw: min(calc(1020 * var(--k)), 70svh * 1198 / 1313);
}

*, *::before, *::after { box-sizing: border-box; }
html { color-scheme: light; }
html, body { overflow-x: clip; }
body {
  margin: 0;
  color: var(--ink);
  font-family: var(--font);
  font-size: var(--t-body);
  font-weight: 500;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  /* daylight from the left third, as in the frame: #f2 at the edge, #fb at a third, #ee at the right */
  background-color: var(--bg);
  background-image: linear-gradient(90deg, #f2f2f2 0%, #fbfbfb 36%, #f6f6f6 60%, #eeeeee 100%);
  background-attachment: fixed;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3 { margin: 0; font-weight: 700; text-wrap: balance; }
p { margin: 0; text-wrap: pretty; }
ul, ol { margin: 0; padding: 0; list-style: none; }
button { font: inherit; color: inherit; }
::selection { background: var(--olive); color: #fff; }
:focus-visible { outline: 2px solid var(--olive); outline-offset: 4px; border-radius: 4px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

.title { font-size: var(--t-h1); line-height: 1.1; letter-spacing: -0.01em; color: var(--ink); }

/* headings split into lines by main.js: each line rises out of its own mask */
.lines .line { display: block; overflow: clip; overflow-clip-margin: .12em; padding-bottom: .04em; }
.lines .line__in { display: block; }

/* ---------------------------------------------------------------- nav */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  display: grid; grid-template-columns: calc(577 * var(--k)) 1fr auto; align-items: center;
  padding: max(18px, calc(96 * var(--k))) var(--gutter) max(14px, calc(30 * var(--k)));
  transition: padding .35s var(--ease-out), background-color .35s ease, box-shadow .35s ease;
}
.nav.is-scrolled {
  padding-top: max(12px, calc(22 * var(--k))); padding-bottom: max(12px, calc(22 * var(--k)));
  background: rgba(246, 246, 246, .86);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  box-shadow: 0 1px 0 var(--line);
}
.nav__logo { display: block; width: clamp(120px, calc(293 * var(--k)), 293px); transition: width .35s var(--ease-out); }
.nav.is-scrolled .nav__logo { width: clamp(110px, calc(200 * var(--k)), 200px); }
.nav__links { display: flex; gap: calc(52 * var(--k)); font-size: var(--t-small); font-weight: 500; }
.nav__links a, .nav__lang a { text-decoration: none; padding: 6px 0; position: relative; }
.nav__links a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 2px; height: 1.5px; background: currentColor;
  transform: scaleX(0); transform-origin: right; transition: transform .3s var(--ease-out);
}
@media (hover: hover) and (pointer: fine) {
  .nav__links a:hover::after { transform: scaleX(1); transform-origin: left; }
}
.nav__lang { display: flex; gap: calc(22 * var(--k)); font-size: max(13px, calc(20 * var(--k))); font-weight: 700; letter-spacing: .04em; }
.nav__lang a { color: var(--faint); transition: color .2s ease; }
.nav__lang a:hover { color: var(--ink); }
.nav__lang a[aria-current="true"] { color: var(--ink); text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 1.5px; }
.nav__burger, .nav__menu { display: none; }

/* ---------------------------------------------------------------- growth: seed → sprout → plant → flower
   One pinned screen. The ball of earth is the same in all four pictures, so they are laid over
   each other on it (box = the ball, each picture offset by where its ball sits): the next stage
   grows up out of the earth, the box moves side to side and steps back as the plant gets taller. */
.gs { position: relative; height: 100svh; min-height: 560px; overflow: hidden; }
.fall { position: relative; height: calc(var(--h) * var(--k)); }
.fall { --h: 900; }

.gs__plant {
  --D: min(calc(612 * var(--k)), 60svh);
  position: absolute; width: var(--D); height: var(--D);
  left: calc(72.9% - var(--D) / 2); top: calc(60% - var(--D) / 2);
  transform-origin: 50% 100%; will-change: transform;
}
.gs__img {
  position: absolute; max-width: none; height: auto;
  --g: 0;
  -webkit-mask-image: linear-gradient(to top, #000 calc(var(--g) * 125% - 25%), transparent calc(var(--g) * 125%));
          mask-image: linear-gradient(to top, #000 calc(var(--g) * 125% - 25%), transparent calc(var(--g) * 125%));
}
.gs__img--1 { --g: 1; width: 110.55%; left: -5.53%; top: -3.77%; }
.gs__img--2 { width: 110.55%; left: -5.53%; top: -41.96%; }
.gs__img--3 { width: 110.62%; left: -5.53%; top: -112.39%; }
.gs__img--4 { width: 110.64%; left: -5.58%; top: -157.38%; }

.gs__slide {
  position: absolute; z-index: 2; top: 0; bottom: 0; left: var(--gutter); width: calc(860 * var(--k));
  display: flex; flex-direction: column; justify-content: center; padding-top: 8svh; pointer-events: none;
}
.gs__slide a { pointer-events: auto; }
.gs__slide--right { left: calc(960 * var(--k)); }
.gs__lead { margin-top: calc(60 * var(--k)); }
.hero__title { font-size: var(--t-h1); line-height: 1.1; letter-spacing: -0.01em; }
.step__title { font-size: var(--t-h2); line-height: 1.16; letter-spacing: -0.005em; }
/* before the scroll story runs, only the first words are up (the script hides the rest; until it
   has loaded they are simply not shown) */
.js:not(.motion):not(.no-motion) .gs__slide:not(.gs__slide--1) { visibility: hidden; }
.motion .gs__slide:not(.gs__slide--1) .gs__lead { opacity: 0; visibility: hidden; }

/* bits of earth: frame pixels from the top-left of the screen (or of the section) */
.crumb { position: absolute; left: calc(var(--x) / 1920 * 100%); top: calc(var(--y) / var(--h) * 100%); width: calc(var(--w) * var(--k)); pointer-events: none; }
.gs .crumb { top: calc(var(--y) / 1080 * 100%); }
.crumb img { width: 100%; rotate: var(--r, 0deg); animation: bob 7s ease-in-out infinite; }
.crumb:nth-of-type(2n) img { animation-duration: 8.6s; animation-delay: -2s; }
.crumb:nth-of-type(3n) img { animation-duration: 6.2s; animation-delay: -4s; }
@keyframes bob { 0%, 100% { transform: translateY(0) rotate(0deg); } 50% { transform: translateY(-12px) rotate(4deg); } }

.btn-line {
  display: inline-flex; align-items: center; gap: calc(22 * var(--k)); align-self: flex-start;
  margin-top: calc(106 * var(--k)); padding: 0 calc(46 * var(--k));
  height: max(52px, calc(90 * var(--k))); min-width: max(300px, calc(596 * var(--k)));
  justify-content: center;
  border: 2px solid var(--ink); border-radius: max(10px, calc(16 * var(--k)));
  font-size: max(15px, calc(30 * var(--k))); font-weight: 600; text-transform: uppercase; letter-spacing: .01em; text-decoration: none;
  transition: background-color .25s ease, color .25s ease, scale .16s ease-out;
}
.btn-line svg { width: calc(34 * var(--k)); min-width: 20px; height: auto; fill: none; stroke: currentColor; stroke-width: 2; transition: transform .3s var(--ease-out); }
.btn-line:active { scale: .98; }
@media (hover: hover) and (pointer: fine) {
  .btn-line:hover { background: var(--ink); color: #fff; }
  .btn-line:hover svg { transform: translateX(6px); }
}

/* no scroll story: the four texts one under another, the seed in its ball beside the first */
.no-motion .gs { height: auto; overflow: visible; padding: 18svh 0 8svh; display: grid; gap: 10svh; }
.no-motion .gs__slide { position: relative; left: auto; top: auto; bottom: auto; width: auto; padding: 0 var(--gutter); }
.no-motion .gs__slide--right { padding-left: 50%; }
.no-motion .gs__img:not(.gs__img--1) { display: none; }
.no-motion .gs__plant { top: 14svh; }

/* one seed leaves the flower head, spins and grows on its way down, and lands on the husk of the
   open seed (same place, size and angle: -22.2deg, 104.8% of the open seed's width long) */
.flyseed {
  position: fixed; left: 0; top: 0; z-index: 5; pointer-events: none; visibility: hidden;
  width: calc(var(--sw) * 0.4777); will-change: transform;
}
.flyseed img { width: 100%; filter: drop-shadow(0 26px 24px rgba(0,0,0,.14)); }
.no-motion .flyseed { display: none; }
/* the open seed in the page flow: only when the scroll story does not run */
.fall__oil { position: absolute; left: 50%; bottom: 0; width: calc(700 * var(--k)); translate: -50% 30%; }
.motion .fall__oil { display: none; }

/* ---------------------------------------------------------------- story: dive into the oil, come out on the label */
.story { position: relative; }
.story__stage { position: sticky; top: 0; height: 100svh; overflow: hidden; }
.story__seed {
  position: absolute; width: var(--sw); max-width: none;
  left: calc(50% - var(--sw) / 2); top: calc(50% - var(--sw) * 1313 / 1198 / 2);
  opacity: 0; transform-origin: 62% 52%; will-change: transform, opacity;
}
/* before the dive only the open seed is on stage; the timeline takes over from here */
.motion .story__bottle, .motion .story__word, .motion .vol { opacity: 0; }
.story__word {
  /* the word is 4.24 times its font size long: 19svh keeps it to 80% of any screen's height,
     centred between the header and the 1 / 3 / 5 л switch */
  position: absolute; right: calc(80 * var(--k)); top: 6svh; bottom: 12svh; height: max-content; margin: auto 0;
  font-size: min(calc(330 * var(--k)), 19svh); font-weight: 600; line-height: .8; letter-spacing: -0.02em;
  color: #e6e6e6; user-select: none; white-space: nowrap;
}
.story__word > span { display: block; writing-mode: vertical-rl; rotate: 180deg; }
.story__bottle {
  --bh: min(calc(1100 * var(--k)), 68svh);
  position: absolute; margin: 0; height: var(--bh); width: calc(var(--bh) * 2000 / 3340);
  /* the bottles stand on a floor at 87% of the screen (the 1 l file has 4.67% empty below) */
  left: calc(72.4% - var(--bh) * 1000 / 3340); top: calc(87% - var(--bh) * 0.9533);
  will-change: transform;
  /* the label's middle: the dive starts zoomed in here */
  transform-origin: 50% 63%;
}
.story__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; opacity: 0; transition: opacity .45s var(--ease-out), transform .6s var(--ease-out); transform: translateY(14px) scale(.97); }
.story__img.is-on { opacity: 1; transform: none; }
/* the 1 l file has 4.67% of empty space above and below the bottle: 3 and 5 l stand upright
   in the same height and on the same floor, so switching keeps the bottle in place */
.story__img[data-vol="3"], .story__img[data-vol="5"] { inset-inline: 0; object-position: 50% 100%; transform-origin: 50% 100%; }
/* bigger packs are bigger: 3 l is 12% and 5 l 25% taller than the 1 l bottle, on the same floor */
.story__img[data-vol="3"] { height: calc(90.66% * 1.12); top: calc(95.33% - 90.66% * 1.12); }
.story__img[data-vol="5"] { height: calc(90.66% * 1.25); top: calc(95.33% - 90.66% * 1.25); }
.vol { position: absolute; right: calc(90 * var(--k)); bottom: max(18px, 4svh); display: flex; gap: calc(36 * var(--k)); z-index: 3; }
.vol button {
  background: none; border: 0; padding: 4px 2px; cursor: pointer;
  font-size: max(22px, calc(64 * var(--k))); font-weight: 700; line-height: 1; color: var(--faint);
  text-decoration: underline; text-decoration-color: transparent; text-underline-offset: .14em; text-decoration-thickness: .05em;
  transition: color .25s ease, text-decoration-color .25s ease;
}
.vol button:hover { color: var(--muted); }
.vol button[aria-pressed="true"] { color: var(--ink); text-decoration-color: currentColor; }

.story__body { position: relative; margin-top: -100svh; pointer-events: none; z-index: 2; }
.story__dive { height: 0; }
.motion .story__dive { height: 170svh; }
.story__text { pointer-events: auto; width: 50%; padding: 22svh 0 22svh var(--gutter); }
/* the chapters come in only once the bottle has landed */
.motion .story__text { padding-top: 78svh; }
.chapters { margin-top: calc(60 * var(--k)); display: grid; gap: calc(76 * var(--k)); padding-left: calc(70 * var(--k)); }
.chapter { position: relative; color: var(--ghost); transition: color .5s var(--ease-out); }
.chapter h3 { position: relative; font-size: max(20px, calc(44 * var(--k))); font-weight: 600; line-height: 1.2; text-transform: uppercase; color: var(--faint); transition: color .5s var(--ease-out); }
.chapter h3::before { content: "—"; position: absolute; left: calc(-70 * var(--k)); top: 0; }
.chapter p { margin-top: calc(28 * var(--k)); max-width: 30em; }
.chapter p + p { margin-top: 1.5em; }
.chapter.is-active, .chapter.is-active h3 { color: var(--ink); }
.no-motion .chapter, .no-motion .chapter h3 { color: var(--ink); }

/* ---------------------------------------------------------------- stats over the factory photo */
.stats { position: relative; height: calc(1200 * var(--k)); overflow: hidden; color: #fff; scroll-margin-top: 0; }
.stats__bg { position: absolute; inset: -6% 0; width: 100%; height: 112%; object-fit: cover; max-width: none; will-change: transform; }
/* the factory video is bright steel: a shade keeps the white numbers readable */
.stats::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(12,14,16,.66), rgba(12,14,16,.4) 50%, rgba(12,14,16,.55)); pointer-events: none; }
.stat { position: absolute; z-index: 2; width: calc(520 * var(--k)); }
.stat--1 { left: var(--gutter); top: calc(141 * var(--k)); }
.stat--2 { left: calc(1280 * var(--k)); top: calc(442 * var(--k)); }
.stat--3 { left: calc(690 * var(--k)); top: calc(746 * var(--k)); }
.stat__unit { font-size: max(15px, calc(32 * var(--k))); font-weight: 600; }
.stat__num { font-size: max(48px, calc(104 * var(--k))); font-weight: 700; line-height: 1.12; letter-spacing: -0.01em; white-space: nowrap; }
.stat__text { margin-top: calc(26 * var(--k)); font-size: max(15px, calc(24 * var(--k))); line-height: 1.45; max-width: 21em; }

/* ---------------------------------------------------------------- perks */
.perks { padding: calc(283 * var(--k)) 0 calc(140 * var(--k)); }
.perks > .title { padding: 0 var(--gutter); }
.perks__body { display: grid; grid-template-columns: calc(720 * var(--k)) 1fr; align-items: center; margin-top: calc(110 * var(--k)); min-height: min(84svh, calc(1100 * var(--k))); }
.perks__bottle { justify-self: center; height: min(80svh, calc(1100 * var(--k))); aspect-ratio: 759 / 1428; }
.perks__bottle img { width: 100%; height: 100%; object-fit: contain; filter: drop-shadow(0 30px 30px rgba(0,0,0,.08)); will-change: transform; }
.perks__list { display: grid; gap: calc(58 * var(--k)); padding-right: var(--gutter); padding-left: calc(60 * var(--k)); }
.perk { display: grid; grid-template-columns: calc(60 * var(--k)) calc(496 * var(--k)) 1fr; align-items: start; color: var(--ghost); transition: color .45s var(--ease-out); }
.perk__n { font-size: max(12px, calc(20 * var(--k))); padding-top: .55em; }
.perk h3 { font-size: max(18px, calc(46 * var(--k))); font-weight: 700; line-height: 1.04; text-transform: uppercase; letter-spacing: -0.005em; }
.perk p { font-size: max(14px, calc(24 * var(--k))); line-height: 1.3; padding-top: .2em; }
.perk.is-near { color: #a3a3a3; }
.perk.is-active { color: var(--ink); }
.no-motion .perk { color: var(--ink); }

/* ---------------------------------------------------------------- production: photo panels stack up */
.made { padding-top: calc(260 * var(--k)); }
.made__title { padding: 0 var(--gutter); margin-bottom: calc(126 * var(--k)); }
.panel { position: sticky; top: 0; height: 100svh; min-height: 520px; overflow: hidden; color: #fff; background: #222; }
.panel__bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; max-width: none; will-change: transform; }
.panel::before { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(180deg, rgba(0,0,0,.05) 30%, rgba(0,0,0,.45) 100%); pointer-events: none; }
.panel__shade { position: absolute; inset: 0; z-index: 4; background: #000; opacity: 0; pointer-events: none; }
.panel__copy { position: absolute; z-index: 2; left: calc(187 * var(--k)); right: var(--gutter); bottom: max(40px, calc(100 * var(--k))); }
.panel__n { font-size: max(14px, calc(26 * var(--k))); }
.panel__title { margin-top: calc(14 * var(--k)); font-size: var(--t-h1); line-height: 1.1; letter-spacing: -0.01em; max-width: 15em; }
.panel__title span { color: rgba(255, 255, 255, .55); }
/* with the scroll story the heading fills with white word by word as the panel comes up */
.motion .panel__title span { color: inherit; }
.motion .panel__title .w { color: rgba(255, 255, 255, .3); }
.panel__text { margin-top: calc(44 * var(--k)); }
/* three marks on the left; the one level with the text is this panel's */
.panel__rail { position: absolute; left: calc(-87 * var(--k)); top: 0; bottom: 0; width: max(2px, calc(4 * var(--k))); }
.panel__rail i { position: absolute; left: 0; width: 100%; height: 100%; border-radius: 2px; background: rgba(255, 255, 255, .32); }
.panel__rail i:nth-child(1) { top: calc((1 - var(--i)) * (100% + 12px)); }
.panel__rail i:nth-child(2) { top: calc((2 - var(--i)) * (100% + 12px)); }
.panel__rail i:nth-child(3) { top: calc((3 - var(--i)) * (100% + 12px)); }
.panel[style*="--i:1"] .panel__rail i:nth-child(1),
.panel[style*="--i:2"] .panel__rail i:nth-child(2),
.panel[style*="--i:3"] .panel__rail i:nth-child(3) { background: #fff; }

/* ---------------------------------------------------------------- geography */
.geo { padding: calc(250 * var(--k)) 0 calc(140 * var(--k)); }
.geo__head { display: grid; grid-template-columns: calc(893 * var(--k)) 1fr; padding: 0 var(--gutter); align-items: start; }
.geo__text { display: grid; gap: 1.5em; padding-top: calc(52 * var(--k)); max-width: calc(820 * var(--k)); }
.geo__text b { font-weight: 700; }
.geo__map { position: relative; margin-top: calc(150 * var(--k)); padding-left: calc(172 * var(--k)); }
.geo__group { position: absolute; left: var(--gutter); top: 0; width: calc(530 * var(--k)); z-index: 2; }
.kz { display: block; width: calc(1577 * var(--k)); height: auto; overflow: visible; }
.kz__halo { fill: var(--olive); opacity: .22; }
.kz__ring { fill: var(--olive); opacity: .45; }
.kz__dot { fill: var(--olive); }
.kz__wave { fill: none; stroke: var(--olive); stroke-width: 2; opacity: 0; transform-box: fill-box; transform-origin: center; animation: wave 2.8s cubic-bezier(0.22, 0.61, 0.36, 1) infinite; }
.kz__wave--late { animation-delay: 1.4s; }
@keyframes wave { 0% { transform: scale(.7); opacity: .7; } 100% { transform: scale(2.6); opacity: 0; } }
.kz__city { font-family: var(--font); font-size: 28px; font-weight: 500; fill: var(--ink-2); }

/* ---------------------------------------------------------------- partners */
.partners { padding: calc(140 * var(--k)) var(--gutter) calc(140 * var(--k)); scroll-margin-top: 80px; }
.partners__grid { display: grid; grid-template-columns: repeat(3, calc(510 * var(--k))); justify-content: center; margin-top: calc(110 * var(--k)); }
.partners__grid li { height: calc(214 * var(--k)); min-height: 90px; display: grid; place-items: center; }
.partners__grid img { height: max(28px, calc(56 * var(--k))); width: auto; transition: transform .3s var(--ease-out); }
.partners__grid li:last-child img { height: max(20px, calc(40 * var(--k))); }
@media (hover: hover) and (pointer: fine) { .partners__grid li:hover img { transform: scale(1.06); } }

/* ---------------------------------------------------------------- contact */
.contact { padding: calc(10 * var(--k)) var(--gutter) calc(280 * var(--k)); scroll-margin-top: 80px; }
.contact__card { display: grid; grid-template-columns: 1fr calc(731 * var(--k)); gap: 48px; background: var(--card); padding: calc(44 * var(--k)) calc(72 * var(--k)) calc(64 * var(--k)); }
.contact__title { line-height: 1.1; }
.contact__lead { margin-top: calc(64 * var(--k)); font-size: max(15px, calc(24 * var(--k))); max-width: 21em; }
.form { display: grid; gap: calc(26 * var(--k)); padding-top: calc(12 * var(--k)); }
.field { position: relative; display: block; }
.field input, .field textarea {
  display: block; width: 100%; font: inherit; font-size: max(16px, calc(24 * var(--k))); color: var(--ink);
  height: max(50px, calc(70 * var(--k))); padding: 0 calc(30 * var(--k)); padding-left: max(20px, calc(30 * var(--k)));
  border-radius: 999px; border: 1px solid #8f8f8f; background: #fff;
  transition: border-color .2s ease, box-shadow .2s ease;
}
.field textarea { padding-top: max(13px, calc(19 * var(--k))); resize: none; line-height: 1.3; overflow: hidden; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--olive); box-shadow: 0 0 0 3px rgba(140, 141, 53, .18); }
.field textarea::placeholder { color: #8b8b8b; }
.field__label {
  position: absolute; left: max(21px, calc(31 * var(--k))); top: 50%; translate: 0 -50%;
  font-size: max(16px, calc(24 * var(--k))); color: #8b8b8b; pointer-events: none; transition: opacity .15s ease;
}
.field__label i, .topics legend i { color: #d7261a; font-style: normal; }
.field:focus-within .field__label, .field.is-filled .field__label { opacity: 0; }
.field.is-error input, .field.is-error textarea { border-color: #d7261a; }
.topics { border: 0; padding: 0; margin: calc(8 * var(--k)) 0 0; display: grid; gap: calc(14 * var(--k)); }
.topics legend { padding: 0; margin-bottom: calc(16 * var(--k)); font-size: max(14px, calc(20 * var(--k))); }
.topics label, .consent { display: flex; gap: calc(16 * var(--k)); align-items: center; font-size: max(15px, calc(22 * var(--k))); cursor: pointer; padding-left: calc(30 * var(--k)); }
.topics input, .consent input {
  appearance: none; -webkit-appearance: none; flex: none;
  width: max(20px, calc(30 * var(--k))); height: max(20px, calc(30 * var(--k))); margin: 0; border-radius: 50%;
  border: 1px solid #c4c4c4; background: #fff; display: grid; place-items: center; cursor: pointer;
}
.topics input::after, .consent input::after { content: ""; width: 50%; height: 50%; border-radius: 50%; background: var(--ink); transform: scale(0); transition: transform .15s ease-out; }
.topics input:checked::after, .consent input:checked::after { transform: scale(1); }
.consent { align-items: flex-start; font-size: max(13px, calc(20 * var(--k))); color: var(--muted); line-height: 1.4; margin-top: calc(10 * var(--k)); }
.consent.is-error { color: #d7261a; }
.btn {
  font: inherit; font-weight: 600; font-size: max(16px, calc(26 * var(--k))); color: #fff;
  height: max(50px, calc(70 * var(--k))); border: 0; border-radius: 999px; cursor: pointer;
  background: var(--olive); transition: background-color .2s ease, scale .16s ease-out;
}
.btn:hover { background: var(--olive-dark); }
.btn:active { scale: .98; }
.form__note { text-align: center; font-size: max(12px, calc(16 * var(--k))); color: var(--muted); }
.form__note.is-error { color: #d7261a; font-size: max(14px, calc(20 * var(--k))); }
.form__note.is-ok { color: var(--ink); font-size: max(14px, calc(20 * var(--k))); }

/* ---------------------------------------------------------------- recipes */
.recipes { padding: 0 var(--gutter) calc(290 * var(--k)); }
.recipes__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: calc(50 * var(--k)); margin-top: calc(116 * var(--k)); }
.cat { display: block; text-decoration: none; }
.cat__img { display: block; aspect-ratio: 540 / 336; overflow: hidden; background: #e6e6e6; }
.cat__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s var(--ease-out); }
.cat__name { display: block; margin-top: calc(40 * var(--k)); font-size: max(20px, calc(46 * var(--k))); font-weight: 600; line-height: 1.1; text-transform: uppercase; transition: color .25s ease; }
@media (hover: hover) and (pointer: fine) {
  .cat:hover .cat__img img { transform: scale(1.05); }
  .cat:hover .cat__name { color: var(--olive); }
}
.cat:focus-visible { outline-offset: 8px; }

/* ---------------------------------------------------------------- footer */
.footer { background: #e9e9e9; color: var(--ink-2); padding: calc(110 * var(--k)) var(--gutter) calc(98 * var(--k)); font-size: max(14px, calc(20 * var(--k))); }
.footer__top { display: grid; grid-template-columns: calc(587 * var(--k)) calc(445 * var(--k)) calc(469 * var(--k)) 1fr; align-items: start; }
.footer__logo { display: block; width: clamp(130px, calc(293 * var(--k)), 293px); }
.footer__col { display: grid; gap: calc(20 * var(--k)); line-height: 1.15; }
.footer__col b { font-weight: 700; }
.footer__col a { text-decoration: none; }
.footer__col a:hover { text-decoration: underline; text-underline-offset: 3px; }
.footer__group { margin-top: calc(85 * var(--k)); width: max(200px, calc(370 * var(--k))); }
.footer__bottom { display: grid; grid-template-columns: calc(587 * var(--k)) 1fr auto; gap: 16px; margin-top: calc(48 * var(--k)); }
.footer__bottom a { text-decoration: none; }
.footer__bottom a:hover { text-decoration: underline; }

/* ---------------------------------------------------------------- recipes page (shared card + catalogue) */
.page-recipes { padding-top: 0; }
.page-recipes .nav { position: sticky; }
.rp { padding: calc(80 * var(--k)) var(--gutter) calc(200 * var(--k)); min-height: 70vh; }
.rp-hero { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 4vw; align-items: end; }
.rp-hero__lead { color: var(--muted); max-width: 30em; padding-bottom: .4em; }
.rp-filters { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 24px; margin-top: calc(80 * var(--k)); padding-top: 24px; border-top: 1px solid var(--line); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  font: inherit; font-size: 15px; font-weight: 600; cursor: pointer;
  padding: 10px 18px; border-radius: 999px; border: 0;
  background: #fff; color: var(--ink); box-shadow: inset 0 0 0 1px var(--line);
  transition: background-color .2s ease, color .2s ease, box-shadow .2s ease;
}
.chip:hover { box-shadow: inset 0 0 0 1px var(--olive); }
.chip[aria-pressed="true"] { background: var(--olive); color: #fff; box-shadow: none; }
.chip--soft[aria-pressed="true"] { background: var(--ink); }
.search { margin-left: auto; position: relative; flex: 1 1 260px; max-width: 380px; }
.search svg { position: absolute; left: 16px; top: 50%; translate: 0 -50%; width: 18px; height: 18px; fill: none; stroke: var(--muted); stroke-width: 2; stroke-linecap: round; }
.search input { width: 100%; font: inherit; font-size: 15px; padding: 11px 18px 11px 44px; border-radius: 999px; border: 1px solid var(--line); background: #fff; color: var(--ink); }
.search input:focus { outline: none; border-color: var(--olive); box-shadow: 0 0 0 3px rgba(140, 141, 53, .18); }
.rp-count { margin: 28px 0 16px; font-size: 14px; color: var(--muted); }
.rp-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: calc(50 * var(--k)) calc(50 * var(--k)); }
.rp-empty { padding: 8vh 0; text-align: center; display: grid; gap: 18px; justify-items: center; color: var(--muted); }
.btn--ghost { display: inline-block; height: auto; padding: 14px 30px; text-decoration: none; background: transparent; color: var(--olive); box-shadow: inset 0 0 0 1.5px var(--olive); font-size: 16px; }
.btn--ghost:hover { background: var(--olive); color: #fff; }

.rc { display: grid; grid-template-rows: auto 1fr; text-decoration: none; color: var(--ink); }
.rc__visual { aspect-ratio: 540 / 336; background: #e6e6e6 center / cover no-repeat; transition: transform .7s var(--ease-out); }
.rc__wrap { overflow: hidden; }
.rc__body { padding: 22px 0 0; display: grid; gap: 8px; align-content: start; }
.rc__title { font-size: max(20px, calc(34 * var(--k))); font-weight: 600; line-height: 1.15; text-transform: uppercase; transition: color .25s ease; }
.rc__meta { display: flex; flex-wrap: wrap; gap: 6px 18px; font-size: 14px; color: var(--muted); }
@media (hover: hover) and (pointer: fine) {
  .rc:hover .rc__visual { transform: scale(1.05); }
  .rc:hover .rc__title { color: var(--olive); }
}

/* one recipe */
.rd__back { display: inline-flex; align-items: center; gap: 8px; text-decoration: none; font-weight: 600; color: var(--olive); font-size: 16px; }
.rd__back svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; }
.rd__head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 4vw; align-items: center; margin-top: 4vh; }
.rd__lead { margin-top: 22px; color: var(--muted); max-width: 30em; }
.rd__facts { display: flex; flex-wrap: wrap; margin-top: 34px; }
.rd__facts li { display: grid; gap: 2px; padding: 0 28px; border-left: 1px solid var(--line); }
.rd__facts li:first-child { padding-left: 0; border-left: 0; }
.rd__facts b { font-size: max(18px, calc(28 * var(--k))); font-weight: 700; }
.rd__facts span { font-size: 14px; color: var(--muted); }
.rd__visual .rc__visual { aspect-ratio: 5 / 4; }
.rd__body { display: grid; grid-template-columns: minmax(280px, 420px) minmax(0, 1fr); gap: 5vw; margin-top: 9vh; align-items: start; }
.rd__products { position: sticky; top: 110px; background: #fff; padding: 28px; }
.rd__products-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 18px; }
.rd__products h2, .rd__steps h2 { font-size: max(22px, calc(36 * var(--k))); font-weight: 700; text-transform: uppercase; }
.stepper { display: inline-flex; align-items: center; gap: 4px; background: #f1f1f1; border-radius: 999px; padding: 4px; }
.stepper button { width: 34px; height: 34px; border-radius: 50%; border: 0; background: #fff; color: var(--ink); font: inherit; font-size: 20px; line-height: 1; cursor: pointer; }
.stepper button:hover { background: var(--olive); color: #fff; }
.stepper output { min-width: 86px; text-align: center; font-size: 14px; font-weight: 600; font-variant-numeric: tabular-nums lining-nums; }
.rd__list { display: grid; grid-template-columns: 22px minmax(72px, max-content) minmax(0, 1fr); column-gap: 14px; font-size: 16px; }
.rd__list li { display: grid; grid-column: 1 / -1; grid-template-columns: subgrid; }
.rd__list li + li { border-top: 1px solid var(--line); }
.rd__list label { display: grid; grid-column: 1 / -1; grid-template-columns: subgrid; align-items: baseline; padding: 12px 0; cursor: pointer; }
.rd__list input { appearance: none; -webkit-appearance: none; width: 20px; height: 20px; margin: 0; border-radius: 6px; border: 1.5px solid #c4c4c4; align-self: center; display: grid; place-items: center; cursor: pointer; }
.rd__list input::after { content: ""; width: 10px; height: 6px; border-left: 2px solid #fff; border-bottom: 2px solid #fff; rotate: -45deg; translate: 0 -1px; transform: scale(0); transition: transform .15s ease-out; }
.rd__list input:checked { background: var(--olive); border-color: var(--olive); }
.rd__list input:checked::after { transform: scale(1); }
.rd__list input:checked ~ span { color: var(--muted); text-decoration: line-through; }
.rd__qty { font-weight: 700; font-variant-numeric: tabular-nums lining-nums; white-space: nowrap; }
.rd__hint { margin-top: 14px; font-size: 13px; color: var(--muted); }
.rd__steps ol { counter-reset: s; margin-top: 26px; display: grid; gap: 30px; }
.rd__steps li { counter-increment: s; display: grid; grid-template-columns: 64px 1fr; gap: 18px; align-items: start; }
.rd__steps li::before { content: counter(s); font-size: 52px; font-weight: 700; line-height: .9; color: var(--olive); font-variant-numeric: lining-nums; }
.rd__steps li p { padding-top: 6px; max-width: 34em; }
.rd__tip { margin-top: 44px; display: grid; grid-template-columns: 120px 1fr; gap: 24px; align-items: center; background: #fff; padding: 22px 26px; }
.rd__tip img { width: 120px; }
.rd__tip p { font-size: max(15px, calc(22 * var(--k))); }
.rd__more { margin-top: 14vh; }
.rd__more-title { margin-bottom: 5vh; }
::view-transition-old(root), ::view-transition-new(root) { animation-duration: .28s; }

/* ================================================================ phones and small tablets */
@media (max-width: 900px) {
  :root { --sw: 88vw; --gutter: 20px; --t-h1: clamp(34px, 10.4vw, 52px); --t-h2: clamp(28px, 8vw, 40px); --t-body: 16px; }

  .nav { grid-template-columns: auto 1fr auto; padding: 14px 20px; }
  .nav.is-scrolled { padding: 10px 20px; }
  .nav__logo, .nav.is-scrolled .nav__logo { width: 116px; }
  .nav__links, .nav > .nav__lang { display: none; }
  .nav__burger {
    display: grid; gap: 6px; grid-column: 3; width: 44px; height: 44px; place-content: center;
    background: none; border: 0; cursor: pointer; margin-right: -10px;
  }
  .nav__burger span { display: block; width: 24px; height: 2px; background: var(--ink); transition: transform .2s ease; }
  .nav__burger[aria-expanded="true"] span:first-child { transform: translateY(4px) rotate(45deg); }
  .nav__burger[aria-expanded="true"] span:last-child { transform: translateY(-4px) rotate(-45deg); }
  .nav__menu:not([hidden]) { grid-column: 1 / -1; display: grid; gap: 4px; padding: 12px 0 6px; font-size: 18px; font-weight: 600; }
  .nav__menu a { text-decoration: none; padding: 10px 0; border-top: 1px solid var(--line); }
  .nav__menu-lang { display: flex; gap: 22px; padding: 14px 0 4px; border-top: 1px solid var(--line); font-size: 16px; font-weight: 700; }
  .nav__menu .nav__menu-lang a { border-top: 0; padding: 6px 0; color: var(--faint); }
  .nav__menu .nav__menu-lang a[aria-current="true"] { color: var(--ink); text-decoration: underline; text-underline-offset: 4px; }
  .nav:has(.nav__menu:not([hidden])) { background: #f6f6f6; box-shadow: 0 1px 0 var(--line); }

  /* growth: words at the top, the ball of earth at the bottom, the plant grows up towards the words */
  .crumb { width: calc(var(--w) / 1920 * 220vw); }
  .fall .crumb { display: none; }
  .gs__plant { --D: min(70vw, 40svh); left: calc(50% - var(--D) / 2); top: calc(96% - var(--D)); }
  .gs__slide, .gs__slide--right { left: 20px; right: 20px; width: auto; justify-content: flex-start; padding-top: 96px; }
  .gs__lead { margin-top: 16px; max-width: 26em; }
  .btn-line { margin-top: 26px; min-width: 0; width: 100%; max-width: 360px; height: 54px; font-size: 15px; gap: 14px; }
  .btn-line svg { width: 22px; }
  .no-motion .gs__slide--right { padding-left: 20px; }
  .fall { height: 70svh; }
  .fall__oil { width: 80vw; }

  /* story: the stage is pinned by script while the dive plays, the text follows below */
  .story__stage { position: relative; }
  .story__body { margin-top: 0; pointer-events: auto; }
  .motion .story__dive { height: 0; }
  .story__text, .motion .story__text { width: auto; padding: 30px 20px 60px; }
  .story__bottle { --bh: 68svh; left: calc(50% - var(--bh) * 1000 / 3340); }
  .story__word { right: 8px; font-size: min(19svh, 30vw); }
  .vol { right: auto; left: 20px; bottom: 22px; gap: 22px; }
  .vol button { font-size: 26px; }
  .chapters { padding-left: 30px; gap: 34px; }
  .chapter h3 { font-size: 20px; }
  .chapter h3::before { left: -30px; }
  .chapter p { margin-top: 12px; }
  .chapter, .chapter h3 { color: var(--ink) !important; }

  .stats { height: auto; padding: 70px 20px 60px; display: grid; gap: 40px; }
  .stat { position: relative; left: auto !important; top: auto !important; width: auto; }
  .stat__text { margin-top: 10px; }

  .perks { padding: 80px 0 40px; }
  .perks__body { grid-template-columns: 1fr; min-height: 0; margin-top: 20px; }
  .perks__bottle { height: 64vw; max-height: 380px; margin: 10px 0 20px; }
  .perks__list { padding: 0 20px; gap: 28px; }
  .perk { grid-template-columns: 36px 1fr; row-gap: 8px; }
  .perk p { grid-column: 2; }
  .perk__n { padding-top: .3em; }

  .made { padding-top: 70px; }
  .made__title { margin-bottom: 30px; }
  .panel { height: 100svh; }
  .panel__copy { left: 44px; right: 20px; bottom: 40px; }
  .panel__rail { left: -24px; }
  .panel__title { font-size: clamp(28px, 8.4vw, 40px); }
  .panel__text { margin-top: 14px; font-size: 15px; }

  .geo { padding: 80px 0 40px; }
  .geo__head { grid-template-columns: 1fr; gap: 18px; }
  .geo__text { padding-top: 0; max-width: none; gap: 1em; }
  .geo__map { margin-top: 36px; padding: 0 20px; }
  .geo__group { position: relative; left: auto; width: 230px; margin-bottom: 18px; }
  .kz { width: 100%; }
  .kz__city { font-size: 56px; }

  .partners { padding: 60px 20px; }
  .partners__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); margin-top: 30px; justify-content: stretch; }
  .partners__grid li { height: 96px; min-height: 0; }
  .partners__grid img { max-width: 80%; }

  .contact { padding: 10px 0 70px; }
  .contact__card { grid-template-columns: 1fr; gap: 26px; padding: 34px 20px 30px; }
  .contact__lead { margin-top: 14px; }
  .form { gap: 14px; }
  .topics label, .consent { padding-left: 4px; gap: 12px; }

  .recipes { padding-bottom: 70px; }
  .recipes__grid { grid-template-columns: 1fr; gap: 28px; margin-top: 28px; }
  .cat__name { margin-top: 14px; }

  .footer { padding: 50px 20px 34px; }
  .footer__top { grid-template-columns: 1fr 1fr; gap: 30px 20px; }
  .footer__logo { grid-column: 1 / -1; }
  .footer__col { gap: 12px; }
  .footer__group { margin-top: 40px; }
  .footer__bottom { grid-template-columns: 1fr; gap: 10px; margin-top: 22px; }

  .rp-hero, .rd__head, .rd__body { grid-template-columns: minmax(0, 1fr); }
  .rp-grid { grid-template-columns: 1fr; gap: 28px; }
  .search { margin-left: 0; max-width: none; }
  .rd__products { position: static; padding: 22px 18px; }
  .rd__products-head { flex-wrap: wrap; }
  .rd__facts { display: grid; grid-template-columns: repeat(3, auto); justify-content: start; }
  .rd__facts li { padding: 0 16px; }
  .rd__steps li { grid-template-columns: 44px 1fr; }
  .rd__steps li::before { font-size: 38px; }
  .rd__tip { grid-template-columns: 80px 1fr; }
  .rd__tip img { width: 80px; }
}

@media (prefers-reduced-motion: reduce) {
  .crumb img, .kz__wave { animation: none; }
  .story__img { transition: none; }
}
