/* Mesnica Vidović — „Mesarski papir i žig"
   Faza 1: tokeni, papir, header, mobilna traka, hero, traka dućana.
   Faza 2: asimetrični katalog, split „O nama", tamni monolit recenzija,
   mesarska ploča cijena, lokacije i footer, mikro-wow.
   Pravila: nula bijelih kartica, nula sjena, zaobljenja 2px (gumbi/slike) ili 0 (sekcije). */

/* ---------- Fontovi (self-host, varijabilni, latin + latin-ext) ---------- */
@font-face {
  font-family: "Bitter";
  src: url("fonts/bitter.woff2") format("woff2");
  font-weight: 400 900;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "IBM Plex Sans";
  src: url("fonts/plex.woff2") format("woff2");
  font-weight: 300 700;
  font-style: normal;
  font-display: swap;
}

/* ---------- Tokeni ---------- */
:root {
  --paper: #f3ede2;
  --paper-alt: #eae2d3;
  --ink: #1a1716;
  --ink-muted: #5c544e;
  --dark: #161312;
  --burgundy: #6e181d;
  --burgundy-hover: #521014;
  --rule: rgb(26 23 22 / 16%);
  --gold: #c89b3c;

  --on-dark: #f3ede2;
  --on-dark-muted: #a89e93;

  --font-head: "Bitter", Georgia, "Times New Roman", serif;
  --font-body: "IBM Plex Sans", "Segoe UI", system-ui, -apple-system, sans-serif;

  --radius: 2px;
  --wrap: 1180px;
  --pad: clamp(20px, 5vw, 64px);
  --ease: 180ms ease;
}

/* ---------- Reset i osnova ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.55;
  font-variant-numeric: tabular-nums;
  overflow-wrap: break-word;
}

/* Zrno nebijeljenog papira preko cijelog ekrana (bez vanjske datoteke) */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  opacity: 0.035;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='g'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='140' height='140' filter='url(%23g)'/%3E%3C/svg%3E");
  background-size: 140px 140px;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

h1,
h2,
h3 {
  margin: 0 0 0.5em;
  font-family: var(--font-head);
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.01em;
}

h1 {
  font-size: clamp(2.6rem, 9.5vw, 5.25rem);
  font-weight: 700;
  line-height: 0.96;
  letter-spacing: -0.03em;
}

h2 {
  font-size: clamp(1.75rem, 4.5vw, 2.85rem);
  line-height: 1.06;
  letter-spacing: -0.02em;
}

h3 {
  font-size: clamp(1.25rem, 2.4vw, 1.6rem);
  line-height: 1.15;
}

p {
  margin: 0 0 1em;
  max-width: 56ch;
}

a {
  color: var(--burgundy);
  text-decoration-thickness: 1px;
  text-underline-offset: 2px;
}

a:hover {
  color: var(--burgundy-hover);
}

:focus-visible {
  outline: 2px solid var(--burgundy);
  outline-offset: 3px;
}

.section--dark :focus-visible,
.kb-band :focus-visible {
  outline-color: var(--on-dark);
}

/* ---------- Pomoćne klase ---------- */
.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 var(--pad);
}

.section {
  padding: clamp(36px, 6vw, 68px) 0;
}

.section--alt {
  background: var(--paper-alt);
}

.section--dark {
  background: var(--dark);
  color: var(--on-dark);
}

.section--dark h2,
.section--dark h3 {
  color: var(--on-dark);
}

.eyebrow {
  margin: 0 0 10px;
  max-width: none;
  color: var(--burgundy);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  font-variant-numeric: normal;
}

.lead {
  margin-bottom: 1.2em;
  color: var(--ink-muted);
  font-size: clamp(1rem, 1.4vw, 1.125rem);
}

.muted {
  color: var(--ink-muted);
}

.small {
  font-size: 0.875rem;
  line-height: 1.55;
  color: var(--ink-muted);
}

.num {
  font-variant-numeric: tabular-nums;
}

/* Placeholder koji čeka podatak od klijenta — tiha napomena, ne prazna ćelija */
.todo {
  border-bottom: 1px dotted rgb(92 84 78 / 45%);
  color: var(--ink-muted);
  font-size: 0.9375em;
  overflow-wrap: anywhere;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 100;
  padding: 10px 16px;
  background: var(--burgundy);
  color: var(--on-dark);
}

