/* =========================================================
   4models: artykuły (poradniki)
   1. Nagłówek wpisu i układ treści (nowe)
   2. Treść .fm-agency-article (scalone z 6 wersji arkusza z Elementora i WPCode)
   3. Moduły: ilustracja, polaroidy, wariant .fm-agency-response-article
   4. Boks autorów, udostępnianie, „Warto zobaczyć”
   5. Ujednolicenie typografii Fraunces + Inter
   ========================================================= */

/* ---------- 1. Nagłówek wpisu ---------- */

.fm-hero {
  position: relative;
  isolation: isolate;
  padding: clamp(24px, 4vw, 48px) var(--fm-gutter) clamp(20px, 3vw, 32px);
  background:
    radial-gradient(circle at 12% 8%, rgba(249, 89, 138, .07), transparent 18rem),
    radial-gradient(circle at 92% 10%, rgba(181, 146, 77, .09), transparent 20rem),
    linear-gradient(135deg, var(--fm-cream), var(--fm-cream-2));
}

.fm-hero__inner {
  width: min(1240px, 100%);
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(300px, .9fr);
  gap: clamp(28px, 5vw, 64px);
  align-items: center;
}

.fm-hero__title {
  margin: 0;
  font-size: clamp(34px, 4.6vw, 58px);
  line-height: 1.08;
  font-weight: 580;
  letter-spacing: -.02em;
}

.fm-hero__lead {
  margin-top: clamp(20px, 3vw, 28px);
  padding: 20px 22px;
  border: 1px solid var(--fm-line);
  border-left: 4px solid var(--fm-pink);
  border-radius: var(--fm-radius-sm);
  background: rgba(255, 255, 255, .62);
}

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

.fm-hero__lead-text,
.fm-hero__lead-text p {
  margin: 0;
  color: var(--fm-black);
  font-size: clamp(17px, 1.5vw, 19px);
  line-height: 1.6;
}

.fm-hero__media {
  margin: 0;
  overflow: hidden;
  border-radius: var(--fm-radius);
  aspect-ratio: 4 / 3;
  box-shadow: var(--fm-shadow);
}

