:root {
  --blue: #0755af;
  --blue-dark: #063b78;
  --blue-ink: #082653;
  --blue-soft: #eaf4ff;
  --orange: #ff7a00;
  --orange-soft: #fff0df;
  --green: #16845a;
  --text: #10213f;
  --muted: #5d6d82;
  --paper: #ffffff;
  --mist: #f5f9ff;
  --line: rgba(8, 38, 83, 0.12);
  --shadow: 0 18px 44px rgba(8, 38, 83, 0.12);
  --radius: 8px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  overflow-x: hidden;
  color: var(--text);
  font-family:
    Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  background:
    radial-gradient(circle at 10% 0%, rgba(7, 85, 175, 0.12), transparent 34%),
    linear-gradient(180deg, #ffffff 0%, #f7fbff 46%, #ffffff 100%);
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
}

button,
input {
  font: inherit;
}

.site-header {
  position: sticky;
  z-index: 40;
  top: 0;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 18px;
  width: min(1180px, calc(100% - 24px));
  min-height: 68px;
  margin: 10px auto 0;
  padding: 8px 10px;
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.88);
  box-shadow: 0 12px 36px rgba(8, 38, 83, 0.1);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  width: 150px;
  align-items: center;
  text-decoration: none;
}

.brand img {
  width: 100%;
  height: 42px;
  object-fit: contain;
  object-position: left center;
}

.nav {
  display: flex;
  justify-content: center;
  gap: 6px;
}

.nav a {
  padding: 10px 12px;
  border-radius: var(--radius);
  color: var(--blue-ink);
  font-size: 14px;
  font-weight: 800;
  text-decoration: none;
  white-space: nowrap;
}

.nav a:hover {
  background: rgba(7, 85, 175, 0.08);
}

.header-action,
.btn,
.resume-link,
.vacancy-card a,
.footer-links a,
.sticky-cta a {
  -webkit-tap-highlight-color: transparent;
}

.header-action {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 14px;
  border-radius: var(--radius);
  color: #ffffff;
  font-size: 14px;
  font-weight: 900;
  text-decoration: none;
  background: var(--blue);
  box-shadow: 0 12px 26px rgba(7, 85, 175, 0.22);
  white-space: nowrap;
}

.header-action img {
  width: 24px;
  height: 24px;
  flex: 0 0 24px;
  border-radius: 50%;
}

.mobile-label {
  display: none;
}

.hero {
  position: relative;
  min-height: calc(100svh - 78px);
  margin-top: -78px;
  overflow: hidden;
  padding: 118px 0 56px;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.96) 0%, rgba(244, 250, 255, 0.9) 38%, rgba(244, 250, 255, 0.34) 66%, rgba(255, 255, 255, 0.1) 100%),
    radial-gradient(circle at 28% 42%, rgba(255, 255, 255, 0.98), rgba(236, 246, 255, 0.66) 34%, rgba(255, 255, 255, 0) 58%),
    image-set(
      url("kadroleague-assets/kadroleague-hero-desktop.webp") type("image/webp"),
      url("kadroleague-assets/kadroleague-hero-desktop.png") type("image/png")
    ) center / cover no-repeat;
}

.hero::after {
  position: absolute;
  inset: auto 0 0;
  height: 170px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0), #ffffff);
  content: "";
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 1;
  width: min(1180px, calc(100% - 24px));
  margin: 0 auto;
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--orange);
  font-size: 13px;
  font-weight: 950;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  overflow-wrap: anywhere;
}

h1 {
  max-width: 690px;
  margin: 0;
  color: var(--blue-ink);
  font-size: clamp(42px, 5.8vw, 78px);
  line-height: 0.96;
  letter-spacing: 0;
}

.hero-lead {
  max-width: 650px;
  margin: 20px 0 0;
  color: #273b5f;
  font-size: clamp(17px, 1.8vw, 22px);
  line-height: 1.45;
}

.hero-benefits {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  max-width: 720px;
  margin-top: 22px;
}

.hero-benefits span {
  display: inline-flex;
  min-height: 38px;
  align-items: center;
  padding: 8px 12px;
  border: 1px solid rgba(7, 85, 175, 0.12);
  border-radius: var(--radius);
  color: var(--blue-ink);
  font-size: 14px;
  font-weight: 850;
  background: rgba(255, 255, 255, 0.82);
  box-shadow: 0 10px 28px rgba(8, 38, 83, 0.08);
}

