/*
 * Valuh prototype: the established palette and fonts, a new composition.
 * Concept: "out of the frame". The logo's open gold frame, with the horse leaping out of it,
 * is the one bold device; it appears three times (hero, founder, contact card). Everything
 * else stays quiet: navy and charcoal bands, white text, gold hairlines.
 */

@font-face {
	font-family: "Gelasio";
	font-weight: 500 600;
	font-display: swap;
	src: url("assets/fonts/gelasio-latin.woff2") format("woff2");
	unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
	font-family: "Gelasio";
	font-weight: 500 600;
	font-display: swap;
	src: url("assets/fonts/gelasio-latin-ext.woff2") format("woff2");
	unicode-range: U+0100-02AF, U+0304, U+0308, U+0329, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20CF, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
	font-family: "Corbel";
	font-weight: 400;
	font-display: swap;
	src: url("assets/fonts/corbel-400.woff") format("woff");
}

@font-face {
	font-family: "Corbel";
	font-weight: 700;
	font-display: swap;
	src: url("assets/fonts/corbel-700.woff") format("woff");
}

/* ------------------------------------------------------------------ tokens */
:root {
	/* Colour: Oxygen globals and the client's stationery. */
	--ink: #101234;          /* business-card navy */
	--charcoal: #252529;     /* "Izbornik podloga" */
	--night: #08090e;        /* footer, hero shade */
	--gold: #be9c5e;         /* "Glavna zlatna", on dark only */
	--gold-text: #8a6d3b;    /* gold text on light (4.85:1) */
	--paper: #e5e9ec;        /* the light "Online" box */
	--white: #fff;
	--text: #2c2d33;         /* body text on light */
	--muted-light: #c9cbd6;  /* secondary text on dark */
	--portrait: #1d2125;     /* background baked into the founder photo: the about band uses it */

	/* Type: Gelasio for headlines, Corbel for everything else. Scale ≈ 1.25. */
	--font-display: "Gelasio", Georgia, serif;
	--font-text: "Corbel", "Segoe UI", Candara, sans-serif;
	--step--1: 0.875rem;
	--step-0: 1.125rem;
	--step-1: 1.375rem;
	--step-2: clamp(1.5rem, 1.2rem + 1vw, 1.875rem);
	--step-3: clamp(2rem, 1.4rem + 2.2vw, 3.25rem);
	--step-4: clamp(2.6rem, 1.4rem + 4.6vw, 5.5rem);

	/* Space and layout. */
	--gutter: clamp(1.25rem, 4vw, 4rem);
	--section: clamp(4.5rem, 9vw, 8.5rem);
	--max: 76rem;
	--line: 1px;
}

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

html {
	scroll-behavior: smooth;
	scroll-padding-top: 6rem;
}

body {
	margin: 0;
	background: var(--white);
	color: var(--text);
	font-family: var(--font-text);
	font-size: var(--step-0);
	line-height: 1.6;
	-webkit-font-smoothing: antialiased;
}

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

h1,
h2,
h3 {
	margin: 0;
	font-family: var(--font-display);
	font-weight: 500;
	line-height: 1.15;
	text-wrap: balance;
}

p {
	margin: 0 0 1em;
	text-wrap: pretty;
}

a {
	color: inherit;
}

:focus-visible {
	outline: 2px solid var(--gold);
	outline-offset: 3px;
}

.sr-only {
	position: absolute;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip: rect(0 0 0 0);
	white-space: nowrap;
}

.skip {
	position: absolute;
	top: 0.5rem;
	left: 0.5rem;
	z-index: 100;
	padding: 0.6rem 1rem;
	background: var(--gold);
	color: var(--night);
	transform: translateY(-200%);
}

.skip:focus {
	transform: none;
}

/* ----------------------------------------------------------------- buttons */
/* The site's own device: an outlined button with a gold line running out of it. */
.button {
	display: inline-flex;
	align-items: center;
	min-height: 48px;
	padding: 0.7rem 2rem;
	font-family: var(--font-text);
	font-size: var(--step-0);
	font-weight: 700;
	text-decoration: none;
	line-height: 1.2;
}

.button--line {
	position: relative;
	margin-right: 3.5rem;
	border: var(--line) solid var(--gold);
	color: var(--white);
}

.button--line::after {
	content: "";
	position: absolute;
	top: 50%;
	left: calc(100% - 0.75rem);
	width: 3.5rem;
	height: var(--line);
	background: var(--gold);
	transform-origin: left center;
}

.button--line:hover {
	background: rgb(190 156 94 / 0.12);
}

.button--gold {
	background: var(--gold);
	color: var(--night);
}

.button--gold:hover {
	background: #cdb07a;
}

.text-link {
	color: var(--gold-text);
	font-weight: 700;
	text-decoration: underline;
	text-decoration-thickness: 1px;
	text-underline-offset: 0.3em;
}

.text-link--light {
	color: var(--gold);
}

/* ------------------------------------------------------------------ header */
.site-header {
	position: fixed;
	inset: 0 0 auto;
	z-index: 50;
	transition: background-color 0.3s ease, box-shadow 0.3s ease;
}

