:root {
  --primary-color: #6a5acd; /* Фиолетово-голубой */
  --primary-dark: #483d8b;
  --primary-light: #9370db;
  --text-color: #ffffff;
  --dark-bg: #1a1a2e;
  --light-bg: #1a1a2e;
  --accent-color: #ff7f50;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  transition: all 0.3s ease;
}

body {
  font-family: "Arial", sans-serif;
  color: var(--text-color);
  background-color: var(--dark-bg);
  line-height: 1.6;
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
  font-size: 16px;
}

/* НАВИГАЦИОННАЯ ПАНЕЛЬ */
.nav-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background-color: var(--primary-color);
  padding: 15px 5%;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.nav-links {
  display: flex;
  gap: 25px;
}

.nav-link {
  color: white;
  text-decoration: none;
  font-size: 18px;
  font-weight: bold;
  padding: 5px 15px;
  border-radius: 5px;
  transition: background-color 0.3s;
}

.nav-link:hover {
  background-color: var(--primary-dark);
}

/* ПЕРЕКЛЮЧАТЕЛЬ ЯЗЫКОВ - ДОБАВЛЕНО! */
.language-switcher {
  display: flex;
  gap: 12px;
  align-items: center;
}

.lang-btn {
  width: 40px;
  height: 30px;
  border-radius: 8px;
  overflow: hidden;
  border: 2px solid transparent;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.2);
  position: relative;
  background-size: cover;
  background-position: center;
}

.lang-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.lang-btn.active {
  border-color: var(--accent-color);
  box-shadow: 0 0 0 3px rgba(255, 127, 80, 0.4);
}

.lang-btn.ru {
  background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 9 6"><rect fill="white" stroke="white" stroke-width="0.05" width="9" height="2" y="0"/><rect fill="%230039A6" stroke="%230039A6" stroke-width="0.05" width="9" height="2" y="2"/><rect fill="%23D52B1E" stroke="%23D52B1E" stroke-width="0.05" width="9" height="2" y="4"/></svg>');
  border: 1px solid #eee;
}

.lang-btn.en {
  background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 60 30"><path fill="%23012169" d="M0 0v30h60V0z"/><path stroke="%23fff" stroke-width="6" d="M0 0l60 30m0-30L0 30"/><path stroke="%23C8102E" stroke-width="4" d="M0 0l60 30m0-30L0 30" stroke-linecap="square"/><path stroke="%23fff" stroke-width="10" d="M30 0v30M0 15h60"/><path stroke="%23C8102E" stroke-width="6" d="M30 0v30M0 15h60"/></svg>');
  border: 1px solid #eee;
}

/* Остальные стили остаются без изменений */
.hero {
  position: relative;
  height: 750px;
  background: url("images/foto1.png")
    no-repeat center center;
  background-size: cover;
  display: flex;
  align-items: center;
}

.hero-overlay {
  position: absolute;
  right: 15%;
  background-color: rgba(0, 0, 0, 0.7);
  padding: 40px;
  width: 350px;
  height: 750px;
}

.logo {
  width: 250px;
  height: 200px;
  display: flex;
  margin-bottom: 30px;
}

.pre-order-btn {
  display: inline-block;
  background-color: var(--primary-color);
  color: white;
  padding: 15px 40px;
  text-decoration: none;
  font-weight: bold;
  font-size: 18px;
  border-radius: 5px;
  transform: skew(-20deg);
  transition: background-color 0.3s;
  margin-top: 275px;
}

.pre-order-btn:hover {
  background-color: var(--primary-dark);
}

.pre-order-btn span {
  display: inline-block;
  transform: skew(20deg);
}

.section-divider {
  background-color: var(--primary-color);
  color: white;
  padding: 15px 0;
  text-align: center;
  position: relative;
}

.section-divider h2 {
  display: inline-block;
  background-color: var(--primary-color);
  padding: 10px 40px;
  transform: skew(-20deg);
  border: 2px solid white;
}

.section-divider h2 span {
  display: inline-block;
  transform: skew(20deg);
}

.section {
  padding: 100px 10% 50px;
  scroll-margin-top: 80px;
  overflow: visible;
}
.dark-section {
  padding-top: 120px; /* Większy odstęp dla ciemnych sekcji */
}

@media (max-width: 768px) {
  .section {
    padding: 120px 5% 30px;
    scroll-margin-top: 100px;
  }
}

