/* ==================================================
   DESKTOP / DEFAULT
   ================================================== */
.ok-header {
  position: sticky;
  top: 0;
  z-index: 50;
  width: 100%;
  background: rgba(255,255,255,.98);
  border-bottom: 1px solid #eaecf0;
  backdrop-filter: blur(10px);
}

.ok-header__inner {
  width: 100%;
  max-width: 600px;
  min-width: 0;
  margin: 0 auto;
  padding: 10px 14px 8px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 7px;
}

.ok-logo {
  display: block;
  width: 132px;
  min-width: 0;
  line-height: 0;
}
.ok-logo img { display: block; width: 100%; height: auto; }

.ok-logo--text {
  width: auto;
  line-height: 1.1;
  color: var(--ok-karma, #202122);
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -.02em;
  text-decoration: none;
  white-space: nowrap;
}
.ok-logo--text:hover { text-decoration: none; }

.ok-nav {
  width: 100%;
  min-width: 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  align-items: stretch;
  gap: 4px;
}

.ok-nav a,
.ok-nav button {
  min-width: 0;
  min-height: 40px;
  border: 0;
  border-radius: 9px;
  background: transparent;
  color: var(--ok-blue);
  padding: 8px 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  font-weight: 700;
  font-size: 14px;
  line-height: 1.15;
  white-space: normal;
  overflow-wrap: anywhere;
}
.ok-nav a:hover,
.ok-nav button:hover { background: #f5f7fb; text-decoration: none; }

/* ==================================================
   MAX-WIDTH: 600PX
   ================================================== */
@media (max-width: 600px) {
  .ok-header__inner { max-width: none; padding-left: 14px; padding-right: 14px; }
  .ok-logo { width: 126px; }
  .ok-logo--text { width: auto; font-size: 21px; }
}

/* ==================================================
   MAX-WIDTH: 430PX
   ================================================== */
@media (max-width: 430px) {
  .ok-header__inner { padding: 9px 12px 7px; gap: 6px; }
  .ok-logo { width: 118px; }
  .ok-logo--text { width: auto; font-size: 20px; }
  .ok-nav { gap: 2px; }
  .ok-nav a,
  .ok-nav button { min-height: 38px; font-size: 13px; padding-left: 2px; padding-right: 2px; }
}

/* ==================================================
   MAX-WIDTH: 390PX
   ================================================== */
@media (max-width: 390px) {
  .ok-header__inner { padding-left: 10px; padding-right: 10px; }
  .ok-logo { width: 112px; }
  .ok-logo--text { width: auto; font-size: 19px; }
  .ok-nav a,
  .ok-nav button { font-size: 12.5px; }
}
