:root {
  --pink: #ee499a;
  --cream: #f1f0ee;
  --ink: #111114;
  --mist: #eff3f8;
  --line: #eadfe6;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  overflow-x: clip;
  font-family: "Instrument Sans", sans-serif;
  color: var(--ink);
  background: #fff;
  -webkit-font-smoothing: antialiased;
}

img {
  display: block;
  max-width: 100%;
}

a {
  text-decoration: none;
  color: inherit;
}

ul {
  list-style: none;
}

.btn {
  position: relative;
  z-index: 0;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 40px;
  padding: 8px 32px;
  border-radius: 32px;
  font-family: "Inter", sans-serif;
  font-weight: 600;
  font-size: 16px;
  letter-spacing: -0.008em;
  white-space: nowrap;
  transition: color 0.35s ease;
}

.btn::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  transform: scaleY(0);
  transform-origin: bottom;
  transition: transform 0.35s ease;
}

.btn:hover::before {
  transform: scaleY(1);
}

.btn-white {
  background: #fff;
  color: var(--pink);
  border: 1px solid #fff;
}

.btn-white::before {
  background: var(--pink);
}

.btn-white:hover {
  color: #fff;
}

.btn-ghost {
  border: 1px solid #fff;
  color: #fff;
}

.btn-ghost::before {
  background: #fff;
}

.btn-ghost:hover {
  color: var(--pink);
}

.hero {
  background: var(--pink);
  color: #fff;
  /* mesto za fiksirani meni (88px logo + 2 × 20px razmaka) */
  padding-top: 128px;
  position: relative;
  overflow: hidden;
}

/* da sidra ne završe ispod fiksiranog menija */
[id] {
  scroll-margin-top: 96px;
}

/* fiksiran, a ne sticky: kad se meni smanji ne sme da pomeri sadržaj ispod sebe,
   jer bi se usred glatkog skrolovanja pomerao i sam cilj skrola */
/* poravnanje je stalno space-between jer justify-content ne može da se animira;
   logo i dugme klize ka ivicama preko padding-a, koji može */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 70;
  background: var(--pink);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 20px 15%;
  transition: padding 0.6s cubic-bezier(0.65, 0, 0.35, 1);
}

body.skrol .nav {
  padding: 10px 30px;
}

.nav-brand img,
.nav-brand span {
  transition:
    width 0.6s cubic-bezier(0.65, 0, 0.35, 1),
    height 0.6s cubic-bezier(0.65, 0, 0.35, 1),
    font-size 0.6s cubic-bezier(0.65, 0, 0.35, 1);
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 14px;
}

.nav-brand img {
  width: 88px;
  height: 88px;
  object-fit: contain;
}

