/* ==========================================================================
   ALMINA — komponente
   ========================================================================== */

/* --------------------------------------------------------------------------
   DUGMAD
   -------------------------------------------------------------------------- */

.btn {
  --btn-fg: #fff;
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  padding: 0.95rem 1.6rem;
  font-family: var(--f-body);
  font-size: var(--t-sm);
  font-weight: 600;
  letter-spacing: 0.005em;
  color: var(--btn-fg);
  border: 1px solid transparent;
  overflow: hidden;
  isolation: isolate;
  transition: color 0.35s ease, border-color 0.35s ease, transform 0.4s var(--e-out);
}

.btn svg { flex-shrink: 0; }

.btn__fill {
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(100deg, var(--rust) 0%, var(--ember) 48%, var(--ignition) 100%);
  transform-origin: bottom;
  transition: transform 0.55s var(--e-out);
}

.btn--primary { border-color: transparent; }
.btn--primary:hover .btn__fill { transform: scaleY(1.12); filter: brightness(1.16); }
.btn--primary:hover { transform: translateY(-2px); }

.btn--ghost {
  --btn-fg: var(--zinc-100);
  border-color: var(--rule-hard);
  background: transparent;
}
.btn--ghost .btn__fill { transform: scaleY(0); }
.btn--ghost:hover { --btn-fg: #fff; border-color: transparent; }
.btn--ghost:hover .btn__fill { transform: scaleY(1); }

.section--zinc .btn--ghost { --btn-fg: var(--steel-900); border-color: rgba(28,36,39,.28); }
.section--zinc .btn--ghost:hover { --btn-fg: #fff; }

.btn--sm { padding: 0.65rem 1.1rem; font-size: var(--t-xs); }

/* Tekstualni link sa pomerajućom crticom */
.tlink {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  font-size: var(--t-sm);
  font-weight: 600;
  color: var(--heat);
  transition: gap 0.35s var(--e-out);
}
.tlink i {
  display: block;
  width: 22px;
  height: 1px;
  background: currentColor;
  transition: width 0.35s var(--e-out);
}
.tlink:hover { gap: 1rem; }
.tlink:hover i { width: 34px; }

/* --------------------------------------------------------------------------
   KARTICE
   -------------------------------------------------------------------------- */

.card {
  position: relative;
  border: 1px solid var(--rule);
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.032), rgba(255, 255, 255, 0) 58%);
  padding: clamp(1.35rem, 1rem + 1.2vw, 2rem);
  transition: border-color 0.4s ease, background 0.4s ease, transform 0.5s var(--e-out);
}

.card::before {
  content: "";
  position: absolute;
  top: -1px;
  left: -1px;
  width: 0;
  height: 2px;
  background: var(--ignition);
  transition: width 0.55s var(--e-out);
}

.card:hover { border-color: var(--rule-hard); transform: translateY(-3px); }
.card:hover::before { width: 46px; }

.section--zinc .card {
  background: #fff;
  border-color: rgba(28, 36, 39, 0.14);
}
.section--zinc .card:hover { border-color: rgba(28, 36, 39, 0.3); }

/* --------------------------------------------------------------------------
   PROIZVODI
   -------------------------------------------------------------------------- */

.prod {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
  height: 100%;
}

.prod__figure {
  position: relative;
  aspect-ratio: 16 / 10;
  border: 1px solid var(--rule-soft);
  background:
    linear-gradient(to right, var(--rule-soft) 1px, transparent 1px) 0 0 / 22px 22px,
    linear-gradient(to bottom, var(--rule-soft) 1px, transparent 1px) 0 0 / 22px 22px,
    radial-gradient(ellipse at 50% 120%, rgba(240, 84, 10, 0.09), transparent 62%);
  display: grid;
  place-items: center;
  overflow: hidden;
}

.prod__figure svg {
  width: 78%;
  height: auto;
  transition: transform 0.75s var(--e-out);
}

.prod:hover .prod__figure svg { transform: scale(1.05) rotate(-1.5deg); }

.prod__tag {
  position: absolute;
  top: 0.7rem;
  left: 0.7rem;
  font-family: var(--f-mono);
  font-size: 0.625rem;
  letter-spacing: 0.1em;
  color: var(--fg-faint);
}

.prod__body { flex: 1; display: flex; flex-direction: column; gap: 0.75rem; }
.prod__body p { font-size: var(--t-base); color: var(--fg-dim); }

.prod__specs {
  margin-top: auto;
  padding-top: 1rem;
  border-top: 1px solid var(--rule-soft);
  display: grid;
  gap: 0.4rem;
}

