/* Shared footer CTA and copyright footer for all pages. */

:root {
  --fh-footer-ink: #1f173b;
  --fh-footer-purple: #8d3ee6;
  --fh-footer-purple-deep: #5621b0;
  --fh-footer-gold: #f2c943;
}

.fh-btn {
  position: relative;
  box-sizing: border-box;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: 48px;
  padding: 0 26px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 850;
  line-height: 1;
  text-decoration: none !important;
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease, border-color 180ms ease;
  white-space: nowrap;
  overflow: hidden;
}

.fh-btn:hover {
  transform: translateY(-1px);
}

.fh-btn--gold {
  color: #21133f !important;
  background: linear-gradient(180deg, #ffe887 0%, var(--fh-footer-gold) 100%);
  box-shadow: 0 13px 26px rgba(193, 146, 24, 0.24);
}

.fh-btn--gold::after {
  content: "";
  position: absolute;
  inset: -30% auto -30% -55%;
  width: 42%;
  transform: skewX(-22deg);
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.55), transparent);
  opacity: 0;
  pointer-events: none;
  animation: fh-gold-sheen 5.8s ease-in-out infinite;
}

.fh-btn--gold:hover {
  background: linear-gradient(180deg, #ffec96 0%, #efc33a 100%);
  box-shadow: 0 16px 30px rgba(193, 146, 24, 0.3);
}

@keyframes fh-gold-sheen {
  0%, 52% {
    transform: translateX(0) skewX(-22deg);
    opacity: 0;
  }
  68% {
    opacity: 1;
  }
  100% {
    transform: translateX(390%) skewX(-22deg);
    opacity: 0;
  }
}

.fh-telegram-cta {
  position: relative;
  padding: 48px 0;
  overflow: hidden;
  background:
    radial-gradient(circle at 14% 40%, rgba(255,255,255,0.16), transparent 18%),
    radial-gradient(circle at 88% 22%, rgba(255,255,255,0.12), transparent 18%),
    linear-gradient(112deg, #2b0e67 0%, #5621b0 50%, #8338df 100%);
}

.fh-telegram-cta::before,
.fh-telegram-cta::after {
  content: "";
  position: absolute;
  width: 260px;
  height: 260px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  pointer-events: none;
}

.fh-telegram-cta::before {
  left: -80px;
  bottom: -120px;
}

.fh-telegram-cta::after {
  right: -120px;
  top: -100px;
}

.fh-telegram-cta__inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 128px minmax(260px, 1fr) minmax(300px, 440px) auto;
  gap: 32px;
  align-items: center;
  width: min(1240px, calc(100vw - 48px));
  margin: 0 auto;
}

.fh-telegram-cta__mark {
  position: relative;
  display: grid;
  place-items: center;
  width: 118px;
  height: 118px;
  border-radius: 999px;
  color: #fff;
  background: radial-gradient(circle, rgba(255,255,255,0.26) 0 28%, rgba(255,255,255,0.08) 29% 58%, rgba(255,255,255,0.03) 59% 100%);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.14), 0 20px 48px rgba(12, 4, 38, 0.24);
  overflow: visible;
  animation: fh-telegram-mark-breathe 3.8s ease-in-out infinite;
}

.fh-telegram-cta__mark::before {
  content: "";
  position: relative;
  z-index: 2;
  width: 58px;
  height: 58px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M21 4 17.6 20.1c-.2 1-1.4 1.3-2.1.6l-4.8-4-2.5 2.4c-.5.5-1.3.2-1.4-.5L6 13.5 2.4 12c-.9-.3-.9-1.6.1-1.9L19.8 3c.7-.3 1.4.3 1.2 1Z' fill='%23ffffff'/%3E%3C/svg%3E") center / contain no-repeat;
}

.fh-telegram-cta__mark::after {
  content: "";
  position: absolute;
  inset: -18px;
  z-index: 1;
  border-radius: 999px;
  pointer-events: none;
  background:
    radial-gradient(circle, transparent 0 53%, rgba(255,255,255,0.2) 54% 55%, transparent 56% 100%),
    radial-gradient(circle, transparent 0 70%, rgba(255,255,255,0.12) 71% 72%, transparent 73% 100%);
  opacity: 0;
  transform: scale(0.72);
  animation: fh-telegram-ripple 3.2s ease-out infinite;
}

.fh-telegram-cta__mark svg {
  display: none;
}

@keyframes fh-telegram-mark-breathe {
  0%, 100% {
    transform: scale(1);
    box-shadow: inset 0 0 0 1px rgba(255,255,255,0.14), 0 20px 48px rgba(12, 4, 38, 0.24);
  }
  50% {
    transform: scale(1.045);
    box-shadow: inset 0 0 0 1px rgba(255,255,255,0.22), 0 24px 58px rgba(12, 4, 38, 0.3);
  }
}

