/* ========== CSS ПЕРЕМЕННЫЕ ========== */
:root {
  --primary-color: #4a90e2;
  --primary-dark: #357ae8;
  --primary-darker: #2a65c4;
  --accent-purple: #8a2be2;
  --accent-purple-dark: #7b1fa2;
  --background-dark: #0f0f0f;
  --background-card: #1a1a1a;
  --background-element: #222;
  --text-light: #e0e0e0;
  --text-muted: #bbb;
  --border-color: #333;
  --shadow-light: rgba(0, 100, 255, 0.03);
  --shadow-medium: rgba(0, 0, 0, 0.5);
}

/* ========== ОБЩИЕ СТИЛИ ========== */
body {
  margin: 0;
  font-family: Arial, sans-serif;
  background: var(--background-dark);
  color: var(--text-light);
  min-height: 100vh;
  position: relative;
}

body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background:
    radial-gradient(circle at left center, rgba(0, 100, 255, 0.036) 0%, transparent 70%),
    radial-gradient(circle at right center, rgba(0, 100, 255, 0.036) 0%, transparent 70%);
  z-index: -1;
  pointer-events: none;
}

/* ========== АНИМАЦИИ ========== */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }

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

@keyframes pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(74, 144, 226, 0.7);
  }

  70% {
    box-shadow: 0 0 0 10px rgba(74, 144, 226, 0);
  }

  100% {
    box-shadow: 0 0 0 0 rgba(74, 144, 226, 0);
  }
}

