@import url("https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;700&display=swap");

@font-face {
  font-family: "SF Pro Display";
  src: url("/wp-content/themes/nt-theme/assets/fonts/SF-Pro-Display-Ultralight.otf")
    format("opentype");
  font-weight: 300;
  font-style: normal;
}

@font-face {
  font-family: "SF Pro Display";
  src: url("/wp-content/themes/nt-theme/assets/fonts/SF-Pro-Display-Light.otf")
    format("opentype");
  font-weight: 400;
  font-style: normal;
}

@font-face {
  font-family: "SF Pro Display";
  src: url("/wp-content/themes/nt-theme/assets/fonts/SF-Pro-Display-Regular.otf")
    format("opentype");
  font-weight: 500;
  font-style: normal;
}
@font-face {
  font-family: "SF Pro Display";
  src: url("/wp-content/themes/nt-theme/assets/fonts/SF-Pro-Display-Medium.otf")
    format("opentype");
  font-weight: 600;
  font-style: normal;
}
@font-face {
  font-family: "SF Pro Display";
  src: url("/wp-content/themes/nt-theme/assets/fonts/SF-Pro-Display-Semibold.otf")
    format("opentype");
  font-weight: 700;
  font-style: normal;
}

html {
  overflow: hidden;
}

body {
  overflow-x: hidden;
  margin: 0 !important;
  color: #353434;
  line-height: 1.3rem;
  font-weight: 400;
  position: relative;
  height: 100vh;
  font-size: 13px;
}

@media (min-width: 1040px) {
  body {
    font-size: 14px;
  }
}

* {
  font-family: "SF Pro Display", sans-serif;
  box-sizing: border-box;
  color: #262730;
}

button {
  font-size: 1rem;
}

i[class*="fa-"] {
  font-family: "Font Awesome 6 Pro";
}

p {
  margin-bottom: 20px;
}

a {
  text-decoration: none;
  transition-duration: 0.3s;
  -webkit-transition-duration: 0.3s;
  -moz-transition-duration: 0.3s;
  -o-transition-duration: 0.3s;
  color: #262730;
}

a:hover {
  color: #af9f85;
}

h1,
.h1 {
  font-weight: 500;
  line-height: 120%;
}

h2,
.h2 {
  font-weight: 500;
  font-size: 2rem;
  line-height: 120%;
  margin-bottom: 20px;
}

h3,
.h3 {
  font-weight: 600;
  line-height: 150%;
  font-size: 1.7rem;
  margin-bottom: 20px;
}

h4,
.h4 {
  font-weight: 600;
  line-height: 150%;
  font-size: 1.4rem;
  margin-bottom: 20px;
  color: #1f2a42;
}

.playfair {
  font-family: "Playfair Display", serif;
}

.single-page-title {
  margin-bottom: 40px !important;
}

@media (min-width: 1040px) {
  h1,
  .h1 {
    font-size: 2.7rem;
    font-weight: 500;
  }
}

@media (max-width: 1040px) {
  h1,
  .h1 {
    font-size: 2.1rem;
    font-weight: 500;
  }
}

/* Grid */

.two-grid,
.three-grid,
.four-grid,
.five-grid,
.six-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
}

.horisontal-list {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
}

@media (min-width: 1040px) {
  .five-grid > * {
    width: calc(100% / 5 - 16px);
  }
  .four-grid > * {
    width: calc(100% / 4 - 15px);
  }
}

@media (min-width: 700px) and (max-width: 1040px) {
  .five-grid > *,
  .four-grid > * {
    width: calc(100% / 3 - 14px);
  }
}

@media (min-width: 700px) {
  .two-grid > * {
    width: calc(100% / 2 - 10px);
  }
  .three-grid > * {
    width: calc(100% / 3 - 14px);
  }
  .six-grid > * {
    width: calc(100% / 6 - 17px);
  }
}

