/* ====== FOOTER ====== */
#footer {
  font-family: 'Baloo 2', cursive !important;
  position: relative;
  display: flex;
  justify-content: center;
  align-items: flex-end;
  gap: 10px;
  padding: 0 0 5px 0; /* подстраиваем под принцессу и тапочки */
  background-color: transparent;
  overflow: visible;
  min-height: 160px;
  flex-wrap: wrap;
  animation: footerFade 0.8s ease-out;
  z-index: 1;
}

/* 👑 Принцесса */
.block-little-fairy {
  position: absolute;
  left: -155px;
  bottom: -30px;
  pointer-events: none;
  z-index: 0;
  transform: none;
  opacity: 0;
  animation: little-fairyAppear 1.5s ease-out forwards, little-fairyGlow 3s ease-in-out infinite alternate;
}

.block-little-fairy img {
  width: clamp(150px, 30vw, 260px); /* ✅ автоадаптивная ширина */
  height: auto;
  display: block;
}


/* Анимации принцессы */
@keyframes little-fairyAppear {
  0% { opacity: 0; transform: translateY(20px); }
  100% { opacity: 1; transform: translateY(0); }
}
@keyframes little-fairyGlow {
  0% { filter: drop-shadow(0 0 5px rgba(255,220,255,0.4)) drop-shadow(0 0 10px rgba(176,218,42,0.2)); }
  100% { filter: drop-shadow(0 0 10px rgba(255,220,255,0.6)) drop-shadow(0 0 20px rgba(176,218,42,0.4)); }
}

.footer-right {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-right: 35px; /* двигай вправо ближе к краю как хочешь */
    z-index: 10;
}

.copy-wrap {
  position: relative;
  left: 60px; /* двигай этим значением */
  bottom: 25px;
}

/* 💬 Подпись */
#footer p, #footer p span {
  font-family: 'Baloo 2', cursive !important;
  font-size: clamp(18px, 2.2vw, 25px);
  font-weight: 600;
  color: #2E4E2E;
  text-align: center;
  line-height: 1.2;
  position: relative;
  z-index: 10;
  bottom: 5px;
}
.footer-link {
  font-size: 16px;
  opacity: 0.7;
  color: #2E4E2E;
  text-decoration: none;
  border-bottom: 1px dashed transparent;
  transition: .2s;
}



/* 💖 Сердце + 🇩🇪 Флаг — единая мягкая пульсация */
.heart,
.flag-de {
  display: inline-block;
  vertical-align: middle;
  animation: duoPulse 3s ease-in-out infinite;
  transform-origin: center;
  will-change: transform, filter;
}


/* 💖 Сердце */
.heart {
  font-size: 24px;
  color: #ff69b4;
  margin-left: 8px;
  margin-right: 8px; /* добавлен больший отступ, чтобы не лип к флагу */
  position: relative;
  top: 3px;
  text-shadow: 0 0 5px #ff69b4, 0 0 10px #ffb6c1;
}

/* 🇩🇪 Флаг */
.flag-de {
  transform: scale(0.9);
  position: relative;
  top: 2px;
  filter: drop-shadow(0 0 2px rgba(255,220,100,0.6));
}
.flag-de:hover {
  transform: scale(1);
  filter: drop-shadow(0 0 5px rgba(255, 220, 100, 0.6));
}

@keyframes duoPulse {
  0% {
    transform: scale(1);
    filter: brightness(1);
  }
  50% {
    transform: scale(1.25);
    filter: brightness(1.4);
  }
  100% {
    transform: scale(1);
    filter: brightness(1);
  }
}
/* ✉️ Конверт */
.mail-icon {
  margin-left: 40px;
  cursor: pointer;
  position: relative;
  z-index: 10;

}
.mail-icon img {
  width: 200px;
  height: 200px;
  transition: transform 0.3s ease, filter 0.3s ease;
  background-color: transparent;
  filter: drop-shadow(0 0 25px rgba(255, 180, 50, 1)); /* фея светит ✨ */
}

.mail-icon img:hover {
  transform: scale(1.1) rotate(-3deg);
  filter: drop-shadow(0 0 50px rgba(255, 180, 50, 1));
}

/* ====== POPUP ====== */
.popup {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(0,0,0,0.4);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 1000;
}
.popup.open { display: flex; }

