/* ===== СБРОС И БАЗОВЫЕ СТИЛИ ===== */
html {
  box-sizing: border-box;
  scroll-behavior: smooth;
}

*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
  background-color: var(--color-bg-primary);
  color: var(--color-text-primary);
  overflow-x: hidden;
}

img {
  max-width: 100%;
}

/* ===== ТИПОГРАФИЯ ===== */
h1,
h2,
h3,
h4 {
  font-family: 'Muller', 'Inter', sans-serif;
  font-weight: 700;
  line-height: 1;
}

h1 {
  font-size: 2.5rem;
}

h2 {
  font-size: 2rem;
}

h3 {
  font-size: 1.5rem;
}

p {
  margin: 0;
}

a {
  text-decoration: none;
  color: inherit;
  transition: all var(--transition-base);
}

ul,
ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

textarea {
  resize: none;
}

/* ===== УТИЛИТЫ ===== */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  width: 100%;
}

.section__container {
  /* padding-top: 40px; */
}


.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

.visually-hidden.focusable:focus {
  position: static;
  width: auto;
  height: auto;
  margin: 10px;
  padding: 10px;
  background: var(--color-primary-start);
  color: white;
  z-index: 9999;
}

/* ===== КНОПКИ ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: 8px;
  font-weight: 700;
  font-size: 1rem;
  border: none;
  cursor: pointer;
  transition: all var(--transition-base);
  text-align: center;
}

.btn:active {
  transform: scale(0.98);
}

.btn:focus-visible {
  outline: 2px solid #667eea;
  outline-offset: 3px;
  border-radius: 8px;
}

.btn:focus:not(:focus-visible) {
  outline: none;
}

.btn-large {
  padding: 15px 30px;
  font-size: 1.2rem;
}

.btn-primary {
  background: var(--gradient-primary);
  color: var(--color-text-white);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-primary);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.1);
  color: var(--color-text-white);
  border: 1px solid var(--color-border-light);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.15);
  transform: translateY(-2px);
}

.btn-outline {
  background: transparent;
  color: var(--color-primary-start);
  border: 2px solid var(--color-primary-start);
}

.btn-outline:hover {
  background: var(--color-primary-start);
  color: var(--color-text-white);
}

.btn-login {
  background: transparent;
  color: var(--color-text-secondary);
  border: 2px solid var(--color-border-light);
}

.btn-login:hover {
  background: var(--color-bg-nav-hover);
}

.btn-register {
  background: var(--gradient-secondary);
  color: var(--color-text-white);
}

.btn-register:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-secondary);
}

/* Индикатор загрузки */
.btn--loading {
  position: relative;
  color: transparent !important;
  pointer-events: none;
}

.btn--loading::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 20px;
  height: 20px;
  margin-left: -10px;
  margin-top: -10px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-top-color: white;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

/* скролл бар */
*::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

*::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 10px;
}

*::-webkit-scrollbar-thumb {
  background: var(--color-primary-start);
  border-radius: 10px;
}

*::-webkit-scrollbar-thumb:hover {
  background: var(--color-primary-end);
}

/* ===== НАВИГАЦИЯ ===== */
.navbar {
  background: rgba(15, 15, 26, 0.65);
  backdrop-filter: blur(10px);
  position: sticky;
  top: 0;
  z-index: 1001;
  padding: 20px 0;
  border-bottom: 1px solid var(--color-border-light);
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1),
    background 0.3s ease,
    box-shadow 0.3s ease;
  will-change: transform;
  animation: slideDown 0.5s ease-out;
}

.navbar--scrolled {
  background: rgba(15, 15, 26, 0.98);
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
  backdrop-filter: blur(10px);
}

.header__container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
}

.header__inner {
  display: flex;
  justify-content: space-between;
  /* justify-content: center; */
  align-items: center;
  flex-wrap: wrap;
  width: 100%;
  gap: 15px;
}

.header__logo-section {
  display: flex;
  align-items: center;
  /* margin-left: 0; */
  order: 1;
}

.header__logo {
  display: flex;
  align-items: center;
  text-decoration: none;
  gap: 15px;
  color: inherit;
}

.header__logo:active {
  transform: scale(0.98);
}

.header__logo:focus-visible {
  outline: 2px solid #667eea;
  outline-offset: 3px;
  border-radius: 8px;
}

.header__logo:focus:not(:focus-visible) {
  outline: none;
}

