:root {
  --bg: #0d0d0d;
  --panel: rgba(23, 23, 23, 0.86);
  --panel-strong: #171717;
  --text: #ffffff;
  --muted: #a3a3a3;
  --line: rgba(255, 255, 255, 0.14);
  --black: #0d0d0d;
  --red: #eb0005;
  --blue: #004de5;
  --radius: 28px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background:
    radial-gradient(circle at 16% 10%, rgba(235, 0, 5, 0.18), transparent 30rem),
    linear-gradient(180deg, #000000 0%, var(--bg) 48%, #050505 100%);
  color: var(--text);
  font-family: Inter, system-ui, sans-serif;
  overflow-x: hidden;
}

.noise {
  display: none;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: grid;
  grid-template-columns: minmax(360px, 1fr) auto minmax(140px, 1fr);
  align-items: center;
  gap: 24px;
  min-height: 72px;
  padding: 8px clamp(18px, 4vw, 46px);
  border-bottom: 1px solid var(--line);
  background: rgba(0, 0, 0, 0.78);
  backdrop-filter: blur(18px);
  animation: dropIn 0.7s ease both;
}

.brand,
.nav,
.hero-actions,
.hero-stats,
.footer {
  display: flex;
  align-items: center;
}

.brand {
  display: block;
  width: min(360px, 66vw);
  height: 64px;
  overflow: hidden;
  line-height: 0;
}

.brand-logo {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  transform: scale(1.55);
  transform-origin: left center;
}

.menu-toggle {
  display: none;
  width: 46px;
  height: 46px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.06);
  cursor: pointer;
}

.menu-check {
  position: absolute;
  width: 46px;
  height: 46px;
  margin: 0;
  opacity: 0;
  pointer-events: none;
}

.menu-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  margin: 0;
  border-radius: 999px;
  background: var(--text);
  transition: transform 0.22s ease, opacity 0.22s ease;
}

.menu-toggle.is-open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.menu-toggle.is-open span:nth-child(2) {
  opacity: 0;
}

.menu-toggle.is-open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.nav {
  justify-self: center;
  gap: 26px;
  color: rgba(255, 255, 255, 0.82);
  font-weight: 700;
}

.nav a:hover {
  color: var(--text);
}

.header-cta,
.button {
  border-radius: 999px;
  font-weight: 900;
}

.header-cta {
  justify-self: end;
  padding: 12px 18px;
  background: var(--text);
  color: var(--black);
}

.section {
  width: min(1160px, calc(100% - 36px));
  margin: 0 auto;
  padding: 86px 0;
}

.hero {
  display: flex;
  align-items: center;
  min-height: calc(100vh - 86px);
}

.hero-content {
  max-width: 940px;
}

.hero-content > * {
  animation: riseIn 0.8s ease both;
}

.hero-content > *:nth-child(2) {
  animation-delay: 0.08s;
}

.hero-content > *:nth-child(3) {
  animation-delay: 0.16s;
}

.hero-content > *:nth-child(4) {
  animation-delay: 0.24s;
}

.hero-content > *:nth-child(5) {
  animation-delay: 0.32s;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--blue);
  font-weight: 900;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

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

h1 {
  margin-bottom: 24px;
  font-size: clamp(48px, 8vw, 92px);
  line-height: 0.9;
  letter-spacing: -0.08em;
}

h2 {
  font-size: clamp(34px, 5vw, 62px);
  line-height: 0.95;
  letter-spacing: -0.06em;
}

h3 {
  font-size: 22px;
}

.hero-copy,
.section-heading,
.cta-panel p,
.contact p {
  color: var(--muted);
  font-size: 18px;
  line-height: 1.75;
}

.hero-actions {
  gap: 14px;
  margin: 34px 0;
  flex-wrap: wrap;
}

.button {
  display: inline-flex;
  min-height: 54px;
  align-items: center;
  justify-content: center;
  padding: 0 24px;
  border: 0;
  cursor: pointer;
}

.button-primary {
  background: var(--red);
  color: white;
  box-shadow: 0 18px 46px rgba(235, 0, 5, 0.28);
}

