:root {
  --paper: #f5f2eb;
  --paper-deep: #ebe5da;
  --ink: #142932;
  --muted: #637278;
  --blue: #27657d;
  --blue-dark: #183f50;
  --sky: #cfe3ea;
  --lime: #d9ec78;
  --white: #fffefb;
  --line: rgba(20, 41, 50, .14);
  --shadow: 0 24px 70px rgba(18, 49, 61, .12);
  --radius: 26px;
  --max: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: Inter, "Segoe UI", Arial, sans-serif;
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; }
img { display: block; max-width: 100%; }
h1, h2, h3, p { margin-top: 0; }
h1, h2, h3 { line-height: 1.08; letter-spacing: -.035em; }
h1 { margin-bottom: 28px; font-size: clamp(3rem, 6vw, 6.3rem); font-weight: 680; }
h1 em { color: var(--blue); font-family: Georgia, serif; font-weight: 400; }
h2 { margin-bottom: 24px; font-size: clamp(2.2rem, 4.2vw, 4.25rem); }
h3 { font-size: 1.45rem; }

.skip-link { position: fixed; left: 16px; top: -100px; z-index: 99; padding: 10px 16px; background: var(--ink); color: white; }
.skip-link:focus { top: 12px; }
.site-header {
  position: sticky; top: 0; z-index: 20;
  display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 28px;
  width: min(calc(100% - 32px), 1240px); margin: 14px auto 0; padding: 12px 14px 12px 18px;
  border: 1px solid rgba(255,255,255,.7); border-radius: 18px;
  background: rgba(245, 242, 235, .88); backdrop-filter: blur(18px); box-shadow: 0 8px 30px rgba(20,41,50,.06);
}
.brand { display: flex; align-items: center; gap: 11px; font-weight: 750; text-decoration: none; white-space: nowrap; }
.brand-mark { display: flex; align-items: center; justify-content: center; width: 38px; height: 38px; border-radius: 12px; background: var(--ink); color: var(--lime); font-family: Georgia, serif; font-size: 1.28rem; font-style: italic; line-height: 1; transform: rotate(-3deg); }
.brand-mark sup { margin: -9px 0 0 1px; font-family: Inter, "Segoe UI", Arial, sans-serif; font-size: .58em; font-style: normal; font-weight: 800; }
.site-nav { display: flex; justify-content: center; gap: 28px; font-size: .92rem; }
.site-nav a, .footer-links a { color: var(--muted); text-decoration: none; }
.site-nav a:hover, .footer-links a:hover { color: var(--ink); }
.menu-button { display: none; }
.section { width: min(calc(100% - 40px), var(--max)); margin-inline: auto; padding-block: 110px; }
.eyebrow { margin-bottom: 16px; color: var(--blue); font-size: .76rem; font-weight: 800; letter-spacing: .15em; text-transform: uppercase; }
.eyebrow-light { color: var(--lime); }
.button {
  display: inline-flex; align-items: center; justify-content: center; min-height: 56px; padding: 14px 24px;
  border: 1px solid var(--ink); border-radius: 999px; background: var(--ink); color: white;
  font-weight: 750; line-height: 1.2; text-align: center; text-decoration: none; transition: transform .2s, box-shadow .2s;
}
.button:hover { transform: translateY(-2px); box-shadow: 0 10px 24px rgba(20,41,50,.18); }
.button-small { min-height: 42px; padding: 10px 18px; font-size: .9rem; }
.text-link { font-weight: 700; text-underline-offset: 5px; }

