:root {
  --navy: #102a43;
  --blue: #2563eb;
  --blue-dark: #1d4ed8;
  --sky: #eaf2ff;
  --ink: #243b53;
  --muted: #627d98;
  --line: #d9e2ec;
  --white: #ffffff;
  --soft: #f7f9fc;
  --success: #0f766e;
  --shadow: 0 16px 40px rgba(16, 42, 67, .10);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--white);
  line-height: 1.65;
}
a { color: inherit; }
img { max-width: 100%; }
.container { width: min(1120px, calc(100% - 40px)); margin: 0 auto; }
.skip-link { position: absolute; left: -999px; top: 8px; z-index: 99; padding: 10px 14px; background: var(--navy); color: white; }
.skip-link:focus { left: 8px; }

.site-header { position: sticky; top: 0; z-index: 20; background: rgba(255,255,255,.96); backdrop-filter: blur(12px); border-bottom: 1px solid rgba(217,226,236,.8); }
.nav-wrap { min-height: 74px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 11px; text-decoration: none; font-weight: 800; color: var(--navy); letter-spacing: -.02em; }
.brand-mark { width: 38px; height: 38px; display: grid; place-items: center; color: white; background: linear-gradient(135deg, var(--blue), #60a5fa); border-radius: 11px; font-weight: 900; }
.nav-links { display: flex; align-items: center; gap: 26px; }
.nav-links a { text-decoration: none; font-weight: 650; font-size: .96rem; }
.nav-links a:hover, .nav-links a[aria-current="page"] { color: var(--blue); }
.menu-btn { display: none; border: 0; background: transparent; font-size: 1.5rem; color: var(--navy); }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 20px; border-radius: 10px; border: 1px solid transparent; text-decoration: none; font-weight: 750; cursor: pointer; transition: .18s ease; }
.btn-primary { color: white; background: var(--blue); box-shadow: 0 8px 20px rgba(37,99,235,.2); }
.btn-primary:hover { background: var(--blue-dark); transform: translateY(-1px); }
.btn-secondary { color: var(--navy); background: white; border-color: var(--line); }
.btn-secondary:hover { border-color: #9fb3c8; transform: translateY(-1px); }

.hero { padding: 88px 0 78px; overflow: hidden; background: radial-gradient(circle at 88% 25%, #dbeafe 0, transparent 34%), linear-gradient(180deg, #fff, #f8fbff); }
.hero-grid { display: grid; grid-template-columns: 1.12fr .88fr; align-items: center; gap: 64px; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; color: var(--blue-dark); background: var(--sky); border-radius: 999px; padding: 7px 12px; font-weight: 750; font-size: .85rem; }
h1, h2, h3 { color: var(--navy); line-height: 1.16; letter-spacing: -.035em; margin-top: 0; }
h1 { font-size: clamp(2.65rem, 6vw, 4.7rem); margin: 18px 0 22px; }
h2 { font-size: clamp(2rem, 4vw, 3rem); margin-bottom: 16px; }
h3 { font-size: 1.25rem; }
.lead { font-size: 1.18rem; color: var(--muted); max-width: 670px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.trust-row { display: flex; flex-wrap: wrap; gap: 18px; margin-top: 28px; color: var(--muted); font-size: .93rem; }
.trust-row span::before { content: "✓"; color: var(--success); font-weight: 900; margin-right: 7px; }

.hero-visual { position: relative; min-height: 430px; }
.test-card { position: absolute; inset: 20px 0 0 34px; border: 1px solid var(--line); border-radius: 20px; padding: 28px; background: white; box-shadow: var(--shadow); transform: rotate(1.4deg); }
.mini-label { text-transform: uppercase; letter-spacing: .12em; color: var(--muted); font-size: .73rem; font-weight: 800; }
.progress { height: 8px; border-radius: 99px; background: #e6edf5; margin: 14px 0 30px; overflow: hidden; }
.progress span { display: block; height: 100%; width: 64%; background: var(--blue); }
.chart { height: 110px; display: flex; align-items: end; gap: 12px; padding: 18px 12px 0; border-left: 2px solid var(--line); border-bottom: 2px solid var(--line); }
.chart i { flex: 1; min-height: 18px; background: linear-gradient(#60a5fa, #2563eb); border-radius: 5px 5px 0 0; }
.answers { display: grid; gap: 10px; margin-top: 23px; }
.answer { display: flex; justify-content: space-between; padding: 11px 13px; border: 1px solid var(--line); border-radius: 9px; font-weight: 650; }
.tutor-note { position: absolute; left: -12px; bottom: 2px; width: 230px; padding: 18px; background: var(--navy); color: white; border-radius: 16px; box-shadow: var(--shadow); transform: rotate(-3deg); }
.tutor-note strong { display: block; font-size: 1.08rem; margin-bottom: 4px; }

.section { padding: 86px 0; }
.section-soft { background: var(--soft); }
.section-head { max-width: 720px; margin-bottom: 38px; }
.section-head p { color: var(--muted); font-size: 1.07rem; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.card { background: white; border: 1px solid var(--line); border-radius: 16px; padding: 27px; box-shadow: 0 8px 25px rgba(16,42,67,.045); }
.icon { width: 45px; height: 45px; display: grid; place-items: center; border-radius: 12px; background: var(--sky); color: var(--blue); font-weight: 900; margin-bottom: 18px; }
.card p { color: var(--muted); margin-bottom: 0; }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.check-list { list-style: none; padding: 0; margin: 24px 0 0; }
.check-list li { position: relative; padding-left: 30px; margin: 13px 0; }
.check-list li::before { content: "✓"; position: absolute; left: 0; top: 0; color: var(--success); font-weight: 900; }
.steps { display: grid; gap: 16px; }
.step { display: grid; grid-template-columns: 44px 1fr; gap: 16px; align-items: start; padding: 21px; border: 1px solid var(--line); border-radius: 14px; background: white; }
.step-number { width: 44px; height: 44px; display: grid; place-items: center; border-radius: 50%; background: var(--navy); color: white; font-weight: 800; }
.step h3 { margin: 3px 0 6px; }
.step p { margin: 0; color: var(--muted); }

.cta { border-radius: 24px; padding: 54px; color: white; background: linear-gradient(120deg, var(--navy), #1e3a8a); display: flex; align-items: center; justify-content: space-between; gap: 40px; }
.cta h2 { color: white; margin-bottom: 10px; }
.cta p { color: #dbeafe; margin: 0; max-width: 670px; }
.cta .btn-secondary { border-color: transparent; }

.page-hero { padding: 72px 0 55px; background: linear-gradient(180deg, #f3f8ff, white); text-align: center; }
.page-hero p { max-width: 720px; margin: 0 auto; color: var(--muted); font-size: 1.1rem; }
.page-hero h1 { font-size: clamp(2.5rem, 5vw, 4rem); margin-bottom: 16px; }
.price-card { border: 2px solid #bfdbfe; position: relative; }
.price { font-size: 2.2rem; font-weight: 850; color: var(--navy); margin: 10px 0; }
.price small { font-size: .95rem; color: var(--muted); font-weight: 600; }
.notice { padding: 16px 18px; border-left: 4px solid var(--blue); background: var(--sky); border-radius: 7px; color: var(--navy); }

.form-wrap { display: grid; grid-template-columns: .8fr 1.2fr; gap: 42px; align-items: start; }
.contact-panel { padding: 30px; color: white; background: var(--navy); border-radius: 18px; }
.contact-panel h2 { color: white; }
.contact-panel p { color: #d9e8f5; }
.contact-item { margin: 24px 0; }
.contact-item strong { display: block; margin-bottom: 3px; }
.contact-form { padding: 32px; border: 1px solid var(--line); border-radius: 18px; box-shadow: var(--shadow); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field { margin-bottom: 18px; }
.field-full { grid-column: 1 / -1; }
label { display: block; font-weight: 700; margin-bottom: 7px; color: var(--navy); }
input, select, textarea { width: 100%; border: 1px solid #bcccdc; border-radius: 9px; padding: 13px 14px; font: inherit; color: var(--ink); background: white; }
input:focus, select:focus, textarea:focus { outline: 3px solid rgba(37,99,235,.14); border-color: var(--blue); }
textarea { min-height: 150px; resize: vertical; }
.form-note { color: var(--muted); font-size: .87rem; }
.hidden { display: none; }

.faq details { border-bottom: 1px solid var(--line); padding: 20px 0; }
.faq summary { cursor: pointer; font-weight: 750; color: var(--navy); }
.faq details p { color: var(--muted); }

.site-footer { padding: 50px 0 26px; background: #0b1f33; color: #c6d5e3; }
.footer-grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 40px; }
.site-footer .brand { color: white; }
.site-footer h3 { color: white; font-size: 1rem; letter-spacing: 0; }
.site-footer a { color: #c6d5e3; text-decoration: none; }
.footer-links { display: grid; gap: 9px; }
.footer-bottom { margin-top: 38px; padding-top: 22px; border-top: 1px solid rgba(255,255,255,.13); font-size: .86rem; }

@media (max-width: 860px) {
  .menu-btn { display: block; }
  .nav-links { display: none; position: absolute; left: 20px; right: 20px; top: 68px; flex-direction: column; align-items: stretch; gap: 0; padding: 12px; background: white; border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow); }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 12px; }
  .nav-links .btn { margin-top: 6px; }
  .hero-grid, .split, .form-wrap { grid-template-columns: 1fr; }
  .hero { padding-top: 62px; }
  .hero-visual { min-height: 430px; max-width: 570px; }
  .grid-3 { grid-template-columns: 1fr 1fr; }
  .cta { align-items: flex-start; flex-direction: column; padding: 38px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 580px) {
  .container { width: min(100% - 28px, 1120px); }
  .section { padding: 66px 0; }
  .grid-3, .form-grid, .footer-grid { grid-template-columns: 1fr; }
  .hero-visual { min-height: 390px; }
  .test-card { inset: 10px 0 0 5px; padding: 21px; }
  .tutor-note { left: 0; width: 205px; }
  .chart { height: 90px; }
  .cta { padding: 30px 24px; }
  .contact-form { padding: 23px; }
}

/* Additional layout helpers for the simplified three-page version */
.grid-4{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:1rem}
.feature{text-align:center;padding:1.2rem}
.feature .icon{margin-inline:auto}
.stacked-services{display:grid;gap:1rem}
.service-row{display:grid;grid-template-columns:auto 1fr;gap:1rem;align-items:start;padding:1rem 0}
.service-row h3{margin-top:.1rem}
.contact-item a{color:var(--primary);font-weight:700;text-decoration:none}
.contact-item a:hover{text-decoration:underline}
@media (max-width:900px){.grid-4{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media (max-width:620px){.grid-4{grid-template-columns:1fr}}

/* Contact options without a form */
.contact-options { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.contact-card { display: grid; grid-template-columns: 54px 1fr; gap: 17px; align-items: center; padding: 25px; border: 1px solid var(--line); border-radius: 16px; background: white; box-shadow: 0 8px 25px rgba(16,42,67,.045); text-decoration: none; transition: .18s ease; }
.contact-card:hover { transform: translateY(-2px); border-color: #9fb3c8; box-shadow: var(--shadow); }
.contact-icon { width: 54px; height: 54px; display: grid; place-items: center; border-radius: 50%; background: var(--sky); color: var(--blue); font-size: 1.45rem; font-weight: 900; }
.contact-card strong, .contact-card small, .contact-card b { display: block; }
.contact-card strong { color: var(--navy); font-size: 1.08rem; }
.contact-card small { color: var(--muted); margin: 3px 0 7px; font-size: .92rem; }
.contact-card b { color: var(--blue-dark); font-size: .96rem; overflow-wrap: anywhere; }
.contact-availability { margin-top: 28px; padding: 24px; text-align: center; border-radius: 16px; background: var(--soft); border: 1px solid var(--line); }
.contact-availability p { margin: 4px 0; }
@media (max-width: 760px) { .contact-options { grid-template-columns: 1fr; } }
