/* =====================================================================
   The detailing course page (course.html).
   Builds on Style/style.css (title bands, page colours, fade-in) and Style/polish.css (the page wrapper).
   Notes:
   - the site-wide rules ".body div div { margin: 10% }" and ".body img { width: 200px }" would squeeze
     anything built from nested <div>s, so this page is built from section / article / ul / figure;
   - polish.css forces "margin: 0 0 30px !important" on every .fade-up / .fade-in-element, so the
     spacing between blocks is done with padding (.crs-sec), never with the margin of an animated element;
   - the accent is the page colour (red on inner pages): --crs-acc.
   ===================================================================== */
.crs {
  --crs-acc: color-mix(in srgb, rgb(var(--acc-r) var(--acc-g) var(--acc-b)) 92%, #000000);
  --crs-acc-rgb: var(--acc-r), var(--acc-g), var(--acc-b);
  --crs-ink: #111111;
  --crs-soft: #5a5a62;
  --crs-line: rgba(0, 0, 0, 0.09);
  --crs-panel: #f6f6f7;
  --crs-dark: #0b0b0c;
  --crs-radius: 18px;
  --crs-shadow: 0 14px 36px rgba(0, 0, 0, 0.09);
  color: var(--crs-ink);
}
.crs section,
.crs article,
.crs aside {
  box-sizing: border-box;
}
.crs img {
  max-width: 100%;
}
.crs .crs-wrap {
  padding-top: 0;
}
.crs .crs-sec {
  padding: clamp(48px, 6vw, 84px) 0 0;
}
.crs h2.main-title {
  margin-top: clamp(56px, 7vw, 96px);
}
.crs #bottom-spacing {
  height: clamp(56px, 7vw, 96px);
}

/* ---------- shared type ---------- */
.crs .crs-kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 12px;
  color: var(--crs-acc);
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.06em;
}
.crs .crs-kicker::before {
  content: "";
  width: 26px;
  height: 2px;
  background: currentColor;
}
.crs .crs-h2 {
  margin: 0;
  font-size: clamp(26px, 3vw, 38px);
  font-weight: 900;
  line-height: 1.25;
  letter-spacing: 0.5px;
  -webkit-text-stroke: 0.6px currentColor;
}
.crs .crs-head {
  margin-bottom: 34px;
}
.crs .crs-head--center {
  text-align: center;
}
.crs .crs-head--center .crs-kicker::after {
  content: "";
  width: 26px;
  height: 2px;
  background: currentColor;
}
.crs .crs-head__note {
  margin: 12px 0 0;
  color: var(--crs-soft);
  font-size: 16px;
}
.crs .crs-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.crs .crs-chips li {
  padding: 7px 14px;
  border: 1px solid var(--crs-line);
  border-radius: 999px;
  background: #ffffff;
  font-size: 14px;
  font-weight: 700;
}
.crs .crs-fineprint {
  margin: 22px 0 0;
  color: #707078;
  font-size: 13px;
  line-height: 1.75;
}
.crs .crs-ico {
  display: grid;
  place-items: center;
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: rgba(var(--crs-acc-rgb), 0.09);
  color: var(--crs-acc);
}
.crs .crs-ico svg {
  width: 23px;
  height: 23px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* ---------- buttons ---------- */
.crs .crs-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 0;
}
.crs .crs-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 52px;
  padding: 0 28px;
  border: 2px solid transparent;
  border-radius: 999px;
  font-size: 16px;
  font-weight: 800;
  text-decoration: none;
  transition: transform 0.3s ease, background 0.3s ease, color 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
  box-sizing: border-box;
}
.crs .crs-btn::after {
  content: "";
  width: 8px;
  height: 8px;
  border-top: 2px solid currentColor;
  border-left: 2px solid currentColor;
  transform: rotate(-45deg);
  transition: transform 0.3s ease;
}
.crs .crs-btn:hover::after {
  transform: translateX(-3px) rotate(-45deg);
}
.crs .crs-btn:focus-visible {
  outline: 3px solid #ffffff;
  outline-offset: 3px;
  box-shadow: 0 0 0 6px var(--crs-acc);
}
.crs .crs-btn--red {
  background: var(--crs-acc);
  color: #ffffff;
  box-shadow: 0 12px 30px rgba(var(--crs-acc-rgb), 0.35);
}
.crs .crs-btn--red:hover {
  background: #ffffff;
  color: #000000;
  transform: translateY(-2px);
}
.crs .crs-btn--glass {
  border-color: rgba(255, 255, 255, 0.55);
  background: rgba(255, 255, 255, 0.06);
  color: #ffffff;
  backdrop-filter: blur(6px);
}
.crs .crs-btn--glass:hover {
  background: #ffffff;
  color: #000000;
  transform: translateY(-2px);
}
.crs .crs-btn--line {
  border-color: #111111;
  background: #ffffff;
  color: #111111;
}
.crs .crs-btn--line:hover {
  background: #111111;
  color: #ffffff;
  transform: translateY(-2px);
}
.crs .crs-btn--wide {
  width: 100%;
}

