.site-nav {
  position: sticky;
  top: 0;
  z-index: 1000;
  display: flex;
  width: 100%;
  height: 72px;
  padding: 0 var(--page-edge);
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  color: #101419;
  background: rgba(255, 255, 255, .96);
  box-shadow: 0 1px 0 rgba(16, 20, 25, .08);
  font-family: "Inter", Arial, sans-serif;
  backdrop-filter: blur(14px);
}

.site-nav,
.site-nav *,
.mobile-menu,
.mobile-menu *,
.shared-footer,
.shared-footer * {
  box-sizing: border-box;
}

body.page-home .site-nav {
  position: relative;
  height: 70px;
  padding: 0;
  color: #fff;
  background: transparent;
  box-shadow: none;
  backdrop-filter: none;
}

.nav-logo {
  display: inline-flex;
  min-height: 44px;
  flex: 0 0 auto;
  align-items: center;
  gap: 10px;
  color: var(--brand-blue);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0;
  text-decoration: none;
}

.nav-logo-mark {
  display: block;
  width: 14px;
  height: 14px;
  border-radius: 3px;
  background: var(--brand-blue);
}

.nav-links,
.nav-right,
.nav-mobile-right {
  display: flex;
  align-items: center;
}

.nav-links {
  gap: 28px;
}

.nav-links a {
  position: relative;
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  color: inherit;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0;
  text-decoration: none;
}

.nav-links a::after {
  position: absolute;
  right: 0;
  bottom: 5px;
  left: 0;
  height: 2px;
  background: var(--brand-blue);
  content: "";
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .22s ease;
}

.nav-links a:hover,
.nav-links a:focus-visible,
.nav-links a[aria-current="page"] {
  color: var(--brand-blue);
}

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

.nav-right {
  gap: 18px;
}

.nav-lang {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  gap: 6px;
  color: inherit;
  font-size: 13px;
  font-weight: 600;
}

.nav-lang svg {
  width: 17px;
  height: 17px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.5;
}

.nav-contact-link,
.btn-contact-mobile {
  display: inline-flex;
  min-height: 44px;
  padding: 0 18px;
  border: 1px solid var(--brand-blue);
  border-radius: 4px;
  align-items: center;
  justify-content: center;
  color: #fff;
  background: var(--brand-blue);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0;
  text-decoration: none;
  transition: background-color .18s ease, border-color .18s ease, transform .18s ease;
}

.nav-contact-link:hover,
.nav-contact-link:focus-visible,
.btn-contact-mobile:hover,
.btn-contact-mobile:focus-visible {
  color: #fff;
  border-color: var(--brand-blue-hover);
  background: var(--brand-blue-hover);
}

.nav-mobile-right {
  display: none;
  gap: 12px;
}

.nav-tablet-contact {
  display: none;
}

.hamburger {
  display: none;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  color: inherit;
  background: transparent;
  cursor: pointer;
}

.hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
  transition: transform .22s ease, opacity .22s ease;
}

.hamburger.open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.hamburger.open span:nth-child(2) {
  opacity: 0;
}

.hamburger.open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.mobile-menu {
  position: fixed;
  top: 72px;
  right: 0;
  left: 0;
  z-index: 999;
  display: flex;
  padding: 18px 32px 28px;
  flex-direction: column;
  gap: 4px;
  color: #101419;
  background: #fff;
  box-shadow: 0 18px 30px rgba(16, 20, 25, .12);
  font-family: "Inter", Arial, sans-serif;
  opacity: 0;
  pointer-events: none;
  transform: translateY(-12px);
  transition: opacity .2s ease, transform .2s ease;
}

.mobile-menu.open {
  opacity: 1;
  pointer-events: auto;
  transform: none;
}

.mobile-menu > a {
  display: flex;
  min-height: 44px;
  align-items: center;
  color: inherit;
  font-size: 15px;
  font-weight: 500;
  text-decoration: none;
}

.mobile-menu > a[aria-current="page"] {
  color: var(--brand-blue);
  font-weight: 600;
}

.mobile-menu-cta {
  padding-top: 10px;
}

.mobile-menu-cta a {
  width: 100%;
  min-height: 44px;
}

