/* JemraByte Studios: zajednički stilovi
   Redoslijed: fontovi, varijable, osnova, zaglavlje, sadržaj, obrasci, podnožje, pristupačnost */

/* ---------- Fontovi (s naše domene) ---------- */
@font-face { font-family: "Space Grotesk"; font-weight: 500 700; font-display: swap; src: url("../fonts/spacegrotesk-latin.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Space Grotesk"; font-weight: 500 700; font-display: swap; src: url("../fonts/spacegrotesk-latin-ext.woff2") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Atkinson Hyperlegible"; font-weight: 400; font-display: swap; src: url("../fonts/atkinson-400-latin.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Atkinson Hyperlegible"; font-weight: 400; font-display: swap; src: url("../fonts/atkinson-400-latin-ext.woff2") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Atkinson Hyperlegible"; font-weight: 700; font-display: swap; src: url("../fonts/atkinson-700-latin.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Atkinson Hyperlegible"; font-weight: 700; font-display: swap; src: url("../fonts/atkinson-700-latin-ext.woff2") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }

/* ---------- Varijable ---------- */
:root {
	color-scheme: dark;
	--black: #0b0c0f;
	--yellow: #ffd21f;
	--yellow-light: #ffe066;
	--paper: #f7f7f4;

	/* tamna podloga je zadana, svijetla vrijedi unutar .doc */
	--bg: var(--black);
	--sheet: #16171d;
	--text: #f4f3ee;
	--muted: #bdbec8;
	--line: #30323c;
	--field-line: #85879a;
	--link-line: var(--yellow);
	--mark: var(--yellow);

	--font-head: "Space Grotesk", "Segoe UI", system-ui, sans-serif;
	--font-body: "Atkinson Hyperlegible", "Segoe UI", system-ui, sans-serif;
	--gutter: max(1.25rem, calc((100% - 76rem) / 2));
	--gap: clamp(3.5rem, 8vw, 7rem);
	--radius: 6px;
	--ease: cubic-bezier(.16, 1, .3, 1);

	--i-web: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='4' width='18' height='16' rx='2'/%3E%3Cpath d='M3 9h18M8 14l-2 2 2 2M16 14l2 2-2 2'/%3E%3C/svg%3E");
	--i-pin: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 21s-7-6.2-7-11a7 7 0 0 1 14 0c0 4.8-7 11-7 11z'/%3E%3Ccircle cx='12' cy='10' r='2.5'/%3E%3C/svg%3E");
	--i-qr: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='3' width='7' height='7' rx='1'/%3E%3Crect x='14' y='3' width='7' height='7' rx='1'/%3E%3Crect x='3' y='14' width='7' height='7' rx='1'/%3E%3Cpath d='M14 14h3v3M21 14v7h-7'/%3E%3C/svg%3E");
	--i-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='4' width='18' height='16' rx='2'/%3E%3Ccircle cx='9' cy='10' r='2'/%3E%3Cpath d='M21 16l-5-5-9 9'/%3E%3C/svg%3E");
	--i-user: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='8' r='4'/%3E%3Cpath d='M4 21a8 8 0 0 1 16 0'/%3E%3C/svg%3E");
	--i-doc: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M14 3H6a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V9z'/%3E%3Cpath d='M14 3v6h6M8 13h8M8 17h5'/%3E%3C/svg%3E");
	--i-send: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M22 2L11 13M22 2l-7 20-4-9-9-4z'/%3E%3C/svg%3E");
	--i-phone: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 4h4l2 5-2.5 1.5a11 11 0 0 0 5 5L15 13l5 2v4a2 2 0 0 1-2 2A16 16 0 0 1 3 6a2 2 0 0 1 2-2'/%3E%3C/svg%3E");
	--i-menu: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='M4 7h16M4 12h16M4 17h16'/%3E%3C/svg%3E");
	--i-x: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='M6 6l12 12M18 6L6 18'/%3E%3C/svg%3E");
	--i-arrow: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12h14M13 6l6 6-6 6'/%3E%3C/svg%3E");
	--i-search: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath d='M20 20l-4-4'/%3E%3C/svg%3E");
	--i-plus: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='M12 5v14M5 12h14'/%3E%3C/svg%3E");
}

@view-transition { navigation: auto; }

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

html {
	-webkit-text-size-adjust: 100%;
	text-size-adjust: 100%;
	scroll-behavior: smooth;
	scroll-padding-top: 6rem;
	scrollbar-color: var(--field-line) var(--black);
	background: var(--black);
}

body {
	margin: 0;
	background: var(--bg);
	color: var(--text);
	caret-color: var(--yellow);
	font-family: var(--font-body);
	font-size: 1.0625rem;
	line-height: 1.6;
	overflow-wrap: break-word;
}

::selection { background: var(--yellow); color: var(--black); }

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

h1, h2, h3, h4 {
	margin: 0;
	font-family: var(--font-head);
	font-weight: 700;
	line-height: 1.12;
	letter-spacing: -.02em;
	text-wrap: balance;
}
h1 { font-size: clamp(2.5rem, 7.2vw, 5.25rem); line-height: 1.02; letter-spacing: -.035em; }
h2 { font-size: clamp(1.75rem, 3.6vw, 2.75rem); }
h3 { font-size: clamp(1.25rem, 2vw, 1.5rem); }
h4 { font-size: 1.125rem; letter-spacing: -.01em; }

p { margin: 0; max-width: 68ch; }
ul, ol { margin: 0; padding: 0; list-style: none; }
address { font-style: normal; }
small { font-size: .9375rem; }

a {
	color: inherit;
	text-decoration: underline;
	text-decoration-color: var(--link-line);
	text-decoration-thickness: 2px;
	text-underline-offset: .2em;
	transition: color .15s, text-decoration-color .15s, background-color .15s;
}
a:hover { text-decoration-thickness: 3px; }

/* Oznaka u popisima je kvadratić, "byte" iz našeg logotipa */
main ul:not(.toc ul, #dalje ul) > li {
	position: relative;
	max-width: 68ch;
	padding-left: 1.5rem;
}
main ul:not(.toc ul, #dalje ul) > li::before {
	content: "";
	position: absolute;
	left: 0;
	top: .55em;
	width: .55rem;
	height: .55rem;
	border-radius: 1px;
	background: var(--mark);
}
main ul:not(.toc ul, #dalje ul) > li + li { margin-top: .55rem; }

/* Gumbi */
.btn,
#cijene article > p:last-child a,
#kontakt p a,
button[type="submit"] {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: .6rem;
	min-height: 3.25rem;
	padding: .7rem 1.5rem;
	border: 2px solid var(--yellow);
	border-radius: var(--radius);
	background: var(--yellow);
	color: var(--black);
	font-family: var(--font-head);
	font-size: 1.0625rem;
	font-weight: 700;
	line-height: 1.2;
	text-decoration: none;
	cursor: pointer;
	transition: background-color .15s, border-color .15s, color .15s;
}
.btn:hover,
#cijene article > p:last-child a:hover,
button[type="submit"]:hover { background: var(--yellow-light); border-color: var(--yellow-light); }

.btn-alt { background: transparent; color: var(--text); }
.btn-alt:hover { background: var(--yellow); border-color: var(--yellow); color: var(--black); }

/* ---------- Zaglavlje ---------- */
.skip {
	position: absolute;
	z-index: 30;
	left: 1rem;
	top: -5rem;
	padding: .75rem 1rem;
	border-radius: var(--radius);
	background: var(--black);
	color: var(--text);
}
.skip:focus { top: .5rem; }

header {
	position: sticky;
	z-index: 20;
	top: -2.75rem;
	background: var(--black);
	view-transition-name: site-header;
}

.topbar {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: .75rem;
	max-width: none;
	min-height: 2.75rem;
	padding-inline: var(--gutter);
	background: var(--yellow);
	color: var(--black);
	font-size: 1rem;
}
.topbar a {
	display: inline-flex;
	align-items: center;
	min-height: 2.75rem;
	font-weight: 700;
	text-decoration-color: currentColor;
}

.topbar p { max-width: none; margin: 0; white-space: nowrap; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.flag { flex: none; width: 1.5rem; height: 1rem; border-radius: 2px; box-shadow: 0 0 0 1px rgb(0 0 0 / .35); object-fit: cover; }
.lang-menu { position: relative; flex: none; }
.lang-menu summary { display: inline-flex; align-items: center; gap: .45rem; min-width: 2.75rem; min-height: 2.75rem; font-weight: 700; cursor: pointer; list-style: none; }
.lang-menu summary::-webkit-details-marker { display: none; }
.lang-menu summary::after { content: ""; width: .5rem; height: .5rem; margin: -.2rem .15rem 0; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg); transition: transform .2s var(--ease); }
.lang-menu[open] summary::after { margin-top: .25rem; transform: rotate(225deg); }
.lang-menu ul { position: absolute; z-index: 30; top: 100%; left: 0; min-width: 11rem; padding: .3rem; border: 1px solid var(--field-line); border-radius: var(--radius); background: var(--black); box-shadow: 0 .75rem 2rem rgb(0 0 0 / .45); }
.lang-menu li > * { display: flex; align-items: center; gap: .6rem; min-height: 2.75rem; padding: .35rem .6rem; border-radius: 4px; color: var(--text); font-weight: 400; text-decoration: none; }
.lang-menu a:hover { background: var(--sheet); color: var(--yellow); }
.lang-menu [aria-current] { color: var(--yellow); font-weight: 700; }
.lang-menu [aria-current]::after { content: "✓" / ""; margin-left: auto; }
.topbar .lang-menu ul :focus-visible { outline-color: var(--yellow); outline-offset: -3px; }
@media (max-width: 25.99rem) { .lang-current { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); } }

.bar {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
	min-height: 4.25rem;
	padding-inline: var(--gutter);
	border-bottom: 1px solid var(--line);
}

.brand {
	display: inline-flex;
	align-items: center;
	gap: .65rem;
	min-height: 2.75rem;
	font-family: var(--font-head);
	font-size: 1.125rem;
	font-weight: 700;
	letter-spacing: -.02em;
	text-decoration: none;
}
.brand img { flex: none; width: 2.25rem; height: 2.25rem; }
@media (min-width: 22rem) { .brand { white-space: nowrap; font-size: 1.0625rem; gap: .5rem; } .bar { gap: .75rem; } }

.nav-main { display: none; }

.nav-mobile summary {
	display: inline-flex;
	align-items: center;
	gap: .5rem;
	min-height: 2.75rem;
	padding: .4rem .85rem;
	border: 1px solid var(--field-line);
	border-radius: var(--radius);
	font-family: var(--font-head);
	font-weight: 700;
	cursor: pointer;
	list-style: none;
}
.nav-mobile summary::-webkit-details-marker { display: none; }
.nav-mobile summary::before,
.nav-mobile a::before,
.nav-main a::before {
	content: "";
	flex: none;
	width: 1.25rem;
	height: 1.25rem;
	background: currentColor;
	-webkit-mask: var(--icon, var(--i-arrow)) center / contain no-repeat;
	mask: var(--icon, var(--i-arrow)) center / contain no-repeat;
}
.nav-mobile summary::before { --icon: var(--i-menu); }
.nav-mobile[open] summary::before { --icon: var(--i-x); }

.nav-mobile nav {
	position: absolute;
	left: 0;
	right: 0;
	top: 100%;
	max-height: calc(100dvh - 4.25rem);
	overflow-y: auto;
	padding: .5rem var(--gutter) 1.25rem;
	border-bottom: 1px solid var(--line);
	background: var(--black);
}
.nav-mobile a {
	display: flex;
	align-items: center;
	gap: .85rem;
	min-height: 3.25rem;
	border-bottom: 1px solid var(--line);
	font-family: var(--font-head);
	font-size: 1.125rem;
	font-weight: 500;
	text-decoration: none;
}
.nav-mobile li:last-child a { border-bottom: 0; }

a[href$="websites/"] { --icon: var(--i-web); }
a[href$="seo/"] { --icon: var(--i-pin); }
a[href$="menus/"] { --icon: var(--i-qr); }
a[href$="examples/"] { --icon: var(--i-image); }
a[href$="about/"] { --icon: var(--i-user); }
a[href$="blog/"] { --icon: var(--i-doc); }
a[href$="contact/"] { --icon: var(--i-send); }

.nav-mobile a[aria-current="page"],
.nav-main a[aria-current="page"] { color: var(--yellow); }

@media (min-width: 62rem) {
	.nav-mobile { display: none; }
	.nav-main { display: block; }
	.nav-main ul { display: flex; align-items: center; gap: clamp(.1rem, .6vw, .6rem); }
	.nav-main a {
		position: relative;
		display: inline-flex;
		align-items: center;
		min-height: 2.75rem;
		padding-inline: .6rem;
		font-family: var(--font-head);
		font-weight: 500;
		text-decoration: none;
	}
	.nav-main a::before { display: none; }
	.nav-main a:not([href$="contact/"])::after {
		content: "";
		position: absolute;
		left: .6rem;
		right: .6rem;
		bottom: .35rem;
		height: 2px;
		background: var(--yellow);
		transform: scaleX(0);
		transform-origin: left;
		transition: transform .3s var(--ease);
	}
	.nav-main a:hover::after,
	.nav-main a[aria-current="page"]::after { transform: scaleX(1); }
	.nav-main a[href$="contact/"] {
		margin-left: .5rem;
		padding-inline: 1.1rem;
		border-radius: var(--radius);
		background: var(--yellow);
		color: var(--black);
		font-weight: 700;
	}
	.nav-main a[href$="contact/"]:hover { background: var(--yellow-light); }
}

/* ---------- Glava stranice ---------- */
main > * { padding-inline: var(--gutter); }

.page-head {
	display: grid;
	gap: clamp(2.5rem, 6vw, 4.5rem);
	padding-block: clamp(2.25rem, 6vw, 5rem) clamp(3rem, 7vw, 6rem);
}
.page-intro > * + * { margin-top: 1.25rem; }
.page-intro h1 + p {
	max-width: 54ch;
	color: var(--muted);
	font-size: clamp(1.125rem, 1.8vw, 1.3125rem);
	line-height: 1.5;
}
.crumbs ol { display: flex; flex-wrap: wrap; align-items: center; gap: 0 .5rem; color: var(--muted); font-size: 1rem; }
.crumbs li { display: inline-flex; align-items: center; gap: .5rem; min-height: 2.75rem; }
.crumbs li + li::before { content: "/"; color: var(--field-line); }
.crumbs a { display: inline-flex; align-items: center; min-height: 2.75rem; }
.crumbs span { color: var(--text); }
.actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 2rem !important; }

/* Laptop i mobitel na početnoj */
.devices { position: relative; padding-right: 13%; padding-bottom: 8%; }
.laptop { padding: 2.2% 2.2% 3%; border: 1px solid var(--field-line); border-radius: 12px 12px 0 0; background: var(--sheet); }
.laptop img { width: 100%; border-radius: 3px; }
.laptop::after {
	content: "";
	position: absolute;
	left: -2.5%;
	right: 10.5%;
	bottom: calc(8% - .6rem);
	height: .6rem;
	border-radius: 0 0 10px 10px;
	background: var(--field-line);
}
.phone {
	position: absolute;
	right: 0;
	bottom: 0;
	width: 25%;
	padding: 1.2%;
	border: 1px solid var(--field-line);
	border-radius: 16px;
	background: var(--black);
}
.phone img { width: 100%; border-radius: 10px; }

.portrait { width: min(100%, 17.5rem); border-radius: var(--radius); }

@media (min-width: 62rem) {
	.page-head.has-media { grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); align-items: center; }
	.page-about .page-head.has-media { grid-template-columns: minmax(0, 1fr) auto; }
}

