/* prvi.dodir — lični sajt klijenta (kartica.php) */

:root {
  --ugalj: #0B0B0B;
  --papir: #F3F2ED;
  --pesak: #E9E7E1;
  --grafit: #6E6D68;
  --grafit-tamni: #46453F;
  --linija: #DCDAD2;
  --font: "Geist", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --mono: "Geist Mono", ui-monospace, "SF Mono", Menlo, monospace;
  --max: 1180px;
  --pad: 16px;

  /* Boja sajta (bira klijent) */
  --bg: #0B0B0B;
  --blob: #262626;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--papir);
  color: var(--ugalj);
  font-family: var(--font);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
h1, h2, p, ul { margin: 0; }
ul { padding: 0; list-style: none; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; }
svg { display: block; }
:focus-visible { outline: 2px solid currentColor; outline-offset: 3px; border-radius: 6px; }

.cs-draft {
  padding: 10px 16px;
  background: #E9A23B;
  color: var(--ugalj);
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: .06em;
  text-align: center;
}

.cs { padding: var(--pad); }

/* ---------- Hero ----------
   Logo bez pozadine stoji desno gore. Preko njega je staklena ploča sa imenom,
   koja ga zamućuje (zamućena kopija loga u .cs-glass__under). Boja aktivnog SR/EN dugmeta prati logo. */

.cs-hero {
  position: relative;
  container-type: size;   /* sav sadržaj je apsolutno postavljen, visina dolazi od min-height/aspect-ratio */
  min-height: 320px;
  border-radius: 22px;
  background: var(--bg);
  color: var(--papir);
  overflow: hidden;
  isolation: isolate;
}
.cs-hero.has-logo {
  min-height: 0;
  aspect-ratio: 1 / 1.02;
}

.cs-hero__top {
  position: absolute;
  top: 18px;
  left: 18px;
  right: 18px;
  z-index: 3;
  display: flex;
  align-items: center;
  gap: 16px;
}
.cs-hero__company {
  display: none;
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: rgba(243, 242, 237, .6);
}

.cs-lang {
  display: flex;
  padding: 4px;
  border-radius: 99px;
  background: rgba(255, 255, 255, .08);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .14);
}
.cs-lang button {
  min-width: 46px;
  height: 34px;
  padding: 0 12px;
  border: 0;
  border-radius: 99px;
  background: transparent;
  color: rgba(243, 242, 237, .7);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .06em;
  cursor: pointer;
  transition: background-color .25s, color .25s;
}
.cs-lang button[aria-pressed="true"] { background: var(--accent); color: var(--accent-ink); }

.cs-hero__logo {
  position: absolute;
  top: max(64px, 17%);   /* ispod SR/EN, da veliki ili širok logo ne udari u dugme */
  right: 6%;
  z-index: 1;
  width: 72%;
  height: 62%;
  object-fit: contain;
  object-position: right top;
}
.cs-hero__logo.is-tile {
  width: auto;
  height: auto;
  max-width: 62%;
  max-height: 58%;
  border-radius: 16px;
}
/* Logo postavljen pre automatskog uklanjanja pozadine: svetla pločica, da se vidi. */
.cs-hero__logo.is-light { width: 56%; height: auto; aspect-ratio: 1; max-height: 56%; padding: 6%; background: var(--papir); object-fit: contain; object-position: center; }
/* Položaj koji je klijent sam namestio u nalogu: centar (--lx, --ly) i širina (--lw), u % hero dela.
   Važi samo na telefonu; na računaru je raspored drugačiji i logo stoji desno. */
@media (max-width: 859px) {
  .cs-hero__logo.is-placed {
    top: var(--ly);
    left: var(--lx);
    right: auto;
    width: var(--lw);
    height: auto;
    max-width: none;
    max-height: none;
    translate: -50% -50%;
    object-position: center;
  }
}

.cs-glass {
  position: absolute;
  left: 0;
  bottom: 0;
  z-index: 2;
  /* Ploča je velika koliko i tekst u njoj (najviše 86% širine). Desni i gornji razmak
     ostavljaju mesta za zaobljeni ugao, da on ne preseče ime. */
  width: fit-content;
  max-width: 86%;
  max-height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 32px max(40px, calc(13cqw / var(--cqz, 1))) 24px 24px;
  border-top: 1px solid rgba(255, 255, 255, .24);
  border-right: 1px solid rgba(255, 255, 255, .16);
  --rx: 50%;
  --ry: 34%;
  border-top-right-radius: var(--rx) var(--ry);
  overflow: hidden;
  /* Safari ne seče zamućenu kopiju po zaobljenom uglu (vidi se kao siv pravougaonik),
     pa se ploča dodatno seče istom krivinom. */
  clip-path: inset(0 round 0 var(--rx) 0 0 / 0 var(--ry) 0 0);
  --blur: 22px;
}
/* Zamućena kopija hero dela, poravnata sa njim (calc(100cqw / var(--cqz, 1)) × calc(100cqh / var(--cqz, 1)) = ceo hero). */
.cs-glass__under {
  position: absolute;
  left: 0;
  bottom: 0;
  z-index: 0;
  width: calc(100cqw / var(--cqz, 1));
  height: calc(100cqh / var(--cqz, 1));
  background: var(--bg);
}
.cs-glass__under img { filter: blur(var(--blur)) saturate(1.1); }
/* Ton i odsjaj stakla */
.cs-glass::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(112deg, rgba(255, 255, 255, .02) 16%, rgba(255, 255, 255, .14) 27%, rgba(255, 255, 255, .02) 37%),
    rgba(255, 255, 255, .07);
  pointer-events: none;
}
.cs-glass > h1, .cs-glass > p { position: relative; z-index: 2; }

/* Bez loga hero je niži. */
.cs-hero:not(.has-logo) { min-height: 340px; }

.cs-hero__name {
  font-size: clamp(40px, calc(12vw / var(--z, 1)), 60px);
  font-weight: 600;
  letter-spacing: -0.05em;
  line-height: .95;
  overflow-wrap: anywhere;
}
.cs-hero__name span { display: block; }
/* Kratko ime staje u jedan red (meri kartica.php), duže ide u dva: ime, pa prezime. */
.cs-hero__name.is-one { white-space: nowrap; }
.cs-hero__name.is-one span { display: inline; }
.cs-hero__role {
  white-space: pre-line;   /* firma od dve reči je u svom redu */
  margin-top: 12px;
  font-size: 16px;
  font-weight: 300;
  color: rgba(243, 242, 237, .8);
}

/* Svetla boja sajta (kartica.php dodaje .site-light na <body>, vidi is_light_bg u api/_lib.php): tekst u gornjem
   delu i na dugmetu „Sačuvaj kontakt“ je crn, a gornji deo i dugme imaju tanku ivicu, da se odvoje od svetle strane. */
.site-light .cs-hero { color: var(--ugalj); outline: 1px solid rgba(11, 11, 11, .08); outline-offset: -1px; }
.site-light .cs-hero__company { color: rgba(11, 11, 11, .6); }
.site-light .cs-lang { background: rgba(11, 11, 11, .06); box-shadow: inset 0 0 0 1px rgba(11, 11, 11, .12); }
.site-light .cs-lang button { color: rgba(11, 11, 11, .65); }
.site-light .cs-lang button[aria-pressed="true"] { color: var(--accent-ink); }
.site-light .cs-hero__role { color: rgba(11, 11, 11, .72); }
.site-light .cs-glass { border-top-color: rgba(11, 11, 11, .12); border-right-color: rgba(11, 11, 11, .08); }
.site-light .cs-glass::before {
  background:
    linear-gradient(112deg, rgba(255, 255, 255, .05) 16%, rgba(255, 255, 255, .3) 27%, rgba(255, 255, 255, .05) 37%),
    rgba(255, 255, 255, .22);
}
.site-light .cs-save { color: var(--save-ink, var(--save-lt-ink, var(--ugalj))); box-shadow: inset 0 0 0 1px rgba(11, 11, 11, .1); }
.site-light .cs-lead { border-color: var(--lead-line, var(--ugalj)); }