@keyframes slideInFromRight {
  from {
    transform: translateX(200px);
    opacity: 0;
  }

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

@keyframes slideIn {
  from {
    opacity: 0;
    transform: translateX(-40px);
  }

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

@keyframes simpleFall {
  0% {
    transform: translateY(-100px);
    opacity: 0;
  }

  25% {
    transform: translateY(0);
    opacity: 1;
  }

  50% {
    transform: translateY(0);
    opacity: 1;
  }

  75% {
    transform: translateY(100px);
    opacity: 0;
  }

  100% {
    transform: translateY(-100px);
    opacity: 0;
  }
}

@keyframes rotate {
  100% {
    transform: rotate(360deg);
  }
}

@keyframes fallAndReturn {

  0%,
  100% {
    transform: translateY(-50px) rotateX(90deg);
    opacity: 0;
  }

  20%,
  60% {
    transform: translateY(0) rotateX(0);
    opacity: 1;
  }

  80% {
    transform: translateY(30px) rotateX(-90deg);
    opacity: 0;
  }
}

/* Добавить в styles.css */

/* ========== КОММЕНТАРИИ - ОСНОВНЫЕ СТИЛИ ========== */
.comments-container {
  margin-top: 40px;
  background: linear-gradient(145deg, #1a1a1a, #0d0d0d);
  border-radius: 20px;
  box-shadow:
    0 10px 40px rgba(0, 0, 0, 0.5),
    inset 0 1px 0 rgba(255, 255, 255, 0.05);
  overflow: hidden;
  animation: fadeIn 0.8s ease;
  border: 1px solid rgba(74, 144, 226, 0.1);
}

.comments-header {
  padding: 25px 30px;
  background: linear-gradient(90deg, rgba(74, 144, 226, 0.1), transparent);
  border-bottom: 1px solid rgba(74, 144, 226, 0.15);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 15px;
}

.comments-header h3 {
  margin: 0;
  color: #fff;
  font-size: 24px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.comments-stats {
  display: flex;
  gap: 20px;
}

.stat {
  color: #8a9bb2;
  font-size: 14px;
  display: flex;
  align-items: center;
  gap: 6px;
}

/* Список комментариев */
.comments-list-wrapper {
  position: relative;
  min-height: 200px;
}

.comments-list {
  padding: 20px 30px;
  max-height: 600px;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: #4a90e2 #0d0d0d;
}

.comments-list::-webkit-scrollbar {
  width: 6px;
}

.comments-list::-webkit-scrollbar-track {
  background: #0d0d0d;
  border-radius: 3px;
}

.comments-list::-webkit-scrollbar-thumb {
  background: linear-gradient(to bottom, #4a90e2, #8a2be2);
  border-radius: 3px;
}

.comments-list::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(to bottom, #5a9df2, #9a3cf2);
}

/* Карточка комментария */
.comment-card {
  background: rgba(255, 255, 255, 0.03);
  border-radius: 15px;
  padding: 20px;
  margin-bottom: 15px;
  border: 1px solid rgba(255, 255, 255, 0.05);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  animation: fadeIn 0.5s ease;
}

.comment-card:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(74, 144, 226, 0.2);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.comment-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 15px;
}

.comment-author-info {
  display: flex;
  align-items: center;
  gap: 15px;
  flex: 1;
}

.avatar-wrapper {
  position: relative;
}

.avatar,
.avatar-default {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid #4a90e2;
  box-shadow: 0 4px 15px rgba(74, 144, 226, 0.2);
}

.avatar-default {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  color: white;
}

.online-indicator {
  position: absolute;
  bottom: 2px;
  right: 2px;
  width: 12px;
  height: 12px;
  background: #00ff88;
  border-radius: 50%;
  border: 2px solid #1a1a1a;
  box-shadow: 0 0 10px #00ff88;
}

.author-details {
  flex: 1;
}

.author-name {
  color: #fff;
  font-weight: 600;
  font-size: 16px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.you-badge {
  background: linear-gradient(45deg, #4a90e2, #8a2be2);
  color: white;
  font-size: 12px;
  padding: 2px 8px;
  border-radius: 10px;
  font-weight: 500;
}

.comment-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 4px;
}

.comment-time {
  color: #8a9bb2;
  font-size: 13px;
}

.comment-time-separator {
  color: #4a90e2;
  font-weight: bold;
}

.comment-actions {
  display: flex;
  gap: 8px;
  opacity: 0;
  transition: opacity 0.3s;
}

.comment-card:hover .comment-actions {
  opacity: 1;
}

.action-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: none;
  background: rgba(255, 255, 255, 0.1);
  color: #8a9bb2;
  cursor: pointer;
  transition: all 0.3s;
  display: flex;
  align-items: center;
  justify-content: center;
}

.action-btn:hover {
  background: rgba(74, 144, 226, 0.2);
  color: #4a90e2;
  transform: scale(1.1);
}

.delete-btn:hover {
  background: rgba(220, 53, 69, 0.2);
  color: #dc3545;
}

.comment-body {
  color: #e0e0e0;
  line-height: 1.6;
  margin: 15px 0;
  padding-left: 65px;
  font-size: 15px;
}

.comment-footer {
  padding-left: 65px;
  display: flex;
  gap: 15px;
}

.like-btn {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #8a9bb2;
  padding: 6px 15px;
  border-radius: 20px;
  cursor: pointer;
  font-size: 14px;
  transition: all 0.3s;
  display: flex;
  align-items: center;
  gap: 8px;
}

.like-btn:hover {
  background: rgba(220, 53, 69, 0.1);
  color: #ff4757;
  border-color: rgba(220, 53, 69, 0.3);
}

/* Состояние "залайкано" */
.like-btn.liked {
  background: rgba(220, 53, 69, 0.2);
  color: #ff4757;
  border-color: rgba(220, 53, 69, 0.5);
}

.like-btn.liked i {
  animation: heartBeat 0.3s ease-in-out;
}

@keyframes heartBeat {

  0%,
  100% {
    transform: scale(1);
  }

  50% {
    transform: scale(1.2);
  }
}

/* Кнопка показать/скрыть ответы */
.toggle-replies-btn {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #8a9bb2;
  padding: 6px 15px;
  border-radius: 20px;
  cursor: pointer;
  font-size: 14px;
  transition: all 0.3s;
  display: flex;
  align-items: center;
  gap: 8px;
}

.toggle-replies-btn:hover {
  background: rgba(74, 144, 226, 0.1);
  color: #4a90e2;
  border-color: rgba(74, 144, 226, 0.3);
}

/* Раздел ответов */
.replies-section {
  margin-top: 20px;
  margin-left: 65px;
  border-left: 2px solid rgba(74, 144, 226, 0.3);
  padding-left: 20px;
  animation: slideDown 0.3s ease-out;
}

@keyframes slideDown {
  from {
    opacity: 0;
    max-height: 0;
  }

  to {
    opacity: 1;
    max-height: 1000px;
  }
}

.replies-container {
  display: flex;
  flex-direction: column;
  gap: 15px;
  margin-bottom: 15px;
}

/* Элемент ответа */
.reply-item {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  padding: 15px;
  animation: fadeIn 0.3s ease-out;
}

.reply-item:hover {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(255, 255, 255, 0.12);
}

.reply-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}

.reply-author-info {
  display: flex;
  align-items: center;
  gap: 10px;
}

.reply-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  object-fit: cover;
}

.reply-body {
  margin-bottom: 10px;
}

.reply-body p {
  margin: 0;
  font-size: 14px;
  line-height: 1.5;
}

.reply-footer {
  display: flex;
  gap: 10px;
}

.reply-actions {
  display: flex;
  gap: 8px;
}

/* Сообщение "нет ответов" */
.no-replies {
  text-align: center;
  color: #8a9bb2;
  font-size: 14px;
  padding: 10px;
  font-style: italic;
}

/* Форма ответа */
.reply-form-container {
  margin-top: 15px;
  padding-top: 15px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.reply-form {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.reply-form textarea {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #e0e0e0;
  padding: 10px;
  border-radius: 6px;
  font-family: Arial, sans-serif;
  font-size: 14px;
  resize: vertical;
  min-height: 60px;
}

.reply-form textarea:focus {
  outline: none;
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(74, 144, 226, 0.5);
}

.btn-small {
  padding: 8px 16px;
  font-size: 13px;
  width: fit-content;
}

/* Состояние "пусто" */
.empty-state {
  text-align: center;
  padding: 60px 20px;
  color: #8a9bb2;
}

.empty-icon {
  font-size: 64px;
  color: #4a90e2;
  margin-bottom: 20px;
  opacity: 0.5;
}

.empty-state h4 {
  color: #fff;
  margin: 15px 0 10px;
  font-size: 22px;
}

.empty-state p {
  font-size: 16px;
  margin-bottom: 25px;
}

.empty-actions {
  margin-top: 25px;
}

/* Разделитель */
.section-divider {
  display: flex;
  align-items: center;
  padding: 0 30px;
  margin: 25px 0;
}

.divider-line {
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg,
      transparent,
      rgba(74, 144, 226, 0.3),
      rgba(138, 43, 226, 0.3),
      transparent);
}

.divider-text {
  padding: 0 20px;
  color: #8a9bb2;
  font-size: 14px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 1px;
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: 10px;
}

/* Форма комментария */
.comment-form-container {
  padding: 30px;
  background: rgba(255, 255, 255, 0.02);
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.form-header {
  margin-bottom: 25px;
}

.form-header h4 {
  color: #fff;
  margin: 0 0 10px 0;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 20px;
}

.form-tips {
  display: flex;
  gap: 15px;
}

.tip {
  color: #8a9bb2;
  font-size: 13px;
  display: flex;
  align-items: center;
  gap: 6px;
}

/* Превью ответа */
.reply-preview {
  background: rgba(74, 144, 226, 0.1);
  border: 1px solid rgba(74, 144, 226, 0.3);
  border-radius: 10px;
  padding: 12px 15px;
  margin-bottom: 15px;
  display: none;
  align-items: center;
  justify-content: space-between;
}

.reply-preview.visible {
  display: flex;
  animation: slideDown 0.3s ease;
}

.reply-to {
  color: #4a90e2;
  font-weight: 500;
  font-size: 14px;
}

.close-reply {
  background: transparent;
  border: none;
  color: #8a9bb2;
  cursor: pointer;
  font-size: 16px;
  padding: 5px;
  border-radius: 50%;
  transition: all 0.3s;
}

.close-reply:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
}

/* Поле ввода */
.textarea-wrapper {
  position: relative;
  margin-bottom: 15px;
}

.textarea-wrapper textarea {
  width: 100%;
  min-height: 120px;
  padding: 15px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  color: #fff;
  font-size: 15px;
  font-family: inherit;
  line-height: 1.5;
  resize: none;
  transition: all 0.3s;
}

.textarea-wrapper textarea:focus {
  outline: none;
  border-color: #4a90e2;
  background: rgba(255, 255, 255, 0.08);
  box-shadow: 0 0 0 3px rgba(74, 144, 226, 0.1);
}

.textarea-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 10px;
  padding: 0 5px;
}

.char-count {
  color: #8a9bb2;
  font-size: 13px;
}

.formatting-tips {
  display: flex;
  gap: 10px;
}

.format-hint {
  color: #8a9bb2;
  font-size: 13px;
  display: flex;
  align-items: center;
  gap: 5px;
}

/* Кнопки формы */
.form-actions {
  display: flex;
  justify-content: center;
  gap: 15px;
}

.btn-primary,
.btn-secondary {
  padding: 12px 25px;
  border-radius: 10px;
  font-weight: 500;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.3s;
  border: none;
  display: flex;
  align-items: center;
  gap: 8px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.btn-primary {
  background: linear-gradient(45deg, #4a90e2, #8a2be2);
  color: white;
  box-shadow: 0 4px 15px rgba(74, 144, 226, 0.3);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(74, 144, 226, 0.4);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.1);
  color: #8a9bb2;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
}

/* Приглашение авторизации */
.auth-prompt {
  text-align: center;
  padding: 40px;
  background: rgba(255, 255, 255, 0.03);
  border-radius: 15px;
  border: 2px dashed rgba(74, 144, 226, 0.3);
}

.auth-icon {
  font-size: 48px;
  color: #4a90e2;
  margin-bottom: 20px;
}

.auth-content h4 {
  color: #fff;
  margin-bottom: 10px;
  font-size: 22px;
}

.auth-content p {
  color: #8a9bb2;
  margin-bottom: 25px;
  font-size: 16px;
}

.social-auth-buttons {
  display: flex;
  justify-content: center;
  gap: 15px;
  margin: 25px 0;
}

.social-btn {
  padding: 12px 25px;
  border-radius: 10px;
  text-decoration: none;
  font-weight: 500;
  font-size: 14px;
  display: flex;
  align-items: center;
  gap: 10px;
  transition: all 0.3s;
  min-width: 120px;
  justify-content: center;
}

.social-btn.yandex {
  background: #DC143C;
  color: #fff;
  border: 1px solid #b31030;
}

.social-btn.yandex:hover {
  background: #b31030;
  transform: translateY(-2px);
}

.social-btn.vk {
  background: linear-gradient(135deg, #4C75A3 0%, #5B7FA6 100%);
  color: white;
  border: 1px solid #3a5a80;
}

.social-btn.vk:hover {
  background: linear-gradient(135deg, #3a5a80 0%, #4C75A3 100%);
  transform: translateY(-2px);
}

.social-btn.telegram {
  background: linear-gradient(135deg, #0088cc 0%, #33A9E0 100%);
  color: white;
  border: 1px solid #006699;
}

.social-btn.telegram:hover {
  background: linear-gradient(135deg, #006699 0%, #0088cc 100%);
  transform: translateY(-2px);
}

.auth-note {
  margin-top: 20px;
  color: #8a9bb2;
  font-size: 13px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

/* Кнопка "Наверх" */
.scroll-top-btn {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 50px;
  height: 50px;
  background: linear-gradient(45deg, #4a90e2, #8a2be2);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  cursor: pointer;
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.3s;
  box-shadow: 0 4px 15px rgba(74, 144, 226, 0.4);
  z-index: 1000;
}

.scroll-top-btn.visible {
  opacity: 1;
  transform: translateY(0);
}

.scroll-top-btn:hover {
  transform: translateY(-5px) scale(1.1);
  box-shadow: 0 6px 20px rgba(74, 144, 226, 0.6);
}

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

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

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }

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

.slide-up {
  animation: slideUp 0.5s ease;
}

.fade-in {
  animation: fadeIn 0.5s ease;
}

/* Индикатор загрузки */
.loading-indicator {
  display: none;
  text-align: center;
  padding: 30px;
  color: #8a9bb2;
  flex-direction: column;
  align-items: center;
  gap: 15px;
}

.loading-indicator.active {
  display: flex;
}

.spinner {
  width: 40px;
  height: 40px;
  border: 3px solid rgba(74, 144, 226, 0.1);
  border-top-color: #4a90e2;
  border-radius: 50%;
  animation: rotate 1s linear infinite;
}

/* Адаптивность */
@media (max-width: 768px) {
  .comments-container {
    margin-top: 20px;
    border-radius: 15px;
  }

  .comments-header {
    padding: 20px;
    flex-direction: column;
    align-items: stretch;
  }

  .comments-list {
    padding: 15px 20px;
    max-height: 400px;
  }

  .comment-body,
  .comment-footer {
    padding-left: 0;
  }

  .comment-author-info {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }

  .avatar-wrapper {
    align-self: flex-start;
  }

  .comment-actions {
    opacity: 1;
    position: absolute;
    top: 20px;
    right: 20px;
  }

  .social-auth-buttons {
    flex-direction: column;
  }

  .social-btn {
    width: 100%;
    justify-content: center;
  }

  .form-actions {
    flex-direction: column;
  }

  .btn-primary,
  .btn-secondary {
    width: 100%;
    justify-content: center;
  }

  .scroll-top-btn {
    bottom: 20px;
    right: 20px;
    width: 45px;
    height: 45px;
  }
}

/* ========== ОБЩИЕ КОМПОНЕНТЫ ========== */
/* Карточки */
.card,
.content,
.additional-content,
.page-content,
.comments-container,
.auth-container,
.consent-container {
  background: var(--background-card);
  border-radius: 12px;
  box-shadow: 0 0 20px var(--shadow-medium);
  animation: fadeIn 1.2s ease;
}

.card,
.content {
  box-shadow: 0 0 20px var(--shadow-medium), 0 0 0 1px var(--shadow-light);
}

.card {
  padding: 30px;
  display: flex;
  align-items: center;
  gap: 20px;
  position: relative;
  overflow: hidden;
}

.card::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(125, 125, 255, 0.15), transparent);
  transition: left 0.6s ease;
}

.card:hover::before {
  left: 100%;
}

.container {
  max-width: 900px;
  margin: 30px auto;
  padding: 10px;
  box-sizing: border-box;
}

.aligned-width {
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
  box-sizing: border-box;
}

.additional-content {
  width: 100%;
  margin-top: 40px;
  padding: 30px;
}

.content {
  max-width: 800px;
  margin: 60px auto;
  padding: 20px;
  animation: slideIn 1s ease;
  position: relative;
}

.content::before,
.content::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 68, 68, 0.09), transparent);
  box-shadow: 0 0 3px var(--shadow-light);
}

.content::before {
  top: 0;
}

.content::after {
  bottom: 0;
}

/* Хедер */
header {
  padding: 20px;
  text-align: center;
  background: #111111;
  border-bottom: 1px solid var(--border-color);
  position: relative;
  z-index: 1;
}

header::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 0;
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(0, 100, 255, 0.26), transparent);
  z-index: 2;
}

.header-content {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* Навигация */
nav a {
  margin: 0 15px;
  color: var(--text-muted);
  text-decoration: none;
  transition: 0.3s;
  position: relative;
}

nav a:hover {
  color: #fff;
}

nav a::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(255, 68, 68, 0.15), transparent);
  transition: width 0.3s ease;
}