.hero-actions,
.quiz-actions,
.section-actions,
.final-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 26px;
}

.btn {
  display: inline-flex;
  min-height: 56px;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 18px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  font-size: 16px;
  font-weight: 950;
  line-height: 1.12;
  text-align: center;
  text-decoration: none;
  transition:
    transform 160ms ease,
    box-shadow 160ms ease,
    background 160ms ease;
}

.btn:hover,
.vacancy-card:hover {
  transform: translateY(-2px);
}

.btn-primary {
  color: #ffffff;
  background: var(--blue);
  box-shadow: 0 16px 34px rgba(7, 85, 175, 0.26);
}

.btn-accent {
  color: #ffffff;
  background: var(--orange);
  box-shadow: 0 16px 34px rgba(255, 122, 0, 0.24);
}

.btn-soft {
  color: var(--blue-ink);
  border-color: rgba(7, 85, 175, 0.14);
  background: rgba(255, 255, 255, 0.92);
}

.btn-icon {
  display: inline-flex;
  width: 34px;
  height: 34px;
  flex: 0 0 34px;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.18);
}

.btn-icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.resume-link {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  gap: 10px;
  margin-top: 14px;
  padding: 10px 14px;
  border: 1px solid rgba(7, 85, 175, 0.16);
  border-radius: var(--radius);
  color: var(--blue-ink);
  font-size: 15px;
  font-weight: 900;
  text-decoration: none;
  background: rgba(255, 255, 255, 0.8);
}

.section {
  padding: 72px 0;
}

.section-heading {
  width: min(820px, calc(100% - 24px));
  margin: 0 auto 28px;
  text-align: center;
}

.section-heading h2,
.final-copy h2 {
  margin: 0;
  color: var(--blue-ink);
  font-size: clamp(32px, 4.4vw, 56px);
  line-height: 1.06;
  letter-spacing: 0;
}

.section-heading p:not(.eyebrow),
.final-copy p {
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.5;
}

.quiz-section {
  background: #ffffff;
}

.quiz {
  display: grid;
  width: min(920px, calc(100% - 24px));
  gap: 18px;
  margin: 0 auto;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(180deg, #ffffff 0%, #f7fbff 100%);
  box-shadow: var(--shadow);
}

.field-label,
.chip-group legend {
  color: var(--blue-ink);
  font-size: 15px;
  font-weight: 950;
}

.quiz input[type="text"] {
  width: 100%;
  min-height: 54px;
  padding: 13px 14px;
  border: 1px solid rgba(8, 38, 83, 0.16);
  border-radius: var(--radius);
  color: var(--text);
  background: #ffffff;
  outline: none;
}

.quiz input[type="text"]:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(7, 85, 175, 0.12);
}

.chip-group {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0;
  padding: 0;
  border: 0;
}

.chip-group legend {
  width: 100%;
  margin-bottom: 2px;
}

.chip input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.chip span {
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  justify-content: center;
  padding: 10px 13px;
  border: 1px solid rgba(8, 38, 83, 0.13);
  border-radius: var(--radius);
  color: var(--blue-ink);
  font-size: 15px;
  font-weight: 850;
  background: #ffffff;
  cursor: pointer;
  transition:
    border-color 160ms ease,
    background 160ms ease,
    color 160ms ease;
}

.chip input:checked + span {
  border-color: var(--blue);
  color: #ffffff;
  background: linear-gradient(135deg, var(--blue), var(--orange));
}

.quiz-actions {
  margin-top: 4px;
}

.vacancies-section {
  background: var(--mist);
}

.vacancy-grid,
.steps,
.trust-grid {
  display: grid;
  width: min(1180px, calc(100% - 24px));
  margin: 0 auto;
  gap: 16px;
}

.vacancy-grid {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.vacancy-card,
.steps article,
.trust-grid article {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #ffffff;
  box-shadow: 0 14px 32px rgba(8, 38, 83, 0.08);
}

.vacancy-card {
  display: flex;
  min-height: 286px;
  flex-direction: column;
  padding: 18px;
  transition:
    transform 160ms ease,
    box-shadow 160ms ease;
}

.card-icon,
.steps span {
  display: inline-flex;
  width: 42px;
  height: 42px;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius);
  color: #ffffff;
  font-size: 13px;
  font-weight: 950;
  background: linear-gradient(135deg, var(--blue), var(--orange));
}

