/* Economics Olympiad Uzbekistan, version 2. Several pages in three languages, design direction 3, "Bright". */

:root {
  --ink: #0f1b2d;
  --muted: #586579;
  --bg: #ffffff;
  --soft: #f5f8fb;
  --line: #e4e9f0;
  --line-strong: #c5cfdb;
  --blue: #0a7ea4;
  --blue-dark: #086785;
  --blue-soft: #e7f4f8;
  --green: #1a9e3f;
  --green-soft: #e8f6ec;
  --red: #ce1126;
  --amber-soft: #fff6e0;
  --bronze: #7a4a1c;
  --bronze-soft: #f6e7d6;
  --bronze-line: #e5c9a8;
  --font: "Plus Jakarta Sans", "Manrope", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --r: 14px;
  --wrap: 1160px;
  --ease: cubic-bezier(.4, 0, .2, 1);
  --shadow: 0 6px 20px rgba(15, 27, 45, .06);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 88px; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 16.5px/1.6 var(--font); }
/* Uzbek and Russian text is added by JS. The page stays hidden until it is in place. */
.i18n-wait body { visibility: hidden; }
img { display: block; max-width: 100%; }
a { color: var(--blue); text-underline-offset: 2px; }
a:hover { color: var(--blue-dark); }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; border-radius: 6px; }

h1, h2, h3 { line-height: 1.15; margin: 0 0 .5em; letter-spacing: -.025em; font-weight: 800; }
h2 { font-size: clamp(1.8rem, 3.4vw, 2.5rem); }
h3 { font-size: 1.15rem; font-weight: 700; letter-spacing: -.01em; }
h4 { margin: 0 0 .4em; }
p { margin: 0 0 1em; }
ul, ol { margin: 0 0 1em; padding-left: 1.3em; }
li { margin-bottom: .35em; }
li::marker { color: var(--blue); }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }
.muted { color: var(--muted); }

