.rows { display: grid; gap: clamp(48px, 6vw, 88px); }
.row { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 28px 24px; align-items: center; }
.row__txt { grid-column: 1 / span 5; display: grid; gap: 16px; justify-items: start; }
.row__img { grid-column: 7 / -1; margin: 0; position: relative; }
.row:nth-child(even) .row__txt { grid-column: 8 / -1; grid-row: 1; }
.row:nth-child(even) .row__img { grid-column: 1 / span 6; grid-row: 1; }
.row__vis { grid-column: 7 / -1; }
.row:nth-child(even) .row__vis { grid-column: 1 / span 6; grid-row: 1; }
.row__n { font-family: var(--f-text); font-weight: 700; font-variant-numeric: tabular-nums; font-size: var(--fs-sm); color: var(--yellow-30); }
.row h2, .row h3 { text-transform: uppercase; font-size: var(--fs-h3-l); line-height: 0.98; text-wrap: balance; }
.row p { color: var(--on-paper-2); max-width: 46ch; }
.row__img img { width: 100%; height: auto; border: 1px solid rgba(20,20,20,0.14); background: #fff; }
/* Dark variant of a single row (resource teaser) */
.row--dark p { color: var(--fg-2); }
.row--dark .row__img img { border-color: var(--line-2); }
.row--dark .row__n { color: var(--yellow); }
@media (max-width: 960px) { .row__txt, .row__img, .row__vis, .row:nth-child(even) .row__txt, .row:nth-child(even) .row__img, .row:nth-child(even) .row__vis { grid-column: 1 / -1; grid-row: auto; } }
.row p a { box-shadow: inset 0 -1px 0 var(--yellow-30); text-decoration: none; }
.row--dark p a { box-shadow: inset 0 -1px 0 var(--yellow); }
.row__txt p + p { margin-top: -4px; }

/* A row with a diagram: number and title left, text right, the diagram below across the full width, large enough
   to read its labels. */
.row--vis { row-gap: clamp(24px, 3vw, 40px); }
.row--vis .row__txt, .row--vis:nth-child(even) .row__txt { grid-column: 1 / -1; grid-row: 1; display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); column-gap: clamp(24px, 4vw, 64px); align-items: start; }
.row--vis .row__txt > :is(.row__n, h2) { grid-column: 1; }
.row--vis .row__txt > :not(.row__n, h2) { grid-column: 2; }
.row--vis .row__txt > p:first-of-type { grid-row: 1 / span 2; max-width: 60ch; }
.row--vis .row__vis, .row--vis:nth-child(even) .row__vis { grid-column: 1 / -1; grid-row: 2; }
/* One column: every child gets its own row. The first paragraph needs its own rule, or it keeps "1 / span 2" from
   above and sits on top of the number and the title (Larisa, 20 Nov 2026). */
@media (max-width: 960px) { .row--vis .row__txt, .row--vis:nth-child(even) .row__txt { grid-template-columns: minmax(0, 1fr); } .row--vis .row__txt > *, .row--vis .row__txt > p:first-of-type { grid-column: 1; grid-row: auto; } }

/* Bento layout (field Layout; prototype design/prototypes/v8-cdp-redovi.html, variant B; Matej, 17 Nov 2026): editorial
   rows with a sticky counter. Left: a large counter (active row / total), a progress bar and the section label (or the
   page title); right: the rows as large statements, number, title with yellow italic words (fd_title_accent()), then
   icon and text. assets/js/bento.js marks the row in the middle of the screen active and dims the others; without
   the script every row stays at full strength. Photo tiles are not shown. */
.bento { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: clamp(32px, 4vw, 48px); }
.bento__aside { position: sticky; top: 112px; align-self: start; display: grid; gap: 20px; }
.bento__count { font-family: var(--f-display); font-weight: 700; font-size: clamp(80px, 10vw, 160px); line-height: .85; letter-spacing: -.05em; color: var(--ink-1); font-variant-numeric: tabular-nums; }
.bento__count small { font-size: .25em; color: var(--on-paper-3); letter-spacing: 0; margin-left: 8px; }
.bento__bar { height: 3px; background: var(--paper-line); position: relative; }
.bento__bar i { position: absolute; inset: 0; background: var(--yellow); transform-origin: left; transition: transform .5s var(--ease-out); }
.bento__aside p { font-family: var(--f-cond); font-stretch: 62%; font-weight: 800; text-transform: uppercase; font-size: 20px; line-height: 1.1; color: var(--on-paper-3); }
.bento__row { padding: clamp(48px, 6vw, 72px) 0; border-top: 1px solid var(--paper-line); display: grid; gap: 24px; justify-items: start; }
.bento__row:first-child { padding-top: 0; border-top: 0; }
.bento.is-js .bento__row { opacity: .28; transition: opacity .5s; }
.bento.is-js .bento__row.is-on { opacity: 1; }
.bento__n { font-family: var(--f-display); font-size: 14px; color: var(--yellow-30); font-variant-numeric: tabular-nums; }
.bento__row h2 { font-family: var(--f-display); font-weight: 700; text-transform: uppercase; letter-spacing: -.035em; line-height: .98; font-size: clamp(30px, 3.8vw, 60px); color: var(--ink-1); overflow-wrap: break-word; hyphens: manual; text-wrap: balance; }
.bento__row h2 .it { display: block; font-size: 1.2em; line-height: .8; color: var(--yellow-30); }
.bento__txt { display: grid; grid-template-columns: 64px minmax(0, 1fr); gap: 24px; align-items: start; max-width: 620px; }
.bento__txt > div { display: grid; gap: 16px; justify-items: start; grid-column: -2 / -1; }
.bento__txt:not(:has(.ico)) { grid-template-columns: minmax(0, 1fr); }
.bento__txt .ico { width: 64px; height: 64px; color: var(--ink-1); grid-column: 1; }
.bento__txt .ico .a { stroke: var(--yellow-30); }
.bento__txt .ico .f.a { fill: var(--yellow-30); }
.bento__txt p { font-size: 19px; line-height: 1.55; color: var(--on-paper-2); }
.bento__txt p a { box-shadow: inset 0 -1px 0 var(--yellow-30); text-decoration: none; }
@media (prefers-reduced-motion: reduce) { .bento__bar i, .bento.is-js .bento__row { transition: none; } }
@media (max-width: 960px) {
  .bento { grid-template-columns: minmax(0, 1fr); }
  .bento__aside { display: none; }
  .bento.is-js .bento__row { opacity: 1; }
}
@media (max-width: 600px) { .bento__txt { grid-template-columns: 48px minmax(0, 1fr); gap: 16px; } .bento__txt .ico { width: 48px; height: 48px; } }