.header__logo-icon {
  font-size: 2.5rem;
  color: var(--color-primary-start);
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.header__logo-title {
  margin: 0;
  font-size: 2rem;
  font-weight: 800;
  line-height: 1;
}

.header__logo-text {
  display: flex;
  flex-direction: column;
}

.logo__highlight,
.header__highlight {
  font-family: 'Muller', sans-serif;
  background: linear-gradient(135deg, var(--color-primary-start), var(--color-secondary-start));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.header__tagline {
  padding-top: 2px;
  font-size: 1.2rem;
  line-height: 1;
  color: var(--color-text-muted);
}

.header__nav {
  display: flex;
  justify-content: center;
  width: 100%;
  gap: 25px;
  order: 2;
}

.nav__list {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 20px;
  row-gap: 15px;
  list-style: none;
}

.nav__link {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--color-text-secondary);
  font-weight: 500;
  text-decoration: none;
  border-radius: 6px;
  transition: all var(--transition-fast);
}

.nav__link:hover {
  color: #f093fb;
}

.nav__link:active {
  color: #9e46a8;
  transform: scale(0.98);
}

.nav__link:focus-visible {
  outline: 2px solid #667eea;
  outline-offset: 3px;
  border-radius: 4px;
}

.nav__link:focus:not(:focus-visible) {
  outline: none;
}

.nav__icon {
  font-size: 1.1rem;
  width: 20px;
  text-align: center;
  color: inherit;
}

.nav__text {
  width: max-content;
  font-size: 1.4rem;
  line-height: 1;
}

.header__auth {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  order: 1;
  gap: 30px;
  /* width: 100%; */
}

.header__btn {
  padding: 10px 20px;
  font-size: 1.4rem;
  border-color: rgba(255, 255, 255, 0.2);
}

.header__btn-img {
  font-size: 1.1rem;
}

.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  color: var(--color-text-white);
  font-size: 1.5rem;
  cursor: pointer;
}

/* Иконки пользователя в шапке */
.header__icons {
  display: flex;
  gap: 15px;
  /* margin-right: 20px; */
}

.header__icon {
  position: relative;
  color: var(--color-text-secondary);
  font-size: 1.2rem;
  transition: color 0.2s;
}

.header__icon:hover {
  color: var(--color-primary-start);
}

.header__badge {
  position: absolute;
  top: -8px;
  right: -8px;
  background: var(--color-primary-start);
  color: white;
  font-size: 0.7rem;
  padding: 2px 5px;
  border-radius: 10px;
  min-width: 18px;
  text-align: center;
}

/* ===== АВТОРИЗАЦИЯ ===== */
.header__user {
  display: flex;
  align-items: center;
  gap: 10px;
}

.header__user-link {
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  color: var(--color-text-white);
  /* padding: 5px 10px; */
  border-radius: 12px;
  transition: all 0.2s ease;
}

.header__user-link:hover {
  background: var(--color-bg-nav-hover);
}

.header__avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--color-primary-start);
}

.header__username {
  font-size: 1rem;
  max-width: 200px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.header__logout {
  padding: 8px 12px;
  background: transparent;
  color: var(--color-text-secondary);
  border: 1px solid var(--color-border-light);
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.header__logout:hover {
  background: rgba(255, 71, 87, 0.1);
  color: #ff4757;
  border-color: #ff4757;
}

/* ===== МОБИЛЬНОЕ МЕНЮ ===== */
.mobile-menu-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(3px);
  z-index: 9998;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease;
}

.mobile-menu-overlay.active {
  opacity: 1;
  visibility: visible;
}

.mobile-menu {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: 280px;
  max-width: 85%;
  background: var(--color-bg-secondary);
  z-index: 10000;
  padding: 10px 20px;
  transform: translateX(100%);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  overflow-y: auto;
  box-shadow: -2px 0 10px rgba(0, 0, 0, 0.3);
}

.mobile-menu.active {
  transform: translateX(0);
}

.mobile-menu__handle {
  position: absolute;
  top: 50%;
  left: -4px;
  width: 4px;
  height: 40px;
  background: var(--color-primary-start);
  border-radius: 2px;
  transform: translateY(-50%);
  opacity: 0;
  transition: opacity 0.2s ease;
}

.mobile-menu:hover .mobile-menu__handle {
  opacity: 1;
}

.mobile-menu__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 30px;
  padding-bottom: 15px;
  border-bottom: 1px solid var(--color-border-light);
}

.mobile-menu__title {
  color: var(--color-text-white);
  font-size: 1.3rem;
  font-weight: 600;
}