nav a:hover::after {
  width: 100%;
}

/* Меню профиля (выпадающее) */
.profile-menu {
  position: absolute;
  top: 60px;
  right: 20px;
  background: var(--background-card);
  border: 1px solid rgba(255, 255, 255, 0.04);
  border-radius: 8px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.6);
  padding: 8px 0;
  z-index: 1100;
  min-width: 180px;
}

.profile-menu-item {
  display: block;
  padding: 10px 16px;
  color: var(--text-light);
  text-decoration: none;
  font-size: 14px;
}

.profile-menu-item:hover {
  background: rgba(74, 144, 226, 0.08);
  color: #fff;
}

/* ========== КОМПОНЕНТЫ СТРАНИЦ ========== */
/* Профиль */
.photo-container {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 20px;
}

.photo,
.photo-placeholder {
  width: 200px;
  height: 200px;
  border-radius: 50%;
  object-fit: cover;
  border: 4px solid var(--border-color);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  background-color: var(--background-card);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  cursor: pointer;
}

.photo:active {
  transform: scale(0.95);
  box-shadow: 0 0 20px rgba(255, 68, 68, 0.3);
}

.photo-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  color: #666;
  font-size: 18px;
  position: relative;
  overflow: hidden;
}

.photo-placeholder::after {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: conic-gradient(transparent,
      rgba(0, 100, 255, 0.03),
      transparent 30%);
  animation: rotate 4s linear infinite;
  z-index: 1;
}