/* ---------- hero: the opening picture with the promise, and the course in four numbers ---------- */
.crs .crs-hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  min-height: min(78vh, 680px);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  background: #000000;
  color: #ffffff;
}
.crs .crs-hero__bg {
  position: absolute;
  inset: 0;
  z-index: -2;
  background-size: cover;
  background-position: center;
  transform: scale(1.03);
}
.crs .crs-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(270deg, rgba(0, 0, 0, 0.9) 0%, rgba(0, 0, 0, 0.72) 42%, rgba(0, 0, 0, 0.2) 100%),
    linear-gradient(0deg, rgba(0, 0, 0, 0.92) 0%, transparent 45%),
    radial-gradient(ellipse 50% 70% at 85% 10%, rgba(var(--crs-acc-rgb), 0.28), transparent 70%);
}
.crs .crs-hero__inner {
  width: min(1180px, 88vw);
  margin: 0 auto;
  padding: clamp(56px, 8vw, 110px) 0 clamp(36px, 5vw, 56px);
}
.crs .crs-hero .crs-eyebrow {
  display: inline-block;
  margin: 0 0 18px;
  padding: 7px 16px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  color: #ffffff;
  font-size: 14px;
  font-weight: 700;
  backdrop-filter: blur(6px);
}
.crs .crs-hero__title {
  max-width: 720px;
  margin: 0 0 18px;
  color: #ffffff;
  font-size: clamp(32px, 4.6vw, 60px);
  font-weight: 900;
  line-height: 1.15;
  -webkit-text-stroke: 1px #ffffff;
}
.crs .crs-hero__text {
  max-width: 560px;
  margin: 0 0 30px;
  color: #dedee3;
  font-size: clamp(16px, 1.4vw, 19px);
  line-height: 1.75;
}
.crs .crs-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  width: min(1180px, 88vw);
  margin: 0 auto;
  padding: 0;
  list-style: none;
  border-top: 1px solid rgba(255, 255, 255, 0.16);
}
.crs .crs-stats li {
  padding: 22px 18px 26px;
  border-inline-start: 1px solid rgba(255, 255, 255, 0.12);
}
.crs .crs-stats li:first-child {
  border-inline-start: 0;
  padding-inline-start: 0;
}
.crs .crs-stats strong {
  display: block;
  color: #ffffff;
  font-size: clamp(30px, 3.4vw, 46px);
  font-weight: 900;
  line-height: 1;
  direction: ltr;
  text-align: right;
}
.crs .crs-stats span {
  display: block;
  margin-top: 8px;
  color: #b9b9c2;
  font-size: 14px;
  font-weight: 600;
}
.crs .crs-stats li:first-child strong {
  color: rgb(var(--crs-acc-rgb));
}

/* ---------- who it is for ---------- */
.crs .crs-who {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
  margin: 0;
  padding: 0;
  list-style: none;
  border-radius: var(--crs-radius);
  background: #ffffff;
  border: 1px solid var(--crs-line);
  box-shadow: var(--crs-shadow);
  overflow: hidden;
}
.crs .crs-who li {
  position: relative;
  padding: 30px 26px 32px;
  border-inline-start: 1px solid var(--crs-line);
  transition: background 0.3s ease;
}
.crs .crs-who li:first-child {
  border-inline-start: 0;
}
.crs .crs-who li::after {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 3px;
  background: var(--crs-acc);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.4s ease;
}
.crs .crs-who li:hover {
  background: #fcfcfc;
}
.crs .crs-who li:hover::after {
  transform: scaleX(1);
}
.crs .crs-who__num {
  display: block;
  margin: 0 0 18px;
  color: transparent;
  font-size: 46px;
  font-weight: 900;
  line-height: 1;
  -webkit-text-stroke: 1.5px var(--crs-acc);
}
.crs .crs-who h3 {
  margin: 0 0 10px;
  font-size: 19px;
  font-weight: 900;
  line-height: 1.35;
}
.crs .crs-who p {
  margin: 0;
  color: var(--crs-soft);
  font-size: 15.5px;
  line-height: 1.7;
}

