:root{
  /* ===== Launcher palette (source of truth) ===== */
  --launcher-primary:#00b4ff;
  --launcher-primary-dark:#0070c0;
  --launcher-secondary:#050814;
  --launcher-surface:#0b1022;
  --launcher-surface-light:#121a33;
  --launcher-text:#ffffff;
  --launcher-muted:#9da4c2;
  --launcher-accent:#b31d1d;
  --launcher-accent-alt:#3230c1;
  --launcher-success:#00d97e;
  --launcher-danger:#ff4757;
  --launcher-warning:#ffa502;

  /* ===== Site mapping ===== */
  --primary: var(--launcher-primary);
  --primary2: var(--launcher-accent-alt);
  --accent: var(--launcher-accent);

  --bg: var(--launcher-secondary);
  --bg2: var(--launcher-surface);

  --text: var(--launcher-text);
  --muted: var(--launcher-muted);
  --muted2: rgba(157,164,194,0.72);

  /* surfaces/cards */
  --card: rgba(11,16,34,0.78);   /* ~ surface */
  --card2: rgba(18,26,51,0.92);  /* ~ surface-light */

 --border: rgba(0,180,255,0);


  /* shadows for dark UI */
  --shadow: 0 10px 25px -8px rgba(0,0,0,0.55);
  --shadowlg: 0 24px 55px -18px rgba(0,0,0,0.72);

  /* gradients like launcher */
  --grad: linear-gradient(135deg, var(--primary) 0%, var(--primary2) 100%);
  --gradA: linear-gradient(135deg, var(--accent) 0%, var(--primary2) 100%);

  /* radii / sizes (оставил твои — они норм) */
  --rXL:28px;
  --rLG:20px;
  --rMD:14px;
  --container:1100px;
}

/* RESET & LAYOUT */
*{ margin:0; padding:0; box-sizing:border-box; }

html,body{ height:100%; }

body{
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  font-family: -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  color: var(--text);

  /* launcher background */
  background: radial-gradient(circle at top, #1b2140 0, #050814 55%, #02030a 100%);
  background-attachment: fixed;
  background-repeat: no-repeat;
  background-size: cover;

  line-height: 1.6;
  overflow-x: hidden;
}

main{ flex: 1 0 auto; }
footer{ margin-top: auto; }
a{ color:inherit; text-decoration:none; }

.container{
  max-width: var(--container);
  margin:0 auto;
  padding:0 18px;
  background:transparent;
  border:none;
}

/* HEADER */
header{
  position: sticky;
  top: 0;
  z-index: 50;

  /* from light -> dark glass */
  background: rgba(11,16,34,0.72);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(0,180,255,0.18);
  box-shadow: 0 3px 18px rgba(0,0,0,0.65);
  transition: background .18s ease, box-shadow .18s ease;
}

.navbar{
  height: 76px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap: 14px;
}

.brand{
  font-weight: 850;
  letter-spacing: .4px;
  font-size: 1.75rem;
  background: var(--grad);
  -webkit-background-clip:text;
  background-clip:text;
  -webkit-text-fill-color: transparent;
  white-space: nowrap;
}

/* NAV */
.nav{
  list-style:none;
  display:flex;
  gap: 25px;
  flex-wrap: nowrap;
  justify-content:center;
  align-items:center;
}

.nav a{
  font-weight: 850;
  font-size: .95rem;
  color: var(--muted);
  padding: 8px 0;
  position: relative;
  transition: color .18s ease;
}

.nav a:hover{ color: var(--primary); }
.nav a.active{ color: var(--primary); }

.nav a::after{
  content:'';
  position:absolute;
  left:50%;
  bottom: 2px;
  width:0;
  height:2px;
  background: var(--grad);
  border-radius: 2px;
  transition: all .2s ease;
}

.nav a:hover::after,
.nav a.active::after{ width:100%; left:0; }

.nav-actions{
  display:flex;
  gap: 10px;
  align-items:center;
}

/* DROPDOWN OPERATIONS */
.nav-has-dropdown{ position:relative; }

.nav-has-dropdown .nav-link{
  font-weight: 850;
  font-size: .95rem;
  color: var(--muted);
  padding: 8px 0;
  cursor: pointer;
  position: relative;
  white-space: nowrap;
}

.nav-has-dropdown .nav-link span{
  font-weight: inherit;
  font-size: inherit;
  letter-spacing: 0;
  text-transform: none;
}

.nav-has-dropdown .nav-link::after{
  content:'';
  position:absolute;
  left:50%;
  bottom:2px;
  width:0;
  height:2px;
  background:var(--grad);
  border-radius:2px;
  transition:all .2s ease;
}

.nav-has-dropdown.open .nav-link{ color:var(--primary); }
.nav-has-dropdown.open .nav-link::after{ width:100%; left:0; }

.nav-dropdown{
  position:absolute;
  top:100%;
  left:0;
  right:0;
  min-width:190px;

  background: rgba(5,8,20,0.98); /* launcher-like panel */
  border-radius:18px;
  border:1px solid rgba(0,180,255,0.18);
  box-shadow:0 18px 45px -22px rgba(0,0,0,0.85);

  padding:6px 0;
  list-style:none;
  opacity:0;
  transform:translateY(8px);
  pointer-events:none;
  transition:opacity .16s ease, transform .16s ease;
  overflow:hidden;
}

.nav-dropdown li a{
  display:block;
  padding:8px 16px;
  font-size:.9rem;
  color: rgba(255,255,255,0.92);
  white-space:nowrap;
}

.nav-dropdown li a:hover{
  background: rgba(0,180,255,0.16);
  color: #ffffff;
}

.nav-has-dropdown.open .nav-dropdown{
  opacity:1;
  transform:translateY(0);
  pointer-events:auto;
}

/* BUTTONS */
.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap: 8px;
  font-weight: 850;
  padding: 12px 16px;
  border-radius: 26px;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease, color .15s ease;
  user-select:none;
  white-space: nowrap;
}