.site-header.is-solid {
	background: var(--ink);
	box-shadow: 0 1px 0 rgb(190 156 94 / 0.35);
}

.site-header__inner {
	display: flex;
	align-items: center;
	gap: 2rem;
	max-width: var(--max);
	margin: 0 auto;
	padding: 1.1rem var(--gutter);
	transition: padding 0.3s ease;
}

.site-header.is-solid .site-header__inner {
	padding-block: 0.55rem;
}

.site-header__logo img {
	width: 96px;
	transition: width 0.3s ease;
}

.site-header.is-solid .site-header__logo img {
	width: 66px;
}

.site-header__toggle {
	display: none;
}

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

.site-nav__list {
	display: flex;
	gap: 2rem;
	margin: 0;
	padding: 0;
	list-style: none;
}

.site-nav__list a {
	display: inline-block;
	padding: 0.5rem 0;
	color: var(--white);
	font-size: 1.0625rem;
	text-decoration: none;
	background: linear-gradient(var(--gold), var(--gold)) no-repeat 0 100% / 0 var(--line);
	transition: background-size 0.35s ease;
}

.site-nav__list a:hover,
.site-nav__list a[aria-current="true"],
.site-nav__list a[aria-current="page"] {
	background-size: 100% var(--line);
}

.site-nav__phone {
	padding: 0.55rem 1.1rem;
	border: var(--line) solid var(--gold);
	color: var(--gold);
	font-weight: 700;
	text-decoration: none;
	white-space: nowrap;
}

.site-nav__phone:hover {
	background: var(--gold);
	color: var(--night);
}

/* -------------------------------------------------------------------- hero */
.hero {
	position: relative;
	display: grid;
	min-height: min(100svh, 56rem);
	background: var(--night);
	color: var(--white);
	isolation: isolate;
}

.hero__media {
	position: absolute;
	inset: 0;
	z-index: -2;
	overflow: hidden;
}

/*
 * Desktop: the photo is enlarged and shifted so Željko (63.5% / 35.8% of the photo) sits at
 * 82% across the screen, clear of the centred frame. The minimum width keeps the photo
 * covering the hero on squarer screens.
 */
.hero__photo {
	position: absolute;
	top: 36%;
	left: 82%;
	width: max(130%, min(160svh, 92rem));
	max-width: none;
	height: auto;
	transform: translate(-63.5%, -35.8%);
}

.hero::before {
	content: "";
	position: absolute;
	inset: 0;
	z-index: -1;
	background:
		linear-gradient(180deg, rgb(8 9 14 / 0.65) 0, rgb(8 9 14 / 0) 11rem),
		linear-gradient(90deg, rgb(16 18 52 / 0.86) 0%, rgb(16 18 52 / 0.8) 30%, rgb(16 18 52 / 0.8) 62%, rgb(16 18 52 / 0.3) 80%, rgb(16 18 52 / 0.15) 100%);
}

.hero::after {
	content: "";
	position: absolute;
	inset: auto 0 0;
	z-index: -1;
	height: 9rem;
	background: linear-gradient(0deg, var(--ink) 0, rgb(16 18 52 / 0) 100%);
}

.hero__inner {
	align-self: center;
	width: 100%;
	max-width: var(--max);
	margin: 0 auto;
	/* Header height plus breathing room above the frame. */
	padding: calc(6.5rem + clamp(4rem, 8vw, 7.5rem)) var(--gutter) 5rem;
}

/*
 * The open frame. Built like the logo: the top line stops short (where the horse leaps out),
 * the left line is broken where the headline crosses it, the right line starts below the top.
 */
.frame {
	position: relative;
	max-width: 46rem;
	margin: 0 auto;
}

.frame__top {
	display: block;
	width: 68%;
	height: 3.25rem;
	border-top: var(--line) solid var(--gold);
	border-left: var(--line) solid var(--gold);
}

.hero__title {
	position: relative;
	/* Two lines on purpose: on one line "ured" would run over Željko's face in the photo. */
	max-width: 10ch;
	margin: 0.4rem 0 0.9rem calc(-1 * clamp(2.5rem, 7vw, 7rem));
	font-size: var(--step-4);
	font-weight: 500;
	line-height: 1.04;
	letter-spacing: -0.015em;
}


.frame__body {
	padding: 1.75rem 2.75rem 2.75rem;
	border-left: var(--line) solid var(--gold);
	border-bottom: var(--line) solid var(--gold);
	border-right: var(--line) solid var(--gold);
	clip-path: inset(0 0 0 0);
}

.hero__lead {
	max-width: 30em;
	margin-bottom: 2.25rem;
	color: #eceef4;
	font-size: var(--step-1);
	line-height: 1.55;
}

.hero__actions {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 1.25rem 0.75rem;
}

.hero__phone {
	color: var(--muted-light);
	text-decoration: none;
}

.hero__phone span {
	color: var(--gold);
	font-weight: 700;
	white-space: nowrap;
	border-bottom: var(--line) solid currentColor;
}

/* ---------------------------------------------------------------- services */
.services {
	padding: var(--section) var(--gutter);
	background: var(--ink);
	color: var(--white);
}

