/* Echo Dzieciom — page-level styles for the WordPress theme.
   Tokens come from colors_and_type.css (enqueued first).
   Asset paths are relative to this file (assets/css/theme.css → ../img/...).
*/

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; background: var(--bg-1); font-family: var(--font-body); color: var(--fg-1); -webkit-font-smoothing: antialiased; }

.app { min-height: 100vh; display: flex; flex-direction: column; }
main#main-content { flex: 1; }

/* ==========================================================================
   Subpage frame — biala karta z czerwonym konturem na niebieskim tle
   Aktywuje sie przez body.has-page-frame (kazda podstrona oprocz home + kontakt).
   ========================================================================== */
body.has-page-frame {
	background:
		radial-gradient(1.5px 1.5px at 12% 22%, rgba(255,255,255,0.7) 50%, transparent 51%),
		radial-gradient(1.5px 1.5px at 78% 14%, rgba(255,255,255,0.55) 50%, transparent 51%),
		radial-gradient(2px 2px at 34% 68%, rgba(255,255,255,0.6) 50%, transparent 51%),
		radial-gradient(1.5px 1.5px at 88% 76%, rgba(255,255,255,0.5) 50%, transparent 51%),
		radial-gradient(1.5px 1.5px at 56% 38%, rgba(255,255,255,0.45) 50%, transparent 51%),
		linear-gradient(180deg, #cce8f8 0%, #2BB6E6 100%);
	background-attachment: fixed;
}

.page-frame {
	max-width: 1100px;
	margin: 40px auto 80px;
	background: #fff;
	border: 3px solid var(--ed-tomato);
	border-radius: 28px;
	box-shadow: 0 18px 44px rgba(31, 42, 51, 0.22);
	padding: 48px 56px;
	position: relative;
}

/* Sekcje wewnatrz ramki nie potrzebuja juz wlasnego tla / paddingu */
.page-frame > .konkursy,
.page-frame > .numery,
.page-frame > .filmy,
.page-frame > .audio-list,
.page-frame > .contact,
.page-frame > .iskierka-section {
	padding: 0;
	background: transparent;
	min-height: 0;
}
.page-frame > .konkursy > h1,
.page-frame > .numery > h1,
.page-frame > .filmy > h1,
.page-frame > .audio-list > h1,
.page-frame > .contact > .contact-inner > h2 { margin-top: 0; }

/* Formularz Kontakt wewnatrz ramki — page-frame juz daje kontur i shadow,
   wiec .contact-inner traci wlasna ramke i zostaje "wpuszczony" w karte. */
.page-frame > .contact > .contact-inner {
	background: transparent;
	border: 0;
	box-shadow: none;
	padding: 0;
	max-width: none;
}
.page-frame > .iskierka-section::before { display: none; }
.page-frame > .iskierka-section + .contact { margin-top: 28px; }

@media (max-width: 900px) {
	.page-frame { margin: 20px 14px 40px; padding: 28px 22px; border-radius: 22px; }
}

/* Accessibility */
.screen-reader-text { position: absolute; left: -10000px; top: auto; width: 1px; height: 1px; overflow: hidden; }
.screen-reader-text:focus { position: fixed; left: 16px; top: 16px; width: auto; height: auto; padding: 8px 14px; background: var(--ed-sun); color: var(--ed-ink); z-index: 1000; border-radius: 8px; }

/* ==========================================================================
   Top bar
   ========================================================================== */
.topbar { background: #fff; border-bottom: 1px solid var(--border-soft); padding: 14px 36px; display: flex; align-items: center; gap: 28px; position: sticky; top: 0; z-index: 50; }
.topbar .logo, .topbar .custom-logo { height: 56px; width: auto; cursor: pointer; }
.topbar .logo-link { display: inline-flex; align-items: center; }

/* Primary menu (wp_nav_menu output) */
.topbar .menu { display: flex; }
.topbar .menu-list,
.topbar .sub-menu { list-style: none; margin: 0; padding: 0; }
.topbar .menu-list { display: flex; gap: 28px; }

.topbar .menu-list .menu-item { position: relative; }
.topbar .menu-list .menu-item > a {
	display: inline-flex; align-items: center; gap: 6px;
	font-family: var(--font-display); font-weight: normal; font-size: 21px;
	letter-spacing: 0.06em; text-transform: uppercase;
	color: var(--ed-ink); cursor: pointer; padding: 6px 0;
	text-decoration: none;
}
.topbar .menu-list .menu-item > a:hover,
.topbar .menu-list .menu-item.current-menu-item > a,
.topbar .menu-list .menu-item.current-menu-parent > a,
.topbar .menu-list .menu-item.current-menu-ancestor > a { color: var(--ed-tomato); }
.topbar .menu-list > .menu-item.current-menu-item > a::after,
.topbar .menu-list > .menu-item.current-menu-parent > a::after,
.topbar .menu-list > .menu-item.current-menu-ancestor > a::after {
	content: ""; position: absolute; left: 0; right: 0; bottom: -4px; height: 3px;
	background: var(--ed-tomato); border-radius: 2px;
}

/* Caret on items that have children */
.topbar .menu-list .menu-item-has-children > a::after {
	content: ""; display: inline-block; width: 0; height: 0; margin-left: 4px;
	border-left: 5px solid transparent; border-right: 5px solid transparent;
	border-top: 6px solid currentColor;
	transition: transform var(--dur-fast) var(--ease-out);
	transform-origin: 50% 30%;
}
.topbar .menu-list .menu-item-has-children:hover > a::after,
.topbar .menu-list .menu-item-has-children:focus-within > a::after { transform: rotate(180deg); }

/* Sub-menu (dropdown panel) */
.topbar .menu-list .sub-menu {
	position: absolute; top: 100%; left: -14px; margin-top: 10px;
	min-width: 240px; background: #fff;
	border: var(--stroke-thin); border-radius: var(--r-md);
	box-shadow: var(--shadow-pop); padding: 10px;
	display: flex; flex-direction: column; gap: 2px;
	opacity: 0; transform: translateY(-6px); pointer-events: none;
	transition: opacity var(--dur-fast) var(--ease-out), transform var(--dur-fast) var(--ease-out);
	z-index: 60;
}
.topbar .menu-list .sub-menu::before { content: ""; position: absolute; inset: -10px 0 auto 0; height: 10px; }
.topbar .menu-list .menu-item-has-children:hover > .sub-menu,
.topbar .menu-list .menu-item-has-children:focus-within > .sub-menu {
	opacity: 1; transform: translateY(0); pointer-events: auto;
}
.topbar .menu-list .sub-menu .menu-item > a {
	font-family: var(--font-display); font-weight: normal; font-size: 16px;
	letter-spacing: 0.04em; text-transform: uppercase;
	color: var(--ed-ink); padding: 10px 14px; border-radius: var(--r-sm);
	display: block; white-space: nowrap; text-decoration: none;
}
.topbar .menu-list .sub-menu .menu-item > a:hover { background: var(--bg-3); color: var(--ed-tomato); }
.topbar .menu-list .sub-menu .menu-item.current-menu-item > a { background: var(--ed-sun); color: var(--ed-ink); }
.topbar .menu-list .sub-menu .menu-item.current-menu-item > a::after { display: none; }

/* Right side: socials + CTA */
.topbar .right { margin-left: auto; display: flex; align-items: center; gap: 14px; }
.topbar .social { width: 44px; height: 44px; border-radius: 50%; background: var(--ed-sky); display: flex; align-items: center; justify-content: center; color: #fff; cursor: pointer; transition: transform var(--dur-fast); text-decoration: none; }
.topbar .social svg { width: 22px; height: 22px; }
.topbar .social:hover { transform: translateY(-2px); }
.topbar .social.fb { background: #1488C9; }
.cta {
	display: inline-flex; align-items: center; justify-content: center;
	font-family: var(--font-display); font-weight: normal; font-size: 13px;
	letter-spacing: 0.06em; text-transform: uppercase;
	padding: 10px 18px; border-radius: var(--r-pill);
	background: var(--ed-tomato); color: #fff;
	border: var(--stroke-thin); box-shadow: var(--shadow-pop-sm);
	cursor: pointer; transition: transform var(--dur-fast); text-decoration: none;
}
.cta:hover { transform: translateY(-2px); box-shadow: 0 4px 0 var(--border-firm); color: #fff; }

/* CTA modifier: large hero/iskierka button */
.cta--lg { font-family: 'Luckiest Guy', 'Comic Sans MS', system-ui, sans-serif; font-size: 18px; padding: 14px 26px; border-radius: 40px; }
.cta--sun { background: var(--ed-sun); color: var(--ed-ink); }
.cta--sun:hover { color: var(--ed-ink); }

/* ==========================================================================
   Hero
   ========================================================================== */
.hero { position: relative; padding: 64px 36px 96px; background-position: center; background-size: cover; overflow: hidden; }
.hero::before { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(255,255,255,0.0) 0%, rgba(255,255,255,0.4) 100%); }
.hero-inner { position: relative; max-width: 1100px; margin: 0 auto; display: grid; grid-template-columns: 1.1fr 1fr; gap: 48px; align-items: center; }
.hero .eyebrow { font-family: var(--font-body); font-weight: 800; font-size: 13px; letter-spacing: 0.18em; text-transform: uppercase; color: #fff; }
.hero h1 { font-family: var(--font-display); font-weight: normal; font-size: 76px; line-height: 0.95; color: var(--ed-tomato); margin: 12px 0 8px; letter-spacing: -0.01em; }
.hero .script { font-family: var(--font-script); font-weight: 700; font-size: 44px; color: var(--ed-ink); line-height: 1; transform: rotate(-2deg); display: inline-block; }
.hero p { font-family: var(--font-body); font-size: 18px; color: var(--ed-ink); margin: 22px 0 28px; max-width: 480px; }
.hero .actions { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-art { position: relative; display: flex; align-items: center; justify-content: center; }
.hero-art .magazine { height: 380px; transform: rotate(4deg); filter: drop-shadow(0 12px 0 rgba(0,0,0,0.18)); }
.hero-art .iskierka { position: absolute; left: -40px; bottom: -10px; height: 220px; transform: rotate(-6deg); filter: drop-shadow(0 6px 0 rgba(0,0,0,0.12)); }

/* ==========================================================================
   Section labels (BAW SIE / ODKRYWAJ / KOLORUJ)
   ========================================================================== */
.labels { background: var(--ed-sky); padding: 28px 36px; display: flex; gap: 56px; justify-content: center; flex-wrap: wrap; }
.labels .label { font-family: var(--font-display); font-weight: normal; font-size: 38px; color: #fff; letter-spacing: 0.04em; text-shadow: 0 3px 0 var(--ed-blueberry); cursor: default; transition: transform var(--dur-fast) var(--ease-bounce); }
.labels .label:hover { transform: translateY(-4px) rotate(-2deg); color: var(--ed-sun); }

/* ==========================================================================
   About
   ========================================================================== */
.about { padding: 96px 36px; background: var(--bg-1); }
.about-inner { max-width: 1100px; margin: 0 auto; display: grid; grid-template-columns: 1fr 1.2fr; gap: 56px; align-items: center; }
.about h2 { font-family: var(--font-display); font-weight: normal; font-size: 48px; color: var(--ed-sky); margin-bottom: 18px; line-height: 1.05; }
.about p { font-family: var(--font-body); font-size: 17px; line-height: 1.65; color: var(--fg-1); margin-bottom: 14px; }
.about .read-more { font-family: var(--font-display); font-weight: normal; color: var(--ed-tomato); font-size: 16px; cursor: pointer; text-decoration: none; }
.about .read-more:hover { text-decoration: underline; }
.about-photo { aspect-ratio: 1/1; border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--shadow-card); border: var(--stroke); transform: rotate(-1deg); }
.about-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* ==========================================================================
   Iskierka
   ========================================================================== */
.iskierka-section { padding: 80px 36px; background: var(--bg-2); position: relative; overflow: hidden; }
.iskierka-section::before { content: ""; position: absolute; inset: 0; background: var(--ed-iskierka-bg) center/cover; opacity: 0.18; }
.iskierka-inner { position: relative; max-width: 1100px; margin: 0 auto; display: grid; grid-template-columns: 0.8fr 1fr; gap: 48px; align-items: center; }
.iskierka-inner img { height: 360px; justify-self: center; filter: drop-shadow(0 10px 0 rgba(0,0,0,0.12)); }
.iskierka-inner h3 { font-family: var(--font-display); font-weight: normal; color: var(--ed-tomato); font-size: 56px; line-height: 1; margin: 0 0 8px; }
.iskierka-inner .small-eyebrow { font-family: var(--font-body); font-weight: 800; font-size: 13px; letter-spacing: 0.18em; color: var(--ed-blueberry); text-transform: uppercase; }
.iskierka-inner p { font-size: 18px; line-height: 1.65; color: var(--fg-1); margin: 18px 0; max-width: 460px; white-space: pre-line; }

/* ==========================================================================
   World children grid
   ========================================================================== */
.world { padding: 96px 36px; background: var(--bg-1); }
.world-inner { max-width: 1100px; margin: 0 auto; }
.world h2 { font-family: var(--font-display); font-weight: normal; font-size: 48px; color: var(--ed-tomato); text-align: center; margin: 0 0 8px; }
.world .sub { text-align: center; font-family: var(--font-script); color: var(--ed-ink); font-size: 30px; margin-bottom: 36px; }
.world-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.world-card { aspect-ratio: 1/1; border-radius: var(--r-md); overflow: hidden; position: relative; border: var(--stroke-thin); box-shadow: var(--shadow-card); cursor: pointer; transition: transform var(--dur-base) var(--ease-bounce); }
.world-card:hover { transform: translateY(-4px) rotate(-1deg); }
.world-card img { width: 100%; height: 100%; object-fit: cover; transition: transform var(--dur-slow); display: block; }
.world-card:hover img { transform: scale(1.06); }
.world-card .country { position: absolute; left: 10px; bottom: 10px; right: 10px; background: var(--ed-sun); border: var(--stroke-thin); border-radius: var(--r-pill); padding: 5px 12px; font-family: var(--font-display); font-weight: normal; font-size: 13px; text-align: center; color: var(--ed-ink); box-shadow: var(--shadow-pop-sm); }

/* ==========================================================================
   Editorial team
   ========================================================================== */
.team { padding: 80px 36px; background: var(--bg-3); }
.team-inner { max-width: 1100px; margin: 0 auto; }
.team h2 { font-family: var(--font-display); font-weight: normal; color: var(--ed-sky); font-size: 44px; text-align: center; margin: 0 0 36px; }
.team-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 28px; max-width: 720px; margin: 0 auto; }
.team-card { background: #fff; border-radius: var(--r-md); padding: 22px; text-align: center; box-shadow: var(--shadow-card); border: var(--stroke-thin); transition: transform var(--dur-base) var(--ease-bounce); }
.team-card:hover { transform: translateY(-4px); }
.team-card .avatar { width: 130px; height: 130px; border-radius: 50%; overflow: hidden; margin: 0 auto 14px; border: var(--stroke); background: var(--ed-cream); }
.team-card .avatar img { width: 100%; height: 100%; object-fit: cover; display: block; }
.team-card .pencil { width: 130px; height: 130px; margin: 0 auto 14px; display: flex; align-items: center; justify-content: center; }
.team-card .pencil img { height: 130px; }
.team-card .name { font-family: var(--font-display); font-weight: normal; font-size: 20px; color: var(--ed-tomato); margin: 0; }
.team-card .role { font-family: var(--font-body); font-size: 14px; color: var(--fg-2); margin-top: 4px; }

/* ==========================================================================
   Contact
   ========================================================================== */
.contact { padding: 96px 36px; background: linear-gradient(180deg, #e8f6fd 0%, #2BB6E6 100%); position: relative; }
.contact-inner { max-width: 720px; margin: 0 auto; background: #fff; border: var(--stroke); border-radius: var(--r-lg); box-shadow: var(--shadow-pop); padding: 40px 44px; position: relative; }
.contact h2 { font-family: var(--font-display); font-weight: normal; color: var(--ed-tomato); font-size: 44px; margin: 0 0 6px; text-align: center; }
.contact .lead { font-family: var(--font-script); color: var(--ed-ink); font-size: 26px; text-align: center; margin-bottom: 28px; }
.contact .form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.contact .field { display: flex; flex-direction: column; gap: 6px; }
.contact .field.full { grid-column: span 2; }
.contact label { font-family: var(--font-display); font-weight: normal; font-size: 13px; }
.contact input, .contact textarea { font-family: var(--font-body); font-size: 14px; padding: 12px 14px; border: var(--stroke-thin); border-radius: var(--r-md); background: var(--bg-2); outline: none; }
.contact input:focus, .contact textarea:focus { border-color: var(--ed-sky); background: #fff; }
.contact textarea { min-height: 110px; resize: vertical; }
.contact button { grid-column: span 2; justify-self: center; font-family: var(--font-display); font-weight: normal; padding: 14px 36px; border-radius: var(--r-pill); border: var(--stroke-thin); background: var(--ed-tomato); color: #fff; box-shadow: var(--shadow-pop); text-transform: uppercase; letter-spacing: 0.06em; font-size: 14px; cursor: pointer; transition: transform var(--dur-fast); }
.contact button:hover { transform: translateY(-2px); box-shadow: 0 6px 0 var(--border-firm); }
.contact .thanks { text-align: center; padding: 40px 0; font-family: var(--font-display); color: var(--ed-leaf); font-size: 22px; }

/* Kontakt: checkbox zgody pod treścią wiadomości */
.contact .kontakt-consent { border: 0; padding: 0; margin: 4px 0 0; }
.contact .kontakt-consent legend {
	font-family: var(--font-display); font-weight: normal; font-size: 13px;
	color: var(--ed-blueberry); padding: 0; margin-bottom: 8px;
}
.contact .kontakt-consent label {
	display: grid; grid-template-columns: auto 1fr; gap: 12px; align-items: start;
	font-family: var(--font-body); font-weight: 400; font-size: 13px; line-height: 1.5;
	color: var(--ed-ink); text-transform: none; letter-spacing: 0;
}
.contact .kontakt-consent input[type="checkbox"] {
	width: 20px; height: 20px; margin-top: 1px;
	accent-color: var(--ed-tomato); flex: 0 0 auto;
}

/* ==========================================================================
   Footer
   ========================================================================== */
.footer { background: var(--ed-ink); color: #fff; padding: 36px; text-align: center; font-family: var(--font-body); font-size: 14px; line-height: 1.7; }
.footer a { color: var(--ed-sun); text-decoration: none; }
.footer a:hover { color: var(--ed-sun); text-decoration: underline; }
.footer .small { color: rgba(255,255,255,0.6); font-size: 12px; margin-top: 12px; }
.footer .footer-menu-list { list-style: none; padding: 0; margin: 12px 0; display: flex; gap: 18px; justify-content: center; flex-wrap: wrap; font-family: var(--font-display); text-transform: uppercase; letter-spacing: 0.06em; font-size: 13px; }

/* ==========================================================================
   Konkursy / Numery shared
   ========================================================================== */
.konkursy { padding: 64px 36px; background: var(--bg-2); min-height: 60vh; }
.konkursy h1 { font-family: var(--font-display); font-weight: normal; color: var(--ed-tomato); font-size: 56px; text-align: center; margin: 0 0 12px; }
.konkursy .sub { text-align: center; font-family: var(--font-script); color: var(--ed-ink); font-size: 26px; margin-bottom: 36px; }
.konkursy-grid { max-width: 1100px; margin: 0 auto; display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.konkurs-card { background: #fff; border-radius: var(--r-md); border: var(--stroke); box-shadow: var(--shadow-pop); padding: 22px; transition: transform var(--dur-base) var(--ease-bounce); cursor: pointer; color: var(--fg-1); }
.konkurs-card:hover { transform: translateY(-4px) rotate(-1deg); }
.konkurs-card .badge { display: inline-flex; align-items: center; gap: 6px; padding: 4px 12px; border-radius: var(--r-pill); background: var(--ed-sun); border: var(--stroke-thin); font-family: var(--font-display); font-weight: normal; font-size: 11px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ed-ink); margin-bottom: 12px; }
.konkurs-card .badge.tomato { background: var(--ed-tomato); color: #fff; }
.konkurs-card .badge.leaf { background: var(--ed-leaf); color: #fff; }
.konkurs-card h3 { font-family: var(--font-display); font-weight: normal; font-size: 24px; color: var(--ed-tomato); margin: 0 0 8px; line-height: 1.15; }
.konkurs-card p { font-family: var(--font-body); font-size: 14px; line-height: 1.5; color: var(--fg-2); }
.konkurs-card .meta { display: flex; justify-content: space-between; align-items: center; padding-top: 14px; margin-top: 14px; border-top: 1px dashed var(--border-soft); }
.konkurs-card .meta .deadline { font-family: var(--font-display); font-size: 12px; color: var(--fg-3); }
.konkurs-card .meta .arrow { font-family: var(--font-display); font-weight: normal; color: var(--ed-blueberry); font-size: 14px; }

/* ==========================================================================
   Prenumerata — formularz zapisu (line-only inputs jak w mockupie)
   ========================================================================== */
.prenu-wrap { max-width: 560px; margin: 0 auto; }
.prenu-form { display: flex; flex-direction: column; gap: 22px; }
.prenu-field { display: flex; flex-direction: column; gap: 6px; }
.prenu-field label,
.prenu-consent legend {
	font-family: var(--font-body);
	font-weight: 600; font-size: 16px;
	color: var(--ed-blueberry);
	padding: 0;
}
.prenu-field input[type="text"],
.prenu-field input[type="email"],
.prenu-field textarea {
	font-family: var(--font-body); font-size: 16px;
	border: 0; border-bottom: 2px solid var(--ed-blueberry);
	background: transparent; padding: 6px 4px; width: 100%;
	outline: none; transition: border-color var(--dur-fast); color: var(--ed-ink);
}
.prenu-field input:focus,
.prenu-field textarea:focus { border-bottom-color: var(--ed-tomato); }
.prenu-field textarea { resize: vertical; min-height: 60px; line-height: 1.4; }

.prenu-consent { border: 0; padding: 0; margin: 0; }
.prenu-consent label {
	display: grid;
	grid-template-columns: auto 1fr;
	gap: 14px;
	align-items: start;
	margin-top: 8px;
	font-family: var(--font-body); font-weight: 700; line-height: 1.45;
	color: var(--ed-blueberry); font-size: 15px;
}
.prenu-consent input[type="checkbox"] {
	width: 22px; height: 22px;
	margin-top: 2px;
	accent-color: var(--ed-tomato);
}

.prenu-form button[type="submit"] { align-self: flex-start; margin-top: 8px; }

.prenu-thanks {
	text-align: center; padding: 36px 0;
}
.prenu-error {
	background: var(--bg-tomato);
	color: var(--err);
	border: 2px solid var(--err);
	border-radius: var(--r-md);
	padding: 12px 16px;
	margin-bottom: 18px;
	text-align: center;
	font-size: 14px;
	font-family: var(--font-body); font-weight: 600;
}

/* ==========================================================================
   Filmy (CPT archive + single)
   ========================================================================== */
.filmy { padding: 64px 36px; background: var(--bg-1); min-height: 60vh; }
.filmy h1 { font-family: var(--font-display); font-weight: normal; color: var(--ed-tomato); font-size: 56px; text-align: center; margin: 0 0 12px; }
.filmy .sub { text-align: center; font-family: var(--font-script); color: var(--ed-ink); font-size: 26px; margin-bottom: 36px; }
.filmy-grid { max-width: 1100px; margin: 0 auto; display: grid; grid-template-columns: repeat(2, 1fr); gap: 28px; }
.film-card { display: block; text-decoration: none; color: var(--fg-1); transition: transform var(--dur-base) var(--ease-bounce); }
.film-card:hover { transform: translateY(-4px) rotate(-1deg); }
.film-card__thumb { position: relative; aspect-ratio: 16/9; border-radius: var(--r-md); overflow: hidden; border: var(--stroke-thin); box-shadow: var(--shadow-card); background: var(--bg-2); }
.film-card__thumb img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform var(--dur-slow); }
.film-card:hover .film-card__thumb img { transform: scale(1.04); }
.film-card__play {
	position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
	width: 56px; height: 56px; border-radius: 50%;
	background: rgba(227, 42, 29, 0.92); color: #fff;
	display: flex; align-items: center; justify-content: center;
	border: 3px solid #fff; box-shadow: 0 4px 0 rgba(0,0,0,0.18);
}
.film-card__duration {
	position: absolute; right: 8px; bottom: 8px;
	background: rgba(31, 42, 51, 0.85); color: #fff;
	font-family: var(--font-display); font-size: 11px; letter-spacing: 0.04em;
	padding: 3px 8px; border-radius: var(--r-sm);
}
.film-card__title { font-family: var(--font-display); font-weight: normal; font-size: 18px; color: var(--ed-ink); margin-top: 12px; line-height: 1.2; }
.film-card__date { font-family: var(--font-body); font-size: 13px; color: var(--fg-2); margin-top: 4px; }

/* ==========================================================================
   Audio (CPT archive + single)
   ========================================================================== */
.audio-list { padding: 64px 36px; background: var(--bg-1); min-height: 60vh; }
.audio-list > h1 { font-family: var(--font-display); font-weight: normal; color: var(--ed-sky); font-size: 56px; text-align: center; margin: 0 0 12px; }
.audio-list > .sub { text-align: center; font-family: var(--font-script); color: var(--ed-ink); font-size: 26px; margin-bottom: 36px; }
.audio-grid { max-width: 1100px; margin: 0 auto; display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; }
.audio-card {
	display: flex; gap: 18px; align-items: center;
	background: #fff; border: var(--stroke-thin); border-radius: var(--r-md);
	padding: 14px; box-shadow: var(--shadow-card); text-decoration: none; color: var(--fg-1);
	transition: transform var(--dur-base) var(--ease-bounce);
}
.audio-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-pop); }
.audio-card__cover {
	flex: 0 0 auto; width: 96px; aspect-ratio: 1;
	border-radius: var(--r-sm); overflow: hidden; position: relative;
	background: var(--ed-cream); border: var(--stroke-thin);
}
.audio-card__cover img { width: 100%; height: 100%; object-fit: cover; display: block; }
.audio-card__play {
	position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
	width: 40px; height: 40px; border-radius: 50%;
	background: rgba(43, 182, 230, 0.95); color: #fff;
	display: flex; align-items: center; justify-content: center;
	border: 2px solid #fff; box-shadow: 0 3px 0 rgba(0,0,0,0.18);
}
.audio-card__body { flex: 1; min-width: 0; }
.audio-card__title { font-family: var(--font-display); font-weight: normal; font-size: 18px; color: var(--ed-tomato); line-height: 1.2; }
.audio-card__narrator { font-family: var(--font-body); font-size: 13px; color: var(--ed-blueberry); margin-top: 2px; font-weight: 600; }
.audio-card__meta { font-family: var(--font-body); font-size: 12px; color: var(--fg-3); margin-top: 6px; }

/* Embed wrapper (oembed responsive 16:9) */
.ed-embed-wrap {
	position: relative; aspect-ratio: 16 / 9;
	border-radius: var(--r-md); overflow: hidden;
	border: var(--stroke-thin); box-shadow: var(--shadow-pop);
	background: var(--ed-ink);
}
.ed-embed-wrap iframe,
.ed-embed-wrap embed,
.ed-embed-wrap object,
.ed-embed-wrap video {
	position: absolute; inset: 0; width: 100%; height: 100%; border: 0;
}

.numery { padding: 64px 36px; background: var(--bg-1); min-height: 60vh; }
.numery h1 { font-family: var(--font-display); font-weight: normal; color: var(--ed-sky); font-size: 56px; text-align: center; margin: 0 0 36px; }
.numery-grid { max-width: 1100px; margin: 0 auto; display: grid; grid-template-columns: repeat(3, 1fr); gap: 48px; }
.numer-card { display: flex; flex-direction: column; align-items: center; cursor: pointer; transition: transform var(--dur-base) var(--ease-bounce); color: var(--fg-1); }
.numer-card:hover { transform: translateY(-6px) rotate(-1deg); }
.numer-card .cover { width: 100%; aspect-ratio: 0.7/1; background: var(--bg-2); border: var(--stroke-thin); border-radius: 8px; overflow: hidden; box-shadow: var(--shadow-card); display: flex; align-items: center; justify-content: center; }
.numer-card .cover img { width: 100%; height: 100%; object-fit: cover; display: block; }
.numer-card .lbl { font-family: var(--font-display); font-weight: normal; margin-top: 12px; font-size: 16px; color: var(--ed-ink); }
.numer-card .date { font-family: var(--font-body); font-size: 13px; color: var(--fg-2); }

/* WordPress pagination */
.pagination, .nav-links { display: inline-flex; gap: 8px; flex-wrap: wrap; justify-content: center; }
.page-numbers { display: inline-flex; align-items: center; justify-content: center; min-width: 36px; height: 36px; padding: 0 12px; border-radius: var(--r-pill); border: var(--stroke-thin); background: #fff; font-family: var(--font-display); text-decoration: none; color: var(--ed-ink); }
.page-numbers.current { background: var(--ed-tomato); color: #fff; }
.page-numbers:hover { background: var(--ed-sun); color: var(--ed-ink); }

/* ==========================================================================
   Mobile nav (toggled by theme.js)
   ========================================================================== */
.menu-toggle { display: none; background: transparent; border: var(--stroke-thin); border-radius: var(--r-sm); padding: 8px 10px; cursor: pointer; font-family: var(--font-display); }

@media (max-width: 900px) {
	.hero-inner, .about-inner, .iskierka-inner { grid-template-columns: 1fr; }
	.hero h1 { font-size: 56px; }
	.world-grid { grid-template-columns: repeat(2, 1fr); }
	.konkursy-grid { grid-template-columns: 1fr; }
	.numery-grid { grid-template-columns: repeat(2, 1fr); }
	.filmy-grid { grid-template-columns: repeat(2, 1fr); }
	.audio-grid { grid-template-columns: 1fr; }
	.team-grid { grid-template-columns: 1fr; }
	.topbar { flex-wrap: wrap; padding: 14px 18px; gap: 14px; }

	.menu-toggle { display: inline-flex; margin-left: auto; order: 2; }
	.topbar .right { order: 3; }
	.topbar .menu { order: 4; flex-basis: 100%; display: none; }
	.topbar.is-open .menu { display: block; }
	.topbar .menu-list { flex-direction: column; gap: 6px; }
	.topbar .menu-list .sub-menu {
		position: static; opacity: 1; transform: none; pointer-events: auto;
		box-shadow: none; border: none; padding: 4px 0 4px 14px;
		display: none;
	}
	.topbar .menu-list .menu-item-has-children.is-open > .sub-menu { display: flex; }
	.topbar .menu-list .menu-item-has-children > a::after { transition: none; }
}

@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}

/* ==========================================================================
   Gallery Lightbox (world-grid interactive)
   ========================================================================== */
.ed-lightbox-overlay {
	position: fixed;
	inset: 0;
	background: rgba(0, 0, 0, 0.92);
	display: flex;
	align-items: center;
	justify-content: center;
	z-index: 9999;
	backdrop-filter: blur(4px);
	-webkit-backdrop-filter: blur(4px);
	animation: fadeIn 0.3s ease-out;
}

@keyframes fadeIn {
	from { opacity: 0; }
	to { opacity: 1; }
}

.ed-lightbox-close {
	position: absolute;
	top: 20px;
	right: 20px;
	background: rgba(255, 255, 255, 0.15);
	border: 2px solid rgba(255, 255, 255, 0.3);
	color: #fff;
	width: 44px;
	height: 44px;
	border-radius: 50%;
	font-size: 32px;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: all var(--dur-base);
	z-index: 10001;
}

.ed-lightbox-close:hover {
	background: rgba(255, 255, 255, 0.25);
	border-color: rgba(255, 255, 255, 0.5);
	transform: rotate(90deg);
}

.ed-lightbox-container {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 20px;
	width: 90%;
	max-width: 1000px;
	height: 90%;
	max-height: 700px;
	position: relative;
}

.ed-lightbox-prev,
.ed-lightbox-next {
	background: rgba(255, 255, 255, 0.15);
	border: 2px solid rgba(255, 255, 255, 0.3);
	color: #fff;
	width: 50px;
	height: 50px;
	border-radius: 8px;
	font-size: 24px;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: all var(--dur-base);
	flex-shrink: 0;
	z-index: 10000;
}

.ed-lightbox-prev:hover,
.ed-lightbox-next:hover {
	background: rgba(255, 255, 255, 0.25);
	border-color: rgba(255, 255, 255, 0.5);
	transform: scale(1.1);
}

.ed-lightbox-image-wrapper {
	flex: 1;
	display: flex;
	align-items: center;
	justify-content: center;
	position: relative;
	background: rgba(0, 0, 0, 0.3);
	border-radius: 12px;
	overflow: hidden;
	min-height: 300px;
}

#ed-lightbox-image {
	max-width: 100%;
	max-height: 100%;
	object-fit: contain;
	display: block;
	animation: zoomIn 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes zoomIn {
	from {
		opacity: 0;
		transform: scale(0.95);
	}
	to {
		opacity: 1;
		transform: scale(1);
	}
}

.ed-lightbox-counter {
	position: absolute;
	bottom: 12px;
	right: 12px;
	background: rgba(0, 0, 0, 0.6);
	color: #fff;
	padding: 6px 12px;
	border-radius: 20px;
	font-size: 12px;
	font-family: var(--font-display);
	letter-spacing: 0.05em;
}

.ed-lightbox-thumbnails {
	display: flex;
	gap: 8px;
	justify-content: center;
	flex-wrap: wrap;
	position: absolute;
	bottom: -80px;
	left: 50%;
	transform: translateX(-50%);
	width: 100%;
	max-width: 600px;
}

.ed-thumb {
	width: 60px;
	height: 60px;
	border-radius: 6px;
	overflow: hidden;
	cursor: pointer;
	border: 2px solid rgba(255, 255, 255, 0.2);
	transition: all var(--dur-base);
	opacity: 0.6;
}

.ed-thumb:hover,
.ed-thumb.active {
	border-color: rgba(255, 255, 255, 0.8);
	opacity: 1;
	transform: scale(1.1);
}

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

/* Mobile adjustments */
@media (max-width: 768px) {
	.ed-lightbox-container {
		flex-direction: column;
		gap: 0;
		height: 80vh;
	}

	.ed-lightbox-prev,
	.ed-lightbox-next {
		width: 40px;
		height: 40px;
		font-size: 18px;
		position: absolute;
		bottom: -50px;
	}

	.ed-lightbox-prev {
		left: 20px;
	}

	.ed-lightbox-next {
		right: 20px;
	}

	.ed-lightbox-image-wrapper {
		flex: 1;
		width: 100%;
		min-height: auto;
	}

	.ed-lightbox-counter {
		bottom: 8px;
		right: 8px;
		font-size: 11px;
	}

	.ed-lightbox-close {
		width: 40px;
		height: 40px;
		font-size: 28px;
	}
}
