/* Бубамара Коп — боје узете са логотипа и машина */
:root {
  --red: #f2062a;
  --red-d: #c50421;
  --ink: #101622;
  --ink-2: #1b2232;
  --paper: #f3faf9;
  --mint: #f1fcfc;
  --yellow: #f6b800;
  --font-d: 'Unbounded', 'Arial Black', system-ui, sans-serif;
  --font-b: 'Onest', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --gut: clamp(16px, 4vw, 56px);
  --bug: min(70vh, 128vw);
  --slot: clamp(58px, 6.4vw, 96px);
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--ink);
  color: var(--ink);
  font: 400 18px/1.5 var(--font-b);
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
}
img, video, svg { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3, p { margin: 0; }
::selection { background: var(--yellow); color: var(--ink); }
:focus-visible { outline: 3px solid var(--yellow); outline-offset: 3px; border-radius: 6px; }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip {
  position: fixed; left: 12px; top: -60px; z-index: 100;
  background: var(--yellow); color: var(--ink); padding: 10px 16px; border-radius: 10px;
  font-weight: 700; text-decoration: none; transition: top .2s;
}
.skip:focus { top: 12px; }

/* Слова која се појављују једно по једно */
.ch { display: inline-block; will-change: transform; }
.chw { display: inline-block; white-space: nowrap; }

/* ---------- Мала бубамара (лого, напредак, подножје) ---------- */
.mini { overflow: visible; }
.mini__legs path, .mini__ant { stroke: var(--ink); stroke-width: 2.6; stroke-linecap: round; fill: none; }
.mini__head, .mini__dots circle, .mini__seam { fill: var(--ink); }
.mini__seam { stroke: var(--ink); stroke-width: 1.6; }
.mini__body { fill: var(--red); stroke: var(--ink); stroke-width: 2; }
.crawl:not(.is-dark) .mini__legs path, .crawl:not(.is-dark) .mini__ant { stroke: var(--paper); }
.crawl:not(.is-dark) .mini__head { fill: var(--paper); }
.crawl .mini * { transition: stroke .35s, fill .35s; }
.mini__legs path { transform-box: fill-box; }
.mini__legs .lgA, .mini__legs .lgB { transform-origin: 100% 50%; }
.mini__legs path:nth-child(n+4) { transform-origin: 0% 50%; }
.walking .lgA { animation: step .26s ease-in-out infinite alternate; }
.walking .lgB { animation: step .26s ease-in-out infinite alternate-reverse; }
@keyframes step { from { rotate: -22deg; } to { rotate: 22deg; } }

/* ---------- Горња трака ---------- */
.top {
  position: fixed; inset: 0 0 auto; z-index: 50;
  display: flex; justify-content: space-between; align-items: center;
  padding: max(10px, env(safe-area-inset-top)) var(--gut) 10px;
  background: var(--mint); color: var(--ink);
  box-shadow: 0 1px 0 rgba(16, 22, 34, .08), 0 8px 24px -16px rgba(16, 22, 34, .35);
}
.brand {
  display: inline-flex; align-items: center; gap: 10px;
  font: 800 15px/1 var(--font-d); letter-spacing: .02em; text-transform: uppercase; text-decoration: none;
}
.brand .mini { width: 28px; transition: rotate .4s cubic-bezier(.3, 1.6, .5, 1); }
.brand:hover .mini { rotate: -18deg; }
.call {
  font: 800 14px/1 var(--font-d); text-transform: uppercase; letter-spacing: .03em;
  padding: 13px 20px; border-radius: 999px; text-decoration: none;
  background: var(--red); color: #fff;
  transition: background .25s, translate .25s;
}
.call:hover { translate: 0 -2px; background: var(--red-d); }

/* ---------- Пузајућа бубамара: показује докле сте стигли ---------- */
.crawl {
  position: fixed; right: max(10px, env(safe-area-inset-right)); top: 96px; bottom: 28px; width: 20px;
  z-index: 40; pointer-events: none; color: var(--paper); transition: color .35s;
}
.crawl.is-dark { color: var(--ink); }
.crawl__line, .crawl__done { position: absolute; left: 50%; width: 2px; margin-left: -1px; top: 0; }
.crawl__line { bottom: 0; background: repeating-linear-gradient(currentColor 0 5px, transparent 5px 12px); opacity: .3; }
.crawl__done { height: 0; background: currentColor; opacity: .55; border-radius: 2px; }
.crawl__bug { position: absolute; left: 0; top: 0; width: 20px; transition: rotate .35s ease; }
.crawl__bug .mini__body { stroke: var(--ink); }
.crawl.down .crawl__bug { rotate: 180deg; }
html:not(.motion) .crawl { display: none; }

/* ---------- Почетак ---------- */
.stage { position: relative; background: var(--mint); color: var(--ink); }
.stage__pin { position: relative; overflow: hidden; }
.hero {
  position: relative; min-height: 100svh;
  display: grid; place-items: center; align-content: center;
  padding: 88px var(--gut) 120px;
}

.bugbox {
  position: absolute; z-index: 2; left: 50%; top: 50%;
  height: var(--bug); aspect-ratio: 680 / 990; max-width: 92vw;
  translate: -50% -52%;
  will-change: transform, opacity;
}
.bug-tilt { width: 100%; height: 100%; transition: rotate .6s cubic-bezier(.2, .8, .2, 1); }
.bug { width: 100%; height: 100%; overflow: visible; cursor: pointer; -webkit-tap-highlight-color: transparent; }

@keyframes spin { to { rotate: 360deg; } }

/* Текстови са логоа */
.bug .t { font-family: Arial, 'Helvetica Neue', 'Liberation Sans', sans-serif; font-size: 54px; fill: var(--red); }
.bug .t-side { font-size: 40px; }
.bug .t-bot { font-size: 50px; }
.bug .t-year { font: 700 38px Arial, 'Helvetica Neue', 'Liberation Sans', sans-serif; fill: var(--ink); }

/* Делови бубамаре */
.bug .head, .bug .belly, .bug .arm, .bug .seam { fill: var(--ink); }
.bug .cyl { stroke: var(--paper); stroke-width: 2.4; stroke-linecap: round; opacity: .55; fill: none; }
.bug .leg path { fill: none; stroke: var(--ink); stroke-width: 8; stroke-linecap: round; stroke-linejoin: round; }
.bug .leg .claw { fill: var(--ink); stroke-width: 3; }
.bug .shell { fill: var(--red); }
.bug .hw { fill: rgba(243, 250, 249, .55); stroke: rgba(16, 22, 34, .5); stroke-width: 2; opacity: var(--open, 0); }
.stage .bug { --open: 0; }
.stage .bug .logo-txt { opacity: calc(1 - var(--open) * 1.6); }

.ring-c { fill: var(--red); stroke: var(--ink); stroke-width: 3.4; }
.ico { fill: var(--ink); }
.ico .win, .ico .hub { fill: var(--red); }
.ico .spoke { stroke: var(--red); stroke-width: 1.6; }

.wing, .flap, .hw { transform-origin: 723px 600px; }
.wing-l { transform: translateX(calc(var(--open) * -22px)) rotate(calc(var(--open) * 16deg)); }
.wing-r { transform: translateX(calc(var(--open) * 22px)) rotate(calc(var(--open) * -16deg)); }
.hw-l { transform: rotate(calc(var(--open) * 28deg)); }
.hw-r { transform: rotate(calc(var(--open) * -28deg)); }
.seam { opacity: calc(1 - var(--open) * 3); }

.bug.flutter .wing-l .flap { animation: flapL .16s ease-in-out 6 alternate; }
.bug.flutter .wing-r .flap { animation: flapR .16s ease-in-out 6 alternate; }
.bug.flutter .hw { opacity: 1; animation: buzz .08s linear 12 alternate; }
@keyframes flapL { to { transform: rotate(22deg); } }
@keyframes flapR { to { transform: rotate(-22deg); } }
@keyframes buzz { to { transform: rotate(0deg) scale(1.03); } }

/* Антене-багери копају */
.antenna .a-boom, .antenna .a-stick, .antenna .a-bucket { transform-origin: 0 0; }
.motion .antenna .a-boom { animation: boom 3.4s ease-in-out infinite; }
.motion .antenna .a-stick { animation: stick 3.4s ease-in-out infinite; }
.motion .antenna .a-bucket { animation: bucket 3.4s ease-in-out infinite; }
@keyframes boom { 0%, 100% { rotate: 0deg; } 35% { rotate: -9deg; } 65% { rotate: 7deg; } }
@keyframes stick { 0%, 100% { rotate: 0deg; } 35% { rotate: 16deg; } 65% { rotate: -8deg; } }
@keyframes bucket { 0%, 100% { rotate: 0deg; } 40% { rotate: 42deg; } 70% { rotate: -14deg; } }

/* Ноге-кашике мрдају */
.bug .leg { transform-box: fill-box; }
.leg.l { transform-origin: 100% 0; }
.leg.r { transform-origin: 0 0; }
.motion .bug .leg { animation: legs 1.6s ease-in-out infinite; }
.motion .bug .leg:nth-child(2n) { animation-delay: -.8s; }
@keyframes legs { 0%, 100% { rotate: 0deg; } 50% { rotate: 7deg; } }

/* Машине у тачкицама — сваки део ради свој посао */
.ico .i-boom, .ico .i-stick, .ico .i-bucket, .ico .i-bed, .ico .i-front, .ico .i-wheel { transform-box: view-box; }
.spot .i-boom, .fly .i-boom { transform-origin: 53px 52px; }
.spot .i-stick, .fly .i-stick { transform-origin: 37px 29px; }
.spot .i-bucket, .fly .i-bucket { transform-origin: 26px 53px; }
.ico .i-bed { transform-origin: 20px 55px; }
.ico .i-front { transform-origin: 62px 52px; }
.ico .i-wheel { transform-origin: 0 0; }
/* Ровокопач: рука позади */
:is([data-svc="2"], [data-svc="5"]) .i-boom { transform-origin: 30px 50px; }
:is([data-svc="2"], [data-svc="5"]) .i-stick { transform-origin: 18px 28px; }
:is([data-svc="2"], [data-svc="5"]) .i-bucket { transform-origin: 16px 50px; }
/* Рушење: рука напред */
[data-svc="4"] .i-boom { transform-origin: 43px 52px; }
[data-svc="4"] .i-stick { transform-origin: 65px 24px; }

.motion [data-svc="0"] .i-boom { animation: iBoom 2.8s ease-in-out infinite; }
.motion [data-svc="0"] .i-stick { animation: iStick 2.8s ease-in-out infinite; }
.motion [data-svc="0"] .i-bucket { animation: iBucket 2.8s ease-in-out infinite; }
.motion [data-svc="1"] .i-bed { animation: tip 3.2s ease-in-out infinite; }
.motion [data-svc="2"] .i-front { animation: level 2.4s ease-in-out infinite; }
.motion [data-svc="2"] .ico { animation: push 2.4s ease-in-out infinite; }
.motion [data-svc="3"] .i-wheel { animation: spin 1.1s linear infinite; }
.motion [data-svc="3"] .i-drive { animation: bob .55s ease-in-out infinite alternate; }
.motion [data-svc="4"] .i-boom { animation: hitB 1.6s ease-in-out infinite; }
.motion [data-svc="4"] .i-stick { animation: hitS 1.6s ease-in-out infinite; }
.motion [data-svc="5"] .i-boom { animation: iBoom 3s ease-in-out infinite reverse; }
.motion [data-svc="5"] .i-bucket { animation: iBucket 3s ease-in-out infinite; }
.motion [data-svc="5"] .i-front { animation: lift 3s ease-in-out infinite; }
@keyframes iBoom { 0%, 100% { rotate: 0deg; } 40% { rotate: 10deg; } 70% { rotate: -6deg; } }
@keyframes iStick { 0%, 100% { rotate: 0deg; } 40% { rotate: -14deg; } 70% { rotate: 10deg; } }
@keyframes iBucket { 0%, 100% { rotate: 0deg; } 45% { rotate: -40deg; } 75% { rotate: 10deg; } }
@keyframes tip { 0%, 20%, 100% { rotate: 0deg; } 50%, 65% { rotate: -24deg; } }
@keyframes push { 0%, 100% { translate: -4px 0; } 50% { translate: 4px 0; } }
@keyframes bob { to { translate: 0 -1.2px; } }
@keyframes hitB { 0%, 100% { rotate: -4deg; } 55% { rotate: 6deg; } }
@keyframes hitS { 0%, 100% { rotate: -6deg; } 55% { rotate: 10deg; } }
@keyframes level { 0%, 100% { rotate: 0deg; } 50% { rotate: 8deg; } }
@keyframes lift { 0%, 100% { rotate: 0deg; } 50% { rotate: -14deg; } }

.hero__cta {
  position: absolute; z-index: 4; left: 0; right: 0; bottom: max(28px, env(safe-area-inset-bottom));
  display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; padding: 0 var(--gut);
}
.pill {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 16px 26px; border-radius: 999px;
  background: var(--paper); color: var(--ink); text-decoration: none;
  font: 800 clamp(15px, 1.4vw, 19px)/1 var(--font-d); letter-spacing: .01em;
  background: var(--red); color: #fff;
  box-shadow: 0 6px 0 var(--ink);
  transition: translate .2s, box-shadow .2s, background .2s;
}
.pill:hover { translate: 0 -3px; box-shadow: 0 9px 0 var(--ink); }
.pill:active { translate: 0 3px; box-shadow: 0 3px 0 var(--ink); }
.pill:nth-child(2) { background: var(--ink); color: var(--paper); box-shadow: 0 6px 0 var(--red); }
.pill:nth-child(2):hover { box-shadow: 0 9px 0 var(--red); }

/* Услуге */
.svc { position: relative; padding: 40px var(--gut) 80px; }
.svc__title {
  color: var(--red);
  font: 900 clamp(2.4rem, 7.4vw, 7rem)/.88 var(--font-d);
  text-transform: uppercase; letter-spacing: -.035em; text-align: center;
  margin-bottom: clamp(20px, 4.5vh, 52px);
}
.svc__grid {
  list-style: none; margin: 0 auto; padding: 0;
  width: min(1180px, 100%);
  display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(12px, 2vw, 28px);
}
.svc__item {
  --tilt: -2deg;
  position: relative; z-index: 2;
  background: var(--ink); color: var(--paper);
  border-radius: clamp(20px, 2.4vw, 32px);
  padding: clamp(16px, 2.2vw, 30px);
  display: flex; flex-direction: column; justify-content: space-between; gap: clamp(12px, 2vh, 26px);
  min-height: clamp(150px, 24vh, 250px);
  rotate: var(--tilt);
  box-shadow: 0 10px 0 var(--red);
  transition: rotate .35s cubic-bezier(.3, 1.5, .5, 1);
}
.svc__item { min-width: 0; }
.svc__item h3 { overflow-wrap: anywhere; }
.svc__item:nth-child(2n) { --tilt: 2.4deg; }
.svc__item:nth-child(3n) { --tilt: -1deg; }
.svc__item:hover { rotate: 0deg; }
.svc__item h3 {
  font: 800 clamp(.95rem, 2vw, 1.9rem)/1.02 var(--font-d);
  text-transform: uppercase; letter-spacing: -.02em;
}
.svc__slot.filled { border-color: transparent; }
.svc__slot {
  display: block; flex: none; width: var(--slot); aspect-ratio: 1; border-radius: 50%; transition: border-color .3s;
  border: 3px dashed rgba(243, 250, 249, .3);
}

.flies { position: absolute; inset: 0; z-index: 5; pointer-events: none; }
.fly { position: absolute; left: 0; top: 0; width: var(--slot); height: var(--slot); will-change: transform; }
.fly svg { width: 100%; height: 100%; overflow: visible; }
.fly__in { width: 100%; height: 100%; scale: 0; }
.ready .fly__in { animation: pop .7s cubic-bezier(.3, 1.8, .5, 1) forwards; animation-delay: calc(.55s + var(--i) * .09s); }
@keyframes pop { to { scale: 1; } }

/* Без анимација / без JS: услуге стоје испод почетка, тачкице на бубамари */
html:not(.motion) .flies { display: none; }
html.js.motion .bug .spot { visibility: hidden; }

/* Са анимацијама: закачена сцена коју скрол води напред-назад */
html.motion .stage { height: 300vh; }
html.motion .stage__pin { position: sticky; top: 0; height: 100vh; height: 100svh; }
html.motion .hero { position: absolute; inset: 0; min-height: 0; }
html.motion .svc {
  position: absolute; inset: 0; z-index: 3; padding: 76px var(--gut) 28px;
  display: flex; flex-direction: column; justify-content: center;
  pointer-events: none;
}
html.motion .svc.on { pointer-events: auto; }
html.motion .svc__title, html.motion .svc__item { opacity: 0; }

/* Улазак на учитавању */
html.motion .bugbox .bug-in { scale: .4; rotate: -30deg; opacity: 0; }
html.motion .bug-in { width: 100%; height: 100%; transition: scale 1.1s cubic-bezier(.3, 1.5, .5, 1), rotate 1.1s cubic-bezier(.3, 1.5, .5, 1), opacity .4s; }
html.motion.ready .bugbox .bug-in { scale: 1; rotate: 0deg; opacity: 1; }
html.motion .bug .t { opacity: 0; }
html.motion.ready .bug .t { opacity: 1; transition: opacity .9s .8s; }
html.motion .hero__cta .pill { translate: 0 30px; opacity: 0; }
html.motion.ready .hero__cta .pill { translate: 0 0; opacity: 1; transition: translate .7s .9s cubic-bezier(.2, 1.4, .4, 1), opacity .5s .9s; }
html.motion.ready .hero__cta .pill:nth-child(2) { transition-delay: 1s; }
html.motion.ready .hero__cta .pill:hover { translate: 0 -3px; transition-delay: 0s; }

/* Закривљена ивица испод црвеног дела */
.lip {
  height: clamp(48px, 9vw, 140px); background: var(--mint);
  border-radius: 0 0 50% 50% / 0 0 100% 100%;
  margin-top: -1px;
}

/* ---------- Траке ---------- */
.belts { padding: clamp(60px, 12vh, 140px) 0; overflow: hidden; background: var(--ink); }
.belt {
  width: 112vw; margin-left: -6vw;
  font: 900 clamp(1.9rem, 5.6vw, 5.4rem)/1 var(--font-d);
  text-transform: uppercase; letter-spacing: -.02em; white-space: nowrap;
  padding: .32em 0; overflow: hidden;
}
.belt--y { background: var(--yellow); color: var(--ink); rotate: -3.2deg; position: relative; z-index: 2; }
.belt--r { background: var(--red); color: var(--paper); rotate: 2.6deg; margin-top: -.15em; }
.belt__track { display: inline-flex; align-items: center; will-change: transform; }
.belt__track > * { flex: none; }
.belt span { padding: 0 .35em; }
.sep {
  display: inline-block; width: .8em; height: .9em; margin: 0 .2em;
  background: currentColor;
  -webkit-mask: url('../../favicon.svg') center/contain no-repeat;
  mask: url('../../favicon.svg') center/contain no-repeat;
}
.belt--y .sep { background: var(--red); }
.belt--r .sep { background: var(--ink); }

/* ---------- Галерија ---------- */
.gal { position: relative; background: var(--ink); color: var(--paper); }
.gal__pin { padding: 10vh 0; }
.gal__track {
  display: flex; align-items: center; gap: clamp(18px, 3.4vw, 56px);
  padding: 4vh var(--gut); overflow-x: auto; scroll-snap-type: x mandatory;
}

/* Наслов стоји изнад фотографија док се оне померају */
.gal__head {
  display: flex; align-items: flex-end; gap: clamp(16px, 3vw, 40px);
  padding: 0 var(--gut); margin-bottom: clamp(14px, 3vh, 36px);
}
.gal__title {
  flex: none; display: flex; flex-wrap: wrap; gap: 0 .28em;
  font: 900 clamp(2.4rem, 7.4vw, 7rem)/.9 var(--font-d);
  text-transform: uppercase; letter-spacing: -.04em;
  will-change: transform;
}
.gal__title .w { display: block; overflow: hidden; padding-bottom: .04em; }
.gal__title .w + .w { color: var(--yellow); }
.gal__bar {
  flex: 1; height: 6px; margin-bottom: .9em; border-radius: 6px;
  background: rgba(243, 250, 249, .14); overflow: hidden; min-width: 40px;
}
.gal__bar span { display: block; height: 100%; background: var(--yellow); transform-origin: 0 50%; transform: scaleX(0); }
html:not(.motion) .gal__bar { display: none; }
.tile {
  --r: -2.5deg; --y: -3vh;
  flex: none; margin: 0; height: min(54vh, 540px);
  border-radius: clamp(16px, 2vw, 28px); overflow: hidden; background: var(--ink-2);
  rotate: var(--r); translate: 0 var(--y);
  scroll-snap-align: center;
  box-shadow: 0 0 0 4px var(--paper);
}
.tile:nth-child(2n) { --r: 2deg; --y: 4vh; }
.tile:nth-child(3n) { --r: -1deg; --y: 0vh; }
.tile img, .tile video { height: 100%; width: auto; max-width: none; object-fit: cover; transition: scale .6s cubic-bezier(.2, .8, .2, 1); }
.tile:hover img, .tile:hover video { scale: 1.05; }
.tile video { cursor: pointer; }
html.motion .gal__pin {
  position: sticky; top: 0; height: 100vh; height: 100svh; padding: 72px 0 0;
  overflow: hidden; display: flex; flex-direction: column; justify-content: center;
}
html.motion .gal__track { width: max-content; overflow: visible; scroll-snap-type: none; will-change: transform; }

/* ---------- Од 2021. / Четереже ---------- */
.since {
  position: relative; background: var(--paper); overflow: hidden;
  padding: clamp(80px, 16vh, 180px) 0 clamp(40px, 8vh, 100px);
  border-radius: clamp(40px, 8vw, 120px) clamp(40px, 8vw, 120px) 0 0 / clamp(40px, 6vw, 90px) clamp(40px, 6vw, 90px) 0 0;
}
.since__l {
  font: 900 clamp(3.4rem, 15vw, 19rem)/.86 var(--font-d);
  text-transform: uppercase; letter-spacing: -.045em; white-space: nowrap;
  color: var(--ink); padding: 0 var(--gut);
  width: max-content; will-change: transform;
}
@supports ((-webkit-background-clip: text) or (background-clip: text)) {
  .since__l {
    color: transparent;
    -webkit-background-clip: text; background-clip: text;
    background-size: cover; background-position: 50% var(--bp, 50%);
  }
  .since__l--a { background-image: linear-gradient(rgba(242, 6, 42, .25), rgba(242, 6, 42, .25)), url('../img/kamion-sut.webp'); }
  .since__l--b { background-image: linear-gradient(rgba(16, 22, 34, .15), rgba(16, 22, 34, .15)), url('../img/bageri-dvoriste.webp'); }
}

/* ---------- Контакт ---------- */
.contact { position: relative; background: var(--paper); padding: clamp(40px, 10vh, 120px) var(--gut) clamp(60px, 10vh, 110px); }
.contact__title {
  font: 900 clamp(2rem, 11.4vw, 13rem)/.84 var(--font-d);
  color: var(--red); text-transform: uppercase; letter-spacing: -.045em;
  overflow: hidden; padding: 0 .06em .05em 0;
}
.contact__title .ch { translate: 0 105%; transition: translate .8s cubic-bezier(.2, .9, .2, 1); transition-delay: calc(var(--i) * .04s); }
.contact__title.in .ch, html:not(.motion) .contact__title .ch { translate: 0 0; }
.phones { margin: clamp(18px, 4vh, 44px) 0 clamp(50px, 10vh, 120px); }
.phones a {
  position: relative; display: block; width: fit-content;
  font: 900 clamp(1.5rem, 8.2vw, 8.4rem)/1.04 var(--font-d);
  letter-spacing: -.04em; text-decoration: none; color: var(--ink);
  transition: color .25s;
}
.phones a::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: .02em; height: .1em;
  background: var(--red); transform: scaleX(0); transform-origin: 0 50%;
  transition: transform .45s cubic-bezier(.2, .8, .2, 1);
}
.phones a:hover { color: var(--red); }
.phones a:hover::after { transform: scaleX(1); }

