/* ============================================
   Contacts Premium Page - Minimalist Design
   Следует принципам DESIGN-SYSTEM.md
   ============================================ */

/* === HERO SECTION === */
.contacts-hero {
    position: relative;
    padding: 64px 0;
    background: linear-gradient(180deg, #ffffff 0%, #f8f9fa 100%);
    overflow: hidden;
}

.contacts-hero-bg {
    position: absolute;
    inset: 0;
    opacity: 0.03;
    background-image:
        radial-gradient(circle at 20% 30%, rgba(122, 202, 205, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(122, 202, 205, 0.08) 0%, transparent 50%);
    pointer-events: none;
}

.contacts-hero-content {
    text-align: center;
    position: relative;
    z-index: 1;
}

.section-label {
    display: inline-block;
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: #7acacd;
    margin-bottom: 8px;
}

.contacts-hero-title {
    font-size: 40px;
    font-weight: 600;
    line-height: 1.2;
    color: #1a1a1a;
    margin: 0 0 16px 0;
}

.contacts-hero-subtitle {
    font-size: 18px;
    line-height: 1.6;
    color: #666666;
    max-width: 600px;
    margin: 0 auto;
}

/* === MAIN SECTION === */
.contacts-main-section {
    padding: 64px 0;
    background: #ffffff;
}

.contacts-layout {
    display: grid;
    grid-template-columns: 1fr 380px;
    gap: 48px;
}

/* === ФОРМА ОБРАТНОЙ СВЯЗИ === */
.contacts-form-column {
    min-width: 0;
}

.contacts-form-wrapper {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 16px;
    padding: 32px;
    margin-bottom: 32px;
}

.form-header {
    margin-bottom: 32px;
}

.form-header h2 {
    font-size: 32px;
    font-weight: 600;
    line-height: 1.2;
    color: #1a1a1a;
    margin: 0 0 8px 0;
}

.form-header p {
    font-size: 16px;
    line-height: 1.5;
    color: #666666;
    margin: 0;
}

/* Стили для Contact Form 7 */
.contact-form-premium .wpcf7-form {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.contact-form-premium .wpcf7-form-control-wrap {
    display: block;
    width: 100%;
}

.contact-form-premium input[type="text"],
.contact-form-premium input[type="email"],
.contact-form-premium input[type="tel"],
.contact-form-premium textarea {
    font-family: "Segoe UI", sans-serif;
    font-size: 16px;
    padding: 16px;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    width: 100%;
    transition: border-color 0.2s ease;
    background: #ffffff;
    color: #1a1a1a;
}

.contact-form-premium input[type="text"]:focus,
.contact-form-premium input[type="email"]:focus,
.contact-form-premium input[type="tel"]:focus,
.contact-form-premium textarea:focus {
    outline: none;
    border-color: #7acacd;
    box-shadow: 0 0 0 3px rgba(122, 202, 205, 0.1);
}

.contact-form-premium textarea {
    min-height: 120px;
    resize: vertical;
}

.contact-form-premium input[type="submit"] {
    font-family: "Segoe UI", sans-serif;
    font-size: 16px;
    font-weight: 600;
    padding: 16px 32px;
    background: linear-gradient(135deg, #7acacd 0%, #68b8bb 100%);
    color: #ffffff;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: opacity 0.2s ease;
    align-self: flex-start;
}

.contact-form-premium input[type="submit"]:hover {
    opacity: 0.9;
}

/* === ИНФОРМАЦИОННЫЕ КАРТОЧКИ === */
.info-cards-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
    margin-bottom: 32px;
}

.info-card-compact {
    display: flex;
    gap: 16px;
    padding: 24px;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
}

.info-card-icon {
    width: 48px;
    height: 48px;
    background: #ffffff;
    border: 1px solid #7acacd;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #7acacd;
    font-size: 20px;
    flex-shrink: 0;
}

.info-card-content h4 {
    font-size: 20px;
    font-weight: 600;
    line-height: 1.2;
    color: #1a1a1a;
    margin: 0 0 8px 0;
}

.info-card-content p {
    font-size: 16px;
    line-height: 1.5;
    color: #666666;
    margin: 0;
}

.working-hours-compact {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.working-hours-compact p {
    font-size: 16px;
    color: #666666;
    margin: 0;
}

.working-hours-compact span {
    font-weight: 500;
    color: #1a1a1a;
    display: inline-block;
    min-width: 60px;
}

/* === ТРАНСПОРТНЫЕ ТАБЫ === */
.transport-section {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 16px;
    overflow: hidden;
}

.transport-tabs {
    display: flex;
    border-bottom: 1px solid #e5e7eb;
}

.transport-tab {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 16px;
    background: transparent;
    border: none;
    font-family: "Segoe UI", sans-serif;
    font-size: 16px;
    font-weight: 500;
    color: #666666;
    cursor: pointer;
    transition: color 0.2s ease, background 0.2s ease;
    position: relative;
}

.transport-tab i {
    font-size: 18px;
}

.transport-tab.active {
    color: #7acacd;
    background: rgba(122, 202, 205, 0.05);
}

.transport-tab.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: #7acacd;
}

.transport-content {
    position: relative;
}

.transport-panel {
    display: none;
    padding: 32px;
}

.transport-panel.active {
    display: block;
}

.transport-intro {
    font-size: 16px;
    line-height: 1.7;
    color: #1a1a1a;
    margin: 0 0 24px 0;
}

.route-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.route-list li {
    position: relative;
    padding-left: 28px;
    font-size: 16px;
    line-height: 1.5;
    color: #666666;
}

.route-list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 6px;
    width: 16px;
    height: 16px;
    border: 2px solid #7acacd;
    border-radius: 50%;
    background: #ffffff;
}

.route-list li::after {
    content: '';
    position: absolute;
    left: 7px;
    top: 9px;
    width: 4px;
    height: 4px;
    background: #7acacd;
    border-radius: 50%;
}

/* === SIDEBAR === */
.contacts-sidebar {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.contact-card {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 16px;
    padding: 24px;
}

/* Экстренная связь */
.emergency-card {
    background: linear-gradient(135deg, rgba(122, 202, 205, 0.05) 0%, rgba(122, 202, 205, 0.02) 100%);
    border-color: rgba(122, 202, 205, 0.2);
}

.emergency-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: #7acacd;
    color: #ffffff;
    font-size: 14px;
    font-weight: 600;
    border-radius: 20px;
    margin-bottom: 16px;
}

.emergency-card h3 {
    font-size: 24px;
    font-weight: 600;
    line-height: 1.2;
    color: #1a1a1a;
    margin: 0 0 8px 0;
}

.emergency-card p {
    font-size: 16px;
    line-height: 1.5;
    color: #666666;
    margin: 0;
}

/* Объединённый блок телефон + email */
.unified-contact-card {
    padding: 0;
}

.contact-method {
    display: flex;
    gap: 16px;
    padding: 24px;
}

.contact-method-icon {
    width: 48px;
    height: 48px;
    background: #ffffff;
    border: 1px solid #7acacd;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #7acacd;
    font-size: 20px;
    flex-shrink: 0;
}

.contact-method-content {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.contact-label {
    font-size: 14px;
    font-weight: 500;
    color: #999999;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.contact-value {
    font-size: 18px;
    font-weight: 600;
    color: #1a1a1a;
    text-decoration: none;
    transition: color 0.2s ease;
}

.contact-value:hover {
    color: #7acacd;
}

.contact-divider {
    height: 1px;
    background: #e5e7eb;
    margin: 0;
}

/* Мессенджеры */
.messengers-card h4,
.social-card h4,
.faq-card h4 {
    font-size: 18px;
    font-weight: 600;
    line-height: 1.2;
    color: #1a1a1a;
    margin: 0 0 16px 0;
}

.messengers-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.messenger-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    background: #f8f9fa;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    text-decoration: none;
    font-size: 16px;
    font-weight: 500;
    color: #1a1a1a;
    transition: background 0.2s ease, border-color 0.2s ease;
}

.messenger-link i {
    font-size: 20px;
}

.messenger-link.whatsapp i {
    color: #25D366;
}

.messenger-link.telegram i {
    color: #0088cc;
}

.messenger-link:hover {
    background: #ffffff;
    border-color: #7acacd;
}

/* Социальные сети */
.social-links {
    display: flex;
    gap: 12px;
}

.social-link {
    width: 48px;
    height: 48px;
    background: #f8f9fa;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #666666;
    font-size: 20px;
    text-decoration: none;
    transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.social-link:hover {
    background: #7acacd;
    color: #ffffff;
    border-color: #7acacd;
}

/* FAQ карточка */
.faq-card {
    text-align: center;
}

.faq-icon {
    width: 64px;
    height: 64px;
    background: linear-gradient(135deg, rgba(122, 202, 205, 0.1) 0%, rgba(122, 202, 205, 0.05) 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #7acacd;
    font-size: 28px;
    margin: 0 auto 16px;
}

.faq-card p {
    font-size: 16px;
    line-height: 1.5;
    color: #666666;
    margin: 0 0 16px 0;
}

.faq-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 16px;
    font-weight: 600;
    color: #7acacd;
    text-decoration: none;
    transition: gap 0.2s ease;
}

.faq-link:hover {
    gap: 12px;
}

.faq-link i {
    font-size: 14px;
    transition: transform 0.2s ease;
}

.faq-link:hover i {
    transform: translateX(4px);
}

/* === CTA СЕКЦИЯ === */
.contacts-cta-section {
    position: relative;
    padding: 64px 0;
    background: #f8f9fa;
    overflow: hidden;
}

.contacts-cta-bg {
    position: absolute;
    inset: 0;
    opacity: 0.03;
    background-image:
        radial-gradient(circle at 30% 50%, rgba(122, 202, 205, 0.1) 0%, transparent 50%);
    pointer-events: none;
}

.cta-card-unified {
    position: relative;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 16px;
    padding: 48px;
}

.cta-content-wrapper {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 32px;
}

.cta-text h2 {
    font-size: 32px;
    font-weight: 600;
    line-height: 1.2;
    color: #1a1a1a;
    margin: 0 0 8px 0;
}

.cta-text p {
    font-size: 16px;
    line-height: 1.5;
    color: #666666;
    margin: 0;
}

.cta-actions {
    display: flex;
    gap: 16px;
    flex-shrink: 0;
}

.cta-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 16px 32px;
    font-family: "Segoe UI", sans-serif;
    font-size: 16px;
    font-weight: 600;
    border-radius: 8px;
    text-decoration: none;
    cursor: pointer;
    transition: opacity 0.2s ease, gap 0.2s ease;
    white-space: nowrap;
}

.cta-btn.primary {
    background: linear-gradient(135deg, #7acacd 0%, #68b8bb 100%);
    color: #ffffff;
    border: none;
}

.cta-btn.primary:hover {
    opacity: 0.9;
    gap: 12px;
}

.cta-btn.secondary {
    background: transparent;
    color: #7acacd;
    border: 1px solid #7acacd;
}

.cta-btn.secondary:hover {
    background: rgba(122, 202, 205, 0.1);
    gap: 12px;
}

/* === АДАПТИВНОСТЬ === */
@media (max-width: 1024px) {
    .contacts-layout {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .contacts-sidebar {
        max-width: 600px;
        margin: 0 auto;
    }
}

@media (max-width: 768px) {
    .contacts-hero {
        padding: 48px 0;
    }

    .contacts-hero-title {
        font-size: 32px;
    }

    .contacts-hero-subtitle {
        font-size: 16px;
    }

    .contacts-main-section {
        padding: 48px 0;
    }

    .contacts-form-wrapper {
        padding: 24px;
        margin-bottom: 24px;
    }

    .form-header h2 {
        font-size: 24px;
    }

    .info-cards-grid {
        grid-template-columns: 1fr;
        gap: 16px;
        margin-bottom: 24px;
    }

    .transport-tab {
        font-size: 14px;
        padding: 12px;
    }

    .transport-panel {
        padding: 24px;
    }

    .contacts-sidebar {
        gap: 16px;
    }

    .contact-card {
        padding: 20px;
    }

    .contacts-cta-section {
        padding: 48px 0;
    }

    .cta-card-unified {
        padding: 32px 24px;
    }

    .cta-content-wrapper {
        flex-direction: column;
        text-align: center;
        gap: 24px;
    }

    .cta-text h2 {
        font-size: 24px;
    }

    .cta-actions {
        flex-direction: column;
        width: 100%;
    }

    .cta-btn {
        width: 100%;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .contacts-hero-title {
        font-size: 28px;
    }

    .section-label {
        font-size: 12px;
    }

    .contact-form-premium input[type="text"],
    .contact-form-premium input[type="email"],
    .contact-form-premium input[type="tel"],
    .contact-form-premium textarea {
        padding: 12px;
        font-size: 14px;
    }

    .info-card-icon,
    .contact-method-icon {
        width: 40px;
        height: 40px;
        font-size: 18px;
    }

    .transport-tab span {
        display: none;
    }

    .social-links {
        justify-content: center;
    }
}
