/* ==================== CONTACTS MODERN STYLES ==================== */

/* Hero Section */
.contacts-hero {
    position: relative;
    height: 60vh;
    min-height: 400px;
    max-height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.7) 0%, rgba(0, 0, 0, 0.5) 100%),
                url('./1762096265733.jpg') center/cover no-repeat;
    margin-top: 80px;
    overflow: hidden;
}

.contacts-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at center, rgba(212, 175, 55, 0.1) 0%, transparent 70%);
    pointer-events: none;
}

.contacts-hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: #fff;
    padding: 40px 20px;
}

.contacts-hero-title {
    font-size: clamp(48px, 8vw, 96px);
    font-weight: 700;
    letter-spacing: 8px;
    margin-bottom: 20px;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
    animation: fadeInUp 0.8s ease;
}

.contacts-hero-subtitle {
    font-size: clamp(18px, 3vw, 24px);
    font-weight: 300;
    letter-spacing: 2px;
    opacity: 0.9;
    animation: fadeInUp 0.8s ease 0.2s both;
}

.contacts-hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.3) 0%, rgba(0, 0, 0, 0.6) 100%);
    z-index: 1;
}

/* Contacts Section */
.contacts-section {
    padding: 80px 20px;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.85) 0%, rgba(0, 0, 0, 0.7) 100%),
                url('./1762096265733.jpg') center/cover no-repeat;
    min-height: 60vh;
    position: relative;
    overflow: hidden;
}

.contacts-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background: 
        radial-gradient(ellipse 1400px 900px at 30% 20%, rgba(212, 175, 55, 0.12) 0%, transparent 60%),
        radial-gradient(ellipse 1200px 700px at 70% 80%, rgba(184, 134, 11, 0.1) 0%, transparent 50%);
    pointer-events: none;
    z-index: 0;
    animation: contactsSectionGlow 15s ease-in-out infinite;
}

@keyframes contactsSectionGlow {
    0%, 100% { 
        opacity: 0.8; 
        transform: scale(1) translate(0, 0);
    }
    50% { 
        opacity: 1; 
        transform: scale(1.05) translate(20px, -15px);
    }
}

.contacts-container {
    max-width: 1400px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.contacts-wrapper {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 50px;
    margin-bottom: 80px;
    position: relative;
    z-index: 1;
}

/* Map */
.contacts-map {
    position: relative;
    height: 700px;
    border-radius: 25px;
    overflow: hidden;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.6),
                0 0 0 1px rgba(212, 175, 55, 0.3);
    background: #000;
}

.map-frame {
    width: 100%;
    height: 100%;
}

.map-frame iframe {
    width: 100%;
    height: 100%;
    border: none;
}

.map-overlay-info {
    position: absolute;
    bottom: 30px;
    left: 30px;
    background: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(20px);
    padding: 25px 30px;
    border-radius: 20px;
    border: 1px solid rgba(212, 175, 55, 0.4);
    display: flex;
    align-items: center;
    gap: 20px;
    max-width: calc(100% - 60px);
    box-shadow: 0 10px 40px rgba(212, 175, 55, 0.2);
    z-index: 10;
}

.map-marker-icon {
    font-size: 40px;
    animation: bounceMarker 2s infinite;
}

@keyframes bounceMarker {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.map-info-content h3 {
    font-size: 22px;
    margin-bottom: 8px;
    letter-spacing: 2px;
    color: #d4af37;
    font-weight: 700;
}

.map-info-content p {
    font-size: 16px;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 12px;
}

.map-link {
    color: #d4af37;
    text-decoration: none;
    font-size: 14px;
    letter-spacing: 1px;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    transition: all 0.3s ease;
    font-weight: 600;
}

.map-link:hover {
    color: #f4e5b5;
    gap: 10px;
}

/* Contact Cards */
.contacts-info {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.contact-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(212, 175, 55, 0.2);
    border-radius: 20px;
    padding: 30px;
    display: flex;
    gap: 20px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    backdrop-filter: blur(10px);
    opacity: 0;
    animation: fadeInUp 0.6s ease forwards;
}

.contact-card:nth-child(1) { animation-delay: 0.1s; }
.contact-card:nth-child(2) { animation-delay: 0.2s; }
.contact-card:nth-child(3) { animation-delay: 0.3s; }

.contact-card:hover {
    transform: translateY(-5px);
    border-color: rgba(212, 175, 55, 0.5);
    box-shadow: 0 15px 35px rgba(212, 175, 55, 0.2);
    background: rgba(255, 255, 255, 0.05);
}

.contact-card-icon {
    width: 60px;
    height: 60px;
    background: rgba(212, 175, 55, 0.15);
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    flex-shrink: 0;
    border: 1px solid rgba(212, 175, 55, 0.3);
}

.contact-card-content {
    flex: 1;
}

.contact-card-title {
    font-size: 22px;
    font-weight: 700;
    color: #d4af37;
    margin-bottom: 15px;
    letter-spacing: 1px;
}

.contact-card-main {
    font-size: 20px;
    font-weight: 600;
    color: #fff;
    margin-bottom: 5px;
}

.contact-card-main a {
    color: #fff;
    text-decoration: none;
    transition: color 0.3s ease;
}

.contact-card-main a:hover {
    color: #d4af37;
}

.contact-card-detail {
    font-size: 15px;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 10px;
    line-height: 1.6;
}

.contact-route-buttons {
    display: flex;
    gap: 10px;
    margin-top: 15px;
    flex-wrap: wrap;
}

.contact-route-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    background: rgba(212, 175, 55, 0.1);
    border: 1px solid rgba(212, 175, 55, 0.3);
    border-radius: 25px;
    color: rgba(255, 255, 255, 0.9);
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
}

