:root {
  --paper: #f3eee4;
  --paper-2: #e8dfd0;
  --sheet: #fbf7ef;
  --ink: #1a1714;
  --ink-soft: #4d4740;
  --muted: #6f675d;
  --line: #d2c7b4;
  --copper: #a84828;
  --copper-dark: #7c321c;
  --pine: #1e3a32;
  --pine-mid: #2f5649;
  --gold: #b8956a;
  --danger: #8b2e22;
  --ok: #215c42;
  --shadow: 0 18px 40px rgba(26, 23, 20, 0.12);
  --radius: 3px;
  --max: 1120px;
  --font-display: "Fraunces", "Palatino Linotype", Palatino, serif;
  --font-body: "Figtree", "Segoe UI", sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1.05rem;
  line-height: 1.65;
  min-height: 100vh;
}

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

a {
  color: var(--copper-dark);
  text-underline-offset: 0.18em;
}

a:hover {
  color: var(--copper);
}

h1,
h2,
h3,
h4 {
  font-family: var(--font-display);
  font-weight: 560;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--pine);
}

p {
  margin: 0 0 1rem;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -4rem;
  background: var(--pine);
  color: var(--sheet);
  padding: 0.6rem 1rem;
  z-index: 80;
}

.skip-link:focus {
  top: 1rem;
  color: var(--sheet);
}

#script-error {
  margin: 0;
  padding: 0.8rem 1.2rem;
  background: #f3d7d0;
  color: var(--danger);
  border-bottom: 1px solid #e0b3a8;
}

.wrap {
  width: min(var(--max), calc(100% - 2.4rem));
  margin-inline: auto;
}

.site-header {
  background: var(--sheet);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 40;
}

.header-inner {
  width: min(var(--max), calc(100% - 2.4rem));
  margin-inline: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 4.4rem;
}

.wordmark {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  text-decoration: none;
  color: inherit;
}

.wordmark-mark {
  width: 1.15rem;
  height: 1.7rem;
  background: var(--copper);
  box-shadow: 4px 4px 0 var(--pine);
  flex-shrink: 0;
}

.wordmark-text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.wordmark-text strong {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--pine);
}

