/* ============================================================
   BRACA-COP - dizajn sistem
   ============================================================ */

@font-face {
  font-family: "Archivo";
  src: url("../fonts/archivo-latin.woff2") format("woff2-variations");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Archivo";
  src: url("../fonts/archivo-latin-ext.woff2") format("woff2-variations");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

/* ---------- Tokens ---------- */

:root {
  --ink: #101418;
  --ink-2: #1a212b;
  --ink-3: #232c38;
  --paper: #f5f7f9;
  --white: #ffffff;
  --accent: #e05e12;
  --accent-dark: #c04e0a;
  --accent-soft: #fdf0e5;
  --text: #2c3540;
  --muted: #5c6873;
  --line: #dfe4ea;
  --ok: #177a46;
  --ok-bg: #e7f5ec;
  --reserved: #a86a12;
  --reserved-bg: #fbf3e2;
  --sold: #7c858f;
  --sold-bg: #eef0f3;
  --radius: 12px;
  --radius-sm: 8px;
  --shadow-sm: 0 1px 2px rgba(16, 20, 24, 0.08);
  --shadow-md: 0 6px 24px rgba(16, 20, 24, 0.1);
  --shadow-lg: 0 16px 48px rgba(16, 20, 24, 0.18);
  --container: 1200px;
  --font: "Archivo", "Segoe UI", system-ui, -apple-system, sans-serif;
}

/* ---------- Reset i baza ---------- */

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

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

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

a {
  color: var(--accent-dark);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

h1, h2, h3, h4 {
  color: var(--ink);
  line-height: 1.2;
  font-weight: 700;
  margin: 0 0 0.5em;
  letter-spacing: -0.01em;
}

h1 { font-size: clamp(1.9rem, 4.2vw, 2.9rem); }
h2 { font-size: clamp(1.45rem, 2.6vw, 1.9rem); }
h3 { font-size: 1.15rem; }

p {
  margin: 0 0 1em;
}

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

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 200;
  background: var(--ink);
  color: #fff;
  padding: 10px 16px;
}

.skip-link:focus {
  left: 0;
}

.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 20px;
}

.center {
  text-align: center;
}

.icon {
  flex: none;
  vertical-align: -0.15em;
}

/* ---------- Dugmad ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font);
  font-weight: 600;
  font-size: 1rem;
  line-height: 1.2;
  padding: 12px 22px;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  cursor: pointer;
  transition: background-color 0.18s ease, border-color 0.18s ease, color 0.18s ease, transform 0.12s ease, box-shadow 0.18s ease;
  text-decoration: none;
  white-space: nowrap;
}

.btn:hover {
  text-decoration: none;
  transform: translateY(-1px);
}

.btn:active {
  transform: translateY(0);
}

.btn-primary {
  background: var(--accent);
  color: #fff;
}

.btn-primary:hover {
  background: var(--accent-dark);
  color: #fff;
  box-shadow: var(--shadow-md);
}

.btn-outline {
  background: var(--white);
  color: var(--ink);
  border-color: #c9d1da;
}

.btn-outline:hover {
  border-color: var(--ink);
  background: var(--paper);
}

.btn-outline-light {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.55);
}

.btn-outline-light:hover {
  background: rgba(255, 255, 255, 0.16);
  border-color: #fff;
  color: #fff;
}

.btn-light {
  background: #fff;
  color: var(--ink);
}

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

.btn-sm {
  padding: 9px 16px;
  font-size: 0.92rem;
}

.btn-lg {
  padding: 15px 28px;
  font-size: 1.05rem;
}

.btn-block {
  width: 100%;
}

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 600;
  color: var(--accent-dark);
}

.link-arrow .icon {
  transition: transform 0.15s ease;
}

.link-arrow:hover .icon {
  transform: translateX(3px);
}

/* ---------- Sekcije ---------- */

.section {
  padding: 72px 0;
}

.section--light {
  background: var(--paper);
}

.section--dark {
  background: var(--ink);
}

.section--dark h1,
.section--dark h2,
.section--dark h3 {
  color: #fff;
}

.section--dark p {
  color: #c6cdd6;
}

.section-head {
  max-width: 760px;
  margin: 0 auto 44px;
  text-align: center;
}

.section-head h2 {
  margin-bottom: 12px;
}

.section-head p {
  color: var(--muted);
  font-size: 1.08rem;
  margin: 0;
}

.section-head--row {
  max-width: none;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  text-align: left;
  margin-bottom: 36px;
}

.section-head--row h2 {
  margin-bottom: 8px;
}

.section-head--row p {
  margin: 0;
}

.section-head--light p {
  color: #9aa5b1;
}

