/* =========================================================
   Troha-Dil · landing za PVC stolariju
   ========================================================= */

:root {
  --bg: #f4f6f9;
  --surface: #ffffff;
  --tint: #e9eef4;
  --ink: #0b1b31;
  --ink-2: #4a586e;
  --ink-3: #74808f;
  --line: #d9e0e8;

  --brand: #005aab;
  --brand-hover: #004a8e;
  --sky: #00adef;
  --sky-soft: #8fd8f8;

  --navy: #0a1d38;
  --navy-line: rgba(255, 255, 255, .12);
  --on-navy: #eef3f9;
  --on-navy-2: #a8b7cb;

  --radius: 16px;
  --radius-lg: 22px;

  --font: "Schibsted Grotesk", "Helvetica Neue", Arial, sans-serif;
  --gutter: clamp(16px, 4vw, 40px);
  --section: clamp(72px, 9vw, 120px);
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 90px; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
body.is-locked { overflow: hidden; }

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3 { margin: 0; font-weight: 600; letter-spacing: -0.025em; line-height: 1.08; text-wrap: balance; }
p, figure, blockquote { margin: 0; }
ul, dl, dd { margin: 0; padding: 0; }
ul { list-style: none; }
button { font: inherit; color: inherit; }
svg { width: 1.15em; height: 1.15em; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: none; }

.container { width: min(1200px, 100%); margin-inline: auto; padding-inline: var(--gutter); }

.skip { position: absolute; left: 16px; top: -60px; z-index: 100; background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 999px; text-decoration: none; }
.skip:focus { top: 16px; }
:focus-visible { outline: 2px solid var(--sky); outline-offset: 3px; border-radius: 6px; }

/* ---------- Tipografija ---------- */
h1 { font-size: clamp(2.5rem, 6vw, 5.1rem); letter-spacing: -0.04em; line-height: .98; }
h2 { font-size: clamp(1.9rem, 3.8vw, 3rem); letter-spacing: -0.035em; }
h3 { font-size: 1.15rem; letter-spacing: -0.015em; line-height: 1.25; }
.lead { font-size: 1.08rem; color: var(--ink-2); }

.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: .8rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase;
  color: var(--brand); margin-bottom: 14px;
}
.eyebrow::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.eyebrow--light { color: var(--sky-soft); }

