
:root {
  --navy: #071f3f;
  --navy-2: #12345f;
  --red: #c9182b;
  --red-dark: #981224;
  --ink: #0d1b2f;
  --muted: #5b6c82;
  --line: #dce4ee;
  --soft: #f3f6fa;
  --white: #ffffff;
  --shadow: 0 22px 60px rgba(7, 31, 63, 0.12);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--white);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.55;
}
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 28px;
  align-items: center;
  padding: 16px clamp(18px, 4vw, 56px);
  background: rgba(255, 255, 255, 0.94);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(16px);
}
.brand img { width: 178px; height: auto; }
.main-nav { display: flex; justify-content: center; gap: 8px; flex-wrap: wrap; }
.main-nav a {
  padding: 9px 12px;
  border-radius: 999px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
}
.main-nav a:hover, .main-nav a.active { color: var(--navy); background: var(--soft); }
.header-cta, .button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 12px 20px;
  border-radius: 999px;
  background: var(--red);
  color: var(--white);
  font-weight: 800;
  border: 1px solid var(--red);
  box-shadow: 0 10px 24px rgba(201, 24, 43, 0.2);
}
.button:hover, .header-cta:hover { background: var(--red-dark); border-color: var(--red-dark); }
.button.secondary {
  color: var(--navy);
  background: var(--white);
  border-color: var(--line);
  box-shadow: none;
}
.button.light {
  color: var(--navy);
  background: var(--white);
  border-color: var(--white);
}
.button.small { min-height: 38px; padding: 8px 14px; font-size: 14px; box-shadow: none; }

.hero {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(360px, 1.05fr);
  gap: clamp(26px, 4vw, 64px);
  align-items: center;
  padding: clamp(42px, 8vw, 96px) clamp(18px, 5vw, 72px);
  background:
    linear-gradient(130deg, rgba(7,31,63,0.04), rgba(201,24,43,0.03) 42%, rgba(255,255,255,0) 70%),
    var(--white);
}
.hero h1 {
  max-width: 780px;
  margin: 0;
  color: var(--navy);
  font-size: clamp(42px, 6vw, 82px);
  line-height: 0.96;
  letter-spacing: 0;
}
.hero p {
  max-width: 620px;
  margin: 24px 0 0;
  color: var(--muted);
  font-size: clamp(18px, 2vw, 22px);
}
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 32px; }
.hero-products {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  transform: rotate(-1deg);
}
.hero-products .product-card:nth-child(2), .hero-products .product-card:nth-child(3) { transform: translateY(22px); }

.section, .page-hero, .content-page, .product-detail {
  padding: clamp(38px, 6vw, 82px) clamp(18px, 5vw, 72px);
}
.section-tint { background: var(--soft); }
.section-heading {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: end;
  margin-bottom: 26px;
}
.section-heading h2, .quote-band h2, .content-page h2 {
  margin: 0;
  color: var(--navy);
  font-size: clamp(28px, 3vw, 44px);
  line-height: 1.05;
}
.section-heading p { max-width: 520px; margin: 0; color: var(--muted); }
.category-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}
.category-tile {
  min-height: 260px;
  position: relative;
  overflow: hidden;
  border-radius: 8px;
  background: var(--navy);
  color: var(--white);
  box-shadow: var(--shadow);
}
.category-tile img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.62;
  filter: saturate(1.05);
  transition: transform 260ms ease;
}
.category-tile:hover img { transform: scale(1.04); }
.category-tile span, .category-tile strong {
  position: absolute;
  left: 20px;
}
.category-tile span {
  right: 20px;
  bottom: 54px;
  font-size: 28px;
  line-height: 1;
  font-weight: 900;
}
.category-tile strong {
  bottom: 22px;
  font-size: 14px;
  letter-spacing: 0;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}
.product-card {
  display: flex;
  flex-direction: column;
  min-height: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  overflow: hidden;
  box-shadow: 0 12px 28px rgba(7, 31, 63, 0.06);
}
.product-media {
  display: block;
  aspect-ratio: 1 / 1;
  background: var(--soft);
  overflow: hidden;
}
.product-media img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 10px;
  transition: transform 240ms ease;
}
.product-card:hover .product-media img { transform: scale(1.03); }
.product-card-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  align-items: flex-start;
  gap: 9px;
  padding: 16px;
}
.product-category {
  margin: 0;
  color: var(--red);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.product-card h3 {
  margin: 0;
  color: var(--navy);
  font-size: 17px;
  line-height: 1.25;
}
.product-price {
  margin: auto 0 0;
  color: var(--ink);
  font-size: 18px;
  font-weight: 900;
}
.product-price.large { margin: 0; font-size: 34px; color: var(--red); }

.quote-band {
  margin: clamp(26px, 5vw, 60px) clamp(18px, 5vw, 72px);
  padding: clamp(30px, 5vw, 58px);
  border-radius: 8px;
  background: var(--navy);
  color: var(--white);
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 20px;
  align-items: center;
}
.quote-band h2 { color: var(--white); }
.quote-band p { max-width: 700px; margin: 8px 0 0; color: rgba(255,255,255,0.78); }

.page-hero {
  background: var(--soft);
  border-bottom: 1px solid var(--line);
}
.page-hero.compact h1 {
  max-width: 940px;
  margin: 0;
  color: var(--navy);
  font-size: clamp(36px, 5vw, 64px);
  line-height: 1;
}
.page-hero.compact p:not(.breadcrumb) {
  max-width: 760px;
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 18px;
}
.breadcrumb {
  margin: 0 0 18px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
}
.breadcrumb a { color: var(--red); }

.catalog-tools {
  display: grid;
  grid-template-columns: minmax(260px, 420px) 1fr;
  gap: 18px;
  align-items: center;
  padding: 24px clamp(18px, 5vw, 72px);
  border-bottom: 1px solid var(--line);
}
.search-label { color: var(--navy); font-weight: 800; }
.search-label input {
  display: block;
  width: 100%;
  margin-top: 8px;
  padding: 13px 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  font: inherit;
}
.filters { display: flex; gap: 10px; flex-wrap: wrap; justify-content: flex-end; }
.filter {
  padding: 10px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--navy);
  background: var(--white);
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}
.filter.active { color: var(--white); background: var(--navy); border-color: var(--navy); }
.empty-state {
  padding: 28px;
  border: 1px dashed var(--line);
  border-radius: 8px;
  color: var(--muted);
  text-align: center;
}

