:root {
  --ink: #1c2422;
  --ink-soft: #3f4b47;
  --muted: #6b756f;
  --line: #d9ddd6;
  --paper: #f7f6f2;
  --paper-deep: #ebe8e0;
  --surface: #ffffff;
  --accent: #2f4a45;
  --accent-soft: #4a6b63;
  --highlight: #c4a574;
  --danger: #8a3b2f;
  --success: #2f5d45;
  --shadow: 0 18px 50px rgba(28, 36, 34, 0.08);
  --radius: 18px;
  --max: 1120px;
  --font-display: "Syne", sans-serif;
  --font-body: "Figtree", sans-serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

*,
*::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 600px at 10% -10%, rgba(196, 165, 116, 0.18), transparent 55%),
    radial-gradient(900px 500px at 100% 0%, rgba(74, 107, 99, 0.12), transparent 50%),
    linear-gradient(180deg, var(--paper) 0%, #f3f1eb 45%, var(--paper) 100%);
  line-height: 1.65;
  min-height: 100vh;
}

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

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

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

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

p {
  margin: 0 0 1em;
}

.visually-hidden {
  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: -3rem;
  background: var(--ink);
  color: #fff;
  padding: 0.6rem 1rem;
  z-index: 1000;
}

.skip-link:focus {
  top: 1rem;
}

.inline-error {
  margin: 0;
  padding: 0.75rem 1rem;
  background: #f6e8e5;
  color: var(--danger);
  border-bottom: 1px solid #e4c4bc;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(14px);
  background: rgba(247, 246, 242, 0.86);
  border-bottom: 1px solid rgba(217, 221, 214, 0.7);
}

.header-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0.9rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  text-decoration: none;
  color: var(--ink);
}

.brand-mark {
  width: 2rem;
  height: 2rem;
  border-radius: 0.65rem;
  background:
    radial-gradient(circle at 70% 30%, var(--highlight), transparent 45%),
    linear-gradient(145deg, var(--accent), #1d312e);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.15);
}

.brand-text {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: -0.02em;
}

.nav-list {
  list-style: none;
  display: flex;
  gap: 1.15rem;
  margin: 0;
  padding: 0;
  flex-wrap: wrap;
}

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

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

.nav-toggle {
  display: none;
  border: 1px solid var(--line);
  background: var(--surface);
  border-radius: 0.7rem;
  width: 2.6rem;
  height: 2.6rem;
  padding: 0;
  cursor: pointer;
}

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

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

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

main {
  display: block;
}

.section {
  padding: 4.5rem 1.25rem;
}

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

.wrap {
  max-width: var(--max);
  margin: 0 auto;
}

.eyebrow {
  font-size: 0.8rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 0.75rem;
}

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

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

.btn:hover {
  transform: translateY(-2px);
}

.btn-primary {
  background: var(--accent);
  color: #f7f6f2;
}

.btn-primary:hover {
  background: var(--accent-soft);
  color: #fff;
}

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

.btn-ghost:hover {
  border-color: var(--accent);
  color: var(--accent);
}

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

/* Hero — full-bleed composition */
.hero {
  position: relative;
  min-height: min(92vh, 820px);
  display: grid;
  align-items: end;
  color: #f4f1ea;
  overflow: hidden;
}

.hero-media {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.04);
  animation: heroDrift 18s var(--ease) infinite alternate;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(18, 28, 26, 0.25) 0%, rgba(18, 28, 26, 0.55) 45%, rgba(18, 28, 26, 0.82) 100%);
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: var(--max);
  width: 100%;
  margin: 0 auto;
  padding: 5.5rem 1.25rem 3.5rem;
}

.hero-brand {
  font-family: var(--font-display);
  font-size: clamp(2.6rem, 7vw, 5.4rem);
  font-weight: 750;
  letter-spacing: -0.04em;
  line-height: 0.95;
  margin: 0 0 1rem;
  animation: riseIn 0.9s var(--ease) both;
}

.hero h1 {
  font-size: clamp(1.35rem, 2.6vw, 1.85rem);
  font-weight: 600;
  max-width: 28ch;
  margin: 0 0 0.85rem;
  color: #f7f2e8;
  animation: riseIn 0.9s var(--ease) 0.12s both;
}

.hero .hero-support {
  max-width: 38ch;
  color: rgba(247, 246, 242, 0.86);
  font-size: 1.05rem;
  margin: 0;
  animation: riseIn 0.9s var(--ease) 0.22s both;
}

.hero .btn-row {
  animation: riseIn 0.9s var(--ease) 0.32s both;
}

.hero .btn-primary {
  background: #f3efe6;
  color: var(--accent);
}

.hero .btn-primary:hover {
  background: #fff;
  color: var(--ink);
}

.hero .btn-ghost {
  border-color: rgba(243, 239, 230, 0.45);
  color: #f3efe6;
}

.page-hero {
  padding: 4.5rem 1.25rem 2.5rem;
}

.page-hero h1 {
  font-size: clamp(2rem, 4vw, 3.2rem);
  max-width: 16ch;
}

.page-hero .lead {
  margin-top: 0.5rem;
}

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

.media-frame {
  border-radius: calc(var(--radius) + 4px);
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 1px solid rgba(217, 221, 214, 0.8);
}

.media-frame img {
  width: 100%;
  height: 100%;
  min-height: 280px;
  object-fit: cover;
}

.panel {
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(217, 221, 214, 0.9);
  border-radius: var(--radius);
  padding: 1.5rem;
}