@media (max-width: 768px) {
  .section {
    padding: 120px 5% 30px;
  }
}

.dark-section {
  background-color: var(--dark-bg);
  padding-top: 120px;
}

.light-section {
  background-color: var(--light-bg);
  color: #333;
  overflow: visible;
  position: relative;
  padding-top: 120px;
  padding-bottom: 80px;
  min-height: 800px;
}

.info-content {
  display: flex;
  gap: 40px;
  align-items: center;
}

.info-image {
  flex: 1;
  position: relative;
  overflow: hidden;
  height: 400px;
  clip-path: polygon(0 0, 80% 0, 60% 100%, 0% 100%);
}

.info-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.info-text {
  background: linear-gradient(to right, #9e5bba, #dd5e89);
  color: white;
  border-radius: 10px;
  width: 600px;
  padding: 16px;
  box-sizing: border-box;
  font-family: sans-serif;
  transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  transform-origin: center;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.info-text:hover {
  transform: scale(1.03);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3);
}

.info-text p {
  margin-bottom: 20px;
}

.characters-container {
  display: flex;
  flex-direction: column;
  gap: 30px;
}

.character-selector {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-bottom: 30px;
}

.character-btn {
  background-color: var(--primary-color);
  color: white;
  border: none;
  padding: 10px 20px;
  border-radius: 5px;
  cursor: pointer;
  font-size: 16px;
  transition: background-color 0.3s;
}

.character-btn:hover {
  background-color: var(--primary-dark);
}

.character-btn.active {
  background-color: var(--accent-color);
}

.character-info {
  color: white;
  background-color: rgb(67, 88, 145);
  padding: 30px;
  border-radius: 10px;
  min-height: 300px;

  opacity: 1;
  transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275),
    box-shadow 0.4s ease;
  transform-origin: center;
}

.character-info:hover {
  transform: scale(1.02);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

.character-info.hidden {
  display: none;
}

.gallery-section {
  position: relative;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 70px;
}

.gallery-container {
  position: relative;
  overflow: hidden;
}

.gallery-slider {
  display: flex;
  transition: transform 0.5s ease;
  will-change: transform;
}

.gallery-item {
  flex: 0 0 calc(100% / 3 - 20px);
  margin: 0 10px;
  border: 5px solid white;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
  transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  transform-origin: center;
  cursor: pointer;
}

.gallery-item:hover {
  transform: scale(1.05);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.4);
}

.gallery-item img {
  width: 100%;
  height: 300px;
  object-fit: cover;
  transition: transform 0.5s;
}

.gallery-item:hover img {
  transform: scale(1.1);
}

.gallery-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 50px;
  height: 50px;
  background-color: rgba(106, 90, 205, 0.7);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 100;
  transition: all 0.3s ease;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

.gallery-arrow:hover {
  background-color: var(--accent-color);
  transform: translateY(-50%) scale(1.1);
}

.gallery-arrow.prev {
  left: 10px;
}

.gallery-arrow.next {
  right: 10px;
}

.gallery-arrow svg {
  width: 30px;
  height: 30px;
  fill: white;
}

.gallery-modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.9);
  z-index: 1000;
  justify-content: center;
  align-items: center;
}

.modal-content {
  max-width: 90%;
  max-height: 90%;
  position: relative;
}