/* ---------- Zaglavlje ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--white);
  border-bottom: 1px solid var(--line);
  transition: box-shadow 0.2s ease;
}

.site-header.is-scrolled {
  box-shadow: var(--shadow-md);
}

.site-header__inner {
  display: flex;
  align-items: center;
  gap: 28px;
  min-height: 74px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--ink);
}

.brand:hover {
  text-decoration: none;
}

.logo-mark {
  width: auto;
  height: 42px;
  border-radius: 0;
}

.brand__text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.brand__text strong {
  font-size: 1.22rem;
  font-weight: 800;
  letter-spacing: 0.02em;
}

.brand__text small {
  font-size: 0.74rem;
  color: var(--muted);
}

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

.site-nav a {
  display: inline-flex;
  align-items: center;
  white-space: nowrap;
  padding: 8px 13px;
  border-radius: 7px;
  color: var(--text);
  font-weight: 600;
  font-size: 0.98rem;
}

.site-nav a:hover {
  background: var(--paper);
  text-decoration: none;
  color: var(--ink);
}

.site-nav a.is-active {
  background: var(--accent-soft);
  color: var(--accent-dark);
}

.site-header__actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

.nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  color: var(--ink);
  cursor: pointer;
}

/* ---------- Mobilna navigacija ---------- */

.mobile-nav {
  position: fixed;
  inset: 0;
  z-index: 150;
  background: var(--white);
  display: flex;
  flex-direction: column;
  padding: 20px 20px 32px;
  overflow-y: auto;
  transform: translateX(100%);
  transition: transform 0.28s ease;
}

.mobile-nav.is-open {
  transform: translateX(0);
}

.mobile-nav[hidden] {
  display: none;
}

.mobile-nav:not([hidden]).is-open {
  display: flex;
}

body.nav-locked {
  overflow: hidden;
}

.mobile-nav__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}

.mobile-nav__title {
  font-weight: 800;
  font-size: 1.25rem;
  color: var(--ink);
}

.mobile-nav__links {
  display: flex;
  flex-direction: column;
  border-top: 1px solid var(--line);
}

.mobile-nav__links a {
  padding: 15px 4px;
  font-size: 1.12rem;
  font-weight: 600;
  color: var(--text);
  border-bottom: 1px solid var(--line);
}

.mobile-nav__links a:hover {
  text-decoration: none;
  color: var(--accent-dark);
}

.mobile-nav__links a.is-active {
  color: var(--accent-dark);
}

.mobile-nav__cta {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 22px 0;
}

.mobile-nav__contacts {
  margin-top: auto;
  border-top: 1px solid var(--line);
  padding-top: 18px;
  font-size: 0.95rem;
  color: var(--muted);
}

.mobile-nav__contacts p {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin-bottom: 10px;
}

/* ---------- Hero ---------- */

.hero {
  position: relative;
  min-height: 640px;
  display: flex;
  align-items: center;
  color: #fff;
  overflow: hidden;
  background: var(--ink);
}

.hero__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 55%;
}

.hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(100deg, rgba(10, 14, 18, 0.94) 0%, rgba(10, 14, 18, 0.8) 42%, rgba(10, 14, 18, 0.55) 72%, rgba(10, 14, 18, 0.45) 100%);
}

.hero__inner {
  position: relative;
  padding: 120px 20px;
  max-width: 1240px;
  width: 100%;
}

.hero__eyebrow {
  display: inline-block;
  font-weight: 600;
  font-size: 0.86rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #ffc9a3;
  margin-bottom: 18px;
}

.hero h1 {
  color: #fff;
  max-width: 640px;
  margin-bottom: 18px;
}

.hero__lead {
  font-size: 1.18rem;
  color: #d7dde4;
  max-width: 560px;
  margin-bottom: 30px;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 44px;
}

.hero__trust {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
  max-width: 860px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.hero__trust li {
  display: flex;
  gap: 10px;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--radius);
  padding: 14px 16px;
}

.hero__trust .icon {
  color: #ffb27d;
  margin-top: 2px;
}

.hero__trust b {
  display: block;
  color: #fff;
  font-size: 0.95rem;
  margin-bottom: 2px;
}

.hero__trust small {
  color: #aab3bd;
  font-size: 0.84rem;
}

/* ---------- Zaglavlje stranice ---------- */

.page-head {
  background: var(--paper);
  border-bottom: 1px solid var(--line);
  padding: 48px 0;
}

.page-head h1 {
  margin-bottom: 12px;
}

.page-head__lead {
  font-size: 1.12rem;
  color: var(--muted);
  max-width: 780px;
  margin: 0;
}

.page-head__logo {
  display: inline-block;
  margin-top: 26px;
  padding: 16px 22px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-sm);
}

.page-head__logo-img {
  display: block;
  max-width: 280px;
  width: 100%;
  height: auto;
  object-fit: contain;
}

.page-head--page {
  padding: 26px 0;
}

.page-head--404 {
  padding: 96px 0;
  text-align: center;
}

.err-code {
  font-size: clamp(4rem, 12vw, 7rem);
  font-weight: 800;
  color: var(--accent);
  line-height: 1;
  margin: 0 0 8px;
  letter-spacing: 0.02em;
}

