/* Strona główna (ekran „Strona główna”). */

@keyframes fmMarquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* 1. Hero */
.fm-hero { background: var(--ink); color: #fff; overflow: hidden; position: relative; }
.fm-hero__in { max-width: var(--max); margin: 0 auto; padding: 72px var(--gut) 64px; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); gap: 40px; align-items: center; position: relative; }
.fm-hero__copy { display: flex; flex-direction: column; gap: 26px; position: relative; z-index: 2; }
.fm-hero__kicker { font-family: var(--mono); font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--sage); line-height: normal; }
.fm-hero__title { margin: 0; font-size: clamp(38px, 4.6vw, 64px); line-height: 1.02; font-weight: 700; letter-spacing: -0.03em; text-wrap: pretty; color: #fff; }
.fm-hero__lead { font-size: 18px; line-height: 1.5; color: var(--on-dark); max-width: 44ch; }
.fm-hero__btns { display: flex; gap: 10px; flex-wrap: wrap; }
.fm-hero__rate { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; padding-top: 6px; }
.fm-hero__rate .fm-stars { font-size: 15px; }
.fm-hero__rv { font-family: var(--mono); font-size: 13px; font-weight: 700; }
.fm-hero__rn { font-family: var(--mono); font-size: 12px; color: var(--muted-2); }
.fm-hero__media { position: relative; min-height: 520px; border-radius: 24px; overflow: hidden; background: var(--tile-dark); }
.fm-hero__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 60% 30%; }
.fm-hero__shade { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(20, 20, 18, 0) 55%, rgba(20, 20, 18, 0.7) 100%); }
.fm-hero__pills { position: absolute; left: 20px; top: 20px; display: flex; flex-direction: column; gap: 8px; align-items: flex-start; }
.fm-hero__pill { border-radius: 100px; padding: 10px 16px; font-family: var(--mono); font-size: 12px; font-weight: 700; line-height: normal; }
.fm-hero__pill.is-white { background: #fff; color: var(--ink); box-shadow: 0 12px 30px rgba(0, 0, 0, 0.25); }
.fm-hero__pill.is-sage { background: var(--sage); color: var(--ink); box-shadow: 0 12px 30px rgba(0, 0, 0, 0.25); }
.fm-hero__pill.is-dark { background: rgba(20, 20, 18, 0.75); color: #fff; border: 1px solid rgba(255, 255, 255, 0.25); }
.fm-hero__card { position: absolute; left: 24px; right: 24px; bottom: 22px; display: flex; justify-content: space-between; align-items: flex-end; gap: 12px; color: #fff; }
.fm-hero__ck { display: flex; flex-direction: column; gap: 4px; }
.fm-hero__ckk { font-family: var(--mono); font-size: 11px; letter-spacing: 0.12em; color: var(--sage); }
.fm-hero__ckt { font-size: 19px; font-weight: 700; letter-spacing: -0.015em; line-height: 1.15; }
.fm-hero__arr { flex: none; width: 48px; height: 48px; border-radius: 50%; background: #fff; color: var(--ink); display: flex; align-items: center; justify-content: center; font-size: 20px; }
.fm-theme .fm-hero__arr:hover { color: var(--red); }

/* 2. Pasek przewijany */
.fm-marquee { background: var(--sage); color: var(--ink); overflow: hidden; border-bottom: 1px solid rgba(20, 20, 18, 0.1); }
.fm-marquee__track { display: flex; width: max-content; animation: fmMarquee 32s linear infinite; padding: 14px 0; font-family: var(--mono); font-size: 12px; font-weight: 700; letter-spacing: 0.14em; white-space: pre; line-height: normal; }

/* 3. Liczby */
.fm-stats { padding-top: 72px; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, max(200px, (100% - 84px) / 4)), 1fr)); gap: 28px; }
.fm-stat { display: flex; flex-direction: column; gap: 6px; border-top: 2px solid var(--ink); padding-top: 18px; }
.fm-stat__v { font-size: clamp(32px, 3.4vw, 44px); font-weight: 700; letter-spacing: -0.03em; line-height: 1; }
.fm-stat__l { font-family: var(--mono); font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); line-height: normal; }

