:root {
  --ink: #123d77;
  --blue: #2284dc;
  --mint: #36c894;
  --paper: #fffdf6;
  --coral: #ff5267;
  --aqua: #31bddd;
  --purple: #9c59dc;
  --gold: #ffc01d;
  --line: rgba(18, 61, 119, .1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  min-width: 320px;
  margin: 0;
  background: #d9f5f1;
  color: var(--ink);
  font-family: Nunito, sans-serif;
}
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }

.page-shell {
  width: min(calc(100% - 32px), 1400px);
  min-height: calc(100vh - 32px);
  margin: 16px auto;
  overflow: hidden;
  border: 7px solid #15384a;
  border-radius: 28px;
  background: var(--paper);
  box-shadow: 0 10px 0 rgba(18, 57, 75, .17);
}

.topbar {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  height: 82px;
  padding: 0 clamp(20px, 5vw, 76px);
  border-bottom: 2px solid var(--line);
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font: 800 clamp(20px, 2vw, 26px)/1 "Baloo 2", cursive;
  letter-spacing: .2px;
  text-transform: uppercase;
}
.brand-mark { color: #20a6cf; font-size: 25px; transform: rotate(18deg); }
.desktop-nav { display: flex; gap: clamp(22px, 3vw, 45px); font-weight: 900; }
.desktop-nav a { position: relative; padding: 10px 0; }
.desktop-nav a::after {
  position: absolute;
  right: 50%; bottom: 2px; left: 50%;
  height: 3px;
  border-radius: 4px;
  background: var(--mint);
  content: "";
  transition: .2s;
}
.desktop-nav a:hover::after { right: 0; left: 0; }
.menu {
  display: none;
  justify-self: end;
  width: 42px;
  height: 42px;
  padding: 9px;
  border: 0;
  background: transparent;
}
.menu span { display: block; height: 3px; margin: 4px 0; border-radius: 4px; background: var(--ink); }
.mobile-menu { display: none; }

.lab {
  display: grid;
  grid-template-columns: minmax(500px, 1.12fr) minmax(360px, .88fr);
  min-height: 720px;
}
.body-stage {
  position: relative;
  min-height: 720px;
  padding: 30px clamp(20px, 5vw, 70px);
  isolation: isolate;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, .72), rgba(255, 255, 255, 0)),
    radial-gradient(circle at 7% 91%, #e4f9dd 0 15%, transparent 15.3%);
}
.body-stage::before,
.body-stage::after {
  position: absolute;
  z-index: -1;
  color: var(--gold);
  font-size: 30px;
  content: "✦";
}
.body-stage::before { top: 14%; left: 9%; }
.body-stage::after { right: 7%; bottom: 9%; }
.leaf { position: absolute; z-index: -1; color: #3d9c5f; font-size: 58px; transform: rotate(-18deg); }
.leaf.a { top: 4%; left: 6%; }
.leaf.b { right: 8%; bottom: 8%; transform: rotate(30deg); }

.stage-copy { position: absolute; top: 30px; left: clamp(24px, 5vw, 70px); max-width: 360px; }
.eyebrow {
  margin: 0 0 10px;
  color: #2274b8;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 1.25px;
}
.eyebrow span { color: #20a6cf; font-size: 18px; vertical-align: -2px; }
.stage-copy h1,
.section-heading h2 {
  margin: 0;
  font: 800 clamp(38px, 4vw, 58px)/.95 "Baloo 2", cursive;
  letter-spacing: -.6px;
}
.stage-copy h1 em { color: #1e5da7; font-style: normal; }
.stage-copy p:last-child { max-width: 290px; margin: 13px 0 0; font-size: 16px; font-weight: 800; line-height: 1.25; }

/* The full-body SVG fills this viewport; marker coordinates are percentage anchors. */
.skeleton-wrap {
  position: relative;
  width: 520px;
  max-width: 100%;
  height: 690px;
  margin: 16px auto 0;
}
.skeleton-art {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  filter: drop-shadow(0 10px 7px rgba(96, 69, 30, .2));
}
.hotspot {
  --x: 44%;
  --y: 50%;
  --hot: var(--coral);
  --hot-soft: #ffe3e7;
  position: absolute;
  z-index: 4;
  top: var(--y);
  left: var(--x);
  display: block;
  border: 0;
  background: transparent;
  padding: 0;
  color: var(--ink);
  text-align: left;
  white-space: nowrap;
}
.dot {
  position: absolute;
  z-index: 2;
  top: 50%;
  left: -11px;
  display: block;
  width: 22px;
  height: 22px;
  margin: 0;
  transform: translateY(-50%);
  border: 3px solid #fff;
  border-radius: 50%;
  background: var(--hot);
  box-shadow: 0 0 0 3px var(--hot);
}
.tag {
  display: block;
  margin-left: 14px;
  padding: 8px 14px;
  border-radius: 12px;
  background: var(--hot-soft);
  box-shadow: 0 5px 10px rgba(18, 52, 106, .08);
  font-size: 15px;
  font-weight: 900;
}
.hotspot:hover .dot,
.hotspot.active .dot { box-shadow: 0 0 0 5px #fff, 0 0 0 8px var(--hot); }
.ribs { --hot: #ff8139; --hot-soft: #ffe3c7; }
.spine { --hot: #36c76b; --hot-soft: #d8f7df; }
.pelvis { --hot: #9751db; --hot-soft: #eadbfb; }
.hand { --hot: #36bfe7; --hot-soft: #d9f3fc; }
.femur { --hot: #ffc21c; --hot-soft: #fff1ba; }
.feet { --hot: #27bcb9; --hot-soft: #d5f5f2; }
/* Landmarks for skeleton.svg: skull, ribs, spine, pelvis, hand, femur, feet. */
.skull { --x: 44%; --y: 7%; }
.ribs { --x: 44%; --y: 21%; }
.spine { --x: 44%; --y: 35%; }
.pelvis { --x: 44%; --y: 44%; }
.hand { --x: 27%; --y: 48%; }
.femur { --x: 44%; --y: 65%; }
.feet { --x: 44%; --y: 89%; }

.info-zone {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 22px;
  padding: 44px 48px 44px 20px;
  background: linear-gradient(145deg, #fff8e7, #fffdf5 54%);
}
.card {
  position: relative;
  overflow: hidden;
  padding: 28px 30px 26px;
  border: 3px solid #ff9eaa;
  border-radius: 24px;
  background: #ffe9e9;
  box-shadow: 0 8px 0 rgba(255, 82, 103, .08);
}
.close {
  position: absolute;
  top: 14px;
  right: 14px;
  display: grid;
  width: 31px;
  height: 31px;
  place-items: center;
  border: 2px solid #fff;
  border-radius: 50%;
  color: #fff;
  background: var(--coral);
  font-size: 23px;
  font-weight: 900;
  line-height: 1;
}
.section-kicker { margin: 0 0 13px; color: #2274b8; font-size: 12px; font-weight: 900; letter-spacing: 1.25px; text-align: center; }
.bone-icon {
  display: grid;
  width: 128px;
  height: 116px;
  margin: 0 auto 12px;
  place-items: center;
  border: 5px solid rgba(255, 255, 255, .7);
  border-radius: 34px;
  background: radial-gradient(circle at 35% 25%, #fffdf5, #efd5a7);
  color: #9d805c;
  font-size: 82px;
  box-shadow: inset 0 0 0 2px #e4cda9, 0 12px 20px rgba(168, 118, 80, .14);
}
.card h2 { margin: 0 -5px 10px; padding: 9px; border-radius: 14px; background: #ffb9c2; text-align: center; font: 800 clamp(23px, 3vw, 31px)/1 "Baloo 2", cursive; letter-spacing: .5px; }
.card p { margin: 0; color: #26487d; font-size: 18px; font-weight: 700; line-height: 1.32; }
.listen {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 18px;
  padding: 11px 16px;
  border: 0;
  border-radius: 18px;
  color: #fff;
  background: var(--blue);
  box-shadow: 0 5px 0 #106aaa, 0 11px 22px rgba(21, 111, 184, .17);
  font-size: 16px;
  font-weight: 900;
}
.sound { font-size: 22px; }
.bubble {
  width: 88%;
  align-self: center;
  padding: 29px 31px;
  border-radius: 44% 52% 44% 56%;
  background: #cdf6d7;
  color: var(--ink);
  box-shadow: 0 9px 0 rgba(54, 200, 148, .12);
  font-size: 21px;
  font-weight: 900;
  line-height: 1.18;
  text-align: center;
  transform: rotate(-3deg);
}

.explore-section { padding: 54px clamp(22px, 6vw, 92px) 70px; border-top: 2px solid #dcf0ea; background: #f4fffc; }
.section-heading { margin-bottom: 23px; }
.section-heading h2 { font-size: clamp(34px, 4vw, 52px); }
.lesson-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.lesson-card {
  display: flex;
  min-height: 132px;
  align-items: center;
  gap: 15px;
  padding: 18px;
  border: 0;
  border-radius: 23px;
  color: var(--ink);
  text-align: left;
  box-shadow: 0 14px 0 rgba(22, 91, 125, .08);
  transition: transform .2s;
}
.lesson-card:hover { transform: translateY(-5px); }
.lesson-card.blue { background: #dff4ff; }
.lesson-card.green { background: #dcfae9; }
.lesson-card.yellow { background: #fff0bd; }
.lesson-icon { display: grid; width: 54px; height: 54px; flex: 0 0 54px; place-items: center; border-radius: 17px; background: rgba(255, 255, 255, .7); font-size: 29px; }
.lesson-card span:nth-child(2) { display: grid; gap: 2px; }
.lesson-card strong { font-size: 20px; }
.lesson-card small { font-size: 13px; font-weight: 700; line-height: 1.1; }
.lesson-card b { margin-left: auto; font-size: 26px; }
footer { display: flex; min-height: 72px; align-items: center; justify-content: center; gap: 25px; color: #21568e; font: 800 16px "Baloo 2", cursive; letter-spacing: .7px; text-transform: uppercase; }
footer i { color: #49b980; font-style: normal; }

@media (max-width: 1050px) and (min-width: 761px) {
  .lab { grid-template-columns: minmax(430px, 1fr) minmax(330px, .8fr); }
  .body-stage { padding-inline: 30px; }
  .skeleton-wrap { width: 430px; height: 650px; }
  .info-zone { padding-right: 30px; }
}

@media (max-width: 760px) {
  .page-shell { width: min(calc(100% - 16px), 650px); min-height: calc(100vh - 16px); margin: 8px auto; border-width: 5px; border-radius: 22px; }
  .topbar { display: flex; justify-content: space-between; height: 68px; padding: 0 18px; }
  .brand { font-size: 19px; }
  .desktop-nav { display: none; }
  .menu { display: block; }
  .mobile-menu { grid-template-columns: repeat(3, 1fr); gap: 9px; padding: 11px 20px 17px; border-bottom: 2px solid var(--line); background: var(--paper); font-size: 13px; font-weight: 900; text-align: center; }
  .mobile-menu:not([hidden]) { display: grid; }
  .lab { display: block; min-height: 0; }
  .body-stage { min-height: 665px; padding: 24px 4px 0; }
  .stage-copy { position: relative; top: auto; left: auto; max-width: 340px; margin: 0 auto; text-align: center; }
  .stage-copy h1 { font-size: 44px; }
  .stage-copy p:last-child { margin: 10px auto 4px; font-size: 14px; }
  .skeleton-wrap { width: min(390px, 100%); height: 590px; margin: 0 auto; }
  .dot { left: -9px; width: 18px; height: 18px; }
  .tag { margin-left: 12px; padding: 6px 9px; font-size: 13px; }
  .info-zone { padding: 26px 20px 30px; gap: 17px; background: var(--paper); }
  .card { padding: 21px 21px 18px; border-radius: 19px; }
  .section-kicker { margin-bottom: 9px; }
  .bone-icon { width: 100px; height: 91px; border-radius: 27px; font-size: 64px; }
  .card h2 { font-size: 24px; }
  .card p { font-size: 16px; }
  .listen { margin-top: 13px; font-size: 15px; }
  .bubble { width: 88%; padding: 23px 27px; font-size: 19px; }
  .explore-section { padding: 40px 18px 47px; }
  .section-heading { text-align: center; }
  .section-heading h2 { font-size: 37px; }
  .lesson-grid { grid-template-columns: 1fr; gap: 12px; }
  .lesson-card { min-height: 88px; border-radius: 18px; }
  .lesson-icon { width: 48px; height: 48px; flex-basis: 48px; font-size: 24px; }
  .lesson-card strong { font-size: 18px; }
  footer { min-height: 58px; gap: 14px; font-size: 13px; }
}

@media (max-width: 420px) {
  .body-stage { min-height: 625px; }
  .skeleton-wrap { width: 350px; height: 545px; }
  .tag { font-size: 12px; }
}

@media (max-width: 360px) {
  .body-stage { min-height: 595px; }
  .skeleton-wrap { width: 320px; height: 510px; }
  .tag { padding: 5px 7px; font-size: 11px; }
}


/* Отменяем тёмно-синий фон темы только у меток скелета */
.site .page-shell button.hotspot,
.site .page-shell button.hotspot:hover,
.site .page-shell button.hotspot:focus,
.site .page-shell button.hotspot:active,
.site .page-shell button.hotspot.active {
  background: transparent !important;
  background-color: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  color: var(--ink) !important;
}

/* У активной метки подпись без фона */
.site .page-shell .hotspot.active .tag {
  background: transparent !important;
  box-shadow: none !important;
}