/* ============ КУХНЯ МИШИ — тёплая тёмная тема ============ */
/* Шрифты (Unbounded + Manrope, cyrillic+latin) — fonts/fonts.css */

:root {
  --bg: #0d0a08;
  --bg2: #14100c;
  --surface: rgba(255, 244, 230, 0.045);
  --surface2: rgba(255, 244, 230, 0.08);
  --border: rgba(255, 224, 178, 0.11);
  --text: #f3ead9;
  --muted: #a9987f;
  --amber: #ffb347;
  --amber2: #ff7a2f;
  --grad: linear-gradient(100deg, var(--amber), var(--amber2));
  --pink: #ff5e7a;
  --green: #7ddb8a;
  --r-lg: 22px;
  --r-md: 16px;
  --shadow: 0 18px 50px rgba(0, 0, 0, 0.5);
  --font: 'Manrope', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-display: 'Unbounded', var(--font);
}

* { margin: 0; padding: 0; box-sizing: border-box; -webkit-tap-highlight-color: rgba(255,179,71,.12); }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  min-height: 100vh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
::selection { background: rgba(255, 179, 71, 0.3); }

::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-thumb { background: rgba(255, 224, 178, 0.15); border-radius: 8px; }
::-webkit-scrollbar-track { background: transparent; }

/* ---------- фоновые пятна ---------- */
.bg-blobs { position: fixed; inset: 0; z-index: -1; overflow: hidden; }
.blob {
  position: absolute; border-radius: 50%;
  filter: blur(90px); opacity: 0.5;
  animation: drift 26s ease-in-out infinite alternate;
}
.b1 { width: 42vw; height: 42vw; left: -12vw; top: -14vw; background: radial-gradient(circle, rgba(255,122,47,0.32), transparent 70%); }
.b2 { width: 36vw; height: 36vw; right: -10vw; top: 22vh; background: radial-gradient(circle, rgba(255,94,122,0.20), transparent 70%); animation-delay: -8s; animation-duration: 32s; }
.b3 { width: 30vw; height: 30vw; left: 24vw; bottom: -16vw; background: radial-gradient(circle, rgba(125,219,138,0.14), transparent 70%); animation-delay: -16s; animation-duration: 38s; }
@keyframes drift {
  0%   { transform: translate(0, 0) scale(1); }
  50%  { transform: translate(6vw, 4vh) scale(1.12); }
  100% { transform: translate(-4vw, -5vh) scale(0.94); }
}
.grain {
  position: absolute; inset: 0; opacity: 0.5;
  background-image: radial-gradient(rgba(255, 236, 200, 0.035) 1px, transparent 1px);
  background-size: 3px 3px;
}

/* ---------- шапка ---------- */
.topbar {
  position: sticky; top: 0; z-index: 50;
  padding: 14px 0;
  transition: background .35s, backdrop-filter .35s, box-shadow .35s, padding .35s;
}
.topbar.is-stuck {
  background: rgba(13, 10, 8, 0.72);
  -webkit-backdrop-filter: blur(18px) saturate(1.3);  backdrop-filter: blur(18px) saturate(1.3);
  box-shadow: 0 1px 0 var(--border), 0 12px 40px rgba(0,0,0,.35);
  padding: 10px 0;
}
.topbar-in {
  max-width: 1280px; margin: 0 auto; padding: 0 24px;
  display: flex; align-items: center; gap: 18px;
}
.brand {
  display: flex; align-items: center; gap: 11px;
  text-decoration: none; color: var(--text);
}
.brand-pan {
  font-size: 26px; display: grid; place-items: center;
  width: 44px; height: 44px; border-radius: 14px;
  background: var(--grad);
  box-shadow: 0 6px 24px rgba(255, 122, 47, 0.35);
  transition: transform .4s cubic-bezier(.34, 1.56, .64, 1);
}
.brand:hover .brand-pan { transform: rotate(-14deg) scale(1.08); }
.brand-name { font-family: var(--font-display); font-size: 15px; letter-spacing: .06em; white-space: nowrap; }
.brand-accent { color: transparent; background: var(--grad); -webkit-background-clip: text; background-clip: text; padding-left: 5px; }