.button-secondary {
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.06);
}

.hero-stats {
  gap: 12px;
  flex-wrap: wrap;
}

.hero-stats article,
.benefit-card,
.course-card,
.steps article,
.contact-form,
.cta-panel {
  border: 1px solid var(--line);
  background: var(--panel);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.28);
}

.hero-stats article {
  min-width: 150px;
  padding: 16px;
  border-radius: 22px;
}

.hero-stats strong {
  display: block;
  color: var(--red);
  font-size: 28px;
}

.hero-stats span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.benefits,
.course-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.benefit-card,
.course-card,
.steps article {
  border-radius: 24px;
  padding: 26px;
}

.benefit-card span {
  color: var(--red);
  font-weight: 900;
}

.benefit-card p,
.course-card p,
.steps p {
  color: var(--muted);
  line-height: 1.65;
}

.section-heading {
  max-width: 780px;
  margin-bottom: 32px;
  color: var(--text);
}

.section-heading h2 {
  color: var(--text);
}

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

.course-card {
  display: flex;
  min-height: 260px;
  flex-direction: column;
  align-items: flex-start;
  transition: transform 0.25s ease, border-color 0.25s ease;
}

.course-card:hover {
  transform: translateY(-8px);
  border-color: rgba(235, 0, 5, 0.55);
}

.course-link {
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  margin-top: auto;
  padding: 0 18px;
  border: 1px solid rgba(235, 0, 5, 0.62);
  border-radius: 999px;
  background: var(--red);
  color: var(--text);
  font-weight: 900;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.course-link:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 32px rgba(235, 0, 5, 0.28);
}

.course-detail-hero {
  min-height: 68vh;
  padding-top: 120px;
}

.back-link {
  display: inline-flex;
  margin-bottom: 34px;
  color: var(--muted);
  font-weight: 900;
}

.back-link:hover {
  color: var(--text);
}

.course-detail-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 18px;
  padding-top: 0;
}

.detail-panel {
  border: 1px solid var(--line);
  border-radius: 24px;
  background: var(--panel);
  padding: clamp(24px, 4vw, 38px);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.28);
}

.detail-panel-wide {
  grid-column: 1 / -1;
}

.detail-number {
  display: block;
  margin-bottom: 16px;
  color: var(--red);
  font-weight: 900;
}

.detail-panel h2 {
  margin-bottom: 20px;
  font-size: clamp(30px, 4vw, 48px);
}

.detail-panel p,
.check-list {
  color: var(--muted);
  font-size: 18px;
  line-height: 1.75;
}

.check-list {
  display: grid;
  gap: 14px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.check-list li {
  position: relative;
  padding-left: 34px;
}

.check-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--red);
  font-weight: 900;
}

.split,
.contact {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: 28px;
  align-items: start;
}

.steps {
  display: grid;
  gap: 14px;
}

.steps strong {
  display: block;
  margin-bottom: 8px;
  color: var(--blue);
  font-size: 20px;
}

.cta-panel {
  overflow: hidden;
  position: relative;
  padding: clamp(34px, 6vw, 64px);
  border-radius: var(--radius);
  text-align: center;
  isolation: isolate;
}

.cta-panel::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  background:
    linear-gradient(90deg, rgba(0, 0, 0, 0.92) 0%, rgba(0, 0, 0, 0.74) 46%, rgba(0, 0, 0, 0.58) 100%),
    url("https://images.pexels.com/photos/33814735/pexels-photo-33814735.jpeg?auto=compress&cs=tinysrgb&w=1600") center / cover;
  filter: saturate(0.9) contrast(1.08);
  transform: scale(1.04);
  animation: bannerPhoto 12s ease-in-out infinite alternate;
}

.cta-panel::after {
  content: "";
  position: absolute;
  inset: auto 16% -42% 16%;
  z-index: -1;
  height: 72%;
  border-radius: 50%;
  background: rgba(235, 0, 5, 0.34);
  filter: blur(58px);
  animation: redPulse 2.8s ease-in-out infinite;
}

