/* =========Переменные=========== */

:root {
  --color--main: #ffffff;
  --color--accent: rgb(69, 71, 152);
}

/* ==============Шрифты============== */

@font-face {
  font-family: "LilitaOneRus";
  src: local("lilitaonerus"), url("../fonts/lilitaonerus.woff2") format("woff2"),
    url("../fonts/lilitaonerus.woff") format("woff");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "LlitaOneRus_bss";
  src: local("lilitaonerus_bss"),
    url("../fonts/lilitaonerus_bss.woff2") format("woff2"),
    url("../fonts/lilitaonerus_bss.woff") format("woff");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "LilitaOneRus_one";
  src: local("lilitaonerus"),
    url("../fonts/lilitaonerus_one.woff2") format("woff2"),
    url("../fonts/lilitaonerus_one.woff") format("woff");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "FiraSans";
  src: local("FiraSans"), url("../fonts/FiraSans-Regular.woff2") format("woff2"),
    url("../fonts/FiraSans-Regular.woff") format("woff");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Bitter-Bold";
  src: local("Bitter-Bold"), url("../fonts/Bitter-Bold.woff2") format("woff2"),
    url("../fonts/Bitter-Bold.woff") format("woff");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Bitter-Black";
  src: local("Bitter-Black"), url("../fonts/Bitter-Black.woff2") format("woff2"),
    url("../fonts/Bitter-Black.woff") format("woff");
  font-weight: 900;
 font-display: swap;
}

/* =========Основное=========== */

html {
  -webkit-box-sizing: border-box;
  box-sizing: border-box;
}

*,
*::before,
*::after {
  -webkit-box-sizing: inherit;
  box-sizing: inherit;
}

a {
  color: inherit;
  text-decoration: none;
  outline: none;
}

img {
  max-width: 100%;
}

.page {
  font-family: "Bitter-Bold", Arial, Helvetica, sans-serif;
}

.container {
  width: 100%;
  max-width: 1920px;
  margin: 0 auto;
}

p {
  margin: 0;
}
h1,
h2,
h3,
h4 {
  margin: 0;
  padding: 0;
}

.btn-reset {
  padding: 0;
  border: none;
  background-color: transparent;
  cursor: pointer;
}

.list-reset {
  margin: 0;
  padding: 0;
  list-style: none;
}

.page__container {
  background: -webkit-gradient(
    linear,
    left top,
    right top,
    from(#0b2d77),
    color-stop(25%, #00b7d9),
    color-stop(50%, #00b7d9),
    color-stop(75%, #00b7d9),
    to(#0b2d77)
  );
  background: linear-gradient(
    90deg,
    #0b2d77 0%,
    #00b7d9 25%,
    #00b7d9 50%,
    #00b7d9 75%,
    #0b2d77 100%
  );
  z-index: -1;
}
.main {
  background-image: url(../img/skull_pattern.png);
  background-repeat: repeat;
  background-position-x: left;
}

.title {
  text-align: center;
  color: var(--color--main);
  text-shadow: 3px 3px 0 #040325, 3px -3px 0 #040325, -3px 3px 0 #040325,
    -3px -3px 0 #040325, 3px 0px 0 #040325, 0px 3px 0 #040325,
    -3px 0px 0 #040325, 0px -3px 0 #040325, 3px 3px 3px rgba(23, 7, 82, 0);
  font-size: 32px;
  line-height: 1.2;
   letter-spacing: 0.075rem;
  font-family: "Bitter-Black";
  font-weight: 900;
}

.descr {
  font-size: 22px;
  line-height: 1.25;
  letter-spacing: 0;
  color: var(--color--main);
  text-shadow: 0px 3px 7.36px rgba(4, 3, 37, 0.38);
  -webkit-font-smoothing: antialiased;
  font-style: normal;
  text-transform: none;
}

.header {
  position: relative;
}

/* тень после хэдера */

.header {
  position: relative;
  /* Добавляем тень */
  -webkit-box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3),
    0 15px 50px rgba(0, 0, 0, 0.2);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3), 0 15px 50px rgba(0, 0, 0, 0.2);

  /* Создаем эффект "приподнятости" */
  -webkit-transform: translateY(0);
  -ms-transform: translateY(0);
  transform: translateY(0);
  -webkit-transition: -webkit-transform 0.3s ease, -webkit-box-shadow 0.3s ease;
  transition: -webkit-transform 0.3s ease, -webkit-box-shadow 0.3s ease;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  transition: transform 0.3s ease, box-shadow 0.3s ease,
    -webkit-transform 0.3s ease, -webkit-box-shadow 0.3s ease;
  transition: transform 0.3s ease, box-shadow 0.3s ease,
    -webkit-transform 0.3s ease, -webkit-box-shadow 0.3s ease;

  /* Добавляем z-index чтобы тень была поверх контента */
  z-index: 10;
}

/* Эффект при скролле (опционально) */
.header.scrolled {
  -webkit-transform: translateY(-5px);
  -ms-transform: translateY(-5px);
  transform: translateY(-5px);
  -webkit-box-shadow: 0 15px 35px rgba(0, 0, 0, 0.4),
    0 20px 60px rgba(0, 0, 0, 0.3);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.4), 0 20px 60px rgba(0, 0, 0, 0.3);
}

/* Для плавного появления тени при загрузке */
@-webkit-keyframes headerFloat {
  from {
    -webkit-transform: translateY(20px);
    transform: translateY(20px);
    opacity: 0;
    -webkit-box-shadow: 0 0 0 rgba(0, 0, 0, 0);
    box-shadow: 0 0 0 rgba(0, 0, 0, 0);
  }
  to {
    -webkit-transform: translateY(0);
    transform: translateY(0);
    opacity: 1;
    -webkit-box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3),
      0 15px 50px rgba(0, 0, 0, 0.2);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3), 0 15px 50px rgba(0, 0, 0, 0.2);
  }
}
@keyframes headerFloat {
  from {
    -webkit-transform: translateY(20px);
    transform: translateY(20px);
    opacity: 0;
    -webkit-box-shadow: 0 0 0 rgba(0, 0, 0, 0);
    box-shadow: 0 0 0 rgba(0, 0, 0, 0);
  }
  to {
    -webkit-transform: translateY(0);
    transform: translateY(0);
    opacity: 1;
    -webkit-box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3),
      0 15px 50px rgba(0, 0, 0, 0.2);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3), 0 15px 50px rgba(0, 0, 0, 0.2);
  }
}

