.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(148, 163, 184, 0.18);
}

.site-header__inner {
  min-height: 74px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 16px;
}

.site-logo__link {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  font-weight: 800;
  color: #0f172a;
}

.site-logo__link:hover {
  text-decoration: none;
}

.site-logo__link img {
  max-height: 44px;
  width: auto;
  display: block;
}

.site-logo__textmark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 42px;
  height: 42px;
  padding: 0 13px;
  border-radius: 999px;
  background: linear-gradient(135deg, #0f172a, #2563eb);
  color: #ffffff;
  font-size: 13px;
  letter-spacing: 0.08em;
  font-weight: 900;
}

.site-logo__textgroup {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.site-logo__title {
  font-size: 16px;
  font-weight: 900;
  color: #0f172a;
}

.site-logo__subtitle {
  font-size: 12px;
  color: #64748b;
  font-weight: 600;
}

.site-nav__list {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  list-style: none;
  margin: 0;
  padding: 0;
  flex-wrap: wrap;
}

.site-nav__item {
  margin: 0;
}

.site-nav__link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 9px 15px;
  border-radius: 999px;
  border: 0;
  background: transparent;
  text-decoration: none;
  font-size: 15px;
  font-weight: 800;
  color: #0f172a;
  cursor: pointer;
  transition: background-color .18s ease, color .18s ease, transform .18s ease;
}

.site-nav__link:hover {
  background: #eff6ff;
  color: #1d4ed8;
  text-decoration: none;
  transform: translateY(-1px);
}

.site-nav__link.is-active {
  background: linear-gradient(135deg, #eff6ff, #dbeafe);
  color: #1d4ed8;
}

.site-header__tools {
  display: flex;
  align-items: center;
  justify-content: flex-end;
}

.header-search {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 6px;
  border: 1px solid #e2e8f0;
  border-radius: 999px;
  background: #ffffff;
  margin: 0;
}

.header-search__input {
  width: 180px;
  min-width: 0;
  border: 0;
  outline: none;
  background: transparent;
  padding: 0 9px;
  font-size: 14px;
  color: #0f172a;
}

.header-search__button {
  border: 0;
  border-radius: 999px;
  background: linear-gradient(135deg, #1d4ed8, #2563eb);
  color: #ffffff;
  font-size: 14px;
  font-weight: 800;
  padding: 9px 15px;
  cursor: pointer;
}

.header-search__button:hover {
  opacity: .95;
}

.site-main {
  min-height: 60vh;
}

@media (max-width: 1100px) {
  .site-header__inner {
    grid-template-columns: 1fr;
    justify-items: start;
    padding-top: 14px;
    padding-bottom: 14px;
  }

  .site-nav__list {
    justify-content: flex-start;
  }

  .site-header__tools,
  .header-search {
    width: 100%;
  }

  .header-search__input {
    width: 100%;
  }
}

@media (max-width: 640px) {
  .site-logo__subtitle {
    display: none;
  }

  .site-nav__link {
    min-height: 36px;
    padding: 8px 12px;
    font-size: 14px;
  }
}

/* =====================================================
   HEADER TUNE V1
   ===================================================== */

.site-header {
  box-shadow: 0 8px 28px rgba(15, 23, 42, 0.04);
}

.site-header__inner {
  width: min(1180px, calc(100% - 64px));
  max-width: 1180px;
  margin: 0 auto;
  padding-left: 0 !important;
  padding-right: 0 !important;
}

.site-nav__link.is-active {
  box-shadow: inset 0 0 0 1px rgba(37, 99, 235, 0.14);
}

.site-header__tools {
  min-width: 260px;
}

.header-search {
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.04);
}

.header-search__input::placeholder {
  color: #94a3b8;
}

@media (max-width: 1180px) {
  .site-header__inner {
    width: min(100% - 40px, 980px);
    grid-template-columns: 1fr;
  }

  .site-nav__list {
    justify-content: flex-start;
  }

  .site-header__tools {
    min-width: 0;
  }
}

@media (max-width: 640px) {
  .site-header__inner {
    width: calc(100% - 28px);
  }

  .site-nav__list {
    gap: 6px;
  }

  .site-nav__link {
    font-size: 13px;
    padding: 7px 10px;
  }

  .header-search {
    padding: 5px;
  }

  .header-search__button {
    padding: 8px 12px;
  }
}
