/*
Theme Name: FotoMeta
Theme URI: https://fotometa.pl
Author: ASODIUMART Michał Breszka
Description: Motyw serwisu FotoMeta.pl – zdjęcia z wydarzeń sportowych i eventów. Twoje emocje. Nasze kadry.
Version: 0.9.66
Requires PHP: 8.0
Text Domain: fotometa
*/

:root {
	--fm-orange: #FF7A00;
	--fm-orange-light: #FFA04D;
	--fm-orange-dark: #A84E00;
	--fm-silver: #C9CDD3;
	--fm-graphite: #4A4F55;
	--fm-black: #0B0D10;
	--fm-ink: #F2F3F5;
	--fm-text: #E6E8EB;
	--fm-muted: #AEB3BA;
	--fm-quiet: #9AA0A8;
	--fm-panel: #14171C;
	--fm-panel-2: #101317;
	--fm-photo: #15181D;
	--fm-line: #22262C;
	--fm-field: #3A3F46;
	--fm-paper: #F4F4F1;
	--fm-wrap: 1240px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
	margin: 0;
	background: var(--fm-black);
	color: var(--fm-text);
	font-family: Montserrat, system-ui, -apple-system, sans-serif;
	font-size: 16px;
	line-height: 1.5;
	overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--fm-orange); }
a:hover { color: var(--fm-orange-light); }
:focus-visible { outline: 3px solid var(--fm-orange); outline-offset: 3px; }
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link:focus { position: fixed; top: 8px; left: 8px; z-index: 1000; width: auto; height: auto; clip: auto; padding: 10px 16px; background: var(--fm-orange); color: var(--fm-black); font-weight: 800; }

.wrap { max-width: var(--fm-wrap); margin: 0 auto; padding: 0 24px; }

/* Typografia */
.display {
	margin: 0;
	font-weight: 900;
	font-style: italic;
	text-transform: uppercase;
	letter-spacing: -0.03em;
	line-height: 1.08; /* polskie znaki: ogonek „Ę/Ą” i kropka „Ż” nie mogą nachodzić na sąsiednią linię */
	color: var(--fm-ink);
}
.display-xl { font-size: clamp(44px, 6.4vw, 92px); }
.display-lg { font-size: clamp(38px, 5vw, 72px); }
.display-md { font-size: clamp(32px, 4vw, 52px); }
@media (max-width: 520px) { .display-md { font-size: clamp(22px, 7vw, 32px); } } /* telefon: „Profil i prywatność” w jednej linii */
.display-sm { font-size: clamp(24px, 2.6vw, 32px); }
.accent { color: var(--fm-orange); }
.eyebrow { margin: 0; font-size: 13px; font-weight: 800; font-style: italic; letter-spacing: 6px; color: var(--fm-quiet); text-transform: uppercase; }
.kicker { margin: 0; font-size: 12px; font-weight: 800; letter-spacing: 3px; color: var(--fm-orange); text-transform: uppercase; }
.label { font-size: 12px; font-weight: 800; letter-spacing: 2px; color: var(--fm-quiet); text-transform: uppercase; }
.lead { margin: 0; max-width: 520px; font-size: 18px; line-height: 1.6; color: var(--fm-muted); }
.muted { color: var(--fm-quiet); }

/* Przyciski */
.btn {
	display: inline-flex; align-items: center; justify-content: center; gap: 10px;
	min-height: 52px; padding: 0 24px;
	border: 0; border-radius: 6px;
	font: inherit; font-size: 16px; font-weight: 800;
	text-decoration: none; cursor: pointer;
}
.btn-primary { background: var(--fm-orange); color: var(--fm-black); font-weight: 900; font-style: italic; text-transform: uppercase; }
.btn-primary:hover { background: var(--fm-orange-light); color: var(--fm-black); }
.btn-dark { background: var(--fm-black); color: var(--fm-ink); font-weight: 900; font-style: italic; text-transform: uppercase; }
.btn-dark:hover { color: var(--fm-orange); }
.btn-outline { background: transparent; border: 2px solid var(--fm-orange); color: var(--fm-orange); font-weight: 900; font-style: italic; text-transform: uppercase; }
.btn-ghost { background: transparent; border: 1px solid var(--fm-graphite); color: var(--fm-ink); }
.btn-ghost:hover { border-color: var(--fm-orange); color: var(--fm-ink); }
.btn-block { width: 100%; }

/* Ukośne pasy (element marki) */
.has-bars { position: relative; overflow: hidden; }
.bar { position: absolute; transform: skewX(-28deg); pointer-events: none; }
.bar-orange { background: var(--fm-orange); }
.bar-graphite { background: var(--fm-graphite); }

/* Nagłówek */
.site-header { position: relative; z-index: 5; border-bottom: 1px solid var(--fm-line); background: var(--fm-black); }
.site-header .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px 32px; padding-top: 18px; padding-bottom: 18px; }
.brand { display: inline-flex; align-items: center; }
.brand img { height: 38px; width: auto; }
.main-nav ul { margin: 0; padding: 0; list-style: none; display: flex; flex-wrap: wrap; gap: 8px 30px; }
.main-nav a { color: var(--fm-silver); text-decoration: none; font-size: 14px; font-weight: 700; }
.main-nav a:hover, .main-nav a[aria-current="page"] { color: var(--fm-orange); }
.header-account { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; color: var(--fm-ink); font-size: 14px; font-weight: 700; text-decoration: none; }
.header-account .ha-krotki { display: none; }
.header-account .avatar-dot { display: inline-flex; width: 34px; height: 34px; align-items: center; justify-content: center; border-radius: 999px; border: 1.5px solid var(--fm-graphite); }
/* Licznik pobranych zdjęć – róg sekcji głównej */
.hero-licznik { position: absolute; top: 18px; right: 24px; z-index: 3; margin: 0; display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 999px; background: rgba(11,13,16,.78); border: 1px solid rgba(255,122,0,.55); color: var(--fm-silver); font-size: 13px; font-weight: 700; backdrop-filter: blur(4px); }
.hero-licznik svg { color: var(--fm-orange); }
.hero-licznik b { color: var(--fm-orange); font-size: 15px; font-weight: 900; white-space: nowrap; }
@media (max-width: 860px) { .hero-licznik { position: static; margin: 14px 16px 0; font-size: 12px; } }
/* Dzwoneczek – powiadomienia dla zalogowanych */
.fm-dzwonek { position: relative; margin-left: auto; }
.fm-dzwonek summary { list-style: none; position: relative; display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: 999px; border: 1.5px solid var(--fm-graphite); color: var(--fm-silver); cursor: pointer; }
.fm-dzwonek summary::-webkit-details-marker { display: none; }
.fm-dzwonek summary:hover, .fm-dzwonek[open] summary { color: var(--fm-orange); border-color: var(--fm-orange); }
.fm-dzwonek summary:focus-visible { outline: 3px solid var(--fm-orange); outline-offset: 2px; }
.fm-dzwonek-licznik { position: absolute; top: -4px; right: -4px; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 999px; background: var(--fm-orange); color: #0B0D10; font-size: 11px; font-weight: 900; line-height: 20px; text-align: center; }
.fm-dzwonek-lista { position: absolute; right: 0; top: calc(100% + 10px); z-index: 60; width: min(360px, calc(100vw - 32px)); max-height: 70vh; overflow: auto; background: #14171C; border: 1px solid #2A2F36; border-radius: 12px; box-shadow: 0 18px 40px rgba(0,0,0,.45); padding: 8px; }
.fm-dzwonek-tyt { margin: 6px 10px 8px; font-size: 12px; font-weight: 800; letter-spacing: 1.5px; text-transform: uppercase; color: var(--fm-silver); }
.fm-dzwonek-pusto { margin: 8px 10px 12px; font-size: 14px; color: var(--fm-silver); }
.fm-dzwonek-poz { display: flex; flex-direction: column; gap: 3px; padding: 10px; border-radius: 8px; color: var(--fm-ink); text-decoration: none; border-left: 3px solid transparent; }
.fm-dzwonek-poz:hover { background: rgba(255,255,255,.05); }
.fm-dzwonek-poz.is-nowe { border-left-color: var(--fm-orange); background: rgba(255,122,0,.07); }
.fm-dzwonek-poz b { font-size: 14px; }
.fm-dzwonek-poz span { font-size: 13px; color: var(--fm-silver); }
.fm-dzwonek-poz small { font-size: 11px; color: #8A9098; }
.fm-dzwonek + .header-account { margin-left: 0; }
/* Telefon / tablet: menu chowane pod przyciskiem ☰ (logo · konto · ☰ w jednym wierszu). */
.nav-toggle { display: none; }
@media (max-width: 860px) {
	.site-header .wrap { flex-wrap: wrap; gap: 0 12px; padding-top: 12px; padding-bottom: 12px; }
	.brand img { height: 32px; }
	.header-account { order: 2; margin-left: auto; flex-direction: column; gap: 2px; font-size: 10px; font-weight: 800; letter-spacing: .5px; text-transform: uppercase; color: var(--fm-silver); }
	.header-account .ha-dlugi { display: none; }
	.header-account .ha-krotki { display: inline; line-height: 1; }
	.fm-dzwonek { order: 2; margin-left: auto; }
	.fm-dzwonek + .header-account { margin-left: 8px; }
	.fm-dzwonek summary { width: 40px; height: 40px; }
	/* Telefon: lista na całą szerokość ekranu, pod nagłówkiem (dzwoneczek nie stoi przy krawędzi). */
	.fm-dzwonek { position: static; }
	.fm-dzwonek-lista { position: fixed; left: 12px; right: 12px; top: var(--fm-dzw-top, 72px); width: auto; max-height: calc(100vh - var(--fm-dzw-top, 72px) - 16px); }
	.header-account .avatar-dot { width: 34px; height: 34px; }
	.nav-toggle { order: 3; display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; padding: 0; background: transparent; border: 1.5px solid var(--fm-graphite); border-radius: 10px; color: var(--fm-ink); cursor: pointer; }
	.nav-toggle-ico { display: flex; flex-direction: column; gap: 5px; width: 20px; }
	.nav-toggle-ico i { display: block; height: 2px; background: currentColor; border-radius: 2px; transition: transform .2s, opacity .2s; }
	.site-header.is-open .nav-toggle-ico i:nth-child(1) { transform: translateY(7px) rotate(45deg); }
	.site-header.is-open .nav-toggle-ico i:nth-child(2) { opacity: 0; }
	.site-header.is-open .nav-toggle-ico i:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
	.main-nav { display: none; order: 9; flex: 1 1 100%; }
	.site-header.is-open .main-nav { display: block; }
	.main-nav ul { flex-direction: column; gap: 0; padding: 10px 0 4px; }
	.main-nav li { border-top: 1px solid var(--fm-line); }
	.main-nav a { display: block; padding: 14px 2px; font-size: 17px; }
}

/* Formularze */
.field { display: flex; flex-direction: column; gap: 6px; }
.field label, .field .label, legend.label { font-size: 12px; font-weight: 800; letter-spacing: 2px; color: var(--fm-quiet); text-transform: uppercase; }
.input, .field input, .field select, .field textarea {
	width: 100%; min-height: 52px; padding: 0 14px;
	background: var(--fm-panel); border: 1px solid var(--fm-field); border-radius: 6px;
	color: var(--fm-ink); font: inherit; font-size: 16px;
}
.field textarea { padding: 12px 14px; min-height: 120px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--fm-orange); outline: none; }
.check { display: flex; gap: 12px; align-items: flex-start; font-size: 14px; line-height: 1.55; color: var(--fm-silver); cursor: pointer; }
.check input { accent-color: var(--fm-orange); width: 20px; height: 20px; flex: none; margin: 1px 0 0; }
/* Siatka formularzy: te same kolumny w każdym wierszu, pola w jednej linii (także gdy etykieta zawija się na 2 wiersze). */
.form-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 220px), 1fr)); gap: 14px 16px; align-items: end; }
.form-grid > .field { min-width: 0; }
.form-grid > .btn { align-self: end; }
fieldset.fm-sekcja { margin: 0; padding: 18px 0 0; border: 0; border-top: 1px solid var(--fm-line); display: flex; flex-direction: column; gap: 14px; }
fieldset.fm-sekcja > legend { padding: 0 10px 0 0; font-size: 13px; font-weight: 900; letter-spacing: 2px; text-transform: uppercase; color: var(--fm-orange); }
.hp { position: absolute; left: -9999px; }
.form-card { padding: 32px; background: var(--fm-panel); border-top: 6px solid var(--fm-orange); display: flex; flex-direction: column; gap: 18px; }
.notice-ok { position: relative; padding: 22px 24px 22px 30px; background: var(--fm-paper); color: var(--fm-black); font-weight: 600; }
.notice-ok::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 6px; background: var(--fm-orange); }
.notice-ok strong { display: block; font-size: 22px; font-weight: 900; font-style: italic; text-transform: uppercase; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { display: inline-flex; align-items: center; min-height: 40px; padding: 0 16px; border: 1px solid var(--fm-field); border-radius: 999px; color: var(--fm-silver); font-size: 14px; font-weight: 700; text-decoration: none; }
.chip.is-active, .chip:hover { background: var(--fm-orange); border-color: var(--fm-orange); color: var(--fm-black); }
.tabs-line { display: flex; flex-wrap: wrap; gap: 4px 24px; border-bottom: 1px solid var(--fm-line); }
.tabs-line a { min-height: 48px; display: inline-flex; align-items: center; margin-bottom: -1px; border-bottom: 3px solid transparent; color: var(--fm-quiet); font-size: 15px; font-weight: 700; text-decoration: none; }
.tabs-line a.is-active, .tabs-line a:hover { color: var(--fm-ink); border-bottom-color: var(--fm-orange); }

/* Numer startowy */
.bib {
	position: relative; padding: 16px 26px 14px; background: var(--fm-paper); color: var(--fm-black);
	border-radius: 6px; box-shadow: 0 18px 40px rgba(0,0,0,.45); transform: rotate(-1.5deg);
	display: flex; flex-direction: column; gap: 2px;
}
.bib::before { content: ""; height: 6px; margin: -16px -26px 8px; background: var(--fm-orange); border-radius: 6px 6px 0 0; }
.bib .pin { position: absolute; width: 9px; height: 9px; border-radius: 999px; background: var(--fm-black); opacity: .85; }
.bib .pin-tl { top: 12px; left: 10px; } .bib .pin-tr { top: 12px; right: 10px; }
.bib .pin-bl { bottom: 9px; left: 10px; } .bib .pin-br { bottom: 9px; right: 10px; }
.bib label { font-size: 11px; font-weight: 800; letter-spacing: 3px; color: var(--fm-graphite); }
.bib input { width: 100%; padding: 0; border: 0; background: transparent; color: var(--fm-black); font-family: inherit; font-size: 60px; line-height: 1.05; font-weight: 900; letter-spacing: 2px; }
.bib input:focus { outline: none; }
.bib small { font-size: 11px; font-weight: 600; color: var(--fm-graphite); }

/* Ramka wizjera i zdjęcia */
.photo { position: relative; background: var(--fm-photo); border-radius: 4px; overflow: hidden; }
.photo img.cover { width: 100%; height: 100%; object-fit: cover; }
.corner { position: absolute; width: 18px; height: 18px; border-color: var(--fm-graphite); border-style: solid; border-width: 0; }
.corner-tl { top: 12px; left: 12px; border-top-width: 2px; border-left-width: 2px; }
.corner-tr { top: 12px; right: 12px; border-top-width: 2px; border-right-width: 2px; }
.corner-bl { bottom: 12px; left: 12px; border-bottom-width: 2px; border-left-width: 2px; }
.corner-br { bottom: 12px; right: 12px; border-bottom-width: 2px; border-right-width: 2px; }
.photo-label { position: absolute; left: 0; right: 0; top: 46%; margin: 0; text-align: center; font-size: 11px; font-weight: 700; letter-spacing: 2px; color: var(--fm-graphite); }
.watermark { position: absolute; left: 50%; top: 50%; width: 72%; transform: translate(-50%, -50%); opacity: .32; filter: grayscale(1); pointer-events: none; }
.date-badge { position: absolute; left: 0; top: 0; padding: 10px 14px; background: var(--fm-black); display: flex; flex-direction: column; align-items: center; line-height: 1; }
.date-badge b { font-size: 24px; font-weight: 900; font-style: italic; color: var(--fm-ink); }
.date-badge span { font-size: 11px; font-weight: 800; letter-spacing: 1.5px; color: var(--fm-orange); text-transform: uppercase; }
.status { position: absolute; right: 0; bottom: 0; padding: 6px 12px; font-size: 12px; font-weight: 800; text-transform: uppercase; }
.status-opublikowane { background: var(--fm-orange); color: var(--fm-black); }
.status-wkrotce { background: var(--fm-black); color: var(--fm-orange); }
.status-przygotowanie { background: var(--fm-black); color: var(--fm-silver); }
.status-free { background: var(--fm-paper); color: var(--fm-black); }

/* Karty wydarzeń */
.event-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); gap: 40px 24px; }
.event-card { display: flex; flex-direction: column; gap: 14px; color: inherit; text-decoration: none; }
.event-card .photo { aspect-ratio: 4 / 3; }
.event-card .meta { display: flex; flex-direction: column; gap: 4px; }
.event-card h3 { margin: 0; font-size: 20px; font-weight: 800; font-style: italic; color: var(--fm-ink); }
.event-card:hover h3 { color: var(--fm-orange); }
.event-card p { margin: 0; font-size: 14px; color: var(--fm-quiet); }

