/* Стили для секции контактов */
.contacts-section {
    background: rgba(0, 0, 0, 0.5);
    margin-top: 50px;
    border-top: 3px solid;
    border-image: linear-gradient(to right, rgba(218, 143, 65, 1) 0%, rgba(119, 80, 36, 1) 100%) 1;
    border-image-slice: 1;
    position: relative;
}

.section-title {
    color: #fff;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: 600;
    line-height: 1.2;
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: #d28d38;
    border-radius: 2px;
}

.contact-info {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.contact-item {
    display: flex;
    align-items: center;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    min-height: 80px;
    cursor: pointer;
    flex: 1;
}

.contact-item:hover {
    background: rgba(255, 255, 255, 0.1) !important;
    transform: translateX(10px);
    border-color: rgba(238, 147, 147, 0.3) !important;
}

.contact-item:active {
    transform: translateX(10px) scale(0.98);
}

.contact-icon {
    font-size: 24px;
    min-width: 30px;
    background: linear-gradient(135deg, #8f8f8f, #363636);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
}

.contact-details p {
    color: #fff;
    font-size: 1.1rem;
    margin: 0;
    font-weight: 300;
    letter-spacing: 0.5px;
    line-height: 1.4;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

/* Стили для кликабельных контактов */
.contact-item.clickable .contact-details p {
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 4px 8px;
    border-radius: 4px;
    margin: -4px -8px;
}

.contact-item.clickable .contact-details p:hover {
    background: rgba(238, 147, 147, 0.1);
}

.contact-item.clickable .contact-details p.copied {
    color: #4CAF50;
    background: rgba(76, 175, 80, 0.1);
}

.map-container {
    backdrop-filter: blur(10px);
    height: 400px;
    width: 100%;
    box-sizing: border-box;
    overflow: hidden;
    min-height: 300px; /* Минимальная высота */
}

#map {
    height: 100%;
    width: 100%;
    border-radius: 8px;
    overflow: hidden;
    border: 2px solid rgba(255, 255, 255, 0.1);
    box-sizing: border-box;
}

/* Индикатор загрузки карты */
.map-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    color: #fff;
    text-align: center;
    padding: 20px;
}

.map-loading-spinner {
    width: 40px;
    height: 40px;
    border: 4px solid rgba(255, 255, 255, 0.3);
    border-top: 4px solid #ee9393;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 15px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Уведомление о копировании */
.copy-notification {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%) translateY(-100px);
    background: #4CAF50;
    color: white;
    padding: 12px 20px;
    border-radius: 25px;
    font-size: 14px;
    z-index: 10000;
    transition: transform 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    display: flex;
    align-items: center;
    gap: 8px;
}

.copy-notification.show {
    transform: translateX(-50%) translateY(0);
}

.copy-notification-icon {
    font-size: 16px;
}

/* Адаптивность */

/* Планшеты */
@media (max-width: 768px) {
    .contacts-section {
        margin-top: 40px;
    }
    
    .section-title {
        font-size: 1.8rem !important;
        margin-bottom: 30px;
    }
    
    .contact-item {
        min-height: 70px;
        padding: 20px !important;
    }
    
    .contact-item:hover {
        transform: translateY(-2px);
    }
    
    .contact-icon {
        font-size: 20px;
        width: 36px;
        height: 36px;
    }
    
    .contact-details p {
        font-size: 1rem;
    }
    
    .map-container {
        height: 300px;
        min-height: 250px;
    }
}

/* Мобильные устройства */
@media (max-width: 576px) {
    .contacts-section {
        margin-top: 30px;
    }
    
    .section-title {
        font-size: 1.6rem !important;
        margin-bottom: 25px;
    }
    
    .contact-item {
        min-height: 65px;
        padding: 15px !important;
        flex-direction: column;
        text-align: center;
        gap: 8px;
    }
    
    .contact-icon {
        font-size: 18px;
        width: 32px;
        height: 32px;
        margin-right: 0 !important;
        margin-bottom: 5px;
    }
    
    .contact-details p {
        font-size: 0.9rem;
    }
    
    .map-container {
        height: 250px;
        min-height: 200px;
    }
}

/* Поддержка touch-устройств */
@media (hover: none) and (pointer: coarse) {
    .contact-item:hover {
        transform: none;
        background: rgba(255, 255, 255, 0.05);
    }
    
    .contact-item:active {
        background: rgba(255, 255, 255, 0.1);
        transform: scale(0.98);
    }
}