/* Clinic practice: Fernside Dental, an invented family practice. White and pale blue like a clean surgery, a deep clinical blue for actions, coral kept only for urgent help. Segoe UI throughout, generous line height, calm 10px corners. Built so a vet or a video clinic can use the same page with new words. */

.cp-page {
  --cp-canvas: #ffffff;
  --cp-surface: #f2f6fb;
  --cp-band: #f2f6fb;
  --cp-ink: #14233a;
  --cp-muted: #4a5a70;
  --cp-line: #d6e0ec;
  --cp-line-strong: #7b8ba0;
  --cp-accent: #1d4f86;
  --cp-accent-hover: #153c68;
  --cp-on-accent: #ffffff;
  --cp-tint: #e3edf8;
  --cp-success: #1d6b43;
  --cp-danger: #b3261e;
  --cp-focus: #1d4f86;
  --cp-card: #ffffff;
  --cp-urgent: #a8321f;
  --cp-urgent-bg: #fdeeea;
  --cp-warning: #8a5a00;
  --cp-head: "Segoe UI", system-ui, -apple-system, sans-serif;
  --cp-body: "Segoe UI", system-ui, -apple-system, sans-serif;
  --cp-r: 12px;

  background: var(--cp-canvas);
  color: var(--cp-ink);
  font-family: var(--cp-body);
  font-size: 1.0625rem;
  line-height: 1.55;
}

/* Dark mode, the default (PRD section 13.10): the surgery after hours. Navy black grounds, a light blue for actions, coral still only for urgent. Only this template's
   tokens change. */
@media screen {
  :root[data-theme="dark"] .cp-page {
    --cp-canvas: #0e1520;
    --cp-surface: #141d2b;
    --cp-band: #141d2b;
    --cp-ink: #e8eef6;
    --cp-muted: #a7b4c6;
    --cp-line: #2a3649;
    --cp-line-strong: #6c7d95;
    --cp-accent: #8cbcf0;
    --cp-accent-hover: #b3d3f6;
    --cp-on-accent: #0b1a2c;
    --cp-tint: #1d3049;
    --cp-success: #7fd4a2;
    --cp-danger: #ff8a80;
    --cp-focus: #8cbcf0;
    --cp-card: #1a2434;
    --cp-urgent: #ff9a85;
    --cp-urgent-bg: #3a1a14;
    --cp-warning: #f0c060;
    color-scheme: dark;
  }
}

.cp-page [hidden] { display: none !important; }
:where(.cp-page) :is(p, h1, h2, h3, h4, ul, ol, dl, dd, fieldset, figure, blockquote) { margin: 0; }
:where(.cp-page) :is(ul, ol) { padding: 0; list-style: none; }
:where(.cp-page) fieldset { padding: 0; border: 0; min-width: 0; }
:where(.cp-page) a { color: var(--cp-accent); }
:where(.cp-page) :is(h1, h2, h3, h4) { color: inherit; }
.cp-page :focus-visible { outline: 3px solid var(--cp-focus); outline-offset: 2px; }
.cp-page :is(input[type="range"], input[type="checkbox"], input[type="radio"]) { accent-color: var(--cp-accent); }
html:has(.cp-page) { scroll-behavior: smooth; }
.cp-page section[id] { scroll-margin-top: 72px; }
.cp-wrap { width: min(1160px, 100% - 32px); margin-inline: auto; }

.cp-header { position: sticky; top: 0; z-index: 20; background: var(--cp-canvas); border-bottom: 1px solid var(--cp-line); }
.cp-header-in { display: flex; align-items: center; gap: 20px; min-height: 66px; }
.cp-logo { display: flex; align-items: center; gap: 10px; font: 700 1.2rem/1.1 var(--cp-head); color: var(--cp-ink) !important; text-decoration: none; }
.cp-logo-mark { width: 30px; height: 30px; flex: none; fill: var(--cp-tint); stroke: var(--cp-accent); stroke-width: 2; stroke-linejoin: round; }
.cp-nav { margin-left: auto; }
.cp-nav ul { display: flex; gap: 22px; }
.cp-nav a { color: var(--cp-ink); text-decoration: none; font-weight: 600; font-size: .95rem; }
.cp-nav a:hover { color: var(--cp-accent); text-decoration: underline; text-underline-offset: 4px; }
.cp-menu-btn { display: none; }
.cp-theme-btn {
  display: inline-flex; flex: none; align-items: center; justify-content: center; width: 44px; height: 44px; padding: 0;
  border: 1px solid var(--cp-line-strong); border-radius: var(--cp-r); background: transparent; color: inherit; font-size: 1.15rem; cursor: pointer;
}
.cp-theme-btn:hover { background: var(--cp-tint); }

