/*!
Theme Name: BBL
Theme URI: https://krakatets.pro/
Author: Krakatets.pro
Author URI: https://krakatets.pro/
Description: Тема для сайту BBI
Version: 1.0.0
Tested up to: 5.4
Requires PHP: 5.6
License: GNU General Public License v2 or later
License URI: LICENSE
Text Domain: bbl
Tags: bbi
*/

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

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

:root {
  --text-color: #ffffff;
  --bg-body-color: #000000;

  --accent-color: #939598;
  --accent-color-2: #bcbdc0;

  --button-animation-time: all 0.5s ease;
  --menu-animation-time: all 0.8s ease;

  --menu-items-animation-time: all 1.5s ease;

  --bg: #000000;
  --clr-1: #00c2ff;
  --clr-2: #33ff8c;
  --clr-3: #ffc640;
  --clr-4: #e54cff;

  --blur: 1rem;
  --fs: clamp(3rem, 8vw, 7rem);
  --ls: clamp(-1.75px, -0.25vw, -3.5px);
}

.preloader-container-home {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: #000;
  z-index: 9999;
  display: flex;
  flex-direction: row;
  align-content: center;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
}

.preloader-container-home .wrapper__video-preloader-home-big {
  width: 100%;
  max-width: 1920px;
  height: 100%;
  max-height: 1080px;
  position: relative;
}

.preloader-container-home video {
  width: 100%;
  max-width: 1920px;
  height: auto;
}



.preloader-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: #000;
  z-index: 9999;
  display: flex;
  flex-direction: row;
  align-content: center;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
}

.preloader-container .wrapper__video-preloader {
  width: 100%;
  max-width: 260px;
  height: 100%;
  max-height: 204px;
  position: relative;
}

.preloader-container video {
  width: 100%;
  max-width: 260px;
  height: auto;
}

body {
  /*font-family: "Inter", sans-serif;*/
  font-family: "Roboto", sans-serif;
  font-size: calc(16px + (16 - 16) * ((100vw - 320px) / (1920 - 320)));
  font-style: normal;
  font-weight: 700;
  position: relative;
  margin: 0;

  background: var(--bg-body-color);
  color: var(--text-color);
}

/* Налаштування адаптиву */
.wrapper {
  display: flex;
  position: relative;
  height: 100%;
  min-height: 100vh;
  overflow: clip;
  flex-direction: column;
  flex-wrap: nowrap;
  align-items: center;
}

[class*="__container"] {
  width: 100%;
  max-width: 1600px;
  margin: 0 auto;
  padding-left: 15px;
  padding-right: 15px;
}

/* Шапка сайту */
header {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: auto;

  /*padding-top: 30px;
  padding-bottom: 30px;*/

  /*background: var(--bg-body-color);*/

  z-index: 1;
}

.header__container {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  align-content: center;
  justify-content: space-between;
  align-items: center;
}

.site-branding a {
  display: inline-block;
  width: 244px;
  height: auto;

  position: relative;
  overflow: hidden;
}

/*.site-branding iframe {
  width: 100%;
  max-width: 128px;
  height: 100%;
  max-height: 80px;

  border-width: 0px;
}*/

.site-branding video {
  width: 100%;
  max-width: 128px;
  height: 100%;
  max-height: 80px;

  border-width: 0px;
}

.wrapper__text-in-page-header {
  position: absolute;
  top: -120px;
  left: calc(130px + (196 - 130) * ((100vw - 320px) / (1920 - 320)));
  width: 80%;
  color: var(--text-color);
  z-index: 2;
  margin: 0 auto;
}

.not-wrapper__text-in-page-header {
  display: none;
}

/*.on-internal-pages {
  top: -312px;
}*/

.text-in-page-header {
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  width: fit-content;
  margin: 0 auto;
}

.text-in-page-header p {
  /*text-shadow: 0px -2px 4px #000, 0px 2px 4px rgba(0, 0, 0, 0.25),
    0px 4px 4px rgba(0, 0, 0, 0.25), 0px 4px 4px rgba(0, 0, 0, 0.25);
  -webkit-text-stroke: 1px black;
  text-stroke: 1px black; */

  -webkit-text-stroke: 2px var(--bg-body-color);
  text-stroke: 2px var(--bg-body-color);
  font-size: calc(16px + (36 - 16) * ((100vw - 320px) / (1920 - 320)));
  font-style: normal;
  font-weight: 900;
  line-height: 120%;
  letter-spacing: 1px;

  margin: 0;
  width: auto;
}

