/* =========================================================
   Čisto rješenje – theme styles
   ========================================================= */

:root {
	--ink: #0A1A2F;
	--ink-2: #10284A;
	--ink-3: #183A63;
	--aqua: #2BB0EC;
	--sun: #F5AE3A;
	--aqua-2: #9ADCFB;
	--sky: #CFF6FF;
	--paper: #F5F9FC;
	--white: #FFFFFF;
	--text: #0F1D2E;
	--muted: #5A6B7E;
	--line: #E1E9F1;
	--ok: #19A974;
	--err: #E5484D;

	--radius: 18px;
	--radius-lg: 28px;
	--shadow-sm: 0 1px 2px rgba(10, 26, 47, .06), 0 2px 8px rgba(10, 26, 47, .05);
	--shadow: 0 10px 30px -10px rgba(10, 26, 47, .18), 0 2px 6px rgba(10, 26, 47, .05);
	--shadow-lg: 0 30px 60px -20px rgba(10, 26, 47, .35);

	--font: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
	--ease: cubic-bezier(.2, .7, .2, 1);
	--header-h: 76px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); -webkit-text-size-adjust: 100%; }
body {
	margin: 0;
	font-family: var(--font);
	font-size: 17px;
	line-height: 1.6;
	color: var(--text);
	background: var(--white);
	-webkit-font-smoothing: antialiased;
	text-rendering: optimizeLegibility;
	overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
button { font: inherit; color: inherit; }
h1, h2, h3 { line-height: 1.12; margin: 0; letter-spacing: -.02em; }
p { margin: 0; }
:focus-visible { outline: 3px solid var(--aqua); outline-offset: 3px; border-radius: 6px; }

.container { width: min(1200px, 100% - 40px); margin-inline: auto; }
.container--narrow { width: min(760px, 100% - 40px); }

.screen-reader-text, .hp {
	position: absolute !important; width: 1px; height: 1px; overflow: hidden;
	clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap;
}
.skip-link {
	position: absolute; left: 12px; top: -60px; z-index: 1000;
	background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 10px; text-decoration: none;
	transition: top .2s;
}
.skip-link:focus { top: 12px; }

.ico { width: 1.25em; height: 1.25em; flex: none; }

/* ---------- Buttons ---------- */
.btn {
	--b-bg: var(--ink); --b-fg: #fff;
	display: inline-flex; align-items: center; justify-content: center; gap: .55em;
	padding: .85em 1.35em; border-radius: 999px; border: 0;
	background: var(--b-bg); color: var(--b-fg);
	font-weight: 650; font-size: 1rem; line-height: 1; text-decoration: none; cursor: pointer;
	transition: transform .25s var(--ease), box-shadow .25s var(--ease), background .25s;
	white-space: nowrap;
}
.btn .ico { transition: transform .25s var(--ease); }
.btn:hover .ico { transform: translateX(3px); }
.btn:hover { transform: translateY(-2px); }
.btn--primary {
	--b-bg: linear-gradient(135deg, var(--aqua), #1E8FD6);
	--b-fg: var(--ink);
	box-shadow: 0 10px 30px -8px rgba(43, 176, 236, .55), inset 0 1px 0 rgba(255, 255, 255, .45);
}
.btn--primary:hover { box-shadow: 0 16px 40px -10px rgba(43, 176, 236, .7), inset 0 1px 0 rgba(255, 255, 255, .5); }
.btn--glass {
	--b-bg: rgba(255, 255, 255, .08); --b-fg: #fff;
	border: 1px solid rgba(255, 255, 255, .22);
	backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
}
.btn--glass:hover { --b-bg: rgba(255, 255, 255, .14); }
.btn--sm { padding: .7em 1.1em; font-size: .92rem; }
.btn--lg { padding: 1.05em 1.6em; font-size: 1.05rem; }
.btn--block { width: 100%; }

/* ---------- Eyebrow ---------- */
.eyebrow {
	display: inline-flex; align-items: center; gap: .6em;
	font-size: .82rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
	color: #126FA8; margin-bottom: 14px;
}
.eyebrow--light { color: var(--aqua-2); }
.pulse { width: 8px; height: 8px; border-radius: 50%; background: var(--sun); box-shadow: 0 0 0 0 rgba(245, 174, 58, .7); animation: pulse 2s infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 10px rgba(245, 174, 58, 0); } 100% { box-shadow: 0 0 0 0 rgba(245, 174, 58, 0); } }

/* ---------- Header ---------- */
.site-header {
	position: fixed; inset: 0 0 auto; z-index: 50; height: var(--header-h);
	display: flex; align-items: center;
	transition: background .3s, box-shadow .3s, height .3s;
	color: #fff;
}
.is-inner .site-header, .site-header.is-scrolled {
	background: rgba(10, 26, 47, .82);
	backdrop-filter: saturate(160%) blur(14px); -webkit-backdrop-filter: saturate(160%) blur(14px);
	box-shadow: 0 1px 0 rgba(255, 255, 255, .06), 0 10px 30px -15px rgba(0, 0, 0, .5);
}
.site-header__inner { display: flex; align-items: center; gap: 24px; }

.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: inherit; flex: none; }
.brand__logo { max-height: 48px; width: auto; }
.brand__mark {
	width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center;
	background: linear-gradient(140deg, var(--aqua), #1E9FD8); color: var(--ink);
	box-shadow: inset 0 1px 0 rgba(255, 255, 255, .5), 0 6px 18px -6px rgba(43, 176, 236, .7);
}
.brand__mark .ico { width: 22px; height: 22px; stroke-width: 2; }
.brand__icon { height: 42px; width: auto; filter: drop-shadow(0 4px 12px rgba(43, 176, 236, .35)); }
.brand__full { height: 120px; width: auto; }
.brand__name { font-size: 1.15rem; font-weight: 500; letter-spacing: -.01em; }
.brand__name b { font-weight: 800; margin-left: .25em; }

.nav { margin-left: auto; }
.nav__list { display: flex; gap: 4px; list-style: none; margin: 0; padding: 0; }
.nav__list a {
	display: block; padding: 8px 14px; border-radius: 999px; text-decoration: none;
	font-size: .95rem; font-weight: 550; color: rgba(255, 255, 255, .82); transition: color .2s, background .2s;
}
.nav__list a:hover { color: #fff; background: rgba(255, 255, 255, .08); }
.nav__cta-mobile { display: none; }

.site-header__actions { display: flex; align-items: center; gap: 12px; }
.lang {
	display: inline-flex; padding: 3px; border-radius: 999px;
	background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .14);
}
.lang a {
	padding: 6px 11px; border-radius: 999px; font-size: .8rem; font-weight: 700; letter-spacing: .06em;
	text-decoration: none; color: rgba(255, 255, 255, .7); transition: background .2s, color .2s;
}
.lang a.is-active { background: #fff; color: var(--ink); }
.lang a:not(.is-active):hover { color: #fff; }

.nav-toggle {
	display: none; width: 44px; height: 44px; border-radius: 12px; border: 1px solid rgba(255, 255, 255, .18);
	background: rgba(255, 255, 255, .06); cursor: pointer; place-items: center;
}
.nav-toggle .ico { width: 22px; height: 22px; }
.nav-toggle .ico--close { display: none; }
.nav-open .nav-toggle .ico--open { display: none; }
.nav-open .nav-toggle .ico--close { display: block; }

/* ---------- Hero ---------- */
.hero {
	position: relative; isolation: isolate; overflow: hidden;
	min-height: 100vh; min-height: 100svh;
	display: flex; align-items: center;
	padding: calc(var(--header-h) + 40px) 0 80px;
	color: #fff; background: var(--ink);
}
.hero__bg {
	position: absolute; inset: 0; z-index: -2;
	background:
		radial-gradient(60% 55% at 78% 30%, rgba(43, 176, 236, .22), transparent 60%),
		radial-gradient(50% 50% at 15% 85%, rgba(30, 159, 216, .25), transparent 60%),
		radial-gradient(80% 80% at 50% 0%, #133561 0%, transparent 70%),
		linear-gradient(180deg, #0B1E38 0%, var(--ink) 100%);
}
.hero__bg::after { /* subtle grain for depth */
	content: ""; position: absolute; inset: 0; opacity: .08; mix-blend-mode: overlay;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
.hero__canvas { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; }
.hero__inner { position: relative; max-width: 1200px; }
.hero__title {
	font-size: clamp(2.8rem, 8vw, 6.4rem); font-weight: 800; letter-spacing: -.045em; line-height: .98;
	margin-bottom: 26px; max-width: 12ch;
}
.hero__line { display: block; }
.hero__line--grad {
	background: linear-gradient(100deg, #fff 0%, var(--aqua-2) 35%, var(--aqua) 55%, var(--sun) 100%);
	-webkit-background-clip: text; background-clip: text; color: transparent;
	background-size: 200% 100%; animation: sheen 8s ease-in-out infinite alternate;
}
@keyframes sheen { to { background-position: 100% 0; } }
.hero__sub { font-size: clamp(1.05rem, 1.6vw, 1.3rem); max-width: 40ch; color: rgba(225, 240, 255, .82); margin-bottom: 36px; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 56px; }

.trust {
	list-style: none; margin: 0; padding: 0;
	display: flex; flex-wrap: wrap; gap: 10px;
}
.trust li {
	display: inline-flex; align-items: center; gap: 9px;
	padding: 10px 16px 10px 12px; border-radius: 999px; font-size: .92rem; font-weight: 550;
	background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .12);
	backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
}
.trust .ico { color: var(--aqua); }

.hero__hint {
	position: absolute; left: 0; right: 0; bottom: 24px; display: flex; justify-content: center; align-items: center; gap: 8px;
	font-size: .8rem; letter-spacing: .08em; text-transform: uppercase; color: rgba(255, 255, 255, .5);
	pointer-events: none; transition: opacity .6s;
}
.hero__hint span { width: 18px; height: 18px; border-radius: 50%; border: 1.5px solid currentColor; animation: bob 2.4s ease-in-out infinite; }
@keyframes bob { 50% { transform: translateY(-5px); } }
.no-webgl .hero__hint, .hero.is-popped .hero__hint { opacity: 0; }

/* ---------- Sections ---------- */
.section { position: relative; padding: clamp(80px, 11vw, 140px) 0; }
.section--tint { background: var(--paper); }
.section--dark { background: var(--ink); color: #fff; }
.section__head { text-align: center; max-width: 720px; margin: 0 auto clamp(40px, 6vw, 64px); }
.section__head--left { text-align: left; margin-left: 0; margin-bottom: 36px; }
.section__title { font-size: clamp(2rem, 4.4vw, 3.3rem); font-weight: 800; letter-spacing: -.035em; }
.section__sub { margin-top: 16px; font-size: 1.12rem; color: var(--muted); }
.section--dark .section__sub { color: rgba(225, 240, 255, .72); }

/* ---------- Services ---------- */
.chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-bottom: 40px; }
.chip {
	padding: 10px 18px; border-radius: 999px; cursor: pointer; font-weight: 600; font-size: .95rem;
	background: var(--white); border: 1px solid var(--line); color: var(--muted);
	transition: all .25s var(--ease);
}
.chip:hover { border-color: #bfd0df; color: var(--text); }
.chip[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: #fff; box-shadow: var(--shadow); }

.svc-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 20px; }
.svc {
	position: relative; display: flex; flex-direction: column; gap: 10px;
	padding: 28px; border-radius: var(--radius-lg);
	background: var(--white); border: 1px solid var(--line); box-shadow: var(--shadow-sm);
	transition: box-shadow .35s var(--ease), border-color .35s, opacity .35s, transform .35s var(--ease);
	transform-style: preserve-3d;
}
.svc::before { /* glossy sheen that follows the cursor */
	content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; opacity: 0;
	background: radial-gradient(260px circle at var(--mx, 50%) var(--my, 0%), rgba(43, 176, 236, .14), transparent 60%);
	transition: opacity .3s;
}
.svc:hover { box-shadow: var(--shadow-lg); border-color: #cfe3ee; }
.svc:hover::before { opacity: 1; }
.svc[hidden] { display: none; }
.svc__icon {
	width: 54px; height: 54px; border-radius: 16px; display: grid; place-items: center; margin-bottom: 8px;
	background: linear-gradient(145deg, #E3F4FD, #DDF1FF); color: #126FA8;
	box-shadow: inset 0 1px 0 #fff, 0 6px 16px -8px rgba(14, 143, 158, .5);
	transform: translateZ(30px);
}
.svc__icon .ico { width: 26px; height: 26px; }
.svc__title { font-size: 1.2rem; font-weight: 750; letter-spacing: -.015em; transform: translateZ(20px); }
.svc__desc { color: var(--muted); font-size: .98rem; flex: 1; }
.svc__link {
	display: inline-flex; align-items: center; gap: 6px; margin-top: 8px; align-self: flex-start;
	font-weight: 700; font-size: .95rem; color: #126FA8; text-decoration: none;
}
.svc__link .ico { transition: transform .25s var(--ease); }
.svc__link:hover .ico { transform: translateX(4px); }
.svc--custom { background: linear-gradient(150deg, var(--ink-2), var(--ink)); border-color: transparent; color: #fff; }
.svc--custom .svc__icon { background: rgba(43, 176, 236, .16); color: var(--aqua); box-shadow: none; }
.svc--custom .svc__desc { color: rgba(225, 240, 255, .72); }
.svc--custom .svc__link { color: var(--aqua); }

/* ---------- Why us ---------- */
.why { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 6vw, 90px); align-items: center; }
.why__media { position: relative; }
.why__img { border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-lg); aspect-ratio: 4 / 5; transform-style: preserve-3d; transition: transform .35s var(--ease); }
.why__img img { width: 100%; height: 100%; object-fit: cover; background: linear-gradient(135deg, #cfe9f5, #e8f4ec); }
.why__badge {
	position: absolute; left: -18px; bottom: 32px; display: flex; align-items: center; gap: 10px;
	padding: 14px 20px; border-radius: 18px; font-weight: 700;
	background: rgba(255, 255, 255, .86); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
	box-shadow: var(--shadow-lg); color: var(--ink);
	animation: float 6s ease-in-out infinite;
}
.why__badge .ico { color: var(--ok); width: 24px; height: 24px; }
@keyframes float { 50% { transform: translateY(-10px); } }

.features { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.feature {
	display: flex; gap: 18px; align-items: flex-start; padding: 20px 22px; border-radius: var(--radius);
	background: var(--white); border: 1px solid var(--line);
	transition: transform .3s var(--ease), box-shadow .3s;
}
.feature:hover { transform: translateX(6px); box-shadow: var(--shadow); }
.feature__icon {
	width: 46px; height: 46px; flex: none; border-radius: 14px; display: grid; place-items: center;
	background: var(--ink); color: var(--aqua);
}
.feature__t { font-size: 1.08rem; font-weight: 750; margin-bottom: 4px; }
.feature__d { color: var(--muted); font-size: .97rem; }

/* ---------- Steps ---------- */
.steps {
	list-style: none; margin: 0; padding: 0; position: relative;
	display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; counter-reset: s;
}
.steps::before {
	content: ""; position: absolute; top: 34px; left: 12%; right: 12%; height: 2px;
	background: linear-gradient(90deg, transparent, var(--aqua) 15%, #1E9FD8 85%, transparent);
	opacity: .5;
}
.step { position: relative; text-align: center; padding: 0 8px; transition-delay: var(--d, 0ms); }
.step__n {
	width: 68px; height: 68px; margin: 0 auto 22px; border-radius: 50%; display: grid; place-items: center;
	font-size: 1.5rem; font-weight: 800; color: var(--ink);
	background: radial-gradient(circle at 30% 25%, #fff 0%, #DDF2FD 35%, var(--aqua) 100%);
	box-shadow: 0 0 0 8px var(--paper), 0 14px 30px -10px rgba(43, 176, 236, .8), inset -4px -6px 12px rgba(10, 26, 47, .12);
	position: relative;
}
.step__t { font-size: 1.15rem; font-weight: 750; margin-bottom: 6px; }
.step__d { color: var(--muted); font-size: .97rem; }

/* ---------- Gallery ---------- */
.gallery { display: grid; grid-template-columns: repeat(3, 1fr); grid-auto-rows: 240px; gap: 16px; }
.gallery__item {
	position: relative; padding: 0; border: 0; border-radius: var(--radius); overflow: hidden; cursor: zoom-in;
	background: linear-gradient(135deg, #d8ecf6, #eaf5ef);
}
.gallery { grid-auto-flow: dense; }
.gallery__item:nth-child(1) { grid-row: span 2; }
.gallery__item:nth-child(4), .gallery__item:nth-child(6) { grid-column: span 2; }
.gallery__item img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.gallery__item:hover img { transform: scale(1.06); }
.gallery__zoom {
	position: absolute; right: 14px; bottom: 14px; width: 42px; height: 42px; border-radius: 50%;
	display: grid; place-items: center; background: rgba(255, 255, 255, .9); color: var(--ink);
	opacity: 0; transform: translateY(8px); transition: all .3s var(--ease);
}
.gallery__item:hover .gallery__zoom, .gallery__item:focus-visible .gallery__zoom { opacity: 1; transform: none; }

.lightbox {
	border: 0; padding: 0; background: transparent; max-width: min(1100px, 94vw); max-height: 90vh; overflow: visible;
}
.lightbox::backdrop { background: rgba(5, 14, 26, .86); backdrop-filter: blur(6px); }
.lightbox img { max-height: 86vh; width: auto; border-radius: 14px; box-shadow: var(--shadow-lg); }
.lightbox__close {
	position: absolute; top: -18px; right: -18px; width: 44px; height: 44px; border-radius: 50%; border: 0; cursor: pointer;
	display: grid; place-items: center; background: #fff; color: var(--ink); box-shadow: var(--shadow);
}

/* ---------- Reviews ---------- */
.reviews { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.review {
	margin: 0; padding: 32px; border-radius: var(--radius-lg);
	background: linear-gradient(180deg, var(--white), var(--paper)); border: 1px solid var(--line);
	display: flex; flex-direction: column; gap: 18px; transition: transform .35s var(--ease), box-shadow .35s;
}
.review:hover { box-shadow: var(--shadow-lg); }
.review__q { width: 34px; height: 34px; color: var(--aqua); }
.review blockquote { margin: 0; flex: 1; }
.review blockquote p { font-size: 1.15rem; font-weight: 550; line-height: 1.5; letter-spacing: -.01em; }
.review figcaption { display: flex; align-items: center; gap: 12px; font-weight: 700; color: var(--muted); }
.review__avatar {
	width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center;
	background: var(--ink); color: var(--aqua); font-weight: 800;
}

/* ---------- Booking ---------- */
.booking { overflow: hidden; }
.booking__glow {
	position: absolute; inset: auto -10% -40% auto; width: 70%; aspect-ratio: 1; border-radius: 50%;
	background: radial-gradient(circle, rgba(43, 176, 236, .22), transparent 65%); pointer-events: none;
}
.booking__grid { position: relative; display: grid; grid-template-columns: 1fr 1.15fr; gap: clamp(40px, 6vw, 80px); align-items: start; }
.booking__intro { position: sticky; top: calc(var(--header-h) + 30px); }
.booking__or { margin: 34px 0 14px; font-weight: 600; color: rgba(225, 240, 255, .6); font-size: .92rem; text-transform: uppercase; letter-spacing: .08em; }
.booking__quick { display: grid; gap: 12px; }
.quick {
	display: flex; align-items: center; gap: 14px; padding: 16px 18px; border-radius: var(--radius);
	background: rgba(255, 255, 255, .05); border: 1px solid rgba(255, 255, 255, .1);
	text-decoration: none; font-weight: 700; transition: background .25s, transform .25s var(--ease);
}
.quick:hover { background: rgba(255, 255, 255, .1); transform: translateX(4px); }
.quick .ico { width: 42px; height: 42px; padding: 10px; border-radius: 12px; background: rgba(43, 176, 236, .15); color: var(--aqua); }
.quick small { display: block; font-weight: 500; font-size: .8rem; color: rgba(225, 240, 255, .6); }

.form {
	padding: clamp(24px, 4vw, 40px); border-radius: var(--radius-lg);
	background: var(--white); color: var(--text); box-shadow: 0 40px 80px -30px rgba(0, 0, 0, .6);
}
.form__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 18px; }
.field { display: flex; flex-direction: column; gap: 7px; }
.field--full { grid-column: 1 / -1; }
.field > span { font-size: .88rem; font-weight: 650; color: var(--text); }
.field input, .field select, .field textarea {
	width: 100%; padding: 13px 14px; border-radius: 12px; border: 1.5px solid var(--line); background: var(--paper);
	font: inherit; font-size: 1rem; color: var(--text); transition: border-color .2s, background .2s, box-shadow .2s;
	-webkit-appearance: none; appearance: none; min-height: 50px;
}
.field select {
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' fill='none' stroke='%235A6B7E' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='M5 8l5 5 5-5'/%3E%3C/svg%3E");
	background-repeat: no-repeat; background-position: right 12px center; padding-right: 40px;
}
.field textarea { resize: vertical; min-height: 90px; }
.field input:focus, .field select:focus, .field textarea:focus {
	outline: none; border-color: var(--aqua); background: #fff; box-shadow: 0 0 0 4px rgba(43, 176, 236, .18);
}
.field.is-flash select { animation: flash 1.2s var(--ease); }
@keyframes flash { 0% { box-shadow: 0 0 0 0 rgba(43, 176, 236, .7); border-color: var(--aqua); } 100% { box-shadow: 0 0 0 14px rgba(43, 176, 236, 0); } }
.consent { display: flex; gap: 12px; align-items: flex-start; font-size: .9rem; color: var(--muted); margin-bottom: 22px; cursor: pointer; }
.consent input { width: 20px; height: 20px; margin-top: 2px; accent-color: #126FA8; flex: none; }
.consent a { color: #126FA8; font-weight: 600; }
.form__msg { display: flex; gap: 10px; align-items: center; padding: 14px 16px; border-radius: 12px; margin-bottom: 20px; font-weight: 600; }
.form__msg--ok { background: #E6F8F0; color: #0B6B49; }
.form__msg--err { background: #FDECEC; color: #A3262A; }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.contact {
	display: flex; flex-direction: column; gap: 6px; padding: 28px; border-radius: var(--radius-lg);
	text-decoration: none; background: var(--white); border: 1px solid var(--line); box-shadow: var(--shadow-sm);
	transition: box-shadow .35s var(--ease), border-color .3s, transform .35s var(--ease);
}
.contact:hover { box-shadow: var(--shadow-lg); border-color: #cfe3ee; }
.contact__icon {
	width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; margin-bottom: 12px;
	background: linear-gradient(145deg, #E3F4FD, #DDF1FF); color: #126FA8;
}
.contact__label { font-size: .85rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.contact__value { font-size: 1.05rem; font-weight: 700; word-break: break-word; }

/* ---------- Footer (compact) ---------- */
.site-footer { background: #071426; color: rgba(225, 240, 255, .66); padding-top: 40px; font-size: .92rem; }
.site-footer__top {
	display: grid; grid-template-columns: minmax(0, 1.2fr) auto auto; gap: 28px 48px; align-items: center;
	padding-bottom: 28px;
}
.site-footer__brand { display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.site-footer__brand p { max-width: 36ch; }
.brand--light { color: #fff; }
.site-footer .brand__icon { height: 34px; }
.site-footer .brand__name { font-size: 1.05rem; }
.site-footer__nav { display: flex; flex-wrap: wrap; gap: 6px 22px; }
.site-footer__nav a, .site-footer__contact a { text-decoration: none; transition: color .2s; }
.site-footer__nav a:hover, .site-footer__contact a:hover, .site-footer__bottom a:hover { color: var(--aqua); }
.site-footer__contact { display: flex; flex-direction: column; gap: 8px; }
.site-footer__contact a { display: inline-flex; align-items: center; gap: 8px; color: #fff; font-weight: 600; }
.site-footer__contact .ico { color: var(--aqua); width: 1.1em; height: 1.1em; }
.site-footer__bottom {
	display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap;
	padding: 16px 0 20px; border-top: 1px solid rgba(255, 255, 255, .08); font-size: .82rem; color: rgba(225, 240, 255, .5);
}
.site-footer__bottom a { text-decoration: none; }
.to-top { display: inline-flex; align-items: center; gap: 6px; }

/* ---------- Clients ---------- */
.clients { padding: clamp(48px, 7vw, 72px) 0; border-top: 1px solid var(--line); }
.clients__head { text-align: center; margin-bottom: 28px; }
.clients__head .eyebrow { margin-bottom: 6px; }
.clients__title { font-size: clamp(1.3rem, 2.4vw, 1.7rem); font-weight: 750; letter-spacing: -.02em; }
.clients__list {
	list-style: none; margin: 0; padding: 0;
	display: grid; grid-template-columns: repeat(var(--n, 4), minmax(0, 1fr)); gap: 16px;
}
.clients__item {
	height: 96px; display: grid; place-items: center; padding: 18px 22px; border-radius: var(--radius);
	background: var(--paper); border: 1px solid var(--line);
}
.clients__item img { max-height: 52px; width: auto; max-width: 100%; object-fit: contain; filter: grayscale(1); opacity: .7; transition: filter .3s, opacity .3s; }
.clients__item:hover img { filter: none; opacity: 1; }

.wa-float {
	position: fixed; right: 20px; bottom: 20px; z-index: 40; width: 58px; height: 58px; border-radius: 50%;
	display: grid; place-items: center; background: #25D366; color: #fff;
	box-shadow: 0 12px 30px -8px rgba(37, 211, 102, .7); transition: transform .25s var(--ease);
}
.wa-float .ico { width: 28px; height: 28px; stroke-width: 2; }
.wa-float:hover { transform: scale(1.08); }

/* ---------- Inner pages ---------- */
.page__hero { background: var(--ink); color: #fff; padding: calc(var(--header-h) + 60px) 0 60px; }
.page--404 .page__hero { min-height: 80vh; display: flex; align-items: center; }
.page--404 .hero__sub { margin: 16px 0 28px; }
.page__title { font-size: clamp(2rem, 5vw, 3.4rem); font-weight: 800; letter-spacing: -.03em; }
.prose { padding: 56px 0 90px; }
.prose > * + * { margin-top: 1em; }
.prose h2 { font-size: 1.6rem; margin-top: 1.6em; }
.prose h3 { font-size: 1.25rem; margin-top: 1.4em; }
.prose a { color: #126FA8; }

/* ---------- Reveal on scroll & 3D tilt ---------- */
.js .reveal { transition: opacity .9s var(--ease), transform .9s var(--ease); transition-delay: var(--d, 0ms); }
.js .reveal:not(.is-in) { opacity: 0; transform: translateY(28px); }
.js .reveal.is-done { transition: transform .35s var(--ease), box-shadow .35s var(--ease), border-color .3s, opacity .35s; transition-delay: 0ms; }
.tilt { will-change: transform; }

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
	.site-header__cta { display: none; }
	.contact-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 920px) {
	:root { --header-h: 68px; }
	.nav-toggle { display: grid; }
	.nav {
		position: fixed; inset: var(--header-h) 0 auto 0; margin: 0;
		background: rgba(10, 26, 47, .97); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
		padding: 16px 20px 28px; display: flex; flex-direction: column; gap: 16px;
		transform: translateY(-12px); opacity: 0; visibility: hidden; transition: all .3s var(--ease);
		box-shadow: 0 30px 50px -20px rgba(0, 0, 0, .6);
	}
	.nav-open .nav { transform: none; opacity: 1; visibility: visible; }
	.nav-open .site-header { background: rgba(10, 26, 47, .97); }
	.nav__list { flex-direction: column; gap: 2px; }
	.nav__list a { padding: 14px 12px; font-size: 1.1rem; border-radius: 12px; }
	.nav__cta-mobile { display: inline-flex; }
	.why { grid-template-columns: 1fr; }
	.why__img { aspect-ratio: 16 / 11; }
	.why__badge { left: 16px; bottom: 16px; }
	.steps { grid-template-columns: repeat(2, 1fr); row-gap: 44px; }
	.steps::before { display: none; }
	.reviews { grid-template-columns: 1fr; }
	.booking__grid { grid-template-columns: 1fr; }
	.booking__intro { position: static; }
	.gallery { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 200px; }
	.gallery__item:nth-child(6) { grid-column: auto; }
	.site-footer__top { grid-template-columns: 1fr 1fr; }
	.site-footer__brand { grid-column: 1 / -1; }
	.clients__list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 560px) {
	body { font-size: 16px; }
	.container { width: calc(100% - 32px); }
	.brand__name { font-size: 1.02rem; }
	.hero { padding-bottom: 64px; }
	.hero__actions .btn { flex: 1 1 100%; }
	.hero__actions { margin-bottom: 40px; }
	.trust li { font-size: .85rem; padding: 8px 12px 8px 10px; }
	.hero__hint { bottom: 16px; }
	.form__grid { grid-template-columns: 1fr; }
	.contact-grid { grid-template-columns: 1fr; }
	.steps { grid-template-columns: 1fr; }
	.gallery { grid-auto-rows: 150px; gap: 10px; }
	.site-footer__top { grid-template-columns: 1fr; gap: 20px; }
	.clients__item { height: 80px; }
	.wa-float { width: 52px; height: 52px; right: 14px; bottom: 14px; }
}

@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	*, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
	.js .reveal { opacity: 1; transform: none; }
}

/* Custom-plan card spans the full row as a call to action */
.svc--custom {
	grid-column: 1 / -1;
	display: grid; grid-template-columns: auto minmax(0, 1fr) auto; grid-template-areas: "icon title link" "icon desc link";
	column-gap: 22px; row-gap: 4px; align-items: center;
}
.svc--custom .svc__icon { grid-area: icon; margin: 0; }
.svc--custom .svc__title { grid-area: title; }
.svc--custom .svc__desc { grid-area: desc; }
.svc--custom .svc__link {
	grid-area: link; margin: 0; align-self: center; padding: .8em 1.2em; border-radius: 999px;
	background: var(--aqua); color: var(--ink);
}
@media (max-width: 640px) {
	.svc--custom { grid-template-columns: 1fr; grid-template-areas: "icon" "title" "desc" "link"; row-gap: 10px; }
	.svc--custom .svc__link { justify-self: start; }
}

/* ---------- Before / after ---------- */
.ba-layout { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 2fr); gap: 20px; align-items: stretch; }
.ba-video {
	position: relative; margin: 0; border-radius: var(--radius-lg); overflow: hidden; background: var(--ink);
	box-shadow: var(--shadow-lg); min-height: 420px;
}
.ba-video video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.ba-video figcaption, .ba figcaption {
	display: flex; align-items: center; gap: 8px; font-weight: 700; font-size: .95rem;
}
.ba-video figcaption {
	position: absolute; left: 12px; right: 12px; bottom: 12px; padding: 10px 14px; border-radius: 12px;
	background: rgba(10, 26, 47, .72); color: #fff; backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
}
.ba-video figcaption .ico { color: var(--sun); }
.ba-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.ba {
	margin: 0; padding: 10px 10px 14px; border-radius: var(--radius-lg); background: var(--white);
	border: 1px solid var(--line); box-shadow: var(--shadow-sm); display: flex; flex-direction: column; gap: 12px;
}
.ba__pair { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.ba__side { position: relative; aspect-ratio: 4 / 5; border-radius: 14px; overflow: hidden; background: var(--paper); }
.ba__side img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.ba:hover .ba__side img { transform: scale(1.04); }
.ba__tag {
	position: absolute; left: 8px; top: 8px; padding: 4px 10px; border-radius: 999px;
	font-size: .75rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase;
	background: rgba(10, 26, 47, .78); color: #fff;
}
.ba__tag--after { background: var(--aqua); color: var(--ink); }
.ba figcaption { padding: 0 6px; color: var(--text); }

.gallery__cap {
	position: absolute; left: 12px; bottom: 12px; padding: 6px 12px; border-radius: 999px;
	font-size: .82rem; font-weight: 700; background: rgba(255, 255, 255, .92); color: var(--ink);
}

@media (max-width: 1080px) {
	.ba-layout { grid-template-columns: 1fr; }
	.ba-video { min-height: 0; aspect-ratio: 9 / 12; max-width: 420px; width: 100%; justify-self: center; }
}
@media (max-width: 640px) {
	.ba-grid { grid-template-columns: 1fr; }
}
.gallery__item:nth-child(4) img, .gallery__item:nth-child(6) img { object-position: center 85%; }

/* Video caption sits below the video so the logo in the clip stays visible */
.ba-video { display: flex; flex-direction: column; }
.ba-video video { position: static; flex: 1 1 0; min-height: 0; width: 100%; height: auto; object-fit: cover; object-position: center bottom; }
.ba-video figcaption {
	position: static; border-radius: 0; padding: 14px 18px;
	background: var(--ink); backdrop-filter: none; -webkit-backdrop-filter: none;
}
@media (max-width: 1080px) {
	.ba-video { aspect-ratio: auto; }
	.ba-video video { aspect-ratio: 9 / 14; flex: none; }
}

/* Six pairs: the video keeps its natural shape and stays in view while the pairs scroll */
.ba-layout { align-items: start; }
.ba-video { position: sticky; top: calc(var(--header-h) + 20px); min-height: 0; }
.ba-video video { flex: none; aspect-ratio: 9 / 16; }
@media (max-width: 1080px) {
	.ba-video { position: relative; top: auto; }
	.ba-video video { aspect-ratio: 9 / 14; }
}

/* Gallery: five tiles in a 3×2 grid, then the showroom photo full width and uncropped */
.gallery__item:nth-child(4), .gallery__item:nth-child(6) { grid-column: auto; }
.gallery__item:nth-child(4) img { object-position: center; }
.gallery__wide { display: block; width: 100%; margin-top: 16px; aspect-ratio: 16 / 9; }
.gallery__wide img { width: 100%; height: 100%; object-fit: contain; background: var(--ink); }
.gallery__wide:hover img { transform: none; }
@media (max-width: 560px) { .gallery__wide { margin-top: 10px; } }
@media (max-width: 560px) {
	.gallery__cap { left: 8px; bottom: 8px; right: 8px; width: fit-content; max-width: calc(100% - 16px); padding: 4px 9px; font-size: .72rem; line-height: 1.3; }
}

/* Polyclinic photo shown whole: its tile takes the photo's own 4:5 shape and sets the row heights */
.gallery { grid-auto-rows: auto; }
.gallery > .gallery__item { min-height: 0; }
.gallery > .gallery__item img { position: absolute; inset: 0; }
.gallery > .gallery__item:nth-child(1) { aspect-ratio: 4 / 5; }
@media (max-width: 920px) {
	.gallery > .gallery__item:nth-child(1) { grid-column: 1 / -1; grid-row: auto; }
	.gallery > .gallery__item:not(:nth-child(1)) { aspect-ratio: 4 / 3; }
}
/* Keep the polyclinic label off the photo's own "Poslije" text and logo */
.gallery > .gallery__item:nth-child(1) .gallery__cap { bottom: auto; top: 12px; }
.wa-float { transition: transform .25s var(--ease), opacity .25s; }
.wa-float.is-hidden { opacity: 0; transform: scale(.6); pointer-events: none; }

/* ---------- Client logos (final) ---------- */
.clients__scroller { position: relative; }
.clients__list { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.clients__item { background: #fff; height: 104px; padding: 16px 20px; }
.clients__item img { max-height: 56px; max-width: 100%; mix-blend-mode: multiply; }
.clients__hint { display: none; }

/* Phones and small tablets: one swipeable row */
@media (max-width: 760px) {
	.clients__scroller {
		margin-inline: -16px; overflow-x: auto; overscroll-behavior-x: contain;
		scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch; scrollbar-width: none;
		-webkit-mask-image: linear-gradient(90deg, transparent 0, #000 16px, #000 calc(100% - 40px), transparent 100%);
		mask-image: linear-gradient(90deg, transparent 0, #000 16px, #000 calc(100% - 40px), transparent 100%);
	}
	.clients__scroller::-webkit-scrollbar { display: none; }
	.clients__list { display: flex; gap: 12px; width: max-content; padding: 4px 16px; }
	.clients__item { flex: 0 0 148px; height: 88px; scroll-snap-align: start; }
	.clients__item img { max-height: 46px; }
	.clients__hint {
		display: flex; align-items: center; justify-content: center; gap: 6px; margin-top: 12px;
		font-size: .82rem; font-weight: 600; color: var(--muted);
	}
	.clients__hint .ico { width: 1em; height: 1em; animation: nudge 1.6s ease-in-out infinite; }
	@keyframes nudge { 50% { transform: translateX(4px); } }
}
/* Touch screens have no hover: show logos in full colour */
@media (hover: none) { .clients__item img { filter: none; opacity: 1; } }
/* Every logo fills the same box, so small files aren't specks and wide ones don't dominate */
.clients__item img { width: 100%; height: 52px; max-height: none; object-fit: contain; }
@media (max-width: 760px) { .clients__item img { height: 44px; } }

/* Logos always in full colour; nine logos centred in rows of five on desktop */
.clients__item img, .clients__item:hover img { filter: none; opacity: 1; }
@media (min-width: 761px) {
	.clients__list { display: flex; flex-wrap: wrap; justify-content: center; gap: 16px; }
	.clients__item { flex: 0 0 calc((100% - 64px) / 5); }
}
@media (min-width: 761px) and (max-width: 1000px) {
	.clients__item { flex-basis: calc((100% - 32px) / 3); }
}

/* ---------- Footer (minimal: logo, phone, email) ---------- */
.site-footer { padding-top: 28px; }
.site-footer__top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 32px; padding-bottom: 22px; }
.site-footer__contact { flex-direction: row; flex-wrap: wrap; gap: 10px 28px; }
.site-footer__bottom { padding: 14px 0 18px; justify-content: center; text-align: center; }
@media (max-width: 560px) {
	.site-footer__top { flex-direction: column; text-align: center; }
	.site-footer__contact { flex-direction: column; align-items: center; gap: 10px; }
}

/* ---------- Client logos: arrows (phones only) ---------- */
.clients__nav { display: none; }
.ico--flip { transform: scaleX(-1); }
@media (max-width: 760px) {
	.clients__hint { display: none; }
	.clients__scroller { margin-inline: 0; -webkit-mask-image: none; mask-image: none; border-radius: var(--radius); }
	.clients__list { gap: 0; padding: 0; width: auto; }
	.clients__item { flex: 0 0 100%; height: 130px; scroll-snap-align: center; scroll-snap-stop: always; border-radius: var(--radius); }
	.clients__item img { height: 70px; }
	.clients__nav { display: flex; align-items: center; justify-content: center; gap: 24px; margin-top: 16px; }
	.clients__arrow {
		width: 48px; height: 48px; border-radius: 50%; border: 1px solid var(--line); background: #fff; color: var(--ink);
		display: grid; place-items: center; cursor: pointer; box-shadow: var(--shadow-sm); transition: opacity .2s, transform .2s;
	}
	.clients__arrow:active { transform: scale(.94); }
	.clients__arrow:disabled { opacity: .35; cursor: default; }
	.clients__count { min-width: 56px; text-align: center; font-weight: 700; font-size: .9rem; color: var(--muted); font-variant-numeric: tabular-nums; }
}
@media (max-width: 560px) { .site-footer__bottom { padding-bottom: 84px; } }

/* WhatsApp submit button */
.btn--wa { --b-bg: #25D366; --b-fg: #062e16; box-shadow: 0 10px 30px -8px rgba(37, 211, 102, .55), inset 0 1px 0 rgba(255, 255, 255, .4); }
.btn--wa:hover { box-shadow: 0 16px 40px -10px rgba(37, 211, 102, .7); }
.btn--wa .ico { width: 1.3em; height: 1.3em; }
.btn--wa:hover .ico { transform: none; }
.form__note { margin-top: 10px; text-align: center; font-size: .85rem; color: var(--muted); }

/* ---------- Before/after: swipeable on phones ---------- */
.ba-nav { display: none; }
.step__n { box-shadow: 0 0 0 8px var(--paper), 0 14px 30px -10px rgba(43, 176, 236, .8), inset -4px -6px 12px rgba(10, 26, 47, .12); }
#kako .steps::before { opacity: .5; }
@media (max-width: 640px) {
	.ba-grid {
		display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; overscroll-behavior-x: contain;
		-webkit-overflow-scrolling: touch; scrollbar-width: none; margin-inline: -16px; padding: 4px 16px 8px;
		scroll-padding-inline: 16px;
	}
	.ba-grid::-webkit-scrollbar { display: none; }
	.ba-grid .ba { flex: 0 0 88%; scroll-snap-align: start; scroll-snap-stop: always; }
	.js .ba-grid .reveal:not(.is-in) { opacity: 1; transform: none; }
	.ba-nav { display: flex; justify-content: center; gap: 24px; margin-top: 14px; }
	.ba-video { max-width: none; aspect-ratio: auto; }
	.ba-video video { aspect-ratio: 4 / 5; }
}
