/* ===== КРАСИВЫЕ АНИМАЦИИ ДЛЯ ФУТЕРА ===== */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(40px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes slideInLeft {
  from {
    opacity: 0;
    transform: translateX(-30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes slideInRight {
  from {
    opacity: 0;
    transform: translateX(30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.footer {
  padding: 40px 20px 100px 20px;
  background: #2B2B2B;
  border-radius: 20px 20px 0 0;
  color: #FFFFFF;
  font-family: 'RF Dewi Extended', sans-serif;
  animation: fadeInUp 1s ease-out;
}
.footer__container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 40px;
}
.footer__left {
  flex: 0 0 25%;
  animation: slideInLeft 1s ease-out 0.2s both;
}

.footer__logo {
  display: block;
  width: auto;
  height: 60px; /* уменьшен до 60px */
  image-rendering: -webkit-optimize-contrast; /* улучшает чёткость при даунскейле (Chrome/Safari) */
  transition: all 0.3s ease;
}

.footer__logo:hover {
  transform: scale(1.05);
  filter: brightness(1.1);
}
.footer__copy {
  margin-top: 12px;
  font-size: 14px;
  line-height: 1.4;
  animation: fadeInUp 1s ease-out 0.4s both;
}

.footer__legal {
  margin-top: 20px;
  font-size: 11px;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.5);
  font-weight: 300;
  animation: fadeInUp 1s ease-out 0.6s both;
}

.footer__menu {
  flex: 0 0 50%;
  display: flex;
  gap: 40px;
  animation: fadeInUp 1s ease-out 0.6s both;
}

.footer__col {
  display: flex;
  flex-direction: column;
  animation: slideInLeft 0.8s ease-out both;
}

.footer__col:nth-child(1) { animation-delay: 0.8s; }
.footer__col:nth-child(2) { animation-delay: 1.0s; }
.footer__col:nth-child(3) { animation-delay: 1.2s; }
.footer__heading {
  font-size: 16px;
  font-weight: 700;
  margin: 0 0 12px;
  color: #FFFFFF;
}
.footer__list {
  list-style: none;
  margin: 0;
  padding: 0;
}
.footer__list a {
  text-decoration: none;
  color: #FFFFFF;
  font-size: 14px;
  font-weight: 300; /* более тонкий шрифт */
  line-height: 1.4;
  display: inline-flex;               /* увеличиваем кликабельную область */
  align-items: center;
  padding: 6px 10px;                  /* мягкая «подложка» под hover */
  border-radius: 10px;                /* скругление под подсветку */
  transition: background-color .2s ease, color .2s ease, transform .15s ease, box-shadow .2s ease;
  cursor: pointer;
  position: relative;
  overflow: hidden;
}

.footer__list a::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(232, 210, 162, 0.15), transparent);
  transition: left 0.6s ease;
}
/* Отзывчивость ссылок в выпадающем меню */
.footer__list a:hover,
.footer__list a:focus-visible {
  background: rgba(255,255,255,0.08); /* лёгкая подсветка на тёмном фоне */
  color: #E8D2A2;                      /* брендовый акцент */
  transform: translateY(-1px);         /* деликатный подъём */
  outline: none;
  box-shadow: 0 0 0 2px rgba(232,210,162,0.35) inset; /* видимый фокус с клавиатуры */
}

.footer__list a:hover::before {
  left: 100%;
}
.footer__list a:active {
  transform: translateY(0);
  background: rgba(255,255,255,0.12);
}
.footer__col--map {
  flex: 0 0 25%;
  align-items: center; /* выравниваем карту и заголовок по центру */
  margin-left: 40px; /* сдвиг вправо */
}
.footer__map {
  width: 160%; /* увеличенная ширина карты */
  height: auto;
  border-radius: 8px;
  transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  cursor: pointer;
}

.footer__map:hover {
  transform: scale(1.05) translateY(-2px);
  box-shadow: 0 8px 25px rgba(232, 210, 162, 0.2);
  filter: brightness(1.1);
}
.footer__actions {
  flex: 0 0 25%;
  display: flex;
  flex-direction: column;
  align-items: center; /* центрируем содержимое колонки */
  margin-top: 8px;  /* сдвиг вниз */
  margin-left: 10px; /* сдвиг вправо */
  gap: 16px;         /* увеличенное пространство между элементами */
}
.footer__button {
  padding: 10px 24px;
  width: 250px; /* расширенная ширина кнопки */
  background: #FFFFFF;
  color: #000000;
  border: none;
  border-radius: 20px;
  font-size: 16px; /* увеличенный размер шрифта */
  line-height: 1.4;
  font-family: 'RF Dewi Extended', sans-serif;
  cursor: pointer;
  text-decoration: none;           /* убираем подчёркивание у <a> */
  display: inline-flex;            /* центрируем содержимое по обеим осям */
  justify-content: center;
  align-items: center;
  text-align: center;
}
.footer__button:hover,
.footer__button:focus,
.footer__button:active,
.footer__button:visited {
  text-decoration: none;
}
.footer__policy,
.footer__agreement {
  font-size: 14px;
  text-decoration: underline;
  color: #FFFFFF;
  line-height: 1.4;
  align-self: center; /* центрируем под кнопкой */
  cursor: pointer;
  transition: opacity 0.2s;
}

.footer__policy:hover,
.footer__agreement:hover {
  opacity: 0.8;
}


@media screen and (min-width: 1600px) and (min-aspect-ratio: 16/9) {
  .footer__container {
    min-width: 1600px; /* минимальная ширина для больших экранов */
    /* gap: 120px; */
  }

  .footer__menu {
    gap: 120px; /* увеличенный отступ между колонками меню */
  }

  .footer__actions {
    margin-top: 18px;
  }

  .footer__button {
    width: 280px;
    border-radius: 30px;
    font-size: 20px;
  }
  .footer__policy,
  .footer__agreement {
    font-size: 16px;
  }
}
.footer__credit { 
  align-self: flex-end; /* прижимаем к правому краю колонки */
}
.footer__credit-img {
  display: block;
  max-width: 200px;   /* аккуратная ширина, при необходимости поменяем */
  width: 100%;
  height: auto;
  padding-right: 20px;
}
/* ===== Footer: responsive (tablet & mobile) ===== */
@media (max-width: 1024px) {
  .footer { padding: 32px 16px 140px 16px; }
  .footer__container {
    flex-direction: column;       /* складываем колонки в столбик */
    align-items: center;
    gap: 24px;
  }
  .footer__menu {
    width: 100%;
    flex-wrap: wrap;              /* разрешаем перенос колонок меню */
    justify-content: center;
    gap: 24px;
  }
  .footer__col { min-width: 220px; }
  .footer__col--map { display: none; }   /* скрываем карту на планшете/мобилке */

  .footer__left, .footer__actions { align-items: center; text-align: center; }
  /* Центруем логотип и колонки меню на планшетах/мобилках */
  .footer__left { width: 100%; display: flex; flex-direction: column; justify-content: center; }
  .footer__logo { margin-left: auto; margin-right: auto; }

  .footer__col { align-items: center; text-align: center; }
  .footer__heading { text-align: center; }
  .footer__list { text-align: center; }

  .footer__logo { height: auto; width: 180px; max-width: 100%; image-rendering: -webkit-optimize-contrast; }
  .footer__button { width: 220px; font-size: 15px; }
  .footer__policy,
  .footer__agreement { font-size: 13px; }
  .footer__credit { align-self: center; }
  .footer__credit-img { max-width: 160px; padding-right: 0; }
}

@media (max-width: 640px) {
  .footer { padding: 28px 14px 140px 14px; }
  .footer__container { gap: 18px; }
  .footer__menu { gap: 16px; }
  .footer__col { min-width: 100%; align-items: center; }
  .footer__list { text-align: center; }
  .footer__heading { font-size: 15px; margin-bottom: 8px; }
  .footer__list a { font-size: 13px; padding: 5px 8px; border-radius: 8px; }
  .footer__copy { font-size: 12px; }

  .footer__button { width: 200px; padding: 10px 18px; font-size: 14px; }
  .footer__policy,
  .footer__agreement { font-size: 12px; }
  .footer__logo { height: auto; width: 160px; max-width: 100%; image-rendering: -webkit-optimize-contrast; }

  /* Уменьшаем визуальный след внизу: картинку кредита делаем компактнее */
  .footer__credit-img { max-width: 140px; }
}

/* Уважение к пользователю: отключаем анимации при prefers-reduced-motion */
@media (prefers-reduced-motion: reduce) {
  .footer__left,
  .footer__copy,
  .footer__menu,
  .footer__col,
  .footer__logo,
  .footer__button,
  .footer__list a,
  .footer__map {
    animation: none !important;
    transition: none !important;
  }
  
  .footer__logo:hover,
  .footer__button:hover,
  .footer__list a:hover,
  .footer__map:hover {
    transform: none !important;
  }
  
  .footer__list a::before {
    display: none;
  }
}