/* contact.css - стили для страницы "Контакты" */

/* Hero секция */
.contact-hero {
    position: relative;
    height: 25vh;
    min-height: 250px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
    margin-top: 85px;
    overflow: hidden;
}

.contact-hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    z-index: 1;
}

.contact-hero-bg::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('images/pattern-map.svg') repeat;
    opacity: 0.1;
    z-index: 1;
}

.contact-hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    z-index: 2;
}

.contact-hero-content {
	text-align: center;
    margin: 0 auto;
    position: relative;
    z-index: 3;
    max-width: 800px;
    padding: 0 20px;
}

.contact-hero-title {
    font-size: 3.2rem;
    font-weight: 800;
    margin-bottom: 20px;
    text-shadow: 2px 2px 5px rgba(0, 0, 0, 0.5);
    animation: fadeInDown 1s ease;
}

.contact-hero-subtitle {
    font-size: 1.3rem;
    font-weight: 300;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
    color: #f0f0f0;
    animation: fadeInUp 1s ease;
}

/* Основная секция */
.contact-section {
    padding: 60px 0;
    background-color: #f8f9fa;
}

/* Сетка контактов */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    margin-top: 40px;
}

/* Карточка контактной информации */
.contact-info-card {
    background-color: white;
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    border: 1px solid #f0f0f0;
}

.contact-info-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 50px rgba(83, 154, 60, 0.1);
    border-color: rgba(83, 154, 60, 0.3);
}

.contact-info-header {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 30px;
}

.contact-icon-large {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    background: linear-gradient(135deg, #539a3c, #f3932F);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: white;
    box-shadow: 0 10px 20px rgba(83, 154, 60, 0.2);
}

.contact-info-header h3 {
    font-size: 1.6rem;
    font-weight: 700;
    color: #222;
}

/* Детали контактов */
.contact-details {
    margin-bottom: 30px;
}

.contact-item {
    display: flex;
    gap: 20px;
    padding: 20px 0;
    border-bottom: 1px solid #f0f0f0;
    transition: all 0.3s ease;
}

.contact-item:hover {
    background-color: #f8fff8;
    padding-left: 15px;
    margin-left: -15px;
    padding-right: 15px;
    margin-right: -15px;
    border-radius: 12px;
}

.contact-item:last-child {
    border-bottom: none;
}

.contact-item-icon {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: linear-gradient(135deg, #539a3c20, #f3932F20);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    color: #539a3c;
    flex-shrink: 0;
    transition: all 0.3s ease;
}

.contact-item:hover .contact-item-icon {
    background: linear-gradient(135deg, #539a3c, #f3932F);
    color: white;
    transform: scale(1.1);
}

.contact-item-content {
    display: flex;
    flex-direction: column;
}

.contact-item-label {
    font-weight: 600;
    color: #444;
    margin-bottom: 5px;
    font-size: 0.95rem;
}

.contact-item-value {
    font-size: 1.1rem;
    color: #222;
}

.contact-item-value a {
    color: #539a3c;
    text-decoration: none;
    transition: color 0.3s ease;
    font-weight: 500;
}

.contact-item-value a:hover {
    color: #d94430;
    text-decoration: underline;
}

/* Примечание */
.contact-note {
    margin-top: 30px;
    padding: 25px;
    background: linear-gradient(135deg, #f0f7f0, #ffffff);
    border-radius: 12px;
    border-left: 5px solid #539a3c;
    font-style: italic;
}

.contact-note p {
    color: #444;
    line-height: 1.6;
    font-size: 1.05rem;
}

/* Карточка карты */
.contact-map-card {
    background-color: white;
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    border: 1px solid #f0f0f0;
    display: flex;
    flex-direction: column;
}

.contact-map-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 50px rgba(83, 154, 60, 0.1);
    border-color: rgba(83, 154, 60, 0.3);
}

.map-header {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 25px;
}

.map-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, #f3932F20, #d9443020);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    color: #f3932F;
}

.map-header h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: #222;
}

.map-container {
    width: 100%;
    height: 350px;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    margin-bottom: 20px;
}

.map-note {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 15px 20px;
    background-color: #f8f9fa;
    border-radius: 8px;
    color: #666;
    font-size: 0.95rem;
}

.map-note i {
    color: #539a3c;
    font-size: 1.1rem;
}

/* Быстрые контакты */
.quick-contacts {
    display: flex;
    justify-content: center;
    gap: 40px;
    margin-top: 50px;
    padding: 30px;
    background-color: white;
    border-radius: 16px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.03);
    flex-wrap: wrap;
}

.quick-contact-item {
    display: flex;
    align-items: center;
    gap: 15px;
}

.quick-contact-icon {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: linear-gradient(135deg, #539a3c20, #f3932F20);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    color: #539a3c;
    transition: all 0.3s ease;
}

.quick-contact-item:hover .quick-contact-icon {
    background: linear-gradient(135deg, #539a3c, #f3932F);
    color: white;
    transform: scale(1.1);
}

.quick-contact-link {
    text-decoration: none;
    color: #444;
    font-weight: 600;
    font-size: 1.1rem;
    transition: color 0.3s ease;
}

.quick-contact-link:hover {
    color: #539a3c;
}

/* Анимации */
@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Адаптивность */
@media (max-width: 992px) {
    .contact-hero-title {
        font-size: 2.8rem;
    }
    
    .contact-hero-subtitle {
        font-size: 1.2rem;
    }
    
    .contact-grid {
        grid-template-columns: 1fr;
    }
    
    .contact-info-card,
    .contact-map-card {
        padding: 30px;
    }
}

@media (max-width: 768px) {
    .contact-hero {
        margin-top: 80px;
    }
    
    .contact-hero-title {
        font-size: 2.2rem;
    }
    
    .contact-hero-subtitle {
        font-size: 1.1rem;
    }
    
    .contact-info-header {
        flex-direction: column;
        text-align: center;
    }
    
    .contact-info-header h3 {
        font-size: 1.4rem;
    }
    
    .contact-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .map-container {
        height: 300px;
    }
    
    .quick-contacts {
        flex-direction: column;
        align-items: center;
        gap: 20px;
    }
}

@media (max-width: 576px) {
    .contact-hero-title {
        font-size: 1.8rem;
    }
    
    .contact-hero-subtitle {
        font-size: 1rem;
    }
    
    .contact-info-card,
    .contact-map-card {
        padding: 25px 20px;
    }
    
    .contact-icon-large {
        width: 60px;
        height: 60px;
        font-size: 1.6rem;
    }
    
    .contact-item-value {
        font-size: 1rem;
    }
    
    .map-container {
        height: 250px;
    }
}