/* ==========================================================================
   Kurs / Course page — page-scoped styles.
   Loaded only by kurs.html and kurs-en.html, after style.css.
   Shared header, page-title banner, breadcrumbs, map and footer are untouched.
   ========================================================================== */
:root {
  --k-ink: #0d0a0a;
  --k-paper: #ffffff;
  --k-mist: #f6f6f6;
  --k-line: rgba(0, 0, 0, 0.12);
  --k-line-inv: rgba(255, 255, 255, 0.16);
  --k-muted: rgba(0, 0, 0, 0.58);
  --k-muted-inv: rgba(255, 255, 255, 0.62);
  --k-ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  --k-ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --k-ease-io: cubic-bezier(0.77, 0, 0.175, 1);
}

@media (min-width: 992px) {
  .page {
    overflow: clip;
  }
}

.k-section {
  padding: clamp(56px, 6.5vw, 96px) 0;
}
.k-section[id] {
  scroll-margin-top: 96px;
}
.k-mist {
  background: var(--k-mist);
}
.k-dark {
  background: var(--k-ink);
  color: #fff;
}

/* ---- Type system ------------------------------------------------------- */
.k-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  margin: 0 0 22px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--k-ink);
}
.k-eyebrow::before {
  content: "";
  width: 36px;
  height: 2px;
  background: currentColor;
}
.k-dark .k-eyebrow {
  color: #fff;
}
.k-title {
  margin: 0 0 24px;
  font-size: clamp(34px, 4.4vw, 58px);
  line-height: 0.98;
  letter-spacing: -0.025em;
  font-weight: 600;
  color: var(--k-ink);
  max-width: 15ch;
}
.k-title em {
  font-style: italic;
  font-weight: 300;
}
.k-dark .k-title {
  color: #fff;
}
.k-lead {
  margin: 0 0 22px;
  font-size: clamp(17px, 1.35vw, 20px);
  line-height: 1.5;
  font-weight: 500;
  color: var(--k-ink);
  max-width: 52ch;
}
.k-text {
  margin: 0;
  font-size: 15.5px;
  line-height: 1.7;
  color: var(--k-muted);
  max-width: 60ch;
}
.k-text + .k-text {
  margin-top: 16px;
}
.k-dark .k-text {
  color: var(--k-muted-inv);
}
.k-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px 32px;
  margin-top: 34px;
}
.k-link {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--k-ink);
}
.k-link:hover,
.k-link:focus {
  color: var(--k-ink);
}
.k-link svg {
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
  transition: transform 0.35s var(--k-ease);
}
.k-link:hover svg {
  transform: translateX(6px);
}
.k-link::after {
  content: "";
  position: absolute;
  left: 0;
  right: 28px;
  bottom: -5px;
  height: 1px;
  background: currentColor;
  transform: scaleX(0.35);
  transform-origin: left;
  transition: transform 0.45s var(--k-ease);
}
.k-link:hover::after {
  transform: scaleX(1);
}
.k-dark .k-link,
.k-dark .k-link:hover,
.k-dark .k-link:focus {
  color: #fff;
}
.k-dark .button-primary,
.k-dark .button-primary:focus {
  background: #fff;
  color: var(--k-ink);
  border-color: #fff;
}
.k-dark .button-primary:hover,
.k-dark .button-primary:active {
  background: transparent;
  color: #fff;
  border-color: #fff;
}
.k-section a:focus-visible,
.k-section button:focus-visible,
.k-section .form-input:focus-visible {
  outline: 2px solid currentColor !important;
  outline-offset: 4px;
}

