/* MarioPower — główny arkusz, branding posmario.pl */

:root {
  --navy: #34365C;
  --navy-2: #2c2e4d;
  --navy-3: #232544;
  --ink: #22243a;
  --muted: #5b6b7c;
  --paper: #f6f7fb;
  --white: #ffffff;
  --volt: #3d7cff;
  --volt-2: #2b63d9;
  --flame: #ff7a18;
  --flame-2: #e85d00;
  --mario: #e10613;
  --line: rgba(255, 255, 255, 0.14);
  --shadow: 0 24px 60px rgba(52, 54, 92, 0.16);
  --radius: 22px;
  --max: 1180px;
  --font: "Plus Jakarta Sans", system-ui, sans-serif;
  --display: "Unbounded", "Plus Jakarta Sans", sans-serif;
  --logo: "Saira Stencil One", "Audiowide", sans-serif;
  --brand: #34365C;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--white);
  line-height: 1.6;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
summary:focus-visible {
  outline: 2px solid var(--volt);
  outline-offset: 3px;
}

.visually-hidden,
.mpp-skip {
  position: absolute;
  left: -9999px;
}

.mpp-skip:focus {
  left: 12px;
  top: 12px;
  z-index: 100;
  background: var(--volt);
  color: var(--navy);
  padding: 10px 14px;
  border-radius: 8px;
}

.mpp-container {
  width: min(var(--max), calc(100% - 40px));
  margin-inline: auto;
}

.mpp-kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 16px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--volt);
}

.mpp-kicker--dark {
  color: var(--volt-2);
}

.mpp-kicker__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--volt), var(--flame));
}

h1,
h2,
h3,
.mpp-footer__brand,
.mpp-logo__name {
  font-family: var(--display);
  letter-spacing: -0.03em;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

.mpp-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 50px;
  padding: 0 22px;
  border: 0;
  border-radius: 999px;
  font: 700 15px/1 var(--font);
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.mpp-btn:hover {
  transform: translateY(-1px);
}

.mpp-btn--volt {
  background: var(--volt);
  color: var(--navy);
  box-shadow: 0 10px 30px rgba(25, 212, 255, 0.28);
}

.mpp-btn--flame {
  background: var(--flame);
  color: #fff;
  box-shadow: 0 10px 30px rgba(255, 122, 24, 0.3);
}

.mpp-btn--light {
  background: #fff;
  color: var(--navy);
}

.mpp-btn--light:hover {
  background: #f3f4fa;
}

.mpp-btn--ghost {
  background: transparent;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.28);
}

.mpp-text-link {
  color: var(--volt-2);
  font-weight: 700;
  text-decoration: none;
}

.mpp-text-link:hover {
  text-decoration: underline;
}

/* Header */

.mpp-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--brand);
  border-bottom: 1px solid var(--line);
}

.mpp-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 78px;
}

.mpp-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: #fff;
}

.mpp-wordmark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0.42em 0.9em 0.38em;
  background: transparent;
  color: #fff;
  border: 2px solid #fff;
  box-shadow: none;
  font-family: var(--logo);
  font-size: clamp(15px, 2.1vw, 20px);
  font-weight: 400;
  letter-spacing: 0.22em;
  line-height: 1;
  text-transform: uppercase;
  white-space: nowrap;
}

.mpp-logo img,
.mpp-logo .custom-logo {
  max-height: 48px;
  width: auto;
}

.mpp-logo__name {
  display: block;
  font-size: 18px;
  font-weight: 700;
}

.mpp-logo__name span {
  color: var(--volt);
}

.mpp-logo__tag {
  display: block;
  font-size: 11px;
  color: rgba(255, 255, 255, 0.62);
  letter-spacing: 0.04em;
}

.mpp-nav {
  display: flex;
  align-items: center;
  gap: 28px;
}