.contact__grid { display: grid; grid-template-columns: 1fr 1.25fr; gap: clamp(32px, 6vw, 100px); align-items: start; }
.contact__info { display: grid; gap: 8px; }
.who { font: 800 clamp(1.3rem, 2.4vw, 2.2rem)/1.1 var(--font-d); text-transform: uppercase; letter-spacing: -.02em; }
.where { font: 700 clamp(1.1rem, 1.8vw, 1.6rem)/1.2 var(--font-d); color: var(--red); text-transform: uppercase; }
.mail {
  width: fit-content; font: 700 clamp(1rem, 1.6vw, 1.3rem)/1.3 var(--font-d);
  color: var(--ink); text-decoration: none; border-bottom: 3px solid var(--red);
  overflow-wrap: anywhere; transition: color .2s;
}
.mail:hover { color: var(--red); }
.ig {
  display: inline-flex; align-items: center; gap: 12px; width: fit-content; margin-top: 18px;
  font: 700 18px/1 var(--font-d); text-decoration: none;
  padding: 14px 20px 14px 14px; border-radius: 999px; background: var(--ink); color: var(--paper);
  transition: background .25s, translate .25s;
}
.ig:hover { background: var(--red); translate: 0 -2px; }
.ig svg { width: 26px; fill: none; stroke: currentColor; stroke-width: 2; }
.ig .ig__dot { fill: currentColor; stroke: none; }

