:root{
  /* базовый цвет – меняйте только его */
  --accent:#0ac2ff;

  /* 90 % базового цвета + 10 % прозрачности (поддерживается в Chrome 111+, Firefox 111+)  */
  --accent-alpha:color-mix(in srgb, var(--accent) 90%, transparent);

  /* приглушённый вариант – 55 % насыщенности */
  --accent-dim:color-mix(in srgb, var(--accent) 55%, transparent);
}

/* ─────────  base  ───────── */
html,body{margin:0;padding:0;box-sizing:border-box}
body{
  background:#000;color:#fff;font-family:'Open Sans',sans-serif;
  display:flex;flex-direction:column;min-height:100vh;overflow:auto;text-align:center;
}
html,body{scrollbar-width:none;-ms-overflow-style:none}
html::-webkit-scrollbar,body::-webkit-scrollbar{display:none}

/* ─────────  fade  ───────── */
.fade-in{animation:fadeIn .5s forwards}
.fade-out{animation:fadeOut .5s forwards}
@keyframes fadeIn{from{opacity:0;transform:translateY(20px)}to{opacity:1;transform:translateY(0)}}
@keyframes fadeOut{from{opacity:1;transform:translateY(0)}to{opacity:0;transform:translateY(20px)}}

/* ─────────  TOP NAV  ───────── */
#top-nav{
  display:none;
  position:fixed;top:0;left:0;width:100%;z-index:1200;
  background:rgba(0,0,0,.55);backdrop-filter:blur(6px);
  padding:10px 0;
}
.nav-container{display:flex;align-items:center;justify-content:center;gap:0 30px;max-width:1000px;margin:0 auto}
.nav-group{display:flex;gap:32px;flex:1}
.nav-group.left{justify-content:flex-end}
.nav-group.right{justify-content:flex-start}
.nav-link{
  position:relative;font-size:15px;font-weight:700;letter-spacing:.02em;
  padding:6px 0;color:var(--accent);text-decoration:none;transition:color .25s;
}
.download-link{font-weight:800}
.nav-link::after{
  content:"";position:absolute;left:50%;bottom:0;width:100%;height:2px;background:var(--accent);
  transform:translateX(-50%) scaleX(0);transform-origin:center;transition:transform .25s;
}
.nav-link:hover{color:var(--accent-alpha)}
.nav-link:hover::after{transform:translateX(-50%) scaleX(1)}
.nav-link.active{color:#fff}
.nav-link.active::after{transform:translateX(-50%) scaleX(1)}
.nav-logo{
  flex:0 0 auto;
  height:100px;
  width:auto;
  pointer-events:none;
  filter:drop-shadow(0 0 10px var(--accent-alpha));
  margin-top: -20px;  /* Логотип будет "поднят" на 20px */
  margin-bottom: -20px;
}

/* ── unified style for code & li ── */
code{
  color:var(--accent);
  background:rgba(10,194,255,.12);
  padding:2px 4px;border-radius:4px;font-size:90%;
}
li{margin:.5em 0;list-style-position:inside}
li::marker{color:var(--accent);font-weight:bold}
.page-content a{
  color:var(--accent);text-decoration:underline;transition:color .2s;
}
.page-content a:hover{color:var(--accent-alpha)}

/* ─────────  backgrounds  ───────── */
@keyframes gradientAnim{0%{background-position:0 50%}50%{background-position:100% 50%}100%{background-position:0 50%}}

#showcase-section,#changelog-section{
  display:none;flex-direction:column;align-items:center;gap:40px;
  padding:90px 20px 20px;min-height:100vh;
  background:radial-gradient(circle at center,var(--accent-alpha) 10%,#000 80%);
  background-size:200% 200%;animation:gradientAnim 10s ease infinite alternate;
}
#install-section,#faq-section{
  display:none;flex-direction:column;align-items:center;gap:40px;
  padding:90px 20px;min-height:100vh;
  background:radial-gradient(circle at center,var(--accent-alpha) 10%,#000 80%);
  background-size:200% 200%;animation:gradientAnim 10s ease infinite alternate;
}
#main-section{height:100vh;display:none;flex-direction:column;justify-content:center;align-items:center;overflow:hidden}

/* ─────────  content  ───────── */
.logo-placeholder{margin:0 auto;width:500px;height:auto;display:block}
.icons{display:flex;justify-content:center;gap:20px;margin-bottom:50px;flex-wrap:wrap}
.footer-placeholder{font-size:12px;color:#666;margin-bottom:20px}

/* Styles for OLD showcase gallery (grid) - will not apply to new full-screen showcase */
.showcase-gallery{display:grid;gap:12px;width:100%;max-width:1400px;margin:0 auto;grid-template-columns:repeat(auto-fill,minmax(var(--unit),1fr));grid-auto-rows:calc(var(--unit)*var(--ratio));grid-auto-flow:dense}
.showcase-gallery img{width:100%;height:100%;object-fit:cover;border-radius:6px;cursor:pointer;transition:transform .25s,box-shadow .25s}
.showcase-gallery img:hover{
  transform:scale(1.00);
  box-shadow:0 6px 18px var(--accent-alpha);
}
.showcase-gallery img:nth-child(9n+1){grid-column:span 2;grid-row:span 2}
.showcase-gallery img:nth-child(9n+3),.showcase-gallery img:nth-child(9n+7){grid-row:span 2}
.showcase-gallery img:nth-child(9n+5){grid-column:span 2}
.showcase-gallery img[data-video="true"]{
  aspect-ratio:16/9;object-fit:cover;filter:blur(7px) brightness(.7);transition:filter .25s,transform .25s;
  display:block;position:relative;
}
.showcase-gallery img[data-video="true"]:hover{filter:blur(0) brightness(1);}
.showcase-gallery img[data-video="true"]::before{
  content:"";position:absolute;inset:0;margin:auto;width:70px;height:70px;
  background:rgba(0,0,0,.45);border-radius:50%;pointer-events:none;
}
.showcase-gallery img[data-video="true"]::after{
  content:"";position:absolute;top:50%;left:50%;transform:translate(-40%,-50%);
  border-left:28px solid #fff;border-top:18px solid transparent;border-bottom:18px solid transparent;pointer-events:none;
}
.video-thumb{position:relative;aspect-ratio:16/9;overflow:hidden;border-radius:6px}
.video-thumb img{width:100%;height:100%;object-fit:cover;filter:blur(5px) brightness(.7);transition:filter .25s,transform .25s}
.video-thumb:hover img{filter:blur(0) brightness(1);transform:scale(1.00)}
.play-icon{
  position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);
  width:70px;height:70px;border-radius:50%;background:rgba(0,0,0,.45);
  display:flex;align-items:center;justify-content:center;pointer-events:none;z-index:2;
  transition:opacity .25s,transform .25s;opacity:1
}
.video-thumb:hover .play-icon{opacity:0;transform:translate(-50%,-50%) scale(.7);}
.showcase-gallery .video-thumb:nth-child(9n+1){grid-column:span 2;grid-row:span 2}
.showcase-gallery .video-thumb:nth-child(9n+3),
.showcase-gallery .video-thumb:nth-child(9n+7){grid-row:span 2}
.showcase-gallery .video-thumb:nth-child(9n+5){grid-column:span 2}
.play-icon::before{content:"";border-left:26px solid #fff;border-top:17px solid transparent;border-bottom:17px solid transparent}

/* ───────── NEW FULLSCREEN SHOWCASE STYLES ───────── */
#fullscreen-slideshow-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1; 
  background-color: #000; 
}
/* Vignette effect */
#fullscreen-slideshow-container::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* ИЗМЕНЕННАЯ СТРОКА НИЖЕ: */
    background: radial-gradient(ellipse at center, 
                                rgba(0,0,0,0) 40%,  /* Прозрачный центр стал меньше (до 40%) */
                                rgba(0,0,0,0.85) 100% /* Края стали темнее (непрозрачность 0.85) */
                               );
    pointer-events: none;
    z-index: 1;
}