.skip-link:focus {
  left: 8px;
  top: 8px;
  color: var(--on-dark);
}

/* ---------- Gumbi ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 13px 22px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  background: var(--burgundy);
  color: var(--on-dark);
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: 0.02em;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: background-color var(--ease), border-color var(--ease), color var(--ease);
}

.btn:hover {
  background: var(--burgundy-hover);
  color: var(--on-dark);
}

.btn--ghost {
  border-color: rgb(26 23 22 / 28%);
  background: transparent;
  color: var(--ink);
}

.btn--ghost:hover {
  border-color: var(--burgundy);
  background: transparent;
  color: var(--burgundy);
}

.btn--outline-light {
  border-color: rgb(243 237 226 / 40%);
  background: transparent;
  color: var(--on-dark);
}

.btn--outline-light:hover,
.btn--outline-light:focus-visible {
  border-color: var(--on-dark);
  background: var(--on-dark);
  color: var(--dark);
}

.btn--small {
  min-height: 38px;
  padding: 8px 14px;
  font-size: 0.8125rem;
}

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

/* ---------- Header ---------- */
.header {
  position: absolute;
  inset: 0 0 auto;
  height: 56px;
  z-index: 20;
  color: var(--on-dark);
}

/* Podstranica: puni tamni header u toku dokumenta */
.header--solid {
  position: relative;
  inset: auto;
  height: auto;
  background: var(--dark);
  border-bottom: 1px solid rgb(243 237 226 / 14%);
}

.header__bar {
  display: flex;
  align-items: center;
  gap: 14px;
  min-height: 56px;
}

.header__logo {
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--on-dark);
  text-decoration: none;
  white-space: nowrap;
}

.header__logo:hover {
  color: var(--on-dark);
  opacity: 0.78;
}

.header__toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  margin-left: auto;
  padding: 0;
  border: 1px solid rgb(243 237 226 / 35%);
  border-radius: var(--radius);
  background: transparent;
  color: var(--on-dark);
  font-size: 1.1rem;
  line-height: 1;
  cursor: pointer;
}

.header__nav {
  display: none;
}

.header__nav[data-open="true"] {
  display: block;
  position: absolute;
  inset: 56px 0 auto;
  z-index: 1;
  padding: 4px var(--pad) 14px;
  background: var(--dark);
  border-bottom: 1px solid rgb(243 237 226 / 14%);
}

.header__list {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin: 0;
  padding: 0;
  list-style: none;
}

.header__list a {
  display: block;
  padding: 12px 0;
  border-bottom: 1px solid rgb(243 237 226 / 12%);
  color: var(--on-dark);
  font-size: 0.9rem;
  font-weight: 500;
  text-decoration: none;
}

.header__list li:last-child a {
  border-bottom: 0;
}

.header__list a:hover {
  color: rgb(243 237 226 / 70%);
}

.header__call {
  margin-left: auto;
}

/* Na mobilnoj početnoj poziv nosi donja traka, header ostaje čist */
@media (max-width: 767px) {
  .page-home .header__call {
    display: none;
  }
}

@media (min-width: 900px) {
  .header__toggle {
    display: none;
  }

  .header__nav,
  .header__nav[data-open="true"] {
    display: block;
    position: static;
    margin-left: auto;
    padding: 0;
    background: none;
    border: 0;
  }

  .header__list {
    flex-direction: row;
    gap: clamp(18px, 2.4vw, 30px);
  }

  .header__list a,
  .header__list li:last-child a {
    padding: 6px 0;
    border-bottom: 0;
    color: rgb(243 237 226 / 80%);
    font-size: 0.8125rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
  }

  .header__list a:hover {
    color: var(--on-dark);
  }

  .header__call {
    margin-left: clamp(12px, 2vw, 24px);
  }
}

/* ---------- Mobilna fiksna donja traka ---------- */
.mobile-bar {
  position: fixed;
  inset: auto 0 0;
  z-index: 40;
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 10px;
  padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
  background: var(--dark);
  border-top: 1px solid rgb(243 237 226 / 14%);
}

.mobile-bar a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  border-radius: var(--radius);
  font-size: 0.9375rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-decoration: none;
}

.mobile-bar__primary {
  background: var(--burgundy);
  color: var(--on-dark);
}

.mobile-bar__primary:hover,
.mobile-bar__primary:focus-visible {
  background: var(--burgundy-hover);
  color: var(--on-dark);
}

