/*
  Tervezési rendszer
  - Rács: 12 oszlopos bento-elrendezés, minden adat keretes panelben.
  - Térköz: 4 px-es skála (--s1–--s6), minden távolság ebből jön.
  - Szöveg: törzsszöveg 17 px, másodlagos szöveg legalább 15 px, sorhossz korlátozva.
  - Szín: 1 elsődleges (kékeszöld), színezett szürkeskála, rovatonként egy kísérőszín (.tone-*).
  - Állapot: mindig szöveges jelvény, zöld = nyitva, szürke = zárva, borostyán = bizonytalan.
*/
:root {
  color-scheme: light dark;
  --s1: 4px;
  --s2: 8px;
  --s3: 12px;
  --s4: 16px;
  --s5: 24px;
  --s6: 32px;
  --radius: 16px;
  --radius-small: 10px;

  --bg: #f3f5f4;
  --surface: #ffffff;
  --surface-2: #f6f8f7;
  --text: #17211f;
  --muted: #4c5a56;
  --line: #d5dedb;
  --primary: #0b5f5a;
  --primary-text: #ffffff;
  --primary-soft: #d9efec;
  --link: #0a5a55;
  --action: #c2410c;
  --action-text: #ffffff;
  --shadow: 0 1px 2px rgba(16, 40, 36, .06), 0 6px 18px rgba(16, 40, 36, .05);

  --coral-bg: #fde8e0;
  --coral-fg: #9a3412;
  --violet-bg: #ece7ff;
  --violet-fg: #54309f;
  --blue-bg: #e0ecff;
  --blue-fg: #1b4a94;
  --teal-bg: #d9efec;
  --teal-fg: #0b5f5a;
  --green-bg: #dcf5e4;
  --green-fg: #14632f;
  --amber-bg: #fcefc9;
  --amber-fg: #7c4a08;
  --rose-bg: #fce7f1;
  --rose-fg: #99184f;
  --grey-bg: #e6ebe9;
  --grey-fg: #44524e;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0f1514;
    --surface: #182120;
    --surface-2: #1f2a28;
    --text: #edf3f1;
    --muted: #aebcb8;
    --line: #33413e;
    --primary: #0f6f69;
    --primary-text: #ffffff;
    --primary-soft: #143d3a;
    --link: #7fdcd2;
    --action: #f0814f;
    --action-text: #2a1006;
    --shadow: none;

    --coral-bg: #43221a;
    --coral-fg: #ffbfa8;
    --violet-bg: #2e2650;
    --violet-fg: #cfc2ff;
    --blue-bg: #1b2d4c;
    --blue-fg: #b4d0ff;
    --teal-bg: #143d3a;
    --teal-fg: #9be6dd;
    --green-bg: #173a24;
    --green-fg: #a2e8b9;
    --amber-bg: #41310f;
    --amber-fg: #f6d68a;
    --rose-bg: #47182f;
    --rose-fg: #ffc2dc;
    --grey-bg: #2a3533;
    --grey-fg: #c3cfcb;
  }
}

.tone-coral { --tone-bg: var(--coral-bg); --tone-fg: var(--coral-fg); }
.tone-violet { --tone-bg: var(--violet-bg); --tone-fg: var(--violet-fg); }
.tone-blue { --tone-bg: var(--blue-bg); --tone-fg: var(--blue-fg); }
.tone-teal { --tone-bg: var(--teal-bg); --tone-fg: var(--teal-fg); }
.tone-green { --tone-bg: var(--green-bg); --tone-fg: var(--green-fg); }
.tone-amber { --tone-bg: var(--amber-bg); --tone-fg: var(--amber-fg); }
.tone-rose { --tone-bg: var(--rose-bg); --tone-fg: var(--rose-fg); }

* { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 76px; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 17px/1.55 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

.wrap { max-width: 1200px; margin: 0 auto; padding: 0 var(--s4); }

a { color: var(--link); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--action); outline-offset: 2px; }

