/* Obrazac „Kroz poslove“. Vrijedi samo na stranicama s .kroz-page. */

body:has(.kroz-page) .pre-footer { display: none; }

.kroz-page {
  color: var(--ink-900);
}

.kroz-page h1 {
  font-size: 36px;
  line-height: 1.15;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin: 0;
  max-width: 16em;
}

.kroz-page h2 {
  font-size: 28px;
  line-height: 1.25;
  font-weight: 650;
  letter-spacing: -0.02em;
  margin: 0 0 21px;
}

.kroz-page h3 {
  font-size: 18px;
  line-height: 1.3;
  font-weight: 650;
  margin: 0 0 8px;
}

.kroz-page [hidden] { display: none !important; }

.kroz-hero { padding: 55px 0 21px; }

.kroz-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr);
  gap: 34px;
  align-items: end;
}

.kroz-eyebrow {
  margin: 0 0 10px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.01em;
  color: var(--cta);
}

.kroz-lead {
  margin: 0;
  font-size: 18px;
  line-height: 1.5;
  color: var(--ink-700);
}

.kroz-showcase { padding: 21px 0 55px; }

.kroz-showcase-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.69fr) minmax(0, 1.61fr);
  gap: 27px;
  align-items: start;
}

.kroz-jobs {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.kroz-job {
  display: block;
  width: 100%;
  margin: 0;
  padding: 14px 16px;
  border: 0;
  border-left: 3px solid transparent;
  border-radius: 0 6px 6px 0;
  background: transparent;
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
}

.kroz-job:hover { background: #f4f8f7; }

.kroz-job[aria-pressed="true"],
.kroz-job--static {
  background: #edf4f2;
  border-left-color: #147a6c;
}

.kroz-job--static { cursor: default; }
.kroz-job--static:hover { background: #edf4f2; }

.kroz-job-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.35;
  color: var(--ink-900);
}

.kroz-job-title svg { flex: 0 0 auto; color: var(--cta); }

.kroz-job-text {
  display: block;
  margin-top: 4px;
  font-size: 14px;
  line-height: 1.45;
  color: var(--ink-700);
}

.kroz-preview-head {
  display: flex;
  align-items: center;
  min-height: 28px;
  margin-bottom: 10px;
}

.kroz-screen-title {
  margin: 0;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.35;
}

.kroz-figure { margin: 0; }

.kroz-shot {
  display: block;
  width: 100%;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: zoom-in;
  font: inherit;
  text-align: left;
}

.kroz-shot img,
.kroz-figure img {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid #dbe5e2;
  border-radius: 5px;
  box-shadow: 0 8px 24px rgba(16, 24, 32, 0.06);
}

body.kroz-zoom-open { overflow: hidden; }

.kroz-zoom {
  position: fixed;
  inset: 0;
  z-index: 80;
  background: rgba(16, 24, 32, 0.48);
  opacity: 0;
  transition: opacity 320ms ease;
}

.kroz-zoom.is-open { opacity: 1; }

.kroz-zoom img {
  position: fixed;
  z-index: 81;
  margin: 0;
  max-width: none;
  border: 0;
  border-radius: 5px;
  background: #fff;
  box-shadow: 0 24px 80px rgba(16, 24, 32, 0.28);
  object-fit: contain;
  transition: left 320ms cubic-bezier(.16, 1, .3, 1), top 320ms cubic-bezier(.16, 1, .3, 1), width 320ms cubic-bezier(.16, 1, .3, 1), height 320ms cubic-bezier(.16, 1, .3, 1);
}

.kroz-zoom-x {
  position: fixed;
  top: 16px;
  right: 16px;
  z-index: 82;
  width: 40px;
  height: 40px;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 20px;
  background: #fff;
  color: var(--ink-900);
  font: inherit;
  font-size: 26px;
  line-height: 1;
  cursor: pointer;
}

.kroz-zoom-x:hover { background: var(--mint-hover); }

@media (prefers-reduced-motion: reduce) {
  .kroz-zoom,
  .kroz-zoom img { transition: none; }
}

.kroz-figure figcaption {
  margin-top: 10px;
  font-size: 14px;
  line-height: 1.45;
  color: var(--ink-700);
}

.kroz-showcase--text .kroz-showcase-grid {
  grid-template-columns: minmax(0, 1fr);
}

.kroz-showcase--text .kroz-jobs {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 21px;
}

.kroz-details {
  background: #edf4f2;
  border-block: 1px solid #dbe5e2;
  padding: 55px 0;
}

.kroz-details-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 27px;
}

.kroz-details-grid > article:last-child:nth-child(3n + 1) {
  grid-column: 1 / -1;
  max-width: 46rem;
}

.kroz-details p,
.kroz-more p,
.kroz-notes p {
  margin: 0;
  font-size: 16px;
  line-height: 1.55;
  color: var(--ink-700);
}

.kroz-more { padding: 55px 0 13px; }

.kroz-notes { padding: 34px 0 13px; }

.kroz-note { max-width: 46rem; }

.kroz-note p + p { margin-top: 12px; }

.kroz-price { padding: 34px 0 21px; }

.kroz-price-lead {
  margin: 0 0 16px;
  max-width: 40rem;
  color: var(--ink-700);
}

.kroz-price .price-box { margin-top: 0; }

.kroz-contact { padding: 34px 0 55px; }

.kroz-contact-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 27px;
}