.mobile-bar__secondary {
  border: 1px solid rgb(243 237 226 / 35%);
  color: var(--on-dark);
}

.mobile-bar__secondary:hover,
.mobile-bar__secondary:focus-visible {
  border-color: rgb(243 237 226 / 60%);
  color: var(--on-dark);
}

@media (max-width: 767px) {
  body.page-home,
  body.page-sub {
    padding-bottom: 72px;
  }
}

@media (min-width: 768px) {
  .mobile-bar {
    display: none;
  }
}

/* ---------- Hero: izlog punog ruba ---------- */
.hero {
  position: relative;
  isolation: isolate;
  display: grid;
  align-content: end;
  min-height: 82svh;
  padding: 0;
  overflow: hidden;
  background: var(--dark);
  color: var(--on-dark);
}

.hero__img {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 42%;
}

.hero__scrim {
  position: absolute;
  inset: 0;
  z-index: -1;
  /* Spec .48/.18/.92 — pojačano na .54/.30/.94 jer je izmjereni kontrast
     sitnog teksta preko svijetlih dijelova fotografije bio 3,2:1 (< 4,5:1). */
  background: linear-gradient(
    180deg,
    rgb(22 19 18 / 54%) 0%,
    rgb(22 19 18 / 30%) 38%,
    rgb(22 19 18 / 94%) 100%
  );
}

.hero__content {
  width: 100%;
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 88px 20px 28px;
}

.hero__eyebrow {
  margin: 0 0 10px;
  color: var(--on-dark);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  font-variant-numeric: normal;
}

.hero__title {
  margin: 0 0 12px;
  color: var(--on-dark);
}

.hero__sub {
  max-width: 42ch;
  margin: 0 0 22px;
  color: #ded5ca;
  font-size: clamp(1rem, 2vw, 1.2rem);
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 20px;
}

.hero__quiet {
  padding-bottom: 2px;
  border-bottom: 1px solid rgb(243 237 226 / 35%);
  color: #ded5ca;
  font-size: 0.9375rem;
  text-decoration: none;
}

.hero__quiet:hover {
  border-bottom-color: var(--on-dark);
  color: var(--on-dark);
}

.hero__rating {
  margin: 18px 0 0;
  color: #ded5ca;
  font-size: 0.875rem;
  letter-spacing: 0.02em;
}

@media (min-width: 900px) {
  .hero {
    min-height: min(78vh, 820px);
  }

  .hero__content {
    padding: 96px var(--pad) 48px;
  }
}

/* ---------- Brza traka dviju prodavaonica ---------- */
.strip {
  background: var(--paper-alt);
  border-bottom: 1px solid var(--rule);
}

.strip__grid {
  display: grid;
}

.strip__shop {
  padding: 16px 0;
  border-top: 1px solid var(--rule);
}

.strip__shop:first-child {
  border-top: 0;
  padding-top: 18px;
}

.strip__shop:last-child {
  padding-bottom: 20px;
}

.strip__name {
  margin: 0;
  font-size: 1.0625rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.strip__cap {
  display: inline-block;
  margin: 6px 0 10px;
  padding: 3px 8px;
  border: 1px solid rgb(26 23 22 / 28%);
  border-radius: var(--radius);
  color: var(--ink-muted);
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  font-variant-numeric: normal;
}

.strip__addr {
  margin: 0 0 6px;
  font-size: 0.9375rem;
}

.strip__contact {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 6px 18px;
  margin: 0;
}

.strip__tel {
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--burgundy);
  text-decoration: none;
}

.strip__tel:hover {
  color: var(--burgundy-hover);
  text-decoration: underline;
}

.strip__map {
  color: var(--ink-muted);
  font-size: 0.875rem;
  text-decoration: none;
  border-bottom: 1px solid var(--rule);
}

.strip__map:hover {
  border-bottom-color: var(--burgundy);
  color: var(--burgundy);
}

@media (min-width: 768px) {
  .strip__grid {
    grid-template-columns: 1fr 1fr;
    align-items: start;
  }

  .strip__shop,
  .strip__shop:first-child,
  .strip__shop:last-child {
    padding: 22px 0;
    border-top: 0;
  }

  .strip__shop:first-child {
    padding-right: clamp(24px, 4vw, 56px);
  }

  .strip__shop + .strip__shop {
    padding-left: clamp(24px, 4vw, 56px);
    border-left: 1px solid var(--rule);
  }
}