/* ---------- a day in the course ---------- */
.crs .crs-daybox {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  gap: clamp(28px, 4vw, 64px);
  align-items: center;
}
.crs .crs-daybox__text .crs-h2 {
  margin-bottom: 34px;
}
.crs .crs-schedule {
  position: relative;
  margin: 0;
  padding: 0;
  list-style: none;
}
.crs .crs-schedule::before {
  content: "";
  position: absolute;
  top: 14px;
  bottom: 14px;
  right: 41px;
  width: 2px;
  background: linear-gradient(180deg, var(--crs-acc), rgba(0, 0, 0, 0.15));
}
.crs .crs-schedule li {
  position: relative;
  display: grid;
  grid-template-columns: 84px minmax(0, 1fr);
  column-gap: 22px;
  padding: 0 0 26px;
}
.crs .crs-schedule li:last-child {
  padding-bottom: 0;
}
.crs .crs-time {
  position: relative;
  z-index: 1;
  grid-row: span 2;
  align-self: start;
  justify-self: center;
  min-width: 70px;
  padding: 6px 10px;
  border-radius: 999px;
  background: #111111;
  color: #ffffff;
  font-size: 14px;
  font-weight: 800;
  text-align: center;
  box-shadow: 0 0 0 5px #ffffff;
}
.crs .crs-schedule li:first-child .crs-time,
.crs .crs-schedule li:last-child .crs-time {
  background: var(--crs-acc);
}
.crs .crs-schedule h3 {
  margin: 3px 0 4px;
  font-size: 19px;
  font-weight: 900;
}
.crs .crs-schedule p {
  margin: 0;
  color: var(--crs-soft);
  font-size: 15.5px;
  line-height: 1.65;
}
.crs .crs-daybox__photo {
  position: relative;
  margin: 0;
}
.crs .crs-daybox__photo img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: var(--crs-radius);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.2);
}
.crs .crs-daybox__photo figcaption {
  position: absolute;
  bottom: 18px;
  right: 18px;
  padding: 10px 16px;
  border-radius: 12px;
  background: rgba(0, 0, 0, 0.75);
  color: #ffffff;
  font-size: 15px;
  font-weight: 700;
  backdrop-filter: blur(6px);
}

