.zv-list-btn {
  display: none;
}

@media (hover: none) {
  .staff-block-inner__item .zv-list-btn {
    position: relative;
    z-index: 2;
    display: table;
    margin-top: 12px;
  }

  .staff-block-inner__item:hover .staff-block-inner__preview-wrapper {
    display: block;
  }

  .staff-block-inner__item:hover .staff-block-inner__content-wrapper {
    opacity: 0;
    visibility: hidden;
  }

  .staff-block-inner__item:hover::before {
    opacity: 0;
  }
}

.zv-lock,
.zv-lock body {
  overflow: hidden;
}

.zv {
  --zv-accent: var(--theme-base-color, #db0000);
  --zv-ink: #222;
  --zv-muted: #777;
  --zv-line: #e6e6e6;
  --zv-soft: #f5f6f8;
  position: fixed;
  inset: 0;
  z-index: 100000;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 40px 16px;
  overflow-y: auto;
  font-family: inherit;
  color: var(--zv-ink);
}

.zv[hidden] {
  display: none;
}

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

.zv__backdrop {
  position: fixed;
  inset: 0;
  background: rgba(20, 22, 26, 0.55);
}

.zv__panel {
  position: relative;
  width: 100%;
  max-width: 920px;
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.25);
  animation: zv-in 0.18s ease-out;
}

@keyframes zv-in {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
}

.zv__close {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 50%;
  background: transparent;
  font-size: 30px;
  line-height: 1;
  color: var(--zv-muted);
  cursor: pointer;
}

.zv__close:hover {
  background: var(--zv-soft);
  color: var(--zv-ink);
}

.zv__body {
  padding: 32px 40px 36px;
}

.zv__loading {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: 160px;
  color: var(--zv-muted);
}

.zv__spinner {
  width: 22px;
  height: 22px;
  border: 3px solid var(--zv-line);
  border-top-color: var(--zv-accent);
  border-radius: 50%;
  animation: zv-spin 0.8s linear infinite;
}

@keyframes zv-spin {
  to {
    transform: rotate(360deg);
  }
}

.zv__doctor {
  display: flex;
  gap: 20px;
  align-items: flex-start;
  padding-right: 40px;
}

.zv__photo {
  flex: none;
  width: 96px;
  height: 96px;
  border-radius: 8px;
  object-fit: cover;
  background: var(--zv-soft);
}

.zv__photo--empty {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  font-weight: 600;
  color: var(--zv-muted);
}

.zv__who {
  min-width: 0;
}

.zv__kicker {
  display: block;
  margin-bottom: 4px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--zv-accent);
}

.zv__name {
  margin: 0 0 4px;
  font-size: 24px;
  line-height: 1.25;
  font-weight: 600;
}

.zv__post {
  color: var(--zv-muted);
  font-size: 15px;
}

.zv__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 14px;
  margin-top: 6px;
  font-size: 14px;
}

.zv__tags b {
  color: #3a9d4a;
  font-weight: 600;
}

.zv__clinic {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 6px;
  font-size: 14px;
  color: var(--zv-muted);
}

.zv__clinic svg {
  flex: none;
  color: var(--zv-accent);
}

.zv__steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin: 28px 0 24px;
  padding: 0;
  list-style: none;
  counter-reset: none;
}

.zv__steps-item {
  position: relative;
  min-width: 0;
}

.zv__steps-item::before {
  content: "";
  position: absolute;
  top: 13px;
  left: 34px;
  right: 8px;
  height: 2px;
  background: var(--zv-line);
}

.zv__steps-item:last-child::before {
  display: none;
}

.zv__steps-item.is-done::before {
  background: var(--zv-accent);
}

.zv__steps-item > span,
.zv__steps-item > button {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  padding: 0 12px 0 0;
  border: 0;
  background: none;
  font: inherit;
  color: inherit;
  text-align: left;
}

.zv__steps-item > button {
  cursor: pointer;
}

.zv__steps-item > button:hover .zv__label {
  color: var(--zv-accent);
}

.zv__dot {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #bdbdbd;
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  box-shadow: 0 0 0 4px #fff;
}