.modal-content img {
  max-width: 100%;
  max-height: 80vh;
  border-radius: 10px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.modal-controls {
  position: absolute;
  top: 50%;
  width: 100%;
  display: flex;
  justify-content: space-between;
  transform: translateY(-50%);
  padding: 0 20px;
}

.modal-arrow {
  width: 60px;
  height: 60px;
  background-color: rgba(106, 90, 205, 0.7);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
}

.modal-arrow:hover {
  background-color: var(--accent-color);
  transform: scale(1.1);
}

.modal-close {
  position: absolute;
  top: 20px;
  right: 30px;
  width: 40px;
  height: 40px;
  cursor: pointer;
  background: rgba(255, 127, 80, 0.8);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

.modal-close:hover {
  transform: rotate(90deg) scale(1.1);
  background: rgba(255, 99, 71, 1);
}

.modal-close::before,
.modal-close::after {
  content: "";
  position: absolute;
  width: 20px;
  height: 3px;
  background: white;
}

.modal-close::before {
  transform: rotate(45deg);
}

.modal-close::after {
  transform: rotate(-45deg);
}

.image-counter {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  color: white;
  background: rgba(0, 0, 0, 0.5);
  padding: 5px 15px;
  border-radius: 20px;
  font-size: 16px;
}

.news-content {
  display: flex;
  gap: 40px;
  align-items: center;
}

.news-image {
  flex: 1;
  position: relative;
  overflow: hidden;
  height: 400px;
  clip-path: polygon(20% 0, 100% 0, 100% 100%, 0% 100%);
}

.news-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.news-text {
  background: linear-gradient(to right, #9e5bba, #dd5e89);
  color: white;
  border-radius: 10px;
  width: 600px;
  padding: 16px;
  box-sizing: border-box;
  font-family: sans-serif;
  transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  transform-origin: center;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.perfect-connection:hover {
  transform: scale(1.02);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

.section-light-section {
  background-color: #1a1a2e;
  padding: 50px 10%;
}

.platforms {
  background-color: var(--primary-dark);
  padding: 60px 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.platforms::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(
    90deg,
    transparent,
    var(--accent-color),
    transparent
  );
}

.platforms h3 {
  margin-bottom: 40px;
  font-size: 28px;
  text-transform: uppercase;
  letter-spacing: 2px;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
  position: relative;
  display: inline-block;
  padding-bottom: 15px;
}

.platforms h3::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 25%;
  width: 50%;
  height: 3px;
  background: linear-gradient(
    90deg,
    transparent,
    var(--accent-color),
    transparent
  );
}

.platform-links {
  display: flex;
  justify-content: center;
  gap: 40px;
  margin-top: 20px;
  flex-wrap: wrap;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.platform-link {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-decoration: none;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  width: 180px;
  padding: 20px 15px;
  border-radius: 15px;
  background: rgba(0, 0, 0, 0.2);
  backdrop-filter: blur(5px);
  position: relative;
  overflow: hidden;
  z-index: 1;
}

.platform-link::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.1) 0%,
    rgba(255, 255, 255, 0.05) 50%,
    transparent 100%
  );
  z-index: -1;
  opacity: 0.7;
}

.platform-link::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: var(--accent-color);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s ease;
}

.platform-link:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3);
}

.platform-link:hover::after {
  transform: scaleX(1);
}

.platform-icon {
  width: 100px;
  height: 100px;
  border-radius: 20px;
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 20px;
  transition: all 0.3s ease;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

.platform-link:hover .platform-icon {
  transform: scale(1.1) rotate(5deg);
  box-shadow: 0 12px 25px rgba(0, 0, 0, 0.3);
}

.platform-icon img {
  width: 70px;
  height: 70px;
  object-fit: contain;
  transition: all 0.3s ease;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
}

.platform-link:hover .platform-icon img {
  transform: scale(1.15);
  filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.4));
}

.platform-name {
  color: white;
  font-weight: bold;
  font-size: 18px;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
  transition: all 0.3s ease;
  letter-spacing: 1px;
}

.platform-link:hover .platform-name {
  color: var(--accent-color);
  text-shadow: 0 0 10px rgba(255, 127, 80, 0.5);
}

