/* ===== Olimpiada Sztucznej Inteligencji – styl strony ===== */
:root {
  --teal: #1e6c93;          /* kolor tytułów i przycisków z oai.edu.pl */
  --teal-dark: #155173;
  --teal-tint: #eef5f9;
  --oai-red: #e30613;       /* czerwień logo OAI */
  --ink: #1f2328;
  --muted: #5b6270;
  --line: #e2e7ec;
  --bg: #ffffff;
  --radius: 14px;
  --shadow: 0 1px 2px rgba(20, 40, 60, .06), 0 8px 24px rgba(20, 40, 60, .08);
  --wrap: 1172px;
}

*, *::before, *::after { box-sizing: border-box; }
html { font-size: 106.25%; -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; min-height: 100vh; display: flex; flex-direction: column;
  font-family: "Lato", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: 1rem; line-height: 1.6; color: var(--ink); background: var(--bg);
  -webkit-font-smoothing: antialiased;
}
main { flex: 1; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--teal); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--teal-dark); }
:focus-visible { outline: 3px solid color-mix(in srgb, var(--teal) 45%, transparent); outline-offset: 3px; border-radius: 4px; }
.wrap { max-width: var(--wrap); margin-inline: auto; padding-inline: 20px; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--teal); color: #fff; padding: 8px 14px; border-radius: 8px; }
.skip:focus { top: 12px; }

/* ===== Nagłówek i menu ===== */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, .92);
  -webkit-backdrop-filter: saturate(160%) blur(10px); backdrop-filter: saturate(160%) blur(10px);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 64px; max-width: 1240px; }
.brand { display: flex; align-items: center; gap: 12px; min-width: 0; color: var(--ink); text-decoration: none; font-size: 1.1rem; line-height: 1.25; }
.brand img { flex: none; width: 40px; height: auto; }
.brand:hover { color: var(--ink); }

.nav-toggle { display: none; }
.menu { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: 2px; }
.menu > li { position: relative; display: flex; align-items: center; }
.menu > li > a, .menu > li > .nav-label {
  display: block; padding: 8px 4px 8px 12px; color: var(--muted); text-decoration: none; font-size: .95rem; cursor: default;
}
.menu > li > a { cursor: pointer; }
.menu > li:not(.has-sub) > a { padding-right: 12px; }
.menu > li > a:hover, .menu > li:hover > .nav-label, .menu > li:hover > a { color: var(--ink); }
.menu > li.active > a, .menu > li.active > .nav-label { color: var(--teal); font-weight: 700; }
.sub-toggle {
  display: grid; place-items: center; width: 26px; height: 32px; padding: 0; margin-right: 4px;
  border: 0; background: none; color: var(--muted); cursor: pointer; border-radius: 6px;
}
.sub-toggle svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; transition: transform .2s; }

.sub {
  position: absolute; top: 100%; left: 0; min-width: 240px;
  list-style: none; margin: 0; padding: 8px;
  background: #fff; border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow);
  opacity: 0; visibility: hidden; transform: translateY(6px); transition: opacity .15s, transform .15s, visibility .15s;
}
.menu > li:hover > .sub, .menu > li:focus-within > .sub, .menu > li.open > .sub { opacity: 1; visibility: visible; transform: none; }
.menu > li:hover > .sub-toggle svg, .menu > li.open > .sub-toggle svg { transform: rotate(180deg); }
.sub a { display: block; padding: 7px 12px; border-radius: 8px; color: var(--ink); text-decoration: none; font-size: .93rem; line-height: 1.35; }
.sub a:hover { background: var(--teal-tint); color: var(--teal); }
.sub a[aria-current="page"], .mega-panel a[aria-current="page"], .mega-panel a[aria-current="location"] { color: var(--teal); font-weight: 700; background: var(--teal-tint); }

.mega-panel { display: grid; grid-template-columns: repeat(3, minmax(200px, 1fr)); gap: 8px 16px; padding: 16px; left: auto; right: -120px; }
.mega-head { margin: 0 0 6px; padding: 0 12px 6px; border-bottom: 1px solid var(--line); font-family: "Oswald", sans-serif; font-weight: 500; font-size: 1.05rem; color: var(--teal); }
.mega-head a, .mega-head .nav-label { padding: 0; color: var(--teal); background: none !important; font-weight: 500; }
.mega-col ul { list-style: none; margin: 0; padding: 0; }
.mega-col > ul > li > .nav-label { display: block; padding: 7px 12px; color: var(--ink); font-size: .93rem; line-height: 1.35; }
.mega-col ul ul { margin: 2px 0 4px 12px; padding-left: 8px; border-left: 2px solid var(--line); }
.mega-col ul ul a { font-size: .87rem; color: var(--muted); padding-block: 4px; }