.shared-footer {
  width: 100%;
  padding: 0 max(24px, calc((100% - 1280px) / 2));
  overflow: hidden;
  color: rgba(255, 255, 255, .7);
  background: #0c1218;
  font-family: "Inter", Arial, sans-serif;
  line-height: normal;
}

.shared-footer__inner {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 72px 0 40px;
}

.shared-footer__main {
  display: grid;
  grid-template-columns: 300px minmax(0, 1fr);
  gap: 72px;
  align-items: start;
}

.shared-footer__brand {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 26px;
  align-items: flex-start;
}

.shared-footer__logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--brand-blue);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0;
  text-decoration: none;
}

.shared-footer__mark {
  display: block;
  width: 14px;
  height: 14px;
  border-radius: 3px;
  background: var(--brand-blue);
}

.shared-footer__brand p {
  max-width: 280px;
  margin: 0;
  color: rgba(255, 255, 255, .7);
  font-size: 14px;
  line-height: 1.6;
}

.shared-footer__social {
  display: flex;
  gap: 16px;
  align-items: center;
}

.shared-footer__social a {
  display: grid;
  width: 36px;
  height: 36px;
  border: 1px solid rgba(255, 255, 255, .2);
  border-radius: 50%;
  place-items: center;
  color: rgba(255, 255, 255, .75);
  background: rgba(255, 255, 255, .12);
  font-size: 13px;
  font-weight: 500;
  line-height: 1;
  text-decoration: none;
  transition: background-color .2s ease, color .2s ease;
}

.shared-footer__social a:hover,
.shared-footer__social a:focus-visible {
  color: #fff;
  background: rgba(255, 255, 255, .2);
}

.shared-footer__menus {
  display: grid;
  min-width: 0;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 32px;
}

.shared-footer__column {
  min-width: 0;
}

.shared-footer__column h2 {
  margin: 0 0 16px;
  font: inherit;
}

.shared-footer__toggle {
  display: flex;
  width: 100%;
  padding: 0;
  border: 0;
  align-items: center;
  justify-content: space-between;
  color: rgba(255, 255, 255, .88);
  background: transparent;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0;
  line-height: 1.4;
  text-align: left;
  text-transform: uppercase;
  pointer-events: none;
}

.shared-footer__chevron {
  display: none;
}

.shared-footer__links {
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: flex-start;
}

.shared-footer__links a {
  color: rgba(255, 255, 255, .7);
  font-size: 14px;
  line-height: 1.8;
  text-decoration: none;
  transition: color .15s ease;
}

.shared-footer__links a:hover,
.shared-footer__links a:focus-visible {
  color: #fff;
}

.shared-footer__bottom {
  display: flex;
  width: 100%;
  margin-top: 48px;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, .1);
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  color: rgba(255, 255, 255, .5);
  font-size: 13px;
}

.shared-footer__bottom nav {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: center;
}

.shared-footer__bottom a,
.shared-footer__cookie-button {
  padding: 0;
  border: 0;
  color: inherit;
  background: transparent;
  font: inherit;
  text-decoration: none;
  cursor: pointer;
  transition: color .15s ease;
}

.shared-footer__bottom a:hover,
.shared-footer__bottom a:focus-visible,
.shared-footer__cookie-button:hover,
.shared-footer__cookie-button:focus-visible {
  color: rgba(255, 255, 255, .82);
}

.cookie-dialog {
  width: min(520px, calc(100% - 32px));
  padding: 0;
  border: 0;
  border-radius: 6px;
  color: #101419;
  background: #fff;
  box-shadow: 0 24px 70px rgba(0, 0, 0, .28);
}

.cookie-dialog::backdrop {
  background: rgba(12, 18, 24, .72);
}

.cookie-dialog__body {
  display: grid;
  padding: 28px;
  gap: 18px;
}

.cookie-dialog__body h2,
.cookie-dialog__body p {
  margin: 0;
}

.cookie-dialog__body p {
  color: #4d5662;
  line-height: 1.6;
}

.cookie-dialog__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.cookie-dialog__actions button {
  min-height: 44px;
  padding: 0 18px;
  border: 1px solid var(--brand-blue);
  border-radius: 4px;
  color: var(--brand-blue);
  background: #fff;
  font-weight: 600;
  cursor: pointer;
}