/* 4. Kategorie */
.fm-cats__grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); grid-auto-rows: 250px; gap: 14px; }
.fm-ctile { border-radius: 20px; overflow: hidden; position: relative; background: var(--ink); transition: transform 200ms; display: block; }
.fm-ctile:hover { transform: translateY(-3px); }
.fm-ctile.is-big { grid-column: span 2; grid-row: span 2; }
.fm-ctile img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 50%; }
.fm-ctile.is-big img { object-position: 50% 40%; }
.fm-ctile__shade { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(20, 20, 18, 0.05) 35%, rgba(20, 20, 18, 0.88) 100%); }
.fm-ctile__arr { position: absolute; top: 16px; right: 16px; width: 36px; height: 36px; border-radius: 50%; background: rgba(255, 255, 255, 0.92); color: var(--ink); display: flex; align-items: center; justify-content: center; font-size: 15px; }
.fm-ctile.is-big .fm-ctile__arr { top: 20px; right: 20px; width: 44px; height: 44px; background: #fff; font-size: 18px; }
.fm-ctile__name { position: absolute; left: 22px; right: 22px; bottom: 20px; color: #fff; font-size: 19px; font-weight: 700; letter-spacing: -0.015em; line-height: 1.15; text-wrap: pretty; }
.fm-ctile.is-big .fm-ctile__name { left: 28px; right: 28px; bottom: 26px; font-size: 30px; letter-spacing: -0.025em; line-height: 1.05; }

/* 6. Jak to działa */
.fm-how { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); gap: 14px; }
.fm-how__i { background: #fff; border-radius: 16px; padding: 22px 24px; display: flex; gap: 18px; align-items: flex-start; }
.fm-how__no { font-family: var(--mono); font-size: 22px; font-weight: 700; color: var(--sage-ink); line-height: 1; letter-spacing: -0.02em; flex: none; padding-top: 2px; }
.fm-how__c { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.fm-how__t { font-size: 18px; font-weight: 700; line-height: 1.2; letter-spacing: -0.015em; }
.fm-how__d { font-size: 14px; line-height: 1.5; color: var(--muted); }

/* 7. Dla kogo */
.fm-persona { margin-top: 88px; background: var(--ink); color: #fff; }
.fm-persona__in { max-width: var(--max); margin: 0 auto; padding: 80px var(--gut); display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: 56px; align-items: center; }
.fm-persona__img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 20px; display: block; }
.fm-persona__c { display: flex; flex-direction: column; gap: 32px; }
.fm-persona__list { display: flex; flex-direction: column; }
.fm-persona__row { padding: 20px 0; display: flex; gap: 18px; align-items: center; border-top: 1px solid rgba(255, 255, 255, 0.14); font-size: 16px; line-height: 1.45; text-wrap: pretty; }
.fm-persona__no { font-family: var(--mono); font-size: 12px; color: var(--sage); flex: none; width: 28px; }
.fm-persona .fm-btn { width: fit-content; }

/* 9. Blog (ciemne karty) */
.fm-blogdark { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); gap: 14px; }
.fm-bdark { border-radius: 20px; overflow: hidden; display: flex; flex-direction: column; position: relative; min-height: 360px; background: var(--ink); color: #fff; transition: transform 200ms; }
.fm-theme .fm-bdark, .fm-theme .fm-bdark:hover { color: #fff; }
.fm-bdark:hover { transform: translateY(-4px); }
.fm-bdark img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0.75; }
.fm-bdark__shade { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(20, 20, 18, 0.1) 30%, rgba(20, 20, 18, 0.9) 100%); }
.fm-bdark__c { position: relative; margin-top: auto; padding: 26px; display: flex; flex-direction: column; gap: 10px; }
.fm-bdark__k { font-family: var(--mono); font-size: 11px; letter-spacing: 0.12em; color: var(--sage); text-transform: uppercase; }
.fm-bdark__t { font-size: 20px; font-weight: 700; line-height: 1.15; letter-spacing: -0.015em; text-wrap: pretty; }

/* 10. Newsletter */
.fm-nl { background: var(--sage); border-radius: 24px; padding: 56px 40px; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: 32px; align-items: center; }
.fm-nl__c { display: flex; flex-direction: column; gap: 12px; }
.fm-nl__c p { font-size: 16px; line-height: 1.55; color: var(--sage-deep); }