.cp-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 46px; padding: 0 20px;
  border: 2px solid var(--cp-accent); border-radius: var(--cp-r); font: 700 1rem/1.2 var(--cp-head); text-decoration: none; cursor: pointer; text-align: center;
}
.cp-btn--fill { background: var(--cp-accent); color: var(--cp-on-accent) !important; }
.cp-btn--fill:hover { background: var(--cp-accent-hover); border-color: var(--cp-accent-hover); }
.cp-btn--line { background: transparent; color: var(--cp-accent) !important; }
.cp-btn--line:hover { background: var(--cp-tint); }
.cp-btn--big { min-height: 54px; padding: 0 26px; font-size: 1.05rem; }
.cp-btn:disabled { background: var(--cp-band); border-color: var(--cp-line-strong); color: var(--cp-muted) !important; cursor: not-allowed; }

.cp-eyebrow { font-weight: 700; color: var(--cp-accent); font-size: .92rem; letter-spacing: .02em; }
.cp-title { font: 700 clamp(1.7rem, 3.4vw, 2.4rem)/1.15 var(--cp-head); }
.cp-sub { color: var(--cp-muted); margin-top: 8px; max-width: 64ch; }
.cp-head { margin-bottom: 26px; }
.cp-sec { padding: 72px 0; }
.cp-band { background: var(--cp-band); }
.cp-muted { color: var(--cp-muted); }
.cp-small { font-size: .9rem; color: var(--cp-muted); }

.cp-hero { padding: 64px 0 56px; }
.cp-hero-in { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); gap: 48px; align-items: center; }
.cp-hero-title { font: 700 clamp(2.2rem, 5vw, 3.5rem)/1.06 var(--cp-head); margin-top: 10px; }
.cp-lede { font-size: 1.15rem; color: var(--cp-muted); margin-top: 16px; max-width: 54ch; }
.cp-hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }
.cp-facts { display: flex; flex-wrap: wrap; gap: 8px 24px; margin-top: 24px; color: var(--cp-muted); font-size: .95rem; }
.cp-facts strong { color: var(--cp-ink); }
.cp-panel { padding: 24px; background: var(--cp-surface); border: 1px solid var(--cp-line); border-radius: calc(var(--cp-r) + 4px); box-shadow: 0 24px 40px -30px var(--color-shadow); }
.cp-panel-title { font: 700 1.1rem var(--cp-head); margin-bottom: 12px; }

.cp-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 250px), 1fr)); gap: 18px; }
.cp-grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.cp-card { display: flex; flex-direction: column; gap: 8px; padding: 22px; background: var(--cp-surface); border: 1px solid var(--cp-line); border-radius: var(--cp-r); }
.cp-card h3 { font: 700 1.15rem/1.25 var(--cp-head); }
.cp-card p { color: var(--cp-muted); font-size: .96rem; }
.cp-card .cp-btn { margin-top: auto; align-self: flex-start; }
.cp-card.is-on { border: 2px solid var(--cp-accent); }
.cp-art { height: 120px; margin: -22px -22px 6px; border-radius: var(--cp-r) var(--cp-r) 0 0; background: var(--cp-tint); position: relative; overflow: hidden; }
.cp-art::after { content: ""; position: absolute; width: 90px; height: 90px; border-radius: 50%; right: 18%; top: 22%; background: var(--cp-canvas); opacity: .7; }
.cp-price { font: 700 1.5rem var(--cp-head); color: var(--cp-ink); }
.cp-badge { display: inline-block; align-self: flex-start; padding: 2px 10px; border-radius: 999px; border: 1px solid var(--cp-line-strong); font-size: .82rem; font-weight: 600; color: var(--cp-ink); }
.cp-badge--on { background: var(--cp-tint); border-color: var(--cp-accent); }
.cp-badge--bad { border-color: var(--cp-danger); color: var(--cp-danger); }
.cp-meta { display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: .9rem; color: var(--cp-muted); }

