:root {
  --paper: #F7F3EC;
  --card: #FFFFFF;
  --navy: #1D3F66;
  --navy-2: #2A5687;
  --body: #3D4A5A;
  --muted: #6F7C8C;
  --teal: #2C9A93;
  --teal-soft: #DCEFEC;
  --peach: #FBE6D6;
  --blue-soft: #E5ECF7;
  --line: #E4DED3;
  --wa: #1FA855;
  --radius: 22px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; }
body {
  background: var(--paper);
  color: var(--body);
  font-family: "IBM Plex Sans Arabic", system-ui, sans-serif;
  font-size: 17px;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3 {
  font-family: "Baloo Bhaijaan 2", sans-serif;
  color: var(--navy);
  line-height: 1.25;
}
.wrap { width: min(1120px, 100% - 32px); margin-inline: auto; }
section { padding: 84px 0; }


/* buttons */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  font-weight: 600; font-size: 17px;
  padding: 13px 24px;
  border-radius: 999px;
  transition: transform .15s ease, box-shadow .15s ease, background .15s;
  white-space: nowrap;
}
.btn svg { width: 20px; height: 20px; flex: none; }
.btn-wa { background: var(--wa); color: #fff; box-shadow: 0 6px 18px rgba(31,168,85,.25); }
.btn-wa:hover { transform: translateY(-2px); }
.btn-ghost { border: 1.5px solid var(--navy); color: var(--navy); }
.btn-ghost:hover { background: var(--navy); color: #fff; }

/* header */
header {
  position: sticky; top: 0; z-index: 20;
  background: rgba(247,243,236,.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.nav { display: flex; align-items: center; justify-content: space-between; height: 72px; gap: 16px; }
.brand { display: flex; align-items: center; gap: 12px; }
.brand img { width: 62px; }
.brand b { font-family: "Baloo Bhaijaan 2", sans-serif; font-size: 20px; color: var(--navy); display: block; line-height: 1.2; }
.brand small { font-size: 13px; color: var(--muted); display: block; line-height: 1.3; }
.links { display: flex; gap: 26px; font-weight: 500; color: var(--navy); }
.links a { position: relative; }
.links a:hover { color: var(--teal); }
.nav .btn { padding: 9px 18px; font-size: 15px; }

/* hero */
.hero { padding: 64px 0 72px; }
.hero-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 56px; align-items: center; }
.eyebrow {
  display: inline-block;
  background: var(--teal-soft);
  color: var(--teal);
  font-weight: 600; font-size: 15px;
  padding: 4px 14px;
  border-radius: 999px;
}
.hero h1 { font-size: clamp(40px, 6vw, 66px); font-weight: 800; margin: 18px 0 14px; }
.hero h1 span { color: var(--teal); }
.hero p.lead { font-size: 20px; max-width: 34em; }
.hero .actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 30px; }
.creds { display: flex; flex-wrap: wrap; gap: 10px 22px; margin-top: 34px; color: var(--navy); font-weight: 500; font-size: 15px; }
.creds span { display: inline-flex; align-items: center; gap: 8px; }
.creds svg { width: 18px; height: 18px; color: var(--teal); }

.hero-art { position: relative; }
.art-panel {
  aspect-ratio: 1 / 1.05;
  background: var(--teal-soft);
  border-radius: 44% 56% 48% 52% / 52% 44% 56% 48%;
  display: grid; place-items: center;
  position: relative;
}
.art-panel img { width: 68%; filter: drop-shadow(0 18px 30px rgba(29,63,102,.15)); }
.float {
  position: absolute;
  background: var(--card);
  border-radius: 18px;
  padding: 12px 16px;
  box-shadow: 0 10px 30px rgba(29,63,102,.10);
  display: flex; align-items: center; gap: 12px;
  font-size: 15px; line-height: 1.4;
}
.float b { color: var(--navy); display: block; font-size: 16px; }
.float .dot { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; flex: none; }
.float .dot svg { width: 22px; height: 22px; }
.f1 { top: -4%; left: -4%; }
.f1 .dot { background: var(--peach); color: #C0702A; }
.f2 { bottom: -4%; right: -2%; }
.f2 .dot { background: var(--blue-soft); color: var(--navy); }

/* section heads */
.head { max-width: 640px; margin-bottom: 40px; }
.head h2 { font-size: clamp(30px, 4vw, 42px); font-weight: 800; margin-top: 8px; }
.head p { margin-top: 10px; font-size: 18px; }
.kicker { color: var(--teal); font-weight: 600; font-size: 15px; }

/* services */
.services { background: var(--card); }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.svc {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px 26px;
  background: var(--paper);
  transition: transform .2s ease, box-shadow .2s ease;
}
.svc:hover { transform: translateY(-4px); box-shadow: 0 14px 30px rgba(29,63,102,.08); }
.svc .ico { width: 54px; height: 54px; border-radius: 16px; display: grid; place-items: center; margin-bottom: 16px; }
.svc .ico svg { width: 28px; height: 28px; }
.svc h3 { font-size: 23px; font-weight: 700; margin-bottom: 6px; }
.svc p { font-size: 16px; }
.t1 { background: var(--teal-soft); color: var(--teal); }
.t2 { background: var(--peach); color: #C0702A; }
.t3 { background: var(--blue-soft); color: var(--navy-2); }

/* about */
.about-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 56px; align-items: center; }
.about-card {
  background: var(--navy);
  color: #fff;
  border-radius: 28px;
  padding: 40px 36px;
  position: relative;
  overflow: hidden;
}
.about-card::after {
  content: ""; position: absolute;
  width: 240px; height: 240px; border-radius: 50%;
  left: -80px; bottom: -90px;
  background: rgba(255,255,255,.06);
}
.about-card h3 { color: #fff; font-size: 30px; }
.about-card .sub { color: #B9C9DC; margin-bottom: 22px; }
.about-card ul { list-style: none; display: grid; gap: 14px; position: relative; z-index: 1; }
.about-card li { display: flex; gap: 12px; align-items: flex-start; }
.about-card li svg { width: 22px; height: 22px; flex: none; margin-top: 4px; color: #7FD3CB; }
.about-text p + p { margin-top: 14px; }

/* steps */
.steps { background: var(--card); }
.steps-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; counter-reset: s; }
.step { position: relative; padding: 30px 26px; border-radius: var(--radius); background: var(--paper); border: 1px solid var(--line); }
.step::before {
  counter-increment: s; content: counter(s, arabic-indic);
  font-family: "Baloo Bhaijaan 2", sans-serif; font-weight: 800;
  font-size: 22px; color: #fff; background: var(--teal);
  width: 44px; height: 44px; border-radius: 50%;
  display: grid; place-items: center; margin-bottom: 14px;
}
.step h3 { font-size: 22px; margin-bottom: 4px; }

/* awareness */
.aware-grid { display: grid; grid-template-columns: 380px 1fr; gap: 56px; align-items: center; }
.aware-grid img { border-radius: 18px; box-shadow: 0 18px 40px rgba(29,63,102,.14); transform: rotate(-1.5deg); }
.aware-text p { font-size: 18px; }
.aware-text .btn { margin-top: 24px; }

/* faq */
.faq { background: var(--card); }
.faq-list { max-width: 820px; display: grid; gap: 12px; }
details { border: 1px solid var(--line); border-radius: 16px; background: var(--paper); padding: 4px 22px; }
summary {
  cursor: pointer; list-style: none;
  font-weight: 600; font-size: 18px; color: var(--navy);
  padding: 16px 0;
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
}
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; font-size: 26px; color: var(--teal); font-weight: 400; line-height: 1; }
details[open] summary::after { content: "−"; }
details p { padding: 0 0 18px; }

/* contact */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.c-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 30px; }
.c-row { display: flex; gap: 14px; align-items: flex-start; padding: 14px 0; border-bottom: 1px solid var(--line); }
.c-row:last-child { border-bottom: 0; }
.c-row svg { width: 22px; height: 22px; color: var(--teal); flex: none; margin-top: 5px; }
.c-row .btn svg { color: #fff; width: 20px; height: 20px; margin-top: 0; }
.c-row b { color: var(--navy); display: block; }
.phone { direction: ltr; unicode-bidi: isolate; font-weight: 600; color: var(--navy); }
.map {
  border-radius: var(--radius);
  background: var(--teal-soft);
  min-height: 340px;
  overflow: hidden;
  border: 1px solid var(--line);
}
.map iframe { width: 100%; height: 100%; min-height: 340px; border: 0; display: block; }
.map-link { color: var(--teal); font-weight: 600; font-size: 15px; }
.map-link:hover { text-decoration: underline; }

footer { background: var(--navy); color: #B9C9DC; padding: 34px 0; font-size: 15px; }
footer .wrap { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
footer b { color: #fff; }

/* floating WhatsApp on phones */
.wa-float {
  position: fixed; bottom: 18px; left: 18px; z-index: 30;
  width: 58px; height: 58px; border-radius: 50%;
  background: var(--wa); color: #fff;
  display: none; place-items: center;
  box-shadow: 0 8px 24px rgba(0,0,0,.2);
}
.wa-float svg { width: 30px; height: 30px; }

@media (max-width: 900px) {
  section { padding: 64px 0; }
  .links { display: none; }
  .hero-grid, .about-grid, .aware-grid, .contact-grid { grid-template-columns: 1fr; gap: 36px; }
  .hero-art { max-width: 420px; margin: 24px auto; width: 100%; }
  .grid-3, .steps-grid { grid-template-columns: 1fr 1fr; }
  .aware-grid img { max-width: 360px; margin-inline: auto; }
  .wa-float { display: grid; }
}
@media (max-width: 600px) {
  body { font-size: 16px; }
  .brand small { display: none; }
  .nav .btn span { display: none; }
  .nav .btn { padding: 10px; }
  .hero { padding: 40px 0 56px; }
  .hero p.lead { font-size: 18px; }
  .hero .actions .btn { flex: 1; justify-content: center; }
  .grid-3, .steps-grid { grid-template-columns: 1fr; }
  .f1 { left: 0; } .f2 { right: 0; }
  .about-card { padding: 32px 24px; }
}

/* ===== sub-pages ===== */
a.svc { display: block; color: inherit; }
.svc .more { display: inline-block; margin-top: 12px; color: var(--teal); font-weight: 600; font-size: 15px; }

.page-hero { background: var(--card); border-bottom: 1px solid var(--line); padding: 40px 0 46px; }
.crumbs { font-size: 14px; color: var(--muted); margin-bottom: 18px; }
.crumbs a { color: var(--teal); }
.ph-grid { display: grid; grid-template-columns: auto 1fr; gap: 24px; align-items: start; }
.ico.big { width: 76px; height: 76px; border-radius: 22px; display: grid; place-items: center; }
.ico.big svg { width: 40px; height: 40px; }
.page-hero h1 { font-size: clamp(32px, 5vw, 50px); font-weight: 800; margin-bottom: 10px; text-wrap: balance; }
.page-hero .lead { font-size: 19px; max-width: 40em; }
.page-hero .actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 22px; }
.meta { color: var(--muted); font-size: 15px; margin-bottom: 8px; }

.two-col { display: grid; grid-template-columns: minmax(0, 1fr) 330px; gap: 40px; align-items: start; }
.main-col { display: grid; gap: 22px; min-width: 0; }
.block { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px 30px; }
.block h2 { font-size: 26px; margin-bottom: 14px; }
.block p + p { margin-top: 10px; }
ul.checks { list-style: none; display: grid; gap: 10px; }
ul.checks li { display: flex; gap: 12px; align-items: flex-start; }
ul.checks li::before {
  content: ""; flex: none; width: 24px; height: 24px; margin-top: 4px; border-radius: 50%;
  background: var(--teal-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='none' stroke='%232C9A93' stroke-width='3' stroke-linecap='round' stroke-linejoin='round' d='m6 12.5 4 4L18 8'/%3E%3C/svg%3E") center / 14px no-repeat;
}
ol.num { list-style: none; counter-reset: n; display: grid; gap: 12px; }
ol.num li { counter-increment: n; display: flex; gap: 12px; align-items: flex-start; }
ol.num li::before {
  content: counter(n, arabic-indic); flex: none; width: 30px; height: 30px; border-radius: 50%;
  background: var(--teal); color: #fff; display: grid; place-items: center; font-weight: 600; font-size: 15px; margin-top: 2px;
}
.tags { display: flex; flex-wrap: wrap; gap: 8px; }
.tags span { background: var(--blue-soft); color: var(--navy); border-radius: 999px; padding: 4px 14px; font-size: 15px; }
.disclaimer { font-size: 15px; color: var(--muted); }

.side { display: grid; gap: 18px; position: sticky; top: 92px; }
.side-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.side-card h3 { font-size: 22px; margin-bottom: 8px; }
.side-card.dark { background: var(--navy); color: #D5DFEB; border: 0; }
.side-card.dark h3, .side-card.dark b { color: #fff; }
.side-card .btn { width: 100%; justify-content: center; margin-top: 14px; }
.side-card .phone { color: #fff; }
.side-links { list-style: none; display: grid; gap: 4px; }
.side-links a { display: block; padding: 8px 12px; border-radius: 12px; color: var(--navy); font-weight: 500; }
.side-links a:hover, .side-links a[aria-current] { background: var(--paper); color: var(--teal); }

.prose { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 36px 40px; font-size: 18px; line-height: 1.9; }
.prose h2 { font-size: 27px; margin: 32px 0 10px; }
.prose h2:first-child { margin-top: 0; }
.prose p + p { margin-top: 12px; }
.prose ul, .prose ol { padding-inline-start: 22px; margin: 10px 0; display: grid; gap: 6px; }
.announce { background: var(--navy); color: #DCE6F1; text-align: center; font-size: 15px; padding: 10px 16px; }
.announce a { color: #fff; font-weight: 600; }
.announce b { color: #F3B76E; }
.prose figure { margin: 26px 0; }
.prose figure img { border-radius: 16px; max-width: 420px; width: 100%; margin-inline: auto; box-shadow: 0 14px 34px rgba(29,63,102,.12); }
.prose figcaption { text-align: center; font-size: 14px; color: var(--muted); margin-top: 10px; }
.table-wrap { overflow-x: auto; margin: 14px 0; }
.prose table { width: 100%; border-collapse: collapse; font-size: 16px; min-width: 460px; }
.prose th, .prose td { border: 1px solid var(--line); padding: 10px 14px; text-align: right; vertical-align: top; }
.prose th { background: var(--paper); color: var(--navy); }
.callout { background: var(--teal-soft); border-radius: 16px; padding: 18px 22px; margin: 22px 0; color: var(--navy); }
.callout.warm { background: var(--peach); }

.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.post-card { display: flex; flex-direction: column; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; color: inherit; transition: transform .2s ease, box-shadow .2s ease; }
.post-card:hover { transform: translateY(-4px); box-shadow: 0 14px 30px rgba(29,63,102,.08); }
.post-card .thumb { aspect-ratio: 16 / 10; display: grid; place-items: center; overflow: hidden; }
.post-card .thumb svg { width: 64px; height: 64px; }
.post-card .thumb img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.post-card .pc-body { padding: 20px 22px 24px; display: grid; gap: 6px; }
.post-card h3 { font-size: 22px; }
.post-card p { font-size: 16px; }
.post-card .more { color: var(--teal); font-weight: 600; font-size: 15px; }
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 22px; }
.gallery a { display: block; }
.gallery img { border-radius: 14px; box-shadow: 0 12px 30px rgba(29,63,102,.12); }

/* ===== phase 1: modern touches ===== */
header { transition: box-shadow .25s ease, background .25s ease; }
header.scrolled { box-shadow: 0 8px 24px rgba(29,63,102,.08); background: rgba(255,255,255,.92); }


/* service page hero with its mascot */
.ph-split { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 40px; align-items: center; }
.ph-art { position: relative; height: 300px; display: grid; place-items: center; }
.ph-blob { position: absolute; inset: 10px 6px; border-radius: 40px; }
.ph-blob.t1 { background: var(--teal-soft); } .ph-blob.t2 { background: var(--peach); } .ph-blob.t3 { background: var(--blue-soft); }
.ph-art .mascot { position: relative; width: 190px; height: auto; max-height: 270px; }

/* homepage hero: two mascots playing around the logo */
.art-panel.fan { background: none; border-radius: 0; display: block; aspect-ratio: 1 / 1.02; }
.fan::before { content: ""; position: absolute; inset: 10% 2% 6%; border-radius: 40px; background: var(--teal-soft); }
.fan a { position: absolute; top: 50%; left: 50%; width: 54%; }
.fan img { width: 100%; border-radius: 16px; box-shadow: 0 22px 44px rgba(29,63,102,.20); transition: transform .2s ease; }
.fan a:hover img { transform: translateY(-6px); }
.fan .p1 { transform: translate(-96%, -46%) rotate(-8deg); }
.fan .p3 { transform: translate(-4%, -46%) rotate(8deg); }
.fan .p2 { transform: translate(-50%, -54%); z-index: 2; }
.hero-art .float { z-index: 3; }

/* scroll reveal (classes added by site.js) */


/* richer footer */
footer.site-foot { padding: 56px 0 26px; font-size: 15px; line-height: 1.8; }
footer.site-foot .fgrid { display: grid; grid-template-columns: 1.3fr 1fr 1fr 1fr 1.1fr; gap: 32px; justify-content: initial; }
footer.site-foot h4 { color: #fff; font-family: "Baloo Bhaijaan 2", sans-serif; font-size: 19px; margin-bottom: 10px; }
footer.site-foot ul { list-style: none; display: grid; gap: 6px; }
footer.site-foot a { color: #DCE6F1; }
footer.site-foot a:hover { color: #fff; text-decoration: underline; }
footer.site-foot p + p { margin-top: 10px; }
.fbrand { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.fbrand img { background: #fff; border-radius: 50%; padding: 4px; width: 56px; height: auto; }
.fbrand b { color: #fff; font-family: "Baloo Bhaijaan 2", sans-serif; font-size: 20px; }
.fsocial { display: inline-block; margin-top: 12px; border: 1px solid rgba(255,255,255,.3); border-radius: 999px; padding: 4px 16px; }
footer.site-foot .fbottom { display: block; border-top: 1px solid rgba(255,255,255,.12); margin-top: 36px; padding-top: 18px; font-size: 14px; color: #9FB2C8; }

/* booking bar on phones */
.mbar { display: none; }

/* ===== phase 2: health tools ===== */
.tool-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 30px; box-shadow: 0 14px 34px rgba(29,63,102,.06); min-width: 0; }
.field { display: grid; gap: 8px; margin-bottom: 16px; min-width: 0; }
.flabel { font-weight: 600; color: var(--navy); }
.field small { color: var(--muted); font-size: 14px; }
.tool-card input[type=number], .tool-card input[type=text], .tool-card select, .tool-card textarea {
  font: inherit; font-size: 17px; width: 100%; padding: 12px 14px; border: 1.5px solid var(--line);
  border-radius: 14px; background: var(--paper); color: var(--body);
}
.tool-card textarea { min-height: 90px; resize: vertical; }
.tool-card input:focus, .tool-card select:focus, .tool-card textarea:focus { outline: none; border-color: var(--teal); box-shadow: 0 0 0 4px rgba(44,154,147,.15); }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.seg { display: flex; flex-wrap: wrap; gap: 8px; }
.seg label { cursor: pointer; position: relative; }
.seg input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.seg span { display: inline-block; padding: 9px 22px; border-radius: 999px; border: 1.5px solid var(--line); background: var(--paper); font-weight: 500; transition: background .15s, color .15s, border-color .15s; }
.seg label:hover span { border-color: var(--teal); }
.seg input:checked + span { background: var(--navy); border-color: var(--navy); color: #fff; }
.seg input:focus-visible + span { outline: 3px solid var(--teal); outline-offset: 2px; }
.only-f, .only-girl { display: none; }
.only-f.on, .only-girl.on { display: grid; }
.btn-calc, .btn-book { width: 100%; justify-content: center; margin-top: 4px; border: 0; cursor: pointer; font-family: inherit; }
.btn-calc { background: var(--navy); color: #fff; box-shadow: 0 8px 20px rgba(29,63,102,.2); }
.btn-calc:hover { transform: translateY(-2px); }
.result { display: none; margin-top: 18px; border-radius: 18px; padding: 22px 24px; }
.result.show { display: block; animation: pop .35s ease; }
@keyframes pop { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.result.ok { background: var(--teal-soft); }
.result.warn { background: var(--peach); }
.result.alert { background: #FAD9D3; }
.result.err { background: #FFF1D6; color: #7A4B00; }
.r-label { font-size: 15px; color: var(--muted); }
.r-big { font-family: "Baloo Bhaijaan 2", sans-serif; font-weight: 800; font-size: 52px; color: var(--navy); line-height: 1.2; }
.r-cat { font-family: "Baloo Bhaijaan 2", sans-serif; font-weight: 700; font-size: 24px; color: var(--navy); }
.result p + p { margin-top: 8px; }
.result a:not(.btn) { color: var(--teal); font-weight: 600; }
.r-actions { margin-top: 14px; }
.btn-share { background: #fff; color: #178A45; border: 1.5px solid var(--wa); }
.btn-share:hover { background: var(--wa); color: #fff; }

.tools-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 18px; }
.tool-tile { display: flex; flex-direction: column; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; color: inherit; transition: transform .2s ease, box-shadow .2s ease; }
.tool-tile:hover { transform: translateY(-4px); box-shadow: 0 14px 30px rgba(29,63,102,.1); }
.tt-art { height: 150px; display: grid; place-items: center; }
.tt-art.t1 { background: var(--teal-soft); } .tt-art.t2 { background: var(--peach); } .tt-art.t3 { background: var(--blue-soft); }
.tt-art svg { height: 118px; width: auto; max-width: 70%; transition: transform .3s ease; }
.tool-tile:hover .tt-art svg { transform: scale(1.06) rotate(-2deg); }
.tt-body { padding: 18px 20px 22px; display: grid; gap: 6px; }
.tt-body h3 { font-size: 21px; }
.tt-body p { font-size: 15px; }
.tt-body .more { color: var(--teal); font-weight: 600; font-size: 15px; }
.book-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: 48px; align-items: start; }
.book-grid > * { min-width: 0; }

/* swipeable poster row */
.carousel { position: relative; }
.track {
  display: flex; gap: 18px; overflow-x: auto; scroll-snap-type: x mandatory;
  padding: 10px 4px 22px; scrollbar-width: none; overscroll-behavior-x: contain;
}
.track::-webkit-scrollbar { display: none; }
.track a { flex: 0 0 clamp(230px, 27%, 300px); scroll-snap-align: start; }
.track img { border-radius: 16px; box-shadow: 0 12px 28px rgba(29,63,102,.13); transition: transform .2s ease; }
.track a:hover img { transform: translateY(-4px); }
.c-btn {
  position: absolute; top: 46%; transform: translateY(-50%); z-index: 2;
  width: 50px; height: 50px; border-radius: 50%; border: 1px solid var(--line);
  background: var(--card); color: var(--navy); font-size: 22px; cursor: pointer;
  box-shadow: 0 8px 22px rgba(29,63,102,.15); display: grid; place-items: center;
}
.c-btn:hover { background: var(--navy); color: #fff; }
.c-btn:focus-visible { outline: 3px solid var(--teal); outline-offset: 2px; }
.c-prev { right: -14px; }
.c-next { left: -14px; }
.swipe-hint { display: none; text-align: center; font-size: 14px; color: var(--muted); }

@media (prefers-reduced-motion: reduce) {
  .fan img, .result.show { transition: none; animation: none; }
}
@media (max-width: 900px) {
  .book-grid { grid-template-columns: 1fr; gap: 28px; }
  .tool-card { padding: 22px 18px; }
  .r-big { font-size: 44px; }
  .ph-split { grid-template-columns: 1fr; gap: 10px; }
  .ph-art { height: 220px; max-width: 300px; margin-inline: auto; width: 100%; }
  .ph-art .mascot { width: 140px; max-height: 200px; }
  footer.site-foot .fgrid { grid-template-columns: 1fr 1fr; }
  .mbar {
    display: flex; gap: 10px; position: fixed; left: 0; right: 0; bottom: 0; z-index: 30;
    padding: 10px max(16px, env(safe-area-inset-left, 0px)) calc(10px + env(safe-area-inset-bottom, 0px));
    background: rgba(255,255,255,.95); backdrop-filter: blur(10px); border-top: 1px solid var(--line);
    box-shadow: 0 -6px 20px rgba(29,63,102,.08);
  }
  .mbar .btn { flex: 1; justify-content: center; padding: 12px 14px; }
  .mbar .btn-call { flex: 0 0 auto; border: 1.5px solid var(--navy); color: var(--navy); background: #fff; }
  .wa-float, .nav > .btn-wa { display: none !important; }
  body { padding-bottom: 78px; }
  .c-btn { display: none; }
  .swipe-hint { display: block; }
  .track a { flex-basis: 72%; }
  .two-col { grid-template-columns: 1fr; }
  .side { position: static; }
  .cards { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 600px) {
  footer.site-foot .fgrid { grid-template-columns: 1fr; gap: 22px; }
  .cards { grid-template-columns: 1fr; }
  .ph-grid { grid-template-columns: 1fr; gap: 14px; }
  .prose { padding: 24px 20px; font-size: 17px; }
  .block { padding: 22px 20px; }
  .page-hero .actions .btn { flex: 1; justify-content: center; }
}
