/* Секция "Контакты" */
.contacts-section {
    padding: 80px 0 5rem 0;
    background: white;
    position: relative;
    overflow: hidden;
}

.contacts-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.contacts-header {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    margin-bottom: 60px;
    align-items: start;
}

.contacts-left {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.contacts-badge {
    display: inline-block;
    background: #2160FE;
    color: white;
    padding: 8px 20px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    width: fit-content;
}

.contacts-title {
    font-size: 48px;
    font-weight: 700;
    line-height: 1.2;
    color: #1a1a1a;
    margin: 0;
}

.contacts-description {
    font-size: 16px;
    line-height: 1.6;
    color: #666;
    margin: 0;
}

.contacts-right {
    display: flex;
    justify-content: flex-end;
}

.contacts-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    max-width: 500px;
}

.contact-card {
    background: #2160FE;
    color: white;
    padding: 24px 20px;
    border-radius: 12px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    cursor: pointer;
}

.contact-card:nth-child(1)::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url('../landing/assets/contacts/card-l-top.svg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    z-index: 0;
}

.contact-card:nth-child(2)::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url('../landing/assets/contacts/card-r-top.svg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    z-index: 0;
}

.contact-card:nth-child(3)::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url('../landing/assets/contacts/card-l-bottom.svg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    z-index: 0;
}

.contact-card:nth-child(4)::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url('../landing/assets/contacts/card-r-bottom.svg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    z-index: 0;
}

.contact-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0.05) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 1;
}

.contact-card:hover::before {
    opacity: 1;
}

.contact-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(33, 96, 254, 0.3);
    background-size: 110%;
}

.contact-card-title {
    font-size: 14px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.8);
    margin: 0 0 8px 0;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    position: relative;
    z-index: 3;
}

.contact-card-content {
    font-size: 16px;
    font-weight: 500;
    color: white;
    margin: 0;
    line-height: 1.4;
    position: relative;
    z-index: 3;
}

.contact-messengers {
    display: flex;
    gap: 12px;
    align-items: center;
    position: relative;
    z-index: 3;
}

.messenger-link {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    text-decoration: none;
    border: 2px solid white;
    background: transparent;
    color: white;
    position: relative;
}

.messenger-link:hover {
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(255, 255, 255, 0.3);
}

.messenger-link.Telegram:hover {
    background: #2AABEE;
    border-color: #2AABEE;
}

.messenger-link.telegram:hover {
    background: #2AABEE;
    border-color: #2AABEE;
}

.messenger-link img {
    width: 20px;
    height: 20px;
    display: block;
}

.messenger-link .icon-telegram-blue {
    display: block !important;
    position: absolute;
}

.messenger-link .icon-telegram-white {
    display: none !important;
    position: absolute;
}

.messenger-link:hover .icon-telegram-blue {
    display: none !important;
}

.messenger-link:hover .icon-telegram-white {
    display: block !important;
}

.messenger-link.telegram-white-only .icon-telegram-blue,
.messenger-link.telegram-white-only:hover .icon-telegram-blue {
    display: none !important;
}

.messenger-link.telegram-white-only .icon-telegram-white,
.messenger-link.telegram-white-only:hover .icon-telegram-white {
    display: block !important;
}

.contacts-map {
    width: 100%;
    height: auto;
    min-height: 350px;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

.map-container {
    width: 100%;
    height: auto;
    min-height: 350px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Стили для кнопки карты на мобильных устройствах */
.map-container .container {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100%;
    padding: 20px;
}

.map-container .btn {
    background: #2160FE;
    color: white;
    padding: 12px 24px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.map-container .btn:hover {
    background: #1a4fd4;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(33, 96, 254, 0.3);
}

/* Адаптивность */
@media (max-width: 1024px) {
    .contacts-header {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .contacts-title {
        font-size: 36px;
    }
    
    .contacts-right {
        justify-content: flex-start;
    }
    
    .contacts-grid {
        max-width: 100%;
    }
}

@media (max-width: 768px) {
    .contacts-section {
        padding: 60px 0 5rem 0;
    }
    
    .contacts-container {
        padding: 0 15px;
    }
    
    .contacts-header {
        gap: 30px;
        margin-bottom: 40px;
    }
    
    .contacts-title {
        font-size: 28px;
    }
    
    .contacts-grid {
        grid-template-columns: 1fr;
        gap: 16px;
        width: 100%;
        max-width: 100%;
    }
    
    .contact-card {
        padding: 20px 16px;
        cursor: pointer;
    }
    
    .contacts-map {
        min-height: 250px;
    }
}

@media (max-width: 480px) {
    .contacts-title {
        font-size: 24px;
    }
    
    .contacts-description {
        font-size: 14px;
    }
    
    .contact-card {
        padding: 16px 12px;
    }
    
    .contact-card-title {
        font-size: 12px;
    }
    
    .contact-card-content {
        font-size: 14px;
    }
    
    .contacts-map {
        min-height: 200px;
    }
}

