/* ==========================================================================
   tiklo — style główne
   ========================================================================== */

@font-face {
	font-family: "Baloo 2";
	src: url("../fonts/Baloo2.woff2") format("woff2");
	font-weight: 400 800;
	font-display: swap;
}
@font-face {
	font-family: "Plus Jakarta Sans";
	src: url("../fonts/PlusJakartaSans.woff2") format("woff2");
	font-weight: 200 800;
	font-display: swap;
}

:root {
	--navy: #051B3F;
	--navy-2: #0B2A55;
	--green: #01A27D;
	--green-dark: #017F62;
	--green-light: #12C295;
	--yellow: #FDC10A;
	--cream: #FFF7EE;
	--cream-2: #FBEADB;
	--line: #EADCCB;
	--white: #FFFFFF;
	--text: #051B3F;
	--soft: #5E6E85;
	--mist: #B9C6DA;
	--warn-bg: #FFF1E8;
	--warn-line: #F4C9AE;
	--warn-text: #7A4A2E;

	--font-display: "Baloo 2", "Trebuchet MS", system-ui, sans-serif;
	--font-text: "Plus Jakarta Sans", "Segoe UI", system-ui, sans-serif;

	--wrap: 1180px;
	--radius: 20px;
	--radius-sm: 14px;
	--shadow: 0 14px 34px rgba(5, 27, 63, .08);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
	margin: 0;
	background: var(--cream);
	color: var(--text);
	font-family: var(--font-text);
	font-size: 17px;
	line-height: 1.6;
	-webkit-font-smoothing: antialiased;
}
img, svg, video { max-width: 100%; height: auto; }
a { color: var(--green-dark); }
a:hover { color: var(--green); }
p { margin: 0 0 1em; }

h1, h2, h3, h4 {
	font-family: var(--font-display);
	font-weight: 800;
	line-height: 1.08;
	letter-spacing: -.015em;
	margin: 0 0 .5em;
	color: inherit;
}
h1 { font-size: clamp(32px, 5vw, 56px); }
h2 { font-size: clamp(26px, 3.4vw, 38px); }
h3 { font-size: 21px; font-weight: 700; }
h4 { font-size: 17px; font-weight: 700; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }
.lead { color: var(--soft); font-size: 18px; max-width: 60ch; }
.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: -9999px; top: 8px; z-index: 999;
	background: var(--navy); color: #fff; padding: 10px 16px; border-radius: 10px;
}
.skip-link:focus { left: 12px; }
:focus-visible { outline: 3px solid var(--yellow); outline-offset: 2px; }

