/* Клеви — оформление в стиле iOS: системные цвета, скругления, размытие, «шторки» */

:root {
  color-scheme: light dark;

  --bg: #f2f2f7;
  --card: #ffffff;
  --label: #000000;
  --label-2: rgba(60, 60, 67, 0.6);
  --label-3: rgba(60, 60, 67, 0.3);
  --sep: rgba(60, 60, 67, 0.16);
  --fill: rgba(118, 118, 128, 0.12);
  --fill-strong: rgba(118, 118, 128, 0.2);

  --blue: #007aff;
  --green: #34c759;
  --orange: #ff9500;
  --red: #ff3b30;
  --gray: #8e8e93;

  --blue-bg: rgba(0, 122, 255, 0.12);
  --green-bg: rgba(52, 199, 89, 0.14);
  --orange-bg: rgba(255, 149, 0, 0.14);
  --red-bg: rgba(255, 59, 48, 0.12);
  --gray-bg: rgba(142, 142, 147, 0.14);

  --shadow: 0 1px 2px rgba(0, 0, 0, 0.04), 0 4px 16px rgba(0, 0, 0, 0.04);
  --bar-bg: rgba(242, 242, 247, 0.72);

  --safe-top: env(safe-area-inset-top, 0px);
  --safe-bottom: env(safe-area-inset-bottom, 0px);

  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "SF Pro Display", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

  /* значки (маски) */
  --i-chevron: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M8 3l9 9-9 9'/%3E%3C/svg%3E");
  --i-heart: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23000'%3E%3Cpath d='M12 21.2l-1.4-1.3C5.4 15.3 2 12.2 2 8.5 2 5.5 4.4 3 7.4 3c1.7 0 3.4.8 4.6 2.1C13.2 3.8 14.9 3 16.6 3 19.6 3 22 5.5 22 8.5c0 3.7-3.4 6.8-8.6 11.4L12 21.2z'/%3E%3C/svg%3E");
  --i-barcode: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23000'%3E%3Cpath d='M3 5h2v14H3zM7 5h1v14H7zM10 5h3v14h-3zM15 5h1v14h-1zM18 5h3v14h-3z'/%3E%3C/svg%3E");
  --i-camera: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 8.5A2.5 2.5 0 0 1 6.5 6H8l1.2-1.6A1 1 0 0 1 10 4h4a1 1 0 0 1 .8.4L16 6h1.5A2.5 2.5 0 0 1 20 8.5v8a2.5 2.5 0 0 1-2.5 2.5h-11A2.5 2.5 0 0 1 4 16.5z'/%3E%3Ccircle cx='12' cy='12.5' r='3.2'/%3E%3C/svg%3E");
  --i-x: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='3.2' stroke-linecap='round'%3E%3Cpath d='M7 7l10 10M17 7L7 17'/%3E%3C/svg%3E");
  --i-check: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E");
  --i-warn: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23000'%3E%3Cpath d='M12 2.5c.8 0 1.5.4 1.9 1.1l8 14c.8 1.4-.2 3.1-1.9 3.1H4c-1.7 0-2.7-1.7-1.9-3.1l8-14c.4-.7 1.1-1.1 1.9-1.1zM11 9v5h2V9zm0 7v2h2v-2z' fill-rule='evenodd'/%3E%3C/svg%3E");
  --i-minus: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='3' stroke-linecap='round'%3E%3Cpath d='M5 12h14'/%3E%3C/svg%3E");
  --i-plus: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='3' stroke-linecap='round'%3E%3Cpath d='M5 12h14M12 5v14'/%3E%3C/svg%3E");
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #000000;
    --card: #1c1c1e;
    --label: #ffffff;
    --label-2: rgba(235, 235, 245, 0.6);
    --label-3: rgba(235, 235, 245, 0.3);
    --sep: rgba(84, 84, 88, 0.6);
    --fill: rgba(118, 118, 128, 0.24);
    --fill-strong: rgba(118, 118, 128, 0.36);

    --blue: #0a84ff;
    --green: #30d158;
    --orange: #ff9f0a;
    --red: #ff453a;

    --blue-bg: rgba(10, 132, 255, 0.2);
    --green-bg: rgba(48, 209, 88, 0.18);
    --orange-bg: rgba(255, 159, 10, 0.18);
    --red-bg: rgba(255, 69, 58, 0.18);
    --gray-bg: rgba(142, 142, 147, 0.2);

    --shadow: none;
    --bar-bg: rgba(0, 0, 0, 0.7);
  }
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--label);
  font: 17px/1.3 var(--font);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