/* ---- 1. Intro ---------------------------------------------------------- */
.k-intro {
  padding-top: clamp(48px, 5.5vw, 80px);
}
.k-intro-grid {
  display: grid;
  grid-template-columns: minmax(0, 6fr) minmax(0, 6fr);
  gap: clamp(32px, 5vw, 80px);
  align-items: center;
}
.k-intro .k-title {
  font-size: clamp(42px, 5.6vw, 77px);
  margin-bottom: 26px;
}
.k-intro .k-lead {
  font-size: clamp(18px, 1.5vw, 22px);
  max-width: 40ch;
}
.k-about {
  display: grid;
  grid-template-columns: minmax(0, 6fr) minmax(0, 6fr);
  gap: 24px clamp(32px, 5vw, 80px);
  margin-top: clamp(32px, 4vw, 56px);
  padding-top: clamp(24px, 3vw, 36px);
  border-top: 1px solid var(--k-line);
}
.k-about .k-text {
  max-width: none;
}
.k-about .k-text:first-child {
  font-size: 17px;
  font-weight: 500;
  color: var(--k-ink);
}
.k-about .k-text + .k-text {
  margin-top: 0;
}
.k-media {
  position: relative;
}
.k-media::before {
  content: "";
  position: absolute;
  top: 18px;
  right: -18px;
  bottom: -18px;
  left: 18px;
  border: 1px solid var(--k-line);
  pointer-events: none;
}
.k-media video {
  position: relative;
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  background: #000;
}
.k-media #intro,
.k-media video {
  margin: 0;
}
.k-badge {
  position: absolute;
  left: 0;
  bottom: 28px;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 18px;
  background: var(--k-ink);
  color: #fff;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.k-badge i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #fff;
}
.k-facts {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  margin-top: clamp(28px, 3.5vw, 44px);
  border-top: 1px solid var(--k-line);
  border-bottom: 1px solid var(--k-line);
}
.k-fact {
  padding: 30px 28px;
  border-left: 1px solid var(--k-line);
  text-align: center;
}
.k-fact:first-child {
  border-left: 0;
}
.k-fact-n {
  font-size: clamp(38px, 4vw, 56px);
  line-height: 1;
  font-weight: 600;
  letter-spacing: -0.03em;
  color: var(--k-ink);
  font-variant-numeric: tabular-nums;
}
.k-fact-n sup {
  font-size: 0.45em;
  top: -0.9em;
  font-weight: 500;
}
.k-fact-l {
  margin: 10px auto 0;
  font-size: 13px;
  line-height: 1.5;
  color: var(--k-muted);
  max-width: 24ch;
}
.k-text strong {
  font-weight: 600;
  color: var(--k-ink);
}
.k-goal {
  margin-top: clamp(32px, 4vw, 56px);
  padding-top: clamp(24px, 3vw, 36px);
  border-top: 1px solid var(--k-line);
}
.k-goal p {
  margin: 0;
  font-size: clamp(21px, 2.1vw, 30px);
  line-height: 1.4;
  letter-spacing: -0.015em;
  font-weight: 500;
  color: var(--k-ink);
  max-width: 48ch;
}
.k-goal span {
  color: var(--k-muted);
}
.k-goal em {
  font-style: italic;
  font-weight: 300;
}

/* ---- 2. Offer: techniques showcase + everything the course covers ------ */
.k-offer {
  position: relative;
  isolation: isolate;
  overflow: hidden;
}
/* soft light behind the stage + a fine film grain over the whole section */
.k-offer::before,
.k-offer::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
}
.k-offer::before {
  background: radial-gradient(40% 36% at 76% 42%, rgba(255, 255, 255, 0.08), transparent 72%);
}
.k-offer::after {
  opacity: 0.07;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
.k-offer-head {
  display: grid;
  grid-template-columns: minmax(0, 6fr) minmax(0, 6fr);
  gap: 28px clamp(32px, 5vw, 96px);
  align-items: stretch;
  margin-bottom: clamp(36px, 4.5vw, 64px);
}
/* both columns span the same height: the eyebrow and the paragraph share the
   top edge, the title and the "limited places" note share the bottom edge */
.k-offer-head > div {
  display: flex;
  flex-direction: column;
}
.k-offer-aside .k-text {
  margin-bottom: 24px;
}
.k-offer-aside .k-seats {
  margin-top: auto;
}
.k-offer-head > div:first-child {
  container-type: inline-size;
}
/* sized from its own column so it always breaks into two lines (SR and EN) */
.k-offer-head .k-title {
  margin-top: auto;
  margin-bottom: 0;
  max-width: none;
  text-wrap: balance;
  font-size: clamp(42px, 6vw, 80px);
  font-size: clamp(40px, 13.4cqw, 80px);
  line-height: 0.95;
}
.k-offer-aside .k-text {
  font-size: 16px;
}
.k-seats {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  margin: 24px 0 0;
  padding-top: 22px;
  border-top: 1px solid var(--k-line-inv);
  font-size: 13.5px;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.86);
}
.k-seats i {
  flex: 0 0 auto;
  width: 8px;
  height: 8px;
  margin-top: 7px;
  border-radius: 50%;
  background: #fff;
  animation: k-pulse 2.4s var(--k-ease) infinite;
}
@keyframes k-pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.55);
  }
  70%,
  100% {
    box-shadow: 0 0 0 10px rgba(255, 255, 255, 0);
  }
}