.cp-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; }
.cp-chip { min-height: 42px; padding: 0 16px; border: 1px solid var(--cp-line-strong); border-radius: 999px; background: var(--cp-surface); color: var(--cp-ink); font: 600 .95rem var(--cp-body); cursor: pointer; }
.cp-chip:hover { border-color: var(--cp-accent); }
.cp-chip[aria-pressed="true"] { background: var(--cp-accent); border-color: var(--cp-accent); color: var(--cp-on-accent); }
.cp-count { font-weight: 600; margin-bottom: 14px; }
.cp-empty { padding: 28px; text-align: center; border: 1px dashed var(--cp-line-strong); border-radius: var(--cp-r); }

.cp-steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 210px), 1fr)); gap: 18px; counter-reset: st; }
.cp-steps li { padding: 22px; background: var(--cp-surface); border: 1px solid var(--cp-line); border-radius: var(--cp-r); counter-increment: st; }
.cp-steps li::before { content: counter(st); display: grid; place-items: center; width: 34px; height: 34px; margin-bottom: 10px; border-radius: 50%; background: var(--cp-accent); color: var(--cp-on-accent); font-weight: 700; }
.cp-steps h3 { font: 700 1.1rem var(--cp-head); }
.cp-steps p { color: var(--cp-muted); font-size: .95rem; margin-top: 4px; }

.cp-table { width: 100%; border-collapse: collapse; background: var(--cp-surface); border: 1px solid var(--cp-line); border-radius: var(--cp-r); overflow: hidden; }
.cp-table th, .cp-table td { padding: 12px 14px; text-align: left; border-bottom: 1px solid var(--cp-line); vertical-align: top; }
.cp-table th { font-size: .88rem; color: var(--cp-muted); background: var(--cp-band); }
.cp-table td.cp-num, .cp-table th.cp-num { text-align: right; font-variant-numeric: tabular-nums; }

.cp-meter { height: 10px; border-radius: 999px; background: var(--cp-line); overflow: hidden; }
.cp-meter span { display: block; height: 100%; background: var(--cp-accent); border-radius: inherit; }
.cp-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 160px), 1fr)); gap: 16px; }
.cp-stat strong { display: block; font: 700 2rem/1.1 var(--cp-head); }
.cp-stat span { color: var(--cp-muted); font-size: .92rem; }

.cp-faq-in { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: 40px; align-items: start; }
.cp-qs details { border-bottom: 1px solid var(--cp-line); }
.cp-qs summary { padding: 16px 0; font-weight: 700; cursor: pointer; }
.cp-qs p { padding: 0 0 16px; color: var(--cp-muted); }

.cp-form { max-width: 760px; margin-inline: auto; padding: 32px; background: var(--cp-surface); border: 1px solid var(--cp-line); border-radius: calc(var(--cp-r) + 4px); display: flex; flex-direction: column; gap: 18px; }
.cp-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.cp-field--full { grid-column: 1 / -1; }
.cp-field label, .cp-field legend { display: block; font-weight: 700; margin-bottom: 6px; }
.cp-field :is(input, select, textarea) { width: 100%; min-height: 48px; padding: 10px 14px; border: 1px solid var(--cp-line-strong); border-radius: calc(var(--cp-r) - 2px); background: var(--cp-canvas); color: var(--cp-ink); font: 1rem var(--cp-body); }
.cp-field textarea { min-height: 110px; resize: vertical; }
.cp-field :is(input, select, textarea)[aria-invalid="true"] { border: 2px solid var(--cp-danger); }
.cp-check { display: flex; gap: 10px; align-items: flex-start; font-weight: 400 !important; }
.cp-check input { width: 20px; min-height: 20px; height: 20px; margin-top: 3px; accent-color: var(--cp-accent); }
.cp-hint { font-size: .88rem; color: var(--cp-muted); margin-top: 6px; }
.cp-error { color: var(--cp-danger); font-weight: 600; font-size: .92rem; margin-top: 6px; }
.cp-error::before { content: "! "; }
.cp-status { font-weight: 600; }
.cp-status.is-ok { padding: 14px 16px; border-radius: calc(var(--cp-r) - 2px); background: var(--cp-tint); border-left: 4px solid var(--cp-success); }

.cp-footer { padding: 28px 0; border-top: 1px solid var(--cp-line); color: var(--cp-muted); font-size: .92rem; }
.cp-footer-in { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }

