/* crate.css — DFGIGT. Бетон + смола + охра джинсовой строчки. Мотив: пунктирный стежок. */

:root {
  --tar: #17181b;
  --coal: #232529;
  --curb: #edecea;
  --chalk: #ffffff;
  --denim: #3c5878;
  --denim-dk: #2c4058;
  --fadeblue: #c3cfda;
  --thread: #c98a3b;
  --thread-dk: #a56e26;
  --smoke: #66686d;
  --line: #d8d6d2;
  --stitch: 1px dashed rgba(201, 138, 59, .75);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: 'Space Grotesk', Arial, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--tar);
  background: var(--curb);
}
img { max-width: 100%; display: block; }
a { color: var(--denim); }
a:hover { color: var(--denim-dk); }
h1, h2, h3 { font-family: 'Anton', Impact, sans-serif; font-weight: 400; letter-spacing: .02em; line-height: 1.15; margin: 0 0 .6rem; }
h1 { font-size: 2.3rem; text-transform: uppercase; }
h2 { font-size: 1.7rem; text-transform: uppercase; }
h3 { font-size: 1.15rem; }
[hidden] { display: none !important; }

.gutter { max-width: 1180px; margin: 0 auto; padding: 0 1.1rem; }

/* ── шапка ─────────────────────────────── */
.selvedge {
  background: var(--thread);
  color: var(--tar);
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  text-align: center;
  padding: .3rem 1rem;
}
.girder {
  position: sticky; top: 0; z-index: 60;
  background: var(--tar);
  border-bottom: var(--stitch);
}
.girder-in {
  display: flex; align-items: center; gap: 1.2rem;
  max-width: 1180px; margin: 0 auto; padding: .55rem 1.1rem;
}
.label {
  background: var(--chalk);
  padding: .3rem .55rem;
  border-radius: 3px;
  flex: 0 0 auto;
  line-height: 0;
}
.label img { width: 96px; height: auto; }
.spraynav { display: flex; gap: 1.35rem; align-items: center; flex: 1 1 auto; }
.spraynav a {
  color: var(--curb); text-decoration: none;
  font-size: .92rem; font-weight: 600; letter-spacing: .03em;
  padding: .25rem 0;
  border-bottom: 2px solid transparent;
}
.spraynav a:hover, .spraynav a.here { color: var(--thread); border-bottom-color: var(--thread); }
.finder-btn, .hatch {
  background: none; border: 0; cursor: pointer; color: var(--curb);
  padding: .35rem; line-height: 0;
}
.finder-btn:hover, .hatch:hover { color: var(--thread); }
.hatch { display: none; }
.hatch svg, .finder-btn svg { width: 22px; height: 22px; }

/* поиск-оверлей */
.finder {
  display: none;
  position: absolute; left: 0; right: 0; top: 100%;
  background: var(--coal);
  border-bottom: var(--stitch);
  padding: .9rem 0;
}
.finder.open { display: block; }
.finder-in { max-width: 720px; margin: 0 auto; padding: 0 1.1rem; }
.finder input {
  width: 100%; padding: .65rem .9rem;
  font: inherit; font-size: 1rem;
  background: var(--tar); color: var(--chalk);
  border: 1px solid var(--smoke); border-radius: 4px;
}
.finder input:focus { outline: 2px solid var(--thread); border-color: var(--thread); }
.finder-hits { margin: .5rem 0 0; padding: 0; list-style: none; }
.finder-hits li { border-bottom: 1px solid rgba(255,255,255,.08); }
.finder-hits a {
  display: flex; justify-content: space-between; gap: 1rem;
  color: var(--curb); text-decoration: none; font-size: .9rem;
  padding: .45rem .2rem;
}
.finder-hits a:hover { color: var(--thread); }
.finder-hits .whence { color: var(--smoke); font-size: .78rem; white-space: nowrap; }
.finder-none { color: var(--smoke); font-size: .88rem; padding: .45rem .2rem; }