.is-current .zv__dot,
.is-done .zv__dot {
  background: var(--zv-accent);
}

.zv__label {
  max-width: 100%;
  overflow-wrap: anywhere;
  font-size: 13px;
  line-height: 1.35;
  color: var(--zv-muted);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.is-current .zv__label,
.is-done .zv__label {
  color: var(--zv-ink);
}

.is-current .zv__label {
  font-weight: 600;
}

.zv__step {
  border-top: 1px solid var(--zv-line);
  padding-top: 24px;
}

.zv__title {
  margin: 0 0 14px;
  font-size: 18px;
  font-weight: 600;
}

.zv__services {
  display: grid;
  gap: 8px;
}

.zv__service {
  display: flex;
  align-items: center;
  gap: 16px;
  width: 100%;
  padding: 16px 18px;
  border: 1px solid var(--zv-line);
  border-radius: 6px;
  background: #fff;
  font: inherit;
  color: inherit;
  text-align: left;
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s;
}

.zv__service:hover,
.zv__service.is-selected {
  border-color: var(--zv-accent);
  background: #fff8f8;
}

.zv__service-title {
  flex: 1;
  font-size: 15px;
  line-height: 1.4;
}

.zv__service-price {
  flex: none;
  font-weight: 700;
  white-space: nowrap;
}

.zv__service svg {
  flex: none;
  color: var(--zv-muted);
}

.zv__back {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-bottom: 18px;
  padding: 8px 14px 8px 10px;
  border: 1px solid var(--zv-accent);
  border-radius: 4px;
  background: #fff;
  color: var(--zv-accent);
  font: inherit;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  cursor: pointer;
}

.zv__back:hover {
  background: #fff3f3;
}

.zv__notice,
.zv__error {
  margin-bottom: 16px;
  padding: 12px 16px;
  border-radius: 6px;
  background: #fff3f3;
  color: #a40000;
  font-size: 14px;
}

.zv__empty {
  padding: 24px;
  border-radius: 6px;
  background: var(--zv-soft);
  text-align: center;
}

.zv__empty p {
  margin: 0 0 16px;
}

.zv__schedule {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 32px;
  align-items: start;
}

.zv__calendar {
  border: 1px solid var(--zv-line);
  border-radius: 8px;
  padding: 14px 14px 10px;
}

.zv__month {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
  font-weight: 600;
  text-transform: capitalize;
}

.zv__month button {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 50%;
  background: none;
  color: var(--zv-ink);
  cursor: pointer;
}

.zv__month button:hover:not(:disabled) {
  background: var(--zv-soft);
}

.zv__month button:disabled {
  color: #ccc;
  cursor: default;
}

.zv__week,
.zv__days {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  text-align: center;
}

.zv__week span {
  padding: 4px 0 8px;
  font-size: 12px;
  color: var(--zv-muted);
}

.zv__day {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  margin: 1px auto;
  border: 1px solid transparent;
  border-radius: 50%;
  background: none;
  font: inherit;
  font-size: 14px;
  font-weight: 700;
  color: var(--zv-ink);
}

button.zv__day {
  cursor: pointer;
}

button.zv__day:hover {
  background: #fff0f0;
  color: var(--zv-accent);
}

.zv__day.is-off {
  font-weight: 400;
  color: #c4c4c4;
}

.zv__day.is-today {
  border-color: #bdbdbd;
}

.zv__day.is-selected,
button.zv__day.is-selected:hover {
  background: var(--zv-accent);
  border-color: var(--zv-accent);
  color: #fff;
}

.zv__slots {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(110px, 1fr));
  gap: 10px;
}

.zv__slot {
  padding: 12px 8px;
  border: 1px solid #cfd6dc;
  border-radius: 6px;
  background: #fff;
  font: inherit;
  font-size: 16px;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: #455a64;
  cursor: pointer;
  transition: border-color 0.15s, color 0.15s;
}

.zv__slot small {
  font-size: 12px;
  font-weight: 400;
  color: var(--zv-muted);
}

