/* ==========================================================================
   Podstranice: usluge, radovi, cene, Obrenovac i Beograd.
   Učitava se posle style.css i koristi iste boje, slova i dugmad.
   ========================================================================== */

@media (prefers-reduced-motion: no-preference) {
  html {
    scroll-behavior: smooth;
  }
}

/* ---------- Žuti uvod ---------- */
.phero {
  position: relative;
  z-index: 2;
  overflow: hidden;
  background: var(--sun);
  color: var(--ink);
  padding: calc(var(--nav-h) + clamp(28px, 6vh, 72px)) 0 clamp(56px, 9vh, 110px);
}
.phero__mark {
  position: absolute;
  right: -4vw;
  bottom: -14vw;
  width: min(46vw, 640px);
  height: auto;
  aspect-ratio: 100 / 120;
  color: var(--ink);
  --logo-accent: var(--ink);
  opacity: 0.06;
  pointer-events: none;
}
.phero__inner {
  position: relative;
}

.crumbs ol {
  list-style: none;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 4px 10px;
  font-size: 0.9375rem;
  font-weight: 560;
}
.crumbs li {
  display: flex;
  align-items: center;
  gap: 10px;
}
.crumbs li + li::before {
  content: "/";
  opacity: 0.45;
}
.crumbs a {
  text-decoration: none;
  background: linear-gradient(currentColor, currentColor) 0 100% / 0% 1.5px no-repeat;
  transition: background-size 0.4s var(--ease-out);
}
.crumbs a:hover {
  background-size: 100% 1.5px;
}
.crumbs [aria-current] {
  opacity: 0.65;
}

.phero__eyebrow {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: clamp(28px, 6vh, 64px);
  font-size: 0.9375rem;
  font-weight: 640;
  letter-spacing: 0.01em;
}
.phero__eyebrow::before {
  content: "";
  flex: none;
  width: 28px;
  height: 2px;
  background: currentColor;
}
.phero__title {
  margin-top: 18px;
  max-width: 14ch;
  font-size: clamp(2.9rem, 1.1rem + 6.2vw, 8.2rem);
  font-weight: 820;
  font-stretch: 70%;
  line-height: 0.9;
  letter-spacing: -0.014em;
  text-wrap: balance;
}
.phero__lede {
  margin-top: clamp(22px, 3.5vh, 36px);
  max-width: 46ch;
  font-size: var(--fs-lead);
  line-height: 1.42;
  font-weight: 480;
}
.phero__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px 24px;
  margin-top: clamp(28px, 4.5vh, 44px);
}

/* podaci o projektu u uvodu */
.phero__meta {
  display: grid;
  grid-template-columns: max-content minmax(0, 1fr);
  gap: 8px 24px;
  max-width: 640px;
  margin-top: clamp(26px, 4vh, 40px);
  padding-top: 20px;
  border-top: 1px solid var(--line-light);
  font-size: 0.96875rem;
}
.phero__meta dt {
  color: rgba(18, 22, 40, 0.68);
}
.phero__meta dd {
  font-weight: 560;
}
.ptag {
  display: inline-block;
  margin: 0 2px 4px 0;
  padding: 0.28em 0.75em;
  border-radius: 999px;
  box-shadow: inset 0 0 0 1px rgba(18, 22, 40, 0.28);
  font-size: 0.8125rem;
  font-weight: 560;
  line-height: 1.2;
}
.phero__site {
  margin-top: 26px;
}

/* ---------- Ekrani projekta ---------- */
.pmedia {
  position: relative;
  z-index: 2;
  background: var(--work-bg);
  color: var(--paper);
  padding: clamp(56px, 9vh, 110px) 0;
}
.pmedia__inner.project__media {
  max-width: 1100px;
  margin: 0 auto;
}

/* ---------- Tekst sa bočnom karticom ---------- */
.pbody {
  background: var(--paper);
  color: var(--ink);
  padding: clamp(72px, 12vh, 140px) 0;
}
.pbody__grid {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 4fr);
  gap: clamp(40px, 6vw, 120px);
  align-items: start;
}
.prose {
  max-width: 66ch;
  color: #2b3245;
}
.prose > * + * {
  margin-top: 1.05em;
}
.prose h2 {
  margin-top: 2.1em;
  color: var(--ink);
  font-size: clamp(1.85rem, 1.15rem + 2.1vw, 3rem);
  font-weight: 790;
  font-stretch: 78%;
  line-height: 1;
  letter-spacing: -0.01em;
  text-wrap: balance;
}
.prose > h2:first-child {
  margin-top: 0;
}
.prose h2 + * {
  margin-top: 0.85em;
}
.prose p {
  line-height: 1.65;
}
.prose a {
  color: var(--ink);
  font-weight: 600;
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 4px;
  text-decoration-color: var(--sun-deep);
  transition: background-color 0.3s ease;
}
.prose a:hover {
  background: rgba(254, 200, 52, 0.35);
}

