:root {
  --ink: #18211f;
  --muted: #5d6863;
  --paper: #fbf8f1;
  --cream: #f3eadb;
  --white: #ffffff;
  --teal: #1d7a77;
  --teal-dark: #115552;
  --terracotta: #bb5c3d;
  --gold: #d6a033;
  --line: rgba(24, 33, 31, 0.14);
  --shadow: 0 20px 60px rgba(24, 33, 31, 0.14);
  --radius: 8px;
  --header-height: 76px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.6;
}

body,
button,
input,
textarea {
  font: inherit;
}

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

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

.site-header {
  position: fixed;
  z-index: 20;
  top: 0;
  left: 0;
  width: 100%;
  min-height: var(--header-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 16px clamp(18px, 5vw, 64px);
  color: var(--white);
  transition: background 180ms ease, box-shadow 180ms ease, color 180ms ease;
}

.site-header.is-scrolled {
  background: rgba(251, 248, 241, 0.95);
  box-shadow: 0 8px 24px rgba(24, 33, 31, 0.08);
  color: var(--ink);
  backdrop-filter: blur(16px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 750;
  white-space: nowrap;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border: 1px solid currentColor;
  border-radius: 50%;
  font-size: 0.78rem;
  line-height: 1;
}

.main-nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: clamp(12px, 2.8vw, 34px);
  font-size: 0.95rem;
  font-weight: 650;
}

.main-nav a {
  position: relative;
  padding: 8px 0;
}

.main-nav a::after {
  position: absolute;
  left: 0;
  bottom: 2px;
  width: 100%;
  height: 2px;
  background: currentColor;
  content: "";
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 160ms ease;
}

.main-nav a:hover::after,
.main-nav a:focus-visible::after,
.main-nav a.is-active::after {
  transform: scaleX(1);
}

.hero {
  position: relative;
  min-height: 92vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  padding: calc(var(--header-height) + 34px) clamp(18px, 5vw, 64px) 84px;
  color: var(--white);
}

.hero-image,
.hero-overlay {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero-image {
  object-fit: cover;
  object-position: center;
}

.hero-overlay {
  background:
    linear-gradient(90deg, rgba(14, 24, 22, 0.88) 0%, rgba(14, 24, 22, 0.64) 42%, rgba(14, 24, 22, 0.24) 100%),
    linear-gradient(0deg, rgba(24, 33, 31, 0.46), rgba(24, 33, 31, 0.08));
}

.hero-content {
  position: relative;
  z-index: 1;
  width: min(720px, 100%);
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--terracotta);
  font-size: 0.79rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.hero .eyebrow {
  color: #f0c15b;
}

h1,
h2,
h3,
p {
  overflow-wrap: break-word;
}

h1,
h2,
h3 {
  margin: 0;
  line-height: 1.08;
}

h1,
h2 {
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 700;
}

h1 {
  max-width: 720px;
  font-size: 5.8rem;
}

h2 {
  font-size: 3.4rem;
}

h3 {
  font-size: 1.28rem;
  font-weight: 760;
}

.hero-copy {
  max-width: 620px;
  margin: 24px 0 0;
  color: rgba(255, 255, 255, 0.88);
  font-size: 1.22rem;
}

.hero-actions,
.pricing-grid,
.subject-grid,
.contact-points {
  display: flex;
  flex-wrap: wrap;
}

.hero-actions {
  gap: 14px;
  margin-top: 34px;
}

.button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  border: 1px solid transparent;
  border-radius: var(--radius);
  padding: 12px 20px;
  font-weight: 780;
  line-height: 1.2;
  transition: transform 160ms ease, border-color 160ms ease, background 160ms ease;
}

.button:hover,
.button:focus-visible {
  transform: translateY(-2px);
}

.button-primary {
  background: var(--gold);
  color: #241a08;
}

.button-primary:hover,
.button-primary:focus-visible {
  background: #e0ad43;
}

.button-secondary {
  border-color: rgba(255, 255, 255, 0.62);
  color: var(--white);
}

.button-secondary:hover,
.button-secondary:focus-visible {
  background: rgba(255, 255, 255, 0.12);
}

.section {
  scroll-margin-top: var(--header-height);
  padding: clamp(74px, 11vw, 128px) clamp(18px, 5vw, 64px);
}

.section-inner {
  width: min(1120px, 100%);
  margin: 0 auto;
}

.section-heading {
  max-width: 760px;
}

.section-heading p:not(.eyebrow),
.contact-copy p {
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 1.1rem;
}

.services-section {
  background: var(--paper);
}

.subject-grid {
  gap: 18px;
  margin-top: 42px;
}

.subject-card,
.price-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: 0 14px 42px rgba(24, 33, 31, 0.07);
}

.subject-card {
  flex: 1 1 270px;
  min-height: 280px;
  padding: 28px;
}

.subject-icon {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  margin-bottom: 24px;
  border-radius: 50%;
  background: rgba(29, 122, 119, 0.1);
  color: var(--teal-dark);
  font-size: 1.55rem;
  font-weight: 800;
}

.subject-card p,
.price-card p,
.step p {
  margin: 14px 0 0;
  color: var(--muted);
}

.about-section {
  background: var(--cream);
}

.about-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(300px, 1fr);
  gap: clamp(34px, 7vw, 86px);
  align-items: start;
}

.steps {
  display: grid;
  gap: 18px;
}