/*.on-internal-pages p {
  font-size: calc(16px + (42 - 16) * ((100vw - 320px) / (1920 - 320)));
}*/

/* Анімація тексту радуга*/
.aurora {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 2;
  mix-blend-mode: darken;
  pointer-events: none;
}

.aurora__item {
  overflow: hidden;
  position: absolute;
  width: 100%;
  height: 100%;
  background-color: var(--clr-1);
  border-radius: 37% 29% 27% 27% / 28% 25% 41% 37%;
  filter: blur(var(--blur));
  mix-blend-mode: overlay;
}

.aurora__item:nth-of-type(1) {
  top: -50%;
  animation: aurora-border 3s ease-in-out infinite,
    aurora-1 6s ease-in-out infinite alternate;
}

.aurora__item:nth-of-type(2) {
  background-color: var(--clr-3);
  right: 0;
  top: 0;
  animation: aurora-border 3s ease-in-out infinite,
    aurora-2 6s ease-in-out infinite alternate;
}

.aurora__item:nth-of-type(3) {
  background-color: var(--clr-2);
  left: 0;
  bottom: 0;
  animation: aurora-border 3s ease-in-out infinite,
    aurora-3 4s ease-in-out infinite alternate;
}

.aurora__item:nth-of-type(4) {
  background-color: var(--clr-4);
  right: 0;
  bottom: -50%;
  animation: aurora-border 3s ease-in-out infinite,
    aurora-4 12s ease-in-out infinite alternate;
}

@keyframes aurora-1 {
  0% {
    top: 0;
    right: 0;
  }

  50% {
    top: 100%;
    right: 75%;
  }

  75% {
    top: 100%;
    right: 25%;
  }

  100% {
    top: 0;
    right: 0;
  }
}

@keyframes aurora-2 {
  0% {
    top: -50%;
    left: 0%;
  }

  60% {
    top: 100%;
    left: 75%;
  }

  85% {
    top: 100%;
    left: 25%;
  }

  100% {
    top: -50%;
    left: 0%;
  }
}

@keyframes aurora-3 {
  0% {
    bottom: 0;
    left: 0;
  }

  40% {
    bottom: 100%;
    left: 75%;
  }

  65% {
    bottom: 40%;
    left: 50%;
  }

  100% {
    bottom: 0;
    left: 0;
  }
}

@keyframes aurora-4 {
  0% {
    bottom: -50%;
    right: 0;
  }

  50% {
    bottom: 0%;
    right: 40%;
  }

  90% {
    bottom: 50%;
    right: 25%;
  }

  100% {
    bottom: -50%;
    right: 0;
  }
}

@keyframes aurora-border {
  0% {
    border-radius: 37% 29% 27% 27% / 28% 25% 41% 37%;
  }

  25% {
    border-radius: 47% 29% 39% 49% / 61% 19% 66% 26%;
  }

  50% {
    border-radius: 57% 23% 47% 72% / 63% 17% 66% 33%;
  }

  75% {
    border-radius: 28% 49% 29% 100% / 93% 20% 64% 25%;
  }

  100% {
    border-radius: 37% 29% 27% 27% / 28% 25% 41% 37%;
  }
}

.menu-toggle,
.menu-close {
  cursor: pointer;
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;

  width: 52px;
  height: 48px;
  flex-shrink: 0;

  border: 0;

  /*box-shadow: 2px -2px 0px #bcbdc0;*/

  background-color: var(--accent-color);

  transition: var(--button-animation-time);
}

.menu-toggle {
  z-index: 1;
}

.menu-toggle img,
.menu-close img {
  width: 40px;
}
.menu-toggle:hover,
.menu-close:hover {
  background: var(--accent-color-2);
}

.wrapper__button-menu {
  width: 58px;
  height: 54px;
  position: relative;
}