.photo-placeholder>* {
  position: relative;
  z-index: 2;
}

/* Анимация имени */
.name-container {
  display: inline-block;
  white-space: nowrap;
}

.falling-letter {
  display: inline-block;
  position: relative;
  animation: fallAndReturn 3s infinite ease-in-out;
  transform-origin: center;
}

.falling-space {
  display: inline-block;
  width: 0.3em;
}

/* Вторая страница */
.page-header {
  margin-bottom: 40px;
  text-align: center;
}

.page-subtitle {
  color: var(--text-muted);
  font-size: 18px;
  margin-top: 10px;
}

.info-section {
  margin-bottom: 15px;
}

.info-section h2 {
  color: var(--primary-color);
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.separator {
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 68, 68, 0.2), transparent);
  margin: 15px 0;
}

/* Проекты */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
  margin-top: 20px;
}

.project-card {
  background: var(--background-element);
  padding: 20px;
  border-radius: 10px;
  border-left: 4px solid rgba(74, 144, 226, 0.5);
  display: block;
  text-decoration: none;
  color: #fff;
  transition: all 0.3s ease;
  cursor: pointer;
}

.project-card:hover {
  background: rgba(74, 144, 226, 0.15);
  border-left-color: rgba(74, 144, 226, 1);
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(74, 144, 226, 0.2);
}