.mobile-menu__close {
  background: none;
  border: none;
  color: var(--color-text-muted);
  font-size: 2.5rem;
  cursor: pointer;
  line-height: 1;
  padding: 5px;
  transition: color 0.2s ease;
}

.mobile-menu__close:hover {
  color: var(--color-text-white);
}

.mobile-menu__list {
  list-style: none;
  padding: 0;
  margin: 0 0 30px;
}

.mobile-menu__item {
  margin-bottom: 5px;
}

.mobile-menu__link {
  display: flex;
  align-items: center;
  gap: 15px;
  /* padding: 15px; */
  color: var(--color-text-white);
  text-decoration: none;
  font-size: 1.1rem;
  border-radius: 12px;
  transition: background 0.2s ease;
}

.mobile-menu__link i {
  width: 24px;
  color: var(--color-primary-start);
  font-size: 1.2rem;
}

.mobile-menu__link:hover {
  background: rgba(102, 126, 234, 0.1);
}

.mobile-menu__auth {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding-top: 20px;
  border-top: 1px solid var(--color-border-light);
}

.mobile-menu__btn {
  width: 100%;
  padding: 14px;
  border-radius: 12px;
  font-size: 1rem;
}

/* ===== ХЛЕБНЫЕ КРОШКИ ===== */
.breadcrumbs {
  /* margin-bottom: 30px; */
  padding: 15px 0;
  /* border-bottom: 1px solid var(--color-border-light); */
}

.breadcrumbs__list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  list-style: none;
  padding: 0;
  margin: 0;
}

.breadcrumbs__item {
  display: flex;
  align-items: center;
  font-size: 0.9rem;
  color: var(--color-text-muted);
}

.breadcrumbs__item:not(:last-child)::after {
  content: '/';
  margin-left: 8px;
  color: var(--color-text-muted);
}

.breadcrumbs__link {
  color: var(--color-text-secondary);
  text-decoration: none;
  transition: color 0.2s ease;
}

.breadcrumbs__link:hover {
  color: var(--color-primary-start);
}

.breadcrumbs__current {
  color: var(--color-text-white);
  font-weight: 500;
}

/* ===== ГЕРОЙ СЕКЦИЯ ===== */
.hero {
  position: relative;
  overflow: hidden;
  padding: 60px 0;
  background: var(--gradient-hero), url('/img/hero-background.jpg');
  background-position: center;
  background-repeat: no-repeat;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--gradient-radial);
  pointer-events: none;
  z-index: 1;
}

.hero__container {
  position: relative;
  z-index: 2;
}

.hero__content {
  max-width: 700px;
  margin: 0 auto;
  text-align: center;
  margin-bottom: 60px;
}