/* Technique list: outlined names fill with "ink" when active */
.k-tech {
  --k-tech-dur: 5.5s;
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: clamp(32px, 5vw, 96px);
  align-items: center;
}
.k-tech-tabs {
  container-type: inline-size;
  border-top: 1px solid var(--k-line-inv);
}
.k-tech-item {
  position: relative;
  border-bottom: 1px solid var(--k-line-inv);
}
.k-tech-tab {
  --k-tech-empty: transparent;
  --k-tech-stroke: rgba(255, 255, 255, 0.42);
  display: grid;
  grid-template-columns: clamp(38px, 4vw, 58px) minmax(0, 1fr) 34px;
  align-items: center;
  width: 100%;
  margin: 0;
  padding: clamp(12px, 1.5vw, 20px) 0;
  border: 0;
  background: none;
  color: #fff;
  font: inherit;
  text-align: left;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.k-tech-n {
  align-self: start;
  margin-top: 0.7em;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.16em;
  font-variant-numeric: tabular-nums;
  color: var(--k-muted-inv);
  transition: color 0.4s var(--k-ease);
}
.k-tech-name {
  justify-self: start;
  padding-bottom: 0.05em;
  font-size: clamp(34px, 4.4vw, 72px);
  font-size: clamp(30px, 11.2cqw, 92px);
  line-height: 1.04;
  font-weight: 600;
  letter-spacing: -0.035em;
  white-space: nowrap;
  color: transparent;
  background-image: linear-gradient(90deg, #fff 50%, var(--k-tech-empty) 50%);
  background-size: 200% 100%;
  background-position: 100% 0;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-stroke: 1px var(--k-tech-stroke);
  transition: background-position 0.9s var(--k-ease-io), -webkit-text-stroke-color 0.4s var(--k-ease);
}
.k-tech-arrow {
  justify-self: end;
  width: 30px;
  height: 30px;
  opacity: 0;
  transform: translateX(-16px);
  transition: opacity 0.5s var(--k-ease), transform 0.7s var(--k-ease-out);
}
.k-tech-item.is-active .k-tech-tab {
  --k-tech-stroke: #fff;
}
.k-tech-item.is-active .k-tech-n {
  color: #fff;
}
.k-tech-item.is-active .k-tech-name {
  background-position: 0 0;
}
.k-tech-item.is-active .k-tech-arrow {
  opacity: 1;
  transform: none;
}
@media (hover: hover) {
  .k-tech-tab:hover {
    --k-tech-stroke: rgba(255, 255, 255, 0.9);
  }
  .k-tech-tab:hover .k-tech-n {
    color: #fff;
  }
}
/* the active row's rule doubles as the autoplay progress bar */
.k-tech-bar {
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 1px;
  background: #fff;
  transform: scaleX(0);
  transform-origin: left center;
}
.k-tech:not(.is-auto) .k-tech-item.is-active .k-tech-bar {
  transform: scaleX(1);
  transition: transform 0.8s var(--k-ease-io);
}
.k-tech.is-auto .k-tech-item.is-active .k-tech-bar {
  animation: k-tech-progress var(--k-tech-dur) linear forwards;
}
.k-tech.is-paused .k-tech-bar {
  animation-play-state: paused;
}
@keyframes k-tech-progress {
  to {
    transform: scaleX(1);
  }
}

/* Phones: each technique opens its own photo underneath, like an accordion */
.k-tech-drop {
  display: none;
}
.k-tech.is-stacked .k-tech-stage {
  display: none;
}
.k-tech.is-stacked .k-tech-drop {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.8s var(--k-ease-io);
}
.k-tech.is-stacked .k-tech-item.is-active .k-tech-drop {
  grid-template-rows: 1fr;
}
.k-tech-clip {
  min-height: 0;
  overflow: hidden;
}
.k-tech-well {
  position: relative;
  aspect-ratio: 4 / 5;
  margin: 2px 0 22px;
  overflow: hidden;
  background: #181414;
}
.k-tech.is-stacked .k-tech-arrow {
  opacity: 0.45;
  transform: none;
  transition: opacity 0.4s var(--k-ease), transform 0.6s var(--k-ease-io);
}
.k-tech.is-stacked .k-tech-item.is-active .k-tech-arrow {
  opacity: 1;
  transform: rotate(90deg);
}

/* Stage: each photo wipes in from below over the previous one */
.k-tech-stage {
  position: relative;
  margin: 0 18px 18px 0;
}
.k-tech-stage::before {
  content: "";
  position: absolute;
  top: 18px;
  right: -18px;
  bottom: -18px;
  left: 18px;
  border: 1px solid var(--k-line-inv);
  pointer-events: none;
}
.k-tech-frame {
  position: relative;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  background: #181414;
}
.k-tech-frame::after,
.k-tech-well::after {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  z-index: 3;
  height: 26%;
  background: linear-gradient(to bottom, rgba(8, 6, 6, 0.55), rgba(8, 6, 6, 0));
  pointer-events: none;
}
.k-tech-shot {
  position: absolute;
  inset: 0;
  z-index: 1;
  margin: 0;
  clip-path: inset(100% 0 0 0);
  transition: clip-path 0s linear 1.05s;
}
.k-tech-shot.is-active {
  z-index: 2;
  clip-path: inset(0 0 0 0);
  transition: clip-path 1.05s var(--k-ease-io);
}
.k-tech-shot img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.18);
  transition: transform 0s linear 1.05s;
}
.k-tech-shot.is-active img {
  transform: scale(1);
  transition: transform 1.8s var(--k-ease-out);
}
.k-tech-shot::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 58%;
  background: linear-gradient(to top, rgba(8, 6, 6, 0.9) 8%, rgba(8, 6, 6, 0));
  pointer-events: none;
}
.k-tech-shot figcaption {
  position: absolute;
  left: clamp(20px, 2.4vw, 32px);
  right: clamp(20px, 2.4vw, 32px);
  bottom: clamp(20px, 2.4vw, 30px);
  z-index: 1;
  display: grid;
  gap: 10px;
}
.k-tech-cap {
  max-width: 22ch;
  font-size: clamp(18px, 1.6vw, 23px);
  line-height: 1.3;
  font-weight: 500;
  letter-spacing: -0.01em;
  color: #fff;
}
.k-tech-by {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.72);
}
.k-tech-shot figcaption > span {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.3s var(--k-ease), transform 0s linear 0.3s;
}
.k-tech-shot.is-active figcaption > span {
  opacity: 1;
  transform: none;
  transition: opacity 0.7s var(--k-ease) 0.5s, transform 0.9s var(--k-ease-out) 0.5s;
}
.k-tech-shot.is-active .k-tech-by {
  transition-delay: 0.62s;
}
.k-tech-ui {
  position: absolute;
  top: clamp(14px, 2vw, 22px);
  left: clamp(20px, 2.4vw, 32px);
  right: clamp(14px, 2vw, 22px);
  z-index: 4;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 40px;
}
.k-tech-count {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.16em;
  font-variant-numeric: tabular-nums;
  color: rgba(255, 255, 255, 0.72);
}
.k-tech-count b {
  font-weight: 700;
  color: #fff;
}
.k-tech-play {
  display: inline-grid;
  place-items: center;
  width: 40px;
  height: 40px;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: 50%;
  background: rgba(13, 10, 10, 0.3);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  color: #fff;
  cursor: pointer;
  transition: background-color 0.3s var(--k-ease), color 0.3s var(--k-ease), border-color 0.3s var(--k-ease);
}
.k-tech-play[hidden] {
  display: none;
}
.k-tech-play:hover {
  background: #fff;
  border-color: #fff;
  color: var(--k-ink);
}
.k-tech-play svg {
  width: 14px;
  height: 14px;
}
.k-i-pause {
  fill: none;
  stroke: currentColor;
  stroke-width: 2.4;
  stroke-linecap: round;
}
.k-i-play {
  display: none;
  fill: currentColor;
}
.k-tech-play.is-stopped .k-i-pause {
  display: none;
}
.k-tech-play.is-stopped .k-i-play {
  display: inline;
}