.step {
  display: grid;
  grid-template-columns: 54px 1fr;
  gap: 18px;
  align-items: start;
  padding: 24px;
  border-left: 4px solid var(--teal);
  background: rgba(255, 255, 255, 0.62);
  box-shadow: 0 8px 30px rgba(24, 33, 31, 0.06);
}

.step-number {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--ink);
  color: var(--white);
  font-weight: 800;
}

.pricing-section {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.7), rgba(255, 255, 255, 0)),
    var(--paper);
}

.pricing-heading {
  margin: 0 auto;
  text-align: center;
}

.pricing-grid {
  justify-content: center;
  gap: 20px;
  margin-top: 42px;
}

.price-card {
  flex: 1 1 310px;
  max-width: 460px;
  min-height: 330px;
  padding: 30px;
}

.featured-price {
  border-color: rgba(29, 122, 119, 0.4);
  box-shadow: var(--shadow);
}

.price-label {
  display: inline-flex;
  margin: 0 0 18px;
  border-radius: 999px;
  background: rgba(187, 92, 61, 0.12);
  color: #8c3f29;
  padding: 6px 11px;
  font-size: 0.82rem;
  font-weight: 800;
}

.price {
  margin: 22px 0 0;
}

.price span {
  color: var(--teal-dark);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 4.4rem;
  font-weight: 700;
  line-height: 1;
}

.guarantee {
  width: min(820px, 100%);
  margin: 34px auto 0;
  border: 1px solid rgba(214, 160, 51, 0.45);
  border-radius: var(--radius);
  background: #fff7df;
  padding: 20px 24px;
  color: #4d3a11;
}

.contact-section {
  background: #143d3a;
  color: var(--white);
}

.contact-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(320px, 1fr);
  gap: clamp(34px, 7vw, 82px);
  align-items: start;
}

.contact-copy {
  position: sticky;
  top: calc(var(--header-height) + 36px);
}

.contact-copy p {
  color: rgba(255, 255, 255, 0.78);
}

.contact-points {
  gap: 10px;
  margin-top: 26px;
}

.contact-points span {
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 999px;
  padding: 8px 12px;
  color: rgba(255, 255, 255, 0.86);
  font-size: 0.92rem;
}

.contact-form {
  display: grid;
  gap: 12px;
  border-radius: var(--radius);
  background: var(--white);
  padding: clamp(22px, 4vw, 34px);
  color: var(--ink);
  box-shadow: var(--shadow);
}

.contact-form label {
  font-size: 0.92rem;
  font-weight: 780;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  border: 1px solid rgba(24, 33, 31, 0.2);
  border-radius: var(--radius);
  background: #fffdf8;
  color: var(--ink);
  padding: 12px 14px;
  outline: none;
  transition: border-color 160ms ease, box-shadow 160ms ease;
}

.contact-form textarea {
  resize: vertical;
}

.contact-form input:focus,
.contact-form textarea:focus {
  border-color: var(--teal);
  box-shadow: 0 0 0 4px rgba(29, 122, 119, 0.14);
}

.form-button {
  width: 100%;
  margin-top: 10px;
  border: 0;
  cursor: pointer;
}

.form-status {
  min-height: 1.5em;
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
}

.site-footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 14px;
  padding: 28px clamp(18px, 5vw, 64px);
  background: var(--ink);
  color: rgba(255, 255, 255, 0.76);
}

.site-footer p {
  margin: 0;
}

.site-footer p:first-child {
  color: var(--white);
  font-weight: 780;
}

@media (max-width: 980px) {
  h1 {
    font-size: 4.7rem;
  }

  h2 {
    font-size: 2.8rem;
  }
}

@media (max-width: 760px) {
  :root {
    --header-height: 104px;
  }

  .site-header {
    align-items: flex-start;
    flex-direction: column;
    gap: 10px;
    padding: 14px 18px;
  }

  .main-nav {
    width: 100%;
    justify-content: space-between;
    gap: 8px;
    font-size: 0.9rem;
  }

  .hero {
    min-height: 88vh;
    padding-bottom: 58px;
  }

  .hero-overlay {
    background:
      linear-gradient(90deg, rgba(14, 24, 22, 0.9), rgba(14, 24, 22, 0.56)),
      linear-gradient(0deg, rgba(24, 33, 31, 0.36), rgba(24, 33, 31, 0.22));
  }

  h1 {
    max-width: 100%;
    font-size: 3.7rem;
  }

  h2 {
    font-size: 2.35rem;
  }

  .hero-copy,
  .section-heading p:not(.eyebrow),
  .contact-copy p {
    font-size: 1.03rem;
  }

  .price span {
    font-size: 3.6rem;
  }

  .hero-actions,
  .button {
    width: 100%;
  }

  .about-layout,
  .contact-layout {
    grid-template-columns: 1fr;
  }

  .contact-copy {
    position: static;
  }

  .step {
    grid-template-columns: 44px 1fr;
    padding: 20px;
  }

  .step-number {
    width: 40px;
    height: 40px;
  }
}

@media (max-width: 430px) {
  h1 {
    font-size: 3.05rem;
  }

  h2 {
    font-size: 2.05rem;
  }

  .main-nav {
    flex-wrap: wrap;
    justify-content: flex-start;
  }

  .main-nav a {
    padding-right: 12px;
  }

  .subject-card,
  .price-card,
  .contact-form {
    padding: 22px;
  }
}
