:root {
  --bg: #f6f4f0;
  --bg-elevated: #fffcf8;
  --ink: #2b2a26;
  --ink-soft: #5c584f;
  --line: #ddd6cb;
  --accent: #3d4f4a;
  --accent-hover: #2f3d39;
  --accent-soft: #a8b5a0;
  --sand: #e8e0d4;
  --highlight: #c4a574;
  --danger: #8b3a2f;
  --success: #3d5c45;
  --radius: 6px;
  --shadow: 0 18px 40px rgba(43, 42, 38, 0.08);
  --font-display: "Instrument Serif", Georgia, serif;
  --font-body: "Figtree", "Segoe UI", sans-serif;
  --space: clamp(1.25rem, 3vw, 2.5rem);
  --shell: min(1120px, calc(100% - 2.5rem));
  --header-h: 4.5rem;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background:
    radial-gradient(ellipse 80% 50% at 10% -10%, rgba(168, 181, 160, 0.28), transparent 55%),
    radial-gradient(ellipse 60% 40% at 100% 0%, rgba(196, 165, 116, 0.18), transparent 50%),
    linear-gradient(180deg, #f3efe8 0%, var(--bg) 28%, #f8f6f2 100%);
  line-height: 1.65;
  min-height: 100vh;
}

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

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

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

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

h1 { font-size: clamp(2.4rem, 5vw, 3.75rem); }
h2 { font-size: clamp(1.8rem, 3.5vw, 2.6rem); }
h3 { font-size: clamp(1.3rem, 2.4vw, 1.7rem); }

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

.shell {
  width: var(--shell);
  margin-inline: auto;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--accent);
  color: #fff;
  padding: 0.75rem 1rem;
  z-index: 1000;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  backdrop-filter: blur(12px);
  background: rgba(246, 244, 240, 0.88);
  border-bottom: 1px solid rgba(221, 214, 203, 0.8);
}

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

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

