/* ==========================================================================
   North Lab — стиль Seed, макет 3 «Бенто»
   Все цвета — только токены ниже. Ни теней, ни градиентов.
   Порядок: токены · база · компоненты · шапка/футер · блоки главной · анимации · адаптив
   ========================================================================== */

:root {
  /* Палитра Seed */
  --forest: #1c3a13;      /* CTA, тёмные секции, текст */
  --forest-2: #2b4a22;    /* панели внутри тёмных секций (макет 3) */
  --snow: #fcfcf7;        /* фон страницы */
  --stone: #eeeee9;       /* второй фон */
  --lime: #d3fa99;        /* только бейджи и мелкие акценты */
  --sage: #757c5d;
  --olive: #9f995b;
  --eucalyptus: #698e79;
  --frost: #c4c7c4;
  --pewter: #666666;      /* второстепенный текст */

  /* Формы */
  --radius-card: 16px;
  --radius-lg: 32px;
  --radius-pill: 1000px;
  --radius-input: 8px;
  --border: 1.5px;

  /* Шрифты */
  --font-sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, "SFMono-Regular", Consolas, monospace;

  /* Сетка */
  --container: 1200px;
  --gutter: 40px;
  --section-pad: 72px;

  /* Движение */
  --ease-out: cubic-bezier(0.22, 0.61, 0.36, 1);
  --reveal-duration: 800ms;
  --reveal-shift: 20px;
}

/* ---------- База ---------- */

*,
*::before,
*::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 24px;
}

body {
  margin: 0;
  background: var(--snow);
  color: var(--forest);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.5;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { display: block; max-width: 100%; }

h1, h2, h3, p, ul, ol, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }

a { color: inherit; }
a:hover { color: var(--sage); }

button, input { font: inherit; color: inherit; }

:focus-visible {
  outline: 2px solid var(--eucalyptus);
  outline-offset: 3px;
}

.skip-link {
  position: absolute;
  left: 16px;
  top: -100px;
  z-index: 100;
  padding: 12px 20px;
  border-radius: var(--radius-pill);
  background: var(--forest);
  color: var(--snow);
  text-decoration: none;
}
.skip-link:focus { top: 16px; color: var(--snow); }

.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* Типографика */
.h1 {
  font-size: clamp(32px, 4.2vw, 48px);
  font-weight: 300;
  letter-spacing: -0.015em;
  line-height: 1.08;
}
.h2 {
  font-size: clamp(30px, 3.4vw, 40px);
  font-weight: 350;
  letter-spacing: -0.01em;
  line-height: 1.1;
}
.h3 {
  font-size: 24px;
  font-weight: 350;
  letter-spacing: -0.02em;
  line-height: 1.2;
}
.lead { font-size: 17px; line-height: 1.5; color: var(--pewter); }
.muted { color: var(--pewter); }
.label {
  font-size: 12px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.mono {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.015em;
}

/* ---------- Компоненты ---------- */

.container {
  width: 100%;
  max-width: calc(var(--container) + 2 * var(--gutter));
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section { padding-block: var(--section-pad); }
.section--snow { background: var(--snow); color: var(--forest); }
.section--stone { background: var(--stone); color: var(--forest); }
.section--forest { background: var(--forest); color: var(--snow); }
.section--forest a:hover { color: var(--frost); }
.section--forest .muted,
.section--forest .lead { color: var(--frost); }

.section__head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px 40px;
  flex-wrap: wrap;
  margin-bottom: 32px;
}

/* Кнопки — пилюли */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 12px 22px;
  border: var(--border) solid transparent;
  border-radius: var(--radius-pill);
  font-size: 16px;
  line-height: 24px;
  font-weight: 400;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color 200ms var(--ease-out), color 200ms var(--ease-out),
    border-color 200ms var(--ease-out), transform 150ms var(--ease-out);
}
.btn:active { transform: scale(0.97); }
.btn--primary { background: var(--forest); color: var(--snow); }
.btn--primary:hover { background: var(--forest-2); color: var(--snow); }
.btn--ghost { background: var(--snow); color: var(--forest); }
.btn--ghost:hover { background: var(--stone); color: var(--forest); }
.btn--outline { background: transparent; border-color: currentColor; color: inherit; }
.btn--outline:hover { background: var(--forest); border-color: var(--forest); color: var(--snow); }
.section--forest .btn--outline:hover,
.hero .btn--outline:hover { background: var(--snow); border-color: var(--snow); color: var(--forest); }
.btn--lg { min-height: 56px; padding: 16px 24px; }

/* Ссылка со стрелкой: подчёркивание 1.5px */
.link-arrow {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-size: 16px;
  text-decoration: underline;
  text-decoration-thickness: 1.5px;
  text-underline-offset: 4px;
  transition: color 200ms var(--ease-out), text-underline-offset 200ms var(--ease-out);
}
.link-arrow:hover { text-underline-offset: 6px; }

