:root {
  --bg: #f4f1ec;
  --bg-alt: #ebe6de;
  --surface: #fffcf7;
  --ink: #1a1814;
  --muted: #5f574e;
  --line: #ddd5ca;
  --accent: #3d4a3a;
  --accent-soft: #dfe4db;
  --danger: #8a3a2a;
  --ok: #2f5d3a;
  --shadow: 0 18px 40px rgba(26, 24, 20, 0.06);
  --radius: 14px;
  --max: 1120px;
  --header-h: 72px;
  --font-display: "Instrument Serif", "Times New Roman", serif;
  --font-body: "Manrope", "Segoe UI", sans-serif;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.65;
  font-size: 17px;
  min-height: 100vh;
}

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

a {
  color: var(--accent);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

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

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 400;
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin: 0 0 0.6em;
}

h1 { font-size: clamp(2.4rem, 5vw, 4.4rem); }
h2 { font-size: clamp(1.8rem, 3vw, 2.6rem); }
h3 { font-size: 1.45rem; }

p { margin: 0 0 1em; }

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: color-mix(in srgb, var(--bg) 88%, white);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: var(--header-h);
  gap: 24px;
}

.logo {
  font-family: var(--font-display);
  font-size: 1.35rem;
  color: var(--ink);
  text-decoration: none;
  white-space: nowrap;
}

.logo span {
  color: var(--muted);
  font-size: 0.72em;
  margin-left: 6px;
}

.nav {
  display: flex;
  gap: 22px;
  align-items: center;
}

.nav a {
  color: var(--ink);
  text-decoration: none;
  font-size: 0.92rem;
  letter-spacing: 0.01em;
}

.nav a:hover,
.nav a[aria-current="page"] {
  text-decoration: underline;
  text-underline-offset: 5px;
}

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 8px 12px;
  font: inherit;
  cursor: pointer;
}

.site-footer {
  margin-top: 80px;
  border-top: 1px solid var(--line);
  padding: 48px 0 28px;
  background: var(--bg-alt);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr;
  gap: 36px;
}

.footer-meta {
  margin-top: 36px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.88rem;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.legal-links {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.legal-links a {
  color: var(--muted);
  text-decoration: none;
}

.legal-links a:hover { text-decoration: underline; }

.kicker {
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 0.72rem;
  color: var(--muted);
  margin-bottom: 12px;
}

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

.hero-editorial {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 56px;
  align-items: end;
  padding: 72px 0 40px;
}

.hero-caption {
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 12px auto;
}

.hero-visual {
  position: relative;
}

.hero-visual img {
  width: 100%;
  height: 520px;
  object-fit: cover;
  border-radius: 4px 48px 4px 4px;
  animation: fade-in 0.9s ease both;
}

.hero-chip {
  position: absolute;
  left: -18px;
  bottom: 28px;
  background: var(--surface);
  border: 1px solid var(--line);
  padding: 14px 18px;
  max-width: 230px;
  box-shadow: var(--shadow);
}

.hero-chip strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 400;
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 12px;
  font-weight: 600;
  text-decoration: none;
  color: var(--ink);
  border-bottom: 1px solid var(--ink);
  padding-bottom: 2px;
}

.text-link:hover { opacity: 0.7; }

.section {
  padding: 72px 0;
}

.section-alt {
  background: var(--surface);
  border-block: 1px solid var(--line);
}

.quote-band {
  padding: 64px 0;
}

.quote-band blockquote {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3vw, 2.3rem);
  line-height: 1.35;
  max-width: 46rem;
}

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

.course-preview {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
}

.course-preview img {
  height: 380px;
  width: 100%;
  object-fit: cover;
  border-radius: var(--radius);
}

