/*
 * Studio tema — korporativni sajt:
 * kontejner 1200px (1560px ≥1600), font 18px/1.5, asimetrična zaobljenja (gore desno + dole levo),
 * tamnoplava #143e6f + žuta #ffed00, svetla #f1f4f8.
 */
@layer components {
[data-theme='studio'] {
  --s-major: var(--c-primary, #143e6f);
  --s-highlight: var(--c-accent, #ffed00);
  --s-light: var(--c-muted, #f1f4f8);
  --s-icon: #c8d4e3;
  --s-ciw: calc(100% - 1.875rem);
  --s-gutter: 1.875rem;
  --s-sd: calc(3.75rem * var(--t-density, 1));
  --s-navbar: 6.375rem;
  --s-radius: 0.625rem;
  /* Oblik uglova (Izgled → Tema → Stil): koji uglovi su zaobljeni i koliko. */
  --k-scale: var(--t-radius-scale, 1);
  --k-tl: calc(var(--t-corner-tl, 0) * var(--k-scale));
  --k-tr: calc(var(--t-corner-tr, 1) * var(--k-scale));
  --k-br: calc(var(--t-corner-br, 0) * var(--k-scale));
  --k-bl: calc(var(--t-corner-bl, 1) * var(--k-scale));
  --s-w-light: var(--t-weight-light, 300);
  --s-w-strong: var(--t-weight-strong, 500);

  @media (width >= 576px) {
    --s-ciw: calc(540px - 1.875rem);
  }
  @media (width >= 768px) {
    --s-ciw: calc(720px - 1.875rem);
  }
  @media (width >= 992px) {
    --s-ciw: calc(960px - 1.875rem);
    --s-sd: calc(5.625rem * var(--t-density, 1));
  }
  @media (width >= 1240px) {
    --s-ciw: calc(1200px - 1.875rem);
  }
  @media (width >= 1600px) {
    --s-ciw: calc(1560px - 1.875rem);
  }

  body {
    font-size: 1.125rem;
    line-height: 1.5;
    letter-spacing: 0;
    color: var(--s-major);
    background: #fff;
  }
  strong,
  b {
    font-weight: var(--s-w-strong, 500);
  }

  /* ---------- Raspored ---------- */
  .s-container,
  .s-container-limited {
    width: 100%;
    margin-inline: auto;
    padding-inline: 0.9375rem;
    @media (width >= 576px) {
      max-width: 540px;
    }
    @media (width >= 768px) {
      max-width: 720px;
    }
    @media (width >= 992px) {
      max-width: 960px;
    }
    @media (width >= 1240px) {
      max-width: 1200px;
    }
    @media (width >= 1600px) {
      max-width: 1560px;
    }
  }
  .s-row-2 {
    display: grid;
    gap: var(--s-gutter);
    @media (width >= 768px) {
      grid-template-columns: 1fr 1fr;
    }
  }
  .s-section-separated {
    margin-block: var(--s-sd);
  }
  .s-section-padded {
    padding-block: var(--s-sd);
  }
  .s-light {
    background: var(--s-light);
    color: var(--s-major);
  }
  .s-major {
    background: var(--s-major);
    color: #fff;
  }
  .s-hl {
    color: var(--s-highlight);
  }
  .s-light .s-hl,
  .s-white .s-hl {
    color: var(--s-major);
  }

  /* ---------- Tipografija ---------- */
  .s-display-2,
  .s-display-3,
  .s-h2,
  .s-h4,
  .s-h5 {
    margin: 0;
    text-wrap: balance;
  }
  .s-display-2,
  .s-display-3,
  .s-h1,
  .s-h2,
  .s-h3,
  .s-h4,
  .s-post-title,
  .s-article-card-title,
  .s-cta-title,
  .s-nav-aside-title,
  .s-blog-hero-title {
    font-family: var(--f-heading);
  }
  .s-display-2,
  .s-display-3,
  .s-h1,
  .s-h2,
  .s-h3 {
    text-transform: var(--t-heading-case, none);
    letter-spacing: var(--t-heading-tracking, 0);
  }
  .s-display-2 {
    font-size: calc(1.53125rem + 3.375vw);
    font-weight: var(--s-w-light, 300);
    line-height: 1.1;
    letter-spacing: -0.0125em;
  }
  .s-display-3 {
    font-size: calc(1.4875rem + 2.85vw);
    font-weight: var(--s-w-light, 300);
    line-height: 1.13793;
  }
  .s-h2 {
    font-size: calc(1.4rem + 1.8vw);
    font-weight: 400;
    line-height: 1.15385;
  }
  @media (width >= 1200px) {
    .s-display-2 {
      font-size: 4.0625rem;
    }
    .s-display-3 {
      font-size: 3.625rem;
    }
    .s-h2 {
      font-size: 2.75rem;
    }
  }
  .s-display-2 strong,
  .s-display-3 strong,
  .s-h2 strong {
    display: block;
    font-weight: var(--s-w-strong, 500);
  }
  .s-h4 {
    font-size: calc(1.275rem + 0.3vw);
    font-weight: 400;
    line-height: 1.27083;
    @media (width >= 1200px) {
      font-size: 1.5rem;
    }
  }
  .s-h5 {
    font-size: 1.25rem;
    font-weight: 600;
    line-height: 1.25;
  }
  .s-text-lg {
    font-size: 1.375rem;
    line-height: 1.45455;
  }
  .s-text-sm {
    font-size: 1rem;
  }
  .s-prose p {
    margin: 0 0 1.875rem;
  }
  .s-prose p:last-child {
    margin-bottom: 0;
  }

  /* ---------- Dugmad i oznake (zaobljeno gore desno + dole levo) ---------- */
  .s-btn {
    display: inline-flex;
    align-items: center;
    gap: 1.5rem;
    padding: 0.65625rem 1.5rem;
    border: 1px solid currentColor;
    border-radius: calc(var(--s-radius) * var(--k-tl)) calc(var(--s-radius) * var(--k-tr)) calc(var(--s-radius) * var(--k-br)) calc(var(--s-radius) * var(--k-bl));
    font-size: 1.125rem;
    font-weight: var(--s-w-strong, 500);
    line-height: 1.5;
    text-decoration: none;
    transition:
      color 0.15s ease-in-out,
      background-color 0.15s ease-in-out,
      border-color 0.15s ease-in-out;
    cursor: pointer;
  }
  .s-btn svg {
    width: 1.5rem;
    height: 1.5rem;
    opacity: 0.6;
  }
  .s-btn:hover {
    background: var(--s-highlight);
    border-color: var(--s-highlight);
    color: var(--s-major);
  }
  .s-btn-outline {
    color: var(--s-major);
    border-color: var(--s-major);
  }
  .s-btn-outline-hl {
    color: var(--s-highlight);
    border-color: var(--s-highlight);
  }
  .s-btn-primary {
    background: var(--s-major);
    border-color: var(--s-major);
    color: #fff;
  }
  .s-btn-icon {
    padding: 0.625rem;
    gap: 0;
  }
  .s-btn-icon svg {
    opacity: 1;
  }
  .s-btn-major {
    background: var(--s-major);
    border-color: var(--s-major);
    color: var(--s-highlight);
  }
  .s-btn-hl {
    background: var(--s-highlight);
    border-color: var(--s-highlight);
    color: var(--s-major);
  }
  .s-btn-sm {
    padding: 0.125rem 0.46875rem;
    gap: 0;
    font-size: 1rem;
    font-weight: 600;
    border-radius: calc(0.3125rem * var(--k-tl)) calc(0.3125rem * var(--k-tr)) calc(0.3125rem * var(--k-br)) calc(0.3125rem * var(--k-bl));
  }
  .s-badge {
    display: inline-block;
    padding: 0.5rem 0.9375rem;
    border-radius: calc(0.9375rem * var(--k-tl)) calc(0.9375rem * var(--k-tr)) calc(0.9375rem * var(--k-br)) calc(0.9375rem * var(--k-bl));
    font-size: 0.875rem;
    font-weight: 600;
    line-height: 1;
    text-transform: uppercase;
    white-space: nowrap;
    color: var(--s-major);
  }
  .s-badge-hl {
    background: var(--s-highlight);
  }
  .s-badge-border {
    border: 1px solid #dfe5ee;
    background: #fff;
  }
  .s-badge-xs {
    padding: 0.25rem 0.46875rem;
    font-size: 0.75rem;
    border-radius: calc(0.3125rem * var(--k-tl)) calc(0.3125rem * var(--k-tr)) calc(0.3125rem * var(--k-br)) calc(0.3125rem * var(--k-bl));
  }
  .s-rounded-3 {
    border-radius: calc(0.9375rem * var(--k-tl)) calc(0.9375rem * var(--k-tr)) calc(0.9375rem * var(--k-br)) calc(0.9375rem * var(--k-bl));
  }

  /* ---------- Animacije (pokreću se kada element uđe u ekran) ---------- */
  [data-lazy-anim] {
    animation-play-state: paused;
    animation-fill-mode: backwards;
  }
  .lazy-anim {
    animation-play-state: running;
  }
  @media (prefers-reduced-motion: no-preference) {
    .anim-pop-in {
      animation-name: s-pop-in, s-fade-in;
      animation-duration: 0.6s;
      animation-timing-function: cubic-bezier(0.34, 1.56, 0.64, 1), ease-in;
    }
    .anim-h-reveal {
      animation-name: s-h-slide-up, s-fade-in;
      animation-duration: 0.3s;
      animation-timing-function: ease-out, ease-in;
    }
    .anim-slide-up {
      animation-name: s-slide-up, s-fade-in;
      animation-duration: 0.3s;
      animation-timing-function: ease-out, ease-in;
    }
    .anim-clip-reveal {
      animation-name: s-clip-reveal;
      animation-duration: 0.3s;
      animation-timing-function: ease-out;
    }
  }
  .anim-h-reveal {
    display: block;
  }

  /* ---------- Hero ("sujet"): naslov ostaje zalepljen dok uvod klizi ispod ---------- */
  .s-hero {
    --sd: 7.5rem;
    --ch: calc(var(--sd) * 2 + 9rem);
    --cih: calc(var(--ch) - var(--sd) * 2);
    display: grid;
    grid-template-columns: 100%;
    grid-auto-rows: auto;
    background: var(--s-major);
    color: #fff;
    @media (width >= 576px) {
      --sd: 11.25rem;
    }
  }
  .s-hero-sujet {
    grid-area: 1 / 1;
    display: grid;
    grid-template-columns: 100%;
    grid-template-rows: minmax(100dvh, auto) var(--ch);
    align-items: end;
    margin-bottom: calc(var(--ch) * -1);
  }
  .s-hero-media {
    grid-area: 1 / 1;
    position: relative;
    width: 100%;
    height: 0;
    min-height: 100%;
    overflow: hidden;
  }
  .s-hero-track {
    display: flex;
    height: 100%;
    transition: transform 0.3s ease;
  }
  .s-hero-slide {
    flex: 0 0 100%;
    height: 100%;
  }
  .s-hero-slide img,
  .s-hero-slide video {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }
  .s-hero-dots {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 2;
    display: flex;
    margin: 0 calc(50% - var(--s-ciw) / 2) 0.9375rem;
  }
  .s-dot {
    position: relative;
    width: 8px;
    height: 8px;
    margin: 8px;
    padding: 0;
    border: 0;
    background: transparent;
    cursor: pointer;
    transition: transform 0.3s;
  }
  .s-dot:first-child {
    margin-left: 0;
  }
  .s-dot::before {
    content: '';
    position: absolute;
    inset: -8px;
  }
  .s-dot::after {
    content: '';
    display: block;
    width: 100%;
    height: 100%;
    border: 1px solid var(--s-highlight);
    border-radius: 50%;
    transition:
      background-color 0.3s,
      transform 0.3s;
  }
  .s-dot.active::after {
    background: var(--s-highlight);
    transform: scale(1.5);
  }
  .s-hero-caption {
    grid-row: 1;
    grid-column: 1;
    position: sticky;
    top: calc(50dvh - var(--ch) * 0.5);
    z-index: 1;
    padding: var(--sd) calc(50% - var(--s-ciw) * 0.5);
    pointer-events: none;
    color: var(--s-highlight);
    @media (width >= 992px) {
      width: calc(50% - 0.9375rem);
      padding-right: 0;
    }
  }
  .s-hero-hint {
    grid-area: 1 / 1;
    place-self: end center;
    z-index: 1;
    margin-bottom: calc(var(--sd) / 2);
    padding: 0.9375rem;
    border: 1px solid;
    border-radius: 50%;
    color: var(--s-highlight);
    transition: background-color 0.15s;
  }
  .s-hero-hint:hover {
    background: rgb(255 237 0 / 0.15);
  }
  .s-hero-hint svg {
    display: block;
    width: 1.5rem;
    height: 1.5rem;
  }
  .s-hero-intro {
    grid-column: 1;
    display: flex;
    flex-direction: column;
    gap: 1.875rem;
    padding: var(--sd) calc(50% - var(--s-ciw) * 0.5);
    @media (width >= 992px) {
      flex-direction: row;
      align-items: flex-start;
    }
  }
  .s-hero-intro-start {
    display: flex;
    flex-direction: column;
  }
  .s-hero-intro-start::before {
    content: '';
    display: block;
    height: calc(var(--cih) + 1.875rem);
  }
  @media (width >= 992px) {
    .s-hero-intro-start::before {
      order: 1;
    }
    .s-hero-intro-title {
      position: sticky;
      top: calc(50dvh + var(--cih) * 0.5 + 1.875rem);
    }
    .s-hero-intro-start,
    .s-hero-intro-end {
      width: calc(50% - 0.9375rem);
    }
  }
  .s-hero-intro-title {
    color: var(--s-highlight);
  }

  /* ---------- Kartice (teaser) ---------- */
  .s-cards {
    display: grid;
    gap: var(--s-gutter);
    @media (width >= 768px) {
      grid-template-columns: repeat(2, 1fr);
    }
    @media (width >= 1240px) {
      grid-template-columns: repeat(3, 1fr);
    }
  }
  .s-card {
    display: flex;
    flex-direction: column;
    height: 100%;
    color: inherit;
    text-decoration: none;
  }
  .s-card-img {
    position: relative;
    aspect-ratio: 546 / 728;
    border-radius: calc(0.9375rem * var(--k-tl)) calc(0.9375rem * var(--k-tr)) calc(0.9375rem * var(--k-br)) calc(0.9375rem * var(--k-bl));
  }
  .s-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: inherit;
  }
  .s-card-img .s-badge {
    position: absolute;
    left: 0;
    bottom: 0;
  }
  .s-card-body {
    padding: 0.9375rem;
  }
  .s-card-title {
    margin: 0;
  }
  .s-card-title strong {
    font-weight: var(--s-w-strong, 500);
  }
  .s-card:hover .s-card-title {
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 0.2em;
  }

  /* ---------- Vodeni žig (konturna slova) ---------- */
  .s-with-icon {
    position: relative;
    z-index: 0;
  }
  .s-banner-icon {
    position: absolute;
    inset: 0 0.9375rem 1.875rem;
    z-index: -1;
    width: calc(100% - 1.875rem);
    max-width: 1920px;
    height: auto;
    max-height: calc(100% - 1.875rem);
    aspect-ratio: 2;
    margin: auto;
    color: var(--s-icon);
  }
  .s-major .s-banner-icon {
    color: #ffffff40;
  }

  /* ---------- Banner: fotografija sa providnom karticom ---------- */
  .s-banner {
    display: grid;
    grid-template-columns: 100%;
    grid-template-rows: auto;
    @media (width >= 768px) {
      grid-template-columns: min(4.0625rem, max(50% - var(--s-ciw) / 2, 15px)) auto min(4.0625rem, max(50% - var(--s-ciw) / 2, 15px));
      grid-template-rows: var(--s-sd) auto var(--s-sd);
    }
    @media (width >= 1920px) {
      grid-template-columns: calc(50% - 960px + 4.0625rem) auto calc(50% - 960px + 4.0625rem);
    }
  }
  .s-banner-media {
    grid-area: 1 / 1;
    overflow: hidden;
    border-top-right-radius: calc(2.8125rem * var(--k-tr));
    @media (width >= 768px) {
      grid-area: 1 / 1 / span 3 / span 3;
      border-top-right-radius: 0;
    }
  }
  .s-banner-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }
  .s-banner-content {
    grid-row: 2;
    align-self: center;
    @media (width >= 768px) {
      grid-area: 2 / 2;
      justify-self: start;
      min-width: 30.625rem;
      max-width: 33%;
      opacity: 0.9;
    }
  }
  .s-banner-content.end {
    @media (width >= 768px) {
      justify-self: end;
    }
  }
  .s-banner-box {
    padding: 3.75rem 1.875rem;
    border-bottom-left-radius: calc(2.8125rem * var(--k-bl));
    @media (width >= 768px) {
      border-top-right-radius: calc(2.8125rem * var(--k-tr));
    }
  }
  .s-link-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.9375rem 0.46875rem;
    margin-top: 1.875rem;
  }

  /* ---------- Header ---------- */
  .s-navbar {
    position: absolute;
    top: 0;
    left: 0;
    z-index: 30;
    display: flex;
    align-items: center;
    width: 100%;
    min-height: var(--s-navbar);
    padding: 0.9375rem 4.0625rem;
    color: #fff;
  }
  .s-navbar.solid {
    position: relative;
    background: var(--s-major);
  }
  .s-nav-start,
  .s-nav-end {
    z-index: 5;
    display: none;
    flex: 1 1 0;
    align-items: center;
    @media (width >= 1600px) {
      display: flex;
    }
  }
  .s-nav-end {
    justify-content: flex-end;
  }
  .s-nav-link {
    padding: 0.5rem 1rem;
    border-radius: calc(var(--s-radius) * var(--k-tl)) calc(var(--s-radius) * var(--k-tr)) calc(var(--s-radius) * var(--k-br)) calc(var(--s-radius) * var(--k-bl));
    font-size: 1rem;
    font-weight: 600;
    letter-spacing: 0.0625em;
    text-transform: uppercase;
    color: inherit;
    transition: color 0.15s;
  }
  .s-nav-link:hover {
    color: var(--s-highlight);
  }
  .s-nav-logo {
    z-index: 5;
    display: grid;
    place-items: center;
    height: 4.5rem;
    margin-inline: auto;
    padding: 0 1rem;
    border-radius: calc(var(--s-radius) * var(--k-tl)) calc(var(--s-radius) * var(--k-tr)) calc(var(--s-radius) * var(--k-br)) calc(var(--s-radius) * var(--k-bl));
    background: var(--s-major);
    color: var(--s-highlight);
    font-family: 'Barlow Condensed', 'Barlow', sans-serif;
    font-size: 3rem;
    font-weight: 700;
    line-height: 1;
    letter-spacing: -0.02em;
    text-transform: uppercase;
  }
  .s-nav-logo img {
    width: auto;
    max-width: 100%;
    height: auto;
    max-height: 4.5rem;
  }
  .s-fixed-btn {
    position: fixed;
    top: calc(var(--s-navbar) * 0.5 - 1.5625rem);
    z-index: 1020;
  }
  .s-fixed-start {
    left: 0.9375rem;
  }
  .s-fixed-end {
    right: 0.9375rem;
  }
  .s-icon-26 {
    display: block;
    width: 1.625rem;
    height: 1.625rem;
  }
  .s-scroll-top {
    position: fixed;
    right: 0.9375rem;
    bottom: 0.9375rem;
    z-index: 1020;
    transition:
      opacity 0.3s,
      transform 0.3s;
  }
  .s-scroll-top:not(.visible) {
    opacity: 0;
    transform: translateY(1rem);
    pointer-events: none;
  }

  /* ---------- Offcanvas (meni i pretraga) ---------- */
  .s-backdrop {
    position: fixed;
    inset: 0;
    z-index: 1040;
    background: #000;
    opacity: 0;
    transition: opacity 0.15s linear;
    pointer-events: none;
  }
  .s-backdrop.show {
    opacity: 0.75;
    pointer-events: auto;
  }
  .s-offcanvas {
    --pad-x: 1.875rem;
    position: fixed;
    top: 0;
    bottom: 0;
    z-index: 1045;
    display: flex;
    flex-direction: column;
    max-width: 100%;
    background: #fff;
    color: var(--s-major);
    visibility: hidden;
    transition:
      transform 0.3s ease-in-out,
      visibility 0.3s;
    @media (width >= 1240px) {
      --pad-x: 2.8125rem;
    }
  }
  .s-offcanvas.show {
    visibility: visible;
    transform: none;
  }
  .s-offcanvas-start {
    left: 0;
    width: 640px;
    transform: translateX(-100%);
    @media (width >= 992px) {
      max-width: 50dvw;
    }
  }
  .s-offcanvas-end {
    right: 0;
    width: 1280px;
    max-width: calc(100% - 160px);
    border-bottom-left-radius: calc(1.875rem * var(--k-bl));
    transform: translateX(100%);
    @media (width < 768px) {
      max-width: 100%;
    }
  }
  .s-offcanvas-header {
    display: flex;
    align-items: center;
    padding: 1.875rem var(--pad-x);
  }
  .s-offcanvas-body {
    flex-grow: 1;
    overflow-y: auto;
    padding: 1.875rem var(--pad-x);
    scrollbar-width: thin;
  }
  .s-offcanvas-footer {
    padding: 1.875rem var(--pad-x);
    border-top: 1px solid #dfe5ee;
    @media (width >= 1600px) {
      display: none;
    }
  }
  .s-link-btn {
    padding: 0;
    border: 0;
    background: none;
    color: inherit;
    cursor: pointer;
  }
  .s-link-btn:disabled {
    visibility: hidden;
  }

  /* Meni: nivoi klize horizontalno, svetli panel desno izlazi iza belog. */
  .s-nav-body {
    position: relative;
    flex-grow: 1;
    overflow: hidden;
    padding: 0;
  }
  .s-nav-levels {
    display: flex;
    height: 100%;
    transition: transform 0.3s ease;
  }
  .s-nav-level {
    flex: 0 0 100%;
    overflow-y: auto;
    padding: 1.875rem var(--pad-x);
  }
  .s-nav-aside {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    z-index: -1;
    width: 5.625rem;
    border-top-right-radius: calc(1.875rem * var(--k-tr));
    background: var(--s-light);
    transition: transform 0.3s ease-out;
    @media (width < 992px) {
      display: none;
    }
  }
  .s-offcanvas.show .s-nav-aside {
    transform: translateX(100%);
  }
  .s-nav-list {
    display: flex;
    flex-direction: column;
    margin-inline: -0.25em;
  }
  .s-nav-list a,
  .s-nav-list button {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 0.5rem 0;
    border: 0;
    background: none;
    color: inherit;
    font-size: 1.625rem;
    font-weight: 600;
    line-height: 1.5;
    text-align: left;
    cursor: pointer;
  }
  .s-nav-list.sub a,
  .s-nav-list.sub button {
    font-size: 1.375rem;
    font-weight: 400;
  }
  .s-nav-list span {
    padding-inline: 0.25em;
    background-image: linear-gradient(to right, var(--s-highlight), var(--s-highlight));
    background-position: 0 100%;
    background-repeat: no-repeat;
    background-size: 0 50%;
    -webkit-box-decoration-break: clone;
    box-decoration-break: clone;
    transition: background-size 0.3s ease-out;
  }
  .s-nav-list a:hover span,
  .s-nav-list button:hover span,
  .s-nav-list a:focus-visible span,
  .s-nav-list .active span {
    background-size: 100% 50%;
  }
  .s-nav-list svg {
    flex-shrink: 0;
    width: 1.5rem;
    height: 1.5rem;
    opacity: 0.35;
  }
  .s-breadcrumb {
    margin-bottom: 1.875rem;
    font-size: 0.875rem;
  }
  .s-nav-title {
    display: inline-block;
    margin: 0 0 1.875rem;
    font-size: 1.625rem;
    font-weight: 600;
  }

  /* Pretraga */
  .s-search-input {
    width: 100%;
    height: 3.125rem;
    padding: 0.65625rem 3.125rem 0.65625rem 1rem;
    border: 1px solid var(--s-light);
    border-radius: calc(var(--s-radius) * var(--k-scale));
    background: var(--s-light);
    color: var(--s-major);
    font: inherit;
    outline: none;
    transition: box-shadow 0.15s;
  }
  .s-search-input:focus {
    box-shadow: 0 0 0 4px rgb(20 62 111 / 0.25);
  }
  .s-search-input::-webkit-search-cancel-button {
    display: none;
  }
  .s-search-item {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.9375rem;
    padding-block: 1.875rem;
    color: inherit;
    text-decoration: none;
    @media (width >= 768px) {
      flex-direction: row;
    }
  }
  .s-search-item + .s-search-item {
    border-top: 1px solid #dfe5ee;
  }
  .s-search-item-media {
    flex-shrink: 0;
    width: 13.5rem;
    max-width: 100%;
    height: 10.125rem;
    background: var(--s-light);
    object-fit: cover;
    @media (width >= 768px) {
      order: 1;
    }
  }
  .s-search-item:hover strong {
    text-decoration: underline;
  }
  .s-search-item mark {
    background: rgb(255 237 0 / 0.35);
    color: inherit;
    padding: 0.05em 0.15em;
    font-weight: var(--s-w-strong, 500);
  }

  /* ---------- Footer ---------- */
  .s-footer {
    background: var(--s-major);
  }
  .s-footer-main {
    position: relative;
    z-index: 0;
    padding-block: 1.875rem;
    color: var(--s-major);
    @media (width >= 576px) {
      padding-block: 2.8125rem;
    }
  }
  .s-footer-main::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: -1;
    background: var(--s-light);
    border-bottom-left-radius: calc(1.875rem * var(--k-bl));
  }
  .s-footer-cols {
    display: grid;
    gap: 1.875rem;
    @media (width >= 576px) {
      grid-template-columns: repeat(2, 1fr);
    }
    @media (width >= 992px) {
      grid-template-columns: repeat(6, 1fr);
    }
  }
  .s-footer-cols > :first-child {
    @media (width >= 992px) {
      grid-column: 3;
    }
  }
  .s-footer-bar {
    padding-block: 0.9375rem;
    color: var(--s-highlight);
    font-size: 0.875rem;
  }

  /* Podstranice : svetla površina zaobljena gore desno na tamnoplavoj traci */
  .s-page-head {
    position: relative;
    z-index: 0;
    padding-block: var(--s-sd);
    color: var(--s-major);
  }
  .s-page-head::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: -1;
    background: var(--s-light);
    border-top-right-radius: calc(1.875rem * var(--k-tr));
  }
  .s-page-head .s-breadcrumb {
    margin-bottom: 0.46875rem;
  }
  .s-page-head .s-h1 {
    margin-bottom: 0;
  }
  .s-breadcrumb a {
    color: inherit;
  }
  .s-breadcrumb-sep {
    padding-inline: 0.46875rem;
  }
}

}

