/* ═══ Гусь Знает v26 — жизненные ситуации: карточки, страница пути, блок на главной, «Сохранённое» ═══
   После v25.css, на токенах v23 (--gk-*). */

/* ── Шапка: пятый пункт меню. На ноутбуке (до 1240 px) видно «Ситуации», экранный диктор читает полное название ── */
.gk-nav__short { display: none; }
@media (max-width: 1240px) {
  .gk-nav__full { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; }
  .gk-nav__short { display: inline; }
}

/* ── Карточка ситуации ─────────────────────────────────────────────────── */
.sc-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
@media (max-width: 1100px) { .sc-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .sc-grid { grid-template-columns: minmax(0, 1fr); gap: 12px; } }
.sc { position: relative; display: flex; flex-direction: column; gap: 10px; min-height: 212px; padding: 22px 24px; border: 1px solid var(--gk-line);
  border-radius: var(--gk-r-card); background: #fff; transition: border-color .15s; }
@media (hover: hover) { .sc:hover { border-color: var(--gk-accent-line); } }
.sc:focus-within { border-color: var(--gk-accent-line); }
.sc.lc--skel { border: 0; }
.sc-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.sc-title { margin: 4px 0 0; font: 700 19px/1.3 var(--gk-font-h); letter-spacing: -.005em; }
.sc-title a { color: var(--gk-ink); text-decoration: none; }
.sc-title a::after { content: ''; position: absolute; inset: 0; border-radius: var(--gk-r-card); }      /* вся карточка — ссылка */
.sc-title a:focus-visible { outline: none; }
.sc-title a:focus-visible::after { outline: 3px solid var(--gk-coral); outline-offset: 2px; }
.sc-labels { margin: 0; font-size: 15px; line-height: 1.5; color: var(--gk-muted); }
.sc-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: auto; padding-top: 6px; }
.sc-go { display: inline-flex; align-items: center; gap: 4px; font: 600 15px var(--gk-font-b); color: var(--gk-coral-ink); }
.sc-go .gi { width: 18px; height: 18px; }
.hp-sit__lead { max-width: 760px; margin: -8px 0 20px; }

/* ── Список ситуаций ───────────────────────────────────────────────────── */
.sl-head { display: grid; gap: 12px; max-width: 820px; margin-bottom: 28px; }

/* ── Страница ситуации ─────────────────────────────────────────────────── */
.st-head { display: grid; gap: 12px; max-width: 820px; margin-bottom: 32px; }
.st-head--skel span { display: block; height: 28px; border-radius: 8px; }
.st-head--skel span:last-child { height: 56px; max-width: 560px; }
.st-grid { display: grid; grid-template-columns: minmax(0, 8fr) minmax(0, 4fr); gap: 48px; align-items: start; }
@media (max-width: 960px) { .st-grid { grid-template-columns: minmax(0, 1fr); gap: 32px; } }
.st-main { display: grid; gap: 32px; min-width: 0; }

