:root {
  --green: #344c3d;
  --green-dark: #263a2e;
  --sage: #bfcfbb;
  --sage-light: #eef3ec;
  --cream: #faf9f5;
  --ink: #1f2a24;
  --muted: #5d6b62;
  --line: #dfe6dc;
  --white: #ffffff;
  --radius: 16px;
  --max: 1120px;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--cream);
}

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

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

h1, h2, h3 { line-height: 1.2; margin: 0 0 0.6em; color: var(--green-dark); }
h1 { font-size: clamp(2rem, 5vw, 3.2rem); }
h2 { font-size: clamp(1.5rem, 3.4vw, 2.2rem); }
h3 { font-size: 1.2rem; }
p { margin: 0 0 1em; }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 20px; }
.narrow { max-width: 780px; }
.center { text-align: center; }
.lead { font-size: 1.15rem; color: var(--muted); }

section { padding: 64px 0; }
section[id] { scroll-margin-top: 68px; }
.band { background: var(--sage-light); }
.band-green { background: var(--green); color: var(--white); }
.band-green h1, .band-green h2, .band-green h3 { color: var(--white); }
.band-green .lead { color: #dbe6d8; }

/* Header */
.site-header {
  background: var(--white);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 10;
}
.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 68px;
}
.logo img { width: 170px; }
.nav { display: flex; align-items: center; gap: 24px; }
.nav a { text-decoration: none; font-weight: 600; font-size: 0.95rem; white-space: nowrap; }
.nav a:hover { text-decoration: underline; }

.btn {
  display: inline-block;
  background: var(--green);
  color: var(--white);
  text-decoration: none;
  font-weight: 700;
  padding: 14px 28px;
  border-radius: 999px;
  border: 2px solid var(--green);
  transition: background 0.15s ease;
}
.btn:hover { background: var(--green-dark); text-decoration: none; }
.nav .btn { padding: 9px 20px; color: var(--white); }
.btn-light { background: var(--white); color: var(--green-dark); border-color: var(--white); }
.btn-light:hover { background: var(--sage-light); }

/* Hero */
.hero {
  background: #1d6f7c url("images/hero-bg.jpg") center / cover no-repeat;
  color: var(--white);
  padding: 72px 0 0;
  overflow: hidden;
}
.hero h1 { color: var(--white); }
.hero .wrap {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 40px;
  align-items: end;
}
.hero-copy { padding-bottom: 72px; }
.hero-copy p { font-size: 1.3rem; font-weight: 600; margin-bottom: 1.4em; }
.hero-phone { justify-self: center; width: 300px; margin-bottom: -40px; }

.hero-schools {
  background: linear-gradient(rgba(38, 58, 46, 0.78), rgba(38, 58, 46, 0.78)), url("images/schools-hero.jpg") center / cover no-repeat;
  padding: 88px 0;
}
.hero-schools .wrap { display: block; }
.hero-schools p { font-size: 1.15rem; max-width: 720px; }

/* Cards and grids */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 40px; align-items: center; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }

.card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
}
.card h3 { margin-bottom: 0.4em; }
.card p:last-child { margin-bottom: 0; }

.feature { text-align: center; }
.feature img { width: 72px; margin: 0 auto 16px; }

.step img {
  width: 50px;
  height: 50px;
  padding: 10px;
  box-sizing: content-box;
  background: var(--green);
  border-radius: 50%;
  margin-bottom: 14px;
}

.photo { border-radius: var(--radius); width: 100%; object-fit: cover; }
.phone { width: 300px; margin: 0 auto; }

/* Lists */
.checks { list-style: none; padding: 0; margin: 0; }
.checks li { position: relative; padding: 6px 0 6px 32px; }
.checks li::before {
  content: "";
  position: absolute;
  left: 4px;
  top: 14px;
  width: 14px;
  height: 8px;
  border-left: 3px solid var(--green);
  border-bottom: 3px solid var(--green);
  transform: rotate(-45deg);
}
.band-green .checks li::before { border-color: var(--sage); }
.cols-2 { columns: 2; column-gap: 40px; }
.cols-2 li { break-inside: avoid; }

/* Testimonials */
.quote { display: flex; flex-direction: column; }
.quote blockquote { margin: 0 0 20px; font-size: 0.98rem; color: var(--ink); flex: 1; }
.quote h3 { font-size: 1.1rem; }
.who { display: flex; align-items: center; gap: 14px; }
.who img { width: 56px; height: 56px; border-radius: 50%; }
.who strong { display: block; }
.who span { display: block; font-size: 0.85rem; color: var(--muted); line-height: 1.35; }

/* Plans */
.plans { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; max-width: 820px; margin: 32px auto 0; }
.plan { text-align: center; display: flex; flex-direction: column; }
.plan.best { border: 2px solid var(--green); }
.plan .tag {
  display: inline-block;
  align-self: center;
  background: var(--sage);
  color: var(--green-dark);
  font-size: 0.8rem;
  font-weight: 700;
  padding: 3px 12px;
  border-radius: 999px;
  margin-bottom: 12px;
}
.plan .price { font-size: 2.2rem; font-weight: 800; color: var(--green-dark); line-height: 1.1; }
.plan .price small { font-size: 1rem; font-weight: 600; color: var(--muted); }
.plan .users { color: var(--muted); margin: 10px 0 22px; flex: 1; }
.fine { font-size: 0.9rem; color: var(--muted); }

/* Stat */
.stat { font-size: clamp(3rem, 9vw, 5rem); font-weight: 800; line-height: 1; color: var(--sage); }

/* Footer */
.site-footer { background: var(--green-dark); color: #dbe6d8; padding: 48px 0 32px; font-size: 0.95rem; }
.site-footer a { color: var(--white); }
.site-footer .cols { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 32px; }
.site-footer .logo img { width: 190px; margin-bottom: 14px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: 6px; }
.site-footer .copy { border-top: 1px solid rgba(255, 255, 255, 0.18); margin-top: 32px; padding-top: 20px; font-size: 0.85rem; }

@media (max-width: 860px) {
  section { padding: 48px 0; }
  .hero { padding-top: 48px; }
  .hero .wrap, .grid-2 { grid-template-columns: 1fr; }
  .hero-copy { padding-bottom: 8px; text-align: center; }
  .hero-phone { width: 240px; }
  .hero-schools { padding: 56px 0; }
  .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .plans { grid-template-columns: 1fr; }
  .cols-2 { columns: 1; }
  .nav { gap: 12px; }
  .nav a { font-size: 0.85rem; }
  .nav .btn { padding: 8px 14px; }
  .nav .hide-sm { display: none; }
  .site-header .logo img { width: 120px; }
}

@media (min-width: 600px) and (max-width: 860px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
}