.brand-mark {
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 0.5rem;
  background:
    linear-gradient(145deg, var(--accent) 0%, #55685f 100%);
  box-shadow: inset 0 0 0 2px rgba(232, 228, 222, 0.35);
  position: relative;
}

.brand-mark::after {
  content: "";
  position: absolute;
  inset: 28% 22% 22% 22%;
  border: 2px solid #e8e4de;
  border-bottom: none;
  clip-path: polygon(50% 0, 100% 100%, 0 100%);
}

.brand-text {
  display: flex;
  flex-direction: column;
  gap: 0.05rem;
}

.brand-name {
  font-family: var(--font-display);
  font-size: 1.45rem;
  line-height: 1;
  color: var(--ink);
}

.brand-tag {
  font-size: 0.72rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

.nav-toggle {
  display: none;
  border: 1px solid var(--line);
  background: var(--bg-elevated);
  border-radius: var(--radius);
  padding: 0.55rem 0.85rem;
  font: inherit;
  cursor: pointer;
}

.site-nav ul {
  display: flex;
  align-items: center;
  gap: 0.35rem 1.1rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

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

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

.nav-cta {
  display: inline-flex;
  align-items: center;
  padding: 0.55rem 0.95rem;
  border-radius: var(--radius);
  background: var(--accent);
  color: #f7f4ef !important;
}

.nav-cta:hover {
  background: var(--accent-hover);
}

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

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

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

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

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

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

.hero {
  padding: clamp(2.5rem, 6vw, 5rem) 0 clamp(2rem, 4vw, 3.5rem);
}

.hero-home {
  display: grid;
  gap: 2rem;
  align-items: end;
}

.hero-kicker {
  display: inline-block;
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1rem;
  opacity: 0;
  animation: rise 0.7s ease forwards;
}

.hero h1 {
  max-width: 14ch;
  opacity: 0;
  animation: rise 0.8s ease 0.1s forwards;
}

.hero-lead {
  max-width: 36rem;
  font-size: 1.125rem;
  opacity: 0;
  animation: rise 0.8s ease 0.2s forwards;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.75rem;
  opacity: 0;
  animation: rise 0.8s ease 0.3s forwards;
}

.hero-visual {
  border-radius: 1rem;
  overflow: hidden;
  box-shadow: var(--shadow);
  aspect-ratio: 16 / 10;
  background: var(--sand);
  opacity: 0;
  animation: fade-scale 1s ease 0.15s forwards;
}

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

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

@keyframes fade-scale {
  from { opacity: 0; transform: scale(1.03); }
  to { opacity: 1; transform: scale(1); }
}

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

.section {
  padding: clamp(2.5rem, 5vw, 4.5rem) 0;
}

.section-head {
  max-width: 40rem;
  margin-bottom: 2rem;
}

.section-muted {
  background: rgba(255, 252, 248, 0.65);
  border-block: 1px solid var(--line);
}

.split {
  display: grid;
  gap: 2rem;
  align-items: center;
}

@media (min-width: 860px) {
  .hero-home {
    grid-template-columns: 1.05fr 0.95fr;
  }

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

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

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

.offer-grid,
.course-grid,
.post-grid,
.fee-grid,
.story-grid {
  display: grid;
  gap: 1.25rem;
}

.course-item,
.post-item,
.fee-item,
.story-item,
.review-item {
  background: var(--bg-elevated);
  border: 1px solid var(--line);
  border-radius: 0.85rem;
  overflow: hidden;
}

.course-item img,
.post-item img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  background: var(--sand);
}

.course-body,
.post-body,
.fee-item,
.story-item,
.review-item {
  padding: 1.25rem 1.35rem 1.45rem;
}

.meta {
  font-size: 0.85rem;
  color: var(--ink-soft);
  margin-bottom: 0.5rem;
}

.course-item h3,
.post-item h3,
.fee-item h3 {
  margin-bottom: 0.5rem;
}

.course-item a,
.post-item a {
  text-decoration: none;
  color: inherit;
}

.course-item a:hover h3,
.post-item a:hover h3 {
  color: var(--accent);
}

.prose {
  max-width: 42rem;
}

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

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

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

.page-hero {
  padding: clamp(2.5rem, 5vw, 4rem) 0 1.5rem;
}

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

.page-hero .lead {
  max-width: 38rem;
  font-size: 1.08rem;
}

.media-block {
  border-radius: 1rem;
  overflow: hidden;
  box-shadow: var(--shadow);
  background: var(--sand);
  margin: 1.5rem 0 0;
}

.media-block img {
  width: 100%;
  aspect-ratio: 21 / 9;
  object-fit: cover;
}

.portrait-grid {
  display: grid;
  gap: 1.25rem;
}

@media (min-width: 700px) {
  .portrait-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.portrait {
  display: grid;
  gap: 1rem;
  background: var(--bg-elevated);
  border: 1px solid var(--line);
  border-radius: 0.85rem;
  padding: 1rem;
}

.portrait img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 0.55rem;
  background: var(--sand);
}

.flagship-panel {
  display: grid;
  gap: 1.5rem;
  background: var(--bg-elevated);
  border: 1px solid var(--line);
  border-radius: 1rem;
  padding: 1.5rem;
  box-shadow: var(--shadow);
}

@media (min-width: 860px) {
  .flagship-panel {
    grid-template-columns: 1.1fr 0.9fr;
    align-items: center;
  }
}

.flagship-panel img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 0.75rem;
  background: var(--sand);
}

.list-check {
  list-style: none;
  padding: 0;
  margin: 0 0 1rem;
}

.list-check li {
  position: relative;
  padding-left: 1.3rem;
  margin-bottom: 0.55rem;
  color: var(--ink-soft);
}

.list-check li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55rem;
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 50%;
  background: var(--accent-soft);
}

.steps {
  counter-reset: step;
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 1rem;
}

.steps li {
  counter-increment: step;
  background: var(--bg-elevated);
  border: 1px solid var(--line);
  border-radius: 0.75rem;
  padding: 1rem 1.1rem 1rem 3.2rem;
  position: relative;
  color: var(--ink-soft);
}

.steps li::before {
  content: counter(step);
  position: absolute;
  left: 1rem;
  top: 1rem;
  width: 1.6rem;
  height: 1.6rem;
  border-radius: 50%;
  background: var(--accent);
  color: #f7f4ef;
  display: grid;
  place-items: center;
  font-size: 0.85rem;
  font-weight: 700;
}

.review-item blockquote {
  margin: 0 0 1rem;
  font-family: var(--font-display);
  font-size: 1.35rem;
  line-height: 1.35;
  color: var(--ink);
}

.cite-name {
  font-weight: 600;
  color: var(--ink);
  margin: 0;
}

.cite-meta {
  margin: 0.15rem 0 0;
  font-size: 0.9rem;
}

.form {
  display: grid;
  gap: 1rem;
  max-width: 36rem;
  background: var(--bg-elevated);
  border: 1px solid var(--line);
  border-radius: 1rem;
  padding: 1.5rem;
}

.form label {
  display: grid;
  gap: 0.4rem;
  font-weight: 600;
  font-size: 0.92rem;
}

.form input,
.form select,
.form textarea {
  font: inherit;
  padding: 0.75rem 0.85rem;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink);
}

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

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

