:root {
  --ancient-footer-bg: radial-gradient(circle at top, #4e2e18 0%, #2a160c 60%, #1b0f07 100%);
  --ancient-footer-overlay: rgba(255, 255, 255, 0.04);
  --ancient-footer-panel: rgba(255, 255, 255, 0.08);
  --ancient-footer-gold: #d6ae60;
  --ancient-footer-deep-gold: #b98938;
  --ancient-footer-amber: #f0c27b;
  --ancient-footer-text: #f7ede0;
  --ancient-footer-muted: rgba(247, 237, 224, 0.7);
  --ancient-footer-border: rgba(214, 174, 96, 0.35);
  --ancient-footer-shadow: rgba(0, 0, 0, 0.32);
  --ancient-footer-marquee-bg: linear-gradient(135deg, rgba(250, 242, 229, 0.92), rgba(233, 212, 186, 0.88));
}

.ancient-footer {
  position: relative;
  background: var(--ancient-footer-bg);
  color: var(--ancient-footer-text);
  padding: 3.5rem 0 2.5rem;
  overflow: hidden;
}

.ancient-footer::before,
.ancient-footer::after {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.ancient-footer::before {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.08), transparent 45%);
  opacity: 0.65;
}

.ancient-footer::after {
  background-image:
    radial-gradient(ellipse at top left, rgba(214, 174, 96, 0.16), transparent 55%),
    radial-gradient(ellipse at bottom right, rgba(214, 174, 96, 0.12), transparent 55%);
  mix-blend-mode: screen;
}

.ancient-footer a {
  color: inherit;
  text-decoration: none;
}

.ancient-footer a:hover {
  color: var(--ancient-footer-amber);
}

.ancient-footer-marquee {
  position: relative;
  overflow: hidden;
  background: var(--ancient-footer-marquee-bg);
  border-bottom: 1px solid rgba(214, 174, 96, 0.4);
  box-shadow: inset 0 -1px 0 rgba(214, 174, 96, 0.35);
}

.ancient-footer-marquee::before,
.ancient-footer-marquee::after {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  width: 80px;
  z-index: 2;
  pointer-events: none;
}

.ancient-footer-marquee::before {
  left: 0;
  background: linear-gradient(90deg, var(--ancient-footer-marquee-bg) 0%, transparent 100%);
}

.ancient-footer-marquee::after {
  right: 0;
  background: linear-gradient(270deg, var(--ancient-footer-marquee-bg) 0%, transparent 100%);
}

.ancient-footer-marquee-track {
  display: inline-flex;
  align-items: center;
  gap: 0;
  width: max-content;
  padding: 0.85rem 0;
  animation: ancientFooterMarquee 136s linear infinite;
  will-change: transform;
}

.ancient-footer-marquee-item {
  flex: 0 0 auto;
  display: block;
  border-radius: 0;
  padding: 0;
}

.ancient-footer-marquee-item img {
  display: block;
  height: 88px;
  width: auto;
  object-fit: cover;
  border-radius: 0;
  filter: saturate(0.92) contrast(1.05);
  margin: 0;
}

.ancient-footer-container {
  position: relative;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 1.75rem;
  z-index: 1;
}

.ancient-footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) repeat(2, minmax(0, 1fr));
  gap: 2.5rem;
  margin-top: 3rem;
  align-items: start;
}

.ancient-footer-column {
  position: relative;
  background: var(--ancient-footer-panel);
  border: 1px solid var(--ancient-footer-border);
  border-radius: 20px;
  padding: 1.9rem 1.8rem;
  box-shadow: 0 16px 38px rgba(0, 0, 0, 0.25), inset 0 0 0 1px rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(4px);
  overflow: hidden;
}

.ancient-footer-column::before {
  content: '';
  position: absolute;
  inset: 0.85rem;
  border-radius: 14px;
  border: 1px solid rgba(214, 174, 96, 0.28);
  pointer-events: none;
}

.ancient-footer-column h3,
.ancient-footer-column h4 {
  margin: 0;
  color: var(--ancient-footer-amber);
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.ancient-footer-column h3 {
  font-size: 1.5rem;
  margin-bottom: 0.9rem;
}

.ancient-footer-column h4 {
  font-size: 1.15rem;
  display: inline-flex;
  gap: 0.6rem;
  align-items: center;
}

.ancient-footer-column h4 i {
  color: var(--ancient-footer-amber);
  font-size: 1.1rem;
}

.ancient-footer-contact-list {
  list-style: none;
  margin: 1.5rem 0 0;
  padding: 0;
  display: grid;
  gap: 0.85rem;
}

.ancient-footer-contact-list li {
  display: flex;
  gap: 0.85rem;
  align-items: flex-start;
  color: var(--ancient-footer-text);
  font-size: 0.95rem;
}

.ancient-footer-contact-list i {
  margin-top: 0.15rem;
  color: var(--ancient-footer-amber);
  font-size: 1rem;
  flex-shrink: 0;
}

.ancient-footer-contact-list a {
  color: inherit;
  text-decoration: underline;
  text-decoration-color: rgba(214, 174, 96, 0.55);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.25em;
}

.ancient-footer-contact-list a:hover {
  color: var(--ancient-footer-amber);
}

.ancient-footer-navigation {
  display: grid;
  gap: 1.8rem;
}

.ancient-footer-link-group ul {
  list-style: none;
  margin: 1rem 0 0;
  padding: 0;
  display: grid;
  gap: 0.75rem;
}

.ancient-footer-link-group li {
  position: relative;
  padding-left: 1.4rem;
  color: var(--ancient-footer-muted);
  font-size: 0.96rem;
}

.ancient-footer-link-group li::before {
  content: '';
  position: absolute;
  left: 0.2rem;
  top: 0.45rem;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--ancient-footer-amber), var(--ancient-footer-deep-gold));
  box-shadow: 0 0 8px rgba(214, 174, 96, 0.6);
}