.project-card p {
  color: #fff;
}

.project-card h3 {
  color: #fff;
  margin-bottom: 10px;
}

.tech-tag {
  display: inline-block;
  background: rgba(74, 144, 226, 0.1);
  color: var(--primary-color);
  padding: 5px 12px;
  border-radius: 20px;
  font-size: 12px;
  margin-right: 8px;
  margin-top: 10px;
}

/* Навыки */
.skills-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.skill {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  padding: 8px 16px;
  border-radius: 20px;
  font-size: 14px;
  transition: all 0.3s;
}

.skill:hover {
  background: rgba(74, 144, 226, 0.2);
  transform: translateY(-2px);
}

/* ========== КНОПКИ ========== */
/* Общие стили кнопок */
.social-login-btn,
.social-btn,
.auth-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 20px;
  border-radius: 8px;
  text-decoration: none;
  transition: all 0.3s ease;
  font-weight: 500;
  color: white;
  cursor: pointer;
  border: none;
}

/* Кнопки авторизации */
.auth-buttons {
  display: flex;
  gap: 10px;
  align-items: center;
}

/* Профиль пользователя - аватарка */
.user-profile {
  display: flex;
  align-items: center;
  cursor: pointer;
}

.profile-avatar,
.profile-avatar-default {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  object-fit: cover;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  color: white;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
  transition: all 0.3s ease;
}

