/* Contact Page Styles */

/* Splash Cursor Canvas - не требует CSS, все inline */

.contact-hero,
.contact-form-section,
.contact-cards-section,
.map-section {
    position: relative;
    z-index: 1;
}

/* Удалили .container - теперь используем section-container-wide из home.css */

/* ===== HERO SECTION =====  */
/* Используем стили с главной страницы, добавляем только специфичные */
.contact-hero {
    /* Стили hero-section, hero-container, hero-inner и т.д. наследуются из global styles */
    min-height: 60vh;
}

/* ===== FORM SECTION ===== */
.contact-form-section {
    padding: 4rem 0;
}

.form-wrapper {
    max-width: 800px;
    margin: 0 auto;
    padding: 3rem;
    border-radius: 24px;
}

.section-title {
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 300;
    line-height: 1.1;
    letter-spacing: -0.02em;
    color: var(--text-primary);
    margin-bottom: 2rem;
}

.section-subtitle {
    color: var(--text-secondary);
    font-size: 1.125rem;
    margin-bottom: 3rem;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-group label {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-primary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.form-input {
    padding: 1rem 1.5rem;
    background: hsl(0 0% 100% / 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    color: var(--text-primary);
    font-size: 1rem;
    font-family: inherit;
    transition: all 0.3s ease;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

#contact-form .form-input,
#contact-form .form-textarea {
    background: hsl(0 0% 100% / 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    color: var(--text-primary);
    font-family: inherit;
    font-size: 1rem;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

#contact-form .form-input:focus,
#contact-form .form-textarea:focus {
    background: hsl(0 0% 100% / 0.08);
    border-color: rgba(255, 140, 0, 0.5);
    box-shadow: 0 0 0 3px rgba(255, 140, 0, 0.1);
    outline: none;
}

.form-input:focus {
    outline: none;
    background: hsl(0 0% 100% / 0.08);
    border-color: rgba(255, 140, 0, 0.5);
    box-shadow: 0 0 0 3px rgba(255, 140, 0, 0.1);
}

.form-input::placeholder,
.form-textarea::placeholder {
    color: #ffffff;
    font-size: 1.05rem;
}

textarea.form-input {
    resize: vertical;
    min-height: 150px;
}

.form-textarea {
    padding: 1rem 1.5rem;
    background: hsl(0 0% 100% / 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    color: var(--text-primary);
    font-size: 1rem;
    font-family: inherit;
    transition: all 0.3s ease;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    resize: vertical;
    width: 100%;
    box-sizing: border-box;
}

.form-textarea:focus {
    outline: none;
    background: hsl(0 0% 100% / 0.08);
    border-color: rgba(255, 140, 0, 0.5);
    box-shadow: 0 0 0 3px rgba(255, 140, 0, 0.1);
}

.error-message {
    font-size: 0.875rem;
    color: #FF6347;
    min-height: 1.25rem;
}

.btn-large {
    padding: 1.25rem 3rem !important;
    font-size: 1.125rem !important;
}

.btn-spinner {
    display: inline-block;
    width: 20px;
    height: 20px;
}

.spinner {
    animation: rotate 2s linear infinite;
    width: 100%;
    height: 100%;
}

.spinner .path {
    stroke: currentColor;
    stroke-linecap: round;
    animation: dash 1.5s ease-in-out infinite;
}

@keyframes rotate {
    100% { transform: rotate(360deg); }
}

@keyframes dash {
    0% {
        stroke-dasharray: 1, 150;
        stroke-dashoffset: 0;
    }
    50% {
        stroke-dasharray: 90, 150;
        stroke-dashoffset: -35;
    }
    100% {
        stroke-dasharray: 90, 150;
        stroke-dashoffset: -124;
    }
}

.form-message {
    padding: 1rem 1.5rem;
    border-radius: 12px;
    font-size: 1rem;
    margin-top: 1rem;
    text-align: center;
}

.form-message.success {
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid rgba(16, 185, 129, 0.3);
    color: #10B981;
}

.form-message.error {
    background: rgba(255, 99, 71, 0.1);
    border: 1px solid rgba(255, 99, 71, 0.3);
    color: #FF6347;
}

/* ===== CONTACT CARDS ===== */
.contact-cards-section {
    padding: 6rem 0;
}

.contact-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.contact-card {
    padding: 2.5rem;
    border-radius: 24px;
    text-align: center;
    transition: all 0.3s ease;
}

.contact-card:hover {
    transform: translateY(-8px);
    background: hsl(0 0% 100% / 0.15) !important;
    border-color: rgba(255, 255, 255, 0.3) !important;
}

.card-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem;
    background: hsl(0 0% 100% / 0.05);
    border-radius: 50%;
    border: 2px solid rgba(255, 140, 0, 0.3);
}

.card-icon svg {
    width: 48px;
    height: 48px;
}

.card-icon svg path,
.card-icon svg circle,
.card-icon svg rect {
    stroke: #ffffff;
}

.card-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    color: var(--text-primary);
}

.card-value {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    background: linear-gradient(135deg, #FF8C00, #D2691E);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.card-description {
    color: var(--text-secondary);
    font-size: 0.875rem;
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.card-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: #FF8C00;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.875rem;
    transition: all 0.3s ease;
}

.card-link:hover {
    gap: 0.75rem;
    color: #FF6347;
}

/* ===== MAP SECTION ===== */
.map-section {
    padding: 4rem 0 8rem;
}

.map-wrapper {
    padding: 1.5rem;
    border-radius: 24px;
    overflow: hidden;
}

#yandex-map {
    border-radius: 16px;
}

/* ===== DARK MODE ===== */
@media (prefers-color-scheme: dark) {
    .form-input {
        background: hsl(0 0% 0% / 0.1);
        border-color: rgba(255, 255, 255, 0.05);
        color: var(--text-primary);
    }

    .form-input:focus {
        background: hsl(0 0% 0% / 0.15);
        border-color: rgba(255, 140, 0, 0.4);
    }

    .contact-card:hover {
        background: hsl(0 0% 0% / 0.15) !important;
    }

    .card-icon {
        background: hsl(0 0% 0% / 0.1);
    }
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
    .contact-hero {
        min-height: 50vh;
        padding: 6rem 0 3rem;
    }

    .hero-title-main {
        font-size: 2.5rem;
    }

    .hero-subtitle {
        font-size: 1.125rem;
    }

    .form-wrapper {
        padding: 2rem 1.5rem;
    }

    .form-row {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .section-title {
        font-size: 2rem;
    }

    .contact-cards {
        grid-template-columns: 1fr;
    }

    .btn-large {
        padding: 1rem 2rem !important;
        font-size: 1rem !important;
    }

    #yandex-map {
        height: 350px !important;
    }
}

@media (max-width: 480px) {
    .hero-title-main {
        font-size: 1.875rem;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    .section-title {
        font-size: 1.5rem;
    }
}
