/* ==========================================================================
   PRO DNA RUSSIA — дизайн-система
   Стилистически в духе Infamous Paintball (чёрное/белое, кислотный volt-акцент,
   геометричный гротеск, капслок в заголовках), но не копия их вёрстки.
   ========================================================================== */

@import url("fonts.css");

/* ---------- токены: светлая тема (по умолчанию) ---------- */
:root {
  --ink: #0a0a0a;
  --ink-soft: #2b2b2b;
  --paper: #ffffff;
  --paper-alt: #f3f3f0;
  --paper-card: #ffffff;
  --steel: #0d0d0d;
  --steel-2: #171717;
  --volt: #d4ff00;
  --volt-ink: #0a0a0a;
  --ash: #6b6b6b;
  --ash-soft: #8f8f8f;
  --line: #e4e4e0;
  --line-strong: #d0d0cb;
  --danger: #e0263f;
  --ok: #1c8a4b;
  --shadow: 0 12px 30px -14px rgba(0, 0, 0, 0.25);
  --radius-sm: 4px;
  --radius: 10px;
  --radius-lg: 18px;
  --font: "Montserrat", "Segoe UI", system-ui, -apple-system, sans-serif;
  --container: 1280px;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --ink: #f2f2ee;
    --ink-soft: #d8d8d3;
    --paper: #0b0b0b;
    --paper-alt: #131313;
    --paper-card: #151515;
    --steel: #000000;
    --steel-2: #0a0a0a;
    --ash: #9c9c96;
    --ash-soft: #7c7c76;
    --line: #262624;
    --line-strong: #333330;
    --shadow: 0 16px 34px -14px rgba(0, 0, 0, 0.6);
    color-scheme: dark;
  }
}

:root[data-theme="dark"] {
  --ink: #f2f2ee;
  --ink-soft: #d8d8d3;
  --paper: #0b0b0b;
  --paper-alt: #131313;
  --paper-card: #151515;
  --steel: #000000;
  --steel-2: #0a0a0a;
  --ash: #9c9c96;
  --ash-soft: #7c7c76;
  --line: #262624;
  --line-strong: #333330;
  --shadow: 0 16px 34px -14px rgba(0, 0, 0, 0.6);
  color-scheme: dark;
}

/* ---------- reset ---------- */
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { margin: 0; padding: 0; list-style: none; }
button { font: inherit; cursor: pointer; }
input, select, textarea { font: inherit; }
h1, h2, h3, h4, p { margin: 0; }

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 20px;
}
@media (min-width: 900px) { .container { padding: 0 32px; } }

.visually-hidden {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

/* ---------- типографика ---------- */
.display {
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: -0.01em;
  line-height: 1.02;
}
h1.display { font-size: clamp(34px, 6vw, 72px); }
h2.display { font-size: clamp(26px, 4vw, 42px); }
h3.display { font-size: clamp(18px, 2.4vw, 24px); }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 800;
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ash);
}
.eyebrow::before {
  content: "";
  width: 18px; height: 3px;
  background: var(--volt);
  display: inline-block;
}

.muted { color: var(--ash); }
.price-old {
  color: var(--ash-soft);
  text-decoration: line-through;
  font-weight: 600;
  font-size: 0.85em;
}

