/* =========================================================
   Pulse CPR — main stylesheet
   Colors come from the logo: black, logo red, white + greys.
   ========================================================= */

:root {
  --black: #070708;
  --ink: #0e0e10;
  --char: #161619;
  --char-2: #1f1f23;
  --line-dark: #2b2b31;
  --grey-600: #5c5c66;
  --grey-500: #85858f;
  --grey-300: #c9c9cf;
  --grey-200: #e4e4e8;
  --grey-100: #f3f3f5;
  --white: #ffffff;
  --red: #d10a0a;
  --red-hot: #ff3434;
  --red-dark: #9e0606;
  --red-glow: rgba(209, 10, 10, 0.35);

  --font-head: "Barlow Condensed", "Arial Narrow", Arial, sans-serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --radius: 14px;
  --radius-lg: 22px;
  --shadow: 0 20px 50px -20px rgba(0, 0, 0, 0.45);
  --shadow-soft: 0 10px 30px -12px rgba(16, 16, 20, 0.18);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --container: 1200px;
  --header-h: 76px;
}

*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
body.menu-open { overflow: hidden; }

[hidden] { display: none !important; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
button { font: inherit; cursor: pointer; }

h1, h2, h3, h4 {
  font-family: var(--font-head);
  font-weight: 700;
  line-height: 1.02;
  letter-spacing: 0.005em;
  margin: 0 0 0.5em;
  text-transform: uppercase;
}
h1 { font-size: clamp(2.75rem, 7vw, 5.6rem); font-weight: 800; }
h2 { font-size: clamp(2.1rem, 4.6vw, 3.6rem); }
h3 { font-size: clamp(1.4rem, 2.2vw, 1.75rem); }
h4 { font-size: 1.2rem; }
p { margin: 0 0 1.1em; }

.container { width: min(100% - 32px, var(--container)); margin-inline: auto; }
.narrow { max-width: 780px; }

.skip-link {
  position: absolute; left: 16px; top: -60px; z-index: 200;
  background: var(--red); color: var(--white); padding: 10px 16px; border-radius: 8px;
  font-weight: 600; text-decoration: none; transition: top 0.2s;
}
.skip-link:focus { top: 12px; }

:focus-visible { outline: 3px solid var(--red-hot); outline-offset: 3px; border-radius: 4px; }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}

/* ---------- Eyebrow / labels ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-head); font-weight: 600; font-size: 0.95rem;
  letter-spacing: 0.18em; text-transform: uppercase; color: var(--red);
  margin-bottom: 18px;
}
.eyebrow::before {
  content: ""; width: 28px; height: 2px; background: currentColor;
}
.dark .eyebrow, .eyebrow.on-dark { color: var(--red-hot); }

.pulse-dot {
  width: 9px; height: 9px; border-radius: 50%; background: var(--red-hot);
  box-shadow: 0 0 0 0 var(--red-glow); animation: beat 1.4s infinite;
  flex: none;
}
@keyframes beat {
  0% { box-shadow: 0 0 0 0 rgba(255, 52, 52, 0.6); transform: scale(1); }
  14% { transform: scale(1.25); }
  28% { transform: scale(1); }
  42% { transform: scale(1.18); }
  70% { box-shadow: 0 0 0 12px rgba(255, 52, 52, 0); transform: scale(1); }
  100% { box-shadow: 0 0 0 0 rgba(255, 52, 52, 0); }
}

/* ---------- Buttons ---------- */
.btn {
  --bg: var(--red); --fg: var(--white);
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 15px 28px; border-radius: 999px; border: 2px solid var(--bg);
  background: var(--bg); color: var(--fg);
  font-family: var(--font-head); font-weight: 700; font-size: 1.08rem; letter-spacing: 0.08em; text-transform: uppercase;
  text-decoration: none; line-height: 1; white-space: nowrap; overflow: hidden; isolation: isolate;
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease), background 0.3s, color 0.3s, border-color 0.3s;
}
.btn::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(110deg, transparent 30%, rgba(255,255,255,0.28) 50%, transparent 70%);
  transform: translateX(-120%); transition: transform 0.7s var(--ease);
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 14px 30px -10px var(--red-glow); }
.btn:hover::after { transform: translateX(120%); }
.btn svg { width: 18px; height: 18px; transition: transform 0.35s var(--ease); }
.btn:hover svg { transform: translateX(4px); }
.btn-ghost { --bg: transparent; --fg: var(--white); border-color: rgba(255,255,255,0.35); }
.btn-ghost:hover { border-color: var(--white); box-shadow: none; background: rgba(255,255,255,0.06); }
.btn-dark { --bg: var(--ink); --fg: var(--white); }
.btn-dark:hover { box-shadow: 0 14px 30px -12px rgba(0,0,0,0.5); }
.btn-outline { --bg: transparent; --fg: var(--ink); border-color: var(--ink); }
.btn-outline:hover { --bg: var(--ink); --fg: var(--white); box-shadow: none; }
.btn-white { --bg: var(--white); --fg: var(--red-dark); }
.btn-sm { padding: 11px 20px; font-size: 0.95rem; }
.btn-block { width: 100%; }
.btn[disabled] { opacity: 0.5; pointer-events: none; }

.text-link {
  display: inline-flex; align-items: center; gap: 8px; color: var(--red); font-weight: 600; text-decoration: none;
  background: linear-gradient(currentColor, currentColor) 0 100% / 0 2px no-repeat; transition: background-size 0.35s var(--ease);
}
.text-link:hover { background-size: 100% 2px; }
.dark .text-link { color: var(--red-hot); }