/* Felső sáv */
.topbar { position: sticky; top: 0; z-index: 10; background: var(--surface); border-bottom: 1px solid var(--line); }
.topbar .wrap { display: flex; align-items: center; justify-content: space-between; gap: var(--s3); min-height: 64px; }
.brand { text-decoration: none; }
.brand img { flex: none; align-self: center; }
.brand { display: flex; align-items: center; gap: var(--s2); margin: 0; min-width: 0; color: var(--primary); font-size: 1.5rem; font-weight: 800; letter-spacing: -.02em; line-height: 1.1; }
.brand span { overflow: hidden; color: var(--muted); font-size: .95rem; font-weight: 500; letter-spacing: 0; text-overflow: ellipsis; white-space: nowrap; }
@media (prefers-color-scheme: dark) {
  .brand { color: var(--teal-fg); }
}
@media (max-width: 519px) {
  .brand span { display: none; }
}
.top-actions { display: flex; flex: none; gap: var(--s2); }
.office-button { display: inline-flex; align-items: center; min-height: 44px; padding: 0 var(--s4); border-radius: var(--radius-small); background: var(--primary); color: var(--primary-text); font-weight: 700; text-decoration: none; }
.office-button:hover { filter: brightness(1.15); }
.home-button { display: inline-flex; align-items: center; min-height: 44px; padding: 0 var(--s4); border: 1px solid var(--line); border-radius: var(--radius-small); background: var(--surface); color: var(--link); font-weight: 700; text-decoration: none; }
.home-button:hover { background: var(--surface-2); }
/* Keskeny kijelzőn a három gomb saját, egyenlő sorba kerül, így mindegyik könnyen eltalálható. */
@media (max-width: 639px) {
  html { scroll-padding-top: 124px; }
  .topbar .wrap { flex-wrap: wrap; gap: var(--s1) var(--s3); padding-top: var(--s2); padding-bottom: var(--s2); min-height: 0; }
  .top-actions { flex: 1 1 100%; }
  .home-button, .office-button, .timetable-button { flex: 1 1 0; justify-content: center; padding: 0 var(--s1); font-size: .95rem; }
}
.timetable-button { display: inline-flex; flex: none; align-items: center; min-height: 44px; padding: 0 var(--s4); border-radius: var(--radius-small); background: var(--action); color: var(--action-text); font-weight: 700; text-decoration: none; }
.timetable-button:hover { filter: brightness(1.08); }

.subbar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--s3); padding-top: var(--s4); }
.villages { display: flex; flex: 1 1 300px; max-width: 420px; padding: var(--s1); border-radius: var(--radius-small); background: var(--grey-bg); }
.villages button { flex: 1; min-height: 40px; border: 0; border-radius: 7px; background: transparent; color: var(--text); font: inherit; font-size: .95rem; font-weight: 500; cursor: pointer; }
.villages button[aria-pressed="true"] { background: var(--primary); color: var(--primary-text); font-weight: 700; }
.sections { display: flex; gap: var(--s2); max-width: 100%; overflow-x: auto; scrollbar-width: none; }
.sections a { flex: none; padding: var(--s1) var(--s3); border-radius: 999px; background: var(--tone-bg); color: var(--tone-fg); font-size: .95rem; font-weight: 600; text-decoration: none; }
.sections a:hover { text-decoration: underline; }

/* Bento-rács */
.grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--s4); margin-top: var(--s4); }
.panel { min-width: 0; overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); box-shadow: var(--shadow); }
.panel > h2 { display: flex; align-items: center; margin: 0; padding: var(--s3) var(--s4); background: var(--tone-bg); color: var(--tone-fg); font-size: 1.15rem; font-weight: 800; letter-spacing: -.01em; }
.panel-body { padding: var(--s3) var(--s4) var(--s4); }

