/* ============================================================
   Блок: contacts
   ============================================================ */

@layer components {
  .contacts__grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--sp-3);
  }
  .contacts__main, .contacts__depts {
    background: var(--surface);
    border-radius: var(--radius-5);
    padding: var(--sp-5);
  }
  .contacts__heading { font-size: 1.2rem; margin-bottom: var(--sp-3); }
  .contacts__info { display: flex; flex-direction: column; gap: var(--sp-3); }
  .contacts__row {
    display: flex;
    gap: var(--sp-2);
    align-items: flex-start;
    color: var(--fg);
    font-weight: 300;
  }
  .contacts__row .icon { color: var(--accent); width: 1.3em; height: 1.3em; margin-top: 0.2em; }
  .contacts__row a { color: var(--fg); font-weight: 500; }
  .contacts__row a:hover { color: var(--accent); }

  .depts { display: flex; flex-direction: column; }
  .dept {
    display: flex;
    justify-content: space-between;
    gap: var(--sp-2);
    padding: var(--sp-2) 0;
    border-bottom: 1px solid var(--border);
    flex-wrap: wrap;
  }
  .dept:last-child { border-bottom: none; }
  .dept__name { font-weight: 400; }
  .dept__meta { display: flex; flex-direction: column; align-items: flex-end; gap: 0.15rem; }
  .dept__meta a { color: var(--accent); font-weight: 600; }
  .dept__meta span { font-size: var(--fs-meta); color: var(--muted); font-weight: 200;}

  @media (min-width: 900px) {
    .contacts__grid { grid-template-columns: 1fr 1.1fr; }
  }
}