#fullscreen-slideshow-container .slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 1.5s ease-in-out; 
  z-index: 0; /* Ensure slides are behind the vignette pseudo-element */
}

#fullscreen-slideshow-container .slide.active-slide {
  opacity: 1;
}

#slideshow-text-overlay {
  position: absolute;
  bottom: 50px;
  left: 50px;
  z-index: 2; 
  color: #fff;
  background-color: transparent; /* Removed background */
  padding: 15px; /* Adjusted padding as there's no background box */
  border-radius: 0; /* Removed border-radius */
  max-width: clamp(300px, 40%, 550px); /* Slightly adjusted max-width */
  text-align: left; /* Default, but explicit */
  /* box-shadow: none; /* Removed box-shadow */
  display: flex;
  flex-direction: column;
  align-items: center; /* Center logo */
}

#slideshow-logo {
  display: block;
  max-height: 450px; /* Вы уже знаете, как это менять для размера */
  width: auto;      
  margin-bottom: -115px; /* Отступ снизу, до текста */
  filter: drop-shadow(0px 2px 5px rgba(0,0,0,0.6)); 

  /* Для дополнительного смещения от левого края (после align-items: flex-start): */
  /* margin-left: 10px; */    /* Сдвинет логотип на 10px ВПРАВО от левого края */
  margin-left: -180px;   /* Сдвинет логотип на 5px ВЛЕВО (может выйти за край) */
  
  /* Для вертикального смещения: */
  /* margin-top: -5px; */    /* Сдвинет логотип на 5px ВВЕРХ */
}

