:root {
  --pt-max: 28;
  --pt-min: 18;
  --slide-max: 320;
  --slide-max: 232;
}

h1, h2, h3, h4, h5, h6 {
  font-size: clamp(calc(var(--fs-min) * 1px), calc((var(--fs-min) * 1px) + (var(--fs-max) - var(--fs-min)) * ((100vw - (var(--fluid-min-width) * 1px)) / (var(--fluid-max-width) - var(--fluid-min-width)))), calc(var(--fs-max) * 1px));
}

.title_post {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

h1 {
  --fs-max: 46;
  --fs-min: 24;
}

h2 {
  --fs-max: 36;
  --fs-min: 24;
}

h3 {
  --fs-max: 36;
  --fs-min: 24;
}

h4 {
  --fs-max: 36;
  --fs-min: 24;
}

.projects_swiper h3,
.archive_posts h3 {
  --fs-max: 28;
  --fs-min: 18;  
}

.archive_posts {
  width: 100%;
  position: relative;
  gap: 2rem;
  flex-direction: row;
  flex-wrap: wrap;
  margin-top: 2rem;
}

.archive_posts .single_post {
  width: calc(50% - 1rem);
}

.single_post {
  background: var(--Gradient-DeepAzure);
  padding: 2.5rem;
  border-radius: 2rem;
  height: 100%;
}

.post_inner {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  justify-content: space-between;
}

.post_img {
  width: 100%;
  height: 30rem;
  object-fit: cover;
  border-radius: 1.75rem;
}

.post_info {
  gap: 2rem;
}

.main_about {
  width: 100%;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: flex-start;
  -ms-flex-align: flex-start;
  align-items: flex-start;
  flex-direction: column;
  gap: 2rem;
}

.left_side.no_sidebar {
  width: 100%;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: flex-start;
  -ms-flex-align: flex-start;
  align-items: flex-start;
  flex-direction: row-reverse;
  gap: 2.625rem;
}

.left_side.no_sidebar .first_block,
.left_side.no_sidebar .main_about {
  width: 50%;
}


.left_side.with_sidebar,
.h1_case.with_sidebar {
  width: 80%;
  max-width: 1200px;
}

.right_side {
  width: 20%;
}

.b_exist.sticky_b {
  margin-top: -16rem;
}

.no_b_exist.sticky_b {
  margin-top: 3.5rem;
}

.gas_works_tasks {
  margin-top: 0;
}

ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.first_block {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.h1_case {
  margin-bottom: 2rem;
}

#projects_swiper.swiper {
  /* overflow: visible; */
  margin-top: 2rem;
}

.swiper-button-next {
	background: center / contain no-repeat url('/wp-content/uploads/2025/04/next_arrow.svg');
  padding: 4px 22px;
  border-radius: 2rem;
  width: 6rem;
  height: 6rem;
}

.swiper-button-prev {
	background: center / contain no-repeat url('/wp-content/uploads/2025/04/previous_arrow.svg');
  padding: 4px 22px;
  border-radius: 2rem;
  width: 6rem;
  height: 6rem;
}

.thumbs-slider .swiper-button-next,
.thumbs-slider .swiper-button-prev {
  width: 2.75rem;
  height: 2.75rem;
}

.swiper-button-prev svg,
.swiper-button-next svg {
  display: none;
}

.gallery-wrapper {
  display: flex;
  gap: 2.5rem;
  width: 100%;
  max-height: 50vh;
  height: 600px;
} 

.main-slider {
  flex: 1;
  height: 100%;
  border-radius: 8px;
  overflow: hidden;
}
  
.main-slider img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.swiper-vertical .swiper-button-next,
.swiper-vertical .swiper-button-prev {
  transform:rotate(90deg)
}

.thumbs-slider {
  width: 7.5rem; 
  height: 100%; 
}
  
.thumbs-slider .swiper-slide {
  width: 100%;
  height: 100px;
  opacity: 0.5;
  cursor: pointer;
  transition: opacity 0.3s;
  border-radius: 4px;
  overflow: hidden;
} 
  
.thumbs-slider .swiper-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
} 
  
