.footer {
  width: 100vw;
  background: linear-gradient(
    135deg,
    var(--shadow-color) 0%,
    rgba(20, 20, 24, 0.95) 100%
  );
  color: var(--text-color-oposite);
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
  overflow: hidden;
}

.footer::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(
      ellipse at 30% 20%,
      rgba(238, 10, 16, 0.1) 0%,
      transparent 50%
    ),
    radial-gradient(
      ellipse at 70% 80%,
      rgba(169, 139, 104, 0.08) 0%,
      transparent 50%
    );
  pointer-events: none;
  z-index: 1;
}

.footer-container {
  width: 95%;
  max-width: 1480px;
  display: flex;
  flex-direction: column;
  gap: 60px;
  padding: 80px 0;
  position: relative;
  z-index: 2;
}

.footer-header {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 40px 0;
  border-bottom: 2px solid rgba(169, 139, 104, 0.3);
  position: relative;
  animation: fadeInUp 0.8s ease-out;
}

.footer-header::before {
  content: "";
  position: absolute;
  bottom: -2px;
  left: 50%;
  transform: translateX(-50%);
  width: 200px;
  height: 4px;
  background: linear-gradient(
    90deg,
    var(--primary-color),
    var(--tertiary-color),
    var(--primary-color)
  );
  animation: borderGlow 3s ease-in-out infinite alternate;
}

.footer-brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 25px;
  max-width: 600px;
  position: relative;
}

.footer-logo {
  height: 90px;
  width: auto;
  object-fit: contain;
  filter: drop-shadow(0 8px 16px rgba(238, 10, 16, 0.3));
  transition: all 0.4s ease;
  animation: logoFloat 4s ease-in-out infinite alternate;
}

.footer-logo:hover {
  transform: scale(1.05);
  filter: drop-shadow(0 12px 24px rgba(238, 10, 16, 0.5));
}

.footer-description {
  font-size: 18px;
  line-height: 1.6;
  opacity: 0.9;
  color: var(--light-color);
  text-shadow: 1px 1px 3px rgba(20, 20, 24, 0.5);
  animation: textGlow 4s ease-in-out infinite alternate;
}

.footer-main {
  display: flex;
  gap: 80px;
  justify-content: space-between;
  animation: slideInUp 0.8s ease-out 0.3s both;
}

.footer-section {
  display: flex;
  flex-direction: column;
  gap: 25px;
  flex: 1;
  position: relative;
}

.footer-section::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 3px;
  height: 0;
  background: linear-gradient(
    180deg,
    var(--primary-color),
    var(--tertiary-color)
  );
  transition: height 0.6s ease;
}

.footer-section:hover::before {
  height: 100%;
}

.footer-title {
  font-size: 24px;
  font-weight: 400;
  color: var(--tertiary-light);
  text-transform: uppercase;
  letter-spacing: 1px;
  position: relative;
  padding-left: 15px;
  text-shadow: 1px 1px 3px rgba(20, 20, 24, 0.5);
}

.footer-title::after {
  content: "";
  position: absolute;
  bottom: -5px;
  left: 15px;
  width: 50px;
  height: 2px;
  background: var(--primary-color);
  transition: width 0.4s ease;
}

.footer-section:hover .footer-title::after {
  width: 80px;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 15px;
  padding-left: 15px;
}

.footer-link {
  font-size: 16px;
  color: var(--text-color-oposite);
  opacity: 0.8;
  cursor: pointer;
  transition: all 0.4s ease;
  padding: 8px 0;
  position: relative;
  overflow: hidden;
}

.footer-link::before {
  content: "";
  position: absolute;
  left: -100%;
  bottom: 0;
  width: 100%;
  height: 2px;
  background: linear-gradient(
    90deg,
    var(--primary-color),
    var(--tertiary-color)
  );
  transition: left 0.4s ease;
}

.footer-link:hover {
  opacity: 1;
  color: var(--tertiary-light);
  transform: translateX(10px);
  text-shadow: 1px 1px 3px rgba(20, 20, 24, 0.5);
}

.footer-link:hover::before {
  left: 0;
}

.footer-contacts {
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding-left: 15px;
}

.footer-contact {
  display: flex;
  align-items: center;
  gap: 15px;
  font-size: 16px;
  padding: 10px 0;
  transition: all 0.4s ease;
  position: relative;
  cursor: pointer;
}

.footer-contact::before {
  content: "";
  position: absolute;
  left: -5px;
  top: 50%;
  transform: translateY(-50%);
  width: 0;
  height: 0;
  background: rgba(169, 139, 104, 0.2);
  transition: all 0.4s ease;
}

.footer-contact:hover {
  color: var(--tertiary-light);
  transform: translateX(10px);
}

.footer-contact:hover::before {
  width: 100%;
  height: 100%;
  left: -10px;
}

.footer-contact i {
  color: var(--primary-color);
  font-size: 18px;
  width: 20px;
  position: relative;
  z-index: 2;
  animation: iconPulse 2s ease-in-out infinite;
}

.footer-social {
  display: flex;
  flex-direction: column;
  gap: 25px;
  padding-left: 15px;
}

.social-links {
  display: flex;
  gap: 15px;
  justify-content: flex-start;
}