.profile-avatar:hover,
.profile-avatar-default:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.4);
}

.social-login-btn {
  background: linear-gradient(45deg, var(--primary-color), var(--primary-dark));
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.social-login-btn:hover {
  background: linear-gradient(45deg, var(--primary-dark), var(--primary-darker));
  transform: translateY(-2px);
  box-shadow: 0 6px 8px rgba(0, 0, 0, 0.15);
}

.social-login-btn i {
  font-size: 18px;
}

.social-login-btn.social-main {
  background: linear-gradient(45deg, var(--primary-color), var(--accent-purple));
}

.social-login-btn.social-main:hover {
  background: linear-gradient(45deg, var(--primary-dark), var(--accent-purple-dark));
}

/* Социальные кнопки в форме */
.social-buttons {
  display: flex;
  flex-direction: column;
  gap: 15px;
  margin-bottom: 20px;
}

.social-login-title {
  color: var(--text-light);
  margin-bottom: 30px;
  font-size: 24px;
}

.social-btn.vk {
  background: linear-gradient(135deg, #4C75A3 0%, #5B7FA6 100%);
  border: 1px solid #3a5a80;
}

.social-btn.vk:hover {
  background: linear-gradient(135deg, #3a5a80 0%, #4C75A3 100%);
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(76, 117, 163, 0.4);
}

.social-btn.telegram {
  background: linear-gradient(135deg, #0088cc 0%, #33A9E0 100%);
  border: 1px solid #006699;
}

.social-btn.google {
  background: #ffffff;
  color: #3c4043;
  border: 1px solid #dadce0;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.social-btn.google:hover {
  background: #f8f9fa;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.15);
  transform: translateY(-2px);
}

.social-btn.telegram:hover {
  background: linear-gradient(135deg, #006699 0%, #0088cc 100%);
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(0, 136, 204, 0.4);
}

.social-icon {
  font-size: 20px;
}

/* Кнопки навигации */
.auth-btn {
  position: relative;
  overflow: hidden;
  z-index: 1;
  padding: 8px 20px;
  border: 2px solid transparent;
  border-radius: 6px;
  background: var(--background-element);
  margin: 0 10px;
}

.auth-btn::before,
.auth-btn::after {
  content: '';
  position: absolute;
  top: 50%;
  width: 0;
  height: 100%;
  background: rgba(0, 100, 255, 0.16);
  transform: translateY(-50%);
  transition: width 0.3s ease;
  z-index: -1;
}

.auth-btn::before {
  left: 0;
}

.auth-btn::after {
  right: 0;
}

.auth-btn:hover::before,
.auth-btn:hover::after {
  width: 10px;
}

.auth-btn:hover {
  border-left-color: rgba(255, 68, 68, 0.3);
  border-right-color: rgba(255, 68, 68, 0.3);
  box-shadow:
    5px 0 4.5px rgba(255, 68, 68, 0.23),
    -5px 0 4.5px rgba(255, 68, 68, 0.23);
}

.login-btn:hover {
  border-left-color: rgba(74, 144, 226, 0.3);
  border-right-color: rgba(74, 144, 226, 0.3);
  box-shadow:
    5px 0 4.5px rgba(74, 144, 226, 0.23),
    -5px 0 4.5px rgba(74, 144, 226, 0.23);
}

.login-btn::before,
.login-btn::after {
  background: rgba(74, 144, 226, 0.16);
}

.register-btn::before,
.register-btn::after {
  background: rgba(255, 255, 255, 0.16);
}

/* Боковые иконки */
.side-icons {
  position: fixed;
  top: 90px;
  right: 20px;
  display: flex;
  flex-direction: column;
  gap: 15px;
  z-index: 999;
}

.side-icon {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  color: white;
  text-decoration: none;
  transition: all 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);
  position: relative;
  overflow: hidden;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
  transform: translateX(0);
  opacity: 1;
}

.side-icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
}

.side-icon.github {
  background-color: #333;
}

.side-icon.linkedin {
  background-color: #0077b5;
}

.side-icon.telegram {
  background-color: #0088cc;
}

.side-icon.discord {
  background-color: #7289da;
}

.side-icon:hover {
  transform: translateX(-10px) scale(1.1);
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.4);
}

.side-icon::after {
  content: attr(data-tooltip);
  position: absolute;
  right: 70px;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0, 0, 0, 0.8);
  color: white;
  padding: 5px 10px;
  border-radius: 4px;
  font-size: 14px;
  white-space: nowrap;
  opacity: 0;
  transition: opacity 0.3s ease, transform 0.3s ease;
  pointer-events: none;
}

.side-icon:hover::after {
  opacity: 1;
  transform: translateY(-50%) translateX(-5px);
}

.side-icon.pulse {
  animation: pulse 2s infinite;
}

.side-icons.hidden {
  transform: translateX(200px);
  opacity: 0;
  pointer-events: none;
}

.side-icons.visible {
  animation: slideInFromRight 0.8s ease-out forwards;
}

/* ========== ФОРМЫ ========== */
/* Форма авторизации */
.auth-container {
  max-width: 400px;
  margin: 100px auto;
  padding: 40px;
  text-align: center;
}

.divider {
  display: flex;
  align-items: center;
  margin: 20px 0;
  color: #666;
}

.divider::before,
.divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border-color);
}

