/* NeuroKids — site styles */
:root {
  --brand: #0b9e82;
  --brand-dark: #077a65;
  --brand-ink: #0b5f50;
  --mint: #e5f6f1;
  --mint-2: #f2fbf8;
  --mint-3: #cdeee5;
  --accent: #d9467f;      /* pink from the logo, used sparingly */
  --accent-soft: #fbe8f0;
  --ink: #15211f;
  --text: #2b3836;
  --muted: #5d6e6a;
  --line: #d9e9e4;
  --bg: #ffffff;
  --footer: #0d3832;
  --radius: 18px;
  --radius-sm: 12px;
  --shadow: 0 10px 30px -12px rgba(13, 56, 50, .22);
  --shadow-sm: 0 4px 14px -6px rgba(13, 56, 50, .18);
  --font: "Nunito", "Segoe UI", system-ui, -apple-system, Roboto, Arial, sans-serif;
  --head-h: 76px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 100px; }
body { margin: 0; font: 400 17px/1.65 var(--font); color: var(--text); background: var(--bg); overflow-x: hidden; }
img, video, iframe { max-width: 100%; }
img { height: auto; display: block; }
a { color: var(--brand-dark); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--brand); }
h1, h2, h3, h4 { color: var(--ink); line-height: 1.22; font-weight: 800; margin: 0 0 .6em; letter-spacing: -.01em; }
h1 { font-size: clamp(28px, 4.2vw, 46px); }
h2 { font-size: clamp(23px, 2.6vw, 32px); }
h3 { font-size: clamp(18px, 1.8vw, 21px); font-weight: 700; }
p { margin: 0 0 1em; }
ul, ol { padding-left: 1.3em; }
button { font: inherit; }
:focus-visible { outline: 3px solid color-mix(in srgb, var(--brand) 55%, transparent); outline-offset: 2px; border-radius: 6px; }
.ico { width: 1.1em; height: 1.1em; flex: none; vertical-align: -.18em; }
.wrap { width: 100%; max-width: 1240px; margin: 0 auto; padding: 0 24px; }
.skip { position: absolute; left: -9999px; top: 8px; background: var(--ink); color: #fff; padding: 8px 14px; border-radius: 8px; z-index: 100; }
.skip:focus { left: 8px; }

/* ---------- buttons */
.btn { --b: var(--brand); display: inline-flex; align-items: center; justify-content: center; gap: .5em; min-height: 46px;
  padding: 10px 22px; border-radius: 999px; border: 2px solid var(--b); background: var(--b); color: #fff; font-weight: 700;
  text-decoration: none; cursor: pointer; transition: background .2s, border-color .2s, color .2s, transform .2s, box-shadow .2s; line-height: 1.2; text-align: center; }
.btn:hover { --b: var(--brand-dark); color: #fff; transform: translateY(-1px); box-shadow: var(--shadow-sm); }
.btn-ghost { background: transparent; color: var(--brand-dark); }
.btn-ghost:hover { background: var(--mint); color: var(--brand-ink); --b: var(--brand); }
.btn-lg { min-height: 54px; padding: 12px 28px; font-size: 17px; }
.btn-sm { min-height: 40px; padding: 8px 18px; font-size: 15px; }
.btn-block { display: flex; width: 100%; }
.btn-round { display: inline-grid; place-items: center; width: 46px; height: 46px; border-radius: 50%; background: rgba(255,255,255,.12); color: #fff; }
.btn-round:hover { background: var(--brand); color: #fff; }
.link-arrow { display: inline-flex; align-items: center; gap: .35em; font-weight: 700; text-decoration: none; }
.link-arrow .ico { width: .95em; height: .95em; }

/* ---------- header */
.site-header { position: sticky; top: 0; z-index: 50; background: #fff; }
.topbar { background: var(--mint); color: var(--brand-ink); font-size: 14px; }
.topbar-in { display: flex; align-items: center; gap: 22px; min-height: 38px; }
.tb-item { display: inline-flex; align-items: center; gap: 6px; color: inherit; text-decoration: none; white-space: nowrap; }
a.tb-item:hover { color: var(--brand); }
.tb-spacer { flex: 1; }
.lang { display: inline-flex; align-items: center; gap: 5px; font-weight: 800; color: var(--brand-ink); text-decoration: none;
  border: 1.5px solid var(--mint-3); background: #fff; border-radius: 999px; padding: 2px 10px 2px 8px; }
.lang:hover { border-color: var(--brand); color: var(--brand); }
.mainbar { border-bottom: 1px solid var(--line); }
.mainbar-in { display: flex; align-items: center; gap: 18px; min-height: var(--head-h); }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); flex: none; }
.brand img { width: 44px; height: auto; }
.brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.brand-text b { font-size: 20px; font-weight: 800; letter-spacing: .04em; }
.brand-text small { font-size: 13px; color: var(--muted); margin-top: 3px; }
.nav { flex: 1; display: flex; justify-content: center; }
.nav-list { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: 2px; }
.nav-item { position: relative; display: flex; align-items: center; }
.nav-link { display: block; padding: 10px 8px; color: var(--ink); text-decoration: none; font-weight: 700; font-size: 15.5px; border-radius: 10px; white-space: nowrap; }
.nav-item.has-sub .nav-link { padding-right: 2px; }
.nav-link:hover, .nav-item.is-active > .nav-link { color: var(--brand-dark); }
.nav-item.is-active > .nav-link { box-shadow: inset 0 -3px 0 var(--brand); border-radius: 0; }
.nav-toggle { border: 0; background: none; color: var(--muted); padding: 8px 6px; cursor: pointer; display: grid; place-items: center; border-radius: 8px; }
.nav-toggle .ico { width: 16px; height: 16px; transition: transform .2s; }
.nav-panel { position: absolute; top: calc(100% + 6px); left: -8px; min-width: 270px; max-width: 360px; background: #fff; border-radius: var(--radius-sm);
  box-shadow: var(--shadow); border: 1px solid var(--line); padding: 8px; opacity: 0; visibility: hidden; transform: translateY(6px); transition: .18s; }
.nav-panel::before { content: ""; position: absolute; left: 0; right: 0; top: -10px; height: 10px; }
.nav-panel ul { list-style: none; margin: 0; padding: 0; }
.nav-panel a { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 9px 12px; border-radius: 9px; color: var(--text); text-decoration: none; font-size: 15px; line-height: 1.35; }
.nav-panel a:hover, .nav-panel a[aria-current] { background: var(--mint); color: var(--brand-ink); }
.nav-panel .sub2 a { padding-left: 26px; font-size: 14px; color: var(--muted); }
.nav-panel .ext { width: 14px; height: 14px; color: var(--muted); }
@media (hover: hover) and (min-width: 1201px) {
  .nav-item.has-sub:hover .nav-panel, .nav-item.has-sub:focus-within .nav-panel { opacity: 1; visibility: visible; transform: none; }
}
.nav-item.open .nav-panel { opacity: 1; visibility: visible; transform: none; }
.nav-item.open .nav-toggle .ico { transform: rotate(180deg); }
.nav-mobile-extra { display: none; }
.head-actions { display: flex; align-items: center; gap: 14px; flex: none; }
.head-phone { display: inline-flex; align-items: center; gap: 7px; font-weight: 800; color: var(--ink); text-decoration: none; white-space: nowrap; }
.head-phone .ico { color: var(--brand); }
.burger { display: none; width: 46px; height: 46px; border: 0; border-radius: 12px; background: var(--mint); cursor: pointer; padding: 13px 12px; flex-direction: column; justify-content: space-between; }
.burger span { display: block; height: 2.5px; border-radius: 2px; background: var(--brand-ink); transition: .2s; }
.burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7.7px) rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7.7px) rotate(-45deg); }

.head-phone span { display: none; }
.head-phone { width: 42px; height: 42px; justify-content: center; border-radius: 50%; background: var(--mint); }
.head-phone:hover { background: var(--mint-3); }
.tb-phone { font-weight: 800; font-size: 15px; }
@media (max-width: 1200px) { .head-phone span { display: inline; } .head-phone { width: auto; height: auto; background: none; } }
@media (max-width: 640px) { .head-phone span { display: none; } .head-phone { width: 42px; height: 42px; background: var(--mint); } }
@media (max-width: 1200px) {
  .topbar { display: none; }
  .burger { display: flex; }
  .nav { position: fixed; inset: var(--head-h) 0 0 0; background: #fff; display: block; overflow-y: auto; padding: 12px 20px 120px;
    transform: translateX(100%); transition: transform .25s ease; visibility: hidden; border-top: 1px solid var(--line); }
  .nav.open { transform: none; visibility: visible; }
  .nav-list { flex-direction: column; align-items: stretch; gap: 0; }
  .nav-item { flex-wrap: wrap; border-bottom: 1px solid var(--line); }
  .nav-link { flex: 1; padding: 14px 4px; font-size: 18px; }
  .nav-item.is-active > .nav-link { box-shadow: none; }
  .nav-toggle { width: 46px; height: 46px; background: var(--mint-2); }
  .nav-panel { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; border: 0; padding: 0 0 10px; width: 100%; max-width: none; display: none; }
  .nav-item.open .nav-panel { display: block; }
  .nav-panel a { font-size: 16px; padding: 10px 12px; }
  .nav-mobile-extra { display: grid; gap: 10px; margin-top: 22px; }
  .nav-mobile-info { color: var(--muted); font-size: 15px; margin: 6px 0; }
  .lang-mobile { justify-self: start; padding: 6px 14px; }
  .head-actions { margin-left: auto; }
  body.nav-open { overflow: hidden; }
}
@media (max-width: 480px) {
  .wrap { padding: 0 16px; }
  :root { --head-h: 66px; }
  .brand-text b { font-size: 17px; }
  .brand-text small { font-size: 12px; }
  .brand img { width: 38px; }
}

/* ---------- home hero */
.hero { position: relative; background: linear-gradient(180deg, var(--mint-2) 0%, #fff 100%); padding: 48px 0 36px; overflow: hidden; }
.hero::before { content: ""; position: absolute; width: 620px; height: 620px; border-radius: 50%; right: -180px; top: -220px;
  background: radial-gradient(circle at 30% 30%, var(--mint-3), transparent 68%); opacity: .7; }
.hero-in { position: relative; display: grid; grid-template-columns: 1.08fr .92fr; gap: 48px; align-items: center; }
.kicker { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; font-size: 14px; color: var(--brand-ink);
  background: #fff; border: 1px solid var(--mint-3); padding: 6px 14px; border-radius: 999px; margin-bottom: 20px; }
.kicker .ico { color: var(--accent); }
.hero h1 { font-size: clamp(24px, 2.6vw, 34px); line-height: 1.3; font-weight: 800; }
.hero-lead { font-size: clamp(17px, 1.5vw, 19px); color: var(--muted); max-width: 40em; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }
.hero-photos { position: relative; min-height: 440px; }
.hero-photos img { position: absolute; object-fit: cover; box-shadow: var(--shadow); }
.hp-main { right: 0; top: 0; width: 86%; height: 400px; border-radius: 200px 200px 28px 28px; }
.hp-small { width: 168px; height: 168px; border-radius: 50%; border: 6px solid #fff; }
.hp-small1 { left: 0; bottom: 0; }
.hp-small2 { left: 10%; top: 26px; width: 110px; height: 110px; }
.blob { position: absolute; border-radius: 50%; z-index: -1; }
.blob1 { width: 90px; height: 90px; background: var(--accent-soft); right: -20px; bottom: 10px; }
.blob2 { width: 40px; height: 40px; background: var(--mint-3); left: 42%; bottom: -6px; }
.dirs { position: relative; display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; margin-top: 40px; }
.dir { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 16px 18px; background: #fff; border: 1px solid var(--line);
  border-radius: var(--radius-sm); text-decoration: none; color: var(--ink); font-weight: 700; box-shadow: var(--shadow-sm); transition: .2s; }
.dir .ico { color: var(--brand); transition: transform .2s; }
.dir:hover { border-color: var(--brand); color: var(--brand-ink); }
.dir:hover .ico { transform: translateX(3px); }
@media (max-width: 900px) {
  .hero { padding-top: 28px; }
  .hero-in { grid-template-columns: 1fr; gap: 28px; }
  .hero-photos { min-height: 330px; max-width: 520px; width: 100%; margin: 0 auto; }
  .hp-main { height: 300px; }
  .hp-small { width: 130px; height: 130px; }
  .hp-small2 { width: 84px; height: 84px; }
  .dirs { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 480px) { .hero-actions .btn { width: 100%; } .dirs { grid-template-columns: 1fr; } }

.home-main { padding: 20px 0 40px; }
.b-intro { position: relative; background: var(--mint-2); border: 1px solid var(--line); border-left: 5px solid var(--brand);
  border-radius: var(--radius); padding: 26px 30px; font-size: 18px; margin: 28px 0 8px; }
.b-intro p:last-child { margin: 0; }
.b-intro strong { color: var(--ink); }

/* ---------- inner pages */
.page-head { background: linear-gradient(120deg, var(--mint) 0%, var(--mint-2) 60%, #fff 100%); padding: 26px 0 30px; border-bottom: 1px solid var(--line); }
.page-head h1 { margin: 6px 0 0; max-width: 24em; }
.crumbs ol { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 4px 0; font-size: 14px; color: var(--muted); }
.crumbs li + li::before { content: "/"; margin: 0 8px; color: var(--mint-3); color: #9bbab3; }
.crumbs a { color: var(--brand-dark); text-decoration: none; }
.crumbs a:hover { text-decoration: underline; }
.page { padding: 36px 0 56px; }
.page-grid { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 48px; align-items: start; }
.page-wide .page-grid { grid-template-columns: minmax(0, 1fr); }
.content > section:first-child { margin-top: 0; }
.side { position: sticky; top: calc(var(--head-h) + 58px); display: grid; gap: 18px; }
.side-card { border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; background: #fff; }
.side-title { font-weight: 800; color: var(--ink); font-size: 17px; margin-bottom: 10px; }
.side-title a { color: inherit; text-decoration: none; }
.side-nav ul { list-style: none; padding: 0; margin: 0; }
.side-nav a { display: block; padding: 8px 10px; margin: 0 -10px; border-radius: 9px; color: var(--text); text-decoration: none; font-size: 15px; line-height: 1.4; }
.side-nav a:hover { background: var(--mint-2); color: var(--brand-ink); }
.side-nav a[aria-current] { background: var(--mint); color: var(--brand-ink); font-weight: 700; }
.side-cta { background: var(--mint-2); display: grid; gap: 10px; }
.side-cta p { margin: 0; font-size: 15px; color: var(--muted); }
.side-cta .side-title { margin: 0; }
.side-phone { display: flex; align-items: center; gap: 8px; font-weight: 800; font-size: 19px; color: var(--ink); text-decoration: none; margin: 4px 0; }
.side-phone .ico { color: var(--brand); }
@media (max-width: 1000px) {
  .page-grid { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  .side { position: static; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
}

/* ---------- content sections */
.content > section, .home-main section { margin: 52px 0; }
.content > section:last-child { margin-bottom: 0; }
.prose { max-width: 50em; }
.prose > :last-child { margin-bottom: 0; }
.prose h2 { margin-top: 1.4em; }
.prose h3, .prose h4 { margin: 1.4em 0 .5em; }
.prose ul, .prose ol { margin: 0 0 1em; }
.prose li { margin: .3em 0; }
.prose ul li::marker { color: var(--brand); }
.prose table { width: 100%; border-collapse: collapse; margin: 1em 0; font-size: 15px; display: block; overflow-x: auto; }
.prose td, .prose th { border: 1px solid var(--line); padding: 8px 10px; vertical-align: top; }
.prose strong { color: var(--ink); }
.intro { margin-bottom: 18px; }
.lead-muted { color: var(--muted); }
.prose-row { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 36px; align-items: start; }
.aside-photo { margin: 0; }
.aside-photo img { border-radius: var(--radius); width: 100%; aspect-ratio: 3 / 4; object-fit: cover; box-shadow: var(--shadow-sm); }
.aside-photo figcaption { margin-top: 12px; font-size: 15px; color: var(--muted); font-weight: 600; text-align: center; }
@media (max-width: 760px) { .prose-row { grid-template-columns: 1fr; } .aside-photo { max-width: 360px; } }

/* check lists */
.checks { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; max-width: 52em; }
.checks li { position: relative; padding: 12px 16px 12px 52px; background: var(--mint-2); border-radius: var(--radius-sm); }
.checks li::before { content: ""; position: absolute; left: 14px; top: 13px; width: 24px; height: 24px; border-radius: 50%;
  background: var(--brand) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6.5 12.5l3.5 3.5 7.5-8' fill='none' stroke='white' stroke-width='2.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 18px no-repeat; }
.checks li > strong { display: block; margin-bottom: 4px; }
.checks li p:last-child { margin-bottom: 0; }
.checks.small li { background: none; padding: 4px 0 4px 32px; }
.checks.small li::before { left: 0; top: 7px; width: 20px; height: 20px; background-size: 15px; }

/* reasons (home) */
.reasons { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 14px; counter-reset: r; }
.reasons li { counter-increment: r; position: relative; padding: 58px 20px 22px; border-radius: var(--radius); background: #fff; border: 1px solid var(--line);
  box-shadow: var(--shadow-sm); font-weight: 700; color: var(--ink); line-height: 1.4; }
.reasons li::before { content: counter(r, decimal-leading-zero); position: absolute; left: 20px; top: 18px; font-size: 22px; font-weight: 800; color: var(--brand); }
.reasons li:nth-child(odd)::after { content: ""; position: absolute; right: 16px; top: 18px; width: 12px; height: 12px; border-radius: 50%; background: var(--accent-soft); }

/* cards */
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 18px; }
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow-sm); }
.card h3 { color: var(--brand-ink); }
.card-text > :last-child { margin-bottom: 0; }
.card-img img { border-radius: var(--radius-sm); margin-bottom: 14px; }
.notes { display: grid; gap: 16px; }
.notes .card { display: grid; grid-template-columns: 56px 1fr; gap: 0 18px; background: var(--mint-2); box-shadow: none; }
.notes .card::before { content: "?"; grid-row: span 3; width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center;
  background: #fff; color: var(--brand); font-weight: 800; font-size: 26px; border: 2px solid var(--mint-3); }
.notes .card > * { grid-column: 2; }
@media (max-width: 560px) { .notes .card { grid-template-columns: 1fr; } .notes .card::before { grid-row: auto; margin-bottom: 12px; width: 44px; height: 44px; font-size: 20px; } }

/* steps & timeline */
.steps, .timeline { list-style: none; padding: 0; margin: 0; counter-reset: s; display: grid; gap: 14px; max-width: 54em; }
.steps > li, .timeline > li { counter-increment: s; position: relative; padding-left: 64px; min-height: 44px; }
.steps > li::before, .timeline > li::before { content: counter(s); position: absolute; left: 0; top: 0; width: 44px; height: 44px; border-radius: 14px;
  background: var(--brand); color: #fff; font-weight: 800; display: grid; place-items: center; font-size: 18px; }
.step-body { background: var(--mint-2); border-radius: var(--radius-sm); padding: 14px 18px; }
.step-body h3 { margin-bottom: .35em; font-size: 18px; }
.step-body > :last-child { margin-bottom: 0; }
.timeline > li::before { border-radius: 50%; background: #fff; color: var(--brand); border: 3px solid var(--brand); }
.timeline > li:not(:last-child)::after { content: ""; position: absolute; left: 21px; top: 48px; bottom: -14px; width: 3px; background: var(--mint-3); }
.timeline .step-body { background: none; padding: 6px 0 10px; }
.timeline .step-body h3 { color: var(--brand-ink); font-size: 20px; }

/* stats */
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 16px; }
.stat { padding: 24px; border-radius: var(--radius); background: var(--mint); }
.stat b { display: block; font-size: 40px; line-height: 1; font-weight: 800; color: var(--brand-dark); margin-bottom: 10px; }
.stat span { color: var(--text); font-size: 15.5px; }

/* galleries */
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 14px; }
.gallery figure { margin: 0; }
.zoom { display: block; border-radius: var(--radius-sm); overflow: hidden; background: var(--mint-2); cursor: zoom-in; }
.zoom img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; transition: transform .35s; }
.zoom:hover img { transform: scale(1.04); }
.gallery.books { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); }
.gallery.books .zoom, .gallery.docs .zoom { background: var(--mint-2); padding: 14px; }
.gallery.books .zoom img, .gallery.docs .zoom img { aspect-ratio: 3 / 4; object-fit: contain; }
.gallery.books .zoom:hover img, .gallery.docs .zoom:hover img { transform: scale(1.02); }
.gallery.captioned { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }
.gallery figcaption { font-size: 14.5px; line-height: 1.45; color: var(--muted); margin-top: 10px; }
.b-gallery .gallery:not(.books):not(.docs):not(.captioned) { grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }

/* videos */
.videos { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 16px; }
.videos.one { grid-template-columns: minmax(0, 760px); }
.video { border-radius: var(--radius); overflow: hidden; background: #0d1f1c; aspect-ratio: 16 / 9; }
.video video, .video iframe { width: 100%; height: 100%; border: 0; display: block; object-fit: contain; background: #0d1f1c; }

/* link tiles */
.tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 14px; }
.tile { position: relative; display: flex; align-items: center; min-height: 92px; padding: 18px 52px 18px 20px; border-radius: var(--radius);
  background: #fff; border: 1.5px solid var(--line); color: var(--ink); font-weight: 700; text-decoration: none; line-height: 1.35; transition: .2s; }
.tile::after { content: ""; position: absolute; right: 18px; top: 50%; width: 26px; height: 26px; margin-top: -13px; border-radius: 50%;
  background: var(--mint) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M9 6l6 6-6 6' fill='none' stroke='%23077a65' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 16px no-repeat; transition: .2s; }
.tile:hover { border-color: var(--brand); color: var(--brand-ink); box-shadow: var(--shadow-sm); }
.tile:hover::after { background-color: var(--mint-3); transform: translateX(2px); }

/* CTA band */
.cta-box { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; padding: 30px 34px; border-radius: 24px;
  background: var(--brand) radial-gradient(circle at 100% 0%, rgba(255,255,255,.18), transparent 50%); color: #fff; }
.cta-box h2 { color: #fff; margin-bottom: 6px; font-size: clamp(22px, 2.2vw, 28px); }
.cta-box p { margin: 0; opacity: .92; max-width: 38em; }
.cta-box .btn { --b: #fff; color: var(--brand-ink); background: #fff; }
.cta-box .btn:hover { background: var(--mint); --b: var(--mint); color: var(--brand-ink); }
.cta-box .btn-ghost { background: transparent; color: #fff; --b: rgba(255,255,255,.7); }
.cta-box .btn-ghost:hover { background: rgba(255,255,255,.12); color: #fff; }
.cta-actions { display: flex; flex-wrap: wrap; gap: 12px; }
@media (max-width: 560px) { .cta-box { padding: 24px 20px; } .cta-box .btn, .cta-actions { width: 100%; } }

/* FAQ */
.faq { display: grid; gap: 10px; max-width: 54em; }
.faq details { border: 1px solid var(--line); border-radius: var(--radius-sm); background: #fff; }
.faq summary { cursor: pointer; list-style: none; padding: 16px 52px 16px 20px; font-weight: 700; color: var(--ink); position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 18px; top: 50%; transform: translateY(-50%); width: 26px; height: 26px; border-radius: 50%;
  background: var(--mint); color: var(--brand-dark); display: grid; place-items: center; font-weight: 800; }
.faq details[open] summary::after { content: "–"; }
.faq details[open] { background: var(--mint-2); }
.faq .prose { padding: 0 20px 18px; }

/* team */
.team { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 20px; }
.person { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; }
.person-photo img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: center 20%; }
.person h3 { margin: 16px 18px 4px; font-size: 18px; }
.person h3 a { color: var(--ink); text-decoration: none; }
.person h3 a:hover { color: var(--brand); }
.role { margin: 0 18px 14px; color: var(--brand-dark); font-weight: 600; font-size: 15px; }
.person-about { margin: 0 18px 18px; font-size: 14.5px; color: var(--muted); }
.person-about > :last-child { margin: 0; }

/* partners */
.partners { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 16px; }
.partner { display: flex; flex-direction: column; gap: 14px; padding: 22px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff;
  color: var(--ink); text-decoration: none; font-weight: 700; text-align: center; transition: .2s; }
.partner-logo { height: 110px; display: grid; place-items: center; }
.partner-logo img { max-height: 110px; width: auto; max-width: 100%; object-fit: contain; }
a.partner:hover { border-color: var(--brand); box-shadow: var(--shadow-sm); }
.partner p { margin: 0; font-size: 15px; line-height: 1.4; }

/* files */
.file { display: flex; align-items: center; gap: 16px; padding: 18px 20px; border-radius: var(--radius); border: 1.5px solid var(--line); text-decoration: none; color: var(--ink); font-weight: 700; max-width: 640px; }
.file:hover { border-color: var(--brand); }
.file-ico { flex: none; width: 52px; height: 60px; border-radius: 8px; background: var(--accent-soft); color: var(--accent); display: grid; place-items: center; font-size: 13px; font-weight: 800; }

/* contacts & map */
.contact-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 16px; }
.contact-card { padding: 22px; border-radius: var(--radius); background: var(--mint-2); border: 1px solid var(--line); }
.contact-card p { margin: 0 0 6px; }
.cc-ico { display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; background: #fff; color: var(--brand); margin-bottom: 12px; }
.cc-label { font-size: 13.5px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); font-weight: 700; margin: 0 0 4px; }
.cc-value { font-weight: 700; color: var(--ink); font-size: 17px; }
.cc-value a { color: inherit; text-decoration: none; }
.clinic-note { display: flex; gap: 14px; margin: 18px 0; padding: 18px 20px; border-radius: var(--radius); border: 1.5px dashed var(--mint-3); }
.clinic-note > .ico { width: 26px; height: 26px; color: var(--brand); margin-top: 2px; }
.clinic-note p:last-child { margin: 0; }
.map { border-radius: var(--radius); overflow: hidden; background: var(--mint); aspect-ratio: 16 / 10; }
.map-big { aspect-ratio: 16 / 7; }
.map iframe { width: 100%; height: 100%; border: 0; display: block; }
.map-legend { list-style: none; padding: 0; margin: 12px 0 6px; display: flex; flex-wrap: wrap; gap: 8px 22px; font-size: 15px; }
.map-legend li { display: flex; align-items: center; gap: 8px; }
.pin { width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; color: #fff; font-size: 12px; font-weight: 800; background: #3fa34d; }
.pin2 { background: #1e88e5; }
@media (max-width: 700px) { .map, .map-big { aspect-ratio: 4 / 3.4; } }
.b-where { padding: 32px; border-radius: 24px; background: var(--mint-2); border: 1px solid var(--line); }
.where-grid { display: grid; grid-template-columns: 340px 1fr; gap: 32px; align-items: start; }
.where-info p { margin: 0 0 14px; }
.big-link { font-size: 22px; font-weight: 800; color: var(--ink); text-decoration: none; }
@media (max-width: 860px) { .where-grid { grid-template-columns: 1fr; } .b-where { padding: 22px 18px; } }
.sitemap ul ul { margin: .3em 0 .6em; }

/* ---------- footer */
.site-footer { background: var(--footer); color: #c9dcd8; padding: 56px 0 24px; margin-top: 20px; font-size: 15.5px; }
.site-footer a { color: #e6f3f0; text-decoration: none; }
.site-footer a:hover { color: #7ee0c9; }
.f-top { display: grid; grid-template-columns: 340px 1fr; gap: 48px; }
.brand-light { color: #fff; margin-bottom: 22px; }
.brand-light .brand-text small { color: #9fbfb8; }
.brand-light img { background: #fff; border-radius: 14px; padding: 5px; width: 54px; }
.f-contacts { list-style: none; padding: 0; margin: 0 0 22px; display: grid; gap: 12px; }
.f-contacts li { display: flex; gap: 10px; align-items: flex-start; }
.f-contacts .ico { color: #7ee0c9; margin-top: 4px; }
.f-btns { display: flex; gap: 10px; align-items: center; }
.f-menu { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 28px 24px; }
.f-title { font-weight: 800; color: #fff; margin-bottom: 10px; }
.f-col ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 7px; }
.f-col li a { color: #c9dcd8; line-height: 1.4; display: inline-block; }
.f-clinic { margin-top: 36px; padding: 18px 22px; border-radius: var(--radius); background: rgba(255,255,255,.06); }
.f-clinic p { margin: 0; }
.f-clinic .f-title { margin-bottom: 4px; }
.f-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px 24px; margin-top: 28px; padding-top: 20px; border-top: 1px solid rgba(255,255,255,.12); font-size: 14px; color: #9fbfb8; }
.f-bottom p { margin: 0; }
.f-legal { display: flex; flex-wrap: wrap; gap: 6px 20px; }
.site-footer .f-legal a { color: #9fbfb8; }
@media (max-width: 900px) { .f-top { grid-template-columns: 1fr; gap: 32px; } }

.mobile-bar { display: none; }
@media (max-width: 760px) {
  .mobile-bar { position: fixed; z-index: 40; left: 0; right: 0; bottom: 0; display: grid; grid-template-columns: repeat(3, 1fr);
    background: #fff; border-top: 1px solid var(--line); box-shadow: 0 -6px 20px -10px rgba(13,56,50,.25); padding-bottom: env(safe-area-inset-bottom); }
  .mobile-bar a, .mobile-bar button { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 9px 4px 8px; border: 0; background: none;
    color: var(--brand-ink); font-size: 12.5px; font-weight: 700; text-decoration: none; cursor: pointer; }
  .mobile-bar .ico { width: 22px; height: 22px; }
  .mobile-bar button { color: #fff; background: var(--brand); }
  body { padding-bottom: 64px; }
}

/* ---------- modal form */
.modal { border: 0; padding: 0; border-radius: 24px; width: min(480px, calc(100vw - 24px)); max-height: calc(100dvh - 24px); box-shadow: 0 30px 80px -20px rgba(0,0,0,.4); color: var(--text); }
.modal::backdrop { background: rgba(13, 40, 36, .55); backdrop-filter: blur(3px); }
.lead-form { position: relative; padding: 32px 30px 28px; }
.modal-close { position: absolute; right: 14px; top: 14px; width: 40px; height: 40px; border-radius: 50%; border: 0; background: var(--mint); color: var(--brand-ink); cursor: pointer; display: grid; place-items: center; }
.modal-kicker { display: inline-flex; gap: 6px; align-items: center; font-weight: 800; font-size: 13px; letter-spacing: .08em; color: var(--brand); margin-bottom: 8px; }
.modal-kicker .ico { color: var(--accent); }
.lead-form h2 { font-size: 26px; margin-bottom: 8px; padding-right: 40px; }
.modal-lead { color: var(--muted); font-size: 15.5px; }
.field { display: block; margin-bottom: 14px; }
.field span { display: block; font-weight: 700; font-size: 14.5px; margin-bottom: 6px; color: var(--ink); }
.field input, .field textarea { width: 100%; font: inherit; color: var(--ink); padding: 12px 14px; border: 1.5px solid var(--line); border-radius: 12px; background: var(--mint-2); transition: .15s; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--brand); background: #fff; box-shadow: 0 0 0 4px rgba(11,158,130,.14); }
.field textarea { resize: vertical; min-height: 84px; }
.field.invalid input { border-color: #d64545; }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; color: var(--muted); margin: 6px 0 16px; line-height: 1.45; }
.check input { width: 20px; height: 20px; accent-color: var(--brand); flex: none; margin-top: 1px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-msg { color: #b23a3a; font-weight: 600; font-size: 15px; }
.lead-form-done { text-align: center; padding: 20px 0 8px; }
.done-ico { width: 72px; height: 72px; border-radius: 50%; background: var(--mint); color: var(--brand); display: grid; place-items: center; margin: 0 auto 16px; }
.done-ico .ico { width: 36px; height: 36px; }

/* ---------- lightbox */
.lightbox { position: fixed; inset: 0; z-index: 90; background: rgba(8, 24, 21, .92); display: grid; grid-template-columns: 64px 1fr 64px; align-items: center; }
.lightbox[hidden] { display: none; }
.lightbox figure { margin: 0; display: grid; justify-items: center; gap: 10px; max-height: 100dvh; padding: 24px 0; }
.lightbox img { max-width: 100%; max-height: calc(100dvh - 110px); object-fit: contain; border-radius: 8px; }
.lightbox figcaption { color: #dfeeea; font-size: 15px; text-align: center; max-width: 60em; }
.lightbox button { border: 0; background: rgba(255,255,255,.12); color: #fff; width: 48px; height: 48px; border-radius: 50%; cursor: pointer; display: grid; place-items: center; justify-self: center; }
.lightbox button:hover { background: rgba(255,255,255,.25); }
.lb-close { position: absolute; top: 14px; right: 14px; }
.lb-prev .ico { transform: rotate(90deg); }
.lb-next .ico { transform: rotate(-90deg); }
@media (max-width: 600px) { .lightbox { grid-template-columns: 1fr; } .lb-prev, .lb-next { position: absolute; bottom: 18px; } .lb-prev { left: 30%; } .lb-next { right: 30%; } }

@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition: none !important; scroll-behavior: auto !important; } }
@media print { .site-header, .site-footer, .side, .mobile-bar, .b-cta, .modal { display: none !important; } }
.gallery.single { display: block; max-width: 900px; }
.gallery.single .zoom { padding: 18px; }
.gallery.single .zoom img, .gallery.books.single .zoom img { aspect-ratio: auto; object-fit: contain; max-height: 640px; margin: 0 auto; width: auto; }
.home-main .b-gallery .gallery:not(.books):not(.docs):not(.captioned) { grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); }

/* fit the header row on 1100–1440 px screens */
.mainbar-in { gap: 14px; }
.nav-link { font-size: 15px; padding: 10px 7px; }
.nav-item.has-sub .nav-link { padding-right: 0; }
.nav-toggle { padding: 8px 4px; }
@media (min-width: 1201px) and (max-width: 1360px) { .brand-text small { display: none; } .nav-link { font-size: 14.5px; padding: 10px 5px; } }
@media (max-width: 1200px) { .nav-link { font-size: 18px; padding: 14px 4px; } .nav-toggle { padding: 0; } }
.stats { grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); }
@media (max-width: 600px) {
  .f-menu { grid-template-columns: 1fr 1fr; gap: 24px 16px; }
  .hero h1 { font-size: 22px; }
  .dirs { grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 28px; }
  .dir { padding: 14px; font-size: 15px; }
  .b-intro { padding: 20px 18px; font-size: 16.5px; margin-top: 8px; }
  .content > section, .home-main section { margin: 40px 0; }
  .page-head { padding: 18px 0 22px; }
}
.site-header .wrap { max-width: 1360px; }
@media (min-width: 1201px) and (max-width: 1400px) { .brand-text small { display: none; } }
@media (max-width: 640px) { .head-cta { display: none; } }
.home-main section.b-intro { margin-top: 12px; }
.home-main { padding-top: 8px; }

/* large portrait next to text (home: "Чем мы отличаемся") */
.photo-lg .prose-row { grid-template-columns: minmax(0, 1fr) 440px; gap: 44px; }
.photo-lg .aside-photo img { aspect-ratio: 2 / 3; object-position: center top; }
@media (max-width: 1000px) { .photo-lg .prose-row { grid-template-columns: minmax(0, 1fr) 340px; gap: 28px; } }
@media (max-width: 760px) { .photo-lg .prose-row { grid-template-columns: 1fr; } .photo-lg .aside-photo { max-width: 440px; } }

/* leader: photo centred above the name */
.b-leader > h2 { text-align: center; }
.leader-photo { margin: 0 auto 22px; width: 300px; max-width: 80%; }
.leader-photo img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 50%; border: 8px solid var(--mint); box-shadow: var(--shadow-sm); }
.b-leader > .prose { margin: 0 auto; }

/* two photos side by side, same height, not clickable */
.photo-pair { display: flex; gap: 18px; align-items: stretch; }
.photo-pair figure { margin: 0; flex: var(--r, 1) 1 0; min-width: 0; }
.photo-pair figure:first-child { --r: 1.333; }
.photo-pair figure:last-child { --r: 0.727; }
.photo-pair img { width: 100%; height: 100%; aspect-ratio: auto; object-fit: cover; border-radius: var(--radius); box-shadow: var(--shadow-sm); }
@media (max-width: 600px) { .photo-pair { flex-direction: column; } .photo-pair figure { flex: none; } .photo-pair img { height: auto; } }

/* ---------- photo layout (columns and tile shape are set by the build per gallery) */
.gallery.arranged { --gap: 16px; display: flex; flex-wrap: wrap; justify-content: center; gap: var(--gap); }
.gallery.arranged > * { flex: 0 0 calc((100% - (var(--cols) - 1) * var(--gap)) / var(--cols)); min-width: 0; }
.gallery.arranged .zoom img { aspect-ratio: var(--ar); object-fit: cover; object-position: center 30%; }
.gallery.arranged.docs .zoom img, .gallery.arranged.books .zoom img { object-fit: contain; object-position: center; }
.gallery.arranged .zoom { border-radius: var(--radius); box-shadow: var(--shadow-sm); }
@media (max-width: 760px) {
  .gallery.arranged { --gap: 12px; }
  .gallery.arranged > * { flex-basis: calc((100% - (min(var(--cols), 2) - 1) * var(--gap)) / min(var(--cols), 2)); }
}

/* side photo next to text: whole picture, column width by orientation, follows the reader */
.prose-row { align-items: start; }
.aside-photo { position: sticky; top: calc(var(--head-h) + 60px); }
.aside-photo img, .photo-lg .aside-photo img { aspect-ratio: auto; object-fit: contain; max-height: 75vh; width: 100%; }
.photo-tall .prose-row { grid-template-columns: minmax(0, 1fr) 300px; }
.photo-square .prose-row { grid-template-columns: minmax(0, 1fr) 320px; }
.photo-wide .prose-row { grid-template-columns: minmax(0, 1fr) 380px; }
.photo-lg.photo-tall .prose-row { grid-template-columns: minmax(0, 1fr) 420px; }
@media (max-width: 1000px) {
  .photo-tall .prose-row, .photo-square .prose-row, .photo-wide .prose-row, .photo-lg.photo-tall .prose-row { grid-template-columns: minmax(0, 1fr) 280px; }
}
@media (max-width: 760px) {
  .photo-tall .prose-row, .photo-square .prose-row, .photo-wide .prose-row, .photo-lg.photo-tall .prose-row { grid-template-columns: 1fr; }
  .aside-photo { position: static; max-width: 420px; margin: 0 auto; }
  .aside-photo img { max-height: none; }
}

/* team and partners: even rows, last row centred */
.team { display: flex; flex-wrap: wrap; justify-content: center; gap: 20px; }
.team .person { flex: 0 0 calc((100% - 40px) / 3); }
.partners { display: flex; flex-wrap: wrap; justify-content: center; gap: 16px; }
.partners .partner { flex: 0 0 calc((100% - 32px) / 3); }
@media (max-width: 900px) { .team .person, .partners .partner { flex-basis: calc((100% - 20px) / 2); } }
@media (max-width: 520px) { .team .person, .partners .partner { flex-basis: 100%; } .team .person { max-width: 380px; } }

/* single wide pictures (book sets, diagrams) centred */
.gallery.single { margin: 0 auto; }
.b-videos .videos.one { grid-template-columns: minmax(0, 820px); justify-content: center; }
.gallery.arranged { margin-left: auto; margin-right: auto; }
.b-gallery > h2, .b-gallery > .intro { text-align: left; }
@media (max-width: 760px) { .aside-photo { width: 100%; justify-self: center; } .aside-photo.is-tall { max-width: 320px; } }
