:root {
  --ink: #15171a;
  --muted: #626873;
  --paper: #f7f7f4;
  --paper-2: #e6edf2;
  --dark: #0e1117;
  --dark-2: #171c24;
  --line: rgba(22, 23, 19, 0.16);
  --line-light: rgba(255, 255, 255, 0.18);
  --accent: #2f80ed;
  --accent-contrast: #ffffff;
  --red: #d7142f;
  --blue: #005aa9;
  --max: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

a {
  color: inherit;
  text-decoration: none;
}

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

.site-header {
  position: fixed;
  z-index: 20;
  top: 0;
  left: 0;
  right: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 18px clamp(18px, 4vw, 48px);
  color: #fff;
  mix-blend-mode: difference;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border: 1px solid currentColor;
  font-size: 0.72rem;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: clamp(12px, 2vw, 28px);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.site-nav a {
  opacity: 0.78;
  transition: opacity 180ms ease;
}

.site-nav a:hover {
  opacity: 1;
}

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid currentColor;
  color: inherit;
  background: transparent;
  padding: 0;
}

.menu-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  margin: 5px auto;
  background: currentColor;
}

.section-dark {
  color: #f4f0e6;
  background: var(--dark);
}

.section-warm {
  background: var(--paper-2);
}

.hero {
  position: relative;
  min-height: 100svh;
  overflow: hidden;
  display: grid;
  align-items: end;
  padding: 130px clamp(18px, 5vw, 64px) 40px;
}

.hero-media,
.hero-overlay {
  position: absolute;
  inset: 0;
}

.hero-media {
  background:
    linear-gradient(90deg, rgba(17, 20, 15, 0.92), rgba(17, 20, 15, 0.35) 52%, rgba(17, 20, 15, 0.88)),
    url("https://upload.wikimedia.org/wikipedia/commons/thumb/e/e1/CTU_Dejvice_campus.jpg/1280px-CTU_Dejvice_campus.jpg") center / cover;
  transform: scale(1.03);
}

.hero-overlay {
  background:
    linear-gradient(180deg, rgba(17, 20, 15, 0.12), rgba(17, 20, 15, 0.92)),
    repeating-linear-gradient(90deg, transparent 0, transparent 118px, rgba(255, 255, 255, 0.08) 119px);
}

.hero-content,
.hero-stats {
  position: relative;
  z-index: 1;
  max-width: var(--max);
  width: 100%;
  margin: 0 auto;
}

.eyebrow {
  margin: 0 0 18px;
  color: var(--accent);
  font-size: clamp(0.78rem, 1.2vw, 0.92rem);
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.hero h1,
h2 {
  margin: 0;
  max-width: 980px;
  font-size: clamp(3.1rem, 9vw, 8.8rem);
  line-height: 0.9;
  font-weight: 900;
}

.hero-copy {
  max-width: 690px;
  margin: 26px 0 0;
  color: rgba(244, 240, 230, 0.82);
  font-size: clamp(1.04rem, 2vw, 1.42rem);
  line-height: 1.45;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 34px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 20px;
  border: 1px solid currentColor;
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition: transform 180ms ease, background 180ms ease, color 180ms ease;
}

.button:hover {
  transform: translateY(-2px);
}

.button.primary {
  border-color: var(--accent);
  color: var(--accent-contrast);
  background: var(--accent);
}

.button.ghost {
  color: #fff;
  background: rgba(255, 255, 255, 0.04);
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  margin-top: 74px;
  border: 1px solid var(--line-light);
  background: var(--line-light);
}

.hero-stats div {
  min-height: 116px;
  padding: 22px;
  background: rgba(17, 20, 15, 0.72);
}

.hero-stats span {
  display: block;
  color: var(--accent);
  font-size: clamp(1.4rem, 3vw, 2.4rem);
  font-weight: 900;
}

.hero-stats p {
  margin: 8px 0 0;
  color: rgba(244, 240, 230, 0.72);
  font-size: 0.86rem;
  font-weight: 750;
  text-transform: uppercase;
}

section:not(.hero) {
  padding: clamp(74px, 10vw, 132px) clamp(18px, 5vw, 64px);
}

.section-label,
.split-heading,
.intro-grid,
.mission-header,
.pillar-grid,
.teams-layout,
.wide-photo,
.network-copy,
.partner-board,
.contact-grid,
.site-footer {
  max-width: var(--max);
  margin-left: auto;
  margin-right: auto;
}

.section-label {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 34px;
  color: var(--muted);
}

.section-label span {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 1px solid currentColor;
  font-size: 0.74rem;
  font-weight: 900;
}

.section-label p {
  margin: 0;
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.section-label.light {
  color: rgba(244, 240, 230, 0.74);
}

.split-heading,
.teams-layout,
.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(300px, 0.85fr);
  gap: clamp(34px, 6vw, 90px);
  align-items: start;
}

.split-heading h2,
.mission-header h2,
.teams h2,
.network h2,
.contact h2 {
  font-size: clamp(2.4rem, 6vw, 6.2rem);
}

.split-heading p,
.mission-header p,
.teams-layout > div > p,
.network-copy p,
.contact-grid > div > p {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: clamp(1.02rem, 1.6vw, 1.22rem);
  line-height: 1.55;
}

.intro-grid,
.pillar-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  margin-top: 64px;
  border: 1px solid var(--line);
  background: var(--line);
}

