.ag-site .ag-home-main {
	display: block;
	flex: 1;
	width: 100%;
	max-width: none;
	margin: 0;
	padding: 0;
}

.ag-site .ag-home-below {
	padding-block: clamp(40px, 6vw, 80px);
}

.ag-site .ag-hero-slider {
	position: relative;
	isolation: isolate;
	width: 100%;
	margin: 0;
	padding: 0;
	overflow: hidden;
	background: #e9e9ed;
}

.ag-site .ag-hero-stage {
	display: grid;
}

.ag-site .ag-hero-slide {
	position: relative;
	isolation: isolate;
	grid-area: 1 / 1;
	display: none;
	min-width: 0;
	min-height: clamp(520px, 43vw, 720px);
	margin: 0;
	padding: 0;
	border: 0;
	border-radius: 0;
	background: #35404c;
	color: #fff;
	box-shadow: none;
}

.ag-site .ag-hero-slide.is-active {
	display: flex;
}

/* JS uključuje preklapanje slajdova za fade prelaz. */
.ag-site .ag-hero-slider.is-ready .ag-hero-slide {
	display: flex;
	opacity: 0;
	visibility: hidden;
	pointer-events: none;
	transition:
		opacity 850ms ease,
		visibility 0s linear 850ms;
}

.ag-site .ag-hero-slider.is-ready .ag-hero-slide.is-active {
	z-index: 1;
	opacity: 1;
	visibility: visible;
	pointer-events: auto;
	transition:
		opacity 850ms ease,
		visibility 0s;
}

.ag-site .ag-hero-picture {
	position: absolute;
	inset: 0;
	z-index: -2;
	display: block;
}

.ag-site .ag-hero-picture img {
	display: block;
	width: 100%;
	height: 100%;
	max-width: none;
	object-fit: cover;
	object-position: center;
}

.ag-site .ag-hero-slide::before {
	content: "";
	position: absolute;
	inset: 0;
	z-index: -1;
	background: linear-gradient(
		90deg,
		rgba(0, 0, 0, 0.64),
		rgba(0, 0, 0, 0.25) 48%,
		rgba(0, 0, 0, 0.04)
	);
}

.ag-site .ag-hero-inner {
	display: flex;
	align-items: center;
	padding-block: 64px 110px;
}

.ag-site .ag-hero-copy {
	width: min(100%, 570px);
	min-width: 0;
	text-align: left;
}

.ag-site .ag-hero-label {
	margin: 0 0 18px;
	color: inherit;
	font-size: 13px;
	font-weight: 500;
	line-height: 1.4;
	letter-spacing: 0.06em;
}

.ag-site .ag-hero-copy h2 {
	max-width: 19ch;
	margin: 0 0 22px;
	color: inherit;
	font-size: clamp(34px, 3.8vw, 58px);
	font-weight: 600;
	line-height: 1.08;
	letter-spacing: -0.035em;
	overflow-wrap: normal;
	word-break: normal;
}

.ag-site .ag-hero-description {
	max-width: 42ch;
	margin: 0 0 28px;
	color: inherit;
	font-size: clamp(17px, 1.5vw, 21px);
	font-weight: 400;
	line-height: 1.5;
	white-space: pre-line;
}

.ag-site a.ag-hero-button,
.ag-site a.ag-hero-button:visited,
.ag-site a.ag-hero-button:hover,
.ag-site a.ag-hero-button:focus {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: auto;
	padding: 13px 25px;
	border: 0;
	border-radius: 999px;
	background: #0071e3;
	color: #fff;
	font-size: 16px;
	font-weight: 400;
	line-height: 1.4;
	text-decoration: none;
	white-space: nowrap;
	transform: none;
	transition: background 180ms ease;
}

.ag-site a.ag-hero-button:hover {
	background: #0065cc;
}

.ag-site a.ag-hero-button:focus-visible {
	outline: 3px solid currentColor;
	outline-offset: 5px;
}

.ag-site .ag-hero-dark-text {
	color: #1d1d1f;
}

.ag-site .ag-hero-dark-text::before {
	background: linear-gradient(
		90deg,
		rgba(255, 255, 255, 0.90),
		rgba(255, 255, 255, 0.54) 43%,
		rgba(255, 255, 255, 0.02) 76%
	);
}

.ag-site .ag-hero-dark-text a.ag-hero-button:focus-visible {
	outline-color: #1d1d1f;
}

.ag-site .ag-hero-align-center .ag-hero-inner {
	justify-content: center;
}

.ag-site .ag-hero-align-center .ag-hero-copy {
	text-align: center;
}

