.template6-product-page {
  background: #f3f4f7;
  color: #45576f;
}

.template6-product-shell {
  width: min(1200px, calc(100% - 56px));
  margin: 0 auto;
}

.template6-product-hero {
  padding: 170px 0 84px;
}

.template6-product-layout {
  display: grid;
  grid-template-columns: minmax(320px, 430px) minmax(0, 1fr);
  gap: 34px;
  align-items: start;
}

.template6-product-gallery__main,
.template6-product-gallery__thumb {
  border-radius: 26px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 10px 22px rgba(78, 100, 128, 0.18);
}

.template6-product-gallery__main {
  margin: 0;
}

.template6-product-gallery__main {
  aspect-ratio: 1.3 / 1;
}

.template6-product-gallery__main img,
.template6-product-gallery__thumb img,
.template6-related-card__media img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.template6-product-gallery__thumbs {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 14px;
}

.template6-product-gallery__thumb {
  margin: 0;
  aspect-ratio: 1 / 1;
  padding: 0;
  border: 0;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, outline-color 0.2s ease;
}

.template6-product-gallery__thumb:hover,
.template6-product-gallery__thumb:focus-visible,
.template6-product-gallery__thumb.is-active {
  transform: translateY(-2px);
  box-shadow: 0 14px 28px rgba(29, 79, 147, 0.22);
}

.template6-product-gallery__thumb:focus-visible {
  outline: 3px solid rgba(29, 79, 147, 0.28);
  outline-offset: 2px;
}

.template6-product-content h1 {
  position: relative;
  margin: 0 0 18px;
  font-size: clamp(1.1rem, 2.7vw, 1.5rem);
  font-weight: 500;
  line-height: 1;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.template6-product-content h1 span {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0.5rem 1.1rem 0.5rem;
  background: linear-gradient(135deg, #1d4f93 0%, #2a69b6 100%);
  color: #fff;
  box-shadow: 0 10px 22px rgba(29, 79, 147, 0.18);
  border-radius:20px;
}

.template6-product-content h1 span::after {
  content: "";
  display: inline-block;
  width: 38px;
  height: 1px;
  margin-left: 0.7rem;
  background: rgba(255, 255, 255, 0.68);
}

.template6-product-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 16px;
}

.template6-product-meta span {
  display: inline-flex;
  align-items: center;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(29, 79, 147, 0.1);
  color: #1d4f93;
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.template6-product-summary {
  margin: 0 0 22px;
  font-size: 1rem;
  line-height: 1.5;
  color: #495b72;
}

.template6-product-summary--rich > *:last-child {
  margin-bottom: 0;
}

.template6-product-bullets {
  margin: 0 0 28px;
  padding-left: 1.2rem;
  font-size: 0.98rem;
  line-height: 1.7;
}

.template6-product-bullets li + li {
  margin-top: 0.18rem;
}

.template6-product-specs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px 18px;
  margin: 0 0 32px;
}

.template6-product-specs div {
  padding: 14px 16px;
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 10px 20px rgba(78, 100, 128, 0.1);
}

.template6-product-specs dt {
  margin: 0 0 6px;
  font-size: 0.76rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #1d4f93;
}

.template6-product-specs dd {
  margin: 0;
  font-size: 0.96rem;
  color: #4d5b6d;
}

.template6-product-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
}

.template6-product-cta,
.template6-product-backlink {
  text-decoration: none;
}

.template6-product-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0.9rem 1.55rem;
  border-radius: 999px;
  background: linear-gradient(135deg, #1d4f93 0%, #275da5 48%, #173f78 100%);
  box-shadow: 0 16px 28px rgba(29, 79, 147, 0.22);
  color: #fff;
  font-size: 0.88rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  transition: background-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.template6-product-cta::after {
  content: "\2192";
  margin-left: 0.8rem;
  font-size: 1.05rem;
  line-height: 1;
}

.template6-product-cta:hover,
.template6-product-cta:focus-visible {
  background: linear-gradient(135deg, #173f78 0%, #23518f 55%, #102f5d 100%);
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 20px 34px rgba(23, 63, 120, 0.28);
}

.template6-product-backlink {
  color: #1d4f93;
  font-size: 0.92rem;
  font-weight: 600;
}

.template6-product-backlink:hover,
.template6-product-backlink:focus-visible {
  color: #173f78;
}

.template6-related-products {
  padding: 56px 0 86px;
  background: #fff;
}

.template6-related-products__header {
  margin-bottom: 34px;
  text-align: center;
}

.template6-related-products__header h2 {
  margin: 0;
  font-size: clamp(1.6rem, 2.6vw, 2.1rem);
  font-weight: 500;
  text-transform: uppercase;
  color: #1d4f93;
}

.template6-related-products__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 26px;
}

.template6-related-card {
  border-radius: 24px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 10px 22px rgba(78, 100, 128, 0.16);
}

.template6-related-card__link {
  display: block;
  height: 100%;
  color: inherit;
  text-decoration: none;
}

.template6-related-card__link:focus-visible {
  outline: 3px solid rgba(29, 79, 147, 0.25);
  outline-offset: -3px;
}

.template6-related-card__media {
  height: 270px;
  background: #d8dfe7;
}

.template6-related-card__body {
  min-height: 152px;
  padding: 20px 18px 24px;
  text-align: center;
}

.template6-related-card__body h3 {
  margin: 0 0 10px;
  font-size: 0.98rem;
  font-weight: 500;
  line-height: 1.3;
  text-transform: uppercase;
  color: #55657c;
}

.template6-related-card__body p {
  margin: 0;
  font-size: 0.92rem;
  line-height: 1.45;
  color: #67768a;
}

@media (max-width: 991.98px) {
  .template6-product-shell {
    width: min(100% - 32px, 1200px);
  }

  .template6-product-hero {
    padding-top: 138px;
  }

  .template6-product-layout,
  .template6-related-products__grid {
    grid-template-columns: 1fr;
  }

  .template6-related-card__media {
    height: 240px;
  }
}

@media (max-width: 640px) {
  .template6-product-shell {
    width: calc(100% - 24px);
  }

  .template6-product-hero {
    padding: 122px 0 54px;
  }

  .template6-product-layout {
    gap: 24px;
  }

  .template6-product-gallery__thumbs,
  .template6-product-specs {
    grid-template-columns: 1fr;
  }

  .template6-product-content h1 span {
    width: 100%;
    justify-content: space-between;
  }

  .template6-product-actions {
    align-items: stretch;
  }

  .template6-product-cta {
    width: 100%;
  }

  .template6-related-products {
    padding: 44px 0 60px;
  }
}