.button__bg {
  content: "";
  width: 58px;
  height: 54px;

  background: var(--accent-color-2);

  position: absolute;
  top: -4px;
  right: 2px;
}
.menu-close::after {
  content: "";
  width: 58px;
  height: 54px;

  background: var(--accent-color-2);

  position: absolute;
  top: -4px;
  right: -4px;

  z-index: -1;
}

.menu-toggle i,
.menu-close i {
  font-size: 30px;
  color: var(--bg-body-color);
}

.wrapper__menu {
  position: absolute;
  top: -100vh;
  left: 0;
  width: 100vw;
  height: 0vh;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(20px);

  display: flex;
  flex-direction: column;
  flex-wrap: nowrap;
  align-content: center;
  justify-content: center;
  align-items: center;

  transition: var(--menu-animation-time);
}

.show__menu {
  top: 0;
  height: 100vh;
  background: var(--bg-body-color);
  backdrop-filter: blur(20px);

  transition: var(--menu-animation-time);

  z-index: 99;
}

.inner__menu {
  width: 100%;
  max-width: 600px;
  margin: 0 auto;
  padding: 15px;

  position: relative;
}

.inner__menu .menu-close {
  position: absolute;
  right: 22px;
  top: 22px;
}

.inner__menu nav ul.menu {
  list-style-type: none;
  padding: 0;
  margin: 0;
  margin-top: 58px;

  display: flex;
  flex-direction: column;
  gap: 30px;

  overflow: hidden;

  position: relative;
}

.inner__menu nav ul.menu li {
  text-align: center;
  font-size: calc(20px + (40 - 20) * ((100vw - 320px) / (1920 - 320)));
  font-style: normal;
  font-weight: 700;
  line-height: 100%; /* 30px */
  letter-spacing: 0.6px;
  text-transform: uppercase;

  position: relative;

  display: flex;

  width: 100%;
  height: calc(20px + (46 - 20) * ((100vw - 320px) / (1920 - 320)));

  border: 1px solid #000;
}

.inner__menu nav ul.menu li a {
  color: var(--text-color);
  text-decoration: none;
  opacity: 0.7;

  width: 100%;
  height: 100%;

  overflow: hidden;
  background: var(--bg-body-color);

  transition: var(--button-animation-time);
}

.inner__menu nav ul.menu li a::before {
  content: ">";
  margin-right: 15px;
  opacity: 0;

  transition: var(--button-animation-time);
}
.inner__menu nav ul.menu li a::after {
  content: "<";
  margin-left: 15px;
  opacity: 0;

  transition: var(--button-animation-time);
}

.inner__menu nav ul.menu li:hover a,
.inner__menu nav ul.menu li:hover a::after,
.inner__menu nav ul.menu li:hover a::before,
.inner__menu nav ul.menu li.current-menu-item a::after,
.inner__menu nav ul.menu li.current-menu-item a::before,
.inner__menu nav ul.menu li.current-menu-item a {
  opacity: 1;
}

.inner__menu nav ul.menu li a {
  position: absolute;
  top: 0;
  bottom: 0;
  right: 0;
  left: -100vw;
  transition: var(--menu-items-animation-time);
}

.show__menu .inner__menu nav ul.menu li a {
  left: 0;
}

/* Стилі для парних елементів */
.inner__menu nav ul.menu li:nth-child(even) a {
  position: absolute;
  top: 0;
  bottom: 0;
  right: 0;
  left: 100vw;
  transition: var(--menu-items-animation-time);
}

.show__menu .inner__menu nav ul.menu li:nth-child(even) a {
  left: 0;
}

