/*!
Theme Name: tehzor
Author: Vanatovsky
Description: Description
Version: 1.0.0
Tested up to: 8.2
Requires PHP: 8.2
License: GNU General Public License v2 or later
License URI: LICENSE
Text Domain: tehzor
Tags: tehzor
*/

/* Global styles */
section p:last-child {
  margin-bottom: 0;
}

.container {
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 20px;
  box-sizing: border-box;
}

html,
body {
  height: 100%;
  margin: 0;
}

body,
.site,
#page {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

#primary,
.site-main {
  flex: 1 0 auto;
}

footer,
.site-footer {
  flex-shrink: 0;
}

/* Global styles End */

/* 404 Page */

.error-page {
  max-width: 710px;
  margin: 0 auto;
  text-align: center;
  position: relative;
  z-index: 2;
}

.error-page__label {
  color: var(--Text-Gray-60, #72737D);
  font-size: 16px;
  line-height: 1.4;
}

.error-page__title {
  color: #030835;
  font-family: "IBM", sans-serif;
  font-size: 56px;
  font-weight: 500;
  line-height: 1.2;
  margin: 30px 0;
}

.error-page__text {
  color: var(--Text-Gray-85, #373947);
  font-size: 18px;
  line-height: 1.52;
  margin-bottom: 86px;
}

.error-404 {
  padding: 144px 0 179px;
  margin: 0;
  width: 100%;
  position: relative;
  overflow: hidden;

  &::before {
    content: '';
    display: block;
    width: 473px;
    height: 613px;
    background: url(/wp-content/uploads/2026/06/i-left.svg) no-repeat;
    position: absolute;
    top: 53px;
    left: 0;
    z-index: 1;
    background-size: contain;
  }

  &::after {
    content: '';
    display: block;
    width: 412px;
    height: 706px;
    background: url(/wp-content/uploads/2026/06/i-right.svg) no-repeat;
    position: absolute;
    top: 51px;
    right: 0;
    z-index: 1;
    background-size: contain;
  }
}

/* 404 Page end*/

/* Media запросы*/

@media screen and (max-width: 1199px) {
  .error-404 {
    padding: 65px 0 78px;

    &::before {
      width: 383.692px;
      height: 464px;
      top: 33px;
      left: -46px;
      background-position: left top;
      background-size: cover;
    }

    &::after {
      width: 341.792px;
      height: 553.654px;
      top: 9px;
      right: -5px;
      background-position: right top;
      background-size: cover;
    }
  }
}

@media screen and (max-width: 991px) {
  .error-404 {
    padding: 86px 0 420px;

    &::before {
      width: 362px;
      height: 528px;
      top: auto;
      bottom: -45px;
      left: 0px;
      background-size: contain;
    }

    &::after {
      width: 510px;
      height: 840px;
      top: auto;
      right: 0px;
      bottom: 0px;
      background-size: contain;
    }

    .error-page {
      max-width: 632px;
      padding: 10px;
      background: #fff;
    }

    .error-page__label {
      font-size: 14px;
    }

    .error-page__title {
      font-size: 48px;
      line-height: 62px;
      margin: 26px 0;
    }

    .error-page__text {
      font-size: 16px;
      line-height: 1.5;
      margin-bottom: 75px;
    }
  }
}

@media screen and (max-width: 767px) {
  .error-404 {
    padding: 40px 0 153px;

    &::before {
      width: 176px;
      height: 270px;
      background-image: url(/wp-content/uploads/2026/06/i-left.png);
      bottom: -22px;
      left: 0px;
    }

    &::after {
      width: 375px;
      height: 435px;
      right: 0px;
      bottom: -22px;
      background-image: url(/wp-content/uploads/2026/06/i-right2.png);
    }

    .error-page {
      padding: 0px;
      background: transparent;
      max-width: 350px;
    }

    .error-page__label {
      font-size: 10px;
    }

    .error-page__title {
      font-size: 24px;
      line-height: 32px;
      margin: 23px 0;
    }

    .error-page__text {
      font-size: 12px;
      margin-bottom: 38px;
    }
  }
}

/* Media запросы end*/