:root {
  --ink: #1f2a34;
  --muted: #687580;
  --line: #dce5e2;
  --paper: #fbfcfa;
  --soft: #eef6f4;
  --teal: #168a83;
  --coral: #f27c5b;
  --blue: #40568e;
  --yellow: #f7c44f;
  --shadow: 0 18px 45px rgba(31, 42, 52, 0.12);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: Inter, "Segoe UI", Arial, sans-serif;
  color: var(--ink);
  background: var(--paper);
  line-height: 1.5;
}

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

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 18px clamp(18px, 5vw, 72px);
  background: rgba(251, 252, 250, 0.92);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(14px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
}

.brand-mark {
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  color: white;
  background: var(--ink);
  border-radius: 8px;
}

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

.main-nav a {
  padding: 9px 12px;
  color: var(--muted);
  border-radius: 8px;
}

.main-nav a:hover,
.main-nav a.active {
  color: var(--ink);
  background: var(--soft);
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(420px, 1fr);
  gap: clamp(24px, 4vw, 52px);
  align-items: center;
  padding: clamp(32px, 6vw, 72px) clamp(18px, 5vw, 72px) 36px;
}

.hero-copy {
  max-width: 680px;
}

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

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 20px;
  font-size: clamp(2.35rem, 5vw, 4.35rem);
  line-height: 1;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 14px;
  font-size: clamp(1.8rem, 3.5vw, 3rem);
  line-height: 1.05;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 10px;
  font-size: 1.12rem;
}

.lead {
  max-width: 620px;
  color: var(--muted);
  font-size: 1.12rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 18px;
  border: 1px solid var(--ink);
  border-radius: 8px;
  font-weight: 800;
  cursor: pointer;
}

.button.primary {
  color: white;
  background: var(--ink);
}

.button.ghost {
  color: var(--ink);
  background: white;
}

.hero-image {
  width: 100%;
  min-height: 360px;
  max-height: 620px;
  object-fit: cover;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.metrics,
.section,
.page-head,
.contact-layout {
  padding-inline: clamp(18px, 5vw, 72px);
}

.metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  margin-top: 16px;
  background: var(--line);
  border-block: 1px solid var(--line);
}

.metrics div {
  padding: 24px;
  background: white;
}

.metrics strong {
  display: block;
  color: var(--coral);
  font-size: 2rem;
}

.metrics span,
.section-heading p,
.page-head p,
.contact-copy p {
  color: var(--muted);
}

.section {
  padding-top: clamp(56px, 8vw, 96px);
  padding-bottom: clamp(56px, 8vw, 96px);
}

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

.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.steps article,
.tutor-card,
.review,
.feedback-form {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
}

.steps article {
  padding: 24px;
}

.steps span {
  display: grid;
  width: 38px;
  height: 38px;
  margin-bottom: 28px;
  place-items: center;
  color: white;
  background: var(--teal);
  border-radius: 8px;
  font-weight: 800;
}

.split-band {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(320px, 1.2fr);
  gap: 28px;
  align-items: start;
  background: #eef2fb;
}

.audience-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

.audience-grid div {
  padding: 18px;
  border: 1px solid #cfd9ef;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.72);
  font-weight: 800;
}

.page-head {
  max-width: 920px;
  padding-top: 56px;
  padding-bottom: 28px;
}

.toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding: 0 clamp(18px, 5vw, 72px) 28px;
}

.filter {
  min-height: 42px;
  padding: 0 14px;
  color: var(--muted);
  background: white;
  border: 1px solid var(--line);
  border-radius: 8px;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}

.filter.active,
.filter:hover {
  color: white;
  background: var(--teal);
  border-color: var(--teal);
}

.tutor-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  padding: 0 clamp(18px, 5vw, 72px) 72px;
}

.tutor-card {
  display: grid;
  grid-template-columns: 180px minmax(0, 1fr);
  overflow: hidden;
}

.tutor-card[hidden] {
  display: none;
}

.tutor-card img {
  width: 100%;
  height: 100%;
  min-height: 260px;
  object-fit: cover;
}

.tutor-content {
  padding: 22px;
}

.tutor-topline {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: start;
}

.tutor-topline h2 {
  margin-bottom: 4px;
  font-size: 1.35rem;
  line-height: 1.16;
}

.tutor-topline span {
  padding: 4px 8px;
  color: white;
  background: var(--coral);
  border-radius: 8px;
  font-weight: 800;
}

.subject {
  color: var(--blue);
  font-weight: 800;
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
}

.tags span {
  padding: 6px 9px;
  color: var(--muted);
  background: var(--soft);
  border-radius: 8px;
  font-size: 0.9rem;
  font-weight: 700;
}

.review-list {
  display: grid;
  gap: 16px;
  padding: 0 clamp(18px, 5vw, 72px) 72px;
}

.review {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr) 230px;
  gap: 24px;
  align-items: center;
  padding: 18px;
}

.review div {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
}

.review img {
  grid-row: span 2;
  width: 72px;
  height: 72px;
  object-fit: cover;
  border-radius: 8px;
}

.review span,
.review p {
  color: var(--muted);
}

blockquote {
  margin: 0;
  font-size: 1.08rem;
}

.contact-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(340px, 1.15fr);
  gap: clamp(24px, 6vw, 72px);
  align-items: start;
  padding-top: 56px;
  padding-bottom: 72px;
}

.contact-copy {
  max-width: 620px;
}

.check-list {
  display: grid;
  gap: 12px;
  margin: 28px 0 0;
  padding: 0;
  list-style: none;
}

.check-list li {
  padding: 14px 16px;
  border-left: 5px solid var(--yellow);
  background: white;
}

.feedback-form {
  display: grid;
  gap: 18px;
  padding: clamp(20px, 4vw, 32px);
  box-shadow: var(--shadow);
}

label {
  display: grid;
  gap: 8px;
  color: var(--ink);
  font-weight: 800;
}

input,
select,
textarea {
  width: 100%;
  min-height: 48px;
  padding: 12px 13px;
  color: var(--ink);
  background: #f8faf9;
  border: 1px solid var(--line);
  border-radius: 8px;
  font: inherit;
}

textarea {
  resize: vertical;
}

input:focus,
select:focus,
textarea:focus {
  outline: 3px solid rgba(22, 138, 131, 0.18);
  border-color: var(--teal);
}

.form-status {
  min-height: 24px;
  margin: 0;
  color: var(--teal);
  font-weight: 800;
}

.form-status.error {
  color: #b44832;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 28px clamp(18px, 5vw, 72px);
  color: var(--muted);
  border-top: 1px solid var(--line);
}

.site-footer a,
.site-footer span:first-child {
  color: var(--ink);
  font-weight: 800;
}

@media (max-width: 1080px) {
  .hero,
  .split-band,
  .contact-layout {
    grid-template-columns: 1fr;
  }

  .hero-image {
    min-height: 300px;
  }

  .steps,
  .tutor-grid {
    grid-template-columns: 1fr;
  }

  .review {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 680px) {
  .site-header {
    align-items: flex-start;
    flex-direction: column;
  }

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

  .metrics,
  .audience-grid {
    grid-template-columns: 1fr;
  }

  .tutor-card {
    grid-template-columns: 1fr;
  }

  .tutor-card img {
    height: 260px;
  }

  .site-footer {
    flex-direction: column;
  }
}