/* ---------- Header ---------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 100; height: var(--header-h);
  display: flex; align-items: center;
  background: rgba(7, 7, 8, 0.0);
  transition: background 0.35s, box-shadow 0.35s, height 0.35s;
}
.site-header.scrolled, .site-header.solid {
  background: rgba(7, 7, 8, 0.86);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  backdrop-filter: saturate(160%) blur(14px);
  box-shadow: 0 1px 0 rgba(255,255,255,0.06);
}
.site-header.scrolled { height: 66px; }
.menu-open .site-header { z-index: 130; background: transparent; box-shadow: none; -webkit-backdrop-filter: none; backdrop-filter: none; }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; }

.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; color: var(--white); }
.brand img { width: 46px; height: 46px; object-fit: contain; border-radius: 10px; transition: transform 0.4s var(--ease); }
.brand:hover img { transform: scale(1.06) rotate(-3deg); }
.brand-word { font-family: var(--font-head); font-weight: 800; font-size: 1.65rem; letter-spacing: 0.04em; line-height: 1; }
.brand-word span { color: var(--red-hot); }

.main-nav ul { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: 4px; }
.main-nav a {
  position: relative; display: block; padding: 10px 14px; text-decoration: none; color: rgba(255,255,255,0.82);
  font-weight: 500; font-size: 0.95rem; transition: color 0.25s;
}
.main-nav a::after {
  content: ""; position: absolute; left: 14px; right: 14px; bottom: 4px; height: 2px; background: var(--red-hot);
  transform: scaleX(0); transform-origin: left; transition: transform 0.35s var(--ease);
}
.main-nav a:hover, .main-nav a[aria-current="page"] { color: var(--white); }
.main-nav a:hover::after, .main-nav a[aria-current="page"]::after { transform: scaleX(1); }
.header-actions { display: flex; align-items: center; gap: 14px; }
.header-phone { display: inline-flex; align-items: center; gap: 8px; color: var(--white); text-decoration: none; font-weight: 600; font-size: 0.95rem; }
.header-phone svg { width: 18px; height: 18px; color: var(--red-hot); }

.menu-toggle {
  display: none; width: 46px; height: 46px; border-radius: 12px; border: 1px solid rgba(255,255,255,0.2);
  background: transparent; color: var(--white); position: relative; z-index: 120;
}
.menu-toggle span {
  position: absolute; left: 12px; right: 12px; height: 2px; background: currentColor; border-radius: 2px;
  transition: transform 0.4s var(--ease), opacity 0.3s, top 0.4s var(--ease);
}
.menu-toggle span:nth-child(1) { top: 15px; }
.menu-toggle span:nth-child(2) { top: 22px; }
.menu-toggle span:nth-child(3) { top: 29px; }
.menu-open .menu-toggle span:nth-child(1) { top: 22px; transform: rotate(45deg); }
.menu-open .menu-toggle span:nth-child(2) { opacity: 0; }
.menu-open .menu-toggle span:nth-child(3) { top: 22px; transform: rotate(-45deg); }

/* Mobile menu */
.mobile-menu {
  position: fixed; inset: 0; z-index: 110; background: var(--black);
  display: flex; flex-direction: column; padding: calc(var(--header-h) + 24px) 24px 32px;
  clip-path: circle(0% at calc(100% - 40px) 38px); visibility: hidden;
  transition: clip-path 0.7s var(--ease), visibility 0s linear 0.7s;
  overflow-y: auto;
}
.menu-open .mobile-menu { clip-path: circle(150% at calc(100% - 40px) 38px); visibility: visible; transition: clip-path 0.7s var(--ease), visibility 0s; }
.mobile-menu ul { list-style: none; margin: 0 0 28px; padding: 0; }
.mobile-menu li { border-bottom: 1px solid var(--line-dark); opacity: 0; transform: translateY(16px); transition: opacity 0.4s, transform 0.5s var(--ease); }
.menu-open .mobile-menu li { opacity: 1; transform: none; }
.menu-open .mobile-menu li:nth-child(1) { transition-delay: 0.12s; }
.menu-open .mobile-menu li:nth-child(2) { transition-delay: 0.16s; }
.menu-open .mobile-menu li:nth-child(3) { transition-delay: 0.2s; }
.menu-open .mobile-menu li:nth-child(4) { transition-delay: 0.24s; }
.menu-open .mobile-menu li:nth-child(5) { transition-delay: 0.28s; }
.menu-open .mobile-menu li:nth-child(6) { transition-delay: 0.32s; }
.menu-open .mobile-menu li:nth-child(7) { transition-delay: 0.36s; }
.menu-open .mobile-menu li:nth-child(8) { transition-delay: 0.4s; }
.mobile-menu a.m-link {
  display: flex; justify-content: space-between; align-items: center; padding: 16px 0;
  font-family: var(--font-head); font-weight: 700; font-size: 2rem; text-transform: uppercase; color: var(--white); text-decoration: none;
}
.mobile-menu a.m-link[aria-current="page"] { color: var(--red-hot); }
.mobile-menu a.m-link svg { width: 22px; height: 22px; color: var(--red-hot); }
.mobile-menu .m-contact { margin-top: auto; color: var(--grey-300); font-size: 0.95rem; }
.mobile-menu .m-contact a { color: var(--white); text-decoration: none; font-weight: 600; }

@media (max-width: 1260px) { .header-phone { display: none; } }
@media (max-width: 1080px) {
  .main-nav, .header-phone { display: none; }
  .menu-toggle { display: inline-block; }
  .header-actions .btn { display: none; }
}
@media (min-width: 1081px) { .mobile-menu { display: none; } }

/* ---------- Sections ---------- */
.section { padding: clamp(72px, 10vw, 128px) 0; position: relative; }
.section-tight { padding: clamp(56px, 7vw, 88px) 0; }
.dark { background: var(--black); color: var(--grey-200); }
.dark h1, .dark h2, .dark h3, .dark h4 { color: var(--white); }
.char { background: var(--char); color: var(--grey-200); }
.char h2, .char h3 { color: var(--white); }
.soft { background: var(--grey-100); }
.section-head { max-width: 760px; margin-bottom: clamp(40px, 5vw, 64px); }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head.center .eyebrow { justify-content: center; }
.section-head p { font-size: 1.15rem; color: var(--grey-600); }
.dark .section-head p, .char .section-head p { color: var(--grey-300); }
.accent { color: var(--red); }
.dark .accent, .char .accent { color: var(--red-hot); }

/* ---------- Hero ---------- */
.hero {
  position: relative; min-height: 100vh; min-height: 100svh; display: flex; align-items: center;
  background: var(--black); color: var(--white); overflow: hidden; padding: calc(var(--header-h) + 40px) 0 120px;
}
.hero-media { position: absolute; inset: 0; z-index: 0; }
.hero-media img { position: absolute; right: 0; top: 0; width: 100%; height: 100%; object-fit: cover; object-position: 80% 30%; filter: grayscale(0.08) contrast(1.06) brightness(0.8); transform: scale(1.06); animation: heroZoom 14s var(--ease) forwards; }
@keyframes heroZoom { to { transform: scale(1); } }
.hero-media::after {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(90deg, var(--black) 18%, rgba(7,7,8,0.88) 38%, rgba(7,7,8,0.25) 62%, rgba(7,7,8,0.15) 85%, rgba(7,7,8,0.5) 100%),
    linear-gradient(180deg, rgba(7,7,8,0.55) 0%, transparent 18%),
    linear-gradient(0deg, var(--black) 2%, transparent 40%),
    radial-gradient(60% 70% at 80% 40%, rgba(209,10,10,0.22), transparent 70%);
}
.hero-grid { position: relative; z-index: 2; display: grid; grid-template-columns: minmax(0, 700px); gap: 56px; align-items: end; }
.hero h1 { margin-bottom: 22px; }
.hero h1 .line { display: block; overflow: hidden; }
.hero h1 .line > span { display: inline-block; transform: translateY(105%); animation: rise 1s var(--ease) forwards; }
.hero h1 .line:nth-child(2) > span { animation-delay: 0.12s; }
.hero h1 .line:nth-child(3) > span { animation-delay: 0.24s; }
@keyframes rise { to { transform: none; } }
.hero-lead { font-size: clamp(1.1rem, 1.6vw, 1.3rem); color: var(--grey-300); max-width: 560px; margin-bottom: 34px; }
.hero-badge {
  display: inline-flex; align-items: center; gap: 10px; padding: 8px 16px 8px 12px; border-radius: 999px;
  background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.12); font-size: 0.9rem; color: var(--grey-200); margin-bottom: 28px;
}
.hero-ctas { display: flex; flex-wrap: wrap; gap: 14px; }
.fade-up { opacity: 0; transform: translateY(24px); animation: fadeUp 0.9s var(--ease) forwards; }
.d1 { animation-delay: 0.35s; } .d2 { animation-delay: 0.5s; } .d3 { animation-delay: 0.65s; } .d4 { animation-delay: 0.8s; }
@keyframes fadeUp { to { opacity: 1; transform: none; } }

.hero-card {
  background: rgba(14,14,16,0.72); border: 1px solid rgba(255,255,255,0.1); border-radius: var(--radius-lg);
  padding: 26px; -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px); box-shadow: var(--shadow);
}
.hero-card h2 { font-size: 1.1rem; letter-spacing: 0.16em; color: var(--grey-300); margin-bottom: 14px; font-weight: 600; }
.hero-card a.hc-row {
  display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 12px; padding: 14px 0; text-decoration: none;
  border-top: 1px solid rgba(255,255,255,0.08); transition: padding 0.3s var(--ease);
}
.hero-card a.hc-row:hover { padding-left: 8px; }
.hc-row strong { display: block; font-family: var(--font-head); font-size: 1.35rem; text-transform: uppercase; color: var(--white); line-height: 1.1; }
.hc-row small { color: var(--grey-500); font-size: 0.85rem; }
.hc-price { font-family: var(--font-head); font-weight: 800; font-size: 1.7rem; color: var(--red-hot); }

