/* =========================================================
   Shared footer — linked from every page. Markup is injected
   by js/footer.js into <div id="site-footer"></div>.
   ========================================================= */

.dm-footer {
  background: #f9fafb;
  border-top: 1px solid #e2e5ea;
  color: #111827;
  padding: 28px 18px 16px;
  flex-shrink: 0;
}
.dm-footer *, .dm-footer-lead * { box-sizing: border-box; }
.dm-footer-inner { max-width: 900px; margin: 0 auto; }
.dm-footer-cols { display: flex; gap: 28px; align-items: flex-start; }
.dm-footer-intro { flex: 1 1 0; min-width: 0; }
.dm-footer-form { flex: 0 0 60%; max-width: 60%; }
.dm-footer-title { font-size: 16px; font-weight: 700; margin: 0 0 4px; }
.dm-footer-sub { font-size: 13px; line-height: 1.5; color: #6b7280; margin: 0 0 14px; }
.dm-footer-telegram {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 9px 14px;
  border-radius: 10px;
  background: #3b6ef0;
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
  transition: background .15s;
}
.dm-footer-telegram:hover { background: #2d5cd9; }

/* Buttons sit in a row so the 'link' layout can put "Open the contact
   form" beside Telegram; with one button it behaves like before. */
.dm-footer-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.dm-footer-form-link {
  display: inline-flex;
  align-items: center;
  padding: 9px 14px;
  border-radius: 10px;
  background: #fff;
  border: 1px solid #c7d0dd;
  color: #111827;
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
  transition: background .15s, border-color .15s;
}
.dm-footer-form-link:hover { background: #eef0f4; border-color: #9daabf; }
.dm-footer-iframe {
  width: 100%;
  height: 500px;
  border: none;
  border-radius: 10px;
  background: #fff;
  border: 1px solid #e2e5ea;
}
.dm-footer-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: space-between;
  margin-top: 20px;
  padding-top: 12px;
  border-top: 1px solid #e2e5ea;
  font-size: 11.5px;
  color: #6b7280;
}

/* 'link' layout — no embedded form, so the intro gets the full width
   instead of sitting in a column beside a 60% iframe. */
.dm-footer--compact .dm-footer-inner { max-width: 900px; }
.dm-footer--compact .dm-footer-cols { display: block; }
.dm-footer--compact .dm-footer-intro { max-width: 560px; }

/* 'lead' layout — the intro moves above the page's own form (see
   js/footer.js), leaving the footer as just the copyright bar. */
.dm-footer-lead {
  background: #f9fafb;
  border-bottom: 1px solid #e2e5ea;
  color: #111827;
  padding: 22px 18px;
  flex-shrink: 0;
}
.dm-footer-lead .dm-footer-inner { max-width: 900px; margin: 0 auto; }
.dm-footer-lead .dm-footer-intro { max-width: 640px; }
.dm-footer-lead .dm-footer-sub { margin-bottom: 12px; }

.dm-footer--bar-only { padding-top: 12px; }
.dm-footer--bar-only .dm-footer-bar { margin-top: 0; padding-top: 0; border-top: none; }

@media (max-width: 600px) {
  .dm-footer-cols { flex-direction: column; gap: 18px; }
  .dm-footer-form { flex-basis: auto; max-width: 100%; width: 100%; }
  .dm-footer-iframe { height: 560px; }
}