.pchecks {
  list-style: none;
  padding: 0;
  border-bottom: 1px solid var(--line-light);
}
.pchecks li {
  position: relative;
  padding: 0.7em 0 0.7em 1.9em;
  border-top: 1px solid var(--line-light);
  line-height: 1.5;
}
.pchecks li::before {
  content: "";
  position: absolute;
  left: 0.1em;
  top: 1.05em;
  width: 0.95em;
  height: 0.55em;
  border-left: 2px solid var(--ink);
  border-bottom: 2px solid var(--ink);
  transform: rotate(-45deg);
}

.psteps {
  list-style: none;
  padding: 0;
  counter-reset: step;
  display: grid;
  gap: 10px;
}
.psteps li {
  counter-increment: step;
  position: relative;
  padding: 20px 22px 20px 70px;
  border-radius: 20px;
  background: var(--paper-2);
}
.psteps li::before {
  content: counter(step, decimal-leading-zero);
  position: absolute;
  left: 22px;
  top: 19px;
  color: var(--slate);
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  font-variant-numeric: tabular-nums;
}
.psteps strong {
  color: var(--ink);
  font-size: 1.1875rem;
  font-weight: 760;
  font-stretch: 88%;
}
.psteps span {
  margin-left: 8px;
  padding: 0.22em 0.7em;
  border-radius: 999px;
  background: var(--sun);
  color: var(--ink);
  font-size: 0.8125rem;
  font-weight: 640;
  white-space: nowrap;
}
.psteps p {
  margin-top: 6px;
  font-size: 0.96875rem;
}

.pquote {
  position: relative;
  margin-block: 1.6em;
  padding: clamp(26px, 3vw, 38px);
  padding-top: clamp(44px, 4.5vw, 58px);
  border-radius: 24px;
  background: var(--ink);
  color: var(--paper);
}
.pquote::before {
  content: "“";
  position: absolute;
  left: clamp(22px, 3vw, 34px);
  top: -0.08em;
  color: var(--sun);
  font-size: 5.5rem;
  font-weight: 800;
  line-height: 1;
}
.pquote blockquote {
  margin: 0;
}
.pquote p {
  font-size: clamp(1.125rem, 1rem + 0.45vw, 1.375rem);
  font-weight: 560;
  line-height: 1.45;
}
.pquote figcaption {
  margin-top: 16px;
  color: var(--sun);
  font-size: 0.9375rem;
  font-weight: 680;
}
.pquote figcaption::before {
  content: "";
  display: inline-block;
  width: 18px;
  height: 2px;
  margin-right: 10px;
  vertical-align: middle;
  background: currentColor;
}

/* ---------- Bočna kartica ---------- */
.paside {
  position: sticky;
  top: calc(var(--nav-h) + 24px);
  display: grid;
  gap: 18px;
  padding: clamp(24px, 2.4vw, 32px);
  border-radius: 26px;
  background: var(--ink);
  color: var(--paper);
  box-shadow: 0 40px 70px -40px rgba(18, 22, 40, 0.6);
}
.paside__title {
  font-size: 1.5rem;
  font-weight: 780;
  font-stretch: 80%;
  line-height: 1.1;
}
.paside__facts {
  display: grid;
  grid-template-columns: max-content minmax(0, 1fr);
  gap: 0;
  font-size: 0.9375rem;
}
.paside__facts dt,
.paside__facts dd {
  padding: 10px 0;
  border-top: 1px solid var(--line-dark);
}
.paside__facts dt {
  padding-right: 18px;
  color: var(--mist);
}
.paside__facts dd {
  font-weight: 560;
}
.paside__facts a,
.paside__note a {
  color: var(--sun);
}
.paside__note {
  color: #c9cfdb;
  font-size: 0.96875rem;
  line-height: 1.55;
}
.paside .cta {
  margin-top: 6px;
}
.paside__wa {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  color: var(--mist);
  font-size: 0.9375rem;
  font-weight: 560;
  text-decoration: none;
  transition: color 0.3s ease;
}
.paside__wa svg {
  width: 18px;
  height: 18px;
  color: #3ddc84;
}
.paside__wa:hover {
  color: var(--paper);
}

/* ---------- Cene ---------- */
.ptiers-wrap {
  background: var(--paper);
  color: var(--ink);
  padding: clamp(56px, 9vh, 100px) 0 0;
}
.ptiers {
  list-style: none;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}
