

/* =============================================
   SHOWCASE — DESIGN SYSTEM
   ============================================= */

:root {
  /* Spacing 8px grid */
  --s1: 4px;
  --s2: 8px;
  --s3: 16px;
  --s4: 24px;
  --s5: 32px;
  --s6: 48px;
  --s7: 64px;
  --s8: 96px;
  --s9: 128px;

  /* Typography */
  --t-xs:   12px;
  --t-sm:   14px;
  --t-base: 16px;
  --t-md:   18px;
  --t-lg:   22px;
  --t-xl:   28px;
  --t-2xl:  36px;
  --t-3xl:  48px;
  --t-4xl:  64px;
  --t-hero: 80px;

  /* Colors */
  --bg:        #080810;
  --bg-2:      #0d0d18;
  --bg-3:      #12121f;
  --surface:   #181828;
  --border:    rgba(77,142,255,0.12);
  --border-hi: rgba(77,142,255,0.24);
  --text:      #eeeef5;
  --text-muted:#7878a0;
  --accent:    #2952f5;
  --accent-2:  #4d8eff;
  --accent-3:  #e8c547;
  --font-head: 'Roboto', sans-serif;
  --accent-hover: #3d66ff;
  --glow: rgba(77,142,255,0.22);

  /* Radius */
  --r-sm: 6px;
  --r-md: 12px;
  --r-lg: 20px;

  /* Transitions */
  --tr: 0.3s ease;
  --tr-fast: 0.15s ease;

  /* Container */
  --container: 1200px;
}

/* Rubik — навигация и кнопки */
.btn,
.nav__link,
.logo,
.widget__btn,
.widget__header {
  font-family: 'Rubik', sans-serif;
}

/* Roboto — крупные заголовки */
h1, h2, h3,
.hero__title,
.section-title,
.cta-section__title,
.stats__num {
  font-family: 'Roboto', sans-serif;
  letter-spacing: 0.01em;
}

/* Интерфейсные элементы */
.logo,
.stats__num,
.cycle__num,
.equip-card__title,
.event-card__title,
.lightbox__title,
.contact-popup__title,
.widget__header,
.btn {
  letter-spacing: 0.04em;
}

/* =============================================
   RESET & BASE
   ============================================= */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  scrollbar-width: none;
}
html::-webkit-scrollbar { display: none; }

body {
  font-family: 'Rubik', sans-serif;
  font-size: var(--t-base);
  line-height: 1.6;
  background: var(--bg);
  color: var(--text);
  overflow-x: hidden;
}

/* Grain overlay */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: 9999;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='1'/%3E%3C/svg%3E");
  background-size: 180px 180px;
  opacity: 0.028;
}

img { display: block; width: 100%; height: 100%; object-fit: cover; }
a { text-decoration: none; color: inherit; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }
input, select, textarea { font-family: inherit; }

/* =============================================
   UTILITIES
   ============================================= */
.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--s5);
}

.section-label {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: var(--t-xs);
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent-2);
  margin-bottom: var(--s4);
}

.section-label::before {
  content: '';
  display: inline-block;
  width: 24px;
  height: 1px;
  background: var(--accent-2);
  opacity: 0.7;
}

.cta-section .section-label::after {
  content: '';
  display: inline-block;
  width: 24px;
  height: 1px;
  background: var(--accent-2);
  opacity: 0.7;
}

.section-title {
  font-family: 'Roboto', sans-serif;
  font-size: clamp(36px, 4vw, 56px);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.1;
  margin-bottom: var(--s6);
  color: var(--text);
}

.section-title em {
  font-style: italic;
  color: var(--accent-2);
}

/* =============================================
   BUTTONS
   ============================================= */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--s2);
  font-family: 'Rubik', sans-serif;
  font-weight: 500;
  font-size: var(--t-sm);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border-radius: var(--r-sm);
  padding: 0 var(--s6);
  height: 54px;
  position: relative;
  overflow: hidden;
  transition: color var(--tr), border-color var(--tr), transform var(--tr-fast), box-shadow var(--tr);
  white-space: nowrap;
}

.btn::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(255,255,255,0.06);
  opacity: 0;
  transition: opacity var(--tr);
}
.btn:hover::after { opacity: 1; }
.btn:active { transform: scale(0.97); }

.btn--accent {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 0 0 0 var(--glow);
}
.btn--accent:hover {
  background: var(--accent-hover);
  box-shadow: 0 4px 32px var(--glow);
}

.btn--outline {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border-hi);
}
.btn--outline:hover {
  border-color: var(--accent-2);
  color: var(--accent-2);
}

.btn--lg { height: 56px; font-size: var(--t-md); padding: 0 var(--s6); }
.btn--sm { height: 40px; font-size: var(--t-sm); padding: 0 var(--s4); }

.btn--glass {
  background: rgba(77,142,255,0.12);
  color: var(--text);
  border: 1px solid rgba(77,142,255,0.28);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 2px 16px rgba(77,142,255,0.12), inset 0 1px 0 rgba(255,255,255,0.08);
}
.btn--glass:hover {
  background: rgba(77,142,255,0.22);
  border-color: rgba(77,142,255,0.5);
  box-shadow: 0 4px 28px rgba(77,142,255,0.22), inset 0 1px 0 rgba(255,255,255,0.12);
}

/* =============================================
   HEADER
   ============================================= */
.header {
  position: sticky;
  top: 0;
  z-index: 200;
  background: var(--bg);
  border-bottom: 1px solid rgba(255,255,255,0.06);
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 var(--s7);
  height: 80px;
}

.logo {
  font-family: 'Rubik', sans-serif;
  font-weight: 400;
  font-size: var(--t-base);
  letter-spacing: 0.08em;
  color: var(--text);
  white-space: nowrap;
  filter: drop-shadow(0 0 12px rgba(77,142,255,0.45)) drop-shadow(0 2px 6px rgba(0,0,0,0.7));
  opacity: 0.85;
  transition: opacity var(--tr), filter var(--tr);
}
.logo:hover {
  opacity: 1;
  filter: drop-shadow(0 0 18px rgba(77,142,255,0.65)) drop-shadow(0 2px 6px rgba(0,0,0,0.7));
}

.logo__img {
  display: block;
  height: 24px;
  width: auto;
}

.nav {
  display: flex;
  align-items: center;
  justify-content: center;
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
}

.nav__link {
  font-size: var(--t-sm);
  color: var(--text);
  transition: color var(--tr), text-shadow var(--tr);
  padding: 0 var(--s4);
  position: relative;
}

.nav__link + .nav__link::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 1px;
  height: 20px;
  background: linear-gradient(to bottom, transparent, rgba(255,255,255,0.15) 50%, transparent);
}

.nav__link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: var(--s4);
  right: var(--s4);
  height: 1px;
  background: var(--accent-2);
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 0.25s ease;
}

.nav__link:hover { color: var(--text); }

.nav__link.is-active {
  color: var(--accent-2);
  text-shadow: 0 0 12px rgba(77, 142, 255, 0.5);
}
.nav__link.is-active::after {
  transform: scaleX(1);
}

/* =============================================
   HERO
   ============================================= */
.hero {
  position: relative;
  height: calc(100vh - 80px);
  overflow: hidden;
  display: flex;
  align-items: flex-end;
}

.hero__video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 80%;
  display: block;
}

.hero__overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to right, rgba(8,8,16,0.92) 0%, rgba(8,8,16,0.55) 50%, rgba(8,8,16,0.1) 100%),
    linear-gradient(to top, rgba(8,8,16,0.7) 0%, transparent 40%);
}

