:root {
  --forest: #0b3022;
  --olive: #657747;
  --sage: #dce5d3;
  --orange: #f26a22;
  --paper: #fff8ef;
  --cream: #f7eadb;
  --line: rgba(11, 48, 34, 0.14);
  --text: #162c22;
  --muted: #5f6b58;
  --shadow: 0 20px 60px rgba(62, 49, 33, 0.14);
  --font-serif: "DM Serif Display", Georgia, serif;
  --font-script: "Kalam", "Segoe Print", cursive;
  --font-sans: "Source Sans 3", "Segoe UI", Arial, sans-serif;
  --size-display: clamp(3.45rem, 6.2vw, 5.9rem);
  --size-page-title: clamp(3rem, 5.4vw, 4.9rem);
  --size-section-title: clamp(2rem, 3.2vw, 3rem);
  --size-card-title: 1.55rem;
  --size-lead: clamp(1.2rem, 2vw, 1.48rem);
  --size-body: 1.16rem;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--text);
  font-family: var(--font-sans);
  background:
    radial-gradient(circle at 7% 8%, rgba(216, 198, 174, 0.35) 0 74px, transparent 75px),
    radial-gradient(circle at 95% 88%, rgba(242, 106, 34, 0.12) 0 98px, transparent 99px),
    linear-gradient(135deg, var(--paper) 0%, var(--cream) 100%);
}

a {
  color: inherit;
  text-decoration: none;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 18px clamp(18px, 5vw, 72px);
  background: rgba(255, 248, 239, 0.9);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(14px);
}

.brand {
  color: var(--olive);
  font-family: var(--font-script);
  font-size: clamp(1.65rem, 2.4vw, 2.15rem);
  line-height: 1;
}

nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}

nav a {
  border-radius: 999px;
  padding: 9px 14px;
  color: var(--forest);
  font-weight: 800;
}

nav a.active,
nav a:hover {
  color: white;
  background: var(--forest);
}

main {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
}

.hero-section {
  display: grid;
  grid-template-columns: minmax(300px, 0.92fr) minmax(360px, 1.08fr);
  gap: clamp(28px, 5vw, 64px);
  align-items: center;
  min-height: calc(100vh - 82px);
  padding: 56px 0;
}

.hero-text {
  position: relative;
}

.hero-text::before {
  position: absolute;
  inset: -34px auto auto -38px;
  z-index: -1;
  width: 220px;
  height: 220px;
  content: "";
  border-radius: 50%;
  background: rgba(220, 229, 211, 0.9);
}

.kicker {
  margin: 0 0 12px;
  color: var(--olive);
  font-weight: 900;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

h1,
h2,
h3 {
  color: var(--forest);
  font-family: var(--font-serif);
  font-weight: 400;
  letter-spacing: 0;
}

h1 {
  margin: 0;
  max-width: 760px;
  font-size: var(--size-display);
  line-height: 0.94;
}

h2 {
  margin: 0 0 16px;
  font-size: var(--size-section-title);
  line-height: 1.04;
}

h3 {
  margin: 0;
  font-size: var(--size-card-title);
  line-height: 1.08;
}

.intro {
  max-width: 620px;
  margin: 24px 0 0;
  color: var(--muted);
  font-size: var(--size-lead);
  line-height: 1.48;
}

.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}

.btn {
  display: inline-flex;
  min-height: 50px;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 12px 20px;
  font-weight: 900;
}

.btn-primary {
  color: white;
  background: var(--orange);
  box-shadow: 0 12px 26px rgba(242, 106, 34, 0.24);
}

.btn-ghost {
  color: var(--forest);
  background: rgba(255, 248, 239, 0.64);
  box-shadow: inset 0 0 0 2px var(--olive);
}

.hero-card {
  position: relative;
  margin: 0;
  overflow: hidden;
  min-height: 560px;
  border-radius: 28px;
  background: var(--sage);
  box-shadow: var(--shadow);
}

.hero-card img {
  display: block;
  width: 100%;
  height: 560px;
  object-fit: cover;
  object-position: center center;
}

.hero-card figcaption {
  position: absolute;
  right: 18px;
  bottom: 18px;
  max-width: 210px;
  border: 2px dashed rgba(255, 255, 255, 0.82);
  border-radius: 999px;
  padding: 18px 20px;
  color: white;
  background: var(--orange);
  font-family: var(--font-script);
  font-size: 1.25rem;
  line-height: 1.08;
  text-align: center;
}

.detail-list,
.cta-panel {
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255, 248, 239, 0.78);
  box-shadow: 0 12px 36px rgba(62, 49, 33, 0.08);
}