/* Блок фонового відео */
.content-block-video {
  position: fixed;
  /* top: 140px; */
  left: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Налаштування анімацій */
.animate-me {
  opacity: 0;
  transform: translateY(20px);
}

/* Основний контент */
main {
  background: var(--bg-body-color);
  color: var(--text-color);
}

.flex__main-section {
  flex: 1 1 auto;
  padding-top: 156px;
  padding-bottom: 120px;
}

.site-category {
  flex: 1 1 auto;
  padding-top: 220px;
  padding-bottom: 120px;
}

.main__container {
  width: 100%;
  height: 100%;

  position: relative;

  display: flex;
  flex-direction: column;
  flex-wrap: nowrap;
  justify-content: center;
}

.main__container .title-in-page {
  /*text-shadow: 0px -2px 4px #000, 0px 2px 4px rgba(0, 0, 0, 0.25),
    0px 4px 4px rgba(0, 0, 0, 0.25), 0px 4px 4px rgba(0, 0, 0, 0.25);
  -webkit-text-stroke: 1px black;
  text-stroke: 1px black;*/

  -webkit-text-stroke: 2px var(--bg-body-color);
  text-stroke: 2px var(--bg-body-color);
  font-size: calc(36px + (48 - 36) * ((100vw - 320px) / (1920 - 320)));
  text-align: center;
  font-style: normal;
  font-weight: 900;
  line-height: 120%;
  margin-bottom: 100px;
  letter-spacing: 1px;
  text-transform: uppercase;

  position: relative;
  overflow: hidden;
}

.main__container .entry-content p {
  /*text-shadow: 0px -2px 4px #000, 0px 2px 4px rgba(0, 0, 0, 0.25),
    0px 4px 4px rgba(0, 0, 0, 0.25), 0px 4px 4px rgba(0, 0, 0, 0.25);
  -webkit-text-stroke: 1px black;
  text-stroke: 1px black; */
  font-size: calc(18px + (32 - 18) * ((100vw - 320px) / (1920 - 320)));
  font-style: normal;
  font-weight: 900;
  line-height: 120%;
  margin-bottom: 15px;
  letter-spacing: 1px;
  -webkit-text-stroke: 2px var(--bg-body-color);
  text-stroke: 2px var(--bg-body-color);

  /*text-indent: 20px;*/

  /*text-align: justify;*/
}

/* Підвал сайту */
footer {
  text-align: center;
  padding: 20px 10px;

  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  z-index: 0;
  color: var(--text-color);

  /*-webkit-text-stroke: 2px var(--bg-body-color);
  text-stroke: 2px var(--bg-body-color);*/
}

footer a {
  color: var(--accent-color-2);
  text-decoration: underline;

  transition: var(--button-animation-time);
}

footer a:hover {
  color: var(--text-color);
  text-decoration: none;
}

/* Стилі внутрішніх сторінок */
.block__video {
  position: relative;
  height: 100%;
  min-height: 240px;
  margin: 40px 10px;

  display: flex;
  gap: 40px;
  flex-direction: row;
  flex-wrap: wrap;
  justify-content: center;
  align-items: flex-start;
}

.item-video-img__block {
  position: relative;
  width: 100%;
  /*max-width: 23%;*/
  min-width: 280px;
}

#videoPlayer {
  position: relative;
  width: 100%;
  height: 100%;
}

/* Стилі для другого елемента */
/*.item-video-img__block:nth-child(2),*/
/* Стилі для третього елемента */
/*.item-video-img__block:nth-child(3) {
  margin-top: 80px;
}*/

/*.item-video-img__block .custom-play-button {
  background: url(./img/Polygon1.png) no-repeat;
  background-size: cover;
  width: 24px;
  height: 25px;
  border: none;
  position: absolute;
  z-index: 1;
  top: 4px;
  left: 4px;
}*/

.block-tree-two {
  display: flex;
  flex-direction: row;
  align-content: flex-start;
  align-items: flex-start;
  gap: 60px;
  justify-content: center;
  flex-wrap: nowrap;
}

.block-tree-two .left__block-tree {
  width: 30%;
}
.block-tree-two .right__block-tree {
  width: 66%;
}

.block-tree-two .block-tree-two__video-two {
  width: 45%;
}

.block-tree-two .left__block-tree .block-tree-two__video-two {
  width: 100%;
}

.left-block__video,
.right-block__video {
  width: 100%;
}

.right-block__video {
  display: flex;
  flex-direction: column;
  flex-wrap: nowrap;
  justify-content: flex-start;
  align-items: center;
  gap: 40px;
}
.w1200__container {
  max-width: 1100px;
  margin: 40px auto;
}
.left-block__video .item__layers-tree,
.right-block__video .item__layers-tree {
  max-width: 100%;
}
.left-block__video {
  max-width: 37%;
}
.right-block__video {
  max-width: 54%;
}