.divider span {
  padding: 0 15px;
  font-size: 14px;
}

.consent-link {
  margin-top: 20px;
  font-size: 14px;
  color: #888;
}

.consent-link a {
  color: var(--primary-color);
  text-decoration: none;
}

.consent-link a:hover {
  text-decoration: underline;
}

/* Форма согласия */
.consent-container {
  max-width: 800px;
  margin: 50px auto;
  padding: 40px;
}

.consent-title {
  color: var(--text-light);
  margin-bottom: 30px;
  text-align: center;
  font-size: 28px;
  border-bottom: 2px solid var(--primary-color);
  padding-bottom: 15px;
}

.consent-content {
  color: var(--text-muted);
  line-height: 1.8;
  font-size: 16px;
}

.consent-content h2 {
  color: var(--primary-color);
  margin: 25px 0 15px;
  font-size: 20px;
}

.consent-content p {
  margin-bottom: 15px;
  text-align: justify;
}

.consent-content ul {
  margin: 15px 0;
  padding-left: 20px;
}

.consent-content li {
  margin-bottom: 10px;
}

.consent-footer {
  margin-top: 40px;
  padding-top: 20px;
  border-top: 1px solid var(--border-color);
  text-align: center;
  color: #888;
  font-size: 14px;
}

.cookie-notice {
  background: var(--background-element);
  padding: 20px;
  border-radius: 8px;
  margin-top: 30px;
  border-left: 4px solid var(--primary-color);
}

.cookie-notice h3 {
  color: var(--text-light);
  margin-bottom: 10px;
}

.back-link {
  display: inline-block;
  margin-top: 30px;
  color: var(--primary-color);
  text-decoration: none;
  font-size: 16px;
  transition: color 0.3s;
}

.back-link:hover {
  color: var(--primary-dark);
  text-decoration: underline;
}

/* Форма входа */
.auth-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.auth-form input {
  padding: 12px;
  border-radius: 5px;
  border: 1px solid var(--border-color);
  background: #0d0d0d;
  color: var(--text-light);
  font-size: 16px;
}

.auth-form button {
  padding: 12px;
  border-radius: 5px;
  border: none;
  background: var(--primary-color);
  color: white;
  font-size: 16px;
  cursor: pointer;
  transition: background 0.3s;
}

.auth-form button:hover {
  background: var(--primary-dark);
}

/* Комментарии */
.comments-container {
  margin-top: 40px;
  padding: 30px;
}

.comment-form {
  margin-bottom: 40px;
}

.comment-form textarea {
  width: 100%;
  min-height: 120px;
  padding: 15px;
  background: #0d0d0d;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  color: #fff;
  font-size: 16px;
  resize: vertical;
  margin-bottom: 15px;
}

.comment-form textarea:focus {
  outline: none;
  border-color: var(--primary-color);
}

.comment-form button {
  background: linear-gradient(45deg, var(--primary-color), var(--primary-dark));
  color: white;
  border: none;
  padding: 12px 30px;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 500;
  transition: all 0.3s ease;
}

