@font-face {
  font-family: "Sacramento";
  src: url("assets/sacramento-latin-ext-400.woff2") format("woff2");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

:root {
  --ink: #171715;
  --muted: #6e6a63;
  --paper: #fbfaf7;
  --warm: #f1ede5;
  --gold: #a98550;
  --line: #dcd6cb;
  --white: #fff;
  --serif: Georgia, "Times New Roman", serif;
  --sans: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: var(--paper); font-family: var(--sans); -webkit-font-smoothing: antialiased; }
button, input { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
a { color: inherit; }
img { display: block; width: 100%; }

.topbar { height: 80px; display: flex; align-items: center; justify-content: space-between; padding: 0 clamp(20px, 5vw, 72px); border-bottom: 1px solid rgba(23,23,21,.12); background: rgba(251,250,247,.92); backdrop-filter: blur(14px); position: sticky; top: 0; z-index: 20; }
.brand { display: flex; gap: 9px; align-items: center; text-decoration: none; }
.brand-logo { flex: 0 0 48px; width: 48px; height: 48px; overflow: hidden; border-radius: 2px; background: #1d1d20; }
.brand-logo img { width: 100%; height: 100%; object-fit: cover; }
.brand-script { color: #24221f; font-family: "Sacramento", "Brush Script MT", cursive; font-size: 32px; font-weight: 400; letter-spacing: 0; line-height: 1; white-space: nowrap; }
.quiet-link { font-size: 13px; text-decoration: none; padding-bottom: 3px; border-bottom: 1px solid var(--ink); }

.hero { min-height: calc(100vh - 80px); display: grid; grid-template-columns: .9fr 1.1fr; align-items: stretch; }
.hero-copy { padding: clamp(60px, 9vw, 130px) clamp(28px, 7vw, 110px); display: flex; flex-direction: column; justify-content: center; }
.eyebrow { margin: 0 0 18px; color: var(--gold); text-transform: uppercase; letter-spacing: .2em; font-size: 11px; font-weight: 700; }
h1, h2 { font-family: var(--serif); font-weight: 400; letter-spacing: -.04em; }
h1 { max-width: 650px; margin: 0; font-size: clamp(52px, 7vw, 100px); line-height: .93; }
h1 em { color: var(--gold); font-weight: 400; }
.lead { max-width: 530px; margin: 30px 0; color: var(--muted); font-size: clamp(17px, 2vw, 21px); line-height: 1.6; }
.button { min-height: 54px; display: inline-flex; align-items: center; justify-content: center; gap: 14px; width: max-content; padding: 0 25px; border: 1px solid var(--ink); border-radius: 999px; font-weight: 650; text-decoration: none; cursor: pointer; transition: transform .2s, background .2s, color .2s; }
.button:hover { transform: translateY(-2px); }
.button-dark { background: var(--ink); color: var(--white); }
.button-light { background: transparent; color: var(--ink); }
.hero-copy .button { margin-top: 8px; }
.microcopy { margin: 18px 0 0; color: var(--muted); font-size: 12px; line-height: 1.5; }
.hero-visual { position: relative; min-height: 580px; overflow: hidden; background: #ece9e3; }
.hero-visual img { height: 100%; object-fit: cover; object-position: center; }
.hero-visual::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 60%, rgba(0,0,0,.12)); pointer-events: none; }
.hero-note { position: absolute; right: clamp(18px, 4vw, 50px); bottom: 36px; z-index: 1; color: var(--white); text-align: right; font-size: 12px; text-transform: uppercase; letter-spacing: .12em; line-height: 1.6; text-shadow: 0 1px 12px rgba(0,0,0,.28); }

.finder { padding: clamp(80px, 10vw, 140px) clamp(20px, 6vw, 90px); }
.section-heading, .results-head { display: flex; align-items: end; justify-content: space-between; gap: 24px; }
.section-heading h2, .results-head h2, .selection h2 { margin: 0; font-size: clamp(40px, 5vw, 68px); line-height: 1; }
.text-button, .filter-toggle { border: 0; background: transparent; color: var(--muted); text-decoration: underline; text-underline-offset: 5px; cursor: pointer; }
.progress { height: 2px; margin: 36px 0 0; background: var(--line); }
.progress span { display: block; width: 0; height: 100%; background: var(--gold); transition: width .35s ease; }
.questions { border-bottom: 1px solid var(--line); }
.question { margin: 0; padding: 42px 0; border: 0; border-top: 1px solid var(--line); }
.question:first-child { border-top: 0; }
.question legend { width: 100%; margin-bottom: 25px; font-family: var(--serif); font-size: clamp(24px, 3vw, 36px); }
.question legend span { display: inline-block; min-width: 44px; color: var(--gold); font-family: var(--sans); font-size: 11px; font-weight: 700; letter-spacing: .16em; }
.choice-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.choice-row button { min-height: 128px; padding: 22px; border: 1px solid var(--line); border-radius: 3px; background: transparent; color: var(--ink); text-align: left; cursor: pointer; transition: border .2s, background .2s, transform .2s; }
.choice-row button:hover { transform: translateY(-2px); border-color: #a9a298; }
.choice-row button.selected { border-color: var(--ink); background: var(--white); box-shadow: inset 0 0 0 1px var(--ink); }
.choice-row strong, .choice-row small { display: block; }
.choice-row strong { margin-top: 17px; font-size: 15px; }
.choice-row small { margin-top: 6px; color: var(--muted); line-height: 1.35; }
.choice-row.compact button { min-height: 98px; }
.choice-row.compact strong { margin-top: 0; }
.choice-icon { display: block; position: relative; width: 58px; height: 20px; border: 3px solid #a6a39e; border-radius: 50%; transform: rotate(-8deg); }
.choice-icon.line::after { content: ""; position: absolute; left: 7px; right: 7px; top: 5px; border-top: 1px solid #73716d; }
.choice-icon.twotone { border-color: #a6a39e var(--gold) var(--gold) #a6a39e; }
.choice-icon.twotone::after { content: ""; position: absolute; inset: 4px -2px; border-top: 1px solid var(--gold); transform: rotate(10deg); }
.choice-icon.gold { border-color: var(--gold); }
.choice-icon.gold::after { content: ""; position: absolute; inset: 4px -2px; border-top: 1px solid var(--ink); transform: rotate(10deg); }

.results-head { margin: 100px 0 30px; }
.results-head p:not(.eyebrow) { margin: 13px 0 0; color: var(--muted); }
.filter-toggle { flex: 0 0 auto; border: 1px solid var(--line); border-radius: 999px; padding: 12px 17px; text-decoration: none; }
.filter-toggle[aria-pressed="true"] { border-color: var(--ink); color: var(--ink); }
.model-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.model-card { position: relative; border: 1px solid var(--line); background: var(--white); overflow: hidden; transition: transform .25s, box-shadow .25s; }
.model-card:hover { transform: translateY(-4px); box-shadow: 0 18px 40px rgba(34,29,22,.09); }
.model-card.recommended::before { content: "Najbolje podudaranje"; position: absolute; top: 15px; left: 15px; z-index: 2; padding: 8px 11px; border-radius: 999px; background: var(--ink); color: var(--white); font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: .1em; }
.model-image { position: relative; aspect-ratio: 4/3; overflow: hidden; background: #f4f2ee; }
.model-image img { position: relative; z-index: 1; height: 100%; object-fit: cover; transition: transform .45s; }
.image-fallback { position: absolute; inset: 0; display: grid; place-items: center; color: #aaa49b; font-family: var(--serif); font-size: 25px; }
.model-card:hover .model-image img { transform: scale(1.025); }
.model-info { padding: 20px; }
.model-topline { display: flex; justify-content: space-between; align-items: baseline; gap: 14px; }
.model-topline h3 { margin: 0; font-family: var(--serif); font-size: 28px; font-weight: 400; }
.model-topline strong { font-size: 14px; }
.model-tags { display: flex; flex-wrap: wrap; gap: 7px; margin: 12px 0 20px; }
.model-tags span { padding: 6px 9px; border: 1px solid var(--line); border-radius: 999px; color: var(--muted); font-size: 10px; }
.model-actions { display: flex; gap: 9px; }
.model-actions button, .model-actions a { flex: 1; min-height: 42px; display: grid; place-items: center; border: 1px solid var(--ink); background: var(--ink); color: var(--white); text-decoration: none; cursor: pointer; font-size: 12px; font-weight: 650; }
.model-actions a { flex: 0 0 44px; background: transparent; color: var(--ink); font-size: 16px; }
.empty { grid-column: 1/-1; padding: 50px; border: 1px dashed var(--line); color: var(--muted); text-align: center; }

.catalog-section { margin-top: 130px; padding-top: 95px; border-top: 1px solid var(--line); }
.catalog-heading { display: flex; align-items: end; justify-content: space-between; gap: 24px; }
.catalog-heading h2 { margin: 0; font-family: var(--serif); font-size: clamp(40px, 5vw, 68px); font-weight: 400; letter-spacing: -.04em; line-height: 1; }
.catalog-heading p:last-child { margin: 15px 0 0; color: var(--muted); }
.catalog-count { flex: 0 0 auto; color: var(--gold); font-family: var(--serif); font-size: 23px; font-weight: 400; }
.catalog-tools { display: grid; grid-template-columns: 1fr 280px; gap: 12px; margin-top: 38px; }
.catalog-tools label { display: block; }
.catalog-tools label span { display: block; margin-bottom: 8px; color: var(--muted); font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .12em; }
.catalog-tools input, .catalog-tools select { width: 100%; height: 54px; margin: 0; padding: 0 15px; border: 1px solid var(--line); border-radius: 0; background: var(--white); color: var(--ink); }
.catalog-tools select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--ink) 50%), linear-gradient(135deg, var(--ink) 50%, transparent 50%); background-position: calc(100% - 19px) 23px, calc(100% - 14px) 23px; background-size: 5px 5px; background-repeat: no-repeat; }
.collection-tabs { display: flex; gap: 8px; margin: 18px 0 28px; overflow-x: auto; padding-bottom: 5px; scrollbar-width: thin; }
.collection-tabs button { flex: 0 0 auto; min-height: 42px; padding: 0 14px; border: 1px solid var(--line); border-radius: 999px; background: transparent; color: var(--muted); cursor: pointer; }
.collection-tabs button span { margin-left: 5px; color: var(--gold); }
.collection-tabs button.selected { border-color: var(--ink); background: var(--ink); color: var(--white); }
.collection-tabs button.selected span { color: #dbc7a6; }
.catalog-grid { grid-template-columns: repeat(4, 1fr); }
.catalog-grid .model-topline h3 { font-size: 24px; }
.catalog-grid .model-info { padding: 16px; }
.catalog-grid .model-tags { min-height: 28px; margin: 10px 0 16px; }
.catalog-grid .model-actions button { min-width: 0; }
.note-badge { color: #7c4e3d !important; border-color: #c8a99d !important; }
.load-more { margin: 34px auto 0; background: transparent; }
.load-more[hidden] { display: none; }

.selection { margin: 0 clamp(20px, 6vw, 90px) clamp(70px, 8vw, 110px); background: var(--warm); }
.selection-placeholder { padding: clamp(54px, 8vw, 100px); text-align: center; }
.selection-placeholder p:last-child { max-width: 530px; margin: 20px auto 0; color: var(--muted); line-height: 1.6; }
.selection-panel { display: grid; grid-template-columns: .9fr 1.1fr; min-height: 650px; }
.selected-image { min-height: 520px; background: #fff; }
.selected-image img { height: 100%; object-fit: cover; }
.selected-details { padding: clamp(38px, 6vw, 76px); display: flex; flex-direction: column; justify-content: center; }
.selected-title-row { display: flex; justify-content: space-between; align-items: baseline; gap: 20px; }
.selected-title-row h2 { font-size: clamp(42px, 5vw, 66px); }
.selected-title-row strong { flex: 0 0 auto; }
.selected-meta { margin: 12px 0 30px; color: var(--muted); }
.size-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
label, .measure-field legend { color: var(--muted); font-size: 12px; font-weight: 600; }
input { width: 100%; height: 50px; margin-top: 8px; padding: 0 14px; border: 1px solid var(--line); border-radius: 0; background: rgba(255,255,255,.68); color: var(--ink); }
input:focus { outline: 2px solid var(--gold); outline-offset: 1px; }
.measure-field { margin: 22px 0 0; padding: 0; border: 0; }
.measure-field legend { margin-bottom: 9px; }
.segmented { display: grid; grid-template-columns: repeat(3, 1fr); }
.segmented button { min-height: 46px; padding: 8px; border: 1px solid var(--line); border-right: 0; background: rgba(255,255,255,.55); color: var(--muted); cursor: pointer; font-size: 11px; }
.segmented button:last-child { border-right: 1px solid var(--line); }
.segmented button.selected { background: var(--ink); color: var(--white); border-color: var(--ink); }
.summary { margin-top: 24px; padding: 17px; border-left: 2px solid var(--gold); background: rgba(255,255,255,.55); font-size: 13px; line-height: 1.7; white-space: pre-line; }
.actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 23px; }

footer { display: flex; align-items: end; justify-content: space-between; gap: 30px; padding: 46px clamp(20px, 6vw, 90px); border-top: 1px solid var(--line); }
footer strong, footer span, footer a { display: block; }
footer strong { font-family: var(--serif); font-size: 22px; font-weight: 400; }
footer span { margin-top: 6px; color: var(--muted); font-size: 11px; }
footer div:last-child { text-align: right; }
footer a { margin-top: 8px; color: var(--muted); font-size: 12px; text-decoration: none; }
.toast { position: fixed; left: 50%; bottom: 28px; z-index: 50; transform: translate(-50%, 20px); padding: 13px 18px; border-radius: 999px; background: var(--ink); color: var(--white); font-size: 13px; opacity: 0; pointer-events: none; transition: .25s; }
.toast.visible { opacity: 1; transform: translate(-50%, 0); }

@media (max-width: 920px) {
  .hero { min-height: 0; grid-template-columns: 1fr; }
  .hero-copy { min-height: 610px; }
  .hero-visual { min-height: 580px; }
  .model-grid { grid-template-columns: repeat(2, 1fr); }
  .catalog-grid { grid-template-columns: repeat(2, 1fr); }
  .selection-panel { grid-template-columns: 1fr; }
  .selected-image { min-height: 460px; aspect-ratio: 4/3; }
}

@media (max-width: 640px) {
  .topbar { height: 68px; padding: 0 17px; }
  .quiet-link { font-size: 0; }
  .quiet-link span { font-size: 20px; }
  .brand { gap: 7px; }
  .brand-logo { flex-basis: 40px; width: 40px; height: 40px; }
  .brand-script { font-size: 23px; }
  .hero-copy { min-height: calc(82svh - 68px); padding: 64px 22px 54px; }
  h1 { font-size: clamp(50px, 16vw, 70px); }
  .lead { margin: 24px 0; font-size: 17px; }
  .hero-visual { min-height: 430px; }
  .finder { padding: 76px 17px; }
  .section-heading { align-items: start; }
  .section-heading h2, .results-head h2, .selection h2 { font-size: 42px; }
  .text-button { font-size: 11px; }
  .choice-row, .choice-row.compact { grid-template-columns: 1fr; gap: 9px; }
  .choice-row button, .choice-row.compact button { min-height: 84px; display: grid; grid-template-columns: 68px 1fr; grid-template-rows: auto auto; align-content: center; }
  .choice-row.compact button { display: block; }
  .choice-row strong { margin-top: 0; align-self: end; }
  .choice-row small { grid-column: 2; align-self: start; }
  .choice-icon { grid-row: 1/3; align-self: center; }
  .results-head { margin-top: 74px; align-items: start; }
  .results-head p:not(.eyebrow) { font-size: 13px; line-height: 1.5; }
  .filter-toggle { padding: 10px 12px; font-size: 11px; }
  .model-grid { grid-template-columns: 1fr; }
  .catalog-section { margin-top: 92px; padding-top: 70px; }
  .catalog-heading { align-items: start; }
  .catalog-heading h2 { font-size: 42px; }
  .catalog-heading p:last-child { font-size: 13px; line-height: 1.5; }
  .catalog-count { font-size: 16px; }
  .catalog-tools { grid-template-columns: 1fr; }
  .collection-tabs { margin-right: -17px; padding-right: 17px; }
  .catalog-grid { grid-template-columns: 1fr; }
  .model-info { padding: 17px; }
  .selection { margin: 0 0 54px; }
  .selection-placeholder { padding: 72px 22px; }
  .selected-image { min-height: 300px; }
  .selected-details { padding: 40px 20px; }
  .size-grid { grid-template-columns: 1fr; }
  .segmented { grid-template-columns: 1fr; }
  .segmented button { border-right: 1px solid var(--line); border-bottom: 0; }
  .segmented button:last-child { border-bottom: 1px solid var(--line); }
  .actions .button { width: 100%; }
  footer { align-items: start; flex-direction: column; }
  footer div:last-child { text-align: left; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; }
}