#slideshow-text-content {
  text-align: left; /* Ensure text content remains left-aligned */
  width: 100%;
}

#slideshow-text-overlay h2 {
  font-size: 2.1em; 
  margin-top: 0;
  margin-bottom: 0.6em; 
  color: var(--accent);
  text-shadow: 1px 1px 5px rgba(0,0,0,0.8); /* Stronger shadow for readability */
  font-weight: 700;
}

#slideshow-text-overlay p {
  font-size: 1.05em; /* Slightly adjusted */
  line-height: 1.65; 
  margin-bottom: 0.8em; 
  text-shadow: 1px 1px 4px rgba(0,0,0,0.7); /* Stronger shadow */
}
#slideshow-text-overlay p:last-child {
  margin-bottom: 0;
}

#slideshow-text-overlay ul {
  list-style: none;
  padding-left: 0;
  margin-top: 0.7em;
  margin-bottom: 0.8em;
}

#slideshow-text-overlay li {
  margin-bottom: 0.6em;
  font-size: 1em; 
  line-height: 1.55;
  padding-left: 1.7em; 
  position: relative;
  text-shadow: 1px 1px 4px rgba(0,0,0,0.7); /* Stronger shadow */
}

#slideshow-text-overlay li::before {
  content: "✦"; 
  color: var(--accent);
  position: absolute;
  left: 0;
  top: 0.1em; 
  font-size: 1em; 
  text-shadow: 1px 1px 3px rgba(0,0,0,0.5);
}

#slideshow-text-overlay li strong {
  font-weight: 700;
}

.slideshow-nav-button {
    cursor: pointer;
    position: absolute; 
    top: 0;
    bottom: 0;
    width: 15%; /* Hotspot area width */
    font-size: 48px; /* Size of the arrow character */
    font-weight: bold;
    color: transparent; /* Arrow character initially transparent */
    background: transparent; /* No background for the hotspot */
    user-select: none;
    transition: color 0.3s ease-in-out;
    z-index: 3; 
    display: flex;
    align-items: center;
    text-decoration: none;
    line-height: 1;
    text-shadow: 0 0 12px rgba(0,0,0,0.7); /* Shadow for the arrow when it appears */
}
.slideshow-nav-button:hover {
    color: rgba(255, 255, 255, 0.85); /* Arrow becomes visible */
}
#slideshow-prev {
    left: 0;
    justify-content: flex-start; /* Align arrow to the left of the hotspot */
    padding-left: 25px; /* Spacing from edge of screen */
}
#slideshow-next {
    right: 0;
    justify-content: flex-end; /* Align arrow to the right of the hotspot */
    padding-right: 25px; /* Spacing from edge of screen */
}


