*{
  margin:0;
  padding:0;
  box-sizing:border-box;
}

html{
  scroll-behavior:smooth;
}

body{
  font-family:Arial, Helvetica, sans-serif;
  background:#140c08;
  overflow-x:hidden;
  color:#fff;
  position:relative;
  background: url(../img/bg.jpg);
  background-size: cover;
  background-attachment: fixed;
  background-repeat: no-repeat;
  background-position: center center;
}


.particles{
  position:fixed;
  inset:0;
  pointer-events:none;
  z-index:1;
  overflow:hidden;
}

.particles span{
  position:absolute;
  width:6px;
  height:6px;
  border-radius:50%;
  background:rgba(255,184,92,.78);
  box-shadow:0 0 8px rgba(255,184,92,.35);
  animation:floatUp linear infinite;
}

.particles .small{
  width:3px;
  height:3px;
  opacity:.75;
}

.particles .big{
  width:8px;
  height:8px;
  opacity:.9;
}

@keyframes floatUp{
  0%{
    transform:translateY(120vh);
    opacity:0;
  }
  10%{
    opacity:.9;
  }
  100%{
    transform:translateY(-20vh);
    opacity:0;
  }
}

.topbar{
  position:sticky;
  top:0;
  z-index:20;
  width:100%;
  height:68px;
  display:flex;
  justify-content:center;
  align-items:stretch;
  background:rgb(51 32 12 / 96%);
  border-bottom:1px solid rgba(166,108,63,.45);
  box-shadow:0 1px 0 rgba(255,180,110,.08) inset;
  backdrop-filter:blur(3px);
}

.nav{
  display:flex;
  align-items:stretch;
  justify-content:center;
  gap:0;
}

.nav a{
  position:relative;
  display:flex;
  align-items:center;
  justify-content:center;
  min-width:116px;
  padding:0 24px;
  text-decoration:none;
  color:#f4efe9;
  font-size:14px;
  text-transform:uppercase;
  letter-spacing:.3px;
  border-left:1px solid rgba(255,255,255,.02);
  border-right:1px solid rgba(0,0,0,.18);
  transition:.2s ease;
}

.nav a:hover{
  background:rgba(255,255,255,.03);
  color:#ffffff;
}

.nav a.active{
  color:#fff6e4;
  background:linear-gradient(to bottom, #8b6448 0%, #7b573f 100%);
  box-shadow:
    inset 0 1px 0 rgba(255,240,220,.20),
    0 0 0 1px rgba(203,157,112,.18);
}

.nav a.active::after{
  content:"";
  position:absolute;
  left:50%;
  bottom:-1px;
  width:0;
  height:0;
  transform:translateX(-50%);
  border-left:12px solid transparent;
  border-right:12px solid transparent;
  border-top:12px solid #7b573f;
}

.page{
  position:relative;
  z-index:2;
  width:100%;
  padding:0 0 50px;
}

.presentation-wrap{
  width:100%;
  max-width:980px;
  margin:0 auto;
  padding:0 14px;
}

.presentation{
  width:100%;
  max-width:750px;
  margin:0 auto;
  position:relative;
  background:rgba(37,19,12,.82);
  border-left:1px solid rgba(122,75,41,.55);
  border-right:1px solid rgba(122,75,41,.55);
  box-shadow:
    0 0 70px rgba(183,93,28,.20),
    0 18px 50px rgba(0,0,0,.42);
  overflow:hidden;
}

.presentation::before{
  content:"";
  position:absolute;
  inset:0;
  pointer-events:none;
  z-index:1;
  background:
    linear-gradient(to right,
      rgba(255,255,255,.02) 0%,
      rgba(255,255,255,0) 10%,
      rgba(255,255,255,0) 90%,
      rgba(255,255,255,.02) 100%);
}

.presentation img{
  width:100%;
  display:block;
  position:relative;
  z-index:0;
}

@media (max-width:900px){
  .topbar{
    height:auto;
    padding:0;
  }

  .nav{
    width:100%;
    flex-wrap:wrap;
  }

  .nav a{
    min-width:33.333%;
    height:52px;
    padding:0 10px;
    font-size:12px;
  }

  .nav a.active::after{
    display:none;
  }

  .presentation-wrap{
    padding:0 8px;
  }
}

    #popup {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background-color: rgba(0, 0, 0, 0.8);
        z-index: 9999;
        justify-content: center;
        align-items: center;
        padding: 20px;
        box-sizing: border-box;
    }
    
    .popup-content {
        width: 100%;
        max-width: 600px;
        height: auto;
        max-height: 90vh;
        aspect-ratio: 3/4;
        background-color: #c1a097;
        border-radius: 10px;
        position: relative;
        overflow: hidden;
        box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    }
    
    .popup-image {
        width: 100%;
        height: 100%;
        object-fit: cover;
        display: block;
    }
    
    .popup-close {
        position: absolute;
        top: 10px;
        right: 10px;
        background-color: #fff;
        color: #c1a097;
        border: none;
        border-radius: 50%;
        width: 35px;
        height: 35px;
        font-size: 20px;
        cursor: pointer;
        display: flex;
        justify-content: center;
        align-items: center;
        transition: all 0.3s ease;
        z-index: 10;
    }
    
    .popup-close:hover {
        background-color: #c1a097;
        color: white;
        transform: scale(1.1);
    }

    @media (max-width: 768px) {
        .popup-content {
            max-width: 95%;
            max-height: 85vh;
            border-radius: 8px;
        }
        
        .popup-close {
            width: 30px;
            height: 30px;
            font-size: 18px;
            top: 8px;
            right: 8px;
        }
        
        #popup {
            padding: 15px;
        }
    }
    
    @media (max-width: 480px) {
        .popup-content {
            max-width: 100%;
            max-height: 80vh;
            border-radius: 5px;
        }
        
        .popup-close {
            width: 25px;
            height: 25px;
            font-size: 16px;
            top: 5px;
            right: 5px;
        }
        
        #popup {
            padding: 10px;
        }
    }
    
    @media (max-height: 700px) {
        .popup-content {
            max-height: 85vh;
        }
    }
    
    @media (max-height: 500px) {
        .popup-content {
            max-height: 90vh;
        }
    }