#breadcrumbs {
  margin-bottom: calc(18px + (40 - 18) * ((100vw - 320px) / (1920 - 320)));
}

#breadcrumbs span a {
  color: var(--text-color);
  text-decoration: underline;

  transition: var(--button-animation-time);
}

#breadcrumbs span a:hover {
  color: var(--accent-color);
  text-decoration: none;
}

#breadcrumbs .breadcrumb_last {
  color: var(--accent-color);
}

.wrapper__article {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  align-content: flex-start;
  justify-content: center;
  gap: 30px;
}

.wrapper__article article,
.wrapper__article article a {
  width: 100%;
  max-width: 32%;
  min-width: 300px;
  height: 100%;

  text-decoration: none;

  transition: var(--button-animation-time);
}
.wrapper__article article .post-thumbnail {
  position: relative;
  max-width: 100%;
  min-width: 300px;
  height: calc(220px + (407 - 220) * ((100vw - 320px) / (1920 - 320)));
  overflow: hidden;

  margin-bottom: calc(12px + (24 - 12) * ((100vw - 320px) / (1920 - 320)));
}

.wrapper__article article .post-thumbnail img {
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
  right: 0;
  width: calc(300px + (640 - 300) * ((100vw - 320px) / (1920 - 320)));
  height: calc(220px + (407 - 220) * ((100vw - 320px) / (1920 - 320)));
  object-fit: cover;

  transition: var(--button-animation-time);
}

.wrapper__article article a .entry-title {
  color: var(--text-color);
  text-decoration: none;

  transition: var(--button-animation-time);
}

.wrapper__article article a:hover .entry-title {
  color: var(--accent-color);
}

.wrapper__article article a:hover .post-thumbnail img {
  filter: grayscale(100%);
}

article .featured-image {
  display: flex;
  justify-content: center;
  margin-bottom: calc(12px + (24 - 12) * ((100vw - 320px) / (1920 - 320)));
}

article .single-content h2,
article .single-content h3,
article .single-content h4 {
  text-transform: uppercase;
  margin-top: 12px;
  margin-bottom: 12px;
  text-align: center;
}

article .single-content p {
  margin-bottom: 28px;
  text-align: justify;

  /*text-indent: 20px;*/
}

article .single-content a {
  color: var(--accent-color);
  text-decoration: underline;

  transition: var(--button-animation-time);
}

article .single-content a {
  color: var(--text-color);
  text-decoration: none;

  transition: var(--button-animation-time);
}

.pagination {
  margin-top: 40px;
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  align-content: flex-start;
  justify-content: center;
  align-items: flex-start;
}

.pagination .nav-links {
  color: var(--text-color);
  text-decoration: none;
  transition: var(--button-animation-time);

  font-size: 20px;
  font-weight: 700;
}
.pagination .nav-links span {
  color: var(--accent-color);
  margin: 10px;
}

.pagination .nav-links a {
  color: var(--text-color);
  text-decoration: none;
  transition: var(--button-animation-time);

  margin: 10px;
}

.pagination .nav-links a:hover {
  color: var(--accent-color);
  text-decoration: none;
}

.error-404 {
  margin-top: 300px;
  padding: 30px;
}

.error-404 form {
  width: 100%;
  padding: 30px;
}

.wrapper__title-404 {
  overflow: hidden;
  background: var(--bg-body-color);
  position: relative;
}

.wrapper__title-404 .title-404 {
  text-align: center;
  font-size: calc(50px + (260 - 50) * ((100vw - 320px) / (1920 - 320)));
  font-weight: 900;
}

.site-contacts {
  width: 100%;
  max-width: 1600px;
}

.two-block__contact-page {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  align-content: flex-start;
  justify-content: center;
  align-items: center;
  gap: 60px;
}

.two-block__contact-page .left-block__contact-page {
  width: 30%;
}

.site-contacts .not-upper {
  text-transform: none;
  font-size: calc(36px + (92 - 36) * ((100vw - 320px) / (1920 - 320)));
  text-align: left;
}

