/* contacts.css */
/* СТИЛИ ДЛЯ СТРАНИЦЫ КОНТАКТОВ */

.contacts-main-content {
    width: 100%;
    padding: 30px 0 100px; /* Увеличил нижний отступ для мобильной навигации */
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Заголовок страницы */
.page-header {
    text-align: center;
    margin-bottom: 50px;
    padding: 40px 20px;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 15px;
    border: 1px solid #dee2e6;
    box-shadow: 0 4px 20px rgba(0,0,0,0.05);
}

.page-header h1 {
    font-size: 2.8rem;
    color: #333;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
}

.page-header h1 i {
    color: #FFC107;
    font-size: 2.5rem;
}

.page-subtitle {
    font-size: 1.2rem;
    color: #666;
    max-width: 800px;
    margin: 0 auto;
    line-height: 1.6;
}

/* Основной контент */
.contacts-content {
    display: flex;
    flex-direction: column;
    gap: 60px;
}

/* Секции */
.contact-section,
.contact-form-section,
.map-section,
.faq-section,
.emergency-contacts {
    margin-bottom: 40px;
}

.contact-section h2,
.map-section h2,
.faq-section h2 {
    font-size: 2.2rem;
    color: #333;
    margin-bottom: 30px;
    display: flex;
    align-items: center;
    gap: 15px;
    border-bottom: 2px solid #FFC107;
    padding-bottom: 15px;
}

/* Контактные карточки */
.contact-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
    margin-top: 30px;
}

.contact-card {
    background: white;
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    border: 1px solid #ebebeb;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.contact-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0,0,0,0.12);
    border-color: #FFC107;
}

.contact-icon {
    font-size: 2.5rem;
    color: #FFC107;
    margin-bottom: 10px;
}

.contact-card h3 {
    font-size: 1.5rem;
    color: #333;
    margin: 0 0 15px 0;
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 8px;
    border: 1px solid #e9ecef;
}

.contact-item i {
    color: #FFC107;
    font-size: 1.2rem;
    margin-top: 3px;
    flex-shrink: 0;
}

.contact-item h4 {
    margin: 0 0 8px 0;
    color: #555;
    font-size: 0.95rem;
    font-weight: 600;
}

.contact-link {
    color: #333;
    text-decoration: none;
    font-size: 1.1rem;
    font-weight: 600;
    transition: color 0.3s;
    display: block;
}

.contact-link:hover {
    color: #FFC107;
}

.contact-item p {
    margin: 0;
    color: #333;
    font-size: 1rem;
    line-height: 1.4;
}

.contact-note {
    font-size: 0.9rem;
    color: #666;
    margin-top: 5px;
}

.contact-schedule,
.contact-access {
    padding: 15px;
    background: #f8f9fa;
    border-radius: 8px;
    border: 1px solid #e9ecef;
    margin-top: 10px;
}

.contact-schedule p,
.contact-access p {
    margin: 5px 0;
    font-size: 0.95rem;
    color: #555;
}

.contact-schedule strong,
.contact-access strong {
    color: #333;
}

/* Форма обратной связи */
.contact-form-section {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 15px;
    padding: 40px;
    border: 1px solid #dee2e6;
}

.form-container {
    max-width: 800px;
    margin: 0 auto;
}

.form-header {
    text-align: center;
    margin-bottom: 40px;
}

.form-header h3 {
    font-size: 2rem;
    color: #333;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
}

