/* X-FAMILY overlays on CoinCraft shell */

h1, h2, h3, h4 {
  font-family: "Russo One", "Arial Narrow", Arial, sans-serif;
  font-weight: 400;
}

/* Original FPartners palette: cream titles, gold accents, purple surfaces */
.grad,
.hero-title.grad,
.sec h2.grad {
  background: linear-gradient(#fff 0%, #e6dcc9 60%, #b8a382 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

nav {
  background: rgba(5, 3, 10, 0.75);
  border-bottom-color: rgba(217, 76, 143, 0.12);
  align-items: center;
}
nav .links {
  align-items: center;
  flex-wrap: nowrap;
}
@media (max-width: 1080px) {
  nav .links {
    flex-wrap: wrap;
    justify-content: flex-end;
  }
}
nav .links a {
  display: inline-flex;
  align-items: center;
  line-height: 1;
}
nav a:hover {
  color: #e0a94a;
}
nav .bt,
a.cta,
.cta {
  background: linear-gradient(90deg, #e0a94a, #f2b16a);
  color: #1a1208;
  box-shadow: 0 0 34px rgba(224, 169, 74, 0.28);
}
nav .bt:hover,
a.cta:hover,
.cta:hover {
  background: linear-gradient(90deg, #f2b16a, #e0a94a) !important;
  color: #1a1208 !important;
}
.cta.ghost {
  background: rgba(20, 14, 30, 0.5) !important;
  border: 1.5px solid rgba(224, 169, 74, 0.45);
  color: #f0e4cc !important;
  box-shadow: none;
}
.cta.ghost:hover {
  background: rgba(224, 169, 74, 0.08) !important;
  color: #f0e4cc !important;
  border-color: #e0a94a !important;
}

.hero .veil {
  background:
    radial-gradient(ellipse at 50% 55%, rgba(5, 3, 10, 0.4) 0%, rgba(5, 3, 10, 0.82) 55%, rgba(5, 3, 10, 0.98) 100%),
    radial-gradient(55% 60% at 50% 8%, rgba(169, 130, 227, 0.12), transparent 70%);
}

.badge {
  border-color: #e0a94a;
  color: #e0a94a;
}

.stat b {
  background: linear-gradient(90deg, #d94c8f, #e0a94a);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.logo-badge {
  display: inline-flex;
  align-items: center;
  padding: 7px 12px;
  border: none;
  border-radius: 4px;
  color: #fff;
  font-family: "Russo One", sans-serif;
  font-size: 13px;
  letter-spacing: 0.14em;
  background: #3a1a5a;
  white-space: nowrap;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}
.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  filter: saturate(1.08) brightness(0.42);
  display: block;
}

.hero-title {
  font-family: "Russo One", sans-serif;
  font-weight: 400;
  font-size: clamp(22px, 3.2vw, 40px);
  line-height: 1.22;
  letter-spacing: 0.03em;
  margin: 8px 0 14px;
  max-width: 920px;
}

.why-cards {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 14px;
}
@media (max-width: 1100px) {
  .why-cards {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}
@media (max-width: 700px) {
  .why-cards {
    grid-template-columns: 1fr 1fr;
  }
}
.why-cards .card {
  padding: 0;
  overflow: hidden;
}
.why-cards .why-photo {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  object-position: center 42%;
  display: block;
  transition: transform 0.45s ease;
}
.why-cards .why-photo--top {
  object-position: center 18%;
}
.why-cards .why-photo--dancer {
  object-position: center 28%;
}
.why-cards .why-photo--booth {
  object-position: center 22%;
}
.why-cards .card:hover .why-photo {
  transform: scale(1.04);
}
.why-cards .card p {
  padding: 14px 16px 16px;
}

.aud-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.aud-list .card {
  padding: 14px 16px;
}
.aud-list .card h3 {
  margin: 0;
  font-size: 15px;
}

.xf-carwrap.carwrap {
  overflow: visible !important;
  margin-top: 0;
}
.xf-carwrap .car {
  animation: none !important;
  width: 100% !important;
  max-width: 100% !important;
  overflow: hidden !important;
  display: flex !important;
  justify-content: center;
  align-items: center;
  background: #000;
  min-height: 220px;
}
.xf-carwrap .car img {
  height: auto !important;
  min-width: 0 !important;
  max-width: 100%;
  width: auto;
  object-fit: contain;
  border-radius: 12px;
}
[data-guests-gallery] .car {
  aspect-ratio: 1 / 1;
  min-height: 0;
}
[data-guests-gallery] .car img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover;
}

@media (min-width: 901px) {
  #audience .venue {
    align-items: stretch;
  }
  #audience [data-guests-gallery] {
    display: contents;
  }
  #audience .aud-list {
    grid-column: 1;
    grid-row: 1;
  }
  #audience [data-guests-gallery] .car {
    grid-column: 2;
    grid-row: 1;
    aspect-ratio: auto;
    min-height: 0 !important;
    height: auto;
    align-self: stretch;
    position: relative;
  }
  #audience [data-guests-gallery] .car img {
    position: absolute;
    inset: 0;
    width: 100% !important;
    height: 100% !important;
    object-fit: cover;
    border-radius: 12px;
  }
  #audience [data-guests-gallery] .xf-nav {
    grid-column: 2;
    grid-row: 2;
  }
}
#program [data-program-gallery].xf-carwrap .car {
  width: 100% !important;
  max-width: 100% !important;
  min-height: 0 !important;
  height: auto !important;
  background: transparent !important;
  animation: none !important;
  display: block !important;
  overflow: hidden !important;
  border-radius: 12px;
}
#program [data-program-gallery] .xf-shot {
  background: transparent !important;
}
#program [data-program-gallery] .car img,
#program #program-photo {
  cursor: zoom-in;
  display: block;
  width: 100% !important;
  max-width: 100% !important;
  min-width: 0 !important;
  min-height: 0 !important;
  height: auto !important;
  object-fit: unset;
  border-radius: 12px;
}