/* Sadržaj stranice */
.toc { padding-block: 1.25rem; border-block: 1px solid var(--line); }
.toc h2 { margin-bottom: .35rem; color: var(--muted); font-family: var(--font-body); font-size: 1rem; font-weight: 400; letter-spacing: 0; }
.toc ul { display: flex; flex-wrap: wrap; gap: .1rem 1.5rem; }
.toc a { display: inline-flex; align-items: center; min-height: 2.75rem; font-weight: 700; }

/* ---------- Odjeljci ---------- */
main > section { padding-block: var(--gap); }
main > section + section { border-top: 1px solid var(--line); }
main > section > * + * { margin-top: 1.25rem; }
main > section > h2 + * { margin-top: 1.75rem; }
main > section > h3 { margin-top: 3rem; }
main > section > h4 { margin-top: 2.25rem; }

@media (min-width: 62rem) {
	body:not(.page-examples) main > section:not(#dalje, #kontakt, #primjeri, #cijene) {
		display: grid;
		grid-template-columns: minmax(0, 1fr) minmax(0, 2fr);
		column-gap: clamp(2.5rem, 6vw, 6rem);
	}
	body:not(.page-examples) main > section:not(#dalje, #kontakt, #primjeri, #cijene) > h2 { grid-column: 1; grid-row: 1 / span 30; align-self: start; position: sticky; top: 6rem; }
	body:not(.page-examples) main > section:not(#dalje, #kontakt, #primjeri, #cijene) > :not(h2) { grid-column: 2; }
	body:not(.page-examples) main > section:not(#dalje, #kontakt, #primjeri, #cijene) > h2 + * { margin-top: 0; }
}

/* Redovi s tekstom */
main > section > article:not(:has(img)) { padding-block: 1.5rem; border-top: 1px solid var(--line); }
main > section > article + article { margin-top: 0; }
article > * + * { margin-top: .75rem; }
article > ul { margin-top: 1.25rem; }

/* Tri izbora na početnoj */
#izbor article {
	position: relative;
	display: grid;
	grid-template-columns: auto minmax(0, 1fr) auto;
	column-gap: 1rem;
	align-items: center;
	padding-block: 1.75rem;
	transition: background-color .2s;
}
#izbor article:last-of-type { border-bottom: 1px solid var(--line); }
#izbor article::before,
#izbor article::after {
	content: "";
	width: 2rem;
	height: 2rem;
	background: var(--yellow);
	-webkit-mask: var(--icon, var(--i-arrow)) center / contain no-repeat;
	mask: var(--icon, var(--i-arrow)) center / contain no-repeat;
}
#izbor article::before { grid-column: 1; grid-row: 1 / span 3; align-self: start; }
#izbor article::after { --icon: var(--i-arrow); grid-column: 3; grid-row: 1 / span 3; transition: transform .35s var(--ease); }
#izbor article:has(a[href$="websites/"]) { --icon: var(--i-web); }
#izbor article:has(a[href$="seo/"]) { --icon: var(--i-pin); }
#izbor article:has(a[href$="menus/"]) { --icon: var(--i-qr); }
#izbor article > * { grid-column: 2; }
#izbor h3 { font-size: clamp(1.5rem, 3vw, 2.25rem); }
#izbor p { color: var(--muted); }
#izbor p:last-child a { color: var(--text); font-weight: 700; }
#izbor p:last-child a::before { content: ""; position: absolute; inset: 0; }
#izbor article:hover::after { transform: translateX(.4rem); }
#izbor article:focus-within { outline: 3px solid var(--yellow); outline-offset: 2px; }
#izbor article a:focus-visible { outline: 0; }

/* Primjeri */
#primjeri, .page-examples main > section:not(#dalje) {
	display: grid;
	grid-template-columns: repeat(12, minmax(0, 1fr));
	column-gap: clamp(1rem, 2.5vw, 2rem);
	align-items: start;
}
#primjeri > :not(article), .page-examples main > section:not(#dalje) > :not(article) { grid-column: 1 / -1; }
#primjeri > article, .page-examples main > section > article { position: relative; grid-column: span 12; margin-top: 2rem; }
#primjeri article img, .page-examples article img {
	width: 100%;
	aspect-ratio: 16 / 10;
	object-fit: cover;
	object-position: top;
	border: 1px solid var(--line);
	border-radius: var(--radius);
	transition: border-color .2s;
}
#primjeri article:hover img, .page-examples article:hover img { border-color: var(--yellow); }
#primjeri article h3, .page-examples article h3 { grid-row: 2; }
#primjeri article, .page-examples main > section > article { display: flex; flex-direction: column; }
#primjeri article img, .page-examples article img { order: -1; margin-bottom: .5rem; }
#primjeri article p, .page-examples article p { color: var(--muted); }
#primjeri article p:last-child a, .page-examples article p:last-child a { color: var(--text); font-weight: 700; }
#primjeri article p:last-child a::before, .page-examples article p:last-child a::before { content: ""; position: absolute; inset: 0; }
#primjeri article:focus-within, .page-examples article:focus-within { outline: 3px solid var(--yellow); outline-offset: 6px; border-radius: var(--radius); }
#primjeri article a:focus-visible, .page-examples article a:focus-visible { outline: 0; }

