:root {
  --bg: #f7f7f2;
  --paper: #ffffff;
  --ink: #1f2a1f;
  --muted: #4f5a4f;
  --accent: #17624a;
  --accent-2: #d6b46e;
  --line: #dfe4dc;
  --radius: 16px;
  --shadow: 0 12px 30px rgba(31, 42, 31, 0.08);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Manrope", sans-serif;
  color: var(--ink);
  background: linear-gradient(180deg, #f4f8f2 0%, #f7f7f2 22%, #ffffff 100%);
  line-height: 1.55;
}

h1,
h2,
h3 {
  font-family: "DM Serif Display", serif;
  margin: 0 0 12px;
  line-height: 1.2;
}

a {
  color: var(--accent);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

.container {
  width: min(1120px, 92%);
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(247, 247, 242, 0.9);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(8px);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 72px;
}

.brand {
  font-family: "DM Serif Display", serif;
  font-size: 1.35rem;
  color: var(--ink);
}

.nav {
  display: flex;
  gap: 20px;
  font-weight: 600;
}

.hero {
  padding: 52px 0 32px;
}

.hero-grid {
  display: grid;
  gap: 28px;
  align-items: center;
  grid-template-columns: 1.15fr 0.85fr;
}

.kicker {
  display: inline-block;
  margin-bottom: 10px;
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  background: #e8f1eb;
  color: var(--accent);
}

h1 {
  font-size: clamp(2rem, 5vw, 3.35rem);
  max-width: 14ch;
}

.lead {
  font-size: 1.05rem;
  color: var(--muted);
  max-width: 60ch;
}

.hero-img {
  width: 100%;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.btn {
  display: inline-block;
  margin-top: 12px;
  border: 0;
  border-radius: 12px;
  background: var(--accent);
  color: #fff;
  padding: 12px 18px;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.2s ease, background 0.2s ease;
}

.btn:hover {
  transform: translateY(-1px);
  background: #114f3b;
  text-decoration: none;
}

.btn.full {
  width: 100%;
}

.section {
  padding: 48px 0;
}

.soft-bg {
  background: radial-gradient(circle at 15% 0%, #f1f6ee, #f9faf7 48%, #ffffff 100%);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.section-intro {
  color: var(--muted);
  margin-top: 0;
}

.article-grid,
.course-grid,
.reviews-grid {
  display: grid;
  gap: 18px;
}

.article-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 22px;
}

.card,
.course-card,
.review,
.form-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.card {
  overflow: hidden;
}

.card img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  border-bottom: 1px solid var(--line);
}

.card h3,
.card p {
  padding: 0 16px;
}

.card h3 {
  margin-top: 14px;
}

.card p {
  margin-bottom: 16px;
  color: var(--muted);
}

.course-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 20px;
}

.course-card {
  overflow: hidden;
  padding: 0 0 16px;
}

.course-card img {
  width: 100%;
  height: 170px;
  object-fit: cover;
  border-bottom: 1px solid var(--line);
  margin-bottom: 8px;
}

.course-card h3,
.course-card p {
  padding: 0 16px;
}

.price {
  margin: 12px 0 0;
  font-size: 1.2rem;
  font-weight: 800;
  color: #7a4e0b;
}

.two-col {
  display: grid;
  gap: 20px;
  grid-template-columns: 1fr 1fr;
  align-items: start;
}

.check-list {
  margin: 12px 0 0;
  padding-left: 18px;
}

.form-card {
  padding: 18px;
}

label {
  display: block;
  margin: 10px 0 6px;
  font-weight: 600;
}

input,
textarea {
  width: 100%;
  padding: 11px 12px;
  border: 1px solid #c7d1c7;
  border-radius: 10px;
  font: inherit;
}

textarea {
  resize: vertical;
}

.consent {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  margin-top: 12px;
  font-weight: 500;
}

.consent input {
  width: auto;
  margin-top: 3px;
}

.reviews-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin: 18px 0 24px;
}

.review {
  padding: 14px;
}

.review p {
  margin: 0;
  color: var(--muted);
}

.review-form {
  max-width: 680px;
}

.popup {
  position: fixed;
  inset: 0;
  display: none;
  place-items: center;
  background: rgba(12, 18, 12, 0.4);
  padding: 16px;
}

.popup.show {
  display: grid;
}

.popup-card {
  width: min(500px, 100%);
  background: #fff;
  border-radius: var(--radius);
  padding: 20px;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  text-align: center;
}

.site-footer {
  padding: 24px 0;
  background: #eff2eb;
  border-top: 1px solid var(--line);
}

.footer-grid {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}

.footer-brand {
  font-family: "DM Serif Display", serif;
  font-size: 1.2rem;
  margin: 0;
}

.thank-body {
  min-height: 100vh;
  display: grid;
  place-items: center;
}

.thank-wrap {
  width: min(760px, 92%);
}

.thank-card {
  text-align: center;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 28px;
}

.legal {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 22px;
}

.legal h2 {
  margin-top: 20px;
}

@media (max-width: 960px) {
  .hero-grid,
  .two-col,
  .article-grid,
  .course-grid,
  .reviews-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 700px) {
  .nav {
    display: none;
  }

  .hero-grid,
  .two-col,
  .article-grid,
  .course-grid,
  .reviews-grid {
    grid-template-columns: 1fr;
  }

  .section {
    padding: 36px 0;
  }
}
