.mp-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 18px 0;
  transition: padding var(--dur-small) var(--ease-out-quart),
              background var(--dur-small) var(--ease-out-quart),
              box-shadow var(--dur-small) var(--ease-out-quart),
              backdrop-filter var(--dur-small) var(--ease-out-quart);
  background: transparent;
}

.mp-header.is-scrolled {
  padding: 12px 0;
  background: rgba(255, 253, 253, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--line);
}

.mp-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}

.mp-header__logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  flex-shrink: 0;
  color: var(--ink);
}

.mp-header__logo-mark {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: var(--ink);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  flex-shrink: 0;
}
.mp-header__logo-mark::before {
  content: "";
  position: absolute;
  inset: 0;
  background: conic-gradient(from 0deg, var(--lime), var(--olive), var(--pink), var(--lime));
  animation: mp-spin 8s linear infinite;
  opacity: 0.9;
}
.mp-header__logo-mark::after {
  content: "";
  position: absolute;
  inset: 4px;
  background: var(--ink);
  border-radius: 7px;
}
.mp-header__logo-mark svg {
  position: relative;
  z-index: 2;
}

.mp-header__logo-text {
  font-family: var(--font-display);
  font-size: 22px;
  color: var(--ink);
  line-height: 1;
}
.mp-header__logo-text b { font-weight: 400; }
.mp-header__logo-text small {
  display: block;
  font-family: var(--font-body);
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.2em;
  color: rgba(46, 46, 46, 0.55);
  text-transform: uppercase;
  margin-top: -2px;
}

.mp-header__nav {
  display: flex;
  gap: 34px;
  align-items: center;
}

.mp-header__nav-list {
  display: flex;
  gap: 34px;
  list-style: none;
  padding: 0;
  margin: 0;
}

.mp-header__nav-link {
  font-size: 14px;
  font-weight: 500;
  color: var(--ink);
  position: relative;
  transition: opacity var(--dur-micro) var(--ease-out-quart);
  text-decoration: none;
}
.mp-header__nav-link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -4px;
  height: 2px;
  width: 0;
  background: var(--lime);
  transition: width var(--dur-small) var(--ease-out-quart);
}
.mp-header__nav-link:hover::after { width: 100%; }

.mp-header__actions {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-shrink: 0;
}

.mp-header__ghost {
  font-size: 14px;
  font-weight: 500;
}

.mp-header__burger {
  display: none;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--ink);
  color: var(--white);
  align-items: center;
  justify-content: center;
  border: none;
  cursor: pointer;
}

.mp-header__mobile-menu {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(255, 253, 253, 0.98);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  z-index: 999;
  padding: 120px var(--space-5) var(--space-8);
  overflow-y: auto;
  transform: translateY(-100%);
  opacity: 0;
  pointer-events: none;
  transition: transform var(--dur-small) var(--ease-out-quart),
              opacity var(--dur-small) var(--ease-out-quart);
}

.mp-header__mobile-menu.is-open {
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
}

.mp-header__mobile-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: var(--space-5);
  padding: 0;
  margin: 0;
}

.mp-header__mobile-link {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 6vw, 2.25rem);
  color: var(--ink);
  text-decoration: none;
  display: block;
  transition: color var(--dur-micro) var(--ease-out-quart);
}
.mp-header__mobile-link:hover { color: var(--olive); }

.mp-header__mobile-cta {
  margin-top: var(--space-8);
  display: flex;
}
.mp-header__mobile-cta .mp-btn { width: 100%; justify-content: center; }

@media (max-width: 1024px) {
  .mp-header__nav { display: none; }
  .mp-header__ghost { display: none; }
  .mp-header__burger { display: flex; }
}

@media (max-width: 640px) {
  .mp-header__inner { gap: 16px; }
  .mp-header__logo-text { font-size: 20px; }
  .mp-header__logo-text small { font-size: 8px; }
  .mp-header__actions .mp-btn--primary { padding: 12px 18px; font-size: 13px; }
}
