/* Page chrome: floating header + navigation, section shells and footer. */

.header {
  position: fixed;
  top: 16px;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 0 16px;
  pointer-events: none;
  transition: top 0.45s var(--ease);
}

.header.is-scrolled {
  top: 10px;
}

.header::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  background: rgba(0, 8, 23, 0.6);
  opacity: 0;
  transition: opacity 0.4s;
}

.header__inner.container {
  pointer-events: auto;
  position: relative;
  max-width: 1200px;
  height: 66px;
  padding: 0 10px 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  border-radius: 100px;
  background: rgba(7, 28, 69, 0.38);
  border: 1px solid var(--line-2);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  backdrop-filter: blur(18px) saturate(140%);
  box-shadow:
    0 10px 40px -20px rgba(0, 0, 0, 0.6),
    inset 0 1px 0 rgba(255, 255, 255, 0.04);
  transition:
    height 0.45s var(--ease),
    max-width 0.45s var(--ease),
    background 0.4s,
    border-color 0.4s,
    box-shadow 0.4s;
}

.header.is-scrolled .header__inner {
  height: 58px;
  max-width: 1120px;
  background: rgba(1, 16, 47, 0.8);
  border-color: var(--lime-15);
  box-shadow:
    0 18px 50px -18px rgba(0, 0, 0, 0.75),
    0 0 0 1px rgba(215, 243, 0, 0.03),
    inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.header__logo img {
  height: 36px;
  width: auto;
  transition: height 0.45s var(--ease);
}

.header.is-scrolled .header__logo img {
  height: 31px;
}

.nav__list {
  display: flex;
  gap: 2px;
}

.nav__link {
  position: relative;
  display: block;
  padding: 8px 16px;
  border-radius: 100px;
  font-size: 14.5px;
  font-weight: 500;
  color: var(--muted);
  transition:
    color 0.25s,
    background 0.25s;
}

.nav__link::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 2px;
  width: 4px;
  height: 4px;
  margin-left: -2px;
  border-radius: 50%;
  background: var(--lime);
  box-shadow: 0 0 8px var(--lime);
  transform: scale(0);
  transition: transform 0.35s var(--ease);
}

.nav__link:hover {
  color: var(--text);
  background: rgba(143, 166, 214, 0.06);
}

.nav__link.is-active {
  color: var(--text);
  background: rgba(143, 166, 214, 0.09);
}

.nav__link.is-active::after {
  transform: scale(1);
}

.nav__mobile-extra {
  display: none;
}

.header__actions {
  display: flex;
  align-items: center;
  gap: 18px;
}

.lang {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-family: var(--f-mono);
  font-size: 13px;
}

.lang__btn {
  padding: 4px 6px;
  color: var(--muted-2);
  transition: color 0.25s;
  letter-spacing: 0.06em;
}

.lang__btn:hover {
  color: var(--text);
}

.lang__btn.is-active {
  color: var(--lime);
}

.lang__sep {
  color: var(--line-2);
}

.burger {
  display: none;
  width: 42px;
  height: 42px;
  position: relative;
  border: 1px solid var(--line-2);
  border-radius: 50%;
  background: rgba(143, 166, 214, 0.05);
}

.burger span {
  position: absolute;
  left: 11px;
  right: 11px;
  height: 2px;
  background: var(--text);
  transition:
    transform 0.35s var(--ease),
    top 0.35s var(--ease);
}

.burger span:nth-child(1) {
  top: 15px;
}

.burger span:nth-child(2) {
  top: 24px;
  right: 17px;
}

.burger[aria-expanded="true"] span:nth-child(1) {
  top: 20px;
  transform: rotate(45deg);
}

.burger[aria-expanded="true"] span:nth-child(2) {
  top: 20px;
  right: 11px;
  transform: rotate(-45deg);
}

.section {
  position: relative;
  padding: 130px 0;
}

.section__head {
  max-width: 720px;
  margin-bottom: 64px;
}

.section__head--center {
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

.section__head--split {
  max-width: none;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
}

.kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 18px;
  font-family: var(--f-mono);
  font-size: 13px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}

.kicker b {
  color: var(--lime);
  font-weight: 500;
}

.section__title {
  font-family: var(--f-display);
  font-weight: 700;
  font-size: clamp(36px, 4.6vw, 62px);
  line-height: 1.02;
  letter-spacing: -0.02em;
  margin-bottom: 20px;
}

.section__lead {
  font-size: 18px;
  color: var(--muted);
  max-width: 620px;
}

.section__head--center .section__lead {
  margin: 0 auto;
}

.footer {
  position: relative;
  overflow: hidden;
  background: var(--navy-950);
  border-top: 1px solid var(--line);
  padding: 80px 0 32px;
}

.footer__top {
  display: grid;
  grid-template-columns: 1.4fr 1fr auto;
  gap: 48px;
  align-items: start;
  padding-bottom: 56px;
  border-bottom: 1px solid var(--line);
  position: relative;
  z-index: 1;
}

