/* Coffee Si! — system designu (motyw WooCommerce)
   Własna tożsamość: kobalt + żar + atrament, Bricolage Grotesque, motyw ziarna z bruzdą w kształcie S.
   Skala palenia = 5 ziaren w kolorach palenia (jedyne brązy w systemie). */

:root {
  --mfx-cobalt: #c45a00;
  --mfx-cobalt-deep: #9a4300;
  --mfx-ember: #f6921e;
  --mfx-ember-deep: #e57d0a;
  --mfx-ink: #161619;
  --mfx-mist: #fbf4ea;
  --mfx-sky: #f6e4cc;
  --mfx-line: #e4d4bf;
  --mfx-cherry: #b3261e;
  --mfx-white: #fff;

  /* skala palenia */
  --mfx-r1: #e0ae5e;
  --mfx-r2: #c58a44;
  --mfx-r3: #94592d;
  --mfx-r4: #5e341c;
  --mfx-r5: #2c170e;
  --mfx-bean-off: #e4d4bf;

  --mfx-font: "Bricolage Grotesque", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --mfx-ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --mfx-gutter: clamp(1rem, 4vw, 2.5rem);
  --mfx-max: 82rem;
  --mfx-radius: 1.25rem;
}

/* ---------- baza ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-tap-highlight-color: transparent; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--mfx-white); color: var(--mfx-ink);
  font-family: var(--mfx-font); font-size: 1.0625rem; line-height: 1.55; font-optical-sizing: auto;
  -webkit-font-smoothing: antialiased;
}
img, svg { max-width: 100%; height: auto; }
a { color: var(--mfx-cobalt); text-underline-offset: 0.2em; text-decoration-thickness: 2px; }
a, button, [role="button"], input[type="submit"] { touch-action: manipulation; }
button, [role="button"] { user-select: none; -webkit-user-select: none; }
input, textarea, select { font-size: 16px; font-family: inherit; }
:focus-visible { outline: 3px solid var(--mfx-ember); outline-offset: 3px; }
h1, h2, h3, h4 { margin: 0 0 0.5em; font-family: var(--mfx-font); font-weight: 800; font-stretch: 84%; line-height: 1; letter-spacing: -0.025em; color: var(--mfx-ink); }
.mfx-wrap { width: min(100% - 2 * var(--mfx-gutter), var(--mfx-max)); margin-inline: auto; }
.mfx-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

/* ---------- ziarna / skala palenia ---------- */
.mfx-beans { display: inline-flex; align-items: flex-end; gap: 0.25rem; }
.mfx-beans i {
  display: block; width: 1.15rem; height: 1.35rem; background: var(--mfx-bean-off);
  -webkit-mask: url("../img/bean.svg") center / contain no-repeat; mask: url("../img/bean.svg") center / contain no-repeat;
  transition: transform 200ms var(--mfx-ease-out);
}
.mfx-beans[data-level="1"] i:nth-child(1) { background: var(--mfx-r1); transform: scale(1.25); }
.mfx-beans[data-level="2"] i:nth-child(2) { background: var(--mfx-r2); transform: scale(1.25); }
.mfx-beans[data-level="3"] i:nth-child(3) { background: var(--mfx-r3); transform: scale(1.25); }
.mfx-beans[data-level="4"] i:nth-child(4) { background: var(--mfx-r4); transform: scale(1.25); }
.mfx-beans[data-level="5"] i:nth-child(5) { background: var(--mfx-r5); transform: scale(1.25); }
.mfx-beans--dark { --mfx-bean-off: rgba(255, 255, 255, 0.3); }
.mfx-beans--dark[data-level="4"] i:nth-child(4), .mfx-beans--dark[data-level="5"] i:nth-child(5) { background: #fff; }

/* hero: pięć ziaren jako wybór palenia */
.mfx-roastpick { display: grid; gap: 0.625rem; width: fit-content; }
.mfx-roastpick__label { margin: 0; font-weight: 700; }
.mfx-roastpick__row { display: flex; align-items: flex-end; gap: 0.25rem; }
.mfx-roastpick a {
  display: block; padding: 0.375rem; border-radius: 0.75rem; line-height: 0;
  transition: transform 160ms var(--mfx-ease-out), background-color 160ms;
}
.mfx-roastpick a i { display: block; width: 2.5rem; height: 2.9rem; -webkit-mask: url("../img/bean.svg") center / contain no-repeat; mask: url("../img/bean.svg") center / contain no-repeat; }
.mfx-roastpick a:nth-child(1) i { background: var(--mfx-r1); }
.mfx-roastpick a:nth-child(2) i { background: var(--mfx-r2); }
.mfx-roastpick a:nth-child(3) i { background: var(--mfx-r3); }
.mfx-roastpick a:nth-child(4) i { background: var(--mfx-r4); }
.mfx-roastpick a:nth-child(5) i { background: #fff; }
.mfx-roastpick a:active { transform: scale(0.92); }
@media (hover: hover) and (pointer: fine) { .mfx-roastpick a:hover { background: rgba(255, 255, 255, 0.16); transform: translateY(-3px); } }
.mfx-roastpick__ends { display: flex; justify-content: space-between; padding-inline: 0.375rem; font-size: 0.875rem; font-weight: 600; opacity: 0.85; }

/* ---------- przyciski ---------- */
.mfx-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  min-height: 3.25rem; padding: 0 1.75rem;
  border: 2px solid var(--mfx-ink); border-radius: 999px; background: var(--mfx-cobalt); color: var(--mfx-white);
  box-shadow: 0 4px 0 var(--mfx-ink);
  font: 700 1.0625rem/1 var(--mfx-font); text-decoration: none; cursor: pointer;
  transition: transform 120ms var(--mfx-ease-out), box-shadow 120ms var(--mfx-ease-out), background-color 160ms;
}
.mfx-btn:active { transform: translateY(3px); box-shadow: 0 1px 0 var(--mfx-ink); }
.mfx-btn--ember { background: var(--mfx-ember); color: var(--mfx-ink); }
.mfx-btn--white { background: var(--mfx-white); color: var(--mfx-ink); }
.mfx-btn--ink { background: var(--mfx-ink); color: var(--mfx-white); box-shadow: 0 4px 0 var(--mfx-cobalt); }
.mfx-btn--ink:active { box-shadow: 0 1px 0 var(--mfx-cobalt); }
@media (hover: hover) and (pointer: fine) {
  .mfx-btn:hover { background: var(--mfx-cobalt-deep); color: var(--mfx-white); }
  .mfx-btn--ember:hover { background: var(--mfx-ember-deep); color: var(--mfx-ink); }
  .mfx-btn--white:hover { background: var(--mfx-sky); color: var(--mfx-ink); }
  .mfx-btn--ink:hover { background: var(--mfx-cobalt); }
}

/* ---------- pasek informacyjny + nagłówek ---------- */
.mfx-announce { background: var(--mfx-ink); color: var(--mfx-mist); font-size: 0.9375rem; text-align: center; padding: 0.5rem var(--mfx-gutter); }
.mfx-announce strong { color: var(--mfx-ember); font-weight: 700; }

.mfx-header {
  position: sticky; top: var(--wp-admin--admin-bar--height, 0px); z-index: 50;
  background: var(--mfx-white); border-bottom: 2px solid var(--mfx-ink);
}
.mfx-header__bar { display: flex; align-items: center; gap: 1.5rem; min-height: 4.5rem; }
.mfx-logo { display: block; flex: none; line-height: 0; }
.mfx-logo img { width: auto; height: 2rem; display: block; }
.mfx-nav { flex: 1; }
.mfx-nav ul { display: flex; gap: 0.25rem; list-style: none; margin: 0; padding: 0; }
.mfx-nav a {
  display: block; padding: 0.5rem 1rem; border-radius: 999px; color: var(--mfx-ink); font-weight: 700; text-decoration: none;
  transition: background-color 160ms;
}
.mfx-nav .current-menu-item > a, .mfx-nav a[aria-current="page"] { background: var(--mfx-sky); }
@media (hover: hover) and (pointer: fine) { .mfx-nav a:hover { background: var(--mfx-sky); } }
.mfx-actions { display: flex; align-items: center; gap: 0.375rem; margin-left: auto; }
.mfx-icon-btn {
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 0.4rem;
  min-width: 2.75rem; min-height: 2.75rem; padding: 0 0.5rem; border: 0; border-radius: 999px;
  background: transparent; color: var(--mfx-ink); font: 700 0.9375rem var(--mfx-font); text-decoration: none; cursor: pointer;
  transition: transform 140ms var(--mfx-ease-out), background-color 160ms;
}
.mfx-icon-btn:active { transform: scale(0.92); }
.mfx-icon-btn svg { width: 1.5rem; height: 1.5rem; flex: none; }
.mfx-icon-btn--cart { border: 2px solid var(--mfx-ink); padding: 0 0.875rem 0 0.75rem; }
@media (hover: hover) and (pointer: fine) { .mfx-icon-btn:hover { background: var(--mfx-sky); } }
.mfx-badge { min-width: 1.375rem; height: 1.375rem; padding: 0 0.35rem; border-radius: 999px; background: var(--mfx-ember); color: var(--mfx-ink); font-size: 0.8125rem; font-weight: 800; line-height: 1.375rem; text-align: center; }
.mfx-burger { display: none; }

/* ---------- podmenu (Kawa ziarnista, Akcesoria) ---------- */
.mfx-nav li { position: relative; }
.mfx-nav .has-sub { display: flex; align-items: center; }
.mfx-nav .has-sub > a { padding-right: 0.375rem; }
.mfx-sub-toggle {
  display: inline-grid; place-items: center; flex: none; width: 1.75rem; height: 1.75rem; margin-left: -0.375rem; padding: 0;
  border: 0; border-radius: 999px; background: transparent; color: var(--mfx-ink); cursor: pointer;
  transition: background-color 160ms, transform 120ms var(--mfx-ease-out);
}
.mfx-sub-toggle:active { transform: scale(0.9); }
.mfx-sub-toggle svg { width: 1rem; height: 1rem; transition: transform 200ms var(--mfx-ease-out); }
.has-sub.is-open > .mfx-sub-toggle svg { transform: rotate(180deg); }
.mfx-nav .mfx-sub {
  display: grid; gap: 0.125rem; position: absolute; left: 0; top: calc(100% + 0.5rem); z-index: 60; min-width: 17.5rem;
  margin: 0; padding: 0.5rem; list-style: none;
  background: var(--mfx-white); border: 2px solid var(--mfx-ink); border-radius: 1.25rem; box-shadow: 0 5px 0 var(--mfx-ink);
  opacity: 0; visibility: hidden; transform: translateY(6px);
  transition: opacity 160ms, transform 200ms var(--mfx-ease-out), visibility 0s linear 200ms;
}
.mfx-nav .mfx-sub::before { content: ""; position: absolute; left: 0; right: 0; bottom: 100%; height: 0.75rem; } /* most nad szczeliną, by kursor nie gubił podmenu */
.mfx-nav .mfx-sub a { padding: 0.5rem 0.875rem; border-radius: 0.75rem; font-weight: 600; white-space: nowrap; }
.mfx-nav .mfx-sub .has-sub { justify-content: space-between; }
.mfx-nav .mfx-sub .has-sub > a { flex: 1; }
.mfx-nav .mfx-all a { font-weight: 800; color: var(--mfx-cobalt); }
.mfx-nav .mfx-sub--2 { left: calc(100% + 0.5rem); top: -0.625rem; }
.mfx-nav .mfx-sub--2::before { left: auto; right: 100%; top: 0; bottom: 0; width: 0.75rem; height: auto; }
.mfx-sub .has-sub > .mfx-sub-toggle svg { transform: rotate(-90deg); }
.mfx-sub .has-sub.is-open > .mfx-sub-toggle svg { transform: rotate(-90deg); }
@media (hover: hover) and (pointer: fine) {
  .mfx-nav .has-sub:hover > .mfx-sub { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
  .mfx-nav .mfx-sub a:hover { background: var(--mfx-sky); }
}
.mfx-nav .has-sub:focus-within > .mfx-sub, .mfx-nav .has-sub.is-open > .mfx-sub { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }

/* ---------- nagłówek: chowa się przy przewijaniu w dół, wraca przy przewijaniu w górę ---------- */
.mfx-header { transition: transform 240ms var(--mfx-ease-out); }
.mfx-header.is-hidden { transform: translateY(-101%); }

/* ---------- przycisk powrotu na górę ---------- */
.mfx-top {
  position: fixed; right: max(var(--mfx-gutter), env(safe-area-inset-right, 0px)); bottom: calc(1.25rem + var(--mfx-atc-h, 0px) + env(safe-area-inset-bottom, 0px)); z-index: 55;
  display: grid; place-items: center; width: 3.25rem; height: 3.25rem; padding: 0;
  border: 2px solid var(--mfx-ink); border-radius: 50%; background: var(--mfx-ember); color: var(--mfx-ink); box-shadow: 0 4px 0 var(--mfx-ink); cursor: pointer;
  opacity: 0; visibility: hidden; transform: translateY(12px);
  transition: opacity 160ms, transform 200ms var(--mfx-ease-out), box-shadow 120ms var(--mfx-ease-out), bottom 220ms var(--mfx-ease-out), visibility 0s linear 200ms;
}
.mfx-top.is-visible { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
.mfx-top.is-visible:active { transform: translateY(3px); box-shadow: 0 1px 0 var(--mfx-ink); }
.mfx-top svg { width: 1.5rem; height: 1.5rem; }
@media (hover: hover) and (pointer: fine) { .mfx-top.is-visible:hover { background: var(--mfx-ember-deep); } }
@media (prefers-reduced-motion: reduce) { .mfx-header, .mfx-top, .mfx-nav .mfx-sub { transition: none; } }

@media (max-width: 58.75rem) {
  .mfx-burger { display: inline-flex; }
  .mfx-nav { position: absolute; inset: 100% 0 auto 0; background: var(--mfx-white); border-bottom: 2px solid var(--mfx-ink); display: none; padding: 0.5rem var(--mfx-gutter) 1.25rem; }
  .mfx-nav.is-open { display: block; }
  .mfx-nav { max-height: calc(100dvh - 5rem); overflow-y: auto; overscroll-behavior: contain; }
  .mfx-nav ul { flex-direction: column; }
  .mfx-nav a { padding: 0.875rem 0.75rem; font-size: 1.375rem; font-weight: 800; font-stretch: 85%; }
  /* podmenu jako rozwijana lista pod pozycją */
  .mfx-nav .has-sub { flex-wrap: wrap; }
  .mfx-nav .has-sub > a { flex: 1; }
  .mfx-sub-toggle { width: 2.75rem; height: 2.75rem; margin: 0; }
  .mfx-sub-toggle svg { width: 1.5rem; height: 1.5rem; }
  .mfx-nav .mfx-sub, .mfx-nav .mfx-sub--2 {
    display: none; position: static; flex-basis: 100%; min-width: 0; padding: 0 0 0.5rem 1rem; border: 0; border-left: 2px solid var(--mfx-ink); border-radius: 0; box-shadow: none;
    opacity: 1; visibility: visible; transform: none; transition: none; margin-left: 0.75rem;
  }
  .mfx-nav .mfx-sub::before { display: none; }
  .mfx-nav .has-sub.is-open > .mfx-sub { display: grid; }
  .mfx-nav .has-sub:focus-within:not(.is-open) > .mfx-sub { display: none; }
  .mfx-nav .mfx-sub a { padding: 0.625rem 0.75rem; font-size: 1.125rem; font-weight: 700; white-space: normal; }
  .mfx-sub .has-sub > .mfx-sub-toggle svg, .mfx-sub .has-sub.is-open > .mfx-sub-toggle svg { transform: none; }
  .mfx-sub .has-sub.is-open > .mfx-sub-toggle svg { transform: rotate(180deg); }
  .mfx-logo img { height: 1.75rem; }
}

/* ---------- hero ---------- */
.mfx-hero { position: relative; overflow: hidden; background: var(--mfx-cobalt); color: var(--mfx-white); border-bottom: 2px solid var(--mfx-ink); }
.mfx-slider .mfx-hero { border-bottom: 0; }
.mfx-hero__inner { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); align-items: center; gap: 2rem; min-height: min(46rem, 90svh); padding-block: clamp(2.5rem, 7vw, 5rem); }
.mfx-hero__copy { display: flex; flex-direction: column; gap: 2rem; align-items: flex-start; position: relative; z-index: 1; }
.mfx-hero__title { margin: 0; color: inherit; font-size: clamp(3.75rem, 11vw, 9.5rem); font-stretch: 80%; line-height: 0.86; letter-spacing: -0.025em; }
.mfx-hero__lead { max-width: 30rem; margin: 0; font-size: 1.25rem; line-height: 1.45; }
.mfx-hero__actions { display: flex; flex-wrap: wrap; gap: 1rem 0.875rem; }
.mfx-hero__art { position: relative; justify-self: center; width: min(100%, 34rem); }
.mfx-hero__art--photo { border: 2px solid var(--mfx-ink); border-radius: 2rem; overflow: hidden; background: var(--mfx-white); }
.mfx-hero__art--photo img { aspect-ratio: 4 / 3; object-fit: cover; animation: none; }
.mfx-hero__inner--text { grid-template-columns: minmax(0, 1fr); }
.mfx-hero__inner--text .mfx-hero__lead { max-width: 38rem; }
.mfx-hero__art img { display: block; width: 100%; animation: mfx-drop 900ms var(--mfx-ease-out) both; }
@keyframes mfx-drop { from { opacity: 0; transform: translateY(6%) rotate(-7deg); } }
.mfx-sticker {
  position: absolute; right: 2%; bottom: 4%; display: grid; place-items: center; width: 9.5rem; aspect-ratio: 1; padding: 0.75rem;
  border: 2px solid var(--mfx-ink); border-radius: 50%; background: var(--mfx-mist); color: var(--mfx-ink);
  font-weight: 800; font-stretch: 75%; font-size: 1.0625rem; line-height: 1.05; text-align: center; letter-spacing: -0.01em; transform: rotate(-10deg);
  box-shadow: 0 4px 0 var(--mfx-ink);
}
@media (max-width: 58.75rem) {
  .mfx-hero__inner { grid-template-columns: 1fr; min-height: 0; }
  .mfx-hero__art { width: min(100%, 22rem); margin-top: 0.5rem; }
  .mfx-sticker { width: 7.75rem; padding: 0.5rem; font-size: 0.8125rem; }
}

/* ---------- slider hero: lekki (CSS scroll-snap), warianty kolorów, sterowanie ---------- */
.mfx-slider { position: relative; border-bottom: 2px solid var(--mfx-ink); }
.mfx-slider__track { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; overscroll-behavior-x: contain; }
.mfx-slider__track::-webkit-scrollbar { display: none; }
.mfx-slide { flex: 0 0 100%; min-width: 0; scroll-snap-align: start; scroll-snap-stop: always; }
.mfx-slider.is-multi .mfx-hero__inner { padding-bottom: clamp(5rem, 9vw, 6.5rem); } /* miejsce na sterowanie */
.mfx-slide--cobalt { background: var(--mfx-cobalt); color: var(--mfx-white); }
.mfx-slide--ink { background: var(--mfx-ink); color: var(--mfx-white); }
.mfx-slide--ember { background: var(--mfx-ember); color: var(--mfx-ink); }
.mfx-slide--sky { background: var(--mfx-sky); color: var(--mfx-ink); }
.mfx-slide--ember .mfx-roastpick a:nth-child(5) i, .mfx-slide--sky .mfx-roastpick a:nth-child(5) i { background: var(--mfx-r5); }
.mfx-slide--ember .mfx-roastpick a:hover, .mfx-slide--sky .mfx-roastpick a:hover { background: rgba(22, 22, 25, 0.1); }

.mfx-slider__ctrl { position: absolute; inset: auto 0 1.25rem 0; z-index: 3; pointer-events: none; }
.mfx-slider__ctrl-inner { display: flex; align-items: center; gap: 0.5rem; }
.mfx-slider__ctrl button { pointer-events: auto; }
.mfx-slider__btn {
  display: grid; place-items: center; width: 2.75rem; height: 2.75rem; padding: 0; border: 2px solid var(--mfx-ink); border-radius: 50%;
  background: var(--mfx-white); color: var(--mfx-ink); box-shadow: 0 3px 0 var(--mfx-ink); cursor: pointer;
  transition: transform 120ms var(--mfx-ease-out), box-shadow 120ms var(--mfx-ease-out), background-color 160ms;
}
.mfx-slider__btn:active { transform: translateY(2px); box-shadow: 0 1px 0 var(--mfx-ink); }
.mfx-slider__btn svg { width: 1.25rem; height: 1.25rem; }
.mfx-slider__pause .i-play, .mfx-slider__pause[aria-pressed="true"] .i-pause { display: none; }
.mfx-slider__pause[aria-pressed="true"] .i-play { display: block; }
.mfx-slider__dots { display: flex; gap: 0.5rem; padding: 0.5rem 0.75rem; border: 2px solid var(--mfx-ink); border-radius: 999px; background: var(--mfx-white); box-shadow: 0 3px 0 var(--mfx-ink); pointer-events: auto; }
.mfx-slider__dot { width: 0.875rem; height: 0.875rem; padding: 0; border: 2px solid var(--mfx-ink); border-radius: 50%; background: transparent; cursor: pointer; transition: background-color 160ms, width 200ms var(--mfx-ease-out), border-radius 200ms; }
.mfx-slider__dot.is-active { width: 2rem; border-radius: 999px; background: var(--mfx-ember); }
@media (hover: hover) and (pointer: fine) { .mfx-slider__btn:hover { background: var(--mfx-sky); } .mfx-slider__dot:not(.is-active):hover { background: var(--mfx-sky); } }
.mfx-slider__track:focus-visible { outline: 3px solid var(--mfx-ember); outline-offset: -6px; }
@media (max-width: 58.75rem) { .mfx-slider__ctrl-inner { justify-content: center; } }
@media (prefers-reduced-motion: reduce) { .mfx-slider__track { scroll-behavior: auto; } .mfx-slider__btn, .mfx-slider__dot { transition: none; } }
/* ---------- pasek korzyści ---------- */
.mfx-perks-bar { border-bottom: 2px solid var(--mfx-ink); background: var(--mfx-white); }
.mfx-perks { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin: 0 auto; padding: 0; list-style: none; }
.mfx-perks li { padding: 1.25rem 1.5rem; border-left: 2px solid var(--mfx-ink); }
.mfx-perks li:first-child { padding-left: 0; border-left: 0; }
.mfx-perks strong { display: block; font-size: 1.1875rem; font-weight: 800; font-stretch: 88%; letter-spacing: -0.01em; line-height: 1.2; margin-bottom: 0.25rem; }
.mfx-perks span { font-size: 0.9375rem; }
@media (max-width: 58.75rem) {
  .mfx-perks { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .mfx-perks li:nth-child(odd) { padding-left: 0; border-left: 0; }
  .mfx-perks li:nth-child(n+3) { border-top: 2px solid var(--mfx-ink); }
}

/* ---------- sekcje ---------- */
.mfx-section { padding-block: clamp(3.5rem, 9vw, 7rem); }
.mfx-section--sky { background: var(--mfx-sky); }
.mfx-section--mist { background: var(--mfx-mist); }
.mfx-section--ink { background: var(--mfx-ink); color: var(--mfx-mist); }
.mfx-section--ink h2, .mfx-section--ink h3 { color: var(--mfx-white); }
.mfx-section__head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 1rem 2rem; margin-bottom: clamp(1.75rem, 4vw, 3rem); }
.mfx-section__head h2 { margin: 0; font-size: clamp(2.5rem, 6.5vw, 5rem); font-stretch: 80%; line-height: 0.92; letter-spacing: -0.035em; }
.mfx-section__head p { margin: 0; max-width: 26rem; }
.mfx-link { font-weight: 700; color: var(--mfx-cobalt); }

/* sposoby parzenia */
.mfx-brews { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1rem; }
.mfx-brew {
  display: flex; flex-direction: column; gap: 0.875rem; min-height: 19rem; padding: 1.5rem;
  border: 2px solid var(--mfx-ink); border-radius: 1.5rem; background: var(--mfx-white); color: var(--mfx-ink); text-decoration: none;
  transition: transform 200ms var(--mfx-ease-out);
}
.mfx-brew--ink { background: var(--mfx-ink); color: var(--mfx-white); }
.mfx-brew--ember { background: var(--mfx-ember); }
.mfx-brew--cobalt { background: var(--mfx-cobalt); color: var(--mfx-white); }
.mfx-brew h3 { margin: 0; font-size: clamp(2rem, 3.2vw, 2.75rem); font-stretch: 80%; color: inherit; }
.mfx-brew p { margin: 0; flex: 1; font-size: 1rem; }
.mfx-brew__cta { font-weight: 700; text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 0.25em; }
.mfx-brew:active { transform: scale(0.98); }
@media (hover: hover) and (pointer: fine) { .mfx-brew:hover { transform: translateY(-5px); } }
@media (max-width: 58.75rem) { .mfx-brews { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 34rem) { .mfx-brews { grid-template-columns: 1fr; } .mfx-brew { min-height: 0; } }

/* dwa banery */
.mfx-promos { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
.mfx-promo { display: flex; flex-direction: column; align-items: flex-start; gap: 1.25rem; padding: clamp(1.75rem, 4vw, 3.25rem); border: 2px solid var(--mfx-ink); border-radius: 2rem; }
.mfx-promo h3 { margin: 0; font-size: clamp(2.5rem, 5.5vw, 4.5rem); font-stretch: 78%; line-height: 0.9; letter-spacing: -0.035em; color: inherit; }
.mfx-promo p { margin: 0; max-width: 26rem; font-size: 1.125rem; }
.mfx-promo--ember { background: var(--mfx-ember); color: var(--mfx-ink); }
.mfx-promo--cobalt { background: var(--mfx-cobalt); color: var(--mfx-white); }
.mfx-code { display: inline-block; padding: 0.1rem 0.7rem; border-radius: 999px; background: var(--mfx-ink); color: var(--mfx-ember); font-weight: 800; letter-spacing: 0.04em; }
@media (max-width: 48rem) { .mfx-promos { grid-template-columns: 1fr; } }

/* skala palenia — objaśnienie */
.mfx-scale { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 1rem; margin: 0; padding: 0; list-style: none; }
.mfx-scale a { display: flex; flex-direction: column; gap: 0.5rem; height: 100%; padding: 1.25rem; border: 2px solid var(--mfx-ink); border-radius: 1.5rem; background: var(--mfx-white); color: var(--mfx-ink); text-decoration: none; transition: transform 200ms var(--mfx-ease-out); }
.mfx-scale i { display: block; width: 3.25rem; height: 3.75rem; margin-bottom: 0.5rem; -webkit-mask: url("../img/bean.svg") center / contain no-repeat; mask: url("../img/bean.svg") center / contain no-repeat; }
.mfx-scale li:nth-child(1) i { background: var(--mfx-r1); }
.mfx-scale li:nth-child(2) i { background: var(--mfx-r2); }
.mfx-scale li:nth-child(3) i { background: var(--mfx-r3); }
.mfx-scale li:nth-child(4) i { background: var(--mfx-r4); }
.mfx-scale li:nth-child(5) i { background: var(--mfx-r5); }
.mfx-scale strong { font-size: 1.5rem; font-weight: 800; font-stretch: 82%; letter-spacing: -0.02em; line-height: 1.05; }
.mfx-scale span { font-size: 0.9375rem; line-height: 1.4; }
.mfx-scale a:active { transform: scale(0.98); }
@media (hover: hover) and (pointer: fine) { .mfx-scale a:hover { transform: translateY(-5px); } }
@media (max-width: 64rem) { .mfx-scale { grid-template-columns: repeat(2, minmax(0, 1fr)); } .mfx-scale li:last-child { grid-column: 1 / -1; } }

/* dlaczego my */
.mfx-why { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: clamp(2rem, 6vw, 5rem); align-items: start; }
.mfx-why h2 { margin: 0; font-size: clamp(2.75rem, 7.5vw, 6.25rem); font-stretch: 78%; line-height: 0.88; letter-spacing: -0.04em; }
.mfx-why__list { margin: 0; padding: 0; list-style: none; }
.mfx-why__list li { padding: 1.25rem 0; border-top: 2px solid rgba(255, 255, 255, 0.28); }
.mfx-why__list li:last-child { border-bottom: 2px solid rgba(255, 255, 255, 0.28); }
.mfx-why__list strong { display: block; margin-bottom: 0.25rem; color: var(--mfx-ember); font-size: 1.75rem; font-weight: 800; font-stretch: 82%; letter-spacing: -0.02em; line-height: 1.05; }
@media (max-width: 58.75rem) { .mfx-why { grid-template-columns: 1fr; } }

/* social + newsletter */
.mfx-split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 2rem; align-items: center; }
.mfx-split h2 { margin: 0; font-size: clamp(2.25rem, 5vw, 4rem); font-stretch: 80%; line-height: 0.95; letter-spacing: -0.035em; }
.mfx-split p { margin: 0.75rem 0 0; max-width: 28rem; }
.mfx-split__actions { display: flex; flex-wrap: wrap; gap: 1rem 0.875rem; }
.mfx-news form { display: flex; gap: 0.625rem; }
.mfx-news input[type="email"] { flex: 1; min-width: 0; min-height: 3.25rem; padding: 0 1.25rem; border: 2px solid var(--mfx-ink); border-radius: 999px; background: var(--mfx-white); color: var(--mfx-ink); }
.mfx-news small { display: block; margin-top: 0.625rem; font-size: 0.875rem; }
@media (max-width: 48rem) { .mfx-split { grid-template-columns: 1fr; } .mfx-news form { flex-direction: column; } }

/* ---------- stopka ---------- */
.mfx-footer { background: var(--mfx-ink); color: var(--mfx-sky); padding: clamp(3rem, 7vw, 5rem) 0 calc(1.5rem + env(safe-area-inset-bottom, 0px)); }
.mfx-footer a { color: var(--mfx-white); }
.mfx-footer__grid { display: grid; grid-template-columns: 1.5fr repeat(3, minmax(0, 1fr)); gap: 2rem; }
.mfx-footer__logo img { height: 2.25rem; width: auto; display: block; margin-bottom: 1rem; }
.mfx-footer h3 { margin: 0 0 0.75rem; font-size: 1.125rem; font-stretch: 90%; letter-spacing: -0.01em; color: var(--mfx-ember); }
.mfx-footer ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 0.4rem; }
.mfx-footer address { font-style: normal; }
.mfx-footer__legal { margin-top: 2.75rem; padding-top: 1.25rem; border-top: 2px solid rgba(255, 255, 255, 0.2); font-size: 0.875rem; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0.5rem 2rem; }
@media (max-width: 58.75rem) { .mfx-footer__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 34rem) { .mfx-footer__grid { grid-template-columns: 1fr; } }

@media (prefers-reduced-motion: reduce) {
  .mfx-hero__art img { animation: none; }
  .mfx-btn, .mfx-brew, .mfx-scale a, .mfx-roastpick a, .mfx-icon-btn, .mfx-beans i { transition: none; }
}
