/* Scalpel Club — styles */
:root {
  --bg: #f7f4f2;
  --surface: #ffffff;
  --tint: #f1ece9;
  --ink: #111111;
  --ink-2: #2e2928;
  --muted: #5c5553;
  --line: #e5dedb;
  --brand: #d0121b;          /* заливки: кнопки, пилюли, шаги */
  --brand-ink: #a50e16;      /* красный текст на светлом */
  --brand-soft: #fde8e6;
  --brand-hover: #a50e16;
  --brand-hi: #d0121b;       /* красные иконки, «Club» в логотипе */
  --brand-on-dark: #ff6b66;  /* красный текст на тёмных блоках */
  --brand-glow: #ff3340;     /* акцент заголовка на чёрном hero */
  --on-brand: #ffffff;
  --accent: #111111;
  --on-accent: #ffffff;
  --error: #a14b00;          /* ошибки — янтарные, не красные */
  --error-soft: #fff4e5;
  --ecg: #3ee07a;            /* зелёный как на настоящем мониторе */
  --dark: #0b0909;
  --dark-2: #161313;
  --on-dark: #f4f0ee;
  --on-dark-muted: #b8aeab;
  --radius: 20px;
  --radius-sm: 12px;
  --shadow: 0 1px 2px rgba(17, 17, 17, .05), 0 12px 32px -12px rgba(17, 17, 17, .16);
  --font: 'Manrope', system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
  --font-display: 'Unbounded', 'Manrope', system-ui, sans-serif;
  --container: 1200px;
  --header-h: 72px;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0f0d0d;
    --surface: #1a1616;
    --tint: #141111;
    --ink: #f4f0ee;
    --ink-2: #d9d1ce;
    --muted: #a39b98;
    --line: #2d2625;
    --brand: #e0141e;
    --brand-ink: #ff6b66;
    --brand-soft: #3a1414;
    --brand-hover: #b51019;
    --brand-hi: #ff4d57;
    --brand-on-dark: #ff6b66;
    --brand-glow: #ff3340;
    --on-brand: #ffffff;
    --accent: #f4f0ee;
    --on-accent: #111111;
    --error: #ffb547;
    --error-soft: #2e1f0a;
    --ecg: #3ee07a;
    --dark: #080606;
    --dark-2: #141010;
    --on-dark: #f4f0ee;
    --on-dark-muted: #b8aeab;
    --shadow: 0 1px 2px rgba(0, 0, 0, .35), 0 16px 40px -16px rgba(0, 0, 0, .7);
    color-scheme: dark;
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3 { margin: 0; line-height: 1.15; letter-spacing: -.01em; text-wrap: balance; }
h2 { font-family: var(--font-display); font-weight: 600; font-size: clamp(1.6rem, 1.1rem + 2vw, 2.6rem); }
h3 { font-size: 1.15rem; font-weight: 700; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
[hidden] { display: none !important; }
.muted { color: var(--muted); font-weight: 500; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

:focus-visible { outline: 3px solid var(--brand); outline-offset: 3px; border-radius: 6px; }

.skip {
  position: fixed; left: 16px; top: -60px; z-index: 100;
  background: var(--ink); color: var(--bg); padding: 10px 16px; border-radius: 10px; text-decoration: none; font-weight: 700;
  transition: top .2s;
}
.skip:focus { top: 12px; }

.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: clamp(16px, 4vw, 32px); }

/* Buttons */
.btn {
  --h: 48px;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: var(--h); padding: 0 22px; border-radius: 999px; border: 1.5px solid transparent;
  font: 700 .95rem/1 var(--font); text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: background-color .2s, color .2s, border-color .2s, transform .2s, box-shadow .2s;
}
.btn svg { transition: transform .2s; }
.btn:hover svg { transform: translateX(3px); }
.btn:active { transform: translateY(1px); }
.btn--sm { --h: 40px; padding: 0 16px; font-size: .88rem; }
.btn--lg { --h: 54px; padding: 0 26px; font-size: 1rem; }
.btn--block { width: 100%; }
.btn--primary { background: var(--brand); color: var(--on-brand); box-shadow: 0 8px 20px -8px color-mix(in srgb, var(--brand) 70%, transparent); }
.btn--primary:hover { background: var(--brand-hover); }
.btn--ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn--ghost:hover { border-color: var(--ink); }
.btn--outline { background: transparent; color: var(--brand-ink); border-color: color-mix(in srgb, var(--brand) 40%, transparent); }
.btn--outline:hover { background: var(--brand); border-color: var(--brand); color: var(--on-brand); }
.btn[disabled] { opacity: .65; cursor: progress; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: .78rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--brand-ink);
  margin-bottom: 14px;
}
.eyebrow--light { color: var(--brand-on-dark); }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--brand-glow); box-shadow: 0 0 0 4px color-mix(in srgb, var(--brand-glow) 25%, transparent); animation: pulse 1.6s ease-in-out infinite; }
@keyframes pulse { 50% { box-shadow: 0 0 0 8px color-mix(in srgb, var(--brand-glow) 0%, transparent); } }

/* Header */
.header {
  position: sticky; top: 0; z-index: 50;
  padding-top: env(safe-area-inset-top, 0px);
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: saturate(1.4) blur(14px); -webkit-backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid transparent; transition: border-color .2s;
}
.header.is-scrolled { border-bottom-color: var(--line); }
.header__row { display: flex; align-items: center; gap: 24px; height: var(--header-h); }
.logo { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-family: var(--font-display); font-weight: 600; font-size: 1.05rem; letter-spacing: -.01em; }
.logo b { font-weight: 600; color: var(--brand-hi); margin-left: 4px; }
.nav { margin-left: auto; }
.nav ul { display: flex; gap: 4px; }
.nav a { display: block; padding: 8px 12px; border-radius: 999px; text-decoration: none; font-weight: 600; font-size: .93rem; color: var(--ink-2); transition: background-color .2s, color .2s; }
.nav a:hover { background: var(--tint); color: var(--ink); }
.header__actions { display: flex; align-items: center; gap: 10px; }
.lang {
  display: inline-flex; align-items: center; gap: 6px; height: 40px; padding: 0 14px; border-radius: 999px;
  border: 1.5px solid var(--line); text-decoration: none; font-weight: 700; font-size: .85rem; color: var(--muted);
  transition: border-color .2s;
}
.lang:hover { border-color: var(--ink); }
.lang [aria-current] { color: var(--ink); }
.lang__sep { opacity: .4; }
.burger { display: none; width: 44px; height: 44px; border-radius: 12px; border: 1.5px solid var(--line); background: var(--surface); color: var(--ink); cursor: pointer; align-items: center; justify-content: center; }
.burger__close { display: none; }
.burger[aria-expanded="true"] .burger__open { display: none; }
.burger[aria-expanded="true"] .burger__close { display: block; }