.xf-lightbox {
  position: fixed;
  inset: 0;
  z-index: 400;
  display: none;
  background: rgba(5, 3, 10, 0.94);
}
.xf-lightbox.is-open {
  display: block;
}
.xf-lightbox-stage {
  position: absolute;
  inset: 56px 72px 48px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.xf-lightbox img {
  width: 100% !important;
  height: 100% !important;
  max-width: none !important;
  max-height: none !important;
  min-width: 0 !important;
  min-height: 0 !important;
  object-fit: contain !important;
  object-position: center;
  border-radius: 8px;
}
@media (max-width: 700px) {
  .xf-lightbox-stage {
    inset: 52px 48px 48px;
  }
  .xf-lightbox [data-lb-prev] {
    left: 6px;
  }
  .xf-lightbox [data-lb-next] {
    right: 6px;
  }
}
.xf-lightbox .cbtn {
  position: absolute !important;
  top: 50%;
  transform: translateY(-50%) !important;
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  width: 44px !important;
  height: 44px !important;
  padding: 0 !important;
  border-radius: 50% !important;
  border: 1px solid #3c1e5a !important;
  background: rgba(5, 3, 10, 0.78) !important;
  color: #ece7f5 !important;
  font-size: 22px;
  line-height: 1;
  box-shadow: none !important;
}
.xf-lightbox .cbtn:hover {
  border-color: #e0a94a !important;
  color: #e0a94a !important;
  background: rgba(5, 3, 10, 0.9) !important;
}
.xf-lightbox [data-lb-prev] {
  left: 16px;
}
.xf-lightbox [data-lb-next] {
  right: 16px;
}
.xf-lb-close {
  position: absolute;
  top: 14px;
  right: 18px;
  width: 42px;
  height: 42px;
  border: 1px solid #3c1e5a;
  border-radius: 10px;
  background: rgba(5, 3, 10, 0.72);
  color: #ece7f5;
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
}
.xf-lb-close:hover {
  border-color: #e0a94a;
  color: #e0a94a;
}
.xf-lb-count {
  position: absolute;
  bottom: 14px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #8a809a;
}
body.lb-open {
  overflow: hidden;
}
.xf-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  margin-top: 16px;
}
.xf-nav .cbtn {
  position: static !important;
  transform: none !important;
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 44px !important;
  height: 44px !important;
  padding: 0 !important;
  border-radius: 50% !important;
  border: 1px solid #3c1e5a !important;
  background: rgba(16, 12, 24, 0.9) !important;
  color: #ece7f5 !important;
  font-size: 22px;
  line-height: 1;
  box-shadow: none !important;
}
html body .xf-nav .cbtn:hover {
  background: rgba(224, 169, 74, 0.12) !important;
  border-color: #e0a94a !important;
  color: #e0a94a !important;
}
.xf-nav .cbtn:disabled {
  opacity: 0.28;
  pointer-events: none;
}
.xf-count {
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #8a809a;
}