/* ---------- Katalog ponude (asimetrični) ---------- */
.catalog {
  margin-top: clamp(26px, 4vw, 40px);
}

.catalog__top {
  display: grid;
  gap: 28px;
}

.catalog__bottom {
  display: grid;
  gap: 24px;
  margin-top: 40px;
  padding-top: 28px;
  border-top: 1px solid var(--rule);
}

@media (min-width: 768px) {
  .catalog__top {
    grid-template-columns: repeat(2, 1fr);
  }

  .catalog__bottom {
    grid-template-columns: 1fr 1fr 1.35fr;
    gap: 28px;
  }
}

.cat {
  min-width: 0;
}

/* Omotač drži okvir i prima scroll-animaciju — animacija na samoj <img>
   u Chromeu ostavlja sliku neispisanom dok se ne dekodira. */
.cat__media {
  display: block;
  margin: 0;
  overflow: hidden;
  border-radius: var(--radius);
}

.cat img {
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: var(--radius);
  background: var(--paper-alt);
  filter: contrast(1.03) saturate(0.95);
}

.cat--small img {
  aspect-ratio: 3 / 2;
}

.cat--wide img {
  aspect-ratio: 16 / 10;
}

@media (max-width: 767px) {
  .cat img,
  .cat--small img,
  .cat--wide img {
    aspect-ratio: 16 / 10;
  }

  .catalog__bottom > .cat + .cat {
    border-top: 1px solid var(--rule);
    padding-top: 24px;
  }
}

.cat__num {
  margin: 14px 0 0;
  color: var(--burgundy);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.13em;
}

.cat h3 {
  position: relative;
  display: inline-block;
  margin: 0.15em 0 0.3em;
}

.cat__desc {
  margin: 0;
  max-width: 44ch;
  color: var(--ink-muted);
  font-size: 0.95rem;
}

/* Bordo crta na hover stavke kataloga */
.cat h3::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 100%;
  height: 2px;
  background: var(--burgundy);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 250ms ease;
}

.cat:hover h3::after,
.cat:focus-within h3::after {
  transform: scaleX(1);
}

/* 04 — čisto tipografski blok s velikim rednim brojem */
.cat--text {
  display: flex;
  flex-direction: column;
}

.cat--text .cat__num {
  margin: 0 0 16px;
  font-family: var(--font-head);
  font-size: clamp(3.25rem, 7vw, 5rem);
  font-weight: 700;
  line-height: 0.75;
  letter-spacing: -0.05em;
}

.cat--text h3 {
  margin-top: auto;
}

@media (max-width: 767px) {
  .cat--text h3 {
    margin-top: 0;
  }
}

/* ---------- O nama — split pojas ---------- */
.about-band {
  background: var(--paper-alt);
  padding: clamp(44px, 7vw, 88px) 0;
}

.about-band__grid {
  display: grid;
  gap: 0;
}

.about-band__media {
  order: -1;
  margin: 0 0 clamp(24px, 5vw, 36px);
  margin-inline: calc(-1 * var(--pad));
  overflow: hidden;
}

.about-band__media img {
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  filter: contrast(1.05) saturate(0.92);
}

.about-band__text {
  padding-bottom: clamp(28px, 6vw, 48px);
}

.about-band__statement {
  margin: 0 0 0.55em;
  font-size: clamp(1.45rem, 3vw, 2.15rem);
  line-height: 1.18;
  letter-spacing: -0.02em;
}

.about-band__text p {
  max-width: 52ch;
}

.about-band__note {
  margin: 18px 0 0;
  padding-left: 14px;
  border-left: 2px solid var(--burgundy);
  color: var(--ink-muted);
  font-size: 0.9375rem;
}

@media (min-width: 900px) {
  .about-band__grid {
    grid-template-columns: 1.15fr 1fr;
    align-items: stretch;
  }

  .about-band__media {
    order: 0;
    margin: 0 calc(-1 * var(--pad)) 0 0;
    height: 100%;
  }

  .about-band__media img {
    height: 100%;
    aspect-ratio: auto;
  }

  .about-band__text {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: clamp(28px, 5vw, 64px) clamp(28px, 5vw, 64px) clamp(28px, 5vw, 64px) 0;
  }
}