/* Címlap */
.hero { display: flex; flex-direction: column; min-width: 0; min-height: 300px; padding: var(--s5); border-radius: var(--radius); background: var(--primary); color: var(--primary-text); }
.dateline { display: flex; flex-wrap: wrap; justify-content: space-between; gap: var(--s1) var(--s4); font-size: .95rem; font-weight: 500; }
#today { display: inline-block; font-weight: 700; }
#today::first-letter { text-transform: uppercase; }
#today-names:not(:empty)::before { content: "· "; }
.lead { margin-top: auto; padding-top: var(--s5); }
.lead .kicker { display: inline-block; margin: 0 0 var(--s3); padding: 2px var(--s3); border-radius: 999px; background: #ffd9a8; color: #5a3100; font-size: .9rem; font-weight: 700; }
.lead h1 { max-width: 22em; margin: 0; font-size: clamp(1.75rem, 4.4vw, 2.75rem); font-weight: 800; letter-spacing: -.02em; line-height: 1.15; }
.lead h1 a { color: inherit; text-decoration: none; }
.lead h1 a:hover { text-decoration: underline; }
.lead .standfirst { margin: var(--s3) 0 0; font-size: 1.05rem; }
.lead .muted { color: inherit; }

.brief { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s3); min-width: 0; margin: 0; }
.brief h2 { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
#brief { display: contents; }
.fact { display: flex; flex-direction: column; justify-content: space-between; gap: var(--s2); min-width: 0; padding: var(--s4); border-radius: var(--radius); background: var(--tone-bg); color: var(--tone-fg); text-decoration: none; }
.fact:hover { outline: 2px solid var(--tone-fg); outline-offset: -2px; }
.fact strong { font-size: 1.2rem; font-weight: 800; line-height: 1.2; overflow-wrap: anywhere; }
.fact span { font-size: .92rem; line-height: 1.35; }

/* Alapelemek */
h3 { margin: var(--s4) 0 var(--s2); color: var(--muted); font-size: 1rem; font-weight: 700; }
.muted { color: var(--muted); }
.small { margin: 0 0 var(--s3); font-size: .95rem; }
.meta { color: var(--muted); font-size: .95rem; line-height: 1.4; }
.stale { color: var(--amber-fg); font-weight: 700; }

.alert, .notice { background: var(--amber-bg); color: var(--amber-fg); }
.alert { margin: var(--s4) 0 0; padding: var(--s3) var(--s4); border-radius: var(--radius-small); }
.card { margin: 0; padding: var(--s3) var(--s4); border: 1px solid var(--line); border-radius: var(--radius-small); background: var(--surface-2); }
.card.notice { margin-bottom: var(--s3); border-color: transparent; }

.list { margin: 0; padding: 0; list-style: none; }
.row { display: flex; flex-direction: column; gap: 2px; padding: var(--s3) 0; border-top: 1px solid var(--line); }
.row:first-child { border-top: 0; padding-top: var(--s1); }
.row:last-child { padding-bottom: 0; }
.row > a, .place-head > a { font-weight: 650; }
.row.pinned, .row.pinned:first-child { margin-bottom: var(--s2); padding: var(--s3); border: 1px solid var(--coral-fg); border-radius: var(--radius-small); background: var(--coral-bg); }
.row.pinned + .row { border-top: 0; }
.row.pinned, .row.pinned a, .row.pinned .meta { color: var(--coral-fg); }

/* Helyek */
.place-head { display: flex; justify-content: space-between; align-items: flex-start; gap: var(--s3); }
.status { flex: none; padding: 1px 10px; border-radius: 999px; font-size: .88rem; font-weight: 700; white-space: nowrap; }
.place.open .status { background: var(--green-bg); color: var(--green-fg); }
.place.closed .status, .place.unknown .status { background: var(--grey-bg); color: var(--grey-fg); }
.place.holiday .status { background: var(--amber-bg); color: var(--amber-fg); }
.actions { display: flex; gap: var(--s4); }
.actions a { display: inline-block; padding: var(--s1) 0; font-size: .95rem; font-weight: 600; }
.actions:empty { display: none; }

details { margin-top: var(--s3); border-top: 1px solid var(--line); }
summary { padding: var(--s3) 0 var(--s1); color: var(--link); font-weight: 650; cursor: pointer; }

/* Programok */
.program-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--s3); margin: var(--s1) 0 0; padding: 0; list-style: none; }
.program { display: grid; grid-template-columns: 56px minmax(0, 1fr); gap: var(--s3); padding: var(--s3); border: 1px solid var(--line); border-radius: var(--radius-small); background: var(--surface-2); }
.program-date { display: flex; flex-direction: column; align-items: center; justify-content: center; align-self: start; min-height: 60px; border-radius: var(--radius-small); background: var(--blue-bg); color: var(--blue-fg); line-height: 1.1; }
.program-date strong { font-size: 1.5rem; font-weight: 800; }
.program-date span { font-size: .875rem; font-weight: 600; }
.program a { font-weight: 650; overflow-wrap: anywhere; }
.program .meta { display: block; margin-top: 2px; }