.services__inner {
	display: grid;
	grid-template-columns: minmax(16rem, 5fr) 7fr;
	gap: clamp(2.5rem, 6vw, 6rem);
	max-width: var(--max);
	margin: 0 auto;
}

.services__intro {
	align-self: start;
	position: sticky;
	top: 7rem;
}

.services__intro h2 {
	margin-bottom: 1.5rem;
	font-size: var(--step-3);
}

.services__intro p {
	max-width: 28em;
	margin-bottom: 2.5rem;
	color: var(--muted-light);
}

.ledger {
	margin: 0;
	padding: 0;
	list-style: none;
	border-top: var(--line) solid rgb(190 156 94 / 0.5);
}

.ledger__row {
	position: relative;
	display: grid;
	grid-template-columns: 4rem 1fr;
	gap: 1.75rem;
	align-items: start;
	padding: 2rem 0;
	border-bottom: var(--line) solid rgb(190 156 94 / 0.5);
}

/* The gold rule under the hovered row runs out to full strength. */
.ledger__row::after {
	content: "";
	position: absolute;
	left: 0;
	bottom: -1px;
	width: 100%;
	height: var(--line);
	background: var(--gold);
	transform: scaleX(0);
	transform-origin: left center;
}

.ledger__icon {
	width: 4rem;
	height: auto;
}

.ledger__text h3 {
	margin-bottom: 0.5rem;
	font-size: var(--step-2);
}

.ledger__text h3 a {
	text-decoration: none;
}

/* The whole row is the link's target area. */
.ledger__text h3 a::before {
	content: "";
	position: absolute;
	inset: 0;
}

.ledger__text p {
	max-width: 34em;
	margin: 0;
	color: var(--muted-light);
	font-size: 1.0625rem;
}

/* ------------------------------------------------------------------ online */
/* The established overlap: a light box that hangs over the next (dark) band. */
.online {
	position: relative;
	z-index: 1;
	padding: var(--section) var(--gutter) 0;
	background: var(--white);
}

.online__inner {
	display: grid;
	grid-template-columns: 5fr 7fr;
	gap: clamp(2rem, 5vw, 4rem);
	align-items: start;
	max-width: var(--max);
	margin: 0 auto;
}

.online__band h2 {
	color: var(--ink);
	font-size: var(--step-3);
}

.online__box {
	margin-bottom: -7rem;
	padding: clamp(2rem, 4vw, 3.5rem);
	background: var(--paper);
	border-top: 3px solid var(--gold);
	font-size: var(--step-1);
	line-height: 1.6;
}

.online__box p:last-child {
	margin: 0;
	color: #4a4c55;
	font-size: var(--step-0);
}

/* ------------------------------------------------------------------- about */
.about {
	padding: calc(var(--section) + 7rem) var(--gutter) var(--section);
	background: var(--portrait);
	color: var(--white);
}

.about__inner {
	display: grid;
	grid-template-columns: 5fr 7fr;
	gap: clamp(2.5rem, 7vw, 7rem);
	align-items: center;
	max-width: var(--max);
	margin: 0 auto;
}

.about__portrait {
	position: relative;
	max-width: 27rem;
	margin: 0;
	padding: 0 0 1.75rem 1.75rem;
}

/* The frame holds the lower half; the portrait rises out of its open top, like the horse. */
.about__frame {
	position: absolute;
	inset: 42% 1.75rem 0 0;
	border: var(--line) solid var(--gold);
	border-top: 0;
}

.about__frame::before {
	content: "";
	position: absolute;
	top: 0;
	left: 0;
	width: 22%;
	height: var(--line);
	background: var(--gold);
}

/* Square crop round the circle in the photo (drops its dark corners and a stray line). */
.about__portrait img {
	position: relative;
	width: 100%;
	aspect-ratio: 1;
	object-fit: cover;
	object-position: 50% 52%;
	border-radius: 50%;
	clip-path: circle(46.5% at 50% 50%);
}

.about__text h2 {
	margin-bottom: 1.5rem;
	font-size: var(--step-3);
}

.about__lead {
	color: var(--white);
	font-family: var(--font-display);
	font-size: var(--step-2);
	line-height: 1.35;
}

.about__text p:not(.about__lead) {
	max-width: 34em;
	color: var(--muted-light);
}

.about__text .button {
	margin-top: 1.5rem;
}

/* -------------------------------------------------------------------- news */
.news {
	padding: var(--section) var(--gutter);
	background: var(--white);
}

.news__inner {
	max-width: var(--max);
	margin: 0 auto;
}

.news__head {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	justify-content: space-between;
	gap: 1rem;
	margin-bottom: 3rem;
	padding-bottom: 1.25rem;
	border-bottom: var(--line) solid var(--gold);
}

.news__head h2 {
	color: var(--ink);
	font-size: var(--step-3);
}

.news__grid {
	display: grid;
	grid-template-columns: 7fr 5fr;
	gap: clamp(2rem, 5vw, 4.5rem);
}

.story {
	position: relative;
}

.story img {
	width: 100%;
	aspect-ratio: 3 / 2;
	object-fit: cover;
	margin-bottom: 1.25rem;
}

.story__date {
	margin-bottom: 0.35rem;
	color: var(--gold-text);
	font-size: var(--step--1);
	font-weight: 700;
}

