/* Use the same tokens, header, footer and buttons as the training catalogue. */
body.wk-page {
  margin: 0;
  color: var(--color-text);
  background: var(--color-bg);
  font: 400 1rem/1.6 var(--font-base);
}
.wk-page main :is(h1, h2, h3, p, ol) { margin: 0; }
.wk-page main :is(h1, h2, h3) { font-family: var(--font-base); color: inherit; text-wrap: balance; }
.wk-page main h1 { font-size: clamp(2.1rem, 4.1vw, 3.5rem); line-height: 1.05; font-weight: 800; letter-spacing: -.035em; }
.wk-page main h2 { font-size: var(--fs-h2); line-height: var(--lh-tight); font-weight: 800; letter-spacing: -.03em; }
.wk-page main h3 { font-size: var(--fs-h4); line-height: 1.3; font-weight: 750; letter-spacing: -.018em; }
.wk-page .wk-wrap { max-width: var(--container-max); margin-inline: auto; padding-inline: var(--container-pad); }
.wk-page .wk-skip { position: fixed; left: 12px; top: -150px; z-index: 100000; padding: 12px 16px; color: white; background: var(--kcs-black); }
.wk-page .wk-skip:focus { top: 12px; }
.wk-page :is(.kcs-header, .kcs-topbar, .kcs-footer) .kcs-container { margin-inline: auto; }
.wk-page .wk-crumbs { background: var(--kcs-off-white); }
.wk-hero {
  position: relative; isolation: isolate; display: grid; place-items: center;
  min-height: clamp(450px, 54vh, 550px); padding: clamp(52px, 6vw, 84px) var(--container-pad);
  color: #fff; background: var(--kcs-black); text-align: center;
}
.wk-hero .wk-hero-img {
  position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; max-width: none;
  object-fit: cover; object-position: center 41%;
}
.wk-hero::before {
  content: ''; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(90deg, rgba(10,12,14,.50), rgba(10,12,14,.76) 33%, rgba(10,12,14,.75) 66%, rgba(10,12,14,.49));
}
.wk-hero-copy { width: min(100%, 650px); }
.wk-page main .wk-label, .wk-feature .wk-label {
  display: inline-flex; align-items: center; gap: 10px; margin: 0 0 12px;
  font: 750 .78rem/1.5 var(--font-base); letter-spacing: .09em; text-transform: uppercase; color: var(--kcs-red-dark);
}
.wk-label::before { content: ''; width: 26px; height: 2px; flex: 0 0 26px; background: var(--kcs-red); }
.wk-page .wk-hero .wk-label { color: #fff; }
.wk-hero .wk-label::before { display: none; }
.wk-page .wk-hero .wk-lead { max-width: 56ch; margin: 18px auto 0; font-size: var(--fs-lead); line-height: 1.58; color: #fff; }
.wk-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 28px; }
.wk-page .wk-actions a { min-height: 52px; font-weight: 750; }
.wk-page .wk-actions .kcs-button--on-dark { color: #fff; border: 1px solid #fff; background: rgba(21,21,21,.25); }
.wk-page .wk-actions .kcs-button--on-dark:hover { color: var(--kcs-black); background: #fff; }

.wk-page .wk-scene { display: grid; grid-template-columns: minmax(0, .82fr) minmax(0, 1.18fr); align-items: start; gap: clamp(28px, 6vw, 88px); padding-block: var(--section-y); }
.wk-scene > div:first-child { max-width: 40ch; }
.wk-scene > div:last-child { max-width: 65ch; }
.wk-page .wk-scene p + p { margin-top: 16px; }
.wk-page .wk-scene .wk-question {
  padding: 11px 0 11px 18px; border-left: 3px solid var(--kcs-red);
  color: var(--kcs-black); font-size: 1.09rem; line-height: 1.5; font-weight: 750;
}
.wk-page .wk-program { padding-block: var(--section-y); background: var(--color-bg-alt); }
.wk-page .wk-units { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--space-5); margin: 28px 0 0; padding: 0; list-style: none; }
.wk-units li {
  display: grid; align-content: start; gap: 12px; background: var(--kcs-white); border: 1px solid var(--color-border);
  border-top: 3px solid var(--kcs-red); border-radius: var(--radius-md); padding: clamp(20px, 2vw, 28px);
}
.wk-units p, .wk-scene > div > p { color: var(--color-text-muted); }
.wk-page .wk-request {
  width: min(calc(100% - 2 * var(--container-pad)), calc(var(--container-max) - 2 * var(--container-pad)));
  display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 32px; align-items: center;
  margin-block: var(--section-y); padding: clamp(24px, 4vw, 54px);
  color: #fff; background: var(--kcs-black); border-radius: var(--radius-lg);
}
.wk-page .wk-request .wk-label, .wk-page .wk-request h2 { color: #fff; }
.wk-request h2 { max-width: 25ch; }
.wk-page .wk-request h2 + p { margin-top: 14px; max-width: 62ch; color: #e9e9e9; }
.wk-request-links { display: grid; gap: 8px; align-content: center; justify-items: start; }
.wk-page .wk-request .wk-button, .wk-feature .wk-button {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px; padding: 12px 18px;
  border: 1px solid transparent; border-radius: var(--radius-sm); min-height: 48px;
  background: var(--kcs-red); color: white; font: 700 1rem/1.45 var(--font-base); text-decoration: none;
}
.wk-page .wk-request .wk-button:hover, .wk-feature .wk-button:hover { color: #fff; background: var(--kcs-red-dark); }
.wk-page .wk-request .wk-text-link { display: inline-flex; align-items: center; min-height: 44px; color: #fff; text-decoration: underline; text-underline-offset: 3px; }
.wk-page :is(#program, #dla-szkoly, #szkolenie) { scroll-margin-top: 90px; }
.wk-feature {
  display: grid; grid-template-columns: minmax(0, .62fr) minmax(0, 1.38fr); width: 100%; overflow: hidden;
  margin: 0 0 24px; background: var(--kcs-white); border: 1px solid var(--color-border);
  border-radius: var(--radius-lg); box-shadow: var(--shadow-sm); font-family: var(--font-base);
}
.wk-feature .wk-feature-photo { display: block; width: 100%; height: 100%; min-height: 0; max-height: 420px; object-fit: cover; object-position: 45% 47%; }
.wk-feature .wk-feature-copy { align-self: center; padding: clamp(20px, 3vw, 38px); }
.wk-feature .wk-label { margin-bottom: 8px; }
.wk-feature .wk-feature-title { margin: 0; color: var(--color-text); font: 800 clamp(1.48rem, 2.35vw, 2.18rem)/1.15 var(--font-base); letter-spacing: -.03em; }
.wk-feature .wk-feature-lead { max-width: 63ch; margin: 10px 0 17px; color: var(--color-text-muted); font: 400 1rem/1.55 var(--font-base); }
.wk-page a:focus-visible, .wk-feature a:focus-visible { outline: 3px solid var(--color-focus); outline-offset: 3px; box-shadow: 0 0 0 3px #fff; }
@media (max-width: 820px) {
  .wk-page .wk-scene, .wk-page .wk-request, .wk-page .wk-units { grid-template-columns: minmax(0, 1fr); }
  .wk-page .wk-units { gap: 14px; }
  .wk-page .wk-request { gap: 22px; }
}
@media (max-width: 640px) {
  .wk-hero { min-height: 420px; padding-block: 50px; }
  .wk-hero::before { background: rgba(13,15,17,.72); }
  .wk-hero .wk-hero-img { object-position: 38% 48%; }
  .wk-page .wk-crumbs li:last-child { display: none; }
  .wk-page .wk-crumbs li:nth-last-child(2)::after { display: none; }
  .wk-page .wk-hero .wk-lead { max-width: 44ch; }
  .wk-page .wk-scene { gap: 22px; }
  .wk-feature { grid-template-columns: 1fr; }
  .wk-feature .wk-feature-photo { height: clamp(125px, 40vw, 205px); object-position: 42% 38%; }
}
@media (max-width: 399px) {
  .wk-actions { flex-direction: column; align-items: stretch; }
  .wk-page .wk-hero h1 { font-size: 2.05rem; }
}

/* The home-page promotion sits between the navigation and the main hero. */
.wk-spotlight { background: #fff2f3; border-bottom: 1px solid #edcdd1; }
.wk-spotlight a.wk-spotlight-link {
  display: flex; align-items: center; gap: 18px; padding-block: 14px;
  color: var(--kcs-black); font-family: var(--font-base); text-decoration: none;
}
.wk-spotlight-link img {
  display: block; flex: 0 0 auto; width: 88px; height: 58px; object-fit: cover;
  border-radius: var(--radius-sm);
}
.wk-spotlight-copy { display: grid; gap: 2px; }
.wk-spotlight-label {
  color: var(--kcs-red-dark); font-size: .76rem; line-height: 1.4;
  font-weight: 750; letter-spacing: .06em; text-transform: uppercase;
}
.wk-spotlight-copy strong {
  color: var(--kcs-black); font-size: clamp(1.12rem, 2vw, 1.55rem); font-weight: 800;
  line-height: 1.18; letter-spacing: -.025em;
}
.wk-spotlight-action {
  display: inline-flex; align-items: center; gap: 10px; flex-shrink: 0; margin-left: auto;
  padding: 11px 18px; border-radius: var(--radius-sm); background: var(--kcs-red);
  color: #fff; font-weight: 700; line-height: 1.45;
}
.wk-spotlight-link:is(:hover, :focus-visible) .wk-spotlight-action { background: var(--kcs-red-dark); }
.wk-spotlight-link:focus-visible { outline: 3px solid var(--color-focus); outline-offset: -3px; }
@media (max-width: 600px) {
  .wk-spotlight a.wk-spotlight-link { flex-wrap: wrap; gap: 7px; padding-block: 12px; }
  .wk-spotlight-link img { display: none; }
  .wk-spotlight-copy { width: 100%; gap: 3px; }
  .wk-spotlight-action {
    margin: 0; padding: 0; background: transparent; color: var(--kcs-red-dark);
    font-size: .9rem; text-decoration: underline; text-underline-offset: 3px;
  }
  .wk-spotlight-link:is(:hover, :focus-visible) .wk-spotlight-action { background: transparent; }
}
