:root {
  --red: #c8102e;
  --red-dark: #9b0c23;
  --ink: #17181a;
  --char: #2a2c30;
  --gray: #8a8d91;
  --line: #e3e4e6;
  --paper: #f6f6f4;
  --white: #fff;
  --head: "Oswald", "Arial Narrow", Arial, sans-serif;
  --body: "Source Sans 3", system-ui, -apple-system, "Segoe UI", sans-serif;
  --wrap: 1120px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 64px; }
body { margin: 0; font: 17px/1.55 var(--body); color: var(--ink); background: var(--white); }
img { max-width: 100%; display: block; }
a { color: var(--red); }
h1, h2, h3 { font-family: var(--head); text-transform: uppercase; letter-spacing: .02em; line-height: 1.1; margin: 0 0 .5em; }
h2 { font-size: clamp(1.9rem, 5vw, 2.8rem); }
h3 { font-size: 1.2rem; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 16px; }
section { padding: 64px 0; }
.alt { background: var(--paper); }
.kicker { font-family: var(--head); color: var(--red); text-transform: uppercase; letter-spacing: .12em; font-size: .9rem; margin: 0 0 .4em; }
.lead { font-size: 1.15rem; max-width: 46em; }
.placeholder { background: #fff6d6; border: 1px dashed #c9a300; padding: 0 .3em; border-radius: 3px; font-style: normal; color: #4a3a00; }

/* Header */
.top { position: sticky; top: 0; z-index: 20; background: var(--ink); color: var(--white); border-bottom: 4px solid var(--red); }
.top .wrap { display: flex; align-items: center; justify-content: space-between; height: 60px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--white); text-decoration: none; }
.mark { width: 40px; height: 40px; border-radius: 50%; background: var(--red); display: grid; place-items: center; font: 700 .85rem/1 var(--head); letter-spacing: .04em; border: 2px solid var(--white); }
.brand b { font: 600 1.3rem/1 var(--head); letter-spacing: .06em; }
.brand small { display: block; font-size: .7rem; color: #bfc1c4; letter-spacing: .02em; }
.nav-toggle { background: none; border: 2px solid #555; color: var(--white); font: 600 .9rem var(--head); text-transform: uppercase; padding: 6px 12px; border-radius: 4px; cursor: pointer; }
nav ul { list-style: none; margin: 0; padding: 0; }
nav a { color: var(--white); text-decoration: none; font: 500 .95rem var(--head); text-transform: uppercase; letter-spacing: .05em; }
nav a:hover { color: #ff8a9b; }
@media (max-width: 899px) {
  nav { position: absolute; left: 0; right: 0; top: 64px; background: var(--ink); display: none; border-bottom: 4px solid var(--red); }
  nav.open { display: block; }
  nav li a { display: block; padding: 14px 16px; border-top: 1px solid #2f3034; }
}
@media (min-width: 900px) {
  .nav-toggle { display: none; }
  nav ul { display: flex; gap: 22px; }
}

/* Hero */
.hero { position: relative; min-height: 78vh; display: flex; align-items: flex-end; color: var(--white); background: var(--ink) center/cover no-repeat; padding: 0; }
.hero::before { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,.15) 0%, rgba(0,0,0,.5) 40%, rgba(15,15,17,.94) 100%); }
.hero .wrap { position: relative; padding-bottom: 56px; padding-top: 120px; }
.hero h1 { font-size: clamp(2.6rem, 9vw, 5.4rem); margin-bottom: .2em; }
.hero h1 span { color: var(--white); background: var(--red); padding: 0 .12em; box-decoration-break: clone; -webkit-box-decoration-break: clone; }
.hero .kicker { color: var(--white); text-shadow: 0 1px 6px rgba(0,0,0,.7); }
.hero p { text-shadow: 0 1px 6px rgba(0,0,0,.6); }
.hero p { font-size: 1.2rem; max-width: 36em; margin: 0 0 1.4em; }
.btns { display: flex; flex-wrap: wrap; gap: 12px; }
.btn { display: inline-block; padding: 13px 22px; font: 600 1rem var(--head); text-transform: uppercase; letter-spacing: .06em; text-decoration: none; border-radius: 4px; border: 2px solid var(--red); background: var(--red); color: var(--white); }
.btn:hover { background: var(--red-dark); border-color: var(--red-dark); }
.btn.ghost { background: transparent; border-color: var(--white); }
.btn.ghost:hover { background: rgba(255,255,255,.12); }

/* News strip */
.news { background: var(--red); color: var(--white); padding: 18px 0; }
.news p { margin: 0; }
.news strong { font-family: var(--head); text-transform: uppercase; letter-spacing: .06em; margin-right: .4em; }

/* About */
.about-grid { display: grid; gap: 32px; }
.about-grid img { border-radius: 6px; aspect-ratio: 4/3; object-fit: cover; width: 100%; }
.facts { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; margin-top: 20px; }
.fact { background: var(--white); border-left: 4px solid var(--red); padding: 12px 14px; }
.alt .fact { background: var(--white); }
.fact b { display: block; font: 600 1.5rem/1.1 var(--head); }
.fact span { font-size: .9rem; color: #55585c; }
@media (min-width: 800px) { .about-grid { grid-template-columns: 1.1fr 1fr; align-items: center; } }

/* Program cards */
.season { margin-top: 36px; }
.season-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 14px; border-bottom: 3px solid var(--ink); padding-bottom: 6px; margin-bottom: 16px; }
.season-head h3 { margin: 0; font-size: 1.5rem; }
.season-head span { color: #55585c; }
.cards { display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }
.card { background: var(--white); border: 1px solid var(--line); border-top: 5px solid var(--red); border-radius: 6px; padding: 16px; }
.card.gray { border-top-color: var(--gray); }
.card h4 { font: 600 1.15rem/1.2 var(--head); text-transform: uppercase; margin: 0 0 4px; }
.card .age { font-weight: 700; color: var(--red); margin: 0 0 6px; }
.card p { margin: 0; font-size: .95rem; }
.tag { display: inline-block; font: 600 .7rem var(--head); letter-spacing: .08em; text-transform: uppercase; background: var(--ink); color: var(--white); padding: 2px 6px; border-radius: 3px; margin-top: 8px; }

/* Schedule table */
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; background: var(--white); min-width: 560px; }
th, td { text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { font: 600 .85rem var(--head); text-transform: uppercase; letter-spacing: .06em; background: var(--ink); color: var(--white); }
td:first-child { font-weight: 700; white-space: nowrap; }
.places { display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); margin-top: 28px; }
.place { background: var(--white); border: 1px solid var(--line); border-radius: 6px; padding: 14px 16px; }
.place h4 { margin: 0 0 4px; font: 600 1.05rem var(--head); text-transform: uppercase; }
.place p { margin: 0; font-size: .95rem; color: #44474b; }

/* Registration */
.reg { display: grid; gap: 24px; }
@media (min-width: 860px) { .reg { grid-template-columns: 1fr 1fr; } }
.panel { background: var(--white); border: 1px solid var(--line); border-radius: 6px; padding: 22px; }
.panel.dark { background: var(--ink); color: var(--white); border: 0; }
.panel.dark a:not(.btn) { color: #ff8a9b; }
.fees { width: 100%; min-width: 0; }
.fees td, .fees th { padding: 9px 8px; }
.fees td:last-child { text-align: right; font-weight: 700; }
ol.steps { padding-left: 1.2em; }
ol.steps li { margin-bottom: .5em; }
.note { font-size: .9rem; color: #55585c; }
.panel.dark .note { color: #bfc1c4; }

/* Events */
.events { display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.event { background: var(--white); border-radius: 6px; overflow: hidden; border: 1px solid var(--line); display: flex; flex-direction: column; }
.event img { aspect-ratio: 16/10; object-fit: cover; width: 100%; }
.event div { padding: 14px 16px 18px; }
.event .when { font: 600 .8rem var(--head); color: var(--red); text-transform: uppercase; letter-spacing: .08em; }
.event h4 { margin: 2px 0 6px; font: 600 1.15rem var(--head); text-transform: uppercase; }
.event p { margin: 0; font-size: .95rem; }

/* Gallery */
.gallery { display: grid; gap: 8px; grid-template-columns: repeat(2, 1fr); }
@media (min-width: 700px) { .gallery { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1000px) { .gallery { grid-template-columns: repeat(4, 1fr); } }
.gallery button { padding: 0; border: 0; background: none; cursor: zoom-in; border-radius: 4px; overflow: hidden; }
.gallery img { aspect-ratio: 1; object-fit: cover; width: 100%; transition: transform .25s; }
.gallery button:hover img { transform: scale(1.04); }
.lightbox { position: fixed; inset: 0; background: rgba(0,0,0,.92); display: none; align-items: center; justify-content: center; z-index: 50; padding: 16px; }
.lightbox.open { display: flex; }
.lightbox img { max-height: 84vh; max-width: 100%; }
.lightbox figure { margin: 0; }
.lightbox figcaption { color: #ddd; text-align: center; margin-top: 10px; }
.lightbox .close { position: absolute; top: 12px; right: 16px; font-size: 2.2rem; color: #fff; background: none; border: 0; cursor: pointer; }

/* Sponsors */
.sponsors { display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }
.sponsor { border: 2px solid var(--line); border-radius: 6px; padding: 18px; text-align: center; background: var(--white); }
.sponsor b { display: block; font: 600 1.1rem var(--head); text-transform: uppercase; }
.sponsor span { font-size: .9rem; color: #55585c; }
.sponsor.open-slot { border-style: dashed; color: #6a6d71; }

/* Contact */
.contact { background: var(--ink); color: var(--white); }
.contact a:not(.btn) { color: #ff8a9b; }
.contact-grid { display: grid; gap: 18px; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); margin-top: 18px; }
.contact-grid div { border-top: 3px solid var(--red); padding-top: 10px; }
.contact-grid h4 { font: 600 1rem var(--head); text-transform: uppercase; letter-spacing: .06em; margin: 0 0 4px; color: #bfc1c4; }
.contact-grid p { margin: 0; font-size: 1.05rem; }
footer { background: #0d0d0e; color: #8f9296; font-size: .85rem; padding: 22px 0; }
footer p { margin: 0; }
.foot-row { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.admin-link { color: #8f9296; font-size: .85rem; }
[hidden] { display: none !important; }
