/* Zeita Host — выезжающая панель лицензий 1С и счёт */

.zh-lic-backdrop {
  position: fixed;
  inset: 0;
  z-index: 80;
  background: rgba(3, 8, 12, 0.62);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}

.zh-lic-backdrop.is-open {
  opacity: 1;
  pointer-events: auto;
}

.zh-lic-panel {
  position: fixed;
  top: 50%;
  left: 50%;
  z-index: 81;
  width: min(1180px, 96vw);
  max-height: min(92vh, 860px);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border-radius: 20px;
  border: 1px solid rgba(0, 184, 212, 0.28);
  background:
    radial-gradient(620px 280px at 12% 0%, rgba(0, 184, 212, 0.14), transparent 55%),
    linear-gradient(180deg, #121c28, #0c141d);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.55);
  color: #e8eef6;
  font-family: "Manrope", system-ui, sans-serif;
  opacity: 0;
  transform: translate(18%, -50%);
  pointer-events: none;
  transition:
    opacity 0.45s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.45s cubic-bezier(0.22, 1, 0.36, 1);
}

.zh-lic-panel.is-open {
  opacity: 1;
  transform: translate(-50%, -50%);
  pointer-events: auto;
}

.zh-lic-close {
  position: absolute;
  top: 0.7rem;
  right: 0.75rem;
  z-index: 2;
  width: 36px;
  height: 36px;
  border-radius: 999px;
  border: 1px solid rgba(230, 237, 245, 0.12);
  background: rgba(0, 0, 0, 0.4);
  color: #e8eef6;
  cursor: pointer;
  font-size: 1.15rem;
  line-height: 1;
}

.zh-lic-head {
  flex: 0 0 auto;
  padding: 1.05rem 1.25rem 0.7rem;
  text-align: center;
}

.zh-lic-head h2 {
  margin: 0;
  font-family: "Sora", sans-serif;
  font-size: clamp(1.35rem, 3vw, 1.85rem);
  letter-spacing: -0.03em;
}

.zh-lic-head p {
  margin: 0.35rem 0 0;
  color: #93a2b6;
  font-size: 0.9rem;
}

.zh-lic-cols {
  display: grid;
  grid-template-columns: 1.15fr 0.95fr;
  gap: 0.85rem;
  min-height: 0;
  flex: 1 1 auto;
  padding: 0 1rem;
  overflow: hidden;
}

.zh-lic-col {
  display: flex;
  flex-direction: column;
  min-height: 0;
  padding: 0.75rem 0.9rem;
  border-radius: 14px;
  border: 1px solid rgba(230, 237, 245, 0.1);
  background: rgba(8, 14, 20, 0.55);
  overflow: hidden;
}

.zh-lic-col h3 {
  margin: 0 0 0.45rem;
  font-family: "Sora", sans-serif;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #5ee7f0;
  text-align: center;
  flex-shrink: 0;
}

.zh-lic-list {
  list-style: none;
  margin: 0;
  padding: 0;
  overflow: auto;
  flex: 1 1 auto;
  min-height: 0;
  scrollbar-width: thin;
  scrollbar-color: rgba(0, 184, 212, 0.4) transparent;
}

.zh-lic-list li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.65rem;
  padding: 0.42rem 0.15rem;
  border-bottom: 1px solid rgba(230, 237, 245, 0.08);
  font-size: 0.88rem;
  line-height: 1.3;
}

.zh-lic-list li:last-child {
  border-bottom: 0;
}

.zh-lic-name {
  flex: 1;
  min-width: 0;
  color: #d7e2ef;
}

.zh-lic-price-wrap {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  flex-shrink: 0;
}

.zh-lic-price {
  font-family: "Sora", sans-serif;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  color: #7fd8e8;
  white-space: nowrap;
  font-size: 0.9rem;
}

.zh-lic-check {
  display: inline-flex;
  cursor: pointer;
}

.zh-lic-check input {
  appearance: none;
  -webkit-appearance: none;
  width: 18px;
  height: 18px;
  margin: 0;
  border-radius: 5px;
  border: 1.5px solid rgba(0, 184, 212, 0.45);
  background: rgba(0, 0, 0, 0.35);
  cursor: pointer;
  position: relative;
}

