.top {
  position: sticky;
  top: 0;
  z-index: 20;
  background: var(--bg);
  border-bottom: 1px solid var(--line);
}

.row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 12px 24px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
  color: var(--ink);
}

.disc {
  width: 46px;
  height: 46px;
  flex: none;
  display: block;
  object-fit: contain;
}

.bn {
  font-size: 12.5px;
  font-weight: 700;
  max-width: 330px;
  color: var(--navy);
}

:root[data-theme='dark'] .bn {
  color: #e6edf2;
}

.tools {
  display: flex;
  gap: 14px;
  align-items: center;
}

.lang button {
  background: none;
  border: 0;
  font:
    600 14px Inter,
    system-ui,
    sans-serif;
  color: var(--mute);
  cursor: pointer;
  padding: 4px 6px;
}

.lang .on {
  color: var(--ink);
  box-shadow: 0 2px 0 var(--sand);
}

.sf {
  display: flex;
  border: 1px solid var(--line);
  border-radius: 999px;
  overflow: hidden;
  background: var(--soft);
}

.sf input {
  border: 0;
  background: none;
  padding: 8px 14px;
  width: 170px;
  font: inherit;
  font-size: 14px;
  color: var(--ink);
}

.sf button {
  border: 0;
  background: none;
  padding: 0 12px;
  cursor: pointer;
  color: var(--mute);
}

.burger {
  display: none;
  background: none;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 8px 12px;
  font:
    600 14px Inter,
    system-ui,
    sans-serif;
  color: var(--ink);
}

nav.main {
  border-top: 1px solid var(--line);
}

nav.main > ul {
  display: flex;
  flex-wrap: nowrap;
  justify-content: center;
  gap: 0 4px;
  list-style: none;
  padding: 0 24px;
  max-width: none;
  margin: 0 auto;
}

.top.tight .t {
  padding-left: 6px;
  padding-right: 6px;
  font-size: 12.5px;
}

.top.tighter .t {
  padding-left: 4px;
  padding-right: 4px;
  font-size: 12px;
}

nav.main li {
  position: relative;
}

.t {
  display: block;
  background: none;
  border: 0;
  border-bottom: 3px solid transparent;
  padding: 12px 8px;
  white-space: nowrap;
  font:
    600 13.5px Inter,
    system-ui,
    sans-serif;
  font-size: clamp(12.5px, 0.7vw + 4px, 13.5px);
  color: var(--ink);
  text-decoration: none;
  cursor: pointer;
  text-align: left;
}

.t:hover,
.t.cur {
  border-bottom-color: var(--sand);
}

.drop {
  display: none;
  position: absolute;
  left: 0;
  top: 100%;
  min-width: 300px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: 10px;
  box-shadow: 0 18px 40px rgba(15, 42, 67, 0.16);
  z-index: 40;
}

nav.main li:nth-last-child(-n + 3) .drop {
  left: auto;
  right: 0;
}

li.has:hover .drop,
li.open .drop,
li.has:focus-within .drop {
  display: block;
}

.drop a,
.drop b {
  display: block;
  padding: 7px 12px;
  border-radius: 8px;
  text-decoration: none;
  color: var(--ink);
  font-size: 15px;
  line-height: 1.4;
}

.drop a:hover {
  background: var(--soft);
}

.drop a.cur {
  color: var(--sky-d);
  font-weight: 600;
}

.drop b {
  font-weight: 600;
  color: var(--mute);
  font-size: 13px;
  padding-bottom: 2px;
}

.drop .sub a {
  padding-left: 24px;
  font-size: 14px;
}

.ft {
  background: var(--navy);
  color: #bfd0de;
  margin-top: 80px;
  padding: 56px 0 28px;
  font-size: 15px;
}

.ft a {
  color: #fff;
  text-decoration: none;
}

.ft a:hover {
  text-decoration: underline;
}

.fc {
  display: flex;
  flex-wrap: wrap;
  gap: 20px 56px;
  padding-bottom: 30px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.14);
  margin-bottom: 30px;
}

.fc small {
  display: block;
  color: #8ea5b8;
}

.fc p {
  margin: 0;
}

.cols {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 26px;
}

.cols div {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.cols b {
  color: var(--sand);
  font:
    700 14px Montserrat,
    Inter,
    sans-serif;
}

.cp {
  margin-top: 34px;
  color: #8ea5b8;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
}

.top.compact .burger {
  display: block;
}

.top.compact nav.main {
  display: none;
}

.top.compact nav.main.show {
  display: block;
}

.top.compact nav.main > ul {
  display: block;
  max-width: none;
}

.top.compact .t {
  width: 100%;
}

.top.compact .drop,
.top.compact nav.main li:nth-last-child(-n + 3) .drop {
  position: static;
  box-shadow: none;
  border: 0;
  padding: 0 0 8px 10px;
  display: none;
}

.top.compact li.has:hover .drop,
.top.compact li.has:focus-within .drop {
  display: none;
}

.top.compact nav.main li.has.open .drop {
  display: block;
}
