/* =====================================================
   contacts.css — Стили страницы Контактов
   Цвета и шрифты наследуются из style.css
   ===================================================== */

/* ---- ХЛЕБНЫЕ КРОШКИ ---- */
.breadcrumb-bar { background: var(--gray-f5); border-bottom: 1px solid var(--gray-ee); padding: 12px 0; }
.breadcrumb-inner { display: flex; align-items: center; gap: 8px; font-size: 14px; color: var(--gray-text); }
.breadcrumb-inner a { color: var(--cyan-dark); }
.breadcrumb-inner a:hover { text-decoration: underline; }
.breadcrumb-inner i { font-size: 10px; }
.breadcrumb-inner span { font-weight: 500; color: var(--dark); }

/* ---- ГЕРОЙ КОНТАКТОВ ---- */
.contacts-hero { background: linear-gradient(135deg, #0B1F47 0%, #0E3A7A 50%, #00697A 100%); padding: 60px 0 70px; color: white; }
.contacts-hero__inner { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: start; }

.page-tag {
    display: inline-flex; align-items: center; gap: 8px;
    background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.2);
    padding: 6px 16px; border-radius: 50px; font-size: 13px; margin-bottom: 18px;
}
.contacts-hero__text h1 { font-size: 42px; font-weight: 800; margin-bottom: 14px; color: white; }
.contacts-hero__text > p { font-size: 16px; color: rgba(255,255,255,.8); margin-bottom: 32px; max-width: 480px; }

.contacts-hero__phones { display: flex; flex-direction: column; gap: 14px; margin-bottom: 28px; }
.hero-phone-link {
    display: flex; align-items: center; gap: 14px;
    background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.15);
    padding: 14px 20px; border-radius: var(--r12); transition: var(--tr);
    color: white;
}
.hero-phone-link:hover { background: rgba(255,255,255,.2); }
.hpl-icon {
    width: 44px; height: 44px; border-radius: 10px;
    background: var(--cyan); color: white;
    display: flex; align-items: center; justify-content: center;
    font-size: 18px; flex-shrink: 0;
}
.hpl-icon--green { background: #25D366; }
.hero-phone-link b { display: block; font-size: 18px; font-weight: 700; }
.hero-phone-link span { font-size: 13px; color: rgba(255,255,255,.7); }

.contacts-hero__actions { display: flex; gap: 12px; flex-wrap: wrap; }
.btn-wa {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 12px 22px; background: #25D366; color: white;
    border-radius: var(--r8); font-weight: 600; font-size: 15px; transition: var(--tr);
}
.btn-wa:hover { background: #1ebc5b; }
.btn-tg {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 12px 22px; background: #229ED9; color: white;
    border-radius: var(--r8); font-weight: 600; font-size: 15px; transition: var(--tr);
}
.btn-tg:hover { background: #1a86bb; }

/* Карточки справа */
.contacts-hero__info-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; align-self: center; }
.info-card {
    background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.15);
    border-radius: var(--r12); padding: 20px;
    display: flex; align-items: flex-start; gap: 14px; color: white;
    transition: var(--tr);
}
.info-card:hover { background: rgba(255,255,255,.18); }
.info-card > i { font-size: 22px; color: var(--cyan); margin-top: 2px; flex-shrink: 0; }
.info-card b { display: block; font-size: 14px; font-weight: 700; margin-bottom: 4px; }
.info-card span { font-size: 13px; color: rgba(255,255,255,.75); line-height: 1.5; }
.info-card a { color: rgba(255,255,255,.9); }
.info-card a:hover { color: var(--cyan); }

/* ---- ОФИСЫ ---- */
.offices-section { padding: 64px 0; }
.section-title-row { display: flex; align-items: baseline; gap: 16px; margin-bottom: 32px; }
.section-title-row h2 { font-size: 28px; font-weight: 700; }
.offices-count {
    background: var(--cyan-light); color: var(--cyan-dark);
    padding: 4px 12px; border-radius: 50px; font-size: 13px; font-weight: 600;
}

.offices-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }

.office-card {
    border: 1.5px solid var(--gray-ee); border-radius: var(--r16);
    overflow: hidden; transition: var(--tr); background: var(--white);
}
.office-card:hover { border-color: var(--cyan); box-shadow: var(--sh2); }
.office-card--main { border-color: var(--cyan); }

