/* =========================================================
   4models: style bazowe (fonty, kolory, układ, nagłówek, stopka, listy)
   ========================================================= */

/* ---------- Fonty (lokalnie, tylko łacina z polskimi znakami) ---------- */

@font-face {
  font-family: "Fraunces";
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url(../fonts/fraunces-latin-ext-opsz-normal.woff2) format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Fraunces";
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url(../fonts/fraunces-latin-opsz-normal.woff2) format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url(../fonts/inter-latin-ext-wght-normal.woff2) format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url(../fonts/inter-latin-wght-normal.woff2) format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Inter";
  font-style: italic;
  font-display: swap;
  font-weight: 100 900;
  src: url(../fonts/inter-latin-ext-wght-italic.woff2) format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Inter";
  font-style: italic;
  font-display: swap;
  font-weight: 100 900;
  src: url(../fonts/inter-latin-wght-italic.woff2) format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* Dawne nazwy fontów z treści i CSS stron (Elementor, WPCode, Google Fonts) wskazują na fonty motywu.
   Dzięki temu stare style nie potrzebują osobnych plików fontów. Przeglądarka pobiera każdy plik woff2 raz. */
@font-face {
  font-family: "Noto Serif Display";
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url(../fonts/fraunces-latin-ext-opsz-normal.woff2) format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Noto Serif Display";
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url(../fonts/fraunces-latin-opsz-normal.woff2) format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Lora";
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url(../fonts/fraunces-latin-ext-opsz-normal.woff2) format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Lora";
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url(../fonts/fraunces-latin-opsz-normal.woff2) format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Playfair Display";
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url(../fonts/fraunces-latin-ext-opsz-normal.woff2) format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Playfair Display";
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url(../fonts/fraunces-latin-opsz-normal.woff2) format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Playfair_Display";
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url(../fonts/fraunces-latin-ext-opsz-normal.woff2) format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Playfair_Display";
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url(../fonts/fraunces-latin-opsz-normal.woff2) format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Poppins";
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url(../fonts/inter-latin-ext-wght-normal.woff2) format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Poppins";
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url(../fonts/inter-latin-wght-normal.woff2) format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Poppins";
  font-style: italic;
  font-display: swap;
  font-weight: 100 900;
  src: url(../fonts/inter-latin-ext-wght-italic.woff2) format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Poppins";
  font-style: italic;
  font-display: swap;
  font-weight: 100 900;
  src: url(../fonts/inter-latin-wght-italic.woff2) format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Source Sans 3";
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url(../fonts/inter-latin-ext-wght-normal.woff2) format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Source Sans 3";
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url(../fonts/inter-latin-wght-normal.woff2) format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Source Sans 3";
  font-style: italic;
  font-display: swap;
  font-weight: 100 900;
  src: url(../fonts/inter-latin-ext-wght-italic.woff2) format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Source Sans 3";
  font-style: italic;
  font-display: swap;
  font-weight: 100 900;
  src: url(../fonts/inter-latin-wght-italic.woff2) format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Noto Serif";
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url(../fonts/inter-latin-ext-wght-normal.woff2) format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Noto Serif";
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url(../fonts/inter-latin-wght-normal.woff2) format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Noto Serif";
  font-style: italic;
  font-display: swap;
  font-weight: 100 900;
  src: url(../fonts/inter-latin-ext-wght-italic.woff2) format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Noto Serif";
  font-style: italic;
  font-display: swap;
  font-weight: 100 900;
  src: url(../fonts/inter-latin-wght-italic.woff2) format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "InterTight";
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url(../fonts/inter-latin-ext-wght-normal.woff2) format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "InterTight";
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url(../fonts/inter-latin-wght-normal.woff2) format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "InterTight";
  font-style: italic;
  font-display: swap;
  font-weight: 100 900;
  src: url(../fonts/inter-latin-ext-wght-italic.woff2) format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "InterTight";
  font-style: italic;
  font-display: swap;
  font-weight: 100 900;
  src: url(../fonts/inter-latin-wght-italic.woff2) format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Inter Tight";
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url(../fonts/inter-latin-ext-wght-normal.woff2) format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Inter Tight";
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url(../fonts/inter-latin-wght-normal.woff2) format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Inter Tight";
  font-style: italic;
  font-display: swap;
  font-weight: 100 900;
  src: url(../fonts/inter-latin-ext-wght-italic.woff2) format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Inter Tight";
  font-style: italic;
  font-display: swap;
  font-weight: 100 900;
  src: url(../fonts/inter-latin-wght-italic.woff2) format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Figtree";
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url(../fonts/inter-latin-ext-wght-normal.woff2) format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Figtree";
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url(../fonts/inter-latin-wght-normal.woff2) format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Figtree";
  font-style: italic;
  font-display: swap;
  font-weight: 100 900;
  src: url(../fonts/inter-latin-ext-wght-italic.woff2) format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Figtree";
  font-style: italic;
  font-display: swap;
  font-weight: 100 900;
  src: url(../fonts/inter-latin-wght-italic.woff2) format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}


/* ---------- Tokeny ---------- */

:root {
  --fm-font-display: "Fraunces", Georgia, "Times New Roman", serif;
  --fm-font-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;

  --fm-black: #171717;
  --fm-text: #2d2c30;
  --fm-muted: #655e59;
  --fm-soft: #8b8178;
  --fm-pink: #b4566b;          /* linki i akcenty tekstowe, kontrast AA na kremowym */
  --fm-pink-hover: #8f3f52;
  --fm-pink-bright: #f9598a;   /* tylko elementy dekoracyjne */
  --fm-gold: #b5924d;
  --fm-cream: #fbf8f3;
  --fm-cream-2: #f8efea;
  --fm-paper: #fffdfa;
  --fm-white: #ffffff;
  --fm-line: rgba(181, 146, 77, .30);
  --fm-line-soft: rgba(23, 23, 23, .10);
  --fm-lilac: #cdbdfb;

  --fm-radius: 22px;
  --fm-radius-sm: 14px;
  --fm-shadow: 0 18px 48px rgba(23, 23, 23, .06);
  --fm-wrap: 1180px;
  --fm-wrap-narrow: 820px;
  --fm-gutter: clamp(16px, 4vw, 32px);
}

/* ---------- Reset i typografia ---------- */

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-padding-top: 24px; }