.hero__caption {
  position: relative;
  z-index: 10;
  padding: 0 var(--s5) var(--s8);
  max-width: 660px;
  display: flex;
  flex-direction: column;
  gap: var(--s4);
}

.hero__label {
  font-size: var(--t-xs);
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent-2);
  display: flex;
  align-items: center;
  gap: 10px;
}

.hero__label::before {
  content: '';
  display: inline-block;
  width: 24px;
  height: 1px;
  background: var(--accent-2);
  opacity: 0.7;
}

.hero__title {
  font-family: 'Roboto', sans-serif;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.1;
  color: var(--text);
  margin: 0;
  display: inline-block;
  text-shadow: 2px 3px 12px rgba(0,0,0,0.6);
}

.hero__title-l1 {
  display: block;
  font-size: clamp(40px, 4.8vw, 68px);
}

.hero__title-l2 {
  display: block;
  font-size: clamp(29px, 3.16vw, 48px);
}

.hero__sub {
  font-size: var(--t-base);
  color: #8899bb;
  line-height: 1.6;
  max-width: 620px;
  white-space: nowrap;
}

.hero__geo {
  display: block;
  font-size: var(--t-sm);
  color: #8899bb;
  opacity: 0.55;
  margin-top: var(--s2);
}


/* =============================================
   STATS
   ============================================= */
.sticky-scene {
  position: relative;
}

.stats-sticky-wrap {
  position: sticky;
  top: 0;
}

.stats {
  padding: 120px 0;
  background: var(--bg-2);
  position: relative;
  overflow: hidden;
}

.stats__waves {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}

.stats__waves-svg {
  position: absolute;
  left: 0;
  width: 100%;
  height: 55%;
}

.stats__waves-svg--bottom {
  bottom: 0;
}

.stats__waves-svg--top {
  top: 0;
  transform: scaleY(-1);
}

.stats__wave {
  fill: none;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-dasharray: 1;
}

/* Нижние — справа налево: начинают с -1 */
.stats__wave--1 { stroke: rgba(77,142,255,0.18); stroke-dashoffset: -1; }
.stats__wave--2 { stroke: rgba(77,142,255,0.10); stroke-dashoffset: -1; }
.stats__wave--3 { stroke: rgba(77,142,255,0.07); stroke-dashoffset: -1; }

/* Верхние — слева направо: начинают с 1 */
.stats__wave--4 { stroke: rgba(77,142,255,0.09); stroke-dashoffset: 1; }
.stats__wave--5 { stroke: rgba(77,142,255,0.05); stroke-dashoffset: 1; }
.stats__wave--6 { stroke: rgba(77,142,255,0.035); stroke-dashoffset: 1; }

.stats__waves.is-drawn .stats__wave--1 {
  animation: wave-draw-rtl 1.4s cubic-bezier(0.4,0,0.2,1) forwards,
             wave-drift 8s ease-in-out 1.4s infinite alternate;
}
.stats__waves.is-drawn .stats__wave--2 {
  animation: wave-draw-rtl 1.4s cubic-bezier(0.4,0,0.2,1) 0.35s forwards,
             wave-drift 11s ease-in-out 1.75s infinite alternate-reverse;
}
.stats__waves.is-drawn .stats__wave--3 {
  animation: wave-draw-rtl 1.4s cubic-bezier(0.4,0,0.2,1) 0.7s forwards,
             wave-drift 14s ease-in-out 2.1s infinite alternate;
}
.stats__waves.is-drawn .stats__wave--4 {
  animation: wave-draw-ltr 1.4s cubic-bezier(0.4,0,0.2,1) 0.2s forwards,
             wave-drift 10s ease-in-out 1.6s infinite alternate-reverse;
}
.stats__waves.is-drawn .stats__wave--5 {
  animation: wave-draw-ltr 1.4s cubic-bezier(0.4,0,0.2,1) 0.55s forwards,
             wave-drift 13s ease-in-out 1.95s infinite alternate;
}
.stats__waves.is-drawn .stats__wave--6 {
  animation: wave-draw-ltr 1.4s cubic-bezier(0.4,0,0.2,1) 0.9s forwards,
             wave-drift 16s ease-in-out 2.3s infinite alternate-reverse;
}

@keyframes wave-draw-ltr {
  from { stroke-dashoffset: 1; }
  to   { stroke-dashoffset: 0; }
}

@keyframes wave-draw-rtl {
  from { stroke-dashoffset: -1; }
  to   { stroke-dashoffset: 0; }
}

@keyframes wave-drift {
  0%   { transform: translateX(0)   translateY(0); }
  100% { transform: translateX(-40px) translateY(8px); }
}

.stats .container { position: relative; z-index: 1; }

.stats__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--s5);
  margin-bottom: var(--s7);
}

.stats__item {
  text-align: center;
  padding: var(--s7) var(--s5);
  border: 1px solid var(--border);
  border-top: 1px solid var(--border-hi);
  border-radius: var(--r-lg);
  background: linear-gradient(160deg, var(--surface) 0%, rgba(77,142,255,0.04) 100%);
  position: relative;
  overflow: hidden;
  transition: border-color var(--tr), box-shadow var(--tr);
}

.stats__item:hover {
  border-color: var(--border-hi);
  box-shadow: 0 0 40px rgba(77,142,255,0.08);
}

.stats__item::before {
  content: '';
  position: absolute;
  top: 0; left: 20%; right: 20%;
  height: 1px;
  background: linear-gradient(to right, transparent, var(--accent-2), transparent);
  opacity: 0.4;
}

.stats__num {
  display: block;
  font-family: 'Roboto', sans-serif;
  font-size: clamp(48px, 5vw, 72px);
  font-weight: 400;
  color: var(--text);
  line-height: 1;
  margin-bottom: var(--s3);
  letter-spacing: -0.03em;
}

.stats__label {
  font-size: var(--t-xs);
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-weight: 400;
}

/* =============================================
   MARQUEE
   ============================================= */
.trust {
  text-align: center;
}

.trust__label {
  font-size: var(--t-sm);
  color: var(--text-muted);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: var(--s4);
}

.marquee {
  overflow: hidden;
  position: relative;
}

.marquee::before,
.marquee::after {
  content: '';
  position: absolute;
  top: 0; bottom: 0;
  width: 120px;
  z-index: 2;
  pointer-events: none;
}
.marquee::before { left: 0; background: linear-gradient(to right, var(--bg-2), transparent); }
.marquee::after  { right: 0; background: linear-gradient(to left, var(--bg-2), transparent); }

.marquee__track {
  display: flex;
  gap: var(--s7);
  width: max-content;
  animation: marquee 20s linear infinite;
}

.marquee__item {
  font-family: 'Rubik', sans-serif;
  font-size: var(--t-lg);
  font-weight: 700;
  color: var(--text-muted);
  white-space: nowrap;
  opacity: 0.5;
  letter-spacing: 0.05em;
}



@keyframes marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* =============================================
   CYCLE (ПОЛНЫЙ ЦИКЛ)
   ============================================= */
.cycle {
  position: relative;
  padding: 140px 0;
  overflow: hidden;
}

.cycle__bg-video {
  position: absolute;
  top: -8%;
  left: 0;
  width: 100%;
  height: 116%;
  object-fit: cover;
  z-index: 0;
}

.cycle__overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.72);
  z-index: 1;
}

.cycle .container {
  position: relative;
  z-index: 2;
}

.cycle__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--s8);
  align-items: center;
}

.cycle__text .section-label { margin-bottom: var(--s3); }
.cycle__text .section-title { margin-bottom: var(--s4); }

