.products_cases {
  padding: 5.2rem 0 8.1rem;
  overflow: hidden;
}
.products_cases .head_img {
  margin-bottom: 1.3rem;
}
.products_cases .head h2 {
  letter-spacing: 0.02em;
}
.products_cases .head .btn_i {
  margin-bottom: 0.5rem;
}
.products_cases .products_cases_swiper {
  margin-top: 7.3rem;
}
.products_cases .products_cases_swiper .swiper-slide {
  max-width: 63.95833333%;
  transform: translateY(-1.4%) scale(0.81107492);
  transform-origin: center right;
  transition: transform 0.4s, transform-origin 0.4s;
}
.products_cases .products_cases_swiper .swiper-slide-active {
  transform: scale(1);
  transform-origin: center;
}
.products_cases .products_cases_swiper .swiper-slide-active .info {
  transform: translateY(0);
  opacity: 1;
  transition: transform 0.4s 0.4s, opacity 0.3s 0.4s;
}
.products_cases .products_cases_swiper .swiper-slide-active ~ .swiper-slide {
  transform-origin: left center;
}
.products_cases .item {
  display: block;
  height: 100%;
}
.products_cases .item .img {
  border-radius: 2.4rem;
  padding-bottom: 52.00868621%;
}
.products_cases .item .info {
  display: grid;
  grid-template-columns: 40% 55.592%;
  align-items: start;
  justify-content: space-between;
  transform: translateY(-2rem);
  opacity: 0;
  transition: all 0.3s;
  gap: 0.3rem 0;
  margin-top: 2.7rem;
}
.products_cases .item .info .title {
  font-size: 2.6rem;
  font-weight: 600;
  color: #303030;
  grid-column: 1;
  letter-spacing: 0.01538em;
}
.products_cases .item .info .cat {
  font-weight: 500;
  color: #73bc38;
  grid-column: 1;
  letter-spacing: -0.005em;
}
.products_cases .item .info .desc {
  font-size: 1.8rem;
  line-height: 2.8rem;
  color: var(--text);
  max-width: 48.5rem;
  grid-column: 2;
  grid-row: 1 / span 2;
  margin-top: 0.4rem;
}
.products_cases .swiper_con {
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  padding-top: 35.55555556%;
  pointer-events: none;
}
.products_cases .swiper_con .pagination,
.products_cases .swiper_con .swiper_btns {
  pointer-events: all;
}
.products_cases .pagination {
  display: flex;
  align-items: center;
  font-weight: 500;
  color: #9e9e9e;
  width: auto;
  margin-top: 3px;
}
.products_cases .pagination .line {
  display: inline-block;
  content: '';
  flex-shrink: 0;
  width: 1.3125em;
  height: 1px;
  background-color: #9e9e9e;
  margin: 0 0.5625em;
}
.products_cases .pagination.swiper-pagination-lock {
  display: block;
  opacity: 0;
}
.products_cases .pagination .current {
  color: #303030;
}
@media screen and (max-width: 768px) {
  .products_cases {
    padding: 50px 0;
  }
  .products_cases .products_cases_swiper {
    margin-top: 30px;
  }
  .products_cases .item .img {
    border-radius: 10px;
  }
  .products_cases .item .info {
    margin-top: 20px;
    display: flex;
    flex-direction: column;
    gap: 0;
  }
  .products_cases .item .info .title {
    font-size: 18px;
    margin-top: 8px;
  }
  .products_cases .item .info .cat {
    order: -1;
  }
  .products_cases .item .info .desc {
    font-size: 14px;
    line-height: 1.5;
    margin-top: 10px;
  }
  .products_cases .swiper_con {
    position: static;
    padding: 0;
    align-items: center;
    margin-top: 30px;
  }
  .products_cases .swiper_con .pagination {
    margin: 0;
  }
}
@media screen and (max-width: 576px) {
  .products_cases .products_cases_swiper .swiper-slide {
    max-width: 100%;
  }
}
/*** products page v2: category nav + category sections (parts/products-main.php) ***/
.products_nav {
  padding: 8rem 0 6.8rem;
}
.products_nav .nav_list {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 2.6rem 3.2rem;
}
.products_nav .nav_item {
  position: relative;
  display: flex;
  align-items: center;
  gap: 1.8rem;
  height: 8rem;
  padding: 0 2.2rem;
  border-radius: 1.2rem;
  border: 1px solid #e3e3e3;
  background-color: #fff;
  font-size: 2rem;
  line-height: 1.2;
  font-weight: 600;
  color: #303030;
  transition: all 0.3s;
}
.products_nav .nav_item::after {
  position: absolute;
  inset: -1px;
  content: '';
  border-radius: inherit;
  border: 2px solid transparent;
  background: linear-gradient(90deg, #73bc38 0%, #b8eaa2 55%, #73bc38 100%) border-box;
  -webkit-mask: linear-gradient(#000 0 0) padding-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0;
  transition: opacity 0.3s;
  pointer-events: none;
}
.products_nav .nav_item .img {
  flex-shrink: 0;
  width: 3.2rem;
  height: 3.2rem;
  filter: grayscale(1) brightness(0.32);
  transition: filter 0.3s;
}
.products_nav .nav_item.active,
.products_nav .nav_item:hover {
  border-color: transparent;
  box-shadow: 0 0.6rem 1.6rem rgba(115, 188, 56, 0.12);
}
.products_nav .nav_item.active::after,
.products_nav .nav_item:hover::after {
  opacity: 1;
}
.products_nav .nav_item.active .img,
.products_nav .nav_item:hover .img {
  filter: none;
}
.products_nav + .products_cat {
  padding-top: 8.5rem;
}
.products_cat {
  padding: 8.5rem 0;
  scroll-margin-top: 12rem;
}
.products_cat + .products_cat {
  padding-top: 8.2rem;
}
.products_cat .head .lt {
  flex: 1;
  min-width: 0;
}
.products_cat .head h2 {
  letter-spacing: 0.015em;
}
.products_cat .head .line {
  margin-top: 4.9rem;
}
.products_cat .head p {
  max-width: 86rem;
  color: var(--text);
  margin-top: 3.8rem;
}
.products_cat .head .icon {
  position: relative;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 9.8rem;
  height: 9.8rem;
  margin-top: 8.2rem;
  border-radius: 2rem;
  border: 2px solid var(--primary);
  background-color: #fff;
  box-shadow: 0 0.8rem 1.6rem rgba(115, 188, 56, 0.16);
}
.products_cat .head .icon .img {
  width: 4.6rem;
  height: 4.6rem;
  filter: grayscale(1) brightness(0.32);
}
.products_cat .swiper_box {
  margin-top: 2.2rem;
}
.products_cat .products_cat_swiper {
  overflow: visible;
}
.products_cat .products_cat_swiper .swiper-slide {
  width: calc((100% - 3.6rem) / 3);
  margin-right: 1.8rem;
}
.products_cat .products_cat_swiper .swiper-slide:last-child {
  margin-right: 0;
}
.products_cat .swiper-wrapper {
  align-items: stretch;
}
.products_cat .item {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  height: 100%;
  border-radius: 2rem;
  padding: 4.2rem 3.8rem 3.9rem;
  background-color: #fff;
  transition: box-shadow 0.3s;
}
.products_cat .item::after {
  position: absolute;
  inset: 0;
  content: '';
  border-radius: inherit;
  border: 2px solid transparent;
  background: linear-gradient(90deg, #73bc38 0%, #c3eaa9 58%, #73bc38 100%) border-box;
  -webkit-mask: linear-gradient(#000 0 0) padding-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0;
  transition: opacity 0.3s;
  pointer-events: none;
}
.products_cat .item .img {
  width: 100%;
  --h: 83.5%;
}
.products_cat .item .cat {
  position: relative;
  z-index: 2;
  display: inline-block;
  max-width: 100%;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  margin-top: -1.8rem;
  padding: 0 2.2rem;
  border-radius: 10rem;
  font-size: 1.6rem;
  line-height: 3.6rem;
  font-weight: 600;
  color: #fff;
  background-image: linear-gradient(90deg, #73bc38 0%, #a9dc86 100%);
}
.products_cat .item .title {
  font-size: 2.4rem;
  line-height: 1.33333;
  font-weight: 600;
  color: #303030;
  max-width: 32rem;
  min-height: 2.66666em;
  margin-top: 1.4rem;
  overflow: hidden;
  text-overflow: ellipsis;
  -webkit-line-clamp: 2;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  transition: color 0.3s;
}
.products_cat .item .img + .title {
  margin-top: 3.2rem;
}
.products_cat .item:hover img {
  transform: scale(1.03);
}
.products_cat .active .item {
  box-shadow: 0 1.8rem 2.4rem -1.2rem rgba(115, 188, 56, 0.28);
}
.products_cat .active .item::after {
  opacity: 1;
}
.products_cat .swiper_btns.middle {
  max-width: 174rem;
  top: 50%;
}
@media screen and (min-width: 769px) and (max-width: 1024px) {
  .products_nav .nav_list {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .products_nav .nav_item {
    font-size: 16px;
    height: 64px;
    padding: 0 16px;
    gap: 12px;
  }
  .products_cat .item .title {
    font-size: 2.2rem;
  }
}
@media screen and (min-width: 769px) and (max-width: 1220px) {
  .products_cat .swiper_btns.middle {
    display: none;
  }
}
@media screen and (max-width: 768px) {
  .products_nav {
    padding: 30px 0 10px;
  }
  .products_nav .nav_list {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    gap: 10px;
    width: calc(100% + 40px);
    margin: 0 -20px;
    padding: 4px 20px 14px;
  }
  .products_nav .nav_list::-webkit-scrollbar {
    display: none;
  }
  .products_nav .nav_list li {
    flex-shrink: 0;
  }
  .products_nav .nav_item {
    height: 48px;
    padding: 0 16px;
    gap: 10px;
    border-radius: 10px;
    font-size: 14px;
    white-space: nowrap;
  }
  .products_nav .nav_item .img {
    width: 22px;
    height: 22px;
  }
  .products_nav + .products_cat,
  .products_cat,
  .products_cat + .products_cat {
    padding: 40px 0 20px;
    scroll-margin-top: 90px;
  }
  .products_cat .head {
    position: relative;
    gap: 16px;
  }
  .products_cat .head .line {
    margin-top: 16px;
  }
  .products_cat .head p {
    margin-top: 14px;
  }
  .products_cat .head .icon {
    position: absolute;
    right: 0;
    top: 0;
    width: 50px;
    height: 50px;
    margin: 0;
    border-radius: 12px;
  }
  .products_cat .head .icon .img {
    width: 24px;
    height: 24px;
  }
  .products_cat .swiper_box {
    margin-top: 10px;
  }
  .products_cat .products_cat_swiper .swiper-slide {
    width: 280px;
    margin-right: 14px;
  }
  .products_cat .item {
    border-radius: 12px;
    padding: 20px 18px 22px;
  }
  .products_cat .item .cat {
    font-size: 13px;
    line-height: 28px;
    padding: 0 14px;
    margin-top: -14px;
  }
  .products_cat .item .title {
    font-size: 17px;
    margin-top: 10px;
  }
  .products_cat .swiper_btns.middle:not(:has(.swiper-button-lock),.no_static) {
    margin-top: 16px;
  }
}

/* Category pages: products_intro lives in the editor, not the products list. */
.products_intro {
  padding: 13.8rem 0 6.2rem;
}
.products_intro .head_img {
  margin-bottom: 1.3rem;
}
.products_intro .head h2 {
  letter-spacing: 0.023em;
}
.products_intro .flex {
  margin-top: 4.8rem;
}
.products_intro .img {
  width: 50.4861%;
  --h: 63.68638239%;
  border-radius: 2rem;
}
.products_intro .img + .info {
  max-width: 59.4rem;
}
.products_intro .info {
  flex: 1;
  width: 100%;
  padding-top: 1.5%;
}
.products_intro .info p {
  color: var(--text);
}
.products_intro .btns {
  display: flex;
  flex-wrap: wrap;
  margin-top: 4.5rem;
  gap: 2.9rem;
}
.products_intro .btns .btn_video {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 2.3rem;
  padding: 0 3.9rem;
}
.products_intro .btns .btn_video::after {
  display: inline-block;
  content: "";
  width: 0.944em;
  height: 0.944em;
  background: url("../img/play-w.svg") center center / contain no-repeat;
}

/* Editor template uses span tags; live/public.css uses ul/li. Support both. */
.page_models .page_models_swiper .tags,
.page_models .page_models_swiper .tags ul {
  display: flex;
  flex-wrap: wrap;
  font-size: 1.8rem;
  gap: 0.9rem;
  margin-top: 3.1rem;
}
.page_models .page_models_swiper .tags span,
.page_models .page_models_swiper .tags li {
  display: inline-block;
  transition: all 0.3s;
  line-height: 1.2;
  font-weight: 600;
  color: #666666;
  border: 1px solid #f0f0f0;
  background-color: #fafafa;
  border-radius: 1.4em;
  padding: 0.70556em 1.1944em;
}
.page_models .page_models_swiper .tags span:hover,
.page_models .page_models_swiper .tags li:hover {
  background-color: var(--primary);
  border-color: var(--primary);
  color: #fff;
}

@media screen and (max-width: 768px) {
  .products_intro {
    padding: 50px 0;
  }
  .products_intro .flex {
    margin-top: 30px;
  }
  .products_intro .img {
    border-radius: 10px;
  }
  .products_intro .info {
    padding: 0;
  }
  .products_intro .btns {
    margin-top: 20px;
    gap: 14px;
  }
  .products_intro .btns .btn,
  .products_intro .btns .btn_line {
    margin: 0;
  }
  .products_intro .btns .btn_video {
    gap: 10px;
    padding: 0 20px;
  }
  .page_models .page_models_swiper .tags,
  .page_models .page_models_swiper .tags ul {
    font-size: 14px;
    gap: 10px;
    margin-top: 14px;
  }
  .page_models .page_models_swiper .tags span,
  .page_models .page_models_swiper .tags li {
    padding: 0.5em 1em;
  }
}

@media screen and (max-width: 576px) {
  .products_intro .img {
    width: 100%;
  }
}