.hero__title {
  font-size: 2.5rem;
  margin-bottom: 20px;
  background: var(--gradient-hero-title);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.game-title {
  color: var(--color-secondary-start);
  -webkit-text-fill-color: var(--color-secondary-start);
}

.hero__descr {
  font-size: 1.2rem;
  line-height: 1.3;
  color: var(--color-text-secondary);
  margin-bottom: 30px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.hero__buttons {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap;
}

.hero__stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  max-width: 800px;
  margin: 0 auto;
}

.hero__card {
  background: var(--color-bg-card);
  backdrop-filter: blur(10px);
  border-radius: 8px;
  padding: 30px;
  text-align: center;
  border: 1px solid var(--color-border-light);
  transition: transform var(--transition-base);
}

.hero__card:hover {
  transform: translateY(-5px);
  border-color: var(--color-border-hover);
}

.hero__number {
  font-size: 2.5rem;
  font-weight: 800;
  background: var(--gradient-number);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 10px;
  animation: countUp 1s ease-out forwards;
}

.hero__label {
  color: var(--color-text-secondary);
  font-size: 0.9rem;
}

/* ===== ОСНОВНОЙ КОНТЕНТ ===== */
.main {
  /* padding: 40px 0; */
}

.section {
  padding: 40px 0;
}

.section:last-child {
  margin-bottom: 0;
}

.section-title {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-bottom: 40px;
  color: var(--color-text-white);
}

.section__icon {
  font-size: 2.5rem;
  background: var(--gradient-number);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.section-bottom {
  text-align: center;
}

/* ===== КАТЕГОРИИ ФОРУМА ===== */
.categories__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 30px;
}

.categories__card {
  display: flex;
  flex-direction: column;
  height: 100%;
  background: var(--color-bg-card);
  border-radius: 20px;
  padding: 25px;
  border: 1px solid var(--color-border-light);
  transition: all var(--transition-base);
  position: relative;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
}

a.categories__card:hover {
  text-decoration: none;
  color: inherit;
}

.categories__card:hover {
  transform: translateY(-5px);
  border-color: var(--color-border-hover);
  box-shadow: var(--shadow-card);
}

.categories__icon {
  width: 60px;
  height: 60px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  color: var(--color-text-white);
  background: linear-gradient(135deg, #667eea, #764ba2);
  font-size: 1.5rem;
}

.categories__subtitle {
  font-size: 1.3rem;
  margin-bottom: 10px;
  color: var(--color-text-white);
}

.categories__descr {
  color: var(--color-text-secondary);
  font-size: 1rem;
  margin-bottom: 20px;
}

.categories__stats {
  display: flex;
  justify-content: space-between;
  margin-top: auto;
  color: var(--color-text-muted);
  font-size: 0.9rem;
  padding-top: 15px;
  border-top: 1px solid var(--color-border-light);
}

.categories__stats-icon {
  margin-right: 5px;
}

/* ===== СПИСОК ТЕМ ===== */
.topics-section {
  padding-top: 0;
  border-bottom: 1px solid var(--color-border-light);
}

.topics__list {
  border: 1px solid var(--color-border-light);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.03);
  overflow: hidden;
  margin-bottom: 40px;
}

.topics__item {
  padding: 20px;
  border-bottom: 1px solid var(--color-border-light);
  transition: background var(--transition-base);
}

.topics__item:hover {
  background: var(--color-bg-nav-hover);
}

.topics__item:last-child {
  border-bottom: none;
}

.topic {
  display: flex;
  /* justify-content: space-between; */
  /* flex-direction: column; */
  /* align-items: center; */
  width: 100%;
  gap: 20px;
}

.topic__main {
  display: flex;
  flex-direction: column;
  /* width: 50%; */
  gap: 20px;
  flex: 1;
}

.topic__item-title {
  display: flex;
  align-items: center;
  gap: 20px;
}

.topic__icon {
  width: 50px;
  height: 50px;
  background: rgba(102, 126, 234, 0.1);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-primary-start);
  font-size: 1.2rem;
}

.topic__content {
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
}

.topic__title {
  font-size: 1.1rem;
  line-height: 1;
  color: var(--color-text-white);
}

.topic__meta {
  display: flex;
  gap: 25px;
  color: var(--color-text-muted);
  font-size: 0.9rem;
}

.topic__author,
.topic__categories,
.topic__time {
  display: flex;
  gap: 10px;
  align-items: center;
}

.topic__author-icon {
  margin-right: 5px;
}

.topic__stats {
  display: flex;
  /* justify-content: space-between; */
  gap: 20px;
  color: var(--color-text-muted);
  font-size: 0.9rem;
  flex-shrink: 0;
}

.topic__replies,
.topic__views {
  display: flex;
  align-items: center;
  gap: 7px;
}

/* ===== ОСОБЕННОСТИ ФОРУМА ===== */
.features__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
}

.feature__card {
  background: rgba(255, 255, 255, 0.03);
  border-radius: 20px;
  padding: 30px;
  text-align: center;
  border: 1px solid var(--color-border-light);
  transition: all var(--transition-base);

  /* ✅ Правильные свойства для переноса текста */
  word-wrap: break-word;
  overflow-wrap: break-word;
  word-break: break-word;

  /* ✅ Важно! Ограничиваем ширину */
  width: 100%;
  max-width: 100%;

  /* ✅ Для длинных слов */
  hyphens: auto;

  /* ✅ Для Firefox */
  -webkit-hyphens: auto;
  -moz-hyphens: auto;
  -ms-hyphens: auto;
}

.feature__card:hover {
  transform: translateY(-5px);
  border-color: var(--color-border-hover);
  background: var(--color-bg-card-hover);
}

.feature__icon {
  width: 70px;
  height: 70px;
  background: linear-gradient(135deg, rgba(102, 126, 234, 0.1), rgba(240, 147, 251, 0.1));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  color: var(--color-primary-start);
  font-size: 1.8rem;
}

.feature__title {
  font-size: 1.2rem;
  margin-bottom: 10px;
  color: var(--color-text-white);
}

.feature__descr {
  color: var(--color-text-secondary);
  font-size: 1rem;
}