@media (min-width: 40rem) {
	#primjeri > article, .page-examples main > section > article { grid-column: span 6; }
}
@media (min-width: 62rem) {
	#primjeri > article, .page-examples #jelovnici > article, .page-examples #vodic > article { grid-column: span 4; }
}

/* Paketi */
#cijene {
	display: grid;
	grid-template-columns: repeat(12, minmax(0, 1fr));
	column-gap: clamp(1rem, 2vw, 1.5rem);
}
#cijene > * { grid-column: 1 / -1; }
#cijene > article {
	display: flex;
	flex-direction: column;
	margin-top: 1.5rem;
	padding: clamp(1.5rem, 3vw, 2.25rem);
	border: 1px solid var(--field-line);
	border-radius: var(--radius);
	background: var(--sheet);
}
#cijene > article h3 { font-size: clamp(1.75rem, 3vw, 2.25rem); }
#cijene > article > p:last-child { margin-top: auto; padding-top: 1.75rem; }
#cijene > article > p:last-child a { width: 100%; text-align: center; }
#cijene > article:nth-of-type(2) { --text: var(--black); --muted: #2c2c2c; --mark: var(--black); --link-line: var(--black); border-color: var(--yellow); background: var(--yellow); color: var(--black); }
#cijene > article:nth-of-type(2) > p:last-child a { border-color: var(--black); background: var(--black); color: var(--yellow); }
#cijene > article:nth-of-type(2) > p:last-child a:hover { background: #2a2b31; border-color: #2a2b31; }
@media (min-width: 62rem) { #cijene > article { grid-column: span 4; } }

/* Koraci */
ol:not(.crumbs ol) { counter-reset: korak; }
main section ol > li { position: relative; padding: 1.5rem 0 1.5rem 3.75rem; border-top: 1px solid var(--line); counter-increment: korak; }
main section ol > li::before {
	content: counter(korak);
	position: absolute;
	left: 0;
	top: 1.2rem;
	color: var(--mark);
	font-family: var(--font-head);
	font-size: 2.25rem;
	font-weight: 700;
	line-height: 1.1;
}
main section ol > li > * + * { margin-top: .4rem; }

/* Česta pitanja */
details:not(.nav-mobile, .lang-menu) { border-top: 1px solid var(--line); }
details:not(.nav-mobile, .lang-menu) + details { margin-top: 0 !important; }
details:not(.nav-mobile, .lang-menu):last-of-type { border-bottom: 1px solid var(--line); }
details:not(.nav-mobile, .lang-menu) summary {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
	min-height: 3.75rem;
	padding-block: .85rem;
	font-family: var(--font-head);
	font-size: 1.1875rem;
	font-weight: 700;
	line-height: 1.25;
	cursor: pointer;
	list-style: none;
}
details:not(.nav-mobile, .lang-menu) summary::-webkit-details-marker { display: none; }
details:not(.nav-mobile, .lang-menu) summary::after {
	content: "";
	flex: none;
	width: 1.5rem;
	height: 1.5rem;
	background: currentColor;
	-webkit-mask: var(--i-plus) center / contain no-repeat;
	mask: var(--i-plus) center / contain no-repeat;
	transition: transform .3s var(--ease);
}
details[open]:not(.nav-mobile, .lang-menu) summary::after { transform: rotate(45deg); }
details:not(.nav-mobile, .lang-menu) p { padding-bottom: 1.25rem; }

/* Žuti završetak stranice */
#dalje, #kontakt {
	--text: var(--black);
	--muted: #2c2c2c;
	--link-line: var(--black);
	background: var(--yellow);
	color: var(--black);
	border-top: 0 !important;
}
#dalje h2, #kontakt h2 { font-size: clamp(2.25rem, 5.5vw, 4.25rem); letter-spacing: -.03em; }
#dalje ul { border-bottom: 2px solid var(--black); }
#dalje li { border-top: 2px solid var(--black); }
#dalje a {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
	min-height: 4.25rem;
	padding-block: .75rem;
	font-family: var(--font-head);
	font-size: clamp(1.125rem, 2.2vw, 1.625rem);
	font-weight: 700;
	line-height: 1.2;
	text-decoration: none;
}
#dalje a::after {
	content: "";
	flex: none;
	width: 1.75rem;
	height: 1.75rem;
	background: currentColor;
	-webkit-mask: var(--i-arrow) center / contain no-repeat;
	mask: var(--i-arrow) center / contain no-repeat;
	transition: transform .35s var(--ease);
}
#dalje a:hover { text-decoration: underline; text-decoration-thickness: 3px; }
#dalje a:hover::after { transform: translateX(.5rem); }
#kontakt p { font-size: 1.1875rem; }
#kontakt p a { border-color: var(--black); background: var(--black); color: var(--yellow); }
#kontakt p a:hover { border-color: #2a2b31; background: #2a2b31; }

