/* ==========================================================
   Любимая привычка — стили лендинга
   Идея: страница = сам пакет. Красное поле, жёлтые наклонные
   буквы с чёрной обводкой, швы пакета сверху и снизу.
   ========================================================== */

:root {
  /* Цвета с упаковки */
  --red: #DA1A1F;      /* пакет */
  --seam: #9E0F14;     /* тень букв, шов */
  --yellow: #FFD21F;   /* лепесток, надпись */
  --black: #000;       /* обводка */
  --white: #fff;
  --shelf: #E4E6E9;    /* металл полки */
  --ink: #2B2420;      /* основной текст */
  --muted: #6B625C;    /* второстепенный текст */
  --line: #D9D5D1;

  --display: 'Sofia Sans Extra Condensed', 'Arial Narrow', sans-serif;
  --text: 'Sofia Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;

  --gutter: clamp(16px, 4vw, 56px);
  --max: 1240px;
  --section: clamp(80px, 10vw, 144px);
}

/* ---------- База ---------- */
*, *::before, *::after { box-sizing: border-box; }
html {
  -webkit-text-size-adjust: 100%;
  background: var(--white);
  scroll-behavior: smooth;
}
body {
  margin: 0;
  font-family: var(--text);
  font-size: 1.125rem;
  line-height: 1.55;
  color: var(--ink);
  background: var(--white);
  font-kerning: normal;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
/* Ссылки: одно правило на весь сайт. На красном фоне подчёркивание при наведении жёлтое. */
a { color: inherit; text-decoration-thickness: 1.5px; text-underline-offset: .2em; }
a:hover { text-decoration-color: var(--link-hover, var(--red)); text-decoration-thickness: 2.5px; }
[hidden] { display: none !important; }
p { margin: 0; }
h1, h2, h3 { margin: 0; }
button { font: inherit; }

:focus-visible {
  outline: 3px solid var(--focus, var(--black));
  outline-offset: 3px;
  border-radius: 4px;
}

.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }

.skip {
  position: absolute; left: 16px; top: -200px; z-index: 20;
  padding: 10px 16px;
  background: var(--yellow); color: #000;
  border: 2px solid #000; border-radius: 8px;
  font-weight: 700; text-decoration: none;
}
.skip:focus { top: 16px; }

.wrap {
  max-width: calc(var(--max) + 2 * var(--gutter));
  margin: 0 auto;
  padding: 0 var(--gutter);
}

/* ---------- Голос пакета: жёлтые буквы с обводкой ---------- */
.pack-type {
  font-family: var(--display);
  font-style: italic;
  font-weight: 900;
  line-height: .86;
  letter-spacing: .004em;
  color: var(--yellow);
  -webkit-text-stroke: .08em var(--black);
  paint-order: stroke fill;
  text-shadow: .045em .055em 0 var(--seam);
  /* Строка поднимается вправо, как надпись на пакете. Один угол для всех таких заголовков. */
  transform: skewY(-4deg);
  transform-origin: left center;
}
.pack-type > span { display: block; }
.pack-type--red {
  color: var(--red);
  -webkit-text-stroke-width: .07em;
  text-shadow: .04em .05em 0 var(--black);
}

.h2 {
  font-family: var(--display);
  font-style: italic;
  font-weight: 900;
  font-size: clamp(3rem, 6.2vw, 5.75rem);
  line-height: .9;
  letter-spacing: .003em;
  color: var(--red);
  text-wrap: balance;
}

.section-head {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  gap: 20px clamp(32px, 6vw, 96px);
  align-items: end;
}
.section-head > p {
  max-width: 44ch;
  font-size: 1.25rem;
  line-height: 1.5;
}