.header {
  -webkit-animation: headerFloat 0.8s ease-out forwards;
  animation: headerFloat 0.8s ease-out forwards;
}

/* ******************* */

.header__img {
  -o-object-fit: cover;
  object-fit: cover;
  display: block;
}

.scroll-down-btn {
  position: absolute;
  bottom: 30px;
  left: 50%;
  -webkit-transform: translateX(-50%);
  -ms-transform: translateX(-50%);
  transform: translateX(-50%);
  background: transparent;
  border: none;
  cursor: pointer;
  z-index: 10;
  -webkit-animation: bounce 2s infinite;
  animation: bounce 2s infinite;
}

.scroll-down-icon {
  width: 70px;
  -webkit-filter: drop-shadow(0 0 5px rgba(255, 255, 255, 0.7));
  filter: drop-shadow(0 0 5px rgba(255, 255, 255, 0.7));
  -webkit-transition: -webkit-transform 0.3s ease;
  transition: -webkit-transform 0.3s ease;
  transition: transform 0.3s ease;
  transition: transform 0.3s ease, -webkit-transform 0.3s ease;
}

.scroll-down-btn:hover .scroll-down-icon {
  -webkit-transform: scale(1.1);
  -ms-transform: scale(1.1);
  transform: scale(1.1);
}

.section {
  padding: 50px 0;
}

.about__container,
.game__container {
  display: -ms-grid;
  display: grid;
  -ms-grid-columns: (1fr) [12];
  grid-template-columns: repeat(12, 1fr);
  padding: 0 20px;
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
}

.center {
  -ms-grid-column: 4;
  -ms-grid-column-span: 6;
  grid-column: 4 / 10;
}

.left {
  -ms-grid-column: 1;
  -ms-grid-column-span: 3;
  grid-column: 1 / 4;
}

.right {
  -ms-grid-column: 10;
  -ms-grid-column-span: 3;
  grid-column: 10 / 13;
}

.hero-img {
  -o-object-position: center;
  object-position: center;
}

.content {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
  -ms-flex-direction: column;
  flex-direction: column;
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
  max-width: 100%;
  row-gap: 50px;
}

.card {
  max-width: 900px;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
  -ms-flex-direction: column;
  flex-direction: column;
}

.card__wrap {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
  -ms-flex-direction: column;
  flex-direction: column;
  gap: 15px;
  background-color: #046494;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 16px;
  padding: 40px 30px 30px 30px;
}

.card {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
  -ms-flex-direction: column;
  flex-direction: column;
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
}

.card__title {
  display: inline-block;
  position: relative;
  padding: 8px 36px;
  margin-bottom: -24px;
  z-index: 10;
  width: -webkit-fit-content;
  width: -moz-fit-content;
  width: fit-content;
}