.cookie-dialog__actions button[data-cookie-accept] {
  color: #fff;
  background: var(--brand-blue);
}

@media (max-width: 1199px) {
  .site-nav {
    padding-right: 32px;
    padding-left: 32px;
  }

  body.page-home .site-nav {
    padding-right: 0;
    padding-left: 0;
  }

  .nav-links,
  .nav-right {
    display: none;
  }

  .nav-mobile-right,
  .hamburger {
    display: flex;
  }

  .nav-tablet-contact {
    display: inline-flex;
  }

  .shared-footer {
    padding-right: 32px;
    padding-left: 32px;
  }

  .shared-footer__inner {
    padding: 56px 0 32px;
  }

  .shared-footer__main {
    grid-template-columns: minmax(0, 1fr);
    gap: 36px;
  }

  .shared-footer__brand {
    display: grid;
    grid-template-columns: auto minmax(220px, 1fr) auto;
    gap: 32px;
    align-items: center;
  }

  .shared-footer__brand p {
    max-width: 460px;
  }

  .shared-footer__social {
    justify-self: end;
  }

  .shared-footer__menus {
    gap: 24px;
  }
}

@media (max-width: 899px) {
  .shared-footer__brand {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 18px 24px;
  }

  .shared-footer__brand p {
    grid-column: 1 / -1;
    grid-row: 2;
  }

  .shared-footer__social {
    grid-column: 2;
    grid-row: 1;
  }

  .shared-footer__menus {
    gap: 20px;
  }
}

@media (max-width: 639px) {
  .site-nav {
    height: 64px;
    padding-right: 16px;
    padding-left: 16px;
  }

  body.page-home .site-nav {
    height: 64px;
    padding-right: 0;
    padding-left: 0;
  }

  .nav-tablet-contact {
    display: none;
  }

  .mobile-menu {
    top: 64px;
    padding-right: 16px;
    padding-left: 16px;
  }

  .shared-footer {
    padding-right: 16px;
    padding-left: 16px;
  }

  .shared-footer__inner {
    padding: 40px 0 24px;
  }

  .shared-footer__main {
    gap: 24px;
  }

  .shared-footer__brand {
    display: flex;
    gap: 16px;
    align-items: flex-start;
  }

  .shared-footer__brand p {
    max-width: 340px;
  }

  .shared-footer__social a {
    width: 44px;
    height: 44px;
  }

  .shared-footer__menus {
    grid-template-columns: minmax(0, 1fr);
    gap: 0;
    border-top: 1px solid rgba(255, 255, 255, .12);
  }

  .shared-footer__column {
    border-bottom: 1px solid rgba(255, 255, 255, .12);
  }

  .shared-footer__column h2 {
    margin: 0;
  }

  .shared-footer__toggle {
    min-height: 50px;
    pointer-events: auto;
    cursor: pointer;
  }

  .shared-footer__chevron {
    display: block;
    width: 9px;
    height: 9px;
    margin-right: 4px;
    border-right: 1.5px solid currentColor;
    border-bottom: 1.5px solid currentColor;
    transform: rotate(45deg);
    transition: transform .2s ease;
  }

  .shared-footer__toggle[aria-expanded="true"] .shared-footer__chevron {
    transform: rotate(225deg);
  }

  .shared-footer__links {
    gap: 0;
    padding-bottom: 12px;
  }

  .shared-footer__links[hidden] {
    display: none;
  }

  .shared-footer__links a {
    display: flex;
    min-height: 44px;
    align-items: center;
  }

  .shared-footer__bottom {
    margin-top: 24px;
    padding-top: 20px;
    gap: 12px;
    flex-direction: column;
    align-items: flex-start;
    font-size: 12px;
  }

  .shared-footer__bottom nav {
    display: grid;
    width: 100%;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0 12px;
  }

  .shared-footer__bottom a,
  .shared-footer__cookie-button {
    display: inline-flex;
    min-height: 44px;
    align-items: center;
  }
}

@media (hover: none) {
  a:active,
  button:active,
  .spotlight:active {
    transform: scale(.97);
  }
}