.zh-lic-check input:checked {
  background: linear-gradient(135deg, #5ee7f0, #00b8d4);
  border-color: transparent;
}

.zh-lic-check input:checked::after {
  content: "";
  position: absolute;
  left: 5px;
  top: 2px;
  width: 5px;
  height: 9px;
  border: solid #041218;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

.zh-lic-foot {
  flex: 0 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.85rem 1.15rem 1rem;
  border-top: 1px solid rgba(230, 237, 245, 0.1);
  background: rgba(0, 0, 0, 0.22);
}

.zh-lic-total {
  margin: 0;
  color: #93a2b6;
  font-size: 0.92rem;
}

.zh-lic-total strong {
  color: #e8eef6;
  font-family: "Sora", sans-serif;
}

.zh-lic-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.zh-lic-btn {
  appearance: none;
  border: 0;
  cursor: pointer;
  border-radius: 12px;
  padding: 0.7rem 1.05rem;
  font: 700 0.88rem "Manrope", system-ui, sans-serif;
}

.zh-lic-btn-primary {
  color: #041218;
  background: linear-gradient(135deg, #5ee7f0, #00b8d4 45%, #0288a8);
  box-shadow: 0 10px 24px rgba(0, 184, 212, 0.22);
}

.zh-lic-btn-ghost {
  color: #e8eef6;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(230, 237, 245, 0.14);
}

.zh-lic-note {
  flex: 1 0 100%;
  margin: 0;
  color: #7d8da7;
  font-size: 0.78rem;
  line-height: 1.4;
}

.license-row.is-pick {
  grid-template-columns: auto 1fr auto;
  gap: 0.65rem;
  align-items: center;
  cursor: pointer;
  border-radius: 8px;
  padding-left: 0.25rem;
  padding-right: 0.25rem;
  transition: background 0.15s ease;
}

.license-row.is-pick:hover {
  background: rgba(0, 184, 212, 0.08);
}

.license-row.is-pick:has(input:checked) {
  background: rgba(0, 184, 212, 0.14);
}

.license-pick {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.license-pick input {
  appearance: none;
  -webkit-appearance: none;
  width: 18px;
  height: 18px;
  margin: 0;
  border-radius: 5px;
  border: 1.5px solid rgba(0, 184, 212, 0.5);
  background: rgba(0, 0, 0, 0.28);
  cursor: pointer;
  position: relative;
}

.license-pick input:checked {
  background: linear-gradient(135deg, #5ee7f0, #00b8d4);
  border-color: transparent;
}

.license-pick input:checked::after {
  content: "";
  position: absolute;
  left: 5px;
  top: 2px;
  width: 5px;
  height: 9px;
  border: solid #041218;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

.license-cart-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin-top: 0.9rem;
}

.zh-lic-open-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  margin-top: 0;
  padding: 0.72rem 1.1rem;
  border-radius: 14px;
  border: 0;
  cursor: pointer;
  font: 700 0.9rem "Manrope", system-ui, sans-serif;
  color: #041218;
  background: linear-gradient(135deg, #5ee7f0, #00b8d4 45%, #0288a8);
  box-shadow: 0 12px 28px rgba(0, 184, 212, 0.22);
}

.zh-lic-open-btn--ghost {
  color: #e8eef6;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(0, 184, 212, 0.35);
  box-shadow: none;
}

.zh-lic-open-btn:hover {
  filter: brightness(1.05);
}

.zh-cart-dock {
  position: fixed;
  left: 50%;
  bottom: 1.1rem;
  transform: translateX(-50%) translateY(120%);
  z-index: 75;
  display: flex;
  align-items: center;
  gap: 0.85rem;
  flex-wrap: wrap;
  max-width: min(720px, calc(100% - 1.5rem));
  padding: 0.75rem 0.9rem;
  border-radius: 16px;
  border: 1px solid rgba(0, 184, 212, 0.35);
  background: linear-gradient(180deg, #152433, #0c141d);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.45);
  color: #e8eef6;
  font: 600 0.9rem "Manrope", system-ui, sans-serif;
  transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1);
}

.zh-cart-dock.is-on {
  transform: translateX(-50%) translateY(0);
}

.zh-cart-dock__meta {
  margin: 0;
  color: #93a2b6;
}

.zh-cart-dock__meta strong {
  color: #e8eef6;
  font-family: "Sora", sans-serif;
}

.zh-cart-dock__actions {
  display: flex;
  gap: 0.45rem;
  margin-left: auto;
}

.zh-cart-dock button {
  appearance: none;
  border: 0;
  cursor: pointer;
  border-radius: 10px;
  padding: 0.55rem 0.85rem;
  font: 700 0.82rem "Manrope", system-ui, sans-serif;
}

.zh-cart-dock__checkout {
  color: #041218;
  background: linear-gradient(135deg, #5ee7f0, #00b8d4);
}

.zh-cart-dock__clear {
  color: #e8eef6;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(230, 237, 245, 0.12);
}

.zh-lic-toast {
  position: fixed;
  bottom: 1.25rem;
  left: 50%;
  transform: translateX(-50%) translateY(12px);
  z-index: 90;
  padding: 0.7rem 1rem;
  border-radius: 12px;
  background: #121c28;
  border: 1px solid rgba(0, 184, 212, 0.35);
  color: #e8eef6;
  font: 600 0.88rem "Manrope", system-ui, sans-serif;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.zh-lic-toast.is-on {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

body.zh-lic-lock {
  overflow: hidden;
}

@media (max-width: 820px) {
  .zh-lic-panel {
    top: auto;
    bottom: 0;
    left: 0;
    right: 0;
    width: 100%;
    max-height: min(94vh, 920px);
    border-radius: 18px 18px 0 0;
    transform: translateY(110%);
  }

  .zh-lic-panel.is-open {
    transform: translateY(0);
  }

  .zh-lic-cols {
    grid-template-columns: 1fr;
    overflow: auto;
  }

  .zh-lic-col {
    max-height: none;
  }

  .zh-lic-list {
    overflow: visible;
  }

  .zh-lic-foot {
    flex-direction: column;
    align-items: stretch;
  }

  .zh-lic-actions {
    width: 100%;
  }

  .zh-lic-btn {
    flex: 1;
  }
}

/* Форма регистрации заявки / отправки счёта */
#zh-lic-reg {
  position: fixed;
  inset: 0;
  z-index: 110;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
}

.zh-lic-reg__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(3, 8, 12, 0.72);
  backdrop-filter: blur(6px);
}

.zh-lic-reg__card {
  position: relative;
  z-index: 1;
  width: min(440px, 100%);
  padding: 1.35rem 1.35rem 1.2rem;
  border-radius: 18px;
  border: 1px solid rgba(0, 184, 212, 0.28);
  background:
    radial-gradient(420px 180px at 10% 0%, rgba(0, 184, 212, 0.14), transparent 55%),
    linear-gradient(180deg, #141e2a, #0d151e);
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.55);
  color: #e8eef6;
  font-family: "Manrope", system-ui, sans-serif;
}

.zh-lic-reg__x {
  position: absolute;
  top: 0.65rem;
  right: 0.7rem;
  width: 34px;
  height: 34px;
  border-radius: 999px;
  border: 1px solid rgba(230, 237, 245, 0.12);
  background: rgba(0, 0, 0, 0.35);
  color: #e8eef6;
  font-size: 1.2rem;
  line-height: 1;
  cursor: pointer;
}

.zh-lic-reg__kicker {
  margin: 0 0 0.35rem;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #5ee7f0;
}

.zh-lic-reg__card h3 {
  margin: 0 0 0.45rem;
  font-family: "Sora", sans-serif;
  font-size: 1.35rem;
  letter-spacing: -0.03em;
}

.zh-lic-reg__lead {
  margin: 0 0 1rem;
  color: #9aa8bc;
  font-size: 0.9rem;
  line-height: 1.5;
}

.zh-lic-reg__form {
  display: grid;
  gap: 0.7rem;
}

.zh-lic-reg__form label {
  display: grid;
  gap: 0.3rem;
  font-size: 0.78rem;
  color: #9aa8bc;
}

.zh-lic-reg__form input[type="text"],
.zh-lic-reg__form input[type="tel"],
.zh-lic-reg__form input[type="email"] {
  width: 100%;
  padding: 0.7rem 0.85rem;
  border-radius: 10px;
  border: 1px solid rgba(230, 237, 245, 0.14);
  background: rgba(0, 0, 0, 0.28);
  color: #e8eef6;
  font: 600 0.95rem "Manrope", system-ui, sans-serif;
}

.zh-lic-reg__form input:focus {
  outline: 2px solid rgba(0, 184, 212, 0.45);
  outline-offset: 1px;
}

.zh-lic-reg__check {
  grid-template-columns: auto 1fr !important;
  align-items: start;
  gap: 0.55rem !important;
  cursor: pointer;
  font-size: 0.82rem !important;
  line-height: 1.4;
  color: #c5d0de !important;
}

.zh-lic-reg__check input {
  margin-top: 0.15rem;
  width: 16px;
  height: 16px;
  accent-color: #00b8d4;
}

.zh-lic-reg__hp {
  position: absolute !important;
  left: -9999px !important;
  width: 1px !important;
  height: 1px !important;
  opacity: 0 !important;
}

.zh-lic-reg__err {
  margin: 0;
  padding: 0.55rem 0.7rem;
  border-radius: 10px;
  background: rgba(220, 80, 80, 0.16);
  color: #ffb4b4;
  font-size: 0.86rem;
}

.zh-lic-reg__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin-top: 0.25rem;
}

.zh-lic-reg__ghost,
.zh-lic-reg__submit {
  flex: 1;
  min-width: 140px;
  padding: 0.75rem 1rem;
  border-radius: 12px;
  border: 0;
  cursor: pointer;
  font: 700 0.9rem "Manrope", system-ui, sans-serif;
}

.zh-lic-reg__ghost {
  background: rgba(255, 255, 255, 0.06);
  color: #e8eef6;
  border: 1px solid rgba(230, 237, 245, 0.12);
}

.zh-lic-reg__submit {
  color: #041218;
  background: linear-gradient(135deg, #5ee7f0, #00b8d4 45%, #0288a8);
}

.zh-lic-reg__submit:disabled {
  opacity: 0.65;
  cursor: wait;
}