.page-head--404 .hero__actions,
.page-head--404 .search-form {
  justify-content: center;
  max-width: 560px;
  margin-left: auto;
  margin-right: auto;
}

.page-head--image {
  position: relative;
  padding: 0;
  border-bottom: none;
  background: var(--ink);
}

.page-head__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.page-head__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(10, 14, 18, 0.9) 0%, rgba(10, 14, 18, 0.68) 60%, rgba(10, 14, 18, 0.5) 100%);
}

.page-head__inner {
  position: relative;
  padding: 130px 20px 110px;
}

.page-head--image h1 {
  color: #fff;
}

.page-head--image .page-head__lead {
  color: #d7dde4;
}

.page-head--image .breadcrumbs,
.page-head--image .breadcrumbs a,
.page-head--image .breadcrumbs [aria-current="page"] {
  color: #cfd6de;
  border-color: rgba(255, 255, 255, 0.25);
}

/* ---------- Breadcrumbs ---------- */

.breadcrumbs {
  font-size: 0.9rem;
  margin-bottom: 20px;
}

.breadcrumbs ol {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.breadcrumbs li {
  color: var(--muted);
}

.breadcrumbs a {
  color: var(--muted);
}

.breadcrumbs a:hover {
  color: var(--accent-dark);
}

.breadcrumbs [aria-current="page"] {
  color: var(--ink);
  font-weight: 600;
}

.breadcrumbs .sep {
  color: #a9b2bc;
}

/* ---------- Kartice kategorija ---------- */

.cat-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
}

.cat-card {
  position: relative;
  display: block;
  border-radius: var(--radius);
  overflow: hidden;
  min-height: 420px;
  background: var(--ink);
  box-shadow: var(--shadow-sm);
}

.cat-card:hover {
  text-decoration: none;
  box-shadow: var(--shadow-md);
}

.cat-card__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.cat-card:hover .cat-card__img {
  transform: scale(1.05);
}

.cat-card__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(10, 14, 18, 0.18) 20%, rgba(10, 14, 18, 0.45) 55%, rgba(10, 14, 18, 0.92) 100%);
  transition: background 0.3s ease;
}

.cat-card__body {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 26px 24px;
  color: #fff;
}

.cat-card__title {
  display: block;
  font-size: 1.35rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.cat-card__text {
  display: block;
  color: #cfd6de;
  font-size: 0.95rem;
  margin-bottom: 14px;
}

.cat-card__link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 600;
  color: #ffb27d;
}

.cat-card:hover .cat-card__link .icon {
  transform: translateX(3px);
}

/* ---------- Kartice mašina ---------- */

.machine-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
}

.machines-content .machine-grid {
  grid-template-columns: repeat(3, 1fr);
}

.machine-card {
  display: flex;
  flex-direction: column;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.machine-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
}

.machine-card__media {
  position: relative;
  display: block;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--ink);
}

.machine-card__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.45s ease;
}

.machine-card:hover .machine-card__img {
  transform: scale(1.05);
}

.machine-card__badge {
  position: absolute;
  top: 12px;
  left: 12px;
}

.sold-ribbon {
  position: absolute;
  top: 14px;
  right: -36px;
  transform: rotate(38deg);
  background: var(--ink);
  color: #fff;
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 5px 42px;
  box-shadow: var(--shadow-sm);
}

.sold-ribbon--lg {
  font-size: 0.85rem;
  padding: 7px 48px;
}

.machine-card__body {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 18px;
}

.machine-card__title {
  font-size: 1.1rem;
  margin-bottom: 4px;
}

.machine-card__title a {
  color: var(--ink);
}

.machine-card__title a:hover {
  color: var(--accent-dark);
}

.machine-card__type {
  color: var(--muted);
  font-size: 0.92rem;
  margin-bottom: 10px;
}

.machine-card__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 12px;
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 4px 11px;
  font-size: 0.83rem;
  font-weight: 600;
  color: var(--text);
}

.chip-loc {
  color: var(--accent-dark);
  background: var(--accent-soft);
  border-color: #f3d5ba;
}

.machine-card__specs {
  display: flex;
  flex-direction: column;
  gap: 6px;
  border-top: 1px solid var(--line);
  padding-top: 12px;
  margin-top: auto;
}

.m-spec {
  font-size: 0.88rem;
  color: var(--muted);
  display: flex;
  justify-content: space-between;
  gap: 10px;
}

.m-spec b {
  color: var(--text);
  font-weight: 600;
  white-space: nowrap;
}

.machine-card__foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  border-top: 1px solid var(--line);
  padding-top: 12px;
  margin-top: 12px;
}

.machine-card__price {
  font-weight: 700;
  color: var(--ink);
  font-size: 0.98rem;
}

.machine-card__foot .link-arrow {
  font-size: 0.92rem;
}

/* ---------- Status značke ---------- */