/* Everything the course covers: a ruled index, cells fill with white on hover */
.k-incl {
  margin-top: clamp(56px, 6vw, 96px);
}
.k-incl-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px 40px;
  margin-bottom: clamp(28px, 3.4vw, 44px);
}
.k-incl-title {
  margin: 0;
  font-size: clamp(30px, 3.4vw, 48px);
  line-height: 1;
  letter-spacing: -0.025em;
  font-weight: 600;
  color: #fff;
}
.k-incl-title em {
  font-style: italic;
  font-weight: 300;
}
.k-incl-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-top: 1px solid var(--k-line-inv);
  border-left: 1px solid var(--k-line-inv);
}
.k-incl-item {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 18px;
  min-height: clamp(108px, 9.5vw, 136px);
  padding: 18px 20px 20px;
  border-right: 1px solid var(--k-line-inv);
  border-bottom: 1px solid var(--k-line-inv);
}
.k-incl-item::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: #fff;
  transform: translateY(101%);
  transition: transform 0.6s var(--k-ease-io);
}
.k-incl-n {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.16em;
  font-variant-numeric: tabular-nums;
  color: var(--k-muted-inv);
  transition: color 0.4s var(--k-ease);
}
.k-incl-t {
  font-size: clamp(16px, 1.25vw, 18px);
  line-height: 1.4;
  font-weight: 500;
  color: #fff;
  transition: color 0.4s var(--k-ease);
}
.k-incl-item.is-key::before {
  transform: none;
}
.k-incl-item.is-key .k-incl-n,
.k-incl-item.is-key .k-incl-t {
  color: var(--k-ink);
}
.k-incl-item.is-key .k-incl-t {
  font-size: clamp(20px, 1.7vw, 25px);
  line-height: 1.2;
  font-weight: 600;
  letter-spacing: -0.015em;
}
@media (hover: hover) {
  .k-incl-item:hover::before {
    transform: none;
  }
  .k-incl-item:hover .k-incl-n,
  .k-incl-item:hover .k-incl-t {
    color: var(--k-ink);
  }
}
.k-offer-cta {
  margin-top: clamp(32px, 4vw, 48px);
}

