/* ==========================================================================
   Rejestracja na rekolekcje – Domowy Kościół Ostrołęka
   ========================================================================== */

:root {
	--bg: #f6f3ec;
	--surface: #ffffff;
	--surface-2: #faf8f3;
	--ink: #1b2233;
	--ink-2: #3a4356;
	--muted: #6b7385;
	--line: #e6e0d4;
	--line-2: #d7cfbf;

	--primary: #27407a;
	--primary-600: #1f3566;
	--primary-700: #172a52;
	--primary-50: #eef2fb;
	--primary-100: #dde5f6;

	--accent: #c9a24a;
	--accent-600: #b18a35;
	--accent-50: #fbf5e6;

	--danger: #c2412d;
	--danger-50: #fdf0ec;
	--success: #2e8b57;
	--success-50: #eaf6ef;

	--radius-sm: 10px;
	--radius: 16px;
	--radius-lg: 24px;

	--shadow-sm: 0 1px 2px rgba(27, 34, 51, .06), 0 1px 3px rgba(27, 34, 51, .04);
	--shadow: 0 4px 12px -2px rgba(27, 34, 51, .08), 0 2px 4px -2px rgba(27, 34, 51, .05);
	--shadow-lg: 0 24px 48px -12px rgba(27, 34, 51, .18);

	--ease: cubic-bezier(.22, .8, .24, 1);
	--ease-spring: cubic-bezier(.34, 1.56, .64, 1);

	--font: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
	--font-display: 'Fraunces', Georgia, 'Times New Roman', serif;

	--nav-h: 72px;
}

/* ---------- Reset / baza ---------- */

*, *::before, *::after { box-sizing: border-box; }

html {
	scroll-behavior: smooth;
	scroll-padding-top: calc(var(--nav-h) + 12px);
	-webkit-text-size-adjust: 100%;
}

body.rk {
	margin: 0;
	font-family: var(--font);
	font-size: 16px;
	line-height: 1.6;
	color: var(--ink);
	background: var(--bg);
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
	overflow-x: hidden;
}

img, svg, iframe { max-width: 100%; }
a { color: var(--primary); text-decoration: none; transition: color .2s var(--ease); }
a:hover { color: var(--primary-700); }

h1, h2, h3, h4 {
	font-family: var(--font-display);
	font-weight: 600;
	line-height: 1.2;
	color: var(--ink);
	margin: 0 0 .5em;
	letter-spacing: -.01em;
}