.ag-site .ag-hero-align-center .ag-hero-copy h2,
.ag-site .ag-hero-align-center .ag-hero-description {
	margin-inline: auto;
}

.ag-site .ag-hero-align-right .ag-hero-inner {
	justify-content: flex-end;
}

.ag-site .ag-hero-align-right .ag-hero-copy {
	text-align: right;
}

.ag-site .ag-hero-align-right .ag-hero-copy h2,
.ag-site .ag-hero-align-right .ag-hero-description {
	margin-left: auto;
}

.ag-site .ag-hero-align-right::before {
	transform: scaleX(-1);
}

.ag-site .ag-hero-align-center::before {
	background: rgba(0, 0, 0, 0.48);
}

.ag-site .ag-hero-align-center.ag-hero-dark-text::before {
	background: rgba(255, 255, 255, 0.75);
}

.ag-site .ag-hero-controls {
	position: absolute;
	z-index: 3;
	right: 16px;
	bottom: 24px;
	left: 16px;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 6px;
	width: fit-content;
	max-width: calc(100% - 32px);
	margin-inline: auto;
	padding: 5px 8px;
	border: 1px solid rgba(255, 255, 255, 0.65);
	border-radius: 999px;
	background: rgba(250, 250, 252, 0.9);
	backdrop-filter: blur(16px);
	-webkit-backdrop-filter: blur(16px);
}

.ag-site .ag-hero-controls[hidden] {
	display: none;
}

.ag-site .ag-hero-controls button,
.ag-site .ag-hero-controls button:hover,
.ag-site .ag-hero-controls button:focus {
	display: inline-flex;
	flex: 0 0 auto;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 44px;
	margin: 0;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: transparent;
	color: #414147;
	font: inherit;
	cursor: pointer;
	transform: none;
}

.ag-site .ag-hero-controls button:hover {
	background: #e8e8ed;
	color: #0071e3;
}

.ag-site .ag-hero-controls button:focus-visible {
	outline: 2px solid #0071e3;
	outline-offset: 1px;
}

.ag-site .ag-hero-controls svg {
	width: 20px;
	height: 20px;
	fill: none;
	stroke: currentColor;
	stroke-width: 1.7;
	stroke-linecap: round;
	stroke-linejoin: round;
}

.ag-site .ag-hero-dots {
	display: flex;
	align-items: center;
	min-width: 0;
	overflow-x: auto;
}

.ag-site .ag-hero-controls .ag-hero-dot {
	width: 32px;
}

.ag-site .ag-hero-dot span {
	display: block;
	width: 7px;
	height: 7px;
	border-radius: 999px;
	background: #a4a4aa;
	transition: width 200ms ease, background 200ms ease;
}

.ag-site .ag-hero-dot[aria-current="true"] span {
	width: 20px;
	background: #0071e3;
}

.ag-site .ag-hero-controls .ag-hero-play {
	width: auto;
	padding-inline: 12px;
	border-radius: 999px;
	font-size: 12px;
	white-space: nowrap;
}

@media (max-width: 600px) {
	.ag-site .ag-hero-slide {
		min-height: 580px;
	}

	.ag-site .ag-hero-inner {
		align-items: flex-start;
		padding-block: 44px 110px;
	}

	.ag-site .ag-hero-copy {
		width: 100%;
	}

	.ag-site .ag-hero-copy h2 {
		max-width: 18ch;
		font-size: clamp(32px, 8.5vw, 42px);
	}

	.ag-site .ag-hero-description {
		max-width: 34ch;
		font-size: 17px;
	}

	.ag-site .ag-hero-slide::before {
		transform: none;
		background: linear-gradient(
			180deg,
			rgba(0, 0, 0, 0.68),
			rgba(0, 0, 0, 0.4) 60%,
			rgba(0, 0, 0, 0.12)
		);
	}

	.ag-site .ag-hero-dark-text::before {
		background: linear-gradient(
			180deg,
			rgba(255, 255, 255, 0.94),
			rgba(255, 255, 255, 0.7) 60%,
			rgba(255, 255, 255, 0.12)
		);
	}
}

@media (prefers-reduced-motion: reduce) {
	.ag-site .ag-hero-slider.is-ready .ag-hero-slide,
	.ag-site .ag-hero-dot span,
	.ag-site a.ag-hero-button {
		transition: none;
	}
}
/* Kontrola ostaje dostupna tastaturom, ali nije vidljiva uz strelice. */
.ag-site .ag-hero-controls .ag-hero-play:not(:focus) {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip-path: inset(50%);
	white-space: nowrap;
	border: 0;
}