body {
  margin: 0;
  background: var(--fm-paper);
  color: var(--fm-text);
  font-family: var(--fm-font-body);
  font-size: 17px;
  line-height: 1.7;
  font-feature-settings: "cv05" 1, "cv08" 1; /* l z ogonkiem, I z szeryfami: łatwiej odróżnić I, l, 1 */
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

@media (min-width: 768px) { body { font-size: 18px; } }

img, video { max-width: 100%; height: auto; }

h1, h2, h3, h4 {
  font-family: var(--fm-font-display);
  font-optical-sizing: auto;
  font-weight: 560;
  color: var(--fm-black);
  letter-spacing: -.015em;
  line-height: 1.15;
  text-wrap: balance;
}

p { text-wrap: pretty; }

a { color: var(--fm-pink); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { color: var(--fm-pink-hover); }

:focus-visible { outline: 3px solid var(--fm-gold); outline-offset: 3px; border-radius: 4px; }

::selection { background: rgba(249, 89, 138, .18); }

.screen-reader-text {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}

.fm-skip-link {
  position: absolute; left: 12px; top: 12px; z-index: 1000; transform: translateY(-200%);
  padding: 10px 16px; border-radius: 999px; background: var(--fm-black); color: #fff; text-decoration: none;
}
.fm-skip-link:focus { transform: none; color: #fff; }

.fm-wrap { width: min(var(--fm-wrap), 100% - 2 * var(--fm-gutter)); margin-inline: auto; }
.fm-wrap--narrow { width: min(var(--fm-wrap-narrow), 100% - 2 * var(--fm-gutter)); }

.fm-main { display: block; min-height: 50vh; }

.fm-eyebrow {
  margin: 0 0 12px; color: var(--fm-pink); font-size: 13px; font-weight: 700;
  letter-spacing: .14em; text-transform: uppercase;
}

.fm-btn {
  display: inline-flex; align-items: center; justify-content: center; min-height: 48px;
  padding: 12px 24px; border: 1px solid var(--fm-black); border-radius: 999px;
  background: var(--fm-black); color: #fff; font: 600 15px/1.2 var(--fm-font-body);
  text-decoration: none; cursor: pointer; transition: transform .15s ease;
}
.fm-btn:hover { color: #fff; transform: translateY(-1px); }
.fm-btn--line { background: transparent; color: var(--fm-black); }
.fm-btn--line:hover { color: var(--fm-black); }

.fm-notice {
  margin: 24px auto; max-width: var(--fm-wrap-narrow); padding: 18px 22px;
  border: 1px dashed var(--fm-pink); border-radius: var(--fm-radius-sm); background: #fff4f6; font-size: 15px;
}

.fm-prose > * + * { margin-top: 1em; }
.fm-prose p { margin: 0 0 1em; }

/* ---------- Okruszki ---------- */

.fm-breadcrumbs { margin: 0 0 18px; color: var(--fm-muted); font-size: 13px; line-height: 1.5; }
.fm-breadcrumbs a { color: var(--fm-muted); text-decoration: none; }
.fm-breadcrumbs a:hover { color: var(--fm-pink); text-decoration: underline; }
.fm-breadcrumbs p { margin: 0; }
.fm-breadcrumbs .separator { margin: 0 4px; }

/* =========================================================
   Nagłówek (przeniesiony 1:1, font zmieniony na Inter)
   ========================================================= */

.fm-top-header {
  --h-text: #f4efe9;
  --h-text-soft: rgba(244, 239, 233, .74);
  --h-pink: #ff5b93;
  --h-pink-soft: rgba(255, 91, 147, .12);
  --h-line: rgba(255, 255, 255, .14);
  --h-input: #2c2f3a;
  position: relative; z-index: 90; padding: 10px 14px 0;
  font-family: var(--fm-font-body);
}

.fm-top-header__bar {
  width: min(1540px, 100%); min-height: 88px; margin: 0 auto; padding: 0 clamp(22px, 2.2vw, 36px);
  display: grid; grid-template-columns: minmax(240px, 1.05fr) minmax(380px, 1.25fr) auto minmax(210px, .74fr);
  gap: clamp(16px, 1.6vw, 28px); align-items: center;
  border: 1px solid rgba(255, 255, 255, .05); border-radius: 24px;
  background:
    radial-gradient(circle at 82% 42%, rgba(255, 255, 255, .10), transparent 24%),
    radial-gradient(circle at 18% 20%, rgba(255, 91, 147, .045), transparent 20%),
    linear-gradient(108deg, #111217 0%, #17181d 48%, #24252b 72%, #34353a 100%);
  box-shadow: 0 18px 50px rgba(0, 0, 0, .22);
}

.fm-top-header__brand { min-width: 0; display: inline-flex; align-items: center; gap: 16px; color: var(--h-text); text-decoration: none; }
.fm-top-header__brand:hover { color: var(--h-text); }
.fm-top-header__mark { width: 46px; height: 46px; flex: 0 0 46px; object-fit: cover; border-radius: 9px; border: 1px solid rgba(255, 255, 255, .10); }
.fm-top-header__brand-copy { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.fm-top-header__brand-name { font-family: var(--fm-font-display); font-size: clamp(22px, 1.6vw, 28px); font-weight: 600; line-height: .95; letter-spacing: -.02em; white-space: nowrap; }
.fm-top-header__brand-claim { color: var(--h-text-soft); font-size: 11px; font-weight: 500; line-height: 1.15; white-space: nowrap; }

.fm-top-header__nav { display: flex; align-items: center; justify-content: center; gap: clamp(18px, 1.55vw, 30px); min-width: 0; }
.fm-top-header__nav > a,
.fm-top-header__nav-link {
  position: relative; display: inline-flex; align-items: center; gap: 5px; padding: 10px 0;
  color: var(--h-text); font-size: 13px; font-weight: 600; line-height: 1; letter-spacing: .08em;
  text-transform: uppercase; text-decoration: none; white-space: nowrap; transition: color .18s ease;
}
.fm-top-header__nav-item:first-child .fm-top-header__nav-link { color: #ff78a6; }
.fm-top-header__nav > a::after,
.fm-top-header__nav-link::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 1px; height: 2px; border-radius: 999px;
  background: var(--h-pink); transform: scaleX(0); transition: transform .18s ease;
}
.fm-top-header__nav > a:hover, .fm-top-header__nav-link:hover { color: var(--h-pink); }
.fm-top-header__nav > a:hover::after, .fm-top-header__nav-link:hover::after { transform: scaleX(1); }

.fm-top-header__nav-item { position: relative; }
.fm-top-header__nav-item--has-submenu::after { content: ""; position: absolute; left: -18px; right: -18px; top: 100%; height: 18px; }
.fm-top-header__submenu {
  position: absolute; top: calc(100% + 10px); left: 50%; z-index: 30; min-width: 230px; padding: 10px;
  border: 1px solid var(--h-line); border-radius: 18px; background: rgba(23, 26, 40, .98);
  box-shadow: 0 22px 48px rgba(0, 0, 0, .34); transform: translateX(-50%) translateY(6px);
  opacity: 0; visibility: hidden; pointer-events: none; transition: opacity .16s ease, transform .16s ease, visibility .16s ease;
}
.fm-top-header__nav-item:hover .fm-top-header__submenu,
.fm-top-header__nav-item:focus-within .fm-top-header__submenu { opacity: 1; visibility: visible; pointer-events: auto; transform: translateX(-50%) translateY(0); }
.fm-top-header__submenu a { display: block; padding: 11px 13px; border-radius: 12px; color: var(--h-text); font-size: 14px; font-weight: 600; text-decoration: none; }
.fm-top-header__submenu a:hover { color: var(--h-pink); background: var(--h-pink-soft); }

.fm-top-header__cta,
.fm-top-header__mobile-cta {
  display: inline-flex; align-items: center; justify-content: center; border: 1px solid rgba(198, 182, 244, .34);
  border-radius: 14px; background: linear-gradient(180deg, #d5c8ff, #c6b7f4); color: #19151f;
  font-weight: 750; text-transform: uppercase; text-decoration: none; white-space: nowrap;
}
.fm-top-header__cta { min-height: 46px; padding: 0 18px; font-size: 12px; letter-spacing: .07em; }
.fm-top-header__cta:hover, .fm-top-header__mobile-cta:hover { color: #19151f; filter: brightness(1.03); }

.fm-top-header__search {
  justify-self: end; width: min(300px, 100%); height: 48px; display: grid; grid-template-columns: 1fr 48px;
  align-items: center; border: 1px solid rgba(255, 255, 255, .14); border-radius: 999px; background: rgba(255, 255, 255, .96); overflow: hidden;
}
.fm-top-header__search input { width: 100%; min-width: 0; height: 100%; padding: 0 12px 0 18px; border: 0; outline: none; background: transparent; color: var(--h-input); font: 14px var(--fm-font-body); }
.fm-top-header__search button { width: 48px; height: 48px; display: grid; place-items: center; padding: 0; border: 0; background: transparent; color: var(--h-input); cursor: pointer; }
.fm-top-header__search svg { width: 19px; height: 19px; fill: currentColor; }

.fm-top-header__mobile-actions, .fm-top-header__mobile { display: none; }

@media (min-width: 1025px) and (max-width: 1280px) {
  .fm-top-header__bar { grid-template-columns: minmax(210px, .95fr) minmax(320px, 1.2fr) auto minmax(180px, .65fr); gap: 14px; padding-inline: 18px; }
  .fm-top-header__brand-claim { display: none; }
  .fm-top-header__nav { gap: 15px; }
  .fm-top-header__nav > a, .fm-top-header__nav-link { font-size: 12px; letter-spacing: .055em; }
  .fm-top-header__cta { padding-inline: 13px; font-size: 11px; }
  .fm-top-header__search { width: 210px; }
}

@media (max-width: 1024px) {
  .fm-top-header { padding: 10px 12px 0; }
  .fm-top-header__bar { min-height: 68px; padding: 10px 12px; grid-template-columns: minmax(0, 1fr) auto; gap: 12px; border-radius: 22px; }
  .fm-top-header__mark { width: 42px; height: 42px; flex-basis: 42px; }
  .fm-top-header__brand-claim, .fm-top-header__nav, .fm-top-header__cta, .fm-top-header__search { display: none; }
  .fm-top-header__mobile-actions { display: flex; align-items: center; justify-self: end; gap: 8px; }
  .fm-top-header__mobile-cta { min-height: 40px; padding: 0 16px; font-size: 12px; letter-spacing: .05em; }
  .fm-top-header__mobile { display: block; position: relative; }
  .fm-top-header__mobile > summary {
    width: 40px; height: 40px; display: grid; place-content: center; gap: 4px; border: 1px solid rgba(255, 255, 255, .10);
    border-radius: 999px; background: rgba(255, 255, 255, .08); cursor: pointer; list-style: none;
  }
  .fm-top-header__mobile > summary::-webkit-details-marker { display: none; }
  .fm-top-header__mobile > summary span { display: block; width: 15px; height: 2px; border-radius: 999px; background: var(--h-text); }
  .fm-top-header__mobile-panel {
    position: absolute; top: calc(100% + 12px); right: 0; z-index: 50; width: min(360px, calc(100vw - 24px)); padding: 12px;
    border: 1px solid var(--h-line); border-radius: 20px; background: rgba(21, 24, 39, .985); box-shadow: 0 22px 54px rgba(0, 0, 0, .35);
  }
  .fm-top-header__mobile-panel > a,
  .fm-top-header__mobile-submenu > summary,
  .fm-top-header__mobile-submenu > a {
    display: block; padding: 12px 13px; border-radius: 14px; color: var(--h-text); font-size: 14px; font-weight: 700;
    line-height: 1.2; letter-spacing: .05em; text-transform: uppercase; text-decoration: none; cursor: pointer; list-style: none;
  }
  .fm-top-header__mobile-submenu > summary::-webkit-details-marker { display: none; }
  .fm-top-header__mobile-submenu > summary::after { content: "+"; float: right; color: var(--h-pink); }
  .fm-top-header__mobile-submenu[open] > summary::after { content: "−"; }
  .fm-top-header__mobile-submenu > a { margin-left: 10px; color: var(--h-text-soft); font-size: 14px; font-weight: 600; letter-spacing: 0; text-transform: none; }
  .fm-top-header__mobile-panel > a:hover, .fm-top-header__mobile-submenu > a:hover { color: var(--h-pink); background: var(--h-pink-soft); }
  .fm-top-header__mobile-panel > .fm-top-header__mobile-offer { margin: 6px 0; color: #d0c2f9; background: rgba(198, 182, 244, .09); }
  .fm-top-header__mobile-search { margin-top: 10px; display: grid; grid-template-columns: 1fr auto; gap: 7px; }
  .fm-top-header__mobile-search input { min-width: 0; height: 44px; padding: 0 14px; border: 0; border-radius: 999px; background: #fff; color: var(--h-input); font: 15px var(--fm-font-body); }
  .fm-top-header__mobile-search button { height: 44px; padding: 0 14px; border: 0; border-radius: 14px; background: #d0c2f9; color: #241b3b; font: 700 12px var(--fm-font-body); letter-spacing: .06em; text-transform: uppercase; cursor: pointer; }
}

@media (max-width: 520px) {
  .fm-top-header { padding-inline: 10px; }
  .fm-top-header__bar { min-height: 62px; padding: 8px 9px; border-radius: 20px; }
  .fm-top-header__mark { width: 38px; height: 38px; flex-basis: 38px; }
  .fm-top-header__brand { gap: 11px; }
  .fm-top-header__brand-name { font-size: 22px; }
  .fm-top-header__mobile-cta { padding: 0 13px; font-size: 11.5px; }
}

/* =========================================================
   Stopka
   ========================================================= */

.fm-footer { margin-top: clamp(56px, 8vw, 96px); background: var(--fm-cream-2); color: var(--fm-text); font-size: 15px; line-height: 1.6; }
.fm-footer__inner {
  width: min(var(--fm-wrap), 100% - 2 * var(--fm-gutter)); margin-inline: auto; padding: clamp(40px, 6vw, 64px) 0 28px;
  display: grid; grid-template-columns: 1.2fr 1fr 1.4fr; gap: 32px;
}
.fm-footer p { margin: 0 0 10px; }
.fm-footer a { color: var(--fm-black); }
.fm-footer__brand img { width: 64px; height: 64px; border-radius: 14px; }
.fm-footer__claim { margin-top: 12px !important; font-family: var(--fm-font-display); font-size: 20px; color: var(--fm-black); }
.fm-footer__bottom {
  width: min(var(--fm-wrap), 100% - 2 * var(--fm-gutter)); margin-inline: auto; padding: 18px 0 28px;
  display: flex; justify-content: space-between; gap: 16px; border-top: 1px solid var(--fm-line); font-size: 13px; color: var(--fm-muted);
}
.fm-footer__bottom a { color: var(--fm-muted); }
@media (max-width: 760px) { .fm-footer__inner { grid-template-columns: 1fr; gap: 20px; } }

/* =========================================================
   Karty wpisów i listy
   ========================================================= */

.fm-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(16px, 2vw, 24px); }
@media (max-width: 960px) { .fm-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .fm-grid { grid-template-columns: 1fr; } }

.fm-card { min-width: 0; }
.fm-card__link {
  display: flex; flex-direction: column; height: 100%; overflow: hidden; border: 1px solid var(--fm-line-soft);
  border-radius: var(--fm-radius); background: var(--fm-white); color: var(--fm-text); text-decoration: none;
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.fm-card__link:hover { color: var(--fm-text); transform: translateY(-2px); border-color: var(--fm-line); box-shadow: var(--fm-shadow); }
.fm-card__media { aspect-ratio: 4 / 3; background: var(--fm-cream-2); overflow: hidden; }
.fm-card__media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.fm-card__body { padding: 18px 20px 22px; }
.fm-card__kicker { margin: 0 0 8px; color: var(--fm-pink); font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; line-height: 1.35; }
.fm-card__title { margin: 0; font-size: clamp(20px, 1.6vw, 23px); line-height: 1.22; }
.fm-card__link:hover .fm-card__title { color: var(--fm-pink-hover); }
.fm-card__text { margin: 10px 0 0; color: var(--fm-muted); font-size: 15px; line-height: 1.55; }

.fm-listing { padding: clamp(32px, 5vw, 56px) 0; }
.fm-listing__head { margin-bottom: 28px; }
.fm-listing__title { margin: 0; font-size: clamp(34px, 5vw, 56px); }
.fm-listing__subtitle { margin: 0 0 24px; font-size: clamp(26px, 3.4vw, 38px); }
.fm-listing--support { padding-top: 0; }

.nav-links { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 32px; }
.nav-links .page-numbers { display: inline-flex; min-width: 44px; min-height: 44px; align-items: center; justify-content: center; padding: 0 14px; border: 1px solid var(--fm-line-soft); border-radius: 999px; color: var(--fm-black); text-decoration: none; }
.nav-links .page-numbers.current { background: var(--fm-black); color: #fff; }

/* ---------- Archiwum kategorii ---------- */

.fm-archive-hero { padding: clamp(28px, 5vw, 64px) 0; background: linear-gradient(135deg, var(--fm-cream), var(--fm-cream-2)); }
.fm-archive-hero__inner { display: grid; gap: clamp(24px, 4vw, 56px); align-items: center; }
.fm-archive-hero.has-image .fm-archive-hero__inner { grid-template-columns: minmax(0, 1.2fr) minmax(260px, .8fr); }
.fm-archive-hero__title { margin: 0; font-size: clamp(34px, 5.2vw, 60px); }
.fm-archive-hero__desc { margin-top: 16px; max-width: 46em; color: var(--fm-muted); }
.fm-archive-hero__desc p { margin: 0 0 .8em; }
.fm-archive-hero__media { margin: 0; overflow: hidden; border-radius: var(--fm-radius); aspect-ratio: 4 / 3; }
.fm-archive-hero__media img { width: 100%; height: 100%; object-fit: cover; display: block; }
@media (max-width: 800px) { .fm-archive-hero.has-image .fm-archive-hero__inner { grid-template-columns: 1fr; } }

/* ---------- Wyszukiwanie i 404 ---------- */

.fm-searchform { display: grid; grid-template-columns: 1fr auto; gap: 8px; margin: 18px 0 0; }
.fm-searchform input { min-width: 0; min-height: 48px; padding: 0 18px; border: 1px solid var(--fm-line-soft); border-radius: 999px; background: #fff; font: 16px var(--fm-font-body); color: var(--fm-black); }

.fm-search { padding: clamp(36px, 6vw, 72px) 0; }
.fm-search__head { margin-bottom: 28px; padding-bottom: 24px; border-bottom: 1px solid var(--fm-line); }
.fm-search__title { margin: 0; font-size: clamp(32px, 5vw, 52px); }
.fm-search__title span { color: var(--fm-pink); }
.fm-search__list { list-style: none; margin: 0; padding: 0; }
.fm-search__item { padding: 24px 0; border-bottom: 1px solid var(--fm-line-soft); }
.fm-search__item-title { margin: 0; font-size: clamp(22px, 2.6vw, 28px); }
.fm-search__item-title a { color: var(--fm-black); text-decoration: none; }
.fm-search__item-title a:hover { color: var(--fm-pink); }
.fm-search__excerpt { margin: 10px 0 0; color: var(--fm-muted); font-size: 16px; }
.fm-search mark, .fm-search .relevanssi-query-term { padding: 0 .12em; border-radius: 3px; background: rgba(197, 116, 132, .18); color: inherit; }

.fm-404 { padding: clamp(48px, 8vw, 100px) 0 24px; }
.fm-404__title { margin: 0; font-size: clamp(36px, 6vw, 64px); }
.fm-404__text { color: var(--fm-muted); }

/* ---------- Proste strony (słownik, FAQ) ---------- */

.fm-simple { padding: clamp(32px, 5vw, 64px) 0; }
.fm-simple__title { margin: 0 0 24px; font-size: clamp(32px, 5vw, 52px); }

.fm-page__fallback { padding: 48px 0; }

/* ---------- Agencje ---------- */

.fm-agency-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 20px; margin: 24px 0 48px; }
.fm-agency-card {
  display: flex; flex-direction: column; gap: 14px; padding: 20px; height: 100%;
  border: 1px solid var(--fm-line-soft); border-radius: var(--fm-radius-sm); background: #fff; color: var(--fm-text);
  transition: border-color .15s ease, box-shadow .15s ease;
}
.fm-agency-card:hover { border-color: var(--fm-line); box-shadow: var(--fm-shadow); }
.fm-agency-card__head { display: grid; grid-template-columns: 64px 1fr; gap: 14px; align-items: center; }
.fm-agency-card__logo { width: 64px; height: 64px; display: grid; place-items: center; overflow: hidden; border-radius: 12px; background: var(--fm-cream); }
.fm-agency-card__logo img { max-width: 88%; max-height: 88%; object-fit: contain; }
.fm-agency-card__name { margin: 0; font-size: 21px; line-height: 1.2; }
.fm-agency-card__name a { color: var(--fm-black); text-decoration: none; }
.fm-agency-card__name a:hover { color: var(--fm-pink); }
.fm-agency-card__city { margin: 3px 0 0; color: var(--fm-muted); font-size: 14px; }
.fm-agency-card__profile { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 12px; border-radius: 10px; background: var(--fm-cream); }
.fm-agency-card__icons { display: flex; gap: 10px; margin: 0; padding: 0; list-style: none; }
.fm-agency-card__icons li { display: flex; flex-direction: column; align-items: center; gap: 3px; font-size: 10.5px; letter-spacing: .02em; color: var(--fm-text); }
.fm-agency-card__icons img { width: 28px; height: 28px; object-fit: contain; }
.fm-agency-card__icons .is-off { opacity: .28; filter: grayscale(1); }
.fm-agency-card__profile-label { margin: 0; font-size: 13px; font-weight: 600; color: var(--fm-pink); text-align: right; }
.fm-agency-card__facts { display: grid; gap: 6px; margin: 0; font-size: 14px; }
.fm-agency-card__facts div { display: grid; grid-template-columns: 118px 1fr; gap: 10px; padding-bottom: 6px; border-bottom: 1px solid var(--fm-line-soft); }
.fm-agency-card__facts div:last-child { border-bottom: 0; padding-bottom: 0; }
.fm-agency-card__facts dt { color: var(--fm-muted); }
.fm-agency-card__facts dd { margin: 0; color: var(--fm-black); font-weight: 500; }
.fm-agency-card__note { margin: 0; color: var(--fm-text); font-size: 14px; line-height: 1.55; }
.fm-agency-card__links { display: flex; flex-wrap: wrap; gap: 8px 16px; margin-top: auto; padding-top: 12px; border-top: 1px solid var(--fm-line-soft); font-size: 14px; font-weight: 600; }
.fm-agency-card__links a { color: var(--fm-pink); text-decoration: none; }
.fm-agency-card__links a:hover { text-decoration: underline; }
@media (max-width: 420px) { .fm-agency-card__facts div { grid-template-columns: 100px 1fr; } }

.fm-agency { padding: clamp(32px, 5vw, 64px) 0; }
.fm-agency__head { display: flex; align-items: center; gap: 20px; margin-bottom: 24px; }
.fm-agency__logo { width: 96px; height: 96px; object-fit: contain; border-radius: 16px; background: var(--fm-cream); padding: 8px; }
.fm-agency__title { margin: 0; font-size: clamp(32px, 5vw, 52px); }
.fm-agency__city { margin: 4px 0 0; color: var(--fm-pink); font-weight: 600; }
.fm-agency__facts { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 12px; margin: 0 0 24px; }
.fm-agency__facts div { padding: 14px 16px; border: 1px solid var(--fm-line); border-radius: var(--fm-radius-sm); background: var(--fm-cream); }
.fm-agency__facts dt { color: var(--fm-muted); font-size: 12px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; }
.fm-agency__facts dd { margin: 4px 0 0; color: var(--fm-black); font-weight: 600; }
.fm-agency__links { display: flex; flex-wrap: wrap; gap: 10px; margin: 0 0 32px; }
.fm-agency__box { margin: 0 0 24px; padding: clamp(20px, 3vw, 32px); border: 1px solid var(--fm-line); border-radius: var(--fm-radius); background: linear-gradient(135deg, var(--fm-cream), var(--fm-cream-2)); }
.fm-agency__box--plain { background: #fff; }
.fm-agency__box h2 { margin: 0 0 12px; font-size: clamp(22px, 2.6vw, 28px); }

/* ---------- Podgląd ---------- */

body.fm-preview #wpadminbar #wp-admin-bar-fm-preview > .ab-item { background: #b4566b; color: #fff; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; scroll-behavior: auto !important; }
}

/* ---------- Elementy z migracji prostych widżetów ---------- */

.fm-box { margin: 20px 0; padding: 20px 22px; border: 1px solid var(--fm-line); border-radius: var(--fm-radius-sm); background: var(--fm-cream); }
.fm-box h3 { margin: 0 0 8px; font-size: 22px; }
.fm-box p { margin: 0; }
.fm-gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 12px; margin: 24px 0; }
.fm-gallery figure { margin: 0; overflow: hidden; border-radius: var(--fm-radius-sm); aspect-ratio: 4 / 5; }
.fm-gallery img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* =========================================================
   Listy: [fm_lista uklad="lista"], [fm_faq], [fm_slownik]
   ========================================================= */

.fm-linklist { list-style: none; margin: 16px 0; padding: 0; border-top: 1px solid var(--fm-line-soft); }
.fm-linklist__item { border-bottom: 1px solid var(--fm-line-soft); }
.fm-linklist__link { display: block; padding: 16px 4px; color: var(--fm-text); text-decoration: none; }
.fm-linklist__link:hover { color: var(--fm-text); background: var(--fm-cream); }
.fm-linklist__title { margin: 0; font-size: clamp(19px, 1.8vw, 22px); line-height: 1.25; }
.fm-linklist__link:hover .fm-linklist__title { color: var(--fm-pink-hover); }
.fm-linklist__text { display: block; margin-top: 6px; color: var(--fm-muted); font-size: 15px; line-height: 1.55; }

.fm-faq, .fm-glossary { margin: 24px 0; }
.fm-faq__search { display: block; margin: 0 0 16px; }
.fm-faq__search input {
  width: 100%; min-height: 52px; padding: 0 20px; border: 1px solid var(--fm-line); border-radius: 999px;
  background: #fff; color: var(--fm-black); font: 16px var(--fm-font-body);
}
.fm-faq__empty { color: var(--fm-muted); }
.fm-faq__list { border-top: 1px solid var(--fm-line-soft); }
details.fm-faq__item { border-bottom: 1px solid var(--fm-line-soft); }
.fm-faq__q {
  position: relative; padding: 18px 44px 18px 4px; cursor: pointer; list-style: none;
  font-family: var(--fm-font-display); font-size: clamp(18px, 1.7vw, 21px); font-weight: 520; line-height: 1.3; color: var(--fm-black);
}
.fm-faq__q::-webkit-details-marker { display: none; }
.fm-faq__q::after { content: "+"; position: absolute; right: 8px; top: 50%; transform: translateY(-50%); color: var(--fm-pink); font: 400 26px/1 var(--fm-font-body); }
details[open] > .fm-faq__q::after { content: "−"; }
.fm-faq__a { padding: 0 4px 20px; color: var(--fm-text); font-size: 16px; }
.fm-faq__more { margin: 8px 0 0 !important; font-size: 14px; }

.fm-glossary__nav { position: sticky; top: 0; z-index: 5; display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 16px; padding: 10px 0; background: var(--fm-paper); }
.fm-glossary__nav a {
  display: inline-grid; place-items: center; min-width: 40px; height: 40px; border: 1px solid var(--fm-line-soft);
  border-radius: 10px; background: #fff; color: var(--fm-black); font-weight: 600; text-decoration: none;
}
.fm-glossary__nav a:hover { border-color: var(--fm-pink); color: var(--fm-pink); }
.fm-glossary__group { scroll-margin-top: 72px; }
.fm-glossary__letter { margin: 28px 0 8px; font-size: 32px; color: var(--fm-pink); }
.fm-glossary__list { margin: 0; }
.fm-glossary__item { padding: 14px 0; border-bottom: 1px solid var(--fm-line-soft); }
.fm-glossary__item dt { margin: 0; font-weight: 650; font-size: 17px; }
.fm-glossary__item dt a { color: var(--fm-black); text-decoration: none; }
.fm-glossary__item dt a:hover { color: var(--fm-pink); }
.fm-glossary__item dd { margin: 4px 0 0; color: var(--fm-muted); font-size: 15px; line-height: 1.55; }

/* ---------- [fm_lista]: tytuł sekcji, filtr, układy kompakt i wyróżniony ---------- */

.fm-list { margin: clamp(32px, 5vw, 56px) 0; }
.fm-list__title { display: flex; align-items: center; gap: 14px; margin: 0 0 24px; font-size: clamp(24px, 2.6vw, 30px); }
.fm-list__title::after { content: ""; flex: 1; height: 1px; background: var(--fm-line); }
.fm-list__title span::after { content: ""; display: inline-block; width: 7px; height: 7px; margin-left: 10px; border-radius: 50%; background: var(--fm-pink-bright); vertical-align: middle; }
.fm-list__filter { display: inline-block; margin: 0 0 24px; }
.fm-list__filter select {
  min-height: 44px; padding: 0 40px 0 16px; border: 1px solid var(--fm-line); border-radius: 12px; background: #fff;
  color: var(--fm-black); font: 500 15px var(--fm-font-body); cursor: pointer;
}
.fm-grid__cell[hidden], .fm-compact__item[hidden], .fm-linklist__item[hidden] { display: none; }

.fm-compact { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px clamp(20px, 3vw, 36px); }
.fm-compact__link { display: grid; grid-template-columns: 88px 1fr; gap: 18px; align-items: start; color: var(--fm-text); text-decoration: none; }
.fm-compact__link:hover { color: var(--fm-text); }
.fm-compact__thumb { width: 88px; height: 88px; overflow: hidden; border-radius: 50%; background: var(--fm-cream-2); box-shadow: 0 6px 18px rgba(23, 23, 23, .08); }
.fm-compact__thumb img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .25s ease; }
.fm-compact__link:hover .fm-compact__thumb img { transform: scale(1.05); }
.fm-compact__title { margin: 0; font-size: 19px; line-height: 1.25; }
.fm-compact__link:hover .fm-compact__title { color: var(--fm-pink-hover); }
.fm-compact__text { display: block; margin-top: 8px; color: var(--fm-muted); font-size: 14px; line-height: 1.55; }
@media (max-width: 1000px) { .fm-compact { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) {
  .fm-compact { grid-template-columns: 1fr; gap: 20px; }
  .fm-compact__link { grid-template-columns: 72px 1fr; gap: 14px; }
  .fm-compact__thumb { width: 72px; height: 72px; }
}

.fm-featured { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: clamp(20px, 3vw, 36px); }
.fm-featured__main-link { display: block; color: var(--fm-text); text-decoration: none; }
.fm-featured__main-link:hover { color: var(--fm-text); }
.fm-featured__media { display: block; aspect-ratio: 9 / 8; overflow: hidden; border-radius: var(--fm-radius-sm); background: var(--fm-cream-2); }
.fm-featured__media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.fm-featured__title { margin: 16px 0 0; font-size: clamp(22px, 2.2vw, 28px); line-height: 1.2; }
.fm-featured__main-link:hover .fm-featured__title { color: var(--fm-pink-hover); }
.fm-featured__text { display: block; margin-top: 8px; color: var(--fm-muted); font-size: 14px; line-height: 1.55; }
.fm-featured__list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px clamp(16px, 2vw, 28px); align-content: start; }
.fm-featured__link { display: grid; grid-template-columns: 96px 1fr; gap: 16px; align-items: start; color: var(--fm-text); text-decoration: none; }
.fm-featured__link:hover { color: var(--fm-text); }
.fm-featured__thumb { width: 96px; height: 88px; overflow: hidden; border-radius: 10px; background: var(--fm-cream-2); }
.fm-featured__thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.fm-featured__item-title { margin: 0; font-size: 18px; line-height: 1.25; }
.fm-featured__link:hover .fm-featured__item-title { color: var(--fm-pink-hover); }
@media (max-width: 900px) { .fm-featured { grid-template-columns: 1fr; } }
@media (max-width: 560px) { .fm-featured__list { grid-template-columns: 1fr; } .fm-featured__link { grid-template-columns: 80px 1fr; } .fm-featured__thumb { width: 80px; height: 72px; } }

/* ---------- Strony: zwykłe treści między modułami HTML (dawny kontener Elementora) ---------- */

.fm-flow { width: min(980px, 100% - 2 * var(--fm-gutter)); margin-inline: auto; padding-block: 8px; }
.fm-flow > h2 { margin: 1.4em 0 .5em; font-size: clamp(28px, 3.4vw, 40px); }
.fm-flow > h3 { margin: 1.2em 0 .4em; font-size: clamp(22px, 2.4vw, 28px); }
.fm-flow > p { margin: 0 0 1em; }
.fm-flow > p:has(> .fm-btn) { display: inline-block; margin: 8px 12px 8px 0; }

/* ---------- Kafelki: [fm_faq] i [fm_slownik] ---------- */

.fm-tiles { display: grid; gap: 16px; }
.fm-tiles--faq { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.fm-tiles--glossary { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.fm-tile {
  min-width: 0; padding: 20px 22px 22px; border: 1px solid var(--fm-line-soft); border-radius: var(--fm-radius-sm);
  background: #fff; box-shadow: 0 6px 18px rgba(23, 23, 23, .035); transition: border-color .15s ease, box-shadow .15s ease;
}
.fm-tile:hover { border-color: var(--fm-line); box-shadow: var(--fm-shadow); }
.fm-tile[hidden] { display: none; }
.fm-tile__title { margin: 0 0 10px; font-size: 20px; line-height: 1.25; }
.fm-tiles--glossary .fm-tile__title { font-size: 18px; }
.fm-tile__title a { color: var(--fm-pink); text-decoration: none; }
.fm-tile__title a:hover { color: var(--fm-pink-hover); text-decoration: underline; }
.fm-tile__text, .fm-tile__text p { margin: 0; color: var(--fm-text); font-size: 15px; line-height: 1.6; }
.fm-tile__text p + p { margin-top: .8em; }
.fm-tiles--glossary .fm-tile__text { color: var(--fm-muted); font-size: 14px; }
.fm-glossary .fm-tiles { margin-bottom: 8px; }
@media (max-width: 1100px) { .fm-tiles--glossary { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 900px) { .fm-tiles--faq, .fm-tiles--glossary { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 580px) { .fm-tiles--faq, .fm-tiles--glossary { grid-template-columns: 1fr; } }

/* Strony FAQ i słownika potrzebują więcej miejsca niż zwykły tekst */
.fm-flow:has(.fm-tiles) { width: min(var(--fm-wrap), 100% - 2 * var(--fm-gutter)); }

/* =========================================================
   Galeria: masonry i karuzela (z widżetów Elementora)
   ========================================================= */
.fm-masonry { --fm-cols: 4; columns: var(--fm-cols); column-gap: 20px; margin: 32px 0; }
.fm-masonry__item { margin: 0 0 20px; break-inside: avoid; border-radius: var(--fm-radius-sm); overflow: hidden; }
.fm-masonry__img { display: block; width: 100%; height: auto; transition: opacity .3s ease; }
.fm-masonry__item:hover .fm-masonry__img { opacity: .88; }
@media (max-width: 1024px) { .fm-masonry { columns: 2; column-gap: 10px; } .fm-masonry__item { margin-bottom: 10px; } }
@media (max-width: 580px) { .fm-masonry { columns: 1; } }

.fm-carousel { position: relative; margin: 32px 0; }
.fm-carousel__track {
  display: grid; grid-auto-flow: column; grid-auto-columns: calc((100% - 2 * 12px) / 3); gap: 12px;
  overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth;
  scrollbar-width: none; overscroll-behavior-x: contain;
}
.fm-carousel__track::-webkit-scrollbar { display: none; }
.fm-carousel__slide { margin: 0; scroll-snap-align: start; aspect-ratio: 1; border-radius: var(--fm-radius-sm); overflow: hidden; }
.fm-carousel__img { width: 100%; height: 100%; object-fit: cover; display: block; }
.fm-carousel__btn {
  position: absolute; top: 50%; transform: translateY(-50%); width: 44px; height: 44px; border: 0; border-radius: 50%;
  background: rgba(255,255,255,.92); color: #1b1b1b; font-size: 28px; line-height: 1; cursor: pointer;
  box-shadow: 0 2px 10px rgba(0,0,0,.18); display: grid; place-items: center; padding: 0 0 4px;
}
.fm-carousel__btn:hover { background: #fff; color: var(--fm-pink); }
.fm-carousel__btn:focus-visible { outline: 2px solid var(--fm-pink); outline-offset: 2px; }
.fm-carousel__btn--prev { left: 10px; }
.fm-carousel__btn--next { right: 10px; }
@media (max-width: 900px) { .fm-carousel__track { grid-auto-columns: calc((100% - 12px) / 2); } }
@media (max-width: 580px) { .fm-carousel__track { grid-auto-columns: 85%; } }
@media (prefers-reduced-motion: reduce) { .fm-carousel__track { scroll-behavior: auto; } }

/* Karty na stronach kategorii: czas czytania zamiast nazwy działu */
.fm-card__meta { margin: 12px 0 0; font-size: 13px; color: var(--fm-muted); }
.fm-listing--support { border-top: 1px solid var(--fm-line-soft); padding-top: clamp(32px, 5vw, 56px); }