.promo-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  margin-bottom: 12px;
  border-radius: 999px;
  border: 1px solid rgba(224, 169, 74, 0.45);
  color: #e0a94a;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
}

.prog-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.prog-list li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  background: #100c18;
  border: 1px solid #3c1e5a;
  border-radius: 12px;
  padding: 14px 16px;
  font-size: 14.5px;
  color: #d4cce0;
  line-height: 1.45;
}
.prog-list li span.n {
  color: #e0a94a;
  font-weight: 700;
  min-width: 1.5em;
}

.formbox {
  text-align: center;
}
.formbox .lead {
  color: #ece7f5;
  font-size: 16px;
  line-height: 1.55;
  margin: 8px 0 0;
}
.contact-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 22px;
}
.contact-row .cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0;
}
.contact-row .cta svg {
  width: 18px;
  height: 18px;
  display: block;
  flex: 0 0 auto;
}
.contact-row .cta.ghost svg {
  color: #ece7f5;
}

.past-grid {
  align-items: stretch;
}
.past-card {
  display: flex;
  flex-direction: column;
  color: inherit;
  text-decoration: none;
  cursor: pointer;
}
.past-card h3 {
  margin: 8px 0 6px;
}
.past-card p {
  margin: 0 0 16px;
  flex: 1;
}
.past-date {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #e0a94a;
}
.past-card .past-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin: auto 0 0;
  width: 100%;
  box-sizing: border-box;
  pointer-events: none;
}
.past-card:hover {
  border-color: #e0a94a;
}

footer .fx a {
  color: #e0a94a !important;
}
footer .logo-badge {
  font-size: 11px;
  padding: 5px 9px;
}

.rv.vis {
  opacity: 1;
  transform: none;
}