/* Sekcje */
.section { padding: 88px 0; }
.section-light { background: var(--fm-paper); color: var(--fm-black); }
.section-light .display { color: var(--fm-black); }
.section-orange { background: var(--fm-orange); color: var(--fm-black); }
.section-orange .display { color: var(--fm-black); }
.section-panel { background: var(--fm-panel-2); border-top: 1px solid var(--fm-line); border-bottom: 1px solid var(--fm-line); }
.split { display: flex; flex-wrap: wrap; gap: 48px; align-items: flex-start; }
.split > * { min-width: 0; }

.steps { margin: 0; padding: 0; list-style: none; display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 32px; }
.steps li { display: flex; flex-direction: column; gap: 12px; padding-top: 18px; border-top: 3px solid currentColor; }
.steps .nr { font-size: 54px; line-height: 1; font-weight: 900; font-style: italic; color: var(--fm-orange); }
.steps h3 { margin: 0; font-size: 19px; font-weight: 800; }
.steps p { margin: 0; font-size: 15px; line-height: 1.6; opacity: .8; }

.model-row { padding: 22px 0; border-top: 2px solid var(--fm-black); display: flex; gap: 20px; align-items: baseline; }
.model-row:last-child { border-bottom: 2px solid var(--fm-black); }
.model-row .letter { font-size: 40px; line-height: 1; font-weight: 900; font-style: italic; }
.model-row h3 { margin: 0 0 4px; font-size: 20px; font-weight: 800; }
.model-row p { margin: 0; font-size: 15px; line-height: 1.6; font-weight: 500; }

/* Strona główna */
.hero .wrap { position: relative; padding-top: 48px; padding-bottom: 88px; display: flex; flex-wrap: wrap; align-items: center; gap: 56px; }
.hero-copy { flex: 1 1 520px; display: flex; flex-direction: column; gap: 26px; min-width: 0; }
.hero-visual { flex: 1 1 440px; position: relative; padding: 0 0 40px 30px; min-width: 0; }
.hero-visual .photo { aspect-ratio: 4 / 5; }
.hero-visual .corner { width: 30px; height: 30px; border-color: var(--fm-silver); top: auto; }
.hero-visual .corner-tl, .hero-visual .corner-tr { top: 18px; } .hero-visual .corner-bl, .hero-visual .corner-br { bottom: 18px; }
.hero-visual .corner-tl, .hero-visual .corner-bl { left: 18px; } .hero-visual .corner-tr, .hero-visual .corner-br { right: 18px; }
.focus-box { position: absolute; top: 38%; left: 46%; width: 54px; height: 54px; border: 2px solid var(--fm-orange); }
.recognized { position: absolute; left: 0; bottom: 0; padding: 16px 20px; background: var(--fm-black); border-left: 4px solid var(--fm-orange); box-shadow: 0 16px 36px rgba(0,0,0,.5); display: flex; flex-direction: column; gap: 2px; }
.recognized b { font-size: 30px; font-weight: 900; font-style: italic; color: var(--fm-ink); line-height: 1; }
.search-row { display: flex; flex-wrap: wrap; align-items: stretch; gap: 14px; }
.search-row .bib { flex: 0 1 300px; min-width: 240px; }
.search-side { flex: 1 1 240px; display: flex; flex-direction: column; justify-content: space-between; gap: 12px; }

/* Strony treści */
.page-hero .wrap { position: relative; padding-top: 48px; padding-bottom: 40px; display: flex; flex-direction: column; gap: 12px; }
.content-paper { background: var(--fm-paper); color: #22262C; }
.content-paper .wrap { padding-top: 56px; padding-bottom: 80px; }
.prose { max-width: 760px; font-size: 16px; line-height: 1.75; }
.prose h2 { margin: 2em 0 .5em; font-size: 26px; line-height: 1.1; font-weight: 900; font-style: italic; text-transform: uppercase; color: var(--fm-black); }
.prose h2:first-child { margin-top: 0; }
.prose a { color: var(--fm-orange-dark); }
.prose table { width: 100%; border-collapse: collapse; font-size: 14px; line-height: 1.5; display: block; overflow-x: auto; }
.prose th { text-align: left; padding: 10px 12px 10px 0; border-bottom: 2px solid var(--fm-black); }
.prose td { padding: 12px 12px 12px 0; border-bottom: 1px solid var(--fm-silver); vertical-align: top; }
.prose details { border-top: 1px solid var(--fm-silver); }
.prose details:last-of-type { border-bottom: 1px solid var(--fm-silver); }
.prose summary { min-height: 64px; padding: 16px 48px 16px 0; position: relative; display: flex; align-items: center; font-size: 18px; font-weight: 800; color: var(--fm-black); cursor: pointer; list-style: none; }
.prose summary::-webkit-details-marker { display: none; }
.prose summary::after { content: "+"; position: absolute; right: 0; width: 34px; height: 34px; display: inline-flex; align-items: center; justify-content: center; background: var(--fm-black); color: var(--fm-ink); font-size: 22px; font-weight: 800; }
.prose details[open] summary::after { content: "–"; background: var(--fm-orange); color: var(--fm-black); }
.prose details p { margin: 0 0 20px; padding-right: 48px; color: #3A3F46; }

/* Wydarzenie */
.event-hero .wrap { position: relative; padding-top: 32px; padding-bottom: 44px; display: flex; flex-direction: column; gap: 14px; }
.crumbs { font-size: 13px; font-weight: 600; color: var(--fm-quiet); display: flex; gap: 8px; flex-wrap: wrap; }
.crumbs a { color: var(--fm-silver); text-decoration: none; }
.free-banner { align-self: flex-start; display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; padding: 14px 20px; background: var(--fm-paper); color: var(--fm-black); font-weight: 600; }
.free-banner strong { font-weight: 900; font-style: italic; text-transform: uppercase; }
.panel { padding: 28px; background: var(--fm-panel); }
.panel-top { border-top: 6px solid var(--fm-orange); }
.paper-card { position: relative; padding: 28px 26px; background: var(--fm-paper); color: var(--fm-black); display: flex; flex-direction: column; gap: 14px; }
.paper-card::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 6px; background: var(--fm-orange); }
/* Nagłówki na jasnej karcie: ciemne (.display ma kolor tekstu ciemnego tła). */
.paper-card .display, .paper-card h2, .paper-card h3 { color: var(--fm-black); }
.points { margin: 0; padding: 0; list-style: none; }
.points li { display: flex; gap: 14px; align-items: baseline; padding: 10px 0; border-top: 2px solid var(--fm-black); font-weight: 800; }
.points li:last-child { border-bottom: 2px solid var(--fm-black); }
.points .nr { font-size: 22px; font-weight: 900; font-style: italic; color: #C25A00; }
.photo-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 14px; }
.photo-grid .photo { aspect-ratio: 3 / 2; }
@media (max-width: 640px) { .photo-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; } }
.photo-tag { position: absolute; left: 0; bottom: 0; padding: 5px 10px; background: var(--fm-black); font-size: 11px; font-weight: 800; letter-spacing: 1px; color: var(--fm-silver); text-transform: uppercase; }