/* Пилюля-фильтр / навигационная пилюля */
.pill {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 10px 16px;
  border: 0;
  border-radius: var(--radius-pill);
  background: var(--snow);
  color: var(--forest);
  font-size: 14px;
  line-height: 20px;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 200ms var(--ease-out), color 200ms var(--ease-out);
}
.pill:hover { background: var(--frost); color: var(--forest); }
.pill[aria-pressed="true"],
.pill.is-active { background: var(--forest); color: var(--snow); }

/* Бейдж: заливка-лайм только здесь */
.badge {
  display: inline-flex;
  align-items: center;
  align-self: flex-start;
  padding: 6px 10px;
  border-radius: var(--radius-pill);
  background: var(--stone);
  color: var(--forest);
  font-size: 12px;
  font-weight: 500;
  line-height: 1;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  white-space: nowrap;
}
.badge--lime { background: var(--lime); color: var(--forest); }

/* Код набора — пилюля с обводкой, моно */
.code-pill {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border: var(--border) solid currentColor;
  border-radius: var(--radius-pill);
  font-family: var(--font-mono);
  font-size: 12px;
  line-height: 1.2;
  letter-spacing: 0.015em;
  white-space: nowrap;
}
.code-pill--sm { padding: 3px 8px; font-size: 11px; }

/* Точка-акцент набора */
.dot { width: 8px; height: 8px; border-radius: var(--radius-pill); background: var(--sage); flex: none; }
.dot--eucalyptus { background: var(--eucalyptus); }
.dot--sage { background: var(--sage); }
.dot--olive { background: var(--olive); }

/* Карточка */
.card {
  border-radius: var(--radius-card);
  background: var(--snow);
  color: var(--forest);
}
.card--lg { border-radius: var(--radius-lg); }
.card--stone { background: var(--stone); }
.card--forest { background: var(--forest); color: var(--snow); }

/* Рамка под фото: картинка заполняет, при наведении чуть приближается */
.frame {
  position: relative;
  display: block;
  overflow: hidden;
  text-decoration: none;
  border-radius: var(--radius-card);
  background: var(--stone);
}
.frame > img,
.frame > .ph {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 700ms var(--ease-out);
}
.frame--contain > img { object-fit: contain; padding: 12px; }

/* Плейсхолдер картинки — подменяет <img data-fallback> при ошибке */
.ph {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 120px;
  width: 100%;
  height: 100%;
  padding: 16px;
  border-radius: inherit;
  background: var(--stone);
  color: var(--pewter);
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.015em;
  line-height: 1.4;
  text-align: center;
}
.section--stone .ph,
.card--stone .ph { background: var(--snow); }
.set-card .ph { background: var(--stone); }
.bento__photo .ph { background: var(--snow); }
.section--forest .ph,
.card--forest .ph,
.hero .ph { background: var(--forest-2); color: var(--frost); }

/* ---------- Шапка ---------- */

