/* «Олимпиадный центр» and «Наши достижения»: medals, charts and the moments of the year (inc/achievements.php).
   Metal colours are the medals' own; everything else keeps the site's blues. Loaded after pages.css. */

:root { --gold: #f2c14e; --gold-deep: #b98712; --silver: #dfe6ee; --silver-deep: #8794a6; --bronze: #d39261; --bronze-deep: #8f5329; }

/* ===== shared pieces ===== */
.oc-kicker { display: inline-flex; align-items: center; gap: 12px; margin: 0; font: 700 var(--step-small)/1.2 var(--text); letter-spacing: 0.1em; text-transform: uppercase; color: var(--orange-soft); }
.field--white .oc-kicker, .field--ice .oc-kicker { color: var(--blue-strong); }
.oc-kicker::before { content: ""; width: 28px; height: 4px; border-radius: 2px; background: currentColor; }
/* a medal of any size: its size is its font-size; a raised rim and a star struck in the middle, as on the big ones */
.disc { display: inline-grid; place-items: center; width: 1em; height: 1em; border-radius: 50%; flex: none; font-style: normal; box-shadow: inset 0 0 0 0.09em rgb(255 255 255 / 0.5), inset 0 -0.08em 0.16em rgb(0 0 0 / 0.2), 0 0.08em 0.22em rgb(0 0 0 / 0.25); }
.disc::after { content: "★"; font-size: 0.52em; line-height: 1; color: rgb(0 0 0 / 0.2); text-shadow: 0 1px 0 rgb(255 255 255 / 0.45); }
.disc--gold { background: radial-gradient(circle at 34% 30%, #fff6cf 0 12%, var(--gold) 40%, var(--gold-deep) 100%); }
.disc--silver { background: radial-gradient(circle at 34% 30%, #ffffff 0 12%, var(--silver) 40%, var(--silver-deep) 100%); }
.disc--bronze { background: radial-gradient(circle at 34% 30%, #ffe2c8 0 12%, var(--bronze) 40%, var(--bronze-deep) 100%); }
.chip { display: inline-flex; align-items: center; gap: 7px; padding: 4px 11px 4px 6px; border-radius: 999px; background: var(--ice); font-weight: 700; font-size: 0.95rem; line-height: 1.3; color: var(--navy); white-space: nowrap; }
.chip .disc { font-size: 20px; }
.chip--note { padding-left: 11px; font-weight: 600; white-space: normal; }
.field--ice .chip { background: var(--white); }

/* a medal on its ribbon */
.medal { position: relative; display: grid; justify-items: center; width: clamp(64px, 7vw, 92px); }
.medal__ribbon { width: 56%; height: clamp(30px, 3.4vw, 44px); background: linear-gradient(90deg, #0a4fa6 0 33%, #ffffff 33% 66%, #1673dd 66%); clip-path: polygon(0 0, 100% 0, 78% 100%, 22% 100%); }
.medal__disc { width: 100%; aspect-ratio: 1; margin-top: -6px; border-radius: 50%; box-shadow: inset 0 0 0 5px rgb(255 255 255 / 0.28), inset 0 -8px 16px rgb(0 0 0 / 0.18), 0 14px 30px rgb(0 0 0 / 0.3); }
.medal--gold .medal__disc { background: radial-gradient(circle at 34% 28%, #fff6cf 0 10%, var(--gold) 42%, var(--gold-deep) 100%); }
.medal--silver .medal__disc { background: radial-gradient(circle at 34% 28%, #ffffff 0 10%, var(--silver) 42%, var(--silver-deep) 100%); }
.medal--bronze .medal__disc { background: radial-gradient(circle at 34% 28%, #ffe2c8 0 10%, var(--bronze) 42%, var(--bronze-deep) 100%); }
.medal__disc { position: relative; display: grid; place-items: center; overflow: hidden; }
.medal__disc::before { content: "★"; position: absolute; inset: 14%; display: grid; place-items: center; border-radius: 50%; box-shadow: inset 0 0 0 2px rgb(255 255 255 / 0.45), inset 0 2px 6px rgb(0 0 0 / 0.18); font-size: 1em; line-height: 1; color: rgb(0 0 0 / 0.16); text-shadow: 0 1px 0 rgb(255 255 255 / 0.5); }
.medal { font-size: clamp(22px, 2.6vw, 34px); }
.medal--big { font-size: 0; }
.medal--big .medal__disc::before { content: ""; }
.medal__disc::after { content: ""; position: absolute; inset: -40%; background: linear-gradient(115deg, transparent 40%, rgb(255 255 255 / 0.65) 50%, transparent 60%); transform: translateX(-70%); }

/* buttons that pick */
.tag { min-height: 44px; padding: 0 18px; border: 2px solid transparent; border-radius: 999px; background: none; color: var(--navy); font: 700 var(--step-small)/1.2 var(--text); cursor: pointer; transition: background-color var(--t-hover) ease, color var(--t-hover) ease, border-color var(--t-hover) ease, opacity var(--t-hover) ease; }
.tag { display: inline-flex; align-items: center; gap: 8px; border-color: #7f95ae; background: var(--white); }
.tag b { color: var(--blue-strong); }
.tag[aria-pressed="true"] { border-color: var(--navy); background: var(--navy); color: var(--white); }
.tag[aria-pressed="true"] b { color: var(--orange-soft); }
.tag:active { transform: scale(0.97); }
@media (hover: hover) and (pointer: fine) { .tag:hover { border-color: var(--orange); } }

.chart { margin: 0; padding: clamp(20px, 3vw, 36px); border-radius: 28px; background: var(--white); box-shadow: 0 1px 0 rgb(3 32 92 / 0.04), 0 18px 40px -24px rgb(3 32 92 / 0.25); }
.chart__title { margin: 0 0 18px; font: 700 var(--step-lead)/1.2 var(--display); }
.chart__note { margin: 16px 0 0; font-size: var(--step-small); color: #3c4f63; }

/* ===== Olympiad centre: the hero, the team behind the year's count while medals fall ===== */
.oc-hero { position: relative; overflow: clip; display: grid; align-items: center; min-height: min(100svh, 960px); padding: clamp(120px, 12vw, 160px) 0 clamp(56px, 7vw, 96px); }
.oc-hero__photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 60% 35%; }
.oc-hero__shade { position: absolute; inset: 0; background: linear-gradient(90deg, rgb(3 32 92 / 0.97) 0%, rgb(3 32 92 / 0.88) 42%, rgb(3 32 92 / 0.4) 100%), linear-gradient(0deg, rgb(3 32 92 / 0.95), transparent 45%); }
.oc-rain { position: absolute; inset: 0; display: none; overflow: hidden; perspective: 600px; pointer-events: none; }
.oc-rain__m { position: absolute; left: var(--x); top: -80px; display: grid; place-items: center; width: var(--s); height: var(--s); border-radius: 50%; opacity: 0.92; box-shadow: inset 0 0 0 2px rgb(255 255 255 / 0.45), inset 0 0 0 calc(var(--s) * 0.12) rgb(0 0 0 / 0.08), 0 8px 18px rgb(0 0 0 / 0.4); }
.oc-rain__m::after { content: "★"; font-size: calc(var(--s) * 0.5); line-height: 1; font-style: normal; color: rgb(0 0 0 / 0.22); }
.oc-hero__inner { position: relative; display: grid; justify-items: start; gap: 18px; }
.oc-hero .crumbs ol { justify-content: flex-start; }
.oc-hero__title { font: 900 calc(clamp(3.4rem, 1.4rem + 7.4vw, 9rem) * var(--display-scale) * 1.2)/0.95 var(--display); letter-spacing: -0.03em; }
.oc-hero__lead { max-width: 44ch; font-size: var(--step-lead); line-height: 1.4; color: var(--ice-2); text-wrap: pretty; }
.oc-hero__score { display: flex; flex-wrap: wrap; align-items: flex-end; gap: clamp(24px, 4vw, 64px); margin-top: clamp(10px, 2vw, 28px); }
.oc-count { position: relative; display: grid; margin: 0; }
.oc-count::before { content: ""; position: absolute; inset: -30% -40% -10%; background: radial-gradient(closest-side, rgb(242 193 78 / 0.35), rgb(242 193 78 / 0)); pointer-events: none; }
.oc-count__value, .oc-count__label { position: relative; }
.oc-count__value { font: 900 clamp(5.5rem, 2.4rem + 10vw, 12.5rem)/0.85 var(--display); letter-spacing: -0.05em; color: var(--gold); }
.oc-count__label { margin-top: 8px; font-weight: 800; font-size: var(--step-small); letter-spacing: 0.14em; text-transform: uppercase; }
.oc-podium { display: flex; gap: clamp(16px, 3vw, 40px); margin: 0; }
.oc-podium__item { display: grid; justify-items: center; gap: 6px; }
.oc-podium .medal { width: clamp(52px, 5vw, 72px); }
.oc-podium__value { font: 800 calc(clamp(2.2rem, 1.6rem + 2.4vw, 3.8rem) * var(--display-scale) * 1.2)/1 var(--display); }
.oc-podium__label { font-size: var(--step-small); font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ice-2); }
.oc-podium__item--gold .oc-podium__value { color: var(--gold); }
.oc-podium__item--silver .oc-podium__value { color: var(--silver); }
.oc-podium__item--bronze .oc-podium__value { color: var(--bronze); }
.oc-hero__down { display: inline-flex; align-items: center; gap: 10px; margin-top: clamp(12px, 2vw, 28px); padding: 12px 20px; border: 2px solid rgb(255 255 255 / 0.4); border-radius: 999px; color: var(--white); font-weight: 700; text-decoration: none; transition: border-color var(--t-hover) ease, background-color var(--t-hover) ease; }
.oc-hero__down svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
@media (hover: hover) and (pointer: fine) { .oc-hero__down:hover { border-color: var(--gold); background: rgb(242 193 78 / 0.12); } }
@media (max-width: 760px) { .oc-hero__shade { background: linear-gradient(0deg, rgb(3 32 92 / 0.97) 30%, rgb(3 32 92 / 0.75)); } }

/* ===== the medal table, ranked as at the Olympic Games ===== */
.oc-table { background: radial-gradient(80% 60% at 50% 0%, #0b3a8c, var(--navy) 70%); }
.board { max-width: 1000px; margin-inline: auto; overflow-x: auto; border-radius: 28px; background: rgb(255 255 255 / 0.04); box-shadow: inset 0 0 0 1px rgb(255 255 255 / 0.14), 0 40px 80px -40px rgb(0 0 0 / 0.6); }
.board__table { width: 100%; border-collapse: separate; border-spacing: 0; font-variant-numeric: tabular-nums; }
.board__table th, .board__table td { padding: 16px 14px; text-align: center; vertical-align: middle; }
.board__table thead th { font-size: var(--step-small); font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ice-2); border-bottom: 1px solid rgb(255 255 255 / 0.16); }
.board__table thead .disc { font-size: 32px; vertical-align: middle; }
.board__table .board__subject { text-align: left; font-weight: 700; font-size: 1.1rem; white-space: nowrap; }
.board .oc-icon { display: inline-grid; width: 42px; height: 42px; margin-right: 14px; border-radius: 12px; background: rgb(255 255 255 / 0.1); color: var(--white); vertical-align: middle; }
.board .oc-icon--biology::before { filter: grayscale(1) brightness(3); }
.board__row td, .board__row th { border-bottom: 1px solid rgb(255 255 255 / 0.08); transition: background-color var(--t-hover) ease; }
@media (hover: hover) and (pointer: fine) { .board__row:hover td, .board__row:hover th { background: rgb(255 255 255 / 0.05); } }
.board__medal { font: 800 1.5rem/1 var(--display); }
.board__medal--gold { color: var(--gold); }
.board__medal--silver { color: var(--silver); }
.board__medal--bronze { color: var(--bronze); }
.board__no { display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: rgb(255 255 255 / 0.1); font-weight: 800; }
.board__no--1 { background: radial-gradient(circle at 34% 30%, #fff6cf 0 12%, var(--gold) 40%, var(--gold-deep) 100%); color: var(--navy); }
.board__no--2 { background: radial-gradient(circle at 34% 30%, #ffffff 0 12%, var(--silver) 40%, var(--silver-deep) 100%); color: var(--navy); }
.board__no--3 { background: radial-gradient(circle at 34% 30%, #ffe2c8 0 12%, var(--bronze) 40%, var(--bronze-deep) 100%); color: var(--navy); }
.board__table .board__total { position: relative; min-width: 220px; text-align: right; }
.board__bar { position: absolute; left: 14px; right: 70px; top: 50%; height: 10px; margin-top: -5px; border-radius: 5px; background: rgb(255 255 255 / 0.08); }
.board__bar::after { content: ""; position: absolute; top: 0; bottom: 0; left: 0; width: calc(var(--w) * 100%); border-radius: 5px; background: linear-gradient(90deg, var(--orange), #9fd0ff); transform-origin: left; }
.board__total b { position: relative; font: 900 1.7rem/1 var(--display); }
.board__table tfoot th, .board__table tfoot td { border-top: 2px solid rgb(255 255 255 / 0.25); font-weight: 800; }
.board__table tfoot .board__total b { color: var(--gold); }
@media (max-width: 700px) { .board__table th, .board__table td { padding: 12px 8px; } .board__table .board__total { min-width: 64px; } .board__bar { display: none; } .board .oc-icon { display: none; } .board__medal { font-size: 1.2rem; } .board__table .board__subject { font-size: 0.95rem; white-space: normal; } }

/* ===== 133 medals as two rings: metals inside, subjects outside ===== */
.oc-rings__inner { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); align-items: center; gap: clamp(28px, 5vw, 72px); }
.oc-rings__text { display: grid; gap: 28px; }
.oc-rings__text header { display: grid; justify-items: start; gap: 14px; }
.oc-rings__legend { display: grid; gap: 8px; }
.oc-rings__key { display: grid; grid-template-columns: auto minmax(0, 1fr) auto auto; align-items: center; gap: 14px; width: 100%; padding: 14px 18px; border: 2px solid transparent; border-radius: 18px; background: var(--ice); color: var(--navy); font: 600 1rem/1.2 var(--text); text-align: left; cursor: pointer; transition: border-color var(--t-hover) ease, background-color var(--t-hover) ease, transform var(--t-press) var(--ease-out); }
.oc-rings__key i { width: 18px; height: 18px; border-radius: 6px; background: var(--c); }
.oc-rings__key b { font: 800 1.5rem/1 var(--display); }
.oc-rings__key small { min-width: 3.2em; font-size: 0.9rem; font-weight: 700; text-align: right; color: #5d7088; }
.oc-rings__key.is-on { border-color: var(--orange); background: var(--white); }
.oc-rings__key:active { transform: scale(0.98); }
@media (hover: hover) and (pointer: fine) { .oc-rings__key:hover { border-color: var(--orange); } }
.ring { position: relative; justify-self: center; width: min(100%, 520px); margin: 0; }
.ring__svg { display: block; width: 100%; height: auto; overflow: visible; }
.ring__arc { fill: none; stroke-width: 46; stroke-dasharray: var(--p) 100; stroke-dashoffset: var(--o); cursor: pointer; transition: stroke-width 300ms var(--ease-out), opacity 300ms ease; }
.ring__arc[data-ring="metal"] { stroke-width: 30; }
.ring.is-focus .ring__arc:not(.is-on) { opacity: 0.18; }
.ring__arc.is-on { stroke-width: 58; }
.ring__arc[data-ring="metal"].is-on { stroke-width: 38; }
.ring__center { position: absolute; inset: 0; display: grid; place-content: center; justify-items: center; gap: 4px; text-align: center; pointer-events: none; }
.ring__center b { font: 900 clamp(2.8rem, 1.8rem + 3.6vw, 4.6rem)/1 var(--display); color: var(--navy); }
.ring__center span { max-width: 9ch; font-weight: 700; line-height: 1.2; color: #3c4f63; }
@media (max-width: 860px) { .oc-rings__inner { grid-template-columns: minmax(0, 1fr); } .ring { order: -1; width: min(100%, 380px); } }

/* ===== every olympiad of the year as a card with its medals, in a dark hall ===== */
.oc-hall { background: radial-gradient(90% 60% at 50% 0%, #0b3a8c, var(--navy) 65%); }
.oc-icon { position: relative; display: grid; place-items: center; width: 52px; height: 52px; border-radius: 16px; background: var(--ice); color: var(--blue-strong); }
.oc-icon::before { font: 800 22px/1 var(--display); }
.oc-icon--math::before { content: "∑"; }
.oc-icon--info::before { content: "</>"; font-size: 17px; }
.oc-icon--physics::before { content: "⚛"; font-size: 26px; }
.oc-icon--biology::before { content: "🧬"; font-size: 24px; filter: grayscale(1) brightness(3); }
.oc-icon--ai::before { content: "AI"; font-size: 18px; }
.oc-switch { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 10px; margin-bottom: clamp(24px, 3vw, 40px); }
.oc-switch__btn { display: grid; grid-template-columns: auto minmax(0, 1fr); grid-template-areas: "icon n" "name name" "split split"; align-items: center; gap: 10px 12px; padding: 16px; border: 2px solid rgb(255 255 255 / 0.14); border-radius: 22px; background: rgb(255 255 255 / 0.04); color: var(--white); font: inherit; text-align: left; cursor: pointer; transition: background-color 300ms ease, color 300ms ease, border-color 300ms ease, transform 400ms var(--ease-out), box-shadow 400ms var(--ease-out); }
.oc-switch__btn .oc-icon { grid-area: icon; width: 44px; height: 44px; border-radius: 13px; background: rgb(255 255 255 / 0.1); color: var(--white); }
.oc-switch__n { grid-area: n; justify-self: end; font: 900 calc(2.4rem * var(--display-scale) * 1.2)/1 var(--display); }
.oc-switch__name { grid-area: name; font-weight: 700; font-size: 0.95rem; line-height: 1.25; }
.oc-switch__split { grid-area: split; display: flex; gap: 3px; height: 8px; }
.oc-switch__split i { flex: 0 0 calc(var(--p) * 100% - 2px); border-radius: 4px; }
.oc-switch__part--gold { background: linear-gradient(90deg, var(--gold-deep), var(--gold)); }
.oc-switch__part--silver { background: linear-gradient(90deg, var(--silver-deep), var(--silver)); }
.oc-switch__part--bronze { background: linear-gradient(90deg, var(--bronze-deep), var(--bronze)); }
.oc-switch__btn[aria-selected="true"] { border-color: var(--white); background: var(--white); color: var(--navy); transform: translateY(-4px); box-shadow: 0 24px 40px -22px rgb(22 115 221 / 0.9); }
.oc-switch__btn[aria-selected="true"] .oc-icon { background: var(--orange); }
.oc-switch__btn:active { transform: scale(0.97); }
@media (hover: hover) and (pointer: fine) { .oc-switch__btn[aria-selected="false"]:hover { border-color: var(--gold); } }
@media (max-width: 900px) { .oc-switch { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; padding: 6px 2px 10px; } .oc-switch__btn { flex: 0 0 156px; scroll-snap-align: start; } }
.oc-panel[hidden] { display: none; }
.oc-panel__head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 24px; margin-bottom: 20px; }
.oc-panel__title { margin: 0; font: 800 calc(clamp(2rem, 1.4rem + 2vw, 3.2rem) * var(--display-scale) * 1.15)/1.05 var(--display); }
.oc-panel__chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; }
.oc-hall .chip { background: rgb(255 255 255 / 0.1); color: var(--white); }
.ocards { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 230px), 1fr)); gap: 14px; margin: 0; padding: 0; list-style: none; }
.ocard { --glow: rgb(109 184 255 / 0.35); position: relative; display: flex; flex-direction: column; gap: 10px; min-height: 200px; padding: 20px; overflow: clip; border-radius: 24px; background: linear-gradient(160deg, rgb(255 255 255 / 0.1), rgb(255 255 255 / 0.03)); box-shadow: inset 0 0 0 1px rgb(255 255 255 / 0.12); transition: transform 400ms var(--ease-out), box-shadow 400ms var(--ease-out); }
.ocard::after { content: ""; position: absolute; right: -50px; top: -50px; width: 150px; height: 150px; border-radius: 50%; background: radial-gradient(closest-side, var(--glow), transparent); pointer-events: none; }
.ocard--gold { --glow: rgb(242 193 78 / 0.55); box-shadow: inset 0 0 0 1px rgb(242 193 78 / 0.55), 0 18px 40px -26px rgb(242 193 78 / 0.7); }
.ocard--silver { --glow: rgb(223 230 238 / 0.35); }
.ocard--bronze { --glow: rgb(211 146 97 / 0.4); }
@media (hover: hover) and (pointer: fine) { .ocard:hover { transform: translateY(-6px); } }
.ocard__abbr { position: relative; margin: 0; font: 900 calc(clamp(2rem, 1.5rem + 1.4vw, 2.8rem) * var(--display-scale) * 1.2)/1 var(--display); letter-spacing: -0.01em; overflow-wrap: anywhere; }
.ocard__abbr--name { font-size: 1.25rem; line-height: 1.2; }
.ocard--gold .ocard__abbr { color: var(--gold); }
.ocard__name { position: relative; margin: 0; font-size: 0.92rem; line-height: 1.3; color: var(--ice-2); }
.ocard__medals { display: flex; flex-wrap: wrap; gap: 6px; margin: auto 0 0; padding-top: 6px; }
.ocard__medals .disc { font-size: 30px; }
.ocard__chips { display: flex; flex-wrap: wrap; gap: 6px; margin: 0; }
.ocard .chip { padding-block: 2px; font-size: 0.82rem; }
.ocard .chip .disc { font-size: 16px; }
.ocard__note { margin: auto 0 0; padding: 10px 12px; border-radius: 14px; background: rgb(109 184 255 / 0.16); font-weight: 700; font-size: 0.92rem; line-height: 1.3; }

/* ===== 13 of 17, lit on an arc ===== */
.oc-record { background: radial-gradient(70% 70% at 50% 100%, #1673dd, var(--blue) 70%); }
.oc-record__inner { display: grid; justify-items: center; gap: 22px; text-align: center; }
.oc-arc { position: relative; width: min(100%, 760px); }
.oc-arc__svg { display: block; width: 100%; height: auto; overflow: visible; }
.oc-arc__svg circle { fill: rgb(255 255 255 / 0.1); stroke: rgb(255 255 255 / 0.28); stroke-width: 2; }
.oc-arc__svg circle.is-ours { fill: var(--gold); stroke: #fff6cf; filter: drop-shadow(0 0 10px rgb(242 193 78 / 0.7)); }
.oc-arc__star { font: 700 18px/1 var(--display); fill: rgb(0 0 0 / 0.22); text-anchor: middle; dominant-baseline: central; pointer-events: none; }
.oc-arc__value { position: absolute; left: 0; right: 0; bottom: 2%; display: grid; justify-items: center; margin: 0; }
.oc-arc__value span { font: 900 clamp(6rem, 2.6rem + 13vw, 13rem)/0.85 var(--display); letter-spacing: -0.05em; color: var(--gold); }
.oc-arc__value small { font: 700 var(--step-lead)/1.2 var(--text); color: var(--ice-2); }
.oc-record__title { max-width: 28ch; font: 700 calc(clamp(1.8rem, 1.2rem + 2vw, 3.2rem) * var(--display-scale) * 1.15)/1.15 var(--display); text-wrap: balance; }

/* ===== the IOAI gold over its photo ===== */
.oc-star { position: relative; overflow: clip; padding-block: clamp(96px, 12vw, 180px); }
.oc-star__bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 45%; }
.oc-star__shade { position: absolute; inset: 0; background: linear-gradient(270deg, rgb(3 32 92 / 0.97) 0%, rgb(3 32 92 / 0.86) 52%, rgb(3 32 92 / 0.3) 100%); }
.oc-star__inner { position: relative; display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); align-items: center; gap: clamp(28px, 5vw, 72px); }
.oc-star__medal { justify-self: center; }
.medal--big { width: clamp(170px, 18vw, 260px); }
.medal--big .medal__ribbon { height: clamp(70px, 8vw, 120px); }
.medal__text { position: absolute; inset: 0; display: flex; align-items: baseline; justify-content: center; padding-top: 30%; font: 900 clamp(3.6rem, 2rem + 4vw, 6rem)/1 var(--display); color: #6e4f06; text-shadow: 0 1px 0 rgb(255 255 255 / 0.5); }
.medal__text small { font-size: 0.42em; }
.oc-star__text { display: grid; justify-items: start; gap: 20px; }
.oc-star__title { font: 800 calc(var(--step-head) * var(--display-scale) * 1.1)/1.08 var(--display); text-wrap: balance; }
.oc-star__lead { font-size: var(--step-lead); line-height: 1.4; }
.oc-star__facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; width: 100%; }
.oc-star__facts li { display: grid; gap: 4px; padding: 16px; border-radius: 20px; background: rgb(255 255 255 / 0.1); }
.oc-star__facts b { font: 800 calc(clamp(2rem, 1.6rem + 1.4vw, 3rem) * var(--display-scale) * 1.2)/1 var(--display); color: var(--gold); }
.oc-star__facts li > span { font-size: var(--step-small); font-weight: 600; line-height: 1.3; }
.oc-star__note { color: var(--ice-2); }
@media (max-width: 860px) { .oc-star__inner { grid-template-columns: minmax(0, 1fr); } .oc-star__shade { background: rgb(3 32 92 / 0.88); } }

/* ===== leaders ===== */
.oc-leaders__list { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr)); gap: var(--gap); }
.leader { display: grid; align-content: start; gap: 16px; padding: 24px; border-radius: 28px; background: var(--white); transition: transform 400ms var(--ease-out), box-shadow 400ms var(--ease-out); }
@media (hover: hover) and (pointer: fine) { .leader:hover { transform: translateY(-6px); box-shadow: 0 24px 40px -24px rgb(3 32 92 / 0.35); } }
.leader__head { display: flex; align-items: center; gap: 16px; }
.leader__face { display: grid; place-items: center; flex: none; width: 68px; height: 68px; overflow: clip; border: 2px solid var(--orange); border-radius: 16px; padding: 4px; }
.leader__img { width: 100%; height: 100%; object-fit: cover; border-radius: 10px; }
.leader__initials { display: grid; place-items: center; width: 100%; height: 100%; border-radius: 10px; background: linear-gradient(135deg, var(--blue-strong), var(--orange)); color: var(--white); font: 800 1.3rem/1 var(--display); }
.leader__name { font: 700 calc(1.6rem * var(--display-scale) * 1.15)/1.15 var(--display); }
.leader__meta { display: flex; flex-wrap: wrap; gap: 4px 10px; margin-top: 4px; font-size: var(--step-small); color: #3c4f63; }
.leader__meta span:first-child { font-weight: 700; color: var(--blue-strong); }
.leader__facts { display: grid; gap: 10px; }
.leader__fact { position: relative; padding-left: 28px; font-size: 0.97rem; line-height: 1.4; }
.leader__fact::before { content: "★"; position: absolute; left: 0; top: 0.05em; display: grid; place-items: center; width: 20px; height: 20px; border-radius: 50%; background: var(--ice-2); box-shadow: inset 0 0 0 2px rgb(255 255 255 / 0.5), inset 0 -2px 3px rgb(0 0 0 / 0.18); font-size: 11px; line-height: 1; color: rgb(0 0 0 / 0.2); }
.leader__fact--gold::before { background: radial-gradient(circle at 34% 30%, #fff6cf 0 12%, var(--gold) 40%, var(--gold-deep) 100%); }
.leader__fact--silver::before { background: radial-gradient(circle at 34% 30%, #ffffff 0 12%, var(--silver) 40%, var(--silver-deep) 100%); }
.leader__fact--bronze::before { background: radial-gradient(circle at 34% 30%, #ffe2c8 0 12%, var(--bronze) 40%, var(--bronze-deep) 100%); }

/* ===== coaches ===== */
.oc-coaches__inner { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); align-items: center; gap: 24px 48px; padding: clamp(24px, 4vw, 48px); border: 2px dashed #7f95ae; border-radius: 32px; }
.oc-coaches__title { margin-top: 12px; font: 700 calc(clamp(1.8rem, 1.3rem + 1.6vw, 2.8rem) * var(--display-scale) * 1.15)/1.15 var(--display); text-wrap: balance; }
.oc-coaches__note { margin-top: 10px; color: #3c4f63; }
.oc-coaches__list { display: grid; gap: 12px; }
.oc-coaches__list li { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; padding: 14px 18px; border-radius: 20px; background: var(--ice); }
.oc-coaches__subject { font-weight: 700; }
.oc-coaches__chips { display: flex; flex-wrap: wrap; gap: 6px; }
@media (max-width: 760px) { .oc-coaches__inner { grid-template-columns: minmax(0, 1fr); } }

/* ===== closing band ===== */
.oc-end__inner { display: grid; justify-items: center; gap: 28px; text-align: center; }
.oc-end__text { max-width: 30ch; font: 700 calc(clamp(1.9rem, 1.3rem + 2vw, 3.4rem) * var(--display-scale) * 1.15)/1.2 var(--display); text-wrap: balance; }
.oc-end__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
/* the closing words of «Наши достижения» as one wide band: a badge, the words across the page, the buttons */
.oc-end--wide { padding-block: clamp(44px, 5vw, 72px); }
.oc-end--wide .oc-end__inner { grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; justify-items: start; gap: 20px clamp(24px, 3vw, 44px); text-align: left; }
.oc-end__badge { display: grid; place-items: center; width: 76px; height: 76px; border-radius: 50%; background: rgb(255 255 255 / 0.12); box-shadow: inset 0 0 0 2px rgb(242 193 78 / 0.7); }
.oc-end__badge svg { width: 40px; height: 40px; fill: none; stroke: var(--gold); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.oc-end--wide .oc-end__text { max-width: none; font: 600 clamp(1.1rem, 0.95rem + 0.6vw, 1.45rem)/1.45 var(--text); text-wrap: pretty; }
.oc-end--wide .oc-end__actions { flex-direction: column; flex-wrap: nowrap; gap: 10px; }
.oc-end--wide .oc-end__actions .button { min-height: 48px; padding-inline: 24px; }
@media (max-width: 760px) { .oc-end--wide .oc-end__inner { grid-template-columns: auto minmax(0, 1fr); } .oc-end--wide .oc-end__actions { grid-column: 1 / -1; flex-direction: row; flex-wrap: wrap; } }
@media (max-width: 560px) { .oc-end--wide .oc-end__inner { grid-template-columns: minmax(0, 1fr); justify-items: center; text-align: center; } .oc-end--wide .oc-end__actions { justify-content: center; } }

/* ===== Наши достижения: the hero ===== */
.ach-hero { position: relative; overflow: clip; padding: clamp(120px, 13vw, 168px) 0 clamp(56px, 7vw, 100px); }
.ach-hero__glow { position: absolute; inset: -30% -10% auto; height: 120%; background: radial-gradient(50% 50% at 30% 40%, rgb(22 115 221 / 0.45), transparent 70%), radial-gradient(40% 40% at 80% 30%, rgb(242 193 78 / 0.16), transparent 70%); pointer-events: none; }
.ach-hero .container { position: relative; }
.ach-hero .crumbs ol { justify-content: flex-start; }
.ach-hero__page { margin: 14px 0 clamp(24px, 4vw, 48px); font: 700 var(--step-lead)/1.2 var(--text); letter-spacing: 0.08em; text-transform: uppercase; color: var(--orange-soft); }
.ach-hero__grid { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); align-items: center; gap: clamp(32px, 5vw, 72px); }
.ach-hero__award { display: grid; justify-items: center; gap: 18px; text-align: center; }
.laurel { position: relative; width: min(100%, 420px); }
.laurel__wreath { display: block; width: 100%; height: auto; overflow: visible; }
.laurel__stem { fill: none; stroke: var(--gold); stroke-width: 4; stroke-linecap: round; }
.laurel__leaf { fill: var(--gold); transform-box: fill-box; transform-origin: 0 50%; }
g:nth-of-type(odd) > .laurel__leaf { fill: #e5ad2b; }
.laurel__rank { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; gap: 2px; margin: 0; padding-bottom: 6%; }
.laurel__no { align-self: flex-start; margin-top: 28%; font: 800 clamp(1.6rem, 1rem + 2vw, 2.8rem)/1 var(--display); color: var(--orange-soft); }
.laurel__one { font: 900 clamp(7rem, 4rem + 10vw, 12rem)/1 var(--display); letter-spacing: -0.05em; background: linear-gradient(180deg, #fff 20%, var(--gold)); -webkit-background-clip: text; background-clip: text; color: transparent; filter: drop-shadow(0 12px 40px rgb(242 193 78 / 0.35)); }
.ach-hero__title { max-width: 16ch; font: 800 calc(var(--step-head) * var(--display-scale) * 1.05)/1.08 var(--display); letter-spacing: -0.01em; text-wrap: balance; }
.ach-hero__rating { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin: 0; font-weight: 700; }
.ach-hero__rating span { padding: 8px 16px; border: 2px solid rgb(255 255 255 / 0.3); border-radius: 999px; }
.ach-hero__rating .ach-hero__grade { border-color: var(--gold); color: var(--gold); }
.ach-hero__side { display: grid; justify-items: center; gap: 22px; }
.ach-hero__photo { position: relative; width: min(100%, 360px); margin: 0; padding: 10px; border: 2px solid var(--orange-soft); border-radius: 50%; }
.ach-hero__photo::after { content: ""; position: absolute; inset: -14px; border: 2px dashed rgb(242 193 78 / 0.6); border-radius: 50%; }
.ach-hero__img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 50%; }
.ach-rating { width: min(100%, 460px); padding: 18px; border-radius: 24px; background: rgb(255 255 255 / 0.08); }
.ach-rating__head { margin: 0 0 10px; font-weight: 700; font-size: var(--step-small); letter-spacing: 0.06em; text-transform: uppercase; color: var(--ice-2); text-align: center; }
.ach-rating__list { display: grid; gap: 6px; margin: 0; padding: 0; list-style: none; }
.ach-rating__list li { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 14px; font-size: 0.95rem; line-height: 1.3; }
.ach-rating__list li.is-ours { background: var(--white); color: var(--navy); font-weight: 700; }
.ach-rating__place { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; font-weight: 800; background: radial-gradient(circle at 34% 30%, #ffffff 0 12%, var(--silver) 40%, var(--silver-deep) 100%); color: var(--navy); }
.ach-rating__list li:first-child .ach-rating__place { background: radial-gradient(circle at 34% 30%, #fff6cf 0 12%, var(--gold) 40%, var(--gold-deep) 100%); }
.ach-rating__list li:nth-child(3) .ach-rating__place { background: radial-gradient(circle at 34% 30%, #ffe2c8 0 12%, var(--bronze) 40%, var(--bronze-deep) 100%); }
.ach-rating__grade { padding: 3px 10px; border-radius: 999px; background: #1f7a3a; color: var(--white); font-size: 0.8rem; font-weight: 700; }
@media (max-width: 900px) { .ach-hero__grid { grid-template-columns: minmax(0, 1fr); } .ach-hero .crumbs ol { justify-content: center; } .ach-hero__page { text-align: center; } }

/* ===== the year's figures ===== */
.ach-figures { padding-block: clamp(48px, 6vw, 80px); }
.ach-figures__list { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--gap); text-align: center; }
.ach-figures__list li { display: grid; gap: 8px; padding: 8px 12px; }
.ach-figures__list li + li { border-left: 2px solid var(--ice-2); }
.ach-figures__list b { font: 900 calc(clamp(3.2rem, 2rem + 4vw, 6rem) * var(--display-scale) * 1.2)/1 var(--display); color: var(--blue-strong); }
.ach-figures__list li > span { font-weight: 600; line-height: 1.35; color: #3c4f63; }
@media (max-width: 760px) { .ach-figures__list { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 28px; } .ach-figures__list li + li { border-left: 0; } }

/* ===== ORT ===== */
.ach-ort__grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); align-items: start; gap: var(--gap); }
@media (max-width: 960px) { .ach-ort__grid { grid-template-columns: minmax(0, 1fr); } }
.ach-line__svg { display: block; width: 100%; height: auto; overflow: visible; }
.ach-line__grid { stroke: var(--ice-2); stroke-width: 1.5; stroke-dasharray: 4 6; }
.ach-line__tick { font: 600 15px/1 var(--text); fill: #5d7088; }
.ach-line__area { fill: url(#ach-area); }
.ach-line__path { fill: none; stroke: var(--orange); stroke-width: 5; stroke-linecap: round; stroke-linejoin: round; }
.ach-line__point circle { fill: var(--white); stroke: var(--blue-strong); stroke-width: 4; }
.ach-line__point:last-of-type circle { fill: var(--orange); stroke: var(--white); }
.ach-line__point text { font: 800 22px/1 var(--display); fill: var(--navy); }
.ach-years { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 4px; margin: 10px 0 0; padding: 0 0 0 6%; list-style: none; text-align: center; font-size: 0.8rem; line-height: 1.3; }
.ach-years li { display: grid; gap: 4px; }
.ach-years__year { font-weight: 700; }
.ach-years__people { color: #5d7088; }
.ach-years__best { justify-self: center; display: inline-flex; align-items: center; gap: 4px; padding: 3px 8px; border-radius: 999px; background: var(--ice); font-weight: 800; }
.ach-years__best.is-gold { background: var(--gold); color: var(--navy); }
.ach-years__best.is-gold::before { content: "★"; }
.ach-ort__legend { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 16px 0 0; font-size: var(--step-small); color: #3c4f63; }
@media (max-width: 600px) { .ach-years { font-size: 0.68rem; } .ach-years__people span { display: none; } }

/* a dot on a scale from 110 to 180 for each place; the school far to the right */
.ach-compare__plot { --name: 42%; position: relative; margin-top: 30px; }
.ach-compare__list { display: grid; gap: 6px; margin: 0; padding: 0; list-style: none; }
.ach-compare__list li { display: grid; grid-template-columns: var(--name) minmax(0, 1fr); align-items: center; min-height: 32px; font-size: 0.9rem; line-height: 1.2; }
.ach-compare__name { padding-right: 10px; }
.ach-compare__track { position: relative; height: 22px; }
.ach-compare__stem { position: absolute; left: 0; top: 50%; width: calc(var(--v) * 100%); height: 4px; margin-top: -2px; border-radius: 2px; background: var(--ice-2); transform-origin: left; }
.ach-compare__dot { position: absolute; left: calc(var(--v) * 100%); top: 50%; width: 16px; height: 16px; margin: -8px 0 0 -8px; border-radius: 50%; background: var(--blue); }
.ach-compare__value { position: absolute; left: calc(var(--v) * 100% + 14px); top: 50%; transform: translateY(-50%); font-weight: 800; font-size: 0.85rem; white-space: nowrap; }
.ach-compare__list li.is-ours { min-height: 52px; font-weight: 800; font-size: 1rem; }
.ach-compare__list li.is-ours .ach-compare__stem { height: 8px; margin-top: -4px; background: linear-gradient(90deg, var(--ice-2), var(--orange)); }
.ach-compare__list li.is-ours .ach-compare__dot { width: 30px; height: 30px; margin: -15px 0 0 -15px; background: var(--orange); box-shadow: 0 0 0 6px rgb(22 115 221 / 0.2), 0 10px 24px rgb(22 115 221 / 0.5); }
.ach-compare__list li.is-ours .ach-compare__value { left: auto; right: calc((1 - var(--v)) * 100% + 24px); padding: 2px 8px; border-radius: 8px; background: var(--white); font-size: 1.3rem; color: var(--blue-strong); }
.ach-compare__line { position: absolute; top: -20px; bottom: 26px; left: calc(var(--name) + (100% - var(--name)) * var(--at)); z-index: 1; border-left: 2px dashed #1f7a3a; pointer-events: none; }
.ach-compare__line span { position: absolute; top: -4px; left: 6px; font-size: 0.72rem; font-weight: 700; white-space: nowrap; color: #1f7a3a; }
.ach-compare__axis { position: relative; height: 22px; margin: 6px 0 0 var(--name); padding: 0; border-top: 2px solid var(--ice-2); list-style: none; }
.ach-compare__axis li { position: absolute; left: calc(var(--at) * 100%); top: 4px; transform: translateX(-50%); font-size: 0.75rem; font-weight: 600; color: #5d7088; }

/* ===== graduates by year ===== */
.ach-grads__legend { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-bottom: clamp(24px, 3vw, 40px); }
.tag i { width: 14px; height: 14px; border-radius: 4px; }
.tag--r0 i, .ach-col__seg--r0 { background: var(--orange); }
.tag--r1 i, .ach-col__seg--r1 { background: #6db8ff; }
.tag--r2 i, .ach-col__seg--r2 { background: var(--blue); }
.tag--r3 i, .ach-col__seg--r3 { background: var(--navy); }
.ach-cols { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); align-items: end; gap: clamp(6px, 1.4vw, 20px); height: clamp(300px, 34vw, 420px); margin: 0; padding: 0; list-style: none; }
.ach-col { display: grid; grid-template-rows: auto 1fr auto; justify-items: center; align-items: end; gap: 8px; height: 100%; }
.ach-col__total { align-self: end; font: 800 calc(clamp(1.4rem, 1rem + 1vw, 2rem) * var(--display-scale) * 1.2)/1 var(--display); }
.ach-col__stack { display: flex; flex-direction: column-reverse; width: min(100%, 92px); height: calc(var(--h) * 100%); overflow: clip; border-radius: 14px 14px 6px 6px; transform-origin: bottom; }
.ach-col__seg { position: relative; display: grid; place-items: center; flex: 0 0 calc(var(--p) * 100%); min-height: 0; color: var(--white); font-weight: 800; font-size: 0.85rem; transition: opacity 300ms ease, filter 300ms ease; }
.ach-col__seg--r1 { color: var(--navy); }
.ach-col__n { opacity: 0; transition: opacity 300ms ease; }
.ach-col__seg + .ach-col__seg { box-shadow: 0 2px 0 rgb(255 255 255 / 0.9); }
.ach-cols.is-filter .ach-col__seg:not(.is-hl) { opacity: 0.12; filter: grayscale(1); }
.ach-cols.is-filter .ach-col__seg.is-hl .ach-col__n { opacity: 1; }
@media (hover: hover) and (pointer: fine) { .ach-col:hover .ach-col__n { opacity: 1; } }
.ach-col__year { font-size: 0.8rem; font-weight: 700; text-align: center; line-height: 1.2; }
@media (max-width: 600px) { .ach-col__year { font-size: 0.62rem; } .ach-col__seg { font-size: 0.7rem; } }

/* ===== class of 2026 ===== */
.ach-class__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--gap); }
@media (max-width: 860px) { .ach-class__grid { grid-template-columns: minmax(0, 1fr); } }
.ach-bars__list { display: grid; gap: 10px; margin: 0; padding: 0; list-style: none; }
.ach-bars__list li { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 3fr); align-items: center; gap: 12px; font-size: 0.95rem; }
.ach-bars__name { font-weight: 600; line-height: 1.25; }
.ach-bars__bar { display: flex; align-items: center; justify-content: flex-end; min-width: 34px; width: calc(var(--v) * 100%); height: 30px; padding-right: 10px; border-radius: 8px; background: linear-gradient(90deg, var(--blue), var(--orange)); color: var(--white); transform-origin: left; }
.ach-bars__list li:first-child .ach-bars__bar { background: linear-gradient(90deg, var(--navy), var(--orange)); }
.ach-unis { margin-top: clamp(28px, 4vw, 48px); }
.ach-unis .chart__title { text-align: center; }
.ach-unis__track { overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.ach-unis__list { display: flex; gap: 12px; width: max-content; margin: 0; padding: 4px 0; list-style: none; }
.ach-unis__list li { display: inline-flex; align-items: baseline; gap: 8px; padding: 12px 20px; border-radius: 999px; background: var(--white); white-space: nowrap; }
.ach-unis__list span { font-size: var(--step-small); color: #5d7088; }
html:not(.js) .ach-unis__list, .ach-unis__track:not(.is-moving) .ach-unis__list { flex-wrap: wrap; justify-content: center; width: auto; }

/* ===== sport and dance ===== */
.ach-class + .ach-sport { padding-top: clamp(24px, 3vw, 40px); }   /* the same light field as the universities above: no second full gap */
.ach-sport__list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--gap); }
@media (max-width: 960px) { .ach-sport__list { grid-template-columns: minmax(0, 1fr); max-width: 560px; margin-inline: auto; } }
.club-card { display: grid; grid-template-rows: auto 1fr; overflow: clip; border-radius: 28px; background: var(--white); }
.club-card__photos { position: relative; aspect-ratio: 4 / 5; overflow: clip; background: var(--navy); cursor: pointer; }
.club-card__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transform: scale(1.06); transition: opacity 900ms ease, transform 4000ms linear; }
.club-card__img.is-on { opacity: 1; transform: scale(1); }
html:not(.js) .club-card__img:first-child { opacity: 1; transform: none; }
.club-card__dots { position: absolute; left: 0; right: 0; bottom: 14px; display: flex; justify-content: center; gap: 6px; }
.club-card__dots i { width: 8px; height: 8px; border-radius: 50%; background: rgb(255 255 255 / 0.5); transition: width 300ms var(--ease-out), background-color 300ms ease; }
.club-card__dots i.is-on { width: 22px; border-radius: 4px; background: var(--white); }
.club-card__body { display: grid; align-content: start; gap: 12px; padding: 24px; }
.club-card__kind { margin: 0; font-size: var(--step-small); font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--blue-strong); }
.club-card__name { font: 800 calc(clamp(2rem, 1.6rem + 1.2vw, 2.8rem) * var(--display-scale) * 1.15)/1.05 var(--display); }
.club-card__places { display: flex; align-items: baseline; gap: 10px; margin: 0; }
.club-card__places b { font: 900 calc(clamp(2.8rem, 2rem + 2.4vw, 4.2rem) * var(--display-scale) * 1.2)/1 var(--display); color: var(--blue-strong); }
.club-card__places > span { font-weight: 700; }
.club-card__split { display: flex; gap: 3px; height: 12px; }
.club-card__part { flex: 0 0 calc(var(--p) * 100% - 2px); border-radius: 6px; transform-origin: left; }
.club-card__part--gold { background: linear-gradient(90deg, var(--gold-deep), var(--gold)); }
.club-card__part--silver { background: linear-gradient(90deg, var(--silver-deep), var(--silver)); }
.club-card__part--bronze { background: linear-gradient(90deg, var(--bronze-deep), var(--bronze)); }
.club-card__chips { display: flex; flex-wrap: wrap; gap: 6px; margin: 0; }
.club-card__facts { display: grid; gap: 6px; padding: 14px 0; border-block: 1px solid var(--ice-2); }
.club-card__facts b { color: var(--blue-strong); }
.club-card__star { margin: 0; padding: 14px 16px; border-radius: 18px; background: var(--ice); font-weight: 600; line-height: 1.4; }
.club-card__star::before { content: "★ "; color: var(--gold-deep); }
.club-card__cities { margin: 0; font-size: var(--step-small); color: #5d7088; }

/* ===== a page closed with a password ===== */
.lock { display: grid; align-items: center; min-height: min(86svh, 760px); padding: clamp(120px, 12vw, 160px) 0 clamp(56px, 7vw, 96px); background: radial-gradient(70% 70% at 50% 40%, #0b3a8c, var(--navy) 72%); text-align: center; }
.lock__inner { display: grid; justify-items: center; gap: 18px; }
.lock__icon { display: grid; place-items: center; width: 84px; height: 84px; margin-top: 12px; border-radius: 50%; background: rgb(255 255 255 / 0.08); box-shadow: inset 0 0 0 2px #f2c14e; }
.lock__icon svg { width: 40px; height: 40px; fill: none; stroke: #f2c14e; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.lock__title { font: 900 calc(clamp(2.6rem, 1.4rem + 4vw, 5.4rem) * var(--display-scale) * 1.2)/1 var(--display); letter-spacing: -0.02em; }
.lock__note { max-width: 36ch; font-size: var(--step-lead); line-height: 1.4; color: var(--ice-2); }
.lock__form { display: grid; justify-items: center; gap: 10px; width: min(100%, 460px); margin-top: 6px; }
.lock__label { font-weight: 700; }
.lock__row { display: flex; gap: 10px; width: 100%; }
.lock__input { flex: 1 1 auto; min-width: 0; min-height: 54px; padding: 0 20px; border: 2px solid #9fb3c8; border-radius: 999px; background: var(--white); color: var(--navy); font: 600 1.05rem/1 var(--text); }
.lock__input:focus-visible { outline: 3px solid #f2c14e; outline-offset: 3px; }
@media (max-width: 460px) { .lock__row { flex-direction: column; } }

/* ===== motion: everything is in place without it ===== */
@media (prefers-reduced-motion: no-preference) {
  .js .oc-rain { display: block; }
  .oc-rain__m { animation: rain var(--t) linear var(--d) infinite; }
  .js .oc-hero__score.is-in .medal { animation: medal-swing 1600ms var(--ease-out) both; animation-delay: calc(400ms + var(--i) * 160ms); transform-origin: 50% 0; }
  .js .oc-hero__score.is-in .medal__disc::after, .js .oc-star__medal.is-in .medal__disc::after { animation: shine 1600ms var(--ease-soft) 1200ms both; }
  .oc-hero__down svg { animation: nudge 1800ms var(--ease-soft) infinite; }
  .js .board .board__row { opacity: 0; transform: translateX(-24px); transition: opacity 600ms ease, transform 800ms var(--ease-out); transition-delay: calc(200ms + var(--k) * 130ms); }
  .js .board.is-in .board__row { opacity: 1; transform: none; }
  .js .board .board__bar::after { transform: scaleX(0); transition: transform 1300ms var(--ease-out); transition-delay: calc(500ms + var(--k) * 130ms); }
  .js .board.is-in .board__bar::after { transform: none; }
  .js .ring .ring__arc { stroke-dasharray: 0 100; transition: stroke-dasharray 1500ms var(--ease-out) 200ms, stroke-width 300ms var(--ease-out), opacity 300ms ease; }
  .js .ring.is-in .ring__arc { stroke-dasharray: var(--p) 100; }
  .js .ring .ring__arc[data-ring="metal"] { transition-delay: 700ms, 0ms, 0ms; }
  .js .oc-record__inner .oc-arc__svg circle.is-ours { fill: rgb(255 255 255 / 0.1); stroke: rgb(255 255 255 / 0.28); filter: none; }
  .js .oc-record__inner .oc-arc__star { opacity: 0; }
  .js .oc-record__inner.is-in .oc-arc__star { animation: star-in 400ms ease forwards; animation-delay: calc(450ms + var(--k) * 150ms); }
  .js .oc-record__inner.is-in .oc-arc__svg circle.is-ours { animation: light 500ms var(--ease-out) forwards; animation-delay: calc(300ms + var(--k) * 150ms); }
  .js .oc-star__medal.is-in .medal { animation: medal-swing 1800ms var(--ease-out) both; transform-origin: 50% 0; }
  .js .oc-panel:not([hidden]) .ocard { animation: card-in 700ms var(--ease-out) backwards; animation-delay: calc(var(--r) * 55ms); }
  .js .oc-panel:not([hidden]) .ocard__medals .disc { animation: coin-in 600ms var(--ease-out) backwards; animation-delay: calc(250ms + var(--r) * 55ms); }
  .js .laurel__stem { stroke-dasharray: 1 1; stroke-dashoffset: 1; }
  .js .laurel.is-in .laurel__stem { animation: draw 1200ms var(--ease-out) 200ms forwards; }
  .js .laurel__leaf { transform: scale(0); }
  .js .laurel.is-in .laurel__leaf { animation: leaf 700ms var(--ease-out) forwards; animation-delay: calc(500ms + var(--k) * 110ms); }
  .js .laurel.is-in .laurel__one { animation: rank-in 1100ms var(--ease-expo) 300ms both; }
  .js .ach-hero__photo::after { animation: spin 40s linear infinite; }
  .js .ach-line .ach-line__path { stroke-dasharray: 1 1; stroke-dashoffset: 1; }
  .js .ach-line.is-in .ach-line__path { animation: draw 1800ms var(--ease-soft) 200ms forwards; }
  .js .ach-line .ach-line__area { opacity: 0; transition: opacity 1200ms ease 1200ms; }
  .js .ach-line.is-in .ach-line__area { opacity: 1; }
  .js .ach-line .ach-line__point { opacity: 0; transform: translateY(12px); transition: opacity 500ms ease, transform 600ms var(--ease-out); transition-delay: calc(300ms + var(--k) * 230ms); }
  .js .ach-line.is-in .ach-line__point { opacity: 1; transform: none; }
  .js .ach-compare .ach-compare__stem, .js .ach-bars .ach-bars__bar { transform: scaleX(0); transition: transform 1100ms var(--ease-out); transition-delay: calc(200ms + var(--k) * 70ms); }
  .js .ach-compare.is-in .ach-compare__stem, .js .ach-bars.is-in .ach-bars__bar { transform: none; }
  .js .ach-compare .ach-compare__dot, .js .ach-compare .ach-compare__value { opacity: 0; transition: opacity 400ms ease; transition-delay: calc(900ms + var(--k) * 70ms); }
  .js .ach-compare.is-in .ach-compare__dot, .js .ach-compare.is-in .ach-compare__value { opacity: 1; }
  .js .ach-cols .ach-col__stack { transform: scaleY(0); transition: transform 1100ms var(--ease-out); transition-delay: calc(150ms + var(--k) * 90ms); }
  .js .ach-cols.is-in .ach-col__stack { transform: none; }
  .js .club-card .club-card__part { transform: scaleX(0); transition: transform 1000ms var(--ease-out) 300ms; }
  .js .club-card.is-in .club-card__part { transform: none; }
  .js .ach-unis__track.is-moving .ach-unis__list { animation: glide-x 60s linear infinite; }
  .ach-unis__track:hover .ach-unis__list { animation-play-state: paused; }
}
@keyframes medal-swing { 0% { transform: rotate(-14deg) translateY(-30px); opacity: 0; } 40% { opacity: 1; } 60% { transform: rotate(6deg); } 80% { transform: rotate(-3deg); } 100% { transform: none; } }
@keyframes shine { to { transform: translateX(70%); } }
@keyframes rain { from { transform: translateY(0) rotate(0deg); } to { transform: translateY(calc(100svh + 160px)) rotate(400deg); } }
@keyframes star-in { to { opacity: 1; } }
@keyframes nudge { 50% { transform: translateY(4px); } }
@keyframes light { to { fill: var(--gold); stroke: #fff6cf; filter: drop-shadow(0 0 10px rgb(242 193 78 / 0.7)); } }
@keyframes card-in { from { opacity: 0; transform: translateY(24px) scale(0.96); } }
@keyframes coin-in { from { opacity: 0; transform: translateY(-14px) scale(0.3); } }
@keyframes pop { 60% { transform: scale(1.25); } to { opacity: 1; transform: none; } }
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes leaf { 70% { transform: scale(1.15); } to { transform: none; } }
@keyframes rank-in { from { opacity: 0; transform: scale(0.6) translateY(20px); filter: blur(8px); } }
@keyframes spin { to { transform: rotate(1turn); } }