/* ---------- syllabus: tabs on a wide screen, an accordion on a phone (javascript/course.js) ---------- */
.crs .crs-tabs {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin: 0 0 22px;
}
.crs .crs-tab {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
  padding: 18px 20px 20px;
  border: 1px solid var(--crs-line);
  border-radius: 16px;
  background: #ffffff;
  color: var(--crs-ink);
  font: inherit;
  text-align: right;
  cursor: pointer;
  overflow: hidden;
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease, color 0.25s ease, border-color 0.25s ease;
}
.crs .crs-tab::after {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 3px;
  background: var(--crs-acc);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.35s ease;
}
.crs .crs-tab:hover {
  transform: translateY(-2px);
  box-shadow: var(--crs-shadow);
}
.crs .crs-tab:hover::after {
  transform: scaleX(1);
}
.crs .crs-tab[aria-selected="true"] {
  border-color: #000000;
  background: var(--crs-dark);
  color: #ffffff;
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.22);
}
.crs .crs-tab[aria-selected="true"]::after {
  transform: scaleX(1);
}
.crs .crs-tab__day {
  color: var(--crs-acc);
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.04em;
}
.crs .crs-tab[aria-selected="true"] .crs-tab__day {
  color: rgb(var(--crs-acc-rgb));
}
.crs .crs-tab__title {
  font-size: 17px;
  font-weight: 900;
  line-height: 1.35;
}
.crs .crs-tab:focus-visible,
.crs .crs-day__toggle:focus-visible,
.crs .faq__item summary:focus-visible {
  outline: 3px solid var(--crs-acc);
  outline-offset: 2px;
}
.crs .crs-days {
  display: grid;
  gap: 12px;
}
.crs .crs-day {
  border: 1px solid var(--crs-line);
  border-radius: var(--crs-radius);
  background: #ffffff;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.05);
  overflow: hidden;
}
.crs .crs-day__head {
  margin: 0;
  font-size: inherit;
}
.crs .crs-day__toggle {
  display: flex;
  align-items: center;
  gap: 14px;
  width: 100%;
  padding: 16px 18px;
  border: 0;
  background: transparent;
  color: var(--crs-ink);
  font: inherit;
  font-size: 17px;
  font-weight: 900;
  line-height: 1.4;
  text-align: right;
  cursor: pointer;
}
.crs .crs-day__toggle::after {
  content: "";
  flex-shrink: 0;
  margin-inline-start: auto;
  width: 9px;
  height: 9px;
  border-bottom: 2px solid currentColor;
  border-left: 2px solid currentColor;
  transform: rotate(-45deg);
  transition: transform 0.3s ease;
}
.crs .crs-day__toggle[aria-expanded="true"]::after {
  transform: rotate(135deg);
}
.crs .crs-day__badge {
  display: grid;
  place-items: center;
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: var(--crs-acc);
  color: #ffffff;
  font-size: 20px;
  font-weight: 900;
}
.crs .crs-day__body {
  display: grid;
  grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr);
  gap: 0;
}
.crs .crs-day__main {
  position: relative;
  padding: 34px 36px 36px;
}
.crs .crs-day__big {
  position: absolute;
  top: 6px;
  left: 26px;
  margin: 0;
  color: transparent;
  font-size: 120px;
  font-weight: 900;
  line-height: 1;
  -webkit-text-stroke: 1.5px rgba(0, 0, 0, 0.07);
  pointer-events: none;
  user-select: none;
}
.crs .crs-day__lead {
  position: relative;
  max-width: 620px;
  margin: 0 0 22px;
  padding-left: 120px;
  font-size: 19px;
  font-weight: 800;
  line-height: 1.6;
}
.crs .crs-topics {
  position: relative;
  margin: 0;
  padding: 0;
  list-style: none;
  column-count: 2;
  column-gap: 34px;
}
.crs .crs-topics li {
  position: relative;
  margin: 0 0 11px;
  padding: 0 26px 0 0;
  font-size: 15.5px;
  line-height: 1.65;
  break-inside: avoid;
}
.crs .crs-topics li::before {
  content: "";
  position: absolute;
  right: 0;
  top: 0.22em;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: rgba(var(--crs-acc-rgb), 0.12) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23c41e28' stroke-width='3.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6L9 17l-5-5'/%3E%3C/svg%3E") center / 10px no-repeat;
}
.crs .crs-topics li.is-biz {
  padding: 10px 40px 10px 12px;
  border-radius: 12px;
  background: var(--crs-panel);
}
.crs .crs-topics li.is-biz::before {
  right: 12px;
  top: calc(10px + 0.22em);
}
.crs .crs-day__side {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 30px 26px;
  background: var(--crs-panel);
  border-inline-start: 1px solid var(--crs-line);
}
.crs .crs-outcome {
  padding: 22px 22px 24px;
  border-radius: 14px;
  background: var(--crs-dark);
  color: #ffffff;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.18);
}
.crs .crs-outcome h4,
.crs .crs-mats h4 {
  margin: 0 0 8px;
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.04em;
}
.crs .crs-outcome h4 {
  color: rgb(var(--crs-acc-rgb));
}
.crs .crs-outcome p {
  margin: 0;
  color: #ececf0;
  font-size: 15.5px;
  line-height: 1.7;
}
.crs .crs-mats {
  padding: 18px 20px 10px;
  border-radius: 14px;
  background: #ffffff;
  border: 1px solid var(--crs-line);
}
.crs .crs-mats h4 {
  color: var(--crs-soft);
}
.crs .crs-mats ul {
  margin: 0;
  padding: 0;
  list-style: none;
}
.crs .crs-mats li {
  margin: 0 0 8px;
  color: #44444a;
  font-size: 14px;
  line-height: 1.5;
}
.crs .crs-mats b {
  display: inline-block;
  min-width: 3.4em;
  margin-inline-end: 4px;
  color: var(--crs-ink);
  font-weight: 900;
  direction: ltr;
  unicode-bidi: isolate;
}
.crs .crs-partnote {
  margin: 0;
  color: var(--crs-soft);
  font-size: 13.5px;
}
/* tab mode: one day at a time, the accordion heads are not needed (the tab says which day it is) */
.crs .crs-syl.is-tabs .crs-day__head {
  display: none;
}
.crs .crs-syl.is-tabs .crs-day {
  box-shadow: var(--crs-shadow);
}
.crs .crs-day__body[hidden],
.crs .crs-day[hidden],
.crs .crs-tabs[hidden] {
  display: none !important;
}

/* ---------- what you get ---------- */
.crs .crs-get {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 48px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.crs .crs-get li {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr);
  column-gap: 18px;
  padding: 22px 0;
  border-bottom: 1px solid var(--crs-line);
}
.crs .crs-get .crs-ico {
  grid-row: span 2;
}
.crs .crs-get h3 {
  margin: 2px 0 4px;
  font-size: 18px;
  font-weight: 900;
}
.crs .crs-get p {
  margin: 0;
  color: var(--crs-soft);
  font-size: 15.5px;
  line-height: 1.65;
}
.crs .crs-get a,
.crs .crs-after a {
  color: var(--crs-ink);
  font-weight: 800;
}