.site-header {
  position: relative;
  z-index: 20;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.site-header__promo {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 6px 10px;
  font-size: 13px;
  color: var(--frost);
  text-align: center;
}
.site-header__promo .code-pill { color: var(--frost); }

.site-header__bar {
  position: relative;
  display: flex;
  align-items: center;
  gap: 16px;
  min-height: 68px;
  padding: 8px 8px 8px 24px;
  border-radius: var(--radius-pill);
  background: var(--snow);
  color: var(--forest);
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  font-size: 19px;
  letter-spacing: -0.015em;
  text-decoration: none;
  white-space: nowrap;
  color: var(--forest);
}
.logo svg { flex: none; }

.nav {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.nav__links { display: flex; gap: 6px; font-size: 15px; }
.nav__links a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 9px 16px;
  border-radius: var(--radius-pill);
  text-decoration: none;
  transition: background-color 200ms var(--ease-out);
}
.nav__links a:hover { background: var(--stone); color: var(--forest); }
.nav__links a[aria-current="true"] { background: var(--stone); }
.nav__actions { display: flex; align-items: center; gap: 4px; }
.nav__actions .link-arrow { padding: 0 14px; font-size: 15px; }
.nav__actions .btn { min-height: 48px; padding: 12px 22px; font-size: 15px; }

.nav-toggle {
  display: none;
  align-items: center;
  gap: 10px;
  min-height: 48px;
  margin-left: auto;
  padding: 0 18px;
  border: 0;
  border-radius: var(--radius-pill);
  background: var(--forest);
  color: var(--snow);
  font-size: 15px;
  cursor: pointer;
}
.nav-toggle__icon { position: relative; width: 16px; height: 10px; }
.nav-toggle__icon::before,
.nav-toggle__icon::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  height: 1.5px;
  background: currentColor;
  transition: transform 250ms var(--ease-out), top 250ms var(--ease-out);
}
.nav-toggle__icon::before { top: 1px; }
.nav-toggle__icon::after { top: 8px; }
.nav-toggle[aria-expanded="true"] .nav-toggle__icon::before { top: 4.5px; transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle__icon::after { top: 4.5px; transform: rotate(-45deg); }

/* ---------- Футер ---------- */

.site-footer {
  padding-block: 56px;
  background: var(--stone);
  color: var(--forest);
  text-align: center;
}
.site-footer__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 28px;
}
.site-footer__brand { font-size: 28px; font-weight: 400; letter-spacing: -0.02em; }
.site-footer__nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 4px 24px;
  font-size: 16px;
}
.site-footer__nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  text-decoration: none;
}
.site-footer__nav a:hover { text-decoration: underline; text-underline-offset: 4px; }
.contacts { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
.contact-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 18px;
  border: var(--border) solid var(--forest);
  border-radius: var(--radius-pill);
  font-size: 15px;
}
.subscribe { display: flex; flex-direction: column; align-items: center; gap: 8px; width: 100%; max-width: 480px; }
.subscribe__label { color: var(--pewter); }
.subscribe__row { display: flex; gap: 8px; width: 100%; }
.input {
  flex: 1;
  min-width: 0;
  height: 52px;
  padding: 0 16px;
  border: var(--border) solid var(--sage);
  border-radius: var(--radius-input);
  background: var(--snow);
  color: var(--forest);
  font-size: 16px;
}
.input::placeholder { color: var(--pewter); }
.input:focus-visible { outline-offset: 1px; border-color: var(--forest); }
.subscribe__status { min-height: 20px; font-size: 14px; color: var(--pewter); }
.disclaimer { max-width: 640px; font-size: 14px; line-height: 1.5; color: var(--pewter); }
.legal {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 24px;
  font-size: 13px;
  color: var(--pewter);
}

/* ==========================================================================
   Главная — блоки макета 3
   ========================================================================== */

/* ---------- 01 + 02 · Первый экран с шапкой поверх фото ---------- */

.hero {
  padding: 24px;
  background: var(--forest);
}
.hero__frame {
  position: relative;
  isolation: isolate;
  display: flex;
  flex-direction: column;
  gap: 16px;
  min-height: clamp(640px, calc(100svh - 48px), 900px);
  padding: 16px;
  overflow: hidden;
  border-radius: var(--radius-lg);
  background: var(--forest-2);
  color: var(--snow);
}
.hero__media {
  position: absolute;
  inset: 0;
  z-index: -1;
}
.hero__media > img,
.hero__media > .ph {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 0;
  transform-origin: 60% 40%;
}
/* Ровная тонировка для читаемости белых пилюль — без градиента */
.hero__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: color-mix(in srgb, var(--forest) 22%, transparent);
  pointer-events: none;
}
.hero__body {
  flex: 1;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 32px;
}
.hero__card {
  display: flex;
  flex-direction: column;
  gap: 20px;
  width: 100%;
  max-width: 600px;
  padding: 40px;
  border-radius: var(--radius-lg);
  background: var(--snow);
  color: var(--forest);
}
.hero__card .h1 { font-size: clamp(32px, 3.6vw, 44px); }
.hero__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 28px; padding-top: 8px; }
.hero__goals {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 8px;
  padding: 0 16px 16px 0;
}
.hero__goals-title { color: var(--snow); margin-bottom: 4px; }
.goal-pill {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 10px 18px;
  border: var(--border) solid var(--snow);
  border-radius: var(--radius-pill);
  background: color-mix(in srgb, var(--forest) 45%, transparent);
  color: var(--snow);
  font-size: 15px;
  text-decoration: none;
  transition: background-color 200ms var(--ease-out), color 200ms var(--ease-out);
}
.goal-pill:hover { background: var(--snow); color: var(--forest); }

/* ---------- 03 · Каталог ---------- */

.filters { display: flex; flex-wrap: wrap; gap: 6px; }

.set-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
  margin-bottom: 24px;
}

.set-card {
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding: 24px;
  border-radius: var(--radius-lg);
  background: var(--snow);
  transition: transform 300ms var(--ease-out);
}
.set-card:hover { transform: translateY(-2px); }
.set-card:hover .frame > img { transform: scale(1.03); }
.set-card__top {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 170px;
  gap: 20px;
}
.set-card__info { display: flex; flex-direction: column; gap: 10px; }
.set-card__meta { display: flex; align-items: center; gap: 8px; color: var(--pewter); }
.set-card__meta .code-pill { color: var(--forest); }
.set-card__title { font-size: 26px; font-weight: 300; letter-spacing: -0.02em; line-height: 1.2; }
.set-card__title a { text-decoration: none; }
.set-card__photo { min-height: 170px; }
.set-card__bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px 16px;
  margin-top: auto;
}
.set-card__actions { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 18px; }
.set-card__actions .link-arrow { font-size: 15px; }