.notes {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.note {
  padding-top: 16px;
  border-top: 1px solid var(--ink);
}

.note .num {
  font-family: var(--font-display);
  font-size: 1.8rem;
}

.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.stat {
  background: var(--surface);
  border: 1px solid var(--line);
  padding: 28px;
}

.stat b {
  font-family: var(--font-display);
  font-size: 2.2rem;
  font-weight: 400;
  display: block;
}

.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

.card img {
  height: 190px;
  width: 100%;
  object-fit: cover;
}

.card-body { padding: 22px; }

.card h3 { margin-bottom: 8px; }

.meta {
  color: var(--muted);
  font-size: 0.88rem;
}

.btn {
  display: inline-block;
  background: var(--ink);
  color: var(--bg);
  text-decoration: none;
  padding: 12px 20px;
  border-radius: 999px;
  border: 1px solid var(--ink);
  font: inherit;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease;
}

.btn:hover {
  background: transparent;
  color: var(--ink);
}

.btn-ghost {
  background: transparent;
  color: var(--ink);
}

.btn-ghost:hover {
  background: var(--ink);
  color: var(--bg);
}

.testimonials {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 20px;
}

.t-card {
  background: var(--surface);
  border: 1px solid var(--line);
  padding: 28px;
  border-radius: var(--radius);
}

.t-card.tall { grid-row: span 2; }

.stars { letter-spacing: 2px; color: var(--accent); font-size: 0.85rem; }

form {
  display: grid;
  gap: 14px;
}

label {
  font-size: 0.88rem;
  font-weight: 600;
}

input, select, textarea {
  width: 100%;
  font: inherit;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface);
  color: var(--ink);
}

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

.field-error, .inline-error, .form-status {
  color: var(--danger);
  font-size: 0.9rem;
}

.form-status.ok { color: var(--ok); }

.page-hero {
  padding: 56px 0 24px;
}

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
}

.prose {
  max-width: 46rem;
}

.prose h2 { margin-top: 1.6em; }

table {
  width: 100%;
  border-collapse: collapse;
  background: var(--surface);
}

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

.price-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  align-items: stretch;
}

.price-card {
  background: var(--surface);
  border: 1px solid var(--line);
  padding: 28px;
  border-radius: var(--radius);
}

.price-card.featured {
  background: var(--accent);
  color: #f4f1ec;
  border-color: var(--accent);
}

.price-card.featured a { color: #f4f1ec; }
.price-card.featured .btn {
  background: #f4f1ec;
  color: var(--ink);
  border-color: #f4f1ec;
}

.price {
  font-family: var(--font-display);
  font-size: 2.4rem;
}

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

.faq summary {
  cursor: pointer;
  font-weight: 600;
}

.modules {
  display: grid;
  gap: 12px;
}

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

.avatar {
  width: 96px;
  height: 96px;
  object-fit: cover;
  border-radius: 50%;
}

.cookie-banner {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 80;
  width: min(420px, calc(100% - 32px));
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  padding: 20px;
  border-radius: var(--radius);
}

.cookie-actions {
  display: flex;
  gap: 10px;
  margin-top: 12px;
}

.article-cover {
  width: 100%;
  height: 380px;
  object-fit: cover;
  border-radius: var(--radius);
  margin: 12px 0 28px;
}

.blog-list {
  display: grid;
  gap: 28px;
}

.blog-row {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 24px;
  align-items: center;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--line);
}

.blog-row img {
  height: 140px;
  width: 100%;
  object-fit: cover;
  border-radius: 10px;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 0.85fr;
  gap: 48px;
}

.address-block {
  white-space: pre-wrap;
  background: var(--surface);
  border: 1px solid var(--line);
  padding: 20px;
  border-radius: var(--radius);
}

@keyframes fade-in {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: none; }
}

.reveal {
  animation: fade-in 0.7s ease both;
}

@media (max-width: 900px) {
  .nav-toggle { display: block; }
  .nav {
    display: none;
    position: absolute;
    inset: var(--header-h) 16px auto;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 12px;
    padding: 16px;
    flex-direction: column;
    align-items: flex-start;
  }
  .nav.open { display: flex; }
  .hero-editorial,
  .course-preview,
  .notes,
  .stats,
  .cards,
  .testimonials,
  .split,
  .price-grid,
  .contact-grid,
  .footer-grid,
  .blog-row {
    grid-template-columns: 1fr;
  }
  .hero-visual img,
  .course-preview img,
  .article-cover { height: 280px; }
  .hero-chip { left: 12px; }
}