.image-icon {
  overflow: hidden;
  background: transparent;
}

.image-icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.vacancy-card h3,
.steps h3,
.trust-grid h3 {
  margin: 18px 0 8px;
  color: var(--blue-ink);
  font-size: 21px;
  line-height: 1.15;
}

.vacancy-card p,
.steps p,
.trust-grid p {
  margin: 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.45;
}

.vacancy-card a {
  display: inline-flex;
  width: fit-content;
  min-height: 42px;
  align-items: center;
  margin-top: auto;
  padding-top: 18px;
  color: var(--blue);
  font-size: 15px;
  font-weight: 950;
  text-decoration: none;
}

.vacancy-card a:hover {
  color: var(--orange);
}

.steps-section {
  background: #ffffff;
}

.steps {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.steps article {
  padding: 22px;
}

.section-actions {
  width: min(1180px, calc(100% - 24px));
  justify-content: center;
  margin: 26px auto 0;
}

.trust-section {
  background:
    radial-gradient(circle at 88% 8%, rgba(255, 122, 0, 0.12), transparent 26%),
    var(--mist);
}

.trust-grid {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.trust-grid article {
  min-height: 170px;
  padding: 20px;
}

.final-cta {
  display: grid;
  width: min(1180px, calc(100% - 24px));
  grid-template-columns: 1fr auto;
  gap: 24px;
  align-items: center;
  margin: 72px auto;
  padding: 30px;
  border-radius: var(--radius);
  color: #ffffff;
  background:
    linear-gradient(120deg, rgba(7, 85, 175, 0.95), rgba(255, 122, 0, 0.92)),
    var(--blue);
  box-shadow: var(--shadow);
}

.final-copy .eyebrow,
.final-copy h2,
.final-copy p {
  color: #ffffff;
}

.final-actions {
  justify-content: flex-end;
  margin-top: 0;
}

.site-footer {
  display: grid;
  width: min(1180px, calc(100% - 24px));
  grid-template-columns: auto 1fr auto;
  gap: 18px;
  align-items: center;
  margin: 0 auto;
  padding: 28px 0 calc(30px + env(safe-area-inset-bottom));
  border-top: 1px solid var(--line);
  color: var(--muted);
}

.site-footer img {
  width: 142px;
  height: 46px;
  object-fit: contain;
  object-position: left center;
}

.site-footer p {
  margin: 0;
  font-size: 14px;
  line-height: 1.45;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
}

.footer-links a {
  color: var(--blue);
  font-size: 14px;
  font-weight: 850;
  text-decoration: none;
}

.footer-links a:hover {
  color: var(--orange);
}

.copyright {
  grid-column: 1 / -1;
  color: #7a8798;
}

.sticky-cta {
  display: none;
}

@media (max-width: 1180px) {
  .vacancy-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .trust-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 900px) {
  .site-header {
    grid-template-columns: auto auto;
  }

  .nav {
    display: none;
  }

  .header-action {
    justify-self: end;
  }

  .final-cta,
  .site-footer {
    grid-template-columns: 1fr;
  }

  .final-actions,
  .footer-links {
    justify-content: flex-start;
  }
}

@media (max-width: 720px) {
  body {
    padding-bottom: calc(86px + env(safe-area-inset-bottom));
  }

  .site-header {
    width: auto;
    min-height: 58px;
    margin: 8px 10px 0;
    padding: 7px 8px;
  }

  .brand {
    width: 118px;
  }

  .brand img {
    height: 36px;
  }

  .header-action {
    min-height: 40px;
    padding: 9px 12px;
    font-size: 13px;
  }

  .desktop-label {
    display: none;
  }

  .mobile-label {
    display: inline;
  }

  .header-action img {
    display: none;
  }

  .hero {
    min-height: calc(100svh - 66px);
    margin-top: -66px;
    padding: 96px 0 28px;
    background:
      linear-gradient(180deg, rgba(245, 250, 255, 0.96) 0%, rgba(236, 246, 255, 0.86) 31%, rgba(10, 43, 86, 0.38) 65%, rgba(255, 255, 255, 0.92) 100%),
      radial-gradient(circle at 50% 36%, rgba(255, 255, 255, 0.94), rgba(255, 255, 255, 0.38) 32%, rgba(255, 255, 255, 0) 58%),
      image-set(
        url("kadroleague-assets/kadroleague-hero-mobile.webp") type("image/webp"),
        url("kadroleague-assets/kadroleague-hero-mobile.jpg") type("image/jpeg")
      ) center top / cover no-repeat;
  }

  .hero-content {
    width: calc(100% - 24px);
  }

  .eyebrow {
    font-size: 12px;
  }

  h1 {
    max-width: 560px;
    font-size: clamp(34px, 11vw, 44px);
    line-height: 1.02;
  }

  .hero-lead {
    max-width: 560px;
    margin-top: 14px;
    font-size: 16px;
    line-height: 1.42;
  }

  .hero-benefits {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    margin-top: 16px;
  }

  .hero-benefits span {
    min-height: 36px;
    justify-content: center;
    padding: 8px 9px;
    font-size: 12px;
    text-align: center;
  }

  .hero-actions,
  .quiz-actions,
  .section-actions,
  .final-actions {
    flex-direction: column;
    gap: 10px;
    margin-top: 18px;
  }

  .btn,
  .resume-link {
    width: 100%;
    min-height: 54px;
  }

  .resume-link {
    justify-content: center;
  }

  .section {
    padding: 52px 0;
  }

  .section-heading {
    width: calc(100% - 24px);
    margin-bottom: 20px;
    text-align: left;
  }

  .section-heading h2,
  .final-copy h2 {
    font-size: clamp(29px, 9vw, 42px);
  }

  .section-heading p:not(.eyebrow),
  .final-copy p {
    font-size: 16px;
  }

  .quiz {
    width: calc(100% - 24px);
    padding: 16px;
  }

  .chip-group {
    gap: 8px;
  }

  .chip span {
    min-height: 40px;
    padding: 9px 10px;
    font-size: 14px;
  }

  .vacancy-grid,
  .steps,
  .trust-grid,
  .section-actions,
  .final-cta,
  .site-footer {
    width: calc(100% - 24px);
  }

  .vacancy-grid,
  .steps,
  .trust-grid {
    grid-template-columns: 1fr;
  }

  .vacancy-card {
    min-height: auto;
  }

  .steps article,
  .trust-grid article {
    min-height: auto;
  }

  .final-cta {
    margin: 52px auto;
    padding: 22px;
  }

  .site-footer {
    padding-bottom: calc(104px + env(safe-area-inset-bottom));
  }

  .sticky-cta {
    position: fixed;
    z-index: 50;
    right: 0;
    bottom: 0;
    left: 0;
    display: grid;
    grid-template-columns: 1fr 1fr 0.78fr;
    gap: 8px;
    padding: 10px 10px calc(10px + env(safe-area-inset-bottom));
    border-top: 1px solid rgba(8, 38, 83, 0.12);
    background: rgba(255, 255, 255, 0.94);
    box-shadow: 0 -12px 32px rgba(8, 38, 83, 0.14);
    backdrop-filter: blur(16px);
  }

  .sticky-cta a {
    display: inline-flex;
    min-height: 50px;
    align-items: center;
    justify-content: center;
    gap: 7px;
    border-radius: var(--radius);
    color: #ffffff;
    font-size: 14px;
    font-weight: 950;
    text-decoration: none;
    background: var(--blue);
  }

  .sticky-cta a:nth-child(2) {
    background: var(--orange);
  }

  .sticky-cta .sticky-secondary {
    color: var(--blue-ink);
    border: 1px solid rgba(8, 38, 83, 0.12);
    background: #ffffff;
  }

  .sticky-cta img {
    width: 24px;
    height: 24px;
    border-radius: 50%;
  }
}

@media (max-width: 380px) {
  .hero-benefits {
    grid-template-columns: 1fr;
  }

  h1 {
    font-size: 32px;
  }

  .sticky-cta {
    grid-template-columns: 1fr 1fr;
  }

  .sticky-secondary {
    grid-column: 1 / -1;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition: none !important;
  }
}