.composition {
  display: flex;
  flex-direction: column;
  gap: 5px;
  font-family: var(--font-mono);
  font-size: 12.5px;
  letter-spacing: 0.015em;
}
.composition li { display: flex; justify-content: space-between; gap: 8px; }
.composition li span:last-child { color: var(--pewter); text-align: right; }

.price { font-size: 24px; font-weight: 350; letter-spacing: -0.02em; white-space: nowrap; }
.price small { font-size: 15px; color: var(--pewter); }

.tile-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
}
.set-tile {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 12px;
  min-height: 112px;
  padding: 16px;
  border-radius: var(--radius-card);
  background: var(--snow);
}
.set-tile__name { font-size: 15px; line-height: 1.3; }
.set-tile__foot { display: flex; align-items: center; justify-content: space-between; gap: 8px; flex-wrap: wrap; }
.set-tile__price { font-size: 14px; white-space: nowrap; }
.set-tile__price small { color: var(--pewter); font-size: 13px; }
.set-tile .badge { padding: 4px 8px; font-size: 11px; }
.set-tile__head { display: flex; justify-content: space-between; align-items: flex-start; gap: 8px; }

.catalog__empty { padding: 24px 0 0; color: var(--pewter); }

[data-set][hidden] { display: none; }

/* ---------- 04 · Почему North Lab ---------- */

.why__lead { max-width: 420px; font-size: 16px; color: var(--pewter); }
.bento {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-auto-rows: minmax(204px, auto);
  gap: 16px;
}
.bento__cell {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 20px;
  padding: 28px;
  border-radius: var(--radius-lg);
  background: var(--stone);
}
.bento__cell--split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 240px;
  gap: 24px;
}
.bento__cell--forest { background: var(--forest); color: var(--snow); }
.bento__text { display: flex; flex-direction: column; gap: 8px; }
.bento__text p { font-size: 15px; line-height: 1.5; color: var(--pewter); }
.bento__cell--forest .bento__text p { color: var(--frost); }
.bento__codes { display: flex; flex-wrap: wrap; gap: 6px; }
.bento__makers {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 8px 24px;
  font-size: clamp(28px, 3vw, 36px);
  font-weight: 300;
  letter-spacing: -0.02em;
}
.bento__makers span[aria-hidden] { color: var(--olive); }
.bento__photo { min-height: 160px; background: var(--snow); }
.bento__cell:hover .frame > img { transform: scale(1.03); }

.schedule-mini { display: flex; flex-direction: column; gap: 6px; font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.015em; }
.schedule-mini li {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 14px;
  border-radius: var(--radius-card);
  background: var(--forest-2);
}
.schedule-mini li span:first-child { color: var(--lime); }

/* ---------- 05 · Откуда добавки ---------- */

.sources {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 64px;
  align-items: center;
}
.sources__text { display: flex; flex-direction: column; gap: 24px; }
.sources__text .lead { font-size: 18px; line-height: 1.4; color: var(--frost); }
.facts { display: flex; flex-direction: column; gap: 16px; padding-top: 8px; }
.fact {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 3fr);
  gap: 16px;
  align-items: baseline;
  font-size: 16px;
}
.fact__key { color: var(--frost); }
.logos { display: flex; flex-wrap: wrap; gap: 8px; }
.logo-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 132px;
  height: 52px;
  padding: 10px 16px;
  border-radius: var(--radius-pill);
  background: var(--snow);
}
.logo-chip img { max-height: 28px; width: auto; max-width: 100%; object-fit: contain; }
.logo-chip .ph { min-height: 0; padding: 0; background: transparent; color: var(--forest); font-family: var(--font-sans); font-size: 15px; letter-spacing: -0.01em; white-space: nowrap; }
.jars {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  padding: 12px;
  border-radius: var(--radius-lg);
  background: var(--forest-2);
}
.jars .frame { aspect-ratio: 5 / 4; background: var(--snow); }
.jars .frame > img { object-fit: contain; padding: 18px; }
.jars .frame:hover > img { transform: scale(1.03); }
.jars .ph { background: var(--snow); color: var(--pewter); }

/* ---------- 06 · Как работает подписка ---------- */