.steam-icon {
  background: linear-gradient(135deg, #1b2838, #2a475e);
}
.boosty-icon {
  background: #fff;
}
.playmarket-icon {
  background: linear-gradient(135deg, #0f9d58, #00c853);
}

/* Адаптивность для навигации */
@media (max-width: 768px) {
  .nav-bar {
    flex-direction: column;
    gap: 15px;
    padding: 15px;
  }

  .nav-links {
    width: 100%;
    justify-content: center;
  }

  .language-switcher {
    margin-top: 10px;
  }
}

@media (max-width: 480px) {
  .nav-links {
    flex-wrap: wrap;
    gap: 10px;
  }

  .nav-link {
    font-size: 16px;
    padding: 5px 10px;
  }
}

/* Остальная адаптивность остается без изменений */
@media (max-width: 1200px) {
  .gallery-section {
    padding: 0 60px;
  }
}

@media (max-width: 992px) {
  .gallery-item {
    flex: 0 0 calc(100% / 2 - 20px);
  }

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

@media (max-width: 768px) {
  .gallery-section {
    padding: 0 40px;
  }

  .gallery-item {
    flex: 0 0 calc(100% - 20px);
  }

  .gallery-arrow {
    width: 45px;
    height: 45px;
  }

  .info-content,
  .news-content {
    flex-direction: column;
  }

  .info-image,
  .news-image {
    width: 100%;
    clip-path: none;
    height: 300px;
  }

  .character-selector {
    flex-wrap: wrap;
  }

  .info-text,
  .news-text {
    padding: 20px 0;
    width: 100%;
  }

  .platform-links {
    gap: 20px;
  }

  .platform-link {
    width: 140px;
    padding: 15px 10px;
  }

  .platform-icon {
    width: 80px;
    height: 80px;
  }

  .platform-icon img {
    width: 50px;
    height: 50px;
  }

  .platform-name {
    font-size: 16px;
  }
}

@media (max-width: 480px) {
  .gallery-section {
    padding: 0 30px;
  }

  .gallery-arrow {
    width: 40px;
    height: 40px;
  }

  .gallery-arrow svg {
    width: 24px;
    height: 24px;
  }

  .platform-links {
    gap: 10px;
  }

  .platform-link {
    width: 45%;
    margin-bottom: 15px;
  }
}

.characters-inline {
  display: flex;
  justify-content: center;
  gap: 40px;
  flex-wrap: wrap;
  padding: 30px 0;
}

.character {
  cursor: pointer;
  text-align: center;
  transition: filter 0.3s ease;
}

.character img {
  width: 200px;
  height: 200px;
  object-fit: cover;
  border-radius: 12px;
  filter: brightness(40%);
  transition: filter 0.3s ease;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
}

.character.active img {
  filter: brightness(100%);
}

.description {
  margin-top: 15px;
  display: none;
  color: #6806b9;
}

.character.active .description {
  display: block;
}

/* Основной контейнер */
.perfect-fusion-block {
  display: flex;
  width: 100%;
  height: 400px;
  position: relative;
  margin: 0 auto;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
  overflow: hidden;
}

/* Контейнер для изображения с многоугольной формой */
.polygon-image-container {
  width: 40%;
  height: 100%;
  position: relative;
  clip-path: polygon(0 0, 80% 0, 60% 100%, 0% 100%);
  shape-outside: polygon(0 0, 80% 0, 60% 100%, 0% 100%);
}

.polygon-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Полноразмерный текстовый блок */
.full-width-text {
  flex: 1;
  background: linear-gradient(to right, #9e5bba, #dd5e89);
  color: white;
  position: relative;
  margin-left: -50px;
  padding-left: 50px;
  height: 100%;
  display: flex;
  align-items: center;
}

/* Заполнение треугольного пространства */
.full-width-text::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  width: 50px;
  height: 100%;
  background: inherit;
  clip-path: polygon(0 0, 100% 0, 0% 100%);
}

.text-content-wrapper {
  padding: 40px;
  width: 100%;
  max-width: 800px;
}

/* Адаптивность */
@media (max-width: 768px) {
  .perfect-fusion-block {
    flex-direction: column;
    height: auto;
  }

  .polygon-image-container {
    width: 100%;
    height: 300px;
    clip-path: none;
  }

  .full-width-text {
    margin-left: 0;
    padding-left: 0;
  }

  .full-width-text::before {
    display: none;
  }

  .text-content-wrapper {
    padding: 30px;
    max-width: 100%;
  }
}

/* Основной контейнер */
.final-fusion-container {
  display: flex;
  width: 100%;
  height: 400px;
  position: relative;
  margin: 0 auto;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

/* Изображение с фигурным вырезом */
.image-with-cut {
  width: 45%;
  height: 100%;
  position: relative;
  clip-path: polygon(0 0, 80% 0, 60% 100%, 0% 100%);
  shape-outside: polygon(0 0, 80% 0, 60% 100%, 0% 100%);
}

.cut-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Текстовый блок с заполненным треугольником */
.text-seamless {
  flex: 1;
  background: linear-gradient(to right, #9e5bba, #dd5e89);
  color: white;
  position: relative;
  margin-left: -60px;
  padding-left: 60px;
  height: 100%;
  display: flex;
  align-items: center;
}

/* Заполнение треугольного пространства */
.text-seamless::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  width: 60px;
  height: 100%;
  background: inherit;
  clip-path: polygon(0 0, 100% 0, 0% 100%);
  z-index: 0;
}

.text-final-content {
  padding: 40px;
  width: 100%;
  position: relative;
  z-index: 1;
}

/* Форма изображения в секции «Новости» */
.perfect-connection.reverse {
  flex-direction: row-reverse;
}

.perfect-connection.reverse .shaped-visual-area {
  clip-path: polygon(40% 0, 100% 0, 100% 100%, 20% 100%);
  margin-right: 0;
  margin-left: -15%;
}

.perfect-connection.reverse .extended-text-area {
  padding-right: 15%;
  padding-left: 0;
}

.perfect-connection.reverse .extended-text-area::before {
  left: auto;
  right: 0;
  clip-path: polygon(0 0, 100% 0, 100% 100%);
}

/* Адаптивность */
@media (max-width: 768px) {
  .final-fusion-container {
    flex-direction: column;
    height: auto;
  }

  .image-with-cut {
    width: 100%;
    height: 300px;
    clip-path: none;
  }

  .text-seamless {
    margin-left: 0;
    padding-left: 0;
  }

  .text-seamless::before {
    display: none;
  }

  .text-final-content {
    padding: 30px;
  }
}

/* Основной контейнер */
.perfect-connection {
  display: flex;
  width: 100%;
  height: 400px;
  left: 0px;
  position: relative;
  background: linear-gradient(to right, #9e5bba, #dd5e89); /* Общий фон */
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
  overflow: hidden;
}

.shaped-visual-area {
  width: 35%;
  height: 100%;
  position: relative;
  clip-path: polygon(0 0, 80% 0, 60% 100%, 0% 100%);
  margin-right: -15%;
}

.custom-shaped-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.extended-text-area {
  flex: 1;
  position: relative;
  padding-left: 15%;
  height: 100%;
  display: flex;
  align-items: center;
}

.text-container {
  padding: 40px;
  color: white;
  position: relative;
  z-index: 2;
  left: 0;
}

/* Заполнение треугольного пространства */
.extended-text-area::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  width: 15%;
  height: 100%;
  background: inherit;
  clip-path: polygon(0 0, 100% 0, 0% 100%);
  z-index: 1;
}

/* Адаптивность */
@media (max-width: 768px) {
  .perfect-connection {
    flex-direction: column;
    height: auto;
    background: none;
  }

  .shaped-visual-area {
    width: 100%;
    height: 300px;
    clip-path: none;
    margin-right: 0;
  }

  .extended-text-area {
    padding-left: 0;
    background: linear-gradient(to right, #9e5bba, #dd5e89);
  }

  .extended-text-area::before {
    display: none;
  }

  .text-container {
    padding: 30px;
  }
}

footer img {
  margin-left: 0;
  width: 150px;
}

/* Przewrócenie tekstu lustrowo */
.perfect-connection.reverse {
  flex-direction: row-reverse;
}

.perfect-connection.reverse .extended-text-area {
  padding-left: 0;
  padding-right: 15%;
}

.perfect-connection.reverse .extended-text-area::before {
  left: auto;
  right: 0;
  clip-path: polygon(0 0, 100% 0, 100% 100%);
}

footer {
  margin: 0;
  padding: 0px;
  background-color: #000000;
  text-align: left;
}

html {
  scroll-padding-top: 80px !important;
}

.character img {
  width: 300px;
  height: auto;
  border: none;
  box-shadow: none;
  border-radius: 0;
}

.character img {
  width: 300px;
  height: auto;
  border: none;
  box-shadow: none;
  border-radius: 0;
}

.characters-inline {
  position: relative;
  height: 500px;
  display: flex;
  justify-content: center;
  align-items: center;
  perspective: 1000px;
}

.character {
  position: absolute;
  transition: transform 0.4s ease, z-index 0.4s ease;
}

/* Центр — самый большой */
.character[data-id="3"] {
  transform: translateX(0) scale(1) rotateY(0deg);
  z-index: 4;
}

/* В сторону уменьшение */
/* В сторону уменьшение */
.character[data-id="2"] {
  transform: translateX(-180px) scale(0.9);
  z-index: 3;
}
.character[data-id="4"] {
  transform: translateX(180px) scale(0.9);
  z-index: 3;
}

.character[data-id="1"] {
  transform: translateX(-360px) scale(0.8);
  z-index: 2;
}
.character[data-id="5"] {
  transform: translateX(360px) scale(0.8);
  z-index: 2;
}

.character[data-id="0"] {
  transform: translateX(-540px) scale(0.7);
  z-index: 1;
}
.character[data-id="6"] {
  transform: translateX(540px) scale(0.7);
  z-index: 1;
}

.character:hover img {
  transform: scale(1.05);
  transition: 0.2s ease;
}

.description {
  display: none;
  margin-top: 10px;
  background: #ffffff;
  color: #333;
  padding: 10px;
  border-radius: 8px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.character.active .description {
  display: block;
}

/* Адаптивность */
@media (max-width: 1024px) {
  .character {
    flex: 0 1 calc(100% / 3 - 20px);
  }
}

@media (max-width: 600px) {
  .character {
    flex: 0 1 calc(100% / 2 - 20px);
  }
}
.selected-description {
  text-align: center;
  margin-top: 30px;
  background: #fff;
  color: #333;
  padding: 20px 30px;
  border-radius: 12px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
  display: none;
}

.selected-description.show {
  display: block;
}
.character .description {
  display: none !important;
}
.shaped-visual-area {
  background-color: black; /* ← чёрный фон под прозрачной PNG */
}
#character-info-block {
  overflow: visible;
  position: relative; /* повышаем приоритет */
}

#character-info-block .shaped-visual-area {
  background-color: black; /* чёрный фон за PNG */
  overflow: visible; /* важное */
  position: relative;
  z-index: 9999;
}

#character-info-block .custom-shaped-img {
  object-fit: contain;
  position: absolute;
  z-index: 9999;
  transform: translateY(-60px); /* можно экспериментировать со значением */
}

#character-info-block {
  position: relative; /* нужно для контекста */
  z-index: 1;
}

.shaped-visual-area {
  position: relative;
  z-index: 2;
}

#character-image {
  position: relative; /* или fixed, если нужно "поверх всего" */
  top: 0;
  left: 53%;
  z-index: 9999;
  pointer-events: none; /* если не нужна интерактивность */
  width: 100%;
  height: 100%;
  margin-top: 60px;
}

@keyframes fadeFromDark {
  0% {
    opacity: 0;
    filter: brightness(0);
  }
  100% {
    opacity: 1;
    filter: brightness(1);
  }
}

.character-fade {
  animation: fadeFromDark 0.8s ease forwards;
}

/* ==================== АДАПТАЦИЯ ДЛЯ МОБИЛЬНЫХ УСТРОЙСТВ (max-width: 768px) ==================== */
@media (max-width: 768px) {
  /* Общие корректировки */
  * {
    transition: none !important; /* Убираем анимации для производительности */
  }
  
  body {
    overflow-x: hidden;
  }
  
  /* Навигация */
  .nav-bar {
    flex-direction: column;
    padding: 10px 5%;
    position: relative;
  }
  
  .nav-links {
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
    margin-top: 10px;
  }
  
  .nav-link {
    font-size: 14px;
    padding: 4px 10px;
  }
  
  .language-switcher {
    margin-top: 10px;
  }
  
  /* Герой-секция */
  .hero {
    height: auto;
    flex-direction: column;
    padding: 20px 0;
    background-position: 65% center;
  }
  
  .hero-overlay {
    position: static;
    width: 90%;
    height: auto;
    margin: 0 auto;
    padding: 20px;
    background-color: rgba(0, 0, 0, 0.85);
  }
  
.logo {
    width: 180px;
    height: auto;
    margin-bottom: 20px;
}
  
  .pre-order-btn {
    padding: 12px 30px;
    font-size: 16px;
    margin-top: 30px;
  }
  
  /* Секции с контентом */
  .section {
    padding: 80px 5% 30px;
    scroll-margin-top: 60px;
  }
  
  .dark-section, .light-section {
    padding-top: 80px;
  }
  
  .info-content, .news-content {
    flex-direction: column;
    gap: 20px;
  }
  
  .info-image, .news-image {
    height: 250px;
    clip-path: none;
    width: 100%;
    margin: 0;
  }
  
  .info-text, .news-text {
    width: 100%;
    padding: 20px;
    transform: none !important;
  }
  
  /* Персонажи */
  .characters-inline {
    height: auto;
    flex-direction: column;
    padding: 20px 0;
    perspective: none;
  }
  
  .character {
    position: static !important;
    transform: none !important;
    z-index: auto !important;
    margin-bottom: 25px;
  }
  
  .character img {
    width: 200px;
    filter: brightness(100%) !important;
  }
  
  .description {
    display: block !important;
    margin-top: 10px;
    background: rgba(255, 255, 255, 0.1);
    color: white;
  }
  
  .character-selector {
    flex-wrap: wrap;
  }
  
  /* Галерея */
  .gallery-section {
    padding: 0 20px;
  }
  
  .gallery-item {
    flex: 0 0 calc(100% - 20px);
  }
  
  .gallery-arrow {
    width: 40px;
    height: 40px;
  }
  
  .gallery-arrow svg {
    width: 20px;
    height: 20px;
  }
  
  /* Платформы */
  .platform-links {
    flex-direction: column;
    align-items: center;
    gap: 15px;
  }
  
  .platform-link {
    width: 90%;
    max-width: 300px;
  }
  
  /* Блоки с фигурными вырезами */
  .perfect-connection,
  .final-fusion-container,
  .perfect-fusion-block {
    flex-direction: column;
    height: auto;
  }
  
  .shaped-visual-area,
  .image-with-cut,
  .polygon-image-container {
    width: 100%;
    height: 300px;
    clip-path: none;
    margin: 0;
  }
  
  .extended-text-area,
  .text-seamless,
  .full-width-text {
    padding: 0;
    margin: 0;
    width: 100%;
  }
  
  .extended-text-area::before,
  .text-seamless::before,
  .full-width-text::before {
    display: none;
  }
  
  .text-container,
  .text-final-content,
  .text-content-wrapper {
    padding: 25px;
  }
  
  /* Специфические блоки */
  #character-info-block .shaped-visual-area {
    height: 250px;
  }
  
  #character-image {
    position: static;
    margin: 0 auto;
    transform: none;
    height: auto;
    max-height: 300px;
  }
  
  /* Подвал */
  footer {
    padding: 30px 15px;
    text-align: center;
  }
  
  /* Всплывающее окно галереи */
  .modal-content img {
    max-height: 60vh;
  }
  
  .modal-arrow {
    width: 45px;
    height: 45px;
  }
}