/* ---- 3. Mentor + works marquee ------------------------------------------ */
.k-mentor-grid {
  display: grid;
  grid-template-columns: minmax(0, 6fr) minmax(0, 6fr);
  gap: clamp(32px, 6vw, 96px);
  align-items: center;
}
.k-mentor-visual {
  position: relative;
  padding-right: 16%;
}
.k-mv-main {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
}
.k-mv-portrait {
  position: absolute;
  right: 0;
  bottom: -9%;
  width: 44%;
  aspect-ratio: 1;
  object-fit: cover;
  border: 8px solid var(--k-paper);
  filter: grayscale(1);
  box-shadow: 0 30px 60px -30px rgba(0, 0, 0, 0.45);
}
.k-mentor-role {
  margin: -8px 0 22px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--k-muted);
}
.k-quote {
  margin: 28px 0 0;
  padding: 4px 0 4px 26px;
  border-left: 2px solid var(--k-ink);
  font-size: clamp(18px, 1.6vw, 22px);
  line-height: 1.4;
  font-weight: 500;
  color: var(--k-ink);
}
/* the marquee runs full-bleed under the mentor's bio */
.k-works {
  margin-top: clamp(64px, 8vw, 112px);
  overflow: hidden;
}
.k-works-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 8px 32px;
}
.k-works-title {
  margin: 0;
  font-size: clamp(24px, 2.4vw, 34px);
  line-height: 1.1;
  letter-spacing: -0.02em;
  font-weight: 600;
  color: var(--k-ink);
}
.k-marquee {
  margin-top: clamp(24px, 3vw, 40px);
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent);
}
.k-track {
  display: flex;
  width: max-content;
  animation: k-scroll 55s linear infinite;
}
.k-set {
  display: flex;
  gap: 18px;
  padding-right: 18px;
}
@media (hover: hover) {
  .k-marquee:hover .k-track {
    animation-play-state: paused;
  }
}
@keyframes k-scroll {
  to { transform: translateX(-50%); }
}
.k-work {
  position: relative;
  flex: 0 0 auto;
  width: clamp(200px, 22vw, 300px);
  aspect-ratio: 3 / 4;
  margin: 0;
  overflow: hidden;
  background: #111;
}
.k-set .k-work:nth-child(even) {
  margin-top: 40px;
}
.k-work img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(1) contrast(1.05);
  transform: scale(1.02);
  transition: filter 0.6s var(--k-ease), transform 1s var(--k-ease);
}
@media (hover: hover) {
  .k-work:hover img {
    filter: none;
    transform: scale(1.08);
  }
}
.k-work figcaption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 18px 16px 14px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #fff;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.72));
  opacity: 1;
  transform: none;
  transition: opacity 0.45s var(--k-ease), transform 0.45s var(--k-ease);
}
@media (hover: hover) {
  .k-work figcaption {
    opacity: 0;
    transform: translateY(8px);
  }
  .k-work:hover figcaption {
    opacity: 1;
    transform: none;
  }
}

