/* Crème v3.6 — книга шефов и удобство готовки в стиле домашней тетради:
   продукты к шагу (как на полях), сложность, посуда, каталог-картотека. */

/* ---------- Продукты к шагу: карандашная пометка на полях ---------- */
.steps li > .step-ings { grid-column: 2; }
.steps .step-ings li { counter-increment: none; display: block; margin: 0; }
.steps .step-ings li::before { content: none; display: none; }
.step-ings { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; margin: 2px 0 0; padding: 0; }
.step-ings li { font-size: 12.5px; line-height: 1.35; padding: 3px 9px; border-radius: 999px; background: #fffaf1; border: 1px dashed #cdb89c; color: var(--cocoa-dark); }
.step-ings .step-ings-label { background: none; border: 0; padding: 3px 2px 3px 0; font: 400 16px/1.1 var(--font-hand); color: var(--strawberry-dark); }
.cook-step-ings { margin: 4px 0 14px; }
.cook-step-ings li { font-size: 15px; padding: 6px 12px; }
.cook-step-ings .step-ings-label { font-size: 20px; }

/* ---------- «Из домашних запасов» ---------- */
.ing-pantry-heading { margin-top: 14px; padding-top: 10px; border-top: 1px dashed var(--border); font-weight: 600; }
.ing-pantry-heading small { font-weight: 400; color: var(--muted); margin-left: 4px; }
.ing-home { font-size: 11px; color: var(--sage-dark); border: 1px solid #c9d4b8; border-radius: 999px; padding: 0 6px; margin-left: 4px; }

/* ---------- Сложность и посуда ---------- */
.fact-difficulty .icon { color: var(--sage-dark); }
.fact-hard .icon { color: var(--strawberry); }
.recipe-equipment { margin-top: 14px; padding: 12px 14px; border-radius: 10px; background: #fbf4e6; border: 1px solid #eadcc6; }
.recipe-equipment h3 { display: flex; align-items: center; gap: 8px; margin: 0 0 6px; font: 600 14px/1.3 var(--font-ui); color: var(--cocoa-dark); }
.recipe-equipment ul, .cook-equipment ul { list-style: none; display: flex; flex-wrap: wrap; gap: 6px 14px; margin: 0; padding: 0; font-size: 13.5px; color: var(--ink); }
.recipe-equipment li::before, .cook-equipment li::before { content: '·'; margin-right: 6px; color: var(--kraft); font-weight: 700; }
.cook-equipment { margin: 14px 0 6px; padding-top: 12px; border-top: 1px dashed var(--border); }
.cook-equipment ul { font-size: 15px; }

/* ---------- Каталог: шапка и фильтры ---------- */
.chefs-hero { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; padding: 26px 30px; margin-bottom: 18px; }
.chefs-hero .lead { margin-bottom: 0; }
.chefs-hero-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; flex: none; font-size: 14px; color: var(--muted); }
.chefs-hero-list b { font: 600 22px/1 var(--font-book); color: var(--cocoa-dark); margin-right: 6px; }
.chefs-filters { display: grid; gap: 10px; margin: 0 0 18px; }
.chefs-search { display: flex; align-items: center; gap: 8px; max-width: 520px; padding: 0 14px; min-height: 46px; border-radius: 999px; background: var(--paper-light); border: 1px solid var(--border); color: var(--muted); }
.chefs-search input { flex: 1; min-width: 0; border: 0; background: none; outline: none; font-size: 15px; color: var(--ink); }
.chefs-search:focus-within { outline: 3px solid var(--focus); outline-offset: 2px; }
.chefs-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chefs-chips button { min-height: 38px; padding: 4px 14px; border-radius: 999px; border: 1px solid var(--border); background: var(--paper-light); font-size: 13.5px; font-weight: 600; color: var(--cocoa-dark); }
.chefs-chips button:first-child { color: var(--muted); }
.chefs-chips button[aria-pressed="true"] { background: var(--cocoa); border-color: var(--cocoa); color: #fff; }
.chefs-summary { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; margin: 0 0 14px; color: var(--muted); }
.chefs-summary p { margin: 0; }

/* ---------- Каталог: карточки-картотека ---------- */
.chefs-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 26px 20px; padding-top: 10px; }
.chef-card { position: relative; display: flex; flex-direction: column; padding: 20px 18px 14px; border-radius: 4px; background: repeating-linear-gradient(transparent 0 27px, #e9dccb 27px 28px) 0 64px / 100% calc(100% - 64px) no-repeat, var(--paper-light); border: 1px solid #e6d8c4; box-shadow: var(--shadow-sm); transform: rotate(var(--tilt, 0deg)); transition: transform .2s, box-shadow .2s; }
.chef-card:hover, .chef-card:focus-within { transform: rotate(0) translateY(-3px); box-shadow: var(--shadow); }
.chef-card .tape { position: absolute; top: -9px; left: 50%; width: 58px; height: 19px; transform: translateX(-50%); background: var(--tape); opacity: .78; clip-path: polygon(3% 0, 97% 4%, 100% 50%, 96% 100%, 2% 96%, 0 50%); }
.chef-card-chef { margin: 0 0 4px; font: 400 18px/1.2 var(--font-hand); color: var(--strawberry-dark); }
.chef-card h3 { margin: 0 0 8px; font: 600 17px/1.3 var(--font-book); }
.chef-card h3 a { text-decoration: none; }
.chef-card h3 a::after { content: ''; position: absolute; inset: 0; }
.chef-card-meta { display: flex; flex-wrap: wrap; gap: 4px 10px; margin: 0 0 8px; font-size: 12px; font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: .03em; }
.chef-card-note { flex: 1; margin: 0 0 12px; font-size: 13.5px; line-height: 28px; color: var(--ink); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.chef-card-foot { position: relative; z-index: 1; display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.chef-card-owned { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 600; color: var(--sage-dark); text-decoration: none; }
.chef-card-owned .icon { width: 16px; height: 16px; }

.chef-faves-actions { display: grid; gap: 8px; flex-shrink: 0; }
.chef-faves-actions .btn { white-space: normal; line-height: 1.4; }

@media (max-width: 750px) {
  .chefs-hero { flex-direction: column; align-items: stretch; padding: 20px 18px; }
  .chefs-hero-list { display: flex; flex-wrap: wrap; gap: 6px 16px; }
  .chefs-chips { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin: 0 -16px; padding: 2px 16px; }
  .chefs-chips button { flex: none; }
  .chefs-grid { grid-template-columns: 1fr; }
  .chef-card { transform: none; }
  .chef-faves-actions { width: 100%; }
}
@media (prefers-reduced-motion: reduce) { .chef-card { transition: none; } }
@media print { .step-ings { display: none; } }

/* ---------- v3.7: обложка ролика вместо пустой заглушки шага (как постер трейлера) ---------- */
.step-video-poster { position: relative; display: block; width: 100%; aspect-ratio: 16 / 9; padding: 0; border: 0; border-radius: inherit; overflow: hidden; background: #2b211c; cursor: pointer; }
.step-video-poster img { width: 100%; height: 100%; object-fit: cover; opacity: .9; transition: opacity .2s, transform .3s; }
.step-video-poster:hover img, .step-video-poster:focus-visible img { opacity: 1; transform: scale(1.02); }
.step-video-poster .play-disc { position: absolute; inset: 50% auto auto 50%; transform: translate(-50%, -50%); display: grid; place-items: center; width: 64px; height: 64px; border-radius: 50%; background: #fffbf3eb; color: var(--cocoa-dark); box-shadow: 0 6px 18px #0000004d; }
.step-video-poster .play-disc .icon { width: 26px; height: 26px; fill: currentColor; stroke: none; margin-left: 3px; }
.step-video-poster small { position: absolute; right: 10px; bottom: 10px; padding: 3px 9px; border-radius: 999px; background: #000000a6; color: #fff; font-size: 12px; font-weight: 600; }
@media (prefers-reduced-motion: reduce) { .step-video-poster img { transition: none; } }
