/* ==========================================================================
   VELTRON NET — тема, компоненти и анимации
   Tailwind ги носи распоредот и растојанијата; овде се боите (кои се
   менуваат со темата), компонентите и целата анимација.
   ========================================================================== */

/* ── 1. Токени ────────────────────────────────────────────────────────── */

:root,
[data-theme='dark'] {
  --bg: #04060b;
  --bg-soft: #070d16;
  --surface: #0b1220;
  --surface-2: #101b2e;
  --surface-glass: rgba(9, 15, 26, 0.72);
  --border: rgba(148, 179, 214, 0.14);
  --border-strong: rgba(148, 179, 214, 0.26);
  --text: #e9f0f8;
  --text-muted: #93a7bd;
  --text-dim: #6b8099;
  --brand: #1f8fe0;
  --brand-soft: #38bdf8;
  --accent: #22d3ee;
  --on-brand: #04101c;
  --ring: rgba(56, 189, 248, 0.55);
  --shadow-lg: 0 30px 70px -40px rgba(0, 0, 0, 0.95);
  --shadow-card: 0 22px 50px -34px rgba(0, 0, 0, 0.9);
  --grid-line: rgba(148, 179, 214, 0.14);
}

[data-theme='light'] {
  --bg: #f3f7fc;
  --bg-soft: #ffffff;
  --surface: #ffffff;
  --surface-2: #edf3fa;
  --surface-glass: rgba(255, 255, 255, 0.82);
  --border: #dbe6f2;
  --border-strong: #bfd2e6;
  --text: #0a1524;
  --text-muted: #4e6178;
  --text-dim: #6c7f95;
  --brand: #1668b8;
  --brand-soft: #1f8fe0;
  --accent: #0d7f9c;
  --on-brand: #ffffff;
  --ring: rgba(22, 104, 184, 0.5);
  --shadow-lg: 0 30px 70px -44px rgba(14, 40, 70, 0.4);
  --shadow-card: 0 18px 44px -30px rgba(14, 40, 70, 0.32);
  --grid-line: rgba(30, 74, 120, 0.09);
}

/* ── 2. Основа ────────────────────────────────────────────────────────── */

* {
  -webkit-tap-highlight-color: transparent;
}

html {
  scroll-behavior: smooth;
}

body {
  background: var(--bg);
  color: var(--text);
  /* „clip“ наместо „hidden“: спречува хоризонтално лизгање без да создаде
     контејнер за лизгање, кој би го расипал position: sticky на заглавието. */
  overflow-x: clip;
  transition: background-color 0.35s ease, color 0.35s ease;
}

body.is-locked {
  overflow: hidden;
}

::selection {
  background: color-mix(in srgb, var(--brand) 32%, transparent);
  color: var(--text);
}

section[id],
div[id] {
  scroll-margin-top: 90px;
}

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

.skip-link {
  position: fixed;
  top: -100px;
  left: 1rem;
  z-index: 100;
  padding: 0.7rem 1.2rem;
  border-radius: 0 0 12px 12px;
  background: var(--brand);
  color: var(--on-brand);
  font-weight: 600;
  transition: top 0.25s ease;
}

.skip-link:focus {
  top: 0;
}

/* ── 3. Помошни ───────────────────────────────────────────────────────── */

.container {
  width: 100%;
  max-width: 1200px;
  margin-inline: auto;
  padding-inline: 1.25rem;
}

@media (min-width: 640px) {
  .container {
    padding-inline: 2rem;
  }
}

.section {
  padding-block: 4.5rem;
}

@media (min-width: 768px) {
  .section {
    padding-block: 6.5rem;
  }
}

.section--alt {
  background: var(--bg-soft);
  border-block: 1px solid var(--border);
}

.section__head {
  max-width: 44rem;
  margin-inline: auto;
  margin-bottom: 3rem;
  text-align: center;
}

.section__head--left {
  margin-inline: 0;
  text-align: left;
}

.eyebrow {
  margin-bottom: 0.9rem;
  font-family: var(--font-display), sans-serif;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--brand-soft);
}

.section__title {
  font-family: var(--font-display), sans-serif;
  font-size: clamp(1.75rem, 3.6vw, 2.6rem);
  font-weight: 700;
  line-height: 1.16;
  letter-spacing: -0.02em;
  color: var(--text);
}

.section__lead {
  margin-top: 1rem;
  font-size: 1.02rem;
  line-height: 1.7;
  color: var(--text-muted);
}

.gradient-text {
  background: linear-gradient(100deg, var(--brand), var(--brand-soft) 38%, var(--accent) 62%, var(--brand-soft) 84%, var(--brand));
  background-size: 220% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: shimmer 8s ease-in-out infinite;
}

