/* biro51 topbar */
:root {
  --topbar-h: 64px;
}

body {
  padding-top: var(--topbar-h);
}

.topbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1100;
  height: var(--topbar-h);
  background: rgba(14, 14, 16, .78);
  border-bottom: 1px solid var(--line, #3c3c44);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}

.topbar__inner {
  width: min(1100px, 100%);
  height: 100%;
  margin: 0 auto;
  padding: 0 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.topbar__brand {
  display: inline-flex;
  align-items: baseline;
  gap: 10px;
  color: var(--ink, #efeff3);
  font-weight: 800;
  letter-spacing: .01em;
  text-decoration: none;
  white-space: nowrap;
}

.topbar__brand-badge {
  color: var(--red, #cd3832);
  font-weight: 900;
}

.topbar__nav,
.topbar__right,
.topbar__lang {
  display: flex;
  align-items: center;
}

.topbar__nav {
  gap: 6px;
}

.topbar__right {
  gap: 12px;
}

.topbar__lang {
  gap: 8px;
}

.topbar__link,
.topbar details > summary {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 40px;
  padding: 0 12px;
  border: 1px solid transparent;
  border-radius: 999px;
  background: transparent;
  color: var(--ink, #efeff3);
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  user-select: none;
  transition: border-color .18s ease, background-color .18s ease, transform .18s ease;
}

.topbar__link:hover,
.topbar details > summary:hover {
  border-color: var(--red, #cd3832);
  background: rgba(205, 56, 50, .12);
  text-decoration: none;
  transform: translateY(-2px);
}

.topbar__link:focus-visible,
.topbar details > summary:focus-visible {
  outline: 2px solid var(--red, #cd3832);
  outline-offset: 3px;
}

.topbar__link:active,
.topbar details > summary:active {
  transform: translateY(0);
}

.topbar__cta {
  background: var(--red, #cd3832);
  color: #fff;
}

.topbar__cta:hover {
  border-color: var(--red, #cd3832);
  background: var(--red, #cd3832);
  filter: brightness(1.08);
}

.topbar details {
  position: relative;
}

.topbar details > summary {
  list-style: none;
}

.topbar details > summary::-webkit-details-marker {
  display: none;
}

.topbar__dd {
  position: absolute;
  top: 48px;
  left: 0;
  min-width: 240px;
  padding: 10px;
  border: 1px solid var(--line, #3c3c44);
  border-radius: 16px;
  background: rgba(38, 39, 44, .96);
  box-shadow: 0 12px 30px rgba(0, 0, 0, .35);
}

.topbar__dd a {
  display: block;
  padding: 10px;
  border-radius: 12px;
  color: var(--ink, #efeff3);
  font-size: 14px;
  border: 1px solid transparent;
  font-weight: 650;
  text-decoration: none;
  transition: border-color .18s ease, background-color .18s ease, transform .18s ease;
}

.topbar__dd a:hover {
  border-color: var(--red, #cd3832);
  background: rgba(205, 56, 50, .12);
  transform: translateY(-2px);
}

.topbar__dd a[aria-current="page"] {
  border-color: var(--red, #cd3832);
  background: rgba(205, 56, 50, .12);
}

.topbar__dd a:focus-visible {
  outline: 2px solid var(--red, #cd3832);
  outline-offset: 2px;
}

.topbar__dd a:active {
  transform: translateY(0);
}

.topbar__lang-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 10px;
  border: 1px solid rgba(255, 255, 255, .10);
  border-radius: 999px;
  background: rgba(255, 255, 255, .04);
  color: var(--ink, #efeff3);
  font-size: 12px;
  font-weight: 800;
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
  transition: border-color .18s ease, background-color .18s ease, transform .18s ease;
}

.topbar__lang-link:hover {
  border-color: var(--red, #cd3832);
  background: rgba(205, 56, 50, .12);
  text-decoration: none;
  transform: translateY(-2px);
}

.topbar__lang-link:focus-visible {
  outline: 2px solid var(--red, #cd3832);
  outline-offset: 3px;
}

.topbar__lang-link:active {
  transform: translateY(0);
}

.topbar__lang-link[aria-current="page"] {
  border-color: var(--red, #cd3832);
}

.topbar__phone {
  color: var(--muted, #aaaab4);
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
}

.topbar__phone:hover {
  color: var(--ink, #efeff3);
}

.topbar__toggle {
  display: none;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line, #3c3c44);
  border-radius: 14px;
  background: rgba(255, 255, 255, .04);
  color: var(--ink, #efeff3);
  font-size: 18px;
  cursor: pointer;
  transition: border-color .18s ease, background-color .18s ease, transform .18s ease;
}

.topbar__toggle:hover {
  border-color: var(--red, #cd3832);
  background: rgba(205, 56, 50, .12);
  transform: translateY(-2px);
}

.topbar__toggle:focus-visible {
  outline: 2px solid var(--red, #cd3832);
  outline-offset: 3px;
}

.topbar__toggle:active {
  transform: translateY(0);
}

@media (max-width: 1040px) {
  .topbar__toggle {
    display: inline-flex;
  }

  .topbar__nav {
    position: fixed;
    top: var(--topbar-h);
    left: 0;
    right: 0;
    display: none;
    gap: 8px;
    max-height: calc(100vh - var(--topbar-h));
    max-height: calc(100dvh - var(--topbar-h));
    padding: 12px 14px calc(12px + env(safe-area-inset-bottom, 0px));
    overflow-y: auto;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
    border-bottom: 1px solid var(--line, #3c3c44);
    background: rgba(14, 14, 16, .92);
  }

  .topbar.is-open .topbar__nav {
    display: grid;
  }

  .topbar__link,
  .topbar details > summary {
    justify-content: space-between;
    height: 46px;
    border-color: rgba(255, 255, 255, .06);
    border-radius: 16px;
    background: rgba(255, 255, 255, .03);
  }

  .topbar__dd {
    position: static;
    min-width: 0;
    margin-top: 8px;
    box-shadow: none;
  }
}

@media (max-width: 460px) {
  .topbar__phone {
    display: none;
  }

  .topbar__lang-link {
    padding: 7px 8px;
  }
}


@media (prefers-reduced-motion: reduce) {
  .topbar__link,
  .topbar details > summary,
  .topbar__dd a,
  .topbar__lang-link,
  .topbar__toggle {
    transition: none;
  }
}
