/* =========================================
   CONTACT.CSS
   Стили для страницы контактов
   ========================================= */

/* Основные стили страницы */
.contact-content {
    padding-top: 3rem;
    padding-bottom: 5rem;
    background-color: #0a0a0a;
    min-height: 100vh;
}

.contact-container {
    max-width: 80rem;
    margin: 0 auto;
    padding: 0 1rem;
}

@media (min-width: 640px) {
    .contact-container {
        padding: 0 1.5rem;
    }
}

@media (min-width: 1024px) {
    .contact-container {
        padding: 0 2rem;
    }
}

/* Герой секция */
.contact-hero {
    position: relative;
    padding-top: 8rem;
    padding-bottom: 3rem;
    overflow: hidden;
    text-align: center;
}

.contact-hero-title {
    font-size: 2.25rem;
    font-weight: bold;
    color: white;
    margin-bottom: 1rem;
    line-height: 1.2;
}

.contact-hero-description {
    font-size: 1.25rem;
    color: #9ca3af;
    max-width: 42rem;
    margin: 0 auto;
    line-height: 1.6;
}

@media (min-width: 768px) {
    .contact-hero-title {
        font-size: 3rem;
    }
}

@media (max-width: 768px) {
    .contact-hero {
        padding-top: 6rem;
        padding-bottom: 2rem;
    }
    
    .contact-hero-title {
        font-size: 1.75rem;
    }
    
    .contact-hero-description {
        font-size: 1rem;
    }
}

/* Сетка контактов */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    margin-bottom: 3rem;
}