.btn-primary{
  background: var(--grad);
  color: #07101a; /* dark text like launcher buttons */
  border: 1px solid rgba(0,180,255,0.20);
  box-shadow: var(--shadow);
  cursor:pointer;
}
.btn-primary:hover{
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(0,180,255,0.45);
}

.btn-ghost{
  background: rgba(0,180,255,0.10);
  border: 1px solid rgba(0,180,255,0.20);
  color: var(--primary);
}
.btn-ghost:hover{
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(0, 179, 255, 0.438);
}

.btn-support{
  background: var(--grad);
  border: 1px solid rgba(0, 179, 255, 0);
  color: #07101a; 
  box-shadow: var(--shadow);
}
.btn-support:hover{
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(0,180,255,0.45);
}





/* HAMBURGER */
.hamburger{
  display:none;
  width: 44px;
  height: 44px;
  border-radius: 14px;
  border: 1px solid rgba(0,180,255,0.18);
  background: rgba(0,180,255,0.10);
  cursor:pointer;
  align-items:center;
  justify-content:center;
  flex-direction: column;
  gap: 6px;
}

.hamburger span{
  width: 20px;
  height: 2px;
  border-radius: 2px;
  background: var(--primary);
  display:block;
}

/* HERO */
.hero{
  padding: 64px 0 34px;
  text-align:center;
  position: relative;
  overflow:hidden;
  background:transparent;
}

.hero::before{
  content:'';
  position:absolute;
  right:-140px;
  top:-160px;
  width: 420px;
  height: 420px;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, rgba(0, 179, 255, 0), transparent 60%);
  filter: blur(10px);
  pointer-events:none;
}

.hero::after{
  content:'';
  position:absolute;
  left:-160px;
  bottom:-180px;
  width: 440px;
  height: 440px;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, rgba(125, 92, 255, 0), transparent 62%);
  filter: blur(10px);
  pointer-events:none;
}

/* BADGE & HEADLINE */
.badge{
  display:inline-flex;
  align-items:center;
  gap: 10px;
  padding: 10px 14px;
  border-radius: 999px;
  background: rgba(0, 179, 255, 0.1);
  border: 1px solid rgba(0,180,255,0.18);
  box-shadow:0 0 0 0 rgba(255, 8, 8, 0);
  color: var(--muted);
  font-weight: 850;
  margin-bottom: 16px;
}

h1{
  font-size: clamp(2.4rem, 5.2vw, 3.6rem);
  line-height: 1.08;
  font-weight: 850;
  margin: 0 auto 12px;

  /* keep nice gradient but in launcher tones */
  background: linear-gradient(90deg, var(--primary) 0%, var(--primary2) 55%, var(--accent) 100%);
  -webkit-background-clip:text;
  background-clip:text;
  -webkit-text-fill-color: transparent;
  max-width: 980px;
}

.lead{
  margin: 0 auto;
  max-width: 860px;
  color: var(--muted);
  font-size: 1.08rem;
}

.hero-actions{
  margin-top: 20px;
  display:flex;
  justify-content:center;
  gap: 12px;
  flex-wrap:wrap;
}

/* HERO STATS */
.hero-stats{
  margin-top: 34px;
  display:grid;
  grid-template-columns: repeat(3, minmax(0,1fr));
  gap: 16px;
}

.hero-stats .card{
  background: var(--card);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  border-radius: var(--rXL);
  padding: 22px 18px;
  text-align:center;
  transform: translateY(22px);
  opacity: 0;
  transition: all .4s ease;
}

.hero-stats .card.reveal{
  transform: translateY(0);
  opacity: 1;
}

.hero-stats .card-icon{
  font-size: 2rem;
  margin-bottom: 6px;
}

/* SECTIONS */
.section{
  padding: 42px 0;
  background:transparent;
  border:none;
}

.section-title{
  text-align:center;
  font-size: 2rem;
  font-weight: 850;
  margin-bottom: 18px;
  background: linear-gradient(90deg, var(--text) 0%, var(--primary) 50%, var(--primary2) 100%);
  -webkit-background-clip:text;
  background-clip:text;
  -webkit-text-fill-color: transparent;
}

.section-sub{
  text-align:center;
  max-width: 900px;
  margin: 0 auto 24px;
  color: var(--muted);
  font-weight: 850;
}

/* GRID & CARDS */
.grid{
  display:grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 16px;
  align-items: stretch;
}

.col-12{ grid-column: span 12; }
.col-6{ grid-column: span 6; }
.col-4{ grid-column: span 4; }

.card{
  background: var(--card);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  border-radius: var(--rXL);
  padding: 25px 25px;
  position: relative;
  overflow:hidden;
   min-height: 100%;
  transition: all .25s ease;
  text-align:center;
  transform: translateY(22px);
  opacity: 0;
  color: var(--muted);
  font-weight: 800;
}


.card::before{
  content:'';
  position:absolute;
  left:0; right:0; top:0;
  height:4px;
  background: var(--grad);
  opacity: .95;
}

.card.reveal{
  transform: translateY(0);
  opacity: 1;
  text-align: center;
}


.card:hover{
  background: var(--card2);
  box-shadow: var(--shadowlg);
  transform: translateY(-6px);
}

.card-icon{
  font-size: 2.6rem;
  margin-bottom: 14px;
  display:inline-block;
  filter: drop-shadow(0 6px 14px rgba(0,0,0,0.40));
}

.card h3{
  font-size: 1.28rem;
  font-weight: 850;
  color: var(--primary);
  margin-bottom: 12px;
}

.card p{
  color: var(--muted);
  font-weight: 850;
}

/* GALLERY TILES */
/* Убираем все отступы перед галереей */
.gallery-section {
  padding: 0;
  margin: 0;
}

/* Заголовок внутри слайдера */
.slider-header {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  padding: 40px 24px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0) 0%, rgba(0, 0, 0, 0) 100%);
  z-index: 20;
  text-align: center;
}

.slider-header h2 {
  margin: 0;
  color: var(--primary);
  font-size: 2rem;
  font-weight: 850;
  letter-spacing: .2px;
}