/* ===== ДОПОЛНИТЕЛЬНАЯ АДАПТАЦИЯ ДЛЯ МАЛЕНЬКИХ ЭКРАНОВ (max-width: 480px) ===== */
@media (max-width: 480px) {
  .nav-link {
    font-size: 13px;
    padding: 3px 8px;
  }
  
  .hero-overlay {
    width: 95%;
    padding: 15px;
  }
  
  .pre-order-btn {
    padding: 10px 25px;
    font-size: 15px;
  }
  
  .section-divider h2 {
    padding: 8px 20px;
    font-size: 1.1rem;
  }
  
  .gallery-section {
    padding: 0 10px;
  }
  
  .character-btn {
    padding: 8px 15px;
    font-size: 14px;
  }
  
  .platform-link {
    width: 100%;
  }
}

/* Стили для выпадающего меню языка */
.lang-dropdown {
  position: relative;
  display: inline-block;
  z-index: 1000;
}

.lang-dropdown-btn {
  background: var(--primary-color);
  color: white;
  border: 2px solid var(--primary-light);
  border-radius: 8px;
  padding: 10px 15px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: bold;
  transition: all 0.3s ease;
  min-width: 80px;
}

.lang-dropdown-btn:hover {
  background: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.dropdown-arrow {
  transition: transform 0.3s ease;
}

.lang-dropdown-btn.active .dropdown-arrow {
  transform: rotate(180deg);
}

/* Флаги */
.current-lang-flag,
.lang-flag {
  width: 24px;
  height: 18px;
  border-radius: 3px;
  border: 1px solid #ddd;
  background-size: cover;
  background-position: center;
  flex-shrink: 0;
}

.current-lang-flag.ru,
.lang-flag.ru {
  background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 9 6"><rect fill="white" width="9" height="2" y="0"/><rect fill="%230039A6" width="9" height="2" y="2"/><rect fill="%23D52B1E" width="9" height="2" y="4"/></svg>');
}

.current-lang-flag.en,
.lang-flag.en {
  background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 60 30"><path fill="%2300247D" d="M0 0v30h60V0z"/><path stroke="%23fff" stroke-width="6" d="M0 0l60 30m0-30L0 30"/><path stroke="%23CF142B" stroke-width="4" d="M0 0l60 30m0-30L0 30" stroke-linecap="square"/><path stroke="%23fff" stroke-width="10" d="M30 0v30M0 15h60"/><path stroke="%23CF142B" stroke-width="6" d="M30 0v30M0 15h60"/></svg>');
}

.lang-dropdown-content {
  position: absolute;
  top: 100%;
  right: 0;
  background: var(--primary-dark);
  border-radius: 8px;
  padding: 8px 0;
  margin-top: 5px;
  min-width: 140px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px) scale(0.95);
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  z-index: 1001;
  border: 1px solid var(--primary-light);
}

