:root {
  --bg: #f5f7f4;
  --bg-elevated: #ffffff;
  --ink: #15201c;
  --ink-soft: #4a5751;
  --line: #d5ddd7;
  --accent: #1e3d36;
  --accent-mid: #2f6b5c;
  --accent-soft: #dceae4;
  --highlight: #c4a35a;
  --danger: #9b3b2e;
  --ok: #2f6b5c;
  --radius: 2px;
  --shadow: 0 18px 40px rgba(21, 32, 28, 0.06);
  --font-display: "Instrument Serif", Georgia, serif;
  --font-body: "Sora", "Segoe UI", sans-serif;
  --max: 1120px;
  --header-h: 72px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background:
    radial-gradient(1200px 500px at 10% -10%, #e7efe9 0%, transparent 55%),
    radial-gradient(900px 420px at 100% 0%, #ebe6d8 0%, transparent 50%),
    var(--bg);
  line-height: 1.65;
  min-height: 100vh;
}

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

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

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

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

h1 { font-size: clamp(2.4rem, 5vw, 4.2rem); }
h2 { font-size: clamp(1.8rem, 3vw, 2.6rem); }
h3 { font-size: clamp(1.25rem, 2vw, 1.55rem); }

p { margin: 0 0 1em; color: var(--ink-soft); }

.container {
  width: min(100% - 2.5rem, var(--max));
  margin-inline: auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  backdrop-filter: blur(10px);
  background: rgba(245, 247, 244, 0.88);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s ease, background 0.3s ease;
}

.site-header.is-scrolled {
  border-bottom-color: var(--line);
  background: rgba(245, 247, 244, 0.96);
}

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

.logo {
  font-family: var(--font-display);
  font-size: 1.55rem;
  color: var(--ink);
  text-decoration: none;
  letter-spacing: -0.02em;
}

.logo:hover { color: var(--accent-mid); }

.site-nav {
  display: flex;
  align-items: center;
  gap: 1.15rem;
  flex-wrap: wrap;
}

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

.site-nav a:hover,
.site-nav a[aria-current="page"] {
  color: var(--ink);
}

.nav-cta {
  padding: 0.55rem 1rem;
  background: var(--accent);
  color: #f4f8f6 !important;
  text-decoration: none !important;
  transition: transform 0.25s ease, background 0.25s ease;
}

.nav-cta:hover {
  background: var(--accent-mid);
  transform: translateY(-1px);
}

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  background: var(--bg-elevated);
  cursor: pointer;
  padding: 0;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 6px;
}

.nav-toggle span {
  display: block;
  width: 18px;
  height: 1.5px;
  background: var(--ink);
  transition: transform 0.25s ease;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.85rem 1.35rem;
  border: 1px solid transparent;
  background: var(--accent);
  color: #f5f8f6;
  font: inherit;
  font-size: 0.92rem;
  font-weight: 500;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.25s ease, transform 0.25s ease, border-color 0.25s ease;
}

.btn:hover {
  background: var(--accent-mid);
  color: #fff;
  transform: translateY(-1px);
}

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

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

.btn-group {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.5rem;
}

.section {
  padding: 4.5rem 0;
}

.section-tight {
  padding: 3rem 0;
}

.section-label {
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent-mid);
  margin-bottom: 0.75rem;
  font-weight: 600;
}

.lead {
  font-size: 1.1rem;
  max-width: 38rem;
}

.split {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 3rem;
  align-items: center;
}

.hero {
  padding: 3.5rem 0 2rem;
  position: relative;
  overflow: hidden;
}

.hero-brand {
  font-family: var(--font-display);
  font-size: clamp(3.5rem, 10vw, 7.5rem);
  line-height: 0.92;
  color: var(--ink);
  margin: 0 0 1.25rem;
  letter-spacing: -0.03em;
  animation: rise 0.9s ease both;
}

.hero-line {
  width: min(100%, 28rem);
  height: 1px;
  background: linear-gradient(90deg, var(--accent-mid), transparent);
  margin: 0 0 1.5rem;
  transform-origin: left;
  animation: draw 1s 0.2s ease both;
}

.hero-statement {
  font-size: clamp(1.25rem, 2.4vw, 1.75rem);
  font-family: var(--font-display);
  color: var(--ink);
  max-width: 22ch;
  margin-bottom: 0.75rem;
  animation: rise 0.9s 0.15s ease both;
}

.hero-copy {
  max-width: 34rem;
  animation: rise 0.9s 0.25s ease both;
}