/* ---------- Gumbi ---------- */
.btn {
  --h: 52px;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: var(--h); padding: 0 24px; border-radius: 999px; border: 1px solid transparent;
  font-weight: 600; font-size: 1rem; text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: background-color .2s, color .2s, border-color .2s;
}
.btn svg { transition: transform .2s; }
.btn:hover svg { transform: translateX(3px); }
.btn--sm { --h: 42px; padding: 0 18px; font-size: .94rem; }
.btn--block { width: 100%; }
.btn--primary { background: var(--brand); color: #fff; }
.btn--primary:hover { background: var(--brand-hover); }
.btn--light { background: #fff; color: var(--ink); }
.btn--glass { background: rgba(255, 255, 255, .12); color: #fff; border-color: rgba(255, 255, 255, .35); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.btn--glass:hover { background: rgba(255, 255, 255, .22); }
.btn--ghost-dark { background: transparent; color: var(--ink); border-color: var(--line); }

/* ---------- Navigacija ---------- */
.nav { position: fixed; inset: 14px 0 auto; z-index: 50; padding-inline: var(--gutter); pointer-events: none; }
.nav__inner {
  pointer-events: auto;
  width: min(1160px, 100%); margin-inline: auto;
  display: flex; align-items: center; gap: 24px;
  padding: 8px 8px 8px 22px; border-radius: 999px;
  background: rgba(255, 255, 255, .88);
  backdrop-filter: saturate(160%) blur(14px); -webkit-backdrop-filter: saturate(160%) blur(14px);
  box-shadow: 0 6px 24px rgba(8, 20, 40, .12);
  transition: background-color .25s;
}
.nav.is-scrolled .nav__inner { background: rgba(255, 255, 255, .97); }
.nav__logo { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); flex: none; }
.nav__logo img { height: 30px; width: auto; }
.nav__links { display: flex; gap: 4px; margin-inline: auto; }
.nav__links a { text-decoration: none; font-size: .95rem; font-weight: 500; color: var(--ink-2); padding: 8px 12px; border-radius: 999px; transition: color .2s, background-color .2s; }
.nav__links a:hover { color: var(--ink); background: var(--tint); }
.nav__links .nav__links-cta { display: none; }
.nav__toggle { display: none; }

@media (max-width: 960px) {
  .nav__inner { gap: 12px; padding-left: 18px; }
  .nav__toggle {
    display: grid; place-content: center; gap: 6px; width: 42px; height: 42px; border-radius: 50%;
    border: 1px solid var(--line); background: #fff; cursor: pointer;
  }
  .nav__toggle span { display: block; width: 16px; height: 1.8px; background: var(--ink); border-radius: 2px; transition: transform .25s; }
  .nav__toggle[aria-expanded="true"] span:first-child { transform: translateY(3.9px) rotate(45deg); }
  .nav__toggle[aria-expanded="true"] span:last-child { transform: translateY(-3.9px) rotate(-45deg); }
  .nav__cta { margin-left: auto; }
  .nav__links {
    position: absolute; left: var(--gutter); right: var(--gutter); top: calc(100% + 8px);
    flex-direction: column; gap: 2px; padding: 10px;
    background: #fff; border-radius: 20px; box-shadow: 0 16px 40px rgba(8, 20, 40, .18);
    opacity: 0; transform: translateY(-8px); visibility: hidden;
    transition: opacity .2s, transform .2s, visibility .2s;
  }
  .nav.is-open .nav__links { opacity: 1; transform: none; visibility: visible; }
  .nav__links a { padding: 12px 14px; font-size: 1.02rem; }
}
@media (max-width: 520px) {
  .nav__cta { display: none; }
  .nav__toggle { margin-left: auto; }
  .nav__links .nav__links-cta { display: block; background: var(--brand); color: #fff; text-align: center; margin-top: 6px; }
  .nav__links .nav__links-cta:hover { background: var(--brand-hover); color: #fff; }
  .nav__logo img { height: 24px; }
  .nav__logo { gap: 8px; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative; isolation: isolate; color: #fff;
  min-height: max(620px, 100svh);
  display: flex; flex-direction: column; justify-content: flex-end;
  padding: 120px 0 clamp(36px, 6vh, 64px); overflow: hidden;
}
.hero__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 40%; z-index: -2; }
.hero__shade {
  position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(180deg, rgba(6, 16, 32, .25) 0%, rgba(6, 16, 32, .05) 18%, rgba(6, 16, 32, .15) 34%, rgba(6, 16, 32, .55) 56%, rgba(6, 16, 32, .78) 80%, rgba(6, 16, 32, .85) 100%);
}
.hero__content { display: flex; flex-direction: column; align-items: center; text-align: center; }
.hero h1 {
  font-size: clamp(2.9rem, 7.6vw, 6.6rem); max-width: 13ch; letter-spacing: -0.045em; line-height: .96;
  text-shadow: 0 2px 30px rgba(4, 10, 22, .45);
}
.hero__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: clamp(26px, 3.5vw, 38px); }
.btn--lg { --h: 58px; padding: 0 30px; font-size: 1.05rem; }

.hero__stats {
  margin-top: clamp(40px, 6vw, 72px);
  display: grid; grid-template-columns: repeat(3, auto); justify-content: center; gap: 0 clamp(48px, 8vw, 120px);
  text-align: center;
}
.hero__stats > div { padding: 0; }
.hero__stats dt { font-size: clamp(1.6rem, 2.8vw, 2.3rem); font-weight: 600; letter-spacing: -0.03em; line-height: 1.1; }
.hero__stats dd { font-size: .92rem; color: rgba(255, 255, 255, .75); margin-top: 4px; }

/* ---------- Sekcije ---------- */
.section { padding-block: var(--section); }
.section--tint { background: var(--tint); }
.section--dark { background: var(--navy); color: var(--on-navy); }
.section--dark .lead { color: var(--on-navy-2); }

.head { margin-bottom: clamp(32px, 4vw, 48px); }
.head--row { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px 40px; flex-wrap: wrap; }
.head__note { color: var(--ink-2); max-width: 36ch; }
.section--dark .head__note { color: var(--on-navy-2); }
.head--center { text-align: center; display: grid; justify-items: center; }
.head--center h2 { max-width: 22ch; }
.head__sub { margin-top: 16px; max-width: 58ch; font-size: 1.1rem; color: var(--ink-2); }
.section--dark .head__sub { color: var(--on-navy-2); }

/* ---------- Proizvodi ---------- */
.products { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.product {
  display: grid; grid-template-rows: auto 1fr; gap: 12px; padding: 0; border: 0; background: none;
  text-align: left; cursor: pointer; text-decoration: none; color: inherit;
}
.product__img {
  position: relative; display: block; aspect-ratio: 1 / 1; overflow: hidden; border-radius: var(--radius);
  background: #fff; border: 1px solid var(--line); transition: border-color .25s, box-shadow .25s;
}
.product__img img { position: absolute; inset: 0; width: 100%; height: 100%; }
.product__main { object-fit: contain; padding: 9%; transition: opacity .45s ease, transform .6s cubic-bezier(.2, .7, .2, 1); }
.product__real { object-fit: cover; opacity: 0; transform: scale(1.04); transition: opacity .45s ease, transform .8s cubic-bezier(.2, .7, .2, 1); }
.product:hover .product__img, .product:focus-visible .product__img { border-color: transparent; box-shadow: 0 14px 34px rgba(11, 27, 49, .14); }
.product:hover .product__main, .product:focus-visible .product__main { opacity: 0; }
.product:hover .product__real, .product:focus-visible .product__real { opacity: 1; transform: none; }
.product__count {
  position: absolute; left: 10px; bottom: 10px; display: inline-flex; align-items: center; gap: 6px;
  font-size: .76rem; font-weight: 600; padding: 5px 10px; border-radius: 999px;
  background: rgba(255, 255, 255, .92); color: var(--ink);
  opacity: 0; transform: translateY(4px); transition: opacity .25s, transform .25s;
}
.product__count::before {
  content: ""; width: 12px; height: 12px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230b1b31' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='3' width='18' height='18' rx='2'/%3E%3Ccircle cx='9' cy='9' r='2'/%3E%3Cpath d='m21 15-5-5L5 21'/%3E%3C/svg%3E") center / contain no-repeat;
}
.product:hover .product__count, .product:focus-visible .product__count { opacity: 1; transform: none; }
.product__text { display: grid; gap: 2px; padding-inline: 2px; justify-items: center; text-align: center; }
.product__text strong { font-size: 1.1rem; font-weight: 600; letter-spacing: -0.015em; line-height: 1.25; }
.product__text span { color: var(--ink-3); font-size: .93rem; }

.product__img--cta { display: grid; place-items: center; background: var(--brand); border-color: var(--brand); color: #fff; }
.product__qmark { font-size: clamp(4.5rem, 9vw, 7.5rem); font-weight: 500; line-height: 1; letter-spacing: 0; transition: transform .3s; }
.product--cta:hover .product__img--cta { background: var(--brand-hover); }
.product--cta:hover .product__qmark { transform: scale(1.08); }
.product--cta .product__text span { color: var(--brand); font-weight: 500; }

@media (max-width: 1020px) { .products { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 720px) {
  .products { grid-template-columns: repeat(2, 1fr); gap: 16px 12px; }
  .product__count { opacity: 1; transform: none; font-size: .7rem; padding: 4px 8px; }
  .product__text strong { font-size: 1rem; }
  .product__text span { font-size: .85rem; }
}

/* ---------- Kvaliteta ---------- */
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.feature {
  background: var(--surface); border-radius: var(--radius); padding: 26px 24px;
  display: grid; gap: 10px; align-content: start;
}
.feature__icon { width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center; background: rgba(0, 90, 171, .08); color: var(--brand); margin-bottom: 6px; }
.feature__icon svg { width: 22px; height: 22px; }
.feature__logo { height: 46px; display: flex; align-items: center; margin-bottom: 6px; }
.feature__logo img { height: 30px; width: auto; }
.feature__logo--ift img { height: 46px; }
.feature p { color: var(--ink-2); font-size: .96rem; }
@media (max-width: 960px) { .features { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) {
  .features { grid-template-columns: 1fr; gap: 10px; }
}

/* ---------- Projekti ---------- */
.projects { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.project {
  display: block; padding: 0; border: 0; background: var(--tint); cursor: zoom-in;
  aspect-ratio: 4 / 3; border-radius: var(--radius); overflow: hidden;
}
.project img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s cubic-bezier(.2, .7, .2, 1); }
.project:hover img { transform: scale(1.05); }
@media (max-width: 760px) { .projects { grid-template-columns: repeat(2, 1fr); gap: 10px; } .project { border-radius: 12px; } }

/* ---------- Proizvodnja ---------- */
.videos { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.videos .video__play { width: 76px; height: 76px; }
@media (max-width: 760px) { .videos { grid-template-columns: 1fr; gap: 14px; } .videos .video__play { width: 64px; height: 64px; } }
.video { position: relative; aspect-ratio: 16 / 9; border-radius: var(--radius-lg); overflow: hidden; background: #000; }
.video > img { width: 100%; height: 100%; object-fit: cover; opacity: .75; transition: opacity .3s, transform .6s; }
.video:hover > img { opacity: .9; transform: scale(1.02); }
.video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video__play {
  position: absolute; inset: 0; margin: auto; width: 88px; height: 88px; border-radius: 50%;
  border: 0; background: #fff; color: var(--brand); display: grid; place-items: center; cursor: pointer;
  box-shadow: 0 12px 40px rgba(0, 0, 0, .35); transition: transform .2s;
}
.video__play:hover { transform: scale(1.07); }
.video__play svg { width: 32px; height: 32px; fill: currentColor; stroke: none; margin-left: 4px; }
.video__label {
  position: absolute; left: 20px; bottom: 18px; font-size: .9rem; font-weight: 600; color: #fff;
  padding: 7px 14px; border-radius: 999px; background: rgba(6, 16, 32, .55); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
}
.video.is-playing > img, .video.is-playing .video__play, .video.is-playing .video__label { display: none; }
@media (max-width: 520px) { .video__play { width: 64px; height: 64px; } .video__play svg { width: 24px; height: 24px; } .video__label { left: 12px; bottom: 12px; font-size: .8rem; } }

.figures { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 44px; text-align: center; }
.figures > div { padding: 8px 0; }
.figures dt { font-size: clamp(1.6rem, 2.8vw, 2.3rem); font-weight: 600; letter-spacing: -0.03em; color: #fff; line-height: 1.1; }
.figures dd { color: var(--on-navy-2); font-size: .94rem; margin-top: 6px; max-width: 26ch; margin-inline: auto; }

/* ---------- Recenzije (slider) ---------- */
.slider-nav { display: flex; justify-content: center; gap: 10px; margin-top: 28px; }
.slider-nav--mobile { display: none; }
.slider-btn {
  width: 48px; height: 48px; border-radius: 50%; border: 1px solid var(--line); background: var(--surface);
  display: grid; place-items: center; cursor: pointer; transition: background-color .2s, border-color .2s;
}
.slider-btn:hover { border-color: var(--ink-3); }
.slider-btn svg { width: 20px; height: 20px; }

.reviews {
  --per: 3;
  display: grid; grid-auto-flow: column; align-items: stretch;
  grid-auto-columns: calc((100% - (var(--per) - 1) * 16px) / var(--per));
  gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth;
  scrollbar-width: none; padding-bottom: 4px; outline: none;
}
.reviews::-webkit-scrollbar { display: none; }
.review {
  scroll-snap-align: start;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 26px; display: flex; flex-direction: column; gap: 16px;
}
.stars { height: 18px; width: 102px; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 102 18'%3E%3Cg fill='%23f5b400'%3E%3Cpath d='m9 1 2.2 4.6 5 .7-3.6 3.5.9 5L9 12.4l-4.5 2.4.9-5L1.8 6.3l5-.7Z'/%3E%3Cpath transform='translate(21 0)' d='m9 1 2.2 4.6 5 .7-3.6 3.5.9 5L9 12.4l-4.5 2.4.9-5L1.8 6.3l5-.7Z'/%3E%3Cpath transform='translate(42 0)' d='m9 1 2.2 4.6 5 .7-3.6 3.5.9 5L9 12.4l-4.5 2.4.9-5L1.8 6.3l5-.7Z'/%3E%3Cpath transform='translate(63 0)' d='m9 1 2.2 4.6 5 .7-3.6 3.5.9 5L9 12.4l-4.5 2.4.9-5L1.8 6.3l5-.7Z'/%3E%3Cpath transform='translate(84 0)' d='m9 1 2.2 4.6 5 .7-3.6 3.5.9 5L9 12.4l-4.5 2.4.9-5L1.8 6.3l5-.7Z'/%3E%3C/g%3E%3C/svg%3E") left center / contain no-repeat; }
.review blockquote { flex: 1; font-size: 1rem; line-height: 1.6; color: var(--ink); }
.review figcaption { display: grid; grid-template-columns: 38px 1fr; column-gap: 12px; align-items: center; padding-top: 14px; border-top: 1px solid var(--line); }
.review figcaption::before {
  content: attr(data-initial); grid-row: span 2; width: 38px; height: 38px; border-radius: 50%;
  display: grid; place-items: center; font-weight: 600; font-size: .95rem; color: var(--brand); background: rgba(0, 90, 171, .1);
}
.review figcaption strong { display: block; font-weight: 600; line-height: 1.2; }
.review figcaption span { display: block; font-size: .85rem; color: var(--ink-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.review figcaption span::before { content: "Google · "; }
.review figcaption strong { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

@media (max-width: 960px) { .reviews { --per: 2; } }
@media (max-width: 640px) {
  .reviews { grid-auto-columns: 100%; gap: 16px; } /* jedna recenzija po jedna, bez dijela sljedeće */
  .review { padding: 22px; }
}

/* ---------- Česta pitanja ---------- */
.faq { display: grid; grid-template-columns: 1fr 1.5fr; gap: clamp(32px, 6vw, 96px); align-items: start; }
.faq__head h2 { margin-bottom: 16px; }
.faq__head .lead { max-width: 30ch; }
.faq__head a { color: var(--brand); font-weight: 600; text-decoration: none; white-space: nowrap; }
.faq__list details { border-top: 1px solid var(--line); }
.faq__list details:last-child { border-bottom: 1px solid var(--line); }
.faq__list summary {
  list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 24px;
  padding: 20px 0; font-size: 1.1rem; font-weight: 600; letter-spacing: -0.01em;
}
.faq__list summary::-webkit-details-marker { display: none; }
.faq__list summary::after {
  content: ""; flex: none; width: 32px; height: 32px; border-radius: 50%; border: 1px solid var(--line);
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23005aab' stroke-width='2.2' stroke-linecap='round'%3E%3Cpath d='M12 5v14M5 12h14'/%3E%3C/svg%3E") center / 14px no-repeat;
  transition: transform .25s, background-color .25s;
}
.faq__list details[open] summary::after { transform: rotate(45deg); background-color: var(--tint); }
.faq__list details p { padding: 0 48px 22px 0; color: var(--ink-2); }
.faq__list details a { color: var(--brand); }
@media (max-width: 860px) { .faq { grid-template-columns: 1fr; } .faq__list details p { padding-right: 0; } .faq__list summary { font-size: 1.02rem; } }

/* ---------- Koraci (upit) ---------- */
.steps { list-style: none; margin: 28px 0 0; padding: 0; display: grid; gap: 14px; }
.steps li { display: flex; align-items: center; gap: 14px; }
.steps li > span {
  flex: none; width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center;
  font-weight: 600; font-size: .95rem; color: var(--navy); background: var(--sky-soft);
}
.steps strong { display: block; font-weight: 600; color: #fff; line-height: 1.3; }
.steps small { display: block; font-size: .9rem; color: var(--on-navy-2); }

/* ---------- Modal proizvoda ---------- */
.pmodal {
  width: min(1100px, calc(100vw - 32px)); max-width: none; max-height: calc(100vh - 32px); padding: 0; border: 0;
  border-radius: var(--radius-lg); background: var(--surface); color: var(--ink); overflow: hidden;
  box-shadow: 0 40px 80px rgba(4, 11, 24, .4);
}
.pmodal::backdrop { background: rgba(4, 11, 24, .72); backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px); }
.pmodal[open] { animation: pmIn .3s cubic-bezier(.2, .7, .2, 1); }
@keyframes pmIn { from { opacity: 0; transform: translateY(16px) scale(.98); } to { opacity: 1; transform: none; } }
.pmodal__box { position: relative; display: grid; grid-template-columns: 1.25fr 1fr; max-height: calc(100vh - 32px); }
.pmodal__close {
  position: absolute; top: 14px; right: 14px; z-index: 3; width: 42px; height: 42px; border-radius: 50%;
  border: 0; background: rgba(255, 255, 255, .95); box-shadow: 0 2px 10px rgba(0, 0, 0, .12); display: grid; place-items: center; cursor: pointer;
}
.pmodal__gallery { background: var(--bg); padding: 16px; display: grid; gap: 12px; align-content: start; min-width: 0; }
.pmodal__stage { position: relative; aspect-ratio: 4 / 3; border-radius: 14px; overflow: hidden; background: #fff; touch-action: pan-y; }
.pmodal__arrow {
  position: absolute; top: 50%; translate: 0 -50%; width: 44px; height: 44px; border-radius: 50%; border: 0;
  background: rgba(255, 255, 255, .95); box-shadow: 0 2px 10px rgba(0, 0, 0, .15); display: grid; place-items: center; cursor: pointer;
}
.pmodal__arrow svg { width: 20px; height: 20px; }
.pmodal__arrow--prev { left: 12px; }
.pmodal__arrow--next { right: 12px; }
.pmodal__counter {
  position: absolute; left: 12px; bottom: 12px; font-size: .8rem; font-weight: 600;
  padding: 4px 10px; border-radius: 999px; background: rgba(11, 27, 49, .7); color: #fff;
}
.pmodal__thumbs { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; }
.pmodal__thumbs::-webkit-scrollbar { display: none; }
.pmodal__thumbs button {
  flex: none; width: 72px; height: 54px; padding: 0; border: 2px solid transparent; border-radius: 10px; overflow: hidden;
  background: #fff; cursor: pointer; opacity: .65; transition: opacity .2s, border-color .2s;
}
.pmodal__thumbs button img { width: 100%; height: 100%; object-fit: cover; }
.pmodal__thumbs button[aria-current="true"] { opacity: 1; border-color: var(--brand); }
.pmodal__info { padding: 40px 36px 32px; display: flex; flex-direction: column; gap: 16px; overflow-y: auto; }
.pmodal__info h3 { font-size: clamp(1.6rem, 2.6vw, 2.1rem); letter-spacing: -0.03em; padding-right: 40px; }
.pmodal__lead { color: var(--ink-2); }
.pmodal__actions { margin-top: auto; padding-top: 12px; display: grid; gap: 10px; justify-items: start; }
.pmodal__phone { font-size: .92rem; color: var(--ink-2); text-decoration: none; }
.pmodal__phone:hover { color: var(--brand); }

.checks { display: grid; gap: 10px; }
.checks li { position: relative; padding-left: 30px; color: var(--ink); font-size: .98rem; line-height: 1.45; }
.checks li::before {
  content: ""; position: absolute; left: 0; top: .12em; width: 20px; height: 20px; border-radius: 50%;
  background: rgba(0, 90, 171, .1) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23005aab' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 12 4 4 8-8'/%3E%3C/svg%3E") center / 12px no-repeat;
}

@media (max-width: 860px) {
  .pmodal { width: 100vw; max-height: 100dvh; height: 100dvh; border-radius: 0; margin: 0; }
  .pmodal__box { grid-template-columns: 1fr; max-height: 100dvh; height: 100%; overflow-y: auto; }
  .pmodal__gallery { padding: 12px; }
  .pmodal__info { padding: 8px 20px 28px; overflow: visible; }
  .pmodal__actions .btn { width: 100%; }
  .pmodal__actions { justify-items: stretch; text-align: center; }
  .pmodal__arrow { width: 38px; height: 38px; }
}

/* ---------- Forma ---------- */
.section--form { position: relative; overflow: hidden; }
.section--form::before {
  content: ""; position: absolute; width: 720px; height: 720px; border-radius: 50%;
  right: -260px; top: -320px; background: radial-gradient(circle, rgba(0, 173, 239, .16), transparent 65%);
  pointer-events: none;
}
.quote {
  position: relative; display: grid; grid-template-columns: 1fr 1.15fr; column-gap: clamp(32px, 6vw, 88px); row-gap: 0;
  grid-template-areas: "intro form" "extra form"; grid-template-rows: auto 1fr; align-items: start;
}
.quote__intro { grid-area: intro; }
.quote__extra { grid-area: extra; }
.quote .form { grid-area: form; }
.quote__intro h2 { margin-bottom: 16px; }
.quote__intro .lead { max-width: 34ch; }
.quote__contacts { display: grid; gap: 2px; margin-top: 28px; }
.quote__contacts a { display: inline-flex; align-items: center; gap: 12px; padding: 8px 0; color: var(--on-navy); text-decoration: none; font-weight: 500; font-size: 1.05rem; }
.quote__contacts a:hover { color: var(--sky-soft); }
.quote__contacts svg { color: var(--sky-soft); }

.form {
  position: relative; background: var(--surface); color: var(--ink);
  border-radius: var(--radius-lg); padding: clamp(22px, 3vw, 34px);
  display: grid; gap: 18px; box-shadow: 0 30px 60px rgba(0, 0, 0, .25);
}
.form .hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.form fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
.form legend, .field > span { display: block; font-size: .9rem; font-weight: 600; margin-bottom: 10px; }

.pills { display: flex; flex-wrap: wrap; gap: 8px; }
.pill input { position: absolute; opacity: 0; pointer-events: none; }
.pill span {
  display: inline-flex; align-items: center; gap: 8px; padding: 9px 14px; border-radius: 999px;
  border: 1.5px solid var(--line); font-size: .92rem; font-weight: 500; cursor: pointer; user-select: none;
  transition: border-color .2s, background-color .2s, color .2s;
}
.pill span::before { content: ""; width: 14px; height: 14px; border-radius: 4px; border: 1.5px solid var(--line); background: #fff center / 10px no-repeat; }
.pill input:checked + span { border-color: var(--brand); color: var(--brand); background: rgba(0, 90, 171, .05); }
.pill input:checked + span::before {
  border-color: var(--brand); background-color: var(--brand);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 12 4 4 8-8'/%3E%3C/svg%3E");
}
.pill input:focus-visible + span { outline: 2px solid var(--sky); outline-offset: 2px; }

.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { display: block; }
.field input, .field textarea {
  width: 100%; font: inherit; font-size: 1rem; color: var(--ink);
  background: var(--bg); border: 1.5px solid transparent; border-radius: 12px;
  padding: 13px 14px; min-height: 50px; transition: border-color .2s, background-color .2s;
}
.field textarea { resize: vertical; min-height: 92px; }
.field input::placeholder, .field textarea::placeholder { color: #8d98a8; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--brand); background-color: #fff; }
.field__err { display: none; font-style: normal; font-size: .83rem; color: #c42b2b; margin-top: 6px; }
.field.is-invalid input { border-color: #c42b2b; background-color: #fff6f6; }
.field.is-invalid .field__err { display: block; }

.form__legal { font-size: .83rem; color: var(--ink-3); text-align: center; margin-top: -4px; }
.form__legal a { color: var(--ink-2); }

.form__done {
  position: absolute; inset: 0; z-index: 2; border-radius: inherit; background: var(--surface);
  display: grid; place-content: center; justify-items: center; text-align: center; gap: 12px; padding: 32px;
}
.form__done[hidden] { display: none; }
.form__done-icon { width: 64px; height: 64px; border-radius: 50%; display: grid; place-items: center; background: rgba(0, 90, 171, .1); color: var(--brand); margin-bottom: 6px; }
.form__done-icon svg { width: 30px; height: 30px; stroke-width: 2.4; }
.form__done h3 { font-size: 1.5rem; }
.form__done p { color: var(--ink-2); }

@media (max-width: 960px) { .quote { grid-template-columns: 1fr; grid-template-rows: none; grid-template-areas: "intro" "form" "extra"; row-gap: 28px; } }
@media (max-width: 520px) { .form__row { grid-template-columns: 1fr; } }

/* ---------- Footer ---------- */
.footer { background: #071429; color: var(--on-navy-2); font-size: .95rem; text-align: center; }
.footer a { text-decoration: none; color: inherit; }
.footer__inner { display: flex; flex-direction: column; align-items: center; gap: 18px; padding-block: 56px 44px; }
.footer__brand { display: flex; flex-direction: column; align-items: center; gap: 10px; }
.footer__brand img { height: 36px; width: auto; }
.footer__salon { color: var(--on-navy-2); font-size: .9rem; font-weight: 500; letter-spacing: .02em; }
.footer__brand strong { color: #fff; font-size: 1.2rem; }
.footer__tagline { max-width: 40ch; }
.footer__contact {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 36px;
  margin-top: 6px; padding: 0; list-style: none;
}
.footer__contact a { display: inline-flex; align-items: center; gap: 8px; color: var(--on-navy); transition: color .2s; }
.footer__contact a:hover { color: #fff; }
.footer__contact svg { width: 18px; height: 18px; color: var(--sky-soft); }
.footer__contact span { display: inline; font-weight: 500; }
.footer__contact small { font-size: inherit; font-weight: 400; color: var(--on-navy-2); margin-right: 6px; }
.footer__bottom { display: flex; justify-content: center; padding-block: 20px; border-top: 1px solid var(--navy-line); font-size: .85rem; text-align: center; }
@media (max-width: 640px) { .footer__contact { flex-direction: column; align-items: center; gap: 12px; } }

/* ---------- Mobilni CTA ---------- */
.mcta { display: none; }
@media (max-width: 760px) {
  .mcta {
    position: fixed; left: 12px; right: 12px; bottom: 12px; z-index: 40;
    display: grid; grid-template-columns: auto 1fr; gap: 8px; padding: 8px;
    background: rgba(255, 255, 255, .96); border-radius: 999px;
    backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 10px 30px rgba(8, 20, 40, .22);
    transform: translateY(140%); transition: transform .35s cubic-bezier(.2, .7, .2, 1);
  }
  .mcta .btn { --h: 46px; padding: 0 18px; }
  .mcta.is-visible { transform: none; }
  .footer { padding-bottom: 76px; }
}

/* ---------- Lightbox ---------- */
.lightbox {
  width: 100vw; height: 100vh; max-width: none; max-height: none; margin: 0; padding: 0; border: 0;
  background: rgba(4, 11, 24, .94); color: #fff;
}
.lightbox[open] { display: grid; grid-template-columns: 72px 1fr 72px; align-items: center; }
.lightbox::backdrop { background: transparent; }
.lightbox button {
  width: 48px; height: 48px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .25);
  background: rgba(255, 255, 255, .08); display: grid; place-items: center; cursor: pointer; justify-self: center;
}
.lightbox button:hover { background: rgba(255, 255, 255, .18); }
.lightbox button svg { width: 22px; height: 22px; }
.lightbox__close { position: absolute; top: 16px; right: 16px; }
@media (max-width: 640px) {
  .lightbox[open] { grid-template-columns: 1fr; }
  .lightbox__nav { position: absolute; bottom: 24px; }
  .lightbox__nav--prev { left: calc(50% - 60px); }
  .lightbox__nav--next { right: calc(50% - 60px); }
}

/* ---------- Animacije pri skrolanju ---------- */
.js .reveal { opacity: 0; transform: translateY(16px); transition: opacity .6s ease, transform .6s cubic-bezier(.2, .7, .2, 1); }
.js .reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .product__img img, .project img, .video > img { transition: none; }
  .reviews { scroll-behavior: auto; }
  .pmodal[open] { animation: none; }
}

/* =========================================================
   MOBILNI PRIKAZ (do 640px)
   ========================================================= */
@media (max-width: 640px) {
  :root { --section: 64px; --radius: 14px; --radius-lg: 18px; }
  body { font-size: 16px; }
  h2 { font-size: 1.85rem; line-height: 1.12; }
  .head { margin-bottom: 24px; }
  .head--row { gap: 10px; }
  .head__note { font-size: .98rem; }

  /* Navigacija */
  .nav { inset: 10px 0 auto; }
  .nav__inner { padding: 6px 6px 6px 16px; }
  .nav__toggle { width: 40px; height: 40px; }

  /* Hero */
  .hero { min-height: 100svh; padding: 96px 0 22px; }
  .hero__img { object-position: 58% 50%; }
  .hero h1 { font-size: 2.75rem; max-width: 11ch; }
  .hero__shade { background: linear-gradient(180deg, rgba(6, 16, 32, .25) 0%, rgba(6, 16, 32, 0) 16%, rgba(6, 16, 32, .2) 30%, rgba(6, 16, 32, .68) 50%, rgba(6, 16, 32, .85) 100%); }
  .hero__actions { flex-direction: column; align-self: stretch; gap: 10px; margin-top: 24px; }
  .hero__actions .btn { width: 100%; --h: 54px; }
  .hero__stats { margin-top: 30px; grid-template-columns: repeat(3, 1fr); gap: 8px; align-self: stretch; }
  .hero__stats dt { font-size: 1.45rem; }
  .hero__stats dd { font-size: .82rem; margin-top: 2px; }

  /* Proizvodi */
  .products { gap: 14px 12px; }
  .product { gap: 10px; }
  .product__count { display: none; }
  .product__main { padding: 10%; }
  .product__text strong { font-size: .98rem; }
  .product__text span { font-size: .82rem; line-height: 1.4; }

  /* Kvaliteta */
  .feature { padding: 18px 20px 20px; grid-template-columns: auto 1fr; column-gap: 14px; row-gap: 8px; align-items: center; }
  .feature__icon, .feature__logo { margin: 0; }
  .feature p { grid-column: 1 / -1; }
  .feature__icon { width: 40px; height: 40px; border-radius: 10px; }
  .feature__icon svg { width: 20px; height: 20px; }
  .feature__logo { height: 40px; }
  .feature__logo img { height: 24px; }
  .feature__logo--ift img { height: 40px; }
  .feature h3 { font-size: 1.08rem; }
  .feature p { font-size: .93rem; }

  /* Projekti: vodoravno listanje */
  .projects {
    grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: 84%; gap: 10px;
    overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none;
    margin-inline: calc(var(--gutter) * -1); padding-inline: var(--gutter); scroll-padding-inline: var(--gutter);
  }
  .projects::-webkit-scrollbar { display: none; }
  .project { scroll-snap-align: start; border-radius: var(--radius); }
  .slider-nav { margin-top: 20px; }
  .slider-nav--mobile { display: flex; }

  /* O nama */
  .video { border-radius: var(--radius); }
  .figures { gap: 8px; margin-top: 28px; }
  .figures > div { padding: 6px 2px; }
  .figures dt { font-size: 1.45rem; min-width: 0; }
  .figures dd { font-size: .8rem; line-height: 1.35; margin-top: 4px; }

  /* Recenzije */
  .review { padding: 20px; gap: 14px; }
  .review blockquote { font-size: .96rem; }

  /* Upit */
  .quote { row-gap: 24px; }
  .steps { margin-top: 22px; gap: 12px; }
  .quote__contacts { margin-top: 8px; }
  .quote__contacts a { font-size: 1rem; padding: 6px 0; }
  .form { padding: 20px; gap: 16px; border-radius: var(--radius-lg); }
  .pill span { padding: 8px 12px; font-size: .88rem; }
  .field input, .field textarea { font-size: 16px; }

  /* Česta pitanja */
  .faq { gap: 20px; }
  .faq__list summary { font-size: 1rem; padding: 18px 0; gap: 16px; }
  .faq__list summary::after { width: 28px; height: 28px; }
  .faq__list details p { font-size: .95rem; padding-bottom: 18px; }

  /* Footer i donja traka */
  .footer__inner { padding-block: 44px 32px; gap: 14px; }
  .footer { padding-bottom: calc(84px + env(safe-area-inset-bottom)); }
  .mcta { bottom: calc(10px + env(safe-area-inset-bottom)); left: 10px; right: 10px; }
}


/* =========================================================
   STRANICA ZAHVALE (/hvala)
   ========================================================= */
.thanks-page { background: var(--navy); }
.thanks-page .footer { padding-bottom: 0; }
.thanks {
  position: relative; overflow: hidden; min-height: 100svh;
  display: grid; place-items: center; padding: 120px var(--gutter) 72px;
}
.thanks::before {
  content: ""; position: absolute; width: 900px; height: 900px; border-radius: 50%;
  left: 50%; top: -420px; translate: -50% 0; pointer-events: none;
  background: radial-gradient(circle, rgba(0, 173, 239, .2), transparent 62%);
}
.thanks__card {
  position: relative; width: min(520px, 100%); background: var(--surface); color: var(--ink);
  border-radius: var(--radius-lg); padding: clamp(28px, 5vw, 48px); text-align: center;
  box-shadow: 0 40px 80px rgba(0, 0, 0, .3);
  animation: thanksIn .6s cubic-bezier(.2, .7, .2, 1) both;
}
@keyframes thanksIn { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
.thanks__icon {
  width: 72px; height: 72px; margin: 0 auto 20px; border-radius: 50%; display: grid; place-items: center;
  background: var(--brand); color: #fff; box-shadow: 0 0 0 10px rgba(0, 90, 171, .1);
}
.thanks__icon svg { width: 34px; height: 34px; stroke-width: 2.6; }
.thanks h1 { font-size: clamp(2rem, 4.6vw, 2.8rem); letter-spacing: -0.035em; margin-bottom: 14px; }
.thanks__lead { color: var(--ink-2); font-size: 1.08rem; max-width: 44ch; margin: 0 auto 28px; }

.thanks__next { margin: 28px 0; padding: 22px; border-radius: 16px; background: var(--bg); text-align: left; }
.thanks__next h2 { font-size: .8rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); margin-bottom: 14px; }
.thanks__next ol { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.thanks__next li { display: flex; align-items: center; gap: 14px; }
.thanks__next li > span {
  flex: none; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center;
  font-weight: 600; font-size: .92rem; color: var(--brand); background: rgba(0, 90, 171, .1);
}
.thanks__next strong { display: block; font-weight: 600; line-height: 1.3; }
.thanks__next small { display: block; font-size: .9rem; color: var(--ink-3); }

.thanks__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.thanks__help { margin-top: 20px; font-size: .9rem; color: var(--ink-3); }
.thanks__help a { color: var(--brand); font-weight: 600; text-decoration: none; white-space: nowrap; }
.thanks__call { margin-left: auto; }
@media (max-width: 520px) {
  .thanks { padding-top: 100px; }
  .thanks__card .btn { width: 100%; }
}

/* =========================================================
   STRELICE (iste na svim mjestima)
   ========================================================= */
.slider-btn, .pmodal__arrow, .lightbox__nav {
  --arrow: 56px;
  width: var(--arrow); height: var(--arrow); padding: 0; border-radius: 50%;
  display: grid; place-items: center; line-height: 0; flex: none;
}
.slider-btn svg, .pmodal__arrow svg, .lightbox__nav svg { width: 26px; height: 26px; stroke-width: 2; }
.slider-nav { gap: 12px; margin-top: 32px; }
.slider-btn {
  border: 1.5px solid var(--line); background: var(--surface); color: var(--ink);
  box-shadow: 0 2px 10px rgba(11, 27, 49, .06); transition: background-color .2s, border-color .2s, color .2s;
}
.slider-btn:hover { background: var(--ink); border-color: var(--ink); color: #fff; }
.pmodal__arrow { color: var(--ink); }
.pmodal__close, .lightbox__close { width: 48px; height: 48px; padding: 0; display: grid; place-items: center; }
.pmodal__close svg, .lightbox__close svg { width: 22px; height: 22px; stroke-width: 2; }
@media (max-width: 860px) {
  .pmodal__arrow { --arrow: 48px; }
  .pmodal__arrow svg { width: 24px; height: 24px; }
}
@media (max-width: 640px) {
  .slider-btn, .lightbox__nav { --arrow: 52px; }
  .slider-nav { margin-top: 24px; }
  .lightbox__nav--prev { left: calc(50% - 64px); }
  .lightbox__nav--next { right: calc(50% - 64px); }
}

/* =========================================================
   GLATKO KLIZANJE (galerija proizvoda, povećanje projekata, slideri)
   ========================================================= */
.projects { scroll-behavior: smooth; }

.pmodal__track {
  display: flex; height: 100%;
  transition: transform .6s cubic-bezier(.65, 0, .35, 1); will-change: transform;
}
.pmodal__track img {
  flex: 0 0 100%; width: 100%; height: 100%; object-fit: contain;
  user-select: none; -webkit-user-drag: none;
}

.lightbox__viewport { overflow: hidden; min-width: 0; height: 100vh; height: 100dvh; }
.lightbox__track {
  display: flex; height: 100%;
  transition: transform .6s cubic-bezier(.65, 0, .35, 1); will-change: transform;
}
.lightbox__slide { flex: 0 0 100%; min-width: 0; display: grid; place-items: center; padding: 64px 0; touch-action: pan-y; }
.lightbox__slide img {
  max-width: 100%; max-height: calc(100vh - 128px); width: auto; height: auto; border-radius: 10px;
  user-select: none; -webkit-user-drag: none;
}
@media (max-width: 640px) {
  .lightbox__slide { padding: 70px 12px 96px; }
  .lightbox__slide img { max-height: calc(100dvh - 180px); }
}
@media (prefers-reduced-motion: reduce) {
  .pmodal__track, .lightbox__track { transition: none; }
  .projects { scroll-behavior: auto; }
}

/* ---------- TT GRADNJA: logo i ocjena ---------- */
.brand { display: grid; line-height: 1.1; text-align: left; }
.brand strong { font-size: 1.06rem; font-weight: 700; letter-spacing: -0.02em; white-space: nowrap; }
.brand small { font-size: .74rem; font-weight: 500; color: var(--ink-3); white-space: nowrap; margin-top: 2px; }
.footer__brand .brand small { color: var(--on-navy-2); font-size: .8rem; }
@media (max-width: 520px) {
  .nav__logo .brand strong { font-size: 1rem; }
  .nav__logo .brand small { font-size: .7rem; }
}


/* ---------- Izjava o privatnosti ---------- */
.legal-page { background: var(--bg, #fff); }
.legal { max-width: 760px; padding-top: 128px; padding-bottom: 80px; }
.legal__back { display: inline-flex; align-items: center; gap: 6px; color: var(--ink-2); text-decoration: none; font-weight: 500; margin-bottom: 24px; }
.legal__back:hover { color: var(--ink); }
.legal__back svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.legal h1 { font-size: clamp(2rem, 4.6vw, 2.8rem); letter-spacing: -0.035em; margin-bottom: 16px; }
.legal h2 { font-size: 1.2rem; letter-spacing: -0.015em; margin: 32px 0 8px; }
.legal p { color: var(--ink-2); font-size: 1.04rem; line-height: 1.65; }
.legal a:not(.legal__back) { color: var(--brand); font-weight: 500; }
.footer__bottom a { text-decoration: underline; text-underline-offset: 3px; }

/* Mobitel: navigacija ostaje na vrhu stranice i odlazi sa skrolanjem; donja traka (Nazovite / Zatražite ponudu) ostaje zalijepljena */
@media (max-width: 760px) {
  .nav { position: absolute; }
}