.social-link {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 55px;
  height: 55px;
  background: linear-gradient(
    135deg,
    var(--primary-color),
    var(--primary-dark)
  );
  color: var(--text-color-oposite);
  font-size: 22px;
  cursor: pointer;
  transition: all 0.4s ease;
  position: relative;
  overflow: hidden;
  box-shadow: 0 8px 20px rgba(238, 10, 16, 0.3);
}

.social-link::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.3),
    transparent
  );
  transition: left 0.6s ease;
}

.social-link:hover {
  background: linear-gradient(
    135deg,
    var(--tertiary-color),
    var(--tertiary-dark)
  );
  transform: translateY(-8px) rotate(5deg) scale(1.1);
  box-shadow: 0 15px 30px rgba(169, 139, 104, 0.4);
}

.social-link:hover::before {
  left: 100%;
}

.language-selector {
  display: flex;
  gap: 12px;
}

.language-btn {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 55px;
  height: 40px;
  background: transparent;
  color: var(--text-color-oposite);
  border: 2px solid var(--tertiary-color);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.4s ease;
  position: relative;
  overflow: hidden;
}

.language-btn::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 0;
  height: 100%;
  background: var(--tertiary-color);
  transition: width 0.4s ease;
  z-index: -1;
}

.language-btn:hover,
.language-btn.active {
  color: var(--light-color);
  border-color: var(--tertiary-color);
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(169, 139, 104, 0.3);
}

.language-btn:hover::before,
.language-btn.active::before {
  width: 100%;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 40px;
  border-top: 2px solid rgba(169, 139, 104, 0.3);
  position: relative;
  animation: fadeInUp 0.8s ease-out 0.6s both;
}

.footer-bottom::before {
  content: "";
  position: absolute;
  top: -2px;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(
    90deg,
    transparent,
    var(--tertiary-color),
    transparent
  );
  animation: lineGlow 3s ease-in-out infinite alternate;
}

.footer-copyright {
  font-size: 15px;
  opacity: 0.8;
  color: var(--light-color);
  text-shadow: 1px 1px 2px rgba(20, 20, 24, 0.5);
}

.footer-legal {
  display: flex;
  gap: 35px;
}

.footer-legal-link {
  font-size: 15px;
  color: var(--text-color-oposite);
  opacity: 0.8;
  cursor: pointer;
  transition: all 0.3s ease;
  padding: 5px 0;
  position: relative;
  text-decoration: none;
}

.footer-legal-link::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--tertiary-color);
  transition: width 0.3s ease;
}

.footer-legal-link:hover {
  opacity: 1;
  color: var(--tertiary-light);
  transform: translateY(-2px);
}

.footer-legal-link:hover::after {
  width: 100%;
}

/* Анимации */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(40px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes slideInUp {
  from {
    opacity: 0;
    transform: translateY(60px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes logoFloat {
  0% {
    transform: translateY(0) scale(1);
  }
  100% {
    transform: translateY(-5px) scale(1.02);
  }
}

@keyframes textGlow {
  0% {
    text-shadow: 1px 1px 3px rgba(20, 20, 24, 0.5);
  }
  100% {
    text-shadow: 1px 1px 3px rgba(20, 20, 24, 0.5),
      0 0 15px rgba(243, 238, 239, 0.2);
  }
}

@keyframes borderGlow {
  0% {
    box-shadow: 0 0 10px rgba(238, 10, 16, 0.3);
  }
  100% {
    box-shadow: 0 0 20px rgba(238, 10, 16, 0.6);
  }
}

@keyframes lineGlow {
  0% {
    opacity: 0.5;
  }
  100% {
    opacity: 1;
  }
}

@keyframes iconPulse {
  0%,
  100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.1);
  }
}

@media (max-width: 1024px) {
  .footer-container {
    width: 95%;
    gap: 50px;
  }

  .footer-header {
    padding: 30px 0;
  }

  .footer-logo {
    height: 80px;
  }

  .footer-description {
    font-size: 16px;
  }

  .footer-main {
    flex-wrap: wrap;
    gap: 50px;
  }

  .footer-section {
    flex: 1 1 calc(50% - 25px);
  }

  .footer-bottom {
    flex-direction: column;
    gap: 25px;
    text-align: center;
  }

  .footer-legal {
    justify-content: center;
  }

  .social-links {
    justify-content: center;
  }

  .language-selector {
    justify-content: center;
  }
}

@media (max-width: 768px) {
  .footer-container {
    width: 95%;
    gap: 40px;
  }

  .footer-header {
    padding: 25px 0;
  }

  .footer-logo {
    height: 70px;
  }

  .footer-description {
    font-size: 15px;
  }

  .footer-main {
    flex-direction: column;
    gap: 40px;
  }

  .footer-section {
    flex: 1;
  }

  .footer-section::before {
    display: none;
  }

  .footer-title {
    font-size: 22px;
    text-align: center;
    padding-left: 0;
  }

  .footer-title::after {
    left: 50%;
    transform: translateX(-50%);
  }

  .footer-links,
  .footer-contacts,
  .footer-social {
    align-items: center;
    text-align: center;
    padding-left: 0;
  }

  .footer-link:hover,
  .footer-contact:hover {
    transform: translateY(-2px);
  }

  .footer-link:hover::before,
  .footer-contact:hover::before {
    display: none;
  }

  .footer-legal {
    flex-direction: column;
    gap: 20px;
  }

  .social-link {
    width: 50px;
    height: 50px;
    font-size: 20px;
  }

  .social-link:hover {
    transform: translateY(-5px) scale(1.05);
  }
}
