/* Klijentski portal */
.wrap { width: min(100% - 2.5rem, 1120px); margin-inline: auto; }
.wrap-narrow { width: min(100% - 2.5rem, 760px); margin-inline: auto; }
.site-head { position: sticky; top: 0; z-index: 20; background: rgba(238,241,244,.92); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.site-head .wrap { min-height: 64px; }
.site-nav { display: flex; gap: .25rem; align-items: center; flex-wrap: wrap; }
.site-nav a:not(.btn) { text-decoration: none; padding: .5rem .7rem; border-radius: var(--r-s); font-weight: 600; font-stretch: 105%; }
.site-nav a:not(.btn):hover { background: rgba(28,36,48,.06); }
.site-nav a[aria-current=page] { background: rgba(28,36,48,.08); }
@media (max-width: 640px) {
  .site-nav .hide-sm { display: none; }
  .site-head .wrap { flex-wrap: nowrap; gap: .5rem; width: min(100% - 1.75rem, 1120px); }
  .site-nav { flex-wrap: nowrap; gap: .15rem; }
  .site-nav a:not(.btn) { padding: .45rem .45rem; }
  .site-nav .btn-sm { padding: .3rem .6rem; }
  .site-head .brand { gap: .45rem; }
  .site-head .brand span:last-child { max-width: 7.4rem; line-height: 1.05; font-size: .95rem; }
}
main { min-height: 70vh; }
main:focus { outline: none; }
.page { padding: 2rem 0 4rem; }
.page-title { margin-bottom: 1.5rem; }
.page-title p { margin-top: .4rem; color: var(--steel); }

/* ---- Hero ---- */
.hero { padding: clamp(2.5rem, 6vw, 5rem) 0 clamp(2rem, 5vw, 4rem); }
.hero-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: clamp(1.5rem, 4vw, 3.5rem); align-items: center; }
@media (max-width: 860px) { .hero-grid { grid-template-columns: 1fr; } .hero-art { max-width: 420px; } }
.hero h1 { font-size: var(--step-5); font-stretch: 125%; font-weight: 850; letter-spacing: -.035em; line-height: .98; max-width: 12ch; }
.hero .lead { margin-top: 1.25rem; font-size: var(--step-1); line-height: 1.55; max-width: 34em; color: var(--ink-2); }
.hero .btn-row { margin-top: 1.75rem; }
.facts { display: flex; flex-wrap: wrap; gap: .5rem 1.5rem; margin-top: 1.75rem; padding: 0; list-style: none; color: var(--steel); font-size: var(--step--1); font-weight: 600; }
.facts li { display: flex; gap: .45rem; align-items: center; }
.facts li::before { content: ''; width: 14px; height: 3px; border-radius: 2px; background: var(--ink); box-shadow: 0 -5px 0 var(--ink), 0 5px 0 var(--signal); }

.hero-art { position: relative; }
.hero-art svg { width: 100%; height: auto; overflow: visible; }
.hero-art .ghost { fill: none; stroke: var(--steel); stroke-width: 1.5; stroke-dasharray: 5 5; opacity: .7; }
.hero-art .dim { stroke: var(--steel); stroke-width: 1; fill: none; }
.hero-art .dim-t { fill: var(--steel); font: 600 12px var(--sans); font-stretch: 100%; }
.hero-art .bed { fill: var(--ink); }
.hero-art .build { transform-box: fill-box; transform-origin: 50% 100%; animation: build 3.6s steps(30, end) .5s both; }
.hero-art .nozzle { animation: nozzle 3.6s steps(30, end) .5s both, park .5s ease-in 4.3s forwards; }
@keyframes park { to { opacity: 0; } }
.hero-art .head { animation: sweep .24s ease-in-out .5s 15 alternate both; }
@keyframes build { from { transform: scaleY(0); } to { transform: scaleY(1); } }
@keyframes nozzle { from { transform: translateY(0); } to { transform: translateY(-262px); } }
@keyframes sweep { from { transform: translateX(-110px); } to { transform: translateX(110px); } }
.hero-art figcaption { margin-top: .75rem; font-size: var(--step--1); color: var(--steel); text-align: center; }

