/* ============================================================
   USLUGE i RADOVI — redizajn v3 (koristi i klase iz home-v3.css)
   ============================================================ */
.page-usluge, .page-radovi { background: var(--paper); color: var(--ink); }

/* ── zaglavlje strane ── */
.p3-hero { padding-top: clamp(120px, 12vw, 150px); padding-bottom: clamp(48px, 6vw, 72px); }
.p3-hero .h3-wrap { display: flex; flex-direction: column; gap: 24px; }
.p3-hero h1 {
  margin: 0; max-width: 15em; font-family: var(--font-serif); font-weight: 300;
  font-size: clamp(44px, 5.6vw, 80px); line-height: 1; letter-spacing: -0.035em;
}
.p3-hero h1 em { font-style: italic; }
.p3-hero__sub { margin: 0; max-width: 36em; font-size: 19px; line-height: 1.55; color: var(--text-2); }
.p3-hero .h3-kicker, .p3-hero h1, .p3-hero__sub, .p3-chips, .p3-hero__stats { animation: h3Rise 1s var(--ease) both; }
.p3-hero h1 { animation-delay: .1s; }
.p3-hero__sub { animation-delay: .25s; }
.p3-chips, .p3-hero__stats { animation-delay: .4s; }

/* pilule za skok na sekciju / filter */
.p3-chips { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 8px; }
.p3-chip {
  display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 18px;
  border: 0; border-radius: 999px; background: #fff; box-shadow: inset 0 0 0 1px var(--line);
  font: 600 15px/1 var(--font-sans); color: var(--ink); text-decoration: none;
  transition: background-color 200ms var(--ease), box-shadow 200ms var(--ease), color 200ms var(--ease);
}
.p3-chip:hover { box-shadow: inset 0 0 0 1.5px var(--ink); color: var(--ink); }
.p3-chip[aria-pressed="true"] { background: var(--ink); color: var(--paper); box-shadow: none; }
.p3-chip small { font-size: 13px; font-weight: 500; opacity: .65; }

.p3-hero__stats { display: grid; grid-template-columns: repeat(3, minmax(0, max-content)); gap: 16px 48px; margin-top: 8px; padding-top: 24px; border-top: 1px solid var(--line); }
.p3-hero__stats div { display: flex; flex-direction: column; gap: 4px; }
.p3-hero__stats strong { font-family: var(--font-serif); font-weight: 400; font-size: 30px; letter-spacing: -0.02em; }
.p3-hero__stats span { font-size: 14px; color: var(--text-2); }

/* ── USLUGE: blok jedne usluge ── */
.p3-svc { padding-block: clamp(72px, 8vw, 104px); border-top: 1px solid var(--line); scroll-margin-top: 72px; }
.p3-svc__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: clamp(40px, 5vw, 72px); align-items: center; }
.p3-svc--rev .p3-svc__text { grid-column: 2; grid-row: 1; }
.p3-svc--rev .p3-svc__media { grid-column: 1; grid-row: 1; }
.p3-svc__text { display: flex; flex-direction: column; gap: 22px; }
.p3-svc__text .h3-title { font-size: clamp(36px, 4vw, 56px); }
.p3-list { margin: 0; padding: 0; list-style: none; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 24px; }
.p3-list li { position: relative; padding-left: 26px; font-size: 15px; line-height: 1.45; }
.p3-list li::before { content: ""; position: absolute; left: 0; top: .35em; width: 14px; height: 8px; border-left: 2px solid var(--olive); border-bottom: 2px solid var(--olive); transform: rotate(-45deg); }
.p3-facts { margin: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; padding-top: 22px; border-top: 1px solid var(--line); }
.p3-facts div { display: flex; flex-direction: column; gap: 6px; }
.p3-facts dt { font-size: 13px; font-weight: 600; color: var(--olive); }
.p3-facts dd { margin: 0; font-size: 15px; line-height: 1.5; color: var(--text-2); }
.p3-facts .p3-price { font-family: var(--font-serif); font-size: 30px; line-height: 1; color: var(--ink); letter-spacing: -0.02em; }
.p3-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 24px; }

