/* =========================================================================
   Crypto Code — custom stylesheet
   Redosled: tokeni → reset → tipografija → layout → komponente → sekcije →
   footer → responsive.
   ========================================================================= */

/* -------------------------------------------------- 1. Tokeni */
:root {
  --bg:            #121218;
  --bg-elev:       #1c1c28;
  --surface:       #2c2c3d;
  --surface-soft:  rgba(255, 255, 255, .04);
  --accent:        #b542c7;
  --accent-soft:   rgba(181, 66, 199, .18);
  --accent-glow:   rgba(181, 66, 199, .45);

  --text:          #bdb4bf;
  --text-soft:     #cdcdcd;
  --text-mute:     #b5b4a3;
  --heading:       #f7f7f7;
  --heading-pure:  #ffffff;

  --border:        rgba(255, 255, 255, .1);
  --border-soft:   rgba(255, 255, 255, .06);

  --font-head: 'Rethink Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-body: 'Manrope', system-ui, -apple-system, 'Segoe UI', sans-serif;

  --container:  1140px;
  --container-wide: 1325px;
  --gutter:     20px;
  --radius:     10px;
  --radius-lg:  30px;
  --radius-pill: 50px;

  --header-h:   92px;
  --header-gap: 30px;

  --ease: cubic-bezier(.22, .61, .36, 1);
}

/* -------------------------------------------------- 2. Reset */
*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  /* Fiksni header ne sme da prekrije odredište #anchor linka. */
  scroll-padding-top: calc(var(--header-h) + var(--header-gap) + 20px);
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 28px;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img, svg, video { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
ul, ol { margin: 0; padding: 0; list-style: none; }
p { margin: 0 0 16px; }
p:last-child { margin-bottom: 0; }

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}

.visually-hidden {
  position: absolute; width: 1px; height: 1px;
  margin: -1px; padding: 0; overflow: hidden;
  clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap;
}

.skip-link {
  position: absolute; left: 50%; top: 8px; z-index: 100000;
  transform: translate(-50%, -200%);
  padding: 10px 18px; border-radius: var(--radius-pill);
  background: var(--accent); color: #fff; font-weight: 600;
  transition: transform .2s var(--ease);
}
.skip-link:focus { transform: translate(-50%, 0); }

/* -------------------------------------------------- 3. Tipografija */
h1, h2, h3, h4, h5, h6 {
  margin: 0 0 16px;
  font-family: var(--font-head);
  font-weight: 600;
  color: var(--heading-pure);
}

h1 { font-size: clamp(40px, 5.2vw, 75px); line-height: 1.13; }
h2 { font-size: clamp(30px, 3.4vw, 48px); line-height: 1.2; color: var(--heading); }
h3 { font-size: clamp(22px, 2vw, 28px); line-height: 1.28; }
h4 { font-size: clamp(21px, 1.9vw, 28px); line-height: 1.15; color: var(--heading); }
h5 { font-size: clamp(30px, 3.4vw, 50px); line-height: 1.2; letter-spacing: 1px; }

.eyebrow {
  position: relative;
  margin: 0 0 12px;
  padding-left: 35px;
  font-family: var(--font-head);
  font-size: 17px;
  font-weight: 400;
  line-height: 20px;
  color: var(--text-mute);
}
/* Ikonica oka: zarotirani "list" + zenica, isto kao na originalu. */
.eyebrow::before,
.eyebrow::after {
  content: '';
  position: absolute;
  border: 2px solid var(--accent);
}
.eyebrow::before {
  left: 0; top: 40%;
  width: 17px; height: 17px;
  border-radius: 50% 0;
  transform: rotate(45deg) translateY(-50%);
}
.eyebrow::after {
  left: 15px; top: 50%;
  width: 5px; height: 5px;
  border-radius: 50%;
  transform: translateY(-50%);
}
/* U centriranim zaglavljima ikonica mora da ostane uz tekst, a ne uz levu
   ivicu bloka — zato inline-block. */
.eyebrow--center,
.section-head--center .eyebrow,
.page-hero .eyebrow { display: inline-block; text-align: left; }

/* Isto oko, ali kao samostalna ikonica (dugmad, kartice u herou). */
.eye {
  position: relative;
  display: inline-block;
  width: 16px; height: 16px;
  flex: none;
}
.eye::before,
.eye::after {
  content: '';
  position: absolute;
  border: 2px solid currentColor;
}
.eye::before {
  inset: 0;
  border-radius: 50% 0;
  transform: rotate(45deg);
}
.eye::after {
  left: 5px; top: 5px;
  width: 2px; height: 2px;
  border-radius: 50%;
}

.lead { font-size: 18px; line-height: 32px; }

/* -------------------------------------------------- 4. Layout */
.container {
  width: 100%;
  max-width: calc(var(--container) + var(--gutter) * 2);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.container--wide { max-width: calc(var(--container-wide) + var(--gutter) * 2); }

.section { padding: 120px 0; position: relative; }
.section--tight { padding: 80px 0; }
.section--flush-top { padding-top: 0; }

.section-head { max-width: 690px; }
.section-head--center { margin-inline: auto; text-align: center; }
.section-title { margin-bottom: 0; }

/* -------------------------------------------------- 5. Dugmad */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 14px 28px;
  border-radius: var(--radius-pill);
  font-family: var(--font-head);
  font-size: 15px;
  font-weight: 600;
  line-height: 1;
  text-transform: uppercase;
  white-space: nowrap;
  transition: background-color .25s var(--ease), transform .25s var(--ease), box-shadow .25s var(--ease);
}
/* Ikonica oka ide direktno na dugme, bez kružnice iza. */
.btn__icon {
  display: inline-grid;
  place-items: center;
  margin-left: -4px;
  color: currentColor;
}
.btn__icon .eye { width: 20px; height: 20px; }
.btn__icon .eye::after { left: 7px; top: 7px; }
.btn--primary { background: var(--accent); color: #fff; }
.btn--primary:hover {
  background: #c556d6;
  transform: translateY(-2px);
  box-shadow: 0 12px 28px -10px var(--accent-glow);
}
.btn--ghost {
  background: transparent;
  color: #fff;
  border: 1px solid var(--border);
}
.btn--ghost:hover { background: var(--surface-soft); border-color: var(--accent); }

/* -------------------------------------------------- 6. Loader */
/* Providan, zamućen sloj preko strane dok se učitava — sadržaj se nazire
   iza njega. Logo u sredini, oko njega ljubičasti prsten koji se vrti.
   Na kraju se zamućenje izoštri dok sloj nestaje. */
.page-loader {
  position: fixed; inset: 0; z-index: 99999;
  display: grid; place-items: center;
  background: rgba(18, 18, 24, .5);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
  backdrop-filter: blur(16px) saturate(140%);
  transition: opacity .5s var(--ease), visibility .5s var(--ease),
              -webkit-backdrop-filter .5s var(--ease), backdrop-filter .5s var(--ease);
}
.page-loader__mark {
  position: relative;
  display: grid; place-items: center;
  width: 150px; height: 150px;
}
/* Mek sjaj iza logoa. */
.page-loader__mark::before {
  content: '';
  position: absolute; inset: -34px;
  border-radius: 50%;
  background: radial-gradient(closest-side, var(--accent-glow), transparent);
  animation: loader-glow 1.8s ease-in-out infinite;
}
/* Prsten: tanka svetla linija + ljubičasti luk koji kruži. */
.page-loader__mark::after {
  content: '';
  position: absolute; inset: 0;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, .1);
  border-top-color: var(--accent);
  border-right-color: var(--accent);
  animation: loader-spin 1.1s linear infinite;
}
.page-loader img {
  position: relative;
  width: 110px; height: 110px;
  border-radius: 50%;
  box-shadow: 0 10px 40px -8px rgba(0, 0, 0, .6);
  animation: loader-pulse 1.8s ease-in-out infinite;
}
.page-loader.is-done {
  opacity: 0; visibility: hidden;
  -webkit-backdrop-filter: blur(0); backdrop-filter: blur(0);
}

