body,
html {
  margin: 0;
  padding: 0;
  height: 100%;
  background: rgba(23, 23, 23, 1);

  font-family: 'Inter', sans-serif;
}
body {
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}
body.page-loaded {
    opacity: 1;
    visibility: visible;
}
.body {
    overflow: hidden;

}

.bg {
    background-color: var(--dark-bg);
}

.popup-overlay {
  position: fixed;
  inset: 0;
  display: flex;
  flex-direction: column;
  background: rgba(23, 23, 23, 1);

  z-index: 9999;
}

/* ===== HEADER ===== */
.popup-header {
  text-align: center;
  padding: 20px 0;
}

.popup-header img {
  width: 328px;
  height: 121px;
  transition: all 0.3s ease;
}

@media (max-width: 768px) {
  .popup-header img {
    width: 140px;
    height: 52px;
  }

  .popup-header,
    .gradient-line {
        display: none !important;
    }
}

/* ===== GRADIENT LINE ===== */
.gradient-line {
  height: 2px;
  background: linear-gradient(to right, #111, #888, #111);
}

/* ===== MAIN SPLIT ===== */
.popup-main {
  flex: 1;
  display: flex;
  flex-direction: row;
  transition: all 0.3s ease;
}

.popup-side {
  flex: 1;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.4s ease;
}

.popup-separator {
  width: 2px;
  background: linear-gradient(to bottom, #111, #888, #111);
}

/* ===== MAIN IMAGE ===== */
.main-image {
  width: 557px;
  height: 557px;
  object-fit: cover;
  transition: transform 0.5s ease, opacity 0.5s ease;
  z-index: 2;
}

@media (max-width: 768px) {
  .main-image {
    width: 250px;
    height: 250px;
  }
}

/* ===== LOGO ===== */

.popup-logo {
  position: absolute;
  bottom: 5%;
  left: 50%;
  transform: translateX(-50%) translateY(-10px);
  z-index: 3;
  transition: transform 0.4s ease, opacity 0.4s ease;
}

.popup-logo img {
  width: 250px;
  height: 92px;
}

@media (max-width: 768px) {
  .popup-logo img {
    width: 130px;
    height: 42px;
  }
}

/* ===== BUTTON (COMMON STYLE) ===== */
.hover-button {
  position: absolute;
  bottom: 16%;
  left: 50%;
  transform: translateX(-50%) translateY(-15px);
  width: 150px;
  height: 55px;
  border-radius: 20px;
  border: none;

  opacity: 0;
  background: #fff;
  color: #000;
  padding: 10px 25px;
  font-weight: 600;
  font-size: 22px;

  text-transform: uppercase;
  box-shadow: 0 5px 15px rgba(0, 0, 0, .4);

  transition: all 0.4s ease;
  z-index: 4;
}

.left .hover-button {
    background-color: #e70353;
    margin-top: -15px;
    color: #fff;
}

.right .hover-button {
    background-color: #f39200;
    margin-top: -15px;
    color: #fff;
}

.popup-side:hover .hover-button {
  transform: translateX(-50%) translateY(20px);
  opacity: 1;
}

.popup-side:hover .popup-logo {
  transform: translateX(-50%) translateY(15px);
}

/* ===== BACKGROUND HOVER EFFECTS ===== */
.popup-side.left::before,
.popup-side.right::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.6s ease;
  background-size: cover;
  background-position: center;
  z-index: 1;
  mix-blend-mode: screen;
  background-color: rgba(23, 23, 23, 1);

}

.popup-side.leftB:hover::before {
  background-image: url('../img/popapImg/33.png'), url('../img/popapImg/233.png');
  background-blend-mode: lighten;
  opacity: 0.7;
}

.popup-side.rightB:hover::before {
  background-image: url('../img/popapImg/trinity-partners-KV-13.png'), url('../img/popapImg/ll.png'), url('../img/popapImg/rr.png');
  background-blend-mode: screen;
  opacity: 0.7;
}

/* ===== FLOATING IMAGES (same size as main) ===== */
.floating-img {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 557px;
  height: 557px;
  transform: translate(-50%, -50%) scale(0.6);
  object-fit: cover;
  opacity: 0;
  z-index: 2;
}

@media (max-width: 768px) {
  .floating-img {
    width: 250px;
    height: 250px;
  }

  .popup-side:hover .hover-button {
    transform: translateX(-50%) translateY(10px);
    opacity: 1;
  }
}

.popup-side.right:hover .floating-img {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
  transition: opacity .4s ease, transform .4s ease;
}

.floating1 {
  transition: opacity .4s ease, transform .4s ease;
  mix-blend-mode: lighten;
}

.floating2 {
  transition: opacity .4s ease, transform .4s ease;
  mix-blend-mode: screen;
}

.floating3 {
  transition: opacity .4s ease, transform .4s ease;
  mix-blend-mode: normal;
}

/* ===== DIM OTHER SIDE ON HOVER ===== */
.popup-main:hover .popup-side {
  filter: brightness(40%);
}

.popup-side:hover {
  filter: brightness(100%) !important;
  z-index: 5;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
  .popup-main {
    flex-direction: column;
  }

  .popup-separator {
    height: 6px;
    width: 100%;
  }

  .hover-button {
    width: 110px;
    height: 33px;
    font-size: 12px;
    border-radius: 15px;
    padding: 5px 20px;
    font-size: 16px;
  }
  .bg {
    background-color: transparent;

  }
}
/*  */
/* Активируем hover-анимацию вручную */
.popup-side.right.hover-active .main-image,
.popup-side.right.hover-active .floating-img,
.popup-side.right.hover-active::before {
    pointer-events: none; 

}

.popup-side.right.hover-active .floating-img {
    opacity: 1 !important;
    transform: translate(-50%, -50%) scale(1) !important;

}

.popup-side.right.hover-active::before {
    opacity: 0.9 !important;
}
