/* ========== КОНТАКТЫ В СТИЛЕ САЙТА ========== */
:root {
    --primary-green: #00B707;
    --primary-dark: #222222;
    --dark-gray: #666666;
}

.contacts-section-modern {
    padding: 60px 0 40px;
    background: linear-gradient(135deg, 
        #ffffff 0%,
        #f8fafc 25%,
        #ffffff 75%,
        #f0f9ff 100%);
    position: relative;
    overflow: hidden;
    isolation: isolate;
}

.contacts-section-header {
    text-align: center;
    margin-bottom: 40px;
    position: relative;
    z-index: 2;
}

.contacts-section-modern .section-title {
    font-size: 2.5rem;
    font-weight: 800;
    line-height: 1.2;
    text-align: center;
    margin-bottom: 16px;
    background: linear-gradient(135deg, #222222 0%, var(--primary-green) 50%, #222222 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    background-size: 200% auto;
    animation: gradientText 8s ease infinite;
}

.contacts-section-modern .section-subtitle {
    font-size: 1.125rem;
    color: var(--dark-gray);
    line-height: 1.5;
    font-weight: 400;
    max-width: 500px;
    margin: 0 auto;
    opacity: 0.9;
}

/* Сетка контактов */
.contacts-modern-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 30px;
    align-items: stretch;
    position: relative;
    z-index: 2;
}

/* Карта */
.contacts-map-container {
    height: 100%;
    min-height: 400px;
}

.map-wrapper {
    height: 100%;
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 
        0 15px 40px rgba(0, 183, 7, 0.06),
        0 5px 20px rgba(0, 183, 7, 0.03);
    border: 1px solid rgba(0, 183, 7, 0.1);
}

.map-wrapper iframe {
    width: 100%;
    height: 100%;
    min-height: 400px;
    border: 0;
}

/* Контактная информация */
.contacts-info-container {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.contacts-info-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
    flex: 1;
}

.contact-info-card {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 16px;
    padding: 20px;
    display: flex;
    align-items: flex-start;
    gap: 16px;
    transition: all 0.3s ease;
    border: 1px solid rgba(0, 183, 7, 0.12);
    position: relative;
    overflow: hidden;
}

.contact-info-card:hover {
    transform: translateY(-4px);
    box-shadow: 
        0 15px 35px rgba(0, 183, 7, 0.1),
        0 5px 15px rgba(0, 183, 7, 0.05);
    border-color: rgba(0, 183, 7, 0.25);
}

.contact-info-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, 
        rgba(0, 183, 7, 0.03) 0%, 
        rgba(41, 128, 185, 0.03) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.contact-info-card:hover::before {
    opacity: 1;
}

.contact-info-icon {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, #00B707 0%, #008a05 100%);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.25rem;
    flex-shrink: 0;
    transition: all 0.3s ease;
    box-shadow: 0 8px 20px rgba(0, 183, 7, 0.2);
}

.contact-info-card:hover .contact-info-icon {
    transform: rotate(5deg) scale(1.05);
    box-shadow: 0 10px 25px rgba(0, 183, 7, 0.3);
}

.contact-info-content {
    flex: 1;
}

.contact-info-label {
    font-size: 0.8125rem;
    color: var(--dark-gray);
    margin-bottom: 4px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.4px;
}

.contact-info-value {
    font-size: 1rem;
    color: var(--primary-dark);
    font-weight: 600;
    text-decoration: none;
    transition: color 0.2s ease;
    line-height: 1.4;
}

.contact-info-value:hover {
    color: var(--primary-green);
}

.contact-info-value p {
    margin: 0;
    line-height: 1.4;
    font-size: 0.9375rem;
    color: var(--primary-dark);
}

.office-note {
    color: var(--primary-green);
    font-weight: 600;
    font-size: 0.875rem;
    margin-top: 2px;
}

/* Мессенджеры - единый стиль как в шапке */
.messengers-card .contact-info-content {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.messengers-buttons {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

/* Стили кнопок-иконок (как в шапке) */
.messenger-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border-radius: 12px;
    background: white;
    color: var(--primary-dark);
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-size: 18px;
    border: 1px solid rgba(0, 183, 7, 0.15);
    box-shadow: 0 4px 15px rgba(0, 183, 7, 0.08), 0 2px 8px rgba(0, 183, 7, 0.04);
    position: relative;
    overflow: hidden;
}

.messenger-link .fa-telegram-plane {
    color: #0088cc;
    transition: color 0.3s ease;
}

.messenger-link:hover {
    background: linear-gradient(135deg, var(--primary-green) 0%, #00B707 100%);
    color: white;
    transform: translateY(-2px) scale(1.05);
    box-shadow: 0 8px 25px rgba(0, 183, 7, 0.2), 0 4px 15px rgba(0, 183, 7, 0.1);
    border-color: transparent;
}

.messenger-link:hover .fa-telegram-plane {
    color: white;
}

/* Стили для Max иконок (две картинки) */
.messenger-link .max-icon,
.messenger-link .max-icon-hover {
    width: 20px;
    height: 20px;
    object-fit: contain;
    transition: all 0.3s ease;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.messenger-link .max-icon-hover {
    opacity: 0;
}

.messenger-link:hover .max-icon {
    opacity: 0;
}

.messenger-link:hover .max-icon-hover {
    opacity: 1;
}

/* CTA в контактах */
.contacts-cta {
    margin-top: 30px;
    text-align: center;
}

.contacts-cta .btn-primary {
    width: 100%;
    justify-content: center;
    padding: 16px 24px;
    font-size: 1rem;
    background: linear-gradient(135deg, var(--primary-green) 0%, #008a05 100%);
    border-radius: 40px;
    box-shadow: 0 8px 20px rgba(0, 183, 7, 0.2);
}

/* ========== КОМПАКТНЫЙ ПОДВАЛ ========== */
.footer-compact {
    background: var(--primary-dark);
    color: rgba(255, 255, 255, 0.7);
    padding: 20px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.footer-left {
    display: flex;
    flex-direction: column;
    gap: 8px;
    flex: 1;
}

.footer-first-line {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.85);
}

.footer-year {
    font-weight: 400;
    color: rgba(255, 255, 255, 0.6);
}

.footer-copyright {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.5);
    display: flex;
    align-items: center;
}

.footer-company-name {
    font-weight: 600;
    color: white;
}

.footer-second-line {
    display: flex;
}

.footer-documents {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
}

.footer-doc-link {
    color: rgba(255, 255, 255, 0.6);
    text-decoration: none;
    font-size: 13px;
    transition: all 0.2s ease;
    padding: 2px 0;
    position: relative;
    font-weight: 400;
}

.footer-doc-link:hover {
    color: white;
}

.footer-doc-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--primary-green);
    transition: width 0.3s ease;
}

.footer-doc-link:hover::after {
    width: 100%;
}

.footer-separator {
    color: rgba(255, 255, 255, 0.2);
    font-size: 11px;
    line-height: 1;
}

.footer-right {
    display: flex;
    justify-content: flex-end;
    flex-shrink: 0;
}

.developer-credit {
    display: flex;
    align-items: center;
}

.dev-link {
    text-decoration: none;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 15px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.dev-link:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.15);
    transform: translateY(-2px);
}

.dev-text {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.5);
    letter-spacing: 0.2px;
}