@keyframes shimmer {
  0%, 100% { background-position: 0% 50%; }
  50%      { background-position: 100% 50%; }
}

/* Појавување при движење низ страницата */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1), transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
  transition-delay: var(--d, 0ms);
}

.reveal.is-visible {
  opacity: 1;
  transform: none;
}

/* ── 4. Копчиња ───────────────────────────────────────────────────────── */

.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  padding: 0.72rem 1.4rem;
  border-radius: 999px;
  border: 1px solid transparent;
  font-size: 0.9rem;
  font-weight: 600;
  white-space: nowrap;
  cursor: pointer;
  transition: transform 0.25s ease, box-shadow 0.25s ease, background-color 0.25s ease,
    border-color 0.25s ease, color 0.25s ease;
}

.btn--lg {
  padding: 0.92rem 1.8rem;
  font-size: 0.98rem;
}

/* На тесни екрани долгата ознака смее да се прекрши во два реда наместо да
   ја рашири страницата. Let long labels wrap instead of widening the page. */
@media (max-width: 480px) {
  .btn {
    max-width: 100%;
    white-space: normal;
    text-align: center;
  }
}

.btn svg {
  width: 17px;
  height: 17px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.1;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: transform 0.25s ease;
}

.btn:hover svg {
  transform: translateX(3px);
}

.btn--primary {
  background: linear-gradient(120deg, var(--brand-soft), var(--brand) 62%, var(--accent));
  background-size: 190% 100%;
  color: var(--on-brand);
  box-shadow: 0 14px 34px -16px color-mix(in srgb, var(--brand) 85%, transparent);
}

.btn--primary:hover {
  transform: translateY(-2px);
  background-position: 100% 50%;
  box-shadow: 0 20px 42px -16px color-mix(in srgb, var(--brand) 95%, transparent);
}

.btn--primary:disabled {
  opacity: 0.65;
  cursor: progress;
  transform: none;
}

.btn--ghost {
  background: color-mix(in srgb, var(--surface) 70%, transparent);
  border-color: var(--border-strong);
  color: var(--text);
}

.btn--ghost:hover {
  transform: translateY(-2px);
  border-color: var(--brand-soft);
  color: var(--brand-soft);
}

.spinner {
  display: none;
  width: 15px;
  height: 15px;
  border-radius: 50%;
  border: 2px solid color-mix(in srgb, var(--on-brand) 35%, transparent);
  border-top-color: var(--on-brand);
  animation: spin 0.7s linear infinite;
}

.btn.is-busy .spinner {
  display: inline-block;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* ── 5. Заглавие и навигација ─────────────────────────────────────────── */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid transparent;
  transition: background-color 0.3s ease, border-color 0.3s ease, backdrop-filter 0.3s ease;
}

.site-header.is-scrolled {
  background: var(--surface-glass);
  border-bottom-color: var(--border);
  backdrop-filter: blur(14px) saturate(150%);
  -webkit-backdrop-filter: blur(14px) saturate(150%);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  flex-shrink: 0;
}

.brand__mark {
  width: auto;
  height: 30px;
}

@media (min-width: 1024px) {
  .brand__mark { height: 34px; }
}

.brand__word {
  font-family: var(--font-display), sans-serif;
  font-size: 1.02rem;
  font-weight: 700;
  letter-spacing: 0.13em;
  color: var(--text);
}

.brand__word span {
  color: var(--brand-soft);
}

[data-theme='dark'] .brand__mark--light,
[data-theme='dark'] .brand__logo--light { display: none; }
[data-theme='light'] .brand__mark--dark,
[data-theme='light'] .brand__logo--dark { display: none; }

.nav-desktop {
  display: none;
  align-items: center;
  gap: 0.25rem;
  margin-left: 1.5rem;
}

@media (min-width: 1024px) {
  .nav-desktop { display: flex; }
}

.nav-link {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.5rem 0.8rem;
  border-radius: 10px;
  font-size: 0.9rem;
  font-weight: 500;
  white-space: nowrap;
  color: var(--text-muted);
  background: none;
  border: 0;
  cursor: pointer;
  transition: color 0.22s ease, background-color 0.22s ease;
}

.nav-link:hover,
.nav-link.is-active {
  color: var(--text);
  background: color-mix(in srgb, var(--surface-2) 70%, transparent);
}

.nav-link.is-active::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: 2px;
  width: 16px;
  height: 2px;
  border-radius: 2px;
  background: var(--brand-soft);
  transform: translateX(-50%);
}

.nav-caret {
  width: 14px;
  height: 14px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: transform 0.25s ease;
}

.nav-link--trigger[aria-expanded='true'] .nav-caret {
  transform: rotate(180deg);
}

/* ── Мега-мени ────────────────────────────────────────────────────────── */