.cycle__desc {
  color: var(--text-muted);
  font-size: var(--t-md);
  line-height: 1.7;
  margin-bottom: var(--s5);
}

.cycle__steps {
  display: flex;
  flex-direction: column;
  gap: var(--s3);
}

.cycle__step {
  display: flex;
  align-items: center;
  gap: var(--s4);
  padding: var(--s4);
  border: 1px solid rgba(77,142,255,0.18);
  border-radius: var(--r-md);
  background: rgba(77,142,255,0.07);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: border-color var(--tr), background var(--tr), box-shadow var(--tr);
}

.cycle__step:hover {
  border-color: rgba(77,142,255,0.35);
  background: rgba(77,142,255,0.13);
  box-shadow: 0 4px 24px rgba(77,142,255,0.12);
}

.cycle__num {
  font-family: 'Rubik', sans-serif;
  font-size: var(--t-xl);
  font-weight: 900;
  color: var(--accent);
  min-width: 48px;
}

.cycle__name {
  font-size: var(--t-base);
  font-weight: 500;
}

/* =============================================
   CASES — COVERFLOW
   ============================================= */
.cases {
  padding: var(--s9) 0;
  background: var(--bg-2);
  overflow: hidden;
  position: relative;
  border-radius: var(--r-lg) var(--r-lg) 0 0;
  box-shadow: 0 -24px 80px rgba(0,0,0,0.6);
}

.cases__beams {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}

.cases__beams-svg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.cases__beam {
  animation: beam-flicker 6s ease-in-out infinite alternate;
  transform-origin: center bottom;
}

.cases__beam--1 { animation-duration: 7s; animation-delay: 0s; }
.cases__beam--2 { animation-duration: 5s; animation-delay: 1.2s; }
.cases__beam--3 { animation-duration: 8s; animation-delay: 0.6s; }
.cases__beam--4 { animation-duration: 6s; animation-delay: 2s; }
.cases__beam--5 { animation-duration: 9s; animation-delay: 0.3s; }

@keyframes beam-flicker {
  0%   { opacity: 0.7; }
  50%  { opacity: 1; }
  100% { opacity: 0.55; }
}

.cases .container { position: relative; z-index: 1; }
.cases .cflow    { position: relative; z-index: 1; }

.cflow {
  position: relative;
  margin-top: var(--s6);
}

.cflow__stage {
  display: flex;
  align-items: center;
  justify-content: center;
  perspective: 1100px;
  height: 380px;
  position: relative;
}

.cflow__card {
  position: absolute;
  width: 280px;
  height: 340px;
  border-radius: 0;
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.55s cubic-bezier(0.4,0,0.2,1), opacity 0.55s ease, box-shadow 0.55s ease;
  will-change: transform, opacity;
  flex-shrink: 0;
  background: var(--surface);
}

.cflow__card.is-active {
  box-shadow: 0 32px 80px rgba(0,0,0,0.7), 0 0 0 1px var(--border-hi);
  z-index: 10;
}

.cflow__card:not(.is-active) {
  cursor: pointer;
}

.cflow__thumb {
  position: absolute;
  inset: 0;
  z-index: 2;
}

.cflow__thumb-bg {
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  background-color: var(--surface);
  transition: opacity 0.3s ease;
}

.cflow__play-icon {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.cflow__card.is-active .cflow__play-icon {
  opacity: 1;
}

.cflow__embed {
  position: absolute;
  inset: 0;
  z-index: 3;
}

.cflow__embed iframe {
  width: 100%;
  height: 100%;
  border: none;
  display: block;
}

.cflow__caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 4;
  padding: var(--s6) var(--s3) var(--s3);
  background: linear-gradient(to top, rgba(8,8,20,0.95) 0%, rgba(8,8,20,0.6) 60%, transparent 100%);
}

.cflow__title {
  display: block;
  font-size: var(--t-sm);
  font-weight: 500;
  color: var(--text);
  line-height: 1.4;
}

.cflow__arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  background: transparent;
  border: none;
  color: rgba(255,255,255,0.45);
  cursor: pointer;
  transition: color 0.25s ease, transform 0.25s ease;
  padding: 0;
}

.cflow__arrow--prev { left: 24px; }
.cflow__arrow--next { right: 24px; }

.cflow__arrow:hover {
  color: rgba(255,255,255,0.95);
  transform: translateY(-50%) scale(1.15);
}

.cflow__arrow:disabled {
  opacity: 0.2;
  pointer-events: none;
}

@media (max-width: 600px) {
  .cflow__arrow--prev { left: 8px; }
  .cflow__arrow--next { right: 8px; }
}

/* =============================================
   EQUIPMENT
   ============================================= */
.equipment {
  padding: var(--s9) 0;
  background: var(--bg-2);
  position: relative;
  overflow: hidden;
}

.equip__bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.equip__grid-svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.equip__glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  animation: equip-pulse 7s ease-in-out infinite alternate;
}

.equip__glow--1 {
  width: 500px; height: 500px;
  top: -100px; left: -80px;
  background: radial-gradient(circle, rgba(41,82,245,0.18) 0%, transparent 70%);
  animation-delay: 0s;
}

.equip__glow--2 {
  width: 400px; height: 400px;
  bottom: -80px; right: -60px;
  background: radial-gradient(circle, rgba(232,197,71,0.1) 0%, transparent 70%);
  animation-delay: 3.5s;
}

@keyframes equip-pulse {
  from { opacity: 0.6; transform: scale(1); }
  to   { opacity: 1;   transform: scale(1.12); }
}

/* Dense grid */
.equip__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 140px;
  grid-auto-flow: dense;
  gap: var(--s3);
}

.equip-card--wide { grid-column: span 2; }
.equip-card--tall { grid-row:    span 2; }

/* Card base */
.equip-card {
  padding: var(--s4);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  background: rgba(24,24,40,0.7);
  backdrop-filter: blur(8px);
  transition: border-color var(--tr), transform var(--tr), box-shadow var(--tr);
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

/* top accent line */
.equip-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(to right, transparent, var(--accent-2), transparent);
  opacity: 0;
  transition: opacity var(--tr);
}

/* subtle inner glow on hover */
.equip-card::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: var(--r-lg);
  background: radial-gradient(ellipse at 30% 30%, rgba(77,142,255,0.07) 0%, transparent 60%);
  opacity: 0;
  transition: opacity var(--tr);
}

.equip-card:hover {
  border-color: var(--border-hi);
  transform: translateY(-4px);
  box-shadow: 0 16px 40px rgba(8,8,20,0.7);
}

.equip-card:hover::before { opacity: 1; }
.equip-card:hover::after  { opacity: 1; }

/* Icon positioned top-right */
.equip-card__icon {
  position: absolute;
  top: var(--s4);
  right: var(--s4);
  width: 40px;
  height: 40px;
  color: var(--accent-2);
  opacity: 0.7;
  transition: opacity var(--tr), color var(--tr);
}

.equip-card:hover .equip-card__icon {
  opacity: 1;
  color: var(--accent-3);
}

.equip-card__icon svg {
  width: 100%;
  height: 100%;
}

.equip-card__body {
  position: relative;
  z-index: 1;
}

.equip-card__title {
  font-family: 'Rubik', sans-serif;
  font-size: var(--t-md);
  font-weight: 600;
  margin-bottom: 4px;
  color: var(--text);
}

.equip-card__desc {
  font-size: var(--t-sm);
  color: var(--text-muted);
  line-height: 1.45;
}

/* =============================================
   EVENTS (КАТЕГОРИИ)
   ============================================= */
.events {
  padding: var(--s9) 0 0;
  background: var(--bg-2);
  position: relative;
  overflow: hidden;
}