.dev-code {
    color: #FF5E14;
    font-weight: 700;
    font-size: 13px;
    opacity: 0.8;
}

.dev-magic {
    font-style: italic;
}

.dev-name {
    display: flex;
    align-items: baseline;
    gap: 3px;
    font-weight: 800;
    font-size: 15px;
    letter-spacing: -0.2px;
}

.dev-name-prom {
    color: white;
}

.dev-name-separator {
    color: rgba(255, 255, 255, 0.2);
    font-weight: 300;
}

.dev-name-digital {
    color: #FF5E14;
    font-weight: 800;
}

/* ========== АДАПТИВНОСТЬ ========== */
@media (max-width: 1200px) {
    .contacts-section-modern .section-title {
        font-size: 2.2rem;
    }
    
    .contacts-modern-grid {
        gap: 25px;
    }
}

@media (max-width: 992px) {
    .contacts-section-modern {
        padding: 50px 0 30px;
    }
    
    .contacts-section-modern .section-title {
        font-size: 2rem;
    }
    
    .contacts-section-modern .section-subtitle {
        font-size: 1rem;
    }
    
    .contacts-modern-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .contacts-map-container {
        min-height: 350px;
    }
    
    .map-wrapper iframe {
        min-height: 350px;
    }
    
    .footer-content {
        flex-direction: column;
        align-items: flex-start;
        gap: 20px;
    }
    
    .footer-left {
        width: 100%;
    }
    
    .footer-right {
        justify-content: flex-start;
        width: 100%;
    }
    
    .developer-credit {
        width: 100%;
    }
    
    .dev-link {
        width: 100%;
        justify-content: space-between;
    }
}

@media (max-width: 768px) {
    .contacts-section-modern .section-title {
        font-size: 1.75rem;
    }
    
    .contact-info-card {
        padding: 18px;
    }
    
    .contact-info-icon {
        width: 42px;
        height: 42px;
        font-size: 1.125rem;
    }
    
    .contact-info-value {
        font-size: 0.9375rem;
    }
    
    .messengers-buttons {
        gap: 8px;
    }
    
    .messenger-link {
        width: 38px;
        height: 38px;
        font-size: 16px;
    }
    
    .footer-compact {
        padding: 18px 0;
    }
    
    .footer-first-line {
        font-size: 13px;
        flex-wrap: wrap;
        gap: 6px;
    }
    
    .footer-documents {
        flex-direction: column;
        align-items: flex-start;
        gap: 5px;
    }
    
    .footer-separator {
        display: none;
    }
    
    .footer-doc-link {
        font-size: 12px;
    }
    
    .dev-text {
        font-size: 11px;
    }
    
    .dev-name {
        font-size: 14px;
    }
}

@media (max-width: 480px) {
    .contacts-section-modern {
        padding: 40px 0 20px;
    }
    
    .contacts-section-modern .section-title {
        font-size: 1.5rem;
    }
    
    .contact-info-card {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }
    
    .contacts-cta .btn-primary {
        padding: 14px 20px;
        font-size: 0.9375rem;
    }
}