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

:root {
  --color--main: #ffffff;
  --color--accent: rgb(69, 71, 152);
  --color--text: #67301f;
  --color--outline: #571434;
}

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

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

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

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

@font-face {
  font-family: "Roboto";
  src: local("Roboto-Black"), url("../fonts/Roboto-Black.woff2") format("woff2"),
    url("../fonts/Roboto-Black.woff") format("woff");
  font-weight: 900;
  font-style: normal;
  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: "PTSansPro", 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 {
  background-color: #efce9f;
}

.page__wrap {
  background-image: url(../img/pattern.png);
}
.page__container {
  background: -webkit-gradient(
    linear,
    left top,
    right top,
    from(#ca9d6f),
    color-stop(25%, transparent),
    color-stop(50%, transparent),
    color-stop(75%, transparent),
    to(#ca9d6f)
  );
  background: linear-gradient(
    90deg,
    #ca9d6f 0%,
    transparent 25%,
    transparent 50%,
    transparent 75%,
    #ca9d6f 100%
  );
  z-index: -1;
}

.title {
  text-align: center;
  color: var(--color--main);
  font-family: "PTSansPro", Arial, Helvetica, sans-serif;
  font-weight: 900;
  font-size: 42px;
  line-height: 100%;
  letter-spacing: 0.15rem;
  text-shadow: 4px 4px 0 var(--color--outline), 4px -4px 0 var(--color--outline),
    -4px 4px 0 var(--color--outline), -4px -4px 0 var(--color--outline),
    4px 0px 0 var(--color--outline), 0px 4px 0 var(--color--outline),
    -4px 0px 0 var(--color--outline), 0px -4px 0 var(--color--outline),
    4px 4px 4px var(--color--outline);
}

.descr {
  font-family: "PTSansPro", Arial, Helvetica, sans-serif;
  font-weight: 700;
  font-size: 24px; /* Округлил 23.99px до 24px */
  line-height: 100%;
  letter-spacing: 0.25%;
  text-align: center;
  color: var(--color--text);
  -webkit-font-smoothing: antialiased;
}

/* ====== Header ====== */

.header__wrap {
  position: relative;
  aspect-ratio: 16/9;
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center;
  background-image: url(../img/header_art.png);
  display: -ms-grid;
  display: grid;
}

/* WebP поддержка с фолбэком */
.header__wrap {
  background-image: url(../img/header_art.png);
}

@supports (background-image: url(../img/header_art.webp)) {
  .header__wrap {
    background-image: url(../img/header_art.webp);
  }
}

.header__wrap::after {
  position: absolute;
  bottom: 0;
  left: 0;
  content: "";
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center;
  width: 100%;
  height: 270px;
  /* background: linear-gradient(
    180deg,
    transparent 0%,
     rgba(239, 206, 159, 0.2) 15%,
    rgba(239, 206, 159, 0.3) 25%,
     rgba(239, 206, 159, 0.4) 45%,
      rgba(239, 206, 159, 0.5) 50%,
    rgba(239, 206, 159, 0.5) 65%,
    transparent
  ); */
}

/* WebP поддержка для маски */
.header__wrap::after {
  background-image: url(../img/mask.png);
}

@supports (background-image: url(../img/mask.webp)) {
  .header__wrap::after {
    background-image: url(../img/mask.webp);
  }
}

.header__content {
  position: relative;
  height: 100%;
  /* display: flex;
  flex-direction: column;
   */
  display: -ms-grid;
  display: grid;
  -ms-grid-columns: (1fr) [12];
  grid-template-columns: repeat(12, 1fr);
  -webkit-box-pack: center;
  -ms-flex-pack: center;
  justify-content: center;
  padding: 20px;
}

.game-link {
  display: block;
  /* max-width: 600px;
  width: 100%; */
  -ms-grid-column: 5;
  -ms-grid-column-span: 4;
  grid-column: 5 / 9;
  text-align: center;
  z-index: 10;
  margin-top: 15%;
  /* background-color: #ffc600; */
}

.game-link img {
  /* ;
  height: auto; */
  width: 90%;
}

/* ховер */

.game-link {
  display: block;
  -ms-grid-column: 5;
  -ms-grid-column-span: 4;
  grid-column: 5 / 9;
  text-align: center;
  z-index: 10;
  margin-top: 15%;
  -webkit-transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  /* существующие стили */
}

.game-link:hover {
  -webkit-transform: scale(1.08) translateY(-5px);
  -ms-transform: scale(1.08) translateY(-5px);
  transform: scale(1.08) translateY(-5px);
  -webkit-filter: drop-shadow(0 5px 20px rgba(255, 198, 0, 0.4))
    drop-shadow(0 0 25px rgba(255, 255, 255, 0.3));
  filter: drop-shadow(0 5px 20px rgba(255, 198, 0, 0.4))
    drop-shadow(0 0 25px rgba(255, 255, 255, 0.3));
}

.game-link:hover img {
  -webkit-animation: pulse 1.5s infinite alternate;
  animation: pulse 1.5s infinite alternate;
}

@-webkit-keyframes pulse {
  0% {
    -webkit-transform: scale(1);
    transform: scale(1);
  }
  100% {
    -webkit-transform: scale(1.03);
    transform: scale(1.03);
  }
}

@keyframes pulse {
  0% {
    -webkit-transform: scale(1);
    transform: scale(1);
  }
  100% {
    -webkit-transform: scale(1.03);
    transform: scale(1.03);
  }
}

.game-link:active {
  -webkit-transform: scale(1.04) translateY(-2px);
  -ms-transform: scale(1.04) translateY(-2px);
  transform: scale(1.04) translateY(-2px);
  -webkit-filter: drop-shadow(0 3px 12px rgba(255, 198, 0, 0.3));
  filter: drop-shadow(0 3px 12px rgba(255, 198, 0, 0.3));
}

.game-link:focus-visible {
  outline: 3px solid #ffc600;
  outline-offset: 8px;
  -webkit-transform: scale(1.06);
  -ms-transform: scale(1.06);
  transform: scale(1.06);
  border-radius: 12px;
  -webkit-box-shadow: 0 0 0 4px rgba(255, 198, 0, 0.2);
  box-shadow: 0 0 0 4px rgba(255, 198, 0, 0.2);
}

/* ==Кнопка прокрутки вниз== */

.scroll-down-btn {
  position: absolute;
  bottom: 50px;
  left: 50%;
  -webkit-transform: translateX(-50%);
  -ms-transform: translateX(-50%);
  transform: translateX(-50%);
  z-index: 10;
  background: transparent;
  border: none;
  cursor: pointer;
  -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 {
  -webkit-transform: translateX(-50%) translateY(5px);
  -ms-transform: translateX(-50%) translateY(5px);
  transform: translateX(-50%) translateY(5px);
}

.scroll-down-btn:focus-visible {
  outline: 2px solid var(--color--main);
  outline-offset: 3px;
    border-radius: 16px;

}

.scroll-down-icon {
  width: 90px;
  height: 75px;
  -webkit-animation: bounce 2s infinite;
  animation: bounce 2s infinite;
}

@-webkit-keyframes bounce {
  0%,
  20%,
  50%,
  80%,
  100% {
    -webkit-transform: translateY(0);
    transform: translateY(0);
  }
  40% {
    -webkit-transform: translateY(-10px);
    transform: translateY(-10px);
  }
  60% {
    -webkit-transform: translateY(-5px);
    transform: translateY(-5px);
  }
}

@keyframes bounce {
  0%,
  20%,
  50%,
  80%,
  100% {
    -webkit-transform: translateY(0);
    transform: translateY(0);
  }
  40% {
    -webkit-transform: translateY(-10px);
    transform: translateY(-10px);
  }
  60% {
    -webkit-transform: translateY(-5px);
    transform: translateY(-5px);
  }
}

/* ====== Main====== */

.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;
  padding: 0 30px;
}

.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;
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
}

.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: #fbecd5;
  border: 5px solid #8a543c;
  border-radius: 16px;
  padding: 90px 30px 30px 30px;
  -webkit-box-shadow: 0px 4px 3px 1px rgba(138, 84, 60, 0.6);
  box-shadow: 0px 4px 3px 1px rgba(138, 84, 60, 0.6);
}

.card__title {
  display: inline-block;
  position: relative;
  padding: 18px 36px;
  margin-bottom: -87px;
  background-image: url(../img/TitleBG.png);
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center center;
  text-align: center;
  z-index: 10;
  width: -webkit-fit-content;
  width: -moz-fit-content;
  width: fit-content;
  min-height: 100px;
  min-width: 440px;
}

.block__title {
  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;
  position: relative;
  padding: 18px 36px;
  margin-top: -50px;
  z-index: 10;
  background-image: url(../img/title_bg_sm.png);
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center center;
  width: -webkit-fit-content;
  width: -moz-fit-content;
  width: fit-content;
  min-width: 610px;
  min-height: 100px;
  text-align: center;
}

.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;
  gap: 15px;
}