/* Слайдер с полной высотой */
.slider {
  position: relative;
  width: 100vw;
  margin-left: calc(-50vw + 50%);
  margin-right: calc(-50vw + 50%);
  border-radius: 0;
  overflow: hidden;
  box-shadow: var(--shadowlg);
  background: linear-gradient(135deg, rgba(0,180,255,0.22), rgba(124,92,255,0.18));
  border: 1px solid rgba(0,180,255,0.18);
  aspect-ratio: 16 / 9;
  z-index: 1;
}

.slides {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity .5s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.slide.active { 
  opacity: 1; 
}

.slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}


.slide-cap{
  position: absolute;
  left: 16px;
  right: 16px;
  bottom: 16px;
  color: #fff;
  text-shadow: 0 2px 6px rgba(0,0,0,0.6);
  z-index: 10;
}

.slide-cap strong{
  display:block;
  font-size: 1.2rem;
  font-weight: 850;
}

.slide-cap span{
  display:block;
  margin-top: .25rem;
  opacity: 0.9;
}

/* Кнопки слайдера */
.slider-btn{
  position:absolute;
  top:50%;
  transform: translateY(-50%);
  width: 40px;
  height: 40px;
  border-radius: 999px;
  border: 1px solid rgba(0,180,255,0.20);
  background: rgba(5,8,20,0.70);
  color:#fff;
  font-size: 1.8rem;
  display:flex;
  align-items:center;
  justify-content:center;
  cursor:pointer;
  transition: background .2s ease, transform .2s ease;
  z-index: 15;
}

.slider-btn.prev{ left: 10px; }
.slider-btn.next{ right: 10px; }

.slider-btn:hover{
  background: rgba(5,8,20,0.90);
  transform: translateY(-50%) scale(1.05);
}

/* Точки навигации */
.slider-dots{
  position:absolute;
  left:0;
  right:0;
  bottom: 10px;
  display:flex;
  justify-content:center;
  gap: 8px;
  z-index: 15;
}

.slider-dots .dot{
  width: 9px;
  height: 9px;
  border-radius: 999px;
  border:none;
  background: rgba(255,255,255,0.35);
  cursor:pointer;
  padding:0;
  transition: all .2s ease;
}

.slider-dots .dot:hover{
  background: rgba(255,255,255,0.55);
}

.slider-dots .dot.active{ 
  background:#fff;
  transform: scale(1.15);
}


.tile{
  grid-column: span 6;
  height: 260px;
  border-radius: 22px;
  overflow:hidden;
  position: relative;
  border: 1px solid rgba(0,180,255,0.14);
  box-shadow: var(--shadow);
  background: linear-gradient(135deg, rgba(0,180,255,0.22), rgba(124,92,255,0.18));
  transform: translateY(22px);
  opacity: 0;
  transition: opacity .55s ease, transform .55s ease;
}

.tile.reveal{ opacity: 1; transform: translateY(0); }

.tile::after{
  content:'';
  position:absolute;
  inset:0;
  background: linear-gradient(180deg, transparent 0%, rgba(0,0,0,0.45) 72%, rgba(0,0,0,0.62) 100%);
}

.tile .cap{
  position:absolute;
  left: 16px; right: 16px; bottom: 16px;
  z-index: 2;
  color: rgba(255,255,255,0.95);
}

.tile .cap strong{
  display:block;
  font-size: 1.2rem;
  font-weight: 850;
}

.tile .cap span{
  display:block;
  opacity: 0.9;
  margin-top: .25rem;
}

/* CTA (less bright) */
.cta{
  margin-top: 28px;

  /* было: background: var(--grad); */
  background: linear-gradient(135deg,
    rgba(0,180,255,0.18) 0%,
    rgba(124,92,255,0.16) 60%,
    rgba(255,77,138,0.10) 100%
  );

  border-radius: 32px;
  box-shadow: var(--shadowlg);
  padding: 36px 28px;

  /* делаем текст белым, потому что фон теперь темнее */
  color: rgba(255,255,255,0.92);

  text-align:center;
  position: relative;
  overflow:hidden;

  border: 1px solid rgba(0,180,255,0.16);
}

/* блики делаем слабее */
.cta::before{
  content:'';
  position:absolute;
  inset:-2px;
  background:
    radial-gradient(circle at 20% 20%, rgba(255,255,255,0.10), transparent 48%),
    radial-gradient(circle at 80% 25%, rgba(255,77,138,0.12), transparent 54%);
  opacity: 0.35;  /* было 0.9 */
  pointer-events:none;
}

/* добавляем тёмный “глушитель” поверх, чтобы убрать неон */
.cta::after{
  content:'';
  position:absolute;
  inset:0;
  background: rgba(5,8,20,0.45);
  pointer-events:none;
}

/* контент поверх слоёв */
.cta .inner{
  position: relative;
  z-index: 1;
  max-width: 900px;
  margin: 0 auto;
}

.cta h2{
  font-size: 2rem;
  font-weight: 850;
  margin-bottom: 12px;
}

.cta p{
  opacity: .92;
  margin: 0 auto 20px;
  font-weight: 850;
  max-width: 820px;
}

/* кнопки внутри CTA тоже приглушаем */
.cta .actions{
  display:flex;
  justify-content:center;
  gap: 12px;
  flex-wrap: wrap;
}

.cta .btn-ghost{
 background: var(--grad);
  color: #07101a; /* dark text like launcher buttons */
  box-shadow: var(--shadow);
}

.cta .btn-ghost:hover{
     transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(0, 180, 255, 0.45);
}