.story h2,
.story h3 {
	margin-bottom: 0.75rem;
	color: var(--ink);
	font-size: var(--step-1);
	line-height: 1.25;
}

.story--lead h3 {
	font-size: var(--step-2);
}

.story h2 a,
.story h3 a {
	text-decoration: none;
}

.story h2 a::before,
.story h3 a::before {
	content: "";
	position: absolute;
	inset: 0;
}

.story p:last-child {
	margin: 0;
	color: #4a4c55;
}

.news__list {
	display: grid;
	align-content: start;
	gap: 2rem;
}

.news__list .story {
	display: grid;
	grid-template-columns: 9.5rem 1fr;
	gap: 1.5rem;
	padding-bottom: 2rem;
	border-bottom: var(--line) solid #d9dce3;
}

.news__list .story img {
	aspect-ratio: 1;
	margin: 0;
}

.news__list .story p:last-child {
	font-size: 1rem;
}

/* ----------------------------------------------------------------- contact */
.contact {
	background: var(--ink);
	color: var(--white);
}

.contact__inner {
	display: grid;
	grid-template-columns: 1fr 1fr;
	align-items: center;
	max-width: 90rem;
	margin: 0 auto;
}

.contact__photo {
	width: 100%;
	height: 100%;
	min-height: 28rem;
	object-fit: cover;
	object-position: 70% 55%;
}

/* The business card: same navy, same open gold frame, same details. */
.card {
	position: relative;
	margin: var(--section) var(--gutter);
	padding: clamp(2rem, 4vw, 3.5rem);
	border: var(--line) solid var(--gold);
	border-right-color: transparent;
}

.card::after {
	content: "";
	position: absolute;
	right: -1px;
	bottom: -1px;
	width: var(--line);
	height: 62%;
	background: var(--gold);
}

.card h2 {
	margin-bottom: 2rem;
	font-size: var(--step-2);
	line-height: 1.3;
}

.card__details {
	margin-bottom: 2.25rem;
	font-style: normal;
}

.card__details p {
	margin: 0 0 0.3rem;
}

.card__details a {
	text-decoration: none;
}

.card__details a:hover {
	color: var(--gold);
}

.card__name {
	font-weight: 700;
	letter-spacing: 0.02em;
}

.card__name span {
	display: block;
	color: var(--gold);
	font-weight: 400;
	font-style: italic;
}

.card__actions {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 1.25rem 2rem;
}

/* ------------------------------------------------------------------ footer */
.site-footer {
	padding: 4rem var(--gutter) 2rem;
	background: var(--night);
	color: var(--muted-light);
	font-size: 1rem;
}

.site-footer__inner {
	display: grid;
	grid-template-columns: 2fr repeat(3, 3fr);
	gap: 2.5rem;
	max-width: var(--max);
	margin: 0 auto;
	padding-bottom: 3rem;
	border-bottom: var(--line) solid rgb(190 156 94 / 0.3);
}

.site-footer__logo {
	width: 8.5rem;
}

.site-footer h2 {
	margin-bottom: 0.75rem;
	color: var(--white);
	font-family: var(--font-text);
	font-size: 1rem;
	font-weight: 700;
}

.site-footer a {
	text-decoration: none;
}

.site-footer a:hover {
	color: var(--gold);
	text-decoration: underline;
}

.site-footer__legal {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	gap: 0.5rem 2rem;
	max-width: var(--max);
	margin: 1.5rem auto 0;
	font-size: var(--step--1);
}

.site-footer__legal p {
	margin: 0;
}

/* Honeypot: off-screen for people, still in the form for bots. */
.form__trap {
	position: absolute;
	left: -10000px;
	width: 1px;
	height: 1px;
	overflow: hidden;
}

.article--single {
	grid-template-columns: minmax(0, 42rem);
}

.table-wrap {
	margin: 2rem 0;
	overflow-x: auto;
}

.prose table {
	width: 100%;
	border-collapse: collapse;
	font-size: 1rem;
	line-height: 1.5;
}

.prose caption {
	margin-bottom: 0.75rem;
	color: var(--ink);
	font-weight: 700;
	text-align: left;
}

.prose th,
.prose td {
	padding: 0.75rem;
	border-bottom: var(--line) solid #d6d9e0;
	text-align: left;
	vertical-align: top;
}

.prose thead th {
	border-bottom: 2px solid var(--gold);
	color: var(--ink);
}

.prose tbody th {
	white-space: nowrap;
}

.prose tbody th span {
	color: #5d5f68;
	font-weight: 400;
}

.prose__source {
	color: #5d5f68;
	font-size: 1rem;
}

.form__summary p,
.form__done p {
	margin: 0;
}

/* ================================================================ subpages */

/* Page head: navy band under the (solid) header; no frame here, it stays special. */
.page-head {
	padding: calc(7.5rem + 2vw) var(--gutter) clamp(3rem, 6vw, 5rem);
	background: var(--ink);
	color: var(--white);
}

.page-head__inner {
	max-width: var(--max);
	margin: 0 auto;
}