.mpp-nav__list {
  display: flex;
  gap: 22px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.mpp-nav__list a {
  color: rgba(255, 255, 255, 0.82);
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
}

.mpp-nav__list a:hover,
.mpp-nav__list .current-menu-item > a {
  color: var(--volt);
}

.mpp-nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.mpp-nav-toggle__bar,
.mpp-nav-toggle__bar::before,
.mpp-nav-toggle__bar::after {
  display: block;
  width: 22px;
  height: 2px;
  background: #fff;
  position: relative;
}

.mpp-nav-toggle__bar::before,
.mpp-nav-toggle__bar::after {
  content: "";
  position: absolute;
  left: 0;
}

.mpp-nav-toggle__bar::before {
  top: -7px;
}

.mpp-nav-toggle__bar::after {
  top: 7px;
}

/* Hero */

.mpp-hero {
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(22, 24, 48, 0.62) 0%, rgba(16, 18, 36, 0.78) 100%),
    url("../img/hero.jpg") center 42% / cover no-repeat;
  color: #fff;
  padding: 88px 0 72px;
}

.mpp-hero__grid {
  position: absolute;
  inset: 0;
  opacity: 0.25;
  background-image: linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: linear-gradient(#000, transparent 85%);
  pointer-events: none;
}

.mpp-hero__glow {
  position: absolute;
  width: 420px;
  height: 420px;
  border-radius: 50%;
  filter: blur(40px);
  opacity: 0.12;
  pointer-events: none;
}

.mpp-hero__glow--volt {
  background: var(--volt);
  top: -80px;
  right: 18%;
}

.mpp-hero__glow--flame {
  background: var(--flame);
  bottom: -120px;
  left: -60px;
}

.mpp-hero__inner {
  position: relative;
}

.mpp-hero h1 {
  font-size: clamp(34px, 6vw, 64px);
  line-height: 1.08;
  font-weight: 700;
  max-width: 16ch;
  margin-bottom: 22px;
}

.mpp-hero h1 em {
  font-style: normal;
  background: linear-gradient(90deg, var(--volt), #fff 42%, var(--flame));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.mpp-hero__lead {
  max-width: 62ch;
  color: rgba(255, 255, 255, 0.78);
  font-size: 18px;
  margin-bottom: 32px;
}

.mpp-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 48px;
}

.mpp-hero__stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin: 0;
}

.mpp-hero__stats div {
  padding: 18px 20px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(16, 18, 36, 0.42);
  backdrop-filter: blur(8px);
}

.mpp-hero__stats dt {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.6);
}

.mpp-hero__stats dd {
  margin: 6px 0 0;
  font-family: var(--display);
  font-size: 28px;
  color: var(--volt);
}

/* Trust / sections */

.mpp-trust {
  background: var(--navy-2);
  color: #fff;
  border-top: 1px solid var(--line);
}

.mpp-trust__row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--line);
  padding: 0;
}

.mpp-trust article {
  background: var(--navy-2);
  padding: 28px 22px;
}

.mpp-trust strong {
  display: block;
  font-family: var(--display);
  font-size: 16px;
  margin-bottom: 8px;
  color: var(--volt);
}

.mpp-trust span {
  color: rgba(255, 255, 255, 0.7);
  font-size: 14px;
}

.mpp-section {
  padding: 88px 0;
}

.mpp-section--navy {
  background: var(--navy);
  color: #fff;
}

.mpp-section--paper {
  background: var(--paper);
}

.mpp-section--contact {
  background: linear-gradient(180deg, #fff, var(--paper));
}

.mpp-section__head {
  max-width: 720px;
  margin-bottom: 40px;
}

.mpp-section__head h2,
.mpp-calc-wrap h2,
.mpp-contact h2,
.mpp-faq-wrap h2 {
  font-size: clamp(28px, 4vw, 42px);
  line-height: 1.15;
  margin-bottom: 14px;
}

.mpp-section__head p,
.mpp-calc-wrap > div > p {
  color: var(--muted);
  font-size: 17px;
}

.mpp-section__head--light p {
  color: rgba(255, 255, 255, 0.72);
}

.mpp-split-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 20px;
}

.mpp-media-card {
  padding: 32px;
  border-radius: var(--radius);
  color: #fff;
  min-height: 320px;
}