@media (min-width: 500px) and (max-width: 700px) {
  .two-grid > * {
    width: 100%;
  }
  .three-grid > *,
  .four-grid > *,
  .five-grid > * {
    width: calc(100% / 2 - 10px);
  }
  .six-grid > * {
    width: calc(100% / 3 - 13.4px);
  }
}

@media (max-width: 640px) {
  .mob-full-grid > * {
    width: 100% !important;
  }
}

@media (max-width: 500px) {
  .two-grid > *,
  .three-grid > *,
  .four-grid > *,
  .five-grid > * {
    width: 100%;
  }
  .six-grid > * {
    width: calc(100% / 2 - 10px);
  }
}

/* Макет */

.section-container {
  max-width: 1900px;
  margin: auto;
  padding-left: 20px;
  padding-right: 20px;
}

@media (max-width: 1150px) {
}

@media (min-width: 760px) {
  .visible-tablet {
    display: none !important;
  }
}

@media (max-width: 760px) {
  .hidden-tablet {
    display: none !important;
  }
}

@media (max-width: 600px) {
  .hidden-mobile {
    display: none !important;
  }
}

.transition {
  -webkit-transition: all 0.3s ease-in-out 0s;
  -moz-transition: all 0.3s ease-in-out 0s;
  -o-transition: all 0.3s ease-in-out 0s;
  transition: all 0.3s ease-in-out 0s;
}

.modal:not(.visible) {
  /* display: none; */
  transform: translateX(100%);
}

.modal {
  position: fixed;
  width: 100%;
  height: 100%;
  top: 0;
  display: flex;
  transform: translateX(0);
  -webkit-transition: all 0.3s ease-in-out 0s;
  -moz-transition: all 0.3s ease-in-out 0s;
  -o-transition: all 0.3s ease-in-out 0s;
  transition: all 0.3s ease-in-out 0s;
}
.close-modal {
  cursor: pointer;
}

.overlay.close-modal {
  position: fixed;
  height: 100%;
  width: 100%;
  z-index: 10;
  background: #ffffff36;
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
}

.modal-content {
  z-index: 11;
}

.black-btn,
#product-page_add-to-cart.add-to-order .single_add_to_cart_button {
  color: white;
  background-color: rgb(34, 34, 34);
  border-color: rgb(34, 34, 34);
  box-sizing: border-box;
  border-radius: 3px;
  font-weight: 700;
  line-height: 1;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  min-height: 46px;
  padding: 12px 48px;
  text-align: center;
  font-size: 1em;
  outline: none;
  border: none;
  cursor: pointer;
  transition: 0.3s;
}

.black-btn:hover,
#product-page_add-to-cart.add-to-order .single_add_to_cart_button:hover {
  border-color: #beab8d;
  background: #beab8d !important;
  color: white;
}

.border-btn {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 196px;
  height: 46px;
  padding: 0;
  border-radius: 3px;
  border: 1px solid #262730;
  background-color: #fff;
  color: #262730;
  margin: 0 auto;
  cursor: pointer;
  transition: 0.3s;
}

.border-btn:hover {
  background: #e1e1e1;
  border: 1px solid #ddd;
  color: #222;
}

.margin-conteiner {
  margin-top: 70px;
  margin-bottom: 70px;
}

@media (max-width: 700px) {
  .margin-conteiner {
    margin-top: 50px;
    margin-bottom: 50px;
  }
}

.info-page .wp-block-image.is-style-rounded img {
  border-radius: 10px;
}

.info-page .schema-faq-question {
  font-size: 16px;
}

.info-page .mt-0 {
  margin-top: 0;
}

.info-page .schema-faq-section {
  margin-bottom: 40px;
}

.modal.visible {
  z-index: 99;
}

.modal.visible .popup-window{
    position: absolute;
    right: 50%;
    top: 50%;
    transform: translate(50%, -50%);
    height: auto;
    width: 600px;
    max-width: 100%;
    background: white;
    padding: 20px;
    box-shadow: -5px 0 10px #0000000f;
    overflow-y: auto;
    z-index: 99;
}