/* FOOTER */
footer{
  margin-top: 40px;
  padding: 42px 0 24px;
  background: linear-gradient(135deg, #050814 0%, #0b1022 100%);
  color: rgba(255,255,255,0.82);
  position: relative;
  border-top: 1px solid rgba(0,180,255,0.12);
}

footer::before{
  content:'';
  position:absolute;
  top:0; left:0; right:0;
  height:2px;
  background: linear-gradient(90deg, transparent, var(--primary2), var(--accent), var(--primary2), transparent);
  opacity: .85;
}

.footer-brand{
  text-align:center;
  font-weight: 850;
  font-size: 2rem;
  background: linear-gradient(135deg, var(--primary), var(--primary2));
  -webkit-background-clip:text;
  background-clip:text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 10px;
}

.footer-text{
  text-align:center;
  color: rgba(255,255,255,0.75);
  font-weight: 850;
}

.footer-legal{
  margin-top: 6px;
  text-align: center;
  font-size: 0.85rem;
  color: rgba(255,255,255,0.70);
  font-weight: 850;
  opacity: 0.95;
}

.footer-legal span{
  border-bottom: 1px dashed rgba(255,255,255,0.35);
}

/* SUPPORT FORM */
.support-form{
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.form-group{
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-group label{
  font-weight: 850;
  font-size: 0.95rem;
  color: var(--text);
}

.support-form input,
.support-form textarea{
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid rgba(0,180,255,0.22);
  background: rgba(7,11,26,0.92);
  color: var(--text);
  font: inherit;
  resize: vertical;
  outline: none;
}

.support-form input::placeholder,
.support-form textarea::placeholder{
  color: rgba(157,164,194,0.72);
}

.support-form input:focus,
.support-form textarea:focus{
  border-color: var(--primary);
  box-shadow: 0 0 0 2px rgba(0,180,255,0.22);
}

/* ==========================================================
   RESPONSIVE PACK (PC + MOBILE)
   ========================================================== */


@media (max-width: 1200px){
  .navbar{ flex-wrap: wrap; }
  .nav{
    flex-wrap: wrap;             
    row-gap: 10px;
    column-gap: 18px;
  }
  .nav-actions{ flex-wrap: wrap; }
  .navbar > *{ min-width: 0; }
}

/* --- MOBILE --- */
@media (max-width: 980px){

  
  .col-6, .col-4{ grid-column: span 12; }
  .tile{ grid-column: span 12; }

  
  .nav{ display: none; }
  .hamburger{ display: flex; }

  header{ z-index: 1100 !important; }          
  .hamburger{ z-index: 1101 !important; position: relative !important; }

  
  #nav.mobile-open{
    display: block;
    position: fixed;
    left: 0;
    right: 0;
    top: 0;
    z-index: 1000;

    padding: 92px 18px 18px;      
    background: rgba(11,16,34,0.96);

    max-height: 100vh;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }

  
  #nav.mobile-open .nav{
    display: flex !important;
    flex-direction: column;
    gap: 10px;
    align-items: stretch;
  }

  #nav.mobile-open .nav a,
  #nav.mobile-open .nav-link{
    display: block;
    padding: 12px 0;
  }

 
  #nav.mobile-open .nav-dropdown{
    position: static;
    box-shadow: none;
    background: transparent;
    border: none;
    opacity: 1;
    transform: none;
    pointer-events: auto;
    padding: 0;
  }

  #nav.mobile-open .nav-dropdown li a{
    padding-left: 24px;
    color: var(--muted);
  }
}


@media (max-width: 520px){
  .navbar{
    height: auto !important;      
    flex-wrap: wrap !important;
    gap: 10px !important;
    padding: 10px 0 !important;
  }

  .brand{
    font-size: 1.25rem !important;
    white-space: normal !important; 
    line-height: 1.1;
  }

 
  .nav-actions{
    margin-left: auto;
    display: flex !important;
    align-items: center;
    gap: 8px;
    flex-wrap: nowrap;
    min-width: 0;
  }

  .nav-actions .btn{
    padding: 10px 12px !important;
    border-radius: 16px !important;
    white-space: nowrap !important;
    max-width: 58vw;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  #nav.mobile-open{
    padding-top: 84px !important;
  }
}

@media (max-width: 640px){
  .hero-stats{
    grid-template-columns: repeat(1, minmax(0,1fr));
  }


  /* Секция команды */
  .staff-photo-placeholder {
    width: 100%;
    height: 200px;
    background: linear-gradient(135deg, rgba(0,180,255,0.22) 0%, rgba(124,92,255,0.20) 100%);
    border-radius: 12px;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 14px;
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(0,180,255,0.18);
  }

  .staff-photo-placeholder::before {
    content: '📷';
    font-size: 48px;
  }

  .staff-role {
    font-weight: bold;
    color: rgba(157,164,194,0.85);
    margin: 8px 0;
    font-size: 0.9em;
    text-transform: uppercase;
    letter-spacing: 0.5px;
  }

  .card h3 {
    margin-bottom: 8px;
    font-size: 1.2em;
  }

  @media (max-width: 768px) {
    .staff-photo-placeholder { height: 150px; }
  }

  .staff-links {
    margin-top: 14px;
    display: flex;
    justify-content: center;
  }

  .staff-link-circle {
    width: 32px;
    height: 32px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    background: var(--grad);
    color: #07101a;
    box-shadow: var(--shadow);
    border: 1px solid rgba(0,180,255,0.22);
    transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
  }

  .staff-name-link { color: inherit; text-decoration: none; }
  .staff-name-link:hover { text-decoration: underline; }

  .staff-link-circle:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadowlg);
  }

  /* EVENTS PAGE CUSTOMIZATION */
  .events-title{
    text-align:center;
    margin:32px 0 20px;
    color: var(--primary);
    font-weight:650;
    letter-spacing:.04em;
  }

  .events-grid .event-card{
    height: 240px;
    display:flex;
    flex-direction:column;
    align-items:center;
    justify-content:center;
    text-align:center;
    background: var(--card);
    border: 1px solid var(--border);
    box-shadow: var(--shadow);
    border-radius: var(--rXL);
    padding: 22px 18px;
  }

  .events-grid .event-card h3{ margin:6px 0; color: var(--primary); }

  .events-grid .event-card p{
    margin:6px 0 10px;
    color: var(--muted);
    font-weight:650;
  }

  .event-link{
    margin-top:4px;
    font-size:0.9rem;
    width:100%;
    max-width:260px;
  }

  .notice-card{
    background: linear-gradient(135deg, rgba(255,77,138,0.16), rgba(124,92,255,0.14));
    border-left:5px solid var(--accent);
  }

  .btn-discord{
    background: linear-gradient(135deg, #5865F2 0%, var(--primary2) 100%);
  }

  .discord-btn{
    display:inline-flex;
    align-items:center;
    justify-content:center;
    gap:8px;
    font-weight:650;
    padding:10px 16px;
    border-radius:12px;
    border:1px solid rgba(0,180,255,0.22);
    background: rgba(0,180,255,0.10);
    color:var(--primary);
    text-decoration:none;
    font-size:0.9rem;
    margin-top:10px;
    transition:all .2s ease;
  }

  .discord-btn:hover{
    background: rgba(0,180,255,0.16);
    transform:translateY(-1px);
    box-shadow:var(--shadow);
  }

  .preloader-inner{
    display:flex;
    flex-direction:column;
    align-items:center;
    gap: 14px;
    padding: 22px 26px;
    border-radius: 22px;
    background: var(--card);
    box-shadow: var(--shadowlg);
    border: 1px solid var(--border);
    backdrop-filter: blur(10px);
  }

  .preloader-spinner{
    width: 52px;
    height: 52px;
    border-radius: 999px;
    border: 4px solid rgba(0,180,255,0.18);
    border-top-color: var(--primary2);
    animation: preloaderSpin 0.9s linear infinite;
  }

  .preloader-text{
    font-weight: 850;
    color: var(--primary);
    letter-spacing: .2px;
  }

  @keyframes preloaderSpin{
    to { transform: rotate(360deg); }
  }

  /* Логотип в шапке */
  .brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
  }

  .brand__logo {
    height: 44px;
    width: auto;
    display: block;
  }

  /* Большой логотип в первом экране */
  .hero__logoWrap{
    display: flex;
    justify-content: center;
    margin: 24px 0;
  }

  .hero__logo{
    width: min(360px, 70vw);
    height: auto;
    display: block;
  }

