/*
Theme Name:   Divi-child
Theme URI:    https://example.com
Description:  Дочерняя тема для Divi
Author:       InExpoTeam
Author URI:   https://example.com
Template:     Divi
Version:      1.0.0
Text Domain:  my-child-theme
*/

@font-face {
  font-family: 'Michroma';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('https://fonts.gstatic.com/s/michroma/v19/PN_zRfy9qWD8fEagAPg9pTn5_PDb.woff2') format('woff2');
  unicode-range: U+0000-00FF;
}

   
/* ==========================================================================
   Отступ сверху
   ========================================================================== */



body {
    margin-top: 35px !important;
  }

@media only screen and (max-width: 1023px) {
  body {
    margin-top: 70px !important;
  }
}

/* ==========================================================================
   Four Projects Slider Styles
   ========================================================================== */

/* Контейнер всего слайдера */
.four-projects-slider {
  width: 100%;
  max-width: 600px;
  margin: 0 auto;
  overflow: hidden;
}

/* Контейнер для карточек */
.four-projects-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: left;
  column-gap: 10px;
  row-gap: 30px;
}

/* Каждая карточка проекта */
.four-projects-item {
  flex: 0 0 calc(50% - 10px); /* 2 карточки в строке */
  box-sizing: border-box;
  text-align: center;
  position: relative;
  overflow: hidden;
}

/* Изображение с фиксированными размерами 268x159 */
.four-projects-thumb {
  width: 268px;
  height: 159px !important;
  object-fit: cover;
  display: block;
  margin: 0 auto;
}

/* Адаптивные стили */
@media (max-width: 480px) {
  .four-projects-item {
    flex: 0 0 calc(100% - 10px);
  }
  .four-projects-thumb {
    width: 100%;
    height: 159px !important;
  }
}

/* ==========================================================================
   ========= Десктопные стили =========
   ========================================================================== */

/* --- Контейнеры с рядами --- */
.container_row {
  display: flex !important;         /* включаем flex */
  flex-direction: row !important;    /* горизонтальное расположение */
  align-items: center !important;     /* выравнивание по вертикали */
  justify-content: start !important;  /* выравнивание по горизонтали от начала */
  flex-wrap: wrap !important;         /* перенос элементов при нехватке места */
}
.container_row > .et_pb_column.left_to_right {
  flex: 0 0 auto !important;
  width: auto !important;
  max-width: none !important;
}
.container_row_top > .et_pb_column.left_to_right {
  flex: 0 0 auto !important;
  width: auto !important;
  max-width: none !important;
}

/* --- Слайдер Divi --- */
.et_pb_slider.et_pb_module .et_pb_slide .et_pb_slide_description .et_pb_slide_content {
  display: inline-block !important;
  padding: 28px !important;
  border: 1px solid #000 !important;
  box-sizing: border-box !important;
}
@media only screen and (max-width:768px) {
  .et_pb_slider.et_pb_module .et_pb_slide .et_pb_slide_description .et_pb_slide_content {
    padding: 7px !important; 
    border: 0.5px solid #000;
  }
}

@media only screen and (max-width: 767px){
    .et_pb_slider .my-slider-text{
        font-size: 7px !important;   /* задайте нужное значение или, например, 2.5vw для адаптивности */
    }
}


/* ==========================================================================
   ========= Дополнительные настройки для 4 post слайдера =========
   ========================================================================== */
.et_pb_section .et_pb_post_slider_0_tb_body.et_pb_slider .et_pb_more_button.et_pb_button {
  border-radius: 8px !important;
}
.more-link {
  border-radius: 8px !important;
}

/* --- Скрытие заголовка и отступов --- */
.hide-title .post-content,
.hide-title .et_pb_post .post-content-inner,
.hide-title .et_pb_post {
  margin: 0 !important;
  padding: 0 !important;
  height: auto !important;
  min-height: 0 !important;
}