/* Панелот се позиционира во однос на заглавието (кое е sticky, значи и
   позиционирано), а не во однос на копчето — така останува центриран во
   страницата и не излегува надвор од левиот раб. */
.nav-dropdown {
  position: static;
}

.mega {
  position: absolute;
  top: calc(100% - 6px);
  left: 50%;
  z-index: 60;
  width: min(58rem, calc(100vw - 3rem));
  padding: 0.5rem;
  border: 1px solid var(--border);
  border-radius: 20px;
  background: var(--surface-glass);
  backdrop-filter: blur(18px) saturate(160%);
  -webkit-backdrop-filter: blur(18px) saturate(160%);
  box-shadow: var(--shadow-lg);
  opacity: 0;
  visibility: hidden;
  transform: translate(-50%, -8px);
  transition: opacity 0.24s ease, transform 0.24s ease, visibility 0.24s;
}

.mega.is-open {
  opacity: 1;
  visibility: visible;
  transform: translate(-50%, 0);
}

.mega__inner {
  display: grid;
  grid-template-columns: 15rem 1fr;
  gap: 0.5rem;
}

.mega__aside {
  display: flex;
  flex-direction: column;
  padding: 1.4rem;
  border-radius: 16px;
  background: linear-gradient(160deg, color-mix(in srgb, var(--brand) 22%, transparent), transparent 70%);
}

.mega__eyebrow {
  font-family: var(--font-display), sans-serif;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text);
}

.mega__lead {
  margin-top: 0.5rem;
  font-size: 0.83rem;
  line-height: 1.6;
  color: var(--text-muted);
}

.mega__cta {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin-top: auto;
  padding-top: 1rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--brand-soft);
}

.mega__cta svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.1;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: transform 0.25s ease;
}

.mega__cta:hover svg {
  transform: translateX(3px);
}

.mega__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.15rem;
}

.mega-item {
  display: flex;
  gap: 0.75rem;
  padding: 0.7rem 0.8rem;
  border-radius: 12px;
  transition: background-color 0.2s ease, transform 0.2s ease;
}

.mega-item:hover {
  background: color-mix(in srgb, var(--surface-2) 85%, transparent);
  transform: translateX(2px);
}

.mega-item__icon {
  display: grid;
  place-items: center;
  flex-shrink: 0;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  border: 1px solid color-mix(in srgb, var(--brand) 30%, transparent);
  background: color-mix(in srgb, var(--brand) 12%, transparent);
}

.mega-item__body {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  min-width: 0;
}

.mega-item__title {
  font-size: 0.87rem;
  font-weight: 600;
  color: var(--text);
}

.mega-item__text {
  font-size: 0.76rem;
  line-height: 1.45;
  color: var(--text-dim);
}

.svc-icon {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: var(--brand-soft);
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.svc-icon--sm { width: 16px; height: 16px; }
.svc-icon--lg { width: 26px; height: 26px; }

/* ── Јазик и тема ─────────────────────────────────────────────────────── */

.lang-switch {
  display: inline-flex;
  padding: 3px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: color-mix(in srgb, var(--surface) 70%, transparent);
}

.lang-switch__btn {
  padding: 0.3rem 0.6rem;
  border: 0;
  border-radius: 999px;
  background: none;
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--text-dim);
  cursor: pointer;
  transition: background-color 0.22s ease, color 0.22s ease;
}

.lang-switch__btn.is-active {
  background: var(--brand);
  color: var(--on-brand);
}

.icon-btn {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: color-mix(in srgb, var(--surface) 70%, transparent);
  color: var(--text-muted);
  cursor: pointer;
  transition: color 0.22s ease, border-color 0.22s ease, transform 0.22s ease;
}

.icon-btn:hover {
  color: var(--brand-soft);
  border-color: var(--brand-soft);
  transform: translateY(-1px);
}

.icon-btn svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* Прикажи ја иконата на темата кон која ќе се префрли корисникот. */
[data-theme='dark'] .icon-moon { display: none; }
[data-theme='light'] .icon-sun { display: none; }

/* ── Хамбургер и фиока ────────────────────────────────────────────────── */

/* Прикажувањето по големина на екран е дефинирано овде, а не со Tailwind
   помошни класи, бидејќи оваа датотека се вчитува по генерираниот CSS. */
.header-cta {
  display: none;
}

.burger {
  display: grid;
  place-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: color-mix(in srgb, var(--surface) 70%, transparent);
  cursor: pointer;
}

@media (min-width: 1024px) {
  .header-cta { display: inline-flex; }
  .burger { display: none; }
}

/* Редот во заглавието мора да собере и на најтесните телефони. Без ова
   хамбургерот завршува надвор од екранот и страницата добива хоризонтално
   лизгање. The header row has to fit the narrowest phones — otherwise the
   burger lands off-screen and the page scrolls sideways. */