@media (max-width: 860px) {
  .cp-header-in { flex-wrap: wrap; gap: 10px; }
  .cp-theme-btn { margin-left: auto; }
  .cp-menu-btn {
    display: inline-flex; align-items: center; order: 3; min-height: 44px; padding: 0 16px;
    border: 1px solid var(--cp-line-strong); border-radius: var(--cp-r); background: transparent; color: var(--cp-ink); font: 600 .95rem var(--cp-body); cursor: pointer;
  }
  .cp-nav { display: none; order: 5; width: 100%; margin: 0; }
  .cp-nav.is-open { display: block; padding-bottom: 12px; }
  .cp-nav ul { flex-direction: column; gap: 0; }
  .cp-nav a { display: block; padding: 12px 0; border-top: 1px solid var(--cp-line); }
  .cp-header-cta { display: none; }
  .cp-hero-in, .cp-faq-in, .cp-grid--2 { grid-template-columns: minmax(0, 1fr); gap: 28px; }
}

@media (max-width: 640px) {
  .cp-sec { padding: 52px 0; }
  .cp-fields { grid-template-columns: minmax(0, 1fr); }
  .cp-form { padding: 20px; }
  .cp-table thead { display: none; }
  .cp-table, .cp-table tbody, .cp-table tr, .cp-table td { display: block; width: 100%; }
  .cp-table tr { border-bottom: 1px solid var(--cp-line-strong); padding: 6px 0; }
  .cp-table td { border: 0; padding: 6px 14px; text-align: left !important; }
  .cp-table td[data-label]::before { content: attr(data-label) ": "; font-weight: 700; color: var(--cp-muted); }
}

@media (prefers-reduced-motion: reduce) {
  html:has(.cp-page) { scroll-behavior: auto; }
}

@media print {
  .cp-header, .cp-theme-btn, .cp-form { display: none; }
}

/* This template's own sections */
.cp-page [hidden] { display: none !important; }
:where(.cp-page) :is(p, h1, h2, h3, ul, ol, dl, dd, fieldset, table) { margin: 0; }
:where(.cp-page) :is(ul, ol) { padding: 0; list-style: none; }
:where(.cp-page) fieldset { padding: 0; border: 0; min-width: 0; }
:where(.cp-page) a { color: var(--cp-accent); }
:where(.cp-page) :is(h1, h2, h3, h4) { color: inherit; }
.cp-page :focus-visible { outline: 3px solid var(--cp-focus); outline-offset: 2px; }
html:has(.cp-page) { scroll-behavior: smooth; }
.cp-page section[id] { scroll-margin-top: 72px; }
.cp-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.cp-wrap { width: min(1160px, 100% - 32px); margin-inline: auto; }

/* Urgent strip */
.cp-urgent { background: var(--cp-urgent-bg); border-bottom: 1px solid var(--cp-line); }
.cp-urgent-in { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; padding: 10px 0; font-size: .95rem; }
.cp-urgent-in strong { color: var(--cp-urgent); }
.cp-urgent-link { font-weight: 700; color: var(--cp-urgent) !important; white-space: nowrap; }

/* Header */
.cp-header { position: sticky; top: 0; z-index: 20; background: var(--cp-canvas); border-bottom: 1px solid var(--cp-line); }
.cp-header-in { display: flex; align-items: center; gap: 20px; min-height: 68px; }
.cp-logo { display: flex; align-items: center; gap: 10px; color: var(--cp-ink); text-decoration: none; }
.cp-logo-mark { width: 36px; height: 36px; fill: var(--cp-tint); stroke: var(--cp-accent); stroke-width: 2; stroke-linejoin: round; }
.cp-logo-text { display: flex; flex-direction: column; line-height: 1.2; }
.cp-logo-text strong { font-size: 1.15rem; }
.cp-logo-text span { font-size: .8rem; color: var(--cp-muted); }
.cp-nav { margin-left: auto; }
.cp-nav ul { display: flex; gap: 22px; }
.cp-nav a { color: var(--cp-ink); text-decoration: none; font-weight: 600; font-size: .95rem; }
.cp-nav a:hover { color: var(--cp-accent); text-decoration: underline; text-underline-offset: 4px; }
.cp-menu-btn { display: none; }
.cp-theme-btn {
  display: inline-flex; flex: none; align-items: center; justify-content: center; width: 44px; height: 44px; padding: 0;
  border: 1px solid var(--cp-line-strong); border-radius: 10px; background: transparent; color: inherit; font-size: 1.15rem; cursor: pointer;
}
.cp-theme-btn:hover { background: var(--cp-tint); }