@keyframes loader-spin { to { transform: rotate(360deg); } }
@keyframes loader-pulse {
  0%, 100% { transform: scale(1); }
  50%      { transform: scale(.94); }
}
@keyframes loader-glow {
  0%, 100% { opacity: .55; }
  50%      { opacity: 1; }
}

/* -------------------------------------------------- 7. Header */
.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 100;
  padding: var(--header-gap);
  transition: padding .3s var(--ease);
}
.site-header.is-stuck { padding-top: 12px; padding-bottom: 12px; }

.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  height: var(--header-h);
  padding: 0 30px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: rgba(18, 18, 24, .82);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: background-color .3s var(--ease), box-shadow .3s var(--ease);
}
.site-header.is-stuck .navbar {
  background: rgba(18, 18, 24, .96);
  box-shadow: 0 18px 40px -24px rgba(0, 0, 0, .9);
}

.navbar__brand img { width: 185px; max-width: 185px; height: auto; }

.navbar__nav { flex: 1; display: flex; justify-content: center; }

.menu { display: flex; align-items: center; gap: 28px; }
.menu__item { position: relative; }
.menu__item > a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: var(--header-h);
  font-family: var(--font-head);
  font-size: 14px;
  font-weight: 600;
  color: #fff;
  text-transform: uppercase;
  letter-spacing: .2px;
  transition: color .2s var(--ease);
}
.menu__item > a:hover,
.menu__item.is-current > a { color: var(--accent); }
.menu__caret { display: inline-flex; transition: transform .25s var(--ease); }
.menu__item--has-children:hover .menu__caret { transform: rotate(180deg); }

.submenu {
  position: absolute;
  top: 100%; left: -18px;
  width: 284px;
  padding: 10px 5px 13px;
  border-radius: 0 0 15px 15px;
  background: var(--bg-elev);
  box-shadow: 11px 10px 38px 0 rgba(0, 0, 0, .17);
  opacity: 0; visibility: hidden;
  transform: translateY(10px);
  transition: opacity .25s var(--ease), transform .25s var(--ease), visibility .25s;
}
.menu__item--has-children:hover > .submenu,
.menu__item--has-children:focus-within > .submenu {
  opacity: 1; visibility: visible; transform: translateY(0);
}
.submenu a {
  display: block;
  padding: 9px 20px 8px 18px;
  border-radius: 8px;
  font-family: var(--font-head);
  font-size: 14px;
  font-weight: 600;
  line-height: 1.3;
  color: #fff;
  text-transform: uppercase;
  transition: background-color .2s var(--ease), color .2s var(--ease);
}
.submenu a:hover { background: var(--surface); color: var(--accent); }
.submenu li.is-current > a { color: var(--accent); }

.navbar__actions { display: flex; align-items: center; gap: 14px; }

/* Izbor jezika (EN / SR) pored dugmeta za prijavu. */
.lang-switch {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  padding: 4px;
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, .03);
}
.lang-switch a {
  display: grid;
  place-items: center;
  min-width: 40px;
  height: 36px;
  padding: 0 10px;
  border-radius: var(--radius-pill);
  font-family: var(--font-head);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .6px;
  color: var(--text-soft);
  transition: background-color .2s var(--ease), color .2s var(--ease);
}
.lang-switch a:hover { color: #fff; background: var(--surface-soft); }
.lang-switch a[aria-current="true"] { background: var(--accent); color: #fff; }

.navbar__toggle { display: none; padding: 6px; color: #fff; }
.navbar__toggle-close { display: none; }
.navbar__toggle[aria-expanded="true"] .navbar__toggle-open { display: none; }
.navbar__toggle[aria-expanded="true"] .navbar__toggle-close { display: block; }

/* -------------------------------------------------- 8. Mobilni meni */
.mobile-menu {
  position: fixed;
  inset: calc(var(--header-h) + var(--header-gap) + 8px) var(--header-gap) auto;
  z-index: 99;
  max-height: calc(100vh - var(--header-h) - var(--header-gap) * 2 - 20px);
  overflow-y: auto;
  padding: 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: rgba(18, 18, 24, .98);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
.mobile-menu__list > li + li { border-top: 1px solid var(--border-soft); }
.mobile-menu__list a,
.mobile-menu__toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 14px 10px;
  font-family: var(--font-head);
  font-size: 15px;
  font-weight: 600;
  color: #fff;
  text-transform: uppercase;
  text-align: left;
}
.mobile-menu__caret { display: inline-flex; transition: transform .25s var(--ease); }
.mobile-menu__toggle[aria-expanded="true"] .mobile-menu__caret { transform: rotate(180deg); }
.mobile-menu__sub { padding: 0 0 8px 14px; }
.mobile-menu__sub a { padding: 10px; font-size: 14px; color: var(--text-soft); text-transform: none; }
.mobile-menu__cta { justify-content: center; margin-top: 12px; color: #fff !important; }

/* -------------------------------------------------- 9. Hero (naslovna) */
.hero {
  position: relative;
  min-height: 100vh;
  display: grid;
  align-items: center;
  overflow: hidden;
  background: #100a08 url(../img/slider-bg-image-1.webp) center/cover no-repeat;
}
.hero::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(18, 18, 24, .55) 0%, rgba(18, 18, 24, .15) 40%, var(--bg) 100%);
}
.hero__inner {
  position: relative; z-index: 2;
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  align-items: center;
  gap: 40px;
  padding-top: calc(var(--header-h) + 80px);
  padding-bottom: 100px;
}
.hero__title { margin-bottom: 34px; }

.hero__media { position: relative; justify-self: center; width: 100%; max-width: 640px; }
.hero__product {
  width: min(420px, 66%);
  margin: 0 auto 0 0;
  filter: drop-shadow(0 40px 80px rgba(181, 66, 199, .35));
  animation: float 7s ease-in-out infinite;
}

/* Oznake oko katanca: tačka na katancu, linija do natpisa, crta ispod. */
.hero__callout {
  position: absolute;
  margin: 0;
  padding-bottom: 6px;
  padding-left: 92px;
  border-bottom: 1px solid var(--accent);
  font-size: 15px;
  line-height: 1.3;
  color: #fff;
  white-space: nowrap;
}
.hero__callout::before {
  content: '';
  position: absolute;
  left: 4px; bottom: -1px;
  width: 88px; height: 1px;
  background: var(--accent);
}
.hero__dot {
  position: absolute;
  left: 0; bottom: -4px;
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 10px 2px var(--accent-glow);
}
.hero__callout--top    { top: 13%; left: 52%; }
.hero__callout--bottom { top: 63%; left: 46%; }

.hero__card {
  position: absolute;
  top: 25%; right: 0;
  width: 210px;
  padding: 22px 18px 20px;
  border: 1px solid var(--border);
  border-radius: 18px;
  background: rgba(18, 18, 24, .55);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  text-align: center;
}
.hero__card img { width: 66px; height: 66px; margin: 0 auto 14px; }
.hero__card span { font-size: 16px; line-height: 26px; color: #fff; }

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-18px); }
}

