:root {
  --ink: #15202b;
  --muted: #667085;
  --paper: #f7f8fa;
  --panel: #ffffff;
  --line: #d9e0e8;
  --ice: #d8eef7;
  --blue: #1264a3;
  --red: #c73535;
  --gold: #d6a22b;
  --green: #2f855a;
  --shadow: 0 18px 48px rgba(21, 32, 43, 0.16);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

a {
  color: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 14px clamp(18px, 4vw, 56px);
  background: rgba(247, 248, 250, 0.92);
  border-bottom: 1px solid rgba(217, 224, 232, 0.8);
  backdrop-filter: blur(16px);
}

.brand-lockup {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  min-width: 210px;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  color: #fff;
  background: var(--ink);
  border: 3px solid var(--red);
  font-weight: 900;
}

.brand-lockup strong,
.brand-lockup small {
  display: block;
}

.brand-lockup small {
  margin-top: 1px;
  color: var(--muted);
  font-size: 0.78rem;
}

nav {
  display: flex;
  align-items: center;
  gap: clamp(10px, 2vw, 22px);
  font-weight: 750;
  font-size: 0.94rem;
}

nav a {
  text-decoration: none;
  color: #263544;
}

.nav-button,
.primary-action,
.secondary-action,
.form-actions button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 18px;
  border: 0;
  border-radius: 6px;
  font: inherit;
  font-weight: 800;
  text-decoration: none;
  cursor: pointer;
}

.nav-button,
.primary-action,
.form-actions button:first-child {
  color: #fff;
  background: var(--red);
}

.secondary-action,
.form-actions button:last-child {
  color: var(--ink);
  background: var(--ice);
}

.hero {
  position: relative;
  min-height: calc(100vh - 72px);
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-items: end;
  overflow: hidden;
  background: #101820;
}

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

.hero-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(7, 12, 18, 0.58), rgba(7, 12, 18, 0.1) 45%, rgba(7, 12, 18, 0.76)),
    linear-gradient(0deg, rgba(7, 12, 18, 0.82), transparent 52%);
}

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 3;
  pointer-events: none;
}

