/* ===== «100 женских историй» (/workshop.html) — стили только этой страницы, префикс .st- =====
   Система: design/elaya.css (Manrope, вес до 600, без курсива, плоские фоны, один акцент var(--accent),
   карточки — только фон var(--surface), шкала Tailwind для шрифтов и радиусов, отступы 4/8/12/16/24/32/48/64/80/96,
   переходы cubic-bezier(.22,1,.36,1) 300–500 мс). */

html { scrollbar-gutter: stable; }
html.st-lock, html.st-lock body { overflow: hidden; }

/* ---------- первый экран ---------- */
.st-hero { padding: 64px 0 48px; background: var(--bg); }
.st-hero__grid { display: grid; grid-template-columns: minmax(0, 1fr) 384px; gap: 64px; align-items: end; }
.st-hero h1 { font-size: 60px; line-height: 60px; margin: 0 0 24px; }   /* гарнитуру и вес задаёт общий слой (elaya / editorial) */
.st-hero .lead { margin: 0 0 32px; }
.st-note { margin: 16px 0 0; max-width: 680px; font: 400 14px/20px var(--font); color: var(--ash); }
.st-note span { color: var(--accent); margin-right: 4px; }

/* поиск */
.st-search { position: relative; display: flex; align-items: center; gap: 8px; background: var(--surface); border-radius: var(--r-lg);
  transition: background-color .3s var(--ease), box-shadow .3s var(--ease); }
.st-search__i { position: absolute; left: 16px; top: 50%; transform: translateY(-50%); color: var(--ash); pointer-events: none; }
.st-search input { flex: 1; min-width: 0; height: 48px; border: 0; background: transparent; font: 400 16px/24px var(--font); color: var(--ink);
  padding: 12px 16px 12px 48px; border-radius: inherit; outline: none; -webkit-appearance: none; appearance: none; }
.st-search input::placeholder { color: var(--ash); opacity: 1; }
.st-search:hover { background: var(--surface-2); }
.st-search:focus-within { background: var(--bg); box-shadow: 0 0 0 2px var(--accent); }
.st-search--lg { max-width: 680px; padding: 4px; border-radius: var(--r-xl); }
.st-search--lg .st-search__i { left: 20px; }
.st-search--lg input { padding-left: 48px; }
.st-search--lg .btn { flex: none; border-radius: var(--r-lg); padding: 8px 16px; min-height: 48px; }
.st-search--bar { flex: none; width: 288px; }
.st-search--bar input { height: 40px; padding-top: 8px; padding-bottom: 8px; font-size: 14px; line-height: 20px; }

/* карточка «как устроена история» */
.st-guide { background: var(--surface); border-radius: var(--r-3xl); padding: 32px; }
.st-guide__h { margin: 0 0 16px; font: 600 12px/16px var(--font); letter-spacing: .02em; color: var(--accent); }
.st-guide__list { list-style: none; margin: 0 0 32px; padding: 0; display: grid; gap: 16px; }
.st-guide__list li { display: grid; grid-template-columns: 32px minmax(0, 1fr); column-gap: 12px; margin: 0; }
.st-guide__list span { grid-row: span 2; display: inline-flex; align-items: center; justify-content: center; width: 32px; height: 32px;
  border-radius: var(--r-full); background: var(--bg); font: 600 12px/16px var(--font); color: var(--accent); }
.st-guide__list b { font: 600 18px/28px var(--font); color: var(--ink); }
.st-guide__list small { font: 400 14px/20px var(--font); color: var(--ash); }
.st-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin: 0; padding: 24px 0 0; border-top: 1px solid var(--surface-2); }
.st-stats div { display: flex; flex-direction: column-reverse; justify-content: flex-end; }
.st-stats dd { margin: 0; font: 600 30px/36px var(--font); letter-spacing: -.03em; color: var(--ink); }
.st-stats dt { font: 400 12px/16px var(--font); color: var(--ash); }

