/* ==========================================================================
   ZÁKLAD — reset, typografia, kontajner, tlačidlá, sekcie
   ========================================================================== */

/*
 * Šablóna EK odkazuje na rodiny „Inter-Regular" a „Inter-ExtraBold".
 * Mapujeme ich na variabilný Inter témy, aby sa označenie vykreslilo
 * správne aj mimo generátora (hero, vnorené zobrazenie).
 */
@font-face {
	font-family: 'Inter-Regular';
	src: url('../fonts/InterVariable.woff2') format('woff2');
	font-weight: 100 900;
	font-display: swap;
}

@font-face {
	font-family: 'Inter-ExtraBold';
	src: url('../fonts/InterVariable.woff2') format('woff2');
	font-weight: 100 900;
	font-display: swap;
}

/* ---- Reset -------------------------------------------------------------- */

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

html {
	scroll-behavior: smooth;
	scroll-padding-top: calc(var(--gt-header-height) + 16px);
}

body {
	margin: 0;
	font-family: var(--gt-font);
	font-size: var(--gt-fs-base);
	line-height: var(--gt-lh-base);
	color: var(--gt-ink);
	background: var(--gt-white);
	-webkit-font-smoothing: antialiased;
	text-rendering: optimizeLegibility;
	font-feature-settings: 'cv11', 'ss01';
}

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

a {
	color: inherit;
	text-decoration: none;
	transition: color var(--gt-duration) var(--gt-ease);
}

a:hover {
	text-decoration: underline;
	text-underline-offset: 3px;
}

button {
	font: inherit;
}

h1, h2, h3, h4 {
	margin: 0;
	font-weight: var(--gt-weight-semibold);
	line-height: var(--gt-lh-tight);
	letter-spacing: var(--gt-tracking-tight);
	text-wrap: balance;
}

p {
	margin: 0;
}

ul, ol {
	margin: 0;
	padding: 0;
}

:focus-visible {
	outline: 2px solid var(--gt-accent);
	outline-offset: 3px;
	border-radius: 4px;
}

::selection {
	background: var(--gt-accent-soft);
}

/* ---- Prístupnosť -------------------------------------------------------- */

.screen-reader-text {
	position: absolute;
	width: 1px;
	height: 1px;
	margin: -1px;
	padding: 0;
	overflow: hidden;
	clip-path: inset(50%);
	white-space: nowrap;
}

.skip-link {
	position: absolute;
	top: -100px;
	left: var(--gt-space-16);
	z-index: 1000;
	padding: var(--gt-space-12) var(--gt-space-16);
	background: var(--gt-white);
	border: 1px solid var(--gt-accent);
	border-radius: var(--gt-radius-sm);
}

.skip-link:focus {
	top: var(--gt-space-16);
}

/* ---- Kontajner ---------------------------------------------------------- */

.gt-container {
	width: 100%;
	max-width: calc(var(--gt-container) + 2 * var(--gt-gutter));
	margin-inline: auto;
	padding-inline: var(--gt-gutter);
}

.gt-container--wide {
	max-width: calc(var(--wp--style--global--wide-size) + 2 * var(--gt-gutter));
}

.gt-main--flow {
	padding-block: var(--gt-space-48) var(--gt-space-section);
}

.gt-main--generator {
	padding-bottom: var(--gt-space-section);
}

.gt-generator-wrap {
	margin-top: var(--gt-space-32);
}

/* ---- Typografické pomocníky --------------------------------------------- */

.gt-eyebrow {
	margin: 0 0 var(--gt-space-12);
	font-size: var(--gt-fs-micro);
	font-weight: var(--gt-weight-semibold);
	letter-spacing: var(--gt-tracking-wide);
	text-transform: uppercase;
	color: var(--gt-accent);
}

.gt-disclaimer {
	font-size: var(--gt-fs-micro);
	line-height: 1.5;
	color: var(--gt-muted);
}

/* ---- Tlačidlá ----------------------------------------------------------- */

.btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: var(--gt-space-8);
	min-height: var(--gt-btn-height);
	padding-inline: var(--gt-space-24);
	border: 1px solid transparent;
	border-radius: var(--gt-radius-sm);
	font-size: var(--gt-fs-small);
	font-weight: var(--gt-weight-semibold);
	line-height: 1;
	text-align: center;
	text-decoration: none;
	white-space: nowrap;
	cursor: pointer;
	transition:
		background-color var(--gt-duration) var(--gt-ease),
		border-color var(--gt-duration) var(--gt-ease),
		color var(--gt-duration) var(--gt-ease),
		transform var(--gt-duration) var(--gt-ease),
		box-shadow var(--gt-duration) var(--gt-ease);
}

.btn:hover,
.btn:focus-visible {
	text-decoration: none;
}

.btn--primary {
	background: var(--gt-accent);
	border-color: var(--gt-accent);
	color: var(--gt-white);
	box-shadow: 0 1px 2px rgba(3, 78, 162, 0.2), 0 8px 24px -12px rgba(3, 78, 162, 0.6);
}

.btn--primary:hover,
.btn--primary:focus-visible {
	background: var(--gt-accent-dark);
	border-color: var(--gt-accent-dark);
	color: var(--gt-white);
	transform: translateY(-1px);
}

.btn--outline {
	background: transparent;
	border-color: var(--gt-border);
	color: var(--gt-ink);
}

.btn--outline:hover,
.btn--outline:focus-visible {
	border-color: var(--gt-ink);
	color: var(--gt-ink);
}

.btn--ghost {
	background: transparent;
	color: var(--gt-ink);
}

.btn--ghost:hover,
.btn--ghost:focus-visible {
	background: var(--gt-mist);
}

.btn--small {
	min-height: 40px;
	padding-inline: var(--gt-space-16);
	font-size: var(--gt-fs-micro);
}

.btn--large {
	min-height: 54px;
	padding-inline: var(--gt-space-32);
	font-size: var(--gt-fs-base);
}

/* ---- Sekcie ------------------------------------------------------------- */

.gt-section {
	padding-block: var(--gt-space-section);
}

.gt-section--mist {
	background: var(--gt-mist);
}

.gt-section-head {
	max-width: 720px;
	margin-bottom: var(--gt-space-32);
}

.gt-section-head--center {
	margin-inline: auto;
	text-align: center;
}

.gt-section-head__title {
	font-size: var(--gt-fs-title);
}

.gt-section-head__lead {
	margin-top: var(--gt-space-16);
	font-size: var(--gt-fs-lead);
	line-height: var(--gt-lh-base);
	color: var(--gt-body);
}