/* ---------- Telo ---------- */

.cs-body { display: grid; gap: 8px; margin-top: 16px; }

/* Radno vreme (kartica.php, js/radno-vreme.js): staklena oznaka gore desno u kartici, u redu sa SR/EN (isti stil);
   dodir otvara prozor sa celom nedeljom. Tekst je kratak („Otvoreno do 20h“), a ako ne stane, skrati se sa „…“. */
.cs-hpill {
  display: inline-flex; align-items: center; gap: 8px; min-width: 0; height: 42px; margin-left: auto; padding: 0 14px 0 12px;
  border: 0; border-radius: 99px; background: rgba(255, 255, 255, .08); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .14);
  color: var(--papir); font: inherit; font-size: 12.5px; font-weight: 500; cursor: pointer; transition: background-color .2s;
}
.cs-hpill:hover { background: rgba(255, 255, 255, .14); }
.cs-hpill__t { min-width: 0; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.cs-hpill__dot { flex: none; width: 8px; height: 8px; border-radius: 50%; background: #B5B2AA; }
.is-open .cs-hpill__dot { background: #3CC47A; box-shadow: 0 0 0 3px rgba(60, 196, 122, .22); }
.is-soon .cs-hpill__dot { background: #F0B23A; box-shadow: 0 0 0 3px rgba(240, 178, 58, .24); }
.is-closed .cs-hpill__dot { background: #E2563E; }
.site-light .cs-hpill { background: rgba(11, 11, 11, .06); box-shadow: inset 0 0 0 1px rgba(11, 11, 11, .12); color: var(--ugalj); }
.cs-hero__top .cs-lang { flex: none; }
/* Prozor sa nedeljom */
.cs-hdlg__now { display: flex; align-items: center; justify-content: center; gap: 8px; font-size: 16px; font-weight: 600; }
.cs-hdlg__week { display: grid; margin: 0; padding: 0; list-style: none; text-align: left; }
.cs-hdlg__week li { display: flex; justify-content: space-between; gap: 12px; padding: 10px 2px; border-top: 1px solid var(--linija); font-size: 15px; color: var(--grafit-tamni, #46453F); }
.cs-hdlg__week b { font-weight: 500; font-variant-numeric: tabular-nums; color: var(--ugalj, #0B0B0B); }
.cs-hdlg__week b.is-off { font-weight: 400; color: var(--grafit); }
.cs-hdlg__week li.is-today, .cs-hdlg__week li.is-today b { color: var(--ugalj, #0B0B0B); font-weight: 600; }

.cs-save {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 60px;
  padding: 0 22px;
  border-radius: 16px;
  background: var(--save-bg, var(--save-lt, var(--bg)));   /* akcenat iz loga, ako je izabran; svetla boja sajta bez akcenta: crno (--save-lt) */
  color: var(--save-ink, var(--save-lt-ink, var(--papir)));
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -0.01em;
  transition: opacity .2s;
}
.cs-save:hover { opacity: .9; }
.cs-save svg { width: 22px; height: 22px; }

.cs-quick { display: grid; grid-template-columns: 1fr 1fr; }
/* Razmak od dugmeta iznad („Ostavi svoj kontakt“ ili „Sačuvaj kontakt“), kao ispod reda: crta između ne dodiruje dugme */
.cs-actions > .cs-quick { margin-top: 8px; }
.cs-quick a {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 16px 12px 18px 20px;
}
.cs-quick a + a { border-left: 1px solid var(--linija); }
.cs-quick b { font-size: 17px; font-weight: 600; letter-spacing: -0.01em; }
.cs-quick small { font-size: 14.5px; color: var(--grafit); }
.cs-quick a:only-child { grid-column: 1 / -1; }
/* Tri dugmeta (Pozovi, Firma, WhatsApp): treće ide u novi red preko cele širine */
.cs-quick a:nth-child(3) { grid-column: 1 / -1; border-left: 0; border-top: 1px solid var(--linija); }

.cs-rows li a {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
  padding: 18px 2px;
  border-top: 1px solid var(--linija);
  font-size: 16px;
}
.cs-rows li:last-child a { border-bottom: 1px solid var(--linija); }
.cs-rows span { flex: none; color: var(--grafit); }
.cs-rows b { font-weight: 600; text-align: right; overflow-wrap: anywhere; }
.cs-rows a:hover b { text-decoration: underline; text-underline-offset: 3px; }

/* Raspored (nalog → Raspored): omotač linkova i tekstova. Sam po sebi nevidljiv (display: contents), pa su
   spisak i „O nama“ i dalje kolone na računaru; kad su izmešani (.is-stack), na računaru idu jedno ispod drugog. */
.cs-flow { display: contents; }
.cs-about { padding: 20px 2px 8px; }
.cs-about h2 { font-size: 24px; font-weight: 600; letter-spacing: -0.04em; line-height: 1.2; }
.cs-about p { margin-top: 10px; font-size: 16px; color: var(--grafit-tamni); white-space: pre-line; }
.cs-about h2 + p + h2, .cs-about ul + h2 { margin-top: 28px; }
.cs-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.cs-chips li {
  padding: 8px 16px;
  border-radius: 99px;
  background: var(--pesak);
  font-size: 15px;
}

.cs-share {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  height: 64px;
  margin-top: 12px;
  padding: 0 24px;
  border: 0;
  border-radius: 18px;
  background: var(--pesak);
  font-size: 16.5px;
  font-weight: 600;
  cursor: pointer;
  transition: background-color .2s;
}
.cs-share:hover { background: #E1DFD8; }
.cs-share svg { width: 22px; height: 22px; }
.cs-share--side { display: none; }

.cs-foot { display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 36px 0 20px; }
.cs-foot a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: var(--grafit);
}
.cs-foot b { color: var(--ugalj); font-weight: 600; letter-spacing: -0.02em; }
.cs-foot svg { width: 16px; height: 16px; }
.cs-foot a.cs-foot__legal { font-size: 12.5px; color: var(--grafit); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--linija); }

/* ---------- Računar ---------- */

@media (min-width: 860px) {
  :root { --pad: max(48px, calc((calc(100vw / var(--z, 1)) - var(--max)) / 2)); }
  .cs { padding: 0 0 24px; }

  .cs-hero,
  .cs-hero.has-logo {
    aspect-ratio: auto;
    min-height: clamp(460px, calc(62vh / var(--z, 1)), 640px);
    border-radius: 0;
  }
  .cs-hero__top { top: 32px; left: var(--pad); right: var(--pad); }
  .cs-hero__company { display: block; }
  .cs-hero__logo {
    top: 48px;
    right: var(--pad);
    width: 48%;
    height: calc(100% - 96px);
    object-position: right center;
  }
  .cs-hero__logo.is-tile { top: 48px; max-width: 44%; max-height: calc(100% - 96px); border-radius: 22px; }
  .cs-glass {
    max-width: min(72%, calc(var(--pad) + 820px));
    padding: 48px max(64px, calc(10cqw / var(--cqz, 1))) 56px var(--pad);
    --rx: 44%;
    --ry: 42%;
    --blur: 34px;
  }
  .cs-hero:not(.has-logo) { min-height: clamp(420px, calc(54vh / var(--z, 1)), 560px); }
  .cs-hero__name { font-size: clamp(64px, calc(7.4vw / var(--z, 1)), 128px); }
  .cs-hero__name span { display: inline; }
  .cs-hero__role { margin-top: 20px; font-size: clamp(18px, calc(1.6vw / var(--z, 1)), 24px); }

  .cs-body {
    grid-template-columns: minmax(0, 340px) minmax(0, 1fr) minmax(0, 340px);
    gap: clamp(32px, calc(4vw / var(--z, 1)), 64px);
    align-items: start;
    max-width: var(--max);
    margin: 56px auto 0;
    padding: 0 max(0px, calc(var(--pad) - (calc(100vw / var(--z, 1)) - var(--max)) / 2));
  }
  .cs-actions { display: grid; gap: 4px; }
  .cs-quick { grid-template-columns: 1fr; }
  .cs-quick a,
  .cs-quick a + a {
    flex-direction: row;
    justify-content: space-between;
    align-items: baseline;
    padding: 22px 24px;
    border: 0;
    border-radius: 16px;
    transition: background-color .2s;
  }
  .cs-quick a:nth-child(3) { border-top: 0; }
  .cs-quick a:hover { background: var(--pesak); }
  .cs-share { margin-top: 8px; }
  .cs-share--side { display: flex; height: 62px; }
  .cs-share--bottom { display: none; }
  .cs-rows li a { padding: 20px 0; font-size: 17px; }
  .cs-about { padding: 0; }
  .cs-about h2 { font-size: 26px; }
  .cs-flow.is-stack { display: grid; grid-column: 2 / -1; gap: 36px; align-content: start; }

  .cs-foot {
    max-width: var(--max);
    margin: 0 auto;
    padding: 56px max(0px, calc(var(--pad) - (calc(100vw / var(--z, 1)) - var(--max)) / 2)) 24px;
    align-items: flex-end;   /* „Napravljeno uz“ i „Privatnost“ desno, jedno ispod drugog */
  }
}

/* ---------- QR dijalog ---------- */

.cs-dialog {
  width: min(380px, calc(calc(100vw / var(--z, 1)) - 32px));
  padding: 0;
  border: 0;
  border-radius: 24px;
  background: var(--papir);
  color: var(--ugalj);
  box-shadow: 0 40px 80px -30px rgba(11, 11, 11, .55);
}
.cs-dialog::backdrop { background: rgba(11, 11, 11, .5); backdrop-filter: blur(3px); }
.cs-dialog__box { display: grid; gap: 18px; padding: 28px; text-align: center; }
.cs-dialog__label { font-family: var(--mono); font-size: 11.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--grafit); }
.cs-dialog__qr { padding: 18px; border-radius: 18px; background: #fff; }
.cs-dialog__qr svg { width: 100%; height: auto; }
.cs-dialog__url { font-size: 15px; font-weight: 600; word-break: break-all; }
.cs-dialog__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.cs-btn {
  height: 46px;
  padding: 0 18px;
  border: 0;
  border-radius: 12px;
  background: var(--pesak);
  font-size: 15px;
  font-weight: 500;
  cursor: pointer;
}
.cs-btn--dark { background: var(--ugalj); color: var(--papir); }

/* ---------- Ostavi svoj kontakt ---------- */

.cs-lead {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  width: 100%;
  height: 60px;                     /* isto kao „Sačuvaj kontakt“ */
  padding: 0 20.5px;                /* 22px minus okvir, tekst je u liniji sa „Sačuvaj kontakt“ */
  border: 1.5px solid transparent;
  border-color: var(--lead-line, var(--bg));   /* okvir u akcenat boji (bez akcenta: boja sajta). Posebno od „border“:
                                               kad je boja sajta prelaz, neispravna je samo boja, a okvir ostaje */
  border-radius: 16px;
  background: transparent;
  color: var(--ugalj);
  font: inherit;
  text-align: left;
  cursor: pointer;
  transition: background-color .2s;
}
.cs-lead:hover { background: var(--pesak); }
/* Prelaz sajta (kartica.php, is-grad): okvir u prelazu, unutra boja stranice */
.cs-lead.is-grad, .site-light .cs-lead.is-grad { border-color: transparent; background: linear-gradient(var(--papir), var(--papir)) padding-box, var(--lead-grad) border-box; }
.cs-lead.is-grad:hover { background: linear-gradient(var(--pesak), var(--pesak)) padding-box, var(--lead-grad) border-box; }
.cs-save + .cs-lead { margin-top: 8px; }
.cs-lead b { display: block; font-size: 17px; font-weight: 600; letter-spacing: -0.01em; line-height: 1.2; }
.cs-lead small { display: block; margin-top: 1px; font-size: 14px; line-height: 1.25; color: var(--grafit); }
.cs-lead svg { flex: none; width: 22px; height: 22px; }

/* Telefon: forma se izvlači odozdo. Računar: prozor u sredini (vidi dole). */
.cs-sheet {
  width: 100%;
  max-width: none;
  max-height: calc(94vh / var(--z, 1));
  max-height: calc(94dvh / var(--z, 1));
  margin: auto 0 0;
  padding: 0;
  border: 0;
  border-radius: 28px 28px 0 0;
  background: var(--papir);
  color: var(--ugalj);
  overflow: auto;
}
.cs-sheet[open] { animation: cs-sheet-up .45s cubic-bezier(.22, 1, .36, 1); }
.cs-sheet::backdrop { background: rgba(11, 11, 11, .5); }
@keyframes cs-sheet-up { from { transform: translateY(40px); opacity: 0; } }
.cs-sheet__box { display: grid; gap: 18px; padding: 14px 24px 30px; }
.cs-sheet__grip { justify-self: center; width: 48px; height: 5px; border-radius: 99px; background: #CFCDC5; }
.cs-sheet__head { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; }
.cs-sheet__label { font-family: var(--mono); font-size: 12px; letter-spacing: .12em; color: var(--grafit); }
.cs-sheet__title { margin-top: 6px; font-size: clamp(28px, calc(8vw / var(--z, 1)), 36px); font-weight: 600; letter-spacing: -0.045em; line-height: 1.02; }
.cs-sheet__title--center { text-align: center; }
.cs-sheet__muted { color: var(--grafit); }
.cs-sheet__x {
  flex: none;
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border: 0;
  border-radius: 14px;
  background: var(--pesak);
  color: var(--ugalj);
  cursor: pointer;
}
.cs-sheet__x svg { width: 22px; height: 22px; }
.cs-sheet__fields { display: grid; gap: 16px; }

.cs-f { display: grid; gap: 8px; min-width: 0; }
.cs-f__label { font-size: 15.5px; font-weight: 500; }
.cs-f__label i { font-style: normal; color: var(--grafit); }
.cs-f__input {
  width: 100%;
  height: 56px;
  padding: 0 18px;
  border: 1.5px solid transparent;
  border-radius: 14px;
  background: var(--pesak);
  color: var(--ugalj);
  font: inherit;
  font-size: 17px;
  transition: border-color .2s, background-color .2s;
}
textarea.cs-f__input { height: auto; min-height: 92px; padding: 15px 18px; resize: vertical; line-height: 1.4; }
.cs-f__input::placeholder { color: #8F8E88; }
.cs-f__input:focus { outline: none; border-color: var(--ugalj); background: var(--papir-svetli); }
.cs-f__input.is-bad { border-color: #A12A1E; }
.cs-f__err { font-size: 13.5px; color: #A12A1E; }
.cs-f__hint { font-size: 13px; color: var(--grafit); }   /* uz Email: stiže ti moj kontakt (automatski odgovor) */
.cs-f__two { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; align-items: start; }   /* napomena ispod Email ne pomera polje Firma */
.cs-f { align-content: start; }
.cs-f__two.is-one { grid-template-columns: 1fr; }
.cs-hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }

.cs-check { display: flex; align-items: flex-start; gap: 14px; padding: 4px 2px; font-size: 16px; color: var(--grafit-tamni); cursor: pointer; }
.cs-check input { flex: none; width: 24px; height: 24px; margin: 0; accent-color: var(--ugalj); }
.cs-check i { font-style: normal; color: var(--grafit); }

.cs-sheet__error { padding: 12px 14px; border-radius: 12px; background: #F3DEDA; color: #7E1F16; font-size: 14.5px; }
.cs-sheet__send {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 62px;
  padding: 0 24px;
  border: 0;
  border-radius: 16px;
  background: var(--ugalj);
  color: var(--papir);
  font: inherit;
  font-size: 18px;
  font-weight: 600;
  cursor: pointer;
}
.cs-sheet__send:disabled { opacity: .6; cursor: progress; }
.cs-sheet__send svg { width: 24px; height: 24px; }
/* Loader dok se kontakt šalje: „Šaljem…“ i krug koji se vrti umesto strelica */
.cs-sheet__send-busy, .cs-sheet__spin { display: none; }
.cs-sheet__send.is-busy:disabled { opacity: 1; }
.cs-sheet__send.is-busy .cs-sheet__send-t, .cs-sheet__send.is-busy svg { display: none; }
.cs-sheet__send.is-busy .cs-sheet__send-busy { display: inline; }
.cs-sheet__send.is-busy .cs-sheet__spin {
  display: block; flex: none; width: 22px; height: 22px; border-radius: 50%;
  border: 2.5px solid rgba(243, 242, 237, .28); border-top-color: var(--papir);
  animation: cs-spin .8s linear infinite;
}
@keyframes cs-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .cs-sheet__send.is-busy .cs-sheet__spin { animation-duration: 2s; } }
.cs-sheet__note { text-align: center; font-size: 14px; color: var(--grafit); }
.cs-sheet__note a { margin-left: 4px; color: var(--ugalj); text-decoration: underline; text-underline-offset: 3px; }

.cs-sheet__done { display: grid; gap: 18px; justify-items: center; padding: 18px 0 4px; text-align: center; }
.cs-sheet__done[hidden], .cs-sheet__fields[hidden] { display: none; }
.cs-sheet__box.is-done .cs-sheet__head { display: none; }   /* posle slanja samo potvrda, kao u dizajnu */
.cs-sheet__ok { width: 150px; height: auto; }
.cs-sheet__lead { font-size: 16px; color: var(--grafit-tamni); }
.cs-sheet__lead--sub { margin-top: -4px; font-size: 14.5px; }
.cs-sheet__done .cs-sheet__send { width: 100%; }
.cs-sheet__close {
  padding: 8px 6px;
  border: 0;
  background: transparent;
  color: var(--ugalj);
  font: inherit;
  font-size: 16px;
  text-decoration: underline;
  text-underline-offset: 4px;
  cursor: pointer;
}

@media (min-width: 860px) {
  .cs-sheet {
    width: min(580px, calc(calc(100vw / var(--z, 1)) - 48px));
    max-height: calc(calc(100vh / var(--z, 1)) - 64px);
    margin: auto;
    border-radius: 28px;
    box-shadow: 0 40px 100px -30px rgba(11, 11, 11, .55);
  }
  .cs-sheet[open] { animation-name: cs-sheet-in; }
  @keyframes cs-sheet-in { from { transform: translateY(16px) scale(.98); opacity: 0; } }
  .cs-sheet::backdrop { background: rgba(11, 11, 11, .45); backdrop-filter: blur(3px); }
  .cs-sheet__box { gap: 20px; padding: 34px 36px 32px; }
  .cs-sheet__grip { display: none; }
  .cs-sheet__title { font-size: 40px; }
}

/* ---------- Prazna strana (nema sajta / priprema se) ---------- */

.cs-empty {
  display: grid;
  place-items: center;
  min-height: calc(100vh / var(--z, 1));
  min-height: calc(100dvh / var(--z, 1));
  padding: 24px;
}
.cs-empty__box { max-width: 420px; text-align: center; }
.cs-empty__znak { width: 44px; height: 44px; margin: 0 auto; }
.cs-empty__title {
  margin-top: 24px;
  font-size: clamp(34px, calc(8vw / var(--z, 1)), 48px);
  font-weight: 600;
  letter-spacing: -0.05em;
  line-height: 1;
}
.cs-empty__text { margin-top: 14px; font-size: 16px; color: var(--grafit-tamni); }
.cs-empty__link {
  display: inline-block;
  margin-top: 32px;
  font-size: 20px;
  font-weight: 600;
  letter-spacing: -0.05em;
  color: var(--grafit);
}
.cs-empty__link b { color: var(--ugalj); font-weight: 600; }

@media (prefers-reduced-motion: no-preference) {
  /* .cs-flow nema svoj okvir (display: contents), pa ulaze njegovi delovi, jedan za drugim */
  .cs-hero, .cs-body > :not(.cs-flow), .cs-flow > * { animation: cs-rise .9s cubic-bezier(.22, 1, .36, 1) backwards; }
  .cs-flow > :nth-child(1) { animation-delay: .08s; }
  .cs-flow > :nth-child(2) { animation-delay: .16s; }
  .cs-flow > :nth-child(n+3), .cs-body > .cs-share--bottom { animation-delay: .24s; }
}
@keyframes cs-rise {
  from { opacity: 0; transform: translate3d(0, 16px, 0); }
  to   { opacity: 1; transform: none; }
}

/* ---------- Tamna pozadina sajta (profile.theme „dark“, ili „auto“ kad je uređaj posetioca u tamnom režimu;
   kartica.php stavlja html.cs-dark) ----------
   Meko tamno siva, ne skroz crna, i svetla slova. Gornji deo u boji sajta i dugme „Sačuvaj kontakt“ ostaju isti. */
html.cs-dark {
  --papir: #161615;
  --papir-svetli: #1C1C1A;
  --pesak: #232321;
  --ugalj: #F3F2ED;
  --grafit: #9C9B95;
  --grafit-tamni: #C9C7C0;
  --linija: #2F2F2C;
  color-scheme: dark;
}
/* gornji deo i dugmad u boji sajta: slova kao na svetloj pozadini (tamna boja sajta: svetla slova, svetla: tamna) */
html.cs-dark .cs-hero { color: #F3F2ED; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .07); }
html.cs-dark .cs-save { background: var(--save-bg, var(--bg)); color: var(--save-ink, #F3F2ED); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .09); }   /* tamna strana: svetla boja sajta ostaje na dugmetu (ne crno na tamnom) */
html.cs-dark .cs-hpill { color: #F3F2ED; }
html.cs-dark .cs-hero__logo.is-light { background: #F3F2ED; }
html.cs-dark .site-light .cs-hero { color: #0B0B0B; box-shadow: none; }
html.cs-dark .site-light .cs-save { color: var(--save-ink, #0B0B0B); }
html.cs-dark .site-light .cs-hpill { color: #0B0B0B; }
/* delovi sa stalnom svetlom bojom */
html.cs-dark .cs-share:hover { background: #2C2C29; }
html.cs-dark .cs-sheet__grip { background: #3A3A37; }
html.cs-dark .cs-sheet__send.is-busy .cs-sheet__spin { border-color: rgba(11, 11, 11, .25); border-top-color: #0B0B0B; }
html.cs-dark .cs-sheet__ok circle { fill: #F3F2ED; }
html.cs-dark .cs-sheet__ok circle + path { stroke: #0B0B0B; }
html.cs-dark .cs-f__err { color: #F08A7C; }
html.cs-dark .cs-f__input.is-bad { border-color: #F08A7C; }
html.cs-dark .cs-sheet__error { background: rgba(226, 86, 62, .16); color: #F5B3A8; }

/* =====================================================================================================================
   TEME SAJTA (profile.tema, 27. 11. 2026; kartica.php stavlja html.cs-t-<tema>). Bez teme je „Kartica“, sve iznad.
   Ista strana i isti delovi, drugi izgled. Boja sajta (--bg, --tc*), akcenat (--save-bg) i pozadina (light/dark/svoja)
   važe u svakoj temi; Terminal je uvek taman, a u Bloku je pozadina strane boja sajta. Dizajn: canvas „izgledi sajta“.
   --tc puna boja sajta, --tc-ink tekst na njoj, --tc-text boja sajta čitljiva na ovoj pozadini (tema_vars u _lib.php).
   ===================================================================================================================== */
body { --tc-text: var(--tc-lo, var(--ugalj)); --tc-big: var(--tc-lo-big, var(--ugalj)); }
html.cs-dark body { --tc-text: var(--tc-hi, var(--ugalj)); --tc-big: var(--tc-hi-big, var(--ugalj)); }
.cs-mono, .cs-photo { display: none; }

/* Zajedničko za teme kod kojih gornji deo nije kartica u boji (Papir, Monogram, Terminal, Blok) */
html.cs-t-papir .cs .cs-hero, html.cs-t-monogram .cs .cs-hero, html.cs-t-terminal .cs .cs-hero, html.cs-t-blok .cs .cs-hero {
  container-type: normal; min-height: 0; aspect-ratio: auto; border-radius: 0; background: none; color: var(--ugalj);
  overflow: visible; isolation: auto; outline: 0; box-shadow: none; display: flex; flex-direction: column;
}
html.cs-t-papir .cs .cs-hero__top, html.cs-t-monogram .cs .cs-hero__top, html.cs-t-terminal .cs .cs-hero__top, html.cs-t-blok .cs .cs-hero__top { position: static; }
html.cs-t-papir .cs .cs-glass, html.cs-t-monogram .cs .cs-glass, html.cs-t-terminal .cs .cs-glass, html.cs-t-blok .cs .cs-glass,
html.cs-t-portret .cs .cs-glass {
  position: static; width: auto; max-width: none; max-height: none; padding: 0; border: 0; border-radius: 0; clip-path: none; overflow: visible;
}
html[class*="cs-t-"] .cs .cs-glass__under { display: none; }
html.cs-t-papir .cs .cs-glass::before, html.cs-t-monogram .cs .cs-glass::before, html.cs-t-blok .cs .cs-glass::before, html.cs-t-portret .cs .cs-glass::before { content: none; }
html.cs-t-papir .cs .cs-hero__role, html.cs-t-monogram .cs .cs-hero__role, html.cs-t-terminal .cs .cs-hero__role { color: var(--grafit); font-weight: 400; }
html.cs-name2 .cs .cs-hero__name span { display: block; }

/* ---------- 01 Papir: kao časopis. Veliko ime u serif slovima (prezime u kurzivu, u boji sajta), tanke linije,
   stavke pod brojevima 01, 02… Boja sajta: prezime i dugme „Sačuvaj kontakt“. ---------- */
html.cs-t-papir { --serif: "Instrument Serif", Georgia, "Times New Roman", serif; }
html.cs-t-papir .cs-body { counter-reset: pn; }
html.cs-t-papir .cs .cs-hero__top { height: 56px; gap: 12px; border-bottom: 1px solid var(--ugalj); }
html.cs-t-papir .cs .cs-lang { padding: 0; background: none; box-shadow: none; }
html.cs-t-papir .cs .cs-lang button { min-width: 40px; padding: 0 8px; border-radius: 0; color: var(--grafit); font-family: var(--mono); font-size: 11.5px; font-weight: 400; letter-spacing: .12em; }
html.cs-t-papir .cs .cs-lang button[aria-pressed="true"] { background: none; color: var(--ugalj); text-decoration: underline; text-underline-offset: 5px; }
html.cs-t-papir .cs .cs-hero__company { display: block; min-width: 0; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; color: var(--grafit); font-size: 11px; }
html.cs-t-papir .cs .cs-hpill { height: auto; padding: 0; background: none; box-shadow: none; color: var(--ugalj); font-family: var(--mono); font-size: 11px; font-weight: 400; letter-spacing: .08em; text-transform: uppercase; }
html.cs-t-papir .cs .cs-hero > .cs-hero__logo { position: static; align-self: flex-start; width: auto; max-width: 60%; height: 48px; max-height: none; margin-top: 22px; padding: 0; translate: none; object-fit: contain; object-position: left center; }
html.cs-t-papir .cs .cs-hero > .cs-hero__logo.is-tile { height: 56px; border-radius: 10px; }
html.cs-t-papir .cs .cs-hero > .cs-hero__logo.is-light { width: auto; aspect-ratio: auto; padding: 8px; }
/* Papir „po telefonu“ (30. 11. 2026): obe verzije loga, vidi se ona za pozadinu posetioca (kartica.php $logoDark) */
html:not(.cs-dark) .cs .cs-hero > .cs-hero__logo.cs-logo-d, html.cs-dark .cs .cs-hero > .cs-hero__logo.cs-logo-l { display: none; }
html.cs-t-papir .cs .cs-hero__name { margin-top: 22px; font-family: var(--serif); font-weight: 400; font-size: clamp(66px, calc(24vw / var(--z, 1)), 108px); letter-spacing: -0.02em; line-height: .86; color: var(--ugalj); }
html.cs-t-papir .cs .cs-hero__name span { font-style: italic; color: var(--tc-big); }
html.cs-t-papir .cs .cs-hero__name span::after { content: "."; }
html.cs-t-papir .cs .cs-hero__role { margin-top: 18px; padding-bottom: 14px; border-bottom: 1px solid var(--ugalj); color: var(--ugalj); font-family: var(--mono); font-size: 11.5px; letter-spacing: .1em; text-transform: uppercase; }
html.cs-t-papir .cs-body { margin-top: 22px; }
html.cs-t-papir .cs .cs-save { height: 56px; border-radius: 0; font-weight: 500; }
html.cs-t-papir .cs .cs-lead { border-width: 1px; border-color: var(--ugalj); border-radius: 0; }
html.cs-t-papir .cs .cs-lead.is-grad { border-color: var(--ugalj); background: transparent; }
html.cs-t-papir .cs-quick { grid-template-columns: minmax(0, 1fr); margin-top: 14px; border-top: 1px solid var(--ugalj); }
html.cs-t-papir .cs-quick a, html.cs-t-papir .cs-quick a + a, html.cs-t-papir .cs-quick a:nth-child(3) {
  flex-direction: row; align-items: baseline; gap: 0; padding: 14px 0; border: 0; border-bottom: 1px solid var(--linija); border-radius: 0; grid-column: auto;
}
html.cs-t-papir .cs-quick a::before, html.cs-t-papir .cs-rows li a::before {
  counter-increment: pn; content: counter(pn, decimal-leading-zero); flex: none; width: 36px; font-family: var(--mono); font-size: 11px; color: var(--grafit);
}
html.cs-t-papir .cs-quick b, html.cs-t-papir .cs-rows span { flex: 1; font-family: var(--serif); font-size: 25px; font-weight: 400; letter-spacing: 0; line-height: 1; color: var(--ugalj); }
html.cs-t-papir .cs-quick small, html.cs-t-papir .cs-rows b { font-size: 14px; font-weight: 400; color: var(--grafit-tamni); text-align: right; }
html.cs-t-papir .cs-rows li a { align-items: baseline; gap: 0; padding: 14px 0; border-top: 0; border-bottom: 1px solid var(--linija); }
html.cs-t-papir .cs-rows li:first-child a { border-top: 1px solid var(--ugalj); }
html.cs-t-papir .cs-rows span { flex: 1; }
html.cs-t-papir .cs-about h2 { font-family: var(--serif); font-size: 36px; font-weight: 400; letter-spacing: -0.01em; }
html.cs-t-papir .cs-about p { font-family: var(--serif); font-size: 21px; line-height: 1.3; color: var(--ugalj); }
html.cs-t-papir .cs-chips li { padding: 7px 14px; border-radius: 0; background: none; box-shadow: inset 0 0 0 1px var(--ugalj); }
html.cs-t-papir .cs-share { border-radius: 0; background: none; box-shadow: inset 0 0 0 1px var(--linija); }
html.cs-t-papir .cs-foot b { font-family: var(--serif); font-size: 17px; font-weight: 400; font-style: italic; }

/* ---------- 02 Monogram: krug u boji sajta sa inicijalima (ili logom), sve na sredini, zaobljena dugmad ---------- */
html.cs-t-monogram .cs .cs-hero { align-items: center; text-align: center; }
html.cs-t-monogram .cs .cs-hero__top { align-self: stretch; justify-content: space-between; }
html.cs-t-monogram .cs .cs-lang, html.cs-t-monogram .cs .cs-hpill { background: var(--pesak); box-shadow: none; color: var(--ugalj); }
html.cs-t-monogram .cs .cs-lang button { color: var(--grafit-tamni); }
html.cs-t-monogram .cs .cs-lang button[aria-pressed="true"] { background: var(--bg); color: var(--tc-ink); }
html.cs-t-monogram .cs .cs-hero__logo { display: none; }
html.cs-t-monogram .cs .cs-mono {
  display: grid; place-items: center; width: 132px; height: 132px; margin: 34px 0 10px; border-radius: 50%; overflow: hidden;
  background: var(--bg); color: var(--tc-ink); font-size: 50px; font-weight: 600; letter-spacing: -0.05em; line-height: 1;
  box-shadow: 0 0 0 12px color-mix(in srgb, var(--tc) 14%, transparent), 0 0 0 24px color-mix(in srgb, var(--tc) 6%, transparent), 0 26px 40px -26px rgba(11, 11, 11, .55);
}
html.cs-t-monogram .cs .cs-mono.has-img { background: #FFFFFF; }
html.cs-t-monogram .cs .cs-mono img { width: 70%; height: 70%; object-fit: contain; }
html.cs-t-monogram .cs .cs-mono.is-tile img { width: 100%; height: 100%; object-fit: cover; }
html.cs-t-monogram .cs .cs-glass { align-items: center; margin-top: 22px; }
html.cs-t-monogram .cs .cs-hero__name { font-size: clamp(32px, calc(9.6vw / var(--z, 1)), 46px); line-height: 1; color: var(--ugalj); }
html.cs-t-monogram .cs .cs-hero__name span { display: inline; }
html.cs-t-monogram .cs .cs-hero__role { margin-top: 8px; font-size: 16px; }
html.cs-t-monogram .cs-body { margin-top: 26px; }
html.cs-t-monogram .cs .cs-save { justify-content: center; gap: 10px; border-radius: 99px; }
html.cs-t-monogram .cs .cs-lead { border-radius: 99px; }
html.cs-t-monogram .cs-quick { gap: 8px; }
html.cs-t-monogram .cs-quick a, html.cs-t-monogram .cs-quick a + a, html.cs-t-monogram .cs-quick a:nth-child(3) { padding: 14px 18px; border: 0; border-radius: 22px; background: var(--pesak); }
html.cs-t-monogram .cs-rows { display: grid; gap: 8px; }
html.cs-t-monogram .cs-rows li a, html.cs-t-monogram .cs-rows li:last-child a { padding: 17px 18px; border: 0; border-radius: 20px; background: var(--pesak); }
html.cs-t-monogram .cs-chips li { background: color-mix(in srgb, var(--tc) 14%, transparent); color: var(--tc-text); font-weight: 500; }
html.cs-t-monogram .cs-share { border-radius: 99px; }

/* ---------- 03 Portret: fotografija preko vrha (bez nje: velika slova u boji sajta), ime na fotografiji ---------- */
html.cs-t-portret .cs { padding-top: 0; }
/* Širina je zadata: sa aspect-ratio i max-height pregledač bi u niskom prozoru (iPhone, okvir na /primer) suzio i širinu,
   pa bi desno ostala tamna traka. Ovako nizak prozor smanjuje samo visinu. */
html.cs-t-portret .cs .cs-hero, html.cs-t-portret .cs .cs-hero.has-logo {
  width: calc(100% + 2 * var(--pad)); margin: 0 calc(-1 * var(--pad)); min-height: 0; aspect-ratio: 4 / 5; max-height: calc(80vh / var(--z, 1)); border-radius: 0 0 28px 28px;
  background: var(--bg); color: #FFFFFF; outline: 0; box-shadow: none;
}
html.cs-t-portret .cs .cs-hero::after {
  content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: linear-gradient(180deg, rgba(0, 0, 0, .3) 0%, rgba(0, 0, 0, 0) 24%, rgba(0, 0, 0, 0) 44%, rgba(0, 0, 0, .74) 100%);
}
html.cs-t-portret .cs .cs-photo { display: block; position: absolute; inset: 0; z-index: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 30%; }
html.cs-t-portret .cs .cs-mono {
  display: grid; place-items: center; position: absolute; inset: 0 0 26%; z-index: 0; color: var(--tc-ink); opacity: .18;
  font-size: min(calc(44vw / var(--z, 1)), 240px); font-weight: 600; letter-spacing: -0.06em; line-height: 1;
}
html.cs-t-portret .cs .cs-hero__logo { display: none; }
html.cs-t-portret .cs .cs-lang, html.cs-t-portret .cs .cs-hpill {
  background: rgba(0, 0, 0, .28); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .22); color: #FFFFFF;
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
}
html.cs-t-portret .cs .cs-lang button { color: rgba(255, 255, 255, .78); }
html.cs-t-portret .cs .cs-lang button[aria-pressed="true"] { background: #FFFFFF; color: #0B0B0B; }
html.cs-t-portret .cs .cs-glass { position: absolute; left: 22px; right: 22px; bottom: 24px; z-index: 2; }
html.cs-t-portret .cs .cs-hero__name { font-size: clamp(44px, calc(14.5vw / var(--z, 1)), 64px); line-height: .9; color: #FFFFFF; }
html.cs-t-portret .cs .cs-hero__role { margin-top: 12px; color: rgba(255, 255, 255, .86); font-weight: 400; }
html.cs-t-portret .cs-body { margin-top: 18px; }
html.cs-t-portret .cs .cs-save, html.cs-t-portret .cs .cs-lead { border-radius: 20px; }
html.cs-t-portret .cs-quick { gap: 8px; }
html.cs-t-portret .cs-quick a, html.cs-t-portret .cs-quick a + a, html.cs-t-portret .cs-quick a:nth-child(3) { border: 0; border-radius: 18px; background: var(--pesak); padding: 14px 16px; }

/* ---------- 04 Terminal: sve u mono slovima, uvek tamno. Boja: akcenat, ili boja sajta (siva i crna → zelena) ---------- */
html.cs-t-terminal {
  --papir: #0C0D0C; --papir-svetli: #121412; --pesak: #151815; --ugalj: #E4EBE0; --grafit: #8A9686; --grafit-tamni: #B9C3B4; --linija: #253025;
  --font: var(--mono); color-scheme: dark;
}
html.cs-t-terminal .cs .cs-hero__top { height: 48px; gap: 12px; border-bottom: 1px dashed var(--linija); }
html.cs-t-terminal .cs .cs-lang { padding: 0; background: none; box-shadow: none; }
html.cs-t-terminal .cs .cs-lang button { min-width: 44px; padding: 0 6px; border-radius: 0; color: var(--grafit); font-weight: 400; letter-spacing: 0; text-transform: lowercase; }
html.cs-t-terminal .cs .cs-lang button[aria-pressed="true"] { background: none; color: var(--tc-term); }
html.cs-t-terminal .cs .cs-lang button[aria-pressed="true"]::before { content: "["; }
html.cs-t-terminal .cs .cs-lang button[aria-pressed="true"]::after { content: "]"; }
html.cs-t-terminal .cs .cs-hero__company { display: block; color: var(--grafit); font-size: 12px; letter-spacing: 0; text-transform: lowercase; }
html.cs-t-terminal .cs .cs-hpill { height: auto; padding: 0; background: none; box-shadow: none; color: var(--tc-term); font-weight: 400; text-transform: lowercase; }
html.cs-t-terminal .cs .cs-hero__logo { display: none; }
html.cs-t-terminal .cs .cs-glass { margin-top: 26px; }
html.cs-t-terminal .cs .cs-glass::before { content: "$ whoami"; position: static; display: block; margin-bottom: 8px; background: none; color: var(--grafit); font-size: 13px; }
html.cs-t-terminal .cs .cs-hero__name { font-size: clamp(34px, calc(11vw / var(--z, 1)), 48px); font-weight: 500; letter-spacing: -0.04em; line-height: 1; color: #F1F5EE; }
html.cs-t-terminal .cs .cs-hero__role { margin-top: 12px; font-size: 14px; color: var(--grafit-tamni); }
html.cs-t-terminal .cs .cs-hero__role::before { content: "# "; color: var(--grafit); }
html.cs-t-terminal .cs-body { margin-top: 24px; }
html.cs-t-terminal .cs .cs-save { height: 54px; border-radius: 6px; background: var(--tc-term); color: #0C0D0C; box-shadow: none; font-size: 15px; font-weight: 500; text-transform: lowercase; }
html.cs-t-terminal .cs .cs-save span::before, html.cs-t-terminal .cs-lead b::before, html.cs-t-terminal .cs-quick b::before { content: "[ "; }
html.cs-t-terminal .cs .cs-save span::after, html.cs-t-terminal .cs-lead b::after, html.cs-t-terminal .cs-quick b::after { content: " ]"; }
html.cs-t-terminal .cs .cs-lead, html.cs-t-terminal .cs .cs-lead.is-grad { height: 56px; border: 1px solid var(--linija); border-radius: 6px; background: none; }
html.cs-t-terminal .cs-lead b, html.cs-t-terminal .cs-quick b { font-size: 15px; font-weight: 500; text-transform: lowercase; }
html.cs-t-terminal .cs-quick { gap: 8px; }
html.cs-t-terminal .cs-quick a, html.cs-t-terminal .cs-quick a + a, html.cs-t-terminal .cs-quick a:nth-child(3) { padding: 12px 14px; border: 1px solid var(--tc-term); border-radius: 6px; color: var(--tc-term); }
html.cs-t-terminal .cs-quick small { font-size: 12.5px; }
html.cs-t-terminal .cs-rows::before { content: "$ cat kontakt.txt"; display: block; padding: 22px 0 6px; color: var(--grafit); font-size: 13px; }
html.cs-t-terminal .cs-rows li a { padding: 14px 2px; border-top: 1px dashed var(--linija); font-size: 14.5px; }
html.cs-t-terminal .cs-rows li:last-child a { border-bottom: 1px dashed var(--linija); }
html.cs-t-terminal .cs-rows span { text-transform: lowercase; }
html.cs-t-terminal .cs-rows b { font-weight: 400; }
html.cs-t-terminal .cs-about h2 { font-size: 18px; font-weight: 500; letter-spacing: 0; }
html.cs-t-terminal .cs-about h2::before { content: "## "; color: var(--tc-term); }
html.cs-t-terminal .cs-about p { font-size: 14.5px; }
html.cs-t-terminal .cs-chips li { padding: 6px 12px; border-radius: 4px; background: none; box-shadow: inset 0 0 0 1px var(--linija); font-size: 13.5px; }
html.cs-t-terminal .cs-share { border: 1px dashed var(--linija); border-radius: 6px; background: none; font-weight: 500; }
html.cs-t-terminal .cs-share:hover { background: var(--pesak); }
html.cs-t-terminal .cs-foot b { color: var(--tc-term); }

/* ---------- 05 Blok: pozadina strane je boja sajta, beli blokovi sa debelim obodom i senkom bez zamućenja ---------- */
html.cs-t-blok body { --bk-ink: #F3F2ED; --bk-sh: #F3F2ED; background: var(--bg); color: var(--bk-ink); }
html.cs-t-blok body.site-light { --bk-ink: #0B0B0B; --bk-sh: #0B0B0B; }
html.cs-t-blok .cs .cs-hero { color: var(--bk-ink); }
html.cs-t-blok .cs .cs-lang, html.cs-t-blok .cs .cs-hpill, html.cs-t-blok .cs .cs-hero > .cs-hero__logo, html.cs-t-blok .cs .cs-lead, html.cs-t-blok .cs-quick a,
html.cs-t-blok .cs-rows, html.cs-t-blok .cs-share, html.cs-t-blok .cs-chips li {
  border: 2px solid #0B0B0B; background: #FFFFFF; color: #0B0B0B; box-shadow: 5px 5px 0 var(--bk-sh);
}
html.cs-t-blok .cs .cs-lang { padding: 0; border-radius: 12px; overflow: hidden; box-shadow: 3px 3px 0 var(--bk-sh); }
html.cs-t-blok .cs .cs-lang button { height: 38px; border-radius: 0; color: #0B0B0B; font-weight: 700; }
html.cs-t-blok .cs .cs-lang button[aria-pressed="true"] { background: #0B0B0B; color: #FFFFFF; }
html.cs-t-blok .cs .cs-hpill { height: 42px; border-radius: 12px; box-shadow: 3px 3px 0 var(--bk-sh); font-family: var(--mono); font-size: 11.5px; letter-spacing: .06em; text-transform: uppercase; }
html.cs-t-blok .cs .cs-hpill:hover { background: #FFFFFF; }
html.cs-t-blok .cs .cs-hero__company { display: none; }
html.cs-t-blok .cs .cs-hero > .cs-hero__logo { position: static; width: 84px; height: 84px; max-width: none; max-height: none; margin-top: 22px; padding: 8px; border-radius: 16px; translate: none; object-fit: contain; aspect-ratio: auto; }
html.cs-t-blok .cs .cs-hero > .cs-hero__logo.is-tile:not(.is-light) { padding: 0; object-fit: cover; }
html.cs-t-blok .cs .cs-hero__name { margin-top: 24px; font-size: clamp(58px, calc(19.5vw / var(--z, 1)), 88px); font-weight: 700; letter-spacing: -0.06em; line-height: .84; color: var(--bk-ink); }
html.cs-t-blok .cs .cs-hero__name span::after { content: "."; }
html.cs-t-blok .cs .cs-hero__role {
  align-self: flex-start; width: fit-content; margin-top: 16px; padding: 7px 14px; border: 2px solid #0B0B0B; border-radius: 18px;
  background: #FFEDBA; color: #0B0B0B; font-size: 15px; font-weight: 600; line-height: 1.3;
}
html.cs-t-blok .cs-body { gap: 14px; margin-top: 26px; }
html.cs-t-blok .cs .cs-save { border: 2px solid #0B0B0B; border-radius: 16px; background: var(--save-bg, #0B0B0B); color: var(--save-ink, #FFFFFF); box-shadow: 5px 5px 0 var(--bk-sh); font-weight: 700; }
html.cs-t-blok body:not(.site-light) .cs .cs-save { border-color: #F3F2ED; }   /* tamna boja sajta: crno dugme dobija svetao obod */
html.cs-t-blok .cs .cs-lead, html.cs-t-blok .cs .cs-lead.is-grad { border-radius: 16px; background: #FFFFFF; }
html.cs-t-blok .cs .cs-lead:hover { background: #FFFFFF; transform: translate(-1px, -1px); }
html.cs-t-blok .cs-lead b { font-weight: 700; }
html.cs-t-blok .cs-lead small { color: #46453F; }
html.cs-t-blok .cs-actions > .cs-quick, html.cs-t-blok .cs-save + .cs-lead { margin-top: 14px; }
html.cs-t-blok .cs-quick { gap: 12px; }
html.cs-t-blok .cs-quick a, html.cs-t-blok .cs-quick a + a, html.cs-t-blok .cs-quick a:nth-child(3) { min-height: 84px; justify-content: space-between; padding: 12px 14px; border: 2px solid #0B0B0B; border-radius: 16px; }
html.cs-t-blok .cs-quick a + a { background: #FFEDBA; }
html.cs-t-blok .cs-quick b { font-size: 18px; font-weight: 700; }
html.cs-t-blok .cs-quick small { color: #46453F; }
html.cs-t-blok .cs-rows { border-radius: 16px; overflow: hidden; }
html.cs-t-blok .cs-rows li a, html.cs-t-blok .cs-rows li:last-child a { padding: 15px 16px; border: 0; border-top: 2px solid #0B0B0B; }
html.cs-t-blok .cs-rows li:first-child a { border-top: 0; }
html.cs-t-blok .cs-rows span { font-family: var(--mono); font-size: 11.5px; letter-spacing: .06em; text-transform: uppercase; color: #0B0B0B; }
html.cs-t-blok .cs-about { color: var(--bk-ink); }
html.cs-t-blok .cs-about h2 { font-size: 30px; font-weight: 700; letter-spacing: -0.05em; }
html.cs-t-blok .cs-about p { color: inherit; opacity: .86; }
html.cs-t-blok .cs-chips li { border-radius: 99px; box-shadow: 3px 3px 0 var(--bk-sh); font-weight: 600; }
html.cs-t-blok .cs-share { border-radius: 16px; }
html.cs-t-blok .cs-share:hover { background: #FFFFFF; }
html.cs-t-blok .cs-foot a, html.cs-t-blok .cs-foot b, html.cs-t-blok .cs-foot a.cs-foot__legal { color: var(--bk-ink); }

/* ---------- Teme na računaru ---------- */
@media (min-width: 860px) {
  html.cs-t-papir .cs .cs-hero, html.cs-t-monogram .cs .cs-hero, html.cs-t-terminal .cs .cs-hero, html.cs-t-blok .cs .cs-hero {
    min-height: 0; max-width: var(--max); margin: 0 auto; padding: 28px max(0px, calc(var(--pad) - (calc(100vw / var(--z, 1)) - var(--max)) / 2)) 0;
  }
  html.cs-t-papir .cs .cs-hero__name { font-size: clamp(110px, calc(11vw / var(--z, 1)), 176px); }
  html.cs-t-papir .cs .cs-hero__name span { display: inline; }
  html.cs-t-monogram .cs .cs-mono { width: 168px; height: 168px; font-size: 64px; }
  html.cs-t-monogram .cs .cs-hero__name { font-size: clamp(52px, calc(5vw / var(--z, 1)), 76px); }
  html.cs-t-terminal .cs .cs-hero__name { font-size: clamp(56px, calc(6vw / var(--z, 1)), 88px); }
  html.cs-t-terminal .cs .cs-hero__name span { display: inline; }
  html.cs-t-blok .cs .cs-hero__name { font-size: clamp(96px, calc(10vw / var(--z, 1)), 160px); }
  html.cs-t-blok .cs .cs-hero__name span { display: inline; }
  html.cs-t-portret .cs .cs-hero, html.cs-t-portret .cs .cs-hero.has-logo { width: auto; margin: 0; aspect-ratio: auto; max-height: none; min-height: clamp(480px, calc(66vh / var(--z, 1)), 680px); border-radius: 0; }
  html.cs-t-portret .cs .cs-glass { left: var(--pad); right: var(--pad); bottom: 56px; }
  html.cs-t-portret .cs .cs-hero__name { font-size: clamp(72px, calc(8vw / var(--z, 1)), 132px); }
  html.cs-t-portret .cs .cs-hero__name span { display: inline; }
  html.cs-t-portret .cs .cs-mono { inset: 0; justify-items: end; padding: 0 var(--pad) 6% 0; opacity: .12; font-size: min(calc(24vw / var(--z, 1)), 360px); }
  html.cs-t-papir .cs-quick a:hover, html.cs-t-terminal .cs-quick a:hover { background: var(--pesak); }
  html.cs-t-blok .cs-quick a:hover { transform: translate(-1px, -1px); }
  html.cs-t-blok .cs-quick a, html.cs-t-blok .cs-quick a + a, html.cs-t-blok .cs-quick a:nth-child(3) { min-height: 0; align-items: baseline; padding: 20px 22px; }
}

/* Ime u prelazu (27. 11. 2026): kad je boja sajta prelaz (html.cs-grad), Papir prezime, a Terminal celo ime pišu
   prelazom; --gl* tamnije boje prelaza za svetlu stranu, --gh* svetlije za tamnu (tema_vars u _lib.php). */
body { --gt1: var(--gl1); --gt2: var(--gl2); --gt3: var(--gl3); }
html.cs-dark body, html.cs-t-terminal body { --gt1: var(--gh1); --gt2: var(--gh2); --gt3: var(--gh3); }
html.cs-grad.cs-t-papir .cs .cs-hero__name span, html.cs-grad.cs-t-terminal .cs .cs-hero__name {
  background: linear-gradient(100deg, var(--gt1), var(--gt2) 55%, var(--gt3)); -webkit-background-clip: text; background-clip: text; color: transparent;
}
