/* WMF / PKM Project v153
   Trust dialog, catalog naming, public prices and mobile product details. */

/* Fully designed “Why choose PKM Project” dialog. */
.wmf-trust-dialog {
  width: min(1120px, calc(100% - 32px));
  max-width: 1120px;
  max-height: min(90dvh, 920px);
  margin: auto;
  padding: 0;
  overflow: hidden;
  border: 1px solid rgba(198, 147, 111, 0.5);
  border-radius: 28px;
  color: #f7f4f0;
  background:
    radial-gradient(circle at 92% 2%, rgba(198, 147, 111, 0.2), transparent 30%),
    linear-gradient(145deg, #171a1e 0%, #0b0d10 64%, #08090b 100%);
  box-shadow: 0 38px 110px rgba(0, 0, 0, 0.78);
  font-family: "Noto Sans SemiCondensed", Arial, sans-serif;
}

.wmf-trust-dialog:not([open]) {
  display: none;
}

.wmf-trust-dialog::backdrop {
  background: rgba(0, 0, 0, 0.82);
  backdrop-filter: blur(9px);
}

.wmf-trust-dialog-panel {
  position: relative;
  max-height: min(90dvh, 920px);
  overflow: auto;
  padding: clamp(28px, 4vw, 56px);
  scrollbar-color: rgba(198, 147, 111, 0.7) rgba(255, 255, 255, 0.04);
}

.wmf-trust-dialog-close {
  position: absolute;
  z-index: 3;
  top: 18px;
  right: 18px;
  display: grid;
  width: 46px;
  height: 46px;
  place-items: center;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 50%;
  color: #fff;
  background: rgba(8, 9, 11, 0.74);
  font: 300 30px/1 Arial, sans-serif;
  cursor: pointer;
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease;
}

.wmf-trust-dialog-close:hover,
.wmf-trust-dialog-close:focus-visible {
  transform: rotate(6deg);
  border-color: #d1a17e;
  background: rgba(198, 147, 111, 0.18);
  outline: none;
}

.wmf-trust-dialog-head {
  position: relative;
  max-width: 900px;
  margin-bottom: clamp(24px, 3vw, 38px);
  padding: 0 70px 24px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.wmf-trust-dialog-head::after {
  content: "";
  position: absolute;
  bottom: -1px;
  left: 0;
  width: 112px;
  height: 2px;
  background: linear-gradient(90deg, #e0ad82, #a7673e);
}

.wmf-trust-dialog-head > span {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #d6a681;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.wmf-trust-dialog-head > span::before {
  content: "";
  width: 32px;
  height: 1px;
  background: currentColor;
}

.wmf-trust-dialog-head h3 {
  max-width: 850px;
  margin: 12px 0 0;
  color: #fff;
  font-size: clamp(30px, 4vw, 52px);
  font-weight: 760;
  line-height: 1.03;
  letter-spacing: -0.035em;
  text-wrap: balance;
}

.wmf-trust-why-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.wmf-trust-why-item {
  position: relative;
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr);
  grid-template-rows: auto 1fr;
  gap: 7px 15px;
  min-height: 182px;
  padding: 22px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 18px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.055), rgba(255, 255, 255, 0.014)),
    rgba(14, 16, 20, 0.76);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.045), 0 14px 34px rgba(0, 0, 0, 0.18);
}

.wmf-trust-why-item::after {
  content: "";
  position: absolute;
  right: -32px;
  bottom: -38px;
  width: 110px;
  height: 110px;
  border: 1px solid rgba(198, 147, 111, 0.12);
  border-radius: 50%;
}

.wmf-trust-why-icon {
  display: grid;
  grid-row: 1 / 3;
  width: 50px;
  height: 50px;
  place-items: center;
  border: 1px solid rgba(209, 161, 126, 0.62);
  border-radius: 50%;
  color: #efc8a8;
  background: rgba(198, 147, 111, 0.11);
  font-size: 13px;
  font-weight: 850;
  letter-spacing: 0.06em;
}

.wmf-trust-why-item h4 {
  position: relative;
  z-index: 1;
  margin: 2px 0 0;
  color: #fff;
  font-size: clamp(17px, 1.45vw, 21px);
  font-weight: 760;
  line-height: 1.18;
  letter-spacing: -0.015em;
}

.wmf-trust-why-item p {
  position: relative;
  z-index: 1;
  margin: 0;
  color: rgba(255, 255, 255, 0.68);
  font-size: 14px;
  line-height: 1.55;
}

/* Desktop public price badge inside every full-catalog model. */
.cat-price-v153 {
  display: grid;
  gap: 3px;
  margin-bottom: 4px;
  padding: 16px;
  border: 1px solid rgba(226, 176, 134, 0.62);
  border-radius: 12px;
  background:
    radial-gradient(circle at 100% 0%, rgba(255, 255, 255, 0.18), transparent 36%),
    linear-gradient(135deg, rgba(199, 149, 110, 0.27), rgba(125, 77, 45, 0.18));
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.2), inset 0 1px rgba(255, 255, 255, 0.08);
}

