:root {
  --blue-dark:#0a2a43;
  --blue-mid:#0d6efd;
  --blue-light:#e7f1ff;
  --blue-light1:#00d3f9;
  --black:#0e0e0e; 
  --white:#ffffff;


  /* history */
  --bg: #f3f4f6;
  --text: #111827;
  --slider-bg: #0b4ea5;
  --nav-bg: rgba(255,255,255,.18);
  --nav-bg-hover: rgba(255,255,255,.28);
  --year-bg: #0b66ff;
  --year-active: #ff4d00;
  --fade-w: 64px;

  /* yearline */
  --dur: 5200ms; --ease: cubic-bezier(.2,.8,.2,1);
  --snake-color: #0c59c2;
  --snake-width: 4px;
  --tabs-fade-w: 44px; 
  --tabs-fade-white: 255,255,255;
  --tabs-fade-max: .55; 

  --quiz-size: 56px;
  --quiz-expanded: 260px;
  --quiz-radius: 14px;
}

body {
    font-family: 'Montserrat', sans-serif;
    overflow-x: hidden;
}

/* ================= VIDEO ================= */
.video-section {
    position: relative;
    height: 100vh;
    overflow: hidden;
    padding:0;
}

.video-section video {
    position: absolute;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.video-overlay {
  position: absolute;
  inset: 0;
  z-index: 10;
  background: transparent;
  cursor: default;
}

@media (max-width: 768px) {
  .video-section {
    height: auto; 
  }

 
  .video-section video {
    position: relative;
    width: 100%;
    height: auto;
    display: block;
  }


  .video-overlay {
    position: absolute;
    inset: 0;
    height: 100%;
  }
}

/* ================= NAVBAR ================= */
.video-navbar {
    position: sticky;
  left: 0;
  width: 100%;
  background: rgba(10,42,67,.95);
  backdrop-filter: blur(6px);
  z-index: 1000;
  bottom: 0;
  top: auto;
  transition: top .4s ease, bottom .4s ease;
}



.video-navbar.sticky {
    bottom: auto;
    top: 0;
}

.nav-container {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 18px 40px;
}

.nav-logo {
    color: white;
    font-weight: 700;
}

.nav-list {
    list-style: none;
    display: flex;
    gap: 40px;
    margin: 0;
    padding: 0;
}

.nav-list li {
    color: white;
    cursor: pointer;
    opacity: 0;
    transform: translateY(20px);
    transition: .4s ease;
    position: relative;
}

.nav-list li a {
    color: inherit;           
    cursor: inherit;          
    text-decoration: none;    
    display: block;           
    transition: inherit;      
}

.nav-list li.show {
    opacity: 1;
    transform: translateY(0);
}

.nav-list li.show a {
    opacity: 1;
    transform: translateY(0);
}

.nav-list li.active::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -6px;
    width: 100%;
    height: 2px;
    background: white;
}

.nav-list li.active a::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -6px;
    width: 100%;
    height: 2px;
    background: white;
}

/* ================= BURGER ================= */
.burger {
    display: none;
    flex-direction: column;
    gap: 6px;
    cursor: pointer;
}

.burger span {
    width: 26px;
    height: 2px;
    background: white;
}

/* ================= SECTIONS ================= */
section {
    padding: 100px 0;
    /*opacity: 0;
    transform: translateY(60px);
    transition: opacity 1s ease, transform 1s ease;*/
}

