/* prvi.dodir — porudžbina „Za sebe“ u koracima (sajt 1-6).
   00 izbor, 01 Kartica, 02 Podaci, 03 Sajt (po želji), 04 Dostava i plaćanje, potvrda. Raspored iz dizajna
   „prvi.dodir — porudžbina“; polja, kartica i sajt u pregledu su postojeći delovi (js/app.js, css/app.css).
   Sve je pod body.o2, pa /svoj-dizajn i porudžbina za tim izgledaju isto kao pre.
   Računar (≥ 1101 px): koraci levo, forma, pregled desno. Tablet: forma i pregled. Telefon: jedna kolona i traka dole. */

.o2 { --o2-panel: linear-gradient(160deg, #ECEAE4, #DEDCD5); --o2-card: linear-gradient(165deg, #FFFFFF 0%, #F7F6F2 45%, #EFEEE9 100%); }
.o2 button.gbtn { border: 0; font: inherit; color: inherit; cursor: pointer; }
.o2 .gbtn .icon { position: relative; width: 18px; height: 18px; flex: none; }

/* ---------- Zaglavlje ---------- */
.o2-head__in {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  gap: 16px;
  max-width: 1440px;
  height: var(--header-h);
  margin: 0 auto;
  padding: 0 var(--gutter);
}
.o2-who { display: inline-flex; padding: 4px; border-radius: 999px; background: var(--pesak); }
.o2-who a {
  display: inline-flex; align-items: center; height: 36px; padding: 0 16px; border-radius: 999px;
  font-size: 14px; color: var(--grafit-tamni); white-space: nowrap; transition: background-color .2s, color .2s;
}
.o2-who a:hover { color: var(--ugalj); }
.o2-who a[aria-current="page"] { background: #FBFAF7; color: var(--ugalj); font-weight: 500; box-shadow: 0 4px 10px -6px rgba(11, 11, 11, .3); }
.o2-who [data-price]:not(:empty)::before { content: " · "; white-space: pre; }
.o2-head__r { display: flex; align-items: center; justify-content: flex-end; gap: 12px; }
.o2-draft {
  display: inline-flex; align-items: center; gap: 8px; margin: 0;
  font-family: var(--mono); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--grafit);
}
.o2-draft .icon { width: 14px; height: 14px; }
.o2-count { display: none; font-family: var(--mono); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; }
/* „Nazad“ samo na izboru i potvrdi; u koracima je tu nacrt */
.o2:not([data-step="0"]):not([data-step="done"]) .o2-home { display: none; }
.o2[data-step="0"] .o2-draft, .o2[data-step="done"] .o2-draft { display: none; }

/* ---------- Strana, naslovi ---------- */
.o2 .o2-page { padding: 32px 0 72px; }
.o2-kicker, .o2 .o2-pv-head .label, .o2-pv__cap {
  margin: 0; font-family: var(--mono); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--grafit);
}
.o2-h1 {
  margin: 12px 0 0;
  font-size: clamp(38px, calc(3.9vw / var(--z, 1)), 58px);
  font-weight: 600; letter-spacing: -0.05em; line-height: .95;
}
.o2-h1 > span { display: block; color: var(--grafit); }
.o2-h1--xl { font-size: clamp(44px, calc(5.4vw / var(--z, 1)), 76px); }
.o2-h1:focus { outline: none; }

/* ---------- 00 Izbor: tačno jedan ekran (slika kartice se skuplja po visini prozora) ---------- */
.o2[data-step="0"] .o2-page { padding: 0; }
.o2-izbor {
  display: flex; flex-direction: column;
  height: max(600px, calc(calc(100svh / var(--z, 1)) - var(--header-h) - 1px));   /* - 1px: linija ispod zaglavlja */
  max-width: calc(1240px + 2 * var(--gutter)); margin: 0 auto;
  padding: clamp(16px, 3.4vh, 40px) var(--gutter) clamp(16px, 3vh, 36px);
}
.o2-izbor__head { flex: none; display: flex; align-items: flex-end; justify-content: space-between; gap: 48px; }
.o2-izbor__head .label { margin: 0; }
.o2-izbor .o2-h1 { margin-top: clamp(8px, 1.6vh, 16px); font-size: clamp(36px, min(calc(5vw / var(--z, 1)), 7.4vh), 76px); }
.o2-izbor__lead { max-width: 36ch; margin: 0; font-size: 16px; line-height: 1.55; color: var(--grafit); }
.o2-izbor__grid {
  flex: 1; min-height: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); grid-template-rows: minmax(0, 1fr);
  gap: 24px; margin-top: clamp(16px, 3.4vh, 40px);
}
.o2-opt {
  display: flex; flex-direction: column; min-height: 0; padding: clamp(18px, 2.8vh, 28px) 28px; border-radius: 28px; color: var(--ugalj);
  background: var(--o2-card);
  box-shadow: 0 30px 60px -40px rgba(11, 11, 11, .45), inset 0 1px 0 #FFFFFF, inset 0 0 0 1px rgba(11, 11, 11, .06);
  transition: transform .45s cubic-bezier(.3, 1.5, .5, 1), box-shadow .3s ease;
}
.o2-opt.is-main { box-shadow: 0 30px 60px -40px rgba(11, 11, 11, .45), inset 0 1px 0 #FFFFFF, inset 0 0 0 2px var(--ugalj); }
.o2-opt:hover { transform: translateY(-4px); }
.o2-opt:focus-visible { outline: 2px solid var(--ugalj); outline-offset: 4px; }
.o2-opt__top { flex: none; display: flex; align-items: center; justify-content: space-between; min-height: 26px; }
.o2-opt__top .label { margin: 0; font-size: 11px; }
.o2-opt__ok { display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: var(--ugalj); color: var(--papir); }
.o2-opt__ok svg { width: 14px; height: 14px; }
/* Slika: visina je ono što ostane; kartice su po visini (cqh) */
.o2-opt__art { flex: 1 1 0; min-height: 70px; container-type: size; display: grid; place-items: center; margin: 8px 0; }
.o2-opt .nfc-card { display: block; }
.o2-opt__card { display: block; height: min(100cqh, 200px); aspect-ratio: 85.6 / 54; }
/* Tim: tri kartice jedna iza druge, ravno (bez rotacije) */
.o2-opt__team { position: relative; display: block; height: min(100cqh, 210px); aspect-ratio: 1.628; }
.o2-opt__team .nfc-card { position: absolute; width: 77.9%; }
.o2-opt__team .nfc-card:nth-child(1) { left: 0; top: 20%; }
.o2-opt__team .nfc-card:nth-child(2) { left: 11.06%; top: 10%; }
.o2-opt__team .nfc-card:nth-child(3) { left: 22.1%; top: 0; }
.o2-teget { background: #18223A; }
.o2-teget .wordmark__muted, .o2-teget .nfc-card__label { color: #93979E; }
.o2-opt__row { flex: none; display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; }
.o2-opt__t { font-size: clamp(26px, 3.8vh, 32px); font-weight: 600; letter-spacing: -0.045em; line-height: 1; }
.o2-opt__price { display: grid; justify-items: end; }
.o2-opt__price b { font-size: clamp(28px, 4.4vh, 38px); font-weight: 600; letter-spacing: -0.04em; line-height: 1; }
.o2-opt__price small { margin-top: 4px; font-size: 12.5px; color: var(--grafit); }
.o2-opt__d { flex: none; margin-top: 8px; font-size: 15px; line-height: 1.45; color: var(--grafit); }
.o2-opt__list {
  flex: none; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px 16px;
  margin: 12px 0 0; padding-top: 12px; border-top: 1px solid var(--linija); font-size: 14px;
}
.o2-opt__list > span { position: relative; padding-left: 16px; }
.o2-opt__list > span::before { content: ""; position: absolute; left: 0; top: .55em; width: 6px; height: 6px; border-radius: 50%; background: var(--ugalj); }
.o2-izbor__foot { flex: none; display: flex; align-items: center; justify-content: space-between; gap: 24px; margin-top: clamp(14px, 2.6vh, 28px); }
.o2-izbor__foot .label { margin: 0; font-size: 12px; }

/* ---------- Koraci: raspored ---------- */
.o2-shell {
  display: grid;
  grid-template-columns: 232px minmax(0, 1fr) 400px;
  gap: 48px;
  align-items: start;
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 var(--gutter);
}
.o2-rail, .o2-aside { position: sticky; top: calc(var(--header-h) + 28px); }

/* Koraci sa strane */
.o2-rail {
  display: flex; flex-direction: column; gap: 6px;
  height: calc(calc(100vh / var(--z, 1)) - var(--header-h) - 56px);
  min-height: 420px; max-height: 820px;
}
.o2-steps { display: grid; gap: 6px; margin: 0; padding: 0; list-style: none; }
.o2-st {
  display: grid; grid-template-columns: 30px minmax(0, 1fr); align-items: center; gap: 12px;
  padding: 14px; border-radius: 18px; color: var(--ugalj); transition: background-color .2s, box-shadow .2s;
}
.o2-st:hover { background: rgba(251, 250, 247, .7); }
.o2-st:focus-visible { outline: 2px solid var(--ugalj); outline-offset: 2px; }
.o2-st__n {
  display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%;
  box-shadow: inset 0 0 0 1.5px #C9C7BF; font-size: 13px; color: var(--grafit);
}
.o2-st__n svg { width: 14px; height: 14px; }
.o2-st__t { display: grid; min-width: 0; }
.o2-st__t b { font-size: 15px; font-weight: 500; }
.o2-st__t small { overflow: hidden; font-size: 13px; color: var(--grafit); text-overflow: ellipsis; white-space: nowrap; }
.o2-st.is-cur { background: #FBFAF7; box-shadow: 0 12px 24px -16px rgba(11, 11, 11, .35), inset 0 0 0 1px rgba(11, 11, 11, .05); }
.o2-st.is-cur b { font-weight: 600; }
.o2-st.is-cur .o2-st__n, .o2-st.is-done .o2-st__n { background: var(--ugalj); color: var(--papir); box-shadow: none; font-weight: 600; }
.o2-tip { display: none; margin-top: auto; padding: 18px; border-radius: 18px; background: var(--pesak); }
.o2-tip b { font-size: 14px; font-weight: 600; }
.o2-tip p { margin: 6px 0 0; font-size: 13px; line-height: 1.5; color: var(--grafit-tamni); }
.o2[data-step="1"] [data-tip="1"], .o2[data-step="2"] [data-tip="2"], .o2[data-step="3"] [data-tip="3"], .o2[data-step="4"] [data-tip="4"] { display: block; }

/* Traka napretka (tablet i telefon) */
.o2-prog { display: none; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; margin-bottom: 18px; }
.o2-prog i { height: 4px; border-radius: 4px; background: var(--linija); transition: background-color .3s; }
.o2[data-step="1"] .o2-prog i:nth-child(-n+1), .o2[data-step="2"] .o2-prog i:nth-child(-n+2),
.o2[data-step="3"] .o2-prog i:nth-child(-n+3), .o2[data-step="4"] .o2-prog i:nth-child(-n+4) { background: var(--ugalj); }

/* ---------- Forma ---------- */
.o2-main { min-width: 0; }
.o2-step { animation: o2in .45s var(--ease-out) both; }
@keyframes o2in { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
.o2-body { display: grid; gap: 26px; margin-top: 32px; }
.o2-body.grid-2 { gap: 20px; }
.o2-mini { display: none; }
.o2-pair { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 20px; align-items: start; }
.o2-bonus { margin-top: -14px; }
.o2 .own-front { margin-top: 4px; }
.o2-cardback { margin-top: 30px; padding-top: 26px; border-top: 1px solid var(--linija); }

/* 03 Sajt: grupe koje se otvaraju */
.o2-kick-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.o2-skip {
  height: 36px; padding: 0 14px; border: 0; border-radius: 999px; background: transparent;
  font: inherit; font-size: 14px; font-weight: 500; color: var(--ugalj); text-decoration: underline; text-underline-offset: 3px; cursor: pointer;
}
.o2-skip:hover { background: var(--pesak); }
.o2-acc { margin-top: 26px; border-bottom: 1px solid var(--linija); }
.o2-ac { border-top: 1px solid var(--linija); }
.o2-ac > summary {
  display: flex; align-items: center; gap: 14px; min-height: 58px; padding: 0 4px;
  list-style: none; cursor: pointer;
}
.o2-ac > summary::-webkit-details-marker { display: none; }
.o2-ac > summary:focus-visible { outline: 2px solid var(--ugalj); outline-offset: -2px; border-radius: 8px; }
.o2-ac > summary b { flex: 1; font-size: 16px; font-weight: 600; letter-spacing: -0.01em; }
.o2-ac > summary small { overflow: hidden; max-width: 55%; font-size: 13.5px; color: var(--grafit); text-overflow: ellipsis; white-space: nowrap; }
.o2-ac > summary .icon { flex: none; width: 18px; height: 18px; color: var(--grafit); transition: transform .35s var(--ease-out); }
.o2-ac[open] > summary .icon { transform: rotate(180deg); }
.o2-ac__in { display: grid; gap: 22px; padding: 4px 4px 26px; }
.o2-ac__in.grid-2 { gap: 18px 20px; }
.o2-ac--hours .hbox__head > div > b { display: none; }
.o2 .sitebtns .frow:first-child { padding-top: 0; }
.o2 .sitebtns .frow:last-child { border-bottom: 0; }
/* Raspored na sajtu: isti red kao ostale grupe */
.o2-ac--lay .laybox { border: 0; border-radius: 0; background: none; }
.o2-ac--lay .laybox__head { min-height: 58px; padding: 0 4px; background: none; }
.o2-ac--lay .laybox__head:hover { background: none; }
.o2-ac--lay .laybox__ic { display: none; }
.o2-ac--lay .laybox__txt b { font-size: 16px; }
/* Svoj link na kartici: izdvojeno, bela kartica sa ikonom */
.o2-link {
  margin-top: 20px; padding: 20px 22px; border-radius: 22px;
  background: var(--o2-card);
  box-shadow: 0 18px 34px -24px rgba(11, 11, 11, .45), inset 0 1px 0 #FFFFFF, inset 0 0 0 1px rgba(11, 11, 11, .08);
}
.o2-link .frow { padding: 0; border: 0; }
.o2-link .cardlink__ic { width: 42px; height: 42px; border-radius: 50%; color: var(--papir); }
.o2-link .cardlink__title .field__label { font-size: 17px; }
.o2-link .input { background: #FFFFFF; }

/* 04 Dostava: dodatna polja na klik */
.o2-more > summary {
  display: inline-flex; align-items: center; height: 40px; padding: 0 16px; border-radius: 999px;
  background: var(--pesak); font-size: 14px; font-weight: 500; list-style: none; cursor: pointer;
}
.o2-more > summary::-webkit-details-marker { display: none; }
.o2-more > summary:focus-visible { outline: 2px solid var(--ugalj); outline-offset: 2px; }
.o2-more[open] > summary { margin-bottom: 18px; background: transparent; padding: 0; height: auto; color: var(--grafit); }
.o2-submit { margin-top: 30px; padding-top: 26px; }

/* ---------- Svoj dizajn (svoj-dizajn.html): u 01 editor zauzima i mesto pregleda, jer sam prikazuje karticu ---------- */
.o2-lead { max-width: 62ch; margin: 14px 0 0; font-size: 16px; line-height: 1.55; color: var(--grafit-tamni); }
.o2-step__foot { display: none; }
.dz-page[data-step="1"] .o2-main { grid-column: 2 / -1; }
.dz-page[data-step="1"] .o2-aside { display: none; }
.dz-page[data-step="1"] .o2-step__foot { display: flex; justify-content: flex-end; margin-top: 28px; }
.dz-page .o2-done__art #done-card { width: 100%; margin: 0; }

/* ---------- Za tim (porudzbina-firma.html): delovi strane za firmu u istom rasporedu ---------- */
.o2-firm .fcard__grid.o2-body { margin-top: 32px; gap: 20px; }
.o2-look { gap: 22px; }
.o2-look .fdz { margin-top: 0; }
/* Izgled kartice: izabrano bez žute (belo, taman okvir); „Svoj dizajn“ uvek isprekidan okvir, kao traka kod „Za sebe“ */
.o2 .fdz__opt:has(input:checked) { border-color: var(--ugalj); background: #FFFFFF; box-shadow: 0 10px 22px -16px rgba(11, 11, 11, .4); }
.o2 .fdz__opt:has(input[value="dz"]) { border-style: dashed; border-color: #C9C8C1; }
.o2 .fdz__opt:has(input[value="dz"]):hover { border-color: #8F8E88; }
.o2 .fdz__opt:has(input[value="dz"]:checked) { border-color: var(--ugalj); }
.o2-firm .o2-acc .fbox__msg, .o2-firm .o2-acc .fbox__hours, .o2-firm .o2-acc .fbox__btns { margin-top: 0; }
.o2-firm #korak-3 .emp-tools { margin-top: 28px; }
.o2-firm #korak-4 .fgroup:first-of-type { margin-top: 28px; padding-top: 0; border-top: 0; }
.o2-firm .o2-kick-row .chip { flex: none; }
.o2-back { display: inline-flex; }
/* Pregled: kartica (prednja i poleđina, ravno) ili sajt izabranog zaposlenog */
.o2-firm .o2-tabs { display: inline-flex; }
.o2-firm .o2-stage--firm { display: block; padding: 18px 20px; }
.o2-firm .pv { display: flex; flex-direction: column; height: 100%; padding: 0; border-radius: 0; background: none; }
.o2-firm .pv__head .label { margin: 0; font-size: 11px; }
.o2-firm .pv__pager button { background: rgba(251, 250, 247, .8); }
.o2-firm .pv__cards { flex: 1; min-height: 200px; aspect-ratio: auto; margin: 14px 0 12px; }
.o2-firm .pv__front { top: 0; right: 0; width: 70%; transform: none; }
.o2-firm .pv__back { left: 0; bottom: 0; width: 80%; transform: none; }
.o2-firm .pv__url { margin: 0; background: rgba(251, 250, 247, .8); }
.o2-firm[data-pv="card"] .pv__site, .o2-firm[data-pv="card"] .pv__logo-pos, .o2-firm[data-pv="card"] .pv__phone { display: none; }
.o2-firm[data-pv="site"] .pv__cards, .o2-firm[data-pv="site"] .pv__url { display: none; }
.o2-firm[data-pv="site"] .pv__site { display: none; }   /* „Sajt“ već piše na dugmetu gore, telefon dobija to mesto */
.o2-firm[data-pv="site"] .pv__logo-pos { margin-top: 12px; }
.o2-firm[data-pv="site"] .pv__phone { flex: 1; min-height: 0; container-type: size; padding: 6px 0 0; align-items: flex-start; }
.o2-firm[data-pv="site"] .pv__phone .phone {
  font-size: min(calc(calc(100cqw / var(--cqz, 1)) * .86 / 16.8), max(calc(calc(100cqh / var(--cqz, 1)) * .98 / 34.7), calc(calc(100cqw / var(--cqz, 1)) * .7 / 16.8)));
}
.o2-firm[data-step="4"] .o2-aside { height: auto; }
.o2-firm:not([data-step="4"]) .sum__min { display: none; }
.o2-firm[data-step="4"] .o2-pv-head, .o2-firm[data-step="4"] .o2-stage { display: none; }
.o2-done__team { padding: 28px; }
.o2-done__team .label { margin: 0; font-size: 11px; }

/* ---------- Poklon (poklon.html): prvo šifra (jedan ekran, bez .page), pa isti koraci ---------- */
.o2.o2-gift .o2-page:not(.page) { padding: 0; }
.o2-gift:not([data-open]) .o2-count, .o2-gift:not([data-open]) .o2-draft { display: none !important; }
.o2-gift-pill {
  display: inline-flex; align-items: center; gap: 8px; height: 44px; margin: 0; padding: 0 18px; border-radius: 999px;
  background: #FBFAF7; box-shadow: 0 4px 10px -6px rgba(11, 11, 11, .3), inset 0 0 0 1px rgba(11, 11, 11, .05); font-size: 14px; font-weight: 500;
}
.o2-gift-pill .icon { width: 17px; height: 17px; }
.o2-gift-code { margin: 0 0 10px 14px; font-size: 11px; }
.o2-gate-go .gin { min-height: 56px; font-size: 17px; justify-content: center; }
.o2-gift .gift-dz { margin-bottom: 4px; }
.o2-pv--front > div { width: 100%; }
.o2-pv--back .o2-pv__cap { display: none; }

/* ---------- Pregled uživo (desno) ---------- */
.o2 .o2-aside {
  display: flex; flex-direction: column; gap: 14px;
  height: calc(calc(100vh / var(--z, 1)) - var(--header-h) - 56px);
  min-height: 420px; max-height: 860px;
  padding: 0; border: 0;
}
/* 04: pregled kartice manji, a na niskom ekranu samo cena i dugme */
.o2[data-step="4"] .o2-aside { height: auto; }
.o2[data-step="4"] .o2-stage { flex: none; height: 250px; }
@media (max-height: 820px) { .o2[data-step="4"] .o2-pv-head, .o2[data-step="4"] .o2-stage { display: none; } }
.o2-pv-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 36px; }
.o2-tabs { display: none; padding: 3px; border-radius: 999px; background: var(--pesak); }
.o2-tabs button {
  height: 30px; padding: 0 14px; border: 0; border-radius: 999px; background: transparent;
  font: inherit; font-size: 13px; color: var(--ugalj); cursor: pointer; transition: background-color .2s, color .2s;
}
.o2-tabs button[aria-pressed="true"] { background: var(--ugalj); color: var(--papir); }
.o2-pv-site { display: none; }
.o2[data-step="1"] .o2-tabs { display: inline-flex; }
.o2[data-step="3"] .o2-pv-site { display: inline; }
.o2-stage {
  position: relative; flex: 1; min-height: 0;
  display: grid; place-items: center; padding: 28px;
  border-radius: 28px; background: var(--o2-panel); overflow: hidden;
}
.o2 .o2-pv { display: none; width: 100%; max-width: 340px; }
.o2-pv--front { gap: 14px; justify-items: center; }
.o2-pv__cap { text-align: center; }
.o2[data-step="1"][data-side="front"] .o2-pv--front,
.o2[data-step="1"][data-side="back"] .o2-pv--back,
.o2[data-step="2"] .o2-pv--back,
.o2[data-step="4"] .o2-pv--back { display: grid; }
.o2 .o2-aside.has-inline-back #prev-back { display: block; }
.o2 .o2-pv--back .back-card { box-shadow: 0 34px 60px -30px rgba(11, 11, 11, .45), 0 0 0 1px rgba(11, 11, 11, .04); }
/* Sajt: telefon staje u visinu pregleda (manji kad je prozor nizak) */
.o2[data-step="3"] .o2-pv--site { display: flex; flex-direction: column; max-width: none; height: 100%; }
.o2[data-step="3"] .o2-stage { padding: 14px; }
.o2 .o2-pv--site .logo-pos { margin: 0 0 12px; background: rgba(251, 250, 247, .75); }
/* Položaj loga iznad telefona: zbijeno, da telefon ostane velik */
.o2 .o2-aside .logo-pos { gap: 6px; padding: 10px 14px; }
.o2 .o2-aside .logo-pos__hint { font-size: 12.5px; line-height: 1.4; }
.o2 .o2-pv--site .aside__phone { flex: 1; min-height: 0; container-type: size; padding: 0; align-items: flex-start; }
/* Telefon staje u visinu, ali nikad uži od ~70 % širine; na niskom prozoru dno blago izbledi */
.o2 .o2-pv--site .aside__phone .phone {
  font-size: min(calc(calc(100cqw / var(--cqz, 1)) * .86 / 16.8), max(calc(calc(100cqh / var(--cqz, 1)) * .98 / 34.7), calc(calc(100cqw / var(--cqz, 1)) * .7 / 16.8)));
}
.o2[data-step="3"] .o2-stage, .o2-firm[data-pv="site"] .o2-stage--firm { -webkit-mask-image: linear-gradient(#000 calc(100% - 28px), transparent); mask-image: linear-gradient(#000 calc(100% - 28px), transparent); }

/* Cena i dugme */
.o2-sum {
  position: relative; isolation: isolate; display: grid; gap: 14px; padding: 18px 20px 20px; border-radius: 24px;
  background: linear-gradient(165deg, #FFFFFF, #F1F0EB);
  box-shadow: 0 30px 60px -40px rgba(11, 11, 11, .45), inset 0 1px 0 #FFFFFF;
}
.o2-sum::before {
  content: ""; position: absolute; inset: 0; z-index: -1; border-radius: inherit; padding: 1.6px; pointer-events: none;
  background: conic-gradient(from var(--ga), rgba(255, 255, 255, 0) 0deg, rgba(255, 255, 255, 0) 150deg, rgba(70, 70, 68, .35) 185deg, #7FD0FF 215deg, #B48BFF 232deg, #FF8FB8 248deg, #FFD47A 262deg, rgba(40, 40, 38, .5) 282deg, rgba(255, 255, 255, 0) 320deg);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude;
  animation: gspin 5s linear infinite;
}
.o2-sum .summary { border-top: 0; }
.o2-sum .summary div { padding: 3px 0; border-bottom: 0; font-size: 14px; }
.o2-sum .summary dt { color: var(--grafit-tamni); }
.o2-sum .summary .summary__total { margin-top: 10px; padding-top: 12px; border-top: 1px solid var(--linija); }
.o2-sum .summary__total dd { font-size: 28px; }
.o2-sum .summary__sub { font-size: 12px; }
/* Cena samo u koraku 04 (Dostava i plaćanje); u 01–03 ispod pregleda je samo dugme „Dalje“, pa je pregled veći */
.o2:not([data-step="4"]) .o2-sum { padding: 0; background: none; box-shadow: none; }
.o2:not([data-step="4"]) .o2-sum::before { display: none; }
.o2:not([data-step="4"]) .o2-sum .summary { display: none; }
.o2 .o2-s4 { display: none; }
.o2[data-step="4"] .o2-s4:not([hidden]) { display: flex; }
.o2-go .gin { min-height: 54px; padding: 0 22px; font-size: 16px; gap: 10px; }
.o2-sum__note { margin: -4px 0 0; text-align: center; font-size: 13px; color: var(--grafit); }
@media (prefers-reduced-motion: reduce) { .o2-sum::before, .o2-step { animation: none; } }

/* Traka dole (telefon) */
.o2-bar { display: none; }

/* ---------- Potvrda ---------- */
.o2-done {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(300px, 460px); gap: clamp(32px, calc(5vw / var(--z, 1)), 80px);
  align-items: start; max-width: calc(1240px + 2 * var(--gutter)); margin: 0 auto; padding: 8px var(--gutter) 0;
}
.o2-done .o2-h1 { margin-top: 22px; }
.o2-done .done__lead { margin-top: 18px; }
.o2-next__t { margin: 30px 0 0; font-size: 11px; }
.o2-next { display: grid; margin: 10px 0 0; padding: 0; list-style: none; }
.o2-next li { position: relative; display: grid; grid-template-columns: 34px minmax(0, 1fr); gap: 14px; padding: 12px 0; }
.o2-next li:not(:last-child)::after { content: ""; position: absolute; left: 16.5px; top: 46px; bottom: -10px; width: 1px; background: var(--linija); }
.o2-next__n { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; box-shadow: inset 0 0 0 1.5px #C9C7BF; font-size: 13px; color: var(--grafit); }
.o2-next .is-done .o2-next__n { background: var(--ugalj); color: var(--papir); box-shadow: none; }
.o2-next__n svg { width: 15px; height: 15px; }
.o2-next b { display: block; font-size: 16px; font-weight: 600; }
.o2-next small { display: block; margin-top: 2px; font-size: 14px; line-height: 1.45; color: var(--grafit); }
.o2-done .done__ctas { align-items: center; gap: 12px; }
.o2-done__art {
  position: sticky; top: calc(var(--header-h) + 28px);
  display: grid; gap: 22px; padding: 36px; border-radius: 32px; background: var(--o2-panel);
}
.o2-done__front { width: 86%; justify-self: start; }
.o2-done__art #done-card { width: 86%; justify-self: end; margin-top: -9%; }
.o2-done__art .back-card { box-shadow: 0 34px 60px -30px rgba(11, 11, 11, .45), 0 0 0 1px rgba(11, 11, 11, .04); }

/* ---------- Tablet: forma i pregled, bez kolone sa koracima ---------- */
@media (max-width: 1100px) {
  .o2-shell { grid-template-columns: minmax(0, 1fr) 340px; gap: 36px; }
  .o2-rail { display: none; }
  .o2-prog { display: grid; }
  .dz-page[data-step="1"] .o2-main { grid-column: 1 / -1; }
  .o2-who a { padding: 0 12px; font-size: 13.5px; }
}

/* ---------- Telefon ---------- */
@media (max-width: 760px) {
  .o2-head__in { grid-template-columns: minmax(0, 1fr) auto; }
  .o2-who, .o2-gift-pill { display: none; }
  .o2-gift:has(.gift-dz.is-dz) .o2-mini { display: none; }   /* poklon sa svojim dizajnom: kartica je u editoru */
  .o2-draft { display: none; }
  .o2:not([data-step="0"]):not([data-step="done"]) .o2-count { display: inline; }
  .o2 .o2-page { padding: 18px 0 40px; }

  /* Izbor na telefonu: i dalje jedan ekran; kartice vodoravno (slika levo, tekst desno), bez spiska */
  .o2-izbor { height: auto; min-height: calc(100svh - var(--header-h) - 1px); padding: 18px 20px 20px; }
  .o2-izbor__head { display: block; }
  .o2-izbor .o2-h1 { font-size: clamp(32px, 9vw, 42px); }
  .o2-izbor__lead { margin-top: 12px; font-size: 15px; }
  .o2-izbor__grid { flex: none; grid-template-columns: minmax(0, 1fr); grid-template-rows: none; gap: 12px; margin-top: 22px; }
  .o2-opt { display: grid; grid-template-columns: 108px minmax(0, 1fr); column-gap: 16px; row-gap: 6px; align-items: center; padding: 16px 18px; border-radius: 22px; }
  .o2-opt > * { grid-column: 2; }
  .o2-opt__art { grid-column: 1; grid-row: 1 / span 3; container-type: normal; min-height: 0; margin: 0; }
  .o2-opt__card, .o2-opt__team { width: 100%; height: auto; }
  .o2-opt__top { min-height: 0; }
  .o2-opt__ok { width: 22px; height: 22px; }
  .o2-opt__t { font-size: 24px; }
  .o2-opt__price b { font-size: 24px; }
  .o2-opt__price small { display: none; }
  .o2-opt__d { margin-top: 0; font-size: 13.5px; line-height: 1.4; }
  .o2-opt__list { display: none; }
  .o2-izbor__foot { flex-direction: column; align-items: stretch; gap: 12px; margin-top: auto; padding-top: 18px; text-align: center; }
  .o2-izbor__foot .label { font-size: 10.5px; }
  .o2-izbor__foot .gbtn { display: flex; }
  .o2-izbor__foot .gin { flex: 1; justify-content: center; }

  .o2-shell { display: block; padding: 0 20px 100px; }
  .o2-h1 { font-size: clamp(32px, 9vw, 40px); }
  .o2-h1--xl { font-size: clamp(38px, 11vw, 48px); }
  /* Mali pregled ispod naslova: prednja strana (01) i poleđina (02) */
  .o2-mini { display: grid; place-items: center; margin-top: 18px; padding: 22px; border-radius: 24px; background: var(--o2-panel); }
  .o2-mini > .nfc-card { width: min(250px, 78%); }
  .o2-mini--back > div { width: min(320px, 100%); }
  .o2-body { margin-top: 24px; }
  .o2-pair { grid-template-columns: minmax(0, 1fr); }
  .o2-skip { padding: 0 6px; white-space: nowrap; }
  .o2-skip__more { display: none; }

  /* Pregled ispod forme samo za sajt (03) i za cenu (04) */
  .o2 .o2-aside { position: static; height: auto; min-height: 0; max-height: none; margin: 32px 0 0; }
  .o2[data-step="1"] .o2-aside, .o2[data-step="2"] .o2-aside { display: none; }
  .o2.dz-page[data-step="2"] .o2-aside { display: flex; }   /* svoj dizajn: poleđina sa podacima ispod forme */
  .o2.dz-page[data-step="2"] .o2-sum { display: none; }
  .dz-page[data-step="1"] .o2-step__foot { display: none; }
  /* Za tim na telefonu: pregled ispod forme u koracima 2 (izgled) i 3 (ljudi), cena u 4 */
  .o2.o2-firm[data-step="2"] .o2-aside, .o2.o2-firm[data-step="3"] .o2-aside { display: flex; }
  .o2.o2-firm[data-step="2"] .o2-sum, .o2.o2-firm[data-step="3"] .o2-sum { display: none; }
  .o2-firm .o2-stage--firm { height: auto; }
  .o2-firm[data-pv="card"] .pv__cards { flex: none; aspect-ratio: 1.36; min-height: 0; }
  .o2-firm[data-pv="site"] .pv__phone { flex: none; container-type: inline-size; }
  .o2-firm[data-pv="site"] .pv__phone .phone { font-size: calc(calc(100cqw / var(--cqz, 1)) * .84 / 16.8); }
  .o2-back { display: none; }
  .o2[data-step="4"] .o2-pv-head, .o2[data-step="4"] .o2-stage { display: none; }
  .o2[data-step="3"] .o2-sum { display: none; }
  /* Pregled sajta na telefonu: telefon po širini ekrana (ne po visini), pa je velik */
  .o2[data-step="3"] .o2-stage { height: auto; padding: 18px 14px 22px; -webkit-mask-image: none; mask-image: none; }
  .o2-firm[data-pv="site"] .o2-stage--firm { -webkit-mask-image: none; mask-image: none; }
  .o2 .o2-pv--site .aside__phone { flex: none; container-type: inline-size; }
  .o2 .o2-pv--site .aside__phone .phone { font-size: calc(calc(100cqw / var(--cqz, 1)) * .84 / 16.8); }
  .o2 .o2-sum .o2-go, .o2 .o2-sum__note { display: none; }

  .o2-bar {
    position: fixed; left: 12px; right: 12px; bottom: calc(12px + env(safe-area-inset-bottom)); z-index: 40;
    display: flex; align-items: center; gap: 12px; padding: 8px 8px 8px 20px; border-radius: 999px;
    background: rgba(251, 250, 247, .94); -webkit-backdrop-filter: saturate(1.4) blur(14px); backdrop-filter: saturate(1.4) blur(14px);
    box-shadow: 0 20px 40px -20px rgba(11, 11, 11, .45), inset 0 1px 0 #FFFFFF, inset 0 0 0 1px rgba(11, 11, 11, .06);
  }
  .o2[data-step="0"] .o2-bar, .o2[data-step="done"] .o2-bar { display: none; }
  .o2:not([data-step="4"]) .o2-bar { padding: 6px; }
  .o2:not([data-step="4"]) .o2-bar__sum { display: none; }
  .o2-bar__sum { display: grid; flex: none; }
  .o2-bar__sum b { font-size: 22px; font-weight: 600; letter-spacing: -0.04em; line-height: 1.1; }
  .o2-bar__sum small { font-size: 11.5px; color: var(--grafit-tamni); }
  .o2-bar__go { flex: 1; display: flex; padding: 4px; }
  .o2-bar__go .gin { flex: 1; justify-content: center; min-height: 48px; padding: 0 18px; font-size: 16px; }

  .o2-done { display: block; }
  .o2-done__art { position: static; margin-top: 32px; padding: 24px; }
  .o2-done .done__ctas .gbtn { display: flex; width: 100%; }
  .o2-done .done__ctas .gin { flex: 1; justify-content: center; }
}

/* ---------- Promo kartica: aktivacija (aktivacija.html, js/aktivacija.js) ----------
   Prvo šifra (kao unos šifre na /poklon), pa dva koraka: data-step 2 (Podaci) i 3 (Sajt). U oba je desno pregled sajta
   (kartica je već kod osobe, pa nema pregleda kartice). */
.o2-promo .o2-prog { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.o2-promo[data-step="2"] .o2-prog i:nth-child(2) { background: var(--linija); }
.o2-promo[data-step="2"] .o2-pv--site { display: flex; flex-direction: column; max-width: none; height: 100%; }
.o2-promo[data-step="2"] .o2-stage { padding: 14px; -webkit-mask-image: linear-gradient(#000 calc(100% - 28px), transparent); mask-image: linear-gradient(#000 calc(100% - 28px), transparent); }
.o2-promo .o2-pv-site { display: inline; }
.o2-promo .o2-submit { margin-top: 34px; padding-top: 26px; border-top: 1px solid var(--linija); }
/* Šifra: kartica (prednja i zadnja, u boji kartice) na crnoj tabli; ravno, zadnja malo niže i desno */
.promo-gate__art { position: relative; display: block; max-height: none; flex: none; height: auto; aspect-ratio: 1.45; max-width: 400px; }
.promo-gate__front, .promo-gate__back { position: absolute; width: 74%; }
.promo-gate__front { left: 0; top: 0; z-index: 1; }
.promo-gate__back { right: 0; bottom: 0; }
.promo-gate__art .nfc-card, .promo-gate__art .dz-card { box-shadow: 0 30px 50px -26px rgba(0, 0, 0, .9), 0 0 0 1px rgba(243, 242, 237, .14); }
.anim .promo-gate__front { animation: pd-phone 1s cubic-bezier(.2, .8, .2, 1) .2s both; }
.anim .promo-gate__back { animation: pd-phone 1s cubic-bezier(.2, .8, .2, 1) .35s both; }
.promo-gate__box > div:not([hidden]) { display: grid; gap: clamp(12px, calc(2.8vh / var(--z, 1)), 22px); }
.promo-gate__code { margin-top: 0; }
.promo-gate__links { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.promo-gate__wait { color: var(--grafit); }
@media (max-width: 900px) {
  .gift-gate.promo-gate .auth__art.promo-gate__art { display: block; width: min(300px, 82%); margin: 16px auto 0; }
  .promo-gate .auth__panel .label { display: block; }
}
@media (max-width: 900px) and (max-height: 700px) {
  .gift-gate.promo-gate .auth__art.promo-gate__art { display: none; }
}