.advantages__item .descr {
  text-align: start;
}

.advantages__item:not(:first-child) {
  position: relative;
  padding-left: 30px;
  list-style-type: none;
}

.advantages__item:not(:first-child)::before {
  content: "";
  position: absolute;
  left: 0;
  top: 30%;
  -webkit-transform: translateY(-50%);
  -ms-transform: translateY(-50%);
  transform: translateY(-50%);
  width: 15px;
  height: 15px;
  background-color: #922f5e;
  clip-path: polygon(50% 0%, 100% 50%, 50% 100%, 0% 50%);
}

.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;
  background-image: url(../img/book_bg.png);
  background-repeat: no-repeat;
  background-size: contain;
  background-position-x: center;
  background-position-y: 15%;
}

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

.swiper-slide {
  background-position: center;
  background-size: cover;
   width: 850px; 
    height: 480px;
  -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;
}

.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);
}

.swiper-pagination-bullets.swiper-pagination-horizontal {
  --swiper-pagination-bottom: 20px; 
  margin-bottom: 20px; 
}


.swiper-slide {
  -webkit-box-shadow: 0px 10px 0px 0px rgba(0, 0, 0, 0.2);
  box-shadow: 0px 10px 0px 0px rgba(0, 0, 0, 0.2);
  -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;
}

