:root {
  --bg: #f3efe6;
  --bg-soft: #ebe4d8;
  --surface: #fffdf8;
  --ink: #2a2420;
  --ink-soft: #5c534c;
  --line: #d9d0c3;
  --accent: #6f7f6a;
  --accent-deep: #4f5d4b;
  --dust: #7f92a3;
  --danger: #8a3b2d;
  --radius: 2px;
  --serif: "Cormorant Garamond", "Times New Roman", serif;
  --sans: "Manrope", "Helvetica Neue", sans-serif;
  --max: 1120px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--sans);
  color: var(--ink);
  background:
    radial-gradient(1200px 500px at 10% -10%, #e7efe4 0%, transparent 55%),
    radial-gradient(900px 400px at 100% 0%, #dfe7ee 0%, transparent 50%),
    var(--bg);
  line-height: 1.55;
  min-height: 100vh;
}

a { color: inherit; text-decoration: none; }
img, video { max-width: 100%; display: block; }
.wrap { width: min(var(--max), calc(100% - 2.5rem)); margin: 0 auto; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(10px);
  background: rgba(243, 239, 230, 0.88);
  border-bottom: 1px solid var(--line);
}
.header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.95rem 0;
}
.brand {
  font-family: var(--serif);
  font-size: 1.55rem;
  letter-spacing: 0.08em;
  text-transform: lowercase;
}
.brand span { color: var(--accent-deep); }
.nav {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 1.25rem;
  align-items: center;
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.nav a:hover { color: var(--accent-deep); }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  border: 1px solid var(--ink);
  background: transparent;
  color: var(--ink);
  padding: 0.75rem 1.25rem;
  font: inherit;
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  cursor: pointer;
  transition: 0.2s ease;
}
.btn:hover { background: var(--ink); color: var(--surface); }
.btn-solid {
  background: var(--accent-deep);
  border-color: var(--accent-deep);
  color: #f7f4ee;
}
.btn-solid:hover { background: var(--ink); border-color: var(--ink); }
.btn-ghost { border-color: var(--line); }

.hero {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 1.5rem;
  padding: 3.5rem 0 2.5rem;
  min-height: calc(100vh - 5rem);
  align-items: stretch;
}
.hero-copy {
  background: var(--surface);
  border: 1px solid var(--line);
  padding: 3rem 2.4rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  animation: rise 0.8s ease both;
}
.hero-copy h1 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(2.4rem, 5vw, 4rem);
  line-height: 1.05;
  margin: 0 0 1rem;
}
.lead { color: var(--ink-soft); font-size: 1.05rem; max-width: 34rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 1.75rem; }
.hero-media {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--bg-soft);
  animation: fade 1.1s ease both;
}
.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  min-height: 520px;
  transform: scale(1.03);
  animation: slowzoom 12s ease alternate infinite;
}
.hero-fallback {
  min-height: 520px;
  display: grid;
  place-items: center;
  color: var(--ink-soft);
  font-family: var(--serif);
  font-size: 2rem;
}

.section { padding: 4rem 0; }
.section-head {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 1rem;
  margin-bottom: 1.75rem;
}
.section h2, .page-title {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(2rem, 3.5vw, 3rem);
  margin: 0;
  line-height: 1.1;
}
.muted { color: var(--ink-soft); }

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
}
.panel {
  background: var(--surface);
  border: 1px solid var(--line);
  padding: 2rem;
}
.goals {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.75rem;
  margin-top: 1.5rem;
}
.goal {
  border: 1px solid var(--line);
  background: var(--bg-soft);
  padding: 1.1rem 1rem;
  min-height: 7rem;
  transition: 0.25s ease;
}
.goal:hover { background: var(--accent); color: #f7f4ee; transform: translateY(-2px); }
.goal strong {
  display: block;
  font-family: var(--serif);
  font-size: 1.4rem;
  font-weight: 500;
  margin-bottom: 0.35rem;
}

.lesson-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}
.lesson-card {
  background: var(--surface);
  border: 1px solid var(--line);
  overflow: hidden;
  transition: 0.25s ease;
}
.lesson-card:hover { transform: translateY(-3px); box-shadow: 0 14px 30px rgba(42, 36, 32, 0.08); }
.lesson-card .thumb {
  aspect-ratio: 4/3;
  background:
    linear-gradient(135deg, rgba(111,127,106,.35), rgba(127,146,163,.25)),
    var(--bg-soft);
  display: grid;
  place-items: end start;
  padding: 0.75rem;
  position: relative;
  overflow: hidden;
}
.lesson-card .thumb img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}
.lesson-card .thumb .badge { position: relative; z-index: 1; }

.category-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}
.category-tile {
  background: var(--surface);
  border: 1px solid var(--line);
  overflow: hidden;
  transition: 0.25s ease;
  display: block;
}
.category-tile:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 30px rgba(42, 36, 32, 0.08);
}
.category-tile-media {
  aspect-ratio: 4/3;
  background: var(--bg-soft);
  position: relative;
  overflow: hidden;
}
.category-tile-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.35s ease;
}
.category-tile:hover .category-tile-media img { transform: scale(1.04); }
.category-tile-body {
  padding: 1rem 1.1rem 1.15rem;
}
.category-tile-body h2 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 1.45rem;
  margin: 0;
  line-height: 1.15;
}

.badge {
  display: inline-block;
  background: var(--accent-deep);
  color: #f4f1ea;
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.35rem 0.5rem;
}
.lesson-card .body { padding: 1rem 1rem 1.2rem; }
.lesson-card h3 {
  font-family: var(--serif);
  font-size: 1.35rem;
  font-weight: 500;
  margin: 0 0 0.35rem;
  line-height: 1.2;
}
.cat-label { font-size: 0.75rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-soft); }