/* ---------- Svijetla podloga za čitanje ---------- */
.doc {
	--bg: var(--paper);
	--sheet: #ffffff;
	--text: #15161a;
	--muted: #4a4c57;
	--line: #d3d3cd;
	--field-line: #6d6f7c;
	--link-line: #15161a;
	--mark: #15161a;
	display: grid;
	gap: 2.5rem;
	padding-block: clamp(2.5rem, 6vw, 5rem) var(--gap);
	background: var(--bg);
	color: var(--text);
	color-scheme: light;
	caret-color: var(--text);
}
.doc :focus-visible { outline-color: #15161a; }
.doc .toc { align-self: start; padding-block: 0 1.25rem; border-top: 0; }
.doc .toc ul { display: block; }
.doc .toc a { font-weight: 400; line-height: 1.3; padding-block: .3rem; }

.doc-text { min-width: 0; max-width: 46rem; }
.doc-text > * + * { margin-top: 1.1rem; }
.doc-text h2 { margin-top: 3.25rem; font-size: clamp(1.625rem, 3vw, 2.125rem); }
.doc-text h3 { margin-top: 2rem; }
.doc-text > h2:first-child, .doc-text section:first-child > h2 { margin-top: 0; }
.doc-text section > * + * { margin-top: 1.1rem; }
.doc-text article { padding-block: 1.25rem; border-top: 1px solid var(--line); }
.doc-text article h3 { margin-top: 0; }
.doc-text section ol > li { padding-left: 3.25rem; }
.doc-text > ol { counter-reset: korak; }
.doc-text > ol > li { position: relative; padding-left: 2.5rem; counter-increment: korak; }
.doc-text > ol > li + li { margin-top: .75rem; }
.doc-text > ol > li::before { content: counter(korak) "."; position: absolute; left: 0; font-family: var(--font-head); font-weight: 700; }
.doc-text .btn { border-color: #15161a; }
.doc-text p:has(> .btn) { display: inline-block; margin-right: .75rem; }
.doc-text q { font-style: italic; }
.doc-text blockquote { margin: 1.1rem 0 0; padding: .9rem 1.1rem; border-left: 4px solid var(--yellow); border-radius: 0 var(--radius) var(--radius) 0; background: var(--sheet); }
.doc-text details + details { margin-top: 0; }

/* Tablice uvijek stanu cijele: na užem zaslonu svaki red postaje kartica */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: var(--sheet); }
table { width: 100%; border-collapse: collapse; font-size: 1rem; line-height: 1.45; }
caption { padding: .9rem .75rem; font-family: var(--font-head); font-weight: 700; text-align: left; }
th, td { padding: .75rem; border-top: 1px solid var(--line); text-align: left; vertical-align: top; }
thead th { background: #ecece8; font-family: var(--font-head); }
@media (max-width: 51.99rem) {
	.table-wrap table, .table-wrap caption, .table-wrap tbody, .table-wrap tr, .table-wrap th, .table-wrap td { display: block; }
	.table-wrap thead { display: none; }
	.table-wrap caption { padding-inline: 1rem; }
	.table-wrap tr { padding-block: .5rem; border-top: 1px solid var(--line); }
	.table-wrap th, .table-wrap td { padding: .4rem 1rem; border-top: 0; }
	.table-wrap tbody th { font-family: var(--font-head); }
	.table-wrap td[data-label]::before { content: attr(data-label); display: block; font-family: var(--font-head); font-weight: 700; }
}

@media (min-width: 70rem) {
	.doc { grid-template-columns: 15rem minmax(0, 46rem); gap: clamp(3rem, 6vw, 6rem); }
	.doc .toc { position: sticky; top: 6rem; max-height: calc(100dvh - 7rem); overflow-y: auto; padding-bottom: 0; border-bottom: 0; }
	.doc:not(:has(.toc)) { grid-template-columns: minmax(0, 46rem); }
}

/* ---------- Obrazac ---------- */
form { display: grid; gap: 1.25rem; max-width: 40rem; }
form label { display: block; margin-bottom: .35rem; font-weight: 700; }
input:not([type="hidden"]), select, textarea {
	display: block;
	width: 100%;
	min-height: 3.25rem;
	padding: .7rem .85rem;
	border: 1.5px solid var(--field-line);
	border-radius: var(--radius);
	background: var(--sheet);
	color: var(--text);
	font: inherit;
	font-size: 1.0625rem;
}
textarea { min-height: 10rem; resize: vertical; }
input:hover, select:hover, textarea:hover { border-color: var(--text); }
input:user-invalid, textarea:user-invalid { border-color: #ff8a7d; border-width: 2px; }
button[type="submit"] { width: 100%; }
@media (min-width: 40rem) { button[type="submit"] { width: auto; min-width: 14rem; } }

/* ---------- Video ---------- */
video { width: 100%; border-radius: var(--radius); background: #000; }

/* ---------- Podnožje ---------- */
footer {
	display: grid;
	gap: 2.5rem;
	padding: clamp(3rem, 6vw, 5rem) var(--gutter) 1.5rem;
	border-top: 1px solid var(--line);
	color: var(--muted);
}
footer h2 { margin-bottom: .5rem; color: var(--text); font-size: 1.125rem; letter-spacing: -.01em; }
footer a { display: inline-flex; align-items: center; max-width: 100%; min-height: 2.75rem; overflow-wrap: anywhere; color: var(--text); text-decoration-color: var(--field-line); }
footer a:hover { text-decoration-color: var(--yellow); }
footer address p { min-height: 2.75rem; display: flex; align-items: center; }
.foot-about { max-width: 38ch; }
.foot-about strong { display: block; margin-bottom: .4rem; color: var(--text); font-family: var(--font-head); font-size: 1.375rem; letter-spacing: -.02em; }
.foot-base { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .25rem 1.5rem; padding-top: 1rem; border-top: 1px solid var(--line); }
.foot-base p { display: flex; flex-wrap: wrap; align-items: center; gap: 0 1.25rem; max-width: none; }

@media (min-width: 40rem) { footer { grid-template-columns: repeat(2, minmax(0, 1fr)); } .foot-about, .foot-base { grid-column: 1 / -1; } }
@media (min-width: 62rem) { footer { grid-template-columns: 1.6fr repeat(3, minmax(0, 1fr)); } .foot-about { grid-column: auto; } }

/* ---------- Dodaci koje uključuje JavaScript ---------- */
[hidden] { display: none !important; }

.field-error { display: block; margin-top: .4rem; color: #ff8a7d; font-weight: 700; }
input[aria-invalid="true"], textarea[aria-invalid="true"] { border-color: #ff8a7d; border-width: 2px; }
.form-status:empty { display: none; }
.form-status { padding: .85rem 1rem; border-left: 4px solid var(--yellow); background: var(--sheet); }
.form-status.is-error { border-left-color: #ff8a7d; }
.form-status a { display: inline-flex; align-items: center; min-height: 2.75rem; }
button[aria-disabled="true"] { cursor: progress; opacity: .75; }
.form-done { max-width: 40rem; padding: 1.5rem; border-left: 4px solid var(--yellow); background: var(--sheet); }
.form-done h3 { margin-bottom: .5rem; }
.form-done p + p { margin-top: .75rem; }

.search-open {
	display: inline-grid;
	flex: none;
	place-items: center;
	width: 2.75rem;
	height: 2.75rem;
	margin-left: auto;
	padding: 0;
	border: 1px solid var(--field-line);
	border-radius: var(--radius);
	background: transparent;
	color: var(--text);
	cursor: pointer;
}
.search-open:hover { border-color: var(--yellow); color: var(--yellow); }
.search-open::before {
	content: "";
	width: 1.25rem;
	height: 1.25rem;
	background: currentColor;
	-webkit-mask: var(--i-search) center / contain no-repeat;
	mask: var(--i-search) center / contain no-repeat;
}
.nav-mobile { flex: none; }
@media (min-width: 62rem) { .nav-main { margin-left: auto; } .search-open { margin-left: 0; } }
@media (max-width: 25.99rem) {
	.bar { gap: .5rem; }
	.brand { gap: .4rem; font-size: .9375rem; line-height: 1.05; white-space: normal; }
	.brand img { width: 1.75rem; height: 1.75rem; }
	.brand span { max-width: 5.25rem; }
	.nav-mobile summary { gap: .35rem; padding-inline: .6rem; }
}
@media (min-width: 62rem) and (max-width: 68rem) {
	.bar { gap: .5rem; }
	.brand { gap: .4rem; font-size: .9375rem; }
	.brand img { width: 1.875rem; height: 1.875rem; }
	.nav-main ul { gap: 0; }
	.nav-main a { padding-inline: .4rem; font-size: .9375rem; }
	.nav-main a:not([href$="contact/"])::after { left: .4rem; right: .4rem; }
	.nav-main a[href$="contact/"] { margin-left: .25rem; padding-inline: .75rem; }
}

html:has(dialog[open]) { overflow: hidden; }
.search {
	--search-top: min(10vh, 4rem);
	width: min(42rem, calc(100vw - 2rem));
	max-height: calc(100dvh - var(--search-top) - 1rem);
	margin: var(--search-top) auto 0;
	padding: 0;
	border: 1px solid var(--field-line);
	border-radius: var(--radius);
	background: var(--sheet);
	color: var(--text);
}
.search::backdrop { background: rgb(0 0 0 / .72); }
.search-box { display: flex; flex-direction: column; gap: .85rem; max-height: calc(100dvh - var(--search-top) - 1.25rem); padding: 1.25rem; }
.search-head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.search-head h2 { font-size: 1.375rem; }
.search-close {
	min-height: 2.75rem;
	padding: .4rem .85rem;
	border: 1px solid var(--field-line);
	border-radius: var(--radius);
	background: transparent;
	color: var(--text);
	font: inherit;
	font-weight: 700;
	cursor: pointer;
}
.search-close:hover { border-color: var(--yellow); color: var(--yellow); }
.search form { max-width: none; gap: 0; }
.search-status { color: var(--muted); }
.search-results { min-height: 0; margin: 0; padding: 0; overflow-y: auto; list-style: none; }
.search-results a { display: block; min-height: 2.75rem; padding: .7rem .6rem; border-top: 1px solid var(--line); text-decoration: none; }
.search-results a:hover { background: var(--black); }
.search-results a:hover strong { color: var(--yellow); }
.search-results a:focus-visible { outline-offset: -3px; }
.search-results strong { display: block; font-family: var(--font-head); line-height: 1.3; }
.search-results span { display: block; margin-top: .2rem; color: var(--muted); font-size: .9375rem; line-height: 1.4; }

@media (min-width: 62rem) {
	.doc .toc a { padding-left: .7rem; }
	.doc .toc a[aria-current="true"] { box-shadow: inset 3px 0 0 currentColor; font-weight: 700; }
}

/* ---------- Pristupačnost ---------- */
:focus-visible { outline: 3px solid var(--yellow); outline-offset: 3px; border-radius: 2px; }
.topbar :focus-visible, #dalje :focus-visible, #kontakt :focus-visible, #cijene article:nth-of-type(2) :focus-visible { outline-color: var(--black); }
#izbor article:focus-within:has(a:not(:focus-visible)) { outline: 0; }
#izbor article:has(a:focus-visible) { outline: 3px solid var(--yellow); outline-offset: 2px; }
#primjeri article:focus-within:has(a:not(:focus-visible)), .page-examples article:focus-within:has(a:not(:focus-visible)) { outline: 0; }
#primjeri article:has(a:focus-visible), .page-examples article:has(a:focus-visible) { outline: 3px solid var(--yellow); outline-offset: 6px; }

@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	*, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
	@view-transition { navigation: none; }
}

@media (prefers-contrast: more) {
	:root { --muted: #f4f3ee; --line: #85879a; }
	.doc { --muted: #15161a; --line: #6d6f7c; }
}

@media (forced-colors: active) {
	.search-open::before, .nav-mobile summary::before, .nav-mobile a::before, #izbor article::before, #izbor article::after,
	details summary::after, #dalje a::after, main li::before { forced-color-adjust: none; background: CanvasText; }
	.btn, button[type="submit"] { border: 2px solid ButtonText; }
}

@media print {
	header, footer, #dalje, .toc, .skip, .search { display: none; }
	body, .doc { background: #fff; color: #000; }
	main > * { padding-inline: 0; }
}
