/* HIGOLD — страница каталога гардеробных систем. Использует базовые токены styles.css. */

.wr-page { background: var(--paper); }

/* ---------- Hero ---------- */
.wr-hero {
  background: var(--ink);
  color: #fff;
  position: relative;
  overflow: hidden;
}
.wr-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(115deg, #12161C 0%, #12161C 42%, rgba(34, 62, 110, .58) 100%);
}
.wr-hero .wrap { position: relative; z-index: 2; }
.wr-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr);
  gap: 64px;
  align-items: center;
  padding: 84px 0 72px;
}
.wr-hero h1 {
  margin: 22px 0 18px;
  font-size: clamp(32px, 4.2vw, 54px);
  line-height: 1.05;
  letter-spacing: -.02em;
  font-weight: 800;
}
.wr-hero h1 em { font-style: normal; color: #8FB2E6; }
.wr-slogan {
  margin: 0 0 14px;
  font-size: 17px;
  font-weight: 500;
  color: #E4B771;
}
.wr-lead { font-size: 17px; color: #C3CBD6; max-width: 48ch; margin: 0 0 28px; }
.wr-hero-facts {
  margin-top: 48px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--ink-line);
}
.wr-hero-facts div { padding: 22px 18px 0 0; }
.wr-hero-facts b { display: block; font-size: 30px; font-weight: 700; letter-spacing: -.02em; }
.wr-hero-facts span { color: var(--muted-dark); font-size: 13px; }
.wr-hero-figure { position: relative; }
.wr-hero-figure img {
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 2px;
}
.wr-hero-figure figcaption {
  margin-top: 12px;
  color: var(--muted-dark);
  display: flex;
  justify-content: space-between;
  gap: 16px;
  border-top: 1px solid var(--ink-line);
  padding-top: 10px;
}

/* ---------- Brand row ---------- */
.wr-brands { background: var(--surface); border-bottom: 1px solid var(--line); }
.wr-brands .wrap {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line);
}
.wr-brand {
  background: var(--surface);
  padding: 26px 28px;
}
.wr-brand b { display: block; font-size: 19px; font-weight: 700; letter-spacing: -.01em; }
.wr-brand span { color: var(--muted); font-size: 14px; }
.wr-brand .mono { color: var(--brand-2); display: block; margin-bottom: 8px; }