/* --- Стили для блога (горизонтальное расположение) --- */
.blog-horizontal .et_pb_ajax_pagination_container article.et_pb_post.clearfix {
  float: none !important;
  width: 100% !important;
  display: grid !important;
  grid-template-columns: 354px auto !important;
  grid-template-rows: auto !important;
  grid-column-gap: 30px !important;
  grid-row-gap: 0 !important;
  align-items: start !important;
}
.blog-horizontal .et_pb_ajax_pagination_container article.et_pb_post.clearfix a.entry-featured-image-url {
  grid-column: 1 / 2 !important;
  grid-row: 1 / 2 !important;
  max-width: 354px !important;
  margin: 0 !important;
  padding: 0 !important;
}
@media only screen and (max-width: 767px) {
  .blog-horizontal .et_pb_ajax_pagination_container article.et_pb_post.clearfix {
    grid-template-columns: 100% !important;
  }
  .blog-horizontal .et_pb_ajax_pagination_container article.et_pb_post.clearfix a.entry-featured-image-url {
    max-width: none !important;
  }
}
.entry-title {
  grid-column: 2 / 3 !important;
  grid-row: 1 / 2 !important;
  margin: 0 !important;
  padding: 0 !important;
  line-height: 1.2 !important;
  text-align: left !important;
}
.blog-horizontal .et_pb_ajax_pagination_container article.et_pb_post.clearfix .post-content {
  grid-column: 2 / 3 !important;
  grid-row: 1 / 2 !important;
  margin-top: 54px !important;
  padding: 0 !important;
  text-align: left !important;
}
@media only screen and (max-width: 767px) {
  .blog-horizontal .et_pb_ajax_pagination_container article.et_pb_post.clearfix .post-content {
    margin-top: 12px !important;
  }
}
.more-link {
  display: inline-block !important;
  width: auto !important;
  padding: 15px 30px !important;
  margin-top: 15px !important;
  color: #2C2C2C !important;
  border-width: 0.5px !important;
  border-style: solid !important;
  border-color: #2C2C2C !important;
  border-radius: 3px !important;
  background-color: transparent !important;
  text-decoration: none !important;
}
.et_pb_post .post-content .post-content-inner p {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 4;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: normal;
}
@media (max-width: 768px) {
  .blog-horizontal .et_pb_ajax_pagination_container article.et_pb_post.clearfix .entry-title {
    margin-bottom: 0 !important;
    margin-top: 20px !important;
  }
}

/* ==========================================================================
   ========= Мобильные стили =========
   Все мобильные переопределения собраны в одном медиазапросе
   ========================================================================== */
@media only screen and (max-width: 767px) {
  .container_row {
    display: block !important;
    flex-direction: initial !important;
    align-items: left !important;
    justify-content: initial !important;
    flex-wrap: initial !important;
  }
  .container_row > .et_pb_column.left_to_right {
    width: 100% !important;
    max-width: 100% !important;
    flex: none !important;
  }
  .blog-horizontal .et_pb_ajax_pagination_container article.et_pb_post.clearfix {
    display: block !important;
  }
}


/* ==========================================================================
   ========= Общие отступы и логотип =========
   ========================================================================== */
.et_builder_inner_content {
  margin: 0 !important;
  padding: 0 !important;
}

/* ==========================================================================
   ========= Видео блок =========
   ========================================================================== */
