/* contacts.css - Стили для страницы контактов */

/* Заголовок страницы */
.page-header {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: var(--secondary-color);
    padding: 80px 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.page-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1200 120" preserveAspectRatio="none"><path d="M1200 120L0 16.48 0 0 1200 0 1200 120z" fill="%23ffffff" opacity="0.1"/></svg>');
    background-size: 100% 100px;
    background-position: bottom;
    background-repeat: no-repeat;
}

.page-header h1 {
    font-size: 3rem;
    margin-bottom: 15px;
    position: relative;
    z-index: 1;
}

.page-header p {
    font-size: 1.3rem;
    opacity: 0.9;
    max-width: 600px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

/* Основные контакты */
.contacts-main {
    padding: 80px 0;
    background-color: var(--secondary-color);
}

.contacts-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 50px;
    max-width: 1200px;
    margin: 0 auto;
}

@media (min-width: 992px) {
    .contacts-grid {
        grid-template-columns: 2fr 1fr;
    }
}

/* Карточка контактов */
.contact-card {
    background: var(--secondary-color);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.08);
    border: 1px solid var(--medium-gray);
}

.contact-card.main-office {
    border: 2px solid var(--primary-color);
}

.contact-header {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: var(--secondary-color);
    padding: 30px;
    text-align: center;
}

.contact-icon {
    font-size: 3rem;
    margin-bottom: 15px;
}

.contact-header h3 {
    font-size: 1.5rem;
    margin: 0;
    color: var(--secondary-color);
}

.contact-details {
    padding: 30px;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    margin-bottom: 25px;
    padding-bottom: 25px;
    border-bottom: 1px solid var(--light-gray);
}

.contact-item:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.contact-item i {
    font-size: 1.3rem;
    color: var(--primary-color);
    margin-top: 5px;
    flex-shrink: 0;
}

.contact-info {
    flex: 1;
}

.contact-info h4 {
    font-size: 1.1rem;
    margin-bottom: 8px;
    color: var(--dark-gray);
}

.contact-info p {
    color: var(--text-color);
    line-height: 1.6;
    margin: 0;
}

.contact-info a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

.contact-info a:hover {
    color: var(--primary-dark);
    text-decoration: underline;
}

.contact-map {
    padding: 0 30px 30px;
}

.map-placeholder {
    border: 2px dashed var(--medium-gray);
    border-radius: 10px;
    padding: 40px 20px;
    text-align: center;
    background: var(--light-gray);
}

.map-placeholder i {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.map-placeholder p {
    color: var(--text-light);
    margin-bottom: 20px;
    font-size: 1.1rem;
}

.btn-map {
    background: var(--primary-color);
    color: var(--secondary-color);
    border: none;
    padding: 12px 25px;
    border-radius: 6px;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
    cursor: pointer;
}

.btn-map:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
}

/* Региональные офисы */
.regional-offices h3 {
    font-size: 1.5rem;
    margin-bottom: 25px;
    color: var(--dark-gray);
    display: flex;
    align-items: center;
    gap: 10px;
}

.regional-offices h3 i {
    color: var(--primary-color);
}

.office-cards {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.office-card {
    background: var(--secondary-color);
    border-radius: 10px;
    padding: 25px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    border: 1px solid var(--medium-gray);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.office-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    border-color: var(--primary-color);
}

.office-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
}

.office-header i {
    font-size: 1.8rem;
    color: var(--primary-color);
}

.office-header h4 {
    font-size: 1.2rem;
    margin: 0;
    color: var(--dark-gray);
}

.office-details p {
    color: var(--text-color);
    margin-bottom: 8px;
    font-size: 0.95rem;
    line-height: 1.5;
}

.office-details p:last-child {
    margin-bottom: 20px;
}

.office-details strong {
    color: var(--dark-gray);
    font-weight: 600;
}

.office-contacts {
    display: flex;
    gap: 10px;
    margin-top: 15px;
}

.btn-small {
    padding: 8px 15px;
    font-size: 0.9rem;
    border-radius: 5px;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.btn-small.btn-outline {
    background: transparent;
    color: var(--primary-color);
    border: 1px solid var(--primary-color);
}

.btn-small.btn-outline:hover {
    background: var(--primary-color);
    color: var(--secondary-color);
}

/* Реквизиты */
.requisites-section {
    padding: 80px 0;
    background-color: var(--light-gray);
}

.section-title {
    text-align: center;
    margin-bottom: 50px;
    color: var(--dark-gray);
    font-size: 2.2rem;
    position: relative;
    padding-bottom: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 4px;
    background: var(--primary-color);
    border-radius: 2px;
}

.section-title i {
    color: var(--primary-color);
}

.requisites-content {
    max-width: 1000px;
    margin: 0 auto;
}

.requisites-card {
    background: var(--secondary-color);
    border-radius: 15px;
    padding: 40px;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.08);
}

.requisites-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 20px;
    margin-bottom: 40px;
}

.requisite-item {
    padding: 15px;
    background: var(--light-gray);
    border-radius: 8px;
    border-left: 4px solid var(--primary-color);
}

.requisite-item strong {
    display: block;
    color: var(--dark-gray);
    margin-bottom: 8px;
    font-size: 0.95rem;
}

.requisite-item span {
    display: block;
    color: var(--text-color);
    line-height: 1.5;
    font-size: 1rem;
    word-break: break-word;
}

