/* ===== СТРАНИЦА 404 ===== */

.error-page {
  min-height: 100vh;
  background: #171819;
  color: #fff;
  font-family: 'Inter', 'YS Text', Arial, sans-serif;
}

.error-main {
  min-height: 100vh;
  padding-top: 80px;
  display: flex;
  flex-direction: column;
  background:
    linear-gradient(90deg, rgba(20, 21, 22, 0.98) 0%, rgba(20, 21, 22, 0.9) 34%, rgba(20, 21, 22, 0.2) 63%, rgba(20, 21, 22, 0.06) 100%),
    url('assets/images/gold-logo.png') right center / cover no-repeat,
    #171819;
}

.error-hero {
  flex: 1;
  min-height: 620px;
  display: flex;
  align-items: center;
}

.error-hero__inner {
  width: 100%;
  max-width: 1600px;
  margin: 0 auto;
  padding: 70px 90px 55px;
}

.error-content {
  width: min(620px, 100%);
}

.error-code {
  margin: 0 0 6px;
  color: #ffbe00;
  font-size: clamp(150px, 17vw, 250px);
  font-weight: 800;
  line-height: 0.78;
  letter-spacing: -0.075em;
  text-shadow: 0 8px 28px rgba(0, 0, 0, 0.3);
}

.error-title {
  margin: 38px 0 0;
  color: #fff;
  font-family: 'Inter', 'YS Text', Arial, sans-serif;
  font-size: clamp(36px, 3.4vw, 56px);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.04em;
}

.error-description {
  margin: 28px 0 0;
  color: rgba(255, 255, 255, 0.69);
  font-size: clamp(18px, 1.5vw, 25px);
  font-weight: 400;
  line-height: 1.55;
}

.error-actions {
  margin-top: 38px;
  display: flex;
  align-items: center;
  gap: 42px;
}

.error-button {
  min-width: 325px;
  min-height: 68px;
  padding: 16px 28px 16px 34px;
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  color: #111;
  background: #ffbe00;
  border: 1px solid #ffd24a;
  border-radius: 12px;
  text-decoration: none;
  font-size: 20px;
  font-weight: 600;
  box-shadow: 0 8px 30px rgba(255, 190, 0, 0.12);
  transition: transform 0.2s ease, background-color 0.2s ease, box-shadow 0.2s ease;
}

.error-button svg {
  width: 27px;
  height: 27px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: transform 0.2s ease;
}

.error-button:hover {
  color: #111;
  background: #ffd000;
  transform: translateY(-2px);
  box-shadow: 0 12px 34px rgba(255, 190, 0, 0.2);
}

.error-button:hover svg {
  transform: translateX(4px);
}

.error-link {
  position: relative;
  padding: 10px 0 11px;
  color: #fff;
  text-decoration: none;
  font-size: 20px;
  font-weight: 500;
  white-space: nowrap;
}

.error-link::after {
  content: '';
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 2px;
  background: #ffd000;
  transform-origin: left;
  transition: transform 0.2s ease;
}

.error-link:hover::after {
  transform: scaleX(0.65);
}

.error-button:focus-visible,
.error-link:focus-visible {
  outline: 3px solid rgba(255, 208, 0, 0.45);
  outline-offset: 5px;
}

/* ===== НИЖНЯЯ ПАНЕЛЬ ===== */

.error-benefits {
  width: calc(100% - 80px);
  max-width: 1560px;
  min-height: 124px;
  margin: 0 auto 34px;
  padding: 22px 28px;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  align-items: center;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 18px;
  background: rgba(28, 29, 30, 0.74);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.035), 0 18px 42px rgba(0, 0, 0, 0.16);
  backdrop-filter: blur(5px);
}

.benefit-item {
  min-height: 72px;
  padding: 0 30px;
  display: flex;
  align-items: center;
  gap: 22px;
}

.benefit-item + .benefit-item {
  border-left: 1px solid rgba(255, 255, 255, 0.22);
}

.benefit-icon {
  width: 62px;
  height: 62px;
  flex: 0 0 auto;
  object-fit: contain;
  display: block;
}

.benefit-item h2 {
  margin: 0;
  color: #fff;
  font-family: 'Inter', 'YS Text', Arial, sans-serif;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: -0.02em;
}

.benefit-item p {
  margin: 8px 0 0;
  color: rgba(255, 255, 255, 0.5);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.25;
}

/* ===== АДАПТИВ ===== */

@media (max-width: 1320px) {
  .error-hero__inner {
    padding-right: 55px;
    padding-left: 55px;
  }

  .error-benefits {
    width: calc(100% - 50px);
    padding-right: 12px;
    padding-left: 12px;
  }

  .benefit-item {
    padding: 0 18px;
    gap: 14px;
  }

  .benefit-icon {
    width: 50px;
    height: 50px;
  }
}

@media (max-width: 1180px) {
  .error-main {
    padding-top: 72px;
    background:
      linear-gradient(90deg, rgba(20, 21, 22, 0.98) 0%, rgba(20, 21, 22, 0.86) 54%, rgba(20, 21, 22, 0.28) 100%),
      url('assets/images/gold-logo.png') 63% center / auto 100% no-repeat,
      #171819;
  }

  .error-hero {
    min-height: 590px;
  }

  .error-benefits {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0;
  }

  .benefit-item {
    padding: 20px 24px;
  }

  .benefit-item:nth-child(3) {
    border-left: 0;
    border-top: 1px solid rgba(255, 255, 255, 0.18);
  }

  .benefit-item:nth-child(4) {
    border-top: 1px solid rgba(255, 255, 255, 0.18);
  }
}

@media (max-width: 760px) {
  .error-main {
    background:
      linear-gradient(rgba(20, 21, 22, 0.88), rgba(20, 21, 22, 0.94)),
      url('assets/images/gold-logo.png') 68% top / auto 62% no-repeat,
      #171819;
  }

  .error-hero {
    min-height: auto;
  }

  .error-hero__inner {
    padding: 86px 24px 70px;
  }

  .error-code {
    font-size: clamp(120px, 39vw, 190px);
  }

  .error-title {
    margin-top: 30px;
  }

  .error-actions {
    align-items: stretch;
    flex-direction: column;
    gap: 22px;
  }

  .error-button {
    width: 100%;
    min-width: 0;
  }

  .error-link {
    width: fit-content;
  }

  .error-benefits {
    width: calc(100% - 32px);
    grid-template-columns: 1fr;
    margin-bottom: 20px;
    padding: 8px 18px;
  }

  .benefit-item {
    padding: 22px 8px;
  }

  .benefit-item + .benefit-item,
  .benefit-item:nth-child(3),
  .benefit-item:nth-child(4) {
    border-left: 0;
    border-top: 1px solid rgba(255, 255, 255, 0.18);
  }
}

@media (max-width: 520px) {
  .error-main {
    padding-top: 64px;
  }

  .error-hero__inner {
    padding: 70px 18px 56px;
  }

  .error-title {
    font-size: 34px;
  }

  .error-description {
    font-size: 18px;
  }

  .error-button {
    min-height: 62px;
    padding-right: 22px;
    padding-left: 24px;
    font-size: 17px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .error-button,
  .error-button svg,
  .error-link::after {
    transition: none;
  }
}
