/* ==========================================================================
   TraceBright — main stylesheet
   Palette: warm paper background, near-black ink, one persimmon accent.
   No web fonts: a system serif for display, a system sans for body.
   ========================================================================== */

:root {
  --bg:        #fbf9f6;
  --surface:   #ffffff;
  --sunken:    #f4f0e9;
  --ink:       #211d18;
  --ink-soft:  #4a443c;
  --muted:     #7a7267;
  --line:      #e9e3d9;
  --line-firm: #d9d1c4;
  --accent:    #d9542b;
  --accent-dk: #b8431f;
  --teal:      #1d6b5f;

  --font-display: ui-serif, Georgia, "Times New Roman", serif;
  --font-body: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
               "Helvetica Neue", Arial, sans-serif;

  --wrap: 1180px;
  --radius: 16px;
  --shadow-sm: 0 1px 2px rgba(33, 29, 24, .05);
  --shadow-md: 0 10px 30px -12px rgba(33, 29, 24, .18);
  --shadow-lg: 0 30px 60px -30px rgba(33, 29, 24, .35);
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation: none !important; transition: none !important; }
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; height: auto; }

a { color: inherit; }

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 400;
  letter-spacing: -.02em;
  margin: 0;
}

p { margin: 0; }

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: 28px;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 8px;
  z-index: 100;
  background: var(--ink);
  color: var(--bg);
  padding: 10px 16px;
  border-radius: 8px;
}
.skip-link:focus { left: 16px; }

:where(a, button, summary, input):focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}

/* ── buttons ──────────────────────────────────────────────────────────── */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 22px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: background-color .18s, color .18s, border-color .18s, transform .18s;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }

.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-dk); }

.btn-dark { background: var(--ink); color: var(--bg); }
.btn-dark:hover { background: #000; }

.btn-outline {
  background: transparent;
  border-color: var(--line-firm);
  color: var(--ink);
}
.btn-outline:hover { border-color: var(--ink); background: rgba(33,29,24,.03); }

.btn-ghost {
  background: var(--sunken);
  color: var(--ink);
  padding: 9px 16px;
  font-size: 14px;
}
.btn-ghost:hover { background: var(--ink); color: var(--bg); }

.btn-light { background: var(--bg); color: var(--ink); }
.btn-light:hover { background: #fff; }

.btn-sm { padding: 9px 18px; font-size: 14px; }

.linkish {
  background: none;
  border: 0;
  padding: 0;
  font: inherit;
  color: var(--accent);
  text-decoration: underline;
  cursor: pointer;
}

/* ── header ───────────────────────────────────────────────────────────── */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(251, 249, 246, .82);
  backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 28px;
  height: 68px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 17px;
  letter-spacing: -.01em;
  text-decoration: none;
  color: var(--ink);
}
.brand-mark { color: var(--ink); flex: none; }

.site-nav {
  display: flex;
  gap: 26px;
  margin-left: auto;
  font-size: 15px;
}
.site-nav a {
  text-decoration: none;
  color: var(--ink-soft);
  padding-block: 4px;
  border-bottom: 1px solid transparent;
  transition: color .16s, border-color .16s;
}
.site-nav a:hover { color: var(--ink); border-color: var(--accent); }

.lang-switch {
  display: inline-flex;
  align-items: center;
  padding: 6px 12px;
  border: 1px solid var(--line-firm);
  border-radius: 999px;
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: .08em;
  text-decoration: none;
  color: var(--ink-soft);
  white-space: nowrap;
  transition: border-color .16s, color .16s;
}
.lang-switch:hover { border-color: var(--ink); color: var(--ink); }

/* Russian nav labels are longer — drop the bar before it can crowd the CTA. */
@media (max-width: 1080px) {
  .site-nav { display: none; }
  .lang-switch { margin-left: auto; }
}

/* ── hero ─────────────────────────────────────────────────────────────── */

.hero { padding: 76px 0 84px; }

.hero-grid {
  display: grid;
  grid-template-columns: 1.06fr .94fr;
  gap: 64px;
  align-items: center;
}

.eyebrow {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 20px;
}
.eyebrow-light { color: #e9a184; }

.hero h1 {
  font-size: clamp(2.5rem, 5.1vw, 4.05rem);
  line-height: .99;
  margin-bottom: 22px;
  max-width: 15ch;
}

.lede {
  font-size: 17.5px;
  line-height: 1.65;
  color: var(--ink-soft);
  max-width: 52ch;
  margin-bottom: 32px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 36px;
}

.hero-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 0;
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: 14.5px;
  color: var(--muted);
}
.hero-stats li {
  display: flex;
  align-items: baseline;
  gap: 6px;
  padding-right: 18px;
  margin-right: 18px;
  border-right: 1px solid var(--line-firm);
}
.hero-stats li:last-child { border-right: 0; margin-right: 0; padding-right: 0; }
.hero-stats strong { color: var(--ink); font-weight: 700; }

.hero-media {
  margin: 0;
  position: relative;
}
.hero-media img {
  width: 100%;
  border-radius: 22px;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-lg);
  object-fit: cover;
}
.hero-media figcaption {
  margin-top: 14px;
  font-size: 13.5px;
  color: var(--muted);
  text-align: center;
}

