/* ==========================================================================
   BLOG-E — наскрізний CTA (елемент nd_cta + кінець кожної статті)
   ========================================================================== */

.nd-cta {
  --nd-cta-bg: #3D2A22;
  --nd-cta-ink: #ffffff;
  --nd-cta-muted: rgba(255, 255, 255, 0.78);
  --nd-cta-terra: #c57858;
  --nd-cta-terra-d: #8e5740;

  background: var(--nd-cta-bg);
  color: var(--nd-cta-ink);
  padding: 54px 20px;
  -webkit-font-smoothing: antialiased;
}

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

/* Світлий варіант — для сторінок зі світлими секціями. */
.nd-cta--light {
  --nd-cta-bg: #faf4e8;
  --nd-cta-ink: #2E2520;
  --nd-cta-muted: #7C6F62;
}

.nd-cta__wrap {
  max-width: 1140px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 24px 40px;
}

.nd-cta__body {
  flex: 1 1 460px;
  min-width: 0;
}

.nd-cta__title {
  margin: 0 0 10px;
  font-size: clamp(24px, 3vw, 34px);
  line-height: 1.25;
  font-weight: 700;
  color: var(--nd-cta-ink);
}

.nd-cta__text {
  margin: 0;
  font-size: 16px;
  line-height: 1.6;
  color: var(--nd-cta-muted);
}

.nd-cta__actions {
  flex: 0 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px 20px;
}

.nd-cta__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 15px 32px;
  border-radius: 999px;
  background: var(--nd-cta-terra);
  color: #ffffff;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.2;
  text-decoration: none;
  transition: background-color 0.2s ease, transform 0.15s ease;
}
.nd-cta__btn:hover,
.nd-cta__btn:focus-visible {
  background: var(--nd-cta-terra-d);
  color: #ffffff;
  transform: translateY(-1px);
}

.nd-cta__phone {
  color: var(--nd-cta-ink);
  font-size: 18px;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
}
.nd-cta__phone:hover { color: var(--nd-cta-terra); }

@media (max-width: 767px) {
  .nd-cta { padding: 40px 16px; }
  .nd-cta__wrap { gap: 20px; }
  .nd-cta__actions { width: 100%; }
  .nd-cta__btn { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  .nd-cta__btn { transition: none; }
  .nd-cta__btn:hover { transform: none; }
}