.crumbs {
	margin: 0 0 1.5rem;
	padding: 0;
	list-style: none;
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
	color: var(--muted-light);
	font-size: var(--step--1);
}

.crumbs li + li::before {
	content: "/";
	margin-right: 0.5rem;
	color: var(--gold);
}

.crumbs a {
	text-decoration: none;
}

.crumbs a:hover {
	color: var(--gold);
	text-decoration: underline;
}

.page-head h1 {
	max-width: 18ch;
	font-size: var(--step-4);
}

.page-head__lead {
	max-width: 36em;
	margin: 1.5rem 0 0;
	color: var(--muted-light);
	font-size: var(--step-1);
	line-height: 1.55;
}

.band {
	padding: var(--section) var(--gutter);
}

.band__inner {
	max-width: var(--max);
	margin: 0 auto;
}

/* Closing call to action on subpages. */
.cta {
	padding: clamp(3.5rem, 7vw, 6rem) var(--gutter);
	background: var(--charcoal);
	color: var(--white);
}

.cta__inner {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 2rem 3rem;
	max-width: var(--max);
	margin: 0 auto;
}

.cta h2 {
	max-width: 22ch;
	font-size: var(--step-3);
}

.cta__actions {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 1.25rem 2rem;
}

/* ------------------------------------------------------------ usluge page */
.catalogue {
	display: grid;
	grid-template-columns: 15rem 1fr;
	gap: clamp(2.5rem, 6vw, 6rem);
	max-width: var(--max);
	margin: 0 auto;
}

.catalogue__index {
	align-self: start;
	position: sticky;
	top: 7rem;
}

.catalogue__index h2 {
	margin-bottom: 1rem;
	color: var(--ink);
	font-family: var(--font-text);
	font-size: 1rem;
	font-weight: 700;
}

.catalogue__index ul {
	margin: 0;
	padding: 0;
	list-style: none;
	border-left: var(--line) solid #d6d9e0;
}

.catalogue__index a {
	display: block;
	margin-left: -1px;
	padding: 0.45rem 0 0.45rem 1rem;
	border-left: 2px solid transparent;
	color: var(--text);
	text-decoration: none;
}

.catalogue__index a:hover,
.catalogue__index a[aria-current="true"] {
	border-left-color: var(--gold);
	color: var(--ink);
	font-weight: 700;
}

.service {
	padding: 0 0 clamp(3rem, 6vw, 5rem);
	margin-bottom: clamp(3rem, 6vw, 5rem);
	border-bottom: var(--line) solid #d6d9e0;
	scroll-margin-top: 7rem;
}

.service:last-child {
	margin-bottom: 0;
	border-bottom: 0;
}

.service__head {
	display: grid;
	grid-template-columns: 4.5rem 1fr;
	gap: 1.5rem;
	align-items: center;
	margin-bottom: 1.5rem;
}

/* The client's icons are drawn for dark grounds. */
.service__icon {
	display: grid;
	place-items: center;
	width: 4.5rem;
	height: 4.5rem;
	background: var(--ink);
}

.service__icon img {
	width: 2.9rem;
}

.service h2 {
	color: var(--ink);
	font-size: var(--step-3);
}

.service__lead {
	max-width: 38em;
	margin-bottom: 2rem;
	font-size: var(--step-1);
	line-height: 1.55;
}

.service h3 {
	margin: 2rem 0 1rem;
	color: var(--ink);
	font-size: var(--step-2);
}

.includes {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 0 2.5rem;
	margin: 0 0 2rem;
	padding: 0;
	list-style: none;
}

.includes li {
	padding: 0.9rem 0;
	border-top: var(--line) solid rgb(190 156 94 / 0.55);
	font-size: 1.0625rem;
	line-height: 1.5;
}

.includes strong {
	display: block;
	color: var(--ink);
}

.includes span {
	color: #50525b;
}

.service .text-link {
	font-size: var(--step-0);
}

/* ----------------------------------------------------------- o uredu page */
.about--page {
	padding-top: var(--section);
}

.office {
	display: grid;
	grid-template-columns: 7fr 5fr;
	gap: clamp(2rem, 5vw, 4.5rem);
	align-items: center;
	max-width: var(--max);
	margin: 0 auto;
}

.office img {
	width: 100%;
	aspect-ratio: 3 / 2;
	object-fit: cover;
}

.office h2 {
	margin-bottom: 1.25rem;
	color: var(--ink);
	font-size: var(--step-3);
}

.office p {
	max-width: 32em;
}

/* --------------------------------------------------------- novosti pages */
.news-list {
	max-width: 60rem;
	margin: 0 auto;
	padding: 0;
	list-style: none;
}

.news-list .story {
	display: grid;
	grid-template-columns: 16rem 1fr;
	gap: 2rem;
	padding: 2.5rem 0;
	border-bottom: var(--line) solid #d9dce3;
}

.news-list .story:first-child {
	padding-top: 0;
}

.news-list .story img {
	margin: 0;
}

.article {
	display: grid;
	grid-template-columns: minmax(0, 42rem) 16rem;
	gap: clamp(2.5rem, 6vw, 6rem);
	max-width: var(--max);
	margin: 0 auto;
	justify-content: center;
}

