.site-footer {
  position: relative;
  margin-top: 0;
  color: #f4f6f8;
  background: linear-gradient(180deg, #000 0%, #000 62%, #141414 100%);
  overflow: hidden;
}

.site-footer::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  z-index: 3;
  background: linear-gradient(90deg, #365DA4, #4F84BF, #4F74A8);
}

.footer-glow {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(520px circle at var(--spot-x, 50%) var(--spot-y, 20%), rgba(255, 255, 255, 0.05), transparent 55%);
  opacity: 0.9;
}

.footer-wave {
  display: block;
  position: relative;
  z-index: 1;
  width: 100%;
  height: 96px;
}

.footer-main {
  position: relative;
  z-index: 1;
  width: 100%;
  margin: 0;
  display: grid;
  grid-template-columns: minmax(180px, 0.55fr) minmax(0, 1.45fr);
  gap: 28px 36px;
  align-items: center;
  padding: 18px 64px 36px 108px;
  box-sizing: border-box;
}

.footer-col {
  min-width: 0;
}

.footer-col--contact {
  padding: 4px 8px 4px 88px;
  border-left: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-logo {
  position: static;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin: 0;
  transform: none;
}

.footer-col--brand {
  display: flex;
  justify-content: center;
}

.footer-logo img {
  height: 68px;
  width: auto;
  max-width: 220px;
  object-fit: contain;
  transition: transform 0.45s var(--ease-out), filter 0.45s ease;
}

.footer-logo:hover img {
  transform: scale(1.06);
  filter: drop-shadow(0 10px 18px rgba(54, 93, 164, 0.28));
}

.footer-lead {
  margin: 0 0 22px;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.5;
  text-align: justify;
}

.footer-title {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 12px;
  margin: 0 0 16px;
  color: #fff;
  font-size: 0.92rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 0 0 12px;
}

.footer-title i {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  border-radius: 12px;
  background: rgba(79, 132, 191, 0.2);
  color: #fff;
  font-size: 0.9rem;
}

.footer-title::after {
  content: "";
  position: absolute;
  left: 48px;
  bottom: 0;
  width: 48px;
  height: 2px;
  border-radius: 99px;
  background: linear-gradient(90deg, #4F84BF, transparent);
}

.footer-title__text {
  background: linear-gradient(100deg, #fff 0%, #fff 42%, #4F84BF 50%, #fff 58%, #fff 100%);
  background-size: 220% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: actShine 5.5s linear infinite;
}

.footer-bridge {
  display: block;
  width: 1px;
  height: 22px;
  margin: 12px auto 0;
  background: linear-gradient(180deg, #4F84BF, rgba(79, 132, 191, 0.15));
}

.footer-layers {
  list-style: none;
  display: grid;
  grid-template-columns: minmax(0, 1.85fr) minmax(0, 0.85fr) minmax(0, 0.7fr);
  gap: 14px;
  margin: 0;
  padding: 18px 16px 16px;
  border-radius: 22px;
  border: 1px solid rgba(79, 132, 191, 0.38);
  background:
    linear-gradient(180deg, rgba(79, 132, 191, 0.16), transparent 28%),
    rgba(255, 255, 255, 0.03);
  position: relative;
}

.footer-layers::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  width: 46%;
  height: 2px;
  transform: translate(-50%, -1px);
  border-radius: 99px;
  background: linear-gradient(90deg, transparent, #4F84BF, transparent);
}

.footer-layers a {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  min-height: 100%;
  padding: 8px 10px 4px;
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.92rem;
  line-height: 1.45;
  text-align: center;
}

.footer-when {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  margin: 0;
  padding: 18px 22px 16px;
  border-radius: 22px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background:
    radial-gradient(120px 80px at 100% 0%, rgba(79, 132, 191, 0.22), transparent 70%),
    rgba(255, 255, 255, 0.03);
}

.footer-when__time {
  color: #fff;
  font-size: clamp(2rem, 3vw, 2.7rem);
  font-weight: 300;
  letter-spacing: 0.06em;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

.footer-when__date {
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.95rem;
  font-weight: 400;
  letter-spacing: 0.04em;
}

.footer-layers .footer-ico {
  width: 42px;
  height: 42px;
  border-radius: 14px;
  background: rgba(79, 132, 191, 0.18);
  color: #fff;
}

.footer-contact,
.footer-links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-contact a {
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  color: rgba(255, 255, 255, 0.88);
  font-size: 0.95rem;
  line-height: 1.45;
  width: 100%;
  max-width: 100%;
}

.footer-links a {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 7px 14px 7px 7px;
  border-radius: 999px;
  color: var(--ink);
  font-size: 0.92rem;
  line-height: 1.5;
}

.footer-links a i,
.footer-links a span {
  position: relative;
  z-index: 1;
}

.footer-links a i {
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(54, 93, 164, 0.1);
  color: var(--blue);
  font-size: 0.72rem;
  transition: transform 0.55s cubic-bezier(0.34, 1.56, 0.64, 1), background 0.3s ease, color 0.3s ease, box-shadow 0.3s ease;
}

.footer-links--quick a span span {
  display: inline-block;
}

.footer-links--quick a:hover {
  color: var(--blue);
}

.footer-links--quick a:hover i {
  background: #365DA4;
  color: #fff;
  transform: rotateY(180deg) scale(1.08);
  box-shadow: 0 8px 16px rgba(54, 93, 164, 0.28);
}

.footer-links--quick a:hover span span {
  animation: savilPop 0.6s cubic-bezier(0.34, 1.56, 0.64, 1) both;
  animation-delay: calc(var(--i) * 28ms);
  text-shadow: 0 0 12px rgba(79, 132, 191, 0.55);
}

.footer-links--useful a {
  overflow: visible;
  isolation: isolate;
  transform: perspective(420px) rotateX(var(--tilt-x, 0deg)) rotateY(var(--tilt-y, 0deg));
  transition: transform 0.18s ease, color 0.35s ease, box-shadow 0.45s ease;
}

.footer-links--useful a::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  border-radius: 999px;
  background: linear-gradient(135deg, #4F84BF 0%, #365DA4 100%);
  transform: scale(0);
  transform-origin: 21px 50%;
  opacity: 0;
  transition:
    transform 0.55s cubic-bezier(0.22, 1, 0.36, 1),
    opacity 0.35s ease;
}

.footer-links--useful a::after {
  content: "";
  position: absolute;
  left: 7px;
  top: 50%;
  width: 28px;
  height: 28px;
  margin-top: -14px;
  border-radius: 50%;
  border: 2px solid rgba(54, 93, 164, 0.45);
  pointer-events: none;
  opacity: 0;
  z-index: 0;
}

.footer-links--useful a:hover {
  color: #fff;
  box-shadow: 0 14px 28px rgba(54, 93, 164, 0.28);
}

.footer-links--useful a:hover::before {
  transform: scale(1);
  opacity: 1;
}

.footer-links--useful a:hover::after {
  animation: usefulShock 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}

.footer-links--useful a i {
  overflow: visible;
}

.footer-links--useful a i::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 5px;
  height: 5px;
  margin: -2.5px 0 0 -2.5px;
  border-radius: 50%;
  background: transparent;
  box-shadow:
    16px 0 0 0 rgba(255, 255, 255, 0.95),
    -16px 0 0 0 rgba(255, 255, 255, 0.55),
    0 16px 0 0 rgba(255, 255, 255, 0.75),
    0 -16px 0 0 rgba(255, 255, 255, 0.4);
  opacity: 0;
  pointer-events: none;
}

.footer-links--useful a:hover i {
  background: rgba(255, 255, 255, 0.22);
  color: #fff;
  transform: scale(1.08) rotate(360deg);
  box-shadow: 0 0 0 6px rgba(255, 255, 255, 0.12);
}

.footer-links--useful a:hover i::after {
  opacity: 1;
  animation: usefulOrbit 1.05s linear infinite;
}

.footer-links--useful a > span {
  transition: letter-spacing 0.45s cubic-bezier(0.22, 1, 0.36, 1), text-shadow 0.35s ease;
}

.footer-links--useful a:hover > span {
  text-shadow: 0 8px 18px rgba(20, 40, 80, 0.28);
  letter-spacing: 0.04em;
}

@keyframes usefulShock {
  0% {
    transform: scale(1);
    opacity: 0.7;
  }
  100% {
    transform: scale(2.4);
    opacity: 0;
  }
}

@keyframes usefulOrbit {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.footer-ico {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  flex-shrink: 0;
  transition: transform 0.4s var(--ease-spring), background 0.3s ease, color 0.3s ease;
}

.footer-contact a:hover .footer-ico {
  transform: rotate(12deg) scale(1.08);
  background: var(--blue);
  color: #fff;
}

.footer-contact a:hover {
  color: #fff;
}

.footer-form-row {
  display: flex;
  gap: 8px;
  padding: 6px;
  border-radius: 999px;
  background: #fff;
  border: 1px solid rgba(54, 93, 164, 0.14);
  box-shadow: 0 12px 30px rgba(54, 93, 164, 0.08);
}

.footer-form-row:focus-within {
  border-color: rgba(54, 93, 164, 0.45);
  box-shadow: 0 0 0 4px rgba(54, 93, 164, 0.12), 0 12px 30px rgba(54, 93, 164, 0.1);
}

.footer-form-row input {
  flex: 1;
  min-width: 0;
  border: 0;
  outline: 0;
  background: transparent;
  padding: 10px 14px;
  font-size: 0.92rem;
  color: var(--ink);
}

.footer-submit {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 0;
  border-radius: 999px;
  padding: 10px 16px;
  background: linear-gradient(180deg, #4F84BF, #365DA4);
  color: #fff;
  font-weight: 700;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  isolation: isolate;
}

.footer-submit::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(110deg, transparent 20%, rgba(255, 255, 255, 0.35) 50%, transparent 80%);
  transform: translateX(-120%);
  transition: transform 0.6s ease;
}

.footer-submit:hover::before {
  transform: translateX(120%);
}

.footer-submit i {
  transition: transform 0.35s var(--ease-spring);
}

.footer-submit:hover i {
  transform: translateX(3px) rotate(-12deg);
}

.footer-honeypot {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.footer-form {
  position: relative;
}

.footer-form-msg {
  margin: 10px 0 0;
  font-size: 0.82rem;
  color: var(--blue);
  line-height: 1.5;
}

.footer-rule {
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.16), transparent);
}

.footer-bottom {
  position: relative;
  z-index: 1;
  background: #1a1a1a;
  color: #fff;
}

.footer-bottom-inner {
  display: grid;
  grid-template-columns: 1.2fr 1fr auto;
  gap: 16px 24px;
  align-items: center;
  width: 100%;
  box-sizing: border-box;
  padding: 14px 48px 14px 108px;
}

.footer-copy,
.footer-credit,
.footer-legal {
  margin: 0;
  font-size: 0.82rem;
  line-height: 1.5;
}

.footer-copy {
  text-align: left;
}

.footer-dev-ico {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  margin: 0 4px 0 2px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
  font-size: 0.72rem;
  vertical-align: middle;
  transition: transform 0.45s cubic-bezier(0.34, 1.56, 0.64, 1), background 0.3s ease;
}

.footer-credit:hover .footer-dev-ico {
  transform: rotate(-12deg) scale(1.15);
  background: rgba(255, 255, 255, 0.28);
}

.footer-credit a,
.saviltech-link {
  color: #fff;
  font-weight: 800;
  text-decoration: none;
  border: 0;
}

.saviltech-link {
  position: relative;
  display: inline-block;
  margin-left: 4px;
  color: #fff;
  font-weight: 800;
  text-decoration: none !important;
  -webkit-text-fill-color: #fff;
}

.saviltech-link span {
  display: inline-block;
  transition: transform 0.45s cubic-bezier(0.34, 1.56, 0.64, 1), text-shadow 0.35s ease;
}

.saviltech-link:hover {
  text-decoration: none !important;
  filter: drop-shadow(0 0 14px rgba(255, 255, 255, 0.45));
}

.saviltech-link:hover span {
  animation: savilPop 0.6s cubic-bezier(0.34, 1.56, 0.64, 1) both;
  animation-delay: calc(var(--i) * 28ms);
  text-shadow: 0 0 18px rgba(207, 224, 246, 0.9);
}

@keyframes savilPop {
  0% { transform: translateY(0) scale(1); }
  45% { transform: translateY(-7px) scale(1.18) rotate(-4deg); }
  100% { transform: translateY(0) scale(1); }
}

.footer-legal {
  display: flex;
  align-items: center;
  gap: 10px;
  white-space: nowrap;
}

.footer-bottom .footer-sep {
  display: inline-block;
  color: #4F84BF;
  -webkit-text-fill-color: #4F84BF;
  font-weight: 700;
  opacity: 1;
  line-height: 1;
}


.footer-legal a {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: rgba(255, 255, 255, 0.9);
  text-decoration: none;
}

.footer-legal a i {
  font-size: 0.72rem;
  opacity: 0.85;
}

.footer-legal a::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -4px;
  width: 0;
  height: 2px;
  background: #4F84BF;
  transform: translateX(-50%);
  transition: width 0.3s var(--ease-out);
}

.footer-legal a:hover {
  color: #fff;
}

.footer-legal a:hover::after {
  width: 100%;
}

.float-dock {
  position: fixed;
  right: 18px;
  bottom: 22px;
  z-index: 1200;
  display: flex;
  align-items: center;
  gap: 10px;
}

.to-top {
  position: relative;
  right: auto;
  bottom: auto;
  width: 56px;
  min-width: 56px;
  height: 56px;
  overflow: hidden;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  border: 0;
  border-radius: 50%;
  background: #fff;
  color: var(--blue);
  cursor: pointer;
  box-shadow: 0 14px 32px rgba(54, 93, 164, 0.22);
  transform: scale(0.85);
  transition: opacity 0.3s ease, transform 0.3s var(--ease-out), visibility 0.3s;
}

.to-top.is-visible {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: scale(1);
}

.to-top:hover {
  color: #fff;
  background: var(--blue);
}

.to-top__ring {
  position: absolute;
  inset: 0;
  transform: rotate(-90deg);
}

.to-top__track,
.to-top__progress {
  fill: none;
  stroke-width: 3;
}

.to-top__track {
  stroke: rgba(54, 93, 164, 0.15);
}

.to-top__progress {
  stroke: #365DA4;
  stroke-linecap: round;
  stroke-dasharray: 150.8;
  stroke-dashoffset: 150.8;
  transition: stroke 0.25s ease;
}

.to-top:hover .to-top__progress {
  stroke: #fff;
}

.to-top i {
  position: relative;
  z-index: 1;
}

body:has(.mobile-panel.is-open) .float-dock {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

@media (max-width: 1100px) {
  .footer-main {
    padding: 8px 24px 28px;
  }

  .footer-main {
    grid-template-columns: 1fr;
    padding: 12px 24px 28px;
    gap: 22px;
  }

  .footer-col--brand { justify-content: flex-start; }

  .footer-col--contact {
    padding: 0;
    border: 0;
  }

  .footer-logo {
    margin: 0;
  }

  .footer-bottom-inner {
    grid-template-columns: 1fr;
    padding: 16px 24px 24px;
  }
}

@keyframes actShine {
  from { background-position: 100% 0; }
  to { background-position: -100% 0; }
}

@media (prefers-reduced-motion: reduce) {
  .footer-title__text {
    animation: none;
    -webkit-text-fill-color: #fff;
    color: #fff;
  }
}

@media (max-width: 720px) {
  .footer-main {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .footer-bottom-inner {
    grid-template-columns: 1fr;
    text-align: center;
    padding: 18px 16px 92px;
  }

  .footer-legal {
    justify-content: center;
    flex-wrap: wrap;
  }

  .footer-copy {
    text-align: center;
  }

  .footer-form-row {
    flex-wrap: wrap;
    border-radius: 18px;
  }

  .footer-submit {
    width: 100%;
    justify-content: center;
  }

  .float-dock {
    right: 12px;
    bottom: 18px;
  }
}
