/* ============================================================
   «ФОРМАТ» — подвал: тёмный архивный блок с CTA, четырьмя колонками,
   полосой гарантий и крупной нижней строкой.
   ============================================================ */

.fmt-footer {
  margin-top: 46px;
  background:
    radial-gradient(100% 120% at 0 0, rgba(33, 81, 224, .22), transparent 52%),
    linear-gradient(170deg, #0e1729 0%, #0b1220 60%, #080d17 100%);
  color: #d9e1ee;
}
.fmt-footer a { text-decoration: none; }
.fmt-footer__cta,
.fmt-footer__grid,
.fmt-footer__guarantees,
.fmt-footer__bottom {
  max-width: 1520px;
  margin: 0 auto;
  padding-left: 30px;
  padding-right: 30px;
}
.fmt-footer__cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  padding-top: 38px;
  padding-bottom: 32px;
  border-bottom: 1px solid rgba(255, 255, 255, .14);
}
.fmt-footer__kicker {
  margin: 0 0 10px !important;
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--fmt-accent);
}
.fmt-footer__lead {
  margin: 0 !important;
  max-width: 54ch;
  font-family: var(--fmt-display);
  font-size: clamp(17px, 1.8vw, 24px);
  font-weight: 500;
  letter-spacing: -.02em;
  line-height: 1.3;
  color: #fff;
}
.fmt-footer__cta-actions { display: flex; flex-wrap: wrap; gap: 10px; flex: 0 0 auto; }

.fmt-footer__grid {
  display: grid;
  grid-template-columns: minmax(260px, 1.4fr) repeat(3, minmax(150px, .7fr));
  gap: 40px;
  padding-top: 40px;
  padding-bottom: 36px;
}
.fmt-footer__brand { min-width: 0; }
.fmt-brand--light { color: #fff; }
.fmt-brand--light .fmt-brand__mark { background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .2); }
.fmt-brand--light .fmt-brand__mark::after { background: var(--fmt-accent); }
.fmt-brand--light .fmt-brand__name { color: #fff; }
.fmt-brand--light .fmt-brand__tag { color: rgba(255, 255, 255, .42); }
.fmt-footer__about { margin: 18px 0 16px; max-width: 40ch; font-size: 12.5px; line-height: 1.6; color: rgba(217, 225, 238, .6) !important; }
.fmt-footer__phone { display: block; font-family: var(--fmt-display); font-size: 19px; font-weight: 500; letter-spacing: -.02em; color: #fff; }
.fmt-footer__phone:hover { color: var(--fmt-accent); }
.fmt-footer__email { display: inline-block; margin-top: 4px; padding-bottom: 1px; border-bottom: 1px solid rgba(255, 255, 255, .25); font-size: 12.5px; color: rgba(217, 225, 238, .7); }
.fmt-footer__email:hover { color: #fff; border-color: var(--fmt-accent); }
.fmt-footer__title { margin: 0 0 14px !important; font-size: 9.5px !important; font-weight: 700 !important; letter-spacing: .18em !important; text-transform: uppercase; color: rgba(255, 255, 255, .42) !important; }
.fmt-footer__links { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 0; }
.fmt-footer__links a { display: block; padding: 5px 0; font-size: 12.5px; line-height: 1.4; color: rgba(217, 225, 238, .7); }
.fmt-footer__links a:hover { color: var(--fmt-accent); }

.fmt-footer__guarantees {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
  padding-top: 22px;
  padding-bottom: 22px;
  border-top: 1px solid rgba(255, 255, 255, .14);
  border-bottom: 1px solid rgba(255, 255, 255, .14);
  list-style: none;
  margin: 0 auto;
}
.fmt-footer__guarantee { padding: 4px 22px; border-right: 1px solid rgba(255, 255, 255, .1); display: flex; flex-direction: column; gap: 3px; }
.fmt-footer__guarantee:first-child { padding-left: 0; }
.fmt-footer__guarantee:last-child { border-right: 0; }
.fmt-footer__g-title { font-family: var(--fmt-display); font-size: 13px; font-weight: 500; letter-spacing: -.01em; color: var(--fmt-accent); }
.fmt-footer__g-text { font-size: 11px; line-height: 1.4; color: rgba(217, 225, 238, .55); }

.fmt-footer__bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding-top: 20px;
  padding-bottom: 24px;
}
.fmt-footer__bottom p { margin: 0; font-size: 10.5px; line-height: 1.5; color: rgba(225, 232, 243, .62); }
.fmt-footer__top {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 36px;
  padding: 0 14px;
  border: 1px solid rgba(255, 255, 255, .24);
  border-radius: 999px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: #fff;
  white-space: nowrap;
}
.fmt-footer__top:hover { background: var(--fmt-accent); border-color: var(--fmt-accent); color: var(--fmt-ink); }

@media (max-width: 1180px) {
  .fmt-footer__grid { grid-template-columns: minmax(240px, 1.2fr) repeat(2, minmax(140px, .8fr)); gap: 30px; }
  .fmt-footer__brand { grid-row: span 2; }
}
@media (max-width: 900px) {
  .fmt-footer__cta { flex-direction: column; align-items: flex-start; gap: 20px; }
  .fmt-footer__guarantees { grid-template-columns: 1fr 1fr; gap: 16px 0; }
  .fmt-footer__guarantee:nth-child(2) { border-right: 0; }
  .fmt-footer__guarantee:nth-child(3) { padding-left: 0; }
}
@media (max-width: 767px) {
  .fmt-footer__cta, .fmt-footer__grid, .fmt-footer__guarantees, .fmt-footer__bottom { padding-left: 20px; padding-right: 20px; }
  .fmt-footer__grid { grid-template-columns: 1fr 1fr; padding-top: 28px; gap: 24px; }
  .fmt-footer__brand { grid-column: 1 / -1; grid-row: auto; }
  .fmt-footer__guarantees { grid-template-columns: 1fr; gap: 0; }
  .fmt-footer__guarantee { padding: 10px 0; border-right: 0; border-bottom: 1px solid rgba(255, 255, 255, .08); }
  .fmt-footer__guarantee:first-child { padding-left: 0; }
  .fmt-footer__guarantee:last-child { border-bottom: 0; }
  .fmt-footer__bottom { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 480px) {
  .fmt-footer__grid { grid-template-columns: 1fr; }
  .fmt-footer__cta-actions { width: 100%; }
  .fmt-footer__cta-actions .fmt-btn { flex: 1 1 auto; }
}

/* не перекрываем «Наверх» кнопкой чата */
@media (min-width: 768px) {
  .fmt-footer__bottom { padding-right: 104px; }
}

.fmt-footer__title { color: rgba(255, 255, 255, .62) !important; }
