@import url("https://fonts.googleapis.com/css2?family=Manrope:wght@400;500;600;700;800&family=Unbounded:wght@500;600;700&display=swap");

/* Палитра в духе vd11.ru: светлый фон, тёмный хедер, синий акцент */
:root {
  --gold: #007bff;
  --gold-soft: #2f97ff;
  --gold-dim: #0056b3;
  --ink: #212529;
  --muted: #6c757d;
  --line: #dee2e6;
  --bg: #e9ecef;
  --panel: #ffffff;
  --panel-2: #f8f9fa;
  --black: #111417;
  --header: #111417;
  --header-2: #212529;
}
* { box-sizing: border-box; }
html { background: var(--bg); }
body {
  margin: 0;
  font: 14px/1.5 Manrope, system-ui, sans-serif;
  color: var(--ink);
  background: var(--bg);
  min-height: 100vh;
}
a { color: var(--gold); text-decoration: none; }
a:hover { color: var(--gold-dim); }
button, input, select, textarea { font: inherit; color: inherit; }
img { max-width: 100%; }

.container { width: min(1180px, calc(100% - 24px)); margin: 0 auto; }
.topbar {
  background: var(--black);
  border-bottom: 1px solid #292d30;
  font-size: 12px;
  letter-spacing: .04em;
}
.topbar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  min-height: 40px;
  gap: 12px;
  color: #adb5bd;
}
.top-links { display: flex; flex-wrap: wrap; gap: 4px 14px; }
.top-links a { color: rgba(255,255,255,.8); }
.top-links a.is-active { color: #fff; font-weight: 700; }
.header {
  padding: 16px 0;
  border-bottom: 1px solid #292d30;
  background: var(--header);
  position: sticky;
  top: 0;
  z-index: 30;
}
.header .container {
  display: grid;
  grid-template-columns: minmax(200px, 280px) 1fr 190px;
  gap: 16px;
  align-items: center;
}
.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  color: #fff;
  font-family: Unbounded, Manrope, sans-serif;
  font-weight: 600;
  letter-spacing: -.01em;
  font-size: 13px;
  text-transform: lowercase;
  line-height: 1.15;
}
.logo:hover { color: var(--gold-soft); }
.logo img {
  width: 64px;
  height: 64px;
  object-fit: contain;
  background: #000;
  border-radius: 50%;
  border: 1px solid #393939;
  box-shadow: 0 0 0 3px #000;
}
.search { display: flex; }
.search input {
  flex: 1;
  border: 1px solid #393939;
  border-right: 0;
  padding: 12px 14px;
  border-radius: 8px 0 0 8px;
  background: #fff;
  color: var(--ink);
}
.search input::placeholder { color: #adb5bd; }
.search button {
  border: 1px solid var(--gold);
  background: var(--gold);
  color: #fff;
  padding: 0 18px;
  border-radius: 0 8px 8px 0;
  cursor: pointer;
  font-weight: 800;
}
.search button:hover { background: var(--gold-dim); border-color: var(--gold-dim); }
.suggest {
  position: absolute;
  z-index: 40;
  background: #fff;
  border: 1px solid var(--line);
  width: min(560px, 100%);
  max-height: 50vh;
  overflow: auto;
  margin-top: 2px;
  display: none;
  box-shadow: 0 8px 24px rgba(17,20,23,.12);
}
.suggest.is-open { display: block; }
.suggest a { display: block; padding: 8px 10px; color: var(--ink); border-bottom: 1px solid var(--line); }
.suggest a:hover { background: #e9f5ff; color: var(--gold-dim); }
.search-wrap { position: relative; }
.cart-btn {
  display: block;
  background: transparent;
  color: #fff;
  text-align: center;
  padding: 12px 10px;
  border-radius: 8px;
  font-weight: 700;
  border: 1px solid #495057;
}
.cart-btn:hover { background: var(--gold); color: #fff; border-color: var(--gold); }
.layout {
  display: grid;
  grid-template-columns: 230px 1fr;
  gap: 22px;
  padding: 22px 0 48px;
  align-items: start;
}
.stack {
  display: grid;
  gap: 12px;
  align-content: start;
}
.stack .card {
  height: auto;
  align-self: start;
  width: 100%;
}
.side {
  border: 1px solid var(--line);
  background: var(--panel);
  border-radius: 12px;
  overflow: hidden;
  align-self: start;
  box-shadow: 0 1px 2px rgba(17,20,23,.04);
}
.side a {
  display: block;
  padding: 9px 12px;
  color: var(--ink);
  border-bottom: 1px solid var(--line);
}
.side a:hover, .side a.is-active {
  background: #e9f5ff;
  color: var(--gold-dim);
}
.side h4 {
  margin: 0;
  padding: 12px;
  background: var(--header);
  color: #fff;
  font-family: Manrope, sans-serif;
  letter-spacing: .08em;
  border-bottom: 1px solid #292d30;
}
.banner {
  background:
    radial-gradient(circle at 88% 20%, rgba(0,123,255,.18), transparent 36%),
    linear-gradient(145deg, #111417, #1a2330 55%, #111417);
  color: #fff;
  border-radius: 16px;
  padding: 36px 28px;
  min-height: 180px;
  border: 1px solid #292d30;
}
.banner h1 {
  margin: 0 0 10px;
  font-size: 32px;
  font-family: Manrope, sans-serif;
  color: #fff;
  letter-spacing: .04em;
}
.banner p { margin: 0; max-width: 640px; color: rgba(255,255,255,.85); }
.gold { color: var(--gold); font-weight: 800; }
h1, h2.block-title {
  font-family: Manrope, sans-serif;
  letter-spacing: .04em;
  color: var(--ink);
}
h2.block-title {
  font-size: 20px;
  margin: 28px 0 14px;
  color: var(--ink);
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 8px;
}
h2.block-title::before {
  content: "";
  width: 13px;
  height: 13px;
  background: var(--gold);
  flex: 0 0 auto;
}
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
  gap: 14px;
  align-items: stretch;
}
.card {
  border: 1px solid var(--line);
  background: var(--panel);
  padding: 14px;
  border-radius: 12px;
  display: flex;
  flex-direction: column;
  box-shadow: 0 1px 2px rgba(17,20,23,.04);
}
.grid .card { height: 100%; }
.card:hover { border-color: #b3cee1; }
.card-click { position: relative; cursor: pointer; transition: border-color .15s ease, transform .15s ease, box-shadow .15s ease; }
.card-click:hover {
  border-color: var(--gold);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0,123,255,.12);
}
.card-hit {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: block;
  width: 100%;
  height: 100%;
  border-radius: inherit;
  color: transparent;
  text-indent: -9999px;
  overflow: hidden;
}
.card-click .btn {
  position: relative;
  z-index: 2;
}
.card-click h3 { color: var(--ink); }
.card .mark {
  height: 92px;
  display: grid;
  place-items: center;
  background:
    radial-gradient(circle at 50% 40%, rgba(0,123,255,.2), transparent 60%),
    #111417;
  font-family: Manrope, sans-serif;
  font-size: 30px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 10px;
  border-radius: 8px;
  border: 1px solid var(--line);
  flex: 0 0 auto;
}
.card h3 { margin: 0 0 6px; font-size: 14px; }
.card h3 a { color: var(--ink); }
.card .note { margin-bottom: 0; }
.card-foot {
  margin-top: auto;
  padding-top: 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.price {
  color: var(--gold);
  font-weight: 800;
  margin: 0;
  font-size: 16px;
}
.card .btn { align-self: auto; flex: 0 0 auto; }
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  background: var(--gold);
  color: #fff;
  border: 0;
  padding: 9px 14px;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 800;
}
.btn:hover { background: var(--gold-dim); filter: none; }
.btn-ghost {
  background: transparent;
  color: var(--gold);
  border: 1px solid var(--gold);
}
.btn-ghost:hover { background: #e9f5ff; color: var(--gold-dim); }
.crumbs { color: var(--muted); margin-bottom: 8px; }
.crumbs a { color: var(--gold); }

.product {
  border: 1px solid var(--line);
  background: var(--panel);
  border-radius: 16px;
  padding: 22px;
  box-shadow: 0 2px 8px rgba(17,20,23,.06);
}
.product-hero {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 22px;
  align-items: stretch;
  padding-bottom: 22px;
  border-bottom: 1px solid var(--line);
}
.product-mark {
  display: grid;
  place-items: center;
  min-height: 140px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background:
    radial-gradient(circle at 50% 35%, rgba(0,123,255,.28), transparent 58%),
    #111417;
  font-family: Manrope, sans-serif;
  font-size: 64px;
  font-weight: 700;
  color: #fff;
  letter-spacing: .04em;
}
.product-hero-body { display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.product-kicker {
  margin: 0;
  color: var(--gold);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
}
.product-title {
  margin: 0;
  font-family: Manrope, sans-serif;
  font-size: clamp(22px, 3.4vw, 30px);
  line-height: 1.25;
  color: var(--ink);
  letter-spacing: .03em;
  word-break: break-word;
}
.product-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.product-tag {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid #b3cee1;
  background: #e9f5ff;
  color: var(--gold-dim);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .04em;
}
.product-buy {
  margin-top: auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
  padding-top: 8px;
}
.product-price {
  margin: 0;
  color: var(--gold);
  font-size: 28px;
  font-weight: 800;
  letter-spacing: .02em;
}
.product-cta { padding: 12px 22px; font-size: 15px; }
.product-section-title {
  margin: 22px 0 12px;
  font-family: Manrope, sans-serif;
  font-size: 16px;
  color: var(--ink);
  letter-spacing: .08em;
  text-transform: uppercase;
}
.product-specs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}
.product-spec {
  display: grid;
  gap: 4px;
  padding: 12px 14px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: var(--panel-2);
}
.product-spec-label {
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
}
.product-spec-value {
  color: var(--ink);
  font-size: 15px;
  font-weight: 600;
  word-break: break-word;
  font-variant-numeric: tabular-nums;
}
@media (max-width: 700px) {
  .product { padding: 16px; }
  .product-hero { grid-template-columns: 1fr; }
  .product-mark { min-height: 110px; font-size: 48px; }
  .product-specs { grid-template-columns: 1fr; }
  .product-buy { flex-direction: column; align-items: stretch; }
  .product-cta { width: 100%; }
}
.table { width: 100%; border-collapse: collapse; background: var(--panel); }
.table th, .table td { border: 1px solid var(--line); padding: 8px 10px; text-align: left; }
.table th { color: var(--gold-dim); background: var(--panel-2); }
.note { color: var(--muted); }
.form { display: grid; gap: 10px; max-width: 520px; }
.form input, .form textarea, .form select, .qty {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
}
.ok { color: #15964d; font-weight: 700; }
.footer {
  background: var(--header);
  color: #adb5bd;
  padding: 36px 0 18px;
  font-size: 13px;
  border-top: 1px solid #292d30;
}
.footer a { color: #dee2e6; }
.footer a:hover { color: var(--gold-soft); }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 18px; }
.footer h4 { color: #fff; margin: 0 0 8px; font-family: Manrope, sans-serif; }
.copy { border-top: 1px solid #292d30; margin-top: 18px; padding-top: 10px; }
.pin-box {
  background: #111417;
  color: #e9f5ff;
  font-family: ui-monospace, monospace;
  padding: 14px;
  overflow: auto;
  min-height: 220px;
  white-space: pre;
  border: 1px solid var(--line);
  border-radius: 10px;
}
.qty { width: 64px; padding: 6px; }
.toast {
  position: fixed;
  right: 16px;
  bottom: 16px;
  background: var(--gold);
  color: #fff;
  padding: 10px 14px;
  border-radius: 8px;
  display: none;
  font-weight: 700;
}
.toast.is-on { display: block; }
@media (max-width: 900px) {
  .header .container, .layout, .footer-grid { grid-template-columns: 1fr; }
  .side { display: none; }
  .side.is-open { display: block; }
  .cart-btn { width: 100%; }
}