/* Kalendárium */
.calendar-today { display: grid; grid-template-columns: 92px minmax(0, 1fr); gap: var(--s4); align-items: center; }
.calendar-sheet { display: flex; flex-direction: column; align-items: center; overflow: hidden; border: 1px solid var(--rose-fg); border-radius: var(--radius-small); line-height: 1.2; text-align: center; }
.calendar-sheet span { width: 100%; padding: 2px; font-size: .875rem; font-weight: 600; }
.calendar-sheet span:first-child { background: var(--rose-fg); color: var(--surface); }
.calendar-sheet strong { font-size: 2.5rem; font-weight: 800; line-height: 1.15; }
.calendar-today h3 { margin: 0; }
.calendar-names { margin: 0; font-size: 1.3rem; font-weight: 800; line-height: 1.25; overflow-wrap: anywhere; }
.calendar-holiday { display: inline-block; margin: 0 0 var(--s1); padding: 1px 10px; border-radius: 999px; background: var(--rose-bg); color: var(--rose-fg); font-size: .9rem; font-weight: 700; }
.calendar-more { margin: var(--s1) 0 0; }
.calendar-days { margin: 0; padding: 0; list-style: none; }
.calendar-days li { display: grid; grid-template-columns: 7.2em minmax(0, 1fr); gap: var(--s2); padding: var(--s1) 0; border-top: 1px solid var(--line); }
.calendar-days li:first-child { border-top: 0; }
.calendar-day { color: var(--muted); font-size: .95rem; }
.calendar-facts { margin: var(--s3) 0 0; }

.links { display: flex; flex-wrap: wrap; gap: var(--s2); margin: var(--s3) 0 0; }
.button { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: var(--s2) var(--s4); border: 1px solid var(--line); border-radius: var(--radius-small); background: var(--surface); font-weight: 650; text-decoration: none; }

