@media (min-width: 921px) {
  html,
  body {
    height: 100vh;
    overflow: hidden;
  }
}

  /* --- GLAVNI PANEL STRANICE --- */
  .project-viewport {
    height: 100vh;
    width: 100vw;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 120px clamp(24px, 5vw, 80px) 40px;
    position: relative;
    box-sizing: border-box;
  }
  
  /* Omotač za špil i točkice */
  .deck-layout-wrapper {
    position: relative;
    width: 100%;
    max-width: 1000px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 18px;
  }

  .project-kicker {
    width: min(880px, 100%);
  }
  
  /* --- DIZAJN ŠPILA --- */
  .deck {
    position: relative;
    width: 100%;
    max-width: 880px;
    height: clamp(380px, 50vh, 520px);
  }
  
  .deck-card {
    position: absolute;
    inset: 0;
    padding: clamp(24px, 4vw, 54px);
    background: var(--bg);
    border: 1px solid rgb(var(--ink-rgb) / 0.18);
    box-shadow: 0 20px 40px rgb(var(--ink-rgb) / 0.04);
    display: flex;
    flex-direction: column;
    justify-content: center;
    transition: transform 700ms var(--ease), opacity 700ms var(--ease), visibility 700ms;
    will-change: transform, opacity;
  }
  
  /* Unutarnji raspored (Slika + Tekst) */
  .card-grid {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 40px;
    align-items: center;
    height: 100%;
  }
  .card-logo {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
  }

  .card-media picture {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
  }
  .card-content {
    display: flex;
    flex-direction: column;
    height: 100%;
    justify-content: center;
  }
  
  .card-eyebrow {
    text-transform: uppercase;
    letter-spacing: 0.16em;
    font-size: 11px;
    font-weight: 700;
    opacity: 0.5;
    margin-bottom: 20px;
  }
  
  .deck-card h2 {
    font-family: var(--display);
    font-size: clamp(36px, 4.5vw, 68px);
    font-weight: 400;
    line-height: 0.95;
    margin: 0 0 16px;
  }
  
  .deck-card p {
    font-size: clamp(14px, 1.3vw, 18px);
    line-height: 1.45;
    margin: 0;
    opacity: 0.85;
  }
  .lightbox { position: fixed; inset: 0; background: rgba(0,0,0,.9); display: none; justify-content: center; align-items: center; z-index: 99999; } .lightbox.active { display: flex; } .lightbox img { max-width: 90vw; max-height: 90vh; object-fit: contain; } .lightbox-close { position: absolute; top: 20px; right: 30px; font-size: 40px; color: white; background: none; border: none; cursor: pointer; line-height: 1; } .lightbox-close:hover { opacity: .7; } .lightbox-trigger { cursor: pointer; }
  /* Prostor za sliku unutar karte */
  .card-media {
    height: 100%;
    min-height: 240px;
    display: flex;
  }
  
  .image-placeholder {
    width: 100%;
    height: 100%;
    background: rgb(var(--ink-rgb) / 0.03);
    border: 1px dashed rgb(var(--ink-rgb) / 0.25);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 20px;
  }
  
  .image-placeholder .brand-word {
    font-size: 32px;
    opacity: 0.2;
  }
  
  .mockup-line {
    width: 80%;
    height: 2px;
    background: rgb(var(--ink-rgb) / 0.15);
    margin: 8px 0;
  }
  
  /* --- KARTICA 3: REZULTATI --- */
  .card-full-content {
    display: flex;
    flex-direction: column;
    height: 100%;
    justify-content: space-between;
  }
  
  .deck-card h2.small-headline {
    font-size: clamp(32px, 4vw, 56px);
    margin-bottom: 24px;
  }
  
  .results-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    width: 100%;
  }
  
  /* Pravokutne kutije visokog kontrasta */
  .result-box {
    background: rgb(var(--ink-rgb) / 0.04);
    border: 1px solid rgb(var(--ink-rgb) / 0.12);
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    align-items: flex-start;
    transition: background-color 300ms var(--ease);
  }
  
  :root[data-theme="dark"] .result-box {
    background: rgb(var(--ink-rgb) / 0.06);
    border-color: rgb(var(--ink-rgb) / 0.2);
  }
  
  .result-icon {
    width: 38px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
  }
  
  .result-icon svg {
    width: 100%;
    height: 100%;
  }
  
  /* Ikone specifičnih boja */
  .icon-green { color: #2e7d32; }
  :root[data-theme="dark"] .icon-green { color: #81c784; }
  
  .icon-blue { color: #1565c0; }
  :root[data-theme="dark"] .icon-blue { color: #64b5f6; }
  
  .icon-ink { color: var(--ink); }
  
  .result-text {
    font-size: clamp(14px, 1.2vw, 18px);
    font-weight: 700;
    letter-spacing: 0;
  }
  
  /* --- STANJA KARTICA --- */
  .deck-card.is-active {
    transform: translateY(0) scale(1);
    opacity: 1;
    z-index: 10;
    visibility: visible;
  }
  
  .deck-card.is-past {
    transform: translateY(-100px) scale(0.9);
    opacity: 0;
    z-index: 1;
    visibility: hidden;
  }
  
  .deck-card.is-next {
    transform: translateY(30px) scale(0.96);
    opacity: 0;
    z-index: 5;
    visibility: hidden;
  }
  
  /* --- TOČKICE INDIKATORI (DESNO) --- */
  .deck-dots {
    position: absolute;
    right: -50px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    z-index: 20;
  }
  
  .deck-dot {
    width: 8px;
    height: 8px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: rgb(var(--ink-rgb) / 0.25);
    transition: transform 300ms var(--ease), background-color 300ms var(--ease);
  }
  
  .deck-dot.is-active {
    background: var(--ink);
    transform: scale(1.4);
  }
  
  /* --- AKCIJSKI GUMBI (BLIZU ISPOD KARATA) --- */
  .project-footer-actions {
    width: 100%;
    max-width: 880px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 32px; /* Privučeno blizu dna kartice */
  }
  
  .back-to-main {
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    font-weight: 500;
    color: rgb(var(--ink-rgb) / 0.55);
    text-decoration: underline;
    text-underline-offset: 5px;
    transition: color 300ms var(--ease);
  }
  
  .back-to-main:hover {
    color: var(--ink);
  }
  
  /* --- RESPONSIVE PRILAGODBA --- */
  @media (max-width: 920px) {
    .project-viewport {
      padding-top: 150px;
      height: auto;
      min-height: 100vh;
      overflow-y: auto;
    }
    html, body {
      height: auto;
      overflow: auto;
    }

    .project-kicker {
      margin-top: 12px;
    }
    .deck {
      height: auto;
      display: flex;
      flex-direction: column;
      gap: 30px;
    }
    .deck-card {
      position: relative;
      opacity: 1 !important;
      transform: none !important;
      visibility: visible !important;
      height: auto;
    }
    .card-grid {
      grid-template-columns: 1fr;
      gap: 24px;
    }
    .results-grid {
      grid-template-columns: 1fr;
    }
    .deck-dots {
      display: none;
    }
    .project-footer-actions {
      flex-direction: column-reverse;
      gap: 24px;
      margin-block: 40px;
    }
  }

  @media (min-width: 921px) and (max-width: 1080px) {
    .project-viewport {
      padding-top: 158px;
    }
  }