/* ---------- przyciski ---------- */
.button, button.button, input.button, a.button,
.wp-block-button__link, input[type="submit"] {
	display: inline-flex; align-items: center; justify-content: center; gap: 8px;
	border: 2px solid var(--navy);
	background: transparent;
	color: var(--navy);
	font-family: var(--font-text);
	font-weight: 700;
	font-size: 16px;
	line-height: 1.2;
	padding: 14px 26px;
	border-radius: 999px;
	text-decoration: none;
	cursor: pointer;
	transition: background .15s, color .15s, border-color .15s, transform .15s;
}
.button:hover, a.button:hover { background: var(--navy); color: #fff; }
.button.alt, a.button.alt, button.button.alt, input[type="submit"],
.wp-block-button__link {
	background: var(--green); border-color: var(--green); color: #fff;
}
.button.alt:hover, a.button.alt:hover, button.button.alt:hover, input[type="submit"]:hover {
	background: var(--green-dark); border-color: var(--green-dark); color: #fff;
}
.button--ghost-light { border-color: rgba(255, 247, 238, .45); color: var(--cream); }
.button--ghost-light:hover { background: var(--cream); color: var(--navy); border-color: var(--cream); }
.button:active { transform: translateY(1px); }

/* ---------- formularze ---------- */
input[type="text"], input[type="email"], input[type="tel"], input[type="password"],
input[type="search"], input[type="number"], input[type="url"], select, textarea {
	width: 100%;
	font: inherit;
	font-size: 16px;
	color: var(--text);
	background: #fff;
	border: 1.5px solid var(--line);
	border-radius: 12px;
	padding: 12px 14px;
	transition: border-color .15s, box-shadow .15s;
}
input:focus, select:focus, textarea:focus {
	outline: none; border-color: var(--green); box-shadow: 0 0 0 3px rgba(1, 162, 125, .18);
}
label { font-weight: 600; font-size: 15px; }

/* ---------- pasek ogłoszeń ---------- */
.announce {
	background: var(--navy); color: var(--cream);
	font-size: 14px; font-weight: 600; text-align: center; padding: 8px 0;
}

/* ---------- nagłówek ---------- */
.site-header {
	position: sticky; top: 0; z-index: 100;
	background: rgba(255, 247, 238, .94);
	backdrop-filter: blur(10px);
	border-bottom: 1px solid var(--line);
}
.admin-bar .site-header { top: 32px; }
@media (max-width: 782px) { .admin-bar .site-header { top: 46px; } }
.site-header__inner { display: flex; align-items: center; gap: 24px; height: 74px; }
.site-logo { display: inline-flex; align-items: center; flex: none; }
.site-logo img { display: block; }

.site-nav { margin-left: auto; }
.site-nav .menu { list-style: none; margin: 0; padding: 0; display: flex; gap: 26px; }
.site-nav .menu a {
	text-decoration: none; color: var(--navy); font-weight: 600; font-size: 15px;
	padding: 6px 0; border-bottom: 2px solid transparent;
}
.site-nav .menu a:hover, .site-nav .current-menu-item > a { border-bottom-color: var(--yellow); }
.site-nav .sub-menu {
	list-style: none; margin: 0; padding: 10px; position: absolute; min-width: 220px;
	background: #fff; border: 1px solid var(--line); border-radius: var(--radius-sm);
	box-shadow: var(--shadow); display: none;
}
.site-nav .menu > li { position: relative; }
.site-nav .menu > li:hover > .sub-menu, .site-nav .menu > li:focus-within > .sub-menu { display: block; }
.site-nav .sub-menu a { display: block; padding: 8px 10px; border: 0; }

.site-header__actions { display: flex; align-items: center; gap: 6px; }
.header-icon, .header-cart {
	position: relative; display: inline-flex; align-items: center; justify-content: center;
	width: 44px; height: 44px; border-radius: 50%; color: var(--navy); text-decoration: none;
}
.header-icon:hover, .header-cart:hover { background: var(--cream-2); color: var(--navy); }
.header-cart__count {
	position: absolute; top: 4px; right: 2px; min-width: 19px; height: 19px; padding: 0 5px;
	border-radius: 999px; background: var(--yellow); color: var(--navy);
	font-size: 11.5px; font-weight: 800; line-height: 19px; text-align: center;
}
.header-cart__count[data-count="0"] { display: none; }

.header-search { border-top: 1px solid var(--line); padding: 14px 0; background: var(--cream); }
.header-search form { display: flex; gap: 10px; }
.header-search button { flex: none; }

.menu-toggle, .menu-close { display: none; background: none; border: 0; color: var(--navy); padding: 8px; cursor: pointer; }
.nav-overlay { position: fixed; inset: 0; background: rgba(5, 27, 63, .45); z-index: 150; }

@media (max-width: 900px) {
	.site-header__inner { gap: 10px; height: 64px; }
	.menu-toggle { display: inline-flex; }
	.site-logo { margin-right: auto; }
	.site-nav {
		position: fixed; top: 0; bottom: 0; left: 0; width: min(86vw, 340px); z-index: 200;
		background: var(--cream); padding: 70px 26px 26px; margin: 0;
		transform: translateX(-100%); transition: transform .25s ease; overflow-y: auto;
	}
	.site-nav.is-open { transform: none; }
	.site-nav .menu { flex-direction: column; gap: 0; }
	.site-nav .menu a { display: block; font-size: 19px; padding: 14px 0; border-bottom: 1px solid var(--line); }
	.site-nav .sub-menu { position: static; display: block; box-shadow: none; border: 0; padding: 0 0 0 14px; background: none; }
	.menu-close { display: inline-flex; position: absolute; top: 14px; right: 14px; }
	.header-icon[data-search-toggle] { display: none; }
}

/* ---------- hero ---------- */
.hero {
	position: relative; overflow: hidden;
	background: var(--navy); color: var(--cream);
	padding: 64px 0 0;
}
.hero::after {
	content: ""; position: absolute; inset: 0; pointer-events: none;
	background:
		radial-gradient(circle at 5% 84%, #FDC10A 9px, transparent 10px),
		radial-gradient(circle at 96% 14%, #12C295 7px, transparent 8px),
		radial-gradient(circle at 48% 8%, rgba(255, 247, 238, .5) 3px, transparent 4px);
}
.hero__grid { position: relative; z-index: 1; display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; }
.hero h1 { color: var(--cream); }
.hero h1 span { display: block; color: var(--green-light); }
.hero p { color: var(--mist); font-size: 18px; max-width: 46ch; margin: 18px 0 30px; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; padding-bottom: 56px; }
.hero__media img { display: block; margin: 0 auto; max-height: 520px; width: auto; }
@media (max-width: 860px) {
	.hero { padding-top: 40px; }
	.hero__grid { grid-template-columns: 1fr; gap: 0; }
	.hero__actions { padding-bottom: 20px; }
}

/* ---------- pasek zaufania ---------- */
.trust-bar { background: var(--yellow); color: var(--navy); }
.trust-bar__inner {
	display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
	gap: 14px 24px; padding-top: 18px; padding-bottom: 18px;
}
.trust-bar__item { font-weight: 700; font-size: 15px; }

/* ---------- sekcje ---------- */
.section { padding: 72px 0; }
.section--tinted { background: var(--cream-2); }
.section__head { display: flex; align-items: baseline; justify-content: space-between; gap: 20px; margin-bottom: 28px; flex-wrap: wrap; }
.section__head h2 { margin: 0; }
.link-more { font-weight: 700; text-decoration: none; }

.duo { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.duo__media img { border-radius: 24px; display: block; width: 100%; }
@media (max-width: 860px) { .duo { grid-template-columns: 1fr; gap: 26px; } }

.cat-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 18px; }
.cat-card {
	display: block; background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
	overflow: hidden; text-decoration: none; color: var(--navy); transition: transform .15s, box-shadow .15s;
}
.cat-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); color: var(--navy); }
.cat-card__img { display: block; aspect-ratio: 1 / 1; background: var(--cream-2); }
.cat-card__img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.cat-card__name { display: block; padding: 16px 18px; font-family: var(--font-display); font-weight: 700; font-size: 20px; }

.cta-band {
	display: flex; align-items: center; gap: 30px; flex-wrap: wrap;
	background: var(--navy); color: var(--cream); border-radius: 28px; padding: 40px;
}
.cta-band img { width: 120px; flex: none; }
.cta-band > div { flex: 1; min-width: 240px; }
.cta-band h2 { color: var(--cream); margin-bottom: 8px; }
.cta-band p { color: var(--mist); margin: 0; }

/* ---------- strony i wpisy ---------- */
.page-wrap { max-width: 820px; padding-top: 48px; padding-bottom: 72px; }
.page-wrap--wide { max-width: var(--wrap); }
.entry-header { margin-bottom: 26px; }
.entry-meta { color: var(--soft); font-size: 15px; }
.entry-thumb img { border-radius: var(--radius); margin-bottom: 26px; }
.entry-content > * + * { margin-top: 1em; }
.entry-content ul, .entry-content ol { padding-left: 1.2em; }
.entry-content table { width: 100%; border-collapse: collapse; }
.entry-content th, .entry-content td { border-bottom: 1px solid var(--line); padding: 10px; text-align: left; }
.page-404 { text-align: center; }
.page-404 img { margin: 0 auto 20px; display: block; }
.page-404 .lead { margin: 0 auto 26px; }

.post-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 22px; }
.post-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; }
.post-card__img img { border-radius: var(--radius-sm); display: block; margin-bottom: 14px; }
.post-card h2 { font-size: 22px; }
.post-card h2 a { color: var(--navy); text-decoration: none; }
.nav-links { display: flex; gap: 8px; margin-top: 30px; flex-wrap: wrap; }
.nav-links .page-numbers { padding: 8px 14px; border-radius: 10px; background: #fff; border: 1px solid var(--line); text-decoration: none; }
.nav-links .current { background: var(--navy); color: #fff; border-color: var(--navy); }

.comments { margin-top: 56px; }
.comment-list { list-style: none; padding: 0; }
.comment-list .comment { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 18px; margin-bottom: 14px; }

/* ---------- stopka ---------- */
.site-footer { background: var(--navy-2); color: var(--mist); margin-top: 0; padding: 60px 0 30px; font-size: 15px; }
.site-footer__grid { display: grid; grid-template-columns: 2fr repeat(3, 1fr); gap: 32px; }
.site-footer__brand p { margin: 16px 0; max-width: 36ch; }
.site-footer h4 { color: var(--cream); margin-bottom: 14px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: 9px; }
.site-footer a { color: var(--mist); text-decoration: none; }
.site-footer a:hover { color: var(--green-light); }
.site-footer__bottom {
	display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap;
	border-top: 1px solid rgba(255, 255, 255, .12); margin-top: 40px; padding-top: 22px;
	font-size: 13.5px; color: #8FA0BA;
}
.site-footer .widget + .widget { margin-top: 26px; }
.site-footer .widget h2, .site-footer .widget h3, .site-footer .widget-title, .site-footer .wp-block-heading {
	font-family: var(--font-display); font-size: 17px; font-weight: 700; color: var(--cream); margin: 0 0 14px; letter-spacing: 0;
}
.site-footer .widget ul { list-style: none; margin: 0; padding: 0; }
.socials { display: flex; gap: 10px; }
.socials a {
	width: 40px; height: 40px; display: inline-flex; align-items: center; justify-content: center;
	border-radius: 50%; background: rgba(255, 255, 255, .08); color: var(--cream);
}
.socials a:hover { background: var(--green); color: #fff; }
@media (max-width: 860px) { .site-footer__grid { grid-template-columns: 1fr 1fr; } .site-footer__brand { grid-column: 1 / -1; } }