.nav-brand span {
  font-family: "Inter", sans-serif;
  font-weight: 900;
  font-size: 23.3px;
  white-space: nowrap;
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav-links a {
  position: relative;
  font-size: 16px;
  line-height: 20px;
  letter-spacing: -0.005em;
}

.nav-links a:hover {
  opacity: 0.8;
}

.nav-links a::after {
  content: "";
  position: absolute;
  bottom: -4px;
  right: 0;
  width: 0;
  height: 1px;
  background: #fff;
  transition: width 0.3s ease;
}

.nav-links a:hover::after {
  left: 0;
  right: auto;
  width: 100%;
}

.hero-inner {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 64px;
  padding: 32px 32px 115px;
}

.hero-left {
  width: 539px;
  flex-shrink: 0;
}

.hero-text {
  padding-top: 80px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.hero-text h1 {
  font-family: "Bricolage Grotesque", sans-serif;
  font-weight: 400;
  font-size: 80px;
  line-height: 1.15;
  letter-spacing: -2.4px;
}

.hero-text p {
  font-size: 16px;
  line-height: 24px;
}

.hero-actions {
  display: flex;
  gap: 16px;
  margin-top: 48px;
}

.hero-stats {
  display: flex;
  align-items: stretch;
  gap: 38px;
  margin-top: 88px;
}

.stat-value {
  display: flex;
  align-items: flex-end;
  gap: 3px;
  font-family: "Bricolage Grotesque", sans-serif;
  font-size: 50px;
  line-height: 1;
  letter-spacing: -2.5px;
  color: var(--cream);
}

.stat-value .plus {
  font-size: 38px;
  line-height: 1.1;
  letter-spacing: -1.9px;
}

.stat-value .pct {
  font-size: 25px;
  line-height: 1.4;
  letter-spacing: -1.25px;
}

.stat-label {
  margin-top: 13px;
  font-size: 12.5px;
  letter-spacing: -0.63px;
  color: var(--cream);
  max-width: 150px;
}

.stat-divider {
  width: 1px;
  background: rgba(255, 255, 255, 0.45);
}

.hero-photo img {
  width: 594px;
  height: 654px;
  object-fit: cover;
  object-position: center 80%;
  border-radius: 20px;
}

@media (max-width: 1280px) {
  /* uža margina, jer 15% na manjem ekranu previše steže meni */
  .nav {
    padding: 20px 6%;
  }

  .hero-inner {
    gap: 40px;
  }

  .hero-photo img {
    width: 480px;
    height: 560px;
  }
}

/* ================= Zajedničko za sekcije ================= */
.section-head {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  text-align: center;
}

.kicker {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #6b6b70;
}

.section-head h2 {
  font-family: "Bricolage Grotesque", sans-serif;
  font-weight: 400;
  font-size: 40px;
  line-height: 1.2;
  letter-spacing: -1.2px;
  color: var(--ink);
}

.section-cta {
  display: flex;
  justify-content: center;
  margin-top: 48px;
}

.btn-pink {
  background: var(--pink);
  color: #fff;
  border: 1px solid var(--pink);
}

.btn-pink::before {
  background: #fff;
}

.btn-pink:hover {
  color: var(--pink);
}

/* ================= Transformacije ================= */
.transformacije {
  background: #fff;
  padding: 88px 0 72px;
}

.transform-track {
  position: relative;
  margin-top: 48px;
  overflow: hidden;
}

.transform-track::before,
.transform-track::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  width: 344px;
  z-index: 2;
  pointer-events: none;
}

.transform-track::before {
  left: 0;
  background: linear-gradient(
    to right,
    #fff 0%,
    #fff 30%,
    rgba(255, 255, 255, 0.92) 48%,
    rgba(255, 255, 255, 0.65) 68%,
    rgba(255, 255, 255, 0) 100%
  );
}

.transform-track::after {
  right: 0;
  background: linear-gradient(
    to left,
    #fff 0%,
    #fff 30%,
    rgba(255, 255, 255, 0.92) 48%,
    rgba(255, 255, 255, 0.65) 68%,
    rgba(255, 255, 255, 0) 100%
  );
}

.transform-card {
  flex: 0 0 344px;
  height: 383px;
  margin-right: 40px;
  border-radius: 12px;
  overflow: hidden;
}

.transform-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.transform-card:hover img {
  transform: scale(1.06);
  /* blago uvećanje unutar zaobljenog okvira */
}

@keyframes marquee {
  from {
    transform: translate3d(0, 0, 0);
  }
  to {
    transform: translate3d(-50%, 0, 0);
  }
}

.transform-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ================= Usluge ================= */
.usluge {
  background: #fff;
  padding: 20px 32px;
}

/* ================= Usluge: kartice se slažu ================= */
.usluge-stack {
  max-width: 1040px;
  margin: 56px auto 0;
  /* prostor da poslednja kartica ostane zalepljena neko vreme */
  padding-bottom: 50vh;
}

.usluga {
  position: sticky;
  display: grid;
  grid-template-columns: 44% 1fr;
  background: #fff;
  border: 1px solid var(--line, #eadfe6);
  border-radius: 16px;
  overflow: hidden;
  margin-bottom: 28px;
  box-shadow: 0 -14px 40px rgba(23, 19, 26, 0.1);
  --vrh: calc(50vh + 36px - 176px);
}
/* kartica se lepi na sredinu vidljivog dela, ispod fiksiranog menija:
   72px je visina skupljenog menija, 176px je pola visine kartice */
.usluga:nth-of-type(1) {
  top: var(--vrh);
}
.usluga:nth-of-type(2) {
  top: calc(var(--vrh) + 20px);
}
.usluga:nth-of-type(3) {
  top: calc(var(--vrh) + 40px);
}

.usluga.flip {
  grid-template-columns: 1fr 44%;
}

.usluga.flip .usluga-photo {
  order: 2;
}

.usluga-photo {
  height: 350px;
}

.usluga-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.usluga-content {
  padding: 26px 44px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.usluga-content h3 {
  margin-top: 16px;
  font-family: "Bricolage Grotesque", sans-serif;
  font-weight: 400;
  font-size: 26px;
  letter-spacing: -0.5px;
  color: var(--ink);
}
.usluga-content p {
  margin-top: 14px;
  font-size: 14.5px;
  line-height: 22px;
  color: #4b4b52;
}

.section-sub {
  max-width: 620px;
  font-size: 14px;
  line-height: 22px;
  color: #55555c;
}

.usluga-broj {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: none;
  width: 52px;
  height: 52px;
  border: 1.5px solid var(--pink);
  border-radius: 50%;
  color: var(--pink);
  font-family: "Bricolage Grotesque", sans-serif;
  font-size: 21px;
}

.btn-small {
  height: 36px;
  padding: 6px 24px;
  font-size: 14px;
}

/* ================= Kompletna nega (baner) ================= */
.nega-baner {
  background: #fff;
  padding: 0 48px 88px;
}
.nega-box {
  max-width: 1040px;
  margin: 0 auto;
  background: var(--pink);
  border-radius: 32px;
  padding: 48px 56px;
  display: grid;
  grid-template-columns: 380px 1fr;
  gap: 56px;
  align-items: center;
  color: #fff;
}
.nega-text h2 {
  font-family: "Bricolage Grotesque", sans-serif;
  font-weight: 400;
  font-size: 48px;
  line-height: 1.15;
  letter-spacing: -1.4px;
}
.nega-text p {
  margin: 24px 0 40px;
  font-size: 14px;
  line-height: 22px;
}
.nega-photo img {
  width: 100%;
  height: 360px;
  object-fit: cover;
  border-radius: 20px;
}

/* ================= Kako izgleda nega ================= */
.proces {
  background: var(--mist);
  padding: 96px 32px;
}
.proces-inner {
  max-width: 1128px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}
.proces-inner h2 {
  font-family: "Bricolage Grotesque", sans-serif;
  font-weight: 400;
  font-size: 40px;
  letter-spacing: -1.2px;
  color: var(--ink);
}
.proces-inner p {
  max-width: 900px;
  margin-top: 24px;
  font-size: 14px;
  line-height: 22px;
  color: #4b4b52;
}
.proces-inner .btn {
  margin-top: 40px;
}

/* ================= Saveti (kartice) ================= */
.saveti {
  background: var(--mist);
  padding: 0 32px 96px;
}
.saveti-grid {
  max-width: 1190px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  perspective: 820px;
}

.savet-uvod {
  padding: 8px 24px 0 0;
}
.savet-uvod h2 {
  font-family: "Bricolage Grotesque", sans-serif;
  font-weight: 400;
  font-size: 32px;
  line-height: 1.2;
  letter-spacing: -0.9px;
  color: var(--ink);
}
.savet-uvod p {
  margin-top: 20px;
  font-size: 13px;
  line-height: 21px;
  color: #4b4b52;
}

.savet {
  background: #fff;
  border-radius: 12px;
  padding: 24px;
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease;
  transform-style: preserve-3d;
  will-change: transform;
}

.savet:hover {
  box-shadow: 0 22px 46px rgba(23, 19, 26, 0.16);
}

.savet h3 {
  --ls: -0.3px;
  font-family: "Bricolage Grotesque", sans-serif;
  font-weight: 400;
  font-size: 18px;
  letter-spacing: var(--ls);
  color: var(--ink);
}
.savet p {
  margin-top: 12px;
  font-size: 13px;
  line-height: 20px;
  color: #4b4b52;
}

.savet-pink {
  background: var(--pink);
}
.savet-pink h3,
.savet-pink p {
  color: #fff;
}

/* ================= Rail navigacija ================= */
.page-wrap {
  position: relative;
}

.rail {
  position: sticky;
  top: 0;
  height: 100vh;
  margin-bottom: -100vh;
  width: 128px;
  z-index: 60;
  pointer-events: none;
  display: none;
}
.rail-track {
  position: absolute;
  left: 34px;
  top: 120px;
  bottom: 80px;
  width: 2px;
  background: rgba(238, 73, 154, 0.22);
  border-radius: 2px;
}
.rail.on-light .rail-track {
  background: rgba(255, 255, 255, 0.35);
}

.rail-fill {
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 0;
  background: var(--pink);
  border-radius: 2px;
}
.rail.on-light .rail-fill {
  background: #fff;
}

.rail-links {
  position: absolute;
  left: 48px;
  top: 120px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  pointer-events: auto;
  will-change: transform;
}
.rail-link {
  font-size: 14px;
  line-height: 1.4;
  color: rgba(238, 73, 154, 0.55);
  transform-origin: left center;
  transition:
    color 0.25s ease,
    transform 0.3s cubic-bezier(0.19, 1, 0.22, 1);
}
.rail.on-light .rail-link {
  color: rgba(255, 255, 255, 0.72);
}
.rail-link:hover {
  color: var(--pink);
}
.rail.on-light .rail-link:hover {
  color: #fff;
}
.rail-link.active {
  color: var(--pink);
  transform: translateX(4px) scale(1.14);
}
.rail.on-light .rail-link.active {
  color: #fff;
}

@media (min-width: 1100px) {
  /* na vrhu stranice: klasičan meni, rail sakriven */
  .rail {
    display: block;
    opacity: 0;
    visibility: hidden;
    transform: translateX(-14px);
    transition:
      opacity 0.45s ease,
      transform 0.45s ease,
      visibility 0s linear 0.45s;
  }

  /* čim se krene sa skrolom: rail ulazi, linkovi iz menija se povlače */
  body.skrol .rail {
    opacity: 1;
    visibility: visible;
    transform: none;
    transition:
      opacity 0.45s ease,
      transform 0.45s ease,
      visibility 0s;
  }

  /* sadržaj se drži desne ivice, uz samo dugme — pa dok se širina skuplja
     izgleda kao da linkovi ulaze u njega, a ne da se seku sa strane */
  .nav-links {
    overflow: hidden;
    justify-content: flex-end;
    max-width: 640px;
    transition: max-width 0.6s cubic-bezier(0.65, 0, 0.35, 1) 0.1s;
  }
  body.skrol .nav-links {
    max-width: 0;
    pointer-events: none;
  }

  /* svaki link posebno uleće, počev od onog najbližeg dugmetu */
  .nav-links li {
    transition:
      transform 0.42s cubic-bezier(0.65, 0, 0.35, 1),
      opacity 0.35s ease;
  }
  body.skrol .nav-links li {
    transform: translateX(30px) scale(0.8);
    opacity: 0;
  }

  .nav-links li:nth-last-child(1) { transition-delay: 0.2s; }
  .nav-links li:nth-last-child(2) { transition-delay: 0.15s; }
  .nav-links li:nth-last-child(3) { transition-delay: 0.1s; }
  .nav-links li:nth-last-child(4) { transition-delay: 0.05s; }
  .nav-links li:nth-last-child(5) { transition-delay: 0s; }

  body.skrol .nav-links li:nth-last-child(1) { transition-delay: 0s; }
  body.skrol .nav-links li:nth-last-child(2) { transition-delay: 0.05s; }
  body.skrol .nav-links li:nth-last-child(3) { transition-delay: 0.1s; }
  body.skrol .nav-links li:nth-last-child(4) { transition-delay: 0.15s; }
  body.skrol .nav-links li:nth-last-child(5) { transition-delay: 0.2s; }

  body.skrol .nav-brand img {
    width: 52px;
    height: 52px;
  }
  body.skrol .nav-brand span {
    font-size: 18px;
  }
}

/* ================= Traka napretka (mobilni meni) ================= */
/* .nav je već sticky iznad — sticky je pozicioniran kontekst,
   pa .nav-progress ima za šta da se zakači */
.nav-progress {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  background: rgba(255, 255, 255, 0.25);
}
.nav-progress i {
  display: block;
  height: 100%;
  width: 0;
  background: #fff;
}
@media (min-width: 1100px) {
  .nav-progress {
    display: none;
  }
}

/* ================= Šapice ================= */

.paw-layer {
  position: fixed;
  inset: 0;
  z-index: 40;
  overflow: hidden;
  pointer-events: none;
}

.paw {
  position: absolute;
  width: 26px;
  height: 26px;
  pointer-events: none;
  animation: pawFade 1.1s ease forwards;
}
.paw.na-roze {
  fill: rgba(255, 255, 255, 0.85);
}
.paw.na-belo {
  fill: rgba(238, 73, 154, 0.45);
}

@keyframes pawFade {
  0% {
    opacity: 0.85;
    transform: scale(0.5);
  }
  22% {
    opacity: 0.8;
    transform: scale(1);
  }
  100% {
    opacity: 0;
    transform: scale(1.05);
  }
}

/* ================= Nagib kartica ================= */

@media (prefers-reduced-motion: reduce) {
  .paw {
    display: none;
  }
}

.transform-row {
  display: flex;
  width: max-content;
  will-change: transform;
  backface-visibility: hidden;
  /* stalna brzina, na grafickoj — pun krug za 75s */
  animation: marquee 75s linear infinite;
}

/* ================= Intro ================= */
body.intro-lock {
  overflow: hidden;
}

body.intro-lock .nav-brand img {
  visibility: hidden;
}

.intro-screen {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background-color: var(--pink);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.6s ease;
}

/* fade-uje se samo pozadina, ne i logo koji leti */
.intro-screen.intro-fade {
  background-color: transparent;
  pointer-events: none;
}

.intro-logo {
  width: min(50vw, 320px);
  clip-path: inset(0 100% 0 0);
  /* sakriven, otkriva se sleva */
  animation: introReveal 1.6s ease forwards 0.2s;
  will-change: transform;
}

.intro-logo.intro-fly {
  transition: transform 0.8s cubic-bezier(0.65, 0, 0.35, 1);
}

@keyframes introReveal {
  to {
    clip-path: inset(0 0 0 0);
  }
}

/* ================= O nama ================= */
.onama {
  background: #fff;
  padding: 96px 32px;
}
.onama-inner {
  max-width: 1040px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 392px 1fr;
  gap: 64px;
  align-items: start;
}
.onama-photo img {
  width: 100%;
  height: 560px;
  object-fit: cover;
  border-radius: 16px;
  display: block;
}
.onama-text h2 {
  margin-top: 14px;
  font-family: "Bricolage Grotesque", sans-serif;
  font-weight: 400;
  font-size: 40px;
  line-height: 1.15;
  letter-spacing: -1.2px;
  color: var(--ink);
}
.onama-text p {
  margin-top: 16px;
  font-size: 15.5px;
  line-height: 25px;
  color: #4b4b52;
}

.onama-stats {
  margin-top: 40px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 32px 24px;
}
.onama-stats .stat-value {
  gap: 6px;
  font-size: 34px;
  line-height: 1;
  letter-spacing: -1px;
  color: var(--ink);
}
.onama-stats .plus,
.onama-stats .pct {
  width: auto;
  height: auto;
  font-size: 22px;
  letter-spacing: -0.5px;
  color: var(--pink);
}
.onama-stats .stat-label {
  margin-top: 8px;
  max-width: none;
  font-size: 14px;
  letter-spacing: 0;
  color: #6e626c;
}
.onama-text .btn {
  margin-top: 36px;
}

/* ================= FAQ ================= */
.faq {
  background: var(--pink);
  color: #fff;
  padding: 88px 32px;
}
.faq-inner {
  max-width: 1040px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 340px 1fr;
  gap: 72px;
  align-items: start;
}
.faq-intro h2 {
  font-family: "Bricolage Grotesque", sans-serif;
  font-weight: 400;
  font-size: 40px;
  line-height: 1.15;
  letter-spacing: -1.2px;
}
.faq-intro p {
  margin-top: 20px;
  font-size: 15px;
  line-height: 24px;
  color: rgba(255, 255, 255, 0.88);
}

.faq-item {
  border-bottom: 1px solid rgba(255, 255, 255, 0.35);
}
.faq-q {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 22px 0;
  background: none;
  border: none;
  cursor: pointer;
  text-align: left;
  font-family: var(--sans, "Instrument Sans", sans-serif);
  font-size: 16.5px;
  line-height: 1.4;
  color: #fff;
  transition: opacity 0.25s ease;
}
.faq-q:hover {
  opacity: 0.78;
}
.faq-q:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 4px;
}

.faq-ikona {
  position: relative;
  width: 16px;
  height: 16px;
  flex: none;
}
.faq-ikona::before,
.faq-ikona::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  background: #fff;
  border-radius: 2px;
}
.faq-ikona::before {
  width: 16px;
  height: 1.5px;
  transform: translate(-50%, -50%);
}
.faq-ikona::after {
  width: 1.5px;
  height: 16px;
  transform: translate(-50%, -50%);
  transition:
    transform 0.3s ease,
    opacity 0.3s ease;
}
.faq-item.is-open .faq-ikona::after {
  transform: translate(-50%, -50%) rotate(90deg);
  opacity: 0;
}

.faq-a {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}
.faq-item.is-open .faq-a {
  grid-template-rows: 1fr;
}
.faq-a > div {
  overflow: hidden;
}
.faq-a p {
  margin: 0 0 22px;
  padding-right: 40px;
  font-size: 15px;
  line-height: 24px;
  color: rgba(255, 255, 255, 0.9);
}

/* ================= Kontakt ================= */
.kontakt {
  background: #fff;
  padding: 88px 32px;
}
.kontakt-inner {
  max-width: 1040px;
  margin: 0 auto;
}
.kontakt-mapa {
  border-radius: 8px;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  background: var(--mist, #eff3f8);
}
.kontakt-mapa iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}

.kontakt-info {
  margin-top: 40px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 32px;
}
.kontakt-kolona h3 {
  font-family: var(--sans, "Instrument Sans", sans-serif);
  font-size: 15px;
  font-weight: 600;
  color: var(--ink);
}
.kontakt-kolona p {
  margin: 10px 0 20px;
  font-size: 15px;
  line-height: 22px;
  color: #4b4b52;
}

.btn-outline {
  background: #fff;
  border: 1px solid var(--pink);
  color: var(--pink);
}
.btn-outline::before {
  background: var(--pink);
}
.btn-outline:hover {
  color: #fff;
}

/* ================= Futer ================= */
.site-footer {
  background: #1c1c1c;
  color: #fff;
  padding: 64px 32px 72px;
}
.footer-inner {
  max-width: 1040px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr;
  gap: 48px;
}
.footer-logo {
  display: flex;
  align-items: center;
  gap: 10px;
}
.footer-logo img {
  width: 46px;
  height: 46px;
  object-fit: contain;
}
.footer-logo span {
  font-family: "Inter", sans-serif;
  font-weight: 900;
  font-size: 19px;
}
.footer-brand p {
  margin-top: 20px;
  max-width: 30ch;
  font-size: 14px;
  line-height: 21px;
  color: rgba(255, 255, 255, 0.72);
}
.footer-kolona h4 {
  font-family: var(--sans, "Instrument Sans", sans-serif);
  font-size: 14px;
  font-weight: 600;
}
.footer-kolona p {
  margin-top: 14px;
  max-width: 26ch;
  font-size: 14px;
  line-height: 21px;
  color: rgba(255, 255, 255, 0.72);
}
.footer-kontakt {
  margin-top: 14px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.footer-kontakt li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.82);
}
.footer-kontakt svg {
  width: 17px;
  height: 17px;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.footer-kontakt a:hover {
  color: var(--pink);
}

/* ================= Animacija teksta ================= */
.rec {
  display: inline-block;
  white-space: nowrap;
}
.tok {
  display: inline-block;
}
.in {
  display: inline-block;
  will-change: transform, opacity;
}

/* --- slova iskaču --- */
[data-anim="slovo-skok"] .in {
  opacity: 0;
  transform: scale(0.3) translateY(14px);
}
[data-anim="slovo-skok"].go .in {
  animation: slovoSkok 0.62s cubic-bezier(0.18, 1.5, 0.4, 1) forwards;
  animation-delay: calc(var(--i) * 24ms);
}

/* --- roze zavesa otkriva --- */
[data-anim="zavesa"] .tok {
  position: relative;
  overflow: hidden;
}
[data-anim="zavesa"] .in {
  opacity: 0;
}
[data-anim="zavesa"] .tok::after {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--pink);
  transform: scaleX(0);
  transform-origin: left center;
}
[data-anim="zavesa"].go .in {
  animation: tekstPojava 0.01s linear forwards;
  animation-delay: calc(var(--i) * 75ms + 340ms);
}
[data-anim="zavesa"].go .tok::after {
  animation: zavesaPrelaz 0.72s cubic-bezier(0.65, 0, 0.35, 1) forwards;
  animation-delay: calc(var(--i) * 75ms);
}