/* ---- 4. Program (curriculum accordion) -------------------------------- */
.k-split {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(32px, 6vw, 110px);
  align-items: start;
}
.k-sticky {
  position: sticky;
  top: 110px;
}
.k-modules {
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--k-line);
}
.k-module {
  border-bottom: 1px solid var(--k-line);
}
.k-module-btn {
  all: unset;
  box-sizing: border-box;
  display: grid;
  grid-template-columns: 64px 1fr 40px;
  gap: 20px;
  align-items: center;
  width: 100%;
  padding: 26px 0;
  cursor: pointer;
  color: var(--k-ink);
}
.k-module-btn:focus-visible {
  outline: 2px solid var(--k-ink);
  outline-offset: 4px;
}
.k-module-num {
  align-self: start;
  padding-top: 6px;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.14em;
  color: var(--k-muted);
  font-variant-numeric: tabular-nums;
}
.k-module-title {
  margin: 0;
  font-size: clamp(19px, 1.8vw, 26px);
  line-height: 1.2;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--k-ink);
  transition: transform 0.35s var(--k-ease);
}
@media (hover: hover) {
  .k-module-btn:hover .k-module-title {
    transform: translateX(6px);
  }
}
.k-module-sub {
  display: block;
  margin-top: 6px;
  font-size: 14px;
  font-weight: 500;
  color: var(--k-muted);
}
.k-ico {
  position: relative;
  width: 40px;
  height: 40px;
  border: 1px solid var(--k-line);
  border-radius: 50%;
  color: var(--k-ink);
  transition: background 0.35s, border-color 0.35s, color 0.35s;
}
.k-ico::before,
.k-ico::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  background: currentColor;
  transition: transform 0.35s var(--k-ease);
}
.k-ico::before {
  width: 14px;
  height: 1.5px;
  transform: translate(-50%, -50%);
}
.k-ico::after {
  width: 1.5px;
  height: 14px;
  transform: translate(-50%, -50%);
}
.k-module-head,
.k-faq-head {
  margin: 0;
  font: inherit;
  color: inherit;
}
.k-module.is-open .k-ico,
.k-faq-item.is-open .k-ico,
.k-module-btn:active .k-ico,
.k-faq-q:active .k-ico {
  background: var(--k-ink);
  border-color: var(--k-ink);
  color: #fff;
}
.k-module.is-open .k-ico::after,
.k-faq-item.is-open .k-ico::after {
  transform: translate(-50%, -50%) rotate(90deg);
}
.k-panel {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.45s var(--k-ease);
}
.is-open > .k-panel {
  grid-template-rows: 1fr;
}
.k-panel > div {
  overflow: hidden;
  visibility: hidden;
  transition: visibility 0s 0.45s;
}
.is-open > .k-panel > div {
  visibility: visible;
  transition-delay: 0s;
}
.k-module-body {
  padding: 0 0 30px 84px;
}
.k-module-body p {
  margin: 0;
  font-size: 15px;
  line-height: 1.65;
  color: var(--k-muted);
  max-width: 56ch;
}
.k-module-body ul {
  list-style: none;
  margin: 16px 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px 32px;
}
.k-module-body li {
  position: relative;
  padding-left: 20px;
  font-size: 14px;
  line-height: 1.5;
  font-weight: 500;
  color: var(--k-ink);
}
.k-module-body li::before {
  content: "\2013";
  position: absolute;
  left: 0;
  top: 0;
  color: var(--k-ink);
}

/* ---- 5. FAQ ------------------------------------------------------------ */
.k-faq {
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--k-line);
}
.k-faq-item {
  border-bottom: 1px solid var(--k-line);
}
.k-faq-q {
  all: unset;
  box-sizing: border-box;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  width: 100%;
  padding: 22px 0;
  cursor: pointer;
  font-size: clamp(16px, 1.3vw, 19px);
  font-weight: 600;
  line-height: 1.3;
  color: var(--k-ink);
}
.k-faq-q:focus-visible {
  outline: 2px solid var(--k-ink);
  outline-offset: 4px;
}
.k-faq-q .k-ico {
  flex: 0 0 auto;
  width: 34px;
  height: 34px;
}
.k-faq-a {
  margin: 0;
  padding: 0 60px 24px 0;
  font-size: 15px;
  line-height: 1.7;
  color: var(--k-muted);
  max-width: 62ch;
}