/* ---------- instructor ---------- */
.crs .crs-teacher {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: clamp(28px, 4vw, 64px);
  align-items: center;
}
.crs .crs-teacher__photo {
  position: relative;
  margin: 0;
}
.crs .crs-teacher__photo::before {
  content: "";
  position: absolute;
  inset: 18px -18px -18px 18px;
  z-index: -1;
  border: 2px solid var(--crs-acc);
  border-radius: var(--crs-radius);
}
.crs .crs-teacher__photo img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 4.4;
  object-fit: cover;
  border-radius: var(--crs-radius);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.18);
}
.crs .crs-teacher__text p {
  margin: 16px 0 0;
  color: var(--crs-soft);
  font-size: 17px;
  line-height: 1.8;
}
.crs .crs-teacher blockquote {
  position: relative;
  margin: 26px 0 0;
  padding: 26px 28px 26px 28px;
  border-radius: 16px;
  background: var(--crs-panel);
  border-inline-start: 4px solid var(--crs-acc);
  font-size: 19px;
  font-weight: 700;
  line-height: 1.7;
}
.crs .crs-teacher blockquote::before {
  content: "”";
  position: absolute;
  top: -18px;
  left: 20px;
  color: var(--crs-acc);
  font-size: 80px;
  font-weight: 900;
  line-height: 1;
}

/* ---------- exam and certificate (the certificate is drawn: black, red and white, A4 standing) ---------- */
.crs .crs-exam {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: clamp(28px, 4vw, 64px);
  align-items: center;
}
.crs .crs-exam__text > p:not(.crs-kicker) {
  margin: 16px 0 22px;
  color: var(--crs-soft);
  font-size: 17px;
  line-height: 1.8;
}
.crs .crs-cert {
  margin: 0;
  text-align: center;
}
.crs .crs-cert__paper {
  position: relative;
  width: min(100%, 340px);
  aspect-ratio: 210 / 297;
  margin: 0 auto;
  padding: 13% 10% 10%;
  display: flex;
  flex-direction: column;
  align-items: center;
  border-radius: 6px;
  background:
    radial-gradient(ellipse 80% 40% at 50% 0%, rgba(var(--crs-acc-rgb), 0.22), transparent 70%),
    #121214;
  color: #f4f3ef;
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.3), 0 0 0 1px rgba(0, 0, 0, 0.2);
  transform: rotate(-2.5deg);
  transition: transform 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}
.crs .crs-cert:hover .crs-cert__paper {
  transform: rotate(0deg) translateY(-4px);
}
.crs .crs-cert__paper::before {
  content: "";
  position: absolute;
  inset: 12px;
  border: 1px solid rgba(var(--crs-acc-rgb), 0.85);
  border-radius: 3px;
  pointer-events: none;
}
.crs .crs-cert__paper::after {
  content: "";
  position: absolute;
  bottom: 18%;
  left: 50%;
  width: 54px;
  height: 54px;
  margin-left: -27px;
  border-radius: 50%;
  background: radial-gradient(circle, rgb(var(--crs-acc-rgb)) 0 55%, transparent 56%), repeating-conic-gradient(rgb(var(--crs-acc-rgb)) 0 10deg, transparent 10deg 20deg);
  opacity: 0.9;
}
.crs .crs-cert__paper p {
  margin: 0;
}
.crs .crs-cert__brand {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.32em;
  direction: ltr;
}
.crs .crs-cert__title {
  margin-top: 14% !important;
  font-size: clamp(26px, 2.6vw, 34px);
  font-weight: 900;
}
.crs .crs-cert__course {
  margin-top: 6px !important;
  color: rgb(var(--crs-acc-rgb));
  font-size: 12.5px;
  font-weight: 700;
}
.crs .crs-cert__line {
  width: 80%;
  margin-top: 18% !important;
  padding-top: 6px;
  border-top: 1px solid rgba(244, 243, 239, 0.45);
  color: rgba(244, 243, 239, 0.65);
  font-size: 11px;
}
.crs .crs-cert__sign {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  width: 80%;
  margin-top: auto !important;
}
.crs .crs-cert__sign span {
  flex: 1;
  padding-top: 6px;
  border-top: 1px solid rgba(244, 243, 239, 0.45);
  color: rgba(244, 243, 239, 0.65);
  font-size: 10px;
}
.crs .crs-cert figcaption {
  margin-top: 22px;
  color: #8a8a92;
  font-size: 12.5px;
}

