/* ===== Footer ===== */

.hs-footer {
  position: relative;
  width: 100%;
  margin-top: clamp(56px, 8vw, 88px);
  padding: 0 0 calc(24px + env(safe-area-inset-bottom, 0));
  overflow: hidden;
  background:
    radial-gradient(ellipse 80% 60% at 50% 0%, rgba(98, 54, 255, 0.14), transparent 55%),
    linear-gradient(180deg, #030408 0%, #020306 100%);
  border-top: 1px solid rgba(98, 54, 255, 0.22);
}

.hs-footer__glow {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: min(720px, 90vw);
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(168, 144, 255, 0.9) 20%,
    rgba(98, 54, 255, 1) 50%,
    rgba(168, 144, 255, 0.9) 80%,
    transparent
  );
  box-shadow: 0 0 32px rgba(98, 54, 255, 0.55);
  pointer-events: none;
}

.hs-footer__grid-bg {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.5) 0%, transparent 70%);
  pointer-events: none;
}

.hs-footer__shell {
  position: relative;
  z-index: 1;
  display: grid;
  gap: clamp(20px, 3vw, 32px);
  padding-top: clamp(28px, 4vw, 44px);
}

/* —— Main grid —— */
.hs-footer__main {
  display: grid;
  grid-template-columns: minmax(240px, 1.1fr) minmax(0, 2fr);
  gap: clamp(24px, 4vw, 48px);
  padding: clamp(24px, 3vw, 32px);
  border-radius: var(--block-radius);
  border: 1px solid var(--block-border-dark);
  background-color: var(--block-bg-dark);
  box-shadow: var(--block-shadow-dark);
  backdrop-filter: var(--hs-glass-blur);
  -webkit-backdrop-filter: var(--hs-glass-blur);
}

.hs-footer__brand {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.hs-footer__logo {
  display: inline-flex;
  align-self: flex-start;
}

.hs-footer__logo img {
  height: clamp(28px, 3vw, 34px);
  width: auto;
}

.hs-footer__tagline {
  margin: 0;
  max-width: 36ch;
  font-size: var(--hs-font-sm);
  line-height: 1.65;
  color: var(--muted);
}

.hs-footer__social {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 4px;
}

.hs-footer__social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.04);
  color: #c4b5fd;
  transition:
    transform 0.22s ease,
    border-color 0.22s ease,
    background 0.22s ease,
    color 0.22s ease,
    box-shadow 0.22s ease;
}

.hs-footer__social-link svg,
.hs-footer__social-link i {
  width: 18px;
  height: 18px;
}

.hs-footer__social-link:hover,
.hs-footer__social-link:focus-visible {
  transform: translateY(-2px);
  border-color: rgba(168, 144, 255, 0.45);
  background: rgba(98, 54, 255, 0.18);
  color: #ede9fe;
  box-shadow: 0 8px 24px rgba(98, 54, 255, 0.22);
}

.hs-footer__compact {
  display: none;
}

/* —— Nav columns —— */
.hs-footer__nav {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(16px, 2.5vw, 28px);
}

.hs-footer__col-title {
  margin: 0 0 14px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #a890ff;
}

.hs-footer__links,
.hs-footer__contacts {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 8px;
}

.hs-footer__links a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: var(--hs-font-sm);
  line-height: 1.5;
  color: var(--muted);
  transition: color 0.2s ease, transform 0.2s ease;
}

.hs-footer__links a::before {
  content: "";
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: rgba(168, 144, 255, 0.35);
  transition: background 0.2s ease, box-shadow 0.2s ease;
}

.hs-footer__links a:hover,
.hs-footer__links a:focus-visible {
  color: var(--text);
  transform: translateX(3px);
}

.hs-footer__links a:hover::before,
.hs-footer__links a:focus-visible::before {
  background: #a890ff;
  box-shadow: 0 0 8px rgba(168, 144, 255, 0.6);
}

