/* ===== Footer ===== */
.footer {
  background: #afe6ff;
  color: #ffffff;
  padding: 30px ;
  font-weight: 600;
  font-family: "Times New Roman", Times, serif;
}

.footer-title {
  font-size: 22px;
  font-weight: 700;
  color: #1c759b;
  margin-bottom: 15px;
  justify-content: center;
  text-align: center;
}

/* Контейнер с колонками */
.footer-container {
  max-width: 1350px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  gap: 30px;
  justify-content: flex-end;
  margin-bottom: 30px;
}

.footer-block {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  align-items: center;   /* центр по горизонтали */
  text-align: center;    /* центр текста */
}

.footer h3 {
  margin-bottom: 15px;
  font-size: 20px;
  font-weight: 700;       /* заголовки еще более жирные */
  color: #1c759b;         /* белый цвет */
  font-family: "Times New Roman", Times, serif;
}

.footer p {
  margin: 8px 0;
  font-size: 16px;
  line-height: 1.5;
  color: #1c759b;         /* белый текст */
  font-weight: 600;       /* чуть жирнее */
}

.footer a {
  color: #1c759b;         /* акцентный цвет для ссылок */
  /* text-decoration: none; */
  font-weight: 600;
}

.footer a:hover {
  text-decoration: underline;
}

/* Иконки */
.footer-item {
  display: flex;
  align-items: center; /* иконка и текст по одной линии */
  gap: 8px;
}

.footer-icon {
  width: 20px;       /* как у map.png */
  height: 20px;
  object-fit: contain;
}

/* ===== MEDIA QUERIES ===== */
/* Планшеты горизонтальные (992px) */
@media (max-width: 992px) {
  .footer-container {
    flex-direction: column;
    justify-content: flex-end;
    gap: 20px;
  }
}

/* Планшеты вертикальные / большие телефоны (768px) */
@media (max-width: 768px) {
  .footer-container {
    flex-direction: column;
    justify-content: center;
    text-align: center;
    gap: 15px;
  }

  .footer-item {
    justify-content: center;
  }
}

/* Смартфоны (480px) */
@media (max-width: 480px) {
  .footer {
    padding: 20px 10px;
  }

  .footer h3 {
    font-size: 18px;
  }

  .footer p {
    font-size: 14px;
  }

  .footer-icon {
    width: 18px;
    height: 18px;
  }
}

/* Мелкие экраны (320px) */
@media (max-width: 320px) {
  .footer {
    padding: 15px 5px;
  }

  .footer h3 {
    font-size: 16px;
  }

  .footer p {
    font-size: 13px;
  }

  .footer-icon {
    width: 16px;
    height: 16px;
  }
}

/* ===== Нижняя подпись футера ===== */
.footer-copy {
  text-align: center;
  font-size: 16px;
  font-weight: 600;
  color: #ffffff;
  font-family: "Times New Roman", Times, serif;
}

.footer-copy-name {
  font-weight: 700;     /* чуть жирнее название */
  letter-spacing: 0.5px; /* легкое межбуквенное пространство */
}

.footer-copy::before {
  content: "";
  display: block;
  width: 100vw;        /* растягиваем на всю ширину окна */
  height: 1px;         /* толщина линии */
  background: #ffffff; /* цвет линии */
  margin-bottom: 30px; /* теперь расстояние совпадает с нижним паддингом футера */
  margin-left: calc(-50vw + 50%); /* компенсируем паддинг футера */
}

@media (max-width: 768px) {
  .footer-social-icons {
    gap: 16px;
  }
  .footer-block:first-child {
    flex: 1 1 100%;
  }
}

@media (max-width: 480px) {
  .footer-social-icons {
    gap: 14px;
  }
  .footer-social-icons img {
    width: 20px;
    height: 20px;
  }
}

@media (max-width: 320px) {
  .footer-social-icons {
    gap: 12px;
  }
  .footer-social-icons img {
    width: 18px;
    height: 18px;
  }
}

.footer-social-icons {
  display: flex;
  align-items: center;
  gap: 20px; 
}

.footer-social-icons a {
  display: inline-flex;
}

.footer-social-icons img {
  width: 35px;   /* тот же визуальный размер, что и map */
  height: 35px;
  object-fit: contain;
  transition: transform 0.25s ease, opacity 0.25s ease;
}

.footer-social-icons img:hover {
  transform: scale(1.15);
  opacity: 0.85;
}
.footer-block:first-child {
  flex: 0 0 auto;     /* не растягивается */
  max-width: none;
}