@media (min-width: 768px) {
    .contact-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Общие стили секций */
.section-title {
    font-size: 1.5rem;
    font-weight: bold;
    color: white;
    margin-bottom: 1rem;
    line-height: 1.3;
}

.section-description {
    color: #9ca3af;
    line-height: 1.6;
    margin-bottom: 2rem;
}

/* Левая колонка: Контактная информация */
.contact-info-section {
    background-color: rgba(17, 24, 39, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 1rem;
    padding: 2rem;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.contact-detail-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.contact-icon {
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 0.75rem;
    background-color: rgba(59, 130, 246, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #3b82f6;
    flex-shrink: 0;
}

.contact-icon .icon {
    width: 1.25rem;
    height: 1.25rem;
}

.contact-text h3 {
    font-size: 1rem;
    font-weight: 600;
    color: white;
    margin-bottom: 0.25rem;
}

.contact-link {
    display: block;
    color: #60a5fa;
    text-decoration: none;
    font-weight: 500;
    margin-bottom: 0.25rem;
    transition: color 0.3s ease;
}

.contact-link:hover {
    color: #93c5fd;
}

.contact-address {
    color: #e5e7eb;
    font-weight: 500;
    margin-bottom: 0.25rem;
}

.contact-text p {
    color: #9ca3af;
    font-size: 0.875rem;
    margin: 0;
    line-height: 1.4;
}

/* Социальные сети */
.contact-social h3 {
    font-size: 1.25rem;
    font-weight: bold;
    color: white;
    margin-bottom: 1rem;
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-link {
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 0.75rem;
    background-color: rgba(59, 130, 246, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #60a5fa;
    transition: all 0.3s ease;
}

.social-link:hover {
    background-color: rgba(59, 130, 246, 0.2);
    transform: translateY(-2px);
    color: #93c5fd;
}

.social-icon {
    width: 1.25rem;
    height: 1.25rem;
}

/* Правая колонка: Форма обратной связи */
.contact-form-section {
    background-color: rgba(17, 24, 39, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 1rem;
    padding: 2rem;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.contact-form-card {
    height: 100%;
    display: flex;
    flex-direction: column;
}

.form-title {
    font-size: 1.5rem;
    font-weight: bold;
    color: white;
    margin-bottom: 0.5rem;
    line-height: 1.3;
}

.form-description {
    color: #9ca3af;
    line-height: 1.6;
    margin-bottom: 2rem;
}

/* Сообщения формы */
.success-message {
    background: rgba(34, 197, 94, 0.1);
    border: 1px solid rgba(34, 197, 94, 0.2);
    border-radius: 0.75rem;
    padding: 1rem;
    margin-bottom: 1.5rem;
    text-align: center;
}

.success-message h4 {
    color: #22c55e;
    font-size: 1.125rem;
    margin-bottom: 0.5rem;
}

.success-message p {
    color: #86efac;
    margin: 0;
    font-size: 0.95rem;
}

.error-message {
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.2);
    border-radius: 0.75rem;
    padding: 1rem;
    margin-bottom: 1.5rem;
    text-align: center;
    color: #fca5a5;
}

/* Форма */
.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    flex: 1;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-label {
    font-size: 0.875rem;
    font-weight: 500;
    color: #d1d5db;
    margin-bottom: 0.375rem;
}

.form-input {
    width: 95%;
    padding: 0.875rem 1rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 0.75rem;
    color: white;
    font-size: 1rem;
    transition: all 0.3s ease;
    outline: none;
    font-family: inherit;
}

.form-input:focus {
    border-color: #3b82f6;
    background: rgba(59, 130, 246, 0.05);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.15);
}

.form-input::placeholder {
    color: #6b7280;
}

.form-input.textarea {
    min-height: 100px;
    resize: vertical;
}

.form-input option {
    background: #0f0c14;
    color: white;
    padding: 0.5rem;
}

/* Кнопка отправки */
.submit-button {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 1rem 1.5rem;
    background: linear-gradient(90deg, #2563eb, #3b82f6);
    color: white;
    font-weight: 600;
    font-size: 1rem;
    border: none;
    border-radius: 0.75rem;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 0.5rem;
}

.submit-button:hover {
    background: linear-gradient(90deg, #1d4ed8, #2563eb);
    box-shadow: 0 0 25px rgba(37, 99, 235, 0.3);
    transform: translateY(-2px);
}

.submit-button:active {
    transform: translateY(0);
}

.button-icon {
    width: 1.25rem;
    height: 1.25rem;
}

/* Уведомление */
.form-notice {
    font-size: 0.75rem;
    color: #6b7280;
    text-align: center;
    margin-top: 1rem;
    margin-bottom: 0;
}

/* Карта */
.contact-map-section {
    margin-bottom: 3rem;
}

.map-container {
    background-color: rgba(17, 24, 39, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 1rem;
    overflow: hidden;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.map-placeholder {
    height: 300px;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.1), rgba(124, 58, 237, 0.1));
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.map-content {
    text-align: center;
    color: white;
    padding: 2rem;
}

.map-icon {
    width: 3rem;
    height: 3rem;
    color: #3b82f6;
    margin-bottom: 1rem;
}

.map-content h3 {
    font-size: 1.25rem;
    font-weight: bold;
    margin-bottom: 0.5rem;
}

.map-content p {
    color: #d1d5db;
    margin-bottom: 1rem;
}

.map-instructions {
    text-align: left;
    max-width: 400px;
    margin: 0 auto;
}

.map-instructions p {
    margin-bottom: 0.5rem;
}

.map-instructions ul {
    list-style-type: none;
    padding-left: 0;
    margin: 0;
}

.map-instructions li {
    color: #9ca3af;
    padding: 0.25rem 0;
    position: relative;
    padding-left: 1.5rem;
}

.map-instructions li:before {
    content: "•";
    color: #3b82f6;
    position: absolute;
    left: 0;
}

/* FAQ секция */
.faq-section {
    margin-top: 3rem;
}

.faq-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
}

@media (min-width: 768px) {
    .faq-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

.faq-item {
    background-color: rgba(17, 24, 39, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 1rem;
    padding: 1.5rem;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.faq-item:hover {
    border-color: rgba(59, 130, 246, 0.3);
    transform: translateY(-2px);
}

.faq-question {
    font-size: 1rem;
    font-weight: bold;
    color: white;
    margin-bottom: 0.75rem;
    line-height: 1.4;
}

.faq-answer {
    color: #9ca3af;
    line-height: 1.6;
    margin: 0;
    font-size: 0.95rem;
}

/* Градиентный текст */
.text-highlight-gradient {
    background: linear-gradient(to right, #38bdf8, #818cf8);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Интерактивные карточки */
.interactive-card {
    transition: all 0.3s ease;
}

.interactive-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px -10px rgba(56, 189, 248, 0.1);
}

/* Анимации */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.contact-info-section,
.contact-form-section,
.map-container,
.faq-item {
    animation: fadeInUp 0.6s ease-out both;
}

.contact-info-section { animation-delay: 0.1s; }
.contact-form-section { animation-delay: 0.2s; }
.map-container { animation-delay: 0.3s; }

.faq-item:nth-child(1) { animation-delay: 0.4s; }
.faq-item:nth-child(2) { animation-delay: 0.5s; }
.faq-item:nth-child(3) { animation-delay: 0.6s; }
.faq-item:nth-child(4) { animation-delay: 0.7s; }

/* Адаптивность */
@media (max-width: 640px) {
    .contact-info-section,
    .contact-form-section {
        padding: 1.5rem;
    }
    
    .contact-detail-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.75rem;
    }
    
    .map-placeholder {
        height: 250px;
        padding: 1rem;
    }
    
    .map-content h3 {
        font-size: 1.125rem;
    }
    
    .faq-item {
        padding: 1.25rem;
    }
}

@media (max-width: 480px) {
    .contact-hero {
        padding-top: 5rem;
    }
    
    .contact-content {
        padding-top: 2rem;
        padding-bottom: 3rem;
    }
    
    .section-title {
        font-size: 1.25rem;
    }
    
    .form-title {
        font-size: 1.25rem;
    }
    
    .form-input {
        padding: 0.75rem;
        width: 90%;
    }
    
    .submit-button {
        padding: 0.875rem 1rem;
        font-size: 0.95rem;
    }
}