/*
Theme Name: BJSuperQ Tech
Theme URI: https://bjsuperq.ru/
Author: bjsuperq.ru project
Description: Corporate engineering theme for Beijing Super Q Russian website.
Version: 1.0.0
Text Domain: bjsuperq-tech
Requires at least: 6.0
*/

:root {
  --bjsq-ink: #191817;
  --bjsq-graphite: #2a2825;
  --bjsq-muted: #6f6a62;
  --bjsq-line: #ded8ce;
  --bjsq-panel: #f7f4ef;
  --bjsq-paper: #fffdf8;
  --bjsq-copper: #b56a35;
  --bjsq-copper-dark: #8b4724;
  --bjsq-sage: #5b7667;
  --bjsq-steel: #5f6462;
  --bjsq-radius: 8px;
  --bjsq-shadow: 0 20px 60px rgba(40, 34, 26, .14);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bjsq-paper);
  color: var(--bjsq-ink);
  font-family: Inter, "Segoe UI", Roboto, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.58;
  letter-spacing: 0;
}
a { color: var(--bjsq-copper-dark); text-decoration-thickness: 1px; text-underline-offset: 3px; }
img { max-width: 100%; height: auto; display: block; }
table { width: 100%; border-collapse: collapse; }
th, td { border-bottom: 1px solid var(--bjsq-line); padding: 11px 12px; text-align: left; vertical-align: top; }
th { color: var(--bjsq-graphite); background: #f2ece3; font-weight: 700; }
.bjsq-spec-normalized {
  display: block;
  margin-top: 4px;
  color: var(--bjsq-muted);
  font-size: 13px;
}

.bjsq-container { width: min(1180px, calc(100% - 32px)); margin: 0 auto; }
.bjsq-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 253, 248, .92);
  border-bottom: 1px solid rgba(222, 216, 206, .9);
  backdrop-filter: blur(14px);
}
.bjsq-header__inner { min-height: 72px; display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.bjsq-brand { display: flex; align-items: center; gap: 12px; color: var(--bjsq-ink); text-decoration: none; font-weight: 800; }
.bjsq-brand__mark {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  color: #fff;
  background: linear-gradient(135deg, var(--bjsq-graphite), var(--bjsq-copper));
  font-size: 18px;
}
.bjsq-brand__name { display: block; line-height: 1.1; }
.bjsq-brand__sub { display: block; color: var(--bjsq-muted); font-size: 12px; font-weight: 600; margin-top: 3px; }
.bjsq-nav { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; justify-content: flex-end; }
.bjsq-nav a { color: var(--bjsq-graphite); text-decoration: none; font-weight: 700; font-size: 14px; }
.bjsq-nav a:hover { color: var(--bjsq-copper-dark); }
.bjsq-mail {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 9px 13px;
  border: 1px solid var(--bjsq-copper);
  border-radius: 6px;
  color: var(--bjsq-copper-dark);
  text-decoration: none;
  font-weight: 800;
}

.bjsq-hero {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at 78% 30%, rgba(181,106,53,.24), transparent 28%),
    linear-gradient(135deg, #211f1d 0%, #35312c 54%, #79604a 100%);
  color: #fffdf8;
}
.bjsq-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  opacity: .22;
  background-image:
    linear-gradient(90deg, rgba(255,255,255,.16) 1px, transparent 1px),
    linear-gradient(0deg, rgba(255,255,255,.12) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: linear-gradient(90deg, #000, transparent 72%);
}
.bjsq-hero__inner {
  position: relative;
  z-index: 1;
  min-height: 560px;
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(320px, .92fr);
  align-items: center;
  gap: 56px;
  padding: 62px 0 78px;
}
.bjsq-eyebrow { margin: 0 0 14px; color: #e7c39d; font-weight: 800; text-transform: uppercase; font-size: 12px; letter-spacing: .08em; }
.bjsq-hero h1 { margin: 0; max-width: 820px; font-size: clamp(42px, 6vw, 82px); line-height: .96; letter-spacing: 0; }
.bjsq-hero p { max-width: 680px; margin: 22px 0 0; color: #efe8dc; font-size: 19px; }
.bjsq-hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.bjsq-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 12px 18px;
  border-radius: 6px;
  border: 1px solid transparent;
  background: var(--bjsq-copper);
  color: #fff;
  font-weight: 800;
  text-decoration: none;
}
.bjsq-button:hover { background: var(--bjsq-copper-dark); color: #fff; }
.bjsq-button--ghost { background: transparent; border-color: rgba(255,255,255,.48); color: #fffdf8; }
.bjsq-button--ghost:hover { background: rgba(255,255,255,.1); }
.bjsq-hero__visual {
  display: grid;
  gap: 14px;
  align-content: center;
}
.bjsq-hero__image {
  aspect-ratio: 4 / 3;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.18);
  box-shadow: 0 24px 80px rgba(0,0,0,.32);
  overflow: hidden;
}
.bjsq-hero__image img { width: 100%; height: 100%; object-fit: cover; }
.bjsq-stat-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.bjsq-stat {
  min-height: 86px;
  padding: 14px;
  background: rgba(255,255,255,.1);
  border: 1px solid rgba(255,255,255,.16);
}
.bjsq-stat strong { display: block; font-size: 24px; line-height: 1; }
.bjsq-stat span { display: block; margin-top: 6px; color: #e9ded0; font-size: 13px; }

.bjsq-section { padding: 76px 0; }
.bjsq-section--muted { background: var(--bjsq-panel); }
.bjsq-section__head { display: flex; align-items: end; justify-content: space-between; gap: 24px; margin-bottom: 28px; }
.bjsq-section h2 { margin: 0; font-size: clamp(30px, 4vw, 48px); line-height: 1.05; }
.bjsq-section__lead { max-width: 620px; margin: 0; color: var(--bjsq-muted); }

.bjsq-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.bjsq-card {
  background: #fff;
  border: 1px solid var(--bjsq-line);
  border-radius: var(--bjsq-radius);
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(40,34,26,.06);
}
.bjsq-card__media { aspect-ratio: 4 / 3; background: #eee8df; overflow: hidden; }
.bjsq-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .28s ease; }
.bjsq-card:hover .bjsq-card__media img { transform: scale(1.035); }
.bjsq-placeholder {
  width: 100%;
  min-height: 240px;
  aspect-ratio: 4 / 3;
  display: grid;
  place-items: center;
  color: var(--bjsq-muted);
  background:
    linear-gradient(135deg, rgba(181,106,53,.12), rgba(91,118,103,.13)),
    repeating-linear-gradient(45deg, rgba(42,40,37,.05) 0 1px, transparent 1px 14px);
}
.bjsq-placeholder::after {
  content: "Изображение уточняется";
  padding: 9px 12px;
  border: 1px solid var(--bjsq-line);
  background: rgba(255,253,248,.82);
  border-radius: 6px;
  font-weight: 800;
}
.bjsq-card__body { padding: 18px; }
.bjsq-card h3 { margin: 0 0 10px; font-size: 20px; line-height: 1.22; }
.bjsq-card p { margin: 0; color: var(--bjsq-muted); font-size: 14px; }
.bjsq-pill-row { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.bjsq-pill {
  display: inline-flex;
  padding: 6px 9px;
  border-radius: 999px;
  background: #efe6da;
  color: var(--bjsq-copper-dark);
  font-size: 12px;
  font-weight: 800;
  text-decoration: none;
}

.bjsq-catalog-layout { display: grid; grid-template-columns: 280px minmax(0, 1fr); gap: 24px; align-items: start; }
.bjsq-sidebar {
  position: sticky;
  top: 94px;
  padding: 18px;
  border: 1px solid var(--bjsq-line);
  border-radius: var(--bjsq-radius);
  background: #fff;
}
.bjsq-sidebar h2 { margin: 0 0 12px; font-size: 18px; }
.bjsq-sidebar ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.bjsq-sidebar a {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  padding: 8px 0;
  color: var(--bjsq-graphite);
  text-decoration: none;
  border-bottom: 1px solid #eee8df;
  font-weight: 700;
  font-size: 14px;
}
.bjsq-sidebar a:hover { color: var(--bjsq-copper-dark); }

.bjsq-band {
  padding: 42px;
  color: #fff;
  background: linear-gradient(135deg, var(--bjsq-graphite), #54453a);
  border-radius: var(--bjsq-radius);
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 24px;
}
.bjsq-band h2 { margin: 0 0 8px; font-size: 30px; }
.bjsq-band p { margin: 0; color: #efe6dc; }

.bjsq-page-title { padding: 58px 0 34px; background: var(--bjsq-panel); border-bottom: 1px solid var(--bjsq-line); }
.bjsq-breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 7px;
  margin: 0 0 18px;
  color: var(--bjsq-muted);
  font-size: 13px;
  font-weight: 700;
}
.bjsq-breadcrumbs a { color: var(--bjsq-copper-dark); text-decoration: none; }
.bjsq-breadcrumbs a:hover { text-decoration: underline; }
.bjsq-page-title h1 { margin: 0; font-size: clamp(36px, 5vw, 64px); line-height: 1.02; }
.bjsq-page-title p { max-width: 760px; margin: 14px 0 0; color: var(--bjsq-muted); font-size: 18px; }
.bjsq-content { padding: 54px 0 76px; }
.bjsq-content :where(h2,h3) { line-height: 1.15; }

.bjsq-product-layout { display: grid; grid-template-columns: minmax(280px, .88fr) minmax(0, 1.12fr); gap: 42px; align-items: start; }
.bjsq-gallery { display: grid; gap: 12px; }
.bjsq-gallery__main { border: 1px solid var(--bjsq-line); background: #f2ece3; border-radius: var(--bjsq-radius); overflow: hidden; }
.bjsq-gallery__main img { width: 100%; aspect-ratio: 1 / .82; object-fit: contain; background: #fff; }
.bjsq-gallery__thumbs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.bjsq-gallery__thumbs img { width: 100%; aspect-ratio: 1; object-fit: cover; background: #fff; border: 1px solid var(--bjsq-line); border-radius: 6px; }
.bjsq-meta { display: grid; gap: 10px; margin: 22px 0; }
.bjsq-meta div { display: grid; grid-template-columns: 150px 1fr; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--bjsq-line); }
.bjsq-meta dt { color: var(--bjsq-muted); font-weight: 700; }
.bjsq-meta dd { margin: 0; font-weight: 700; }
.bjsq-alert { padding: 14px 16px; background: #fff7ea; border: 1px solid #e7c59f; border-radius: var(--bjsq-radius); color: #68401d; }
.bjsq-source-note {
  margin: 18px 0;
  padding: 14px 16px;
  border: 1px solid var(--bjsq-line);
  border-radius: var(--bjsq-radius);
  background: #fff;
  color: var(--bjsq-muted);
  font-size: 14px;
}
.bjsq-source-note strong { color: var(--bjsq-graphite); }
.bjsq-spec-wrap { overflow-x: auto; border: 1px solid var(--bjsq-line); border-radius: var(--bjsq-radius); background: #fff; }
.bjsq-article { max-width: 980px; }
.bjsq-article__image { margin-bottom: 28px; border: 1px solid var(--bjsq-line); border-radius: var(--bjsq-radius); overflow: hidden; background: #fff; }
.bjsq-article__image img { width: 100%; max-height: 520px; object-fit: contain; }
.bjsq-article__body {
  padding: 30px;
  background: #fff;
  border: 1px solid var(--bjsq-line);
  border-radius: var(--bjsq-radius);
}
.bjsq-article__body p { margin: 0 0 16px; }
.bjsq-article__body ul { margin: 0 0 18px 22px; }
.bjsq-article__body li { margin: 0 0 8px; }
.bjsq-article__body a { color: var(--bjsq-copper-dark); font-weight: 700; }

.bjsq-footer { padding: 46px 0 28px; background: var(--bjsq-ink); color: #eee8df; }
.bjsq-footer__grid { display: grid; grid-template-columns: 1.2fr .8fr .8fr .9fr; gap: 28px; }
.bjsq-footer__bottom { margin-top: 30px; padding-top: 18px; border-top: 1px solid rgba(255,255,255,.14); }
.bjsq-footer h2, .bjsq-footer h3 { margin: 0 0 12px; color: #fffdf8; line-height: 1.15; }
.bjsq-footer h2 { font-size: 24px; }
.bjsq-footer h3 { font-size: 16px; }
.bjsq-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.bjsq-footer a { color: #e7c39d; }
.bjsq-footer p { margin: 0; color: #d7cfc4; }

@media (max-width: 920px) {
  .bjsq-header__inner { align-items: flex-start; padding: 14px 0; flex-direction: column; }
  .bjsq-nav { justify-content: flex-start; }
  .bjsq-hero__inner, .bjsq-product-layout { grid-template-columns: 1fr; }
  .bjsq-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .bjsq-band { grid-template-columns: 1fr; }
  .bjsq-catalog-layout { grid-template-columns: 1fr; }
  .bjsq-sidebar { position: static; }
  .bjsq-footer__grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 620px) {
  .bjsq-grid, .bjsq-stat-row { grid-template-columns: 1fr; }
  .bjsq-section__head { display: block; }
  .bjsq-section__lead { margin-top: 12px; }
  .bjsq-hero__inner { min-height: auto; padding: 46px 0 54px; }
  .bjsq-meta div { grid-template-columns: 1fr; gap: 4px; }
  .bjsq-article__body { padding: 20px; }
  .bjsq-footer__grid { grid-template-columns: 1fr; }
}