.fm-hero__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.fm-hero__meta {
  width: min(1240px, 100%);
  margin: clamp(24px, 3vw, 36px) auto 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.fm-hero__meta-item {
  min-width: 0;
  padding: 14px 16px;
  border: 1px solid var(--fm-line);
  border-radius: var(--fm-radius-sm);
  background: rgba(255, 255, 255, .55);
}

.fm-hero__meta dt {
  margin: 0 0 4px;
  color: var(--fm-muted);
  font-size: 12px;
  font-weight: 600;
  line-height: 1.3;
}

.fm-hero__meta dd {
  margin: 0;
  color: var(--fm-black);
  font-size: 15px;
  font-weight: 600;
  line-height: 1.35;
}

.fm-hero__meta dd a { color: var(--fm-pink); text-decoration: none; }
.fm-hero__meta dd a:hover { text-decoration: underline; }
.fm-hero__meta .fm-reading-time { color: inherit; font: inherit; }

@media (max-width: 900px) {
  .fm-hero__inner { grid-template-columns: 1fr; }
  .fm-hero__media { order: -1; aspect-ratio: 16 / 10; }
  .fm-hero__meta { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 420px) {
  .fm-hero__meta { grid-template-columns: 1fr 1fr; gap: 8px; }
  .fm-hero__meta-item { padding: 12px; }
}

/* ---------- Układ treści ---------- */

.fm-entry {
  width: min(920px, 100% - 2 * var(--fm-gutter));
  margin: clamp(32px, 5vw, 56px) auto 0;
}

/* Wpisy bez opakowania .fm-agency-article (starsze, z edytora tekstu) */
.fm-entry > :where(p, ul, ol, h2, h3, h4, figure, blockquote, table) {
  max-width: 100%;
}
.fm-entry > h2 { font-size: clamp(28px, 3.6vw, 40px); margin: 1.6em 0 .6em; }
.fm-entry > h3 { font-size: clamp(22px, 2.6vw, 28px); margin: 1.4em 0 .5em; }
.fm-entry > p { margin: 0 0 1em; }


/* ---------- 2. Treść .fm-agency-article (z WPCode „artykuly nowe”, najpełniejsza wersja) ---------- */

/* =========================================================
4models — artykuł: Zgłoszenie do agencji modelingowej
Scope: .fm-agency-article
========================================================= */

.fm-agency-article {
--fm-black: #171717;
--fm-text: #303033;
--fm-muted: #6c6661;
--fm-soft: #8b8178;
--fm-pink: #c57484;
--fm-pink-soft: rgba(249, 89, 138, .10);
--fm-gold: #b5924d;
--fm-gold-soft: rgba(181, 146, 77, .34);
--fm-cream: #fbf8f3;
--fm-cream-2: #f8efea;
--fm-white: #ffffff;

max-width: 920px;
margin: 0 auto;
padding: 8px 0 64px;
color: var(--fm-text);
font-size: 18px;
line-height: 1.78;
}

.fm-agency-article * {
box-sizing: border-box;
}

.fm-agency-article section {
margin: clamp(34px, 5vw, 58px) 0;
}

.fm-agency-article section:first-child {
margin-top: 0;
}

.fm-agency-article p {
margin: 0 0 20px;
color: var(--fm-text);
font-size: 18px;
line-height: 1.78;
}

.fm-agency-article p:last-child {
margin-bottom: 0;
}

.fm-agency-article h2 {
max-width: 850px;
margin: 0 0 22px;
color: var(--fm-black);
font-family: var(--fm-font-display);
font-size: clamp(32px, 4.8vw, 54px);
font-weight: 400;
line-height: 1.04;
letter-spacing: -.045em;
}

.fm-agency-article h3 {
margin: 32px 0 14px;
color: var(--fm-black);
font-family: var(--fm-font-display);
font-size: clamp(24px, 3vw, 34px);
font-weight: 400;
line-height: 1.12;
letter-spacing: -.035em;
}

.fm-agency-article h2 + p,
.fm-agency-article h3 + p {
margin-top: 0;
}

.fm-agency-article strong {
color: var(--fm-black);
font-weight: 700;
}

.fm-agency-article a {
color: var(--fm-pink);
text-decoration-color: rgba(181, 146, 77, .62);
text-decoration-thickness: 1px;
text-underline-offset: 4px;
text-decoration-line: underline;
transition: color .18s ease, text-decoration-color .18s ease;
}

.fm-agency-article a:hover {
color: var(--fm-pink);
text-decoration-color: rgba(197, 116, 132, .72);
}

.fm-agency-article ul,
.fm-agency-article ol {
margin: 18px 0 24px;
padding-left: 0;
list-style: none;
}

.fm-agency-article li {
position: relative;
margin: 0 0 12px;
padding-left: 30px;
color: var(--fm-text);
font-size: 17px;
line-height: 1.68;
}

.fm-agency-article ul li::before {
content: "";
position: absolute;
left: 2px;
top: .76em;
width: 9px;
height: 9px;
border-radius: 999px;
background:
radial-gradient(circle at 35% 35%, rgba(255, 255, 255, .72), transparent 42%),
linear-gradient(135deg, var(--fm-pink), var(--fm-gold));
box-shadow: 0 0 0 4px rgba(181, 146, 77, .10);
}

.fm-agency-article ol {
counter-reset: fm-counter;
}

.fm-agency-article ol li {
counter-increment: fm-counter;
padding-left: 44px;
}

.fm-agency-article ol li::before {
content: counter(fm-counter);
position: absolute;
left: 0;
top: .12em;
display: grid;
place-items: center;
width: 28px;
height: 28px;
border: 1px solid rgba(181, 146, 77, .36);
border-radius: 999px;
background: rgba(251, 248, 243, .92);
color: var(--fm-pink);
font-size: 13px;
font-weight: 800;
line-height: 1;
}

.fm-agency-article blockquote {
margin: 28px 0 34px;
padding: clamp(24px, 4vw, 34px);
border: 1px solid rgba(181, 146, 77, .30);
border-left: 5px solid rgba(197, 116, 132, .72);
border-radius: 24px;
background:
radial-gradient(circle at 100% 0%, rgba(249, 89, 138, .08), transparent 13rem),
linear-gradient(135deg, rgba(251, 248, 243, .94), rgba(255, 255, 255, .78));
box-shadow: 0 16px 42px rgba(23, 23, 23, .055);
}

.fm-agency-article blockquote p {
margin-bottom: 16px;
color: #2c2b2b;
font-size: 16.5px;
line-height: 1.66;
}

.fm-agency-article blockquote p:last-child {
margin-bottom: 0;
}

.fm-agency-article blockquote strong {
color: var(--fm-pink);
}

/* =========================================================
Boksy linkujące / edukacyjne
========================================================= */

.fm-agency-article .fm-article-bridge {
margin: 46px 0;
padding: clamp(24px, 4vw, 38px);
border: 1px solid rgba(181, 146, 77, .34);
border-radius: 28px;
background:
radial-gradient(circle at 92% 8%, rgba(249, 89, 138, .10), transparent 16rem),
linear-gradient(135deg, rgba(251, 248, 243, .94), rgba(248, 239, 234, .72));
box-shadow: 0 18px 48px rgba(23, 23, 23, .06);
}

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

.fm-agency-article .fm-article-bridge__title {
margin: 0;
max-width: 760px;
color: var(--fm-black);
font-family: var(--fm-font-display);
font-size: clamp(30px, 4vw, 48px);
font-weight: 400;
line-height: 1.06;
letter-spacing: -.045em;
}

.fm-agency-article .fm-article-bridge__text {
max-width: 860px;
margin: 18px 0 0;
color: var(--fm-text);
font-size: 17px;
line-height: 1.68;
}

.fm-agency-article .fm-article-bridge__links {
display: grid;
grid-template-columns: repeat(2, minmax(0, 1fr));
gap: 16px;
margin-top: 26px;
}

.fm-agency-article .fm-article-bridge__link {
display: block;
padding: 22px 22px 24px;
border: 1px solid rgba(23, 23, 23, .10);
border-radius: 22px;
background: rgba(255, 255, 255, .72);
color: var(--fm-black);
text-decoration: none;
transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease, background .18s ease;
}

.fm-agency-article .fm-article-bridge__link:hover {
transform: translateY(-1px);
border-color: rgba(181, 146, 77, .45);
box-shadow: 0 14px 34px rgba(23, 23, 23, .08);
background: rgba(255, 255, 255, .88);
}

.fm-agency-article .fm-article-bridge__link-label {
display: block;
margin-bottom: 8px;
color: var(--fm-pink);
font-size: 12px;
font-weight: 700;
letter-spacing: .12em;
text-transform: uppercase;
}

.fm-agency-article .fm-article-bridge__link strong {
display: block;
color: var(--fm-black);
font-family: var(--fm-font-display);
font-size: clamp(22px, 2.4vw, 30px);
font-weight: 400;
line-height: 1.12;
letter-spacing: -.04em;
}

.fm-agency-article .fm-article-bridge__link span:last-child {
display: block;
margin-top: 10px;
color: var(--fm-muted);
font-size: 15px;
line-height: 1.55;
}

.fm-agency-article .fm-article-bridge__link--highlight {
background:
radial-gradient(circle at 90% 8%, rgba(249, 89, 138, .12), transparent 12rem),
rgba(255, 255, 255, .82);
border-color: rgba(181, 146, 77, .38);
}

/* =========================================================
Warianty boksów z HTML-a
========================================================= */

.fm-agency-article .fm-article-bridge--zgloszenie-start {
border-color: rgba(181, 146, 77, .42);
background:
radial-gradient(circle at 92% 8%, rgba(249, 89, 138, .12), transparent 16rem),
radial-gradient(circle at 6% 100%, rgba(181, 146, 77, .10), transparent 14rem),
linear-gradient(135deg, rgba(251, 248, 243, .96), rgba(248, 239, 234, .76));
}

.fm-agency-article .fm-article-bridge--decision {
border-color: rgba(197, 116, 132, .30);
background:
radial-gradient(circle at 88% 10%, rgba(249, 89, 138, .13), transparent 14rem),
linear-gradient(135deg, rgba(255, 255, 255, .92), rgba(248, 239, 234, .78));
}

.fm-agency-article .fm-article-bridge--polaroids {
background:
radial-gradient(circle at 92% 8%, rgba(181, 146, 77, .12), transparent 14rem),
radial-gradient(circle at 0% 100%, rgba(249, 89, 138, .09), transparent 13rem),
linear-gradient(135deg, rgba(251, 248, 243, .96), rgba(255, 255, 255, .74));
}

.fm-agency-article .fm-article-bridge--agency-choice {
border-color: rgba(181, 146, 77, .40);
background:
radial-gradient(circle at 100% 0%, rgba(181, 146, 77, .12), transparent 15rem),
linear-gradient(135deg, rgba(251, 248, 243, .96), rgba(248, 239, 234, .72));
}

.fm-agency-article .fm-article-bridge--red-flags {
border-color: rgba(197, 116, 132, .44);
background:
radial-gradient(circle at 92% 8%, rgba(249, 89, 138, .15), transparent 14rem),
linear-gradient(135deg, rgba(251, 248, 243, .96), rgba(255, 244, 244, .72));
}

.fm-agency-article .fm-article-bridge--red-flags .fm-article-bridge__eyebrow {
color: #b45869;
}

.fm-agency-article .fm-article-bridge--red-flags .fm-article-bridge__title {
max-width: 850px;
}

.fm-agency-article .fm-article-bridge--red-flags .fm-article-bridge__link--highlight {
border-color: rgba(197, 116, 132, .40);
background:
radial-gradient(circle at 92% 8%, rgba(249, 89, 138, .14), transparent 12rem),
rgba(255, 255, 255, .84);
}

.fm-agency-article .fm-article-bridge--one-to-one {
border-color: rgba(181, 146, 77, .46);
background:
radial-gradient(circle at 92% 8%, rgba(249, 89, 138, .13), transparent 15rem),
radial-gradient(circle at 0% 100%, rgba(181, 146, 77, .13), transparent 15rem),
linear-gradient(135deg, rgba(251, 248, 243, .96), rgba(248, 239, 234, .76));
}

/* =========================================================
Drobne ulepszenia rytmu i czytelności
========================================================= */

.fm-agency-article section > p:first-child:not(:only-child) {
margin-top: 0;
}

.fm-agency-article section > h2:first-child {
margin-top: 0;
}

.fm-agency-article section > h3:first-child {
margin-top: 0;
}

.fm-agency-article section p + h3 {
margin-top: 38px;
}

.fm-agency-article section ul + p,
.fm-agency-article section ol + p,
.fm-agency-article section blockquote + p {
margin-top: 24px;
}

.fm-agency-article::selection,
.fm-agency-article *::selection {
background: rgba(249, 89, 138, .18);
}

/* =========================================================
Mobile
========================================================= */

@media (max-width: 760px) {
.fm-agency-article {
max-width: 100%;
padding: 4px 0 48px;
font-size: 16.5px;
line-height: 1.72;
}

.fm-agency-article section {
margin: 34px 0;
}

.fm-agency-article p {
font-size: 16.5px;
line-height: 1.72;
margin-bottom: 18px;
}

.fm-agency-article h2 {
font-size: clamp(30px, 9vw, 42px);
line-height: 1.06;
margin-bottom: 18px;
}

.fm-agency-article h3 {
font-size: clamp(23px, 7vw, 30px);
margin-top: 28px;
}

.fm-agency-article li {
font-size: 16px;
line-height: 1.62;
padding-left: 28px;
}

.fm-agency-article ol li {
padding-left: 40px;
}

.fm-agency-article blockquote {
margin: 24px 0 30px;
padding: 22px 20px;
border-radius: 22px;
}

.fm-agency-article blockquote p {
font-size: 15.5px;
}

.fm-agency-article .fm-article-bridge {
margin: 34px 0;
padding: 24px 20px;
border-radius: 24px;
}

.fm-agency-article .fm-article-bridge__title {
font-size: clamp(29px, 8.8vw, 40px);
}

.fm-agency-article .fm-article-bridge__text {
font-size: 16px;
line-height: 1.62;
}

.fm-agency-article .fm-article-bridge__links {
grid-template-columns: 1fr;
gap: 14px;
}

.fm-agency-article .fm-article-bridge__link {
padding: 20px 18px 22px;
border-radius: 20px;
}

.fm-agency-article .fm-article-bridge__link strong {
font-size: clamp(23px, 7vw, 31px);
}

.fm-agency-article .fm-article-bridge__link span:last-child {
font-size: 14.5px;
}
}

/* =========================================================
Bardzo małe ekrany
========================================================= */

@media (max-width: 420px) {
.fm-agency-article p {
font-size: 16px;
}

.fm-agency-article li {
font-size: 15.5px;
}

.fm-agency-article .fm-article-bridge {
padding: 22px 18px;
}

.fm-agency-article .fm-article-bridge__eyebrow {
font-size: 11.5px;
letter-spacing: .12em;
}
}

/* =========================================================
Minimalistyczna nawigacja po cyklu bookingu
========================================================= */

.fm-agency-article .fm-booking-nav {
margin: 42px 0;
padding: 20px 22px;
border: 1px solid rgba(181, 146, 77, .26);
border-radius: 16px;
background: rgba(251, 248, 243, .62);
}

.fm-agency-article .fm-booking-nav__eyebrow {
margin: 0 0 3px;
color: var(--fm-pink);
font-size: 11px;
font-weight: 700;
line-height: 1.4;
letter-spacing: .13em;
text-transform: uppercase;
}

.fm-agency-article .fm-booking-nav__title {
margin: 0;
color: var(--fm-black);
font-family: var(--fm-font-display);
font-size: clamp(21px, 2.6vw, 27px);
font-weight: 400;
line-height: 1.18;
letter-spacing: -.025em;
}

.fm-agency-article .fm-booking-nav__list {
display: grid;
grid-template-columns: repeat(2, minmax(0, 1fr));
gap: 0 24px;
margin: 14px 0 0;
padding: 0;
list-style: none;
counter-reset: fm-booking-step;
}

.fm-agency-article .fm-booking-nav__item {
counter-increment: fm-booking-step;
margin: 0;
padding: 0;
font-size: 15px;
line-height: 1.45;
}

.fm-agency-article .fm-booking-nav__item::before {
content: none;
}

.fm-agency-article .fm-booking-nav__link {
display: grid;
grid-template-columns: 22px minmax(0, 1fr);
gap: 8px;
align-items: baseline;
padding: 9px 0;
border-bottom: 1px solid rgba(23, 23, 23, .08);
color: var(--fm-text);
text-decoration: none;
}

.fm-agency-article .fm-booking-nav__link::before {
content: counter(fm-booking-step, decimal-leading-zero);
color: var(--fm-soft);
font-size: 11px;
font-weight: 700;
letter-spacing: .04em;
}

.fm-agency-article .fm-booking-nav__link:hover {
color: var(--fm-pink);
text-decoration: none;
}

.fm-agency-article .fm-booking-nav__link:focus-visible {
outline: 2px solid rgba(197, 116, 132, .56);
outline-offset: 4px;
border-radius: 3px;
}

.fm-agency-article .fm-booking-nav__link[aria-current="page"] {
color: var(--fm-black);
font-weight: 700;
pointer-events: none;
}

.fm-agency-article .fm-booking-nav__link[aria-current="page"]::before {
color: var(--fm-pink);
}

@media (max-width: 760px) {
.fm-agency-article .fm-booking-nav {
margin: 34px 0;
padding: 18px;
border-radius: 14px;
}

.fm-agency-article .fm-booking-nav__list {
grid-template-columns: 1fr;
gap: 0;
margin-top: 12px;
}

.fm-agency-article .fm-booking-nav__item {
font-size: 14.5px;
}

.fm-agency-article .fm-booking-nav__link {
padding: 9px 0;
}
}



/* ---------- 3a. Moduł: ilustracja z podpisem (z wpisu #8404) ---------- */

/* =========================================================
Ilustracja z podpisem
========================================================= */

.fm-agency-article .fm-article-figure {
margin: 30px 0 36px;
overflow: hidden;
border: 1px solid rgba(181, 146, 77, .30);
border-radius: 24px;
background: var(--fm-cream);
box-shadow: 0 16px 42px rgba(23, 23, 23, .07);
}

.fm-agency-article .fm-article-figure img {
display: block;
width: 100%;
height: auto;
margin: 0;
}

.fm-agency-article .fm-article-figure figcaption {
padding: 17px 22px 19px;
border-top: 1px solid rgba(181, 146, 77, .22);
background:
linear-gradient(
135deg,
rgba(251, 248, 243, .98),
rgba(248, 239, 234, .82)
);
color: var(--fm-muted);
font-size: 14.5px;
font-style: italic;
line-height: 1.58;
}

/* Mobile */

@media (max-width: 760px) {
.fm-agency-article .fm-article-figure {
margin: 26px 0 32px;
border-radius: 20px;
}

.fm-agency-article .fm-article-figure figcaption {
padding: 15px 17px 17px;
font-size: 13.5px;
line-height: 1.55;
}
}

/* ---------- 3b. Moduł: polaroidy i kod (z wpisu #9333) ---------- */

/* =========================================================
4models — dodatkowy grid polaroidów
Scope: .fm-agency-article .fm-polaroid-gallery
========================================================= */

.fm-agency-article code {
display: inline-block;
padding: .08em .38em;
border: 1px solid rgba(181, 146, 77, .22);
border-radius: 8px;
background: rgba(251, 248, 243, .88);
color: var(--fm-black);
font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
font-size: .88em;
line-height: 1.45;
}

.fm-agency-article .fm-polaroid-gallery {
margin: 42px 0 48px;
padding: clamp(22px, 4vw, 34px);
border: 1px solid rgba(181, 146, 77, .34);
border-radius: 28px;
background:
radial-gradient(circle at 92% 8%, rgba(249, 89, 138, .10), transparent 16rem),
linear-gradient(135deg, rgba(251, 248, 243, .96), rgba(255, 255, 255, .74));
box-shadow: 0 18px 48px rgba(23, 23, 23, .06);
}

.fm-agency-article .fm-polaroid-gallery h3 {
margin-top: 0;
}

.fm-agency-article .fm-polaroid-gallery__intro {
max-width: 760px;
margin-bottom: 24px;
color: var(--fm-muted);
font-size: 16.5px;
line-height: 1.65;
}

.fm-agency-article .fm-polaroid-gallery__grid {
display: grid;
grid-template-columns: repeat(4, minmax(0, 1fr));
gap: 16px;
}

.fm-agency-article .fm-polaroid-gallery__item {
margin: 0;
overflow: hidden;
border: 1px solid rgba(23, 23, 23, .10);
border-radius: 22px;
background: rgba(255, 255, 255, .82);
box-shadow: 0 12px 28px rgba(23, 23, 23, .06);
}

.fm-agency-article .fm-polaroid-gallery__item img {
display: block;
width: 100%;
aspect-ratio: 3 / 4;
object-fit: cover;
background:
linear-gradient(135deg, rgba(248, 239, 234, .9), rgba(251, 248, 243, .9));
}

.fm-agency-article .fm-polaroid-gallery__item figcaption {
padding: 10px 12px 12px;
color: var(--fm-muted);
font-size: 13.5px;
line-height: 1.35;
text-align: center;
}

@media (max-width: 760px) {
.fm-agency-article .fm-polaroid-gallery {
margin: 34px 0;
padding: 22px 18px;
border-radius: 24px;
}

.fm-agency-article .fm-polaroid-gallery__intro {
font-size: 15.5px;
}

.fm-agency-article .fm-polaroid-gallery__grid {
grid-template-columns: repeat(2, minmax(0, 1fr));
gap: 12px;
}

.fm-agency-article .fm-polaroid-gallery__item {
border-radius: 18px;
}

.fm-agency-article .fm-polaroid-gallery__item figcaption {
font-size: 12.5px;
}
}

@media (max-width: 420px) {
.fm-agency-article .fm-polaroid-gallery__grid {
gap: 10px;
}
}

/* =========================================================
4models — dodatkowy grid polaroidów
Scope: .fm-agency-article .fm-polaroid-gallery
========================================================= */

.fm-agency-article code {
display: inline-block;
padding: .08em .38em;
border: 1px solid rgba(181, 146, 77, .22);
border-radius: 8px;
background: rgba(251, 248, 243, .88);
color: var(--fm-black);
font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
font-size: .88em;
line-height: 1.45;
}

.fm-agency-article .fm-polaroid-gallery {
margin: 42px 0 48px;
padding: clamp(22px, 4vw, 34px);
border: 1px solid rgba(181, 146, 77, .34);
border-radius: 28px;
background:
radial-gradient(circle at 92% 8%, rgba(249, 89, 138, .10), transparent 16rem),
linear-gradient(135deg, rgba(251, 248, 243, .96), rgba(255, 255, 255, .74));
box-shadow: 0 18px 48px rgba(23, 23, 23, .06);
}

.fm-agency-article .fm-polaroid-gallery h3 {
margin-top: 0;
}

.fm-agency-article .fm-polaroid-gallery__intro {
max-width: 760px;
margin-bottom: 24px;
color: var(--fm-muted);
font-size: 16.5px;
line-height: 1.65;
}

.fm-agency-article .fm-polaroid-gallery__grid {
display: grid;
grid-template-columns: repeat(4, minmax(0, 1fr));
gap: 16px;
}

.fm-agency-article .fm-polaroid-gallery__item {
margin: 0;
overflow: hidden;
border: 1px solid rgba(23, 23, 23, .10);
border-radius: 22px;
background: rgba(255, 255, 255, .82);
box-shadow: 0 12px 28px rgba(23, 23, 23, .06);
}

.fm-agency-article .fm-polaroid-gallery__item img {
display: block;
width: 100%;
aspect-ratio: 2 / 3;
object-fit: cover;
background:
linear-gradient(135deg, rgba(248, 239, 234, .9), rgba(251, 248, 243, .9));
}

.fm-agency-article .fm-polaroid-gallery__item figcaption {
padding: 10px 12px 12px;
color: var(--fm-muted);
font-size: 13.5px;
line-height: 1.35;
text-align: center;
}

@media (max-width: 760px) {
.fm-agency-article .fm-polaroid-gallery {
margin: 34px 0;
padding: 22px 18px;
border-radius: 24px;
}

.fm-agency-article .fm-polaroid-gallery__intro {
font-size: 15.5px;
}

.fm-agency-article .fm-polaroid-gallery__grid {
grid-template-columns: repeat(2, minmax(0, 1fr));
gap: 12px;
}

.fm-agency-article .fm-polaroid-gallery__item {
border-radius: 18px;
}

.fm-agency-article .fm-polaroid-gallery__item figcaption {
font-size: 12.5px;
}
}

@media (max-width: 420px) {
.fm-agency-article .fm-polaroid-gallery__grid {
gap: 10px;
}
}

/* ---------- 3c. Wariant .fm-agency-response-article (z WPCode „Artykuły CSS V2”) ---------- */

/*
 * 4models | Kiedy agencja odpisuje (wersja 2)
 * Samodzielny arkusz stylów dla artykułu .fm-agency-response-article.
 * W HTML nadaj pierwszej sekcji klasę .fm-response-intro,
 * ostatniej sekcji ze źródłami klasę .fm-response-sources.
 * Boks z powiązanymi tekstami używa klas .fm-response-related*.
 * Fonty są pobierane z motywu strony; poniżej są bezpieczne zamienniki.
 */

.fm-agency-response-article {
  --fm-black: #171717;
  --fm-text: #303033;
  --fm-muted: #655e59;
  --fm-pink: #a95167;
  --fm-gold: #9c7633;
  --fm-cream: #fbf8f3;
  --fm-border: #e9dfd1;

  box-sizing: border-box;
  width: 100%;
  max-width: 860px;
  margin-inline: auto;
  padding: 8px 0 64px;
  color: var(--fm-text);
  font-family: var(--fm-font-body);
  font-size: 18px;
  line-height: 1.72;
  overflow-wrap: break-word;
}

.fm-agency-response-article *,
.fm-agency-response-article *::before,
.fm-agency-response-article *::after {
  box-sizing: border-box;
}

.fm-agency-response-article > section {
  margin: 48px 0 0;
  scroll-margin-top: 100px;
}

.fm-agency-response-article > .fm-response-intro {
  margin-top: 0;
  padding-bottom: 26px;
  border-bottom: 1px solid var(--fm-border);
}

.fm-agency-response-article p {
  margin: 0 0 18px;
  color: var(--fm-text);
  font-size: inherit;
  line-height: inherit;
}

.fm-agency-response-article p:last-child {
  margin-bottom: 0;
}

.fm-agency-response-article > .fm-response-intro p:first-child {
  font-size: clamp(18px, 2vw, 20px);
  line-height: 1.62;
}

.fm-agency-response-article h2,
.fm-agency-response-article h3,
.fm-agency-response-article .fm-response-related__link strong {
  color: var(--fm-black);
  font-family: var(--fm-font-display);
  font-weight: 400;
  letter-spacing: -0.025em;
}

.fm-agency-response-article > section > h2 {
  max-width: none;
  margin: 0 0 20px;
  font-size: clamp(30px, 3.5vw, 44px);
  line-height: 1.17;
}

.fm-agency-response-article > section > h3 {
  margin: 29px 0 10px;
  font-size: clamp(22px, 2.5vw, 28px);
  line-height: 1.3;
}

.fm-agency-response-article strong {
  color: var(--fm-black);
  font-weight: 700;
}

.fm-agency-response-article > section a {
  color: var(--fm-pink);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  text-decoration-color: currentColor;
}

.fm-agency-response-article > section a:hover {
  color: #823d51;
}

.fm-agency-response-article a:focus-visible {
  outline: 3px solid var(--fm-gold);
  outline-offset: 4px;
  border-radius: 2px;
}

.fm-agency-response-article > section ul {
  margin: 18px 0 24px;
  padding-left: 0;
  list-style: none;
}

.fm-agency-response-article > section li {
  position: relative;
  margin: 0 0 12px;
  padding-left: 27px;
  color: var(--fm-text);
  font-size: 17px;
  line-height: 1.68;
}

.fm-agency-response-article > section li:last-child {
  margin-bottom: 0;
}

.fm-agency-response-article > section ul li::before {
  content: "";
  position: absolute;
  top: 0.74em;
  left: 3px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--fm-gold);
  box-shadow: none;
}

/* Powiązane artykuły: informacyjny drogowskaz, bez wezwania do zakupu. */
.fm-agency-response-article .fm-response-related {
  margin: 52px 0 0;
  padding: clamp(24px, 4vw, 36px);
  border: 1px solid var(--fm-border);
  border-radius: 16px;
  background: var(--fm-cream);
  box-shadow: none;
}

.fm-agency-response-article .fm-response-related__eyebrow {
  margin: 0 0 10px;
  color: #805d28;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.1em;
  line-height: 1.4;
  text-transform: uppercase;
}

.fm-agency-response-article .fm-response-related__title {
  max-width: 720px;
  margin: 0;
  font-size: clamp(27px, 3vw, 36px);
  line-height: 1.23;
}

.fm-agency-response-article .fm-response-related__text {
  max-width: 700px;
  margin: 14px 0 0;
  font-size: 17px;
  line-height: 1.6;
}

.fm-agency-response-article .fm-response-related__links {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 24px;
}

.fm-agency-response-article .fm-response-related__link {
  display: block;
  min-width: 0;
  padding: 18px;
  border: 1px solid var(--fm-border);
  border-radius: 10px;
  background: #fff;
  color: var(--fm-text);
  text-decoration: none;
  box-shadow: none;
  transition: border-color 0.18s ease, background-color 0.18s ease;
}

.fm-agency-response-article .fm-response-related__link:hover {
  transform: none;
  border-color: var(--fm-gold);
  background: #fff;
  box-shadow: none;
}

.fm-agency-response-article .fm-response-related__link--featured {
  border-color: #c6b085;
  background: #fff;
}

.fm-agency-response-article .fm-response-related__link-label {
  display: block;
  margin-bottom: 8px;
  color: #805d28;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  line-height: 1.3;
  text-transform: uppercase;
}

.fm-agency-response-article .fm-response-related__link strong {
  display: block;
  font-size: 21px;
  line-height: 1.3;
}

.fm-agency-response-article .fm-response-related__link span:last-child {
  display: block;
  margin-top: 9px;
  color: var(--fm-muted);
  font-size: 15px;
  line-height: 1.5;
}

/* Źródła są częścią artykułu, lecz wizualnie nie konkurują z poradnikiem. */
.fm-agency-response-article > .fm-response-sources {
  margin-top: 48px;
  padding-top: 26px;
  border-top: 1px solid var(--fm-border);
  color: var(--fm-muted);
}

.fm-agency-response-article > .fm-response-sources > h2 {
  margin-bottom: 12px;
  font-size: 26px;
}

.fm-agency-response-article > .fm-response-sources p,
.fm-agency-response-article > .fm-response-sources li {
  font-size: 15px;
  line-height: 1.6;
}

.fm-agency-response-article > .fm-response-sources ul {
  margin-top: 12px;
}

@media (max-width: 820px) {
  .fm-agency-response-article .fm-response-related__links {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 600px) {
  .fm-agency-response-article {
    padding: 0 0 44px;
    font-size: 17px;
    line-height: 1.68;
  }

  .fm-agency-response-article > section {
    margin-top: 36px;
  }

  .fm-agency-response-article > .fm-response-intro {
    padding-bottom: 22px;
  }

  .fm-agency-response-article > section > h2 {
    margin-bottom: 16px;
    font-size: clamp(28px, 7.4vw, 36px);
  }

  .fm-agency-response-article > section > h3 {
    margin-top: 24px;
  }

  .fm-agency-response-article > section li {
    font-size: 16px;
    line-height: 1.62;
  }

  .fm-agency-response-article .fm-response-related {
    margin-top: 40px;
    padding: 22px 18px;
  }

  .fm-agency-response-article .fm-response-related__title {
    font-size: 27px;
  }

  .fm-agency-response-article .fm-response-related__link {
    padding: 16px;
  }

  .fm-agency-response-article > .fm-response-sources {
    margin-top: 40px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .fm-agency-response-article a {
    transition: none;
  }
}


/* ---------- 4. Boks autorów ---------- */

.fm-authors {
  margin: 48px 0 0;
  padding: 24px;
  display: grid;
  gap: 20px;
  border: 1px solid var(--fm-line);
  border-radius: 18px;
  background: var(--fm-cream);
  line-height: 1.6;
}

.fm-authors p, .fm-authors figure, .fm-authors ul { margin: 0; padding: 0; }
.fm-authors__people { display: flex; gap: 16px; list-style: none; }
.fm-authors__person { width: 112px; }
.fm-authors__photo { position: relative; aspect-ratio: 4 / 5; border-radius: 12px; overflow: hidden; background: #efe9e2; }
.fm-authors__photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.fm-authors__name { margin-top: 8px !important; color: var(--fm-black); font-weight: 600; font-size: 15px; line-height: 1.3; }
.fm-authors__role { color: var(--fm-muted); font-size: 13px; line-height: 1.4; }
.fm-authors__label { margin-bottom: 6px !important; color: var(--fm-muted); font-size: 12px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; }
.fm-authors__text { max-width: 34em; color: var(--fm-text); font-size: 17px; }
.fm-authors__links { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 16px !important; }
.fm-authors__links a {
  display: inline-flex; align-items: center; min-height: 44px; padding: 10px 20px; border: 2px solid var(--fm-black);
  border-radius: 999px; color: var(--fm-black); font-weight: 600; font-size: 15px; text-decoration: none;
}
.fm-authors__links a.is-main { border-color: var(--fm-lilac); background: var(--fm-lilac); }
.fm-authors__links a:hover { text-decoration: underline; text-underline-offset: 3px; }

@media (min-width: 640px) {
  .fm-authors { grid-template-columns: auto 1fr; align-items: center; gap: 32px; padding: 28px 32px; }
}

/* ---------- Udostępnianie ---------- */

.fm-share { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 28px 0 0; }
.fm-share__label { margin-right: 4px; color: var(--fm-muted); font-size: 14px; font-weight: 600; }
.fm-share__link {
  display: inline-flex; align-items: center; min-height: 40px; padding: 8px 14px; border: 1px solid var(--fm-line-soft);
  border-radius: 999px; background: #fff; color: var(--fm-black); font-size: 14px; font-weight: 500; text-decoration: none;
}
.fm-share__link:hover { border-color: var(--fm-pink); color: var(--fm-pink); }

/* ---------- Warto zobaczyć ---------- */

.fm-related { margin-top: clamp(48px, 7vw, 88px); padding: clamp(36px, 5vw, 56px) 0; background: var(--fm-cream); }
.fm-related__title { margin: 0 0 24px; font-size: clamp(26px, 3.4vw, 38px); }

/* ---------- 5. Ujednolicenie typografii (Fraunces + Inter) ---------- */

.fm-agency-article,
.fm-agency-response-article {
  --fm-pink: #b4566b;
  font-family: var(--fm-font-body);
  font-feature-settings: "cv05" 1, "cv08" 1;
}

.fm-agency-article :is(h2, h3, h4),
.fm-agency-response-article :is(h2, h3, h4),
.fm-agency-article .fm-article-bridge__title,
.fm-agency-article .fm-article-bridge__link strong,
.fm-agency-article .fm-booking-nav__title {
  font-family: var(--fm-font-display);
  font-optical-sizing: auto;
  font-weight: 560;
  letter-spacing: -.015em;
}

.fm-agency-article h2,
.fm-agency-response-article > section > h2 {
  font-size: clamp(28px, 3.6vw, 42px);
  line-height: 1.14;
}

.fm-agency-article h3,
.fm-agency-response-article > section > h3 {
  font-size: clamp(22px, 2.5vw, 28px);
  line-height: 1.22;
}

.fm-agency-article .fm-article-bridge__title { font-size: clamp(26px, 3.2vw, 36px); line-height: 1.12; }

/* Linki w treści: różowe w całym serwisie */
.fm-agency-article a:not([class]),
.fm-agency-response-article > section a:not([class]) {
  color: var(--fm-pink);
  text-decoration-line: underline;
  text-decoration-color: rgba(180, 86, 107, .45);
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
}

.fm-agency-article a:not([class]):hover,
.fm-agency-response-article > section a:not([class]):hover {
  color: var(--fm-pink-hover);
  text-decoration-color: currentColor;
}

/* Pola wpisu mają już marginesy z .fm-entry */
.fm-entry > .fm-agency-article,
.fm-entry > .fm-agency-response-article { max-width: none; padding-top: 0; }

/* Glosariusz: dyskretne podkreślenie zamiast zielonego linku */
.fm-entry .glossary-link.glossary-tooltip {
  color: inherit !important;
  text-decoration: none !important;
  background: linear-gradient(to bottom, transparent 82%, rgba(0, 0, 0, .12) 82%);
  cursor: help;
}
.fm-entry .glossary-link.glossary-tooltip:hover {
  background: linear-gradient(to bottom, transparent 78%, rgba(0, 0, 0, .28) 78%);
}

/* =========================================================
   Spis treści (inc/toc.php)
   ========================================================= */
.fm-toc {
  margin: 32px 0 40px; padding: 20px 24px; border: 1px solid var(--fm-line-soft, rgba(23,23,23,.1));
  border-left: 3px solid var(--fm-pink); border-radius: var(--fm-radius-sm, 12px); background: var(--fm-white, #fff);
  font-family: var(--fm-font-body);
}
.fm-toc__title {
  cursor: pointer; list-style: none; display: flex; align-items: baseline; justify-content: space-between; gap: 12px;
  font-family: var(--fm-font-display); font-size: 22px; line-height: 1.2; color: var(--fm-black, #171717);
}
.fm-toc__title::-webkit-details-marker { display: none; }
.fm-toc__title::after { content: "+"; font-family: var(--fm-font-body); font-size: 22px; color: var(--fm-pink); margin-left: auto; }
.fm-toc[open] .fm-toc__title::after { content: "−"; }
.fm-toc__count { font-family: var(--fm-font-body); font-size: 13px; font-weight: 500; color: var(--fm-muted); }
.fm-toc__list {
  margin: 16px 0 0; padding: 0 0 0 1.4em; columns: 2 280px; column-gap: 40px;
  font-size: 15px; line-height: 1.45;
}
.fm-toc__list li { margin: 0 0 8px; break-inside: avoid; padding-left: 2px; }
.fm-toc__list li::marker { color: var(--fm-muted); font-size: 13px; }
.fm-toc__list a { color: var(--fm-text, #303033); text-decoration: none; border-bottom: 1px solid transparent; }
.fm-toc__list a:hover, .fm-toc__list a:focus-visible { color: var(--fm-pink); border-bottom-color: currentColor; }
.fm-entry h2[id] { scroll-margin-top: 24px; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
@media (max-width: 600px) { .fm-toc { padding: 16px 18px; margin: 24px 0 32px; } .fm-toc__title { font-size: 19px; } }

/* =========================================================
   Tabele w artykułach: linie siatki, nagłówek, czytelne odstępy
   ========================================================= */
.fm-entry table {
  width: 100%; margin: 28px 0; border-collapse: collapse; border: 1px solid var(--fm-line-soft, rgba(23,23,23,.12));
  font-family: var(--fm-font-body); font-size: 15px; line-height: 1.45; background: var(--fm-white, #fff);
}
.fm-entry th, .fm-entry td {
  padding: 11px 14px; border: 1px solid var(--fm-line-soft, rgba(23,23,23,.12)); text-align: left; vertical-align: top;
}
.fm-entry thead th {
  background: var(--fm-cream-2, #f8efea); color: var(--fm-black, #171717); font-weight: 600;
  font-size: 13px; letter-spacing: .04em; text-transform: uppercase;
}
.fm-entry tbody tr:nth-child(even) td { background: rgba(248, 239, 234, .35); }
.fm-entry tbody td:first-child { font-weight: 600; color: var(--fm-black, #171717); }
.fm-entry caption { caption-side: bottom; padding-top: 8px; font-size: 13px; color: var(--fm-muted); text-align: left; }
@media (max-width: 600px) {
  /* Szeroką tabelę da się przewinąć palcem w bok, zamiast rozpychać stronę. */
  .fm-entry table { display: block; overflow-x: auto; -webkit-overflow-scrolling: touch; font-size: 14px; }
  .fm-entry th, .fm-entry td { padding: 9px 10px; min-width: 110px; }
}