.layout-catalog {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 1.5rem;
  padding: 2.5rem 0 4rem;
}
.filters {
  background: var(--surface);
  border: 1px solid var(--line);
  padding: 1.25rem;
  height: fit-content;
  position: sticky;
  top: 5rem;
}
.filters h2 {
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin: 0 0 0.85rem;
  font-family: var(--sans);
  font-weight: 600;
}
.filters a, .filters button {
  display: block;
  width: 100%;
  text-align: left;
  border: 0;
  background: transparent;
  padding: 0.45rem 0.55rem;
  margin-bottom: 0.2rem;
  font: inherit;
  color: var(--ink-soft);
  cursor: pointer;
}
.filters a.active, .filters a:hover {
  background: var(--accent);
  color: #f7f4ee;
}
.search {
  display: flex;
  gap: 0.4rem;
  margin-top: 1rem;
}
.search input {
  width: 100%;
  border: 1px solid var(--line);
  background: #fff;
  padding: 0.55rem 0.65rem;
  font: inherit;
}

.price-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}
.price-card {
  background: var(--surface);
  border: 1px solid var(--line);
  padding: 1.6rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.price-card.featured {
  background: #e7eee4;
  border-color: #c7d3c2;
}
.price {
  font-family: var(--serif);
  font-size: 2.6rem;
  line-height: 1;
}
.price small { font-size: 1rem; color: var(--ink-soft); }
.check {
  display: flex;
  gap: 0.55rem;
  align-items: flex-start;
  font-size: 0.95rem;
  color: var(--ink-soft);
}
.form {
  display: grid;
  gap: 0.85rem;
  max-width: 420px;
}
.form label { display: grid; gap: 0.35rem; font-size: 0.92rem; }
.form input, .form textarea {
  border: 1px solid var(--line);
  background: #fff;
  padding: 0.7rem 0.75rem;
  font: inherit;
}
.error {
  background: #f7e8e4;
  border: 1px solid #e2c0b7;
  color: var(--danger);
  padding: 0.75rem 0.9rem;
}
.notice {
  background: #e8eef4;
  border: 1px solid #c9d6e2;
  padding: 0.85rem 1rem;
  margin-bottom: 1rem;
}

.player-shell {
  background: #1c1a18;
  border: 1px solid var(--line);
  aspect-ratio: 16/9;
  display: grid;
  place-items: center;
  color: #f4f1ea;
  overflow: hidden;
}
.player-shell video { width: 100%; height: 100%; }
.lock-msg { text-align: center; padding: 2rem; max-width: 28rem; }

.site-footer {
  border-top: 1px solid var(--line);
  background: #2a2420;
  color: #ebe4d8;
  padding: 2rem 0;
  margin-top: 3rem;
}
.footer-row {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  font-size: 0.9rem;
}
.footer-row a { color: #ebe4d8; opacity: 0.85; }
.footer-row a:hover { opacity: 1; }

.legal { padding: 2.5rem 0 4rem; max-width: 760px; }
.legal h1 { font-family: var(--serif); font-weight: 500; }
.legal h2 { font-family: var(--serif); font-weight: 500; margin-top: 2rem; }
.faq details {
  background: var(--surface);
  border: 1px solid var(--line);
  padding: 1rem 1.1rem;
  margin-bottom: 0.65rem;
}
.faq summary { cursor: pointer; font-weight: 600; }

.about-hero {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 1.5rem;
  padding: 3rem 0 2rem;
  align-items: start;
}
.about-page {
  padding: 2.5rem 0 4rem;
  max-width: 760px;
}
.about-flow {
  margin-bottom: 2rem;
}
.about-body-flow {
  display: flow-root;
}
.about-body-flow > p {
  margin: 0 0 1rem;
  color: var(--ink-soft);
}
.about-float-photo {
  float: right;
  shape-outside: margin-box;
  width: 160px;
  max-width: 32%;
  margin: 0.1rem 0 1rem 1.1rem;
  padding: 0;
  border: 1px solid var(--line);
  background: var(--surface);
}
.about-float-photo img {
  width: 160px;
  max-width: 100%;
  height: auto;
  display: block;
}
.about-flow .page-title { margin: 0 0 1.25rem; }
.about-intro p { margin: 0 0 1rem; color: var(--ink-soft); }
.about-kicker {
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-size: 0.75rem;
  margin: 0 0 0.6rem;
}
.about-body { padding-bottom: 4rem; max-width: 760px; }
.about-path h2 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 1.8rem;
  margin: 0 0 1.2rem;
}
.about-timeline {
  margin: 0;
  padding-left: 1.2rem;
  color: var(--ink-soft);
}
.about-timeline li { margin-bottom: 0.65rem; }
.about-closing {
  margin: 2rem 0 1.5rem;
  font-family: var(--serif);
  font-size: 1.6rem;
  line-height: 1.3;
}
.about-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; }

@keyframes rise {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: none; }
}
@keyframes fade {
  from { opacity: 0; }
  to { opacity: 1; }
}
@keyframes slowzoom {
  from { transform: scale(1.03); }
  to { transform: scale(1.08); }
}

@media (max-width: 900px) {
  .hero, .split, .price-grid, .layout-catalog, .lesson-grid, .category-grid, .goals, .about-hero {
    grid-template-columns: 1fr;
  }
  .hero { min-height: auto; padding-top: 1.5rem; }
  .hero-media img, .hero-fallback { min-height: 360px; }
  .about-float-photo {
    width: 120px;
    max-width: 38%;
    margin: 0 0 0.75rem 0.85rem;
  }
  .about-float-photo img { width: 120px; }
  .filters { position: static; }
  .nav { gap: 0.75rem; }
}
