/* ===================== */
/* 🔹 Стили прелоадера */
/* ===================== */
#preloader {
  position: fixed;
  top: 0; left: 0;
  width: 100vw;
  height: 100vh;
  background-color: #FFFAEE;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  z-index: 9999;
  color: #2A2927;
  transition: opacity 0.8s ease;
}

.preloader-content {
  text-align: center;
}

.preloader-percent {
  font-family: 'Manrope', sans-serif;
  font-size: 24px;
  margin-bottom: 40px;
  color: #2A2927;
}

.preloader-percent span {
  font-family: 'Manrope', sans-serif;
}

.preloader-texts {
  height: 60px;
}

.typewriter {
  font-family: 'Vasek', sans-serif;
  font-size: 48px;
  white-space: nowrap;
  overflow: hidden;
  color: #2A2927;
}

.cursor {
  display: inline-block;
  width: 2px;
  height: 0.66em;
  background-color: #2A2927;
  animation: blink 1s steps(1) infinite;
  vertical-align: middle;
  position: relative;
  top: 0.2em;
}

@keyframes blink {
  0%, 49% { opacity: 1; }
  50%, 100% { opacity: 0; }
}


/* ===================== */
/* 🔹 Подчеркивание ссылок */
/* ===================== */
.underline-text {
  position: relative;
  display: inline-block;
  cursor: url('https://static.tildacdn.com/tild3637-3937-4339-a336-653461313864/Group_12.png') 16 16, auto !important;
  white-space: nowrap;
}

.underline-text::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 13px;
  width: 0;
  height: 1.5px;
  background-color: #FFFAEE;
  transition: width 0.4s ease;
  cursor: url('https://static.tildacdn.com/tild3637-3937-4339-a336-653461313864/Group_12.png') 16 16, auto !important;
}

.underline-text:hover::after {
  width: 92%;
}

.underline-text-telegram {
  position: relative;
  display: inline-block;
  cursor: url('https://static.tildacdn.com/tild3637-3937-4339-a336-653461313864/Group_12.png') 16 16, auto !important;
  font-family: 'Vasek', sans-serif !important;
  font-size: 32px !important;
  color: #FFFAEE !important;
  text-decoration: none;
  white-space: nowrap;
}

.underline-text-telegram::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 13px;   /* Линия поднята ближе к тексту */
  width: 0;
  height: 1.2px;
  background-color: #FFFAEE;
  transition: width 0.4s ease;
  cursor: url('https://static.tildacdn.com/tild3637-3937-4339-a336-653461313864/Group_12.png') 16 16, auto !important;
}

.underline-text-telegram:hover::after {
  width: 53%;
}


/* ===================== */
/* 🔹 Кнопки-навигация */
/* ===================== */
.category-button {
  font-family: 'Manrope', sans-serif;
  font-size: 15px;
  font-weight: normal;
  color: #97938C;
  display: inline-block;
  padding-bottom: 4px;
  border-bottom: 1.5px solid transparent;
  transition: all 0.3s ease;
  cursor: url('https://static.tildacdn.com/tild3539-6337-4331-b362-316436323661/cursor.svg'), auto;
}

.category-button.active {
  font-weight: 700;
  color: #2A2927 !important;
  border-bottom: 2px solid #2A2927;
}

.category-separator {
  font-family: 'Manrope', sans-serif;
  font-size: 15px;
  color: #97938C;
  margin: 0 25px;
  user-select: none;
  pointer-events: none;
}

/* убираем лишний слеш после последней кнопки */
.category-button:last-of-type + .category-separator {
  display: none;
}
