/* BRZI HIT – glavni stilovi. Shema: crna podloga, bijeli tekst, crveni naglasci. */

:root {
	color-scheme: dark;
	accent-color: #e10600; /* kvačice i izbornici preglednika u boji stranice */

	/* Podloge (od najtamnije) */
	--bg-950: #050505;      /* podnožje */
	--bg-900: #0a0a0a;      /* stranica, zaglavlje */
	--bg-850: #101010;      /* izmjenične sekcije */
	--bg-800: #161616;      /* kartice */
	--bg-700: #1f1f1f;      /* polja, nacrti, oznake */
	--line: #2a2a2a;        /* rubovi */
	--line-strong: #404040; /* rubovi polja / gumba */

	/* Tekst */
	--text: #ffffff;
	--text-soft: #d4d4d4;
	--text-muted: #a3a3a3;
	--text-dim: #8a8a8a;

	/* Crvena */
	--accent: #e10600;
	--accent-hover: #b80500;
	--accent-soft: #ff3b30;   /* crveni tekst/linkovi na crnom (dovoljan kontrast) */
	--accent-tint: rgb(225 6 0 / .12);

	--ok: #4ade80;
	--error: #ff5a52;

	--font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
	--radius: 12px;
	--radius-sm: 8px;
	--shadow: 0 1px 2px rgb(0 0 0 / .4), 0 8px 24px rgb(0 0 0 / .35);
	--gutter: clamp(16px, 4vw, 32px);
	--header-h: 88px;
}

/* --- Osnova ------------------------------------------------------------ */

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

html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
	margin: 0;
	font-family: var(--font);
	font-size: 1.0625rem;
	line-height: 1.65;
	color: var(--text);
	background: var(--bg-900);
	-webkit-font-smoothing: antialiased;
}

img, svg { max-width: 100%; height: auto; }
a { color: var(--accent-soft); text-underline-offset: .18em; }
a:hover { color: var(--text); }
h1, h2, h3 { line-height: 1.2; letter-spacing: -.01em; margin: 0 0 .5em; text-wrap: balance; }
p { margin: 0 0 1em; }
:focus-visible { outline: 3px solid var(--accent-soft); outline-offset: 2px; }
::selection { color: #fff; background: var(--accent); }

.container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 var(--gutter); }
.container--narrow { max-width: 820px; }

