/*
Theme Name: Vrutak 2026
Theme URI: https://lopar-vrutak.hr
Author: neoparo.hr
Author URI: https://neoparo.hr
Version: 0.9.24
Requires at least: 6.0
Requires PHP: 5.6
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: vrutak2026
*/

:root {

	--sky-top:          #87c4ee;
	--sky-mid:          #4a96d8;
	--sky-deep:         #0959ba;
	--sky-deeper:       #06407e;
	--sky-night:        #042450;

	--accent:           #f7c786;
	--accent-deep:      #7d4a26;
	--accent-strong:    #965a2e;
	--accent-soft:      #fbe7cf;

	--teal:             #3aa9b8;
	--teal-soft:        #d6eef1;
	--teal-deep:        #257885;

	--paper:            #faf7f2;
	--paper-soft:       #f0ebe2;
	--glass:            rgba(250, 247, 242, 0.88);
	--glass-strong:     rgba(250, 247, 242, 0.96);
	--glass-thin:       rgba(255, 255, 255, 0.42);

	--ink:              #1c1a14;
	--ink-mid:          #4a463c;
	--ink-soft:         #6e695a;
	--rule:             rgba(28, 26, 20, .12);

	--shd-xs:           0 1px 0 rgba(6, 36, 80, .08);
	--shd-sm:           0 2px 6px rgba(6, 36, 80, .12);
	--shd-md:           0 10px 28px -12px rgba(6, 36, 80, .35);
	--shd-lg:           0 24px 60px -20px rgba(6, 36, 80, .45);

	--ff-display:       "Space Grotesk", system-ui, sans-serif;
	--ff-body:          "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
	--ff-nav:           "Space Grotesk", system-ui, sans-serif;

	--container:        1240px;
	--gap:              clamp(20px, 3vw, 36px);

	--header-h:         68px;
	--header-total:     104px;

	--r-xs:             4px;
	--r-sm:             8px;
	--r-md:             14px;
	--r-lg:             20px;
}

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

html { scroll-behavior: smooth; }

body {
	margin: 0;
	font-family: var(--ff-body);
	font-size: 17px;
	line-height: 1.55;
	color: var(--ink);
	-webkit-font-smoothing: antialiased;
	font-feature-settings: "ss01", "kern";
	background:
		linear-gradient(180deg,
			var(--sky-top) 0%,
			var(--sky-mid) 28%,
			var(--sky-deep) 70%,
			var(--sky-deeper) 100%);
	background-attachment: fixed;
	min-height: 100dvh;
}

.page-intro {
	position: fixed;
	inset: 0;
	z-index: 9999;
	background: var(--sky-night);
	display: grid;
	place-items: center;

	animation: introHide 3.6s 1s cubic-bezier(.4,0,.2,1) forwards;
}
.page-intro.is-gone {
	opacity: 0;
	visibility: hidden;
	pointer-events: none;
	transition: opacity 1.6s cubic-bezier(.4,0,.2,1), visibility 1.6s;
}
@keyframes introHide {
	0%   { opacity: 1; visibility: visible; }
	34%  { opacity: 1; visibility: visible; }
	99%  { opacity: 0; visibility: visible; }
	100% { opacity: 0; visibility: hidden; pointer-events: none; }
}
.page-intro__inner {
	text-align: center;
	max-width: 520px;
	padding: 0 1.5rem;
	animation: introIn 1s cubic-bezier(.2,.7,.2,1) forwards;
	opacity: 0;
}
.page-intro__brand {
	display: block;
	font-family: var(--ff-display);
	font-weight: 700;
	font-size: clamp(2.2rem, 6vw, 4rem);
	color: #fff;
	letter-spacing: -.035em;
	line-height: 1;
	margin-bottom: .15em;
}
.page-intro__sub {
	display: block;
	font-family: var(--ff-display);
	font-style: italic;
	font-weight: 500;
	font-size: clamp(1.05rem, 2.2vw, 1.5rem);
	color: var(--teal-soft);
	letter-spacing: -.015em;
	margin-bottom: 1.5rem;
}
.page-intro__wave {
	width: clamp(180px, 30vw, 280px);
	height: auto;
	display: block;
	margin: 0 auto;
	stroke-dasharray: 600;
	stroke-dashoffset: 600;
	animation: introWave 1.6s .2s cubic-bezier(.4,0,.2,1) forwards;
}
.page-intro__wave path { stroke-dasharray: 600; stroke-dashoffset: 600; }
.page-intro__wave path:nth-child(1) { animation: introWave 1.6s .2s cubic-bezier(.4,0,.2,1) forwards; }
.page-intro__wave path:nth-child(2) { animation: introWave 1.6s .35s cubic-bezier(.4,0,.2,1) forwards; }
.page-intro__wave path:nth-child(3) { animation: introWave 1.6s .5s cubic-bezier(.4,0,.2,1) forwards; }
@keyframes introIn {
	from { opacity: 0; transform: translateY(16px); }
	to   { opacity: 1; transform: none; }
}
@keyframes introWave {
	to { stroke-dashoffset: 0; }
}

