body.error404 #primary.site-main-404
{
  width: 100%;
  margin: 0 auto;
  padding: clamp(140px, 11.45vw, 220px) clamp(24px, 9.27vw, 178px) clamp(60px, 7.3vw, 140px);
}

body.error404 .error-404
{
  display: grid;
  grid-template-columns: minmax(280px, 0.92fr) minmax(360px, 1fr);
  align-items: stretch;
  gap: clamp(30px, 5.2vw, 100px);
  width: 100%;
  max-width: 1320px;
  margin: 0 auto;
}

body.error404 .error-404__media
{
  position: relative;
  min-height: clamp(360px, 34.38vw, 660px);
  overflow: hidden;
  border-radius: 15px;
  isolation: isolate;
}

body.error404 .error-404__media::after
{
  content: "404";
  position: absolute;
  right: clamp(18px, 2.6vw, 50px);
  bottom: clamp(16px, 2.3vw, 44px);
  z-index: 1;
  color: #fff;
  font-size: clamp(76px, 9.38vw, 180px);
  font-weight: 700;
  line-height: 0.78;
  opacity: 0.9;
}

body.error404 .error-404__media::before
{
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(180deg, rgba(57, 57, 57, 0.02) 0%, rgba(57, 57, 57, 0.62) 100%);
  pointer-events: none;
}

body.error404 .error-404__media img
{
  display: block;
  width: 100%;
  height: 100%;
  min-height: inherit;
  object-fit: cover;
  object-position: center;
}

body.error404 .error-404__content
{
  align-self: center;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  max-width: 620px;
  padding: clamp(32px, 4.17vw, 80px) clamp(28px, 4.17vw, 80px);
  border-radius: 15px;
  background-color: #fff;
}

body.error404 .error-404__eyebrow
{
  margin: 0 0 17px;
  color: #dd0812;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0;
  text-transform: uppercase;
}

body.error404 .page-title
{
  position: relative;
  width: fit-content;
  margin: 0 0 clamp(22px, 2.08vw, 40px);
  font-size: clamp(28px, 2.6vw, 50px);
  font-weight: 400;
  line-height: 1.12;
}

body.error404 .page-title.title-decoration-red::before
{
  content: "";
  position: absolute;
  right: -27px;
  bottom: 3px;
  width: 21px;
  height: 7px;
  background-color: #dd0812;
}

body.error404 .error-404__text
{
  max-width: 520px;
  margin: 0;
  text-align: justify;
}

body.error404 .error-404__actions
{
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px clamp(18px, 1.56vw, 30px);
  margin-top: clamp(30px, 3.7vw, 71px);
}

body.error404 .error-404__actions .btn-formworks
{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  text-align: center;
}

body.error404 .error-404__actions .btn-formworks:visited
{
  color: #fff;
}

body.error404 .error-404__actions .btn-formworks:hover,
body.error404 .error-404__actions .btn-formworks:focus
{
  color: #dd0812;
}

body.error404 .error-404__link
{
  position: relative;
  color: #393939;
  font-size: 16px;
  font-weight: 500;
  text-decoration: none;
  transition: color 0.3s ease-in-out;
}

body.error404 .error-404__link::after
{
  content: "";
  position: absolute;
  right: 0;
  bottom: -7px;
  left: 0;
  height: 2px;
  background-color: #dd0812;
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.3s ease-in-out;
}

body.error404 .error-404__link:visited
{
  color: #393939;
}

body.error404 .error-404__link:hover,
body.error404 .error-404__link:focus
{
  color: #dd0812;
}

body.error404 .error-404__link:hover::after,
body.error404 .error-404__link:focus::after
{
  transform: scaleX(1);
}

@media (max-width: 1024px)
{
  body.error404 #primary.site-main-404
  {
    padding-inline: clamp(22px, 4vw, 36px);
  }

  body.error404 .error-404
  {
    grid-template-columns: 1fr;
    max-width: 760px;
    gap: 0;
  }

  body.error404 .error-404__media
  {
    min-height: clamp(260px, 48vw, 430px);
    border-radius: 15px 15px 0 0;
  }

  body.error404 .error-404__content
  {
    max-width: 100%;
    border-radius: 0 0 15px 15px;
  }
}

@media (max-width: 767px)
{
  body.error404 #primary.site-main-404
  {
    padding-top: 124px;
    padding-bottom: 46px;
  }

  body.error404 .error-404__media
  {
    min-height: 230px;
  }

  body.error404 .error-404__media::after
  {
    font-size: 76px;
  }

  body.error404 .error-404__content
  {
    padding: 28px 22px 32px;
  }

  body.error404 .page-title
  {
    width: min-content;
    min-width: 235px;
  }

  body.error404 .page-title.title-decoration-red::before
  {
    right: 0;
  }

  body.error404 .error-404__text
  {
    text-align: left;
  }

  body.error404 .error-404__actions
  {
    align-items: stretch;
    flex-direction: column;
    width: 100%;
  }

  body.error404 .error-404__actions .btn-formworks,
  body.error404 .error-404__link
  {
    width: 100%;
    text-align: center;
  }

  body.error404 .error-404__link
  {
    padding: 12px 0;
  }
}
