:root {
  --ink: #06110f;
  --ink-soft: #26322f;
  --muted: #56615e;
  --paper: #fbfbfa;
  --paper-cool: #f4f6f5;
  --line: #d7dcda;
  --line-strong: #b9c2bf;
  --green: #003c38;
  --green-2: #072d2a;
  --green-3: #0c514c;
  --amber: #c87822;
  --amber-soft: #dca357;
  --serif: Didot, "Bodoni 72", "Iowan Old Style", Georgia, serif;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --max: 1240px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: var(--sans);
  line-height: 1.46;
}

svg {
  display: block;
}

a {
  color: inherit;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1,
h2,
h3 {
  font-family: var(--serif);
  font-weight: 500;
  line-height: 0.98;
}

a:focus-visible {
  outline: 3px solid rgba(200, 120, 34, 0.55);
  outline-offset: 3px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: grid;
  min-height: 94px;
  padding: 0 2.5rem;
  grid-template-columns: minmax(150px, 1fr) auto;
  gap: 2rem;
  align-items: center;
  background: rgba(251, 251, 250, 0.94);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(14px);
}

.brand,
.footer-brand {
  display: inline-block;
  width: max-content;
  font-size: 1.05rem;
  font-weight: 830;
  letter-spacing: 0.16em;
  line-height: 1.05;
  text-decoration: none;
  text-transform: uppercase;
}

.header-link,
.cta {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  gap: 0.85rem;
  padding: 0 1.35rem;
  border: 1px solid var(--green);
  color: #fff;
  background: linear-gradient(135deg, var(--green), var(--green-2));
  box-shadow: 0 12px 28px rgba(0, 60, 56, 0.16);
  font-size: 0.92rem;
  font-weight: 560;
  text-decoration: none;
  white-space: nowrap;
  transition: transform 0.16s ease, box-shadow 0.16s ease;
}

.header-link:hover,
.cta:hover {
  transform: translateY(-1px);
  box-shadow: 0 15px 32px rgba(0, 60, 56, 0.22);
}

.header-link svg,
.cta svg {
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.6;
}

main {
  overflow: hidden;
  background: var(--paper);
}

.hero {
  border-bottom: 1px solid var(--line);
  background:
    radial-gradient(circle at 22% 22%, rgba(9, 34, 31, 0.05), transparent 34%),
    linear-gradient(90deg, #fff 0%, #fff 64%, #f1f3f2 64%, #f1f3f2 100%);
}

.hero-grid {
  display: grid;
  min-height: min(720px, calc(100svh - 94px));
  grid-template-columns: minmax(0, 1.46fr) minmax(360px, 0.84fr);
}

.hero-copy {
  display: flex;
  min-width: 0;
  padding: clamp(3.2rem, 5vw, 4.4rem) 5.2vw 3rem;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
}

.eyebrow,
.step-number,
.card-label {
  color: var(--amber);
  font-size: 0.78rem;
  font-weight: 720;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.eyebrow {
  margin-bottom: 1.35rem;
}

h1 {
  max-width: 760px;
  margin-bottom: 1.75rem;
  font-size: clamp(4.9rem, 8.8vw, 8.5rem);
}

.tagline {
  max-width: 740px;
  margin-bottom: 2rem;
  font-family: var(--serif);
  font-size: clamp(2rem, 3.1vw, 3.2rem);
  font-weight: 500;
  line-height: 1.06;
}

.accent {
  color: var(--amber);
}

.short-rule {
  width: 58px;
  height: 1px;
  margin: 0 0 2rem;
  background: var(--line-strong);
}

.hero-offer {
  max-width: 660px;
  margin-bottom: 2rem;
  color: #111c19;
  font-size: 1.08rem;
  line-height: 1.44;
}

.hero-visual {
  position: relative;
  min-height: 100%;
  overflow: hidden;
  border-left: 1px solid var(--line);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.2), transparent 42%),
    #e6e8e6;
}

.concrete {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(7, 17, 15, 0.08) 1px, transparent 1px),
    linear-gradient(0deg, rgba(7, 17, 15, 0.04) 1px, transparent 1px),
    radial-gradient(circle at 28% 16%, rgba(255, 255, 255, 0.7), transparent 32%),
    linear-gradient(145deg, #f3f2ef, #dfe2df);
  background-size: 76px 76px, 76px 76px, auto, auto;
}

.shadow-plane {
  position: absolute;
  top: 0;
  right: 0;
  width: 88%;
  height: 72%;
  clip-path: polygon(18% 0, 100% 0, 66% 100%, 0 100%);
  background: linear-gradient(145deg, rgba(5, 15, 14, 0.18), rgba(5, 15, 14, 0.5));
  mix-blend-mode: multiply;
}

.ribbed-plane {
  position: absolute;
  right: -11%;
  bottom: -1px;
  width: 74%;
  height: 84%;
  clip-path: polygon(28% 0, 100% 0, 100% 72%, 52% 100%, 0 100%, 0 37%);
  background:
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.08) 0 1px, transparent 1px 17px),
    linear-gradient(145deg, #0b4641, #001f1d 70%);
  box-shadow: -28px 0 58px rgba(0, 0, 0, 0.18);
}