/* Buttons and labels */
.btn { display: inline-block; font: 700 .97rem var(--font); padding: 13px 22px; border-radius: 10px; text-decoration: none; border: 1px solid var(--line); background: #fff; color: var(--ink); transition: background .2s var(--ease), border-color .2s var(--ease), color .2s var(--ease); }
.btn:hover { border-color: var(--line-strong); color: var(--ink); }
.btn.primary { background: var(--blue); border-color: var(--blue); color: #fff; }
.btn.primary:hover { background: var(--blue-dark); border-color: var(--blue-dark); color: #fff; }
/* "More" button at the end of a home page section */
.btn.more { border-color: var(--line-strong); color: var(--blue-dark); }
.btn.more::after { content: "\2192"; display: inline-block; margin-left: 8px; color: var(--blue); transition: transform .2s var(--ease); }
.btn.more:hover { border-color: var(--blue); color: var(--blue-dark); }
.btn.more:hover::after { transform: translateX(4px); }
.section-more { margin: 32px 0 0; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }
.tag { display: inline-block; font-weight: 700; font-size: .82rem; color: var(--blue); background: var(--blue-soft); padding: 6px 12px; border-radius: 999px; margin: 0 0 16px; }

/* Moving highlight. main.js adds a .thumb to the navbar, the language switch and the role switch,
   and moves it under the active item. */
.thumb { position: absolute; left: 0; top: 0; width: 0; height: 0; opacity: 0; pointer-events: none; border-radius: 8px; background: var(--blue-soft); }
.anim > .thumb { transition: transform .35s var(--ease), width .35s var(--ease), height .35s var(--ease), opacity .2s var(--ease); }

/* Flag line above the header, in the order of the flag of Uzbekistan */
.flag { height: 16px; background: linear-gradient(180deg, #0099b5 0 5px, var(--red) 5px 6px, #fff 6px 10px, var(--red) 10px 11px, var(--green) 11px 16px); }

/* Language switch: a thin bar above the header, and again in the footer */
.langbar { background: var(--soft); border-bottom: 1px solid var(--line); }
.langbar .wrap { max-width: 1360px; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.util { display: flex; align-items: center; gap: 20px; min-width: 0; font-size: .86rem; }
.util a { display: inline-flex; align-items: center; gap: 7px; color: var(--muted); text-decoration: none; font-weight: 600; white-space: nowrap; }
.util a:hover { color: var(--ink); }
.util svg { flex: none; color: var(--blue); }
.util-reg { color: var(--ink) !important; }
.util-reg:hover span:last-child { text-decoration: underline; }
.util .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 3px var(--green-soft); flex: none; }
@media (max-width: 900px) { .util-reg { display: none !important; } }
@media (max-width: 600px) {
  .util { gap: 14px; }
  .util-text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
}
.lang { display: flex; gap: 4px; flex-wrap: wrap; position: relative; }
.lang a { position: relative; z-index: 1; padding: 6px 10px; font-size: .86rem; font-weight: 600; color: var(--muted); text-decoration: none; border-radius: 6px; transition: color .25s var(--ease); }
.lang a:hover { color: var(--ink); }
.lang a[aria-current] { color: var(--blue); }
.lang:not(.has-thumb) a[aria-current] { background: var(--blue-soft); }
.lang > .thumb { border-radius: 6px; }
.langbar .lang { padding: 4px 0; }

/* Header */
.site-header { background: #fff; border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 10; }
.site-header .wrap { max-width: 1360px; }
.bar { display: flex; align-items: center; gap: 20px; min-height: 70px; flex-wrap: wrap; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--ink); flex: none; }
.brand img { height: 42px; width: auto; }
.brand .country { font-weight: 700; font-size: .9rem; color: var(--muted); padding-left: 12px; border-left: 1px solid var(--line); line-height: 1.2; }
/* Three logos (HEADER_LOGOS = 3 in js/layout.js): Economics Olympiad, WIUT, EFI, with a thin line between them */
.brands { display: flex; align-items: center; gap: 16px; flex: none; }
.brand-partner { display: flex; align-items: center; padding-left: 16px; border-left: 1px solid var(--line); }
.brand-partner img { height: 48px; width: auto; }
.site-nav { margin-left: auto; position: relative; }
.site-nav ul { list-style: none; display: flex; gap: 2px; margin: 0; padding: 0; }
.site-nav li { margin: 0; }
.site-nav a { display: block; position: relative; z-index: 1; white-space: nowrap; padding: 8px 10px; border-radius: 8px; color: var(--ink); text-decoration: none; font-weight: 600; font-size: .93rem; transition: color .25s var(--ease), background .2s var(--ease); }
.site-nav a:hover { background: var(--soft); }
.site-nav a.current { color: var(--blue); }
.site-nav a.current:hover { background: none; }
.site-nav:not(.has-thumb) a.current { background: var(--blue-soft); }
/* About dropdown. It opens on hover and on keyboard focus, and fades and slides in.
   .shut (set by main.js after Escape or a click) keeps it closed until the pointer leaves. */
.site-nav .has-drop { position: relative; }
.site-nav .has-drop > a { display: flex; align-items: center; gap: 5px; }
.site-nav .caret { flex: none; transition: transform .25s var(--ease); }
.site-nav .has-drop:hover > a:not(.current) { background: var(--soft); }
.site-nav .has-drop:hover .caret, .site-nav .has-drop:focus-within .caret { transform: rotate(180deg); }
.site-nav .has-drop.shut .caret { transform: none; }
.site-nav .dropdown { display: block; position: absolute; top: calc(100% + 8px); left: -6px; z-index: 20; min-width: 220px; padding: 6px; background: #fff; border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 14px 36px rgba(15, 27, 45, .14); opacity: 0; visibility: hidden; transform: translateY(-6px); transition: opacity .2s var(--ease), transform .2s var(--ease), visibility 0s linear .2s; }
/* Covers the gap between the link and the dropdown, so the pointer can cross it */
.site-nav .dropdown::before { content: ""; position: absolute; left: 0; right: 0; top: -10px; height: 10px; }
.site-nav .has-drop:hover > .dropdown, .site-nav .has-drop:focus-within > .dropdown { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
.site-nav .has-drop.shut > .dropdown { opacity: 0; visibility: hidden; transform: translateY(-6px); transition-delay: 0s, 0s, .2s; }
.site-nav .dropdown li { display: block; }
.site-nav .dropdown a { padding: 10px 12px; }
.site-nav .dropdown > .thumb { border-radius: 8px; }
.bar > .btn { padding: 10px 16px; white-space: nowrap; }
.bar > .btn .short { display: none; }
.nav-toggle { display: none; font: 700 .9rem var(--font); background: #fff; border: 1px solid var(--line); border-radius: 8px; padding: 8px 12px; cursor: pointer; color: var(--ink); }
@media (max-width: 1240px) {
  .nav-toggle { display: block; }
  .bar > .btn { margin-left: auto; }
  .site-nav { display: none; order: 9; width: 100%; margin: 0; padding-bottom: 12px; }
  .nav-open .site-nav { display: block; }
  .site-nav ul { flex-direction: column; }
  .site-nav a { padding: 12px; }
  .site-nav .dropdown, .site-nav .has-drop.shut > .dropdown { position: relative; top: auto; left: auto; min-width: 0; margin: 0 0 4px 12px; padding: 0 0 0 10px; border: 0; border-left: 1px solid var(--line); border-radius: 0; background: none; box-shadow: none; opacity: 1; visibility: visible; transform: none; transition: none; }
  .site-nav .dropdown::before, .site-nav .caret { display: none; }
}
/* The same, set by main.js when the labels in a language don't fit on one row */
.collapsed .nav-toggle { display: block; }
.collapsed .bar > .btn { margin-left: auto; }
.collapsed .site-nav { display: none; order: 9; width: 100%; margin: 0; padding-bottom: 12px; }
.collapsed.nav-open .site-nav { display: block; }
.collapsed .site-nav ul { flex-direction: column; }
.collapsed .site-nav a { padding: 12px; }
.collapsed .site-nav .dropdown, .collapsed .site-nav .has-drop.shut > .dropdown { position: relative; top: auto; left: auto; min-width: 0; margin: 0 0 4px 12px; padding: 0 0 0 10px; border: 0; border-left: 1px solid var(--line); border-radius: 0; background: none; box-shadow: none; opacity: 1; visibility: visible; transform: none; transition: none; }
.collapsed .site-nav .dropdown::before, .collapsed .site-nav .caret { display: none; }
@media (max-width: 520px) {
  .bar > .btn .long { display: none; }
  .bar > .btn .short { display: inline; }
  .brand img { height: 34px; }
  .brand .country { display: none; }
  .brands { gap: 10px; }
  .brand-partner { padding-left: 10px; }
  .brand-partner img { height: 36px; }
  .bar { gap: 10px; }
  .bar > .btn { padding: 9px 12px; font-size: .88rem; }
}

/* Sections. Every section starts the same way: a label that matches the navbar, a heading, one or two lines. */
section { padding: 88px 0; }
section.soft { background: var(--soft); }
.head { max-width: 46em; margin: 0 0 40px; }
.head h2 { margin-bottom: .4em; }
.head p { color: var(--muted); font-size: 1.08rem; margin: 0; }
.sub { margin-top: 56px; }
.sub > h3 { font-size: 1.35rem; margin-bottom: 16px; }
@media (max-width: 640px) { section { padding: 60px 0; } .sub { margin-top: 44px; } .head { margin-bottom: 32px; } }

/* Hero */
.hero { padding: 64px 0 72px; background: linear-gradient(180deg, var(--soft), #fff); }
.hero-grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: 56px; align-items: center; }
.hero h1 { font-size: clamp(2.3rem, 5vw, 3.9rem); }
.hero h1 span { color: var(--blue); }
.lead { font-size: 1.15rem; color: var(--muted); max-width: 31em; }
.ticks { display: flex; flex-wrap: wrap; gap: 8px 20px; margin: 28px 0 0; padding: 0; list-style: none; font-size: .93rem; color: var(--muted); font-weight: 600; }
.ticks li { margin: 0; }
.ticks li::before { content: "\2713"; color: var(--green); font-weight: 800; margin-right: 6px; }
.hero-photo img { border-radius: 20px; aspect-ratio: 5 / 4; object-fit: cover; width: 100%; }
@media (max-width: 900px) { .hero-grid { grid-template-columns: 1fr; gap: 36px; } }
@media (max-width: 640px) { .hero { padding: 40px 0 48px; } }
.hero + section { padding-top: 56px; }

/* Top of the inner pages */
.page-head { padding: 40px 0 48px; background: linear-gradient(180deg, var(--soft), #fff); border-bottom: 1px solid var(--line); }
.page-head h1 { font-size: clamp(2rem, 4.4vw, 3rem); margin-bottom: .35em; }
.page-head .lead { margin: 0; max-width: 40em; }
.crumbs { display: flex; flex-wrap: wrap; gap: 8px; font-size: .86rem; font-weight: 600; color: var(--muted); margin-bottom: 20px; }
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--blue); }
.crumbs [aria-current] { color: var(--ink); }
.chips { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 26px; }
.chips .label { font-size: .78rem; font-weight: 700; text-transform: uppercase; letter-spacing: .07em; color: var(--muted); margin-right: 6px; }
.chip { display: inline-block; padding: 8px 14px; border: 1px solid var(--line); border-radius: 999px; background: #fff; font-weight: 700; font-size: .9rem; text-decoration: none; color: var(--ink); transition: border-color .2s var(--ease), color .2s var(--ease); }
.chip:hover { border-color: var(--blue); color: var(--blue-dark); }
@media (max-width: 640px) { .page-head { padding: 28px 0 36px; } }

/* Four stages */
.stepper { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; position: relative; }
.stepper::before { content: ""; position: absolute; top: 22px; left: 12.5%; right: 12.5%; height: 2px; background: var(--line); }
.stepper > li { position: relative; display: flex; flex-direction: column; margin: 0; }
.stepper .n { flex: none; width: 46px; height: 46px; border-radius: 50%; background: #fff; border: 2px solid var(--blue); color: var(--blue); font-weight: 800; display: grid; place-items: center; margin: 0 auto 18px; position: relative; }
.stepper > li:last-child .n { background: var(--blue); color: #fff; }
.stepper .box { flex: 1; background: #fff; border: 1px solid var(--line); border-radius: var(--r); padding: 24px 22px; display: flex; flex-direction: column; }
.stepper .when { font-size: .88rem; font-weight: 700; color: var(--blue); margin-bottom: 4px; }
.plan { display: inline-block; font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); background: var(--soft); border: 1px solid var(--line); border-radius: 999px; padding: 1px 8px; margin-left: 4px; vertical-align: 1px; }
.stepper .where { font-size: .9rem; color: var(--muted); margin-bottom: 14px; }
.stepper p { color: var(--muted); font-size: .95rem; }
.stepper .out { margin-top: auto; display: flex; justify-content: space-between; align-items: center; gap: 12px; border-top: 1px solid var(--line); padding-top: 14px; font-size: .9rem; font-weight: 700; }
.stepper .out b { font-size: 1.4rem; color: var(--ink); }
@media (max-width: 1000px) {
  .stepper { grid-template-columns: 1fr; gap: 16px; }
  .stepper::before { display: none; }
  .stepper > li { display: grid; grid-template-columns: 46px 1fr; gap: 14px; align-items: start; }
  .stepper .n { margin: 0; }
}

/* Selection steps */
.sel { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; align-items: stretch; margin-bottom: 1em; }
.sel .card { padding: 22px 20px; }
.sel h4 { font-size: 1.02rem; margin: 2px 0 10px; line-height: 1.3; }
.sel-step { font-size: .78rem; font-weight: 700; text-transform: uppercase; letter-spacing: .07em; color: var(--blue); }
.sel .checks { font-size: .94rem; color: var(--muted); }
.sel .checks li { padding-top: 5px; padding-bottom: 5px; }
.sel .checks li::before { top: 6px; }
.sel table { font-size: .9rem; }
.sel th, .sel td { padding: 9px 12px; }
.sel .table-wrap:last-child { margin-bottom: 0; }
@media (max-width: 960px) { .sel { grid-template-columns: 1fr; } }

/* Results */
.medal { display: inline-block; font-size: .82rem; font-weight: 700; color: var(--bronze); background: var(--bronze-soft); border: 1px solid var(--bronze-line); border-radius: 999px; padding: 2px 10px; white-space: nowrap; }
.results td:first-child { font-weight: 700; width: 3.5em; }
.results tr.hl td { background: var(--blue-soft); }
.results td:nth-child(2), .team26 td:first-child { white-space: nowrap; }
/* On phones each result row stacks: place, name, then the school under the name */
@media (max-width: 600px) {
  .results thead, .team26 thead { display: none; }
  .results tr, .team26 tr { display: grid; padding: 12px 16px; border-bottom: 1px solid var(--line); }
  .results tbody tr:last-child, .team26 tbody tr:last-child { border-bottom: 0; }
  .results td, .team26 td { border: 0; padding: 0; background: none !important; white-space: normal !important; }
  .results tr { grid-template-columns: 2.2em 1fr; }
  .results tr.hl { background: var(--blue-soft); }
  .results td:first-child { grid-row: span 2; width: auto; }
  .results td:last-child { color: var(--muted); font-size: .9rem; }
  .team26 tr { grid-template-columns: 1fr auto; gap: 2px 12px; }
  .team26 td:first-child { font-weight: 700; }
  .team26 td:nth-child(2) { grid-row: 2; grid-column: 1; color: var(--muted); font-size: .9rem; }
  .team26 td:nth-child(3) { grid-row: 1 / span 2; grid-column: 2; align-self: center; font-size: .9rem; }
}
#results-2026 h4 { font-size: 1.02rem; margin: 0 0 8px; }
#results-2026 h4 + .table-wrap { margin-top: 12px; }
#results-2026 .table-wrap + h4 { margin-top: 28px; }

/* Two columns */
.cols { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: start; }
.cols > * { min-width: 0; }
@media (max-width: 860px) { .cols { grid-template-columns: 1fr; gap: 32px; } }

/* Tables */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--r); background: #fff; margin-bottom: 1em; }
table { width: 100%; border-collapse: collapse; font-size: .96rem; }
th, td { text-align: left; padding: 13px 16px; border-bottom: 1px solid var(--line); vertical-align: top; }
tbody tr:last-child > * { border-bottom: 0; }
thead th { background: var(--soft); font-size: .8rem; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); }
tbody th { font-weight: 800; }
@media (max-width: 600px) { th, td { padding: 11px 10px; } }

/* Callouts */
.note, .warn { padding: 16px 18px; border-radius: 12px; margin: 0 0 1em; }
.note { background: var(--blue-soft); border: 1px solid #c9e6ef; }
.warn { background: var(--amber-soft); border: 1px solid #f0d48a; }
.note > :last-child, .warn > :last-child { margin-bottom: 0; }

/* Role switch: student, parent, teacher. The blue background slides to the chosen button. */
.seg { position: relative; display: inline-flex; background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 4px; gap: 4px; margin: 0 0 24px; max-width: 100%; }
.seg > .thumb { background: var(--blue); border-radius: 9px; }
.seg-btn { position: relative; z-index: 1; font: 700 .95rem var(--font); border: 0; background: none; padding: 10px 22px; border-radius: 9px; cursor: pointer; color: var(--muted); transition: color .25s var(--ease); }
.seg-btn:hover { color: var(--ink); }
.seg-btn[aria-selected="true"] { color: #fff; }
.seg:not(.has-thumb) .seg-btn[aria-selected="true"] { background: var(--blue); }
@media (max-width: 420px) { .seg { display: flex; } .seg-btn { flex: 1; padding: 10px 8px; } }

/* The three panels sit on top of each other in one grid cell, so the block is always as tall as the
   tallest panel and the page does not jump when the role changes. */
.panels { display: grid; overflow-x: clip; }
.panels > .panel { grid-area: 1 / 1; min-width: 0; transition: opacity .3s var(--ease), transform .3s var(--ease), visibility 0s linear 0s; }
.panels > .panel:not(.on) { opacity: 0; visibility: hidden; pointer-events: none; transition-delay: 0s, 0s, .3s; }
.panels > .panel.before { transform: translateX(-16px); }
.panels > .panel.after { transform: translateX(16px); }
.panels.boxed > .panel { background: #fff; border: 1px solid var(--line); border-radius: var(--r); padding: 32px; }
.panel h3 { margin-bottom: 18px; }
.panel > :last-child { margin-bottom: 0; }
/* A shorter panel keeps its closing note at the bottom, so the empty space sits above the note. */
.panels.boxed > .panel { display: flex; flex-direction: column; }
.panel-foot { margin-top: auto; }
.panels.boxed .steps { margin-bottom: 24px; }
@media (max-width: 700px) { .panels.boxed > .panel { padding: 24px 20px; } }

/* Short numbered steps on the home page: three per role, equal height */
.mini { list-style: none; margin: 0; padding: 0; height: 100%; display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; counter-reset: m; }
.mini > li { counter-increment: m; margin: 0; background: #fff; border: 1px solid var(--line); border-radius: var(--r); padding: 24px 22px; }
.mini > li::before { content: counter(m); width: 38px; height: 38px; border-radius: 50%; border: 2px solid var(--blue); color: var(--blue); font-weight: 800; display: grid; place-items: center; margin-bottom: 16px; }
.mini h3 { font-size: 1.08rem; margin-bottom: 6px; }
.mini p { color: var(--muted); font-size: .95rem; margin: 0; }
@media (max-width: 800px) {
  .mini { grid-template-columns: 1fr; gap: 12px; }
  .mini > li { display: grid; grid-template-columns: 38px 1fr; column-gap: 14px; padding: 18px; }
  .mini > li::before { margin: 0; grid-row: span 2; }
}

/* Who can take part: facts next to the role steps */
.part-grid { display: grid; grid-template-columns: 300px 1fr; gap: 40px; align-items: start; }
.part-grid > * { min-width: 0; }
.facts { display: grid; gap: 12px; }
.fact { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 16px 18px; }
.fact b { display: block; font-size: 1.05rem; letter-spacing: -.01em; }
.fact span { font-size: .9rem; color: var(--muted); }
@media (max-width: 960px) { .part-grid { grid-template-columns: 1fr; gap: 28px; } .facts { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { .facts { grid-template-columns: 1fr; } }

.checks { list-style: none; padding: 0; margin: 0 0 1em; }
.checks li { padding: 8px 0 8px 32px; margin: 0; position: relative; }
.checks li::before { content: "\2713"; position: absolute; left: 0; top: 9px; width: 22px; height: 22px; border-radius: 50%; background: var(--green-soft); color: var(--green); display: grid; place-items: center; font-size: .75rem; font-weight: 800; }
.checks.two { columns: 2; column-gap: 40px; }
.checks.two li { break-inside: avoid; }
@media (max-width: 760px) { .checks.two { columns: 1; } }

/* Numbered steps */
.steps { counter-reset: s; list-style: none; padding: 0; margin: 8px 0 0; }
.steps > li { counter-increment: s; position: relative; padding: 0 0 24px 58px; margin: 0; }
.steps > li::before { content: counter(s); position: absolute; left: 0; top: -6px; width: 40px; height: 40px; border-radius: 50%; background: #fff; border: 2px solid var(--blue); color: var(--blue); font-weight: 800; display: grid; place-items: center; }
.steps > li:not(:last-child)::after { content: ""; position: absolute; left: 19px; top: 40px; bottom: 0; width: 2px; background: var(--line); }
.steps > li:last-child { padding-bottom: 0; }
.steps > li > :last-child { margin-bottom: 0; }
.steps h4 { margin: 0 0 .3em; font-size: 1.02rem; }
.steps p { color: var(--muted); margin-bottom: .6em; }
.steps ul { color: var(--muted); }
.steps details { margin: 0 0 12px; }
.steps details summary { padding: 11px 50px 11px 16px; font-size: .95rem; }
.steps details > :not(summary) { margin-left: 16px; margin-right: 16px; }


/* Cards */
.grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); }
.grid.four { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 960px) { .grid.four { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .grid.four { grid-template-columns: 1fr; } }
.card { border: 1px solid var(--line); border-radius: var(--r); padding: 24px 22px; background: #fff; }
.card > :last-child { margin-bottom: 0; }
.card p { color: var(--muted); }
a.card { color: inherit; text-decoration: none; display: block; transition: border-color .2s var(--ease), box-shadow .2s var(--ease); }
a.card:hover { border-color: var(--blue); box-shadow: var(--shadow); }
.more { font-weight: 700; color: var(--blue); }
.more::after { content: " \2192"; }
.grid.pair { grid-template-columns: 1fr 1fr; margin-bottom: 1em; }
@media (max-width: 560px) { .grid.pair { grid-template-columns: 1fr; } }

/* Team and achievements */
.team { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.team > * { min-width: 0; }
.team-photos { display: grid; grid-template-columns: 1.3fr 1fr; grid-template-rows: 1fr 1fr; gap: 12px; aspect-ratio: 5 / 4; }
.team-photos img { border-radius: var(--r); width: 100%; height: 100%; min-height: 0; object-fit: cover; }
.team-photos img:first-child { grid-row: span 2; }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin: 24px 0 0; }
.stat { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 16px; }
.stat b { display: block; font-size: 1.8rem; letter-spacing: -.03em; }
.stat span { font-size: .85rem; color: var(--muted); }
.stat.bronze { background: var(--bronze-soft); border-color: var(--bronze-line); }
.stat.bronze b, .stat.bronze span { color: var(--bronze); }
.team p { color: var(--muted); }
.team .small { font-size: .88rem; margin: 14px 0 0; }
@media (max-width: 860px) { .team { grid-template-columns: 1fr; gap: 32px; } }
@media (max-width: 520px) { .stats { gap: 8px; } .stat { padding: 12px; } .stat b { font-size: 1.5rem; } .stat span { font-size: .78rem; } }
.medalists { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 20px; }
.medalist { background: #fff; border: 1px solid var(--bronze-line); border-radius: var(--r); padding: 22px; }
.medalist h3 { margin: 12px 0 4px; font-size: 1.2rem; }
.medalist p { margin: 0; color: var(--muted); font-size: .94rem; }
@media (max-width: 560px) { .medalists { grid-template-columns: 1fr; } }
.wide-photo img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: var(--r); }

/* Gallery: album cards, then the photos of one album */
figure { margin: 0; }
figcaption { font-size: .88rem; color: var(--muted); margin-top: 8px; }
.albums { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.album { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; color: inherit; text-decoration: none; transition: border-color .2s var(--ease), box-shadow .2s var(--ease); }
.album:hover { border-color: var(--blue); box-shadow: var(--shadow); color: inherit; }
.album-cover { position: relative; display: grid; grid-template-columns: 2fr 1fr; grid-template-rows: 1fr 1fr; gap: 3px; aspect-ratio: 3 / 2; background: var(--line); overflow: hidden; }
.album-cover img { width: 100%; height: 100%; min-height: 0; object-fit: cover; transition: transform .4s var(--ease); }
.album-cover img:first-child { grid-row: span 2; }
.album:hover .album-cover img { transform: scale(1.04); }
.album .count { position: absolute; left: 12px; bottom: 12px; background: rgba(15, 27, 45, .8); color: #fff; font-size: .8rem; font-weight: 700; padding: 4px 10px; border-radius: 999px; }
.album .body { padding: 16px 20px 18px; flex: 1; }
.album h3 { margin-bottom: 4px; }
.album p { color: var(--muted); font-size: .9rem; margin: 0; }
@media (max-width: 900px) { .albums { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .albums { grid-template-columns: 1fr; } }
.photos { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px 20px; margin-bottom: 1.5em; }
.photo button { display: block; width: 100%; padding: 0; border: 0; background: var(--line); border-radius: 12px; overflow: hidden; cursor: zoom-in; }
.photo img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; transition: transform .4s var(--ease); }
.photo button:hover img { transform: scale(1.03); }
@media (max-width: 900px) { .photos { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { .photos { grid-template-columns: 1fr; } }

/* Full-screen photo viewer */
.lightbox { position: fixed; inset: 0; width: 100%; height: 100%; max-width: none; max-height: none; margin: 0; padding: 0; border: 0; background: transparent; color: #fff; }
.lightbox::backdrop { background: rgba(10, 16, 28, .93); }
.lb-stage { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 60px 72px 24px; }
.lb-stage img { max-width: 100%; max-height: calc(100vh - 170px); max-height: calc(100dvh - 170px); width: auto; height: auto; object-fit: contain; border-radius: 8px; }
.lb-cap { margin: 14px 0 0; text-align: center; font-size: .95rem; color: #dfe6f0; max-width: 46em; }
.lb-count { display: block; font-size: .82rem; color: #9aa7ba; margin-top: 2px; }
.lb-btn { position: absolute; width: 44px; height: 44px; border-radius: 50%; border: 0; background: rgba(255, 255, 255, .14); color: #fff; cursor: pointer; display: grid; place-items: center; transition: background .2s var(--ease); }
.lb-btn:hover { background: rgba(255, 255, 255, .28); }
.lb-btn:focus-visible { outline-color: #fff; border-radius: 50%; }
.lb-close { top: 12px; right: 12px; }
.lb-prev { left: 12px; top: 50%; margin-top: -22px; }
.lb-next { right: 12px; top: 50%; margin-top: -22px; }
@media (max-width: 640px) {
  .lb-stage { padding: 64px 12px 84px; }
  .lb-prev, .lb-next { top: auto; bottom: 20px; margin: 0; }
  .lb-prev { left: calc(50% - 56px); }
  .lb-next { right: calc(50% - 56px); }
}

/* Questions and rules */
details { border: 1px solid var(--line); border-radius: 12px; margin-bottom: 10px; background: #fff; transition: border-color .2s var(--ease); }
summary { cursor: pointer; font-weight: 700; padding: 16px 56px 16px 20px; list-style: none; position: relative; border-radius: 12px; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; position: absolute; right: 18px; top: 50%; transform: translateY(-50%); width: 26px; height: 26px; border-radius: 50%; background: var(--blue-soft); color: var(--blue); display: grid; place-items: center; font-weight: 800; }
details[open] summary::after { content: "\2212"; }
details > :not(summary) { margin-left: 20px; margin-right: 20px; color: var(--muted); }
details > :last-child { margin-bottom: 18px; }
details[open] { border-color: var(--line-strong); }
.faq-group h3 { font-size: .8rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); margin: 0 0 12px; }
.faq-group + .faq-group { margin-top: 32px; }
.contact-cards { display: grid; gap: 12px; }
.contact-cards .card { padding: 20px 22px; }
.contact-cards h3 { font-size: 1rem; margin-bottom: 4px; }
.contact-cards p { margin: 0; overflow-wrap: anywhere; }
.contact-cards.row { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 860px) { .contact-cards.row { grid-template-columns: 1fr; } }
@media (min-width: 861px) { .sticky { position: sticky; top: 96px; } }

/* Partners */
.partners { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.partner { background: #fff; border: 1px solid var(--line); border-radius: var(--r); display: flex; flex-direction: column; overflow: hidden; color: inherit; text-decoration: none; transition: border-color .2s var(--ease), box-shadow .2s var(--ease); }
a.partner:hover { border-color: var(--blue); box-shadow: var(--shadow); color: inherit; }
.partner .logo-box { height: 150px; display: grid; place-items: center; padding: 20px 24px; border-bottom: 1px solid var(--line); background: #fff; }
.partner .logo-box img { max-height: 108px; max-width: 100%; width: auto; object-fit: contain; }
.partner .logo-box img.low { max-height: 72px; }
.partner .logo-box .wordmark { font-weight: 800; font-size: 1.35rem; text-align: center; line-height: 1.25; color: #13234a; letter-spacing: -.02em; }
.partner .body { padding: 18px 20px 20px; flex: 1; display: flex; flex-direction: column; }
.partner .role { font-size: .78rem; font-weight: 700; text-transform: uppercase; letter-spacing: .07em; color: var(--blue); margin-bottom: 6px; }
.partner h3 { font-size: 1rem; margin-bottom: 6px; }
.partner p { color: var(--muted); font-size: .92rem; margin-bottom: 10px; }
.partner .body > :last-child { margin-bottom: 0; }
.partner .site { margin-top: auto; font-size: .9rem; font-weight: 700; color: var(--blue); }
/* Home page: logo, role and name only */
.partners.compact .logo-box { height: 120px; }
.partners.compact .logo-box img { max-height: 84px; }
.partners.compact .logo-box img.low { max-height: 58px; }
/* Partners page: two wide cards per row, logo on the left */
.partners.wide { grid-template-columns: 1fr 1fr; }
.partners.wide .partner { flex-direction: row; }
.partners.wide .logo-box { width: 200px; height: auto; min-height: 170px; flex: none; border-bottom: 0; border-right: 1px solid var(--line); }
.partners.wide .body { padding: 24px; }
.partners.wide h3 { font-size: 1.15rem; }
.partners.wide p { font-size: .97rem; }
@media (max-width: 1000px) { .partners { grid-template-columns: 1fr 1fr; } .partners.wide { grid-template-columns: 1fr; } }
@media (max-width: 600px) {
  .partners, .partners.wide { grid-template-columns: 1fr; gap: 14px; }
  .partner, .partners.wide .partner { flex-direction: row; }
  .partner .logo-box, .partners.wide .logo-box, .partners.compact .logo-box { width: 132px; height: auto; min-height: 0; flex: none; padding: 14px; border-bottom: 0; border-right: 1px solid var(--line); }
  .partner .logo-box img, .partners.compact .logo-box img { max-height: 90px; }
  .partner .logo-box .wordmark { font-size: .85rem; }
  .partner .body, .partners.wide .body { padding: 16px; }
}

/* Dark register block */
.closing { background: var(--ink); color: #fff; border-radius: 24px; padding: 64px 32px; text-align: center; }
.closing h2 { color: #fff; }
.closing p { color: #b8c3d4; font-size: 1.08rem; max-width: 30em; margin: 0 auto 26px; }
.closing .btn.primary { background: #fff; border-color: #fff; color: var(--ink); }
.closing .btn.primary:hover { background: var(--blue-soft); }
section.cta { padding-top: 0; }
section.soft + section.cta { padding-top: 88px; }
@media (max-width: 640px) { section.soft + section.cta { padding-top: 60px; } }
@media (max-width: 520px) { .closing { padding: 48px 22px; border-radius: 18px; } }

/* Footer */
.site-footer { background: var(--soft); border-top: 1px solid var(--line); font-size: .93rem; color: var(--muted); }
.f-top { display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap; padding: 40px 0 32px; border-bottom: 1px solid var(--line); }
.f-top p { margin: 10px 0 0; max-width: 30em; }
.f-cols { display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px; padding: 32px 0; }
.f-cols h4 { margin: 0 0 12px; font-size: .78rem; text-transform: uppercase; letter-spacing: .08em; color: var(--ink); }
.f-cols ul { list-style: none; margin: 0; padding: 0; }
.f-cols li { margin-bottom: 8px; overflow-wrap: anywhere; }
.f-cols a { color: var(--muted); text-decoration: none; }
.f-cols a:hover { color: var(--blue); }
.f-bottom { display: flex; justify-content: space-between; align-items: center; gap: 12px 16px; flex-wrap: wrap; padding: 20px 0 28px; border-top: 1px solid var(--line); font-size: .86rem; }
.f-bottom a { color: var(--muted); }
@media (max-width: 860px) { .f-cols { grid-template-columns: 1fr 1fr; } }
@media (max-width: 420px) { .f-cols > div:last-child { grid-column: 1 / -1; } }

/* Narrow phones: keep the logo, register button and menu on one row, and the top bar on one row */
@media (max-width: 400px) {
  .site-header .wrap, .langbar .wrap { padding: 0 14px; }
  .langbar .wrap { gap: 8px; }
  .lang { gap: 0; flex-wrap: nowrap; }
  .lang a { padding: 6px 7px; }
  .util { gap: 12px; }
  .brand img { height: 30px; }
  .brands { gap: 8px; }
  .brand-partner { padding-left: 8px; }
  .brand-partner img { height: 32px; }
  .bar > .btn { padding: 9px 10px; }
  .nav-toggle { padding: 8px 9px; }
}
@media (max-width: 340px) {
  .brand img { height: 27px; }
  .brand-partner img { height: 28px; }
  .bar > .btn { padding: 8px 8px; font-size: .8rem; }
  .nav-toggle { padding: 8px 7px; font-size: .82rem; }
}

/* Three logos on small screens. js/layout.js shows only the round Economics Olympiad mark below 760px.
   Below 480px the menu button becomes an icon, so the logos, Register and the menu stay on one row. */
.nav-toggle .burger { display: none; }
@media (max-width: 760px) {
  .logos3 .brand img { height: 34px; }
  .logos3 .brands { gap: 10px; }
  .logos3 .brand-partner { padding-left: 10px; }
  .logos3 .brand-partner img { height: 36px; }
}
@media (max-width: 600px) {
  .logos3 .bar > .btn .long { display: none; }
  .logos3 .bar > .btn .short { display: inline; }
}
@media (max-width: 480px) {
  .logos3 .bar { gap: 8px; }
  .logos3 .brands { gap: 6px; }
  .logos3 .brand img { height: 30px; }
  .logos3 .brand-partner { padding-left: 6px; }
  .logos3 .brand-partner img { height: 30px; }
  .logos3 .bar > .btn { padding: 8px 8px; font-size: .82rem; }
  .logos3 .nav-toggle { padding: 6px 7px; line-height: 0; }
  .logos3 .nav-toggle .burger { display: block; }
  .logos3 .nav-toggle .label { display: none; }
}
@media (max-width: 370px) {
  .logos3 .brand img { height: 26px; }
  .logos3 .brand-partner img { height: 26px; }
  .logos3 .bar > .btn { padding: 7px 7px; font-size: .78rem; }
}
@media (max-width: 340px) {
  .logos3 .bar { gap: 6px; }
  .logos3 .brands { gap: 5px; }
  .logos3 .brand-partner { padding-left: 5px; }
  .logos3 .bar > .btn { padding: 7px 6px; font-size: .74rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; transition-delay: 0s !important; }
  .panels > .panel.before, .panels > .panel.after { transform: none; }
}


/* Registration form (register.html) */
[hidden] { display: none !important; }
.form-card { max-width: 720px; background: #fff; border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--shadow); padding: 36px; }
.form-note { font-size: .92rem; color: var(--muted); margin: 0 0 24px; }
.req { color: var(--red); font-weight: 700; }
.field { margin: 0 0 22px; }
.field label, .field legend { display: block; font-weight: 700; font-size: .96rem; margin: 0 0 8px; padding: 0; }
fieldset.field { border: 0; margin: 0 0 22px; padding: 0; min-width: 0; }
.field input[type="text"], .field input[type="email"], .field input[type="tel"], .field select {
  width: 100%; box-sizing: border-box; font: 500 1rem var(--font); color: var(--ink);
  padding: 12px 14px; border: 1px solid var(--line-strong); border-radius: 10px; background: #fff;
  transition: border-color .2s var(--ease), box-shadow .2s var(--ease);
}
.field select:disabled { background: var(--soft); color: var(--muted); }
.field input:focus, .field select:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px var(--blue-soft); }
.field [aria-invalid="true"] { border-color: var(--red); }
.field .help { font-size: .88rem; color: var(--muted); margin: 6px 0 0; }
.field .err { font-size: .9rem; color: var(--red); font-weight: 600; margin: 6px 0 0; }
.radios { display: flex; flex-wrap: wrap; gap: 12px; }
.radios label { display: inline-flex; align-items: center; gap: 8px; margin: 0; padding: 11px 16px; border: 1px solid var(--line-strong); border-radius: 10px; cursor: pointer; font-weight: 600; }
.radios label:has(input:checked) { border-color: var(--blue); background: var(--blue-soft); }
.radios input { accent-color: var(--blue); margin: 0; width: 18px; height: 18px; }
.form-error { background: #fdecee; color: var(--red); border-radius: 10px; padding: 12px 16px; font-weight: 600; margin: 0 0 22px; }
.form-actions { margin-top: 8px; }
.form-actions .btn { font-size: 1rem; padding: 14px 26px; cursor: pointer; }
.form-actions .btn:disabled { opacity: .6; cursor: default; }
.form-done { border: 1px solid var(--green); background: var(--green-soft); border-radius: var(--r); padding: 28px; }
.form-done:focus { outline: none; }
.form-done h2 { margin-top: 0; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
@media (max-width: 600px) { .form-card { padding: 24px 18px; } }
