/* ═══════════════════════════════════════════════════════
   contacts.css — страница контактов: баннер, панель, карта
   φ = 1.618 — spacing scale: 10 · 16 · 26 · 42 · 68 · 110
   ═══════════════════════════════════════════════════════ */

/* Body: flex column для растяжения карты до подвала */
body { display: flex; flex-direction: column }

/* Золотое сечение */
:root {
  --phi-left: 38.2%;
  --phi-right: 61.8%;
}

/* ── SLIM BANNER ─────────────────────────────── */
.page-banner {
  border-bottom: 1px solid var(--border);
  padding: 98px 40px 26px; /* 72px header + 26px = φ² × 10 */
  display: flex;
  align-items: center;
  gap: 42px; /* φ³ × 10 */
  background: #0e0e0e;
}
.banner-label {
  flex-shrink: 0;
  font-size: 10px;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 600;
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: 10px;
}
.banner-label::before {
  content: '';
  width: 24px; height: 1px;
  background: var(--accent);
  flex-shrink: 0;
}
.banner-divider { width: 1px; height: 32px; background: var(--border); flex-shrink: 0 }
.banner-text { font-size: 13px; color: var(--text-muted); line-height: 1.7; max-width: 680px }
.banner-text strong { color: var(--text); font-weight: 500 }

/* ── GOLDEN SPLIT ────────────────────────────── */
.page-body {
  flex: 1;
  display: flex;
  min-height: 420px;
}

/* Left panel — 38.2% */
.contacts-panel {
  width: var(--phi-left);
  flex-shrink: 0;
  border-right: 1px solid var(--border);
  padding: 42px 40px;
  display: flex;
  flex-direction: column;
  gap: 0;
}

/* Contact blocks side-by-side */
.contacts-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  margin-bottom: 42px;
}
.cblock-title {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 7px;
}
.cblock-title::before {
  content: '';
  width: 2px; height: 12px;
  background: var(--accent);
  border-radius: 1px;
  flex-shrink: 0;
}
.contacts-row .cblock:first-child { padding-right: 26px; border-right: 1px solid var(--border) }
.contacts-row .cblock:last-child { padding-left: 26px }

.crow { display: flex; align-items: center; gap: 8px; margin-bottom: 7px }
.cicon {
  width: 14px; height: 14px;
  flex-shrink: 0;
  color: var(--text-dim);
  display: flex;
  align-items: center;
  justify-content: center;
}
.cicon svg { width: 13px; height: 13px; fill: currentColor }
.crow a { color: var(--text-muted); text-decoration: none; font-size: 12px; transition: color var(--tr) }
.crow a:hover { color: var(--accent) }
.cname { font-size: 13px; color: var(--text); font-weight: 500 }
.cdetail { font-size: 12px; color: var(--text-muted) }

.panel-divider { height: 1px; background: var(--border); margin-bottom: 26px }

/* Address */
.caddress-title {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  gap: 7px;
}
.caddress-title::before {
  content: '';
  width: 2px; height: 12px;
  background: var(--accent);
  border-radius: 1px;
  flex-shrink: 0;
}
.caddress-body { display: flex; align-items: flex-start; gap: 8px }
.cicon-top { margin-top: 2px }
.addr-text { font-size: 12px; color: var(--text-muted); line-height: 1.75 }
.addr-hint { font-size: 11px; color: var(--text-dim); margin-top: 5px; font-style: italic }

/* Right panel — 61.8% */
.map-panel { flex: 1; position: relative; overflow: hidden }
.map-panel iframe {
  width: 100%; height: 100%;
  border: none;
  display: block;
  filter: grayscale(.35) brightness(.8);
  transition: filter .4s ease;
}
.map-panel:hover iframe { filter: grayscale(0) brightness(.95) }


/* ── RESPONSIVE ───────────────────────────── */
@media (max-width: 1100px) {
  .page-banner { padding: 94px 24px 22px; gap: 26px }
  .contacts-panel { padding: 32px 24px; width: 42% }
}

@media (max-width: 768px) {
  .page-banner { padding: 78px 16px 18px; gap: 16px; flex-wrap: wrap }
  .banner-divider { display: none }
  .banner-label { width: 100% }
  .page-body { flex-direction: column; min-height: auto }
  .contacts-panel {
    width: 100%;
    border-right: none;
    border-bottom: 1px solid var(--border);
    padding: 28px 16px;
  }
  .map-panel { min-height: 300px }
}

@media (max-width: 480px) {
  .page-banner { padding: 70px 12px 16px }
  .contacts-panel { padding: 22px 12px }
  .contacts-row { grid-template-columns: 1fr; gap: 0 }
  .contacts-row .cblock:first-child {
    padding-right: 0;
    border-right: none;
    padding-bottom: 22px;
    border-bottom: 1px solid var(--border);
    margin-bottom: 22px;
  }
  .contacts-row .cblock:last-child { padding-left: 0 }
  .map-panel { min-height: 250px }
}
