/* Основные стили для страницы контактов */
.contacts-hero {
    padding: 120px 0;
    color: white;
    text-align: center;
    background-size: cover;
    background-position: center;
    position: relative;
}

.contacts-hero h1 {
    font-size: 3rem;
    margin-bottom: 20px;
    font-family: 'Playfair Display', serif;
}

.contacts-hero p {
    font-size: 1.2rem;
    max-width: 700px;
    margin: 0 auto;
}

.hero-icon {
    margin-right: 15px;
}

/* Основная секция контактов */
.contacts-main-section {
    padding: 80px 0;
}

.contacts-wrapper {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
}

.contacts-info {
    flex: 1;
    min-width: 300px;
}

.contacts-form {
    flex: 1;
    min-width: 300px;
}

.section-header {
    margin-bottom: 40px;
    text-align: center;
}

.section-header h2 {
    font-size: 2rem;
    color: #333;
    margin-bottom: 15px;
    font-family: 'Playfair Display', serif;
}

.section-header p {
    color: #666;
    font-size: 1.1rem;
}

/* Карточки контактов */
.contact-cards {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
    margin-bottom: 40px;
}

.contact-card {
    display: flex;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    padding: 25px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.contact-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
}

.contact-icon {
    font-size: 1.8rem;
    color: #2c7be5;
    margin-right: 20px;
    min-width: 40px;
    text-align: center;
}

.contact-content h3 {
    font-size: 1.3rem;
    margin-bottom: 10px;
    color: #333;
}

.contact-content address,
.contact-content p,
.contact-content a {
    color: #555;
    line-height: 1.6;
    margin-bottom: 5px;
    font-style: normal;
}

.contact-content a {
    color: #2c7be5;
    text-decoration: none;
    transition: color 0.3s;
}

.contact-content a:hover {
    color: #1a5cb0;
    text-decoration: underline;
}

/* Социальные иконки */
.social-links {
    display: flex;
    gap: 10px;
    margin: 15px 0;
}

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    color: white;
    font-size: 1.2rem;
    transition: transform 0.3s ease;
}

.social-link:hover {
    transform: translateY(-3px);
}

.social-link.vk { background-color: #4a76a8; }
.social-link.tg { background-color: #2aabee; }
.social-link.inst { background-color: #e4405f; }
.social-link.yt { background-color: #cd201f; }
.social-link.wa { background-color: #25d366; }

/* Дополнительная информация */
.additional-info {
    background: #f8f9fa;
    border-left: 4px solid #2c7be5;
    padding: 20px;
    border-radius: 0 8px 8px 0;
}

.additional-info h3 {
    color: #333;
    margin-bottom: 15px;
    font-size: 1.2rem;
}

.additional-info p {
    color: #555;
    margin-bottom: 10px;
    line-height: 1.6;
}

/* Форма обратной связи */
.form-container {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    padding: 30px;
}

.form-header {
    text-align: center;
    margin-bottom: 30px;
}

.form-header h2 {
    font-size: 1.8rem;
    color: #333;
    margin-bottom: 10px;
    font-family: 'Playfair Display', serif;
}

.form-header p {
    color: #666;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: #555;
    font-weight: 500;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 1rem;
    transition: border-color 0.3s;
    font-family: 'Montserrat', sans-serif;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: #2c7be5;
    outline: none;
}

.form-group textarea {
    min-height: 150px;
    resize: vertical;
}

.checkbox-group {
    display: flex;
    align-items: center;
}

.checkbox-group input {
    width: auto;
    margin-right: 10px;
}

.checkbox-group label {
    margin-bottom: 0;
    font-weight: normal;
}

.checkbox-group a {
    color: #2c7be5;
    text-decoration: none;
}

.checkbox-group a:hover {
    text-decoration: underline;
}

.btn {
    display: inline-block;
    padding: 12px 25px;
    border-radius: 4px;
    font-size: 1rem;
    font-weight: 500;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s;
    border: none;
    font-family: 'Montserrat', sans-serif;
}

.btn-primary {
    background-color: #2c7be5;
    color: white;
}

.btn-primary:hover {
    background-color: #1a5cb0;
}

.btn-block {
    display: block;
    width: 100%;
}

/* Секция с картой */
.map-section {
    padding: 60px 0;
    background-color: #f8f9fa;
}

.map-container {
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    margin-bottom: 30px;
}

.map-notes {
    background: #fff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

.map-notes p {
    margin-bottom: 10px;
    color: #555;
    display: flex;
    align-items: center;
}

.map-notes i {
    margin-right: 10px;
    color: #2c7be5;
}

/* CTA секция */
.cta-section {
    padding: 60px 0;
}

.cta-content {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.cta-content h2 {
    font-size: 2rem;
    margin-bottom: 20px;
    color: #333;
    font-family: 'Playfair Display', serif;
}

.cta-content p {
    font-size: 1.2rem;
    color: #555;
    margin-bottom: 30px;
}

.cta-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.btn-call {
    background-color: #28a745;
    color: white;
}

.btn-call:hover {
    background-color: #218838;
}

/* Модальные окна */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
}

.modal-content {
    background-color: #fff;
    margin: 10% auto;
    padding: 30px;
    border-radius: 8px;
    max-width: 500px;
    position: relative;
    animation: modalopen 0.4s;
}

@keyframes modalopen {
    from {opacity: 0; transform: translateY(-50px);}
    to {opacity: 1; transform: translateY(0);}
}

.close-modal {
    position: absolute;
    top: 15px;
    right: 15px;
    font-size: 1.5rem;
    color: #aaa;
    cursor: pointer;
}

.close-modal:hover {
    color: #333;
}

.modal-success {
    text-align: center;
    padding: 20px;
}

.modal-success i {
    font-size: 4rem;
    color: #28a745;
    margin-bottom: 20px;
}

.modal-success h3 {
    font-size: 1.8rem;
    margin-bottom: 15px;
    color: #333;
}

.modal-success p {
    color: #555;
    margin-bottom: 25px;
    font-size: 1.1rem;
}

/* Адаптивность */
@media (max-width: 992px) {
    .contacts-wrapper {
        flex-direction: column;
    }
    
    .contacts-info,
    .contacts-form {
        width: 100%;
    }
}

@media (max-width: 768px) {
    .contacts-hero {
        padding: 80px 0;
    }
    
    .contacts-hero h1 {
        font-size: 2.2rem;
    }
    
    .section-header h2 {
        font-size: 1.8rem;
    }
    
    .contact-card {
        flex-direction: column;
    }
    
    .contact-icon {
        margin-right: 0;
        margin-bottom: 15px;
    }
    
    .cta-buttons {
        flex-direction: column;
        gap: 15px;
    }
    
    .modal-content {
        margin: 20% auto;
        width: 90%;
    }
}

@media (max-width: 576px) {
    .contacts-hero h1 {
        font-size: 1.8rem;
    }
    
    .section-header h2 {
        font-size: 1.5rem;
    }
    
    .contact-card {
        padding: 20px;
    }
}