/* =====================================================================
   Conway Events — rdzeń stylów (wspólny dla wszystkich serwisów)
   Serwis różni się wyłącznie plikiem motywu (themes/*.css), który
   ustawia kilka zmiennych na :root. Wszystkie odcienie liczone tutaj.
   ===================================================================== */

@layer reset, tokens, base, layout, components, utilities;

/* ---------- reset ---------- */
@layer reset {
	*, *::before, *::after { box-sizing: border-box; }
	body, h1, h2, h3, h4, p, ul, ol, figure { margin: 0; }
	ul[class], ol[class] { padding: 0; list-style: none; }
	img, picture, svg, iframe { display: block; max-width: 100%; }
	[hidden] { display: none !important; }
	button, input, select, textarea { font: inherit; }
	@media (prefers-reduced-motion: reduce) {
		*, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
	}
}

/* ---------- tokeny ---------- */
@layer tokens {
	:root {
		/* Wartości domyślne — nadpisywane przez motyw */
		--c-brand: #2f5f54;
		--c-deep: #1c3530;
		--c-accent: #8c2703;
		--c-on-accent: #ffffff;
		--c-soft: #96b79e;
		--c-tint: #f1f4ef;
		--c-ink: #17201c;
		--font-display: "Fraunces", Georgia, serif;
		--font-body: "Figtree", system-ui, -apple-system, "Segoe UI", sans-serif;
		--dw: 600;              /* grubość fontu nagłówków */
		--radius: 24px;
		--radius-lg: 32px;

		/* Pochodne */
		--c-on-brand: #ffffff;
		--c-heading: var(--c-ink);
		--c-focus: var(--c-brand);  /* na ciemnym tle nadpisywany na biały (accent bywa jasny) */
		--c-error: #b42318;
		--c-error-bg: #fef3f2;
		--c-surface: #ffffff;
		--c-muted: color-mix(in oklab, var(--c-ink) 65%, white);
		--c-body: color-mix(in oklab, var(--c-ink) 82%, white);
		--c-line: color-mix(in oklab, var(--c-brand) 14%, white);
		--c-line-strong: color-mix(in oklab, var(--c-brand) 30%, white);
		--c-skeleton: color-mix(in oklab, var(--c-ink) 12%, white);
		--glass: color-mix(in oklab, var(--c-deep) 55%, transparent);
		--hero-overlay:
			linear-gradient(90deg,
				color-mix(in oklab, var(--c-deep) 92%, transparent) 0%,
				color-mix(in oklab, var(--c-deep) 70%, transparent) 42%,
				transparent 78%),
			linear-gradient(0deg, color-mix(in oklab, var(--c-deep) 70%, transparent) 0%, transparent 40%);
		--shadow-card: 0 1px 2px rgb(16 24 20 / .04), 0 12px 32px -12px rgb(16 24 20 / .14);

		/* Rytm */
		--gutter: clamp(16px, 5.5vw, 80px);
		--container: 1280px;
		--section-y: clamp(64px, 9vw, 128px);
		--fs-h1: clamp(2.6rem, 4.2vw + 1rem, 4.75rem);
		--fs-h2: clamp(2rem, 2.4vw + 1rem, 3.25rem);
		--fs-h3: clamp(1.25rem, .6vw + 1rem, 1.5rem);
		--fs-lead: clamp(1.05rem, .3vw + 1rem, 1.2rem);
	}
}

