/* Mediteran Jajce — sav prednji CSS (izgled stare U-Design stranice: plava #3174B9 / tamnoplava #104983,
   Montserrat za naslove i izbornik, Raleway za tekst). Bricks elementi nose klase md-*; ovdje su sva pravila
   (jedan izvor, bez sinkronizacije globalnih klasa). Ispis shortcodeova ([md_*]) i lightbox također ovdje. */

:root {
	--md-blue: #3174b9;
	--md-blue-d: #104983;
	--md-ink: #565656;
	--md-head: #333;
	--md-soft: #f8f8f8;
	--md-line: #e3e3e3;
	--md-white: #fff;
	--md-shadow: 0 2px 48px 0 rgba(0, 0, 0, .06);
	--md-ff-h: "Montserrat", "Helvetica Neue", Arial, sans-serif;
	--md-ff-b: "Raleway", "Helvetica Neue", Arial, sans-serif;
}
html { scroll-behavior: smooth; scroll-padding-top: 110px; }
body { overflow-x: clip; font-family: var(--md-ff-b); font-size: 16px; line-height: 1.7; color: var(--md-ink); }
h1, h2, h3, h4, h5, h6 { font-family: var(--md-ff-h); font-weight: 400; color: var(--md-head); line-height: 1.2; }
a { color: var(--md-blue); transition: color .2s; }
a:hover { color: var(--md-blue-d); }
strong, b { font-weight: 700; }
.md-icon { display: inline-block; vertical-align: middle; flex: none; }
.brxe-shortcode { width: 100%; }
.brxe-container > .brxe-heading, .brxe-container > .brxe-text-basic { width: 100%; }
.md-title, .md-intro, .md-sep, .md-row, .md-fbottom__copy { align-self: stretch; }

/* ---------- Header ---------- */
#brx-header { position: sticky; top: 0; z-index: 999; }
body.admin-bar #brx-header { top: 32px; }
.md-header { background: var(--md-white); box-shadow: 0 1px 0 rgba(0,0,0,.06); }
.md-topbar { background: var(--md-blue); color: var(--md-white); font-family: var(--md-ff-h); font-weight: 500; font-size: 13.5px; width: 100%; transition: margin-top .3s; }
.md-topbar__inner { display: flex; align-items: center; justify-content: space-between; gap: 10px 30px; min-height: 42px; flex-direction: row !important; }
.md-topbar__inner > .brxe-shortcode { width: auto; }
.md-topbar__inner > .brxe-shortcode:last-child { margin-left: auto; }
.md-topbar__info { display: flex; flex-wrap: wrap; gap: 4px 26px; }
.md-topbar__item { display: inline-flex; align-items: center; gap: 7px; }
.md-topbar a, .md-topbar a:hover { color: var(--md-white); text-decoration: none; }
.md-topbar .md-social { gap: 14px; }
.md-topbar .md-social__link { color: var(--md-white); }
.md-topbar .md-social__link:hover { color: #ededed; }
.md-mainbar { width: 100%; }
.md-mainbar__inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 86px; flex-direction: row !important; }
.md-logo { display: block; line-height: 0; flex: none; }
.md-logo__img { width: 340px; max-width: 100%; height: auto; }
.md-mainbar__nav { display: flex; justify-content: flex-end; }
#brx-header.md-scrolled .md-topbar { margin-top: -42px; }
#brx-header.md-scrolled .md-mainbar__inner { min-height: 70px; }
#brx-header.md-scrolled .md-logo__img { width: 260px; }
.md-logo__img, .md-mainbar__inner { transition: width .3s, min-height .3s; }