.mpp-media-card--volt {
  background: linear-gradient(165deg, #0d3a58 0%, #082033 55%, #071525 100%);
  border: 1px solid rgba(25, 212, 255, 0.28);
}

.mpp-media-card--flame {
  background: linear-gradient(165deg, #4a2610 0%, #23140c 55%, #071525 100%);
  border: 1px solid rgba(255, 122, 24, 0.32);
}

.mpp-media-card__label {
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--volt);
}

.mpp-media-card--flame .mpp-media-card__label {
  color: var(--flame);
}

.mpp-media-card h3 {
  font-size: 28px;
  margin: 8px 0 12px;
}

.mpp-media-card ul,
.mpp-partner ul {
  margin: 18px 0 0;
  padding-left: 18px;
}

.mpp-grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.mpp-card {
  background: #fff;
  border: 1px solid #eadfd0;
  border-radius: 18px;
  padding: 24px;
  box-shadow: var(--shadow);
}

.mpp-card h3 {
  font-size: 18px;
  margin-bottom: 8px;
}

.mpp-card p {
  color: var(--muted);
  margin: 0;
}

.mpp-partner {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 24px;
  align-items: stretch;
}

.mpp-partner article {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 32px;
}

.mpp-partner__role {
  color: var(--volt);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.mpp-partner h3 {
  font-size: 28px;
}

.mpp-partner p,
.mpp-partner li {
  color: rgba(255, 255, 255, 0.78);
}

.mpp-partner__x {
  align-self: center;
  font-family: var(--display);
  font-size: 42px;
  color: var(--flame);
}

.mpp-pills {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
}

.mpp-pills article {
  padding: 28px;
  border-radius: var(--radius);
  background: #fff;
  border: 1px solid #eadfd0;
}

.mpp-pills h3 {
  font-size: 20px;
}

.mpp-pills p {
  color: var(--muted);
  margin: 0;
}

.mpp-steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: none;
}

.mpp-steps li {
  background: #fff;
  border-radius: 18px;
  padding: 24px;
}

.mpp-steps span {
  font-family: var(--display);
  color: var(--flame);
  font-size: 22px;
}

.mpp-steps h3 {
  margin: 10px 0 8px;
  font-size: 18px;
}

.mpp-steps p {
  color: var(--muted);
  margin: 0;
}

.mpp-calc-wrap {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: start;
}

.mpp-calc,
.mpp-form {
  background: #fff;
  border: 1px solid #eadfd0;
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow);
  display: grid;
  gap: 14px;
}

.mpp-calc label,
.mpp-form label {
  display: grid;
  gap: 6px;
  font-size: 13px;
  font-weight: 700;
}

.mpp-calc input,
.mpp-calc select,
.mpp-form input,
.mpp-form select,
.mpp-form textarea {
  width: 100%;
  border: 1px solid #d9d0c4;
  border-radius: 12px;
  padding: 12px 14px;
  font: 500 15px var(--font);
  background: #fff;
}

.mpp-calc__out {
  padding: 16px;
  border-radius: 14px;
  background: var(--navy);
  color: #fff;
}

.mpp-calc__out p {
  margin: 0 0 6px;
  color: rgba(255, 255, 255, 0.7);
}

.mpp-calc__out strong {
  font-family: var(--display);
  font-size: 32px;
  color: var(--volt);
}

.mpp-results {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.mpp-results article {
  padding: 22px;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.04);
}

.mpp-results h3 {
  margin: 0 0 6px;
  font-size: 16px;
}

.mpp-results p {
  margin: 0;
  color: rgba(255, 255, 255, 0.7);
}

.mpp-results strong {
  color: var(--volt);
  font-size: 22px;
}

.mpp-faq {
  display: grid;
  gap: 10px;
}

.mpp-faq details {
  background: #fff;
  border: 1px solid #eadfd0;
  border-radius: 16px;
  padding: 8px 18px;
}

.mpp-faq summary {
  cursor: pointer;
  font-weight: 700;
  padding: 14px 0;
}

.mpp-faq p {
  color: var(--muted);
  margin: 0 0 16px;
}

.mpp-contact {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 40px;
}

