@font-face {
  font-family: "Loki Footer";
  src: url("/assets/Loki.ttf") format("truetype");
  font-style: normal;
  font-weight: 800;
  font-display: swap;
}

.site-footer,
.site-footer * {
  box-sizing: border-box;
  font-family: "Loki Footer", "SF Pro Display", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.site-footer {
  width: 100%;
  margin-top: 48px;
  padding: 30px max(32px, calc((100vw - 1320px) / 2)) 14px;
  color: #f4f6ff;
  background:
    linear-gradient(110deg, rgba(12, 22, 58, 0.92), rgba(3, 7, 20, 0.98)),
    #030612;
  border-top: 1px solid rgba(165, 181, 235, 0.18);
}

.site-footer-main {
  display: grid;
  grid-template-columns: minmax(210px, 1.05fr) minmax(430px, 2fr) minmax(175px, 0.8fr);
  align-items: center;
  gap: clamp(22px, 3vw, 44px);
  width: min(100%, 1320px);
  margin: 0 auto;
}

.site-footer-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  color: inherit;
  text-decoration: none;
}

.site-footer .site-footer-logo {
  display: block;
  flex: 0 0 38px;
  width: 38px !important;
  height: 38px !important;
  min-width: 38px;
  min-height: 38px;
  object-fit: contain;
}

.site-footer-brand-copy,
.site-footer-brand-copy > span {
  display: grid;
  gap: 5px;
}

.site-footer-brand-copy strong {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.13em;
  white-space: nowrap;
}

.site-footer-brand-copy > span {
  color: #a8b1cc;
  font-size: 10px;
  line-height: 1.45;
}

.site-footer-contacts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  min-width: 0;
}

.site-footer-contact {
  display: flex;
  align-items: center;
  gap: 9px;
  min-width: 0;
  color: inherit;
  text-decoration: none;
}

.site-footer .footer-contact-icon {
  display: block !important;
  flex: 0 0 24px !important;
  width: 24px !important;
  height: 24px !important;
  min-width: 24px !important;
  min-height: 24px !important;
  max-width: 24px !important;
  max-height: 24px !important;
  object-fit: contain;
}

.site-footer-contact > span {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.site-footer-contact-label {
  color: #aebcff;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.06em;
}

/* Phone-only label (shown in the phone rules below) */
.site-footer-contact-tag {
  display: none;
}

.site-footer-contact-value {
  color: #e3e7f5;
  font-size: 11px;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.site-footer-contact:hover .site-footer-contact-value,
.site-footer-nav a:hover {
  color: #fff;
}

.site-footer-nav {
  display: grid;
  grid-template-columns: repeat(2, max-content);
  justify-content: end;
  gap: 10px 18px;
}

.site-footer-nav a {
  color: #b8c0d8;
  font-size: 10px;
  text-decoration: none;
  transition: color 0.18s ease;
}

.site-footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  width: min(100%, 1320px);
  margin: 24px auto 0;
  padding-top: 12px;
  border-top: 1px solid rgba(165, 181, 235, 0.12);
  color: #78839f;
  font-size: 9px;
  line-height: 1.4;
}

@media (max-width: 1050px) {
  .site-footer-main {
    grid-template-columns: minmax(200px, 1fr) minmax(0, 1.5fr);
    row-gap: 22px;
  }

  .site-footer-contacts {
    grid-column: 1 / -1;
    grid-row: 2;
  }

  .site-footer-nav {
    grid-column: 2;
    grid-row: 1;
  }
}

/* =========================================================
   PHONES
   One column, built from rows rather than widths, so it lines up
   the same on every phone:
   - brand, then each contact on its own row, then the links
   - the logo and every contact icon share one 36px column, so
     all the text starts on the same vertical line
   - the six links sit in three equal columns that share out
     whatever width the phone has
   ========================================================= */
@media (max-width: 700px) {
  .site-footer {
    margin-top: 32px;
    padding: 18px 20px 12px;
  }

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

  /* Brand */
  .site-footer-brand {
    grid-row: 1;
    gap: 10px;
  }

  .site-footer .site-footer-logo {
    flex-basis: 32px;
    width: 32px !important;
    height: 32px !important;
    min-width: 32px;
    min-height: 32px;
  }

  .site-footer-brand-copy {
    gap: 3px;
  }

  .site-footer-brand-copy strong {
    font-size: 13px;
  }

  .site-footer-brand-copy > span {
    font-size: 11px;
  }

  /* Contacts: one line each in three aligned columns -
     icon | label | value. Every row shares the same columns
     (subgrid), so the labels and the values each start on one
     vertical line, whatever the phone's width. */
  .site-footer-contacts {
    grid-column: 1;
    grid-row: 2;
    grid-template-columns: 32px max-content minmax(0, 1fr);
    column-gap: 10px;  /* same as the logo's gap, so labels line up with the brand text */
    row-gap: 9px;
    margin-top: 14px;
  }

  .site-footer-contact {
    display: grid;
    grid-column: 1 / -1;
    grid-template-columns: subgrid;
    align-items: center;
  }

  /* Let the label and value sit straight in the row's columns */
  .site-footer-contact > span {
    display: contents;
  }

  /* 20px icons centred in the logo's 32px column */
  .site-footer .footer-contact-icon {
    flex-basis: 20px !important;
    width: 20px !important;
    height: 20px !important;
    min-width: 20px !important;
    min-height: 20px !important;
    max-width: 20px !important;
    max-height: 20px !important;
    justify-self: center;
  }

  .site-footer-contact-label {
    display: none;
  }

  .site-footer-contact-tag {
    display: block;
    color: #aebcff;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.04em;
    white-space: nowrap;
  }

  .site-footer-contact-value {
    font-size: 13px;
  }

  /* Links: three equal columns, under a divider */
  .site-footer-nav {
    grid-column: 1;
    grid-row: 3;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    justify-content: stretch;
    gap: 8px 12px;
    margin-top: 14px;
    padding-top: 12px;
    border-top: 1px solid rgba(165, 181, 235, 0.12);
  }

  .site-footer-nav a {
    font-size: 12px;
  }

  .site-footer-bottom {
    margin-top: 12px;
    padding-top: 8px;
    font-size: 9.5px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .site-footer-nav a {
    transition: none;
  }
}
