/* Marketplace365 - wspolny naglowek, stopka i okruszki (generowane przez build.mjs, klasy mp-*).
   Niezalezne od inline CSS poszczegolnych szablonow; korzysta z tokenow design-system/tokens.css (motyw ciemny). */

html { scroll-padding-top: 84px; }

/* ---------- NAGLOWEK ---------- */
.mp-hdr {
  position: fixed; top: 0; left: 0; right: 0; z-index: 300;
  background: rgba(21, 24, 29, 0.92); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(250, 250, 248, 0.14);
  font-family: var(--mp-font-sans, 'Instrument Sans', system-ui, sans-serif);
  transition: background .2s, border-color .2s;
}
.mp-hdr.scrolled { background: rgba(21, 24, 29, 0.98); border-bottom-color: rgba(245, 166, 35, 0.28); }
.mp-hdr__in { max-width: 1160px; margin: 0 auto; padding: 0 28px; height: 64px; display: flex; align-items: center; gap: 20px; }
.mp-hdr__logo { display: flex; align-items: center; flex: none; }
.mp-hdr__logo img { height: 36px; width: auto; display: block; }
.mp-hdr__panel { display: flex; align-items: center; gap: 24px; margin-left: auto; }
.mp-hdr__menu { display: flex; align-items: center; gap: 24px; list-style: none; margin: 0; padding: 0; }
.mp-hdr a { text-decoration: none; }
.mp-hdr__menu a { color: #C9CBC7; font-size: 14px; font-weight: 500; transition: color .2s; }
.mp-hdr__menu a:hover, .mp-hdr__menu a[aria-current="page"] { color: #FAFAF8; }
.mp-hdr__cta {
  background: #F5A623; color: #15181D !important; font-size: 14px; font-weight: 700; line-height: 1;
  padding: 11px 18px; border-radius: 8px; white-space: nowrap; transition: background .2s;
}
.mp-hdr__cta:hover { background: #F7B84F; color: #15181D !important; }

.mp-lang { display: flex; align-items: stretch; border: 1px solid rgba(250, 250, 248, 0.22); border-radius: 4px; overflow: hidden; flex: none; }
.mp-lang a, .mp-lang span {
  padding: 6px 11px; font-size: 12px; font-weight: 700; letter-spacing: .5px; line-height: 1.2; color: #C9CBC7;
}
.mp-lang a:hover { color: #FAFAF8; background: rgba(250, 250, 248, 0.08); }
.mp-lang [aria-current="true"] { background: #F5A623; color: #15181D; }

.mp-hdr__burger {
  display: none; margin-left: 4px; width: 40px; height: 40px; border: 1px solid rgba(250, 250, 248, 0.22); border-radius: 8px;
  background: transparent; cursor: pointer; padding: 0; flex: none; position: relative;
}
.mp-hdr__burger span, .mp-hdr__burger::before, .mp-hdr__burger::after {
  content: ""; position: absolute; left: 10px; right: 10px; height: 2px; background: #FAFAF8; border-radius: 2px; transition: transform .2s, opacity .2s;
}
.mp-hdr__burger::before { top: 13px; }
.mp-hdr__burger span { top: 19px; }
.mp-hdr__burger::after { top: 25px; }
.mp-hdr.is-open .mp-hdr__burger::before { transform: translateY(6px) rotate(45deg); }
.mp-hdr.is-open .mp-hdr__burger::after { transform: translateY(-6px) rotate(-45deg); }
.mp-hdr.is-open .mp-hdr__burger span { opacity: 0; }

.mp-hdr a:focus-visible, .mp-hdr__burger:focus-visible, .mp-foot a:focus-visible, .mp-crumbs a:focus-visible {
  outline: 2px solid #F5A623; outline-offset: 3px; border-radius: 4px;
}

@media (max-width: 920px) {
  .mp-hdr__in { padding: 0 16px; gap: 10px; }
  .mp-hdr__logo img { height: 28px; }
  .mp-hdr__lang-wrap { margin-left: auto; }
  .mp-lang a, .mp-lang span { padding: 6px 9px; }
  .mp-hdr__burger { display: block; }
  .mp-hdr__panel {
    position: absolute; top: 64px; left: 0; right: 0; margin: 0; padding: 12px 16px 20px; flex-direction: column; align-items: stretch; gap: 14px;
    background: #15181D; border-bottom: 1px solid rgba(250, 250, 248, 0.14); display: none;
  }
  .mp-hdr.is-open .mp-hdr__panel { display: flex; }
  .mp-hdr__menu { flex-direction: column; align-items: stretch; gap: 0; }
  .mp-hdr__menu a { display: block; padding: 12px 4px; font-size: 16px; border-bottom: 1px solid rgba(250, 250, 248, 0.08); }
  .mp-hdr__cta { text-align: center; padding: 14px 18px; font-size: 15px; }
}
/* bez JS: panel zawsze widoczny w wierszu pod belka (menu nie znika) */
html:not(.js-loaded) .mp-hdr__burger { display: none; }
@media (max-width: 920px) {
  html:not(.js-loaded) .mp-hdr__panel { display: flex; position: static; flex-direction: row; flex-wrap: wrap; padding: 8px 16px; }
  html:not(.js-loaded) .mp-hdr__in { flex-wrap: wrap; height: auto; padding-bottom: 8px; }
}

/* ---------- OKRUSZKI ---------- */
.mp-crumbs {
  position: absolute; top: 76px; left: 0; right: 0; z-index: 5; pointer-events: none;
  font-family: var(--mp-font-sans, 'Instrument Sans', system-ui, sans-serif);
}
.mp-crumbs ol { max-width: 1160px; margin: 0 auto; padding: 0 28px; list-style: none; display: flex; flex-wrap: wrap; gap: 6px; font-size: 12.5px; line-height: 1.4; color: #C9CBC7; }
.mp-crumbs li { display: inline-flex; align-items: center; gap: 6px; pointer-events: auto; }
.mp-crumbs li + li::before { content: "›"; color: #9CA0A6; }
.mp-crumbs a { color: #C9CBC7; text-decoration: none; }
.mp-crumbs a:hover { color: #FAFAF8; text-decoration: underline; }
.mp-crumbs [aria-current="page"] { color: #FAFAF8; }
/* wariant w przeplywie: zastepuje dawny blok .breadcrumb szablonu (daje odstep pod stala belka) */
.mp-crumbs--flow { position: static; padding-top: 80px; pointer-events: auto; }
@media (max-width: 920px) { .mp-crumbs { top: 72px; } .mp-crumbs--flow { padding-top: 76px; } .mp-crumbs ol { padding: 0 16px; } }

/* ---------- STOPKA ---------- */
.mp-foot {
  background: #101317; color: #C9CBC7; border-top: 1px solid rgba(250, 250, 248, 0.14);
  font-family: var(--mp-font-sans, 'Instrument Sans', system-ui, sans-serif); font-size: 14px; line-height: 1.6;
}
.mp-foot__in { max-width: 1160px; margin: 0 auto; padding: 56px 28px 28px; }
.mp-foot__grid { display: grid; grid-template-columns: 1.5fr 1.2fr 1fr; gap: 40px; }
.mp-foot__grid.has-legal { grid-template-columns: 1.5fr 1.2fr 1fr 1fr; }
.mp-foot__brand img { height: 40px; width: auto; display: block; margin-bottom: 14px; }
.mp-foot__brand p { margin: 0 0 10px; max-width: 34ch; color: #C9CBC7; }
.mp-foot__by { font-size: 12px; letter-spacing: .06em; text-transform: uppercase; color: #9CA0A6; }
.mp-foot .mp-foot__by a { color: #F5A623; font-weight: 600; text-decoration: none; }
.mp-foot h3 { margin: 0 0 14px; font-size: 11px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: #FAFAF8; }
.mp-foot ul { list-style: none; margin: 0; padding: 0; }
.mp-foot li { margin: 0 0 8px; }
.mp-foot a { color: #C9CBC7; text-decoration: none; transition: color .2s; }
.mp-foot a:hover { color: #FAFAF8; text-decoration: underline; }
.mp-foot__plat { columns: 2; column-gap: 24px; }
.mp-foot__plat li { break-inside: avoid; }
.mp-foot__all { margin-top: 6px; }
.mp-foot__all a { color: #F5A623; font-weight: 600; }
.mp-foot__bottom { margin-top: 36px; padding-top: 20px; border-top: 1px solid rgba(250, 250, 248, 0.1); font-size: 13px; color: #9CA0A6; }
@media (max-width: 920px) {
  .mp-foot__in { padding: 40px 16px 24px; }
  .mp-foot__grid, .mp-foot__grid.has-legal { grid-template-columns: 1fr 1fr; gap: 32px 24px; }
  .mp-foot__brand { grid-column: 1 / -1; }
}
@media (max-width: 520px) {
  .mp-foot__grid, .mp-foot__grid.has-legal { grid-template-columns: 1fr; }
  .mp-foot__plat { columns: 2; }
}

/* ---------- SEKCJA "O NAS" (strona glowna) ---------- */
.mp-about { border-top: 1px solid rgba(250, 250, 248, 0.14); }
.mp-about__body { max-width: 68ch; }
.mp-about__body p { margin: 0 0 18px; color: #C9CBC7; font-size: 17px; line-height: 1.7; }
.mp-about__body p:last-child { margin-bottom: 0; }

/* ---------- LINKI W TRESCI (sekcja 7): bloki "inne marketplace", blog, przyklady ---------- */
.mp-related { margin: 36px auto 0; max-width: 1160px; padding: 24px 0 0; border-top: 1px solid rgba(250, 250, 248, 0.14); font-family: var(--mp-font-sans, 'Instrument Sans', system-ui, sans-serif); }
.mp-related h3 { margin: 18px 0 12px; font-size: 11px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: #C9CBC7; }
.mp-related h3:first-child { margin-top: 0; }
.mp-related__list, .mp-related__posts { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.mp-related__list a { display: inline-block; padding: 8px 14px; border: 1px solid rgba(250, 250, 248, 0.22); border-radius: 8px; color: #FAFAF8; font-size: 14px; font-weight: 600; text-decoration: none; transition: border-color .2s, color .2s; }
.mp-related__list a:hover { border-color: #F5A623; color: #F5A623; }
.mp-related__posts a, .mp-related__case a, .mp-related--latest a { color: #F5A623; font-weight: 600; text-decoration: none; }
.mp-related__posts a:hover, .mp-related__case a:hover, .mp-related--latest a:hover { text-decoration: underline; }
.mp-related__case, .mp-related--latest p { margin: 0; color: #C9CBC7; font-size: 15px; line-height: 1.6; }
.mp-related--article { margin-top: 40px; }
.mp-latest { padding-block: 40px; border-top: 1px solid rgba(250, 250, 248, 0.14); }
/* linki w naglowkach tabel porownawczych */
.compare-table th a[data-mp] { color: inherit; text-decoration: underline; text-underline-offset: 3px; }
.compare-table th a[data-mp]:hover { color: #F5A623; }
/* linki wstawione do tekstu */
a[data-mp] { text-underline-offset: 3px; }