.hero-copy {
  position: relative;
  z-index: 2;
  max-width: 720px;
  padding: clamp(88px, 14vh, 148px) clamp(20px, 5vw, 72px) 9vh;
  color: #fff;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--red);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

.hero-copy .eyebrow {
  color: #ffcd73;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 14px;
  font-size: clamp(4.25rem, 14vw, 10rem);
  line-height: 0.86;
  letter-spacing: 0;
}

.hero-copy p:not(.eyebrow) {
  max-width: 620px;
  font-size: clamp(1.05rem, 2vw, 1.35rem);
  line-height: 1.55;
}

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

.hotspot {
  position: absolute;
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border: 2px solid rgba(255, 255, 255, 0.82);
  border-radius: 999px;
  background: rgba(199, 53, 53, 0.92);
  box-shadow: 0 0 0 8px rgba(199, 53, 53, 0.22);
  cursor: pointer;
  pointer-events: auto;
  transform: translate(-50%, -50%);
}

.hotspot span {
  width: 9px;
  height: 9px;
  border-radius: inherit;
  background: #fff;
}

.hotspot-chain {
  left: 33.4%;
  top: 45.8%;
}

.hotspot-door {
  left: 72.5%;
  top: 14%;
}

.hotspot-tag {
  left: 24.1%;
  top: 54.2%;
}

.flyout {
  position: absolute;
  width: min(300px, 82vw);
  padding: 12px;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid rgba(217, 224, 232, 0.9);
  border-radius: 8px;
  box-shadow: var(--shadow);
  opacity: 0;
  transform: translateY(10px);
  pointer-events: none;
  transition: opacity 180ms ease, transform 180ms ease;
}

.flyout.active,
.hotspot:hover + .flyout,
.hotspot:focus-visible + .flyout {
  opacity: 1;
  transform: translateY(0);
}

.flyout h3 {
  margin: 12px 4px 5px;
}

.flyout p {
  margin: 0 4px 4px;
  color: var(--muted);
  line-height: 1.45;
}

.flyout-image {
  display: block;
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #eef2f6;
}

.flyout-chain {
  left: 36%;
  top: 29%;
}

.flyout-door {
  left: 62%;
  top: 22%;
}

.flyout-tag {
  left: 27%;
  top: 58%;
}

.mini-product,
.product-visual {
  position: relative;
  display: grid;
  place-items: center;
  color: #fff;
  font-weight: 950;
  overflow: hidden;
}

.mini-product {
  width: 76px;
  height: 76px;
}

.chain-preview,
.chain-card {
  border-radius: 999px;
  background: radial-gradient(circle at 35% 35%, #ffffff 0 10%, var(--gold) 11% 26%, #7a5010 27% 100%);
  color: #17212b;
}

.door-preview,
.door-card {
  border-radius: 8px;
  background: linear-gradient(145deg, var(--blue), #073a61);
}

.tag-preview,
.tag-card {
  border-radius: 12px 12px 28px 28px;
  background: linear-gradient(145deg, var(--green), #144f39);
}

.tag-preview::before,
.tag-card::before {
  content: "";
  width: 22%;
  aspect-ratio: 1;
  border-radius: 999px;
  background: #f7f8fa;
}

.intro-band {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line);
}

.intro-band div {
  min-height: 132px;
  padding: 26px clamp(20px, 4vw, 48px);
  background: #fff;
}

.intro-band strong,
.intro-band span {
  display: block;
}

.intro-band strong {
  margin-bottom: 8px;
  font-size: 1.08rem;
}

.intro-band span {
  color: var(--muted);
  line-height: 1.45;
}

.catalog,
.contact-sheet {
  padding: clamp(58px, 9vw, 112px) clamp(18px, 5vw, 72px);
}

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

.section-heading h2 {
  margin-bottom: 0;
  font-size: clamp(2rem, 4vw, 4rem);
  line-height: 1;
  letter-spacing: 0;
}

.catalog-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 22px;
}

.filter-button {
  min-height: 38px;
  padding: 0 14px;
  color: var(--ink);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 999px;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}

.filter-button.active {
  color: #fff;
  background: var(--blue);
  border-color: var(--blue);
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(210px, 1fr));
  gap: 14px;
}

.product-card {
  display: grid;
  grid-template-rows: auto 1fr;
  min-height: 410px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
}

.product-card.hidden {
  display: none;
}

.product-visual {
  width: 100%;
  height: 160px;
  font-size: 2rem;
}

.product-image {
  display: block;
  width: 100%;
  height: 160px;
  object-fit: cover;
  background: #eef2f6;
  border-bottom: 1px solid var(--line);
}

.product-gallery {
  background: #eef2f6;
  border-bottom: 1px solid var(--line);
}

.product-gallery .product-image {
  border-bottom: 0;
}

.gallery-controls {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) 34px;
  align-items: center;
  gap: 8px;
  min-height: 52px;
  padding: 8px;
  background: #fff;
  border-top: 1px solid var(--line);
}

.gallery-arrow,
.gallery-thumb {
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  background: #fff;
  cursor: pointer;
}

.gallery-arrow {
  width: 34px;
  height: 34px;
  border-radius: 999px;
  color: var(--ink);
  font-size: 1.4rem;
  line-height: 1;
}

.gallery-arrow:disabled {
  opacity: 0.35;
  cursor: default;
}

.gallery-thumbs {
  display: flex;
  gap: 6px;
  min-width: 0;
  overflow-x: auto;
  scrollbar-width: thin;
}

.gallery-thumb {
  flex: 0 0 42px;
  width: 42px;
  height: 34px;
  padding: 0;
  border-radius: 5px;
  overflow: hidden;
}

.gallery-thumb.active {
  border-color: var(--red);
  box-shadow: 0 0 0 2px rgba(199, 53, 53, 0.16);
}

.gallery-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.product-card > div:last-child {
  padding: 18px;
}

.product-card h3 {
  margin-bottom: 8px;
  font-size: 1.35rem;
}

.product-card p,
.product-card dd {
  color: var(--muted);
  line-height: 1.45;
}

.product-card dl {
  margin: 18px 0 0;
}