.quote-section {
  margin: 0 0 54px;
  padding: clamp(22px, 4vw, 34px);
  border-left: 6px solid var(--orange);
  border-radius: 22px;
  background: rgba(255, 248, 239, 0.72);
  box-shadow: 0 12px 36px rgba(62, 49, 33, 0.08);
}

.quote-section blockquote {
  margin: 0;
  color: var(--olive);
  font-family: var(--font-script);
  font-size: clamp(1.9rem, 3.5vw, 3.05rem);
  line-height: 1.12;
}

.offer-overview {
  display: grid;
  grid-template-columns: minmax(300px, 0.9fr) minmax(320px, 1.1fr);
  gap: clamp(24px, 5vw, 52px);
  align-items: start;
  margin: 0 0 56px;
}

.offer-overview p {
  font-size: var(--size-body);
  line-height: 1.5;
}

.offer-steps {
  display: grid;
  gap: 14px;
}

.offer-steps article {
  display: grid;
  grid-template-columns: 44px 1fr;
  column-gap: 14px;
  row-gap: 4px;
  align-items: start;
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 18px;
  background: rgba(255, 248, 239, 0.78);
  box-shadow: 0 12px 36px rgba(62, 49, 33, 0.08);
}

.offer-steps span {
  grid-row: span 2;
  display: inline-flex;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  color: white;
  background: var(--orange);
  font-weight: 900;
}

.offer-steps strong {
  color: var(--forest);
  font-size: 1.25rem;
}

.offer-steps p {
  margin: 0;
  color: var(--muted);
  font-size: 1.08rem;
}

.audience-section {
  display: grid;
  grid-template-columns: minmax(300px, 0.9fr) minmax(320px, 1.1fr);
  gap: clamp(24px, 5vw, 52px);
  align-items: start;
  margin: 0 0 54px;
}

.audience-section p {
  font-size: var(--size-body);
  line-height: 1.5;
}

.audience-grid {
  display: grid;
  gap: 14px;
}

.audience-grid article {
  display: grid;
  gap: 3px;
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 18px 20px;
  background: rgba(255, 248, 239, 0.78);
  box-shadow: 0 12px 36px rgba(62, 49, 33, 0.08);
}

.audience-grid strong {
  color: var(--forest);
  font-size: 1.18rem;
}

.audience-grid span {
  color: var(--muted);
  font-size: 1.08rem;
}

.split-section {
  display: grid;
  grid-template-columns: minmax(300px, 1fr) minmax(280px, 0.72fr);
  gap: clamp(24px, 5vw, 52px);
  align-items: start;
  padding: 28px 0 70px;
}

.compact-section {
  padding-top: 0;
}

.split-section p,
.detail-list p {
  font-size: var(--size-body);
  line-height: 1.5;
}

.detail-list {
  padding: 26px;
}

.detail-list h2,
.contact-form h2 {
  font-size: clamp(1.75rem, 2.6vw, 2.25rem);
  line-height: 1.08;
}

.detail-list p {
  margin: 0;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}

.detail-list p:last-child {
  border-bottom: 0;
}

.course-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-bottom: 70px;
}

.course-cards-small {
  margin-bottom: 34px;
}

.course-card {
  display: block;
  min-height: 260px;
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 24px;
  background: rgba(255, 248, 239, 0.82);
  box-shadow: 0 12px 36px rgba(62, 49, 33, 0.08);
  transition: transform 160ms ease, box-shadow 160ms ease, border-color 160ms ease;
}

.course-card:hover,
.course-card:focus-visible {
  border-color: rgba(242, 106, 34, 0.48);
  box-shadow: 0 18px 44px rgba(62, 49, 33, 0.13);
  transform: translateY(-3px);
}

.course-card span {
  display: inline-flex;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  color: white;
  background: var(--olive);
  font-weight: 900;
}

.course-card h3 {
  margin: 22px 0 10px;
  color: var(--forest);
}

.course-card p {
  margin: 0;
  color: var(--muted);
  font-size: 1.08rem;
  line-height: 1.45;
}

.offer-detail-section {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
  margin: -34px 0 70px;
}

.offer-detail {
  scroll-margin-top: 110px;
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: clamp(22px, 4vw, 30px);
  background: rgba(255, 248, 239, 0.86);
  box-shadow: 0 12px 36px rgba(62, 49, 33, 0.08);
}

.course-detail {
  scroll-margin-top: 110px;
  border-top: 1px solid var(--line);
}

