:root {
  --red: #d71920;
  --red-dark: #a80f16;
  --red-soft: #fff0f0;
  --ink: #171717;
  --muted: #626262;
  --line: #e9e2e2;
  --paper: #ffffff;
  --warm: #fbf7f4;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Arial, Helvetica, sans-serif;
  color: var(--ink);
  background: var(--paper);
  line-height: 1.5;
}

a {
  color: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 16px clamp(18px, 4vw, 56px);
  background: rgba(255, 255, 255, 0.94);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(12px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 800;
  text-decoration: none;
  white-space: nowrap;
}

.brand-mark {
  display: inline-grid;
  place-items: center;
  width: 48px;
  height: 34px;
  background: var(--red);
  color: #fff;
  border-radius: 6px;
  letter-spacing: 0;
}

.brand-name {
  font-size: 1.2rem;
}

.nav {
  display: flex;
  gap: 22px;
  color: var(--muted);
  font-size: 0.95rem;
}

.nav a,
.site-footer a {
  text-decoration: none;
}

.nav a:hover,
.site-footer a:hover {
  color: var(--red);
}

.header-cta,
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 12px 18px;
  border-radius: 6px;
  font-weight: 800;
  text-decoration: none;
}

.header-cta,
.button.primary {
  background: var(--red);
  color: #fff;
  box-shadow: 0 10px 28px rgba(215, 25, 32, 0.22);
}

.button.primary:hover,
.header-cta:hover {
  background: var(--red-dark);
}

.button.secondary {
  border: 1px solid var(--line);
  background: #fff;
}

.button.light {
  background: #fff;
  color: var(--red-dark);
}

.button.full {
  width: 100%;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(320px, 0.85fr);
  gap: clamp(28px, 5vw, 72px);
  padding: clamp(52px, 8vw, 112px) clamp(18px, 5vw, 72px);
  background:
    linear-gradient(120deg, rgba(215, 25, 32, 0.09), transparent 45%),
    var(--warm);
}

.hero-copy {
  max-width: 760px;
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--red);
  font-size: 0.82rem;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

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

h1 {
  max-width: 730px;
  margin-bottom: 18px;
  font-size: clamp(2.6rem, 7vw, 5.8rem);
  line-height: 0.94;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 14px;
  font-size: clamp(2rem, 4vw, 3.4rem);
  line-height: 1.02;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 10px;
  font-size: 1.35rem;
}

.intro {
  max-width: 650px;
  color: #343434;
  font-size: clamp(1.08rem, 2vw, 1.35rem);
}

.hero-actions,
.trust-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.trust-row span {
  padding: 9px 12px;
  border: 1px solid rgba(215, 25, 32, 0.2);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
  color: var(--red-dark);
  font-weight: 700;
  font-size: 0.92rem;
}

.hero-panel {
  align-self: start;
  padding: 28px;
  border: 1px solid rgba(168, 15, 22, 0.18);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 22px 50px rgba(40, 13, 13, 0.11);
}

.panel-top,
.price-line {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.label {
  padding: 6px 10px;
  border-radius: 999px;
  background: var(--red-soft);
  color: var(--red-dark);
  font-weight: 900;
  font-size: 0.8rem;
}

.rating {
  font-weight: 900;
}

.hero-panel ul {
  margin: 22px 0;
  padding-left: 20px;
}

.hero-panel li {
  margin: 8px 0;
}

.price-line {
  margin: 20px 0;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.price-line strong {
  color: var(--red-dark);
  font-size: 2rem;
}

.quick-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-block: 1px solid var(--line);
  background: #fff;
}

.quick-strip div {
  padding: 24px clamp(18px, 5vw, 72px);
  border-right: 1px solid var(--line);
}

.quick-strip div:last-child {
  border-right: 0;
}

.quick-strip strong,
.quick-strip span {
  display: block;
}

.quick-strip span {
  color: var(--muted);
}

.section,
.workflow,
.certificate-section,
.admin-section,
.cta-band,
.site-footer {
  padding: clamp(48px, 7vw, 90px) clamp(18px, 5vw, 72px);
}

.section-heading {
  max-width: 780px;
  margin-bottom: 32px;
}

.section-heading p:not(.eyebrow) {
  color: var(--muted);
  font-size: 1.1rem;
}

.compact {
  max-width: 900px;
}

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

.course-card {
  min-height: 330px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  display: flex;
  flex-direction: column;
}

.course-card.highlight {
  background: var(--ink);
  color: #fff;
}

.course-icon {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  margin-bottom: 18px;
  border-radius: 6px;
  background: var(--red);
  color: #fff;
  font-size: 1.35rem;
  font-weight: 900;
}

.course-card p {
  color: var(--muted);
}

.course-card.highlight p,
.course-card.highlight dd {
  color: #e9dede;
}

.course-card dl {
  margin: auto 0 18px;
}

.course-card dl div,
.certificate-card dl div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 0;
  border-bottom: 1px solid rgba(120, 120, 120, 0.18);
}