.lang-dropdown-content.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
}

.lang-option {
  padding: 12px 15px;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 10px;
  color: white;
}

.lang-option:hover {
  background: var(--primary-color);
  transform: translateX(5px);
}

.lang-option.active {
  background: var(--accent-color);
  position: relative;
}

.lang-option.active::after {
  content: "✓";
  position: absolute;
  right: 15px;
  font-weight: bold;
}

.lang-text {
  font-size: 14px;
  font-weight: 500;
}

.current-lang-text {
  font-size: 14px;
  font-weight: bold;
}

/* Адаптивность для выпадающего меню */
@media (max-width: 768px) {
  .lang-dropdown-btn {
    padding: 8px 12px;
    font-size: 14px;
    min-width: 70px;
  }
  
  .lang-dropdown-content {
    right: -10px;
    min-width: 130px;
  }
  
  .current-lang-flag,
  .lang-flag {
    width: 20px;
    height: 15px;
  }
}

#character-info-block .text-container p {
    font-size: 24px !important;
    line-height: 1.6 !important;
}

#character-info-block .text-container h3 {
    font-size: 30px !important;
    margin-bottom: 15px !important;
}

/* Увеличение текста во всех секциях */
.news-text p,
.text-container p,
.platforms h3,
.platform-name,
.nav-link,
.pre-order-btn span,
.section-divider h2 {
    font-size: 23px !important;
    line-height: 1.6 !important;
}

