:root {
  --product-green: #43875e;
  --product-ink: #111;
  --product-muted: #757575;
  --product-line: #e4e4e4;
}

body.product-detail-page { color: var(--product-ink); background: #fff; }

.product-overview {
  padding: 95px 0 40px;
  background: #f7f7f7;
}

.product-overview__inner {
  display: grid;
  width: min(1395px, calc(100% - 48px));
  margin: 0 auto;
  grid-template-columns: minmax(0, 620px) minmax(0, 1fr);
  gap: clamp(72px, 6.3vw, 120px);
  align-items: start;
}

.product-gallery { min-width: 0; }

.product-gallery__main {
  position: relative;
  display: block;
  width: 100%;
  padding: 0;
  overflow: hidden;
  border: 0;
  aspect-ratio: 1 / 1;
  background: #eceeed;
  cursor: pointer;
}

.product-gallery__main-image {
  display: block;
  width: 100%;
  height: 100% !important;
  object-fit: cover;
  transform: scale(1.001);
  transition: opacity .18s ease, transform .45s ease;
}

.product-gallery__main:hover .product-gallery__main-image { transform: scale(1.045); }

.product-gallery__main:focus-visible {
  outline: 2px solid var(--product-green);
  outline-offset: 4px;
}

.product-gallery__rail {
  position: relative;
  width: 100%;
  margin-top: 68px;
}

.product-gallery__thumbs {
  display: flex;
  width: 100%;
  gap: 14px;
  overflow-x: auto;
  overscroll-behavior-inline: contain;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  scroll-behavior: smooth;
}

.product-gallery__thumbs::-webkit-scrollbar { display: none; }

.product-gallery__thumb {
  position: relative;
  width: 124px;
  min-width: 124px;
  padding: 0;
  overflow: hidden;
  border: 2px solid transparent;
  aspect-ratio: 1 / 1;
  box-sizing: border-box;
  background: #eceeed;
  cursor: pointer;
  opacity: .78;
  scroll-snap-align: start;
  transition: border-color .2s ease, opacity .2s ease;
}

.product-gallery__thumb img {
  display: block;
  width: 100%;
  height: 100% !important;
  object-fit: cover;
}

.product-gallery__thumb:hover,
.product-gallery__thumb.is-active { border-color: var(--product-green); opacity: 1; }
.product-gallery__thumb:focus-visible { border-color: var(--product-green); outline: none; opacity: 1; }

.product-gallery__rail-arrow {
  position: absolute;
  z-index: 2;
  top: 50%;
  display: none;
  width: 32px;
  height: 46px;
  padding: 0;
  border: 0;
  align-items: center;
  justify-content: center;
  color: #fff;
  background: rgba(27, 34, 29, .68);
  font-family: Arial, sans-serif;
  font-size: 27px;
  line-height: 1;
  cursor: pointer;
  transform: translateY(-50%);
  transition: background-color .2s ease, opacity .2s ease;
}

.product-gallery__rail.is-scrollable .product-gallery__rail-arrow { display: flex; }
.product-gallery__rail-prev { left: 0; }
.product-gallery__rail-next { right: 0; }
.product-gallery__rail-arrow:hover,
.product-gallery__rail-arrow:focus-visible { background: var(--product-green); outline: none; }
.product-gallery__rail-arrow:disabled { opacity: .25; cursor: default; }

.product-summary { min-width: 0; padding-top: 2px; }

.product-summary__title {
  margin: 0;
  color: #080808;
  font-family: "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
  font-size: 29px;
  font-weight: 500;
  line-height: 1.35;
}

.product-summary__line {
  width: 100%;
  height: 1px;
  margin: 23px 0 68px;
  background: var(--product-line);
}

.product-summary__pager {
  margin-top: 17px;
  padding: 0 0 20px;
  border-bottom: 1px solid var(--product-line);
}

.product-summary__pager a {
  display: flex;
  min-width: 0;
  padding: 5px 0;
  color: var(--product-muted);
  font-size: 14px;
  line-height: 1.55;
  text-decoration: none;
}

.product-summary__pager span { flex: 0 0 auto; margin-right: 4px; }
.product-summary__pager strong { overflow: hidden; font-weight: 400; text-overflow: ellipsis; white-space: nowrap; }
.product-summary__pager a:hover strong,
.product-summary__pager a:focus-visible strong { color: var(--product-green); }
.product-summary__pager a:focus-visible { outline: 1px solid var(--product-green); outline-offset: 3px; }

.product-summary__contact {
  display: inline-flex;
  width: 192px;
  height: 61px;
  margin-top: 49px;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  color: #fff;
  background: var(--product-green);
  font-size: 18px;
  font-weight: 500;
  text-decoration: none;
  transition: background-color .2s ease, transform .2s ease;
}

.product-summary__contact span { display: none; }
.product-summary__contact:hover,
.product-summary__contact:focus-visible { background: #356f4b; outline: none; }
.product-summary__contact:active { transform: scale(.98); }

.product-content { min-height: 468px; padding: 50px 0 105px; box-sizing: border-box; background: #fff; }
.product-content__inner { width: min(1395px, calc(100% - 48px)); margin: 0 auto; }
.product-content__body { color: #111; font-size: 15px; line-height: 2; }
.product-content__body > :first-child { margin-top: 0 !important; }
.product-content__body > :last-child { margin-bottom: 0 !important; }
.product-content__body h1,
.product-content__body h2,
.product-content__body h3,
.product-content__body h4,
.product-content__body h5,
.product-content__body h6 {
  margin: 0 0 25px;
  color: #080808;
  font-weight: 600;
  line-height: 1.45;
}
.product-content__body h1,
.product-content__body h2 { font-size: 25px; }
.product-content__body h3 { font-size: 21px; }
.product-content__body h4,
.product-content__body h5,
.product-content__body h6 { font-size: 18px; }
.product-content__body p { margin: 0; color: #111; font-size: 15px; line-height: 2; }
.product-content__body p + h1,
.product-content__body p + h2,
.product-content__body p + h3,
.product-content__body p + h4,
.product-content__body p + h5,
.product-content__body p + h6 { margin-top: 110px; margin-bottom: 14px; }
.product-content__body strong { color: #70767a; font-weight: 600; }
.product-content__body img { display: block; max-width: 100% !important; height: auto !important; margin: 30px auto; }
.product-content__body ul,
.product-content__body ol { margin: 18px 0; padding-left: 1.5em; }
.product-content__body table { width: 100% !important; margin: 24px 0; border-collapse: collapse; }
.product-content__body td,
.product-content__body th { padding: 10px 13px; border: 1px solid var(--product-line); text-align: left; }

.related-products {
  padding: 82px 0 152px;
  overflow: hidden;
  background: #f7f7f7;
}

.related-products__title {
  margin: 0 0 59px;
  color: #080808;
  font-family: "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
  font-size: 33px;
  font-weight: 600;
  line-height: 1.4;
  text-align: center;
}

.related-products__stage { position: relative; }

.related-products__slider {
  width: min(1395px, calc(100% - 48px));
  margin: 0 auto;
  overflow: hidden;
}

.related-products__slide { height: auto; }

.related-products__link {
  display: block;
  color: inherit;
  text-decoration: none;
}

.related-products__media {
  width: 100%;
  margin: 0;
  overflow: hidden;
  aspect-ratio: 1 / 1;
  background: #e8eae9;
}

.related-products__image {
  display: block;
  width: 100%;
  height: 100% !important;
  object-fit: cover;
  transform: scale(1.001);
  transition: transform .45s ease;
}

.related-products__link:hover .related-products__image,
.related-products__link:focus-visible .related-products__image { transform: scale(1.06); }

.related-products__name {
  margin: 20px 0 0;
  overflow: hidden;
  color: #656565;
  font-size: 21px;
  font-weight: 400;
  line-height: 1.5;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.related-products__link:focus-visible { outline: 2px solid var(--product-green); outline-offset: 5px; }

.related-products__arrow {
  position: absolute;
  z-index: 2;
  top: 46%;
  display: none;
  width: 48px;
  height: 48px;
  padding: 0;
  border: 0;
  align-items: center;
  justify-content: center;
  color: #555;
  background: rgba(255, 255, 255, .96);
  box-shadow: 0 8px 24px rgba(30, 36, 31, .12);
  font-size: 20px;
  cursor: pointer;
  transform: translateY(-50%);
}

.related-products.is-carousel .related-products__arrow { display: flex; }
.related-products__prev { left: max(16px, calc((100vw - 2300px) / 2)); }
.related-products__next { right: max(16px, calc((100vw - 2300px) / 2)); }
.related-products__arrow:hover,
.related-products__arrow:focus-visible { color: #fff; background: var(--product-green); outline: none; }

.product-contact {
  padding: 78px 0 84px;
  background: #fff;
}

.product-contact__panel {
  width: min(1395px, calc(100% - 48px));
  margin: 0 auto;
  padding: 42px 78px 46px;
  box-sizing: border-box;
  background: #fff;
  box-shadow: 0 4px 24px rgba(28, 34, 29, .1);
}

.product-contact__title {
  margin: 0;
  color: #080808;
  font-family: "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
  font-size: 30px;
  font-weight: 600;
  line-height: 1.4;
  text-align: center;
}

.product-contact__form { width: 100%; margin: 32px auto 0; }

.product-contact__field {
  display: block;
  margin-bottom: 18px;
  color: #111;
}

.product-contact__field > span {
  display: block;
  margin-bottom: 8px;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.5;
}

.product-contact__field input,
.product-contact__field textarea {
  display: block;
  width: 100%;
  padding: 0 18px;
  border: 1px solid #aaa;
  border-radius: 0;
  box-sizing: border-box;
  color: #222;
  background: #fff;
  font-family: inherit;
  font-size: 15px;
  outline: none;
  transition: border-color .2s ease, box-shadow .2s ease;
}

.product-contact__field input { height: 46px; }
.product-contact__field textarea { min-height: 150px; padding-top: 12px; padding-bottom: 12px; line-height: 1.7; resize: vertical; }
.product-contact__field input::placeholder,
.product-contact__field textarea::placeholder { color: #8a8a8a; opacity: 1; }
.product-contact__field input:focus,
.product-contact__field textarea:focus { border-color: var(--product-green); box-shadow: 0 0 0 2px rgba(67, 135, 94, .12); }

.product-contact__submit {
  display: inline-flex;
  width: 160px;
  height: 54px;
  margin-top: 8px;
  padding: 0;
  border: 0;
  align-items: center;
  justify-content: center;
  gap: 13px;
  color: #fff;
  background: #69a45c;
  font-family: inherit;
  font-size: 16px;
  font-weight: 500;
  cursor: pointer;
  transition: background-color .2s ease, transform .2s ease;
}

.product-contact__plane { width: 26px; height: 26px; fill: currentColor; transform-origin: center; }
.product-contact__submit:hover,
.product-contact__submit:focus-visible { background: var(--product-green); outline: none; }
.product-contact__submit:hover .product-contact__plane,
.product-contact__submit:focus-visible .product-contact__plane { animation: product-plane-nudge .56s ease; }
.product-contact__submit:active { transform: scale(.98); }

@keyframes product-plane-nudge {
  0%, 100% { transform: translate(0, 0); }
  48% { transform: translate(6px, -5px) rotate(4deg); }
}

.product-advantages {
  padding: 84px 0 100px;
  background: #f9f9f9;
}

.product-advantages__inner {
  width: min(1395px, calc(100% - 48px));
  margin: 0 auto;
}

.product-advantages__header {
  padding-bottom: 37px;
  border-bottom: 1px solid #dedede;
  text-align: center;
}

.product-advantages__title {
  margin: 0;
  color: #080808;
  font-family: "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
  font-size: 33px;
  font-weight: 600;
  line-height: 1.4;
}

.product-advantages__intro {
  margin: 25px 0 0;
  color: #898989;
  font-size: 19px;
  line-height: 1.7;
  text-align: center;
}

.product-advantages__grid {
  display: grid;
  margin-top: 43px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(54px, 7vw, 116px);
}

.product-advantages__card {
  display: grid;
  min-width: 0;
  grid-template-columns: 45px minmax(0, 1fr);
  align-content: start;
  color: #111;
  outline: none;
  transform: translateY(0);
  transition: transform .38s cubic-bezier(.22, .61, .36, 1);
}

.product-advantages__card:hover,
.product-advantages__card:focus-visible { transform: translateY(-9px); }

.product-advantages__card:focus-visible {
  outline: 2px solid var(--product-green);
  outline-offset: 8px;
}

.product-advantages__number {
  display: block;
  width: 31px;
  height: 28px;
  margin-top: 1px;
  perspective: 180px;
}

.product-advantages__number-inner {
  position: relative;
  display: block;
  width: 100%;
  height: 100%;
  transform-style: preserve-3d;
  transition: transform .55s cubic-bezier(.22, .61, .36, 1);
}

.product-advantages__number-face {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #080808;
  font-family: Arial, sans-serif;
  font-size: 20px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  line-height: 1;
  backface-visibility: hidden;
}

.product-advantages__number-back { transform: rotateX(180deg); }
.product-advantages__card:hover .product-advantages__number-inner,
.product-advantages__card:focus-visible .product-advantages__number-inner { transform: rotateX(180deg); }

.product-advantages__content h3 {
  margin: 0 0 19px;
  color: #080808;
  font-size: 22px;
  font-weight: 600;
  line-height: 1.35;
}

.product-advantages__content p {
  margin: 0;
  color: #707070;
  font-size: 15px;
  line-height: 2.2;
}

.product-advantages__content p + p { margin-top: 1px; }

.product-certificates {
  padding: 75px 0 72px;
  overflow: hidden;
  background: #fff;
}

.product-certificates__inner {
  width: min(1395px, calc(100% - 48px));
  margin: 0 auto;
}

.product-certificates__title {
  margin: 0 0 68px;
  color: #080808;
  font-family: "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
  font-size: 33px;
  font-weight: 600;
  line-height: 1.4;
}

.product-certificates__grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
}

.product-certificates__item {
  display: block;
  width: 100%;
  margin: 0;
  padding: 0;
  overflow: hidden;
  border: 1px solid #dedede;
  aspect-ratio: 3 / 4;
  box-sizing: border-box;
  background: #eee;
  cursor: pointer;
}

.product-certificates__image {
  display: block;
  width: 100%;
  height: 100% !important;
  object-fit: cover;
  transform: scale(1.001);
  transition: transform .45s ease;
}

.product-certificates__item:hover .product-certificates__image { transform: scale(1.055); }
.product-certificates__item:focus-visible { outline: 2px solid var(--product-green); outline-offset: 5px; }
.product-certificates__item:focus-visible .product-certificates__image { transform: scale(1.055); }

.product-lightbox { position: fixed; z-index: 120; inset: 0; display: none; color: #fff; }
.product-lightbox.is-open { display: block; }
.product-lightbox__backdrop { position: absolute; inset: 0; background: rgba(13, 18, 14, .91); }
.product-lightbox__dialog { position: absolute; inset: 0; display: grid; grid-template-columns: 72px minmax(0, 1fr) 72px; align-items: center; }
.product-lightbox__toolbar { position: absolute; z-index: 2; top: 0; right: 0; left: 0; display: flex; height: 68px; padding: 0 22px; align-items: center; justify-content: space-between; box-sizing: border-box; }
.product-lightbox__counter { font-family: Arial, sans-serif; font-size: 13px; font-variant-numeric: tabular-nums; letter-spacing: .12em; }
.product-lightbox__close,
.product-lightbox__arrow { border: 0; color: #fff; background: rgba(255, 255, 255, .08); cursor: pointer; transition: background-color .2s ease; }
.product-lightbox__close { width: 44px; height: 44px; font-size: 31px; font-weight: 200; line-height: 1; }
.product-lightbox__arrow { position: relative; z-index: 2; width: 48px; height: 48px; margin: auto; font-size: 20px; }
.product-lightbox__close:hover,
.product-lightbox__close:focus-visible,
.product-lightbox__arrow:hover,
.product-lightbox__arrow:focus-visible { background: var(--product-green); outline: none; }
.product-lightbox__stage { position: relative; display: flex; width: 100%; height: calc(100dvh - 96px); margin: 48px 0; align-items: center; justify-content: center; overflow: hidden; }
.product-lightbox__image { display: block; max-width: min(82vw, 1260px); max-height: calc(100dvh - 120px); object-fit: contain; }
.product-lightbox.is-single .product-lightbox__arrow { visibility: hidden; }
body.product-lightbox-open { overflow: hidden; }

@media (max-width: 1180px) {
  .product-overview { padding-top: 64px; }
  .product-overview__inner { grid-template-columns: minmax(0, 1fr) minmax(320px, .9fr); gap: 54px; }
  .product-summary__line { margin-bottom: 42px; }
}

@media (max-width: 768px) {
  .product-overview { padding: 36px 0 52px; }
  .product-overview__inner { width: calc(100% - 36px); grid-template-columns: 1fr; gap: 38px; }
  .product-gallery__rail { margin-top: 28px; }
  .product-gallery__thumbs { gap: 8px; }
  .product-gallery__thumb { width: calc((100% - 24px) / 4); min-width: calc((100% - 24px) / 4); }
  .product-summary__title { font-size: 25px; }
  .product-summary__line { margin: 17px 0 28px; }
  .product-summary__contact { width: 100%; height: 54px; margin-top: 34px; font-size: 16px; }
  .product-content { padding: 42px 0 72px; }
  .product-content__inner { width: calc(100% - 36px); }
  .product-content__body h1,
  .product-content__body h2 { font-size: 23px; }
  .product-content__body p + h1,
  .product-content__body p + h2,
  .product-content__body p + h3,
  .product-content__body p + h4,
  .product-content__body p + h5,
  .product-content__body p + h6 { margin-top: 62px; }
  .related-products { padding: 56px 0 82px; }
  .related-products__title { margin-bottom: 38px; font-size: 28px; }
  .related-products__slider { width: calc(100% - 36px); }
  .related-products__name { margin-top: 13px; font-size: 16px; }
  .related-products__arrow { width: 42px; height: 42px; }
  .related-products__prev { left: 8px; }
  .related-products__next { right: 8px; }
  .product-contact { padding: 44px 0 56px; }
  .product-contact__panel { width: calc(100% - 36px); padding: 30px 15px 34px; }
  .product-contact__title { font-size: 26px; }
  .product-contact__form { margin-top: 24px; }
  .product-contact__field { margin-bottom: 16px; }
  .product-contact__field > span { font-size: 15px; }
  .product-contact__field input,
  .product-contact__field textarea { padding-right: 15px; padding-left: 15px; font-size: 15px; }
  .product-contact__field input { height: 44px; }
  .product-contact__field textarea { min-height: 130px; }
  .product-contact__submit { width: 100%; height: 52px; margin-top: 4px; font-size: 16px; }
  .product-advantages { padding: 58px 0 70px; }
  .product-advantages__inner { width: calc(100% - 36px); }
  .product-advantages__header { padding-bottom: 29px; }
  .product-advantages__title { font-size: 27px; }
  .product-advantages__intro { margin-top: 17px; font-size: 15px; }
  .product-advantages__grid { margin-top: 35px; grid-template-columns: 1fr; gap: 35px; }
  .product-advantages__card { grid-template-columns: 42px minmax(0, 1fr); }
  .product-advantages__content h3 { margin-bottom: 13px; font-size: 20px; }
  .product-advantages__content p { font-size: 14px; line-height: 2; }
  .product-certificates { padding: 52px 0 58px; }
  .product-certificates__inner { width: calc(100% - 36px); }
  .product-certificates__title { margin-bottom: 35px; font-size: 27px; }
  .product-certificates__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .product-lightbox__dialog { grid-template-columns: 50px minmax(0, 1fr) 50px; }
  .product-lightbox__image { max-width: calc(100vw - 108px); }
  .product-lightbox__arrow { width: 42px; height: 46px; }
}

@media (prefers-reduced-motion: reduce) {
  .product-gallery__main-image,
  .product-gallery__thumb,
  .product-gallery__rail-arrow,
  .product-summary__contact,
  .related-products__image,
  .related-products__arrow,
  .product-contact__field input,
  .product-contact__field textarea,
  .product-contact__submit,
  .product-advantages__card,
  .product-advantages__number-inner,
  .product-certificates__image,
  .product-lightbox__close,
  .product-lightbox__arrow { transition: none; }

  .product-contact__submit:hover .product-contact__plane,
  .product-contact__submit:focus-visible .product-contact__plane { animation: none; }

  .product-advantages__card:hover,
  .product-advantages__card:focus-visible,
  .product-advantages__card:hover .product-advantages__number-inner,
  .product-advantages__card:focus-visible .product-advantages__number-inner { transform: none; }
}