/* ---------- Recenzije — tamni monolit ---------- */
.reviews {
  display: grid;
  gap: clamp(24px, 5vw, 64px);
  align-items: center;
}

@media (min-width: 900px) {
  .reviews {
    grid-template-columns: auto 1fr;
  }
}

.reviews__score {
  position: relative;
  justify-self: start;
  margin: 0;
  font-family: var(--font-head);
  font-size: clamp(4.5rem, 16vw, 8.5rem);
  font-weight: 700;
  line-height: 0.9;
  letter-spacing: -0.03em;
  color: var(--on-dark);
}

.reviews__score::before {
  content: "";
  position: absolute;
  inset: -10% -14%;
  border: 1.5px solid var(--gold);
  outline: 1px solid rgb(200 155 60 / 40%);
  outline-offset: -6px;
  border-radius: 50%;
  transform: rotate(-6deg);
  transition: transform 250ms ease;
  pointer-events: none;
}

.reviews__score:hover::before,
.reviews__score:focus-visible::before {
  transform: rotate(0deg);
}

.reviews__score span {
  font-size: 0.3em;
  letter-spacing: 0;
  color: var(--on-dark-muted);
}

.reviews__stars {
  display: flex;
  gap: 6px;
  margin: 0 0 10px;
}

.reviews__stars svg {
  width: 22px;
  height: 22px;
  fill: var(--gold);
}

.reviews__body h2 {
  margin: 0 0 8px;
}

.reviews__text {
  max-width: 46ch;
  margin: 0 0 18px;
  color: var(--on-dark-muted);
}

/* ---------- Cijene — mesarska ploča ---------- */
.price-board {
  border: 1px solid var(--ink);
  background: var(--paper-alt);
  padding: 24px;
  border-radius: var(--radius);
}

.price-board__status {
  margin: 0 0 8px;
  font-family: var(--font-head);
  font-size: clamp(1.25rem, 2.4vw, 1.6rem);
  font-weight: 700;
  line-height: 1.15;
}

.price-board__text {
  margin: 0 0 18px;
  max-width: 62ch;
  color: var(--ink-muted);
}

.price-board__links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px;
}

.filelink {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 9px 14px;
  border: 1px solid rgb(26 23 22 / 35%);
  border-radius: var(--radius);
  color: var(--ink);
  font-size: 0.8125rem;
  font-weight: 600;
  text-decoration: none;
  transition: border-color var(--ease), background-color var(--ease), color var(--ease);
}

.filelink:hover {
  border-color: var(--burgundy);
  background: var(--paper);
  color: var(--burgundy);
}

.price-note {
  margin: 16px 0 0;
  max-width: 72ch;
  color: var(--ink-muted);
  font-size: 0.8125rem;
}

/* Tablica cijena — spremna za dolazak cijena */
.price-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9375rem;
  text-align: left;
}

.price-table th {
  padding: 10px 12px;
  background: var(--ink);
  color: var(--paper);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-variant-numeric: normal;
}

.price-table td {
  padding: 11px 12px;
  border-bottom: 1px solid var(--rule);
  vertical-align: top;
  background-image: linear-gradient(var(--burgundy), var(--burgundy));
  background-repeat: no-repeat;
  background-position: left bottom;
  background-size: 0% 2px;
  transition: background-size 250ms ease;
}

.price-table td.price {
  font-weight: 600;
  white-space: nowrap;
  text-align: right;
}

.price-table td.price-base {
  color: var(--ink-muted);
  font-size: 0.875rem;
  white-space: nowrap;
  text-align: right;
}

.price-table tbody tr:hover td {
  background-size: 100% 2px;
}

.price-table caption {
  margin-bottom: 12px;
  color: var(--ink-muted);
  font-size: 0.8125rem;
  text-align: left;
  font-variant-numeric: normal;
}

@media (max-width: 639px) {
  .price-table thead {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
  }

  .price-table,
  .price-table tbody {
    display: block;
  }

  .price-table tr {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 2px 12px;
    padding: 11px 0;
    border-bottom: 1px solid var(--rule);
  }

  .price-table td,
  .price-table td.price,
  .price-table td.price-base {
    padding: 0;
    border: 0;
    background: none;
    text-align: left;
  }

  .price-table td:first-child {
    grid-column: 1 / -1;
    font-weight: 600;
  }

  .price-table td.price-base {
    text-align: right;
  }
}