/* ---- 6. Sign-up + enrolment steps (form styling from style.css) -------- */
.k-signup {
  position: relative;
  overflow: hidden;
}
.k-signup::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  background: url(../images/kurs/form-bg.webp) center / cover no-repeat;
  opacity: 0.09;
  pointer-events: none;
}
.k-signup .container {
  position: relative;
}
.k-signup-grid {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  grid-template-areas: "intro form" "contact form";
  grid-template-rows: auto 1fr;
  gap: 0 clamp(32px, 6vw, 96px);
  align-items: start;
  text-align: left;
}
.k-signup-intro {
  grid-area: intro;
}
.k-signup-grid .k-form-card {
  grid-area: form;
}
.k-signup-grid .k-contact {
  grid-area: contact;
}
.k-signup .k-title {
  color: #fff;
}
.k-contact {
  list-style: none;
  margin: 36px 0 0;
  padding: 0;
  border-top: 1px solid var(--k-line-inv);
}
.k-contact li {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 16px;
  padding: 16px 0;
  border-bottom: 1px solid var(--k-line-inv);
  font-size: 14.5px;
  line-height: 1.5;
  color: #fff;
}
.k-contact span {
  padding-top: 3px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--k-muted-inv);
}
.k-contact a {
  color: #fff;
}
.k-contact a:hover {
  color: rgba(255, 255, 255, 0.7);
}
.k-form-card {
  padding: clamp(22px, 3vw, 40px);
  border: 1px solid var(--k-line-inv);
  background: rgba(255, 255, 255, 0.025);
}
.k-signup .form-input {
  border-color: rgba(255, 255, 255, 0.28);
}
.k-signup .form-input:focus {
  border-color: #fff;
}
.k-signup .form-label {
  color: rgba(255, 255, 255, 0.7);
}
.k-signup .recap-div {
  margin-top: 28px;
  justify-content: flex-start;
}
.k-signup .form-button {
  margin-top: 26px;
  text-align: left;
}
.k-signup .button-primary,
.k-signup .button-primary:focus {
  background: #fff;
  color: var(--k-ink);
  border-color: #fff;
}
.k-signup .button-primary:hover,
.k-signup .button-primary:active {
  background: transparent;
  color: #fff;
  border-color: #fff;
}
.k-field-hint {
  position: absolute;
  left: 0;
  top: 100%;
  margin-top: 3px;
  font-size: 11.5px;
  line-height: 1.3;
  letter-spacing: 0.04em;
  white-space: nowrap;
  color: var(--k-muted-inv);
}
.k-form-note {
  margin: 18px 0 0;
  font-size: 12.5px;
  line-height: 1.55;
  color: var(--k-muted-inv);
}
/* Enrolment steps: a compact numbered list under the sign-up heading */
.k-steps-wrap {
  margin-top: 28px;
}
.k-steps-label {
  margin: 0 0 4px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--k-muted-inv);
}
.k-steps {
  list-style: none;
  margin: 0;
  padding: 0;
}
.k-step {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  column-gap: 16px;
  padding: 16px 0;
  border-bottom: 1px solid var(--k-line-inv);
}
.k-step-dot {
  grid-row: 1 / 3;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border: 1px solid rgba(255, 255, 255, 0.45);
  border-radius: 50%;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  font-variant-numeric: tabular-nums;
  color: #fff;
}
.k-signup .k-step h3 {
  margin: 6px 0 4px;
  font-size: 16px;
  line-height: 1.3;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: #fff;
}
.k-signup .k-step p {
  margin: 0;
  font-size: 14px;
  line-height: 1.55;
  color: var(--k-muted-inv);
}

/* ---- Scroll reveal (content is visible by default; JS opts in) --------- */
html.k-io .k-reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.8s var(--k-ease), transform 0.8s var(--k-ease);
}
html.k-io .k-reveal[data-delay="1"] { transition-delay: 0.1s; }
html.k-io .k-reveal[data-delay="2"] { transition-delay: 0.2s; }
html.k-io .k-reveal[data-delay="3"] { transition-delay: 0.3s; }
html.k-io .k-reveal.k-in {
  opacity: 1;
  transform: none;
}

/* ---- Motion preferences ----------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  .k-seats i {
    animation: none;
  }
  .k-tech-name,
  .k-tech-shot,
  .k-tech-shot.is-active,
  .k-tech-shot img,
  .k-tech-shot.is-active img,
  .k-tech-shot figcaption > span,
  .k-tech-shot.is-active figcaption > span,
  .k-tech.is-stacked .k-tech-drop,
  .k-incl-item::before {
    transition: none;
  }
  .k-tech-shot img {
    transform: none;
  }
  html.k-io .k-reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
  .k-track {
    animation: none;
    flex-wrap: wrap;
    width: auto;
  }
  .k-marquee {
    -webkit-mask-image: none;
    mask-image: none;
  }
  .k-set[aria-hidden="true"] {
    display: none;
  }
  .k-set {
    flex-wrap: wrap;
    justify-content: center;
    padding-right: 0;
  }
  .k-set .k-work:nth-child(even) {
    margin-top: 0;
  }
  html {
    scroll-behavior: auto;
  }
}

/* ---- Responsive -------------------------------------------------------- */
@media (max-width: 1199.98px) {
  .k-incl-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}