@keyframes slovoSkok {
  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}
@keyframes tekstPojava {
  to {
    opacity: 1;
  }
}
@keyframes zavesaPrelaz {
  0% {
    transform: scaleX(0);
    transform-origin: left center;
  }
  49% {
    transform: scaleX(1);
    transform-origin: left center;
  }
  51% {
    transform: scaleX(1);
    transform-origin: right center;
  }
  100% {
    transform: scaleX(0);
    transform-origin: right center;
  }
}

@media (prefers-reduced-motion: reduce) {
  [data-anim] .in {
    opacity: 1 !important;
    transform: none !important;
    animation: none !important;
  }
  [data-anim="zavesa"] .tok::after {
    display: none;
  }
}

/* --- paragraf red po red --- */
[data-anim="paragraf-redovi"] .red {
  display: block;
  overflow: hidden;
  padding-bottom: 0.14em;
  margin-bottom: -0.14em;
}
[data-anim="paragraf-redovi"] .red > span {
  display: block;
  transform: translateY(105%);
}
[data-anim="paragraf-redovi"].go .red > span {
  animation: redDizanje 0.7s cubic-bezier(0.19, 1, 0.22, 1) forwards;
  animation-delay: calc(var(--i) * 85ms);
}

/* posle promene sirine redovi se premere — bez ponovnog puštanja animacije */
[data-anim="paragraf-redovi"].odmah .red > span {
  transform: none;
  animation: none;
}