.footer__logo {
  height: 46px;
  width: auto;
  margin-bottom: 20px;
}

.footer__brand p {
  color: var(--muted);
  max-width: 340px;
  font-size: 15px;
}

.footer__nav {
  display: grid;
  grid-template-columns: repeat(2, auto);
  gap: 12px 40px;
  justify-content: start;
}

.footer__nav a {
  color: var(--muted);
  font-size: 15px;
  transition: color 0.25s;
}

.footer__nav a:hover {
  color: var(--lime);
}

.footer__side {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 22px;
}

.socials {
  display: flex;
  gap: 10px;
}

.socials a {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  border: 1px solid var(--line-2);
  color: var(--muted);
  transition: all 0.3s var(--ease);
}

.socials a:hover {
  color: var(--navy-900);
  background: var(--lime);
  border-color: var(--lime);
  transform: translateY(-3px);
}

.socials svg {
  width: 19px;
  height: 19px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.footer__bottom {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  padding-top: 28px;
  font-size: 13.5px;
  color: var(--muted-2);
  position: relative;
  z-index: 1;
}

.footer__mono {
  font-family: var(--f-mono);
  font-size: 12px;
}

.footer__mascot {
  position: absolute;
  width: 380px;
  height: 380px;
  right: -60px;
  bottom: -120px;
  opacity: 0.07;
  pointer-events: none;
}

@media (max-width: 1100px) {
  .nav__link {
    padding: 8px 10px;
    font-size: 14px;
  }
  .nav__link::after {
    left: 10px;
    right: 10px;
  }
}

@media (max-width: 960px) {
  .burger {
    display: block;
  }
  .header__actions > .lang,
  .header__actions > .btn {
    display: none;
  }
  .header__inner.container {
    height: 60px;
    padding: 0 9px 0 20px;
  }
  .header.is-scrolled .header__inner {
    height: 56px;
  }
  .header.menu-open::before {
    opacity: 1;
    pointer-events: auto;
  }
  .header.menu-open .header__inner {
    background: rgba(1, 13, 38, 0.97);
    border-color: var(--lime-15);
  }
  .nav {
    position: absolute;
    top: calc(100% + 10px);
    left: 0;
    right: 0;
    max-height: calc(100svh - 110px);
    overflow-y: auto;
    padding: 14px 22px 24px;
    border-radius: 26px;
    background: rgba(1, 13, 38, 0.98);
    border: 1px solid var(--lime-15);
    box-shadow: 0 30px 60px -20px rgba(0, 0, 0, 0.8);
    display: flex;
    flex-direction: column;
    gap: 26px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-12px) scale(0.98);
    transform-origin: top center;
    transition:
      opacity 0.35s var(--ease),
      transform 0.45s var(--ease-out),
      visibility 0.35s;
  }
  .nav.is-open {
    opacity: 1;
    visibility: visible;
    transform: none;
  }
  .nav__list {
    flex-direction: column;
    gap: 0;
  }
  .nav__link {
    font-family: var(--f-display);
    font-size: 26px;
    font-weight: 700;
    color: var(--text);
    padding: 12px 4px;
    border-radius: 0;
    border-bottom: 1px solid var(--line);
  }
  .nav__link:hover,
  .nav__link.is-active {
    background: none;
  }
  .nav__link::after {
    display: none;
  }
  .nav__link.is-active {
    color: var(--lime);
  }
  .nav.is-open .nav__list li {
    animation: projIn 0.5s var(--ease-out) both;
  }
  .nav.is-open .nav__list li:nth-child(2) {
    animation-delay: 0.05s;
  }
  .nav.is-open .nav__list li:nth-child(3) {
    animation-delay: 0.1s;
  }
  .nav.is-open .nav__list li:nth-child(4) {
    animation-delay: 0.15s;
  }
  .nav.is-open .nav__list li:nth-child(5) {
    animation-delay: 0.2s;
  }
  .nav__mobile-extra {
    display: flex;
    flex-direction: column;
    gap: 18px;
    align-items: flex-start;
  }
  .nav__mobile-extra .lang {
    font-size: 16px;
  }
  .footer__top {
    grid-template-columns: 1fr 1fr;
  }
  .footer__side {
    grid-column: span 2;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
  }
}

@media (max-width: 680px) {
  .section {
    padding: 96px 0;
  }
  .section__head {
    margin-bottom: 44px;
  }
  .section__lead {
    font-size: 16.5px;
  }
  .header__logo img {
    height: 34px;
  }
  .header.is-scrolled .header__logo img {
    height: 30px;
  }
  .footer__top {
    grid-template-columns: 1fr;
    gap: 36px;
  }
  .footer__side {
    grid-column: auto;
    flex-direction: column;
    align-items: flex-start;
  }
  .footer__bottom {
    flex-direction: column;
  }
}
