/* Контакты */
.contacts-section {
    padding: 100px 0;
    background: #0a0a0a;
    position: relative;
    overflow: hidden;
}

.contacts-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 30% 50%, rgba(0, 152, 70, 0.05) 0%, transparent 70%);
    z-index: 1;
}

.contacts-wrapper {
    position: relative;
    z-index: 2;
}

.contacts-header {
    text-align: center;
    margin-bottom: 60px;
}

.contacts-title {
    font-family: 'Unbounded', sans-serif;
    font-size: 3rem;
    font-weight: 800;
    color: #ffffff;
    margin-bottom: 15px;
    background: linear-gradient(135deg, #009846, #007c3a);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.contacts-subtitle {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.8);
    max-width: 600px;
    margin: 0 auto;
}

.contacts-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    margin-bottom: 60px;
    align-items: stretch; /* Выравниваем высоту */
}

/* Карта - теперь с фиксированной высотой */
.contacts-map {
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
  /*  height: 550px; */ /* Высота левого блока */
    position: relative;
}

.map-container {
    width: 100%;
    height: 100%;
    position: relative;
}

.map-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

/* Наложение на карту */
.map-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(10, 10, 10, 0.9), transparent);
    padding: 30px 25px 20px;
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    z-index: 10;
}

.map-address {
    display: flex;
    align-items: center;
    gap: 10px;
    background: rgba(0, 152, 70, 0.15);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(0, 152, 70, 0.3);
    padding: 12px 20px;
    border-radius: 12px;
    color: white;
    font-weight: 500;
}

.map-address i {
    color: #009846;
    font-size: 18px;
}

.map-link {
    background: linear-gradient(135deg, #009846, #007c3a);
    color: white;
    text-decoration: none;
    padding: 12px 25px;
    border-radius: 12px;
    font-weight: 600;
    font-family: 'Unbounded', sans-serif;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.map-link:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 152, 70, 0.4);
}

/* Информация */
.contacts-details {
    display: flex;
    flex-direction: column;
    gap: 25px;
    height: 100%; /* Занимает всю доступную высоту */
}

.contact-detail {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    padding: 25px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: all 0.3s ease;
    flex: 1; /* Растягиваем элементы равномерно */
}

.contact-detail:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(0, 152, 70, 0.2);
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(0, 152, 70, 0.1);
}

.contact-detail-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #009846, #007c3a);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: all 0.3s ease;
}

.contact-detail:hover .contact-detail-icon {
    transform: scale(1.1) rotate(5deg);
}

.contact-detail-icon i {
    color: white;
    font-size: 20px;
}

.contact-detail-content {
    flex: 1;
}

.contact-detail-title {
    font-family: 'Unbounded', sans-serif;
    font-size: 1.1rem;
    font-weight: 600;
    color: #ffffff;
    margin-bottom: 10px;
}

.contact-detail-description {
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.6;
    font-size: 0.95rem;
}

.contact-detail-phones, .contact-detail-emails {
    display: flex;
    flex-direction: column;
    gap: 5px;
    margin-bottom: 10px;
}

.contact-detail-phone, .contact-detail-email {
    color: #009846;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    display: inline-block;
}

.contact-detail-phone:hover, .contact-detail-email:hover {
    color: #00cc5a;
    transform: translateX(5px);
}

.contact-detail-content a {
    color: #009846;
    text-decoration: none;
    transition: all 0.3s ease;
}

.contact-detail-content a:hover {
    color: #00cc5a;
    text-decoration: underline;
}

/* Отзывы */
.contacts-reviews {
    padding: 40px;
    background: rgba(255, 255, 255, 0.02);
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    text-align: center;
}

.contacts-reviews-title {
    font-family: 'Unbounded', sans-serif;
    font-size: 1.8rem;
    color: #ffffff;
    margin-bottom: 30px;
}

.contacts-reviews-platforms {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
}

.contacts-review-platform {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    padding: 25px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 16px;
    text-decoration: none;
    width: 140px;
    transition: all 0.3s ease;
    border: 1px solid transparent;
}

.contacts-review-platform:hover {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(0, 152, 70, 0.3);
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 15px 35px rgba(0, 152, 70, 0.15);
}

.contacts-platform-icon {
    width: 60px;
    height: 60px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.contacts-review-platform:hover .contacts-platform-icon {
    background: rgba(0, 152, 70, 0.1);
    transform: rotate(10deg);
}

.contacts-platform-icon i {
    color: #009846;
}

.contacts-platform-name {
    font-family: 'Unbounded', sans-serif;
    font-weight: 600;
    color: #ffffff;
    font-size: 1rem;
}

/* Адаптив */
@media (max-width: 1024px) {
    .contacts-grid {
        gap: 30px;
    }
    
    .contacts-map {
        height: 500px;
    }
    
    .contacts-title {
        font-size: 2.5rem;
    }
    
    .map-overlay {
        flex-direction: column;
        align-items: stretch;
        gap: 15px;
    }
    
    .map-address {
        justify-content: center;
        text-align: center;
    }
}

@media (max-width: 768px) {
    .contacts-section {
        padding: 80px 0;
    }
    
    .contacts-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .contacts-map {
        height: 400px;
        order: 2;
    }
    
    .contacts-details {
        order: 1;
    }
    
    .contacts-title {
        font-size: 2.2rem;
    }
    
    .contact-detail {
        padding: 20px;
        gap: 15px;
    }
    
    .contact-detail-icon {
        width: 45px;
        height: 45px;
    }
    
    .contact-detail-icon i {
        font-size: 18px;
    }
    
    .contacts-reviews-platforms {
        gap: 20px;
    }
    
    .contacts-review-platform {
        width: 120px;
        padding: 20px;
    }
}

@media (max-width: 480px) {
    .contacts-section {
        padding: 60px 0;
    }
    
    .contacts-title {
        font-size: 2rem;
    }
    
    .contacts-map {
        height: 350px;
    }
    
    .contact-detail {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    
    .contact-detail-icon {
        align-self: center;
    }
    
    .contacts-reviews-platforms {
        gap: 15px;
    }
    
    .contacts-review-platform {
        width: calc(50% - 10px);
        padding: 15px;
    }
    
    .map-overlay {
        padding: 20px 15px 15px;
    }
    
    .map-address {
        padding: 10px 15px;
        font-size: 0.9rem;
    }
    
    .map-link {
        padding: 10px 20px;
        font-size: 0.85rem;
    }
}