/* ============================================================
   nutrition.css — секция 5 «WHAT'S INSIDE THE BAG» (лаванда). Поток, токены.
   Лево-выравнивание заголовка; пачка + 2×2 карточки КБЖУ, пиллы, панель состава.
   ============================================================ */

.nut { background: var(--c-lav); padding: 40px var(--side) 44px; }

/* ТЗ-12 §2: шапка блока по центру (eyebrow + H2 + подзаголовок). */
.nut__eyebrow {
  font-weight: 700; font-size: var(--fs-eyebrow); line-height: var(--lh-cap);
  letter-spacing: 1.2px; text-transform: uppercase; color: var(--c-teal-dark);
  text-align: center;
}
.nut__h2 {
  margin-top: 10px; text-align: center;
  font-family: var(--ff-head); font-weight: 800; font-size: var(--fs-h2);
  line-height: var(--lh-head); color: var(--c-ink);
}
.nut__sub {
  margin-top: 12px; text-align: center;
  font-size: var(--fs-sub); line-height: var(--lh-sub); color: var(--c-muted);
}

.nut__row {
  margin-top: 24px;
  display: flex; gap: 14px; align-items: stretch;
}
.nut__pack {
  flex: 0 0 128px;
  display: flex; align-items: center; justify-content: center;
}
.nut__pack img { width: 100%; height: auto; max-height: 210px; object-fit: contain; filter: drop-shadow(0 9px 24px rgba(46,31,71,.16)); }

.nut__cards {
  flex: 1;
  display: grid; grid-template-columns: 1fr 1fr; gap: 10px;
}
.nut__c {
  background: var(--c-white); border-radius: var(--r-metric);
  box-shadow: var(--sh-card); padding: 14px 6px;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px;
}
.nut__c b { font-weight: 700; font-size: var(--fs-num-lg); line-height: 1; color: var(--fa); }
.nut__c span { font-weight: 700; font-size: var(--fs-eyebrow); letter-spacing: .6px; text-transform: uppercase; color: var(--c-muted); }

.nut__pills {
  margin-top: 20px;
  display: flex; gap: 6px;
  /* ТЗ-11 §2.2 шаг 3: ряд прокручивается, если плашки не влезают. Полосу прячем,
     край следующей плашки подглядывает. overscroll-behavior-x — прод-канон in-app. */
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-snap-type: x proximity;
  scrollbar-width: none;
  padding-bottom: 2px;
}
.nut__pills::-webkit-scrollbar { display: none; }
.npill {
  /* ТЗ-11 §2.2 шаг 2: ширина по содержимому, а не по сетке. min-width держит
     тап-таргет ≥44px (a11y). Шаг 1: подпись Barlow Condensed — уже, чем Noto. */
  flex: 0 0 auto; min-width: 44px; min-height: 44px; padding: 6px 12px;
  scroll-snap-align: start;
  display: flex; align-items: center; justify-content: center;
  background: var(--c-white); border: 1px solid var(--c-border);
  border-radius: var(--r-pill);
  font-family: var(--ff-head);
  font-weight: 700; font-size: var(--fs-eyebrow); line-height: 1;
  letter-spacing: .2px; text-transform: uppercase; color: var(--c-muted);
  white-space: nowrap;
}
.npill.is-on { border: 2px solid var(--fa); color: var(--fa-ink); }

.nut__panel {
  margin-top: 20px;
  background: var(--c-white); border-radius: var(--r-card);
  box-shadow: var(--sh-card); padding: 20px;
}
.nut__ph {
  font-family: var(--ff-head); font-weight: 700; font-size: var(--fs-h3);
  line-height: 1.1; letter-spacing: .2px; text-transform: uppercase; color: var(--c-ink);
}
.nut__ing {
  margin-top: 14px;
  font-size: var(--fs-cap); line-height: var(--lh-body); color: var(--c-muted);
}
.nut__allerg { margin-top: 16px; display: flex; gap: 10px; flex-wrap: wrap; }
.nut__al {
  padding: 9px 14px; border-radius: var(--r-pill);
  background: var(--c-lav-2); color: var(--c-allerg-ink);
  font-weight: 700; font-size: var(--fs-eyebrow); letter-spacing: .3px; text-transform: uppercase;
}
.nut__al--milk { background: var(--c-milk-pill); color: var(--c-eyebrow); }
