:root {
  --btn-gradient: linear-gradient(106deg, #5369e0 7.52%, #8c9efc 91.46%);
  --btn-gradient-hover: linear-gradient(106deg, #5369e0 0%, #5369e0 100%);
  --bg-gradient: linear-gradient(143deg, #eff2ff 0%, #ced5ff 78.72%);
  --black: #020619;
  --grey: #565966;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: Gilroy;
  background: white;
}

.no-scroll {
  overflow: hidden;
}

/* затемнение фона */
.overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  display: none;
  z-index: 1000;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.overlay.show {
  opacity: 1;
}

/* модалка */
.modal {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0.7);
  background: white;
  padding: 30px;
  border-radius: 12px;
  display: none;
  z-index: 1001;
  min-width: 343px;
  box-shadow: 0 0 15px rgba(0, 0, 0, 0.3);
  max-width: 512px;
  opacity: 0;
  transition: all 0.3s ease;
}

.modal.show {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}

.header {
  position: sticky;
  top: 0;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(8px);
}

#menu {
  border-top: 1px solid #edeff6;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(10px);
}

.btn-blue {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 8px 20px;
  border-radius: 8px;
  background: var(--btn-gradient);
  background-size: 200% 200%;
  background-position: right center;
  color: white;
  font-size: 14px;
  font-weight: 600;
  height: 50px;
  transition: background-position 0.5s ease-out;
}

.btn-blue:hover {
  background-position: left center;
}

.text-gradient {
  background: var(--btn-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  color: transparent; /* для Firefox */
}

.accordion-container {
  display: flex;
  flex-direction: row;
  gap: 12px;
  height: 250px;
  width: 100%;
}

.accordion-item {
  position: relative;
  background: #f1f3ff;
  cursor: pointer;
  padding: 16px;
  overflow: hidden;
  transition: width 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.accordion-item:not(.active):hover {
  background: #e9ebf1;
}

.accordion-header {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  display: flex;
  font-weight: 600;
  opacity: 1;
  transform: translateY(0);
  transition: 
    opacity 0.15s ease-out,
    transform 0.15s ease-out;
  pointer-events: auto;
}

.accordion-item.active .accordion-header {
  opacity: 0;
  transform: translateY(10px);
  pointer-events: none;
  transition-delay: 0s;
}

.accordion-item:not(.active) .accordion-header {
  transition-delay: 0.4s;
}

.accordion-content {
  opacity: 0;
  transform: translateY(20px);
  transition:
    opacity 0.1s ease-out,
    transform 0.1s ease-out;
  margin-top: 8px;
  font-size: 14px;
  overflow: hidden;
  pointer-events: none;
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
}

/* Desktop: расширение по ширине */
.accordion-item.active {
  flex: 3;
  border: 1px solid #7086fc;
  background: linear-gradient(143deg, #eff2ff 0%, #ced5ff 78.72%);
}

.accordion-item.active .accordion-content {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
  transition-delay: 0.4s;
}

.accordion-icon {
  background: #fff;
  border-radius: 8px;
  padding: 7px;
  box-shadow: none;
  transition: box-shadow 0.3s;
  display: flex;
  align-items: center;
  justify-content: center;
}

.accordion-item.active .accordion-icon {
  box-shadow: -12px 12px 48px 0 rgba(79, 105, 236, 0.6);
}

.accordion-badge {
  background: var(--btn-gradient);
  padding: 10px;
  border-radius: 8px;
  visibility: collapse;
  transition: opacity 0.3s;
  width: 38px;
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 5;
}

.accordion-item.active .accordion-badge {
  visibility: visible;
}

.accordion-image {
  position: absolute;
  right: 0;
  top: 0;
  bottom: 0;
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 0;
  transition: opacity 0.4s ease-out 0.1s;
  z-index: 0;
}

.accordion-item.active .accordion-image {
  opacity: 1;
}

/* Mobile: раскрытие вниз с анимацией высоты */
@media (max-width: 1023px) {
  .accordion-container {
    flex-direction: column;
    height: auto;
    gap: 12px;
    transform: translateZ(0);
  }

  .accordion-item {
    padding: 16px;
    flex: auto;
    transition:
      height 0.3s ease-out,
      max-height 0.3s ease-out;
    transform: translateZ(0);
    will-change: height;
  }

  @media (min-width: 744px) {
    .accordion-item:not(.active) .accordion-header-icons {
      position: relative;
      padding: 0 !important;
      margin-right: 24px;
    }

    .accordion-item {
      padding: 20px;
    }
  }

  .accordion-item:not(.active) .accordion-header {
    position: relative;
    padding: 0;
    width: 100%;
    display: flex;
    align-items: center;
    white-space: nowrap;
  }

  .accordion-item:not(.active) .accordion-header-icons {
    position: relative;
    padding: 0 !important;
    margin-right: 16px;
  }

  .accordion-item:not(.active) .accordion-badge {
    display: none;
  }
}

/* Мобильные телефоны до 743px */
@media (max-width: 743px) {
  .accordion-item:not(.active) {
    max-height: 70px;
  }

  .accordion-item.active {
    max-height: 360px;
  }

  .accordion-inner {
    height: 360px;
  }
}

/* Планшеты 744px - 1023px */
@media (min-width: 744px) and (max-width: 1023px) {
  .accordion-container {
    height: auto;
  }

  .accordion-item:not(.active) {
    max-height: 88px;
  }

  .accordion-item.active {
    max-height: 312px;
  }

  .accordion-inner {
    height: 312px;
  }
}

/* Десктоп */
@media (min-width: 1024px) {
  .accordion-item.active {
    height: 100%;
  }

  .accordion-container {
    flex-direction: row;
    gap: 8px;
  }

  .accordion-item {
    will-change: width;
  }

  .accordion-item:not(.active) {
    width: 143px;
    flex-shrink: 0;
  }

  .accordion-item.active {
    width: 355px;
    flex-shrink: 0;
  }

  .accordion-item:not(.active) .accordion-header-icons {
    padding: 20px 14px 0 !important;
  }

  .accordion-item.active .accordion-header-icons {
    padding: 24px !important;
  }
}

@media (min-width: 1440px) {
  .accordion-item:not(.active) {
    width: 152px;
  }

  .accordion-item.active {
    width: 580px;
  }

  .accordion-item:not(.active) .accordion-header-icons {
    padding: 20px 12px 0 !important;
  }

  .accordion-item.active .accordion-header-icons {
    padding: 32px !important;
  }
}

@media (min-width: 1920px) {
  .accordion-item:not(.active) {
    width: 158px;
  }

  .accordion-item:not(.active) .accordion-header-icons {
    padding: 20px 14px 0 !important;
  }

  .accordion-container {
    gap: 16px;
  }
}

.experience-section {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.parallax-bg {
  position: absolute;
  inset: 0;
  background: url('/src/images/banner-8-1440.webp') center/cover no-repeat;
  filter: blur(8px);
  z-index: -1;
  background-position: center 0;
  will-change: background-position;
}

@media (max-width: 743px) {
  .parallax-bg {
    background: url('/src/images/banner-8-375.webp') center/cover no-repeat;
  }
}

.content {
  position: relative;
  width: 100%;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(8px);
  border-color: rgba(255, 255, 255, 0.6);
}

.glass-card {
  display: flex;
  align-items: center;
  justify-content: center;
  margin: auto;
  height: 100%;
}

.experience {
  padding: 15px;
}

@media (min-width: 744px) {
  .experience {
    padding: 20px;
  }
}

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

/* Вертикальные линии */
.vertical {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 1.5px;
  background: linear-gradient(
    90deg,
    rgba(226, 228, 235, 0) 0%,
    #e2e4eb 50.48%,
    rgba(226, 228, 235, 0) 100%
  );
  overflow: hidden;
}
.vertical::after {
  content: '';
  position: absolute;
  width: 100%;
  height: 10vh;
  top: -50%;
  left: 0;
  background: linear-gradient(0deg, #5369e0, #8c9efc, #ffffff00);
  animation: drop-vertical 5s infinite;
  animation-fill-mode: forwards;
  animation-timing-function: cubic-bezier(0.25, 0.1, 0.25, 1);
}

/* Рассинхрон с разными задержками */
.vertical:nth-child(1)::after {
  animation-delay: 0s;
}
.vertical:nth-child(2)::after {
  animation-delay: 1.2s;
}
.vertical:nth-child(3)::after {
  animation-delay: 2.4s;
}
.vertical:nth-child(4)::after {
  animation-delay: 0.7s;
}
.vertical:nth-child(5)::after {
  animation-delay: 1.9s;
}
.vertical:nth-child(6)::after {
  animation-delay: 0.3s;
}
.vertical:nth-child(7)::after {
  animation-delay: 1.5s;
}
.vertical:nth-child(8)::after {
  animation-delay: 2s;
}
.vertical:nth-child(9)::after {
  animation-delay: 0.9s;
}
.vertical:nth-child(10)::after {
  animation-delay: 2.7s;
}

/* через одну вверх */
.vertical:nth-child(even)::after {
  animation-name: rise-vertical;
}

.vertical:nth-child(even)::after {
  animation-name: rise-vertical; /* движение снизу вверх */
  background: linear-gradient(to top, #ffffff00 0%, #5369e0 60%, #8c9efc 100%);
}

/* Горизонтальные линии */
.horizontal {
  position: absolute;
  left: 0;
  right: 0;
  height: 1.5px;
  background: linear-gradient(
    180deg,
    rgba(226, 228, 235, 0) 0%,
    #e2e4eb 50.48%,
    rgba(226, 228, 235, 0) 100%
  );
  overflow: hidden;
}
.horizontal::after {
  content: '';
  position: absolute;
  width: 5vw;
  height: 100%;
  top: 0;
  left: -20%;
  background: linear-gradient(90deg, #5369e0, #8c9efc, #ffffff00);
  animation: drop-horizontal 7s infinite;
  animation-fill-mode: forwards;
  animation-timing-function: cubic-bezier(0.25, 0.1, 0.25, 1);
}

/* Рассинхрон с разными задержками */
.horizontal:nth-child(11)::after {
  animation-delay: 0s;
}
.horizontal:nth-child(12)::after {
  animation-delay: 1s;
}
.horizontal:nth-child(13)::after {
  animation-delay: 2s;
}
.horizontal:nth-child(14)::after {
  animation-delay: 0.5s;
}
.horizontal:nth-child(15)::after {
  animation-delay: 1.5s;
}

/* через одну справа налево */
.horizontal:nth-child(even)::after {
  animation-name: rise-horizontal;
}

.horizontal:nth-child(odd)::after {
  animation-name: drop-horizontal; /* слева направо */
  background: linear-gradient(
    to right,
    #ffffff00 0%,
    #5369e0 60%,
    #8c9efc 100%
  );
}

/* Анимации */
@keyframes drop-vertical {
  0% {
    top: -10%;
  }
  100% {
    top: 100%;
  }
}
@keyframes rise-vertical {
  0% {
    top: 100%;
  }
  100% {
    top: -20%;
  }
}

@keyframes drop-horizontal {
  0% {
    left: -20%;
  }
  100% {
    left: 120%;
  }
}
@keyframes rise-horizontal {
  0% {
    left: 120%;
  }
  100% {
    left: -20%;
  }
}

@media (min-width: 744px) {
  .shadow-block {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 150px;
    background: linear-gradient(
      to top,
      rgba(255, 255, 255, 1),
      rgba(255, 255, 255, 0)
    );
    box-shadow: none;
  }

  /* === Фиксированная сетка 180px === */
  /* Вертикальные линии */
  .vertical:nth-child(1) {
    left: 10px;
  }
  .vertical:nth-child(2) {
    left: 170px;
  }
  .vertical:nth-child(3) {
    left: 330px;
  }
  .vertical:nth-child(4) {
    left: 490px;
  }
  .vertical:nth-child(5) {
    left: 650px;
  }
  .vertical:nth-child(6) {
    left: 810px;
  }
  .vertical:nth-child(7) {
    left: 970px;
  }
  .vertical:nth-child(8) {
    left: 1130px;
  }
  .vertical:nth-child(9) {
    left: 1290px;
  }
  .vertical:nth-child(10) {
    left: 1450px;
  }

  /* Горизонтальные линии */
  .horizontal:nth-child(11) {
    top: 180px;
  }
  .horizontal:nth-child(12) {
    top: 360px;
  }
  .horizontal:nth-child(13) {
    top: 540px;
  }
  .horizontal:nth-child(14) {
    top: 720px;
  }
  .horizontal:nth-child(15) {
    top: 900px;
  }
}

@media (min-width: 1024px) {
  .shadow-block {
    position: absolute;
    width: 100%;
    height: 100%;
    box-shadow: -30px -60px 100px 100px inset white;
  }

  /* === Фиксированная сетка 180px === */
  /* Вертикальные линии */
  .vertical:nth-child(1) {
    left: 20px;
  }
  .vertical:nth-child(2) {
    left: 200px;
  }
  .vertical:nth-child(3) {
    left: 380px;
  }
  .vertical:nth-child(4) {
    left: 560px;
  }
  .vertical:nth-child(5) {
    left: 740px;
  }
  .vertical:nth-child(6) {
    left: 920px;
  }
  .vertical:nth-child(7) {
    left: 1100px;
  }
  .vertical:nth-child(8) {
    left: 1280px;
  }
  .vertical:nth-child(9) {
    left: 1460px;
  }
  .vertical:nth-child(10) {
    left: 1640px;
  }

  /* Горизонтальные линии */
  .horizontal:nth-child(11) {
    top: 180px;
  }
  .horizontal:nth-child(12) {
    top: 360px;
  }
  .horizontal:nth-child(13) {
    top: 540px;
  }
  .horizontal:nth-child(14) {
    top: 720px;
  }
  .horizontal:nth-child(15) {
    top: 900px;
  }
}

@media (min-width: 1440px) {
  .shadow-block {
    position: absolute;
    width: 100%;
    height: 100%;
    box-shadow: -30px -60px 100px 100px inset white;
  }

  /* === Фиксированная сетка 180px === */
  /* Вертикальные линии */
  .vertical:nth-child(1) {
    left: 100px;
  }
  .vertical:nth-child(2) {
    left: 280px;
  }
  .vertical:nth-child(3) {
    left: 460px;
  }
  .vertical:nth-child(4) {
    left: 640px;
  }
  .vertical:nth-child(5) {
    left: 820px;
  }
  .vertical:nth-child(6) {
    left: 1000px;
  }
  .vertical:nth-child(7) {
    left: 1180px;
  }
  .vertical:nth-child(8) {
    left: 1360px;
  }
  .vertical:nth-child(9) {
    left: 1540px;
  }
  .vertical:nth-child(10) {
    left: 1720px;
  }
}
/*Временно закомменчено
/*@media (min-width: 1440px) {
  /* Контейнер с соотношением сторон 16:9 */
  /*.video-container {
    /* width: 100%; */
    /* height: calc(100vh - 120px); */
    /*overflow: hidden;
    position: relative;
  /*}

  /* Само видео */
  /*.video-container video {
    /* width: 100%; */
    /* height: calc(100vh + 120px); */
    /*object-fit: cover;
    /* object-position: center -120px; /* 50px вверх */
  /*}
}

/*@media (min-width: 1700px) {
  /* Контейнер с соотношением сторон 16:9 */
  /*.video-container {
    /* width: 100%;
    height: 100vh; */
    /*overflow: hidden;
    position: relative;
  }

  /* Само видео */
  /*.video-container video {
    /* width: 100%;
    height: 100vh; */
    /*object-fit: cover;
    /*object-position: center -120px; /* 50px вверх */
  /*}
}

/* Кнопка Play */
/* .play-btn {
  position: absolute;
  bottom: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  transition: opacity 0.2s;
  left: 50%;
  transform: translate(-50%, 0);
}

.play-btn button {
  pointer-events: auto;
  background: var(--btn-gradient);
  color: #fff;
  font-size: 16px;
  padding: 16px 16px 16px 20px;
  border-radius: 8px;
  cursor: pointer;
}

@media (max-width: 670px) {
  .play-btn {
    bottom: 16px;
    width: 100% !important;
  }
  .play-btn button {
    display: flex;
    justify-items: center;
    justify-content: center;
    width: 98% !important;
  }
}

@media (max-width: 1440px) {
  .play-btn {
    bottom: 16px;
    width: 100% !important;
  }
  .play-btn button {
    display: flex;
    justify-items: center;
    justify-content: center;
    width: 98% !important;
  }
}

.hide {
  opacity: 0;
  visibility: hidden;
} */

.video-container {
  position: relative;
  display: inline-block;
}

.video-control {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 33px;
  height: 33px;
  pointer-events: none;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 691.882px;
  border: 0.692px solid rgba(193, 193, 193, 0.25);
  background: rgba(124, 124, 124, 0.10);
  backdrop-filter: blur(2.7675px);
}

.progress-ring {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-52%, -49%) rotate(-90deg);
  pointer-events: none;
}

.progress-ring__progress {
  fill: none;
  stroke: #fff;
  stroke-width: 1.38;
  stroke-linecap: round;
  transition: stroke-dashoffset 0.1s linear;
}


.video-icon {
  position: absolute;
  z-index: 3;
  color: white;
  pointer-events: auto;
}

.video-icon img {
  width: 14px;
  height: 14px;
  display: block;
}