/* -------------------------------------------------- 10. Hero (proizvod) */
.product-hero {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: 860px;
  padding: calc(var(--header-h) + 120px) 0 130px;
  overflow: hidden;
  background: var(--bg);
}
/* Apstraktna pozadina iz teme, ista kao na originalnim stranicama proizvoda. */
.product-hero::before {
  content: '';
  position: absolute; inset: 0;
  background: url(../img/home-3-bg-1.webp) center/cover no-repeat;
}
.product-hero__glow {
  position: absolute; inset: 0;
  background: radial-gradient(58% 55% at 50% 45%, rgba(181, 66, 199, .26) 0%, transparent 72%);
}
/* Grafika sa štitovima stoji centrirana; naziv u traci prelazi preko nje. */
/* Centriranje ide preko auto margina, ne preko translateX — `float` animacija
   piše u transform i pregazila bi ga. */
.product-hero__art {
  position: absolute;
  top: 156px; left: 0; right: 0;
  width: min(683px, 62vw);
  margin-inline: auto;
  filter: drop-shadow(0 30px 70px rgba(181, 66, 199, .35));
  animation: float 8s ease-in-out infinite;
}
.product-hero .marquee { position: relative; z-index: 2; }

/* -------------------------------------------------- 11. Hero (softver) */
/* Zvezdano nebo iz teme, naslov centriran, u sredini rotirajući štit, levo
   uvodni tekst, desno brojači, a pri dnu svetleći disk. */
.software-hero {
  position: relative;
  padding: calc(var(--header-h) + 120px) 0 0;
  overflow: hidden;
  background: #070509 url(../img/home-4-bg-1.webp) center/cover no-repeat;
}
.software-hero__inner { position: relative; z-index: 2; }
.software-hero__head { text-align: center; margin-bottom: 40px; }
.software-hero__title { margin: 0; }

.software-hero__row {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  align-items: center;
  gap: 20px;
  min-height: 380px;
}
.software-hero__lead {
  max-width: 340px;
  font-family: var(--font-head);
  font-size: 20px;
  font-weight: 600;
  line-height: 32px;
  color: var(--heading);
}
.software-hero__emblem { display: grid; place-items: center; }
.software-hero__emblem img {
  width: min(315px, 100%);
  animation: rotate-y 9s linear infinite;
}
@keyframes rotate-y {
  from { transform: perspective(900px) rotateY(0deg); }
  to   { transform: perspective(900px) rotateY(360deg); }
}
.software-hero__disc {
  position: relative;
  /* Slika je 904px — ne razvlači se preko svoje rezolucije. */
  width: min(100%, 904px);
  margin-inline: auto;
  margin-top: -20px;
  pointer-events: none;
}

.stats { display: grid; gap: 20px; justify-items: stretch; }
.stat {
  padding: 30px;
  border-radius: var(--radius-lg);
  background: rgba(28, 28, 40, .48);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  text-align: center;
}
.stat__label {
  margin: 0 0 6px;
  font-size: 24px;
  font-weight: 600;
  letter-spacing: normal;
  color: #fff;
}
.stat__num {
  margin: 0;
  font-size: 60px;
  line-height: 1.1;
  color: var(--accent);
}

/* -------------------------------------------------- 12. Marquee */
.marquee {
  --marquee-duration: 26s;
  position: relative;
  display: flex;
  overflow: hidden;
  user-select: none;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
          mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
}
.marquee__track { display: flex; width: max-content; animation: marquee var(--marquee-duration) linear infinite; }
.marquee__group { display: flex; align-items: center; gap: 34px; padding-right: 34px; }
.marquee__cell { display: flex; align-items: center; gap: 15px; }
.marquee__icon { display: inline-flex; color: var(--accent); }
.marquee__icon svg { width: 46px; height: 46px; }
.marquee__item {
  margin: 0;
  font-size: 50px;
  line-height: 1.2;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--heading-pure);
  white-space: nowrap;
}
.marquee__dot {
  width: 12px; height: 12px;
  border-radius: 50%;
  background: var(--accent);
  flex: none;
}
.marquee:hover .marquee__track { animation-play-state: paused; }

.marquee--hero { --marquee-duration: 34s; }
.marquee--hero .marquee__item {
  font-size: clamp(52px, 8.4vw, 120px);
  line-height: 1.16;
  letter-spacing: normal;
  text-transform: none;
}
.marquee--hero .marquee__dot { width: 18px; height: 18px; }

@keyframes marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-25%); }
}

/* -------------------------------------------------- 13. Kartice */
/* Kolone razdvojene tankom vertikalnom crtom — bez pozadine i okvira,
   kao na originalnim stranicama proizvoda. */
.feature-card {
  padding: 30px 35px 25px;
}
.feature-card__title {
  margin: 0 0 40px;
  font-size: 26px;
  line-height: 1.15;
  color: #f0f0f0;
}
.feature-card__text { margin: 0; }
.feature-card__list { display: grid; gap: 4px; }
.feature-card__list li { position: relative; padding-left: 14px; }
.feature-card__list li::before {
  content: '-';
  position: absolute;
  left: 0; top: 0;
  color: inherit;
}

.feature-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; }
.feature-grid > * + * { border-left: 1px solid var(--border-soft); }
.feature-grid--3 { grid-template-columns: repeat(3, 1fr); }
.feature-grid--2 { grid-template-columns: repeat(2, 1fr); }

/* Panel: zaobljeni okvir (tabele sa sistemskim zahtevima). */
.panel {
  padding: 50px;
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, .02);
}
/* Okvir oko grupe kolona sa karakteristikama — bez pozadine. */
.feature-panel { padding: 20px 0; }

/* Sekcija ispod heroja na Cobri/Studiju/LSP-u: providna, sa svojom pozadinom,
   i podvučena pod hero da se dve pozadine stope. */
.software-features {
  position: relative;
  margin-top: -100px;
  padding-top: 160px;
  background: url(../img/home-4-bg-2.webp) center/cover no-repeat;
}
.software-features::before {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(18, 18, 24, .55) 0%, rgba(18, 18, 24, .72) 55%, var(--bg) 100%);
}
.software-features > * { position: relative; z-index: 1; }

