.topbar__inner {
  align-items: center;
  justify-content: space-between;
}

.topbar__contacts {
  display: flex;
  align-items: center;
  gap: 22px;
  min-width: 0;
}

.topbar__socials {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 0 0 auto;
}

.topbar__socials a {
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  color: #fff;
  opacity: .94;
  transition: opacity .2s ease, transform .2s ease;
}

.topbar__socials a:hover {
  opacity: 1;
  transform: translateY(-1px);
}

.topbar__socials svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

.navbar {
  height: 102px;
}

.brand img {
  height: 76px;
  max-width: 235px;
}

.footer__logo {
  height: 82px;
  max-width: 240px;
}

.nav-socials {
  display: none;
}

.mobile-footer-bar {
  display: none;
}

.nav-dropdown--mega .nav-dropdown__panel {
  left: 50%;
  width: min(680px, calc(100vw - 40px));
  min-width: 680px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px 12px;
  padding: 18px;
  border-radius: 22px;
  transform: translate(-34%, 8px);
}

.nav-dropdown--projects .nav-dropdown__panel {
  min-width: 245px;
}

.nav-dropdown--mega:hover .nav-dropdown__panel {
  display: grid;
  transform: translate(-34%, 0);
}

.nav-dropdown--mega .nav-dropdown__panel a {
  padding: 12px 14px;
  white-space: nowrap;
}

@media (max-width: 900px) {
  .topbar__contacts {
    gap: 14px;
  }
}

@media (max-width: 760px) {
  body {
    padding-bottom: calc(76px + env(safe-area-inset-bottom));
  }

  .navbar {
    height: 84px;
  }

  .brand img {
    height: 62px;
    max-width: 190px;
  }

  .footer__logo {
    height: 68px;
    max-width: 210px;
  }

  .nav-socials {
    display: flex;
    align-items: center;
    gap: 14px;
    padding-top: 12px;
    border-top: 1px solid var(--line);
  }

  .nav-socials a {
    display: grid;
    place-items: center;
    width: 38px;
    height: 38px;
    border-radius: 999px;
    background: var(--blue);
    color: #fff;
  }

  .nav-socials svg {
    width: 19px;
    height: 19px;
    fill: currentColor;
  }

  .mobile-footer-bar {
    position: fixed;
    z-index: 100;
    right: 0;
    bottom: 0;
    left: 0;
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: 68px;
    padding: 10px 14px calc(10px + env(safe-area-inset-bottom));
    border-top: 1px solid rgba(30, 71, 125, .14);
    background: rgba(255, 255, 255, .96);
    box-shadow: 0 -12px 34px rgba(14, 39, 72, .14);
    backdrop-filter: blur(18px);
  }

  .mobile-footer-bar__contact {
    display: flex;
    flex: 1 1 auto;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: 10px 20px;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--red), #c40000);
    color: #fff;
    font-size: 15px;
    font-weight: 800;
    box-shadow: 0 10px 24px rgba(255, 0, 0, .2);
  }

  .mobile-footer-bar__socials {
    display: flex;
    flex: 0 0 auto;
    align-items: center;
    gap: 6px;
  }

  .mobile-footer-bar__socials a {
    display: grid;
    width: 40px;
    height: 40px;
    place-items: center;
    border: 1px solid rgba(30, 71, 125, .14);
    border-radius: 999px;
    background: #fff;
    color: var(--blue);
  }

  .mobile-footer-bar__socials svg {
    width: 18px;
    height: 18px;
    fill: currentColor;
  }

  .nav-dropdown--mega .nav-dropdown__panel,
  .nav-dropdown--mega:hover .nav-dropdown__panel {
    display: block;
    width: auto;
    min-width: 0;
    transform: none;
  }

  .nav-dropdown--mega .nav-dropdown__panel a {
    white-space: normal;
  }
}
