/**
 * Стили для страницы контактов - исправленная версия
 * Contacts page styles - fixed version with proper colors
 */

/* Переменные наследуются из variables.css */

/* Page Header - общие стили для заголовка страницы */
.page-header {
    text-align: center;
    margin-bottom: 3rem;
    padding: 2rem 0;
}

.page-header h1 {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 1rem;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.page-header p {
    font-size: 1.125rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
}

/* Удалены устаревшие стили для хлебных крошек - теперь используется централизованная система */



/* Основная секция */
.contacts-main {
    margin-top: 3rem;
    margin-bottom: 4rem;
}

/* Responsive overrides for sections spacing */
@media (max-width: 768px) {
    .public-page .contacts-main {
        margin-top: 2rem;
        margin-bottom: 2.5rem;
    }
}

@media (max-width: 576px) {
    .public-page .contacts-main {
        margin-top: 1.5rem;
        margin-bottom: 2rem;
    }
}

.contact-info-card {
    background: white;
    /* Использует .rounded-lg из components.css */
    padding: 2.5rem;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    height: 100%;
    border: 1px solid #e5e7eb;
}

.contact-info-card h2 {
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 2rem;
    color: #1f2937;
}

.contact-item {
    /* Использует .flex из components.css */
    align-items: flex-start;
    margin-bottom: 1.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid #f3f4f6;
}

.contact-item:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.contact-icon {
    flex-shrink: 0;
    width: 52px;
    height: 52px;
    background: rgba(59, 130, 246, 0.1);
    /* Использует .rounded-lg, .flex-center из components.css */
    margin-right: 1.25rem;
}

.contact-icon i {
    width: 24px;
    height: 24px;
    color: var(--primary-blue);
}

.contact-details h3 {
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: #1f2937;
}

.contact-details a {
    color: var(--primary-blue);
    text-decoration: none;
    font-weight: 500;
    font-size: 1rem;
}

.contact-details a:hover {
    text-decoration: underline;
}

.contact-details small {
    display: block;
    color: var(--text-secondary);
    font-size: 0.875rem;
    margin-top: 0.5rem;
}

.contact-details address {
    font-style: normal;
    line-height: 1.5;
    margin: 0;
    font-size: 1rem;
    color: #374151;
}

/* Карта */
.map-container {
    background: white;
    border-radius: 1rem;
    padding: 2.5rem;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    height: 100%;
    border: 1px solid #e5e7eb;
}

.map-container h2 {
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: #1f2937;
}

.contact-map {
    width: 100%;
    height: 350px;
    border-radius: 0.75rem;
    overflow: hidden;
    margin-bottom: 1.5rem;
    background: #f3f4f6;
    border: 1px solid #e5e7eb;
}

.map-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    color: var(--text-secondary);
    background: #f9fafb;
}

.map-placeholder i {
    width: 48px;
    height: 48px;
    margin-bottom: 1rem;
    color: #9ca3af;
}

.map-placeholder p {
    margin: 0;
    font-size: 1rem;
    color: var(--text-secondary);
}

.map-info {
    font-size: 0.875rem;
    line-height: 1.6;
    color: #374151;
}

.map-info p {
    margin-bottom: 0.75rem;
    color: #374151;
}

.map-info p:last-child {
    margin-bottom: 0;
}

.map-info strong {
    color: #1f2937;
    font-weight: 600;
}

/* Дополнительная информация */
.contacts-additional {
    background: #f9fafb;
    padding: 4rem 0;
    margin-bottom: 4rem;
}

/* Responsive overrides for additional section */
@media (max-width: 768px) {
    .public-page .contacts-additional {
        margin-bottom: 2.5rem;
        padding: 3rem 0;
    }
}

@media (max-width: 576px) {
    .public-page .contacts-additional {
        margin-bottom: 2rem;
        padding: 2.5rem 0;
    }
}

.info-card {
    background: white;
    /* Использует .rounded-lg из components.css */
    padding: 2.5rem;
    text-align: center;
    height: 100%;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    border: 1px solid #e5e7eb;
    /* Использует .transition-slow из components.css */
}

.info-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.12);
}

.info-icon {
    width: 68px;
    height: 68px;
    background: rgba(59, 130, 246, 0.1);
    /* Использует .rounded-xl, .flex-center из components.css */
    margin: 0 auto 1.5rem;
}

.info-icon i {
    width: 32px;
    height: 32px;
    color: var(--primary-blue);
}

.info-card h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: #1f2937;
}

