@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 300 900;
  font-display: swap;
  src: url(../fonts/inter-cyrillic.woff2) format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 300 900;
  font-display: swap;
  src: url(../fonts/inter-latin.woff2) format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Oswald";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url(../fonts/oswald-cyrillic.woff2) format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: "Oswald";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url(../fonts/oswald-latin.woff2) format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --black: #110f10;
  --text: #1f2937;
  --muted: #6b7280;
  --paper: #f3f2ee;
  --rule: #dddbd3;
  --blue: #0693e3;
  --blue-dark: #0577b8;
  --navy: #0d2340;
  --wrap: 1180px;
  --gutter: clamp(20px, 4vw, 40px);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: #fff;
  color: #000;
  font: 400 18px/1.6 "Inter", system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3, h4 { margin: 0; text-wrap: balance; }
p { margin: 0 0 1.1em; }
p:last-child { margin-bottom: 0; }
ul, ol { margin: 0; padding: 0; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.center { text-align: center; }

/* ---------- buttons ---------- */

.btn {
  display: inline-block;
  padding: 13px 24px;
  border-radius: 6px;
  background: var(--blue);
  color: #fff;
  font-weight: 500;
  font-size: 16px;
  line-height: 1.3;
  text-decoration: none;
  transition: background-color .15s;
}
.btn:hover { background: var(--blue-dark); }
.btns { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.center .btns, .btns.center { justify-content: center; }

/* ---------- header ---------- */

.site-header { background: var(--black); color: #fff; position: relative; z-index: 5; }
.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  max-width: 1440px;
  min-height: 116px;
  padding-top: 18px;
  padding-bottom: 18px;
}
.logo {
  font-weight: 500;
  font-size: clamp(18px, 2vw, 25px);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-decoration: none;
  white-space: nowrap;
}
.nav { display: flex; gap: clamp(20px, 2vw, 30px); white-space: nowrap; }
.nav a {
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.25px;
  text-transform: uppercase;
  text-decoration: none;
}
.nav a:hover, .nav a[aria-current="page"] { color: var(--blue); }

.menu { display: none; }
.menu summary { list-style: none; cursor: pointer; font-size: 15px; font-weight: 600; text-transform: uppercase; }
.menu summary::-webkit-details-marker { display: none; }
.menu[open] summary::after { content: " ×"; }
.menu-panel {
  position: absolute;
  left: 0; right: 0; top: 100%;
  background: var(--black);
  padding: 4px var(--gutter) 24px;
  border-top: 1px solid #222;
}
.menu-panel a {
  display: block;
  padding: 14px 0;
  border-bottom: 1px solid #222;
  font-weight: 600;
  text-transform: uppercase;
  text-decoration: none;
}
@media (max-width: 960px) {
  .site-header .wrap { min-height: 76px; }
}
/* Seven sections no longer fit next to the logo below this width. */
@media (max-width: 1280px) {
  .nav { display: none; }
  .menu { display: block; }
}

/* ---------- home hero ---------- */

.hero { background: var(--black); color: #fafafa; overflow: hidden; }
.hero .wrap {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: center;
  gap: 24px;
  max-width: 1440px;
}
.hero-text { padding: 40px 0 72px clamp(0px, 5vw, 76px); }
.hero h1 {
  font-size: clamp(40px, 4.8vw, 69px);
  font-weight: 800;
  line-height: 1.02;
  text-transform: uppercase;
}
.hero p { font-size: 16px; font-weight: 300; max-width: 34em; margin-top: 16px; }
.hero-photo { align-self: end; }
.hero-photo img { width: 100%; max-width: 600px; margin: 0 auto; }
@media (max-width: 860px) {
  .hero .wrap { grid-template-columns: 1fr; }
  .hero-text { padding: 32px 0 8px; }
  .hero-photo img { max-width: 420px; }
}

/* ---------- generic sections ---------- */

.section { padding: clamp(64px, 8vw, 104px) 0; }
.section.paper { background: var(--paper); }
.section.tight { padding-top: 0; }

.statement {
  max-width: 820px;
  margin: 0 auto;
  text-align: center;
  font-size: clamp(28px, 3.2vw, 45px);
  font-weight: 900;
  line-height: 1.2;
  letter-spacing: -0.25px;
}

.title {
  font-family: "Oswald", "Inter", sans-serif;
  font-weight: 500;
  font-size: clamp(30px, 3vw, 38px);
  letter-spacing: 1px;
  line-height: 1.15;
  text-transform: uppercase;
  text-align: center;
}
.intro-text {
  max-width: 760px;
  margin: 24px auto 0;
  text-align: center;
  font-size: 17px;
  color: var(--text);
}

.label {
  display: block;
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

/* feature: image + text (like the book block) */
.feature {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  gap: 48px clamp(40px, 7vw, 120px);
  align-items: center;
  margin-top: clamp(40px, 5vw, 64px);
}
.feature-img img { width: 100%; box-shadow: 0 14px 34px rgba(0, 0, 0, .28); }
.feature .lead { font-size: 22px; font-weight: 600; line-height: 1.45; letter-spacing: -0.5px; margin-bottom: 18px; }
.feature p { font-size: 17px; color: var(--text); }
@media (max-width: 860px) { .feature { grid-template-columns: 1fr; } }

/* cards (like "Featured") */
.cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px 40px;
  max-width: 1000px;
  margin: 48px auto 0;
}
.card { text-align: center; text-decoration: none; display: block; }
.card img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; object-position: 50% 22%; margin-bottom: 28px; }
.card img.top { object-position: 50% 4%; }
.card h3 { font-size: 26px; font-weight: 600; letter-spacing: -0.25px; line-height: 1.25; margin-bottom: 14px; }
.card p { font-size: 16px; color: var(--text); max-width: 30em; margin: 0 auto 14px; }
.card:hover h3 { color: var(--blue); }
@media (max-width: 760px) { .cards { grid-template-columns: 1fr; } }

/* championship "covers" (like the book shelf) */
.shelf {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 20px;
  margin-top: 56px;
}
.cover {
  aspect-ratio: 2 / 3;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 18px 16px 20px;
  box-shadow: 0 12px 26px rgba(0, 0, 0, .22);
  text-align: left;
}
.cover small { font-size: 11px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; }
.cover b { font-family: "Oswald", sans-serif; font-weight: 600; font-size: clamp(44px, 5.6vw, 76px); line-height: 0.9; letter-spacing: -0.01em; }
.cover span { font-weight: 800; font-size: 15px; line-height: 1.2; text-transform: uppercase; }
.cover em { display: block; font-style: normal; font-weight: 400; font-size: 13px; text-transform: none; margin-top: 4px; }
.cover.c1 { background: var(--navy); color: #fff; }
.cover.c1 small, .cover.c1 span { color: #f5c400; }
.cover.c2 { background: #fff; color: #000; border: 1px solid #e8e8e8; }
.cover.c2 b { color: #d62a1e; }
.cover.c3 { background: #1590d6; color: #fff; }
.cover.c4 { background: #fff; color: #000; border: 8px solid #f5c400; }
.cover.c4 b { color: #d62a1e; }
.cover.c5 { background: #0b3a8c; color: #fff; outline: 6px solid #fff; outline-offset: -14px; }
@media (max-width: 860px) { .shelf { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 520px) { .shelf { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* client logos */
.clients {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 36px 56px;
  max-width: 780px;
  margin: 44px auto 0;
}
.clients img {
  height: 44px;
  width: auto;
  max-width: 170px;
  object-fit: contain;
  filter: brightness(0);
  opacity: .6;
  transition: filter .2s, opacity .2s;
}
.clients img:hover { filter: none; opacity: 1; }
.clients img.tall { height: 54px; }
/* White-only artwork: keep the dark silhouette on hover too. */
.clients img.mono:hover { filter: brightness(0); }
@media (max-width: 600px) {
  .clients { gap: 28px 36px; }
  .clients img { height: 34px; max-width: 130px; }
  .clients img.tall { height: 42px; }
}

/* ---------- inner pages ---------- */

.banner img.pos-standing { object-position: 50% 16%; }
.banner img {
  width: 100%;
  height: clamp(240px, 32vw, 460px);
  object-fit: cover;
  object-position: 50% 30%;
  filter: grayscale(1);
}
.page-head { background: var(--paper); padding: clamp(48px, 6vw, 80px) 0 0; text-align: center; }
.page-head h1 {
  font-size: clamp(38px, 5vw, 64px);
  font-weight: 900;
  line-height: 1.02;
  letter-spacing: -1px;
  text-transform: uppercase;
  margin-top: 8px;
}
.page-head + .section.paper { padding-top: clamp(32px, 4vw, 48px); }

.text { max-width: 760px; margin: 0 auto; color: var(--text); font-size: 18px; }
.text p { margin-bottom: 1.4em; }
.text p:last-child { margin-bottom: 0; }
.text .lead { font-size: 22px; font-weight: 600; color: #000; letter-spacing: -0.5px; line-height: 1.45; }
.text h3 { color: #000; font-size: 22px; font-weight: 700; letter-spacing: -0.25px; margin: 40px 0 12px; }
.text h3:first-child { margin-top: 0; }
.text ul { list-style: none; margin: 0 0 1.4em; }
.text ul li { position: relative; padding-left: 22px; margin-bottom: 8px; }
.text ul li::before { content: ""; position: absolute; left: 0; top: 0.72em; width: 8px; height: 8px; border-radius: 50%; background: var(--blue); }
.text .note { font-size: 15px; color: var(--muted); }
.text.mt { margin-top: 28px; }
.text a:not(.btn) { color: var(--blue); }
.title + .text, .title + .text-block { margin-top: 32px; }

.photos { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.photos img { width: 100%; height: clamp(220px, 24vw, 340px); object-fit: cover; object-position: 50% 18%; }
@media (max-width: 700px) { .photos { grid-template-columns: 1fr; } }

/* numbered program */
.steps { list-style: none; counter-reset: s; max-width: 760px; margin: 40px auto 0; }
.steps li {
  counter-increment: s;
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr);
  padding: 22px 0;
  border-top: 1px solid var(--rule);
}
.steps li:last-child { border-bottom: 1px solid var(--rule); }
.steps li::before { content: counter(s, decimal-leading-zero); font-family: "Oswald", sans-serif; font-size: 26px; font-weight: 500; color: var(--blue); line-height: 1.1; }
.steps h3 { font-size: 20px; font-weight: 700; margin-bottom: 4px; }
.steps p { font-size: 16px; color: var(--text); }

/* two-up blocks */
.pair { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; max-width: 980px; margin: 40px auto 0; }
.pair > div { background: #fff; padding: 32px; }
.paper .pair > div { background: #fff; }
.section:not(.paper) .pair > div { background: var(--paper); }
.pair h3 { font-size: 22px; font-weight: 700; margin-bottom: 12px; }
.pair p { font-size: 16px; color: var(--text); }
.pair a { color: var(--blue); }
@media (max-width: 760px) { .pair { grid-template-columns: 1fr; } }

/* reference tables (types, metaprograms, programs) */
.types { list-style: none; max-width: 980px; margin: 40px auto 0; }
.types li {
  display: grid;
  grid-template-columns: minmax(0, 3fr) minmax(0, 5fr) minmax(0, 4fr);
  gap: 6px 32px;
  padding: 20px 0;
  border-top: 1px solid var(--rule);
  font-size: 16px;
  color: var(--text);
}
.types li:last-child { border-bottom: 1px solid var(--rule); }
.types b { color: #000; font-size: 18px; font-weight: 700; }
.types b a { text-decoration: none; }
.types b a:hover { color: var(--blue); }
.types .how { color: var(--muted); }
.types.two li { grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); }
@media (max-width: 760px) { .types li, .types.two li { grid-template-columns: 1fr; gap: 4px; } }

/* results table */
.results { width: 100%; max-width: 860px; margin: 40px auto 0; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.results th { text-align: left; font-size: 13px; font-weight: 700; text-transform: uppercase; padding: 0 16px 12px 0; border-bottom: 2px solid #000; }
.results td { padding: 16px 16px 16px 0; border-bottom: 1px solid var(--rule); font-size: 17px; color: var(--text); }
.results td:first-child { font-family: "Oswald", sans-serif; font-size: 28px; font-weight: 500; color: #000; width: 3.2em; }
.results .bronze td { color: var(--muted); }
.results .bronze td:first-child { color: var(--muted); }
.results caption { caption-side: bottom; text-align: left; padding-top: 16px; font-size: 15px; color: var(--muted); }
.results caption a { color: var(--blue); }
@media (max-width: 600px) { .results th:nth-child(3), .results td:nth-child(3) { display: none; } .results td:first-child { font-size: 22px; } }

/* timeline */
.timeline { max-width: 860px; margin: 40px auto 0; }
.timeline > div {
  display: grid;
  grid-template-columns: 7em minmax(0, 1fr);
  gap: 0 24px;
  padding: 14px 0;
  border-top: 1px solid var(--rule);
  font-size: 17px;
}
.timeline > div:last-child { border-bottom: 1px solid var(--rule); }
.timeline dt { font-weight: 700; font-variant-numeric: tabular-nums; }
.timeline dd { margin: 0; color: var(--text); }
.timeline dd span { color: var(--muted); }

/* quote band */
.quote-band { background: var(--black); color: #fff; padding: clamp(64px, 8vw, 104px) 0; }
.quote-band blockquote { margin: 0 auto; max-width: 860px; text-align: center; }
.quote-band p { font-size: clamp(24px, 2.8vw, 38px); font-weight: 800; line-height: 1.25; letter-spacing: -0.25px; }
.quote-band cite { display: block; margin-top: 24px; font-style: normal; font-size: 13px; font-weight: 700; text-transform: uppercase; color: #9ca3af; }

/* faq */
.faq { max-width: 760px; margin: 40px auto 0; }
.faq details { border-top: 1px solid var(--rule); }
.faq details:last-child { border-bottom: 1px solid var(--rule); }
.faq summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  gap: 24px;
  padding: 20px 0;
  font-weight: 600;
  font-size: 19px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--blue); font-size: 26px; line-height: 1; font-weight: 400; }
.faq details[open] summary::after { content: "−"; }
.faq details > div { padding: 0 0 24px; font-size: 17px; color: var(--text); }
.faq a { color: var(--blue); }

/* service sections */
.service { max-width: 860px; margin: 0 auto; padding: 56px 0; border-top: 1px solid var(--rule); }
.service:first-child { border-top: 0; padding-top: 0; }
.service h2 { font-size: clamp(28px, 3vw, 38px); font-weight: 800; letter-spacing: -0.5px; line-height: 1.15; margin-bottom: 20px; }
.service .label { color: var(--blue); margin-bottom: 8px; }
.service .text { max-width: none; }

/* ---------- video page ---------- */

.screen { background: var(--black); color: #fff; padding: clamp(40px, 5vw, 64px) 0 clamp(48px, 6vw, 80px); }
.screen .wrap { max-width: 1180px; }
.screen .label { color: #9ca3af; text-align: center; }
.screen-title {
  font-size: clamp(32px, 4.4vw, 56px);
  font-weight: 900;
  line-height: 1.02;
  letter-spacing: -1px;
  text-transform: uppercase;
  text-align: center;
  margin: 8px 0 clamp(28px, 4vw, 44px);
}
.now-playing { max-width: 860px; margin: 24px auto 0; text-align: center; }
.now-playing h2 { font-size: clamp(20px, 2.2vw, 26px); font-weight: 700; letter-spacing: -0.25px; line-height: 1.3; }
.now-playing p { margin-top: 6px; font-size: 15px; color: #9ca3af; }

.videos {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 48px 32px;
  margin-top: 48px;
}
.videos a { display: block; text-decoration: none; }
.videos .thumb { position: relative; display: block; margin-bottom: 18px; overflow: hidden; background: var(--black); }
.videos .thumb img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; transition: transform .35s ease, opacity .2s; }
.videos .thumb::after {
  content: "";
  position: absolute;
  left: 50%; top: 50%;
  width: 56px; height: 56px;
  margin: -28px 0 0 -28px;
  border-radius: 50%;
  background: rgba(17, 15, 16, .72) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23fff' d='M9 6.5v11l9-5.5z'/%3E%3C/svg%3E") 55% 50% / 26px no-repeat;
  opacity: 0;
  transition: opacity .2s;
}
.videos time {
  position: absolute;
  right: 10px; bottom: 10px;
  padding: 3px 7px;
  border-radius: 4px;
  background: rgba(17, 15, 16, .85);
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}
.videos h3 { font-size: 19px; font-weight: 600; line-height: 1.35; letter-spacing: -0.2px; margin-bottom: 8px; }
.videos .label { color: var(--muted); }
.videos a:hover h3 { color: var(--blue); }
.videos a:hover .thumb img { transform: scale(1.03); }
.videos a:hover .thumb::after { opacity: 1; }
.videos a.is-current .thumb { outline: 3px solid var(--blue); outline-offset: 3px; }
.videos a.is-current .thumb::before {
  content: "Сейчас";
  position: absolute;
  left: 10px; top: 10px;
  z-index: 1;
  padding: 3px 8px;
  border-radius: 4px;
  background: var(--blue);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
}
@media (max-width: 960px) { .videos { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .videos { grid-template-columns: 1fr; gap: 36px; } }

/* ---------- player ---------- */

.player {
  --pl-accent: var(--blue);
  position: relative;
  aspect-ratio: 16 / 9;
  background: #000;
  color: #fff;
  overflow: hidden;
  box-shadow: 0 24px 60px rgba(0, 0, 0, .45);
  outline: none;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
}
.player:focus-visible { box-shadow: 0 0 0 3px var(--pl-accent), 0 24px 60px rgba(0, 0, 0, .45); }
.player video { display: block; width: 100%; height: 100%; object-fit: contain; background: #000; }
.player.pl-fs { aspect-ratio: auto; width: 100%; height: 100%; box-shadow: none; }
.player.pl-idle { cursor: none; }
.player button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }

.pl-big {
  position: absolute;
  left: 50%; top: 50%;
  width: 84px; height: 84px;
  margin: -42px 0 0 -42px;
  border-radius: 50%;
  background: var(--pl-accent) !important;
  box-shadow: 0 8px 30px rgba(0, 0, 0, .4);
  display: grid;
  place-items: center;
  transition: transform .2s, opacity .2s, background-color .15s;
}
.pl-big svg { width: 38px; height: 38px; margin-left: 4px; }
.pl-big:hover { transform: scale(1.07); background: var(--blue-dark) !important; }
.player:not(.pl-paused) .pl-big, .pl-waiting .pl-big, .pl-failed .pl-big { opacity: 0; pointer-events: none; transform: scale(.85); }

.pl-spinner {
  position: absolute;
  left: 50%; top: 50%;
  width: 52px; height: 52px;
  margin: -26px 0 0 -26px;
  border-radius: 50%;
  border: 3px solid rgba(255, 255, 255, .2);
  border-top-color: #fff;
  animation: spin .9s linear infinite;
  opacity: 0;
  pointer-events: none;
  transition: opacity .2s .25s;
}
.pl-waiting .pl-spinner { opacity: 1; }

.pl-toast {
  position: absolute;
  left: 50%; top: 18px;
  transform: translateX(-50%);
  padding: 7px 14px;
  border-radius: 6px;
  background: rgba(17, 15, 16, .82);
  font-size: 14px;
  font-weight: 600;
  opacity: 0;
  pointer-events: none;
  transition: opacity .2s;
}
.pl-toasting .pl-toast { opacity: 1; }

.pl-msg {
  position: absolute;
  inset: 0;
  display: grid;
  place-content: center;
  gap: 6px;
  padding: 24px;
  text-align: center;
  background: rgba(17, 15, 16, .78);
}
.pl-msg[hidden] { display: none; }
.pl-msg b { font-size: clamp(20px, 2.4vw, 28px); font-weight: 800; text-transform: uppercase; letter-spacing: -0.25px; }
.pl-msg span { color: #d1d5db; font-size: 15px; }

.pl-bar {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 40px 14px 8px;
  background: linear-gradient(transparent, rgba(0, 0, 0, .78));
  transition: opacity .25s, transform .25s;
}
.player:not(.pl-started) .pl-bar, .pl-failed .pl-bar { opacity: 0; pointer-events: none; }
.pl-idle .pl-bar { opacity: 0; transform: translateY(8px); pointer-events: none; }

.pl-progress { position: relative; height: 18px; display: flex; align-items: center; cursor: pointer; }
.pl-track { position: relative; width: 100%; height: 4px; background: rgba(255, 255, 255, .25); border-radius: 2px; overflow: hidden; transition: height .15s; }
.pl-progress:hover .pl-track { height: 6px; }
.pl-buffer, .pl-played { position: absolute; inset: 0; transform-origin: 0 50%; transform: scaleX(0); }
.pl-buffer { background: rgba(255, 255, 255, .35); }
.pl-played { background: var(--pl-accent); }
.pl-seek {
  position: absolute;
  inset: 0;
  width: 100%;
  margin: 0;
  opacity: 0;
  cursor: pointer;
}
.pl-tip {
  position: absolute;
  bottom: 22px;
  transform: translateX(-50%);
  padding: 3px 7px;
  border-radius: 4px;
  background: rgba(17, 15, 16, .9);
  font-size: 13px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  pointer-events: none;
}
.pl-tip[hidden] { display: none; }

.pl-row { display: flex; align-items: center; gap: 2px; }
.pl-btn { width: 40px; height: 40px; display: grid; place-items: center; border-radius: 6px; opacity: .92; }
.pl-btn:hover, .pl-btn:focus-visible { opacity: 1; background: rgba(255, 255, 255, .12) !important; }
.pl-btn:focus-visible { outline: 2px solid var(--pl-accent); outline-offset: -2px; }
.pl-btn svg { width: 24px; height: 24px; }
.pl-btn[hidden] { display: none; }
.pl-text { width: auto; min-width: 48px; padding: 0 8px !important; font-size: 15px !important; font-weight: 700; font-variant-numeric: tabular-nums; white-space: nowrap; }
.pl-volume { display: flex; align-items: center; }
.pl-vol {
  --fill: 100%;
  width: 0;
  height: 4px;
  margin: 0;
  opacity: 0;
  -webkit-appearance: none;
  appearance: none;
  border-radius: 2px;
  background: linear-gradient(90deg, #fff var(--fill), rgba(255, 255, 255, .3) var(--fill));
  cursor: pointer;
  transition: width .2s, opacity .2s, margin .2s;
}
.pl-volume:hover .pl-vol, .pl-vol:focus-visible { width: 80px; opacity: 1; margin: 0 10px 0 4px; }
.pl-vol::-webkit-slider-thumb { -webkit-appearance: none; width: 13px; height: 13px; border-radius: 50%; background: #fff; border: 0; }
.pl-vol::-moz-range-thumb { width: 13px; height: 13px; border-radius: 50%; background: #fff; border: 0; }
.pl-time { margin-left: 8px; font-size: 14px; font-weight: 500; font-variant-numeric: tabular-nums; white-space: nowrap; }
.pl-spacer { flex: 1; }
@media (max-width: 600px) {
  .pl-big { width: 64px; height: 64px; margin: -32px 0 0 -32px; }
  .pl-big svg { width: 30px; height: 30px; }
  .pl-bar { padding: 28px 6px 2px; }
  .pl-btn { width: 36px; height: 36px; }
  .pl-back, .pl-fwd, .pl-volume, .pl-pip { display: none; }
  .pl-time { font-size: 13px; }
}

/* ---------- calendar ---------- */

.btn-sm { padding: 9px 18px; font-size: 15px; }

.cal {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  gap: 32px clamp(32px, 5vw, 64px);
  align-items: start;
  min-height: 520px;
}
.cal-month { background: #fff; padding: clamp(20px, 3vw, 32px); position: sticky; top: 24px; }
.cal-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 20px; }
.cal-title { font-family: "Oswald", "Inter", sans-serif; font-weight: 500; font-size: 26px; letter-spacing: 1px; text-transform: uppercase; }
.cal-nav {
  width: 42px; height: 42px;
  border: 1px solid var(--rule);
  border-radius: 50%;
  background: #fff;
  font: 400 26px/1 "Inter", sans-serif;
  color: #000;
  cursor: pointer;
  padding-bottom: 3px;
  transition: border-color .15s, color .15s;
}
.cal-nav:hover { border-color: var(--blue); color: var(--blue); }
.cal-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 4px; }
.cal-wd { padding-bottom: 8px; text-align: center; font-size: 12px; font-weight: 700; text-transform: uppercase; color: var(--muted); }
.cal-day {
  position: relative;
  aspect-ratio: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  border: 0;
  border-radius: 8px;
  background: none;
  font: 500 16px/1 "Inter", sans-serif;
  font-variant-numeric: tabular-nums;
  color: #000;
}
.cal-day.is-past { color: #b4b4b0; }
.cal-day.is-today > span:first-child { color: var(--blue); font-weight: 800; }
.cal-day.is-today::after { content: ""; position: absolute; inset: 3px; border: 1.5px solid var(--blue); border-radius: 7px; pointer-events: none; }
button.cal-day { cursor: pointer; background: var(--paper); font-weight: 700; transition: background-color .15s, color .15s; }
button.cal-day:hover { background: #e7e5de; }
button.cal-day.is-selected { background: var(--black); color: #fff; }
.cal-dots { display: flex; gap: 3px; height: 6px; }
.cal-dots i, .cal-legend i { display: block; width: 6px; height: 6px; border-radius: 50%; }
.cal-legend { list-style: none; display: flex; flex-wrap: wrap; gap: 8px 18px; margin-top: 20px; padding-top: 16px; border-top: 1px solid var(--rule); font-size: 13px; color: var(--muted); }
.cal-legend li { display: flex; align-items: center; gap: 7px; }
.cal-legend i { width: 9px; height: 9px; }
.t-training { --tc: var(--blue); }
.t-course { --tc: var(--navy); }
.t-meeting { --tc: #e0b000; }
.t-online { --tc: #d62a1e; }
.cal-dots i, .cal-legend i { background: var(--tc, var(--muted)); }

.cal-list-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; padding-bottom: 14px; border-bottom: 2px solid #000; }
.cal-list-title { font-size: clamp(22px, 2.4vw, 28px); font-weight: 800; letter-spacing: -0.5px; }
.cal-list-title::first-letter { text-transform: uppercase; }
.cal-reset { border: 0; background: none; padding: 0; font: 600 15px/1.3 "Inter", sans-serif; color: var(--blue); cursor: pointer; white-space: nowrap; }
.cal-reset[hidden] { display: none; }
.events { list-style: none; }
.event {
  display: grid;
  grid-template-columns: 76px minmax(0, 1fr);
  gap: 20px;
  padding: 26px 0;
  border-bottom: 1px solid var(--rule);
}
.event-date { border-top: 4px solid var(--tc, #000); padding-top: 10px; text-align: center; }
.event-date b { display: block; font-family: "Oswald", sans-serif; font-size: 30px; font-weight: 500; line-height: 1.05; font-variant-numeric: tabular-nums; white-space: nowrap; }
.event-date span { font-size: 13px; font-weight: 700; text-transform: uppercase; color: var(--muted); }
.event-type { display: block; margin-bottom: 4px; font-size: 13px; font-weight: 700; text-transform: uppercase; color: var(--tc, var(--muted)); }
.event.t-meeting .event-type { color: #a37f00; }
.event h3 { font-size: 21px; font-weight: 700; line-height: 1.3; letter-spacing: -0.25px; }
.event-meta { margin: 6px 0 10px; font-size: 15px; font-weight: 600; color: var(--text); }
.event p:not(.event-meta) { font-size: 16px; color: var(--text); }
.event .btn { margin-top: 14px; }
.event.is-past { opacity: .55; }
.events-empty { padding: 32px 0; color: var(--muted); font-size: 17px; }
.events-empty a, .cal-note a { color: var(--blue); }
.cal-note { margin-top: 48px; font-size: 15px; color: var(--muted); }
.cal:not(.is-ready) { visibility: hidden; }
@media (max-width: 900px) {
  .cal { grid-template-columns: 1fr; min-height: 0; }
  .cal-month { position: static; }
}
@media (max-width: 480px) {
  .event { grid-template-columns: 58px minmax(0, 1fr); gap: 14px; }
  .event-date b { font-size: 24px; }
  .cal-day { font-size: 14px; border-radius: 6px; }
}

/* ---------- loading screen ---------- */

.loader { display: none; }
.is-loading .loader {
  --ld-bg: #f5f5f3; --ld-fg: #18181b; --ld-muted: #6b6b70; --ld-track: rgba(24, 24, 27, .12);
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: var(--ld-bg);
  color: var(--ld-fg);
  font: 400 16px/1.55 system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  text-align: center;
  transition: opacity .4s ease, visibility 0s .4s;
  /* Safety net if loader.js never runs. */
  animation: loader-out .4s 26s forwards;
}
@media (prefers-color-scheme: dark) {
  .is-loading .loader { --ld-bg: #141416; --ld-fg: #f4f4f5; --ld-muted: #9a9aa2; --ld-track: rgba(244, 244, 245, .14); }
}
.is-loaded .loader { opacity: 0; visibility: hidden; }
.loader i {
  width: 44px; height: 44px;
  margin-bottom: 28px;
  border-radius: 50%;
  border: 3px solid var(--ld-track);
  border-top-color: var(--ld-fg);
  animation: spin .9s linear infinite;
}
.loader b { font-size: clamp(24px, 5vw, 32px); font-weight: 600; letter-spacing: -.01em; line-height: 1.25; }
.loader span { margin-top: 10px; max-width: 360px; color: var(--ld-muted); }
.loader small { margin-top: 28px; font-size: 13px; color: var(--ld-muted); }
.loader-bar { width: 200px; height: 3px; margin-top: 24px; border-radius: 2px; background: var(--ld-track); overflow: hidden; }
.loader-bar div { height: 100%; background: var(--ld-fg); transform: scaleX(0); transform-origin: 0 50%; transition: transform .3s ease; }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes loader-out { to { opacity: 0; visibility: hidden; } }
@media (prefers-reduced-motion: reduce) { .loader i, .pl-spinner { animation-duration: 2.4s; } }

/* ---------- footer ---------- */

.site-footer { background: var(--black); color: #fff; }
.contact { padding: clamp(56px, 7vw, 88px) 0 48px; text-align: center; }
.contact .title { color: #fff; }
.contact > .wrap > p { max-width: 640px; margin: 20px auto 0; color: #d1d5db; font-weight: 300; }
.contact-list { list-style: none; display: flex; flex-wrap: wrap; justify-content: center; gap: 14px 48px; margin-top: 32px; }
.contact-list a { font-size: clamp(18px, 2vw, 22px); font-weight: 600; text-decoration: none; }
.contact-list a:hover { color: var(--blue); }
.contact .btns { justify-content: center; margin-top: 36px; }

.footer-bar { border-top: 1px solid #1f1f1f; }
.footer-bar .wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 18px 40px;
  max-width: 1440px;
  padding-top: 28px;
  padding-bottom: 20px;
}
.footer-bar nav { display: flex; flex-wrap: wrap; gap: 10px 48px; }
.footer-bar nav a { font-size: 15px; font-weight: 500; text-transform: uppercase; text-decoration: none; }
.footer-bar nav a:hover { color: var(--blue); }
.copyright { text-align: center; padding: 16px var(--gutter) 32px; font-size: 14px; font-weight: 600; }