.status-badge {
  display: inline-block;
  border-radius: 999px;
  padding: 4px 12px;
  font-size: 0.8rem;
  font-weight: 700;
}

.status-ok {
  background: var(--ok-bg);
  color: var(--ok);
}

.status-reserved {
  background: var(--reserved-bg);
  color: var(--reserved);
}

.status-sold {
  background: var(--sold-bg);
  color: var(--sold);
}

/* ---------- Proizvođači ---------- */

.manufacturer-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 22px;
}

.manufacturer-grid--single {
  grid-template-columns: 1fr;
}

.manufacturer-grid--single .manufacturer-card__media {
  aspect-ratio: 16 / 6;
  background: var(--white);
}

.manufacturer-card__logo {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 22px;
}

.manufacturer-card__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 18px;
}

.manufacturer-card {
  display: flex;
  flex-direction: column;
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}

.manufacturer-card__media {
  display: block;
  aspect-ratio: 16 / 8;
  overflow: hidden;
  background: var(--ink);
}

.manufacturer-card__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.45s ease;
}

.manufacturer-card:hover .manufacturer-card__img {
  transform: scale(1.04);
}

.manufacturer-card__body {
  padding: 26px;
}

.manufacturer-card__country {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--accent-dark);
  background: var(--accent-soft);
  border-radius: 999px;
  padding: 4px 12px;
  margin-bottom: 12px;
}

.manufacturer-card__title {
  margin-bottom: 8px;
}

.manufacturer-card__title a {
  color: var(--ink);
}

.manufacturer-card__body > p {
  color: var(--muted);
  font-size: 0.95rem;
}

.manufacturer-card__cats {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 18px;
  padding: 0;
  list-style: none;
}

.manufacturer-card__cats li {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 4px 12px;
  font-size: 0.84rem;
  color: var(--text);
}

.home-catalogs {
  margin-top: 56px;
}

.home-catalogs > h3 {
  color: #fff;
  font-size: 1.35rem;
  text-align: center;
  margin-bottom: 24px;
}

/* ---------- Katalozi ---------- */

.catalog-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
}

.catalog-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
}

.catalog-card {
  display: flex;
  flex-direction: column;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.catalog-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
}

.catalog-card__media {
  display: block;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  background: var(--ink);
}

.catalog-card__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.45s ease;
}

.catalog-card:hover .catalog-card__img {
  transform: scale(1.05);
}

.catalog-card__body {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 18px;
}

.catalog-card__brand {
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--accent-dark);
  margin-bottom: 6px;
}

.catalog-card__title {
  font-size: 1.02rem;
  margin-bottom: 6px;
}

.catalog-card__meta {
  font-size: 0.85rem;
  color: var(--muted);
  margin-bottom: 14px;
}

.catalog-card__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: auto;
}

/* ---------- Usluge ---------- */

.service-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.service-card {
  display: flex;
  flex-direction: column;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.service-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
}

.service-card__media {
  display: block;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: var(--ink);
}

.service-card__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.45s ease;
}

.service-card:hover .service-card__img {
  transform: scale(1.05);
}

.service-card__body {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 22px;
}

.service-card__title {
  font-size: 1.12rem;
  margin-bottom: 8px;
}

.service-card__title a {
  color: var(--ink);
}

.service-card__title a:hover {
  color: var(--accent-dark);
}

.service-card__body p {
  color: var(--muted);
  font-size: 0.95rem;
  flex: 1;
  margin-bottom: 16px;
}

.service-detail__cols {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

/* ---------- Reference ---------- */

.project-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.project-card {
  display: flex;
  flex-direction: column;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.project-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
}

.project-card__media {
  display: block;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: var(--ink);
}

.project-card__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.45s ease;
}

.project-card:hover .project-card__img {
  transform: scale(1.05);
}

.project-card__body {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 22px;
}

.project-card__title {
  font-size: 1.1rem;
  margin-bottom: 6px;
}

.project-card__title a {
  color: var(--ink);
}

.project-card__title a:hover {
  color: var(--accent-dark);
}

.project-card__meta {
  font-size: 0.85rem;
  color: var(--accent-dark);
  font-weight: 600;
  margin-bottom: 10px;
}

.project-card__body > p {
  color: var(--muted);
  font-size: 0.95rem;
  margin: 0;
}

.project-meta {
  margin-bottom: 30px !important;
}

.results-card {
  margin-top: 26px;
}

/* ---------- Proces ---------- */

.process {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 18px;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: step;
}

.process li {
  position: relative;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px;
  box-shadow: var(--shadow-sm);
}

.process--compact {
  grid-template-columns: 1fr;
  gap: 12px;
}

.process--compact li {
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 6px 14px;
  align-items: start;
  padding: 16px 18px;
}

.process--compact .process__num {
  grid-row: 1 / 3;
  width: 44px;
  height: 44px;
  line-height: 44px;
  text-align: center;
}