@media (max-width: 1023.98px) {
  .site-header .container { gap: 0.6rem; }

  /* Знакот смее да се стесни; контролите десно не смеат. */
  .brand { min-width: 0; flex-shrink: 1; }

  .brand__word {
    min-width: 0;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
  }

  .lang-switch,
  .icon-btn,
  .burger { flex-shrink: 0; }
}

@media (max-width: 480px) {
  .site-header .container { padding-inline: 0.9rem; }
  .brand__mark { height: 26px; }
  .brand__word { font-size: 0.9rem; letter-spacing: 0.07em; }
  .lang-switch__btn { padding: 0.3rem 0.45rem; }
}

/* Под 375px останува само знакот — целото име го носи aria-label на врската. */
@media (max-width: 374.98px) {
  .brand__word { display: none; }
}

.burger span {
  display: block;
  width: 18px;
  height: 2px;
  border-radius: 2px;
  background: var(--text);
  transition: transform 0.28s ease, opacity 0.2s ease;
}

.burger.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger.is-open span:nth-child(2) { opacity: 0; }
.burger.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.drawer {
  position: fixed;
  inset: 64px 0 0;
  z-index: 45;
  padding: 1.25rem;
  background: var(--bg);
  overflow-y: auto;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: opacity 0.28s ease, transform 0.28s ease, visibility 0.28s;
}

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

@media (min-width: 1024px) {
  .drawer { display: none; }
}

.drawer__inner {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.drawer-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 0.95rem 0.75rem;
  border: 0;
  border-bottom: 1px solid var(--border);
  border-radius: 0;
  background: none;
  font-family: var(--font-display), sans-serif;
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--text);
  text-align: left;
  cursor: pointer;
}

.drawer-link svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: var(--text-muted);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: transform 0.25s ease;
}

.drawer-link[aria-expanded='true'] svg {
  transform: rotate(180deg);
}

/* Отворање без мерење на висина: решетка од 0fr кон 1fr. */
.drawer-sub {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}

.drawer-sub.is-open {
  grid-template-rows: 1fr;
}

.drawer-sub__inner {
  overflow: hidden;
}

.drawer-sublink {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.72rem 0.75rem 0.72rem 1.1rem;
  font-size: 0.92rem;
  color: var(--text-muted);
  border-bottom: 1px solid color-mix(in srgb, var(--border) 60%, transparent);
}

.drawer-sublink:hover {
  color: var(--brand-soft);
}

.drawer__footer {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-top: 1.5rem;
  align-items: center;
}

.drawer__phone {
  font-family: var(--font-display), sans-serif;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--brand-soft);
}

/* ── 6. Херој ─────────────────────────────────────────────────────────── */

.hero {
  position: relative;
  display: flex;
  align-items: center;
  min-height: min(92vh, 780px);
  padding-block: 4rem 5rem;
  overflow: hidden;
}

.hero__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(120% 90% at 50% -10%, color-mix(in srgb, var(--brand) 20%, transparent) 0%, transparent 58%),
    var(--bg);
}

.aurora {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  opacity: 0.5;
}

.aurora--one {
  top: -20vh;
  left: -10vw;
  width: 52vw;
  height: 52vw;
  background: radial-gradient(circle, color-mix(in srgb, var(--brand) 55%, transparent), transparent 68%);
  animation: drift-a 24s ease-in-out infinite;
}

.aurora--two {
  bottom: -26vh;
  right: -12vw;
  width: 56vw;
  height: 56vw;
  background: radial-gradient(circle, color-mix(in srgb, var(--accent) 38%, transparent), transparent 68%);
  animation: drift-b 29s ease-in-out infinite;
}

@keyframes drift-a {
  0%, 100% { transform: translate3d(0, 0, 0) scale(1); }
  50%      { transform: translate3d(6vw, 5vh, 0) scale(1.12); }
}

@keyframes drift-b {
  0%, 100% { transform: translate3d(0, 0, 0) scale(1.06); }
  50%      { transform: translate3d(-7vw, -4vh, 0) scale(0.94); }
}

.grid-plane {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(var(--grid-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid-line) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(72% 60% at 50% 42%, #000 0%, transparent 78%);
  -webkit-mask-image: radial-gradient(72% 60% at 50% 42%, #000 0%, transparent 78%);
  animation: grid-slide 26s linear infinite;
}

@keyframes grid-slide {
  from { background-position: 0 0; }
  to   { background-position: 0 64px; }
}

#hero-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0.8;
}

.vignette {
  position: absolute;
  inset: 0;
  background: radial-gradient(115% 85% at 50% 45%, transparent 42%, var(--bg) 100%);
}

.hero__inner {
  position: relative;
  z-index: 1;
  text-align: center;
}

.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.5rem 1.05rem;
  border: 1px solid color-mix(in srgb, var(--brand) 30%, transparent);
  border-radius: 999px;
  background: color-mix(in srgb, var(--surface) 60%, transparent);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--text-muted);
}