.search-wrap {
  flex: 1; max-width: 430px; position: relative; margin-left: auto;
}
.search-ico {
  position: absolute; left: 15px; top: 50%; transform: translateY(-50%);
  width: 17px; height: 17px; stroke: var(--muted); stroke-width: 2.2;
  fill: none; stroke-linecap: round; pointer-events: none;
  transition: stroke .3s;
}
#search {
  width: 100%; padding: 12px 44px 12px 42px;
  background: var(--surface); border: 1px solid var(--border); border-radius: 14px;
  color: var(--text); font: 500 16px var(--font); outline: none;
  transition: border-color .3s, box-shadow .3s, background .3s;
}
#search::placeholder { color: var(--muted); }
#search:focus {
  border-color: rgba(255, 179, 71, 0.5);
  box-shadow: 0 0 0 4px rgba(255, 179, 71, 0.12), 0 8px 30px rgba(255, 122, 47, 0.15);
  background: var(--surface2);
}
.search-wrap:focus-within .search-ico { stroke: var(--amber); }
#searchHint {
  position: absolute; right: 13px; top: 50%; transform: translateY(-50%);
  font: 600 11px var(--font); color: var(--muted);
  border: 1px solid var(--border); border-radius: 6px; padding: 2px 7px;
  transition: opacity .3s;
}
.search-wrap:focus-within #searchHint { opacity: 0; }

.btn {
  border: none; cursor: pointer; font-family: var(--font);
  border-radius: 14px; transition: transform .25s cubic-bezier(.34,1.56,.64,1), box-shadow .3s, background .3s;
}
.btn:active { transform: scale(.96); }
.btn-add {
  display: flex; align-items: center; gap: 8px;
  background: var(--grad); color: #221204;
  font: 700 14px var(--font); padding: 12px 18px;
  box-shadow: 0 8px 26px rgba(255, 122, 47, 0.35);
}
.btn-add:hover { transform: translateY(-2px) scale(1.03); box-shadow: 0 12px 34px rgba(255, 122, 47, 0.5); }
.btn-add-plus { font-size: 17px; line-height: 1; display: inline-block; transition: transform .4s cubic-bezier(.34,1.56,.64,1); }
.btn-add:hover .btn-add-plus { transform: rotate(90deg); }

/* ---------- hero ---------- */
.hero {
  max-width: 1280px; margin: 0 auto; padding: 9vh 24px 6vh;
  text-align: center; position: relative;
}
.hero-tag {
  display: inline-block;
  font: 600 12px/1 var(--font); letter-spacing: .22em; text-transform: uppercase;
  color: var(--amber);
  padding: 9px 16px; border: 1px solid rgba(255,179,71,.25); border-radius: 100px;
  background: rgba(255,179,71,.07);
  animation: fadeUp .8s .1s both;
}
.hero-title {
  font-family: var(--font-display);
  font-size: clamp(28px, 8vw, 76px);
  line-height: 1.06; margin: 26px 0 22px;
  letter-spacing: .01em;
}
.hero-title .w { display: inline-block; margin: 0 .16em; white-space: nowrap; }
.hero-title .ch {
  display: inline-block;
  animation: chIn .7s cubic-bezier(.22,1.2,.36,1) both;
  background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent;
}
@keyframes chIn {
  from { opacity: 0; transform: translateY(60px) rotate(8deg) scale(.7); filter: blur(8px); }
  to   { opacity: 1; transform: none; filter: blur(0); }
}
.hero-sub {
  display: flex; align-items: center; justify-content: center; gap: 16px; flex-wrap: wrap;
  color: var(--muted); font: 500 15px var(--font);
  animation: fadeUp .8s .55s both;
}
.stat b { color: var(--text); font-weight: 800; font-size: 17px; margin-right: 4px; }
.dot { width: 4px; height: 4px; border-radius: 50%; background: var(--muted); opacity: .6; }
.hero-scroll {
  margin: 48px auto 0; width: 30px; opacity: .5;
  animation: fadeUp 1s 1.2s both;
}
.hero-scroll svg { width: 100%; stroke: var(--muted); stroke-width: 1.6; fill: none; stroke-linecap: round; animation: bob 2.2s ease-in-out infinite; }
@keyframes bob { 0%,100% { transform: translateY(0); } 50% { transform: translateY(7px); } }
@keyframes fadeUp { from { opacity: 0; transform: translateY(26px); } to { opacity: 1; transform: none; } }