@keyframes redDizanje {
  to {
    transform: translateY(0);
  }
}

@media (prefers-reduced-motion: reduce) {
  [data-anim="paragraf-redovi"] .red > span {
    transform: none !important;
    animation: none !important;
  }
}

/* prelomi koji rade samo na telefonu */
br.prelom-mobilni {
  display: none;
}

/* ================= Hamburger dugme ================= */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 0;
  background: none;
  border: none;
  cursor: pointer;
  z-index: 75;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  margin: 0 auto;
  border-radius: 2px;
  background: #fff;
  transition:
    transform 0.3s cubic-bezier(0.65, 0, 0.35, 1),
    opacity 0.2s ease;
}

/* tri crte se sklapaju u X */
body.meni-otvoren .nav-toggle span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
body.meni-otvoren .nav-toggle span:nth-child(2) {
  opacity: 0;
}
body.meni-otvoren .nav-toggle span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.nav-toggle:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 3px;
}

/* ================= Mobilni (mora na kraju da bi pregazio pravila iznad) ================= */
@media (max-width: 900px) {
  /* jedan red: logo levo, hamburger desno */
  .nav {
    flex-wrap: nowrap;
    gap: 16px;
    padding: 12px 20px;
  }

  .nav-toggle {
    display: flex;
  }

  /* meni izlazi kao panel ispod trake */
  .nav-right {
    position: fixed;
    top: 72px;
    left: 0;
    right: 0;
    bottom: 0;
    flex-direction: column;
    align-items: flex-start;
    gap: 28px;
    padding: 40px 28px;
    background: var(--pink);
    /* pomak je USPRAVAN: svaki bocni pomeraj fiksiranog elementa siri
       stranicu, a telefon tada odzumira ceo prikaz da bi to stalo */
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition:
      opacity 0.35s ease,
      transform 0.45s cubic-bezier(0.65, 0, 0.35, 1),
      visibility 0s linear 0.45s;
    z-index: 65;
    overflow-y: auto;
  }

  body.meni-otvoren .nav-right {
    opacity: 1;
    visibility: visible;
    transform: none;
    transition:
      opacity 0.35s ease,
      transform 0.45s cubic-bezier(0.65, 0, 0.35, 1),
      visibility 0s;
  }

  .nav-links {
    flex-direction: column;
    align-items: flex-start;
    gap: 24px;
    max-width: none;
  }

  .nav-links a {
    font-size: 22px;
    line-height: 1.3;
  }

  /* dok je meni otvoren stranica ispod ne sme da se skroluje */
  body.meni-otvoren {
    overflow: hidden;
  }

  /* na 375px logo + naziv + hamburger traze 386px — zato manje */
  .nav-brand {
    gap: 10px;
    min-width: 0;
  }

  .nav-brand img {
    width: 48px;
    height: 48px;
  }

  .nav-brand span {
    font-size: 17px;
  }

  /* traka je ovde 72px visoka (logo 48 + 2 × 12 razmaka) */
  .hero {
    padding-top: 72px;
  }

  [id] {
    scroll-margin-top: 80px;
  }

  .hero-inner {
    flex-direction: column;
    align-items: flex-start;
    padding-bottom: 64px;
  }

  .hero-left {
    width: 100%;
  }

  .hero-text {
    padding-top: 24px;
  }

  .hero-text h1 {
    font-size: 52px;
    letter-spacing: -1.6px;
  }

  .hero-photo img {
    width: 100%;
    height: auto;
  }

  br.prelom-mobilni {
    display: block;
  }

  .section-head h2 {
    font-size: 30px;
    letter-spacing: -0.8px;
  }

  .transform-track {
    gap: 20px;
  }

  /* zavese su na desktopu siroke koliko kartica (344px); na telefonu bi
     dve takve prekrile ceo ekran i traka bi izgledala prazno */
  .transform-track::before,
  .transform-track::after {
    width: 60px;
  }

  /* .usluga.flip je specificniji od .usluga, pa mora i on izricito */
  .usluga.flip {
    grid-template-columns: 1fr;
  }

  .transform-card {
    flex-basis: 280px;
    height: 312px;
    margin-right: 20px;
  }

  .usluge {
    padding: 64px 20px;
  }

  .usluge-stack {
    padding-bottom: 40px;
  }
  .usluga {
    position: static;
    grid-template-columns: 1fr;
  }
  .usluga.flip .usluga-photo {
    order: 0;
  }
  .usluga-photo {
    min-height: 200px;
  }
  .usluga-content {
    padding: 26px 22px;
  }

  .nega-baner {
    padding: 0 20px 64px;
  }
  .nega-box {
    grid-template-columns: 1fr;
    padding: 32px 24px;
    gap: 32px;
  }
  .nega-text h2 {
    font-size: 34px;
  }
  .proces {
    padding: 64px 20px;
  }
  .proces-inner h2 {
    font-size: 28px;
  }
  .saveti {
    padding: 0 20px 64px;
  }
  .saveti-grid {
    grid-template-columns: 1fr;
  }
  .onama {
    padding: 64px 20px;
  }
  .onama-inner {
    grid-template-columns: 1fr;
    gap: 28px;
  }
  .onama-photo img {
    height: 380px;
  }
  .onama-text h2 {
    font-size: 30px;
  }
  .onama-stats {
    gap: 24px 16px;
  }

  .kontakt {
    padding: 64px 20px;
  }
  .kontakt-mapa {
    aspect-ratio: 4 / 3;
  }
  .kontakt-info {
    grid-template-columns: 1fr;
    gap: 28px;
  }
  /* FAQ je jedina sekcija bez mobilnih pravila — 340px kolona plus 72px
     razmaka trazili su 412px na ekranu od 375, pa je stranica bila sira
     od ekrana i telefon je odzumirao ceo prikaz */
  .faq {
    padding: 64px 20px;
  }

  .faq-inner {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .faq-intro h2 {
    font-size: 30px;
  }

  .faq-q {
    font-size: 15px;
  }

  .faq-a p {
    padding-right: 8px;
  }

  .site-footer {
    padding: 48px 20px 56px;
  }
  .footer-inner {
    grid-template-columns: 1fr;
    gap: 32px;
  }
}

/* --- razmak se skuplja --- */
/* animacija se dodeljuje odmah i stoji pauzirana: keyframe vrednosti
   pobedjuju obicna pravila, pa .savet h3 ne moze da pregazi pocetni razmak */
[data-anim="razmak"] {
  animation: razmakSkupljanje 1.1s cubic-bezier(0.19, 1, 0.22, 1) both;
  animation-play-state: paused;
}
[data-anim="razmak"].go {
  animation-play-state: running;
}

@keyframes razmakSkupljanje {
  from {
    opacity: 0;
    letter-spacing: 0.3em;
  }
  to {
    opacity: 1;
    letter-spacing: var(--ls, normal);
  }
}

@media (prefers-reduced-motion: reduce) {
  [data-anim="razmak"] {
    animation: none;
    opacity: 1;
  }
}

@media (prefers-reduced-motion: reduce) {
  .transform-row {
    animation: none;
  }
}