.events__glow {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 200px;
  pointer-events: none;
}

.fslider {
  position: relative;
  margin-top: var(--s6);
}

.fslider__track {
  position: relative;
  width: 100%;
  height: 560px;
  overflow: hidden;
}

.fslider__slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.8s ease;
  pointer-events: none;
}

.fslider__slide.is-active {
  opacity: 1;
  pointer-events: all;
}

.fslider__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.fslider__overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to right, rgba(8,8,16,0.92) 0%, rgba(8,8,16,0.7) 50%, rgba(8,8,16,0.4) 100%),
    linear-gradient(to top, rgba(8,8,16,0.7) 0%, transparent 50%);
}

.fslider__caption {
  position: absolute;
  bottom: var(--s8);
  left: 0;
  right: auto;
  display: flex;
  flex-direction: column;
  gap: var(--s3);
  max-width: 560px;
  margin-left: var(--s5);
  margin-right: 0;
}

.fslider__label {
  font-size: var(--t-xs);
  font-weight: 500;
  letter-spacing: 0.18em;
  color: var(--accent-2);
  font-family: 'Rubik', sans-serif;
}

.fslider__title {
  font-family: 'Roboto', sans-serif;
  font-size: clamp(36px, 4vw, 56px);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.1;
  color: var(--text);
}

.fslider__desc {
  font-size: var(--t-base);
  color: var(--text-muted);
  line-height: 1.6;
  max-width: 420px;
}

.fslider__controls {
  position: absolute;
  bottom: var(--s6);
  left: 0;
  right: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--s4);
  z-index: 10;
}

.fslider__dots {
  display: flex;
  gap: 12px;
  align-items: center;
}

.fslider__dot {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: transparent;
  border: 2px solid rgba(255,255,255,0.5);
  cursor: pointer;
  transition: border-color var(--tr), background var(--tr);
  flex-shrink: 0;
}

.fslider__dot.is-active {
  background: #fff;
  border-color: #fff;
}

.fslider__arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  background: transparent;
  border: none;
  color: rgba(255,255,255,0.45);
  cursor: pointer;
  transition: color 0.25s ease, transform 0.25s ease;
  padding: 0;
}
.fslider__arrow--prev { left: 24px; }
.fslider__arrow--next { right: 24px; }
.fslider__arrow:hover {
  color: rgba(255,255,255,0.95);
  transform: translateY(-50%) scale(1.15);
}


.event-card {
  position: relative;
  border-radius: var(--r-lg);
  overflow: hidden;
  cursor: pointer;
  background: var(--surface);
}

.event-card__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.event-card:hover .event-card__img {
  transform: scale(1.05);
}

.event-card__body {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to top, rgba(8,8,16,0.88) 0%, rgba(8,8,16,0.15) 45%, transparent 70%),
    radial-gradient(ellipse at center, transparent 40%, rgba(8,8,16,0.7) 100%);
  display: flex;
  align-items: flex-end;
  padding: var(--s5);
}

.event-card__title {
  font-family: 'Rubik', sans-serif;
  font-size: var(--t-lg);
  font-weight: 500;
  color: var(--text);
  letter-spacing: 0.01em;
}

.event-card__desc { display: none; }


/* =============================================
   КОМАНДА
   ============================================= */
.team {
  position: relative;
  min-height: 600px;
  border-top: 1px solid var(--border);
  overflow: hidden;
}

.team__photo-bg {
  position: absolute;
  top: 0; bottom: 0;
  left: 15%;
  right: -15%;
  background-size: cover;
  background-position: left 70%;
  background-repeat: no-repeat;
  opacity: 0;
  transition: opacity 0.5s ease;
}

.team__photo-bg.bg-loaded {
  opacity: 1;
}

.team__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to right,
    var(--bg)          0%,
    var(--bg)          25%,
    rgba(8,8,16,0.85)  40%,
    rgba(8,8,16,0.40)  55%,
    rgba(8,8,16,0.0)   70%
  );
}

.team__inner {
  position: relative;
  z-index: 1;
  padding-top: var(--s9);
  padding-bottom: var(--s9);
  display: flex;
  justify-content: flex-start;
  align-items: flex-start;
}

.team__text {
  max-width: 480px;
}

.team__text .section-title {
  margin-bottom: var(--s5);
}

.team__desc {
  font-size: var(--t-base);
  color: rgba(238,238,245,0.8);
  line-height: 1.7;
  margin-bottom: var(--s4);
}

.team__desc:last-child {
  margin-bottom: 0;
}

/* =============================================
   ОТЗЫВЫ
   ============================================= */
.reviews {
  padding: 140px 0;
  border-top: 1px solid var(--border);
  overflow: hidden;
  position: relative;
}

.reviews__waves {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}

.reviews__waves-svg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.reviews__wave {
  fill: none;
  stroke-width: 1.5;
  stroke-linecap: round;
}

.reviews__wave--1 {
  stroke: rgba(77,142,255,0.16);
  animation: wave-drift 9s ease-in-out infinite alternate-reverse;
}

.reviews__wave--2 {
  stroke: rgba(77,142,255,0.09);
  animation: wave-drift 13s ease-in-out infinite alternate;
}

.reviews__wave--3 {
  stroke: rgba(77,142,255,0.06);
  animation: wave-drift 17s ease-in-out infinite alternate-reverse;
}

.reviews__wave--4 {
  stroke: rgba(77,142,255,0.13);
  animation: wave-drift 11s ease-in-out infinite alternate;
}

.reviews__wave--5 {
  stroke: rgba(77,142,255,0.08);
  animation: wave-drift 15s ease-in-out infinite alternate-reverse;
}

.reviews__wave--6 {
  stroke: rgba(77,142,255,0.06);
  animation: wave-drift 19s ease-in-out infinite alternate;
}

.reviews .container { position: relative; z-index: 1; }

.reviews__slider-wrap {
  position: relative;
  margin-top: var(--s6);
  z-index: 1;
}

.reviews__track {
  display: flex;
  gap: var(--s5);
  padding: 0 10%;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-padding: 0 10%;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  cursor: grab;
  -webkit-mask-image: linear-gradient(to right, transparent 0%, black 10%, black 90%, transparent 100%);
  mask-image: linear-gradient(to right, transparent 0%, black 10%, black 90%, transparent 100%);
}

.reviews__track::-webkit-scrollbar { display: none; }
.reviews__track.is-grabbing { cursor: grabbing; }

.reviews__card {
  flex: 0 0 calc((80vw - 2 * var(--s5)) / 3.2);
  scroll-snap-align: start;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: border-color var(--tr), box-shadow var(--tr), filter 0.5s ease, opacity 0.5s ease;
  filter: blur(6px);
  opacity: 0.45;
}
.reviews__card.is-visible {
  filter: blur(0);
  opacity: 1;
}

.reviews__card:hover {
  border-color: var(--border-hi);
  box-shadow: 0 8px 40px rgba(8,8,20,0.5);
}

.reviews__photo-wrap {
  width: 100%;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
}

.reviews__photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
}

.reviews__body {
  padding: var(--s4) var(--s5) var(--s5);
  display: flex;
  flex-direction: column;
  gap: var(--s4);
  flex: 1;
}

.reviews__text {
  font-size: var(--t-sm);
  color: var(--text-muted);
  line-height: 1.7;
  flex: 1;
}

.reviews__author {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding-top: var(--s3);
  border-top: 1px solid var(--border);
}

.reviews__name {
  display: block;
  font-size: var(--t-base);
  font-weight: 600;
  color: var(--text);
  letter-spacing: 0.01em;
}