.wordmark-text em {
  font-style: normal;
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 0.15rem 1rem;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.site-nav a {
  text-decoration: none;
  color: var(--ink-soft);
  font-size: 0.92rem;
}

.site-nav a:hover,
.site-nav a[aria-current="page"] {
  color: var(--pine);
  text-decoration: underline;
  text-decoration-thickness: 1px;
}

.nav-cta {
  border: 1px solid var(--pine);
  padding: 0.35rem 0.75rem;
  color: var(--pine) !important;
  text-decoration: none !important;
}

.nav-toggle {
  display: none;
  background: transparent;
  border: 1px solid var(--line);
  width: 2.6rem;
  height: 2.4rem;
  position: relative;
}

.nav-toggle-bar,
.nav-toggle-bar::before,
.nav-toggle-bar::after {
  content: "";
  display: block;
  width: 1.1rem;
  height: 2px;
  background: var(--ink);
  margin: 0 auto;
  position: relative;
}

.nav-toggle-bar::before {
  position: absolute;
  top: -6px;
}

.nav-toggle-bar::after {
  position: absolute;
  top: 6px;
}

.site-footer {
  background: var(--pine);
  color: #e6ddd0;
  margin-top: 4rem;
  padding: 3rem 0 1.5rem;
}

.footer-grid {
  width: min(var(--max), calc(100% - 2.4rem));
  margin-inline: auto;
  display: grid;
  grid-template-columns: 1.4fr 1.2fr 0.9fr 0.8fr;
  gap: 2rem;
}

.footer-brand {
  font-family: var(--font-display);
  font-size: 1.4rem;
  color: var(--sheet);
  margin-bottom: 0.6rem;
}

.footer-note,
.footer-address {
  font-size: 0.92rem;
  color: #d5ccbf;
}

.footer-label {
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.5rem;
}

.site-footer a {
  color: #f3eee4;
}

.footer-links {
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-links li {
  margin-bottom: 0.35rem;
}

.footer-legal {
  width: min(var(--max), calc(100% - 2.4rem));
  margin: 2.2rem auto 0;
  padding-top: 1.2rem;
  border-top: 1px solid rgba(232, 223, 208, 0.2);
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  font-size: 0.85rem;
}

.footer-legal ul {
  display: flex;
  gap: 1rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.kicker {
  font-size: 0.75rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--copper);
  margin-bottom: 0.6rem;
}

.lede {
  font-size: 1.15rem;
  color: var(--ink-soft);
  max-width: 42rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.7rem;
  padding: 0.45rem 1.1rem;
  border-radius: var(--radius);
  font-family: inherit;
  font-size: 0.95rem;
  cursor: pointer;
  text-decoration: none;
  border: 1px solid transparent;
}

.btn-solid {
  background: var(--copper);
  color: #fff8f3 !important;
  border-color: var(--copper);
}

.btn-solid:hover {
  background: var(--copper-dark);
  border-color: var(--copper-dark);
}

.btn-ghost {
  background: transparent;
  color: var(--pine) !important;
  border-color: var(--pine);
}

.btn-ghost:hover {
  background: var(--pine);
  color: var(--sheet) !important;
}

.btn-text {
  background: none;
  border: 0;
  border-bottom: 1px solid currentColor;
  border-radius: 0;
  padding: 0 0 0.15rem;
  color: var(--pine) !important;
  min-height: auto;
}

.hero-dossier {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: 0;
  min-height: 34rem;
  background: var(--sheet);
  border-bottom: 1px solid var(--line);
}

.hero-copy {
  padding: 4.2rem 6vw 3.5rem 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  width: min(34rem, 100%);
  margin-left: max(1.2rem, calc((100vw - var(--max)) / 2));
}

.hero-copy h1 {
  font-size: clamp(2.4rem, 4.6vw, 4.1rem);
  margin: 0 0 1.1rem;
  color: var(--pine);
}

.hero-meta {
  display: flex;
  gap: 1.4rem;
  margin-top: 1.6rem;
  font-size: 0.88rem;
  color: var(--muted);
  border-top: 1px solid var(--line);
  padding-top: 1rem;
}

.hero-meta strong {
  display: block;
  color: var(--ink);
  font-weight: 650;
}

.hero-visual {
  position: relative;
  min-height: 22rem;
}

.hero-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  min-height: 34rem;
}

.stamp {
  position: absolute;
  left: 1.4rem;
  bottom: 1.4rem;
  background: var(--sheet);
  color: var(--pine);
  padding: 0.7rem 0.9rem;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  box-shadow: var(--shadow);
  max-width: 14rem;
}

.section {
  padding: 4.2rem 0;
}

.section-head {
  display: grid;
  grid-template-columns: 7rem 1fr;
  gap: 1.2rem;
  margin-bottom: 2.2rem;
  align-items: start;
}

.section-num {
  font-family: var(--font-display);
  font-size: 1.6rem;
  color: var(--gold);
}

.section-head h2 {
  margin: 0 0 0.4rem;
  font-size: clamp(1.7rem, 3vw, 2.4rem);
}

.benefit-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.2rem 2rem;
}

.benefit {
  background: var(--sheet);
  border: 1px solid var(--line);
  padding: 1.3rem 1.4rem 1.1rem;
}

.benefit h3 {
  margin: 0 0 0.45rem;
  font-size: 1.25rem;
}

.benefit p:last-child {
  margin-bottom: 0;
}

.facts {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.fact {
  padding: 1.4rem 1.1rem;
  border-right: 1px solid var(--line);
}

.fact:last-child {
  border-right: 0;
}

.fact b {
  display: block;
  font-family: var(--font-display);
  font-size: 1.85rem;
  color: var(--copper);
  font-weight: 560;
}

.fact span {
  color: var(--muted);
  font-size: 0.9rem;
}

.card-grid,
.course-grid,
.post-grid,
.price-grid {
  display: grid;
  gap: 1.3rem;
}

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

.price-grid {
  grid-template-columns: repeat(4, 1fr);
}

.card {
  background: var(--sheet);
  border: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  min-height: 100%;
}

.card img {
  width: 100%;
  height: 11.5rem;
  object-fit: cover;
}

.card-body {
  padding: 1.15rem 1.2rem 1.3rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.card-body h3 {
  margin: 0 0 0.5rem;
  font-size: 1.28rem;
}

.card-body p {
  color: var(--ink-soft);
  flex: 1;
}

.tag {
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 0.35rem;
}

.quote-band {
  background: var(--pine);
  color: #efe7da;
  padding: 3.2rem 0;
}

.quote-band blockquote {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 2.5vw, 2rem);
  line-height: 1.35;
  max-width: 40rem;
}

.quote-band cite {
  display: block;
  margin-top: 1rem;
  font-style: normal;
  font-size: 0.95rem;
  color: var(--gold);
}

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.4rem;
  align-items: center;
}