/* Увеличение заголовков */
.info-text h3,
.news-text h3,
.text-container h3,
.section-divider h2 {
    font-size: 28px !important;
}

/* Увеличение текста в описаниях персонажей */
.character .description p {
    font-size: 18px !important;
    line-height: 1.5 !important;
}

.character .description h3 {
    font-size: 22px !important;
}

/* Увеличение текста в расширенном блоке персонажа */
#character-info-block .text-container p {
    font-size: 24px !important;
    line-height: 1.6 !important;
}

#character-info-block .text-container h3 {
    font-size: 30px !important;
    margin-bottom: 15px !important;
}

/* Увеличение текста в навигации */
.nav-link {
    font-size: 20px !important;
}

/* Увеличение текста в кнопке предзаказа */
.pre-order-btn span {
    font-size: 20px !important;
}

#logo_official {
    width: 220px !important;
    height: auto !important;
}

/* Обновляем стили для hero-секции */
.hero {
  position: relative;
  height: 750px;
  background: url("images/foto1.png") no-repeat center center;
  background-size: cover;
  display: flex;
  align-items: center;
  justify-content: center; /* Центрируем по горизонтали */
}

.hero-overlay {
  display: flex;
  flex-direction: column;
  align-items: center; /* Центрируем по горизонтали */
  justify-content: center; /* Центрируем по вертикали */
  background-color: rgba(0, 0, 0, 0.7);
  padding: 40px;
  width: 350px;
  height: 750px;
  position: absolute;
  right: 15%;
}

.logo {
  width: 250px;
  height: 200px;
  margin-bottom: 60px; /* Отступ между лого и кнопкой */
}

.pre-order-btn {
  display: inline-block;
  background-color: var(--primary-color);
  color: white;
  padding: 15px 40px;
  text-decoration: none;
  font-weight: bold;
  font-size: 18px;
  border-radius: 5px;
  transform: skew(-20deg);
  transition: background-color 0.3s;
  margin-top: -20px;
}

/* Адаптивность для мобильных устройств */
@media (max-width: 768px) {
  .hero-overlay {
    position: static;
    width: 90%;
    height: auto;
    margin: 0 auto;
    padding: 30px;
  }
  
  .logo {
    width: 180px;
    height: auto;
    margin-bottom: 60px;
  }
}