/*
Theme Name: TOMDATA
Theme URI: https://www.tomdata.pl
Author: Tomasz Zaborowski
Author URI: https://www.tomdata.pl
Description: Lekki motyw strony firmowej TOMDATA – tworzenie stron internetowych, integracje ERP i serwis komputerowy. Strona główna, podstrony, wpisy i formularz Contact Form 7. Ustawienia: Wygląd → Dostosuj → TOMDATA – strona główna.
Version: 1.6.2
Requires at least: 6.2
Tested up to: 6.8
Requires PHP: 7.4
License: GPLv2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: tomdata
*/

/* =========================================================
   1. Zmienne
   ========================================================= */
:root {
	--td-bg: #F4F2ED;
	--td-surface: #FFFFFF;
	--td-ink: #15171C;
	--td-body: #3D4149;
	--td-muted: #555A63;
	--td-line: #DAD6CC;
	--td-line-2: #E7E3DA;
	--td-ph: #ECE9E1;
	--td-dark-2: #22252C;
	--td-amber: #F59E0B;
	--td-accent: #C2410C;
	--td-accent-dark: #9A3412;
	--td-accent-text: var(--td-accent);

	/* Wypełnienia „odwrócone” (ciemne przyciski, zaznaczenia) */
	--td-fill: #15171C;
	--td-fill-hover: #000000;
	--td-on-fill: #FFFFFF;
	/* Ciemne pasy (sekcja ERP, monogram) – ciemne w obu motywach */
	--td-band: #15171C;
	--td-band-ink: #F4F2ED;
	--td-band-body: #C9CCD3;
	--td-band-muted: #B9BCC4;
	/* Formularz */
	--td-input-bg: #FAF9F6;
	--td-input-bg-focus: #FFFFFF;
	--td-input-border: #C9C4B8;
	--td-pill-bg: #FFFFFF;
	/* Różne */
	--td-header-bg: rgba(244, 242, 237, .92);
	--td-mock-strong: #CFCABE;
	--td-map-sub: #B9BCC4;
	--td-ok-bg: #F0FDF4;
	--td-error: #B91C1C;

	--td-font: 'IBM Plex Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
	--td-display: 'Bricolage Grotesque', 'IBM Plex Sans', Georgia, serif;
	--td-mono: 'IBM Plex Mono', ui-monospace, 'Cascadia Mono', Consolas, monospace;

	--td-gutter: 24px;
	--td-max: 1296px;
	--td-radius: 24px;
	--td-section: 120px;
	color-scheme: light;
}

/* ---------- Kolorystyka: zielona (jak logo) ---------- */
:root { --td-logo: var(--td-accent); }
:root[data-accent="green"] {
	--td-accent: #047857;
	--td-accent-dark: #065F46;
	--td-logo: #10B981;
	--td-amber: #34D399;
}

