/* Layout: «нарезка» — страница режется на полосы, как хамон: тёмное мясо (основной фон)
   и светлые полосы жира (акцентные секции). Жёлто-красная пара — испанский флаг. */
:root {
  --ink: #160809;        /* фон: почти чёрный бордо */
  --ink-2: #211011;      /* приподнятые поверхности */
  --ink-3: #2d1716;      /* поля, карточки */
  --line: rgba(244, 228, 220, .13);
  --line-2: rgba(244, 228, 220, .24);
  --fat: #f4e4dc;        /* основной текст / светлые полосы */
  --fat-2: #c7aba2;      /* вторичный текст */
  --fat-3: #8f7570;      /* приглушённый текст */
  --meat: #8e1b2a;       /* хамонный красный */
  --meat-hi: #b8304a;
  --saffron: #f2b53a;    /* шафран — главный акцент, кнопки */
  --saffron-ink: #2a1206;
  --olive: #a3b35e;      /* успех */
  --warn: #e8a03c;
  --danger: #ec6a52;
  --on-fat: #2a0e10;     /* текст на светлых полосах */
  --on-fat-2: #6f4a46;

  --f-display: "Unbounded", "Arial Black", system-ui, sans-serif;
  --f-body: "Onest", "Segoe UI", system-ui, -apple-system, sans-serif;
  --f-mono: "JetBrains Mono", ui-monospace, "Cascadia Mono", Consolas, monospace;

  --r: 14px;
  --r-lg: 26px;
  --wrap: 1280px;
  --gut-l: max(16px, env(safe-area-inset-left, 0px));
  --gut-r: max(16px, env(safe-area-inset-right, 0px));
  --ease: cubic-bezier(.2, .8, .2, 1);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; overflow-x: clip; }
body {
  margin: 0; background: var(--ink); color: var(--fat);
  font: 400 16px/1.55 var(--f-body);
  overflow-x: clip;
}
img { max-width: 100%; display: block; }
svg { display: block; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 2px solid var(--saffron); outline-offset: 3px; border-radius: 6px; }
h1, h2, h3, h4 { font-family: var(--f-display); font-weight: 800; line-height: 1.02; margin: 0; text-wrap: balance; letter-spacing: -.02em; }
p { margin: 0; }
.mono { font-family: var(--f-mono); font-variant-numeric: tabular-nums; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--saffron); color: var(--saffron-ink); padding: 8px 12px; z-index: 100; }
.skip:focus { left: 16px; }
[hidden] { display: none !important; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding-left: var(--gut-l); padding-right: var(--gut-r); }
.eyebrow { font: 600 12px/1 var(--f-mono); text-transform: uppercase; letter-spacing: .14em; color: var(--fat-2); }
.muted { color: var(--fat-2); }

/* ---------- кнопки ---------- */
.btn {
  --b: var(--saffron); --c: var(--saffron-ink);
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 0 22px; border-radius: 999px; border: 0;
  background: var(--b); color: var(--c); font: 600 15px/1 var(--f-body); text-decoration: none;
  transition: transform .2s var(--ease), background .2s, box-shadow .2s;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 10px 30px -10px var(--b); }
.btn:active { transform: translateY(0) scale(.98); }
.btn svg { width: 18px; height: 18px; }
.btn--ghost { --b: transparent; --c: var(--fat); box-shadow: inset 0 0 0 1.5px var(--line-2); }
.btn--ghost:hover { box-shadow: inset 0 0 0 1.5px var(--fat); }
.btn--meat { --b: var(--meat); --c: var(--fat); }
.btn--sm { min-height: 38px; padding: 0 16px; font-size: 14px; }
.btn--block { width: 100%; }
.btn[disabled] { opacity: .45; pointer-events: none; }
.link { background: none; border: 0; padding: 0; color: var(--saffron); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }

.ico {
  position: relative; display: inline-grid; place-items: center; width: 42px; height: 42px;
  border-radius: 50%; border: 0; background: transparent; color: var(--fat); text-decoration: none;
  transition: background .2s;
}
.ico:hover { background: var(--ink-3); }
.ico svg { width: 22px; height: 22px; }
.ico i {
  position: absolute; top: 2px; right: 0; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px;
  background: var(--saffron); color: var(--saffron-ink); font: 700 11px/18px var(--f-mono); font-style: normal; text-align: center;
}
.ico--cart.bump { animation: bump .5s var(--ease); }
@keyframes bump { 30% { transform: scale(1.25) rotate(-8deg); } 60% { transform: scale(.92) rotate(4deg); } }

/* ---------- шапка ---------- */
.top {
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 40;
  background: color-mix(in srgb, var(--ink) 82%, transparent);
  backdrop-filter: blur(14px) saturate(1.3); -webkit-backdrop-filter: blur(14px) saturate(1.3);
  border-bottom: 1px solid var(--line);
}
.top__in { max-width: var(--wrap); margin: 0 auto; padding: 10px var(--gut-r) 10px var(--gut-l); display: flex; align-items: center; gap: 22px; }
.logo { font: 900 21px/1 var(--f-display); letter-spacing: -.04em; text-decoration: none; display: inline-flex; white-space: nowrap; }
.logo span { color: var(--fat); }
.logo b { color: var(--saffron); font-weight: 900; }
.logo:hover b { animation: wobble .6s var(--ease); display: inline-block; }
@keyframes wobble { 30% { transform: skewX(-12deg); } 60% { transform: skewX(6deg); } }
.nav { display: flex; gap: 4px; }
.nav a { padding: 9px 14px; border-radius: 999px; text-decoration: none; font-weight: 500; font-size: 15px; color: var(--fat-2); transition: color .2s, background .2s; }
.nav a:hover, .nav a.on { color: var(--fat); background: var(--ink-3); }
.city-btn { margin-left: auto; display: inline-flex; align-items: center; gap: 6px; background: none; border: 0; color: var(--fat-2); font-size: 14px; padding: 8px 10px; border-radius: 999px; }
.city-btn:hover { color: var(--fat); background: var(--ink-3); }
.city-btn svg { width: 18px; height: 18px; color: var(--saffron); }
.top__icons { display: flex; gap: 2px; }
.ico--menu { display: none; }
@media (max-width: 860px) {
  .nav { display: none; }
  .nav.open { display: flex; position: absolute; left: 0; right: 0; top: 100%; flex-direction: column; background: var(--ink-2); padding: 10px var(--gut-r) 16px var(--gut-l); border-bottom: 1px solid var(--line); }
  .nav.open a { font-size: 18px; padding: 12px 6px; }
  .ico--menu { display: inline-grid; }
  .city-btn span { max-width: 92px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .top__in { gap: 10px; }
}
@media (max-width: 440px) { .city-btn span { display: none; } .city-btn { padding: 8px 4px; } .logo { font-size: 17px; } .ico { width: 36px; } .top__icons a[href="#compare"] { display: none; } .hero__cta .btn { flex: 1 1 auto; } }

/* ---------- герой: компактный, чтобы каталог был виден сразу ---------- */
.hero { padding-block: 28px 0; }
.hero__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: 32px; align-items: center; }
.hero__text { display: flex; flex-direction: column; gap: 20px; min-width: 0; }
.hero h1 { font-size: clamp(40px, 6.2vw, 96px); font-weight: 900; letter-spacing: -.055em; line-height: .9; text-transform: uppercase; }
.hero h1 .l2 { display: block; color: var(--saffron); }
.hero h1 .slice { display: inline-block; animation: slicein 1s var(--ease) both; }
.hero h1 .l2 .slice { animation-delay: .15s; }
@keyframes slicein { from { clip-path: inset(0 100% 0 0); transform: translateX(-20px); } to { clip-path: inset(0 0 0 0); transform: none; } }
.hero__lead { max-width: 50ch; font-size: clamp(16px, 1.3vw, 18px); color: var(--fat-2); }
.hero__lead b { color: var(--fat); font-weight: 600; }
.hero__cta { display: flex; gap: 10px; flex-wrap: wrap; }
.hero__pic { position: relative; border-radius: var(--r-lg); overflow: hidden; aspect-ratio: 16 / 10; max-width: 100%; background: var(--ink-2); }
/* фото — фоном, а не картинкой: браузеры не вешают на него свои кнопки «сохранить», «найти похожее» */
.hero__img { position: absolute; inset: 0; background: center / cover no-repeat; background-position: 30% 50%; transform: scale(1.04); transition: transform 1.2s var(--ease); user-select: none; -webkit-user-select: none; -webkit-touch-callout: none; }
.hero__pic:hover .hero__img { transform: scale(1); }
/* прозрачный слой поверх фото: Яндекс Браузер видит под курсором его, а не картинку, и не показывает кнопки «сохранить» */
.hero__pic::after { content: ""; position: absolute; inset: 0; z-index: 1; }
.hero__pic .tag { z-index: 2; }
#view:focus { outline: none; }
.tag {
  position: absolute; display: flex; flex-direction: column; gap: 2px; text-decoration: none;
  background: var(--fat); color: var(--on-fat); padding: 12px 16px 12px 24px; border-radius: 6px 14px 14px 6px;
  box-shadow: 0 14px 40px -12px rgba(0,0,0,.6); transform: rotate(-4deg); transition: transform .3s var(--ease); font-size: 13px;
}
.tag::before { content: ""; position: absolute; left: 9px; top: 50%; width: 7px; height: 7px; border-radius: 50%; background: var(--ink); transform: translateY(-50%); }
.tag b { font: 800 20px/1 var(--f-display); letter-spacing: -.03em; }
.tag:hover { transform: rotate(0) scale(1.05); }
.tag--1 { right: 5%; bottom: 9%; }
@media (max-width: 860px) {
  .hero__grid { grid-template-columns: 1fr; gap: 22px; }
  .hero__pic { aspect-ratio: 16 / 9.5; }
}

/* бегущая строка — полоса «жира» */
.ticker { margin-top: 44px; background: var(--fat); color: var(--on-fat); overflow: hidden; transform: rotate(-1.2deg); margin-inline: -20px; }
.ticker__track { display: flex; width: max-content; animation: tick 38s linear infinite; padding-block: 14px; }
.ticker span { font: 900 clamp(20px, 3vw, 34px)/1 var(--f-display); letter-spacing: -.03em; text-transform: uppercase; padding-inline: 18px; display: inline-flex; align-items: center; gap: 36px; white-space: nowrap; }
.ticker span::after { content: ""; width: 14px; height: 14px; border-radius: 50%; background: var(--meat); }
@keyframes tick { to { transform: translateX(-50%); } }

/* ---------- секции ---------- */
.sec { padding-block: 84px; }
.sec__head { display: flex; align-items: end; justify-content: space-between; gap: 20px; margin-bottom: 30px; flex-wrap: wrap; }
.sec__head h2 { font-size: clamp(30px, 4.6vw, 60px); }
.sec__head .count { font: 600 14px/1 var(--f-mono); color: var(--fat-3); }
.band { background: var(--fat); color: var(--on-fat); }
.band .muted, .band .eyebrow { color: var(--on-fat-2); }
.band--meat { background: var(--meat); color: var(--fat); }

/* категории */
.cats { display: grid; grid-template-columns: repeat(var(--n, 5), minmax(0, 1fr)); gap: 12px; }
.cat {
  position: relative; display: flex; flex-direction: column; justify-content: end; gap: 6px; min-height: 210px;
  border-radius: var(--r); overflow: hidden; padding: 16px; text-decoration: none; isolation: isolate;
  background: var(--ink-2);
}
.cat img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transition: transform .7s var(--ease); }
.cat::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 30%, rgba(22,8,9,.92)); z-index: -1; }
.cat:hover img { transform: scale(1.08) rotate(-1deg); }
.cat b { font: 800 clamp(14px, 1.45vw, 18px)/1.1 var(--f-display); letter-spacing: -.02em; overflow-wrap: anywhere; hyphens: auto; }
.cat small { font: 500 12px/1 var(--f-mono); color: var(--fat-2); }
@media (max-width: 960px) { .cats { grid-template-columns: repeat(3, minmax(0, 1fr)); } .cats .cat:nth-child(n+4) { min-height: 150px; } }
@media (max-width: 560px) { .cats { grid-template-columns: repeat(2, minmax(0, 1fr)); } .cats .cat:first-child { grid-column: span 2; } .cat { min-height: 150px; } }

/* фильтры каталога */
.filters { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; margin-bottom: 26px; }
.chips { display: flex; gap: 6px; flex-wrap: wrap; }
.chip {
  border: 1.5px solid var(--line-2); background: transparent; color: var(--fat-2); border-radius: 999px;
  padding: 8px 14px; font-size: 14px; font-weight: 500; transition: all .2s; text-decoration: none;
}
.chip:hover { color: var(--fat); border-color: var(--fat-2); }
.chip.on { background: var(--fat); color: var(--on-fat); border-color: var(--fat); }
.search { position: relative; margin-left: auto; min-width: 0; flex: 0 1 280px; }
.search svg { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); width: 18px; height: 18px; color: var(--fat-3); }
.search input { width: 100%; padding-left: 42px; }
select.sort { flex: 0 0 auto; }
@media (max-width: 700px) { .search { flex: 1 1 100%; order: -1; margin-left: 0; } }

/* сетка карточек */
.grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 30px 20px; }
.grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 30px 16px; }
@media (max-width: 1000px) { .grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 760px) {
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px 12px; }
  /* на телефоне ряды по 3 товара листаются вбок, без одиноких карточек */
  .grid--row { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; gap: 12px; margin-inline: calc(-1 * var(--gut-l)) calc(-1 * var(--gut-r)); padding-inline: var(--gut-l) var(--gut-r); scroll-padding-inline: var(--gut-l) var(--gut-r); padding-bottom: 6px; scrollbar-width: none; }
  .grid--row::-webkit-scrollbar { display: none; }
  .grid--row > .card { flex: 0 0 min(72%, 300px); scroll-snap-align: start; }
}
.catsec + .catsec { margin-top: 70px; }
.catsec h3 { font-size: clamp(22px, 2.8vw, 34px); display: flex; align-items: baseline; gap: 14px; margin-bottom: 22px; flex-wrap: wrap; }
.catsec h3 small { font: 600 13px/1 var(--f-mono); color: var(--fat-3); letter-spacing: 0; }

