/* 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;
}
nav .links a {
  display: inline-flex;
  align-items: center;
  line-height: 1;
}
nav a:hover {
  color: #e0a94a;
}
@media (max-width: 768px) {
  nav .links a:not(.lang):not(.bt) {
    display: inline-flex !important;
  }
}
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;
  display: block;
  transition: transform 0.45s ease;
}
.why-cards .why-photo--couple {
  object-position: 88% 50%;
}
.why-cards .why-photo--man {
  object-position: 43% 50%;
}
.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].prog-gallery {
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-width: 0;
}
#program .prog-gallery-stage {
  position: relative;
  height: min(58vh, 500px);
  min-height: 320px;
  display: flex;
  align-items: center;
  justify-content: center;
}
#program [data-program-gallery].xf-carwrap .car {
  width: 100% !important;
  max-width: 100% !important;
  height: 100% !important;
  min-height: 0 !important;
  max-height: none !important;
  background: transparent !important;
  animation: none !important;
  display: flex !important;
  align-items: center;
  justify-content: center;
  overflow: hidden !important;
  border: none !important;
  border-radius: 0;
  padding: 0 52px;
  box-sizing: border-box;
}
#program [data-program-gallery] .xf-shot {
  background: transparent !important;
  width: 100%;
  height: 100%;
  display: flex !important;
  align-items: center;
  justify-content: center;
}
#program [data-program-gallery] .car img,
#program #program-photo {
  cursor: zoom-in;
  display: block;
  width: auto !important;
  max-width: 100% !important;
  min-width: 0 !important;
  min-height: 0 !important;
  height: auto !important;
  max-height: 100% !important;
  object-fit: contain !important;
  object-position: center;
  border: none !important;
  border-radius: 0;
  box-shadow: none;
}
#program .prog-gallery-arrow {
  position: absolute !important;
  top: 50% !important;
  transform: translateY(-50%) !important;
  z-index: 2;
  margin: 0 !important;
}
#program .prog-gallery-arrow--prev {
  left: 0;
}
#program .prog-gallery-arrow--next {
  right: 0;
}
#program .prog-gallery-arrow:hover {
  transform: translateY(-50%) !important;
}
#program .prog-gallery-arrow:active {
  transform: translateY(-50%) scale(0.97) !important;
}
#program .prog-gallery-nav {
  margin-top: 0;
  justify-content: center;
}
#program .prog-gallery-nav .xf-count {
  min-width: 5.5em;
  text-align: center;
}

@media (min-width: 901px) {
  #program .venue {
    align-items: stretch;
    grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  }
  #program [data-program-gallery].prog-gallery {
    grid-column: 2;
    grid-row: 1;
    align-self: stretch;
    justify-content: center;
  }
  #program .prog-list {
    grid-column: 1;
    grid-row: 1;
    align-self: stretch;
    height: auto;
    justify-content: stretch;
  }
  #program .prog-list li {
    flex: 1 1 0;
    align-items: center;
    min-height: 0;
    font-size: 16px;
  }
}

.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: 48px !important;
  height: 48px !important;
  padding: 0 !important;
  border-radius: 50% !important;
  border: 1.5px solid #e0a94a !important;
  background: rgba(224, 169, 74, 0.18) !important;
  color: #f0e4cc !important;
  font-size: 24px;
  line-height: 1;
  box-shadow: 0 0 18px rgba(224, 169, 74, 0.25) !important;
}
html body .xf-nav .cbtn:hover {
  background: rgba(224, 169, 74, 0.32) !important;
  border-color: #f2b16a !important;
  color: #fff !important;
}
#program .prog-gallery-arrow {
  border: 1.5px solid #e0a94a !important;
  background: rgba(224, 169, 74, 0.18) !important;
  color: #f0e4cc !important;
  box-shadow: 0 0 18px rgba(224, 169, 74, 0.25) !important;
}
#partners .ptnr-card[title="Можно же"] img,
#partners .ptnr-card[title="osom HOUSE"] img,
#partners .ptnr-card[title="Женщины нового времени"] img,
#partners .ptnr-card[title="Novovidenie"] img {
  max-height: 96px;
  max-width: 94%;
}
@media (min-width: 760px) {
  #partners .ptnr-card[title="Можно же"] img,
  #partners .ptnr-card[title="osom HOUSE"] img,
  #partners .ptnr-card[title="Женщины нового времени"] img,
  #partners .ptnr-card[title="Novovidenie"] img {
    max-height: 120px;
  }
}
.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;
}
footer > .fx:first-child {
  position: relative;
  min-height: 48px;
}
.foot-cta {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  margin: 0;
  z-index: 1;
}
footer a.foot-schedule {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin: 0 !important;
  padding: 13px 28px;
  border-radius: 12px;
  background: linear-gradient(90deg, #e0a94a, #f2b16a);
  color: #1a1208 !important;
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  box-shadow: 0 0 34px rgba(224, 169, 74, 0.35);
  white-space: nowrap;
}
footer a.foot-schedule:hover {
  color: #1a1208 !important;
}
@media (max-width: 768px) {
  .foot-cta {
    position: static;
    transform: none;
    margin: 8px 0 0;
  }
}

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

/* Partner logo grid (from CoinCraft «Наши партнёры») */
.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);
}
.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;
  }
}

.media-slot {
  aspect-ratio: 16 / 9;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #100c18;
  border: 1px solid #3c1e5a;
  border-radius: 14px;
  color: #8a809a;
  font-size: 15px;
  letter-spacing: 0.08em;
}
.headliners-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}
.people-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}
.carousel-page {
  display: none;
}
.carousel-page.is-active {
  display: grid;
}
.person-card {
  padding: 0;
  overflow: hidden;
}
.person-card img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  display: block;
}
.person-photo--top {
  object-position: top center;
}
#headliners .headliner-shot {
  height: 540px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}
#headliners .headliner-shot img {
  width: 100% !important;
  height: 540px !important;
  max-height: 540px !important;
  aspect-ratio: auto !important;
  object-fit: cover !important;
  object-position: center top !important;
}
.person-card .person-body {
  padding: 16px 18px 18px;
}
.person-card h3 {
  margin: 0 0 6px;
}
.people-carousel .xf-nav {
  margin-top: 14px;
}
@media (max-width: 800px) {
  .headliners-grid,
  .people-grid {
    grid-template-columns: 1fr;
  }
}
#partners .ptnr-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
