
.zp-catalog {
  color: #eef6ff;
  background:
    radial-gradient(circle at 85% 0%, #174266, transparent 36%),
    linear-gradient(145deg, #0b1d35, #071222);
  border-radius: 24px;
  padding: clamp(20px, 4vw, 42px);
  min-height: 70vh;
}

.zp-catalog * {
  box-sizing: border-box;
}

.zp-return {
  color: #a9d9ff;
  text-decoration: none;
  font-weight: 650;
}

.zp-return:hover {
  color: white;
}

.zp-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 12px;
  border-radius: 99px;
  background: rgba(94, 207, 163, .12);
  color: #86f0ca;
  border: 1px solid rgba(94, 207, 163, .23);
  font-weight: 750;
  font-size: .82rem;
}

.zp-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 24px;
  margin: 25px 0;
}

.zp-head h1 {
  color: white;
  font-size: clamp(1.9rem, 4.5vw, 3.4rem);
  font-weight: 850;
  letter-spacing: -.04em;
  margin: 13px 0 10px;
}

.zp-head p {
  color: #b9cce2;
  font-size: 1.05rem;
  max-width: 670px;
  line-height: 1.65;
}

.zp-head-icon {
  background: rgba(122, 196, 255, .09);
  border: 1px solid rgba(122, 196, 255, .23);
  padding: 20px 25px;
  border-radius: 24px;
  font-size: 2.5rem;
  color: #80d0ff;
}

.zp-filters {
  background: rgba(255, 255, 255, .06);
  border: 1px solid rgba(255, 255, 255, .13);
  border-radius: 19px;
  padding: 18px;
  margin: 24px 0;
}

.zp-filters form {
  display: flex;
  align-items: end;
  gap: 12px;
  flex-wrap: wrap;
}

.zp-field {
  flex: 1 1 200px;
  min-width: 0;
}

.zp-field label {
  display: block;
  color: #d4e6f6;
  font-size: .89rem;
  font-weight: 750;
  margin-bottom: 8px;
}

.zp-field select {
  width: 100%;
  height: 45px;
  border-radius: 11px;
  border: 1px solid #54708e;
  background: #102943;
  color: white;
  padding: 0 12px;
}

.zp-submit,
.zp-clear {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 45px;
  padding: 0 19px;
  border-radius: 11px;
  font-weight: 750;
  text-decoration: none;
}

.zp-submit {
  background: #6de6b7;
  color: #09251f;
  border: 0;
}

.zp-submit:hover {
  background: #9bf6d4;
}

.zp-clear {
  color: #e0edff;
  background: rgba(255, 255, 255, .07);
  border: 1px solid rgba(255, 255, 255, .19);
}

.zp-count {
  color: #a9c4db;
  margin-bottom: 16px;
}

.zp-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 17px;
}

.zp-card {
  background: linear-gradient(160deg, #173551, #0b2036);
  border: 1px solid rgba(136, 181, 221, .21);
  border-radius: 19px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  min-width: 0;
  transition: transform .15s, border-color .15s;
}

.zp-card:hover {
  transform: translateY(-3px);
  border-color: rgba(109, 230, 183, .48);
}

.zp-card-top {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.zp-pill {
  display: inline-block;
  background: rgba(137, 207, 255, .10);
  border: 1px solid rgba(137, 207, 255, .24);
  color: #bfe6ff;
  padding: 5px 10px;
  border-radius: 99px;
  font-size: .78rem;
  font-weight: 700;
}

.zp-pill-grade {
  background: rgba(109, 230, 183, .11);
  border-color: rgba(109, 230, 183, .24);
  color: #9cf1d1;
}

.zp-card h2 {
  color: white;
  font-size: 1.13rem;
  font-weight: 800;
  line-height: 1.35;
  margin: 15px 0 10px;
  overflow-wrap: anywhere;
}

.zp-desc {
  color: #b1c7db;
  font-size: .91rem;
  line-height: 1.55;
  flex: 1;
  overflow-wrap: anywhere;
}

.zp-card-action {
  margin-top: 19px;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 10px;
  text-align: center;
  background: linear-gradient(120deg, #72e7ba, #7cd7ff);
  color: #08232a;
  border-radius: 12px;
  font-weight: 800;
  text-decoration: none;
}

.zp-card-action:hover {
  color: #08232a;
  filter: brightness(1.08);
}

.zp-empty {
  border: 1px dashed rgba(183, 213, 239, .27);
  border-radius: 18px;
  padding: 35px;
  text-align: center;
  color: #c6d6e6;
}

.zp-pages {
  display: flex;
  gap: 12px;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  margin-top: 24px;
}

.zp-pages a {
  color: #d8f5ff;
  text-decoration: none;
  border: 1px solid rgba(174, 211, 234, .25);
  border-radius: 10px;
  padding: 9px 17px;
}

.zp-pages span {
  color: #a5bed3;
}

@media (max-width: 1050px) {
  .zp-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .zp-catalog {
    padding: 20px 14px;
    border-radius: 16px;
  }

  .zp-head-icon {
    display: none;
  }

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

  .zp-field {
    flex-basis: 100%;
  }

  .zp-submit,
  .zp-clear {
    flex: 1;
  }
}

@media (prefers-reduced-motion: reduce) {
  .zp-card {
    transition: none;
  }

  .zp-card:hover {
    transform: none;
  }
}

/* Красив банер за случайните въпроси */

.zp-random-notice {
    display: flex;
    align-items: center;
    gap: 18px;

    width: 100%;
    max-width: 780px;

    padding: 20px 24px;
    margin: 24px 0 30px;

    background: linear-gradient(
        120deg,
        rgba(16, 185, 129, .22),
        rgba(14, 165, 233, .18)
    );

    border: 2px solid #34d399;
    border-radius: 18px;

    box-shadow:
        0 8px 30px rgba(16, 185, 129, .15),
        inset 0 1px 0 rgba(255,255,255,.08);
}

.zp-random-icon {
    width: 62px;
    height: 62px;
    min-width: 62px;

    display: flex;
    align-items: center;
    justify-content: center;

    background: linear-gradient(
        135deg, #34d399, #67e8f9
    );

    border-radius: 16px;
    color: #062e2b;
    font-size: 29px;
}

.zp-random-content {
    flex: 1;
    min-width: 0;
}

.zp-random-label {
    display: inline-flex;
    align-items: center;
    gap: 7px;

    color: #6ee7b7;
    font-size: 12px;
    font-weight: 900;
    letter-spacing: 1px;

    margin-bottom: 7px;
}

.zp-random-title {
    color: #ffffff;
    font-size: 21px;
    font-weight: 850;
    line-height: 1.3;
    margin-bottom: 7px;
}

.zp-random-description {
    color: #d8f5eb;
    font-size: 15px;
    line-height: 1.65;
}

/* Адаптация за телефони */

@media (max-width: 600px) {
    .zp-random-notice {
        padding: 16px;
        gap: 12px;
        align-items: flex-start;
    }

    .zp-random-icon {
        width: 44px;
        height: 44px;
        min-width: 44px;
        font-size: 22px;
        border-radius: 12px;
    }

    .zp-random-title {
        font-size: 17px;
    }

    .zp-random-description {
        font-size: 13px;
    }
}

