.page--inner main .layout-container {
  max-width: 1440px;
}

.inner-hero,
.detail-hero {
  position: relative;
  min-height: clamp(320px, 36vw, 500px);
  display: grid;
  align-items: center;
  padding: 56px 0 42px;
  background:
    linear-gradient(0deg, rgba(8, 20, 46, 0.48), rgba(8, 20, 46, 0.48)),
    var(--hero-bg-image, url("/static/kerun/images/ys1.jpg")) center/cover no-repeat;
  color: #fff;
}

.inner-hero::before,
.detail-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, rgba(7, 35, 90, 0.52), rgba(7, 35, 90, 0.16));
}

.inner-hero__inner,
.detail-hero__inner {
  position: relative;
  z-index: 1;
  display: block;
}

.inner-hero__eyebrow {
  margin: 0 0 10px;
  color: rgba(255, 255, 255, 0.88);
  font-size: 0.84rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  font-weight: 700;
}

.product-section__eyebrow {
  margin: 0 0 10px;
  color: var(--primary);
  font-size: 0.84rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-weight: 700;
}

.inner-hero__title,
.detail-hero__title,
.product-section__title,
.support-section__title,
.detail-cta__title {
  margin: 0;
  font-family: var(--font-heading);
}

.inner-hero__title,
.detail-hero__title {
  font-size: clamp(2.5rem, 4.2vw, 4.2rem);
  color: #fff;
}

.inner-hero__text,
.detail-hero__text,
.product-list-card__text,
.product-feature__text,
.support-section__text,
.support-card__text,
.detail-block__text,
.detail-cta__text {
  color: var(--text-soft);
}

.inner-hero__copy,
.detail-hero__copy {
  max-width: 720px;
}

.inner-hero__text,
.detail-hero__text {
  max-width: 54ch;
  font-size: 1rem;
  line-height: 1.9;
  color: rgba(255, 255, 255, 0.9);
}

.inner-hero__crumbs,
.detail-hero__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  color: rgba(255, 255, 255, 0.76);
  font-size: 0.92rem;
}

.inner-hero__crumbs {
  margin-top: 22px;
}

.inner-hero__crumbs a {
  color: inherit;
}

.inner-hero__media,
.detail-hero__media {
  display: none;
}

.category-nav {
  position: sticky;
  top: 78px;
  z-index: 20;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(16px);
  border-top: 1px solid rgba(17, 19, 27, 0.05);
  border-bottom: 1px solid rgba(17, 19, 27, 0.08);
}

.category-nav__inner {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
  padding-top: 14px;
  padding-bottom: 14px;
}

.category-nav__item,
.product-section__more,
.product-list-card__link,
.product-feature__button,
.detail-hero__link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 18px;
  border: 1px solid rgba(17, 19, 27, 0.1);
  color: #262a33;
  background: #fff;
  transition:
    transform 180ms ease,
    border-color 180ms ease,
    box-shadow 180ms ease,
    color 180ms ease;
}

.category-nav__item:hover,
.product-section__more:hover,
.product-list-card__link:hover,
.product-feature__button:hover,
.detail-hero__link:hover {
  border-color: var(--primary);
  color: var(--primary);
  transform: translateY(-2px);
  box-shadow: 0 16px 30px rgba(15, 93, 184, 0.1);
}

.product-section,
.support-section,
.detail-section,
.detail-gallery,
.detail-cta {
  padding: 72px 0;
}

.product-section--alt,
.detail-gallery {
  background: #f6f7f9;
}

.product-section__heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 34px;
}

.product-grid-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

.product-list-card {
  overflow: hidden;
  background: #fff;
  border: 1px solid rgba(15, 93, 184, 0.08);
  box-shadow: 0 18px 44px rgba(12, 27, 42, 0.08);
  transition:
    transform 220ms ease,
    box-shadow 220ms ease,
    border-color 220ms ease;
}

.product-list-card--wide {
  grid-column: span 2;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(320px, 0.9fr);
  align-items: stretch;
}