.intro-grid article,
.pillar-grid article {
  min-height: 300px;
  padding: clamp(24px, 4vw, 38px);
  background: var(--paper);
}

.intro-grid span,
.team-list span,
.pillar-grid span {
  color: var(--red);
  font-size: 0.76rem;
  font-weight: 900;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

h3 {
  margin: 18px 0 0;
  font-size: clamp(1.45rem, 2.5vw, 2.2rem);
  line-height: 1.02;
}

article p {
  color: var(--muted);
  line-height: 1.55;
}

.mission-header {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.5fr);
  gap: clamp(28px, 5vw, 70px);
}

.mission-header p,
.contact-grid > div > p {
  color: rgba(244, 240, 230, 0.72);
}

.pillar-grid {
  border-color: var(--line-light);
  background: var(--line-light);
}

.pillar-grid article {
  background: var(--dark-2);
}

.pillar-grid p {
  color: rgba(244, 240, 230, 0.7);
}

.teams-layout {
  align-items: stretch;
}

.team-list {
  display: grid;
  gap: 1px;
  border: 1px solid var(--line);
  background: var(--line);
}

.team-list article {
  padding: 24px;
  background: var(--paper);
}

.team-list p {
  margin-bottom: 0;
}

.wide-photo {
  margin-top: 64px;
}

.wide-photo img {
  width: 100%;
  max-height: 520px;
  object-fit: cover;
  filter: saturate(0.85) contrast(1.06);
}

.wide-photo figcaption {
  margin-top: 12px;
  color: var(--muted);
  font-size: 0.82rem;
}

.network-copy {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(280px, 0.65fr);
  gap: clamp(28px, 5vw, 70px);
}

.partner-board {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  margin-top: 58px;
  border: 1px solid var(--line);
  background: var(--line);
}

.partner-board span {
  display: grid;
  place-items: center;
  min-height: 112px;
  padding: 20px;
  background: var(--paper-2);
  color: rgba(22, 23, 19, 0.76);
  font-size: clamp(1rem, 1.7vw, 1.35rem);
  font-weight: 900;
  text-align: center;
}

.partner-board span:nth-child(3n + 1) {
  border-top: 4px solid var(--blue);
}

.partner-board span:nth-child(3n + 2) {
  border-top: 4px solid var(--red);
}

.partner-board span:nth-child(3n) {
  border-top: 4px solid var(--accent);
}

.contact-form {
  display: grid;
  gap: 16px;
  padding: clamp(22px, 4vw, 34px);
  border: 1px solid var(--line-light);
  background: rgba(255, 255, 255, 0.04);
}

label {
  display: grid;
  gap: 8px;
  color: rgba(244, 240, 230, 0.72);
  font-size: 0.76rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid rgba(255, 255, 255, 0.22);
  color: #fff;
  background: rgba(0, 0, 0, 0.24);
  padding: 14px 14px;
  font: inherit;
  font-size: 1rem;
}

textarea {
  resize: vertical;
}

select option {
  color: var(--ink);
}

.contact-links {
  display: grid;
  gap: 12px;
  margin-top: 30px;
}

.contact-links a {
  width: fit-content;
  border-bottom: 1px solid var(--accent);
  color: var(--accent);
  font-weight: 850;
}

.site-footer {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(280px, 0.7fr);
  gap: 40px;
  padding: 44px clamp(18px, 5vw, 64px);
  color: rgba(244, 240, 230, 0.7);
  background: #080a07;
}

.site-footer .brand {
  color: #fff;
}

.site-footer p {
  max-width: 640px;
  line-height: 1.55;
}

.credits {
  font-size: 0.82rem;
}

.credits a {
  color: #fff;
  border-bottom: 1px solid rgba(255, 255, 255, 0.36);
}

@media (max-width: 860px) {
  .site-header {
    align-items: flex-start;
    mix-blend-mode: normal;
    color: #fff;
    background: rgba(8, 10, 7, 0.88);
    backdrop-filter: blur(16px);
  }

  .menu-toggle {
    display: block;
    flex: 0 0 auto;
  }

  .site-nav {
    position: absolute;
    top: 80px;
    left: 18px;
    right: 18px;
    display: none;
    padding: 18px;
    border: 1px solid rgba(255, 255, 255, 0.16);
    background: #080a07;
  }

  .site-nav.is-open {
    display: grid;
  }

  .hero {
    min-height: 920px;
  }

  .hero-stats,
  .intro-grid,
  .pillar-grid,
  .partner-board,
  .split-heading,
  .mission-header,
  .teams-layout,
  .network-copy,
  .contact-grid,
  .site-footer {
    grid-template-columns: 1fr;
  }

  .intro-grid article,
  .pillar-grid article {
    min-height: 230px;
  }
}

@media (max-width: 540px) {
  .brand span:last-child {
    max-width: 126px;
  }

  .hero {
    min-height: 820px;
    padding-top: 112px;
  }

  .hero-actions {
    display: grid;
  }

  .button {
    width: 100%;
  }

  .partner-board span {
    min-height: 88px;
  }
}