.article__meta {
	color: var(--gold-text);
	font-weight: 700;
}

.prose {
	font-size: 1.1875rem;
	line-height: 1.75;
}

.prose h2 {
	margin: 2.5rem 0 1rem;
	color: var(--ink);
	font-size: var(--step-2);
}

.prose img {
	width: 100%;
	margin: 2rem 0;
}

.prose a {
	color: var(--gold-text);
	text-decoration: underline;
	text-underline-offset: 0.2em;
}

.prose a:hover {
	color: var(--ink);
}

.aside-card {
	align-self: start;
	position: sticky;
	top: 7rem;
	padding: 1.75rem;
	background: var(--ink);
	color: var(--white);
}

.aside-card h2 {
	margin-bottom: 0.75rem;
	font-size: var(--step-1);
}

.aside-card p {
	color: var(--muted-light);
	font-size: 1rem;
}

.aside-card .button {
	margin-top: 0.5rem;
	margin-right: 2.5rem;
	padding-inline: 1.25rem;
	white-space: nowrap;
}

.aside-card .button--line::after {
	width: 2.5rem;
}

.article__more {
	margin-top: 3rem;
	padding-top: 2rem;
	border-top: var(--line) solid var(--gold);
}

.article__more h2 {
	margin-bottom: 1rem;
	color: var(--ink);
	font-size: var(--step-1);
}

/* ---------------------------------------------------------- kontakt page */
.contact-page {
	display: grid;
	grid-template-columns: 7fr 5fr;
	gap: clamp(2.5rem, 6vw, 6rem);
	max-width: var(--max);
	margin: 0 auto;
	align-items: start;
}

.contact-page .card {
	margin: 0;
	background: var(--ink);
	color: var(--white);
}

.card__company {
	margin-top: 2rem;
	padding-top: 1.5rem;
	border-top: var(--line) solid rgb(190 156 94 / 0.4);
	color: var(--muted-light);
	font-size: 1rem;
}

.card__company p {
	margin: 0 0 0.25rem;
}

.form h2 {
	margin-bottom: 0.5rem;
	color: var(--ink);
	font-size: var(--step-3);
}

.form__intro {
	margin-bottom: 2rem;
	color: #50525b;
}

.field {
	margin-bottom: 1.4rem;
}

.field label {
	display: block;
	margin-bottom: 0.4rem;
	color: var(--ink);
	font-weight: 700;
}

.field__optional {
	color: #5d5f68;
	font-weight: 400;
}

.field input,
.field select,
.field textarea {
	display: block;
	width: 100%;
	min-height: 48px;
	padding: 0.7rem 0.9rem;
	border: var(--line) solid #9a9eaa;
	border-radius: 0;
	background: var(--white);
	color: var(--text);
	font: inherit;
}

.field textarea {
	min-height: 9rem;
	resize: vertical;
}

/* One height for every single-line field. */
.field input,
.field select {
	height: 3.25rem;
}

/* Same height, border and corners as the text fields in every browser (Safari draws its own). */
.field select {
	-webkit-appearance: none;
	appearance: none;
	padding-right: 2.75rem;
	background: var(--white) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='9' viewBox='0 0 14 9'%3E%3Cpath d='M1 1l6 6 6-6' fill='none' stroke='%23101234' stroke-width='2'/%3E%3C/svg%3E") no-repeat right 1rem center / 14px 9px;
	cursor: pointer;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
	border-color: var(--ink);
	outline: 2px solid var(--gold);
	outline-offset: 0;
}

.field [aria-invalid="true"] {
	border-color: #a3261b;
}

.field__error {
	margin: 0.35rem 0 0;
	color: #a3261b;
	font-size: 1rem;
	font-weight: 700;
}

.form__note {
	margin: 1.5rem 0;
	color: #50525b;
	font-size: 1rem;
}

.form .button--gold {
	border: 0;
	cursor: pointer;
}

.form__summary,
.form__done {
	margin-bottom: 2rem;
	padding: 1.25rem 1.5rem;
	border-left: 3px solid #a3261b;
	background: #f9eceb;
}

.form__summary h3,
.form__done h3 {
	margin-bottom: 0.5rem;
	font-family: var(--font-text);
	font-size: var(--step-0);
	font-weight: 700;
}

.form__summary ul {
	margin: 0;
	padding-left: 1.2rem;
}

.form__summary a {
	color: #a3261b;
}

.form__done {
	border-left-color: var(--gold);
	background: var(--paper);
}

.map-hold {
	display: grid;
	place-items: center;
	gap: 0.75rem;
	min-height: 18rem;
	margin-top: var(--section);
	padding: 2rem;
	background: var(--charcoal);
	color: var(--muted-light);
	text-align: center;
}

.map-hold p {
	max-width: 40ch;
	margin: 0;
	font-size: 1rem;
}

.map-hold iframe {
	width: 100%;
	height: 26rem;
	border: 0;
}

.map-wrap {
	max-width: var(--max);
	margin: 0 auto;
}

.button--outline-light {
	border: var(--line) solid var(--gold);
	background: transparent;
	color: var(--white);
	cursor: pointer;
}

.button--outline-light:hover {
	background: var(--gold);
	color: var(--night);
}

