/* section-01-header: шапка 1:1 с electrosalnes.es (grid как у оригинала) */
.mk-header { position: sticky; top: 0; z-index: 50; background: #0c193a; color: #fff; box-shadow: none; font-family: 'DM Sans', 'Open Sans', Arial, sans-serif; }
.mk-header .mk-head-row {
  display: grid; align-items: center; min-height: 0; max-width: none;
  grid-template-columns: auto auto 1fr auto;
  grid-template-areas: 'logo logo search navigation' 'button links links links';
  column-gap: 16px; row-gap: 16px; padding: 16px 32px 8px;
}
.mk-header .mk-burger { grid-area: button; display: flex; align-items: center; gap: 4px; height: 28px; min-height: 28px; min-width: 113px; padding: 0 8px 0 0; border: 0; border-radius: 9999px; background: transparent; color: #fff; font-size: 14px; line-height: 20px; font-weight: 600; justify-self: start; }
.mk-header .mk-burger:hover { background: rgba(255,255,255,.12); }
.mk-header .mk-burger svg { width: 24px; height: 24px; flex: 0 0 24px; }
.mk-header .mk-burger-txt { display: block; }
.mk-header .mk-logo { grid-area: logo; display: flex; align-items: center; width: 198px; min-height: 44px; }
.mk-header .mk-logo img { display: block; width: 179px; height: 30px; }
.mk-header .mk-head-search { grid-area: search; min-width: 0; }
.mk-header .mk-search { position: relative; display: block; width: 100%; max-width: 964px; margin: 0; }
.mk-header .mk-search .mk-search-input { display: flex; width: 100%; height: 44px; min-height: 0; padding: 0 16px 0 38px; border: 1px solid transparent; border-radius: 22px !important; background: #fff; color: #0c193a; font-family: inherit; font-size: 16px; line-height: 24px; }
.mk-header .mk-search .mk-search-input::placeholder { color: #667394; opacity: 1; }
.mk-header .mk-search .mk-search-input:focus { border-color: transparent; }
.mk-header .mk-search .mk-search-btn { position: absolute; left: 8px; top: 0; bottom: 0; width: 28px; height: 44px; min-height: 0; padding: 4px; border: 0; border-radius: 9999px !important; background: transparent; color: #0c193a; box-shadow: none; }
.mk-header .mk-search .mk-search-btn:hover { background: transparent; }
.mk-header .mk-suggest { top: 48px; }
.mk-header .mk-head-icons { grid-area: navigation; display: flex; align-items: center; gap: 4px; width: auto; }
.mk-header .mk-pro { display: flex; align-items: center; gap: 4px; height: 28px; padding: 0 8px; border-radius: 9999px; color: #fff; font-size: 14px; line-height: 20px; font-weight: 600; white-space: nowrap; }
.mk-header .mk-pro:hover { background: rgba(255,255,255,.12); color: #fff; }
.mk-header .mk-pro-ico { width: 18px; height: 18px; flex: 0 0 18px; }
.mk-header .mk-pro-top { height: 44px; margin-right: 16px; }
.mk-header .mk-icon { position: relative; display: flex; align-items: center; justify-content: center; width: 44px; height: 44px; min-width: 44px; padding: 0; border-radius: 9999px; color: #fff; gap: 0; }
.mk-header .mk-icon:hover { background: rgba(255,255,255,.12); }
.mk-header .mk-icon svg { width: 24px; height: 24px; display: block; }
.mk-header .mk-icon-txt { display: none; }
.mk-header .mk-icon i { font-size: 22px; line-height: 24px; width: 24px; text-align: center; }.mk-header .mk-icon .indicator { display: flex; }
.mk-header .mk-quick { grid-area: links; display: flex; align-items: stretch; overflow: hidden; min-width: 0; height: 28px; background: transparent; border: 0; }
.mk-header .mk-quick-list { display: flex; flex-wrap: nowrap; gap: 8px; padding: 0; margin: 0; width: 100%; height: 28px; align-items: center; overflow-x: auto; overflow-y: hidden; scrollbar-width: none; }
.mk-header .mk-quick-list > li { flex: 0 0 auto; }
.mk-header .mk-quick-list > li > a { display: flex; align-items: center; gap: 4px; height: 28px; min-height: 28px; padding: 4px 8px; border-radius: 9999px; color: #fff; font-size: 14px; line-height: 20px; font-weight: 600; white-space: nowrap; background: transparent; }
.mk-header .mk-quick-list > li > a:hover { background: rgba(255,255,255,.12); color: #fff; }
.mk-header .mk-quick-list > li:first-child > a { color: #fff; }
.mk-header .mk-quick-list > li.mk-q-guide > a { padding-left: 4px; color: #0c193a; background: linear-gradient(90deg, #58d5bf 0%, #8ff5e4 100%); }
.mk-header .mk-q-ava { width: 20px; height: 20px; border-radius: 9999px; background: #c5d6f3 linear-gradient(160deg, #e7eefb 0 45%, #6aaa4a 46% 100%); flex: 0 0 20px; }
.mk-header .mk-quick-list > li.mk-q-bf > a { color: #b2ff72; background: #11141b; box-shadow: inset 0 0 0 1px #b2ff72; }
.mk-header .mk-quick-list > li.mk-q-pro { display: none; }
.mk-header .mk-q-sep { width: 1px; height: 24px; margin: auto 8px; background: #fff; }
.mk-header .mk-msgbar { height: 34px; background: #b2ff72; }
/* метрика шрифта оригинала уже DM Sans ~3%: подгонка ширины текста + правый вылет иконок */
.mk-header .mk-quick-list > li > a, .mk-header .mk-pro { letter-spacing: -0.2px; }
.mk-header .mk-search .mk-search-input { letter-spacing: -0.25px; }
@media (min-width: 1024px) { .mk-header .mk-head-icons { margin-right: -8px; } .mk-header .mk-head-search { margin-right: 8px; } }

@media (max-width: 1023px) {
  .mk-header .mk-head-row {
    grid-template-columns: auto auto 1fr auto;
    grid-template-areas: 'logo logo navigation navigation' 'button search search search' 'links links links links';
    column-gap: 8px; row-gap: 8px; padding: 4px 16px 8px;
  }
  .mk-header .mk-burger { width: 24px; min-width: 24px; height: 44px; min-height: 44px; padding: 0; justify-content: center; }
  .mk-header .mk-burger-txt { display: none; }
  .mk-header .mk-logo { width: auto; min-height: 44px; }
  .mk-header .mk-logo img { width: 143px; height: 24px; }
  .mk-header .mk-head-icons { justify-self: end; gap: 4px; }
  .mk-header .mk-pro-top { display: none; }
  .mk-header .mk-quick { margin: 4px -16px 0; }
  .mk-header .mk-quick-list { padding-left: 12px; }
  .mk-header .mk-quick-list > li.mk-q-guide { display: none; }
  .mk-header .mk-quick-list > li.mk-q-pro { display: flex; align-items: center; }
  /* mobile: all quick links visible at once, wrap instead of horizontal scroll */
  .mk-header .mk-quick { height: auto; overflow: visible; margin: 2px -16px 0; }
  .mk-header .mk-quick-list { flex-wrap: wrap; justify-content: center; height: auto; overflow: visible; gap: 6px; padding: 0 12px; }
  .mk-header .mk-quick-list > li > a { height: 28px; min-height: 28px; padding: 4px 10px; font-size: 13px; background: rgba(255,255,255,.08); }
  .mk-header .mk-quick-list > li.mk-q-bf > a { background: #11141b; }
  .mk-header .mk-suggest { left: -32px; right: 0; }
  .mk-header .mk-suggest a { grid-template-columns: 40px 1fr auto; gap: 10px; padding: 8px 10px; }
  .mk-header .mk-suggest img { width: 40px; height: 40px; }
  /* mobile: compact suggestions — name max 2 lines, max 4 items */
  .mk-header .mk-suggest a { padding: 6px 10px; }
  .mk-header .mk-suggest a > span { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; line-clamp: 2; overflow: hidden; overflow-wrap: anywhere; line-height: 1.3; font-size: 13px; }
  .mk-header .mk-suggest b { font-size: 13px; }
  .mk-header .mk-suggest a:not(.mk-suggest-all):nth-child(n+5) { display: none; }
  .mk-header .mk-suggest .mk-suggest-all { padding: 10px; }
}
