/* ==========================================================================
   Vexo: zajednički stilovi (landing, porudžbina, hvala)
   Tema: zaključana tamna (sve fotografije proizvoda su snimljene na crnom).
   Oblici: dugmad = pill, kartice = 16px, polja forme = 12px.
   ========================================================================== */

@font-face {
  font-family: "Archivo";
  src: url("/fonts/archivo-latin-ext.woff2") format("woff2");
  font-weight: 400 900;
  font-stretch: 62% 125%;
  font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Archivo";
  src: url("/fonts/archivo-latin.woff2") format("woff2");
  font-weight: 400 900;
  font-stretch: 62% 125%;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Geist";
  src: url("/fonts/geist-latin-ext.woff2") format("woff2");
  font-weight: 400 700;
  font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Geist";
  src: url("/fonts/geist-latin.woff2") format("woff2");
  font-weight: 400 700;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  color-scheme: dark;
  --bg: #0b0b0c;
  --bg-2: #101012;
  --surface: #161618;
  --surface-2: #1d1d20;
  --line: rgb(255 255 255 / 0.08);
  --line-2: rgb(255 255 255 / 0.14);
  --text: #f4f2ef;
  --muted: #a3a1a0;
  --dim: #8e8c90;
  --accent: #c93b1f;        /* brend, X iz logoa (pozadina dugmeta, bela slova 5.1:1) */
  --accent-press: #b1331a;
  --accent-text: #f06a45;   /* akcenat za tekst na tamnoj podlozi (6.4:1) */
  --accent-soft: rgb(201 59 31 / 0.14);
  --ok: #4fb57a;
  --star: #f2b84b;
  --danger: #ff7a66;

  --font-display: "Archivo", "Arial Narrow", system-ui, sans-serif;
  --font-body: "Geist", system-ui, -apple-system, "Segoe UI", sans-serif;

  --r-card: 16px;
  --r-input: 12px;
  --r-pill: 999px;

  --wrap: 1200px;
  --gutter: 20px;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);

  /* z-index skala */
  --z-header: 20;
  --z-sticky: 30;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 80px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, video, svg { display: block; max-width: 100%; }
img, video { height: auto; }
a { color: inherit; }
button, input, textarea, select { font: inherit; color: inherit; }
h1, h2, h3, p { margin: 0; }
:focus-visible { outline: 2px solid var(--accent-text); outline-offset: 3px; border-radius: 6px; }

.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }
.ico { width: 1.25em; height: 1.25em; flex: none; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* ---------- tipografija ---------- */
.display {
  font-family: var(--font-display);
  font-stretch: 76%;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: -0.005em;
  line-height: 0.95;
}
.h1 { font-size: clamp(2.9rem, 9.5vw, 5.6rem); }
.h2 { font-size: clamp(2.2rem, 6.4vw, 3.9rem); }
.h3 { font-size: 1.5rem; line-height: 1.05; }
.accent { color: var(--accent-text); }
.lead { color: var(--muted); font-size: 1.075rem; max-width: 52ch; }
.small { font-size: 0.875rem; color: var(--muted); }
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 0.8125rem; font-weight: 500; color: var(--muted);
}
.stars { display: inline-flex; gap: 2px; color: var(--star); }
.stars .ico { width: 15px; height: 15px; }