.product-list-card__image {
  width: 100%;
  aspect-ratio: 1 / 0.78;
  object-fit: cover;
  background: linear-gradient(180deg, #eef3f9, #e5ebf3);
  transition: transform 280ms ease;
}

.product-list-card__body {
  display: grid;
  align-content: start;
  gap: 14px;
  padding: 24px 24px 26px;
}

.product-list-card:hover {
  transform: translateY(-6px);
  border-color: rgba(15, 93, 184, 0.18);
  box-shadow: 0 24px 54px rgba(12, 27, 42, 0.14);
}

.product-list-card:hover .product-list-card__image {
  transform: scale(1.04);
}

.product-list-card__title,
.product-feature__title,
.support-card__title,
.detail-block__title {
  margin: 0;
  font-family: var(--font-heading);
  font-size: 1.34rem;
}

.product-list-card__link {
  justify-self: start;
  margin-top: 4px;
}

.product-feature {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(340px, 0.82fr);
  gap: 34px;
  align-items: center;
}

.product-feature__gallery {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.product-feature__gallery img {
  width: 100%;
  aspect-ratio: 1 / 0.9;
  object-fit: cover;
  background: #f6f7f9;
}

.product-feature__list,
.detail-block__list {
  margin: 18px 0 0;
  padding-left: 18px;
  color: var(--text-soft);
}

.support-section__inner,
.detail-cta__inner {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 34px;
  align-items: start;
}

.support-section__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
}

.support-card,
.detail-block {
  padding: 24px;
  background: #fff;
  border: 1px solid rgba(15, 93, 184, 0.08);
}

.detail-hero__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 22px;
  color: rgba(255, 255, 255, 0.76);
}

.detail-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 26px;
}

.detail-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}

.detail-gallery__inner {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.detail-gallery__inner img {
  width: 100%;
  aspect-ratio: 1 / 0.78;
  object-fit: cover;
}

.detail-cta {
  background: linear-gradient(135deg, rgba(211, 18, 24, 0.04), rgba(211, 18, 24, 0.09));
}

.detail-cta__inner {
  align-items: center;
}

.detail-section--alt {
  background: #f6f7f9;
}

.product-detail-top {
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(360px, 0.98fr);
  gap: 28px;
  align-items: stretch;
}

.product-detail-top__gallery,
.product-detail-top__summary {
  background: #fff;
  border: 1px solid rgba(15, 93, 184, 0.08);
}

.product-detail-top__gallery {
  padding: 18px;
}

.product-detail-top__main {
  background: linear-gradient(180deg, #eef3f9, #e5ebf3);
}

.product-detail-top__main img {
  display: block;
  width: 100%;
  aspect-ratio: 1 / 0.72;
  object-fit: contain;
}

.product-detail-top__thumbs {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: calc((100% - 48px) / 5);
  gap: 12px;
  margin-top: 14px;
  overflow-x: auto;
  overflow-y: hidden;
  scrollbar-width: thin;
  scroll-snap-type: x proximity;
  padding-bottom: 6px;
}

.product-detail-top__thumb {
  padding: 0;
  border: 1px solid rgba(17, 19, 27, 0.08);
  background: #fff;
  cursor: pointer;
  min-width: 0;
  scroll-snap-align: start;
  transition: border-color 180ms ease, transform 180ms ease;
}

.product-detail-top__thumb img {
  display: block;
  width: 100%;
  aspect-ratio: 1 / 0.78;
  object-fit: contain;
  padding: 10px;
  background: #f7f9fc;
}

.product-detail-top__thumb:hover,
.product-detail-top__thumb.is-active {
  border-color: var(--primary);
  transform: translateY(-2px);
}

.product-detail-top__summary {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 34px 38px;
}

.product-detail-top__tag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  align-self: flex-start;
  min-height: 34px;
  padding: 0 14px;
  border: 1px solid rgba(17, 19, 27, 0.1);
  border-radius: 999px;
  color: #6a7380;
  font-size: 0.84rem;
}

.product-detail-top__title {
  margin: 18px 0 0;
  color: #262a33;
  font-family: var(--font-heading);
  font-size: clamp(2.2rem, 3.4vw, 3.3rem);
  line-height: 1.08;
}

.product-detail-top__text {
  margin: 18px 0 0;
  color: var(--text-soft);
  line-height: 1.9;
}

.product-detail-top__meta {
  display: block;
  margin-top: 26px;
  padding-top: 22px;
  border-top: 1px solid rgba(17, 19, 27, 0.08);
  color: #6d7684;
  font-size: 0.94rem;
}

.product-detail-top__meta ul {
  margin: 0;
  padding-left: 18px;
}

.product-detail-top__meta li + li {
  margin-top: 8px;
}

.product-detail-top__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 28px;
}

.detail-content-card {
  padding: 30px 32px;
  background: #fff;
  border: 1px solid rgba(15, 93, 184, 0.08);
}

.detail-content-card p:first-child {
  margin-top: 0;
}

@media (max-width: 1100px) {
  .inner-hero__inner,
  .detail-hero__inner,
  .product-feature,
  .support-section__inner,
  .detail-cta__inner,
  .product-grid-list,
  .detail-grid,
  .detail-gallery__inner,
  .product-detail-top {
    grid-template-columns: 1fr;
  }

  .product-list-card--wide {
    grid-column: span 1;
    grid-template-columns: 1fr;
  }

  .inner-hero__media {
    min-height: 360px;
  }

  .product-detail-top__thumbs {
    grid-auto-columns: calc((100% - 24px) / 3);
  }
}
