/* ==========================================================================
   CONT-B — Контактні дані (WPBakery-елемент nd_contacts)
   Палітра узгоджена з рештою сайту (#c57858 / #8e5740 / #faf4e8 / #F2EADC).
   ========================================================================== */

.nd-contacts {
  --nd-ct-card: #faf4e8;
  --nd-ct-terra: #c57858;
  --nd-ct-terra-d: #8e5740;
  --nd-ct-ink: #2E2520;
  --nd-ct-muted: #7C6F62;
  --nd-ct-line: rgba(46, 37, 32, 0.12);

  color: var(--nd-ct-ink);
  -webkit-font-smoothing: antialiased;
}

.nd-contacts *,
.nd-contacts *::before,
.nd-contacts *::after { box-sizing: border-box; }

/* Картка на світлому тлі. */
.nd-contacts--card {
  background: var(--nd-ct-card);
  border: 1px solid var(--nd-ct-line);
  border-radius: 18px;
  padding: 28px;
}

/* Світлий текст — для футера та темних секцій. */
.nd-contacts--dark {
  --nd-ct-ink: #ffffff;
  --nd-ct-muted: rgba(255, 255, 255, 0.72);
  --nd-ct-line: rgba(255, 255, 255, 0.18);
  --nd-ct-terra: #e0a184;
}

.nd-contacts__title {
  margin: 0 0 18px;
  font-size: 20px;
  line-height: 1.3;
  font-weight: 700;
  color: inherit;
}

/* --------------------------------------------------------------------------
   Список
   -------------------------------------------------------------------------- */
.nd-contacts__list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.nd-contacts__item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--nd-ct-line);
}
.nd-contacts__item:last-child { border-bottom: 0; }
.nd-contacts__item:first-child { padding-top: 0; }

.nd-contacts__icon {
  flex: 0 0 auto;
  width: 22px;
  height: 22px;
  margin-top: 2px;
  fill: none;
  stroke: var(--nd-ct-terra);
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.nd-contacts__body {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.nd-contacts__label {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--nd-ct-muted);
}

.nd-contacts__value {
  font-size: 16px;
  line-height: 1.5;
  overflow-wrap: anywhere;
}

.nd-contacts__link {
  color: inherit;
  text-decoration: none;
  border-bottom: 1px solid var(--nd-ct-line);
  transition: color 0.2s ease, border-color 0.2s ease;
}
.nd-contacts__link:hover,
.nd-contacts__link:focus-visible {
  color: var(--nd-ct-terra);
  border-color: currentColor;
}

.nd-contacts__phone {
  font-size: 18px;
  font-weight: 700;
  border-bottom: 0;
}

.nd-contacts__note {
  display: block;
  font-size: 14px;
  color: var(--nd-ct-muted);
}

/* --------------------------------------------------------------------------
   Месенджери
   -------------------------------------------------------------------------- */
.nd-contacts__messengers {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 2px;
}

.nd-contacts__msg {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 13px 7px 10px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 600;
  line-height: 1;
  color: #ffffff;
  background: var(--nd-ct-msg, var(--nd-ct-terra));
  text-decoration: none;
  transition: transform 0.15s ease, filter 0.15s ease;
}
.nd-contacts__msg:hover,
.nd-contacts__msg:focus-visible {
  color: #ffffff;
  transform: translateY(-1px);
  filter: brightness(1.06);
}

/* Фірмові кольори — впізнаваність не залежить від форми іконки. */
.nd-contacts__msg--viber { --nd-ct-msg: #7360F2; }
.nd-contacts__msg--telegram { --nd-ct-msg: #229ED9; }
.nd-contacts__msg--whatsapp { --nd-ct-msg: #25D366; }

.nd-contacts__brand-icon {
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
  fill: currentColor;
}

/* --------------------------------------------------------------------------
   Соцмережі
   -------------------------------------------------------------------------- */
.nd-contacts__socials-block {
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px solid var(--nd-ct-line);
}

.nd-contacts__socials-title {
  display: block;
  margin-bottom: 10px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--nd-ct-muted);
}

.nd-contacts__socials {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.nd-contacts__social {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  color: var(--nd-ct-ink);
  background: transparent;
  border: 1px solid var(--nd-ct-line);
  transition: color 0.2s ease, border-color 0.2s ease, transform 0.15s ease;
}
.nd-contacts__social:hover,
.nd-contacts__social:focus-visible {
  color: var(--nd-ct-terra);
  border-color: currentColor;
  transform: translateY(-1px);
}

/* --------------------------------------------------------------------------
   Мобільні
   -------------------------------------------------------------------------- */
@media (max-width: 767px) {
    #contact-row {
        gap: 24px;
    }
    .nd-dir__heading {
        flex: 1 1 auto;
    }
    .nd-contacts.nd-contacts--card.wpb_column.vc_column_container.text-default.vc_col-sm-6 {
        margin: auto 15px;
    }
}
@media (max-width: 480px) {
  .nd-contacts--card { padding: 22px 18px; }
  .nd-contacts__msg { flex: 1 1 auto; justify-content: center; }
}
