:root {
  color-scheme: light;
  --ink: #111827;
  --muted: #5b6472;
  --line: #d7dde5;
  --paper: #f6f8fb;
  --white: #ffffff;
  --green: #147a64;
  --blue: #1d4f91;
  --gold: #bd8b2c;
  --shadow: 0 20px 55px rgba(17, 24, 39, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  color: var(--ink);
  background: var(--white);
  line-height: 1.65;
}

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

.site-header {
  position: fixed;
  z-index: 20;
  top: 0;
  left: 0;
  right: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 72px;
  padding: 0 clamp(20px, 5vw, 72px);
  color: var(--white);
  background: linear-gradient(180deg, rgba(13, 20, 31, 0.78), rgba(13, 20, 31, 0));
}

.brand,
.nav {
  display: flex;
  align-items: center;
}

.brand {
  gap: 12px;
  font-weight: 800;
  letter-spacing: 0;
}

.brand-logo {
  display: block;
  width: 42px;
  height: 42px;
  flex: 0 0 auto;
  border-radius: 9px;
}

.nav {
  gap: clamp(16px, 3vw, 36px);
  font-size: 15px;
}

.nav a {
  opacity: 0.9;
}

.nav a:hover {
  opacity: 1;
}

.catalog-body .site-header {
  background: rgba(13, 20, 31, 0.96);
  box-shadow: 0 12px 30px rgba(17, 24, 39, 0.18);
}

.catalog-body .nav {
  gap: 10px;
}

.catalog-body .nav a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 0 16px;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
  color: var(--white);
  font-weight: 800;
  opacity: 1;
}

.catalog-body .nav a:hover {
  border-color: var(--gold);
  background: var(--gold);
  color: #171717;
}

.hero {
  position: relative;
  min-height: 92vh;
  display: grid;
  align-items: center;
  overflow: hidden;
  color: var(--white);
}

.hero-media,
.hero-overlay {
  position: absolute;
  inset: 0;
}

.hero-media {
  background-image: url("assets/hero-topgallop.png");
  background-size: cover;
  background-position: center right;
  transform: scale(1.02);
}

.hero-overlay {
  background:
    linear-gradient(90deg, rgba(11, 18, 30, 0.9) 0%, rgba(11, 18, 30, 0.72) 34%, rgba(11, 18, 30, 0.28) 68%, rgba(11, 18, 30, 0.14) 100%),
    linear-gradient(180deg, rgba(11, 18, 30, 0.18), rgba(11, 18, 30, 0.72));
}

.hero-content {
  position: relative;
  z-index: 2;
  width: min(720px, calc(100% - 40px));
  margin-left: clamp(20px, 7vw, 96px);
  padding-top: 60px;
}

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

h1,
h2,
h3,
p {
  overflow-wrap: anywhere;
}

h1 {
  max-width: 680px;
  margin: 0;
  font-size: clamp(44px, 7vw, 84px);
  line-height: 1.04;
  letter-spacing: 0;
}

h2 {
  margin: 0;
  font-size: clamp(30px, 4vw, 48px);
  line-height: 1.16;
  letter-spacing: 0;
}

h3 {
  margin: 18px 0 10px;
  font-size: 22px;
}

.hero-copy {
  max-width: 560px;
  margin: 26px 0 0;
  color: rgba(255, 255, 255, 0.86);
  font-size: clamp(18px, 2vw, 22px);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 34px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 22px;
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 8px;
  font-weight: 800;
}

.button.primary {
  border-color: var(--gold);
  background: var(--gold);
  color: #171717;
}

.button.secondary {
  color: var(--white);
  background: rgba(255, 255, 255, 0.1);
}

.section {
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
  padding: clamp(72px, 9vw, 118px) 0;
}

.intro {
  display: grid;
  grid-template-columns: 0.95fr 1fr;
  gap: 48px;
  align-items: start;
}