.sr-only {
	position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
	overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link { position: absolute; left: 16px; top: -100px; z-index: 100; padding: 10px 16px; background: var(--accent); color: #fff; border-radius: var(--radius-sm); }
.skip-link:focus { top: 12px; }

.icon { width: 1.25em; height: 1.25em; flex: none; vertical-align: -.25em; }

/* --- Gumbi --------------------------------------------------------------- */

.btn {
	display: inline-flex; align-items: center; justify-content: center; gap: .5em;
	min-height: 48px; padding: .7em 1.4em;
	font: inherit; font-weight: 700; font-size: 1rem; line-height: 1.2;
	border: 2px solid transparent; border-radius: 999px;
	text-decoration: none; cursor: pointer;
	transition: background-color .15s, color .15s, border-color .15s, transform .15s;
}
.btn:active { transform: translateY(1px); }
.btn--accent { background: var(--accent); color: #fff; }
.btn--accent:hover { background: var(--accent-hover); color: #fff; }
.btn--ghost { border-color: rgb(255 255 255 / .45); color: #fff; }
.btn--ghost:hover { border-color: #fff; background: rgb(255 255 255 / .08); color: #fff; }
.btn--ghost-dark { border-color: var(--line-strong); color: var(--text); background: transparent; }
.btn--ghost-dark:hover { border-color: var(--accent); color: var(--text); }
.btn--sm { min-height: 40px; padding: .45em 1.1em; font-size: .9375rem; }
.btn--block { width: 100%; }
.btn[disabled] { opacity: .7; cursor: wait; }

.link-arrow { display: inline-flex; align-items: center; gap: .4em; font-weight: 700; text-decoration: none; white-space: nowrap; }

/* --- Zaglavlje ----------------------------------------------------------- */

.site-header {
	position: sticky; top: 0; z-index: 50;
	anchor-name: --site-header; /* sklopljeni izbornik se smješta odmah ispod */
	background: var(--bg-900);
	border-bottom: 1px solid var(--line);
}
.admin-bar .site-header { top: 32px; }
@media (max-width: 782px) { .admin-bar .site-header { top: 46px; } }

.site-header__inner { display: flex; align-items: center; gap: 24px; min-height: var(--header-h); }
/* Prirodna širina reda mora ostati mjerljiva (main.js mjeri stane li izbornik u red). */
.site-header__inner > * { flex-shrink: 0; white-space: nowrap; }
.brand { display: block; flex: none; line-height: 0; }
.brand img { width: auto; height: 76px; }

.site-nav { display: flex; align-items: center; margin-left: auto; }

/* --- Izbornik: osnovni (sklopljeni) prikaz – gumb + popover ------------------
   Isti izbornik za sve širine. Bez .is-wide (uži zasloni, ili bez JavaScripta)
   poveznice su u popoveru ispod zaglavlja. */

.menu-button {
	display: inline-flex; align-items: center; gap: 10px;
	min-height: 48px; padding: 0 16px;
	font: inherit; font-size: .975rem; font-weight: 700; color: #fff;
	background: none; border: 1px solid var(--line-strong); border-radius: 999px; cursor: pointer;
}
.menu-button:hover { border-color: #fff; }
.menu-button__bars, .menu-button__bars::before, .menu-button__bars::after {
	display: block; width: 20px; height: 2px; border-radius: 2px;
	background-color: currentColor;
	forced-color-adjust: none; /* u načinu visokog kontrasta crte inače nestanu */
	transition: background-color .2s, translate .2s, rotate .2s;
}
.menu-button__bars { position: relative; }
.menu-button__bars::before, .menu-button__bars::after { content: ""; position: absolute; left: 0; }
.menu-button__bars::before { top: -6px; }
.menu-button__bars::after { top: 6px; }
/* Otvoren izbornik: tri crte postaju X */
.site-nav:has(.site-menu:is(:popover-open, .\:popover-open)) .menu-button__bars { background-color: transparent; }
.site-nav:has(.site-menu:is(:popover-open, .\:popover-open)) .menu-button__bars::before { translate: 0 6px; rotate: 45deg; }
.site-nav:has(.site-menu:is(:popover-open, .\:popover-open)) .menu-button__bars::after { translate: 0 -6px; rotate: -45deg; }

.site-menu {
	position: fixed;
	inset: auto;
	inset-inline: 0;
	/* Preglednici bez Anchor Positioninga zadržavaju prvu vrijednost (visina zaglavlja). */
	inset-block-start: var(--header-h);
	inset-block-start: anchor(--site-header bottom);
	inline-size: auto;
	block-size: fit-content;
	max-block-size: calc(100dvh - var(--header-h));
	overflow: auto;
	margin: 0;
	padding: 16px var(--gutter) 24px;
	color: var(--text);
	background: var(--bg-900);
	border: 0;
	border-top: 1px solid var(--line);
	box-shadow: 0 16px 32px rgb(0 0 0 / .5);

	opacity: 1;
	translate: 0;
	transition: display .2s, overlay .2s, opacity .2s ease-out, translate .2s ease-out;
	transition-behavior: allow-discrete; /* odvojeno: u skraćenici bi ga stariji preglednici odbacili */
}
.admin-bar .site-menu {
	inset-block-start: calc(var(--header-h) + 46px);
	inset-block-start: anchor(--site-header bottom);
}
.site-menu:is(:popover-open, .\:popover-open) { display: flex; flex-direction: column; align-items: stretch; gap: 16px; }
.site-menu[popover]:not(:is(:popover-open, .\:popover-open)) { opacity: 0; translate: 0 -8px; }
@starting-style {
	.site-menu:is(:popover-open, .\:popover-open) { opacity: 0; translate: 0 -8px; }
}
@media (prefers-reduced-motion: reduce) {
	.site-menu { translate: none; transition-duration: .1s; }
	.site-menu[popover]:not(:is(:popover-open, .\:popover-open)) { translate: none; }
	@starting-style {
		.site-menu:is(:popover-open, .\:popover-open) { translate: none; }
	}
}

.site-nav__list { display: flex; flex-direction: column; gap: 4px; margin: 0; padding: 0; list-style: none; }
.site-nav__list a {
	display: block; padding: 12px; border-radius: var(--radius-sm);
	color: var(--text-soft); font-weight: 600; font-size: 1.0625rem; text-decoration: none;
}
.site-nav__list a:hover { color: #fff; background: rgb(255 255 255 / .06); }
/* Trenutna stranica: crta (ne samo boja), kontrast prema pozadini > 3:1 */
.site-nav__list a[aria-current="page"] { color: #fff; box-shadow: inset 3px 0 0 var(--accent); border-radius: 0; }

.lang-switch { display: flex; gap: 2px; margin: 0; padding: 0 4px; list-style: none; }
.lang-switch a {
	display: block; padding: 8px 12px; border-radius: 6px;
	color: var(--text-muted); font-size: .9375rem; font-weight: 700; letter-spacing: .04em; text-decoration: none;
}
.lang-switch a:hover { color: #fff; }
.lang-switch a[aria-current] { color: #fff; background: var(--accent); }

/* --- Izbornik u redu: kad sve stane (main.js dodaje .is-wide) --------------- */

.site-header.is-wide .menu-button { display: none; }
.site-header.is-wide .site-menu {
	position: static;
	display: flex; flex-direction: row; align-items: center; gap: 20px;
	inline-size: auto; max-inline-size: none;
	block-size: auto; max-block-size: none;
	overflow: visible;
	margin: 0; padding: 0; border: 0;
	background: transparent; box-shadow: none; color: inherit;
	opacity: 1; translate: none;
}
.site-header.is-wide .site-menu::backdrop { display: none; }
.site-header.is-wide .site-nav__list { flex-direction: row; }
.site-header.is-wide .site-nav__list a { padding: 8px 12px; font-size: .975rem; }
.site-header.is-wide .site-nav__list a[aria-current="page"] { box-shadow: inset 0 -2px 0 var(--accent); }
.site-header.is-wide .lang-switch { padding: 0; }
.site-header.is-wide .lang-switch a { padding: 6px 8px; font-size: .8125rem; }

/* Tijekom mjerenja bez animacija, inače izbornik treperi pri promjeni veličine prozora. */
.site-header.is-measuring * { transition: none !important; }

@media (max-width: 480px) {
	:root { --header-h: 72px; }
	.brand img { height: 60px; }
}

/* --- Hero ---------------------------------------------------------------- */

.hero, .page-hero {
	position: relative; overflow: hidden;
	color: #fff;
	background:
		radial-gradient(circle at 85% 20%, rgb(225 6 0 / .22), transparent 45%),
		linear-gradient(160deg, #141414 0%, var(--bg-950) 100%);
}
.hero::after, .page-hero::after {
	content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 4px;
	background: linear-gradient(90deg, var(--accent), var(--accent-soft));
}
.kicker {
	margin: 0 0 .75em;
	color: var(--accent-soft); font-size: .8125rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
}

.hero__inner {
	display: grid; gap: 40px; align-items: center;
	padding-block: clamp(56px, 9vw, 112px);
}
@media (min-width: 960px) { .hero__inner { grid-template-columns: 1.05fr 1fr; } }
.hero h1 { font-size: clamp(2rem, 4.6vw, 3.25rem); font-weight: 800; }
.hero__sub { max-width: 34em; color: var(--text-soft); font-size: clamp(1.0625rem, 1.6vw, 1.25rem); }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.hero__visual {
	padding: 24px 20px 12px;
	background: linear-gradient(180deg, rgb(255 255 255 / .06), rgb(255 255 255 / .02));
	border: 1px solid rgb(255 255 255 / .08);
	border-radius: 20px;
}
.hero__visual svg { display: block; width: 100%; height: auto; }

.page-hero .container { padding-block: clamp(40px, 6vw, 72px); }
.page-hero h1 { font-size: clamp(1.875rem, 4vw, 2.75rem); font-weight: 800; }
.page-hero__sub { max-width: 40em; margin: 0; color: var(--text-soft); font-size: 1.125rem; }

/* --- Sekcije ------------------------------------------------------------- */

.section { padding-block: clamp(48px, 7vw, 88px); }
.section--alt { background: var(--bg-850); border-block: 1px solid var(--line); }
.section__title { font-size: clamp(1.5rem, 3vw, 2.125rem); font-weight: 800; }
.section__lead { max-width: 40em; color: var(--text-muted); }
.section__head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 8px 24px; margin-bottom: 32px; }
.section__head .section__lead { margin: 0; }
.section__intro { margin: 0 auto 32px; }
.section__after { margin-top: 48px; }
.note { margin-top: 24px; color: var(--text-dim); font-size: .9375rem; }
.ramp-note { margin: 0 0 16px; color: var(--text-muted); font-size: .9375rem; }

/* Sadržaj iz WordPress uređivača */
.entry-content > :first-child { margin-top: 0; }
.entry-content h2 { margin-top: 1.6em; font-size: 1.5rem; }
.entry-content h3 { margin-top: 1.4em; font-size: 1.25rem; }
.entry-content ul, .entry-content ol { padding-left: 1.25em; }
.entry-content li + li { margin-top: .75em; }
.entry-content li::marker { color: var(--accent); }
.entry-content img { border-radius: var(--radius-sm); }
.entry-content .wp-block-gallery { margin-block: 32px; }
.entry-content .wp-block-image figcaption { color: var(--text-dim); font-size: .875rem; }

/* --- Prednosti ----------------------------------------------------------- */

.features { padding-block: 0; }
.features__grid {
	display: grid; gap: 16px;
	grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr));
	margin-top: -40px; position: relative;
}
.feature {
	padding: 24px; background: var(--bg-800);
	border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow);
}
.feature__icon {
	display: inline-flex; align-items: center; justify-content: center;
	width: 48px; height: 48px; margin-bottom: 14px;
	color: var(--accent-soft); background: var(--accent-tint); border-radius: 12px;
}
.feature__icon .icon { width: 26px; height: 26px; }
.feature__title { margin-bottom: .35em; font-size: 1.125rem; }
.feature p { margin: 0; color: var(--text-muted); font-size: .975rem; }

/* --- Kontejneri ---------------------------------------------------------- */

.bh-draw { display: block; width: 100%; height: auto; }

.badge {
	display: inline-block; padding: 3px 10px;
	font-size: .75rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase;
	border-radius: 999px;
}
.badge--standard { color: var(--text); background: var(--bg-700); box-shadow: inset 0 0 0 1px var(--line-strong); }
.badge--jumbo { color: #fff; background: var(--accent); }

.cnt-grid { display: grid; gap: 20px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); }

.cnt-card { background: var(--bg-800); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.cnt-card__title { margin: 8px 0 2px; font-size: 1.25rem; }
.cnt-card__title a { color: inherit; text-decoration: none; }
.cnt-card__title a:hover { color: var(--accent-soft); }
.cnt-card__door { margin: 0; color: var(--text-muted); font-size: .9375rem; }

.cnt-card--compact { display: flex; flex-direction: column; overflow: hidden; }
.cnt-card--compact .cnt-card__draw { padding: 20px 16px 8px; background: #f2f2f2; border-bottom: 1px solid var(--line); }
.cnt-card--compact .cnt-card__body { padding: 18px 20px 20px; }
.cnt-card__facts { display: flex; flex-wrap: wrap; gap: 6px; margin: 14px 0 0; padding: 0; list-style: none; }
.cnt-card__facts li { padding: 3px 10px; background: var(--bg-700); border-radius: 6px; font-size: .875rem; font-weight: 600; color: var(--text-soft); }

.filter { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 24px; }
.filter__btn {
	min-height: 40px; padding: 6px 18px;
	font: inherit; font-size: .9375rem; font-weight: 700;
	color: var(--text); background: transparent;
	border: 1px solid var(--line-strong); border-radius: 999px; cursor: pointer;
}
.filter__btn:hover { border-color: var(--text); }
.filter__btn[aria-pressed="true"] { color: #fff; background: var(--accent); border-color: var(--accent); }

.cnt-list { display: grid; gap: 24px; }
.cnt-card--wide { display: grid; gap: 20px 32px; padding: clamp(20px, 3vw, 32px); scroll-margin-top: calc(var(--header-h) + 16px); }
.cnt-card--wide[hidden] { display: none; }
.cnt-card--wide .cnt-card__title { font-size: 1.5rem; }
@media (min-width: 1000px) {
	.cnt-card--wide { grid-template-columns: minmax(0, 1fr) 300px; grid-template-areas: "head head" "draw aside"; }
	.cnt-card--wide .cnt-card__head { grid-area: head; }
	.cnt-card--wide .cnt-card__drawings { grid-area: draw; }
	.cnt-card--wide .cnt-card__aside { grid-area: aside; }
}

/* Bočni i stražnji pogled u istom mjerilu: stupci u omjeru širina viewBoxa (960 : 420).
   Nacrti su tehnički crteži, pa im podloga ostaje svijetla radi čitljivosti kota. */
.cnt-card__drawings { display: grid; grid-template-columns: 960fr 420fr; gap: 12px 16px; align-items: start; }
.draw { margin: 0; padding: 12px; background: #f2f2f2; border: 1px solid var(--line); border-radius: var(--radius-sm); }
.draw figcaption { margin-top: 6px; color: #525252; font-size: .8125rem; font-weight: 600; text-align: center; }
.draw--floor { grid-column: 1; }
@media (max-width: 640px) {
	.cnt-card__drawings { grid-template-columns: 1fr; }
	.draw--rear { max-width: 60%; }
}

.cnt-card__aside { display: flex; flex-direction: column; gap: 20px; }
.specs { margin: 0; }
.specs > div { display: flex; justify-content: space-between; gap: 16px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.specs > div:first-child { flex-direction: column; gap: 2px; }
.specs dt { color: var(--text-muted); font-size: .9375rem; }
.specs dd { margin: 0; font-weight: 700; text-align: right; }
.specs > div:first-child dd { font-size: 1.25rem; text-align: left; }

/* --- Vozni park ---------------------------------------------------------- */

.fleet { display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr)); }
.fleet__card { padding: clamp(24px, 3vw, 36px); background: var(--bg-800); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.fleet__card h2 { font-size: 1.375rem; }
.fleet__card p { color: var(--text-muted); }
.fleet__card--euro { display: flex; flex-wrap: wrap; align-items: center; gap: 24px; color: #fff; background: linear-gradient(150deg, #2a0302, var(--bg-800)); border: 1px solid rgb(225 6 0 / .35); }
.fleet__card--euro p { color: var(--text-soft); margin: 0; }
.fleet__card--euro > div { flex: 1 1 220px; }
.euro6 {
	display: inline-flex; flex-direction: column; align-items: center; justify-content: center;
	width: 120px; height: 120px; flex: none;
	color: #fff; background: var(--accent); border-radius: 50%;
	font-weight: 800; font-size: 1.125rem; letter-spacing: .08em; line-height: 1;
}
.euro6 strong { font-size: 3rem; letter-spacing: 0; }
.brands { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 12px; margin: 20px 0 0; padding: 0; list-style: none; }
.brands li {
	display: flex; align-items: center; justify-content: center; min-height: 72px; padding: 12px;
	font-weight: 800; font-size: 1.125rem; letter-spacing: .04em; text-align: center;
	background: var(--bg-700); border-radius: var(--radius-sm);
}

/* --- Kontakt ------------------------------------------------------------- */

.contact { display: grid; gap: 24px; align-items: start; }
@media (min-width: 1000px) { .contact { grid-template-columns: 360px minmax(0, 1fr); } }
.contact__info { display: grid; gap: 24px; }
@media (min-width: 1000px) { .contact__info { position: sticky; top: calc(var(--header-h) + 24px); } }

.card { padding: clamp(20px, 3vw, 32px); background: var(--bg-800); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.card__title { font-size: 1.375rem; }

.contact-list { display: grid; gap: 14px; margin: 0; padding: 0; list-style: none; }
.contact-list li { display: flex; gap: 12px; align-items: flex-start; }
.contact-list .icon { margin-top: .2em; color: var(--accent-soft); }
.contact-list--dark .icon { color: var(--accent-soft); }
.contact-list a { color: inherit; }

.map-embed { overflow: hidden; aspect-ratio: 4 / 3; background: var(--bg-800); border: 1px solid var(--line); border-radius: var(--radius); }
.map-embed iframe { display: block; width: 100%; height: 100%; border: 0; }
.map-embed__placeholder { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; height: 100%; padding: 24px; text-align: center; }
.map-embed__placeholder > .icon { width: 36px; height: 36px; color: var(--accent-soft); }
.map-embed__placeholder p { margin: 0; font-weight: 600; }
.map-embed__placeholder small { color: var(--text-dim); }

/* --- Forma --------------------------------------------------------------- */

.form__note { color: var(--text-muted); font-size: .9375rem; }
.form__grid { display: grid; gap: 18px 20px; grid-template-columns: 1fr; }
@media (min-width: 640px) { .form__grid { grid-template-columns: 1fr 1fr; } }
.field { min-width: 0; margin: 0; padding: 0; border: 0; }
.field--full { grid-column: 1 / -1; }
.field > label, .field > legend { display: block; margin-bottom: 6px; padding: 0; font-weight: 700; font-size: .9375rem; }
.req { color: var(--accent-soft); }

.field input[type="text"], .field input[type="email"], .field input[type="tel"], .field input[type="date"], .field textarea {
	width: 100%; min-height: 48px; padding: 11px 14px;
	font: inherit; font-size: 1rem; color: var(--text);
	background: var(--bg-700); border: 1px solid var(--line-strong); border-radius: var(--radius-sm);
	transition: border-color .15s, box-shadow .15s;
}
.field input::placeholder, .field textarea::placeholder { color: var(--text-dim); }
.field textarea { resize: vertical; min-height: 130px; }
/* Polje za poruku raste s tekstom (gdje preglednik to podržava), do 15 redaka pa se pojavi klizač. */
.field textarea { field-sizing: content; min-block-size: 5lh; max-block-size: 15lh; }
/* Fokus: bijeli rub (crveni rub znači grešku). */
.field input:focus, .field textarea:focus { outline: none; border-color: #fff; box-shadow: 0 0 0 3px rgb(255 255 255 / .2); }
.field.field--error :is(input, textarea) { border-color: var(--error); }
/* Greška se u pregledniku pokazuje tek kad korisnik napusti polje ili pokuša poslati formu (:user-invalid),
   a ne odmah pri učitavanju. :is() s rezervnom klasom drži pravilo valjanim i u starijim preglednicima. */
.field :is(input, textarea):is(:user-invalid, .user-invalid-fallback) { border-color: var(--error); }
.segmented__opt input:is(:user-invalid, .user-invalid-fallback) + span { border-color: var(--error); }
.field__error { display: none; margin: 6px 0 0; color: var(--error); font-size: .875rem; font-weight: 600; }
.field--error .field__error { display: block; }
.field:has(:user-invalid) .field__error { display: block; }
.field:has(.user-invalid-fallback) .field__error { display: block; }

.segmented { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.segmented__opt, .cnt-pick__opt { position: relative; cursor: pointer; }
.segmented__opt input, .cnt-pick__opt input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.segmented__opt span {
	display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 52px; padding: 10px;
	font-weight: 700; border: 1px solid var(--line-strong); border-radius: var(--radius-sm); background: var(--bg-700);
}
.segmented__opt input:checked + span { color: #fff; border-color: var(--accent); background: var(--accent-tint); box-shadow: inset 0 0 0 1px var(--accent); }
.segmented__opt input:focus-visible + span, .cnt-pick__opt input:focus-visible + .cnt-pick__body { outline: 3px solid var(--accent-soft); outline-offset: 2px; }

.cnt-pick { display: grid; gap: 10px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 190px), 1fr)); }
@media (max-width: 480px) { .cnt-pick { grid-template-columns: 1fr 1fr; } }
.cnt-pick__body {
	display: flex; flex-direction: column; gap: 2px; height: 100%; padding: 12px;
	background: var(--bg-700); border: 1px solid var(--line-strong); border-radius: var(--radius-sm);
	transition: border-color .15s, background-color .15s;
}
.cnt-pick__body strong { font-size: .9375rem; line-height: 1.3; }
.cnt-pick__body small { color: var(--text-muted); font-size: .8125rem; line-height: 1.4; }
.cnt-pick__draw { display: block; margin-bottom: 8px; padding: 6px; background: #f2f2f2; border-radius: 6px; }
.cnt-pick__opt:hover .cnt-pick__body { border-color: var(--text-dim); }
.cnt-pick__opt input:checked + .cnt-pick__body { border-color: var(--accent); background: var(--accent-tint); box-shadow: inset 0 0 0 1px var(--accent); }
.cnt-pick__opt--none .cnt-pick__body { justify-content: center; text-align: center; min-height: 100px; }

.field--check label { display: flex; gap: 12px; align-items: flex-start; font-weight: 400; font-size: .9375rem; cursor: pointer; }
.field--check input { flex: none; width: 20px; height: 20px; margin: 2px 0 0; accent-color: var(--accent); }
.form__submit { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; margin-top: 24px; }
.form__recaptcha { color: var(--text-dim); font-size: .75rem; }
.grecaptcha-badge { visibility: hidden; }

.hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }

.alert { display: flex; gap: 12px; align-items: flex-start; margin-bottom: 24px; padding: 14px 16px; border-radius: var(--radius-sm); font-weight: 600; }
.alert p { margin: 0; }
.alert .icon { margin-top: .15em; }
.alert--ok { color: var(--ok); background: rgb(74 222 128 / .08); border: 1px solid rgb(74 222 128 / .35); }
.alert--error { color: var(--error); background: rgb(225 6 0 / .1); border: 1px solid rgb(225 6 0 / .45); }

/* --- Poziv na akciju ----------------------------------------------------- */

.cta-band { color: #fff; background: linear-gradient(120deg, var(--accent-hover), #3a0201 70%, var(--bg-900)); }
.cta-band__inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px 32px; padding-block: clamp(36px, 5vw, 56px); }
.cta-band h2 { margin-bottom: .25em; font-size: clamp(1.375rem, 2.6vw, 1.875rem); }
.cta-band p { margin: 0; color: rgb(255 255 255 / .85); }
.cta-band .btn--accent { background: #fff; color: var(--accent-hover); }
.cta-band .btn--accent:hover { background: var(--bg-900); color: #fff; }

/* --- Podnožje ------------------------------------------------------------ */

.site-footer { color: var(--text-muted); background: var(--bg-950); border-top: 1px solid var(--line); font-size: .9375rem; }
.site-footer a { color: var(--text-soft); text-decoration: none; }
.site-footer a:hover { color: var(--accent-soft); text-decoration: underline; }
.site-footer__grid { display: grid; gap: 32px; padding-block: 56px 40px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); }
.site-footer__brand img { width: 200px; height: auto; margin-bottom: 12px; }
.site-footer__title { margin-bottom: 14px; color: #fff; font-size: .8125rem; letter-spacing: .14em; text-transform: uppercase; }
.site-footer__links { display: grid; gap: 8px; margin: 0; padding: 0; list-style: none; }
.site-footer__bottom { border-top: 1px solid var(--line); }
.site-footer__bottom-inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; padding-block: 20px; font-size: .875rem; }
.site-footer__bottom p { margin: 0; }

/* --- Traka za kolačiće --------------------------------------------------- */

.cookie-banner {
	position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 60;
	display: flex; flex-wrap: wrap; align-items: center; gap: 12px 24px;
	max-width: 760px; margin: 0 auto; padding: 18px 20px;
	color: var(--text-soft); background: var(--bg-800);
	border: 1px solid var(--line-strong); border-radius: var(--radius); box-shadow: 0 16px 40px rgb(0 0 0 / .6);
	font-size: .9375rem;
}
.cookie-banner[hidden] { display: none; }
.cookie-banner p { flex: 1 1 320px; margin: 0; }
.cookie-banner a { color: var(--accent-soft); }
.cookie-banner__actions { display: flex; flex-wrap: wrap; gap: 8px; }