/* ---------- фильтры ---------- */
.filters { position: sticky; top: 74px; z-index: 40; padding: 8px 0 14px; }
.filters-in {
  max-width: 1280px; margin: 0 auto; padding: 0 24px;
  display: flex; align-items: center; gap: 16px;
}
.chips {
  display: flex; gap: 8px; padding: 6px;
  background: rgba(13,10,8,.65); -webkit-backdrop-filter: blur(16px);  backdrop-filter: blur(16px);
  border: 1px solid var(--border); border-radius: 100px;
  overflow-x: auto; scrollbar-width: none;
}
.chips::-webkit-scrollbar { display: none; }
.chip {
  border: none; background: transparent; cursor: pointer;
  font: 600 13.5px var(--font); color: var(--muted);
  padding: 9px 17px; border-radius: 100px; white-space: nowrap;
  transition: color .3s, background .35s, transform .25s, box-shadow .35s;
}
.chip:hover { color: var(--text); transform: translateY(-1px); }
.chip.is-active {
  color: #221204; background: var(--grad);
  box-shadow: 0 6px 20px rgba(255, 122, 47, 0.35);
  transform: translateY(0);
}
.chip span { display: inline-block; }
.found { margin-left: auto; font: 500 13px var(--font); color: var(--muted); white-space: nowrap; }
.found b { color: var(--amber); font-weight: 700; }

/* ---------- сетка и карточки ---------- */
main { max-width: 1280px; margin: 0 auto; padding: 10px 24px 90px; }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 26px; }

.card {
  position: relative; border-radius: var(--r-lg);
  background: var(--bg2); border: 1px solid var(--border);
  overflow: hidden; cursor: pointer; isolation: isolate;
  transform-style: preserve-3d; will-change: transform;
  content-visibility: auto; contain-intrinsic-size: auto 360px;
  opacity: 0; transform: translateY(34px) scale(.97);
  transition: opacity .7s cubic-bezier(.22,1,.36,1), transform .7s cubic-bezier(.22,1,.36,1),
              box-shadow .45s, border-color .45s;
}
.card.is-in { opacity: 1; transform: none; }
.card:hover {
  border-color: rgba(255, 179, 71, 0.45);
  box-shadow: 0 24px 60px rgba(0, 0, 0, .55), 0 0 40px rgba(255, 122, 47, 0.13);
}
.card::after {
  content: ''; position: absolute; inset: 0; border-radius: inherit; z-index: 4;
  background: linear-gradient(150deg, rgba(255,179,71,.16), transparent 34%, transparent 66%, rgba(255,94,122,.12));
  opacity: 0; transition: opacity .5s; pointer-events: none;
}
.card:hover::after { opacity: 1; }