.about-copy {
  display: grid;
  gap: 18px;
  margin-top: 4px;
}

.about-copy p {
  margin: 0;
  color: var(--muted);
  font-size: 18px;
}

.about-points {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  padding-top: 0;
}

.about-points div {
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
}

.about-points strong {
  display: block;
  margin-bottom: 8px;
  color: var(--ink);
  font-size: 18px;
}

.about-points span {
  display: block;
  color: var(--muted);
}

.section-heading {
  max-width: 760px;
}

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

.cards {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 38px;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin-top: 38px;
}

.product {
  display: block;
  min-height: 190px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(246, 248, 251, 0.92)),
    radial-gradient(circle at 86% 12%, rgba(189, 139, 44, 0.18), transparent 30%);
}

.product:hover {
  border-color: rgba(29, 79, 145, 0.42);
  box-shadow: 0 14px 36px rgba(17, 24, 39, 0.1);
  transform: translateY(-2px);
}

.product h3 {
  margin-top: 0;
}

.product p {
  margin: 0;
  color: var(--muted);
}

.product-action {
  display: inline-flex;
  margin-top: 18px;
  color: var(--blue);
  font-weight: 850;
}

.catalogue {
  padding-top: 0;
}

.catalogue-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-top: 38px;
}

.catalogue-item {
  overflow: hidden;
  margin: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  box-shadow: 0 10px 28px rgba(17, 24, 39, 0.06);
}

.catalogue-item img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  background: var(--paper);
}

.catalogue-item figcaption {
  display: grid;
  gap: 6px;
  min-height: 118px;
  padding: 20px;
}

.catalogue-item strong {
  color: var(--blue);
  font-size: 20px;
}

.catalogue-item span {
  color: var(--muted);
}

.card {
  min-height: 260px;
  padding: 30px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  box-shadow: 0 10px 28px rgba(17, 24, 39, 0.05);
}

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

.icon {
  display: grid;
  width: 52px;
  height: 52px;
  place-items: center;
  border-radius: 8px;
  background: #e8f3f0;
  color: var(--green);
  font-weight: 900;
}

.band {
  background: var(--paper);
}

.metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  margin-top: 42px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--line);
  box-shadow: var(--shadow);
}

.metrics div {
  min-height: 190px;
  padding: 34px;
  background: var(--white);
}

.metrics strong {
  display: block;
  margin-bottom: 14px;
  color: var(--blue);
  font-size: 28px;
}

.metrics span {
  color: var(--muted);
}

.split {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 52px;
  align-items: start;
}

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

.industry-list span {
  display: flex;
  align-items: center;
  min-height: 58px;
  padding: 0 18px;
  border-left: 4px solid var(--green);
  background: var(--paper);
  font-weight: 750;
}

.contact {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 42px;
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto clamp(64px, 8vw, 96px);
  padding: clamp(38px, 6vw, 62px);
  border-radius: 8px;
  background: #122033;
  color: var(--white);
}

.contact p {
  color: rgba(255, 255, 255, 0.72);
}

address {
  display: grid;
  gap: 12px;
  align-content: center;
  font-style: normal;
  color: rgba(255, 255, 255, 0.84);
}

.footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  padding: 28px clamp(20px, 5vw, 72px);
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 14px;
}

.catalog-body {
  background: var(--paper);
}

.catalog-body .site-header {
  color: var(--ink);
  background: rgba(255, 255, 255, 0.94);
  border-bottom: 1px solid var(--line);
}

.catalog-page {
  padding-top: 72px;
}

.catalog-hero {
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
  padding: clamp(56px, 8vw, 86px) 0 34px;
}

.catalog-hero h1 {
  color: var(--ink);
  font-size: clamp(40px, 6vw, 72px);
}

.catalog-hero p:last-child {
  max-width: 680px;
  margin: 20px 0 0;
  color: var(--muted);
  font-size: 20px;
}

.catalog-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 22px;
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto clamp(64px, 8vw, 96px);
  align-items: start;
}