.requisites-actions {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
    padding-top: 30px;
    border-top: 1px solid var(--medium-gray);
}

.requisites-actions .btn {
    padding: 12px 30px;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    min-width: 200px;
    justify-content: center;
}

/* Форма обратной связи */
.contact-form-section {
    padding: 80px 0;
    background-color: var(--secondary-color);
}

.form-container {
    max-width: 800px;
    margin: 0 auto;
    background: var(--light-gray);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.08);
}

.form-header {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: var(--secondary-color);
    padding: 30px;
    text-align: center;
}

.form-header h2 {
    font-size: 1.8rem;
    margin-bottom: 10px;
    color: var(--secondary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
}

.form-header p {
    opacity: 0.9;
    font-size: 1.1rem;
    margin: 0;
}

.contact-form {
    padding: 40px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 25px;
    margin-bottom: 25px;
}

@media (max-width: 768px) {
    .form-row {
        grid-template-columns: 1fr;
    }
}

.form-group {
    margin-bottom: 25px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: var(--dark-gray);
}

.form-group label::after {
    content: ' *';
    color: #e74c3c;
    opacity: 0;
}

.form-group label[for="name"]::after,
.form-group label[for="phone"]::after,
.form-group label[for="message"]::after {
    opacity: 1;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid var(--medium-gray);
    border-radius: 6px;
    font-family: 'Roboto', sans-serif;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: var(--secondary-color);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.form-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
    margin-top: 30px;
}

.btn-submit {
    padding: 15px 40px;
    font-size: 1.1rem;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: var(--primary-color);
    color: var(--secondary-color);
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-submit:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(52, 152, 219, 0.3);
}

.form-note p {
    color: var(--text-light);
    font-size: 0.9rem;
    margin: 0;
}

/* FAQ */
.faq-section {
    padding: 80px 0;
    background-color: var(--light-gray);
}

.faq-content {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    background: var(--secondary-color);
    border-radius: 10px;
    margin-bottom: 15px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    border: 1px solid var(--medium-gray);
}

.faq-question {
    padding: 20px 25px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.faq-question:hover {
    background: rgba(52, 152, 219, 0.05);
}

.faq-question h4 {
    font-size: 1.1rem;
    margin: 0;
    color: var(--dark-gray);
    font-weight: 500;
}

.faq-question i {
    color: var(--primary-color);
    transition: transform 0.3s ease;
}

.faq-item.active .faq-question i {
    transform: rotate(180deg);
}

.faq-answer {
    padding: 0 25px;
    max-height: 0;
    overflow: hidden;
    transition: all 0.3s ease;
}

.faq-item.active .faq-answer {
    padding: 0 25px 25px;
    max-height: 500px;
}

.faq-answer p {
    color: var(--text-color);
    line-height: 1.6;
    margin: 0;
    font-size: 1rem;
}

/* Карта */
.map-section {
    padding: 80px 0;
    background-color: var(--secondary-color);
}

.map-container {
    max-width: 1000px;
    margin: 0 auto;
}

.map-placeholder-large {
    border: 2px solid var(--medium-gray);
    border-radius: 15px;
    padding: 60px 30px;
    text-align: center;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

.map-placeholder-large i {
    font-size: 4rem;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.map-placeholder-large h3 {
    font-size: 1.8rem;
    margin-bottom: 10px;
    color: var(--dark-gray);
}

.map-placeholder-large p {
    color: var(--text-light);
    margin-bottom: 30px;
    font-size: 1.1rem;
}

.map-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

.map-buttons .btn {
    padding: 15px 30px;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    min-width: 220px;
    justify-content: center;
}

/* Модальное окно для карты */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    z-index: 9999;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.modal.active {
    display: flex;
}

.modal-content {
    background: var(--secondary-color);
    border-radius: 10px;
    width: 90%;
    max-width: 800px;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.4);
}

.modal-header {
    background: var(--dark-gray);
    color: var(--secondary-color);
    padding: 20px 25px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.modal-header h3 {
    margin: 0;
    color: var(--secondary-color);
    font-size: 1.3rem;
}

.modal-close {
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: var(--secondary-color);
    font-size: 1.3rem;
    cursor: pointer;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.3s ease;
}

.modal-close:hover {
    background: rgba(255, 255, 255, 0.2);
}

.modal-body {
    flex: 1;
    padding: 25px;
    overflow: auto;
    min-height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Адаптивность */
@media (max-width: 768px) {
    .page-header h1 {
        font-size: 2.2rem;
    }
    
    .page-header p {
        font-size: 1.1rem;
    }
    
    .section-title {
        font-size: 1.8rem;
        flex-direction: column;
        gap: 10px;
    }
    
    .requisites-grid {
        grid-template-columns: 1fr;
    }
    
    .requisites-actions {
        flex-direction: column;
    }
    
    .requisites-actions .btn {
        width: 100%;
    }
    
    .map-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .map-buttons .btn {
        width: 100%;
        max-width: 300px;
    }
    
    .contact-form {
        padding: 25px;
    }
    
    .office-contacts {
        flex-direction: column;
    }
}

@media (max-width: 480px) {
    .page-header {
        padding: 60px 0;
    }
    
    .contact-details,
    .contact-map {
        padding: 20px;
    }
    
    .requisites-card {
        padding: 25px;
    }
    
    .form-header {
        padding: 20px;
    }
}