.cta-panel > * {
  position: relative;
  animation: bannerContentIn 0.85s ease both;
}

.cta-panel .button {
  animation: buttonPulse 1.9s ease-in-out infinite;
}

.contact-form {
  display: grid;
  gap: 14px;
  padding: 24px;
  border-radius: var(--radius);
}

label {
  display: grid;
  gap: 8px;
  color: var(--muted);
  font-weight: 800;
}

input,
textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(2, 6, 23, 0.86);
  color: var(--text);
  font: inherit;
  outline: none;
  padding: 15px 16px;
}

textarea {
  min-height: 116px;
  resize: vertical;
}

input:focus,
textarea:focus {
  border-color: var(--red);
  box-shadow: 0 0 0 4px rgba(235, 0, 5, 0.12);
}

.footer {
  justify-content: center;
  gap: 18px;
  flex-wrap: wrap;
  padding: 36px 18px 48px;
  color: var(--muted);
  border-top: 1px solid var(--line);
}

main + .footer {
  margin-top: 72px;
}

.footer strong {
  color: var(--text);
}

.reveal {
  opacity: 0;
  transform: translateY(42px);
  transition: opacity 0.75s ease, transform 0.75s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@keyframes dropIn {
  from {
    opacity: 0;
    transform: translateY(-28px);
  }
}

@keyframes riseIn {
  from {
    opacity: 0;
    transform: translateY(32px);
  }
}

@keyframes bannerPhoto {
  from {
    transform: scale(1.04) translateX(-1.5%);
  }
  to {
    transform: scale(1.12) translateX(1.5%);
  }
}

@keyframes redPulse {
  0%,
  100% {
    opacity: 0.55;
    transform: scale(0.86);
  }
  50% {
    opacity: 1;
    transform: scale(1.06);
  }
}

@keyframes bannerContentIn {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
}

@keyframes buttonPulse {
  0%,
  100% {
    box-shadow: 0 18px 46px rgba(235, 0, 5, 0.28);
    transform: translateY(0);
  }
  50% {
    box-shadow: 0 24px 62px rgba(235, 0, 5, 0.44);
    transform: translateY(-2px);
  }
}

@media (max-width: 980px) {
  .site-header {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 12px;
    min-height: 64px;
    padding: 8px 14px;
  }

  .brand {
    width: min(250px, calc(100vw - 88px));
    height: 54px;
  }

  .menu-check {
    top: 50%;
    right: 18px;
    display: block;
    pointer-events: auto;
    z-index: 12;
    transform: translateY(-50%);
  }

  .nav {
    position: absolute;
    top: calc(100% + 1px);
    right: 18px;
    left: 18px;
    width: auto;
    justify-self: stretch;
    align-items: stretch;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 14px;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: rgba(0, 0, 0, 0.94);
    box-shadow: 0 24px 70px rgba(0, 0, 0, 0.42);
    color: var(--text);
    opacity: 0;
    pointer-events: none;
    transform: translateY(-10px);
    transition: opacity 0.2s ease, transform 0.2s ease;
  }

  .nav.is-open {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
  }

  .menu-check:checked ~ .nav {
    opacity: 1 !important;
    pointer-events: auto;
    transform: translateY(0) !important;
  }

  .menu-toggle:has(+ .menu-check:checked) span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
  }

  .menu-toggle:has(+ .menu-check:checked) span:nth-child(2) {
    opacity: 0;
  }

  .menu-toggle:has(+ .menu-check:checked) span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
  }

  .nav a {
    padding: 14px 12px;
    border-radius: 12px;
    text-align: center;
  }

  .nav a:hover {
    background: rgba(255, 255, 255, 0.08);
  }

  .menu-toggle {
    display: flex;
  }

  .hero,
  .benefits,
  .course-grid,
  .course-detail-grid,
  .split,
  .contact {
    grid-template-columns: 1fr;
  }

  .course-detail-hero {
    min-height: auto;
    padding-top: 72px;
  }

  .detail-panel-wide {
    grid-column: auto;
  }

  .hero {
    padding-top: 48px;
  }

  .header-cta {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.001ms !important;
  }
}