/* ---------- Кнопки ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 54px;
  padding: 12px 28px;
  font: 700 1.125rem/1.1 var(--text);
  color: #000;
  background: var(--yellow);
  border: 2.5px solid #000;
  border-radius: 8px;
  box-shadow: 4px 4px 0 #000;
  text-decoration: none;
  cursor: pointer;
  transition: transform .12s ease, box-shadow .12s ease;
}
.btn:hover { transform: translate(-1px, -1px); box-shadow: 5px 5px 0 #000; }
.btn:active { transform: translate(3px, 3px); box-shadow: 1px 1px 0 #000; }
.btn:disabled { opacity: .6; cursor: progress; }
.btn--small { min-height: 44px; padding: 8px 18px; font-size: 1rem; box-shadow: 3px 3px 0 #000; }
.btn--red { background: var(--red); color: #fff; }

/* ---------- Шов пакета ---------- */
.seal {
  height: 16px;
  background:
    repeating-linear-gradient(180deg, rgba(0,0,0,.18) 0 1px, rgba(255,255,255,.08) 1px 2px, transparent 2px 4px),
    #C3151B;
}
.seal--bottom {
  height: 22px;
  -webkit-mask: conic-gradient(from -45deg at bottom, #0000, #000 1deg 89deg, #0000 90deg) bottom / 14px 100%;
          mask: conic-gradient(from -45deg at bottom, #0000, #000 1deg 89deg, #0000 90deg) bottom / 14px 100%;
}

/* ---------- Шапка ---------- */
.site-header {
  --focus: var(--yellow);
  --link-hover: var(--yellow);
  display: flex; align-items: center; justify-content: space-between;
  gap: 24px;
  padding: 22px var(--gutter) 0;
  background: var(--red);
  color: #fff;
}
.wordmark {
  display: inline-flex; flex-direction: column;
  font-family: var(--display);
  font-style: italic;
  font-weight: 900;
  font-size: 2rem;
  line-height: .8;
  color: var(--yellow);
  -webkit-text-stroke: .09em #000;
  paint-order: stroke fill;
  text-shadow: .04em .06em 0 var(--seam);
  text-decoration: none;
  transform: skewY(-6deg);
  padding: 6px 0;
}
.wordmark span:last-child { padding-left: .45em; }
.site-nav {
  display: flex; align-items: center;
  gap: clamp(16px, 2.4vw, 36px);
  font-weight: 600;
  font-size: 1.0625rem;
}
.site-nav a:not(.btn) { color: #fff; text-decoration: none; padding: 8px 0; }
.site-nav a:not(.btn):hover { text-decoration: underline; }
.site-nav .call { display: none; }

/* ---------- Главный экран ---------- */
.hero {
  --focus: var(--yellow);
  --link-hover: var(--yellow);
  background: var(--red);
  color: #fff;
  overflow: clip;
}
.hero__inner {
  max-width: calc(var(--max) + 2 * var(--gutter));
  margin: 0 auto;
  padding: clamp(32px, 4.5vw, 64px) var(--gutter) clamp(64px, 8vw, 120px);
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr);
  grid-template-areas: "title pack" "copy pack";
  column-gap: clamp(24px, 4vw, 72px);
  align-items: end;
}
.hero__title {
  grid-area: title;
  font-size: clamp(4.25rem, 9.2vw, 9rem);
  padding-bottom: .1em;
}
.hero__copy { grid-area: copy; align-self: start; }
.hero__lede {
  margin-top: clamp(28px, 3.5vw, 48px);
  max-width: 32ch;
  font-size: clamp(1.25rem, 1.7vw, 1.5rem);
  line-height: 1.4;
}
.hero__actions {
  display: flex; flex-wrap: wrap; align-items: center;
  gap: 18px 32px;
  margin-top: 32px;
}
.link-light { color: #fff; font-weight: 600; }

.hero__pack {
  grid-area: pack;
  position: relative;
  align-self: center;
  justify-self: center;
  width: min(100%, 430px);
}
.hero__pack img {
  position: relative; z-index: 1;
  width: 100%; height: auto;
  transform: rotate(6deg);
  filter: drop-shadow(0 30px 26px rgba(70, 0, 0, .5));
}
.hero__husks { position: absolute; inset: auto 0 -4% 0; height: 0; z-index: 2; }
.husk {
  position: absolute;
  left: var(--x); top: var(--y);
  width: clamp(18px, 2vw, 26px); height: auto;
  overflow: visible;
  transform: rotate(var(--r));
  filter: drop-shadow(0 2px 1px rgba(60, 0, 0, .45));
}
.husk use { transform-origin: 20px 71px; }
.husk--open .l { transform: rotate(-30deg); }
.husk--open .r { transform: rotate(30deg); }

/* Единственное «само по себе» движение: пакет падает на стол */
@media (prefers-reduced-motion: no-preference) {
  .hero__pack img { animation: pack-drop 1s cubic-bezier(.2, .8, .3, 1) .15s both; }
  .hero__husks { animation: husks-in .4s ease-out .85s both; }
}
@keyframes pack-drop {
  0%   { opacity: 0; transform: translateY(-70px) rotate(-6deg); }
  55%  { opacity: 1; transform: translateY(8px) rotate(9deg); }
  75%  { transform: translateY(-3px) rotate(5deg); }
  100% { transform: translateY(0) rotate(6deg); }
}
@keyframes husks-in { from { opacity: 0; } to { opacity: 1; } }

/* ---------- Полка ---------- */
.shelf-sec {
  background: var(--shelf);
  padding: var(--section) 0 clamp(40px, 5vw, 72px);
}
.shelf {
  --u: clamp(190px, 20vw, 290px);  /* высота самой большой пачки (250 г) */
  --tag-h: 100px;
  margin: clamp(40px, 6vw, 72px) 0 0;
}
.shelf__scroller {
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scrollbar-width: thin;
  scroll-snap-type: x proximity;
  scroll-padding-inline: var(--gutter);
}
/* Затухание у края, за которым есть ещё пачки (классы ставит скрипт) */
.shelf__scroller.fade-r {
  -webkit-mask-image: linear-gradient(90deg, #000 calc(100% - 56px), transparent);
          mask-image: linear-gradient(90deg, #000 calc(100% - 56px), transparent);
}
.shelf__scroller.fade-l {
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 56px);
          mask-image: linear-gradient(90deg, transparent, #000 56px);
}
.shelf__scroller.fade-l.fade-r {
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 56px, #000 calc(100% - 56px), transparent);
          mask-image: linear-gradient(90deg, transparent, #000 56px, #000 calc(100% - 56px), transparent);
}
.shelf__scroller:focus-visible { outline-offset: -3px; }
.shelf__row {
  position: relative;
  display: flex;
  align-items: flex-end;
  gap: clamp(14px, 1.8vw, 26px);
  width: max-content;
  min-width: 100%;
  padding: 24px var(--gutter) 0;
}
.shelf__row > :first-child { margin-left: auto; }
.shelf__row > :last-child { margin-right: auto; }
/* Передняя кромка полки с рейкой для ценников */
.shelf__row::before {
  content: "";
  position: absolute; left: 0; right: 0; bottom: 0;
  height: calc(var(--tag-h) + 20px);
  background:
    linear-gradient(180deg,
      #FDFDFD 0 3px,
      #B9BEC4 3px 5px,
      #EEF0F2 5px calc(100% - 5px),
      #B4B9BF calc(100% - 5px));
  box-shadow: 0 22px 26px -18px rgba(0, 0, 0, .4);
}
.shelf__item {
  position: relative;
  display: flex; flex-direction: column; align-items: center;
  width: min-content;
  scroll-snap-align: start;
}
.shelf__pack {
  height: calc(var(--u) * var(--k, 1));
  width: auto;
  max-width: none;
  filter: drop-shadow(0 6px 5px rgba(0, 0, 0, .22));
}
.tag {
  position: relative; z-index: 1;
  display: flex; flex-direction: column; justify-content: space-between;
  width: 100%;
  min-width: 120px;
  height: var(--tag-h);
  margin: 10px 0;
  padding: 7px 9px 6px;
  background: #fff;
  border: 1px solid #C7CBD0;
  border-radius: 2px;
  color: #000;
  line-height: 1.1;
}
.tag--ours { background: var(--yellow); border-color: #C9A100; }
.tag__kind { font-size: .75rem; font-weight: 600; }
.tag__name {
  font-family: var(--display);
  font-style: italic;
  font-weight: 900;
  font-size: 1.0625rem;
  line-height: .95;
}
.tag__row {
  display: flex; align-items: baseline; justify-content: space-between;
  gap: 6px;
  font-size: .75rem;
  font-weight: 600;
}
.tag__weight {
  font-family: var(--display);
  font-style: italic;
  font-weight: 900;
  font-size: 2rem;
  line-height: .85;
}
.tag--blank { justify-content: flex-start; gap: 7px; }
.tag--blank i { display: block; height: 7px; background: #D7DADE; border-radius: 2px; }
.tag--blank i:nth-child(2) { width: 70%; }
.tag--blank i:last-child { width: 46%; height: 22px; margin: auto 0 0 auto; }

/* Чужие пакеты: без брендов, приглушённые */
.gpack {
  position: relative;
  height: calc(var(--u) * var(--k, .8));
  aspect-ratio: .7;
  border-radius: 10px 10px 8px 8px;
  background: var(--c);
  filter: saturate(.5);
  box-shadow: inset 14px 0 18px -12px rgba(255, 255, 255, .45), inset -10px 0 16px -10px rgba(0, 0, 0, .25);
}
.gpack::before, .gpack::after {
  content: "";
  position: absolute; left: 0; right: 0;
  height: 7%;
  background: repeating-linear-gradient(180deg, rgba(0,0,0,.14) 0 1px, transparent 1px 3px);
}
.gpack::before { top: 0; border-radius: 10px 10px 0 0; }
.gpack::after { bottom: 0; border-radius: 0 0 8px 8px; }
.gpack b {
  position: absolute; left: 14%; right: 14%; top: 15%;
  height: 11%;
  background: rgba(255, 255, 255, .78);
  border-radius: 3px;
}
.gpack i {
  position: absolute; left: 20%; top: 38%;
  width: 60%; aspect-ratio: 1;
  border-radius: 50%;
  background: rgba(255, 255, 255, .45);
}
.gpack--blue  { --c: #4F6FA8; --k: .86; }
.gpack--olive { --c: #7D9150; --k: .74; }

/* ---------- Производство ---------- */
.made { padding: var(--section) 0; }
.process {
  list-style: none;
  counter-reset: step;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 48px clamp(16px, 2vw, 28px);
  margin: clamp(44px, 6vw, 80px) 0 0;
  padding: 0;
}
.process li { counter-increment: step; }
.process figure {
  position: relative;
  margin: 0;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  border-radius: 8px;
  background: var(--shelf);
}
.process figure img { width: 100%; height: 100%; object-fit: cover; }
.process figcaption {
  position: absolute; left: 10px; bottom: 10px;
  padding: 3px 8px;
  border-radius: 8px;
  background: rgba(0, 0, 0, .55);
  color: #fff;
  font-size: .75rem;
}
.process__pack { display: grid; place-items: center; background: var(--red) !important; }
.process__pack img {
  width: 68% !important; height: auto !important;
  object-fit: contain !important;
  transform: rotate(-5deg);
  filter: drop-shadow(0 16px 14px rgba(70, 0, 0, .45));
}
.process h3 {
  display: flex; align-items: baseline; gap: 12px;
  margin: 22px 0 6px;
  font-size: 1.375rem;
  line-height: 1.2;
}
.process h3::before {
  content: counter(step);
  font: italic 900 2.75rem/.8 var(--display);
  color: var(--red);
}
.process p { max-width: 30ch; color: var(--muted); }

/* ---------- Игра «Сначала одну» ---------- */
.habit {
  --focus: #000;
  background: var(--yellow);
  color: #000;
  padding: var(--section) 0;
}
.habit__grid {
  display: grid;
  grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr);
  gap: clamp(32px, 5vw, 80px);
  align-items: center;
}
.habit__title { font-size: clamp(3.25rem, 6.6vw, 6.25rem); }
.habit__status {
  margin-top: 36px;
  min-height: 1.4em;
  font-size: 1.5rem;
  font-weight: 700;
  line-height: 1.3;
}
.habit__count { margin-top: 6px; font-weight: 600; color: #5C4A00; }
.habit__actions {
  display: flex; flex-wrap: wrap; align-items: center;
  gap: 12px 28px;
  margin-top: 28px;
}
.habit__actions:not(:has(:not([hidden]))) { margin-top: 0; }
.habit__again {
  min-height: 44px;
  padding: 0;
  border: 0;
  background: none;
  color: #000;
  font-weight: 700;
  text-decoration: underline;
  text-decoration-thickness: 1.5px;
  text-underline-offset: .2em;
  cursor: pointer;
}
.habit__again:hover { text-decoration-color: var(--red); text-decoration-thickness: 2.5px; }
.pile {
  position: relative;
  height: clamp(320px, 34vw, 470px);
}
html:not(.js) .pile { display: none; }
.seed {
  appearance: none;
  position: absolute;
  left: var(--px); top: var(--py);
  width: 46px; height: 62px;
  margin: -31px 0 0 -23px;
  padding: 0;
  border: 0;
  border-radius: 40%;
  background: none;
  cursor: pointer;
  transform: rotate(var(--r, 0deg));
  -webkit-tap-highlight-color: transparent;
}
.seed:focus-visible { z-index: 1; }
.seed svg {
  width: 30px; height: 54px;
  margin: auto;
  overflow: visible;
  transition: transform .15s ease;
  filter: drop-shadow(1px 2px 0 rgba(90, 60, 0, .35));
}
.seed:hover svg { transform: scale(1.12); }
.seed use {
  transform-origin: 20px 71px;
  transition: transform .38s cubic-bezier(.2, .9, .3, 1.25), opacity .38s ease;
}
.seed.is-cracked { cursor: default; }
.seed.is-cracked:hover svg { transform: none; }
.seed.is-cracked .l { transform: rotate(-34deg) translateX(-2px); opacity: .85; }
.seed.is-cracked .r { transform: rotate(34deg) translateX(2px); opacity: .85; }
.seed.is-cracked .k { transform: translateY(-40px) scale(.6); opacity: 0; transition-delay: .1s; }

/* ---------- Где купить ---------- */
.buy { padding: var(--section) 0; }
.demo-flag {
  display: inline-block;
  margin-top: 18px;
  padding: 6px 10px;
  border-radius: 8px;
  background: #000;
  color: var(--yellow);
  font-size: .875rem;
  font-weight: 700;
}
.districts {
  display: flex; flex-wrap: wrap;
  gap: 10px;
  margin: clamp(36px, 5vw, 56px) 0 28px;
}
.chip {
  min-height: 44px;
  padding: 10px 18px;
  border: 2px solid #000;
  border-radius: 999px;
  background: #fff;
  color: #000;
  font-weight: 600;
  font-size: 1rem;
  line-height: 1;
  cursor: pointer;
}
.chip:hover { background: #F4F4F4; }
.chip[aria-pressed="true"] { background: #000; color: var(--yellow); }
.stores {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: clamp(32px, 5vw, 72px);
  margin: 0;
  padding: 0;
  border-top: 2px solid #000;
}
.store {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 2px 16px;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
}
.store[hidden] { display: none; }
.store__name { font-weight: 700; font-size: 1.1875rem; }
.store__district { color: var(--muted); font-size: .9375rem; text-align: right; }
.store__addr { grid-column: 1 / -1; justify-self: start; }
.stores-empty { padding: 20px 0; font-size: 1.125rem; }
.buy__more {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px clamp(32px, 5vw, 72px);
  margin-top: 44px;
  font-size: 1.125rem;
}

/* ---------- Оптом ---------- */
.wholesale {
  --focus: var(--yellow);
  --link-hover: var(--yellow);
  background: var(--red);
  color: #fff;
  padding: var(--section) 0 clamp(72px, 9vw, 120px);
}
.wholesale__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(40px, 6vw, 96px);
  align-items: start;
}
.wholesale__title { font-size: clamp(3.25rem, 6.6vw, 6.25rem); }
.wholesale__lede { margin-top: 36px; max-width: 40ch; font-size: 1.25rem; line-height: 1.5; }
.contacts { display: grid; gap: 22px; margin: 44px 0 0; }
.contacts dt { font-size: .9375rem; opacity: .85; }
.contacts dd { margin: 2px 0 0; font-size: 1.5rem; font-weight: 700; line-height: 1.25; }

.order {
  --focus: #000;
  padding: clamp(24px, 3vw, 40px);
  background: #fff;
  color: var(--ink);
  border: 2.5px solid #000;
  border-radius: 8px;
  box-shadow: 10px 10px 0 var(--seam);
}
.order__title { margin-bottom: 24px; font-size: 1.5rem; line-height: 1.2; }
.field { display: grid; gap: 6px; margin-bottom: 18px; min-width: 0; }
.field-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 16px; }
.field label { font-size: 1rem; font-weight: 600; }
.field .opt { font-weight: 400; color: var(--muted); }
.field input, .field textarea {
  width: 100%;
  padding: 12px 14px;
  border: 2px solid #8E8781;
  border-radius: 8px;
  background: #fff;
  color: #000;
  font: inherit;
  font-size: 1.0625rem;
  line-height: 1.4;
}
.field textarea { resize: vertical; min-height: 92px; }
.field input:hover, .field textarea:hover { border-color: #000; }
.field input:focus-visible, .field textarea:focus-visible { border-color: #000; outline-offset: 1px; }
.field input:user-invalid, .field textarea:user-invalid { border-color: var(--red); background: #FFF6F6; }
.check {
  display: grid; grid-template-columns: 22px minmax(0, 1fr);
  gap: 10px; align-items: start;
  margin: 6px 0 24px;
  font-size: .9375rem;
  line-height: 1.4;
}
.check input { width: 22px; height: 22px; margin: 0; accent-color: var(--red); }
.order__submit { width: 100%; }
.order__hint { margin-top: 12px; font-size: .9375rem; color: var(--muted); }
.order__hint:empty, .order__status:empty { display: none; }
.order__status { margin-top: 14px; font-weight: 700; }
.order__status.is-error { color: var(--red); }

/* ---------- Подвал ---------- */
.site-footer {
  --focus: var(--yellow);
  --link-hover: var(--yellow);
  background: var(--red);
  color: #fff;
  padding-bottom: 36px;
}
.site-footer .wrap::before {
  content: "";
  display: block;
  height: 2px;
  margin-bottom: 56px;
  background: rgba(255, 255, 255, .3);
}
.footer__slogan { font-size: clamp(3.5rem, 9vw, 8.5rem); }
.footer__slogan > span { display: inline; }
.footer__meta {
  display: flex; flex-wrap: wrap; justify-content: space-between;
  gap: 10px 32px;
  margin-top: 56px;
  font-size: .9375rem;
}
/* Отдельные ссылки в подвале: зона нажатия не меньше 24 px в высоту */
.footer__meta a { display: inline-block; padding: 4px 0; }

/* Переключатель статистики */
.analytics {
  display: flex; flex-wrap: wrap; align-items: center;
  gap: 6px 16px;
  margin-top: 20px;
  font-size: .9375rem;
}
.analytics__switch {
  display: inline-flex; align-items: center;
  gap: 12px;
  min-height: 44px;
  cursor: pointer;
}
.analytics__switch input {
  appearance: none;
  position: relative;
  flex: none;
  width: 44px; height: 26px;
  margin: 0;
  border: 2px solid #fff;
  border-radius: 999px;
  background: transparent;
  cursor: pointer;
  transition: background-color .15s ease;
}
.analytics__switch input::before {
  content: "";
  position: absolute; top: 3px; left: 3px;
  width: 16px; height: 16px;
  border-radius: 50%;
  background: #fff;
  transition: transform .15s ease, background-color .15s ease;
}
.analytics__switch input:checked { background: var(--yellow); border-color: var(--yellow); }
.analytics__switch input:checked::before { transform: translateX(18px); background: #000; }
.analytics__note:empty { display: none; }
.analytics__note { opacity: .9; }

/* ---------- Адаптив ---------- */
@media (max-width: 1100px) {
  .process { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* Планшет и телефон: шапка с «Где купить» остаётся на экране */
@media (max-width: 900px) {
  html { scroll-padding-top: 80px; }
  .site-header {
    position: sticky; top: 0; z-index: 30;
    padding: 10px var(--gutter);
    transition: box-shadow .2s ease;
  }
  .site-header.is-stuck { box-shadow: 0 2px 0 rgba(0, 0, 0, .2); }
  .section-head { grid-template-columns: 1fr; align-items: start; }
  /* Главный экран на планшете: две колонки, заголовок крупнее */
  .hero__title { font-size: 10.6vw; }
  .hero__lede { margin-top: 24px; }
  .hero__actions { gap: 14px 24px; }
  .habit__grid { grid-template-columns: 1fr; }
  .wholesale__grid { grid-template-columns: 1fr; }
  .buy__more { grid-template-columns: 1fr; }
}

@media (max-width: 760px) {
  .site-nav a:not(.btn):not(.call) { display: none; }
  .site-nav { gap: 12px; }
  .site-nav .call {
    display: inline-flex; align-items: center; justify-content: center;
    width: 44px; height: 44px;
    border: 2px solid #fff;
    border-radius: 999px;
  }
  .site-nav .call:hover { border-color: var(--yellow); color: var(--yellow); }
  .wordmark { font-size: 1.625rem; }
  .stores { grid-template-columns: 1fr; }
}

/* Телефон: главный экран в одну колонку */
@media (max-width: 560px) {
  body { font-size: 1.0625rem; }
  .hero__inner {
    grid-template-columns: 1fr;
    grid-template-areas: "title" "pack" "copy";
    align-items: start;
  }
  .hero__title { font-size: clamp(3.5rem, 18.5vw, 5rem); }
  .hero__pack { width: 56%; margin: 24px 4% 40px 0; justify-self: end; }
  .shelf { --u: 210px; }
  .shelf__row > .shelf__item--other:first-child { display: none; }
  .shelf__row > :nth-child(2) { margin-left: auto; }
  .process { grid-template-columns: 1fr; gap: 40px; }
  .process figure { aspect-ratio: 3 / 2; }
  .process__pack img { width: 34% !important; }
  .field-row { grid-template-columns: 1fr; }
  .contacts dd { font-size: 1.3125rem; }
  .pile { height: 340px; }
  .seed { width: 42px; height: 58px; margin: -29px 0 0 -21px; }
  .seed svg { width: 27px; height: 49px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
}