.swiper-slide-prev {
  -webkit-box-shadow: -8px 12px 0px -2px rgba(0, 0, 0, 0.2);
  box-shadow: -8px 12px 0px -2px rgba(0, 0, 0, 0.2);
  -webkit-transform: perspective(800px) rotateY(5deg) translateZ(0);
  transform: perspective(800px) rotateY(5deg) translateZ(0);
}

.swiper-slide-next {
  -webkit-box-shadow: 8px 12px 0px -2px rgba(0, 0, 0, 0.2);
  box-shadow: 8px 12px 0px -2px rgba(0, 0, 0, 0.2);
  -webkit-transform: perspective(800px) rotateY(-5deg) translateZ(0);
  transform: perspective(800px) rotateY(-5deg) translateZ(0);
}

.swiper-slide-active {
  -webkit-transform: scale(1.05) perspective(800px) translateZ(10px);
  transform: scale(1.05) perspective(800px) translateZ(10px);
  z-index: 10;
  -webkit-box-shadow: 0px 15px 0px -3px rgba(0, 0, 0, 0.3);
  box-shadow: 0px 15px 0px -3px rgba(0, 0, 0, 0.3);
}

.swiper-button-next,
.swiper-button-prev {
  color: var(--color--main);
  background: rgba(0, 0, 0, 0.3);
  width: 50px;
  height: 50px;
  border-radius: 50%;
  -webkit-transition: all 0.3s ease;
  transition: all 0.3s ease;
}

