/* Base */
:root {
	color-scheme: dark;
	--bg: #0f172a;
	--surface: rgba(15, 23, 42, 0.65);
	--surface-2: #111c34;
	--text: #f8fafc;
	--muted: #94a3b8;
	--border: #1f2a44;
	--accent: #38bdf8;
	--accent-2: #0ea5e9;
	--shadow: 0 16px 50px rgba(0, 0, 0, 0.35);
	--radius: 16px;
	--radius-sm: 12px;
	--container: 1120px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
	margin: 0;
	font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Arial, "Noto Sans", "Liberation Sans", sans-serif;
	background: var(--bg);
	color: var(--text);
	line-height: 1.55;
}

a { color: inherit; text-decoration: none; }
a:hover { color: var(--accent); }

:focus-visible {
	outline: 2px solid var(--accent);
	outline-offset: 3px;
	border-radius: 6px;
}

.container {
	max-width: var(--container);
	margin: 0 auto;
	padding: 0 24px;
}

.muted { color: var(--muted); }
.accent { color: var(--accent); }

/* Header + Nav */
.site-header {
	position: sticky;
	top: 0;
	z-index: 50;
	background: var(--surface);
	backdrop-filter: blur(12px);
	border-bottom: 1px solid var(--border);
}

.nav {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	padding: 18px 0;
}

.brand {
	display: inline-flex;
	align-items: baseline;
	font-weight: 800;
	letter-spacing: -0.03em;
	font-size: 22px;
}

.brand__accent { color: var(--accent); }
.brand__rest { color: var(--text); }

.nav__menu {
	display: none;
	list-style: none;
	gap: 28px;
	padding: 0;
	margin: 0;
}

.nav__link {
	display: inline-block;
	text-transform: uppercase;
	letter-spacing: 0.14em;
	font-size: 12px;
	font-weight: 600;
	color: var(--muted);
}

.nav__link:hover { color: var(--accent); }
.nav__cta { white-space: nowrap; }

@media (min-width: 768px) {
	.nav__menu { display: flex; }
}

/* Buttons */
.btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 10px 16px;
	border-radius: 999px;
	font-weight: 700;
	font-size: 14px;
	border: 1px solid transparent;
	transition: transform 120ms ease, background 120ms ease, border-color 120ms ease, color 120ms ease;
}

.btn:active { transform: translateY(1px); }

.btn--primary {
	background: var(--accent-2);
	color: #06101c;
}

.btn--primary:hover {
	background: var(--accent);
	color: #06101c;
}

.btn--ghost {
	background: transparent;
	border-color: var(--border);
	color: var(--text);
}

.btn--ghost:hover {
	border-color: color-mix(in srgb, var(--accent) 55%, var(--border));
	background: rgba(56, 189, 248, 0.08);
	color: var(--accent);
}

/* Main */
.site-main { display: block; }

.site-ad {
	max-width: var(--container);
	margin: 0 auto;
	padding: 0 24px 24px;
}
.site-ad:empty { display: none; }

/* Hero */
.hero {
	background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
	border-bottom: 1px solid var(--border);
	padding: 88px 0;
	text-align: center;
}

.hero__inner {
	max-width: 980px;
}

.kicker {
	margin: 0 0 12px;
	color: var(--accent);
	font-weight: 800;
	text-transform: uppercase;
	letter-spacing: 0.14em;
	font-size: 12px;
}

.hero__title {
	margin: 0 0 18px;
	font-weight: 800;
	letter-spacing: -0.03em;
	line-height: 1.05;
	font-size: clamp(40px, 6vw, 76px);
}

.hero__lead {
	margin: 0 auto 26px;
	max-width: 880px;
	color: var(--muted);
	font-size: 18px;
	line-height: 1.7;
}

.hero__actions {
	display: inline-flex;
	gap: 12px;
	flex-wrap: wrap;
	justify-content: center;
}

/* Sections */
.section {
	padding: 56px 0;
	border-bottom: 1px solid var(--border);
}

.section:last-of-type { border-bottom: none; }

.section__title {
	margin: 0 0 10px;
	font-size: 26px;
	letter-spacing: -0.01em;
}

.section__lead {
	margin: 0 0 24px;
	color: var(--muted);
	max-width: 72ch;
}

.section__text { margin: 0; }

/* Cards */
.grid {
	display: grid;
	grid-template-columns: 1fr;
	gap: 16px;
}

@media (min-width: 720px) {
	.grid { grid-template-columns: repeat(3, 1fr); }
	#projekty .grid { grid-template-columns: repeat(2, 1fr); }
}

.card {
	background: linear-gradient(180deg, rgba(17, 28, 52, 0.95), rgba(15, 23, 42, 0.85));
	border: 1px solid var(--border);
	border-radius: var(--radius);
	padding: 18px;
	box-shadow: var(--shadow);
	transition: transform 160ms ease, border-color 160ms ease;
}

.card:hover {
	transform: translateY(-4px);
	border-color: color-mix(in srgb, var(--accent) 55%, var(--border));
}

.card__title {
	margin: 0 0 8px;
	font-size: 16px;
	font-weight: 800;
}

.card__text {
	margin: 0;
	color: var(--muted);
}

.card__link {
	display: inline-flex;
	margin-top: 12px;
	font-weight: 700;
	color: var(--accent);
}

.card__link:hover { color: var(--text); }

/* Footer */
.site-footer {
	border-top: 1px solid var(--border);
	padding: 44px 0;
	text-align: center;
	color: var(--muted);
}

.footer-links {
	display: flex;
	gap: 18px;
	justify-content: center;
	flex-wrap: wrap;
	margin: 0 0 12px;
}

.footer-links__link {
	text-transform: uppercase;
	letter-spacing: 0.14em;
	font-weight: 800;
	font-size: 12px;
	color: var(--muted);
}

.footer-links__link:hover { color: var(--accent); }

.footer-note { margin: 0; font-size: 13px; }