.catalog-sidebar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: linear-gradient(180deg, #ffffff, #f8fafc);
  box-shadow: 0 16px 38px rgba(17, 24, 39, 0.08);
}

.catalog-sidebar-title {
  flex: 0 0 100%;
  margin: 0 0 4px;
  color: var(--ink);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.catalog-tab {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex: 1 1 170px;
  min-height: 50px;
  padding: 0 12px 0 16px;
  border: 1px solid #dfe5ee;
  border-radius: 8px;
  color: var(--ink);
  background: var(--white);
  font-size: 15px;
  font-weight: 850;
  line-height: 1.2;
  box-shadow: 0 7px 18px rgba(17, 24, 39, 0.04);
  transition: border-color 160ms ease, box-shadow 160ms ease, color 160ms ease, background 160ms ease, transform 160ms ease;
}

.catalog-tab span {
  flex: 1;
}

.catalog-tab::after {
  content: ">";
  display: grid;
  flex: 0 0 auto;
  width: 24px;
  height: 24px;
  place-items: center;
  border-radius: 999px;
  color: var(--blue);
  background: #eef4fb;
  font-size: 14px;
  font-weight: 900;
}

.catalog-tab:hover,
.catalog-tab.active {
  border-color: rgba(20, 122, 100, 0.38);
  background: #edf7f4;
  color: var(--green);
  box-shadow: 0 13px 26px rgba(20, 122, 100, 0.14);
  transform: translateY(-1px);
}

.catalog-tab:hover::after,
.catalog-tab.active::after {
  color: var(--white);
  background: var(--green);
}

.catalog-main {
  min-width: 0;
}

.catalog-title {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
}

.catalog-title h2 {
  font-size: clamp(30px, 4vw, 46px);
}

.catalog-contact {
  border-color: var(--blue);
  color: var(--blue);
  background: var(--white);
  white-space: nowrap;
}

.catalog-note {
  margin: 18px 0 0;
  color: var(--muted);
}

.catalog-sheet-grid {
  display: grid;
  gap: 18px;
  margin-top: 22px;
}

.catalog-sheet {
  overflow: hidden;
  margin: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  box-shadow: 0 12px 34px rgba(17, 24, 39, 0.07);
}

.catalog-sheet img {
  display: block;
  width: 100%;
  height: auto;
  background: var(--white);
}

.catalog-sheet figcaption {
  padding: 14px 18px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 14px;
}

@media (max-width: 820px) {
  .site-header {
    position: absolute;
    min-height: 68px;
  }

  .nav {
    display: none;
  }

  .hero {
    min-height: 820px;
  }

  .hero-media {
    background-position: 65% center;
  }

  .hero-overlay {
    background: linear-gradient(180deg, rgba(11, 18, 30, 0.7) 0%, rgba(11, 18, 30, 0.88) 55%, rgba(11, 18, 30, 0.95) 100%);
  }

  .hero-content {
    margin: 0 auto;
    padding-top: 120px;
  }

  .intro,
  .about-points,
  .cards,
  .catalogue-grid,
  .metrics,
  .split,
  .contact {
    grid-template-columns: 1fr;
  }

  .industry-list {
    grid-template-columns: 1fr;
  }

  .product-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .catalog-page {
    padding-top: 68px;
  }

  .catalog-layout {
    grid-template-columns: 1fr;
  }

  .catalog-tab {
    flex-basis: calc(50% - 6px);
  }

  .catalog-title {
    align-items: start;
    flex-direction: column;
  }
}

@media (max-width: 520px) {
  .brand span:last-child {
    font-size: 15px;
  }

  h1 {
    font-size: 42px;
  }

  .hero-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .button {
    width: 100%;
  }

  .card,
  .product,
  .metrics div,
  .contact {
    padding: 24px;
  }

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

  .catalog-tab {
    flex-basis: 100%;
  }
}