/* ---------- dugmad ---------- */
.btn {
  --h: 56px;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: var(--h); padding: 0 28px;
  border: 0; border-radius: var(--r-pill);
  font-weight: 600; font-size: 1rem; letter-spacing: 0.005em;
  text-decoration: none; white-space: nowrap; cursor: pointer;
  transition: transform 0.25s var(--ease), background-color 0.25s var(--ease), box-shadow 0.25s var(--ease);
  -webkit-tap-highlight-color: transparent;
}
.btn:active { transform: scale(0.98); }
.btn-primary { background: var(--accent); color: #fff; box-shadow: inset 0 1px 0 rgb(255 255 255 / 0.18), 0 10px 30px -12px rgb(201 59 31 / 0.7); }
.btn-primary:hover { background: #d6421f; }
.btn-primary:active { background: var(--accent-press); }
.btn-primary .ico { transition: transform 0.3s var(--ease); }
.btn-primary:hover .ico { transform: translateX(3px); }
.btn-ghost { background: transparent; color: var(--text); box-shadow: inset 0 0 0 1px var(--line-2); }
.btn-ghost:hover { background: rgb(255 255 255 / 0.05); }
.btn-block { width: 100%; }
.btn[disabled] { opacity: 0.6; cursor: progress; }

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: var(--z-header);
  background: rgb(11 11 12 / 0.78);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.logo img { height: 22px; width: auto; }
.site-header .btn { --h: 40px; padding: 0 18px; font-size: 0.9rem; }
.nav { display: none; gap: 28px; font-size: 0.9rem; color: var(--muted); }
.nav a { text-decoration: none; transition: color 0.2s; }
.nav a:hover { color: var(--text); }
@media (min-width: 900px) { .nav { display: flex; } }

/* ---------- reveal animacije ---------- */
@media (prefers-reduced-motion: no-preference) {
  .reveal { opacity: 0; transform: translateY(22px); transition: opacity 0.8s var(--ease), transform 0.8s var(--ease); transition-delay: calc(var(--i, 0) * 80ms); }
  .reveal.in { opacity: 1; transform: none; }
  .hero-anim > * { animation: rise 0.9s var(--ease) both; animation-delay: calc(var(--i, 0) * 90ms + 60ms); }
  @keyframes rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

/* ==========================================================================
   LANDING
   ========================================================================== */
section { position: relative; }
.sec { padding-block: clamp(72px, 11vw, 128px); }

/* hero */
.hero { padding-top: clamp(28px, 5vw, 56px); padding-bottom: clamp(40px, 6vw, 72px); overflow: hidden; }
.hero::before {
  content: ""; position: absolute; inset: -20% -10% auto auto; width: 70vw; height: 70vw; max-width: 900px; max-height: 900px;
  background: radial-gradient(closest-side, rgb(201 59 31 / 0.16), transparent 70%);
  pointer-events: none;
}
.hero-grid { display: grid; gap: 28px; align-items: center; }
.hero-copy { display: grid; gap: 20px; justify-items: start; }
.hero-copy .lead { font-size: 1.125rem; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 6px; }
.hero-media { position: relative; border-radius: var(--r-card); overflow: hidden; aspect-ratio: 4 / 3; background: #08090b; box-shadow: 0 0 0 1px var(--line); }
.hero-media img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 62%; }
@media (min-width: 900px) {
  .hero-grid { grid-template-columns: 1.08fr 0.92fr; gap: 56px; min-height: calc(100dvh - 64px - 120px); }
  .hero-media { aspect-ratio: 3 / 4; max-height: calc(100dvh - 140px); justify-self: end; width: 100%; }
  .hero-media img { object-position: 50% 50%; }
}

/* traka poverenja */
.trust { border-block: 1px solid var(--line); background: var(--bg-2); }
.trust ul { list-style: none; margin: 0 auto; padding-block: 18px; display: grid; grid-template-columns: 1fr 1fr; gap: 14px 20px; }
.trust li { display: flex; align-items: center; gap: 10px; font-size: 0.9rem; color: var(--muted); }
.trust li .ico { color: var(--accent-text); width: 20px; height: 20px; }
@media (min-width: 900px) { .trust ul { grid-template-columns: repeat(4, auto); justify-content: space-between; padding-block: 22px; } }

/* problem / rešenje */
.problem-head { display: grid; gap: 18px; max-width: 760px; }
.problem-grid { display: grid; gap: 14px; margin-top: 44px; }
.media-card { position: relative; border-radius: var(--r-card); overflow: hidden; background: var(--surface); box-shadow: 0 0 0 1px var(--line); }
.media-card video, .media-card img { width: 100%; height: 100%; object-fit: cover; }
.media-card.video { aspect-ratio: 9 / 8; }
.media-card.compare { aspect-ratio: 4 / 5; }
.media-caption { margin-top: 12px; font-size: 0.875rem; color: var(--dim); }
@media (min-width: 900px) {
  .problem-grid { grid-template-columns: 1.35fr 1fr; gap: 18px; align-items: stretch; }
  .media-card.video, .media-card.compare { aspect-ratio: auto; height: 100%; min-height: 480px; }
}

/* kako radi */
.how { background: var(--bg-2); border-block: 1px solid var(--line); }
.how-head { text-align: center; display: grid; gap: 14px; justify-items: center; }
.how-figure { margin: 44px auto 0; max-width: 980px; }
.how-figure img { width: 100%; }
.steps { list-style: none; margin: 28px auto 0; padding: 0; max-width: 980px; display: grid; gap: 22px; }
.steps li { display: grid; gap: 6px; }
.steps h3 { font-family: var(--font-display); font-stretch: 80%; font-weight: 750; text-transform: uppercase; font-size: 1.35rem; letter-spacing: 0.01em; }
.steps p { color: var(--muted); font-size: 0.95rem; max-width: 34ch; }
@media (min-width: 760px) { .steps { grid-template-columns: repeat(3, 1fr); text-align: center; } .steps p { margin-inline: auto; } }

/* bento prednosti */
.bento-head { display: grid; gap: 16px; max-width: 720px; }
.bento { display: grid; gap: 14px; margin-top: 44px; }
.cell { border-radius: var(--r-card); background: var(--surface); box-shadow: 0 0 0 1px var(--line); padding: 26px; display: grid; gap: 10px; align-content: start; }
.cell .ico { width: 28px; height: 28px; color: var(--accent-text); margin-bottom: 8px; }
.cell h3 { font-size: 1.15rem; font-weight: 600; letter-spacing: -0.01em; }
.cell p { color: var(--muted); font-size: 0.95rem; }
.cell.feature { padding: 0; overflow: hidden; background: var(--accent); display: grid; grid-template-rows: auto 1fr; }
.cell.feature .cell-body { padding: 26px; display: grid; gap: 10px; color: #fff; }
.cell.feature .cell-body p { color: rgb(255 255 255 / 0.86); }
.cell.feature .cell-body .ico { color: #fff; }
.cell.feature img { width: 100%; aspect-ratio: 1; object-fit: cover; }
.cell.tint { background: linear-gradient(160deg, #1f1a19 0%, var(--surface) 60%); }
.cell.photo { padding: 0; overflow: hidden; position: relative; min-height: 260px; }
.cell.photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 70%; opacity: 0.55; }
.cell.photo .cell-body { position: relative; padding: 26px; display: grid; gap: 10px; align-content: end; height: 100%; background: linear-gradient(180deg, transparent 30%, rgb(11 11 12 / 0.92) 100%); }
@media (min-width: 760px) {
  .bento { grid-template-columns: repeat(2, 1fr); }
  .cell.feature { grid-row: span 2; }
}
@media (min-width: 1000px) {
  .bento { grid-template-columns: 1.15fr 1fr 1fr; grid-template-rows: auto auto; }
  .cell.feature { grid-row: span 2; grid-template-rows: 1fr auto; }
  .cell.feature img { aspect-ratio: auto; height: 100%; min-height: 300px; }
  .cell.photo { grid-column: span 2; }
}

/* marquee: radi sa */
.works { padding-block: 28px; border-block: 1px solid var(--line); overflow: hidden; }
.works-inner { display: flex; align-items: center; gap: 28px; }
.works-label { flex: none; font-size: 0.875rem; color: var(--muted); padding-left: var(--gutter); }
.marquee { overflow: hidden; flex: 1; mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.marquee-track { display: flex; gap: 44px; width: max-content; }
.marquee-track span { font-family: var(--font-display); font-stretch: 78%; font-weight: 750; text-transform: uppercase; font-size: 1.6rem; color: var(--text); white-space: nowrap; display: inline-flex; align-items: center; gap: 44px; }
.marquee-track span::after { content: ""; width: 8px; height: 8px; background: var(--accent); transform: rotate(45deg); }
@media (prefers-reduced-motion: no-preference) {
  .marquee-track { animation: slide 32s linear infinite; }
  @keyframes slide { to { transform: translateX(-50%); } }
}
@media (prefers-reduced-motion: reduce) { .marquee-track { flex-wrap: wrap; width: auto; gap: 16px 28px; } .marquee-track [aria-hidden] { display: none; } }

/* recenzije */
.reviews-head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 24px; }
.reviews-head > div { display: grid; gap: 16px; max-width: 640px; }
.score { display: flex; align-items: center; gap: 16px; }
.score strong { font-family: var(--font-display); font-stretch: 76%; font-weight: 800; font-size: 3.6rem; line-height: 1; }
.score .small { display: grid; gap: 4px; }
.carousel { margin-top: 40px; display: grid; grid-auto-flow: column; grid-auto-columns: minmax(280px, 86%); gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 4px var(--gutter) 18px; margin-inline: calc(var(--gutter) * -1); scrollbar-width: thin; scrollbar-color: var(--line-2) transparent; overscroll-behavior-x: contain; }
.carousel > * { scroll-snap-align: start; }
.review { border-radius: var(--r-card); background: var(--surface); box-shadow: 0 0 0 1px var(--line); padding: 24px; display: grid; gap: 16px; align-content: space-between; }
.review blockquote { margin: 0; font-size: 1.02rem; line-height: 1.5; }
.review footer { display: flex; align-items: center; gap: 12px; }
.avatar { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: var(--surface-2); box-shadow: inset 0 0 0 1px var(--line-2); font-weight: 600; font-size: 0.9rem; color: var(--accent-text); }
.review cite { font-style: normal; display: grid; font-size: 0.9rem; }
.review cite span { color: var(--dim); font-size: 0.8125rem; }
.verified { display: inline-flex; align-items: center; gap: 6px; color: var(--ok); font-size: 0.8125rem; }
.verified .ico { width: 15px; height: 15px; }
@media (min-width: 760px) { .carousel { grid-auto-columns: minmax(320px, 40%); } }
@media (min-width: 1100px) { .carousel { margin-inline: 0; padding-inline: 0; grid-auto-columns: calc((100% - 2 * 14px) / 3); } }

/* ponuda */
.offer { background: var(--bg-2); border-block: 1px solid var(--line); }
.offer-grid { display: grid; gap: 32px; align-items: start; }
.offer-media { border-radius: var(--r-card); overflow: hidden; box-shadow: 0 0 0 1px var(--line); background: var(--accent); }
.offer-media img { width: 100%; aspect-ratio: 1; object-fit: cover; }
.offer-box { display: grid; gap: 20px; }
.offer-aside { display: none; }
.mini-review { margin-top: 14px; padding: 20px; border-radius: var(--r-card); background: var(--surface); box-shadow: 0 0 0 1px var(--line); display: grid; gap: 10px; }
.mini-review blockquote { margin: 0; font-size: 1rem; }
.mini-review figcaption { font-size: 0.85rem; color: var(--dim); }
.offer-box { gap: 16px; }
.offer-title { display: grid; gap: 12px; }
.delivery { display: flex; align-items: center; gap: 10px; color: var(--muted); font-size: 0.95rem; }
.delivery .ico { color: var(--ok); width: 20px; height: 20px; }
.delivery strong { color: var(--text); font-weight: 600; }
.panel-h { font-size: 1.05rem; font-weight: 600; display: flex; align-items: center; gap: 10px; }
.panel-h .num, .panel h2 .num { width: 26px; height: 26px; border-radius: 50%; background: var(--accent); color: #fff; display: grid; place-items: center; font-size: 0.8rem; flex: none; }
.more summary { cursor: pointer; font-size: 0.9rem; color: var(--muted); list-style: none; display: inline-flex; gap: 6px; align-items: center; }
.more summary::before { content: "+"; display: inline-grid; place-items: center; width: 20px; height: 20px; border-radius: 50%; box-shadow: inset 0 0 0 1px var(--line-2); font-size: 0.85rem; }
.more[open] summary::before { content: "−"; }
.more summary::-webkit-details-marker { display: none; }
.more .opt, .field .opt { color: var(--dim); font-weight: 400; }
.btn-lg { --h: 62px; font-size: 1.075rem; }
.assure-row { grid-template-columns: 1fr; gap: 8px; }
.assure-row .ico { color: var(--accent-text); }
@media (min-width: 560px) { .assure-row { grid-template-columns: repeat(3, auto); justify-content: space-between; } .assure-row li { font-size: 0.82rem; } }
@media (min-width: 900px) {
  .offer-grid { grid-template-columns: 0.9fr 1.1fr; gap: 56px; }
  .offer-aside { display: block; position: sticky; top: 92px; }
}

/* izbor paketa (deli se sa porudžbinom) */
.packs { display: grid; gap: 10px; border: 0; margin: 0; padding: 0; }
.pack { position: relative; display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 14px; padding: 18px; border-radius: var(--r-card); background: var(--surface); box-shadow: inset 0 0 0 1px var(--line-2); cursor: pointer; transition: box-shadow 0.25s var(--ease), background-color 0.25s var(--ease); }
.pack:hover { background: var(--surface-2); }
.pack input { position: absolute; opacity: 0; pointer-events: none; }
.pack .radio { width: 22px; height: 22px; border-radius: 50%; box-shadow: inset 0 0 0 2px var(--line-2); display: grid; place-items: center; transition: box-shadow 0.2s; }
.pack .radio::after { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--accent); transform: scale(0); transition: transform 0.25s var(--ease); }
.pack:has(input:checked) { box-shadow: inset 0 0 0 2px var(--accent); background: linear-gradient(0deg, var(--accent-soft), var(--accent-soft)), var(--surface); }
.pack:has(input:checked) .radio { box-shadow: inset 0 0 0 2px var(--accent); }
.pack:has(input:checked) .radio::after { transform: scale(1); }
.pack:has(input:focus-visible) { outline: 2px solid var(--accent-text); outline-offset: 3px; }
.pack-name { display: grid; gap: 2px; }
.pack-name strong { font-weight: 600; font-size: 1.05rem; }
.pack-name span { font-size: 0.85rem; color: var(--muted); }
.pack-price { text-align: right; display: grid; gap: 2px; }
.pack-price strong { font-weight: 700; font-size: 1.1rem; font-variant-numeric: tabular-nums; }
.pack-price s { color: var(--dim); font-size: 0.85rem; }
.badge { position: absolute; top: -10px; right: 16px; padding: 3px 10px; border-radius: var(--r-pill); background: var(--accent); color: #fff; font-size: 0.72rem; font-weight: 600; letter-spacing: 0.02em; }
.badge.alt { background: var(--text); color: var(--bg); }

.totals { display: grid; gap: 8px; padding: 18px 0 4px; border-top: 1px solid var(--line); font-size: 0.95rem; }
.totals div { display: flex; justify-content: space-between; gap: 12px; color: var(--muted); }
.totals .grand { color: var(--text); font-weight: 600; font-size: 1.1rem; padding-top: 6px; }
.totals .grand strong { font-variant-numeric: tabular-nums; }
.assure { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.assure li { display: flex; gap: 10px; align-items: flex-start; font-size: 0.92rem; color: var(--muted); }
.assure .ico { color: var(--ok); width: 18px; height: 18px; margin-top: 2px; }

/* FAQ */
.faq-grid { display: grid; gap: 36px; }
.faq-list { display: grid; gap: 10px; }
.faq-list details { border-radius: var(--r-card); background: var(--surface); box-shadow: 0 0 0 1px var(--line); }
.faq-list summary { list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 20px 22px; cursor: pointer; font-weight: 600; }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary .ico { color: var(--muted); transition: transform 0.3s var(--ease); }
.faq-list details[open] summary .ico { transform: rotate(45deg); color: var(--accent-text); }
.faq-list details p { padding: 0 22px 22px; color: var(--muted); max-width: 62ch; }
@media (min-width: 900px) { .faq-grid { grid-template-columns: 0.8fr 1.2fr; gap: 56px; } .faq-grid > div:first-child { position: sticky; top: 100px; align-self: start; } }

/* završni CTA */
.final { text-align: center; overflow: hidden; }
.final::before { content: ""; position: absolute; left: 50%; bottom: -40%; width: 120vw; max-width: 1400px; aspect-ratio: 2; transform: translateX(-50%); background: radial-gradient(closest-side, rgb(201 59 31 / 0.22), transparent 70%); pointer-events: none; }
.final .wrap { position: relative; display: grid; justify-items: center; gap: 22px; }
.final .h1 { font-size: clamp(2.8rem, 10vw, 6.4rem); }

/* footer */
.site-footer { border-top: 1px solid var(--line); padding: 36px 0 120px; }
.site-footer .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px; font-size: 0.875rem; color: var(--dim); }
.site-footer a { color: var(--muted); text-decoration: none; }
.site-footer a:hover { color: var(--text); }
@media (min-width: 900px) { .site-footer { padding-bottom: 40px; } }

/* sticky CTA na mobilnom */
.sticky-cta {
  position: fixed; left: 12px; right: 12px; bottom: calc(12px + env(safe-area-inset-bottom)); z-index: var(--z-sticky);
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 10px 10px 10px 18px; border-radius: var(--r-pill);
  background: rgb(22 22 24 / 0.9); -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px);
  box-shadow: 0 0 0 1px var(--line-2), 0 20px 40px -10px rgb(0 0 0 / 0.6);
  transform: translateY(140%); transition: transform 0.45s var(--ease);
}
.sticky-cta.show { transform: none; }
.sticky-cta .small { line-height: 1.25; }
.sticky-cta .small strong { color: var(--text); display: block; font-size: 0.95rem; }
.sticky-cta .btn { --h: 46px; padding: 0 20px; }
@media (min-width: 900px) { .sticky-cta { display: none; } }

/* ==========================================================================
   PORUDŽBINA
   ========================================================================== */
.checkout-header .wrap { justify-content: space-between; }
.secure { display: inline-flex; align-items: center; gap: 8px; font-size: 0.85rem; color: var(--muted); }
.secure .ico { color: var(--ok); width: 18px; height: 18px; }
.checkout { padding: 28px 0 80px; }
.checkout-grid { display: grid; gap: 28px; align-items: start; }
.checkout h1 { font-size: clamp(2.2rem, 7vw, 3.2rem); }
.panel { border-radius: var(--r-card); background: var(--surface); box-shadow: 0 0 0 1px var(--line); padding: 22px; display: grid; gap: 18px; }
.panel h2 { font-size: 1.05rem; font-weight: 600; display: flex; align-items: center; gap: 10px; }
.panel h2 .num { width: 26px; height: 26px; border-radius: 50%; background: var(--accent); color: #fff; display: grid; place-items: center; font-size: 0.8rem; }
.form-col { display: grid; gap: 16px; }
.fields { display: grid; gap: 14px; }
.fields .row-2 { display: grid; gap: 14px; grid-template-columns: 1fr 1fr; }
.field { display: grid; gap: 7px; }
.field label { font-size: 0.875rem; font-weight: 500; }
.field label .opt { color: var(--dim); font-weight: 400; }
.field input, .field textarea {
  width: 100%; min-height: 52px; padding: 14px 16px;
  border-radius: var(--r-input); border: 0; background: var(--bg);
  box-shadow: inset 0 0 0 1px var(--line-2);
  font-size: 16px; /* sprečava zoom na iOS */
  transition: box-shadow 0.2s;
}
.field textarea { min-height: 84px; resize: vertical; }
.field input::placeholder, .field textarea::placeholder { color: #75737a; }
.field input:focus, .field textarea:focus { outline: none; box-shadow: inset 0 0 0 2px var(--accent-text); }
.field .help { font-size: 0.8125rem; color: var(--dim); }
.field .err { font-size: 0.8125rem; color: var(--danger); display: none; }
.field.invalid input, .field.invalid textarea { box-shadow: inset 0 0 0 2px var(--danger); }
.field.invalid .err { display: block; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.pay-option { display: flex; align-items: center; gap: 14px; padding: 16px 18px; border-radius: var(--r-input); box-shadow: inset 0 0 0 2px var(--accent); background: linear-gradient(0deg, var(--accent-soft), var(--accent-soft)), var(--bg); }
.pay-option .ico { width: 26px; height: 26px; color: var(--accent-text); }
.pay-option div { display: grid; }
.pay-option span { font-size: 0.85rem; color: var(--muted); }
.form-error { display: none; padding: 14px 16px; border-radius: var(--r-input); background: rgb(255 122 102 / 0.1); box-shadow: inset 0 0 0 1px rgb(255 122 102 / 0.4); color: #ffb3a7; font-size: 0.92rem; }
.form-error.show { display: block; }
.submit-note { font-size: 0.85rem; color: var(--dim); text-align: center; }
.summary { display: grid; gap: 16px; }
.summary-item { display: grid; grid-template-columns: 72px 1fr auto; gap: 14px; align-items: center; }
.summary-item img { width: 72px; height: 72px; border-radius: 12px; object-fit: cover; }
.summary-item strong { display: block; font-weight: 600; }
.summary-item span { font-size: 0.85rem; color: var(--muted); }
.spinner { width: 18px; height: 18px; border-radius: 50%; border: 2px solid rgb(255 255 255 / 0.35); border-top-color: #fff; animation: spin 0.8s linear infinite; display: none; }
.btn.loading .spinner { display: block; }
.btn.loading .ico { display: none; }
@keyframes spin { to { transform: rotate(360deg); } }
.summary-col { display: none; }
@media (min-width: 900px) {
  .summary-col { display: block; }
  .mobile-totals { display: none; }
  .checkout { padding-top: 44px; }
  .checkout-grid { grid-template-columns: 1.25fr 0.85fr; gap: 40px; }
  .summary-col { position: sticky; top: 92px; order: 2; }
}

/* ==========================================================================
   HVALA
   ========================================================================== */
.thanks { padding: 48px 0 96px; }
.thanks .wrap { max-width: 720px; display: grid; gap: 22px; }
.check-badge { width: 64px; height: 64px; border-radius: 50%; background: rgb(79 181 122 / 0.14); color: var(--ok); display: grid; place-items: center; }
.check-badge .ico { width: 34px; height: 34px; }
.timeline { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; }
.timeline li { display: grid; grid-template-columns: 28px 1fr; gap: 14px; padding-bottom: 18px; position: relative; }
.timeline li::before { content: ""; position: absolute; left: 13px; top: 28px; bottom: 0; width: 2px; background: var(--line-2); }
.timeline li:last-child::before { display: none; }
.timeline .dot { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: var(--surface-2); box-shadow: inset 0 0 0 1px var(--line-2); color: var(--muted); }
.timeline .dot .ico { width: 15px; height: 15px; }
.timeline li.done .dot { background: var(--ok); color: #0b0b0c; box-shadow: none; }
.timeline strong { display: block; font-weight: 600; }
.timeline span { color: var(--muted); font-size: 0.92rem; }
.order-id { font-variant-numeric: tabular-nums; letter-spacing: 0.04em; color: var(--text); font-weight: 600; }

[hidden] { display: none !important; }

/* hero cena / dostava */
.hero-meta { display: flex; flex-wrap: wrap; gap: 8px 20px; font-size: 0.875rem; color: var(--muted); }
.hero-meta span { white-space: nowrap; }
.hero-meta strong { color: var(--text); font-weight: 600; }

/* poređenje */
.cmp { margin-top: 40px; max-width: 860px; border-radius: var(--r-card); background: var(--surface); box-shadow: 0 0 0 1px var(--line); overflow: hidden; }
.cmp-row { display: grid; grid-template-columns: 1.7fr 1fr 1fr; align-items: center; }
.cmp-row + .cmp-row { border-top: 1px solid var(--line); }
.cmp-row > span { padding: 16px 18px; display: flex; align-items: center; min-height: 58px; font-size: 0.95rem; }
.cmp-row > span:not(:first-child) { justify-content: center; }
.cmp-head > span { font-weight: 600; color: var(--muted); font-size: 0.875rem; }
.cmp-vexo { background: var(--accent-soft); box-shadow: inset 1px 0 0 rgb(201 59 31 / 0.35), inset -1px 0 0 rgb(201 59 31 / 0.35); align-self: stretch; }
.cmp-head .cmp-vexo img { height: 15px; width: auto; }
.cmp .ico { width: 22px; height: 22px; }
.cmp .yes { color: var(--ok); }
.cmp .no { color: #6f6d72; }
@media (max-width: 480px) { .cmp-row > span { padding: 14px 12px; font-size: 0.875rem; } }

/* popup pre odlaska */
.exit { padding: 0; border: 0; border-radius: 20px; background: var(--surface); color: var(--text); width: min(440px, calc(100vw - 32px)); box-shadow: 0 0 0 1px var(--line-2), 0 40px 80px -20px rgb(0 0 0 / 0.8); overflow: hidden; }
.exit::backdrop { background: rgb(5 5 6 / 0.72); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); }
.exit-img { width: 100%; height: 190px; object-fit: cover; object-position: 50% 62%; }
.exit-body { padding: 24px; display: grid; gap: 14px; }
.exit-body .h3 { font-size: 2rem; }
.exit-close { position: absolute; top: 12px; right: 12px; width: 38px; height: 38px; border-radius: 50%; border: 0; display: grid; place-items: center; background: rgb(11 11 12 / 0.7); color: var(--text); cursor: pointer; }
.exit-no { background: none; border: 0; color: var(--dim); font-size: 0.875rem; cursor: pointer; padding: 6px; justify-self: center; text-decoration: underline; text-underline-offset: 3px; }
@media (prefers-reduced-motion: no-preference) { .exit[open] { animation: pop 0.45s var(--ease); } @keyframes pop { from { opacity: 0; transform: translateY(16px) scale(0.98); } } }