.form-header p {
    color: #666;
    font-size: 1.1rem;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 25px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group label {
    font-weight: 600;
    color: #333;
    font-size: 0.95rem;
}

.form-group input,
.form-group select,
.form-group textarea {
    padding: 12px 16px;
    border: 2px solid #dee2e6;
    border-radius: 8px;
    font-size: 1rem;
    color: #333;
    transition: all 0.3s;
    background: white;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: #FFC107;
    outline: none;
    box-shadow: 0 0 0 3px rgba(255, 193, 7, 0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.error-message {
    color: #dc3545;
    font-size: 0.85rem;
    min-height: 20px;
    margin-top: 5px;
}

.form-checkbox {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 10px;
}

.form-checkbox input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: #FFC107;
}

.form-checkbox label {
    font-size: 0.9rem;
    color: #555;
    cursor: pointer;
}

.form-actions {
    margin-top: 30px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.btn-submit {
    padding: 15px 40px;
    background: linear-gradient(135deg, #FFC107 0%, #FF9800 100%);
    color: #333;
    border: none;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 250px;
    justify-content: center;
}

.btn-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 193, 7, 0.3);
}

.btn-submit:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.form-note {
    text-align: center;
    color: #666;
    font-size: 0.9rem;
}

.form-note i {
    color: #FFC107;
    margin-right: 5px;
}

/* Карта */
.map-section {
    margin-top: 40px;
}

.map-container {
    height: 500px;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid #dee2e6;
    margin-top: 20px;
    background: #f8f9fa;
    display: flex;
    align-items: center;
    justify-content: center;
}

.map-placeholder {
    text-align: center;
    color: #666;
}

.map-placeholder i {
    font-size: 4rem;
    color: #dee2e6;
    margin-bottom: 20px;
}

.map-fallback {
    padding: 40px;
    text-align: center;
}

.map-fallback h3 {
    color: #333;
    margin-bottom: 15px;
}

.map-fallback a {
    color: #FFC107;
    text-decoration: none;
    font-weight: 600;
}

.map-fallback a:hover {
    text-decoration: none;
}

.map-legend {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-top: 20px;
    flex-wrap: wrap;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 20px;
    background: #f8f9fa;
    border-radius: 8px;
    border: 1px solid #dee2e6;
}

.legend-icon {
    width: 20px;
    height: 20px;
    border-radius: 50%;
}

.legend-icon.shop {
    background: #FFC107;
    border: 2px solid #e6ac00;
}

.legend-icon.parking {
    background: #4CAF50;
    border: 2px solid #3d8b40;
}

.legend-item span {
    font-size: 0.9rem;
    color: #333;
}

/* FAQ */
.faq-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin-top: 30px;
}

.faq-item {
    background: white;
    border-radius: 8px;
    border: 1px solid #e9ecef;
    overflow: hidden;
    transition: all 0.3s;
}

.faq-item:hover {
    border-color: #FFC107;
}

.faq-question {
    padding: 20px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #f8f9fa;
    border-bottom: 1px solid transparent;
}

.faq-item.active .faq-question {
    border-bottom-color: #dee2e6;
    background: #f1f3f4;
}

.faq-question h4 {
    margin: 0;
    color: #333;
    font-size: 1rem;
    font-weight: 600;
}

.faq-question i {
    color: #FFC107;
    transition: transform 0.3s;
}

.faq-item.active .faq-question i {
    transform: rotate(180deg);
}

.faq-answer {
    padding: 0 20px;
    max-height: 0;
    overflow: hidden;
    transition: all 0.3s ease-out;
}

.faq-item.active .faq-answer {
    padding: 20px;
    max-height: 500px;
}

.faq-answer p {
    margin: 0;
    color: #555;
    line-height: 1.6;
    font-size: 0.95rem;
}

/* Экстренные контакты */
.emergency-contacts {
    margin-top: 40px;
}

.emergency-card {
    background: linear-gradient(135deg, #fff3cd 0%, #ffeaa7 100%);
    border: 2px solid #FFC107;
    border-radius: 12px;
    padding: 30px;
    display: flex;
    align-items: center;
    gap: 30px;
}

.emergency-icon {
    font-size: 3rem;
    color: #e6ac00;
    flex-shrink: 0;
}

.emergency-content {
    flex: 1;
}

.emergency-content h3 {
    font-size: 1.8rem;
    color: #333;
    margin: 0 0 15px 0;
}

.emergency-content p {
    color: #555;
    margin: 0 0 15px 0;
    line-height: 1.6;
}

.emergency-phone {
    display: flex;
    align-items: center;
    gap: 15px;
    margin: 20px 0;
}

.emergency-phone i {
    font-size: 1.5rem;
    color: #FFC107;
}

.emergency-phone a {
    font-size: 1.8rem;
    color: #333;
    text-decoration: none;
    font-weight: 700;
    transition: color 0.3s;
}

.emergency-phone a:hover {
    color: #e6ac00;
}

.emergency-note {
    font-size: 0.9rem;
    color: #666;
    font-style: italic;
    margin-top: 10px;
}

/* Адаптивность */
@media (max-width: 992px) {
    .contact-cards {
        grid-template-columns: 1fr;
    }

    .form-row {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .faq-grid {
        grid-template-columns: 1fr;
    }

    .emergency-card {
        flex-direction: column;
        text-align: center;
        gap: 20px;
    }

    .map-container {
        height: 400px;
    }
}

@media (max-width: 768px) {
    .page-header h1 {
        font-size: 2.2rem;
    }

    .contact-form-section {
        padding: 25px;
    }

    .contact-card {
        padding: 20px;
    }

    .btn-submit {
        width: 100%;
        min-width: auto;
    }

    .map-container {
        height: 300px;
    }

    .map-legend {
        flex-direction: column;
        align-items: center;
        gap: 15px;
    }
}

@media (max-width: 576px) {
    .contacts-main-content {
        padding: 20px 0 80px;
    }

    .page-header {
        padding: 25px 15px;
    }

    .page-header h1 {
        font-size: 1.8rem;
        flex-direction: column;
        gap: 10px;
    }

    .contact-section h2,
    .map-section h2,
    .faq-section h2 {
        font-size: 1.8rem;
    }

    .form-header h3 {
        font-size: 1.6rem;
        flex-direction: column;
        gap: 10px;
    }

    .emergency-phone a {
        font-size: 1.5rem;
    }
}

/* Десктопная навигация скрыта на мобильных */
@media (max-width: 1024px) {
    .desktop-nav-container {
        display: none !important;
    }
}

@media (min-width: 1025px) {
    .mobile-navigation {
        display: none !important;
    }
}

/* Отступы для мобильной навигации */
@media (max-width: 768px) {
    .contacts-main-content {
        padding-bottom: 80px;
    }
}

/* Анимации для FAQ */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.faq-item.active .faq-answer {
    animation: fadeIn 0.3s ease-out;
}

/* Ховер эффекты для контактных карточек */
.contact-card:hover .contact-icon {
    transform: scale(1.1);
    transition: transform 0.3s ease;
}

.contact-card .contact-icon {
    transition: transform 0.3s ease;
}

/* Стили для успешной отправки формы */
.success-message {
    text-align: center;
    padding: 60px 20px;
    background: white;
    border-radius: 12px;
    border: 2px solid #4CAF50;
    box-shadow: 0 4px 20px rgba(76, 175, 80, 0.15);
}

.success-message i {
    font-size: 4rem;
    color: #4CAF50;
    margin-bottom: 20px;
    display: block;
}

.success-message h3 {
    color: #333;
    margin-bottom: 15px;
    font-size: 1.8rem;
}

.success-message p {
    color: #666;
    margin-bottom: 30px;
    font-size: 1.1rem;
    line-height: 1.6;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

.success-message button {
    padding: 12px 30px;
    background: #FFC107;
    color: #333;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.success-message button:hover {
    background: #FF9800;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 193, 7, 0.3);
}

/* Стили для загрузки формы */
.btn-submit.loading {
    position: relative;
    color: transparent;
}

.btn-submit.loading::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    border: 2px solid #333;
    border-radius: 50%;
    border-top-color: transparent;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Анимация для карты при загрузке */
.map-placeholder i {
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { opacity: 0.6; }
    50% { opacity: 1; }
    100% { opacity: 0.6; }
}

/* Улучшенные стили для контактных ссылок */
.contact-item a.contact-link {
    position: relative;
    padding-left: 25px;
}

.contact-item a.contact-link::before {
    content: '→';
    position: absolute;
    left: 0;
    color: #FFC107;
    font-weight: bold;
    transition: transform 0.3s;
}

.contact-item a.contact-link:hover::before {
    transform: translateX(5px);
}

/* Стили для поля телефона с флагом */
.form-group input[type="tel"] {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%23FFC107' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M22 16.92v3a2 2 0 0 1-2.18 2 19.79 19.79 0 0 1-8.63-3.07 19.5 19.5 0 0 1-6-6 19.79 19.79 0 0 1-3.07-8.67A2 2 0 0 1 4.11 2h3a2 2 0 0 1 2 1.72 12.84 12.84 0 0 0 .7 2.81 2 2 0 0 1-.45 2.11L8.09 9.91a16 16 0 0 0 6 6l1.27-1.27a2 2 0 0 1 2.11-.45 12.84 12.84 0 0 0 2.81.7A2 2 0 0 1 22 16.92z'%3E%3C/path%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: 12px center;
    background-size: 20px;
    padding-left: 40px;
}

/* Стили для выпадающего списка тем */
.form-group select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%23666' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 20px;
    padding-right: 40px;
    appearance: none;
    cursor: pointer;
}

.form-group select:focus {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%23FFC107' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
}

/* Стили для поля сообщения с счетчиком символов */
.form-group textarea {
    font-family: inherit;
}

/* Стили для ошибок валидации */
.form-group input.error,
.form-group select.error,
.form-group textarea.error {
    border-color: #dc3545;
    background-color: #fff5f5;
}

.form-group .error-message {
    color: #dc3545;
    font-size: 0.85rem;
    margin-top: 5px;
    min-height: 20px;
}

/* Стили для успешной валидации */
.form-group input.valid,
.form-group select.valid,
.form-group textarea.valid {
    border-color: #28a745;
}

/* Адаптивные отступы для очень маленьких экранов */
@media (max-width: 400px) {
    .contact-card {
        padding: 15px;
    }

    .contact-item {
        padding: 12px;
    }

    .emergency-card {
        padding: 20px 15px;
    }

    .form-header h3 {
        font-size: 1.4rem;
    }

    .btn-submit {
        padding: 12px 20px;
        font-size: 1rem;
    }

    .map-container {
        height: 250px;
    }
}

/* Плавные переходы */
.contact-card,
.contact-item,
.faq-item,
.btn-submit,
.form-group input,
.form-group select,
.form-group textarea {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Улучшенные тени при наведении */
.contact-card:hover {
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
}

.emergency-card:hover {
    box-shadow: 0 8px 30px rgba(255, 193, 7, 0.2);
    transform: translateY(-3px);
}

/* Градиентные границы для карточек */
.contact-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #FFC107 0%, #FF9800 100%);
    border-radius: 12px 12px 0 0;
    opacity: 0;
    transition: opacity 0.3s;
}

.contact-card:hover::after {
    opacity: 1;
}

.contact-card {
    position: relative;
    overflow: hidden;
}

/* Анимация загрузки для карты */
@keyframes mapLoading {
    0% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
    100% { transform: translateY(0); }
}

.map-placeholder i {
    animation: mapLoading 2s ease-in-out infinite;
}

/* Улучшенные стили для контактного доступа */
.contact-access p {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 8px 0;
}

.contact-access p::before {
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    color: #FFC107;
}

.contact-access p:nth-child(1)::before {
    content: '\f3c5'; /* Иконка метки */
}

.contact-access p:nth-child(2)::before {
    content: '\f1b9'; /* Иконка машины */
}

.contact-access p:nth-child(3)::before {
    content: '\f540'; /* Иконка парковки */
}

/* Стили для времени работы */
.contact-schedule p {
    display: flex;
    align-items: center;
    gap: 8px;
}

.contact-schedule p:first-child::before {
    content: '\f017'; /* Иконка часов */
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    color: #FFC107;
}

/* Анимация появления секций */
.contact-section,
.contact-form-section,
.map-section,
.faq-section,
.emergency-contacts {
    animation: fadeInUp 0.6s ease-out;
    animation-fill-mode: both;
}

.contact-section { animation-delay: 0.1s; }
.contact-form-section { animation-delay: 0.2s; }
.map-section { animation-delay: 0.3s; }
.faq-section { animation-delay: 0.4s; }
.emergency-contacts { animation-delay: 0.5s; }

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Стили для мобильной навигации внизу страницы */
@media (max-width: 1024px) {
    .contacts-main-content {
        padding-bottom: 90px; /* Увеличен отступ для мобильной навигации */
    }
}

/* Улучшенные отступы для контейнера на очень широких экранах */
@media (min-width: 1400px) {
    .container {
        max-width: 1300px;
    }
}

/* Стили для темной темы (опционально) */
@media (prefers-color-scheme: dark) {
    .contacts-page {
        background-color: #1a1a1a;
        color: #e0e0e0;
    }

    .page-header {
        background: linear-gradient(135deg, #2d2d2d 0%, #3d3d3d 100%);
        border-color: #404040;
    }

    .page-header h1 {
        color: #fff;
    }

    .page-subtitle {
        color: #aaa;
    }

    .contact-card {
        background: #2d2d2d;
        border-color: #404040;
    }

    .contact-card h3 {
        color: #fff;
    }

    .contact-item {
        background: #363636;
        border-color: #404040;
    }

    .contact-link {
        color: #fff;
    }

    .contact-item p {
        color: #ccc;
    }

    .contact-form-section {
        background: linear-gradient(135deg, #2d2d2d 0%, #3d3d3d 100%);
        border-color: #404040;
    }

    .form-group input,
    .form-group select,
    .form-group textarea {
        background: #363636;
        border-color: #404040;
        color: #fff;
    }

    .faq-item {
        background: #2d2d2d;
        border-color: #404040;
    }

    .faq-question {
        background: #363636;
    }

    .faq-question h4 {
        color: #fff;
    }

    .faq-answer p {
        color: #ccc;
    }

    .map-container {
        border-color: #404040;
        background: #2d2d2d;
    }
}