.hero__badge-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #34d399;
  box-shadow: 0 0 10px rgba(52, 211, 153, 0.9);
  animation: blink 2.6s ease-in-out infinite;
}

@keyframes blink {
  0%, 100% { opacity: 1; }
  50%      { opacity: 0.35; }
}

.hero__title {
  margin-top: 1.6rem;
  font-family: var(--font-display), sans-serif;
  font-size: clamp(2.1rem, 6vw, 3.9rem);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.025em;
  color: var(--text);
}

.hero__title span {
  display: block;
}

.hero__lead {
  max-width: 42rem;
  margin: 1.6rem auto 0;
  font-size: clamp(1rem, 1.6vw, 1.12rem);
  line-height: 1.72;
  color: var(--text-muted);
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.85rem;
  margin-top: 2.2rem;
}

.hero__trust {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem 1.8rem;
  margin-top: 2.6rem;
  font-size: 0.85rem;
  color: var(--text-dim);
}

.hero__trust li {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.tick {
  position: relative;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  border: 1px solid color-mix(in srgb, var(--brand) 55%, transparent);
  flex-shrink: 0;
}

.tick::after {
  content: '';
  position: absolute;
  left: 5px;
  top: 2.5px;
  width: 4px;
  height: 7px;
  border: solid var(--brand-soft);
  border-width: 0 1.6px 1.6px 0;
  transform: rotate(45deg);
}

/* ── 7. Лента со производители ────────────────────────────────────────── */

.brands {
  padding-block: 2.75rem;
  border-block: 1px solid var(--border);
  background: var(--bg-soft);
}

.brands__title {
  margin-bottom: 1.6rem;
  text-align: center;
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--text-dim);
}

.marquee {
  position: relative;
  overflow: hidden;
  mask-image: linear-gradient(90deg, transparent, #000 9%, #000 91%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 9%, #000 91%, transparent);
}

.marquee__track {
  display: flex;
  align-items: center;
  gap: 3rem;
  width: max-content;
  animation: marquee var(--marquee-duration, 42s) linear infinite;
}

.marquee:hover .marquee__track {
  animation-play-state: paused;
}

@keyframes marquee {
  from { transform: translate3d(0, 0, 0); }
  to   { transform: translate3d(-50%, 0, 0); }
}

.marquee__item span {
  font-family: var(--font-display), sans-serif;
  font-size: clamp(1rem, 2vw, 1.3rem);
  font-weight: 600;
  letter-spacing: 0.02em;
  white-space: nowrap;
  color: var(--text-dim);
  opacity: 0.75;
  transition: color 0.25s ease, opacity 0.25s ease;
}

.marquee__item:hover span {
  color: var(--brand-soft);
  opacity: 1;
}

/* ── 8. Картички ──────────────────────────────────────────────────────── */

.value-card,
.solution-card {
  display: flex;
  flex-direction: column;
  padding: 1.5rem;
  border: 1px solid var(--border);
  border-radius: 18px;
  background: var(--surface);
  box-shadow: var(--shadow-card);
  transition: transform 0.32s ease, border-color 0.32s ease, box-shadow 0.32s ease;
}

.value-card:hover,
.solution-card:hover {
  transform: translateY(-5px);
  border-color: color-mix(in srgb, var(--brand) 45%, transparent);
  box-shadow: 0 26px 56px -30px color-mix(in srgb, var(--brand) 50%, transparent);
}

.value-card__icon,
.solution-card__icon {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  margin-bottom: 1.1rem;
  border: 1px solid color-mix(in srgb, var(--brand) 28%, transparent);
  border-radius: 13px;
  background: color-mix(in srgb, var(--brand) 12%, transparent);
}

.value-card__icon svg {
  width: 21px;
  height: 21px;
  fill: none;
  stroke: var(--brand-soft);
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.value-card h3,
.solution-card__title {
  margin-bottom: 0.5rem;
  font-family: var(--font-display), sans-serif;
  font-size: 1.02rem;
  font-weight: 600;
  color: var(--text);
}

.value-card p,
.solution-card__text {
  font-size: 0.88rem;
  line-height: 1.65;
  color: var(--text-muted);
}

.solution-card__more {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin-top: 1.15rem;
  font-size: 0.83rem;
  font-weight: 600;
  color: var(--brand-soft);
}

.solution-card__more svg {
  width: 15px;
  height: 15px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: transform 0.25s ease;
}

.solution-card:hover .solution-card__more svg {
  transform: translateX(4px);
}

/* ── 9. Секции по услуга ──────────────────────────────────────────────── */

.svc-section {
  padding-block: 4rem;
  border-top: 1px solid var(--border);
  background: var(--bg);
}

.svc-section--alt {
  background: var(--bg-soft);
}

@media (min-width: 768px) {
  .svc-section { padding-block: 5rem; }
}

.svc-section__inner {
  display: grid;
  gap: 2.5rem;
  width: 100%;
  max-width: 1200px;
  margin-inline: auto;
  padding-inline: 1.25rem;
  align-items: start;
}

@media (min-width: 640px) {
  .svc-section__inner { padding-inline: 2rem; }
}

@media (min-width: 900px) {
  .svc-section__inner {
    grid-template-columns: 1.05fr 0.95fr;
    gap: 3.5rem;
  }
  .svc-section--alt .svc-section__main { order: 2; }
  .svc-section--alt .svc-panel { order: 1; }
}

/* Полињата на решетката не смеат да се шират според најдолгиот збор —
   инаку наслови како „Сајбер-безбедност“ ја разлеваат страницата на 320px.
   Grid items must not be sized by their longest word. */
.svc-section__inner > * {
  min-width: 0;
}

.section__title,
.svc-section__title,
.svc-section__tagline,
.svc-section__text,
.svc-panel__list li,
.faq-trigger__text {
  overflow-wrap: break-word;
}

.svc-section__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-display), sans-serif;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--text-dim);
}

