/* System Pralni — main stylesheet */

/* ---------- Fonts (self-hosted, no Google requests) ---------- */
@font-face {
	font-family: "Bricolage Grotesque";
	font-style: normal;
	font-display: swap;
	font-weight: 200 800;
	src: url("../fonts/bricolage-grotesque-latin-ext-wght-normal.woff2") format("woff2-variations");
	unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
	font-family: "Bricolage Grotesque";
	font-style: normal;
	font-display: swap;
	font-weight: 200 800;
	src: url("../fonts/bricolage-grotesque-latin-wght-normal.woff2") format("woff2-variations");
	unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
	font-family: "Instrument Sans";
	font-style: normal;
	font-display: swap;
	font-weight: 400 700;
	src: url("../fonts/instrument-sans-latin-ext-wght-normal.woff2") format("woff2-variations");
	unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
	font-family: "Instrument Sans";
	font-style: normal;
	font-display: swap;
	font-weight: 400 700;
	src: url("../fonts/instrument-sans-latin-wght-normal.woff2") format("woff2-variations");
	unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ---------- Tokens ---------- */
:root {
	--ink: #0F2A3F;        /* text, dark sections, footer */
	--navy: #0B4F8A;       /* brand primary, buttons */
	--navy-deep: #083C69;  /* button hover */
	--teal: #0B7F7C;       /* the tick: done, success */
	--water: #E8F1F6;      /* soft section background */
	--line: #CCDCE6;       /* borders on water/white */
	--paper: #FFFFFF;
	--tag: #F4E4AE;        /* laundry tag (hero only) */
	--muted: #4D6475;      /* secondary text, 6.1:1 on white */

	--font-display: "Bricolage Grotesque", "Segoe UI", system-ui, sans-serif;
	--font-body: "Instrument Sans", "Segoe UI", system-ui, sans-serif;

	--step--1: 0.889rem;
	--step-0: 1.0625rem;
	--step-1: 1.25rem;
	--step-2: clamp(1.5rem, 1.2rem + 1.2vw, 1.875rem);
	--step-3: clamp(1.9rem, 1.4rem + 2.2vw, 2.75rem);
	--step-4: clamp(2.4rem, 1.6rem + 3.6vw, 4.25rem);

	--wrap: 1180px;
	--gutter: clamp(1.25rem, 4vw, 2.5rem);
	--section: clamp(4rem, 9vw, 7.5rem);
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 88px; }
body {
	margin: 0;
	font-family: var(--font-body);
	font-size: var(--step-0);
	line-height: 1.6;
	color: var(--ink);
	background: var(--paper);
	-webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; height: auto; }
a { color: var(--navy); text-underline-offset: 0.18em; text-decoration-thickness: 1px; }
a:hover { color: var(--ink); }
h1, h2, h3, h4 {
	font-family: var(--font-display);
	font-weight: 700;
	line-height: 1.1;
	letter-spacing: -0.015em;
	margin: 0 0 0.5em;
	text-wrap: balance;
}
h3 { font-size: var(--step-1); letter-spacing: -0.005em; line-height: 1.25; }
p { margin: 0 0 1em; }
:focus-visible { outline: 3px solid var(--teal); outline-offset: 3px; border-radius: 4px; }

.screen-reader-text {
	position: absolute !important; width: 1px; height: 1px; overflow: hidden;
	clip: rect(1px, 1px, 1px, 1px); white-space: nowrap;
}
.skip-link {
	position: absolute; left: 1rem; top: -100px; z-index: 100;
	background: var(--ink); color: #fff; padding: 0.6rem 1rem; border-radius: 8px;
}
.skip-link:focus { top: 1rem; color: #fff; }

.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }
.wrap--text { max-width: calc(46rem + 2 * var(--gutter)); }

/* ---------- Buttons ---------- */
.btn {
	display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
	min-height: 52px; padding: 0.75rem 1.4rem;
	font: 600 var(--step-0)/1.2 var(--font-body);
	border-radius: 12px; border: 2px solid transparent;
	text-decoration: none; cursor: pointer;
	transition: background-color 0.15s, color 0.15s, border-color 0.15s;
}
.btn--primary { background: var(--navy); color: #fff; }
.btn--primary:hover { background: var(--navy-deep); color: #fff; }
.btn--ghost { background: transparent; color: var(--navy); border-color: currentColor; }
.btn--ghost:hover { color: var(--ink); background: rgba(255, 255, 255, 0.6); }
.btn--light { background: #fff; color: var(--navy); }
.btn--light:hover { background: var(--water); color: var(--ink); }
.btn--small { min-height: 44px; padding: 0.55rem 1rem; font-size: var(--step--1); }
.btn--block { display: flex; width: 100%; }
.btn[disabled] { opacity: 0.5; cursor: not-allowed; }

.tick {
	display: inline-grid; place-items: center; flex: none;
	width: 1.5rem; height: 1.5rem; border-radius: 50%;
	background: var(--teal); color: #fff;
}
.tick svg { width: 1rem; height: 1rem; }

/* ---------- Header ---------- */
.site-header {
	position: sticky; top: 0; z-index: 50;
	background: rgba(255, 255, 255, 0.94);
	backdrop-filter: saturate(1.4) blur(10px);
	border-bottom: 1px solid var(--line);
}
.site-header__inner { display: flex; align-items: center; gap: 1.5rem; min-height: 72px; }
.brand { flex: none; }
.brand img { width: 194px; height: auto; }
.nav { display: flex; align-items: center; gap: 1.75rem; margin-left: auto; }
.nav__list { display: flex; gap: 1.6rem; list-style: none; margin: 0; padding: 0; }
.nav__list a { color: var(--ink); text-decoration: none; font-weight: 500; padding: 0.4rem 0; }
.nav__list a:hover { color: var(--navy); text-decoration: underline; }
.is-help .site-header .nav__list a[href*="/pomoc"] { color: var(--navy); text-decoration: underline; }
.is-help .site-footer .nav__list a[href*="/pomoc"] { color: #fff; text-decoration: underline; }
.nav__actions { display: flex; align-items: center; gap: 1.1rem; }
.nav__login { font-weight: 600; }
.nav-toggle {
	display: none; margin-left: auto; width: 44px; height: 44px; padding: 10px;
	border: 0; background: transparent; color: var(--ink); cursor: pointer; border-radius: 10px;
}
.nav-toggle__close { display: none; }

@media (max-width: 900px) {
	.nav-toggle { display: block; }
	.nav {
		display: none; position: absolute; left: 0; right: 0; top: 100%;
		flex-direction: column; align-items: stretch; gap: 0;
		background: #fff; border-bottom: 1px solid var(--line);
		padding: 0.5rem var(--gutter) 1.25rem;
	}
	.nav.is-open { display: flex; }
	.nav .nav__list { flex-direction: column; gap: 0; }
	.nav .nav__list a { display: block; padding: 0.85rem 0; border-bottom: 1px solid var(--water); }
	.nav__actions { flex-direction: column; align-items: stretch; margin-top: 1rem; }
	.nav-toggle[aria-expanded="true"] .nav-toggle__open { display: none; }
	.nav-toggle[aria-expanded="true"] .nav-toggle__close { display: block; }
	.brand img { width: 168px; }
}

/* ---------- Hero ---------- */
.hero { background: var(--water); overflow: hidden; }
.hero__inner {
	display: grid; grid-template-columns: 1.15fr 0.85fr; gap: clamp(2rem, 5vw, 5rem);
	align-items: center; padding-block: clamp(3.5rem, 8vw, 6.5rem);
}
.hero__title { font-size: var(--step-4); font-weight: 800; letter-spacing: -0.03em; line-height: 1.02; max-width: 13ch; margin-bottom: 0.4em; }
.hero__lead { font-size: var(--step-1); line-height: 1.55; color: var(--ink); max-width: 34em; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin: 2rem 0 1rem; }
.hero__note { color: var(--muted); font-size: var(--step--1); margin: 0; }

/* The laundry tag: the one loud thing on the page */
.hero__tag-wrap { position: relative; display: flex; justify-content: center; padding-top: 2.5rem; }
.tag {
	position: relative; width: min(100%, 360px);
	background: var(--tag); color: var(--ink);
	padding: 3.25rem 1.75rem 1.75rem;
	border-radius: 14px 14px 18px 18px;
	clip-path: polygon(18% 0, 82% 0, 100% 9%, 100% 100%, 0 100%, 0 9%);
}
.tag-shadow { /* shadow lives on a wrapper so clip-path doesn't cut it */
	position: relative; z-index: 1;
	transform: rotate(-2.5deg);
	filter: drop-shadow(0 18px 24px rgba(15, 42, 63, 0.16));
}
.tag__hole {
	position: absolute; top: 1.1rem; left: 50%; width: 18px; height: 18px; margin-left: -9px;
	border-radius: 50%; background: var(--water); box-shadow: inset 0 0 0 3px rgba(15, 42, 63, 0.18);
}
.hero__tag-wrap::before { /* string, ends in the hole */
	content: ""; position: absolute; z-index: 2; top: -2.5rem; left: 50%; width: 2px; height: 6.15rem; margin-left: 1px;
	background: var(--ink); opacity: 0.45;
}
.tag__head { display: grid; gap: 0.1rem; padding-bottom: 1rem; margin-bottom: 1rem; border-bottom: 2px dashed rgba(15, 42, 63, 0.25); }
.tag__no { font-family: var(--font-display); font-size: 1.6rem; font-weight: 800; letter-spacing: -0.02em; }
.tag__client { font-weight: 600; }
.tag__meta { color: #5b5a44; font-size: var(--step--1); }
.tag__steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.7rem; }
.tag__steps li { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 0.75rem; }
.tag__steps time { font-size: var(--step--1); color: #5b5a44; font-variant-numeric: tabular-nums; }
.tag__ksef { margin-top: 0.35rem; padding-top: 0.85rem; border-top: 2px dashed rgba(15, 42, 63, 0.25); font-weight: 700; }

/* One orchestrated moment: the ticks fill in, top to bottom, once. */
@media (prefers-reduced-motion: no-preference) {
	.js .tag__steps .tick { animation: tick-in 0.35s ease-out both; }
	.js .tag__steps li > span:nth-child(2),
	.js .tag__steps time { animation: text-in 0.35s ease-out both; }
	.js .tag__steps li:nth-child(1) > * { animation-delay: 0.3s; }
	.js .tag__steps li:nth-child(2) > * { animation-delay: 0.65s; }
	.js .tag__steps li:nth-child(3) > * { animation-delay: 1.0s; }
	.js .tag__steps li:nth-child(4) > * { animation-delay: 1.35s; }
	.js .tag__steps li:nth-child(5) > * { animation-delay: 1.7s; }
	.js .tag__steps li:nth-child(6) > * { animation-delay: 2.15s; }
}
@keyframes tick-in {
	from { background: transparent; color: transparent; box-shadow: inset 0 0 0 2px rgba(15, 42, 63, 0.3); transform: scale(0.85); }
	to   { background: var(--teal); color: #fff; box-shadow: none; transform: scale(1); }
}
@keyframes text-in { from { opacity: 0.35; } to { opacity: 1; } }

@media (max-width: 860px) {
	.hero__inner { grid-template-columns: 1fr; }
	.hero__tag-wrap { padding-top: 3rem; }
}

/* ---------- Sections ---------- */
.section { padding-block: var(--section); }
.section__title { font-size: var(--step-3); max-width: 20ch; }
.section__lead { font-size: var(--step-1); color: var(--muted); max-width: 36em; margin-bottom: 3rem; }

/* Flow: a real sequence, so numbered */
.flow__steps {
	list-style: none; margin: 0; padding: 0; counter-reset: step;
	display: grid; grid-template-columns: repeat(5, 1fr); gap: 1.5rem;
	position: relative;
}
.flow__steps::before {
	content: ""; position: absolute; top: 1.25rem; left: 1.25rem; right: 1.25rem;
	height: 2px; background: var(--line);
}
.flow__steps li { position: relative; counter-increment: step; padding-top: 3.75rem; }
.flow__steps li::before {
	content: counter(step); position: absolute; top: 0; left: 0;
	width: 2.5rem; height: 2.5rem; border-radius: 50%;
	display: grid; place-items: center;
	background: var(--paper); border: 2px solid var(--navy); color: var(--navy);
	font: 700 1rem/1 var(--font-display);
}
.flow__steps li:last-child::before { background: var(--teal); border-color: var(--teal); color: #fff; }
.flow__steps p { color: var(--muted); margin-bottom: 0.75rem; }
.flow__who { font-size: var(--step--1); font-weight: 600; color: var(--navy); }

@media (max-width: 900px) {
	.flow__steps { grid-template-columns: 1fr; gap: 0; }
	.flow__steps::before { top: 1.25rem; bottom: 1.25rem; left: 1.2rem; right: auto; width: 2px; height: auto; }
	.flow__steps li { padding: 0 0 2rem 4rem; }
	.flow__steps li:last-child { padding-bottom: 0; }
}

/* Views: real app screenshots in device frames */
.views { background: var(--water); }
.views__grid {
	display: grid; grid-template-columns: 0.62fr 0.85fr 1.6fr;
	grid-template-rows: auto auto;
	column-gap: clamp(1.5rem, 3vw, 3rem); row-gap: 1.75rem;
}
/* subgrid: devices share a bottom line, captions share a top line */
.view { margin: 0; display: grid; grid-row: span 2; grid-template-rows: subgrid; row-gap: 1.75rem; }
.view .device { align-self: end; }
.view__text h3 { margin-bottom: 0.35rem; }
.view__text p { color: var(--muted); margin: 0; font-size: var(--step--1); line-height: 1.55; }
.device { position: relative; background: var(--ink); align-self: end; }
.device img { width: 100%; height: auto; display: block; }
.device--phone {
	padding: 10px; border-radius: 30px; max-width: 250px;
	box-shadow: 0 24px 40px -18px rgba(15, 42, 63, 0.45);
}
.device--phone img { border-radius: 21px; }
.device--tablet {
	padding: 14px; border-radius: 26px;
	box-shadow: 0 24px 40px -18px rgba(15, 42, 63, 0.45);
}
.device--tablet img { border-radius: 10px; }
.device--laptop { background: transparent; padding-bottom: 16px; }
.device__screen {
	background: var(--ink); padding: 10px 10px 14px; border-radius: 14px 14px 4px 4px;
	box-shadow: 0 24px 40px -18px rgba(15, 42, 63, 0.45);
}
.device__screen img { border-radius: 3px; }
.device--laptop::after { /* base */
	content: ""; position: absolute; left: -5%; right: -5%; bottom: 0; height: 16px;
	background: linear-gradient(#c9d6df, #9fb1bf); border-radius: 2px 2px 14px 14px;
}

@media (max-width: 960px) {
	.views__grid { grid-template-columns: 0.75fr 1fr; grid-template-rows: auto auto auto auto; }
	.view--admin { grid-column: 1 / -1; }
	.device--laptop { margin-inline: 5%; }
}
@media (max-width: 560px) {
	.views__grid { grid-template-columns: 1fr; grid-template-rows: none; }
	.view { grid-row: auto; grid-template-rows: auto auto; margin-bottom: 2rem; }
	.device--phone { max-width: 230px; }
	.device--tablet { max-width: 330px; }
}

/* Office: KSeF, payments, security */
.office { background: var(--ink); color: #fff; }
.office__inner { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 6vw, 6rem); }
.office .section__title { color: #fff; }
@media (min-width: 801px) { .office__main { position: sticky; top: 110px; align-self: start; } }
.office__main p { font-size: var(--step-1); color: #C8D6E0; max-width: 30em; }
.office__list { list-style: none; margin: 0; padding: 0; }
.office__list li { padding: 1.4rem 0; border-top: 1px solid rgba(255, 255, 255, 0.16); }
.office__list li:last-child { border-bottom: 1px solid rgba(255, 255, 255, 0.16); }
.office__list h3 { color: #fff; margin-bottom: 0.3rem; }
.office__list p { color: #C8D6E0; margin: 0; }
@media (max-width: 800px) { .office__inner { grid-template-columns: 1fr; } }

/* Pricing */
.pricing__inner { display: grid; gap: 1rem; }
.pricing__intro .section__lead { margin-bottom: 0.75rem; }
.price {
	border: 2px solid var(--navy); border-radius: 18px; padding: clamp(1.5rem, 3vw, 2.25rem);
	background: var(--paper);
}
.price__amount { display: flex; align-items: baseline; flex-wrap: wrap; gap: 0.5rem; margin-bottom: 1.5rem; }
.price .price__label { margin-bottom: 0.75rem; }
.price__num { font: 800 clamp(3.5rem, 2.6rem + 3vw, 4.75rem)/0.9 var(--font-display); letter-spacing: -0.04em; color: var(--navy); }
.price__unit { font-weight: 600; color: var(--muted); }
.price__list { list-style: none; margin: 0 0 1.5rem; padding: 0; display: grid; gap: 0.75rem; }
.price__list li { display: flex; gap: 0.75rem; align-items: flex-start; }
.price__list .tick { margin-top: 0.1rem; }
.pricing__boxes { display: grid; grid-template-columns: 1.15fr 1fr 1fr; gap: 1.25rem; align-items: start; margin-top: 1.5rem; }
.pricing__boxes > .price { grid-row: span 2; }
@media (max-width: 1000px) { .pricing__boxes { grid-template-columns: 1fr 1fr; } }
@media (max-width: 680px) { .pricing__boxes { grid-template-columns: 1fr; } .pricing__boxes .price { grid-row: auto; } }
.price__label { font-weight: 600; color: var(--muted); margin-bottom: 0.4rem; }
.price__setup { border-top: 1px solid var(--line); padding-top: 1.1rem; margin-bottom: 1.5rem; }
.price__setup-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0.5rem; margin-bottom: 0.4rem; }
.price__setup-head span:first-child { font-weight: 600; }
.price__setup-head b { font: 700 var(--step-1)/1.2 var(--font-display); color: var(--navy); }
.price__setup-once { color: var(--muted); font-size: var(--step--1); }
.price__setup p:last-child { color: var(--muted); font-size: var(--step--1); margin: 0; }
.addon { border: 1.5px dashed #9DB3C3; border-radius: 18px; padding: clamp(1.25rem, 3vw, 1.75rem); }
.addon__title { font-size: var(--step-1); margin-bottom: 0.4rem; }
.addon p { margin-bottom: 0.6rem; font-size: var(--step--1); }
.addon .price__label { font-size: var(--step-0); }
.addon p:last-child { margin: 0; }
.addon__price { margin-bottom: 0.9rem !important; }
.addon__price b { font: 700 var(--step-1)/1.2 var(--font-display); color: var(--navy); }
.addon__list { list-style: none; margin: 0 0 0.9rem; padding: 0; display: grid; gap: 0.35rem; font-size: var(--step--1); }
.addon__list li { position: relative; padding-left: 1.1rem; }
.addon__list li::before { content: ""; position: absolute; left: 0; top: 0.6em; width: 6px; height: 6px; border-radius: 50%; background: var(--teal); }
.addon__fee { font-size: var(--step--1); color: var(--muted); }
.addon__fee b { color: var(--ink); }
.price__scope { margin: -1rem 0 1.5rem; font-weight: 600; color: var(--teal); }
.tiers {
	grid-column: 2 / 4; align-self: stretch; display: grid; gap: 1.1rem; align-content: start;
	background: var(--water); border-radius: 18px; padding: clamp(1.25rem, 3vw, 2rem);
}
.tiers__head h3 { font-size: var(--step-1); margin-bottom: 0.4rem; }
.tiers__head p { color: var(--muted); font-size: var(--step--1); margin: 0; }
.tiers__list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.75rem; }
.tiers__list li {
	background: #fff; border-radius: 12px; padding: 1rem 1.1rem; display: grid; gap: 0.35rem;
	border: 1.5px solid transparent;
}
.tiers__list li.is-base { border-color: var(--navy); }
.tiers__range { font-size: var(--step--1); color: var(--muted); font-weight: 600; }
.tiers__price { font-size: var(--step--1); color: var(--muted); }
.tiers__price b { display: block; font: 700 var(--step-1)/1.2 var(--font-display); color: var(--navy); }
@media (max-width: 1000px) { .tiers { grid-column: 1 / -1; } }
@media (max-width: 560px) { .tiers__list { grid-template-columns: 1fr; } }
.pricing__vat { margin-top: 1rem; }
.pricing__vat { color: var(--muted); font-size: var(--step--1); }
.price__offer { background: var(--water); border-radius: 10px; padding: 1rem 1.1rem; font-weight: 500; }


/* FAQ */
.faq { padding-top: 0; }
.faq__inner { display: grid; grid-template-columns: 1fr minmax(0, 2fr); gap: clamp(2rem, 6vw, 6rem); }
.faq__list { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
	list-style: none; cursor: pointer; padding: 1.25rem 2.5rem 1.25rem 0; position: relative;
	font: 600 var(--step-1)/1.35 var(--font-display);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
	content: ""; position: absolute; right: 0.4rem; top: 50%; width: 12px; height: 12px; margin-top: -8px;
	border-right: 2px solid var(--navy); border-bottom: 2px solid var(--navy); transform: rotate(45deg);
	transition: transform 0.2s;
}
.faq details[open] summary::after { transform: rotate(-135deg); margin-top: -2px; }
.faq details p { color: var(--muted); max-width: 38em; padding-bottom: 0.5rem; }
@media (max-width: 800px) { .faq__inner { grid-template-columns: 1fr; } }

/* Trial / form */
.trial { background: var(--navy); color: #fff; }
.trial__inner { display: grid; grid-template-columns: 1fr minmax(320px, 520px); gap: clamp(2rem, 6vw, 6rem); align-items: start; }
.trial .section__title { color: #fff; }
.trial__copy p { font-size: var(--step-1); color: #DCE8F2; max-width: 26em; }
.trial__direct { font-size: var(--step-0) !important; margin-top: 1.5rem; }
.trial__form-title { font-size: var(--step-1); margin-bottom: 0.3rem; }
.trial__form-lead { color: var(--muted); font-size: var(--step--1); margin-bottom: 1.25rem; }
.trial__direct a { color: #fff; }
.trial__form { background: var(--paper); color: var(--ink); border-radius: 18px; padding: clamp(1.5rem, 3vw, 2.25rem); }
@media (max-width: 860px) { .trial__inner { grid-template-columns: 1fr; } }

.sp-form { display: grid; gap: 1rem; }
.sp-form__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.sp-form__row { display: grid; gap: 0.35rem; }
.sp-form label { font-weight: 600; font-size: var(--step--1); }
.sp-form input, .sp-form textarea, .search input[type="search"] {
	width: 100%; font: inherit; color: var(--ink);
	padding: 0.75rem 0.85rem; min-height: 48px;
	border: 1.5px solid #9DB3C3; border-radius: 8px; background: #fff;
}
.sp-form input:focus, .sp-form textarea:focus, .search input:focus { outline: 3px solid var(--teal); outline-offset: 0; border-color: var(--teal); }
.sp-form__notice { background: var(--water); padding: 0.75rem 1rem; border-radius: 8px; font-size: var(--step--1); margin: 0; }
@media (max-width: 520px) { .sp-form__grid { grid-template-columns: 1fr; } }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: #C8D6E0; padding-top: clamp(3rem, 6vw, 4.5rem); }
.site-footer a { color: #fff; text-decoration: none; }
.site-footer a:hover { text-decoration: underline; color: #fff; }
.site-footer__inner { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 2.5rem; padding-bottom: 2.5rem; }
.site-footer__brand img { width: 194px; margin-bottom: 1rem; }
.site-footer__brand p { max-width: 24em; }
.site-footer__nav ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.6rem; }
.site-footer__contact { display: grid; gap: 0.6rem; align-content: start; }
.site-footer__legal {
	display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem;
	border-top: 1px solid rgba(255, 255, 255, 0.14); padding-block: 1.5rem; font-size: var(--step--1);
}
.site-footer__legal p { margin: 0; }
@media (max-width: 760px) { .site-footer__inner { grid-template-columns: 1fr; } }

/* ---------- Pages & prose ---------- */
.page { padding-block: clamp(3rem, 7vw, 5rem); }
.page__title { font-size: var(--step-3); }
.prose { line-height: 1.7; }
.prose > * { max-width: 42rem; }
.prose h2 { font-size: var(--step-2); margin-top: 2.2em; }
.prose h3 { margin-top: 1.8em; }
.prose img, .prose figure { max-width: 100%; border-radius: 12px; }
.prose figure { margin: 2rem 0; }
.prose figure img { border: 1px solid var(--line); }
.prose figcaption { font-size: var(--step--1); color: var(--muted); margin-top: 0.6rem; }
.prose ol, .prose ul { padding-left: 1.3rem; }
.prose li { margin-bottom: 0.4rem; }
.prose li::marker { color: var(--navy); font-weight: 700; }
.prose code { background: var(--water); padding: 0.1em 0.35em; border-radius: 4px; font-size: 0.92em; }
.prose .wp-block-image { margin-block: 2rem; }
.post-list { list-style: none; padding: 0; }
.post-list li { padding: 1.25rem 0; border-bottom: 1px solid var(--line); }
.post-list a { font: 700 var(--step-1)/1.3 var(--font-display); text-decoration: none; }

/* Tip / warning boxes for the manual: add class "uwaga" or "wskazowka" to a block */
.prose .wskazowka, .prose .uwaga { padding: 1rem 1.25rem; border-radius: 10px; border-left: 4px solid var(--teal); background: #E7F3F2; }
.prose .uwaga { border-left-color: #B45309; background: #FBF1E4; }

/* ---------- Help centre ---------- */
.help__hero { background: var(--water); padding-block: clamp(3rem, 7vw, 5rem); }
.help__hero--small { padding-block: clamp(2rem, 5vw, 3.5rem); }
.help__title { font-size: var(--step-4); font-weight: 800; letter-spacing: -0.03em; margin-bottom: 0.3em; }
.help__hero--small .help__title { font-size: var(--step-3); }
.help__lead { font-size: var(--step-1); color: var(--muted); max-width: 34em; }
.search { display: flex; gap: 0.5rem; max-width: 640px; margin-top: 1.5rem; }
.search input[type="search"] { flex: 1; min-height: 52px; }
.help__body { padding-block: clamp(2.5rem, 6vw, 4rem); }
.help-topics { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 2.5rem 3rem; }
.help-topic h2 { font-size: var(--step-2); }
.help-topic h2 a { color: var(--ink); text-decoration: none; }
.help-topic h2 a:hover { color: var(--navy); }
.help-topic__desc { color: var(--muted); }
.help-topic ul { list-style: none; margin: 0 0 0.75rem; padding: 0; border-top: 1px solid var(--line); }
.help-topic li a { display: block; padding: 0.65rem 0; border-bottom: 1px solid var(--line); text-decoration: none; color: var(--ink); }
.help-topic li a:hover { color: var(--navy); }
.help-topic__more { font-weight: 600; }
.help-list { list-style: none; padding: 0; margin: 0; max-width: 46rem; }
.help-list li { padding: 1.1rem 0; border-bottom: 1px solid var(--line); }
.help-list a { font: 600 var(--step-1)/1.3 var(--font-display); text-decoration: none; }
.help-list p { color: var(--muted); margin: 0.3rem 0 0; }
.crumbs { font-size: var(--step--1); color: var(--muted); margin-bottom: 0.75rem; }
.crumbs a { color: var(--muted); }

.help-article { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: clamp(2rem, 5vw, 4.5rem); padding-block: clamp(2.5rem, 6vw, 4rem); }
.help-article__side { position: sticky; top: 96px; align-self: start; font-size: var(--step--1); }
.help-article__side-title { font-size: var(--step-0); }
.help-article__side-title a { color: var(--ink); text-decoration: none; }
.help-article__side ul { list-style: none; margin: 0; padding: 0; border-left: 2px solid var(--line); }
.help-article__side li a { display: block; padding: 0.4rem 0 0.4rem 0.9rem; margin-left: -2px; border-left: 2px solid transparent; color: var(--muted); text-decoration: none; }
.help-article__side li a:hover { color: var(--navy); }
.help-article__side a[aria-current="page"] { color: var(--navy); font-weight: 600; border-left-color: var(--navy); }
.help-article__updated { font-size: var(--step--1); color: var(--muted); margin-top: 3rem; }
@media (max-width: 860px) {
	.help-article { grid-template-columns: 1fr; }
	.help-article__side { position: static; order: 2; }
}
.help-contact { margin-top: 3rem; padding: 1.5rem; border-radius: 14px; background: var(--water); max-width: 46rem; }
.help-contact h2 { font-size: var(--step-1); }
.help-contact p { margin: 0; }

/* WordPress core alignment helpers */
.alignwide { max-width: min(var(--wrap), 100%); }
.aligncenter { margin-inline: auto; }
.wp-block-button__link { border-radius: 12px; background: var(--navy); }

@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	*, *::before, *::after { transition: none !important; animation: none !important; }
}

/* ---------- Plugin: contact form states ---------- */
.sp-form__notice--err { background: #FBEAEA; color: #8A1C1C; }
.sp-form__info { font-size: var(--step--1); color: var(--muted); margin: 0; }
.sp-form__info a { color: var(--muted); }
.sp-form__done h3 { font-size: var(--step-1); margin-bottom: 0.4rem; }
.sp-form__done p { margin: 0; color: var(--muted); }

/* ---------- Plugin: "Czy ten artykuł pomógł?" ---------- */
.sp-feedback { margin-top: 3rem; padding-top: 1.5rem; border-top: 1px solid var(--line); max-width: 42rem; }
.sp-feedback__q { font-weight: 600; margin-bottom: 0.75rem; }
.sp-feedback__btns { display: flex; gap: 0.6rem; }
.sp-feedback__btns .btn { min-width: 5.5rem; }
.sp-feedback__more { display: grid; gap: 0.5rem; max-width: 32rem; }
.sp-feedback__more[hidden], .sp-feedback__thanks[hidden], .sp-feedback__btns[hidden] { display: none; }
.sp-feedback__more label { font-weight: 600; font-size: var(--step--1); }
.sp-feedback__more textarea { font: inherit; padding: 0.65rem 0.8rem; border: 1.5px solid #9DB3C3; border-radius: 8px; }
.sp-feedback__more .btn { justify-self: start; }
.sp-feedback__thanks { color: var(--teal); font-weight: 600; margin: 0; }

/* ---------- Help article content ---------- */
.prose .kroki { counter-reset: krok; list-style: none; padding-left: 0; }
.prose .kroki > li { counter-increment: krok; position: relative; padding-left: 2.6rem; margin-bottom: 1.4rem; }
.prose .kroki > li::before {
	content: counter(krok); position: absolute; left: 0; top: 0.05em;
	width: 1.8rem; height: 1.8rem; border-radius: 50%; display: grid; place-items: center;
	background: var(--navy); color: #fff; font: 700 0.95rem/1 var(--font-display);
}
.prose figure.zrzut { margin: 1.25rem 0 2rem; max-width: 100%; }
.prose figure.zrzut img { width: 100%; height: auto; border: 1px solid var(--line); border-radius: 10px; box-shadow: 0 10px 24px -16px rgba(15, 42, 63, 0.35); }
.prose figure.zrzut--telefon img { max-width: 340px; }
.prose .w-skrocie { background: var(--water); border-radius: 12px; padding: 1rem 1.25rem; }
.prose .w-skrocie p { margin: 0; }
.prose .dla-kogo { font-size: var(--step--1); color: var(--muted); }
.help-article__main .prose > * { max-width: 46rem; }
