﻿:root {
  --ec-footer-bg: #0a0a0d;
  --ec-footer-ink: #f8fafc;
  --ec-footer-muted: #a1a1aa;
  --ec-footer-accent: #ff6b2c;
  --ec-footer-accent-2: #1dd3c9;
  --ec-footer-border: #1f1f25;
}

.ec-footer {
  position: relative;
  margin-top: 48px;
  padding: 40px 20px 24px;
  background: var(--ec-footer-bg);
  color: var(--ec-footer-ink);
  border-top: 1px solid var(--ec-footer-border);
  overflow: hidden;
  text-align: left;
}

.ec-footer::before,
.ec-footer::after {
  content: "";
  position: absolute;
  pointer-events: none;
}

.ec-footer::before {
  inset: 0;
  background:
    radial-gradient(circle at 15% 20%, rgba(255, 107, 44, 0.2), transparent 55%),
    radial-gradient(circle at 85% 20%, rgba(29, 211, 201, 0.16), transparent 55%),
    radial-gradient(circle at 50% 80%, rgba(255, 107, 44, 0.12), transparent 65%);
}

.ec-footer::after {
  left: 0;
  right: 0;
  top: 0;
  height: 4px;
  background: linear-gradient(90deg, rgba(255, 107, 44, 0.95), rgba(29, 211, 201, 0.95));
  opacity: 0.9;
}

.ec-footer__inner {
  position: relative;
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.ec-footer__top {
  display: grid;
  grid-template-columns: 1.2fr 1.2fr 1fr;
  gap: 24px;
  align-items: start;
}

.ec-footer__brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.ec-footer__brand-text {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.ec-footer__logo {
  width: 72px;
  height: 72px;
  border-radius: 18px;
  background: #111114;
  border: 1px solid rgba(255, 107, 44, 0.35);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 18px 30px rgba(255, 107, 44, 0.2);
}

.ec-footer__logo img {
  width: 50px;
  height: 50px;
  object-fit: contain;
}

.ec-footer__title {
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: 0.4px;
  text-align: center;
  width: 100%;
}

.ec-footer__tag {
  color: var(--ec-footer-muted);
  font-size: 0.92rem;
  max-width: 280px;
}

.ec-footer__section-title {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: rgba(255, 255, 255, 0.6);
  margin-bottom: 10px;
  text-align: center;
  width: 100%;
}

.ec-footer__social {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.ec-footer__chips {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 10px;
}

.ec-footer__chips a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.04);
  color: var(--ec-footer-ink);
  text-decoration: none;
  font-size: 0.85rem;
  min-height: 34px;
  width: 100%;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.ec-footer__chips a:hover {
  transform: translateY(-2px);
  border-color: rgba(255, 107, 44, 0.6);
  box-shadow: 0 12px 22px rgba(255, 107, 44, 0.2);
}

.ec-footer__chips svg {
  width: 16px;
  height: 16px;
  fill: var(--ec-footer-accent);
}

.ec-footer__meta {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.ec-footer__list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  color: var(--ec-footer-muted);
  font-size: 0.9rem;
}

.ec-footer__list span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.ec-footer__list span::before {
  content: "•";
  color: var(--ec-footer-accent-2);
}

.ec-footer__list--plain span::before {
  content: "";
  display: none;
}

.ec-footer__list--plain a {
  color: var(--ec-footer-ink);
  text-decoration: none;
}

.ec-footer__list--plain a:hover {
  color: var(--ec-footer-accent);
}

.ec-footer__bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  flex-wrap: wrap;
}

.ec-footer__reserve {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ec-footer-muted);
  font-size: 0.85rem;
}

.ec-footer__reserve-logos {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 0;
  border-radius: 999px;
  background: transparent;
  border: 0;
  box-shadow: none;
}
.ec-footer__reserve-logos img {
  display: block;
  height: 44px;
  width: auto;
  object-fit: contain;
}
.ec-footer__reserve-full { height: 28px; }

.ec-footer__copy {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.7);
  text-align: right;
  flex: 1;
}

@media (max-width: 820px) {
  .ec-footer__reserve {
    width: 100%;
    justify-content: center;
    flex-wrap: wrap;
  }
  .ec-footer__reserve-logos img { height: 38px; }
}

@media (max-width: 520px) {
  .ec-footer__reserve-logos {
    padding: 6px 8px;
    gap: 8px;
  }
  .ec-footer__reserve-logos img { height: 34px; }
}

.ec-footer__privacy {
  display: block;
  margin-top: 6px;
  font-size: 0.72rem;
  color: rgba(255, 255, 255, 0.55);
}

.ec-footer__privacy a {
  color: inherit;
  text-decoration: none;
  border-bottom: 1px dashed rgba(255, 255, 255, 0.3);
  padding-bottom: 2px;
}

.ec-footer__legal-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-left: 10px;
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.06);
  font-size: 0.72rem;
  color: rgba(255, 255, 255, 0.85);
  border-bottom: none;
  text-decoration: none;
  padding-bottom: 4px;
}

.ec-footer__privacy a:hover {
  color: var(--ec-footer-accent);
  border-bottom-color: var(--ec-footer-accent);
}

.ec-footer.ec-footer--shifted {
  margin-left: var(--ec-aside-w, 0px);
  width: calc(100% - var(--ec-aside-w, 0px));
}

@media (max-width: 980px) {
  .ec-footer__top {
    grid-template-columns: 1fr;
  }
  .ec-footer__copy {
    text-align: left;
    flex: 1 1 100%;
  }
  .ec-footer.ec-footer--shifted {
    margin-left: 0;
    width: 100%;
  }
}

@media (max-width: 640px) {
  .ec-footer {
    padding: 34px 16px 22px;
  }
  .ec-footer__chips a {
    width: 100%;
  }
  .ec-footer__privacy {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
  }
  .ec-footer__privacy a {
    align-self: flex-start;
  }
  .ec-footer__legal-btn {
    margin-left: 0;
  }
}
