/*!
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*/

/* Cookies popup */
.cool-cookie-wrapper {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 999999;
    max-width: 460px;
    width: calc(100% - 48px);
    opacity: 0;
    transform: translateY(40px) scale(0.96);
    transition: opacity 0.6s cubic-bezier(0.25, 1, 0.5, 1), 
                transform 0.6s cubic-bezier(0.25, 1, 0.5, 1);
    pointer-events: none;
    box-sizing: border-box;
}
.cool-cookie-wrapper *, 
.cool-cookie-wrapper *::before, 
.cool-cookie-wrapper *::after {
    box-sizing: border-box;
}
.cool-cookie-wrapper.is-visible {
    opacity: 1;
    transform: translateY(0) scale(1);
    pointer-events: auto;
}
.cool-cookie-wrapper .cool-cookie-card {
    position: relative;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 20px;
    padding: 24px 40px 24px 24px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.06);
}
.cool-cookie-wrapper .cool-cookie-content {
    display: flex;
    flex-direction: column;
    gap: 16px;
}
.cool-cookie-wrapper .cool-cookie-text {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    font-size: 14px;
    line-height: 1.5;
    color: #2c3e50;
    margin: 0 !important;
    padding: 0 !important;
}
.cool-cookie-wrapper .cool-cookie-link {
    color: #0071e3;
    text-decoration: underline;
    font-weight: 500;
    transition: opacity 0.2s;
}
.cool-cookie-wrapper .cool-cookie-link:hover { 
    opacity: 0.7; 
}
.cool-cookie-wrapper .cool-cookie-close {
    position: absolute;
    top: 14px;
    right: 14px;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: none;
    border-radius: 50%;
    color: #8a98a8;
    font-size: 20px;
    line-height: 1;
    padding: 0;
    cursor: pointer;
    transition: background 0.2s, color 0.2s, transform 0.1s;
}
.cool-cookie-wrapper .cool-cookie-close:hover { 
    background: rgba(0, 0, 0, 0.06);
    color: #2c3e50;
}
.cool-cookie-wrapper .cool-cookie-close:active { 
    transform: scale(0.92); 
}
/* Cookies popup end */


/* Разрешаем выделение текста и возвращаем видимый цвет */
*, html, body, p, span, div, article, section {
    -webkit-user-select: text !important;
    -moz-user-select: text !important;
    -ms-user-select: text !important;
    user-select: text !important;
}
*::selection { 
    background: rgba(0, 123, 255, 0.3) !important; 
    color: inherit !important; 
}
*::-moz-selection { 
    background: rgba(0, 123, 255, 0.3) !important; 
    color: inherit !important; 
}

.wpcf7-form .wpcf7-not-valid-tip {
    display: none !important;
}

.wpcf7-form.invalid .wpcf7-not-valid-tip {
    display: block !important;
}

.wpcf7-form .wpcf7-not-valid {
    border-color: rgba(255, 255, 255, 0.15) !important; /* Укажи тут дефолтный цвет рамок из своих стилей */
}
.wpcf7-form.invalid .wpcf7-not-valid {
    border-color: #ff4d4d !important;
}

/* 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 (max-width: 576px) {
    .cool-cookie-wrapper {
        bottom: 16px;
        left: 16px;
        right: 16px;
        width: calc(100% - 32px);
        max-width: none;
    }
    .cool-cookie-wrapper .cool-cookie-card { 
        padding: 18px; 
    }
    .cool-cookie-wrapper .cool-cookie-btn { 
        width: 100%; 
        text-align: center; 
    }
}

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