/* -------------------------------------------------- 14. Overview kartice */
.overview-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin-top: 46px;
}
/* Kutije sa tankim okvirom koje dele ivice — kao na originalu. */
.overview-grid { gap: 0; }
.overview-grid--2 { grid-template-columns: repeat(2, 1fr); max-width: 720px; margin-inline: auto; }
.overview-grid--3 { grid-template-columns: repeat(3, 1fr); }
.overview-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 26px;
  padding: 34px 22px 40px;
  border: 1px solid var(--border);
  background: transparent;
  text-align: center;
  transition: background-color .3s var(--ease), border-color .3s var(--ease);
}
.overview-card + .overview-card { border-left: 0; }
.overview-card:hover { background: rgba(255, 255, 255, .03); border-color: var(--accent-soft); }
.overview-card__icon {
  display: grid; place-items: center;
  width: auto; height: auto;
  margin: 0;
  border-radius: 0;
  background: none;
}
.overview-card__icon img { width: 48px; height: 48px; }
.overview-card__title { margin: 0; font-size: 22px; line-height: 1.3; }

/* -------------------------------------------------- 15. Akordeon */
.accordion { display: grid; gap: 20px; }
.accordion__heading { margin: 0; }
.accordion__trigger {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  width: 100%;
  padding: 20px 17px 18px 25px;
  border-radius: var(--radius-lg);
  background: var(--surface);
  font-family: var(--font-head);
  font-size: 19px;
  font-weight: 600;
  line-height: 28px;
  color: #fff;
  text-align: left;
  transition: background-color .25s var(--ease), color .25s var(--ease);
}
.accordion__trigger:hover { background: #363649; }
.accordion__item.is-open .accordion__trigger { background: var(--accent); }
.accordion__icon { display: inline-flex; flex: none; color: currentColor; }
.accordion__icon-minus { display: none; }
.accordion__item.is-open .accordion__icon-plus { display: none; }
.accordion__item.is-open .accordion__icon-minus { display: inline-flex; }
.accordion__panel { overflow: hidden; }
.accordion__body { padding: 20px 25px 6px; color: #e9e9e9; }

/* -------------------------------------------------- 16. Karusel usluga */
.carousel { position: relative; }
.carousel__viewport { overflow: hidden; }
.carousel__track {
  display: flex;
  gap: 30px;
  transition: transform .55s var(--ease);
}
.carousel__slide { flex: 0 0 calc((100% - 60px) / 3); }
.carousel__nav {
  position: absolute; top: 50%;
  display: grid; place-items: center;
  width: 48px; height: 48px;
  margin-top: -24px;
  border: 1px solid var(--border);
  border-radius: 50%;
  background: rgba(18, 18, 24, .8);
  color: #fff;
  transition: background-color .25s var(--ease), border-color .25s var(--ease);
}
.carousel__nav:hover { background: var(--accent); border-color: var(--accent); }
.carousel__nav--prev { left: -18px; }
.carousel__nav--next { right: -18px; }

/* Kartica bez vidljivog okvira — pozadina je ista kao stranica, vidi se samo
   kružna ikonica sa ljubičastim sjajem i naslov ispod, levo poravnato. */
.service-card {
  display: flex;
  flex-direction: column;
  gap: 30px;
  height: 312px;
  padding: 25px 23px 23px 33px;
  border-radius: var(--radius-lg);
  background: var(--bg);
}
.service-card__icon {
  display: grid; place-items: center;
  width: 94px; height: 94px;
  padding: 15px;
  border-radius: 50%;
  box-shadow: 5px 5px 10px var(--accent), -1px -1px 2px #fff, 1px 1px 2px var(--accent);
  transition: transform .35s var(--ease);
}
.service-card:hover .service-card__icon { transform: translateY(-6px); }
.service-card__icon img { width: 64px; height: 64px; border-radius: 5px; object-fit: contain; }
.service-card__title {
  margin: 0;
  font-size: 28px;
  line-height: 36px;
  color: #fff;
}

/* Lebdeći oblak u desnom donjem uglu sekcije sa uslugama. */
.services-section { position: relative; overflow: hidden; }
.services-shape {
  position: absolute;
  right: -40px; bottom: -30px;
  width: 260px;
  pointer-events: none;
  animation: float 9s ease-in-out infinite;
}

/* -------------------------------------------------- 17. Sekcije naslovne */
/* Slika ide preko cele širine ekrana, kartica se preklapa preko njenog donjeg
   dela — kao na originalu, gde sekcija nije mnogo viša od same slike. */
.advantages { position: relative; padding: 0 0 60px; }
.advantages__media { position: relative; }
.advantages__media img { width: 100%; }
.advantages__card {
  position: relative;
  max-width: 546px;
  margin: -300px 0 0 auto;
  padding: 40px;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: rgba(18, 18, 24, .88);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
.advantages__card h2 { margin-bottom: 14px; font-size: clamp(24px, 2.4vw, 28px); }

/* Pola-pola, sa tankom vertikalnom crtom u sredini — bez kartica. */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  align-items: start;
}
.about-grid > :first-child { padding-right: 60px; }
.about-grid > :last-child { padding-left: 60px; border-left: 1px solid var(--border-soft); }

.about-lines { margin-top: 60px; }
.about-lines p { margin: 0; line-height: 28px; }

.threat-list { display: grid; gap: 48px; }
.threat { display: grid; grid-template-columns: 34px 1fr; gap: 12px; align-items: start; }
.threat__icon { display: inline-flex; padding-top: 6px; color: var(--accent); }
.threat__title { margin: 0 0 14px; font-size: 24px; line-height: 32px; color: #fff; }
.threat p { margin: 0; padding-left: 0; line-height: 28px; }

/* "What to expect from us" — dve kolone kartica sa slikom u sredini. */
.expect-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 30px;
  align-items: start;
  margin-top: 56px;
}
.expect-col { display: grid; gap: 30px; }
.expect-col--media { align-self: center; }
.expect-col--media img { width: 100%; max-width: 350px; margin-inline: auto; }

/* Katanac lebdi, a iza njega krug koji pulsira i nestaje. */
.pop-effect { position: relative; display: grid; place-items: center; animation: moveBounce 3s ease-in-out infinite; }
/* Sjaj iza slike (::before, scale 1.7) na uskim ekranima izlazi van strane i širi dokument
   (Chrome na telefonu zumira stranu) — sekcija se seče samo vodoravno. */
#us { overflow-x: clip; }
.pop-effect img { position: relative; z-index: 1; }
.pop-effect::before {
  content: '';
  position: absolute;
  top: 50%; left: 50%;
  width: 350px; height: 350px;
  margin: -175px 0 0 -175px;
  border-radius: 50%;
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
  box-shadow: 5px 5px 10px var(--accent), -1px -1px 2px #fff, 1px 1px 2px var(--accent);
  opacity: 0;
  z-index: 0;
  animation: shadow-blink 2s ease-out infinite forwards;
}
@keyframes shadow-blink {
  0%   { opacity: 1; }
  100% { opacity: 0; transform: scale(1.7); }
}
@keyframes moveBounce {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(20px); }
}

/* Bez vidljivog okvira — pozadina je ista kao stranica, kao na originalu. */
.expect-card {
  padding: 30px 30px 20px;
  border-radius: var(--radius-lg);
  background: var(--bg);
  transition: transform .3s var(--ease);
}
.expect-card:hover { transform: translateY(-5px); }
.expect-card__icon {
  display: grid; place-items: center;
  width: 64px; height: 64px;
  margin-bottom: 20px;
  border-radius: 18px;
  background: var(--accent-soft);
}
.expect-card__icon img { width: 34px; height: 34px; }
.expect-card h3 { margin-bottom: 10px; font-size: 22px; line-height: 1.3; }
.expect-card p { margin: 0; font-size: 15px; line-height: 26px; }

/* Sertifikati */
.cert-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; margin-top: 48px; }
.cert-card {
  display: grid;
  grid-template-columns: 108px 1fr;
  gap: 24px;
  align-items: center;
  padding: 26px 30px;
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-lg);
  background: linear-gradient(120deg, rgba(255, 255, 255, .04), rgba(255, 255, 255, .01));
  transition: border-color .3s var(--ease), transform .3s var(--ease);
}
.cert-card:hover { border-color: var(--accent-soft); transform: translateY(-4px); }
.cert-card__thumb {
  width: 108px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: #fff;
}
.cert-card h4 { margin-bottom: 8px; }
.cert-card p { margin: 0 0 10px; font-size: 15px; line-height: 26px; }
.cert-card__link {
  display: inline-flex; align-items: center; gap: 7px;
  font-family: var(--font-head);
  font-size: 14px; font-weight: 600;
  color: var(--accent);
  text-transform: uppercase;
}
.cert-card__link:hover { text-decoration: underline; }
.cert-logo { margin-top: 44px; text-align: center; }
.cert-logo img { max-width: min(380px, 100%); margin-inline: auto; }