.svc-section__num {
  padding: 0.2rem 0.5rem;
  border-radius: 6px;
  background: color-mix(in srgb, var(--brand) 16%, transparent);
  color: var(--brand-soft);
  letter-spacing: 0.08em;
}

.svc-section__title {
  margin-top: 1rem;
  font-family: var(--font-display), sans-serif;
  font-size: clamp(1.5rem, 3vw, 2.1rem);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: var(--text);
}

.svc-section__tagline {
  margin-top: 0.6rem;
  font-size: 1rem;
  font-weight: 500;
  color: var(--brand-soft);
}

.svc-section__text {
  margin-top: 1.1rem;
  font-size: 0.97rem;
  line-height: 1.78;
  color: var(--text-muted);
}

.svc-section__cta {
  margin-top: 1.8rem;
}

.svc-panel {
  padding: 1.75rem;
  border: 1px solid var(--border);
  border-radius: 20px;
  background: var(--surface);
  box-shadow: var(--shadow-card);
}

.svc-panel__glyph {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  margin-bottom: 1.4rem;
  border: 1px solid color-mix(in srgb, var(--brand) 28%, transparent);
  border-radius: 15px;
  background: color-mix(in srgb, var(--brand) 12%, transparent);
}

.svc-panel__heading {
  font-family: var(--font-display), sans-serif;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-dim);
}

.svc-panel__heading--tech {
  margin-top: 1.75rem;
}

.svc-panel__list {
  margin-top: 0.9rem;
  display: grid;
  gap: 0.7rem;
}

.svc-panel__list li {
  position: relative;
  padding-left: 1.6rem;
  font-size: 0.9rem;
  line-height: 1.6;
  color: var(--text-muted);
}

.svc-panel__list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.45rem;
  width: 8px;
  height: 8px;
  border-radius: 2px;
  background: linear-gradient(140deg, var(--brand-soft), var(--accent));
}

.svc-panel__tech {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-top: 0.9rem;
}

.svc-panel__tech span {
  padding: 0.35rem 0.75rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--surface-2);
  font-size: 0.76rem;
  font-weight: 500;
  color: var(--text-muted);
}

/* ── 10. Процес ───────────────────────────────────────────────────────── */

.process {
  display: grid;
  gap: 1rem;
  counter-reset: step;
}

@media (min-width: 640px) {
  .process { grid-template-columns: repeat(2, 1fr); gap: 1.25rem; }
}

@media (min-width: 1024px) {
  .process { grid-template-columns: repeat(4, 1fr); }
}

.process__step {
  position: relative;
  padding: 1.6rem 1.4rem;
  border: 1px solid var(--border);
  border-radius: 18px;
  background: var(--surface);
  transition: transform 0.3s ease, border-color 0.3s ease;
}

.process__step:hover {
  transform: translateY(-4px);
  border-color: color-mix(in srgb, var(--brand) 42%, transparent);
}

