/* ===== D9: FOOTER v3 — улучшенный ===== */
.footer {
  background: #151F26;
  color: #C4D2D8;
  padding: 0;
  margin: 0; /* legacy style.css:788 sets `footer { margin-bottom: 10px }` — that creates a 10px white strip below our dark footer */
}
/* Основной блок */
.footer__main {
  padding: 52px 0 0;
  border-top: 1px solid color-mix(in srgb, var(--brand-teal), transparent 85%);
}
.footer__grid {
  display: grid;
  grid-template-columns: 1.5fr 0.9fr 1fr 1.1fr 1.4fr;
  gap: 32px;
  padding-bottom: 36px;
}
.footer__logo { margin-bottom: 18px; }
.footer__logo img { height: 32px; filter: brightness(0) invert(1); }
.footer__desc { font-size: 13px; line-height: 1.7; margin-bottom: 20px; color: #7A8E96; }
.footer__social { display: flex; gap: 10px; }
.footer__social a {
  width: 38px; height: 38px;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  transition: all 0.2s;
}
.footer__social a:hover { background: var(--brand-teal); border-color: var(--brand-teal); }
.footer__social a:hover svg { fill: white; }
.footer__social svg { width: 18px; height: 18px; fill: #7A8E96; transition: fill 0.2s; }
.footer h4 {
  color: white;
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  margin-bottom: 20px;
  position: relative;
  padding-bottom: 12px;
}
.footer h4::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0;
  width: 24px; height: 2px;
  background: var(--brand-teal);
  border-radius: 1px;
}
.footer ul {
  list-style: none;
  padding: 0; /* zero out browser/Bootstrap default <ul> padding-left (~40px) — was pushing column links right of their <h4> heading */
  margin: 0;
}
.footer li { margin-bottom: 9px; }
.footer li a {
  font-size: 13px;
  color: #7A8E96;
  transition: color 0.2s, padding-left 0.2s;
}
.footer li a:hover { color: white; padding-left: 4px; }
.footer a { color: #7A8E96; transition: color 0.2s; }
.footer a:hover { color: white; }
/* Контакты */
.footer__phone-main {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
}
.footer__phone-ico {
  width: 36px; height: 36px;
  background: color-mix(in srgb, var(--brand-teal), transparent 88%);
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.footer__phone-ico svg { width: 16px; height: 16px; stroke: var(--brand-teal); fill: none; stroke-width: 2; }
.footer__phone-num {
  font-size: 18px;
  font-weight: 900;
  color: white;
  letter-spacing: -0.3px;
}
.footer__phone-num a { color: white; }
.footer__phone-num a:hover { color: var(--brand-teal); }
.footer__phone-sub { font-size: 11px; color: #5E7680; }
.footer__contact-row {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: #7A8E96;
  margin-bottom: 10px;
}
.footer__contact-row svg { width: 14px; height: 14px; stroke: var(--brand-teal); fill: none; stroke-width: 2; flex-shrink: 0; }
.footer__tg-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 14px;
  padding: 10px 20px;
  background: color-mix(in srgb, var(--brand-teal), transparent 85%);
  border: 1px solid color-mix(in srgb, var(--brand-teal), transparent 70%);
  border-radius: 10px;
  font-size: 13px;
  font-weight: 700;
  color: white;
  transition: all 0.2s;
}
.footer__tg-btn svg { width: 16px; height: 16px; fill: var(--brand-teal); }
.footer__tg-btn:hover { background: var(--brand-teal); color: white; border-color: var(--brand-teal); }
.footer__tg-btn:hover svg { fill: white; }
/* Разделитель + юр. инфо */
.footer__bottom-bar {
  border-top: 1px solid rgba(255,255,255,0.06);
  padding: 20px 0;
}
.footer__bottom-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
  color: #4A5E66;
}
.footer__legal-info {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
}
.footer__payments {
  display: flex;
  align-items: center;
  gap: 6px;
}
.footer__pay-badge {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: 4px;
  padding: 3px 10px;
  font-size: 11px;
  font-weight: 700;
  color: #5E7680;
  letter-spacing: 0.3px;
}
.footer__disclaimer {
  font-size: 11px;
  color: #3D5058;
  line-height: 1.5;
  padding: 14px 0 0;
  margin-top: 16px;
  border-top: 1px solid rgba(255,255,255,0.04);
}
/* Кнопка «Наверх» */
.scroll-top {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 44px; height: 44px;
  background: var(--brand-teal);
  color: white;
  border: none;
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s;
  box-shadow: 0 4px 16px color-mix(in srgb, var(--brand-teal), transparent 60%);
  z-index: 99;
}
.scroll-top.visible { opacity: 1; visibility: visible; }
.scroll-top:hover { background: color-mix(in srgb, var(--brand-teal), black 18%); transform: translateY(-2px); }
.scroll-top svg { width: 20px; height: 20px; stroke: white; fill: none; stroke-width: 2.5; }