/* ---------- Ciemny motyw ---------- */
:root[data-theme="dark"] {
	color-scheme: dark;
	--td-bg: #111317;
	--td-surface: #1A1D23;
	--td-ink: #F1EFEA;
	--td-body: #C9CCD3;
	--td-muted: #9CA1AB;
	--td-line: #30343C;
	--td-line-2: #272B32;
	--td-ph: #20242B;
	--td-dark-2: #262A31;
	--td-accent-text: #FB8A4B;
	--td-fill: #F1EFEA;
	--td-fill-hover: #FFFFFF;
	--td-on-fill: #15171C;
	--td-band: #1A1D23;
	--td-input-bg: #15181D;
	--td-input-bg-focus: #1A1D23;
	--td-input-border: #3A3F48;
	--td-pill-bg: transparent;
	--td-header-bg: rgba(17, 19, 23, .88);
	--td-mock-strong: #3A3F48;
	--td-map-sub: #555A63;
	--td-ok-bg: rgba(22, 163, 74, .14);
	--td-error: #F87171;
}
@supports (color: color-mix(in srgb, red 50%, white)) {
	:root[data-theme="dark"] { --td-accent-text: color-mix(in srgb, var(--td-accent) 62%, #ffffff); }
}
:root[data-theme="dark"][data-accent="green"] { --td-accent-text: #34D399; }
:root[data-theme="dark"]:not([data-accent="green"]) { --td-logo: var(--td-accent-text); }

/* =========================================================
   2. Baza
   ========================================================= */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
html.menu-open { overflow: hidden; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
	margin: 0;
	background: var(--td-bg);
	color: var(--td-ink);
	font-family: var(--td-font);
	font-size: 17px;
	line-height: 1.6;
	-webkit-font-smoothing: antialiased;
	text-rendering: optimizeLegibility;
}

img, svg, video { max-width: 100%; height: auto; }
img { display: block; }

a { color: var(--td-accent-text); text-underline-offset: 3px; }
a:hover { color: var(--td-accent-dark); }
:root[data-theme="dark"] a:hover { color: var(--td-ink); }
:focus-visible { outline: 3px solid var(--td-accent); outline-offset: 3px; border-radius: 4px; }

h1, h2, h3, h4 { margin: 0; color: var(--td-ink); }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }

[id] { scroll-margin-top: 96px; }

.screen-reader-text {
	position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
	overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link {
	position: absolute; left: 16px; top: -60px; z-index: 1000;
	background: var(--td-fill); color: var(--td-on-fill); padding: 12px 18px; border-radius: 10px; text-decoration: none;
}
.skip-link:focus { top: 12px; color: var(--td-on-fill); }

.wrap { width: 100%; max-width: var(--td-max); margin-inline: auto; padding-inline: var(--td-gutter); }

/* =========================================================
   3. Typografia i elementy wspólne
   ========================================================= */
.eyebrow {
	font-family: var(--td-mono); font-size: 14px; letter-spacing: .08em;
	text-transform: uppercase; color: var(--td-muted);
}
.eyebrow--amber { color: var(--td-amber); }

.hero__title, .h2 { font-family: var(--td-display); font-weight: 800; letter-spacing: -.02em; }
.h2 { font-size: clamp(32px, 4.2vw, 52px); line-height: 1.06; }
.h2--sm { font-size: clamp(30px, 3.4vw, 44px); }
.h3 { font-family: var(--td-display); font-weight: 700; font-size: clamp(22px, 2.3vw, 30px); line-height: 1.15; }

.lead { font-size: 20px; line-height: 1.55; color: var(--td-body); }
.lead--sm { font-size: 18px; line-height: 1.6; }
.accent { color: var(--td-accent-text); }
.num { font-family: var(--td-mono); font-size: 13px; color: var(--td-accent-text); }

.btn {
	white-space: nowrap;
	display: inline-flex; align-items: center; justify-content: center; gap: 8px;
	min-height: 48px; padding: 12px 22px; border-radius: 999px;
	font-family: var(--td-font); font-weight: 600; font-size: 16px; line-height: 1.2;
	text-decoration: none; border: 1.5px solid transparent; cursor: pointer;
	transition: background-color .15s, color .15s, border-color .15s, transform .15s;
}
.btn:hover { transform: translateY(-1px); }
.btn--lg { min-height: 56px; padding: 16px 24px; font-size: 17px; }
.btn--accent { background: var(--td-accent); color: #fff; }
.btn--accent:hover { background: var(--td-accent-dark); color: #fff; }
.btn--dark { background: var(--td-fill); color: var(--td-on-fill); }
.btn--dark:hover { background: var(--td-fill-hover); color: var(--td-on-fill); }
.btn--outline { border-color: var(--td-ink); color: var(--td-ink); background: transparent; }
.btn--outline:hover { background: var(--td-fill); color: var(--td-on-fill); border-color: var(--td-fill); }
.btn--light { background: var(--td-band-ink); color: #15171C; }
.btn--light:hover { background: #fff; color: #15171C; }
.btn-row { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }

.card { background: var(--td-surface); border: 1px solid var(--td-line); border-radius: var(--td-radius); }
.card--pad { padding: 40px; }

.section { padding-top: var(--td-section); }
.section__head { display: flex; flex-direction: column; gap: 14px; margin-bottom: 48px; max-width: 820px; }
.section__head--split { max-width: none; flex-direction: row; justify-content: space-between; align-items: flex-end; gap: 48px; }
.section__head--split > div { display: flex; flex-direction: column; gap: 14px; max-width: 760px; }
.section__intro { font-size: 18px; line-height: 1.55; color: var(--td-body); max-width: 440px; }

.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }

/* =========================================================
   4. Nagłówek i menu
   ========================================================= */
.site-header {
	position: sticky; top: 0; z-index: 100;
	border-bottom: 1px solid var(--td-line);
}
/* Rozmycie tła na pseudo-elemencie – inaczej psułoby pozycjonowanie menu mobilnego */
.site-header::before {
	content: ''; position: absolute; inset: 0; z-index: -1;
	background: var(--td-header-bg);
	-webkit-backdrop-filter: saturate(1.2) blur(10px); backdrop-filter: saturate(1.2) blur(10px);
}
.site-header.is-open::before { background: var(--td-bg); }
.site-header { transition: box-shadow .3s; }
.site-header.is-scrolled { box-shadow: 0 8px 24px -12px rgba(0, 0, 0, .18); }
:root[data-theme="dark"] .site-header.is-scrolled { box-shadow: 0 8px 24px -12px rgba(0, 0, 0, .6); }
.admin-bar .site-header { top: 32px; }
@media (max-width: 782px) { .admin-bar .site-header { top: 0; } }

.site-header__inner { height: 84px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; color: var(--td-ink); flex-shrink: 0; }
.brand:hover { color: var(--td-ink); }
.brand__name { font-family: var(--td-display); font-weight: 800; font-size: 24px; letter-spacing: .02em; }
.brand__logo { max-height: 44px; width: auto; }

.site-nav { display: flex; align-items: center; gap: 28px; margin-left: auto; }
.site-nav .menu { display: flex; align-items: center; gap: 28px; }
.site-nav .menu a { color: var(--td-ink); text-decoration: none; font-weight: 500; font-size: 16px; padding: 8px 0; position: relative; white-space: nowrap; }
.site-nav .menu a:hover { color: var(--td-ink); }
.site-nav .menu a::after {
	content: ''; position: absolute; left: 0; right: 0; bottom: 2px; height: 2px;
	background: var(--td-accent); transform: scaleX(0); transform-origin: left; transition: transform .2s;
}
.site-nav .menu a:hover::after,
.site-nav .menu .current-menu-item > a::after { transform: scaleX(1); }
.site-nav .menu .sub-menu { display: none; }

/* Logo */
.td-logo { display: inline-flex; align-items: center; gap: 12px; }
.td-sphere { width: 40px; height: 40px; flex-shrink: 0; color: var(--td-logo); transition: transform .5s cubic-bezier(.2, .7, .2, 1); }
.td-wordmark { height: 22px; width: auto; aspect-ratio: 686 / 100; color: var(--td-ink); }
.brand:hover .td-sphere { transform: rotate(-12deg) scale(1.05); }
.site-footer__brand .td-sphere { width: 30px; height: 30px; }
.site-footer__brand .td-wordmark { height: 17px; }

/* Przełącznik kolorystyki */
.accent-toggle {
	width: 44px; height: 44px; border-radius: 50%; flex-shrink: 0;
	display: inline-flex; align-items: center; justify-content: center;
	border: 1.5px solid var(--td-line); background: transparent; cursor: pointer;
	transition: border-color .15s;
}
.accent-toggle:hover { border-color: var(--td-ink); }
.accent-toggle__dot {
	width: 20px; height: 20px; border-radius: 50%;
	background: conic-gradient(#10B981 0 50%, #C2410C 50% 100%);
	transition: transform .4s cubic-bezier(.2, .7, .2, 1);
}
:root[data-accent="green"] .accent-toggle__dot { transform: rotate(180deg); }

/* Przełącznik jasny / ciemny */
.site-header__tools { display: flex; align-items: center; gap: 10px; order: 3; }
.theme-toggle {
	width: 44px; height: 44px; border-radius: 50%; flex-shrink: 0;
	display: inline-flex; align-items: center; justify-content: center;
	border: 1.5px solid var(--td-line); background: transparent; color: var(--td-ink); cursor: pointer;
	transition: border-color .15s, transform .25s;
}
.theme-toggle:hover { border-color: var(--td-ink); }
.theme-toggle:active { transform: rotate(-25deg); }
.theme-toggle .icon-sun { display: none; }
:root[data-theme="dark"] .theme-toggle .icon-sun { display: block; }
:root[data-theme="dark"] .theme-toggle .icon-moon { display: none; }
html.theme-anim, html.theme-anim *, html.theme-anim *::before { transition: background-color .3s, color .3s, border-color .3s, fill .3s, stroke .3s !important; }

.nav-toggle {
	display: none; width: 48px; height: 48px; border-radius: 14px;
	border: 1.5px solid var(--td-ink); background: transparent; color: var(--td-ink);
	align-items: center; justify-content: center; cursor: pointer;
}
.nav-toggle__close { display: none; }
.is-open .nav-toggle__open { display: none; }
.is-open .nav-toggle__close { display: inline; }

@media (max-width: 1280px) {
	.nav-toggle { display: inline-flex; }
	.site-nav {
		position: fixed; inset: 84px 0 0 0; z-index: 99;
		background: var(--td-bg);
		flex-direction: column; align-items: stretch; gap: 24px;
		padding: 24px var(--td-gutter) 40px; overflow-y: auto;
		visibility: hidden; opacity: 0; transform: translateY(-8px);
		transition: opacity .2s, transform .2s, visibility 0s linear .2s;
	}
	.admin-bar .site-nav { inset-block-start: 116px; }
	.is-open .site-nav { visibility: visible; opacity: 1; transform: none; transition: opacity .2s, transform .2s; }
	.site-nav .menu { flex-direction: column; align-items: stretch; gap: 0; }
	.site-nav .menu li { border-bottom: 1px solid var(--td-line); }
	.site-nav .menu a { display: block; font-family: var(--td-display); font-weight: 700; font-size: 26px; padding: 16px 0; }
	.site-nav .menu a::after { display: none; }
	.site-nav__cta { min-height: 56px; font-size: 17px; }
}
@media (max-width: 782px) { .admin-bar .site-nav { inset-block-start: 130px; } }
@media (max-width: 600px) { .admin-bar .site-nav { inset-block-start: 84px; } }

/* =========================================================
   5. Hero
   ========================================================= */
.hero {
	display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 64px; align-items: center;
	padding-top: 80px; padding-bottom: 72px;
}
.hero__text { display: flex; flex-direction: column; gap: 26px; }
.hero__title { font-size: clamp(40px, 5.2vw, 64px); line-height: 1.03; }
.hero .lead { max-width: 580px; }

.hero-map { margin: 0; padding: 28px; display: flex; flex-direction: column; gap: 16px; }
.hero-map__bar { display: flex; justify-content: space-between; gap: 12px; font-family: var(--td-mono); font-size: 13px; color: var(--td-muted); }
.hero-map__status { display: inline-flex; align-items: center; gap: 8px; }
.hero-map__status i { width: 8px; height: 8px; border-radius: 50%; background: #16A34A; display: inline-block; }
.hero-map .links { stroke: var(--td-ink); }
.hero-map .erp-box { fill: var(--td-fill); }
.hero-map svg { width: 100%; height: auto; display: block; }
.hero-map .node rect { fill: var(--td-bg); stroke: var(--td-line); }
.hero-map .t-strong { font-family: var(--td-font); font-weight: 600; font-size: 16px; fill: var(--td-ink); }
.hero-map .t-mono { font-family: var(--td-mono); font-size: 12px; fill: var(--td-muted); }
.hero-map .t-erp { font-family: var(--td-display); font-weight: 800; font-size: 24px; fill: var(--td-on-fill); }
.hero-map .t-light { fill: var(--td-map-sub); }
.hero-map .acc circle, .hero-map .acc text { fill: var(--td-accent-text); }

/* =========================================================
   6. Atuty
   ========================================================= */
.trust {
	display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 32px;
	padding: 28px 0; border-top: 1px solid var(--td-line); border-bottom: 1px solid var(--td-line);
}
.trust li { display: flex; flex-direction: column; gap: 6px; }
.trust strong { font-weight: 600; font-size: 18px; line-height: 1.35; }
.trust li > span:last-child { font-size: 15px; color: var(--td-muted); line-height: 1.5; }

/* =========================================================
   7. Usługi
   ========================================================= */
.card__head { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-bottom: 28px; }
.service-list li { display: flex; gap: 20px; padding: 22px 0; border-top: 1px solid var(--td-line-2); }
.service-list .td-icon { flex-shrink: 0; color: var(--td-ink); }
.service-list li.is-accent .td-icon { color: var(--td-accent-text); }
.service-list h4 { font-weight: 600; font-size: 19px; line-height: 1.35; margin-bottom: 6px; }
.service-list p { font-size: 16px; line-height: 1.5; color: var(--td-muted); }

/* =========================================================
   8. ERP
   ========================================================= */
.erp {
	background: var(--td-band); color: var(--td-band-ink); border-radius: 32px; padding: 80px; border: 1px solid var(--td-line);
	display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 72px; align-items: center;
}
.erp .h2 { color: var(--td-band-ink); font-size: clamp(32px, 4vw, 48px); }
.erp__text { display: flex; flex-direction: column; gap: 24px; align-items: flex-start; }
.erp__text > p:not(.eyebrow) { font-size: 18px; line-height: 1.6; color: var(--td-band-body); }
.erp__list { display: flex; flex-direction: column; gap: 14px; }
.erp__list li { background: var(--td-dark-2); border-radius: 18px; padding: 24px 28px; display: flex; gap: 20px; align-items: flex-start; }
.erp__sym { font-family: var(--td-mono); font-size: 16px; color: var(--td-amber); padding-top: 2px; }
.erp__list h3 { color: var(--td-band-ink); font-family: var(--td-font); font-weight: 600; font-size: 18px; line-height: 1.35; margin-bottom: 4px; }
.erp__list p { font-size: 15px; line-height: 1.5; color: var(--td-band-muted); }

/* =========================================================
   9. Proces
   ========================================================= */
.steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; counter-reset: none; }
.steps li { display: flex; flex-direction: column; gap: 14px; padding-top: 24px; border-top: 3px solid var(--td-ink); }
.steps__n { font-family: var(--td-display); font-weight: 800; font-size: 40px; line-height: 1; color: var(--td-accent-text); }
.steps h3 { font-family: var(--td-font); font-weight: 600; font-size: 20px; }
.steps p { font-size: 16px; line-height: 1.5; color: var(--td-muted); }

/* =========================================================
   10. Realizacje
   ========================================================= */
.project { display: flex; flex-direction: column; gap: 16px; }
.project__link { display: flex; flex-direction: column; gap: 16px; text-decoration: none; color: inherit; }
.project__link:hover { color: inherit; }
.project__link:hover .browser { border-color: var(--td-ink); transform: translateY(-3px); }
.browser { background: var(--td-surface); border: 1px solid var(--td-line); border-radius: 16px; overflow: hidden; transition: transform .2s, border-color .2s; }
.browser__bar { height: 32px; display: flex; align-items: center; gap: 6px; padding: 0 14px; border-bottom: 1px solid var(--td-line-2); }
.browser__bar i { width: 9px; height: 9px; border-radius: 50%; background: var(--td-line); display: inline-block; }
.browser img { width: 100%; aspect-ratio: 16 / 10; height: auto; object-fit: cover; object-position: top; }
.browser__mock { aspect-ratio: 16 / 10; background: var(--td-ph); padding: 12% 10%; display: flex; flex-direction: column; gap: 10px; }
.browser__mock span { display: block; height: 10px; border-radius: 6px; background: var(--td-line); }
.browser__mock span:nth-child(1) { width: 55%; height: 16px; background: var(--td-mock-strong); }
.browser__mock span:nth-child(2) { width: 80%; }
.browser__mock span:nth-child(3) { width: 65%; }
.browser__mock b { display: block; margin-top: auto; width: 34%; height: 26px; border-radius: 999px; background: var(--td-accent); opacity: .85; }
.project__meta { display: flex; flex-direction: column; gap: 4px; }
.project__tag { font-family: var(--td-mono); font-size: 13px; color: var(--td-accent-text); }
.project h3 { font-family: var(--td-font); font-weight: 600; font-size: 20px; line-height: 1.3; }

/* =========================================================
   11. O mnie
   ========================================================= */
.about { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 24px; align-items: start; }
.about__photo { grid-column: span 5; border-radius: var(--td-radius); overflow: hidden; background: var(--td-ph); }
.about__photo img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.about__monogram {
	aspect-ratio: 4 / 5; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px;
	background: var(--td-band); color: var(--td-band-ink);
}
.about__monogram span { font-family: var(--td-display); font-weight: 800; font-size: clamp(96px, 12vw, 160px); line-height: 1; color: var(--td-band-ink); }
.about__monogram small { font-family: var(--td-mono); font-size: 14px; letter-spacing: .2em; color: var(--td-accent); filter: brightness(1.5); }
.about__text { grid-column: 7 / span 6; display: flex; flex-direction: column; gap: 28px; padding-top: 12px; }
.values { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 20px; }
.values li { padding: 20px 0; border-top: 1px solid var(--td-line); display: flex; flex-direction: column; gap: 6px; }
.values strong { font-weight: 600; font-size: 18px; }
.values span { font-size: 15px; line-height: 1.5; color: var(--td-muted); }

/* =========================================================
   12. FAQ
   ========================================================= */
.faq { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 24px; }
.faq__head { grid-column: span 4; display: flex; flex-direction: column; gap: 14px; }
.faq__list { grid-column: 6 / span 7; border-bottom: 1px solid var(--td-line); }
.faq__item { border-top: 1px solid var(--td-line); }
.faq__item summary {
	list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 24px;
	padding: 22px 0; min-height: 44px;
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary h3 { font-family: var(--td-font); font-weight: 600; font-size: 20px; line-height: 1.35; }
.faq__item summary:hover h3 { color: var(--td-accent-text); }
.faq__plus { position: relative; width: 20px; height: 20px; flex-shrink: 0; }
.faq__plus::before, .faq__plus::after {
	content: ''; position: absolute; left: 50%; top: 50%; width: 16px; height: 2px; background: var(--td-ink);
	transform: translate(-50%, -50%); transition: transform .2s;
}
.faq__plus::after { transform: translate(-50%, -50%) rotate(90deg); }
.faq__item[open] .faq__plus::after { transform: translate(-50%, -50%) rotate(0deg); }
.faq__item p { font-size: 16px; line-height: 1.6; color: var(--td-muted); padding: 0 44px 24px 0; }

/* =========================================================
   13. Kontakt + Contact Form 7
   ========================================================= */
.contact {
	display: grid; grid-template-columns: repeat(2, minmax(0, 1fr));
	background: var(--td-surface); border: 1px solid var(--td-line); border-radius: 32px; overflow: hidden;
}
.contact__side { background: var(--td-accent); color: #fff; padding: 64px; display: flex; flex-direction: column; gap: 24px; }
.contact__side .h2 { color: #fff; }
.contact__side > p { font-size: 18px; line-height: 1.6; }
.contact__links { margin-top: auto; padding-top: 24px; display: flex; flex-direction: column; gap: 16px; }
.contact__links a { color: #fff; font-weight: 600; font-size: 18px; text-decoration: none; display: inline-flex; gap: 14px; align-items: center; word-break: break-all; }
.contact__links a:hover { color: #fff; text-decoration: underline; }
.contact__links .td-icon { flex-shrink: 0; }
.contact__form { padding: 64px; }
.contact__fallback { display: flex; flex-direction: column; gap: 20px; }
.contact__fallback p { color: var(--td-body); }
.admin-hint { font-size: 14px; padding: 12px 16px; border-radius: 12px; background: #FEF3C7; color: #78350F !important; }

.wpcf7 form { display: flex; flex-direction: column; gap: 18px; }
.wpcf7 form > p { margin: 0; }
.wpcf7 br { display: none; }
.wpcf7 label, .wpcf7 legend { display: flex; flex-direction: column; gap: 8px; font-size: 14px; font-weight: 600; color: var(--td-ink); }
.wpcf7 .td-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.wpcf7 input[type="text"], .wpcf7 input[type="email"], .wpcf7 input[type="tel"], .wpcf7 input[type="url"], .wpcf7 textarea, .wpcf7 select {
	width: 100%; min-height: 50px; padding: 12px 16px; border: 1px solid var(--td-input-border); border-radius: 12px;
	background: var(--td-input-bg); color: var(--td-ink); font: inherit; font-weight: 400; font-size: 16px;
}
.wpcf7 textarea { min-height: 130px; resize: vertical; }
.wpcf7 input:focus, .wpcf7 textarea:focus { outline: 2px solid var(--td-accent); outline-offset: 0; border-color: var(--td-accent); background: var(--td-input-bg-focus); }
.wpcf7 fieldset { border: 0; padding: 0; margin: 0; }
.wpcf7 legend { padding: 0; margin-bottom: 10px; }

/* Wybór tematu jako przyciski („pigułki”) */
.wpcf7 .td-pills .wpcf7-radio { display: flex; flex-wrap: wrap; gap: 10px; }
.wpcf7 .td-pills .wpcf7-list-item { margin: 0; }
.wpcf7 .td-pills .wpcf7-list-item label { display: block; cursor: pointer; font-weight: 400; }
.wpcf7 .td-pills .wpcf7-list-item input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.wpcf7 .td-pills .wpcf7-list-item-label {
	display: inline-flex; align-items: center; min-height: 44px; padding: 0 18px; border-radius: 999px;
	border: 1.5px solid var(--td-input-border); background: var(--td-pill-bg); color: var(--td-ink); font-size: 15px; transition: all .15s;
}
.wpcf7 .td-pills .wpcf7-list-item label:hover .wpcf7-list-item-label { border-color: var(--td-ink); }
.wpcf7 .td-pills input:checked + .wpcf7-list-item-label { background: var(--td-fill); border-color: var(--td-fill); color: var(--td-on-fill); }
.wpcf7 .td-pills input:focus-visible + .wpcf7-list-item-label { outline: 3px solid var(--td-accent); outline-offset: 2px; }

.wpcf7 .wpcf7-acceptance .wpcf7-list-item { margin: 0; }
.wpcf7 .wpcf7-acceptance label { flex-direction: row; align-items: flex-start; gap: 10px; font-weight: 400; font-size: 14px; color: var(--td-muted); line-height: 1.5; }
.wpcf7 .wpcf7-acceptance input { width: 20px; height: 20px; margin: 1px 0 0; accent-color: var(--td-accent); flex-shrink: 0; }

.wpcf7 input[type="submit"] {
	width: 100%; min-height: 56px; border: 0; border-radius: 999px; background: var(--td-fill); color: var(--td-on-fill);
	font: inherit; font-weight: 600; font-size: 17px; cursor: pointer; transition: background-color .15s;
}
.wpcf7 input[type="submit"]:hover { background: var(--td-fill-hover); }
.wpcf7 input[type="submit"]:disabled { opacity: .5; cursor: not-allowed; }
.wpcf7 .wpcf7-spinner { margin: 8px auto 0; display: block; }
.wpcf7 .wpcf7-not-valid-tip { font-size: 13px; font-weight: 400; color: var(--td-error); margin-top: 2px; }
.wpcf7 form .wpcf7-response-output { margin: 0; padding: 14px 16px; border-radius: 12px; font-size: 15px; }
.wpcf7 form.sent .wpcf7-response-output { border-color: #16A34A; background: var(--td-ok-bg); }

/* =========================================================
   14. Stopka
   ========================================================= */
.site-footer { margin-top: var(--td-section); border-top: 1px solid var(--td-line); color: var(--td-muted); font-size: 15px; }
.site-footer__grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr 1fr; gap: 32px; padding-top: 64px; padding-bottom: 40px; }
.site-footer__brand { display: block; font-family: var(--td-display); font-weight: 800; font-size: 22px; color: var(--td-ink); margin-bottom: 10px; }
.site-footer__about p { line-height: 1.55; max-width: 300px; }
.site-footer__title { display: block; font-weight: 600; color: var(--td-ink); margin-bottom: 12px; }
.site-footer ul { display: flex; flex-direction: column; gap: 10px; }
.site-footer a { color: var(--td-muted); text-decoration: none; }
.site-footer a:hover { color: var(--td-accent-text); text-decoration: underline; }
.site-footer__bottom { display: flex; flex-wrap: wrap; gap: 12px 24px; align-items: center; padding-top: 20px; padding-bottom: 32px; border-top: 1px solid var(--td-line); font-size: 14px; }
.site-footer__bottom > span { margin-right: auto; }
.site-footer__menu { flex-direction: row !important; gap: 24px !important; }

/* Przycisk „do góry” */
.to-top {
	position: fixed; right: 24px; bottom: 24px; z-index: 90;
	width: 52px; height: 52px; border-radius: 50%;
	display: inline-flex; align-items: center; justify-content: center;
	background: var(--td-fill); color: var(--td-on-fill); text-decoration: none;
	box-shadow: 0 0 0 2px var(--td-bg), 0 6px 20px rgba(0, 0, 0, .25);
	opacity: 0; visibility: hidden; transform: translateY(12px);
	transition: opacity .25s, transform .25s, visibility 0s linear .25s, background-color .15s;
}
.to-top.is-visible { opacity: 1; visibility: visible; transform: none; transition: opacity .25s, transform .25s, background-color .15s; }
.to-top:hover, .to-top:focus-visible { background: var(--td-accent); color: #fff; }
.to-top:hover svg { transform: translateY(-2px); }
.to-top svg { transition: transform .15s; }
html.menu-open .to-top { opacity: 0; visibility: hidden; }
@media (max-width: 600px) { .to-top { right: 16px; bottom: 16px; width: 48px; height: 48px; } }
@media (prefers-reduced-motion: reduce) { .to-top, .to-top svg { transition: none; } }

/* =========================================================
   14b. Animacje (wyłączone przy „ogranicz ruch”)
   ========================================================= */
@media (prefers-reduced-motion: no-preference) {

	/* Wejście nagłówka strony */
	.hero__text > * { animation: td-rise .8s cubic-bezier(.2, .7, .2, 1) both; }
	.hero__text > :nth-child(2) { animation-delay: .08s; }
	.hero__text > :nth-child(3) { animation-delay: .16s; }
	.hero__text > :nth-child(4) { animation-delay: .24s; }
	.hero-map { animation: td-pop 1s cubic-bezier(.2, .7, .2, 1) .2s both; }

	/* Grafika integracji: płynące dane i pulsujące punkty */
	.hero-map .links path { animation: td-flow 1.1s linear infinite; }
	.hero-map .links path:nth-child(2), .hero-map .links path:nth-child(3) { animation-direction: reverse; }
	.hero-map .acc circle { transform-box: fill-box; transform-origin: center; animation: td-dot 2.4s ease-in-out infinite; }
	.hero-map .acc circle:nth-child(2) { animation-delay: .6s; }
	.hero-map .acc circle:nth-child(3) { animation-delay: 1.2s; }
	.hero-map .acc circle:nth-child(4) { animation-delay: 1.8s; }
	.hero-map__status i { animation: td-ping 2s ease-out infinite; }

	/* Wejście elementów przy przewijaniu (klasę .reveal nadaje skrypt tylko elementom poniżej ekranu) */
	html .reveal { opacity: 0; transform: translateY(28px); transition: opacity .7s cubic-bezier(.2, .7, .2, 1), transform .7s cubic-bezier(.2, .7, .2, 1); transition-delay: var(--td-d, 0ms); }
	html .reveal.is-in { opacity: 1; transform: none; }

	/* Najechanie myszką */
	.card--pad { transition: transform .3s cubic-bezier(.2, .7, .2, 1), border-color .3s; }
	.card--pad:hover { transform: translateY(-4px); border-color: var(--td-muted); }
	.erp__list li { transition: transform .25s, background-color .25s; }
	.erp__list li:hover { transform: translateX(6px); }
	.service-list .td-icon { transition: transform .25s; }
	.service-list li:hover .td-icon { transform: scale(1.12) rotate(-4deg); }
	.steps li { transition: border-color .3s; }
	.steps li:hover { border-top-color: var(--td-accent-text); }
}

@keyframes td-rise { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }
@keyframes td-pop { from { opacity: 0; transform: translateY(16px) scale(.97); } to { opacity: 1; transform: none; } }
@keyframes td-flow { to { stroke-dashoffset: -20; } }
@keyframes td-dot { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.6); } }
@keyframes td-ping { 0% { box-shadow: 0 0 0 0 rgba(22, 163, 74, .55); } 80%, 100% { box-shadow: 0 0 0 8px rgba(22, 163, 74, 0); } }

/* =========================================================
   14c. Okno zgody na cookies
   ========================================================= */
.cc {
	position: fixed; left: 24px; bottom: 24px; z-index: 200;
	width: min(440px, calc(100vw - 48px));
	background: var(--td-surface); color: var(--td-ink);
	border: 1px solid var(--td-line); border-radius: 20px;
	box-shadow: 0 20px 50px -12px rgba(0, 0, 0, .28);
	padding: 24px; display: flex; flex-direction: column; gap: 14px;
	opacity: 0; transform: translateY(16px);
	transition: opacity .3s, transform .3s cubic-bezier(.2, .7, .2, 1);
}
.cc.is-visible { opacity: 1; transform: none; }
.cc[hidden] { display: none; }
.cc__title { font-family: var(--td-display); font-weight: 800; font-size: 20px; }
.cc__desc { font-size: 14px; line-height: 1.55; color: var(--td-body); }
.cc__prefs { display: flex; flex-direction: column; gap: 4px; border-top: 1px solid var(--td-line); padding-top: 8px; }
.cc__prefs[hidden] { display: none; }
.cc__opt { display: flex; gap: 12px; align-items: flex-start; padding: 8px 0; cursor: pointer; }
.cc__opt input { width: 20px; height: 20px; margin: 2px 0 0; accent-color: var(--td-accent); flex-shrink: 0; }
.cc__opt input:disabled { opacity: .6; }
.cc__opt span { display: flex; flex-direction: column; gap: 2px; }
.cc__opt strong { font-size: 15px; font-weight: 600; }
.cc__opt small { font-size: 13px; line-height: 1.45; color: var(--td-muted); }
.cc__actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.cc__btn { min-height: 44px; padding: 10px 18px; font-size: 15px; flex: 1 1 0; }
.cc__btn[hidden] { display: none; }
.cc__link {
	background: none; border: 0; padding: 10px 4px; min-height: 44px; cursor: pointer;
	font: inherit; font-size: 14px; font-weight: 600; color: var(--td-ink);
	text-decoration: underline; text-underline-offset: 3px;
}
.cc__link[hidden] { display: none; }
.cc__link:hover { color: var(--td-accent-text); }
html.cc-open .to-top { opacity: 0; visibility: hidden; }
@media (max-width: 600px) {
	.cc { left: 12px; right: 12px; bottom: 12px; width: auto; padding: 20px; border-radius: 18px; max-height: calc(100vh - 24px); overflow-y: auto; }
	.cc__btn { flex: 1 1 100%; }
}
@media (prefers-reduced-motion: reduce) { .cc { transition: none; } }

.site-footer__social { display: inline-flex; align-items: center; gap: 8px; }
.site-footer__social .td-icon { flex-shrink: 0; }
.site-footer__cookies {
	background: none; border: 0; padding: 0; cursor: pointer;
	font: inherit; font-size: 14px; color: var(--td-muted);
}
.site-footer__cookies:hover { color: var(--td-accent-text); text-decoration: underline; }
.td-hp { position: absolute !important; left: -10000px !important; top: auto; width: 1px; height: 1px; overflow: hidden; }
.wpcf7 .wpcf7-turnstile { margin: 4px 0; }
.contact__gdpr { margin-top: 18px; font-size: 13px; line-height: 1.5; color: var(--td-muted); }

/* =========================================================
   15. Podstrony i wpisy
   ========================================================= */
.page-wrap { padding-top: 72px; }
.page-head { display: flex; flex-direction: column; gap: 14px; margin-bottom: 40px; max-width: 860px; }
.entry { max-width: 860px; }
.entry__meta { font-family: var(--td-mono); font-size: 13px; color: var(--td-muted); }
.entry__thumb { margin-bottom: 32px; border-radius: var(--td-radius); overflow: hidden; }

.prose { font-size: 18px; line-height: 1.7; color: var(--td-body); }
.prose > * + * { margin-top: 1.1em; }
.prose h2 { font-family: var(--td-display); font-weight: 800; font-size: clamp(26px, 3vw, 34px); line-height: 1.15; margin-top: 1.8em; letter-spacing: -.01em; }
.prose h3 { font-family: var(--td-display); font-weight: 700; font-size: 24px; margin-top: 1.5em; }
.prose h4 { font-size: 19px; margin-top: 1.3em; }
.prose ul { list-style: disc; padding-left: 1.3em; }
.prose ol { list-style: decimal; padding-left: 1.3em; }
.prose li + li { margin-top: .4em; }
.prose img, .prose figure { border-radius: 16px; }
.prose figure { margin-inline: 0; }
.prose figcaption { font-size: 14px; color: var(--td-muted); margin-top: 8px; }
.prose blockquote { margin-inline: 0; padding-left: 20px; border-left: 3px solid var(--td-accent-text); color: var(--td-ink); }
.prose table { width: 100%; border-collapse: collapse; font-size: 16px; }
.prose th, .prose td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--td-line); }
.prose th { font-size: 14px; font-weight: 600; color: var(--td-ink); background: var(--td-ph); }
.prose td { vertical-align: top; }
.prose code { font-family: var(--td-mono); font-size: .88em; background: var(--td-ph); padding: 2px 6px; border-radius: 6px; }
@media (max-width: 760px) { .prose table { display: block; overflow-x: auto; font-size: 14px; } .prose th, .prose td { min-width: 140px; } }
.prose .wp-block-button__link { background: var(--td-accent); color: #fff; border-radius: 999px; padding: 14px 26px; text-decoration: none; font-weight: 600; }
.prose .wpcf7 { margin-top: 24px; }
.alignwide { margin-inline: calc(50% - 50vw + var(--td-gutter)); max-width: 1248px; }
.alignfull { margin-inline: calc(50% - 50vw); max-width: 100vw; width: 100vw; }

.post-card { overflow: hidden; display: flex; flex-direction: column; }
.post-card__img img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.post-card__body { padding: 24px; display: flex; flex-direction: column; gap: 10px; }
.post-card__body a { color: var(--td-ink); text-decoration: none; }
.post-card__body a:hover { color: var(--td-accent-text); }
.post-card__body p { color: var(--td-muted); font-size: 16px; }
.pagination { margin-top: 48px; }
.pagination .nav-links { display: flex; gap: 8px; flex-wrap: wrap; }
.pagination .page-numbers { min-width: 44px; min-height: 44px; display: inline-flex; align-items: center; justify-content: center; padding: 0 14px; border-radius: 999px; border: 1px solid var(--td-line); text-decoration: none; color: var(--td-ink); }
.pagination .page-numbers.current { background: var(--td-fill); color: var(--td-on-fill); border-color: var(--td-fill); }
.notfound { display: flex; flex-direction: column; gap: 20px; padding-bottom: 40px; }

/* Realizacje – kafelek i pojedynczy wpis */
.project__more { margin-top: 6px; font-size: 15px; font-weight: 600; color: var(--td-accent-text); }
.project__link:hover .project__more span { display: inline-block; transform: translateX(3px); transition: transform .2s; }

.case__head { padding-top: 56px; padding-bottom: 36px; display: flex; flex-direction: column; gap: 16px; max-width: 920px; margin-inline: auto; }
.case__back { align-self: flex-start; font-size: 15px; font-weight: 600; text-decoration: none; color: var(--td-muted); }
.case__back:hover { color: var(--td-accent-text); }
.case__title { font-size: clamp(34px, 5vw, 56px); }
.case__lead { max-width: 760px; }
.case__hero { margin: 0 auto; max-width: 1100px; position: relative; }
.case__screen { position: relative; }
.case__hero img { display: block; width: 100%; height: auto; aspect-ratio: auto; object-fit: initial; }
/* Wysoki zrzut całej strony: okno o stałej wysokości, przewijane w środku */
.case__hero.is-tall .case__screen { height: min(72vh, 680px); overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; scrollbar-color: var(--td-line) transparent; }
.case__hero.is-tall .case__screen:focus-visible { outline: 3px solid var(--td-accent); outline-offset: -3px; }
.case__hint { position: absolute; right: 16px; bottom: 16px; padding: 8px 14px; border-radius: 999px; background: var(--td-ink); color: var(--td-bg); font-size: 13px; font-weight: 600; pointer-events: none; opacity: .92; transition: opacity .3s; }
.case__hero.is-scrolled .case__hint { opacity: 0; }
.case__body { padding-top: 56px; }
.case__content { max-width: 760px; margin-inline: auto; }
.case__content .wp-block-gallery, .case__content .wp-block-image { margin-block: 32px; }
.case__content .wp-block-image img, .case__content .wp-block-gallery img { border-radius: 14px; border: 1px solid var(--td-line); }
.case__content .alignwide { max-width: 1100px; margin-inline: calc((760px - min(1100px, 100vw - 2 * var(--td-gutter))) / 2); }
.case__cta { display: flex; justify-content: space-between; align-items: center; gap: 32px; flex-wrap: wrap; padding: 40px; border-radius: var(--td-radius); background: var(--td-surface); border: 1px solid var(--td-line); }
.case__cta p { color: var(--td-body); margin-top: 8px; }
.post-navigation { margin-top: 32px; }
.post-navigation .nav-links { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.post-navigation a { display: flex; flex-direction: column; gap: 4px; padding: 20px 24px; border: 1px solid var(--td-line); border-radius: 16px; text-decoration: none; color: var(--td-ink); font-weight: 600; }
.post-navigation a:hover { border-color: var(--td-ink); }
.post-navigation .nav-next { grid-column: 2; text-align: right; }
.case__nav-label { font-family: var(--td-mono); font-size: 12px; font-weight: 400; letter-spacing: .06em; text-transform: uppercase; color: var(--td-muted); }
@media (max-width: 600px) {
	.case__cta { padding: 24px; }
	.post-navigation .nav-links { grid-template-columns: 1fr; }
	.post-navigation .nav-next { grid-column: 1; }
}

/* =========================================================
   16. Responsywność
   ========================================================= */
@media (max-width: 1100px) {
	:root { --td-section: 96px; }
	.hero { grid-template-columns: 1fr; gap: 48px; padding-top: 56px; }
	.hero-map { max-width: 680px; }
	.trust { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.erp { grid-template-columns: 1fr; gap: 48px; padding: 56px; }
	.steps { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 40px; }
	.grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.about__photo { grid-column: span 5; }
	.about__text { grid-column: 6 / span 7; }
	.faq__head { grid-column: 1 / -1; }
	.faq__list { grid-column: 1 / -1; }
	.contact__side, .contact__form { padding: 48px; }
	.site-footer__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 860px) {
	.grid-2 { grid-template-columns: 1fr; }
	.section__head--split { flex-direction: column; align-items: flex-start; gap: 16px; }
	.about { grid-template-columns: 1fr; gap: 40px; }
	.about__photo, .about__text { grid-column: 1 / -1; }
	.about__photo { max-width: 420px; }
	.contact { grid-template-columns: 1fr; }
}

@media (max-width: 600px) {
	:root { --td-gutter: 20px; --td-section: 72px; --td-radius: 20px; }
	body { font-size: 16px; }
	.site-header__inner { height: 68px; }
	.site-nav { inset-block-start: 68px; }
	.brand .td-sphere { width: 32px; height: 32px; }
	.brand .td-logo { gap: 9px; }
	.brand .td-wordmark { height: 17px; }
	.site-header__tools { gap: 6px; }
	.accent-toggle, .theme-toggle { width: 40px; height: 40px; }
	.nav-toggle { width: 44px; height: 44px; }
	.eyebrow { font-size: 12px; }
	.hero { padding-top: 40px; padding-bottom: 40px; gap: 32px; }
	.hero__title { font-size: 38px; line-height: 1.06; }
	.lead { font-size: 17px; }
	.btn-row { flex-direction: column; align-items: stretch; }
	.btn-row .btn { width: 100%; }
	.hero-map { padding: 16px; }
	.hero-map__bar { font-size: 11px; }
	.trust { grid-template-columns: 1fr; gap: 20px; }
	.card--pad { padding: 24px; }
	.card__head { margin-bottom: 12px; }
	.service-list li { gap: 14px; padding: 18px 0; }
	.service-list .td-icon { width: 26px; height: 26px; }
	.service-list h4 { font-size: 17px; }
	.service-list p { font-size: 15px; }
	.erp { padding: 32px 24px; border-radius: 24px; }
	.erp__text > p:not(.eyebrow) { font-size: 16px; }
	.erp__list li { padding: 20px; }
	.erp__text .btn { width: 100%; }
	.steps { grid-template-columns: 1fr; row-gap: 28px; }
	.grid-3 { grid-template-columns: 1fr; }
	.faq__item summary h3 { font-size: 17px; }
	.faq__item p { padding-right: 0; font-size: 15px; }
	.contact { border-radius: 24px; }
	.contact__side, .contact__form { padding: 28px 22px; }
	.contact__links a { font-size: 16px; }
	.wpcf7 .td-row { grid-template-columns: 1fr; }
	.site-footer__grid { grid-template-columns: 1fr; gap: 28px; padding-top: 48px; }
	.page-wrap { padding-top: 40px; }
	.prose { font-size: 17px; }
}