/* header scroll state (dark) */
#header.is-scrolled{
  background: rgba(11,16,34,0.92) !important;
  box-shadow: 0 14px 32px rgba(0,0,0,0.55) !important;
  border-bottom: 1px solid rgba(0,180,255,0.20) !important;
}

/* Lightbox in site style */
.lb{
  position: fixed;
  inset: 0;
  z-index: 999;
  display: none;
}
.lb.is-open{ display: block; }

.lb__overlay{
  position:absolute;
  inset:0;
  background: rgba(0,0,0,0.62);
  backdrop-filter: blur(6px);
}

.lb__card{
  position:absolute;
  left:50%;
  top:50%;
  transform: translate(-50%, -50%);
  width: min(980px, calc(100vw - 28px));
  background: var(--card2);
  border: 1px solid var(--border);
  border-radius: var(--rXL);
  box-shadow: var(--shadowlg);
  overflow: hidden;
}

.lb__close{
  position:absolute;
  right: 12px;
  top: 12px;
  width: 42px;
  height: 42px;
  border-radius: 14px;
  border: 1px solid rgba(0,180,255,0.22);
  background: rgba(5,8,20,0.55);
  color: rgba(255,255,255,0.92);
  cursor: pointer;
  font-weight: 850;
  transition: transform .15s ease, background .15s ease;
  z-index: 2;
}
.lb__close:hover{
  transform: translateY(-1px);
  background: rgba(5,8,20,0.80);
}

.lb__media{
  position: relative;
  width: 100%;
  height: min(70vh, 640px);
  background: rgba(5,8,20,0.55);
}
.lb__media img{
  width: 100%;
  height: 100%;
  object-fit: contain;
  display:block;
}

.lb__meta{
  padding: 14px 18px 16px;
  border-top: 1px solid rgba(0,180,255,0.14);
  background: rgba(11,16,34,0.72);
}
.lb__title{
  font-weight: 850;
  color: var(--primary);
}
.lb__sub{
  margin-top: 2px;
  color: var(--muted);
  font-weight: 850;
  font-size: .95rem;
}


}


footer .container {
  position: relative;
  padding-bottom: 24px; /* чтобы подпись не наезжала на другой контент футера */
}

.footer-credit {
  position: absolute;
  right: 0;
  bottom: 0;
  font-size: 12px;
  opacity: 0.75;
  white-space: nowrap;
}

/* PARTNERS (title like screenshot) */
.partners-head{
  text-align: center;
  margin-bottom: 26px;
}

.badge--mini{
  padding: 8px 12px;
  font-size: .85rem;
  margin-bottom: 14px;
}

.partners-title{
  margin: 0;
  font-size: clamp(2.2rem, 4.8vw, 3.4rem);
  font-weight: 850;
  letter-spacing: .2px;
  color: var(--text);
}

.partners-line{
  width: 78px;
  height: 3px;
  border-radius: 999px;
  margin: 14px auto 0;
  background: var(--primary);
  box-shadow: 0 10px 26px rgba(0, 180, 255, .22);
}

/* PARTNERS grid/cards */
.partners-grid{
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 16px;
  align-items: stretch;
}

.partner-card{
  height: 128px;
  border-radius: var(--rXL);
  background: var(--card);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  position: relative;
  overflow: hidden;

  display: flex;
  align-items: center;
  justify-content: center;

  cursor: pointer;
  text-decoration: none;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
}

.partner-card::before{
  content: "";
  position: absolute;
  left: 0; right: 0; top: 0;
  height: 4px;
  background: var(--grad);
  opacity: .95;
}

/* Было: grayscale + brightness, из-за этого лого серые */
.partner-card img{
  width: min(70%, 190px);
  max-height: 72%;
  height: auto;
  object-fit: contain;

  opacity: 1;
  filter: none;

  transition: opacity .2s ease, transform .2s ease;
}

.partner-card:hover{
  background: var(--card2);
  transform: translateY(-6px);
  box-shadow: var(--shadowlg);
}

/* Hover — только чуть “живее”, но без смены цвета */
.partner-card:hover img{
  opacity: 1;
  filter: none;
  transform: scale(1.02);
}

.partner-card:focus-visible{
  outline: none;
  box-shadow: 0 0 0 3px rgba(0,180,255,0.28), var(--shadowlg);
  transform: translateY(-4px);
}