.card__title::before {
  content: "";
  position: absolute;
  top: 0;
  left: -10px;
  right: -10px;
  bottom: 0;
  background-color: #ffc600;
  border-radius: 6px;
  -webkit-transform: skewX(-30deg);
  -ms-transform: skewX(-30deg);
  transform: skewX(-30deg);
  z-index: -1;
}

.block__title {
  display: inline-block;
  position: relative;
  padding: 8px 36px;
  z-index: 10;
  width: -webkit-fit-content;
  width: -moz-fit-content;
  width: fit-content;
}

.block__title::before {
  content: "";
  position: absolute;
  top: 0;
  left: -10px;
  right: -10px;
  bottom: 0;
  background-color: #ffc600;
  border-radius: 6px;
  -webkit-transform: skewX(-30deg);
  -ms-transform: skewX(-30deg);
  transform: skewX(-30deg);
  z-index: -1;
}

.card__descr {
  text-align: center;
}

.card-video {
  width: 100%;
  max-width: 900px;
  border-radius: 16px;
  overflow: hidden;
}

.card-video video {
  width: 100%;
  height: auto;
  display: block;
}

.lazy-video {
  background-color: #000;
  /* Можно добавить кнопку play поверх poster для лучшего UX */
}

.advantages__list {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
  -ms-flex-direction: column;
  flex-direction: column;
  background-color: #046494;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 16px;
  padding: 40px 30px 30px 30px;
  gap: 8px;
}

.advantages__item {
  padding-left: 46px;
  background-image: url(../img/marker.png);
  background-repeat: no-repeat;
  background-position: left 10%;
  background-size: 24px;
}

.gallery {
  padding: 50px 0 0 0;
}

.gallery__container {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
  -ms-flex-direction: column;
  flex-direction: column;
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
}

.swiper {
  width: 100%;
  padding-top: 50px;
  padding-bottom: 50px;
}

.swiper-slide {
  background-position: center;
  background-size: cover;
  width: 750px;
  height: 420px;
}

.swiper-slide img {
  display: block;
  width: 100%;
  height: 100%;
  -o-object-fit: cover;
  object-fit: cover;
}

.swiper-button-next,
.swiper-button-prev {
  color: var(--color--main);
}

.swiper-pagination-bullet-active {
  background-color: var(--color--main);
}

.content-game {
  gap: 50px;
}

.card-game .card__wrap {
  padding: 30px 30px 30px 30px;
}
.app__list {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
  -webkit-box-pack: center;
  -ms-flex-pack: center;
  justify-content: center;
  gap: 30px;
}

.app__link {
  display: block;
  -webkit-transition: all 0.3s ease-in-out;
  transition: all 0.3s ease-in-out;
  opacity: 0.9;
}

.app__link:hover {
  -webkit-transform: scale(1.1);
  -ms-transform: scale(1.1);
  transform: scale(1.1);
  opacity: 1;
}

.app__link:active {
  -webkit-transform: scale(1.05);
  -ms-transform: scale(1.05);
  transform: scale(1.05);
}

.app__link:focus-visible {
  outline: 2px solid var(--color--main);
  outline-offset: 3px;
  -webkit-transform: scale(1.1);
  -ms-transform: scale(1.1);
  transform: scale(1.1);
  opacity: 1;
}

.app__img {
  display: block;
  width: 100%;
  height: auto;
}

.footer {
  background-color: var(--color--main);
  font-family: "OpenSans", Arial, Helvetica, sans-serif;
  color: var(--color--accent);
}

.footer__container {
  display: -ms-grid;
  display: grid;
  -ms-grid-columns: (1fr) [12];
  grid-template-columns: repeat(12, 1fr);
  padding: 0 20px;
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
  padding: 70px 85px;
}

.contact {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
  -ms-flex-direction: column;
  flex-direction: column;
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
  -webkit-box-pack: center;
  -ms-flex-pack: center;
  justify-content: center;
  gap: 7px;
}

.contact__link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--color--accent);
  text-decoration: none;
  transition: color 0.3s ease;
  font-size: 16px;
}

.contact__link:hover {
  color: #ffc600;
  text-decoration: underline;
}

.contact__icon {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  flex-shrink: 0;
}

/* Анимация "прыжка" */
@-webkit-keyframes bounce {
  0%,
  20%,
  50%,
  80%,
  100% {
    -webkit-transform: translateY(0) translateX(-50%);
    transform: translateY(0) translateX(-50%);
  }
  40% {
    -webkit-transform: translateY(-15px) translateX(-50%);
    transform: translateY(-15px) translateX(-50%);
  }
  60% {
    -webkit-transform: translateY(-7px) translateX(-50%);
    transform: translateY(-7px) translateX(-50%);
  }
}
@keyframes bounce {
  0%,
  20%,
  50%,
  80%,
  100% {
    -webkit-transform: translateY(0) translateX(-50%);
    transform: translateY(0) translateX(-50%);
  }
  40% {
    -webkit-transform: translateY(-15px) translateX(-50%);
    transform: translateY(-15px) translateX(-50%);
  }
  60% {
    -webkit-transform: translateY(-7px) translateX(-50%);
    transform: translateY(-7px) translateX(-50%);
  }
}