/* QA sekcija: puna širina, pozadina je video sa padajućim nulama i jedinicama. */
.qa-section { position: relative; overflow: hidden; }
.qa-section__video {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  z-index: 0;
}
.qa-section__veil {
  position: absolute; inset: 0;
  z-index: 1;
  background: linear-gradient(180deg, var(--bg) 0%, rgba(18, 18, 24, .78) 22%, rgba(18, 18, 24, .78) 78%, var(--bg) 100%);
}
.qa-panel {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1fr 439px;
  gap: 60px;
  align-items: center;
}
.qa-panel__media img { width: 100%; border-radius: var(--radius-lg); }
.qa-panel__head { margin-bottom: 34px; }

/* -------------------------------------------------- 18. Specifikacije proizvoda */
.specs-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: start; }
.specs-photo {
  margin: 30px 0;
  padding: 24px;
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-lg);
  background: radial-gradient(70% 90% at 50% 40%, rgba(181, 66, 199, .16), transparent 70%);
}
.specs-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.specs-list { display: grid; gap: 10px; }
.specs-list li {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border-soft);
  font-size: 15px;
  line-height: 24px;
}
.specs-list li:last-child { border-bottom: 0; }
.specs-list b { color: var(--heading); font-weight: 600; }

/* contain: inline-size — tabela ne diktira minimalnu širinu roditelja (grid kartice na 360px),
   nego se skroluje unutar omotača. */
.spec-table-wrap { overflow-x: auto; contain: inline-size; }
.spec-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 15px;
  line-height: 26px;
}
.spec-table th,
.spec-table td {
  /* Dugi izrazi sa kosom crtom (Professional/XP, Desktop/Server) Chromium i WebKit ne prelamaju,
     pa na 390px izlaze iz ćelije — dozvoli prelom bilo gde. */
  overflow-wrap: anywhere;
  padding: 16px 20px;
  border-bottom: 1px solid var(--border-soft);
  text-align: left;
  vertical-align: top;
}
.spec-table th {
  width: 30%;
  min-width: 190px;
  font-family: var(--font-head);
  font-weight: 600;
  color: var(--heading);
}
.spec-table tr:last-child th,
.spec-table tr:last-child td { border-bottom: 0; }
.spec-table ul { display: grid; gap: 4px; margin-top: 6px; }
.spec-table li { position: relative; padding-left: 18px; }
.spec-table li::before {
  content: '';
  position: absolute; left: 0; top: 12px;
  width: 7px; height: 2px;
  background: var(--accent);
}

/* -------------------------------------------------- Navigacija po sekcijama */
.page-nav {
  position: sticky;
  /* Odmah ispod glavnog menija: kad se strana skroluje, header je "zalepljen" (12px odozgo + visina trake). */
  top: calc(12px + var(--header-h));
  z-index: 50;
  border-bottom: 1px solid var(--border-soft);
  background: rgba(18, 18, 24, .92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
.page-nav__inner {
  display: flex;
  gap: 34px;
  overflow-x: auto;
  scrollbar-width: none;
}
.page-nav__inner::-webkit-scrollbar { display: none; }
/* Kad traka ima još stavki desno (telefon), desna ivica bledi — nagoveštaj da se skroluje.
   Klasu has-more postavlja main.js (samo dok ima sadržaja van vidnog polja). */
.page-nav::after {
  content: '';
  position: absolute;
  top: 0; right: 0; bottom: 0;
  width: 64px;
  background: linear-gradient(90deg, rgba(18, 18, 24, 0), rgba(18, 18, 24, .96) 70%);
  opacity: 0;
  pointer-events: none;
  transition: opacity .2s var(--ease);
}
.page-nav.has-more::after { opacity: 1; }
.page-nav__link {
  position: relative;
  flex: none;
  padding: 20px 0 18px;
  font-family: var(--font-head);
  font-size: 15px;
  font-weight: 600;
  color: var(--text-soft);
  white-space: nowrap;
  transition: color .2s var(--ease);
}
.page-nav__link::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: -1px;
  height: 2px;
  background: var(--accent);
  transform: scaleX(0);
  transition: transform .25s var(--ease);
}
.page-nav__link:hover { color: #fff; }
.page-nav__link.is-active { color: #fff; }
.page-nav__link.is-active::after { transform: scaleX(1); }

/* Sekcije ispod trake ne smeju da se podvuku pod nju kad se skoči na #anchor. */
.has-page-nav { scroll-padding-top: calc(12px + var(--header-h) + 86px); }

/* -------------------------------------------------- Kartice (tabovi) */
.tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 40px 0 0;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--border-soft);
}
.tabs__btn {
  padding: 12px 26px;
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  font-family: var(--font-head);
  font-size: 15px;
  font-weight: 600;
  color: #fff;
  transition: background-color .25s var(--ease), border-color .25s var(--ease);
}
.tabs__btn:hover { border-color: var(--accent-soft); background: var(--surface-soft); }
.tabs__btn.is-active { background: var(--accent); border-color: var(--accent); }
/* Bez JS-a su svi paneli vidljivi, sa JS-om samo aktivni. */
.js .tabs__panel { display: none; }
.js .tabs__panel.is-active { display: block; }
.js .tabs__panel-title { position: static; width: auto; height: auto; margin: 40px 0 0; clip: auto; clip-path: none; }
.js .tabs + .tabs__panels .tabs__panel-title { position: absolute; width: 1px; height: 1px; margin: -1px; clip: rect(0 0 0 0); clip-path: inset(50%); }

.module-card__note { margin: 14px 0 0; font-size: 14px; line-height: 24px; opacity: .75; }
.module-list { display: grid; gap: 30px; margin-top: 48px; }
.module-card {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 40px;
  align-items: start;
  padding: 40px;
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, .02);
}
.module-card__media {
  padding: 20px;
  border-radius: 20px;
  background: radial-gradient(70% 80% at 50% 50%, rgba(181, 66, 199, .18), transparent 72%);
}
.module-card h3 { margin-bottom: 20px; }