.process__num {
  display: inline-block;
  margin-bottom: 0.9rem;
  font-family: var(--font-display), sans-serif;
  font-size: 1.9rem;
  font-weight: 700;
  line-height: 1;
  background: linear-gradient(140deg, var(--brand-soft), var(--accent));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.process__step h3 {
  margin-bottom: 0.45rem;
  font-family: var(--font-display), sans-serif;
  font-size: 1rem;
  font-weight: 600;
  color: var(--text);
}

.process__step p {
  font-size: 0.87rem;
  line-height: 1.65;
  color: var(--text-muted);
}

/* ── 11. Прашања ──────────────────────────────────────────────────────── */

.faq-layout {
  display: grid;
  gap: 2.5rem;
}

@media (min-width: 960px) {
  .faq-layout {
    grid-template-columns: 0.85fr 1.15fr;
    gap: 4rem;
    align-items: start;
  }
  .faq-layout .section__head { position: sticky; top: 110px; margin-bottom: 0; }
}

.faq-cta {
  margin-top: 2rem;
  padding: 1.25rem;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: var(--surface);
}

.faq-cta p {
  margin-bottom: 0.9rem;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text);
}

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

.faq-item {
  border: 1px solid var(--border);
  border-radius: 16px;
  background: var(--surface);
  overflow: hidden;
  transition: border-color 0.28s ease, box-shadow 0.28s ease;
}

.faq-item.is-open {
  border-color: color-mix(in srgb, var(--brand) 42%, transparent);
  box-shadow: var(--shadow-card);
}

.faq-trigger {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  width: 100%;
  padding: 1.15rem 1.3rem;
  border: 0;
  background: none;
  text-align: left;
  cursor: pointer;
}

.faq-trigger__text {
  font-family: var(--font-display), sans-serif;
  font-size: 0.97rem;
  font-weight: 600;
  line-height: 1.45;
  color: var(--text);
}

.faq-trigger__icon {
  display: grid;
  place-items: center;
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  border: 1px solid var(--border-strong);
  border-radius: 8px;
  transition: transform 0.3s ease, background-color 0.3s ease, border-color 0.3s ease;
}

.faq-trigger__icon svg {
  width: 14px;
  height: 14px;
  fill: none;
  stroke: var(--brand-soft);
  stroke-width: 2.2;
  stroke-linecap: round;
}

.faq-trigger[aria-expanded='true'] .faq-trigger__icon {
  transform: rotate(135deg);
  background: color-mix(in srgb, var(--brand) 18%, transparent);
  border-color: color-mix(in srgb, var(--brand) 45%, transparent);
}

.faq-panel {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.38s cubic-bezier(0.22, 1, 0.36, 1);
}

.faq-item.is-open .faq-panel {
  grid-template-rows: 1fr;
}

.faq-panel__inner {
  overflow: hidden;
}

.faq-panel p {
  padding: 0 1.3rem 1.3rem;
  font-size: 0.91rem;
  line-height: 1.75;
  color: var(--text-muted);
}

/* ── 12. Контакт ──────────────────────────────────────────────────────── */

.contact-layout {
  display: grid;
  gap: 1.5rem;
}

@media (min-width: 960px) {
  .contact-layout {
    grid-template-columns: 0.8fr 1.2fr;
    gap: 2rem;
    align-items: start;
  }
}

.contact-side {
  display: grid;
  gap: 0.9rem;
}

.contact-card {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1rem;
  padding: 1.35rem;
  border: 1px solid var(--border);
  border-radius: 18px;
  background: var(--surface);
  transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

a.contact-card:hover {
  transform: translateY(-3px);
  border-color: color-mix(in srgb, var(--brand) 45%, transparent);
  box-shadow: var(--shadow-card);
}

.contact-card__icon {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 1px solid color-mix(in srgb, var(--brand) 28%, transparent);
  border-radius: 12px;
  background: color-mix(in srgb, var(--brand) 12%, transparent);
}

.contact-card__icon svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: var(--brand-soft);
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.contact-card__body {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  min-width: 0;
}

.contact-card__label {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-dim);
}

.contact-card__value {
  font-family: var(--font-display), sans-serif;
  font-size: 1.02rem;
  font-weight: 700;
  color: var(--text);
  overflow-wrap: anywhere;
}

.contact-card__text {
  font-size: 0.82rem;
  line-height: 1.55;
  color: var(--text-muted);
}

.contact-card__cta {
  grid-column: 1 / -1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.6rem 1rem;
  border-radius: 999px;
  background: linear-gradient(120deg, var(--brand-soft), var(--brand));
  color: var(--on-brand);
  font-size: 0.84rem;
  font-weight: 700;
}

/* ── Форма ────────────────────────────────────────────────────────────── */

.contact-form {
  padding: 1.75rem;
  border: 1px solid var(--border);
  border-radius: 22px;
  background: var(--surface);
  box-shadow: var(--shadow-card);
}

@media (min-width: 640px) {
  .contact-form { padding: 2.25rem; }
}