section.will-animate {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

section.will-animate.show {
  opacity: 1;
  transform: translateY(0);
}


.section-title {
  font-size: 3rem;
  font-weight: 700;
  margin-bottom: 60px;
}
.section-title.will-animate {
  opacity: 0;
  transform: translateX(-60px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.section-title.will-animate.show { opacity: 1; transform: translateX(0); }

.a-left.will-animate  { opacity: 0; transform: translateX(-60px); transition: opacity 0.8s ease, transform 0.8s ease; will-change: opacity, transform; }
.a-right.will-animate { opacity: 0; transform: translateX(60px);  transition: opacity 0.8s ease, transform 0.8s ease; will-change: opacity, transform; }
.a-left.will-animate.show, .a-right.will-animate.show { opacity: 1; transform: translateX(0); }

@media (max-width: 1399px) {
  .section-title {
    font-size: 2.5rem;
  }
}

@media (max-width: 768px) {
  .section-title {
    font-size: 2rem;
  }
}

/* ================= COLORS ================= */
.bg-blue {
    background: linear-gradient(135deg, var(--blue-mid), var(--blue-light1));
    color: white;
}

.bg-blue-r {
    background: linear-gradient(135deg, var(--blue-mid), var(--blue-dark));
    color: white;
}

.bg-light-blue {
    background: linear-gradient(135deg, white, var(--blue-light));
    color: var(--blue-dark);
}

.bg-slider-grey {
  background: #f3f4f6;
}

/* CHARTS */
.stats-section{
  background: linear-gradient(135deg, #0a3aa6 0%, #0b66d9 45%, #0a2f7a 100%);
}

.stats-surface{
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.14);
  border-radius: 18px;
  padding: 12px;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.stats-panel{
  background: #ffffff;
  border-radius: 16px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.12);
  overflow: hidden;
  min-height: 520px;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", "Noto Sans", "Liberation Sans", Arial, sans-serif;
}

.stats-pane{
  display: flex;
  flex-direction: column;
  min-height: 520px;
}

.stats-pane__header{
  padding: 14px 16px;
  border-bottom: 1px solid rgba(0,0,0,0.08);
  background: rgba(0,0,0,0.01);
  color:#212529;
}

.stats-chart{
  flex: 1 1 auto;
  width: 100%;
  min-height: 420px;
  margin-bottom: 16px;
}

@media (min-width: 992px){
  .stats-pane--links{
    border-left: 1px solid rgba(0,0,0,0.18);
  }
}

.stats-links{
  flex: 1 1 auto;
  padding: 14px 16px;
  overflow: auto;
}

@media (max-width: 991.98px){
  .stats-pane--links{
    border-left: 0;
    border-top: 1px solid rgba(0,0,0,0.12);
  }
  .stats-panel,
  .stats-pane{
    min-height: auto;
  }
  .stats-chart{
    min-height: 320px;
  }
}

/* ================= CONTENT ================= */
.card {
    border: none;
    box-shadow: 0 10px 30px rgba(0,0,0,.1);
}

.photo-grid img {
    width:100%;
    height:250px;
    object-fit:cover;
    border-radius:12px;
}

/* ================= MOBILE ================= */
@media (max-width: 768px) {

  .burger {
    display: none;
  }

  .nav-container {
    padding: 0;
  }

  .nav-list {

    position: static;
    bottom: auto;
    left: auto;
    width: 100%;
    flex-direction: row;
    align-items: center;
    justify-content: flex-start;
    flex-wrap: nowrap;

  
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;

    background: transparent;
    padding: 12px 16px;
    gap: 0;

    
    transition: none;
  }

  .nav-list::-webkit-scrollbar {
    display: none; 
  }

  .nav-list li {
    flex: 0 0 auto;        
    opacity: 1;            
    transform: none;
    padding: 8px 14px;
    font-size: 0.88rem;
    white-space: nowrap;
    border-radius: 999px;
    transition: background 0.2s ease;
  }

  .nav-list li:hover {
    background: rgba(255, 255, 255, 0.12);
  }

  .nav-list li.active {
    background: rgba(255, 255, 255, 0.18);
  }

   .nav-list li.active::after {
    display: none;
  }
}



/* history */

/* ===== Slider (top) ===== */
.slider{
  position:relative;
  height:min(100vh,640px);
  background: var(--slider-bg);
  border-radius:14px;
  overflow:hidden;
  transform: translateZ(0);

}

.viewport{
  height:100%;
  overflow:hidden;
}

.track{
  height:100%;
  display:flex;
  transition:transform 520ms cubic-bezier(.22,1,.36,1);
  will-change:transform;
}

.slide{
  min-width:100%;
  height:100%;
  position:relative;
}

.slide img{
  width:100%;
  height:100%;
  object-fit:cover;
  display:block;
}

.slide .caption{ display:none; }

.s-nav{
  position:absolute;
  top:50%;
  transform:translateY(-50%);
  width:44px;
  height:44px;
  border:0;
  border-radius:50%;
  background: var(--nav-bg);
  color:#fff;
  font-size:28px;
  font-family: Arial, system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  cursor:pointer;
  z-index:120;
  display:flex;
  align-items:center;
  justify-content:center;
}
.s-nav:hover{ background: var(--nav-bg-hover); }
.s-nav.prev{ left:12px; }
.s-nav.next{ right:12px; }

.caption-layer .cap{
  position:absolute;
  left:0px;
  right:0px;
  bottom:0px;
  padding:12px 14px;
  border-radius:0px;
  color:#fff;
  background: rgba(0,0,0,.62);
  backdrop-filter: blur(4px);
  z-index:2000;
  opacity:0;
  transform: translateY(10px);
  transition: opacity 600ms ease, transform 600ms ease;
}

.caption-layer .cap.top{ top:0px; bottom:auto; }

.caption-layer .cap.show{
  opacity:1;
  transform: translateY(0);
}

.caption-layer .cap-info{
  display:inline-block;
  align-self:flex-start;
  background: rgba(13, 110, 253, 0.95);
  color:#fff;
  font-weight: 500;
  font-size: 14px;
  line-height:1;
  padding:6px 10px;
  border-radius:10px;
  margin:8px 0;
}

.caption-layer .cap-text{
  font-size:16px;
  line-height:1.25;
  margin-left: 10px;
}


.timeline{
  margin-top:14px;
  position:relative;
  display:flex;
  align-items:center;
  gap:10px;
}

.t-nav{
  width:40px;
  height:40px;
  border:0;
  border-radius:50%;
  background: rgba(0,0,0,.08);
  cursor:pointer;
  font-family: Arial, system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  font-size:22px;
  display:none;
  position:relative;
  z-index: 30; /* выше fade */
}
.t-nav:hover{ background: rgba(0,0,0,.14); }

.t-shell{
  flex: 1;
  position: relative;
  overflow: hidden;
}

.t-viewport{
  position: relative;
  overflow-x: hidden;
  overflow-y: hidden;
  white-space: nowrap;
  scroll-behavior: smooth;
}

.t-shell::before,
.t-shell::after{
  content:"";
  position:absolute;
  top:0;
  bottom:0;
  width:64px;
  pointer-events:none;
  opacity:0;
  transition: opacity .18s ease;
  z-index: 20;
}

.t-shell::before{
  left:0;
  background: linear-gradient(to right, #f3f4f6 0%, rgba(243,244,246,0) 100%);
}
.t-shell::after{
  right:0;
  background: linear-gradient(to left, #f3f4f6 0%, rgba(243,244,246,0) 100%);
}

.timeline.show-fade-left  .t-shell::before{ opacity:1; }
.timeline.show-fade-right .t-shell::after { opacity:1; }

.t-track{
  display:inline-flex;
  align-items:center;
  gap:12px;
  padding: 6px 0;
  user-select:none;
}

.year{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-width:88px;
  padding:10px 16px;
  border-radius:999px;
  background:#0d6efd;
  color:#fff;
  font-weight:800;
  font-size:22px;
  cursor:pointer;
}
.year.active{ background:#ff4d00; }

.dots { 
  display:inline-flex; 
  align-items:center; 
  gap:8px; 
  position:relative;
}

.dot { 
  width:4px; 
  height:4px; 
  border-radius:50%; 
  background:#2b2b2b; 
  opacity:.35; 
  transition: background .3s ease, opacity .3s ease;
  position:relative;
  z-index:10;
}
.dot.tight{ width:4px; height:4px; }

.dot.active {
  background:#0d6efd;
  opacity:1;
}

.dot.filled {
  background:#0d6efd;
  opacity:1;
}

.dots.zprogress::before {
  background:#0d6efd;
  opacity:1;
}


@media (max-width: 768px){
  .slider{ height: 320px; }
  .year{ font-size:20px; min-width:70px; padding:8px 14px; }
  :root{ --fade-w: 54px; }
}

.docs-layer{
  position:absolute;
  inset:0;
  z-index:115;         
  pointer-events:none;
}

.docs{
  position:absolute;
  display:flex;
  gap:10px;
  padding:10px;
  pointer-events:auto;
}

.docs.pos-top-right{ top:8px; right:8px; }
.docs.pos-top-left{ top:8px; left:8px; }
.docs.pos-bottom-right{ bottom:8px; right:8px; }
.docs.pos-bottom-left{ bottom:8px; left:8px; }

.docs.dir-row{ flex-direction:row; }
.docs.dir-col{ flex-direction:column; }

.doc-link{
  width:64px;
  text-decoration:none;
  color:#fff;
  font-family: Arial, system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
}

.doc-link .ico{
  width:64px;
  height:64px;
  border-radius:12px;
  background: rgba(0,0,0,.45);
  backdrop-filter: blur(3px);
  display:flex;
  align-items:center;
  justify-content:center;
  overflow:hidden;
}

.doc-link img{
  width:42px;
  height:42px;
  object-fit:contain;
  display:block;
}

.doc-link .lbl{
  margin-top:6px;
  font-size:12px;
  line-height:1.1;
  text-align:center;
  text-shadow: 0 1px 2px rgba(0,0,0,.6);
  display:block;

  display:-webkit-box;
  -webkit-line-clamp:2;
  -webkit-box-orient: vertical;
  
}





#hitory .swiper {
  overflow: hidden;
  position: relative;
  width: 100%;
  height:min(100vh,640px);
  font-family: 'Montserrat', sans-serif;
}

#hitory .swiper-wrapper {
  display: flex;
  transition-timing-function: cubic-bezier(.22,1,.36,1);
}

#hitory .swiper-slide {
  flex-shrink: 0;
  width: 100%;
  height: 100%;
  position: relative;
}

.caption-layer, .docs-layer {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 10;
}

.doc-link {
  pointer-events: auto;
}

.slide-group{
  height:100%;
  display:grid;
  grid-template-columns: repeat(3, 1fr);
  grid-auto-rows: 1fr;
  gap:10px;
  padding:10px;
  box-sizing:border-box;
}

.slide-group .g-item{
  margin:0;
  min-width:0;
  min-height:0;
}

.slide-group[data-count="1"]{
  grid-template-columns: 1fr;
  padding:0px;
}

.slide-group[data-count="2"]{
  grid-template-columns: repeat(2, 1fr);
}

.slide-group img{
  width:100%;
  height:100%;
  object-fit:cover;
  display:block;
  border-radius:12px;
}


/* popup */
.reuse-popup{
  position:fixed; inset:0; z-index:9999;
  display:grid; place-items:center;
  opacity:0; pointer-events:none; transition:opacity 180ms ease;

  --popup-margin:60px;
  --popup-max-w:999999px;
  --popup-max-h:999999px;

  touch-action:none;
}

.reuse-popup.is-open{opacity:1; pointer-events:auto;}

.reuse-popup__backdrop{
  position:absolute; inset:0;
  background:rgba(0,0,0,.55);
}

.reuse-popup__panel{
  position:relative;
  width:min(calc(100vw - (var(--popup-margin) * 2)), var(--popup-max-w));
  height:min(calc(100vh - (var(--popup-margin) * 2)), var(--popup-max-h));
  background:#fff; color:#111; border-radius:16px;
  box-shadow:0 20px 80px rgba(0,0,0,.45);
  overflow:hidden;
  transform:translateY(8px); transition:transform 180ms ease;
  overscroll-behavior: contain;
}

.reuse-popup.is-open .reuse-popup__panel{transform:translateY(0);}

.reuse-popup__header{
  display:flex; gap:12px; align-items:center; justify-content:space-between;
  padding:14px 16px; background:#fff;
}
.reuse-popup__title{min-height:18px;}
.reuse-popup__close{
  appearance:none; border:0; border-radius:10px;
  padding:8px 10px; cursor:pointer;
  background:rgba(255,255,255,.12); color:inherit;
}

.reuse-popup__body{
  height:calc(100% - 52px);
  overflow:auto;
  padding:16px;
  overscroll-behavior: contain;
}

.reuse-popup__body.is-iframe{ padding:0; overflow:hidden; }
.reuse-popup__iframe{ width:100%; height:100%; border:0; display:block; background:#fff; }

.reuse-popup__doc-host{
  display:block;
  background:#fff;
  color:#000;
  border-radius:12px;
  overflow:hidden;
}


@media (max-width:640px){
  .reuse-popup{ --popup-margin:12px; }
  .reuse-popup__panel{ border-radius:14px; }
}


/** BUTTON */

.quiz-btn{
  width: var(--quiz-size);
  height: var(--quiz-size);
  padding: 0;
  border: 0;
  border-radius: var(--quiz-radius);
  background: #fff;
  color: #0b4ea5;
  cursor: pointer;

  display: inline-flex;
  align-items: center;
  justify-content: center;

  position: relative;
  overflow: hidden;
  white-space: nowrap;

  transition: width .35s ease, padding .35s ease, justify-content .35s ease;
}

.quiz-btn__icon-wrap{
  
  height: 100%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
}

.quiz-btn__icon{
  width: 26px;
  height: 26px;
  display: block;
  object-fit: contain;
  object-position: center;
}

.quiz-btn__text{
  display: none;
  margin-left: 12px;
  font-size: 18px;
  font-weight: 500;
  color: #0b4ea5;
}

.quiz-btn:hover{
  width: var(--quiz-expanded);
  padding: 0 18px;
  justify-content: flex-start;
}

.quiz-btn:hover .quiz-btn__text{
  display: inline;
}











/* STRUCTURE*/

.key-organs {
  position: relative;
  padding-bottom: 34px;
}

.key-organs__wrap {
  overflow: hidden;
  max-height: var(--collapsed-h, 0px);
  transition: max-height 350ms ease;
}

.key-organs.is-open .key-organs__wrap {
  max-height: var(--expanded-h, 9999px);
}

.key-organs:not(.is-open) .key-organs__wrap {
  --fade-h: 56px;

  -webkit-mask-image: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 1) 0%,
    rgba(0, 0, 0, 1) calc(100% - var(--fade-h)),
    rgba(0, 0, 0, 0) 100%
  );
  mask-image: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 1) 0%,
    rgba(0, 0, 0, 1) calc(100% - var(--fade-h)),
    rgba(0, 0, 0, 0) 100%
  );

  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;

  -webkit-mask-size: 100% 100%;
  mask-size: 100% 100%;
}

