/* style.css — стили только для блока ошибки 404 */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #f8f6f0;
  font-family: 'Montserrat', 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  color: #333;
  padding: 20px;
}

/* Основной блок */
.page_error_block {
  width: 100%;
  max-width: 1000px;
  margin: 0 auto;
}

/* Контейнер 404 */
.page_not_found {
  width: 100%;
  border: none;
  border-collapse: collapse;
}

/* Секция описания */
.description {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 60px 30px 30px;
  background-color: #ffffff;
  border-radius: 24px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.06);
}

/* Заголовок */
.subtitle404 {
    font-size: 32px;
    line-height: 36px;
    color: #333;
    margin-bottom: 12px;
    font-weight: 400;
}

/* Текст ошибки */
.descr_text404 {
  font-size: 16px;
  line-height: 1.5;
  color: #777;
  margin-bottom: 28px;
  max-width: 500px;
}

/* Общие стили для кнопок */
.btn {
  display: inline-block;
  padding: 14px 32px;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.4;
  text-align: center;
  text-decoration: none;
  border-radius: 60px;
  cursor: pointer;
  transition: all 0.25s ease;
  border: 2px solid transparent;
  margin: 6px 8px;
  letter-spacing: 0.2px;
  -webkit-tap-highlight-color: transparent;
  user-select: none;
}

/* Кнопка "Вернуться назад" — прозрачная с рамкой */
.btn-transparent-border {
  background: transparent;
  border-color: #c8b89a;
  color: #8a7a5e;
}

.btn-transparent-border:hover,
.btn-transparent-border:focus {
  background-color: #f5f0e8;
  border-color: #b8a580;
  color: #6d5e45;
  outline: none;
}

.btn-transparent-border:active {
  transform: scale(0.97);
}

/* Кнопка "На главную" — основная */
.btn-default {
  background-color: #c8a86b;
  border-color: #c8a86b;
  color: #ffffff;
}

.btn-default:hover,
.btn-default:focus {
  background-color: #b8975a;
  border-color: #b8975a;
  color: #ffffff;
  outline: none;
}

.btn-default:active {
  transform: scale(0.97);
}

/* Размер кнопок */
.btn-lg {
  padding: 14px 32px;
  font-size: 16px;
}

/* Стиль для главной кнопки (на случай, если понадобится) */
.btn-mainpage {
  white-space: nowrap;
}

/* Ripple-эффект (лёгкий, только для визуала) */
.has-ripple {
  position: relative;
  overflow: hidden;
  transform: translateZ(0);
}

.has-ripple::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.5) 10%, transparent 10.01%);
  background-position: center;
  background-repeat: no-repeat;
  background-size: 1000% 1000%;
  opacity: 0;
  transition: opacity 0.6s, background-size 0.6s;
  pointer-events: none;
}

.has-ripple:active::after {
  background-size: 0% 0%;
  opacity: 1;
  transition: 0s;
}

/* Блок с фирменным описанием */
.description_custom {
    margin-top: 26px;
    font-size: 15px;
    line-height: 1.7;
    color: #555;
    max-width: 860px;
    border-top: 1px solid #eee6da;
    padding-top: 26px;
    font-weight: 700;
}

.description_custom br {
  display: block;
  content: '';
  margin: 4px 0;
}

/* Изображение 404 */
.image {
  margin-top: 6px;
  width: 100%;
  display: flex;
  justify-content: center;
}

.image img {
  display: block;
  max-width: 100%;
  height: auto;
  max-height: 280px;
  width: auto;
}

/* Адаптивность */
@media (max-width: 520px) {
  .description {
    padding: 28px 18px 36px;
  }

  .subtitle404 {
    font-size: 24px;
  }

  .descr_text404 {
    font-size: 14px;
    margin-bottom: 20px;
  }

  .btn {
    padding: 12px 22px;
    font-size: 14px;
    display: block;
    width: 100%;
    margin: 6px 0;
  }

  .description_custom {
    font-size: 13px;
    margin-top: 26px;
    padding-top: 20px;
  }

  .image img {
    max-height: 120px;
  }
}