/* Grupiranje cijena po kategorijama (<details>, bez JS-a) */
.price-groups {
  margin-top: 24px;
}

.price-group {
  border-top: 1px solid var(--rule);
}

.price-group > summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 0;
  font-family: var(--font-head);
  font-size: 1.0625rem;
  font-weight: 600;
  list-style: none;
  cursor: pointer;
}

.price-group > summary::-webkit-details-marker {
  display: none;
}

.price-group > summary::after {
  content: "+";
  font-family: var(--font-body);
  font-size: 1.25rem;
  line-height: 1;
  color: var(--burgundy);
  transition: transform 200ms ease;
}

.price-group[open] > summary::after {
  transform: rotate(45deg);
}

.price-group .price-table {
  margin-bottom: 18px;
}

/* ---------- Prodavaonice / kontakt ---------- */
.shops {
  display: grid;
  margin-top: clamp(22px, 4vw, 34px);
}

.shop {
  min-width: 0;
}

.shops > .shop + .shop {
  margin-top: 24px;
  padding-top: 24px;
  border-top: 1px solid var(--rule);
}

.shop h3 {
  margin-bottom: 2px;
}

.shop__role {
  margin: 0 0 14px;
  color: var(--ink-muted);
  font-size: 0.8125rem;
}

.shop__rows {
  margin: 0 0 18px;
}

.shop__row {
  display: grid;
  grid-template-columns: minmax(96px, 116px) 1fr;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid var(--rule);
}

.shop__row dt {
  padding-top: 2px;
  color: var(--ink-muted);
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-variant-numeric: normal;
}

.shop__row dd {
  margin: 0;
}

.shop__more {
  display: inline-block;
  margin-top: 12px;
  font-size: 0.875rem;
  text-decoration: none;
  border-bottom: 1px solid var(--rule);
}

.shop__more:hover {
  border-bottom-color: var(--burgundy);
}

@media (min-width: 768px) {
  .shops {
    grid-template-columns: 1fr 1fr;
  }

  .shops > .shop {
    padding-right: clamp(24px, 4vw, 48px);
  }

  .shops > .shop + .shop {
    margin-top: 0;
    padding-top: 0;
    padding-left: clamp(24px, 4vw, 48px);
    border-top: 0;
    border-left: 1px solid var(--rule);
  }
}

/* ---------- Footer ---------- */
.footer {
  padding: clamp(28px, 5vw, 52px) 0 24px;
  background: var(--dark);
  color: var(--on-dark-muted);
  font-size: 0.8125rem;
}

.footer__grid {
  display: grid;
  gap: 24px;
}

.footer__grid > * {
  min-width: 0;
}

.footer h2 {
  margin: 0 0 8px;
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--on-dark);
  font-variant-numeric: normal;
}

.footer p {
  margin: 0 0 6px;
  max-width: none;
}

.footer a {
  color: var(--on-dark-muted);
  text-decoration-color: rgb(243 237 226 / 30%);
}

.footer a:hover {
  color: var(--on-dark);
  text-decoration-color: var(--on-dark);
}

.footer__links {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 18px;
  margin: 10px 0 0;
  padding: 0;
  list-style: none;
}

.footer__bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 24px;
  margin-top: 24px;
  padding-top: 16px;
  border-top: 1px solid rgb(243 237 226 / 14%);
  font-size: 0.75rem;
}

.footer__bottom p {
  margin: 0;
  max-width: 90ch;
}

.footer__top {
  white-space: nowrap;
}

@media (min-width: 780px) {
  .footer__grid {
    grid-template-columns: 1.2fr 1fr 1fr;
    gap: 32px;
  }
}

/* ---------- Podstranica Kotoriba ---------- */
.kb-band {
  padding: clamp(40px, 7vw, 80px) 0 clamp(36px, 6vw, 64px);
  background: var(--dark);
  color: var(--on-dark);
}

.kb-band .eyebrow {
  color: #d8cec2;
}

.kb-band h1 {
  margin-bottom: 14px;
  color: var(--on-dark);
}

.kb-band__sub {
  max-width: 46ch;
  margin-bottom: 22px;
  color: #ded5ca;
  font-size: clamp(1rem, 2vw, 1.15rem);
}

.kb-band__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