.process__num {
  display: block;
  width: 40px;
  height: 40px;
  line-height: 40px;
  text-align: center;
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
  font-weight: 800;
  font-size: 0.95rem;
  margin-bottom: 14px;
}

.process h3 {
  font-size: 1.05rem;
  margin-bottom: 6px;
}

.process p {
  color: var(--muted);
  font-size: 0.92rem;
  margin: 0;
}

/* ---------- CTA blok ---------- */

.cta-block {
  background: var(--ink);
  background-image: linear-gradient(180deg, rgba(8, 12, 16, 0.82), rgba(8, 12, 16, 0.88)), url("../../images/optimized/constmach-transportni-sistem-1600.webp");
  background-size: cover;
  background-position: center;
  padding: 76px 0;
}

.cta-block__inner {
  text-align: center;
  max-width: 720px;
}

.cta-block h2 {
  color: #fff;
  font-size: clamp(1.5rem, 3vw, 2.1rem);
  margin-bottom: 14px;
}

.cta-block p {
  color: #c6cdd6;
  font-size: 1.08rem;
  margin-bottom: 30px;
}

.cta-block__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
}

/* ---------- Podnožje ---------- */

.site-footer {
  background: #0b0f13;
  color: #aab3bd;
  padding: 64px 0 0;
}

.site-footer a {
  color: #c6cdd6;
}

.site-footer a:hover {
  color: #ffb27d;
  text-decoration: none;
}

.site-footer__grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1.2fr 1.3fr;
  gap: 36px;
  padding-bottom: 48px;
}

.site-footer__col h2 {
  color: #fff;
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 16px;
}

.site-footer__col ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 9px;
}

.site-footer__col ul a,
.site-footer__col p {
  font-size: 0.93rem;
}

.site-footer__brand .brand__text strong {
  color: #fff;
}

.site-footer__brand .brand__text small {
  color: #8b95a0;
}

.site-footer__brand > p {
  margin-top: 20px;
  font-size: 0.95rem;
}

.site-footer__locs {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-top: 22px;
  border-top: 1px solid #1e2730;
  padding-top: 20px;
}

.site-footer__locs b {
  color: #fff;
  font-size: 0.92rem;
}

.site-footer__locs p {
  font-size: 0.9rem;
  margin: 0;
}

.site-footer__contact p {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin-bottom: 12px;
}

.site-footer__contact .icon {
  margin-top: 4px;
  color: #ffb27d;
}

.site-footer__bottom {
  border-top: 1px solid #1e2730;
  padding: 20px 0;
  display: flex;
  flex-wrap: wrap;
  gap: 12px 28px;
  justify-content: space-between;
  font-size: 0.88rem;
}

.site-footer__bottom p {
  margin: 0;
}

/* ---------- Mobilna kontakt traka ---------- */

.mobile-contact-bar {
  display: none;
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 90;
  grid-template-columns: 1fr 1.4fr;
  box-shadow: 0 -4px 16px rgba(16, 20, 24, 0.16);
}

.mobile-contact-bar a {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 10px;
  font-weight: 700;
  font-size: 0.98rem;
}

.mobile-contact-bar__call {
  background: var(--ink);
  color: #fff;
}

.mobile-contact-bar__call:hover {
  color: #fff;
  background: var(--ink-2);
  text-decoration: none;
}

.mobile-contact-bar__mail {
  background: var(--accent);
  color: #fff;
}

.mobile-contact-bar__mail:hover {
  background: var(--accent-dark);
  color: #fff;
  text-decoration: none;
}

/* ---------- Stranica polovnih mašina ---------- */

.machines-layout {
  display: grid;
  grid-template-columns: 270px 1fr;
  gap: 30px;
  align-items: start;
}

.filter-panel {
  position: sticky;
  top: 94px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px;
}

.filter-panel__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}

.filter-panel__head h2 {
  font-size: 1.1rem;
  margin: 0;
}

.filter-panel__close {
  display: none;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  color: var(--ink);
  cursor: pointer;
}

.filter-group {
  border-top: 1px solid var(--line);
  padding: 14px 0;
}

.filter-group h3 {
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--muted);
  margin-bottom: 10px;
}

.filter-group .check {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  padding: 5px 0;
  font-size: 0.95rem;
  cursor: pointer;
}

.filter-reset {
  margin-top: 6px;
}

.machines-content {
  min-width: 0;
}

.machines-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
  margin-bottom: 22px;
}

.machines-toolbar p {
  margin: 0;
  font-size: 0.95rem;
  color: var(--muted);
  font-weight: 600;
}

.machines-toolbar .filter-open {
  display: none;
}

.sort-select {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text);
  margin-left: auto;
}

.sort-select select {
  font-family: var(--font);
  font-size: 0.92rem;
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  color: var(--ink);
  cursor: pointer;
}

.empty-state {
  text-align: center;
  padding: 48px 24px;
  background: var(--white);
  border: 1px dashed var(--line);
  border-radius: var(--radius);
}