.split img {
  width: 100%;
  height: 22rem;
  object-fit: cover;
  border: 1px solid var(--line);
}

.prose {
  max-width: 44rem;
}

.prose h1 {
  font-size: clamp(2rem, 4vw, 3.1rem);
  margin-bottom: 0.8rem;
}

.prose h2 {
  margin-top: 2.2rem;
  font-size: 1.55rem;
}

.prose h3 {
  margin-top: 1.6rem;
  font-size: 1.2rem;
}

.prose ul,
.prose ol {
  padding-left: 1.2rem;
}

.page-hero {
  padding: 3.4rem 0 1.2rem;
  border-bottom: 1px solid var(--line);
  background:
    linear-gradient(90deg, transparent 0, transparent 18%, var(--paper-2) 18%, var(--paper-2) 18.35%, transparent 18.35%),
    var(--paper);
}

.page-hero h1 {
  font-size: clamp(2.1rem, 4.2vw, 3.4rem);
  max-width: 22ch;
  margin: 0 0 0.7rem;
}

.modules {
  counter-reset: mod;
}

.module {
  display: grid;
  grid-template-columns: 4.5rem 1fr;
  gap: 1rem;
  padding: 1.1rem 0;
  border-bottom: 1px solid var(--line);
}

.module::before {
  counter-increment: mod;
  content: counter(mod, decimal-leading-zero);
  font-family: var(--font-display);
  color: var(--gold);
  font-size: 1.3rem;
}

.module h3 {
  margin: 0 0 0.3rem;
  font-size: 1.2rem;
}

.instructor {
  display: grid;
  grid-template-columns: 8.5rem 1fr;
  gap: 1.4rem;
  background: var(--sheet);
  border: 1px solid var(--line);
  padding: 1.2rem;
}

.instructor img {
  width: 8.5rem;
  height: 10.5rem;
  object-fit: cover;
}

.faq details {
  border-bottom: 1px solid var(--line);
  padding: 0.9rem 0;
}

.faq summary {
  cursor: pointer;
  font-weight: 650;
  color: var(--pine);
}

.faq p {
  margin: 0.6rem 0 0.2rem;
  color: var(--ink-soft);
}

.price-card {
  background: var(--sheet);
  border: 1px solid var(--line);
  padding: 1.3rem 1.2rem 1.5rem;
  display: flex;
  flex-direction: column;
  min-height: 100%;
}

.price-card.is-flag {
  border-color: var(--pine);
  box-shadow: 8px 8px 0 var(--pine);
}

.price-card h2 {
  margin: 0 0 0.4rem;
  font-size: 1.35rem;
}

.price-amount {
  font-family: var(--font-display);
  font-size: 2.1rem;
  color: var(--copper);
  margin: 0.4rem 0 1rem;
}

.price-card ul {
  padding-left: 1.1rem;
  flex: 1;
  color: var(--ink-soft);
}

.review-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.2rem;
}

.review {
  background: var(--sheet);
  border: 1px solid var(--line);
  padding: 1.2rem 1.3rem;
}

.review p {
  margin-bottom: 0.8rem;
}

.review footer {
  color: var(--muted);
  font-size: 0.9rem;
}

.stars {
  color: var(--copper);
  letter-spacing: 0.08em;
  font-size: 0.85rem;
  margin-bottom: 0.4rem;
}

.case {
  background: var(--sheet);
  border-left: 4px solid var(--copper);
  padding: 1.4rem 1.5rem;
  margin-bottom: 1.4rem;
}

.case h3 {
  margin-top: 0;
}

.contact-layout {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 2.4rem;
  padding: 2.4rem 0 4rem;
}

.field {
  margin-bottom: 1rem;
}

.field label {
  display: block;
  font-size: 0.88rem;
  margin-bottom: 0.3rem;
  color: var(--pine);
}

