/* ===========================================================================
   contacts/style.css — страница «Контакты» (/about/contacts/, Figma
   «1920 О компании_Контакты» 234:5977). Подключает /about/contacts/index.php.
   Карта 2ГИС слева, справа панель: список (стили текста .content),
   соцсети на синей плашке (.social из ui.css, включаемая область подвала),
   ссылки с иконкой и кнопка формы. Заголовок h1 — header.php.
   =========================================================================== */

@layer components {

  .contacts {
    display: grid;
    gap: 10px;
  }

  /* Карта: виджет 2ГИС рисует iframe, скругление и тень — на обёртке */
  .contacts > :first-child {
    align-self: start;
    overflow: hidden;
    border-radius: var(--radius-quote);
    box-shadow: 4px 4px 10px rgb(174 194 211 / 0.25); /* «Тень карточки» */
  }

  .contacts > :first-child .dg-widget-link { display: none; }

  .contacts > .content {
    padding: 20px;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-quote);
  }

  .contacts > .content > * + * { margin-top: 20px; }

  .contacts b {
    color: var(--color-text);
    font-weight: var(--fw-medium);
  }

  /* «Давайте дружить:» и соцсети — синяя плашка */
  .contacts > .content > div:has(.social) {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
    padding: 12px;
    border-radius: var(--radius-control);
    background: var(--color-blue);
  }

  .contacts > .content > div:has(.social) b { color: var(--color-white); }

  /* Соцсети — список, а .content даёт спискам маркеры и столбик */
  .contacts .social {
    flex-direction: row;
    flex-wrap: wrap;
  }

  .contacts .social li { padding-left: 0; }
  .contacts .social li::before { content: none; }

  /* Ссылки строками с иконкой справа и линией снизу */
  .contacts nav a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    min-height: 40px;
    padding: 4px 10px 4px 5px;
    border-bottom: 1px solid var(--color-gray-200);
    color: var(--color-gray-800);
    font-size: var(--fs-text-l);
    line-height: 1;
    transition: color var(--transition);
  }

  .contacts nav a::after {
    content: "";
    flex-shrink: 0;
    width: 24px;
    height: 24px;
    background: url(../img/up-right-circle-gray.svg) no-repeat center / contain;
  }

  .contacts nav a:hover {
    color: var(--color-blue);
    text-decoration: none;
  }

  @media (width >= 1024px) {
    .contacts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  }
}
