/* 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(--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(--bg));   /* akcenat iz loga, ako je izabran */
  color: var(--save-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 { color: var(--save-ink, #F3F2ED); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .09); }
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; }