/* Menetrend */
dialog { width: min(560px, 100%); max-width: 100%; max-height: 100%; margin: auto; padding: 0; border: 0; border-radius: var(--radius); background: var(--surface); color: var(--text); }
dialog::backdrop { background: rgba(6, 24, 22, .6); }
@media (max-width: 599px) {
  dialog { width: 100%; height: 100%; border-radius: 0; }
}
.dialog-head { position: sticky; top: 0; z-index: 1; display: flex; justify-content: space-between; align-items: center; padding: var(--s3) var(--s4); background: var(--primary); color: var(--primary-text); }
.dialog-head h2 { margin: 0; font-size: 1.35rem; font-weight: 800; }
.close { min-height: 44px; padding: 0 var(--s4); border: 1px solid rgba(255, 255, 255, .6); border-radius: var(--radius-small); background: transparent; color: inherit; font: inherit; font-weight: 650; cursor: pointer; }
.departures-card { padding: var(--s4) var(--s4) var(--s5); }
.departures-card > * + * { margin-top: var(--s3); }
.stop-picker label { display: block; margin-bottom: var(--s1); font-weight: 650; }
.stop-picker select { width: 100%; min-height: 44px; padding: var(--s2); border: 1px solid var(--line); border-radius: var(--radius-small); background: var(--surface-2); color: var(--text); font: inherit; }
.stop-picker .button { display: flex; width: 100%; margin-top: var(--s2); color: var(--link); font: inherit; font-weight: 650; cursor: pointer; }
.stop-picker .small { margin: var(--s2) 0 0; }
.nearest { display: flex; flex-direction: column; gap: var(--s2); margin-top: var(--s3); }
.nearest button { width: 100%; min-height: 44px; padding: var(--s2) var(--s3); border: 1px solid var(--line); border-radius: var(--radius-small); background: transparent; color: var(--text); font: inherit; font-size: .95rem; text-align: left; cursor: pointer; }
.nearest button[aria-pressed="true"] { background: var(--primary-soft); border-color: var(--teal-fg); font-weight: 650; }
.tabs { display: flex; gap: var(--s1); padding: var(--s1); border-radius: var(--radius-small); background: var(--grey-bg); }
.tabs button { flex: 1; min-height: 40px; padding: var(--s1); border: 0; border-radius: 7px; background: transparent; color: var(--text); font: inherit; font-size: .9rem; font-weight: 500; cursor: pointer; }
.tabs button[aria-pressed="true"] { background: var(--primary); color: var(--primary-text); font-weight: 700; }
.departure { display: grid; grid-template-columns: 3.4em minmax(0, 1fr) auto; gap: 2px var(--s3); align-items: baseline; padding: var(--s3); border: 1px solid var(--line); border-radius: var(--radius-small); background: var(--surface-2); }
.departure + .departure { margin-top: var(--s2); }
.departure .time { color: var(--teal-fg); font-size: 1.1rem; font-weight: 800; font-variant-numeric: tabular-nums; }
.departure .wait { color: var(--muted); font-size: .9rem; white-space: nowrap; }
.departure .meta { grid-column: 2 / 4; }

.panel-more { margin: 0; padding: 0 var(--s4) var(--s4); font-weight: 600; }
.site-links { display: flex; flex-wrap: wrap; gap: var(--s2) var(--s4); margin: var(--s4) var(--s1); font-weight: 600; }
.document .office { margin-bottom: var(--s2); }
.document .office h3 { margin: 0; color: var(--text); font-size: 1.05rem; font-weight: 750; }

