:root {
  --bg: #f3f0e8;
  --ink: #141414;
  --muted: #6b6860;
  --accent: #2f5bff;
  --mint: #cfe9dc;
  --line: rgba(20, 20, 20, .14);
  --serif: "Fraunces", Georgia, serif;
  --sans: "Space Grotesk", system-ui, sans-serif;
  --pad: clamp(1.25rem, 5vw, 4.5rem);
  --ease: cubic-bezier(.2, .8, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html {
  scroll-behavior: smooth;
  scroll-padding-top: 5rem;
  scrollbar-width: none;
  -ms-overflow-style: none;
}
html::-webkit-scrollbar, body::-webkit-scrollbar { display: none; width: 0; height: 0; }
body {
  font-family: var(--sans);
  background: var(--bg);
  color: var(--ink);
  line-height: 1.55;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
em { font-family: var(--serif); font-style: italic; font-weight: 400; color: var(--accent); }

/* progress + auto-hide floating scrollbar */
.progress { position: fixed; top: 0; left: 0; height: 3px; width: 100%; background: var(--accent); transform: scaleX(0); transform-origin: left; z-index: 100; opacity: 0; transition: opacity .4s var(--ease); }
.progress.is-active { opacity: 1; }
.scroll-indicator {
  position: fixed; top: 12vh; bottom: 12vh; right: 6px; width: 5px;
  border-radius: 99px; background: rgba(20, 20, 20, .08);
  z-index: 99; pointer-events: none;
  opacity: 0; transform: translateX(8px);
  transition: opacity .45s var(--ease), transform .45s var(--ease);
}
.scroll-indicator.is-active { opacity: 1; transform: translateX(0); }
.scroll-indicator__thumb {
  width: 100%; height: 18%; border-radius: 99px;
  background: var(--accent);
  transform: translateY(0);
}

/* nav */
body.menu-open { overflow: hidden; }
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  display: flex; justify-content: space-between; align-items: center;
  padding: 1rem var(--pad);
  transition: transform .4s var(--ease);
}
.nav::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: rgba(243, 240, 232, .88);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
  opacity: 0; transition: opacity .3s; pointer-events: none;
}
.nav.is-scrolled::before { opacity: 1; }
.nav.is-hidden { transform: translateY(-100%); }
.logo { font-family: var(--serif); font-size: 2rem; line-height: 1; position: relative; z-index: 60; }
.logo span { color: var(--accent); }
.nav__links { display: flex; align-items: center; gap: 2rem; font-size: .95rem; }
.nav__links a:not(.btn) { position: relative; }
.nav__links a:not(.btn)::after { content: ""; position: absolute; left: 0; bottom: -4px; height: 1px; width: 100%; background: currentColor; transform: scaleX(0); transform-origin: right; transition: transform .35s var(--ease); }
.nav__links a:not(.btn):hover::after { transform: scaleX(1); transform-origin: left; }
.burger { display: none; background: none; border: 0; width: 40px; height: 40px; position: relative; z-index: 60; cursor: pointer; }
.burger span { position: absolute; left: 8px; right: 8px; height: 2px; background: var(--ink); transition: transform .3s var(--ease); }
.burger span:first-child { top: 15px; } .burger span:last-child { top: 23px; }
.burger[aria-expanded="true"] span:first-child { transform: translateY(4px) rotate(45deg); }
.burger[aria-expanded="true"] span:last-child { transform: translateY(-4px) rotate(-45deg); }

/* buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  background: var(--ink); color: var(--bg); border: 1px solid var(--ink);
  padding: .95rem 1.7rem; border-radius: 999px; font: 500 1rem var(--sans); cursor: pointer;
  transition: background .3s, color .3s, transform .3s var(--ease);
}
.btn:hover { background: var(--accent); border-color: var(--accent); color: #fff; transform: translateY(-2px); }
.btn--ghost { background: transparent; color: var(--ink); }
.btn--small { padding: .55rem 1.2rem; font-size: .9rem; }
.btn--block { width: 100%; }

/* hero */
.hero { position: relative; min-height: 100svh; padding: 7.5rem var(--pad) 3rem; display: flex; flex-direction: column; justify-content: flex-end; overflow: hidden; }
.eyebrow { position: relative; z-index: 2; font-size: .85rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin-bottom: 1.5rem; }
.hero__grid { display: grid; grid-template-columns: 1fr auto; align-items: end; gap: 2.5rem; position: relative; z-index: 2; }
.hero__title { font-family: var(--serif); font-weight: 400; font-size: clamp(3.4rem, 11.5vw, 12rem); line-height: 1.02; letter-spacing: -.03em; }
/* Dovoljno prostora iznad prvog retka za kvačicu na Č, a negativni margin samo između 2. i 3. retka */
.line { display: block; overflow: hidden; padding: .18em 0 .08em; }
.line + .line { margin-top: -.18em; }

/* Stadionski LED semafor */
.scoreboard {
  --led-digits: "Silkscreen", monospace;
  background-color: #0b0d10;
  background-image: radial-gradient(rgba(255, 255, 255, .08) 1px, transparent 0);
  background-size: 4px 4px;
  color: #f3f0e8;
  border: 3px solid #262a32;
  outline: 2px solid #0b0d10;
  border-radius: 1rem;
  padding: 1rem 1.35rem .9rem;
  box-shadow: 0 22px 45px -18px rgba(0, 0, 0, .55), inset 0 0 24px rgba(0, 0, 0, .85);
  min-width: 23rem;
}
.scoreboard__header {
  display: flex; align-items: center; justify-content: center; gap: .5rem;
  font-family: var(--sans); font-weight: 700; font-size: .7rem; letter-spacing: .14em;
  color: #9aa3b2; padding-bottom: .65rem; margin-bottom: .85rem;
  border-bottom: 1px dashed rgba(255, 255, 255, .16);
}
.scoreboard__dot {
  width: 8px; height: 8px; border-radius: 50%; background: #3dff98;
  box-shadow: 0 0 8px #3dff98; animation: blink 1.6s infinite;
}
@keyframes blink { 50% { opacity: .25; } }
.scoreboard__display {
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 1rem;
}
.scoreboard__team { display: flex; flex-direction: column; gap: .2rem; }
.scoreboard__team--guest { text-align: right; align-items: flex-end; }
.scoreboard__label {
  font-size: .64rem; font-weight: 500; letter-spacing: .16em; text-transform: uppercase; color: #7c8594;
}
.scoreboard__name {
  font-family: var(--sans); font-weight: 700; font-size: 1rem; letter-spacing: .1em;
  color: #ffcf4a; text-shadow: 0 0 10px rgba(255, 207, 74, .45); white-space: nowrap;
}
.scoreboard__digits {
  display: inline-flex; align-items: center; gap: .35rem;
  background-color: #040507;
  background-image: radial-gradient(rgba(255, 255, 255, .06) 1px, transparent 0);
  background-size: 3px 3px;
  padding: .45rem .8rem; border-radius: .5rem;
  border: 1px solid #282e3a; box-shadow: inset 0 2px 10px rgba(0,0,0,.95);
}
.digit {
  font-family: var(--led-digits); font-weight: 700; font-size: 2.5rem; line-height: 1;
  padding: .05rem .25rem; display: inline-block;
}
.digit--win { color: #3dff98; text-shadow: 0 0 14px rgba(61, 255, 152, .8); }
.digit--lose { color: #ff4d4d; text-shadow: 0 0 14px rgba(255, 77, 77, .75); }
.digit-colon {
  font-family: var(--led-digits); font-weight: 700; font-size: 1.9rem; line-height: 1; color: #ffcf4a;
  text-shadow: 0 0 8px rgba(255, 207, 74, .7);
}
.scoreboard__footer {
  margin-top: .85rem; padding-top: .6rem; border-top: 1px dashed rgba(255, 255, 255, .14);
  text-align: center; font-size: .76rem; letter-spacing: .08em; text-transform: uppercase; color: #9aa3b2;
}
.line > span { display: inline-block; transform: translateY(115%); animation: rise 1.1s var(--ease) forwards; }
.line:nth-child(2) > span { animation-delay: .12s; }
.line:nth-child(3) > span { animation-delay: .24s; }
@keyframes rise { to { transform: none; } }
.hero__bottom { display: flex; justify-content: space-between; align-items: flex-end; gap: 2rem; margin-top: 3rem; flex-wrap: wrap; position: relative; z-index: 2; }
.hero__lead { max-width: 34rem; font-size: 1.15rem; }
.hero__cta { display: flex; gap: .75rem; flex-wrap: wrap; }
.hero__blob { position: absolute; border-radius: 50%; filter: blur(2px); z-index: 1; }
.hero__blob--a { width: 34vw; height: 34vw; background: var(--mint); right: -6vw; top: 8vh; animation: float 9s ease-in-out infinite; }
.hero__blob--b { width: 12vw; height: 12vw; background: var(--accent); right: 24vw; top: 38vh; opacity: .9; animation: float 7s ease-in-out infinite reverse; }
@keyframes float { 50% { transform: translateY(-24px) scale(1.04); } }

/* marquee */
.marquee { border-block: 1px solid var(--ink); overflow: hidden; background: var(--ink); color: var(--bg); }
.marquee__track { display: flex; gap: 2rem; width: max-content; padding: 1.1rem 0; font-family: var(--serif); font-size: clamp(1.6rem, 3vw, 2.5rem); animation: scroll 35s linear infinite; }
.marquee__track i { color: var(--accent); font-style: normal; }
@keyframes scroll { to { transform: translateX(-50%); } }

/* sections */
.section { padding: clamp(5rem, 12vw, 10rem) var(--pad); position: relative; }
.section__head { margin-bottom: 4rem; }
.index { display: block; font-size: .9rem; color: var(--muted); margin-bottom: 1rem; }
.h2 { font-family: var(--serif); font-weight: 400; font-size: clamp(2.6rem, 7vw, 6.5rem); line-height: .98; letter-spacing: -.02em; }
.h2--xl { font-size: clamp(4rem, 11vw, 10rem); line-height: .88; }
.lead { font-size: 1.2rem; max-width: 38rem; margin-top: 1.75rem; }

/* services */
.services { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }
.service { background: #fff; border: 1px solid var(--line); border-radius: 1.75rem; padding: 2rem; min-height: 19rem; display: flex; flex-direction: column; transition: transform .5s var(--ease), box-shadow .5s var(--ease); }
.service:hover { transform: translateY(-8px); box-shadow: 0 24px 40px -24px rgba(20,20,20,.35); }
.service--mint { background: var(--mint); border-color: transparent; }
.service--blue { background: var(--accent); color: #fff; border-color: transparent; }
.service--green { background: #e3f0c8; border-color: transparent; }
.service__icon { font-size: 2rem; margin-bottom: auto; color: var(--accent); transition: transform .5s var(--ease); }
.service--blue .service__icon { color: #fff; }
.service:hover .service__icon { transform: rotate(20deg) scale(1.15); }
.service h3 { font-family: var(--serif); font-weight: 400; font-size: clamp(1.8rem, 2.6vw, 2.4rem); line-height: 1.05; margin: 2.5rem 0 .6rem; }
.service p { font-size: .98rem; opacity: .85; }

/* cjenik */
.price-hero { display: flex; justify-content: space-between; align-items: center; gap: 2rem; flex-wrap: wrap; background: var(--accent); color: #fff; border-radius: 2rem; padding: 2rem 2.5rem; margin-bottom: 2rem; }
.price-hero__label { display: block; font-size: .85rem; text-transform: uppercase; letter-spacing: .1em; opacity: .8; }
.price-hero__value { font-family: var(--serif); font-size: clamp(4rem, 10vw, 8rem); line-height: 1; }
.price-hero__value small { font-size: .3em; margin-left: .3em; opacity: .85; }
.price-hero p { max-width: 26rem; font-size: 1.1rem; }
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 1.5rem; background: #fff; }
.prices { width: 100%; border-collapse: collapse; min-width: 560px; }
.prices caption { text-align: left; padding: 1.2rem 1.5rem; font-size: .85rem; color: var(--muted); border-bottom: 1px solid var(--line); }
.prices th, .prices td { padding: 1rem 1.5rem; text-align: left; border-bottom: 1px solid var(--line); }
.prices thead th { font-size: .8rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); font-weight: 500; }
.prices thead small { text-transform: none; letter-spacing: 0; }
.prices tbody th { font-weight: 500; }
.prices td:nth-child(3), .prices td:nth-child(4) { white-space: nowrap; font-variant-numeric: tabular-nums; }
.prices td:nth-child(3) { font-weight: 700; }
.prices tbody tr:last-child > * { border-bottom: 0; }
.prices tbody tr { transition: background .25s; }
.prices tbody tr:hover { background: var(--bg); }
.prices__note { margin-top: 1.25rem; font-size: .9rem; color: var(--muted); max-width: 52rem; }
.prices__note a { color: var(--accent); border-bottom: 1px solid currentColor; }

/* faq */
.faq { border-top: 1px solid var(--line); max-width: 60rem; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; padding: 1.5rem 3rem 1.5rem 0; position: relative; font-family: var(--serif); font-size: clamp(1.4rem, 2.4vw, 2rem); line-height: 1.15; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: .25rem; top: 50%; transform: translateY(-50%); font-family: var(--sans); font-size: 1.8rem; color: var(--accent); transition: transform .35s var(--ease); }
.faq details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq details p { padding: 0 3rem 1.5rem 0; color: var(--muted); max-width: 46rem; }

/* split */
.section--split { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(2rem, 6vw, 6rem); align-items: center; border-top: 1px solid var(--line); }
.ticks { margin-top: 2rem; }
.ticks li { padding: 1rem 0 1rem 2.2rem; border-top: 1px solid var(--line); position: relative; }
.ticks li:last-child { border-bottom: 1px solid var(--line); }
.ticks li::before { content: "✦"; color: var(--accent); position: absolute; left: 0; }
.split__visual svg { width: 100%; height: auto; display: block; }
.bubbles circle { animation: bob 5s ease-in-out infinite; transform-box: fill-box; transform-origin: center; }
.bubbles circle:nth-child(2n) { animation-delay: -1.5s; animation-duration: 6s; }
.bubbles circle:nth-child(3n) { animation-delay: -3s; }
@keyframes bob { 50% { transform: translateY(-14px); } }

/* dark / steps */
.section--dark { background: var(--ink); color: var(--bg); border-radius: 2.5rem; margin: 0 .75rem; }
.section--dark .index { color: rgba(243, 240, 232, .55); }
.section--dark em { color: #8fa8ff; }
.steps { border-top: 1px solid rgba(243, 240, 232, .2); }
.step { display: grid; grid-template-columns: 8rem 1fr; gap: 1rem; padding: 2.2rem 0; border-bottom: 1px solid rgba(243, 240, 232, .2); align-items: baseline; transition: padding-left .4s var(--ease); }
.step:hover { padding-left: 1.5rem; }
.step > span { font-family: var(--serif); font-size: 3.5rem; color: #8fa8ff; line-height: 1; }
.step h3 { font-family: var(--serif); font-weight: 400; font-size: clamp(2rem, 4vw, 3.4rem); line-height: 1; }
.step p { margin-top: .5rem; max-width: 34rem; opacity: .75; }

/* IT */
.section--it { border-top: 1px solid var(--line); }
.it-grid { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.it { padding: 2.2rem; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); min-height: 17rem; transition: background .35s, color .35s; }
.it:hover { background: var(--ink); color: var(--bg); }
.it__icon { display: block; font-size: 2.2rem; color: var(--accent); margin-bottom: 2.5rem; transition: transform .5s var(--ease); }
.it:hover .it__icon { transform: rotate(90deg) scale(1.2); }
.it h3 { font-family: var(--serif); font-weight: 400; font-size: 1.9rem; line-height: 1.05; margin-bottom: .6rem; }
.it p { color: var(--muted); font-size: .98rem; }
.it:hover p { color: rgba(243, 240, 232, .75); }

/* contact */
.section--contact { background: var(--mint); border-radius: 2.5rem 2.5rem 0 0; margin-top: 6rem; }
.contact { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(2rem, 6vw, 6rem); align-items: start; }
.mail { display: inline-block; margin-top: 1.5rem; font-family: var(--serif); font-size: clamp(1.6rem, 3.4vw, 3rem); border-bottom: 2px solid var(--ink); transition: color .3s, border-color .3s; word-break: break-all; }
.mail:hover { color: var(--accent); border-color: var(--accent); }
.form { background: var(--bg); padding: 2rem; border-radius: 1.75rem; display: grid; gap: 1.25rem; }
.form label { display: grid; gap: .4rem; font-size: .85rem; color: var(--muted); text-transform: uppercase; letter-spacing: .08em; }
.form input, .form select, .form textarea { font: 400 1rem var(--sans); color: var(--ink); background: transparent; border: 0; border-bottom: 1px solid var(--ink); padding: .6rem 0; outline: none; border-radius: 0; text-transform: none; letter-spacing: 0; resize: vertical; }
.form input:focus, .form select:focus, .form textarea:focus { border-color: var(--accent); }
.form .invalid { border-color: #d33; }
.form__note { font-size: .8rem; color: var(--muted); text-align: center; }

/* footer */
.footer { background: var(--ink); color: var(--bg); padding: 3rem var(--pad) 2rem; overflow: hidden; }
.footer__big { font-family: var(--serif); font-size: clamp(8rem, 30vw, 30rem); line-height: .8; letter-spacing: -.04em; color: var(--bg); margin-bottom: 2rem; }
.footer__row { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; font-size: .9rem; border-top: 1px solid rgba(243, 240, 232, .2); padding-top: 1.5rem; }
.footer__row a:hover { color: #8fa8ff; }

/* Prije / Poslije & Galerija */
.ba-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; margin-top: 2.5rem; }
.ba-card { background: #fff; border: 1px solid var(--line); border-radius: 1.75rem; overflow: hidden; box-shadow: 0 18px 36px -22px rgba(20, 20, 20, .25); }
.ba-slider { position: relative; aspect-ratio: 16 / 10; overflow: hidden; user-select: none; --pos: 50%; background: #dfd9ce; }
.ba-layer { position: absolute; inset: 0; width: 100%; height: 100%; }
.ba-layer svg, .ba-layer img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ba-layer--before { clip-path: inset(0 calc(100% - var(--pos)) 0 0); }
.ba-badge {
  position: absolute; top: 1rem; padding: .35rem .8rem; border-radius: 99px;
  font-size: .75rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
}
.ba-badge--before { left: 1rem; background: rgba(20, 20, 20, .8); color: #fff; }
.ba-badge--after { right: 1rem; background: var(--accent); color: #fff; }
.ba-handle {
  position: absolute; top: 0; bottom: 0; left: var(--pos); width: 3px;
  background: #fff; transform: translateX(-50%); pointer-events: none;
  box-shadow: 0 0 12px rgba(0, 0, 0, .35);
}
.ba-handle span {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
  width: 2.6rem; height: 2.6rem; border-radius: 50%;
  background: #fff; color: var(--ink); font-weight: 700;
  display: grid; place-items: center;
  box-shadow: 0 6px 18px rgba(0, 0, 0, .28);
}
.ba-range {
  position: absolute; inset: 0; width: 100%; height: 100%;
  opacity: 0; cursor: ew-resize; margin: 0; z-index: 5;
}
.ba-caption { padding: 1.4rem 1.6rem 1.5rem; }
.ba-caption h3 { font-family: var(--serif); font-weight: 400; font-size: 1.75rem; line-height: 1.1; margin-bottom: .35rem; }
.ba-caption p { color: var(--muted); font-size: .95rem; }

.gallery-dynamic { margin-top: 3.5rem; }
.gallery-dynamic__title { font-family: var(--serif); font-weight: 400; font-size: 2.2rem; margin-bottom: 1.5rem; }
.gallery-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 1.25rem; }
.gallery-item { border-radius: 1.25rem; overflow: hidden; border: 1px solid var(--line); background: #fff; aspect-ratio: 4 / 3; }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .5s var(--ease); }
.gallery-item:hover img { transform: scale(1.04); }

/* scroll reveal — efekt da se stranica stvara dok se skrola */
.reveal {
  opacity: 0;
  transform: translateY(56px) scale(.97);
  filter: blur(6px);
  transition: opacity .95s var(--ease), transform .95s var(--ease), filter .95s var(--ease);
  transition-delay: var(--d, 0s);
  will-change: opacity, transform, filter;
}
.reveal.is-visible {
  opacity: 1;
  transform: none;
  filter: blur(0);
}

/* responsive */
@media (max-width: 1100px) {
  .services { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 900px) {
  .section--split, .contact, .hero__grid, .ba-grid { grid-template-columns: 1fr; }
  .scoreboard { justify-self: start; width: 100%; max-width: 26rem; min-width: 0; }
  .it-grid { grid-template-columns: 1fr 1fr; }
  .burger { display: block; }
  .nav__links {
    position: fixed; top: 0; left: 0; width: 100vw; height: 100vh; height: 100dvh;
    background-color: var(--bg);
    flex-direction: column; justify-content: center; gap: 1.5rem;
    font-family: var(--serif); font-size: 2.4rem;
    transform: translateY(-100%); transition: transform .5s var(--ease);
    z-index: 55;
  }
  .nav__links.is-open { transform: none; }
  .nav__links .btn { font: 500 1.1rem var(--sans); padding: .8rem 1.8rem; }
  .hero__blob--a { width: 60vw; height: 60vw; }
  .step { grid-template-columns: 4rem 1fr; }
}
@media (max-width: 600px) {
  .it-grid, .services { grid-template-columns: 1fr; }
  .service { min-height: 0; }
  .section--dark { margin: 0; border-radius: 1.5rem; }
  .price-hero { padding: 1.5rem; }
  .prices th, .prices td { padding: .85rem 1rem; }
  .scoreboard { padding: .85rem .9rem; }
  .scoreboard__name { font-size: .78rem; }
  .digit { font-size: 1.85rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .reveal, .line > span { opacity: 1; transform: none; }
}