.wrapper__block-contacts {
  font-size: calc(24px + (34 - 24) * ((100vw - 320px) / (1920 - 320)));
  font-weight: 700;
  color: var(--text-color);
  max-width: 560px;
}

.wrapper__block-contacts a {
  color: var(--text-color);
  text-decoration: none;
  opacity: 1;

  transition: var(--button-animation-time);
}

.wrapper__block-contacts a:hover {
  color: var(--text-color);
  opacity: 0.7;
}
/*
.wrapper__block-contacts a::before {
  content: ">";
  margin-right: 10px;
}

.wrapper__block-contacts a::after {
  content: "<";
  margin-left: 10px;
}
*/
.wrapper__block-contacts a::before,
.wrapper__block-contacts a::after {
  opacity: 0;

  transition: var(--button-animation-time);
}

.wrapper__block-contacts a:hover::before,
.wrapper__block-contacts a:hover::after {
  opacity: 1;

  transition: var(--button-animation-time);
}

.wrapper__block-contacts .block-adress {
  margin-bottom: 30px;

  -webkit-text-stroke: 2px var(--bg-body-color);
  text-stroke: 2px var(--bg-body-color);
}

.wrapper__block-contacts .block-adress,
.wrapper__block-contacts .site-contact,
.wrapper__block-contacts .site-contact,
.wrapper__block-contacts .email1-contact,
.wrapper__block-contacts .email2-contact,
.wrapper__block-contacts .phone-contact {
  -webkit-text-stroke: 2px var(--bg-body-color);
  text-stroke: 2px var(--bg-body-color);
}

.wrapper__video-block {
  position: absolute;
  bottom: 0;
  right: 0;
  width: 30%;

  display: flex;
  flex-direction: row;
  justify-content: flex-end;
  align-items: center;
}

.wrapper__video-block .item-video-img__block {
  max-width: 100%;
}

.wrapper__social-block {
  position: relative;
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  align-content: flex-start;
  justify-content: flex-start;
  align-items: center;
  gap: 20px;
  margin-top: 30px;
}

.wrapper__social-block a {
  color: var(--bg-body-color);
  font-size: 32px;
  width: 54px;
  height: 54px;
  opacity: 1;
  transition: var(--button-animation-time);
  text-decoration: none;
  display: flex;
  flex-direction: row;
  align-content: center;
  justify-content: center;
  align-items: center;
}

.wrapper__social-block a svg {
  width: 32px;
}

.wrapper__social-block a svg path {
  fill: var(--text-color);
}

.wrapper__social-block a:hover {
  opacity: 0.7 !important;
}