.reviews__role {
  display: block;
  font-size: var(--t-sm);
  color: var(--text-muted);
}

.reviews__dots {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  margin-top: var(--s5);
}

.reviews__dot {
  width: 10px;
  height: 10px;
  border-radius: 10px;
  background: var(--border);
  cursor: pointer;
  transition: width 0.3s ease, background 0.3s ease;
  flex-shrink: 0;
}

.reviews__dot.is-active {
  width: 32px;
  background: var(--accent);
}

.reviews__arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  background: transparent;
  border: none;
  color: rgba(255,255,255,0.45);
  cursor: pointer;
  transition: color 0.25s ease, transform 0.25s ease;
  padding: 0;
  pointer-events: all;
}
.reviews__arrow:hover {
  color: rgba(255,255,255,0.95);
  transform: translateY(-50%) scale(1.15);
}
.reviews__arrow--prev { left: 5%; }
.reviews__arrow--next { right: 5%; }

/* reviews arrows visible on all sizes via per-breakpoint rules */

@media (max-width: 900px) {

  .reviews__grid { grid-template-columns: 1fr; }
  .equip__grid {
    grid-template-columns: repeat(2, 1fr);
    grid-auto-rows: 130px;
  }
}

@media (max-width: 480px) {
  .equip__grid {
    grid-template-columns: 1fr;
    grid-auto-rows: 110px;
  }
  .equip-card--wide { grid-column: span 1; }
  .equip-card--tall { grid-row:    span 1; }

  .team {
    min-height: auto;
  }
  .team__photo-bg {
    background-position: center top;
  }
  .team__overlay {
    background: linear-gradient(
      to bottom,
      rgba(8,8,16,0.85) 0%,
      rgba(8,8,16,0.60) 60%,
      rgba(8,8,16,0.85) 100%
    );
  }
  .team__text {
    max-width: 100%;
  }
}

/* =============================================
   CTA SECTION
   ============================================= */
.cta-section {
  position: relative;
  padding: 160px 0;
  background: #05050e;
  overflow: hidden;
  text-align: center;
}

.cta-section__bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 60% at 50% 100%, rgba(77,142,255,0.14) 0%, transparent 70%);
  pointer-events: none;
}

.cta-laser {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
}

/* ДЫМ */
.cta-smoke {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.cta-smoke__puff {
  position: absolute;
  bottom: -80px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255,255,255,0.07) 0%, rgba(255,255,255,0.03) 50%, transparent 75%);
  animation: smoke-rise linear infinite;
  filter: blur(18px);
}

.cta-smoke__puff--1 { width: 320px; height: 320px; left: 5%;  animation-duration: 18s; animation-delay: 0s;   }
.cta-smoke__puff--2 { width: 260px; height: 260px; left: 28%; animation-duration: 22s; animation-delay: -6s;  }
.cta-smoke__puff--3 { width: 380px; height: 380px; left: 50%; animation-duration: 16s; animation-delay: -10s; }
.cta-smoke__puff--4 { width: 220px; height: 220px; left: 68%; animation-duration: 20s; animation-delay: -3s;  }
.cta-smoke__puff--5 { width: 300px; height: 300px; left: 82%; animation-duration: 25s; animation-delay: -14s; }

@keyframes smoke-rise {
  0%   { transform: translateY(0)   translateX(0)    scale(0.6); opacity: 0;   }
  10%  { opacity: 1; }
  60%  { transform: translateY(-55vh) translateX(30px)  scale(1.4); opacity: 0.7; }
  100% { transform: translateY(-110vh) translateX(-20px) scale(2.0); opacity: 0;   }
}

.cta-section::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(to right, transparent, rgba(77,142,255,0.9) 30%, #fff 50%, rgba(77,142,255,0.9) 70%, transparent);
  box-shadow: 0 0 18px 4px rgba(77,142,255,0.5), 0 0 60px 8px rgba(77,142,255,0.2);
  pointer-events: none;
}

.cta-section__inner { position: relative; z-index: 1; }


.cta-section__title {
  font-family: 'Roboto', sans-serif;
  font-size: clamp(36px, 5vw, 60px);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.1;
  margin-bottom: var(--s4);
}

.cta-section__sub {
  font-size: var(--t-md);
  color: var(--text-muted);
  margin-bottom: var(--s6);
}


.cta-section__btns {
  display: flex;
  gap: var(--s4);
  justify-content: center;
  flex-wrap: wrap;
  align-items: center;
}

/* кнопки контактов */
.cta-btn {
  display: inline-flex;
  align-items: center;
  gap: var(--s2);
  height: 56px;
  padding: 0 var(--s6);
  border-radius: var(--r-md);
  font-family: 'Rubik', sans-serif;
  font-size: var(--t-md);
  font-weight: 500;
  letter-spacing: 0.02em;
  text-decoration: none;
  transition: all 0.25s ease;
  position: relative;
  overflow: hidden;
}

.cta-btn--vk {
  background: linear-gradient(135deg, rgba(41,82,245,0.9) 0%, rgba(77,142,255,0.8) 100%);
  color: #fff;
  border: 1px solid rgba(77,142,255,0.4);
  box-shadow: 0 4px 24px rgba(41,82,245,0.3), inset 0 1px 0 rgba(255,255,255,0.15);
}
.cta-btn--vk:hover {
  background: linear-gradient(135deg, rgba(61,102,255,1) 0%, rgba(100,162,255,1) 100%);
  box-shadow: 0 8px 40px rgba(41,82,245,0.5), inset 0 1px 0 rgba(255,255,255,0.2);
  transform: translateY(-2px);
}

.cta-btn--phone {
  background: rgba(255,255,255,0.04);
  color: var(--text);
  border: 1px solid rgba(255,255,255,0.12);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.06);
}
.cta-btn--phone:hover {
  background: rgba(77,142,255,0.1);
  border-color: rgba(77,142,255,0.35);
  color: var(--accent-2);
  box-shadow: 0 4px 24px rgba(77,142,255,0.15), inset 0 1px 0 rgba(255,255,255,0.08);
  transform: translateY(-2px);
}

/* =============================================
   FAQ
   ============================================= */
/* =============================================
   FOOTER
   ============================================= */
.footer {
  padding: var(--s8) 0 var(--s5);
  border-top: 1px solid var(--border);
  background: var(--bg-2);
}

.footer__top {
  display: flex;
  align-items: center;
  gap: var(--s4);
  margin-bottom: var(--s7);
}

.footer__tagline {
  font-size: var(--t-sm);
  color: var(--text-muted);
}

.footer__cols {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--s6);
  margin-bottom: var(--s7);
}

.footer__col {
  display: flex;
  flex-direction: column;
  gap: var(--s2);
}

.footer__col-title {
  font-size: var(--t-xs);
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: var(--s3);
  display: flex;
  align-items: center;
  gap: 10px;
  white-space: nowrap;
}

.footer__col-title::before,
.footer__col-title::after {
  content: '';
  flex: 1;
  height: 1px;
  background: rgba(77,142,255,0.3);
}

.footer__link {
  font-size: var(--t-sm);
  color: var(--text-muted);
  transition: color var(--tr);
  line-height: 1.5;
}
.footer__link:hover { color: var(--accent-2); }

.footer__text {
  font-size: var(--t-sm);
  color: var(--text-muted);
  line-height: 1.6;
}

.footer__copy {
  font-size: var(--t-xs);
  color: rgba(120, 120, 160, 0.45);
  border-top: 1px solid var(--border);
  padding-top: var(--s4);
}

