:root {
  --ink: #172126;
  --muted: #5d6a70;
  --line: #dce5e4;
  --paper: #fbfcf8;
  --white: #ffffff;
  --green: #166b58;
  --green-dark: #0f4d41;
  --gold: #d79d32;
  --blue: #2c6f9f;
  --shadow: 0 18px 50px rgba(23, 33, 38, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

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

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

.topbar {
  align-items: center;
  background: rgba(251, 252, 248, 0.92);
  border-bottom: 1px solid rgba(220, 229, 228, 0.8);
  display: flex;
  justify-content: space-between;
  left: 0;
  padding: 14px clamp(18px, 4vw, 48px);
  position: sticky;
  right: 0;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(16px);
}

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

.brand-mark {
  align-items: center;
  background: var(--green);
  border-radius: 8px;
  color: white;
  display: inline-flex;
  font-weight: 800;
  height: 38px;
  justify-content: center;
  width: 38px;
}

.brand strong,
.brand small {
  display: block;
}

.brand span:last-child {
  min-width: 0;
}

.brand small {
  color: var(--muted);
  font-size: 12px;
  margin-top: 2px;
  max-width: min(52vw, 420px);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

nav {
  align-items: center;
  display: flex;
  gap: clamp(12px, 3vw, 28px);
  font-size: 14px;
  font-weight: 700;
}

.hero {
  align-items: stretch;
  display: grid;
  gap: 28px;
  grid-template-columns: minmax(0, 1.2fr) minmax(280px, 0.8fr);
  min-height: calc(100vh - 68px);
  padding: clamp(52px, 8vw, 92px) clamp(18px, 5vw, 72px) 42px;
}

.hero-copy {
  align-self: center;
  max-width: 760px;
}

.eyebrow {
  color: var(--blue);
  font-size: 13px;
  font-weight: 800;
  margin: 0 0 12px;
  text-transform: uppercase;
}

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

h1 {
  font-size: clamp(42px, 7vw, 78px);
  line-height: 0.96;
  margin-bottom: 22px;
}

h2 {
  font-size: clamp(28px, 4vw, 48px);
  line-height: 1.04;
  margin-bottom: 14px;
}

h3 {
  font-size: 42px;
  line-height: 1;
  margin-bottom: 16px;
}

h3 span {
  color: var(--muted);
  font-size: 17px;
  font-weight: 700;
}

.intro {
  color: var(--muted);
  font-size: clamp(17px, 2vw, 21px);
  line-height: 1.55;
  max-width: 640px;
}

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

.button {
  align-items: center;
  border: 1px solid transparent;
  border-radius: 8px;
  cursor: pointer;
  display: inline-flex;
  font: inherit;
  font-weight: 800;
  justify-content: center;
  min-height: 48px;
  padding: 0 18px;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.button:hover {
  transform: translateY(-1px);
}

.button.primary {
  background: var(--green);
  box-shadow: 0 12px 24px rgba(22, 107, 88, 0.22);
  color: white;
}

.button.primary:hover {
  background: var(--green-dark);
}

.button.secondary {
  background: var(--white);
  border-color: var(--line);
  color: var(--ink);
}

.button.full {
  width: 100%;
}

.booking-summary {
  align-self: end;
  background:
    linear-gradient(145deg, rgba(22, 107, 88, 0.94), rgba(15, 77, 65, 0.96)),
    url("https://images.unsplash.com/photo-1516321318423-f06f85e504b3?auto=format&fit=crop&w=1200&q=80");
  background-position: center;
  background-size: cover;
  border-radius: 8px;
  box-shadow: var(--shadow);
  color: white;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 420px;
  overflow: hidden;
  padding: clamp(24px, 4vw, 36px);
}

.summary-label {
  background: rgba(255, 255, 255, 0.16);
  border-radius: 999px;
  display: inline-flex;
  font-size: 12px;
  font-weight: 800;
  margin-bottom: 16px;
  padding: 7px 11px;
  text-transform: uppercase;
}

.booking-summary strong {
  display: block;
  font-size: clamp(28px, 4vw, 46px);
  line-height: 1.02;
  max-width: 360px;
}

.booking-summary p {
  color: rgba(255, 255, 255, 0.82);
  font-size: 17px;
  line-height: 1.5;
  margin: 16px 0 0;
}

.summary-price span {
  display: block;
  font-size: 64px;
  font-weight: 800;
  line-height: 1;
}

.summary-price small {
  color: rgba(255, 255, 255, 0.78);
  font-size: 15px;
  font-weight: 700;
}

.section {
  padding: 76px clamp(18px, 5vw, 72px);
}

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

.pricing-grid {
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 34px;
}

.price-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
  display: flex;
  flex-direction: column;
  gap: 24px;
  justify-content: space-between;
  min-height: 440px;
  padding: 24px;
}

.price-card.featured {
  border: 2px solid var(--green);
  box-shadow: var(--shadow);
  transform: translateY(-8px);
}

.badge {
  align-self: flex-start;
  background: rgba(215, 157, 50, 0.14);
  border: 1px solid rgba(215, 157, 50, 0.34);
  border-radius: 999px;
  color: #7a500b;
  font-size: 12px;
  font-weight: 800;
  padding: 7px 11px;
}

.plan-label {
  color: var(--green);
  font-weight: 800;
  margin-bottom: 14px;
}

.price-card p {
  color: var(--muted);
  line-height: 1.55;
}

ul {
  color: var(--ink);
  display: grid;
  gap: 10px;
  list-style: none;
  margin: 0;
  padding: 0;
}

li {
  align-items: center;
  display: flex;
  gap: 9px;
}

li::before {
  background: var(--gold);
  border-radius: 99px;
  content: "";
  flex: 0 0 auto;
  height: 8px;
  width: 8px;
}

.booking-band {
  background: #e8f0ee;
  padding: 76px clamp(18px, 5vw, 72px);
}

.about-band {
  background: var(--white);
  border-top: 1px solid var(--line);
  padding: 72px clamp(18px, 5vw, 72px);
}

.about-panel {
  align-items: center;
  display: grid;
  gap: clamp(24px, 5vw, 54px);
  grid-template-columns: minmax(180px, 320px) minmax(0, 1fr);
  margin: 0 auto;
  max-width: 1040px;
}

.tutor-photo-frame {
  display: flex;
  justify-content: center;
  width: 100%;
}

.tutor-photo {
  aspect-ratio: 4 / 5;
  border-radius: 8px;
  box-shadow: var(--shadow);
  display: block;
  height: auto;
  object-fit: cover;
  object-position: center top;
  width: 100%;
}

.about-panel p:not(.eyebrow) {
  color: var(--muted);
  font-size: 18px;
  line-height: 1.6;
  margin-bottom: 22px;
  max-width: 680px;
}

.bio-details {
  background: #f8faf7;
  border: 1px solid var(--line);
  border-radius: 8px;
  margin: 0 0 20px;
  max-width: 720px;
  padding: 16px 18px;
}

.bio-details summary {
  color: var(--green-dark);
  font-weight: 800;
}

.bio-details p {
  color: var(--muted);
  font-size: 16px;
  line-height: 1.55;
  margin: 12px 0 0;
}

.subject-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  max-width: 720px;
}

.subject-list span {
  background: #f8faf7;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--green-dark);
  font-size: 14px;
  font-weight: 800;
  padding: 9px 12px;
}

.booking-panel {
  display: grid;
  gap: 32px;
  grid-template-columns: minmax(0, 0.8fr) minmax(320px, 1fr);
  margin: 0 auto;
  max-width: 1180px;
}

.booking-copy {
  align-self: center;
}

.booking-copy p {
  color: var(--muted);
  font-size: 17px;
  line-height: 1.55;
}

.booking-form {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
  display: grid;
  gap: 18px;
  padding: clamp(20px, 4vw, 30px);
}

label,
legend {
  color: var(--ink);
  font-size: 14px;
  font-weight: 800;
}

input,
select {
  appearance: none;
  background: #f8faf7;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  display: block;
  font: inherit;
  margin-top: 8px;
  min-height: 48px;
  padding: 0 13px;
  width: 100%;
}

fieldset {
  border: 0;
  margin: 0;
  padding: 0;
}

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

.booking-note {
  background: #f8faf7;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--muted);
  line-height: 1.5;
  margin: 0;
  padding: 14px;
}

.checkout-row {
  align-items: center;
  border-top: 1px solid var(--line);
  display: flex;
  gap: 16px;
  justify-content: space-between;
  padding-top: 18px;
}

.checkout-row span {
  color: var(--muted);
  display: block;
  font-size: 13px;
  font-weight: 700;
}

.checkout-row strong {
  display: block;
  font-size: 32px;
}

.total-price s {
  color: var(--muted);
  font-size: 22px;
  font-weight: 700;
  margin-right: 8px;
  text-decoration-thickness: 2px;
}

.two-column {
  display: grid;
  gap: 40px;
  grid-template-columns: minmax(260px, 0.8fr) minmax(0, 1.2fr);
}

.faq-list {
  display: grid;
  gap: 12px;
}

details {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 18px 20px;
}

summary {
  cursor: pointer;
  font-weight: 800;
}

details p {
  color: var(--muted);
  line-height: 1.55;
  margin: 12px 0 0;
}

footer {
  align-items: center;
  border-top: 1px solid var(--line);
  color: var(--muted);
  display: flex;
  font-size: 14px;
  font-weight: 700;
  justify-content: space-between;
  padding: 24px clamp(18px, 5vw, 72px);
}

footer a {
  color: var(--green);
}

.toast {
  background: var(--ink);
  border-radius: 8px;
  bottom: 18px;
  box-shadow: var(--shadow);
  color: white;
  left: 50%;
  max-width: calc(100vw - 36px);
  opacity: 0;
  padding: 13px 16px;
  position: fixed;
  transform: translate(-50%, 16px);
  transition: opacity 0.2s ease, transform 0.2s ease;
  z-index: 40;
}

.toast.show {
  opacity: 1;
  transform: translate(-50%, 0);
}

@media (max-width: 900px) {
  .hero,
  .pricing-grid,
  .about-panel,
  .booking-panel,
  .two-column {
    grid-template-columns: 1fr;
  }

  .about-panel {
    justify-items: center;
  }

  .about-panel > div {
    width: 100%;
  }

  .tutor-photo-frame {
    justify-self: center;
  }

  .tutor-photo {
    width: min(86vw, 360px);
  }

  .hero {
    min-height: auto;
  }

  .booking-summary {
    min-height: 340px;
  }

  .price-card.featured {
    transform: none;
  }
}

@media (max-width: 620px) {
  .about-band {
    padding: 56px 0;
  }

  .about-panel {
    align-items: center;
    display: flex;
    flex-direction: column;
    gap: 28px;
    max-width: none;
    width: 100%;
  }

  .about-panel > div {
    width: min(86vw, 360px);
  }

  .tutor-photo-frame {
    width: min(86vw, 360px);
  }

  .tutor-photo {
    width: 100%;
  }

  .about-panel h2 {
    font-size: 34px;
    line-height: 1.05;
  }

  .about-panel p:not(.eyebrow) {
    font-size: 18px;
  }

  .topbar {
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
  }

  nav {
    flex: 0 0 auto;
    gap: 9px;
    font-size: 13px;
  }

  .brand {
    flex: 1 1 auto;
    gap: 8px;
    min-width: 0;
  }

  .brand-mark {
    border-radius: 7px;
    height: 34px;
    width: 34px;
  }

  .brand strong {
    font-size: 16px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .brand small {
    display: none;
  }

  .hero {
    padding-top: 42px;
  }

  h1 {
    font-size: 42px;
  }

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

  .checkout-row {
    align-items: stretch;
    flex-direction: column;
  }

  footer {
    align-items: flex-start;
    flex-direction: column;
    gap: 10px;
  }
}