@media (max-width: 980px){
  .partners-grid{ grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 640px){
  .partners-grid{ grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .partner-card{ height: 110px; }
}




/* Металлический перелив - СКРЫТ по умолчанию */
.card::before,
.pv2-card::before,
.partner-card::before,
.kpi::before,
.step::before,
.pv2-item::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 300%;
  height: 100%;
  background: linear-gradient(
    115deg,
    transparent 0%,
    rgba(255, 255, 255, 0) 30%,
    rgba(255, 255, 255, 0.1) 45%,
    rgba(255, 255, 255, 0.5) 50%,
    rgba(255, 255, 255, 0.1) 55%,
    rgba(255, 255, 255, 0) 70%,
    transparent 100%
  );
  pointer-events: none;
  z-index: 2;
  display: none;
}

/* Glow сзади синий - скрыт по умолчанию */
.card::after,
.pv2-card::after,
.partner-card::after,
.kpi::after,
.step::after,
.pv2-item::after {
  content: "";
  position: absolute;
  inset: -30px;
  background: radial-gradient(ellipse 70% 90% at 30% 95%,
    rgba(0,190,220,.30),
    transparent 60%);
  filter: blur(28px);
  opacity: 0;
  transition: opacity .3s ease;
  z-index: 0;
}

/* Контент поверх */
.card > *,
.pv2-card > *,
.partner-card > *,
.kpi > *,
.step > *,
.pv2-item > * {
  position: relative;
  z-index: 3;
}

/* HOVER: Блик появляется + приближение + свечение */
.card:hover,
.pv2-card:hover,
.partner-card:hover,
.kpi:hover,
.step:hover,
.pv2-item:hover {
  transform: scale(1.05);
  box-shadow: 
    0 0 30px 5px rgba(255, 255, 255, 0.1),
    0 32px 100px rgba(0,0,0,.58),
    inset 0 1px 0 rgba(255,255,255,.20),
    inset 0 -1px 0 rgba(0,0,0,.45);
  border-color: rgba(255,255,255,.30);
}

/* Блик проигрывается ТОЛЬКО ОДИН РАЗ при hover и исчезает */
.card:hover::before,
.pv2-card:hover::before,
.partner-card:hover::before,
.kpi:hover::before,
.step:hover::before,
.pv2-item:hover::before {
  display: block;
  animation: slideShineOnce 0.9s ease-in-out forwards;
}

/* Анимация блика: слева→справа И УХОДИТ ЗА ГРАНИЦУ */
@keyframes slideShineOnce {
  0% {
    left: -100%;
  }
  100% {
    left: 150%;
  }
}

/* Glow включается при hover */
.card:hover::after,
.pv2-card:hover::after,
.partner-card:hover::after,
.kpi:hover::after,
.step:hover::after,
.pv2-item:hover::after {
  opacity: 1;
}

/* Убираем все отступы перед галереей */
.gallery-section {
  padding: 0;
  margin: 0;
}

/* Заголовок внутри слайдера */
.slider-header {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  padding: 40px 24px;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0) 100%);
  z-index: 20;
  text-align: center;
}

.slider-header h2 {
  margin: 0;
  color: var(--primary);
  font-size: 2rem;
  font-weight: 850;
  letter-spacing: .2px;
}

/* Слайдер с полной высотой */
.slider {
  position: relative;
  width: 100vw;
  margin-left: calc(-50vw + 50%);
  margin-right: calc(-50vw + 50%);
  border-radius: 0;
  overflow: hidden;
  box-shadow: var(--shadowlg);
  background: linear-gradient(135deg, rgba(0,180,255,0.22), rgba(124,92,255,0.18));
  border: 1px solid rgba(0,180,255,0.18);
  aspect-ratio: 16 / 9;
  z-index: 1;
}

.slides {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity .5s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.slide.active { 
  opacity: 1; 
}

.slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.slide-cap {
  position: absolute;
  left: 16px;
  right: 16px;
  bottom: 16px;
  color: #fff;
  text-shadow: 0 2px 6px rgba(0,0,0,0.6);
  z-index: 10;
}

.slide-cap strong {
  display: block;
  font-size: 1.2rem;
  font-weight: 850;
}

.slide-cap span {
  display: block;
  margin-top: .25rem;
  opacity: 0.9;
}

/* Кнопки слайдера */
.slider-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 40px;
  height: 40px;
  border-radius: 999px;
  border: 1px solid rgba(0,180,255,0.20);
  background: rgba(5,8,20,0.70);
  color: #fff;
  font-size: 1.8rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background .2s ease, transform .2s ease;
  z-index: 15;
}

.slider-btn.prev { left: 10px; }
.slider-btn.next { right: 10px; }

.slider-btn:hover {
  background: rgba(5,8,20,0.90);
  transform: translateY(-50%) scale(1.05);
}

/* Точки навигации */
.slider-dots {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 10px;
  display: flex;
  justify-content: center;
  gap: 8px;
  z-index: 15;
}

.slider-dots .dot {
  width: 9px;
  height: 9px;
  border-radius: 999px;
  border: none;
  background: rgba(255,255,255,0.35);
  cursor: pointer;
  padding: 0;
  transition: all .2s ease;
}

.slider-dots .dot:hover {
  background: rgba(255,255,255,0.55);
}

.slider-dots .dot.active { 
  background: #fff;
  transform: scale(1.15);
}

/* На главной - полноширинный */
.gallery-section--hero {
  padding: 0;
  margin: 0;
}

.gallery-section--hero .slider {
  position: relative;
  width: 100vw;
  margin-left: calc(-50vw + 50%);
  margin-right: calc(-50vw + 50%);
  border-radius: 0;
  overflow: hidden;
  box-shadow: var(--shadowlg);
  background: linear-gradient(135deg, rgba(0,180,255,0.22), rgba(124,92,255,0.18));
  border: 1px solid rgba(0,180,255,0.18);
  aspect-ratio: 16 / 9;
  z-index: 1;
}

/* На странице галереи - контейнер */
.gallery-section--page {
  padding: 42px 0;
  margin: 0;
}