/* Ploče (kartica "Boards") dobijaju krupniju fotografiju — adapteri ostaju
   na standardnoj veličini jer su to sitni moduli. */
.module-list--large-media .module-card { grid-template-columns: 440px 1fr; }
.module-list--large-media .module-card__media { padding: 26px; }
/* Slika ima width atribut od 260px, pa mora eksplicitno da popuni kolonu. */
.module-list--large-media .module-card__media img { width: 100%; height: auto; }

/* -------------------------------------------------- Baner porodice proizvoda */
.product-banner {
  display: grid;
  grid-template-columns: 460px 1fr;
  gap: 50px;
  align-items: center;
  margin-top: 44px;
  padding: 50px;
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-lg);
  background:
    radial-gradient(60% 80% at 15% 50%, rgba(181, 66, 199, .16), transparent 70%),
    rgba(255, 255, 255, .02);
}
.product-banner__media { display: grid; place-items: center; }
.product-banner__media img { width: 100%; max-width: 420px; }
.product-banner__title { margin: 0 0 26px; font-size: clamp(28px, 3vw, 40px); }
.product-banner__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 26px 40px; }
.product-banner__item h4 { margin: 0 0 8px; font-size: 19px; line-height: 26px; color: #fff; }
.product-banner__item p { margin: 0; font-size: 15px; line-height: 26px; }
.product-banner__cta { margin-top: 34px; }

/* -------------------------------------------------- Brojke (O nama) */
/* Kutije dele ivice — bez razmaka, kao kartice primene. */
.facts {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0;
  margin-top: 48px;
}
.fact {
  padding: 34px 20px;
  border: 1px solid var(--border);
  background: transparent;
  text-align: center;
}
.fact + .fact { border-left: 0; }
.fact__num { margin: 0 0 6px; font-size: clamp(30px, 3vw, 44px); line-height: 1.1; color: var(--accent); }
.fact__label { margin: 0; font-size: 15px; line-height: 24px; }

/* -------------------------------------------------- Ekosistem (O nama) */
.eco-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 48px; }
/* Dve kolone (dokumentacija na AP/ZTN Mobile); minmax(0) da duga reč ne širi stranu; ispod 720px 1 kolona (media dole). */
.eco-grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.eco-card {
  padding: 34px 30px;
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-lg);
  background: linear-gradient(180deg, rgba(255, 255, 255, .04), rgba(255, 255, 255, .01));
  transition: border-color .3s var(--ease), transform .3s var(--ease);
}
.eco-card:hover { border-color: var(--accent-soft); transform: translateY(-4px); }
.eco-card__icon {
  display: grid; place-items: center;
  width: 58px; height: 58px;
  margin-bottom: 20px;
  border-radius: 16px;
  background: var(--accent-soft);
  color: var(--accent);
}
.eco-card h3 { margin: 0 0 10px; font-size: 21px; line-height: 1.3; }
.eco-card p { margin: 0; font-size: 15px; line-height: 26px; }

/* -------------------------------------------------- Hronologija */
.timeline {
  display: grid;
  gap: 0;
  margin-top: 44px;
  counter-reset: none;
}
.timeline__item {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 30px;
  align-items: baseline;
  padding: 22px 0;
  border-bottom: 1px solid var(--border-soft);
}
.timeline__item:first-child { border-top: 1px solid var(--border-soft); }
.timeline__year {
  font-family: var(--font-head);
  font-size: 26px;
  font-weight: 600;
  color: var(--accent);
}
.timeline__text { margin: 0; }

/* -------------------------------------------------- Novosti */
.news-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 44px; }
.news-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 30px;
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-lg);
  background: linear-gradient(180deg, rgba(255, 255, 255, .04), rgba(255, 255, 255, .01));
  transition: border-color .3s var(--ease), transform .3s var(--ease);
}
.news-card:hover { border-color: var(--accent-soft); transform: translateY(-4px); }
.news-card__date { font-size: 14px; color: var(--accent); }
.news-card__title { margin: 0; font-size: 20px; line-height: 1.35; }
.news-card__text { margin: 0; font-size: 15px; line-height: 26px; }

/* -------------------------------------------------- Tabela poređenja */
.compare-table thead th {
  width: auto;
  min-width: 0;
  border-bottom: 1px solid var(--border);
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: .3px;
}
.compare-table tbody th a { color: var(--accent); }
.compare-table tbody th a:hover { text-decoration: underline; }

.feature-grid--5 { grid-template-columns: repeat(5, 1fr); }
.overview-grid--4 { grid-template-columns: repeat(4, 1fr); }

/* -------------------------------------------------- 19. Kontakt */
.page-hero {
  position: relative;
  display: grid;
  align-items: center;
  min-height: 360px;
  padding: calc(var(--header-h) + 60px) 0 40px;
  overflow: hidden;
  background: var(--bg) url(../img/slider-bg-image-1.webp) center/cover no-repeat;
  text-align: center;
}
.page-hero::before {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(18, 18, 24, .6) 0%, rgba(18, 18, 24, .35) 60%, rgba(18, 18, 24, .85) 100%);
}
.page-hero h1 { font-size: clamp(34px, 4vw, 54px); margin-bottom: 6px; }
.page-hero__inner { position: relative; z-index: 2; }
.breadcrumb {
  display: flex; justify-content: center; gap: 10px;
  margin-top: 14px;
  font-size: 15px;
  color: var(--text-soft);
}
.breadcrumb a:hover { color: var(--accent); }
.breadcrumb li + li::before { content: '/'; margin-right: 10px; opacity: .5; }

.contact-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; }
.contact-card {
  padding: 40px;
  border-radius: var(--radius-lg);
  background: var(--bg-elev);
  transition: transform .3s var(--ease);
}
.contact-card:hover { transform: translateY(-5px); }
.contact-card__icon {
  display: grid; place-items: center;
  width: 62px; height: 62px;
  margin-bottom: 22px;
  border-radius: 18px;
  background: var(--accent-soft);
  color: var(--accent);
}
.contact-card h4 { margin-bottom: 12px; }
.contact-card a:hover { color: var(--accent); }
.contact-card ul { display: grid; gap: 4px; }

