:root {
  --bg: #ffffff;
  --surface: #f5f7f8;
  --surface-strong: #e8edf0;
  --text: #172026;
  --muted: #5f6f7a;
  --line: #d8e0e5;
  --brand: rgb(32, 96, 170);
  --brand-dark: rgb(18, 76, 150);
  --accent: rgb(32, 96, 170);
  --shadow: 0 18px 45px rgba(23, 32, 38, 0.08);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: Arial, Helvetica, sans-serif;
  font-size: 16px;
  line-height: 1.6;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

.container {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
}

.narrow {
  width: min(820px, calc(100% - 32px));
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(255, 255, 255, 0.94);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(10px);
}

.site-header .container {
  width: min(1560px, calc(100% - 64px));
}

.site-header__inner {
  display: flex;
  min-height: 72px;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 21px;
  font-weight: 800;
}

.brand__mark {
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  border-radius: 50%;
  background: var(--brand);
  color: #fff;
}

.primary-nav ul {
  display: flex;
  align-items: center;
  gap: 30px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.primary-nav a {
  color: var(--muted);
  font-size: 20px;
  font-weight: 700;
}

.primary-nav a:hover {
  color: var(--brand);
}

.nav-toggle {
  display: none;
}

.hero {
  min-height: 520px;
  display: flex;
  align-items: center;
  background:
    linear-gradient(90deg, rgba(32, 96, 170, 0.88), rgba(32, 96, 170, 0.5)),
    repeating-radial-gradient(circle at 12% 28%, rgba(255, 255, 255, 0.22) 0 2px, transparent 3px 84px),
    linear-gradient(135deg, rgb(32, 96, 170), #27343a);
  color: #fff;
}

.hero__inner {
  padding: 72px 0;
}

.hero__content {
  max-width: 700px;
}

.hero h1 {
  margin: 0;
  max-width: 760px;
  font-size: clamp(42px, 7vw, 76px);
  line-height: 0.98;
}

.hero p {
  max-width: 620px;
  color: rgba(255, 255, 255, 0.86);
  font-size: 18px;
}

.hero__actions,
.product-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.button {
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  border: 1px solid transparent;
  border-radius: 6px;
  padding: 10px 18px;
  font-weight: 700;
}

.button-primary {
  background: var(--accent);
  color: #fff;
}

.button-secondary {
  border-color: currentColor;
  color: inherit;
}

.section {
  padding: 72px 0;
}

.section-muted {
  background: var(--surface);
}

.section-gap {
  margin-top: 28px;
}

.section-heading {
  max-width: 720px;
  margin-bottom: 28px;
}

.section-heading-with-action {
  display: grid;
  max-width: none;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 24px;
  align-items: end;
}

.section-heading-with-action p:last-child {
  margin-bottom: 0;
  color: var(--muted);
}

.section-heading h1,
.section-heading h2,
.entry h1,
.product-summary h1 {
  margin: 0 0 12px;
  font-size: clamp(30px, 4vw, 46px);
  line-height: 1.08;
}

.eyebrow {
  margin: 0 0 8px;
  color: var(--brand);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.catalog-grid {
  display: grid;
  gap: 18px;
}

.catalog-grid-categories {
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
}

.catalog-grid-products {
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.catalog-card,
.content-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: var(--shadow);
}

.catalog-card {
  min-height: 126px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 6px;
  padding: 22px;
}

.catalog-card__label {
  font-size: 20px;
  font-weight: 800;
}

.catalog-card__meta,
.product-card p,
.feature-list,
.entry-content,
.content-card p {
  color: var(--muted);
}

.product-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: var(--shadow);
}

.product-card__image {
  display: grid;
  aspect-ratio: 4 / 3;
  place-items: center;
  background: var(--surface-strong);
  color: var(--muted);
  font-weight: 700;
}

.product-card__image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.product-card__body {
  padding: 18px;
}

.product-card h3 {
  margin: 0 0 8px;
  font-size: 20px;
  line-height: 1.25;
}

.product-card p {
  margin: 0;
}

.product-catalog-layout {
  display: grid;
  grid-template-columns: 270px minmax(0, 1fr);
  gap: 24px;
  align-items: start;
}

.category-panel {
  position: sticky;
  top: 96px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: var(--shadow);
}

.category-panel__head {
  border-bottom: 1px solid var(--line);
  padding: 18px;
}

.category-panel__head strong {
  display: block;
  font-size: 18px;
  line-height: 1.25;
}

.category-panel__head span {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 13px;
}

.category-list {
  display: grid;
  gap: 2px;
  padding: 8px;
}

.category-link {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  border-radius: 6px;
  padding: 12px 10px;
  color: var(--muted);
  font-weight: 700;
}

.category-link strong {
  overflow: hidden;
  color: var(--text);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.category-link span {
  min-width: 30px;
  border-radius: 999px;
  background: var(--surface);
  padding: 2px 7px;
  text-align: center;
  font-size: 12px;
}

.category-link.is-active,
.category-link:hover {
  background: #e6f3f0;
  color: var(--brand);
}

.category-link.is-active strong,
.category-link:hover strong {
  color: var(--brand);
}

.product-catalog-panel {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: var(--shadow);
}

.active-category {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 260px;
  gap: 22px;
  align-items: stretch;
  border-bottom: 1px solid var(--line);
  background: #fbfcfb;
}

.active-category__copy {
  padding: 24px;
}

.active-category__copy h2 {
  margin: 0 0 8px;
  font-size: 32px;
  line-height: 1.1;
}

.active-category__description,
.active-category__description p {
  color: var(--muted);
}

.active-category__description p:last-child {
  margin-bottom: 0;
}

.active-category__image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.product-list {
  padding: 6px 22px 22px;
}

.product-row {
  display: grid;
  grid-template-columns: 168px minmax(0, 1fr) 172px;
  gap: 18px;
  align-items: center;
  border-bottom: 1px solid var(--line);
  padding: 18px 0;
}

.product-row:last-child {
  border-bottom: 0;
}

.product-row__image {
  display: grid;
  aspect-ratio: 1 / 1;
  place-items: center;
  overflow: hidden;
  border-radius: 6px;
  background: #fff;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
  padding: 8px;
  text-align: center;
}

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

.product-row__copy h3 {
  margin: 0 0 6px;
  font-size: 21px;
  line-height: 1.2;
}

.product-row__copy p {
  margin-bottom: 10px;
  color: var(--muted);
  font-size: 14px;
}

.product-row__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.product-row__tags span {
  border-radius: 5px;
  background: var(--surface);
  padding: 4px 7px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.product-row__specs {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: 13px;
}

.product-row__specs strong {
  color: var(--text);
}

.pagination {
  border-top: 1px solid var(--line);
  padding: 18px 22px 22px;
}

.pagination .nav-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.page-numbers {
  display: inline-flex;
  min-width: 38px;
  min-height: 38px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
  padding: 7px 11px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 800;
  line-height: 1;
}

.page-numbers:hover,
.page-numbers.current {
  border-color: var(--brand);
  background: var(--brand);
  color: #fff;
}

.page-numbers.next,
.page-numbers.prev {
  min-width: auto;
  padding-right: 14px;
  padding-left: 14px;
}

.screen-reader-text {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(1px, 1px, 1px, 1px);
  word-wrap: normal;
}

.use-path-gallery {
  --use-path-card-width: 330px;
  --use-path-card-height: 430px;
  --use-path-gap: 16px;
  --use-path-focus-image-scale: 1.045;
  --use-path-focus-transition: 0.42s;
  position: relative;
  overflow: hidden;
  border: 0;
  border-radius: 8px;
  background: #fff;
  box-shadow: var(--shadow);
}

.use-path-gallery__track {
  position: relative;
  display: flex;
  gap: var(--use-path-gap);
  padding: 18px 44px;
  transform: translateX(0);
  transition: transform 0.55s cubic-bezier(0.22, 0.61, 0.36, 1);
}

.use-path-card {
  position: relative;
  flex: 0 0 min(var(--use-path-card-width), 78vw);
  min-height: var(--use-path-card-height);
  overflow: hidden;
  border: 0;
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(16, 24, 25, 0), rgba(16, 24, 25, 0.9)),
    var(--image) center / cover no-repeat,
    #1c2627;
  color: #fff;
  isolation: isolate;
  transition:
    box-shadow var(--use-path-focus-transition) ease;
}

.use-path-card::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background:
    linear-gradient(180deg, rgba(16, 24, 25, 0), rgba(16, 24, 25, 0.9)),
    var(--image) center / cover no-repeat;
  opacity: 0.78;
  transform: scale(1);
  transform-origin: center;
  transition: opacity var(--use-path-focus-transition) ease, transform var(--use-path-focus-transition) ease;
}

.use-path-card:hover {
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.18);
}

.use-path-card:hover::before {
  opacity: 0.9;
  transform: scale(var(--use-path-focus-image-scale));
}

.use-path-card__body {
  position: relative;
  z-index: 2;
  display: grid;
  height: 100%;
  align-content: end;
  padding: 24px;
}

.use-path-card .eyebrow {
  color: rgba(255, 255, 255, 0.76);
}

.use-path-card p {
  color: rgba(255, 255, 255, 0.82);
}

.use-path-card__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transition: max-height 0.34s ease, opacity 0.34s ease, margin-top 0.34s ease;
}

.use-path-card:hover .use-path-card__tags {
  max-height: 90px;
  margin-top: 14px;
  opacity: 1;
}

.use-path-card__tags span {
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  padding: 5px 8px;
  color: #fff;
  font-size: 12px;
  font-weight: 800;
}

.use-path-card__action {
  display: inline-flex;
  width: fit-content;
  min-height: 36px;
  align-items: center;
  margin-top: 18px;
  border-radius: 6px;
  background: var(--accent);
  padding: 7px 11px;
  color: #fff;
  font-size: 13px;
  font-weight: 800;
}

.use-path-gallery__button {
  position: absolute;
  top: 50%;
  z-index: 5;
  display: inline-grid;
  width: 44px;
  height: 44px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  color: var(--brand);
  cursor: pointer;
  box-shadow: var(--shadow);
  transform: translateY(-50%);
}

.use-path-gallery__button::before {
  content: "";
  display: block;
  width: 10px;
  height: 10px;
  border-top: 3px solid currentColor;
  border-right: 3px solid currentColor;
}

.use-path-gallery__button[data-direction="-1"] {
  left: 18px;
}

.use-path-gallery__button[data-direction="-1"]::before {
  transform: translateX(2px) rotate(-135deg);
}

.use-path-gallery__button[data-direction="1"] {
  right: 18px;
}

.use-path-gallery__button[data-direction="1"]::before {
  transform: translateX(-2px) rotate(45deg);
}

.use-path-gallery__button:disabled {
  cursor: not-allowed;
  opacity: 0.42;
}

.use-path-gallery__dots {
  display: flex;
  gap: 8px;
  justify-content: center;
  border-top: 1px solid var(--line);
  background: #fff;
  padding: 14px 18px;
}

.use-path-gallery__dot {
  width: 10px;
  height: 10px;
  border: 0;
  border-radius: 999px;
  background: #cdd8d3;
  cursor: pointer;
  padding: 0;
  transition: width 0.25s ease, background 0.25s ease;
}

.use-path-gallery__dot.is-active {
  width: 28px;
  background: var(--accent);
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1fr);
  gap: 42px;
}