/* Stopka */
.site-footer { border-top: 1px solid var(--fm-line); }
.event-foto { display: flex; align-items: center; gap: 8px; margin: 0; font-size: 14px; font-weight: 700; color: var(--fm-silver); }
.event-foto svg { color: var(--fm-orange); flex: 0 0 auto; }
.footer-social { display: flex; flex-wrap: wrap; gap: 10px; }
.footer-social a { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 14px; border: 1.5px solid var(--fm-graphite); border-radius: 999px; color: var(--fm-ink); text-decoration: none; font-weight: 700; font-size: 14px; }
.footer-social a:hover { border-color: var(--fm-orange); color: var(--fm-orange); }
.site-footer .wrap { padding-top: 48px; padding-bottom: 32px; display: flex; flex-direction: column; gap: 36px; }
.footer-cols { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 32px; }
.footer-cols ul { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 10px; font-size: 14px; font-weight: 500; }
.footer-cols a { color: var(--fm-silver); text-decoration: none; }
.footer-cols a:hover { color: var(--fm-orange); }
.footer-brand { flex: 1 1 280px; display: flex; flex-direction: column; gap: 10px; }
.footer-brand img { height: 38px; width: auto; align-self: flex-start; }
.footer-brand p { margin: 0; font-size: 14px; color: var(--fm-quiet); }
.footer-kontakt { display: flex; flex-wrap: wrap; gap: 2px 6px; }
.footer-etykieta { color: var(--fm-orange); font-weight: 700; }
@media (max-width: 520px) { .footer-brand .eyebrow { font-size: 11px; letter-spacing: 3px; white-space: nowrap; } }
.footer-kontakt a { color: var(--fm-silver); text-decoration: none; }
.footer-kontakt a:hover { color: var(--fm-orange); }
.footer-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 24px; padding-top: 20px; border-top: 1px solid var(--fm-line); font-size: 13px; color: var(--fm-quiet); }
.footer-bar p { margin: 0; }
.copyright { color: var(--fm-quiet); }
.footer-ids { color: var(--fm-silver); font-variant-numeric: tabular-nums; }
.footer-bar-links { display: flex; flex-wrap: wrap; gap: 8px 20px; margin-left: auto; }
.footer-bar-links a { color: var(--fm-silver); text-decoration: none; font-weight: 600; }
.footer-bar-links a:hover { color: var(--fm-orange); }
@media (max-width: 900px) {
	.footer-bar { flex-direction: column; align-items: flex-start; gap: 8px; }
	.footer-bar-links { margin-left: 0; gap: 8px 20px; }
}

/* Strona w budowie */
body.maint { min-height: 100vh; min-height: 100svh; display: flex; flex-direction: column; overflow-x: hidden; overflow-y: auto; }
.maint main { position: relative; flex: 1; display: flex; flex-direction: column; justify-content: center; gap: 26px; padding-top: 24px; padding-bottom: 64px; }
.maint-head { position: relative; width: 100%; padding-top: 28px; padding-bottom: 28px; }
.maint-logo { display: block; height: 52px; width: auto; max-width: 100%; }
.maint-title { margin: 0; max-width: 820px; font-size: clamp(36px, 10.5vw, 108px); overflow-wrap: anywhere; }
.maint-row { display: flex; flex-wrap: wrap; align-items: center; gap: 20px 28px; margin-top: 6px; }
.maint-bib { flex: 0 0 auto; transform: rotate(-2deg); }
.maint-date { font-size: 40px; line-height: 1; font-weight: 900; }
.maint-form { flex: 1 1 380px; max-width: 560px; display: flex; flex-direction: column; gap: 8px; margin: 0; }
.maint-fields { display: flex; flex-wrap: wrap; gap: 8px; }
.maint-fields .input { flex: 1 1 220px; width: auto; min-width: 0; }
.maint-ok { margin: 0; }
@media (max-width: 600px) {
	.maint-head { padding-top: 20px; padding-bottom: 8px; }
	.maint-logo { height: 42px; }
	.maint main { justify-content: flex-start; gap: 20px; padding-top: 16px; padding-bottom: 40px; }
	.maint .lead { font-size: 16px; }
	.maint-row { flex-direction: column; align-items: stretch; gap: 24px; }
	.maint-bib { align-self: flex-start; min-width: 0; max-width: 100%; transform: rotate(-1.5deg); }
	.maint-date { font-size: 34px; }
	.maint-form { flex: none; max-width: none; }
	.maint-fields { flex-direction: column; }
	.maint-fields .input, .maint-fields .btn { flex: none; width: 100%; }
}

@media (max-width: 640px) {
	.section { padding: 64px 0; }
	.hero .wrap { padding-top: 32px; }
	.bib input { font-size: 48px; }
	.form-card, .panel { padding: 22px; }
	.bar { display: none; }
}

/* =========================================================================
 * Konta i panele
 * ====================================================================== */
.fm-form { display: flex; flex-direction: column; gap: 18px; }
.fm-alert { margin: 0 0 20px; padding: 14px 18px; border-left: 6px solid var(--fm-orange); background: var(--fm-paper); color: var(--fm-black); font-weight: 600; }
.fm-alert-blad { border-left-color: #E5484D; background: #FBEAEA; }
.fm-alert ul { margin: 6px 0 0; padding-left: 18px; font-weight: 500; font-size: 14px; }
.fm-panel-page { padding: 40px 0 88px; }
.fm-panel { display: flex; gap: 40px; align-items: flex-start; }
.fm-panel-nav { flex: 0 0 240px; position: sticky; top: 96px; display: flex; flex-direction: column; gap: 2px; padding: 24px 0; border-top: 6px solid var(--fm-orange); background: var(--fm-panel); }
.fm-panel-nav a { padding: 11px 24px; color: var(--fm-silver); text-decoration: none; font-weight: 700; font-size: 14px; border-left: 4px solid transparent; }
.fm-panel-nav a:hover { color: var(--fm-ink); background: var(--fm-panel-2); }
.fm-panel-nav a[aria-current="page"] { color: var(--fm-ink); border-left-color: var(--fm-orange); background: var(--fm-panel-2); }
.fm-panel-nav .fm-logout { margin-top: 16px; color: var(--fm-quiet); font-weight: 600; }
.fm-role-badge { align-self: flex-start; margin: 0 24px; padding: 4px 10px; background: var(--fm-orange); color: var(--fm-black); font-size: 11px; font-weight: 900; font-style: italic; letter-spacing: 2px; text-transform: uppercase; transform: skewX(-10deg); }
.fm-role-fm_fotograf { background: var(--fm-silver); }
.fm-role-admin { background: var(--fm-ink); }
.fm-panel-user { margin: 10px 24px 16px; font-weight: 800; color: var(--fm-ink); }
.fm-panel-main { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: 28px; }
.fm-panel-main h1 { margin: 0; }
.fm-head { display: flex; flex-wrap: wrap; gap: 16px; justify-content: space-between; align-items: center; }
.fm-list { display: flex; flex-direction: column; gap: 10px; }
.fm-row { display: flex; flex-wrap: wrap; gap: 16px; align-items: center; padding: 20px 24px; background: var(--fm-panel); }
.fm-row h3 { margin: 4px 0 2px; font-size: 18px; color: var(--fm-ink); }
.fm-row p { margin: 0; font-size: 14px; }
.fm-row form { margin: 0; }
.fm-badge { padding: 5px 12px; font-size: 11px; font-weight: 800; letter-spacing: 1.5px; text-transform: uppercase; border: 1px solid var(--fm-graphite); color: var(--fm-silver); }
.fm-badge-orange { border-color: var(--fm-orange); color: var(--fm-orange); }
.fm-model { display: inline-grid; place-items: center; width: 40px; height: 40px; flex: none; font-weight: 900; font-style: italic; font-size: 20px; background: var(--fm-orange); color: var(--fm-black); }
.fm-model-B { background: var(--fm-silver); }
.fm-model-C { background: transparent; border: 2px solid var(--fm-orange); color: var(--fm-orange); }
.fm-model-D { background: var(--fm-graphite); color: var(--fm-ink); }
.fm-models, .fm-c-extras { margin: 0; padding: 0; border: 0; display: flex; flex-direction: column; gap: 10px; }
.fm-models legend, .fm-c-extras legend { margin-bottom: 10px; }
.fm-model-option { display: flex; gap: 14px; align-items: center; padding: 14px 16px; border: 1px solid var(--fm-field); cursor: pointer; color: var(--fm-silver); font-size: 14px; }
.fm-model-option input { accent-color: var(--fm-orange); width: 18px; height: 18px; }
.fm-model-option:has(input:checked) { border-color: var(--fm-orange); background: var(--fm-panel-2); }
.fm-model-option strong { color: var(--fm-ink); }
.fm-empty { position: relative; display: flex; flex-direction: column; align-items: flex-start; gap: 14px; padding: 40px; background: var(--fm-panel); }
.fm-empty h2 { margin: 0; }
.fm-empty p { margin: 0; max-width: 520px; color: var(--fm-muted); line-height: 1.6; }
.fm-empty-mark { position: relative; width: 84px; height: 84px; display: grid; place-items: center; }
.fm-empty-mark b { font-size: 26px; font-weight: 900; font-style: italic; color: var(--fm-orange); }
.fm-empty-mark .corner { position: absolute; width: 16px; height: 16px; border-color: var(--fm-silver); border-style: solid; border-width: 0; }
.fm-empty-mark .corner-tl { top: 0; left: 0; border-top-width: 3px; border-left-width: 3px; }
.fm-empty-mark .corner-tr { top: 0; right: 0; border-top-width: 3px; border-right-width: 3px; }
.fm-empty-mark .corner-bl { bottom: 0; left: 0; border-bottom-width: 3px; border-left-width: 3px; }
.fm-empty-mark .corner-br { bottom: 0; right: 0; border-bottom-width: 3px; border-right-width: 3px; }
.fm-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 12px; }
.fm-stat { display: flex; flex-direction: column; gap: 10px; padding: 22px 24px; background: var(--fm-panel); border-top: 4px solid var(--fm-orange); text-decoration: none; }
.fm-stat b { font-size: 36px; font-weight: 900; font-style: italic; color: var(--fm-ink); }
.fm-big { margin: 8px 0; font-size: 44px; font-weight: 900; font-style: italic; color: var(--fm-ink); }
.fm-big small { font-size: 14px; font-style: normal; font-weight: 700; color: var(--fm-quiet); }
.fm-drop { display: flex; padding: 28px; border: 2px dashed var(--fm-graphite); }
.fm-drop form { display: flex; flex-direction: column; gap: 14px; }
.fm-drop input[type="file"], .field input[type="file"] { color: var(--fm-silver); font: inherit; font-size: 14px; }
/* Pole pliku: przycisk w barwach marki, wyśrodkowany w pionie, nazwa pliku obok. */
input[type="file"] { cursor: pointer; }
.field input[type="file"], .fm-drop input[type="file"] { display: block; width: 100%; min-height: 52px; padding: 7px 8px; line-height: 36px; background: var(--fm-panel); border: 1px dashed var(--fm-graphite); border-radius: 6px; color: var(--fm-muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.field input[type="file"]:hover, .fm-drop input[type="file"]:hover { border-color: var(--fm-orange); }
input[type="file"]::file-selector-button { height: 36px; margin: 0 14px 0 0; padding: 0 16px; border: 0; border-radius: 4px; background: var(--fm-orange); color: var(--fm-black); font: 800 13px/36px Montserrat, 'Helvetica Neue', Arial, sans-serif; letter-spacing: .5px; text-transform: uppercase; cursor: pointer; vertical-align: middle; transition: background .2s; }
input[type="file"]:hover::file-selector-button { background: var(--fm-orange-light); }
.fm-table-wrap { overflow-x: auto; }
.fm-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.fm-table th { text-align: left; padding: 10px 12px; font-size: 11px; letter-spacing: 2px; text-transform: uppercase; color: var(--fm-quiet); border-bottom: 2px solid var(--fm-orange); }
.fm-table td { padding: 10px 12px; border-bottom: 1px solid var(--fm-line); color: var(--fm-text); }
.fm-nr { font-weight: 900; font-style: italic; color: var(--fm-orange) !important; }
.fm-consent { padding: 16px; border: 1px solid var(--fm-field); }
.fm-gear-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px; }
.fm-gear-grid textarea { min-height: 90px; }
.field select { font: inherit; }
@media (max-width: 860px) {
	.fm-panel { flex-direction: column; gap: 20px; }
	.fm-panel-nav { position: static; flex: none; width: 100%; flex-direction: row; flex-wrap: wrap; padding: 12px; gap: 4px; }
	.fm-panel-nav a { padding: 8px 12px; border-left: 0; border-bottom: 3px solid transparent; }
	.fm-panel-nav a[aria-current="page"] { border-bottom-color: var(--fm-orange); }
	.fm-role-badge { margin: 6px 8px; }
	.fm-panel-user { display: none; }
	.fm-panel-nav .fm-logout { margin-top: 0; }
	.fm-empty { padding: 28px 22px; }
}

/* =========================================================================
 * Cookies
 * ====================================================================== */
.fm-ck-banner { position: fixed; left: 24px; right: 24px; bottom: 24px; z-index: 900; max-width: 1180px; margin: 0 auto; padding: 24px 28px 24px 34px; background: var(--fm-paper); color: var(--fm-black); box-shadow: 0 20px 50px rgba(0,0,0,.6); display: flex; flex-wrap: wrap; align-items: center; gap: 20px 32px; }
.fm-ck-banner[hidden], .fm-ck-modal[hidden] { display: none; }
.fm-ck-banner::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 6px; background: var(--fm-orange); }
.fm-ck-text { flex: 1 1 460px; min-width: 0; display: flex; flex-direction: column; gap: 6px; }
.fm-ck-text h2 { margin: 0; font-size: 20px; font-weight: 900; font-style: italic; text-transform: uppercase; }
.fm-ck-text p { margin: 0; font-size: 14px; line-height: 1.6; color: #22262C; }
.fm-ck-text a { color: var(--fm-orange-dark); font-weight: 700; }
.fm-ck-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.fm-ck-link, .fm-ck-btn { min-height: 50px; padding: 0 22px; font: inherit; font-weight: 800; cursor: pointer; border-radius: 6px; }
.fm-ck-link { padding: 0 12px; background: transparent; border: 0; color: var(--fm-black); text-decoration: underline; }
.fm-ck-btn { background: transparent; border: 2px solid var(--fm-black); color: var(--fm-black); }
.fm-ck-btn-dark { background: var(--fm-black); color: var(--fm-ink); border-color: var(--fm-black); }
.fm-ck-btn:hover { border-color: var(--fm-orange-dark); }
.fm-ck-btn-dark:hover { background: #22262C; }
.fm-ck-modal { position: fixed; inset: 0; z-index: 950; background: rgba(11,13,16,.75); display: flex; align-items: center; justify-content: center; padding: 16px; }
.fm-ck-dialog { width: 100%; max-width: 560px; max-height: calc(100vh - 32px); overflow: auto; padding: 32px; background: var(--fm-panel); border-top: 6px solid var(--fm-orange); display: flex; flex-direction: column; gap: 6px; }
.fm-ck-head { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-bottom: 8px; }
.fm-ck-head h2 { margin: 0; font-size: 26px; font-weight: 900; font-style: italic; text-transform: uppercase; color: var(--fm-ink); }
.fm-ck-x { width: 44px; height: 44px; background: transparent; border: 0; color: var(--fm-silver); font-size: 30px; cursor: pointer; }
.fm-ck-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 14px 0; border-top: 1px solid var(--fm-line); }
.fm-ck-row > div { display: flex; flex-direction: column; gap: 2px; }
.fm-ck-row strong { font-size: 15px; color: var(--fm-ink); }
.fm-ck-row span { font-size: 13px; color: var(--fm-quiet); }
.fm-ck-switch { position: relative; width: 60px; height: 34px; flex: none; border: 0; border-radius: 999px; background: var(--fm-field); cursor: pointer; }
.fm-ck-switch span { position: absolute; top: 4px; left: 4px; width: 26px; height: 26px; border-radius: 999px; background: var(--fm-ink); transition: left .15s; }
.fm-ck-switch[aria-checked="true"] { background: var(--fm-orange); }
.fm-ck-switch[aria-checked="true"] span { left: 30px; }
.fm-ck-switch[disabled] { background: var(--fm-graphite); cursor: not-allowed; }
.fm-ck-foot { display: flex; flex-wrap: wrap; gap: 10px; justify-content: flex-end; margin-top: 14px; }
body.fm-ck-open { overflow: hidden; }
@media (max-width: 600px) {
	.fm-ck-banner { left: 12px; right: 12px; bottom: 12px; padding: 20px 18px 20px 24px; }
	.fm-ck-actions { width: 100%; }
	.fm-ck-btn { flex: 1 1 0; }
	.fm-ck-dialog { padding: 24px 20px; }
}

/* =========================================================================
 * Panel administratora
 * ====================================================================== */
.fm-banner { position: relative; display: flex; flex-wrap: wrap; gap: 16px 24px; align-items: center; justify-content: space-between; padding: 20px 24px 20px 30px; background: var(--fm-paper); color: var(--fm-black); }
.fm-banner::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 6px; background: var(--fm-orange); }
.fm-banner > div:first-child { display: flex; flex-direction: column; gap: 2px; flex: 1 1 320px; }
.fm-banner strong { font-size: 17px; font-weight: 900; font-style: italic; text-transform: uppercase; }
.fm-banner span { font-size: 14px; color: #3A3F46; }
.fm-banner-ok { background: var(--fm-panel); color: var(--fm-ink); }
.fm-banner-ok span { color: var(--fm-muted); }
.fm-banner-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.fm-banner-actions form { margin: 0; }
.fm-banner .btn-ghost { color: var(--fm-black); border-color: var(--fm-black); }
.fm-banner-ok .btn-ghost { color: var(--fm-ink); border-color: var(--fm-graphite); }
.fm-todo { display: flex; align-items: center; gap: 14px; padding: 14px 18px; background: var(--fm-panel-2); color: var(--fm-text); text-decoration: none; border-left: 4px solid var(--fm-orange); }
.fm-todo b { font-size: 26px; font-weight: 900; font-style: italic; color: var(--fm-orange); min-width: 28px; }
.fm-todo span { flex: 1; font-weight: 700; }
.fm-todo em { font-style: normal; font-size: 13px; color: var(--fm-quiet); }
.fm-todo:hover em { color: var(--fm-orange); }
.fm-accept { display: flex; flex-direction: column; gap: 18px; padding: 26px; background: var(--fm-panel); border-top: 6px solid var(--fm-orange); }
.fm-accept-head { display: flex; flex-wrap: wrap; gap: 20px; align-items: flex-start; }
.fm-accept-head h2 { margin: 6px 0 6px; font-size: 24px; font-weight: 900; font-style: italic; text-transform: uppercase; color: var(--fm-ink); }
.fm-accept-head p { margin: 0; line-height: 1.55; }
.fm-accept-head > div { flex: 1 1 320px; min-width: 0; }
.fm-accept-img { width: 220px; max-width: 100%; height: auto; object-fit: cover; }
.fm-accept-actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: flex-start; }
.fm-accept-actions form { margin: 0; }
.fm-reject summary { cursor: pointer; color: var(--fm-quiet); font-size: 14px; font-weight: 700; }
.fm-reject summary:hover { color: var(--fm-ink); }
.fm-reject[open] summary { margin-bottom: 12px; }
.fm-reject form { gap: 12px; }
.fm-msg { display: flex; flex-direction: column; gap: 12px; padding: 22px 24px; background: var(--fm-panel); border-left: 4px solid var(--fm-orange); }
.fm-msg.is-done { border-left-color: var(--fm-graphite); }
.fm-msg-head { display: flex; flex-wrap: wrap; gap: 12px; justify-content: space-between; align-items: flex-start; }
.fm-msg-head h3 { margin: 4px 0 0; font-size: 17px; color: var(--fm-ink); }
.fm-msg-body { margin: 0; font-size: 15px; line-height: 1.6; color: var(--fm-text); }
.fm-msg-reply { padding: 12px 16px; background: var(--fm-panel-2); }
.fm-msg-reply p { margin: 6px 0 0; font-size: 14px; color: var(--fm-silver); line-height: 1.55; }
.fm-reply { flex: 1 1 100%; }
.fm-reply summary { list-style: none; display: inline-flex; }
.fm-reply summary::-webkit-details-marker { display: none; }
.fm-reply[open] summary { margin-bottom: 14px; }
.fm-table .fm-badge { white-space: nowrap; display: inline-block; }