@keyframes fh-telegram-ripple {
  0% {
    transform: scale(0.72);
    opacity: 0;
  }
  22% {
    opacity: 0.7;
  }
  100% {
    transform: scale(1.35);
    opacity: 0;
  }
}

.fh-telegram-cta h2 {
  margin: 0 0 11px;
  color: #fff;
  font-size: clamp(26px, 2.3vw, 36px);
  line-height: 1.12;
}

.fh-telegram-cta p {
  max-width: 520px;
  margin: 0;
  color: rgba(255, 255, 255, 0.82);
  font-size: 16px;
  line-height: 1.65;
}

.fh-telegram-cta__items {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}

.fh-telegram-cta__items span {
  position: relative;
  color: rgba(255, 255, 255, 0.9);
  text-align: center;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.45;
}

.fh-telegram-cta__items span::before {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  margin: 0 auto 10px;
  border-radius: 999px;
  color: rgba(255, 255, 255, 0.92);
  background: rgba(255, 255, 255, 0.1);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.14);
  font-size: 19px;
  font-weight: 800;
}

.fh-telegram-cta__items span:nth-child(1)::before { content: "\2197"; }
.fh-telegram-cta__items span:nth-child(2)::before { content: "\25C7"; }
.fh-telegram-cta__items span:nth-child(3)::before { content: "\25CB"; }

#fridheimr-footer {
  position: relative;
  overflow: hidden;
  padding: 34px 20px 28px !important;
  color: #9ca3af;
  background:
    radial-gradient(circle at 50% 0%, rgba(116, 64, 219, 0.28), transparent 28%),
    linear-gradient(180deg, #170a35 0%, #100724 100%) !important;
  font-family: var(--font-main, "Inter", sans-serif);
}

#fridheimr-footer .footer-inner {
  position: relative;
  z-index: 1;
  max-width: 1240px !important;
  margin: 0 auto;
  text-align: center;
}

#fridheimr-footer .footer-links {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 20px;
}

#fridheimr-footer .footer-links a {
  min-width: 124px;
  color: #ded3ff !important;
  background: rgba(255,255,255,0.08) !important;
  text-decoration: none;
  font-size: 13px;
  padding: 8px 18px;
  border-radius: 20px;
  transition: background 0.2s, color 0.2s;
}

#fridheimr-footer .footer-links a:hover {
  color: #fff !important;
  background: rgba(255,255,255,0.15) !important;
}

#fridheimr-footer .footer-privacy {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
  padding: 6px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.04);
}

#fridheimr-footer .footer-privacy__title {
  padding: 0 8px 0 10px;
  color: rgba(222, 211, 255, 0.74);
  font-size: 12px;
  font-weight: 800;
  line-height: 1;
  white-space: nowrap;
}

#fridheimr-footer .footer-privacy a {
  min-width: 0;
  padding: 8px 14px;
}

#fridheimr-footer .footer-copy {
  margin: 0;
  color: rgba(222, 211, 255, 0.48) !important;
  font-size: 12px;
  line-height: 1.7;
}

@media (max-width: 1180px) {
  .fh-telegram-cta__inner {
    grid-template-columns: 100px 1fr;
  }

  .fh-telegram-cta__items,
  .fh-telegram-cta .fh-btn {
    grid-column: 2;
  }
}

@media (max-width: 900px) {
  .fh-telegram-cta__inner {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .fh-telegram-cta__mark {
    margin: 0 auto;
  }

  .fh-telegram-cta p {
    max-width: 100%;
  }

  .fh-telegram-cta__items,
  .fh-telegram-cta .fh-btn {
    grid-column: auto;
    justify-self: center;
  }
}

@media (max-width: 640px) {
  .fh-telegram-cta {
    padding: 38px 0;
  }

  .fh-telegram-cta__inner {
    width: calc(100vw - 28px);
    max-width: 520px;
    gap: 24px;
  }

  .fh-telegram-cta__mark {
    width: 96px;
    height: 96px;
  }

  .fh-telegram-cta__items {
    grid-template-columns: 1fr;
  }

  .fh-telegram-cta .fh-btn {
    width: 100%;
    max-width: calc(100vw - 28px);
    justify-self: stretch;
    white-space: normal;
  }

  #fridheimr-footer .footer-privacy {
    width: min(100%, 420px);
  }

  #fridheimr-footer .footer-privacy__title,
  #fridheimr-footer .footer-privacy a {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .fh-btn--gold::after,
  .fh-telegram-cta__mark,
  .fh-telegram-cta__mark::after {
    animation: none !important;
    transition: none !important;
  }
}
