#kw-popup-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.62);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  z-index: 999999;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.28s ease, visibility 0.28s ease;
}

#kw-popup-overlay.kw-show {
  opacity: 1;
  visibility: visible;
}

#kw-popup {
  position: relative;
  width: min(100%, 1000px);
  background: #fff43f;
  color: #000;
  border-radius: 34px;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.38);
  padding: 38px 42px 34px;
  text-align: center;
  font-family: "Open Sans", Arial, sans-serif;
  transform: translateY(12px) scale(0.98);
  transition: transform 0.28s ease;
}

#kw-popup-overlay.kw-show #kw-popup {
  transform: translateY(0) scale(1);
}

#kw-popup-close {
  position: absolute;
  top: 16px;
  right: 18px;
  border: none;
  background: transparent;
  color: #000;
  font-size: 34px;
  line-height: 1;
  cursor: pointer;
  padding: 0;
  font-family: Arial, sans-serif;
}

#kw-popup-title {
  margin: 0 0 14px;
  font-family: "Roboto Condensed", Arial, sans-serif;
  font-size: clamp(2.6rem, 5vw, 4.8rem);
  line-height: 0.95;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1px;
}

#kw-popup-subtitle {
  margin: 0 0 28px;
  font-size: clamp(1.1rem, 2vw, 1.35rem);
  line-height: 1.4;
  font-weight: 400;
}

.kw-popup-gallery {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  margin: 0 0 28px;
}

.kw-popup-card {
  overflow: hidden;
  border-radius: 24px;
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.22);
  background: #000;
}

.kw-popup-card img {
  display: block;
  width: 100%;
  height: 150px;
  object-fit: cover;
}

#kw-popup-line {
  margin: 0 0 18px;
  font-size: clamp(1.2rem, 2.2vw, 1.6rem);
  line-height: 1.3;
  font-weight: 400;
}

#kw-popup-copy {
  margin: 0 auto;
  max-width: 860px;
  font-size: 1rem;
  line-height: 1.5;
}

#kw-popup-copy strong {
  font-weight: 800;
}

#kw-popup-copy a {
  color: #9a7d00;
  font-weight: 800;
  text-decoration: none;
}

#kw-popup-copy a:hover {
  text-decoration: underline;
}

@media (max-width: 900px) {
  #kw-popup {
    padding: 34px 24px 28px;
    border-radius: 26px;
  }

  .kw-popup-gallery {
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
  }

  .kw-popup-card img {
    height: 135px;
  }
}

@media (max-width: 575px) {
  #kw-popup-overlay {
    padding: 14px;
  }

  #kw-popup {
    padding: 28px 18px 22px;
    border-radius: 22px;
  }

  #kw-popup-close {
    top: 12px;
    right: 14px;
    font-size: 30px;
  }

  .kw-popup-gallery {
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-bottom: 20px;
  }

  .kw-popup-card {
    border-radius: 18px;
  }

  .kw-popup-card img {
    height: 105px;
  }

  #kw-popup-copy {
    font-size: 0.95rem;
  }
}