.products-page .content-hero,
.products-page .content-hero-grid {
  min-height: 620px;
}

.products-page .content-hero-copy {
  width: min(750px, 68%);
  padding: 108px 0 64px;
}

.products-page .content-hero h1 {
  width: auto;
  font-size: clamp(38px, 3.8vw, 64px);
  white-space: normal;
  text-wrap: balance;
}

.products-page main [id] {
  scroll-margin-top: 174px;
}

.catalog-subnav {
  position: sticky;
  z-index: 8;
  top: 84px;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, .97);
  backdrop-filter: blur(16px);
}

.catalog-subnav-scroll {
  display: flex;
  align-items: center;
  gap: clamp(24px, 2.5vw, 40px);
  min-height: 66px;
  overflow-x: auto;
  scrollbar-width: thin;
  scrollbar-color: #cad8e4 transparent;
}

.catalog-subnav a {
  position: relative;
  flex: 0 0 auto;
  padding-block: 22px 20px;
  color: #53677b;
  font-size: 14px;
  font-weight: 650;
  white-space: nowrap;
  text-decoration: none;
  transition: color .2s ease;
}

.catalog-subnav a::after {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--blue-500);
  content: "";
  opacity: 0;
}

.catalog-subnav a:hover,
.catalog-subnav a:focus-visible,
.catalog-subnav a[aria-current="location"] {
  color: #127bd1;
}

.catalog-subnav a:hover::after,
.catalog-subnav a:focus-visible::after,
.catalog-subnav a[aria-current="location"]::after {
  opacity: 1;
}

.catalog-subnav a:focus-visible {
  outline: 2px solid var(--blue-500);
  outline-offset: -5px;
}

.catalog-subnav .catalog-subnav-cross {
  margin-left: auto;
  padding-left: 26px;
  color: #127bd1;
}

.catalog-subnav-cross::before {
  position: absolute;
  content: "";
  left: 0;
  top: 23px;
  bottom: 22px;
  width: 1px;
  background: var(--line);
}

.catalog-subnav-cross span { margin-left: 8px; }

.products-page .product-category-links {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-top: 42px;
  border-top: 1px solid rgba(115, 180, 227, .24);
}

.products-page .product-category-links a {
  display: block;
  padding: 28px 28px 0 0;
  color: inherit;
  text-decoration: none;
}

.products-page .product-category-links span {
  display: block;
  margin-bottom: 15px;
  color: var(--blue-500);
  font-size: 14px;
  letter-spacing: .08em;
}

.products-page .product-category-links strong {
  display: block;
  font-size: 21px;
  line-height: 1.5;
}

.products-page .product-category-links p {
  margin: 13px 0 0;
  color: rgba(217, 233, 245, .78);
  font-size: 15px;
  line-height: 1.85;
}

.products-page .product-register {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: clamp(32px, 5vw, 88px);
  margin-top: 48px;
}

.products-page .product-register article {
  min-width: 0;
  padding: 30px 0 34px;
  border-top: 1px solid var(--line);
}

.products-page .product-register h3 {
  margin: 0;
  font-size: clamp(20px, 1.65vw, 25px);
  line-height: 1.55;
  overflow-wrap: anywhere;
}

.products-page .product-register h3 a {
  color: var(--ink);
  text-decoration: none;
  text-underline-offset: 5px;
}

.products-page .product-register h3 a:hover,
.products-page .product-category-links a:hover strong {
  color: var(--blue-500);
  text-decoration: underline;
}

.products-page .product-register a:focus-visible,
.products-page .product-category-links a:focus-visible {
  outline: 2px solid var(--blue-500);
  outline-offset: 6px;
}

.products-page .product-register p {
  margin: 12px 0 0;
  color: var(--ink-soft);
  font-size: 16px;
  line-height: 1.85;
}

.products-page .product-register .product-client {
  margin: 14px 0 19px;
  color: var(--blue-500);
  font-size: 14px;
  line-height: 1.7;
}

.products-page .product-register p strong {
  color: var(--ink);
  font-weight: 600;
}

.products-page .product-directory-section {
  scroll-margin-top: 174px;
}

@media (max-width: 1040px) {
  .products-page .content-hero-copy { width: 80%; }
  .products-page .product-category-links {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    row-gap: 28px;
  }
}

@media (max-width: 720px) {
  .products-page .content-hero,
  .products-page .content-hero-grid { min-height: 0; }
  .products-page .content-hero-grid { padding-top: 72px; }
  .products-page .content-hero-copy {
    display: block;
    width: 100%;
    min-height: 0;
    padding: 115px 0 52px;
  }
  .products-page .content-hero h1 { font-size: clamp(27px, 7.6vw, 38px); line-height: 1.35; }
  .products-page .content-hero::before {
    background: linear-gradient(180deg, rgba(4,17,30,.4), rgba(4,17,30,.85) 42%, #04111e 95%);
  }
  .products-page main [id],
  .products-page .product-directory-section { scroll-margin-top: 154px; }
  .catalog-subnav { top: 72px; }
  .catalog-subnav-scroll { min-height: 58px; gap: 26px; }
  .catalog-subnav a { padding-block: 19px 17px; font-size: 13px; }
  .catalog-subnav .catalog-subnav-cross { padding-left: 20px; }
  .catalog-subnav-cross::before { top: 20px; bottom: 19px; }
}

@media (prefers-reduced-motion: reduce) {
  .catalog-subnav a { transition: none; }
}

@media (max-width: 680px) {
  .products-page .product-category-links {
    grid-template-columns: 1fr;
    margin-top: 30px;
    row-gap: 0;
  }

  .products-page .product-category-links a {
    padding: 22px 0;
    border-bottom: 1px solid rgba(115, 180, 227, .24);
  }

  .products-page .product-category-links span {
    margin-bottom: 6px;
  }

  .products-page .product-register {
    grid-template-columns: 1fr;
    margin-top: 32px;
  }

  .products-page .product-register article {
    padding: 25px 0 28px;
  }

  .products-page .product-register p {
    font-size: 15px;
  }
}