@media (max-width: 960px) {
  .burger { display: inline-flex; }
  .header__cta { display: none; }
  .nav {
    position: fixed; inset: calc(var(--header-h) + env(safe-area-inset-top, 0px)) 0 auto 0; margin: 0;
    background: var(--bg); border-bottom: 1px solid var(--line); box-shadow: var(--shadow);
    padding: 12px clamp(16px, 4vw, 32px) 20px;
    transform: translateY(-8px); opacity: 0; visibility: hidden; transition: opacity .2s, transform .2s, visibility .2s;
  }
  .nav.is-open { transform: none; opacity: 1; visibility: visible; }
  .nav ul { flex-direction: column; }
  .nav a { padding: 14px 12px; font-size: 1.05rem; border-radius: 12px; }
  .header__actions { margin-left: auto; }
}

/* Hero */
.hero { position: relative; overflow: hidden; isolation: isolate; background: var(--dark); color: var(--on-dark); padding: clamp(40px, 7vw, 96px) 0 clamp(56px, 8vw, 112px); }
.hero::before {
  content: ""; position: absolute; inset: -30% -10% auto 40%; height: 120%; z-index: -1;
  background: radial-gradient(closest-side, color-mix(in srgb, var(--brand) 38%, transparent), transparent 70%);
}
.hero__grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(32px, 5vw, 72px); align-items: center; }
.hero__title { font-family: var(--font-display); font-weight: 700; font-size: clamp(2.2rem, 1.3rem + 4vw, 4.1rem); line-height: 1.04; letter-spacing: -.025em; color: #fff; }
.hero__title em { font-style: normal; color: var(--brand-glow); position: relative; white-space: nowrap; }
.hero__title em::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: .02em; height: .14em; border-radius: 99px;
  background: color-mix(in srgb, #fff 22%, transparent); transform-origin: left; animation: underline 1s .4s cubic-bezier(.2,.7,.2,1) both;
}
@keyframes underline { from { transform: scaleX(0); } }
.hero__lead { margin-top: 22px; max-width: 56ch; font-size: clamp(1.02rem, .95rem + .3vw, 1.15rem); color: var(--on-dark-muted); }
.hero__ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.facts { display: grid; grid-template-columns: repeat(3, auto); justify-content: start; gap: 12px 36px; margin-top: 44px; padding-top: 28px; border-top: 1px solid rgba(255, 255, 255, .12); }
.facts li { display: flex; flex-direction: column; }
.facts strong { font-family: var(--font-display); font-weight: 600; font-size: 1.35rem; letter-spacing: -.01em; color: #fff; }
.facts span { font-size: .88rem; color: var(--on-dark-muted); }
.hero .eyebrow { color: var(--brand-on-dark); }
.hero .btn--ghost { color: var(--on-dark); border-color: rgba(255, 255, 255, .28); }
.hero .btn--ghost:hover { border-color: #fff; background: rgba(255, 255, 255, .06); }
.hero :focus-visible { outline-color: var(--brand-on-dark); }

.hero__visual { position: relative; padding: 28px 0; }
.monitor {
  position: relative; border-radius: 26px; padding: 18px; color: #f1ece9;
  background: linear-gradient(160deg, #1c1818, #0d0b0b);
  box-shadow: 0 40px 80px -30px rgba(208, 18, 27, .38), inset 0 0 0 1px rgba(255, 255, 255, .08);
  transform: rotate(-1.5deg);
}
.monitor__top { display: flex; justify-content: space-between; align-items: center; font-size: .78rem; letter-spacing: .08em; text-transform: uppercase; color: #9a918e; padding: 2px 6px 14px; }
.monitor__live { display: inline-flex; align-items: center; gap: 8px; color: #ff6b66; }
.monitor__live i { width: 8px; height: 8px; border-radius: 50%; background: #ff3b30; animation: blink 1s steps(2) infinite; }
@keyframes blink { 50% { opacity: .25; } }
.monitor__screen { border-radius: 16px; overflow: hidden; background: #050505; color: var(--ecg); }
.ecg { width: 100%; height: clamp(140px, 18vw, 200px); }
.ecg__line {
  fill: none; stroke: var(--ecg); stroke-width: 2.4; stroke-linejoin: round; stroke-linecap: round;
  filter: drop-shadow(0 0 6px rgba(62, 224, 122, .6));
  stroke-dasharray: 1400; stroke-dashoffset: 1400; animation: trace 3.6s linear infinite;
}
@keyframes trace { 70% { stroke-dashoffset: 0; opacity: 1; } 100% { stroke-dashoffset: 0; opacity: 0; } }
.monitor__stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 14px; }
.monitor__stats > div { background: rgba(255, 255, 255, .05); border-radius: 14px; padding: 10px 14px; }
.monitor__stats span { display: block; font-size: .72rem; letter-spacing: .08em; text-transform: uppercase; color: #9a918e; }
.monitor__stats strong { font-family: var(--font-display); font-weight: 600; font-size: clamp(1.2rem, 1rem + 1vw, 1.7rem); line-height: 1.2; }
.monitor__stats small { font-size: .55em; margin-left: 4px; opacity: .7; font-family: var(--font); }
.hr { color: var(--ecg); } .spo2 { color: #7cc4ff; } .bp { color: #ffd479; }
.chip {
  position: absolute; display: inline-flex; align-items: center; gap: 10px; padding: 10px 16px 10px 12px;
  background: var(--surface); color: var(--ink); border-radius: 999px; box-shadow: var(--shadow); font-weight: 700; font-size: .88rem;
  border: 1px solid var(--line); animation: float 6s ease-in-out infinite;
}
.chip svg { color: var(--brand-hi); }
.chip--a { top: 0; right: 6%; }
.chip--b { bottom: 0; left: -2%; animation-delay: -3s; }
@keyframes float { 50% { transform: translateY(-8px); } }

@media (max-width: 960px) {
  .hero__grid { grid-template-columns: 1fr; }
  .hero__visual { max-width: 560px; }
}
@media (max-width: 520px) {
  .facts { grid-template-columns: 1fr 1fr; }
  .facts li:last-child { grid-column: 1 / -1; }
  .chip--a { right: 0; }
  .chip--b { left: 0; }
  .hero__ctas .btn { flex: 1 1 100%; }
}

/* Sections */
.section { padding: clamp(64px, 9vw, 120px) 0; }
.section--tint { background: var(--tint); }
.section__head { max-width: 760px; margin-bottom: clamp(32px, 5vw, 56px); }
.section__lead { margin-top: 16px; color: var(--muted); font-size: 1.07rem; max-width: 62ch; }

/* Courses */
.course {
  --c: var(--accent); --c-fg: var(--accent);
  position: relative; display: flex; flex-direction: column; padding: clamp(24px, 3vw, 34px);
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  transition: transform .25s, box-shadow .25s, border-color .25s;
}

.course::before { content: ""; position: absolute; inset: 0 auto auto 0; width: 64px; height: 4px; margin: -1px 0 0 clamp(24px, 3vw, 34px); border-radius: 0 0 4px 4px; background: var(--c); }
.course:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: color-mix(in srgb, var(--c) 35%, var(--line)); }
.course__head { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 22px; }
.course__icon { display: grid; place-items: center; width: 56px; height: 56px; border-radius: 16px; color: var(--c-fg); background: color-mix(in srgb, var(--c) 12%, transparent); }
.course__icon svg { width: 28px; height: 28px; }
.course__num { font-family: var(--font-display); font-size: .9rem; color: var(--muted); }
.course__name { font-family: var(--font-display); font-weight: 600; font-size: clamp(1.3rem, 1.1rem + .6vw, 1.6rem); }
.course__tag { margin-top: 6px; color: var(--muted); font-weight: 500; }
.course__skills-label { font-size: .75rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin-bottom: 12px; }
.course__skills { display: grid; gap: 10px; margin-bottom: 28px; }
.course__skills li { display: flex; gap: 10px; align-items: flex-start; }
.course__skills svg { flex: none; margin-top: 3px; color: var(--c-fg); }
.course__cta { margin-top: auto; align-self: flex-start; }
@media (max-width: 420px) { .course__meta { grid-template-columns: 1fr; } .course__cta { align-self: stretch; } }

/* Steps */
.steps { display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; counter-reset: s; }
.step { position: relative; padding: 24px 20px; background: var(--surface); border-radius: var(--radius); border: 1px solid var(--line); }
.step__n {
  display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; margin-bottom: 18px;
  background: var(--brand); color: var(--on-brand); font-family: var(--font-display); font-weight: 600;
}
.step:last-child .step__n { background: var(--accent); color: var(--on-accent); }
.step h3 { margin-bottom: 6px; }
.step p { color: var(--muted); font-size: .95rem; }
.step:not(:last-child)::after {
  content: ""; position: absolute; top: 44px; right: -17px; width: 18px; height: 2px; background: var(--line);
}
@media (max-width: 1024px) { .steps { grid-template-columns: repeat(3, 1fr); } .step::after { display: none; } }
@media (max-width: 640px) { .steps { grid-template-columns: 1fr; } .step { display: grid; grid-template-columns: 40px 1fr; column-gap: 16px; } .step__n { grid-row: span 2; margin: 0; } }

.why { margin-top: clamp(64px, 9vw, 112px); display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(32px, 5vw, 64px); align-items: start; }
.why__head { position: sticky; top: calc(var(--header-h) + 32px); }
.why__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.why__item { padding: 26px; background: var(--surface); border-radius: var(--radius); border: 1px solid var(--line); }
.why__icon { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 14px; background: var(--brand-soft); color: var(--brand-ink); margin-bottom: 18px; }
.why__item h3 { margin-bottom: 8px; }
.why__item p { color: var(--muted); font-size: .95rem; }
@media (max-width: 900px) { .why { grid-template-columns: 1fr; } .why__head { position: static; } }
@media (max-width: 560px) { .why__grid { grid-template-columns: 1fr; } }

/* Audience */
.audience { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; border-top: 1px solid var(--line); }
.audience__item { padding: 28px 24px 8px 0; }
.audience__item + .audience__item { padding-left: 24px; border-left: 1px solid var(--line); }
.audience__item h3 { font-family: var(--font-display); font-weight: 600; font-size: 1.2rem; margin-bottom: 10px; }
.audience__item p { color: var(--muted); }
@media (max-width: 900px) {
  .audience { grid-template-columns: 1fr 1fr; }
  .audience__item, .audience__item + .audience__item { padding: 24px 0; border-left: 0; border-bottom: 1px solid var(--line); }
  .audience__item:nth-child(even) { padding-left: 24px; border-left: 1px solid var(--line); }
}
@media (max-width: 560px) {
  .audience { grid-template-columns: 1fr; }
  .audience__item:nth-child(even) { padding-left: 0; border-left: 0; }
}

/* Signup */
.section--dark { background: var(--dark); color: var(--on-dark); position: relative; overflow: hidden; border-top: 6px solid var(--brand); }
.section--dark::before {
  content: ""; position: absolute; width: 700px; height: 700px; left: -200px; top: -200px; border-radius: 50%;
  background: radial-gradient(closest-side, rgba(208, 18, 27, .32), transparent);
}
.signup { position: relative; display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 88px); align-items: start; }
.signup h2 { color: #fff; }
.signup__lead { margin-top: 18px; color: var(--on-dark-muted); font-size: 1.07rem; max-width: 46ch; }
.signup__points { display: grid; gap: 14px; margin-top: 32px; }
.signup__points li { display: flex; gap: 12px; align-items: center; font-weight: 600; }
.signup__points svg { flex: none; width: 28px; height: 28px; padding: 5px; border-radius: 50%; background: color-mix(in srgb, var(--brand) 24%, transparent); color: var(--brand-on-dark); }
@media (max-width: 900px) { .signup { grid-template-columns: 1fr; } }

.form { display: grid; gap: 18px; }
.field { display: grid; gap: 8px; margin: 0; padding: 0; border: 0; min-width: 0; }
.field > label, .field legend { font-weight: 700; font-size: .92rem; padding: 0; margin-bottom: 0; }
.field legend { margin-bottom: 8px; }
input[type="text"], input[type="tel"], select, textarea {
  width: 100%; min-height: 52px; padding: 13px 16px; border-radius: var(--radius-sm);
  border: 1.5px solid var(--line); background: var(--bg); color: var(--ink);
  font: 500 1rem/1.4 var(--font); transition: border-color .2s, box-shadow .2s, background-color .2s;
}
textarea { resize: vertical; min-height: 88px; }
input::placeholder, textarea::placeholder { color: color-mix(in srgb, var(--muted) 75%, transparent); }
input:hover, select:hover, textarea:hover { border-color: color-mix(in srgb, var(--ink) 30%, var(--line)); }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--brand); background: var(--surface); box-shadow: 0 0 0 4px color-mix(in srgb, var(--brand) 18%, transparent); }
.field.is-invalid input, .field.is-invalid select, .field.is-invalid textarea { border-color: var(--error); background: var(--error-soft); }
.field.is-invalid input:focus, .field.is-invalid select:focus, .field.is-invalid textarea:focus { border-color: var(--error); box-shadow: 0 0 0 4px color-mix(in srgb, var(--error) 22%, transparent); }
.field.is-invalid .check { color: var(--error); }
.field__err, .form__status { display: flex; align-items: center; gap: 6px; color: var(--error); font-weight: 600; }
.field__err { font-size: .85rem; min-height: 0; }
.field__err::before, .form__status::before {
  content: ""; flex: none; width: 16px; height: 16px; background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 3 2 20h20L12 3Z'/%3E%3Cpath d='M12 10v4M12 17h.01'/%3E%3C/svg%3E") center / contain no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 3 2 20h20L12 3Z'/%3E%3Cpath d='M12 10v4M12 17h.01'/%3E%3C/svg%3E") center / contain no-repeat;
}
.field__err:empty { display: none; }
.select { position: relative; }
.select select { appearance: none; -webkit-appearance: none; padding-right: 44px; cursor: pointer; }
.select::after { content: ""; position: absolute; right: 18px; top: 50%; width: 8px; height: 8px; border: solid var(--muted); border-width: 0 2px 2px 0; transform: translateY(-70%) rotate(45deg); pointer-events: none; }

.pills { display: flex; flex-wrap: wrap; gap: 8px; }
.pill { position: relative; cursor: pointer; }
.pill input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.pill span { display: inline-flex; align-items: center; min-height: 42px; padding: 8px 16px; border-radius: 999px; border: 1.5px solid var(--line); font-weight: 600; font-size: .92rem; transition: all .15s; }
.pill:hover span { border-color: color-mix(in srgb, var(--ink) 35%, var(--line)); }
.pill input:checked + span { background: var(--brand); border-color: var(--brand); color: var(--on-brand); }
.pill input:focus-visible + span { outline: 3px solid var(--brand); outline-offset: 2px; }

.check { display: flex; gap: 12px; align-items: flex-start; cursor: pointer; font-size: .92rem; color: var(--ink-2); font-weight: 500; }
.check input { flex: none; width: 20px; height: 20px; margin: 2px 0 0; accent-color: var(--brand); cursor: pointer; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form__status { justify-content: center; font-size: .92rem; text-align: center; }
.form__status:empty { display: none; }

.success { text-align: center; padding: 32px 8px; outline: none; }
.success__icon { display: inline-grid; place-items: center; width: 72px; height: 72px; border-radius: 50%; background: var(--brand-soft); color: var(--brand-ink); margin-bottom: 20px; animation: pop .5s cubic-bezier(.2, 1.4, .4, 1); }
.success__icon svg { width: 34px; height: 34px; }
.success h3 { font-family: var(--font-display); font-weight: 600; font-size: 1.5rem; margin-bottom: 10px; }
.success p { color: var(--muted); margin-bottom: 24px; }
@keyframes pop { from { transform: scale(.4); opacity: 0; } }

/* FAQ */
.faq { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(32px, 5vw, 64px); align-items: start; }
.faq__list { border-top: 1px solid var(--line); }
.qa { border-bottom: 1px solid var(--line); }
.qa summary { display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 22px 0; cursor: pointer; list-style: none; font-weight: 700; font-size: 1.07rem; }
.qa summary::-webkit-details-marker { display: none; }
.qa__icon { flex: none; display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: var(--tint); transition: transform .25s, background-color .2s, color .2s; }
.qa[open] .qa__icon { transform: rotate(45deg); background: var(--brand); color: var(--on-brand); }
.qa summary:hover .qa__icon { background: var(--brand-soft); }
.qa p { padding: 0 56px 24px 0; color: var(--muted); }
@media (max-width: 900px) { .faq { grid-template-columns: 1fr; } .faq .section__head { margin-bottom: 8px; } .qa p { padding-right: 0; } }

/* Contacts */
.contacts { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 5vw, 64px); align-items: center; }
.contacts .section__lead { margin-bottom: 28px; }
.contacts__card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(22px, 3vw, 36px); }
.contacts__list { display: grid; gap: 18px; margin: 0; }
.contacts__list > div { display: grid; grid-template-columns: 1fr 1.4fr; gap: 16px; align-items: center; padding-bottom: 18px; border-bottom: 1px dashed var(--line); }
.contacts__list dt { display: flex; align-items: center; gap: 10px; color: var(--muted); font-weight: 600; font-size: .92rem; }
.contacts__list dt svg { color: var(--brand-hi); }
.contacts__list dd { margin: 0; font-weight: 700; }
.contacts__list a { text-decoration: none; }
.contacts__list a:hover { color: var(--brand-hi); }
.contacts__social-label { margin-top: 22px; margin-bottom: 12px; font-size: .75rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.socials { display: flex; flex-wrap: wrap; gap: 10px; }
.social { display: inline-flex; align-items: center; gap: 12px; padding: 10px 18px 10px 12px; border-radius: 16px; border: 1.5px solid var(--line); text-decoration: none; transition: border-color .2s, transform .2s; }
.social:hover { border-color: var(--brand); transform: translateY(-2px); }
.social svg { color: var(--brand-hi); }
.social span { display: grid; font-size: .88rem; line-height: 1.3; color: var(--muted); }
.social b { color: var(--ink); font-size: .95rem; }
@media (max-width: 860px) { .contacts { grid-template-columns: 1fr; } }
@media (max-width: 420px) { .contacts__list > div { grid-template-columns: 1fr; gap: 4px; } }

/* Footer */
.footer { padding: 40px 0 calc(40px + env(safe-area-inset-bottom, 0px)); border-top: 1px solid var(--line); font-size: .9rem; color: var(--muted); }
.footer__row { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 24px; }
.logo--footer { color: var(--ink); margin-bottom: 10px; }
.footer__meta { text-align: right; display: grid; gap: 4px; }
@media (max-width: 640px) { .footer__meta { text-align: left; } }

/* Mobile sticky CTA */
.mobile-cta { display: none; }
@media (max-width: 960px) {
  .mobile-cta {
    display: flex; align-items: center; justify-content: center; position: fixed; z-index: 40;
    left: 16px; right: 16px; bottom: calc(12px + env(safe-area-inset-bottom, 0px)); min-height: 54px; border-radius: 999px;
    background: var(--brand); color: var(--on-brand); font-weight: 800; text-decoration: none; box-shadow: 0 16px 32px -12px color-mix(in srgb, var(--brand) 55%, transparent);
    transform: translateY(150%); transition: transform .3s cubic-bezier(.2, .7, .2, 1);
  }
  .mobile-cta.is-visible { transform: none; }
  .footer { padding-bottom: calc(96px + env(safe-area-inset-bottom, 0px)); }
}

/* Reveal on scroll (only when JS enabled) */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s cubic-bezier(.2, .7, .2, 1) var(--d, 0ms), transform .6s cubic-bezier(.2, .7, .2, 1) var(--d, 0ms); }
.js .reveal.is-in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .ecg__line { stroke-dashoffset: 0; }
  .js .reveal { opacity: 1; transform: none; }
}

/* Brand logo (real Scalpel mark) */
.logo { text-transform: uppercase; letter-spacing: .06em; font-size: .98rem; }
.logo__img { width: 40px; height: 40px; border-radius: 11px; object-fit: cover; box-shadow: 0 4px 12px -4px color-mix(in srgb, var(--brand) 60%, transparent); }
.footer__motto { margin-top: 6px; font-style: italic; letter-spacing: .08em; color: var(--brand-ink); }

/* New directions */
.section--more { padding-top: 0; }
.more { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.more__item { position: relative; padding: 24px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); border-left: 4px solid var(--brand); }
.more__item h3 { font-family: var(--font-display); font-weight: 600; font-size: 1.05rem; margin-bottom: 8px; padding-right: 8px; }
.more__item p { color: var(--muted); font-size: .95rem; }
.badge { display: inline-block; margin-bottom: 12px; padding: 4px 10px; border-radius: 999px; background: var(--brand-soft); color: var(--brand-ink); font-size: .72rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
@media (max-width: 1024px) { .more { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .more { grid-template-columns: 1fr; } }

/* ---------- Quick course picker (dark sign-up section) ---------- */
.picker { background: rgba(255, 255, 255, .04); border: 1px solid rgba(255, 255, 255, .1); border-radius: 24px; padding: clamp(18px, 3vw, 30px); }
.picker__title { font-family: var(--font-display); font-weight: 600; font-size: clamp(1.05rem, 1rem + .4vw, 1.3rem); color: #fff; margin-bottom: 18px; line-height: 1.3; }
.picker__list { display: grid; gap: 10px; }
.picker__item {
  display: flex; align-items: center; gap: 14px; padding: 14px 16px; border-radius: 16px; text-decoration: none;
  background: rgba(255, 255, 255, .04); border: 1px solid rgba(255, 255, 255, .08); color: var(--on-dark);
  transition: background-color .2s, border-color .2s, transform .2s;
}
.picker__item:hover { background: color-mix(in srgb, var(--brand) 18%, transparent); border-color: var(--brand); transform: translateX(4px); }
.picker__item:focus-visible { outline-color: var(--brand-on-dark); }
.picker__icon { flex: none; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; background: color-mix(in srgb, var(--brand) 24%, transparent); color: var(--brand-on-dark); }
.picker__text { display: grid; line-height: 1.3; min-width: 0; }
.picker__text b { font-weight: 800; }
.picker__text small { color: var(--on-dark-muted); font-size: .86rem; }
.picker__item > svg:last-child { margin-left: auto; flex: none; color: var(--brand-on-dark); transition: transform .2s; }
.picker__item:hover > svg:last-child { transform: translateX(3px); }
.picker__item--unsure { border-style: dashed; }

/* ---------- Sign-up modal ---------- */
.modal {
  padding: 0; border: 0; margin: 0; width: 100%; height: 100%; max-width: none; max-height: none;
  background: transparent; color: var(--ink); overflow: hidden;
}
.modal[open] { display: grid; place-items: center; padding: 16px; }
.modal::backdrop { background: rgba(8, 6, 6, .66); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
html.modal-open { overflow: hidden; }
.modal__box {
  position: relative; width: min(640px, 100%); max-height: calc(100dvh - 32px); overflow-y: auto; overscroll-behavior: contain;
  background: var(--surface); border-radius: 26px; padding: clamp(20px, 3.5vw, 34px);
  box-shadow: 0 50px 100px -30px rgba(0, 0, 0, .6); border-top: 5px solid var(--brand);
  animation: modalIn .35s cubic-bezier(.2, .8, .2, 1);
}
@keyframes modalIn { from { opacity: 0; transform: translateY(16px) scale(.98); } }
.modal__head { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; }
.modal__head .eyebrow { margin-bottom: 8px; }
.modal__title { font-family: var(--font-display); font-weight: 600; font-size: clamp(1.3rem, 1.1rem + 1vw, 1.7rem); }
.modal__close { flex: none; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; border: 1.5px solid var(--line); background: var(--surface); color: var(--ink); cursor: pointer; transition: border-color .2s, transform .2s; }
.modal__close:hover { border-color: var(--ink); transform: rotate(90deg); }

.progress { margin: 22px 0 24px; }
.progress__steps { display: flex; justify-content: space-between; gap: 8px; margin-bottom: 12px; }
.progress__steps li { display: flex; align-items: center; gap: 8px; font-size: .85rem; font-weight: 700; color: var(--muted); }
.progress__n { display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; border: 1.5px solid var(--line); font-size: .78rem; transition: all .25s; }
.progress__steps li[aria-current="step"] { color: var(--ink); }
.progress__steps li[aria-current="step"] .progress__n { background: var(--brand); border-color: var(--brand); color: var(--on-brand); }
.progress__steps li.is-done .progress__n { background: var(--brand-soft); border-color: transparent; color: var(--brand-ink); }
.progress__bar { height: 4px; border-radius: 99px; background: var(--tint); overflow: hidden; }
.progress__bar i { display: block; height: 100%; width: 33.34%; background: var(--brand); border-radius: inherit; transition: width .4s cubic-bezier(.2, .7, .2, 1); }
@media (max-width: 420px) { .progress__steps li:not([aria-current]) .progress__label { display: none; } }

.pane { display: grid; gap: 18px; }
.pane.is-entering { animation: paneIn .35s cubic-bezier(.2, .7, .2, 1); }
.pane.is-entering.is-back { animation-name: paneBack; }
@keyframes paneIn { from { opacity: 0; transform: translateX(18px); } }
@keyframes paneBack { from { opacity: 0; transform: translateX(-18px); } }

.ccards { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.ccard {
  position: relative; display: grid; grid-template-columns: auto 1fr; gap: 12px; align-items: center;
  padding: 16px; border-radius: 16px; border: 1.5px solid var(--line); background: var(--bg); cursor: pointer;
  transition: border-color .2s, background-color .2s, transform .15s, box-shadow .2s;
}
.ccard:hover { border-color: color-mix(in srgb, var(--brand) 45%, var(--line)); transform: translateY(-2px); }
.ccard:active { transform: scale(.98); }
.ccard input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.ccard__icon { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; background: var(--surface); color: var(--ink); border: 1px solid var(--line); transition: all .2s; }
.ccard__text { display: grid; line-height: 1.3; padding-right: 18px; }
.ccard__text b { font-weight: 800; font-size: .98rem; }
.ccard__text small { color: var(--muted); font-size: .82rem; }
.ccard__check { position: absolute; top: 10px; right: 10px; display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: var(--brand); color: var(--on-brand); transform: scale(0); transition: transform .25s cubic-bezier(.2, 1.4, .4, 1); }
.ccard__check svg { width: 14px; height: 14px; }
.ccard:has(input:checked) { border-color: var(--brand); background: var(--brand-soft); box-shadow: 0 10px 24px -14px color-mix(in srgb, var(--brand) 70%, transparent); }
.ccard:has(input:checked) .ccard__icon { background: var(--brand); border-color: var(--brand); color: var(--on-brand); }
.ccard:has(input:checked) .ccard__check { transform: scale(1); }
.ccard:has(input:focus-visible) { outline: 3px solid var(--brand); outline-offset: 2px; }
.ccard--unsure { border-style: dashed; }
.field.is-invalid .ccard { border-color: var(--error); }
@media (max-width: 520px) { .ccards { grid-template-columns: 1fr; } .ccard { padding: 12px 14px; } }

.picked { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; padding: 12px 14px; border-radius: 14px; background: var(--tint); font-size: .92rem; }
.picked span { color: var(--muted); font-weight: 600; }
.picked__change { margin-left: auto; padding: 4px 2px; border: 0; background: none; color: var(--brand-ink); font: 700 .88rem var(--font); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }

.modal__nav { display: flex; align-items: center; gap: 10px; margin-top: 24px; padding-top: 18px; border-top: 1px solid var(--line); }
.modal__primary { margin-left: auto; min-width: 180px; }
.modal .form__status { margin-top: 8px; }
.success__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }

@keyframes sheetIn { from { transform: translateY(40px); opacity: 0; } }
@media (max-width: 560px) {
  .modal[open] { place-items: end center; padding: 0; }
  .modal__box {
    width: 100%; max-height: 94dvh; border-radius: 24px 24px 0 0;
    padding-bottom: calc(20px + env(safe-area-inset-bottom, 0px)); animation-name: sheetIn;
  }
  .modal__nav { position: sticky; bottom: calc(-20px - env(safe-area-inset-bottom, 0px)); background: var(--surface); padding: 14px 0 calc(4px + env(safe-area-inset-bottom, 0px)); }
  .modal__primary { flex: 1; min-width: 0; }
}
.modal__title:focus { outline: none; }

/* Review fixes */
.success h3:focus { outline: none; }
/* Состояние выбора без :has() (старые браузеры) */
.ccard input:checked ~ .ccard__icon { background: var(--brand); border-color: var(--brand); color: var(--on-brand); }
.ccard input:checked ~ .ccard__check { transform: scale(1); }
.ccard input:focus-visible ~ .ccard__icon { outline: 3px solid var(--brand); outline-offset: 2px; }
/* Браузеры без <dialog>.showModal() */
.modal:not([open]) { display: none; }
.modal--fallback[open] { position: fixed; inset: 0; z-index: 1000; background: rgba(8, 6, 6, .66); }
@media (max-width: 560px) {
  /* Липкая панель кнопок не должна закрывать поле в фокусе и текст ошибки */
  .modal__box { scroll-padding-bottom: calc(110px + env(safe-area-inset-bottom, 0px)); }
  .modal__nav { margin-bottom: calc(-20px - env(safe-area-inset-bottom, 0px)); }
}

/* ================= Course explorer: body map ================= */
.cx { margin-top: 8px; }
.cx__tabs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }
.cx__tab {
  display: inline-flex; align-items: center; gap: 10px; padding: 7px 16px 7px 7px; border-radius: 999px;
  border: 1.5px solid var(--line); background: var(--surface); color: var(--ink); font: 700 .95rem var(--font);
  cursor: pointer; white-space: nowrap; transition: border-color .2s, background-color .2s, color .2s, transform .2s;
}
.cx__tab:hover { border-color: color-mix(in srgb, var(--brand) 45%, var(--line)); transform: translateY(-1px); }
.cx__icon { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--tint); transition: background-color .2s, color .2s; }
.cx__icon svg { width: 19px; height: 19px; }
.cx__tab[aria-selected="true"] { background: var(--brand); border-color: var(--brand); color: var(--on-brand); box-shadow: 0 10px 22px -12px color-mix(in srgb, var(--brand) 80%, transparent); }
.cx__tab[aria-selected="true"] .cx__icon { background: rgba(255, 255, 255, .18); color: var(--on-brand); }

.cx__stage { display: grid; grid-template-columns: minmax(280px, .85fr) 1.15fr; gap: 20px; align-items: stretch; }

/* --- hologram card --- */
.body {
  position: relative; overflow: hidden; border-radius: 28px; padding: 56px 20px 64px; min-height: 560px;
  display: grid; place-items: center; isolation: isolate; color: var(--on-dark);
  background:
    radial-gradient(60% 45% at 50% 42%, rgba(208, 18, 27, .28), transparent 70%),
    linear-gradient(rgba(255, 255, 255, .045) 1px, transparent 1px) 0 0 / 24px 24px,
    linear-gradient(90deg, rgba(255, 255, 255, .045) 1px, transparent 1px) 0 0 / 24px 24px,
    var(--dark);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .06);
}
.body__fig { position: relative; width: min(100%, 250px); aspect-ratio: 240 / 500; }
.body__svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.body__outline { fill: rgba(255, 255, 255, .035); stroke: rgba(255, 255, 255, .45); stroke-width: 1.3; stroke-linejoin: round; }
.body__scan {
  position: absolute; left: 0; right: 0; top: -90px; height: 90px; pointer-events: none; z-index: -1;
  background: linear-gradient(transparent, rgba(255, 51, 64, .14), transparent);
  animation: scan 5s linear infinite;
}
@keyframes scan { to { transform: translateY(700px); } }

/* per-course effects: drawn with stroke-dashoffset (inherited into <use> shadow trees) */
.fx { opacity: 0; fill: none; stroke: #ff4d57; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 1; stroke-dashoffset: 1; transition: opacity .35s, stroke-dashoffset 1.2s cubic-bezier(.4, 0, .2, 1); }
.body[data-active="anatomy"] .fx[data-fx="anatomy"],
.body[data-active="cardiology"] .fx[data-fx="cardiology"],
.body[data-active="ent"] .fx[data-fx="ent"],
.body[data-active="surgery"] .fx[data-fx="surgery"],
.body[data-active="laparoscopy"] .fx[data-fx="laparoscopy"] { opacity: 1; stroke-dashoffset: 0; }

.fx[data-fx="anatomy"] { stroke: #f4f0ee; stroke-width: 1.5; filter: drop-shadow(0 0 3px rgba(255, 255, 255, .45)); }
.fx__spine { stroke-width: 3.2; stroke: #f4f0ee; }

.fx__heart { fill: #ff3340; stroke: none; stroke-dasharray: none; transform-box: fill-box; transform-origin: center; filter: drop-shadow(0 0 8px rgba(255, 51, 64, .9)); }
.body[data-active="cardiology"] .fx__heart { animation: beat 1s ease-in-out infinite; }
@keyframes beat { 0%, 100% { transform: scale(1); } 15% { transform: scale(1.22); } 30% { transform: scale(1); } 45% { transform: scale(1.12); } }
.fx__ecg { stroke: #3ee07a; stroke-width: 1.6; filter: drop-shadow(0 0 4px rgba(62, 224, 122, .8)); }

.fx[data-fx="ent"] { stroke: #7cc4ff; filter: drop-shadow(0 0 4px rgba(124, 196, 255, .7)); }
.body[data-active="ent"] .fx[data-fx="ent"] path:nth-child(-n+3) { animation: wave 1.8s ease-out infinite; }
.body[data-active="ent"] .fx[data-fx="ent"] path:nth-child(2) { animation-delay: .25s; }
.body[data-active="ent"] .fx[data-fx="ent"] path:nth-child(3) { animation-delay: .5s; }
@keyframes wave { 0%, 100% { opacity: .25; } 40% { opacity: 1; } }

.fx[data-fx="surgery"] { stroke: #f4f0ee; stroke-width: 1.6; }
.fx__cut { stroke: #ff3340; stroke-width: 2.2; filter: drop-shadow(0 0 4px rgba(255, 51, 64, .9)); }

.fx__cavity { fill: rgba(255, 51, 64, .12); stroke: rgba(255, 77, 87, .7); stroke-dasharray: 3 3; stroke-width: 1.2; }
.body[data-active="laparoscopy"] .fx__cavity { stroke-dashoffset: 0; animation: cavity 3s ease-in-out infinite; }
@keyframes cavity { 50% { fill: rgba(255, 51, 64, .22); } }
.fx[data-fx="laparoscopy"] { stroke: #d9d1ce; stroke-width: 2.6; }
.fx[data-fx="laparoscopy"] circle { fill: #ff3340; stroke: #fff; stroke-width: 1; stroke-dasharray: none; }

/* hotspots */
.spot {
  position: absolute; left: var(--x); top: var(--y); transform: translate(-50%, -50%); z-index: 2;
  display: grid; place-items: center; width: 44px; height: 44px; padding: 0; border: 0; background: none; cursor: pointer;
}
.spot__dot { width: 14px; height: 14px; border-radius: 50%; background: #ff3340; border: 2px solid #fff; animation: spotPulse 2.2s ease-out infinite; transition: transform .2s, background-color .2s; }
.spot:hover .spot__dot { transform: scale(1.25); }
.spot.is-active .spot__dot { background: #fff; border-color: #ff3340; transform: scale(1.35); animation: none; box-shadow: 0 0 0 6px rgba(255, 51, 64, .35), 0 0 18px rgba(255, 51, 64, .9); }
@keyframes spotPulse { 0% { box-shadow: 0 0 0 0 rgba(255, 51, 64, .7); } 70%, 100% { box-shadow: 0 0 0 14px rgba(255, 51, 64, 0); } }
.spot__label {
  position: absolute; left: 50%; bottom: calc(100% - 6px); transform: translate(-50%, 6px); padding: 5px 11px; border-radius: 999px;
  background: #fff; color: #111; font: 800 .78rem/1.2 var(--font); white-space: nowrap; pointer-events: none; opacity: 0;
  box-shadow: 0 8px 20px -8px rgba(0, 0, 0, .6); transition: opacity .2s, transform .2s;
}
.spot:hover .spot__label, .spot.is-active .spot__label { opacity: 1; transform: translate(-50%, 0); }
.spot[data-spot="3"] .spot__label { left: 0; transform: translate(-10%, 6px); }
.spot[data-spot="3"]:hover .spot__label, .spot[data-spot="3"].is-active .spot__label { transform: translate(-10%, 0); }

.body__hint { position: absolute; top: 18px; left: 20px; display: flex; align-items: center; gap: 6px; font-size: .8rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--on-dark-muted); }
.body__hint svg { color: #ff6b66; animation: tap 1.6s ease-in-out infinite; }
@keyframes tap { 50% { transform: translateY(2px) scale(.92); } }
.body__region { position: absolute; left: 16px; right: 16px; bottom: 18px; text-align: center; font-family: var(--font-display); font-weight: 600; font-size: .95rem; color: #fff; }
.body__region::before { content: ""; display: inline-block; width: 8px; height: 8px; margin-right: 8px; border-radius: 50%; background: #ff3340; box-shadow: 0 0 10px #ff3340; vertical-align: middle; }

/* --- course panel --- */
.cx__panels { display: grid; }
.cx__panel { --c: var(--brand); --c-fg: var(--brand-hi); }
.cx__panel.is-entering { animation: panelIn .45s cubic-bezier(.2, .7, .2, 1); }
@keyframes panelIn { from { opacity: 0; transform: translateY(12px); } }
.course__badge { display: inline-flex; align-self: flex-start; align-items: center; gap: 6px; margin-bottom: 14px; padding: 6px 12px; border-radius: 999px; background: var(--brand-soft); color: var(--brand-ink); font-size: .78rem; font-weight: 800; letter-spacing: .02em; }
.course__desc { margin: 14px 0 22px; color: var(--ink-2); line-height: 1.7; }
.course__foot { margin-top: auto; display: flex; flex-wrap: wrap; align-items: center; gap: 12px 18px; }
.course__foot .course__cta { margin: 0; }
.course__where { font-size: .82rem; font-weight: 700; color: var(--muted); letter-spacing: .02em; }

/* --- path to surgery --- */
.path { display: flex; flex-wrap: wrap; gap: 16px 40px; margin-top: 20px; padding: 18px 22px; border: 1px solid var(--line); border-radius: 20px; background: var(--surface); }
.path__title { margin-bottom: 10px; font-size: .74rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.path__list { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.path__list--steps li { display: flex; align-items: center; gap: 8px; }
.path__list--steps li:not(:last-child)::after { content: ""; width: 26px; height: 2px; border-radius: 2px; background: repeating-linear-gradient(90deg, var(--brand) 0 5px, transparent 5px 9px); }
.path__node {
  display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 6px 14px 6px 6px; border-radius: 999px;
  border: 1.5px solid var(--line); background: var(--bg); color: var(--ink); font: 700 .9rem var(--font); cursor: pointer;
  transition: border-color .2s, background-color .2s, color .2s;
}
.path__node--branch { padding-left: 12px; }
.path__node svg { width: 18px; height: 18px; color: var(--brand-hi); }
.path__node:hover { border-color: var(--brand); }
.path__n { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--tint); font-family: var(--font-display); font-size: .78rem; }
.path__node.is-active { border-color: var(--brand); background: var(--brand-soft); color: var(--brand-ink); }
.path__node.is-active .path__n { background: var(--brand); color: var(--on-brand); }

/* ================= Course quiz ================= */
.quiz {
  margin-bottom: 20px; padding: clamp(18px, 3vw, 26px); border-radius: 24px; border: 2px solid transparent;
  background: linear-gradient(var(--surface), var(--surface)) padding-box, linear-gradient(120deg, var(--brand), #ff9a8a 50%, var(--brand)) border-box;
  box-shadow: var(--shadow);
}
.quiz__intro { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 20px; }
.quiz__icon { flex: none; display: grid; place-items: center; width: 52px; height: 52px; border-radius: 16px; background: var(--brand); color: var(--on-brand); }
.quiz__icon svg { animation: sparkle 3s linear infinite; }
@keyframes sparkle { to { transform: rotate(360deg); } }
.quiz__intro-text { flex: 1 1 260px; }
.quiz__intro-text h3 { font-family: var(--font-display); font-weight: 600; font-size: 1.15rem; margin-bottom: 4px; }
.quiz__intro-text p { color: var(--muted); }
.quiz__top { display: flex; align-items: center; gap: 14px; margin-bottom: 16px; }
.quiz__counter { font-size: .76rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--brand-ink); white-space: nowrap; }
.quiz__bar { flex: 1; height: 4px; border-radius: 99px; background: var(--tint); overflow: hidden; }
.quiz__bar i { display: block; width: 33.34%; height: 100%; border-radius: inherit; background: var(--brand); transition: width .35s cubic-bezier(.2, .7, .2, 1); }
.quiz__close { flex: none; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; border: 1.5px solid var(--line); background: var(--surface); color: var(--ink); cursor: pointer; }
.quiz__close svg { width: 18px; height: 18px; }
.quiz__q { margin: 0; padding: 0; border: 0; min-width: 0; }
.quiz__q:not([hidden]) { animation: paneIn .35s cubic-bezier(.2, .7, .2, 1); }
.quiz__question { padding: 0; margin-bottom: 16px; font-family: var(--font-display); font-weight: 600; font-size: clamp(1.15rem, 1rem + .8vw, 1.5rem); }
.quiz__question:focus { outline: none; }
.quiz__options { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 10px; }
.quiz__opt {
  padding: 16px 18px; border-radius: 16px; border: 1.5px solid var(--line); background: var(--bg); color: var(--ink);
  font: 700 1rem/1.35 var(--font); text-align: left; cursor: pointer; transition: border-color .2s, background-color .2s, color .2s, transform .15s;
}
.quiz__opt:hover { border-color: var(--brand); transform: translateY(-2px); }
.quiz__opt:active { transform: scale(.98); }
.quiz__opt.is-picked { background: var(--brand); border-color: var(--brand); color: var(--on-brand); }
.quiz__back { display: inline-flex; align-items: center; gap: 6px; margin-top: 14px; padding: 6px 0; border: 0; background: none; color: var(--muted); font: 700 .9rem var(--font); cursor: pointer; }
.quiz__back:hover { color: var(--ink); }

.quiz__result { outline: none; animation: paneIn .4s cubic-bezier(.2, .7, .2, 1); }
.quiz__result-main { display: flex; gap: 18px; align-items: flex-start; }
.quiz__result-icon { flex: none; display: grid; place-items: center; width: 64px; height: 64px; border-radius: 18px; background: var(--brand); color: var(--on-brand); box-shadow: 0 12px 26px -12px color-mix(in srgb, var(--brand) 90%, transparent); animation: pop .5s cubic-bezier(.2, 1.4, .4, 1); }
.quiz__result-icon svg { width: 30px; height: 30px; }
.quiz__result-label { font-size: .76rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--brand-ink); }
.quiz__result-name { margin: 4px 0 6px; font-family: var(--font-display); font-weight: 600; font-size: clamp(1.4rem, 1.2rem + 1vw, 1.9rem); }
.quiz__result-reason { color: var(--ink-2); max-width: 62ch; }
.quiz__result-meta { display: grid; gap: 6px; margin: 18px 0; padding: 14px 16px; border-radius: 14px; background: var(--tint); font-size: .92rem; }
.quiz__result-meta span:first-child { color: var(--muted); font-weight: 700; }
.quiz__answers { font-weight: 600; }
.quiz__also { padding: 0; border: 0; background: none; color: var(--brand-ink); font: 800 .92rem var(--font); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.quiz__result-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.quiz__restart { margin-left: auto; padding: 6px 0; border: 0; background: none; color: var(--muted); font: 700 .9rem var(--font); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }

@media (max-width: 900px) {
  .cx__stage { grid-template-columns: 1fr; }
  .body { min-height: 0; padding: 50px 16px 56px; }
  .body__fig { width: min(62vw, 220px); }
  .cx__tabs { flex-wrap: nowrap; overflow-x: auto; scroll-snap-type: x mandatory; padding: 2px 2px 8px; margin-inline: -2px; scrollbar-width: none; }
  .cx__tabs::-webkit-scrollbar { display: none; }
  .cx__tab { scroll-snap-align: start; }
}
@media (max-width: 560px) {
  .path { padding: 16px; gap: 14px; }
  .path__list--steps li:not(:last-child)::after { width: 14px; }
  .quiz__options { grid-template-columns: 1fr; }
  .quiz__restart { margin-left: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .body__scan { display: none; }
  .fx { transition: none; }
}

/* explorer polish */
.body__scan { left: -100vw; right: -100vw; }
.spot.is-active .spot__dot { width: 24px; height: 24px; background: transparent; border: 2px solid #fff; transform: none; box-shadow: 0 0 0 4px rgba(255, 51, 64, .35), 0 0 16px rgba(255, 51, 64, .8), inset 0 0 8px rgba(255, 51, 64, .6); }
.fx[data-fx="surgery"] { stroke-width: 2.2; }
.fx__cut { stroke-width: 2.8; }
@media (max-width: 900px) {
  .body__fig { width: min(46vw, 180px); }
}
@media (max-width: 560px) {
  .path__list--steps { flex-direction: column; align-items: flex-start; gap: 6px; }
  .path__list--steps li:not(:last-child)::after { display: none; }
}
