.overlay {
  background-color: rgba(25, 25, 25, 0.6);
  backdrop-filter: blur(8px);
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  opacity: 0;
  visibility: hidden;
  transition: all 0.4s cubic-bezier(0.32, 0.08, 0.24, 1);
  z-index: 1000;
  cursor: pointer;
}

.overlay:target {
  visibility: visible;
  opacity: 1;
}

.popup {
  background: linear-gradient(145deg, #ffffff, #f8f8f8);
  border-radius: 20px;
  padding: 40px;
  width: 480px;
  position: fixed;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%) scale(0.8);
  opacity: 0;
  visibility: hidden;
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.2);
  transition: all 0.6s cubic-bezier(0.68, -0.55, 0.265, 1.55);
  cursor: default;
  border: none;
    z-index: 9999;
}

.overlay:target + .popup {
  opacity: 1;
  visibility: visible;
  transform: translate(-50%, -50%) scale(1);
}

.close {
  position: absolute;
  right: 24px;
  top: 24px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.9);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  border: none;
}

.close::before {
  content: "×";
  font-size: 28px;
  color: #333;
  line-height: 1;
  margin-top: -2px;
  transition: transform 0.3s ease;
}

.close:hover {
  background: #ff4757;
  transform: rotate(90deg);
}

.close:hover::before {
  color: white;
  transform: scale(1.2);
}

/* Стили для контента */
.block-popup-btn {
    gap: 16px;
    padding: 32px;
    display: flex;
    flex-direction: column;
    text-align: center;
    background-color: #fbfbfb;

.block-popup-btn::before {
  content: "";
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(45deg, 
    rgba(255,255,255,0) 0%, 
    rgba(255,255,255,0.8) 50%, 
    rgba(255,255,255,0) 100%);
  animation: shine 6s infinite;
}

@keyframes shine {
  0% { transform: translate(-50%, -50%) rotate(45deg); }
  100% { transform: translate(150%, 150%) rotate(45deg); }
}

.block-popup-btn__img {
  width: 120px;
  height: 120px;
  object-fit: contain;
  margin: 0 auto 24px;
  filter: drop-shadow(0 4px 8px rgba(0,0,0,0.1));
  transition: transform 0.3s ease;
}

.block-popup-btn__img:hover {
  transform: translateY(-4px);
}

.contact-item {
  display: flex;
  align-items: center;
  padding: 16px;
  background: rgba(255,255,255,0.9);
  border-radius: 12px;
  margin-bottom: 16px;
  transition: all 0.3s ease;
  border: 1px solid rgba(0,0,0,0.05);
}

.contact-item:hover {
  transform: translateX(8px);
  box-shadow: 0 6px 16px rgba(0,0,0,0.08);
}

.contact-item__icon {
  width: 40px;
  height: 40px;
  object-fit: contain;
  margin-right: 16px;
  filter: hue-rotate(0deg);
  transition: filter 0.4s ease;
}

.contact-item:hover .contact-item__icon {
  filter: hue-rotate(220deg);
}

.contact-item__text {
  font-size: 16px;
  color: #2d3436;
  font-weight: 500;
  transition: color 0.3s ease;
}

.contact-item:hover .contact-item__text {
  color: #0984e3;
}