footer {
  color: white;
  padding: 25px;
  background: var(--main-container-bg);
  display: flex;
  flex-direction: column;
  width: 100%;
  box-sizing: border-box;
  border-top: var(--main-border);
  box-shadow: 
    0 2px 1px -1px #C1BEB5 inset,
    0 -2px 1px -1px #FCFCFA inset,
    1px 0 0.5px -0.5px #DFDFD7 inset,
    -2.5px 0 1px -1px #D4CDC5 inset;
  transform-style: preserve-3d;
  z-index: 1;
}
footer::before {
  position: absolute;
  content: "";
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(to bottom, #5eb924, #3b7f18);
  border-radius: inherit;
  box-shadow:
    0 0 0 1px #164409,
    0 -10px 10px rgba(0, 0, 0, 0.6), 
    inset 0 1px 2px rgba(255, 255, 255, 0.15),
    inset 0 -2px 6px rgba(0, 0, 0, 0.4);
  transform: translate3d(0, -0.75em, -1em);
  z-index: -1;
}
.footer-limit {
  max-width: 1204px;
  margin: 0 auto;
  width: 100%;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 40px;
  box-sizing: border-box;
}
.footer-content {
  font-size: 1rem;
  display: flex;
  justify-content: space-between;
  width: 100%;
  gap: 10px;
}
.footer-left {
  max-width: 200px;
  color: var(--main-text-color);
  font-size: 1rem;
  font-family: sans-serif;
  font-weight: bold;
}
.footer-logo-pair {
  text-shadow:
  -1px -1px 0 black,
   1px -1px 0 black,
  -1px  1px 0 black,
   1px  1px 0 black;
  display: flex; 
  align-items: center; 
  gap: 8px;
}
.footer-icon {
  width: 35px; 
  height: 35px; 
  border-radius: 50%;
  border: var(--main-border);
}

.socials-footer {
  display: flex;
  gap: 12px;
  align-items: center;
  text-shadow:
  -0.5px -0.5px 0 #000,
   0.5px -0.5px 0 #000,
  -0.5px  0.5px 0 #000,
   0.5px  0.5px 0 #000;
}
.socials-footer a {
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  color: white;
  font-size: 1.5rem;
  text-decoration: none;
}
.socials-footer a:hover {
  color: #339c16;
}
.socials-footer a i.fa-heart {
  color: red; 
}

.footer-section {
  display: flex;
  flex-direction: column;
}
.section-title {
  text-align: center;
  color:var(--main-text-color);
  font-weight: bold;
  font-size: 1rem;
  border: var(--main-border);
  font-family: sans-serif;
  padding: 0px 10px;
  border-radius: 2px;
  margin-bottom: 5px;
}
.footer-link {
  font-family: sans-serif;
  color: var(--main-text-color);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  font-size: 1rem;
  margin: 2px 0;
  cursor: pointer;
}
.footer-link:hover {
  color: #339c16;
}
.copyright {
  font-family: sans-serif;
  flex: 1 1 100%;
  text-align: center;
  font-size: 1rem;
  color: var(--main-text-color);
  font-weight: bold;
  box-shadow: 0 2px 0.75px -0.8px #164409 inset, 0 -2.5px 0.75px -0.8px #164409 inset;
}

.modals-wrapper {
  width: 100%;
  overflow: hidden;
  max-height: 0;
  transition: all 0.1s ease;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  flex-direction: column;
  background: var(--controls-bg);
  box-shadow: var(--controls-shadow);                 
  border-radius: 2px;
  gap: 15px;
}
.header.modal-expanded .modals-wrapper {
  max-height: 400px;
  padding-top: 20px;
  padding-bottom: 15px;
}
.modal-links {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 25px;
  width: 100%;
}
.button3d.modal-link {
  padding: 0.8em 1.2em;
  font-size: 0.9rem;
  text-decoration: none;
  text-align: center;
  min-width: 120px;
}

.modals-wrapper {
  width: 100%;
  overflow: hidden;
  max-height: 0;
  transition: all 0.1s ease;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  background: var(--controls-bg);
  box-shadow: var(--controls-shadow);                 
  border-radius: 2px;
  gap: 15px;
}

.modal-content-area {
  width: 100%;
  max-width: 800px;
  margin: 0 auto;
  padding: 15px;
  background: var(--content-bg);
  border-radius: 5px;
  color: white;
  font-family: sans-serif;
  line-height: 1.6;
  max-height: 300px;
  overflow-y: auto;
}
.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 15px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(0, 255, 0, 0.3);
}