.popup-content {
  background-color: #B0DA2A;
  border: 3px solid #66D174;
  border-radius: 15px;
  padding: 18px 22px;
  box-shadow: 0 0 20px rgba(102,209,116,0.8);
  transform: scale(1);
  animation: fadeIn 0.4s ease;
}
@keyframes fadeIn { from { opacity: 0; transform: scale(0.9); } to { opacity: 1; transform: scale(1); } }

/* ====== ФОРМА ====== */
.footer-form {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  gap: 8px;
  background-color: rgba(255,255,255,0.4);
  padding: 10px 12px;
  border-radius: 10px;
  position: relative;
  z-index: 10;
}

.footer-form input,
.footer-form textarea {
  font-family: 'Baloo 2', cursive !important;
  border: 1px solid #66D174;
  border-radius: 6px;
  padding: 5px 8px;
  font-size: 14px;
  color: #2E4E2E;
  background-color: #fff;
  box-sizing: border-box;
}

.footer-form input[type="email"] { width: 180px; }
.footer-form textarea { width: 220px; height: 60px; resize: none; }

.send-btn {
  width: 55px;
  height: 55px;
  border: none;
  background: url('images/pismo.png') no-repeat center center;
  background-size: contain;
  background-color: transparent;
  cursor: pointer;
  transition: transform 0.3s ease, filter 0.3s ease;
}
.send-btn:hover { transform: scale(1.1) translateY(-2px); filter: drop-shadow(0 0 8px rgba(102,209,116,0.8)); }

/* 📱 Адаптив */

@keyframes footerFade {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ========================
   📱 Адаптация футера
======================== */

/* Планшеты и небольшие экраны */
@media (max-width: 900px) {
  #footer {
    flex-direction: column;
    align-items: center;
    gap: 10px;
    min-height: 230px;
    padding-bottom: 50px;
  }

  /* Принцесса — выравниваем, чтобы не вылазила за экран */
  .block-little-fairy {
    position: relative;
    left: 0;
    bottom: 0;
    transform: none;
    margin-bottom: -10px;
  }

  /* Почтовая форма */
  .footer-form {
    flex-direction: column;
    align-items: center;
    gap: 10px;
  }

  .footer-form input[type="email"],
  .footer-form textarea {
    width: 90%;
  }

  .send-btn {
    margin-top: 10px;
  }

  /* Уменьшаем текст и иконки */
  #footer p, #footer p span {
    font-size: 20px;
  }

  .mail-icon img {
    width: 150px;
    height: 150px;
  }

  }

/* Смартфоны и очень узкие экраны */
@media (max-width: 480px) {
  #footer {
    flex-direction: column;
    align-items: center;
    gap: 10px;
    min-height: 230px;
    padding-bottom: 50px;
  }

  .footer-form {
    width: 100%;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 10px;
  }

  .footer-form input[type="email"],
  .footer-form textarea {
    width: 95%;
    font-size: 15px;
  }

  #footer p, #footer p span {
    font-size: 18px;
  }

  .mail-icon img {
    width: 120px;
    height: 120px;
    margin-left: 0;
  }

  /* 💖 и 🇩🇪 исправляем прямо здесь */
  .copyright {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    width: 100%;
  }

  #footer p {
    max-width: 90%;
    margin-top: 75px;
    text-align: center;
    word-break: keep-all;
  }

  #footer p span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    flex-wrap: nowrap;
    text-align: center;
  }

  .heart {
    font-size: 22px;
    position: relative;
    top: 5px;
    margin: 0 8px;
    animation: duoPulse 3s ease-in-out infinite;
  }

  .flag-de {
    display: inline-block;
    position: relative;
    top: 3px;
    transform: scale(0.9);
    margin-left: 0;
    animation: duoPulse 3s ease-in-out infinite;
  }
  /* 👑 Фея — чуть приподнимаем, чтобы не налезала на текст */
  .block-little-fairy {
    bottom: 0; /* было -30px в основном коде — теперь выше */
  }
}


/* ✨ Единая пульсация */
@keyframes duoPulse {
  0% { transform: scale(1); filter: brightness(1); }
  50% { transform: scale(1.15); filter: brightness(1.3); }
  100% { transform: scale(1); filter: brightness(1); }
}

.footer-sep {
  margin: 0 6px;
  color: #2e4d1f;
  font-weight: normal;
    opacity: 0.6;
   margin: 4px 0;
}

.send-btn {
  width: 60px;
  height: 60px;
  background: url("../images/send.png") no-repeat center;
  background-size: contain;
  border: none;
  cursor: pointer;
}