body::before {
	content: "";
	position: fixed;
	inset: 0;
	z-index: 2;
	pointer-events: none;
	opacity: .06;
	mix-blend-mode: overlay;
	background-image: url("data:image/svg+xml;utf8,<svg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
}

.scene-grass {
	position: fixed;
	left: 0; right: 0; bottom: 0;
	height: min(34vh, 420px);
	background-image: url('images/bg-footer.jpg');
	background-image: -webkit-image-set(url('images/bg-footer.webp') type('image/webp'), url('images/bg-footer.jpg') type('image/jpeg'));
	background-image: image-set(url('images/bg-footer.webp') type('image/webp'), url('images/bg-footer.jpg') type('image/jpeg'));
	background-size: 100% 100%;
	background-position: center center;
	background-repeat: no-repeat;
	z-index: 0;
	pointer-events: none;
	-webkit-mask-image: linear-gradient(to top, #000 82%, transparent 100%);
	        mask-image: linear-gradient(to top, #000 82%, transparent 100%);
}

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

a {
	color: var(--sky-deeper);
	text-decoration: none;
	transition: color .15s ease;
}
a:hover { color: var(--accent-strong); }

h1, h2, h3, h4 {
	font-family: var(--ff-display);
	font-variation-settings: "wdth" 100, "opsz" 24;
	color: var(--ink);
	line-height: 1.05;
	letter-spacing: -.02em;
	margin: 0 0 .4em;
	text-wrap: balance;
}
h1 { font-size: clamp(2.4rem, 6vw, 4.6rem); font-weight: 700; }
h2 { font-size: clamp(1.6rem, 3vw, 2.4rem); font-weight: 700; letter-spacing: -.015em; }
h3 { font-size: clamp(1.15rem, 1.8vw, 1.35rem); font-weight: 600; letter-spacing: -.01em; }
p  { margin: 0 0 1em; max-width: 65ch; }

.container {
	max-width: var(--container);
	margin: 0 auto;
	padding: 0 var(--gap);
	position: relative;
	z-index: 1;
}

.screen-reader-text {
	position: absolute !important;
	clip: rect(1px, 1px, 1px, 1px);
	width: 1px; height: 1px;
	overflow: hidden;
}

.btn {
	display: inline-flex;
	align-items: center;
	gap: .55em;
	padding: .85em 1.4em;
	background: var(--ink);
	color: var(--paper);
	font-family: var(--ff-body);
	font-weight: 600;
	font-size: .95rem;
	letter-spacing: -.005em;
	border: none;
	border-radius: var(--r-sm);
	cursor: pointer;
	box-shadow: var(--shd-sm);
	transition: transform .15s ease, box-shadow .2s ease, background .15s;
	text-decoration: none;
}
.btn:hover {
	background: #000;
	color: var(--paper);
	transform: translateY(-1px);
	box-shadow: var(--shd-md);
}
.btn:active { transform: translateY(0); }
.btn:focus-visible {
	outline: 2px solid var(--accent);
	outline-offset: 3px;
}

.btn::after {
	content: "→";
	font-weight: 400;
	transition: transform .2s ease;
}
.btn:hover::after { transform: translateX(3px); }

.btn--back::after { content: none; }
.btn--back::before {
	content: "←";
	font-weight: 400;
	transition: transform .2s ease;
	margin-right: .15em;
}
.btn--back:hover::before { transform: translateX(-3px); }

.btn--accent {
	background: var(--accent);
	color: var(--ink);
}
.btn--accent:hover { background: var(--accent-deep); color: var(--paper); }

.btn--ghost {
	background: var(--glass-thin);
	color: var(--paper);
	backdrop-filter: blur(12px);
	-webkit-backdrop-filter: blur(12px);
	border: 1px solid rgba(255, 255, 255, .35);
	box-shadow: none;
}
.btn--ghost:hover {
	background: rgba(255, 255, 255, .85);
	color: var(--ink);
}

.btn--link {
	background: transparent;
	color: var(--paper);
	padding: .25em 0;
	border-radius: 0;
	box-shadow: none;
	border-bottom: 1px solid currentColor;
}
.btn--link:hover {
	background: transparent;
	color: var(--accent-soft);
	transform: none;
	box-shadow: none;
}

.site-header {
	position: sticky;
	top: 0;
	z-index: 50;
	background: #fff;
	border-bottom: 1px solid rgba(28, 26, 20, .08);
	box-shadow: 0 1px 0 rgba(6, 36, 80, .04);
}

.topstrip {
	background: var(--sky-deeper);
	color: rgba(255, 255, 255, .82);
	font-size: .8rem;
	border-bottom: 1px solid rgba(255, 255, 255, .06);
}
.topstrip__inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
	min-height: 36px;
}
.site-meta {
	display: flex;
	flex-direction: row;
	flex-wrap: wrap;
	align-items: center;
	gap: .25rem 1.6rem;
	margin: 0;
	padding: 0;
	list-style: none;
	font-variant-numeric: tabular-nums;
	letter-spacing: -.005em;
}
.site-meta li {
	display: inline-flex;
	align-items: center;
	gap: .4rem;
	color: rgba(255, 255, 255, .8);
	transition: color .15s ease;
}
.site-meta__icon {
	flex-shrink: 0;
	color: rgba(255, 255, 255, .55);
	transition: color .15s ease;
}
.site-meta li:hover,
.site-meta a:hover { color: #fff; }
.site-meta li:hover .site-meta__icon { color: #fff; }
.site-meta a { color: inherit; }

.lang-switch {
	display: inline-flex;
	align-items: center;
	gap: .45rem;
	font-size: .78rem;
	font-weight: 600;
	letter-spacing: .04em;
	flex-shrink: 0;
}
.lang-switch a {
	color: rgba(255, 255, 255, .42);
	text-decoration: none;
	padding: .15rem .1rem;
	transition: color .15s ease;
	font-variant-numeric: tabular-nums;
}
.lang-switch a:hover { color: rgba(255, 255, 255, .85); }
.lang-switch a.is-active {
	color: #fff;
}
.lang-switch__sep {
	color: rgba(255, 255, 255, .2);
	font-weight: 300;
	user-select: none;
}

.site-header__inner {
	display: flex;
	align-items: center;
	gap: 1.5rem;
	min-height: var(--header-h);
}
.site-logo img {
	max-height: 38px;
	width: auto;
}

.nav-toggle {
	margin-left: auto;
	display: none;
	background: transparent;
	border: 1px solid var(--rule);
	border-radius: var(--r-sm);
	padding: .35em .55em;
	cursor: pointer;
	color: var(--ink);
}

.main-nav {
	margin-left: auto;
}
.lang-switch--bar {
	background: transparent;
	color: var(--ink-mid);
	border: 1px solid var(--rule);
	margin-left: .75rem;
}
.lang-switch--bar:hover {
	background: var(--ink);
	color: var(--paper);
	border-color: var(--ink);
}
.main-nav ul {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-wrap: wrap;
	gap: 0 1.4rem;
	align-items: center;
}
.menu-item-home > a {
	display: inline-flex;
	align-items: center;
	color: var(--ink-soft);
	padding: 1.1rem 0;
}
.menu-item-home > a:hover { color: var(--accent-strong); }
.main-nav a {
	display: inline-flex;
	align-items: center;
	line-height: 1;
	padding: 1.1rem 0;
	color: var(--ink);
	font-family: var(--ff-nav);
	font-weight: 500;
	font-size: .92rem;
	letter-spacing: -.01em;
	transition: color .2s ease;
}
.menu-item-home > a { padding-block: 1.1rem; }
.menu-item-home svg { display: block; }
.main-nav a:hover {
	color: var(--accent-strong);
}
.main-nav .current-menu-item a,
.main-nav .current_page_item a {
	color: var(--accent-strong);
}

.main-nav li {
	position: relative;
}
.main-nav .menu-item-has-children > a::after {
	content: "";
	display: inline-block;
	margin-left: .35em;
	width: .5em;
	height: .5em;
	border-right: 1.5px solid currentColor;
	border-bottom: 1.5px solid currentColor;
	transform: translateY(-2px) rotate(45deg);
	opacity: .6;
	transition: transform .2s ease, opacity .2s ease;
}
.main-nav .menu-item-has-children:hover > a::after,
.main-nav .menu-item-has-children:focus-within > a::after {
	transform: translateY(0) rotate(45deg);
	opacity: 1;
}
.main-nav .sub-menu {
	position: absolute;
	top: 100%;
	left: -.5rem;
	min-width: 220px;
	background: #fff;
	border: 1px solid var(--rule);
	border-radius: var(--r-md);
	box-shadow: var(--shd-md);
	padding: .5rem 0;
	margin: 0;
	list-style: none;
	display: none;
	z-index: 100;
}
.main-nav .menu-item-has-children:hover > .sub-menu,
.main-nav .menu-item-has-children:focus-within > .sub-menu {
	display: block;
}
.main-nav .sub-menu li { position: static; }
.main-nav .sub-menu a {
	display: block;
	padding: .55rem 1.25rem;
	font-size: .88rem;
	font-weight: 500;
	color: var(--ink);
	letter-spacing: -.005em;
	white-space: nowrap;
}
.main-nav .sub-menu a::after { display: none; }
.main-nav .sub-menu a:hover {
	background: var(--paper-soft);
	color: var(--accent-strong);
}

.hero {
	padding: clamp(4rem, 10vw, 8rem) 0 clamp(2rem, 5vw, 4rem);
}
.hero__inner {
	max-width: 920px;
}
.hero__eyebrow {
	display: inline-flex;
	align-items: center;
	gap: .8rem;
	font-size: .8rem;
	font-weight: 500;
	letter-spacing: .12em;
	text-transform: uppercase;
	color: rgba(255, 255, 255, .85);
	margin-bottom: 1.2rem;
}
.hero__eyebrow::before {
	content: "";
	width: 28px; height: 1px;
	background: rgba(255, 255, 255, .6);
}
.hero__title {
	color: #fff;
	font-weight: 800;
	letter-spacing: -.035em;
	line-height: .95;
	margin: 0 0 .5em;
	text-shadow: 0 4px 28px rgba(4, 36, 80, .25);
}
.hero__lead {
	color: rgba(255, 255, 255, .95);
	font-size: clamp(1.05rem, 1.6vw, 1.3rem);
	font-weight: 400;
	line-height: 1.45;
	max-width: 52ch;
	margin: 0 0 2rem;
	text-shadow: 0 2px 16px rgba(4, 36, 80, .25);
}
.hero__cta {
	display: flex;
	gap: 1.5rem;
	align-items: center;
	flex-wrap: wrap;
}
.hero__cta-link {
	color: #fff;
	font-weight: 500;
	letter-spacing: -.005em;
	padding-bottom: 2px;
	border-bottom: 1px solid rgba(255, 255, 255, .5);
	transition: border-color .2s, color .2s;
}
.hero__cta-link:hover {
	color: var(--accent-soft);
	border-bottom-color: var(--accent-soft);
}

.media-strip {
	padding: 0 0 clamp(2rem, 4vw, 3rem);
}

.hero-ed {
	display: flex;
	flex-direction: column;
	justify-content: flex-start;
	padding: clamp(2.5rem, 6vw, 5rem) 0 clamp(3rem, 7vw, 6rem);
	position: relative;
	color: #fff;
}
.hero-ed__inner {
	max-width: 1100px;
}
.hero-ed__eyebrow {
	display: inline-flex;
	align-items: center;
	gap: .75rem;
	font-size: .78rem;
	font-weight: 500;
	letter-spacing: .18em;
	text-transform: uppercase;
	color: rgba(255, 255, 255, .9);
	margin-bottom: 1.5rem;
}
.hero-ed__eyebrow::before {
	content: "";
	width: 32px;
	height: 1px;
	background: rgba(255, 255, 255, .55);
}
.hero-ed__title {
	font-family: "Cinzel", var(--ff-display), serif;
	font-weight: 700;
	text-transform: uppercase;
	font-size: clamp(2.5rem, 7vw, 5.6rem);
	line-height: 1.06;
	letter-spacing: .02em;
	margin: 0 0 1.5rem;
	color: #fff;
	text-shadow: 0 6px 40px rgba(4, 36, 80, .25);
	animation: heroEnter 1.1s cubic-bezier(.2,.7,.2,1) 1.9s both;
}

.hero-ed__title .hero-cap { font-size: 1.16em; }
.hero-ed__title em {
	animation: heroEnter 1.1s cubic-bezier(.2,.7,.2,1) 2.15s both;
}
.hero-ed__lead {
	animation: heroEnter 1.1s cubic-bezier(.2,.7,.2,1) 2.4s both;
}
.hero-services {
	animation: heroEnter 1.1s cubic-bezier(.2,.7,.2,1) 2.65s both;
}
@keyframes heroEnter {
	from { opacity: 0; transform: translateY(32px); }
	to   { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: reduce) {
	.hero-ed__title,
	.hero-ed__title em,
	.hero-ed__lead,
	.hero-services { animation: none; }
}
.hero-ed__title em {
	font-style: normal;
	font-family: var(--ff-nav);
	font-weight: 500;
	text-transform: uppercase;
	font-variant: normal;
	color: var(--teal-soft);
	display: block;
	font-size: .34em;
	letter-spacing: .14em;
	margin-top: .7rem;
}
.hero-ed__years {
	display: inline-flex;
	align-items: baseline;
	gap: 1rem;
	font-family: var(--ff-display);
	font-variation-settings: "wdth" 80, "wght" 500;
	font-size: clamp(1.25rem, 2.2vw, 1.6rem);
	color: rgba(255, 255, 255, .92);
	letter-spacing: -.01em;
	margin-bottom: 1.75rem;
}
.hero-ed__years span { color: rgba(255, 255, 255, .55); }
.hero-ed__lead {
	font-size: clamp(1.05rem, 1.5vw, 1.3rem);
	color: rgba(255, 255, 255, .92);
	max-width: 58ch;
	margin: 0 0 2.5rem;
	font-weight: 400;
	text-shadow: 0 2px 18px rgba(4, 36, 80, .25);
}

.hero-services {
	display: grid;
	grid-template-columns: repeat(7, 1fr);
	gap: clamp(.5rem, 1.5vw, 1.25rem);
	max-width: 920px;
	margin-top: .5rem;
	padding-top: 1.25rem;
	border-top: 1px solid rgba(255, 255, 255, .22);
}
.hero-service {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: .7rem;
	text-align: center;
	color: rgba(255, 255, 255, .82);
	text-decoration: none;
	padding: .25rem;
	transition: color .2s ease, transform .2s ease;
}
.hero-service:hover {
	color: #fff;
	transform: translateY(-2px);
}
.hero-service__glyph {
	width: 36px;
	height: 36px;
	display: grid;
	place-items: center;
}
.hero-service__glyph svg {
	width: 34px;
	height: 34px;
}
.hero-service__label {
	font-family: var(--ff-nav);
	font-size: .78rem;
	font-weight: 500;
	letter-spacing: -.005em;
	line-height: 1.2;
	text-wrap: balance;
	max-width: 11ch;
}

@media (max-width: 720px) {
	.hero-services { grid-template-columns: repeat(4, 1fr); }
}
@media (max-width: 480px) {
	.hero-services { grid-template-columns: repeat(3, 1fr); }
}

.stats {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: clamp(1.5rem, 3vw, 3rem);
	border-top: 1px solid rgba(255, 255, 255, .25);
	padding-top: 1.75rem;
	max-width: 880px;
}
.stat {
	display: flex;
	flex-direction: column;
	gap: .25rem;
}
.stat__num {
	font-family: var(--ff-display);
	font-variation-settings: "wdth" 90, "wght" 700, "opsz" 48;
	font-size: clamp(2rem, 4vw, 3rem);
	line-height: 1;
	color: #fff;
	letter-spacing: -.03em;
	font-variant-numeric: tabular-nums;
}
.stat__num .unit {
	font-size: .55em;
	color: var(--teal-soft);
	font-variation-settings: "wdth" 100, "wght" 500;
	margin-left: .15em;
	letter-spacing: -.02em;
}
.stat__label {
	font-size: .78rem;
	color: rgba(255, 255, 255, .68);
	letter-spacing: .04em;
	text-transform: uppercase;
	font-weight: 500;
}

.scroll-cue {
	position: absolute;
	bottom: 1.5rem;
	left: 50%;
	transform: translateX(-50%);
	color: rgba(255, 255, 255, .6);
	font-size: .7rem;
	letter-spacing: .15em;
	text-transform: uppercase;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: .4rem;
	pointer-events: none;
}
.scroll-cue::after {
	content: "";
	width: 1px;
	height: 26px;
	background: linear-gradient(to bottom, rgba(255, 255, 255, .6), transparent);
	animation: scrollPulse 2.2s ease-in-out infinite;
}
@keyframes scrollPulse {
	0%, 100% { transform: scaleY(.6); opacity: .4; transform-origin: top; }
	50%      { transform: scaleY(1); opacity: 1; }
}

.wave-divider {
	display: block;
	width: 100%;
	height: clamp(40px, 6vw, 90px);
	position: relative;
	overflow: hidden;
	line-height: 0;
}
.wave-divider svg {
	width: 100%;
	height: 100%;
	display: block;
}

@media (max-width: 720px) {
	.stats { grid-template-columns: repeat(2, 1fr); gap: 1.25rem; }
}

[data-reveal] {
	opacity: 0;
	transform: translateY(28px);
	transition: opacity .8s cubic-bezier(.2,.7,.2,1), transform .8s cubic-bezier(.2,.7,.2,1);
	will-change: opacity, transform;
}
[data-reveal].is-revealed {
	opacity: 1;
	transform: none;
}
[data-reveal-delay="1"].is-revealed { transition-delay: .08s; }
[data-reveal-delay="2"].is-revealed { transition-delay: .16s; }
[data-reveal-delay="3"].is-revealed { transition-delay: .24s; }
[data-reveal-delay="4"].is-revealed { transition-delay: .32s; }
[data-reveal-delay="5"].is-revealed { transition-delay: .4s; }
[data-reveal-delay="6"].is-revealed { transition-delay: .48s; }
[data-reveal-delay="7"].is-revealed { transition-delay: .56s; }
.media-strip--top .container {
	max-width: none;
	padding: 0;
}
.media-strip--top .media-frame {
	height: calc(100dvh - var(--header-total));
	min-height: 480px;
	aspect-ratio: auto;
	border-radius: 0;
	box-shadow: none;
	border: none;
}
.media-strip--top .media-frame::after {
	box-shadow: inset 0 -120px 80px -60px rgba(4, 36, 80, .35);
}

.media-frame {
	position: relative;
	aspect-ratio: 21 / 9;
	border-radius: var(--r-lg);
	overflow: hidden;
	box-shadow: var(--shd-lg);
	background: var(--sky-deeper);
	border: 1px solid rgba(255, 255, 255, .2);
}
.media-frame::after {
	content: "";
	position: absolute;
	inset: 0;
	border-radius: inherit;
	box-shadow: inset 0 1px 0 rgba(255, 255, 255, .3);
	pointer-events: none;
}

.layout-2 {
	display: grid;
	grid-template-columns: 220px 1fr;
	gap: clamp(2rem, 4vw, 3.5rem);
	align-items: start;
	padding: clamp(2rem, 4vw, 3rem) 0;
}

.cta-rail {
	position: sticky;
	top: calc(var(--header-h) + var(--gap));
	display: flex;
	flex-direction: column;
}
.cta-rail__title {
	font-size: .7rem;
	letter-spacing: .15em;
	text-transform: uppercase;
	color: rgba(255, 255, 255, .8);
	margin-bottom: 1.2rem;
	padding-left: .15rem;
	font-weight: 500;
}
.cta-rail a {
	display: block;
	padding: .65rem 0;
	color: rgba(255, 255, 255, .9);
	font-weight: 500;
	font-size: 1rem;
	border-bottom: 1px solid rgba(255, 255, 255, .14);
	transition: padding-left .2s ease, color .2s;
	position: relative;
}
.cta-rail a::before {
	content: "";
	position: absolute;
	left: 0; top: 50%;
	width: 0; height: 1px;
	background: var(--accent);
	transition: width .25s ease;
}
.cta-rail a:hover {
	color: #fff;
	padding-left: 1.25rem;
}
.cta-rail a:hover::before { width: 1rem; }
.cta-rail a.is-primary {
	color: var(--ink);
	font-weight: 600;
	margin-top: .75rem;
	padding: .85rem 1rem;
	background: var(--accent);
	border: none;
	border-radius: var(--r-sm);
	text-align: center;
}
.cta-rail a.is-primary:hover {
	padding-left: 1rem;
	background: var(--accent-deep);
	color: var(--paper);
}
.cta-rail a.is-primary::before { display: none; }

.front-stream {
	display: flex;
	flex-direction: column;
	gap: clamp(2.5rem, 5vw, 4rem);
	max-width: 960px;
	margin: 0 auto;
	padding: clamp(2rem, 4vw, 3rem) 0;
}

.section__head {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: 1rem;
	margin-bottom: 1.5rem;
	flex-wrap: wrap;
}
.section__head h2 {
	color: #fff;
	margin: 0;
	letter-spacing: -.02em;
}
.section__head--ink h2 { color: var(--ink); }
.section__head .meta {
	color: rgba(255, 255, 255, .65);
	font-size: .85rem;
	font-weight: 500;
	letter-spacing: .04em;
	text-transform: uppercase;
}

.news-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 1px;
	background: rgba(255, 255, 255, .15);
	border-radius: var(--r-lg);
	overflow: hidden;
	box-shadow: var(--shd-md);
}
.news-card {
	background: var(--paper);
	padding: 1.5rem 1.6rem 1.4rem;
	display: flex;
	flex-direction: column;
	gap: .5rem;
	transition: background .2s, transform .2s;
	min-height: 200px;
}
.news-card:hover {
	background: #fff;
}
.news-card--featured {
	grid-column: span 3;
	background: var(--ink);
	color: var(--paper);
	padding: 2rem 2.2rem;
	min-height: 0;
}
.news-card--featured:hover {
	background: var(--ink);
}
.news-card__date {
	font-size: .76rem;
	color: var(--ink-soft);
	font-weight: 500;
	letter-spacing: .05em;
	text-transform: uppercase;
	font-variant-numeric: tabular-nums;
}
.news-card--featured .news-card__date { color: var(--accent-soft); }
.news-card__title {
	font-family: var(--ff-display);
	font-size: 1.2rem;
	font-weight: 600;
	line-height: 1.15;
	letter-spacing: -.015em;
	margin: 0;
}
.news-card--featured .news-card__title {
	font-size: clamp(1.5rem, 2.5vw, 2rem);
	color: var(--paper);
}
.news-card__title a {
	color: inherit;
	background-image: linear-gradient(to right, currentColor 0%, currentColor 100%);
	background-size: 0 1px;
	background-position: 0 100%;
	background-repeat: no-repeat;
	transition: background-size .3s;
}
.news-card__title a:hover {
	background-size: 100% 1px;
}
.news-card__excerpt {
	font-size: .93rem;
	color: var(--ink-mid);
	margin: 0;
}
.news-card--featured .news-card__excerpt { color: rgba(250, 247, 242, .7); }
.news-card__more {
	margin-top: auto;
	font-size: .82rem;
	font-weight: 600;
	color: var(--accent-strong);
	letter-spacing: -.005em;
}
.news-card--featured .news-card__more { color: var(--accent-soft); }

.djelatnosti-panel {
	background: var(--paper);
	border-radius: var(--r-lg);
	padding: clamp(2rem, 4vw, 3rem);
	box-shadow: var(--shd-md);
}
.djelatnosti-panel .section__head { margin-bottom: 2rem; }
.djelatnosti-list {
	list-style: none;
	padding: 0;
	margin: 0;
}
.djelatnost {
	display: grid;
	grid-template-columns: 60px 1fr auto;
	gap: 1.25rem;
	align-items: center;
	padding: 1.25rem 0;
	border-top: 1px solid var(--rule);
	color: var(--ink);
	text-decoration: none;
	transition: color .2s;
	position: relative;
}
.djelatnost:first-child { border-top: 0; }
.djelatnost:hover {
	color: var(--accent-strong);
}
.djelatnost__num {
	font-family: var(--ff-display);
	font-size: 1.05rem;
	font-weight: 500;
	color: var(--ink-soft);
	font-variant-numeric: tabular-nums;
	letter-spacing: .02em;
}
.djelatnost:hover .djelatnost__num { color: var(--accent-strong); }
.djelatnost__name {
	font-family: var(--ff-display);
	font-size: clamp(1.1rem, 2vw, 1.4rem);
	font-weight: 600;
	letter-spacing: -.015em;
	line-height: 1.15;
}
.djelatnost__arrow {
	width: 24px; height: 24px;
	border-radius: 50%;
	display: grid;
	place-items: center;
	border: 1px solid var(--rule);
	color: var(--ink-soft);
	font-size: .9rem;
	transition: background .2s, color .2s, border-color .2s, transform .25s;
}
.djelatnost:hover .djelatnost__arrow {
	background: var(--accent);
	border-color: var(--accent);
	color: var(--ink);
	transform: translateX(3px);
}

.panel {
	background: var(--paper);
	border-radius: var(--r-lg);
	padding: clamp(1.5rem, 3vw, 2.5rem);
	box-shadow: var(--shd-md);
}
.panel--dark {
	background: var(--ink);
	color: var(--paper);
}
.panel--dark h2 { color: var(--paper); }
.panel--dark .docs-list time { color: rgba(250, 247, 242, .55); }
.panel--dark .docs-list li { border-color: rgba(250, 247, 242, .15); }
.panel--dark a { color: var(--accent-soft); }
.panel--dark a:hover { color: var(--accent); }

.panel h2 { color: var(--ink); margin-bottom: 1rem; }
.panel p { color: var(--ink-mid); }

.video-embed {
	position: relative;
	aspect-ratio: 16 / 9;
	border-radius: var(--r-md);
	overflow: hidden;
}
.video-embed iframe {
	position: absolute;
	inset: 0;
	width: 100%; height: 100%;
	border: 0;
}

.docs-list { list-style: none; padding: 0; margin: 0; }
.docs-list li {
	display: flex;
	justify-content: space-between;
	align-items: baseline;
	gap: 1rem;
	border-top: 1px solid var(--rule);
	padding: .9rem 0;
}
.docs-list li:first-child { border-top: 0; padding-top: 0; }
.docs-list a {
	font-family: var(--ff-display);
	font-weight: 500;
	font-size: 1.02rem;
	letter-spacing: -.01em;
	color: var(--ink);
}
.docs-list a:hover { color: var(--accent-strong); }
.docs-list time {
	color: var(--ink-soft);
	font-size: .8rem;
	white-space: nowrap;
	font-variant-numeric: tabular-nums;
	letter-spacing: .02em;
}

.links-list {
	list-style: none; padding: 0; margin: 0;
	columns: 2; column-gap: 2.5rem;
}
.links-list li { padding: .35rem 0; break-inside: avoid; }
.links-list a {
	color: var(--ink);
	font-weight: 500;
	border-bottom: 1px solid transparent;
}
.links-list a:hover { color: var(--accent-strong); border-bottom-color: currentColor; }

.page-hero {
	padding: clamp(2.5rem, 5vw, 4.5rem) 0 clamp(2rem, 4vw, 3rem);
	color: #fff;
}
.page-hero__inner {
	max-width: 960px;
}
.breadcrumb {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: .6rem;
	font-family: var(--ff-nav);
	font-size: .82rem;
	letter-spacing: .03em;
	color: rgba(255, 255, 255, .65);
	margin-bottom: 1.25rem;
}
.breadcrumb a {
	color: rgba(255, 255, 255, .8);
	text-decoration: none;
	transition: color .15s;
}
.breadcrumb a:hover { color: #fff; }
.breadcrumb span[aria-hidden] { opacity: .35; }
.page-hero__meta {
	font-family: var(--ff-nav);
	font-size: .78rem;
	letter-spacing: .1em;
	text-transform: uppercase;
	color: var(--accent-soft);
	margin-bottom: .75rem;
}
.page-hero__title {
	font-family: var(--ff-display);
	font-variation-settings: "wdth" 100, "wght" 700, "opsz" 72;
	font-size: clamp(1.7rem, 3.6vw, 3rem);
	line-height: 1.08;
	letter-spacing: -.03em;
	color: #fff;
	margin: 0;
	text-shadow: 0 4px 28px rgba(4, 36, 80, .25);
	text-wrap: balance;
}

.page-body {
	padding: clamp(1.5rem, 3vw, 2rem) 0 clamp(3rem, 6vw, 5rem);
}

.page-content {
	background: var(--paper);
	border-radius: var(--r-lg);
	padding: clamp(1.75rem, 4vw, 3rem) clamp(1.1rem, 2.2vw, 1.6rem);
	box-shadow: var(--shd-md);
	max-width: 880px;
	margin: 0 auto;
}

.page-featured {
	width: clamp(240px, 46%, 400px);
	margin: 0 0 clamp(1.1rem, 2.5vw, 1.6rem);
	line-height: 0;
}

.page-content > .page-featured:first-child {
	margin-top: calc(clamp(1.1rem, 2.2vw, 1.6rem) - clamp(1.75rem, 4vw, 3rem));
}
.page-featured img {
	width: 100%;
	height: auto;
	border-radius: var(--r-md);
	box-shadow: 0 6px 20px rgba(0, 0, 0, .1);
}
.page-content::after { content: ""; display: block; clear: both; }

.page-map {
	clear: both;
	margin: clamp(1.5rem, 3vw, 2.25rem) 0 0;
}
.page-map iframe {
	display: block;
	width: 100%;
	height: 360px;
	border: 0;
	border-radius: var(--r-md);
	box-shadow: var(--shd-md);
}
@media (max-width: 620px) {
	.page-featured { width: 100%; max-width: 420px; }
	.page-map iframe { height: 280px; }
}

.prose { color: var(--ink); font-size: 1.02rem; line-height: 1.65; }
.prose > * + * { margin-top: 1em; }
.prose h2 {
	font-family: var(--ff-display);
	font-size: clamp(1.4rem, 2.2vw, 1.75rem);
	font-weight: 700;
	letter-spacing: -.02em;
	color: var(--ink);
	margin-top: 1.75em;
	margin-bottom: .4em;
	line-height: 1.2;
}
.prose h3 {
	font-family: var(--ff-display);
	font-size: clamp(1.15rem, 1.8vw, 1.35rem);
	font-weight: 600;
	letter-spacing: -.015em;
	color: var(--ink);
	margin-top: 1.5em;
	margin-bottom: .35em;
}
.prose h4 {
	font-size: 1.05rem;
	font-weight: 600;
	color: var(--ink);
	margin-top: 1.25em;
	margin-bottom: .25em;
}
.prose p { margin: 0 0 1em; }
.prose strong { font-weight: 600; color: var(--ink); }
.prose a {
	color: var(--accent-strong);
	text-decoration: underline;
	text-decoration-thickness: 1px;
	text-underline-offset: 3px;
	transition: color .15s;
}
.prose a:hover { color: var(--accent-strong, #965a2e); }

.prose a.btn,
.prose a.btn:hover { color: var(--paper); text-decoration: none; }
.prose ul, .prose ol {
	margin: .75em 0 1em;
	padding-left: 1.5rem;
}
.prose li { margin-bottom: .35em; }
.prose ul li { list-style: none; position: relative; padding-left: .5rem; }
.prose ul li::before {
	content: "";
	position: absolute;
	left: -1rem;
	top: .65em;
	width: 8px;
	height: 1px;
	background: var(--accent);
}
.prose ol { list-style: decimal; }
.prose ol li::marker { color: var(--accent-strong); font-weight: 600; }
.prose blockquote {
	border-left: 3px solid var(--accent);
	padding-left: 1.25rem;
	margin: 1.5em 0;
	font-style: italic;
	color: var(--ink-mid);
}
.prose img { border-radius: var(--r-md); margin: 1.5em 0; }

.prose .doc-link,
.doc-link {
	display: flex;
	align-items: center;
	gap: .75rem;
	padding: .7rem .95rem;
	background: var(--paper-soft);
	border: 1px solid var(--rule);
	border-radius: var(--r-sm);
	text-decoration: none;
	color: var(--ink);
	transition: background .15s, border-color .15s, transform .15s;
	margin: .5rem 0;
	max-width: 100%;
}

.prose p:has(> .doc-link:only-child) {
	margin: 0 !important;
}
.prose > * + .doc-link,
.prose .doc-link + .doc-link,
.prose .doc-link + p { margin-top: .5rem; }
.doc-link:hover {
	background: #fff;
	border-color: var(--accent-strong);
	transform: translateY(-1px);
	color: var(--ink);
}
.doc-link__icon {
	flex-shrink: 0;
	display: inline-grid;
	place-items: center;
	min-width: 42px;
	padding: .25em .45em;
	background: #d4332a;
	color: #fff;
	font-family: var(--ff-nav);
	font-size: .68rem;
	font-weight: 700;
	letter-spacing: .04em;
	border-radius: var(--r-xs);
}
.doc-link__icon--doc, .doc-link__icon--docx { background: #2b579a; }
.doc-link__icon--xls, .doc-link__icon--xlsx { background: #217346; }
.doc-link__icon--ppt, .doc-link__icon--pptx { background: #d24726; }
.doc-link__icon--zip { background: #5a5a5a; }
.doc-link__icon--page { background: var(--accent-strong); font-size: 1.15rem; line-height: 1; }
.doc-link__text {
	flex: 1 1 auto;
	min-width: 0;
	font-weight: 500;
	color: inherit;
	text-decoration: none;
}
.doc-link__size {
	flex-shrink: 0;
	font-family: var(--ff-nav);
	font-size: .78rem;
	color: var(--ink-soft);
	font-variant-numeric: tabular-nums;
	letter-spacing: .02em;
}
.doc-link:hover .doc-link__size { color: var(--ink-mid); }

.doc-section { margin-top: 2.25rem; scroll-margin-top: calc(var(--header-total) + 1rem); }
.doc-section:first-child { margin-top: .25rem; }
.doc-section__empty { color: var(--ink-soft); font-size: .92rem; margin: 0; }
.doc-section__title {
	font-family: var(--ff-display);
	font-size: 1.3rem;
	color: var(--ink);
	padding-bottom: .5rem;
	margin-bottom: 1rem;
	border-bottom: 2px solid var(--accent);
}
.doc-entry { margin: 0 0 .6rem; }
.doc-entry p { margin: 0; }
.doc-entry .doc-link { margin: 0 0 .35rem; }
.doc-entry__date {
	display: block;
	font-size: .78rem;
	color: var(--ink-soft);
	margin: .1rem 0 .35rem .2rem;
}
.prose hr { border: 0; border-top: 1px solid var(--rule); margin: 2em 0; }
.prose table {
	width: 100%;
	border-collapse: collapse;
	margin: 1.5em 0;
	font-size: .95rem;
}
.prose table th, .prose table td {
	border-bottom: 1px solid var(--rule);
	padding: .65em .8em;
	text-align: left;
}
.prose table th { font-weight: 600; color: var(--ink); background: var(--paper-soft); }

.post-nav {
	max-width: 880px;
	margin: 1.5rem auto 0;
}

.archive-list {
	max-width: 880px;
	margin: 0 auto;
	display: flex;
	flex-direction: column;
	gap: 0;
	background: var(--paper);
	border-radius: var(--r-lg);
	padding: clamp(1rem, 2.5vw, 1.5rem) clamp(1.5rem, 3vw, 2rem);
	box-shadow: var(--shd-md);
}
.archive-item {
	display: grid;
	grid-template-columns: 100px 1fr;
	gap: 1.5rem;
	padding: 1.4rem 0;
	border-top: 1px solid var(--rule);
}
.archive-item:first-child { border-top: 0; }
.archive-item__date {
	font-family: var(--ff-nav);
	font-size: .82rem;
	color: var(--ink-soft);
	font-variant-numeric: tabular-nums;
	letter-spacing: .02em;
	padding-top: .3rem;
}
.archive-item__body { min-width: 0; }
.archive-item__title {
	font-family: var(--ff-display);
	font-size: clamp(1.1rem, 1.8vw, 1.3rem);
	font-weight: 600;
	letter-spacing: -.015em;
	line-height: 1.25;
	margin: 0 0 .4rem;
}
.archive-item__title a {
	color: var(--ink);
	text-decoration: none;
	transition: color .15s;
}
.archive-item__title a:hover { color: var(--accent-strong); }
.archive-item__excerpt {
	color: var(--ink-mid);
	font-size: .95rem;
	margin: 0;
}

.pagination {
	max-width: 880px;
	margin: 2rem auto 0;
	display: flex;
	justify-content: center;
}
.pagination .nav-links {
	display: flex;
	gap: .5rem;
	align-items: center;
}
.pagination .page-numbers {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 40px;
	height: 40px;
	padding: 0 .8rem;
	background: var(--paper);
	color: var(--ink);
	border-radius: var(--r-sm);
	font-family: var(--ff-nav);
	font-weight: 500;
	font-size: .9rem;
	text-decoration: none;
	box-shadow: var(--shd-sm);
	transition: background .15s, color .15s;
}
.pagination .page-numbers:hover {
	background: var(--ink);
	color: var(--paper);
}
.pagination .page-numbers.current {
	background: var(--accent);
	color: var(--ink);
}

@media (max-width: 600px) {
	.archive-item { grid-template-columns: 1fr; gap: .25rem; }
}

.site-footer {
	margin-top: 0;
	background: var(--sky-night);
	color: rgba(255, 255, 255, .82);
	position: relative;
	z-index: 1;
	padding: clamp(2.5rem, 5vw, 4rem) 0 1.75rem;
}
.wave-divider + .site-footer { margin-top: -1px; }
.wave-divider { display: block; margin-bottom: 0; }

.footer-grid {
	display: grid;
	grid-template-columns: 1.5fr 1fr 1fr;
	gap: clamp(2rem, 4vw, 4rem);
	margin-bottom: 2.5rem;
	padding-bottom: 2rem;
	border-bottom: 1px solid rgba(255, 255, 255, .1);
}

.footer-logo img {
	max-height: 44px;
	width: auto;
	background: #fff;
	padding: .5rem .75rem;
	border-radius: var(--r-sm);
	margin-bottom: 1.25rem;
}

.footer-legal {
	margin-bottom: 1.25rem;
}
.footer-legal__name {
	font-family: var(--ff-display);
	font-size: 1.05rem;
	font-weight: 600;
	color: #fff;
	margin: 0 0 .5rem;
	letter-spacing: -.015em;
	line-height: 1.2;
}
.footer-legal__name span {
	font-weight: 400;
	color: rgba(255, 255, 255, .65);
	font-size: .92rem;
}
.footer-legal__line {
	font-size: .88rem;
	color: rgba(255, 255, 255, .65);
	margin: 0 0 .15rem;
	font-variant-numeric: tabular-nums;
	letter-spacing: -.005em;
}

.footer-contact {
	list-style: none;
	padding: 0;
	margin: 0;
	font-size: .9rem;
	font-variant-numeric: tabular-nums;
	color: rgba(255, 255, 255, .65);
}
.footer-contact li {
	padding: .2rem 0;
}
.footer-contact a {
	color: rgba(255, 255, 255, .85);
	transition: color .15s;
}
.footer-contact a:hover {
	color: var(--accent-soft);
}

.footer-col h3 {
	font-family: var(--ff-nav);
	font-size: .72rem;
	font-weight: 600;
	letter-spacing: .15em;
	text-transform: uppercase;
	color: rgba(255, 255, 255, .55);
	margin: 0 0 1.25rem;
}
.footer-col ul {
	list-style: none;
	padding: 0;
	margin: 0;
}
.footer-col li {
	padding: .35rem 0;
}
.footer-col a {
	color: rgba(255, 255, 255, .82);
	text-decoration: none;
	font-size: .92rem;
	letter-spacing: -.005em;
	transition: color .15s;
}
.footer-col a:hover {
	color: var(--accent-soft);
}

.footer__bottom {
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 1rem;
	flex-wrap: wrap;
	font-size: .8rem;
	color: rgba(255, 255, 255, .5);
	letter-spacing: -.005em;
}
.footer__credit a {
	color: rgba(255, 255, 255, .75);
	text-decoration: none;
	transition: color .15s;
}
.footer__credit a:hover { color: var(--accent-soft); }

@media (max-width: 800px) {
	.footer-grid {
		grid-template-columns: 1fr;
		gap: 2.5rem;
	}
	.footer__bottom { flex-direction: column; align-items: flex-start; }
}

.portal {
	position: relative;
	z-index: 1;
	padding: clamp(2.5rem, 6vw, 5rem) 0 clamp(3rem, 8vw, 6rem);
}
.portal__inner {
	max-width: 680px;
	margin: 0 auto;
	padding: 0 var(--gap);
}

.portal-card {
	background: var(--paper);
	border-radius: var(--r-lg);
	padding: clamp(1.9rem, 4vw, 3rem);
	box-shadow: var(--shd-lg);
}
.portal-card--login { text-align: center; }
.portal-emblem {
	display: inline-grid;
	place-items: center;
	width: 60px;
	height: 60px;
	margin-bottom: 1.1rem;
	border-radius: 50%;
	background: var(--accent-soft);
	color: var(--accent-strong);
}
.portal-card__title { font-size: clamp(1.6rem, 3vw, 2.1rem); margin-bottom: .3em; }
.portal-card__hint { color: var(--ink-soft); max-width: 42ch; margin: 0 auto; }

#portal-login { margin-top: 1.75rem; text-align: left; }
#portal-login p { margin: 0 0 1.1rem; }
#portal-login label {
	display: block;
	margin-bottom: .4rem;
	font-family: var(--ff-nav);
	font-weight: 600;
	font-size: .72rem;
	letter-spacing: .08em;
	text-transform: uppercase;
	color: var(--ink-soft);
}
#portal-login input[type="text"],
#portal-login input[type="password"] {
	width: 100%;
	padding: .85em 1em;
	border: 1px solid var(--rule);
	border-radius: var(--r-sm);
	font-size: 1rem;
	font-family: inherit;
	background: #fff;
	transition: border-color .15s, box-shadow .15s;
}
#portal-login input[type="text"]:focus,
#portal-login input[type="password"]:focus {
	outline: none;
	border-color: var(--accent-strong);
	box-shadow: 0 0 0 3px var(--accent-soft);
}
#portal-login .login-remember label {
	display: inline-flex;
	align-items: center;
	gap: .45rem;
	text-transform: none;
	letter-spacing: 0;
	font-family: var(--ff-body);
	font-weight: 500;
	font-size: .9rem;
	color: var(--ink-mid);
}
#portal-login .login-submit { margin-bottom: 0; }
#portal-login #wp-submit {
	width: 100%;
	padding: .9em 1.4em;
	background: var(--ink);
	color: var(--paper);
	border: none;
	border-radius: var(--r-sm);
	font-family: var(--ff-body);
	font-weight: 600;
	font-size: 1rem;
	cursor: pointer;
	box-shadow: var(--shd-sm);
	transition: background .15s, transform .15s;
}
#portal-login #wp-submit:hover { background: #000; transform: translateY(-1px); }
.portal-forgot { margin-top: 1.25rem; font-size: .9rem; }
.portal-forgot a { color: var(--accent-strong); }

.portal-msg {
	padding: .9rem 1.1rem;
	border-radius: var(--r-sm);
	margin-bottom: 1.25rem;
	font-size: .92rem;
	text-align: left;
}
.portal-msg--error { background: #fbe9e3; color: #8a2a13; border: 1px solid #f3c1b9; }

.portal-head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1.25rem;
	flex-wrap: wrap;
	background: var(--paper);
	border-radius: var(--r-lg);
	padding: clamp(1.4rem, 3vw, 2rem);
	box-shadow: var(--shd-md);
	margin-bottom: 1.25rem;
}
.portal-head__user { display: flex; align-items: center; gap: 1rem; }
.portal-avatar {
	flex-shrink: 0;
	display: grid;
	place-items: center;
	width: 52px;
	height: 52px;
	border-radius: 50%;
	background: var(--accent);
	color: var(--ink);
	font-family: var(--ff-display);
	font-size: 1.4rem;
	font-weight: 700;
}
.portal-head__title { font-size: clamp(1.3rem, 2.4vw, 1.7rem); margin: 0; }
.portal-head__sub { margin: .15rem 0 0; color: var(--ink-soft); font-size: .92rem; }
.portal-signout { flex-shrink: 0; }

.portal-notice {
	background: var(--paper);
	border-radius: var(--r-md);
	border-left: 4px solid var(--accent);
	padding: clamp(1.25rem, 3vw, 1.75rem);
	box-shadow: var(--shd-sm);
	margin-bottom: 1rem;
}
.portal-notice__head {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: 1rem;
	flex-wrap: wrap;
	margin-bottom: .75rem;
}
.portal-notice__title { font-size: 1.2rem; margin: 0; }
.portal-notice__date {
	flex-shrink: 0;
	font-family: var(--ff-nav);
	font-size: .8rem;
	color: var(--ink-soft);
	font-variant-numeric: tabular-nums;
}
.portal-notice__body { font-size: .98rem; }

.portal-empty {
	text-align: center;
	color: var(--ink-soft);
	background: var(--glass-strong);
	border: 1px dashed var(--rule);
	border-radius: var(--r-lg);
	padding: clamp(2.5rem, 6vw, 4rem) 1.5rem;
}
.portal-empty svg { color: var(--accent); margin-bottom: .75rem; }
.portal-empty p { margin: 0; font-size: 1rem; }

@media (max-width: 920px) {
	.layout-2 { grid-template-columns: 1fr; }
	.cta-rail { position: static; flex-direction: row; flex-wrap: wrap; gap: .5rem; }
	.cta-rail__title { width: 100%; margin-bottom: .5rem; }
	.cta-rail a {
		padding: .5rem 1rem;
		border: 1px solid rgba(255, 255, 255, .25);
		border-bottom: 1px solid rgba(255, 255, 255, .25);
		border-radius: var(--r-sm);
		font-size: .9rem;
	}
	.cta-rail a::before { display: none; }
	.cta-rail a:hover { padding-left: 1rem; }
	.news-grid { grid-template-columns: 1fr; }
	.news-card--featured { grid-column: span 1; }
	.djelatnost { grid-template-columns: 44px 1fr auto; gap: 1rem; }
}
@media (max-width: 720px) {
	.nav-toggle { display: inline-flex; }
	.site-meta { display: none; }
	.main-nav { display: none; }
	.main-nav.is-open {
		display: block;
		position: absolute;
		top: 100%;
		left: 0;
		right: 0;
		margin: 0;
		background: var(--glass-strong);
		box-shadow: var(--shd-md);
		border-radius: 0 0 var(--r-md) var(--r-md);
		padding: .25rem var(--gap) 1.25rem;
		z-index: 60;
		max-height: calc(100dvh - var(--header-h));
		overflow-y: auto;
	}
	.main-nav ul { flex-direction: column; gap: 0; }
	.main-nav > ul > li > a { display: block; padding: .75em 0; border-bottom: 1px solid var(--rule); }
	.main-nav .menu-item-has-children > a::after { display: none; }
	.main-nav .sub-menu {
		position: static;
		display: block;
		background: transparent;
		border: 0;
		box-shadow: none;
		padding: 0 0 0 1rem;
		margin: 0;
	}
	.main-nav .sub-menu a {
		padding: .5em 0;
		border-bottom: 1px solid var(--rule);
		font-size: .85rem;
		color: var(--ink-mid);
	}
	.media-frame { aspect-ratio: 16 / 10; }
	.links-list { columns: 1; }
}
@media (max-width: 480px) {
	.scene-grass { height: 26vh; }
}

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

}

.err404 {
	min-height: 50vh;
	display: grid;
	place-items: center;
	text-align: center;
	padding: clamp(3rem, 8vw, 6rem) 0;
}
.err404__inner { max-width: 560px; }
.err404__code {
	display: block;
	font-family: var(--ff-display);
	font-weight: 700;
	font-size: clamp(5rem, 18vw, 11rem);
	line-height: .9;
	letter-spacing: -.04em;
	color: #fff;
	text-shadow: 0 10px 34px rgba(6, 36, 80, .4);
}
.err404__title { color: #fff; margin-top: .4rem; }
.err404__lead {
	color: rgba(255, 255, 255, .85);
	margin: .6rem auto 1.6rem;
	max-width: 42ch;
}

.lightbox {
	position: fixed;
	inset: 0;
	z-index: 10000;
	display: flex;
	align-items: center;
	justify-content: center;
	background: rgba(4, 36, 80, .9);
	padding: 4vmin;
	cursor: zoom-out;
	opacity: 0;
	visibility: hidden;
	transition: opacity .2s ease, visibility .2s;
}
.lightbox.is-open { opacity: 1; visibility: visible; }
.lightbox__img {
	max-width: 92vw;
	max-height: 88vh;
	width: auto;
	height: auto;
	border-radius: var(--r-md);
	box-shadow: 0 30px 80px rgba(0, 0, 0, .5);
	background: #fff;
}
.lightbox__close {
	position: absolute;
	top: 3vmin;
	right: 4vmin;
	width: 44px;
	height: 44px;
	border: 0;
	border-radius: 50%;
	background: rgba(255, 255, 255, .16);
	color: #fff;
	font-size: 26px;
	line-height: 1;
	cursor: pointer;
	transition: background .15s;
}
.lightbox__close:hover { background: rgba(255, 255, 255, .3); }

.prose hr, .page-content hr {
	border: 0;
	height: 1px;
	background: linear-gradient(90deg, transparent, var(--rule) 18%, var(--rule) 82%, transparent);
	margin: 2.2em 0;
}