/* ---------- baza ---------- */
@layer base {
	html { scroll-behavior: smooth; scroll-padding-top: 110px; }
	body {
		font-family: var(--font-body);
		font-size: 1rem;
		line-height: 1.6;
		color: var(--c-ink);
		background: var(--c-surface);
		-webkit-font-smoothing: antialiased;
		overflow-x: hidden;
	}
	a { color: var(--c-brand); }
	h1, h2, h3 { font-family: var(--font-display); font-weight: var(--dw); letter-spacing: -.01em; line-height: 1.08; }
	:focus-visible { outline: 3px solid var(--c-focus); outline-offset: 3px; border-radius: 6px; }
	.site-nav, .hero, .section--dark, .cta-belt, .price--featured, .site-footer { --c-focus: #fff; }
	strong { font-weight: 700; }
}

/* ---------- layout ---------- */
@layer layout {
	.container { width: 100%; max-width: calc(var(--container) + 2 * var(--gutter)); margin-inline: auto; padding-inline: var(--gutter); }
	.section { padding-block: var(--section-y); }
	.section--tint { background: var(--c-tint); }
	.section--dark { background: var(--c-deep); color: #fff; }
	.section--lined { border-top: 1px solid var(--c-line); }
	.stack { display: flex; flex-direction: column; gap: var(--stack-gap, 24px); }
	.grid-12 { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 24px; align-items: center; }
	.grid-12--top { align-items: start; }
	.span-7 { grid-column: span 7; }
	.span-5 { grid-column: span 5; }
	@media (max-width: 991px) {
		.grid-12 { grid-template-columns: minmax(0, 1fr); gap: 40px; }
		.span-7, .span-5 { grid-column: auto; }
	}
}

/* ---------- komponenty ---------- */
@layer components {

	/* Przyciski */
	.btn {
		display: inline-flex; align-items: center; justify-content: center; gap: 10px;
		min-height: 44px; padding: 16px 28px; border-radius: 999px; border: 2px solid transparent;
		font-size: 1.0625rem; font-weight: 700; line-height: 1.2; text-decoration: none; cursor: pointer;
		transition: transform .15s ease, background-color .15s ease, box-shadow .15s ease;
	}
	.btn:hover { transform: translateY(-1px); }
	.btn svg { width: 18px; height: 18px; flex: none; }
	.btn--sm { padding: 10px 20px; font-size: .9375rem; }
	.btn--accent { background: var(--c-accent); border-color: var(--c-accent); color: var(--c-on-accent); }
	.btn--accent:hover { background: color-mix(in oklab, var(--c-accent) 88%, black); }
	.btn--brand { background: var(--c-brand); border-color: var(--c-brand); color: var(--c-on-brand); }
	.btn--outline { background: transparent; border-color: var(--c-line-strong); color: var(--c-brand); }
	.btn--outline:hover { border-color: var(--c-brand); }
	.btn--ghost-light { background: rgb(255 255 255 / .08); border-color: rgb(255 255 255 / .45); color: #fff; }
	.btn--ghost-light:hover { background: rgb(255 255 255 / .16); }

	.link-arrow { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; font-weight: 700; text-decoration: none; color: var(--c-brand); }
	.link-arrow svg { width: 18px; height: 18px; }

	/* Nagłówek sekcji */
	.section-head { display: flex; flex-direction: column; gap: 16px; }
	.section-head--center { align-items: center; text-align: center; }
	.section-head--row { flex-direction: row; justify-content: space-between; align-items: flex-end; gap: 40px; flex-wrap: wrap; }
	.eyebrow { font-family: var(--font-body); font-size: .875rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--c-brand); }
	.section-title { font-size: var(--fs-h2); color: var(--c-heading); }
	.lead { max-width: 640px; font-size: var(--fs-lead); line-height: 1.6; color: var(--c-muted); }
	.section--dark .eyebrow { color: var(--c-soft); }
	.section--dark .section-title { color: #fff; }
	.section--dark .lead { color: rgb(255 255 255 / .78); }

	/* ---------- Nawigacja ---------- */
	.site-nav {
		position: fixed; z-index: 100; top: 20px; left: max(16px, calc(var(--gutter) - 24px)); right: max(16px, calc(var(--gutter) - 24px));
		display: flex; align-items: center; justify-content: space-between; gap: 32px;
		height: 72px; padding: 0 12px 0 20px; border-radius: 999px;
		background: var(--glass); border: 1px solid rgb(255 255 255 / .14);
		-webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
		color: #fff; transition: background-color .2s ease, top .2s ease;
	}
	.site-nav.is-scrolled { background: color-mix(in oklab, var(--c-deep) 88%, transparent); top: 12px; }
	.site-nav__brand { display: flex; flex: none; align-items: center; gap: 12px; color: #fff; text-decoration: none; }
	.site-nav__mark { width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; background: var(--c-accent); color: var(--c-on-accent); font-weight: 800; font-size: .95rem; flex: none; }
	.site-nav__logo { display: block; flex: none; width: auto; height: 42px; }
	.site-nav__name { display: flex; flex-direction: column; line-height: 1.15; }
	.site-nav__name b { font-size: 1rem; font-weight: 800; }
	.site-nav__name small { font-size: .75rem; opacity: .75; }
	.site-nav__menu { display: flex; gap: 28px; }
	.site-nav__menu a { color: rgb(255 255 255 / .86); font-size: .9375rem; font-weight: 600; text-decoration: none; white-space: nowrap; }
	.site-nav__menu a:hover { color: #fff; }
	.site-nav__actions { display: flex; gap: 8px; flex: none; }
	.site-nav__toggle { display: none; width: 44px; height: 44px; border: 0; border-radius: 12px; background: rgb(255 255 255 / .12); color: #fff; place-items: center; cursor: pointer; }
	.site-nav__toggle .i-close, .site-nav.is-open .site-nav__toggle .i-open { display: none; }
	.site-nav.is-open .site-nav__toggle .i-close { display: block; }

	/* Laptopy: ciaśniej, bez podpisu — menu nie może się łamać */
	@media (min-width: 1200px) and (max-width: 1399px) {
		.site-nav { gap: 20px; }
		.site-nav__menu { gap: 18px; }
		.site-nav__menu a { font-size: .875rem; }
		.site-nav__name small { display: none; }
	}

	@media (max-width: 1199px) {
		.site-nav { top: 0; left: 0; right: 0; height: 68px; border-radius: 0; border-width: 0 0 1px; padding: 0 16px; }
		.site-nav.is-scrolled { top: 0; }
		.site-nav__toggle { display: grid; }
		.site-nav__menu, .site-nav__actions { display: none; }
		.site-nav__name small { display: none; }
		.site-nav.is-open { height: 100dvh; flex-wrap: wrap; align-content: flex-start; background: var(--c-deep); overflow-y: auto; overscroll-behavior: contain; padding-bottom: 24px; }
		.site-nav.is-open .site-nav__brand, .site-nav.is-open .site-nav__toggle { height: 68px; }
		.site-nav.is-open .site-nav__menu { display: flex; flex-direction: column; gap: 4px; width: 100%; padding-top: 16px; }
		.site-nav.is-open .site-nav__menu a { font-size: 1.375rem; padding: 12px 0; border-bottom: 1px solid rgb(255 255 255 / .1); }
		.site-nav.is-open .site-nav__actions { display: flex; width: 100%; padding-top: 24px; }
		html.nav-open, html.nav-open body { overflow: hidden; }
	}

	/* ---------- Top (hero) ---------- */
	.hero { position: relative; isolation: isolate; min-height: min(100svh, 920px); display: flex; color: #fff; overflow: hidden; background: var(--c-deep); }
	.hero__media { position: absolute; inset: 0; z-index: -2;
		/* zastępcze tło, gdy brak zdjęcia */
		background:
			radial-gradient(circle at 70% 45%, color-mix(in oklab, var(--c-soft) 45%, transparent) 0 25%, transparent 26%),
			radial-gradient(circle at 87% 58%, color-mix(in oklab, var(--c-accent) 40%, transparent) 0 21%, transparent 22%),
			radial-gradient(circle at 60% 85%, color-mix(in oklab, var(--c-deep) 60%, transparent) 0 16%, transparent 17%),
			var(--c-brand);
	}
	.hero__media img { width: 100%; height: 100%; object-fit: cover; object-position: var(--hero-focus, 70% 50%); }
	.hero::after { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--hero-overlay); }
	.hero__inner { position: relative; width: 100%; display: flex; flex-direction: column; justify-content: space-between; gap: 48px; padding-top: 190px; padding-bottom: 56px; }
	.hero__content { display: flex; flex-direction: column; gap: 36px; max-width: 840px; }
	.hero__badge { align-self: flex-start; padding: 8px 16px; border-radius: 999px; background: rgb(255 255 255 / .14); font-size: .875rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
	.hero__eyebrow { color: var(--c-soft); font-size: 1.25rem; font-weight: 600; line-height: 1.4; max-width: 720px; }
	.hero__title { font-size: var(--fs-h1); line-height: 1.02; color: #fff; }
	.hero__text { display: flex; flex-direction: column; gap: 20px; }
	.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; }

	.facts { display: flex; gap: 32px; padding: 24px 32px; border-radius: 20px; background: var(--glass); border: 1px solid rgb(255 255 255 / .14); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); list-style: none; margin: 0; }
	.facts__item { flex: 1 1 0; display: flex; gap: 14px; align-items: flex-start; }
	.facts__icon { width: 44px; height: 44px; flex: none; border-radius: 12px; background: rgb(255 255 255 / .12); display: grid; place-items: center; color: var(--c-soft); }
	.facts__icon svg { width: 22px; height: 22px; }
	.facts__label { display: block; font-size: .8125rem; letter-spacing: .08em; text-transform: uppercase; opacity: .7; }
	.facts__value { display: block; font-size: 1.0625rem; font-weight: 700; line-height: 1.35; }

	/* Wariant: split — treść po lewej, zdjęcie w karcie po prawej */
	.hero--split { background: var(--c-deep); }
	.hero--split::after { display: none; }
	.hero--split .hero__media { left: 50%; inset-block: 110px 24px; right: 24px; border-radius: var(--radius-lg); overflow: hidden; }
	.hero--split .hero__content { max-width: calc(50% - 56px); }
	.hero--split .hero__title { font-size: clamp(2.4rem, 3.2vw + 1rem, 4rem); }
	.hero--split .facts { max-width: calc(50% - 56px); flex-direction: column; gap: 16px; background: transparent; border: 0; padding: 0; backdrop-filter: none; }

	/* Wariant: image-only — grafika wydarzenia (zwykle z tekstem w obrazku) w całości, bez kadrowania, na tle --c-tint */
	.hero--image-only::after { display: none; }
	.hero--image-only .hero__content, .hero--image-only .facts { display: none; }
	.hero--image-only .hero__inner { justify-content: flex-end; align-items: flex-end; }

	.hero--image-only { display: block; min-height: 0; padding-top: 112px; background: var(--c-tint); }
	.hero--image-only .hero__media { position: relative; inset: auto; z-index: 0; background: none; }
	body:has(.hero--image-only) .site-nav:not(.is-open) { background: color-mix(in oklab, var(--c-deep) 94%, transparent); }
	.hero--image-only .hero__media img { height: auto; object-fit: fill; }
	.hero--image-only .hero__media:not(:has(img)) { aspect-ratio: 16 / 9; }
	.hero--image-only .hero__inner { position: absolute; inset: auto 0 0; padding-top: 0; padding-bottom: clamp(16px, 2.5vw, 40px); }
	.hero__legacy-cta { display: none; }
	.hero--image-only .hero__legacy-cta { display: inline-flex; }

	@media (max-width: 991px) {
		.hero { min-height: 100svh; }
		.hero::after { background: linear-gradient(0deg, var(--c-deep) 8%, color-mix(in oklab, var(--c-deep) 70%, transparent) 55%, color-mix(in oklab, var(--c-deep) 30%, transparent) 100%); }
		.hero__inner { padding-top: 120px; padding-bottom: 32px; justify-content: flex-end; }
		.hero__eyebrow { font-size: 1rem; }
		.hero__actions { flex-direction: column; }
		.facts { flex-direction: column; gap: 18px; padding: 20px; }
		.hero--split .hero__media { inset: 0; left: 0; border-radius: 0; }
		.hero--split::after { display: block; }
		.hero--split .hero__content, .hero--split .facts { max-width: none; }
		.hero--image-only { min-height: 0; padding-top: 68px; }
		.hero--image-only .hero__inner { position: static; padding-block: 16px 24px; }
		.hero--image-only .hero__legacy-cta { width: 100%; }
	}

	/* ---------- Zaproszenie / zdjęcie po prawej ---------- */
	.intro__text { --stack-gap: 24px; padding-right: 40px; }
	.intro__text p { font-size: 1.125rem; line-height: 1.7; color: var(--c-body); }
	.intro__sign { display: flex; flex-direction: column; gap: 2px; padding-top: 12px; border-top: 1px solid var(--c-line); }
	.intro__sign b { font-size: 1.0625rem; }
	.intro__sign span { color: var(--c-muted); font-size: .9375rem; }
	.media-card { position: relative; aspect-ratio: 4 / 4.4; border-radius: var(--radius-lg); overflow: hidden;
		background: radial-gradient(circle at 70% 30%, var(--c-soft), transparent 60%), radial-gradient(circle at 20% 90%, color-mix(in oklab, var(--c-brand) 40%, white), transparent 55%), var(--c-tint); }
	.media-card img { width: 100%; height: 100%; object-fit: cover; }
	@media (min-width: 992px) { .media-card--sticky { position: sticky; top: 112px; } }
	@media (max-width: 991px) { .intro__text { padding-right: 0; } .media-card { aspect-ratio: 4 / 3; } .media-card--sticky { order: -1; } }

	/* ---------- Program ---------- */
	.program { --stack-gap: 40px; }
	.tabs { display: flex; gap: 10px; flex-wrap: wrap; }
	.tabs__btn { min-height: 56px; padding: 0 26px; border-radius: 999px; border: 2px solid var(--c-line); background: #fff; color: var(--c-ink); font-weight: 700; cursor: pointer; }
	.tabs__btn[aria-selected="true"] { background: var(--c-brand); border-color: var(--c-brand); color: var(--c-on-brand); }
	.agenda { --stack-gap: 12px; }
	.agenda__row { display: grid; grid-template-columns: 160px minmax(0, 1fr) auto; gap: 24px; align-items: center; padding: 22px 28px; background: #fff; border-radius: 18px; }
	.agenda__time { font-weight: 700; color: var(--c-brand); }
	.agenda__title { font-weight: 700; }
	.agenda__meta { display: block; color: var(--c-muted); font-size: .9375rem; }
	.chip { display: inline-block; padding: 6px 14px; border-radius: 999px; background: var(--c-tint); color: var(--c-brand); font-size: .8125rem; font-weight: 700; }
	@media (max-width: 767px) { .agenda__row { grid-template-columns: minmax(0, 1fr); gap: 8px; padding: 18px 20px; } }

	/* ---------- Karty (wykłady / wykładowcy) ---------- */
	.cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
	.card { display: flex; flex-direction: column; gap: 18px; padding: 32px; border-radius: var(--radius); background: #fff; border: 1px solid var(--c-line); box-shadow: var(--shadow-card); }
	.card__person { display: flex; gap: 16px; align-items: center; }
	.avatar { width: 72px; height: 72px; flex: none; border-radius: 50%; object-fit: cover; background: linear-gradient(135deg, var(--c-soft), color-mix(in oklab, var(--c-brand) 55%, white)); }
	.card__degree { display: block; font-size: .875rem; color: var(--c-muted); }
	.card__name { display: block; font-size: 1.1875rem; font-weight: 800; }
	.card__title { font-size: var(--fs-h3); line-height: 1.3; color: var(--c-heading); }
	.card__text { font-size: .9375rem; line-height: 1.55; color: var(--c-muted); }
	.card .link-arrow { margin-top: auto; }
	@media (max-width: 991px) { .cards { grid-template-columns: minmax(0, 1fr); } .card { padding: 24px; } }
	@media (min-width: 640px) and (max-width: 991px) { .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

	/* ---------- Komitety ---------- */
	.committee__main { --stack-gap: 28px; padding-right: 48px; align-self: start; }
	.committee__chair { display: flex; flex-direction: column; gap: 4px; padding: 24px 28px; border-radius: 20px; background: rgb(255 255 255 / .07); }
	.committee__chair small { font-size: .8125rem; letter-spacing: .1em; text-transform: uppercase; color: var(--c-soft); font-weight: 700; }
	.committee__chair b { font-family: var(--font-display); font-weight: var(--dw); font-size: 1.75rem; }
	.people { columns: 2; column-gap: 40px; color: rgb(255 255 255 / .88); }
	.people li { padding: 12px 0; border-bottom: 1px solid rgb(255 255 255 / .12); break-inside: avoid; }
	.committee__side { --stack-gap: 24px; align-self: start; padding: 40px; border-radius: var(--radius-lg); background: rgb(255 255 255 / .06); border: 1px solid rgb(255 255 255 / .12); }
	.committee__side .people { columns: 1; }
	.committee__side p { font-size: .9375rem; color: rgb(255 255 255 / .7); }
	@media (max-width: 991px) { .committee__main { padding-right: 0; } .people { columns: 1; } .committee__side { padding: 28px; } }

	/* ---------- Cennik ---------- */
	/* --cols liczone w szablonie z liczby kafli (bez osieroconych kafli w ostatnim rzędzie) */
	.prices { display: grid; grid-template-columns: repeat(var(--cols, 4), minmax(0, 1fr)); gap: 20px; }
	.price { display: flex; flex-direction: column; gap: 12px; padding: 32px; border-radius: var(--radius); background: #fff; border: 1px solid var(--c-line); }
	.price--featured { background: var(--c-brand); color: var(--c-on-brand); border-color: var(--c-brand); }
	.price__name { font-size: 1.0625rem; font-weight: 800; }
	.price__note { font-size: .875rem; color: var(--c-muted); }
	.price--featured .price__note { color: rgb(255 255 255 / .75); }
	.price__amount { font-family: var(--font-display); font-weight: var(--dw); font-size: 3rem; line-height: 1; margin-block: 12px; }
	.price__amount small { font-size: 1.375rem; }
	.price .btn { margin-top: auto; align-self: flex-start; }
	.price--featured .btn--outline { color: #fff; border-color: rgb(255 255 255 / .5); }
	.price--includes { background: color-mix(in oklab, var(--c-soft) 30%, white); border-color: transparent; }
	.checklist { display: flex; flex-direction: column; gap: 14px; }
	.checklist li { display: flex; gap: 12px; align-items: flex-start; line-height: 1.45; }
	.checklist svg { width: 20px; height: 20px; flex: none; color: var(--c-brand); margin-top: 1px; }
	@media (max-width: 1199px) { .prices { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
	@media (max-width: 639px) { .prices { grid-template-columns: minmax(0, 1fr); } .price { padding: 24px; } }

	/* ---------- Pasek CTA ---------- */
	.cta-belt { position: relative; isolation: isolate; min-height: 320px; display: flex; align-items: center; padding: 48px 64px; border-radius: var(--radius-lg); overflow: hidden; color: #fff; }
	.cta-belt__media { position: absolute; inset: 0; z-index: -2; background: radial-gradient(circle at 80% 40%, color-mix(in oklab, var(--c-soft) 50%, transparent) 0 22%, transparent 23%), radial-gradient(circle at 95% 80%, color-mix(in oklab, var(--c-accent) 50%, transparent) 0 18%, transparent 19%), var(--c-brand); }
	.cta-belt__media img { width: 100%; height: 100%; object-fit: cover; }
	.cta-belt::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, var(--c-deep) 0%, color-mix(in oklab, var(--c-deep) 60%, transparent) 55%, transparent 100%); }
	.cta-belt__body { --stack-gap: 24px; max-width: 560px; align-items: flex-start; }
	.cta-belt h2 { font-size: clamp(1.9rem, 2vw + 1rem, 2.75rem); line-height: 1.1; }
	@media (max-width: 767px) { .cta-belt { padding: 32px 24px; } }

	/* ---------- Miejsce ---------- */
	.place__info { --stack-gap: 28px; padding-right: 32px; align-items: flex-start; }
	.place__address { display: flex; gap: 16px; align-items: flex-start; font-size: 1.125rem; line-height: 1.5; }
	.icon-tile { width: 52px; height: 52px; flex: none; border-radius: 16px; background: var(--c-tint); color: var(--c-brand); display: grid; place-items: center; }
	.icon-tile svg { width: 22px; height: 22px; }
	.map { position: relative; height: 440px; border-radius: var(--radius-lg); overflow: hidden; background: var(--c-tint); }
	.map iframe { width: 100%; height: 100%; border: 0; filter: saturate(.6) contrast(1.05); }
	@media (max-width: 991px) { .place__info { padding-right: 0; } .map { height: 320px; } }

	/* ---------- Partnerzy ---------- */
	.logos { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 20px; }
	.logos__item { height: 96px; border-radius: 18px; background: var(--c-tint); display: grid; place-items: center; padding: 16px; color: var(--c-muted); font-size: .875rem; font-weight: 600; }
	.logos__item img { max-height: 100%; width: auto; object-fit: contain; filter: grayscale(1); opacity: .8; transition: filter .2s, opacity .2s; }
	.logos__item:hover img { filter: none; opacity: 1; }
	@media (max-width: 991px) { .logos { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

	/* ---------- Stopka ---------- */
	.site-footer { padding: 80px 0 40px; background: var(--c-deep); color: rgb(255 255 255 / .82); }
	.site-footer__cols { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px; }
	.site-footer .eyebrow { color: var(--c-soft); }
	.site-footer__col { --stack-gap: 12px; align-items: flex-start; }
	.site-footer__col b { font-size: 1.25rem; font-weight: 800; color: #fff; }
	.site-footer__logo { display: block; width: auto; height: 64px; max-width: 100%; object-fit: contain; object-position: left center; }
	.site-footer__group { display: flex; flex-direction: column; gap: 2px; margin: 0; line-height: 1.55; overflow-wrap: anywhere; }
	.site-footer__group + .site-footer__group { margin-top: 14px; }
	.site-footer__line { display: block; }
	.site-footer__line--lead { font-weight: 700; color: #fff; }
	a.site-footer__line { text-decoration: underline; text-decoration-color: rgb(255 255 255 / .35); text-underline-offset: 3px; }
	a.site-footer__line:hover { text-decoration-color: currentColor; }
	.site-footer__links { display: flex; flex-wrap: wrap; gap: 8px 24px; }
	.site-footer__links a { color: rgb(255 255 255 / .75); }
	.site-footer__links a:hover { color: #fff; }
	.site-footer a { color: #fff; }
	.site-footer__bottom { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-top: 40px; padding-top: 24px; border-top: 1px solid rgb(255 255 255 / .14); font-size: .875rem; color: rgb(255 255 255 / .6); }
	@media (max-width: 991px) { .site-footer { padding-top: 56px; } .site-footer__cols { grid-template-columns: minmax(0, 1fr); } }
	.site-footer--photo { --fp-w: clamp(330px, 32vw, 520px); position: relative; isolation: isolate; overflow: hidden; border-bottom: 1.5rem solid var(--c-soft); }
	.site-footer__photo { position: absolute; right: 0; bottom: 0; z-index: -1; display: block; width: var(--fp-w); height: auto; }
	@media (min-width: 992px) {
		.site-footer--photo { min-height: calc(var(--fp-w) * .92); }
		.site-footer--photo .site-footer__cols, .site-footer--photo .site-footer__bottom { max-width: min(100%, calc(100vw - max(var(--gutter), (100vw - var(--container)) / 2) - var(--fp-w) - 40px)); }
		.site-footer--photo .site-footer__cols { grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); }
	}
	@media (max-width: 991px) {
		.site-footer--photo { display: flex; flex-direction: column; padding-bottom: 0; }
		.site-footer__photo { position: static; order: 1; width: min(100%, 520px); margin: 40px 0 0 auto; }
	}

	/* ---------- Nagłówek podstrony ---------- */
	.page-head { position: relative; isolation: isolate; overflow: hidden; color: #fff; background:
		radial-gradient(circle at 88% 20%, color-mix(in oklab, var(--c-soft) 35%, transparent) 0 18%, transparent 19%),
		radial-gradient(circle at 100% 90%, color-mix(in oklab, var(--c-accent) 35%, transparent) 0 14%, transparent 15%),
		var(--c-deep); --c-focus: #fff; }
	.page-head__inner { display: flex; flex-direction: column; gap: 16px; padding-top: 168px; padding-bottom: 64px; }
	.page-head__eyebrow { color: var(--c-soft); font-size: .875rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; }
	.page-head__title { font-size: clamp(2.4rem, 3vw + 1rem, 3.75rem); color: #fff; max-width: 900px; }
	.page-head__lead { max-width: 640px; font-size: var(--fs-lead); color: rgb(255 255 255 / .8); }
	@media (max-width: 1199px) { .page-head__inner { padding-top: 120px; padding-bottom: 48px; } }

	/* ---------- Rejestracja (formularz krokowy modułu Wydarzenia) ---------- */
	.register.section { padding-top: clamp(40px, 5vw, 72px); }
	.reg { max-width: 980px; margin-inline: auto; padding: clamp(24px, 4vw, 56px); border-radius: var(--radius-lg); background: var(--c-surface); box-shadow: var(--shadow-card); }

	/* klasy stanu sterowane przez skrypt modułu */
	.reg .hidden, .reg .js-hidden, .reg .is-code-hidden { display: none !important; }

	.reg-head { display: flex; flex-direction: column; gap: 16px; padding-bottom: 32px; margin-bottom: 32px; border-bottom: 1px solid var(--c-line); }
	.stepper { display: flex; gap: 8px; }
	.stepper__item { flex: 1 1 0; display: flex; align-items: center; gap: 12px; min-width: 0; padding: 10px 16px 10px 10px; border-radius: 999px; background: var(--c-tint); color: var(--c-muted); font-weight: 700; }
	.stepper__num { width: 36px; height: 36px; flex: none; border-radius: 50%; display: grid; place-items: center; background: #fff; color: var(--c-brand); font-size: .9375rem; }
	.stepper__num svg { width: 18px; height: 18px; }
	.stepper__name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
	.stepper__item--current { background: var(--c-brand); color: var(--c-on-brand); }
	.stepper__item--done { color: var(--c-brand); }
	.stepper__item--done .stepper__num { background: var(--c-brand); color: var(--c-on-brand); }

	.reg-alert { margin-bottom: 24px; padding: 14px 18px; border-radius: 14px; background: var(--c-error-bg); color: var(--c-error); font-weight: 600; }
	.reg-alert--info { background: var(--c-tint); color: var(--c-brand); }
	.reg-actions + .reg-alert { margin: 24px 0 0; }

	.reg-cols { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 40px; }
	.reg-col--top, .reg-col--bottom { grid-column: 1 / -1; }

	.reg-group + .reg-group { margin-top: 40px; padding-top: 40px; border-top: 1px solid var(--c-line); }
	.reg-group__head { display: flex; flex-direction: column; gap: 8px; margin-bottom: 24px; }
	.reg-group__title { font-size: var(--fs-h3); color: var(--c-heading); }
	.reg-group__desc { color: var(--c-muted); font-size: .9375rem; }
	.reg-group__desc a { color: var(--c-brand); }
	.reg-group__fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px 24px; }

	.reg-field { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
	.reg-field--wide { grid-column: 1 / -1; }
	.reg-field__label { font-size: .9375rem; font-weight: 700; color: var(--c-ink); }
	.reg-field__hint { font-size: .875rem; color: var(--c-muted); }
	.reg-field__error { font-size: .875rem; font-weight: 600; color: var(--c-error); }
	.reg-req { color: var(--c-error); }

	.reg-input { width: 100%; min-height: 52px; padding: 12px 16px; border: 1.5px solid var(--c-line-strong); border-radius: 14px; background: #fff; color: var(--c-ink); font-size: 1rem; line-height: 1.4; transition: border-color .15s ease, box-shadow .15s ease; }
	.reg-input:hover { border-color: color-mix(in oklab, var(--c-brand) 50%, white); }
	.reg-input:focus { outline: none; border-color: var(--c-brand); box-shadow: 0 0 0 4px color-mix(in oklab, var(--c-brand) 18%, transparent); }
	.reg-input--area { min-height: 120px; resize: vertical; }
	.reg-select { appearance: none; padding-right: 44px; cursor: pointer;
		background-image: linear-gradient(45deg, transparent 50%, var(--c-muted) 50%), linear-gradient(135deg, var(--c-muted) 50%, transparent 50%);
		background-position: calc(100% - 22px) 50%, calc(100% - 16px) 50%; background-size: 6px 6px; background-repeat: no-repeat; }
	.has-error .reg-input { border-color: var(--c-error); }
	.has-error .reg-input:focus { box-shadow: 0 0 0 4px color-mix(in oklab, var(--c-error) 18%, transparent); }

	.reg-choices { display: flex; flex-wrap: wrap; gap: 10px; }
	.reg-choice { display: inline-flex; align-items: center; gap: 10px; min-height: 48px; padding: 10px 18px; border: 1.5px solid var(--c-line-strong); border-radius: 999px; cursor: pointer; font-weight: 600; transition: border-color .15s ease, background-color .15s ease; }
	.reg-choice:hover { border-color: var(--c-brand); }
	.reg-choice:has(input:checked) { border-color: var(--c-brand); background: var(--c-tint); color: var(--c-brand); }
	.reg-choice:has(input:focus-visible) { outline: 3px solid var(--c-focus); outline-offset: 2px; }
	.reg-choice input, .reg-check input { width: 20px; height: 20px; margin: 0; flex: none; accent-color: var(--c-brand); }
	.reg-choice input:focus-visible { outline: none; }

	.reg-check { display: flex; gap: 12px; align-items: flex-start; cursor: pointer; font-size: .9375rem; line-height: 1.5; color: var(--c-body); }
	.reg-check input { margin-top: 2px; }
	.reg-check a { color: var(--c-brand); font-weight: 600; }

	/* Opłaty */
	.reg-fees { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 240px), 1fr)); gap: 16px; margin-block: 8px 24px; }
	.reg-fee { position: relative; }
	.reg-fee__input { position: absolute; opacity: 0; pointer-events: none; }
	.reg-fee__card { position: relative; height: 100%; display: flex; flex-direction: column; gap: 10px; padding: 22px 22px 20px; border: 2px solid var(--c-line); border-radius: var(--radius); background: #fff; cursor: pointer; transition: border-color .15s ease, box-shadow .15s ease, transform .15s ease; }
	.reg-fee__card:hover { border-color: var(--c-line-strong); transform: translateY(-1px); }
	.reg-fee__mark { position: absolute; top: 16px; right: 16px; width: 26px; height: 26px; border-radius: 50%; border: 2px solid var(--c-line-strong); display: grid; place-items: center; color: transparent; }
	.reg-fee__mark svg { width: 14px; height: 14px; }
	.reg-fee__name { padding-right: 36px; font-weight: 700; line-height: 1.4; }
	.reg-fee__price { margin-top: auto; font-family: var(--font-display); font-weight: var(--dw); font-size: 1.75rem; line-height: 1.1; color: var(--c-brand); }
	.reg-fee__note { font-size: .8125rem; color: var(--c-muted); }
	.reg-fee__input:checked + .reg-fee__card { border-color: var(--c-brand); background: color-mix(in oklab, var(--c-tint) 60%, white); box-shadow: var(--shadow-card); }
	.reg-fee__input:checked + .reg-fee__card .reg-fee__mark { border-color: var(--c-brand); background: var(--c-brand); color: var(--c-on-brand); }
	.reg-fee__input:focus-visible + .reg-fee__card { outline: 3px solid var(--c-focus); outline-offset: 3px; }
	.reg-fee__input:disabled + .reg-fee__card { opacity: .5; cursor: not-allowed; transform: none; }

	.reg-code { margin-bottom: 24px; }
	.reg-code__row { display: flex; gap: 12px; }
	.reg-code__row .reg-input { max-width: 280px; }

	.reg-pay { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 24px; margin-top: 8px; padding-top: 28px; border-top: 1px solid var(--c-line); }
	.reg-pay__methods { display: flex; flex-direction: column; gap: 10px; }
	.reg-sum { display: flex; flex-direction: column; align-items: flex-end; gap: 2px; padding: 16px 28px; border-radius: 20px; background: var(--c-brand); color: var(--c-on-brand); }
	.reg-sum__label { font-size: .8125rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; opacity: .8; }
	.reg-sum__value { font-family: var(--font-display); font-weight: var(--dw); font-size: 2rem; line-height: 1.1; }

	.reg-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 40px; padding-top: 32px; border-top: 1px solid var(--c-line); }
	.reg-actions .btn--accent { margin-left: auto; }

	/* Stany bez formularza */
	.reg-note { color: var(--c-body); font-size: 1.0625rem; }
	.reg-note :is(h2, h3, h4) { font-family: var(--font-display); font-weight: var(--dw); font-size: var(--fs-h3); margin-bottom: 12px; color: var(--c-heading); }
	.reg-note--error { padding: 18px 22px; border-radius: 16px; background: var(--c-error-bg); color: var(--c-error); font-weight: 600; }
	.reg-done { display: flex; flex-direction: column; align-items: center; gap: 16px; text-align: center; }
	.reg-done__icon { width: 72px; height: 72px; border-radius: 50%; display: grid; place-items: center; background: var(--c-brand); color: var(--c-on-brand); }
	.reg-done__icon svg { width: 34px; height: 34px; }
	.reg-done__head :is(h1, h2, h3, h4) { font-family: var(--font-display); font-weight: var(--dw); font-size: var(--fs-h2); line-height: 1.1; color: var(--c-heading); }
	.reg-done__body, .reg-done__payment { max-width: 640px; color: var(--c-body); }
	.reg-done__payment:not(:empty) { width: 100%; padding: 24px; border-radius: var(--radius); background: var(--c-tint); text-align: left; }

	@media (max-width: 767px) {
		.reg-cols, .reg-group__fields { grid-template-columns: minmax(0, 1fr); }
		.stepper__item { padding-right: 10px; }
		.stepper__item:not(.stepper__item--current) .stepper__name { display: none; }
		.stepper__item:not(.stepper__item--current) { flex: none; }
		.reg-sum { width: 100%; align-items: flex-start; }
		.reg-actions .btn { flex: 1 1 auto; }
		.reg-code__row { flex-direction: column; } .reg-code__row .reg-input { max-width: none; }
	}

	/* ---------- Top — kompozycja (sekcja top-event) ----------
	   Wymiary w jednostkach projektu PSD 1920×1094 (--s = 1 px projektu); kolory z motywu. */
	.top-event {
		--s: min(calc(100vw / 1920), 1.2px);
		--te-c: var(--c-heading);
		--te-c2: color-mix(in srgb, var(--c-heading) 81%, var(--c-tint));
		--te-ease: cubic-bezier(.2, .7, .2, 1);
		position: relative;
		isolation: isolate;
		overflow: hidden;
		padding-top: max(112px, calc(57 * var(--s)));
		background: var(--c-tint);
		color: var(--te-c);
	}
	body:has(.top-event) .site-nav:not(.is-open) { background: color-mix(in oklab, var(--c-deep) 94%, transparent); }
	.top-event__photo { position: absolute; inset: 0; z-index: -1; }
	.top-event__photo img { width: 100%; height: 100%; object-fit: cover; object-position: right center; }
	.top-event__inner { position: relative; width: calc(659 * var(--s)); margin-left: max(var(--gutter), calc(189 * var(--s))); padding-bottom: calc(60 * var(--s)); }
	.top-event__title { display: grid; grid-template-columns: auto auto minmax(0, 1fr); align-items: start; margin: 0; font: inherit; color: inherit; letter-spacing: 0; }
	.top-event__number { margin: calc(-19 * var(--s)) 0 0 calc(-6 * var(--s)); font-family: "DM Serif Display", var(--font-display); font-weight: 400; font-size: calc(219 * var(--s)); line-height: .8; letter-spacing: -.02em; }
	.top-event__rule { align-self: stretch; width: max(1px, calc(2 * var(--s))); margin: 0 calc(26 * var(--s)) 0 calc(33 * var(--s)); background: currentColor; transform-origin: top; }
	.top-event__name { display: flex; flex-direction: column; font-family: Poppins, var(--font-body); font-weight: 400; margin-top: calc(4 * var(--s)); font-size: calc(73 * var(--s)); line-height: 1.16; letter-spacing: .05em; text-transform: uppercase; }
	.top-event__name-line { display: block; }
	.top-event__org { grid-column: 1 / -1; display: flex; flex-direction: column; margin-top: calc(26 * var(--s)); font-family: Poppins, var(--font-body); font-weight: 400; font-size: calc(30 * var(--s)); line-height: 1.73; letter-spacing: .44em; text-transform: uppercase; white-space: nowrap; color: var(--te-c2); }
	.top-event__org-line { display: block; }
	.top-event__details { display: flex; flex-direction: column; align-items: center; width: calc(502 * var(--s)); margin-top: calc(2 * var(--s)); }
	.top-event__divider { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: center; gap: calc(20 * var(--s)); width: 100%; }
	.top-event__divider--plain { gap: 0; }
	.top-event__divider-line { height: max(1px, calc(2 * var(--s))); background: var(--te-c2); transform-origin: right; }
	.top-event__divider-line--end { transform-origin: left; }
	.top-event__separator { width: calc(75 * var(--s)); height: auto; }
	.top-event__date { display: grid; place-items: center; width: 100%; height: calc(56 * var(--s)); margin: 0; background: var(--te-c2); color: var(--c-tint); font-family: Poppins, var(--font-body); font-weight: 400; font-size: calc(33 * var(--s)); letter-spacing: .17em; text-transform: uppercase; white-space: nowrap; }
	.top-event__city { margin: calc(14 * var(--s)) 0 0; font-family: Poppins, var(--font-body); font-weight: 400; font-size: calc(27 * var(--s)); letter-spacing: .42em; text-transform: uppercase; color: var(--te-c); padding-left: .42em; }
	.top-event__logo { width: calc(268 * var(--s)); height: auto; margin-top: calc(66 * var(--s)); }
	.top-event__ornaments { width: 100%; height: auto; margin-top: calc(55 * var(--s)); }
	.top-event__cta { margin-top: calc(40 * var(--s)); }

	@media (max-width: 991px) {
		.top-event { --s: calc(min(100vw - 32px, 560px) / 659); padding-top: 68px; }
		.top-event__photo { position: relative; inset: auto; z-index: 0; display: block; }
		.top-event__photo img { height: auto; aspect-ratio: 4 / 5; max-height: 75svh; object-position: center top; -webkit-mask-image: linear-gradient(to bottom, #000 50%, transparent 92%); mask-image: linear-gradient(to bottom, #000 50%, transparent 92%); }
		.top-event__inner { margin: min(-22vw, -60px) auto 0; padding-bottom: 40px; }
		.top-event__details { margin-inline: auto; }
		.top-event__cta { width: 100%; }
	}

	@media (prefers-reduced-motion: no-preference) {
		.top-event--anim .top-event__photo img { animation: te-photo 1.6s var(--te-ease) both; }
		.top-event--anim .top-event__number { animation: te-rise .9s var(--te-ease) .1s both; }
		.top-event--anim .top-event__rule { animation: te-grow-y .7s var(--te-ease) .35s both; }
		.top-event--anim .top-event__name-line { animation: te-unmask .8s var(--te-ease) .45s both; }
		.top-event--anim .top-event__name-line + .top-event__name-line { animation-delay: .58s; }
		.top-event--anim .top-event__org-line { animation: te-blur .9s ease .75s both; }
		.top-event--anim .top-event__org-line + .top-event__org-line { animation-delay: .85s; }
		.top-event--anim .top-event__divider-line { animation: te-grow-x .8s var(--te-ease) 1s both; }
		.top-event--anim .top-event__separator { animation: te-spin .9s var(--te-ease) 1.05s both; }
		.top-event--anim .top-event__date { animation: te-wipe .8s var(--te-ease) 1.2s both; }
		.top-event--anim .top-event__date-text { animation: te-fade .6s ease 1.55s both; }
		.top-event--anim .top-event__city { animation: te-blur .8s ease 1.65s both; }
		.top-event--anim .top-event__logo { animation: te-rise .8s var(--te-ease) 1.8s both; }
		.top-event--anim .top-event__ornaments { animation: te-wipe 1.1s var(--te-ease) 1.95s both; }
		.top-event--anim .top-event__cta { animation: te-rise .7s var(--te-ease) 2.2s both; }
	}
}

@keyframes te-photo { from { opacity: 0; transform: scale(1.06); } }
@keyframes te-rise { from { opacity: 0; transform: translateY(24px); } }
@keyframes te-grow-y { from { transform: scaleY(0); } }
@keyframes te-grow-x { from { transform: scaleX(0); } }
@keyframes te-unmask { from { opacity: 0; clip-path: inset(0 0 100% 0); transform: translateY(45%); } to { opacity: 1; clip-path: inset(-20% -5% -20% -5%); transform: none; } }
@keyframes te-blur { from { opacity: 0; filter: blur(8px); } }
@keyframes te-spin { from { opacity: 0; transform: rotate(-90deg) scale(.3); } }
@keyframes te-wipe { from { clip-path: inset(0 50% 0 50%); } to { clip-path: inset(0 0 0 0); } }
@keyframes te-fade { from { opacity: 0; } }

/* ---------- narzędzia ---------- */
@layer utilities {
	.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
	.mt-auto { margin-top: auto; }
	.placeholder { color: var(--c-muted); font-style: italic; }

	/* Animacja wejścia elementów sekcji — klasy nadaje main.js tylko przy włączonym ruchu i dla elementów spoza pierwszego ekranu */
	@media (prefers-reduced-motion: no-preference) {
		.reveal { opacity: 0; transform: translateY(28px); transition: opacity .7s cubic-bezier(.2, .7, .2, 1), transform .7s cubic-bezier(.2, .7, .2, 1); transition-delay: calc(var(--reveal-i, 0) * 80ms); }
		.reveal.is-inview { opacity: 1; transform: none; }
	}
}
