/* ==========================================================================
   ZDIEĽANÉ KOMPONENTY
   ========================================================================== */

/* ---- Logo --------------------------------------------------------------- */

.gt-logo {
	display: inline-flex;
	align-items: baseline;
	gap: 6px;
	text-decoration: none;
	line-height: 1;
}

.gt-logo:hover {
	text-decoration: none;
}

.gt-logo img {
	width: auto;
}

.gt-logo__mark {
	font-size: 22px;
	font-weight: 800;
	letter-spacing: -0.04em;
	color: var(--gt-ink);
}

.gt-logo__sub {
	font-size: 13px;
	font-weight: var(--gt-weight-medium);
	letter-spacing: 0.01em;
	color: var(--gt-muted);
}

/* ---- Vnorené označenie -------------------------------------------------- */

.gt-nested {
	position: relative;
}

.gt-nested__trigger {
	display: block;
	width: 100%;
	max-width: 300px;
	padding: 0;
	border: 0;
	background: none;
	cursor: pointer;
}

.gt-nested__trigger svg,
.gt-nested__trigger img {
	display: block;
	width: 100%;
	height: auto;
}

.gt-nested__full {
	position: absolute;
	top: calc(100% + 10px);
	left: 0;
	z-index: 20;
	width: min(320px, 90vw);
	padding: var(--gt-space-12);
	background: var(--gt-white);
	border: 1px solid var(--gt-border);
	border-radius: var(--gt-radius);
	box-shadow: var(--gt-shadow-soft);
	opacity: 0;
	visibility: hidden;
	transform: translateY(-4px);
	transition:
		opacity var(--gt-duration) var(--gt-ease),
		transform var(--gt-duration) var(--gt-ease),
		visibility 0s linear var(--gt-duration);
}

.gt-nested__full svg,
.gt-nested__full img {
	display: block;
	width: 100%;
	height: auto;
}

.gt-nested:hover .gt-nested__full,
.gt-nested:focus-within .gt-nested__full,
.gt-nested.is-open .gt-nested__full {
	opacity: 1;
	visibility: visible;
	transform: translateY(0);
	transition-delay: 0s;
}

.gt-nested__link {
	display: block;
	margin-top: var(--gt-space-8);
	font-size: var(--gt-fs-micro);
	color: var(--gt-accent);
}

.gt-logo .gt-logo__img {
	display: block;
	height: 60px;
	width: auto;
	max-height: none;
}

.gt-footer .gt-logo .gt-logo__img {
	height: 52px;
}

@media (max-width: 600px) {
	.gt-logo .gt-logo__img {
		height: 48px;
	}
}

/* ---- Riadok s ikonou ---------------------------------------------------- */

.gt-icon-list {
	display: flex;
	flex-direction: column;
	gap: var(--gt-space-12);
	list-style: none;
}

.gt-icon-row {
	display: flex;
	align-items: center;
	gap: var(--gt-space-12);
	line-height: var(--gt-lh-base);
}

.gt-icon-row__icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex: none;
	width: 36px;
	height: 36px;
	border-radius: 10px;
	background: var(--gt-accent-soft);
	color: var(--gt-accent);
}

.gt-icon-row__icon svg {
	width: 20px;
	height: 20px;
}

.gt-icon-row--bad .gt-icon-row__icon {
	background: #fdecec;
	color: var(--gt-error);
}

.gt-icon-row--ok .gt-icon-row__icon {
	background: #e7f5ec;
	color: var(--gt-success);
}

/* ---- Karta s ikonou ----------------------------------------------------- */

.gt-card-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 44px;
	margin-bottom: var(--gt-space-16);
	border-radius: 12px;
	background: var(--gt-accent-soft);
	color: var(--gt-accent);
}

.gt-card-icon svg {
	width: 22px;
	height: 22px;
}

/* ---- Upozornenie -------------------------------------------------------- */

.gt-note {
	display: flex;
	gap: var(--gt-space-12);
	padding: var(--gt-space-16) var(--gt-space-24);
	border: 1px solid #f1e3b5;
	border-radius: var(--gt-radius);
	background: #fffaeb;
	font-size: var(--gt-fs-small);
	line-height: var(--gt-lh-base);
	color: #5b4a12;
}

.gt-note svg {
	flex: none;
	width: 20px;
	height: 20px;
	margin-top: 2px;
	color: #b7791f;
}

.gt-note a {
	color: inherit;
	font-weight: var(--gt-weight-semibold);
	text-decoration: underline;
}

/* ---- Tooltip (upozornenie ako ikona) ----------------------------------- */

.gt-tip {
	position: relative;
	display: inline-flex;
	vertical-align: middle;
	margin-left: var(--gt-space-8);
}

.gt-tip__btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 28px;
	height: 28px;
	padding: 0;
	border: 1px solid var(--gt-border);
	border-radius: var(--gt-radius-pill);
	background: var(--gt-white);
	color: var(--gt-accent);
	cursor: help;
}

.gt-tip__btn svg {
	width: 16px;
	height: 16px;
}

.gt-tip__body {
	position: absolute;
	top: calc(100% + 10px);
	left: 50%;
	z-index: 50;
	width: min(420px, 80vw);
	padding: var(--gt-space-16);
	border: 1px solid var(--gt-border);
	border-radius: var(--gt-radius);
	background: var(--gt-white);
	box-shadow: var(--gt-shadow-soft);
	font-size: var(--gt-fs-micro);
	font-weight: var(--gt-weight-regular);
	line-height: 1.55;
	text-align: left;
	color: var(--gt-body);
	transform: translateX(-50%) translateY(-4px);
	opacity: 0;
	visibility: hidden;
	transition: opacity var(--gt-duration) var(--gt-ease), transform var(--gt-duration) var(--gt-ease), visibility 0s linear var(--gt-duration);
}

.gt-tip:hover .gt-tip__body,
.gt-tip:focus-within .gt-tip__body {
	opacity: 1;
	visibility: visible;
	transform: translateX(-50%) translateY(0);
	transition-delay: 0s;
}

.gt-tip__body a {
	color: var(--gt-accent);
	font-weight: var(--gt-weight-semibold);
}