/* Buttons */
.cp-btn {
  display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 0 20px;
  border: 2px solid var(--cp-accent); border-radius: 10px; font: 600 .98rem/1.2 var(--cp-head); text-decoration: none; cursor: pointer;
}
.cp-btn--fill { background: var(--cp-accent); color: var(--cp-on-accent); }
.cp-btn--fill:hover { background: var(--cp-accent-hover); border-color: var(--cp-accent-hover); }
.cp-btn--line { background: transparent; color: var(--cp-accent); }
.cp-btn--line:hover { background: var(--cp-tint); }
.cp-btn--big { min-height: 52px; padding: 0 26px; }
.cp-btn:disabled { background: var(--cp-surface); border-color: var(--cp-line-strong); color: var(--cp-muted); cursor: wait; }

.cp-eyebrow { font-size: .85rem; font-weight: 700; color: var(--cp-accent); }
.cp-title { font-size: clamp(1.6rem, 3vw, 2.2rem); line-height: 1.2; margin-top: 4px; }
.cp-sub { color: var(--cp-muted); margin-top: 10px; max-width: 64ch; }
.cp-head { margin-bottom: 28px; }
.cp-treat, .cp-team, .cp-cover, .cp-appt, .cp-reg, .cp-visit { padding: 72px 0; }

/* Hero */
.cp-hero { padding: 64px 0; background: var(--cp-surface); }
.cp-hero-in { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); gap: 48px; align-items: center; }
.cp-hero-title { font-size: clamp(2.1rem, 4.6vw, 3.2rem); line-height: 1.1; margin-top: 10px; letter-spacing: -.01em; }
.cp-lede { font-size: 1.15rem; color: var(--cp-muted); margin-top: 16px; max-width: 54ch; }
.cp-hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }
.cp-routes { display: flex; flex-direction: column; gap: 12px; }
.cp-route {
  display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 2px 14px; padding: 18px 20px;
  background: var(--cp-card); border: 1px solid var(--cp-line); border-radius: 12px; color: var(--cp-ink) !important; text-decoration: none;
}
.cp-route:hover { border-color: var(--cp-accent); box-shadow: 0 0 0 1px var(--cp-accent); }
.cp-route-tag { grid-row: span 2; align-self: start; padding: 4px 10px; border-radius: 999px; background: var(--cp-tint); color: var(--cp-ink); font-size: .8rem; font-weight: 700; white-space: nowrap; }
.cp-route-tag--urgent { background: var(--cp-urgent-bg); color: var(--cp-urgent); }
.cp-route strong { font-size: 1.05rem; }
.cp-route span:last-child { color: var(--cp-muted); font-size: .95rem; }

/* Fees */
.cp-filter { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }
.cp-filter-btn {
  min-height: 40px; padding: 0 16px; border-radius: 999px; border: 1px solid var(--cp-line-strong);
  background: var(--cp-card); color: var(--cp-ink); font: 600 .92rem var(--cp-head); cursor: pointer;
}
.cp-filter-btn[aria-pressed="true"] { background: var(--cp-accent); border-color: var(--cp-accent); color: var(--cp-on-accent); }
.cp-fees { width: 100%; border-collapse: collapse; background: var(--cp-card); border: 1px solid var(--cp-line); }
.cp-fees th, .cp-fees td { padding: 14px 18px; text-align: left; border-bottom: 1px solid var(--cp-line); vertical-align: top; }
.cp-fees thead th { background: var(--cp-surface); font-size: .88rem; color: var(--cp-muted); }
.cp-fees tbody th { font-weight: 600; }
.cp-fees tbody th span { display: block; font-weight: 400; color: var(--cp-muted); font-size: .92rem; }
.cp-fees td { font-variant-numeric: tabular-nums; }
.cp-fees td:last-child { color: var(--cp-success); font-weight: 600; }