/* ===== ФУТЕР ===== */
.footer {
  background: var(--color-bg-secondary);
  padding: 40px 0 30px;
  border-top: 1px solid var(--color-border-light);
}

.footer__content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 40px;
  margin-bottom: 30px;
}

.footer__column {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.footer__title,
.footer__subtitle {
  color: var(--color-text-white);
  margin-bottom: 10px;
  font-size: 1.4rem;
}

.footer__descr {
  color: var(--color-text-muted);
  margin-bottom: 20px;
}

.footer__list {
  display: grid;
  gap: 12px;
  width: 100%;
}

.footer__link {
  position: relative;
  display: inline-block;
  text-decoration: none;
  color: var(--color-text-muted);
  font-size: 0.9rem;
  line-height: 1;
  transition: all var(--transition-base);
}

.footer__link:hover {
  color: #667eea;
}

.footer__link:active {
  color: #f093fb;
  transform: scale(0.98);
}

.footer__link:focus-visible {
  outline: 2px solid #667eea;
  outline-offset: 3px;
  border-radius: 2px;
}

.footer__link:focus:not(:focus-visible) {
  outline: none;
}

/* Социальные иконки */
.social {
  display: flex;
  gap: 15px;
}

.social__link {
  width: 40px;
  height: 40px;
  background: var(--color-bg-card);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  color: var(--color-text-muted);
  transition: all var(--transition-base);
}

.social__link:hover {
  background: var(--color-primary-start);
  color: var(--color-text-white);
  transform: translateY(-3px);
}

.social__link:active {
  background: var(--color-primary-end);
  transform: scale(0.98);
}

.social__link:focus-visible {
  outline: 2px solid #667eea;
  outline-offset: 3px;
  border-radius: 50%;
}

.social__link:focus:not(:focus-visible) {
  outline: none;
}

.footer__bottom {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding-top: 30px;
  border-top: 1px solid var(--color-border-light);
  color: var(--color-text-dark);
  font-size: 0.9rem;
  text-align: center;
}

/* ===== КНОПКА "НАВЕРХ" ===== */
.scroll-top-btn {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 50px;
  height: 50px;
  background: var(--gradient-primary);
  border: none;
  border-radius: 50%;
  color: var(--color-text-white);
  font-size: 1.2rem;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition-base);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
}

.scroll-top-btn.visible {
  opacity: 1;
  visibility: visible;
}

.scroll-top-btn:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-primary);
}

/* ===== КНОПКА "В ИЗБРАННОЕ" ===== */
.post__favorite {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 5px 10px;
  background: none;
  border: none;
  color: var(--color-text-muted);
  cursor: pointer;
  transition: all 0.2s ease;
  border-radius: 4px;
}

.post__favorite:hover {
  color: #ff4757;
  background: rgba(255, 71, 87, 0.1);
}

.post__favorite.active {
  color: #ff4757;
}

.post__favorite.active i {
  color: #ff4757;
}

.post__favorite i {
  font-size: 1rem;
  transition: transform 0.2s ease;
}

.post__favorite:hover i {
  transform: scale(1.1);
}

.post__favorite span {
  font-size: 0.85rem;
}

/* Кнопка избранного для темы */
/* .topic__favorite {
  position: absolute;
  top: 10px;
  right: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: var(--color-bg-card);
  border: 1px solid var(--color-border-light);
  border-radius: 8px;
  color: var(--color-text-muted);
  cursor: pointer;
  transition: all 0.2s ease;
}

.topic__favorite:hover {
  color: #ff4757;
  background: rgba(255, 71, 87, 0.1);
  border-color: #ff4757;
}

.topic__favorite.active {
  color: #ff4757;
  background: rgba(255, 71, 87, 0.1);
  border-color: #ff4757;
}

.topic__favorite i {
  font-size: 1.2rem;
  transition: transform 0.2s ease;
}

.topic__favorite:hover i {
  transform: scale(1.1);
} */

/* ===== АДАПТИВНОСТЬ ===== */
@media (max-width: 768px) {
  .navbar {
    animation: none;
  }

  .desktop-auth {
    display: none;
  }

  .mobile-menu-btn {
    display: block !important;
  }

  .header__user {
    /* width: 100%; */
    justify-content: center;
  }

  .header__user-link {
    flex: 1;
    justify-content: center;
  }

  .topic {
    flex-direction: column;
    align-items: flex-start;
  }

  .btn {
    padding: 10px 20px;
  }
}