:root {
  --primary: #6366f1;
  --primary-hover: #4f46e5;
  --secondary: #a03e7e;
  --secondary-hover: #ad256e;
  --card-background-primary: #242f3d;
  --card-text-primary: #ffffff;
  --background: #f8fafc;
  --card: #ffffff;
  --text: #1e293b;
  --text-light: #64748b;
  --border: #e2e8f0;
}

@font-face {
  font-family: 'Tektur';
  src: url('/assets/fonts/Tektur-Regular.ttf') format('truetype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

h1, h2, h3 {
  font-family: 'Tektur', sans-serif;
  letter-spacing: 0.1rem;
  
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Tektur';
  font-weight: 400;
}

.btn {
  display: inline-flex;
  align-items: center;
  padding: 16px 24px;
  border: none;
  border-radius: 4px;
  background: var(--primary);
  color: white;
  font-size: 16px;
  cursor: pointer;
  transition: all 0.2s;
  text-decoration: none;
}

.btn:hover {
  background: var(--primary-hover);
  transform: translateY(-1px);
}

.btn:disabled {
  background: var(--text-light);
  cursor: not-allowed;
  transform: none;
}

.btn--secondary {
  background: var(--secondary);
}

.btn--secondary:hover {
  background: var(--secondary-hover);
}

.btn--tertiary {
  background: #8b00ff;
}

.btn--tertiary:hover {
  background: rgba(139, 0, 255, 0.8);
}

body {
  font-family: 'Tektur', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto,
    'Helvetica Neue', Arial, sans-serif;
  line-height: 1.6;
  color: #ffffff;
  background: #333c46;
  font-weight: 400;
}

/* Навигационное меню */
.navbar {
  background: #242f3d;
  padding: 1rem 2rem;
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 1000;
  border-bottom: 1px solid #0e1621;
  transition: all 0.3s ease;
}

.nav-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
}

.nav-brand {
  font-size: 0;
}

.nav-brand svg {
  width: 160px;
  color: #ffffff;
}

.nav-menu {
  display: flex;
  list-style: none;
  gap: 2rem;
}

.nav-menu a {
  color: #ffffff;
  text-decoration: none;
  transition: all 0.2s ease;
  padding: 0.5rem 1rem;
  border-radius: 8px;
}

.nav-menu a:hover {
  color: #8b00ff;
  /* Фиолетовый акцент */
  background: rgba(74, 0, 255, 0.1);
  /* Светлый фиолетовый */
}

.hamburger {
  display: none;
  color: #ffffff;
  font-size: 1.5rem;
  cursor: pointer;
  padding: 0.5rem;
  border-radius: 8px;
  transition: all 0.2s ease;
}

.hamburger:hover {
  background: rgba(74, 0, 255, 0.1);
  /* Светлый фиолетовый */
  color: #8b00ff;
}

/* Главный контейнер */
.main-container {
  display: flex;
  flex-direction: column;
  gap: 24px;
  margin-top: 100px;
  padding: 0 2rem;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
  min-height: 100vh;

}

/* Герой-секция с анимированным градиентом */
@keyframes gradientAnimation {
  0% {
    background-position: 0% 50%;
  }

  100% {
    background-position: 100% 50%;
  }
}

.hero-section {
  text-align: center;
  padding: 4rem 2rem;
  background: linear-gradient(
    270deg,
    #242f3d,
    #4a00ff,
    #17212b,
    #4a00ff,
    #242f3d
  );
  background-size: 600% 600%;
  animation: gradientAnimation 20s ease-in-out infinite;
  border-radius: 16px;
  border: 1px solid #0e1621;
  position: relative;
  overflow: hidden;
}

.hero-title {
  font-size: 32px;
  color: #ffffff;
  margin-bottom: 1.5rem;
  animation: fadeInUp 1s ease;
  letter-spacing: -0.025em;
}

.hero-subtitle {
  font-size: 1.25rem;
  color: #b8c5d1;
  margin-bottom: 2.5rem;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.7;
}

.categories-section {
display: flex;
flex-direction: column;
align-items: center;
gap: 24px;
}


.test-minicards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2rem;
  margin-bottom: 2rem;
  width: 100%;
}

.test-minicard {
  max-width: 360px;
}

.test-minicard__cover {
  width: 100%;
  padding-top: 30%;
  padding-bottom: 5%;
  position: relative;
  margin-top: -32px;
  width: calc(100% + 32px + 32px);
  margin-left: -32px;
  padding-right: 32px;
  padding-left: 32px;
  margin-bottom: 16px;
}

.test-minicard__cover::after {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  content: '';
  opacity: 0.9;
  background: linear-gradient(to bottom, 
  #5a718d5c 0%, 
  rgba(36, 47, 61, 0.8) 70%, 
  #242f3d 100%);
}

.test-minicard__cover .test-minicard__title {
  position: relative;
  z-index: 1;

}

.test-minicard__cover img {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 100%;
  object-fit: cover;
  object-position: top center;
}

.test-minicard {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  background: #242f3d;
  padding: 32px;
  border-radius: 16px;
  border: 1px solid #0e1621;
  transition: all 0.2s ease;
  position: relative;
  overflow: hidden;
  text-decoration: none;
}

.test-minicard::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background: #4a00ff;
  /* Фиолетовая полоска */
  transition: all 0.2s ease;
}