/* izbornik: Montserrat 500, plavo; hover/aktivna = plava podloga, bijeli tekst (kao stara stranica) */
.md-header .bricks-nav-menu { gap: 2px !important; }
.md-header .bricks-nav-menu > li { margin: 0 !important; }
.md-header .bricks-nav-menu > li > a,
.md-header .bricks-nav-menu > li > .brx-submenu-toggle > a { display: block; padding: 6px 12px; font-family: var(--md-ff-h); font-weight: 500; font-size: 15px; text-transform: uppercase; color: var(--md-blue); transition: background-color .4s, color .4s; }
.md-header .bricks-nav-menu > li:hover > a,
.md-header .bricks-nav-menu > li.current-menu-item > a,
.md-header .bricks-nav-menu > li.current-menu-ancestor > a { background-color: var(--md-blue); color: var(--md-white); }
.md-header .bricks-mobile-menu-toggle { color: var(--md-blue) !important; }
.md-header .bricks-mobile-menu-wrapper { top: var(--md-header-h, 0); height: calc(100vh - var(--md-header-h, 0px)); background: var(--md-blue) !important; }
.md-header .bricks-mobile-menu-wrapper::before { background: var(--md-blue) !important; }
.md-header .bricks-mobile-menu { width: 100%; }
.md-header .bricks-mobile-menu > li { width: 100%; }
.md-header .bricks-mobile-menu > li > a { display: block; width: 100%; padding: .8em 20px !important; border-bottom: 1px dotted rgba(255,255,255,.8); font-family: var(--md-ff-h); text-transform: uppercase; color: var(--md-white) !important; }
.md-header .bricks-mobile-menu > li > a:hover, .md-header .bricks-mobile-menu > li.current-menu-item > a { background: var(--md-blue-d); }
.md-header .bricks-mobile-menu-overlay { display: none; }
body:has(.brxe-nav-menu.show-mobile-menu) #cookie-float,
body:has(.brxe-nav-menu.show-mobile-menu) .md-wa { display: none !important; }

/* ---------- Footer ---------- */
.md-footer { background: var(--md-white); }
.md-fband { background: var(--md-blue); color: var(--md-white); padding: 50px 0 40px; width: 100%; }
.md-fband__inner { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; }
.md-fband__col { display: flex; justify-content: center; }
.md-fcol { text-align: center; }
.md-fcol__circle { display: inline-flex; align-items: center; justify-content: center; width: 110px; height: 110px; border-radius: 50%; background: var(--md-white); color: var(--md-blue); margin-bottom: 14px; }
.md-fcol__text { margin: 0; font-size: 15px; font-weight: 600; line-height: 1.65; color: var(--md-white); letter-spacing: .01em; }
.md-fcol__link, .md-fcol__link:hover { color: var(--md-white); text-decoration: none; }
.md-fcol__link:hover { text-decoration: underline; }
.md-fbottom { width: 100%; padding: 26px 0 30px; }
.md-fbottom__inner { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 10px; }
.md-fbottom__follow { margin: 0; font-family: var(--md-ff-h); font-weight: 500; color: var(--md-blue); font-size: 15px; }
.md-fbottom .md-social { gap: 10px; }
.md-fbottom .md-social__link { color: var(--md-blue-d); }
.md-fbottom .md-social__link:hover { color: var(--md-blue); }
.md-fbottom__copy { margin: 14px 0 0; padding-top: 18px; border-top: 1px solid var(--md-line); width: 100%; max-width: 1160px; font-family: var(--md-ff-h); font-size: 13px; color: var(--md-blue); letter-spacing: .02em; }
.md-fbottom__legal { margin: 0; font-size: 13px; color: #888; }
.md-fbottom__legal a { color: var(--md-blue-d); }
.md-social { display: flex; align-items: center; }
.md-fbottom .md-social { justify-content: center; }
.md-social__link { display: inline-flex; line-height: 0; }

/* ---------- Zajedničko: sekcije, naslovi, separator, redovi ---------- */
.md-section { padding: 80px 0; }
.md-section--tight { padding-top: 0; }
.md-section--top0 { padding-top: 0; }
.md-section > .brxe-container, .md-band > .brxe-container, .md-phead > .brxe-container { flex-direction: column; align-items: stretch; }
.md-title { color: var(--md-blue); font-size: 36px; margin: 0; }
.md-title--center { text-align: center; }
.md-title--sm { font-size: 30px; }
.md-intro { text-align: center; margin-bottom: 50px; }
.md-intro__title { color: var(--md-blue); font-size: 30px; margin: 0 0 18px; text-align: center; }
.md-intro__text { margin: 0 auto; max-width: 1000px; }
.md-sep { width: 70%; max-width: 840px; height: 1px; margin: 40px auto; background: var(--md-line); }
.md-row { display: grid; gap: 30px; width: 100%; }
.md-row--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.md-row--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.md-row--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.md-row--2-1 { grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); }
.md-col { display: flex; flex-direction: column; gap: 30px; }
.md-row--center { align-items: center; }
.md-col--card { gap: 0; box-shadow: var(--md-shadow); }
.md-col--card .md-img { aspect-ratio: 4 / 3; object-fit: cover; }
.md-col--card .md-fbox { flex: 1; box-shadow: none; }

