:root {
  --bg: #F9FDFD;
  --bg-alt: #E6F2F5;
  --text: #17394A;
  --muted: #46636F;
  --line: #C9DEE4;
  --accent: #6DB7D6;
  --blush: #9FD8C4;
  --leaf: #1F6F78;
  --hero-bg: #CBE6E8;
  --hero-text: #17394A;
  --btn-bg: #17394A;
  --btn-text: #F9FDFD;
  --pill: #FFFFFF;
  --head: "Young Serif", Georgia, "Times New Roman", serif;
  --body: "Figtree", "Segoe UI", system-ui, sans-serif;
  box-sizing: border-box;
  padding-top: env(safe-area-inset-top, 0px);
  padding-bottom: env(safe-area-inset-bottom, 0px);
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0E2128; --bg-alt: #143039; --text: #E8F4F6; --muted: #A9C5CD; --line: #23495A;
    --leaf: #6FC4B6; --hero-bg: #16404B; --hero-text: #D4F0EF; --btn-bg: #6DB7D6; --btn-text: #17394A; --pill: #1A3F4B;
  }
}
:root[data-theme="dark"] {
  --bg: #0E2128; --bg-alt: #143039; --text: #E8F4F6; --muted: #A9C5CD; --line: #23495A;
  --leaf: #6FC4B6; --hero-bg: #16404B; --hero-text: #D4F0EF; --btn-bg: #6DB7D6; --btn-text: #17394A; --pill: #1A3F4B;
}
html { scroll-padding-top: env(safe-area-inset-top, 0px); scroll-behavior: smooth; }
*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--text); font-family: var(--body); font-size: 1.0625rem; line-height: 1.7; }
h1, h2, h3 { font-family: var(--head); font-weight: 400; line-height: 1.12; margin: 0; letter-spacing: -0.01em; }
p { margin: 0; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
.wrap { max-width: 1080px; margin: 0 auto; padding: 0 24px; }
.skip-link { position: absolute; top: 12px; left: 12px; z-index: 10; transform: translateY(-200%); background: var(--btn-bg); color: var(--btn-text); padding: 10px 20px; border-radius: 6px; }
.skip-link:focus { transform: translateY(0); }

header.top { background: var(--hero-bg); color: var(--hero-text); }
header.top .wrap { flex-wrap: wrap; display: flex; align-items: center; justify-content: space-between; padding-top: 18px; padding-bottom: 18px; gap: 16px; }
.logo { display: flex; align-items: center; gap: 14px; max-width: 100%; font-family: var(--head); font-size: 1.2rem; text-decoration: none; line-height: 1.2; }
.logo img { display: block; width: 104px; height: auto; flex-shrink: 0; padding: 6px; background: #FFFFFF; border-radius: 8px; }
.logo span { max-width: 180px; }
.logo-text { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 20px; min-width: 0; }
nav { display: flex; align-items: center; gap: 20px; font-weight: 600; font-size: .98rem; }
nav a { text-decoration: none; }
nav a.link:hover { text-decoration: underline; text-underline-offset: 5px; }

.btn { display: inline-block; background: var(--btn-bg); color: var(--btn-text); font-weight: 700; text-decoration: none; padding: 14px 28px; border-radius: 999px; border: 2px solid var(--btn-bg); font-size: 1rem; transition: transform .15s ease; }
.btn:hover { transform: translateY(-2px); }
.btn.ghost { background: transparent; color: var(--hero-text); border-color: currentColor; }
header.top .btn { padding: 9px 20px; }

.hero { background: var(--hero-bg); color: var(--hero-text); padding: 48px 0 0; overflow: hidden; }
.hero .wrap { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 24px; align-items: center; }
.hero h1 { font-size: clamp(2.1rem, 4.6vw, 3.4rem); }
.hero p.lead { margin-top: 22px; font-size: 1.2rem; max-width: 40ch; }
.hero .actions { margin-top: 30px; display: flex; flex-wrap: wrap; gap: 14px; padding-bottom: 64px; }
.hero svg { width: 100%; height: auto; display: block; align-self: center; margin: 0 0 56px; max-width: 440px; justify-self: center; }
.sway { transform-box: fill-box; transform-origin: 50% 100%; animation: sway 3.2s ease-in-out 2; }
@keyframes sway { 0%,100% { transform: rotate(-2deg); } 50% { transform: rotate(3deg); } }

section { padding: 88px 0; }
section.alt { background: var(--bg-alt); }
.section-head { max-width: 42ch; margin-bottom: 44px; }
.section-head h2 { font-size: clamp(1.9rem, 4vw, 2.7rem); }
.section-head p { margin-top: 14px; color: var(--muted); }

/* approach */
.approach { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: start; }
.approach p + p { margin-top: 18px; }
.approach .big { font-family: var(--head); font-size: clamp(1.5rem, 3vw, 2rem); line-height: 1.3; }


/* about */
.about { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: 56px; align-items: center; }
.about .photo { margin: 0; position: relative; isolation: isolate; }
.about .photo img { display: block; width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: cover; object-position: 50% 30%; border-radius: 200px 200px 28px 28px; background: #111; }
.about .photo::after { content: ""; position: absolute; inset: auto -14px -14px auto; width: 45%; height: 45%; background: var(--accent); border-radius: 28px; z-index: -1; }
.about h2 { font-size: clamp(1.9rem, 4vw, 2.7rem); }
.about .creds { margin-top: 10px; font-weight: 700; color: var(--leaf); }
.about p { margin-top: 18px; max-width: 56ch; }
.about .facts { list-style: none; padding: 0; margin: 26px 0 0; border-top: 2px solid var(--text); }
.about .facts li { padding: 14px 0; border-bottom: 1px solid var(--line); display: grid; grid-template-columns: 9.5rem 1fr; gap: 16px; }
.about .facts .fact-note { display: block; margin-top: 4px; font-size: .85rem; color: var(--muted); }
.about .facts b { font-family: var(--head); font-weight: 400; font-size: 1.05rem; }
.about .link-pt { margin-top: 26px; }


/* collaboration */
.collab { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: start; }
.collab h2 { font-size: clamp(1.9rem, 4vw, 2.7rem); }
.collab .intro { margin-top: 18px; max-width: 50ch; }
.collab .how { list-style: none; padding: 0; margin: 28px 0 0; display: grid; gap: 16px; }
.collab .how li { padding-left: 18px; border-left: 4px solid var(--accent); }
.collab .how li:nth-child(2) { border-color: var(--blush); }
.collab .how li:nth-child(3) { border-color: var(--leaf); }
.collab .how b { font-family: var(--head); font-weight: 400; font-size: 1.1rem; display: block; }
.collab .how span { color: var(--muted); }
.team { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.team li { background: var(--pill); border: 2px solid var(--line); border-radius: 22px; padding: 18px 22px; }
.team li:nth-child(odd) { border-radius: 22px 22px 22px 6px; }
.team li:nth-child(even) { border-radius: 22px 22px 6px 22px; }
.team li:nth-child(5n+1) { border-color: var(--accent); }
.team li:nth-child(5n+2) { border-color: var(--blush); }
.team li:nth-child(5n+3) { border-color: var(--leaf); }
.team li:nth-child(5n+4) { border-color: var(--accent); }
.team li:nth-child(5n) { border-color: var(--blush); }
.team h3 { font-size: 1.2rem; }
.team p { color: var(--muted); margin-top: 2px; }


/* supervision */
.supervise { display: grid; grid-template-columns: 1.2fr 0.8fr; gap: 48px; align-items: center; background: var(--pill); border: 2px solid var(--accent); border-radius: 40px 40px 40px 8px; padding: 48px; }
.supervise h2 { font-size: clamp(1.8rem, 3.8vw, 2.5rem); }
.supervise p { margin-top: 16px; max-width: 54ch; }
.supervise .side { text-align: left; }
.supervise .side p { margin-top: 0; color: var(--muted); }
.supervise .side .btn { margin-top: 18px; }

/* focus list */
.focus { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; column-gap: 56px; border-top: 2px solid var(--text); }
.focus li { padding: 22px 0; border-bottom: 1px solid var(--line); }
.focus h3 { font-size: 1.3rem; margin-bottom: 4px; }
.focus p { color: var(--muted); }

/* affirming */
.affirm { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.affirm h2 { font-size: clamp(1.9rem, 4vw, 2.7rem); }
.affirm p { margin-top: 18px; max-width: 52ch; }
.tags { display: flex; flex-wrap: wrap; gap: 12px; }
.tags span { background: var(--pill); border: 2px solid var(--line); padding: 10px 20px; border-radius: 999px; font-weight: 600; }
.tags span:nth-child(3n+1) { border-color: var(--blush); }
.tags span:nth-child(3n+2) { border-color: var(--accent); }
.tags span:nth-child(3n) { border-color: var(--leaf); }

/* fees */
.fees { display: grid; grid-template-columns: 1.2fr 1fr; gap: 56px; }
.fees h3 { font-size: 1.5rem; margin-bottom: 14px; }
.fees p { color: var(--muted); }
.insurers { list-style: none; padding: 0; margin: 18px 0 0; display: flex; flex-wrap: wrap; gap: 10px; }
.insurers li { background: var(--pill); border: 2px solid var(--line); padding: 8px 18px; border-radius: 999px; font-weight: 600; }
.rate { margin-top: 18px; border-top: 2px solid var(--text); border-bottom: 1px solid var(--line); padding: 22px 0; display: flex; justify-content: space-between; align-items: baseline; gap: 16px; }
.rate strong { font-family: var(--head); font-weight: 400; font-size: 1.3rem; }
.rate .price { font-family: var(--head); font-size: 2rem; white-space: nowrap; }
.rate .price small { font-family: var(--body); font-size: .95rem; color: var(--muted); }

/* steps */
.book-now { margin: 28px 0 0; }
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 36px; list-style: none; padding: 0; margin: 0; }
.num { width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; background: var(--accent); color: #17394A; font-family: var(--head); font-size: 1.4rem; margin-bottom: 18px; }
.steps h3 { font-size: 1.35rem; margin-bottom: 8px; }
.steps p { color: var(--muted); }

.after-steps { margin-top: 36px; padding-left: 18px; border-left: 4px solid var(--accent); font-weight: 600; max-width: 60ch; }

/* faq */
.faq { max-width: 760px; }
details { border-bottom: 1px solid var(--line); padding: 20px 0; }
details:first-of-type { border-top: 2px solid var(--text); }
summary { cursor: pointer; font-family: var(--head); font-size: 1.2rem; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; font-size: 1.6rem; line-height: 1; transition: transform .2s ease; }
details[open] summary::after { transform: rotate(45deg); }
details p { margin-top: 12px; color: var(--muted); max-width: 60ch; }

/* contact */
.contact { background: var(--hero-bg); color: var(--hero-text); text-align: center; }
.contact h2 { font-size: clamp(2rem, 4.6vw, 3.2rem); max-width: 20ch; margin: 0 auto; }
.contact p.lead { margin: 18px auto 30px; max-width: 46ch; font-size: 1.15rem; }
.contact .actions { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; }
.contact .crisis { margin: 36px auto 0; max-width: 56ch; font-size: .95rem; opacity: .9; }

footer.site { padding: 28px 0; font-size: .95rem; color: var(--muted); }
footer.site .wrap { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; }
footer.site .credentials { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; margin-left: auto; text-align: right; }
footer.site .credentials small { font-size: .78rem; letter-spacing: .02em; }
footer.site .legal { display: flex; flex-direction: column; gap: 4px; }
footer.site .legal a { font-size: .78rem; letter-spacing: .02em; text-underline-offset: 3px; }

.focus li { position: relative; }
.focus h3 a { text-decoration: none; }
.focus h3 a::after { content: ""; position: absolute; inset: 0; }
.focus h3 a:focus-visible { outline: none; }
.focus li:has(a:focus-visible) { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
.focus .more { display: inline-block; margin-top: 8px; font-weight: 700; color: var(--leaf); }
.focus li:hover h3 a { text-decoration: underline; text-underline-offset: 5px; }

.page-hero { background: var(--hero-bg); color: var(--hero-text); padding: 40px 0 72px; }
.crumbs { font-size: .95rem; font-weight: 600; margin-bottom: 28px; }
.crumbs ol { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.crumbs li + li::before { content: "/"; margin-right: 8px; opacity: .6; }
.crumbs a { text-underline-offset: 4px; }
.page-hero h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); max-width: 22ch; }
.page-hero p.lead { margin-top: 20px; font-size: 1.2rem; max-width: 52ch; }
.page-hero .actions { margin-top: 30px; display: flex; flex-wrap: wrap; gap: 14px; }

.topic { display: grid; grid-template-columns: 1.3fr 0.7fr; gap: 56px; align-items: start; }
.topic h2 { font-size: clamp(1.7rem, 3.4vw, 2.3rem); }
.topic h2 + p, .topic p + p { margin-top: 16px; }
.topic .prose { max-width: 60ch; }
.topic .prose h2:not(:first-child) { margin-top: 48px; }
.signs { list-style: none; padding: 0; margin: 22px 0 0; display: grid; gap: 12px; }
.signs li { padding-left: 18px; border-left: 4px solid var(--accent); }
.signs li:nth-child(3n+2) { border-color: var(--blush); }
.signs li:nth-child(3n) { border-color: var(--leaf); }
.glance { background: var(--pill); border: 2px solid var(--accent); border-radius: 32px 32px 32px 8px; padding: 30px; }
.glance h2 { font-size: 1.5rem; }
.glance ul { list-style: none; padding: 0; margin: 18px 0 0; border-top: 2px solid var(--text); }
.glance li { padding: 12px 0; border-bottom: 1px solid var(--line); }
.glance li b { display: block; font-family: var(--head); font-weight: 400; }
.glance li span { color: var(--muted); }
.glance .btn { margin-top: 22px; }

.related { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 12px; }
.related a { display: inline-block; background: var(--pill); border: 2px solid var(--line); padding: 10px 20px; border-radius: 999px; font-weight: 600; text-decoration: none; }
.related li:nth-child(3n+1) a { border-color: var(--blush); }
.related li:nth-child(3n+2) a { border-color: var(--accent); }
.related li:nth-child(3n) a { border-color: var(--leaf); }
.related a:hover { text-decoration: underline; text-underline-offset: 4px; }

.res-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 18px; }
.res-list li { position: relative; background: var(--pill); border: 2px solid var(--line); border-radius: 22px 22px 22px 6px; padding: 22px 24px; display: flex; flex-direction: column; }
.res-list li:nth-child(3n+1) { border-color: var(--accent); }
.res-list li:nth-child(3n+2) { border-color: var(--blush); }
.res-list li:nth-child(3n) { border-color: var(--leaf); }
.res-list h3 { font-size: 1.25rem; }
.res-list cite { font-style: normal; }
.res-list h3 a { text-decoration: none; }
.res-list h3 a::after { content: ""; position: absolute; inset: 0; }
.res-list h3 a:focus-visible { outline: none; }
.res-list li:has(a:focus-visible) { outline: 3px solid var(--accent); outline-offset: 3px; }
.res-list li:hover h3 a { text-decoration: underline; text-underline-offset: 5px; }
.res-list p { margin-top: 8px; color: var(--muted); }
.res-list .res-by { margin-top: 4px; font-weight: 600; color: var(--leaf); }
.res-list .res-site { margin-top: auto; padding-top: 12px; font-weight: 700; font-size: .95rem; color: var(--leaf); }
.policy h3 { font-family: var(--head); font-weight: 400; font-size: 1.3rem; margin-top: 28px; }
.policy h3 + p, .policy ul + p, .policy p + ul { margin-top: 12px; }
.policy ul.points { margin: 12px 0 0; padding-left: 22px; display: grid; gap: 8px; }
.page-hero .updated { margin-top: 20px; font-weight: 600; }
.glance li a { text-underline-offset: 3px; }
.res-note { margin-top: 36px; padding-left: 18px; border-left: 4px solid var(--accent); font-weight: 600; max-width: 60ch; }

@media (max-width: 820px) {
  .topic { grid-template-columns: 1fr; gap: 40px; }
  .page-hero { padding: 28px 0 56px; }
  .hero .wrap, .approach, .affirm, .fees, .about, .collab, .supervise { grid-template-columns: 1fr; }
  .supervise { padding: 30px 24px; gap: 24px; }
  .approach, .affirm, .fees, .about, .collab { gap: 32px; }
  .about .photo { max-width: 340px; }
  .about .facts li { grid-template-columns: 1fr; gap: 4px; }
  .hero svg { max-width: 340px; margin: 0 auto 40px; }
  .hero .actions { padding-bottom: 28px; }
  nav a.link { display: none; }
  .focus { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  section { padding: 64px 0; }
}
@media (prefers-reduced-motion: reduce) {
  .sway { animation: none; }
  html { scroll-behavior: auto; }
  .btn, summary::after { transition: none; }
}
