/* ═══════════════════════════════════════════════════════════════
   Общий подвал сайта (Pages/Shared/_SiteFooter.cshtml)
   ═══════════════════════════════════════════════════════════════ */
footer.sf {
  --sf-bg1: #12391a; --sf-bg2: #1b5e20;
  background: linear-gradient(160deg, var(--sf-bg1) 0%, var(--sf-bg2) 100%);
  color: rgba(255,255,255,.78);
  text-align: left;
  padding: 0;
  font-size: .9rem;
}
/* body — flex-колонка: на коротких страницах подвал прижимается к низу экрана */
body > footer.sf { margin-top: auto; }
[data-theme="dark"] footer.sf { --sf-bg1: #0a1210; --sf-bg2: #111f15; color: rgba(255,255,255,.7); }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) footer.sf { --sf-bg1: #0a1210; --sf-bg2: #111f15; color: rgba(255,255,255,.7); }
}
footer.sf a { color: inherit; text-decoration: none; }
footer.sf .sf-in { max-width: 1180px; margin: 0 auto; padding: 0 5%; }

/* ── Колонки ── */
.sf-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.2fr; gap: 34px; padding: 44px 0 34px; }
.sf-brand-name { display: inline-block; font-size: 1.4rem; font-weight: 800; color: #fff; }
.sf-brand-name span { color: #a5d6a7; }
.sf-tag { margin: 12px 0 18px; line-height: 1.6; max-width: 340px; color: rgba(255,255,255,.66); }
.sf-cta {
  display: inline-flex; align-items: center; gap: 8px; cursor: pointer; font-family: inherit;
  padding: 11px 20px; border-radius: 12px; border: 1.5px solid #a5d6a7;
  background: transparent; color: #a5d6a7; font-size: .9rem; font-weight: 700;
  transition: background .15s, color .15s;
}
.sf-cta:hover { background: #a5d6a7; color: #12391a; }
.sf-h { color: #fff; font-size: .8rem; font-weight: 800; letter-spacing: .09em; text-transform: uppercase; margin-bottom: 14px; }
.sf-links { display: flex; flex-direction: column; gap: 10px; }
.sf-links a, .sf-city { color: rgba(255,255,255,.74); transition: color .15s; }
.sf-links a:hover { color: #fff; }
.sf-msgr { display: flex; gap: 10px; margin-top: 16px; }
.sf-msgr a {
  width: 40px; height: 40px; border-radius: 50%; color: #fff;
  display: flex; align-items: center; justify-content: center; transition: transform .15s;
}
.sf-msgr a:hover { transform: translateY(-2px); }
.sf-tg { background: #229ED9; }
.sf-wa { background: #25D366; }

/* ── Нижняя строка ── */
.sf-bottom {
  display: flex; justify-content: space-between; align-items: center; gap: 12px 24px; flex-wrap: wrap;
  padding: 18px 0 22px; border-top: 1px solid rgba(255,255,255,.12);
  font-size: .78rem; color: rgba(255,255,255,.55);
}
.sf-legal { display: flex; gap: 8px 20px; flex-wrap: wrap; }
.sf-legal a:hover { color: #fff; }
.sf-compact .sf-bottom { border-top: none; padding: 22px 0; }

/* ── Окно «Стать поставщиком» ── */
.sf-modal {
  position: fixed; inset: 0; z-index: 3000; padding: 16px;
  background: rgba(0,0,0,.55); display: none; align-items: center; justify-content: center;
}
.sf-modal.open { display: flex; }
.sf-modal-box {
  position: relative; width: 100%; max-width: 440px; max-height: 92dvh; overflow-y: auto;
  background: var(--card-bg, #fff); color: var(--text, #1a1a1a);
  border-radius: 20px; padding: 28px 24px 24px; box-shadow: 0 12px 48px rgba(0,0,0,.35);
  text-align: left;
}
.sf-modal-box h3 { font-size: 1.2rem; font-weight: 800; margin: 0 0 6px; color: var(--green-d, #1b5e20); padding-right: 28px; }
.sf-modal-sub { font-size: .85rem; color: var(--muted, #6b7280); margin: 0 0 16px; line-height: 1.5; }
.sf-modal-box label { display: block; font-size: .76rem; font-weight: 700; color: var(--muted, #6b7280); margin: 12px 0 5px; }
.sf-modal-box input {
  width: 100%; padding: 11px 13px; border-radius: 10px; font-size: .95rem; font-family: inherit;
  border: 1.5px solid var(--border, #e0e0e0); background: var(--input-bg, #f5f5f5); color: var(--text, #1a1a1a);
  outline: none; transition: border-color .15s;
}
.sf-modal-box input:focus { border-color: var(--green-l, #4caf50); }
.sf-modal-x {
  position: absolute; top: 12px; right: 14px; width: 32px; height: 32px; border: none; cursor: pointer;
  background: transparent; font-size: 1.1rem; color: var(--muted, #6b7280); border-radius: 50%;
}
.sf-modal-x:hover { background: var(--input-bg, #f5f5f5); }
.sf-modal-send {
  width: 100%; margin-top: 18px; padding: 13px; border: none; border-radius: 12px; cursor: pointer;
  background: var(--green, #2e7d32); color: #fff; font-size: .95rem; font-weight: 700; font-family: inherit;
}
.sf-modal-send:disabled { opacity: .6; cursor: default; }
.sf-modal-msg { margin-top: 12px; font-size: .85rem; line-height: 1.5; min-height: 1em; }
.sf-modal-msg.ok  { color: var(--green, #2e7d32); }
.sf-modal-msg.err { color: #e53935; }

/* ── Планшет ── */
@media (max-width: 980px) {
  .sf-grid  { grid-template-columns: 1fr 1fr; gap: 28px; }
  .sf-brand { grid-column: 1 / -1; }
}
/* ── Телефон ── */
@media (max-width: 680px) {
  .sf-grid  { grid-template-columns: 1fr 1fr; gap: 24px 18px; padding: 26px 0 22px; }
  .sf-contacts { grid-column: 1 / -1; }
  .sf-bottom { flex-direction: column; align-items: flex-start; gap: 10px; padding-bottom: 26px; }
}