@media (max-width: 900px) {
  .footer__cols { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
  .footer__cols { grid-template-columns: 1fr; }
}

/* =============================================
   ЛАЙТБОКС ВК
   ============================================= */
.vk-lb {
  position: fixed;
  inset: 0;
  z-index: 3000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.vk-lb.is-open {
  opacity: 1;
  pointer-events: all;
}

.vk-lb__overlay {
  position: absolute;
  inset: 0;
  background: rgba(4, 4, 10, 0.92);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  cursor: pointer;
}

.vk-lb__box {
  position: relative;
  z-index: 1;
  width: min(960px, 92vw);
  aspect-ratio: 16/9;
  background: #000;
  border-radius: var(--r-md);
  overflow: hidden;
  box-shadow: 0 40px 120px rgba(0,0,0,0.8);
  transform: scale(0.94);
  transition: transform 0.35s cubic-bezier(0.4,0,0.2,1);
}

.vk-lb.is-open .vk-lb__box {
  transform: scale(1);
}

.vk-lb__box--post {
  aspect-ratio: unset;
  height: min(85vh, 700px);
  width: min(680px, 92vw);
}

.vk-lb__close {
  position: absolute;
  top: var(--s3);
  right: var(--s3);
  z-index: 10;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  background: rgba(0,0,0,0.5);
  border: 1px solid rgba(255,255,255,0.15);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  transition: background var(--tr), border-color var(--tr);
}

.vk-lb__close:hover {
  background: rgba(41,82,245,0.4);
  border-color: var(--accent-2);
}

.vk-lb__frame {
  width: 100%;
  height: 100%;
}

.vk-lb__frame iframe {
  width: 100%;
  height: 100%;
  border: none;
  display: block;
}

/* =============================================
   ПОПАП СВЯЗАТЬСЯ
   ============================================= */
.contact-popup {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}

.contact-popup.is-open {
  opacity: 1;
  pointer-events: all;
}

.contact-popup__overlay {
  position: absolute;
  inset: 0;
  background: rgba(4, 4, 12, 0.85);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.contact-popup__box {
  position: relative;
  z-index: 1;
  background: linear-gradient(145deg, #14142a 0%, #0f0f20 100%);
  border: 1px solid rgba(77, 142, 255, 0.18);
  border-radius: 24px;
  padding: var(--s6) var(--s5);
  max-width: 400px;
  width: 90%;
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: var(--s2);
  box-shadow:
    0 0 0 1px rgba(77, 142, 255, 0.06),
    0 24px 80px rgba(0, 0, 0, 0.6),
    0 0 60px rgba(41, 82, 245, 0.08);
  transform: translateY(12px);
  transition: transform 0.25s ease, opacity 0.25s ease;
}

.contact-popup.is-open .contact-popup__box {
  transform: translateY(0);
}

.contact-popup__close {
  position: absolute;
  top: var(--s3);
  right: var(--s3);
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  border-radius: 50%;
  transition: color var(--tr), background var(--tr);
}
.contact-popup__close:hover {
  color: var(--text);
  background: rgba(255,255,255,0.06);
}


.contact-popup__title {
  font-family: 'Roboto', sans-serif;
  font-size: var(--t-2xl);
  font-weight: 700;
  color: var(--text);
  line-height: 1.1;
  letter-spacing: -0.01em;
  margin: 0;
}

.contact-popup__sub {
  font-size: var(--t-sm);
  color: var(--text-muted);
  margin: 0 0 var(--s2);
}

.contact-popup__actions {
  display: flex;
  flex-direction: column;
  gap: var(--s2);
  margin-top: var(--s2);
}

.contact-popup__btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--s2);
  width: 100%;
  height: 54px;
  border-radius: var(--r-md);
  font-family: 'Rubik', sans-serif;
  font-size: var(--t-base);
  font-weight: 500;
  text-decoration: none;
  transition: transform var(--tr-fast), box-shadow var(--tr), background var(--tr);
}

.contact-popup__btn--vk {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 4px 24px rgba(41, 82, 245, 0.35);
}
.contact-popup__btn--vk:hover {
  background: var(--accent-hover);
  transform: translateY(-1px);
  box-shadow: 0 6px 32px rgba(41, 82, 245, 0.5);
}

.contact-popup__btn--phone {
  background: transparent;
  color: var(--text);
  border: 1px solid rgba(77, 142, 255, 0.2);
}
.contact-popup__btn--phone:hover {
  background: rgba(77, 142, 255, 0.06);
  border-color: rgba(77, 142, 255, 0.4);
  transform: translateY(-1px);
}

.contact-popup__divider {
  display: flex;
  align-items: center;
  gap: var(--s2);
  color: var(--text-muted);
  font-size: var(--t-xs);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.contact-popup__divider::before,
.contact-popup__divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: rgba(77, 142, 255, 0.12);
}

/* =============================================
   ФЭЙДЕР-СКРОЛЛБАР
   ============================================= */
.fader {
  position: fixed;
  right: 10px;
  top: 80px;
  bottom: 0;
  z-index: 300;
  display: flex;
  align-items: center;
  padding: 20px 0;
  pointer-events: none;
}

.fader__rail {
  display: flex;
  align-items: stretch;
  height: 100%;
  pointer-events: all;
}

.fader__marks {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: flex-end;
  height: 100%;
  padding: 2px 0;
}

.fader__marks span {
  font-size: 7px;
  font-family: 'Rubik', sans-serif;
  color: rgba(255,255,255,0.18);
  line-height: 1;
  letter-spacing: 0;
}

.fader__track {
  position: relative;
  width: 28px;
  height: 100%;
  display: flex;
  justify-content: center;
  cursor: pointer;
}

/* тики справа от линии */
.fader__track::before {
  content: '';
  position: absolute;
  top: 0; bottom: 0;
  left: 50%;
  margin-left: 4px;
  width: 1px;
  background: repeating-linear-gradient(
    to bottom,
    rgba(255,255,255,0.18) 0px,
    rgba(255,255,255,0.18) 1px,
    transparent 1px,
    transparent 10px
  );
}

/* каждый 5-й тик ярче */
.fader__track::after {
  content: '';
  position: absolute;
  top: 0; bottom: 0;
  left: 50%;
  margin-left: 4px;
  width: 5px;
  background: repeating-linear-gradient(
    to bottom,
    rgba(255,255,255,0.35) 0px,
    rgba(255,255,255,0.35) 1px,
    transparent 1px,
    transparent 50px
  );
}

.fader__line {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 3px;
  background: linear-gradient(to bottom,
    #111 0%,
    #222 15%,
    #2c2c2c 50%,
    #222 85%,
    #111 100%
  );
  border-radius: 2px;
  box-shadow:
    inset 0 1px 2px rgba(0,0,0,0.8),
    0 0 0 1px rgba(255,255,255,0.06);
}

.fader__knob {
  position: absolute;
  left: 50%;
  transform: translate(-50%, -50%);
  top: 0;
  width: 30px;
  height: 57px;
  cursor: grab;
  user-select: none;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
}

.fader__knob:active { cursor: grabbing; }

.fader__knob img {
  display: block;
  pointer-events: none;
  user-select: none;
  -webkit-user-drag: none;
  filter: brightness(0.45) saturate(0.8);
}

@media (max-width: 768px) {
  .fader { display: none; }
}

/* =============================================
   ВИДЖЕТ ЗАЯВКИ (FLOATING)
   ============================================= */
.widget {
  position: fixed;
  bottom: var(--s5);
  right: var(--s5);
  z-index: 900;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: var(--s3);
}

.widget__btn {
  display: flex;
  align-items: center;
  gap: var(--s2);
  background: linear-gradient(135deg, rgba(41,82,245,0.75) 0%, rgba(77,142,255,0.6) 100%);
  color: #fff;
  font-family: 'Rubik', sans-serif;
  font-weight: 500;
  font-size: var(--t-sm);
  letter-spacing: 0.12em;
  padding: 0 var(--s5);
  height: 52px;
  border-radius: 26px;
  border: 1px solid rgba(77,142,255,0.55);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow:
    0 4px 24px rgba(41,82,245,0.45),
    inset 0 1px 0 rgba(255,255,255,0.18),
    inset 0 -1px 0 rgba(0,0,0,0.15);
  transition: background var(--tr), transform var(--tr-fast), box-shadow var(--tr), border-color var(--tr);
}

.widget__btn:hover {
  background: linear-gradient(135deg, rgba(61,102,255,0.88) 0%, rgba(77,142,255,0.75) 100%);
  border-color: rgba(77,142,255,0.8);
  transform: translateY(-2px);
  box-shadow:
    0 8px 36px rgba(41,82,245,0.6),
    inset 0 1px 0 rgba(255,255,255,0.22),
    inset 0 -1px 0 rgba(0,0,0,0.15);
}

.widget__icon { font-size: var(--t-md); }

.widget__popup {
  background: var(--bg-3);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  width: 340px;
  overflow: hidden;
  display: none;
  box-shadow: 0 16px 48px rgba(0,0,0,0.6);
}

.widget__popup.is-open { display: block; }

.widget__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: var(--s3) var(--s4);
  background: var(--surface);
  font-family: 'Rubik', sans-serif;
  font-weight: 700;
  font-size: var(--t-sm);
  border-bottom: 1px solid var(--border);
}

.widget__close {
  font-size: var(--t-lg);
  color: var(--text-muted);
  line-height: 1;
  transition: color var(--tr);
}
.widget__close:hover { color: var(--text); }

.widget__form {
  padding: var(--s4);
  display: flex;
  flex-direction: column;
  gap: var(--s2);
}

.widget__input {
  width: 100%;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  padding: var(--s3) var(--s3);
  color: var(--text);
  font-size: var(--t-sm);
  transition: border-color var(--tr);
  outline: none;
}

.widget__input:focus { border-color: var(--accent); }
.widget__input::placeholder { color: var(--text-muted); }

.widget__select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%238a8a8a' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  cursor: pointer;
}

