/* ══════════════════════════════════════════════════════════════════
   DODATKI: pływający kontakt
   ══════════════════════════════════════════════════════════════════ */

/* ── Pływający kontakt: wspólne ──────────────────────────────────── */
.ns-pk { --pk-gold: var(--gold, #c9ab6e); }
.ns-pk svg { width: 18px; height: 18px; flex: none; }

/* Pigułka (komputer) — obok przycisku „do góry” (48 px + 12 px odstępu). */
.ns-pk-pill {
	position: fixed; right: 84px; bottom: 24px; z-index: 61;
	display: inline-flex; align-items: center; gap: 10px;
	height: 48px; padding: 0 20px 0 6px; border: 0; border-radius: 999px; cursor: pointer;
	background: linear-gradient(135deg, #d8bd84 0%, var(--pk-gold) 45%, #b08f52 100%);
	color: #0b0a08; font: 700 12px/1 'DM Sans', system-ui, sans-serif; letter-spacing: .12em; text-transform: uppercase;
	box-shadow: 0 14px 34px -12px rgba(201, 171, 110, .6), 0 2px 6px rgba(0, 0, 0, .35);
	opacity: 0; visibility: hidden; transform: translateY(12px) scale(.96);
	transition: opacity .35s, transform .35s cubic-bezier(.2, .8, .2, 1), visibility .35s, box-shadow .25s;
}
.ns-pk-pill-ico { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: rgba(0, 0, 0, .14); }
.ns-pk-pill-ico svg { width: 16px; height: 16px; }
.ns-pk.is-on .ns-pk-pill { opacity: 1; visibility: visible; transform: none; }
.ns-pk-pill:hover { box-shadow: 0 18px 40px -12px rgba(201, 171, 110, .75), 0 2px 6px rgba(0, 0, 0, .35); transform: translateY(-2px); }
.ns-pk-pill:focus-visible { outline: 2px solid #fff; outline-offset: 3px; }
.ns-pk-pill[aria-expanded="true"] { transform: none; }
/* Delikatny puls tylko raz, przy pierwszym pokazaniu — przyciąga wzrok, nie męczy. */
.ns-pk.is-on.is-first .ns-pk-pill-ico { animation: ns-pk-puls 1.6s ease-out 2; }
@keyframes ns-pk-puls { 0% { box-shadow: 0 0 0 0 rgba(0, 0, 0, .25); } 100% { box-shadow: 0 0 0 14px rgba(0, 0, 0, 0); } }

/* Panel. */
.ns-pk-panel {
	position: fixed; right: 24px; bottom: 86px; z-index: 62; width: 340px; max-width: calc(100vw - 48px);
	padding: 26px 24px 22px; border-radius: 16px;
	background: rgba(16, 15, 13, .92); border: 1px solid rgba(201, 171, 110, .22);
	-webkit-backdrop-filter: blur(16px) saturate(1.2); backdrop-filter: blur(16px) saturate(1.2);
	box-shadow: 0 30px 60px -20px rgba(0, 0, 0, .7);
	color: #fff; font-family: 'DM Sans', system-ui, sans-serif;
	transform-origin: bottom right; animation: ns-pk-in .28s cubic-bezier(.2, .8, .2, 1);
}
.ns-pk-panel[hidden] { display: none; }
@keyframes ns-pk-in { from { opacity: 0; transform: translateY(8px) scale(.97); } to { opacity: 1; transform: none; } }
.ns-pk-close { position: absolute; top: 12px; right: 12px; width: 32px; height: 32px; display: grid; place-items: center; border: 0; border-radius: 50%; background: rgba(255, 255, 255, .06); color: rgba(255, 255, 255, .7); cursor: pointer; }
.ns-pk-close:hover { background: rgba(255, 255, 255, .12); color: #fff; }
.ns-pk-close svg { width: 16px; height: 16px; }
.ns-pk-eyebrow { margin: 0 0 6px; font-size: 11px; letter-spacing: .28em; text-transform: uppercase; color: var(--pk-gold); }
.ns-pk-title { margin: 0; font: 400 30px/1 'Bebas Neue', 'DM Sans', sans-serif; letter-spacing: .02em; }
.ns-pk-lead { margin: 6px 0 16px; font-size: 13px; color: rgba(255, 255, 255, .55); }
.ns-pk-list { list-style: none; margin: 0 0 16px; padding: 0; display: grid; gap: 6px; }
.ns-pk-list a { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 10px; color: #fff; text-decoration: none; border: 1px solid transparent; transition: background .2s, border-color .2s; }
.ns-pk-list a:hover, .ns-pk-list a:focus-visible { background: rgba(201, 171, 110, .08); border-color: rgba(201, 171, 110, .25); outline: none; }
.ns-pk-list small { display: block; font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: rgba(255, 255, 255, .45); margin-bottom: 2px; }
.ns-pk-list span:last-child { font-size: 15px; font-weight: 600; }
.ns-pk-ico { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; background: rgba(201, 171, 110, .12); color: var(--pk-gold); flex: none; }
.ns-pk-ico svg { width: 17px; height: 17px; }
.ns-pk-cta { display: flex; align-items: center; justify-content: center; gap: 8px; height: 48px; border-radius: 10px; background: linear-gradient(135deg, #d8bd84, var(--pk-gold) 45%, #b08f52); color: #0b0a08; font-weight: 700; font-size: 12px; letter-spacing: .14em; text-transform: uppercase; text-decoration: none; }
.ns-pk-cta:hover { filter: brightness(1.06); }
.ns-pk-cta svg { width: 16px; height: 16px; }

/* Dolny pasek (telefon). */
.ns-dock { display: none; }

@media (max-width: 1023px) {
	.ns-pk-pill, .ns-pk-panel { display: none !important; }
	.ns-dock {
		position: fixed; left: 0; right: 0; bottom: 0; z-index: 61;
		display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px;
		padding: 10px 12px calc(10px + env(safe-area-inset-bottom));
		background: rgba(12, 11, 10, .92); border-top: 1px solid rgba(201, 171, 110, .2);
		-webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
		transform: translateY(110%); transition: transform .35s cubic-bezier(.2, .8, .2, 1);
	}
	.ns-pk.is-on .ns-dock { transform: none; }
	.ns-dock a { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; height: 52px; border-radius: 10px; color: #fff; text-decoration: none; font: 600 11px/1 'DM Sans', system-ui, sans-serif; letter-spacing: .06em; text-transform: uppercase; background: rgba(255, 255, 255, .05); border: 1px solid rgba(255, 255, 255, .08); }
	.ns-dock a svg { width: 18px; height: 18px; color: var(--pk-gold); }
	.ns-dock a.ns-dock-cta { background: linear-gradient(135deg, #d8bd84, var(--pk-gold) 45%, #b08f52); color: #0b0a08; border: 0; }
	.ns-dock a.ns-dock-cta svg { color: #0b0a08; }
	/* Gdy pasek widoczny — „do góry” i ustawienia cookies wyżej, a stopka z zapasem. */
	body.ns-dock-on .ns-top { bottom: calc(84px + env(safe-area-inset-bottom)); }
	body.ns-dock-on .nsc-reopen { bottom: calc(84px + env(safe-area-inset-bottom)); }
	body.ns-dock-on footer { padding-bottom: 76px; }
}

/* Baner cookies otwarty albo formularz na ekranie — chowamy wszystko. */
body.nsc-open .ns-pk, .ns-pk.is-hidden { visibility: hidden; }
body.nsc-open .ns-pk .ns-pk-pill, .ns-pk.is-hidden .ns-pk-pill { opacity: 0; }
body.nsc-open .ns-pk .ns-dock, .ns-pk.is-hidden .ns-dock { transform: translateY(110%); }

@media (prefers-reduced-motion: reduce) {
	.ns-pk *, .ns-pk-pill { animation: none !important; transition: none !important; }
}

/* ══════════════════════════════════════════════════════════════════
   RESPONSYWNOŚĆ — poprawki z audytu na telefonach (360–430 px)
   ══════════════════════════════════════════════════════════════════ */

/* Element siatki domyślnie nie zwęża się poniżej szerokości swojej treści
   (np. zdjęcia z width="700") — przez to „O nas” miało 724 px szerokości
   i na iPhonie dało się przesuwać stronę w bok. */
.grid > * { min-width: 0; }

/* Dymek „Skopiowano” wyrównany do prawej krawędzi przycisku — wyśrodkowany
   wystawał 11 px poza ekran (niewidoczny, ale Safari pozwalał przesunąć stronę). */
.ns-copy-toast { left: auto; right: 0; transform: translateY(4px); }
.ns-copy.copied .ns-copy-toast { transform: none; }

/* Długie słowa i adresy nigdy nie rozpychają kolumny. */
main p, main li, main dd, main h1, main h2, main h3 { overflow-wrap: break-word; }

@media (max-width: 767px) {
	/* Tabele w treści (np. polityka prywatności): na telefonie każdy wiersz to karta
	   z podpisami kolumn (data-label dokłada dodatki.js). Bez JS — przewijanie w ramce. */
	main table { display: block; max-width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch; }
	main table.ns-tab-karty { display: block; overflow: visible; border: 0; }
	main table.ns-tab-karty thead { display: none; }
	main table.ns-tab-karty tbody, main table.ns-tab-karty tr, main table.ns-tab-karty td { display: block; width: 100%; }
	main table.ns-tab-karty tr { margin: 0 0 12px; padding: 14px 16px; border: 1px solid var(--line, rgba(255,255,255,.1)); border-radius: 10px; background: rgba(255,255,255,.025); }
	main table.ns-tab-karty td { padding: 6px 0; border: 0; text-align: left; }
	main table.ns-tab-karty td + td { border-top: 1px solid rgba(255,255,255,.06); }
	main table.ns-tab-karty td[data-label]::before { content: attr(data-label); display: block; margin-bottom: 3px; font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--gold, #c9ab6e); }
	main table.ns-tab-karty td:first-child { font-weight: 600; color: #fff; }

	/* Stopka: „MASZ PROJEKT W GŁOWIE?” — było 42 px na 360 px ekranu. */
	footer h2.bb { font-size: clamp(1.9rem, 8.6vw, 2.6rem) !important; line-height: .95 !important; }

	/* Formularz kontaktowy: mniejsze marginesy boczne = szersze pola, krótszy formularz. */
	.k-form { padding: 28px 18px 22px; border-radius: 12px; }
	#kontakt div[style*="padding:40px 44px"] { padding: 28px 18px !important; }
	.k-form h2, #kontakt h3.bb { font-size: 2rem; margin-bottom: 1.25rem; }
	.ns-form { gap: 12px; }
	.ns-form-grid { gap: 12px; }
	.ns-input { height: 54px; }
	textarea.ns-input { min-height: 120px; height: 130px; }
	.ns-form-note { font-size: 12px; }

	/* Etykiety liczników nie wychodzą poza swoje pole. */
	.ns-stat-lab { letter-spacing: .1em; overflow-wrap: anywhere; }
	.ns-proc-cta-s { white-space: normal; overflow-wrap: break-word; }

	/* Cele dotyku min. ~40 px (zalecenie Google / WCAG). */
	.f-link, .f-legal-links a { display: inline-flex; align-items: center; min-height: 40px; }
	nav[aria-label="Breadcrumb"] a { display: inline-flex; align-items: center; min-height: 40px; }
	.ns-topbar-item { min-height: 36px; display: inline-flex; align-items: center; }
}