.kroz-contact h2 { margin-bottom: 8px; }

.kroz-contact p {
  margin: 0;
  max-width: 36rem;
  color: var(--ink-700);
  font-size: 17px;
  line-height: 1.5;
}

@media (max-width: 800px) {
  .kroz-page h1 { font-size: 31px; }
}

@media (max-width: 640px) {
  .kroz-page .container { padding-inline: 18px; }
  .kroz-page h1 { font-size: 32px; }
  .kroz-page h2 { font-size: 24px; }
  .kroz-hero { padding-top: 34px; }
  .kroz-hero-grid,
  .kroz-showcase-grid,
  .kroz-details-grid,
  .kroz-showcase--text .kroz-jobs {
    grid-template-columns: minmax(0, 1fr);
  }
  .kroz-showcase--text .kroz-jobs {
    display: flex;
    flex-direction: column;
  }
  .kroz-lead { font-size: 17px; }
  .kroz-contact-inner {
    flex-direction: column;
    align-items: flex-start;
  }
}

.kroz-screen-story .kroz-screen-chapter { padding: 0; }
.kroz-screen-story .kroz-screen-chapter + .kroz-screen-chapter { margin-top: clamp(2rem, 5vw, 4rem); }


.kroz-story-layout {
  display: grid;
  grid-template-columns: minmax(12rem, 1fr) minmax(0, 2.25fr);
  grid-template-areas: "choices stage";
  gap: clamp(1.25rem, 4vw, 3rem);
  align-items: start;
}
.kroz-story-layout--reverse {
  grid-template-columns: minmax(0, 2.25fr) minmax(12rem, 1fr);
  grid-template-areas: "stage choices";
}
.kroz-story-choices { grid-area: choices; }
.kroz-story-choices p { margin: .4rem 0 1rem; }
.kroz-story-tabs .kroz-job { background: rgb(255 255 255 / .45); }
.kroz-story-tabs .kroz-job:hover { background: #f6f9fd; }
.kroz-story-tabs .kroz-job[aria-pressed="true"] {
  background: #deeafa;
  border-left-color: #315a89;
}
.kroz-story-stage {
  grid-area: stage;
  min-width: 0;
  padding: clamp(.6rem, 1.5vw, 1rem);
  border: 1px solid #d7e1ea;
  border-radius: .65rem;
  background: #f7f9fc;
}
.kroz-story-stage .kroz-shot {
  display: grid;
  place-items: center;
  aspect-ratio: 1.55;
}
.kroz-story-stage .kroz-shot img {
  width: auto;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}
.kroz-story-stage .kroz-shot:focus-visible,
.kroz-story-tabs .kroz-job:focus-visible {
  outline: 2px solid #315a89;
  outline-offset: 2px;
}
@media (max-width: 720px) {
  .kroz-story-layout, .kroz-story-layout--reverse {
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas: "choices" "stage";
    gap: .85rem;
  }
  .kroz-story-tabs {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .kroz-story-tabs .kroz-job { height: 100%; padding: .65rem .55rem; }
  .kroz-story-tabs .kroz-job-title { font-size: .875rem; }
}

.kroz-theme-fan-sheets {
  position: relative;
  isolation: isolate;
  width: min(100%, 58rem);
  aspect-ratio: 2.8;
  margin: 1.5rem auto .75rem;
}
.kroz-theme-sheet {
  position: absolute;
  top: 14%;
  left: calc(4% + var(--slot) * 11%);
  width: 37%;
  overflow: hidden;
  border: 1px solid #8095ac;
  border-radius: .45rem;
  box-shadow: 0 .4rem 1rem rgb(21 42 67 / .2);
  background: #dce9f8;
  transform: rotate(calc((var(--slot) - 2.5) * 5deg));
  transform-origin: center 85%;
}
.kroz-theme-sheet img { display: block; width: 100%; height: auto; }
.kroz-theme-sheet--front { z-index: 1; }
.kroz-theme-sheet:hover, .kroz-theme-sheet:focus-visible { z-index: 2; }
.kroz-theme-legend {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: .45rem 1.1rem;
  padding: 0;
  list-style: none;
  font-size: .9rem;
}

.kroz-hero .kroz-theme-fan--hero {
  margin-top: clamp(1.75rem, 4vw, 3rem);
  padding: clamp(1rem, 3vw, 2rem);
  border: 1px solid #d7e1ea;
  border-radius: .7rem;
  background: #f1f6fc;
  text-align: center;
}
.kroz-theme-fan--hero h3 { margin: 0 0 .35rem; }
.kroz-theme-fan--hero p { margin: 0; }

.kroz-theme-legend a { display: block; padding: .25rem .1rem; text-underline-offset: .18em; }


.kroz-zoom { z-index: 10000; }
.kroz-zoom img { z-index: 10001; }
.kroz-zoom-x { z-index: 10002; }
.ordinel-page .kroz-note + h2 { margin-top: 2rem; }
.ordinel-hero-cta, .ordinel-note-cta { display: inline-block; margin-top: 1.25rem; }
.ordinel-page .kroz-details-grid > article:last-child:nth-child(3n + 1) { grid-column: 2; }
@media (max-width: 640px) {
  .ordinel-page .kroz-details-grid > article:last-child:nth-child(3n + 1) { grid-column: auto; }
}


#ordinel-demo .kroz-contact-inner { align-items: flex-start; }
#ordinel-demo .form-wrapper { width: min(100%, 32rem); }
#ordinel-demo .form-field { margin-bottom: .8rem; }
#ordinel-demo label { display: block; font-weight: 600; margin-bottom: .25rem; }
#ordinel-demo input:not([type="hidden"]) { width: 100%; max-width: 100%; }
#ordinel-demo .buttons { margin-top: 1rem; }
#ordinel-demo .form-wrapper p { font-size: .95rem; }
#ordinel-demo { scroll-margin-top: 6rem; }
.ordinel-page .kroz-story-stage .kroz-shot { aspect-ratio: auto; min-height: 14rem; }
.ordinel-page .kroz-story-stage .kroz-shot img { width: 100%; max-height: 40rem; object-fit: contain; }
@media (max-width: 800px) {
  #ordinel-demo .kroz-contact-inner { flex-direction: column; }
}