/* ─────────  changelog preview  ───────── */
.changelog-preview{width:100%;max-width:1200px;margin:0 auto;display:flex;flex-direction:column;align-items:center}
.changelog-preview img.changelog-main{
  width:100%;max-height:60vh;height:auto;object-fit:cover;border-radius:10px
}
.changelog-thumb-row{display:flex;gap:6px;margin-top:8px;overflow-x:auto;padding-bottom:4px}
.changelog-thumb-row img{width:160px;flex:0 0 auto;opacity:.6;border-radius:10px;cursor:pointer;transition:opacity .2s}
.changelog-thumb-row img:hover{opacity:.9}
.changelog-thumb-row img.active{opacity:1;box-shadow:0 0 0 0px var(--accent-alpha)}

/* ─────────  installation / faq containers  ───────── */
.install-container{
  max-width:900px;margin:0 auto;text-align:left;
  background:rgba(20,20,20,.6);border:1px solid #111;border-radius:12px;padding:40px;
  box-shadow:0 0 20px rgba(0,0,0,.3);
}
.page-content{margin-bottom:30px;line-height:1.7}

/* ─────────  tabs  ───────── */
.tabs{display:flex;justify-content:center;gap:12px;margin-bottom:20px;flex-wrap:wrap}
.tabs button{
  background:transparent;border:1px solid var(--accent-alpha);border-radius:9999px;
  color:var(--accent-alpha);font-size:14px;padding:8px 24px;cursor:pointer;
  transition:background .3s,color .3s,border-color .3s;
}
.tabs button:hover,.tabs button.active{background:var(--accent-alpha);color:#000;border-color:var(--accent)}
.tab-content{display:none;margin-top:20px}

/* ─────────  lightbox  ───────── */
#lightbox{display:none;position:fixed;z-index:9999;left:0;top:0;width:100%;height:100%;background:rgba(0,0,0,.85)}
.close{position:absolute;top:20px;right:35px;font-size:30px;font-weight:bold;color:#fff;cursor:pointer}
#lightbox-content{position:relative;width:100%;height:100%}
.slide-content{position:absolute;top:0;left:0;width:100%;height:100%;transition:opacity .5s;opacity:0}
.lightbox-content{position:relative;display:flex;align-items:center;justify-content:center;width:90%;max-width:1200px;max-height:90vh;margin:5% auto}
.lightbox-content img{max-width:100%;max-height:100%;object-fit:contain;display:block}
.lightbox-video-container{position:relative;width:100%;padding-bottom:56.25%}
.lightbox-video-container iframe{position:absolute;top:0;left:0;width:100%;height:100%;border:0}
.prev,.next{cursor:pointer;position:absolute;top:50%;padding:16px;font-size:24px;font-weight:bold;color:#fff;background:rgba(255,255,255,.25);user-select:none;transition:.3s}
.prev:hover,.next:hover{background:rgba(255,255,255,.4)}
.prev{left:0;border-radius:0 3px 3px 0}
.next{right:0;border-radius:3px 0 0 3px}

.showcase-container { /* This was for the OLD showcase grid layout */
  max-width: 1400px;
  margin: 0 auto;
  background: rgba(20,20,20,.6);
  border: 1px solid #111;
  border-radius: 12px;
  padding: 40px;
  box-shadow: 0 0 20px rgba(0,0,0,.3);
}

#showcase-section .showcase-gallery { /* This was for the OLD showcase grid layout */
  width: 100%;
}