/* ---------- кнопки / бейджи ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 2px solid var(--ink);
  background: var(--ink);
  color: var(--paper);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-size: 13px;
  padding: 13px 22px;
  border-radius: var(--radius-sm);
  transition: transform 0.15s ease, background 0.15s ease, color 0.15s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }
.btn-volt { background: var(--volt); border-color: var(--volt); color: var(--volt-ink); }
.btn-outline { background: transparent; color: var(--ink); }
.btn-ghost { background: transparent; border-color: var(--line-strong); color: var(--ink); }
.btn-block { width: 100%; }
.btn-sm { padding: 9px 14px; font-size: 12px; }
.btn:disabled { opacity: 0.45; cursor: not-allowed; transform: none; }

.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 5px 10px;
  border-radius: 999px;
  background: var(--ink);
  color: var(--paper);
}
.badge-volt { background: var(--volt); color: var(--volt-ink); }
.badge-outline { background: transparent; border: 1.5px solid var(--line-strong); color: var(--ink-soft); }
.badge-stock { background: var(--volt); color: var(--volt-ink); }
.badge-stock::before { content: "●"; font-size: 8px; }
.badge-preorder { background: var(--paper); border: 1.5px solid var(--volt); color: var(--ink); }

/* ---------- header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: var(--steel);
  color: #fff;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.header-bar {
  display: flex;
  align-items: center;
  gap: 20px;
  height: 68px;
}
.wordmark {
  display: flex;
  flex-direction: column;
  line-height: 0.9;
  margin-right: auto;
}
.wordmark .w1 {
  font-weight: 900;
  font-size: 22px;
  letter-spacing: -0.01em;
  text-transform: uppercase;
}
.wordmark .w1 span { color: var(--volt); }
.wordmark .w2 {
  font-weight: 700;
  font-size: 10px;
  letter-spacing: 0.35em;
  color: rgba(255, 255, 255, 0.55);
  margin-top: 5px;
}
.main-nav { display: none; }
@media (min-width: 900px) {
  .main-nav {
    display: flex;
    gap: 26px;
    font-weight: 700;
    font-size: 12.5px;
    letter-spacing: 0.06em;
    text-transform: uppercase;
  }
  .main-nav a { color: rgba(255, 255, 255, 0.78); transition: color 0.15s; }
  .main-nav a:hover, .main-nav a.active { color: var(--volt); }
}
.header-actions { display: flex; align-items: center; gap: 10px; }
.icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px; height: 38px;
  border-radius: 999px;
  color: #fff;
  border: 1px solid rgba(255,255,255,0.18);
  background: transparent;
  position: relative;
}
.icon-btn:hover { border-color: var(--volt); }
.cart-count {
  position: absolute;
  top: -6px; right: -6px;
  background: var(--volt);
  color: var(--volt-ink);
  font-size: 10px;
  font-weight: 800;
  min-width: 17px; height: 17px;
  border-radius: 999px;
  display: flex; align-items: center; justify-content: center;
  padding: 0 3px;
}
.menu-toggle { display: inline-flex; }
@media (min-width: 900px) { .menu-toggle { display: none; } }

.mobile-nav {
  display: none;
  background: var(--steel-2);
  border-top: 1px solid rgba(255,255,255,0.08);
}
.mobile-nav.open { display: block; }
.mobile-nav ul { padding: 10px 0; }
.mobile-nav a {
  display: block;
  padding: 12px 20px;
  color: rgba(255,255,255,0.85);
  font-weight: 700;
  text-transform: uppercase;
  font-size: 13px;
  letter-spacing: 0.04em;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}

.promo-strip {
  background: var(--volt);
  color: var(--volt-ink);
  font-weight: 800;
  font-size: 12px;
  text-align: center;
  letter-spacing: 0.03em;
  padding: 8px 16px;
  text-transform: uppercase;
}

/* ---------- hero ---------- */
.hero {
  background: var(--steel);
  color: #fff;
  position: relative;
  overflow: hidden;
  padding: 64px 0 76px;
}
.hero::after {
  content: "";
  position: absolute;
  inset: auto -10% -60% auto;
  width: 60%;
  aspect-ratio: 1;
  background: radial-gradient(circle at center, rgba(212,255,0,0.16), transparent 70%);
  pointer-events: none;
}
.hero-inner { position: relative; z-index: 1; max-width: 720px; }
.hero h1 { margin-top: 14px; color: #fff; }
.hero h1 span { color: var(--volt); }
.hero p.lead {
  margin-top: 18px;
  font-size: 17px;
  color: rgba(255,255,255,0.75);
  max-width: 560px;
}
.hero-cta { display: flex; gap: 12px; margin-top: 30px; flex-wrap: wrap; }
.hero-cta .btn { white-space: normal; text-align: center; max-width: 100%; }
.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-top: 46px;
  max-width: 560px;
}
.hero-stats .stat b { display: block; font-size: 24px; font-weight: 900; color: var(--volt); }
.hero-stats .stat span { font-size: 11px; color: rgba(255,255,255,0.6); text-transform: uppercase; letter-spacing: 0.05em; }

/* ---------- section shell ---------- */
.section { padding: 56px 0; }
.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 28px;
  flex-wrap: wrap;
}
.section-alt { background: var(--paper-alt); }

/* ---------- category pills ---------- */
.cat-pills { display: flex; flex-wrap: wrap; gap: 10px; }
.cat-pill {
  border: 1.5px solid var(--line-strong);
  border-radius: 999px;
  padding: 9px 16px;
  font-size: 12.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  background: var(--paper-card);
  transition: all 0.15s;
}
.cat-pill:hover, .cat-pill.active { background: var(--ink); color: var(--paper); border-color: var(--ink); }

/* ---------- product grid / card ---------- */
.product-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}
@media (min-width: 640px) { .product-grid { grid-template-columns: repeat(3, 1fr); gap: 20px; } }
@media (min-width: 1000px) { .product-grid { grid-template-columns: repeat(4, 1fr); } }