.paper-cut {
  position: absolute;
  right: -1px;
  bottom: -1px;
  width: 40%;
  height: 34%;
  clip-path: polygon(100% 0, 100% 100%, 0 100%);
  background: var(--paper);
}

.code-lines {
  position: absolute;
  right: 10%;
  bottom: 19%;
  display: grid;
  width: min(66%, 340px);
  gap: 15px;
  padding: 1.6rem;
  border: 1px solid rgba(255, 255, 255, 0.15);
  background: rgba(0, 31, 29, 0.62);
  box-shadow: 0 24px 50px rgba(0, 0, 0, 0.2);
  backdrop-filter: blur(5px);
}

.code-lines span {
  height: 2px;
  background: rgba(255, 255, 255, 0.66);
}

.code-lines span:nth-child(2) {
  width: 74%;
  background: var(--amber-soft);
}

.code-lines span:nth-child(3) {
  width: 88%;
}

.code-lines span:nth-child(4) {
  width: 52%;
}

.section {
  padding: clamp(4.3rem, 7vw, 7rem) 5.2vw;
  border-bottom: 1px solid var(--line);
  background: var(--paper);
}

.course-section {
  background: var(--paper-cool);
}

.section-inner {
  width: min(var(--max), 100%);
  margin: 0 auto;
}

.section-heading {
  display: grid;
  margin-bottom: clamp(2.5rem, 5vw, 4.7rem);
  grid-template-columns: minmax(280px, 0.7fr) minmax(0, 1fr);
  gap: clamp(2rem, 7vw, 7rem);
  align-items: end;
}

.step-number {
  margin-bottom: 1rem;
}

.section-heading h2 {
  margin-bottom: 0;
  font-size: clamp(2.8rem, 5vw, 5rem);
}

.section-heading > p {
  max-width: 560px;
  margin-bottom: 0.4rem;
  color: var(--ink-soft);
  font-size: 1.05rem;
  line-height: 1.48;
}

.course-grid {
  display: grid;
  gap: 1.6rem;
}

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

.main-course-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.course-card {
  display: flex;
  min-width: 0;
  min-height: 390px;
  padding: 1.75rem;
  flex-direction: column;
  border: 1px solid var(--line-strong);
  background: rgba(255, 255, 255, 0.84);
}

.main-course-grid .course-card {
  min-height: 430px;
  padding: clamp(1.75rem, 3vw, 2.5rem);
}

.featured-card {
  border-top: 3px solid var(--green);
}

.advanced-card {
  border-top: 3px solid var(--amber);
}