body.no-scroll { overflow: hidden; }
button, input { font: inherit; color: inherit; }
button { cursor: pointer; }
[hidden] { display: none !important; }

/* ---------- Верхняя панель ---------- */
.navbar {
  position: sticky; top: 0; z-index: 20;
  height: calc(44px + var(--safe-top)); padding-top: var(--safe-top);
  display: flex; align-items: center; justify-content: center;
  background: transparent;
  border-bottom: 0.5px solid transparent;
  transition: background .25s, border-color .25s;
}
.navbar-title { font-weight: 600; opacity: 0; transform: translateY(4px); transition: opacity .2s, transform .2s; }
.navbar.scrolled {
  background: var(--bar-bg);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  backdrop-filter: saturate(180%) blur(20px);
  border-bottom-color: var(--sep);
}
.navbar.scrolled .navbar-title { opacity: 1; transform: none; }

.page { max-width: 600px; margin: 0 auto; padding: 0 16px calc(40px + var(--safe-bottom)); }
.large-title { font-size: 34px; line-height: 41px; font-weight: 700; letter-spacing: 0.37px; margin: -36px 0 0; }
.subtitle { margin: 4px 0 8px; color: var(--label-2); font-size: 15px; }

/* ---------- Группы и списки ---------- */
.group { margin-top: 22px; }
.group-title { margin: 0 16px 7px; font-size: 13px; font-weight: 400; text-transform: uppercase; color: var(--label-2); letter-spacing: -0.08px; }
.group-footer { margin: 8px 16px 0; font-size: 13px; color: var(--label-2); }