.product-card {
  background: var(--paper-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: box-shadow 0.2s, transform 0.2s, border-color 0.2s;
}
.product-card:hover { box-shadow: var(--shadow); transform: translateY(-3px); border-color: var(--line-strong); }
.product-media {
  position: relative;
  aspect-ratio: 1;
  background: var(--paper-alt);
  overflow: hidden;
}
.product-media img {
  width: 100%; height: 100%; object-fit: cover;
  position: absolute; inset: 0;
  transition: opacity 0.25s ease;
}
.product-media img.img-b { opacity: 0; }
.product-card:hover .product-media img.img-b { opacity: 1; }
.product-media .badge { position: absolute; top: 10px; left: 10px; }
.product-body { padding: 14px 14px 16px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.product-cat { font-size: 10.5px; font-weight: 800; text-transform: uppercase; letter-spacing: 0.06em; color: var(--ash); }
.product-title { font-weight: 700; font-size: 14px; line-height: 1.3; }
.product-title-en { font-size: 11.5px; color: var(--ash-soft); }
.product-price { margin-top: auto; padding-top: 8px; font-weight: 900; font-size: 18px; }

/* ---------- product page ---------- */
.product-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 34px;
}
@media (min-width: 860px) { .product-layout { grid-template-columns: 1.1fr 1fr; gap: 48px; } }

.gallery-main {
  aspect-ratio: 1;
  background: var(--paper-alt);
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
}
.gallery-main img { width: 100%; height: 100%; object-fit: cover; }
.gallery-thumbs { display: flex; gap: 10px; margin-top: 10px; }
.gallery-thumbs button {
  width: 64px; height: 64px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  border: 2px solid transparent;
  background: var(--paper-alt);
  padding: 0;
}
.gallery-thumbs button.active { border-color: var(--volt); }
.gallery-thumbs img { width: 100%; height: 100%; object-fit: cover; }

.pdp-title { margin-top: 6px; font-size: clamp(22px, 3vw, 30px); font-weight: 900; text-transform: uppercase; }
.pdp-title-en { color: var(--ash); font-size: 13px; margin-top: 4px; }
.pdp-price { font-size: 30px; font-weight: 900; margin-top: 16px; }
.pdp-price .price-old { font-size: 16px; margin-left: 10px; }

.option-row { margin-top: 22px; }
.option-label { font-weight: 800; font-size: 12px; text-transform: uppercase; letter-spacing: 0.05em; margin-bottom: 10px; }
.option-swatches { display: flex; flex-wrap: wrap; gap: 8px; }
.opt-btn {
  border: 1.5px solid var(--line-strong);
  background: var(--paper-card);
  padding: 9px 15px;
  border-radius: var(--radius-sm);
  font-weight: 700;
  font-size: 13px;
}
.opt-btn.active { border-color: var(--ink); background: var(--ink); color: var(--paper); }
.opt-btn:disabled { opacity: 0.35; text-decoration: line-through; cursor: not-allowed; }

.pdp-actions { margin-top: 26px; display: flex; gap: 12px; }
.pdp-meta { margin-top: 22px; display: flex; flex-direction: column; gap: 8px; font-size: 13px; color: var(--ash); }
.pdp-meta li { display: flex; gap: 8px; }

.pdp-desc { margin-top: 40px; max-width: 680px; }
.pdp-desc h2, .pdp-desc h3 { text-transform: uppercase; font-weight: 900; margin: 20px 0 10px; font-size: 16px; }
.pdp-desc p { margin: 10px 0; color: var(--ink-soft); }
.pdp-desc ul { margin: 10px 0; padding-left: 20px; list-style: disc; color: var(--ink-soft); }
.pdp-desc li { margin: 4px 0; }
.pdp-desc blockquote { border-left: 3px solid var(--volt); padding-left: 14px; margin: 14px 0; color: var(--ash); font-size: 13px; }

/* ---------- carousels / related ---------- */
.related-strip { display: flex; gap: 16px; overflow-x: auto; padding-bottom: 6px; }
.related-strip .product-card { min-width: 200px; }

/* ---------- cart ---------- */
.cart-line {
  display: grid;
  grid-template-columns: 76px 1fr auto;
  gap: 14px;
  align-items: center;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
}
.cart-line img { width: 76px; height: 76px; object-fit: cover; border-radius: var(--radius-sm); background: var(--paper-alt); }
.cart-line-title { font-weight: 700; font-size: 14px; }
.cart-line-opt { font-size: 12px; color: var(--ash); margin-top: 3px; }
.qty-stepper { display: inline-flex; align-items: center; border: 1px solid var(--line-strong); border-radius: var(--radius-sm); margin-top: 8px; }
.qty-stepper button { width: 26px; height: 26px; background: none; border: none; font-weight: 800; }
.qty-stepper span { min-width: 24px; text-align: center; font-weight: 700; font-size: 13px; }
.cart-line-price { text-align: right; font-weight: 800; }
.cart-line-remove { display: block; margin-top: 6px; font-size: 11px; color: var(--ash); text-decoration: underline; }

.summary-box {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px;
  background: var(--paper-card);
}
.summary-row { display: flex; justify-content: space-between; font-size: 14px; padding: 7px 0; }
.summary-row.total { font-size: 18px; font-weight: 900; border-top: 1px solid var(--line); margin-top: 8px; padding-top: 14px; }

/* ---------- forms ---------- */
.form-grid { display: grid; grid-template-columns: 1fr; gap: 14px; }
@media (min-width: 640px) { .form-grid.cols-2 { grid-template-columns: 1fr 1fr; } }
.field label { display: block; font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.03em; margin-bottom: 6px; color: var(--ash); }
.field input, .field select, .field textarea {
  width: 100%;
  padding: 12px 13px;
  border: 1.5px solid var(--line-strong);
  border-radius: var(--radius-sm);
  background: var(--paper);
  color: var(--ink);
}
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--ink); }
.field-hint { font-size: 11.5px; color: var(--ash-soft); margin-top: 5px; }