.card-topline {
  display: flex;
  margin-bottom: 2.8rem;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.card-number {
  color: var(--amber);
  font-size: 1rem;
  font-weight: 680;
}

.duration {
  color: var(--muted);
  font-size: 0.82rem;
}

.card-label {
  margin-bottom: 0.8rem;
}

.course-card h3 {
  margin-bottom: 1.2rem;
  font-size: clamp(2.3rem, 3.4vw, 3.45rem);
}

.description {
  margin-bottom: 2rem;
  color: var(--ink-soft);
  font-size: 0.97rem;
  line-height: 1.5;
}

.locale-links {
  display: grid;
  margin-top: auto;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.locale-links a {
  display: inline-flex;
  min-width: 0;
  min-height: 50px;
  padding: 0.65rem 0.9rem;
  align-items: center;
  justify-content: space-between;
  color: var(--green);
  font-size: 0.88rem;
  font-weight: 650;
  text-decoration: none;
  transition: color 0.16s ease, background 0.16s ease;
}

.locale-links a::after {
  content: "→";
  margin-left: 0.6rem;
  color: var(--amber);
}

.locale-links a + a {
  border-left: 1px solid var(--line);
}

.locale-links a:hover {
  color: #fff;
  background: var(--green);
}

.locale-links a:hover::after {
  color: var(--amber-soft);
}

footer {
  display: grid;
  padding: 1.4rem 5.2vw;
  grid-template-columns: minmax(130px, 0.32fr) minmax(0, 1fr) auto auto;
  gap: 2.2rem;
  align-items: center;
  color: rgba(255, 255, 255, 0.78);
  background: linear-gradient(135deg, #063b37, #002a27);
  font-size: 0.82rem;
}

.footer-brand {
  color: #fff;
  font-size: 0.82rem;
}

footer a {
  color: #fff;
  text-decoration-color: rgba(255, 255, 255, 0.4);
  text-underline-offset: 0.24em;
}

@media (max-width: 1120px) {
  .hero {
    background: #fff;
  }

  .hero-grid {
    min-height: auto;
    grid-template-columns: 1fr;
  }

  .hero-copy {
    min-height: 650px;
    padding-top: 5rem;
  }

  .hero-visual {
    min-height: 380px;
    border-top: 1px solid var(--line);
    border-left: 0;
  }

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

  footer {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 780px) {
  .site-header {
    position: static;
    min-height: 0;
    padding: 1.2rem;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 1rem;
  }

  .brand {
    font-size: 0.88rem;
  }

  .header-link {
    min-height: 44px;
    padding: 0 1rem;
  }

  .hero-copy {
    min-height: 0;
    padding: 3rem 1.2rem 3.3rem;
  }

  .eyebrow {
    margin-bottom: 1rem;
  }

  h1 {
    margin-bottom: 1.25rem;
    font-size: clamp(3.25rem, 15.5vw, 4.6rem);
  }

  .tagline {
    margin-bottom: 1.35rem;
    font-size: clamp(1.75rem, 8vw, 2.35rem);
  }

  .short-rule,
  .hero-offer {
    margin-bottom: 1.35rem;
  }

  .hero-offer {
    font-size: 1rem;
  }

  .cta {
    width: 100%;
  }

  .hero-visual {
    display: none;
  }

  .section {
    padding: 3.5rem 1.2rem;
  }

  .section-heading,
  .prerequisites-grid,
  .main-course-grid,
  footer {
    grid-template-columns: 1fr;
  }

  .section-heading {
    margin-bottom: 2.4rem;
    gap: 1.3rem;
  }

  .section-heading h2 {
    font-size: clamp(2.75rem, 13vw, 3.8rem);
  }

  .section-heading > p {
    margin-bottom: 0;
    font-size: 1rem;
  }

  .course-card,
  .main-course-grid .course-card {
    min-height: 0;
    padding: 1.45rem;
  }

  .card-topline {
    margin-bottom: 2.2rem;
  }

  .course-card h3 {
    font-size: clamp(2.4rem, 12vw, 3.2rem);
  }

  .description {
    margin-bottom: 1.7rem;
  }

  footer {
    padding: 2rem 1.2rem;
    gap: 1.1rem;
  }
}

@media (max-width: 420px) {
  .site-header {
    align-items: stretch;
    grid-template-columns: 1fr;
  }

  .header-link {
    width: 100%;
  }

  .locale-links {
    grid-template-columns: 1fr;
  }

  .locale-links a + a {
    border-top: 1px solid var(--line);
    border-left: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
  }
}
