:root {
  --background: #f6f1e8;
  --surface: #fffdf9;
  --text: #2a2622;
  --muted: #6f665e;
  --accent: #8a4f3d;
  --border: #ddd3c8;
  --max-width: 1120px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family:
    Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: var(--background);
  color: var(--text);
}

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

a {
  color: inherit;
}

.site-header,
main,
.site-footer {
  width: min(var(--max-width), calc(100% - 2rem));
  margin-inline: auto;
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.5rem 0;
}

.site-header .site-nav {
  display: flex;
  gap: 1.25rem;
  margin-left: auto;
}

.site-header a {
  text-decoration: none;
}

.logo {
  flex: 0 0 auto;
}

.logo img {
  width: 84px;
  height: auto;
}

.site-header .site-nav a {
  padding: 0.35rem 0;
  font-weight: 600;
}

.hero {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  align-items: center;
  gap: 3rem;
  padding: 5rem 0;
}

.hero h1 {
  max-width: 8ch;
  margin: 0.5rem 0 1.25rem;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(3.5rem, 8vw, 7rem);
  line-height: 0.92;
}

.hero p {
  max-width: 36rem;
  font-size: 1.125rem;
  line-height: 1.7;
  color: var(--muted);
}

.hero img {
  width: 100%;
  height: 560px;
  object-fit: cover;
  object-position: center 20%;
  border-radius: 28px;
}

.eyebrow {
  margin: 0;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
}

.button {
  display: inline-block;
  margin-top: 1rem;
  padding: 0.9rem 1.25rem;
  border-radius: 999px;
  background: var(--text);
  color: white;
  text-decoration: none;
  font-weight: 600;
}

.about,
.lessons,
.student-story,
.contact {
  padding: 4rem 0;
}

.about h2,
.lessons h2,
.student-story h2,
.contact h2 {
  max-width: 24ch;
  margin: 0.5rem 0 1.5rem;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2.25rem, 5vw, 4rem);
  line-height: 1;
}

.about > p,
.lessons > p,
.student-story > p,
.contact > p {
  max-width: 100%;
  line-height: 1.8;
  color: var(--muted);
}

.lesson-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}

.lesson-card {
  padding: 2rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 20px;
}

.lesson-card h3 {
  margin-top: 0;
  font-size: 1.5rem;
}

.lesson-card p {
  line-height: 1.7;
  color: var(--muted);
}

.pricing-block {
  margin-top: 1.5rem;
}

.lesson-card--group .pricing-block {
  margin-top: 3.2rem;
}

.pricing-title {
  margin: 0 0 0.75rem;
  font-weight: 700;
  color: var(--text);
}

.pricing-row {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
}

.pricing-column {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  min-width: 8.5rem;
}

.pricing-label {
  font-weight: 700;
  color: var(--text);
}

.pricing-value {
  color: var(--muted);
}

.student-story {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 3rem;
}

.student-story img {
  width: 100%;
  height: 460px;
  object-fit: cover;
  border-radius: 24px;
}

.contact {
  text-align: center;
}

.contact h2,
.contact p {
  margin-inline: auto;
}

.site-footer {
  padding: 2rem 0 3rem;
  border-top: 1px solid var(--border);
  color: var(--muted);
}

@media (max-width: 800px) {
  .site-header {
    align-items: flex-start;
    gap: 1rem;
  }

  .site-header .site-nav {
    flex-wrap: wrap;
    justify-content: flex-end;
  }

  .hero,
  .student-story,
  .lesson-grid {
    grid-template-columns: 1fr;
  }

  .lesson-card--group .pricing-block {
    margin-top: 1.5rem;
  }

  .hero {
    padding-top: 3rem;
  }

  .hero img,
  .student-story img {
    height: 420px;
  }
}

@media (max-width: 520px) {
  .site-header .site-nav {
    margin-left: auto;
    justify-content: flex-start;
    flex-wrap: wrap;
  }

  .logo img {
    width: 60px;
  }

  .hero h1 {
    font-size: 3.4rem;
  }

  .hero img,
  .student-story img {
    height: 340px;
  }
}