.modal-header h3 {
  color: #00ff00;
  margin: 0;
  flex-grow: 1;
  text-align: center;
}

.modal-close-btn {
  background: none;
  border: none;
  color: #00ff00;
  font-size: 24px;
  cursor: pointer;
  padding: 0;
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  border-radius: 50%;
  flex-shrink: 0;
}

.modal-close-btn:hover {
  background: rgba(0, 255, 0, 0.1);
  transform: scale(1.1);
}

.modal-body {
  color: white;
  font-family: sans-serif;
  line-height: 1.6;
}
.modal-content-area h4 {
  color: #78d739;
  margin-top: 20px;
  margin-bottom: 10px;
}
.modal-content-area ul {
  margin: 10px 0;
  padding-left: 20px;
}
.modal-content-area a {
  color: #00ff00;
  text-decoration: none;
  transition: all 0.3s ease;
}
.modal-content-area a:hover {
  text-shadow: 0 0 5px rgba(0, 255, 0, 0.5);
}

.cookie-settings-link {
  color: #00ff00;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.3s ease;
}
.cookie-settings-link:hover {
  text-shadow: 0 0 10px rgba(0, 255, 0, 0.5);
}

.google-translate-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.google-translate-widget {
  padding: 10px;
  background: var(--controls-bg);
  border: var(--main-border);
  border-radius: 5px;
  box-shadow: var(--controls-shadow);
}

.google-translate-widget select {
  background: var(--content-bg);
  color: var(--main-text-color);
  border: var(--main-border);
  padding: 5px 10px;
  border-radius: 3px;
  font-family: sans-serif;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all 0.3s ease;
}

.google-translate-widget select:hover {
  box-shadow: 0 0 5px rgba(0, 255, 0, 0.3);
}

.google-translate-widget select:focus {
  outline: none;
  box-shadow: 0 0 8px rgba(0, 255, 0, 0.5);
}

.google-translate-widget option {
  background: var(--content-bg);
  color: var(--main-text-color);
  padding: 5px;
}

.translate-label {
  font-size: 0.9rem;
  color: var(--main-text-color);
  font-weight: bold;
  text-align: center;
  margin-bottom: 5px;
}

@media (max-width: 768px) {
  .modal-content-area {
    width: 90%;
  }
  .footer-content {
    flex-wrap: wrap;
    display: flex;
    justify-content: space-between;
  }
  .footer-left {
    max-width: 350px;
  }
  .copyright {
    font-size: 0.8rem;
  }
  .section-title {
    font-size: 0.7rem;
  }
  .footer-link {
    font-size: 0.7rem;
  }
  .button3d.modal-link {
    padding: 0.5em 0.5em;
    font-size: 0.7rem;
    text-decoration: none;
    text-align: center;
    min-width: 0;
  }
  .modal-links {
    gap: 10px;
    flex-wrap: wrap;
  }

  .button3d.modal-link {
    padding: 0.6em 0.8em;
    font-size: 0.8rem;
    min-width: 80px;
  }

  .modal-content-area {
    padding: 10px;
    font-size: 0.8rem;
    max-height: 250px;
  }

  .modal-content-area h3 {
    font-size: 1rem;
    margin-bottom: 10px;
  }

  .modal-content-area h4 {
    font-size: 0.9rem;
    margin-top: 15px;
    margin-bottom: 8px;
  }
}