.offer-detail p {
  font-size: var(--size-body);
  line-height: 1.5;
}

.text-link {
  display: inline-flex;
  margin-top: 8px;
  color: var(--orange);
  font-weight: 900;
}

.muted {
  background: rgba(220, 229, 211, 0.48);
}

.small {
  color: var(--muted);
  font-size: 1rem !important;
}

.contact-layout {
  display: grid;
  grid-template-columns: minmax(340px, 1.15fr) minmax(280px, 0.85fr);
  gap: clamp(24px, 5vw, 52px);
  align-items: start;
  padding: 28px 0 34px;
}

.contact-intro-card,
.image-text-section {
  display: grid;
  grid-template-columns: minmax(300px, 1fr) minmax(260px, 0.72fr);
  gap: clamp(22px, 4vw, 44px);
  align-items: center;
  margin: 0 0 28px;
  border: 1px solid var(--line);
  border-radius: 26px;
  padding: clamp(22px, 4vw, 34px);
  background: rgba(255, 248, 239, 0.78);
  box-shadow: 0 12px 36px rgba(62, 49, 33, 0.08);
}

.image-text-section {
  grid-template-columns: minmax(260px, 0.85fr) minmax(300px, 1fr);
  margin-bottom: 72px;
}

.contact-intro-card p,
.image-text-section p {
  font-size: var(--size-body);
  line-height: 1.48;
}

.mini-photo,
.image-card {
  margin: 0;
  overflow: hidden;
  border-radius: 22px;
  background: var(--sage);
}

.mini-photo img,
.image-card img {
  display: block;
  width: 100%;
  height: 280px;
  object-fit: cover;
  object-position: center;
}

.image-card img {
  height: 380px;
}

.contact-form {
  display: grid;
  gap: 16px;
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: clamp(22px, 4vw, 34px);
  background: rgba(255, 248, 239, 0.86);
  box-shadow: 0 12px 36px rgba(62, 49, 33, 0.08);
}

.contact-form h2,
.contact-form p {
  margin: 0;
}

.contact-form label {
  display: grid;
  gap: 7px;
  color: var(--forest);
  font-size: 1rem;
  font-weight: 900;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
  width: 100%;
  border: 1px solid rgba(11, 48, 34, 0.22);
  border-radius: 14px;
  padding: 13px 14px;
  color: var(--text);
  background: white;
  font: 600 1rem/1.3 var(--font-sans);
}

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

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
  border-color: var(--orange);
  outline: 3px solid rgba(242, 106, 34, 0.18);
}

.cta-panel {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  margin-bottom: 72px;
  padding: clamp(24px, 4vw, 38px);
  background:
    linear-gradient(110deg, rgba(11, 48, 34, 0.96), rgba(95, 113, 58, 0.94)),
    var(--forest);
  color: white;
}

.cta-panel h2,
.cta-panel p {
  color: white;
}

.cta-panel h2 {
  font-family: var(--font-serif);
  font-size: var(--size-section-title);
}

.cta-panel p {
  margin: 0;
  font-size: 1.22rem;
}

.page {
  padding: 58px 0 72px;
}

.page-hero {
  max-width: 850px;
  margin-bottom: 24px;
}

.page-hero h1 {
  font-size: var(--size-page-title);
}

footer {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 28px clamp(18px, 5vw, 72px);
  color: white;
  background: var(--forest);
  font-weight: 900;
}

@media (max-width: 860px) {
  .topbar,
  footer,
  .cta-panel {
    align-items: flex-start;
    flex-direction: column;
  }

  nav {
    justify-content: flex-start;
  }

  .hero-section,
  .contact-layout,
  .contact-intro-card,
  .image-text-section,
  .offer-overview,
  .audience-section,
  .split-section {
    grid-template-columns: 1fr;
  }

  .hero-section {
    min-height: auto;
  }

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

  .offer-detail-section {
    grid-template-columns: 1fr;
    margin-top: -36px;
  }
}

@media (max-width: 560px) {
  main {
    width: min(100% - 20px, 1120px);
  }

  .course-cards {
    grid-template-columns: 1fr;
  }

  .offer-steps article {
    grid-template-columns: 38px 1fr;
    padding: 16px;
  }

  .offer-steps span {
    width: 38px;
    height: 38px;
  }

  .hero-card,
  .hero-card img {
    min-height: 420px;
    height: 420px;
  }

  .mini-photo img,
  .image-card img {
    height: 260px;
  }

  .hero-card figcaption {
    right: 12px;
    bottom: 12px;
    max-width: 170px;
    font-size: 1.1rem;
  }
}
