/* Shared site header appearance, exactly matching home page (index.html) */
.header {
  font-family: Arial, Helvetica, sans-serif;
  --cyan: #00bde2;
  position: relative;
  z-index: 5;
  max-width: 1242px;
  min-height: 65px;
  margin: 7px auto 0;
  border: 1px solid #e2e3e7;
  border-radius: 15px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 16px 10px 25px;
  gap: 24px;
  background: #fff;
  box-sizing: border-box;
}
.header * {
  box-sizing: border-box;
}
.header a {
  color: inherit;
  text-decoration: none;
}
.header .brand {
  display: flex;
  align-items: center;
  gap: 13px;
  font-size: 22px;
  font-weight: 750;
  white-space: nowrap;
  letter-spacing: normal;
}
.header .brand img {
  width: 43px;
  height: 44px;
  display: block;
}
.header nav {
  display: flex;
  gap: 27px;
  align-items: center;
  margin-right: auto;
  margin-left: 38px;
  font-size: 13px;
  font-weight: 600;
}
.header nav a,
.header .platform-menu summary {
  position: relative;
  padding: 15px 0;
  font-family: Arial, Helvetica, sans-serif;
}
.header nav .active {
  color: var(--cyan);
}
.header nav .active:after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 7px;
  right: 7px;
  height: 2px;
  background: var(--cyan);
}
.header .header-actions {
  display: flex;
  gap: 15px;
}
.header .button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  border: 1px solid #d7d8de;
  border-radius: 9px;
  min-height: 42px;
  padding: 0 19px;
  font-size: 14px;
  font-weight: 700;
  font-family: Arial, Helvetica, sans-serif;
  white-space: nowrap;
  transition: transform 0.18s, box-shadow 0.18s;
  cursor: pointer;
  background: #fff;
  color: #08090b;
}
.header .button:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 18px #09bed222;
}
.header .button.primary {
  background: #00b7d8;
  color: #fff;
  border-color: #00b7d8;
}
.header .support {
  font-size: 13px;
}
.header .site-icon {
  display: inline-block;
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  vertical-align: middle;
}
.header .platform-menu {
  position: relative;
}
.header .platform-menu summary {
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  gap: 6px;
}
.header .platform-menu summary::-webkit-details-marker {
  display: none;
}
.header .platform-menu[open] summary {
  color: var(--cyan);
}
.header .platform-menu > div {
  position: absolute;
  top: calc(100% + 8px);
  left: -20px;
  min-width: 215px;
  padding: 9px;
  border: 1px solid #e3eaf2;
  border-radius: 13px;
  background: #fff;
  box-shadow: 0 14px 35px #15253c20;
  z-index: 20;
}
.header nav .platform-menu a {
  display: block;
  padding: 12px;
  border-radius: 7px;
  white-space: nowrap;
}
.header nav .platform-menu a:hover {
  background: #eefbfe;
  color: #008fa9;
}
.header a:focus-visible,
.header summary:focus-visible {
  outline: 3px solid #8c5efa;
  outline-offset: 4px;
}

@media (min-width: 1000px) and (max-width: 1230px) {
  .header {
    margin-inline: 18px;
  }
}
@media (max-width: 999px) {
  .header {
    margin: 10px 16px;
    padding: 10px 16px;
    flex-wrap: wrap;
    gap: 10px;
  }
  .header nav {
    order: 3;
    width: 100%;
    margin-left: 0;
    justify-content: center;
    gap: 32px;
  }
  .header .header-actions .support {
    display: none;
  }
}
@media (max-width: 600px) {
  .header {
    margin: 8px;
    border-radius: 12px;
    padding: 9px 12px;
  }
  .header .brand {
    font-size: 18px;
    gap: 7px;
  }
  .header .brand img {
    width: 33px;
    height: 34px;
  }
  .header .button {
    font-size: 11px;
    min-height: 37px;
    padding: 0 10px;
    gap: 6px;
  }
  .header .site-icon {
    width: 16px;
    height: 16px;
  }
  .header nav {
    gap: 17px;
    font-size: 11px;
  }
  .header nav a,
  .header .platform-menu summary {
    padding: 9px 0;
  }
  .header .platform-menu > div {
    left: auto;
    right: -20px;
  }
}
@media (max-width: 360px) {
  .header nav {
    gap: 10px;
    font-size: 10px;
  }
}

@media (min-width: 1000px) and (max-width: 1100px) {
  .header nav { margin-left: 14px; gap: 18px; }
  .header { gap: 18px; }
  .header .header-actions { gap: 10px; }
}