.feature-list p {
  margin: 0 0 14px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 24px;
  color: var(--muted);
  font-size: 14px;
}

.product-detail__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.8fr);
  gap: 42px;
  align-items: start;
}

.product-gallery__main {
  display: grid;
  min-height: 420px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  color: var(--muted);
  font-weight: 800;
}

.product-gallery__main img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 8px;
}

.product-gallery__thumbs {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(90px, 1fr));
  gap: 10px;
  margin-top: 12px;
}

.product-gallery__thumbs img {
  aspect-ratio: 1;
  width: 100%;
  object-fit: cover;
  border: 1px solid var(--line);
  border-radius: 6px;
}

.product-summary {
  position: sticky;
  top: 96px;
}

.product-tabs {
  display: grid;
  gap: 28px;
  margin-top: 48px;
}

.spec-table {
  display: grid;
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
}

.spec-table div {
  display: grid;
  grid-template-columns: 180px 1fr;
  border-bottom: 1px solid var(--line);
}

.spec-table div:last-child {
  border-bottom: 0;
}

.spec-table dt,
.spec-table dd {
  margin: 0;
  padding: 14px 16px;
}

.spec-table dt {
  background: var(--surface);
  font-weight: 800;
}

.post-list {
  display: grid;
  gap: 18px;
}