.my-video-block {
  width: 100%;
  margin: 0 auto;
  position: relative;
  overflow: hidden;
}
.my-video-block .desktop-video {
  width: 600px;
  height: 480px;
  margin: 0 auto;
  position: relative;
  overflow: hidden;
  display: block;
}
.my-video-block .mobile-video {
  display: none;
  width: 100%;
  height: 500px;
  margin: 0 auto;
  position: relative;
  overflow: hidden;
}
.my-video-block .video-wrapper video {
  position: absolute;
  top: 0; 
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.my-video-block .overlay {
  position: absolute;
  top: 0; 
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0,0,0,0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
}
.my-video-block .desktop-video .overlay img {
  width: 292px;
  height:45.68px;
}
.my-video-block .mobile-video .overlay img {
  width: 258px;
  height:40.37px;
}
@media only screen and (max-width: 767px) {
  .my-video-block .desktop-video {
    display: none !important;
  }
  .my-video-block .mobile-video {
    display: block !important;
  }
}

/* ==========================================================================
   ========= Прочие стили =========
   ========================================================================== */
body {
  overflow-x: hidden;
}
ol li, ul li {
  margin-bottom: 20px;
}
ol li::marker {
  color: #ffffff !important;
}

/* ==========================================================================
   ========= Custom Background Blur =========
   ========================================================================== */
.custom-bg-blur {
  position: relative;
  overflow: hidden;
  background: transparent;
  z-index: 0;
}
.custom-bg-blur::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: url('https://inexpoteam.com/wp-content/uploads/2025/02/07-center-workers.jpeg') center/cover no-repeat;
  filter: blur(10px);
  -webkit-filter: blur(10px);
  z-index: 0;
}
.custom-bg-blur::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.4);
  z-index: 1;
}
.custom-bg-blur > * {
  position: relative;
  z-index: 2;
}
@media (min-width: 768px) {
  .custom-bg-blur::before {
    background-attachment: fixed;
  }
}

/* ==========================================================================
   ========= Контактная форма =========
   ========================================================================== */
.et_pb_section .et_pb_contact_form_0_tb_footer.et_pb_contact_form_container.et_pb_module .et_pb_button,
.et_pb_section .et_pb_contact_form_0_tb_footer.et_pb_contact_form_container.et_pb_module input[type="submit"] {
  height: 52px !important;
}
@media only screen and (max-width: 767px) {
  .et_pb_contact_right p.clearfix {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    flex-wrap: nowrap;
  }
}
.et_pb_contact_form_0 .et_pb_contact_field .input {
  padding-right: 0px;
  padding-bottom: 16px;
  padding-left: 16px !important;
}

/* ==========================================================================
   ========= Portfolio Template Styles (Priority) =========
   ========================================================================== */