.zv__slot:hover {
  border-color: var(--zv-accent);
  color: var(--zv-accent);
}

.zv__summary {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 12px 24px;
  margin-bottom: 22px;
  padding: 16px 18px;
  border-radius: 6px;
  background: var(--zv-soft);
}

.zv__summary span {
  display: block;
  margin-bottom: 2px;
  font-size: 12px;
  color: var(--zv-muted);
}

.zv__summary b {
  display: block;
  font-weight: 600;
  font-size: 15px;
  line-height: 1.4;
}

.zv__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px 20px;
}

.zv__field {
  display: block;
  margin: 0;
}

.zv__form > .zv__field {
  margin-top: 14px;
}

.zv__field span {
  display: block;
  margin-bottom: 6px;
  font-size: 13px;
  color: var(--zv-muted);
}

.zv__field input,
.zv__field textarea {
  display: block;
  width: 100%;
  height: auto;
  margin: 0;
  padding: 13px 14px;
  border: 1px solid #c9c9c9;
  border-radius: 4px;
  background: #fff;
  font: inherit;
  font-size: 16px;
  color: var(--zv-ink);
  box-shadow: none;
}

.zv__field textarea {
  resize: vertical;
  min-height: 56px;
}

.zv__field input:focus,
.zv__field textarea:focus {
  outline: none;
  border-color: var(--zv-accent);
  box-shadow: 0 0 0 3px rgba(219, 0, 0, 0.12);
}

.zv__field input[aria-invalid="true"] {
  border-color: #d32f2f;
  background: #fff7f7;
}

.zv__hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.zv__consent {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  margin: 18px 0;
  font-size: 14px;
  line-height: 1.45;
  color: #555;
  cursor: pointer;
}

.zv__consent input {
  flex: none;
  width: 18px;
  height: 18px;
  margin: 1px 0 0;
  accent-color: var(--zv-accent);
}

.zv__consent input[aria-invalid="true"] {
  outline: 2px solid #d32f2f;
  outline-offset: 1px;
}

.zv__consent a {
  color: var(--zv-accent);
}

.zv__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 220px;
  padding: 15px 28px;
  border: 1px solid var(--zv-accent);
  border-radius: 4px;
  background: var(--zv-accent);
  color: #fff;
  font: inherit;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  cursor: pointer;
}

.zv__btn:hover:not(:disabled) {
  filter: brightness(0.92);
}

.zv__btn:disabled {
  opacity: 0.6;
  cursor: wait;
}

.zv__btn--ghost {
  background: #fff;
  color: var(--zv-accent);
}

.zv__done {
  text-align: center;
}

.zv__done-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #3a9d4a;
  color: #fff;
}

.zv__done-icon svg {
  width: 28px;
  height: 28px;
}

.zv__done h3 {
  margin: 12px 0 18px;
  font-size: 22px;
  font-weight: 600;
}

.zv__done .zv__summary {
  grid-template-columns: repeat(2, 1fr);
  text-align: left;
}

@media (max-width: 767px) {
  .zv {
    padding: 0;
  }

  .zv__panel {
    min-height: 100%;
    border-radius: 0;
  }

  .zv__body {
    padding: 20px 16px 28px;
  }

  .zv__doctor {
    gap: 14px;
  }

  .zv__photo {
    width: 64px;
    height: 64px;
  }

  .zv__name {
    font-size: 19px;
  }

  .zv__steps {
    margin: 20px 0 18px;
  }

  .zv__label {
    font-size: 12px;
  }

  .zv__done .zv__summary {
    grid-template-columns: 1fr;
  }

  .zv__schedule {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .zv__calendar {
    max-width: 360px;
    width: 100%;
    margin: 0 auto;
  }

  .zv__slots {
    grid-template-columns: repeat(3, 1fr);
  }

  .zv__slot {
    font-size: 15px;
  }

  .zv__slot small {
    display: none;
  }

  .zv__grid {
    grid-template-columns: 1fr;
  }

  .zv__btn {
    width: 100%;
  }

  .zv__service {
    padding: 14px;
    gap: 10px;
  }
}