.form-status {
  padding: 0.85rem 1rem;
  border-radius: var(--radius);
  display: none;
}

.form-status.is-success {
  display: block;
  background: rgba(61, 92, 69, 0.12);
  color: var(--success);
}

.form-status.is-error {
  display: block;
  background: rgba(139, 58, 47, 0.12);
  color: var(--danger);
}

.contact-aside {
  background: var(--bg-elevated);
  border: 1px solid var(--line);
  border-radius: 1rem;
  padding: 1.35rem;
}

.contact-aside p {
  margin-bottom: 0.65rem;
}

.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 0.75rem;
  background: var(--bg-elevated);
}

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

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

th {
  background: rgba(61, 79, 74, 0.06);
  color: var(--ink);
}

tr:last-child td {
  border-bottom: none;
}

.site-footer {
  margin-top: 3rem;
  padding: 3rem 0 1.5rem;
  background: #2f3834;
  color: #d9d4cb;
}

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

.footer-grid {
  display: grid;
  gap: 1.75rem;
}

@media (min-width: 860px) {
  .footer-grid {
    grid-template-columns: 1.4fr 1fr 0.9fr 0.8fr;
  }
}

.footer-name {
  font-family: var(--font-display);
  font-size: 1.5rem;
  color: #f5f1ea;
  margin-bottom: 0.5rem;
}

.footer-lead,
.footer-address,
.site-footer p {
  color: #c9c3b8;
}

.footer-label {
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent-soft);
  margin-bottom: 0.65rem;
}

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

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

.footer-base {
  margin-top: 2rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(232, 228, 222, 0.15);
  font-size: 0.9rem;
}

.cookie-banner {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 60;
  background: rgba(47, 56, 52, 0.96);
  color: #ebe6de;
  padding: 1rem 0;
  border-top: 1px solid rgba(168, 181, 160, 0.35);
}

.cookie-banner[hidden] {
  display: none !important;
}

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

.cookie-inner p {
  margin: 0;
  color: #d9d4cb;
  max-width: 48rem;
}

.cookie-inner a {
  color: #f0ebe3;
}

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

.cookie-banner .btn-ghost {
  color: #f0ebe3;
  border-color: rgba(232, 228, 222, 0.35);
}

.cookie-banner .btn-primary {
  background: var(--accent-soft);
  color: #24302c;
}

.legal-list {
  max-width: 46rem;
}

.inline-error {
  margin: 1rem 0;
  padding: 0.85rem 1rem;
  border-radius: var(--radius);
  background: rgba(139, 58, 47, 0.1);
  color: var(--danger);
}

.cta-band {
  margin: 2rem 0 0;
  padding: 2rem;
  border-radius: 1rem;
  background:
    linear-gradient(135deg, rgba(61, 79, 74, 0.95), rgba(61, 79, 74, 0.82)),
    var(--accent);
  color: #f4f0e8;
}

.cta-band p {
  color: #d9d4cb;
}

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

.cta-band .btn-ghost {
  border-color: rgba(244, 240, 232, 0.4);
  color: #f4f0e8;
}

.not-found {
  min-height: 55vh;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 3rem 0;
}

@media (max-width: 859px) {
  .nav-toggle {
    display: inline-flex;
  }

  .site-nav {
    position: absolute;
    top: var(--header-h);
    left: 0;
    right: 0;
    background: rgba(255, 252, 248, 0.98);
    border-bottom: 1px solid var(--line);
    padding: 1rem 1.25rem 1.25rem;
    display: none;
  }

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

  .site-nav ul {
    flex-direction: column;
    align-items: flex-start;
  }

  .nav-cta {
    margin-top: 0.35rem;
  }
}