.card-photo {
  aspect-ratio: 4 / 3; overflow: hidden; position: relative;
  background: linear-gradient(120deg, #1d1610, #241a12, #1d1610);
  background-size: 300% 300%; animation: shimmer 2.4s linear infinite;
}
@keyframes shimmer { 0% { background-position: 0% 0; } 100% { background-position: 300% 0; } }
.card-photo img {
  width: 100%; height: 100%; object-fit: cover; display: block;
  transform: scale(1.02);
  transition: transform .8s cubic-bezier(.22,1,.36,1);
}
.card:hover .card-photo img { transform: scale(1.11); }
.card-photo .card-nophoto {
  position: absolute; inset: 0; display: grid; place-items: center;
  font-size: 52px; opacity: .5; filter: grayscale(.4);
  background: radial-gradient(circle at 50% 40%, rgba(255,179,71,.1), transparent 65%);
}
.card-badge {
  position: absolute; top: 13px; left: 13px; z-index: 3;
  font: 700 11.5px var(--font); letter-spacing: .04em;
  padding: 6px 11px; border-radius: 100px;
  background: rgba(13, 10, 8, 0.62); -webkit-backdrop-filter: blur(10px);  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 244, 230, 0.14);
  color: var(--text);
}
.card-rate {
  position: absolute; top: 13px; right: 13px; z-index: 3;
  display: flex; align-items: center; gap: 4px;
  font: 800 12px var(--font); color: #221204;
  background: var(--grad); padding: 5px 10px; border-radius: 100px;
  box-shadow: 0 4px 14px rgba(255, 122, 47, 0.4);
}
.card-body { padding: 17px 18px 19px; }
.card-title {
  font: 700 17px/1.3 var(--font); letter-spacing: .01em;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
  transition: color .3s;
}
.card:hover .card-title { color: var(--amber); }
.card-foot {
  display: flex; gap: 14px; margin-top: 11px;
  font: 500 12.5px var(--font); color: var(--muted);
}
.card-foot i { font-style: normal; display: flex; align-items: center; gap: 5px; }
.card-foot svg { width: 14px; height: 14px; stroke: currentColor; stroke-width: 2; fill: none; stroke-linecap: round; }
.card-more {
  position: absolute; bottom: 14px; right: 14px; z-index: 3;
  width: 34px; height: 34px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--surface2); border: 1px solid var(--border);
  opacity: 0; transform: translateX(8px) rotate(-40deg);
  transition: opacity .4s, transform .45s cubic-bezier(.34,1.56,.64,1);
}
.card:hover .card-more { opacity: 1; transform: none; }
.card-more svg { width: 15px; height: 15px; stroke: var(--amber); stroke-width: 2.4; fill: none; stroke-linecap: round; }
.card.is-new { animation: popIn .8s cubic-bezier(.34,1.56,.64,1) both; }
@keyframes popIn {
  0% { opacity: 0; transform: scale(.5) rotate(-4deg); }
  60% { opacity: 1; transform: scale(1.06) rotate(1deg); }
  100% { opacity: 1; transform: none; }
}

/* скелетоны */
.grid-skeleton { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 26px; }
.sk {
  border-radius: var(--r-lg); border: 1px solid var(--border); overflow: hidden; background: var(--bg2);
}
.sk .a { aspect-ratio: 4/3; }
.sk .b { height: 18px; margin: 16px 18px 10px; width: 70%; border-radius: 6px; }
.sk .c { height: 12px; margin: 0 18px 20px; width: 40%; border-radius: 6px; }
.sk .a, .sk .b, .sk .c {
  background: linear-gradient(100deg, rgba(255,244,230,.05) 40%, rgba(255,244,230,.12) 50%, rgba(255,244,230,.05) 60%);
  background-size: 200% 100%; animation: skshine 1.6s linear infinite;
}
@keyframes skshine { to { background-position: -200% 0; } }

/* пустое состояние */
.empty { text-align: center; padding: 90px 20px; }
.empty-plate { font-size: 64px; margin-bottom: 18px; animation: bob 2.6s ease-in-out infinite; }
.empty-title { font: 700 22px var(--font); margin-bottom: 8px; }
.empty-sub { color: var(--muted); margin-bottom: 26px; }
.btn-ghost {
  background: transparent; border: 1px solid var(--border); color: var(--text);
  padding: 12px 26px; font: 600 14px var(--font);
}
.btn-ghost:hover { border-color: var(--amber); box-shadow: 0 0 24px rgba(255,179,71,.18); }

