/* ArtX: tokeny, podstawy, układ i wspólne komponenty (c-, l-, u-). Style sekcji są w site.css. */

@font-face { font-family: "Source Sans Pro"; font-style: normal; font-weight: 400; font-display: swap; src: url("../fonts/source-sans-pro-latin-ext-400-normal.woff2") format("woff2"); unicode-range: U+0100-024F, U+0259, U+1E00-1EFF, U+2020, U+20A0-20AB, U+20AD-20CF, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Source Sans Pro"; font-style: normal; font-weight: 400; font-display: swap; src: url("../fonts/source-sans-pro-latin-400-normal.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Source Sans Pro"; font-style: normal; font-weight: 700; font-display: swap; src: url("../fonts/source-sans-pro-latin-ext-700-normal.woff2") format("woff2"); unicode-range: U+0100-024F, U+0259, U+1E00-1EFF, U+2020, U+20A0-20AB, U+20AD-20CF, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Source Sans Pro"; font-style: normal; font-weight: 700; font-display: swap; src: url("../fonts/source-sans-pro-latin-700-normal.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

/* ---------- Tokeny ---------- */
:root {
	--c-red: #e11d25;
	--c-red-dark: #b8141b;
	--c-ink: #1f1a1b;
	--c-text: #453e40;
	--c-muted: #6e6668;
	--c-tint: #f5f2f2;
	--c-line: #e7e1e2;
	--c-white: #fff;
	--font: "Source Sans Pro", Helvetica, Arial, sans-serif;
	--container: 1200px;
	--gutter: 32px;
	--header-height: 88px;
	--section-space: clamp(64px, 8vw, 112px);
	--radius: 20px;
	--radius-small: 14px;
	--shadow: 0 18px 50px rgba(31, 26, 27, .1);
	--t: .22s;
}

/* ---------- Podstawy ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: var(--header-height); -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body { margin: 0; background: var(--c-white); color: var(--c-text); font: 400 18px/1.65 var(--font); overflow-wrap: break-word; }
h1, h2, h3, h4 { margin: 0 0 .6em; color: var(--c-ink); font-weight: 700; line-height: 1.15; text-wrap: balance; }
p { margin: 0 0 1.2em; }
ul, ol { margin: 0 0 1.4em; padding-left: 1.4em; }
li { margin-bottom: .35em; }
li::marker { color: var(--c-red); }
a { color: var(--c-red); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--c-red-dark); }
strong, b { color: var(--c-ink); font-weight: 700; }
img { display: block; max-width: 100%; height: auto; }
address { font-style: normal; }
button { padding: 0; border: 0; background: none; color: inherit; font: inherit; cursor: pointer; }
:focus-visible { outline: 3px solid var(--c-ink); outline-offset: 3px; }
[hidden] { display: none; }

/* ---------- Układ ---------- */
.l-container { width: min(var(--container), 100% - 2 * var(--gutter)); margin-inline: auto; }
.l-section { position: relative; padding-block: var(--section-space); }

/* ---------- Tytuł sekcji: czerwona kropka jak w logo ---------- */
.c-title { margin: 0 0 clamp(28px, 4vw, 48px); font-size: clamp(36px, 5vw, 60px); line-height: 1.05; }
.c-title::after { content: ""; display: inline-block; width: .24em; height: .24em; margin-left: .16em; border-radius: 50%; background: var(--c-red); }
.c-title--light { color: var(--c-white); }
.c-title--light::after { background: var(--c-white); }

/* ---------- Zdjęcie w kole (przycina tło zapisane w plikach) ---------- */
.c-circle img { width: 100%; aspect-ratio: 1; object-fit: cover; clip-path: circle(49% at 50% 49.8%); }

/* ---------- Ikonka w przycisku ---------- */
.c-icon { flex: none; width: 1.15em; height: 1.15em; fill: none; stroke: currentcolor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- Przycisk ---------- */
.c-button { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 52px; padding: 12px 32px; border: 2px solid var(--c-red); border-radius: 999px; background: var(--c-red); color: var(--c-white); font: 700 18px/1.2 var(--font); text-decoration: none; transition: background-color var(--t), border-color var(--t), color var(--t), transform var(--t); }
.c-button:hover { border-color: var(--c-red-dark); background: var(--c-red-dark); color: var(--c-white); transform: translateY(-2px); }
.c-button--ghost { border-color: var(--c-ink); background: transparent; color: var(--c-ink); }
.c-button--ghost:hover { border-color: var(--c-ink); background: var(--c-ink); color: var(--c-white); }

/* ---------- Treść z edytora ---------- */
.c-prose > :last-child { margin-bottom: 0; }
.c-prose img { height: auto; }
.c-prose table { display: block; max-width: 100%; overflow-x: auto; }

/* ---------- Zgody na cookies: baner i panel ustawień ---------- */
.c-consent { position: fixed; z-index: 120; bottom: 20px; left: 20px; width: min(480px, 100% - 40px); max-height: calc(100% - 40px); overflow-y: auto; padding: 22px 24px 18px; border: 1px solid var(--c-line); border-radius: var(--radius); background: var(--c-white); box-shadow: 0 16px 48px rgba(0, 0, 0, .22); color: var(--c-text); font-size: 16px; line-height: 1.5; }
.c-consent__title { margin: 0 0 6px; color: var(--c-ink); font-size: 20px; font-weight: 700; line-height: 1.2; }
.c-consent__text { margin: 0 0 16px; }
.c-consent__actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.c-consent__button { gap: 8px; min-height: 46px; padding: 8px 12px; font-size: 16px; text-align: center; }
.c-consent__more { display: inline-flex; grid-column: 1 / -1; align-items: center; justify-self: center; gap: 8px; min-height: 36px; padding: 4px 12px; color: var(--c-ink); text-decoration: underline; text-underline-offset: 3px; }
.c-consent__more:hover { color: var(--c-red-dark); }
.c-consent-modal { width: min(580px, 100% - 24px); max-height: calc(100% - 24px); padding: 0; border: 0; border-radius: var(--radius); background: var(--c-white); box-shadow: var(--shadow); color: var(--c-text); font-size: 16px; line-height: 1.5; }
.c-consent-modal::backdrop { background: rgba(31, 26, 27, .65); }
.c-consent-modal__inner { padding: 26px 28px; }
.c-consent-modal__head { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 8px; }
.c-consent-modal__title { margin: 0; font-size: 26px; }
.c-consent-modal__title:focus { outline: none; }
.c-consent-modal__close { flex: none; width: 44px; height: 44px; border-radius: 50%; color: var(--c-ink); font-size: 30px; line-height: 1; }
.c-consent-modal__close:hover { background: var(--c-tint); }
.c-consent-modal__actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; padding-top: 18px; border-top: 1px solid var(--c-line); }
.c-consent-modal__save { grid-column: 1 / -1; }
.c-consent-cat { padding: 14px 0; border-top: 1px solid var(--c-line); }
.c-consent-cat__head { display: flex; align-items: center; justify-content: space-between; gap: 16px; cursor: pointer; }
.c-consent-cat__name { color: var(--c-ink); font-weight: 700; }
.c-consent-cat__desc { margin: 6px 0 0; font-size: 15px; }
.c-consent-switch { appearance: none; -webkit-appearance: none; position: relative; flex: none; width: 48px; height: 28px; margin: 0; border: 2px solid var(--c-muted); border-radius: 999px; background: var(--c-white); cursor: pointer; transition: background-color var(--t), border-color var(--t); }
.c-consent-switch::after { content: ""; position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 50%; background: var(--c-muted); transition: transform var(--t), background-color var(--t); }
.c-consent-switch:checked { border-color: var(--c-red); background: var(--c-red); }
.c-consent-switch:checked::after { background: var(--c-white); transform: translateX(20px); }
.c-consent-switch:disabled { opacity: .5; cursor: default; }

/* ---------- Narzędzia ---------- */
.u-visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.u-skip-link { position: fixed; z-index: 200; top: 8px; left: 8px; padding: 10px 16px; border-radius: 8px; background: var(--c-ink); color: var(--c-white); transform: translateY(-200%); }
.u-skip-link:focus { color: var(--c-white); transform: none; }

@media (max-width: 860px) {
	:root { --header-height: 72px; }
}

@media (max-width: 767px) {
	:root { --gutter: 20px; }
	body { font-size: 17px; }
}

/* Wąski telefon: przyciski w banerze stoją obok siebie, ikonka zabierałaby miejsce na napis. */
@media (max-width: 420px) {
	.c-consent__actions .c-button .c-icon { display: none; }
}

@media (max-width: 560px) {
	.c-consent { bottom: 10px; left: 10px; width: calc(100% - 20px); max-height: calc(100% - 20px); padding: 16px 16px 10px; font-size: 15px; }
	.c-consent__text { margin-bottom: 12px; }
	.c-consent__button { font-size: 15px; }
	.c-consent-modal__inner { padding: 18px 16px; }
	.c-consent-modal__actions { grid-template-columns: minmax(0, 1fr); }
}

@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	*, *::before, *::after { transition-duration: .01ms; animation-duration: .01ms; }
}