.key-organs.is-open .key-organs__wrap {
  -webkit-mask-image: none;
  mask-image: none;
}

.key-organs.is-open .key-organs__content{
  padding-bottom: 34px;
}

.key-organs__toggle {
  position: absolute;
  left: 50%;
  bottom: 0;

  transform: translateX(-50%);
  margin: 0;

  border: 0;
  background: transparent;
  padding: 6px 0;

  display: inline-flex;
  align-items: center;
  justify-content: center;

  cursor: pointer;
  color: inherit;
}

.key-organs__toggle:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 4px;
}

.key-organs__arrow {
  width: 22px;
  height: 22px;
  display: inline-block;
  border-right: 3px solid currentColor;
  border-bottom: 3px solid currentColor;

  transform: rotate(45deg);
  animation: pulseDown 1.2s ease-in-out infinite;
}

.key-organs.is-open .key-organs__arrow {
  transform: rotate(-135deg);
  animation: none;
}

@keyframes pulseDown {
  0%, 100% { transform: translateY(0) rotate(45deg); opacity: 0.65; }
  50%      { transform: translateY(6px) rotate(45deg); opacity: 1; }
}

@media (prefers-reduced-motion: reduce) {
  .key-organs__wrap { transition: none; }
  .key-organs__arrow { animation: none; }
}