.how__cta { display: flex; align-items: center; flex-wrap: wrap; gap: 16px 24px; }
.how__from { font-size: 18px; }
.how__photo {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 12px;
  min-height: 300px;
  margin-bottom: 32px;
  padding: 24px;
  overflow: hidden;
  border-radius: var(--radius-lg);
  background: var(--snow);
}
.how__photo > .how__media { position: absolute; inset: 0; z-index: 0; border-radius: 0; }
.how__photo:hover .how__media > img { transform: scale(1.02); }
.how__row { position: relative; z-index: 1; display: flex; justify-content: space-between; align-items: flex-end; flex-wrap: wrap; gap: 8px; }
.tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: var(--radius-pill);
  background: var(--forest);
  color: var(--snow);
  font-size: 14px;
}
.tag--stone { background: var(--stone); color: var(--forest); }
.steps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 32px;
}
.step { display: flex; flex-direction: column; gap: 8px; }
.step__num { color: var(--pewter); }
.step__title { font-size: 18px; font-weight: 500; }
.step p { color: var(--pewter); }

/* ---------- 07 · Отзывы ---------- */

.reviews {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 16px;
  min-height: 320px;
}
.review-main {
  grid-column: span 6;
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 40px;
  border-radius: var(--radius-lg);
  background: var(--forest);
  color: var(--snow);
}
.review-main blockquote { margin: 0; font-size: 24px; font-weight: 300; letter-spacing: -0.02em; line-height: 1.35; }
.review-main__by { margin-top: auto; display: flex; align-items: center; flex-wrap: wrap; gap: 12px 16px; }
.avatar {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  flex: none;
  border-radius: var(--radius-pill);
  background: var(--forest-2);
  color: var(--frost);
}
.review-main__name { font-weight: 500; }
.review-stack { grid-column: span 3; display: flex; flex-direction: column; gap: 16px; }
.review-small {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 24px;
  border-radius: var(--radius-card);
  background: var(--stone);
}
.review-small blockquote { margin: 0; font-size: 18px; line-height: 1.4; }
.review-small__by { margin-top: auto; display: flex; justify-content: space-between; align-items: center; gap: 8px; font-size: 14px; }
.review-small__by span:first-child { font-weight: 500; }
.review-insta {
  grid-column: span 3;
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 16px;
  border-radius: var(--radius-card);
  background: var(--stone);
}
.review-insta .ph { flex: 1; min-height: 180px; background: var(--snow); border-radius: var(--radius-card); }
.review-insta__acc { display: flex; align-items: center; gap: 8px; padding: 0 8px 4px; font-size: 14px; }

/* ==========================================================================
   Анимации появления — спокойные, один раз
   Скрытие включает только класс .js на <html> (ставит site.js).
   ========================================================================== */

.js .reveal {
  opacity: 0;
  transform: translate3d(0, var(--reveal-shift), 0);
  transition: opacity var(--reveal-duration) var(--ease-out) var(--reveal-delay, 0ms),
    transform var(--reveal-duration) var(--ease-out) var(--reveal-delay, 0ms);
}
.js .reveal.is-visible { opacity: 1; transform: none; }

/* «Дыхание» фото первого экрана: 1.04 → 1 */
@keyframes breathe {
  from { transform: scale(1.04); }
  to { transform: scale(1); }
}
.hero__media > img,
.hero__media > .ph { animation: breathe 1600ms var(--ease-out) both; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal,
  .js .reveal.is-visible { opacity: 1; transform: none; transition: none; }
  .hero__media > img,
  .hero__media > .ph { animation: none; }
  *,
  *::before,
  *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
  .set-card:hover { transform: none; }
}

/* ==========================================================================
   Адаптив
   ========================================================================== */

@media (max-width: 1180px) {
  .nav__links a { padding: 9px 12px; }
  .nav__actions .link-arrow { display: none; }
  .set-card__top { grid-template-columns: minmax(0, 1fr) 140px; }
}