/* ---------- Series nav ---------- */
.wr-series { padding: var(--s6) 0 var(--s5); }
.wr-series-head { margin-bottom: 32px; }
.wr-series-head h2 {
  margin: 16px 0 0;
  font-size: clamp(26px, 3vw, 38px);
  line-height: 1.1;
  letter-spacing: -.02em;
  font-weight: 700;
}
.wr-series-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; }
.wr-series-card {
  background: var(--surface);
  border: 1px solid var(--line);
  overflow: hidden;
  text-align: left;
  padding: 0;
  cursor: pointer;
  font: inherit;
  color: inherit;
  display: block;
  transition: border-color .2s ease, transform .2s ease;
}
.wr-series-card:hover, .wr-series-card.is-active {
  border-color: var(--brand);
  transform: translateY(-3px);
}
.wr-series-card .media { aspect-ratio: 4 / 5; overflow: hidden; background: #E7EAEE; }
.wr-series-card .media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.wr-series-card:hover .media img { transform: scale(1.04); }
.wr-series-card .body { padding: 18px 18px 20px; }
.wr-series-card h3 { margin: 0 0 6px; font-size: 17px; font-weight: 700; }
.wr-series-card p { margin: 0 0 12px; color: var(--muted); font-size: 13.5px; line-height: 1.45; }
.wr-series-card .cnt { color: var(--brand); }

/* ---------- Filters ---------- */
.wr-catalog { padding: var(--s6) 0 var(--s7); background: var(--surface); border-top: 1px solid var(--line); }
.wr-controls {
  position: sticky;
  top: 76px;
  z-index: 20;
  background: var(--surface);
  border: 1px solid var(--line);
  padding: 18px 20px;
  margin-bottom: 40px;
}
.wr-controls-row { display: grid; grid-template-columns: minmax(0, 1.3fr) repeat(3, minmax(0, 1fr)); gap: 14px; }
.wr-ctl { display: flex; flex-direction: column; gap: 7px; min-width: 0; }
.wr-ctl > span { font-size: 12px; color: var(--muted); font-family: 'IBM Plex Mono', monospace; letter-spacing: .1em; text-transform: uppercase; }
.wr-ctl input, .wr-ctl select {
  font: inherit;
  font-size: 15px;
  padding: 12px 13px;
  border: 1px solid var(--line-strong);
  border-radius: 2px;
  background: var(--paper);
  color: var(--ink);
  width: 100%;
  min-width: 0;
}
.wr-ctl input:focus, .wr-ctl select:focus {
  outline: none;
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(34, 62, 110, .12);
}
.wr-controls-foot {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}
.wr-count { font-size: 14px; color: var(--muted); }
.wr-count b { color: var(--ink); }
.wr-chips { display: flex; gap: 8px; flex-wrap: wrap; }
.wr-chip {
  font-size: 13px;
  padding: 7px 14px;
  border: 1px solid var(--line-strong);
  border-radius: 2px;
  background: transparent;
  color: var(--ink);
  cursor: pointer;
  font-family: inherit;
  transition: background-color .2s ease, color .2s ease, border-color .2s ease;
}
.wr-chip:hover { border-color: var(--brand); color: var(--brand); }
.wr-chip.is-active { background: var(--brand); border-color: var(--brand); color: #fff; }
.wr-reset {
  font-size: 13px;
  color: var(--muted);
  background: none;
  border: 0;
  cursor: pointer;
  text-decoration: underline;
  font-family: inherit;
}
.wr-reset:hover { color: var(--ink); }

/* ---------- Groups ---------- */
.wr-group { margin-bottom: 64px; }
.wr-group-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 40px;
  align-items: end;
  padding-bottom: 20px;
  border-bottom: 2px solid var(--ink);
  margin-bottom: 28px;
}
.wr-group-head h2 {
  margin: 14px 0 0;
  font-size: clamp(24px, 2.8vw, 34px);
  letter-spacing: -.02em;
  font-weight: 700;
}
.wr-group-head p { margin: 0; color: var(--muted); font-size: 14.5px; }
.wr-series-block { margin-bottom: 40px; }
.wr-series-block:last-child { margin-bottom: 0; }
.wr-series-title {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 18px;
  font-size: 15px;
  font-weight: 700;
  color: var(--brand);
  font-family: 'IBM Plex Mono', monospace;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.wr-series-title::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.wr-series-title .n { color: var(--muted); font-weight: 400; }

/* ---------- Product cards ---------- */
.wr-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
}
.wr-card {
  background: var(--paper);
  border: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  transition: border-color .2s ease, transform .2s ease;
  border-radius: 14px;
  overflow: hidden;
}
.wr-card:hover { border-color: var(--brand); transform: translateY(-3px); box-shadow: 0 10px 26px rgba(16, 24, 32, .12); }
.wr-card .media {
  aspect-ratio: 1 / 1;
  background: #fff;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.wr-card .media img { width: 100%; height: 100%; object-fit: contain; padding: 10px; }
.wr-card .body { padding: 16px 18px 20px; display: flex; flex-direction: column; flex: 1; }
.wr-card .top { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; margin-bottom: 8px; }
.wr-card .art { font-family: 'IBM Plex Mono', monospace; font-size: 12px; color: var(--brand); letter-spacing: .06em; }
.wr-card .badge {
  font-size: 10.5px;
  font-family: 'IBM Plex Mono', monospace;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--muted);
  border: 1px solid var(--line-strong);
  padding: 2px 7px;
  white-space: nowrap;
}
.wr-card h3 { margin: 0 0 4px; font-size: 16px; font-weight: 700; line-height: 1.3; }
.wr-card .cat { margin: 0 0 12px; font-size: 12.5px; color: var(--muted); }
.wr-specs { margin: 0 0 14px; padding: 0; list-style: none; border-top: 1px solid var(--line); }
.wr-specs li {
  display: flex;
  gap: 10px;
  padding: 6px 0;
  border-bottom: 1px solid var(--line);
  font-size: 12.5px;
  line-height: 1.4;
}
.wr-specs li span { color: var(--muted); flex: 0 0 96px; }
.wr-specs li b { font-weight: 500; color: var(--ink); word-break: break-word; }
.wr-card-foot {
  margin-top: auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  padding-top: 4px;
}
.wr-price { font-size: 13.5px; font-weight: 600; color: var(--muted); }
.wr-link { font-size: 13px; font-weight: 600; color: var(--brand); white-space: nowrap; }
.wr-link::after { content: " →"; }
.wr-empty {
  padding: 56px 20px;
  text-align: center;
  color: var(--muted);
  border: 1px dashed var(--line-strong);
  background: var(--paper);
}
.wr-note {
  margin: 0 0 32px;
  padding: 12px 16px;
  border-left: 2px solid var(--brass);
  background: #F7F3EA;
  color: #6A5326;
  font-size: 13.5px;
}

/* ---------- CTA ---------- */
.wr-cta { background: var(--ink); color: #fff; padding: var(--s6) 0; }
.wr-cta .wrap { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 40px; align-items: center; }
.wr-cta h2 { margin: 14px 0 10px; font-size: clamp(24px, 2.8vw, 34px); letter-spacing: -.02em; }
.wr-cta p { margin: 0; color: var(--muted-dark); font-size: 15px; max-width: 52ch; }
.wr-cta-actions { display: flex; gap: 14px; flex-wrap: wrap; }

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .wr-hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .wr-series-grid { grid-template-columns: repeat(3, 1fr); }
  .wr-controls-row { grid-template-columns: 1fr 1fr; }
  .wr-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .wr-group-head { grid-template-columns: 1fr; gap: 16px; }
  .wr-cta .wrap { grid-template-columns: 1fr; }
}

@media (max-width: 720px) {
  .wrap { padding: 0 20px; }
  .wr-hero-grid { padding: 52px 0 46px; }
  .wr-hero-facts { grid-template-columns: 1fr 1fr; gap: 4px; }
  .wr-hero-facts b { font-size: 25px; }
  .wr-brands .wrap { grid-template-columns: 1fr; }
  .wr-series-grid { grid-template-columns: 1fr 1fr; gap: 12px; }
  .wr-series-card .media { aspect-ratio: 1 / 1; }
  .wr-controls { position: static; padding: 16px; }
  .wr-controls-row { grid-template-columns: 1fr; }
  .wr-controls-foot { flex-direction: column; align-items: flex-start; }
  .wr-grid { grid-template-columns: 1fr 1fr; gap: 12px; }
  .wr-card .body { padding: 12px 12px 16px; }
  .wr-card h3 { font-size: 14.5px; }
  .wr-specs li { flex-direction: column; gap: 2px; font-size: 12px; }
  .wr-specs li span { flex: none; }
  .wr-card-foot { flex-direction: column; align-items: flex-start; gap: 4px; }
  .wr-cta-actions { flex-direction: column; align-items: stretch; }
}

@media (max-width: 420px) {
  .wr-grid { grid-template-columns: 1fr; }
  .wr-series-grid { grid-template-columns: 1fr; }
}

.wr-avail { font-style: normal; font-size: 12px; color: #2f7d55; margin-left: 6px; }
.wr-avail::before { content: '· '; color: #98a1b0; }

/* подсветка позиции, открытой по ссылке ?article= */
.wr-card.is-target {
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(201, 162, 39, .28), 0 12px 30px rgba(16, 24, 32, .14);
}
.wr-specs li b { overflow-wrap: anywhere; }