/* ── trust strip ──────────────────────────────────────────────────────── */

.marquee {
  border-block: 1px solid var(--line);
  background: var(--surface);
}
.marquee-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px 34px;
  padding-block: 16px;
  font-size: 13.5px;
  letter-spacing: .04em;
  color: var(--muted);
}
.marquee-inner span { display: inline-flex; align-items: center; gap: 8px; }
.marquee-inner span::before {
  content: "";
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--accent);
  opacity: .75;
}

/* ── section headings ─────────────────────────────────────────────────── */

.section-head { margin-bottom: 34px; }
.section-head h2 {
  font-size: clamp(1.9rem, 3.4vw, 2.6rem);
  line-height: 1.08;
  margin-bottom: 10px;
}
.section-head p { color: var(--muted); font-size: 15.5px; }

/* ── library ──────────────────────────────────────────────────────────── */

.library { padding: 84px 0 76px; }

.toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 22px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 22px;
}

.chips { display: flex; flex-wrap: wrap; gap: 8px; }

.chip {
  border: 1px solid var(--line-firm);
  background: transparent;
  color: var(--ink-soft);
  padding: 8px 16px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: background-color .16s, color .16s, border-color .16s;
}
.chip:hover { border-color: var(--ink); color: var(--ink); }
.chip[aria-pressed="true"] {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--bg);
}
.chip .n { opacity: .55; margin-left: 6px; font-variant-numeric: tabular-nums; }

.search {
  position: relative;
  display: flex;
  align-items: center;
  min-width: 268px;
}
.search svg {
  position: absolute;
  left: 14px;
  width: 16px;
  height: 16px;
  fill: none;
  stroke: var(--muted);
  stroke-width: 1.8;
  stroke-linecap: round;
  pointer-events: none;
}
.search input {
  width: 100%;
  padding: 11px 14px 11px 38px;
  border: 1px solid var(--line-firm);
  border-radius: 999px;
  background: var(--surface);
  font: inherit;
  font-size: 14.5px;
  color: var(--ink);
}
.search input::placeholder { color: #a8a094; }
.search input:focus { border-color: var(--ink); outline: none; }
.search input:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

.result-count {
  font-size: 13.5px;
  color: var(--muted);
  margin-bottom: 24px;
  font-variant-numeric: tabular-nums;
}

/* ── card grid ────────────────────────────────────────────────────────── */

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(212px, 1fr));
  gap: 22px;
}

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: var(--line-firm);
}

.card-thumb {
  position: relative;
  display: block;
  aspect-ratio: 3 / 4;
  background: var(--sunken);
  border-bottom: 1px solid var(--line);
}
.card-thumb img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center top;
  padding: 8px;
}

.card-tag {
  position: absolute;
  top: 10px;
  right: 10px;
  background: rgba(255, 255, 255, .92);
  border: 1px solid var(--line);
  color: var(--ink-soft);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
  padding: 4px 9px;
  border-radius: 999px;
  backdrop-filter: blur(4px);
}

.card-body {
  padding: 14px 16px 16px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  flex: 1;
}
.card-body h3 {
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 650;
  letter-spacing: 0;
  line-height: 1.3;
}
.card-meta {
  font-size: 12.5px;
  color: var(--muted);
  margin-bottom: 10px;
}
.card-body .btn { margin-top: auto; align-self: flex-start; }

.empty {
  text-align: center;
  color: var(--muted);
  padding: 56px 0;
  font-size: 15px;
}

.load-more-wrap {
  display: flex;
  justify-content: center;
  margin-top: 40px;
}
.load-more-wrap[hidden] { display: none; }

/* ── the board ────────────────────────────────────────────────────────── */

.kit {
  padding: 84px 0;
  background: var(--surface);
  border-block: 1px solid var(--line);
}
.kit-grid {
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: 64px;
  align-items: center;
}
.kit h2 {
  font-size: clamp(1.9rem, 3.4vw, 2.5rem);
  line-height: 1.1;
  margin-bottom: 18px;
}
.kit-copy > p:not(.eyebrow) {
  color: var(--ink-soft);
  font-size: 16.5px;
  max-width: 54ch;
}

.kit-list {
  list-style: none;
  margin: 30px 0 0;
  padding: 0;
  display: grid;
  gap: 0;
}
.kit-list li {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 13px 0;
  border-top: 1px solid var(--line);
}
.kit-list li:last-child { border-bottom: 1px solid var(--line); }
.kit-list strong { font-weight: 650; font-size: 15px; }
.kit-list span { color: var(--muted); font-size: 14px; text-align: right; }

.kit-media { margin: 0; }
.kit-media img {
  width: 100%;
  border-radius: 20px;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-md);
}

/* ── how it works ─────────────────────────────────────────────────────── */

