/*
 * Wspólna baza wyglądu panelu: fonty, tokeny, przyciski, pola formularzy.
 * Ładują ją ekrany kont (wtyczka) i motyw zzbayer-panel. Tokeny jak w motywie zzbayer.pl.
 */

/* ---------- Fonty (lokalnie, polskie znaki w latin-ext) ---------- */
@font-face {
	font-family: "Archivo";
	font-style: normal;
	font-weight: 100 900;
	font-stretch: 62% 125%;
	font-display: swap;
	src: url("fonty/archivo-latin-ext.woff2") format("woff2");
	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: "Archivo";
	font-style: normal;
	font-weight: 100 900;
	font-stretch: 62% 125%;
	font-display: swap;
	src: url("fonty/archivo-latin.woff2") format("woff2");
	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;
}

/* ---------- Tokeny ---------- */
:root {
	--bg: #F6F8FB;
	--surface: #FFFFFF;
	--surface-2: #EDF1F6;
	--ink: #0C2A3B;
	--text: #22323E;
	--muted: #51606C;
	--line: #DCE3EA;
	--link: #0A6FB0;
	--accent: #D30F4B;
	--accent-hover: #B80C40;
	--on-accent: #FFFFFF;
	--b1: #0091DF;
	--b2: #7A3FA6;
	--b3: #D30F4B;
	--grad: linear-gradient(115deg, #0091DF 0%, #7A3FA6 52%, #D30F4B 100%);
	/* do tekstu na gradiencie: ciemniejsze krańce, biały >= 5.5:1 w każdym punkcie */
	--grad-tekst: linear-gradient(115deg, #006CB0 0%, #7A3FA6 52%, #C00D45 100%);
	--deep: #0C2A3B;
	--deep-text: #C9D6E2;

	--font: "Archivo", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
	--r: 14px;
	--r-sm: 10px;
	--shadow: 0 1px 2px rgb(12 42 59 / .06), 0 12px 32px -18px rgb(12 42 59 / .28);
	--kontener: 1360px; /* treść 1280 px + marginesy po 40 px, decyzja 2026-10-24 */
	--gutter: clamp(16px, 4vw, 40px);
	--sekcja: clamp(72px, 9vw, 128px);
	--ease: cubic-bezier(.16, 1, .3, 1);
	--nad-naglowkiem: 0px; /* pasek administratora WordPressa */
}
.admin-bar { --nad-naglowkiem: 32px; }
@media (max-width: 782px) { .admin-bar { --nad-naglowkiem: 46px; } }
/* na wąskim ekranie pasek administratora nie jest przyklejony, więc nagłówek przykleja się do góry */
@media (max-width: 600px) { .admin-bar { --nad-naglowkiem: 0px; } }

/* ---------- Baza ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(96px + var(--nad-naglowkiem)); }
body {
	margin: 0;
	background: var(--bg);
	color: var(--text);
	font-family: var(--font);
	font-size: 17px;
	line-height: 1.6;
	font-variation-settings: "wdth" 100;
	-webkit-font-smoothing: antialiased;
	text-rendering: optimizeLegibility;
}
img { display: block; max-width: 100%; height: auto; }
a { color: var(--link); text-underline-offset: 3px; }
h1, h2, h3, h4 { color: var(--ink); margin: 0; line-height: 1.08; font-weight: 780; font-variation-settings: "wdth" 108; letter-spacing: -.02em; text-wrap: balance; }
p { margin: 0; }
/* łamanie wierszy: bez pojedynczych słów w ostatnim wierszu (nagłówki mają balance wyżej) */
p, li, dd, summary, figcaption { text-wrap: pretty; }
ul, ol { margin: 0; padding: 0; list-style: none; }
button { font: inherit; }
:focus-visible { outline: 3px solid var(--link); outline-offset: 3px; border-radius: 4px; }
.kontener { width: 100%; max-width: var(--kontener); margin-inline: auto; padding-inline: var(--gutter); }
.sekcja { padding-block: var(--sekcja); }
.tytul { font-size: clamp(2rem, 1.3rem + 2.2vw, 3.1rem); }
.duzy { font-size: clamp(1.125rem, 1rem + .45vw, 1.3rem); line-height: 1.55; color: var(--text); max-width: 60ch; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 8px; }
.skip:focus { top: calc(12px + var(--nad-naglowkiem)); }
.sr, .screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- Ikony ---------- */
.ik { display: inline-grid; place-items: center; width: 1em; height: 1em; line-height: 1; flex: none; font-style: normal; }
.ik svg { display: block; width: 1em; height: 1em; fill: currentColor; }

/* ---------- Przyciski ---------- */
.btn {
	display: inline-flex; align-items: center; justify-content: center; gap: 10px;
	min-height: 44px; padding: 10px 20px; border-radius: 999px;
	font-weight: 650; font-size: 15.5px; line-height: 1.2; white-space: nowrap;
	text-decoration: none; border: 1.5px solid transparent; cursor: pointer;
	transition: background-color .2s var(--ease), color .2s var(--ease), border-color .2s var(--ease), transform .12s var(--ease), box-shadow .2s var(--ease);
}
.btn:active { transform: translateY(1px) scale(.985); }
.btn .ik { font-size: 1.15em; transition: transform .25s var(--ease); }
.btn:hover .ik-arrow-right { transform: translateX(3px); }
.btn--glowny { background: var(--accent); color: var(--on-accent); box-shadow: 0 8px 20px -10px rgb(211 15 75 / .55); }
.btn--glowny:hover { background: var(--accent-hover); color: var(--on-accent); }
.btn--drugi { background: transparent; color: var(--ink); border-color: var(--line); }
.btn--drugi:hover { border-color: var(--ink); color: var(--ink); }
.btn--jasny { background: #FFFFFF; color: var(--accent); }
.btn--jasny:hover { background: #F3F0F6; color: var(--accent-hover); }
.btn--duzy { min-height: 54px; padding: 14px 28px; font-size: 16.5px; }
.btn[disabled] { opacity: .7; cursor: progress; }

/* ---------- Logo i język ---------- */
.logo { flex: none; display: block; }
.logo img { height: 44px; width: auto; }
.jezyk { display: inline-flex; padding: 3px; border-radius: 999px; background: var(--surface-2); }
.jezyk a { display: inline-grid; place-items: center; color: var(--muted); text-decoration: none; font-weight: 650; font-size: 13px; letter-spacing: .02em; padding: 6px 10px; border-radius: 999px; min-width: 38px; }
.jezyk a:hover { color: var(--ink); }
.jezyk a[aria-current="true"] { background: var(--surface); color: var(--ink); box-shadow: 0 1px 2px rgb(12 42 59 / .12); }

/* ---------- Formularze ---------- */
.formularz { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: clamp(22px, 3vw, 36px); box-shadow: var(--shadow); }
.formularz h3 { font-size: 1.35rem; }
.formularz > p { color: var(--muted); margin-top: 6px; font-size: 15.5px; }
.pola { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; margin-top: 24px; }
.pole { display: grid; gap: 7px; align-content: start; }
.pole--pelne { grid-column: 1 / -1; }
.pole label, .pole .label { font-weight: 650; font-size: 15px; color: var(--ink); }
.pole .opc { font-weight: 500; color: var(--muted); }
.pole input, .pole textarea, .pole select {
	width: 100%; font: inherit; font-size: 16px; color: var(--ink);
	background: var(--bg); border: 1.5px solid #C3CDD7; border-radius: var(--r-sm);
	padding: 12px 14px; min-height: 48px; transition: border-color .2s, box-shadow .2s, background-color .2s;
}
.pole textarea { min-height: 132px; resize: vertical; }
.pole input:focus, .pole textarea:focus, .pole select:focus { outline: none; border-color: var(--link); background: var(--surface); box-shadow: 0 0 0 4px color-mix(in srgb, var(--link) 18%, transparent); }
.pole .blad { display: none; font-size: 13.5px; color: #B3123F; font-weight: 600; align-items: center; gap: 6px; }
.pole.zle input, .pole.zle textarea, .pole.zle select { border-color: #B3123F; }
.pole.zle .blad { display: flex; }
.formularz__stopka { margin-top: 26px; display: flex; flex-wrap: wrap; align-items: center; gap: 14px 20px; }
.formularz__stopka small { color: var(--muted); font-size: 13.5px; display: inline-flex; gap: 6px; align-items: center; }
.formularz > .formularz__blad { margin-top: 18px; padding: 12px 14px; border-radius: var(--r-sm); background: #FCEBF0; color: #8E0E33; font-weight: 600; font-size: 15px; display: flex; gap: 8px; align-items: center; }
.formularz > .formularz__recaptcha { margin-top: 16px; font-size: 12.5px; line-height: 1.5; color: var(--muted); }
.formularz__recaptcha a { color: inherit; }
/* pułapka na boty: pole ukryte przed człowiekiem i czytnikiem ekranu */
.formularz__www { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.formularz--wyslany { display: grid; align-content: center; justify-items: start; gap: 14px; }
.formularz--wyslany > p { margin-top: 0; max-width: 46ch; font-size: 1.05rem; }
.formularz--wyslany .ik { width: 56px; height: 56px; border-radius: 50%; background: var(--grad); color: #FFFFFF; font-size: 28px; }
.formularz--wyslany:focus { outline: none; }

/* ---------- Dodatki formularzy ---------- */
.kopiuj { border: 1px solid var(--line); background: var(--bg); color: var(--ink); font-weight: 650; font-size: 13.5px; padding: 7px 12px; border-radius: 999px; cursor: pointer; display: inline-flex; align-items: center; gap: 6px; transition: background-color .2s, border-color .2s; }
.kopiuj:hover { border-color: var(--ink); }
.kopiuj.ok { background: #E8F6EE; border-color: #2E8B57; color: #1E6B42; }
.pole .pomoc { font-size: 13.5px; color: var(--muted); }
.zgoda { display: grid; grid-template-columns: 24px minmax(0, 1fr); gap: 12px; align-items: start; font-size: 15px; color: var(--text); cursor: pointer; }
.zgoda input { width: 22px; height: 22px; margin: 1px 0 0; accent-color: var(--accent); cursor: pointer; }
.powrot { display: inline-flex; align-items: center; gap: 8px; color: var(--muted); font-weight: 600; font-size: 15px; text-decoration: none; margin-bottom: 28px; }
.powrot:hover { color: var(--ink); }
.nw { white-space: nowrap; }
.wybor { display: flex; gap: 8px; flex-wrap: wrap; }
.wybor label { display: inline-flex; align-items: center; gap: 8px; min-height: 48px; padding: 10px 16px; border: 1.5px solid #C3CDD7; border-radius: var(--r-sm); background: var(--bg); font-weight: 600; color: var(--ink); cursor: pointer; }
.wybor label:has(input:checked) { border-color: var(--ink); background: var(--surface); }
.wybor input { accent-color: var(--accent); width: 18px; height: 18px; margin: 0; }
.zgoda-pole { margin-top: 18px; display: grid; gap: 8px; }
.zgoda-pole .blad { display: none; font-size: 13.5px; color: #B3123F; font-weight: 600; align-items: center; gap: 6px; padding-left: 36px; }
.zgoda-pole.zle .blad { display: flex; }
.zgoda-pole .zgoda { font-weight: 650; color: var(--ink); }
