/* ==========================================================================
   Подвал сайта (.footer). Рядом с include/footer.php — под перенос в Битрикс.
   Mobile-first: база 375, затем min-width 1024 / 1440 / 1920.
   Здесь же — переиспользуемый промо-блок .promo (используется и в карточках).
   ========================================================================== */

.footer {
  background-color: var(--color-white-bg);
}

.footer__inner {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding-block: 5px;
}

.footer__panel {
  background-color: var(--color-grey);
  border-radius: var(--radius-md);
}

/* --- Контакты -------------------------------------------------------------*/
.footer__contact {
  display: flex;
  flex-direction: column;
  gap: 30px;
  padding: 15px;
}

.footer__contact-main {
  display: flex;
  align-items: flex-start;
  gap: 24px;
}

.footer__logo {
  flex: 0 0 auto;
  width: 76px;
  height: auto;
}

.footer__contact-text {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.footer__phone,
.footer__email {
  color: var(--color-black);
  text-transform: uppercase;
}

.footer__email {
  font-size: 20px;
}

.footer__address {
  font-size: 14px;
  color: var(--text-muted);
}

/* --- Меню + промо ---------------------------------------------------------*/
.footer__menu {
  display: flex;
  flex-direction: column;
}

.footer__columns {
  display: flex;
  flex-direction: column;
}

.footer__col {
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding: 15px;
}

.footer__col-title {
  font-size: 18px;
  font-weight: 700;
  color: var(--color-black);
}

.footer__links {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.footer__link {
  font-size: 16px;
  color: var(--text-muted);
  transition: color var(--transition);
}

.footer__link:hover { color: var(--color-orange); }

.footer__promo { padding: 0 15px 15px; }

/* --- Реквизиты ------------------------------------------------------------*/
.footer__legal {
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding: 15px;
}

.footer__legal-info {
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: 14px;
  color: var(--text-muted);
}

.footer__dev {
  font-size: 14px;
  color: var(--text-muted);
  transition: color var(--transition);
}

.footer__dev:hover { color: var(--color-orange); }

/* --- Промо-блок .promo (переиспользуемый) ---------------------------------*/
.promo {
  position: relative;
  display: flex;
  width: 100%;
  overflow: hidden;
  padding: 12px;
  color: var(--color-white);
  background-color: var(--color-black);
  border-radius: var(--radius-md);
}

.promo::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 0;
  /* Битрикс: путь к фото — через SITE_TEMPLATE_PATH */
  background:
    linear-gradient(rgba(15, 15, 15, 0.78), rgba(15, 15, 15, 0.78)),
    url('/assets/img/promo-gradera.jpg') center / cover no-repeat;
}

.promo__content {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding: 12px;
}

.promo__title {
  font-size: 24px;
  font-weight: 700;
  text-transform: uppercase;
}

.promo__text {
  font-size: var(--fs-s);
  color: var(--color-white-bg);
}

.promo__link {
  display: inline-flex;
  align-self: flex-start;
  align-items: center;
  gap: 8px;
  padding-bottom: 8px;
  font-size: 16px;
  color: var(--color-orange);
  border-bottom: 1px solid currentColor;
  transition: opacity var(--transition);
}

.promo__link:hover { opacity: 0.8; }

.promo__link-icon {
  flex: 0 0 auto;
  width: 18px;
  height: 18px;
}

/* ==========================================================================
   Планшет ≥1024: панели раскрываются в строки, меню в 3 колонки
   ========================================================================== */
@media (min-width: 1024px) {
  .footer__contact {
    flex-direction: row;
    align-items: flex-start;
    justify-content: space-between;
    gap: 40px;
    padding: 30px 40px;
  }

  .footer__contact-main { gap: 40px; }
  .footer__address { font-size: 18px; }

  .footer__menu {
    flex-direction: row;
    gap: 20px;
  }

  .footer__columns {
    flex: 1 1 0;
    flex-direction: row;
  }

  .footer__col {
    flex: 1 1 0;
    padding: 40px;
  }

  .footer__col-title { font-size: 20px; }
  .footer__link { font-size: 20px; }

  .footer__promo {
    flex: 1 1 0;
    display: flex;
    padding: 20px 40px 20px 0;
  }

  .footer__legal {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    padding: 20px 40px;
  }

  .footer__legal-info { font-size: 20px; }
  .footer__dev { font-size: 20px; }
}

/* ==========================================================================
   Десктоп ≥1920: увеличенные акценты промо, адрес крупнее
   ========================================================================== */
@media (min-width: 1440px) {
  .promo__title { font-size: 32px; }
}

@media (min-width: 1920px) {
  .footer__address { font-size: 24px; }
  .promo__title { font-size: 48px; }
  .promo__link { font-size: 24px; }
  .promo__link-icon { width: 30px; height: 30px; }
}
