/* Xelunora — компоненти: masonry-сітка карток розділів */

.xnGridHold {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 20px 80px;
}

.xnCardGrid {
  column-count: 2;
  column-gap: 22px;
}
@media (max-width: 860px) {
  .xnCardGrid {
    column-count: 1;
  }
}

.xnSectionCard {
  position: relative;
  break-inside: avoid;
  page-break-inside: avoid;
  display: inline-block;
  width: 100%;
  margin: 0 0 22px;
  padding: 26px 26px 22px;
  background: var(--xnCard);
  border: 1px solid var(--xnLine);
  border-radius: var(--xnR2);
  box-shadow: var(--xnLift1);
  overflow: hidden;
}
.xnSectionCard::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  background: linear-gradient(180deg, var(--xnGold), rgba(212, 164, 55, 0));
}
.xnSectionCard:hover {
  box-shadow: var(--xnLift2);
}

.xnCardNum {
  position: absolute;
  right: 12px;
  top: -6px;
  font-family: var(--xnSans);
  font-size: 74px;
  font-weight: 700;
  line-height: 1;
  color: rgba(23, 61, 43, 0.07);
  pointer-events: none;
  user-select: none;
}

.xnCardTitle {
  position: relative;
  z-index: 1;
  font-size: 21px;
  line-height: 1.24;
  color: var(--xnForest);
  margin-bottom: 12px;
  padding-right: 46px;
}

.xnSectionCard p {
  color: var(--xnGrey);
  margin-bottom: 12px;
}
.xnSectionCard p:last-child {
  margin-bottom: 0;
}
.xnSectionCard strong {
  color: var(--xnInk);
}

.xnSectionCard ul,
.xnSectionCard ol {
  margin: 0 0 12px;
  padding-left: 18px;
  color: var(--xnGrey);
}
.xnSectionCard li {
  margin-bottom: 7px;
}
.xnSectionCard ul {
  list-style: none;
  padding-left: 0;
}
.xnSectionCard ul li {
  position: relative;
  padding-left: 22px;
}
.xnSectionCard ul li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 10px;
  width: 8px;
  height: 8px;
  border-radius: 2px;
  transform: rotate(45deg);
  background: var(--xnGold);
}
.xnSectionCard ol {
  padding-left: 20px;
}

.xnCardWide {
  column-span: all;
}

.xnMiniNote {
  margin: 4px 0 12px;
  padding: 14px 16px;
  border-radius: var(--xnR1);
  background: rgba(212, 164, 55, 0.12);
  border: 1px solid rgba(212, 164, 55, 0.4);
  font-family: var(--xnSans);
  font-size: 13.5px;
  line-height: 1.65;
  color: var(--xnInk);
}

.xnPairList {
  margin: 0 0 4px;
  font-family: var(--xnSans);
  font-size: 13.5px;
}
.xnPairList div {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  padding: 9px 0;
  border-bottom: 1px dotted var(--xnLine);
  color: var(--xnGrey);
}
.xnPairList div:last-child {
  border-bottom: none;
}
.xnPairList b {
  color: var(--xnForest);
  flex: none;
  max-width: 52%;
  text-align: right;
}

.xnTinyBadge {
  display: inline-block;
  margin-bottom: 10px;
  padding: 3px 10px;
  border-radius: 3px;
  background: #edf5ef;
  border: 1px solid #bfdcc8;
  font-family: var(--xnSans);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--xnMoss);
}

@media (max-width: 520px) {
  .xnSectionCard {
    padding: 22px 18px 18px;
  }
  .xnCardNum {
    font-size: 56px;
  }
  .xnCardTitle {
    font-size: 19px;
    padding-right: 34px;
  }
  .xnPairList div {
    flex-direction: column;
    gap: 2px;
  }
  .xnPairList b {
    text-align: left;
    max-width: 100%;
  }
}