.ancient-footer-link-group a {
  color: inherit;
  transition: color 0.25s ease, padding-left 0.25s ease;
}

.ancient-footer-link-group a:hover {
  color: var(--ancient-footer-amber);
  padding-left: 0.2rem;
}

.ancient-footer-badges {
  margin-top: 3rem;
  display: flex;
  align-items: center;
  gap: 1.5rem;
  flex-wrap: wrap;
  justify-content: center;
}

.ancient-footer-badge-note {
  flex-basis: 100%;
  margin: 0;
  text-align: center;
  font-size: 0.8rem;
  color: rgba(247, 237, 224, 0.75);
  letter-spacing: 0.05em;
}

.ancient-footer-badge {
  display: grid;
  grid-auto-flow: row;
  justify-items: center;
  align-items: center;
  gap: 0.5rem;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(255, 255, 255, 0.65);
  border-radius: 18px;
  padding: 0.9rem 1.8rem;
  box-shadow: 0 18px 36px rgba(0, 0, 0, 0.24);
  min-height: 96px;
}

.ancient-footer-badge--primary {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(242, 230, 206, 0.9));
  border-color: rgba(214, 174, 96, 0.55);
}

.ancient-footer-badge img {
  display: block;
  max-width: 210px;
  height: auto;
  filter: saturate(0.95) contrast(1.04);
}

.ancient-footer-badge--compact img {
  max-width: 180px;
}

.ancient-footer-badge--compact {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.6), rgba(230, 210, 170, 0.9));
  border-color: rgba(214, 174, 96, 0.65);
  box-shadow: 0 12px 26px rgba(0, 0, 0, 0.25);
}

.ancient-footer-divider {
  height: 1px;
  margin: 3rem 0 2rem;
  background: linear-gradient(90deg, transparent 0%, rgba(214, 174, 96, 0.7) 50%, transparent 100%);
  opacity: 0.75;
}

.ancient-footer-meta {
  display: flex;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
  color: var(--ancient-footer-muted);
  font-size: 0.92rem;
}

.ancient-footer-meta-left {
  display: grid;
  gap: 0.75rem;
}

.ancient-footer-meta-links {
  display: flex;
  gap: 1.25rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.ancient-footer-meta-links a {
  color: inherit;
  position: relative;
  padding-left: 0.95rem;
}

.ancient-footer-meta-links a::before {
  content: '◦';
  position: absolute;
  left: 0;
  color: var(--ancient-footer-amber);
}

.ancient-footer-meta-right {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.ancient-footer-visitor {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--ancient-footer-amber);
  font-weight: 600;
}

.ancient-footer-visitor i {
  font-size: 0.95rem;
}

.ancient-back-to-top {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 54px;
  height: 54px;
  border-radius: 50%;
  border: 1px solid var(--ancient-footer-border);
  background: linear-gradient(135deg, rgba(214, 174, 96, 0.95), rgba(201, 147, 60, 0.9));
  color: #2b160c;
  display: grid;
  place-items: center;
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.32);
  cursor: pointer;
  transform: translateY(120%);
  opacity: 0;
  transition: transform 0.35s ease, opacity 0.35s ease, box-shadow 0.3s ease;
  z-index: 1000;
  pointer-events: none;
}

.ancient-back-to-top i {
  font-size: 1.1rem;
}

.ancient-back-to-top.is-visible {
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
}

.ancient-back-to-top:hover {
  box-shadow: 0 18px 34px rgba(214, 174, 96, 0.35);
}

.ancient-back-to-top:active {
  transform: translateY(2px);
}

.ancient-footer :focus-visible {
  outline: 2px solid var(--ancient-footer-amber);
  outline-offset: 4px;
  border-radius: 6px;
}

@keyframes ancientFooterMarquee {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

@media (prefers-reduced-motion: reduce) {
  .ancient-footer-marquee-track {
    animation: none;
  }
}

@media (max-width: 1180px) {
  .ancient-footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 920px) {
  .ancient-footer-container {
    padding: 0 1.25rem;
  }

  .ancient-footer-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .ancient-footer-column {
    padding: 1.7rem 1.6rem;
  }

  .ancient-footer-column::before {
    inset: 0.7rem;
  }

  .ancient-footer-badges {
    justify-content: center;
  }

  .ancient-footer-meta {
    flex-direction: column;
    gap: 1.25rem;
  }

  .ancient-footer-meta-right {
    justify-content: flex-start;
  }
}

@media (max-width: 640px) {
  .ancient-footer {
    padding: 2.75rem 0 2.25rem;
  }

  .ancient-footer-marquee-item img {
    height: 54px;
  }

  .ancient-footer-badge {
    width: 100%;
    justify-items: center;
  }

  .ancient-footer-badge img {
    max-width: 170px;
  }

  .ancient-footer-badge--compact img {
    max-width: 150px;
  }

  .ancient-footer-meta-links {
    flex-direction: column;
    gap: 0.5rem;
  }

  .ancient-back-to-top {
    right: 1.25rem;
    bottom: 1.25rem;
    width: 48px;
    height: 48px;
  }
}

@media (max-width: 430px) {
  .ancient-footer-container {
    padding: 0 1rem;
  }

  .ancient-footer-column {
    padding: 1.5rem 1.35rem;
  }

  .ancient-footer-column::before {
    inset: 0.55rem;
  }

  .ancient-footer-link-group li {
    padding-left: 1.15rem;
  }

  .ancient-footer-link-group li::before {
    left: 0;
  }

  .ancient-footer-meta-right {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.75rem;
  }
}