@keyframes s-pop-in {
  0% {
    transform: scale(0.5);
  }
}
@keyframes s-h-slide-up {
  0% {
    transform: translateY(1.875rem);
  }
}
@keyframes s-slide-up {
  0% {
    transform: translateY(var(--s-sd, 5.625rem));
  }
}
@keyframes s-clip-reveal {
  0% {
    clip-path: inset(0 max(50% - var(--s-ciw) * 0.416667 + -2.5px, 15px));
  }
  to {
    clip-path: inset(0);
  }
}
@keyframes s-fade-in {
  0% {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@layer components {
/* Zajedničke sekcije (galerija, brojke, utisci, vesti, kontakt) u istom duhu. */
[data-theme='studio'] {
  .container-site {
    width: 100%;
    margin-inline: auto;
    padding-inline: 0.9375rem;
    @media (width >= 576px) {
      max-width: 540px;
    }
    @media (width >= 768px) {
      max-width: 720px;
    }
    @media (width >= 992px) {
      max-width: 960px;
    }
    @media (width >= 1240px) {
      max-width: 1200px;
    }
    @media (width >= 1600px) {
      max-width: 1560px;
    }
  }
  .section-heading {
    margin-bottom: 1.875rem;
    text-align: left;
  }
  .section-title {
    font-size: calc(1.4rem + 1.8vw);
    font-weight: 400;
    line-height: 1.15385;
    letter-spacing: 0;
    text-transform: none;
    @media (width >= 1200px) {
      font-size: 2.75rem;
    }
  }
  .section-subtitle {
    margin-left: 0;
    font-size: 1.125rem;
    color: inherit;
  }
  .eyebrow {
    font-size: 0.875rem;
    letter-spacing: 0.0625em;
    opacity: 1;
  }
  .page-title,
  .hero-title,
  main h2.font-heading {
    font-weight: 400;
    letter-spacing: 0;
    text-transform: none;
  }
  .stat-value {
    font-weight: var(--s-w-light, 300);
  }
  .tile-card {
    border: 0;
    border-radius: calc(0.9375rem * var(--k-tl)) calc(0.9375rem * var(--k-tr)) calc(0.9375rem * var(--k-br)) calc(0.9375rem * var(--k-bl));
    background: var(--s-light);
  }
  .bg-muted {
    background: var(--s-light);
    color: var(--s-major);
  }
  .btn-solid,
  .btn-outline,
  .btn-light {
    height: auto;
    padding: 0.65625rem 1.5rem;
    border-radius: calc(var(--s-radius) * var(--k-tl)) calc(var(--s-radius) * var(--k-tr)) calc(var(--s-radius) * var(--k-br)) calc(var(--s-radius) * var(--k-bl));
    font-size: 1.125rem;
    font-weight: var(--s-w-strong, 500);
    letter-spacing: 0;
    text-transform: none;
  }
  .btn-solid {
    background: var(--s-major);
    border-color: var(--s-major);
  }
  .btn-solid:not(:disabled):hover {
    background: var(--s-highlight);
    border-color: var(--s-highlight);
    color: var(--s-major);
  }
  .link-underline {
    font-size: 1rem;
    letter-spacing: 0;
    text-transform: none;
  }
  main .aspect-\[4\/3\],
  main .aspect-square,
  main button.group {
    border-radius: calc(0.9375rem * var(--k-tl)) calc(0.9375rem * var(--k-tr)) calc(0.9375rem * var(--k-br)) calc(0.9375rem * var(--k-bl));
    overflow: hidden;
  }
}
}