.product-detail-grid {
  display: grid;
  grid-template-columns: minmax(280px, 0.85fr) minmax(320px, 1.15fr);
  gap: clamp(28px, 5vw, 70px);
  align-items: center;
}
.product-detail-media {
  aspect-ratio: 1 / 1;
  border-radius: 8px;
  background: var(--soft);
  border: 1px solid var(--line);
  overflow: hidden;
  box-shadow: var(--shadow);
}
.product-detail-media img { width: 100%; height: 100%; object-fit: contain; padding: 18px; }
.product-detail-copy h1 {
  margin: 8px 0 18px;
  color: var(--navy);
  font-size: clamp(34px, 5vw, 68px);
  line-height: 1;
}
.minimum-note { color: var(--muted); margin: 14px 0 24px; }
.product-detail-copy .button { margin-right: 10px; margin-bottom: 10px; }
.product-copy {
  max-width: 980px;
  color: var(--muted);
}
.product-copy h2 { color: var(--navy); }
.product-copy p {
  margin: 0 0 16px;
  color: var(--muted);
  font-size: 17px;
}
.product-specs {
  display: grid;
  grid-template-columns: minmax(150px, 220px) 1fr;
  gap: 0;
  margin: 28px 0 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  background: var(--white);
}
.product-specs dt,
.product-specs dd {
  margin: 0;
  padding: 13px 16px;
  border-bottom: 1px solid var(--line);
}
.product-specs dt {
  color: var(--navy);
  background: var(--soft);
  font-weight: 900;
}
.product-specs dd { color: var(--muted); }
.product-specs dt:last-of-type,
.product-specs dd:last-of-type { border-bottom: 0; }

.content-page {
  max-width: 980px;
  color: var(--ink);
}
.content-page p, .content-page li { color: var(--muted); }
.content-page a { color: var(--red); font-weight: 800; }
.content-page a.button { color: var(--white); }
.content-page a.button.secondary { color: var(--navy); }
.content-page h1, .content-page h2, .content-page h3 {
  color: var(--navy);
  line-height: 1.1;
}
.contact-panel {
  margin-top: 24px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--soft);
}
.contact-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin-top: 24px;
}
.contact-grid .contact-panel { margin-top: 0; }
.contact-panel-wide { margin-top: 18px; }
.contact-panel address {
  color: var(--muted);
  font-style: normal;
  line-height: 1.7;
}

.site-footer {
  padding: 46px clamp(18px, 5vw, 72px) 26px;
  color: rgba(255,255,255,0.78);
  background: var(--navy);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr repeat(3, 1fr);
  gap: 28px;
}
.footer-logo { width: 170px; padding: 10px; border-radius: 8px; background: var(--white); }
.site-footer h2 {
  margin: 0 0 12px;
  color: var(--white);
  font-size: 16px;
}
.site-footer a {
  display: block;
  margin: 8px 0;
  color: rgba(255,255,255,0.84);
}
.site-footer a:hover { color: var(--white); }
.copyright {
  margin: 34px 0 0;
  padding-top: 18px;
  border-top: 1px solid rgba(255,255,255,0.14);
  font-size: 13px;
}

@media (max-width: 1100px) {
  .product-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .category-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hero { grid-template-columns: 1fr; }
  .hero-products { transform: none; }
}
@media (max-width: 760px) {
  .site-header {
    position: static;
    grid-template-columns: 1fr;
    justify-items: start;
    gap: 12px;
  }
  .main-nav { justify-content: flex-start; }
  .header-cta { width: 100%; }
  .hero-products, .product-grid, .category-grid, .footer-grid, .product-detail-grid, .quote-band, .catalog-tools {
    grid-template-columns: 1fr;
  }
  .contact-grid { grid-template-columns: 1fr; }
  .filters { justify-content: flex-start; }
  .hero-products .product-card:nth-child(2), .hero-products .product-card:nth-child(3) { transform: none; }
  .section-heading { display: block; }
  .quote-band { margin-left: 18px; margin-right: 18px; }
}