.comment-form button:hover {
  background: linear-gradient(45deg, var(--primary-dark), var(--primary-darker));
  transform: translateY(-2px);
}

.comment {
  background: var(--background-element);
  padding: 20px;
  border-radius: 10px;
  margin-bottom: 20px;
  border-left: 4px solid var(--primary-color);
}

.comment-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 15px;
}

.comment-author {
  display: flex;
  align-items: center;
  gap: 10px;
}

.comment-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
}

.author-name {
  font-weight: bold;
  color: var(--primary-color);
}

.comment-date {
  color: #888;
  font-size: 14px;
}

.comment-text {
  color: #ddd;
  line-height: 1.6;
  margin: 0;
}

.delete-comment-btn {
  background: none;
  border: none;
  color: #dc3545;
  cursor: pointer;
  font-size: 14px;
  padding: 5px 10px;
  border-radius: 5px;
  transition: background 0.3s;
}

.delete-comment-btn:hover {
  background: rgba(220, 53, 69, 0.1);
}

.no-comments {
  text-align: center;
  color: #888;
  padding: 40px;
  font-style: italic;
}

.login-prompt {
  text-align: center;
  padding: 30px;
  background: var(--background-element);
  border-radius: 10px;
  margin-bottom: 30px;
}

.login-prompt a {
  color: var(--primary-color);
  text-decoration: none;
  font-weight: bold;
}

.login-prompt a:hover {
  text-decoration: underline;
}

/* ========== ТИПОГРАФИЯ ========== */
h1,
h2,
h3 {
  color: #fff;
  text-shadow: 0 0 3px rgba(0, 100, 255, 0.06);
}

.card p,
.additional-content p,
.content p {
  line-height: 1.8;
  /* Было примерно 1.4-1.5, станет 1.8 */
  margin-top: 10px;
  /* Добавляем отступ сверху */
  margin-bottom: 10px;
  /* И снизу */
}

.card h1 {
  position: relative;
  display: inline-block;
}

.card h1::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(255, 68, 68, 0.15), transparent);
  box-shadow: 0 0 1.5px rgba(255, 68, 68, 0.15);
}

.content a {
  color: rgba(255, 102, 102, 0.7);
  text-decoration: none;
  transition: 0.3s;
  position: relative;
}

.content a:hover {
  color: rgba(255, 51, 51, 0.8);
  text-shadow: 0 0 3px rgba(255, 51, 51, 0.09);
}

.content a::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 1px;
  background: rgba(255, 51, 51, 0.6);
  transition: width 0.3s ease;
  box-shadow: 0 0 1.5px rgba(255, 51, 51, 0.15);
}

.content a:hover::after {
  width: 100%;
}

/* ========== СКРОЛЛБАР ========== */
::-webkit-scrollbar {
  width: 30px;
}

::-webkit-scrollbar-track {
  background: var(--background-card);
}

::-webkit-scrollbar-thumb {
  background: linear-gradient(to bottom, #333, #222);
  border-radius: 5px;
  border: 1px solid rgba(0, 100, 255, 0.06);
}

::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(to bottom, #444, #333);
  border-color: rgba(0, 100, 255, 0.12);
}

/* ========== АДАПТИВНОСТЬ ========== */
@media (max-width: 768px) {
  .card {
    flex-direction: column;
    text-align: center;
  }

  .photo,
  .photo-placeholder {
    width: 150px;
    height: 150px;
  }

  body::before {
    opacity: 0.7;
  }
}

/* ========== ОДИНАКОВАЯ ШИРИНА БЛОКОВ ========== */
.container:first-of-type .card,
.container:last-of-type .additional-content {
  max-width: 900px;
  width: 100%;
  margin-left: auto;
  margin-right: auto;
  box-sizing: border-box;
}

.container:first-of-type {
  margin-top: 30px;
  margin-bottom: 20px;
}

.container:last-of-type {
  margin-top: 20px;
  margin-bottom: 30px;
}

/* Убедимся, что внутренние отступы одинаковые */
.card,
.additional-content {
  padding: 30px;
}

/* Адаптивность для мобильных */
@media (max-width: 768px) {

  .container:first-of-type .card,
  .container:last-of-type .additional-content {
    max-width: 95%;
    padding: 20px;
  }

  .container:first-of-type,
  .container:last-of-type {
    margin-left: 10px;
    margin-right: 10px;
    padding: 0;
  }
}



/* Добавьте в ваш CSS файл */
.social-btn.yandex {
  background-color: #DC143C;
  color: #fff;
}

.social-btn.yandex:hover {
  background-color: #b31030;
}

.social-btn.yandex .social-icon {
  color: #fff;
}