/* Фидерная барахолка — статический лендинг. Без фреймворков, mobile-first. */
:root {
  color-scheme: light dark;
  --bg: #faf9f6;
  --bg-alt: #f1efe8;
  --card: #ffffff;
  --text: #23302a;
  --dim: #5b6a62;
  --line: #e3e0d6;
  --accent: #1a6b45;
  --accent-ink: #ffffff;
  --accent-soft: #e7f2ec;
  --focus: #0d5c38;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #14201a;
    --bg-alt: #1a2820;
    --card: #1e2e26;
    --text: #e8e6df;
    --dim: #a4b0a8;
    --line: #2d3d34;
    --accent: #4dbd8a;
    --accent-ink: #0c2417;
    --accent-soft: #22382d;
    --focus: #7fe0b3;
  }
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font: 17px/1.55 system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  -webkit-text-size-adjust: 100%;
}
.wrap { max-width: 1080px; margin: 0 auto; padding: 0 20px; }
h1, h2 { line-height: 1.2; font-weight: 800; }
h1 { font-size: clamp(1.75rem, 5.5vw, 2.6rem); margin: 0 0 14px; }
h2 { font-size: clamp(1.35rem, 4vw, 1.8rem); margin: 0 0 18px; }
a { color: var(--accent); }
a:focus-visible, summary:focus-visible, .btn:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 2px;
  border-radius: 4px;
}
p { margin: 0 0 12px; }
.dim { color: var(--dim); }

/* --- кнопки --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 12px 22px;
  border-radius: 12px;
  border: 2px solid var(--accent);
  background: var(--card);
  color: var(--accent);
  font-size: 17px;
  font-weight: 700;
  text-decoration: none;
  transition: transform .12s ease, background .15s ease, filter .15s ease, box-shadow .15s ease;
}
.btn:not(.btn-primary):hover {
  background: var(--accent-soft);
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(0, 0, 0, .12);
}
.btn-primary:hover {
  background: var(--accent);
  color: var(--accent-ink);
  filter: brightness(1.08);
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(0, 0, 0, .18);
}
.btn:active {
  transform: translateY(0) scale(.97);
  box-shadow: none;
  filter: brightness(.97);
}
.btn-s { min-height: 44px; padding: 10px 16px; font-size: 15px; border-radius: 10px; }
/* глиф Telegram на кнопках, ведущих в канал */
.btn > .tg { width: 20px; height: 20px; margin-right: 12px; flex: none; }
.btn-s > .tg { width: 18px; height: 18px; margin-right: 10px; }
@media (max-width: 759px) { .top .btn-s { display: none; } }  /* в hero CTA рядом — дубль не нужен */
.top-nav { display: inline-flex; align-items: center; gap: 16px; }
.top-anchor { font-weight: 600; text-decoration: none; }
.top-anchor:hover { text-decoration: underline; }
@media (max-width: 759px) { .foot-qr { display: none; } }      /* экран с экрана не сканируют */

/* --- шапка --- */
.top { border-bottom: 1px solid var(--line); background: var(--bg); position: sticky; top: 0; z-index: 5; }
.top-in { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 20px; }
.brand { font-weight: 800; white-space: nowrap; }
.brand-img { width: 32px; height: 32px; vertical-align: -8px; margin-right: 8px; }

/* --- hero --- */
.hero-logo {
  width: 200px; height: auto; padding: 14px 16px;
  background: #fff; border: 1px solid var(--line); border-radius: 24px;
  margin-bottom: 20px;
  box-shadow: 0 4px 16px rgba(30, 58, 82, .10);
}
.hero { padding: 44px 0 40px; background:
  radial-gradient(1100px 400px at 85% -10%, var(--accent-soft), transparent 70%); }