.hs-footer__contacts a {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 8px 10px;
  margin: 0 -10px;
  border-radius: 12px;
  font-size: var(--hs-font-sm);
  line-height: 1.45;
  color: var(--muted);
  transition:
    color 0.2s ease,
    background 0.2s ease,
    border-color 0.2s ease;
}

.hs-footer__contacts a:hover,
.hs-footer__contacts a:focus-visible {
  color: var(--text);
  background: rgba(255, 255, 255, 0.04);
}

.hs-footer__contact-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  border-radius: 8px;
  border: 1px solid rgba(98, 54, 255, 0.25);
  background: rgba(98, 54, 255, 0.1);
  color: #c4b5fd;
}

.hs-footer__contact-icon svg,
.hs-footer__contact-icon i {
  width: 14px;
  height: 14px;
}

.hs-footer__contact-text {
  min-width: 0;
  word-break: break-word;
}

/* —— Bottom bar —— */
.hs-footer__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px clamp(4px, 1vw, 8px) 0;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.hs-footer__legal,
.hs-footer__copy {
  margin: 0;
  font-size: var(--hs-font-xs);
  line-height: 1.5;
  color: rgba(180, 185, 206, 0.72);
}

.hs-footer__copy {
  text-align: right;
  white-space: nowrap;
}

.hs-footer__legal-row {
  display: none;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 14px;
}

.hs-footer__legal-row a {
  font-size: var(--hs-font-xs);
  color: rgba(180, 185, 206, 0.82);
  transition: color 0.2s ease;
}

.hs-footer__legal-row a:hover,
.hs-footer__legal-row a:focus-visible {
  color: #e9edff;
}

/* —— Responsive —— */
@media (max-width: 1100px) {
  .hs-footer__nav {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 860px) {
  .hs-footer__main {
    grid-template-columns: 1fr;
  }

  .hs-footer__brand {
    align-items: center;
    text-align: center;
  }

  .hs-footer__logo {
    align-self: center;
  }

  .hs-footer__tagline {
    max-width: 42ch;
  }

  .hs-footer__social {
    justify-content: center;
  }
}

@media (max-width: 720px) {
  .hs-footer {
    margin-top: 40px;
    background: #020306;
    border-top-color: rgba(98, 54, 255, 0.14);
  }

  .hs-footer__glow,
  .hs-footer__grid-bg {
    display: none;
  }

  .hs-footer__shell {
    gap: 16px;
    padding-top: 24px;
  }

  .hs-footer__main {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 18px;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }

  .hs-footer__brand {
    align-items: center;
    text-align: center;
    gap: 12px;
  }

  .hs-footer__tagline {
    display: none;
  }

  .hs-footer__social {
    margin-top: 0;
  }

  .hs-footer__social-link {
    width: 40px;
    height: 40px;
    border-radius: 10px;
  }

  .hs-footer__nav {
    display: none;
  }

  .hs-footer__compact {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px 16px;
    width: 100%;
    max-width: 360px;
  }

  .hs-footer__compact a {
    font-size: 14px;
    font-weight: 600;
    color: rgba(212, 216, 232, 0.88);
    transition: color 0.2s ease;
  }

  .hs-footer__compact a:hover,
  .hs-footer__compact a:focus-visible {
    color: #fff;
  }

  .hs-footer__bar {
    flex-direction: column;
    align-items: center;
    gap: 10px;
    padding-top: 14px;
    text-align: center;
  }

  .hs-footer__legal-row {
    display: flex;
  }

  .hs-footer__legal,
  .hs-footer__copy {
    font-size: 11px;
    line-height: 1.45;
    color: rgba(160, 166, 188, 0.72);
  }

  .hs-footer__copy {
    text-align: center;
    white-space: normal;
  }
}

@media (max-width: 560px) {
  .hs-footer__main {
    padding: 0;
    border-radius: 0;
  }
}