@media (max-width: 991.98px) {
  .k-facts {
    grid-template-columns: repeat(2, 1fr);
  }
  .k-fact:nth-child(3) {
    border-left: 0;
  }
  .k-fact:nth-child(-n + 2) {
    border-bottom: 1px solid var(--k-line);
  }
}
@media (max-width: 991.98px) {
  .k-intro-grid,
  .k-split,
  .k-offer-head,
  .k-mentor-grid,
  .k-signup-grid {
    grid-template-columns: minmax(0, 1fr);
  }
  .k-signup-grid {
    grid-template-areas: "intro" "form" "contact";
    grid-template-rows: auto;
    row-gap: 32px;
  }
  .k-signup-grid .k-contact {
    margin-top: 0;
  }
  .k-sticky {
    position: static;
  }
  .k-title {
    max-width: none;
  }
  .k-media {
    margin: 0 18px 18px 0;
  }
  .k-module-btn {
    grid-template-columns: 44px 1fr 36px;
    gap: 14px;
  }
  .k-module-btn .k-ico {
    width: 36px;
    height: 36px;
  }
  .k-module-body {
    padding-left: 58px;
  }
  .k-module-body ul {
    grid-template-columns: 1fr;
  }
  .k-mentor-visual {
    max-width: 520px;
    margin-bottom: 10%;
  }
  .k-media video {
    aspect-ratio: 4 / 3;
  }
}
@media (max-width: 991.98px) {
  .k-offer-head .k-title {
    max-width: none;
  }
  .k-tech {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  }
  .k-tech-tab {
    grid-template-columns: 34px minmax(0, 1fr) 24px;
  }
  .k-tech-arrow {
    width: 22px;
    height: 22px;
  }
  .k-tech-cap {
    font-size: 16px;
  }
  .k-incl-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 767.98px) {
  .k-tech {
    grid-template-columns: minmax(0, 1fr);
    gap: 40px;
  }
  .k-tech-stage {
    order: -1;
    width: calc(100% - 18px);
    max-width: 540px;
  }
  .k-tech-tab {
    --k-tech-empty: rgba(255, 255, 255, 0.26);
    --k-tech-stroke: transparent;
  }
  .k-tech-item.is-active .k-tech-tab {
    --k-tech-stroke: transparent;
  }
}
@media (max-width: 575.98px) {
  .k-section {
    padding: 48px 0;
  }
  .k-fact {
    padding: 22px 16px;
  }
  .k-contact li {
    grid-template-columns: 1fr;
    gap: 4px;
  }
  .k-work {
    width: 200px;
  }
  .k-module-btn {
    grid-template-columns: 36px 1fr 32px;
    gap: 10px;
  }
  .k-module-btn .k-ico {
    width: 32px;
    height: 32px;
  }
  .k-module-btn .k-ico::before {
    width: 12px;
  }
  .k-module-btn .k-ico::after {
    height: 12px;
  }
  .k-module-body {
    padding-left: 46px;
  }
  .k-about {
    grid-template-columns: minmax(0, 1fr);
  }
  .k-incl-grid {
    grid-template-columns: minmax(0, 1fr);
  }
  .k-incl-item {
    flex-direction: row;
    align-items: baseline;
    justify-content: flex-start;
    gap: 16px;
    min-height: 0;
    padding: 13px 16px 14px;
  }
  .k-incl-t {
    font-size: 15px;
  }
  .k-incl-item.is-key .k-incl-t {
    font-size: 18px;
  }
  .k-faq-q {
    padding: 16px 0;
  }
  .k-step {
    padding: 12px 0;
  }
  .k-incl-n {
    flex: 0 0 26px;
  }
  .k-tech-shot figcaption {
    gap: 8px;
  }
  .k-form-card {
    padding: 18px 16px;
    overflow: hidden;
  }
  .k-mentor-visual {
    padding-right: 0;
    padding-bottom: 24%;
  }
  .k-mv-portrait {
    bottom: 0;
  }
  .k-faq-a {
    padding-right: 0;
  }
  .k-badge {
    bottom: 18px;
    padding: 11px 14px;
    font-size: 10px;
    letter-spacing: 0.14em;
  }
  .k-badge-more {
    display: none;
  }
  .k-link {
    min-height: 44px;
  }
  .k-link::after {
    bottom: 8px;
  }
  .k-title {
    line-height: 1.04;
  }
}

/* ---- Very narrow phones: the reCAPTCHA iframe is a fixed 302px ---------- */
@media (max-width: 400px) {
  .k-signup .g-recaptcha {
    transform: scale(0.82);
    transform-origin: 0 0;
  }
  .k-signup .recap-div {
    justify-content: flex-start;
    height: 64px;
  }
  .k-fact-l {
    max-width: none;
    font-size: 12.5px;
    line-height: 1.45;
  }
  .k-fact {
    padding: 20px 12px;
  }
  .k-fact-n {
    font-size: 34px;
  }
  .k-eyebrow {
    gap: 12px;
    letter-spacing: 0.16em;
  }
  .k-eyebrow::before {
    width: 24px;
    flex: 0 0 auto;
  }
  .k-module-body {
    padding-left: 0;
  }
}