.prod__spec {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  font-family: var(--f-mono);
  font-size: var(--t-xs);
  color: var(--fg-faint);
}
.prod__spec b { font-weight: 500; color: var(--zinc-100); }
.section--zinc .prod__spec b { color: var(--steel-900); }

/* Linija preseka koja se iscrtava */
.draw {
  stroke-dasharray: var(--len, 1200);
  stroke-dashoffset: var(--len, 1200);
  transition: stroke-dashoffset 1.5s var(--e-out);
}
.is-in .draw { stroke-dashoffset: 0; }
.is-in .draw[data-d="1"] { transition-delay: 0.18s; }
.is-in .draw[data-d="2"] { transition-delay: 0.36s; }

@media (prefers-reduced-motion: reduce) {
  .draw { stroke-dashoffset: 0; }
}

/* Kartica programa koja je cela link — strelica u dnu prati hover. */
.prod--link { color: inherit; }

.prod__go {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  margin-top: 0.35rem;
  font-size: var(--t-sm);
  font-weight: 600;
  color: var(--heat);
  transition: gap 0.35s var(--e-out);
}
.prod__go i {
  display: block;
  width: 20px;
  height: 1px;
  background: currentColor;
  transition: width 0.35s var(--e-out);
}
.prod--link:hover .prod__go { gap: 0.9rem; }
.prod--link:hover .prod__go i { width: 30px; }

.prod__grp {
  font-family: var(--f-mono);
  font-size: 0.625rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--fg-faint);
}

/* Grupa u katalogu — naslov sa linijom preko preostale širine */
.cat-grp + .cat-grp { margin-top: clamp(3rem, 2rem + 4vw, 5rem); }

.cat-grp__h {
  display: flex;
  align-items: center;
  gap: 1.15rem;
  font-size: var(--t-xl);
  margin-bottom: clamp(1.5rem, 1rem + 1.5vw, 2.25rem);
}

.cat-grp__h::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--rule);
}

/* --------------------------------------------------------------------------
   PUTANJA (breadcrumb)
   -------------------------------------------------------------------------- */

.crumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1.1rem;
  font-family: var(--f-mono);
  font-size: var(--t-xs);
  letter-spacing: 0.04em;
  color: var(--fg-faint);
}

.crumb a { transition: color 0.25s ease; }
.crumb a:hover { color: var(--heat); }
.crumb span[aria-hidden] { color: var(--steel-600); }
.crumb b { font-weight: 400; color: var(--zinc-200); }

/* --------------------------------------------------------------------------
   ŠTA OBUHVATA — lista sa crticom
   -------------------------------------------------------------------------- */

.incl {
  display: grid;
  gap: 1px;
  background: var(--rule-soft);
  border: 1px solid var(--rule-soft);
}

