/*
 * Footer — Galaxy 71 (step 1.9, mobile-first)
 * Copyright (c) 2026 Bratish Ltd & ExeCode Studio.
 */

@import url('../_tokens.css');

@import url('../_motion.css');
.footer {
  background: linear-gradient(180deg, #03050a 0%, #01020a 100%);
  padding: clamp(50px, 8vh, 80px) clamp(16px, 5vw, 40px) clamp(28px, 4vh, 40px);
  color: var(--muted);
  border-top: 1px solid rgba(var(--white-rgb), 0.05);
  position: relative;
}

/* Тонкая световая полоска сверху — визуальная граница от предыдущего блока */
.footer::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(var(--accent-rgb), 0.2), transparent);
}

.footer__inner {
  max-width: var(--max-w);
  margin: 0 auto;
}

/* ======== CTA2 (повтор главной кнопки, по центру сверху футера) ======== */
.footer__cta-wrap {
  text-align: center;
  margin-bottom: clamp(36px, 6vh, 56px);
}

.footer__cta {
  position: relative;
  display: inline-block;
  min-height: 50px;
  padding: 15px 36px;
  background: linear-gradient(135deg, var(--gold) 0%, var(--gold-2) 100%);
  color: #1a0c00;
  text-decoration: none;
  font-weight: 800;
  font-size: clamp(15px, 3.8vw, 17px);
  letter-spacing: 0.5px;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(var(--gold-rgb), 0.35), 0 2px 8px rgba(var(--black-rgb), 0.4);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
  -webkit-tap-highlight-color: transparent;
  overflow: visible;
}
.footer__cta-text { position: relative; z-index: 2; }
.footer__cta-glow {
  position: absolute;
  inset: -6px;
  border-radius: 16px;
  background: radial-gradient(circle, rgba(255,165,0,0.45) 0%, transparent 70%);
  z-index: 0;
  opacity: 0.5;
  filter: blur(8px);
}
.footer__cta:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 16px 42px rgba(var(--gold-rgb), 0.55);
}
.footer__cta:active { transform: translateY(-1px); }
.footer__cta-hint {
  margin-top: 14px;
  font-size: clamp(12px, 2.8vw, 13px);
  color: var(--muted-2);
  font-style: italic;
  opacity: 0.85;
}

/* ======== Колонки информации ======== */
.footer__cols {
  display: grid;
  gap: clamp(24px, 4vw, 40px);
  grid-template-columns: 1fr;
  margin-bottom: clamp(36px, 6vh, 48px);
  padding-bottom: clamp(28px, 4vh, 36px);
  border-bottom: 1px solid rgba(var(--white-rgb), 0.06);
}
@media (min-width: 720px) {
  .footer__cols {
    grid-template-columns: 1fr 1fr 1.8fr;  /* 3-я колонка шире для адреса */
  }
}

.footer__col-title {
  font-size: clamp(11px, 2.4vw, 13px);
  font-weight: 700;
  letter-spacing: 2px;
  color: var(--accent);
  text-transform: uppercase;
  margin: 0 0 14px;
}

.footer__list {
  list-style: none;
  margin: 0;
  padding: 0;
}
.footer__list li {
  margin-bottom: 10px;
  line-height: 1.4;
}
.footer__list a {
  color: var(--text-2);
  text-decoration: none;
  font-size: clamp(14px, 3.2vw, 15px);
  transition: color 0.15s;
  border-bottom: 1px dashed transparent;
  padding-bottom: 2px;
}
.footer__list a:hover {
  color: var(--gold);
  border-bottom-color: var(--gold);
}

/* Прозрачность — адрес пазла */
.footer__transparency-text {
  margin: 0 0 10px;
  color: var(--muted);
  font-size: clamp(13px, 3vw, 14px);
  line-height: 1.5;
}
.footer__addr {
  display: inline-flex;
  flex-direction: column;
  align-items: flex-start;
  text-decoration: none;
  padding: 10px 14px;
  border-radius: 8px;
  background: rgba(var(--accent-rgb), 0.05);
  border: 1px solid rgba(var(--accent-rgb), 0.2);
  transition: background 0.15s, border-color 0.15s;
  word-break: break-all;
  max-width: 100%;
}
.footer__addr:hover {
  background: rgba(var(--accent-rgb), 0.1);
  border-color: rgba(var(--accent-rgb), 0.35);
}
.footer__addr code {
  font-family: ui-monospace, "SF Mono", Consolas, monospace;
  font-size: clamp(11px, 2.6vw, 13px);
  color: var(--text);
  letter-spacing: 0;
}
.footer__addr-hint {
  margin-top: 6px;
  color: var(--accent);
  font-size: clamp(11px, 2.6vw, 12px);
  font-weight: 600;
}

/* ======== Нижняя полоса: copyright + tagline ======== */
.footer__bottom {
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: center;
  text-align: center;
  font-size: clamp(12px, 2.8vw, 13px);
}

.footer__copyright {
  color: var(--muted);
  line-height: 1.6;
}
.footer__bratish {
  color: var(--text);
  font-weight: 700;
  border-bottom: 2px solid var(--green);
  padding-bottom: 1px;
  white-space: nowrap;
}
.footer__execode {
  color: var(--text);
  font-weight: 700;
  border-bottom: 2px solid var(--gold);
  padding-bottom: 1px;
  text-decoration: none;
  white-space: nowrap;
  transition: color 0.15s;
}
.footer__execode:hover { color: var(--gold); }

.footer__tagline {
  color: var(--muted-2);
  font-style: italic;
  font-size: clamp(11px, 2.6vw, 12px);
  opacity: 0.8;
  max-width: 440px;
}