dt {
  color: var(--muted);
}

dd {
  margin: 0;
  font-weight: 800;
}

.course-card a {
  color: var(--red);
  font-weight: 900;
  text-decoration: none;
}

.course-card.highlight a {
  color: #fff;
}

.workflow {
  background: var(--red-soft);
}

.steps {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 14px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.steps li {
  padding: 22px;
  border-radius: 8px;
  background: #fff;
}

.steps span {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  margin-bottom: 16px;
  border-radius: 50%;
  background: var(--red);
  color: #fff;
  font-weight: 900;
}

.steps strong {
  display: block;
  margin-bottom: 8px;
}

.steps p {
  color: var(--muted);
  font-size: 0.95rem;
}

.certificate-section {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.8fr);
  gap: clamp(28px, 5vw, 72px);
  align-items: center;
}

.certificate-copy {
  max-width: 720px;
}

.certificate-copy p:not(.eyebrow) {
  color: var(--muted);
  font-size: 1.12rem;
}

.feature-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 28px;
}

.feature-list span {
  padding: 14px 16px;
  border-left: 4px solid var(--red);
  background: var(--warm);
  font-weight: 800;
}

.certificate-card {
  padding: 16px;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--red), var(--red-dark));
  color: #fff;
}

.cert-border {
  padding: 30px;
  border: 1px solid rgba(255, 255, 255, 0.58);
  border-radius: 6px;
  min-height: 420px;
}

.cert-border p {
  color: #ffd9d9;
  font-weight: 900;
  text-transform: uppercase;
}

.cert-border h3 {
  margin-bottom: 38px;
  font-size: 2.2rem;
}

.cert-border span,
.cert-border dt {
  color: #ffd9d9;
}

.cert-border strong {
  display: block;
  margin: 8px 0 28px;
  font-size: 1.45rem;
}

.admin-section {
  background: var(--ink);
  color: #fff;
}

.admin-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin-top: 24px;
}

.admin-grid article {
  padding: 22px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.06);
}

.admin-grid strong,
.admin-grid span {
  display: block;
}

.admin-grid span {
  margin-top: 8px;
  color: #d8d8d8;
}

.faq {
  background: #fff;
}

details {
  max-width: 900px;
  border-top: 1px solid var(--line);
}

details:last-child {
  border-bottom: 1px solid var(--line);
}

summary {
  cursor: pointer;
  padding: 20px 0;
  font-weight: 900;
}

details p {
  max-width: 760px;
  color: var(--muted);
}

.cta-band {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  background: var(--red);
  color: #fff;
}

.cta-band .eyebrow {
  color: #ffdada;
}

.cta-band h2 {
  max-width: 780px;
  margin: 0;
}

.site-footer {
  display: grid;
  grid-template-columns: 1.6fr 0.7fr 0.7fr;
  gap: 32px;
  background: #111;
  color: #fff;
}

.site-footer p {
  max-width: 460px;
  color: #d4d4d4;
}

.site-footer strong,
.site-footer a {
  display: block;
  margin-bottom: 8px;
}

.checkout-page {
  min-height: calc(100vh - 78px);
  padding: clamp(36px, 7vw, 84px) clamp(18px, 5vw, 72px);
  background: var(--warm);
}

.checkout-shell {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(320px, 0.7fr);
  gap: clamp(24px, 5vw, 64px);
  align-items: start;
  max-width: 1120px;
  margin: 0 auto;
}

.checkout-shell > h1,
.checkout-shell > p,
.checkout-shell > .button {
  grid-column: 1 / -1;
}