.ptier {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: clamp(24px, 2.4vw, 32px);
  border-radius: 24px;
  background: var(--paper-2);
}
.ptier--hot {
  background: var(--ink);
  color: var(--paper);
}
.ptier--plain {
  background: transparent;
  box-shadow: inset 0 0 0 1.5px var(--line-light);
}
.ptier__name {
  font-size: 1.375rem;
  font-weight: 760;
  font-stretch: 86%;
  line-height: 1.15;
}
.ptier__price {
  font-size: clamp(2rem, 1.4rem + 1.6vw, 2.75rem);
  font-weight: 820;
  font-stretch: 72%;
  line-height: 1;
  letter-spacing: -0.01em;
}
.ptier--hot .ptier__price {
  color: var(--sun);
}
.ptier__time {
  align-self: flex-start;
  padding: 0.3em 0.8em;
  border-radius: 999px;
  background: var(--sun);
  color: var(--ink);
  font-size: 0.8125rem;
  font-weight: 640;
}
.ptier__desc {
  color: inherit;
  opacity: 0.86;
  font-size: 0.96875rem;
  line-height: 1.55;
}
.ptier__who {
  margin-top: auto;
  padding-top: 12px;
  border-top: 1px solid var(--line-light);
  font-size: 0.9375rem;
  font-weight: 600;
}
.ptier--hot .ptier__who {
  border-color: var(--line-dark);
}
.ptiers__note {
  margin-top: 18px;
  color: var(--slate);
  font-size: 0.9375rem;
}

/* ---------- Kartice sa linkovima ---------- */
.prel {
  background: var(--paper-2);
  color: var(--ink);
  padding: clamp(80px, 12vh, 140px) 0;
}
.prel__head {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: 24px;
  align-items: end;
  margin-bottom: clamp(32px, 5vh, 56px);
}
.prel .section-title {
  font-size: clamp(2.3rem, 1.3rem + 3.4vw, 4.75rem);
}
.prel__sub {
  justify-self: end;
  max-width: 38ch;
  color: var(--slate);
}
.pcards {
  list-style: none;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr));
  gap: 14px;
}
.pcards li {
  display: flex;
}
.pcard {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 8px;
  width: 100%;
  padding: 22px 22px 76px;
  border-radius: 24px;
  background: var(--paper);
  color: var(--ink);
  text-decoration: none;
  overflow: hidden;
  transition: background-color 0.45s var(--ease-out), color 0.45s var(--ease-out),
    transform 0.5s var(--ease-out), box-shadow 0.5s var(--ease-out);
}
.pcard:hover,
.pcard:focus-visible {
  background: var(--ink);
  color: var(--paper);
  transform: translateY(-4px);
  box-shadow: 0 30px 50px -30px rgba(18, 22, 40, 0.6);
}
.pcard__img {
  display: block;
  margin: -8px -8px 10px;
  overflow: hidden;
  border-radius: 16px;
}
.pcard__img img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  object-position: top;
  transition: transform 1s var(--ease-out);
}
.pcard:hover .pcard__img img {
  transform: scale(1.04);
}
.pcard__kicker {
  color: var(--slate);
  font-size: 0.8125rem;
  font-weight: 640;
  letter-spacing: 0.02em;
  transition: color 0.45s;
}
.pcard:hover .pcard__kicker,
.pcard:focus-visible .pcard__kicker {
  color: var(--sun);
}
.pcard__title {
  font-size: 1.5rem;
  font-weight: 780;
  font-stretch: 80%;
  line-height: 1.05;
}
.pcard__text {
  font-size: 0.9375rem;
  line-height: 1.5;
  opacity: 0.82;
}
.pcard__go {
  position: absolute;
  left: 22px;
  bottom: 20px;
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  box-shadow: inset 0 0 0 1.5px currentColor;
  transition: background-color 0.35s, color 0.35s, box-shadow 0.35s;
}
.pcard__go svg {
  width: 18px;
  height: 18px;
  transition: transform 0.45s var(--ease-out);
}
.pcard:hover .pcard__go,
.pcard:focus-visible .pcard__go {
  background: var(--sun);
  color: var(--ink);
  box-shadow: none;
}
.pcard:hover .pcard__go svg {
  transform: translateX(3px);
}

/* ---------- Kontakt na dnu ---------- */
.pcontact .contact__title {
  max-width: 12ch;
}
.pcontact__side .channels {
  margin-top: 0;
}
.pcontact__form {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px 20px;
  margin-top: 34px;
  font-weight: 600;
}

/* ---------- Telefon i tablet ---------- */
@media (max-width: 1023px) {
  .pbody__grid {
    grid-template-columns: 1fr;
  }
  .paside {
    position: static;
    max-width: 560px;
  }
  .ptiers {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .prel__head {
    grid-template-columns: 1fr;
  }
  .prel__sub {
    justify-self: start;
  }
}

@media (max-width: 767px) {
  .phero__mark {
    width: 70vw;
    right: -18vw;
    bottom: -22vw;
  }
  .phero__actions .cta {
    flex: 1 1 auto;
    justify-content: space-between;
    --cta-flood: 18;
  }
  .phero__meta {
    grid-template-columns: 1fr;
    gap: 2px;
  }
  .phero__meta dd + dt {
    margin-top: 10px;
  }
  .ptiers {
    grid-template-columns: 1fr;
  }
  .psteps li {
    padding: 18px 18px 18px 58px;
  }
  .psteps li::before {
    left: 18px;
  }
  .pcontact__form .cta {
    width: 100%;
    justify-content: space-between;
  }
}

@media (prefers-reduced-motion: reduce) {
  .pcard,
  .pcard__img img,
  .pcard__go svg {
    transition: none;
  }
}