/* Katalog u Kotoribi — redni brojevi, bez izmišljenih slika */
.cat-list {
  counter-reset: kat;
  display: grid;
  gap: 0;
  margin: clamp(22px, 4vw, 34px) 0 26px;
  padding: 0;
  list-style: none;
}

.cat-list li {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 4px 18px;
  padding: 18px 0;
  border-top: 1px solid var(--rule);
}

.cat-list li::before {
  counter-increment: kat;
  content: counter(kat, decimal-leading-zero);
  grid-row: 1 / span 2;
  align-self: start;
  font-family: var(--font-head);
  font-size: 1.625rem;
  font-weight: 700;
  line-height: 1;
  color: var(--burgundy);
}

.cat-list__title {
  grid-column: 2;
  display: block;
  margin-bottom: 2px;
  font-family: var(--font-head);
  font-size: 1.0625rem;
  font-weight: 600;
}

.cat-list__desc {
  grid-column: 2;
  margin: 0;
  color: var(--ink-muted);
  font-size: 0.9375rem;
}

@media (min-width: 768px) {
  .cat-list {
    grid-template-columns: 1fr 1fr;
    column-gap: clamp(24px, 4vw, 48px);
  }
}

/* ---------- Mikro-wow (samo CSS) ---------- */
@supports (animation-timeline: view()) {
  .cat__media {
    animation: settle linear both;
    animation-timeline: view();
    animation-range: entry 0% cover 35%;
  }

  @keyframes settle {
    from {
      transform: scale(1.05);
    }
    to {
      transform: scale(1);
    }
  }
}

/* ---------- Smanjeno kretanje ---------- */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .btn,
  .filelink,
  .price-table td {
    transition: none;
  }

  .cat__media {
    animation: none !important;
  }

  .reviews__score::before,
  .cat h3::after,
  .price-group > summary::after {
    transition: none;
  }
}


/* ============================================================
   FAZA 3 — hero kao editorial split, veći ritam, ujednačene slike
   ============================================================ */

:root { --wrap: 1220px; }

/* ---------- HERO: tamni panel + fotografija ---------- */
.hero {
  display: grid;
  grid-template-columns: 1fr;
  background: var(--dark);
  color: var(--on-dark);
  min-height: 0;
  padding: 0;
}
.hero__media { position: relative; order: 1; }
.hero__media img {
  display: block;
  width: 100%;
  height: 210px;
  object-fit: cover;
  object-position: center 55%;
  filter: contrast(1.08) saturate(0.82) sepia(0.12) brightness(0.92);
}
.hero__grade {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(22,19,18,0) 55%, rgba(22,19,18,.55) 100%);
  pointer-events: none;
}
.hero__panel {
  order: 2;
  padding: clamp(22px, 5vw, 40px) var(--pad) clamp(26px, 5vw, 44px);
  display: grid;
  gap: 10px;
  align-content: start;
}
.hero__eyebrow {
  margin: 0;
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--on-dark-muted);
}
.hero__title {
  margin: 0;
  font-family: var(--font-head);
  font-size: clamp(2.5rem, 5.2vw, 4.75rem);
  line-height: 0.96;
  letter-spacing: -0.025em;
  font-weight: 700;
  color: var(--on-dark);
}
.hero__sub {
  margin: 4px 0 0;
  font-size: clamp(1rem, 1.6vw, 1.15rem);
  line-height: 1.45;
  color: var(--on-dark);
  max-width: 34ch;
}
.hero__sub2 {
  margin: 0;
  font-size: 0.9375rem;
  line-height: 1.5;
  color: var(--on-dark-muted);
  max-width: 40ch;
}
.hero__actions {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
  margin-top: 8px;
}
.hero__actions .btn { min-height: 50px; padding-inline: 26px; }
.hero__rating {
  margin: 6px 0 0;
  font-size: 0.875rem;
  letter-spacing: 0.02em;
  color: var(--on-dark-muted);
}

@media (min-width: 900px) {
  .hero--split, .hero {
    grid-template-columns: 1.15fr 0.85fr;
    min-height: 76vh;
    align-items: stretch;
  }
  .hero__media { order: 2; }
  .hero__media img { height: 100%; min-height: 420px; object-position: center 50%; }
  .hero__grade {
    background: linear-gradient(90deg, rgba(22,19,18,1) 0%, rgba(22,19,18,.55) 12%, rgba(22,19,18,0) 38%);
  }
  .hero__panel {
    order: 1;
    align-content: center;
    padding: clamp(32px, 6vw, 72px) clamp(24px, 5vw, 64px) clamp(32px, 6vw, 72px) var(--pad);
    max-width: 640px;
  }
  .hero__sub { font-size: 1.15rem; }
}