/* ======= YEARLINE ======= */

.year-tabs-wrap{
  position: relative;
  display: grid;
  grid-template-columns: 44px 1fr 44px;
  gap: 10px;
  align-items: center;
  margin-bottom: 14px;
}

.year-tabs{
  display:flex;
  gap:40px;
  justify-content:flex-start;
  flex-wrap:nowrap;
  overflow-x:auto;
  overflow-y:hidden;
  scroll-behavior:smooth;
  -webkit-overflow-scrolling: touch;
  padding: 4px 2px;
  --fade: 22px;
  -webkit-mask-image: none;
  mask-image: none;
  cursor: grab;
  touch-action: pan-x;
  scrollbar-width: none;
}

.year-tabs.dragging{ cursor: grabbing; }
.year-tabs::-webkit-scrollbar{ height: 0; }

.year-tabs,
.year-tab,
.year-nav{
  -webkit-user-select: none;
  user-select: none;
}

.year-tabs.fade-left{
  -webkit-mask-image: linear-gradient(to right,
    transparent 0,
    #000 var(--fade),
    #000 100%
  );
  mask-image: linear-gradient(to right,
    transparent 0,
    #000 var(--fade),
    #000 100%
  );
}

.year-tabs.fade-right{
  -webkit-mask-image: linear-gradient(to right,
    #000 0,
    #000 calc(100% - var(--fade)),
    transparent 100%
  );
  mask-image: linear-gradient(to right,
    #000 0,
    #000 calc(100% - var(--fade)),
    transparent 100%
  );
}