.empty-state h2 {
  margin-bottom: 8px;
}

.empty-state p {
  color: var(--muted);
  margin-bottom: 20px;
}

/* ---------- Filteri referenci ---------- */

.ref-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
  margin-bottom: 28px;
}

.ref-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.chip-btn {
  font-family: var(--font);
  font-size: 0.92rem;
  font-weight: 600;
  padding: 8px 18px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--white);
  color: var(--text);
  cursor: pointer;
  transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.chip-btn:hover {
  border-color: var(--ink);
}

.chip-btn.is-active {
  background: var(--ink);
  color: #fff;
  border-color: var(--ink);
}

/* ---------- Detalj mašine ---------- */

.machine-detail {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 36px;
  align-items: start;
}

.machine-detail__gallery {
  min-width: 0;
}

.gallery-main {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--ink);
  box-shadow: var(--shadow-md);
}

.gallery-main__img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  display: block;
}

.gallery-main__cap {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  margin: 0;
  padding: 44px 18px 16px;
  background: linear-gradient(180deg, transparent, rgba(10, 14, 18, 0.9));
  color: #fff;
  font-size: 0.92rem;
}

.gallery-thumbs {
  display: flex;
  gap: 10px;
  margin-top: 12px;
  overflow-x: auto;
  padding-bottom: 4px;
}

.gallery-thumb {
  flex: 0 0 96px;
  padding: 0;
  border: 2px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  cursor: pointer;
  background: var(--ink);
  transition: border-color 0.15s ease;
}

.gallery-thumb:hover {
  border-color: #a9b2bc;
}

.gallery-thumb.is-active {
  border-color: var(--accent);
}

.gallery-thumb__img {
  width: 96px;
  height: 72px;
  object-fit: cover;
}

.machine-detail__aside h1 {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  margin-bottom: 10px;
}

.machine-detail__price {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--ink);
  margin-bottom: 12px;
}

.machine-detail__badges {
  margin-bottom: 20px;
}

.quick-facts {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  margin: 0 0 22px;
}

.quick-facts div {
  background: var(--white);
  padding: 12px 14px;
}

.quick-facts dt {
  font-size: 0.8rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.quick-facts dd {
  margin: 2px 0 0;
  font-weight: 700;
  color: var(--ink);
}

.machine-detail__actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 16px;
}

.machine-detail__note {
  font-size: 0.92rem;
  color: var(--muted);
  margin: 0;
}

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 36px;
  align-items: start;
}

.split--60 {
  grid-template-columns: 1.4fr 1fr;
}

.spec-table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.spec-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
}

.spec-table th,
.spec-table td {
  text-align: left;
  padding: 12px 16px;
  border-bottom: 1px solid var(--line);
}

.spec-table tr:last-child th,
.spec-table tr:last-child td {
  border-bottom: none;
}

.spec-table th {
  color: var(--muted);
  font-weight: 600;
  width: 40%;
  background: var(--paper);
}

.aside-cards {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.card-stack {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.info-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px;
  box-shadow: var(--shadow-sm);
}

.info-card h2,
.info-card h3 {
  font-size: 1.05rem;
  margin-bottom: 12px;
}

.info-card p {
  font-size: 0.95rem;
  margin-bottom: 8px;
}

.info-card ul,
.info-card ol {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 0.95rem;
}

.info-card li {
  display: flex;
  gap: 9px;
  align-items: flex-start;
}

.info-card li .icon {
  color: var(--ok);
  margin-top: 4px;
}

.num-list li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}

.num-list li span {
  flex: none;
  width: 26px;
  height: 26px;
  line-height: 26px;
  text-align: center;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent-dark);
  font-weight: 800;
  font-size: 0.85rem;
}

/* ---------- O nama ---------- */

.about-story p {
  font-size: 1.02rem;
}

.page-figure {
  margin: 0;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}

.page-figure__img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.cap-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

.cap-card {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius);
  padding: 24px;
}

.cap-card__num {
  display: block;
  font-size: 0.85rem;
  font-weight: 800;
  color: #ffb27d;
  margin-bottom: 14px;
}

.cap-card h3 {
  color: #fff;
  font-size: 1.05rem;
  margin-bottom: 8px;
}

.cap-card p {
  color: #aab3bd;
  font-size: 0.92rem;
  margin: 0;
}

.loc-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 22px;
}

.loc-card h3 {
  margin-bottom: 14px;
}

.loc-card p {
  display: flex;
  align-items: flex-start;
  gap: 8px;
}

/* ---------- Kategorije mašina (lista) ---------- */

.cat-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.cat-list__item {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 24px;
  align-items: center;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px 26px;
  box-shadow: var(--shadow-sm);
}

.cat-list__item h3 {
  margin-bottom: 6px;
}