.img-wrap-paralax {
  position: relative;
  height: 100%;
  -webkit-perspective: 1000px;
  perspective: 1000px;
}

.img-paralax {
  position: sticky;
  top: 15%;
  -webkit-transform-style: preserve-3d;
  transform-style: preserve-3d;
  will-change: transform;
  -webkit-transition: -webkit-filter 0.4s ease-out;
  transition: -webkit-filter 0.4s ease-out;
  transition: filter 0.4s ease-out;
  transition: filter 0.4s ease-out, -webkit-filter 0.4s ease-out;
  -webkit-filter: drop-shadow(0 5px 10px rgba(0, 0, 0, 0.3));
  filter: drop-shadow(0 5px 10px rgba(0, 0, 0, 0.3));
}

/* Эффект "глубины" */
.img-wrap.left .img-paralax {
  -webkit-transform-origin: left center;
  -ms-transform-origin: left center;
  transform-origin: left center;
}

.img-wrap.right .img-paralax {
  -webkit-transform-origin: right center;
  -ms-transform-origin: right center;
  transform-origin: right center;
}

/* Анимация "дыхания" */
@-webkit-keyframes floatBreath {
  0%,
  100% {
    -webkit-transform: translateY(0) scale(1);
    transform: translateY(0) scale(1);
  }
  50% {
    -webkit-transform: translateY(-10px) scale(1.02);
    transform: translateY(-10px) scale(1.02);
  }
}
@keyframes floatBreath {
  0%,
  100% {
    -webkit-transform: translateY(0) scale(1);
    transform: translateY(0) scale(1);
  }
  50% {
    -webkit-transform: translateY(-10px) scale(1.02);
    transform: translateY(-10px) scale(1.02);
  }
}

/* Применяем анимацию когда нет скролла */
.no-scroll .img-paralax {
  -webkit-animation: floatBreath 4s ease-in-out infinite;
  animation: floatBreath 4s ease-in-out infinite;
}

/* Эффект при hover */
.img-paralax:hover {
  -webkit-filter: drop-shadow(0 10px 20px rgba(255, 255, 255, 0.5))
    brightness(1.1);
  filter: drop-shadow(0 10px 20px rgba(255, 255, 255, 0.5)) brightness(1.1);
  z-index: 10;
}

/* Стили для модального окна */
/* ========= Модальное окно для изображений (обновленная версия) ============ */
.modal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.9);
  overflow: auto;
  justify-content: center;
  align-items: center;
  flex-direction: column;
}

.modal-content {
  margin: auto;
  display: block;
  width: auto;
  max-width: 90%;
  max-height: 80vh;
  animation: zoom 0.3s;
  object-fit: contain;
}

@keyframes zoom {
  from {
    transform: scale(0.5);
    opacity: 0;
  }
  to {
    transform: scale(1);
    opacity: 1;
  }
}

.close {
  position: absolute;
  top: 20px;
  right: 35px;
  color: #f1f1f1;
  font-size: 40px;
  font-weight: bold;
  transition: 0.3s;
  cursor: pointer;
  z-index: 2;
}

.close:hover,
.close:focus {
  color: #ffc600;
  text-decoration: none;
}

.caption {
  margin: 15px auto;
  display: block;
  width: 80%;
  text-align: center;
  color: #ccc;
  padding: 10px 0;
  font-size: 20px;
  font-family: "FiraSans", Arial, sans-serif;
}

/* Навигационные кнопки */
.modal-nav {
  position: fixed;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  top: 50%;
  transform: translateY(-50%);
  padding: 0 20px;
  box-sizing: border-box;
  pointer-events: none;
  z-index: 1;
}

.modal-prev,
.modal-next {
  pointer-events: all;
  background: rgba(69, 71, 152, 0.7);
  color: white;
  border: none;
  font-size: 30px;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  font-family: "LilitaOneRus", sans-serif;
}

.modal-prev:hover,
.modal-next:hover {
  background: rgba(255, 198, 0, 0.9);
  transform: scale(1.1);
}

.modal-prev {
  margin-left: 20px;
}

.modal-next {
  margin-right: 20px;
}

/* Анимация перехода между изображениями */
.modal-img-enter {
  opacity: 0;
  transform: scale(0.9);
}

.modal-img-enter-active {
  opacity: 1;
  transform: scale(1);
  transition: all 0.3s ease-out;
}