.list { background: var(--card); border-radius: 14px; overflow: hidden; box-shadow: var(--shadow); }
.cell {
  display: flex; align-items: center; gap: 12px; width: 100%;
  min-height: 52px; padding: 10px 16px; border: 0; background: transparent; text-align: left;
}
.cell + .cell { border-top: 0.5px solid var(--sep); }
.cell-button:active { background: var(--fill); }
.cell-icon {
  position: relative; flex: none; width: 30px; height: 30px; border-radius: 8px; background: var(--tint, var(--blue));
}
.cell-icon::after {
  content: ""; position: absolute; inset: 6px; background: #fff;
  -webkit-mask: var(--i-heart) center / contain no-repeat; mask: var(--i-heart) center / contain no-repeat;
}
.cell-body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 1px; }
.cell-title { font-size: 17px; }
.cell-detail { font-size: 14px; color: var(--label-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cell-chevron {
  flex: none; width: 8px; height: 14px; background: var(--label-3);
  -webkit-mask: var(--i-chevron) center / contain no-repeat; mask: var(--i-chevron) center / contain no-repeat;
}

.pills { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.pills:empty { display: none; }
.pill { padding: 5px 11px; border-radius: 999px; background: var(--blue-bg); color: var(--blue); font-size: 14px; font-weight: 500; }

/* ---------- Поле штрихкода и кнопки ---------- */
.field {
  display: flex; align-items: center; gap: 10px; height: 52px; padding: 0 14px;
  background: var(--card); border-radius: 14px; box-shadow: var(--shadow);
  transition: box-shadow .15s;
}
.field:focus-within { box-shadow: 0 0 0 3px var(--blue-bg), 0 0 0 1.5px var(--blue); }
.field-icon {
  flex: none; width: 22px; height: 22px; background: var(--label-2);
  -webkit-mask: var(--i-barcode) center / contain no-repeat; mask: var(--i-barcode) center / contain no-repeat;
}
.field input {
  flex: 1; min-width: 0; border: 0; outline: 0; background: transparent;
  font-size: 22px; font-weight: 500; letter-spacing: 1px; font-variant-numeric: tabular-nums;
}
.field input::placeholder { color: var(--label-3); font-weight: 400; letter-spacing: 0; font-size: 18px; }
.field-clear {
  flex: none; width: 20px; height: 20px; padding: 0; border: 0; border-radius: 50%; background: var(--label-3); position: relative;
}
.field-clear::after {
  content: ""; position: absolute; inset: 5px; background: var(--card);
  -webkit-mask: var(--i-x) center / contain no-repeat; mask: var(--i-x) center / contain no-repeat;
}

.actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 12px; }
.actions .btn-primary { grid-column: 1 / -1; }
.btn {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  height: 52px; padding: 0 20px; border: 0; border-radius: 14px; font-size: 17px; font-weight: 600;
  transition: transform .12s, opacity .12s;
}
.btn:active { transform: scale(0.97); opacity: 0.8; }
.btn:disabled { opacity: 0.45; pointer-events: none; }
.btn-primary { background: var(--blue); color: #fff; }
.btn-tinted { background: var(--blue-bg); color: var(--blue); }
.btn-icon { width: 22px; height: 22px; background: currentColor; -webkit-mask: var(--i-camera) center / contain no-repeat; mask: var(--i-camera) center / contain no-repeat; }

#status { min-height: 20px; margin: 12px 6px 0; font-size: 14px; color: var(--label-2); }
#status.error { color: var(--red); }
#status.loading { display: flex; align-items: center; gap: 8px; }
#status.loading::before {
  content: ""; flex: none; width: 14px; height: 14px; border-radius: 50%;
  border: 2px solid var(--fill-strong); border-top-color: var(--blue); animation: spin .8s linear infinite;
}

.examples { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 12px; font-size: 14px; }
.examples-label { color: var(--label-2); }
.example { padding: 6px 12px; border: 0; border-radius: 999px; background: var(--card); color: var(--blue); font-size: 14px; box-shadow: var(--shadow); }
.example:active { opacity: 0.6; }

/* ---------- Результат ---------- */
#result { margin-top: 26px; scroll-margin-top: calc(56px + var(--safe-top)); }
.card {
  background: var(--card); border-radius: 16px; padding: 16px; margin-bottom: 12px; box-shadow: var(--shadow);
  animation: rise .4s cubic-bezier(.2, .8, .2, 1) both; animation-delay: calc(var(--i, 0) * 60ms);
}
.card h2, .card h3 { margin: 0; }

.product { display: flex; gap: 14px; align-items: flex-start; }
.product-img {
  flex: none; width: 88px; height: 88px; border-radius: 16px; background: #fff; object-fit: contain;
  box-shadow: inset 0 0 0 0.5px var(--sep);
}
.product-img.placeholder {
  display: grid; place-items: center; background: var(--fill);
}
.product-img.placeholder::after {
  content: ""; width: 36px; height: 36px; background: var(--label-3);
  -webkit-mask: var(--i-barcode) center / contain no-repeat; mask: var(--i-barcode) center / contain no-repeat;
}
.product-info { min-width: 0; flex: 1; }
.product-name { font-size: 21px; line-height: 26px; font-weight: 700; letter-spacing: 0.3px; overflow-wrap: anywhere; }
.meta { margin-top: 3px; font-size: 14px; color: var(--label-2); overflow-wrap: anywhere; }
.badge {
  display: inline-block; margin-top: 8px; padding: 4px 10px; border-radius: 8px;
  background: var(--fill); color: var(--label-2); font-size: 12px; line-height: 1.35;
}
.badge.warn { background: var(--orange-bg); color: var(--orange); }
.badge a { color: inherit; font-weight: 600; text-decoration: underline; text-underline-offset: 2px; }
.note { margin: 12px 0 0; font-size: 14px; color: var(--label-2); }

/* порция */
.portion { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.portion-label { font-size: 17px; }
.stepper { display: flex; align-items: center; background: var(--fill); border-radius: 10px; height: 36px; }
.stepper button {
  width: 44px; height: 36px; border: 0; background: transparent; position: relative; border-radius: 10px;
}
.stepper button::after {
  content: ""; position: absolute; left: 50%; top: 50%; width: 16px; height: 16px; margin: -8px 0 0 -8px; background: var(--blue);
  -webkit-mask: var(--i-plus) center / contain no-repeat; mask: var(--i-plus) center / contain no-repeat;
}
.stepper button.minus::after { -webkit-mask-image: var(--i-minus); mask-image: var(--i-minus); }
.stepper button:active { background: var(--fill-strong); }
.stepper input {
  width: 62px; height: 36px; border: 0; outline: 0; background: transparent; text-align: center;
  font-size: 17px; font-weight: 600; font-variant-numeric: tabular-nums; -moz-appearance: textfield;
}
.stepper input::-webkit-outer-spin-button, .stepper input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.stepper-unit { padding-right: 4px; font-size: 14px; color: var(--label-2); }

/* вердикт */
.vcard { padding: 0; overflow: hidden; }
.v-top { display: flex; align-items: center; gap: 14px; padding: 16px; background: var(--v-bg); }
.vicon { flex: none; width: 46px; height: 46px; border-radius: 50%; background: var(--v); display: grid; place-items: center; }
.vicon::after { content: ""; width: 24px; height: 24px; background: #fff; -webkit-mask: var(--glyph) center / contain no-repeat; mask: var(--glyph) center / contain no-repeat; }
.v-ok { --v: var(--green); --v-bg: var(--green-bg); --glyph: var(--i-check); }
.v-moderate { --v: var(--orange); --v-bg: var(--orange-bg); --glyph: var(--i-warn); }
.v-avoid { --v: var(--red); --v-bg: var(--red-bg); --glyph: var(--i-x); }
.v-unknown { --v: var(--gray); --v-bg: var(--gray-bg); --glyph: var(--i-warn); }
.v-profile { font-size: 13px; text-transform: uppercase; color: var(--label-2); letter-spacing: -0.08px; }
.v-text { font-size: 24px; line-height: 29px; font-weight: 700; letter-spacing: 0.3px; color: var(--v); }
.v-body { padding: 14px 16px 16px; }
.v-summary { margin: 0; font-size: 16px; line-height: 1.4; }
.v-share { margin: 6px 0 0; font-size: 14px; color: var(--label-2); }

.notes { list-style: none; margin: 12px 0 0; padding: 0; display: grid; gap: 8px; font-size: 14px; line-height: 1.4; }
.notes li { position: relative; padding-left: 24px; }
.notes li::before {
  content: ""; position: absolute; left: 0; top: 1px; width: 17px; height: 17px; background: var(--label-3);
  -webkit-mask: var(--i-warn) center / contain no-repeat; mask: var(--i-warn) center / contain no-repeat;
}
.notes li.reason::before { background: var(--red); }
.notes li.warn::before { background: var(--orange); }
.notes li.pro::before { background: var(--green); -webkit-mask-image: var(--i-check); mask-image: var(--i-check); }

.bars { margin-top: 16px; padding-top: 14px; border-top: 0.5px solid var(--sep); display: grid; gap: 10px; }
.bars-title { font-size: 13px; color: var(--label-2); }
.bar { display: grid; grid-template-columns: 1fr 44px; align-items: center; gap: 4px 10px; font-size: 14px; }
.bar .track { grid-column: 1 / -1; grid-row: 2; height: 8px; border-radius: 4px; background: var(--fill); overflow: hidden; }
.bar .fill { height: 100%; border-radius: 4px; background: var(--green); transition: width .35s cubic-bezier(.2, .8, .2, 1), background .2s; }
.bar .fill.mod { background: var(--orange); }
.bar .fill.bad { background: var(--red); }
.bar .pct { text-align: right; color: var(--label-2); font-variant-numeric: tabular-nums; }

/* состав, добавки, пищевая ценность */
.section-title { margin: 22px 16px 7px; font-size: 13px; font-weight: 400; text-transform: uppercase; color: var(--label-2); }
.text-card { padding: 14px 16px; font-size: 15px; line-height: 1.5; overflow-wrap: anywhere; }
.text-card.muted { color: var(--label-2); }
.additive { padding: 12px 16px; font-size: 14px; line-height: 1.4; }
.additive + .additive { border-top: 0.5px solid var(--sep); }
.additive b { font-weight: 600; }
.additive .codes { color: var(--orange); font-weight: 600; }
.additive .other { color: var(--label-2); }

.nutr { width: 100%; border-collapse: collapse; }
.nutr td { padding: 11px 16px; font-size: 16px; }
.nutr td:last-child { text-align: right; font-variant-numeric: tabular-nums; font-weight: 500; }
.nutr tr + tr td { border-top: 0.5px solid var(--sep); }
.nutr tr.sub td { font-size: 15px; color: var(--label-2); }
.nutr tr.sub td:first-child { padding-left: 32px; }
.nutr tr.missing td:last-child { color: var(--label-3); font-weight: 400; }
.hint-card { padding: 14px 16px; font-size: 15px; color: var(--label-2); }

/* скелетон загрузки */
.skeleton { position: relative; overflow: hidden; }
.sk-line { height: 14px; border-radius: 7px; background: var(--fill); margin-bottom: 10px; }
.sk-line.w60 { width: 60%; } .sk-line.w80 { width: 80%; } .sk-line.w40 { width: 40%; }
.sk-title { height: 22px; width: 70%; border-radius: 8px; background: var(--fill); margin-bottom: 12px; }
.sk-img { flex: none; width: 88px; height: 88px; border-radius: 16px; background: var(--fill); }
.skeleton::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(100deg, transparent 20%, rgba(255, 255, 255, 0.35) 50%, transparent 80%);
  transform: translateX(-100%); animation: shimmer 1.4s infinite;
}
@media (prefers-color-scheme: dark) { .skeleton::after { background: linear-gradient(100deg, transparent 20%, rgba(255, 255, 255, 0.07) 50%, transparent 80%); } }

.notfound { text-align: center; padding: 28px 20px; }
.notfound .big { font-size: 20px; font-weight: 700; margin: 0 0 6px; }
.notfound p { margin: 0; color: var(--label-2); font-size: 15px; line-height: 1.4; }

.legal { margin: 28px 8px 0; text-align: center; font-size: 11px; line-height: 15px; color: var(--label-3); }
.brand-mark { width: 40px; height: 40px; border-radius: 9px; vertical-align: -9px; margin-right: 10px; box-shadow: 0 1px 4px rgba(0,0,0,.18); }

/* ---------- «Шторка» выбора профилей ---------- */
.sheet-backdrop {
  position: fixed; inset: 0; z-index: 50; background: rgba(0, 0, 0, 0.4); opacity: 0; transition: opacity .3s;
}
.sheet-backdrop.open { opacity: 1; }
.sheet {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 60; margin: 0 auto; max-width: 600px;
  max-height: 90vh; max-height: 90dvh; display: flex; flex-direction: column;
  background: var(--bg); border-radius: 16px 16px 0 0; box-shadow: 0 -8px 40px rgba(0, 0, 0, 0.25);
  transform: translateY(100%); transition: transform .38s cubic-bezier(.32, .72, 0, 1);
}
.sheet.open { transform: translateY(0); }
.sheet-grabber { width: 36px; height: 5px; border-radius: 3px; background: var(--label-3); margin: 8px auto 0; flex: none; }
.sheet-head {
  flex: none; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 16px 12px;
  border-bottom: 0.5px solid var(--sep);
}
.sheet-head h2 { margin: 0; font-size: 17px; font-weight: 600; }
.sheet-done { border: 0; background: transparent; color: var(--blue); font-size: 17px; font-weight: 600; padding: 6px 4px; }
.sheet-done:active { opacity: 0.5; }
.sheet-body { overflow-y: auto; overscroll-behavior: contain; padding: 4px 16px calc(28px + var(--safe-bottom)); -webkit-overflow-scrolling: touch; }
.sheet-body .group { margin-top: 16px; }
.opt { min-height: 60px; }
.opt .cell-detail { white-space: normal; font-size: 13px; line-height: 1.3; }
.switch {
  flex: none; position: relative; width: 51px; height: 31px; border-radius: 16px; background: var(--fill-strong);
  transition: background .25s;
}
.switch::after {
  content: ""; position: absolute; top: 2px; left: 2px; width: 27px; height: 27px; border-radius: 50%; background: #fff;
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.15), 0 1px 1px rgba(0, 0, 0, 0.16); transition: transform .25s cubic-bezier(.3, 1.3, .5, 1);
}
.opt[aria-checked="true"] .switch { background: var(--green); }
.opt[aria-checked="true"] .switch::after { transform: translateX(20px); }

/* ---------- Камера ---------- */
.scanner { position: fixed; inset: 0; z-index: 100; background: #000; }
.scanner video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.scanner-frame {
  position: absolute; left: 50%; top: 44%; width: min(80vw, 340px); aspect-ratio: 1.55; transform: translate(-50%, -50%);
  border-radius: 22px; box-shadow: 0 0 0 100vmax rgba(0, 0, 0, 0.55);
}
.scanner-frame i { position: absolute; width: 34px; height: 34px; border: 4px solid #fff; }
.scanner-frame i:nth-child(1) { left: 0; top: 0; border-right: 0; border-bottom: 0; border-top-left-radius: 22px; }
.scanner-frame i:nth-child(2) { right: 0; top: 0; border-left: 0; border-bottom: 0; border-top-right-radius: 22px; }
.scanner-frame i:nth-child(3) { left: 0; bottom: 0; border-right: 0; border-top: 0; border-bottom-left-radius: 22px; }
.scanner-frame i:nth-child(4) { right: 0; bottom: 0; border-left: 0; border-top: 0; border-bottom-right-radius: 22px; }
.scanner-hint { position: absolute; left: 0; right: 0; top: calc(44% + min(80vw, 340px) / 3.1 + 24px); margin: 0; text-align: center; color: #fff; font-size: 15px; text-shadow: 0 1px 6px rgba(0, 0, 0, 0.6); }
.scanner-bar { position: absolute; left: 0; right: 0; bottom: calc(28px + var(--safe-bottom)); display: flex; justify-content: center; gap: 12px; padding: 0 16px; }
.scanner-shot { padding: 14px 26px; border: 0; border-radius: 999px; font-size: 17px; font-weight: 600; color: #000; background: #fff; }
.scanner-shot:active { opacity: 0.7; }
.scanner-close {
  padding: 14px 28px; border: 0; border-radius: 999px; font-size: 17px; font-weight: 600; color: #fff;
  background: rgba(60, 60, 67, 0.7); -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px);
}

/* ---------- Анимации ---------- */
@keyframes rise { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes shimmer { to { transform: translateX(100%); } }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
}

.about { margin-top: 28px; }
.about-text { padding: 0 16px; font-size: 13px; line-height: 18px; color: var(--label-2); }
.about-text p { margin: 0 0 8px; }

.btn-icon.doc { -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 2h8l5 5v13a2 2 0 0 1-2 2H6a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2zm7 1.5V8h4.5L13 3.5zM8 12h8v1.6H8V12zm0 3.4h8V17H8v-1.6zM8 9h3v1.6H8V9z'/%3E%3C/svg%3E"); mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 2h8l5 5v13a2 2 0 0 1-2 2H6a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2zm7 1.5V8h4.5L13 3.5zM8 12h8v1.6H8V12zm0 3.4h8V17H8v-1.6zM8 9h3v1.6H8V9z'/%3E%3C/svg%3E"); }
.btn { gap: 8px; }

/* «Подробно»: состав, добавки и пищевая ценность под кнопкой */
.more { margin-top: 16px; }
.more > summary {
  list-style: none; cursor: pointer; user-select: none; text-align: center;
  padding: 14px 16px; border-radius: 14px; background: var(--card); box-shadow: var(--shadow);
  color: var(--blue); font-size: 17px; font-weight: 500; -webkit-tap-highlight-color: transparent;
}
.more > summary::-webkit-details-marker { display: none; }
.more > summary:active { background: var(--fill); }
.more .more-close { display: none; }
.more[open] .more-open { display: none; }
.more[open] .more-close { display: inline; }
