@import url("https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Space+Grotesk:wght@500;600;700&display=swap");

:root {
  --navy: #172d5a;
  --navy-dark: #0d1e3f;
  --blue: #2798dc;
  --blue-light: #70c8ff;
  --ink: #172238;
  --muted: #667085;
  --line: #d7e4ec;
  --paper: #ffffff;
  --wash: #f3f7fa;
  --orange: #f26922;
  --radius: 18px;
  --shadow: 0 18px 50px rgba(23, 45, 90, 0.1);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: "DM Sans", system-ui, sans-serif;
  line-height: 1.6;
}

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

a {
  color: inherit;
}

.wrap {
  width: min(1120px, calc(100% - 40px));
  margin-inline: auto;
}

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

.catalog-header__inner {
  display: flex;
  min-height: 68px;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
}

.catalog-brand img {
  width: 120px;
  height: 46px;
  object-fit: contain;
}

.catalog-nav {
  display: flex;
  gap: 24px;
}

.catalog-nav a {
  color: var(--navy);
  font-size: 0.9rem;
  font-weight: 700;
  text-decoration: none;
}

.catalog-nav a:hover,
.catalog-nav a:focus-visible {
  color: var(--blue);
}

.catalog-hero {
  padding: 84px 0 62px;
  background:
    radial-gradient(circle at 80% 0, rgba(39, 152, 220, 0.18), transparent 28rem),
    linear-gradient(135deg, var(--navy-dark), var(--navy));
  color: #fff;
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--blue-light);
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

h1,
h2,
h3 {
  margin: 0;
  font-family: "Space Grotesk", sans-serif;
}

.catalog-hero h1 {
  max-width: 760px;
  font-size: clamp(2.8rem, 6vw, 4.8rem);
  line-height: 0.98;
  letter-spacing: -0.05em;
}

.catalog-hero__copy {
  max-width: 710px;
  margin: 22px 0 0;
  color: #d9e3f2;
  font-size: 1.08rem;
}

.catalog-section {
  padding: 76px 0;
}

.catalog-section--tint {
  background: var(--wash);
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 40px;
  margin-bottom: 30px;
}

.section-heading h2 {
  color: var(--navy);
  font-size: clamp(1.9rem, 4vw, 2.8rem);
  line-height: 1.08;
  letter-spacing: -0.04em;
}

.section-heading > p {
  max-width: 450px;
  margin: 0;
  color: var(--muted);
}

.product-grid {
  display: grid;
  grid-auto-columns: calc((100% - 36px) / 3);
  grid-auto-flow: column;
  gap: 18px;
  overflow-x: auto;
  padding-bottom: 16px;
  scroll-snap-type: inline mandatory;
  overscroll-behavior-inline: contain;
}

.product-card {
  display: flex;
  min-width: 0;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: var(--shadow);
  text-decoration: none;
  transition: transform 180ms ease, border-color 180ms ease;
  scroll-snap-align: start;
}

.product-card:hover {
  transform: translateY(-4px);
  border-color: rgba(39, 152, 220, 0.42);
}

.product-card__image {
  display: grid;
  height: 235px;
  place-items: center;
  overflow: hidden;
  background: var(--wash);
}

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

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

.product-card__body {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 24px;
}

.product-tag {
  margin: 0 0 8px;
  color: var(--blue);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.product-card h2 {
  color: var(--navy);
  font-size: 1.4rem;
}

.product-card__body > p:not(.product-tag) {
  color: var(--muted);
}

.product-card__link {
  margin-top: auto;
  color: var(--blue);
  font-weight: 700;
}

.future-card {
  display: grid;
  min-height: 180px;
  place-items: center;
  padding: 28px;
  border: 1px dashed #a8c4d6;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.55);
  text-align: center;
}

.future-card h3 {
  color: var(--navy);
}

.future-card p {
  max-width: 500px;
  margin: 8px 0 0;
  color: var(--muted);
}

.product-hero {
  padding: 70px 0;
  background: linear-gradient(135deg, var(--navy-dark), var(--navy));
  color: #fff;
}

.product-hero__grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  align-items: center;
  gap: 60px;
}

.product-hero__media {
  display: grid;
  min-height: 360px;
  place-items: center;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.08);
}

.product-hero__media img {
  width: 100%;
  height: 100%;
  max-height: 440px;
  object-fit: cover;
}

.product-hero__media--contain img {
  width: 74%;
  height: 74%;
  object-fit: contain;
}

.product-hero h1 {
  font-size: clamp(2.6rem, 5.5vw, 4.5rem);
  line-height: 0.98;
  letter-spacing: -0.05em;
}

.product-summary {
  margin: 20px 0 0;
  color: #d9e3f2;
  font-size: 1.06rem;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 11px;
  margin-top: 26px;
}

.button {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  padding: 0 18px;
  border: 1px solid rgba(255, 255, 255, 0.32);
  border-radius: 999px;
  color: #fff;
  font-size: 0.88rem;
  font-weight: 700;
  text-decoration: none;
}

.button--primary {
  border-color: var(--blue);
  background: var(--blue);
}

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

.detail-card,
.version-card,
.placeholder-card {
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
}

.detail-card h3,
.version-card h3,
.placeholder-card h3 {
  color: var(--navy);
}

.detail-card p,
.version-card p,
.placeholder-card p {
  margin-bottom: 0;
  color: var(--muted);
}

.version-card a {
  display: inline-block;
  margin-top: 12px;
  color: var(--blue);
  font-weight: 700;
}

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

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

.gallery-card img {
  width: 100%;
  height: 330px;
  object-fit: cover;
  background: var(--wash);
}

.gallery-card--contain img {
  object-fit: contain;
  padding: 28px;
}

.gallery-card figcaption {
  padding: 22px;
}

.gallery-card h2 {
  color: var(--navy);
  font-size: 1.25rem;
}

.gallery-card p {
  margin: 8px 0 0;
  color: var(--muted);
}

.catalog-footer {
  padding: 26px 0;
  background: #081732;
  color: #aebcd1;
  font-size: 0.84rem;
}

.catalog-footer .wrap {
  display: flex;
  justify-content: space-between;
  gap: 20px;
}

@media (max-width: 860px) {
  .catalog-header__inner {
    flex-wrap: wrap;
    gap: 0;
    padding-block: 10px;
  }

  .catalog-nav {
    width: 100%;
    gap: 20px;
    overflow-x: auto;
    padding: 8px 0 2px;
    scrollbar-width: none;
  }

  .catalog-nav::-webkit-scrollbar {
    display: none;
  }

  .catalog-nav a {
    flex: 0 0 auto;
  }

  .detail-grid,
  .version-grid,
  .placeholder-grid {
    grid-template-columns: 1fr;
  }

  .product-grid {
    grid-auto-columns: calc((100% - 18px) / 2);
  }

  .product-hero__grid {
    grid-template-columns: 1fr;
  }

  .section-heading {
    display: block;
  }

  .section-heading > p {
    margin-top: 12px;
  }
}

@media (max-width: 620px) {
  .wrap {
    width: min(100% - 26px, 1120px);
  }

  .catalog-hero,
  .product-hero {
    padding: 56px 0;
  }

  .catalog-section {
    padding: 58px 0;
  }

  .gallery-grid {
    grid-template-columns: 1fr;
  }

  .product-grid {
    grid-auto-columns: min(88%, 340px);
  }

  .gallery-card img {
    height: 260px;
  }

  .product-hero__media {
    min-height: 280px;
  }

  .catalog-footer .wrap {
    flex-direction: column;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}