.card { display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.card__pic { position: relative; aspect-ratio: 1; border-radius: var(--r); overflow: hidden; background: var(--ink-2); display: block; }
.card__pic img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease), filter .4s; }
.card:hover .card__pic img { transform: scale(1.06); }
.card__badges { position: absolute; left: 10px; top: 10px; display: flex; flex-direction: column; align-items: flex-start; gap: 5px; }
.badge { font: 700 10.5px/1 var(--f-mono); letter-spacing: .08em; text-transform: uppercase; padding: 6px 8px; border-radius: 6px; }
.badge--hit { background: var(--saffron); color: var(--saffron-ink); }
.badge--super { background: var(--fat); color: var(--meat); }
.badge--pre { background: var(--ink); color: var(--fat); box-shadow: inset 0 0 0 1px var(--line-2); }
.badge--out { background: var(--ink); color: var(--fat-3); box-shadow: inset 0 0 0 1px var(--line-2); }
.card__acts { position: absolute; right: 8px; top: 8px; display: flex; flex-direction: column; gap: 6px; }
.round {
  width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; border: 0;
  background: rgba(22, 8, 9, .62); color: var(--fat); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  transition: transform .2s var(--ease), background .2s, color .2s;
}
.round:hover { transform: scale(1.1); background: var(--ink); }
.round svg { width: 18px; height: 18px; }
.round.on { color: var(--saffron); }
.round.pop { animation: pop .45s var(--ease); }
@keyframes pop { 40% { transform: scale(1.4); } }
.card__name { font-weight: 600; font-size: 16px; line-height: 1.25; text-decoration: none; }
.card__name:hover { color: var(--saffron); }
.card__meta { display: flex; gap: 10px; align-items: center; font-size: 13px; color: var(--fat-3); }
.stars { display: inline-flex; align-items: center; gap: 4px; color: var(--fat-2); font-size: 13px; }
.stars svg { width: 14px; height: 14px; color: var(--saffron); }
.card__buy { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: auto; flex-wrap: wrap; }
.price { font: 800 20px/1 var(--f-display); letter-spacing: -.03em; white-space: nowrap; }
.price small { font: 500 12px/1 var(--f-mono); color: var(--fat-3); letter-spacing: 0; margin-left: 4px; }
.add {
  border: 0; border-radius: 999px; background: var(--fat); color: var(--on-fat); font-weight: 600; font-size: 14px;
  height: 40px; padding: 0 16px; display: inline-flex; align-items: center; gap: 6px; transition: background .2s, transform .2s var(--ease);
}
.add:hover { background: var(--saffron); transform: translateY(-1px); }
.add--pre { background: transparent; color: var(--fat); box-shadow: inset 0 0 0 1.5px var(--line-2); }
.add--out, .add--out:hover { background: transparent; color: var(--fat-3); box-shadow: inset 0 0 0 1.5px var(--line); cursor: default; transform: none; }
.stock-note { border: 1.5px solid var(--saffron); background: rgba(242,181,58,.08); border-radius: 12px; padding: 10px 14px; font-size: 13.5px; display: flex; flex-direction: column; gap: 4px; margin-bottom: 4px; }
.stock-note p { margin: 0; }
.line__var .left { color: var(--saffron); }
.stepper { display: inline-flex; align-items: center; border-radius: 999px; background: var(--ink-3); height: 40px; }
.stepper button { width: 38px; height: 40px; border: 0; background: none; font-size: 20px; color: var(--fat); border-radius: 50%; }
.stepper button:hover { color: var(--saffron); }
.stepper span { min-width: 26px; text-align: center; font: 600 15px/1 var(--f-mono); }
@media (max-width: 460px) { .card__buy { flex-direction: column; align-items: stretch; } .add, .stepper { width: 100%; justify-content: center; } .stepper { justify-content: space-between; } .price { font-size: 18px; } }

/* летящий ломтик в корзину */
.flyer { position: fixed; z-index: 90; width: 54px; height: 54px; border-radius: 50%; overflow: hidden; pointer-events: none; box-shadow: 0 10px 30px rgba(0,0,0,.5); }
.flyer img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- доставка (светлая полоса) ---------- */
.facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; border-top: 2px solid var(--on-fat); }
.fact { padding: 24px 24px 8px 0; display: flex; flex-direction: column; gap: 10px; }
.fact + .fact { padding-left: 24px; border-left: 1px solid rgba(42,14,16,.18); }
.fact b { font: 900 clamp(34px, 4.4vw, 58px)/.95 var(--f-display); letter-spacing: -.05em; color: var(--meat); }
.fact p { max-width: 34ch; }
@media (max-width: 760px) { .facts { grid-template-columns: 1fr; } .fact + .fact { padding-left: 0; border-left: 0; border-top: 1px solid rgba(42,14,16,.18); } }

