/**
 * Стили страницы контактов БИОМЕР
 * Версия: 1.0.0
 * Высокая специфичность через .biomer-contacts-page для защиты от FSE-стилей
 */

/* ========================================================
   ОБЩИЙ КОНТЕЙНЕР СТРАНИЦЫ КОНТАКТОВ
   ======================================================== */
body.page-template-page-contacts .site-main {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px 80px;
}

/* ========================================================
   СЕКЦИЯ: КАРТОЧКИ КОНТАКТОВ (GRID 2×2 → 1 на мобильных)
   ======================================================== */
.biomer-contacts-section {
    margin: 40px 0;
}

.contacts-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}

.contact-card {
    background: var(--biomer-white);
    border: 1px solid var(--biomer-border);
    border-radius: 16px;
    padding: 32px;
    transition: all 0.25s ease;
    display: flex;
    flex-direction: column;
    gap: 16px;
    min-height: 220px;
}

.contact-card:hover {
    border-color: var(--biomer-blue);
    box-shadow: 0 12px 32px rgba(30, 64, 175, 0.08);
    transform: translateY(-4px);
}

/* Иконка карточки */
.contact-card-icon {
    width: 56px;
    height: 56px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.contact-card-icon--blue {
    background: var(--biomer-blue-light);
    color: var(--biomer-blue);
}

.contact-card-icon--red {
    background: var(--biomer-red-light);
    color: var(--biomer-red);
}

.contact-card-icon--green {
    background: var(--biomer-green-light);
    color: var(--biomer-green);
}

.contact-card-icon--purple {
    background: #f3e8ff;
    color: #7c3aed;
}

.contact-card-title {
    font-size: 20px;
    font-weight: 700;
    color: var(--biomer-text-primary);
    margin: 0;
    letter-spacing: -0.3px;
}

.contact-card-content {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

/* Телефон */
.contact-phone {
    font-size: 20px;
    font-weight: 700;
    color: var(--biomer-text-primary);
    text-decoration: none;
    line-height: 1.3;
    transition: color 0.2s;
    display: inline-block;
}

.contact-phone:hover {
    color: var(--biomer-blue);
}

/* Адрес, часы */
.contact-address,
.contact-hours {
    font-size: 15px;
    line-height: 1.6;
    color: var(--biomer-text-primary);
    margin: 0;
    font-weight: 500;
}

/* Мелкая подпись (многоканальный, выходной и т.д.) */
.contact-note {
    font-size: 13px;
    color: var(--biomer-text-muted);
    line-height: 1.4;
    display: block;
}

/* Telegram ссылка */
.contact-telegram {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 16px;
    font-weight: 600;
    color: var(--biomer-blue);
    text-decoration: none;
    transition: gap 0.2s, color 0.2s;
}

.contact-telegram:hover {
    color: var(--biomer-blue-hover);
    gap: 10px;
}

/* ========================================================
   СЕКЦИЯ: КАРТА 2GIS
   ======================================================== */
.biomer-map-section {
    margin: 56px 0;
}

.map-header {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 24px;
    flex-wrap: wrap;
    gap: 12px;
}

.map-header h2 {
    font-size: 28px;
    font-weight: 700;
    color: var(--biomer-text-primary);
    margin: 0;
    letter-spacing: -0.3px;
}

.map-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    font-weight: 600;
    color: var(--biomer-blue);
    text-decoration: none;
    transition: gap 0.2s;
}

.map-link:hover {
    gap: 10px;
}

.map-container {
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid var(--biomer-border);
    background: var(--biomer-gray-bg);
    box-shadow: 0 4px 20px rgba(15, 23, 42, 0.05);
}

.map-container iframe {
    display: block;
    width: 100%;
    height: 500px;
    border: 0;
}

/* ========================================================
   СЕКЦИЯ: РЕКВИЗИТЫ (АККОРДЕОН)
   ======================================================== */
.biomer-requisites-section {
    margin: 56px 0;
}

.requisites-header {
    margin-bottom: 24px;
}

.requisites-header h2 {
    font-size: 28px;
    font-weight: 700;
    color: var(--biomer-text-primary);
    margin: 0 0 8px;
    letter-spacing: -0.3px;
}

.requisites-header p {
    font-size: 15px;
    color: var(--biomer-text-secondary);
    margin: 0;
}

.requisites-accordion {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.accordion-item {
    background: var(--biomer-white);
    border: 1px solid var(--biomer-border);
    border-radius: 12px;
    overflow: hidden;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.accordion-item.is-open {
    border-color: var(--biomer-blue);
    box-shadow: 0 4px 16px rgba(30, 64, 175, 0.08);
}

.accordion-trigger {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 24px;
    background: transparent;
    border: none;
    cursor: pointer;
    text-align: left;
    transition: background 0.2s;
}

.accordion-trigger:hover {
    background: var(--biomer-gray-bg);
}

.accordion-title {
    font-size: 17px;
    font-weight: 600;
    color: var(--biomer-text-primary);
}

.accordion-icon {
    color: var(--biomer-text-muted);
    transition: transform 0.3s;
    flex-shrink: 0;
}

.accordion-item.is-open .accordion-icon {
    transform: rotate(180deg);
    color: var(--biomer-blue);
}

.accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.accordion-item.is-open .accordion-content {
    max-height: 800px;
}

.accordion-body {
    padding: 0 24px 24px;
    font-size: 15px;
    line-height: 1.7;
    color: var(--biomer-text-secondary);
    border-top: 1px solid var(--biomer-border);
    padding-top: 20px;
}

.accordion-body p {
    margin: 0 0 12px;
}

.accordion-body p:last-child {
    margin-bottom: 0;
}

.accordion-body strong {
    color: var(--biomer-text-primary);
    font-weight: 600;
}

/* ========================================================
   СЕКЦИЯ: CTA (ПРИЗЫВ К ДЕЙСТВИЮ)
   ======================================================== */
.biomer-cta-section {
    margin: 56px 0 0;
    background: linear-gradient(135deg, #1e40af 0%, #1e3a8a 100%);
    border-radius: 20px;
    padding: 56px 40px;
    text-align: center;
    color: white;
    box-shadow: 0 12px 40px rgba(30, 64, 175, 0.25);
}

.cta-content h2 {
    font-size: 32px;
    font-weight: 700;
    color: white;
    margin: 0 0 12px;
    letter-spacing: -0.5px;
}

.cta-content p {
    font-size: 16px;
    color: rgba(255, 255, 255, 0.85);
    margin: 0 0 32px;
    max-width: 560px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.6;
}

.cta-buttons {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
}

.cta-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 28px;
    border-radius: 12px;
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s;
    border: 2px solid transparent;
    cursor: pointer;
}

.cta-btn-primary {
    background: white;
    color: var(--biomer-blue);
}

.cta-btn-primary:hover {
    background: var(--biomer-blue-light);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.cta-btn-secondary {
    background: transparent;
    color: white;
    border-color: rgba(255, 255, 255, 0.3);
}

.cta-btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: white;
    transform: translateY(-2px);
}

/* ========================================================
   АДАПТИВНОСТЬ
   ======================================================== */

/* Планшеты (≤ 980px): 1 колонка в grid */
@media (max-width: 980px) {
    .contacts-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    
    .contact-card {
        padding: 24px;
        min-height: auto;
    }
    
    .map-container iframe {
        height: 420px;
    }
    
    .biomer-cta-section {
        padding: 40px 28px;
    }
    
    .cta-content h2 {
        font-size: 26px;
    }
}

/* Мобильные (≤ 640px) */
@media (max-width: 640px) {
    body.page-template-page-contacts .site-main {
        padding: 0 16px 60px;
    }
    
    .biomer-contacts-section {
        margin: 24px 0;
    }
    
    .biomer-map-section,
    .biomer-requisites-section,
    .biomer-cta-section {
        margin: 40px 0;
    }
    
    .map-header h2,
    .requisites-header h2 {
        font-size: 22px;
    }
    
    .contact-card {
        padding: 20px;
    }
    
    .contact-card-title {
        font-size: 18px;
    }
    
    .contact-phone {
        font-size: 18px;
    }
    
    .contact-card-icon {
        width: 48px;
        height: 48px;
    }
    
    .map-container iframe {
        height: 360px;
    }
    
    .accordion-trigger {
        padding: 16px 20px;
    }
    
    .accordion-title {
        font-size: 15px;
    }
    
    .accordion-body {
        padding: 0 20px 20px;
        padding-top: 16px;
        font-size: 14px;
    }
    
    .biomer-cta-section {
        padding: 32px 20px;
        border-radius: 16px;
    }
    
    .cta-content h2 {
        font-size: 22px;
    }
    
    .cta-content p {
        font-size: 14px;
    }
    
    .cta-buttons {
        flex-direction: column;
        width: 100%;
    }
    
    .cta-btn {
        justify-content: center;
        width: 100%;
        padding: 14px 20px;
    }
}

/* Очень маленькие экраны (≤ 380px) */
@media (max-width: 380px) {
    .contact-phone {
        font-size: 16px;
    }
    
    .contact-card-title {
        font-size: 17px;
    }
    
    .map-container iframe {
        height: 300px;
    }
}