.field {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.field label {
  display: flex;
  align-items: baseline;
  gap: 0.45rem;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text);
}

.field__hint {
  font-size: 0.72rem;
  font-weight: 400;
  color: var(--text-dim);
}

.field input,
.field textarea,
.field select {
  width: 100%;
  padding: 0.72rem 0.9rem;
  border: 1px solid var(--border-strong);
  border-radius: 12px;
  background: var(--bg-soft);
  color: var(--text);
  font: inherit;
  font-size: 0.92rem;
  transition: border-color 0.22s ease, box-shadow 0.22s ease, background-color 0.22s ease;
}

.field textarea {
  resize: vertical;
  min-height: 120px;
}

.field input::placeholder,
.field textarea::placeholder {
  color: var(--text-dim);
}

.field input:focus,
.field textarea:focus,
.field select:focus {
  outline: none;
  border-color: var(--brand-soft);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--brand) 22%, transparent);
}

.field.has-error input,
.field.has-error textarea,
.field.has-error select {
  border-color: #f87171;
  box-shadow: 0 0 0 3px rgba(248, 113, 113, 0.16);
}

.field__error {
  min-height: 1rem;
  font-size: 0.76rem;
  color: #f87171;
}

.select-wrap {
  position: relative;
}

.select-wrap select {
  appearance: none;
  -webkit-appearance: none;
  padding-right: 2.4rem;
  cursor: pointer;
}

.select-wrap svg {
  position: absolute;
  right: 0.9rem;
  top: 50%;
  width: 16px;
  height: 16px;
  transform: translateY(-50%);
  pointer-events: none;
  fill: none;
  stroke: var(--text-dim);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.honeypot {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.contact-form__foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem;
  margin-top: 1.5rem;
}

.contact-form__consent {
  flex: 1 1 14rem;
  font-size: 0.76rem;
  line-height: 1.55;
  color: var(--text-dim);
}

.form-status {
  margin-top: 1.1rem;
  padding: 0.85rem 1.05rem;
  border-radius: 12px;
  font-size: 0.86rem;
  font-weight: 500;
}

.form-status--ok {
  border: 1px solid rgba(52, 211, 153, 0.4);
  background: rgba(52, 211, 153, 0.12);
  color: #34d399;
}

.form-status--err {
  border: 1px solid rgba(248, 113, 113, 0.4);
  background: rgba(248, 113, 113, 0.12);
  color: #f87171;
}

/* ── 13. Подножје ─────────────────────────────────────────────────────── */

.site-footer {
  padding-block: 3.5rem 2rem;
  border-top: 1px solid var(--border);
  background: var(--bg-soft);
}

.footer__grid {
  display: grid;
  gap: 2.5rem;
}

@media (min-width: 640px) {
  .footer__grid { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 1024px) {
  .footer__grid { grid-template-columns: 1.4fr 1fr 0.8fr 1fr; gap: 3rem; }
}

.footer__brand .brand__logo {
  width: 190px;
  height: auto;
}

.footer__tagline {
  margin-top: 1.1rem;
  max-width: 22rem;
  font-size: 0.87rem;
  line-height: 1.7;
  color: var(--text-muted);
}

.footer__title {
  margin-bottom: 1.1rem;
  font-family: var(--font-display), sans-serif;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text);
}

.footer__list {
  display: grid;
  gap: 0.65rem;
}

.footer__list a,
.footer__list span {
  font-size: 0.86rem;
  line-height: 1.5;
  color: var(--text-muted);
  transition: color 0.22s ease;
}

.footer__list a:hover {
  color: var(--brand-soft);
}

.footer__bar {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  margin-top: 2.75rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
  font-size: 0.79rem;
  color: var(--text-dim);
}

@media (min-width: 640px) {
  .footer__bar { flex-direction: row; justify-content: space-between; align-items: center; }
}

.footer__slogan {
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

/* ── 14. Назад на врвот ───────────────────────────────────────────────── */

.back-to-top {
  position: fixed;
  right: 1.25rem;
  bottom: 1.25rem;
  z-index: 40;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 1px solid var(--border-strong);
  border-radius: 50%;
  background: var(--surface-glass);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  color: var(--text);
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition: opacity 0.3s ease, transform 0.3s ease, visibility 0.3s, border-color 0.25s ease;
}

.back-to-top.is-visible {
  opacity: 1;
  visibility: visible;
  transform: none;
}

.back-to-top:hover {
  border-color: var(--brand-soft);
  color: var(--brand-soft);
}

.back-to-top svg {
  width: 19px;
  height: 19px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* ── 15. Намалено движење ─────────────────────────────────────────────── */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .reveal { opacity: 1; transform: none; }
  .marquee__track { animation: none; transform: none; }
  #hero-canvas { display: none; }
}