/* Partner logo grid — match 22.07 */
.ptnr-top > p,
.ptnr-grid > p {
  display: contents;
}
.ptnr-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  max-width: 1100px;
  margin: 0 auto 10px;
}
@media (min-width: 760px) {
  .ptnr-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
  }
}
.ptnr-grid .ptnr-card {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 0;
  min-height: 118px;
  padding: 18px 16px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid #3c1e5a;
  border-radius: 14px;
  overflow: hidden;
  transition: border-color 0.3s, background 0.3s, transform 0.3s;
}
.ptnr-grid .ptnr-card img {
  max-height: 64px;
  max-width: 88%;
  width: auto;
  height: auto;
  object-fit: contain;
  display: block;
  transition: transform 0.3s;
}
@media (min-width: 760px) {
  .ptnr-grid .ptnr-card {
    min-height: 148px;
    padding: 22px 18px;
  }
  .ptnr-grid .ptnr-card img {
    max-height: 88px;
  }
}
.ptnr-grid .ptnr-card:hover {
  border-color: #e0a94a;
  background: rgba(224, 169, 74, 0.05);
  transform: translateY(-4px);
}
.ptnr-grid .ptnr-card:hover img {
  transform: scale(1.06);
}
#partners .ptnr-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
@media (max-width: 760px) {
  #partners .ptnr-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
.ptnr-join {
  border-style: dashed !important;
  border-color: #3c1e5a !important;
  background: transparent !important;
}
.ptnr-join .pj-t {
  color: #e0a94a;
  font-weight: 700;
  font-size: 11px;
  line-height: 1.35;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-align: center;
}
.ptnr-join:hover {
  border-color: #e0a94a !important;
  background: rgba(224, 169, 74, 0.05) !important;
}
.pl-lnk {
  position: absolute;
  inset: 0;
  z-index: 2;
  border-radius: inherit;
}

@media (prefers-reduced-motion: reduce) {
  .why-cards .why-photo,
  .ptnr-grid .ptnr-card,
  .ptnr-grid .ptnr-card img {
    transition: none !important;
    transform: none !important;
  }
}

/* Partnership packages from КП — compact */
#packages .sub {
  margin-bottom: 18px;
}
#packages .pk-tiers {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-top: 0;
}
#packages .pk-tiers .pcard {
  display: flex;
  flex-direction: column;
  min-height: 0;
  padding: 14px 14px 12px;
}
#packages .pk-tiers .pcard .t {
  padding-right: 58px;
  font-size: 12.5px;
  letter-spacing: 1.5px;
  line-height: 1.3;
}
#packages .pk-tiers .pcard .pr {
  font-size: 17px;
  margin-top: 6px;
}
#packages .pk-tiers .pcard .d {
  margin-top: 8px;
  font-size: 11.5px;
  line-height: 1.4;
}
#packages .pk-tiers .pcard .bd {
  font-size: 9px;
  padding: 2px 7px;
  top: -8px;
  right: 8px;
}
.pk-vals {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-top: 16px;
}
.pk-vals .card {
  padding: 14px 14px 13px;
}
.pk-vals .card h3 {
  margin: 0 0 6px;
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #e0a94a;
}
.pk-vals .card p {
  margin: 0;
  font-size: 12px;
  color: #b5a9c4;
  line-height: 1.4;
}
html body #packages .pcard.gold {
  background: linear-gradient(180deg, #e8b45a 0%, #c4892e 100%);
  border-color: #e0a94a;
  color: #1a1208;
}
html body #packages .pcard.gold .t,
html body #packages .pcard.gold .pr,
html body #packages .pcard.gold .d {
  color: #1a1208;
}
html body #packages .pcard.gold .bd {
  background: #1a1208;
  color: #e0a94a;
}
html body #packages .pcard.gold::after {
  display: none;
}
.partnership-cta {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 22px;
}
.partnership-cta .cta {
  margin: 0;
  padding: 13px 26px;
  font-size: 13px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
#packages .pk-tiers .pcard.pk-open {
  width: 100%;
  text-align: left;
  cursor: pointer;
  font: inherit;
  color: inherit;
  appearance: none;
}
#packages .pk-more {
  display: inline-block;
  margin-top: 10px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #e0a94a;
}
html body #packages .pcard.gold .pk-more {
  color: #1a1208;
}
.pkg-modal {
  position: fixed;
  inset: 0;
  z-index: 420;
  display: none;
}
.pkg-modal.is-open {
  display: block;
}
.pkg-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(5, 3, 10, 0.86);
}
.pkg-modal-dialog {
  position: relative;
  z-index: 1;
  width: min(640px, calc(100% - 28px));
  max-height: min(86vh, 760px);
  overflow: auto;
  margin: 7vh auto 0;
  padding: 28px 24px 22px;
  background: #100c18;
  border: 1px solid #3c1e5a;
  border-radius: 16px;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.45);
}
.pkg-modal-close {
  position: absolute;
  top: 12px;
  right: 14px;
  width: 40px;
  height: 40px;
  border: 1px solid #3c1e5a;
  border-radius: 10px;
  background: transparent;
  color: #ece7f5;
  font-size: 26px;
  line-height: 1;
  cursor: pointer;
}
.pkg-modal-close:hover {
  border-color: #e0a94a;
  color: #e0a94a;
}
.pkg-modal-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px 18px;
  padding-right: 44px;
}
.pkg-modal-head h3 {
  margin: 0;
  font-size: 22px;
  letter-spacing: 0.06em;
}
.pkg-modal-price {
  font-size: 22px;
  font-weight: 700;
  color: #e0a94a;
}
.pkg-modal-lead {
  margin: 12px 0 0;
  color: #b5a9c4;
  font-size: 14px;
  line-height: 1.5;
}
.pkg-modal-body {
  margin-top: 18px;
}
.pkg-modal-body h4 {
  margin: 0 0 8px;
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #e0a94a;
}
.pkg-modal-body h4 + h4 {
  margin-top: 16px;
}
.pkg-modal-body ul {
  margin: 0;
  padding: 0;
  list-style: none;
}
.pkg-modal-body li {
  position: relative;
  padding: 5px 0 5px 16px;
  font-size: 13.5px;
  line-height: 1.45;
  color: #d4cce0;
}
.pkg-modal-body li:before {
  content: "";
  position: absolute;
  left: 0;
  top: 11px;
  width: 7px;
  height: 7px;
  border-radius: 2px;
  background: linear-gradient(90deg, #e0a94a, #f2b16a);
}
.pkg-modal-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}
.pkg-modal-actions .cta {
  margin: 0;
}
body.pkg-open {
  overflow: hidden;
}
@media (max-width: 980px) {
  #packages .pk-tiers,
  .pk-vals {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 560px) {
  #packages .pk-tiers,
  .pk-vals {
    grid-template-columns: 1fr;
  }
}