.year-tabs.fade-left.fade-right{
  -webkit-mask-image: linear-gradient(to right,
    transparent 0,
    #000 var(--fade),
    #000 calc(100% - var(--fade)),
    transparent 100%
  );
  mask-image: linear-gradient(to right,
    transparent 0,
    #000 var(--fade),
    #000 calc(100% - var(--fade)),
    transparent 100%
  );
}

.year-nav{
  width: 44px;
  height: 40px;
  border-radius: 999px;
  cursor: pointer;
  border:1px solid rgba(255,255,255,.14);
  background:rgba(0,0,0,.08);
  color:#000;
  font-size:22px;
  line-height:1;
  display:grid;
  place-items:center;
  user-select:none;
  transition:180ms ease;
}
.year-nav:hover{ background:rgba(0,0,0,.14); color:#000; }
.year-nav[disabled]{ opacity:.35; cursor:default; }

@media (max-width: 420px){
  .year-tabs-wrap{ grid-template-columns: 38px 1fr 38px; }
  .year-nav{ width: 38px; height: 36px; }
}

    .year-tab{
      padding:10px 14px; border-radius:999px; cursor:pointer; font-weight:700;
      border:1px solid rgba(255,255,255,.14); background:#0c4996; color:#fff;
      transition: 220ms ease;
    }
    .year-tab:hover{ background:#0d6efd; color:#fff; }
    .year-tab.active{ background:#ffa700; color:#fff; }

    .yearline {
      position: relative;
      width: 100%;
      height: 640px;     
      overflow: hidden;
    }

    .anno {
      position: absolute;
      left: 70px;
      top: 70px;
      font-size: 86px;
      font-weight: 800;
      letter-spacing: 2px;
      color: #ffa700;
      opacity: 0;
      transform: translateY(10px);
      transition: 700ms var(--ease);
      z-index: 3;
      user-select:none;
      pointer-events:none;
    }
    .anno.show { opacity: 1; transform: translateY(0); }

    .node {
      position: absolute;
      width: 220px;
      height: 130px;
      border-radius: 14px;
      background: #2a2a2a;
      box-shadow: 0 10px 30px rgba(0,0,0,.35);
      overflow: hidden;
      opacity: 0;
      transform: scale(.92);
      transition: 450ms var(--ease);
      border: 1px solid rgba(255,255,255,.08);
      z-index: 2;
    }
    .node.show { opacity: 1; transform: scale(1); }
    .node img { width: 100%; height: 100%; object-fit: cover; display:block; }

    .node .cap {
      position:absolute;
      left:0; right:0; bottom:0;
      padding: 8px 10px 7px;
      color: #fff;
      font-size: 12px;
      line-height: 1.15;
      background: linear-gradient(transparent, rgba(0,0,0,.85));
      opacity: 0;
      transition: 260ms ease;
      pointer-events: none;
    }
    .node.show .cap { opacity: 1; }
    .node .cap a { color:#66b3ff; text-decoration:none; font-weight:700; margin-left:8px; }
    .node .cap a:hover { text-decoration: underline; }

    .node-link {
  position: absolute;
  inset: 0;
  z-index: 3;
  border-radius: 14px;
}
.node-link:hover ~ .cap,
.node:has(.node-link:hover) .cap {
  opacity: 1;
  background: linear-gradient(transparent, rgba(0,0,0,.95));
}

.node:has(.node-link:hover) img {
  opacity: 0.8;
  transition: opacity 0.2s;
}

    svg.wire { position:absolute; inset:0; pointer-events:none; z-index:1; }
    .path {
      fill:none;
      stroke-linecap: round;
      stroke-linejoin: round;
      filter: drop-shadow(0 6px 10px rgba(0,0,0,.35));
    }

    .path{
      stroke: var(--snake-color);
      stroke-width: var(--snake-width);
    }

    /* MOBILE */
    @media (max-width: 640px) {
      .yearline { height: auto; min-height: 0; padding-bottom: 18px; }
      .anno { position: static; padding: 18px 16px 8px; font-size: 56px; }
      svg.wire { display: none; }
      .node{
        position: static;
        width: min(420px, 92vw);
        height: min(220px, 52vw);
        margin: 12px auto;
        transform: scale(.98);
      }
    }

    /* MEDIUM */
    @media (max-width: 1024px) and (min-width: 641px) {
      .yearline { height: 560px; }
      .anno { left: 50px; top: 56px; font-size: 72px; }
    }


  /* ================ CREDITS ================ */
  .bass-soft {
  display: inline-block;
  transform-origin: 50% 50%;
  will-change: transform;
  animation: bassSoft 950ms cubic-bezier(.2,.8,.2,1) infinite;
}

@keyframes bassSoft {
  0%   { transform: scale(1); }
  12%  { transform: scale(1.03); }
  22%  { transform: scale(1.018); }
  55%  { transform: scale(0.995); }
  100% { transform: scale(1); }
}

/* ========= COUNTER =========== */

.counter {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
  will-change: opacity, transform;
  font-weight: 700;
  color: #fff;
  min-height: 1.5em;
}

.counter.counting {
    opacity: 1;
    transform: translateY(0);
}

.counter.finished {
    animation: pulse 0.5s ease;
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

.counter-wrapper {
    perspective: 1000px;
}


/* ========== NEWS =========== */

#news-main-block {
  min-height: 400px;
}

.news-main-placeholder .placeholder-img {
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #f0f0f0;
}

.news-main-placeholder .placeholder-img span {
  display: block;
  height: 100%;
  border-radius: 0;
}

.news-main-placeholder .placeholder-title span {
  height: 1.2rem;
  border-radius: 4px;
}

.news-main-content {
  opacity: 1;
  /*transition: opacity 0.6s ease-in-out;*/
}

.news-main-content.fading {

}

.news-main-link {
  display: block;
  text-decoration: none;
}

.news-main-image-wrapper {
  position: relative;
  border-radius: 8px;
  overflow: hidden;
}


.news-main-img {
  display: block;
  height: auto;
  transition: transform 0.4s ease;
  will-change: transform;
}

.news-main-image-wrapper:hover .news-main-img {
  transform: scale(1.08);
}

#news-main-title-link {
  text-decoration: none;
  color: inherit;
  transition: color 0.2s ease;
}

#news-main-title-link:hover {
  color: var(--bs-primary);
}

.news-main-title {
  font-size: 1.5rem;
  font-weight: 600;
  line-height: 1.3;
  color: inherit;
  margin: 0;
}

.news-list-wrapper {
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  max-height: 600px;
}

#news-list {
  scrollbar-width: thin;
  scrollbar-color: rgba(0, 0, 0, 0.2) transparent;
}

#news-list::-webkit-scrollbar {
  width: 6px;
}

