/* 404.css — стили для страницы ошибки 404 */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  background: #0a0f13;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  color: #eef4f8;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.8s ease;
  padding: 24px;
}

body.loaded {
  opacity: 1;
}

.error-wrapper {
  max-width: 820px;
  width: 100%;
  background: #0f171e;
  border: 1px solid #1a2a32;
  border-radius: 48px;
  padding: 32px 40px 28px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.6);
  display: flex;
  flex-direction: column;
  min-height: 75vh;
  backdrop-filter: blur(2px);
  transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.error-wrapper:hover {
  transform: translateY(-4px);
  box-shadow: 0 32px 80px rgba(0, 0, 0, 0.7);
}

/* ===== ШАПКА ===== */
.error-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 20px;
  border-bottom: 1px solid #1a2a32;
  flex-wrap: wrap;
  gap: 12px;
}

.logo-area {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.logo-icon {
  font-size: 28px;
  color: #4f8aaa;
}

.logo-text {
  font-size: 24px;
  font-weight: 700;
  color: #eef4f8;
  letter-spacing: -0.5px;
}

.logo-text span {
  color: #4f8aaa;
}

.btn-ghost {
  background: transparent;
  border: 1px solid #2f404a;
  color: #b0ccdd;
  padding: 8px 18px;
  border-radius: 40px;
  font-size: 14px;
  font-weight: 500;
  font-family: inherit;
  cursor: pointer;
  transition: 0.25s ease;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
}

.btn-ghost:hover {
  background: #162026;
  border-color: #4f8aaa;
  color: #dce9f2;
}

/* ===== ОСНОВНОЙ БЛОК ===== */
.error-main {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px 0 12px;
}

.error-content {
  text-align: center;
  max-width: 620px;
  margin: 0 auto;
}

/* 404 иконка */
.error-icon {
  position: relative;
  display: inline-flex;
  margin-bottom: 28px;
}

.error-icon svg {
  width: 120px;
  height: 120px;
}

/* Анимация для 404 цифр */
.error-number {
  font-size: 120px;
  font-weight: 800;
  line-height: 1;
  background: linear-gradient(135deg, #4f8aaa, #f5a623);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: float 3s ease-in-out infinite;
  letter-spacing: 0.05em;
}

@keyframes float {
  0%, 100% { transform: translateY(0px) scale(1); }
  50% { transform: translateY(-10px) scale(1.02); }
}

.error-title {
  font-size: 32px;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.2;
  margin-bottom: 12px;
  color: #eef4f8;
}

.error-title span {
  color: #f5a623;
}

.error-description {
  font-size: 18px;
  color: #8aa6b8;
  line-height: 1.6;
  max-width: 480px;
  margin: 0 auto 30px;
}

.error-description strong {
  color: #dce9f2;
  font-weight: 600;
}

/* Смешной блок */
.funny-error {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: #10181e;
  border: 1px solid #1f2f38;
  border-radius: 60px;
  padding: 10px 24px;
  margin: 0 auto 32px;
  font-size: 15px;
  color: #6d8fa0;
  width: fit-content;
  flex-wrap: wrap;
}

.emoji-big {
  font-size: 28px;
  line-height: 1;
}

/* Кнопки */
.error-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin-bottom: 36px;
}

.btn-primary,
.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 32px;
  border-radius: 60px;
  font-size: 16px;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  transition: 0.25s ease;
  border: none;
  text-decoration: none;
}

.btn-primary {
  background: linear-gradient(135deg, #f7b731, #f5a623);
  color: #0a0f13;
  box-shadow: 0 4px 16px rgba(245, 166, 35, 0.25);
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 28px rgba(245, 166, 35, 0.4);
}

.btn-secondary {
  background: transparent;
  border: 1px solid #2f404a;
  color: #b0ccdd;
}

.btn-secondary:hover {
  background: #162026;
  border-color: #4f8aaa;
  color: #dce9f2;
}

/* Подсказка */
.hint-text {
  font-size: 14px;
  color: #4f6a7a;
}

.hint-text a {
  color: #4f8aaa;
  text-decoration: none;
  transition: 0.2s ease;
}

.hint-text a:hover {
  color: #7bb8d4;
  text-decoration: underline;
}

/* ===== ПОДВАЛ ===== */
.error-footer {
  margin-top: 20px;
  padding-top: 18px;
  border-top: 1px solid #1a2a32;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  font-size: 14px;
  color: #4f6a7a;
  flex-wrap: wrap;
}

.error-footer i {
  margin: 0 2px;
}

/* ===== АДАПТИВ ===== */
@media (max-width: 700px) {
  .error-wrapper {
    padding: 24px 20px 20px;
    border-radius: 32px;
    min-height: 70vh;
  }

  .error-number {
    font-size: 80px;
  }

  .error-title {
    font-size: 28px;
  }

  .error-description {
    font-size: 16px;
    padding: 0 4px;
  }

  .btn-primary,
  .btn-secondary {
    padding: 12px 24px;
    font-size: 15px;
  }

  .error-icon svg {
    width: 90px;
    height: 90px;
  }
}

@media (max-width: 480px) {
  body {
    padding: 12px;
  }
  .error-wrapper {
    padding: 18px 14px 16px;
    border-radius: 24px;
  }
  .error-number {
    font-size: 60px;
  }
  .error-title {
    font-size: 22px;
  }
  .error-description {
    font-size: 15px;
  }
  .error-actions {
    flex-direction: column;
    width: 100%;
  }
  .btn-primary,
  .btn-secondary {
    width: 100%;
    justify-content: center;
  }
  .funny-error {
    font-size: 14px;
    padding: 8px 16px;
  }
  .error-footer {
    font-size: 13px;
    flex-direction: column;
    gap: 4px;
  }
}