/* /olympiads/ — "Medal podium": gold/silver/bronze accents, medal-number steps, podium year timeline */
.p-olympiads .pc--html{background:radial-gradient(ellipse at 50% 0,rgb(var(--gold-rgb) / .14),transparent 55%),var(--stone-2)}
.p-olympiads .ol{--gold2:#E7B416;--silver:#AEB6BB;--bronze:#B5683A;max-width:1140px;margin:0 auto;display:grid;gap:24px}
.p-olympiads .ol>*{min-width:0}
.p-olympiads .ol p,.p-olympiads .ol li{font-size:17px;line-height:1.7}
.p-olympiads .ol ul,.p-olympiads .ol ol{margin:0;padding:0;list-style:none}

/* header */
.p-olympiads .ol-head{display:grid;grid-template-columns:minmax(0,1.05fr) minmax(0,1fr);gap:clamp(20px,4vw,44px);align-items:center}
.p-olympiads .ol-kicker{display:inline-block;margin:0 0 12px;padding:5px 12px;background:var(--olive-900);color:var(--gold);font-family:var(--ff-head);font-weight:700;font-size:14px!important;letter-spacing:.08em;text-transform:uppercase}
.p-olympiads .ol-head h1{margin:0 0 16px;font-size:clamp(34px,4.6vw,54px);line-height:1.04;color:var(--olive-950)}
.p-olympiads .ol-lead{margin:0;font-size:18.5px!important;color:#3a443c}
.p-olympiads .ol-head__img{margin:0;border:6px solid #fff;box-shadow:0 0 0 2px var(--gold2),var(--shadow-lg)}
.p-olympiads .ol-head__img img{display:block;width:100%;height:auto}

/* facts as medal chips */
.p-olympiads .ol-facts{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;margin:0}
.p-olympiads .ol-facts>div{position:relative;padding:16px 16px 14px 60px;background:#fff;border:1px solid var(--line);border-radius:12px}
.p-olympiads .ol-facts>div::before{content:"";position:absolute;left:14px;top:16px;width:32px;height:32px;border-radius:50%;background:radial-gradient(circle at 35% 30%,#fff6c4,var(--gold2) 60%,#a77f06);box-shadow:0 0 0 3px #fff,0 0 0 4px var(--gold2)}
.p-olympiads .ol-facts>div:nth-child(2)::before{background:radial-gradient(circle at 35% 30%,#fff,var(--silver) 60%,#7d868b);box-shadow:0 0 0 3px #fff,0 0 0 4px var(--silver)}
.p-olympiads .ol-facts>div:nth-child(3)::before{background:radial-gradient(circle at 35% 30%,#f7d2b8,var(--bronze) 60%,#7a3f1d);box-shadow:0 0 0 3px #fff,0 0 0 4px var(--bronze)}
.p-olympiads .ol-facts dt{font-size:12.5px;font-weight:700;letter-spacing:.1em;text-transform:uppercase;color:var(--muted)}
.p-olympiads .ol-facts dd{margin:3px 0 0;font-family:var(--ff-head);font-size:19px;font-weight:700;line-height:1.25;color:var(--olive-900)}

/* sections */
.p-olympiads .ol-sec{padding:26px clamp(18px,3vw,32px);background:#fff;border-radius:14px;border:1px solid var(--line)}
.p-olympiads .ol-sec h2{margin:0 0 14px;font-size:clamp(24px,3vw,32px);line-height:1.12;color:var(--olive-900)}
.p-olympiads .ol-sec h2::after{content:"";display:block;width:64px;height:4px;margin-top:10px;background:linear-gradient(90deg,var(--gold2) 0 33%,var(--silver) 33% 66%,var(--bronze) 66%)}
.p-olympiads .ol-sec>:last-child{margin-bottom:0}
.p-olympiads .ol-note{padding:12px 14px;background:var(--stone-2);border-left:4px solid var(--gold2);font-size:16px!important}

/* table */
.p-olympiads .ol-table{overflow-x:auto;margin:0 0 14px}
.p-olympiads .ol-table table{display:table;width:100%;border-collapse:collapse;min-width:0}
.p-olympiads .ol-table th{padding:12px 14px;background:var(--olive-900);color:#fff;font-family:var(--ff-head);font-size:17px;text-align:left}
.p-olympiads .ol-table td{padding:12px 14px;border-bottom:1px solid var(--line);font-size:16px;vertical-align:top}
.p-olympiads .ol-table tr:nth-child(1) td:first-child{border-left:5px solid var(--silver)}
.p-olympiads .ol-table tr:nth-child(2) td:first-child{border-left:5px solid var(--gold2)}
.p-olympiads .ol-table tr:nth-child(3) td:first-child{border-left:5px solid var(--bronze)}

/* IMO parts */
.p-olympiads .ol-parts{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px;margin:0 0 14px!important}
.p-olympiads .ol-parts li{position:relative;padding:18px 16px 16px;background:var(--stone-2);border-radius:12px;border-top:5px solid var(--army)}
.p-olympiads .ol-parts li:last-child{background:var(--olive-900);border-top-color:var(--gold2)}
.p-olympiads .ol-parts li:last-child h3,.p-olympiads .ol-parts li:last-child p{color:#fff}
.p-olympiads .ol-parts h3{margin:0 0 6px;font-size:21px;color:var(--olive-900)}
.p-olympiads .ol-parts p{margin:0;font-size:15.5px!important;line-height:1.55!important}

/* steps as medals */
.p-olympiads .ol-steps{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px;counter-reset:st}
.p-olympiads .ol-steps li{counter-increment:st;position:relative;padding:62px 18px 18px;background:var(--stone-2);border-radius:12px}
.p-olympiads .ol-steps li::before{content:counter(st);position:absolute;left:18px;top:14px;width:38px;height:38px;display:grid;place-items:center;border-radius:50%;background:var(--olive-900);color:var(--gold2);font-family:var(--ff-head);font-weight:800;font-size:20px;box-shadow:0 0 0 3px #fff,0 0 0 5px var(--gold2)}
.p-olympiads .ol-steps h3{margin:0 0 6px;font-size:20px;line-height:1.2;color:var(--olive-900)}
.p-olympiads .ol-steps p{margin:0;font-size:15.5px!important;line-height:1.55!important}

/* link section */
.p-olympiads .ol-sec--link{background:var(--olive-900);border:0}
.p-olympiads .ol-sec--link h2,.p-olympiads .ol-sec--link p,.p-olympiads .ol-sec--link li{color:#E9ECE4}
.p-olympiads .ol-sec--link a{color:var(--gold)}
.p-olympiads .ol-ticks{margin:0 0 14px!important}
.p-olympiads .ol-ticks li{position:relative;padding:7px 0 7px 32px}
.p-olympiads .ol-ticks li::before{content:"";position:absolute;left:4px;top:15px;width:13px;height:7px;border-left:3px solid var(--gold);border-bottom:3px solid var(--gold);transform:rotate(-45deg)}

/* podium year */
.p-olympiads .ol-year{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;align-items:end}
.p-olympiads .ol-year li{padding:16px;background:var(--stone-2);border-radius:12px 12px 0 0;border-bottom:6px solid var(--army)}
.p-olympiads .ol-year li:nth-child(1){min-height:150px}
.p-olympiads .ol-year li:nth-child(2){min-height:175px}
.p-olympiads .ol-year li:nth-child(3){min-height:205px;background:#FFF7D6;border-bottom-color:var(--gold2)}
.p-olympiads .ol-year li:nth-child(4){min-height:235px;background:var(--olive-900);border-bottom-color:var(--gold2)}
.p-olympiads .ol-year li:nth-child(4) strong,.p-olympiads .ol-year li:nth-child(4) p{color:#fff}
.p-olympiads .ol-year__m{display:block;margin-bottom:4px;font-size:13px;font-weight:700;letter-spacing:.08em;text-transform:uppercase;color:var(--brass-700)}
.p-olympiads .ol-year li:nth-child(4) .ol-year__m{color:var(--gold)}
.p-olympiads .ol-year strong{display:block;font-family:var(--ff-head);font-size:22px;color:var(--olive-900)}
.p-olympiads .ol-year p{margin:4px 0 0;font-size:15.5px!important;line-height:1.5!important}

/* FAQ */
.p-olympiads .ol-q{border-bottom:1px solid var(--line)}
.p-olympiads .ol-q summary{position:relative;padding:14px 40px 14px 0;cursor:pointer;list-style:none;font-family:var(--ff-head);font-size:20px;font-weight:700;color:var(--olive-900)}
.p-olympiads .ol-q summary::-webkit-details-marker{display:none}
.p-olympiads .ol-q summary::after{content:"+";position:absolute;right:6px;top:9px;width:28px;height:28px;display:grid;place-items:center;border-radius:50%;background:var(--gold2);color:var(--olive-950);font-size:20px}
.p-olympiads .ol-q[open] summary::after{content:"–"}
.p-olympiads .ol-q p{margin:0 0 14px}

/* CTA */
.p-olympiads .ol-cta{padding:30px clamp(18px,4vw,40px);text-align:center;background:var(--olive-950);border-radius:14px;border-bottom:6px solid var(--gold2)}
.p-olympiads .ol-cta h2{margin:0 0 8px;font-size:clamp(24px,3vw,32px);color:#fff}
.p-olympiads .ol-cta p{margin:0 0 16px;color:#DDE2D6}
.p-olympiads .ol-actions{display:flex;flex-wrap:wrap;justify-content:center;gap:12px;margin:0!important}
.p-olympiads .ol-btn{display:inline-block;padding:12px 22px;border:2px solid var(--gold);border-radius:8px;background:var(--gold);color:var(--olive-950);font-family:var(--ff-head);font-size:18px;font-weight:700;text-decoration:none}
.p-olympiads .ol-btn--ghost{background:transparent;color:var(--gold)}
.p-olympiads .ol-btn:hover{background:#fff;border-color:#fff;color:var(--olive-950)}

@media (max-width:900px){
  .p-olympiads .ol-head{grid-template-columns:1fr}
  .p-olympiads .ol-facts,.p-olympiads .ol-parts,.p-olympiads .ol-year{grid-template-columns:repeat(2,minmax(0,1fr))}
  .p-olympiads .ol-steps{grid-template-columns:repeat(2,minmax(0,1fr))}
  .p-olympiads .ol-year li{min-height:0!important}
}
@media (max-width:600px){
  .p-olympiads .ol{gap:16px}
  .p-olympiads .ol-facts,.p-olympiads .ol-parts,.p-olympiads .ol-steps,.p-olympiads .ol-year{grid-template-columns:1fr}
  .p-olympiads .ol-table table,.p-olympiads .ol-table tbody,.p-olympiads .ol-table tr,.p-olympiads .ol-table td{display:block}
  .p-olympiads .ol-table thead{display:none}
  .p-olympiads .ol-table tr{margin-bottom:12px;border:1px solid var(--line);border-radius:10px;overflow:hidden}
  .p-olympiads .ol-table td{display:block;border-left:0!important}
  .p-olympiads .ol-table td::before{content:attr(data-l);display:block;margin-bottom:2px;font-size:12.5px;font-weight:700;text-transform:uppercase;letter-spacing:.06em;color:var(--muted)}
  .p-olympiads .ol-table td:first-child{background:var(--olive-900);color:#fff}
  .p-olympiads .ol-table td:first-child::before{color:var(--gold)}
}