.swiper-button-next:hover,
.swiper-button-prev:hover {
  background: rgba(0, 0, 0, 0.6);
  -webkit-transform: scale(1.1);
  -ms-transform: scale(1.1);
  transform: scale(1.1);
}
.swiper-button-next:focus-visible,
.swiper-button-prev:focus-visible {
 outline: 2px solid #ffc600;
  outline-offset: 2px;
  background: rgba(255, 198, 0, 0.9);
}
.swiper-button-next:after,
.swiper-button-prev:after {
  font-size: 24px;
  font-weight: bold;
}

.swiper-pagination-bullet {
  background: var(--color--main);
  opacity: 0.5;
  width: 12px;
  height: 12px;
}

.swiper-pagination-bullet-active {
  background: var(--color--main);
  opacity: 1;
  -webkit-transform: scale(1.2);
  -ms-transform: scale(1.2);
  transform: scale(1.2);
}

.swiper-pagination-bullet:focus-visible {
  outline: 3px solid #FFC600; /* Ярко-желтый для контраста */
  outline-offset: 2px;
  transform: scale(1.3);
  border: 2px solid #922F5E;
}

.swiper-pagination-bullet:hover {
  border: 2px solid #922F5E;
  opacity: 0.8;
  transform: scale(1.1);
}

.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;
   filter: drop-shadow(0 5px 15px rgba(0, 0, 0, 0.3));
}

.app__link:hover {
  -webkit-transform: scale(1.1);
  -ms-transform: scale(1.1);
  transform: scale(1.1);
  opacity: 1;
   filter: drop-shadow(0 8px 25px rgba(0, 0, 0, 0.7));
}

.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;
   border-radius: 20px;
  -webkit-transform: scale(1.1);
  -ms-transform: scale(1.1);
  transform: scale(1.1);
  opacity: 1;
}

/* Стили для неактивных ссылок */

.app__link.disabled {
  position: relative;
  pointer-events: none;
  opacity: 0.6;
  cursor: not-allowed;
}

.app__link.disabled::after {
  content: "Скоро";
  position: absolute;
  top: 75%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: rgba(0, 0, 0, 0.8);
  color: white;
  padding: 4px 8px;
  border-radius: 4px;
  font-size: 14px;
  font-weight: bold;
}

.app__link.disabled:hover {
  transform: none !important;
}

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

/* ====== Footer ====== */

.footer {
  background-color: var(--color--main);
  font-family: "Roboto", Arial, Helvetica, sans-serif; /* Исправлено на Roboto */
  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: -webkit-inline-box;
  display: -ms-inline-flexbox;
  display: inline-flex;
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
  gap: 8px;
  color: var(--color--accent);
  text-decoration: none;
  -webkit-transition: color 0.3s ease;
  transition: color 0.3s ease;
  font-size: 16px;
}

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

.contact__link:focus-visible {
  outline: 2px solid var(--color--accent);
  outline-offset: 2px;
  border-radius: 2px;
}

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

.reg {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  gap: 7px;
}

/* Стили для модального окна */
/* ========= Модальное окно для изображений (обновленная версия) ============ */
.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;
  -webkit-box-pack: center;
  -ms-flex-pack: center;
  justify-content: center;
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
  -ms-flex-direction: column;
  flex-direction: column;
}

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

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

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

.close {
  position: absolute;
  top: 20px;
  right: 35px;
  color: #f1f1f1;
  font-size: 40px;
  font-weight: bold;
  -webkit-transition: 0.3s;
  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: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
  -webkit-box-pack: justify;
  -ms-flex-pack: justify;
  justify-content: space-between;
  top: 50%;
  -webkit-transform: translateY(-50%);
  -ms-transform: translateY(-50%);
  transform: translateY(-50%);
  padding: 0 20px;
  -webkit-box-sizing: border-box;
  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: -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;
  -webkit-transition: all 0.3s ease;
  transition: all 0.3s ease;
  font-family: "LilitaOneRus", sans-serif;
}

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

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

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

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

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