.wrapper__social-block a.telegram {
  background-color: #36ade7;
}
.wrapper__social-block a.whatsapp {
  background-color: #1fb037;
}
.wrapper__social-block a.viber {
  background-color: #7a519b;
}
.wrapper__social-block a.facebook {
  background-color: #3a5895;
}
.wrapper__social-block a.pinterest {
  background-color: #b80c1f;
}
.wrapper__social-block a.twitter {
  background-color: #54acf2;
}
.wrapper__social-block a.linkedin {
  background-color: #0076b6;
}
.wrapper__social-block a.instagram {
  background: linear-gradient(45deg, #ff5858, #ffd23f);
}

.block-two-section {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  align-content: flex-start;
  align-items: flex-start;
  gap: 30px;
}

.block-two-section .left-block__content {
  width: 66%;
}

.block-two-section .right-block__content {
  width: 32%;
}

.block__video-2 {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  align-content: flex-start;
  justify-content: center;
  align-items: flex-start;
  gap: 30px;
}

.block__video-2 .item-video-img__block {
  width: 48%;
}

.block-two-section .item-video-img__block {
  min-width: auto;
}

.block-metal-two {
  margin-top: 30px;
}

.block-metal-two .left__block-tree {
  width: 100%;
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  align-content: flex-start;
  justify-content: center;
  align-items: flex-start;
  gap: 30px;
}

.mosaic-page__block-one {
  display: flex;
  flex-direction: row;
  align-content: flex-end;
  align-items: flex-end;
  gap: 60px;
  justify-content: space-between;
  flex-wrap: wrap;
}

.mosaic-page__block-one .left__block-tree {
  width: 17%;
}

.mosaic-page__block-one .right__block-tree {
  width: 78%;
}

.mosaic-page__block-one .right__block-tree .entry-content {
}

.mosaic-page {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  align-content: flex-start;
  justify-content: space-between;
  align-items: flex-start;
  gap: 30px;
}

.mosaic-page .left__block-tree,
.mosaic-page .right__block-tree {
  width: 30%;
}

.glass-page__block-one .left__block-tree {
  width: 25%;
}

.glass-page__block-one .right__block-tree {
  width: 71%;
}

.glass-page__block-two {
  margin-top: 30px;

  display: flex;
  flex-direction: row;
  align-content: flex-start;
  align-items: flex-start;
  gap: 60px;
  justify-content: center;
  flex-wrap: nowrap;
}

.glass-page__block-two .left__block-tree {
  width: 44%;
}

.glass-page__block-two .right__block-tree {
  width: 52%;
  display: flex;
  flex-direction: row;
  align-content: flex-start;
  align-items: flex-start;
  gap: 30px;
  justify-content: center;
  flex-wrap: nowrap;
}

/* Анімаційні стилі */
.anime__logo .text-mask-container,
.anime__buttom-menu .wrapper__button-menu,
.anime__text p:nth-child(odd),
.anime__text p:nth-child(even),
.entry-content p:nth-child(odd),
.entry-content p:nth-child(even),
.single-content p:nth-child(odd),
.single-content p:nth-child(even),
.wrapper__block-contacts p,
.wrapper__social-block a,
.wrapper__video-block .item-video-img__block {
  opacity: 0;
  transform: translateX(0);
}

.text-in-page-header p,
.wrapper__title-in-page .title-in-page,
.block__video .item-video-img__block,
#breadcrumbs span,
.wrapper__article article,
.wrapper__title-in-page .entry-meta,
article .featured-image,
.single-content h2 {
  opacity: 0;
  transform: translateY(0);
}

/* Стилі POPUP для відео */
.popup {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0, 0, 0, 0.7);
  z-index: 3;
  flex-direction: row;
  flex-wrap: nowrap;
  align-content: center;
  justify-content: center;
  align-items: center;
}

.popup .popup-content {
  position: relative;
  padding: 20px;
  width: 100%;
  max-width: 70vw;
  height: 100%;
  max-height: 70vh;
  /*background-color: #fefefe;*/
  border-radius: 10px;
}

.popup .custom-video {
  width: 100%;
  /*max-width: 70vw;*/
  height: 100%;
  /*max-height: 70vh;*/
  display: block;
  margin-bottom: 10px;
}

.popup .close-button {
  position: absolute;
  top: 10px;
  right: 15px;
  font-size: 50px;
  color: var(--accent-color);
  cursor: pointer;

  transition: var(--button-animation-time);
}

.popup .close-button:hover {
  color: var(--text-color);
}

.item-video-img__block .video-popup-button {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 98%;
  background: transparent;
  cursor: pointer;

  transition: var(--button-animation-time);
}

.item-video-img__block .video-popup-button svg {
  width: 160px;
  height: 160px;
  opacity: 0.5;

  transition: var(--button-animation-time);
}

.item-video-img__block .video-popup-button:hover svg {
  opacity: 0.8;

  transition: var(--button-animation-time);
}

.item-video-img__block .video-popup-button svg path {
  fill: var(--accent-color);
  transition: var(--button-animation-time);
}

.item-video-img__block .video-popup-button:hover svg path {
  fill: var(--text-color);
}

/* Стилі мобільних девайсів */
@media (max-width: 1538px) {
  /* Стилі для другого елемента */
  .item-video-img__block:nth-child(2),
/* Стилі для третього елемента */
.item-video-img__block:nth-child(3) {
    margin-top: 0px;
  }
}

@media (max-width: 1100px) {
  .block-two-section {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    align-content: flex-start;
    align-items: flex-start;
    gap: 30px;
  }
  .block__video-2 {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    align-content: flex-start;
    justify-content: center;
    align-items: flex-start;
    gap: 30px;
  }
  .block__video-2 .item-video-img__block,
  .block-two-section .right-block__content,
  .block-two-section .left-block__content {
    width: 100%;
  }
  .popup .popup-content {
    width: 100%;
    max-width: 86vw;
    height: 100%;
    max-height: 50vh;
  }
}