.hero-visual {
  position: relative;
  min-height: 420px;
  animation: fade 1.1s 0.2s ease both;
}

.hero-visual img {
  width: 100%;
  height: 480px;
  object-fit: cover;
  filter: saturate(0.85) contrast(1.05);
}

.hero-visual::after {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 35%;
  background: linear-gradient(transparent, var(--bg));
  pointer-events: none;
}

.trust-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 2rem 0;
}

.trust-item strong {
  display: block;
  font-family: var(--font-display);
  font-size: 2.2rem;
  color: var(--ink);
  font-weight: 400;
}

.trust-item span {
  color: var(--ink-soft);
  font-size: 0.92rem;
}

.feature-list {
  display: grid;
  gap: 1.75rem;
  margin-top: 2rem;
}

.feature-row {
  display: grid;
  grid-template-columns: 4rem 1fr;
  gap: 1.25rem;
  align-items: start;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--line);
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.feature-row.is-visible {
  opacity: 1;
  transform: none;
}

.feature-num {
  font-family: var(--font-display);
  font-size: 1.5rem;
  color: var(--highlight);
}

.course-grid,
.blog-grid,
.price-grid,
.review-grid {
  display: grid;
  gap: 1.75rem;
  margin-top: 2rem;
}

.course-grid { grid-template-columns: repeat(3, 1fr); }
.blog-grid { grid-template-columns: repeat(3, 1fr); }
.price-grid { grid-template-columns: repeat(3, 1fr); }
.review-grid { grid-template-columns: repeat(2, 1fr); }

.media-link {
  display: block;
  color: inherit;
  text-decoration: none;
}

.media-link img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  margin-bottom: 1rem;
  transition: transform 0.5s ease, filter 0.5s ease;
}

.media-link:hover img {
  transform: scale(1.02);
  filter: brightness(1.03);
}

.media-link h3 {
  color: var(--ink);
  margin-bottom: 0.4rem;
}

.tag {
  display: inline-block;
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent-mid);
  margin-bottom: 0.5rem;
  font-weight: 600;
}

.quote-block {
  border-left: 2px solid var(--accent-mid);
  padding: 0.25rem 0 0.25rem 1.25rem;
  margin: 1.5rem 0;
}

.quote-block p {
  font-family: var(--font-display);
  font-size: 1.35rem;
  color: var(--ink);
  margin-bottom: 0.75rem;
}

.quote-block cite {
  font-style: normal;
  font-size: 0.9rem;
  color: var(--ink-soft);
}

.price-tier {
  background: var(--bg-elevated);
  border: 1px solid var(--line);
  padding: 1.75rem;
  box-shadow: var(--shadow);
}

.price-tier.featured {
  border-color: var(--accent);
  background: linear-gradient(180deg, #ffffff 0%, #eef5f1 100%);
}

.price-tier .amount {
  font-family: var(--font-display);
  font-size: 2.6rem;
  color: var(--ink);
  margin: 0.5rem 0;
}

.price-tier .amount span {
  font-size: 1rem;
  color: var(--ink-soft);
  font-family: var(--font-body);
}

.price-tier ul {
  list-style: none;
  padding: 0;
  margin: 1.25rem 0;
}

.price-tier li {
  padding: 0.45rem 0;
  border-bottom: 1px solid var(--line);
  color: var(--ink-soft);
  font-size: 0.95rem;
}

.review-item {
  padding: 1.5rem 0;
  border-top: 1px solid var(--line);
}

.review-item .meta {
  font-size: 0.85rem;
  color: var(--ink-soft);
  margin-top: 0.75rem;
}

.stars {
  color: var(--highlight);
  letter-spacing: 0.08em;
  font-size: 0.9rem;
  margin-bottom: 0.5rem;
}

.form {
  display: grid;
  gap: 1rem;
  max-width: 36rem;
}

.form label {
  display: grid;
  gap: 0.4rem;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--ink);
}

.form input,
.form select,
.form textarea {
  width: 100%;
  padding: 0.8rem 0.9rem;
  border: 1px solid var(--line);
  background: var(--bg-elevated);
  font: inherit;
  color: var(--ink);
}

.form input:focus,
.form select:focus,
.form textarea:focus {
  outline: 2px solid var(--accent-soft);
  border-color: var(--accent-mid);
}

.form .error {
  color: var(--danger);
  font-size: 0.82rem;
  min-height: 1.1em;
}

