/* ===== Footer base ===== */
/* .new_footer_area { background: #fbfbfd; } */

/* ===== Иллюстрация сверху ===== */
.footer_hero {
  /* адаптивная высота: минимум 180px, максимум 420px */
  height: clamp(180px, 22vw, 420px);

  background-image: url("/footer/footer.png");
  background-repeat: no-repeat;
  background-position: center bottom;

  /* contain = не режем иллюстрацию */
  background-size: contain;

  /* чтобы картинка не прилипала к краям на ультрашироких */
  padding-inline: 16px;
}

/* ===== Контент футера (ниже картинки) ===== */
.new_footer_top { padding: 32px 0 36px; }

/* Нижняя полоса */
.footer_bottom {
  padding: 20px 0;
  border-top: 1px solid #e8e8f0;
  font-size: 14px;
  color: #7f88a6;
}

/* Typography */
.f-title { margin-bottom: 18px; color: #263b5e; }
.f_600 { font-weight: 600; }
.f_size_18 { font-size: 18px; }

.new_footer_top p {
  font-size: 15px;
  line-height: 26px;
  color: #6a7695;
}

/* Links */
.f_list { list-style: none; padding: 0; margin: 0; }
.f_list li { margin-bottom: 10px; }
.f_list li a { color: #6a7695; text-decoration: none; }
.f_list li a:hover { color: #5e2ced; }

/* Subscribe */
.memail { height: 44px; border-radius: 10px; border: 1px solid #e2e2eb; }
.btn_get { margin-top: 12px; border-radius: 10px; border: 1px solid #5e2ced; }
.btn_get_two { background: #5e2ced; color: #fff; }
.btn_get_two:hover { background: transparent; color: #5e2ced; }

/* Social */
.f_social_icon {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}
.f_social_icon a {
  width: 44px; height: 44px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #e2e2eb;
  color: #858da8;
  text-decoration: none;
  vertical-align: middle;
}
.f_social_icon a:hover { background: #5e2ced; border-color: #5e2ced; color: #fff; }
.f_social_icon i { font-size: 20px; line-height: 1; }

/* Social icons (SVG images) */
.f_social_icon .social-icon {
  height: 32px;
  width: 32px;
  object-fit: contain;
  transition: opacity 0.3s;
}
.f_social_icon a:hover .social-icon {
  opacity: 0.7;
}
.f_social_icon a:has(.social-icon) {
  width: auto;
  height: auto;
  border: none;
  background: transparent;
}
.f_social_icon a:has(.social-icon):hover {
  background: transparent;
  border: none;
}

/* Сетка иконок 3 в ряд */
.footer-social-grid {
  display: grid;
  grid-template-columns: repeat(3, auto);
  justify-content: center;
  gap: 12px;
}

/* Логотипы партнёров */
.footer-partners {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: 8px;
}
.partner-logo {
  height: 36px;
  width: auto;
  object-fit: contain;
  opacity: 0.85;
  transition: opacity 0.2s;
}
.footer-partners a:hover .partner-logo {
  opacity: 1;
}

/* Мобильная подстройка */
@media (max-width: 576px) {
  .new_footer_top { padding: 24px 0 28px; }
  .footer_hero { height: clamp(140px, 38vw, 260px); }

  /* Единое выравнивание блоков футера на всех страницах */
  .new_footer_top .f_widget {
    text-align: center;
  }
  .new_footer_top .f_widget .f-title {
    text-align: center;
  }
  .new_footer_top .f_list {
    padding: 0;
  }
  .new_footer_top .footer-partners {
    align-items: center;
  }
  .footer_bottom {
    text-align: center;
  }
  .footer_bottom .col-lg-6 {
    text-align: center !important;
  }
}