/* ECG line */
.ecg { position: absolute; left: 0; right: 0; bottom: 34px; height: 90px; z-index: 1; pointer-events: none; }
.ecg svg { width: 100%; height: 100%; overflow: visible; }
.ecg path { fill: none; stroke: var(--red); stroke-width: 2.5; stroke-linejoin: round; stroke-linecap: round; filter: drop-shadow(0 0 6px rgba(255,52,52,0.7)); }
.ecg .ecg-trace { stroke-dasharray: 2600; stroke-dashoffset: 2600; animation: draw 3.2s 0.4s var(--ease) forwards; }
.ecg .ecg-sweep { stroke: var(--white); stroke-width: 3; stroke-dasharray: 140 2600; stroke-dashoffset: 140; opacity: 0; animation: sweep 3.6s 3.4s linear infinite; }
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes sweep { 0% { stroke-dashoffset: 140; opacity: 0.9; } 100% { stroke-dashoffset: -2600; opacity: 0.9; } }

.scroll-cue {
  position: absolute; left: 50%; bottom: 18px; z-index: 3; transform: translateX(-50%);
  width: 26px; height: 42px; border: 2px solid rgba(255,255,255,0.3); border-radius: 14px;
}
.scroll-cue::after { content: ""; position: absolute; left: 50%; top: 8px; width: 4px; height: 8px; margin-left: -2px; border-radius: 2px; background: var(--red-hot); animation: cue 1.8s infinite; }
@keyframes cue { 0% { opacity: 0; transform: translateY(0); } 30% { opacity: 1; } 100% { opacity: 0; transform: translateY(14px); } }

@media (max-width: 960px) {
  .hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .hero-media img { width: 100%; opacity: 0.6; object-position: 74% 30%; }
  .hero-media::after { background: linear-gradient(180deg, rgba(7,7,8,0.55) 0%, rgba(7,7,8,0.85) 55%, var(--black) 100%); }
  .scroll-cue { display: none; }
}

/* ---------- Page hero (inner pages) ---------- */
.page-hero {
  position: relative; background: var(--black); color: var(--white); overflow: hidden;
  padding: calc(var(--header-h) + clamp(56px, 8vw, 100px)) 0 clamp(64px, 8vw, 110px);
}
.page-hero .bg { position: absolute; inset: 0; }
.page-hero .bg img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(0.35) brightness(0.45); }
.page-hero .bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, var(--black) 18%, rgba(7,7,8,0.72) 60%, rgba(7,7,8,0.45)), linear-gradient(0deg, var(--black), transparent 50%); }
/* Real class photos: lighter, so the class stays visible behind the title */
.page-hero .bg.photo img { filter: grayscale(0.08) contrast(1.05) brightness(0.78); object-position: right center; }
.page-hero .bg.photo::after { background: linear-gradient(90deg, var(--black) 12%, rgba(7,7,8,0.82) 40%, rgba(7,7,8,0.25) 72%, rgba(7,7,8,0.1)), linear-gradient(0deg, rgba(7,7,8,0.9), transparent 35%); }
@media (max-width: 760px) { .page-hero .bg.photo img { object-position: 68% center; } .page-hero .bg.photo::after { background: linear-gradient(180deg, rgba(7,7,8,0.55), rgba(7,7,8,0.85) 60%, var(--black)); } }
.page-hero .container { position: relative; z-index: 2; }
.page-hero h1 { font-size: clamp(2.6rem, 6.2vw, 4.8rem); max-width: 900px; }
.page-hero p.lead { font-size: clamp(1.08rem, 1.5vw, 1.25rem); color: var(--grey-300); max-width: 640px; }
.page-hero .ecg { bottom: 0; height: 60px; opacity: 0.8; }
.breadcrumb { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; padding: 0; margin: 0 0 22px; font-size: 0.88rem; color: var(--grey-500); }
.breadcrumb a { color: var(--grey-300); text-decoration: none; }
.breadcrumb a:hover { color: var(--white); }
.breadcrumb li + li::before { content: "/"; margin-right: 8px; color: var(--grey-600); }
.hero-facts { display: flex; flex-wrap: wrap; gap: 10px; margin: 26px 0 32px; padding: 0; list-style: none; }
.hero-facts li { display: inline-flex; align-items: center; gap: 8px; padding: 9px 16px; border-radius: 999px; background: rgba(255,255,255,0.07); border: 1px solid rgba(255,255,255,0.12); font-size: 0.95rem; }
.hero-facts svg { width: 17px; height: 17px; color: var(--red-hot); }

/* ---------- Trust bar ---------- */
.trust { background: var(--char); border-top: 1px solid var(--line-dark); border-bottom: 1px solid var(--line-dark); }
.trust ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); }
.trust li { display: flex; align-items: center; gap: 14px; padding: 26px 22px; color: var(--grey-200); font-size: 0.98rem; line-height: 1.35; }
.trust li + li { border-left: 1px solid var(--line-dark); }
.trust .ico { flex: none; width: 46px; height: 46px; display: grid; place-items: center; border-radius: 12px; background: rgba(209,10,10,0.12); color: var(--red-hot); }
.trust .ico svg { width: 24px; height: 24px; }
.trust strong { display: block; color: var(--white); font-family: var(--font-head); font-size: 1.15rem; text-transform: uppercase; letter-spacing: 0.04em; }
@media (max-width: 960px) {
  .trust ul { grid-template-columns: 1fr 1fr; }
  .trust li:nth-child(3) { border-left: 0; }
  .trust li:nth-child(n+3) { border-top: 1px solid var(--line-dark); }
}
@media (max-width: 560px) {
  .trust ul { grid-template-columns: 1fr; }
  .trust li + li { border-left: 0; border-top: 1px solid var(--line-dark); }
}

/* ---------- Course cards ---------- */
.course-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.course-card {
  position: relative; display: flex; flex-direction: column; background: var(--white); border-radius: var(--radius-lg);
  overflow: hidden; box-shadow: var(--shadow-soft); border: 1px solid var(--grey-200);
  transition: transform 0.5s var(--ease), box-shadow 0.5s var(--ease);
}
.course-card:hover { transform: translateY(-8px); box-shadow: 0 30px 60px -24px rgba(16,16,20,0.35); }
.course-card .cc-media { position: relative; aspect-ratio: 16 / 10; overflow: hidden; background: var(--char); }
.course-card .cc-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.9s var(--ease); }
.course-card:hover .cc-media img { transform: scale(1.07); }
.course-card .cc-media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(7,7,8,0.65), transparent 55%); }
.cc-tag { position: absolute; left: 18px; top: 18px; z-index: 2; padding: 6px 12px; border-radius: 999px; background: var(--red); color: var(--white); font-family: var(--font-head); font-weight: 700; font-size: 0.85rem; letter-spacing: 0.12em; text-transform: uppercase; }
.cc-price { position: absolute; right: 18px; bottom: 14px; z-index: 2; color: var(--white); font-family: var(--font-head); font-weight: 800; font-size: 2.6rem; line-height: 1; }
.cc-price small { font-size: 1rem; font-weight: 600; color: var(--grey-300); margin-left: 2px; }
.cc-body { display: flex; flex-direction: column; flex: 1; padding: 26px 26px 28px; }
.cc-body h3 { margin-bottom: 10px; }
.cc-body p { color: var(--grey-600); font-size: 0.98rem; }
.cc-meta { list-style: none; padding: 0; margin: 0 0 22px; display: flex; flex-wrap: wrap; gap: 8px; }
.cc-meta li { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 999px; background: var(--grey-100); font-size: 0.85rem; font-weight: 500; color: var(--ink); }
.cc-meta svg { width: 15px; height: 15px; color: var(--red); }
.cc-actions { margin-top: auto; display: flex; gap: 10px; flex-wrap: wrap; align-items: center; justify-content: space-between; }
.course-card.soon { background: var(--char); border-color: var(--line-dark); color: var(--grey-300); }
.course-card.soon h3 { color: var(--white); }
.course-card.soon .cc-body p { color: var(--grey-300); }
.soon-art { aspect-ratio: 16 / 10; display: grid; place-items: center; background: radial-gradient(circle at 50% 60%, rgba(209,10,10,0.25), transparent 60%), var(--black); }
.soon-art svg { width: 70%; color: var(--red); }
@media (max-width: 1000px) { .course-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 680px) { .course-grid { grid-template-columns: 1fr; } }

/* ---------- Course icon artwork ---------- */
.cc-art {
  position: absolute; inset: 0; display: grid; place-items: center; overflow: hidden;
  background:
    radial-gradient(55% 70% at 50% 52%, rgba(209,10,10,0.38), transparent 70%),
    linear-gradient(rgba(255,255,255,0.035) 1px, transparent 1px) 0 0 / 22px 22px,
    linear-gradient(90deg, rgba(255,255,255,0.035) 1px, transparent 1px) 0 0 / 22px 22px,
    #0b0b0d;
}
.cc-art-heartsaver { background-color: #0d0b0b; }
.cc-art-k12 { background-color: #0b0c0e; }
.cc-art-icon { position: relative; z-index: 1; width: 46%; max-width: 190px; height: auto; overflow: visible; transition: transform 0.7s var(--ease); filter: drop-shadow(0 14px 28px rgba(209,10,10,0.35)); }
.course-card:hover .cc-art-icon { transform: scale(1.07) translateY(-4px); }
.cc-art-icon .a-fill { fill: rgba(209,10,10,0.14); }
.cc-art-icon .a-line { fill: none; stroke: #fff; stroke-width: 7; stroke-linecap: round; stroke-linejoin: round; }
.cc-art-icon .a-pulse { fill: none; stroke: var(--red-hot); stroke-width: 7; stroke-linecap: round; stroke-linejoin: round; }
.cc-art-icon .a-heart { fill: var(--red); }
.cc-art-icon .a-flag { fill: var(--red); }
.cc-art-icon .a-win { fill: rgba(255,255,255,0.12); stroke: #fff; stroke-width: 6; stroke-linejoin: round; }
.cc-art-icon .a-bolt { fill: none; stroke: #fff; stroke-width: 7; stroke-linecap: round; stroke-linejoin: round; }
.cc-art-icon .a-label { fill: rgba(255,255,255,0.8); font: 800 15px var(--font-head); letter-spacing: 3px; }
.cc-art-icon .a-badge circle, .cc-art-icon .a-badge rect { fill: var(--red); stroke: #0b0b0d; stroke-width: 5; }
.cc-art-icon .a-badge path { fill: none; stroke: #fff; stroke-width: 6; stroke-linecap: round; }
.cc-art-ecg { position: absolute; left: 0; right: 0; bottom: 18%; width: 100%; height: 22%; opacity: 0.22; }
.cc-art-ecg path { fill: none; stroke: var(--red-hot); stroke-width: 2.5; stroke-linejoin: round; vector-effect: non-scaling-stroke; }
.course-card .cc-media .cc-art + .cc-tag { z-index: 2; }
/* Outline tile icons (matches the "Who we train" icons) */
.cc-tile {
  position: relative; z-index: 1; width: 30%; max-width: 128px; aspect-ratio: 1; display: grid; place-items: center;
  border-radius: 24%; background: rgba(209,10,10,0.14); border: 1px solid rgba(255,52,52,0.22); color: var(--red-hot);
  box-shadow: 0 18px 40px -18px rgba(209,10,10,0.55); transition: transform 0.6s var(--ease), background 0.4s;
}
.cc-tile svg { width: 50%; height: 50%; stroke-width: 1.6; }
.course-card:hover .cc-tile { transform: translateY(-4px) rotate(-4deg); background: rgba(209,10,10,0.2); }
/* Badge-style icons */
.cc-art-icon .b-ring { fill: none; stroke: rgba(255,255,255,0.14); stroke-width: 2; stroke-dasharray: 3 7; }
.cc-art-icon .b-disc { fill: var(--red); }
.cc-art-icon .g-line { fill: none; stroke: #fff; stroke-width: 8; stroke-linecap: round; stroke-linejoin: round; }
.cc-art-icon .g-line.w12 { stroke-width: 12; }
.cc-art-icon .g-thin { fill: none; stroke: rgba(255,255,255,0.85); stroke-width: 5; stroke-linecap: round; stroke-linejoin: round; }
.cc-art-icon .g-fill { fill: #fff; }
.cc-art-icon .g-dot, .cc-art-icon .g-cross { fill: var(--red); }
.course-card:hover .cc-art-icon .b-ring { animation: ringSpin 6s linear infinite; transform-origin: 100px 100px; }
@keyframes ringSpin { to { transform: rotate(360deg); } }

/* ---------- Coming soon courses ---------- */
.soon-strip { margin-top: 44px; }
.soon-strip-title { display: flex; align-items: center; gap: 16px; font-size: 1.15rem; letter-spacing: 0.18em; color: var(--grey-600); margin: 0 0 18px; }
.soon-strip-title::after { content: ""; flex: 1; height: 1px; background: var(--grey-300); }
.soon-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.soon-card {
  position: relative; overflow: hidden; display: flex; flex-direction: column; align-items: flex-start;
  padding: 28px 28px 30px; border-radius: var(--radius-lg); background: var(--black); color: var(--grey-300);
  border: 1px solid var(--line-dark); box-shadow: var(--shadow-soft);
  transition: transform 0.5s var(--ease), border-color 0.4s, box-shadow 0.5s var(--ease);
}
.soon-card::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(70% 90% at 100% 0%, rgba(209,10,10,0.22), transparent 65%);
}
.soon-card::after {
  content: ""; position: absolute; left: 0; top: 0; height: 3px; width: 100%; background: repeating-linear-gradient(90deg, var(--red) 0 14px, transparent 14px 24px);
  opacity: 0.8;
}
.soon-card > * { position: relative; }
.soon-card:hover { transform: translateY(-6px); border-color: rgba(255,52,52,0.45); box-shadow: 0 26px 50px -24px rgba(0,0,0,0.6); }
.sc-top { display: flex; width: 100%; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 18px; }
.sc-tag { display: inline-flex; align-items: center; gap: 9px; padding: 6px 13px 6px 10px; border-radius: 999px; background: rgba(209,10,10,0.16); color: var(--red-hot); font-family: var(--font-head); font-weight: 700; font-size: 0.85rem; letter-spacing: 0.14em; text-transform: uppercase; }
.sc-aha { font-size: 0.8rem; color: var(--grey-500); font-weight: 500; }
.soon-card h3, .soon-card h4 { color: var(--white); font-size: clamp(1.6rem, 2.6vw, 2rem); margin: 0 0 2px; }
.soon-card .sc-full { color: var(--red-hot); font-weight: 600; font-size: 0.95rem; margin-bottom: 12px; }
.soon-card p { font-size: 0.97rem; }
.soon-card .sc-who { font-size: 0.9rem; color: var(--grey-500); margin-bottom: 22px; }
.soon-card .sc-who strong { color: var(--grey-200); }
.soon-card .btn { margin-top: auto; }
@media (max-width: 760px) { .soon-grid { grid-template-columns: 1fr; } }

/* ---------- Audience tiles ---------- */
.audience-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line-dark); border: 1px solid var(--line-dark); border-radius: var(--radius-lg); overflow: hidden; }
.aud { position: relative; background: var(--black); padding: 34px 30px; transition: background 0.4s; overflow: hidden; }
.aud::before { content: ""; position: absolute; left: 0; top: 0; height: 3px; width: 100%; background: var(--red); transform: scaleX(0); transform-origin: left; transition: transform 0.5s var(--ease); }
.aud:hover { background: var(--char); }
.aud:hover::before { transform: scaleX(1); }
.aud .ico { width: 54px; height: 54px; display: grid; place-items: center; border-radius: 14px; background: rgba(209,10,10,0.12); color: var(--red-hot); margin-bottom: 20px; transition: transform 0.5s var(--ease); }
.aud:hover .ico { transform: translateY(-4px) rotate(-6deg); }
.aud .ico svg { width: 28px; height: 28px; }
.aud h3 { font-size: 1.5rem; margin-bottom: 8px; }
.aud p { margin: 0 0 14px; color: var(--grey-300); font-size: 0.98rem; }
.aud .rec { font-size: 0.85rem; color: var(--grey-500); }
.aud .rec a { color: var(--red-hot); text-decoration: none; font-weight: 600; }
@media (max-width: 900px) { .audience-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 580px) { .audience-grid { grid-template-columns: 1fr; } }

/* ---------- Steps ---------- */
.steps { position: relative; display: grid; grid-template-columns: repeat(4, 1fr); gap: 26px; counter-reset: step; list-style: none; padding: 0; margin: 0; }
.steps::before { content: ""; position: absolute; left: 6%; right: 6%; top: 34px; height: 2px; background: repeating-linear-gradient(90deg, var(--grey-300) 0 8px, transparent 8px 16px); }
.step { position: relative; text-align: center; padding: 0 8px; }
.step .num {
  position: relative; z-index: 1; width: 68px; height: 68px; margin: 0 auto 22px; display: grid; place-items: center; border-radius: 50%;
  background: var(--white); border: 2px solid var(--ink); font-family: var(--font-head); font-weight: 800; font-size: 1.6rem; transition: background 0.4s, color 0.4s, border-color 0.4s, transform 0.5s var(--ease);
}
.step:hover .num { background: var(--red); border-color: var(--red); color: var(--white); transform: scale(1.08); }
.step h3 { font-size: 1.45rem; margin-bottom: 8px; }
.step p { color: var(--grey-600); font-size: 0.98rem; margin: 0; }
@media (max-width: 860px) {
  .steps { grid-template-columns: 1fr; gap: 0; }
  .steps::before { left: 33px; right: auto; top: 10px; bottom: 10px; width: 2px; height: auto; background: repeating-linear-gradient(180deg, var(--grey-300) 0 8px, transparent 8px 16px); }
  .step { display: grid; grid-template-columns: 68px 1fr; gap: 20px; text-align: left; padding: 0 0 28px; }
  .step .num { margin: 0; }
}

/* ---------- Split / feature ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(36px, 6vw, 84px); align-items: center; }
.split.reverse > :first-child { order: 2; }
.split-media { position: relative; }
.split-media img { width: 100%; border-radius: var(--radius-lg); aspect-ratio: 4 / 3; object-fit: cover; box-shadow: var(--shadow); }
.split-media .frame { position: absolute; inset: 22px -22px -22px 22px; border: 2px solid var(--red); border-radius: var(--radius-lg); z-index: -1; }
.split-media { isolation: isolate; }
.media-chip {
  position: absolute; left: -18px; bottom: 28px; display: flex; align-items: center; gap: 12px; padding: 14px 18px; border-radius: 16px;
  background: var(--black); color: var(--white); box-shadow: var(--shadow); font-weight: 600; font-size: 0.95rem;
}
.media-chip strong { display: block; font-family: var(--font-head); font-size: 1.6rem; color: var(--red-hot); line-height: 1; }
@media (max-width: 900px) {
  .split { grid-template-columns: 1fr; }
  .split.reverse > :first-child { order: 0; }
  .split-media .frame { inset: 14px -10px -14px 10px; }
  .media-chip { left: 12px; }
}

.check-list { list-style: none; padding: 0; margin: 0 0 28px; display: grid; gap: 12px; }
.check-list li { position: relative; padding-left: 36px; }
.check-list li::before {
  content: ""; position: absolute; left: 0; top: 3px; width: 24px; height: 24px; border-radius: 50%; background: rgba(209,10,10,0.1)
  url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23d10a0a' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / 14px no-repeat;
}
.dark .check-list li::before, .char .check-list li::before { background-color: rgba(255,52,52,0.14); }
.check-list.two { grid-template-columns: 1fr 1fr; gap: 12px 28px; }
@media (max-width: 640px) { .check-list.two { grid-template-columns: 1fr; } }

/* ---------- Instructor ---------- */
.instructor { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: clamp(36px, 6vw, 80px); align-items: center; }
.cred-card {
  position: relative; border-radius: var(--radius-lg); overflow: hidden; background: var(--black); border: 1px solid var(--line-dark);
  padding: 40px 34px; box-shadow: var(--shadow);
}
.cred-card::before { content: ""; position: absolute; inset: 0; background: radial-gradient(70% 60% at 85% 0%, rgba(209,10,10,0.3), transparent 70%); }
.cred-card > * { position: relative; }
.cred-photo { position: relative; margin: -40px -34px 26px; aspect-ratio: 1 / 1.05; overflow: hidden; }
.cred-photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 12%; transition: transform 1.2s var(--ease); }
.cred-card:hover .cred-photo img { transform: scale(1.04); }
.cred-photo::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, var(--black) 2%, rgba(7,7,8,0.35) 30%, transparent 55%); }
.cred-card .name { font-family: var(--font-head); font-weight: 800; font-size: 2.4rem; color: var(--white); text-transform: uppercase; line-height: 1; margin-bottom: 6px; }
.cred-card .role { color: var(--red-hot); font-weight: 600; margin-bottom: 26px; }
.cred-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.cred-list li { display: flex; gap: 12px; align-items: flex-start; padding: 12px 14px; border-radius: 12px; background: rgba(255,255,255,0.04); border: 1px solid rgba(255,255,255,0.07); color: var(--grey-200); font-size: 0.96rem; line-height: 1.4; }
.cred-list svg { flex: none; width: 20px; height: 20px; color: var(--red-hot); margin-top: 1px; }
@media (max-width: 900px) { .instructor { grid-template-columns: 1fr; } }

/* ---------- Reviews ---------- */
.reviews-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.review {
  display: flex; flex-direction: column; background: var(--white); border: 1px solid var(--grey-200); border-radius: var(--radius-lg);
  padding: 28px; box-shadow: var(--shadow-soft); transition: transform 0.45s var(--ease), box-shadow 0.45s var(--ease);
}
.review:hover { transform: translateY(-5px); box-shadow: 0 24px 50px -22px rgba(16,16,20,0.3); }
.stars { display: flex; gap: 3px; color: #f5b300; margin-bottom: 14px; }
.stars svg { width: 19px; height: 19px; }
.stars .off { color: var(--grey-300); }
.review blockquote { margin: 0 0 22px; font-size: 1rem; color: var(--ink); }
.review footer { margin-top: auto; display: flex; align-items: center; gap: 12px; }
.avatar { width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; background: var(--ink); color: var(--white); font-family: var(--font-head); font-weight: 700; font-size: 1.1rem; }
.review cite { font-style: normal; font-weight: 600; display: block; line-height: 1.2; }
.review .meta { font-size: 0.84rem; color: var(--grey-500); }
.g-badge { display: inline-flex; align-items: center; gap: 8px; font-size: 0.85rem; color: var(--grey-600); }
.g-badge svg { width: 18px; height: 18px; }
.reviews-empty {
  grid-column: 1 / -1; display: grid; grid-template-columns: auto 1fr auto; gap: 28px; align-items: center; padding: 36px;
  border-radius: var(--radius-lg); border: 2px dashed var(--grey-300); background: var(--white);
}
.reviews-empty .big-stars { display: flex; gap: 4px; color: #f5b300; }
.reviews-empty .big-stars svg { width: 30px; height: 30px; }
.reviews-empty h3 { margin-bottom: 6px; }
.reviews-empty p { margin: 0; color: var(--grey-600); }
.reviews-cta { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; margin-top: 40px; }
@media (max-width: 960px) { .reviews-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 640px) { .reviews-grid { grid-template-columns: 1fr; } .reviews-empty { grid-template-columns: 1fr; text-align: center; } .reviews-empty .big-stars { justify-content: center; } }

/* ---------- CTA band ---------- */
.cta-band { position: relative; overflow: hidden; background: var(--red); color: var(--white); padding: clamp(64px, 8vw, 100px) 0; }
.cta-band::before { content: ""; position: absolute; inset: 0; background: radial-gradient(60% 120% at 100% 0%, rgba(255,255,255,0.18), transparent 60%), linear-gradient(120deg, var(--red-dark), var(--red) 60%); }
.cta-band .container { position: relative; z-index: 2; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 30px; }
.cta-band h2 { color: var(--white); margin: 0 0 8px; }
.cta-band p { margin: 0; font-size: 1.15rem; color: rgba(255,255,255,0.88); max-width: 560px; }
.cta-band .ecg { bottom: auto; top: 50%; transform: translateY(-50%); height: 140px; opacity: 0.13; }
.cta-band .ecg path { stroke: var(--white); filter: none; }
.cta-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.cta-band .btn-ghost { border-color: rgba(255,255,255,0.6); }

/* ---------- Course detail ---------- */
.course-layout { display: grid; grid-template-columns: 1fr 360px; gap: clamp(36px, 5vw, 64px); align-items: start; }
.course-main h2 { font-size: clamp(1.9rem, 3.4vw, 2.6rem); margin-top: 0; }
.course-main section + section { margin-top: 56px; padding-top: 56px; border-top: 1px solid var(--grey-200); }
.course-main .lead { font-size: 1.2rem; color: var(--grey-600); }
.course-aside { position: sticky; top: 96px; }
.fact-card { background: var(--black); color: var(--grey-200); border-radius: var(--radius-lg); padding: 30px; box-shadow: var(--shadow); overflow: hidden; position: relative; }
.fact-card::before { content: ""; position: absolute; inset: 0; background: radial-gradient(80% 50% at 100% 0%, rgba(209,10,10,0.28), transparent 70%); pointer-events: none; }
.fact-card > * { position: relative; }
.fact-card .price { font-family: var(--font-head); font-weight: 800; font-size: 3.6rem; color: var(--white); line-height: 1; }
.fact-card .price small { font-size: 1rem; color: var(--grey-500); font-weight: 500; font-family: var(--font-body); margin-left: 6px; }
.fact-card dl { margin: 22px 0 26px; display: grid; gap: 0; }
.fact-card dl div { display: flex; justify-content: space-between; gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--line-dark); font-size: 0.96rem; }
.fact-card dt { color: var(--grey-500); }
.fact-card dd { margin: 0; color: var(--white); font-weight: 600; text-align: right; }
.fact-card .fine { font-size: 0.82rem; color: var(--grey-500); margin: 14px 0 0; }
.fact-card .fine a { color: var(--grey-300); }
.learn-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; list-style: none; margin: 0; padding: 0; }
.learn-grid li { display: flex; gap: 14px; padding: 18px; border-radius: var(--radius); background: var(--grey-100); line-height: 1.45; font-size: 0.98rem; }
.learn-grid li svg { flex: none; width: 22px; height: 22px; color: var(--red); margin-top: 1px; }
.req-table { width: 100%; border-collapse: collapse; font-size: 0.98rem; }
.req-table th, .req-table td { text-align: left; padding: 14px 16px; border-bottom: 1px solid var(--grey-200); vertical-align: top; }
.req-table th { width: 34%; font-weight: 600; color: var(--ink); background: var(--grey-100); }
.mobile-book-bar { display: none; }
@media (max-width: 980px) {
  .course-layout { grid-template-columns: 1fr; }
  .course-aside { position: static; }
  .mobile-book-bar {
    display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 90; gap: 14px; align-items: center; justify-content: space-between;
    padding: 12px 16px calc(12px + env(safe-area-inset-bottom)); background: rgba(7,7,8,0.94); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
    border-top: 1px solid var(--line-dark); transform: translateY(110%); transition: transform 0.45s var(--ease);
  }
  .mobile-book-bar.show { transform: none; }
  .mobile-book-bar .mb-price { color: var(--white); font-family: var(--font-head); font-weight: 800; font-size: 1.7rem; line-height: 1; }
  .mobile-book-bar .mb-price small { display: block; font-family: var(--font-body); font-weight: 500; font-size: 0.78rem; color: var(--grey-500); }
}
@media (max-width: 640px) { .learn-grid { grid-template-columns: 1fr; } .req-table th { width: 40%; } }

/* ---------- FAQ ---------- */
.faq { display: grid; gap: 12px; }
.faq details { border: 1px solid var(--grey-200); border-radius: var(--radius); background: var(--white); transition: box-shadow 0.3s, border-color 0.3s; }
.faq details[open] { border-color: var(--grey-300); box-shadow: var(--shadow-soft); }
.faq summary {
  list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 18px;
  padding: 20px 22px; font-weight: 600; font-size: 1.04rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary .pm { flex: none; position: relative; width: 28px; height: 28px; border-radius: 50%; background: var(--grey-100); transition: background 0.3s, transform 0.4s var(--ease); }
.faq summary .pm::before, .faq summary .pm::after { content: ""; position: absolute; left: 50%; top: 50%; width: 12px; height: 2px; margin: -1px 0 0 -6px; background: var(--ink); transition: transform 0.4s var(--ease), background 0.3s; }
.faq summary .pm::after { transform: rotate(90deg); }
.faq details[open] summary .pm { background: var(--red); transform: rotate(180deg); }
.faq details[open] summary .pm::before, .faq details[open] summary .pm::after { background: var(--white); }
.faq details[open] summary .pm::after { transform: rotate(0deg); }
.faq .answer { padding: 0 22px 20px; color: var(--grey-600); }
.faq .answer p:last-child { margin: 0; }

/* ---------- Compare table ---------- */
.compare-wrap { overflow-x: auto; border-radius: var(--radius-lg); border: 1px solid var(--grey-200); box-shadow: var(--shadow-soft); -webkit-overflow-scrolling: touch; }
.compare { width: 100%; min-width: 720px; border-collapse: collapse; background: var(--white); font-size: 0.98rem; }
.compare th, .compare td { padding: 18px 20px; text-align: left; border-bottom: 1px solid var(--grey-200); vertical-align: top; }
.compare thead th { background: var(--black); color: var(--white); font-family: var(--font-head); font-size: 1.3rem; text-transform: uppercase; letter-spacing: 0.03em; }
.compare thead th:first-child { color: var(--grey-500); font-size: 1rem; }
.compare tbody th { font-weight: 600; color: var(--grey-600); width: 22%; background: var(--grey-100); }
.compare .big { font-family: var(--font-head); font-weight: 800; font-size: 1.8rem; color: var(--red); }
.compare tr:last-child td, .compare tr:last-child th { border-bottom: 0; }

/* ---------- Booking ---------- */
.tabs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 32px; padding: 6px; border-radius: 999px; background: var(--grey-100); width: fit-content; max-width: 100%; }
.tab {
  border: 0; background: transparent; padding: 12px 22px; border-radius: 999px; font-weight: 600; font-size: 0.95rem; color: var(--grey-600);
  transition: background 0.3s, color 0.3s, box-shadow 0.3s;
}
.tab:hover { color: var(--ink); }
.tab[aria-selected="true"] { background: var(--ink); color: var(--white); box-shadow: 0 8px 18px -10px rgba(0,0,0,0.5); }
@media (max-width: 640px) { .tabs { border-radius: 18px; width: 100%; } .tab { flex: 1 1 calc(50% - 8px); padding: 12px 10px; } }

.booking-layout { display: grid; grid-template-columns: 1fr 340px; gap: clamp(30px, 4vw, 56px); align-items: start; }
@media (max-width: 980px) { .booking-layout { grid-template-columns: 1fr; } }
.course-summary {
  display: grid; grid-template-columns: auto 1fr auto; gap: 22px; align-items: center; padding: 22px 24px; border-radius: var(--radius-lg);
  background: var(--black); color: var(--grey-300); margin-bottom: 28px;
}
.course-summary h2 { font-size: 1.8rem; color: var(--white); margin: 0 0 4px; }
.course-summary p { margin: 0; font-size: 0.95rem; }
.course-summary .cs-price { font-family: var(--font-head); font-weight: 800; font-size: 2.4rem; color: var(--white); line-height: 1; text-align: right; }
.course-summary .cs-price small { display: block; font-family: var(--font-body); font-size: 0.8rem; color: var(--grey-500); font-weight: 500; }
.course-summary .cs-ico { width: 56px; height: 56px; border-radius: 14px; background: rgba(209,10,10,0.18); color: var(--red-hot); display: grid; place-items: center; }
.course-summary .cs-ico svg { width: 30px; height: 30px; }
@media (max-width: 560px) { .course-summary { grid-template-columns: 1fr; text-align: left; } .course-summary .cs-price { text-align: left; } .course-summary .cs-ico { display: none; } }

.month-label { font-family: var(--font-head); font-weight: 700; font-size: 1.1rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--grey-500); margin: 30px 0 14px; }
.month-label:first-child { margin-top: 0; }
.session-list { display: grid; gap: 12px; list-style: none; padding: 0; margin: 0; }
.session {
  display: grid; grid-template-columns: 78px 1fr auto; gap: 20px; align-items: center; padding: 16px 18px 16px 16px;
  border-radius: var(--radius); background: var(--white); border: 1px solid var(--grey-200); transition: border-color 0.3s, box-shadow 0.35s, transform 0.35s var(--ease);
}
.session:hover { border-color: var(--grey-300); box-shadow: var(--shadow-soft); transform: translateX(4px); }
.date-block { text-align: center; border-radius: 12px; overflow: hidden; border: 1px solid var(--grey-200); }
.date-block .dow { display: block; background: var(--red); color: var(--white); font-size: 0.72rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; padding: 4px 0; }
.date-block .day { display: block; font-family: var(--font-head); font-weight: 800; font-size: 2rem; line-height: 1.1; padding-top: 4px; }
.date-block .mon { display: block; font-size: 0.75rem; font-weight: 600; color: var(--grey-500); text-transform: uppercase; letter-spacing: 0.12em; padding-bottom: 6px; }
.session h3 { font-size: 1.35rem; margin: 0 0 4px; }
.session .s-meta { display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: 0.92rem; color: var(--grey-600); }
.session .s-meta span { display: inline-flex; align-items: center; gap: 6px; }
.session .s-meta svg { width: 15px; height: 15px; color: var(--red); }
.session .s-note { font-size: 0.82rem; color: var(--red); font-weight: 600; }
@media (max-width: 600px) {
  .session { grid-template-columns: 64px 1fr; }
  .session .btn { grid-column: 1 / -1; width: 100%; }
}

.empty-state { text-align: center; padding: 56px 28px; border-radius: var(--radius-lg); border: 2px dashed var(--grey-300); background: var(--grey-100); }
.empty-state .ico { width: 70px; height: 70px; margin: 0 auto 20px; border-radius: 50%; background: var(--white); display: grid; place-items: center; color: var(--red); box-shadow: var(--shadow-soft); }
.empty-state .ico svg { width: 34px; height: 34px; }
.empty-state h3 { font-size: 1.8rem; }
.empty-state p { max-width: 520px; margin: 0 auto 24px; color: var(--grey-600); }
.empty-state .actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }

.side-card { border-radius: var(--radius-lg); border: 1px solid var(--grey-200); padding: 26px; background: var(--white); }
.side-card + .side-card { margin-top: 18px; }
.side-card h3 { font-size: 1.4rem; margin-bottom: 12px; }
.side-card p, .side-card li { font-size: 0.95rem; color: var(--grey-600); }
.side-card ul { padding-left: 18px; margin: 0 0 14px; }
.side-card.dark-card { background: var(--black); border-color: var(--black); color: var(--grey-300); }
.side-card.dark-card h3 { color: var(--white); }
.side-card.dark-card p, .side-card.dark-card li { color: var(--grey-300); }

/* ---------- Modal ---------- */
.modal { position: fixed; inset: 0; z-index: 300; display: grid; place-items: center; padding: 16px; visibility: hidden; opacity: 0; transition: opacity 0.35s, visibility 0s linear 0.35s; }
.modal.open { visibility: visible; opacity: 1; transition: opacity 0.35s; }
.modal-backdrop { position: absolute; inset: 0; background: rgba(7,7,8,0.72); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.modal-panel {
  position: relative; width: min(100%, 620px); max-height: calc(100vh - 32px); overflow-y: auto; background: var(--white); border-radius: var(--radius-lg);
  box-shadow: 0 40px 80px -20px rgba(0,0,0,0.6); transform: translateY(24px) scale(0.98); transition: transform 0.45s var(--ease);
}
.modal.open .modal-panel { transform: none; }
.modal-head { padding: 26px 28px 18px; background: var(--black); color: var(--white); }
.modal-head .eyebrow { margin-bottom: 8px; color: var(--red-hot); }
.modal-head h2 { font-size: 2rem; margin: 0; color: var(--white); }
.modal-head p { margin: 6px 0 0; color: var(--grey-300); font-size: 0.95rem; }
.modal-body { padding: 24px 28px 28px; }
.modal-close { position: absolute; right: 14px; top: 14px; width: 40px; height: 40px; border-radius: 50%; border: 0; background: rgba(255,255,255,0.1); color: var(--white); display: grid; place-items: center; transition: background 0.3s, transform 0.4s var(--ease); }
.modal-close:hover { background: var(--red); transform: rotate(90deg); }
.modal-close svg { width: 18px; height: 18px; }
.policy-box { max-height: 220px; overflow-y: auto; padding: 18px 20px; border-radius: var(--radius); background: var(--grey-100); font-size: 0.93rem; color: var(--grey-600); margin-bottom: 18px; border: 1px solid var(--grey-200); }
.policy-box h3 { font-size: 1.2rem; color: var(--ink); margin-bottom: 8px; }
.policy-box p:last-child { margin: 0; }
.check { display: flex; gap: 12px; align-items: flex-start; font-size: 0.96rem; margin-bottom: 20px; cursor: pointer; }
.check input { flex: none; width: 22px; height: 22px; margin: 1px 0 0; accent-color: var(--red); cursor: pointer; }
.modal-summary { display: flex; justify-content: space-between; gap: 16px; padding: 14px 0 18px; margin-bottom: 18px; border-bottom: 1px solid var(--grey-200); font-size: 0.95rem; }
.modal-summary strong { font-family: var(--font-head); font-size: 1.6rem; }
.modal-fine { font-size: 0.82rem; color: var(--grey-500); margin: 14px 0 0; text-align: center; }

/* ---------- TidyCal booking ---------- */
.tc-gate { padding: 26px; border-radius: var(--radius-lg); border: 1px solid var(--grey-200); background: var(--white); box-shadow: var(--shadow-soft); }
.tc-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; margin-bottom: 16px; }
.tc-head h3 { font-size: 1.6rem; margin: 0 0 4px; }
.tc-head p { margin: 0; color: var(--grey-600); font-size: 0.95rem; }
.tc-price { font-family: var(--font-head); font-weight: 800; font-size: 2.2rem; line-height: 1; color: var(--red); }
.tc-policy { padding: 14px 16px; border-radius: 12px; background: var(--grey-100); font-size: 0.93rem; color: var(--grey-600); margin-bottom: 16px; }
.tc-policy a { color: var(--red); font-weight: 600; }
.tc-gate .btn { width: 100%; }
.tc-fine { margin: 12px 0 0; font-size: 0.84rem; color: var(--grey-500); text-align: center; }
.tc-embed { border-radius: var(--radius-lg); overflow: hidden; background: var(--white); border: 1px solid var(--grey-200); min-height: 640px; }
.tc-loading { padding: 40px; text-align: center; color: var(--grey-500); }

/* ---------- Email chooser ---------- */
.mail-options { display: grid; gap: 10px; }
.mail-opt {
  display: flex; align-items: center; gap: 14px; width: 100%; padding: 14px 16px; border-radius: 14px; border: 1.5px solid var(--grey-200);
  background: var(--white); color: var(--ink); font: inherit; font-weight: 600; font-size: 1rem; text-decoration: none; text-align: left;
  transition: border-color 0.25s, transform 0.3s var(--ease), box-shadow 0.3s;
}
.mail-opt:hover, .mail-opt:focus-visible { border-color: var(--ink); transform: translateX(4px); box-shadow: var(--shadow-soft); }
.mo-ico { flex: none; width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; color: #fff; font-weight: 800; font-size: 1.1rem; box-shadow: inset 0 0 0 1px rgba(0,0,0,0.08); }

/* ---------- Forms ---------- */
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form-grid .full { grid-column: 1 / -1; }
.field label { display: block; font-weight: 600; font-size: 0.92rem; margin-bottom: 7px; }
.field label .opt { font-weight: 400; color: var(--grey-500); }
.field input, .field select, .field textarea {
  width: 100%; padding: 14px 16px; border-radius: 12px; border: 1.5px solid var(--grey-300); background: var(--white); color: var(--ink);
  font: inherit; font-size: 1rem; transition: border-color 0.25s, box-shadow 0.25s;
}
.field textarea { min-height: 140px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 4px rgba(209,10,10,0.12); }
.field .err { display: none; color: var(--red); font-size: 0.85rem; margin-top: 6px; }
.field.invalid input, .field.invalid select, .field.invalid textarea { border-color: var(--red); }
.field.invalid .err { display: block; }
.hp { position: absolute; left: -9999px; }
.form-status { margin-top: 16px; padding: 14px 16px; border-radius: 12px; font-weight: 500; display: none; }
.form-status.ok { display: block; background: #eaf7ee; color: #17663a; }
.form-status.bad { display: block; background: #fdecec; color: var(--red-dark); }
@media (max-width: 640px) { .form-grid { grid-template-columns: 1fr; } }

.form-card { background: var(--white); border-radius: var(--radius-lg); padding: clamp(24px, 4vw, 40px); box-shadow: var(--shadow-soft); border: 1px solid var(--grey-200); }

/* ---------- Contact cards ---------- */
.contact-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.mobile-menu a.m-social { display: inline-flex; align-items: center; gap: 8px; color: var(--white); text-decoration: none; font-weight: 600; }
.mobile-menu a.m-social svg { width: 20px; height: 20px; color: var(--red-hot); }
@media (max-width: 1100px) { .contact-grid { grid-template-columns: repeat(2, 1fr); } }
.contact-card { display: block; padding: 28px; border-radius: var(--radius-lg); background: var(--char); border: 1px solid var(--line-dark); text-decoration: none; color: var(--grey-300); transition: transform 0.45s var(--ease), border-color 0.3s; }
a.contact-card:hover { transform: translateY(-5px); border-color: var(--red); }
.contact-card .ico { width: 50px; height: 50px; border-radius: 14px; display: grid; place-items: center; background: var(--red); color: var(--white); margin-bottom: 18px; }
.contact-card .ico svg { width: 24px; height: 24px; }
.contact-card h2, .contact-card h3 { font-size: 1.3rem; color: var(--grey-500); margin-bottom: 4px; letter-spacing: 0.06em; }
.contact-card .val { font-family: var(--font-head); font-weight: 700; font-size: 1.6rem; color: var(--white); text-transform: none; word-break: break-word; line-height: 1.2; }
@media (max-width: 900px) { .contact-grid { grid-template-columns: 1fr; } }

/* ---------- Info blocks ---------- */
.info-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; }
.info-block { padding: 30px; border-radius: var(--radius-lg); background: var(--white); border: 1px solid var(--grey-200); box-shadow: var(--shadow-soft); }
.info-block .ico { width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center; background: rgba(209,10,10,0.1); color: var(--red); margin-bottom: 18px; }
.info-block .ico svg { width: 26px; height: 26px; }
.info-block h2 { font-size: 1.7rem; }
.info-block p, .info-block li { color: var(--grey-600); }
.info-block ul { padding-left: 20px; margin: 0; }
.info-block li + li { margin-top: 6px; }
.tba { display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px; border-radius: 999px; background: #fff4e5; color: #8a4b00; font-weight: 600; font-size: 0.85rem; margin-bottom: 12px; }
@media (max-width: 820px) { .info-grid { grid-template-columns: 1fr; } }

/* ---------- Prose / policy ---------- */
.prose h2 { font-size: clamp(1.7rem, 3vw, 2.2rem); margin-top: 1.6em; }
.prose h2:first-child { margin-top: 0; }
.prose p, .prose li { color: #34343b; }
.prose ul { padding-left: 22px; }
.prose li + li { margin-top: 6px; }
.callout { padding: 22px 24px; border-left: 4px solid var(--red); background: var(--grey-100); border-radius: 0 var(--radius) var(--radius) 0; margin: 28px 0; }
.callout p:last-child { margin: 0; }

/* ---------- Stats ---------- */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line-dark); border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--line-dark); }
.stat { background: var(--black); padding: 30px 24px; }
.stat .n { font-family: var(--font-head); font-weight: 800; font-size: clamp(2.6rem, 5vw, 3.6rem); color: var(--white); line-height: 1; }
.stat .n span { color: var(--red-hot); }
.stat .l { color: var(--grey-500); font-size: 0.95rem; margin-top: 8px; }
@media (max-width: 800px) { .stats { grid-template-columns: 1fr 1fr; } }

/* ---------- Footer ---------- */
.site-footer { background: var(--black); color: var(--grey-500); padding: 80px 0 30px; position: relative; overflow: hidden; }
.site-footer::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 1px; background: linear-gradient(90deg, transparent, var(--red), transparent); }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 40px; margin-bottom: 56px; }
.footer-brand img { width: 150px; border-radius: 14px; margin-bottom: 18px; }
.footer-brand p { font-size: 0.95rem; max-width: 320px; }
.site-footer h2 { font-size: 1.05rem; letter-spacing: 0.16em; color: var(--white); margin-bottom: 18px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.site-footer a { color: var(--grey-300); text-decoration: none; font-size: 0.95rem; transition: color 0.25s; }
.site-footer a:hover { color: var(--red-hot); }
.footer-contact li { display: flex; gap: 10px; align-items: flex-start; font-size: 0.95rem; }
.footer-contact svg { flex: none; width: 18px; height: 18px; color: var(--red-hot); margin-top: 3px; }
.aha-note { font-size: 0.8rem; line-height: 1.6; color: var(--grey-600); border-top: 1px solid var(--line-dark); padding-top: 26px; margin-bottom: 22px; }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 14px; font-size: 0.85rem; color: var(--grey-600); }
.footer-bottom a { font-size: 0.85rem; color: var(--grey-500); }
.footer-bottom nav { display: flex; gap: 18px; flex-wrap: wrap; }
@media (max-width: 960px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer-grid { grid-template-columns: 1fr; } }

/* ---------- Reveal animations ---------- */
.js .reveal { opacity: 0; transform: translateY(34px); transition: opacity 0.9s var(--ease), transform 0.9s var(--ease); transition-delay: var(--delay, 0s); }
.js .reveal.from-left { transform: translateX(-40px); }
.js .reveal.from-right { transform: translateX(40px); }
.js .reveal.zoom { transform: scale(0.94); }
.js .reveal.in { opacity: 1; transform: none; }

/* ---------- 404 ---------- */
.notfound { min-height: 100vh; display: grid; place-items: center; text-align: center; background: var(--black); color: var(--grey-300); padding: 120px 16px 80px; position: relative; overflow: hidden; }
.notfound .code { font-family: var(--font-head); font-weight: 800; font-size: clamp(7rem, 22vw, 14rem); line-height: 0.9; color: var(--white); }
.notfound .code span { color: var(--red-hot); }
.notfound h1 { font-size: clamp(2rem, 4vw, 3rem); color: var(--white); }
.notfound .ecg { bottom: 18%; }
.notfound .actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 26px; }

/* ---------- Utilities ---------- */
.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }
.center { text-align: center; }
.muted { color: var(--grey-600); }
.dark .muted { color: var(--grey-500); }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }
.divider-ecg { display: block; width: 100%; height: 40px; color: var(--grey-200); }