/* ---------- липкая панель фильтров ---------- */
.st-cat { position: relative; padding: 0 0 96px; }
.st-sentinel { height: 1px; }
.st-bar { position: sticky; top: 72px; z-index: 40; padding: 12px 0; background: var(--bg);
  transition: background-color .3s var(--ease), box-shadow .3s var(--ease); }
.st-bar::before { content: ""; position: absolute; left: 0; right: 0; bottom: 100%; height: 72px; background: inherit; opacity: 0;
  pointer-events: none; transition: opacity .3s var(--ease); }
.st-bar.is-stuck { background: rgba(255, 255, 255, .9); -webkit-backdrop-filter: blur(16px) saturate(1.4); backdrop-filter: blur(16px) saturate(1.4);
  box-shadow: 0 1px 0 var(--surface-2); }
.st-bar.is-stuck::before { opacity: 1; -webkit-backdrop-filter: blur(16px) saturate(1.4); backdrop-filter: blur(16px) saturate(1.4); }
.st-bar__in { display: flex; align-items: center; gap: 16px; }
.st-chipsbox { position: relative; flex: 1; min-width: 0; }
.st-chips { display: flex; flex-wrap: nowrap; gap: 8px; overflow-x: auto; scrollbar-width: none; overscroll-behavior-x: contain; }
.st-chips::-webkit-scrollbar { display: none; }
.st-chipsbox.can-r .st-chips { -webkit-mask-image: linear-gradient(90deg, #000 calc(100% - 64px), transparent); mask-image: linear-gradient(90deg, #000 calc(100% - 64px), transparent); }
.st-chipsbox.can-l .st-chips { -webkit-mask-image: linear-gradient(90deg, transparent, #000 64px); mask-image: linear-gradient(90deg, transparent, #000 64px); }
.st-chipsbox.can-l.can-r .st-chips { -webkit-mask-image: linear-gradient(90deg, transparent, #000 64px, #000 calc(100% - 64px), transparent); mask-image: linear-gradient(90deg, transparent, #000 64px, #000 calc(100% - 64px), transparent); }
.st-chipsbox__arr { position: absolute; top: 4px; z-index: 1; opacity: 0; visibility: hidden; box-shadow: 0 0 0 4px var(--bg); }
.st-chipsbox__arr--l { left: 0; }
.st-chipsbox__arr--r { right: 0; }
.st-chipsbox.can-l .st-chipsbox__arr--l, .st-chipsbox.can-r .st-chipsbox__arr--r { opacity: 1; visibility: visible; }
.st-ib.st-ib--sm { width: 32px; height: 32px; border-radius: var(--r-full); background: var(--ink); color: #fff; }
.st-ib.st-ib--sm:hover { background: var(--action-hover); }
.st-grid.is-js { columns: auto; display: flex; align-items: flex-start; gap: 16px; }
.st-col { flex: 1; min-width: 0; }
.st-chip { display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 8px 12px; border: 0; border-radius: var(--r-full);
  background: var(--surface); color: var(--stone); font: 500 14px/20px var(--font); white-space: nowrap; cursor: pointer;
  transition: background-color .3s var(--ease), color .3s var(--ease), transform .5s var(--ease); }
.st-chip span { font: 500 12px/16px var(--font); color: var(--ash); transition: color .3s var(--ease); }
.st-chip:hover { background: var(--surface-2); color: var(--ink); }
.st-chip:active { transform: scale(.98); }
.st-chip:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: var(--r-full); }
.st-chip.is-on { background: var(--ink); color: #fff; }
.st-chip.is-on span { color: #d6d3d1; }

/* ---------- каталог ---------- */
.st-count { margin: 24px 0 16px; font: 500 14px/20px var(--font); color: var(--ash); }
.st-grid { columns: 3; column-gap: 16px; }
.st-card { display: flex; flex-direction: column; gap: 12px; break-inside: avoid; margin: 0 0 16px; padding: 24px; background: var(--surface);
  border-radius: var(--r-3xl); color: var(--stone); text-decoration: none; cursor: pointer;
  transition: transform .5s var(--ease), background-color .3s var(--ease); }
.st-card[hidden] { display: none; }
.st-card:hover { background: var(--surface-2); transform: translateY(-2px); color: var(--stone); }
.st-card:active { transform: scale(.98); }
.st-card:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: var(--r-3xl); }
.st-card__top { display: flex; align-items: center; justify-content: space-between; gap: 8px; min-height: 24px; }
.st-card__n { font: 600 12px/16px var(--font); letter-spacing: .02em; color: var(--accent); }
.st-card__res { padding: 4px 8px; border-radius: var(--r-full); background: var(--accent-soft); font: 500 12px/16px var(--font); color: var(--accent); }
.st-card__t { font: 600 20px/28px var(--font); letter-spacing: -.01em; color: var(--ink); text-wrap: balance; }
.st-card__s { font: 400 16px/24px var(--font); color: var(--stone); text-wrap: pretty; }
.st-card__q { padding: 12px 16px; border-radius: var(--r-lg); background: var(--bg); font: 500 14px/20px var(--font); color: var(--ink); text-wrap: pretty; }
.st-card__tags { display: flex; flex-wrap: wrap; gap: 4px; }
.st-card__tags span { padding: 4px 8px; border-radius: var(--r-md); background: var(--bg); font: 500 12px/16px var(--font); color: var(--stone); }
.st-card__progs { display: flex; flex-direction: column; gap: 4px; padding-top: 12px; border-top: 1px solid rgba(12, 10, 9, .08); }
.st-card__ph { font: 600 12px/16px var(--font); color: var(--ash); }
.st-card__p { font: 500 14px/20px var(--font); color: var(--ink); }
.st-card__p::before { content: ""; display: inline-block; width: 4px; height: 4px; margin: 0 8px 4px 0; border-radius: var(--r-full); background: var(--accent); vertical-align: middle; }
.st-card__go { display: inline-flex; align-items: center; gap: 8px; font: 600 14px/20px var(--font); color: var(--ink); }
.st-card__go svg { transition: transform .5s var(--ease); }
.st-card:hover .st-card__go svg { transform: translateX(4px); }

/* пустое состояние */
.st-empty { padding: 64px 32px; border-radius: var(--r-3xl); background: var(--surface); text-align: center; }
.st-empty[hidden] { display: none; }
.st-empty__h { margin: 0 0 12px; font: 600 24px/32px var(--font); letter-spacing: -.02em; color: var(--ink); text-wrap: balance; }
.st-empty__t { max-width: 480px; margin: 0 auto 24px; font: 400 16px/24px var(--font); color: var(--ash); }
.st-empty__b { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }

/* ---------- боковая панель с историей ---------- */
.st-scrim { position: fixed; inset: 0; z-index: 96; background: rgba(12, 10, 9, .32); opacity: 0; visibility: hidden;
  transition: opacity .5s var(--ease), visibility .5s; }
.st-open .st-scrim { opacity: 1; visibility: visible; }
.st-panel:focus, .st-panel:focus-visible { outline: none; }
.st-panel { position: fixed; top: 0; right: 0; bottom: 0; z-index: 97; display: flex; flex-direction: column; width: min(720px, 100%);
  background: var(--bg); border-radius: var(--r-3xl) 0 0 var(--r-3xl); outline: none; overflow: hidden;
  transform: translateX(100%); visibility: hidden; transition: transform .5s var(--ease), visibility .5s; }
.st-open .st-panel { transform: none; visibility: visible; }
.st-panel__bar { flex: none; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 12px 16px 12px 32px;
  border-bottom: 1px solid var(--surface-2); }
.st-panel__n { font: 600 14px/20px var(--font); color: var(--ash); }
.st-panel__nav { display: flex; gap: 8px; }
.st-ib { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; padding: 0; border: 0; border-radius: var(--r-md);
  background: var(--surface); color: var(--ink); cursor: pointer;
  transition: background-color .3s var(--ease), color .3s var(--ease), transform .5s var(--ease), opacity .3s var(--ease); }
.st-ib:hover { background: var(--surface-2); }
.st-ib:active { transform: scale(.96); }
.st-ib:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: var(--r-md); }
.st-ib:disabled { opacity: .4; cursor: default; transform: none; background: var(--surface); }
.st-ib--close { background: var(--action); color: var(--on-action); }
.st-ib--close:hover { background: var(--action-hover); }
.st-panel__body { flex: 1; overflow-y: auto; overscroll-behavior: contain; -webkit-overflow-scrolling: touch; padding: 32px 32px 48px; }

.st-story[hidden] { display: none; }
.st-story__head { margin: 0 0 32px; }
.st-story__tags { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 16px; }
.st-story__tags span { padding: 4px 8px; border-radius: var(--r-full); background: var(--accent-soft); font: 500 12px/16px var(--font); color: var(--accent); }
.st-story h2 { margin: 0; font-size: 36px; line-height: 40px; color: var(--ink); text-wrap: balance; }   /* гарнитура — из общего слоя заголовков */
.st-story__who { margin: 12px 0 0; font: 500 14px/20px var(--font); color: var(--ash); }

.st-step { margin: 0 0 32px; }
.st-step__h { display: flex; align-items: center; gap: 12px; margin: 0 0 12px; font: 600 20px/28px var(--font); color: var(--ink); }
.st-step__h span { display: inline-flex; flex: none; align-items: center; justify-content: center; width: 32px; height: 32px; border-radius: var(--r-full);
  background: var(--accent-soft); font: 600 12px/16px var(--font); color: var(--accent); }
.st-step p:not([class]) { margin: 0 0 12px; font: 400 18px/28px var(--font); color: var(--stone); text-wrap: pretty; }
.st-step strong { font-weight: 600; color: var(--ink); }
.st-step__note { margin: 16px 0 0; padding: 12px 16px; border-radius: var(--r-lg); background: var(--surface); font: 400 14px/20px var(--font); color: var(--ash); }

.st-help { margin: 48px 0 32px; }
.st-help__h { margin: 0 0 16px; font: 600 24px/32px var(--font); letter-spacing: -.02em; color: var(--ink); }
.st-progs { display: grid; gap: 12px; }
.st-prog { padding: 24px; border-radius: var(--r-xl); background: var(--surface); }
.st-prog__t { margin: 0 0 12px; font: 600 18px/28px var(--font); color: var(--ink); }
.st-prog__k { margin: 0 0 4px; font: 600 12px/16px var(--font); color: var(--ash); }
.st-prog__v { margin: 0 0 12px; font: 400 16px/24px var(--font); color: var(--stone); }
.st-prog__a { display: inline-flex; align-items: center; gap: 8px; margin: 0 0 0 -12px; padding: 8px 12px; border-radius: var(--r-md);
  font: 600 14px/20px var(--font); color: var(--ink); text-decoration: none; transition: background-color .3s var(--ease), transform .5s var(--ease); }
.st-prog__a svg { transition: transform .5s var(--ease); }
.st-prog__a:hover { background: var(--bg); color: var(--ink); }
.st-prog__a:hover svg { transform: translateX(4px); }
.st-prog__a:active { transform: scale(.98); }
.st-prog__a:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: var(--r-md); }

.st-pro { margin: 0 0 32px; border-radius: var(--r-xl); background: var(--surface); }
.st-pro summary { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 16px 24px; border-radius: var(--r-xl);
  list-style: none; cursor: pointer; font: 500 16px/24px var(--font); color: var(--ink); transition: background-color .3s var(--ease); }
.st-pro summary::-webkit-details-marker { display: none; }
.st-pro summary:hover { background: var(--surface-2); }
.st-pro summary:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: var(--r-xl); }
.st-pro[open] summary { border-radius: var(--r-xl) var(--r-xl) 0 0; }
.st-pro__i { position: relative; flex: none; width: 16px; height: 16px; }
.st-pro__i::before, .st-pro__i::after { content: ""; position: absolute; left: 0; right: 0; top: 7px; height: 2px; border-radius: 2px; background: var(--ink);
  transition: transform .5s var(--ease); }
.st-pro__i::after { transform: rotate(90deg); }
.st-pro[open] .st-pro__i::after { transform: rotate(0deg); }
.st-pro p { margin: 0; padding: 0 24px 16px; font: 400 14px/20px var(--font); color: var(--stone); }
.st-pro p:first-of-type { padding-top: 12px; }
.st-pro b { font-weight: 600; color: var(--ink); }

.st-cta { padding: 32px; border-radius: var(--r-3xl); background: var(--ink); }
.st-cta__h { margin: 0 0 8px; font: 600 24px/32px var(--font); letter-spacing: -.02em; color: #fff; }
.st-cta__t { margin: 0 0 24px; font: 400 16px/24px var(--font); color: #d6d3d1; }
.st-cta__b { display: flex; flex-wrap: wrap; gap: 12px; }
.st-cta .btn { background: #fff; border-color: #fff; color: var(--ink); }
.st-cta .btn:hover { background: var(--surface-2); border-color: var(--surface-2); color: var(--ink); }
.st-cta .btn--ghost { background: transparent; border-color: rgba(255, 255, 255, .32); color: #fff; }
.st-cta .btn--ghost:hover { background: rgba(255, 255, 255, .08); border-color: rgba(255, 255, 255, .48); color: #fff; }
.st-cta .btn:focus-visible { outline-color: #fff; }

/* ---------- адаптив ---------- */
@media (max-width: 1100px) {
  .st-hero__grid { grid-template-columns: minmax(0, 1fr) 320px; gap: 48px; }
  .st-grid { columns: 2; }
}
@media (max-width: 900px) {
  .st-hero__grid { grid-template-columns: minmax(0, 1fr); gap: 32px; align-items: start; }
  .st-bar__in { flex-direction: column; align-items: stretch; gap: 8px; }
  .st-search--bar { width: auto; }
  .st-chipsbox { margin: 0 -24px; }
  .st-chips { padding: 0 24px; }
  .st-chipsbox__arr { display: none; }   /* на сенсорных экранах листают пальцем */
}
@media (max-width: 760px) {
  .st-hero { padding: 48px 0 32px; }
  .st-hero h1 { font-size: 48px; line-height: 48px; margin-bottom: 16px; }
  .st-hero .lead { margin-bottom: 24px; }
  .st-search--lg .btn { padding: 8px 12px; }
  .st-guide { padding: 24px; }
  .st-stats dd { font-size: 24px; line-height: 32px; }
  .st-grid { columns: 1; }
  .st-cat { padding-bottom: 64px; }
  .st-empty { padding: 48px 24px; }
  .st-panel { width: 100%; border-radius: 0; }
  .st-panel__bar { padding: 8px 8px 8px 16px; }
  .st-panel__body { padding: 24px 16px 48px; }
  .st-story h2 { font-size: 30px; line-height: 36px; }
  .st-step p:not([class]) { font-size: 16px; line-height: 24px; }
  .st-help { margin-top: 32px; }
  .st-help__h { font-size: 20px; line-height: 28px; }
  .st-prog { padding: 16px; }
  .st-pro summary { padding: 16px; }
  .st-pro p { padding-left: 16px; padding-right: 16px; }
  .st-cta { padding: 24px; }
  .st-cta .btn { width: 100%; }
}
@media (max-width: 640px) {
  .st-chipsbox { margin: 0 -16px; }
  .st-chips { padding: 0 16px; }
}

@media (prefers-reduced-motion: reduce) {
  .st-panel { transform: none; opacity: 0; transition: opacity .3s linear, visibility .3s; }
  .st-open .st-panel { opacity: 1; }
  .st-card, .st-chip, .st-ib, .st-prog__a { transition: background-color .3s linear, color .3s linear; }
  .st-card:hover, .st-card:active { transform: none; }
}