.hero { display: grid; grid-template-columns: 1.15fr .72fr; gap: 70px; align-items: center; min-height: calc(100vh - 80px); padding-top: 70px; }
.hero-copy { position: relative; }
.hero-copy::before { content: "π"; position: absolute; z-index: -1; left: -55px; top: -100px; color: rgba(39,101,125,.07); font-family: Georgia, serif; font-size: 18rem; line-height: 1; }
.hero-lead { max-width: 720px; margin-bottom: 34px; color: var(--muted); font-size: clamp(1.1rem, 1.8vw, 1.35rem); }
.hero-actions { display: flex; align-items: center; gap: 24px; flex-wrap: wrap; }
.trust-list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin: 54px 0 0; padding: 25px 0 0; border-top: 1px solid var(--line); list-style: none; }
.trust-list li { display: flex; flex-direction: column; }
.trust-list strong { font-size: 1.05rem; }
.trust-list span { color: var(--muted); font-size: .82rem; }
.portrait-card { position: relative; margin: 0; padding: 14px; border: 1px solid rgba(20,41,50,.1); border-radius: 42% 42% var(--radius) var(--radius); background: var(--white); box-shadow: var(--shadow); transform: rotate(1.5deg); }
.portrait-card::before { content: "x² + y²"; position: absolute; right: -45px; top: 40px; color: var(--blue); font-family: Georgia, serif; font-size: 1.5rem; font-style: italic; transform: rotate(7deg); }
.portrait-card img { aspect-ratio: 1; width: 100%; border-radius: 40% 40% 18px 18px; object-fit: cover; }
.portrait-card figcaption { display: flex; align-items: center; justify-content: center; gap: 9px; padding: 16px 6px 3px; font-size: .9rem; font-weight: 700; }
.status-dot { width: 9px; height: 9px; border-radius: 50%; background: #54a66a; box-shadow: 0 0 0 4px #e7f4e9; }

.section-heading { display: grid; grid-template-columns: .45fr 1fr; align-items: start; gap: 40px; margin-bottom: 55px; }
.section-heading .eyebrow { padding-top: 9px; }
.section-heading h2 { max-width: 800px; }
.section-heading.compact { display: block; max-width: 780px; }
.section-heading.compact > p:last-child { color: var(--muted); font-size: 1.15rem; }
.card-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.service-card { min-height: 330px; padding: 34px; border: 1px solid var(--line); border-radius: var(--radius); background: rgba(255,254,251,.58); }
.service-card-featured { background: var(--sky); }
.service-card h3 { max-width: 440px; margin: 60px 0 18px; font-size: clamp(1.7rem, 2.5vw, 2.45rem); }
.service-card p:last-child { max-width: 520px; color: var(--muted); }
.card-number { float: right; display: grid; place-items: center; width: 44px; height: 44px; border: 1px solid var(--line); border-radius: 50%; font-size: .8rem; font-weight: 800; }
.card-label { color: var(--blue); font-size: .75rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }

.diagnostic { display: grid; grid-template-columns: 1fr 1fr; gap: 90px; width: 100%; max-width: none; padding-inline: max(20px, calc((100vw - var(--max)) / 2)); background: var(--blue-dark); color: white; }
.diagnostic-copy > p { color: #bed0d6; font-size: 1.14rem; }
.diagnostic ol { margin: 38px 0 0; padding: 0; border-top: 1px solid rgba(255,255,255,.18); list-style: none; }
.diagnostic li { display: flex; gap: 20px; padding: 15px 0; border-bottom: 1px solid rgba(255,255,255,.18); }
.diagnostic li span { color: var(--lime); font-size: .78rem; font-weight: 800; }

.process { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.process article { padding: 32px 25px 20px; border-right: 1px solid var(--line); }
.process article:last-child { border-right: 0; }
.process article > span { display: grid; place-items: center; width: 42px; height: 42px; margin-bottom: 55px; border-radius: 50%; background: var(--lime); font-weight: 800; }
.process p { color: var(--muted); font-size: .93rem; }

.price-section { padding-top: 40px; }
.price-card { display: grid; grid-template-columns: 1fr .72fr; gap: 80px; align-items: center; padding: 55px; border-radius: var(--radius); background: var(--paper-deep); }
.price-card > div:first-child p:last-child { max-width: 620px; color: var(--muted); }
.price-value { display: flex; flex-direction: column; padding: 34px; border-radius: 20px; background: var(--white); box-shadow: 0 14px 35px rgba(20,41,50,.07); }
.price-value span, .price-value small { color: var(--muted); }
.price-value strong { margin-block: 4px 8px; font-size: clamp(2.4rem, 4vw, 4rem); letter-spacing: -.06em; }
.price-list { display: grid; grid-template-columns: repeat(3, 1fr); margin-top: 18px; overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius); background: var(--white); }
.price-list article { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 92px; padding: 22px 24px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.price-list article:nth-child(3n) { border-right: 0; }
.price-list article:nth-last-child(-n+3) { border-bottom: 0; }
.price-list span { color: var(--muted); line-height: 1.35; }
.price-list strong { white-space: nowrap; font-size: 1.1rem; }

.about { display: grid; grid-template-columns: .8fr 1fr; gap: 100px; }
.about-copy { padding-top: 10px; }
.about-copy > p { color: var(--muted); }
.about-copy .large-copy { color: var(--ink); font-family: Georgia, serif; font-size: clamp(1.4rem, 2.5vw, 2rem); line-height: 1.35; }
.education { margin-top: 38px; padding-top: 28px; border-top: 1px solid var(--line); }
.education-label { color: var(--blue) !important; font-size: .76rem; font-weight: 800; letter-spacing: .15em; text-transform: uppercase; }
.education article { display: grid; grid-template-columns: 95px 1fr; gap: 20px; padding: 18px 0; border-bottom: 1px solid var(--line); }
.education article > span { color: var(--muted); font-size: .82rem; font-weight: 700; }
.education article p { margin: 5px 0 0; color: var(--muted); font-size: .9rem; }
.location-note { margin-top: 35px; padding: 24px; border-left: 4px solid var(--lime); background: var(--white); }
.location-note p { margin: 5px 0 0; color: var(--muted); }

.faq-list { border-top: 1px solid var(--line); }
.faq-list details { border-bottom: 1px solid var(--line); }
.faq-list summary { position: relative; padding: 26px 50px 26px 0; cursor: pointer; font-size: 1.15rem; font-weight: 750; list-style: none; }
.faq-list summary::after { content: "+"; position: absolute; right: 8px; color: var(--blue); font-size: 1.7rem; font-weight: 400; }
.faq-list details[open] summary::after { content: "−"; }
.faq-list details p { max-width: 760px; padding-bottom: 24px; color: var(--muted); }

.contact { display: grid; grid-template-columns: 1fr .9fr; gap: 90px; width: min(calc(100% - 40px), 1240px); margin-bottom: 30px; padding-inline: 60px; border-radius: 34px; background: var(--ink); color: white; }
.contact > div:first-child > p:last-child { color: #b7c6ca; }
.contact-links { border-top: 1px solid rgba(255,255,255,.18); }
.contact-link { display: flex; align-items: center; justify-content: space-between; padding: 21px 5px; border-bottom: 1px solid rgba(255,255,255,.18); text-decoration: none; }
.contact-link span { display: flex; flex-direction: column; }
.contact-link small { color: #aabcc1; }
.contact-link b { color: var(--lime); font-size: 1.5rem; transition: transform .2s; }
.contact-link:hover b { transform: translate(3px, -3px); }
.site-footer { display: grid; grid-template-columns: 1fr auto; gap: 24px; width: min(calc(100% - 40px), var(--max)); margin: auto; padding: 45px 0 60px; border-top: 1px solid var(--line); }
.site-footer p { margin: 3px 0 0; color: var(--muted); font-size: .86rem; }
.footer-links { display: flex; gap: 24px; font-size: .9rem; }
.copyright { grid-column: 1 / -1; }

@media (max-width: 900px) {
  .site-header { grid-template-columns: 1fr auto; }
  .menu-button { display: block; padding: 8px 12px; border: 1px solid var(--line); border-radius: 10px; background: transparent; color: var(--ink); font: inherit; }
  .header-cta { display: none; }
  .site-nav { display: none; grid-column: 1 / -1; flex-direction: column; align-items: flex-start; gap: 12px; padding: 10px 2px 6px; }
  .site-nav.is-open { display: flex; }
  .hero { grid-template-columns: 1fr; gap: 40px; min-height: auto; }
  .portrait-card { width: min(100%, 520px); margin: auto; }
  .section-heading, .diagnostic, .price-card, .about, .contact { grid-template-columns: 1fr; gap: 36px; }
  .price-list { grid-template-columns: repeat(2, 1fr); }
  .price-list article, .price-list article:nth-child(3n), .price-list article:nth-last-child(-n+3) { border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
  .price-list article:nth-child(2n) { border-right: 0; }
  .price-list article:last-child { grid-column: 1 / -1; border-right: 0; border-bottom: 0; }
  .process { grid-template-columns: repeat(2, 1fr); }
  .process article:nth-child(2) { border-right: 0; }
  .process article:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
}

@media (max-width: 600px) {
  body { font-size: 16px; }
  .site-header { width: calc(100% - 20px); margin-top: 8px; }
  .brand span:last-child { font-size: .88rem; }
  .section { width: min(calc(100% - 28px), var(--max)); padding-block: 74px; }
  .hero { padding-top: 55px; }
  h1 { font-size: clamp(2.65rem, 14vw, 4rem); }
  h2 { font-size: 2.35rem; }
  .hero-actions { align-items: stretch; flex-direction: column; }
  .trust-list { grid-template-columns: 1fr; gap: 14px; }
  .portrait-card::before { right: -4px; top: 24px; }
  .card-grid, .process { grid-template-columns: 1fr; }
  .service-card { min-height: 285px; padding: 25px; }
  .service-card h3 { margin-top: 45px; }
  .process article { border-right: 0; border-bottom: 1px solid var(--line); }
  .process article > span { margin-bottom: 30px; }
  .price-card { padding: 27px; }
  .price-value { padding: 23px; }
  .price-list { grid-template-columns: 1fr; }
  .price-list article, .price-list article:nth-child(2n), .price-list article:nth-child(3n), .price-list article:nth-last-child(-n+3) { border-right: 0; border-bottom: 1px solid var(--line); }
  .price-list article:last-child { grid-column: auto; border-bottom: 0; }
  .education article { grid-template-columns: 1fr; gap: 5px; }
  .contact { width: calc(100% - 20px); padding: 65px 25px; }
  .site-footer { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; }
}