/* ---------- price ---------- */
.crs .crs-pricing {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  gap: 24px;
  align-items: stretch;
}
.crs .crs-price {
  position: relative;
  overflow: hidden;
  padding: 36px 34px 30px;
  border-radius: 22px;
  background:
    radial-gradient(ellipse 70% 55% at 85% 0%, rgba(var(--crs-acc-rgb), 0.3), transparent 70%),
    linear-gradient(180deg, #151517 0%, #0a0a0b 100%);
  color: #ffffff;
  box-shadow: 0 28px 64px rgba(0, 0, 0, 0.28);
}
.crs .crs-price::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 3px;
  background: linear-gradient(90deg, transparent, rgb(var(--crs-acc-rgb)), transparent);
}
.crs .crs-price__label {
  display: inline-block;
  margin: 0 0 14px;
  padding: 5px 14px;
  border-radius: 999px;
  background: var(--crs-acc);
  color: #ffffff;
  font-size: 14px;
  font-weight: 800;
}
.crs .crs-price h3 {
  margin: 0 0 4px;
  color: #ffffff;
  font-size: 21px;
  font-weight: 900;
}
.crs .crs-price__amount {
  margin: 0;
  color: #ffffff;
  font-size: clamp(52px, 6vw, 76px);
  font-weight: 900;
  line-height: 1.05;
  letter-spacing: -1px;
}
.crs .crs-price__amount span {
  font-size: 0.5em;
  font-weight: 800;
}
.crs .crs-price__sub {
  margin: 8px 0 24px;
  color: #b9b9c2;
  font-size: 15px;
}
.crs .crs-checks {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px 20px;
  margin: 0 0 28px;
  padding: 22px 0 0;
  list-style: none;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}
.crs .crs-checks li {
  position: relative;
  padding: 0 28px 0 0;
  color: #ececf0;
  font-size: 15.5px;
  line-height: 1.5;
}
.crs .crs-checks li::before {
  content: "";
  position: absolute;
  right: 0;
  top: 0.12em;
  width: 19px;
  height: 19px;
  border-radius: 50%;
  background: var(--crs-acc) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='3.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6L9 17l-5-5'/%3E%3C/svg%3E") center / 11px no-repeat;
}
.crs .crs-price__small {
  margin: 14px 0 0;
  color: #9d9da6;
  font-size: 14px;
  text-align: center;
}
.crs .crs-part {
  display: flex;
  flex-direction: column;
  padding: 34px 30px 30px;
  border: 1px solid var(--crs-line);
  border-radius: 22px;
  background: #ffffff;
  box-shadow: var(--crs-shadow);
}
.crs .crs-part h3 {
  margin: 0 0 12px;
  font-size: 22px;
  font-weight: 900;
}
.crs .crs-part p {
  margin: 0 0 20px;
  color: var(--crs-soft);
  font-size: 16px;
  line-height: 1.75;
}
.crs .crs-part .crs-chips {
  margin-bottom: 26px;
}
.crs .crs-part .crs-btn {
  margin-top: auto;
  align-self: flex-start;
}
.crs .crs-pay {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  margin: 24px 0 0;
  padding: 0;
  list-style: none;
  counter-reset: pay;
  border: 1px solid var(--crs-line);
  border-radius: 18px;
  background: var(--crs-panel);
  overflow: hidden;
}
.crs .crs-pay li {
  position: relative;
  padding: 20px 24px 22px 24px;
  border-inline-start: 1px solid var(--crs-line);
  counter-increment: pay;
}
.crs .crs-pay li:first-child {
  border-inline-start: 0;
}
.crs .crs-pay strong {
  display: block;
  margin-bottom: 4px;
  font-size: 19px;
  font-weight: 900;
}
.crs .crs-pay strong::before {
  content: counter(pay);
  display: inline-grid;
  place-items: center;
  width: 24px;
  height: 24px;
  margin-inline-end: 10px;
  border-radius: 50%;
  background: #111111;
  color: #ffffff;
  font-size: 13px;
  vertical-align: 2px;
}
.crs .crs-pay span {
  display: block;
  color: var(--crs-soft);
  font-size: 14.5px;
  line-height: 1.6;
}

/* ---------- after the course ---------- */
.crs .crs-after__list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.crs .crs-after__list li {
  padding: 28px 26px;
  border: 1px solid var(--crs-line);
  border-top: 3px solid var(--crs-acc);
  border-radius: 16px;
  background: #ffffff;
  box-shadow: var(--crs-shadow);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.crs .crs-after__list li:hover {
  transform: translateY(-4px);
  box-shadow: 0 22px 46px rgba(0, 0, 0, 0.14);
}
.crs .crs-after__list .crs-ico {
  margin-bottom: 16px;
}
.crs .crs-after__list h3 {
  margin: 0 0 6px;
  font-size: 18px;
  font-weight: 900;
}
.crs .crs-after__list p {
  margin: 0;
  color: var(--crs-soft);
  font-size: 15.5px;
  line-height: 1.65;
}

/* ---------- gallery ---------- */
.crs .crs-gallery {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  grid-template-rows: repeat(2, minmax(0, 220px));
  gap: 14px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.crs .crs-gallery li {
  overflow: hidden;
  border-radius: 16px;
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.1);
}
.crs .crs-gallery li:first-child {
  grid-row: span 2;
}
.crs .crs-gallery li:last-child {
  grid-column: span 2;
}
.crs .crs-gallery img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}
.crs .crs-gallery li:hover img {
  transform: scale(1.05);
}