/* ---------- модалки ---------- */
.overlay {
  position: fixed; inset: 0; z-index: 100;
  background: rgba(8, 5, 3, 0.6); -webkit-backdrop-filter: blur(14px) saturate(1.1);  backdrop-filter: blur(14px) saturate(1.1);
  display: grid; place-items: center; padding: 3vh 16px;
  opacity: 0; transition: opacity .4s;
}
.overlay.is-open { opacity: 1; }
.sheet {
  width: min(860px, 100%); max-height: 92vh; max-height: 92dvh; overflow-y: auto;
  background: linear-gradient(170deg, #191310, #120e0a);
  border: 1px solid rgba(255, 224, 178, 0.14); border-radius: 26px;
  box-shadow: var(--shadow);
  transform: translateY(40px) scale(.94); opacity: 0;
  transition: transform .5s cubic-bezier(.22,1.2,.36,1), opacity .4s;
  scrollbar-width: thin;
}
.overlay.is-open .sheet { transform: none; opacity: 1; }
.sheet-close {
  position: absolute; top: 16px; right: 16px; z-index: 6;
  width: 42px; height: 42px; border-radius: 50%;
  background: rgba(13, 10, 8, 0.6); -webkit-backdrop-filter: blur(10px);  backdrop-filter: blur(10px);
  border: 1px solid var(--border); cursor: pointer;
  display: grid; place-items: center;
  transition: transform .4s cubic-bezier(.34,1.56,.64,1), background .3s;
}
.sheet-close:hover { transform: rotate(90deg); background: rgba(255, 94, 94, 0.2); }
.sheet-close svg { width: 17px; height: 17px; stroke: var(--text); stroke-width: 2.4; fill: none; stroke-linecap: round; }

.sheet-photo { position: relative; aspect-ratio: 21 / 10; overflow: hidden; border-radius: 26px 26px 0 0; background: #1a1410; }
.sheet-photo img { width: 100%; height: 100%; object-fit: cover; animation: photoIn 1s cubic-bezier(.22,1,.36,1) both; }
@keyframes photoIn { from { transform: scale(1.12); opacity: .4; } to { transform: none; opacity: 1; } }
.sheet-photo .nophoto { display: grid; place-items: center; height: 100%; font-size: 70px; opacity: .45; }
.sheet-body { padding: 30px 34px 38px; position: relative; }
.sheet-cats { display: flex; gap: 8px; margin-bottom: 14px; }
.tag {
  font: 700 11.5px var(--font); letter-spacing: .05em;
  padding: 6px 12px; border-radius: 100px;
  background: rgba(255, 179, 71, 0.12); color: var(--amber);
  border: 1px solid rgba(255, 179, 71, 0.25);
}
.tag.pink { background: rgba(255, 94, 122, 0.1); color: var(--pink); border-color: rgba(255, 94, 122, 0.25); }
.sheet-title { font-family: var(--font-display); font-size: clamp(22px, 3.6vw, 34px); line-height: 1.15; margin-bottom: 8px; }
.sheet-meta { color: var(--muted); font: 500 14px var(--font); margin-bottom: 26px; display: flex; gap: 16px; flex-wrap: wrap; }
.sheet-meta .rate { color: var(--amber); font-weight: 800; }

.sheet-cols { display: grid; grid-template-columns: 1fr 1.4fr; gap: 34px; }
.sheet-col h3 {
  font: 800 13px var(--font); text-transform: uppercase; letter-spacing: .14em;
  color: var(--amber); margin-bottom: 16px;
}
.checklist { list-style: none; display: flex; flex-direction: column; gap: 4px; }
.checklist li, .steps li {
  background: var(--surface); border: 1px solid transparent; border-radius: 12px;
  transition: background .3s, border-color .3s, opacity .4s, transform .3s;
}
.checklist li:hover, .steps li:hover { background: var(--surface2); border-color: var(--border); }
.checklist li {
  display: flex; gap: 12px; align-items: flex-start; padding: 10px 13px;
  font: 500 14.5px/1.45 var(--font); cursor: pointer; user-select: none;
}
.checklist .box {
  flex: 0 0 19px; height: 19px; margin-top: 2px; border-radius: 6px;
  border: 1.6px solid rgba(255, 224, 178, 0.3); position: relative;
  transition: background .25s, border-color .25s;
}
.checklist li.on { opacity: .45; }
.checklist li.on .txt { text-decoration: line-through; }
.checklist li.on .box { background: var(--green); border-color: var(--green); }
.checklist li.on .box::after {
  content: '✓'; position: absolute; inset: 0; display: grid; place-items: center;
  color: #0e2211; font: 800 12px var(--font);
  animation: tickPop .35s cubic-bezier(.34,1.56,.64,1);
}
@keyframes tickPop { from { transform: scale(0) rotate(-30deg); } to { transform: scale(1); } }
.checklist li:not(.on):hover { transform: translateX(3px); }

.steps-head { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; }
.steps-head h3 { margin: 0; }
.steps-progress {
  flex: 1; height: 5px; border-radius: 4px; overflow: hidden;
  background: rgba(255, 244, 230, 0.09);
}
.steps-progress i {
  display: block; height: 100%; width: 0%;
  background: var(--grad); border-radius: 4px;
  transition: width .5s cubic-bezier(.22,1,.36,1);
  box-shadow: 0 0 12px rgba(255, 122, 47, 0.55);
}
.steps-count { font: 700 12px var(--font); color: var(--muted); white-space: nowrap; }
.steps { list-style: none; display: flex; flex-direction: column; gap: 8px; counter-reset: step; }
.steps li {
  display: flex; gap: 14px; align-items: flex-start; padding: 13px 15px;
  font: 500 14.5px/1.55 var(--font); cursor: pointer; user-select: none;
  counter-increment: step; position: relative;
}
.steps li::before {
  content: counter(step);
  flex: 0 0 27px; height: 27px; margin-top: 1px; border-radius: 9px;
  display: grid; place-items: center;
  font: 800 12.5px var(--font); color: var(--amber);
  background: rgba(255, 179, 71, 0.1); border: 1px solid rgba(255, 179, 71, 0.25);
  transition: all .3s;
}
.steps li.on::before {
  content: '✓'; color: #0e2211; background: var(--green); border-color: var(--green);
  animation: tickPop .35s cubic-bezier(.34,1.56,.64,1);
}
.steps li.on .txt { text-decoration: line-through; opacity: .45; }
.steps li:not(.on):hover::before { transform: scale(1.1); box-shadow: 0 0 14px rgba(255, 179, 71, .35); }
.steps li .lnk { color: var(--amber); text-decoration: none; border-bottom: 1px dashed rgba(255,179,71,.5); }
.steps li .lnk:hover { color: var(--amber2); }

.sheet-notes {
  margin-top: 28px; padding: 15px 18px; border-radius: 14px;
  background: rgba(255, 94, 122, 0.06); border: 1px solid rgba(255, 94, 122, 0.16);
  font: 500 14px/1.55 var(--font); color: var(--text); white-space: pre-wrap;
}
.sheet-notes b { color: var(--pink); font-weight: 700; }
.sheet-actions { margin-top: 26px; display: flex; justify-content: flex-end; }
.btn-del {
  display: flex; align-items: center; gap: 8px;
  background: transparent; border: 1px solid rgba(255, 94, 94, 0.25); border-radius: 12px;
  color: rgba(255, 150, 150, 0.8); font: 600 13px var(--font); padding: 10px 16px;
  cursor: pointer; transition: all .3s;
}
.btn-del svg { width: 15px; height: 15px; stroke: currentColor; stroke-width: 1.8; fill: none; stroke-linecap: round; }
.btn-del:hover { background: rgba(255, 94, 94, 0.1); border-color: rgba(255, 94, 94, 0.5); color: #ff9d9d; }
.btn-del.confirm { background: rgba(255, 94, 94, 0.18); border-color: var(--pink); color: #ffb3b3; animation: pulse 0.9s ease-in-out infinite; }
@keyframes pulse { 0%,100% { box-shadow: 0 0 0 0 rgba(255,94,94,.35); } 50% { box-shadow: 0 0 0 7px rgba(255,94,94,0); } }

/* ---------- форма добавления ---------- */
.form-title { font-family: var(--font-display); font-size: 26px; margin-bottom: 6px; }
.form-emoji { display: inline-block; animation: sparkle 2.4s ease-in-out infinite; }
@keyframes sparkle { 0%,100% { transform: scale(1) rotate(0); } 50% { transform: scale(1.25) rotate(12deg); } }
.form-sub { color: var(--muted); font: 500 14px var(--font); margin-bottom: 26px; }
#addForm { display: flex; flex-direction: column; gap: 18px; }
.field { position: relative; }
.field input, .field textarea, .field select {
  width: 100%; padding: 15px 17px; border-radius: 14px;
  background: var(--surface); border: 1px solid var(--border);
  color: var(--text); font: 500 16px/1.5 var(--font); outline: none; resize: vertical;
  transition: border-color .3s, box-shadow .3s, background .3s;
}
.field input:focus, .field textarea:focus, .field select:focus {
  border-color: rgba(255, 179, 71, 0.55);
  box-shadow: 0 0 0 4px rgba(255, 179, 71, 0.1);
  background: var(--surface2);
}
.field label {
  position: absolute; left: 16px; top: 15px; padding: 0 5px;
  color: var(--muted); font: 500 14px var(--font); pointer-events: none;
  transition: all .25s cubic-bezier(.22,1,.36,1);
  background: transparent;
}
/* input — плавающий ярлык (placeholder=" " пустой, не наезжает) */
.field input:focus + label, .field input:not(:placeholder-shown) + label {
  top: -8px; font-size: 11.5px; font-weight: 700; color: var(--amber);
  background: linear-gradient(170deg, #191310, #120e0a);
}
/* textarea/select — ярлык ВСЕГДА поднят: не наезжает на текст и примеры */
.field textarea + label, .field select + label {
  top: -8px; font-size: 11.5px; font-weight: 700; color: var(--amber);
  background: linear-gradient(170deg, #191310, #120e0a);
  pointer-events: none;
}
.field textarea { min-height: 90px; }
.field select { appearance: none; cursor: pointer; }
.field .caret {
  position: absolute; right: 16px; top: 19px; pointer-events: none; color: var(--muted);
}

.dropzone {
  position: relative; border-radius: 16px; border: 2px dashed rgba(255, 224, 178, 0.22);
  background: var(--surface); overflow: hidden; cursor: pointer;
  transition: border-color .3s, background .3s, transform .3s;
}
.dropzone:hover { border-color: rgba(255, 179, 71, 0.5); }
.dropzone.dragover {
  border-color: var(--amber); background: rgba(255, 179, 71, 0.07);
  transform: scale(1.015); box-shadow: 0 0 34px rgba(255, 122, 47, 0.2);
}
.dz-inner { padding: 34px 20px; text-align: center; }
.dz-ico { font-size: 34px; margin-bottom: 8px; transition: transform .4s cubic-bezier(.34,1.56,.64,1); }
.dropzone:hover .dz-ico, .dropzone.dragover .dz-ico { transform: scale(1.2) rotate(-8deg); }
.dz-t1 { font: 700 15px var(--font); }
.dz-t2 { font: 500 13px var(--font); color: var(--muted); margin-top: 4px; }
.dz-preview { width: 100%; max-height: 260px; object-fit: cover; display: block; animation: photoIn .6s both; }
.dz-clear {
  position: absolute; top: 10px; right: 10px; width: 32px; height: 32px; border-radius: 50%;
  border: 1px solid var(--border); background: rgba(13,10,8,.7); color: var(--text);
  cursor: pointer; font-size: 14px;
  transition: transform .3s, background .3s;
}
.dz-clear:hover { transform: rotate(90deg); background: rgba(255, 94, 94, 0.3); }
.form-error {
  padding: 13px 16px; border-radius: 12px;
  background: rgba(255, 94, 94, 0.09); border: 1px solid rgba(255, 94, 94, 0.3);
  color: #ffb3b3; font: 600 14px var(--font);
  animation: shake .5s;
}
@keyframes shake { 0%,100% { transform: none; } 25% { transform: translateX(-7px); } 50% { transform: translateX(6px); } 75% { transform: translateX(-3px); } }
.btn-submit {
  background: var(--grad); color: #221204; font: 800 15px var(--font);
  padding: 16px; position: relative; overflow: hidden;
  box-shadow: 0 10px 30px rgba(255, 122, 47, 0.35);
}
.btn-submit:hover { transform: translateY(-2px); box-shadow: 0 14px 40px rgba(255, 122, 47, 0.5); }
.btn-submit:disabled { opacity: .7; cursor: wait; transform: none; }
.btn-loader {
  display: none; width: 19px; height: 19px; border-radius: 50%;
  border: 2.5px solid rgba(34, 18, 4, 0.3); border-top-color: #221204;
  animation: spin .7s linear infinite; vertical-align: -4px; margin-left: 10px;
}
.btn-submit.loading .btn-loader { display: inline-block; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- тосты и конфетти ---------- */
.toasts { position: fixed; bottom: calc(26px + env(safe-area-inset-bottom, 0px)); left: 50%; transform: translateX(-50%); z-index: 200; display: flex; flex-direction: column; gap: 10px; align-items: center; }
.toast {
  display: flex; align-items: center; gap: 10px;
  background: rgba(22, 16, 11, 0.9); -webkit-backdrop-filter: blur(14px);  backdrop-filter: blur(14px);
  border: 1px solid rgba(255, 179, 71, 0.3); border-radius: 100px;
  padding: 13px 22px; font: 700 14px var(--font);
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.5), 0 0 30px rgba(255, 122, 47, 0.12);
  animation: toastIn .5s cubic-bezier(.34,1.56,.64,1) both;
}
.toast.bye { animation: toastOut .4s both; }
@keyframes toastIn { from { opacity: 0; transform: translateY(26px) scale(.85); } to { opacity: 1; transform: none; } }
@keyframes toastOut { to { opacity: 0; transform: translateY(18px) scale(.9); } }
#confetti { position: fixed; inset: 0; pointer-events: none; z-index: 300; }

/* ---------- футер ---------- */
.footer {
  border-top: 1px solid var(--border);
  padding: 34px 24px 44px; text-align: center;
  font: 600 13.5px var(--font); color: var(--muted);
}
.footer-dim { margin-top: 6px; opacity: .5; font-weight: 500; font-size: 12px; }
.heart { color: var(--pink); display: inline-block; animation: beat 1.4s ease-in-out infinite; }
@keyframes beat { 0%,100% { transform: scale(1); } 12% { transform: scale(1.3); } 24% { transform: scale(1); } }

/* ---------- адаптив ---------- */
@media (max-width: 860px) {
  .sheet-cols { grid-template-columns: 1fr; gap: 26px; }
  .filters { top: 66px; }
  .found { display: none; }
}
@media (max-width: 640px) {
  /* hero: каждое слово — своя строка, никаких переносов посреди слова */
  .hero-title .w { display: block; margin: .05em 0; }
  .topbar-in { flex-wrap: wrap; gap: 10px; padding: 0 16px; }
  .search-wrap { order: 3; flex-basis: 100%; max-width: none; }
  .btn-add-txt { display: none; }
  .btn-add { padding: 12px 14px; border-radius: 12px; }
  .hero { padding-top: 6vh; }
  main { padding: 10px 16px 70px; }
  .grid, .grid-skeleton { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 14px; }
  .card { border-radius: 16px; }
  .card-body { padding: 12px 13px 14px; }
  .card-title { font-size: 14px; }
  .sheet-body { padding: 22px 20px 30px; }
  .hero-scroll { display: none; }
  #searchHint { display: none; }
}
.sheet { -webkit-overflow-scrolling: touch; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