/* ------------------------------------------------------------------ motion */
@media (hover: hover) and (prefers-reduced-motion: no-preference) {
	.button--line::after,
	.ledger__row::after {
		transition: transform 0.5s ease;
	}

	.button--line:hover::after {
		transform: scaleX(1.6);
	}

	.ledger__row:hover::after {
		transform: scaleX(1);
	}

	.story img {
		transition: filter 0.4s ease;
	}

	.story:hover img {
		filter: brightness(1.06) saturate(1.1);
	}

	.story:hover h2,
	.story:hover h3 {
		color: var(--gold-text);
	}
}

/* Mobile menu: fades in, items rise one after another, the horse drifts in behind them. */
@media (max-width: 52rem) and (prefers-reduced-motion: no-preference) {
	.site-nav {
		transition: opacity 0.35s ease, visibility 0s linear 0.35s;
	}

	.site-nav.is-open {
		transition: opacity 0.35s ease, visibility 0s;
	}

	.site-nav__list li,
	.site-nav__phone {
		opacity: 0;
		transform: translateY(0.9rem);
		transition: opacity 0.4s ease, transform 0.5s cubic-bezier(0.2, 0.8, 0.2, 1);
	}

	.site-nav.is-open .site-nav__list li,
	.site-nav.is-open .site-nav__phone {
		opacity: 1;
		transform: none;
	}

	.site-nav.is-open .site-nav__list li:nth-child(1) { transition-delay: 0.08s; }
	.site-nav.is-open .site-nav__list li:nth-child(2) { transition-delay: 0.14s; }
	.site-nav.is-open .site-nav__list li:nth-child(3) { transition-delay: 0.2s; }
	.site-nav.is-open .site-nav__list li:nth-child(4) { transition-delay: 0.26s; }
	.site-nav.is-open .site-nav__phone { transition-delay: 0.34s; }

	.site-nav::before {
		transform: translate(2.5rem, 1.5rem);
		transition: transform 1.1s cubic-bezier(0.2, 0.8, 0.2, 1);
	}

	.site-nav.is-open::before {
		transform: none;
	}
}

/* The one orchestrated moment: the hero frame draws itself as the page opens. */
@media (prefers-reduced-motion: no-preference) {
	.js .frame__top,
	.js .frame__body {
		animation: frame-draw 1.1s cubic-bezier(0.65, 0, 0.35, 1) both;
	}

	.js .frame__body {
		animation-delay: 0.35s;
	}

	.js .hero__title,
	.js .hero__lead,
	.js .hero__actions {
		animation: rise 0.9s ease both;
	}


	.js .hero__title { animation-delay: 0.15s; }
	.js .hero__lead { animation-delay: 0.65s; }
	.js .hero__actions { animation-delay: 0.85s; }
}

@keyframes frame-draw {
	from { clip-path: inset(0 100% 100% 0); }
	to { clip-path: inset(0 0 0 0); }
}

@keyframes rise {
	from { opacity: 0; transform: translateY(0.75rem); }
	to { opacity: 1; transform: none; }
}

/* Short laptop screens: keep the whole hero, phone line included, above the fold. */
@media (min-width: 52.01rem) and (max-height: 820px) {
	.hero__inner {
		padding-top: calc(6rem + clamp(4.5rem, 8vw, 7.5rem));
		padding-bottom: 2.5rem;
	}

	.hero__title {
		font-size: clamp(2.6rem, 1rem + 4.2vw, 4.6rem);
	}

	.frame__top {
		height: 2.5rem;
	}

	.frame__body {
		padding-top: 1.25rem;
		padding-bottom: 2rem;
	}

	.hero__lead {
		margin-bottom: 1.5rem;
	}

}

/* -------------------------------------------------------------- responsive */
@media (max-width: 62rem) {
	.services__inner,
	.about__inner,
	.news__grid,
	.online__inner {
		grid-template-columns: 1fr;
	}

	.services__intro {
		position: static;
	}

	.online__inner {
		gap: 1.5rem;
	}

	.about__portrait {
		max-width: 22rem;
	}

	.contact__inner {
		grid-template-columns: 1fr;
	}

	.contact__photo {
		min-height: 16rem;
		max-height: 22rem;
	}

	.site-footer__inner {
		grid-template-columns: 1fr 1fr;
	}

	.site-footer__logo {
		grid-column: 1 / -1;
	}
}

@media (max-width: 62rem) {
	.catalogue,
	.article,
	.contact-page,
	.office {
		grid-template-columns: 1fr;
	}

	.catalogue__index,
	.aside-card {
		position: static;
	}

	.catalogue__index ul {
		display: flex;
		flex-wrap: wrap;
		gap: 0.25rem 1.25rem;
		border-left: 0;
	}

	.catalogue__index a {
		margin: 0;
		padding: 0.4rem 0;
		border-left: 0;
		border-bottom: 2px solid transparent;
	}

	.catalogue__index a:hover {
		border-bottom-color: var(--gold);
	}
}