.contact-route-btn:hover {
    background: rgba(212, 175, 55, 0.2);
    border-color: rgba(212, 175, 55, 0.5);
    transform: translateY(-2px);
}

.contact-route-btn svg {
    width: 18px;
    height: 18px;
}

.contact-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: rgba(212, 175, 55, 0.15);
    border-radius: 20px;
    border: 1px solid rgba(212, 175, 55, 0.3);
    margin-top: 15px;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.9);
    font-weight: 600;
}

.contact-badge-dot {
    width: 8px;
    height: 8px;
    background: #d4af37;
    border-radius: 50%;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
        transform: scale(1);
    }
    50% {
        opacity: 0.5;
        transform: scale(1.2);
    }
}

.contact-badge svg {
    width: 16px;
    height: 16px;
}

/* Directions Section */
.directions-section {
    margin-top: 60px;
}

.directions-title {
    font-size: 36px;
    font-weight: 700;
    color: #fff;
    text-align: center;
    margin-bottom: 50px;
    letter-spacing: 2px;
}

.directions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.direction-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(212, 175, 55, 0.2);
    border-radius: 20px;
    padding: 35px;
    text-align: center;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    backdrop-filter: blur(10px);
    opacity: 0;
    animation: fadeInUp 0.6s ease forwards;
}

.direction-card:nth-child(1) { animation-delay: 0.1s; }
.direction-card:nth-child(2) { animation-delay: 0.2s; }
.direction-card:nth-child(3) { animation-delay: 0.3s; }
.direction-card:nth-child(4) { animation-delay: 0.4s; }

.direction-card:hover {
    transform: translateY(-10px);
    border-color: rgba(212, 175, 55, 0.5);
    box-shadow: 0 15px 35px rgba(212, 175, 55, 0.2);
    background: rgba(255, 255, 255, 0.05);
}

.direction-icon {
    font-size: 48px;
    margin-bottom: 20px;
    display: block;
}

.direction-title {
    font-size: 20px;
    font-weight: 700;
    color: #d4af37;
    margin-bottom: 15px;
    letter-spacing: 1px;
}

.direction-text {
    font-size: 16px;
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.7;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive */
@media (max-width: 1024px) {
    .contacts-wrapper {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .contacts-map {
        height: 500px;
    }
}

@media (max-width: 768px) {
    .contacts-hero {
        height: 50vh;
        min-height: 300px;
    }

    .contacts-hero-title {
        font-size: 40px;
        letter-spacing: 4px;
    }

    .contacts-hero-subtitle {
        font-size: 16px;
    }

    .contacts-section {
        padding: 60px 20px;
    }
    
    .contacts-section::before {
        background: 
            radial-gradient(ellipse 800px 600px at 30% 20%, rgba(212, 175, 55, 0.1) 0%, transparent 60%),
            radial-gradient(ellipse 700px 500px at 70% 80%, rgba(184, 134, 11, 0.08) 0%, transparent 50%);
    }

    .contacts-map {
        height: 400px;
    }

    .map-overlay-info {
        bottom: 15px;
        left: 15px;
        padding: 20px;
        max-width: calc(100% - 30px);
    }

    .map-info-content h3 {
        font-size: 18px;
    }

    .contact-card {
        padding: 25px 20px;
    }

    .contact-card-icon {
        width: 50px;
        height: 50px;
        font-size: 24px;
    }

    .contact-card-title {
        font-size: 20px;
    }

    .directions-title {
        font-size: 28px;
    }

    .directions-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
}

@media (max-width: 480px) {
    .contacts-hero {
        height: 40vh;
        min-height: 250px;
    }

    .contacts-section {
        padding: 40px 15px;
    }

    .contacts-map {
        height: 350px;
    }

    .map-overlay-info {
        flex-direction: column;
    }
    
    /* Улучшаем touch targets */
    .contact-card {
        touch-action: manipulation;
    }
    
    .map-link {
        min-height: 44px !important;
        display: inline-flex !important;
        align-items: center !important;
    }
}

/* Оптимизация для очень маленьких экранов */
@media (max-width: 375px) {
    .contacts-hero-title {
        font-size: 36px !important;
    }
    
    .contacts-section {
        padding: 30px 12px !important;
    }
    
    .contacts-map {
        height: 300px !important;
    }
        text-align: center;
        padding: 15px;
    }

    .map-marker-icon {
        font-size: 32px;
    }

    .contact-card {
        flex-direction: column;
        text-align: center;
    }

    .contact-route-buttons {
        justify-content: center;
    }

    .direction-card {
        padding: 25px 20px;
    }
}