.checkout-copy h1 {
  font-size: clamp(2.2rem, 5vw, 4.2rem);
  line-height: 1;
}

.checkout-copy p:not(.eyebrow) {
  max-width: 620px;
  color: var(--muted);
  font-size: 1.12rem;
}

.checkout-form {
  padding: 26px;
  border: 1px solid rgba(168, 15, 22, 0.16);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 18px 45px rgba(40, 13, 13, 0.09);
}

.checkout-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 22px;
  padding: 16px;
  border-radius: 8px;
  background: var(--red-soft);
}

.checkout-summary span {
  color: var(--muted);
  font-weight: 700;
}

.checkout-summary strong {
  color: var(--red-dark);
  font-size: 1.6rem;
}

.checkout-form label {
  display: block;
  margin-bottom: 15px;
  color: var(--ink);
  font-weight: 800;
}

.checkout-form input {
  width: 100%;
  min-height: 46px;
  margin-top: 7px;
  padding: 11px 12px;
  border: 1px solid var(--line);
  border-radius: 6px;
  font: inherit;
}

.checkout-form input:focus {
  border-color: var(--red);
  outline: 3px solid rgba(215, 25, 32, 0.15);
}

.form-note {
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.course-page {
  background: var(--warm);
  min-height: calc(100vh - 78px);
}

.course-hero {
  padding: clamp(42px, 7vw, 86px) clamp(18px, 5vw, 72px) 34px;
  background: #fff;
  border-bottom: 1px solid var(--line);
}

.course-hero h1 {
  max-width: 900px;
  font-size: clamp(2.4rem, 5.5vw, 4.8rem);
  line-height: 1;
}

.course-hero p:not(.eyebrow) {
  max-width: 760px;
  color: var(--muted);
  font-size: 1.12rem;
}

.lesson-layout {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  gap: 24px;
  padding: clamp(28px, 5vw, 58px) clamp(18px, 5vw, 72px);
}

.lesson-index {
  position: sticky;
  top: 92px;
  align-self: start;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.lesson-index strong,
.lesson-index a {
  display: block;
}

.lesson-index a {
  margin-top: 12px;
  color: var(--muted);
  text-decoration: none;
}

.lesson-index a:hover {
  color: var(--red);
}

.lesson-content {
  display: grid;
  gap: 18px;
}

.lesson-card,
.quiz-form,
.result-card {
  padding: clamp(22px, 4vw, 34px);
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.lesson-card p {
  color: #3a3a3a;
  font-size: 1.05rem;
}

.test-start {
  border-color: rgba(215, 25, 32, 0.22);
  background: var(--red-soft);
}

.quiz-form {
  max-width: 980px;
  margin: clamp(28px, 5vw, 58px) auto;
}

.quiz-question {
  margin: 0 0 18px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.quiz-question legend {
  padding: 0 8px;
  font-weight: 900;
}

.quiz-question label {
  display: block;
  margin-top: 12px;
  color: var(--muted);
}

.quiz-question input {
  margin-right: 8px;
}

.result-card {
  max-width: 760px;
  margin: clamp(28px, 5vw, 58px) auto;
}

.result-card.passed {
  border-color: rgba(30, 128, 64, 0.28);
}

.result-card.failed {
  border-color: rgba(215, 25, 32, 0.3);
}

@media (max-width: 980px) {
  .nav {
    display: none;
  }

  .hero,
  .certificate-section,
  .checkout-shell,
  .site-footer {
    grid-template-columns: 1fr;
  }

  .quick-strip,
  .course-grid,
  .steps,
  .lesson-layout,
  .admin-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .lesson-layout {
    grid-template-columns: 1fr;
  }

  .lesson-index {
    position: static;
  }
}

@media (max-width: 640px) {
  .site-header {
    gap: 12px;
  }

  .header-cta {
    display: none;
  }

  .hero {
    padding-top: 42px;
  }

  .hero-actions .button,
  .cta-band,
  .button.light {
    width: 100%;
  }

  .quick-strip,
  .course-grid,
  .steps,
  .feature-list,
  .admin-grid {
    grid-template-columns: 1fr;
  }

  .quick-strip div {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .cta-band {
    align-items: flex-start;
    flex-direction: column;
  }
}