@media (max-width: 1020px) {
  :root { --gutter: 24px; --section-pad: 64px; }

  /* Меню — кнопкой */
  .nav-toggle { display: inline-flex; }
  .js .nav {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    right: 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 16px;
    padding: 16px;
    border-radius: var(--radius-lg);
    background: var(--snow);
    color: var(--forest);
    border: var(--border) solid var(--stone);
  }
  .js .nav.is-open { display: flex; }
  .nav { flex-wrap: wrap; }
  .nav__links { flex-direction: column; gap: 2px; font-size: 18px; }
  .nav__links a { padding: 10px 16px; }
  .nav__actions { flex-direction: column; align-items: stretch; gap: 8px; }
  .nav__actions .link-arrow { display: inline-flex; justify-content: center; }
  .site-header__bar { flex-wrap: wrap; border-radius: 34px; }

  .hero__body { flex-direction: column; align-items: stretch; justify-content: flex-end; }
  .hero__goals { flex-direction: row; flex-wrap: wrap; align-items: center; padding: 0; order: -1; }
  .hero__goals-title { width: 100%; margin: 0; }

  .set-grid { grid-template-columns: minmax(0, 1fr); }
  .bento { grid-template-columns: minmax(0, 1fr); }
  .sources { grid-template-columns: minmax(0, 1fr); gap: 40px; }
  .tile-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .jars { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .jars .frame { aspect-ratio: 3 / 4; }
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .review-main { grid-column: span 12; }
  .review-stack,
  .review-insta { grid-column: span 6; }
}

@media (max-width: 640px) {
  :root { --gutter: 16px; --section-pad: 56px; }

  .hero { padding: 12px; }
  .hero__frame { min-height: clamp(600px, calc(100svh - 24px), 820px); padding: 10px; border-radius: 24px; }
  .site-header__promo { font-size: 12px; }
  .site-header__bar { padding: 6px 6px 6px 18px; min-height: 60px; }
  .hero__card { padding: 24px; gap: 16px; border-radius: 24px; }
  .hero__actions .btn { width: 100%; }
  .goal-pill { font-size: 14px; padding: 8px 14px; }

  .section__head { margin-bottom: 24px; }
  .set-card { padding: 20px; border-radius: 24px; }
  .set-card__top { grid-template-columns: minmax(0, 1fr); }
  .set-card__photo { order: -1; aspect-ratio: 16 / 10; min-height: 0; }
  .set-card__actions { width: 100%; }
  .set-card__actions .btn { flex: 1; }
  .tile-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .set-tile__head { flex-direction: column-reverse; }
  .jars { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .jars .frame { aspect-ratio: 1 / 1; }
  .logo-chip { width: auto; min-width: 104px; }

  .bento__cell { padding: 24px; border-radius: 24px; }
  .bento__cell--split { grid-template-columns: minmax(0, 1fr); }
  .fact { grid-template-columns: minmax(0, 1fr); gap: 4px; }

  .how__photo { min-height: 360px; padding: 16px; }
  .how__cta { width: 100%; }
  .how__cta .btn { width: 100%; }
  .steps { grid-template-columns: minmax(0, 1fr); gap: 24px; }

  .review-main { padding: 28px; border-radius: 24px; }
  .review-main blockquote { font-size: 20px; }
  .review-stack,
  .review-insta { grid-column: span 12; }

  .subscribe__row { flex-direction: column; }
  .subscribe__row .btn { width: 100%; }
}

/* ==========================================================================
   Страница набора и форма (set.html) — блок таска 02
   ========================================================================== */

.set-page [hidden] { display: none !important; }

/* ---------- Шапка: светлый вариант (камень на белом), модификатор к .site-header ---------- */

.set-top { padding-top: 16px; }
.site-header--light .site-header__promo { color: var(--pewter); }
.site-header--light .site-header__promo .code-pill { color: var(--forest); }
.site-header--light .site-header__bar { background: var(--stone); }
.site-header--light .nav__links a[aria-current="true"] { background: var(--snow); }
@media (min-width: 1021px) {
  .site-header--light .nav__links a:hover { background: var(--snow); }
}
@media (max-width: 1020px) {
  .site-header--light .site-header__bar { border-radius: 34px; }
}

/* ---------- Первый экран набора ---------- */

.set-hero { padding-top: 32px; }
.set-hero__grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 56px;
}
.set-hero__gallery {
  grid-column: span 7;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-template-rows: repeat(2, minmax(0, 1fr));
  gap: 16px;
  min-height: 440px;
}
.set-hero__shot:first-child { grid-row: span 2; border-radius: var(--radius-lg); }
.set-hero__shot > img,
.set-hero__shot > .ph { animation: breathe 1600ms var(--ease-out) both; }
.set-hero__shot:hover > img { transform: scale(1.03); animation: none; }

.set-hero__buy {
  --reveal-delay: 200ms;
  grid-column: span 5;
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 36px;
  border-radius: var(--radius-lg);
  background: var(--forest);
  color: var(--snow);
}
.buy__meta { display: flex; align-items: center; gap: 8px; }
.buy__title { font-size: clamp(32px, 3.4vw, 40px); font-weight: 350; }
.buy__audience { color: var(--frost); line-height: 1.4; }
.buy__price { display: flex; align-items: baseline; gap: 8px; }
.buy__sum { font-size: 32px; font-weight: 350; letter-spacing: -0.015em; }
.buy__price small { font-size: 16px; color: var(--frost); }
.set-hero__buy .btn { width: 100%; }
.buy__facts { display: flex; flex-direction: column; gap: 6px; font-size: 14px; line-height: 1.4; color: var(--frost); }

.related__head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin-bottom: 16px; }
.related__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.related-card { display: flex; gap: 16px; text-decoration: none; color: var(--forest); }
.related-card__thumb { flex: none; width: 120px; height: 120px; }
.related-card__thumb--soon {
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-card);
  background: var(--stone);
  color: var(--pewter);
  font-family: var(--font-mono);
  font-size: 12px;
}
.related-card__text { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; min-width: 0; }
.related-card__name { font-size: 18px; }
.related-card__price { font-size: 14px; color: var(--pewter); }
.related-card:hover { color: var(--forest); }
.related-card:hover .related-card__name { text-decoration: underline; text-decoration-thickness: 1.5px; text-underline-offset: 4px; }
.related-card:hover .frame > img { transform: scale(1.03); }
.related-help {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 12px;
  padding: 20px 24px;
  border-radius: var(--radius-card);
  background: var(--stone);
}
.related-help .btn { align-self: flex-start; }