.gallery-section--page .slider {
  position: relative;
  width: 100%;
  max-width: 900px;
  margin: 0 auto;
  border-radius: 24px;
  overflow: hidden;
  box-shadow: var(--shadowlg);
  background: linear-gradient(135deg, rgba(0,180,255,0.22), rgba(124,92,255,0.18));
  border: 1px solid rgba(0,180,255,0.18);
  aspect-ratio: 16 / 9;
  z-index: 1;
}

/* ===== GALLERY GRID ===== */
.gallery {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 16px;
  margin-top: 22px;
}

.gallery-grid9 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-top: 22px;
}

.gallery-grid9 .tile {
  grid-column: auto;
  height: 190px;
  border-radius: 18px;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(0,180,255,0.14);
  box-shadow: var(--shadow);
  background: linear-gradient(135deg, rgba(0,180,255,0.22), rgba(124,92,255,0.18));
}

.gallery-grid9 .tile img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .35s ease, filter .35s ease;
  will-change: transform;
}

.gallery-grid9 .tile:hover img {
  transform: scale(1.08);
  filter: saturate(1.05) contrast(1.02);
}

.gallery-grid9 .tile::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.45);
  opacity: 0;
  transition: opacity .25s ease;
  z-index: 2;
}

.gallery-grid9 .tile:hover::before { 
  opacity: 1; 
}

.tile-viewbtn {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%) scale(.96);
  z-index: 3;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 10px 16px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  color: #07101a;
  border: 1px solid rgba(0,0,0,0.18);
  font-weight: 850;
  font-size: .95rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity .18s ease, transform .18s ease;
  box-shadow: 0 18px 40px -22px rgba(0,0,0,0.75);
  user-select: none;
}

.tile-viewbtn svg { 
  width: 18px; 
  height: 18px; 
  display: block; 
}

.gallery-grid9 .tile:hover .tile-viewbtn {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}

@media (hover: none) {
  .tile-viewbtn { opacity: 1; }
  .gallery-grid9 .tile::before { opacity: .25; }
}

@media (max-width: 980px) {
  .gallery-grid9 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .gallery-grid9 .tile { height: 220px; }
}

@media (max-width: 640px) {
  .gallery-grid9 { grid-template-columns: repeat(1, minmax(0, 1fr)); }
  .gallery-grid9 .tile { height: 240px; }
}

/* ===== PAGER ===== */
.gallery-pager {
  margin-top: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
}

.gallery-pager__pages {
  display: flex;
  gap: 10px;
  align-items: center;
  justify-content: center;
}

.gallery-page {
  width: 40px;
  height: 40px;
  padding: 0;
  border-radius: 999px;
  font-weight: 850;
}

.gallery-page.is-active {
  background: var(--grad);
  border-color: rgba(0,180,255,0.24);
  color: #07101a;
  box-shadow: var(--shadow);
}

.gallery-pager__btn:disabled,
.gallery-page:disabled {
  opacity: .45;
  cursor: not-allowed;
  transform: none !important;
}

.gallery-pager__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  line-height: 1;
}

.gallery-pager__btn .chev {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  font-size: 18px;
  transform: translateY(-1px);
}

/* ===== LIGHTBOX ===== */
.lb {
  position: fixed;
  inset: 0;
  z-index: 999;
  display: none;
}

.lb.is-open {
  display: block;
}

.lb__overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.72);
  backdrop-filter: blur(8px);
  opacity: 0;
  transition: opacity .22s ease;
}

.lb__card {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%) scale(.985);
  width: min(1150px, calc(100vw - 26px));
  border-radius: var(--rXL);
  background: rgba(11,16,34,0.35);
  border: 1px solid rgba(0,180,255,0.16);
  box-shadow: var(--shadowlg);
  overflow: hidden;
  opacity: 0;
  transition: opacity .22s ease, transform .22s ease;
}

.lb.is-open .lb__overlay {
  opacity: 1;
}

.lb.is-open .lb__card {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}

.lb__top {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12px 12px;
  background: rgba(5,8,20,0.45);
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.lb__brand {
  font-weight: 850;
  letter-spacing: .6px;
  font-size: 1.15rem;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  user-select: none;
}

.lb__close {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,0.14);
  background: rgba(0,0,0,0.35);
  color: rgba(255,255,255,0.92);
  cursor: pointer;
  font-weight: 850;
  font-size: 18px;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform .15s ease, background .15s ease, border-color .15s ease;
}

.lb__close:hover {
  transform: translateY(calc(-50% - 1px));
  background: rgba(0,0,0,0.55);
  border-color: rgba(0,180,255,0.22);
}

.lb__media {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: rgba(5,8,20,0.50);
}

@supports not (aspect-ratio: 16 / 9) {
  .lb__media {
    height: min(64vh, 620px);
  }
}

.lb__media img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.lb__arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  height: 42px;
  padding: 0 16px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.85);
  border: 1px solid rgba(11, 9, 82, 0.35);
  color: #ffffff;
  cursor: pointer;
  z-index: 2;
  user-select: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: transform .15s ease, background .15s ease, box-shadow .15s ease;
  box-shadow: 0 16px 40px -26px rgba(0,0,0,0.85);
}

.lb__arrow:hover {
  background: rgba(53, 49, 49, 0.452);
  transform: translateY(-50%) scale(1.04);
}

.lb__arrow span {
  display: block;
  font-size: 22px;
  font-weight: 850;
  line-height: 1;
  transform: translateY(-1px);
}

.lb__arrow--left {
  left: 16px;
}

.lb__arrow--right {
  right: 16px;
}

.lb__bottom {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 12px 12px 14px;
  background: rgba(5,8,20,0.45);
  border-top: 1px solid rgba(255,255,255,0.08);
}

.lb__count {
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(0,0,0,0.45);
  border: 1px solid rgba(255,255,255,0.10);
  color: rgba(255,255,255,0.92);
  font-weight: 850;
  font-size: .92rem;
  user-select: none;
}

@media (max-width: 640px) {
  .lb__arrow {
    width: 42px;
    height: 42px;
  }
  .lb__arrow span {
    font-size: 26px;
  }
  .lb__close {
    width: 42px;
    height: 42px;
  }
  .lb__brand {
    font-size: 1.05rem;
  }
}