.pay-option, .ship-option {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  border: 1.5px solid var(--line-strong);
  border-radius: var(--radius);
  padding: 14px 16px;
  cursor: pointer;
}
.pay-option.selected, .ship-option.selected { border-color: var(--ink); background: var(--paper-alt); }
.pay-option input, .ship-option input { margin-top: 3px; }
.pay-option strong, .ship-option strong { display: block; font-size: 14px; }
.pay-option span, .ship-option span { font-size: 12.5px; color: var(--ash); }

/* ---------- info pages ---------- */
.prose { max-width: 760px; }
.prose h1 { margin-bottom: 20px; }
.prose h2 { margin: 28px 0 12px; font-size: 20px; font-weight: 900; text-transform: uppercase; }
.prose p { margin: 12px 0; color: var(--ink-soft); }
.prose ul { margin: 12px 0; padding-left: 20px; list-style: disc; color: var(--ink-soft); }
.prose li { margin: 6px 0; }
.prose table { width: 100%; border-collapse: collapse; margin: 16px 0; font-size: 13.5px; }
.prose th, .prose td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); }
.prose th { text-transform: uppercase; font-size: 11px; letter-spacing: 0.04em; color: var(--ash); }

/* ---------- FAQ ---------- */
.faq-item { border-bottom: 1px solid var(--line); }
.faq-q {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 0;
  background: none;
  border: none;
  text-align: left;
  font-weight: 700;
  font-size: 15px;
  color: var(--ink);
}
.faq-q::after { content: "+"; font-size: 20px; color: var(--ash); }
.faq-item.open .faq-q::after { content: "\2212"; }
.faq-a { display: none; padding: 0 0 18px; color: var(--ink-soft); font-size: 14px; max-width: 680px; }
.faq-item.open .faq-a { display: block; }

/* ---------- footer ---------- */
.site-footer { background: var(--steel); color: rgba(255,255,255,0.72); padding: 56px 0 26px; margin-top: 60px; }
.footer-grid { display: grid; gap: 32px; grid-template-columns: 1.4fr repeat(3, 1fr); }
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
.footer-grid h4 { color: #fff; font-size: 12px; text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 14px; }
.footer-grid li { margin-bottom: 9px; font-size: 13px; }
.footer-grid a:hover { color: var(--volt); }
.footer-bottom {
  margin-top: 40px;
  padding-top: 24px;
  border-top: 1px solid rgba(255,255,255,0.1);
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  font-size: 11.5px;
  color: rgba(255,255,255,0.45);
}
.theme-toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 999px;
  padding: 6px 12px;
  font-size: 11px;
  color: rgba(255,255,255,0.75);
  background: transparent;
}

/* ---------- empty states / toast ---------- */
.empty-state { text-align: center; padding: 70px 20px; }
.empty-state .display { margin-bottom: 10px; }

.toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: var(--ink);
  color: var(--paper);
  padding: 13px 22px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 13px;
  opacity: 0;
  pointer-events: none;
  transition: all 0.25s ease;
  z-index: 100;
  white-space: nowrap;
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* ---------- misc ---------- */
.divider { height: 1px; background: var(--line); border: none; margin: 40px 0; }
.skeleton { background: linear-gradient(90deg, var(--paper-alt) 25%, var(--line) 37%, var(--paper-alt) 63%); background-size: 400% 100%; animation: sk 1.4s ease infinite; }
@keyframes sk { 0% { background-position: 100% 50%; } 100% { background-position: 0 50%; } }