/* Team */
.cp-team { background: var(--cp-surface); }
.cp-people { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.cp-person { display: flex; gap: 16px; padding: 22px; background: var(--cp-card); border: 1px solid var(--cp-line); border-radius: 12px; }
.cp-person p { color: var(--cp-muted); font-size: .95rem; }
.cp-person .cp-cred { color: var(--cp-ink); font-size: .88rem; font-weight: 600; }
.cp-days { margin-top: 8px; font-size: .88rem !important; }
.cp-avatar { flex: none; display: grid; place-items: center; width: 56px; height: 56px; border-radius: 50%; background: var(--cp-tint); font-weight: 700; color: var(--cp-ink); }

/* Cover */
.cp-cover-in { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr); gap: 48px; align-items: start; }
.cp-check { margin-top: 24px; }
.cp-label, .cp-field label { display: block; font-weight: 600; margin-bottom: 6px; }
.cp-check-row { display: flex; gap: 10px; }
.cp-input {
  width: 100%; min-height: 48px; padding: 10px 14px; border: 1px solid var(--cp-line-strong); border-radius: 10px;
  background: var(--cp-canvas); color: var(--cp-ink); font: 1rem var(--cp-head);
}
.cp-input[aria-invalid="true"] { border: 2px solid var(--cp-danger); }
.cp-check-result { margin-top: 14px; }
.cp-check-result:not(:empty) { padding: 14px 16px; border-radius: 10px; background: var(--cp-surface); border-left: 4px solid var(--cp-line-strong); }
.cp-check-result.is-yes { border-left-color: var(--cp-success); }
.cp-check-result.is-part { border-left-color: var(--cp-warning); }
.cp-check-result strong { display: block; }
.cp-plan { padding: 28px; border: 2px solid var(--cp-accent); border-radius: 14px; background: var(--cp-card); }
.cp-plan-tag { font-weight: 700; color: var(--cp-accent); }
.cp-plan-price { margin: 6px 0 14px; color: var(--cp-muted); }
.cp-plan-price strong { font-size: 2rem; color: var(--cp-ink); }
.cp-ticks { margin-bottom: 20px; }
.cp-ticks li { position: relative; padding: 6px 0 6px 28px; }
.cp-ticks li::before { content: "\2713"; position: absolute; left: 4px; color: var(--cp-success); font-weight: 700; }

/* Appointment */
.cp-appt { background: var(--cp-surface); }
.cp-appt-form { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 20px 32px; padding: 28px; background: var(--cp-card); border: 1px solid var(--cp-line); border-radius: 14px; }
.cp-legend { font-weight: 700; margin-bottom: 10px; }
.cp-seg { display: inline-flex; border: 1px solid var(--cp-line-strong); border-radius: 10px; overflow: hidden; }
.cp-seg label { position: relative; }
.cp-seg input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.cp-seg span { display: flex; align-items: center; min-height: 46px; padding: 0 20px; font-weight: 600; }
.cp-seg label + label span { border-left: 1px solid var(--cp-line-strong); }
.cp-seg input:checked + span { background: var(--cp-accent); color: var(--cp-on-accent); }
.cp-seg input:focus-visible + span { outline: 3px solid var(--cp-focus); outline-offset: -3px; }
.cp-slots { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.cp-slots label { position: relative; }
.cp-slots input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.cp-slots span {
  display: flex; flex-direction: column; min-height: 64px; justify-content: center; padding: 8px 14px;
  border: 1px solid var(--cp-line-strong); border-radius: 10px; font-weight: 600; font-variant-numeric: tabular-nums;
}
.cp-slots small { font-weight: 400; color: var(--cp-muted); }
.cp-slots input:checked + span { border: 2px solid var(--cp-accent); background: var(--cp-tint); }
.cp-slots input:focus-visible + span { outline: 3px solid var(--cp-focus); outline-offset: 2px; }
fieldset.cp-set:has(.cp-slots) { grid-column: 1 / -1; }
.cp-appt-foot { grid-column: 1 / -1; display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; }
.cp-hint { color: var(--cp-muted); font-size: .92rem; }
.cp-error { color: var(--cp-danger); font-weight: 600; font-size: .92rem; margin-top: 6px; }
.cp-error::before { content: "! "; }
.cp-status { grid-column: 1 / -1; font-weight: 600; }
.cp-status.is-ok { padding: 14px 16px; border-radius: 10px; background: var(--cp-tint); border-left: 4px solid var(--cp-success); }
.cp-opt { font-weight: 400; color: var(--cp-muted); }

/* Registration */
.cp-reg-in { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: 48px; align-items: start; }
.cp-progress { margin-top: 24px; counter-reset: step; }
.cp-progress li { counter-increment: step; display: flex; align-items: center; gap: 12px; padding: 10px 0; color: var(--cp-muted); }
.cp-progress li::before {
  content: counter(step); display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%;
  border: 2px solid var(--cp-line-strong); font-weight: 700; color: var(--cp-muted);
}
.cp-progress li.is-current { color: var(--cp-ink); font-weight: 700; }
.cp-progress li.is-current::before { border-color: var(--cp-accent); background: var(--cp-accent); color: var(--cp-on-accent); }
.cp-progress li.is-done::before { content: "\2713"; border-color: var(--cp-success); color: var(--cp-success); }
.cp-reg-form { padding: 28px; background: var(--cp-card); border: 1px solid var(--cp-line); border-radius: 14px; }
.cp-part > .cp-legend { font-size: 1.25rem; margin-bottom: 16px; }
.cp-grid2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.cp-field + .cp-field { margin-top: 0; }
.cp-checks { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px 20px; margin: 12px 0 18px; }
.cp-checks label, .cp-consent { display: flex; gap: 10px; align-items: flex-start; padding: 8px 0; }
.cp-checks input, .cp-consent input { width: 20px; height: 20px; margin-top: 3px; accent-color: var(--cp-accent); flex: none; }
.cp-reg-nav { display: flex; gap: 12px; justify-content: flex-end; margin-top: 24px; }
.cp-reg-form .cp-status { margin-top: 14px; }

/* Visit */
.cp-visit { background: var(--cp-surface); }
.cp-visit-in { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 48px; }
.cp-contact { margin-top: 16px; font-weight: 600; }
.cp-hours div { display: flex; justify-content: space-between; gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--cp-line); }
.cp-hours dt { font-weight: 600; }
.cp-hours dd { color: var(--cp-muted); text-align: right; }