@media (max-width: 900px) {
  header {
    z-index: 1;
  }
  /* Блок фонового відео */
  .content-block-video {
    position: fixed;
    top: 0px;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: 100vh;
    overflow: hidden;
  }
  .wrapper__text-in-page-header {
    position: relative;
    top: 0px;
    left: 0px;
    width: 100%;
    margin-bottom: 25px;
    background: transparent;
    z-index: 0;
  }

  .text-in-page-header {
    position: relative;
    overflow: hidden;
    width: 100%;
    display: flex;
    flex-direction: column;
  }

  .text-in-page-header p {
    font-size: calc(25px + (28 - 25) * ((100vw - 320px) / (1920 - 320)));
    text-align: center;
  }

  /*.on-internal-pages p {
    font-size: calc(25px + (28 - 25) * ((100vw - 320px) / (1920 - 320)));
  }*/
  .content-block-video {
    padding-top: 120px;
    padding-bottom: 120px;
  }

  .wrapper__article article,
  .wrapper__article article a {
    max-width: 100%;
  }

  .wrapper__article article .post-thumbnail {
    position: relative;
    max-width: 100%;
    min-width: 300px;
    height: 100%;
    min-height: calc(220px + (850 - 220) * ((100vw - 320px) / (1920 - 320)));
    overflow: hidden;
    margin-bottom: calc(12px + (24 - 12) * ((100vw - 320px) / (1920 - 320)));
  }

  .wrapper__article article .post-thumbnail img {
    width: auto;
    height: auto;
    object-fit: cover;
  }

  .wrapper__video-block {
    position: relative;
    margin-top: 30px;
    margin-bottom: -22px;
    width: 100%;

    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
  }

  .wrapper__video-block .item-video-img__block {
    max-width: 100%;
  }

  .two-block__contact-page .left-block__contact-page {
    width: 100%;
  }
  .two-block__contact-page .left-block__contact-page .not-upper {
    text-align: center;
  }

  .block-tree-two {
    display: flex;
    flex-direction: row;
    align-content: flex-start;
    align-items: flex-start;
    gap: 60px;
    justify-content: center;
    flex-wrap: wrap;
  }

  .block-tree-two .left__block-tree,
  .block-tree-two .right__block-tree,
  .block-tree-two .block-tree-two__video-two {
    width: 100%;
  }

  .block-tree-two .right__block-tree {
    display: flex;
    flex-direction: column-reverse;
    flex-wrap: nowrap;
    align-content: center;
    justify-content: flex-end;
    align-items: center;
  }

  .block-metal-two .left__block-tree {
    max-width: 100%;
    display: flex;
    flex-direction: column;
    flex-wrap: nowrap;
    align-content: center;
    justify-content: center;
    align-items: center;
    gap: 30px;
  }

  .glass-page__block-two {
    display: flex;
    flex-direction: column-reverse;
  }
}

@media (max-width: 821px) {
  .item-video-img__block {
    position: relative;
    width: 100%;
    /*max-width: 45%;*/
    min-width: 280px;
  }

  .block-two-section .item-video-img__block {
    max-width: 100%;
  }

  .block__video-2 .item-video-img__block {
    max-width: 100%;
  }

  .wrapper__social-block {
    position: relative;
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    align-content: center;
    justify-content: center;
    align-items: center;
  }
  .text-in-page-header p {
    -webkit-text-stroke: 1px var(--bg-body-color);
    text-stroke: 1px var(--bg-body-color);
    width: auto;
  }
  .main__container .entry-content p {
    -webkit-text-stroke: 1px var(--bg-body-color);
    text-stroke: 1px var(--bg-body-color);
  }

  .popup .popup-content {
    width: 100%;
    max-width: 96vw;
    height: 100%;
    max-height: 40vh;
  }
}

@media (max-height: 450px) {
  .popup .popup-content {
    width: 100%;
    max-width: 96vw;
    height: 100%;
    max-height: 90vh;
  }
}
