/* 1) Глобально отключим горизонтальный скролл (страховка) 
html, body { overflow-x: hidden; } */

footer {
  margin: 0;
  padding: 0;
  background-color: rgba(255, 249, 175, 1);
  font-family: "Raleway", sans-serif;
  color: #d6dfed;

  font-size: 1.25rem;

  width: 100%;
  height: auto;  /* пусть сам растёт по контенту */
  box-sizing: border-box;
  position: relative;
}

footer a, footer h4, footer h5, footer h6, .footer__body-contact a {
  color: #242424;

  font-size: 1.25rem;
  font-weight: normal;
}

.ul-footer {
  display: flex;
  list-style: none;
  padding: 0;
  margin: 0;
}

.socials {
  gap: 20px;
}

.socials a {
  font-size: 24px;
  text-decoration: none;
  color: inherit;
}

.footer__body-links {
  display: flex;
  flex-direction: column;

  gap: 0.5rem;
}

.footer__body-links a {
  font-weight: normal;
}

.legal {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0.4rem;
  font-weight: normal;
  color: #242424;

  background-color: #fff;
}

/* Все дети внутри блока внизу секции, 
строго по центру горизонтали, с расстоянием 30px между ними, 
расположены один под другим.*/
.section-footer {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 30px;
}


/* Icon Colors */