.widget__textarea { resize: none; }

.widget__form .btn { width: 100%; margin-top: var(--s1); }

.widget__success {
  display: none;
  text-align: center;
  color: var(--accent);
  font-size: var(--t-sm);
  font-weight: 600;
  padding: var(--s2) 0;
}

/* =============================================
   ЛАЙТБОКС
   ============================================= */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 1100;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--tr);
}

.lightbox.is-open {
  opacity: 1;
  pointer-events: all;
}

.lightbox__overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.92);
  backdrop-filter: blur(6px);
}

.lightbox__box {
  position: relative;
  z-index: 1;
  max-width: 900px;
  width: 92%;
  background: var(--bg-3);
  border-radius: var(--r-lg);
  overflow: hidden;
  border: 1px solid var(--border);
}

.lightbox__close {
  position: absolute;
  top: var(--s3);
  right: var(--s4);
  font-size: var(--t-xl);
  color: var(--text-muted);
  z-index: 2;
  line-height: 1;
  transition: color var(--tr);
}
.lightbox__close:hover { color: var(--text); }

.lightbox__loader {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-3);
  z-index: 2;
  transition: opacity 0.3s ease;
}
.lightbox__loader.is-hidden {
  opacity: 0;
  pointer-events: none;
}
.lightbox__spinner {
  width: 40px;
  height: 40px;
  border: 3px solid rgba(255,255,255,0.15);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}

/* =============================================
   SMMISHA BADGE
   ============================================= */
.smmisha-badge {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 0 16px;
  text-decoration: none;
  background: var(--bg);
  border-top: 1px solid var(--border);
  transition: opacity 0.2s;
}
.smmisha-badge:hover { opacity: 0.75; }

.smmisha-badge__text {
  font-family: var(--font-head), sans-serif;
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.smmisha-badge__brand {
  font-family: 'Unbounded', sans-serif;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.05em;
  background: linear-gradient(90deg, #4d8eff 0%, #e8c547 40%, #2952f5 70%, #4d8eff 100%);
  background-size: 200% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: smmisha-shimmer 3s linear infinite;
}

@keyframes smmisha-shimmer {
  0%   { background-position: 0% center; }
  100% { background-position: 200% center; }
}
@keyframes spin {
  to { transform: rotate(360deg); }
}

.lightbox__img {
  width: 100%;
  max-height: 60vh;
  object-fit: cover;
}

.lightbox__info {
  padding: var(--s4) var(--s5);
}

.lightbox__title {
  font-family: 'Roboto', sans-serif;
  font-size: var(--t-lg);
  font-weight: 700;
  margin-bottom: var(--s2);
}

.lightbox__desc {
  color: var(--text-muted);
  font-size: var(--t-base);
}

/* =============================================
   FADE-IN ANIMATION
   ============================================= */
.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.fade-in.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.event-card__img {
  background: var(--surface);
  min-height: 200px;
}

/* =============================================
   MOBILE ADAPTATION (≤767px)
   ============================================= */

/* --- BURGER --- */
.header__burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 10px;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.header__burger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform 0.25s ease, opacity 0.25s ease;
}
.header__burger.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.header__burger.is-open span:nth-child(2) { opacity: 0; }
.header__burger.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* --- BACKDROP --- */
.header__backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.65);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  z-index: 399;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}
.header__backdrop.is-open {
  opacity: 1;
  pointer-events: all;
}