/* ── герой ─────────────────────────────── */
.billboard {
  background:
    linear-gradient(160deg, rgba(23,24,27,.96) 30%, rgba(44,64,88,.9) 75%, rgba(23,24,27,.95)),
    var(--coal);
  color: var(--curb);
  padding: 3.2rem 0 2.6rem;
}
.billboard h1 { font-size: clamp(2.4rem, 6vw, 4.2rem); color: var(--chalk); margin-bottom: .8rem; }
.billboard h1 .thr { color: var(--thread); }
.billboard p.lede { font-size: 1.08rem; max-width: 640px; margin: 0 0 1.4rem; color: #cfd2d6; }
.cta-row { display: flex; gap: .9rem; flex-wrap: wrap; }
.streetshot { line-height: 0; border-top: var(--stitch); }
.streetshot img { width: 100%; height: auto; }

/* кнопки */
.tagbtn {
  display: inline-block;
  font-family: inherit; font-weight: 700; font-size: .95rem;
  letter-spacing: .04em; text-transform: uppercase; text-decoration: none;
  padding: .7rem 1.5rem; border-radius: 4px;
  border: 0; cursor: pointer;
  background: var(--thread); color: var(--tar);
  outline: 1px dashed rgba(23,24,27,.5); outline-offset: -5px;
}
.tagbtn:hover { background: var(--thread-dk); color: var(--chalk); }
.tagbtn.ghost {
  background: transparent; color: var(--curb);
  border: 1px solid var(--curb);
  outline: none;
}
.tagbtn.ghost:hover { border-color: var(--thread); color: var(--thread); background: transparent; }
.tagbtn.onlight { color: var(--tar); }
.tagbtn.wide { width: 100%; text-align: center; }

/* ── секции ────────────────────────────── */
.stretch { padding: 2.8rem 0; }
.stretch.dark { background: var(--tar); color: var(--curb); }
.stretch.dark h2 { color: var(--chalk); }
.stretch.paper { background: var(--chalk); }
.kicker {
  font-size: .78rem; font-weight: 700; letter-spacing: .14em;
  text-transform: uppercase; color: var(--thread-dk);
  margin: 0 0 .3rem;
}
.stretch.dark .kicker { color: var(--thread); }
.lead-in { max-width: 700px; color: var(--smoke); margin: 0 0 1.6rem; }
.stretch.dark .lead-in { color: #b9bcc1; }

/* сетка категорий */
.blockrow { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.1rem; }
.block {
  position: relative; display: block; overflow: hidden;
  border-radius: 6px; background: var(--coal);
  text-decoration: none;
}
.block img { width: 100%; height: auto; aspect-ratio: 3/4; object-fit: cover; opacity: .82; transition: transform .3s, opacity .3s; }
.block:hover img { transform: scale(1.04); opacity: .6; }
.block .block-tag {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 2rem .9rem .8rem;
  background: linear-gradient(transparent, rgba(23,24,27,.92));
  color: var(--chalk);
  font-family: 'Anton', Impact, sans-serif; font-size: 1.25rem;
  text-transform: uppercase; letter-spacing: .03em;
}
.block .block-n { display: block; font-family: 'Space Grotesk', Arial, sans-serif; font-size: .78rem; color: var(--thread); letter-spacing: .08em; }

/* ── карточки товара ───────────────────── */
.rack { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.1rem; }
.rack.tri { grid-template-columns: repeat(3, 1fr); }
.crate {
  background: var(--chalk);
  border-radius: 6px;
  border: 1px solid var(--line);
  border-top: 2px dashed var(--thread);
  display: flex; flex-direction: column;
  overflow: hidden;
}
.crate .shot { position: relative; background: #f6f5f3; }
.crate .shot img { width: 100%; height: auto; aspect-ratio: 3/4; object-fit: cover; mix-blend-mode: multiply; }
.crate .swatchtag {
  position: absolute; top: .55rem; left: .55rem;
  background: var(--tar); color: var(--chalk);
  font-size: .68rem; font-weight: 700; letter-spacing: .05em; text-transform: uppercase;
  padding: .18rem .5rem; border-radius: 3px;
}
.crate-body { padding: .8rem .85rem .95rem; display: flex; flex-direction: column; gap: .45rem; flex: 1; }
.crate h3 { font-family: 'Space Grotesk', Arial, sans-serif; font-weight: 700; font-size: .93rem; line-height: 1.35; margin: 0; }
.crate h3 a { color: var(--tar); text-decoration: none; }
.crate h3 a:hover { color: var(--denim); }
.starline { display: flex; align-items: center; gap: .4rem; font-size: .8rem; color: var(--smoke); }
.starline .pips { color: var(--thread-dk); letter-spacing: .08em; font-size: .85rem; }
.pricecut { font-size: 1.12rem; font-weight: 700; color: var(--tar); margin-top: auto; }
.crate .tagbtn { font-size: .82rem; padding: .55rem 1rem; }

/* ── ленты и полосы главной ────────────── */
.statband { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; text-align: center; }
.statband .figure { font-family: 'Anton', Impact, sans-serif; font-size: 2.1rem; color: var(--thread); }
.statband .caption { font-size: .85rem; color: #b9bcc1; }

.fit-table { width: 100%; border-collapse: collapse; font-size: .92rem; background: var(--chalk); border-radius: 6px; overflow: hidden; }
.fit-table th, .fit-table td { padding: .65rem .8rem; text-align: left; border-bottom: 1px solid var(--line); }
.fit-table th { background: var(--tar); color: var(--chalk); font-weight: 600; letter-spacing: .04em; font-size: .82rem; text-transform: uppercase; }
.fit-table tr:last-child td { border-bottom: 0; }
.fit-table td:first-child { font-weight: 700; }

.dua { display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem; }
.dua .pane { background: var(--chalk); border: 1px solid var(--line); border-radius: 6px; padding: 1.2rem 1.3rem; }
.dua .pane.inked { background: var(--coal); color: var(--curb); border-color: var(--coal); }
.dua .pane.inked h3 { color: var(--thread); }
.dua ul { margin: .5rem 0 0; padding-left: 1.15rem; }
.dua li { margin: .35rem 0; }

.voxrow { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.1rem; }
.vox { background: var(--chalk); border: 1px solid var(--line); border-left: 3px solid var(--thread); border-radius: 6px; padding: 1.1rem 1.2rem; font-size: .93rem; }
.vox .who { font-weight: 700; margin-top: .6rem; font-size: .85rem; color: var(--smoke); }

.faqline { border-bottom: 1px solid var(--line); padding: .9rem 0; }
.faqline h3 { margin-bottom: .3rem; font-family: 'Space Grotesk', Arial, sans-serif; font-weight: 700; font-size: 1rem; }
.faqline p { margin: 0; color: #45474b; }

.ctaband { text-align: center; padding: 3rem 0; }
.ctaband h2 { font-size: 2rem; }

/* ── страница категории ────────────────── */
.trail { font-size: .8rem; color: var(--smoke); padding: .9rem 0 0; }
.trail a { color: var(--smoke); text-decoration: none; }
.trail a:hover { color: var(--denim); }
.cathead { padding: 1.2rem 0 1.6rem; }
.cathead p { max-width: 760px; color: #45474b; margin: 0; }

/* ── карточка товара (PDP) ─────────────── */
.fitview { display: grid; grid-template-columns: minmax(0, 46%) 1fr; gap: 2.2rem; padding: 1.6rem 0 2.4rem; align-items: start; }
.lookpane { background: var(--chalk); border: 1px solid var(--line); border-radius: 6px; padding: 1rem; position: sticky; top: 76px; }
.lookpane img { width: 100%; height: auto; mix-blend-mode: multiply; }
.dealrail h1 { font-size: 1.5rem; text-transform: none; font-family: 'Space Grotesk', Arial, sans-serif; font-weight: 700; line-height: 1.3; }
.dealrail .swatchline { font-size: .85rem; color: var(--smoke); margin: .2rem 0 .6rem; }
.dealrail .swatchline b { color: var(--tar); }
.dealrail .pricecut { font-size: 1.7rem; margin: .5rem 0 .2rem; }
.stockline { font-size: .85rem; color: #2e7d32; font-weight: 600; margin-bottom: .9rem; }
.dealrail .intro { color: #35373b; }
.finewrap { font-size: .78rem; color: var(--smoke); margin-top: .7rem; }
.labelnotes { margin-top: 1.6rem; }
.labelnotes h2 { font-size: 1.1rem; }
.labelnotes ol { margin: 0; padding: 0; list-style: none; counter-reset: seam; }
.labelnotes li {
  counter-increment: seam;
  display: flex; gap: .8rem; align-items: baseline;
  padding: .55rem 0; border-bottom: 1px dashed var(--line);
  font-size: .92rem; color: #35373b;
}
.labelnotes li::before {
  content: counter(seam, decimal-leading-zero);
  font-family: 'Anton', Impact, sans-serif;
  color: var(--thread); font-size: 1rem; flex: 0 0 auto;
}

/* ── зин (гайды) ───────────────────────── */
.zinerow { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.1rem; }
.zinecard {
  display: block; background: var(--chalk); text-decoration: none; color: var(--tar);
  border: 1px solid var(--line); border-radius: 6px; padding: 1.2rem 1.3rem;
  border-top: 2px dashed var(--thread);
}
.zinecard:hover h3 { color: var(--denim); }
.zinecard .zinemeta { font-size: .78rem; color: var(--smoke); letter-spacing: .06em; text-transform: uppercase; }
.zinecard p { color: #45474b; font-size: .9rem; margin: .4rem 0 0; }
.prose { max-width: 760px; }
.prose p { color: #2f3134; }
.prose h2 { font-size: 1.35rem; margin-top: 2rem; }
.prose ul, .prose ol { color: #2f3134; }
.prose table { width: 100%; border-collapse: collapse; font-size: .92rem; }
.prose th, .prose td { border: 1px solid var(--line); padding: .5rem .7rem; text-align: left; }
.prose th { background: var(--curb); }

/* ── сервисные страницы ────────────────── */
.flatpage { padding: 1.4rem 0 2.6rem; }
.flatpage .prose h1 { font-size: 1.9rem; }

/* ── подвал ────────────────────────────── */
.underpass { background: var(--tar); color: #b9bcc1; margin-top: 3rem; border-top: 3px double var(--thread); }
.underpass-in { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 2rem; padding: 2.4rem 0 1.6rem; }
.underpass h4 { color: var(--chalk); font-size: .85rem; letter-spacing: .1em; text-transform: uppercase; margin: 0 0 .7rem; }
.underpass ul { list-style: none; margin: 0; padding: 0; }
.underpass li { margin: .35rem 0; }
.underpass a { color: #b9bcc1; text-decoration: none; font-size: .9rem; }
.underpass a:hover { color: var(--thread); }
.underpass .manifesto { font-size: .9rem; max-width: 340px; }
.underpass .manifesto .label { display: inline-block; margin-bottom: .8rem; }
.underpass .manifesto .label img { width: 84px; }
.fineprint { border-top: 1px solid rgba(255,255,255,.1); padding: 1rem 0 1.4rem; font-size: .76rem; color: var(--smoke); }
.fineprint p { margin: .3rem 0; }

.upramp {
  position: fixed; right: 1.1rem; bottom: 1.1rem; z-index: 70;
  width: 42px; height: 42px; border-radius: 4px;
  background: var(--tar); color: var(--thread);
  border: 1px dashed var(--thread);
  font-size: 1.2rem; cursor: pointer;
  opacity: 0; pointer-events: none; transition: opacity .25s;
}
.upramp.seen { opacity: 1; pointer-events: auto; }

/* ── адаптив ───────────────────────────── */
@media (max-width: 900px) {
  .blockrow, .rack { grid-template-columns: repeat(2, 1fr); }
  .rack.tri { grid-template-columns: repeat(2, 1fr); }
  .voxrow, .zinerow { grid-template-columns: 1fr; }
  .fitview { grid-template-columns: 1fr; }
  .lookpane { position: static; }
  .statband { grid-template-columns: repeat(2, 1fr); }
  .underpass-in { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .hatch { display: block; }
  .spraynav {
    display: none;
    position: absolute; top: 100%; left: 0; right: 0;
    background: var(--coal); flex-direction: column; align-items: stretch;
    gap: 0; padding: .4rem 0; border-bottom: var(--stitch);
  }
  body.hatch-open .spraynav { display: flex; }
  .spraynav a { padding: .6rem 1.2rem; border-bottom: 0; }
  .girder-in { gap: .7rem; }
  .label img { width: 82px; }
  .dua { grid-template-columns: 1fr; }
  h1 { font-size: 1.8rem; }
  .billboard { padding: 2.2rem 0 2rem; }
}