@media (min-width: 700px)  { .incl { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1160px) { .incl { grid-template-columns: repeat(3, 1fr); } }

.incl__i {
  background: var(--bg);
  padding: clamp(1.15rem, 0.9rem + 1vw, 1.7rem);
  display: grid;
  gap: 0.5rem;
  align-content: start;
  transition: background 0.4s ease;
}
.incl__i:hover { background: var(--steel-900); }
.section--zinc .incl__i { background: var(--zinc-050); }
.section--zinc .incl__i:hover { background: #fff; }

.incl__n {
  font-family: var(--f-mono);
  font-size: var(--t-xs);
  letter-spacing: 0.1em;
  color: var(--heat);
}

.incl__i h4 { font-size: var(--t-base); }
.incl__i p { font-size: var(--t-sm); color: var(--fg-dim); }

/* --------------------------------------------------------------------------
   SPECIFIKACIJA — kad tabela nema smisla (nema opsega, samo parametri)
   -------------------------------------------------------------------------- */

.spec {
  border: 1px solid var(--rule);
  display: grid;
}

.spec__r {
  display: grid;
  gap: 0.2rem 1.5rem;
  padding: 0.95rem clamp(1rem, 2vw, 1.4rem);
  border-bottom: 1px solid var(--rule-soft);
  transition: background 0.25s ease;
}
.spec__r:last-child { border-bottom: none; }
.spec__r:hover { background: rgba(240, 84, 10, 0.05); }

@media (min-width: 620px) {
  .spec__r { grid-template-columns: minmax(0, 13rem) minmax(0, 1fr); align-items: baseline; }
}

.spec__k {
  font-family: var(--f-mono);
  font-size: var(--t-xs);
  letter-spacing: 0.06em;
  color: var(--fg-faint);
}

.spec__v {
  font-family: var(--f-mono);
  font-size: var(--t-sm);
  font-variant-numeric: tabular-nums;
  color: var(--zinc-100);
}
.section--zinc .spec__v { color: var(--steel-900); }

/* --------------------------------------------------------------------------
   VELIKI TEHNIČKI CRTEŽ na stranici proizvoda
   -------------------------------------------------------------------------- */

.figbox {
  border: 1px solid var(--rule);
  background:
    linear-gradient(to right, var(--rule-soft) 1px, transparent 1px) 0 0 / 26px 26px,
    linear-gradient(to bottom, var(--rule-soft) 1px, transparent 1px) 0 0 / 26px 26px,
    radial-gradient(ellipse at 50% 118%, rgba(240, 84, 10, 0.08), transparent 62%);
  padding: clamp(1.25rem, 1rem + 1.5vw, 2.25rem);
  display: grid;
  gap: 1rem;
  align-content: start;
}

.figbox svg { width: 100%; height: auto; }

.figbox__cap {
  padding-top: 0.85rem;
  border-top: 1px solid var(--rule-soft);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.5rem 1rem;
  font-family: var(--f-mono);
  font-size: var(--t-xs);
  color: var(--fg-faint);
}

/* --------------------------------------------------------------------------
   BROJEVI
   -------------------------------------------------------------------------- */

.stats {
  display: grid;
  gap: 1px;
  background: var(--rule-soft);
  border: 1px solid var(--rule-soft);
}

@media (min-width: 560px) { .stats { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 980px) { .stats { grid-template-columns: repeat(4, 1fr); } }

.stat {
  background: var(--bg);
  padding: clamp(1.4rem, 1rem + 1.5vw, 2.2rem);
  display: grid;
  gap: 0.5rem;
  transition: background 0.4s ease;
}
.stat:hover { background: var(--steel-900); }
.section--zinc .stat { background: var(--zinc-050); }
.section--zinc .stat:hover { background: #fff; }

.stat__n {
  font-family: var(--f-display);
  font-weight: 800;
  font-stretch: 118%;
  font-size: clamp(2.1rem, 1.4rem + 2.6vw, 3.35rem);
  line-height: 0.9;
  letter-spacing: -0.035em;
  color: var(--white);
  display: flex;
  align-items: baseline;
  gap: 0.12em;
}
.section--zinc .stat__n { color: var(--steel-950); }
.stat__n sup {
  font-size: 0.36em;
  color: var(--heat);
  font-weight: 600;
  transform: translateY(-0.15em);
}

.stat__k {
  font-size: var(--t-sm);
  color: var(--fg-dim);
  max-width: 26ch;
}

/* --------------------------------------------------------------------------
   PROCES
   -------------------------------------------------------------------------- */

.steps { display: grid; gap: 1px; background: var(--rule-soft); }

@media (min-width: 700px)  { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1080px) { .steps { grid-template-columns: repeat(3, 1fr); } }

.step {
  position: relative;
  background: var(--bg);
  padding: clamp(1.5rem, 1rem + 1.6vw, 2.25rem);
  display: grid;
  gap: 0.9rem;
  align-content: start;
  overflow: hidden;
  transition: background 0.45s ease;
}
.step:hover { background: var(--steel-900); }
.section--zinc .step { background: var(--zinc-050); }
.section--zinc .step:hover { background: #fff; }

.step__n {
  font-family: var(--f-mono);
  font-size: var(--t-xs);
  letter-spacing: 0.1em;
  color: var(--heat);
}

.step__ico {
  width: 46px;
  height: 46px;
  margin-bottom: 0.35rem;
  color: var(--steel-300);
  transition: color 0.4s ease, transform 0.6s var(--e-out);
}
.step:hover .step__ico { color: var(--heat); transform: translateY(-2px); }

.step p { font-size: var(--t-base); color: var(--fg-dim); }

.step__bar {
  position: absolute;
  left: 0;
  bottom: 0;
  height: 2px;
  width: 100%;
  background: var(--ignition);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.6s var(--e-out);
}
.step:hover .step__bar { transform: scaleX(1); }

/* --------------------------------------------------------------------------
   KONFIGURATOR PNK
   -------------------------------------------------------------------------- */

.cfg {
  display: grid;
  gap: 1px;
  background: var(--rule);
  border: 1px solid var(--rule);
}

@media (min-width: 940px) {
  .cfg { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); }
}

.cfg__view {
  background: var(--ink);
  padding: clamp(1.25rem, 1rem + 1.5vw, 2.25rem);
  display: flex;
  flex-direction: column;
  gap: 1rem;
  min-height: 340px;
}

.cfg__viewhead {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  font-family: var(--f-mono);
  font-size: 0.6875rem;
  letter-spacing: 0.1em;
  color: var(--fg-faint);
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--rule-soft);
}

.cfg__canvas {
  flex: 1;
  display: grid;
  place-items: center;
  background:
    linear-gradient(to right, rgba(142,152,153,.07) 1px, transparent 1px) 0 0 / 26px 26px,
    linear-gradient(to bottom, rgba(142,152,153,.07) 1px, transparent 1px) 0 0 / 26px 26px;
}

.cfg__canvas svg { width: 100%; height: auto; max-height: 300px; }

.cfg__panel {
  background: var(--steel-900);
  padding: clamp(1.25rem, 1rem + 1.5vw, 2.25rem);
  display: grid;
  gap: 1.5rem;
  align-content: start;
}

.field { display: grid; gap: 0.7rem; }

.field__label {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  font-size: var(--t-sm);
  color: var(--fg-dim);
}
.field__label b {
  font-family: var(--f-mono);
  font-weight: 500;
  color: var(--heat);
}

.chips { display: flex; flex-wrap: wrap; gap: 0.4rem; }

.chip {
  padding: 0.5rem 0.8rem;
  font-family: var(--f-mono);
  font-size: var(--t-xs);
  color: var(--fg-dim);
  border: 1px solid var(--rule);
  background: transparent;
  transition: all 0.3s ease;
}
.chip:hover { border-color: var(--rule-hard); color: var(--zinc-100); }
.chip[aria-pressed="true"] {
  border-color: var(--ignition);
  background: var(--heat-soft);
  color: var(--heat);
}

.range {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 2px;
  background: var(--rule-hard);
  cursor: pointer;
}
.range::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 18px; height: 18px;
  background: var(--ignition);
  border: 3px solid var(--steel-900);
  box-shadow: 0 0 0 1px var(--ignition);
  cursor: grab;
}
.range::-moz-range-thumb {
  width: 14px; height: 14px;
  background: var(--ignition);
  border: 3px solid var(--steel-900);
  box-shadow: 0 0 0 1px var(--ignition);
  border-radius: 0;
  cursor: grab;
}

.cfg__out {
  border-top: 1px solid var(--rule);
  padding-top: 1.15rem;
  display: grid;
  gap: 0.55rem;
}

.cfg__row {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  font-family: var(--f-mono);
  font-size: var(--t-xs);
  color: var(--fg-faint);
}
.cfg__row b { font-weight: 500; color: var(--zinc-100); }
.cfg__row b.hot { color: var(--heat); }

/* --------------------------------------------------------------------------
   TIMELINE
   -------------------------------------------------------------------------- */

.tl { position: relative; padding-left: 2.15rem; }

.tl::before {
  content: "";
  position: absolute;
  left: 5px;
  top: 8px;
  bottom: 8px;
  width: 1px;
  background: var(--rule);
}

.tl__fill {
  position: absolute;
  left: 5px;
  top: 8px;
  width: 1px;
  height: 0;
  background: linear-gradient(to bottom, var(--ignition), var(--rust));
  box-shadow: 0 0 10px rgba(240, 84, 10, 0.4);
}

.tl__item { position: relative; padding-bottom: clamp(2rem, 4vw, 3.25rem); }
.tl__item:last-child { padding-bottom: 0; }

.tl__item::before {
  content: "";
  position: absolute;
  left: -2.15rem;
  top: 7px;
  width: 11px;
  height: 11px;
  background: var(--bg);
  border: 1px solid var(--rule-hard);
  transform: translateX(0) rotate(45deg);
  transition: border-color 0.4s ease, background 0.4s ease;
}
.section--zinc .tl__item::before { background: var(--zinc-050); }

.tl__item.is-in::before {
  border-color: var(--ignition);
  background: var(--ignition);
}

.tl__y {
  font-family: var(--f-mono);
  font-size: var(--t-sm);
  color: var(--heat);
  margin-bottom: 0.45rem;
}

.tl__item h4 { margin-bottom: 0.5rem; }
.tl__item p { color: var(--fg-dim); font-size: var(--t-base); }

/* --------------------------------------------------------------------------
   TABELA
   -------------------------------------------------------------------------- */

.tbl-wrap {
  overflow-x: auto;
  border: 1px solid var(--rule);
  -webkit-overflow-scrolling: touch;
  /* Bez ovoga grid/flex roditelj ne dozvoljava skupljanje ispod min-content
     pa široka tabela gura celu stranicu u bočni skrol. */
  min-width: 0;
  max-width: 100%;
}

/* Grid/flex stavke po difoltu imaju min-width:auto i ne mogu da se skupe
   ispod min-content — zbog toga široka tabela razvlači celu stranicu. */
.grid > *,
.sec-head > *,
.prod > *,
.split > * { min-width: 0; }

.tbl {
  min-width: 560px;
  font-family: var(--f-mono);
  font-size: var(--t-sm);
  font-variant-numeric: tabular-nums;
}

.tbl th,
.tbl td {
  text-align: left;
  padding: 0.85rem 1.1rem;
  border-bottom: 1px solid var(--rule-soft);
  white-space: nowrap;
}

.tbl thead th {
  font-weight: 500;
  font-size: var(--t-xs);
  letter-spacing: 0.08em;
  color: var(--fg-faint);
  background: rgba(255, 255, 255, 0.025);
  border-bottom-color: var(--rule);
}
.section--zinc .tbl thead th { background: rgba(28, 36, 39, 0.05); }

.tbl tbody tr { transition: background 0.25s ease; }
.tbl tbody tr:hover { background: rgba(240, 84, 10, 0.055); }
.tbl tbody tr:last-child td { border-bottom: none; }
.tbl td { color: var(--fg-dim); }
.tbl td:first-child { color: var(--zinc-100); }
.section--zinc .tbl td:first-child { color: var(--steel-900); }

/* --------------------------------------------------------------------------
   ZAŠTITA POVRŠINE
   -------------------------------------------------------------------------- */

.finish {
  position: relative;
  border: 1px solid var(--rule);
  padding: clamp(1.35rem, 1rem + 1.4vw, 2rem);
  display: grid;
  gap: 1rem;
  align-content: start;
  overflow: hidden;
  transition: border-color 0.4s ease, transform 0.5s var(--e-out);
}
.finish:hover { border-color: var(--rule-hard); transform: translateY(-3px); }

.finish__swatch {
  height: 78px;
  border: 1px solid var(--rule-soft);
  position: relative;
  overflow: hidden;
}
.finish__swatch::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(115deg, transparent 38%, rgba(255,255,255,.28) 48%, transparent 58%);
  transform: translateX(-120%);
  transition: transform 0.9s var(--e-out);
}
.finish:hover .finish__swatch::after { transform: translateX(120%); }

.sw--pl { background: linear-gradient(140deg, #b9c1c3, #7f8a8d 46%, #cfd5d6 74%, #8d9799); }
.sw--tc { background: linear-gradient(140deg, #9aa5a7, #cfd6d7 30%, #737e80 62%, #aab3b4); }
.sw--pf { background: linear-gradient(140deg, #d84400, #8c2000 55%, #f0540a); }

.finish__code {
  font-family: var(--f-mono);
  font-size: var(--t-xs);
  letter-spacing: 0.1em;
  color: var(--heat);
}

.finish ul { display: grid; gap: 0.45rem; }
.finish li {
  position: relative;
  padding-left: 1.05rem;
  font-size: var(--t-sm);
  color: var(--fg-dim);
}
.finish li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.6em;
  width: 5px;
  height: 1px;
  background: var(--steel-400);
}

/* --------------------------------------------------------------------------
   PRIMENE
   -------------------------------------------------------------------------- */

.uses { display: grid; gap: 1px; background: var(--rule-soft); border: 1px solid var(--rule-soft); }
@media (min-width: 640px)  { .uses { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1040px) { .uses { grid-template-columns: repeat(3, 1fr); } }

.use {
  background: var(--bg);
  padding: clamp(1.3rem, 1rem + 1.2vw, 1.9rem);
  display: grid;
  gap: 0.6rem;
  align-content: start;
  transition: background 0.4s ease;
  position: relative;
}
.use:hover { background: var(--steel-900); }
.section--zinc .use { background: var(--zinc-050); }
.section--zinc .use:hover { background: #fff; }

.use__i {
  width: 30px;
  height: 30px;
  color: var(--steel-400);
  margin-bottom: 0.4rem;
  transition: color 0.35s ease;
}
.use:hover .use__i { color: var(--heat); }

.use p { font-size: var(--t-sm); color: var(--fg-dim); }

/* --------------------------------------------------------------------------
   FORMA
   -------------------------------------------------------------------------- */

.form { display: grid; gap: 1.35rem; }

@media (min-width: 660px) { .form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.35rem; } }

.inp { display: grid; gap: 0.5rem; }

.inp label {
  font-size: var(--t-xs);
  letter-spacing: 0.03em;
  color: var(--fg-faint);
}

.inp input,
.inp textarea,
.inp select {
  width: 100%;
  padding: 0.9rem 0;
  font-size: var(--t-base);
  color: var(--white);
  background: transparent;
  border-bottom: 1px solid var(--rule);
  transition: border-color 0.35s ease;
}

.inp select { cursor: pointer; }
.inp select option { background: var(--steel-900); color: var(--fg); }

.inp textarea { resize: vertical; min-height: 110px; }

.inp input:focus,
.inp textarea:focus,
.inp select:focus {
  outline: none;
  border-bottom-color: var(--ignition);
}

.inp input::placeholder,
.inp textarea::placeholder { color: var(--fg-faint); }

.form__note {
  font-size: var(--t-xs);
  color: var(--fg-faint);
  max-width: 52ch;
}

.form__msg {
  font-size: var(--t-sm);
  padding: 0.85rem 1.1rem;
  border: 1px solid var(--heat-line);
  background: var(--heat-soft);
  color: var(--heat);
}

/* --------------------------------------------------------------------------
   KONTAKT
   -------------------------------------------------------------------------- */

.ctc { display: grid; gap: 1.5rem; }

.ctc__block {
  padding-bottom: 1.35rem;
  border-bottom: 1px solid var(--rule-soft);
}
.ctc__block:last-child { border-bottom: none; padding-bottom: 0; }

.ctc__k {
  font-family: var(--f-mono);
  font-size: 0.6875rem;
  letter-spacing: 0.14em;
  color: var(--fg-faint);
  margin-bottom: 0.5rem;
}

.ctc__v {
  font-size: var(--t-md);
  color: var(--white);
  display: grid;
  gap: 0.2rem;
}
.ctc__v a { transition: color 0.25s ease; }
.ctc__v a:hover { color: var(--heat); }

.map-frame {
  border: 1px solid var(--rule);
  overflow: hidden;
  aspect-ratio: 16 / 11;
  filter: grayscale(1) contrast(1.05) brightness(0.82);
  transition: filter 0.6s ease;
}
.map-frame:hover { filter: grayscale(0.25) contrast(1) brightness(0.95); }
.map-frame iframe { width: 100%; height: 100%; border: 0; display: block; }

/* --------------------------------------------------------------------------
   CTA BLOK
   -------------------------------------------------------------------------- */

.cta-block {
  position: relative;
  border: 1px solid var(--rule);
  padding: clamp(2rem, 1.5rem + 3vw, 4rem);
  overflow: hidden;
  background: linear-gradient(140deg, rgba(216, 60, 0, 0.1), rgba(255, 255, 255, 0.015) 52%);
}

.cta-block__glow {
  position: absolute;
  top: -40%;
  right: -10%;
  width: 480px;
  aspect-ratio: 1;
  background: radial-gradient(circle, rgba(240, 84, 10, 0.2), transparent 64%);
  pointer-events: none;
}

.cta-block__in {
  position: relative;
  display: grid;
  gap: 1.75rem;
}
@media (min-width: 900px) {
  .cta-block__in {
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 3rem;
  }
}

/* ==========================================================================
   PLUTAJUĆI ALATI — dole levo i dole desno, u istoj liniji
   ========================================================================== */

:root { --dock-b: 22px; --dock-x: 18px; --dock-size: 54px; }
@media (min-width: 720px) { :root { --dock-b: 28px; --dock-x: 28px; --dock-size: 58px; } }

/* --------- BACK TO TOP (dole desno) --------- */

.totop {
  position: fixed;
  right: var(--dock-x);
  bottom: var(--dock-b);
  z-index: 96;
  width: var(--dock-size);
  height: var(--dock-size);
  display: grid;
  place-items: center;
  background: rgba(20, 26, 28, 0.9);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--rule);
  color: var(--zinc-100);
  opacity: 0;
  visibility: hidden;
  transform: translateY(14px) scale(0.92);
  transition: opacity 0.45s var(--e-out), transform 0.5s var(--e-out),
              visibility 0.45s, border-color 0.3s ease, color 0.3s ease;
}

.totop.is-on { opacity: 1; visibility: visible; transform: none; }
.totop:hover { border-color: var(--ignition); color: var(--heat); }

.totop svg { position: relative; z-index: 2; transition: transform 0.4s var(--e-out); }
.totop:hover svg { transform: translateY(-3px); }

/* prsten napretka */
.totop__ring {
  position: absolute;
  inset: -1px;
  pointer-events: none;
}
.totop__ring circle {
  fill: none;
  stroke: var(--ignition);
  stroke-width: 1.5;
  stroke-dasharray: var(--c, 220);
  stroke-dashoffset: var(--c, 220);
  transform: rotate(-90deg);
  transform-origin: 50% 50%;
}

/* --------- AI ASISTENT (dole levo) --------- */

.aibot {
  position: fixed;
  left: var(--dock-x);
  bottom: var(--dock-b);
  z-index: 97;
}

.aibot__fab {
  position: relative;
  width: var(--dock-size);
  height: var(--dock-size);
  display: grid;
  place-items: center;
  background: linear-gradient(140deg, var(--rust), var(--ember) 55%, var(--ignition));
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: #fff;
  box-shadow: 0 8px 26px -8px rgba(240, 84, 10, 0.6);
  transition: transform 0.45s var(--e-snap), box-shadow 0.4s ease;
}

.aibot__fab:hover { transform: translateY(-3px) scale(1.04); box-shadow: 0 12px 32px -8px rgba(240, 84, 10, 0.75); }

.aibot__fab svg { transition: transform 0.4s var(--e-out), opacity 0.25s ease; }
.aibot__fab .ico-x { position: absolute; opacity: 0; transform: rotate(-90deg) scale(0.6); }

.aibot.is-open .aibot__fab .ico-chat { opacity: 0; transform: rotate(90deg) scale(0.6); }
.aibot.is-open .aibot__fab .ico-x { opacity: 1; transform: none; }

.aibot__pulse {
  position: absolute;
  inset: 0;
  border: 1px solid var(--ignition);
  opacity: 0;
  animation: fabpulse 3.4s ease-out infinite;
  pointer-events: none;
}
.aibot.is-open .aibot__pulse { animation: none; }

@keyframes fabpulse {
  0%   { opacity: 0.7; transform: scale(1); }
  70%  { opacity: 0;   transform: scale(1.5); }
  100% { opacity: 0;   transform: scale(1.5); }
}

.aibot__dot {
  position: absolute;
  top: -2px;
  right: -2px;
  width: 11px;
  height: 11px;
  background: var(--heat);
  border: 2px solid var(--steel-950);
  border-radius: 50%;
}
.aibot.is-open .aibot__dot,
.aibot.is-seen .aibot__dot { display: none; }

/* prozor */
.aibot__win {
  position: absolute;
  left: 0;
  bottom: calc(var(--dock-size) + 14px);
  width: min(378px, calc(100vw - 2 * var(--dock-x)));
  height: min(540px, calc(100svh - var(--dock-size) - 2 * var(--dock-b) - 26px));
  display: flex;
  flex-direction: column;
  background: rgba(12, 16, 17, 0.97);
  backdrop-filter: blur(22px);
  -webkit-backdrop-filter: blur(22px);
  border: 1px solid var(--rule);
  box-shadow: 0 30px 70px -22px rgba(0, 0, 0, 0.85);
  transform-origin: bottom left;
  opacity: 0;
  visibility: hidden;
  transform: translateY(14px) scale(0.94);
  transition: opacity 0.4s var(--e-out), transform 0.5s var(--e-out), visibility 0.4s;
}

.aibot.is-open .aibot__win {
  opacity: 1;
  visibility: visible;
  transform: none;
}

.aibot__head {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  padding: 0.9rem 1rem;
  border-bottom: 1px solid var(--rule);
  background: linear-gradient(100deg, rgba(216, 60, 0, 0.14), transparent 70%);
  flex-shrink: 0;
}

.aibot__avatar {
  width: 34px;
  height: 34px;
  flex-shrink: 0;
  display: grid;
  place-items: center;
  border: 1px solid var(--heat-line);
  background: var(--heat-soft);
}
.aibot__avatar img { width: 17px; height: auto; }

.aibot__id { flex: 1; min-width: 0; }
.aibot__id b {
  display: block;
  font-family: var(--f-display);
  font-stretch: 108%;
  font-weight: 700;
  font-size: 0.9375rem;
  letter-spacing: -0.012em;
  color: #fff;
  line-height: 1.15;
}
.aibot__id span {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-family: var(--f-mono);
  font-size: 0.625rem;
  letter-spacing: 0.05em;
  color: var(--fg-faint);
}
.aibot__id span::before {
  content: "";
  width: 5px; height: 5px;
  border-radius: 50%;
  background: #46c26a;
  box-shadow: 0 0 6px #46c26a;
}

.aibot__reset {
  width: 30px; height: 30px;
  display: grid; place-items: center;
  color: var(--fg-faint);
  border: 1px solid transparent;
  transition: color 0.25s ease, border-color 0.25s ease;
}
.aibot__reset:hover { color: var(--heat); border-color: var(--rule); }

.aibot__log {
  flex: 1;
  overflow-y: auto;
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  scrollbar-width: thin;
  scrollbar-color: var(--steel-600) transparent;
}
.aibot__log::-webkit-scrollbar { width: 5px; }
.aibot__log::-webkit-scrollbar-thumb { background: var(--steel-600); }

.msg {
  max-width: 88%;
  padding: 0.7rem 0.9rem;
  font-size: 0.875rem;
  line-height: 1.5;
  animation: msg-in 0.42s var(--e-out) both;
}

@keyframes msg-in {
  from { opacity: 0; transform: translateY(9px); }
  to   { opacity: 1; transform: none; }
}

.msg--bot {
  align-self: flex-start;
  background: var(--steel-850);
  border: 1px solid var(--rule-soft);
  border-left: 2px solid var(--ember);
  color: var(--fg);
}

.msg--me {
  align-self: flex-end;
  background: linear-gradient(135deg, var(--rust), var(--ember));
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.msg b { font-weight: 600; color: #fff; }
.msg a { color: var(--heat); border-bottom: 1px solid var(--heat-line); }
.msg ul { display: grid; gap: 0.3rem; margin-top: 0.45rem; }
.msg li { position: relative; padding-left: 0.85rem; }
.msg li::before {
  content: "";
  position: absolute;
  left: 0; top: 0.62em;
  width: 4px; height: 1px;
  background: var(--heat);
}
.msg .mono {
  font-family: var(--f-mono);
  font-size: 0.8125rem;
  color: var(--heat);
}

.msg--typing {
  display: flex;
  gap: 4px;
  align-items: center;
  padding: 0.9rem;
}
.msg--typing i {
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--steel-300);
  animation: dot 1.15s ease-in-out infinite;
}
.msg--typing i:nth-child(2) { animation-delay: 0.16s; }
.msg--typing i:nth-child(3) { animation-delay: 0.32s; }

@keyframes dot {
  0%, 60%, 100% { opacity: 0.28; transform: translateY(0); }
  30%           { opacity: 1;    transform: translateY(-4px); }
}

.aibot__chips {
  display: flex;
  gap: 0.4rem;
  padding: 0 1rem 0.75rem;
  overflow-x: auto;
  scrollbar-width: none;
  flex-shrink: 0;
}
.aibot__chips::-webkit-scrollbar { display: none; }

.aibot__chip {
  flex-shrink: 0;
  padding: 0.42rem 0.75rem;
  font-size: 0.75rem;
  color: var(--fg-dim);
  border: 1px solid var(--rule);
  white-space: nowrap;
  transition: all 0.25s ease;
}
.aibot__chip:hover {
  border-color: var(--ignition);
  color: var(--heat);
  background: var(--heat-soft);
}

.aibot__form {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.7rem 0.7rem 0.7rem 1rem;
  border-top: 1px solid var(--rule);
  flex-shrink: 0;
}

.aibot__form input {
  flex: 1;
  min-width: 0;
  font-size: 0.875rem;
  color: #fff;
  padding-block: 0.4rem;
}
.aibot__form input::placeholder { color: var(--fg-faint); }
.aibot__form input:focus { outline: none; }

.aibot__send {
  width: 38px;
  height: 38px;
  flex-shrink: 0;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, var(--ember), var(--ignition));
  color: #fff;
  transition: transform 0.3s var(--e-snap), filter 0.3s ease, opacity 0.3s ease;
}
.aibot__send:hover { transform: scale(1.07); filter: brightness(1.12); }
.aibot__send:disabled { opacity: 0.35; cursor: not-allowed; transform: none; }

.aibot__foot {
  padding: 0 1rem 0.7rem;
  font-family: var(--f-mono);
  font-size: 0.5625rem;
  letter-spacing: 0.06em;
  color: var(--fg-faint);
  text-align: center;
  flex-shrink: 0;
}

@media (max-width: 400px) {
  .aibot__win { width: calc(100vw - 2 * var(--dock-x)); }
}

/* --------------------------------------------------------------------------
   404
   -------------------------------------------------------------------------- */

.nf {
  min-height: 100svh;
  display: grid;
  place-items: center;
  text-align: center;
  padding: calc(var(--nav-h) + 3rem) var(--gut) 4rem;
}

.nf__code {
  font-family: var(--f-display);
  font-weight: 800;
  font-stretch: 125%;
  font-size: clamp(5rem, 22vw, 15rem);
  line-height: 0.8;
  letter-spacing: -0.05em;
  color: transparent;
  -webkit-text-stroke: 1px var(--rule-hard);
  margin-bottom: 1.5rem;
}

/* Dok je mobilni meni otvoren, dokovana dugmad se sklanjaju da ne bi
   prekrivala kontakt podatke u podnožju fioke. */
body.is-locked .aibot,
body.is-locked .totop {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.2s var(--ease), visibility 0.2s var(--ease);
}