.mpp-contact__meta {
  list-style: none;
  margin: 28px 0 0;
  padding: 0;
  display: grid;
  gap: 14px;
}

.mpp-contact__meta span {
  display: block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.mpp-contact__meta a {
  color: var(--navy);
  font-weight: 700;
  text-decoration: none;
}

.mpp-form__row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.mpp-form__check {
  display: flex !important;
  gap: 10px;
  font-weight: 500 !important;
  font-size: 13px !important;
  color: var(--muted);
}

.mpp-form__check input {
  width: 18px;
  margin-top: 3px;
}

.mpp-form__hp {
  position: absolute;
  left: -9999px;
}

.mpp-form {
  position: relative;
}

.mpp-form__status {
  margin: 0;
  min-height: 1.4em;
  font-weight: 600;
}

.mpp-form__status.is-ok {
  color: #0a7a3e;
}

.mpp-form__status.is-err {
  color: var(--mario);
}

.mpp-footer {
  background: #050e18;
  color: rgba(255, 255, 255, 0.72);
  padding: 56px 0 28px;
}

.mpp-footer__grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 32px;
  margin-bottom: 36px;
}

.mpp-footer__brand {
  margin-bottom: 18px;
}

.mpp-wordmark--footer {
  font-size: 14px;
}

.mpp-hero__lead a {
  color: #fff;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.mpp-footer__title {
  color: #fff;
  font-size: 14px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.mpp-footer__links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 8px;
}

.mpp-footer__links a {
  text-decoration: none;
}

.mpp-footer__links a:hover {
  color: var(--volt);
}

.mpp-footer__legal {
  border-top: 1px solid var(--line);
  padding-top: 18px;
  font-size: 13px;
}

.mpp-fab {
  position: fixed;
  right: 18px;
  bottom: 18px;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--flame);
  color: #fff;
  display: grid;
  place-items: center;
  box-shadow: 0 12px 30px rgba(255, 122, 24, 0.4);
  z-index: 40;
}

.mpp-page-head {
  background: var(--navy);
  color: #fff;
  padding: 72px 0 48px;
}

.mpp-page-head h1 {
  font-size: clamp(32px, 5vw, 48px);
  margin-bottom: 10px;
}

.mpp-prose {
  padding: 48px 0 80px;
  max-width: 760px;
}

.mpp-prose h2 {
  font-size: 28px;
}

.mpp-posts {
  display: grid;
  gap: 22px;
}

.mpp-post-card {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 20px;
  background: #fff;
  border: 1px solid #eadfd0;
  border-radius: 18px;
  overflow: hidden;
}

.mpp-post-card__body {
  padding: 22px 22px 22px 0;
}

.mpp-post-card h2 {
  font-size: 22px;
}

.mpp-post-card h2 a {
  text-decoration: none;
}

@media (max-width: 980px) {
  .mpp-nav-toggle {
    display: grid;
    place-items: center;
  }

  .mpp-nav {
    display: none;
    position: absolute;
    inset: 78px 16px auto;
    background: var(--navy-2);
    border: 1px solid var(--line);
    border-radius: 18px;
    padding: 18px;
    flex-direction: column;
    align-items: stretch;
  }

  .mpp-nav.is-open {
    display: flex;
  }

  .mpp-nav__list {
    flex-direction: column;
    gap: 12px;
  }

  .mpp-header {
    position: relative;
  }

  .mpp-header.is-open {
    position: sticky;
  }

  .mpp-trust__row,
  .mpp-split-cards,
  .mpp-grid-3,
  .mpp-partner,
  .mpp-pills,
  .mpp-steps,
  .mpp-calc-wrap,
  .mpp-results,
  .mpp-contact,
  .mpp-form__row,
  .mpp-footer__grid,
  .mpp-hero__stats,
  .mpp-post-card {
    grid-template-columns: 1fr;
  }

  .mpp-partner__x {
    display: none;
  }

  .mpp-hero {
    padding: 56px 0 48px;
  }

  .mpp-section {
    padding: 64px 0;
  }

  .mpp-post-card__body {
    padding: 0 18px 18px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .mpp-btn,
  .mpp-fab {
    transition: none;
  }
}