.info-card p {
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.info-link {
    display: inline-block;
    color: var(--primary-blue);
    text-decoration: none;
    font-weight: 500;
    padding: 0.75rem 1.5rem;
    border: 1px solid var(--primary-blue);
    border-radius: 0.5rem;
    transition: all 0.3s ease;
}

.info-link:hover {
    background: var(--primary-blue);
    color: white;
    text-decoration: none;
    transform: translateY(-1px);
}

/* FAQ секция */
.contacts-faq {
    margin-bottom: 4rem;
}

/* Responsive overrides for FAQ section */
@media (max-width: 768px) {
    .public-page .contacts-faq {
        margin-bottom: 2.5rem;
    }
}

@media (max-width: 576px) {
    .public-page .contacts-faq {
        margin-bottom: 2rem;
    }
}

.contacts-faq h2 {
    text-align: center;
    font-size: 2.25rem;
    font-weight: 700;
    margin-bottom: 3rem;
    color: #1f2937;
}

.faq-item {
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 0.75rem;
    padding: 2rem;
    margin-bottom: 1.5rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.faq-item h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: #1f2937;
}

.faq-item p {
    color: var(--text-secondary);
    line-height: 1.6;
    margin: 0;
}

.faq-more {
    text-align: center;
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid #e5e7eb;
}

.faq-more p {
    font-size: 1.125rem;
    margin-bottom: 2rem;
    color: #374151;
}

.faq-more .btn {
    margin: 0 0.75rem 0.75rem 0;
}

/* Row and column layout for Bootstrap-like grid */
.row {
    display: flex;
    flex-wrap: wrap;
    margin: 0 -15px;
}

.col-lg-6 {
    flex: 0 0 50%;
    max-width: 50%;
    padding: 0 15px;
}

.col-lg-4 {
    flex: 0 0 33.333333%;
    max-width: 33.333333%;
    padding: 0 15px;
}

/* Responsive styles */
@media (max-width: 992px) {
    .col-lg-6,
    .col-lg-4 {
        flex: 0 0 100%;
        max-width: 100%;
        margin-bottom: 2rem;
    }
}

@media (max-width: 768px) {
    /* Увеличиваем отступы контейнеров на странице контактов */
    .public-page .container {
        padding-left: 1.5rem;
        padding-right: 1.5rem;
    }
    
    .contact-info-card,
    .map-container {
        padding: 2rem;
        margin-bottom: 2rem;
    }
    
    .contact-item {
        flex-direction: column;
        text-align: center;
        align-items: center;
        margin-bottom: 1.25rem;
        padding-bottom: 1.25rem;
    }
    
    .contact-icon {
        margin: 0 auto 1rem;
    }
    
    .info-card {
        padding: 2rem;
        margin-bottom: 2rem;
    }
    
    .contact-map {
        height: 280px;
    }
}

@media (max-width: 576px) {
    /* Больше отступов для очень маленьких экранов */
    .public-page .container {
        padding-left: 1.25rem;
        padding-right: 1.25rem;
    }
    
    .contact-info-card,
    .map-container,
    .info-card {
        padding: 1.5rem;
    }
    
    .contact-map {
        height: 250px;
    }
    
    /* Удален устаревший стиль для хлебных крошек */
    
    .faq-more .btn {
        display: block;
        margin: 0.5rem auto;
        width: 100%;
        max-width: 200px;
    }
}

/* Fallback карта для лучшего отображения */
.map-fallback {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    background: #f9fafb;
    border-radius: 0.75rem;
    text-align: center;
    padding: 3rem 2rem;
    border: 2px dashed #e5e7eb;
}

.map-fallback h3 {
    margin-bottom: 1rem;
    font-size: 1.25rem;
    color: #374151;
}

.map-fallback p {
    margin-bottom: 1.5rem;
    color: var(--text-secondary);
}

.map-fallback a {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    background: var(--primary-blue);
    color: white;
    text-decoration: none;
    border-radius: 0.5rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

.map-fallback a:hover {
    background: #2563eb;
    transform: translateY(-1px);
}

/* Печать */
@media print {
    
    .contact-map {
        background: #f3f4f6 !important;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    .contact-map::after {
        content: "Карта недоступна при печати. Адрес: г. Москва, Вешняковская улица, 5к5";
        text-align: center;
        color: var(--text-secondary);
        font-size: 0.875rem;
    }
    
    .info-card:hover {
        transform: none;
        box-shadow: none;
    }
    
    .btn {
        display: none;
    }
}