:root {
  --paper: #f4efe4;
  --paper-deep: #ebe3d2;
  --ink: #1b1712;
  --ink-soft: #4a433a;
  --bark: #3a2414;
  --rust: #a33b1c;
  --rust-deep: #7c2c14;
  --moss: #2f4638;
  --sand: #d8c4a0;
  --line: rgba(27, 23, 18, 0.12);
  --white: #fbf8f1;
  --shadow: 0 18px 40px rgba(27, 23, 18, 0.12);
  --max: 1180px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: "Segoe UI", system-ui, sans-serif;
  font-size: 17px;
  line-height: 1.6;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

h1,
h2,
h3,
.logo-mark {
  font-family: Georgia, "Palatino Linotype", "Times New Roman", serif;
  font-weight: 500;
  letter-spacing: -0.03em;
  line-height: 1.12;
}

.wrap {
  width: min(var(--max), calc(100% - 40px));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(244, 239, 228, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 76px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand-badge {
  width: 42px;
  height: 42px;
  border: 1.5px solid var(--ink);
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 18px;
}

.logo-mark {
  font-size: 22px;
}

.logo-mark span {
  display: block;
  font-family: "Segoe UI", system-ui, sans-serif;
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin-top: 2px;
}

.nav {
  display: flex;
  gap: 22px;
  align-items: center;
}

.nav a {
  font-size: 14px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.nav a:hover,
.nav a.is-active {
  color: var(--rust);
}

.nav-cta {
  padding: 10px 16px;
  background: var(--ink);
  color: var(--paper) !important;
  border-radius: 999px;
}

.menu-toggle {
  display: none;
  background: none;
  border: 1px solid var(--ink);
  padding: 8px 12px;
  font: inherit;
  cursor: pointer;
}

.hero {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  min-height: calc(100vh - 76px);
}

.hero-copy {
  padding: 72px 8% 56px;
  display: flex;
  flex-direction: column;
  justify-content: end;
}

.kicker {
  font-size: 12px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--rust);
  margin-bottom: 18px;
}

.hero h1 {
  font-size: clamp(42px, 6vw, 78px);
  margin: 0 0 22px;
  max-width: 10ch;
}

.hero p.lead {
  font-size: 20px;
  max-width: 38ch;
  color: var(--ink-soft);
}

.hero-actions {
  display: flex;
  gap: 14px;
  margin-top: 32px;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 13px 22px;
  border-radius: 999px;
  border: 1px solid var(--ink);
  font-weight: 600;
}

.btn-primary {
  background: var(--rust);
  border-color: var(--rust);
  color: #fff;
}

.btn-ghost:hover,
.btn-primary:hover {
  transform: translateY(-1px);
}

.hero-photo {
  position: relative;
  overflow: hidden;
  min-height: 520px;
  background: #2c4638;
}

.hero-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  min-height: 520px;
}

.hero-caption {
  position: absolute;
  left: 20px;
  bottom: 20px;
  background: var(--paper);
  padding: 12px 16px;
  font-size: 13px;
  max-width: 240px;
}

.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.stat {
  padding: 28px 24px;
  border-right: 1px solid var(--line);
}

.stat:last-child {
  border-right: 0;
}

.stat b {
  display: block;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 34px;
  font-weight: 500;
}

.section {
  padding: 88px 0;
}

.section-head {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 24px;
  margin-bottom: 40px;
}

.section-head h2 {
  font-size: clamp(32px, 4vw, 48px);
  margin: 0;
  max-width: 14ch;
}

.section-head p {
  max-width: 42ch;
  color: var(--ink-soft);
  margin: 0;
}

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}

.split img {
  width: 100%;
  height: 520px;
  object-fit: cover;
}

.prose h3 {
  font-size: 28px;
  margin: 0 0 12px;
}

.prose p {
  color: var(--ink-soft);
}

.course-grid,
.card-grid,
.news-grid,
.team-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.course-card,
.method-card,
.news-card,
.team-card,
.price-card {
  background: var(--white);
  border: 1px solid var(--line);
}

.course-card img,
.news-card img,
.team-card img,
.avatar {
  width: 100%;
  height: 220px;
  object-fit: cover;
}

.avatar {
  display: grid;
  place-items: center;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 52px;
  color: #f4efe4;
  letter-spacing: 0.04em;
}

.avatar-moss { background: #2f4638; }
.avatar-rust { background: #a33b1c; }
.avatar-bark { background: #3a2414; }
.avatar-sand { background: #8a7349; color: #fbf8f1; }
.avatar-ink { background: #1b1712; }
.avatar-olive { background: #4a5c44; }

.course-card .body,
.news-card .body,
.team-card .body,
.method-card,
.price-card {
  padding: 22px;
}

.tag {
  display: inline-block;
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--moss);
  margin-bottom: 10px;
}

.course-card h3,
.news-card h3,
.team-card h3,
.method-card h3 {
  margin: 0 0 10px;
  font-size: 26px;
}

.meta {
  font-size: 13px;
  color: var(--ink-soft);
}

.page-hero {
  padding: 72px 0 36px;
  border-bottom: 1px solid var(--line);
}

.page-hero h1 {
  font-size: clamp(40px, 7vw, 72px);
  margin: 0 0 16px;
}

.methods {
  display: grid;
  gap: 18px;
}

.method-card {
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: 8px 20px;
}

.num {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 32px;
  color: var(--rust);
}

.quote-band {
  background: var(--moss);
  color: #f3eee4;
  padding: 72px 0;
}

.quote-band blockquote {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(28px, 4vw, 46px);
  line-height: 1.2;
  max-width: 18ch;
}

.quote-band cite {
  display: block;
  margin-top: 22px;
  font-style: normal;
  font-size: 14px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  opacity: 0.8;
}

.contact-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 40px;
}

.contact-card,
form {
  background: var(--white);
  border: 1px solid var(--line);
  padding: 28px;
}

label {
  display: block;
  font-size: 13px;
  margin: 14px 0 6px;
}

input,
textarea,
select {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--line);
  background: var(--paper);
  font: inherit;
}

textarea {
  min-height: 140px;
  resize: vertical;
}

.form-note {
  display: none;
  margin-top: 14px;
  color: var(--moss);
  font-weight: 600;
}

.form-note.is-visible {
  display: block;
}

.article {
  max-width: 760px;
}

.article p,
.article li {
  font-size: 18px;
  color: var(--ink-soft);
}

.news-list {
  display: grid;
  gap: 28px;
}

.news-feature {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 32px;
  background: var(--white);
  border: 1px solid var(--line);
  margin-bottom: 36px;
}

.news-feature img {
  width: 100%;
  height: 100%;
  min-height: 360px;
  object-fit: cover;
}

.news-feature .body {
  padding: 36px 32px 36px 0;
}

.news-article {
  background: var(--white);
  border: 1px solid var(--line);
  padding: 32px;
}

.news-article h2 {
  font-size: 34px;
  margin: 8px 0 16px;
}

.source {
  font-size: 13px;
  color: var(--ink-soft);
  margin-top: 18px;
}

.site-footer {
  border-top: 1px solid var(--line);
  padding: 40px 0 28px;
  background: var(--bark);
  color: #f3eee4;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 32px;
}

.site-footer a:hover {
  color: var(--sand);
}

.tiny {
  margin-top: 28px;
  font-size: 13px;
  opacity: 0.7;
}

.price-row {
  display: flex;
  justify-content: space-between;
  border-top: 1px solid var(--line);
  padding: 10px 0;
  font-size: 15px;
}

.price-card h3 {
  margin-top: 0;
}

@media (max-width: 900px) {
  .hero,
  .split,
  .stats,
  .course-grid,
  .card-grid,
  .news-grid,
  .team-grid,
  .news-feature,
  .contact-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .hero-copy {
    padding: 40px 0 32px;
  }

  .stat {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .menu-toggle {
    display: block;
  }

  .nav {
    display: none;
    position: absolute;
    top: 76px;
    left: 0;
    right: 0;
    background: var(--paper);
    flex-direction: column;
    padding: 18px 20px 24px;
    border-bottom: 1px solid var(--line);
    align-items: flex-start;
  }

  .nav.is-open {
    display: flex;
  }

  .news-feature .body {
    padding: 24px;
  }
}