.form-status {
  padding: 0.85rem 1rem;
  font-size: 0.92rem;
  display: none;
}

.form-status.ok {
  display: block;
  background: var(--accent-soft);
  color: var(--ok);
}

.form-status.err {
  display: block;
  background: #f7e8e5;
  color: var(--danger);
}

.page-hero {
  padding: 3rem 0 1.5rem;
}

.page-hero h1 {
  max-width: 16ch;
}

.prose {
  max-width: 42rem;
}

.prose h2 {
  margin-top: 2.25rem;
}

.prose ul, .prose ol {
  color: var(--ink-soft);
  padding-left: 1.2rem;
}

.prose li { margin-bottom: 0.45rem; }

.table-wrap {
  overflow-x: auto;
  margin: 1.5rem 0;
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.92rem;
}

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

th {
  color: var(--ink);
  font-weight: 600;
}

.modules {
  display: grid;
  gap: 1rem;
  margin: 1.5rem 0;
}

.module {
  padding: 1.15rem 1.25rem;
  border: 1px solid var(--line);
  background: var(--bg-elevated);
}

.instructor {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 1.25rem;
  align-items: center;
  margin: 2rem 0;
}

.instructor img {
  width: 120px;
  height: 120px;
  object-fit: cover;
}

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

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

.faq p {
  margin-top: 0.75rem;
}

.cta-band {
  background: var(--accent);
  color: #eef5f1;
  padding: 3.5rem 0;
  margin-top: 2rem;
}

.cta-band h2,
.cta-band p {
  color: #eef5f1;
}

.cta-band .btn {
  background: #f5f7f4;
  color: var(--accent);
}

.cta-band .btn:hover {
  background: #fff;
}

.site-footer {
  margin-top: 4rem;
  padding: 3rem 0 1.5rem;
  border-top: 1px solid var(--line);
  background: linear-gradient(180deg, transparent, #eef2ee);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.3fr;
  gap: 2rem;
}

.site-footer h3 {
  font-family: var(--font-body);
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 1rem;
}

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

.site-footer li { margin-bottom: 0.45rem; }

.site-footer a {
  color: var(--ink-soft);
  text-decoration: none;
}

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

.footer-address {
  font-size: 0.88rem;
}

.footer-bottom {
  margin-top: 2.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--line);
  font-size: 0.85rem;
}

.cookie-banner {
  position: fixed;
  inset: auto 1rem 1rem 1rem;
  z-index: 60;
  max-width: 520px;
  background: var(--bg-elevated);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  padding: 1.25rem 1.35rem;
  display: none;
}

.cookie-banner.is-visible {
  display: block;
  animation: rise 0.4s ease both;
}

.cookie-banner p {
  font-size: 0.9rem;
  margin-bottom: 1rem;
}

.cookie-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.inline-error {
  background: #f7e8e5;
  color: var(--danger);
  padding: 0.75rem 1rem;
  margin: 0.5rem 0;
  font-size: 0.9rem;
}

.not-found {
  min-height: 60vh;
  display: grid;
  place-content: center;
  text-align: center;
  padding: 3rem 1rem;
}

.not-found .code {
  font-family: var(--font-display);
  font-size: clamp(5rem, 16vw, 9rem);
  line-height: 1;
  color: var(--accent-soft);
}

.case-study {
  background: var(--bg-elevated);
  border: 1px solid var(--line);
  padding: 1.75rem;
  margin: 1.5rem 0;
}

.case-study h3 { margin-bottom: 0.5rem; }

@keyframes rise {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: none; }
}

@keyframes draw {
  from { transform: scaleX(0); opacity: 0; }
  to { transform: scaleX(1); opacity: 1; }
}

@keyframes fade {
  from { opacity: 0; }
  to { opacity: 1; }
}

@media (max-width: 900px) {
  .split,
  .course-grid,
  .blog-grid,
  .price-grid,
  .review-grid,
  .footer-grid,
  .trust-strip {
    grid-template-columns: 1fr;
  }

  .hero-visual { min-height: 280px; }
  .hero-visual img { height: 300px; }

  .nav-toggle { display: inline-flex; }

  .site-nav {
    display: none;
    position: absolute;
    top: var(--header-h);
    left: 0;
    right: 0;
    background: rgba(245, 247, 244, 0.98);
    border-bottom: 1px solid var(--line);
    padding: 1rem 1.25rem 1.5rem;
    flex-direction: column;
    align-items: flex-start;
  }

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

  .instructor {
    grid-template-columns: 1fr;
  }
}