.notfound { display: flex; flex-direction: column; align-items: flex-start; gap: 20px; min-height: 320px; padding-block: 48px; }

/* ---------- Состав ---------- */

.item-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.item-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 24px;
  border-radius: var(--radius-card);
  background: var(--snow);
}
.item-card__top { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.item-card__photo { flex: none; width: 96px; height: 96px; background: var(--stone); }
.item-card__photo .ph { min-height: 0; padding: 6px; font-size: 10px; overflow: hidden; }
.item-card__badges { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 6px; }
.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  border: var(--border) solid var(--forest);
  border-radius: var(--radius-pill);
  font-size: 12px;
  font-weight: 500;
  line-height: 1;
}
.item-card__maker { margin-top: 4px; color: var(--pewter); }
.item-card__name { font-size: 22px; font-weight: 350; letter-spacing: -0.02em; line-height: 1.2; }
.item-card__spec { font-size: 13px; }
.item-card p { font-size: 14px; line-height: 1.4; color: var(--pewter); }
.item-card--note {
  justify-content: space-between;
  gap: 16px;
  padding: 32px;
  background: var(--forest);
  color: var(--snow);
}
.item-card--note .label { color: var(--frost); }
.item-card__note-text { display: flex; flex-direction: column; gap: 12px; }
.item-card__note-title { font-size: 24px; font-weight: 350; letter-spacing: -0.02em; line-height: 1.25; }
.item-card--note .link-arrow:hover { color: var(--frost); }

/* ---------- Как принимать ---------- */

.dose-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 8px; margin-bottom: 28px; }
.dose {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 16px 20px;
  border-radius: var(--radius-card);
  background: var(--stone);
}
.dose__row { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; }
.dose__items { font-size: 14px; }
.dose__note { font-size: 13px; line-height: 1.4; color: var(--pewter); }
.dose--night { background: var(--forest); color: var(--snow); }
.dose--night .dose__note { color: var(--frost); }

.cal { max-width: 100%; margin-bottom: 20px; overflow-x: auto; }
.cal__table { display: flex; flex-direction: column; gap: 8px; min-width: 680px; }
.cal__row { display: grid; grid-template-columns: 240px repeat(12, minmax(0, 1fr)); gap: 6px; align-items: center; min-height: 40px; }
.cal__row--head { min-height: 0; font-family: var(--font-mono); font-size: 12px; color: var(--pewter); text-align: center; }
.cal__label { position: sticky; left: 0; z-index: 1; padding-right: 8px; background: var(--snow); font-size: 15px; text-align: left; }
.cal__when { font-size: 13px; }
.cal__cell { height: 32px; border-radius: 8px; }
.cal__cell--all { background: var(--eucalyptus); }
.cal__cell--season { background: var(--forest); }
.cal__cell--off { background: var(--stone); }

.sched-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 24px; }
.legend { display: flex; flex-wrap: wrap; gap: 8px 16px; color: var(--pewter); }
.legend span { display: inline-flex; align-items: center; gap: 6px; }
.legend__box { display: block; width: 16px; height: 16px; border-radius: 4px; }
.legend__box--all { background: var(--eucalyptus); }
.legend__box--season { background: var(--forest); }
.legend__box--off { background: var(--stone); }
.sched-foot__note { display: flex; align-items: center; gap: 10px; font-size: 15px; }
.sched-foot__note svg { flex: none; }

/* ---------- Форма «Оформить подписку» ---------- */

.set-order { padding-top: 0; }
.order__rule { height: 1.5px; margin-bottom: 44px; background: var(--stone); }
.order__grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 16px; }
.order-summary {
  grid-column: span 5;
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 32px;
  border-radius: var(--radius-lg);
  background: var(--forest);
  color: var(--snow);
}
.order-summary__label { color: var(--frost); }
.order-summary__name { font-size: 32px; font-weight: 350; letter-spacing: -0.015em; line-height: 1.15; }
.order-summary .buy__facts { margin-top: auto; }
.order-card {
  grid-column: span 7;
  padding: 32px;
  border-radius: var(--radius-lg);
  background: var(--stone);
}
.order-panel { display: flex; flex-direction: column; gap: 14px; height: 100%; }
.order-legend { margin: 4px 0 0; padding: 0; font-size: 22px; font-weight: 350; letter-spacing: -0.02em; }
.progress { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 4px; }
.progress span { height: 4px; border-radius: var(--radius-pill); background: var(--frost); transition: background-color 300ms var(--ease-out); }
.progress span.is-on { background: var(--forest); }