.form { display: grid; gap: 18px; }
.form__title { font: 800 clamp(1.4rem, 2.6vw, 2.4rem)/1 var(--font-d); text-transform: uppercase; letter-spacing: -.02em; margin-bottom: 6px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.field { display: grid; gap: 6px; }
.field span { font: 700 13px/1 var(--font-d); text-transform: uppercase; letter-spacing: .08em; opacity: .7; }
.field input, .field textarea {
  width: 100%; font: 500 20px/1.4 var(--font-b); color: var(--ink);
  background: transparent; border: 0; border-bottom: 3px solid var(--ink); border-radius: 0;
  padding: 10px 2px; resize: vertical;
  transition: border-color .2s, background .2s;
}
.field textarea { min-height: 120px; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--red); background: rgba(242, 6, 42, .04); }
.field input:user-invalid, .field textarea:user-invalid { border-color: var(--red); }
.btn {
  justify-self: start; margin-top: 8px; cursor: pointer;
  font: 900 18px/1 var(--font-d); text-transform: uppercase; letter-spacing: .02em;
  padding: 20px 38px; border: 0; border-radius: 999px;
  background: var(--red); color: #fff; box-shadow: 0 6px 0 var(--ink);
  transition: translate .2s, box-shadow .2s, opacity .2s;
}
.btn:hover { translate: 0 -3px; box-shadow: 0 9px 0 var(--ink); }
.btn:active { translate: 0 3px; box-shadow: 0 3px 0 var(--ink); }
.btn[disabled] { opacity: .6; cursor: wait; }
.form__status { min-height: 1.5em; font-weight: 600; }
.form__status.ok { color: #0f7a3a; }
.form__status.err { color: var(--red-d); }

/* Појављивање при скролу — враћа се кад се скролује назад */
html.motion [data-reveal] { opacity: 0; translate: 0 50px; transition: opacity .7s, translate .9s cubic-bezier(.2, .9, .2, 1); }
html.motion [data-reveal].in { opacity: 1; translate: 0 0; }
html.motion .phones a[data-reveal]:nth-child(2) { transition-delay: .1s; }

/* ---------- Подножје ---------- */
.foot {
  position: relative; background: var(--ink); color: var(--paper);
  padding: clamp(56px, 9vw, 120px) var(--gut) max(28px, env(safe-area-inset-bottom));
  border-radius: clamp(28px, 4vw, 56px) clamp(28px, 4vw, 56px) 0 0;
  border-top: 6px solid var(--red);
}
/* бела подлога иза заобљених углова (иначе се види тамна позадина странице) */
.foot::before {
  content: ''; position: absolute; z-index: -1; left: 0; right: 0; top: -6px;
  height: clamp(40px, 6vw, 70px); background: var(--paper);
}
.foot__bug { position: absolute; left: 0; top: 0; width: 34px; z-index: 6; pointer-events: none; }
.foot__bug .mini__body { stroke: var(--ink); }
.foot__word {
  font: 900 min(11.6vw, 22rem)/.8 var(--font-d);
  text-transform: uppercase; letter-spacing: -.05em; text-align: center;
  display: flex; flex-direction: column; align-items: center;
}
.foot__word .w { display: block; overflow: hidden; padding: .02em .02em .06em; }
.foot__word .w + .w { color: var(--red); }
.foot__row {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px 28px;
  margin-top: clamp(30px, 6vh, 70px); padding-top: 20px;
  border-top: 2px solid rgba(243, 250, 249, .18);
  font: 600 15px/1.4 var(--font-d); color: rgba(243, 250, 249, .8);
}
.foot__row a { text-decoration: none; }
.foot__row a:hover { color: var(--yellow); }

/* ---------- Бубамаре које шетају по сајту ---------- */
.wanders { position: absolute; inset: 0; z-index: 4; pointer-events: none; overflow: hidden; }
.wander {
  position: absolute; left: 0; top: 0; overflow: visible;
  pointer-events: auto; cursor: pointer; -webkit-tap-highlight-color: transparent;
  filter: drop-shadow(0 2px 2px rgba(16, 22, 34, .25));
  will-change: transform;
}
.wander .mini__wings { opacity: 0; transition: opacity .15s; }
.wander .mini__wings ellipse { fill: rgba(243, 250, 249, .75); stroke: rgba(16, 22, 34, .45); stroke-width: 1; transform-box: fill-box; }
.wander .mini__wings .wl { transform-origin: 100% 15%; }
.wander .mini__wings .wr { transform-origin: 0% 15%; }
.wander.flying { filter: drop-shadow(0 14px 8px rgba(16, 22, 34, .2)); }
.wander.flying .mini__wings { opacity: 1; }
.wander.flying .mini__legs { opacity: 0; }
.wander.flying .wl { animation: wingL .06s linear infinite alternate; }
.wander.flying .wr { animation: wingR .06s linear infinite alternate; }
@keyframes wingL { from { rotate: -12deg; } to { rotate: -48deg; } }
@keyframes wingR { from { rotate: 12deg; } to { rotate: 48deg; } }
html:not(.motion) .wanders { display: none; }

/* ---------- Мањи екрани ---------- */
@media (max-width: 760px) {
  :root { --bug: min(62vh, 126vw); --slot: clamp(48px, 13vw, 64px); --gut: 26px; }
  body { font-size: 17px; }
  .brand span { display: none; }
  .svc__grid { grid-template-columns: repeat(2, 1fr); }
  .svc__item { min-height: 0; align-items: center; text-align: center; padding: 14px 10px 16px; }
  .svc__item h3 { font-size: clamp(.8rem, 3.6vw, 1rem); }
  .pill { padding: 14px 18px; }
  .tile { height: 54vh; }
  .gal__head { flex-direction: column; align-items: stretch; gap: 12px; }
  .gal__bar { flex: none; margin-bottom: 0; }
  .since { padding: 76px 0 64px; }
  .since__l { font-size: 12.4vw; line-height: 1; padding: 0 var(--gut); }
  .since__l + .since__l { margin-top: .14em; }
  .contact__grid { grid-template-columns: 1fr; }
  .foot__row { flex-direction: column; text-align: center; align-items: center; }
  .crawl { width: 14px; top: 84px; right: max(4px, env(safe-area-inset-right)); }
  .crawl__bug { width: 14px; }
}
@media (max-width: 760px) and (max-height: 700px) {
  :root { --bug: 54vh; --slot: 40px; }
  .svc__title { font-size: 1.6rem; margin-bottom: 12px; }
  .svc__grid { gap: 8px; }
  .svc__item { padding: 10px 8px 12px; gap: 6px; }
  .svc__item h3 { font-size: .74rem; }
  html.motion .svc { padding-top: 64px; padding-bottom: 12px; }
  .hero__cta { bottom: 14px; gap: 8px; }
  .pill { padding: 12px 16px; font-size: 14px; }
}
@media (orientation: landscape) and (max-height: 520px) {
  :root { --bug: 80vh; --slot: 44px; }
  .svc__grid { grid-template-columns: repeat(3, 1fr); }
  .svc__item { min-height: 0; padding: 8px 10px; flex-direction: row; align-items: center; gap: 10px; }
  .svc__item h3 { font-size: .72rem; }
  .svc__title { font-size: 1.6rem; margin-bottom: 8px; }
  html.motion .svc { padding-top: 58px; padding-bottom: 10px; }
  .tile { height: 50vh; }
  .gal__title { font-size: 1.8rem; }
  .gal__head { margin-bottom: 6px; }
  html.motion .gal__pin { padding-top: 56px; }
  .crawl { top: 64px; }
  .bugbox { height: 72vh; top: calc(50% + 26px); }
  .hero__cta {
    left: auto; right: calc(var(--gut) + 20px); bottom: 50%; translate: 0 50%;
    flex-direction: column; align-items: stretch; width: auto; padding: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
}

/* Иконе на картицама кад нема анимација */
.fly--static { position: static; width: 100%; height: 100%; }
.fly--static .fly__in { scale: 1; }

/* ---------- Мале странице (404, хвала) ---------- */
.page {
  min-height: 100svh; background: var(--mint); color: var(--ink);
  display: grid; place-items: center; text-align: center; padding: 40px var(--gut);
}
.page__in { display: grid; justify-items: center; gap: 22px; }
.page__big { font: 900 clamp(5rem, 26vw, 18rem)/.85 var(--font-d); color: var(--red); letter-spacing: -.05em; }
.page__txt { font: 800 clamp(1.3rem, 3.4vw, 2.4rem)/1.1 var(--font-d); text-transform: uppercase; letter-spacing: -.02em; }
.page .mini { width: 70px; }
.motion .page .mini { animation: lost 6s ease-in-out infinite; }
.page .mini .lgA { animation: step .26s ease-in-out infinite alternate; }
.page .mini .lgB { animation: step .26s ease-in-out infinite alternate-reverse; }
@keyframes lost {
  0% { translate: -90px 0; rotate: 90deg; }
  45% { translate: 90px 0; rotate: 90deg; }
  50% { translate: 90px 0; rotate: -90deg; }
  95% { translate: -90px 0; rotate: -90deg; }
  100% { translate: -90px 0; rotate: 90deg; }
}