.content-card {
  padding: 22px;
}

.entry-content a {
  color: var(--brand);
  text-decoration: underline;
}

.site-footer {
  padding: 48px 0 24px;
  background: #172026;
  color: #fff;
}

.site-footer p,
.site-footer a {
  color: rgba(255, 255, 255, 0.76);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 32px;
}

.footer-bottom {
  margin-top: 28px;
  padding-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.16);
}

@media (max-width: 820px) {
  .site-header .container {
    width: min(100% - 32px, 1180px);
  }

  .site-header__inner {
    min-height: 64px;
  }

  .brand {
    font-size: 18px;
  }

  .nav-toggle {
    display: inline-flex;
    min-height: 38px;
    align-items: center;
    border: 1px solid var(--line);
    border-radius: 6px;
    background: #fff;
    padding: 8px 12px;
    font-weight: 700;
  }

  .primary-nav {
    display: none;
    position: absolute;
    top: 64px;
    left: 0;
    width: 100%;
    border-bottom: 1px solid var(--line);
    background: #fff;
    padding: 14px 16px;
  }

  .primary-nav.is-open {
    display: block;
  }

  .primary-nav ul {
    align-items: flex-start;
    flex-direction: column;
    gap: 12px;
  }

  .primary-nav a {
    font-size: 16px;
  }

  .hero {
    min-height: 460px;
  }

  .section {
    padding: 48px 0;
  }

  .split,
  .product-catalog-layout,
  .active-category,
  .product-row,
  .section-heading-with-action,
  .product-detail__grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .category-panel {
    position: static;
  }

  .use-path-gallery__track {
    padding-inline: 18px;
  }

  .use-path-gallery__button {
    top: auto;
    bottom: 56px;
    transform: none;
  }

  .category-list {
    display: flex;
    overflow-x: auto;
  }

  .category-link {
    min-width: 190px;
  }

  .active-category__image img {
    aspect-ratio: 16 / 9;
    height: auto;
  }

  .product-row__image {
    aspect-ratio: 1 / 1;
  }

  .product-summary {
    position: static;
  }

  .spec-table div {
    grid-template-columns: 1fr;
  }
}