.choices { display: flex; flex-direction: column; gap: 8px; margin: 0; padding: 0; border: 0; min-width: 0; }
.choices .order-legend { margin-bottom: 12px; }
.choice {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 52px;
  padding: 14px 16px;
  border: var(--border) solid var(--snow);
  border-radius: var(--radius-card);
  background: var(--snow);
  cursor: pointer;
  transition: border-color 200ms var(--ease-out);
}
.choice.is-checked { border-color: var(--forest); }
.choice input { flex: none; width: 18px; height: 18px; margin: 0; accent-color: var(--forest); }
.choice__name { flex: 1; font-size: 15px; }
.choice__price { font-size: 13px; }
.choice--soon { cursor: default; font-size: 15px; background: transparent; border-color: transparent; padding-block: 4px; min-height: 0; }
.order-hint { align-self: flex-start; font-size: 14px; text-decoration: underline; text-decoration-thickness: 1.5px; text-underline-offset: 3px; }

.chosen {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 10px 16px;
  border-radius: var(--radius-pill);
  background: var(--snow);
  font-size: 14px;
}
.chosen .mono { font-size: 12px; }
.chosen__edit {
  min-height: 44px;
  padding: 0 4px;
  border: 0;
  background: none;
  font-size: 14px;
  text-decoration: underline;
  text-decoration-thickness: 1.5px;
  text-underline-offset: 3px;
  cursor: pointer;
}

.field { display: flex; flex-direction: column; gap: 6px; }
.field label { font-size: 14px; font-weight: 500; }
.order-card .input { flex: none; width: 100%; height: 48px; }
.input--mono { font-family: var(--font-mono); }
.input[aria-invalid="true"] { border-color: var(--forest); border-width: 2px; }
.field__error { display: flex; align-items: flex-start; gap: 8px; font-size: 14px; font-weight: 500; line-height: 1.35; }
.field__error::before {
  content: "!";
  flex: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  border-radius: var(--radius-pill);
  background: var(--forest);
  color: var(--snow);
  font-family: var(--font-mono);
  font-size: 12px;
}
.consent { display: flex; align-items: flex-start; gap: 10px; }
.consent input { flex: none; width: 20px; height: 20px; margin: 2px 0 0; accent-color: var(--forest); }
.consent label { font-size: 14px; font-weight: 400; line-height: 1.45; }
.policy { text-decoration: underline; text-decoration-thickness: 1.5px; text-underline-offset: 3px; }

.order-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; margin-top: auto; padding-top: 8px; }
.order-actions .btn--primary { flex: 1; }
.btn[disabled] { opacity: 0.6; cursor: not-allowed; }

.order-done { gap: 16px; }
.order-done__mark {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  margin-top: 16px;
  border-radius: var(--radius-pill);
  background: var(--lime);
  color: var(--forest);
}
.order-done__title { font-size: clamp(26px, 3vw, 32px); font-weight: 350; letter-spacing: -0.015em; line-height: 1.15; }
.order-done__title:focus { outline: none; }
.order-done .order-actions { margin-top: 8px; }

@media (max-width: 1020px) {
  .set-hero__grid { grid-template-columns: minmax(0, 1fr); margin-bottom: 48px; }
  .set-hero__gallery,
  .set-hero__buy,
  .order-summary,
  .order-card { grid-column: auto; }
  .set-hero__gallery { min-height: 0; grid-template-rows: auto; }
  .set-hero__shot { aspect-ratio: 4 / 3; }
  .set-hero__shot:first-child { grid-row: auto; }
  .item-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .related__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .order__grid { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 640px) {
  .set-hero { padding-top: 24px; }
  .set-hero__gallery { gap: 8px; }
  .set-hero__shot:first-child { grid-column: span 2; border-radius: 24px; aspect-ratio: 4 / 3; }
  .set-hero__shot:not(:first-child) { aspect-ratio: 1 / 1; }
  .set-hero__buy,
  .order-summary,
  .order-card { padding: 24px; border-radius: 24px; }
  .item-grid,
  .related__grid { grid-template-columns: minmax(0, 1fr); }
  .item-card--note { padding: 24px; }
  .related-card__thumb { width: 96px; height: 96px; }
  .cal__row { grid-template-columns: 150px repeat(12, minmax(0, 1fr)); }
  .cal__table { min-width: 620px; }
  .cal__label { font-size: 14px; }
  .order-actions .btn--primary { flex-basis: 100%; }
  .order-actions .btn--outline { flex: 1; }
  .sched-foot__note { align-items: flex-start; }
}

@media (prefers-reduced-motion: reduce) {
  .set-hero__shot > img,
  .set-hero__shot > .ph { animation: none; }
}