.st-q { display: grid; gap: 18px; padding: 22px 24px; border-radius: var(--gk-r-block); background: var(--gk-surface); }
.st-q__list { display: flex; flex-wrap: wrap; gap: 20px 40px; }
.st-q__item { display: grid; gap: 8px; align-content: start; max-width: 340px; }
.st-q__text { font-size: 15px; line-height: 1.45; color: var(--gk-ink); font-weight: 500; }
.st-q__hint { font-size: 14px; line-height: 1.45; color: var(--gk-faint); }
.st-yn { display: inline-grid; grid-template-columns: 1fr 1fr; width: 220px; max-width: 100%; padding: 4px; gap: 4px; border-radius: 999px;
  background: #fff; box-shadow: inset 0 0 0 1px var(--gk-line-2); }
.st-yn button { min-height: 40px; border: 0; border-radius: 999px; background: transparent; font: 500 15px var(--gk-font-b); color: var(--gk-muted); cursor: pointer; }
.st-yn button.is-on { background: var(--gk-coral-strong); color: #fff; }
.st-yn button:focus-visible { outline: 3px solid var(--gk-coral); outline-offset: 1px; }
@media (hover: hover) { .st-yn button:not(.is-on):hover { color: var(--gk-ink); background: var(--gk-surface); } }

.st-path__head h2:focus:not(:focus-visible) { outline: none; }      /* фокус сюда ставит «Начать заново» */
.st-path__head { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; margin-bottom: 12px; }
.st-bar { height: 8px; margin-bottom: 28px; border-radius: 8px; background: var(--gk-line); overflow: hidden; }
.st-bar span { display: block; height: 100%; border-radius: 8px; background: var(--gk-sage); transition: width .25s ease; }
@media (prefers-reduced-motion: reduce) { .st-bar span { transition: none; } }

.st-steps { list-style: none; margin: 0; padding: 0; display: grid; }
.st-step { position: relative; display: grid; grid-template-columns: 40px minmax(0, 1fr); gap: 18px; padding-bottom: 28px; }
.st-step:not(:last-child)::before { content: ''; position: absolute; left: 19px; top: 44px; bottom: 4px; width: 2px; background: var(--gk-line); }
.st-step__num { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; border: 2px solid var(--gk-line-2); background: #fff;
  font: 700 16px var(--gk-font-h); color: var(--gk-muted); }
.st-step__num .gi { width: 20px; height: 20px; }
.st-step.is-current .st-step__num { border-color: var(--gk-coral-strong); background: var(--gk-coral-strong); color: #fff; }
.st-step.is-done .st-step__num { border-color: var(--gk-sage); background: var(--gk-sage); color: #fff; }
.st-step.is-done::before { background: var(--gk-sage); }
.st-step__body { display: grid; gap: 8px; min-width: 0; padding-top: 6px; }
.st-step.is-current .st-step__body { padding: 16px 18px 18px; margin-top: -10px; border: 1px solid var(--gk-accent-line); border-radius: var(--gk-r-l); background: var(--gk-accent-tint); }
.st-step__next { margin: 0; font: 600 13px/1.4 var(--gk-font-b); letter-spacing: .06em; text-transform: uppercase; color: var(--gk-coral-ink); }
.st-step__cond { margin: 0; font-size: 14px; color: var(--gk-faint); }
.st-step__title { margin: 0; font: 700 19px/1.3 var(--gk-font-h); letter-spacing: -.005em; }
.st-step__title a { color: var(--gk-ink); text-decoration: none; }
.st-step__title a:focus-visible { outline: 3px solid var(--gk-coral); outline-offset: 2px; border-radius: 4px; }
@media (hover: hover) { .st-step__title a:hover { text-decoration: underline; text-underline-offset: 3px; } }
.st-step.is-done .st-step__title a { color: var(--gk-muted); }
.st-step__text { margin: 0; font-size: 15px; line-height: 1.55; color: var(--gk-muted); }
.st-step__note { display: flex; gap: 8px; margin: 0; font-size: 14px; line-height: 1.5; color: var(--gk-muted); }
.st-step__note .gi { flex: none; width: 18px; height: 18px; margin-top: 1px; color: var(--gk-faint); }
.st-step__meta { display: flex; flex-wrap: wrap; gap: 8px; }
.st-step.is-current .lc-badge { background: #fff; }
.st-step__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 20px; margin-top: 4px; }
.st-done { min-height: 44px; font-weight: 500; }
.st-step__alt { margin: 0; font-size: 15px; line-height: 1.5; color: var(--gk-muted); }
.st-step__alt a, .st-side .g-small a { color: var(--gk-coral-ink); text-decoration: underline; text-underline-offset: 2px; }   /* ссылка в тексте — не только цветом */
.st-reset { margin-left: 46px; }
@media (max-width: 480px) {
  .st-step { grid-template-columns: 32px minmax(0, 1fr); gap: 12px; }
  .st-step__num { width: 32px; height: 32px; font-size: 14px; }
  .st-step:not(:last-child)::before { left: 15px; top: 36px; }
  .st-step.is-current .st-step__body { padding: 14px; margin-top: -8px; }
  .st-reset { margin-left: 38px; }
}

.st-side { display: grid; gap: 16px; position: sticky; top: calc(var(--gk-header-h) + 24px); }
@media (max-width: 960px) { .st-side { position: static; } }
.st-card { display: grid; gap: 12px; padding: 22px 24px; border: 1px solid var(--gk-line); border-radius: var(--gk-r-block); background: #fff; }
.st-card__head { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.st-card .g-btn { width: 100%; white-space: normal; text-align: center; }      /* узкий телефон: подпись переносится, а не раздвигает экран */
.st-side { min-width: 0; }
@media (max-width: 400px) { .st-card, .st-q { padding: 18px; } }
.st-card .gk-save-btn { position: static; display: inline-flex; width: 100%; height: auto; min-height: 48px; margin: 0;
  border: 1px solid var(--gk-field-line); background: #fff; color: var(--gk-ink); }
.st-card .gk-save-btn .gi { width: 20px; height: 20px; }
@media (hover: hover) { .st-card .gk-save-btn:hover { border-color: var(--gk-ink); background: #fff; } }
.st-card .gk-save-btn.is-on { color: var(--gk-coral-ink); border-color: var(--gk-accent-line); background: var(--gk-accent-tint); }
.st-caption { margin: 0; font-size: 14px; line-height: 1.5; color: var(--gk-faint); }
.g-badge--pro { min-height: 26px; padding: 2px 10px; border-color: transparent; background: var(--gk-coral-strong); color: #fff; font-weight: 600; font-size: 13px; }

.st-more { margin-top: 72px; }
.st-more > .g-h3 { margin-bottom: 20px; }
@media (max-width: 640px) { .st-more { margin-top: 48px; } }

/* ── «Сохранённое»: ситуации и инструкции отдельными блоками ───────────── */
.sv-sec + .sv-sec { margin-top: 36px; }
.sv-sec > .g-h3 { margin-bottom: 16px; }