.calc { margin-top: 44px; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); gap: 24px; align-items: start; }
.calc__form { display: flex; flex-direction: column; gap: 10px; }
.calc__out { background: var(--on-fat); color: var(--fat); border-radius: var(--r-lg); padding: 24px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.calc__out div { display: flex; flex-direction: column; gap: 6px; }
.calc__out small { color: var(--fat-2); font-size: 13px; }
.calc__out b { font: 800 22px/1 var(--f-display); letter-spacing: -.03em; }
.calc__out .note { grid-column: 1 / -1; font-size: 13px; color: var(--fat-3); }
@media (max-width: 760px) { .calc { grid-template-columns: 1fr; } .calc__out { grid-template-columns: 1fr 1fr; } }
.band .field input, .band .field select { background: #fff; color: var(--on-fat); border-color: rgba(42,14,16,.2); }

/* ---------- тизер отслеживания ---------- */
.teaser { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 40px; align-items: center; }
.teaser h2 { font-size: clamp(32px, 4.8vw, 64px); }
.teaser p { margin-top: 18px; color: var(--fat-2); max-width: 46ch; font-size: 17px; }
.teaser .btn { margin-top: 26px; }
@media (max-width: 860px) { .teaser { grid-template-columns: 1fr; } }

/* отзывы */
.reviews { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.rev { background: var(--ink-2); border-radius: var(--r); padding: 22px; display: flex; flex-direction: column; gap: 14px; }
.rev q { quotes: none; font-size: 17px; line-height: 1.45; }
.rev footer { margin-top: auto; display: flex; justify-content: space-between; gap: 10px; font-size: 13px; color: var(--fat-3); flex-wrap: wrap; }
.rev footer a { color: var(--fat-2); }
.rev .photos { display: flex; gap: 6px; flex-wrap: wrap; }
.rev .photos img { width: 64px; height: 64px; border-radius: 8px; object-fit: cover; }
@media (max-width: 900px) { .reviews { grid-template-columns: 1fr; } }

/* FAQ */
.faq { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 40px; }
.faq details { border-top: 1px solid var(--line-2); padding-block: 18px; }
.faq details:last-child { border-bottom: 1px solid var(--line-2); }
.faq summary { cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: 20px; font-weight: 600; font-size: 18px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font: 400 26px/1 var(--f-display); color: var(--saffron); transition: transform .3s var(--ease); }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { margin-top: 12px; color: var(--fat-2); max-width: 62ch; }
@media (max-width: 860px) { .faq { grid-template-columns: 1fr; gap: 20px; } }

/* подвал */
.foot { border-top: 1px solid var(--line); padding-block: 50px 30px; margin-top: 40px; }
.foot__in { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 30px; }
.foot .logo { font-size: clamp(30px, 6vw, 76px); line-height: .9; }
.foot h4 { font: 600 12px/1 var(--f-mono); text-transform: uppercase; letter-spacing: .12em; color: var(--fat-3); margin-bottom: 14px; }
.foot ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.foot a { text-decoration: none; color: var(--fat-2); }
.foot a:hover { color: var(--fat); }
.foot__legal { margin-top: 40px; display: flex; justify-content: space-between; gap: 20px; color: var(--fat-3); font-size: 13px; flex-wrap: wrap; }
@media (max-width: 860px) { .foot__in { grid-template-columns: 1fr 1fr; } .foot__in > :first-child { grid-column: 1 / -1; } }

/* ---------- формы ---------- */
.field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.field > span { font-size: 13px; font-weight: 500; color: var(--fat-2); }
.band .field > span { color: var(--on-fat-2); }
.field input, .field select, .field textarea, .input {
  width: 100%; min-height: 48px; padding: 12px 14px; border-radius: 12px; border: 1.5px solid var(--line-2);
  background: var(--ink-2); color: var(--fat); outline: none; transition: border-color .2s, box-shadow .2s;
}
.field textarea { min-height: 96px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus, .input:focus { border-color: var(--saffron); box-shadow: 0 0 0 3px rgba(242,181,58,.2); }
.field.err input, .field.err select { border-color: var(--danger); }
.field .hint { font-size: 12.5px; color: var(--fat-3); }
.field.err .hint { color: var(--danger); }
.row2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.row3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
@media (max-width: 600px) { .row2, .row3 { grid-template-columns: 1fr; } }
.seg { display: flex; flex-wrap: wrap; gap: 8px; }
.seg label { position: relative; cursor: pointer; }
.seg input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.seg span { display: flex; flex-direction: column; gap: 3px; border: 1.5px solid var(--line-2); border-radius: 12px; padding: 10px 14px; transition: all .2s; min-width: 84px; }
.seg span small { color: var(--fat-3); font-size: 12.5px; }
.seg input:checked + span { border-color: var(--saffron); background: rgba(242,181,58,.08); }
.seg input:focus-visible + span { outline: 2px solid var(--saffron); outline-offset: 2px; }
.seg--big span { min-width: 150px; }

/* ---------- страница товара ---------- */
.crumbs { display: flex; gap: 8px; font-size: 14px; color: var(--fat-3); flex-wrap: wrap; padding-block: 24px 18px; }
.crumbs a { color: var(--fat-2); text-decoration: none; }
.crumbs a:hover { color: var(--saffron); }
.pp { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 48px; align-items: start; }
.pp__pic { position: sticky; top: 90px; border-radius: var(--r-lg); overflow: hidden; aspect-ratio: 1; background: var(--ink-2); cursor: zoom-in; }
.pp__pic img { width: 100%; height: 100%; object-fit: cover; transition: transform .25s ease-out; }
.pp__pic.zoom img { transform: scale(2.1); }
.pp__info { display: flex; flex-direction: column; gap: 22px; min-width: 0; }
.pp__info h1 { font-size: clamp(30px, 3.6vw, 50px); }
.pp__lead { font-size: 19px; color: var(--fat-2); }
.pp__price { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.pp__price .price { font-size: clamp(32px, 3.4vw, 44px); }
.pp__buy { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.pp__buy .stepper { height: 52px; }
.pp__buy .stepper button { height: 52px; }
.pp__buy .btn { min-height: 52px; }
.pp__deliv { display: flex; gap: 12px; align-items: center; padding: 14px 16px; border-radius: var(--r); background: var(--ink-2); font-size: 14px; color: var(--fat-2); }
.pp__deliv svg { width: 22px; height: 22px; color: var(--saffron); flex: none; }
.pp__deliv b { color: var(--fat); font-weight: 600; }
.specs { display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: 10px 20px; margin: 0; font-size: 15px; }
.specs dt { color: var(--fat-3); }
.specs dd { margin: 0; }
@media (max-width: 860px) { .pp { grid-template-columns: 1fr; gap: 24px; } .pp__pic { position: relative; top: 0; } }

.revs { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 40px; align-items: start; }
.revs__list { display: flex; flex-direction: column; gap: 12px; }
.revs__form { background: var(--ink-2); border-radius: var(--r-lg); padding: 24px; display: flex; flex-direction: column; gap: 14px; }
.rate { display: flex; gap: 4px; }
.rate button { border: 0; background: none; padding: 2px; color: var(--ink-3); }
.rate button svg { width: 32px; height: 32px; transition: transform .2s var(--ease); }
.rate button.on { color: var(--saffron); }
.rate button:hover svg { transform: scale(1.15) rotate(-8deg); }
.upload { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.upload label { display: inline-flex; gap: 8px; align-items: center; border: 1.5px dashed var(--line-2); border-radius: 12px; padding: 10px 14px; cursor: pointer; color: var(--fat-2); font-size: 14px; }
.upload label:hover { border-color: var(--saffron); color: var(--fat); }
.upload label svg { width: 20px; height: 20px; }
.upload input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.upload img { width: 56px; height: 56px; object-fit: cover; border-radius: 8px; }
@media (max-width: 860px) { .revs { grid-template-columns: 1fr; } }

/* ---------- корзина ---------- */
.drawer { position: fixed; inset: 0; z-index: 70; }
.drawer__veil, .modal__veil { position: absolute; inset: 0; background: rgba(10, 3, 4, .6); backdrop-filter: blur(3px); animation: fade .3s; }
.drawer__panel {
  position: absolute; right: 0; top: 0; bottom: 0; width: min(460px, 100%); background: var(--ink-2);
  display: flex; flex-direction: column; animation: slide .45s var(--ease);
  padding-top: env(safe-area-inset-top, 0px); padding-bottom: env(safe-area-inset-bottom, 0px); padding-right: env(safe-area-inset-right, 0px);
}
@keyframes slide { from { transform: translateX(100%); } }
@keyframes fade { from { opacity: 0; } }
.drawer__head { display: flex; justify-content: space-between; align-items: center; padding: 18px 20px; border-bottom: 1px solid var(--line); }
.drawer__head h2 { font-size: 24px; }
.drawer__body { flex: 1; overflow: auto; padding: 18px 20px; display: flex; flex-direction: column; gap: 16px; }
.line { display: grid; grid-template-columns: 64px minmax(0, 1fr) auto; gap: 12px; align-items: center; }
.line img { width: 64px; height: 64px; border-radius: 10px; object-fit: cover; }
.line__name { font-weight: 600; font-size: 15px; line-height: 1.25; }
.line__var { font-size: 13px; color: var(--fat-3); }
.line__right { display: flex; flex-direction: column; align-items: end; gap: 6px; }
.line .stepper { height: 32px; }
.line .stepper button { width: 30px; height: 32px; font-size: 17px; }
.sum { display: flex; flex-direction: column; gap: 8px; border-top: 1px solid var(--line); padding-top: 16px; font-size: 15px; }
.sum div { display: flex; justify-content: space-between; gap: 10px; }
.sum .total { font: 800 22px/1.1 var(--f-display); letter-spacing: -.03em; padding-top: 6px; }
.sum .good { color: var(--olive); }
.free { font-size: 13px; color: var(--fat-2); }
.free__bar { height: 6px; border-radius: 3px; background: var(--ink-3); margin-top: 6px; overflow: hidden; }
.free__bar i { display: block; height: 100%; background: linear-gradient(90deg, var(--meat-hi), var(--saffron)); border-radius: 3px; transition: width .5s var(--ease); }
.promo { display: flex; gap: 8px; }
.promo input { flex: 1; min-width: 0; text-transform: uppercase; font-family: var(--f-mono); }
.promo-msg { font-size: 13px; }
.promo-msg.ok { color: var(--olive); }
.promo-msg.bad { color: var(--danger); }
.empty { text-align: center; padding: 40px 10px; display: flex; flex-direction: column; align-items: center; gap: 14px; color: var(--fat-2); }
.empty b { font: 800 22px/1.1 var(--f-display); color: var(--fat); }

/* ---------- оформление ---------- */
.checkout { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, .9fr); gap: 40px; align-items: start; padding-block: 10px 60px; }
.checkout form { display: flex; flex-direction: column; gap: 30px; }
.step { display: flex; flex-direction: column; gap: 14px; }
.step h3 { font-size: 22px; display: flex; gap: 12px; align-items: baseline; }
.step h3 i { font: 600 13px/1 var(--f-mono); font-style: normal; color: var(--saffron); }
.summary { position: sticky; top: 90px; background: var(--ink-2); border-radius: var(--r-lg); padding: 24px; display: flex; flex-direction: column; gap: 16px; }
.summary h3 { font-size: 22px; }
.legal { font-size: 12.5px; color: var(--fat-3); }
@media (max-width: 900px) { .checkout { grid-template-columns: 1fr; } .summary { position: relative; top: 0; } }

/* чек */
.receipt-wrap { overflow: hidden; padding: 6px 4px 20px; }
.receipt {
  background: #fbf6ef; color: #23130f; font-family: var(--f-mono); font-size: 13px; line-height: 1.6; padding: 26px 22px 30px;
  animation: print 1.6s steps(14) both; transform-origin: top;
  -webkit-mask: radial-gradient(circle at 8px 100%, transparent 7px, #000 7.5px) bottom / 16px 100% repeat-x;
          mask: radial-gradient(circle at 8px 100%, transparent 7px, #000 7.5px) bottom / 16px 100% repeat-x;
  box-shadow: 0 20px 40px -20px rgba(0,0,0,.6);
}
@keyframes print { from { clip-path: inset(0 0 100% 0); transform: translateY(-30px); } to { clip-path: inset(0 0 0 0); transform: none; } }
.receipt h3 { font: 900 22px/1 var(--f-display); text-align: center; letter-spacing: -.04em; }
.receipt h3 b { color: #c0392b; }
.receipt .c { text-align: center; }
.receipt hr { border: 0; border-top: 1.5px dashed #23130f55; margin: 10px 0; }
.receipt .r { display: flex; justify-content: space-between; gap: 10px; }
.receipt .r span:first-child { min-width: 0; }
.receipt .big { font-weight: 600; font-size: 16px; }
.receipt .barcode { height: 44px; margin: 14px auto 4px; width: 80%; background: repeating-linear-gradient(90deg, #23130f 0 2px, transparent 2px 4px, #23130f 4px 5px, transparent 5px 8px, #23130f 8px 11px, transparent 11px 12px); }

/* ---------- модалка ---------- */
.modal { position: fixed; inset: 0; z-index: 80; display: grid; place-items: center; padding: 16px; }
.modal__box {
  position: relative; width: min(520px, 100%); max-height: calc(100% - 20px); overflow: auto; background: var(--ink-2);
  border-radius: var(--r-lg); padding: 26px; animation: rise .45s var(--ease);
}
.modal__box h2 { font-size: 26px; margin-bottom: 8px; }
@keyframes rise { from { transform: translateY(30px) scale(.97); opacity: 0; } }
.modal__x { position: absolute; right: 12px; top: 12px; }
.city-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 4px; margin-top: 14px; max-height: 50vh; overflow: auto; }
.city-list button { text-align: left; background: none; border: 0; padding: 10px 12px; border-radius: 10px; color: var(--fat-2); display: flex; justify-content: space-between; gap: 8px; }
.city-list button:hover, .city-list button.on { background: var(--ink-3); color: var(--fat); }
.city-list small { color: var(--fat-3); font-family: var(--f-mono); font-size: 12px; white-space: nowrap; }

/* тосты */
.toasts { position: fixed; z-index: 95; left: 50%; bottom: calc(20px + env(safe-area-inset-bottom, 0px)); transform: translateX(-50%); display: flex; flex-direction: column; gap: 8px; align-items: center; pointer-events: none; width: max-content; max-width: calc(100% - 32px); }
.toast { background: var(--fat); color: var(--on-fat); padding: 12px 18px; border-radius: 999px; font-weight: 600; font-size: 14px; box-shadow: 0 14px 40px rgba(0,0,0,.45); animation: rise .4s var(--ease); display: flex; gap: 10px; align-items: center; }
.toast.out { opacity: 0; transform: translateY(10px); transition: .3s; }

/* конфетти из ломтиков */
.confetti { position: fixed; inset: 0; pointer-events: none; z-index: 96; }

/* ---------- сравнение / избранное ---------- */
.cmp-wrap { overflow-x: auto; border-radius: var(--r); border: 1px solid var(--line); }
.cmp { border-collapse: collapse; width: 100%; min-width: 640px; font-size: 15px; }
.cmp th, .cmp td { padding: 14px 16px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); }
.cmp th { color: var(--fat-3); font-weight: 500; width: 160px; position: sticky; left: 0; background: var(--ink); }
.cmp td img { width: 100%; max-width: 200px; aspect-ratio: 1; object-fit: cover; border-radius: 10px; }
.cmp .best { color: var(--olive); font-weight: 600; }

/* ---------- отслеживание ---------- */
.trk-hero { padding-block: 30px 0; display: flex; justify-content: space-between; align-items: center; gap: 16px 24px; flex-wrap: wrap; }
.trk-hero h1 { font-size: clamp(30px, 4.4vw, 54px); font-weight: 900; letter-spacing: -.045em; }
.trk-find { display: flex; gap: 8px; width: min(440px, 100%); }
.trk-find input { flex: 1; min-width: 0; font-family: var(--f-mono); text-transform: uppercase; }
.trk-examples { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin: 14px 0 22px; font-size: 14px; color: var(--fat-3); }
.trk-examples .chip { padding: 6px 12px; font-family: var(--f-mono); font-size: 13px; }

/* фото-окорок: кадры одного окорока, смешиваются по прогрессу */
.jm { position: relative; aspect-ratio: 900 / 672; max-width: 100%; overflow: hidden; background: #0b0302; user-select: none; -webkit-user-select: none; -webkit-touch-callout: none; }
/* прозрачный слой поверх кадров: под курсором нет картинки, и браузер не вешает свои кнопки «скачать», «найти похожее» */
.jm::after { content: ""; position: absolute; inset: 0; z-index: 5; }
.jm__f { position: absolute; inset: 0; background: center / cover no-repeat; will-change: opacity; }
.jm__slice { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; z-index: 5; transform: scale(.6) rotate(-12deg); transition: opacity .5s, transform .9s var(--ease); }
.jm--done .jm__slice { opacity: 1; transform: none; }
.jm__fly { position: absolute; left: 42%; top: 38%; width: 60%; aspect-ratio: 900 / 672; z-index: 6; pointer-events: none; border-radius: 50%; mix-blend-mode: lighten; background: url(../img/jamon/slice.webp) center / cover no-repeat; }
.tcard__pic { border-radius: var(--r-lg); cursor: url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 width=%2240%22 height=%2240%22 viewBox=%220 0 40 40%22%3E%3Cpath d=%22M4 36 30 6c3 3 3 8 0 11L10 38z%22 fill=%22%23e9e2dc%22 stroke=%22%23160809%22 stroke-width=%221.5%22/%3E%3C/svg%3E") 6 34, pointer; }
.tcard { display: grid; grid-template-columns: minmax(0, 400px) minmax(0, 1fr); gap: 28px; align-items: center; background: var(--ink-2); border-radius: var(--r-lg); padding: 16px; }
.tcard__info { display: flex; flex-direction: column; gap: 16px; padding: 8px 10px 8px 0; min-width: 0; }
.tcard__top { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; font-size: 14px; }
.tcard__top .pill { font-size: 14px; padding: 6px 12px; }
.count-big { font: 900 clamp(30px, 3.6vw, 48px)/1 var(--f-display); letter-spacing: -.05em; font-variant-numeric: tabular-nums; }
.count-big small { font: 600 13px/1.3 var(--f-mono); color: var(--fat-2); letter-spacing: 0; display: block; margin-top: 10px; text-transform: uppercase; }
.count-unit { color: var(--fat-3); font-weight: 600; font-size: .42em; margin: 0 .3em 0 .08em; letter-spacing: -.02em; }
.slicebar { height: 10px; border-radius: 5px; background: repeating-linear-gradient(90deg, var(--ink-3) 0 calc(var(--w) - 2px), transparent calc(var(--w) - 2px) var(--w)); position: relative; overflow: hidden; }
.slicebar i { position: absolute; inset: 0 auto 0 0; background: repeating-linear-gradient(90deg, var(--meat-hi) 0 calc(var(--w) - 2px), transparent calc(var(--w) - 2px) var(--w)); transition: width .6s var(--ease); }
.tfacts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin: 0; border-top: 1px solid var(--line); padding-top: 14px; }
.tfacts dt { font-size: 12.5px; color: var(--fat-3); margin-bottom: 4px; }
.tfacts dd { margin: 0; font-weight: 600; font-size: 15px; overflow-wrap: anywhere; }
.tfacts a { color: var(--saffron); }
.tcard__hint { display: flex; justify-content: space-between; gap: 8px 16px; flex-wrap: wrap; font-size: 13px; color: var(--fat-3); }
.tcard__hint svg { width: 16px; height: 16px; display: inline; vertical-align: -3px; margin-right: 6px; color: var(--saffron); }
.bubble {
  position: absolute; z-index: 8; transform: translate(-50%, -100%); background: var(--fat); color: var(--on-fat);
  padding: 10px 14px; border-radius: 14px; font-size: 14px; line-height: 1.35; width: max-content; max-width: 220px; pointer-events: none;
  box-shadow: 0 14px 30px rgba(0,0,0,.45); animation: bub .5s var(--ease);
}
.bubble::after { content: ""; position: absolute; left: 50%; bottom: -7px; width: 14px; height: 14px; background: var(--fat); transform: translateX(-50%) rotate(45deg); border-radius: 2px; }
.bubble b { font-family: var(--f-display); font-weight: 800; }
@keyframes bub { from { opacity: 0; transform: translate(-50%, -80%) scale(.8); } }
@media (max-width: 860px) {
  .tcard { grid-template-columns: 1fr; gap: 14px; }
  .tcard__info { padding: 0 4px 6px; }
}
@media (max-width: 520px) { .tfacts { grid-template-columns: 1fr 1fr; } .tfacts > :last-child { grid-column: 1 / -1; } }

/* шаги доставки: в строку на широком экране, столбиком на телефоне */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 0; }
.steps li { position: relative; display: flex; flex-direction: column; gap: 4px; padding-right: 10px; min-width: 0; }
.steps li::before { content: ""; position: absolute; left: 26px; right: 0; top: 12px; height: 2px; background: var(--line-2); }
.steps li:last-child::before { display: none; }
.steps li.done::before { background: var(--saffron); }
.steps .dot { width: 26px; height: 26px; border-radius: 50%; border: 2px solid var(--line-2); background: var(--ink-2); display: grid; place-items: center; position: relative; z-index: 1; margin-bottom: 8px; }
.steps li.done .dot { background: var(--saffron); border-color: var(--saffron); }
.steps li.done .dot::after { content: ""; width: 8px; height: 5px; border-left: 2px solid var(--saffron-ink); border-bottom: 2px solid var(--saffron-ink); transform: rotate(-45deg) translate(1px, -1px); }
.steps li.now .dot { border-color: var(--saffron); box-shadow: 0 0 0 6px rgba(242,181,58,.15); animation: pulse 1.8s infinite; }
@keyframes pulse { 50% { box-shadow: 0 0 0 10px rgba(242,181,58,0); } }
.steps b { font-weight: 600; font-size: 14px; line-height: 1.25; }
.steps li:not(.done):not(.now) b { color: var(--fat-3); }
.steps small { font-size: 12.5px; color: var(--fat-3); line-height: 1.3; }
@media (max-width: 900px) {
  .steps { grid-template-columns: 1fr; }
  .steps li { display: grid; grid-template-columns: 26px minmax(0, 1fr); column-gap: 14px; padding: 0 0 16px; }
  .steps li::before { left: 12px; right: auto; top: 26px; bottom: 0; width: 2px; height: auto; }
  .steps .dot { grid-row: span 2; margin: 0; }
}
.tsum { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 24px; align-items: start; }
@media (max-width: 760px) { .tsum { grid-template-columns: 1fr; } }
.panel { background: var(--ink-2); border-radius: var(--r-lg); padding: 22px; display: flex; flex-direction: column; gap: 16px; }
.panel h3 { font-size: 18px; }
.kv { display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: 8px 16px; font-size: 14px; margin: 0; }
.kv dt { color: var(--fat-3); }
.kv dd { margin: 0; overflow-wrap: anywhere; }
.tcard__pic--big { box-shadow: 0 30px 60px -30px rgba(0,0,0,.8); }

/* ---------- админка ---------- */
.adm { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 28px; padding-block: 26px 60px; align-items: start; }
.adm__side { position: sticky; top: 84px; display: flex; flex-direction: column; gap: 4px; }
.adm__side button { text-align: left; background: none; border: 0; padding: 11px 14px; border-radius: 12px; color: var(--fat-2); font-weight: 500; display: flex; justify-content: space-between; align-items: center; }
.adm__side button:hover { background: var(--ink-2); color: var(--fat); }
.adm__side button.on { background: var(--fat); color: var(--on-fat); }
.adm__side button small { font-family: var(--f-mono); font-size: 12px; opacity: .7; }
.adm__side .sep { height: 1px; background: var(--line); margin: 10px 0; }
@media (max-width: 900px) {
  .adm { grid-template-columns: 1fr; }
  .adm__side { position: relative; top: 0; flex-direction: row; overflow-x: auto; padding-bottom: 6px; }
  .adm__side button { white-space: nowrap; }
  .adm__side .sep { display: none; }
}
.adm__main { display: flex; flex-direction: column; gap: 22px; min-width: 0; }
.adm__head { display: flex; justify-content: space-between; align-items: end; gap: 14px; flex-wrap: wrap; }
.adm__head h1 { font-size: clamp(28px, 3.6vw, 44px); }
.demo-note { display: flex; gap: 12px; align-items: center; justify-content: space-between; flex-wrap: wrap; background: rgba(242,181,58,.1); border: 1px solid rgba(242,181,58,.35); border-radius: var(--r); padding: 12px 16px; font-size: 14px; }
.kpis { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; }
.kpi { background: var(--ink-2); border-radius: var(--r); padding: 16px 18px; display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.kpi small { font-size: 13px; color: var(--fat-3); }
.kpi b { font: 800 clamp(20px, 2vw, 27px)/1 var(--f-display); letter-spacing: -.04em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.kpi .delta { font: 600 12px/1 var(--f-mono); }
.kpi .delta.up { color: var(--olive); }
.kpi .delta.down { color: var(--danger); }
.kpi--hero { background: var(--fat); color: var(--on-fat); }
.kpi--hero small { color: var(--on-fat-2); }
@media (max-width: 1100px) { .kpis { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 600px) { .kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); } .kpi--hero { grid-column: span 2; } }
.cols2 { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: 16px; align-items: start; }
@media (max-width: 1000px) { .cols2 { grid-template-columns: 1fr; } }
.box { background: var(--ink-2); border-radius: var(--r); padding: 18px 20px; min-width: 0; display: flex; flex-direction: column; gap: 14px; }
.box__head { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; }
.box__head h3 { font: 600 16px/1.2 var(--f-body); letter-spacing: 0; }
.chart { position: relative; }
.chart svg { width: 100%; height: auto; overflow: visible; }
.chart .grid-l { stroke: var(--line); stroke-width: 1; }
.chart .ax { fill: var(--fat-3); font: 11px var(--f-mono); }
.chart .bar { fill: var(--saffron); transition: opacity .15s; }
.chart .bar.dim { opacity: .35; }
.chart .hit { fill: transparent; cursor: crosshair; }
.tip { position: absolute; pointer-events: none; background: var(--fat); color: var(--on-fat); padding: 8px 10px; border-radius: 10px; font-size: 13px; line-height: 1.35; transform: translate(-50%, -100%); white-space: nowrap; box-shadow: 0 10px 24px rgba(0,0,0,.4); z-index: 3; }
.tip b { font-family: var(--f-mono); }
.hbars { display: flex; flex-direction: column; gap: 10px; }
.hbar { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 4px 10px; font-size: 14px; }
.hbar .track { grid-column: 1 / -1; height: 8px; border-radius: 4px; background: var(--ink-3); overflow: hidden; }
.hbar .track i { display: block; height: 100%; border-radius: 4px; background: var(--saffron); }
.hbar span:first-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hbar span:nth-child(2) { font-family: var(--f-mono); color: var(--fat-2); }

.tbl-wrap { overflow-x: auto; margin-inline: -4px; }
.tbl { width: 100%; border-collapse: collapse; font-size: 14px; min-width: 620px; }
.tbl th { text-align: left; font-weight: 500; color: var(--fat-3); font-size: 12.5px; padding: 8px 10px; border-bottom: 1px solid var(--line-2); white-space: nowrap; }
.tbl td { padding: 11px 10px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.tbl tr.click { cursor: pointer; }
.tbl tr.click:hover td { background: rgba(244,228,220,.04); }
.tbl .num { text-align: right; font-family: var(--f-mono); font-variant-numeric: tabular-nums; white-space: nowrap; }
.tbl .pos { color: var(--olive); }
.tbl .neg { color: var(--danger); }
.tbl tfoot td { font-weight: 700; border-top: 2px solid var(--line-2); border-bottom: 0; }
.tbl input.cell { width: 100%; min-width: 70px; background: transparent; border: 1px solid transparent; border-radius: 8px; padding: 6px 8px; color: var(--fat); font: inherit; }
.tbl input.cell:hover { border-color: var(--line-2); }
.tbl input.cell:focus { border-color: var(--saffron); outline: none; background: var(--ink); }
.tbl input.cell.num { text-align: right; }
.thumb { width: 40px; height: 40px; border-radius: 8px; object-fit: cover; }
.pill { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 999px; font-size: 12.5px; font-weight: 600; white-space: nowrap; background: var(--ink-3); color: var(--fat-2); }
.pill::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.pill--new { color: var(--saffron); }
.pill--go { color: #8fb7e8; }
.pill--ok { color: var(--olive); }
.pill--bad { color: var(--danger); }
.pill--warn { color: var(--warn); }
.toolbar { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.toolbar .input, .toolbar select { min-height: 40px; padding: 8px 12px; width: auto; }
.toolbar .grow { flex: 1 1 200px; min-width: 0; }
.switch { position: relative; width: 40px; height: 24px; flex: none; display: inline-block; }
.switch input { opacity: 0; width: 100%; height: 100%; position: absolute; margin: 0; cursor: pointer; z-index: 1; }
.switch i { position: absolute; inset: 0; border-radius: 12px; background: var(--ink-3); transition: background .2s; }
.switch i::after { content: ""; position: absolute; left: 3px; top: 3px; width: 18px; height: 18px; border-radius: 50%; background: var(--fat-2); transition: transform .2s var(--ease), background .2s; }
.switch input:checked + i { background: var(--olive); }
.switch input:checked + i::after { transform: translateX(16px); background: var(--fat); }
.switch input:focus-visible + i { outline: 2px solid var(--saffron); outline-offset: 2px; }
.order-items { display: flex; flex-direction: column; gap: 10px; }
/* Карточка заказа в кабинете: что собрать и сколько — крупно, чтобы сборщик не ошибся */
.pick { display: flex; flex-direction: column; gap: 10px; }
.pick__head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; font-size: 15px; }
.pick__head b { font: 800 20px var(--f-display, inherit); text-transform: uppercase; letter-spacing: .02em; }
.pick__head span { color: var(--fat-3); }
.pick__it { display: grid; grid-template-columns: 104px minmax(0, 1fr) auto; gap: 16px; align-items: center; padding: 12px; border-radius: 16px; background: rgba(244, 228, 220, .05); border: 1px solid rgba(244, 228, 220, .1); }
.pick__it img { width: 104px; height: 104px; border-radius: 12px; object-fit: cover; }
.pick__name { font-weight: 700; font-size: 20px; line-height: 1.2; }
.pick__var { font-weight: 700; font-size: 22px; color: var(--saffron); margin-top: 4px; }
.pick__sum { font-size: 13px; color: var(--fat-3); margin-top: 6px; }
.pick__qty { min-width: 92px; text-align: center; font: 800 40px/1 var(--f-display, inherit); padding: 12px 10px; border-radius: 14px; border: 2px solid rgba(244, 228, 220, .25); }
.pick__qty small { display: block; font: 600 12px var(--f-body, inherit); color: var(--fat-3); margin-top: 4px; }
.pick__it--many .pick__qty { background: var(--saffron); color: #2a1206; border-color: var(--saffron); }
.pick__it--many .pick__qty small { color: #2a1206; }
@media (max-width: 560px) {
  .pick__it { grid-template-columns: 72px minmax(0, 1fr) auto; gap: 12px; padding: 10px; }
  .pick__it img { width: 72px; height: 72px; }
  .pick__name { font-size: 17px; } .pick__var { font-size: 19px; }
  .pick__qty { min-width: 70px; font-size: 32px; padding: 10px 6px; }
}
.gate { max-width: 420px; margin: 70px auto; text-align: center; display: flex; flex-direction: column; gap: 16px; align-items: center; }
.gate svg { width: 44px; height: 44px; color: var(--saffron); }
.gate h1 { font-size: 34px; }
.pin { display: flex; gap: 10px; justify-content: center; }
.pin input { width: 56px; height: 64px; text-align: center; font: 800 26px var(--f-display); border-radius: 14px; border: 1.5px solid var(--line-2); background: var(--ink-2); color: var(--fat); }
.pin input:focus { border-color: var(--saffron); outline: none; }
.pin.shake { animation: shake .4s; }
@keyframes shake { 25% { transform: translateX(-8px); } 50% { transform: translateX(8px); } 75% { transform: translateX(-4px); } }

/* ---------- прелоадер ---------- */
.pre { position: fixed; inset: 0; z-index: 200; background: var(--ink); display: grid; place-items: center; padding: 20px var(--gut-r) 20px var(--gut-l); transition: clip-path .85s cubic-bezier(.7,0,.2,1); clip-path: inset(0 0 0 0); cursor: progress; }
.pre--out { clip-path: inset(0 0 100% 0); }
.pre__in { width: min(560px, 100%); display: flex; flex-direction: column; gap: 10px; }
.pre__jamon { border-radius: var(--r-lg); overflow: hidden; }
.pre__row { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; margin-top: 8px; }
.pre__logo { font: 900 clamp(22px, 4vw, 32px)/1 var(--f-display); letter-spacing: -.04em; }
.pre__logo b { color: var(--saffron); }
.pre__pct { font-size: 18px; color: var(--fat-2); }
.pre__bar { height: 3px; background: var(--ink-3); border-radius: 2px; overflow: hidden; }
.pre__bar i { display: block; height: 100%; width: 0; background: var(--saffron); }

/* ---------- админка: редакторы ---------- */
.modal__box.wide { width: min(860px, 100%); }
.form-grid { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 22px; align-items: start; }
@media (max-width: 700px) { .form-grid { grid-template-columns: 1fr; } }
.pic-edit { display: flex; flex-direction: column; gap: 8px; }
.pic-edit > img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: var(--r); background: var(--ink-3); }
.lib { display: grid; grid-template-columns: repeat(auto-fill, minmax(64px, 1fr)); gap: 6px; max-height: 220px; overflow: auto; padding: 2px; }
.lib button { padding: 0; border: 2px solid transparent; border-radius: 8px; overflow: hidden; background: none; aspect-ratio: 1; }
.lib button.on { border-color: var(--saffron); }
.lib img { width: 100%; height: 100%; object-fit: cover; }
.form-col { display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.vrows { display: flex; flex-direction: column; gap: 8px; }
.vrow { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr) minmax(0, 1fr) auto auto; gap: 8px; align-items: center; }
.vrow input { min-height: 40px; padding: 8px 10px; }
.vrow label { display: flex; align-items: center; gap: 4px; font-size: 12px; color: var(--fat-3); white-space: nowrap; }
@media (max-width: 560px) { .vrow { grid-template-columns: 1fr 1fr; } }
/* склад и продажа за наличные */
.buy-cell { display: flex; gap: 4px; align-items: center; }
.buy-cell input { min-width: 0; flex: 1; }
.buy-cell select { flex: 0 0 auto; width: auto; }
.field .buy-cell input, .field .buy-cell select { min-height: 44px; }
.tbl select.cell { background: transparent; border: 1px solid transparent; border-radius: 8px; padding: 6px 4px; color: var(--fat-2); font: inherit; font-size: 13px; }
.tbl select.cell:hover, .tbl select.cell:focus { border-color: var(--line-2); }
.tbl--stock input.cell { max-width: 96px; }
.tbl--stock .buy-cell input.cell { max-width: 90px; }
.tbl input.cell.neg { color: var(--danger); font-weight: 700; }
.tbl input.cell.warn { color: var(--saffron); font-weight: 700; }
.tbl tr.row-out td { background: rgba(184,48,74,.06); }
.st-name { display: flex; gap: 10px; align-items: center; min-width: 200px; }
.vrow--cash { grid-template-columns: minmax(0, 2.4fr) minmax(0, .7fr) minmax(0, 1fr) auto; }
.warn-note { border: 1.5px solid var(--saffron); background: rgba(242,181,58,.08); border-radius: 12px; padding: 10px 14px; font-size: 13.5px; margin: 0; }
@media (max-width: 560px) { .vrow--cash { grid-template-columns: 1fr 1fr; } .vrow--cash select { grid-column: 1 / -1; } }
.checks { display: flex; gap: 16px; flex-wrap: wrap; font-size: 14px; }
.checks label { display: flex; gap: 8px; align-items: center; cursor: pointer; }
.checks input { accent-color: var(--saffron); width: 18px; height: 18px; }
/* галочки внутри .field: без рамки, отступов и высоты полей ввода — иначе вокруг квадратика вырастает прямоугольник */
.field .checks input { min-height: 0; padding: 0; margin: 0; border: 0; flex: 0 0 auto; box-shadow: none; }
.field .checks input:focus { box-shadow: none; }
.field .checks input:focus-visible { outline-offset: 2px; border-radius: 3px; }
.form-foot { display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; border-top: 1px solid var(--line); padding-top: 16px; margin-top: 4px; }
.danger { color: var(--danger) !important; }
.cat-row { display: grid; grid-template-columns: 52px minmax(0, 1fr) auto auto; gap: 12px; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--line); }
.cat-row img { width: 52px; height: 52px; border-radius: 10px; object-fit: cover; }
.cat-row .btns { display: flex; gap: 4px; }
.cat-row .btns button { width: 34px; height: 34px; border-radius: 50%; border: 0; background: var(--ink-3); color: var(--fat); }
.cat-row .btns button:hover { background: var(--fat); color: var(--on-fat); }
@media (max-width: 560px) { .cat-row { grid-template-columns: 52px minmax(0, 1fr); } .cat-row > :nth-child(n+3) { grid-column: 2; } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  .ticker__track { animation: none; }
}

/* ---------- оформление на сервере: город, пункт выдачи, оплата ---------- */
.suggest { position: relative; }
.suggest__list { position: absolute; z-index: 20; left: 0; right: 0; top: calc(100% - 18px); background: var(--ink-2); border: 1.5px solid var(--line-2); border-radius: 12px; max-height: 260px; overflow: auto; box-shadow: 0 18px 40px rgba(0,0,0,.45); }
.suggest__list button { display: block; width: 100%; text-align: left; background: none; border: 0; padding: 10px 14px; color: var(--fat-2); font-size: 14px; }
.suggest__list button:hover, .suggest__list button:focus-visible { background: var(--ink-3); color: var(--fat); }
.pvz-list { width: 100%; border-radius: 12px; border: 1.5px solid var(--line-2); background: var(--ink-2); color: var(--fat); padding: 6px; font-size: 14px; margin-top: 6px; }
.pvz-list option { padding: 8px 10px; border-radius: 8px; white-space: normal; }
.pvz-list option:checked { background: var(--meat); color: var(--fat); }
/* карта пунктов выдачи */
.pvz-bar { display: flex; gap: 8px; align-items: stretch; }
.pvz-bar .input { flex: 1; min-width: 0; }
.pvz-tabs { display: flex; padding: 3px; gap: 2px; border: 1.5px solid var(--line-2); border-radius: 12px; background: var(--ink-2); flex-shrink: 0; }
.pvz-tabs button { border: 0; background: none; color: var(--fat-3); font: 600 13.5px/1 var(--f-body, inherit); padding: 0 12px; border-radius: 9px; cursor: pointer; transition: background .2s, color .2s; }
.pvz-tabs button.on { background: var(--ink-3); color: var(--fat); }
.pvz-map { height: 360px; margin-top: 8px; border-radius: 12px; border: 1.5px solid var(--line-2); overflow: hidden; background: var(--ink-2); position: relative; z-index: 0; }
.pvz-map[hidden] { display: none; }
.pvz-map__msg { display: grid; place-items: center; height: 100%; margin: 0; color: var(--fat-3); font-size: 14px; }
.pvz-map .leaflet-container, .pvz-map.leaflet-container { background: #1b1314; font: inherit; }
.pvz-map--osm .leaflet-tile-pane { filter: invert(1) grayscale(1) brightness(.8) contrast(.95) sepia(.25); }
.pvz-map .leaflet-control-zoom a { background: var(--ink-2); color: var(--fat); border-color: var(--line-2); }
.pvz-map .leaflet-control-zoom a:hover { background: var(--ink-3); }
.pvz-map .leaflet-control-attribution { background: rgba(22,8,9,.7); color: var(--fat-3); font-size: 10px; }
.pvz-map .leaflet-control-attribution a { color: var(--fat-2); }
.pvz-map .leaflet-interactive { cursor: pointer; }
.pvz-pop .leaflet-popup-content-wrapper { background: var(--ink-2); color: var(--fat); border: 1.5px solid var(--line-2); border-radius: 12px; box-shadow: 0 14px 32px rgba(0,0,0,.5); }
.pvz-pop .leaflet-popup-tip { background: var(--ink-2); }
.pvz-pop .leaflet-popup-content { margin: 12px 14px; display: flex; flex-direction: column; gap: 4px; font-size: 13.5px; line-height: 1.35; min-width: 190px; }
.pvz-pop .leaflet-popup-content span { color: var(--fat-3); font-size: 12.5px; }
.pvz-pop .leaflet-popup-content .btn { margin-top: 8px; align-self: flex-start; }
.ypin { position: absolute; width: 18px; height: 18px; transform: translate(-50%, -50%); border-radius: 50%; border: 2px solid #160809; background: #b8304a; padding: 0; cursor: pointer; box-shadow: 0 1px 4px rgba(0,0,0,.5); transition: transform .15s; }
.ypin:hover { transform: translate(-50%, -50%) scale(1.2); }
.ypin--on { width: 24px; height: 24px; border-width: 3px; background: #f2b53a; }
.pvz-pop--y { position: absolute; transform: translate(-50%, calc(-100% - 16px)); background: var(--ink-2); color: var(--fat); border: 1.5px solid var(--line-2); border-radius: 12px; box-shadow: 0 14px 32px rgba(0,0,0,.5); white-space: normal; width: max-content; max-width: 260px; }
.pvz-pop--y::after { content: ""; position: absolute; left: 50%; bottom: -7px; width: 12px; height: 12px; background: var(--ink-2); border: 1.5px solid var(--line-2); border-top: 0; border-left: 0; transform: translateX(-50%) rotate(45deg); }
.pvz-pick { display: flex; gap: 10px; align-items: flex-start; margin-top: 8px; padding: 10px 14px; border: 1.5px solid var(--saffron); border-radius: 12px; background: rgba(242,181,58,.08); cursor: pointer; }
.pvz-pick[hidden] { display: none; }
.pvz-pick svg { width: 20px; height: 20px; color: var(--saffron); flex-shrink: 0; margin-top: 1px; }
.pvz-pick div { display: flex; flex-direction: column; gap: 2px; font-size: 14px; }
.pvz-pick span { color: var(--fat-3); font-size: 12.5px; }
@media (max-width: 560px) {
  .pvz-bar { flex-direction: column; }
  .pvz-tabs { align-self: flex-start; }
  .pvz-tabs button { padding: 9px 12px; }
  .pvz-map { height: 300px; }
}
.field.err .pvz-list { border-color: var(--danger); }
.pay-box { display: flex; flex-direction: column; gap: 4px; padding: 14px 16px; border-radius: 12px; border: 1.5px solid var(--saffron); background: rgba(242,181,58,.08); font-size: 14px; }
.pay-box span { color: var(--fat-2); }
.gate .field input { text-align: left; }

/* СДЭК в заказе, Telegram в настройках */
.cdek-box { display: flex; flex-direction: column; gap: 6px; padding: 12px 14px; border: 1.5px solid var(--line-2); border-radius: 12px; font-size: 14px; }
.cdek-box .toolbar { margin-top: 4px; }
.warn-text { color: var(--saffron); }
.tg-chats { display: flex; flex-direction: column; gap: 8px; }
.tg-chat { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; }
.tg-chat b { flex: 1; min-width: 120px; font-weight: 600; }
/* документы и согласия */
.legal-page { max-width: 780px; padding-bottom: 60px; }
.legal-page h1 { font-size: clamp(30px, 4vw, 48px); margin-bottom: 8px; }
.legal-page h2 { font: 700 19px/1.3 var(--f-body); margin: 28px 0 10px; }
.legal-page p { color: var(--fat-2); line-height: 1.6; margin: 0 0 10px; }
.legal-page a, .consents a, .revs__form small a { color: var(--saffron); }
.consents { display: flex; flex-direction: column; gap: 10px; }
.consents label { display: flex; gap: 10px; align-items: start; font-size: 14px; color: var(--fat-2); }
.consents input { margin-top: 4px; accent-color: var(--saffron); }
.foot__docs { display: flex; gap: 18px; flex-wrap: wrap; }
.foot__docs a { color: var(--fat-3); }
.foot__docs a:hover { color: var(--fat); }
/* сотрудники */
.adm__me { display: flex; flex-direction: column; gap: 2px; padding: 4px 12px 12px; border-bottom: 1px solid var(--line); margin-bottom: 8px; }
.adm__me b { font-weight: 600; }
.staff { display: flex; flex-direction: column; gap: 10px; }
.staff__row { display: flex; flex-direction: column; gap: 10px; padding: 12px 14px; border: 1px solid var(--line-2); border-radius: 12px; }
.staff__row.off { opacity: .6; }
.staff__who { display: flex; flex-direction: column; gap: 2px; }
.staff__perms { display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: 13.5px; color: var(--fat-2); }
.staff__perms label { display: flex; gap: 6px; align-items: center; }
.staff__perms input { accent-color: var(--saffron); }
.staff__new { display: flex; flex-direction: column; gap: 12px; margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--line); }
.staff__new h4 { margin: 0; font: 600 15px var(--f-body); }
/* отзывы: «Оцените покупку» и проверка в кабинете */
.rate-order { display: flex; flex-direction: column; gap: 12px; }
.rate-order > div:first-child { display: flex; flex-direction: column; gap: 2px; }
.rate-order__items { display: flex; flex-wrap: wrap; gap: 8px; }
.revs-adm { display: flex; flex-direction: column; gap: 12px; }
.rev-adm { display: flex; flex-direction: column; gap: 8px; }
.rev-adm p { margin: 0; line-height: 1.5; }
.rev-adm__head { display: flex; justify-content: space-between; gap: 12px; align-items: baseline; }
.rev-adm__head .mono { color: var(--saffron); letter-spacing: 2px; }
.rev-adm__photos { display: flex; gap: 8px; flex-wrap: wrap; }
.rev-adm__photos img { width: 72px; height: 72px; object-fit: cover; border-radius: 8px; }
/* промокоды в кабинете */
.promo-list { display: flex; flex-direction: column; gap: 12px; }
.promo-row { display: flex; flex-direction: column; gap: 8px; }
.promo-row__main { display: flex; gap: 12px; align-items: center; }
.promo-row__main .mono { font-size: 17px; }
.promo-row__foot { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.promo-targets { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 6px 16px; margin-top: 10px; max-height: 260px; overflow: auto; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; font-size: 13.5px; }
.promo-targets[hidden] { display: none; }
.promo-targets label { display: flex; gap: 8px; align-items: center; }
.field .promo-targets input { accent-color: var(--saffron); width: auto; min-height: 0; height: auto; padding: 0; margin: 0; border: 0; flex: 0 0 auto; }
.promo-targets label { font-size: 13.5px; color: var(--fat-2); }

/* ждём оплату на странице заказа */
.pay-wait { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 16px; border-color: var(--saffron); }
.pay-wait > div { display: flex; flex-direction: column; gap: 2px; max-width: 60ch; }

/* внутри Telegram: кнопки «Оформить» и «Оплатить» — снизу, кнопкой Telegram */
.in-tg .drawer a.btn--block[href="#checkout"],
.in-tg #coSum button[type=submit],
.in-tg #payAgain { display: none; }
.tg-phone { margin-top: 6px; font-size: 13px; align-self: flex-start; }

/* посты в Telegram: редактор и предпросмотр */
.post-grid { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 20px; align-items: start; }
.post-form { display: flex; flex-direction: column; gap: 16px; }
.post-tools { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.post-emoji { display: flex; flex-wrap: wrap; gap: 2px; }
.post-emoji button { background: none; border: 0; font-size: 20px; line-height: 1; padding: 4px; border-radius: 8px; cursor: pointer; }
.post-emoji button:hover { background: var(--ink-3); }
.post-pic .lib { max-height: 190px; overflow: auto; }
.post-how { margin: 12px 0; padding-left: 20px; display: flex; flex-direction: column; gap: 6px; font-size: 14px; color: var(--fat-2); }
.tg-prev { position: sticky; top: 90px; display: flex; flex-direction: column; gap: 8px; padding: 16px; border-radius: var(--r); background: #0e1621; }
.tg-prev__msg { background: #182533; border-radius: 12px; overflow: hidden; color: #f5f5f5; font: 400 15px/1.4 system-ui, -apple-system, "Segoe UI", sans-serif; }
.tg-prev__msg img { display: block; width: 100%; max-height: 340px; object-fit: cover; }
.tg-prev__text { padding: 8px 12px 10px; word-wrap: break-word; }
.tg-prev__btn { display: flex; align-items: center; justify-content: center; gap: 6px; margin: 0 4px 4px; padding: 9px 12px; border-radius: 8px; background: rgba(255,255,255,.1);
  color: #fff; font-size: 14px; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tg-prev__btn svg { width: 13px; height: 13px; transform: rotate(-45deg); flex: none; }
@media (max-width: 960px) { .post-grid { grid-template-columns: 1fr; } .tg-prev { position: static; } }

/* размеры коробки СДЭК в настройках */
.box-dims { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 8px; }
.box-dims label { display: flex; flex-direction: column; gap: 4px; }
.box-dims small { color: var(--fat-3); font-size: 12px; }
@media (max-width: 600px) { .box-dims { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

/* «Выбрать вес» — ссылка в виде кнопки */
a.add { text-decoration: none; white-space: nowrap; }

/* поиск пункта СДЭК: ничего не нашли — показываем все */
.pvz-note { margin: 8px 0 0; font-size: 13.5px; color: var(--fat-2); }
.pvz-note .link { font-size: 13.5px; }

/* переключатель «основной» у вариантов — не растягиваем как поле ввода */
.vrow input[type=radio] { min-height: 0; padding: 0; width: 18px; height: 18px; margin: 0; accent-color: var(--saffron); }
.vrow label:has(input[type=radio]:checked) { color: var(--saffron); }
.pkg-kg input { max-width: 220px; }

/* весовые: «Кусков» в строке варианта, подпись под остатком на складе */
.vrow:has(.vrow__pcs) { grid-template-columns: minmax(0, 1fr) minmax(0, .7fr) minmax(0, .8fr) minmax(0, .9fr) auto auto; }
.vrow__pcs { gap: 6px !important; font-size: 13px !important; }
.vrow__pcs input { width: 100%; min-width: 0; }
.st-sub { display: block; font-size: 11.5px; margin-top: 3px; white-space: nowrap; }
@media (max-width: 560px) { .vrow:has(.vrow__pcs) { grid-template-columns: 1fr 1fr; } }

/* продажа за наличные: у товаров с несколькими весами — выбор веса */
.vrow--cash:has([data-cv]) { grid-template-columns: minmax(0, 2fr) minmax(0, 1fr) minmax(0, .6fr) minmax(0, .9fr) auto; }
@media (max-width: 560px) { .vrow--cash:has([data-cv]) { grid-template-columns: 1fr 1fr; } .vrow--cash [data-cv] { grid-column: auto; } }

/* Текст страницы от сервера — для поисковиков; сайт заменяет его своим видом сразу после загрузки */
.seo-page { padding: 48px 0 80px; color: var(--fat-3); }
.seo-page h1 { color: var(--fat); font-size: clamp(28px, 4vw, 44px); margin-bottom: 16px; }
.seo-page h2 { color: var(--fat); font-size: 22px; margin: 28px 0 10px; }
.seo-page a { color: var(--fat); }
.seo-page img { max-width: min(600px, 100%); height: auto; border-radius: 16px; }
.seo-page ul { padding-left: 20px; line-height: 1.9; }

/* ---------- Розыгрыш ---------- */
.gw-banner { display: flex; align-items: center; gap: 14px; margin-top: 18px; margin-bottom: 6px; padding: 14px 18px; border-radius: 16px; text-decoration: none; color: #2a1206;
  background: linear-gradient(135deg, #f7c65a, var(--saffron) 55%, #e09a22); box-shadow: 0 10px 30px rgba(242, 181, 58, .18); }
.gw-banner b { font: 800 16px var(--f-display); text-transform: uppercase; letter-spacing: .01em; }
.gw-banner span:not(.gw-banner__ico) { font-size: 14.5px; opacity: .85; flex: 1; }
.gw-banner__ico { font-size: 22px; }
.gw-banner svg { width: 20px; height: 20px; flex: none; }
@media (max-width: 640px) { .gw-banner { flex-wrap: wrap; gap: 4px 10px; } .gw-banner span:not(.gw-banner__ico) { flex-basis: 100%; } .gw-banner svg { display: none; } }

.gw { padding-top: 40px; padding-bottom: 40px; display: flex; flex-direction: column; gap: 22px; }
.gw h1 { font-size: clamp(32px, 5vw, 56px); }
.gw__status { color: var(--fat-3); font-size: 16px; margin-top: -10px; }
.gw__count { display: flex; gap: 10px; }
.gw__count span { min-width: 74px; padding: 12px 10px; border-radius: 14px; background: var(--ink-2); text-align: center; }
.gw__count b { display: block; font-size: 30px; color: var(--saffron); }
.gw__count small { color: var(--fat-3); font-size: 12px; }
.gw__prizes { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px; }
.gw__prize { display: flex; align-items: center; gap: 14px; padding: 16px; border-radius: 16px; background: var(--ink-2); border: 1px solid rgba(244, 228, 220, .08); }
.gw__prize b { font-size: 16px; line-height: 1.3; }
.gw__place { flex: none; width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; font: 800 20px var(--f-display); background: rgba(242, 181, 58, .14); color: var(--saffron); }
.gw__prize:first-child .gw__place { background: var(--saffron); color: #2a1206; }
.gw__how { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px; counter-reset: gw; }
.gw__how li { counter-increment: gw; padding: 16px; border-radius: 16px; border: 1px dashed rgba(244, 228, 220, .18); display: flex; flex-direction: column; gap: 6px; }
.gw__how li::before { content: counter(gw); font: 800 26px var(--f-display); color: var(--saffron); }
.gw__how span { color: var(--fat-3); font-size: 14.5px; }
.gw__check { display: flex; flex-direction: column; gap: 8px; max-width: 560px; }
.gw__checkrow { display: flex; gap: 8px; }
.gw__checkrow .input { flex: 1; min-width: 0; }
.gw__yes { color: var(--saffron); font-weight: 600; }
.gw__people h2, .gw__win h2, .gw--archive h2 { font-size: 24px; margin-bottom: 10px; }
.gw__chips { display: flex; flex-wrap: wrap; gap: 8px; }
.gw__rules summary { cursor: pointer; font-weight: 600; }
.gw__rules div { margin-top: 10px; color: var(--fat-3); font-size: 14.5px; line-height: 1.6; max-width: 820px; }
.gw__winners { list-style: none; padding: 0; margin: 0 0 14px; display: flex; flex-direction: column; gap: 6px; }
.gw__winners li, .gws__list li { display: grid; grid-template-columns: max-content 90px minmax(0, 1fr) minmax(0, 1.4fr); gap: 10px; align-items: baseline; padding: 8px 0; border-bottom: 1px solid rgba(244, 228, 220, .08); }
.gw__winners small, .gws__list small { color: var(--fat-3); }
.gw__winners b { color: var(--saffron); }
@media (max-width: 640px) { .gw__winners li, .gws__list li { grid-template-columns: max-content 1fr; } }
.gw--archive { padding-top: 0; }
.gw-ticket { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-radius: 14px; text-decoration: none; color: #2a1206; background: var(--saffron); margin-bottom: 14px; }
.gw-ticket span:nth-child(2) { flex: 1; font-size: 14.5px; }
.gw-ticket b { font-size: 20px; }
.gw-ticket--off { background: var(--ink-2); color: var(--fat-3); }
.gw-adm { display: flex; flex-direction: column; gap: 10px; margin-bottom: 14px; }
.gw-adm__head { display: flex; align-items: center; gap: 12px; justify-content: space-between; }
.gw-adm__head b { font-size: 17px; }

/* полноэкранный показ: номера крутятся и останавливаются на победителе */
.gws { position: fixed; inset: 0; z-index: 9000; background: radial-gradient(ellipse at 50% 35%, #2a1012, #0e0506 70%); display: grid; place-items: center; padding: 24px; overflow: auto; }
.gws__in { width: min(980px, 100%); display: flex; flex-direction: column; gap: 22px; text-align: center; }
.gws__title { font: 800 clamp(18px, 2.4vw, 26px) var(--f-display); text-transform: uppercase; color: var(--fat-3); letter-spacing: .04em; }
.gws__stage { min-height: 300px; display: flex; flex-direction: column; justify-content: center; gap: 10px; }
.gws__place { font-size: clamp(20px, 2.6vw, 30px); color: var(--fat); }
.gws__place b { color: var(--saffron); }
.gws__no { font: 800 clamp(64px, 13vw, 170px)/1 var(--f-display); color: var(--fat); letter-spacing: -.02em; transition: color .3s, transform .3s; }
.gws__no--hit { color: var(--saffron); transform: scale(1.06); text-shadow: 0 0 60px rgba(242, 181, 58, .35); }
.gws__name { font: 700 clamp(24px, 3.4vw, 40px) var(--f-display); min-height: 1.2em; }
.gws__list { list-style: none; padding: 0; margin: 0 auto; width: min(760px, 100%); text-align: left; }
.gws__list b { color: var(--saffron); }
.gws__foot { display: flex; gap: 10px; justify-content: center; }
.gw-adm__out { display: flex; flex-direction: column; gap: 4px; padding: 10px 12px; border-radius: 12px; border: 1px solid rgba(184, 48, 74, .35); background: rgba(142, 27, 42, .12); font-size: 13.5px; }
.gw-adm__out b { color: var(--meat-hi); }
.gws__count { color: var(--fat-3); font-size: 15px; margin-top: -12px; }
.gws__no { display: inline-flex; justify-content: center; align-items: baseline; gap: .25em; }
.gws__sign { font-size: .55em; opacity: .75; }
#gwsDigits { display: inline-block; min-width: 3.3ch; text-align: left; font-variant-numeric: tabular-nums; }

/* ---------- Праздничный показ розыгрыша ---------- */
.gwf { position: fixed; inset: 0; z-index: 9100; overflow: hidden; overflow: clip; color: var(--fat); font-family: var(--f-body);
  background: radial-gradient(ellipse 70% 60% at 50% 42%, #3a1418 0%, #1c090b 55%, #0b0405 100%); display: flex; flex-direction: column; }
.gwf::before { content: ""; position: absolute; left: 50%; top: 45%; width: 180vmax; height: 180vmax; margin: -90vmax 0 0 -90vmax; border-radius: 50%; pointer-events: none; animation: gwf-rays 40s linear infinite;
  background: conic-gradient(from 0deg at 50% 45%, transparent 0 20deg, rgba(242, 181, 58, .06) 30deg, transparent 40deg 80deg, rgba(242, 181, 58, .05) 95deg, transparent 110deg 160deg, rgba(184, 48, 74, .07) 175deg, transparent 190deg 250deg, rgba(242, 181, 58, .05) 265deg, transparent 280deg 360deg); }
@keyframes gwf-rays { to { transform: rotate(360deg); } }
.gwf__fx { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 3; }
.gwf__top { position: relative; z-index: 2; display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 26px 20px 0; text-align: center; }
.gwf__logo { font: 900 clamp(18px, 2vw, 24px)/1 var(--f-display); letter-spacing: -.03em; }
.gwf__logo b { color: var(--saffron); }
.gwf__title { font: 800 clamp(22px, 3.4vw, 44px)/1.05 var(--f-display); text-transform: uppercase; letter-spacing: -.01em; }
.gwf__count { color: var(--fat-3); font-size: clamp(14px, 1.4vw, 17px); }
.gwf__count b { color: var(--saffron); font-size: 1.25em; }
.gwf__stage { position: relative; z-index: 2; flex: 1; overflow: clip; display: flex; flex-direction: column; align-items: center; justify-content: safe center; gap: clamp(12px, 2vh, 24px); padding: 10px 20px; min-height: 0; }
.gwf__intro { text-align: center; transition: opacity .4s, transform .4s; }
.gwf__intro p { font: 700 clamp(18px, 2vw, 24px) var(--f-display); color: var(--fat-3); margin-bottom: 14px; text-transform: uppercase; letter-spacing: .08em; }
.gwf__intro--out { opacity: 0; transform: scale(.94); }
.gwf__prizes { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; max-width: 1000px; }
.gwf__prizes span { display: flex; align-items: center; gap: 10px; padding: 12px 18px 12px 12px; border-radius: 999px; background: rgba(244, 228, 220, .06); border: 1px solid rgba(242, 181, 58, .25); font-weight: 600; font-size: clamp(14px, 1.5vw, 18px); }
.gwf__prizes i { font: 800 18px var(--f-display); font-style: normal; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: var(--saffron); color: #2a1206; }
.gwf__cd span { display: block; font: 900 clamp(120px, 22vw, 280px)/1 var(--f-display); color: var(--saffron); text-shadow: 0 0 80px rgba(242, 181, 58, .45); animation: gwf-cd .85s cubic-bezier(.2, .9, .3, 1); }
.gwf__cd .gwf__go { font-size: clamp(60px, 10vw, 130px); color: var(--fat); }
@keyframes gwf-cd { from { transform: scale(1.8); opacity: 0; } 30% { opacity: 1; } to { transform: scale(1); opacity: 1; } }
.gwf__place { text-align: center; min-height: 1em; }
.gwf__place .gwf__pl { display: inline-block; font: 800 clamp(14px, 1.4vw, 18px) var(--f-display); text-transform: uppercase; letter-spacing: .12em; color: #2a1206; background: var(--saffron); padding: 6px 14px; border-radius: 999px; margin-bottom: 8px; }
.gwf__place b { display: block; font: 800 clamp(24px, 3.6vw, 46px)/1.1 var(--f-display); }
.gwf__place--in { animation: gwf-drop .6s cubic-bezier(.2, .9, .3, 1.2); }
@keyframes gwf-drop { from { transform: translateY(-30px) scale(.9); opacity: 0; } to { transform: none; opacity: 1; } }

/* барабан: окно на три билета, центральный — в рамке */
.gwf__reel { --tk: clamp(78px, 11vh, 112px); position: relative; width: min(620px, 92vw); height: calc(var(--tk) * 3 + 24px); overflow: hidden; border-radius: 22px;
  background: linear-gradient(180deg, rgba(0, 0, 0, .55), rgba(0, 0, 0, .1) 30%, rgba(0, 0, 0, .1) 70%, rgba(0, 0, 0, .55)); box-shadow: inset 0 0 0 1px rgba(242, 181, 58, .2), 0 30px 80px rgba(0, 0, 0, .5);
  -webkit-mask-image: linear-gradient(180deg, transparent, #000 22%, #000 78%, transparent); mask-image: linear-gradient(180deg, transparent, #000 22%, #000 78%, transparent); }
.gwf__strip { display: flex; flex-direction: column; row-gap: 12px; padding: 0 22px; will-change: transform; }
.gwf__frame { position: absolute; left: 10px; right: 10px; top: 50%; height: calc(var(--tk) + 14px); transform: translateY(-50%); border-radius: 18px; border: 3px solid var(--saffron); box-shadow: 0 0 40px rgba(242, 181, 58, .45), inset 0 0 30px rgba(242, 181, 58, .15); pointer-events: none; }

/* билет-корешок, как в ролике */
.gwt { --tk: clamp(78px, 11vh, 112px); position: relative; flex: none; display: grid; grid-template-columns: 38% 1fr; height: var(--tk); border-radius: 14px; color: #2a1206; overflow: hidden;
  background: linear-gradient(135deg, #f7c65a, #f2b53a 50%, #e09a22); box-shadow: 0 8px 24px rgba(0, 0, 0, .35); }
.gwt::before, .gwt::after { content: ""; position: absolute; left: 38%; width: 22px; height: 22px; margin-left: -11px; border-radius: 50%; background: #1c090b; }
.gwt::before { top: -11px; }
.gwt::after { bottom: -11px; }
.gwt__stub { display: flex; flex-direction: column; justify-content: center; align-items: center; border-right: 2px dashed rgba(42, 18, 6, .35); }
.gwt__stub small { font: 700 11px var(--f-display); text-transform: uppercase; letter-spacing: .14em; opacity: .7; }
.gwt__stub b { font: 800 clamp(22px, min(3.6vh, 7.5vw), 40px)/1 var(--f-display); letter-spacing: -.02em; white-space: nowrap; }
.gwt__stub b span { font-size: .55em; margin-right: .12em; opacity: .75; }
.gwt__body { display: flex; align-items: center; padding: 0 18px; font: 700 clamp(17px, 2.4vh, 24px)/1.1 var(--f-display); }
.gwt--punch::before, .gwt--punch::after { animation: gwf-punch .5s ease-out forwards; box-shadow: 0 0 0 0 rgba(255, 255, 255, .9); }
@keyframes gwf-punch { 50% { transform: scale(2.2); background: #fff; box-shadow: 0 0 22px 6px rgba(255, 255, 255, .7); } to { transform: scale(1.6); background: #fff; box-shadow: 0 0 14px 3px rgba(255, 244, 214, .55); } }
.gwt--big { --tk: clamp(130px, 20vh, 190px); width: min(640px, 90vw); }
.gwt--big .gwt__stub b { font-size: clamp(30px, min(7vh, 9vw), 70px); }
.gwt--big .gwt__body { font-size: clamp(18px, min(3.6vh, 5.6vw), 36px); padding: 0 14px; }

/* переворот: лицо — билет, оборот — победитель */
.gwf__flip { perspective: 1800px; margin-top: 16px; }
.gwf__card { position: relative; width: min(640px, 90vw); height: clamp(130px, 20vh, 190px); transform-style: preserve-3d; transition: transform .8s cubic-bezier(.3, .1, .2, 1.06); }
.gwf__flip--on .gwf__card { transform: rotateY(180deg) scale(1.03); }
.gwf__face { position: absolute; inset: 0; backface-visibility: hidden; -webkit-backface-visibility: hidden; display: grid; place-items: center; }
.gwf__face--back { transform: rotateY(180deg); border-radius: 18px; background: linear-gradient(135deg, #2d1214, #160809); border: 3px solid var(--saffron); box-shadow: 0 0 70px rgba(242, 181, 58, .4); }
.gwf__winner { display: flex; flex-direction: column; align-items: center; gap: 2px; text-align: center; padding: 10px; }
.gwf__winner small { font: 800 14px var(--f-display); text-transform: uppercase; letter-spacing: .14em; color: var(--saffron); }
.gwf__winner b { font: 900 clamp(30px, 5vh, 54px)/1.05 var(--f-display); }
.gwf__winner span { color: var(--fat-3); font-size: 16px; }
.gwf__winner em { font-style: normal; font-weight: 700; color: var(--saffron); font-size: clamp(16px, 2vh, 20px); }

/* пьедестал */
.gwf__podium { width: min(980px, 100%); display: flex; flex-direction: column; gap: 18px; animation: gwf-drop .7s cubic-bezier(.2, .9, .3, 1.1); }
.gwf__cols { display: flex; align-items: flex-end; justify-content: center; gap: clamp(10px, 2vw, 22px); }
.gwf__col { flex: 1; max-width: 300px; display: flex; flex-direction: column; align-items: stretch; gap: 10px; }
.gwf__who { display: flex; flex-direction: column; align-items: center; gap: 2px; text-align: center; }
.gwf__who b { font: 800 clamp(14px, 4vw, 30px)/1.1 var(--f-display); }
@media (max-width: 640px) { .gwf__who em { font-size: 12px; } .gwf__cols { gap: 8px; } }
.gwf__who span { color: var(--fat-3); font-size: 14px; }
.gwf__who em { font-style: normal; color: var(--saffron); font-weight: 600; font-size: 14px; }
.gwf__step { height: calc(var(--h) * clamp(40px, 8vh, 90px)); border-radius: 14px 14px 0 0; background: linear-gradient(180deg, var(--saffron), #c98315); display: grid; place-items: start center; padding-top: 10px; }
.gwf__step i { font: 900 clamp(34px, 5vw, 60px)/1 var(--f-display); font-style: normal; color: #2a1206; }
/* места с 4-го: плашки «место · имя · билет», под ними приз; если мест много — список прокручивается */
.gwf__rest { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 8px 12px;
  max-height: min(32dvh, 330px); overflow: auto; overscroll-behavior: contain; scrollbar-width: thin; }
.gwf__rest li { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; grid-template-areas: "i b s" "i e e"; column-gap: 10px; align-items: center;
  padding: 8px 12px 8px 8px; border-radius: 12px; background: rgba(244, 228, 220, .05); border: 1px solid rgba(242, 181, 58, .16); text-align: left; }
.gwf__rest i { grid-area: i; font: 800 14px var(--f-display); font-style: normal; width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: var(--saffron); color: #2a1206; }
.gwf__rest b { grid-area: b; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.gwf__rest span { grid-area: s; color: var(--fat-3); font-size: 13px; }
.gwf__rest em { grid-area: e; font-style: normal; color: var(--saffron); font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
/* одинаковые призы: «таблетки» в строку */
.gwf__rest--same { display: flex; flex-wrap: wrap; justify-content: center; }
.gwf__rest--same li { grid-template-areas: "i b s"; border-radius: 999px; padding: 5px 14px 5px 5px; }
@media (max-width: 640px) {
  .gwf__rest:not(.gwf__rest--same) { grid-template-columns: 1fr 1fr; gap: 6px; }
  .gwf__rest li { column-gap: 8px; padding: 6px 8px 6px 6px; }
  .gwf__rest:not(.gwf__rest--same) li { grid-template-areas: "i b" "i s" "e e"; grid-template-columns: auto minmax(0, 1fr); }
  .gwf__rest:not(.gwf__rest--same) em { margin-top: 2px; }
  .gwf__rest b { font-size: 14px; }
  .gwf__rest i { width: 24px; height: 24px; font-size: 12px; }
}

.gwf__bar { position: relative; z-index: 4; display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; padding: 0 20px 26px; }
.gwf__hint { position: absolute; z-index: 4; left: 50%; bottom: 22px; transform: translateX(-50%); padding: 8px 14px; border-radius: 999px; background: rgba(0, 0, 0, .55); font-size: 14px; color: var(--fat-3); }
.gwf--rec .gwf__bar { visibility: hidden; }
.gwf--rec { cursor: none; }
/* «Нас оценили» в подвале: оценки на Яндекс Картах, Авито и на сайте */
.foot__rates { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; margin-top: 22px; }
.foot__rates-h { color: var(--fat-3); font-size: 12px; text-transform: uppercase; letter-spacing: .12em; margin-bottom: 2px; }
.rate { display: inline-flex; align-items: center; gap: 8px; padding: 7px 14px 7px 8px; border-radius: 999px; background: rgba(244, 228, 220, .05); border: 1px solid rgba(244, 228, 220, .1); color: var(--fat); text-decoration: none; font-size: 14px; transition: border-color .2s, background .2s; }
a.rate:hover { border-color: rgba(242, 181, 58, .5); background: rgba(242, 181, 58, .08); }
.rate b { font-weight: 800; font-size: 15px; }
.rate span { color: var(--fat-3); }
.rate__ico { display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: #fff; }
.rate__ico svg { width: 18px; height: 18px; }
.rate__ico--site { background: rgba(242, 181, 58, .15); color: var(--saffron); }
.rate-row { display: grid; grid-template-columns: 110px minmax(0, 1fr) 70px 90px; gap: 8px; align-items: center; margin-bottom: 8px; }
.rate-row input { min-width: 0; }
@media (max-width: 560px) { .rate-row { grid-template-columns: 1fr 70px 80px; } .rate-row b { grid-column: 1 / -1; } }
.foot__in a { overflow-wrap: anywhere; }

/* полоса розыгрыша над шапкой */
.ann { position: relative; z-index: 41; background: linear-gradient(90deg, #e09a22, var(--saffron) 30%, #f7c65a 50%, var(--saffron) 70%, #e09a22); background-size: 200% 100%; animation: ann-shine 6s linear infinite; color: #2a1206; }
@keyframes ann-shine { to { background-position: -200% 0; } }
.ann__in { display: flex; align-items: center; justify-content: center; gap: 10px; padding: 9px 48px; text-decoration: none; color: inherit; font-size: 14.5px; line-height: 1.3; text-align: center; }
.ann__ico { font-size: 18px; animation: ann-wiggle 2.6s ease-in-out infinite; }
@keyframes ann-wiggle { 0%, 70%, 100% { transform: rotate(0); } 78% { transform: rotate(-14deg); } 86% { transform: rotate(12deg); } 93% { transform: rotate(-6deg); } }
.ann__in b { font: 800 14px var(--f-display); text-transform: uppercase; letter-spacing: .02em; }
.ann__cta { display: inline-flex; align-items: center; gap: 4px; font-weight: 700; text-decoration: underline; text-underline-offset: 3px; white-space: nowrap; }
.ann__cta svg { width: 16px; height: 16px; }
.ann__x { position: absolute; right: 8px; top: 50%; transform: translateY(-50%); width: 32px; height: 32px; border: 0; border-radius: 50%; background: transparent; color: #2a1206; display: grid; place-items: center; cursor: pointer; }
.ann__x:hover { background: rgba(42, 18, 6, .12); }
.ann__x svg { width: 16px; height: 16px; }
@media (max-width: 960px) {
  .ann__in { display: grid; grid-template-columns: auto 1fr auto; gap: 1px 12px; padding: 8px 48px 8px 16px; text-align: left; font-size: 13.5px; }
  .ann__ico { grid-row: span 2; font-size: 22px; }
  .ann__cta { grid-column: 3; grid-row: 1 / span 2; }
}
@media (max-width: 640px) {
  .ann__in { grid-template-columns: auto 1fr; padding: 8px 44px 8px 14px; }
  .ann__cta { display: none; }
}
@media (prefers-reduced-motion: reduce) { .ann, .ann__ico { animation: none; } }

/* бегущая строка во время розыгрыша: шафрановая и кликабельная */
.ticker--gw { display: block; text-decoration: none; background: var(--saffron); color: #2a1206; }
.ticker--gw span::after { background: #2a1206; }
.ticker--gw:hover .ticker__track { animation-play-state: paused; }

/* значок «два билета веером» */
.gwi { width: 1.5em; height: 1.1em; flex: none; overflow: visible; }
.ticker--gw { --gwi-bg: var(--saffron); }
.ticker--gw span { gap: 0; }
.ticker--gw .gwi { width: 1.55em; height: 1.15em; margin-right: .3em; color: #2a1206; }
.ticker--gw span::after { margin-left: 36px; }
.ann { --gwi-bg: var(--saffron); }
.ann__ico { display: grid; place-items: center; animation: ann-wiggle 2.6s ease-in-out infinite; }
.ann__ico .gwi { width: 34px; height: 26px; color: #2a1206; }

/* показ розыгрыша на телефоне: «Начать/Смотреть» во всю ширину, остальные кнопки парами и поменьше */
@media (max-width: 640px) {
  .gwf__bar { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; padding: 0 16px 20px; }
  .gwf__bar .btn { padding: 11px 10px; font-size: 14px; min-width: 0; }
  .gwf__bar #gfGo { grid-column: 1 / -1; }
  .gwf__bar [hidden] { display: none; }
}

/* «Новинки и акции — первыми в наших каналах» на странице заказа: одна строка, на телефоне — текст и три кнопки в ряд */
.subs { margin-top: 16px; display: flex; align-items: center; justify-content: space-between; gap: 12px 20px; flex-wrap: wrap;
  padding: 14px 16px 14px 20px; border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--ink-2); }
.subs__txt { display: flex; flex-direction: column; gap: 2px; font-size: 15px; line-height: 1.3; }
.subs__txt .muted { font-size: 13px; }
.subs__btns { display: flex; gap: 8px; }
.subs__btn { display: inline-flex; align-items: center; gap: 7px; padding: 9px 14px; border-radius: 11px; font-weight: 600; font-size: 14px;
  color: #fff; text-decoration: none; transition: filter .15s, transform .15s; }
.subs__btn svg { width: 18px; height: 18px; flex: 0 0 auto; }
.subs__btn:hover { filter: brightness(1.1); transform: translateY(-1px); }
.subs__btn--tg { background: #229ED9; }
.subs__btn--max { background: #4A3CF0 linear-gradient(120deg, #3E9BFF 0%, #2B4EF5 40%, #5B2BE6 75%, #9550E2 100%); }   /* как логотип MAX: голубой → синий → фиолетовый */
.subs__btn--vk { background: #0077FF; }
@media (max-width: 640px) {
  .subs { padding: 14px; }
  .subs__btns { width: 100%; display: grid; grid-template-columns: repeat(auto-fit, minmax(0, 1fr)); }
  .subs__btn { justify-content: center; padding: 10px 6px; font-size: 13px; }
}
@media (max-width: 360px) { .subs__btn svg { display: none; } }
.tbl.tbl--fit { min-width: 0; }
/* своё фото главного экрана уже обрезано рамкой в кабинете — показываем по центру */
.hero__img--own { background-position: center; }

/* Настройки → «Главный экран»: превью в пропорциях главной и рамка для своего фото */
.hero-set { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 18px; align-items: start; }
.hero-set__pic { aspect-ratio: 16 / 10; border-radius: var(--r); background: var(--ink-3) center / cover no-repeat; }
.hero-set__side { display: flex; flex-direction: column; gap: 12px; }
.hero-set .toolbar label.btn { cursor: pointer; }
@media (max-width: 640px) { .hero-set { grid-template-columns: 1fr; } }
.crop { position: relative; aspect-ratio: 16 / 10; overflow: hidden; border-radius: var(--r); background: var(--ink-3); cursor: grab; touch-action: none; user-select: none; }
.crop:active { cursor: grabbing; }
.crop img { position: absolute; left: 0; top: 0; max-width: none; transform-origin: 0 0; pointer-events: none; }
.crop__tag { position: absolute; right: 5%; bottom: 9%; padding: 10px 14px; border-radius: 12px; border: 1.5px dashed rgba(255,255,255,.8);
  background: rgba(22,8,9,.45); color: #fff; font-size: 12px; pointer-events: none; }
.clk-body { transition: opacity .15s; }
.crop-ov { z-index: 120; }

/* Фото призов: везде одна форма 4:3 — кабинет обрезает загруженное фото рамкой */
.gw__h { font-size: clamp(20px, 2.4vw, 26px); margin: 8px 0 12px; }
.gw__prize { flex-direction: column; align-items: stretch; }
.gw__prize > div { display: flex; align-items: center; gap: 14px; }
.gw__prize > img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 12px; display: block; }
.gw__prize--all { grid-column: 1 / -1; display: grid; grid-template-columns: minmax(0, 420px) minmax(0, 1fr); align-items: center; gap: 20px; }
.gw__prize--all > div { flex-wrap: wrap; }
.gw__prize--all b { font-size: clamp(18px, 2.2vw, 24px); }
.gw__prize--all small { flex-basis: 100%; }
@media (max-width: 640px) { .gw__prize--all { grid-template-columns: 1fr; } }
.gw__winpic { width: min(420px, 100%); aspect-ratio: 4 / 3; object-fit: cover; border-radius: 14px; display: block; margin: 4px 0 14px; }
.gw__winners li:has(.gw__thumb) { grid-template-columns: 56px 90px 90px minmax(0, 1fr) minmax(0, 1.4fr); align-items: center; }
.gw__thumb { width: 56px; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 8px; }
@media (max-width: 640px) { .gw__winners li:has(.gw__thumb) { grid-template-columns: 56px 80px 1fr; } }
/* редактор: строка приза с фото */
.gw-pz { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.gw-pz__pic { width: 64px; height: 48px; flex: none; border-radius: 8px; overflow: hidden; display: grid; place-items: center; cursor: pointer;
  background: var(--ink-3); border: 1px dashed var(--line-2); color: var(--fat-3); }
.gw-pz__pic img { width: 100%; height: 100%; object-fit: cover; }
.gw-pz__pic svg { width: 20px; height: 20px; }
/* показ: фото приза на заставке и на пьедестале */
.gwf__pic { width: min(380px, 70vw); aspect-ratio: 4 / 3; object-fit: cover; border-radius: 18px; display: block; margin: 0 auto 16px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, .45), 0 0 0 1px rgba(242, 181, 58, .25); }
.gwf__pic--sm { width: min(220px, 40vw); margin-bottom: 10px; }
.gwf__prizes span img { width: 48px; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 8px; }
.gwf__who img { width: min(120px, 22vw); aspect-ratio: 4 / 3; object-fit: cover; border-radius: 10px; margin-bottom: 6px; }
@media (max-width: 640px) { .gwf__pic { width: min(300px, 80vw); } .gwf__pic--sm { width: min(160px, 42vw); } .gwf__step { height: calc(var(--h) * clamp(34px, 6vh, 90px)); } }
/* блоки сцены не сжимаются: иначе на низком экране фото и заголовок наезжают на пьедестал */
.gwf__stage > * { flex-shrink: 0; }

/* Разные призы с фото: карточки. Размер карточки — от числа призов и ширины экрана: 1–3 приза крупно в ряд,
   4–6 — поменьше, на телефоне по две в ряд */
.gwf__pcards { --more: 0px; --gap: 16px; --reserve: 330px;
  /* ширина карточки — меньшее из двух: по ширине экрана на нужное число колонок и по высоте экрана на нужное число рядов
     (фото 4:3 + подпись ~52px; 330px — шапка, кнопки и заголовок «Разыгрываем»). Ряд не шире колонок — 6 призов встают 3 + 3 */
  --w: clamp(var(--min, 110px), min(calc((min(1180px, 100vw - 48px) - (var(--cols) - 1) * var(--gap)) / var(--cols)), calc(((100dvh - var(--reserve) - var(--more)) / var(--rows) - 52px) * 4 / 3)), 300px);
  display: flex; flex-wrap: wrap; justify-content: center; gap: var(--gap); max-width: calc(var(--cols) * var(--w) + (var(--cols) - 1) * var(--gap) + 2px); margin-inline: auto; }
.gwf__pcard { flex: 0 0 var(--w); margin: 0; border-radius: 16px; overflow: hidden;
  background: rgba(244, 228, 220, .06); border: 1px solid rgba(242, 181, 58, .22); box-shadow: 0 16px 40px rgba(0, 0, 0, .35); }
.gwf__pcard img, .gwf__pnone { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; background: rgba(244, 228, 220, .05); }
.gwf__pcard figcaption { display: flex; align-items: center; gap: 10px; padding: 10px 12px; text-align: left; }
.gwf__pcard i { flex: none; font: 800 clamp(15px, 1.6vw, 20px) var(--f-display); font-style: normal; width: clamp(28px, 2.6vw, 36px); aspect-ratio: 1; border-radius: 50%;
  display: grid; place-items: center; background: var(--saffron); color: #2a1206; }
.gwf__pcard b { font: 700 clamp(13px, 1.4vw, 17px)/1.25 var(--f-body); }
.gwf__prizes--more { margin-top: 12px; }
.gwf__prizes--more span { padding: 8px 14px 8px 8px; font-size: 14px; }
.gwf__prizes--more i { width: 28px; height: 28px; font-size: 14px; }
/* пьедестал: фото приза у тройки крупнее */
.gwf__who img { width: min(220px, 26vw, 22vh); border-radius: 12px; }
/* итоги на странице: карточка на каждого победителя */
.gw__wcards { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(240px, 100%), 1fr)); gap: 14px; margin: 6px 0 16px; }
.gw__wcard { margin: 0; border-radius: 16px; overflow: hidden; background: var(--ink-3); border: 1px solid rgba(244, 228, 220, .08); }
.gw__wcard img, .gw__wnone { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; background: rgba(244, 228, 220, .04); }
.gw__wcard figcaption { display: flex; align-items: center; gap: 12px; padding: 12px 14px; }
.gw__wcard figcaption > div { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.gw__wcard b { font-size: 16px; line-height: 1.25; }
.gw__wcard figcaption span:not(.gw__place) { color: var(--fat-3); font-size: 14px; }
.gw__wcard:first-child .gw__place { background: var(--saffron); color: #2a1206; }
.gwf__pcards:has(+ .gwf__prizes--more) { --more: 60px; }
@media (max-width: 640px) {
  .gwf__pcards { --cols: 2 !important; --gap: 10px; --reserve: 400px; }
  .gwf__pcards[data-n="1"], .gwf__pcards[data-n="2"] { --rows: 1 !important; }
  .gwf__pcards[data-n="3"], .gwf__pcards[data-n="4"] { --rows: 2 !important; }
  /* пять-шесть призов на телефоне — все с фото, по три в два ряда */
  .gwf__pcards[data-n="5"], .gwf__pcards[data-n="6"] { --cols: 3 !important; --rows: 2 !important; --min: 96px; }
  .gwf__pcards:has(+ .gwf__prizes--more) { --more: 70px !important; }
  .gwf__pcards:has(+ .gwf__prizes--more > span:nth-child(3)) { --more: 180px !important; --min: 96px; }
  .gwf__pcard i { top: 6px; left: 6px; width: 24px; font-size: 13px; }
  .gwf__pcard figcaption { padding: 6px 8px 7px; }
  .gwf__pcard b { font-size: 12.5px; line-height: 1.2; }
}
/* номер места — на углу фото, подписи остаётся вся ширина карточки: слова не рвутся посередине */
.gwf__pcard { position: relative; }
.gwf__pcard i { position: absolute; top: 8px; left: 8px; box-shadow: 0 2px 8px rgba(0, 0, 0, .45); }
.gwf__pcard b { min-width: 0; overflow-wrap: break-word; hyphens: auto; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 3; overflow: hidden; }
@media (max-width: 640px) {
  .gwf__prizes--more { gap: 6px; margin-top: 8px; }
  .gwf__prizes--more span { padding: 5px 10px 5px 5px; font-size: 12px; gap: 6px; }
  .gwf__prizes--more i { width: 22px; height: 22px; font-size: 12px; }
}
@media (max-width: 640px) {
  /* три победителя и больше — по два в ряд, чтобы не листать долго */
  .gw__wcards:has(> :nth-child(3)) { grid-template-columns: 1fr 1fr; gap: 10px; }
  .gw__wcards:has(> :nth-child(3)) .gw__wcard figcaption { padding: 9px 10px; gap: 8px; }
  .gw__wcards:has(> :nth-child(3)) .gw__place { width: 32px; height: 32px; font-size: 15px; }
  .gw__wcards:has(> :nth-child(3)) b { font-size: 14px; }
  .gw__wcards:has(> :nth-child(3)) figcaption span:not(.gw__place) { font-size: 12px; }
}
.gw__wcard b { overflow-wrap: anywhere; }
/* «Что внутри» приза */
.gw__inside { flex-basis: 100%; margin-top: 6px; font-size: 14px; }
.gw__inside > span { color: var(--fat-3); font-size: 12.5px; text-transform: uppercase; letter-spacing: .06em; }
.gw__inside ul { margin: 6px 0 0; padding-left: 18px; display: flex; flex-direction: column; gap: 3px; }
.gw-pz__desc { flex-basis: 100%; margin-left: 36px; font-size: 14px; min-height: 0; resize: vertical; }
@media (max-width: 640px) { .gw-pz__desc { margin-left: 0; } }
.gwf__place .gwf__what { display: block; margin-top: 6px; color: var(--saffron); font-weight: 600; font-size: clamp(14px, 1.6vw, 18px); }
/* пьедестал, когда мест больше трёх: фото и ступени ниже — чтобы плашки остальных мест влезли */
.gwf__pic--xs { width: min(170px, 30vw); }
.gwf__podium--many { gap: 12px; }
.gwf__podium--many .gwf__rest { max-height: min(24dvh, 330px); }
.gwf__podium--many .gwf__who img { width: min(150px, 18vw, 16vh); }
.gwf__podium--many .gwf__step { height: calc(var(--h) * clamp(26px, 4.5vh, 56px)); }
@media (max-width: 640px) {
  .gwf__pic--xs { width: min(120px, 32vw); }
  .gwf__podium--many .gwf__who img { width: min(64px, 18vw); margin-bottom: 2px; }
  .gwf__podium--many .gwf__who em { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
  .gwf__podium--many .gwf__step { height: calc(var(--h) * clamp(20px, 3.2vh, 40px)); padding-top: 4px; }
  .gwf__podium--many .gwf__cols .gwf__col { gap: 6px; }
  .gwf__rest { max-height: 28dvh; }
  .gwf__podium--many .gwf__step i { font-size: 28px; }
}
/* заставка «Разыгрываем»: если призов больше, чем влезает в экран, — прокручивается вниз */
.gwf__stage > .gwf__intro { flex-shrink: 1; min-height: 0; max-height: 100%; overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; padding-bottom: 4px; }
/* карточки-цифры: колонки по числу карточек — четыре карточки встают во всю ширину, сумма видна целиком */
@media (min-width: 601px) { .kpis { grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); } }
/* склад: длинные заголовки — в две строки, чтобы таблица с кнопкой «+ Приход» влезала без прокрутки */
.tbl--stock th { white-space: normal; vertical-align: bottom; line-height: 1.25; }
.tbl--stock th:nth-child(4) { max-width: 96px; }
.tbl--stock .st-sub { white-space: normal; max-width: 120px; }
/* склад: фильтры остатка слева, раздел справа */
.st-filters { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; justify-content: space-between; }
.st-filters select { width: auto; min-width: 200px; }
/* карточка товара: под вариантами — «добавить» слева, порядок на сайте справа */
.vtools { display: flex; flex-wrap: wrap; gap: 8px 16px; align-items: center; justify-content: space-between; }
.vtools__sort { font-size: 13px; color: var(--fat-3); }
/* выбор фото: файл перетаскивают в блок */
.pic-edit.drop-on { outline: 2px dashed var(--saffron); outline-offset: 4px; border-radius: 14px; }
.pic-edit .upload small { display: block; margin-top: 6px; }
.tg-prev .tg-link { color: #6ab3f3; text-decoration: none; }
/* чёрный список в кабинете и окно «свяжитесь с менеджером» */
.bl-form .row3 { display: grid; grid-template-columns: 1fr 1fr 1.4fr; gap: 12px; }
@media (max-width: 760px) { .bl-form .row3 { grid-template-columns: 1fr; } }
.ask-mgr { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.ask-mgr .btn svg { width: 18px; height: 18px; margin-right: 8px; vertical-align: -3px; }