/* ========== ГАЛЕРЕЯ НА ГЛАВНОЙ (HERO) ========== */
.gallery-section--hero {
  padding: 0;
  margin: 0;
}

.gallery-section--hero .slider {
  position: relative;
  width: 100vw;
  margin-left: calc(-50vw + 50%);
  margin-right: calc(-50vw + 50%);
  border-radius: 0;
  overflow: hidden;
  box-shadow: var(--shadowlg);
  background: linear-gradient(135deg, rgba(0,180,255,0.22), rgba(124,92,255,0.18));
  border: 1px solid rgba(0,180,255,0.18);
  aspect-ratio: 16 / 9;
  z-index: 1;
}

/* ✅ КОНТЕНТ ПО СЕРЕДИНЕ */
.slider-content {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
  text-align: center;
}



.slider-content__inner {
  max-width: 720px;
  padding: 0 24px;
}

.slider-content__title {
  font-size: clamp(2.4rem, 5.2vw, 3.6rem);
  line-height: 1.08;
  font-weight: 850;
  margin: 0 0 12px 0;
  background: linear-gradient(90deg, var(--primary) 0%, var(--primary2) 55%, var(--accent) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.slider-content__subtitle {
  font-size: clamp(1.2rem, 3vw, 1.6rem);
  color: rgba(255,255,255,0.92);
  font-weight: 850;
  margin: 0 0 16px 0;
  text-shadow: 0 2px 10px rgba(0,0,0,0.6);
}

.slider-content__text {
  font-size: 1rem;
  color: var(--muted);
  font-weight: 850;
  margin: 0 0 24px 0;
  text-shadow: 0 2px 8px rgba(0,0,0,0.5);
}

.slider-content .btn {
  margin-top: 12px;
}

/* Слайды остаются, но выглядят как фон */
.gallery-section--hero .slides {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.gallery-section--hero .slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity .5s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.gallery-section--hero .slide.active {
  opacity: 1;
}

.gallery-section--hero .slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  filter: brightness(0.65) saturate(1.1);  /* ✅ ЗАТЕМНЕНИЕ ДЛЯ ЧИТАЕМОСТИ ТЕКСТА */
}

/* Кнопки слайдера */
.gallery-section--hero .slider-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 40px;
  height: 40px;
  border-radius: 999px;
  border: 1px solid rgba(0,180,255,0.20);
  background: rgba(5,8,20,0.70);
  color: #fff;
  font-size: 1.8rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background .2s ease, transform .2s ease;
  z-index: 15;
}

.gallery-section--hero .slider-btn.prev { left: 10px; }
.gallery-section--hero .slider-btn.next { right: 10px; }

.gallery-section--hero .slider-btn:hover {
  background: rgba(5,8,20,0.90);
  transform: translateY(-50%) scale(1.05);
}

/* Точки навигации */
.gallery-section--hero .slider-dots {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 10px;
  display: flex;
  justify-content: center;
  gap: 8px;
  z-index: 15;
}

.gallery-section--hero .slider-dots .dot {
  width: 9px;
  height: 9px;
  border-radius: 999px;
  border: none;
  background: rgba(255,255,255,0.35);
  cursor: pointer;
  padding: 0;
  transition: all .2s ease;
}

.gallery-section--hero .slider-dots .dot:hover {
  background: rgba(255,255,255,0.55);
}

.gallery-section--hero .slider-dots .dot.active {
  background: #fff;
  transform: scale(1.15);
}

@media (max-width: 640px) {
  .slider-content__title {
    font-size: 1.8rem;
  }
  .slider-content__subtitle {
    font-size: 1rem;
  }
  .slider-content__text {
    font-size: 0.9rem;
  }
}

.events-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 16px;
    margin-top: 16px;
}

.event-card {
    background: var(--card);
    border: 1px solid var(--border);
    box-shadow: var(--shadow);
    border-radius: var(--rXL);
    padding: 18px 16px;
    text-align: left;
}

.event-card h3 {
    margin-bottom: 8px;
    color: var(--primary);
}

.event-card p {
    margin: 4px 0;
    color: var(--muted);
    font-weight: 850;
}

.no-events,
.loading,
.error {
    text-align: center;
    color: var(--muted);
}
.rules {
  font-weight: 800;
  margin: 4px 0;
}

.rules-card{
  background: rgba(17, 60, 153, 0.281);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  border-radius: var(--rXL);
  padding: 12px 16px;
  text-align: center;
  max-width: 300px;
  width: 100%;
  margin: 24px auto;
  box-sizing: border-box;
}
/* TEAM: big panels like screenshot + 3 per row */
.grid.team-grid{
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 28px;
  align-items: stretch;
}

/* kill old 12-col spans inside team */
.grid.team-grid .col-4{
  grid-column: auto;
}

/* make staff cards look like big info panels */
.grid.team-grid .card.card-staff{
  padding: 32px 28px;
  text-align: center;
}

/* remove the small top accent line (more like the screenshot panels) */
.grid.team-grid .card.card-staff::before{
  display: none;
}

/* make role text normal (not uppercase) */
.grid.team-grid .card.card-staff .staff-role{
  text-transform: none;
  letter-spacing: 0;
  font-size: 1rem;
  line-height: 1.65;
  margin-top: 10px;
}

/* responsive */
@media (max-width: 980px){
  .grid.team-grid{ grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px){
  .grid.team-grid{ grid-template-columns: 1fr; }
}

.form-status{
  display:none;
  margin: 12px 0 0;
  padding: 12px 14px;
  border-radius: 12px;
  font-size: 14px;
  line-height: 1.3;
  border: 1px solid transparent;
}
.form-status.is-success{
  display:block;
  background: rgba(34,197,94,.12);
  border-color: rgba(34,197,94,.35);
  color: #b7f7c9;
}
.form-status.is-error{
  display:block;
  background: rgba(239,68,68,.12);
  border-color: rgba(239,68,68,.35);
  color: #ffd1d1;
}

.support-form button[disabled]{ opacity:.7; cursor:not-allowed; }

.form-hint{
  margin: 10px 0 0;
  font-size: 13px;
  opacity: .75;
}
