@import url("fonts/fonts.css");

/* Баскет. Палитра пигментами корзины, шрифты Unbounded (суммы, заголовки), Onest (текст), Caveat (пометки). */
:root {
  --cream-50: #fffbf2; --cream-100: #fbf6ea; --line: #ece4d2;
  --ink-900: #13301d; --ink-700: #2f4a37; --ink-500: #5f6d5f;
  --yellow-100: #fff4d2; --yellow-200: #ffe7a1; --yellow-500: #ffc93c; --yellow-700: #e0a91c;
  --wicker-200: #efd3a8; --wicker-500: #c98a3d; --wicker-700: #8f5c22;
  --tomato-100: #fde2d8; --tomato-500: #e0502e; --leaf-100: #e2f1d9; --leaf-500: #4b9654;
  --ease: cubic-bezier(.2, .8, .2, 1);
}
* { box-sizing: border-box; margin: 0; }
html { scrollbar-color: var(--wicker-500) transparent; scrollbar-width: thin; }
body { min-height: 100vh; background: var(--cream-100); color: var(--ink-900); font: 400 15px/1.45 "Onest", system-ui, sans-serif; -webkit-font-smoothing: antialiased; }
img { display: block; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
a { color: inherit; }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid var(--ink-900); outline-offset: 2px; border-radius: 8px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.d { font-family: "Unbounded", sans-serif; font-weight: 800; letter-spacing: -.035em; line-height: 1.05; }
.hand { font-family: "Caveat", cursive; font-weight: 700; }
.muted { color: var(--ink-500); }
.num { font-variant-numeric: tabular-nums; }
svg.i { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: none; }

.logo { display: inline-flex; align-items: center; gap: 10px; font: 800 22px/1 "Unbounded", sans-serif; letter-spacing: -.04em; color: var(--ink-900); text-decoration: none; }
.logo svg { width: 36px; height: 36px; }

.card { background: var(--cream-50); border-radius: 24px; box-shadow: 0 1px 0 rgba(19, 48, 29, .04), 0 0 0 1px var(--line); }
.btn { display: flex; align-items: center; justify-content: center; gap: 10px; border: 0; border-radius: 16px; padding: 15px 20px; font-weight: 600; background: var(--ink-900); color: var(--cream-50); width: 100%; text-decoration: none; transition: transform .12s var(--ease); }
.btn:active { transform: translateY(1px); }
.btn.y { background: var(--yellow-500); color: var(--ink-900); }
.btn.ghost { background: transparent; color: var(--ink-900); box-shadow: inset 0 0 0 1.5px rgba(19, 48, 29, .25); }
.btn.sm { padding: 10px 14px; border-radius: 12px; font-size: 14px; width: auto; }
.btn[disabled] { opacity: .5; cursor: default; }
.tag { display: inline-flex; align-items: center; gap: 4px; padding: 3px 8px; border-radius: 8px; font-weight: 600; font-size: 12px; line-height: 1.4; background: var(--yellow-100); }
.tag.leaf { background: var(--leaf-100); color: #24502b; }
.tag.tomato { background: var(--tomato-100); color: #8e2a12; }
.tag.w { background: rgba(255, 251, 242, .94); }
.bubble { position: relative; background: var(--cream-100); border-radius: 18px; padding: 12px 14px; box-shadow: 0 0 0 1px var(--line); font-size: 14px; }
.bubble::before { content: ""; position: absolute; left: -6px; top: 16px; width: 12px; height: 12px; background: inherit; transform: rotate(45deg); box-shadow: -1px 1px 0 0 var(--line); }
.note { color: var(--tomato-500); font-size: 20px; line-height: 1; }
.src { font-size: 12px; color: var(--ink-500); }
.src a { color: var(--ink-700); }

/* Себет: аватар у реплик, во весь рост лентой кадров, сдвиг только transform */
.film { position: relative; display: block; width: 100%; aspect-ratio: 1; overflow: hidden; }
.film img { position: absolute; left: 0; top: 0; height: 100%; }
.film .still { width: 100%; }
.film .strip { width: auto; max-width: none; }
.film.run .still { opacity: 0; }
.ava { position: relative; display: block; width: 100%; aspect-ratio: 1; border-radius: 50%; overflow: hidden; background: var(--yellow-200); }
.ava img { position: absolute; left: 7%; top: 14%; width: 86%; height: auto; }
.say { display: grid; grid-template-columns: 42px minmax(0, 1fr); gap: 12px; align-items: start; }

/* Корзина бюджета: три слоя, продукты поднимаются изнутри */
.bmeter { position: relative; aspect-ratio: 400 / 372; transform-origin: 50% 90%; }
.bmeter img { position: absolute; inset: 0; width: 100%; height: 100%; }
.b-back, .b-front { filter: drop-shadow(1px 4px 4px rgba(19, 48, 29, .16)); }
.b-gw { position: absolute; inset: 0; clip-path: polygon(0% 0%, 100% 0%, 99.9% 53.2%, 95.7% 53.1%, 91.6% 57.2%, 87.4% 59%, 83.2% 60.4%, 79.1% 61.4%, 74.9% 62.2%, 70.8% 62.9%, 66.6% 63.1%, 62.4% 63.5%, 58.3% 63.6%, 54.1% 63.5%, 49.9% 63.4%, 45.8% 63.2%, 41.6% 62.8%, 37.5% 62.2%, 33.3% 61.4%, 29.1% 60.5%, 25% 59.1%, 20.8% 57.1%, 16.6% 53.2%, 12.5% 52%, 0% 52%); }
.b-goods { transform: translateY(calc((1 - var(--p)) * 51.4%)); transition: transform .8s var(--ease); }
.fly { position: fixed; z-index: 50; width: 36px; height: 36px; border-radius: 50%; object-fit: cover; pointer-events: none; box-shadow: 0 6px 14px rgba(19, 48, 29, .25); }

/* Каркас: на телефоне вкладки внизу, на ноутбуке слева */
.app { display: grid; grid-template-columns: 220px minmax(0, 1fr); min-height: 100vh; }
.side { position: sticky; top: 0; height: 100vh; padding: 24px 16px; display: flex; flex-direction: column; gap: 28px; }
.tabs { display: grid; gap: 4px; }
.tabs a { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 14px; color: var(--ink-900); text-decoration: none; font-weight: 600; }
.tabs a[aria-current="page"] { background: var(--yellow-500); }
.side .src { margin-top: auto; }
main { padding: 24px 32px 48px; max-width: 1040px; width: 100%; outline: none; }
.top { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 18px; }
.top h1 { font-size: 28px; }
.where { display: flex; align-items: center; gap: 6px; color: var(--ink-500); font-size: 14px; }
.mlogo { display: none; }

@media (max-width: 899px) {
  .app { display: block; }
  .side { position: fixed; z-index: 20; left: 12px; right: 12px; bottom: 12px; top: auto; height: auto; padding: 6px; border-radius: 22px; background: var(--cream-50); box-shadow: 0 0 0 1px var(--line), 0 10px 24px rgba(19, 48, 29, .12); }
  .side > :not(.tabs) { display: none; }
  .tabs { grid-template-columns: repeat(4, 1fr); }
  .tabs a { flex-direction: column; gap: 2px; padding: 8px 2px 7px; font-size: 12px; line-height: 1.2; color: var(--ink-700); }
  .tabs a[aria-current="page"] { color: var(--ink-900); }
  main { padding: 14px 14px 108px; }
  .mlogo { display: inline-flex; }
  .top h1 { font-size: 22px; }
  .hide-m { display: none !important; }
}

/* Анкета */
.hero { display: grid; grid-template-columns: minmax(0, 1fr) 180px; gap: 16px; align-items: center; padding: 22px 24px; margin-bottom: 16px; }
.hero h1 { font-size: 34px; margin-bottom: 8px; }
.steps { display: flex; gap: 6px; align-items: center; margin-bottom: 14px; color: var(--ink-500); font-size: 13px; }
.steps i { flex: 1; height: 5px; border-radius: 3px; background: var(--line); }
.steps i.on { background: var(--yellow-500); }
.person { padding: 16px; margin-bottom: 12px; display: grid; gap: 12px; }
.person .ph { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 8px; }
.person .ph .seg { width: auto; }
.person .ph .seg button { padding: 8px 12px; }
.person .ph input { font-weight: 700; border: 0; background: none; padding: 4px 0; min-width: 0; flex: 1; font-size: 17px; }
.grid3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.field { display: grid; gap: 4px; background: var(--cream-100); border-radius: 12px; padding: 8px 12px; font-size: 12px; color: var(--ink-500); }
.field input, .field select { border: 0; background: none; padding: 0; font-size: 16px; font-weight: 600; color: var(--ink-900); width: 100%; min-width: 0; }
.seg { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 6px; }
.seg button, .chips button { border: 0; border-radius: 12px; padding: 10px 6px; background: var(--cream-100); font-weight: 600; font-size: 14px; color: var(--ink-700); }
.seg button[aria-pressed="true"], .chips button[aria-pressed="true"] { background: var(--ink-900); color: var(--cream-50); }
.seg button.own { box-shadow: inset 0 0 0 1.5px var(--yellow-500); }
.goal-l { font-weight: 600; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chips button { padding: 8px 12px; }
.own { display: grid; grid-template-columns: 42px minmax(0, 1fr); gap: 10px; align-items: start; }
.own textarea, .home textarea { width: 100%; min-height: 64px; resize: vertical; border: 0; border-radius: 14px; padding: 10px 12px; background: var(--yellow-100); font-size: 14px; }
.normline { display: flex; justify-content: space-between; font-size: 14px; color: var(--ink-500); }
.normline b { color: var(--ink-900); }
.budget { padding: 16px; display: grid; gap: 12px; margin-bottom: 12px; }
.budget .sum { display: flex; align-items: baseline; gap: 8px; }
.budget .sum input { width: 160px; border: 0; border-bottom: 2px solid var(--line); background: none; font: 800 38px/1 "Unbounded", sans-serif; letter-spacing: -.04em; padding: 0 0 4px; }
.formrow { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.sticky-go { position: sticky; bottom: 0; padding: 12px 0 4px; background: linear-gradient(transparent, var(--cream-100) 30%); }
@media (max-width: 899px) { .seg[aria-label="Цель"] { grid-auto-flow: row; grid-template-columns: 1fr 1fr; } .hero { grid-template-columns: minmax(0, 1fr) 96px; padding: 16px; } .hero h1 { font-size: 24px; } .formrow { grid-template-columns: 1fr; } .sticky-go { bottom: 84px; } .grid3 { grid-template-columns: 1fr 1fr; } }

/* Неделя */
.bask { display: grid; grid-template-columns: minmax(0, 1fr) 190px; gap: 8px 16px; align-items: center; padding: 22px 24px; margin-bottom: 16px; }
.bask .sum { font-size: 50px; margin: 6px 0 2px; }
.bask .of { color: var(--ink-500); font-weight: 600; }
.bask .room { display: inline-block; margin-top: 10px; border-radius: 10px; padding: 4px 10px; font-weight: 600; background: var(--yellow-200); }
.bask .room.over { background: var(--tomato-100); color: #8e2a12; }
.bask .say { grid-column: 1 / -1; padding-top: 14px; border-top: 1px dashed var(--line); }
.days { display: flex; gap: 8px; margin-bottom: 18px; overflow-x: auto; scrollbar-width: none; }
.days button { flex: 1; min-width: 46px; text-align: center; padding: 10px 0; border: 0; border-radius: 14px; background: var(--cream-50); box-shadow: 0 0 0 1px var(--line); font-weight: 600; line-height: 1.2; }
.days small { display: block; color: var(--ink-500); font-size: 12px; font-weight: 400; }
.days button[aria-pressed="true"] { background: var(--ink-900); color: var(--cream-50); box-shadow: none; }
.days button[aria-pressed="true"] small { color: #b9c6b8; }
.sec { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 12px; gap: 12px; }
.sec h2 { font-size: 18px; font-weight: 700; }
.meals { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.meal { position: relative; display: block; border-radius: 22px; overflow: hidden; background: var(--yellow-500); text-decoration: none; color: var(--ink-900); padding: 14px; min-height: 270px; }
.meal .plate-s { width: 74%; margin: 18px auto 10px; aspect-ratio: 1; border-radius: 50%; box-shadow: 0 1px 2px rgba(19, 48, 29, .3), 10px 16px 24px rgba(143, 92, 34, .3); }
.meal .plate-s img { width: 100%; height: 100%; border-radius: 50%; }
.meal .top2 { display: flex; justify-content: space-between; gap: 6px; }
.meal b { display: block; font: 800 18px/1.15 "Unbounded", sans-serif; letter-spacing: -.03em; }
.meal small { display: block; color: var(--ink-700); font-size: 13px; margin-bottom: 2px; }
.cookline { display: grid; grid-template-columns: 40px minmax(0, 1fr); gap: 12px; align-items: center; padding: 14px 16px; background: var(--yellow-100); border-radius: 18px; margin-top: 14px; }
.cookline .ic { width: 40px; height: 40px; border-radius: 50%; background: var(--cream-50); display: grid; place-items: center; }
.kcal { margin-top: 16px; padding: 14px 16px; display: grid; gap: 6px; font-size: 14px; }
.kcal div { display: flex; justify-content: space-between; gap: 12px; }
@media (max-width: 899px) {
  .bask { grid-template-columns: minmax(0, 1fr) 110px; padding: 18px; }
  .bask .sum { font-size: 28px; }
  .meals { grid-template-columns: 1fr; gap: 10px; }
  .meal { display: grid; grid-template-columns: 96px minmax(0, 1fr); align-items: center; gap: 12px; min-height: 0; background: var(--cream-50); box-shadow: 0 0 0 1px var(--line); padding: 10px; }
  .meal .plate-s { width: 96px; margin: 0; grid-row: span 2; box-shadow: 0 1px 2px rgba(19, 48, 29, .3); }
  .meal .top2 { order: 2; justify-content: flex-start; }
  .meal b { font-size: 16px; }
}

/* Блюдо */
.dish { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 0; margin: -24px -32px -48px; min-height: 100vh; }
.stage { position: relative; overflow: hidden; background: var(--yellow-500); padding: 24px 32px; display: flex; flex-direction: column; }
.stage::before { content: ""; position: absolute; inset: 0; opacity: .16; background: repeating-linear-gradient(90deg, transparent 0 18px, var(--wicker-700) 18px 20px, transparent 20px 36px), repeating-linear-gradient(0deg, transparent 0 10px, var(--wicker-700) 10px 12px, transparent 12px 24px); -webkit-mask: linear-gradient(transparent, #000 60%); mask: linear-gradient(transparent, #000 60%); }
.stage .bar { position: relative; z-index: 2; display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.rb { width: 44px; height: 44px; border-radius: 14px; background: rgba(255, 251, 242, .6); display: grid; place-items: center; border: 0; color: var(--ink-900); text-decoration: none; flex: none; }
.back-word { position: absolute; z-index: 0; left: 50%; top: 31%; transform: translateX(-50%); white-space: nowrap; font: 800 clamp(64px, 11vw, 150px)/1 "Unbounded", sans-serif; letter-spacing: -.06em; color: var(--yellow-700); opacity: .55; }
.stage .meta { position: relative; z-index: 2; display: flex; justify-content: center; gap: 6px; flex-wrap: wrap; margin-top: 10px; }
.plate { position: relative; z-index: 1; width: min(380px, 76%); aspect-ratio: 1; margin: 20px auto 12px; border-radius: 50%; box-shadow: 0 1px 2px rgba(19, 48, 29, .3), 0 6px 12px rgba(143, 92, 34, .2), 18px 30px 42px rgba(143, 92, 34, .34); background: var(--cream-50); }
.plate img { width: 100%; height: 100%; border-radius: 50%; }
.plate.empty::after { content: ""; position: absolute; inset: 9%; border-radius: 50%; box-shadow: inset 0 0 0 2px #2f6b45; }
.buddy { position: absolute; z-index: 2; right: 24px; bottom: 96px; width: 92px; }
.acts { position: relative; z-index: 2; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: auto; }
.acts .ghost { background: rgba(255, 251, 242, .5); }
.info { padding: 28px 32px 48px; display: flex; flex-direction: column; gap: 16px; }
.info h1 { font-size: 32px; }
.tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(118px, 1fr)); gap: 10px; }
.tile { border-radius: 16px; overflow: hidden; background: var(--cream-50); box-shadow: 0 0 0 1px var(--line); }
.tile img, .tile .noimg { width: 100%; aspect-ratio: 1.3; object-fit: cover; background: var(--yellow-100); }
.tile div { padding: 8px 10px 10px; font-size: 12px; color: var(--ink-500); }
.tile b { display: block; font-weight: 600; font-size: 14px; color: var(--ink-900); }
.tile .p { display: block; font-weight: 600; color: var(--ink-900); margin-top: 2px; }
.portions { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.portions div { border-radius: 16px; padding: 12px 14px; background: var(--cream-50); box-shadow: 0 0 0 1px var(--line); font-size: 13px; color: var(--ink-500); }
.portions b { display: block; color: var(--ink-900); font-size: 16px; }
ol.cook { display: grid; gap: 8px; padding: 0; list-style: none; counter-reset: s; }
ol.cook li { counter-increment: s; display: grid; grid-template-columns: 32px minmax(0, 1fr); gap: 10px; align-items: start; padding: 10px 12px; border-radius: 14px; background: var(--cream-50); box-shadow: 0 0 0 1px var(--line); cursor: pointer; }
ol.cook li::before { content: counter(s); width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: var(--yellow-200); font-weight: 700; font-size: 13px; }
ol.cook li.done { color: var(--ink-500); }
ol.cook li.done::before { content: "✓"; background: var(--leaf-100); color: #24502b; }
.ask { display: grid; grid-template-columns: 42px minmax(0, 1fr); gap: 10px; align-items: center; }
.ask form { display: flex; align-items: center; gap: 8px; background: var(--cream-50); border-radius: 16px; padding: 6px 6px 6px 14px; box-shadow: 0 0 0 1px var(--line); }
.ask input { flex: 1; min-width: 0; border: 0; background: none; padding: 8px 0; }
.ask button { border: 0; border-radius: 12px; padding: 9px 12px; background: var(--ink-900); color: var(--cream-50); font-weight: 600; font-size: 14px; white-space: nowrap; }
.answer { font-size: 14px; }
@media (max-width: 899px) {
  .dish { display: block; margin: -14px -14px 0; }
  .stage { padding: 14px 14px 40px; }
  .back-word { top: 30%; font-size: 76px; }
  .plate { width: 68%; margin: 18px auto 6px; }
  .buddy { right: 10px; bottom: 30px; width: 66px; }
  .acts { display: none; }
  .info { padding: 18px 14px 120px; margin-top: -24px; position: relative; background: var(--cream-100); border-radius: 24px 24px 0 0; }
  .mob { position: fixed; z-index: 25; left: 14px; right: 14px; bottom: 92px; display: grid !important; grid-template-columns: 1fr 1fr; gap: 8px; }
  .mob .ghost { background: var(--cream-50); }
}
.mob { display: none; }

/* Корзина */
.cart { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 16px; align-items: start; }
.list { padding: 20px 22px; }
.lh { display: grid; grid-template-columns: minmax(0, 1fr) 96px; gap: 10px; align-items: center; margin-bottom: 8px; }
.lh h2 { font-size: 22px; }
.lh p { font-size: 14px; color: var(--ink-500); margin-top: 4px; }
.lh p b { color: var(--ink-900); }
.grp { display: flex; justify-content: space-between; align-items: center; font-weight: 600; padding: 12px 0 4px; font-size: 14px; }
.grp span { display: flex; align-items: center; gap: 8px; }
.row { width: 100%; text-align: left; border: 0; background: none; display: grid; grid-template-columns: 32px minmax(0, 1fr) auto; gap: 10px; align-items: center; padding: 7px 0; border-bottom: 1px solid var(--line); cursor: pointer; }
.row img, .row .dot { width: 32px; height: 32px; border-radius: 50%; object-fit: cover; background: var(--yellow-100); transition: opacity .3s; }
.row.done img { opacity: .45; }
.row .n { font-size: 14px; line-height: 1.3; }
.row .n small { color: var(--ink-500); }
.row .n i { display: block; font-style: normal; font-size: 12px; color: #2f6b36; margin-top: 1px; }
.row.done .n, .row.done .p { color: var(--ink-500); }
.row .p { font-weight: 600; font-variant-numeric: tabular-nums; }
.row.homei { cursor: default; opacity: .7; }
.bought { margin-top: 10px; }
.bh { width: 100%; display: flex; align-items: center; gap: 8px; border: 0; background: var(--leaf-100); border-radius: 14px; padding: 10px 12px; font-weight: 600; font-size: 14px; text-align: left; }
.bh .ok { width: 18px; height: 18px; border-radius: 50%; background: var(--leaf-500); position: relative; flex: none; }
.bh .ok::after { content: ""; position: absolute; left: 5px; top: 4px; width: 7px; height: 4px; border: 2px solid var(--cream-50); border-top: 0; border-right: 0; transform: rotate(-45deg); }
.bh .chev { margin-left: auto; width: 18px; height: 18px; transform: rotate(-90deg); transition: transform .25s var(--ease); }
.bh[aria-expanded="true"] .chev { transform: rotate(90deg); }
.aside { display: grid; gap: 12px; }
.aside .card { padding: 16px; display: grid; gap: 10px; }
.cmp div { display: flex; justify-content: space-between; font-size: 14px; }
.cmp div b { font-variant-numeric: tabular-nums; }
.home form { display: grid; gap: 8px; }
.share { display: grid; gap: 8px; }
@media (max-width: 899px) { .cart { grid-template-columns: 1fr; } .list { padding: 16px; } }

/* Рецепты и цены */
.rgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 12px; }
.rc { display: block; text-decoration: none; color: inherit; padding: 10px 10px 14px; }
.rc .pl { aspect-ratio: 1; border-radius: 16px; background: var(--yellow-500); display: grid; place-items: center; margin-bottom: 10px; }
.rc .pl img { width: 80%; height: 80%; border-radius: 50%; box-shadow: 6px 10px 18px rgba(143, 92, 34, .3); }
.rc b { display: block; font-weight: 700; font-size: 15px; padding: 0 4px; }
.rc small { display: block; color: var(--ink-500); font-size: 13px; padding: 0 4px; }
.pgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 12px; }
.pcard { padding: 8px 8px 12px; border-radius: 20px; display: flex; flex-direction: column; gap: 8px; }
.pcard .ph2 { aspect-ratio: 1; border-radius: 14px; background: #fff; display: grid; place-items: center; overflow: hidden; }
.pcard .ph2 img { width: 82%; height: 82%; object-fit: contain; }
.pcard .nm { font-size: 14px; line-height: 1.3; font-weight: 600; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 2.6em; padding: 0 4px; }
.pcard .pr { display: grid; gap: 2px; padding: 0 4px; font-size: 13px; font-variant-numeric: tabular-nums; }
.pcard .pr div { display: flex; justify-content: space-between; color: var(--ink-500); }
.pcard .pr div.low { color: var(--ink-900); font-weight: 700; }
.cats { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 6px; margin-bottom: 10px; scrollbar-width: none; }
.cats button { flex: none; padding: 8px 12px; border-radius: 12px; border: 0; background: var(--cream-50); box-shadow: 0 0 0 1px var(--line); font-weight: 600; font-size: 14px; }
.cats button[aria-pressed="true"] { background: var(--ink-900); color: var(--cream-50); box-shadow: none; }
@media (max-width: 899px) { .rgrid, .pgrid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; } }

/* Загрузка */
.loading { display: grid; place-items: center; min-height: 70vh; text-align: center; gap: 10px; }
.loading .film { width: 150px; margin: 0 auto; }
.toast { position: fixed; z-index: 60; left: 50%; bottom: 104px; transform: translateX(-50%); background: var(--ink-900); color: var(--cream-50); padding: 10px 16px; border-radius: 12px; font-size: 14px; }
.static { max-width: 640px; padding: 24px; }
.static h1 { font-size: 30px; margin-bottom: 12px; }

@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }
