:root {
  --ink: #182736;
  --muted: #5f6d7a;
  --line: #d8e0e7;
  --paper: #f7f9fb;
  --white: #ffffff;
  --brand: #314c63;
  --brand-2: #5d7f9b;
  --accent: #c8a45d;
  --green: #426f5c;
  --danger: #a43d3d;
  --shadow: 0 18px 45px rgba(24, 39, 54, 0.12);
}
* { box-sizing: border-box; }
html, body { max-width: 100%; overflow-x: hidden; }
body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--white);
  line-height: 1.55;
  font-size: 16px;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  gap: 22px;
  min-height: 78px;
  padding: 12px clamp(18px, 4vw, 56px);
  background: rgba(255,255,255,.96);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(14px);
}
.brand, .footer-brand { display: flex; align-items: center; gap: 10px; font-weight: 800; }
.brand img { width: 52px; height: 52px; object-fit: cover; border-radius: 6px; }
.brand small { display: block; color: var(--muted); font-size: 11px; font-weight: 600; max-width: 210px; }
.main-nav { display: flex; align-items: center; gap: 18px; margin-left: auto; font-weight: 700; font-size: 14px; }
.main-nav a { color: #263746; }
.main-nav a:hover { color: var(--brand-2); }
.header-actions { display: flex; align-items: center; gap: 12px; }
.phone-link { font-weight: 800; color: var(--brand); }
.button, button {
  border: 1px solid transparent;
  border-radius: 6px;
  padding: 12px 17px;
  font-weight: 800;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  transition: transform .15s ease, background .15s ease, border .15s ease;
}
.button:hover, button:hover { transform: translateY(-1px); }
.primary { background: var(--accent); color: #17212c; }
.secondary { background: var(--brand); color: var(--white); }
.outline { border-color: var(--line); background: var(--white); color: var(--brand); }
.menu-toggle { display: none; background: var(--paper); color: var(--brand); border-color: var(--line); }
.hero {
  position: relative;
  overflow: hidden;
  padding: clamp(46px, 7vw, 78px) clamp(18px, 4vw, 56px);
  background:
    linear-gradient(90deg, rgba(24,39,54,.91), rgba(49,76,99,.78)),
    var(--hero-image, url("/cpmg-logo.png")) center/cover;
  color: var(--white);
}
.hero.compact { padding-block: 42px; }
.hero-inner { max-width: 1180px; margin: 0 auto; display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(280px, .65fr); gap: 36px; align-items: center; }
.eyebrow { color: #d8c38e; font-weight: 900; text-transform: uppercase; letter-spacing: .08em; font-size: 12px; }
h1, h2, h3 { line-height: 1.12; margin: 0 0 14px; }
h1 { font-size: clamp(34px, 4.5vw, 52px); max-width: 900px; }
h2 { font-size: clamp(24px, 2.8vw, 34px); }
h3 { font-size: 20px; }
p { margin: 0 0 16px; }
.lead { font-size: clamp(17px, 1.6vw, 20px); color: rgba(255,255,255,.9); max-width: 780px; }
.hero-panel {
  background: rgba(255,255,255,.95);
  color: var(--ink);
  border-radius: 8px;
  padding: 24px;
  box-shadow: var(--shadow);
}
.hero-panel img { width: 118px; margin-bottom: 16px; border-radius: 6px; }
.hero-panel h2 { font-size: clamp(24px, 2.6vw, 34px); }
.page-header {
  padding: clamp(28px, 5vw, 48px) clamp(18px, 4vw, 56px);
  background: linear-gradient(180deg, #f7f9fb, #ffffff);
  border-bottom: 1px solid var(--line);
}
.page-header h1 {
  max-width: 840px;
  font-size: clamp(30px, 4vw, 46px);
}
.page-header p {
  max-width: 760px;
  color: var(--muted);
  font-size: clamp(16px, 1.6vw, 19px);
}
.slim-actions { margin-top: 18px; }
.booking-hero {
  padding: clamp(32px, 5vw, 54px) clamp(18px, 4vw, 56px);
  background:
    linear-gradient(90deg, rgba(24,39,54,.88), rgba(49,76,99,.74)),
    url("https://images.unsplash.com/photo-1581578731548-c64695cc6952?auto=format&fit=crop&w=1400&q=70") center/cover;
  color: var(--white);
  text-align: center;
}
.booking-hero h1 {
  margin-inline: auto;
  font-size: clamp(34px, 4.5vw, 54px);
}
.booking-hero p {
  margin-inline: auto;
  max-width: 720px;
  color: rgba(255,255,255,.9);
  font-size: clamp(17px, 1.6vw, 20px);
}
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 22px; }
.trust-row, .badge-grid { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.badge { border: 1px solid rgba(255,255,255,.35); color: inherit; border-radius: 999px; padding: 8px 12px; font-weight: 800; font-size: 13px; background: rgba(255,255,255,.1); }
.section { padding: clamp(42px, 6vw, 68px) clamp(18px, 4vw, 56px); }
.booking-section { padding: 0 clamp(18px, 4vw, 56px) clamp(42px, 6vw, 68px); }
.section.alt { background: var(--paper); }
.section-inner { max-width: 1180px; margin: 0 auto; }
.section-head { display: flex; justify-content: space-between; gap: 24px; align-items: end; margin-bottom: 26px; }
.section-head p { max-width: 680px; color: var(--muted); }
.grid { display: grid; gap: 18px; }
.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.four { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 7px 22px rgba(24,39,54,.06);
}
.card-body { padding: 22px; }
.card-img { min-height: 170px; background: var(--image, linear-gradient(135deg, #314c63, #9eb5c9)); background-size: cover; background-position: center; }
.service-price { display: inline-flex; margin: 8px 0 16px; padding: 5px 10px; border-radius: 999px; background: #edf3f7; color: var(--brand); font-weight: 900; }
.list { padding-left: 20px; color: var(--muted); }
.list li { margin: 7px 0; }
.compact-list { margin: 14px 0; font-size: 14px; }
.split { display: grid; grid-template-columns: minmax(0, .95fr) minmax(320px, 1.05fr); gap: 32px; align-items: center; }
.quote-band { background: var(--brand); color: var(--white); padding: 34px; border-radius: 8px; }
.muted { color: var(--muted); }
.steps { counter-reset: step; }
.step { position: relative; padding-left: 62px; min-height: 62px; }
.step:before {
  counter-increment: step;
  content: counter(step);
  position: absolute;
  left: 0;
  top: 0;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--brand);
  color: var(--white);
  display: grid;
  place-items: center;
  font-weight: 900;
}
.commitment-card { border-left: 4px solid var(--accent); }
.form, .wizard, .admin-panel {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: clamp(20px, 4vw, 30px);
  box-shadow: var(--shadow);
}
.wizard {
  max-width: 960px;
  margin: 0 auto;
  border-top: 0;
  border-radius: 0 0 8px 8px;
  box-shadow: 0 8px 24px rgba(24,39,54,.07);
}
label { display: grid; gap: 7px; font-weight: 800; font-size: 14px; }
input, select, textarea {
  width: 100%;
  border: 1px solid #c9d4dd;
  border-radius: 6px;
  padding: 12px;
  font: inherit;
  color: var(--ink);
  background: var(--white);
}
textarea { min-height: 120px; resize: vertical; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.full { grid-column: 1 / -1; }
.error { color: var(--danger); font-weight: 800; font-size: 13px; min-height: 18px; }
.success { border: 1px solid #b8d8c6; background: #edf8f1; color: #21503a; border-radius: 8px; padding: 16px; font-weight: 800; }
.error-box { border: 1px solid #e5b3b3; background: #fff2f2; color: var(--danger); border-radius: 8px; padding: 16px; font-weight: 800; margin-bottom: 16px; }
.consent-label { display: flex; grid-column: 1 / -1; align-items: center; gap: 10px; }
.consent-label input { width: auto; }
.booking-progress {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  align-items: start;
  gap: 14px;
  margin: 0 auto 34px;
  max-width: 760px;
}
.progress-step {
  position: relative;
  display: grid;
  justify-items: center;
  gap: 8px;
  color: var(--muted);
  font-weight: 800;
}
.progress-step:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 18px;
  left: calc(50% + 26px);
  width: calc(100% - 38px);
  height: 2px;
  background: #dce5ec;
}
.progress-step span {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: #dce5ec;
  color: #7a8794;
  font-weight: 900;
}
.progress-step.active span { background: var(--brand); color: var(--white); }
.progress-step.active small { color: var(--ink); }
.booking-service-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 22px;
}
.select-card { text-align: left; width: 100%; background: var(--white); border: 1px solid var(--line); color: var(--ink); justify-content: flex-start; align-items: stretch; padding: 0; overflow: hidden; }
.select-card.selected { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(200,164,93,.2); }
.compact-service {
  position: relative;
  min-height: 92px;
  display: grid;
  grid-template-columns: 50px 1fr;
  gap: 14px;
  align-items: center;
  padding: 18px 16px;
}
.service-icon {
  width: 50px;
  height: 50px;
  border-radius: 8px;
  background: var(--paper);
  color: var(--brand);
  display: grid;
  place-items: center;
  font-weight: 900;
  font-size: 22px;
}
.service-summary { display: grid; gap: 3px; padding-right: 68px; }
.service-summary strong { font-size: 17px; line-height: 1.2; }
.service-summary small { color: var(--brand); font-weight: 800; }
.category-tag {
  position: absolute;
  top: 0;
  right: 0;
  padding: 4px 10px;
  background: var(--brand);
  color: var(--white);
  text-transform: uppercase;
  font-size: 11px;
  font-weight: 900;
  border-radius: 0 0 0 6px;
}
.price-note { margin-top: 22px; }
.legal { max-width: 920px; }
.legal h2 { margin-top: 32px; font-size: 27px; }
.breadcrumb { display: flex; flex-wrap: wrap; gap: 8px; font-size: 14px; font-weight: 800; color: var(--muted); margin-bottom: 20px; }
.faq details { border: 1px solid var(--line); border-radius: 8px; padding: 16px; background: var(--white); }
.faq details + details { margin-top: 10px; }
.faq summary { cursor: pointer; font-weight: 900; }
.site-footer { background: #152331; color: rgba(255,255,255,.82); padding: 52px clamp(18px, 4vw, 56px) 82px; }
.footer-grid { max-width: 1180px; margin: 0 auto; display: grid; grid-template-columns: 1.5fr repeat(4, 1fr); gap: 28px; }
.footer-grid h2 { font-size: 16px; color: var(--white); }
.footer-grid a { display: block; margin: 8px 0; }
.footer-brand img { width: 44px; border-radius: 6px; }
.footer-bottom { max-width: 1180px; margin: 34px auto 0; padding-top: 18px; border-top: 1px solid rgba(255,255,255,.15); display: flex; justify-content: space-between; gap: 16px; font-size: 13px; }
.mobile-sticky-cta { display: none; }
.mini-kpi { padding: 20px; border: 1px solid var(--line); border-radius: 8px; background: var(--white); }
.mini-kpi strong { display:block; font-size: 21px; color: var(--brand); line-height: 1.2; }
@media (max-width: 980px) {
  .main-nav, .header-actions { display: none; }
  .menu-toggle { display: inline-flex; margin-left: auto; }
  .site-header { gap: 10px; padding-inline: 20px 92px; }
  .site-header .menu-toggle { position: absolute; right: 20px; top: 50%; transform: translateY(-50%); }
  .site-header .menu-toggle:hover { transform: translateY(-50%); }
  .brand { min-width: 0; }
  .brand img { width: 48px; height: 48px; flex: 0 0 auto; }
  .brand span { min-width: 0; }
  .brand small { max-width: 185px; }
  .site-header.open .main-nav {
    display: grid;
    position: absolute;
    left: 16px;
    right: 16px;
    top: 76px;
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 18px;
    box-shadow: var(--shadow);
  }
  .hero-inner, .split, .two, .three, .four, .footer-grid, .booking-service-grid { grid-template-columns: 1fr; }
  .hero-panel { display: none; }
  .section-head { display: block; }
  .form-grid { grid-template-columns: 1fr; }
  .booking-progress { grid-template-columns: repeat(4, minmax(54px, 1fr)); gap: 6px; }
  .progress-step small { display: none; }
  .progress-step:not(:last-child)::after { left: calc(50% + 22px); width: calc(100% - 28px); }
  .mobile-sticky-cta {
    position: fixed;
    z-index: 60;
    left: 0;
    right: 0;
    bottom: 0;
    display: grid;
    grid-template-columns: 1fr 1fr;
    box-shadow: 0 -10px 30px rgba(24,39,54,.16);
  }
  .mobile-sticky-cta a { padding: 15px; text-align: center; font-weight: 900; background: var(--brand); color: var(--white); }
  .mobile-sticky-cta a + a { background: var(--accent); color: #17212c; }
  body { padding-bottom: 54px; }
  .footer-bottom { display: block; }
}
@media (max-width: 430px) {
  .site-header { padding-inline: 10px 76px; gap: 6px; }
  .site-header .menu-toggle { right: 10px; }
  .brand { gap: 8px; }
  .brand img { width: 42px; height: 42px; }
  .brand strong { font-size: 15px; }
  .brand small { max-width: 138px; font-size: 10px; }
  .menu-toggle { padding: 9px 10px; min-height: 38px; font-size: 13px; }
  .booking-progress { max-width: 330px; }
  .mobile-sticky-cta a { white-space: nowrap; }
}