.test-minicard:hover {
  transform: translateY(-4px);
  border-color: #4a00ff;
  background: #2a3744;
}

.test-minicard:hover::before {
  background: linear-gradient(180deg, #4a00ff, #6f2da8);
}

.test-minicard h3 {
  color: #ffffff;
  margin-bottom: 1rem;
  font-size: 24px;
  line-height: 28px;
}

.test-minicard p {
  color: #fff;
  margin-bottom: 1.5rem;
  line-height: 1.6;
}

.test-minicard a {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  background: #4a00ff;
  color: #ffffff;
  text-decoration: none;
  border-radius: 10px;
  font-size: 0.95rem;
  transition: all 0.2s ease;
}

.test-minicard a:hover {
  background: #6f2da8;
  transform: translateY(-1px);
}

/* Футер */
.footer {
  background: #0e1621;
  color: #ffffff;
  text-align: center;
  padding: 3rem 2rem;
  border-radius: 16px 16px 0 0;
}

.footer__disclaimer {
  opacity: 0.75;
  margin-top: 8px;
  font-size: 14px;
}

.footer a {
  color: #fff;
}

.footer__contact {
  font-size: 14px;
}

/* Анимации */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Адаптивность для мобильных устройств */
@media (max-width: 768px) {
  .main-container {
    padding: 2rem 1rem;
  }

  .hamburger {
    display: block;
  }

  .nav-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: #242f3d;
    flex-direction: column;
    padding: 1rem 0;
    text-align: center;
    border-bottom: 1px solid #0e1621;
  }

  .nav-menu.active {
    display: flex;
  }

  .nav-menu li {
    margin: 0.5rem 0;
  }

  .nav-menu a {
    padding: 1rem 2rem;
    border-radius: 0;
  }

  .hero-title {
    font-size: 24px;
  }

  .test-minicards {
    grid-template-columns: 1fr;
  }

  .hero-section {
    padding: 3rem 1.5rem;
  }
}

/* Дополнительные стили */
.emoji-icon {
  font-size: 1.5rem;
  margin-right: 0.5rem;
}

::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: #17212b;
}

::-webkit-scrollbar-thumb {
  background: #242f3d;
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: #4a00ff;
}

.test-minicard {
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.test-minicard:hover {
  box-shadow: 0 8px 24px rgba(74, 0, 255, 0.15);
}

::selection {
  background: #4a00ff;
  color: #ffffff;
}

.rounded-masked-image {
  /* Применяем SVG-маску */
  mask-image: url('/assets/blob-haikei.svg');
  -webkit-mask-image: url('/assets/blob-haikei.svg');

  /* Убедитесь, что маска покрывает весь элемент */
  mask-size: contain;
  -webkit-mask-size: contain;
  mask-repeat: no-repeat;
  -webkit-mask-repeat: no-repeat;
  mask-position: center;
  -webkit-mask-position: center;
}

.test-minicard__tags {
  margin-bottom: 10px;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.test-minicard__tag {
  display: inline-block;
  padding: 4px 8px;
  margin-right: 6px;
  margin-bottom: 4px;
  border-radius: 4px;
  font-size: 14px;
  color: #fff;
  background-color: #8b00ff;
  opacity: 0.9;
}





.tags-section  {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px;
}

.tags-section__item {
  text-decoration: none;
  color: #fff;
  opacity: 0.8;
  font-size: 18px;
  padding: 4px 8px;
  border-radius: 8px;
  background-color: #64409e;
}

.tags-section__item:hover {
  opacity: 1;
}

.colored-tag--psycho {
  background-color: #64409e;
} /* Синий */
.colored-tag--family {
  background-color: #b6b243;
} /* Оранжевый */
.colored-tag--fun {
  background-color: #3a7d96;
} /* Фиолетовый */
.colored-tag--knowledge {
  background-color: #2d6c57;
} /* Зелёный */
.colored-tag--intellectual {
  background-color: #b13d77;
} /* Розовый */
.colored-tag--relationship {
  background-color: #f660ab;
} /* Фуксия */
.colored-tag--health {
  background-color: #60f09a;
}
.colored-tag--personality {
  background-color: #5fb1ba;
}



/* Элемент: .search-form__form */
.search-form__form {
  display: flex;
  justify-content: center;
  gap: 10px;
  align-items: stretch;
}

/* Элемент: .search-form__input-wrapper */
.search-form__input-wrapper {
  flex: 1;
}

/* Элемент: .search-form__input */
.search-form__input {
  padding: 12px 16px;
  font-size: 20px;
  border: 2px solid #ccc;
  border-radius: 4px 0 0 4px;
  width: 100%;
  transition: border-color 0.3s;
}

.search-form__input:focus {
  border-color: var(--primary);
  outline: none;
}