body {
  background: #313131;
}
.portfolio-container {
  max-width: 1030px;
  margin: 0 auto;
  padding: 20px;
  padding-top:115px;
}
.portfolio-container h1 {
  text-align: center;
  margin-bottom: 40px;
  font-family: 'Michroma', Helvetica, Arial, Lucida, sans-serif !important;
}
.projects-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: left;
  gap: 70px 25px;
}
.project-card {
  background: #313131;
  min-width: 313px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  width: calc(33.333% - 50px);
}
.project-card img {
  border-radius: 8px;
  width: 100%;
  height: 200px;
  object-fit: cover;
  display: block;
}
.project-card .img-wrapper {
  border-radius: 8px;
  overflow: hidden;
  display: block;
}
.project-card .img-wrapper img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  transition: transform 1.0s ease;
}
.project-card:hover .img-wrapper img {
  transform: scale(1.15);
}
.project-card h2 {
  font-size: 18px;
  text-align: left;
  font-family: 'Michroma', Helvetica, Arial, Lucida, sans-serif !important;
  margin-top: 25px;
  margin-bottom: 10px;
  line-height: 1.4;
  color: #dfdfdf;
}
.project-meta {
  font-size: 16px !important;
  margin-bottom: -20px;
  text-align: left !important;
  color: #ededed;
  line-height: 2 !important;
}
.project-meta-label {
  font-family: 'Open Sans', Helvetica, Arial, sans-serif;
  font-size: 16px;
  color: #929292;
  margin: 0;
}
.project-meta-value {
  font-family: 'Michroma', Helvetica, Arial, Lucida, sans-serif;
  font-size: 16px;
  color: #fff;
  margin-top: -20px !important;
  height: 70px;
  line-height: 1.8;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.project-card .btn {
  padding: 10px;
  background: #171717;
  text-decoration: none;
  text-align: center;
  border-radius: 8px;
  margin-top: auto;
  border: 0.5px solid rgba(247,247,247,0.3) !important;
  color: #ededed !important;
  letter-spacing: 2.5px;
  font-size: 12px;
  font-family: 'Michroma', Helvetica, Arial, Lucida, sans-serif !important;
  text-transform: uppercase !important;
  transition: background 0.3s ease, color 0.3s ease;
}
.project-card .btn:hover {
  background: #333;
  color: #ededed;
}
.other-projects-heading {
  font-family: 'Michroma', Helvetica, Arial, Lucida, sans-serif;
  font-size: 22px !important;
  padding-bottom: 30px !important;
}

/* ==========================================================================
   ========= Адаптивные стили =========
   ========================================================================== */
@media (max-width: 992px) {
  .project-card {
    width: calc(50% - 30px) !important;
  }
  .portfolio-container {
    padding-top: 40px;
    padding-left: 20px;
    padding-right: 20px;
  }
}
@media (max-width: 576px) {
  .project-card {
    width: calc(100% - 30px) !important;
  }
  .project-meta-value {
    height: auto;
  }
  .project-meta {
    margin: 0 0 30px;
  }
  .projects-grid {
    justify-content: center;
  }
  .project-card h2 {
    font-size: 21px;
  }
  .other-projects-heading {
    font-family: 'Michroma', Helvetica, Arial, Lucida, sans-serif;
    font-size: 22px !important;
    padding-bottom: 30px !important;
    padding-left: 10px;
  }
}

/* ==========================================================================
   ========= Превью блогов =========
   ========================================================================== */
.et_pb_image_container img {
  height: 235px !important;
  object-fit: cover !important;
}

/* ==========================================================================
   Дополнительные стили (списки, маркеры и т.д.)
   ========================================================================== */
ol li, ul li {
  margin-bottom: 20px;
}
ol li::marker {
  color: #ffffff !important;
}

/* ==========================================================================
   ========= Ограничение заголовка на главной =========
   ========================================================================== */
body.home .entry-title a {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
}



/* ==========================================================================
   ========= Меню =========
   ========================================================================== */
.et_pb_menu .menu-item-has-children > a:after {
  content: none !important;
  width: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
}
.et_pb_menu .menu-item-has-children > a {
  padding-right: 0 !important;
}

/* ==========================================================================
   ========= Превью блогов =========
   ========================================================================== */
.et_pb_image_container img {
  height: 235px !important;
  object-fit: cover !important;
}

/* ==========================================================================
   Latest Blog Image Styles
   ========================================================================== */
.latest-blog-image .latest-blog-thumb {
  width: 100%;
  height: 226px !important;
  object-fit: cover !important;
}

/* ==========================================================================
   Latest Blog Text Styles
   ========================================================================== */
.latest-blog-text {
  margin-bottom: 20px;
  color: #2c2c2c !important;
}
.latest-blog-title {
  font-family: 'Michroma', Helvetica, Arial, Lucida, sans-serif !important;
  color: #2c2c2c !important;
  font-size: 16px !important;
  letter-spacing: 1px;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
}
.latest-blog-content {
  font-family: 'Open Sans', Helvetica, Arial, Lucida, sans-serif;
  font-weight: 300;
  font-size: 18px;
  line-height: 29px;
  color: #2c2c2c !important;
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
}
.latest-blog-readmore {
  font-family: 'Michroma', Helvetica, Arial, Lucida, sans-serif;
  font-size: 12px;
  text-transform: uppercase;
  line-height: 20px;
  padding: 15px 30px;
  border: 0.5px solid #2C2C2C;
  margin-top: 20px;
  color: #2c2c2c;
  background: none;
  text-decoration: none;
  display: inline-block;
  border-radius: 8px;
}

/* ==========================================================================
   ========= Header (фиксированный с плавным скрытием) =========
   ========================================================================== */
header.et-l--header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 9999;
  transition: transform 0.3s ease-in-out;
  transform: translateY(0);
}
header.et-l--header.hidden {
  transform: translateY(-100%);
}