.field input,
.field select,
.field textarea {
  width: 100%;
  border: 1px solid var(--line);
  background: var(--sheet);
  color: var(--ink);
  font: inherit;
  padding: 0.65rem 0.7rem;
  border-radius: var(--radius);
}

.field textarea {
  min-height: 9rem;
  resize: vertical;
}

.field-error {
  min-height: 1.2rem;
  color: var(--danger);
  font-size: 0.85rem;
  margin-top: 0.25rem;
}

.form-status {
  margin-top: 1rem;
  padding: 0.8rem 0.9rem;
  border: 1px solid var(--line);
}

.form-status.is-ok {
  border-color: var(--ok);
  color: var(--ok);
  background: #e7f1ea;
}

.form-status.is-error {
  border-color: var(--danger);
  color: var(--danger);
  background: #f8e6e1;
}

.aside-box {
  background: var(--sheet);
  border: 1px solid var(--line);
  padding: 1.3rem 1.4rem;
}

.aside-box h2 {
  margin-top: 0;
  font-size: 1.3rem;
}

table {
  width: 100%;
  border-collapse: collapse;
  background: var(--sheet);
  font-size: 0.92rem;
}

th,
td {
  border: 1px solid var(--line);
  padding: 0.65rem 0.7rem;
  text-align: left;
  vertical-align: top;
}

th {
  background: var(--paper-2);
  font-weight: 650;
}

.legal {
  padding: 2.4rem 0 4rem;
}

.error-page {
  min-height: 58vh;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 4rem 1.2rem;
}

.error-page h1 {
  font-size: clamp(3rem, 8vw, 6rem);
  margin: 0;
}

.cookie-banner {
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  left: 1rem;
  z-index: 60;
  background: var(--sheet);
  border: 1px solid var(--pine);
  box-shadow: var(--shadow);
}

.cookie-banner-inner {
  display: flex;
  gap: 1.2rem;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.2rem;
}

.cookie-banner-title {
  font-family: var(--font-display);
  font-size: 1.15rem;
  color: var(--pine);
  margin: 0 0 0.25rem;
}

.cookie-banner-text {
  margin: 0;
  font-size: 0.92rem;
  color: var(--ink-soft);
  max-width: 48rem;
}

.cookie-banner-actions {
  display: flex;
  gap: 0.6rem;
  flex-shrink: 0;
}

.figure-wide {
  margin: 0 0 1.4rem;
}

.figure-wide img {
  width: 100%;
  height: 18rem;
  object-fit: cover;
  border: 1px solid var(--line);
}

.figcaption {
  font-size: 0.85rem;
  color: var(--muted);
  margin-top: 0.4rem;
}

.list-plain {
  list-style: none;
  padding: 0;
  margin: 0;
}

.list-plain li {
  padding: 0.35rem 0;
  border-bottom: 1px solid var(--line);
}

@media (max-width: 980px) {
  .hero-dossier,
  .split,
  .contact-layout,
  .course-grid,
  .post-grid,
  .price-grid,
  .review-grid,
  .facts,
  .benefit-list,
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }

  .price-grid,
  .facts {
    grid-template-columns: 1fr 1fr;
  }

  .hero-copy {
    margin-left: 1.2rem;
    padding-right: 1.2rem;
  }

  .hero-visual img {
    min-height: 22rem;
  }
}

@media (max-width: 820px) {
  .nav-toggle {
    display: block;
  }

  .site-nav {
    display: none;
    position: absolute;
    top: 4.4rem;
    left: 0;
    right: 0;
    background: var(--sheet);
    border-bottom: 1px solid var(--line);
    padding: 0.8rem 1.2rem 1.2rem;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.65rem;
  }

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

  .hero-dossier,
  .split,
  .contact-layout,
  .course-grid,
  .post-grid,
  .price-grid,
  .review-grid,
  .facts,
  .benefit-list,
  .footer-grid,
  .section-head,
  .instructor {
    grid-template-columns: 1fr;
  }

  .header-inner {
    position: relative;
  }

  .footer-legal {
    flex-direction: column;
  }

  .cookie-banner-inner {
    flex-direction: column;
    align-items: stretch;
  }

  .cookie-banner-actions .btn {
    flex: 1;
  }

  .hero-visual img {
    min-height: 16rem;
  }
}

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