/* Основной стиль */
body {
  margin: 0;
  font-family: 'Segoe UI', sans-serif;
  background: linear-gradient(135deg, #5f2c82, #49a09d);
  color: #fff;
}

/* Лоадер */
#preloader {
  position: fixed;
  inset: 0;
  background: linear-gradient(135deg, #5f2c82, #49a09d);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.5s ease;
}

.loader-logo {
  font-size: 2.5rem;
  font-weight: bold;
  background: linear-gradient(to right, #c68eff, #69d8f1);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: pulse 1.5s infinite ease-in-out;
}

@keyframes pulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.1); opacity: 0.7; }
}

/* Заставка */
.splash {
  position: relative;
  max-width: 800px;
  margin: 30px auto;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 0 20px rgba(0,0,0,0.5);
}
.splash-image {
  width: 100%;
  display: block;
}
.splash-title {
  position: absolute;
  left: 20px;
  top: 40%;
  transform: translateY(-50%);
  font-size: 2.5rem;
  background: linear-gradient(90deg, #c68eff, #69d8f1);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: fadeIn 2s ease-out;
}
@keyframes fadeIn {
  0% { opacity: 0; transform: translateY(-30%); }
  100% { opacity: 1; transform: translateY(-50%); }
}

/* Главная */
.hero {
  text-align: center;
  padding: 10px 20px;
}
.avatar {
  width: 120px;
  border-radius: 50%;
  border: 4px solid #66ffee;
  margin-bottom: 15px;
}

/* Секции */
.section {
  padding: 30px 20px;
  background: rgba(0, 0, 0, 0.3);
  margin: 20px auto;
  max-width: 800px;
  border-radius: 16px;
}
.card-container {
  display: flex;
  gap: 15px;
  flex-wrap: wrap;
  justify-content: center;
}
.card {
  background: rgba(0, 0, 0, 0.4);
  padding: 20px;
  border-radius: 12px;
  width: 200px;
  text-align: center;
  transition: transform 0.3s ease, background 0.3s;
  cursor: pointer;
}
.card:hover {
  transform: scale(1.05);
  background: rgba(255, 255, 255, 0.1);
}

.btn {
  background: linear-gradient(135deg, #66ffee, #3ddadf);
  border: none;
  color: #000;
  font-weight: bold;
  padding: 10px 20px;
  margin-top: 10px;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.3s;
}
.btn:hover {
  background: linear-gradient(135deg, #50e0e6, #78ffff);
}

/* Модалка */
.modal {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
}
.modal.hidden {
  display: none;
}
.modal-content {
  background: #222;
  padding: 30px;
  border-radius: 16px;
  max-width: 500px;
  width: 90%;
  text-align: center;
  position: relative;
}
.close-btn {
  position: absolute;
  top: 10px;
  right: 20px;
  cursor: pointer;
  font-size: 24px;
  color: #aaa;
}

/* Футер */
footer {
  text-align: center;
  padding: 20px;
  font-size: 0.9em;
  color: #bbb;
}
.splash {
  position: relative;
  max-width: 800px;
  margin: 30px auto;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 0 20px rgba(0,0,0,0.5);
}

/* Затемнение по бокам */
.splash::before,
.splash::after {
  content: "";
  position: absolute;
  top: 0;
  width: 1800px;
  height: 100%;
  z-index: 2;
  pointer-events: none;
}

.splash::before {
  left: 0;
  background: linear-gradient(to right, rgba(0,0,0,0.7), transparent);
}

/* Остальной код splash */
.splash-image {
  width: 100%;
  display: block;
}

.splash-title {
  position: absolute;
  left: 210px;
  top: 40%;
  transform: translateY(-50%);
  font-size: 2.5rem;
  background: linear-gradient(90deg, #c68eff, #69d8f1);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  z-index: 3;
  animation: fadeIn 2s ease-out;
}
.card {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  padding: 15px;
  text-align: center;
  color: #fff;
  cursor: pointer;
  width: 200px;
  word-wrap: break-word; /* Перенос длинных слов */
  white-space: normal;   /* Многострочный текст */
  min-height: 100px;     /* Минимальная высота */
  display: flex;
  flex-direction: column;
  justify-content: center;
  transition: transform 0.3s;
}

.card:hover {
  transform: scale(1.05);
}

/* Для модального окна */
.modal-content {
  background: #111;
  color: #fff;
  padding: 20px;
  border-radius: 10px;
  max-width: 400px;
  word-wrap: break-word;
  white-space: normal;
}