/* --- Panel administratora wg projektu --------------------------------------- */
.fm-nav-badge { display: inline-grid; place-items: center; min-width: 22px; height: 22px; margin-left: 6px; padding: 0 6px; border-radius: 999px; background: var(--fm-orange); color: var(--fm-black); font-size: 11px; font-weight: 900; font-style: normal; vertical-align: middle; }
.fm-panel-nav a { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.fm-maint-card { display: flex; flex-wrap: wrap; gap: 20px; align-items: center; justify-content: space-between; padding: 22px 26px; background: var(--fm-panel); border-left: 6px solid var(--fm-graphite); }
.fm-maint-card.is-on { border-left-color: var(--fm-orange); }
.fm-maint-card .fm-maint-text { flex: 1 1 380px; display: flex; flex-direction: column; gap: 6px; }
.fm-maint-card .fm-maint-text p { margin: 0; line-height: 1.55; }
.fm-maint-card .label b { color: var(--fm-quiet); }
.fm-maint-card.is-on .label b { color: var(--fm-orange); }
.fm-maint-card form { margin: 0; }
.fm-switch { position: relative; display: inline-block; width: 64px; height: 36px; flex: none; padding: 0; border: 0; border-radius: 999px; background: var(--fm-graphite); cursor: pointer; }
.fm-switch span { position: absolute; top: 4px; left: 4px; width: 28px; height: 28px; border-radius: 999px; background: var(--fm-ink); transition: left .15s; }
.fm-switch[aria-checked="true"] { background: var(--fm-orange); }
.fm-switch[aria-checked="true"] span { left: 32px; }
.fm-switch-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; cursor: pointer; }
.fm-switch-row > span:first-child { display: flex; flex-direction: column; gap: 2px; color: var(--fm-ink); }
.fm-switch-row .muted { font-size: 13px; }
.fm-switch-input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.fm-switch-input:checked + .fm-switch { background: var(--fm-orange); }
.fm-switch-input:checked + .fm-switch span { left: 32px; }
.fm-switch-input:focus-visible + .fm-switch { outline: 3px solid var(--fm-orange); outline-offset: 3px; }
.fm-pending { display: flex; flex-direction: column; gap: 16px; }
.fm-model-pick { margin: 0; padding: 0; border: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 10px; }
.fm-model-pick legend { margin-bottom: 10px; }
.fm-model-pick label { position: relative; display: flex; align-items: center; gap: 12px; padding: 12px 14px; border: 1px solid var(--fm-field); background: var(--fm-black); cursor: pointer; color: var(--fm-silver); font-size: 14px; font-weight: 700; }
.fm-model-pick input { position: absolute; opacity: 0; }
.fm-model-pick b { font-size: 22px; font-weight: 900; font-style: italic; color: var(--fm-quiet); }
.fm-model-pick label:has(input:checked) { border: 2px solid var(--fm-orange); background: rgba(255,122,0,.1); color: var(--fm-ink); }
.fm-model-pick label:has(input:checked) b { color: var(--fm-orange); }
.fm-model-pick label:has(input:focus-visible) { outline: 3px solid var(--fm-orange); outline-offset: 2px; }
.fm-tabs-line { display: flex; flex-wrap: wrap; gap: 4px 22px; border-bottom: 1px solid var(--fm-line); }
.fm-tabs-line a { padding: 10px 0; color: var(--fm-quiet); font-weight: 800; font-size: 14px; text-decoration: none; border-bottom: 3px solid transparent; margin-bottom: -1px; }
.fm-tabs-line a:hover { color: var(--fm-ink); }
.fm-tabs-line a[aria-current="page"] { color: var(--fm-ink); border-bottom-color: var(--fm-orange); }
.fm-topic { display: inline-block; padding: 3px 9px; background: var(--fm-orange); color: var(--fm-black); font-size: 11px; font-weight: 800; letter-spacing: 1.5px; text-transform: uppercase; }
.fm-chat { display: flex; min-height: 460px; background: var(--fm-panel); }
.fm-chat-people { flex: 0 0 280px; display: flex; flex-direction: column; border-right: 1px solid var(--fm-line); max-height: 620px; overflow-y: auto; }
.fm-chat-people a { display: flex; align-items: center; gap: 12px; padding: 14px 16px; text-decoration: none; color: var(--fm-silver); border-left: 4px solid transparent; }
.fm-chat-people a:hover { background: var(--fm-panel-2); }
.fm-chat-people a[aria-current="true"] { background: var(--fm-panel-2); border-left-color: var(--fm-orange); }
.fm-ini { display: grid; place-items: center; width: 40px; height: 40px; flex: none; border-radius: 999px; background: var(--fm-line); color: var(--fm-ink); font-size: 13px; font-weight: 900; }
.fm-chat-who { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.fm-chat-who strong { color: var(--fm-ink); font-size: 14px; }
.fm-chat-who span { font-size: 12px; color: var(--fm-quiet); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fm-chat-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 12px; padding: 18px 20px; }
.fm-chat-head { display: flex; flex-direction: column; gap: 2px; padding-bottom: 12px; border-bottom: 1px solid var(--fm-line); }
.fm-chat-head strong { color: var(--fm-ink); font-size: 16px; }
.fm-chat-head .muted { font-size: 13px; }
.fm-chat-thread { flex: 1; display: flex; flex-direction: column; gap: 10px; max-height: 440px; min-height: 200px; overflow-y: auto; padding: 4px 2px; }
.fm-chat-empty { margin: auto; }
.fm-bubble { align-self: flex-start; max-width: 78%; padding: 10px 14px; background: #22262C; color: var(--fm-ink); border-radius: 12px 12px 12px 2px; }
.fm-bubble.is-mine { align-self: flex-end; background: var(--fm-orange); color: var(--fm-black); border-radius: 12px 12px 2px 12px; }
.fm-bubble p { margin: 0; font-size: 14px; line-height: 1.5; }
.fm-bubble-meta { display: block; margin-top: 4px; font-size: 11px; opacity: .7; }
.fm-bubble-team { display: block; margin-bottom: 4px; font-size: 10px; font-weight: 800; letter-spacing: 1.5px; text-transform: uppercase; opacity: .75; }
.fm-chat-form { display: flex; gap: 10px; align-items: flex-end; margin: 0; }
.fm-chat-form textarea { flex: 1; min-height: 52px; padding: 12px 14px; background: var(--fm-black); border: 1px solid var(--fm-field); color: var(--fm-ink); font: inherit; resize: vertical; }
.fm-chat-form textarea:focus { border-color: var(--fm-orange); outline: none; }
.fm-chat-single .fm-chat-main { padding: 20px 22px; }
@media (max-width: 860px) {
	.fm-chat { flex-direction: column; }
	.fm-chat-people { flex: none; max-height: 260px; border-right: 0; border-bottom: 1px solid var(--fm-line); }
	.fm-bubble { max-width: 90%; }
	.fm-chat-form { flex-direction: column; align-items: stretch; }
}
.fm-diff .fm-old { color: var(--fm-quiet); text-decoration: line-through; } .fm-diff .fm-new { color: var(--fm-ink); font-weight: 700; }

/* --- Strona wydarzenia: okładka, opis, mapa --------------------------------- */
.event-hero-split { flex-direction: row !important; flex-wrap: wrap; align-items: center; gap: 28px 48px !important; }
.event-hero-text { flex: 1 1 420px; min-width: 0; display: flex; flex-direction: column; gap: 14px; }
.event-cover { position: relative; flex: 0 1 460px; display: block; aspect-ratio: 4 / 3; overflow: hidden; }
.event-cover img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .3s; }
.event-cover:hover img { transform: scale(1.03); }
.event-about { display: flex; flex-wrap: wrap; gap: 28px; align-items: flex-start; }
.event-about-main { flex: 999 1 480px; min-width: 0; display: flex; flex-direction: column; gap: 18px; padding: 28px; background: var(--fm-panel); border-top: 6px solid var(--fm-orange); }
.event-about-main h2 { margin: 0; }
.event-desc p { margin: 0 0 12px; font-size: 16px; line-height: 1.7; color: var(--fm-text); }
.event-desc p:last-child { margin-bottom: 0; }
.event-sponsors ul { margin: 8px 0 0; padding: 0; list-style: none; display: flex; flex-wrap: wrap; gap: 8px; }
.event-sponsors li { padding: 8px 14px; border: 1px solid var(--fm-field); color: var(--fm-ink); font-weight: 700; font-size: 14px; }
.event-links { display: flex; flex-wrap: wrap; gap: 10px; }
.event-links .btn { gap: 8px; }
.event-map { flex: 1 1 320px; display: flex; flex-direction: column; gap: 10px; padding: 24px; background: var(--fm-paper); color: var(--fm-black); }
.event-map .label { color: var(--fm-graphite); }
.event-map-place { margin: 0; font-weight: 800; font-size: 17px; }
.event-map a { color: var(--fm-orange-dark); font-weight: 700; }
.event-map-box { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; min-height: 220px; background: #E6E7E3; text-align: center; padding: 16px; }
.event-map-box small { color: var(--fm-graphite); font-size: 12px; }
.event-map-box .btn-outline { color: var(--fm-orange-dark); border-color: var(--fm-orange-dark); }
.event-map-box.is-loaded { padding: 0; }
.event-map-box iframe { width: 100%; height: 280px; border: 0; display: block; }
.fm-extra { margin: 0; padding: 18px; border: 1px solid var(--fm-field); display: flex; flex-direction: column; gap: 14px; }
.fm-extra legend { padding: 0 8px; }
@media (max-width: 860px) { .event-cover { flex: 1 1 100%; } }
/* Pion / poziom / kwadrat – ramka dopasowuje się do zdjęcia */
.event-cover.is-pion { flex: 0 1 340px; aspect-ratio: 4 / 5; }
.event-cover.is-kwadrat { flex: 0 1 400px; aspect-ratio: 1 / 1; }
.event-cover.is-pion img { object-position: center 30%; }
.photo img.cover.is-pion { object-position: center 25%; }
@media (max-width: 860px) { .event-cover.is-pion { flex: 0 1 100%; max-width: 420px; } }

/* --- Lista startowa: narzędzia, sortowanie, błędy --------------------------- */
.fm-startlist { display: flex; flex-direction: column; gap: 14px; }
.fm-list-tools { display: flex; flex-wrap: wrap; gap: 12px; align-items: flex-end; }
.fm-list-tools .field input, .fm-list-tools .field select { min-height: 48px; }
.fm-sortable th { padding: 0; }
.fm-sortable th button { display: inline-flex; align-items: center; gap: 6px; width: 100%; padding: 10px 12px; background: none; border: 0; color: var(--fm-quiet); font: inherit; font-size: 11px; font-weight: 800; letter-spacing: 2px; text-transform: uppercase; text-align: left; cursor: pointer; }
.fm-sortable th button:hover { color: var(--fm-ink); }
.fm-sortable th button span::after { content: "↕"; opacity: .35; letter-spacing: 0; }
.fm-sortable th[aria-sort="ascending"] button, .fm-sortable th[aria-sort="descending"] button { color: var(--fm-orange); }
.fm-sortable th[aria-sort="ascending"] button span::after { content: "↑"; opacity: 1; }
.fm-sortable th[aria-sort="descending"] button span::after { content: "↓"; opacity: 1; }
.fm-sortable tbody tr:hover td { background: var(--fm-panel-2); }
.fm-sortable tr.is-editing td { background: rgba(255,122,0,.12); }
.fm-sortable tr.is-issue td { background: rgba(229,72,77,.1); }
.fm-sortable tr.is-issue td:first-child { box-shadow: inset 4px 0 0 #E5484D; }
.fm-tag-site { display: inline-block; margin-left: 6px; padding: 1px 7px; border: 1px solid var(--fm-orange); color: var(--fm-orange); font-size: 10px; font-weight: 800; letter-spacing: 1px; text-transform: uppercase; vertical-align: middle; }
.fm-drop-wrap > summary { list-style: none; display: inline-flex; }
.fm-drop-wrap > summary::-webkit-details-marker { display: none; }
.fm-drop-wrap[open] > summary { margin-bottom: 12px; }
.fm-danger { color: #E5484D !important; border-color: #E5484D !important; }
.fm-check { display: flex; flex-direction: column; gap: 10px; }
.fm-row-issue { border-left: 4px solid #E5484D; }
.fm-row-issue ul { margin: 4px 0 0; padding-left: 18px; color: #F2A3A5; font-size: 14px; }
.fm-row-issue .fm-nr { font-size: 22px; font-weight: 900; font-style: italic; min-width: 52px; }
.fm-person-grid > .field:first-child { flex: 0 1 120px; }
details.fm-alert summary { cursor: pointer; }

/* --- Strona główna: nadchodzące i ostatnie wydarzenia ---------------------- */
.section-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 18px 24px; }
.section-head h2 { margin: 4px 0 0; }
.upcoming { background: var(--fm-panel-2); border-top: 1px solid var(--fm-line); border-bottom: 1px solid var(--fm-line); }
.up-feature { display: flex; flex-wrap: wrap; background: var(--fm-panel); color: inherit; text-decoration: none; border-top: 6px solid var(--fm-orange); overflow: hidden; }
.up-poster { position: relative; flex: 1 1 360px; min-height: 320px; max-height: 520px; display: grid; place-items: center; overflow: hidden; background: var(--fm-photo); }
.up-poster-bg { position: absolute; inset: -20px; background-size: cover; background-position: center; filter: blur(24px) brightness(.45); transform: scale(1.1); }
.up-poster img { position: relative; max-width: 100%; max-height: 520px; width: auto; height: auto; object-fit: contain; display: block; box-shadow: 0 18px 40px rgba(0,0,0,.5); transition: transform .3s; }
.up-feature:hover .up-poster img { transform: scale(1.02); }
.up-info { flex: 1 1 380px; display: flex; flex-direction: column; align-items: flex-start; gap: 12px; padding: 32px 34px; }
.up-when { padding: 5px 12px; background: var(--fm-orange); color: var(--fm-black); font-size: 12px; font-weight: 900; font-style: italic; letter-spacing: 1.5px; text-transform: uppercase; }
.up-date { display: flex; align-items: center; gap: 12px; }
.up-date b { font-size: 64px; line-height: .9; font-weight: 900; font-style: italic; color: var(--fm-ink); }
.up-date span { font-size: 13px; font-weight: 800; letter-spacing: 2px; text-transform: uppercase; color: var(--fm-orange); line-height: 1.4; }
.up-info h3 { margin: 0; font-size: clamp(24px, 3vw, 36px); line-height: 1.12; font-weight: 900; font-style: italic; text-transform: uppercase; color: var(--fm-ink); }
.up-feature:hover h3 { color: var(--fm-orange); }
.up-place { margin: 0; font-size: 16px; font-weight: 700; color: var(--fm-silver); }
.up-desc { margin: 0; font-size: 15px; line-height: 1.6; color: var(--fm-muted); max-width: 520px; }
.up-info .btn { margin-top: 8px; }
.up-list { margin: 0; padding: 0; list-style: none; display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 10px; }
.up-list a { display: flex; align-items: center; gap: 16px; padding: 14px 18px; background: var(--fm-panel); color: inherit; text-decoration: none; border-left: 4px solid transparent; height: 100%; }
.up-list a:hover { border-left-color: var(--fm-orange); background: #181B21; }
.up-list-date { display: flex; flex-direction: column; align-items: center; min-width: 48px; line-height: 1; }
.up-list-date b { font-size: 28px; font-weight: 900; font-style: italic; color: var(--fm-ink); }
.up-list-date span { font-size: 11px; font-weight: 800; letter-spacing: 1.5px; text-transform: uppercase; color: var(--fm-orange); }
.up-list-img { width: 56px; height: 56px; object-fit: cover; flex: none; }
.up-list-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.up-list-main strong { font-size: 16px; font-weight: 800; font-style: italic; color: var(--fm-ink); line-height: 1.25; }
.up-list-main span { font-size: 13px; color: var(--fm-quiet); }
.up-list-arrow { color: var(--fm-orange); font-weight: 900; font-size: 20px; transition: transform .2s; }
.up-list a:hover .up-list-arrow { transform: translateX(4px); }
.event-card .photo img.cover { width: 100%; height: 100%; object-fit: cover; }
.home-empty { align-items: center; text-align: center; }
.home-empty p { margin: 0 auto; }
@media (max-width: 700px) {
	.up-info { padding: 24px 22px; }
	.up-date b { font-size: 52px; }
	.up-poster { min-height: 260px; }
	.up-list { grid-template-columns: 1fr; }
}
.fm-dup { padding: 18px 22px; background: var(--fm-panel); border-left: 4px solid var(--fm-graphite); }
.fm-dup[open] { border-left-color: var(--fm-orange); }
.fm-dup summary { cursor: pointer; font-weight: 800; color: var(--fm-ink); }
.fm-dup[open] summary { margin-bottom: 14px; }
.fm-dup form { gap: 12px; }
/* Naprawa polskich znaków + sprawdzenie przez organizatora */
.fm-fix td { vertical-align: middle; }
.fm-fix input[type="checkbox"] { width: 20px; height: 20px; accent-color: var(--fm-orange); }
.fm-fix-input { width: 100%; min-width: 140px; min-height: 38px; padding: 0 10px; background: var(--fm-black); border: 1px solid var(--fm-field); color: var(--fm-ink); font: inherit; font-weight: 700; }
.fm-fix-input:focus { border-color: var(--fm-orange); outline: none; }
.fm-old-val { color: var(--fm-quiet); text-decoration: line-through; }
.fm-fix-badge { display: inline-block; padding: 2px 8px; font-size: 11px; font-weight: 800; letter-spacing: 1px; text-transform: uppercase; white-space: nowrap; }
.fm-fix .is-sure .fm-fix-badge { background: var(--fm-orange); color: var(--fm-black); }
.fm-fix .is-guess .fm-fix-badge { border: 1px solid var(--fm-orange); color: var(--fm-orange); }
.fm-fix .is-manual .fm-fix-badge { border: 1px solid #E5484D; color: #F2A3A5; }
.fm-fix .is-manual .fm-fix-input { border-color: #E5484D; }
.fm-review { display: flex; flex-wrap: wrap; gap: 16px 24px; align-items: center; justify-content: space-between; padding: 20px 24px; background: var(--fm-paper); color: var(--fm-black); border-left: 6px solid var(--fm-orange); }
.fm-review > div { flex: 1 1 360px; }
.fm-review strong { font-size: 17px; font-weight: 900; font-style: italic; text-transform: uppercase; }
.fm-review p { margin: 6px 0 0; font-size: 14px; line-height: 1.55; color: #22262C; }
.fm-review .fm-review-names { font-size: 13px; color: var(--fm-graphite); }
.fm-review form { margin: 0; }
.fm-sortable tr.is-fixed td { background: rgba(255,122,0,.1); }
.fm-sortable tr.is-fixed td:first-child { box-shadow: inset 4px 0 0 var(--fm-orange); }
.fm-review.is-done { border-left-color: #3BB273; }
.fm-progress { height: 10px; margin-top: 12px; background: #D9DAD5; border-radius: 999px; overflow: hidden; max-width: 520px; }
.fm-progress span { display: block; height: 100%; background: var(--fm-orange); border-radius: 999px; transition: width .3s; }
.fm-review.is-done .fm-progress span { background: #3BB273; }
.fm-verify td { vertical-align: middle; }
.fm-verify tr.is-ok td { background: rgba(59,178,115,.08); }
.fm-verify tr.has-warn:not(.is-ok) td:first-child { box-shadow: inset 4px 0 0 #E5484D; }
.fm-verify-check { display: inline-flex; align-items: center; gap: 8px; cursor: pointer; font-size: 13px; font-weight: 700; color: var(--fm-silver); white-space: nowrap; }
.fm-verify-check input[type="checkbox"] { width: 24px; height: 24px; accent-color: #3BB273; }
.fm-warn { color: #F2A3A5; font-size: 13px; }
a.fm-badge { text-decoration: none; }
/* Lista z PDF */
.fm-pdf-status { margin: 0; font-size: 14px; color: var(--fm-silver); }
.fm-pdf-status.is-err { color: #F2A3A5; }
.fm-pdf-status:empty { display: none; }
.fm-pdf-table th { vertical-align: top; }
.fm-pdf-table select { min-height: 36px; padding: 0 8px; background: var(--fm-black); border: 1px solid var(--fm-orange); color: var(--fm-ink); font: inherit; font-size: 13px; font-weight: 700; letter-spacing: 0; text-transform: none; }
.fm-pdf-table th small { display: block; margin-top: 4px; font-size: 11px; color: var(--fm-quiet); letter-spacing: 0; text-transform: none; font-weight: 600; }
#fm-pdf { display: block; }

/* --- Wgrywanie zdjęć --------------------------------------------------------- */
.fm-upload { display: flex; flex-direction: column; gap: 16px; }
.fm-upload-drop { display: flex; flex-direction: column; align-items: center; gap: 12px; padding: 40px 24px; border: 2px dashed var(--fm-graphite); background: var(--fm-panel); text-align: center; transition: border-color .15s, background .15s; }
.fm-upload-drop.is-over { border-color: var(--fm-orange); background: rgba(255,122,0,.08); }
.fm-upload-drop b { font-size: 20px; font-weight: 900; font-style: italic; text-transform: uppercase; color: var(--fm-ink); }
.fm-upload-drop > span { color: var(--fm-quiet); font-size: 14px; }
.fm-upload-btns { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }
.fm-upload-btns label { cursor: pointer; }
.fm-upload-drop small { max-width: 560px; color: var(--fm-quiet); font-size: 13px; line-height: 1.55; }
.fm-upload-status { display: flex; flex-direction: column; gap: 10px; padding: 20px 24px; background: var(--fm-panel); border-top: 6px solid var(--fm-orange); }
.fm-upload-status .fm-progress { max-width: none; background: var(--fm-line); }
.fm-upload-text { margin: 0; font-weight: 700; color: var(--fm-ink); }
.fm-upload-errors { margin: 0; padding-left: 18px; color: #F2A3A5; font-size: 13px; max-height: 180px; overflow: auto; }
.fm-upload-errors:empty { display: none; }
.fm-photo-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.fm-photo-grid figure { position: relative; margin: 0; background: var(--fm-photo); }
.fm-photo-grid img { display: block; width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.fm-photo-grid figcaption { padding: 4px 6px; font-size: 11px; color: var(--fm-quiet); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fm-photo-del { position: absolute; top: 6px; right: 6px; width: 28px; height: 28px; border: 0; border-radius: 999px; background: rgba(11,13,16,.8); color: #fff; font-size: 18px; line-height: 1; cursor: pointer; opacity: 0; transition: opacity .15s; }
.fm-photo-grid figure:hover .fm-photo-del, .fm-photo-del:focus { opacity: 1; }

/* Wyniki wyszukiwania po numerze */
.fm-results .photo { display: block; aspect-ratio: 3 / 2; }
.fm-results .photo img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .25s; }
.fm-results .photo:hover img { transform: scale(1.04); }
.fm-results.is-maybe .photo { outline: 2px dashed var(--fm-graphite); outline-offset: -2px; }

/* ---------- Strona „Dla organizatorów” ---------- */
.org-chips { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.org-chips li { padding: 10px 16px; background: var(--fm-panel); border: 1px solid var(--fm-line); font-size: 14px; font-weight: 600; color: var(--fm-muted); }
.org-chips b { display: block; font-size: 20px; font-weight: 900; font-style: italic; color: var(--fm-orange); text-transform: uppercase; }
.org-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 16px; }
.org-card { padding: 26px 24px; background: var(--fm-panel); border-top: 4px solid var(--fm-orange); display: flex; flex-direction: column; gap: 10px; }
.org-card h3 { margin: 0; font-size: 19px; font-weight: 800; color: var(--fm-ink); }
.org-card p { margin: 0; font-size: 15px; line-height: 1.6; color: var(--fm-muted); }
.org-ico { width: 44px; height: 44px; display: inline-flex; align-items: center; justify-content: center; background: var(--fm-orange); color: var(--fm-black); font-size: 22px; font-weight: 900; }
.org-model { padding: 30px; background: var(--fm-panel); border-top: 6px solid var(--fm-graphite); display: flex; flex-direction: column; gap: 12px; }
.org-model.is-hot { border-top-color: var(--fm-orange); }
.org-model h3 { margin: 0; font-size: 22px; color: var(--fm-ink); }
.org-model p { margin: 0; line-height: 1.6; color: var(--fm-muted); }
.org-letter { font-size: 54px; line-height: 1; color: var(--fm-silver); }
.org-model.is-hot .org-letter { color: var(--fm-orange); }
.org-model .org-best { margin-top: auto; padding-top: 12px; border-top: 1px solid var(--fm-line); font-size: 14px; font-weight: 700; color: var(--fm-ink); }
.org-table-wrap { overflow-x: auto; }
.org-table { width: 100%; min-width: 560px; border-collapse: collapse; font-size: 15px; }
.org-table caption { text-align: left; padding: 0 0 12px; font-weight: 800; color: var(--fm-ink); }
.org-table th, .org-table td { padding: 14px 12px; border-bottom: 1px solid var(--fm-line); text-align: left; color: var(--fm-muted); }
.org-table thead th { color: var(--fm-orange); font-size: 22px; font-weight: 900; font-style: italic; }
.org-table tbody th { color: var(--fm-ink); font-weight: 700; }
.org-list { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 4px; }
.org-list li { position: relative; padding: 12px 0 12px 34px; border-bottom: 1px solid var(--fm-line); line-height: 1.55; color: var(--fm-muted); }
.org-list li::before { content: "✓"; position: absolute; left: 0; top: 11px; width: 22px; height: 22px; display: inline-flex; align-items: center; justify-content: center; background: var(--fm-orange); color: var(--fm-black); font-size: 13px; font-weight: 900; }
.org-list b { color: var(--fm-ink); }
.org-grid-light { grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); }
.org-tip { padding: 24px 22px; background: #fff; border-top: 4px solid var(--fm-black); display: flex; flex-direction: column; gap: 8px; }
.org-tip > b { font-size: 40px; line-height: 1; font-weight: 900; font-style: italic; color: #C25A00; }
.org-tip h3 { margin: 0; font-size: 18px; font-weight: 800; color: var(--fm-black); }
.org-tip p { margin: 0; font-size: 15px; line-height: 1.6; color: #3A3F46; }
.org-faq details { border-color: var(--fm-line); }
.org-faq summary { color: var(--fm-ink); }
.org-faq summary::after { background: var(--fm-graphite); }
.org-faq details p { color: var(--fm-muted); line-height: 1.65; }

/* ---------- Podgląd zdjęć w okienku ---------- */
.fm-lb { position: fixed; inset: 0; z-index: 9999; background: rgba(11,13,16,.94); display: flex; align-items: center; justify-content: center; padding: 56px 64px; }
.fm-lb[hidden] { display: none; }
.fm-lb figure { margin: 0; max-width: 100%; max-height: 100%; display: flex; flex-direction: column; align-items: center; gap: 10px; }
.fm-lb img { max-width: 100%; max-height: calc(100vh - 140px); object-fit: contain; user-select: none; -webkit-user-select: none; -webkit-touch-callout: none; pointer-events: none; }
.fm-lb figcaption { color: var(--fm-muted); font-size: 14px; font-weight: 700; }
.fm-lb button { position: absolute; border: 0; background: rgba(255,255,255,.08); color: #fff; cursor: pointer; font-size: 34px; line-height: 1; width: 52px; height: 52px; border-radius: 50%; }
.fm-lb button:hover, .fm-lb button:focus-visible { background: var(--fm-orange); color: var(--fm-black); }
.fm-lb .fm-lb-x { top: 14px; right: 14px; }
.fm-lb .fm-lb-prev { left: 12px; top: 50%; transform: translateY(-50%); }
.fm-lb .fm-lb-next { right: 12px; top: 50%; transform: translateY(-50%); }
.fm-lb button[hidden] { display: none; }
/* iPhone: szybkie stukanie w strzałki nie może powiększać strony (podwójne stuknięcie = zoom w Safari). Rozsuwanie dwoma palcami działa dalej. */
.fm-lb, .fm-lb button, .fm-lb figure { touch-action: manipulation; -webkit-tap-highlight-color: transparent; }
.fm-best img, .fm-results img, .event-cover img { -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; }
@media (max-width: 640px) { .fm-lb { padding: 56px 8px 24px; } .fm-lb .fm-lb-prev, .fm-lb .fm-lb-next { top: auto; bottom: 14px; transform: none; } }

/* ---------- Wybór osoby po nazwisku ---------- */
.fm-wybor { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 10px; }
.fm-wybor-os { display: flex; gap: 14px; align-items: center; padding: 14px 16px; background: var(--fm-panel); border-left: 4px solid var(--fm-orange); text-decoration: none; color: var(--fm-ink); }
.fm-wybor-os:hover, .fm-wybor-os:focus-visible { background: #1b1f25; }
.fm-wybor-os > b { font-size: 26px; font-weight: 900; font-style: italic; color: var(--fm-orange); min-width: 64px; }
.fm-wybor-os span { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.fm-wybor-os strong { font-size: 16px; overflow-wrap: anywhere; }
.fm-wybor-os small { font-size: 13px; color: var(--fm-muted); }
.fm-zaw-wynik { display: flex; flex-direction: column; gap: 14px; }
.fm-zaw-wydarzenie h3 { margin: 0 0 8px; font-size: 18px; color: var(--fm-ink); }
.fm-zaw-wydarzenie p { margin: 0 0 8px; font-size: 13px; color: var(--fm-muted); }

/* -------------------------------------------------------------------------
 * Strona główna – stos zdjęć z rozpoznanym numerem (kartki kładą się jedna na drugą)
 * ---------------------------------------------------------------------- */
.fm-stos { position: relative; aspect-ratio: 4 / 5; isolation: isolate; }
.fm-kartka { position: absolute; inset: 0; margin: 0; border-radius: 4px; overflow: hidden; background: var(--fm-photo);
	box-shadow: 0 18px 40px rgba(0,0,0,.55); border: 6px solid #F2F3F5; border-bottom-width: 6px;
	transform: translate(0, 0) rotate(0deg); opacity: 0; transition: transform .9s cubic-bezier(.2,.8,.2,1), opacity .5s ease; will-change: transform; }
.fm-kartka img { width: 100%; height: 100%; object-fit: cover; display: block; user-select: none; }
.fm-kartka .corner { width: 26px; height: 26px; border-color: rgba(242,243,245,.85); z-index: 2; }
.fm-kartka.is-top { z-index: 3; opacity: 1; }
.fm-kartka.is-pod1 { z-index: 2; opacity: 1; transform: translate(-16px, 10px) rotate(-4deg); }
.fm-kartka.is-pod2 { z-index: 1; opacity: 1; transform: translate(14px, 18px) rotate(3.5deg); }
.fm-kartka.is-pod1 img, .fm-kartka.is-pod2 img { filter: brightness(.55) saturate(.7); }
/* nowa kartka spada z góry na stos */
.fm-stos[data-tryb="gora"] .fm-kartka.is-wejscie { transition: none; opacity: 0; transform: translate(40px, -120px) rotate(9deg) scale(1.06); }
/* tryb „w dół”: górna kartka zjeżdża w dół i odsłania kolejną */
.fm-kartka.is-wyjscie { z-index: 4; opacity: 0; transform: translate(-30px, 115%) rotate(-10deg); transition: transform .9s cubic-bezier(.6,0,.4,1), opacity .9s ease; }
/* celownik na numerze startowym */
.fm-cel { position: absolute; z-index: 3; border: 3px solid var(--fm-orange); box-shadow: 0 0 0 9999px rgba(11,13,16,0), 0 0 18px rgba(255,122,0,.55);
	left: 46%; top: 42%; width: 8%; height: 6%; opacity: 0; transition: all .7s cubic-bezier(.2,.8,.2,1) .35s; pointer-events: none; }
.fm-cel b { position: absolute; left: -3px; top: calc(100% + 3px); padding: 2px 8px; background: var(--fm-orange); color: var(--fm-black);
	font-size: 15px; font-weight: 900; font-style: italic; white-space: nowrap; opacity: 0; transform: translateY(-4px); transition: all .4s ease 1s; }
.fm-kartka.is-top.is-znaleziony .fm-cel { opacity: 1; box-shadow: 0 0 0 9999px rgba(11,13,16,.28), 0 0 18px rgba(255,122,0,.55); }
.fm-kartka.is-top.is-znaleziony .fm-cel b { opacity: 1; transform: none; }
/* panel „Rozpoznano” */
.fm-rozp { z-index: 5; min-width: 230px; }
.fm-rozp-imie { font-size: 18px; font-weight: 800; color: var(--fm-ink); line-height: 1.2; min-height: 0; }
.fm-rozp-imie:empty { display: none; }
.fm-rozp.is-zmiana b, .fm-rozp.is-zmiana .fm-rozp-imie, .fm-rozp.is-zmiana .fm-rozp-wyd { opacity: 0; transform: translateY(6px); }
.fm-rozp b, .fm-rozp-imie, .fm-rozp-wyd { transition: opacity .3s ease, transform .3s ease; }
.fm-stos-kropki { position: absolute; right: 0; bottom: 6px; display: flex; gap: 8px; z-index: 5; }
.fm-stos-kropki button { width: 26px; height: 6px; padding: 0; min-height: 0; border: 0; background: var(--fm-graphite); cursor: pointer; transition: background .3s, width .3s; }
.fm-stos-kropki button[aria-selected="true"] { background: var(--fm-orange); width: 40px; }
@media (prefers-reduced-motion: reduce) {
	.fm-kartka, .fm-cel, .fm-cel b, .fm-kartka.is-wyjscie { transition: opacity .4s ease !important; }
	.fm-kartka.is-pod1, .fm-kartka.is-pod2 { transform: none; }
}
@media (max-width: 640px) {
	.fm-kartka { border-width: 4px; }
	.fm-kartka.is-pod1 { transform: translate(-8px, 6px) rotate(-3deg); }
	.fm-kartka.is-pod2 { transform: translate(8px, 10px) rotate(2.5deg); }
	.fm-rozp { min-width: 0; }
}
/* mniej niż 3 zdjęcia: puste kartki pod spodem, żeby stos wyglądał jak stos */
.fm-stos.is-malo::before, .fm-stos.is-malo::after { content: ""; position: absolute; inset: 0; border-radius: 4px; background: #1B1F25; border: 6px solid #D9DCE0; box-shadow: 0 18px 40px rgba(0,0,0,.5); }
.fm-stos.is-malo::before { z-index: 0; transform: translate(14px, 18px) rotate(3.5deg); }
.fm-stos.is-malo::after { z-index: 0; transform: translate(-16px, 10px) rotate(-4deg); background: #22262C; }
@media (max-width: 640px) {
	.fm-stos.is-malo::before { border-width: 4px; transform: translate(8px, 10px) rotate(2.5deg); }
	.fm-stos.is-malo::after { border-width: 4px; transform: translate(-8px, 6px) rotate(-3deg); }
}

/* Pole „Numer lub nazwisko” na stronie wydarzenia: szersze, czcionka dopasowuje się do tekstu (bib-fit.js). */
.bib.bib-szeroki { flex: 0 1 460px; min-width: min(100%, 280px); }
.bib input[data-fit-max] { font-size: 46px; white-space: nowrap; text-overflow: clip; transition: font-size .12s ease; }
.bib input::placeholder { color: rgba(11,13,16,.38); }
@media (max-width: 640px) { .bib.bib-szeroki { flex: 1 1 100%; } .bib input[data-fit-max] { letter-spacing: .5px; } }

/* -------------------------------------------------------------------------
 * Strona główna – „Jak działa FotoMeta” (animacja 4 kroków, parts/jak-dziala.php + assets/js/jak-dziala.js)
 * ---------------------------------------------------------------------- */
.jd-sekcja { border-top: 1px solid var(--fm-line); }
.jd { display: flex; flex-wrap: wrap; gap: 48px; align-items: center; }
.jd-tekst { flex: 1 1 380px; display: flex; flex-direction: column; gap: 18px; min-width: 0; }
.jd-tekst .kicker { margin: 0; }
.jd-tekst h2 { margin: 0; }
.jd-kroki { list-style: none; margin: 6px 0 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.jd-kroki button { position: relative; width: 100%; display: flex; gap: 16px; align-items: flex-start; text-align: left; padding: 14px 16px 16px; border: 1px solid var(--fm-line); border-radius: 6px; background: transparent; color: var(--fm-ink); font: inherit; cursor: pointer; overflow: hidden; transition: background .3s, border-color .3s; min-height: 0; }
.jd-kroki button b { font-size: 28px; line-height: 1; font-weight: 900; font-style: italic; color: var(--fm-graphite); transition: color .3s; min-width: 40px; }
.jd-kroki button strong { display: block; font-size: 17px; font-weight: 800; text-transform: uppercase; font-style: italic; letter-spacing: .5px; }
.jd-kroki button small { display: grid; grid-template-rows: 0fr; margin-top: 0; font-size: 14px; line-height: 1.55; color: var(--fm-muted); opacity: 0; transition: grid-template-rows .4s ease, opacity .4s ease, margin-top .4s ease; }
.jd-kroki button .jd-op { display: block; min-height: 0; overflow: hidden; }
.jd-mierz .jd-kroki button small { transition: none !important; }
.jd-kroki button[aria-current="step"] { background: rgba(255,122,0,.08); border-color: rgba(255,122,0,.55); }
.jd-kroki button[aria-current="step"] b { color: var(--fm-orange); }
.jd-kroki button[aria-current="step"] small { grid-template-rows: 1fr; margin-top: 4px; opacity: 1; }
.jd-pasek { position: absolute; left: 0; bottom: 0; height: 3px; width: 0; background: var(--fm-orange); }
.jd-kroki button[aria-current="step"] .jd-pasek { animation: jd-pasek var(--jd-czas, 4.8s) linear forwards; }
.jd.is-pauza .jd-kroki button[aria-current="step"] .jd-pasek { animation-play-state: paused; }
@keyframes jd-pasek { to { width: 100%; } }
.jd-linki { display: flex; flex-wrap: wrap; gap: 8px 22px; margin: 4px 0 0; font-weight: 700; font-size: 15px; }
.jd-linki a { color: var(--fm-orange); text-decoration: none; }
.jd-linki a:hover { text-decoration: underline; }

.jd-scena { flex: 1 1 440px; position: relative; aspect-ratio: 4 / 3; min-width: 0; border-radius: 8px; overflow: hidden;
	background: radial-gradient(120% 90% at 70% 10%, #1D2229 0%, #111418 60%, #0B0D10 100%); border: 1px solid var(--fm-line); }
.jd-scena .corner { width: 26px; height: 26px; border-color: rgba(201,205,211,.45); z-index: 6; }
.jd-sc { position: absolute; inset: 0; opacity: 0; visibility: hidden; transition: opacity .45s ease, visibility 0s linear .45s; }
.jd[data-krok="1"] .jd-sc1, .jd[data-krok="2"] .jd-sc2, .jd[data-krok="3"] .jd-sc3, .jd[data-krok="4"] .jd-sc4 { opacity: 1; visibility: visible; transition: opacity .45s ease; }

/* zdjęcie (karta) z biegaczem i plakietką */
.jd-kad { position: absolute; display: block; width: 27%; aspect-ratio: 3 / 4; border-radius: 4px; overflow: hidden; border: 4px solid #F2F3F5;
	background: linear-gradient(180deg, #3A4048 0%, #22262C 55%, #1A1D22 100%); box-shadow: 0 14px 30px rgba(0,0,0,.55); }
.jd-kad img { position: absolute; left: 50%; top: 52%; width: 130%; transform: translate(-50%, -50%); opacity: .95; }
.jd-plak { position: absolute; left: 36%; top: 47%; width: 30%; height: 13%; display: grid; place-items: center; background: #F4F4F1; color: #0B0D10;
	border-radius: 2px; font-weight: 900; font-size: clamp(9px, 1.6vw, 15px); letter-spacing: .5px; box-shadow: 0 0 0 1px rgba(0,0,0,.25); }
.jd-licznik { position: absolute; left: 6%; bottom: 7%; padding: 8px 14px; background: var(--fm-black); border-left: 4px solid var(--fm-orange); color: var(--fm-ink); font-size: 13px; font-weight: 700; z-index: 5; }
.jd-licznik b { font-size: 20px; font-style: italic; font-weight: 900; margin-right: 4px; }

/* 1. Fotografujemy: zdjęcia wpadają z błyskiem */
.jd-sc1 .jd-a { left: 9%; top: 16%; transform: rotate(-7deg); } .jd-sc1 .jd-b { left: 37%; top: 10%; transform: rotate(2deg); } .jd-sc1 .jd-c { left: 64%; top: 18%; transform: rotate(8deg); }
.jd[data-krok="1"] .jd-sc1 .jd-kad { animation: jd-wpad .7s cubic-bezier(.2,.8,.2,1) both; }
.jd[data-krok="1"] .jd-sc1 .jd-b { animation-delay: .55s; } .jd[data-krok="1"] .jd-sc1 .jd-c { animation-delay: 1.1s; }
@keyframes jd-wpad { from { opacity: 0; translate: 0 -60px; scale: 1.15; } to { opacity: 1; translate: 0 0; scale: 1; } }
.jd-blysk { position: absolute; inset: 0; background: #fff; opacity: 0; z-index: 4; pointer-events: none; }
.jd[data-krok="1"] .jd-blysk { animation: jd-blysk 1.65s steps(1) 1; }
@keyframes jd-blysk { 0% { opacity: .55; } 6% { opacity: 0; } 33% { opacity: .45; } 39% { opacity: 0; } 66% { opacity: .4; } 72% { opacity: 0; } }

/* 2. Czytamy numery: skan + 3 czytniki */
.jd-sc2 .jd-duza { left: 8%; top: 9%; width: 42%; }
.jd-skan { position: absolute; left: 8%; width: 42%; height: 3px; top: 9%; background: var(--fm-orange); box-shadow: 0 0 16px 4px rgba(255,122,0,.55); opacity: 0; }
.jd[data-krok="2"] .jd-skan { animation: jd-skan 1.4s ease-in-out .2s 2 alternate; }
@keyframes jd-skan { 0% { opacity: 1; top: 10%; } 100% { opacity: 1; top: 72%; } }
.jd-ramka { position: absolute; left: 22.1%; top: 43%; width: 14.8%; height: 12%; border: 3px solid var(--fm-orange); box-shadow: 0 0 14px rgba(255,122,0,.5);
	color: var(--fm-black); font-weight: 900; font-style: italic; font-size: 0; opacity: 0; }
.jd[data-krok="2"] .jd-ramka { animation: jd-poj .4s ease 1.9s both; }
.jd-czyt { position: absolute; left: 57%; width: 36%; display: flex; justify-content: space-between; align-items: center; padding: 10px 14px; background: #14171C; border: 1px solid var(--fm-line); border-left: 4px solid var(--fm-orange); color: var(--fm-ink); opacity: 0; }
.jd-czyt i { font-style: normal; font-size: 12px; font-weight: 700; color: var(--fm-muted); text-transform: uppercase; letter-spacing: 1px; }
.jd-czyt b { font-size: 18px; font-weight: 900; font-style: italic; color: var(--fm-orange); }
.jd-sc2 .jd-czyt:nth-of-type(4) { top: 18%; } .jd-sc2 .jd-czyt:nth-of-type(5) { top: 36%; } .jd-sc2 .jd-czyt:nth-of-type(6) { top: 54%; }
.jd[data-krok="2"] .jd-czyt { animation: jd-wjazd .45s ease both; }
.jd[data-krok="2"] .jd-czyt:nth-of-type(4) { animation-delay: 2.1s; } .jd[data-krok="2"] .jd-czyt:nth-of-type(5) { animation-delay: 2.5s; } .jd[data-krok="2"] .jd-czyt:nth-of-type(6) { animation-delay: 2.9s; }
@keyframes jd-wjazd { from { opacity: 0; translate: 24px 0; } to { opacity: 1; translate: 0 0; } }
@keyframes jd-poj { from { opacity: 0; scale: 1.4; } to { opacity: 1; scale: 1; } }

/* 3. Łączymy zdjęcia: zasłonięty numer → linie → #72 */
.jd-sc3 .jd-kad { top: 22%; width: 25%; } .jd-sc3 .jd-a { left: 6%; } .jd-sc3 .jd-b { left: 37.5%; top: 30%; } .jd-sc3 .jd-c { left: 69%; }
.jd-zaslon .jd-plak { color: transparent; }
.jd-zaslon::after { content: ""; position: absolute; left: 32%; top: 43%; width: 38%; height: 20%; border-radius: 40% 45% 40% 50%; background: #C08A6B; box-shadow: inset -4px -3px 0 rgba(0,0,0,.18); }
.jd-linie { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.jd-linie path { fill: none; stroke: var(--fm-orange); stroke-width: .6; stroke-dasharray: 2 1.4; vector-effect: non-scaling-stroke; stroke-width: 3; opacity: 0; }
.jd[data-krok="3"] .jd-linie path { animation: jd-linia 1s ease .6s both; }
@keyframes jd-linia { from { opacity: 0; stroke-dashoffset: 40; } to { opacity: 1; stroke-dashoffset: 0; } }
.jd-pyt { position: absolute; left: 50%; top: 20%; translate: -50% 0; padding: 4px 12px; background: var(--fm-black); border: 2px solid var(--fm-graphite); color: var(--fm-ink); font-size: 22px; font-weight: 900; font-style: italic; z-index: 3; }
.jd[data-krok="3"] .jd-pyt { animation: jd-pyt 3.4s ease both; }
@keyframes jd-pyt { 0%, 55% { border-color: var(--fm-graphite); } 60% { scale: 1.25; } 70%, 100% { scale: 1; border-color: var(--fm-orange); color: var(--fm-orange); } }
.jd[data-krok="3"] .jd-pyt::after { content: ""; }
.jd-sc3 .jd-pyt { font-size: 0; }
.jd-sc3 .jd-pyt::before { content: "?"; font-size: 22px; }
.jd[data-krok="3"] .jd-pyt::before { animation: jd-pyt-t 3.4s steps(1) both; }
@keyframes jd-pyt-t { 0%, 60% { content: "?"; } 61%, 100% { content: "#72"; } }
.jd-tag { position: absolute; bottom: 9%; padding: 6px 12px; background: #14171C; border: 1px solid rgba(255,122,0,.55); color: var(--fm-ink); font-size: 13px; font-weight: 800; opacity: 0; }
.jd-t1 { left: 8%; } .jd-t2 { left: 38%; } .jd-t3 { left: 66%; }
.jd[data-krok="3"] .jd-tag { animation: jd-wjazd .4s ease both; }
.jd[data-krok="3"] .jd-t1 { animation-delay: 1.2s; } .jd[data-krok="3"] .jd-t2 { animation-delay: 1.5s; } .jd[data-krok="3"] .jd-t3 { animation-delay: 1.8s; }

/* 4. Wpisujesz numer: plakietka + siatka Twoich zdjęć */
.jd-bib { position: absolute; left: 7%; top: 9%; width: 40%; padding: 12px 16px 10px; background: #F2F3F5; color: var(--fm-black); border-radius: 6px; border-top: 6px solid var(--fm-orange); rotate: -2deg; box-shadow: 0 14px 30px rgba(0,0,0,.5); z-index: 2; }
.jd-bib small { display: block; font-size: 10px; font-weight: 800; letter-spacing: 3px; color: var(--fm-graphite); }
.jd-bib b { display: flex; align-items: center; font-size: clamp(26px, 4vw, 46px); line-height: 1.05; font-weight: 900; }
.jd-pisz { display: inline-block; overflow: hidden; white-space: nowrap; width: 2ch; }
.jd[data-krok="4"] .jd-pisz { animation: jd-pisz .7s steps(2) .3s both; }
@keyframes jd-pisz { from { width: 0; } to { width: 2ch; } }
.jd-kursor { display: inline-block; width: 3px; height: .9em; margin-left: 4px; background: var(--fm-orange); animation: jd-kursor 1s steps(1) infinite; }
@keyframes jd-kursor { 50% { opacity: 0; } }
.jd-siatka { position: absolute; left: 7%; right: 7%; top: 40%; bottom: 20%; display: grid; grid-template-columns: repeat(6, 1fr); gap: 3%; }
.jd-siatka .jd-kad { position: relative; width: auto; border-width: 3px; opacity: 0; }
.jd[data-krok="4"] .jd-siatka .jd-kad { animation: jd-wpad .5s cubic-bezier(.2,.8,.2,1) both; }
.jd[data-krok="4"] .jd-siatka .jd-kad:nth-child(1) { animation-delay: 1.1s; } .jd[data-krok="4"] .jd-siatka .jd-kad:nth-child(2) { animation-delay: 1.25s; }
.jd[data-krok="4"] .jd-siatka .jd-kad:nth-child(3) { animation-delay: 1.4s; } .jd[data-krok="4"] .jd-siatka .jd-kad:nth-child(4) { animation-delay: 1.55s; }
.jd[data-krok="4"] .jd-siatka .jd-kad:nth-child(5) { animation-delay: 1.7s; } .jd[data-krok="4"] .jd-siatka .jd-kad:nth-child(6) { animation-delay: 1.85s; }
.jd-siatka .jd-plak { font-size: clamp(6px, 1vw, 10px); }
.jd-sc4 .jd-licznik { left: auto; right: 6%; }

@media (prefers-reduced-motion: reduce) {
	.jd *, .jd *::before, .jd *::after { animation-duration: .01s !important; animation-delay: 0s !important; transition-duration: .01s !important; }
}
@media (max-width: 640px) {
	.jd { gap: 28px; }
	.jd-czyt { padding: 6px 8px; } .jd-czyt b { font-size: 14px; } .jd-czyt i { font-size: 10px; }
	.jd-tag { font-size: 11px; padding: 4px 8px; } .jd-licznik { font-size: 11px; padding: 6px 10px; } .jd-licznik b { font-size: 15px; }
}

/* Panel: główna kolumna zawsze na całą szerokość (na telefonie nie rozpycha się przez treść). */
.fm-panel-main { align-self: stretch; min-width: 0; }
.fm-wyd-wiecej { font-size: 13px; line-height: 1.45; color: var(--fm-silver); }
.fm-wyd-wiecej a { display: block; width: fit-content; margin-top: 2px; color: var(--fm-orange); font-weight: 700; }
/* Strona główna: większy numer na karcie startowej. */
.search-row .bib input { font-size: 84px; line-height: 1; letter-spacing: 0; }
@media (max-width: 640px) { .search-row .bib input { font-size: 64px; } }
.event-card .meta .card-foto { margin: 2px 0 0; font-size: 13px; color: var(--fm-quiet); }

/* Długie adresy w opisach (np. link do regulaminu biegu) nie rozpychają strony na telefonie. */
.event-desc, .event-desc a, .entry-content a, .prose a { overflow-wrap: anywhere; word-break: break-word; }

/* „Tak, to ja” – napis w pierwszej linii, numer i imię z nazwiskiem zawsze w drugiej. */
.btn.fm-tak-ja { flex-direction: column; align-items: flex-start; gap: 2px; min-height: 52px; padding-top: 8px; padding-bottom: 8px; text-align: left; height: auto; }
.btn.fm-tak-ja small { display: block; font-size: 13px; font-weight: 700; font-style: normal; letter-spacing: 0; text-transform: none; line-height: 1.3; }

/* Komunikat po akcji (np. „Selfie przyjęte”) przeniesiony do sekcji, której dotyczy. */
.fm-alert.fm-alert-przy { margin: 0 0 4px; scroll-margin-top: 100px; }

/* Telefon – wynik wyszukiwania: numer, zdjęcia i „czeka na potwierdzenie”, zaraz pod nimi pobieranie,
   dopiero potem selfie, konto i informacja o prywatności (wcześniej pobieranie lądowało na samym dole). */
@media (max-width: 760px) {
	#wyniki.split { flex-direction: column; align-items: stretch; gap: 20px; }
	#wyniki > .fm-wyn { display: contents !important; } /* nadpisuje display:flex wpisany w szablonie */
	#wyniki > .fm-wyn > * { order: 3; }
	#wyniki > .fm-wyn > .fm-wyn-gora { order: 1; }
	#wyniki > .fm-pak { order: 2; flex: none !important; width: 100%; }
}

/* Atrybut hidden zawsze ukrywa – nawet gdy element ma własne display (flex, grid, inline-flex). */
[hidden] { display: none !important; }

/* Listy rozwijane wyglądają tak samo na iPhonie (Safari), Androidzie i komputerze: bez wyglądu systemowego,
   z własną pomarańczową strzałką. Tekst nie wchodzi pod strzałkę. */
.field select, select.input {
	-webkit-appearance: none; -moz-appearance: none; appearance: none;
	padding-right: 44px; text-overflow: ellipsis; white-space: nowrap; overflow: hidden;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='9' viewBox='0 0 14 9'%3E%3Cpath d='M1 1.5l6 6 6-6' fill='none' stroke='%23FF7A00' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
	background-repeat: no-repeat; background-position: right 16px center; background-size: 14px 9px;
}
.field select::-ms-expand { display: none; }

/* Telefon: tablica z numerem na środku (pod nią wybór wydarzenia i przycisk na całą szerokość). */
@media (max-width: 640px) {
	.search-row .bib { margin-left: auto; margin-right: auto; }
}

/* 0.9.51 – poprawki na telefon po przeglądzie */
.org-table-hint { display: none; margin: 0 0 8px; font-size: 13px; font-weight: 700; color: var(--fm-muted); }
.fm-wyd-wiecej a { display: inline-block; padding: 10px 0; }
@media (max-width: 640px) {
	.org-table-hint { display: block; }
	.fm-ck-banner { left: 8px; right: 8px; bottom: 8px; padding: 14px 14px 14px 20px; gap: 10px; }
	.fm-ck-text { flex-basis: 100%; gap: 4px; }
	.fm-ck-text h2 { font-size: 16px; }
	.fm-ck-text p { font-size: 13px; line-height: 1.45; }
	.fm-ck-actions { display: grid; grid-template-columns: auto 1fr 1fr; gap: 8px; width: 100%; }
	.fm-ck-link, .fm-ck-btn { min-height: 42px; padding: 0 10px; font-size: 14px; }
	.fm-ck-actions .fm-ck-btn:only-child { grid-column: 1 / -1; }
}

/* 0.9.52 – telefon: „Twoje emocje. Nasze kadry.” w jednej linii, licznik pobranych zdjęć na środku */
@media (max-width: 860px) { .hero-licznik { display: flex; width: fit-content; max-width: calc(100% - 32px); margin: 14px auto 0; justify-content: center; } }
@media (max-width: 520px) { .hero .eyebrow { font-size: 11px; letter-spacing: 3px; white-space: nowrap; } }
/* 0.9.53 – bez pojedynczych słów w ostatniej linii akapitów na górze strony („mety.”) */
.hero .lead { text-wrap: pretty; }
/* 0.9.54 – strona wydarzenia: szerokie pole „Numer lub nazwisko” obok przycisku (zamiast wąskiej kolumny siatki) */
.form-grid.fm-szukaj-wyd { display: flex; flex-wrap: wrap; align-items: center; }
.fm-szukaj-wyd .bib.bib-szeroki { flex: 0 1 480px; }
.fm-szukaj-wyd > .btn { flex: 0 0 auto; min-width: 200px; }
@media (max-width: 640px) { .fm-szukaj-wyd > .btn { flex: 1 1 100%; } }