.cat-list__item p {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.cat-list__machines {
  font-weight: 700;
  color: var(--text) !important;
  white-space: nowrap;
}

/* ---------- FAQ ---------- */

.faq {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.faq-item {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  overflow: hidden;
}

.faq-item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 16px 20px;
  cursor: pointer;
  font-weight: 600;
  color: var(--ink);
  list-style: none;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary .icon {
  transition: transform 0.2s ease;
  color: var(--muted);
}

.faq-item[open] summary .icon {
  transform: rotate(180deg);
}

.faq-item summary:hover {
  background: var(--paper);
}

.faq-item[open] summary {
  border-bottom: 1px solid var(--line);
}

.faq-item > div {
  padding: 4px 20px 18px;
}

.faq-item p {
  margin: 0;
  color: var(--muted);
}

/* ---------- Kontakt ---------- */

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 36px;
  align-items: start;
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.contact-form-wrap h2 {
  margin-bottom: 22px;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.field-full {
  grid-column: 1 / -1;
}

.field label {
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--ink);
}

.req {
  color: var(--accent);
}

.field input,
.field select,
.field textarea {
  font-family: var(--font);
  font-size: 1rem;
  padding: 11px 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--white);
  color: var(--ink);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(224, 94, 18, 0.16);
}

.field.has-error input,
.field.has-error select,
.field.has-error textarea {
  border-color: #c03434;
}

.field-error {
  color: #c03434;
  font-size: 0.86rem;
  margin: 0;
}

.field-consent .check {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-size: 0.92rem;
  color: var(--muted);
}

.field-consent input[type="checkbox"] {
  width: 18px;
  height: 18px;
  margin-top: 2px;
  accent-color: var(--accent);
}

.form-note {
  font-size: 0.9rem;
  color: var(--muted);
  margin: 0;
}

.form-success {
  border: 1px solid #b9ddc8;
  background: var(--ok-bg);
  border-radius: var(--radius-sm);
  padding: 16px 18px;
}

.form-success p {
  margin: 0;
  color: var(--ok);
  font-weight: 600;
}

.form-success .form-success-sub {
  font-weight: 400;
  margin-top: 6px;
  font-size: 0.92rem;
}

.form-success a {
  color: var(--ok);
  text-decoration: underline;
}

/* ---------- Pretraga ---------- */

.search-form {
  margin-top: 30px;
  max-width: 620px;
}

.page-head--404 .search-form {
  margin-top: 26px;
}

.search-form__row {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 6px 10px 6px 20px;
  box-shadow: var(--shadow-sm);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.search-form__row:focus-within {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(224, 94, 18, 0.14);
}

.search-form__row .icon {
  color: var(--muted);
}

.search-form__row input {
  flex: 1;
  border: none;
  background: transparent;
  font-family: var(--font);
  font-size: 1rem;
  padding: 9px 0;
  color: var(--ink);
}

.search-form__row input:focus {
  outline: none;
}

.search-result {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px 26px;
  margin-bottom: 14px;
  box-shadow: var(--shadow-sm);
  transition: box-shadow 0.2s ease;
}

.search-result:hover {
  box-shadow: var(--shadow-md);
}

.search-result h3 {
  margin-bottom: 4px;
}

.search-result h3 a {
  color: var(--ink);
}

.search-result h3 a:hover {
  color: var(--accent-dark);
}

.search-result p {
  color: var(--muted);
  font-size: 0.95rem;
  margin: 0;
}

.search-result__tag {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--accent-dark);
  background: var(--accent-soft);
  border-radius: 999px;
  padding: 3px 10px;
  margin-bottom: 10px;
}

/* ---------- Razno ---------- */

.note-box {
  background: var(--white);
  border: 1px solid var(--line);
  border-left: 4px solid var(--accent);
  border-radius: var(--radius-sm);
  padding: 16px 20px;
  margin-top: 26px;
  font-size: 0.95rem;
}

.note-box p {
  margin: 0;
}

.check-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.check-list li {
  display: flex;
  gap: 10px;
  align-items: flex-start;
}

.check-list .icon {
  color: var(--ok);
  margin-top: 4px;
}

.prose p {
  font-size: 1.02rem;
}

.prose h2 {
  margin-top: 34px;
}

/* ---------- Animacije ---------- */

.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: none;
}

/* ---------- Responsivno ---------- */

@media (max-width: 1180px) {
  .site-header__actions {
    gap: 12px;
  }

  .cat-grid,
  .machine-grid,
  .catalog-strip,
  .catalog-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .cap-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .site-footer__grid {
    grid-template-columns: 1.4fr 1fr 1fr 1.3fr;
  }

  .site-footer__col:nth-child(4) {
    display: none;
  }
}

