.desktop-site-nav {
  position: relative;
  z-index: 80;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
  width: 100%;
  min-height: 64px;
  margin: 24px auto 0;
  padding: 9px 12px;
  overflow: visible;
  border: 1px solid rgba(16, 105, 255, .12);
  border-radius: 18px;
  background: rgba(255, 255, 255, .88);
  box-shadow: 0 16px 38px rgba(34, 76, 145, .1);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  color: #081642;
}

.desktop-site-nav a {
  color: inherit;
  text-decoration: none;
}

.desktop-site-nav__brand {
  display: inline-flex;
  min-width: 0;
  align-items: center;
  gap: 9px;
  padding: 7px 11px 7px 7px;
  border-radius: 15px;
  background: #f1f6ff;
  color: #081642;
  font-size: clamp(13px, 1.05vw, 16px);
  font-weight: 800;
  white-space: nowrap;
}

.desktop-site-nav__brand img {
  display: block;
  width: 38px;
  height: 38px;
  flex: 0 0 38px;
  border: 2px solid #fff;
  border-radius: 13px;
  object-fit: cover;
  object-position: center 23%;
  box-shadow: 0 8px 16px rgba(16, 105, 255, .16);
}

.desktop-site-nav__links,
.desktop-site-nav__contacts {
  display: flex;
  align-items: center;
  gap: 8px;
}

.desktop-site-nav__links {
  justify-content: center;
}

.desktop-site-nav__contacts {
  justify-content: flex-end;
  min-width: 92px;
}

.desktop-site-nav__links a,
.desktop-site-nav__links summary {
  position: relative;
  display: inline-flex;
  min-height: 40px;
  align-items: center;
  border-radius: 13px;
  padding: 0 clamp(10px, .85vw, 14px);
  color: #21325f;
  font-size: clamp(13px, .92vw, 14px);
  font-weight: 700;
  white-space: nowrap;
  cursor: pointer;
  list-style: none;
}

.desktop-site-nav__links summary {
  gap: 8px;
  text-decoration: underline;
  text-decoration-color: rgba(16, 105, 255, .45);
  text-decoration-thickness: 2px;
  text-underline-offset: 7px;
}

.desktop-site-nav__links summary::after {
  content: "";
  width: 7px;
  height: 7px;
  margin-top: -3px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg);
  transition: transform .16s ease;
}

.desktop-site-nav__links details[open] summary::after {
  margin-top: 2px;
  transform: rotate(225deg);
}

.desktop-site-nav__links a:hover,
.desktop-site-nav__links details[open] summary {
  background: #edf4ff;
  color: #1069ff;
}

.desktop-site-nav__links summary::-webkit-details-marker {
  display: none;
}

.desktop-site-nav__links details {
  position: relative;
  z-index: 100;
}

.desktop-site-nav__links details > div {
  position: absolute;
  left: 50%;
  top: calc(100% + 12px);
  z-index: 120;
  display: grid;
  gap: 6px;
  width: 272px;
  transform: translateX(-50%);
  padding: 10px;
  border: 1px solid rgba(16, 105, 255, .12);
  border-radius: 18px;
  background: rgba(255, 255, 255, .99);
  box-shadow: 0 22px 48px rgba(34, 76, 145, .22);
}

.desktop-site-nav__links details > div a {
  gap: 10px;
  justify-content: flex-start;
  min-height: 38px;
}

.desktop-site-nav__links details > div a span {
  display: grid;
  width: 34px;
  height: 28px;
  flex: 0 0 34px;
  place-items: center;
  border-radius: 10px;
  background: #edf4ff;
  color: #1069ff;
  font-size: 12px;
  font-weight: 800;
}

.desktop-site-nav__contact {
  display: inline-grid;
  width: 44px;
  height: 44px;
  place-items: center;
  border-radius: 50%;
  padding: 0;
  border: 2px solid #1069ff;
  background: #fff;
  color: #1069ff;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0;
  flex: 0 0 auto;
}

.desktop-site-nav__contact--telegram {
  box-shadow: 0 8px 18px rgba(16, 105, 255, .08);
}

.desktop-site-nav__contact img {
  display: block;
  width: 21px;
  height: 21px;
  object-fit: contain;
}


nav.desktop-site-nav { width: min(1510px, calc(100% - 96px)); margin: 24px auto 0; font-family: Arial, sans-serif; line-height: 1.4; letter-spacing: 0; }
.desktop-site-nav__links details > div { width: 330px; max-width: calc(100vw - 32px); }
.desktop-site-nav__links details > div a { white-space: normal; }
.desktop-site-nav__links details > div::before { content: ""; position: absolute; top: -14px; left: 0; right: 0; height: 14px; }
.desktop-site-nav a:focus-visible, .desktop-site-nav summary:focus-visible { outline: 2px solid #1263f5; outline-offset: 3px; }
@media (min-width: 761px) and (max-width: 1120px) {
nav.desktop-site-nav { width: min(900px, calc(100% - 40px)); gap: 8px; padding-inline: 9px; }
.desktop-site-nav__brand { font-size: 13px; }
.desktop-site-nav__brand img { width: 34px; height: 34px; flex-basis: 34px; }
.desktop-site-nav__links { gap: 4px; }
.desktop-site-nav__links a, .desktop-site-nav__links summary { font-size: 12.5px; padding-inline: 8px; min-height: 36px; }
.desktop-site-nav__contact { width: 38px; height: 38px; }
}
@media (max-width: 760px) { nav.desktop-site-nav { display: none; } }

