 #map-custom {
    height: 1000px;
    width: 100%;
    position: relative;
}

/* Кастомное всплывающее окно */
.custom-popup {
    position: absolute;
    background: black;
    color: white;
    padding: 20px;
    border-radius: 12px;
    max-width: 550px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.6);
    z-index: 1000;
    display: none;
    transform: translate(-50%, -100%);
    margin-top: -65px;
}

.custom-popup::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    border: 10px solid transparent;
    border-top-color: #1a1a1a;
}

.popup-header {
    display: grid;
    grid-template-columns: 10fr 10fr 1fr;
    gap: 35px;
    border-bottom: 1px solid #454a49;
    align-items: center;
    padding-bottom: 20px;
    margin-bottom: 20px;
}

.popup-title {
    font-size: 24px;
    line-height: 28px;
    font-weight: 700;
}
.close-btn {
  background: none;
  border: none;
  font-size: 1.5em;
  cursor: pointer;
  padding-top: -20px ;
  color: #333;
  transition: color 0.3s;
}

.close-btn:hover {
  color: #DA0D08;
}
.custom-popup.visible {
  display: block; /* Показываем при открытии */
}
.custom-popup.hidden {
  display: none !important;
}
.close-btn {
  position: absolute;
  top: 10px; /* Отступ сверху от края попапа */
  right: 10px; /* Отступ справа от края попапа */
  background: none;
  border: none;
  color: #fff; /* Белый крестик */
  border-radius: 50%;
  width: 30px;
  height: 30px;
  cursor: pointer;
  font-size: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.3s;
  z-index: 1001; /* Убедитесь, что выше других элементов */
}



.location-btn {
    background: #DA0D08;
    color: white;
    border: none;
    border-radius: 85px;
    padding: 20px 20px;
    cursor: pointer;
    font-size: 18px;
    line-height: 1;
    font-weight: 500;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.location-btn:hover {
    background: #c53030;
}

.popup-section {
    margin-bottom: 15px;
}
.popup-section-left{
    display: flex;
    margin-bottom: 10px;
    align-items: center;
    gap: 10px;
}
.popup-section-left h4, .popup-section  {
    margin: 0 0 5px 0;
    font-size: 16px;
    line-height: 22px;
    font-weight: 700;
}

.popup-section-left p, .popup-section p {
    margin: 0;
    font-size: 16px;
    line-height: 22px;
}
.popup-section-left p a, .popup-section p a {
    color: #fff;
    border-bottom: 1px solid #fff;
}
.popup-section-left p a:hover, .popup-section p a:hover {
    border-bottom: 1px solid transparent;
}
.contact-info {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 50px;
}

.contact-left, .contact-right {
    flex: 1;
    min-width: 150px;
}

.contact-right {
    text-align: right;
}

@media (max-width: 600px) {
    .custom-popup {
        position: absolute !important;
        width: 100vw; /* Full width of the viewport */
        left: 0 !important; /* Align to the left edge */
        transform: translateY(-100%); /* Keep the vertical centering logic */
        box-sizing: border-box; /* Ensure padding/margins don’t exceed width */
    }

    .popup-header {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .contact-info {
        flex-direction: column;
        gap: 20px;
    }
    .contact-right {
        text-align: left;
        margin-top: 10px;
    }
}