.grid-3,
.grid-2 {
  display: grid;
  gap: 1.25rem;
}

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

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

.course-tile,
.blog-tile,
.price-tier,
.review-block {
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid rgba(217, 221, 214, 0.95);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease);
}

.course-tile:hover,
.blog-tile:hover,
.price-tier:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

.course-tile img,
.blog-tile img {
  width: 100%;
  height: 190px;
  object-fit: cover;
}

.tile-body,
.price-tier,
.review-block {
  padding: 1.25rem 1.35rem 1.45rem;
}

.tile-meta,
.muted {
  color: var(--muted);
  font-size: 0.92rem;
}

.stat-row {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  padding: 1.5rem 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.stat strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.8rem;
  letter-spacing: -0.03em;
}

.quote {
  font-size: 1.15rem;
  color: var(--ink-soft);
}

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

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

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

.list-clean li:last-child {
  border-bottom: 0;
}

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

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

.form {
  display: grid;
  gap: 1rem;
}

label {
  display: grid;
  gap: 0.4rem;
  font-weight: 600;
  font-size: 0.95rem;
}

input,
textarea,
select {
  font: inherit;
  border: 1px solid var(--line);
  border-radius: 0.85rem;
  padding: 0.8rem 0.95rem;
  background: var(--surface);
  color: var(--ink);
}

input:focus,
textarea:focus,
select:focus {
  outline: 2px solid rgba(47, 74, 69, 0.35);
  border-color: var(--accent);
}

.field-error {
  color: var(--danger);
  font-size: 0.88rem;
  font-weight: 500;
  min-height: 1.1em;
}

.form-status {
  min-height: 1.4em;
  font-weight: 600;
}

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

.form-status.is-error {
  color: var(--danger);
}

.legal h2 {
  margin-top: 2rem;
  font-size: 1.35rem;
}

.legal table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.25rem 0 2rem;
  font-size: 0.95rem;
}

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

.legal th {
  background: var(--paper-deep);
}

.site-footer {
  margin-top: 3rem;
  background: #1d2926;
  color: #d8ddd8;
  padding: 3.5rem 1.25rem 2rem;
}

.site-footer a {
  color: #e8e2d6;
  text-decoration: none;
}

.site-footer a:hover {
  color: #fff;
}

.footer-inner {
  max-width: var(--max);
  margin: 0 auto;
}

.footer-name {
  font-family: var(--font-display);
  font-size: 1.4rem;
  color: #f4f1ea;
  margin-bottom: 0.4rem;
}

.footer-tag {
  max-width: 28rem;
  color: #aeb8b2;
}

.footer-cols {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  margin: 2.25rem 0 2rem;
}

.footer-heading {
  color: #f4f1ea;
  font-weight: 700;
  margin-bottom: 0.7rem;
}

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

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

.footer-address {
  color: #aeb8b2;
}

.footer-copy {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 1.25rem;
  color: #8f9a94;
  font-size: 0.9rem;
}

.cookie-banner {
  position: fixed;
  left: 1rem;
  right: 1rem;
  bottom: 1rem;
  z-index: 80;
  max-width: 640px;
  margin: 0 auto;
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  animation: riseIn 0.55s var(--ease) both;
}

.cookie-banner-inner {
  padding: 1.15rem 1.25rem;
  display: grid;
  gap: 1rem;
}

.cookie-banner-inner p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.95rem;
}

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

.reveal {
  opacity: 0;
  transform: translateY(16px);
  animation: riseIn 0.8s var(--ease) forwards;
}

.delay-1 { animation-delay: 0.1s; }
.delay-2 { animation-delay: 0.2s; }
.delay-3 { animation-delay: 0.3s; }

.band {
  background:
    linear-gradient(135deg, rgba(47, 74, 69, 0.08), rgba(196, 165, 116, 0.12)),
    rgba(255, 255, 255, 0.45);
  border-block: 1px solid rgba(217, 221, 214, 0.8);
}

.avatar {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid #fff;
  box-shadow: 0 8px 20px rgba(28, 36, 34, 0.12);
}

.instructor {
  display: flex;
  gap: 1rem;
  align-items: center;
}

.price {
  font-family: var(--font-display);
  font-size: 2rem;
  letter-spacing: -0.03em;
}

.price span {
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--muted);
  font-weight: 500;
}

.note {
  font-size: 0.92rem;
  color: var(--muted);
}

.stars {
  letter-spacing: 0.08em;
  color: var(--highlight);
}

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

@keyframes riseIn {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes heroDrift {
  from {
    transform: scale(1.04) translate3d(0, 0, 0);
  }
  to {
    transform: scale(1.1) translate3d(-1.5%, -1%, 0);
  }
}

@media (max-width: 920px) {
  .grid-3,
  .footer-cols,
  .split {
    grid-template-columns: 1fr;
  }

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

  .nav-toggle {
    display: inline-grid;
    place-items: center;
  }

  .site-nav {
    position: absolute;
    top: calc(100% + 1px);
    left: 0;
    right: 0;
    background: rgba(247, 246, 242, 0.98);
    border-bottom: 1px solid var(--line);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s var(--ease);
  }

  .site-nav.is-open {
    max-height: 420px;
  }

  .nav-list {
    flex-direction: column;
    padding: 1rem 1.25rem 1.4rem;
    gap: 0.85rem;
  }

  .hero {
    min-height: 78vh;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}