::selection { background: var(--accent); color: #fff; }

:focus-visible { outline: 3px solid rgba(201, 162, 74, .55); outline-offset: 2px; }

.rk-container { width: 100%; max-width: 1120px; margin: 0 auto; padding: 0 24px; }
.rk-container--narrow { max-width: 820px; }
.rk-container--form { max-width: 860px; }

.rk-muted { color: var(--muted); }
.rk-empty { color: var(--line-2); }
.rk-req, .rk-field label b, .rk-choice__label b { color: var(--danger); font-weight: 600; }

/* ---------- Pasek postępu przewijania ---------- */

.rk-scrollbar {
	position: fixed;
	inset: 0 0 auto 0;
	height: 3px;
	z-index: 200;
	background: linear-gradient(90deg, var(--accent), #e7c77a);
	transform-origin: 0 50%;
	transform: scaleX(0);
	pointer-events: none;
}

/* ---------- Nawigacja ---------- */

.rk-nav {
	position: fixed;
	inset: 0 0 auto 0;
	z-index: 100;
	height: var(--nav-h);
	transition: background .35s var(--ease), box-shadow .35s var(--ease), backdrop-filter .35s var(--ease), height .35s var(--ease);
	animation: rk-nav-in .8s var(--ease) both;
}
.rk-nav.is-scrolled {
	--nav-h: 62px;
	background: rgba(255, 255, 255, .82);
	backdrop-filter: saturate(1.6) blur(14px);
	-webkit-backdrop-filter: saturate(1.6) blur(14px);
	box-shadow: 0 1px 0 rgba(27, 34, 51, .06), 0 8px 24px -12px rgba(27, 34, 51, .15);
}
.rk-nav__inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	height: 100%;
	max-width: 1200px;
	margin: 0 auto;
	padding: 0 24px;
}

.rk-brand { display: flex; align-items: center; gap: 12px; color: #fff; }
.rk-brand:hover { color: #fff; }
.rk-brand__logo {
	width: 42px; height: 42px;
	border-radius: 50%;
	object-fit: cover;
	border: 2px solid rgba(255, 255, 255, .7);
	box-shadow: 0 4px 14px rgba(0, 0, 0, .2);
	transition: transform .5s var(--ease-spring), border-color .3s;
}
.rk-brand:hover .rk-brand__logo { transform: rotate(-8deg) scale(1.06); }
.rk-brand__text { display: flex; flex-direction: column; line-height: 1.15; }
.rk-brand__text strong { font-family: var(--font-display); font-size: 18px; font-weight: 600; letter-spacing: .01em; }
.rk-brand__text small { font-size: 11px; letter-spacing: .14em; text-transform: uppercase; opacity: .8; }
.is-scrolled .rk-brand, .is-scrolled .rk-brand:hover { color: var(--ink); }
.is-scrolled .rk-brand__logo { border-color: var(--line); box-shadow: none; }

.rk-nav__links { display: flex; align-items: center; gap: 4px; }
.rk-nav__links a {
	position: relative;
	padding: 8px 14px;
	border-radius: 999px;
	font-size: 14px;
	font-weight: 500;
	color: rgba(255, 255, 255, .88);
	transition: color .25s var(--ease), background .25s var(--ease);
}
.rk-nav__links a:not(.rk-nav__cta)::after {
	content: '';
	position: absolute;
	left: 14px; right: 14px; bottom: 4px;
	height: 2px;
	border-radius: 2px;
	background: currentColor;
	transform: scaleX(0);
	transition: transform .35s var(--ease);
}
.rk-nav__links a:hover { color: #fff; }
.rk-nav__links a:hover::after, .rk-nav__links a.is-active::after { transform: scaleX(1); }
.rk-nav__links a.is-active { color: #fff; }
.is-scrolled .rk-nav__links a { color: var(--ink-2); }
.is-scrolled .rk-nav__links a:hover, .is-scrolled .rk-nav__links a.is-active { color: var(--primary); }

.rk-nav__links .rk-nav__cta {
	margin-left: 8px;
	background: var(--accent);
	color: #fff !important;
	font-weight: 600;
	box-shadow: 0 6px 16px -6px rgba(201, 162, 74, .8);
}
.rk-nav__links .rk-nav__cta i { margin-left: 4px; transition: transform .3s var(--ease); }
.rk-nav__links .rk-nav__cta:hover { background: var(--accent-600); }
.rk-nav__links .rk-nav__cta:hover i { transform: translateX(3px); }

.rk-nav__toggle {
	display: none;
	width: 44px; height: 44px;
	border: 0;
	border-radius: 12px;
	background: rgba(255, 255, 255, .14);
	cursor: pointer;
	padding: 0;
	position: relative;
}
.rk-nav__toggle span {
	position: absolute;
	left: 12px; right: 12px;
	height: 2px;
	border-radius: 2px;
	background: #fff;
	transition: transform .35s var(--ease), opacity .2s, top .35s var(--ease), background .3s;
}
.rk-nav__toggle span:nth-child(1) { top: 15px; }
.rk-nav__toggle span:nth-child(2) { top: 21px; }
.rk-nav__toggle span:nth-child(3) { top: 27px; }
.is-scrolled .rk-nav__toggle, .rk-nav.is-open .rk-nav__toggle { background: var(--primary-50); }
.is-scrolled .rk-nav__toggle span, .rk-nav.is-open .rk-nav__toggle span { background: var(--primary); }
.rk-nav.is-open .rk-nav__toggle span:nth-child(1) { top: 21px; transform: rotate(45deg); }
.rk-nav.is-open .rk-nav__toggle span:nth-child(2) { opacity: 0; }
.rk-nav.is-open .rk-nav__toggle span:nth-child(3) { top: 21px; transform: rotate(-45deg); }

@keyframes rk-nav-in { from { transform: translateY(-100%); opacity: 0; } }

/* ---------- Hero ---------- */

.rk-hero {
	position: relative;
	min-height: min(100vh, 900px);
	min-height: min(100svh, 900px);
	display: flex;
	align-items: center;
	overflow: hidden;
	color: #fff;
	isolation: isolate;
	padding: calc(var(--nav-h) + 40px) 0 120px;
}
.rk-hero--compact { min-height: 520px; padding-bottom: 90px; }

.rk-hero__bg {
	position: absolute;
	inset: -6% 0;
	z-index: -3;
	background-size: cover;
	background-position: center;
	animation: rk-kenburns 26s ease-in-out infinite alternate;
	will-change: transform;
}
.rk-hero__overlay {
	position: absolute;
	inset: 0;
	z-index: -2;
	background:
		linear-gradient(180deg, rgba(14, 22, 44, .55) 0%, rgba(14, 22, 44, .35) 40%, rgba(14, 22, 44, .85) 100%),
		linear-gradient(90deg, rgba(23, 42, 82, .75) 0%, rgba(23, 42, 82, .1) 70%);
}
.rk-hero__glow {
	position: absolute;
	z-index: -1;
	width: 620px; height: 620px;
	right: -160px; top: -180px;
	border-radius: 50%;
	background: radial-gradient(circle, rgba(231, 199, 122, .35) 0%, rgba(231, 199, 122, 0) 65%);
	filter: blur(10px);
	animation: rk-glow 9s ease-in-out infinite alternate;
	pointer-events: none;
}
.rk-hero::after {
	/* łagodne przejście do tła strony */
	content: '';
	position: absolute;
	left: 0; right: 0; bottom: -1px;
	height: 90px;
	z-index: -1;
	background: linear-gradient(to bottom, rgba(246, 243, 236, 0), var(--bg));
}

.rk-hero__content { position: relative; max-width: 1120px; }
.rk-hero__kicker {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	font-size: 13px;
	font-weight: 600;
	letter-spacing: .18em;
	text-transform: uppercase;
	color: #f0dca8;
	margin-bottom: 18px;
}
.rk-hero__kicker::before { content: ''; width: 36px; height: 2px; background: currentColor; border-radius: 2px; }
.rk-hero__title {
	color: #fff;
	font-size: clamp(34px, 5.6vw, 68px);
	font-weight: 600;
	max-width: 900px;
	margin-bottom: 24px;
	text-shadow: 0 2px 30px rgba(0, 0, 0, .25);
	text-wrap: balance;
}
.rk-hero__lead { font-size: clamp(17px, 2vw, 20px); max-width: 620px; color: rgba(255, 255, 255, .85); margin: 0 0 8px; }
.rk-hero__code {
	display: block;
	font-family: var(--font-display);
	font-size: clamp(80px, 14vw, 150px);
	line-height: 1;
	font-weight: 700;
	background: linear-gradient(135deg, #fff 0%, #f0dca8 100%);
	-webkit-background-clip: text;
	background-clip: text;
	color: transparent;
	margin-bottom: 8px;
}
.rk-hero__meta { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 36px; }
.rk-hero__actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 8px; }

.rk-hero__scroll {
	position: absolute;
	left: 50%; bottom: 34px;
	width: 28px; height: 46px;
	margin-left: -14px;
	border: 2px solid rgba(255, 255, 255, .6);
	border-radius: 20px;
	opacity: 0;
	animation: rk-fade-in 1s 1.4s var(--ease) forwards;
}
.rk-hero__scroll span {
	position: absolute;
	left: 50%; top: 8px;
	width: 4px; height: 8px;
	margin-left: -2px;
	border-radius: 2px;
	background: #fff;
	animation: rk-scroll-dot 1.8s ease-in-out infinite;
}

/* animacje wejścia elementów hero */
.rk-anim { animation: rk-rise 1s calc(.25s + var(--d, 0) * .12s) var(--ease) both; }

@keyframes rk-kenburns {
	from { transform: scale(1.05) translate3d(0, var(--parallax, 0px), 0); }
	to   { transform: scale(1.16) translate3d(-1.5%, var(--parallax, 0px), 0); }
}
@keyframes rk-glow { from { transform: translate(0, 0) scale(1); opacity: .8; } to { transform: translate(-60px, 40px) scale(1.15); opacity: 1; } }
@keyframes rk-rise { from { opacity: 0; transform: translateY(28px); filter: blur(6px); } to { opacity: 1; transform: none; filter: none; } }
@keyframes rk-fade-in { to { opacity: 1; } }
@keyframes rk-scroll-dot { 0% { opacity: 0; transform: translateY(0); } 30% { opacity: 1; } 100% { opacity: 0; transform: translateY(16px); } }

/* ---------- Chip ---------- */

.rk-chip {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 9px 16px;
	border-radius: 999px;
	font-size: 15px;
	font-weight: 600;
	background: rgba(255, 255, 255, .16);
	border: 1px solid rgba(255, 255, 255, .28);
	backdrop-filter: blur(8px);
	-webkit-backdrop-filter: blur(8px);
	color: #fff;
}
.rk-chip i { color: #f0dca8; }
.rk-chip--ghost { background: rgba(201, 162, 74, .22); border-color: rgba(240, 220, 168, .4); }
.rk-chip--soft { background: var(--accent-50); border-color: #f1e3bd; color: #7a5d1d; font-size: 13px; padding: 6px 12px; backdrop-filter: none; }
.rk-chip--soft i { color: var(--accent-600); }

/* ---------- Przyciski ---------- */

.rk-btn {
	--btn-bg: var(--primary);
	--btn-fg: #fff;
	position: relative;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	padding: 12px 22px;
	border: 0;
	border-radius: 999px;
	background: var(--btn-bg);
	color: var(--btn-fg);
	font: 600 15px/1.2 var(--font);
	cursor: pointer;
	overflow: hidden;
	isolation: isolate;
	text-decoration: none;
	transition: transform .3s var(--ease), box-shadow .3s var(--ease), background .3s var(--ease), color .3s var(--ease);
	-webkit-tap-highlight-color: transparent;
}
.rk-btn:hover { color: var(--btn-fg); transform: translateY(-2px); }
.rk-btn:active { transform: translateY(0) scale(.98); }
.rk-btn i { transition: transform .35s var(--ease); }
.rk-btn:hover .fa-arrow-right, .rk-btn:hover .fa-paper-plane { transform: translateX(4px); }
.rk-btn:hover .fa-arrow-left { transform: translateX(-4px); }
.rk-btn::before {
	/* połysk przesuwający się po najechaniu */
	content: '';
	position: absolute;
	inset: 0;
	z-index: -1;
	background: linear-gradient(110deg, transparent 20%, rgba(255, 255, 255, .28) 50%, transparent 80%);
	transform: translateX(-120%);
	transition: transform .8s var(--ease);
}
.rk-btn:hover::before { transform: translateX(120%); }
.rk-btn--lg { padding: 16px 28px; font-size: 16px; }

.rk-btn--primary { box-shadow: 0 10px 24px -10px rgba(39, 64, 122, .7); }
.rk-btn--primary:hover { --btn-bg: var(--primary-600); box-shadow: 0 16px 30px -12px rgba(39, 64, 122, .8); }
.rk-btn--accent { --btn-bg: var(--accent); box-shadow: 0 10px 28px -10px rgba(201, 162, 74, .9); }
.rk-btn--accent:hover { --btn-bg: var(--accent-600); }
.rk-btn--glass { --btn-bg: rgba(255, 255, 255, .12); border: 1px solid rgba(255, 255, 255, .35); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.rk-btn--glass:hover { --btn-bg: rgba(255, 255, 255, .22); }
.rk-btn--ghost { --btn-bg: var(--surface); --btn-fg: var(--ink-2); box-shadow: inset 0 0 0 1.5px var(--line-2); }
.rk-btn--ghost:hover { --btn-fg: var(--primary); box-shadow: inset 0 0 0 1.5px var(--primary), var(--shadow); }

.rk-btn.is-loading { pointer-events: none; }
.rk-btn.is-loading > span, .rk-btn.is-loading > i { opacity: 0; }
.rk-btn.is-loading::after {
	content: '';
	position: absolute;
	width: 22px; height: 22px;
	border-radius: 50%;
	border: 2.5px solid rgba(255, 255, 255, .35);
	border-top-color: #fff;
	animation: rk-spin .7s linear infinite;
}
@keyframes rk-spin { to { transform: rotate(360deg); } }

/* ---------- Sekcje ---------- */

.rk-section { position: relative; padding: 80px 0; }
.rk-section--alt { background: linear-gradient(180deg, var(--bg) 0%, #efe9dd 100%); }
.rk-section--form { padding-top: 64px; padding-bottom: 110px; }
.rk-hero + .rk-section--form, .rk-hero + .rk-section { padding-top: 40px; }

.rk-section__head { text-align: center; margin: 0 auto 40px; max-width: 640px; }
.rk-section__head h2 { font-size: clamp(28px, 3.6vw, 40px); margin-bottom: 12px; }
.rk-section__head p { color: var(--muted); margin: 0; font-size: 17px; }

.rk-eyebrow {
	display: inline-block;
	margin-bottom: 12px;
	padding: 5px 12px;
	border-radius: 999px;
	background: var(--accent-50);
	color: #8a6a22;
	font-size: 12px;
	font-weight: 700;
	letter-spacing: .14em;
	text-transform: uppercase;
}

/* ---------- Karty ---------- */

.rk-card {
	position: relative;
	background: var(--surface);
	border: 1px solid var(--line);
	border-radius: var(--radius-lg);
	padding: 32px;
	box-shadow: var(--shadow);
	transition: box-shadow .4s var(--ease), border-color .4s var(--ease), transform .4s var(--ease);
}
.rk-card + .rk-card { margin-top: 20px; }
.rk-form .rk-card:focus-within { border-color: var(--primary-100); box-shadow: 0 0 0 4px rgba(39, 64, 122, .06), var(--shadow-lg); }

.rk-card__head { display: flex; align-items: center; gap: 16px; margin-bottom: 26px; }
.rk-card__head h4 { font-size: 22px; margin: 0; }
.rk-card__head p { margin: 2px 0 0; color: var(--muted); font-size: 14px; }
.rk-card__icon {
	flex: 0 0 auto;
	display: grid;
	place-items: center;
	width: 48px; height: 48px;
	border-radius: 14px;
	background: linear-gradient(135deg, var(--primary-50), var(--primary-100));
	color: var(--primary);
	font-size: 20px;
	transition: transform .5s var(--ease-spring);
}
.rk-card:focus-within .rk-card__icon, .rk-card:hover .rk-card__icon { transform: rotate(-6deg) scale(1.06); }

/* treść z CMS */
.rk-prose { font-size: 17px; line-height: 1.75; color: var(--ink-2); }
.rk-prose > :first-child { margin-top: 0; }
.rk-prose > :last-child { margin-bottom: 0; }
.rk-prose h1, .rk-prose h2, .rk-prose h3, .rk-prose h4 { margin: 1.4em 0 .5em; }
.rk-prose p { margin: 0 0 1em; }
.rk-prose ul, .rk-prose ol { padding-left: 1.3em; }
.rk-prose li { margin: .3em 0; }
.rk-prose li::marker { color: var(--accent); }
.rk-prose img { height: auto; border-radius: var(--radius); }
.rk-prose a { text-decoration: underline; text-decoration-color: var(--primary-100); text-underline-offset: 3px; text-decoration-thickness: 2px; transition: color .25s var(--ease), text-decoration-color .25s var(--ease); }
.rk-prose a:hover { text-decoration-color: var(--primary); }
.rk-prose table { width: 100%; border-collapse: collapse; }
.rk-prose td, .rk-prose th { padding: 8px 10px; border-bottom: 1px solid var(--line); }
.rk-prose blockquote { margin: 1.2em 0; padding: 4px 0 4px 20px; border-left: 3px solid var(--accent); font-family: var(--font-display); font-size: 1.1em; color: var(--ink); }
.rk-intro { margin-bottom: 20px; background: var(--surface-2); }

/* mapa */
.rk-map { padding: 10px; overflow: hidden; }
.rk-map iframe { display: block; width: 100% !important; min-height: 420px; border: 0; border-radius: calc(var(--radius-lg) - 8px); }

/* ---------- Kroki formularza ---------- */

.rk-steps { display: flex; align-items: center; justify-content: center; margin: 0 auto 44px; max-width: 560px; }
.rk-steps__item { display: flex; flex-direction: column; align-items: center; gap: 8px; flex: 0 0 auto; }
.rk-steps__item em { font-style: normal; font-size: 13px; font-weight: 600; color: var(--muted); transition: color .4s; }
.rk-steps__dot {
	display: grid;
	place-items: center;
	width: 44px; height: 44px;
	border-radius: 50%;
	background: var(--surface);
	border: 2px solid var(--line-2);
	color: var(--muted);
	font-weight: 700;
	transition: all .5s var(--ease);
}
.rk-steps__item.is-active .rk-steps__dot {
	background: var(--primary);
	border-color: var(--primary);
	color: #fff;
	box-shadow: 0 0 0 6px var(--primary-50);
	animation: rk-pulse 2.4s ease-in-out infinite;
}
.rk-steps__item.is-active em { color: var(--primary); }
.rk-steps__item.is-done .rk-steps__dot { background: var(--success); border-color: var(--success); color: #fff; }
.rk-steps__item.is-done em { color: var(--success); }
.rk-steps__line { flex: 1 1 auto; height: 3px; margin: 0 10px 26px; border-radius: 3px; background: var(--line); overflow: hidden; }
.rk-steps__line i { display: block; height: 100%; width: 100%; background: var(--success); transform: scaleX(0); transform-origin: 0 50%; }
.rk-steps__line.is-done i { animation: rk-line-fill .9s .3s var(--ease) forwards; }
@keyframes rk-pulse { 0%, 100% { box-shadow: 0 0 0 6px var(--primary-50); } 50% { box-shadow: 0 0 0 11px rgba(238, 242, 251, .4); } }
@keyframes rk-line-fill { to { transform: scaleX(1); } }

/* ---------- Pola formularza ---------- */

.rk-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 20px; }
.rk-field { position: relative; min-width: 0; }
.rk-field--full { grid-column: 1 / -1; }

.rk-field > input, .rk-field > textarea {
	width: 100%;
	height: 58px;
	padding: 24px 16px 8px;
	border: 1.5px solid var(--line-2);
	border-radius: var(--radius-sm);
	background: var(--surface-2);
	color: var(--ink);
	font: 500 16px/1.3 var(--font);
	transition: border-color .25s var(--ease), background .25s var(--ease), box-shadow .25s var(--ease);
	-webkit-appearance: none;
	appearance: none;
}
.rk-field textarea { height: auto; min-height: 140px; padding-top: 28px; resize: vertical; line-height: 1.5; }
.rk-field > input:hover, .rk-field > textarea:hover { border-color: #bfb49f; }
.rk-field > input:focus, .rk-field > textarea:focus {
	outline: none;
	background: var(--surface);
	border-color: var(--primary);
	box-shadow: 0 0 0 4px rgba(39, 64, 122, .12);
}
.rk-field input:disabled { opacity: .5; }
.rk-field input[type="date"]::-webkit-calendar-picker-indicator { cursor: pointer; opacity: .55; transition: opacity .2s; }
.rk-field input[type="date"]::-webkit-calendar-picker-indicator:hover { opacity: 1; }

.rk-field > label {
	position: absolute;
	left: 17px; top: 18px;
	font-size: 16px;
	color: var(--muted);
	pointer-events: none;
	transform-origin: 0 0;
	white-space: nowrap;
	max-width: calc(100% - 34px);
	overflow: hidden;
	text-overflow: ellipsis;
	transition: transform .25s var(--ease), color .25s var(--ease);
}
.rk-field input:focus + label,
.rk-field input:not(:placeholder-shown) + label,
.rk-field textarea:focus + label,
.rk-field textarea:not(:placeholder-shown) + label,
.rk-field--date label {
	transform: translateY(-11px) scale(.76);
	font-weight: 600;
	letter-spacing: .02em;
	max-width: calc((100% - 34px) / .76);
}
.rk-field input:focus + label, .rk-field textarea:focus + label { color: var(--primary); }

/* pole z ikoną */
.rk-field--icon input { padding-left: 46px; }
.rk-field--icon label { left: 47px; }
.rk-field__icon {
	position: absolute;
	left: 17px; top: 20px;
	color: var(--muted);
	font-size: 16px;
	width: 18px;
	text-align: center;
	pointer-events: none;
	transition: color .25s, transform .35s var(--ease-spring);
}
.rk-field--icon:focus-within .rk-field__icon { color: var(--primary); transform: scale(1.15); }

.rk-field__hint { display: block; margin: 6px 4px 0; font-size: 13px; color: var(--muted); }
.rk-field__err {
	display: grid;
	grid-template-rows: 0fr;
	font-size: 13px;
	font-weight: 500;
	color: var(--danger);
	transition: grid-template-rows .3s var(--ease), margin .3s var(--ease);
}
.rk-field__err > span { overflow: hidden; }
.rk-field.is-invalid .rk-field__err { grid-template-rows: 1fr; margin-top: 6px; }

.rk-field.is-invalid input, .rk-field.is-invalid textarea { border-color: var(--danger); background: var(--danger-50); }
.rk-field.is-invalid input:focus { box-shadow: 0 0 0 4px rgba(194, 65, 45, .12); }
.rk-field.is-invalid label, .rk-field.is-invalid .rk-field__icon { color: var(--danger); }
.rk-field.is-valid input { border-color: #9fcdb2; }
.rk-field.is-valid::after {
	content: '\f00c';
	font-family: FontAwesome;
	position: absolute;
	right: 16px; top: 19px;
	color: var(--success);
	font-size: 14px;
	animation: rk-pop .4s var(--ease-spring);
	pointer-events: none;
}
.rk-field--date.is-valid::after, .rk-field--choice.is-valid::after { display: none; }
.rk-shake { animation: rk-shake .45s var(--ease); }

@keyframes rk-pop { from { transform: scale(0); opacity: 0; } }
@keyframes rk-shake {
	0%, 100% { transform: translateX(0); }
	20% { transform: translateX(-8px); }
	40% { transform: translateX(7px); }
	60% { transform: translateX(-5px); }
	80% { transform: translateX(3px); }
}

/* przełącznik Tak/Nie */
.rk-choice__label { display: block; font-size: 14px; font-weight: 600; color: var(--ink-2); margin: 0 0 8px 2px; }
.rk-choice { display: flex; gap: 10px; }
.rk-choice__opt { flex: 1; position: relative; cursor: pointer; }
.rk-choice__opt input, .rk-segment__opt input { position: absolute; opacity: 0; pointer-events: none; }
.rk-choice__opt span {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	height: 50px;
	border: 1.5px solid var(--line-2);
	border-radius: var(--radius-sm);
	background: var(--surface-2);
	font-weight: 600;
	color: var(--ink-2);
	transition: all .25s var(--ease);
}
.rk-choice__opt:hover span { border-color: #bfb49f; }
.rk-choice__opt input:checked + span {
	background: var(--primary-50);
	border-color: var(--primary);
	color: var(--primary);
	box-shadow: 0 0 0 3px rgba(39, 64, 122, .1);
	animation: rk-press .35s var(--ease-spring);
}
.rk-choice__opt input:focus-visible + span { outline: 3px solid rgba(201, 162, 74, .55); outline-offset: 2px; }
.rk-field--choice.is-invalid .rk-choice__opt span { border-color: var(--danger); background: var(--danger-50); }
@keyframes rk-press { 50% { transform: scale(.96); } }

/* liczba dzieci – segment z przesuwaną pigułką */
.rk-kids-count { margin-bottom: 8px; }
.rk-segment {
	position: relative;
	display: grid;
	grid-template-columns: repeat(7, 1fr);
	padding: 5px;
	border-radius: 14px;
	background: var(--surface-2);
	border: 1.5px solid var(--line-2);
	isolation: isolate;
}
.rk-segment__opt { position: relative; cursor: pointer; }
.rk-segment__opt span {
	display: grid;
	place-items: center;
	height: 42px;
	border-radius: 10px;
	font-weight: 600;
	font-size: 15px;
	color: var(--muted);
	transition: color .3s var(--ease);
}
.rk-segment__opt:hover span { color: var(--ink); }
.rk-segment__opt input:checked + span { color: #fff; }
.rk-segment__opt input:focus-visible + span { outline: 3px solid rgba(201, 162, 74, .55); }
.rk-segment__pill {
	position: absolute;
	z-index: -1;
	top: 5px; bottom: 5px; left: 5px;
	width: calc((100% - 10px) / 7);
	border-radius: 10px;
	background: var(--primary);
	box-shadow: 0 6px 14px -6px rgba(39, 64, 122, .7);
	transform: translateX(calc(var(--i, 0) * 100%));
	transition: transform .45s var(--ease-spring);
}
.no-js .rk-segment__pill, html:not(.js) .rk-segment__pill { display: none; }

/* wiersze dzieci – płynne rozwijanie */
.rk-kid { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .45s var(--ease), opacity .35s var(--ease); opacity: 0; }
.rk-kid.is-open { grid-template-rows: 1fr; opacity: 1; }
.rk-kid__inner { overflow: hidden; }
.rk-kid__row {
	display: grid;
	grid-template-columns: auto minmax(0, 1.3fr) minmax(0, 1fr);
	gap: 14px;
	align-items: start;
	padding-top: 14px;
	transform: translateY(-10px);
	transition: transform .45s var(--ease);
}
.rk-kid.is-open .rk-kid__row { transform: none; }
.rk-kid__num {
	display: grid;
	place-items: center;
	width: 34px; height: 34px;
	margin-top: 12px;
	border-radius: 50%;
	background: var(--accent-50);
	color: #8a6a22;
	font-weight: 700;
	font-size: 14px;
}

/* ---------- Komunikaty ---------- */

.rk-alert {
	display: flex;
	gap: 16px;
	padding: 20px 22px;
	margin-bottom: 24px;
	border-radius: var(--radius);
	border: 1px solid;
}
.rk-alert--error { background: var(--danger-50); border-color: #f2c7bd; color: #7c2415; }
.rk-alert__icon { flex: 0 0 auto; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; background: var(--danger); color: #fff; }
.rk-alert ul { margin: 6px 0 0; padding-left: 18px; }
.rk-alert li { margin: 2px 0; }
.rk-alert--shake { animation: rk-rise .6s var(--ease) both, rk-shake .5s .6s var(--ease); }

/* ---------- Podsumowanie (krok 2) ---------- */

.rk-summary-head { display: flex; align-items: center; gap: 16px; background: linear-gradient(135deg, var(--primary-700), var(--primary)); border: 0; color: #fff; }
.rk-summary-head small { display: block; font-size: 12px; letter-spacing: .12em; text-transform: uppercase; opacity: .75; }
.rk-summary-head strong { font-family: var(--font-display); font-size: 21px; font-weight: 600; line-height: 1.3; }
.rk-summary-head .rk-card__icon { background: rgba(255, 255, 255, .14); color: #f0dca8; }

.rk-summary { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2px 24px; margin: 0; }
.rk-summary__item { padding: 12px 0; border-bottom: 1px dashed var(--line); min-width: 0; }
.rk-summary__item--full { grid-column: 1 / -1; }
.rk-summary dt { font-size: 12px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); margin-bottom: 2px; }
.rk-summary dd { margin: 0; font-size: 17px; font-weight: 600; color: var(--ink); overflow-wrap: anywhere; }

.rk-kids-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.rk-kids-list li { display: flex; align-items: center; gap: 14px; padding: 10px 14px; border-radius: 12px; background: var(--surface-2); border: 1px solid var(--line); }
.rk-kids-list .rk-kid__num { margin: 0; }
.rk-kids-list strong { flex: 1; }
.rk-kids-list em { font-style: normal; color: var(--muted); font-weight: 500; }

/* ---------- Akcje formularza ---------- */

.rk-form__actions { display: flex; justify-content: center; gap: 14px; margin-top: 32px; flex-wrap: wrap; }
.rk-form__actions--split { justify-content: space-between; }

/* ---------- Stany (sukces / zamknięte) ---------- */

.rk-state {
	text-align: center;
	max-width: 620px;
	margin: 0 auto;
	padding: 48px 32px;
	background: var(--surface);
	border: 1px solid var(--line);
	border-radius: var(--radius-lg);
	box-shadow: var(--shadow-lg);
	animation: rk-rise .8s var(--ease) both;
}
.rk-state h3 { font-size: clamp(24px, 3vw, 30px); margin: 18px 0 12px; }
.rk-state p { color: var(--ink-2); margin: 0 0 12px; }
.rk-state__icon {
	display: inline-grid;
	place-items: center;
	width: 76px; height: 76px;
	border-radius: 50%;
	background: var(--accent-50);
	color: var(--accent-600);
	font-size: 30px;
	animation: rk-pop .6s .2s var(--ease-spring) both;
}
.rk-state--closed .rk-state__icon { background: var(--danger-50); color: var(--danger); }

.rk-check { width: 92px; height: 92px; display: block; margin: 0 auto; }
.rk-check__circle {
	stroke: var(--success);
	stroke-width: 2.5;
	stroke-dasharray: 151;
	stroke-dashoffset: 151;
	animation: rk-draw .7s .2s var(--ease) forwards;
}
.rk-check__tick {
	stroke: var(--success);
	stroke-width: 3.5;
	stroke-linecap: round;
	stroke-linejoin: round;
	stroke-dasharray: 34;
	stroke-dashoffset: 34;
	animation: rk-draw .45s .85s var(--ease) forwards;
}
.rk-state--success { position: relative; overflow: hidden; }
.rk-state--success::before {
	content: '';
	position: absolute;
	inset: 0 0 auto 0;
	height: 6px;
	background: linear-gradient(90deg, var(--success), #6cc596, var(--accent));
}
@keyframes rk-draw { to { stroke-dashoffset: 0; } }

/* konfetti (tworzone przez JS) */
.rk-confetti { position: fixed; top: -12px; z-index: 300; width: 9px; height: 14px; border-radius: 2px; pointer-events: none; animation: rk-fall linear forwards; }
@keyframes rk-fall { to { transform: translate3d(var(--dx), 105vh, 0) rotate(var(--rot)); } }

/* ---------- Lista rekolekcji (strona główna) ---------- */

.rk-events { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 24px; }
.rk-event {
	display: flex;
	flex-direction: column;
	background: var(--surface);
	border: 1px solid var(--line);
	border-radius: var(--radius-lg);
	overflow: hidden;
	color: var(--ink);
	box-shadow: var(--shadow);
	transition: transform .45s var(--ease), box-shadow .45s var(--ease);
}
.rk-event:hover { color: var(--ink); transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.rk-event__img { display: block; aspect-ratio: 16 / 9; background-size: cover; background-position: center; transition: transform .8s var(--ease); }
.rk-event:hover .rk-event__img { transform: scale(1.06); }
.rk-event__body { position: relative; display: flex; flex-direction: column; align-items: flex-start; gap: 12px; padding: 22px 24px 24px; background: var(--surface); }
.rk-event__body strong { font-family: var(--font-display); font-size: 21px; font-weight: 600; line-height: 1.3; }
.rk-event__more { margin-top: auto; font-weight: 600; color: var(--primary); }
.rk-event__more i { transition: transform .35s var(--ease); }
.rk-event:hover .rk-event__more i { transform: translateX(5px); }

/* ---------- Stopka ---------- */

.rk-footer { background: var(--primary-700); color: rgba(255, 255, 255, .75); padding: 56px 0 32px; position: relative; overflow: hidden; }
.rk-footer::before {
	content: '';
	position: absolute;
	width: 500px; height: 500px;
	left: -200px; top: -300px;
	border-radius: 50%;
	background: radial-gradient(circle, rgba(201, 162, 74, .18), transparent 65%);
}
.rk-footer .rk-container { position: relative; }
.rk-footer__contact { text-align: center; margin-bottom: 40px; }
.rk-footer__contact h3 { color: #fff; font-size: 24px; margin-bottom: 24px; }
.rk-footer__cards { display: flex; justify-content: center; flex-wrap: wrap; gap: 16px; }
.rk-contact {
	display: flex;
	align-items: center;
	gap: 14px;
	padding: 14px 22px 14px 14px;
	border-radius: var(--radius);
	background: rgba(255, 255, 255, .07);
	border: 1px solid rgba(255, 255, 255, .12);
	color: #fff;
	text-align: left;
	font-weight: 600;
	transition: background .3s var(--ease), transform .3s var(--ease), border-color .3s;
}
.rk-contact:hover { color: #fff; background: rgba(255, 255, 255, .12); border-color: rgba(240, 220, 168, .4); transform: translateY(-3px); }
.rk-contact small { display: block; font-size: 12px; font-weight: 500; color: rgba(255, 255, 255, .6); }
.rk-contact__icon { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; background: var(--accent); color: #fff; font-size: 18px; }
.rk-footer__copy { text-align: center; margin: 0; padding-top: 24px; border-top: 1px solid rgba(255, 255, 255, .1); font-size: 14px; }

/* ---------- Pojawianie się przy przewijaniu ---------- */

/* Po zakończeniu animacji JS dodaje .is-revealed — reguły poniżej przestają działać
   i element wraca do własnych przejść (np. .rk-event: płynne uniesienie i cień po najechaniu). */
.js .rk-reveal:not(.is-revealed) {
	opacity: 0;
	transform: translateY(32px);
	transition: opacity .8s var(--ease), transform .8s var(--ease);
	transition-delay: calc(var(--d, 0) * 90ms);
}
.js .rk-reveal.is-visible:not(.is-revealed) { opacity: 1; transform: none; }

/* ---------- Responsywność ---------- */

@media (max-width: 860px) {
	:root { --nav-h: 64px; }
	.rk-nav__toggle { display: block; }
	.rk-nav__links {
		position: absolute;
		top: calc(100% + 8px); left: 16px; right: 16px;
		flex-direction: column;
		align-items: stretch;
		gap: 4px;
		padding: 10px;
		border-radius: var(--radius);
		background: rgba(255, 255, 255, .97);
		backdrop-filter: blur(14px);
		-webkit-backdrop-filter: blur(14px);
		box-shadow: var(--shadow-lg);
		opacity: 0;
		visibility: hidden;
		transform: translateY(-10px) scale(.98);
		transform-origin: top center;
		transition: opacity .3s var(--ease), transform .35s var(--ease), visibility 0s .35s;
	}
	.rk-nav.is-open .rk-nav__links { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
	.rk-nav__links a { color: var(--ink-2); padding: 12px 16px; border-radius: 12px; }
	.rk-nav__links a:hover, .rk-nav__links a.is-active { color: var(--primary); background: var(--primary-50); }
	.rk-nav__links a::after { display: none; }
	.rk-nav__links .rk-nav__cta { margin: 6px 0 0; text-align: center; }
	.rk-nav.is-open:not(.is-scrolled) { background: rgba(255, 255, 255, .92); backdrop-filter: blur(14px); }
	.rk-nav.is-open .rk-brand { color: var(--ink); }
}

@media (max-width: 640px) {
	body.rk { font-size: 15px; }
	.rk-container { padding: 0 16px; }
	.rk-nav__inner { padding: 0 16px; }
	.rk-brand__text small { display: none; }
	.rk-hero { padding-bottom: 100px; min-height: 88vh; min-height: 88svh; }
	.rk-hero--compact { min-height: 440px; }
	.rk-hero__actions .rk-btn { width: 100%; }
	.rk-section { padding: 56px 0; }
	.rk-card { padding: 22px 18px; border-radius: 20px; }
	.rk-card__head { margin-bottom: 20px; }
	.rk-card__head h4 { font-size: 20px; }
	.rk-grid, .rk-summary { grid-template-columns: 1fr; }
	.rk-kid__row { grid-template-columns: auto minmax(0, 1fr); }
	.rk-kid__row > .rk-field:last-child { grid-column: 2; }
	.rk-segment__opt span { font-size: 14px; height: 40px; }
	.rk-steps__dot { width: 38px; height: 38px; }
	.rk-steps__item em { font-size: 12px; }
	.rk-steps__line { margin-bottom: 24px; }
	.rk-form__actions .rk-btn { width: 100%; }
	.rk-form__actions--split { flex-direction: column-reverse; }
	.rk-state { padding: 36px 20px; }
	.rk-map iframe { min-height: 320px; }
}

@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	/* wyłączamy animacje, ale zostawiamy krótkie, łagodne przejścia po najechaniu (hover) */
	*, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-delay: 0s !important; }
	.js .rk-reveal:not(.is-revealed) { opacity: 1; transform: none; }
}
