/* 404 — Figma №2: mobile 1:1901 / desktop 2:5543 (node 1:1434 в файле заказчика) */

body.yz-page-error {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  background: #fff;
}

html:has(body.yz-page-error) {
  background: #fff;
}

.yz-error-page {
  flex: 1;
  background: #fff;
}

.yz-error-page__container {
  max-width: var(--yz-container, 1200px);
  margin: 0 auto;
  padding: 24px 15px 40px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.yz-error-page__breadcrumb {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 4px;
  margin: 0;
  font-size: 13px;
  line-height: 1.35;
  letter-spacing: -0.13px;
}

.yz-error-page__breadcrumb a {
  color: var(--yz-text);
  text-decoration: none;
}

.yz-error-page__breadcrumb a:hover,
.yz-error-page__breadcrumb a:focus-visible {
  color: var(--yz-blue);
}

.yz-error-page__breadcrumb-current {
  color: #828282;
}

.yz-error-page__breadcrumb-arrow {
  flex-shrink: 0;
  width: 16px;
  height: 16px;
}

.yz-error-page__layout {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.yz-error-page__hero {
  position: relative;
  min-height: 360px;
  padding: 20px;
  border-radius: var(--yz-radius);
  background: var(--yz-bg-top);
  overflow: hidden;
}

.yz-error-page__intro {
  position: relative;
  z-index: 1;
  max-width: 290px;
}

.yz-error-page__title {
  margin: 0 0 8px;
  font-size: 22px;
  font-weight: 400;
  line-height: 1.16;
  letter-spacing: -0.5px;
  color: #000;
}

.yz-error-page__lead {
  margin: 0;
  font-size: 15px;
  line-height: 1.4;
  letter-spacing: -0.3px;
  color: #5d656d;
}

.yz-error-page__phone {
  color: var(--yz-blue);
  text-decoration: none;
  white-space: nowrap;
}

.yz-error-page__phone:hover,
.yz-error-page__phone:focus-visible {
  text-decoration: underline;
}

.yz-error-page__illustration {
  position: absolute;
  left: 20px;
  bottom: 0;
  width: 290px;
  max-width: calc(100% - 40px);
  height: 193px;
  pointer-events: none;
}

.yz-error-page__illustration img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: left bottom;
}

.yz-error-page__panel {
  display: flex;
  flex-direction: column;
  gap: 24px;
  padding: 20px;
  border: 1px solid var(--yz-border);
  border-radius: var(--yz-radius);
  background: #fff;
}

.yz-error-page__panel-top {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.yz-error-page__search {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 12px 16px;
  border: 1px solid var(--yz-border);
  border-radius: var(--yz-radius);
  background: #fff;
}

.yz-error-page__search-input {
  flex: 1;
  min-width: 0;
  padding: 0;
  border: 0;
  background: none;
  font-family: inherit;
  font-size: 16px;
  line-height: 1.4;
  letter-spacing: -0.2px;
  color: var(--yz-text);
}

.yz-error-page__search-input::placeholder {
  color: #828282;
}

.yz-error-page__search-input:focus {
  outline: none;
}

.yz-error-page__search-submit {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
}

.yz-error-page__search-submit img {
  display: block;
  width: 20px;
  height: 20px;
}

.yz-error-page__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.yz-error-page__tag {
  display: inline-flex;
  align-items: center;
  padding: 7px 10px;
  border-radius: var(--yz-radius);
  background: var(--yz-bg-top);
  color: var(--yz-text);
  font-size: 14px;
  font-weight: 400;
  line-height: 1.4;
  letter-spacing: -0.2px;
  text-decoration: none;
}

.yz-error-page__actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.yz-error-page__btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 44px;
  padding: 13px 20px;
  border: 0;
  border-radius: var(--yz-radius);
  font-family: inherit;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: -0.1px;
  line-height: 1.25;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  white-space: nowrap;
}

.yz-error-page__btn--ghost {
  background: var(--yz-blue-light);
  color: var(--yz-blue);
}

.yz-error-page__btn--primary {
  background: var(--yz-blue);
  color: #fff;
  padding-left: 30px;
  padding-right: 30px;
}

@media (min-width: 769px) {
  .yz-error-page__container {
    padding: 48px 24px 100px;
    gap: 24px;
  }

  .yz-error-page__layout {
    flex-direction: row;
    align-items: stretch;
    gap: 20px;
  }

  .yz-error-page__hero,
  .yz-error-page__panel {
    flex: 1 1 0;
    min-width: 0;
    min-height: 550px;
  }

  .yz-error-page__hero {
    padding: 30px;
  }

  .yz-error-page__intro {
    max-width: 494px;
  }

  .yz-error-page__title {
    margin-bottom: 12px;
    font-size: 36px;
    letter-spacing: -1px;
  }

  .yz-error-page__lead {
    max-width: 436px;
    font-size: 16px;
  }

  .yz-error-page__illustration {
    left: 30px;
    width: 535px;
    max-width: calc(100% - 60px);
    height: 356px;
  }

  .yz-error-page__panel {
    justify-content: space-between;
    padding: 30px;
  }

  .yz-error-page__panel-top {
    min-height: 136px;
  }

  .yz-error-page__tag {
    padding: 9px 12px;
    font-size: 16px;
    letter-spacing: -0.3px;
  }

  .yz-error-page__actions {
    flex-direction: row;
    gap: 12px;
    min-height: 50px;
  }

  .yz-error-page__btn {
    flex: 1 1 0;
    min-width: 0;
    min-height: 50px;
    padding: 15px 20px;
    font-size: 16px;
  }

  .yz-error-page__btn--primary {
    padding-left: 30px;
    padding-right: 30px;
  }
}

@media (min-width: 1248px) {
  .yz-error-page__container {
    padding-left: 0;
    padding-right: 0;
  }
}