/* Телеграм — синий логотип */
.socials .fa-telegram {
  background: linear-gradient(180deg, #2AABEE 0%, #229ED9 100%);
  background-clip: text; -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Инста — фирменный мультиградиент */
.socials .fa-instagram {
  background: linear-gradient(45deg,
    #F58529 0%, #FEDA77 22%, #F77737 33%, #DD2A7B 52%,
    #8134AF 74%, #515BD4 100%);
  background-clip: text; -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* X — аккуратный «металл» (если хочется ч/б — оставь фолбэк) */
.socials .fa-x-twitter {
  background: linear-gradient(180deg, #000000 0%, #2b2b2b 55%, #555555 100%);
  background-clip: text; -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Facebook — глубокий синий градиент */
.socials .fa-facebook {
  background: linear-gradient(180deg, #1877F2 0%, #0E5AC8 100%);
  background-clip: text; -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.footer__body {
  padding: 2rem 0;
  display: flex;
  justify-content: space-around;
}

.footer__body-legal {
  display: flex;
  flex-direction: column;
  
  gap: 0.5rem;
}

.footer__body-operating-hours-and-socials {
  display: flex;
  flex-direction: column;


  gap: 1.5rem;
}

.footer__body-operating-hours {
  display: flex;
  flex-direction: column;

  gap: 0.6rem;
}

.footer__body-contact {
  display: flex;
  flex-direction: column;

  gap: 0.5rem;
}









.social__icons a:hover {
  color: var(--color-blue, #00c6ff);
}

/* Иконки */
.social__icons-settings .fa-brands,
.social__icons-settings .fa-regular,
.social__icons-settings .fa-solid {
  font-size: 24px;
  min-width: 24px;
  
  margin-top: 0.5rem;
  transition: transform 0.3s ease, filter 0.3s ease;
}

/* ==========================================================
   ИКОНКИ WHATSAPP + EMAIL + INSTAGRAM (с градиентом и анимацией)
   ========================================================== */

/* WhatsApp */
.fa-whatsapp {
  background: linear-gradient(45deg, #25D366, #128C7E, #0bdec5);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  color: transparent;
  font-weight: bold;
  cursor: pointer;
}

.fa-whatsapp:hover {
  transform: scale(1.2) rotate(10deg);
  filter: drop-shadow(0 0 6px #25D366) drop-shadow(0 0 4px #128C7E);
}

/* Email */
.fa-envelope {
  background: linear-gradient(45deg, #1DA1F2, #0a74da, #00c6ff);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  color: transparent;
  cursor: pointer;
}

.fa-envelope:hover {
  transform: scale(1.2) rotate(-10deg);
  filter: drop-shadow(0 0 6px #00c6ff) drop-shadow(0 0 4px #1DA1F2);
}

.fa-instagram {
  background: linear-gradient(45deg,
    #f58529 0%, 
    #feda77 25%, 
    #dd2a7b 50%, 
    #8134af 75%, 
    #515bd4 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  font-weight: bold;
  cursor: pointer;
  transition: transform 0.3s ease, filter 0.3s ease;
}

.fa-instagram:hover {
  transform: scale(1.2) rotate(-10deg);
  filter: drop-shadow(0 0 6px #dd2a7b)
          drop-shadow(0 0 4px #8134af);
}



.socials {
  display: none;
}


.footer__body-adaptation-nav-and-hours {
  display: none;
}





/* ================== MOBILE ADAPTIVE ================== */
@media (max-width: 768px) {
  .footer__body {
    flex-direction: column;
    align-items: center;
    gap: 2rem;
    padding: 1.5rem 1rem;
  }

  .footer__body-legal {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
    text-align: center;
  }

  .footer__body-links {
    flex-direction: column;
    align-items: center;
    gap: 0.8rem;
  }

  .footer__body-operating-hours-and-socials {
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    text-align: center;
  }

  .footer__body-operating-hours h5 {
    font-size: 1rem;
  }

  .socials {
    justify-content: center;
    gap: 15px;
  }

  .footer__body-contact {
    align-items: center;
    text-align: center;
  }

  .social__icons {
    flex-direction: column;
    gap: 1rem;
    align-items: center;
  }

  .social__icons-settings {
    flex-direction: row;
    justify-content: center;
    gap: 0.5rem;
  }

  .social__icons-settings a {
    font-size: 20px;
  }

  footer a, footer h5 {
    font-size: 1rem;
  }

  .legal {
    font-size: 0.9rem;
    padding: 0.3rem;
  }
}

/* Для совсем маленьких экранов */
@media (max-width: 480px) {
  .footer__body {
    gap: 1.2rem;
    padding: 1rem 0.5rem;
  }

  .footer__body-links a,
  .footer__body-legal a,
  .footer__body-contact a,
  .footer__body-operating-hours h5 {
    font-size: 0.9rem;
  }

  .socials a,
  .social__icons-settings a {
    font-size: 18px;
  }
}

/*  ==========================================================
  adaptation
    ========================================================== */
@media (max-width: 1366px) {
  .footer__body {
    padding: 1.75rem 1.25rem;
  }
  footer a, footer h5 { font-size: 1.15rem; }
  .socials { gap: 18px; }
}

@media (max-width: 1024px) {
  .footer__body {
    padding: 1.5rem 1rem;
    justify-content: space-between;
    gap: 1.5rem;
  }
  .section-footer { gap: 24px; }
  .footer__body-legal, .footer__body-operating-hours-and-socials, .footer__body-contact { max-width: 420px; }
}

/* Для экранов до 768px (планшеты) */
@media (max-width: 768px) {
  .footer__body {
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
    padding: 1.25rem 1rem;
  }
  .footer__body-legal {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.8rem;
    text-align: center;
  }
  .footer__body-links {
    align-items: center;
    gap: 0.7rem;
  }
  .footer__body-operating-hours-and-socials {
    align-items: center;
    gap: 0.9rem;
    text-align: center;
  }
  .footer__body-operating-hours h5 { font-size: 1rem; }
  .socials { justify-content: center; gap: 14px; }
  .footer__body-contact { align-items: center; text-align: center; }
  .social__icons { flex-direction: column; gap: 0.9rem; align-items: center; }
  .social__icons-settings { flex-direction: row; justify-content: center; gap: 0.5rem; }
  .social__icons-settings a { font-size: 20px; }
  footer a, footer h5 { font-size: 0.95rem; }
  .legal { font-size: 0.9rem; padding: 0.3rem; }

  .socials {
    display: flex;
  }
}

/* iPhone 15 Pro Max */
@media (max-width: 480px) {
  .footer__body { gap: 1rem; padding: 0.9rem 0.5rem; }
  .footer__body-links a,
  .footer__body-legal a,
  .footer__body-contact a,
  .footer__body-operating-hours h5 { font-size: 0.9rem; }
  .socials a, .social__icons-settings a { font-size: 18px; }
  .legal { font-size: 0.85rem; }

  .footer__body-links {
    display: flex;
    flex-direction: column;
  }

  .footer__body-operating-hours {
    flex-direction: column;
  }

  .footer__body-contact {
    display: none;
  }

  .footer__body-adaptation-nav-and-hours {
    display: flex;
    gap: 3rem;
  }

  .section-footer:not(.footer__body-adaptation-nav-and-hours .section-footer) {
    display: none;
  }

  .footer__body-operating-hours-and-socials:not(.footer__body-adaptation-nav-and-hours .footer__body-operating-hours-and-socials) {
    display: none;
  }

  .footer__body-links {
    align-items: center;
    gap: 0.65rem;
  }

  .section-footer {
    margin: 0;
    padding: 0;
    gap: 0;
  }

  .footer__body-legal {
    display: none;
  }
}

/* iPhone 12 Pro */
@media (max-width: 390px) {
  .footer__body { gap: 0.9rem; padding: 0.8rem 0.4rem; }
  .footer__body-links a,
  .footer__body-legal a,
  .footer__body-contact a,
  .footer__body-operating-hours h5 { font-size: 0.85rem; }
  .socials a, .social__icons-settings a { font-size: 17px; }
  .legal { font-size: 0.8rem; padding: 0.25rem; }
}