@media (max-width: 52rem) {
	.includes {
		grid-template-columns: 1fr;
	}

	.news-list .story {
		grid-template-columns: 1fr;
		gap: 1.25rem;
	}

	.service__head {
		grid-template-columns: 3.5rem 1fr;
		gap: 1rem;
	}

	.service__icon {
		width: 3.5rem;
		height: 3.5rem;
	}

	.service__icon img {
		width: 2.3rem;
	}

	.site-header__toggle {
		display: inline-flex;
		align-items: center;
		gap: 0.6rem;
		min-height: 44px;
		margin-left: auto;
		padding: 0.5rem 0.25rem;
		border: 0;
		background: none;
		color: var(--white);
		font: inherit;
		font-size: 1rem;
		cursor: pointer;
	}

	.site-header__toggle-lines,
	.site-header__toggle-lines::before,
	.site-header__toggle-lines::after {
		display: block;
		width: 1.5rem;
		height: 2px;
		background: var(--gold);
		transition: transform 0.25s ease, opacity 0.25s ease;
	}

	.site-header__toggle-lines {
		position: relative;
	}

	.site-header__toggle-lines::before,
	.site-header__toggle-lines::after {
		content: "";
		position: absolute;
		left: 0;
	}

	.site-header__toggle-lines::before { top: -7px; }
	.site-header__toggle-lines::after { top: 7px; }

	[aria-expanded="true"] .site-header__toggle-lines { background: transparent; }
	[aria-expanded="true"] .site-header__toggle-lines::before { transform: translateY(7px) rotate(45deg); }
	[aria-expanded="true"] .site-header__toggle-lines::after { transform: translateY(-7px) rotate(-45deg); }

	/* Mobile menu: full-screen navy with the horse from the logo as a faint silhouette. */
	.site-nav {
		position: fixed;
		inset: 0;
		z-index: -1;
		display: flex;
		flex-direction: column;
		justify-content: center;
		gap: 3rem;
		margin: 0;
		overflow: hidden;
		background: var(--ink);
		visibility: hidden;
		opacity: 0;
	}

	.site-nav::before {
		content: "";
		position: absolute;
		right: 6%;
		bottom: 6%;
		width: 82%;
		aspect-ratio: 435 / 278;
		background: url("assets/img/konj.webp") no-repeat center / contain;
		opacity: 0.09;
		pointer-events: none;
	}

	.site-nav.is-open {
		visibility: visible;
		opacity: 1;
	}

	.site-nav__list {
		position: relative;
		flex-direction: column;
		align-items: center;
		gap: 1.25rem;
	}

	.site-nav__list a {
		font-family: var(--font-display);
		font-size: 2rem;
	}

	.site-nav__phone {
		position: relative;
		align-self: center;
	}

	.site-header__logo {
		position: relative;
		z-index: 1;
	}

	.frame {
		margin-left: 1.75rem;
	}

	.hero__title {
		margin-left: -1.75rem;
	}

	.frame__body {
		padding: 1.5rem 1.5rem 2rem;
	}

	/*
	 * Narrow screens: the hero keeps the photo behind a navy overlay, as on the original mobile
	 * hero, but moved and enlarged so Željko Valuh (the owner: at 63.5% / 35.8% of the photo)
	 * shows at the top, above the framed text.
	 */
	.hero {
		display: block;
		min-height: 0;
		padding-top: 4.6rem;
		background: var(--ink);
	}

	/* Solid header: the logo never sits on a bright wall. */
	.site-header {
		background: var(--ink);
		box-shadow: 0 1px 0 rgb(190 156 94 / 0.35);
	}

	.site-header__inner {
		padding-block: 0.55rem;
	}

	.site-header__logo img {
		width: 66px;
	}

	/* The photo ends softly into the navy instead of on a hard edge. */
	.hero__media {
		inset: 4.6rem 0 auto;
		height: 32rem;
		-webkit-mask-image: linear-gradient(180deg, #000 55%, transparent 100%);
		mask-image: linear-gradient(180deg, #000 55%, transparent 100%);
	}

	.hero__photo {
		top: 5rem;
		left: 50%;
		width: 250%;
	}

	.hero::before {
		inset: 4.6rem 0 0;
		background: linear-gradient(180deg,
			rgb(16 18 52 / 0.5) 0,
			rgb(16 18 52 / 0.6) 9rem,
			rgb(16 18 52 / 0.86) 15rem,
			rgb(16 18 52 / 0.95) 26rem);
	}

	.hero::after {
		display: none;
	}

	.hero__inner {
		position: relative;
		z-index: 1;
		padding: 9rem var(--gutter) 4.5rem;
	}

	.news__list .story {
		grid-template-columns: 6.5rem 1fr;
		gap: 1rem;
	}
}

/* Tablets: a gentler zoom on the same point. */
@media (min-width: 30.01rem) and (max-width: 52rem) {
	.hero__photo {
		width: 150%;
	}
}

@media (max-width: 30rem) {
	.frame__top {
		width: 60%;
	}


	.button--line {
		margin-right: 2.5rem;
	}

	.button--line::after {
		width: 2.5rem;
	}

	.ledger__row {
		grid-template-columns: 3rem 1fr;
		gap: 1.25rem;
	}

	.ledger__icon {
		width: 3rem;
	}

	.site-footer__inner {
		grid-template-columns: 1fr;
	}
}