/* ---------- FAQ (the home page's look, in this page's colour) ---------- */
.crs .faq {
  display: grid;
  gap: 12px;
  width: min(880px, 100%);
  margin: 0 auto;
}
.crs .faq__item {
  overflow: hidden;
  border-radius: 16px;
  background: #ffffff;
  border: 1px solid #ececf0;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  transition: box-shadow 0.3s ease, border-color 0.3s ease, transform 0.3s ease;
}
.crs .faq__item:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.09);
}
.crs .faq__item[open] {
  border-color: var(--crs-acc);
  box-shadow: 0 12px 30px rgba(var(--crs-acc-rgb), 0.12);
  transform: none;
}
.crs .faq__item summary {
  position: relative;
  display: block;
  padding: 20px 26px 20px 74px;
  font-size: 18.5px;
  font-weight: 700;
  line-height: 1.5;
  cursor: pointer;
  list-style: none;
  transition: color 0.25s ease;
}
.crs .faq__item summary::-webkit-details-marker { display: none; }
.crs .faq__item summary:hover { color: var(--crs-acc); }
.crs .faq__item summary::after {
  content: "+";
  position: absolute;
  top: 50%;
  left: 24px;
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  transform: translateY(-50%);
  border-radius: 50%;
  background: rgba(var(--crs-acc-rgb), 0.09);
  color: var(--crs-acc);
  font-size: 22px;
  font-weight: 300;
  line-height: 1;
  transition: transform 0.35s ease;
}
.crs .faq__item[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.crs .faq__item p {
  margin: 0;
  padding: 0 26px 22px;
  color: #444444;
  font-size: 16.5px;
  line-height: 1.85;
}
.crs .faq__item[open] p { animation: crsFaqIn 0.4s ease both; }
@keyframes crsFaqIn {
  from { opacity: 0; transform: translateY(-6px); }
  to { opacity: 1; transform: none; }
}

/* ---------- closing call to action (the about page's look) ---------- */
.crs .crs-cta {
  position: relative;
  overflow: hidden;
  margin-top: clamp(56px, 7vw, 96px) !important;
  padding: clamp(56px, 7vw, 90px) 24px;
  border-radius: 22px;
  background:
    radial-gradient(ellipse 70% 90% at 50% 0%, rgba(var(--crs-acc-rgb), 0.26), transparent 70%),
    linear-gradient(180deg, #0f0f10 0%, #000000 100%);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.25);
  color: #ffffff;
  text-align: center;
}
.crs .crs-cta::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 3px;
  background: linear-gradient(90deg, transparent, rgb(var(--crs-acc-rgb)), transparent);
}
.crs .crs-cta .crs-kicker {
  color: rgb(var(--crs-acc-rgb));
}
.crs .crs-cta .crs-kicker::after {
  content: "";
  width: 26px;
  height: 2px;
  background: currentColor;
}
.crs .crs-cta h2 {
  margin: 0 0 12px;
  color: #ffffff;
  font-size: clamp(30px, 4vw, 44px);
  font-weight: 900;
  -webkit-text-stroke: 1px #ffffff;
}
.crs .crs-cta > p:not(.crs-kicker):not(.crs-actions) {
  max-width: 560px;
  margin: 0 auto 30px;
  color: #d4d4da;
  font-size: 18px;
  line-height: 1.7;
}
.crs .crs-cta .crs-actions {
  justify-content: center;
}

/* ---------- smaller screens ---------- */
@media (max-width: 1200px) {
  .crs .crs-who { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .crs .crs-who li:nth-child(3) { border-inline-start: 0; }
  .crs .crs-who li:nth-child(n+3) { border-top: 1px solid var(--crs-line); }
  .crs .crs-day__body { grid-template-columns: 1fr; }
  .crs .crs-day__side { border-inline-start: 0; border-top: 1px solid var(--crs-line); display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .crs .crs-day__side .crs-partnote { grid-column: 1 / -1; }
}
@media (max-width: 900px) {
  .crs .crs-hero { min-height: 0; }
  .crs .crs-hero::before {
    background:
      linear-gradient(0deg, rgba(0, 0, 0, 0.95) 0%, rgba(0, 0, 0, 0.75) 55%, rgba(0, 0, 0, 0.45) 100%),
      radial-gradient(ellipse 70% 50% at 80% 0%, rgba(var(--crs-acc-rgb), 0.3), transparent 70%);
  }
  .crs .crs-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .crs .crs-stats li:nth-child(3) { border-inline-start: 0; padding-inline-start: 0; }
  .crs .crs-stats li:nth-child(n+3) { border-top: 1px solid rgba(255, 255, 255, 0.12); }
  .crs .crs-daybox,
  .crs .crs-teacher,
  .crs .crs-exam,
  .crs .crs-pricing { grid-template-columns: 1fr; }
  .crs .crs-daybox__photo { order: -1; }
  .crs .crs-daybox__photo img { aspect-ratio: 16 / 10; }
  .crs .crs-teacher__photo { max-width: 420px; }
  .crs .crs-teacher__photo img { aspect-ratio: 16 / 12; }
  .crs .crs-get { grid-template-columns: 1fr; }
  .crs .crs-after__list { grid-template-columns: 1fr; }
  .crs .crs-pay { grid-template-columns: 1fr; }
  .crs .crs-pay li { border-inline-start: 0; border-top: 1px solid var(--crs-line); }
  .crs .crs-pay li:first-child { border-top: 0; }
  .crs .crs-topics { column-count: 1; }
  .crs .crs-gallery { grid-template-columns: 1fr 1fr; grid-template-rows: auto; }
  .crs .crs-gallery li,
  .crs .crs-gallery li:first-child,
  .crs .crs-gallery li:last-child { grid-row: auto; grid-column: auto; aspect-ratio: 4 / 3; }
}
@media (max-width: 600px) {
  .crs .crs-hero__inner { padding-top: 44px; }
  .crs .crs-hero .crs-actions .crs-btn,
  .crs .crs-cta .crs-btn { width: 100%; }
  .crs .crs-stats li { padding: 18px 12px 20px; }
  .crs .crs-who { grid-template-columns: 1fr; }
  .crs .crs-who li { border-inline-start: 0 !important; border-top: 1px solid var(--crs-line); padding: 24px 20px; }
  .crs .crs-who li:first-child { border-top: 0; }
  .crs .crs-who__num { font-size: 38px; margin-bottom: 12px; }
  .crs .crs-schedule li { grid-template-columns: 74px minmax(0, 1fr); column-gap: 14px; }
  .crs .crs-schedule::before { right: 36px; }
  .crs .crs-time { min-width: 64px; font-size: 13px; }
  .crs .crs-day__main { padding: 4px 16px 22px; }
  .crs .crs-day__big { display: none; }
  .crs .crs-day__lead { font-size: 17px; padding-left: 0; }
  .crs .crs-day__side { grid-template-columns: 1fr; padding: 18px 16px; }
  .crs .crs-day__toggle { padding: 14px; font-size: 16px; }
  .crs .crs-day__badge { width: 36px; height: 36px; font-size: 18px; }
  .crs .crs-teacher__photo::before { inset: 12px -10px -12px 10px; }
  .crs .crs-teacher blockquote { padding: 22px 20px; font-size: 17px; }
  .crs .crs-price { padding: 28px 20px 24px; }
  .crs .crs-checks { grid-template-columns: 1fr; }
  .crs .crs-part { padding: 26px 20px; }
  .crs .crs-part .crs-btn { align-self: stretch; }
  .crs .crs-gallery { grid-template-columns: 1fr; }
  .crs .faq__item summary { padding: 16px 16px 16px 60px; font-size: 16.5px; }
  .crs .faq__item summary::after { left: 14px; }
  .crs .faq__item p { padding-inline: 16px; font-size: 15.5px; }
  .crs .crs-cta { border-radius: 18px; }
}
@media (prefers-reduced-motion: reduce) {
  .crs .crs-who li::after,
  .crs .crs-tab,
  .crs .crs-tab::after,
  .crs .crs-btn,
  .crs .crs-after__list li,
  .crs .crs-gallery img,
  .crs .crs-cert__paper,
  .crs .faq__item { transition: none; }
  .crs .crs-after__list li:hover,
  .crs .crs-tab:hover,
  .crs .faq__item:hover { transform: none; }
  .crs .crs-gallery li:hover img { transform: none; }
}

/* ---------- a picture of each day (instead of the product codes), replaceable from the admin ---------- */
.crs .crs-dayshot { margin: 14px 0 0; overflow: hidden; border-radius: 16px; box-shadow: 0 14px 34px rgba(0, 0, 0, 0.12); }
.crs .crs-dayshot img { display: block; width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; }
/* the real certificate (a photo uploaded in the admin): the same tilt and shadow as the drawing it replaces */
.crs .crs-cert__img { display: block; width: min(100%, 340px); height: auto; aspect-ratio: 3 / 4; margin: 0 auto; object-fit: cover; border-radius: 6px;
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.3), 0 0 0 1px rgba(0, 0, 0, 0.2); transform: rotate(-2.5deg); transition: transform 0.5s cubic-bezier(0.22, 1, 0.36, 1); }
.crs .crs-cert:hover .crs-cert__img { transform: rotate(0deg) translateY(-4px); }
.crs .crs-cert.has-photo .crs-cert__paper { display: none; }
.crs .crs-cert__img[hidden] { display: none; }