.product-card dt {
  margin-bottom: 4px;
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.product-card dd {
  margin: 0;
}

.page-listing {
  min-height: calc(100vh - 128px);
}

.page-grid {
  display: grid;
  gap: 14px;
  max-width: 920px;
}

.page-card {
  padding: clamp(20px, 4vw, 34px);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.page-card h2 {
  margin-bottom: 10px;
  font-size: clamp(1.4rem, 3vw, 2.4rem);
  line-height: 1.08;
}

.page-card p {
  color: var(--muted);
  line-height: 1.55;
}

.page-body {
  margin-top: 18px;
}

.key-card {
  background: linear-gradient(145deg, #343a46, #151a22);
}

.key-card::before {
  content: "";
  width: 72px;
  height: 72px;
  border: 13px solid #f7f8fa;
  border-radius: 999px;
}

.key-card::after {
  content: "";
  position: absolute;
  width: 84px;
  height: 26px;
  right: 34px;
  bottom: 46px;
  background: var(--red);
  border-radius: 6px;
}

.trophy-card {
  background: linear-gradient(145deg, #f2c45b, #a36e12);
}

.trophy-card::before {
  content: "";
  width: 80px;
  height: 96px;
  background: #fff8db;
  clip-path: polygon(17% 0, 83% 0, 70% 52%, 59% 52%, 59% 76%, 79% 76%, 79% 100%, 21% 100%, 21% 76%, 41% 76%, 41% 52%, 30% 52%);
}

.contact-sheet {
  background: #fff;
}

.sheet-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 26px;
  align-items: start;
}

.quote-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  padding: 22px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 8px;
}

label {
  display: grid;
  gap: 7px;
  color: #2e3b48;
  font-weight: 800;
}

input,
select,
textarea {
  width: 100%;
  min-height: 44px;
  padding: 10px 12px;
  color: var(--ink);
  background: #fff;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  font: inherit;
}

textarea {
  resize: vertical;
}

.wide-field,
.form-actions,
.form-status {
  grid-column: 1 / -1;
}

.form-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.form-status {
  min-height: 24px;
  margin: 0;
  color: var(--muted);
  font-weight: 800;
  line-height: 1.4;
}

.form-status.success {
  color: var(--green);
}

.form-status.error {
  color: var(--red);
}

.order-notes {
  padding: 22px;
  color: #fff;
  background: var(--ink);
  border-radius: 8px;
}

.order-notes h3 {
  margin-bottom: 12px;
}

.order-notes ul {
  display: grid;
  gap: 10px;
  margin: 0 0 22px;
  padding-left: 20px;
}

.order-notes li {
  color: #dbe4ec;
  line-height: 1.4;
}

.order-notes a {
  color: #ffcd73;
  font-weight: 850;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 24px clamp(18px, 5vw, 72px);
  color: #dbe4ec;
  background: #101820;
}

@media (max-width: 1160px) {
  .product-grid {
    grid-template-columns: repeat(2, minmax(240px, 1fr));
  }

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

@media (max-width: 760px) {
  .site-header {
    position: static;
    align-items: flex-start;
    flex-direction: column;
  }

  nav {
    width: 100%;
    justify-content: space-between;
    gap: 8px;
    font-size: 0.86rem;
  }

  .nav-button {
    min-height: 38px;
    padding-inline: 10px;
  }

  .hero {
    min-height: 780px;
  }

  .hero-media img {
    object-position: 42% center;
  }

  .hero-copy {
    padding-top: 92px;
  }

  h1 {
    font-size: 4.7rem;
  }

  .hotspot,
  .flyout {
    display: none;
  }

  .intro-band,
  .quote-form,
  .product-grid {
    grid-template-columns: 1fr;
  }

  .product-card {
    min-height: auto;
  }

  .site-footer {
    flex-direction: column;
  }
}

@media print {
  .site-header,
  .hero,
  .intro-band,
  .catalog,
  .site-footer,
  .form-actions {
    display: none;
  }

  body,
  .contact-sheet {
    background: #fff;
  }

  .contact-sheet {
    padding: 0;
  }

  .sheet-layout,
  .quote-form {
    display: block;
  }

  .quote-form,
  .order-notes {
    color: #000;
    background: #fff;
    border: 1px solid #999;
  }

  label {
    margin-bottom: 14px;
  }
}