.p3-svc__media { position: relative; margin: 0; padding-bottom: 56px; }
.p3-svc__media .h3-browser img { aspect-ratio: 1200 / 744; }
.p3-svc__media .h3-float { left: auto; right: -20px; width: 50%; }
.p3-svc--rev .p3-svc__media .h3-float { right: auto; left: -20px; }
.p3-svc__media .h3-float img { aspect-ratio: 1200 / 744; }

/* tamni blok (B2B) */
.p3-svc--dark { background: var(--ink); color: var(--paper); border-top: 0; }
.p3-svc--dark .h3-kicker { color: var(--accent); }
.p3-svc--dark .h3-lead, .p3-svc--dark .p3-facts dd { color: #D9D4C9; }
.p3-svc--dark .p3-facts { border-color: #3A3934; }
.p3-svc--dark .p3-facts dt { color: var(--accent); }
.p3-svc--dark .p3-facts .p3-price { color: var(--paper); }
.p3-svc--dark .p3-list li::before { border-color: var(--accent); }
.p3-svc--dark .h3-link { color: var(--paper); }
.p3-svc--dark .h3-link:hover { color: var(--accent); }
.p3-svc--dark .h3-browser, .p3-svc--dark .h3-float { box-shadow: 0 30px 60px -30px rgba(0,0,0,.8), 0 0 0 1px #3A3934; }
.p3-svc--dark .h3-browser__bar, .p3-svc--dark .h3-float figcaption { background: #1E1E1C; border-color: #3A3934; color: #BDB7AA; }
.p3-svc--dark .h3-browser__bar i { background: #3A3934; }
.p3-svc--dark .h3-float figcaption { color: var(--paper); }

/* uvođenje portala */
.p3-rollout-wrap { grid-column: 1 / -1; }
.p3-rollout { margin: 20px 0 0; padding: 0; list-style: none; counter-reset: p3r; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.p3-rollout li { counter-increment: p3r; padding: 22px; border-radius: 14px; background: #1E1E1C; box-shadow: inset 0 0 0 1px #3A3934; display: flex; flex-direction: column; gap: 8px; }
.p3-rollout li::before { content: counter(p3r, decimal-leading-zero); font-family: var(--font-serif); font-size: 28px; font-weight: 300; color: var(--accent); }
.p3-rollout strong { font-size: 16px; font-weight: 600; }
.p3-rollout span { font-size: 14px; line-height: 1.5; color: #BDB7AA; }
.p3-rollout__title { margin: clamp(8px, 2vw, 24px) 0 0; font-family: var(--font-serif); font-weight: 300; font-size: 28px; letter-spacing: -0.02em; }

/* mreže i oglasi */
.p3-support { padding-block: clamp(72px, 8vw, 104px); background: var(--paper-2); border-block: 1px solid var(--line); scroll-margin-top: 72px; }
.p3-support__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.p3-support .h3-svc { gap: 18px; }
.p3-support .p3-list { grid-template-columns: minmax(0, 1fr); }
.p3-support__price { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 18px; margin-top: auto !important; padding-top: 18px; border-top: 1px solid var(--line); }
.p3-support__price b { font-family: var(--font-serif); font-weight: 400; font-size: 30px; letter-spacing: -0.02em; color: var(--ink); }
.p3-support__price span { font-size: 14px; color: var(--text-3); }

/* dodatne usluge */
.p3-extra { padding-block: clamp(72px, 8vw, 104px); }
.p3-extra__grid { margin: 0; padding: 0; list-style: none; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; border-top: 1px solid var(--line); }
.p3-extra__grid li { padding: 26px 24px 26px 0; border-bottom: 1px solid var(--line); display: flex; flex-direction: column; gap: 8px; }
.p3-extra__grid strong { font-family: var(--font-serif); font-weight: 400; font-size: 24px; letter-spacing: -0.01em; }
.p3-extra__grid span { font-size: 15px; line-height: 1.55; color: var(--text-2); max-width: 26em; }

.p3-prices { border-top: 1px solid var(--line); scroll-margin-top: 72px; }
.p3-price-link { margin-top: auto; font-weight: 600; font-size: 15px; color: inherit; text-underline-offset: 5px; }
.h3-price--hl .p3-price-link { color: var(--paper); }
.p3-note { margin: 24px 0 0; font-size: 15px; color: var(--text-2); }
.p3-note a { color: var(--ink); font-weight: 600; }

/* ── RADOVI ── */
.w3-list { padding-bottom: clamp(80px, 9vw, 112px); }
.w3-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.w3-card {
  display: flex; flex-direction: column; border-radius: 20px; overflow: hidden; background: #fff;
  box-shadow: 0 0 0 1px var(--line); isolation: isolate;
  transition: transform 450ms var(--ease), box-shadow 450ms var(--ease), opacity 600ms var(--ease);
}
.w3-card[hidden] { display: none; }
.w3-card:hover { transform: translateY(-4px); box-shadow: 0 18px 40px -24px rgba(17,17,16,.35), 0 0 0 1px var(--line); }
.w3-card--wide { grid-column: 1 / -1; display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); }
.w3-card--dark { background: var(--ink); color: var(--paper); box-shadow: none; }

.w3-shot { display: flex; flex-direction: column; background: #FBFAF7; text-decoration: none; color: inherit; }
.w3-bar { display: flex; align-items: center; gap: 8px; padding: 12px 16px; border-bottom: 1px solid #ECE7DE; font-size: 12px; color: var(--text-3); }
.w3-bar i { width: 10px; height: 10px; border-radius: 50%; background: var(--line); }
.w3-bar span { margin-left: 8px; }
.w3-bar em { margin-left: auto; font-style: normal; font-weight: 600; padding: 3px 10px; border-radius: 999px; background: var(--paper-2); color: var(--ink); }
.w3-view { position: relative; overflow: hidden; aspect-ratio: 16 / 10; container-type: size; }
.w3-card--wide .w3-view { aspect-ratio: auto; flex: 1; min-height: 420px; }
.w3-view img {
  position: absolute; inset: 0 0 auto 0; display: block; width: 100%; height: auto;
  transition: transform 5.5s cubic-bezier(.45, 0, .25, 1);
}
.w3-shot:hover .w3-view img, .w3-shot:focus-visible .w3-view img { transform: translateY(calc(-100% + 100cqh)); transition-duration: 7s; }
.w3-view__hint {
  position: absolute; right: 14px; bottom: 14px; padding: 6px 12px; border-radius: 999px;
  background: rgba(17,17,16,.82); color: var(--paper); font-size: 12px; font-weight: 600;
  opacity: 0; transform: translateY(6px); transition: opacity 300ms var(--ease), transform 300ms var(--ease);
}
.w3-shot:hover .w3-view__hint { opacity: 1; transform: none; }
.w3-card--dark .w3-shot { background: #1E1E1C; }
.w3-card--dark .w3-bar { border-color: #3A3934; color: #BDB7AA; }
.w3-card--dark .w3-bar i { background: #3A3934; }
.w3-card--dark .w3-bar em { background: var(--accent); color: var(--ink); }

.w3-body { padding: clamp(24px, 3vw, 40px); display: flex; flex-direction: column; gap: 16px; flex: 1; }
.w3-meta { margin: 0; font-size: 13px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--text-3); }
.w3-name { margin: 0; font-family: var(--font-serif); font-weight: 400; font-size: clamp(30px, 3vw, 40px); letter-spacing: -0.02em; line-height: 1.05; }
.w3-text { margin: 0; font-size: 16px; line-height: 1.6; color: var(--text-2); }
.w3-focus { margin: 0; padding: 16px 18px; border-radius: 12px; background: var(--paper); font-size: 15px; line-height: 1.55; color: var(--text-2); }
.w3-focus b { display: block; margin-bottom: 4px; font-size: 13px; color: var(--olive); }
.w3-card .h3-tags li { font-size: 13px; padding: 7px 12px; }
.w3-actions { margin-top: auto; display: flex; flex-wrap: wrap; gap: 12px 20px; align-items: center; padding-top: 6px; }
.w3-actions .h3-btn { min-height: 46px; padding: 0 22px; font-size: 15px; }
.w3-card--dark .w3-meta { color: #BDB7AA; }
.w3-card--dark .w3-text { color: #D9D4C9; }
.w3-card--dark .w3-focus { background: #1E1E1C; color: #D9D4C9; }
.w3-card--dark .w3-focus b { color: var(--accent); }
.w3-card--dark .h3-tags li { background: #1E1E1C; color: var(--paper); }
.w3-card--dark .h3-link { color: var(--paper); }
.w3-roles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.w3-roles a { padding: 12px 14px; border-radius: 10px; background: #1E1E1C; box-shadow: inset 0 0 0 1px #3A3934; color: var(--paper); font-size: 14px; font-weight: 600; text-decoration: none; transition: box-shadow 200ms var(--ease); }
.w3-roles a:hover { box-shadow: inset 0 0 0 1.5px var(--accent); color: var(--paper); }
.w3-cta { border-radius: 20px; min-height: 360px; }
.w3-cta h3 { max-width: 12em; }
.w3-empty { margin: 0; font-size: 16px; color: var(--text-2); }

/* ── responzivno ── */
@media (max-width: 1080px) {
  .p3-rollout { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .p3-extra__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
  .p3-svc__grid, .p3-support__grid, .w3-card--wide { grid-template-columns: minmax(0, 1fr); }
  .p3-svc--rev .p3-svc__text, .p3-svc--rev .p3-svc__media { grid-column: auto; grid-row: auto; }
  .p3-svc__media .h3-float, .p3-svc--rev .p3-svc__media .h3-float { left: auto; right: -8px; width: 54%; }
  .w3-grid { grid-template-columns: minmax(0, 1fr); }
  .w3-card--wide .w3-view { min-height: 0; aspect-ratio: 16 / 10; flex: none; }
}
@media (max-width: 600px) {
  .p3-list, .p3-facts, .p3-rollout, .p3-extra__grid, .w3-roles { grid-template-columns: minmax(0, 1fr); }
  .p3-hero__stats { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 24px; }
  .p3-hero__stats strong { font-size: 22px; white-space: nowrap; }
  .p3-svc__media { padding-bottom: 36px; }
  .p3-chip { min-height: 40px; padding: 0 14px; font-size: 14px; }
}
@media (hover: none) {
  .w3-view__hint { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .p3-hero .h3-kicker, .p3-hero h1, .p3-hero__sub, .p3-chips, .p3-hero__stats { animation: none; }
  .w3-card:hover, .w3-shot:hover .w3-view img { transform: none; }
}
.w3-card.is-in:hover { transition-delay: 0s; }

/* ── KONTAKT ── */
.page-kontakt { background: var(--paper); color: var(--ink); }
.page-kontakt .kontakt-main { background: transparent; padding: 0 0 clamp(80px, 9vw, 112px); }
.page-kontakt .kontakt-main__inner { max-width: 1280px; padding-inline: clamp(20px, 4vw, 32px); grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); gap: 24px; }
.k3-formcard { padding: clamp(24px, 4vw, 48px); border-radius: 20px; background: #fff; box-shadow: 0 0 0 1px var(--line); }

.page-kontakt .kontakt-formhead {
  font-family: var(--font-serif); font-size: 26px; font-weight: 300; letter-spacing: -0.02em;
  text-transform: none; opacity: 1; color: var(--ink); margin: 40px 0 24px;
}
.page-kontakt .kontakt-form > .kontakt-formhead:first-of-type { margin-top: 0; }
.page-kontakt .kontakt-formhead::after { background: var(--line); }
.page-kontakt .kontakt-formhead__n { font-style: normal; font-size: 14px; font-family: var(--font-sans); font-weight: 600; color: var(--olive); opacity: 1; }
.page-kontakt .kontakt-field { margin-bottom: 24px; }
.page-kontakt .kontakt-field::after { display: none; }
.page-kontakt .kontakt-field__label {
  font-family: var(--font-sans); font-size: 14px; font-weight: 600; letter-spacing: 0;
  text-transform: none; opacity: 1; color: var(--ink); margin-bottom: 8px;
}
.page-kontakt .kontakt-input {
  padding: 14px 16px; border: 0; border-radius: 12px; background: var(--paper);
  box-shadow: inset 0 0 0 1px var(--line); font-size: 16px;
  transition: box-shadow 200ms var(--ease), background-color 200ms var(--ease);
}
.page-kontakt .kontakt-input::placeholder { opacity: 1; color: #8C877C; }
.page-kontakt .kontakt-input:focus { background: #fff; box-shadow: inset 0 0 0 1.5px var(--ink); }
.page-kontakt .kontakt-textarea { min-height: 140px; resize: vertical; }
.page-kontakt .kontakt-field.is-error .kontakt-input { box-shadow: inset 0 0 0 1.5px #A3301C; }
.page-kontakt .kontakt-field.is-error .kontakt-field__label { color: #A3301C; }
.page-kontakt .kontakt-field__hint { font-family: var(--font-sans); font-size: 13px; letter-spacing: 0; text-transform: none; opacity: 1; color: var(--text-3); margin-top: 8px; }
.page-kontakt .kontakt-field__error { font-family: var(--font-sans); font-size: 13px; letter-spacing: 0; text-transform: none; }

.page-kontakt .kontakt-pills { gap: 8px; padding-bottom: 0; border-bottom: 0; }
.page-kontakt .kontakt-pill { display: block; position: absolute; opacity: 0; width: 1px; height: 1px; pointer-events: none; }
.page-kontakt .kontakt-pill + label {
  font-size: 14px; font-weight: 600; letter-spacing: 0; padding: 10px 16px; opacity: 1;
  border: 0; background: var(--paper); box-shadow: inset 0 0 0 1px var(--line); color: var(--ink);
}
.page-kontakt .kontakt-pill + label:hover { box-shadow: inset 0 0 0 1.5px var(--ink); }
.page-kontakt .kontakt-pill:checked + label { background: var(--ink); color: var(--paper); box-shadow: none; }
.page-kontakt .kontakt-pill:focus-visible + label { outline: 2px solid var(--olive); outline-offset: 2px; }

.page-kontakt .kontakt-submit { margin-top: 32px; padding-top: 28px; border-top: 1px solid var(--line); align-items: center; }
.page-kontakt .kontakt-submit .btn-primary {
  display: inline-flex; align-items: center; gap: 10px; min-height: 54px; padding: 0 28px;
  border: 0; border-radius: 999px; background: var(--ink); color: var(--paper);
  font: 600 16px/1 var(--font-sans); letter-spacing: 0; text-transform: none;
  transition: transform 200ms var(--ease), background-color 200ms var(--ease);
}
.page-kontakt .kontakt-submit .btn-primary:hover { background: #2A2A28; transform: translateY(-1px); }
.page-kontakt .kontakt-submit__note { font-size: 14px; opacity: 1; color: var(--text-2); }
.page-kontakt .kontakt-submit__privacy { font-family: var(--font-sans); font-size: 13px; letter-spacing: 0; text-transform: none; opacity: 1; color: var(--text-3); }
.page-kontakt .kontakt-submit__privacy-dot { background: var(--olive); box-shadow: none; }

.page-kontakt .kontakt-success { padding: 8px 0; }
.page-kontakt .kontakt-success__label, .page-kontakt .kontakt-success__next-label { font-family: var(--font-sans); font-size: 14px; font-weight: 600; letter-spacing: 0; text-transform: none; color: var(--olive); opacity: 1; }
.page-kontakt .kontakt-success__title { font-family: var(--font-serif); font-weight: 300; font-size: clamp(36px, 4vw, 52px); letter-spacing: -0.03em; }
.page-kontakt .kontakt-success__links a { font-weight: 600; color: var(--ink); }

.k3-aside { display: flex; flex-direction: column; gap: 16px; position: sticky; top: 96px; }
.k3-box { padding: 32px; border-radius: 20px; background: #fff; box-shadow: 0 0 0 1px var(--line); display: flex; flex-direction: column; gap: 16px; }
.k3-box h2 { margin: 0; font-family: var(--font-serif); font-weight: 300; font-size: 30px; letter-spacing: -0.02em; line-height: 1.1; }
.k3-steps { margin: 0; padding: 0; list-style: none; counter-reset: k3; display: flex; flex-direction: column; }
.k3-steps li { counter-increment: k3; position: relative; padding: 16px 0 16px 48px; border-top: 1px solid var(--line); display: flex; flex-direction: column; gap: 4px; }
.k3-steps li::before { content: counter(k3, decimal-leading-zero); position: absolute; left: 0; top: 14px; font-family: var(--font-serif); font-size: 24px; font-weight: 300; color: var(--olive); }
.k3-steps strong { font-size: 16px; font-weight: 600; }
.k3-steps span { font-size: 14px; line-height: 1.55; color: var(--text-2); }
.k3-box--dark { background: var(--ink); color: var(--paper); box-shadow: none; }
.k3-box--dark .h3-kicker { color: var(--accent); }
.k3-box--dark h3 { margin: 0; font-family: var(--font-serif); font-weight: 300; font-size: 28px; line-height: 1.1; letter-spacing: -0.02em; }
.k3-box--dark p { margin: 0; font-size: 15px; line-height: 1.55; color: #D9D4C9; }
.k3-box--dark .h3-btn { align-self: flex-start; min-height: 48px; }
.k3-small { margin: 0; padding-inline: 8px; font-size: 14px; color: var(--text-3); }

@media (max-width: 1000px) {
  .page-kontakt .kontakt-main__inner { grid-template-columns: minmax(0, 1fr); }
  .k3-aside { position: static; }
}
@media (max-width: 600px) {
  .k3-box { padding: 24px; }
  .page-kontakt .kontakt-submit .btn-primary { width: 100%; justify-content: center; }
}

/* ── Strane za pojedinačne usluge (SEO) ────────────────────── */
.p3-hero .h3-kicker a { color: inherit; }
.p3-hero .p3-actions { margin-top: 8px; }
.p3-extra__grid span a, .p3-facts dd a, .h3-faq__list p a { color: inherit; font-weight: 600; }
.p3-extra + .p3-support { border-top: 1px solid var(--line); }
.p3-related { padding-block: 48px; border-top: 1px solid var(--line); }
.p3-related .h3-kicker { margin: 0 0 8px; }
.p3-table { overflow-x: auto; margin-top: 8px; }
.p3-table table { width: 100%; min-width: 640px; border-collapse: collapse; text-align: left; font-size: 16px; }
.p3-table th, .p3-table td { padding: 20px 20px 20px 0; border-bottom: 1px solid var(--line); vertical-align: baseline; }
.p3-table thead th { font-size: 14px; font-weight: 600; color: var(--olive); padding-block: 10px; }
.p3-table tbody th { font-weight: 600; }
.p3-table td { color: var(--text-2); }
.p3-table b { font-family: var(--font-serif); font-weight: 400; font-size: 26px; color: var(--ink); white-space: nowrap; }
/* Četiri stavke: jedan red na računaru, dva para na tabletu. */
@media (min-width: 640px) { .p3-extra__grid:has(> li:nth-child(4):last-child) { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1100px) { .p3-extra__grid:has(> li:nth-child(4):last-child) { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