/* /prijava/ */
.md-login { min-height: 100vh; display: flex; align-items: center; background: var(--md-soft); padding: 40px 0; }
.md-login > .brxe-container { align-items: center; }
.md-login__card { width: 100%; max-width: 440px; background: var(--md-white); box-shadow: var(--md-shadow); padding: 34px 32px 26px; border-top: 4px solid var(--md-blue); }
.md-login__logo-img { width: 260px; max-width: 100%; height: auto; }
.md-login__title { font-size: 22px; margin: 18px 0 16px; color: var(--md-blue); }
.md-login__meta { font-size: 14px; margin: 14px 0 0; }
.md-justify { text-align: justify; }

/* feature-box: bijela kartica sa sjenom; hover = plava; --blue obrnuto (theme-hover2) */
.md-fbox { background: var(--md-white); box-shadow: var(--md-shadow); text-align: center; color: #333; transition: background-color 1s, color 1s; display: flex; flex-direction: column; align-items: center; }
.md-fbox__title { font-size: 19px; margin: 0; padding: 30px 25px 0; color: #333; transition: color 1s; text-transform: none; }
.md-fbox__title strong { font-weight: 600; }
.md-fbox__text { margin: 0; padding: 20px 25px 40px; }
.md-fbox__ico { margin: 0; padding-top: 34px; color: #666; transition: color 1s; line-height: 0; }
.md-fbox__ico + .md-fbox__title { padding-top: 16px; }
.md-fbox:hover { background-color: var(--md-blue); color: var(--md-white); }
.md-fbox:hover .md-fbox__title, .md-fbox:hover .md-fbox__ico { color: var(--md-white); }
.md-fbox--blue { background-color: var(--md-blue); color: var(--md-white); }
.md-fbox--blue .md-fbox__title { color: var(--md-white); }
.md-fbox--blue:hover { background-color: var(--md-white); color: #333; }
.md-fbox--blue:hover .md-fbox__title { color: #333; }
.md-fbox__icon { width: 130px; height: 130px; object-fit: contain; border-radius: 50%; background: var(--md-white); padding: 12px; margin-top: 30px; }
.md-fbox--blue .md-fbox__text { padding-bottom: 26px; }

/* gumbi */
.md-dugme { display: block; align-self: stretch; margin: 0 20px 30px; padding: 10px; text-align: center; text-transform: uppercase; font-size: 14px; border: 1px solid var(--md-blue); background: var(--md-blue); color: var(--md-white); transition: background-color .3s, color .3s; }
.md-dugme:hover { background: var(--md-white); color: var(--md-blue); }
.md-dugme--white { background: var(--md-white); color: var(--md-blue); border-color: var(--md-white); }
.md-dugme--white:hover { background: var(--md-blue); color: var(--md-white); border-color: var(--md-white); }
.md-btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; padding: 16px 30px; border: 2px solid var(--md-blue); background: transparent; color: var(--md-blue); font-family: var(--md-ff-b); font-size: 15px; text-transform: uppercase; letter-spacing: .02em; transition: background-color .3s, color .3s; text-decoration: none; }
.md-btn:hover { background: var(--md-blue); color: var(--md-white); }
.md-btn--white { border-color: var(--md-white); color: var(--md-white); }
.md-btn--white:hover { background: var(--md-white); color: var(--md-blue); }

/* slike sa sjenom (vc_box_shadow_3d) */
.md-shadow3d { position: relative; box-shadow: 0 18px 22px -14px rgba(0,0,0,.45); }
.md-img { width: 100%; height: auto; display: block; }
.md-zoom { display: block; line-height: 0; cursor: zoom-in; }

/* ---------- Zaglavlje podstranice (fotografija, bijeli naslov lijevo) ---------- */
.md-phead { padding: 70px 0; background-color: var(--md-blue-d); background-size: cover; background-position: center 45%; }
.md-phead__title { color: var(--md-white); font-size: 70px; margin: 0 0 10px; line-height: 1.1; }
.md-phead__sub { color: var(--md-white); font-size: 30px; margin: 0; }
.md-phead--onama { background-image: linear-gradient(90deg, rgba(16,73,131,.72) 0%, rgba(16,73,131,.25) 70%, rgba(16,73,131,.1) 100%), url(/wp-content/uploads/slike/head-onama.jpg); }
.md-phead--usluge { background-position: center 85%; background-image: linear-gradient(90deg, rgba(16,73,131,.72) 0%, rgba(16,73,131,.25) 70%, rgba(16,73,131,.1) 100%), url(/wp-content/uploads/slike/head-usluge.jpg); }
.md-phead--drvo { background-image: url(/wp-content/uploads/2019/03/Drvo.jpg); }
.md-phead--kontakt { background-image: linear-gradient(90deg, rgba(16,73,131,.72) 0%, rgba(16,73,131,.25) 70%, rgba(16,73,131,.1) 100%), url(/wp-content/uploads/slike/head-kontakt.jpg); }
.md-phead--plain { background-image: linear-gradient(rgba(16,73,131,.55), rgba(16,73,131,.55)), url(/wp-content/uploads/slike/head-onama.jpg); padding: 60px 0; }
.md-phead--plain .md-phead__title { font-size: 46px; }

/* ---------- Trake (parallax s tekstom) ---------- */
.md-band { padding: 80px 0; background-size: cover; background-position: center; background-attachment: fixed; }
.md-band__half { width: 50%; }
.md-band__title { font-size: 36px; margin: 0 0 22px; color: var(--md-blue); }
.md-band__title--white, .md-band__text--white { color: var(--md-white); }
.md-band__text { margin: 0; }
.md-band--namjestaj { background-image: url(/wp-content/uploads/2019/03/namjestaj.jpg); }
.md-band--onama { background-image: url(/wp-content/uploads/2019/03/onamabg.jpg); padding: 40px 0 60px; }
.md-band--klijenti { background-image: linear-gradient(rgba(255,255,255,.8), rgba(255,255,255,.8)), url(/wp-content/uploads/slike/bg-klijenti.jpg); }
.md-band__inner--narrow { max-width: min(820px, 100%); }

/* CTA red „Zainteresirani ste za naše usluge?” i plava traka „7 godina…” */
.md-cta { padding: 40px 0; }
.md-cta__inner, .md-strip__inner { display: flex; align-items: center; justify-content: space-between; gap: 20px 40px; flex-direction: row !important; flex-wrap: wrap; }
.md-cta__title { color: var(--md-blue); font-size: 36px; margin: 0; }
.md-strip { background: var(--md-blue); padding: 34px 0; }
.md-strip__title { color: var(--md-white); font-size: 36px; margin: 0; }
.md-strip__title strong { font-weight: 700; }
.md-cta .md-btn, .md-strip .md-btn { min-width: 300px; }

/* ---------- Naslovnica ---------- */
.md-home-slider { padding: 0; background: #ddd; }
.md-slider { position: relative; width: 100%; height: clamp(320px, 42vw, 720px); overflow: hidden; }
.md-slider__track { position: absolute; inset: 0; }
.md-slider__slide { position: absolute; inset: 0; opacity: 0; transition: opacity 1.2s ease; }
.md-slider__slide.is-active { opacity: 1; }
.md-slider__img { width: 100%; height: 100%; object-fit: cover; display: block; }
.md-slider__nav { position: absolute; top: 45%; transform: translateY(-50%); z-index: 2; display: flex; align-items: center; justify-content: center; width: 54px; height: 54px; padding: 0; border: 0; background: transparent; color: var(--md-white); cursor: pointer; opacity: .85; transition: opacity .2s; filter: drop-shadow(0 1px 3px rgba(0,0,0,.4)); }
.md-slider__nav:hover { opacity: 1; }
.md-slider__nav--prev { left: 16px; }
.md-slider__nav--next { right: 16px; }
.md-flyer { position: relative; z-index: 5; margin-top: -170px; padding: 28px 0 32px; background: rgba(49,116,185,.8); }
.md-flyer__inner { align-items: center; text-align: center; gap: 10px; }
.md-flyer__title { color: var(--md-white); font-size: 36px; margin: 0; }
.md-flyer__down { color: var(--md-white); line-height: 0; transition: transform .3s, opacity .3s; opacity: .9; animation: md-bob 2.4s ease-in-out infinite; }
.md-flyer__down .md-icon { stroke-width: 1.4; }
@keyframes md-bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(6px); } }
@media (prefers-reduced-motion: reduce) { .md-flyer__down { animation: none; } }
.md-flyer__down:hover { color: var(--md-white); opacity: 1; }
.md-home-intro { padding: 60px 0 0; }
.md-home-product .md-row { align-items: stretch; }
.md-home-product__img { width: 100%; height: 100%; min-height: 340px; max-height: 520px; object-fit: cover; object-position: 50% 85%; box-shadow: 0 18px 22px -14px rgba(0,0,0,.45); }
.md-duo { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; height: 440px; }
.md-duo--single { grid-template-columns: 1fr; display: block; position: relative; overflow: hidden; box-shadow: 0 18px 22px -14px rgba(0,0,0,.45); }
.md-duo--single .md-duo__img { box-shadow: none; }
@media (max-width: 767px) { .md-duo { height: 320px; } .md-duo--single { height: auto; aspect-ratio: 16 / 10; } }
.md-duo__img { width: 100%; height: 100%; min-height: 0; object-fit: cover; box-shadow: 0 18px 22px -14px rgba(0,0,0,.45); }
.md-home-product .brxe-shortcode { height: 100%; }
@media (min-width: 768px) { .md-cta__inner, .md-strip__inner { flex-wrap: nowrap; } .md-cta .md-btn, .md-strip .md-btn { min-width: 260px; flex: none; } }
.md-home-partners { padding: 30px 0 60px; }
.md-partneri { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 24px 40px; margin-top: 30px; }
.md-partneri__item { display: block; line-height: 0; }
.md-partneri__img { width: auto; max-width: 160px; max-height: 60px; object-fit: contain; transition: transform .25s; }
.md-partneri__item:hover .md-partneri__img { transform: scale(1.05); }

/* recenzije */
.md-rec { position: relative; display: flex; align-items: center; gap: 10px; margin-top: 20px; }
.md-rec__track { position: relative; flex: 1; display: grid; }
.md-rec__item { grid-area: 1 / 1; margin: 0; text-align: center; opacity: 0; visibility: hidden; transition: opacity .6s, visibility .6s; }
.md-rec__item.is-active { opacity: 1; visibility: visible; }
.md-rec__logo { display: inline-flex; align-items: center; justify-content: center; width: 96px; height: 96px; border-radius: 50%; background: var(--md-white); overflow: hidden; margin: 10px 0 14px; }
.md-rec__img { width: 100%; height: 100%; object-fit: contain; }
.md-rec__text { margin: 0; padding: 0; border: 0; font-family: var(--md-ff-b); font-style: normal; quotes: none; color: var(--md-blue); font-size: 18px; line-height: 1.5; }
.md-rec__text p { margin: 0; }
.md-rec__ime { margin-top: 14px; color: var(--md-blue-d); font-weight: 700; }
.md-rec__nav { flex: none; display: flex; align-items: center; justify-content: center; width: 40px; height: 40px; padding: 0; border: 0; background: transparent; color: var(--md-blue-d); cursor: pointer; }
.md-rec__nav:hover { color: var(--md-blue); }

/* ---------- O nama ---------- */
.md-onama { padding: 30px 0 80px; }
.md-onama .md-row { align-items: center; }
.md-direktor { text-align: center; padding: 60px 0 70px; }
.md-direktor__title { font-size: 30px; margin: 0 0 18px; text-align: center; }
.md-band--onama .md-intro__title { margin-bottom: 30px; }
.md-direktor__text { max-width: 1000px; margin: 0 auto; }

/* ---------- Kontakt ---------- */
.md-kontakt { padding: 50px 0 0; }
.md-kontakt__title { font-size: 36px; margin: 0 0 24px; }
.md-osobe { font-family: var(--md-ff-h); }
.md-osoba { padding: 14px 0; border-bottom: 1px solid var(--md-line); }
.md-osoba:last-child { border-bottom: 0; }
.md-osoba__ime, .md-osoba__tel { margin: 0; }
.md-osoba__ime { color: var(--md-head); }
.md-osoba__link { color: var(--md-ink); }
.md-osoba__link:hover { color: var(--md-blue); }
.md-osoba__wa { color: var(--md-blue); line-height: 0; display: inline-block; vertical-align: -4px; margin-left: 6px; }
.md-section--map { padding: 20px 0 50px; }
.md-map { margin-top: 10px; }
.md-kontakt .brxe-form { color: #666; }
.md-kontakt .brxe-form .form-group input, .md-kontakt .brxe-form .form-group textarea { background: rgba(49,116,185,.12) !important; border: 1px solid transparent !important; border-radius: 0 !important; padding: 15px !important; color: #555; font-family: var(--md-ff-b); font-size: 15px; transition: border-color .2s, background-color .2s; }
.md-kontakt .brxe-form .form-group textarea { min-height: 170px; }
.md-kontakt .brxe-form .form-group input:hover, .md-kontakt .brxe-form .form-group textarea:hover,
.md-kontakt .brxe-form .form-group input:focus, .md-kontakt .brxe-form .form-group textarea:focus { border-color: var(--md-blue-d) !important; background: rgba(49,116,185,.06) !important; outline: 0; }
.md-kontakt .brxe-form .form-group input::placeholder, .md-kontakt .brxe-form .form-group textarea::placeholder { color: #6a7480; }
.md-kontakt .brxe-form .bricks-button { background: var(--md-blue); color: var(--md-white); border-radius: 0; padding: 20px 34px; font-weight: 700; text-transform: uppercase; font-family: var(--md-ff-b); letter-spacing: .03em; transition: background-color .2s; }
.md-kontakt .brxe-form .bricks-button:hover { background: var(--md-blue-d); }
.md-form-privacy { font-size: 13px; color: #777; margin: 0; }

/* ---------- Galerija radova ---------- */
.md-gal__filter { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-bottom: 30px; }
.md-gal__chip { padding: 9px 22px; border: 1px solid var(--md-blue); background: var(--md-white); color: var(--md-blue); font-family: var(--md-ff-h); font-size: 14px; text-transform: uppercase; cursor: pointer; transition: background-color .2s, color .2s; }
.md-gal__chip:hover, .md-gal__chip.is-active { background: var(--md-blue); color: var(--md-white); }
.md-gal__grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.md-gal__item { position: relative; display: block; aspect-ratio: 1; overflow: hidden; background: var(--md-soft); cursor: zoom-in; }
.md-gal__item[hidden] { display: none; }
.md-gal__img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.md-gal__title { position: absolute; left: 0; right: 0; bottom: 0; padding: 30px 14px 12px; background: linear-gradient(transparent, rgba(16,73,131,.85)); color: var(--md-white); font-family: var(--md-ff-h); font-size: 15px; opacity: 0; transform: translateY(8px); transition: opacity .3s, transform .3s; }
.md-gal__item:hover .md-gal__img, .md-gal__item:focus-visible .md-gal__img { transform: scale(1.06); }
.md-gal__item:hover .md-gal__title, .md-gal__item:focus-visible .md-gal__title { opacity: 1; transform: none; }

/* ---------- Stranica (politika privatnosti) i 404 ---------- */
.md-prose { max-width: 900px; }
.md-prose h2 { color: var(--md-blue); font-size: 26px; margin: 1.6em 0 .6em; }
.md-prose h3 { font-size: 20px; margin: 1.4em 0 .5em; }
.md-prose p, .md-prose ul { margin: 0 0 1em; }
.md-prose table { width: 100%; border-collapse: collapse; margin: 0 0 1.4em; font-size: 14px; display: block; overflow-x: auto; }
.md-prose th, .md-prose td { border: 1px solid var(--md-line); padding: 8px 10px; text-align: left; vertical-align: top; }
.md-prose th { background: var(--md-soft); font-family: var(--md-ff-h); font-weight: 500; }
.md-e404 { padding: 100px 0; text-align: center; }
.md-e404 > .brxe-container { align-items: center; }
.md-e404__code { font-family: var(--md-ff-h); font-size: 110px; line-height: 1; color: var(--md-blue); margin: 0; }
.md-e404__title { font-size: 32px; margin: 10px 0; }
.md-e404__text { margin: 0 0 28px; }
.md-e404__actions { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }

/* ---------- WhatsApp gumb (bio je Joinchat) ---------- */
.md-wa { position: fixed; right: 20px; bottom: 20px; z-index: 9998; display: flex; align-items: center; justify-content: center; width: 58px; height: 58px; border-radius: 50%; background: #25d366; color: var(--md-white); box-shadow: 0 6px 20px rgba(0,0,0,.22); transition: transform .2s; }
.md-wa:hover { color: var(--md-white); transform: scale(1.07); }

/* ---------- Lightbox ---------- */
.md-lb { position: fixed; inset: 0; z-index: 99999; display: none; align-items: center; justify-content: center; background: rgba(16,73,131,.96); padding: 40px 70px; }
.md-lb.is-open { display: flex; }
html.md-lb-open { overflow: hidden; }
.md-lb__fig { margin: 0; display: flex; flex-direction: column; align-items: center; gap: 10px; max-width: 100%; max-height: 100%; }
.md-lb__img { max-width: 100%; max-height: calc(100vh - 120px); object-fit: contain; box-shadow: 0 20px 60px rgba(0,0,0,.5); }
.md-lb__cap { color: rgba(255,255,255,.9); font-family: var(--md-ff-h); font-size: 15px; text-align: center; }
.md-lb__btn { position: absolute; display: flex; align-items: center; justify-content: center; width: 50px; height: 50px; border: 0; border-radius: 50%; background: rgba(255,255,255,.14); color: #fff; font-size: 34px; line-height: 1; cursor: pointer; transition: background-color .18s; }
.md-lb__btn:hover { background: var(--md-blue); }
.md-lb__close { top: 18px; right: 18px; font-size: 30px; }
.md-lb__prev { left: 14px; top: 50%; transform: translateY(-50%); }
.md-lb__next { right: 14px; top: 50%; transform: translateY(-50%); }
.md-lb.is-single .md-lb__prev, .md-lb.is-single .md-lb__next { display: none; }

/* ---------- Responzivno ---------- */
@media (max-width: 1100px) {
	.md-header .bricks-nav-menu > li > a, .md-header .bricks-nav-menu > li > .brx-submenu-toggle > a { padding: 6px 8px; font-size: 14px; }
	.md-logo__img { width: 280px; }
}
@media (max-width: 991px) {
	.md-section { padding: 60px 0; }
	.md-row--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.md-row--3 { grid-template-columns: minmax(0, 1fr); max-width: 560px; margin: 0 auto; }
	.md-row--2-1 { grid-template-columns: minmax(0, 1fr); }
	.md-gal__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
	.md-band__half { width: 100%; }
	.md-phead, .md-band { background-attachment: scroll; }
	.md-phead__title { font-size: 54px; }
	.md-flyer { margin-top: -120px; }
	.md-flyer__title, .md-title, .md-cta__title, .md-strip__title, .md-band__title, .md-kontakt__title { font-size: 30px; }
	#brx-header.md-scrolled .md-topbar { margin-top: 0; }
}
@media (max-width: 767px) {
	html { scroll-padding-top: 80px; }
	body.admin-bar #brx-header { top: 0; }
	.md-topbar { display: none; }
	.md-mainbar__inner { min-height: 70px; }
	.md-logo__img, #brx-header.md-scrolled .md-logo__img { width: 230px; }
	.md-row--2, .md-row--4 { grid-template-columns: minmax(0, 1fr); }
	.md-fband__inner { grid-template-columns: minmax(0, 1fr); gap: 36px; }
	.md-gal__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
	.md-gal__title { opacity: 1; transform: none; font-size: 13px; padding: 20px 10px 8px; }
	.md-phead { padding: 50px 0; }
	.md-phead__title { font-size: 40px; }
	.md-phead__sub { font-size: 22px; }
	.md-flyer { margin-top: 0; padding: 22px 0; background: var(--md-blue); }
	.md-flyer__title, .md-title, .md-cta__title, .md-strip__title, .md-band__title, .md-kontakt__title, .md-intro__title, .md-direktor__title { font-size: 26px; }
	.md-cta .md-btn, .md-strip .md-btn { min-width: 0; width: 100%; }
	.md-home-product__img:not(.brxe-shortcode) { min-height: 0; aspect-ratio: 4 / 3; height: auto; }
	.md-slider__nav { display: none; }
	.md-sep { margin: 30px auto; }
	.md-lb { padding: 20px 10px; }
	.md-lb__prev, .md-lb__next { top: auto; bottom: 16px; transform: none; }
	.md-wa { right: 16px; bottom: 16px; width: 50px; height: 50px; }
}

/* Kontakt obrazac: labele samo za čitače ekrana (kao stara stranica: placeholderi u poljima) */
.md-kontakt .brxe-form .form-group > label { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.md-kontakt .brxe-form .form-group { position: relative; }

/* Popup nakon uspješnog slanja obrasca (md-front.js) */
.brxe-form .message.success { display: none !important; }
.md-modal { position: fixed; inset: 0; z-index: 100000; display: flex; align-items: center; justify-content: center; padding: 20px; background: rgba(16,73,131,.55); opacity: 0; transition: opacity .25s; }
.md-modal.is-open { opacity: 1; }
.md-modal__box { width: 100%; max-width: 420px; background: var(--md-white); padding: 36px 30px 30px; text-align: center; box-shadow: 0 24px 60px rgba(0,0,0,.25); border-top: 4px solid var(--md-blue); transform: translateY(14px) scale(.98); transition: transform .25s; }
.md-modal.is-open .md-modal__box { transform: none; }
.md-modal__ok { display: inline-flex; align-items: center; justify-content: center; width: 64px; height: 64px; border-radius: 50%; background: rgba(49,116,185,.12); color: var(--md-blue); margin-bottom: 14px; }
.md-modal__t { margin: 0 0 8px; font-size: 26px; color: var(--md-blue); }
.md-modal__p { margin: 0 0 24px; color: var(--md-ink); }
.md-modal__btn { padding: 12px 34px; border: 1px solid var(--md-blue); background: var(--md-blue); color: var(--md-white); font-family: var(--md-ff-b); font-size: 14px; text-transform: uppercase; letter-spacing: .03em; cursor: pointer; transition: background-color .2s, color .2s; }
.md-modal__btn:hover { background: var(--md-white); color: var(--md-blue); }

/* Naslovnica: razmak „Uz naše proizvode…” → slika (mobilno pravilo .md-section ne smije poništiti tight/intro) */
.md-section.md-section--tight { padding-top: 0; }
.md-section.md-home-intro { padding-bottom: 0; }
@media (max-width: 767px) {
	.md-section.md-home-intro { padding-top: 40px; }
	.md-home-intro .md-sep { margin: 24px auto 28px; }
	.md-duo--single { height: auto !important; aspect-ratio: auto; }
	.md-duo--single .md-slider__track, .md-duo--single .md-slider__slide { position: static; opacity: 1; }
	.md-duo--single .md-duo__img { display: block; height: auto; aspect-ratio: 16 / 10; }
	.md-home-product .brxe-shortcode, .md-home-product .brxe-shortcode.md-home-product__img { height: auto; min-height: 0; max-height: none; aspect-ratio: auto; line-height: 0; box-shadow: none; }
	.md-home-product .md-row { grid-template-rows: auto; grid-auto-rows: auto; align-items: start; }
	.md-rec { gap: 0; }
	.md-rec__nav { width: 32px; }
	.md-rec__text { font-size: 16px; }
}