:root {
	--line-height: 1.5;
	--font-size: 18px;
	--font-size-medium: 16px;
	--font-size-small: 13px;

	--text-margin: 20px;
	--margin-section: 48px;
	--margin-section-large: 88px;

	/* Čiernobiela + jemná sivá */
	--background-color: #f4f4f4;
	--surface-color: #ffffff;
	--border-color: rgba(0, 0, 0, 0.12);
	--border-color-strong: rgba(0, 0, 0, 0.28);
	--text-color: #111111;
	--text-muted: rgba(0, 0, 0, 0.55);

	--accent: #111111;
	--accent-hover: #000000;
	--accent-soft: rgba(0, 0, 0, 0.06);

	--shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
	--shadow-md: 0 4px 24px rgba(0, 0, 0, 0.07);

	--radius: 10px;
	--radius-sm: 6px;
}

*, *::before, *::after {
	box-sizing: border-box;
}

body {
	background: var(--background-color);
	color: var(--text-color);
	scroll-behavior: smooth;
	display: flex;
	flex-direction: column;
	min-height: 100vh;
	margin: 0;
	line-height: var(--line-height);
	font-size: var(--font-size);
	font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
	font-optical-sizing: auto;
	font-weight: 400;
	font-style: normal;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
	text-rendering: optimizeLegibility;
}

a {
	color: var(--text-color);
	transition: color 0.2s ease, text-decoration-color 0.2s ease;
	text-underline-offset: 4px;
	text-decoration-thickness: 1px;
	text-decoration-skip-ink: none;
	text-decoration-color: var(--border-color-strong);
	font-weight: 500;
}
a:hover, a:active, a:focus {
	color: var(--accent);
	text-decoration-color: var(--accent);
}

strong { font-weight: 600; }

h1, h2, h3, h4, h5 {
	font-weight: 600;
	font-style: normal;
	color: var(--text-color);
	margin: 0;
	padding: 0;
	line-height: 1.15;
	letter-spacing: -0.01em;
}
h1 {
	font-size: 2.4em;
	font-weight: 700;
	letter-spacing: -0.025em;
}
h2 {
	margin: var(--text-margin) 0 var(--margin-section) 0;
	font-size: 1.3em;
	font-weight: 400;
	color: var(--text-muted);
	letter-spacing: 0;
}
h3 {
	margin: var(--text-margin) 0;
	font-weight: 600;
	font-size: 1.1em;
}

p {
	font-size: var(--font-size);
	line-height: var(--line-height);
	margin: 0 0 var(--text-margin) 0;
}

.container {
	text-align: left;
	display: flex;
	flex: 1;
	flex-direction: column;
	justify-content: center;
	margin-inline: auto;
	padding: var(--margin-section-large) 2.5em;
	max-width: min(100%, 36em);
	width: 100%;
}

.extra-text {
	color: var(--text-muted);
	font-size: var(--font-size-medium);
	max-width: 30em;
	margin-bottom: var(--text-margin);
}
.extra-text p { margin-bottom: calc(var(--text-margin) / 2); }
.extra-text p:last-child { margin-bottom: 0; }

header { margin: 0 0 var(--margin-section) 0; }

footer {
	margin: var(--margin-section-large) 0 var(--margin-section) 0;
	font-weight: 400;
	font-style: normal;
	color: var(--text-muted);
}
footer p {
	font-size: var(--font-size-small);
	margin: 0;
}
footer a { color: var(--text-muted); }
footer a:hover { color: var(--accent); }

/* ---- Formulár ---- */
.contact-form {
	max-width: 32em;
	margin-top: var(--margin-section);
	padding: 2em;
	background: var(--surface-color);
	border: 1px solid var(--border-color);
	border-radius: var(--radius);
	box-shadow: var(--shadow-md);
}

.form-field { margin-bottom: var(--text-margin); }

.form-field label {
	display: block;
	margin-bottom: calc(var(--text-margin) / 2.5);
	font-weight: 500;
	font-size: var(--font-size-small);
	letter-spacing: 0.03em;
	text-transform: uppercase;
	color: var(--text-muted);
}

.form-field input,
.form-field textarea {
	width: 100%;
	font-weight: 400;
	font-family: inherit;
	color: var(--text-color);
	background: var(--background-color);
	border-radius: var(--radius-sm);
	border: 1px solid var(--border-color);
	padding: 0.85em 1em;
	font-size: var(--font-size-medium);
	transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}
.form-field input::placeholder,
.form-field textarea::placeholder { color: var(--text-muted); }

.form-field textarea {
	resize: vertical;
	min-height: 140px;
}

.form-field input:focus,
.form-field textarea:focus {
	outline: none;
	background: var(--surface-color);
	border-color: var(--accent);
	box-shadow: 0 0 0 3px var(--accent-soft);
}

.note {
	font-size: var(--font-size-small);
	line-height: 1.5;
	color: var(--text-muted);
}

.submit-btn {
	display: inline-block;
	background-color: var(--accent);
	color: #ffffff;
	font-family: inherit;
	font-weight: 500;
	font-size: var(--font-size-medium);
	letter-spacing: 0.01em;
	border: none;
	border-radius: var(--radius-sm);
	cursor: pointer;
	padding: 0.9em 2.4em;
	box-shadow: var(--shadow-sm);
	transition: background-color 0.25s ease, transform 0.1s ease, box-shadow 0.25s ease;
}
.submit-btn:hover {
	background-color: var(--accent-hover);
	box-shadow: var(--shadow-md);
}
.submit-btn:active { transform: translateY(1px); }
.submit-btn:focus-visible {
	outline: none;
	box-shadow: 0 0 0 3px var(--accent-soft), var(--shadow-sm);
}

/* ---- Hlášky ---- */
.message {
	width: 100%;
	margin: var(--text-margin) 0;
	border: 1px solid var(--border-color);
	border-radius: var(--radius-sm);
	font-size: var(--font-size-medium);
	line-height: 1.5;
	padding: 1.25em 1.5em;
}
.message p { margin: 0; }

.success {
	color: #111111;
	background-color: #ededed;
	border-color: var(--border-color-strong);
}
.error {
	color: #111111;
	background-color: #ffffff;
	border-color: var(--text-color);
	border-left-width: 4px;
}
.error code {
	font-size: var(--font-size-small);
	display: block;
	margin-top: 0.5em;
	color: var(--text-muted);
}

/* ---- Responzívne ---- */
@media (max-width: 640px) {
	:root {
		--font-size: 17px;
		--margin-section-large: 48px;
		--margin-section: 36px;
	}
	.container { padding: var(--margin-section-large) 1.4em; }
	.contact-form { padding: 1.5em; }
	h1 { font-size: 2.1em; }
}