.office-badge {
    background: linear-gradient(135deg, var(--cyan), var(--cyan-dark));
    color: white; text-align: center;
    font-size: 13px; font-weight: 700; padding: 6px;
}

.office-map-placeholder {
    background: linear-gradient(135deg, var(--cyan-light), #c8f0f5);
    height: 160px;
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    gap: 8px; color: var(--cyan-dark);
}
.office-map-placeholder i { font-size: 40px; opacity: .7; }
.office-map-placeholder span { font-size: 14px; font-weight: 600; }

.office-info { padding: 24px; }
.office-info h3 { font-size: 18px; font-weight: 700; margin-bottom: 16px; }
.office-details { margin-bottom: 20px; }
.office-details li {
    display: flex; align-items: flex-start; gap: 10px;
    margin-bottom: 10px; font-size: 14px; color: var(--gray-text);
}
.office-details i { color: var(--cyan-dark); margin-top: 3px; flex-shrink: 0; width: 14px; }
.office-details a { color: var(--dark); font-weight: 600; }
.office-details a:hover { color: var(--cyan-dark); }

.office-actions { display: flex; gap: 10px; }
.btn-map {
    flex: 1; display: inline-flex; align-items: center; justify-content: center; gap: 6px;
    padding: 9px 14px; border: 1.5px solid var(--cyan);
    color: var(--cyan-dark); border-radius: var(--r8);
    font-size: 13px; font-weight: 600; transition: var(--tr);
}
.btn-map:hover { background: var(--cyan); color: white; }
.btn-call {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 9px 14px; background: var(--cyan); color: white;
    border-radius: var(--r8); font-size: 13px; font-weight: 600; transition: var(--tr);
}
.btn-call:hover { background: var(--cyan-dark); }

/* ---- КАРТА ---- */
.map-section { padding: 0 0 64px; }
.map-section .wrap { margin-bottom: 20px; }
.map-section h2 { font-size: 28px; font-weight: 700; margin-bottom: 8px; }
.map-subtitle { font-size: 15px; color: var(--gray-text); }
.map-frame { width: 100%; }
.map-placeholder {
    background: linear-gradient(135deg, var(--cyan-light), #d8f4f8);
    height: 480px;
    display: flex; align-items: center; justify-content: center;
    border-top: 3px solid var(--cyan);
    border-bottom: 3px solid var(--cyan);
}
.map-placeholder__inner { text-align: center; }
.map-placeholder__inner i { font-size: 64px; color: var(--cyan); margin-bottom: 16px; }
.map-placeholder__inner h3 { font-size: 24px; font-weight: 700; margin-bottom: 10px; }
.map-placeholder__inner p { color: var(--gray-text); margin-bottom: 24px; }

/* ---- ФОРМА + КАНАЛЫ ---- */
.contact-form-section { padding: 64px 0; background: var(--gray-f5); }
.contact-form-wrap { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: start; }

.contact-form-card {
    background: var(--white); border-radius: var(--r16);
    padding: 40px; box-shadow: var(--sh);
    border: 1.5px solid var(--gray-ee);
}
.cfc-header { display: flex; align-items: center; gap: 16px; margin-bottom: 28px; }
.cfc-icon {
    width: 52px; height: 52px; flex-shrink: 0;
    background: var(--cyan-light); color: var(--cyan-dark);
    border-radius: 14px; display: flex; align-items: center; justify-content: center;
    font-size: 22px;
}
.cfc-header h2 { font-size: 22px; font-weight: 700; margin-bottom: 4px; }
.cfc-header p { font-size: 14px; color: var(--gray-text); }
.cform-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.fc-textarea { resize: vertical; min-height: 100px; }

/* Каналы связи */
.contact-channels h3 { font-size: 20px; font-weight: 700; margin-bottom: 20px; }
.channel-cards { display: flex; flex-direction: column; gap: 10px; margin-bottom: 28px; }
.channel-card {
    display: flex; align-items: center; gap: 14px;
    background: var(--white); border: 1.5px solid var(--gray-ee);
    border-radius: var(--r12); padding: 14px 18px; transition: var(--tr);
    color: var(--dark);
}
.channel-card:hover { box-shadow: var(--sh); transform: translateX(4px); }
.ch-icon {
    width: 42px; height: 42px; border-radius: 10px;
    display: flex; align-items: center; justify-content: center;
    font-size: 20px; color: white; flex-shrink: 0;
}
.channel-wa  .ch-icon { background: #25D366; }
.channel-tg  .ch-icon { background: #229ED9; }
.channel-vk  .ch-icon { background: #0077FF; }
.channel-mail .ch-icon { background: var(--cyan); }
.channel-card b { display: block; font-size: 15px; font-weight: 700; }
.channel-card span { font-size: 13px; color: var(--gray-text); }
.ch-arrow { margin-left: auto; color: var(--gray-text); font-size: 12px; }

/* Для организаций */
.for-corp {
    background: var(--white); border: 1.5px solid var(--gray-ee);
    border-radius: var(--r12); padding: 24px; margin-bottom: 20px;
}
.for-corp h4 { font-size: 16px; font-weight: 700; margin-bottom: 10px; display: flex; align-items: center; gap: 8px; }
.for-corp h4 i { color: var(--cyan-dark); }
.for-corp p { font-size: 14px; color: var(--gray-text); margin-bottom: 18px; line-height: 1.6; }
.for-corp__contacts { display: flex; flex-direction: column; gap: 10px; }
.for-corp__contacts a {
    display: flex; align-items: flex-start; gap: 10px;
    color: var(--dark); transition: var(--tr);
}
.for-corp__contacts a:hover { color: var(--cyan-dark); }
.for-corp__contacts i { color: var(--cyan-dark); margin-top: 3px; }
.for-corp__contacts span { font-weight: 700; font-size: 15px; }
.for-corp__contacts small { display: block; font-size: 12px; color: var(--gray-text); }

/* Реквизиты */
.requisites {
    background: var(--white); border: 1.5px solid var(--gray-ee);
    border-radius: var(--r12); padding: 24px;
}
.requisites h4 { font-size: 16px; font-weight: 700; margin-bottom: 16px; display: flex; align-items: center; gap: 8px; }
.requisites h4 i { color: var(--cyan-dark); }
.req-table { width: 100%; border-collapse: collapse; }
.req-table tr { border-bottom: 1px solid var(--gray-ee); }
.req-table tr:last-child { border-bottom: none; }
.req-table td { padding: 9px 0; font-size: 13px; }
.req-table td:first-child { color: var(--gray-text); width: 45%; }
.req-table td:last-child { font-weight: 500; color: var(--dark); }

/* ---- FAQ ---- */
.faq-section { padding: 64px 0; }
.faq-header { margin-bottom: 32px; }
.faq-header h2 { font-size: 28px; font-weight: 700; }
.faq-grid { display: flex; flex-direction: column; gap: 2px; }
.faq-item { background: var(--white); border: 1.5px solid var(--gray-ee); border-radius: var(--r12); overflow: hidden; }
.faq-q {
    width: 100%; display: flex; align-items: center; justify-content: space-between;
    gap: 16px; padding: 20px 24px;
    background: none; border: none; text-align: left;
    font-size: 16px; font-weight: 600; color: var(--dark); cursor: pointer;
    transition: var(--tr);
}
.faq-q:hover { color: var(--cyan-dark); }
.faq-q[aria-expanded="true"] { color: var(--cyan-dark); }
.faq-q[aria-expanded="true"] i { transform: rotate(45deg); color: var(--cyan-dark); }
.faq-q i { font-size: 16px; flex-shrink: 0; transition: var(--tr); }
.faq-a {
    max-height: 0; overflow: hidden; transition: max-height .35s ease, padding .3s ease;
    padding: 0 24px;
}
.faq-a.open { max-height: 300px; padding: 0 24px 20px; }
.faq-a p { font-size: 15px; color: var(--gray-text); line-height: 1.7; }

/* ---- АДАПТИВНОСТЬ ---- */
@media (max-width: 1024px) {
    .contacts-hero__inner { grid-template-columns: 1fr; }
    .contacts-hero__info-cards { grid-template-columns: repeat(2, 1fr); }
    .offices-grid { grid-template-columns: 1fr; max-width: 520px; margin: 0 auto; }
    .contact-form-wrap { grid-template-columns: 1fr; }
}

@media (max-width: 600px) {
    .contacts-hero__text h1 { font-size: 28px; }
    .contacts-hero__info-cards { grid-template-columns: 1fr; }
    .contacts-hero__actions { flex-direction: column; }
    .cform-row { grid-template-columns: 1fr; }
    .section-title-row { flex-direction: column; gap: 8px; }
}