.lead { font-size: clamp(1.02rem, 2.6vw, 1.2rem); color: var(--text); max-width: 34em; }
.cta-row { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin: 22px 0 18px; }
.cta-hint { color: var(--dim); font-size: 15px; }
.facts { margin: 8px 0 0; padding: 0; list-style: none; color: var(--dim); font-size: 15.5px; }
.facts li { padding-left: 26px; position: relative; margin-bottom: 6px; }
.facts li::before { content: "✓"; position: absolute; left: 4px; color: var(--accent); font-weight: 800; }
.hero-qr { display: none; }
.hero-qr svg { width: 148px; height: 148px; background: #fff; border-radius: 12px; padding: 8px; }
.hero-qr figcaption, .foot-qr figcaption { font-size: 13px; color: var(--dim); text-align: center; margin-top: 6px; }

/* --- витрина --- */
.lots { padding: 36px 0 8px; }
.sec-sub { color: var(--dim); margin-top: -10px; }
/* --- витрина: горизонтальная лента со свайпом (scroll-snap) --- */
.slider { position: relative; }
.grid {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(230px, 265px);
  gap: 14px;
  margin: 18px 0 6px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding-bottom: 10px;
  scrollbar-width: thin;
}
.card { scroll-snap-align: start; }
.slider-btn {
  position: absolute; top: 42%;
  width: 42px; height: 42px; border-radius: 50%;
  border: 1px solid var(--line);
  background: var(--card); color: var(--accent);
  font-size: 24px; line-height: 1; cursor: pointer;
  display: none; z-index: 3;
  box-shadow: 0 2px 10px rgba(0, 0, 0, .18);
  transition: background .12s ease, transform .12s ease;
}
.slider-btn:hover { background: var(--accent-soft); transform: scale(1.06); }
.slider-btn:active { transform: scale(.96); }
.slider-btn.prev { left: -14px; }
.slider-btn.next { right: -14px; }
@media (min-width: 760px) { .slider-btn { display: block; } }
.card {
  display: flex;
  flex-direction: column;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  transition: border-color .15s ease, transform .15s ease, box-shadow .15s ease;
}
.card:hover, .card:focus-visible {
  border-color: var(--accent);
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(0, 0, 0, .10);
}
.card:active { transform: translateY(0) scale(.99); box-shadow: none; }
.card-img {
  aspect-ratio: 4 / 3;
  width: 100%;
  object-fit: cover;
  display: block;
  background: var(--bg-alt);
}
.card-noimg {
  aspect-ratio: 4 / 3;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 40px;
  background: var(--bg-alt);
}
.card-body { padding: 10px 12px 12px; display: flex; flex-direction: column; gap: 4px; flex: 1; }
.card-title { font-weight: 600; font-size: 15.5px; line-height: 1.35; max-height: 2.8em; overflow: hidden;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.card-meta { color: var(--dim); font-size: 14px; }
.card-price { font-weight: 800; font-size: 16.5px; color: var(--accent); margin-top: auto; }
.lots-more { text-align: center; margin: 22px 0 30px; }
.empty {
  background: var(--card);
  border: 1px dashed var(--line);
  border-radius: 14px;
  padding: 22px;
  text-align: center;
  margin: 18px 0;
}

.notify {
  text-align: center; color: var(--dim); margin: 0 0 26px;
}
.notify a { font-weight: 600; }

/* --- шаги --- */
.how { background: var(--bg-alt); padding: 36px 0; }
.steps { margin: 0; padding-left: 20px; }
.steps li { margin-bottom: 14px; max-width: 46em; }
.sell-note { margin-top: 20px; color: var(--dim); }

/* --- о барахолке (SEO-текст) --- */
.about { padding: 34px 0; }
.about p { max-width: 46em; }

/* --- пример поста канала (статическая карточка вместо iframe-виджета) --- */
.proof { padding: 36px 0 10px; }
.post {
  margin: 14px 0 26px; max-width: 420px;
  background: var(--card); border: 1px solid var(--line);
  border-radius: 16px; padding: 14px 16px;
}
.post-head { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; font-size: 15px; }
.post-ava { width: 40px; height: 40px; border-radius: 50%; }
.post-body { display: flex; gap: 12px; align-items: center; margin-bottom: 14px; }
.post-photo { width: 112px; height: 84px; object-fit: cover; border-radius: 10px; flex-shrink: 0; }
.post-text b { display: block; margin-bottom: 2px; }
.post-text .card-meta { font-size: 14px; }

/* --- FAQ --- */
.faq { padding: 30px 0 36px; }
.faq details {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 2px 18px 14px;
  margin-bottom: 10px;
}
.faq summary {
  cursor: pointer; font-weight: 700;
  display: flex; align-items: center;
  padding: 12px 0; min-height: 44px;  /* тап-таргет под палец */
  transition: color .12s ease;
}
.faq summary:hover { color: var(--accent); }
.faq details[open] summary { margin-bottom: 8px; }

/* --- финал / футер --- */
.final { background: var(--accent-soft); padding: 34px 0; }
.final-in { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px; }
.final h2 { margin-bottom: 6px; }
.final-cta { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; }
.final-alt { font-weight: 600; }
.foot { border-top: 1px solid var(--line); padding: 26px 0 34px; font-size: 15px; }
.foot-in { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 24px; }
.foot-qr { display: flex; flex-direction: column; align-items: center; margin-left: auto; }
.foot-qr svg { display: block; width: 110px; height: 110px; background: #fff; border-radius: 10px; padding: 6px; box-shadow: 0 3px 12px rgba(0,0,0,.10); }
.hero-qr figcaption, .foot-qr figcaption { font-size: 14px; color: var(--dim); text-align: center; margin-top: 6px; }

@media (min-width: 760px) {
  .hero { padding: 60px 0 54px; }
  .hero-in { display: flex; align-items: center; gap: 36px; }
  .hero-logo { flex-shrink: 0; margin-bottom: 0; }
  .hero-txt { flex: 1; }
  .lead { max-width: 40em; }
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; }
  html { scroll-behavior: auto; }
}