/* Szöveges oldal */
.document { max-width: 860px; padding-top: var(--s5); padding-bottom: var(--s6); }
.document h1 { margin: 0 0 var(--s2); font-size: clamp(1.75rem, 4.4vw, 2.5rem); font-weight: 800; letter-spacing: -.02em; line-height: 1.15; }
.document h2 { margin: var(--s6) 0 var(--s2); font-size: 1.25rem; font-weight: 800; }
.document p, .document li { max-width: 70ch; }
.document ul { padding-left: var(--s5); }
.document li + li { margin-top: var(--s2); }
.document-table { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius-small); background: var(--surface); }
.document-table table { width: 100%; min-width: 680px; border-collapse: collapse; }
.document-table th, .document-table td { padding: var(--s3); border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.document-table th { background: var(--surface-2); font-weight: 700; }
.document-table tr:last-child td { border-bottom: 0; }

/* Hivatalok */
.office-list { margin: 0; padding: 0; list-style: none; }
.office { padding: var(--s3); border: 1px solid var(--line); border-radius: var(--radius-small); background: var(--surface-2); }
.office + .office { margin-top: var(--s2); }
.office h4 { margin: 0; font-size: 1.05rem; font-weight: 750; line-height: 1.3; }
.office p { margin: var(--s1) 0 0; }
.office-phones { display: flex; flex-wrap: wrap; gap: 0 var(--s4); margin: var(--s1) 0 0; padding: 0; list-style: none; }
.office-phones a { font-weight: 700; }
.office-hours { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 0 var(--s3); margin: var(--s2) 0 0; }
.office-hours dt { color: var(--muted); }
.office-hours dd { margin: 0; font-weight: 600; font-variant-numeric: tabular-nums; }
.office .actions { flex-wrap: wrap; align-items: baseline; margin-top: var(--s2); }
#offices h3:first-child { margin-top: 0; }

.footer { margin-top: var(--s6); padding-bottom: var(--s6); color: var(--muted); font-size: .95rem; }
.contact { margin-bottom: var(--s4); color: var(--text); font-size: 1rem; }
.contact > h2 { margin: 0; color: var(--tone-fg); font-size: 1.15rem; }
.contact-body { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--s4); padding-top: var(--s4); }
.contact-intro p { max-width: 60ch; }
.footer .contact strong { font-weight: 700; }
.field { margin-bottom: var(--s3); }
.field label { display: block; margin-bottom: var(--s1); font-weight: 650; }
.field[hidden] { display: none; }
.field input, .field select, .field textarea { display: block; width: 100%; min-height: 44px; padding: var(--s2) var(--s3); border: 1px solid var(--muted); border-radius: var(--radius-small); background: var(--surface-2); color: var(--text); font: inherit; }
.field textarea { resize: vertical; }
.field ::placeholder { color: var(--muted); opacity: 1; }
/* A robotoknak szóló csapda: emberek nem látják, a felolvasók sem olvassák fel. */
.contact-trap { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.contact-send { min-height: 44px; padding: 0 var(--s5); border: 0; border-radius: var(--radius-small); background: var(--primary); color: var(--primary-text); font: inherit; font-weight: 700; cursor: pointer; }
.contact-send:hover { filter: brightness(1.15); }
.contact-send:disabled { cursor: wait; opacity: .7; }
.footer .contact-status { margin: var(--s3) 0 0; padding: var(--s2) var(--s3); border-radius: var(--radius-small); font-weight: 600; }
.contact-status.success { background: var(--green-bg); color: var(--green-fg); }
.contact-status.error { background: var(--coral-bg); color: var(--coral-fg); }
.contact-status.info { background: var(--grey-bg); color: var(--grey-fg); }
@media (min-width: 760px) {
  .contact-body { grid-template-columns: repeat(12, minmax(0, 1fr)); gap: var(--s5); }
  .contact-intro { grid-column: span 5; }
  #contact-form { grid-column: span 7; }
}
.footer-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--s5); padding: var(--s5); border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.footer-brand { display: flex; align-items: center; gap: var(--s3); margin-bottom: var(--s4); color: var(--primary); font-size: 1.5rem; font-weight: 800; letter-spacing: -.02em; text-decoration: none; }
.footer-brand img { flex: none; }
@media (prefers-color-scheme: dark) {
  .footer-brand { color: var(--teal-fg); }
}
.footer h2 { margin: 0 0 var(--s2); color: var(--text); font-size: 1rem; font-weight: 800; }
.footer p { margin: 0 0 var(--s2); }
.footer strong { color: var(--text); }
.footer dl { display: grid; grid-template-columns: minmax(0, 1fr); margin: 0; }
.footer dt { color: var(--text); font-weight: 650; }
.footer dd { margin: 0 0 var(--s2); }
.footer-note { max-width: 70ch; margin: var(--s3) var(--s1) 0 !important; }
@media (min-width: 760px) {
  .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-sources { grid-column: 1 / -1; padding-top: var(--s4); border-top: 1px solid var(--line); }
  .footer dl { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: var(--s5); }
}
@media (min-width: 1000px) {
  .footer-grid { grid-template-columns: repeat(12, minmax(0, 1fr)); }
  .footer-grid > section { grid-column: span 3; }
  .footer-grid > .footer-sources { grid-column: span 6; padding-top: 0; border-top: 0; }
}

/* 12 oszlopos elrendezés */
@media (min-width: 760px) {
  .program-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 1000px) {
  .grid { grid-template-columns: repeat(12, minmax(0, 1fr)); align-items: start; }
  .hero { grid-column: span 8; align-self: stretch; min-height: 340px; padding: var(--s6); }
  .brief { grid-column: span 4; align-self: stretch; }
  .column-main { grid-column: span 8; }
  .column-side { grid-column: span 4; }
  .column-main, .column-side { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--s4); }
  .pair { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s4); align-items: start; }
}
@media (max-width: 999px) {
  .column-main, .column-side, .pair { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--s4); }
}