/* ---------- Traka dućana: puna širina, jaka linija ---------- */
.strip { padding-block: clamp(18px, 3vw, 26px); }
.strip__grid { gap: 0; }
@media (min-width: 768px) {
  .strip__grid { grid-template-columns: 1fr 1fr; }
  .strip__shop:first-child { padding-right: clamp(20px, 4vw, 44px); border-right: 1px solid var(--rule); }
  .strip__shop:last-child { padding-left: clamp(20px, 4vw, 44px); }
}
.strip__tel { font-size: 1.25rem; font-weight: 700; }

/* ---------- Katalog: ritam, brojevi, ujednačen ton ---------- */
.catalog__top { column-gap: 32px; row-gap: 48px; }
.catalog__bottom { column-gap: 32px; row-gap: 40px; }
.cat img { filter: contrast(1.06) saturate(0.82) sepia(0.10); }
.cat__num {
  font-family: var(--font-head);
  font-size: 2rem;
  line-height: 1;
  font-weight: 700;
  color: var(--burgundy);
  margin: 18px 0 6px;
  letter-spacing: -0.02em;
}
.cat h3 { margin: 0 0 0.3em; }

/* ---------- Širi kontejner i veći razmaci sekcija ---------- */
.section { padding: clamp(44px, 7vw, 88px) 0; }
.price-board__text, .cat__desc, .about p { max-width: 58ch; }


/* ============================================================
   FAZA 3b — poravnanje heroja na mrežu, scrim, žig značke, CTA nakon skrola
   ============================================================ */

/* gornji scrim na mobitelu da logotip ima kontrast preko fotografije */
@media (max-width: 899px) {
  .hero__media::before {
    content: "";
    position: absolute; inset: 0 0 auto;
    height: 84px;
    background: linear-gradient(to bottom, rgba(22,19,18,.82), rgba(22,19,18,0));
    pointer-events: none;
    z-index: 1;
  }
}

@media (min-width: 900px) {
  .hero {
    grid-template-columns: 1fr 1.08fr;
    min-height: 580px;
    align-items: stretch;
  }
  .hero__panel {
    padding-left: max(var(--pad), calc((100vw - var(--wrap)) / 2 + var(--pad)));
    padding-right: 48px;
    max-width: none;
  }
  .hero__media { display: flex; }
  .hero__media img { height: 100%; min-height: 100%; object-fit: cover; }
  .hero__grade {
    background: linear-gradient(90deg, rgba(22,19,18,1) 0%, rgba(22,19,18,.6) 10%, rgba(22,19,18,0) 34%);
  }
}

/* ocjena u heroju: najjači element povjerenja, odvojen linijom */
.hero__rating {
  margin: 26px 0 0;
  padding-top: 16px;
  border-top: 1px solid rgba(243, 237, 226, .16);
  color: rgba(243, 237, 226, .88);
  font-size: 0.875rem;
  letter-spacing: 0.02em;
}
.hero__rating .star { color: #d4a359; }

/* značke u traci dućana: bordo žig umjesto sivih okvira */
.strip__cap {
  display: inline-block;
  background: rgba(110, 24, 29, .09);
  border: 1px solid rgba(110, 24, 29, .28);
  color: var(--burgundy);
  font-size: 0.6875rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: var(--radius);
}

/* mobilna traka se pojavljuje tek nakon prvog ekrana */
@media (max-width: 767px) {
  .mobile-bar {
    transform: translateY(115%);
    transition: transform 220ms ease;
  }
  html.is-scrolled .mobile-bar { transform: none; }
}


/* ---------- Kotoriba: mreža kartica ponude ---------- */
.kb-cats { display: grid; gap: 32px; margin-top: 8px; }
@media (min-width: 640px) { .kb-cats { grid-template-columns: repeat(2, 1fr); column-gap: 32px; row-gap: 40px; } }
.kb-cats .cat img { aspect-ratio: 4 / 3; }
@media (max-width: 639px) { .kb-cats .cat img { aspect-ratio: 16 / 10; } }