.cat-price-v153 span {
  color: rgba(255, 255, 255, 0.64);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.cat-price-v153 strong {
  color: #fff;
  font-size: 25px;
  font-weight: 850;
  line-height: 1.1;
  letter-spacing: -0.025em;
}

.cat-price-v153 small {
  color: rgba(255, 255, 255, 0.58);
  font-size: 10.5px;
  line-height: 1.35;
}

/* Product detail improvements. */
.wmf-mobile-catalog-price strong {
  color: #ffd4ad !important;
  font-size: 20px !important;
  font-weight: 850 !important;
  letter-spacing: -0.02em;
}

.wmf-mobile-catalog-dialog-description,
.wmf-mobile-catalog-dialog-block dd {
  white-space: pre-line;
}

.wmf-mobile-catalog-why ul li {
  display: grid;
  gap: 4px;
  padding: 13px 14px 13px 30px !important;
  border: 1px solid rgba(255, 255, 255, 0.075);
  border-radius: 13px;
  background: rgba(255, 255, 255, 0.035);
}

.wmf-mobile-catalog-why ul li::before {
  left: 13px !important;
  top: 19px !important;
}

.wmf-mobile-catalog-why li strong {
  color: #fff;
  font-size: 14px;
  line-height: 1.3;
}

.wmf-mobile-catalog-why li span {
  color: rgba(255, 255, 255, 0.68);
  font-size: 13px;
  line-height: 1.45;
}

.wmf-mobile-catalog-dialog-block dl div {
  gap: 5px !important;
  padding: 13px 14px !important;
}

.wmf-mobile-catalog-dialog-block dt {
  color: #d5a47d !important;
  font-weight: 760;
  letter-spacing: 0.015em;
}

.wmf-mobile-catalog-dialog-block dd {
  color: rgba(255, 255, 255, 0.82) !important;
  line-height: 1.55 !important;
}

@media (max-width: 1180px) and (min-width: 992px) {
  .cat-actions .cat-price-v153 {
    grid-column: 1 / -1;
  }
}

@media (max-width: 760px) {
  .wmf-trust-dialog {
    width: calc(100% - 16px);
    max-height: 92dvh;
    border-radius: 24px;
  }

  .wmf-trust-dialog-panel {
    max-height: 92dvh;
    padding: 24px 16px 18px;
  }

  .wmf-trust-dialog-close {
    position: sticky;
    top: 0;
    float: right;
    width: 44px;
    height: 44px;
    margin: -8px 0 0 10px;
    background: rgba(10, 11, 13, 0.94);
  }

  .wmf-trust-dialog-head {
    margin-bottom: 18px;
    padding: 8px 0 19px;
  }

  .wmf-trust-dialog-head h3 {
    margin-top: 10px;
    font-size: 29px;
    line-height: 1.06;
  }

  .wmf-trust-why-grid {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .wmf-trust-why-item {
    grid-template-columns: 44px minmax(0, 1fr);
    min-height: 0;
    padding: 16px;
    border-radius: 15px;
  }

  .wmf-trust-why-icon {
    width: 42px;
    height: 42px;
    font-size: 11px;
  }

  .wmf-trust-why-item h4 {
    font-size: 17px;
  }

  .wmf-trust-why-item p {
    font-size: 13px;
    line-height: 1.5;
  }
}

@media (max-width: 991px) {
  .wmf-mobile-catalog-head {
    padding-bottom: 8px !important;
  }

  .wmf-mobile-catalog-head h2 {
    margin-bottom: 0 !important;
  }

  .wmf-mobile-catalog-block {
    margin-top: 8px !important;
  }

  .wmf-mobile-catalog-dialog-media {
    justify-content: center !important;
    padding-right: 24px !important;
    padding-left: 24px !important;
  }

  .wmf-mobile-catalog-dialog-media img {
    width: auto !important;
    margin-right: auto !important;
    margin-left: auto !important;
  }

  .wmf-mobile-catalog-dialog-description {
    color: rgba(255, 255, 255, 0.79) !important;
    line-height: 1.62 !important;
  }

  .wmf-mobile-catalog-price {
    padding: 14px 16px !important;
    border-color: rgba(226, 176, 134, 0.38) !important;
    background: linear-gradient(135deg, rgba(205, 150, 105, 0.22), rgba(135, 82, 48, 0.1)) !important;
  }

  .wmf-lead-dialog.is-mobile-product-lead .wmf-lead-head h2 {
    font-size: 32px !important;
    line-height: 1.04 !important;
    letter-spacing: -0.03em !important;
  }

  .wmf-lead-dialog.is-mobile-product-lead .wmf-lead-head p {
    max-width: 520px;
    color: rgba(255, 255, 255, 0.68) !important;
    font-size: 14px !important;
    line-height: 1.48 !important;
  }

  .wmf-lead-dialog.is-mobile-product-lead .wmf-lead-privacy {
    color: rgba(255, 255, 255, 0.52) !important;
    font-size: 11.5px !important;
    line-height: 1.48 !important;
  }

  .wmf-lead-dialog.is-mobile-product-lead [data-lead-submit] {
    color: #17100c !important;
    background: linear-gradient(135deg, #e5b48d, #bc7949) !important;
  }
}

@media (max-width: 390px) {
  .wmf-lead-dialog.is-mobile-product-lead .wmf-lead-head h2 {
    font-size: 29px !important;
  }
}