/* Galerie edycji: większy finał, etapy krajowe i zawody międzynarodowe. */
.gallery-feature { max-width: 780px; margin-inline: auto; }
.gallery-section { padding-top: 32px; }
.gallery-section-title { margin: 0 0 24px; font-family: "Oswald", sans-serif; font-size: 1.5rem; font-weight: 500; line-height: 1.25; color: var(--teal); text-align: center; }
.gallery-albums { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px 28px; max-width: 780px; margin: 0 auto; padding: 0; list-style: none; }
.gallery-albums-stages { max-width: none; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.gallery-albums-other { max-width: 376px; grid-template-columns: 1fr; }
.gallery-album { display: flex; flex-direction: column; gap: 12px; height: 100%; color: var(--teal); font-weight: 700; text-align: center; text-decoration: none; }
.gallery-album img { width: 100%; height: auto; border-radius: 10px; }
.gallery-album:hover span, .gallery-album:focus-visible span { text-decoration: underline; }
.gallery-anchor { scroll-margin-top: 96px; }
@media (max-width: 1000px) {
  .gallery-anchor { scroll-margin-top: 24px; }
}
@media (max-width: 900px) {
  .gallery-albums-stages { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 600px) {
  .gallery-albums { grid-template-columns: 1fr; }
  .gallery-albums-stages { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px 16px; font-size: .9rem; }
}

/* ===== Nagłówek strony (tytuł) – miękka zorza w barwach OAI ===== */
.page-head {
  padding-block: 44px 24px; text-align: center;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0) 55%, #fff 100%),
    radial-gradient(ellipse 45% 70% at 12% 10%, rgba(30, 108, 147, .16), rgba(30, 108, 147, 0) 70%),
    radial-gradient(ellipse 40% 60% at 88% 18%, rgba(227, 6, 19, .09), rgba(227, 6, 19, 0) 70%),
    radial-gradient(ellipse 30% 35% at 70% 68%, rgba(30, 108, 147, .08), rgba(30, 108, 147, 0) 70%),
    linear-gradient(180deg, #f4f8fb, #fff);
}
.page-head h1 {
  margin: 0; font-family: "Oswald", sans-serif; font-weight: 700; color: var(--teal);
  font-size: clamp(2rem, 1.2rem + 3vw, 3.2rem); line-height: 1.15; letter-spacing: .005em;
}
.page-head .txt + .txt h1, .page-head h1 + h1 { margin-top: .2em; }

/* ===== Sekcje ===== */
.sec { padding-block: 18px; }
.sec-gap { height: 18px; }
.sec-light .wrap > * { position: relative; }
.sec-dark .panel {
  padding: 28px 32px; border-radius: 18px; color: #fff;
  background: linear-gradient(135deg, var(--teal), var(--teal-dark));
  box-shadow: var(--shadow);
}
.sec-dark .panel a { color: #fff; }

.row { display: grid; gap: 28px; align-items: start; }
.row-1 > * + * { margin-top: 14px; }
.col > * + * { margin-top: 14px; }

/* ===== Tekst ===== */
.txt p, .txt li { margin: 0; }
.txt p + p, .txt p + ul, .txt p + ol, .txt ul + p, .txt ol + p { margin-top: .45em; }
.txt ul, .txt ol { margin: .3em 0; padding-left: 1.4em; }
.txt li + li { margin-top: .2em; }
.txt .gap { height: .8em; }
.txt h1, .txt h2, .txt h3, .txt h4 { margin: .2em 0 .35em; line-height: 1.25; }
.txt h1 { font-family: "Oswald", sans-serif; font-weight: 500; font-size: 1.85rem; color: var(--teal); }
.txt h2 { font-family: "Oswald", sans-serif; font-weight: 500; font-size: 1.45rem; color: var(--teal); }
.txt h3 { font-size: 1.2rem; }
.achievements .achievement-event { margin-top: 36px; scroll-margin-top: 96px; }
.achievements .achievement-event + .achievement-event { margin-top: 56px; padding-top: 44px; border-top: 1px solid var(--line); }
.achievements .achievement-event > h2 { margin-top: 0; }
.achievements .achievement-event > h3:first-of-type { margin-top: 0; margin-bottom: 24px; color: var(--muted); }
.achievements .achievement-event > p + h3 { margin-top: 32px; }
.achievements .achievements-toc { margin: 32px 0 40px; }
.achievements .achievements-toc h2 { margin: 0 0 12px; font-size: 1.25rem; }
.achievements .achievements-toc ol { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 4px 36px; margin: 0; padding-left: 1.4em; }
.achievements .achievements-toc li { margin: 0; }
.achievements .achievements-toc a { display: inline-block; padding-block: 6px; }
@media (max-width: 1000px) {
  .achievements .achievement-event { scroll-margin-top: 24px; }
}
@media (max-width: 600px) {
  .achievements .achievements-toc ol { grid-template-columns: 1fr; }
}
.txt h1 strong, .txt h2 strong { font-weight: inherit; }
.sec-dark .txt h1, .sec-dark .txt h2 { color: #fff; }
.c { text-align: center; }
.r { text-align: right; }
.j { text-align: justify; hyphens: auto; }

/* Syllabus: treść tabel jako tekst HTML, ze scalonymi obszarami. */
.syllabus-table { width: 100%; border-collapse: collapse; table-layout: fixed; font-size: 1rem; line-height: 1.5; }
.syllabus-table col:first-child { width: 22%; }
.syllabus-table th, .syllabus-table td { padding: 12px 14px; border: 1px solid #cbd3da; text-align: left; vertical-align: top; overflow-wrap: anywhere; hyphens: auto; }
.syllabus-table thead th { background: #e9ecef; color: var(--ink); }
.syllabus-table th { font-weight: 700; }
.syllabus-table sup { font-size: .72em; line-height: 0; vertical-align: super; }
@media (max-width: 600px) {
  .syllabus-table { font-size: .88rem; }
  .syllabus-table col:first-child { width: 40%; }
  .syllabus-table th, .syllabus-table td { padding: 9px 8px; }
}

/* ===== Obrazy ===== */
.img { margin: 0; display: flex; justify-content: center; }
.img img { width: 100%; }
.img img.photo { border-radius: 10px; }
.img a { display: block; width: 100%; transition: transform .2s; }
.img a:hover { transform: translateY(-2px); }
.img a img[style] { margin-inline: auto; }
.icon-row { display: flex; justify-content: center; gap: 10px; flex-wrap: wrap; }
.icon-row img { width: 34px; height: 34px; }
img.zoom { cursor: zoom-in; }

/* ===== Przyciski ===== */
.btn-wrap { margin: 0; }
.btn {
  display: block; padding: 11px 18px; border-radius: 10px; text-align: center; text-decoration: none;
  background: var(--teal); color: #fff; font-weight: 700; transition: background-color .2s, transform .2s;
}
.btn:hover { background: var(--teal-dark); color: #fff; transform: translateY(-1px); }

/* ===== Rozwijane sekcje ===== */
.collapse { border-block: 1px solid var(--line); }
.collapse summary { display: flex; align-items: center; justify-content: center; gap: 10px; padding: 12px 0; cursor: pointer; list-style: none; }
.collapse summary::-webkit-details-marker { display: none; }
.collapse summary .summary-text > * { margin: 0; }
.collapse .chev { width: 24px; height: 24px; flex: none; fill: none; stroke: var(--teal); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; transition: transform .2s; }
.collapse[open] .chev { transform: rotate(180deg); }
.collapse-body { padding-bottom: 16px; }

/* ===== Karuzela zdjęć ===== */
.carousel { position: relative; aspect-ratio: var(--ratio); border-radius: var(--radius); overflow: hidden; background: #f1f3f5; }
.carousel .track { display: flex; height: 100%; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; scroll-behavior: smooth; }
.carousel .track::-webkit-scrollbar { display: none; }
.carousel .slide { flex: 0 0 100%; height: 100%; scroll-snap-align: center; }
.carousel .slide img { width: 100%; height: 100%; object-fit: cover; }
.carousel .nav-btn {
  position: absolute; top: 50%; transform: translateY(-50%); width: 42px; height: 42px; border-radius: 50%;
  display: grid; place-items: center; padding: 0; border: 0; cursor: pointer;
  background: rgba(255, 255, 255, .85); color: var(--ink); box-shadow: 0 2px 8px rgba(0, 0, 0, .18); transition: background-color .2s;
}
.carousel .nav-btn:hover { background: #fff; }
.carousel .nav-btn svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.carousel .prev { left: 12px; }
.carousel .next { right: 12px; }
.carousel .dots { position: absolute; left: 0; right: 0; bottom: 10px; display: flex; justify-content: center; gap: 6px; }
.carousel .dots button { width: 8px; height: 8px; padding: 0; border: 0; border-radius: 50%; background: rgba(255, 255, 255, .6); cursor: pointer; box-shadow: 0 0 2px rgba(0, 0, 0, .4); }
.carousel .dots button[aria-current="true"] { background: #fff; width: 20px; border-radius: 4px; }

/* ===== Powiększanie zdjęć ===== */
.lightbox { position: fixed; inset: 0; z-index: 200; display: grid; place-items: center; background: rgba(10, 14, 20, .92); padding: 24px; }
.lightbox[hidden] { display: none; }
.lightbox img { max-width: min(1400px, 100%); max-height: 88vh; width: auto; border-radius: 8px; }
.lightbox button { position: absolute; border: 0; background: rgba(255, 255, 255, .12); color: #fff; width: 48px; height: 48px; border-radius: 50%; cursor: pointer; font-size: 1.6rem; line-height: 1; }
.lightbox button:hover { background: rgba(255, 255, 255, .25); }
.lightbox .lb-close { top: 16px; right: 16px; }
.lightbox .lb-prev { left: 16px; top: 50%; transform: translateY(-50%); }
.lightbox .lb-next { right: 16px; top: 50%; transform: translateY(-50%); }

/* ===== Katalog materiałów ===== */
.app-frame { display: block; width: 100%; min-height: 900px; border: 0; }

/* ===== Stopka ===== */
.site-footer { height: 6px; margin-top: 40px; background: linear-gradient(90deg, var(--teal), var(--oai-red)); }

/* ===== Mniejsze ekrany ===== */
@media (max-width: 1000px) {
  .site-header { position: static; }
  .header-inner { flex-wrap: wrap; padding-block: 10px; }
  .nav-toggle {
    display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 999px;
    border: 1px solid var(--line); background: #fff; color: var(--ink); font: inherit; cursor: pointer;
  }
  .nav-toggle svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
  .nav { display: none; width: 100%; }
  .nav.open { display: block; }
  .menu { flex-direction: column; align-items: stretch; padding-bottom: 8px; }
  .menu > li { flex-wrap: wrap; border-top: 1px solid var(--line); }
  .menu > li > a, .menu > li > .nav-label { flex: 1; padding: 12px 4px; font-size: 1rem; }
  .sub-toggle { width: 44px; height: 44px; }
  .sub, .mega-panel {
    position: static; display: none; width: 100%; opacity: 1; visibility: visible; transform: none;
    box-shadow: none; border: 0; padding: 0 0 10px 12px; min-width: 0;
  }
  .menu > li.open > .sub { display: block; }
  .menu > li:hover > .sub-toggle svg { transform: none; }
  .menu > li.open > .sub-toggle svg { transform: rotate(180deg); }
  .mega-panel { grid-template-columns: 1fr; }
  .menu > li.open > .mega-panel { display: grid; }
}
@media (max-width: 760px) {
  .page-head { padding-block: 32px 16px; }
  .row { display: block; }
  .row > .col.empty { display: none; }
  .row > .col + .col { margin-top: 18px; }
  .row-many { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)) !important; gap: 22px 16px; }
  .row-many > .col + .col { margin-top: 0; }
  .j { text-align: left; }
  .sec-dark .panel { padding: 22px 18px; }
  .carousel .nav-btn { width: 36px; height: 36px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; scroll-behavior: auto !important; }
}

/* ===== Rozmiary tekstu z oryginalnej strony ===== */
.fs-s { font-size: .85em; }
.fs-m { font-size: 1.12em; }
.fs-l { font-size: 1.35em; line-height: 1.3; }
.fs-xl { font-size: 1.7em; line-height: 1.25; }
.fs-2xl { font-size: 2.2em; line-height: 1.2; }
.txt .fs-l strong, .txt .fs-xl strong, .txt strong .fs-l, .txt strong .fs-xl { color: var(--teal); }

/* Miejsce na zdjęcie osoby (gdy zdjęcia brak) */
.ph { margin-inline: auto; aspect-ratio: 1; border-radius: 10px; background: var(--teal-tint); display: grid; place-items: center; }
.ph svg { width: 42%; fill: none; stroke: color-mix(in srgb, var(--teal) 45%, transparent); stroke-width: 1.4; stroke-linecap: round; }
.app-sec { padding-top: 8px; }

/* Ikony serwisów społecznościowych (białe znaki na kolorowym kółku, jak w oryginale) */
.icon-row a { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; background: var(--teal); transition: background-color .2s, transform .2s; }
.icon-row a:hover { background: var(--teal-dark); transform: translateY(-2px); }
.icon-row a img { width: 26px; height: 26px; }
.sec-dark .txt strong, .sec-dark .txt .fs-l, .sec-dark .txt .fs-xl, .sec-dark .txt .fs-l strong, .sec-dark .txt .fs-xl strong, .sec-dark .txt strong .fs-l, .sec-dark .txt strong .fs-xl { color: #fff; }
.sub .mega-head a, .sub .mega-head .nav-label { display: inline; padding: 0; font-size: inherit; line-height: inherit; color: var(--teal); background: none; }
.sub .mega-head a:hover { text-decoration: underline; }
/* Rozmiar nagłówków ustala sam nagłówek (bez podwójnego powiększania) */
.txt :is(h1, h2, h3) :is(.fs-m, .fs-l, .fs-xl, .fs-2xl), .page-head h1 :is(.fs-m, .fs-l, .fs-xl, .fs-2xl) { font-size: inherit; }
/* Tytuł strony w nagłówku */
.page-head .txt h1 { font-family: "Oswald", sans-serif; font-weight: 700; font-size: clamp(2rem, 1.2rem + 3vw, 3.2rem); line-height: 1.15; margin: 0; }

/* ===== Strona główna: harmonogram ===== */
.schedule {
  position: relative; overflow: hidden; isolation: isolate;
  max-width: 920px; margin-inline: auto; padding: 34px 40px 30px;
  border-radius: 20px; color: #fff; box-shadow: var(--shadow);
  background:
    radial-gradient(ellipse 60% 80% at 100% 0%, rgba(227, 6, 19, .28), rgba(227, 6, 19, 0) 60%),
    radial-gradient(ellipse 70% 90% at 0% 100%, rgba(255, 255, 255, .12), rgba(255, 255, 255, 0) 60%),
    linear-gradient(135deg, #227aa6, var(--teal) 45%, var(--teal-dark));
}
.schedule-title {
  margin: 0 0 22px; text-align: center;
  font-family: "Oswald", sans-serif; font-weight: 500; font-size: clamp(1.4rem, 1.1rem + 1.2vw, 1.9rem); line-height: 1.2;
}
.stages { list-style: none; margin: 0 auto; padding: 0; max-width: 760px; position: relative; }
.stages::before {               /* oś czasu */
  content: ""; position: absolute; left: 7px; top: 14px; bottom: 14px; width: 2px;
  background: linear-gradient(180deg, rgba(255, 255, 255, .7), rgba(255, 255, 255, .25));
}
.stages li {
  position: relative; display: grid; grid-template-columns: 150px 1fr; align-items: center; gap: 16px;
  padding: 9px 0 9px 32px;
}
.stages li::before {            /* punkt na osi czasu */
  content: ""; position: absolute; left: 0; top: 50%; width: 16px; height: 16px; margin-top: -8px;
  border-radius: 50%; background: #fff; box-shadow: 0 0 0 4px rgba(255, 255, 255, .22);
}
.stages li:last-child::before { background: #ff6b6b; box-shadow: 0 0 0 4px rgba(255, 107, 107, .3); }
.stage-name {
  justify-self: start; padding: 3px 12px; border-radius: 999px;
  background: rgba(255, 255, 255, .16); font-size: .9rem; font-weight: 700; letter-spacing: .02em; white-space: nowrap;
}
.stage-when { font-size: 1.15rem; font-weight: 700; white-space: nowrap; }
.schedule-note { margin: 22px 0 0; text-align: center; font-size: .95rem; color: rgba(255, 255, 255, .88); }

/* ===== Strona główna: nagłówki sekcji z dekoracją ===== */
.section-title {
  display: flex; align-items: center; gap: 18px; max-width: 760px; margin: 8px auto 26px;
  font-family: "Oswald", sans-serif; font-weight: 500; font-size: clamp(1.45rem, 1.2rem + .9vw, 1.85rem);
  line-height: 1.2; color: var(--teal); text-align: center;
}
.section-title::before, .section-title::after { content: ""; flex: 1; min-width: 24px; height: 2px; border-radius: 2px; }
.section-title::before { background: linear-gradient(90deg, rgba(30, 108, 147, 0), rgba(30, 108, 147, .45)); }
.section-title::after { background: linear-gradient(90deg, rgba(227, 6, 19, .4), rgba(227, 6, 19, 0)); }
.section-title span { position: relative; padding-bottom: 2px; }

/* ===== Strona główna: tekst po lewej, zdjęcie po prawej ===== */
.feature { padding-block: 26px; }
.feature-row { display: grid; grid-template-columns: 1.15fr 1fr; gap: 44px; align-items: center; }
.feature-media .img img { border-radius: 14px; box-shadow: var(--shadow); }
.row-center { align-items: center; }

@media (max-width: 760px) {
  .schedule { padding: 26px 18px 22px; }
  .stages li { grid-template-columns: 1fr; gap: 4px; padding-left: 30px; }
  .stage-when { white-space: normal; font-size: 1.05rem; }
  .feature-row { grid-template-columns: 1fr; gap: 20px; }
  .section-title::before, .section-title::after { min-width: 16px; }
}
.feature-media .img img { aspect-ratio: 4 / 3; object-fit: cover; }

/* Większe odstępy pod nagłówkami */
.section-title { margin-bottom: 40px; }
.feature { padding-block: 36px; }
.txt h1, .txt h2 { margin-bottom: .6em; }
.txt h3 { margin-bottom: .5em; }
.schedule-title { margin-bottom: 28px; }
@media (max-width: 760px) {
  .section-title { margin-bottom: 26px; }
}
/* Długie nagłówki: tekst węższy, by linie po bokach pozostały widoczne */
.section-title { max-width: 900px; }
.section-title span { flex: 0 1 auto; max-width: 620px; }
.section-title::before, .section-title::after { min-width: 48px; }
.sec-title { padding-block: 18px 0; }

/* ===== Strona główna (body.home) ===== */
.home { --home-panel-width: 1000px; }
.home main { padding-bottom: 24px; }
.home-sec { padding-block: 40px; }

/* Nagłówek z tytułem */
.home-hero {
  padding-block: 56px 44px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0) 60%, #fff 100%),
    radial-gradient(ellipse 45% 70% at 12% 10%, rgba(30, 108, 147, .16), rgba(30, 108, 147, 0) 70%),
    radial-gradient(ellipse 40% 60% at 88% 18%, rgba(227, 6, 19, .09), rgba(227, 6, 19, 0) 70%),
    radial-gradient(ellipse 30% 35% at 70% 68%, rgba(30, 108, 147, .08), rgba(30, 108, 147, 0) 70%),
    linear-gradient(180deg, #f4f8fb, #fff);
}
.hero-layout { display: grid; width: calc(100% - 40px); max-width: var(--home-panel-width); padding-inline: 0; grid-template-columns: clamp(160px, 18.5vw, 220px) minmax(0, 1fr); align-items: center; gap: 28px 24px; }
.hero-copy { min-width: 0; container-type: inline-size; text-align: left; }
.hero-animation { position: relative; width: 100%; max-width: 273.6px; align-self: stretch; justify-self: start; }
/* Let the title set the row height; fit the logo to it without changing
   the title's width, type size, or the gap between the two elements. */
.hero-animation #oai-logo-animation { position: absolute; inset: 0; height: 100%; display: flex; align-items: center; justify-content: flex-end; }
.hero-animation #oai-logo-animation .oai-mark { flex: none; width: auto; height: 100%; max-width: 100%; transform: translateY(4px); }
.home-announcement { background: var(--oai-red); }
.home-announcement > .wrap { max-width: calc(var(--home-panel-width) + 40px); display: flex; justify-content: center; }
.hero-news {
  display: inline-flex; align-items: center; gap: 12px; min-width: 0; max-width: 100%; min-height: 42px;
  padding-block: 10px; color: #fff; font-size: .82rem; line-height: 1.4; text-decoration: none; white-space: nowrap;
}
.hero-news-text { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.hero-news:hover { color: #fff; }
.hero-news:hover .hero-news-text { text-decoration: underline; }
.hero-news .arrow { flex: none; color: inherit; transition: transform .2s; }
.hero-news:hover .arrow { transform: translateX(3px); }
@media (max-width: 600px) {
  .hero-news { gap: 7px; font-size: .72rem; }
}
@media (pointer: coarse) {
  .hero-news { min-height: 44px; }
}
@media (prefers-reduced-motion: reduce) {
  .hero-news .arrow { transition: none; }
}
.home-hero h1 {
  margin: 0; font-family: "Montserrat", Arial, sans-serif; font-weight: 700; color: var(--teal);
  /* Fit the full second line to the space beside the logo, including on phones. */
  font-size: min(7.2cqw, 3rem); line-height: 1.12; letter-spacing: -.01em;
}
.hero-title-intro, .hero-title-subject { display: block; white-space: nowrap; }
.hero-title-intro { margin-bottom: .12em; color: #e30614; font-size: 1.4em; font-weight: 400; letter-spacing: 0; }
.hero-title-subject { text-transform: uppercase; }
.hero-lead { max-width: 680px; margin: 20px auto 0; font-size: 1.15rem; line-height: 1.55; color: var(--muted); }
.hero-actions { display: flex; justify-content: center; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.btn-home {
  display: inline-block; padding: 11px 24px; border-radius: 999px; border: 1px solid var(--teal);
  background: var(--teal); color: #fff; font-weight: 700; text-decoration: none;
  transition: background-color .2s, color .2s, transform .2s;
}
.btn-home:hover { background: var(--teal-dark); border-color: var(--teal-dark); color: #fff; transform: translateY(-1px); }
.btn-home.btn-ghost { background: #fff; color: var(--teal); border-color: color-mix(in srgb, var(--teal) 35%, #fff); }
.btn-home.btn-ghost:hover { background: var(--teal-tint); color: var(--teal-dark); border-color: var(--teal); }
.home-social { padding-block: 0 24px; }
.home-social a { width: 38px; height: 38px; }
.home-social a img { width: 22px; height: 22px; }

/* Harmonogram – oś czasu w poziomie */
.home-schedule-sec { padding-top: 8px; }
.home-schedule {
  position: relative; max-width: var(--home-panel-width); margin-inline: auto; padding: 28px 32px 22px;
  border-radius: 22px; color: #fff; box-shadow: var(--shadow);
  background:
    radial-gradient(ellipse 60% 80% at 100% 0%, rgba(227, 6, 19, .26), rgba(227, 6, 19, 0) 60%),
    radial-gradient(ellipse 70% 90% at 0% 100%, rgba(255, 255, 255, .1), rgba(255, 255, 255, 0) 60%),
    linear-gradient(135deg, #227aa6, var(--teal) 45%, var(--teal-dark));
}
.home-schedule h2 {
  margin: 0 0 26px; text-align: center;
  font-family: "Oswald", sans-serif; font-weight: 500; font-size: clamp(1.2rem, 1.05rem + .8vw, 1.5rem); line-height: 1.25;
}
.home-stages { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); position: relative; }
.home-stages::before {          /* oś czasu */
  content: ""; position: absolute; left: 16.66%; right: 16.66%; top: 7px; height: 2px;
  background: linear-gradient(90deg, rgba(255, 255, 255, .7), rgba(255, 255, 255, .35));
}
.home-stages li { position: relative; display: flex; flex-direction: column; align-items: center; text-align: center; padding: 26px 10px 0; }
.home-stages li::before {       /* punkt na osi */
  content: ""; position: absolute; top: 0; left: 50%; width: 16px; height: 16px; margin-left: -8px;
  border-radius: 50%; background: #fff; box-shadow: 0 0 0 5px rgba(255, 255, 255, .2);
}
.stage-label { font-size: .72rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; }
.stage-date { margin-top: 8px; font-family: "Oswald", sans-serif; font-weight: 500; font-size: 1.12rem; line-height: 1.25; }
.stage-place { margin-top: 4px; font-size: .84rem; line-height: 1.45; color: rgba(255, 255, 255, .85); }
.home-schedule-next { margin-top: 24px; padding-top: 18px; border-top: 1px solid rgba(255, 255, 255, .18); }
.home-events { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px 24px; margin: 0; padding: 0; list-style: none; }
.home-event { position: relative; min-width: 0; padding: 14px 4px; }
.home-event + .home-event::before { content: ""; position: absolute; left: -13px; top: 50%; width: 1px; height: 26px; border-radius: 1px; background: rgba(255, 255, 255, .5); transform: translateY(-50%); }
.home-event-kind { display: block; margin-bottom: 7px; font-size: .64rem; font-weight: 700; line-height: 1.3; letter-spacing: .1em; text-transform: uppercase; color: #c4e5f4; }
.home-event h4 { min-height: 2.7em; margin: 0; font-size: .84rem; line-height: 1.35; }
.home-event h4 a { color: inherit; text-decoration: none; }
.home-event h4 a:hover { text-decoration: underline; }
.home-event-context { margin: 6px 0 0; font-size: .72rem; line-height: 1.4; color: rgba(255, 255, 255, .9); }
.home-event-date { margin: 9px 0 0; font-family: "Oswald", sans-serif; font-weight: 500; font-size: 1.05rem; line-height: 1.25; }
.home-event-date time { white-space: nowrap; }
.home-event-place { margin: 4px 0 0; font-size: .81rem; line-height: 1.4; color: rgba(255, 255, 255, .9); }
.home-schedule-note { margin: 20px 0 0; padding-top: 14px; border-top: 1px solid rgba(255, 255, 255, .18); text-align: center; font-size: .8rem; line-height: 1.5; color: rgba(255, 255, 255, .88); }

/* Karty: aktualności i wykłady */
.home-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; align-items: stretch; }
.home-card { padding: 30px 32px; border: 1px solid var(--line); border-radius: 18px; background: #fff; box-shadow: 0 1px 2px rgba(20, 40, 60, .04); }
.home-card h2 { margin: 0 0 14px; font-family: "Oswald", sans-serif; font-weight: 500; font-size: 1.5rem; line-height: 1.25; color: var(--teal); }
.home-card p { margin: 0; line-height: 1.65; }
.home-card p + p { margin-top: .8em; }
.home-card .muted { color: var(--muted); font-size: .95rem; }
.eyebrow { margin: 0 0 10px; font-size: .78rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--oai-red); }
.home-card .eyebrow { margin-bottom: 10px; }
.lecture { display: flex; gap: 18px; align-items: center; margin-bottom: 18px; }
#wyklady-szkoleniowe { scroll-margin-top: 96px; }
.lecture h2 { margin: 0; font-size: 1.35rem; }
.lecture-date {
  flex: none; display: flex; flex-direction: column; align-items: center; justify-content: center;
  width: 68px; height: 72px; border-radius: 14px; background: var(--teal-tint); color: var(--teal); line-height: 1;
}
.lecture-date .day { font-family: "Oswald", sans-serif; font-weight: 700; font-size: 1.9rem; }
.lecture-date .month { margin-top: 4px; font-size: .75rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.lecture-meta { margin-top: 6px !important; color: var(--muted); font-size: .95rem; }
.card-links { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px !important; }
.chip {
  display: inline-block; padding: 6px 14px; border-radius: 999px; border: 1px solid color-mix(in srgb, var(--teal) 35%, #fff);
  font-size: .92rem; font-weight: 700; text-decoration: none; transition: background-color .2s, border-color .2s;
}
.chip:hover { background: var(--teal-tint); border-color: var(--teal); }

/* Przewijany pasek organizatorów i partnerów bieżącej edycji. */
.home-supporters { padding-block: 8px 24px; }
.partner-ticker {
  overflow-x: auto; border-block: 1px solid var(--line); padding-block: 24px;
  scrollbar-width: thin; scrollbar-color: var(--teal) transparent;
}
.partner-ticker:focus-visible { outline: 2px solid var(--teal); outline-offset: 5px; }
.partner-ticker__track { display: flex; width: max-content; }
.partner-ticker__list {
  display: flex; flex: none; align-items: center; gap: 56px;
  width: max-content; list-style: none; margin: 0; padding: 0 56px 0 0;
}
.partner-ticker__group { display: flex; flex: none; align-items: center; gap: 20px; }
.partner-ticker__role {
  display: flex; flex: none; flex-direction: column; gap: 2px; white-space: nowrap;
  font-family: "Oswald", sans-serif; font-weight: 500; font-size: 1rem; line-height: 1.3; letter-spacing: .01em;
}
.partner-ticker__role strong { font-weight: inherit; }
.partner-ticker__logos { display: flex; flex: none; align-items: center; gap: 28px; }
.partner-ticker__logos a { display: flex; flex: none; align-items: center; text-decoration: none; transition: opacity .2s; }
.partner-ticker__logos a:hover { opacity: .8; }
.partner-ticker__logos img { flex: none; width: auto; height: 68px; object-fit: contain; }
.partner-ticker__universities img { width: 156px; }
.partner-ticker__foundation img { height: 72px; }
.partner-ticker__institutions img { height: 64px; }
.partner-ticker__diamond img { width: 190px; }
.partner-ticker__gold img { width: auto; height: 64px; max-width: 180px; }
.partner-ticker__copy { display: none; }
@keyframes partner-ticker-scroll {
  to { transform: translateX(var(--partner-ticker-distance)); }
}
@media (prefers-reduced-motion: no-preference) {
  /* Keyboard focus reveals the static list; pointer clicks keep the visible copy. */
  .partner-ticker.is-ready:not(:focus-visible):not(:has(:focus-visible)) { overflow-x: hidden; }
  .partner-ticker.is-ready:not(:focus-visible):not(:has(:focus-visible)) .partner-ticker__copy { display: flex; }
  .partner-ticker.is-ready:not(:focus-visible):not(:has(:focus-visible)) .partner-ticker__track {
    animation: partner-ticker-scroll var(--partner-ticker-duration) linear infinite;
  }
  .partner-ticker.is-ready:is(:hover, .is-paused) .partner-ticker__track { animation-play-state: paused; }
}
@media (max-width: 600px) {
  .partner-ticker { padding-block: 20px; }
  .partner-ticker__list { gap: 36px; padding-right: 36px; }
  .partner-ticker__group { gap: 16px; }
  .partner-ticker__role { font-size: .9rem; }
  .partner-ticker__logos { gap: 24px; }
  .partner-ticker__logos img { height: 56px; }
  .partner-ticker__universities img { width: 140px; }
  .partner-ticker__foundation img { height: 64px; }
  .partner-ticker__diamond img { width: 170px; }
  .partner-ticker__gold img { width: auto; height: 56px; max-width: 156px; }
}

/* O Olimpiadzie: tekst i zdjęcie naprzemiennie */
.home .section-title { margin-bottom: 44px; }
.home-feature { display: grid; grid-template-columns: 1.1fr 1fr; gap: 56px; align-items: center; }
.home-feature + .home-feature { margin-top: 64px; }
.home-feature:nth-of-type(even) .home-feature-text { order: 2; }
.home-feature-text h3 {
  position: relative; margin: 0 0 18px; padding-bottom: 12px;
  font-family: "Oswald", sans-serif; font-weight: 500; font-size: 1.6rem; line-height: 1.2; color: var(--teal);
}
.home-feature-text h3::after {
  content: ""; position: absolute; left: 0; bottom: 0; width: 56px; height: 3px; border-radius: 3px;
  background: linear-gradient(90deg, var(--teal), var(--oai-red));
}
.home-feature-text p { margin: 0; font-size: 1.05rem; line-height: 1.75; }
.home-feature-text p + p { margin-top: .9em; }
.home-feature-media { margin: 0; }
.home-feature-media img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 16px; box-shadow: var(--shadow); }
.home-feature-media--stack { display: grid; gap: 20px; }
.home-feature-media--full img { height: auto; aspect-ratio: auto; object-fit: contain; }
.home-feature-media--words video { display: block; width: 100%; height: auto; aspect-ratio: 940 / 788; background: #fff; filter: brightness(1.02); }

/* Poprzednie edycje */
.home-editions { display: grid; grid-template-columns: repeat(3, minmax(0, 220px)); justify-content: center; gap: 36px; }
.edition { display: flex; flex-direction: column; align-items: center; text-decoration: none; color: var(--ink); }
.edition img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 18px; box-shadow: var(--shadow); transition: transform .25s, box-shadow .25s; }
.edition:hover img { transform: translateY(-4px); box-shadow: 0 2px 4px rgba(20, 40, 60, .06), 0 14px 32px rgba(20, 40, 60, .14); }
.edition-name { margin-top: 16px; font-family: "Oswald", sans-serif; font-weight: 500; font-size: 1.35rem; color: var(--teal); }
.edition-years { color: var(--muted); font-size: .95rem; }

/* Organizatorzy, partnerzy i sponsorzy — logotypy na otwartym tle */
.home-logos { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.home-logos a {
  display: flex; align-items: center; justify-content: center; padding: 12px;
  text-decoration: none; transition: opacity .2s;
}
.home-logos a:hover { opacity: .8; }
.home-logos img { max-height: 84px; width: auto; }
.home-coordinator {
  display: flex; align-items: center; justify-content: center; gap: 18px; width: fit-content; max-width: 100%;
  margin: 32px auto 0; color: var(--muted); text-decoration: none; font-size: .95rem;
}
.home-coordinator img { width: 64px; flex: none; }
.home-coordinator strong { display: block; color: var(--teal); font-size: 1.1rem; }
.home-coordinator:hover strong { text-decoration: underline; }
.home-partners { display: grid; grid-template-columns: 1fr; gap: clamp(72px, 8vw, 104px); }
.partner-group { display: flex; flex-direction: column; align-items: center; gap: clamp(32px, 4vw, 44px); padding: 8px 0; }
.partner-group > :is(h2, h3):not(.sponsor-tier) { margin: 0; font-size: .9rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); text-align: center; }
.partner-logos { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 32px 64px; width: 100%; }
.institutional-logos > * { display: flex; align-items: center; justify-content: center; flex: 0 1 380px; min-width: 0; }
.institutional-logos img { max-height: 120px; width: auto; max-width: 100%; object-fit: contain; }
.sponsor-logo { display: flex; flex-direction: column; align-items: center; gap: 20px; width: 100%; margin: 0; }
.sponsor-logo img { width: min(100%, 440px); }
.sponsor-strip { width: 100%; max-width: 960px; }
.sponsor-strip img { width: 100%; }
.home-partners--iv a { transition: opacity .2s; }
.home-partners--iv a:hover { opacity: .8; }
.institutional-logos--iv { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(20px, 4vw, 64px); max-width: 1000px; }
.sponsor-strip--iv { display: grid; grid-template-columns: 1.4fr .7fr 1.1fr 1.4fr; align-items: center; gap: clamp(20px, 4vw, 64px); }
.sponsor-strip--iv a { display: flex; align-items: center; justify-content: center; min-width: 0; }
.sponsor-strip--iv img { height: clamp(72px, 11vw, 140px); object-fit: contain; }
@media (max-width: 640px) {
  .sponsor-strip--iv { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* Metale i kamienie wyróżniają rangę sponsora, nie zmieniając jego logotypu. */
.sponsor-tier--institutional { --tier-ink: #1e6c93; --tier-glint: #3a87a9; --tier-edge: #8db9cc; }
.sponsor-tier--technology { --tier-ink: #7045a1; --tier-glint: #aa7ed0; --tier-edge: #c4a4e1; }
.sponsor-tier--gold { --tier-ink: #94600b; --tier-glint: #b58524; --tier-edge: #d4b65d; }
.sponsor-tier--diamond { --tier-ink: #286c89; --tier-glint: #4b8da3; --tier-edge: #9ccbd8; }
.sponsor-tier--platinum { --tier-ink: #616980; --tier-glint: #8992a7; --tier-edge: #bec5d4; }
.sponsor-tier { display: flex; align-items: center; justify-content: center; gap: 14px; max-width: 100%; margin: 0; color: var(--tier-ink); font-family: "Oswald", sans-serif; font-weight: 500; font-size: clamp(1.45rem, 1.1rem + 1vw, 1.9rem); line-height: 1.25; text-align: center; }
.sponsor-tier::before, .sponsor-tier::after { content: ""; flex: 0 1 52px; align-self: center; min-width: 12px; height: 2px; background: linear-gradient(90deg, transparent, var(--tier-edge)); }
.sponsor-tier::after { background: linear-gradient(90deg, var(--tier-edge), transparent); }
.section-title.sponsor-tier { margin: 8px auto 26px; }
.home .section-title.sponsor-tier { margin-bottom: 44px; }
.section-title.sponsor-tier::before, .section-title.sponsor-tier::after { flex: 1; }
.sponsor-tier .tier-heading { display: inline-flex; flex: 0 0 auto; align-items: center; justify-content: center; gap: 10px; padding: 0; white-space: nowrap; }
.sponsor-tier .tier-emblem { display: block; flex: 0 0 14px; align-self: center; width: 14px; height: 14px; padding: 0; background: linear-gradient(135deg, var(--tier-edge), var(--tier-ink)); clip-path: polygon(50% 0, 62% 38%, 100% 50%, 62% 62%, 50% 100%, 38% 62%, 0 50%, 38% 38%); }
.sponsor-tier--diamond .tier-emblem { flex-basis: 10px; width: 10px; height: 10px; border: 1.5px solid var(--tier-ink); background: linear-gradient(135deg, transparent, var(--tier-edge)); clip-path: none; transform: rotate(45deg); }
.sponsor-tier--institutional .tier-emblem, .sponsor-tier--technology .tier-emblem { flex-basis: 20px; width: 20px; height: 20px; background: none; clip-path: none; color: var(--tier-ink); filter: drop-shadow(0 0 5px var(--tier-edge)); }
.sponsor-tier .tier-emblem svg { display: block; width: 100%; height: 100%; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
/* Oswald places the visible letters below the line-box center. Keep the
   lettering optically level with the centered rules and tier emblems. */
.sponsor-tier .tier-name { flex: 0 0 auto; padding: 0; white-space: nowrap; transform: translateY(-.125em); }
.sponsor-tier .tier-name, .partner-ticker__role > * { color: var(--tier-ink); filter: drop-shadow(0 0 7px color-mix(in srgb, var(--tier-edge) 55%, transparent)); }
@media (max-width: 480px) {
  .sponsor-tier { gap: 8px; font-size: clamp(1.05rem, 5vw, 1.45rem); }
  .sponsor-tier::before, .sponsor-tier::after { min-width: 6px; }
  .sponsor-tier .tier-heading { gap: 8px; }
}
@supports ((background-clip: text) or (-webkit-background-clip: text)) {
  .sponsor-tier .tier-name, .partner-ticker__role > * {
    color: transparent; background: linear-gradient(110deg, var(--tier-ink) 36%, var(--tier-glint) 49%, var(--tier-ink) 62%);
    background-size: 260% 100%; background-position: 100% 50%; -webkit-background-clip: text; background-clip: text;
    animation: sponsor-sheen 9s ease-in-out infinite;
  }
  .sponsor-tier--diamond .tier-name, .sponsor-tier--diamond .partner-ticker__role > * { animation-delay: -3s; }
  .sponsor-tier--platinum .tier-name, .sponsor-tier--platinum .partner-ticker__role > * { animation-delay: -6s; }
  .sponsor-tier--technology .tier-name, .sponsor-tier--technology .partner-ticker__role > * { animation-delay: -4.5s; }
}
@keyframes sponsor-sheen {
  0%, 65% { background-position: 100% 50%; }
  90%, 100% { background-position: -100% 50%; }
}
@media (prefers-reduced-motion: reduce) {
  .sponsor-tier .tier-name, .partner-ticker__role > * { animation: none; background: none; color: var(--tier-ink); }
}

@media (max-width: 900px) {
  .home-cards, .home-partners { grid-template-columns: 1fr; }
  .home-events { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .home-event:nth-child(odd)::before { display: none; }
  .home-logos { grid-template-columns: repeat(2, 1fr); }
  .home-feature { gap: 32px; }
}
@media (max-width: 760px) {
  .home-hero { padding-block: 40px 32px; }
  .hero-layout { grid-template-columns: 20% minmax(0, 1fr); gap: 28px clamp(12px, 3vw, 24px); }
  .hero-animation { max-width: 190.08px; }
  .home-sec { padding-block: 28px; }
  .home-schedule { padding: 24px 20px 20px; }
  .home-stages { grid-template-columns: 1fr; gap: 18px; }
  .home-stages::before { left: 7px; right: auto; top: 8px; bottom: 8px; width: 2px; height: auto; background: rgba(255, 255, 255, .5); }
  .home-stages li { align-items: flex-start; text-align: left; padding: 0 0 0 34px; }
  .home-stages li::before { top: 2px; left: 0; margin-left: 0; }
  .stage-date { margin-top: 7px; font-size: 1.08rem; }
  .home-card { padding: 24px 20px; }
  .home-feature { grid-template-columns: 1fr; gap: 20px; }
  .home-feature + .home-feature { margin-top: 44px; }
  .home-feature:nth-of-type(even) .home-feature-text { order: 0; }
  .home-editions { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
  .edition img { border-radius: 12px; }
  .edition-name { margin-top: 10px; font-size: 1.1rem; }
  .edition-years { font-size: .82rem; }
  .home-logos { gap: 12px; }
  .home-logos a { padding: 14px; }
  .home-logos img { max-height: 60px; }
  .home-coordinator { flex-direction: column; text-align: center; gap: 10px; }
}
@media (max-width: 520px) {
  .home-events { grid-template-columns: 1fr; gap: 16px; }
  .home-event { padding: 12px 14px 12px 76px; }
  .home-event + .home-event::before { display: block; top: -13px; left: 50%; height: 8px; transform: translateX(-50%); }
  .home-event-kind { position: absolute; top: 14px; left: 12px; width: 54px; margin: 0; font-size: .59rem; letter-spacing: .04em; overflow-wrap: anywhere; }
  .home-event h4 { min-height: 0; font-size: .83rem; }
  .home-event-date { margin-top: 6px; font-size: 1rem; }
}
@media (max-width: 360px) {
  .hero-layout { column-gap: 8px; }
}