.thumbs-slider .swiper-slide-thumb-active {
  opacity: 1;
  box-sizing: border-box;
}

.faq {
  display: flex;
  flex-direction: column;
  gap: 3rem;
}


.faq__item {
  scroll-margin-top: 100px; /* отступ при переходе по якорю, если есть липкая шапка */
}

.faq__item + .faq__item {
  margin-top: 24px;
}

.faq__title {
  margin: 0;
}

.faq__title-static,
.faq__panel {
  display: block;
}

.faq__toggle {
  display: none;
}

.faq-nav__link {
position: relative;
  display: block;
  padding: 1rem;
  color: rgba(167, 204, 229, 1);
  text-decoration: none;
  transition: color 0.2s ease;
  margin: 0;
}

.faq-nav__link::before {
  content: "";
  position: absolute;
  right: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background-color: rgba(167, 204, 229, 1);
  opacity: 0.55;
  transition: background-color 0.2s ease, opacity 0.2s ease;
}

.faq-nav__link.is-active {
  color: #ffffff;
}

.faq-nav__link.is-active::before {
  background-color: #ffffff;
  opacity: 1;
}

@media (max-width: 1240px) {
.left_side.with_sidebar, .h1_case.with_sidebar {
  width: 75%;
}

.right_side {
  width: 25%;
}

}

@media screen and (max-width: 1140px) {
.post_info._flex-start {
    flex-wrap: nowrap;
}
}

@media (max-width: 768px) {
.faq {
  gap: 1rem;
}

.faq__title-static {
  display: none;
} 

.faq__toggle {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  width: 100%;
  padding: 0;
  margin: 0;
  border: 0;
  background: none;
  font: inherit;
  text-align: left;
  cursor: pointer;
} 

.js .faq__panel {
  display: none;
} 

.js .faq__item.is-open .faq__panel {
  display: block;
} 

.faq__toggle-icon {
  position: relative;
  width: 1.25rem;
  height: 1.25rem;
  flex: 0 0 auto;
} 

.faq__toggle-icon::after {
  content: "";
  position: absolute;
  /* inset: 9px 0;
  background: currentColor; */
  transition: transform 0.2s ease;
  width: 0;
  height: 0;
  border-left: 9px solid transparent;
  border-right: 9px solid transparent;
  border-bottom: 15px solid currentColor;
  transform: rotate(180deg);
  margin-top: 0.5rem;
} 

.faq__item.is-open .faq__toggle-icon::after {
  transform: rotate(0);
} 

.left_side.with_sidebar, .h1_case.with_sidebar {
  width: 100%;
}

.faq__item {
  border-bottom: 1px solid var(--Sleelblue);
}

.faq__toggle-text {
  margin: 0;
}

.faq__title {
  padding-bottom: 2rem;
}

.right_side {
  display: none;
}

.post_info._flex-start,
.left_side.no_sidebar {
  flex-wrap: wrap;
}

.left_side.no_sidebar .first_block,
.left_side.no_sidebar .main_about {
  width: 100%;
}

.section.main_about {
  padding: 0;
}

.post_img {
  height: 16rem;
}

.swiper-button-next,
.swiper-button-prev {
  width: 4rem;
  height: 4rem;
}

.archive_posts .single_post {
  width: 100%;
}

}

@media (max-width: 600px) {
.thumbs-slider {
    width: 3rem;
}

.gallery-wrapper {
  gap: 1rem;
}

}

@media (max-width: 480px) {
.question_button_v2 {
  font-size: 1rem;
}

.post_img {
  height: 14rem;
  border-radius: 1rem;
}
.gallery-wrapper {
  height: 17rem;
}

.single_post {
  padding: 1.375rem 1.25rem 1.25rem;
  border-radius: 1rem;
}

.single .main_screen {
  padding: 10.625rem 0 3.5rem 0;
}

}