#news-list::-webkit-scrollbar-thumb {
  background: rgba(0, 0, 0, 0.2);
  border-radius: 3px;
}

#news-list li {
  padding: 0.75rem 0;
  border-bottom: 1px solid #e9ecef;
  transition: background-color 0.2s ease;
}

#news-list li:last-child {
  border-bottom: none;
}

#news-list li:hover {
  background-color: #f8f9fa;
}

.news-item-link {
  display: block;
  text-decoration: none;
  color: inherit;
  cursor: pointer;
  padding: 0.25rem 0.5rem;
}

.news-item-link:hover .news-item-title {
  color: var(--bs-primary);
}

.news-item-title {
  font-weight: 600;
  font-size: 0.95rem;
  line-height: 1.4;
  margin-bottom: 0.25rem;
  transition: color 0.2s ease;
}

.news-item-meta {
  font-size: 0.8rem;
  color: #6c757d;
}

.news-item-placeholder {
  padding: 0.75rem 0.5rem;
  border-bottom: 1px solid #e9ecef;
}

.news-item-placeholder:last-child {
  border-bottom: none;
}

.news-item-placeholder .placeholder {
  height: 1rem;
  border-radius: 4px;
}

#news-load-more:disabled,
#news-load-prev:disabled {
  cursor: not-allowed;
  opacity: 0.6;
}

.placeholder-glow .placeholder {
  animation: placeholder-glow 2s ease-in-out infinite;
}

@keyframes placeholder-glow {
  50% {
    opacity: 0.2;
  }
}


/* ================= GALLERY MOBILE ================= */
@media (max-width: 768px) {

  .swiperParallax .gallery-info__wrapper {
    display: none !important;
  }
}




