  * { margin: 0; padding: 0; box-sizing: border-box; }
  html, body { background: #f2f1f9; }
  ::-webkit-scrollbar { width: 8px; height: 8px; }
  ::-webkit-scrollbar-track { background: transparent; }
  ::-webkit-scrollbar-thumb { background: rgba(110,122,140,0.45); border-radius: 8px; }
  ::-webkit-scrollbar-thumb:hover { background: rgba(110,122,140,0.75); }
  @supports not selector(::-webkit-scrollbar) {
    html { scrollbar-width: thin; scrollbar-color: rgba(110,122,140,0.45) transparent; }
  }
  body { font-family: 'Inter', sans-serif; }
  a { text-decoration: none; color: inherit; cursor: pointer; }
  img { display: block; }

  .canvas { width: 100%; margin: 0 auto; position: relative; background: #f2f1f9; overflow: clip; }

  /* ===== Hero ===== */
  .hero-g { position: relative; height: 982px; }
  .hero-g-gray { position: absolute; inset: 0; background: #cacdd8; mix-blend-mode: multiply; }
  .hero-g-light { position: absolute; inset: 0; background: linear-gradient(to right, #f1f0f8 0%, #f1f0f8 54%, rgba(241,240,248,0) 96%); }
  .hero-g-inner { position: relative; max-width: 1512px; height: 100%; margin: 0 auto; }
  .hero-chip { position: absolute; left: 104px; top: 284px; background: #dbe0e9; border-radius: 20px; padding: 8px 16px; }
  .hero-chip p { font-family: 'Roboto', sans-serif; font-weight: 700; font-size: 14px; line-height: 14px; letter-spacing: 1.4px; color: #6e7a8c; white-space: nowrap; }
  .hero-g h1 { position: absolute; left: 104px; top: 338px; width: 814px; font-family: 'Sora', sans-serif; font-weight: 800; font-size: 69px; line-height: 69px; letter-spacing: -1.38px; color: #6e7a8c; }
  .hero-g h1 .grad { background: linear-gradient(to right, #006aff 0.524%, #00c8ff 100%); -webkit-background-clip: text; background-clip: text; color: transparent; }
  .hero-g-sub { position: absolute; left: 105px; top: 500px; width: 543px; font-weight: 500; font-size: 18px; line-height: 2; color: #6e7a8c; white-space: pre-wrap; }
  .hero-g-logo { position: absolute; left: 1000px; top: 284px; width: 408px; height: 354.07px; pointer-events: none; }
  .hero-g-logo img { position: absolute; }
  .hero-g-logo .hl-a { left: 0; top: 52.47%; width: 41.18%; height: 47.53%; }
  .hero-g-logo .hl-b { left: 58.82%; top: 0; width: 41.18%; height: 47.53%; }
  .hero-g-logo .hl-c { left: 15.48%; top: 10.02%; width: 69.04%; height: 79.67%; }

  /* ===== Gallery ===== */
  .gallery-wrap { position: relative; z-index: 10; margin-top: -281px; }
  .tabs { position: sticky; top: 8px; z-index: 30; width: max-content; max-width: calc(100% - 32px); margin: 0 auto; background: #fdfdff; border-radius: 22px; padding: 8px; display: flex; gap: 8px; }
  .tab { border: none; background: none; cursor: pointer; padding: 12px; border-radius: 16px; font-family: 'Inter', sans-serif; font-weight: 500; font-size: 16px; line-height: 18px; color: #6e7a8c; white-space: nowrap; }
  .tab.active { background: #afb5c2; color: #fdfdff; }
  .masonry { width: min(1306px, calc(100% - 64px)); margin: 90px auto 0; display: flex; gap: 41px; align-items: flex-start; }
  .m-col { flex: 1; display: flex; flex-direction: column; gap: 40px; min-width: 0; }
  .m-item { border-radius: 22px; overflow: hidden; width: 100%; }
  .m-item img { width: 100%; height: 100%; object-fit: cover; }
  .m-item.h-266 { aspect-ratio: 408 / 266; }
  .m-item.h-504 { aspect-ratio: 408 / 504; }

  /* ===== Footer (shared) ===== */
  .footer { margin-top: 128px; }
  .footer-line { height: 4px; }
  .footer-line-1 { background: linear-gradient(to left, #006aff 0.524%, #00c8ff 100%); }
  .footer-line-2 { background: linear-gradient(to right, #006aff 0.524%, #00c8ff 100%); }
  .footer-body { position: relative; background: #6e7a8c; overflow: hidden; }
  .footer-inner { position: relative; max-width: 1512px; height: 647px; margin: 0 auto; }
  .footer-spinner { position: absolute; left: 900px; top: 78px; width: 752px; height: 652.604px; pointer-events: none; }
  .footer-brand { position: absolute; left: 105px; top: 79.87px; width: 240px; }
  .footer-logo { position: relative; width: 121px; height: 105.006px; }
  .footer-logo img { position: absolute; }
  .footer-logo .fl-a { left: 0; top: 55.1px; width: 49.83px; height: 49.91px; }
  .footer-logo .fl-b { left: 71.17px; top: 0; width: 49.83px; height: 49.91px; }
  .footer-logo .fl-c { left: 18.73px; top: 10.52px; width: 83.53px; height: 83.66px; }
  .footer-tagline { margin: 14.5px 0 0 2px; width: 182px; display: flex; flex-direction: column; gap: 4px; font-family: 'Roboto', sans-serif; font-weight: 600; font-size: 9.987px; line-height: 10px; }
  .footer-tagline .t1 { color: #fdfdff; }
  .footer-tagline .t2 { color: #afb5c2; }
  .footer-contact { font-weight: 500; font-size: 18px; line-height: 18px; color: #fdfdff; }
  .footer-address { margin-top: 38.6px; width: 221px; }
  .footer-phone { margin-top: 24px; white-space: nowrap; }
  .footer-email { margin-top: 24px; white-space: nowrap; }
  .footer-cols { display: contents; }
  .footer-col { position: absolute; top: 156px; display: flex; flex-direction: column; align-items: flex-start; gap: 16px; }
  .footer-col-udruzenje { left: 441px; }
  .footer-col-clanovi { left: 665px; }
  .footer-col-edukacija { left: 889px; }
  .footer-col-h { font-family: 'Roboto', sans-serif; font-weight: 700; font-size: 14px; line-height: 14px; letter-spacing: 1.4px; color: #afb5c2; white-space: nowrap; }
  .footer-link { font-weight: 500; font-size: 18px; line-height: 18px; color: #fdfdff; white-space: nowrap; display: block; }
  .footer-bottom { display: contents; }
  .footer-social { position: absolute; right: 103px; top: 506px; width: 48px; height: 48px; }
  .footer-copy { position: absolute; left: 105px; top: 597px; font-weight: 400; font-size: 14px; line-height: 14px; color: #afb5c2; white-space: nowrap; }
  .scroll-top { position: absolute; right: 7px; top: 239px; width: 56px; height: 56px; background: #fdfdff; border: none; border-radius: 16px; cursor: pointer; box-shadow: inset -8px -8px 10px 0 rgba(100,100,100,0.15), inset 8px 8px 10px 0 rgba(255,255,255,0.3); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
  .scroll-top img { width: 13px; height: 29px; }

  /* ===== Hover states (from Figma prototype variants) ===== */
  .scroll-top { transition: box-shadow 0.25s ease; }
  .scroll-top:hover { box-shadow: inset -8px -8px 10px 0 rgba(100,100,100,0.15), inset 8px 8px 10px 0 rgba(255,255,255,0.3), 0 15px 30px 0 rgba(0,99,238,0.1); }
  .footer-link:hover { text-decoration: underline; }
  .tab { transition: color 0.2s ease, background 0.2s ease; }
  .tab:not(.active):hover { color: #006aff; }
  .m-item img { transition: transform 0.4s ease; }
  .m-item:hover img { transform: scale(1.04); }

  /* =====================================================
     Compact navigation (max-width: 1279px)
     ===================================================== */
  @media (max-width: 1279px) {
  }

  /* =====================================================
     Tablet (max-width: 1024px)
     ===================================================== */
  @media (max-width: 1024px) {
    body { overflow-x: hidden; }

    .hero-g { height: auto; padding: 220px 32px 72px; }
    .hero-g-inner { position: static; max-width: none; height: auto; }
    .hero-chip { position: relative; left: auto; top: auto; display: inline-flex; }
    .hero-g h1 { position: relative; left: auto; top: auto; width: auto; max-width: 814px; margin-top: 18px; font-size: 52px; line-height: 1.1; letter-spacing: -1px; }
    .hero-g-sub { position: relative; left: auto; top: auto; width: auto; max-width: 543px; margin-top: 24px; }
    .hero-g-logo { display: none; }

    .gallery-wrap { margin-top: 40px; }
    .masonry { width: calc(100% - 64px); margin-top: 48px; gap: 24px; }
    .m-col { gap: 24px; }

    .footer { margin-top: 96px; }
    .footer-body { padding: 56px 32px 32px; }
    .footer-inner { position: static; max-width: none; height: auto; display: flex; flex-direction: column; gap: 48px; }
    .footer-spinner { display: none; }
    .footer-brand { position: static; width: auto; }
    .footer-cols { display: flex; flex-wrap: wrap; gap: 48px 64px; }
    .footer-col { position: static; }
    .footer-bottom { display: flex; align-items: center; justify-content: space-between; }
    .footer-social { position: static; }
    .scroll-top { position: static; }
    .footer-copy { position: static; }
  }

  /* =====================================================
     Mobile (max-width: 768px)
     ===================================================== */
  @media (max-width: 768px) {

    .hero-g { padding: 128px 20px 48px; }
    .hero-g h1 { font-size: 34px; line-height: 1.18; letter-spacing: -0.7px; margin-top: 14px; }
    .hero-g-sub { font-size: 16px; line-height: 1.8; margin-top: 16px; }

    .gallery-wrap { margin-top: 24px; }
    .tabs { max-width: calc(100% - 24px); overflow-x: auto; scrollbar-width: none; }
    .tabs::-webkit-scrollbar { display: none; }
    .tab { padding: 10px 12px; font-size: 14px; }
    .masonry { width: calc(100% - 32px); margin-top: 32px; gap: 16px; }
    .m-col { gap: 16px; }
    .m-item { border-radius: 16px; }

    .footer { margin-top: 64px; }
    .footer-body { padding: 40px 20px 24px; gap: 36px; }
    .footer-cols { flex-direction: column; gap: 32px; }
    .footer-link { white-space: normal; }
    .footer-copy { white-space: normal; line-height: 1.5; }
  }
