/* Справка «Как работать» (GuidesController): колонка текста со скриншотами. Токены — из application.css. */
.guide { max-width: 760px; margin: 0 auto; padding-bottom: 48px; line-height: 1.6; }
.guide h1 { margin-bottom: 8px; }
.guide h2 { margin-top: 36px; }
.guide-head { margin-bottom: 24px; }
.guide-crumbs { font-size: 13px; color: var(--ink-2); margin-bottom: 8px; }
.guide-toc { list-style: none; padding: 0; counter-reset: step; display: grid; gap: 8px; }
.guide-toc li { counter-increment: step; }
.guide-toc a { display: grid; grid-template-columns: 32px 1fr; column-gap: 12px; padding: 14px 16px; border: 1px solid var(--line); border-radius: 12px; background: var(--panel); color: inherit; text-decoration: none; }
.guide-toc a::before { content: counter(step); grid-row: span 2; display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: var(--column); font-weight: 600; }
.guide-toc a:hover b { text-decoration: underline; }
.guide-toc span { color: var(--ink-2); font-size: 14px; }
.guide ol.steps { padding-left: 22px; }
.guide ol.steps li { margin: 6px 0; }
.guide figure { margin: 16px 0 24px; }
.guide figure img { display: block; width: 100%; height: auto; border: 1px solid var(--line); border-radius: 12px; }
.guide figcaption { font-size: 13px; color: var(--ink-2); margin-top: 6px; }
.guide .tip { padding: 12px 16px; border-left: 3px solid var(--acc); background: var(--panel); border-radius: 0 8px 8px 0; margin: 16px 0; }
.guide-pager { display: flex; justify-content: space-between; gap: 16px; margin-top: 40px; padding-top: 16px; border-top: 1px solid var(--line); }
.guide-pager .next { margin-left: auto; }

/* Обзор (index) */
.guide--wide { max-width: 960px; }
.ov-lead { font-size: 17px; color: var(--ink-2); max-width: 640px; margin: 0; }
.ov-hero figure { margin-top: var(--s-6); }
.ov-hero figure img { box-shadow: var(--sh-card); }
.ov-cards { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s-4); }
.ov-card { display: grid; gap: var(--s-2); align-content: start; height: 100%; box-sizing: border-box; padding-bottom: var(--s-4); overflow: hidden; border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--panel); color: inherit; text-decoration: none; }
.ov-card img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 10; object-fit: cover; object-position: left top; border-bottom: 1px solid var(--line); margin-bottom: var(--s-2); }
.ov-card b { font-size: 17px; padding: 0 var(--s-4); }
.ov-card span { color: var(--ink-2); font-size: 14px; padding: 0 var(--s-4); }
.ov-card .ov-more { color: var(--acc); font-weight: 600; margin-top: var(--s-1); }
.ov-card:hover { border-color: var(--edge-2); }
.ov-card:hover .ov-more { text-decoration: underline; }
.ov-card:focus-visible { outline: 2px solid var(--acc); outline-offset: 2px; }

.ov-formula { display: grid; gap: var(--s-3); padding: var(--s-5); border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--panel); margin: var(--s-4) 0; }
.ov-eq { display: flex; flex-wrap: wrap; align-items: baseline; gap: var(--s-2) var(--s-3); margin: 0; font-size: 20px; font-weight: 600; }
.ov-eq i { font-style: normal; font-weight: 300; color: var(--ink-3); }
.ov-eq-res { color: var(--acc); }
.ov-bar { display: flex; height: 14px; border-radius: 7px; overflow: hidden; gap: 2px; }
.ov-bar .g-deals { flex: 40; background: var(--grp-deals); }
.ov-bar .g-tax { flex: 14; background: var(--grp-tax); }
.ov-bar .g-pay { flex: 12; background: var(--grp-pay); }
.ov-bar .g-held { flex: 8; background: var(--grp-held); }
.ov-bar .g-free { flex: 26; background: var(--acc); }
.ov-legend { display: flex; flex-wrap: wrap; gap: var(--s-1) var(--s-4); list-style: none; padding: 0; margin: 0; font-size: 13px; color: var(--ink-2); }
.ov-legend li { display: flex; align-items: center; gap: 6px; }
.ov-legend li::before { content: ""; width: 10px; height: 10px; border-radius: 3px; background: var(--grp-held); }
.ov-legend .g-deals::before { background: var(--grp-deals); }
.ov-legend .g-tax::before { background: var(--grp-tax); }
.ov-legend .g-pay::before { background: var(--grp-pay); }
.ov-legend .g-free::before { background: var(--acc); }
.ov-legend .g-free { color: var(--acc); font-weight: 600; }
.ov-points { padding-left: 20px; }
.ov-points li { margin: var(--s-2) 0; }
.guide--wide section > p, .ov-points, .ov-note { max-width: 720px; }
.ov-note { margin-top: var(--s-8); padding-top: var(--s-4); border-top: 1px solid var(--line); font-size: 14px; }

@media (max-width: 760px) {
  .ov-cards { grid-template-columns: 1fr; }
  .ov-lead { font-size: 15px; }
  .ov-eq { font-size: 15px; column-gap: var(--s-2); }
  .ov-formula { padding: var(--s-4); }
}