.how { padding: 84px 0; }

.steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  counter-reset: step;
}
.steps li {
  border-top: 2px solid var(--ink);
  padding-top: 20px;
}
.step-num {
  display: block;
  font-family: var(--font-display);
  font-size: 13px;
  letter-spacing: .16em;
  color: var(--accent);
  margin-bottom: 12px;
}
.steps h3 {
  font-family: var(--font-body);
  font-size: 18px;
  font-weight: 650;
  letter-spacing: 0;
  margin-bottom: 8px;
}
.steps p { color: var(--ink-soft); font-size: 15px; }

/* ── wholesale ────────────────────────────────────────────────────────── */

.wholesale {
  background: var(--ink);
  color: var(--bg);
  padding: 82px 0;
}
.wholesale-inner {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 64px;
  align-items: center;
}
.wholesale h2 {
  font-size: clamp(1.9rem, 3.4vw, 2.6rem);
  line-height: 1.08;
  margin-bottom: 18px;
}
.wholesale p { color: #c9c2b6; font-size: 16px; max-width: 56ch; }

.wholesale-points {
  list-style: none;
  margin: 28px 0 0;
  padding: 0;
  display: grid;
  gap: 11px;
  font-size: 15px;
  color: #e6e0d6;
}
.wholesale-points li { padding-left: 24px; position: relative; }
.wholesale-points li::before {
  content: "";
  position: absolute;
  left: 0;
  top: .62em;
  width: 9px;
  height: 9px;
  border: 1.5px solid var(--accent);
  border-radius: 50%;
}

.wholesale-cta {
  background: rgba(255, 255, 255, .05);
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: 20px;
  padding: 28px;
  text-align: center;
}
.wholesale-label {
  font-size: 12px;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: #a89f92;
  margin-bottom: 14px;
}
.wholesale-cta .btn { width: 100%; }
.wholesale-note {
  margin-top: 14px;
  font-size: 12.5px;
  color: #8f877b;
}

/* ── faq ──────────────────────────────────────────────────────────────── */

.faq { padding: 84px 0 96px; }

.faq-list { max-width: 800px; }
.faq-list details {
  border-bottom: 1px solid var(--line);
  padding: 18px 0;
}
.faq-list summary {
  cursor: pointer;
  font-size: 16.5px;
  font-weight: 600;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after {
  content: "+";
  font-family: var(--font-body);
  font-size: 22px;
  font-weight: 300;
  color: var(--muted);
  line-height: 1;
  transition: transform .2s;
}
.faq-list details[open] summary::after { transform: rotate(45deg); }
.faq-list p {
  margin-top: 12px;
  color: var(--ink-soft);
  font-size: 15.5px;
  max-width: 66ch;
}

/* ── footer ───────────────────────────────────────────────────────────── */

.site-footer {
  border-top: 1px solid var(--line);
  background: var(--surface);
  padding: 52px 0 40px;
}
.footer-inner {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 28px;
  align-items: start;
}
.footer-brand p {
  margin-top: 12px;
  color: var(--muted);
  font-size: 14px;
  max-width: 34ch;
}
.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 22px;
  justify-content: flex-end;
  font-size: 14.5px;
}
.footer-nav a {
  text-decoration: none;
  color: var(--ink-soft);
}
.footer-nav a:hover { color: var(--accent); }
.footer-legal {
  grid-column: 1 / -1;
  border-top: 1px solid var(--line);
  padding-top: 22px;
  font-size: 13px;
  color: var(--muted);
}

/* ── responsive ───────────────────────────────────────────────────────── */

@media (max-width: 960px) {
  .hero-grid,
  .kit-grid,
  .wholesale-inner { grid-template-columns: 1fr; gap: 40px; }
  .hero { padding: 52px 0 60px; }
  .hero-media { order: -1; }
  .hero-media img { max-height: 380px; object-fit: cover; }
  .hero h1 { font-size: clamp(2.2rem, 7vw, 3rem); }
  .steps { grid-template-columns: 1fr; gap: 24px; }
  .site-nav { display: none; }
  .footer-inner { grid-template-columns: 1fr; }
  .footer-nav { justify-content: flex-start; }
}

@media (max-width: 620px) {
  .wrap { padding-inline: 20px; }
  .header-inner { height: 60px; gap: 14px; }
  .brand span { font-size: 16px; }
  .toolbar { flex-direction: column; align-items: stretch; }
  .search { min-width: 0; }
  .grid { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 14px; }
  .card-body { padding: 11px 12px 13px; }
  .card-body h3 { font-size: 13.5px; }
  .hero-stats li { font-size: 13px; padding-right: 12px; margin-right: 12px; }
  .kit-list li { flex-direction: column; gap: 2px; }
  .kit-list span { text-align: left; }
  .wholesale-cta { text-align: left; }
  .wholesale-cta .btn { width: auto; }
}

@media print {
  .site-header, .marquee, .toolbar, .load-more-wrap, .wholesale, .faq, .site-footer { display: none; }
  body { background: #fff; }
}