.contact-form-wrap {
  padding: 50px;
  border-radius: var(--radius-lg);
  background: var(--bg-elev);
}
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px 30px; }
.form-field--full { grid-column: 1 / -1; }
.form-field input,
.form-field textarea {
  width: 100%;
  height: 52px;
  padding: 0 15px;
  border: 1px solid rgba(255, 255, 255, .15);
  border-radius: 10px;
  background: transparent;
  color: #fff;
  font: inherit;
  transition: border-color .2s var(--ease), background-color .2s var(--ease);
}
.form-field textarea { height: auto; min-height: 150px; padding: 14px 15px; resize: vertical; }
.form-field input::placeholder,
.form-field textarea::placeholder { color: rgba(189, 180, 191, .7); }
.form-field input:focus,
.form-field textarea:focus { border-color: var(--accent); background: rgba(18, 18, 24, .95); outline: none; }
.form-field .error { display: block; margin-top: 6px; font-size: 13px; color: #ff8a8a; }
.form-field input[aria-invalid="true"],
.form-field textarea[aria-invalid="true"] { border-color: #ff8a8a; }
.form-hp { position: absolute; left: -9999px; opacity: 0; }

.form-alert {
  grid-column: 1 / -1;
  padding: 16px 20px;
  border-radius: 12px;
  border: 1px solid var(--border);
  font-size: 15px;
}
.form-alert[hidden] { display: none; }
#contact-form button[disabled] { opacity: .6; cursor: progress; }
.form-alert--ok { border-color: rgba(120, 220, 160, .45); background: rgba(120, 220, 160, .1); color: #b7f0ce; }
.form-alert--err { border-color: rgba(255, 138, 138, .45); background: rgba(255, 138, 138, .1); color: #ffc9c9; }

.map-embed {
  overflow: hidden;
  border-radius: 20px;
}
.map-embed iframe { display: block; width: 100%; height: 528px; border: 0; }

/* -------------------------------------------------- Prijava na sistem */
.login-layout {
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: 60px;
  align-items: center;
}
.login-card {
  padding: 50px;
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-lg);
  background: var(--bg-elev);
}
.login-card__icon {
  display: grid; place-items: center;
  width: 62px; height: 62px;
  margin-bottom: 24px;
  border-radius: 18px;
  background: var(--accent-soft);
  color: var(--accent);
}
.login-card__title { margin: 0 0 10px; font-size: clamp(24px, 2.6vw, 32px); }
.login-card__lead { margin: 0 0 26px; }
.login-card__foot { margin: 26px 0 0; font-size: 15px; }

.login-form { display: grid; gap: 20px; }
.login-form .form-field label {
  display: block;
  margin-bottom: 8px;
  font-family: var(--font-head);
  font-size: 14px;
  font-weight: 600;
  color: var(--text-soft);
}
.login-form__row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-size: 15px;
}
.login-check { display: inline-flex; align-items: center; gap: 9px; cursor: pointer; }
.login-check input { width: 16px; height: 16px; accent-color: var(--accent); }
.login-link { color: var(--accent); }
.login-link:hover { text-decoration: underline; }
.login-form__submit { justify-self: start; }
.login-form__submit:disabled { opacity: .6; cursor: not-allowed; transform: none; box-shadow: none; }

.login-aside { display: grid; place-items: center; }
.login-aside img {
  width: min(320px, 100%);
  filter: drop-shadow(0 30px 70px rgba(181, 66, 199, .35));
  animation: float 7s ease-in-out infinite;
}

/* -------------------------------------------------- 20. Footer */
.site-footer {
  position: relative;
  background: url(../img/footer-bg-3.webp) center/cover no-repeat;
}
.site-footer__widgets,
.site-footer__bottom { background: rgba(18, 18, 24, .65); }
.site-footer__widgets { padding: 100px 0; }
.site-footer__bottom { padding: 25px 0; border-top: 1px solid var(--border-soft); }

.footer-grid { display: grid; grid-template-columns: 400px 1fr; gap: 60px; }
.footer-about__logo img { width: 200px; margin-bottom: 22px; }
.footer-about__text { max-width: 330px; font-size: 16px; line-height: 30px; }
.footer-about__gbp { width: 90px; margin: 26px 0 10px; }
.footer-about__powered { margin: 0; font-size: 15px; color: var(--text-soft); }

.footer-cols {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px 30px;
}
.footer-col--wide { grid-column: 1 / -1; }
.footer-col__title {
  display: flex; align-items: center; gap: 9px;
  margin: 0 0 10px;
  font-size: 24px;
  font-weight: 600;
  line-height: 31px;
  color: #fff;
}
.footer-col__icon { color: var(--accent); }
.footer-col__body { font-style: normal; font-size: 16px; line-height: 30px; color: var(--text-soft); }
.footer-list a {
  display: inline-flex; align-items: center; gap: 9px;
  font-size: 16px; line-height: 30px; color: var(--text-soft);
  transition: color .2s var(--ease);
}
.footer-list a:hover { color: var(--accent); }
.footer-list__icon { color: var(--accent); flex: none; }

.social { display: flex; gap: 10px; }
.social a {
  display: grid; place-items: center;
  width: 42px; height: 42px;
  border-radius: 10px;
  background: rgba(18, 18, 24, .9);
  border: 1px solid var(--border);
  color: #fff;
  transition: background-color .25s var(--ease), border-color .25s var(--ease), transform .25s var(--ease);
}
.social a:hover { background: var(--accent); border-color: var(--accent); transform: translateY(-3px); }

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px 30px;
}
.footer-bottom__copy { margin: 0; font-size: 15px; }
.footer-bottom__copy a { color: var(--accent); }
.footer-bottom__copy a:hover { text-decoration: underline; }
.footer-products { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; }
.footer-products__label {
  font-family: var(--font-head);
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  color: #fff;
}
.footer-products ul { display: flex; flex-wrap: wrap; gap: 6px 16px; }
.footer-products a { font-size: 14px; color: var(--text-soft); }
.footer-products a:hover { color: var(--accent); }

/* -------------------------------------------------- 21. IP traka + back-to-top */
.ip-bar {
  position: fixed;
  inset: auto 0 0;
  z-index: 999;
  padding: 12px 15px;
  background: var(--bg);
  border-top: 1px solid var(--border-soft);
  font-size: 14px;
  text-align: center;
}
.ip-bar strong { color: #fff; }
body { padding-bottom: 46px; }

.to-top {
  position: fixed;
  right: 22px; bottom: 62px;
  z-index: 998;
  display: grid; place-items: center;
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  opacity: 0; visibility: hidden;
  transform: translateY(12px);
  transition: opacity .3s var(--ease), transform .3s var(--ease), visibility .3s;
}
.to-top.is-visible { opacity: 1; visibility: visible; transform: translateY(0); }
.to-top:hover { background: #c556d6; }

/* -------------------------------------------------- 22. Reveal animacije */
/* Skrivanje pre animacije važi samo ako JS radi — bez njega sadržaj je odmah
   vidljiv (klasu .js dodaje inline skripta u <head>). Isto važi za loader. */
.js .reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity .7s var(--ease) var(--d, 0ms), transform .7s var(--ease) var(--d, 0ms);
}
.js .reveal.is-visible { opacity: 1; transform: none; }
html:not(.js) .page-loader { display: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .marquee__track,
  .hero__product,
  .hero__shape,
  .page-loader img,
  .page-loader__mark::before,
  .page-loader__mark::after { animation: none !important; }
  *, *::before, *::after { transition-duration: .01ms !important; }
}

/* -------------------------------------------------- 23. Responsive */
@media (max-width: 1240px) {
  .menu { gap: 18px; }
  .navbar { padding: 0 20px; }
  .navbar__brand img { width: 150px; }
  .about-grid { grid-template-columns: 1fr 1fr; gap: 40px; }
  .qa-panel { grid-template-columns: 1fr 360px; gap: 40px; }
  .advantages__card { margin-top: -190px; }
  .about-grid > :first-child { padding-right: 36px; }
  .about-grid > :last-child { padding-left: 36px; }
  .software-hero__lead { font-size: 18px; line-height: 30px; }
  .footer-grid { grid-template-columns: 320px 1fr; gap: 40px; }
}

@media (max-width: 1024px) {
  :root { --header-gap: 16px; --header-h: 76px; }
  .section { padding: 90px 0; }

  /* Hamburger i mobilni panel imaju smisla samo uz JS; bez njega se meni
     prelama u samom headeru da sajt ostane prohodan. */
  .js .navbar__nav,
  .js .navbar__actions .btn { display: none; }
  .js .navbar__toggle { display: block; }
  html:not(.js) .navbar { flex-wrap: wrap; height: auto; padding: 16px 20px; }
  html:not(.js) .menu { flex-wrap: wrap; gap: 10px 18px; }
  html:not(.js) .menu__item > a { height: auto; padding: 6px 0; }
  html:not(.js) .submenu { position: static; width: auto; opacity: 1; visibility: visible; transform: none; box-shadow: none; background: transparent; padding: 0 0 0 14px; }

  .hero__inner { grid-template-columns: 1fr; gap: 50px; padding-top: calc(var(--header-h) + 60px); }
  .hero__media { order: -1; }
  .hero__product { width: min(320px, 62%); margin-inline: auto; }
  .hero__media { max-width: 520px; }
  .advantages__card { margin-top: -120px; }

  /* Kolone se prelamaju na dve — leve crte se prebacuju u gornje. */
  .feature-grid > * + * { border-left: 0; }
  .feature-grid > * + * { border-top: 1px solid var(--border-soft); }
  .feature-grid > :nth-child(2) { border-top: 0; border-left: 1px solid var(--border-soft); }
  .overview-card + .overview-card { border-left: 1px solid var(--border); }
  .overview-grid > * { margin-top: -1px; margin-left: -1px; }

  .software-hero__row { grid-template-columns: 1fr; gap: 40px; text-align: center; }
  .software-hero__lead { max-width: 520px; margin-inline: auto; }
  .stats { grid-template-columns: 1fr 1fr; }
  .software-features { margin-top: -60px; padding-top: 120px; }
  .product-banner { grid-template-columns: 1fr; gap: 34px; padding: 34px; }
  .product-banner__media img { max-width: 340px; }
  .facts { grid-template-columns: repeat(3, 1fr); }
  .fact { margin-left: -1px; margin-top: -1px; }
  .fact + .fact { border-left: 1px solid var(--border); }
  .eco-grid, .news-grid { grid-template-columns: repeat(2, 1fr); }
  .compare-table th, .compare-table td { padding: 12px 14px; font-size: 14px; }

  .feature-grid { grid-template-columns: repeat(2, 1fr); }
  .overview-grid { grid-template-columns: repeat(2, 1fr); }
  .carousel__slide { flex-basis: calc((100% - 30px) / 2); }
  .specs-grid { grid-template-columns: 1fr; gap: 40px; }
  .module-card { grid-template-columns: 220px 1fr; gap: 28px; padding: 30px; }
  .module-list--large-media .module-card { grid-template-columns: 300px 1fr; }

  .expect-grid { grid-template-columns: 1fr 1fr; }
  .expect-col--media { grid-column: 1 / -1; order: -1; }
  .expect-col--media img { max-height: 380px; object-fit: cover; }

  .qa-panel { grid-template-columns: 1fr; padding: 36px; }
  .qa-panel__media { order: -1; }
  .qa-panel__media img { max-height: 340px; object-fit: cover; }

  .contact-cards { grid-template-columns: 1fr; }
  .contact-form-wrap { padding: 36px; }
  .login-layout { grid-template-columns: 1fr; gap: 40px; }
  .login-aside { order: -1; }
  .login-aside img { width: min(240px, 60%); }
  .panel { padding: 32px; }

  .footer-grid { grid-template-columns: 1fr; }
  .footer-cols { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 720px) {
  .section { padding: 70px 0; }
  .advantages__card { max-width: none; margin: -60px 0 0; padding: 28px; }
  .about-grid { grid-template-columns: 1fr; gap: 34px; }
  .about-grid > :first-child { padding-right: 0; }
  .about-grid > :last-child { padding-left: 0; padding-top: 34px; border-left: 0; border-top: 1px solid var(--border-soft); }
  .about-lines { margin-top: 24px; }

  .feature-grid > * + * { border-left: 0; border-top: 1px solid var(--border-soft); }
  .feature-grid > :nth-child(2) { border-left: 0; border-top: 1px solid var(--border-soft); }
  .overview-card + .overview-card { border-left: 1px solid var(--border); border-top: 0; }
  .overview-grid > * { margin-left: 0; }

  .stats { grid-template-columns: 1fr; }
  .software-hero__emblem img { width: min(240px, 70%); }
  .product-banner__grid { grid-template-columns: 1fr; gap: 22px; }
  .facts { grid-template-columns: 1fr 1fr; }
  .eco-grid, .news-grid { grid-template-columns: 1fr; }
  .timeline__item { grid-template-columns: 1fr; gap: 6px; }
  .timeline__year { font-size: 22px; }
  .tabs { gap: 8px; }
  .tabs__btn { padding: 10px 18px; font-size: 14px; }

  /* Oznake oko katanca prelaze u običan spisak ispod slike. */
  .hero__media { display: flex; flex-direction: column; align-items: center; gap: 14px; }
  .hero__callout, .hero__card { position: static; width: auto; }
  .hero__callout { padding-left: 22px; border-bottom: 0; }
  .hero__callout::before { display: none; }
  .hero__dot { top: 50%; bottom: auto; margin-top: -4px; }
  .hero__card { display: flex; align-items: center; gap: 14px; padding: 14px 18px; text-align: left; }
  .hero__card img { width: 42px; height: 42px; margin: 0; }
  .feature-grid,
  .feature-grid--3,
  .feature-grid--2,
  .overview-grid,
  .cert-grid,
  .specs-cols,
  .form-grid { grid-template-columns: 1fr; }
  .carousel__slide { flex-basis: 100%; }
  .carousel__nav--prev { left: 0; }
  .carousel__nav--next { right: 0; }
  .expect-grid { grid-template-columns: 1fr; }
  .module-card,
  .module-list--large-media .module-card { grid-template-columns: 1fr; }
  .stats { gap: 34px; }
  .marquee__item { font-size: 34px; }
  .cert-card { grid-template-columns: 84px 1fr; gap: 18px; padding: 22px; }
  .cert-card__thumb { width: 84px; }
  .footer-cols { grid-template-columns: 1fr; }
  .site-footer__widgets { padding: 70px 0; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
  .accordion__trigger { font-size: 17px; padding: 16px 14px 15px 18px; }
  .login-card { padding: 30px; }
  .spec-table th { min-width: 140px; }
}

/* Uski telefoni: logo, izbor jezika i hamburger moraju da stanu u jedan red
   (do 320px širine). */
@media (max-width: 480px) {
  .navbar { gap: 12px; padding: 0 14px; }
  .navbar__brand img { width: 120px; }
  .navbar__actions { gap: 8px; }
  .lang-switch { padding: 3px; }
  .lang-switch a { min-width: 34px; height: 32px; padding: 0 8px; font-size: 12px; }
}
