/* =========================
   FOOTER
========================= */

.tm-site-footer {
  isolation: isolate;
  position: relative;
  overflow: hidden;

  padding: 110px 0 34px;

  background:
    radial-gradient(circle at 82% 0%, rgba(37, 99, 235, 0.16), transparent 34%),
    linear-gradient(135deg, #050816 0%, #08111f 55%, #020617 100%);

  color: rgba(255, 255, 255, 0.72);
}

.tm-site-footer *,
.tm-site-footer *::before,
.tm-site-footer *::after {
  box-sizing: border-box;
}

.tm-site-footer::before {
  content: "";

  position: absolute;
  inset: 0;

  background: linear-gradient(
    to bottom,
    rgba(255, 255, 255, 0.025),
    transparent 240px
  );

  pointer-events: none;
}

.tm-site-footer a {
  color: rgba(255, 255, 255, 0.68);
  text-decoration: none;
}

.tm-site-footer .tm-footer-inner {
  position: relative;
  z-index: 2;

  display: grid;
  grid-template-columns: minmax(260px, 1.08fr) minmax(0, 2fr);
  gap: clamp(62px, 7vw, 96px);
}

.tm-site-footer .tm-footer-brand {
  max-width: 390px;
}

.tm-site-footer .tm-logo {
  display: inline-flex;
  align-items: baseline;

  width: auto;
  min-width: 0;
  min-height: auto;

  margin-bottom: 22px;
  padding: 0;

  border: 0;
  border-radius: 0;

  background: transparent;
  box-shadow: none;
  transform: none;

  color: #ffffff;

  font-size: 1.7rem;
  font-weight: 820;
  line-height: 1;
  letter-spacing: -0.045em;
}

.tm-site-footer .tm-logo-main {
  color: #ffffff;
}

.tm-site-footer .tm-logo-dot,
.tm-site-footer .tm-logo-sub {
  color: var(--tm-logo-accent);
}

.tm-site-footer .tm-footer-brand p {
  margin: 0 0 28px;

  color: rgba(255, 255, 255, 0.72);

  font-size: 1rem;
  line-height: 1.75;
}

.tm-site-footer .tm-footer-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;

  min-height: 50px;
  padding: 0 22px;

  border-radius: 999px;

  background: linear-gradient(135deg, #2563eb, #1d4ed8);

  color: #ffffff;

  font-size: 0.92rem;
  font-weight: 760;

  box-shadow: 0 14px 34px rgba(37, 99, 235, 0.18);

  transition:
    transform 0.18s ease,
    box-shadow 0.18s ease,
    opacity 0.18s ease;
}

.tm-site-footer .tm-footer-cta:hover {
  color: #ffffff;

  transform: translateY(-2px);

  box-shadow: 0 20px 42px rgba(37, 99, 235, 0.24);
}

.tm-site-footer .tm-footer-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(34px, 4vw, 52px);
}

.tm-site-footer .tm-footer-grid strong {
  display: block;

  margin-bottom: 16px;

  color: #ffffff;

  font-size: 0.9rem;
  font-weight: 760;
  letter-spacing: -0.01em;
}

.tm-site-footer .tm-footer-grid ul {
  margin: 0;
  padding: 0;

  list-style: none;
}

.tm-site-footer .tm-footer-grid li + li {
  margin-top: 11px;
}

.tm-site-footer .tm-footer-grid a {
  color: rgba(255, 255, 255, 0.68);

  font-size: 0.92rem;
  line-height: 1.55;

  transition: color 0.18s ease, opacity 0.18s ease;
}

.tm-site-footer .tm-footer-grid a:hover {
  color: #ffffff;
}

.tm-site-footer .tm-footer-bottom {
  grid-column: 1 / -1;

  margin-top: 74px;
  padding-top: 24px;

  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.tm-site-footer .tm-footer-bottom span {
  color: rgba(255, 255, 255, 0.42);

  font-size: 0.84rem;
}

/* =========================
   MOBILE
========================= */

@media (max-width: 980px) {

  .tm-site-footer {
    padding: 82px 0 26px;
  }

  .tm-site-footer .tm-footer-inner {
    grid-template-columns: 1fr;
    gap: 56px;
  }

  .tm-site-footer .tm-footer-brand {
    max-width: 520px;
  }

  .tm-site-footer .tm-footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 42px 30px;
  }

  .tm-site-footer .tm-footer-bottom {
    margin-top: 52px;
  }
}

@media (max-width: 640px) {

  .tm-site-footer {
    padding: 68px 0 22px;
  }

  .tm-site-footer .tm-footer-inner {
    gap: 46px;
  }

  .tm-site-footer .tm-logo {
    margin-bottom: 18px;

    font-size: 1.46rem;
  }

  .tm-site-footer .tm-footer-brand p {
    margin-bottom: 24px;

    font-size: 0.94rem;
    line-height: 1.7;
  }

  .tm-site-footer .tm-footer-cta {
    width: 100%;
    min-height: 46px;

    font-size: 0.9rem;

    box-shadow: 0 12px 28px rgba(37, 99, 235, 0.16);
  }

  .tm-site-footer .tm-footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 34px 24px;
  }

  .tm-site-footer .tm-footer-grid strong {
    margin-bottom: 12px;

    font-size: 0.86rem;
  }

  .tm-site-footer .tm-footer-grid li + li {
    margin-top: 9px;
  }

  .tm-site-footer .tm-footer-grid a {
    font-size: 0.86rem;
    line-height: 1.45;
  }

  .tm-site-footer .tm-footer-bottom {
    margin-top: 40px;
    padding-top: 18px;
  }

  .tm-site-footer .tm-footer-bottom span {
    font-size: 0.78rem;
  }
}

@media (max-width: 390px) {

  .tm-site-footer .tm-footer-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }
}