/* Блок онлайн-записи (день → время → бронь). Подключается на главной и на странице /zapis. */
  .zp-card .zp-btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; padding: 16px 26px; border: 0; border-radius: 14px; background: var(--grad-deep); color: #fff; font: inherit; font-weight: 500; font-size: 16px; text-decoration: none; cursor: pointer; }
  .zp-card .zp-btn .ico { width: 22px; height: 22px; }
  .zp-card { position: relative; margin-top: clamp(28px, 4vw, 48px); padding: clamp(20px, 3vw, 36px); border-radius: 28px; background: rgba(255, 255, 255, .92); border: 1px solid rgba(26, 11, 84, .06); box-shadow: 0 24px 60px rgba(26, 11, 84, .10), 0 2px 8px rgba(26, 11, 84, .04); }
  .zp-card .zp-steps { list-style: none; display: flex; gap: 8px; margin-bottom: 26px; }
  .zp-card .zp-steps li { flex: 1; display: flex; align-items: center; gap: 10px; font-size: 14px; color: var(--muted); }
  .zp-card .zp-steps li::before { content: attr(data-n); width: 28px; height: 28px; flex-shrink: 0; display: grid; place-items: center; border-radius: 50%; background: var(--soft); font-weight: 500; color: var(--ink); transition: background .3s, color .3s; }
  .zp-card .zp-steps li::after { content: ""; flex: 1; height: 2px; border-radius: 2px; background: var(--soft); }
  .zp-card .zp-steps li:last-child::after { display: none; }
  .zp-card .zp-steps li.on { color: var(--ink); font-weight: 500; }
  .zp-card .zp-steps li.on::before { background: var(--grad-deep); color: #fff; }
  .zp-card .zp-steps li.done::before { content: "✓"; background: rgba(154, 42, 214, .12); color: rgb(154, 42, 214); }
  .zp-card .zp-steps li.done::after { background: var(--grad); }
  .zp-card .zp-steps li small { display: block; font-size: 11px; font-weight: 400; color: var(--muted); letter-spacing: .04em; text-transform: uppercase; }
  /* на телефоне подписи остаются, а соединительные линии убираем, чтобы всё поместилось */
 @media (max-width: 560px) {
    .zp-card .zp-steps { gap: 6px; }
    .zp-card .zp-steps li { flex-direction: column; justify-content: flex-start; gap: 6px; font-size: 13px; line-height: 1.25; text-align: center; }
    .zp-card .zp-steps li::after { display: none; }
    .zp-card .zp-steps li::before { width: 26px; height: 26px; }
  }

  .zp-card .zp-label { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
  .zp-card .zp-label h2 { font-size: clamp(19px, 2vw, 22px); font-weight: 500; }
  .zp-card .zp-label small { font-size: 13px; color: var(--muted); }

  /* дни недели */
  .zp-card .zp-days { display: grid; grid-template-columns: repeat(auto-fill, minmax(118px, 1fr)); gap: 12px; }
  .zp-card .zp-day { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; padding: 14px 16px; border-radius: 18px; border: 1.5px solid rgba(26, 11, 84, .1); background: #fff; font: inherit; color: var(--ink); text-align: left; cursor: pointer; transition: border-color .2s, box-shadow .2s, transform .2s; }
  .zp-card .zp-day:hover { border-color: rgba(202, 69, 255, .5); transform: translateY(-2px); }
  .zp-card .zp-day small { font-size: 13px; color: var(--muted); }
  .zp-card .zp-day b { font-size: 26px; font-weight: 500; line-height: 1.15; }
  .zp-card .zp-day i { margin-top: 6px; font-style: normal; font-size: 12px; padding: 3px 9px; border-radius: 99px; background: rgba(154, 42, 214, .09); color: rgb(130, 30, 190); }
  .zp-card .zp-day[aria-pressed="true"] { border-color: transparent; background: linear-gradient(#fff, #fff) padding-box, var(--grad) border-box; box-shadow: 0 12px 30px rgba(154, 42, 214, .16); }
  .zp-card .zp-day[aria-pressed="true"] b { background: var(--grad-deep); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }

  /* время */
  .zp-card .zp-times { margin-top: 28px; }
  .zp-card .zp-slots { display: grid; grid-template-columns: repeat(auto-fill, minmax(132px, 1fr)); gap: 10px; }
  .zp-card .zp-slot { padding: 14px 10px; border-radius: 14px; border: 1.5px solid rgba(26, 11, 84, .12); background: #fff; font: inherit; font-size: 17px; font-weight: 500; color: var(--ink); cursor: pointer; transition: border-color .2s, background .2s, color .2s, box-shadow .2s; }
  .zp-card .zp-slot small { display: block; margin-top: 2px; font-size: 12px; font-weight: 400; color: var(--muted); }
  .zp-card .zp-slot:hover { border-color: rgba(202, 69, 255, .55); }
  .zp-card .zp-slot[aria-pressed="true"] { border-color: transparent; background: var(--grad-deep); color: #fff; box-shadow: 0 10px 24px rgba(154, 42, 214, .25); }
  .zp-card .zp-slot[aria-pressed="true"] small { color: rgba(255, 255, 255, .85); }
  .zp-card .zp-in { animation: zpIn .35s ease; }
  @keyframes zpIn { from { opacity: 0; transform: translateY(8px); } }

  /* форма */
  .zp-card .zp-form { margin-top: 30px; padding-top: 26px; border-top: 1px solid rgba(26, 11, 84, .08); display: grid; gap: 18px; }
  .zp-card .zp-summary { display: flex; align-items: center; gap: 14px; padding: 14px 18px; border-radius: 18px; background: linear-gradient(120deg, rgba(43, 167, 255, .08), rgba(202, 69, 255, .08), rgba(254, 136, 27, .08)); }
  .zp-card .zp-summary .ico { width: 26px; height: 26px; stroke: rgb(154, 42, 214); }
  .zp-card .zp-summary b { display: block; font-weight: 500; }
  .zp-card .zp-summary small { font-size: 14px; color: var(--muted); }
  .zp-card .zp-two { display: grid; gap: 18px; }
 @media (min-width: 720px) { .zp-two { grid-template-columns: 1fr 1fr; } }
  .zp-card .field { display: grid; gap: 8px; }
  .zp-card .field > span, .zp-card fieldset legend { font-size: 15px; font-weight: 500; color: var(--ink); }
  .zp-card .field input { width: 100%; font: inherit; font-size: 16px; color: var(--ink); padding: 14px 16px; border-radius: 12px; border: 1.5px solid rgba(26, 11, 84, .14); background: #fff; box-shadow: 0 2px 8px rgba(26, 11, 84, .05); outline: none; transition: border-color .2s, box-shadow .2s; }
  .zp-card .field input::placeholder { color: var(--muted); }
  .zp-card .field input:focus { border-color: rgb(202, 69, 255); box-shadow: 0 0 0 3px rgba(202, 69, 255, .15); }
  .zp-card .field input[aria-invalid="true"] { border-color: #d0365a; }
  .zp-card .phone { display: flex; gap: 8px; }
  .zp-card .phone select { flex-shrink: 0; font: inherit; font-size: 16px; color: var(--ink); padding: 0 30px 0 12px; border-radius: 12px; border: 1.5px solid rgba(26, 11, 84, .14); box-shadow: 0 2px 8px rgba(26, 11, 84, .05); background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M1 1l4 4 4-4' fill='none' stroke='%231a0b54' stroke-width='1.5'/%3E%3C/svg%3E") no-repeat right 12px center; appearance: none; cursor: pointer; outline: none; }
  .zp-card .phone input { min-width: 0; }
  .zp-card fieldset { border: 0; display: grid; gap: 10px; }
  .zp-card .chips { display: flex; flex-wrap: wrap; gap: 8px; }
  .zp-card .chips input { position: absolute; opacity: 0; pointer-events: none; }
  .zp-card .chips label { display: inline-flex; align-items: center; gap: 7px; padding: 10px 16px 10px 10px; border-radius: 999px; border: 1.5px solid rgba(26, 11, 84, .12); background: #fff; box-shadow: 0 2px 8px rgba(26, 11, 84, .05); font-size: 14px; cursor: pointer; user-select: none; transition: border-color .2s, box-shadow .2s; }
  .zp-card .chips label:hover { border-color: rgba(202, 69, 255, .5); }
  .zp-card .chips input:checked + label { border-color: transparent; background: var(--grad-deep); color: #fff; box-shadow: 0 6px 16px rgba(154, 42, 214, .25); }
  .zp-card .chips input:focus-visible + label { box-shadow: 0 0 0 3px rgba(202, 69, 255, .3); }
  .zp-card .ch-ico { width: 20px; height: 20px; flex-shrink: 0; }
  .zp-card .handle[hidden] { display: none; }
  .zp-card .handle > span:first-child b { font-weight: 500; }
  .zp-card .handle small { font-size: 13px; font-weight: 400; color: var(--muted); }
  .zp-card .handle-box { display: flex; align-items: center; border-radius: 12px; background: #fff; border: 1.5px solid rgba(26, 11, 84, .14); box-shadow: 0 2px 8px rgba(26, 11, 84, .05); transition: border-color .2s, box-shadow .2s; }
  .zp-card .handle-box:focus-within { border-color: rgb(202, 69, 255); box-shadow: 0 0 0 3px rgba(202, 69, 255, .15); }
  .zp-card .handle-box i { font-style: normal; padding-left: 16px; color: var(--muted); white-space: nowrap; }
  .zp-card .handle-box i:empty { display: none; }
  .zp-card .field .handle-box input { background: transparent; border: 0; box-shadow: none; padding-left: 4px; }
  .zp-card .handle-box i:empty + input { padding-left: 16px; }
  .zp-card .hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
  .zp-card .form-error { font-size: 14px; color: #d0365a; min-height: 1em; }
  .zp-card .zp-form .zp-btn { width: 100%; margin-top: 0; border: 0; cursor: pointer; font: inherit; font-weight: 500; font-size: 17px; padding: 18px 24px; justify-content: center; }
  .zp-card .zp-form .zp-btn[disabled] { opacity: .6; cursor: default; }
  .zp-card .zp-legal { font-size: 12px; line-height: 1.5; color: var(--muted); text-align: center; }

  /* состояния: загрузка, пусто, готово */
  .zp-card .zp-skel { display: grid; grid-template-columns: repeat(auto-fill, minmax(118px, 1fr)); gap: 12px; }
  .zp-card .zp-skel span { height: 96px; border-radius: 18px; background: linear-gradient(90deg, var(--soft), #fff, var(--soft)) 0 0 / 200% 100%; animation: zpShimmer 1.2s linear infinite; }
  @keyframes zpShimmer { to { background-position: -200% 0; } }
  .zp-card .zp-empty, .zp-card .zp-done { text-align: center; padding: 20px 8px; }
  .zp-card .zp-empty h2, .zp-card .zp-done h2 { margin-top: 14px; font-size: clamp(22px, 2.6vw, 30px); font-weight: 500; }
  .zp-card .zp-empty p, .zp-card .zp-done p { max-width: 30rem; margin: 10px auto 0; line-height: 1.6; color: var(--muted); }
  .zp-card .zp-done .ok { width: 72px; height: 72px; margin: 0 auto; }
  .zp-card .zp-done .ok circle, .zp-card .zp-done .ok path { fill: none; stroke: url(#zg); stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; }
  .zp-card .zp-done .ok path { stroke-dasharray: 40; stroke-dashoffset: 40; animation: zpCheck .6s .2s ease forwards; }
  @keyframes zpCheck { to { stroke-dashoffset: 0; } }
  .zp-card .zp-when { display: inline-flex; flex-direction: column; gap: 4px; margin-top: 18px; padding: 16px 24px; border-radius: 18px; background: linear-gradient(#fff, #fff) padding-box, var(--grad) border-box; border: 2px solid transparent; }
  .zp-card .zp-when b { font-size: 19px; font-weight: 500; }
  .zp-card .zp-when small { color: var(--muted); }
  .zp-card .zp-actions { margin-top: 22px; display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
  .zp-card .zp-actions .zp-btn { margin-top: 0; }
  .zp-card .zp-btn.light { background: linear-gradient(#fff, #fff) padding-box, var(--grad) border-box; border: 2px solid transparent; color: var(--ink); padding: 14px 24px; }
  .zp-note { margin-top: 18px; text-align: center; font-size: 13px; color: var(--muted); }
  .zp-card [hidden] { display: none !important; }
 @media (prefers-reduced-motion: reduce) { .zp-in, .zp-skel span, .zp-done .ok path { animation: none; } .zp-done .ok path { stroke-dashoffset: 0; } }
  /* соцсети на экране «Вы записаны» */
  .zp-card .socials-title { margin-top: 26px; font-size: 14px; color: var(--muted); }
  .zp-card .socials { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 12px; }
  .zp-card .social { display: inline-flex; align-items: center; gap: 8px; padding: 8px 16px 8px 8px; border-radius: 999px; background: var(--soft); color: var(--ink); font-size: 14px; font-weight: 500; text-decoration: none; transition: transform .2s, box-shadow .2s; }
  .zp-card .social:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
  .zp-card .social svg { width: 24px; height: 24px; flex-shrink: 0; }
  /* на телефоне кнопки на всю ширину, чтобы подписи не ломались */
  @media (max-width: 560px) { .zp-card .zp-actions .zp-btn { width: 100%; } }
  /* листание недель */
  .zp-card .zp-label > div:first-child { display: grid; gap: 4px; }
  .zp-card .zp-week { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }
  .zp-card .zp-week button { width: 38px; height: 38px; display: grid; place-items: center; padding: 0; border: 1.5px solid rgba(26, 11, 84, .12); border-radius: 50%; background: #fff; color: var(--ink); cursor: pointer; transition: border-color .2s, opacity .2s; }
  .zp-card .zp-week button:hover { border-color: rgba(202, 69, 255, .55); }
  .zp-card .zp-week button:disabled { opacity: .35; cursor: default; border-color: rgba(26, 11, 84, .12); }
  .zp-card .zp-week .ico { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
  .zp-card .zp-week span { min-width: 7.5em; text-align: center; font-size: 14px; font-weight: 500; white-space: nowrap; }
  .zp-card .zp-none { grid-column: 1 / -1; padding: 18px; border-radius: 18px; background: var(--soft); color: var(--muted); line-height: 1.6; }
  .zp-card .zp-none-next { margin-left: 6px; padding: 0; border: 0; background: none; font: inherit; font-weight: 500; color: rgb(154, 42, 214); cursor: pointer; }
  @media (max-width: 560px) {
    .zp-card .zp-label:has(.zp-week) { flex-direction: column; align-items: stretch; }
    .zp-card .zp-week { justify-content: space-between; }
  }
