:root {
  --pplact-ink: #1412b8;
  --pplact-sky: #4eb2f3;
  --pplact-soft-bg: #f8fcff;
}

.site-header {
  position: absolute;
  top: clamp(28px, 5.1svh, 54px);
  right: clamp(34px, 5.3vw, 106px);
  left: clamp(34px, 5.3vw, 106px);
  z-index: 8;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}

.brand {
  display: inline-flex;
  color: var(--pplact-ink);
  font-size: clamp(2.45rem, 3.05vw, 3.8rem);
  font-weight: 500;
  line-height: 0.9;
  letter-spacing: 0;
  text-decoration: none;
  text-shadow: 0 8px 16px rgba(31, 131, 220, 0.08);
}

.brand span:last-child {
  color: var(--pplact-sky);
}

.site-nav {
  display: flex;
  align-items: center;
  gap: clamp(24px, 2.25vw, 46px);
}

.site-nav a {
  position: relative;
  color: var(--pplact-ink);
  font-size: clamp(1.1rem, 1.28vw, 1.58rem);
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0;
  text-decoration: none;
  text-shadow: 0 7px 16px rgba(40, 57, 208, 0.06);
}

.site-nav a::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: -10px;
  left: 0;
  height: 3px;
  border-radius: 999px;
  background: var(--pplact-sky);
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 180ms ease;
}

.site-nav a:hover::after,
.site-nav a:focus-visible::after,
.site-nav a[aria-current="page"]::after {
  transform: scaleX(1);
}

.site-footer {
  position: relative;
  z-index: 6;
  overflow: hidden;
  padding: clamp(34px, 4vw, 64px) clamp(24px, 5.3vw, 106px);
  color: var(--pplact-ink);
  font-family: "Quicksand", "Avenir Next", "Segoe UI", sans-serif;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.94), rgba(238, 248, 255, 0.98)),
    var(--pplact-soft-bg);
  border-top: 1px solid rgba(78, 178, 243, 0.34);
}

.site-footer::before {
  content: "";
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: min(210px, 26vw);
  background: url("assets/mountain-footer.png") bottom center / cover no-repeat;
  opacity: 0.18;
  pointer-events: none;
  -webkit-mask-image: linear-gradient(180deg, transparent 0, #000 42%);
  mask-image: linear-gradient(180deg, transparent 0, #000 42%);
}

.site-footer-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(220px, 1.1fr) minmax(180px, 0.7fr) minmax(260px, 1fr);
  align-items: start;
  gap: clamp(24px, 4vw, 72px);
}

.footer-logo {
  display: inline-flex;
  color: var(--pplact-ink);
  font-size: clamp(2rem, 3vw, 3.6rem);
  font-weight: 500;
  line-height: 0.9;
  letter-spacing: 0;
  text-decoration: none;
}

.footer-logo span:last-child {
  color: var(--pplact-sky);
}

.footer-note {
  max-width: 430px;
  margin: 14px 0 0;
  color: rgba(20, 18, 184, 0.78);
  font-size: clamp(0.98rem, 1.05vw, 1.16rem);
  font-weight: 600;
  line-height: 1.55;
}

.footer-nav {
  display: grid;
  gap: 13px;
}

.footer-nav a,
.footer-socials a,
.footer-contact {
  color: var(--pplact-ink);
  font-size: clamp(1rem, 1.06vw, 1.18rem);
  font-weight: 700;
  letter-spacing: 0;
  text-decoration: none;
}

.footer-nav a:hover,
.footer-socials a:hover,
.footer-nav a:focus-visible,
.footer-socials a:focus-visible {
  color: var(--pplact-sky);
}

.footer-socials {
  display: grid;
  gap: 14px;
  justify-items: start;
}

.footer-social-list {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
}

.footer-social-list a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.footer-social-icon {
  display: inline-grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border: 2px solid rgba(78, 178, 243, 0.85);
  border-radius: 50%;
  color: var(--pplact-ink);
  background: rgba(255, 255, 255, 0.72);
  font: 700 0.86rem / 1 Arial, sans-serif;
}

.footer-handle {
  color: var(--pplact-ink);
  font-size: clamp(1.2rem, 1.35vw, 1.55rem);
  font-weight: 700;
}

.footer-bottom {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  gap: 10px 22px;
  justify-content: space-between;
  margin-top: clamp(28px, 4vw, 54px);
  color: rgba(20, 18, 184, 0.72);
  font-size: 0.95rem;
  font-weight: 600;
}

@media (max-width: 840px) {
  .site-footer-inner {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 1180px) {
  .site-header {
    top: 32px;
  }
}

@media (max-width: 680px) {
  .site-header {
    top: 24px;
    right: 22px;
    left: 24px;
    gap: 18px;
  }

  .brand {
    font-size: clamp(2rem, 9.2vw, 2.75rem);
  }

  .site-nav {
    gap: 16px;
  }

  .site-nav a {
    font-size: clamp(0.98rem, 4.2vw, 1.18rem);
  }

  .site-nav a::after {
    bottom: -7px;
    height: 2px;
  }
}