@media (max-width: 960px) {
  .section {
    padding: 56px 0;
  }

  .site-nav {
    display: none;
  }

  .nav-toggle {
    display: inline-flex;
  }

  .site-header__actions {
    margin-left: auto;
    margin-right: -12px;
  }

  .cat-grid,
  .machine-grid,
  .service-grid,
  .project-grid,
  .catalog-strip,
  .catalog-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .machines-content .machine-grid {
    grid-template-columns: repeat(2, 1fr);
  }

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

  .process {
    grid-template-columns: repeat(2, 1fr);
  }

  .process li:last-child {
    grid-column: 1 / -1;
  }

  .machines-layout {
    grid-template-columns: 1fr;
  }

  .filter-panel {
    position: fixed;
    inset: 0;
    top: 0;
    z-index: 160;
    border-radius: 0;
    border: none;
    overflow-y: auto;
    display: none;
  }

  .filter-panel.is-open {
    display: block;
  }

  .filter-panel__close {
    display: inline-flex;
  }

  .machines-toolbar .filter-open {
    display: inline-flex;
  }

  .machine-detail,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .split,
  .split--60 {
    grid-template-columns: 1fr;
  }

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

  .site-footer__col:nth-child(4) {
    display: block;
  }

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

  .hero {
    min-height: 560px;
  }

  .hero__inner {
    padding: 100px 20px;
  }

  .cat-list__item {
    grid-template-columns: 1fr auto;
  }

  .cat-list__machines {
    display: none;
  }
}

@media (max-width: 720px) {
  .hero {
    min-height: 520px;
  }

  .hero__trust {
    grid-template-columns: repeat(2, 1fr);
  }

  .hero__inner {
    padding: 84px 20px;
  }

  .hero__overlay {
    background: linear-gradient(180deg, rgba(10, 14, 18, 0.55) 0%, rgba(10, 14, 18, 0.72) 45%, rgba(10, 14, 18, 0.88) 100%);
  }

  .page-head__overlay {
    background: linear-gradient(180deg, rgba(10, 14, 18, 0.6) 0%, rgba(10, 14, 18, 0.78) 60%, rgba(10, 14, 18, 0.9) 100%);
  }

  .hero h1 {
    font-size: clamp(1.7rem, 7vw, 2.2rem);
  }

  .hero__lead {
    font-size: 1.05rem;
  }

  .cat-grid,
  .machine-grid,
  .service-grid,
  .project-grid,
  .catalog-strip,
  .catalog-grid {
    grid-template-columns: 1fr;
  }

  .machines-content .machine-grid {
    grid-template-columns: 1fr;
  }

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

  .process li:last-child {
    grid-column: auto;
  }

  .cap-grid,
  .loc-grid {
    grid-template-columns: 1fr;
  }

  .section-head--row {
    flex-direction: column;
    align-items: flex-start;
  }

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

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

  .site-footer__brand {
    grid-column: auto;
  }

  .site-footer {
    padding-bottom: 74px;
  }

  .mobile-contact-bar {
    display: grid;
  }

  .quick-facts {
    grid-template-columns: 1fr 1fr;
  }

  .page-head__inner {
    padding: 96px 20px 84px;
  }

  .mobile-nav__contacts {
    display: none;
  }

  .machines-toolbar {
    gap: 8px;
  }

  .machines-toolbar p {
    font-size: 0.85rem;
  }

  .machines-toolbar .filter-open {
    padding: 9px 12px;
    font-size: 0.88rem;
  }

  .machines-toolbar .sort-select {
    margin-left: 0;
    gap: 6px;
    font-size: 0.85rem;
  }

  .machines-toolbar .sort-select select {
    padding: 9px 8px;
    font-size: 0.88rem;
  }
}

@media (max-width: 480px) {
  .machines-toolbar {
    flex-wrap: nowrap;
  }

  .machines-toolbar p {
    white-space: nowrap;
  }

  .machines-toolbar .sort-select {
    font-size: 0;
  }

  .machines-toolbar .sort-select select {
    font-size: 0.9rem;
  }
}

@media (max-width: 420px) {
  .quick-facts {
    grid-template-columns: 1fr;
  }

  .machine-detail__actions .btn {
    font-size: 0.95rem;
    padding: 13px 16px;
  }

  .catalog-card__actions .btn {
    flex: 1;
  }
}

/* ---------- CONSTMACH fotografije ---------- */

.constmach-lead,
.constmach-banner {
  margin: 0;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--ink);
}

.constmach-lead__img,
.constmach-banner__img {
  width: 100%;
  display: block;
  object-fit: cover;
}

.constmach-lead__img {
  aspect-ratio: 4 / 3;
  object-position: center;
}

.constmach-lead {
  margin-bottom: 34px;
}

.constmach-banner__img {
  aspect-ratio: 21 / 9;
  object-position: center;
}

.constmach-banner {
  margin-bottom: 26px;
}

@media (max-width: 720px) {
  .constmach-banner__img {
    aspect-ratio: 16 / 10;
  }
}

@media (max-width: 575px) {
  .hero__img {
    object-position: center top;
  }
}

/* ---------- Smanjeni pokret ---------- */

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}