/* ---- Sekcije ---- */
.section { padding: clamp(2.5rem, 6vw, 4.5rem) 0; border-top: 1px solid var(--line); }
.section h2 { font-size: var(--step-3); font-stretch: 120%; font-weight: 800; letter-spacing: -.02em; max-width: 20ch; }
.section .intro { margin-top: .6rem; color: var(--steel); max-width: 40em; }
.steps { list-style: none; margin: 2rem 0 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--r-m); overflow: hidden; }
.steps li { background: var(--surface); padding: 1.4rem 1.25rem 1.5rem; }
.steps .n { display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 8px; background: var(--ink); color: #fff; font-weight: 800; font-stretch: 110%; margin-bottom: .9rem; }
.steps li:first-child .n { background: var(--signal); color: var(--ink); }
.steps h3 { margin-bottom: .4rem; }
.steps p { color: var(--steel); }
@media (max-width: 860px) { .steps { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .steps { grid-template-columns: 1fr; } }

.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(1.5rem, 4vw, 3rem); align-items: start; }
@media (max-width: 860px) { .two-col { grid-template-columns: 1fr; } }
.part-list { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 1.5rem; padding: 0; list-style: none; }
.part-list li { padding: .5rem .85rem; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); font-weight: 600; }
.mat-table td:first-child { font-weight: 750; font-stretch: 110%; white-space: nowrap; }
.cta-band { background: var(--ink); color: #fff; border-radius: var(--r-l); padding: clamp(1.75rem, 4vw, 3rem); display: grid; grid-template-columns: 1fr auto; gap: 1.5rem; align-items: center; }
.cta-band h2 { color: #fff; max-width: 22ch; }
.cta-band p { color: #C9D1DB; margin-top: .5rem; }
@media (max-width: 720px) { .cta-band { grid-template-columns: 1fr; } }

.site-foot { border-top: 1px solid var(--line); padding: 2rem 0 2.5rem; color: var(--steel); font-size: var(--step--1); }
.site-foot .wrap { display: flex; flex-wrap: wrap; gap: .5rem 2rem; justify-content: space-between; }
.site-foot strong { color: var(--ink); }

/* ---- Forma upita ---- */
.form-section { display: grid; grid-template-columns: 220px 1fr; gap: 1.5rem; padding: 1.5rem 0; border-top: 1px solid var(--line); }
.form-section:first-of-type { border-top: 0; padding-top: 0; }
.form-section > header h2 { font-size: var(--step-1); }
.form-section > header p { color: var(--steel); font-size: var(--step--1); margin-top: .3rem; }
@media (max-width: 760px) { .form-section { grid-template-columns: 1fr; gap: .75rem; } }
.submit-bar { border-top: 1px solid var(--line); padding: 1.25rem 0 0; margin-top: .5rem; display: flex; gap: 1rem; align-items: center; justify-content: flex-end; flex-wrap: wrap; }

/* ---- Lista upita ---- */
.order-list { display: grid; gap: .75rem; }
.order-row { display: grid; grid-template-columns: 72px 1fr auto; gap: 1rem; align-items: center; padding: .8rem; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-m); text-decoration: none; }
.order-row:hover { border-color: var(--ink); }
.order-row .cover { width: 72px; height: 72px; border-radius: var(--r-s); background: var(--surface-2) center/cover; border: 1px solid var(--line-2); display: grid; place-items: center; }
.order-row h3 { font-size: var(--step-1); }
.order-row .meta { font-size: var(--step--1); color: var(--steel); margin-top: .15rem; }
@media (max-width: 560px) { .order-row { grid-template-columns: 56px 1fr; } .order-row .cover { width: 56px; height: 56px; } .order-row .side { grid-column: 1 / -1; } }

/* ---- Detalj upita ---- */
.detail-grid { display: grid; grid-template-columns: 1fr 320px; gap: 1.25rem; align-items: start; }
@media (max-width: 900px) { .detail-grid { grid-template-columns: 1fr; } }
.quote-card { border: 2px solid var(--ink); background: #FFFBEA; }
.quote-card .price { font-size: var(--step-4); font-weight: 850; font-stretch: 120%; letter-spacing: -.02em; line-height: 1; margin: .35rem 0 .5rem; }
dl.facts-dl { display: grid; grid-template-columns: max-content 1fr; gap: .45rem 1rem; margin: 0; }
dl.facts-dl dt { color: var(--steel); font-size: var(--step--1); padding-top: .1rem; }
dl.facts-dl dd { margin: 0; font-weight: 600; }
.composer { display: grid; gap: .5rem; margin-top: 1rem; }
.composer textarea { min-height: 80px; }

.auth-box { max-width: 460px; margin: 0 auto; }

/* ---- Video radovi ---- */
.sec-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 1rem 2rem; flex-wrap: wrap; }
.vgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 1.5rem 1rem; margin-top: 1.75rem; }
.vstrip { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1rem; margin-top: 1.75rem; }
.vstrip > :nth-child(n+5) { display: none; }
@media (max-width: 860px) {
  .vgrid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.25rem .75rem; }
  .vstrip { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: 44%; overflow-x: auto; scroll-snap-type: x mandatory; overscroll-behavior-x: contain;
    margin-inline: -1.25rem; padding: 0 1.25rem .5rem; scroll-padding-inline: 1.25rem; scrollbar-width: none; }
  .vstrip::-webkit-scrollbar { display: none; }
  .vstrip > :nth-child(n+5) { display: grid; }
}
.social-row { display: flex; flex-wrap: wrap; gap: .5rem; }
.site-foot .social a { font-weight: 650; color: var(--ink); }

/* ---- Potvrda prijema dijela ---- */
.confirm-hint { margin-top: .3rem; text-align: right; font-size: var(--step--1); font-weight: 700; color: var(--warn); }

/* ---- Novi odgovori (crvena tačkica) ---- */
.nav-dot { display: inline-grid; place-items: center; min-width: 19px; height: 19px; padding: 0 5px; margin-left: .35rem; border-radius: 10px; background: #D92D20; color: #fff; font-size: .7rem; font-weight: 800; line-height: 1; vertical-align: 1px; font-stretch: 100%; }
.new-dot { display: inline-block; width: 10px; height: 10px; border-radius: 50%; background: #D92D20; margin-right: .5rem; vertical-align: 2px; box-shadow: 0 0 0 3px rgba(217,45,32,.15); }
.order-row.has-new { border-color: #F3B5AE; box-shadow: inset 4px 0 0 #D92D20; }
.order-row .last-reply { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; margin-top: .35rem; font-size: var(--step--1); color: var(--steel); line-height: 1.4; }
.order-row .last-reply.is-new { color: var(--ink); }
.order-row .last-reply b { color: #B42318; }
.new-tag { display: inline-block; padding: .05rem .4rem; border-radius: 999px; background: #D92D20; color: #fff; font-size: .66rem; font-weight: 800; text-transform: uppercase; letter-spacing: .04em; vertical-align: 1px; }
.tl-item.is-new .bubble { box-shadow: inset 3px 0 0 #D92D20; }