/* --- DRAWER --- */
.header__drawer {
  position: fixed;
  top: 0;
  right: 0;
  width: 280px;
  height: 100dvh;
  background: var(--bg-2);
  border-left: 1px solid var(--border-hi);
  z-index: 400;
  transform: translateX(100%);
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  flex-direction: column;
  padding: 72px var(--s5) var(--s6);
}
.header__drawer.is-open {
  transform: translateX(0);
}
.header__drawer-close {
  position: absolute;
  top: var(--s4);
  right: var(--s4);
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255,255,255,0.06);
  border: 1px solid var(--border);
  border-radius: 50%;
  color: var(--text-muted);
  transition: background 0.2s, color 0.2s;
}
.header__drawer-close:hover { background: rgba(255,255,255,0.12); color: var(--text); }
.header__drawer-nav {
  display: flex;
  flex-direction: column;
  flex: 1;
}
.header__drawer-link {
  font-family: 'Roboto', sans-serif;
  font-size: 22px;
  font-weight: 700;
  color: rgba(238,238,245,0.85);
  padding: 14px 0;
  border-bottom: 1px solid rgba(77,142,255,0.1);
  letter-spacing: -0.01em;
  transition: color 0.2s, padding-left 0.2s;
}
.header__drawer-link:last-child { border-bottom: none; }
.header__drawer-link:active { color: #fff; padding-left: 6px; }
.header__drawer-cta {
  margin-top: var(--s4);
  width: 100%;
  height: 52px;
  font-size: var(--t-base);
}

@media (max-width: 767px) {
  /* Header */
  .header__inner {
    height: 60px;
    padding: 0 var(--s4);
  }
  .nav { display: none; }
  .header__burger { display: flex; }

  /* Fader top offset */
  .fader { top: 60px; }
  .fader__track { width: 22px; }

  /* Hero */
  .hero {
    height: calc(100svh - 60px);
    align-items: stretch;
    justify-content: stretch;
  }
  .hero__video {
    object-position: center center;
  }
  .hero__overlay {
    background:
      linear-gradient(to bottom, rgba(8,8,16,0.6) 0%, rgba(8,8,16,0.25) 40%, rgba(8,8,16,0.75) 100%);
  }
  .hero__caption {
    position: absolute;
    inset: 0;
    z-index: 10;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: var(--s5) var(--s4);
    max-width: 100%;
    gap: var(--s3);
  }
  .hero__label {
    position: absolute;
    top: var(--s4);
    left: 0;
    right: 0;
    justify-content: center;
    margin-bottom: 0;
  }
  .hero__label::before { flex-shrink: 0; }
  .hero__label::after {
    content: '';
    display: inline-block;
    width: 24px;
    height: 1px;
    background: var(--accent-2);
    opacity: 0.7;
    flex-shrink: 0;
  }
  .hero__title-l1 { font-size: clamp(32px, 9vw, 40px); }
  .hero__title-l2 { font-size: clamp(22px, 6.5vw, 30px); }
  .hero__sub {
    position: absolute;
    bottom: calc(var(--s5) + 22px);
    left: 0;
    right: 0;
    text-align: center;
    white-space: normal;
    font-size: 11px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: rgba(136,153,187,0.7);
    max-width: 100%;
    padding: 0 var(--s4);
    margin-top: 0;
  }
  .hero__geo {
    position: absolute;
    bottom: var(--s4);
    left: 0;
    right: 0;
    text-align: center;
    margin-top: 0;
    opacity: 0.6;
  }

  /* Stats */
  .stats { padding: 80px 0; }
  .stats__grid {
    grid-template-columns: 1fr;
    gap: var(--s4);
    margin-bottom: var(--s6);
  }
  .stats__item { padding: var(--s5) var(--s4); }
  .stats__num { font-size: clamp(40px, 12vw, 56px); }

  /* Cases coverflow */
  .cflow__stage { height: 240px; }
  .cflow__card { width: 220px; height: 200px; }

  /* Cycle */
  .cycle { padding: 80px 0; }
  .cycle__inner { grid-template-columns: 1fr; gap: var(--s6); }

  /* Форматы */
  .events { overflow: visible; }
  .events__glow { overflow: visible; height: auto; }

  /* Форматы fslider */
  .fslider__track { height: 75vw; min-height: 300px; }
  .fslider__controls { display: none; }
  .fslider__desc { display: none; }
  .fslider__arrow {
    color: rgba(255,255,255,0.55);
  }
  .fslider__arrow--prev { left: 8px; }
  .fslider__arrow--next { right: 8px; }
  .fslider__caption { bottom: var(--s5); }
  .fslider__title { font-size: clamp(26px, 7vw, 36px); }

  /* fslider hint */
  .fslider__hint {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--s3);
    position: absolute;
    bottom: 130px;
    left: 50%;
    transform: translateX(-50%);
    color: rgba(255,255,255,0.55);
    font-size: var(--t-sm);
    pointer-events: none;
    white-space: nowrap;
    opacity: 1;
    transition: opacity 0.6s ease;
    z-index: 5;
  }
  .fslider__hint.is-hidden { opacity: 0; }

  /* cflow hint удалён — используется .cflow__scroll-label */

  /* equip scroll hint — скрыт, используем equip__bento-hint */
  .equip__scroll-hint { display: none !important; }

  /* Оборудование → bento-сетка 2 колонки */
  .equip__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-auto-rows: auto;
    grid-auto-flow: row;
    gap: var(--s2);
    overflow-x: visible;
    scroll-snap-type: none;
  }
  .equip__grid .equip-card {
    flex: none;
    height: 110px;
    grid-column: span 1;
    grid-row: span 1;
  }
  .equip-card--wide {
    grid-column: span 2;
    height: 110px;
  }
  .equip-card--tall {
    grid-row: span 1;
    grid-column: span 1;
    height: 110px;
  }

  /* Виджет — кружок без текста */
  .widget__btn {
    width: 52px;
    height: 52px;
    padding: 0;
    border-radius: 50%;
    justify-content: center;
    background: rgba(41,82,245,0.45);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-color: rgba(77,142,255,0.4);
    box-shadow: 0 4px 20px rgba(41,82,245,0.35);
  }
  .widget__label { display: none; }

  /* Виджет попап — по центру экрана */
  .widget {
    bottom: var(--s5);
    right: var(--s4);
    align-items: center;
  }
  .widget__popup {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    width: 100%;
    border-radius: var(--r-lg) var(--r-lg) 0 0;
    max-height: 90dvh;
    overflow-y: auto;
  }

  /* Отзывы — слайдер на мобиле */
  .reviews__slider-wrap { margin-top: var(--s4); }
  .reviews__track {
    flex-direction: row;
    overflow-x: auto;
    overflow-y: visible;
    padding: 0 var(--s4);
    gap: var(--s4);
    scroll-snap-type: x mandatory;
    -webkit-mask-image: none;
    mask-image: none;
    cursor: grab;
  }
  .reviews__card {
    flex: 0 0 calc(100vw - var(--s8));
    scroll-snap-align: center;
    filter: none;
    opacity: 1;
  }
  .reviews__arrow {
    display: flex !important;
    top: 40%;
    transform: translateY(-50%);
    width: 52px;
    height: 52px;
    background: transparent;
    border: none;
    color: rgba(255,255,255,0.45);
  }
  .reviews__arrow--prev { left: 0; }
  .reviews__arrow--next { right: 0; }
  .reviews__arrow:hover { color: rgba(255,255,255,0.95); transform: translateY(-50%) scale(1.15); }

  /* Лайтбокс ВК — мобиль, полноэкранный */
  .vk-lb {
    align-items: center;
    padding: 0;
  }
  .vk-lb__box {
    width: 100vw;
    max-width: 100vw;
    height: 100dvh;
    border-radius: 0;
    box-shadow: none;
    aspect-ratio: unset;
    display: flex;
    flex-direction: column;
  }
  .vk-lb__frame {
    flex: 1;
    height: 100%;
  }
  .vk-lb__box--post {
    width: 100vw;
    height: 100dvh;
    border-radius: 0;
  }
  .vk-lb__close {
    top: var(--s4);
    right: var(--s4);
    width: 44px;
    height: 44px;
    background: rgba(0,0,0,0.7);
  }

  /* CTA */
  .cta-section { padding: 100px 0; }
  .cta-section__btns {
    flex-direction: column;
    align-items: center;
  }
  .cta-btn { width: 100%; max-width: 320px; justify-content: center; }
}

/* fslider hint — скрыт на десктопе */
.fslider__hint { display: none; }
/* equip scroll hint — скрыт на десктопе */
.equip__scroll-hint { display: none; }
/* cflow hint — скрыт на десктопе */
.cflow__hint { display: none; }

/* Подсказки "листайте" */
.cflow__scroll-label,
.reviews__scroll-label {
  display: none;
  text-align: center;
  font-size: var(--t-xs);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(238,238,245,0.35);
  margin-top: var(--s3);
  pointer-events: none;
  user-select: none;
}

@media (max-width: 767px) {
  .cflow__scroll-label,
  .reviews__scroll-label {
    display: block;
  }
  .cflow__scroll-label {
    padding-bottom: var(--s2);
  }
}

/* equip стрелки — скрыты везде */
.equip__arrow { display: none !important; }

/* equip bento-подсказка снизу */
.equip__bento-hint {
  display: none;
  text-align: center;
  font-size: var(--t-xs);
  color: rgba(238,238,245,0.35);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-top: var(--s3);
}

@media (max-width: 767px) {
  .equip__bento-hint { display: block; }
}