.cp-footer { padding: 28px 0; border-top: 1px solid var(--cp-line); color: var(--cp-muted); font-size: .92rem; }
.cp-footer-in { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }

@media (max-width: 960px) {
  .cp-people { grid-template-columns: minmax(0, 1fr); }
  .cp-cover-in, .cp-reg-in { grid-template-columns: minmax(0, 1fr); gap: 32px; }
}

@media (max-width: 860px) {
  .cp-header-in { flex-wrap: wrap; gap: 10px; }
  .cp-theme-btn { margin-left: auto; }
  .cp-menu-btn {
    display: inline-flex; align-items: center; order: 3; min-height: 44px; padding: 0 16px;
    border: 1px solid var(--cp-line-strong); border-radius: 10px; background: transparent; color: var(--cp-ink); font: 600 .95rem var(--cp-head); cursor: pointer;
  }
  .cp-nav { display: none; order: 5; width: 100%; margin: 0; }
  .cp-nav.is-open { display: block; padding-bottom: 12px; }
  .cp-nav ul { flex-direction: column; gap: 0; }
  .cp-nav a { display: block; padding: 12px 0; border-top: 1px solid var(--cp-line); }
  .cp-header-cta { display: none; }
  .cp-logo-text span { display: none; }
  .cp-hero-in, .cp-visit-in { grid-template-columns: minmax(0, 1fr); gap: 32px; }
}

@media (max-width: 640px) {
  .cp-treat, .cp-team, .cp-cover, .cp-appt, .cp-reg, .cp-visit { padding: 52px 0; }
  .cp-fees thead { display: none; }
  .cp-fees, .cp-fees tbody, .cp-fees tr, .cp-fees th, .cp-fees td { display: block; }
  .cp-fees tr { padding: 14px 16px; border-bottom: 1px solid var(--cp-line); }
  .cp-fees th, .cp-fees td { padding: 2px 0; border: 0; }
  .cp-fees td::before { content: attr(data-label) ": "; color: var(--cp-muted); font-weight: 400; }
  .cp-appt-form, .cp-grid2, .cp-checks { grid-template-columns: minmax(0, 1fr); }
  .cp-appt-form, .cp-reg-form { padding: 20px; }
  .cp-check-row { flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
  html:has(.cp-page) { scroll-behavior: auto; }
}

@media print {
  .cp-header, .cp-appt, .cp-reg, .cp-theme-btn { display: none; }
}
