:root {
  color-scheme: light;
  --cyan: #00bce4;
  --ink: #111111;
  --muted: #333333;
  --line: #c6d6da;
  --pale: #e6faff;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; background: #fff; color: var(--ink); font: 16px/1.5 'Segoe UI', sans-serif; }
button, select { font: inherit; }
button { cursor: pointer; }
button:disabled { cursor: default; }
a { color: var(--ink); text-underline-offset: 3px; }
button:focus-visible, select:focus-visible, a:focus-visible { outline: 3px solid #111; outline-offset: 4px; }
.skip { position: absolute; left: 16px; top: -70px; padding: 10px 16px; background: #fff; border: 2px solid var(--cyan); z-index: 10; }
.skip:focus { top: 12px; }
.header { max-width: 1170px; margin: auto; padding: 26px 28px; display: flex; align-items: center; gap: 18px; }
.brand { display: block; flex: 0 0 76px; border-radius: 50%; }
.header img { display: block; width: 76px; height: 76px; object-fit: contain; border-radius: 50%; background: #fff; }
.header strong { font-size: 21px; }
.header p { margin: 2px 0; color: var(--muted); font-size: 14px; }
.wrap { max-width: 1170px; margin: auto; padding: 0 28px 40px; }
.intro { margin: 10px 0 28px; }
h1 { font-family: Georgia, serif; font-weight: normal; font-size: 38px; line-height: 1.15; margin: 0 0 12px; }
h2 { margin: 0; font-size: 21px; }
h3 { font-size: 18px; margin: 0; }
.intro p { margin: 0; color: var(--muted); }
.layout { display: grid; grid-template-columns: minmax(0, 1fr) 275px; gap: 20px; align-items: start; }
.booking { min-width: 0; background: #fff; border: 1px solid var(--line); border-radius: 22px; padding: 26px; box-shadow: 0 8px 26px #37565708; }
.step { display: flex; gap: 12px; align-items: center; margin: 0 0 14px; }
.num { display: grid; place-items: center; flex: 0 0 29px; height: 29px; border-radius: 50%; background: var(--pale); color: var(--ink); font-weight: 700; font-size: 14px; }
select { display: block; width: 100%; max-width: 100%; padding: 14px 38px 14px 14px; border: 1px solid #adc9ce; border-radius: 10px; color: var(--ink); background: #fff; min-height: 53px; text-overflow: ellipsis; }
.cycle-help { font-size: 13px; background: var(--pale); padding: 12px; border-radius: 8px; margin: 10px 0 0; }
.cycle-help p { margin: 0 0 10px; }
#member-status { font-weight: 600; overflow-wrap: anywhere; }
#member-status:empty { display: none; }
.calendar-step { margin-top: 29px; }
.status { margin: 12px 0; font-size: 14px; color: var(--muted); }
.status:empty { display: none; }
#slots[aria-busy="true"]:empty { min-height: 120px; border-radius: 10px; background: linear-gradient(#f5fbfc 0 0) 0 8px / 44% 16px no-repeat, linear-gradient(#f5fbfc 0 0) 0 40px / 95% 40px no-repeat; }
.error { margin: 14px 0; padding: 12px 14px; border: 1px solid #666; border-radius: 10px; background: #f6f6f6; color: var(--ink); font-size: 14px; }
.list-day { padding: 16px 0; border-bottom: 1px solid var(--line); display: grid; grid-template-columns: 140px minmax(0, 1fr); gap: 18px; align-items: center; }
.list-day:first-child { padding-top: 10px; }
.list-day:last-child { border-bottom: 0; }
.list-day strong, .list-day h3 { font-size: 15px; line-height: 1.4; }
.list-slots { display: flex; gap: 8px; flex-wrap: wrap; }
.slot { min-width: 71px; min-height: 44px; background: #fff; border: 1px solid #b9d2d8; border-radius: 9px; padding: 8px; color: var(--ink); font-weight: 600; }
.slot:hover:not(:disabled) { border-color: var(--cyan); background: #f4fcfe; }
.slot[aria-pressed="true"] { background: var(--pale); border: 2px solid var(--cyan); padding: 7px; box-shadow: 0 0 0 1px var(--cyan); }
.slot:disabled { color: #666; background: #f5f5f5; }
.hint { font-size: 12px; color: var(--muted); margin: 20px 0 0; }
.aside { background: var(--pale); border: 1px solid var(--cyan); border-radius: 20px; padding: 24px; }
.eyebrow { font-size: 11px; letter-spacing: 1.8px; text-transform: uppercase; font-weight: 700; margin: 0 0 11px; }
.aside h3 { font-size: 21px; line-height: 1.3; }
.aside dl { font-size: 14px; margin: 20px 0; }
.aside dl div { display: flex; justify-content: space-between; gap: 14px; padding: 7px 0; }
.aside dt { color: var(--muted); }
.aside dd { margin: 0; font-weight: 600; text-align: right; }
.total { border-top: 1px solid #bedde4; padding-top: 16px; margin-top: 16px; display: flex; justify-content: space-between; gap: 12px; align-items: center; font-size: 13px; }
.total b { font-size: 27px; white-space: nowrap; }
.primary { min-height: 48px; background: var(--cyan); border: 2px solid var(--cyan); border-radius: 30px; color: var(--ink); font-weight: 700; padding: 12px 13px; width: 100%; margin: 18px 0 6px; }
.primary:hover:not(:disabled) { background: #24cbed; border-color: #24cbed; }
.primary:disabled { background: #dce8eb; border-color: #dce8eb; color: #555; }
.fine { font-size: 12px; color: var(--muted); margin: 8px 0; }
.secondary { min-height: 44px; padding: 10px 18px; border: 1px solid var(--cyan); border-radius: 24px; color: var(--ink); background: #fff; font-weight: 600; font-size: 14px; }
.secondary:hover:not(:disabled) { background: var(--pale); }
.secondary:disabled { border-color: var(--line); color: #555; }
.load-more { display: block; margin: 18px auto 0; }
.first-contact { font-size: 14px; margin: 22px 0 0; color: var(--muted); }
.first-contact a { font-weight: 600; }
.footer { max-width: 1170px; margin: auto; text-align: center; color: var(--muted); font-size: 12px; padding: 0 24px 28px; }
.footer strong { color: var(--ink); }
.footer p { margin: 6px 0; }
@media (max-width: 850px) {
  .layout { grid-template-columns: 1fr; }
  .aside { display: grid; grid-template-columns: 1fr 1fr; gap: 0 24px; }
  .aside .eyebrow, .aside h3 { grid-column: 1; }
  .aside dl { grid-column: 2; grid-row: 1 / 4; margin: 0; }
  .aside .total { grid-column: 1; }
  .aside .primary, .aside .fine { grid-column: 1 / -1; }
}
@media (max-width: 570px) {
  .header { padding: 18px; gap: 11px; }
  .brand { flex-basis: 55px; }
  .header img { width: 55px; height: 55px; }
  .header strong { font-size: 19px; }
  .header p { font-size: 12px; }
  .wrap { padding: 0 16px 28px; }
  h1 { font-size: 29px; }
  .intro p { font-size: 14px; }
  .booking { padding: 20px 14px; }
  .step { gap: 10px; }
  .step h2 { font-size: 18px; }
  select { padding-left: 11px; font-size: 14px; }
  .list-day { grid-template-columns: 1fr; gap: 10px; }
  .slot { min-width: 65px; font-size: 14px; }
  .aside { display: block; padding: 22px; }
  .aside dl { margin: 15px 0; }
  .first-contact { font-size: 13px; }
  .footer p a { display: inline-block; padding: 5px 0; }
}
